VirtualBox

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

Last change on this file since 42748 was 42748, checked in by vboxsync, 13 years ago

Main/VirtualBox: add new method for querying normalized version (numeric version plus prerelease tag, but without publisher)
Main/SystemProperties: add new attribute for getting the default additions iso (setter is not implemented as the saving of the value is missing)
Frontends/VirtualBox: adjust accordingly
Frontends/VBoxManage: show the default additions iso name, and move the listing of most information into separate functions to make the code easier to read.

  • Property svn:eol-style set to native
File size: 720.6 KB
Line 
1<?xml version="1.0" encoding="utf-8"?>
2
3<!--
4
5 Copyright (C) 2006-2012 Oracle Corporation
6
7 This file is part of VirtualBox Open Source Edition (OSE), as
8 available from http://www.virtualbox.org. This file is free software;
9 you can redistribute it and/or modify it under the terms of the GNU
10 General Public License (GPL) as published by the Free Software
11 Foundation, in version 2 as it comes in the "COPYING" file of the
12 VirtualBox OSE distribution. VirtualBox OSE is distributed in the
13 hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
14-->
15
16<!--
17 This is the master declaration for VirtualBox's Main API,
18 represented by COM/XPCOM and web service interfaces.
19
20 From this document, the build system generates several files
21 via XSLT that are then used during the build process.
22
23 Below is the list of XSL templates that operate on this file and
24 output files they generate. These XSL templates must be updated
25 whenever the schema of this file changes:
26
27 1. src/VBox/Main/idl/midl.xsl =>
28 out/<platform>/bin/sdk/idl/VirtualBox.idl
29 (MS COM interface definition file for Main API)
30
31 2. src/VBox/Main/idl/xpidl.xsl =>
32 out/<platform>/bin/sdk/idl/VirtualBox_XPCOM.idl
33 (XPCOM interface definition file for Main API)
34
35 3. src/VBox/Main/idl/doxygen.xsl =>
36 out/<platform>/obj/src/VBox/Main/VirtualBox.idl
37 (pseudo-IDL for Doxygen to generate the official Main API
38 documentation)
39
40 4. src/VBox/Main/webservice/*.xsl =>
41 a bunch of WSDL and C++ files
42 (VirtualBox web service sources and SOAP mappers;
43 see src/VBox/Main/webservice/Makefile.kmk for details)
44
45 5. src/VBox/Frontends/VirtualBox/include/COMWrappers.xsl =>
46 out/<platform>/obj/src/VBox/Frontends/VirtualBox/VirtualBox/include/COMWrappers.h
47 (smart Qt-based C++ wrapper classes for COM interfaces
48 of the Main API)
49
50 6. src/VBox/Installer/win32/VirtualBox_TypeLib.xsl =>
51 out/<platform>/obj/src/VBox/Installer/win32/VirtualBox_TypeLib.wxi
52 (Main API TypeLib block for the WiX installer)
53
54 7. src/VBox/Runtime/common/err/errmsgvboxcom.xsl =>
55 out/<platform>/obj/Runtime/errmsgvboxcomdata.h
56 (<result> extraction for the %Rhrc format specifier)
57-->
58
59<idl>
60
61<desc>
62 Welcome to the <b>VirtualBox Main API documentation</b>. This documentation
63 describes the so-called <i>VirtualBox Main API</i> which comprises all public
64 COM interfaces and components provided by the VirtualBox server and by the
65 VirtualBox client library.
66
67 VirtualBox employs a client-server design, meaning that whenever any part of
68 VirtualBox is running -- be it the Qt GUI, the VBoxManage command-line
69 interface or any virtual machine --, a dedicated server process named
70 VBoxSVC runs in the background. This allows multiple processes working with
71 VirtualBox to cooperate without conflicts. These processes communicate to each
72 other using inter-process communication facilities provided by the COM
73 implementation of the host computer.
74
75 On Windows platforms, the VirtualBox Main API uses Microsoft COM, a native COM
76 implementation. On all other platforms, Mozilla XPCOM, an open-source COM
77 implementation, is used.
78
79 All the parts that a typical VirtualBox user interacts with (the Qt GUI
80 and the VBoxManage command-line interface) are technically
81 front-ends to the Main API and only use the interfaces that are documented
82 in this Main API documentation. This ensures that, with any given release
83 version of VirtualBox, all capabilities of the product that could be useful
84 to an external client program are always exposed by way of this API.
85
86 The VirtualBox Main API (also called the <i>VirtualBox COM library</i>)
87 contains two public component classes:
88 <tt>%VirtualBox.VirtualBox</tt> and <tt>%VirtualBox.Session</tt>, which
89 implement IVirtualBox and ISession interfaces respectively. These two classes
90 are of supreme importance and will be needed in order for any front-end
91 program to do anything useful. It is recommended to read the documentation of
92 the mentioned interfaces first.
93
94 The <tt>%VirtualBox.VirtualBox</tt> class is a singleton. This means that
95 there can be only one object of this class on the local machine at any given
96 time. This object is a parent of many other objects in the VirtualBox COM
97 library and lives in the VBoxSVC process. In fact, when you create an instance
98 of the <tt>VirtualBox.VirtualBox</tt>, the COM subsystem checks if the VBoxSVC
99 process is already running, starts it if not, and returns you a reference to
100 the <tt>VirtualBox</tt> object created in this process. When the last reference
101 to this object is released, the VBoxSVC process ends (with a 5 second delay to
102 protect from too frequent restarts).
103
104 The <tt>%VirtualBox.Session</tt> class is a regular component. You can create
105 as many <tt>Session</tt> objects as you need but all of them will live in a
106 process which issues the object instantiation call. <tt>Session</tt> objects
107 represent virtual machine sessions which are used to configure virtual
108 machines and control their execution.
109
110 The naming of methods and attributes is very clearly defined: they all start
111 with a lowercase letter (except if they start with an acronym), and are using
112 CamelCase style otherwise. This naming only applies to the IDL description,
113 and is modified by the various language bindings (some convert the first
114 character to upper case, some not). See the SDK reference for more details
115 about how to call a method or attribute from a specific programming language.
116</desc>
117
118<if target="midl">
119 <cpp line="enum {"/>
120 <cpp line=" kTypeLibraryMajorVersion = 1,"/>
121 <cpp line=" kTypeLibraryMinorVersion = 0"/>
122 <cpp line="};"/>
123</if>
124
125<if target="xpidl">
126 <!-- NS_IMPL_THREADSAFE_ISUPPORTSxx_CI macros are placed here, for convenience -->
127 <cpp>
128/* currently, nsISupportsImpl.h lacks the below-like macros */
129
130#define NS_IMPL_THREADSAFE_QUERY_INTERFACE1_CI NS_IMPL_QUERY_INTERFACE1_CI
131#define NS_IMPL_THREADSAFE_QUERY_INTERFACE2_CI NS_IMPL_QUERY_INTERFACE2_CI
132#define NS_IMPL_THREADSAFE_QUERY_INTERFACE3_CI NS_IMPL_QUERY_INTERFACE3_CI
133#define NS_IMPL_THREADSAFE_QUERY_INTERFACE4_CI NS_IMPL_QUERY_INTERFACE4_CI
134
135
136#ifndef NS_IMPL_THREADSAFE_ISUPPORTS1_CI
137# define NS_IMPL_THREADSAFE_ISUPPORTS1_CI(_class, _interface) \
138 NS_IMPL_THREADSAFE_ADDREF(_class) \
139 NS_IMPL_THREADSAFE_RELEASE(_class) \
140 NS_IMPL_THREADSAFE_QUERY_INTERFACE1_CI(_class, _interface) \
141 NS_IMPL_CI_INTERFACE_GETTER1(_class, _interface)
142#endif
143
144#ifndef NS_IMPL_THREADSAFE_ISUPPORTS2_CI
145# define NS_IMPL_THREADSAFE_ISUPPORTS2_CI(_class, _i1, _i2) \
146 NS_IMPL_THREADSAFE_ADDREF(_class) \
147 NS_IMPL_THREADSAFE_RELEASE(_class) \
148 NS_IMPL_THREADSAFE_QUERY_INTERFACE2_CI(_class, _i1, _i2) \
149 NS_IMPL_CI_INTERFACE_GETTER2(_class, _i1, _i2)
150#endif
151
152#ifndef NS_IMPL_THREADSAFE_ISUPPORTS3_CI
153# define NS_IMPL_THREADSAFE_ISUPPORTS3_CI(_class, _i1, _i2, _i3) \
154 NS_IMPL_THREADSAFE_ADDREF(_class) \
155 NS_IMPL_THREADSAFE_RELEASE(_class) \
156 NS_IMPL_THREADSAFE_QUERY_INTERFACE3_CI(_class, _i1, _i2, _i3) \
157 NS_IMPL_CI_INTERFACE_GETTER3(_class, _i1, _i2, _i3)
158#endif
159
160#ifndef NS_IMPL_THREADSAFE_ISUPPORTS4_CI
161# define NS_IMPL_THREADSAFE_ISUPPORTS4_CI(_class, _i1, _i2, _i3, _i4) \
162 NS_IMPL_THREADSAFE_ADDREF(_class) \
163 NS_IMPL_THREADSAFE_RELEASE(_class) \
164 NS_IMPL_THREADSAFE_QUERY_INTERFACE4_CI(_class, _i1, _i2, _i3, _i4) \
165 NS_IMPL_CI_INTERFACE_GETTER4(_class, _i1, _i2, _i3, _i4)
166#endif
167
168#ifndef NS_IMPL_QUERY_INTERFACE1_AMBIGUOUS_CI
169# define NS_IMPL_QUERY_INTERFACE1_AMBIGUOUS_CI(_class, _i1, _ic1) \
170 NS_INTERFACE_MAP_BEGIN(_class) \
171 NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(_i1, _ic1) \
172 NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(nsISupports, _ic1) \
173 NS_IMPL_QUERY_CLASSINFO(_class) \
174 NS_INTERFACE_MAP_END
175#endif
176
177#ifndef NS_IMPL_QUERY_INTERFACE2_AMBIGUOUS_CI
178# define NS_IMPL_QUERY_INTERFACE2_AMBIGUOUS_CI(_class, _i1, _ic1, \
179 _i2, _ic2) \
180 NS_INTERFACE_MAP_BEGIN(_class) \
181 NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(_i1, _ic1) \
182 NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(_i2, _ic2) \
183 NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(nsISupports, _ic1) \
184 NS_IMPL_QUERY_CLASSINFO(_class) \
185 NS_INTERFACE_MAP_END
186#endif
187
188#ifndef NS_IMPL_QUERY_INTERFACE3_AMBIGUOUS_CI
189# define NS_IMPL_QUERY_INTERFACE3_AMBIGUOUS_CI(_class, _i1, _ic1, \
190 _i2, _ic2, _i3, _ic3) \
191 NS_INTERFACE_MAP_BEGIN(_class) \
192 NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(_i1, _ic1) \
193 NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(_i2, _ic2) \
194 NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(_i3, _ic3) \
195 NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(nsISupports, _ic1) \
196 NS_IMPL_QUERY_CLASSINFO(_class) \
197 NS_INTERFACE_MAP_END
198#endif
199
200#define NS_IMPL_THREADSAFE_QUERY_INTERFACE1_AMBIGUOUS_CI NS_IMPL_QUERY_INTERFACE1_AMBIGUOUS_CI
201#define NS_IMPL_THREADSAFE_QUERY_INTERFACE2_AMBIGUOUS_CI NS_IMPL_QUERY_INTERFACE2_AMBIGUOUS_CI
202#define NS_IMPL_THREADSAFE_QUERY_INTERFACE3_AMBIGUOUS_CI NS_IMPL_QUERY_INTERFACE3_AMBIGUOUS_CI
203
204#ifndef NS_IMPL_THREADSAFE_ISUPPORTS1_AMBIGUOUS_CI
205# define NS_IMPL_THREADSAFE_ISUPPORTS1_AMBIGUOUS_CI(_class, _i1, _ic1) \
206 NS_IMPL_THREADSAFE_ADDREF(_class) \
207 NS_IMPL_THREADSAFE_RELEASE(_class) \
208 NS_IMPL_THREADSAFE_QUERY_INTERFACE1_AMBIGUOUS_CI(_class, _i1, _ic1) \
209 NS_IMPL_CI_INTERFACE_GETTER1(_class, _i1)
210#endif
211
212#ifndef NS_IMPL_THREADSAFE_ISUPPORTS2_AMBIGUOUS_CI
213# define NS_IMPL_THREADSAFE_ISUPPORTS2_AMBIGUOUS_CI(_class, _i1, _ic1, \
214 _i2, _ic2) \
215 NS_IMPL_THREADSAFE_ADDREF(_class) \
216 NS_IMPL_THREADSAFE_RELEASE(_class) \
217 NS_IMPL_THREADSAFE_QUERY_INTERFACE2_AMBIGUOUS_CI(_class, _i1, _ic1, \
218 _i2, _ic2) \
219 NS_IMPL_CI_INTERFACE_GETTER2(_class, _i1, _i2)
220#endif
221
222#ifndef NS_IMPL_THREADSAFE_ISUPPORTS3_AMBIGUOUS_CI
223# define NS_IMPL_THREADSAFE_ISUPPORTS3_AMBIGUOUS_CI(_class, _i1, _ic1, \
224 _i2, _ic2, _i3, _ic3) \
225 NS_IMPL_THREADSAFE_ADDREF(_class) \
226 NS_IMPL_THREADSAFE_RELEASE(_class) \
227 NS_IMPL_THREADSAFE_QUERY_INTERFACE3_AMBIGUOUS_CI(_class, _i1, _ic1, \
228 _i2, _ic2, _i3, _ic3) \
229 NS_IMPL_CI_INTERFACE_GETTER3(_class, _i1, _i2, _i3)
230#endif
231
232 </cpp>
233</if>
234
235<library
236 name="VirtualBox"
237 uuid="46137EEC-703B-4fe5-AFD4-7C9BBBBA0259"
238 version="1.3"
239 desc="VirtualBox Type Library"
240 appUuid="819B4D85-9CEE-493C-B6FC-64FFE759B3C9"
241 supportsErrorInfo="yes"
242>
243
244
245 <!--
246 // COM result codes for VirtualBox
247 /////////////////////////////////////////////////////////////////////////
248 -->
249
250 <descGroup id="VirtualBox_COM_result_codes" title="VirtualBox COM result codes">
251 <desc>
252 This section describes all VirtualBox-specific COM result codes that may
253 be returned by methods of VirtualBox COM interfaces in addition to
254 standard COM result codes.
255
256 Note that along with the result code, every VirtualBox method returns
257 extended error information through the IVirtualBoxErrorInfo interface on
258 failure. This interface is a preferred way to present the error to the end
259 user because it contains a human readable description of the error. Raw
260 result codes, both standard and described in this section, are intended to
261 be used by programs to analyze the reason of a failure and select an
262 appropriate course of action without involving the end user (for example,
263 retry the operation later or make a different call).
264
265 The standard COM result codes that may originate from our methods include:
266
267 <table>
268 <tr><td>E_INVALIDARG</td>
269 <td>
270 Returned when the value of the method's argument is not within the range
271 of valid values. This should not be confused with situations when the
272 value is within the range but simply doesn't suit the current object
273 state and there is a possibility that it will be accepted later (in such
274 cases VirtualBox-specific codes are returned, for example,
275 <link to="VBOX_E_OBJECT_NOT_FOUND"/>).
276 </td>
277 </tr>
278 <tr><td>E_POINTER</td>
279 <td>
280 Returned if a memory pointer for the output argument is invalid (for
281 example, @c null). When pointers representing input arguments (such
282 as strings) are invalid, E_INVALIDARG is returned.
283 </td>
284 </tr>
285 <tr><td>E_ACCESSDENIED</td>
286 <td>
287 Returned when the called object is not ready. Since the lifetime of a
288 public COM object cannot be fully controlled by the implementation,
289 VirtualBox maintains the readiness state for all objects it creates and
290 returns this code in response to any method call on the object that was
291 deactivated by VirtualBox and is not functioning any more.
292 </td>
293 </tr>
294 <tr><td>E_OUTOFMEMORY</td>
295 <td>
296 Returned when a memory allocation operation fails.
297 </td>
298 </tr>
299 </table>
300 </desc>
301 </descGroup>
302
303 <!--
304 Note that src/VBox/Runtime/common/err/errmsgvboxcom.xsl will ignore
305 everything in <result>/<desc> after (and including) the first dot, so express
306 the matter of the error code in the first sentence and keep it short.
307 -->
308
309 <result name="VBOX_E_OBJECT_NOT_FOUND" value="0x80BB0001">
310 <desc>
311 Object corresponding to the supplied arguments does not exist.
312 </desc>
313 </result>
314
315 <result name="VBOX_E_INVALID_VM_STATE" value="0x80BB0002">
316 <desc>
317 Current virtual machine state prevents the operation.
318 </desc>
319 </result>
320
321 <result name="VBOX_E_VM_ERROR" value="0x80BB0003">
322 <desc>
323 Virtual machine error occurred attempting the operation.
324 </desc>
325 </result>
326
327 <result name="VBOX_E_FILE_ERROR" value="0x80BB0004">
328 <desc>
329 File not accessible or erroneous file contents.
330 </desc>
331 </result>
332
333 <result name="VBOX_E_IPRT_ERROR" value="0x80BB0005">
334 <desc>
335 Runtime subsystem error.
336 </desc>
337 </result>
338
339 <result name="VBOX_E_PDM_ERROR" value="0x80BB0006">
340 <desc>
341 Pluggable Device Manager error.
342 </desc>
343 </result>
344
345 <result name="VBOX_E_INVALID_OBJECT_STATE" value="0x80BB0007">
346 <desc>
347 Current object state prohibits operation.
348 </desc>
349 </result>
350
351 <result name="VBOX_E_HOST_ERROR" value="0x80BB0008">
352 <desc>
353 Host operating system related error.
354 </desc>
355 </result>
356
357 <result name="VBOX_E_NOT_SUPPORTED" value="0x80BB0009">
358 <desc>
359 Requested operation is not supported.
360 </desc>
361 </result>
362
363 <result name="VBOX_E_XML_ERROR" value="0x80BB000A">
364 <desc>
365 Invalid XML found.
366 </desc>
367 </result>
368
369 <result name="VBOX_E_INVALID_SESSION_STATE" value="0x80BB000B">
370 <desc>
371 Current session state prohibits operation.
372 </desc>
373 </result>
374
375 <result name="VBOX_E_OBJECT_IN_USE" value="0x80BB000C">
376 <desc>
377 Object being in use prohibits operation.
378 </desc>
379 </result>
380
381 <!--
382 Note that src/VBox/Runtime/common/err/errmsgvboxcom.xsl will ignore
383 everything in <result>/<desc> after (and including) the first dot, so express
384 the matter of the error code in the first sentence and keep it short.
385 -->
386
387 <descGroup/>
388
389 <!--
390 // all common enums
391 /////////////////////////////////////////////////////////////////////////
392 -->
393
394 <enum
395 name="SettingsVersion"
396 uuid="52bd6f5f-1adb-4493-975d-581a9c4b803f"
397 >
398 <desc>
399 Settings version of VirtualBox settings files. This is written to
400 the "version" attribute of the root "VirtualBox" element in the settings
401 file XML and indicates which VirtualBox version wrote the file.
402 </desc>
403
404 <const name="Null" value="0">
405 <desc>Null value, indicates invalid version.</desc>
406 </const>
407 <const name="v1_0" value="1">
408 <desc>Legacy settings version, not currently supported.</desc>
409 </const>
410 <const name="v1_1" value="2">
411 <desc>Legacy settings version, not currently supported.</desc>
412 </const>
413 <const name="v1_2" value="3">
414 <desc>Legacy settings version, not currently supported.</desc>
415 </const>
416 <const name="v1_3pre" value="4">
417 <desc>Legacy settings version, not currently supported.</desc>
418 </const>
419 <const name="v1_3" value="5">
420 <desc>Settings version "1.3", written by VirtualBox 2.0.12.</desc>
421 <!--
422 Machine XML: Capitalization of Uart, Lpt elements and many attributes changed.
423 -->
424 </const>
425 <const name="v1_4" value="6">
426 <desc>Intermediate settings version, understood by VirtualBox 2.1.x.</desc>
427 <!--
428 VirtualBox.xml: big DiskRegistry -> MediaRegistry revamp, various HardDisk types merged
429 (was VirtualDiskImage, VMDKImage, VHDImage, ISCSIHardDisk, CustomHardDisk, DiffHardDisk)
430 -->
431 </const>
432 <const name="v1_5" value="7">
433 <desc>Intermediate settings version, understood by VirtualBox 2.1.x.</desc>
434 <!--
435 2008-09-04: 2.0.0 released
436 2008-11-20: settings version 1.5 introduced
437 2008-12-17: 2.1.0 released
438 Machine changes:
439 guest OS identifiers changed;
440 Machine/Hardware/Display/MonitorCount renamed to monitorCount;
441 Machine/Hardware/Display/Accelerate3D renamed to accelerate3D;
442 Machine/Hardware/CPU/CPUCount/@count changed to CPU/@count
443 -->
444 </const>
445 <const name="v1_6" value="8">
446 <desc>Settings version "1.6", written by VirtualBox 2.1.4 (at least).</desc>
447 <!--
448 2008-12-17: 2.1.0 released
449 2008-12-19: settings version 1.6 introduced (is in 2.1 branch)
450 2009-04-08: 2.2.0 released
451 Machine changes: remove all Machine/Hardware/Network/Adapter/HostInterface[@TAPSetup or @TAPTerminate]/ attributes (done)
452 -->
453 </const>
454 <const name="v1_7" value="9">
455 <desc>Settings version "1.7", written by VirtualBox 2.2.x and 3.0.x.</desc>
456 <!--
457 2008-12-17: 2.1.0 released
458 2009-03-11: settings version 1.7 introduced (is in 2.2 branch)
459 2009-04-08: 2.2.0 released
460 VirtualBox.xml additions: NetserviceRegistry with DHCPServers (done)
461 Machine changes: HardDiskAttachments is now StorageControllers (done)
462 -->
463 </const>
464 <const name="v1_8" value="10">
465 <desc>Intermediate settings version "1.8", understood by VirtualBox 3.1.x.</desc>
466 <!--
467 Machine additions: Display/@accelerate2DVideo (done)
468 -->
469 </const>
470 <const name="v1_9" value="11">
471 <desc>Settings version "1.9", written by VirtualBox 3.1.x.</desc>
472 <!--
473 The big storage controller / DVD / Floppy rework (done)
474 -->
475 </const>
476 <const name="v1_10" value="12">
477 <desc>Settings version "1.10", written by VirtualBox 3.2.x.</desc>
478 <!--
479 Machine changes: RTC localOrUTC (done)
480 CPU hot-plug support
481 -->
482 </const>
483 <const name="v1_11" value="13">
484 <desc>Settings version "1.11", written by VirtualBox 4.0.x.</desc>
485 <!--
486 Machine changes: HD Audio controller, per-machine disk registries,
487 /@format attribute for DVD and floppy images.
488 -->
489 </const>
490 <const name="v1_12" value="14">
491 <desc>Settings version "1.12", written by VirtualBox 4.1.x.</desc>
492 <!--
493 Machine changes: raw PCI device attachment;
494 NetworkAdapter changes: bandwidth group.
495 -->
496 </const>
497 <const name="v1_13" value="15">
498 <desc>Settings version "1.13", written by VirtualBox 4.2.x.</desc>
499 <!--
500 Machine changes: tracing config, groups, autostart;
501 NetworkAdapter changes: unit for bandwidth group limits.
502 -->
503 </const>
504
505 <const name="Future" value="99999">
506 <desc>Settings version greater than "1.13", written by a future VirtualBox version.</desc>
507 </const>
508 </enum>
509
510 <enum
511 name="AccessMode"
512 uuid="1da0007c-ddf7-4be8-bcac-d84a1558785f"
513 >
514 <desc>
515 Access mode for opening files.
516 </desc>
517
518 <const name="ReadOnly" value="1"/>
519 <const name="ReadWrite" value="2"/>
520 </enum>
521
522 <enum
523 name="MachineState"
524 uuid="ec6c6a9e-113d-4ff4-b44f-0b69f21c97fe"
525 >
526 <desc>
527 Virtual machine execution state.
528
529 This enumeration represents possible values of the <link
530 to="IMachine::state"/> attribute.
531
532 Below is the basic virtual machine state diagram. It shows how the state
533 changes during virtual machine execution. The text in square braces shows
534 a method of the IConsole interface that performs the given state
535 transition.
536
537 <pre>
538 +---------[powerDown()] &lt;- Stuck &lt;--[failure]-+
539 V |
540 +-&gt; PoweredOff --+--&gt;[powerUp()]--&gt; Starting --+ | +-----[resume()]-----+
541 | | | | V |
542 | Aborted -----+ +--&gt; Running --[pause()]--&gt; Paused
543 | | ^ | ^ |
544 | Saved -----------[powerUp()]--&gt; Restoring -+ | | | |
545 | ^ | | | |
546 | | +-----------------------------------------+-|-------------------+ +
547 | | | | |
548 | | +-- Saving &lt;--------[takeSnapshot()]&lt;-------+---------------------+
549 | | | |
550 | +-------- Saving &lt;--------[saveState()]&lt;----------+---------------------+
551 | | |
552 +-------------- Stopping -------[powerDown()]&lt;----------+---------------------+
553 </pre>
554
555 Note that states to the right from PoweredOff, Aborted and Saved in the
556 above diagram are called <i>online VM states</i>. These states
557 represent the virtual machine which is being executed in a dedicated
558 process (usually with a GUI window attached to it where you can see the
559 activity of the virtual machine and interact with it). There are two
560 special pseudo-states, FirstOnline and LastOnline, that can be used in
561 relational expressions to detect if the given machine state is online or
562 not:
563
564 <pre>
565 if (machine.GetState() &gt;= MachineState_FirstOnline &amp;&amp;
566 machine.GetState() &lt;= MachineState_LastOnline)
567 {
568 ...the machine is being executed...
569 }
570 </pre>
571
572 When the virtual machine is in one of the online VM states (that is, being
573 executed), only a few machine settings can be modified. Methods working
574 with such settings contain an explicit note about that. An attempt to
575 change any other setting or perform a modifying operation during this time
576 will result in the @c VBOX_E_INVALID_VM_STATE error.
577
578 All online states except Running, Paused and Stuck are transitional: they
579 represent temporary conditions of the virtual machine that will last as
580 long as the operation that initiated such a condition.
581
582 The Stuck state is a special case. It means that execution of the machine
583 has reached the "Guru Meditation" condition. This condition indicates an
584 internal VMM (virtual machine manager) failure which may happen as a
585 result of either an unhandled low-level virtual hardware exception or one
586 of the recompiler exceptions (such as the <i>too-many-traps</i>
587 condition).
588
589 Note also that any online VM state may transit to the Aborted state. This
590 happens if the process that is executing the virtual machine terminates
591 unexpectedly (for example, crashes). Other than that, the Aborted state is
592 equivalent to PoweredOff.
593
594 There are also a few additional state diagrams that do not deal with
595 virtual machine execution and therefore are shown separately. The states
596 shown on these diagrams are called <i>offline VM states</i> (this includes
597 PoweredOff, Aborted and Saved too).
598
599 The first diagram shows what happens when a lengthy setup operation is
600 being executed (such as <link to="IMachine::attachDevice"/>).
601
602 <pre>
603 +----------------------------------(same state as before the call)------+
604 | |
605 +-&gt; PoweredOff --+ |
606 | | |
607 |-&gt; Aborted -----+--&gt;[lengthy VM configuration call] --&gt; SettingUp -----+
608 | |
609 +-&gt; Saved -------+
610 </pre>
611
612 The next two diagrams demonstrate the process of taking a snapshot of a
613 powered off virtual machine, restoring the state to that as of a snapshot
614 or deleting a snapshot, respectively.
615
616 <pre>
617 +----------------------------------(same state as before the call)------+
618 | |
619 +-&gt; PoweredOff --+ |
620 | +--&gt;[takeSnapshot()] -------------------&gt; Saving ------+
621 +-&gt; Aborted -----+
622
623 +-&gt; PoweredOff --+
624 | |
625 | Aborted -----+--&gt;[restoreSnapshot() ]-------&gt; RestoringSnapshot -+
626 | | [deleteSnapshot() ]-------&gt; DeletingSnapshot --+
627 +-&gt; Saved -------+ |
628 | |
629 +---(Saved if restored from an online snapshot, PoweredOff otherwise)---+
630 </pre>
631
632 Note that the Saving state is present in both the offline state group and
633 online state group. Currently, the only way to determine what group is
634 assumed in a particular case is to remember the previous machine state: if
635 it was Running or Paused, then Saving is an online state, otherwise it is
636 an offline state. This inconsistency may be removed in one of the future
637 versions of VirtualBox by adding a new state.
638
639 <note internal="yes">
640 For whoever decides to touch this enum: In order to keep the
641 comparisons involving FirstOnline and LastOnline pseudo-states valid,
642 the numeric values of these states must be correspondingly updated if
643 needed: for any online VM state, the condition
644 <tt>FirstOnline &lt;= state &lt;= LastOnline</tt> must be
645 @c true. The same relates to transient states for which
646 the condition <tt>FirstOnline &lt;= state &lt;= LastOnline</tt> must be
647 @c true.
648 </note>
649 </desc>
650
651 <const name="Null" value="0">
652 <desc>Null value (never used by the API).</desc>
653 </const>
654 <const name="PoweredOff" value="1">
655 <desc>
656 The machine is not running and has no saved execution state; it has
657 either never been started or been shut down successfully.
658 </desc>
659 </const>
660 <const name="Saved" value="2">
661 <desc>
662 The machine is not currently running, but the execution state of the machine
663 has been saved to an external file when it was running, from where
664 it can be resumed.
665 </desc>
666 </const>
667 <const name="Teleported" value="3">
668 <desc>
669 The machine was teleported to a different host (or process) and then
670 powered off. Take care when powering it on again may corrupt resources
671 it shares with the teleportation target (e.g. disk and network).
672 </desc>
673 </const>
674 <const name="Aborted" value="4">
675 <desc>
676 The process running the machine has terminated abnormally. This may
677 indicate a crash of the VM process in host execution context, or
678 the VM process has been terminated externally.
679 </desc>
680 </const>
681 <const name="Running" value="5">
682 <desc>
683 The machine is currently being executed.
684 <note internal="yes">
685 For whoever decides to touch this enum: In order to keep the
686 comparisons in the old source code valid, this state must immediately
687 precede the Paused state.
688 TODO: Lift this spectacularly wonderful restriction.
689 </note>
690 </desc>
691 </const>
692 <const name="Paused" value="6">
693 <desc>
694 Execution of the machine has been paused.
695 <note internal="yes">
696 For whoever decides to touch this enum: In order to keep the
697 comparisons in the old source code valid, this state must immediately
698 follow the Running state.
699 TODO: Lift this spectacularly wonderful restriction.
700 </note>
701 </desc>
702 </const>
703 <const name="Stuck" value="7">
704 <desc>
705 Execution of the machine has reached the "Guru Meditation"
706 condition. This indicates a severe error in the hypervisor itself.
707 <note internal="yes">
708 bird: Why this uncool name? Could we rename it to "GuruMeditation" or
709 "Guru", perhaps? Or are there some other VMM states that are
710 intended to be lumped in here as well?
711 </note>
712 </desc>
713 </const>
714 <const name="Teleporting" value="8">
715 <desc>
716 The machine is about to be teleported to a different host or process.
717 It is possible to pause a machine in this state, but it will go to the
718 @c TeleportingPausedVM state and it will not be
719 possible to resume it again unless the teleportation fails.
720 </desc>
721 </const>
722 <const name="LiveSnapshotting" value="9">
723 <desc>
724 A live snapshot is being taken. The machine is running normally, but
725 some of the runtime configuration options are inaccessible. Also, if
726 paused while in this state it will transition to
727 @c Saving and it will not be resume the
728 execution until the snapshot operation has completed.
729 </desc>
730 </const>
731 <const name="Starting" value="10">
732 <desc>
733 Machine is being started after powering it on from a
734 zero execution state.
735 </desc>
736 </const>
737 <const name="Stopping" value="11">
738 <desc>
739 Machine is being normally stopped powering it off, or after the guest OS
740 has initiated a shutdown sequence.
741 </desc>
742 </const>
743 <const name="Saving" value="12">
744 <desc>
745 Machine is saving its execution state to a file, or an online
746 snapshot of the machine is being taken.
747 </desc>
748 </const>
749 <const name="Restoring" value="13">
750 <desc>
751 Execution state of the machine is being restored from a file
752 after powering it on from the saved execution state.
753 </desc>
754 </const>
755 <const name="TeleportingPausedVM" value="14">
756 <desc>
757 The machine is being teleported to another host or process, but it is
758 not running. This is the paused variant of the
759 @c state.
760 </desc>
761 </const>
762 <const name="TeleportingIn" value="15">
763 <desc>
764 Teleporting the machine state in from another host or process.
765 </desc>
766 </const>
767 <const name="FaultTolerantSyncing" value="16">
768 <desc>
769 The machine is being synced with a fault tolerant VM running elsewhere.
770 </desc>
771 </const>
772 <const name="DeletingSnapshotOnline" value="17">
773 <desc>
774 Like @c DeletingSnapshot, but the merging of media is ongoing in
775 the background while the machine is running.
776 </desc>
777 </const>
778 <const name="DeletingSnapshotPaused" value="18">
779 <desc>
780 Like @c DeletingSnapshotOnline, but the machine was paused when the
781 merging of differencing media was started.
782 </desc>
783 </const>
784 <const name="RestoringSnapshot" value="19">
785 <desc>
786 A machine snapshot is being restored; this typically does not take long.
787 </desc>
788 </const>
789 <const name="DeletingSnapshot" value="20">
790 <desc>
791 A machine snapshot is being deleted; this can take a long time since this
792 may require merging differencing media. This value indicates that the
793 machine is not running while the snapshot is being deleted.
794 </desc>
795 </const>
796 <const name="SettingUp" value="21">
797 <desc>
798 Lengthy setup operation is in progress.
799 </desc>
800 </const>
801
802 <const name="FirstOnline" value="5" wsmap="suppress"> <!-- Running -->
803 <desc>
804 Pseudo-state: first online state (for use in relational expressions).
805 </desc>
806 </const>
807 <const name="LastOnline" value="18" wsmap="suppress"> <!-- DeletingSnapshotPaused -->
808 <desc>
809 Pseudo-state: last online state (for use in relational expressions).
810 </desc>
811 </const>
812
813 <const name="FirstTransient" value="8" wsmap="suppress"> <!-- Teleporting -->
814 <desc>
815 Pseudo-state: first transient state (for use in relational expressions).
816 </desc>
817 </const>
818 <const name="LastTransient" value="21" wsmap="suppress"> <!-- SettingUp -->
819 <desc>
820 Pseudo-state: last transient state (for use in relational expressions).
821 </desc>
822 </const>
823
824 </enum>
825
826 <enum
827 name="SessionState"
828 uuid="cf2700c0-ea4b-47ae-9725-7810114b94d8"
829 >
830 <desc>
831 Session state. This enumeration represents possible values of
832 <link to="IMachine::sessionState"/> and <link to="ISession::state"/>
833 attributes.
834 </desc>
835
836 <const name="Null" value="0">
837 <desc>Null value (never used by the API).</desc>
838 </const>
839 <const name="Unlocked" value="1">
840 <desc>
841 In <link to="IMachine::sessionState"/>, this means that the machine
842 is not locked for any sessions.
843
844 In <link to="ISession::state"/>, this means that no machine is
845 currently locked for this session.
846 </desc>
847 </const>
848 <const name="Locked" value="2">
849 <desc>
850 In <link to="IMachine::sessionState"/>, this means that the machine
851 is currently locked for a session, whose process identifier can
852 then be found in the <link to="IMachine::sessionPID" /> attribute.
853
854 In <link to="ISession::state"/>, this means that a machine is
855 currently locked for this session, and the mutable machine object
856 can be found in the <link to="ISession::machine"/> attribute
857 (see <link to="IMachine::lockMachine" /> for details).
858 </desc>
859 </const>
860 <const name="Spawning" value="3">
861 <desc>
862 A new process is being spawned for the machine as a result of
863 <link to="IMachine::launchVMProcess"/> call. This state also occurs
864 as a short transient state during an <link to="IMachine::lockMachine"/>
865 call.
866 </desc>
867 </const>
868 <const name="Unlocking" value="4">
869 <desc>
870 The session is being unlocked.
871 </desc>
872 </const>
873 </enum>
874
875 <enum
876 name="CPUPropertyType"
877 uuid="24d356a6-2f45-4abd-b977-1cbe9c4701f5"
878 >
879 <desc>
880 Virtual CPU property type. This enumeration represents possible values of the
881 IMachine get- and setCPUProperty methods.
882 </desc>
883 <const name="Null" value="0">
884 <desc>Null value (never used by the API).</desc>
885 </const>
886 <const name="PAE" value="1">
887 <desc>
888 This setting determines whether VirtualBox will expose the Physical Address
889 Extension (PAE) feature of the host CPU to the guest. Note that in case PAE
890 is not available, it will not be reported.
891 </desc>
892 </const>
893 <const name="Synthetic" value="2">
894 <desc>
895 This setting determines whether VirtualBox will expose a synthetic CPU to the guest to allow
896 teleporting between host systems that differ significantly.
897 </desc>
898 </const>
899 </enum>
900
901
902 <enum
903 name="HWVirtExPropertyType"
904 uuid="ce81dfdd-d2b8-4a90-bbea-40ee8b7ffcee"
905 >
906 <desc>
907 Hardware virtualization property type. This enumeration represents possible values
908 for the <link to="IMachine::getHWVirtExProperty"/> and
909 <link to="IMachine::setHWVirtExProperty"/> methods.
910 </desc>
911 <const name="Null" value="0">
912 <desc>Null value (never used by the API).</desc>
913 </const>
914 <const name="Enabled" value="1">
915 <desc>
916 Whether hardware virtualization (VT-x/AMD-V) is enabled at all. If
917 such extensions are not available, they will not be used.
918 </desc>
919 </const>
920 <const name="Exclusive" value="2">
921 <desc>
922 Whether hardware virtualization is used exclusively by VirtualBox. When enabled,
923 VirtualBox assumes it can acquire full and exclusive access to the VT-x or AMD-V
924 feature of the host. To share these with other hypervisors, you must disable this property.
925 </desc>
926 </const>
927 <const name="VPID" value="3">
928 <desc>
929 Whether VT-x VPID is enabled. If this extension is not available, it will not be used.
930 </desc>
931 </const>
932 <const name="NestedPaging" value="4">
933 <desc>
934 Whether Nested Paging is enabled. If this extension is not available, it will not be used.
935 </desc>
936 </const>
937 <const name="LargePages" value="5">
938 <desc>
939 Whether large page allocation is enabled; requires nested paging and a 64 bits host.
940 </desc>
941 </const>
942 <const name="Force" value="6">
943 <desc>
944 Whether the VM should fail to start if hardware virtualization (VT-x/AMD-V) cannot be used. If
945 not set, there will be an automatic fallback to software virtualization.
946 </desc>
947 </const>
948 </enum>
949
950 <enum
951 name="FaultToleranceState"
952 uuid="5124f7ec-6b67-493c-9dee-ee45a44114e1"
953 >
954 <desc>
955 Used with <link to="IMachine::faultToleranceState" />.
956 </desc>
957 <const name="Inactive" value="1">
958 <desc>No fault tolerance enabled.</desc>
959 </const>
960 <const name="Master" value="2">
961 <desc>Fault tolerant master VM.</desc>
962 </const>
963 <const name="Standby" value="3">
964 <desc>Fault tolerant standby VM.</desc>
965 </const>
966 </enum>
967
968 <enum
969 name="LockType"
970 uuid="168a6a8e-12fd-4878-a1f9-38a750a56089"
971 >
972 <desc>
973 Used with <link to="IMachine::lockMachine" />.
974 </desc>
975 <const name="Write" value="2">
976 <desc>Lock the machine for writing.</desc>
977 </const>
978 <const name="Shared" value="1">
979 <desc>Request only a shared read lock for remote-controlling the machine.</desc>
980 </const>
981 <const name="VM" value="3">
982 <desc>Lock the machine for writing, and create objects necessary for
983 running a VM in this process.</desc>
984 </const>
985 </enum>
986
987 <enum
988 name="SessionType"
989 uuid="A13C02CB-0C2C-421E-8317-AC0E8AAA153A"
990 >
991 <desc>
992 Session type. This enumeration represents possible values of the
993 <link to="ISession::type"/> attribute.
994 </desc>
995
996 <const name="Null" value="0">
997 <desc>Null value (never used by the API).</desc>
998 </const>
999 <const name="WriteLock" value="1">
1000 <desc>
1001 Session has acquired an exclusive write lock on a machine
1002 using <link to="IMachine::lockMachine"/>.
1003 </desc>
1004 </const>
1005 <const name="Remote" value="2">
1006 <desc>
1007 Session has launched a VM process using
1008 <link to="IMachine::launchVMProcess"/>
1009 </desc>
1010 </const>
1011 <const name="Shared" value="3">
1012 <desc>
1013 Session has obtained a link to another session using
1014 <link to="IMachine::lockMachine"/>
1015 </desc>
1016 </const>
1017 </enum>
1018
1019 <enum
1020 name="DeviceType"
1021 uuid="6d9420f7-0b56-4636-99f9-7346f1b01e57"
1022 >
1023 <desc>
1024 Device type.
1025 </desc>
1026 <const name="Null" value="0">
1027 <desc>
1028 Null value, may also mean "no device" (not allowed for
1029 <link to="IConsole::getDeviceActivity"/>).
1030 </desc>
1031 </const>
1032 <const name="Floppy" value="1">
1033 <desc>Floppy device.</desc>
1034 </const>
1035 <const name="DVD" value="2">
1036 <desc>CD/DVD-ROM device.</desc>
1037 </const>
1038 <const name="HardDisk" value="3">
1039 <desc>Hard disk device.</desc>
1040 </const>
1041 <const name="Network" value="4">
1042 <desc>Network device.</desc>
1043 </const>
1044 <const name="USB" value="5">
1045 <desc>USB device.</desc>
1046 </const>
1047 <const name="SharedFolder" value="6">
1048 <desc>Shared folder device.</desc>
1049 </const>
1050 </enum>
1051
1052 <enum
1053 name="DeviceActivity"
1054 uuid="6FC8AEAA-130A-4eb5-8954-3F921422D707"
1055 >
1056 <desc>
1057 Device activity for <link to="IConsole::getDeviceActivity"/>.
1058 </desc>
1059
1060 <const name="Null" value="0"/>
1061 <const name="Idle" value="1"/>
1062 <const name="Reading" value="2"/>
1063 <const name="Writing" value="3"/>
1064 </enum>
1065
1066 <enum
1067 name="ClipboardMode"
1068 uuid="33364716-4008-4701-8f14-be0fa3d62950"
1069 >
1070 <desc>
1071 Host-Guest clipboard interchange mode.
1072 </desc>
1073
1074 <const name="Disabled" value="0"/>
1075 <const name="HostToGuest" value="1"/>
1076 <const name="GuestToHost" value="2"/>
1077 <const name="Bidirectional" value="3"/>
1078 </enum>
1079
1080 <enum
1081 name="DragAndDropMode"
1082 uuid="b618ea0e-b6fb-4f8d-97f7-5e237e49b547"
1083 >
1084 <desc>
1085 Drag'n'Drop interchange mode.
1086 </desc>
1087
1088 <const name="Disabled" value="0"/>
1089 <const name="HostToGuest" value="1"/>
1090 <const name="GuestToHost" value="2"/>
1091 <const name="Bidirectional" value="3"/>
1092 </enum>
1093
1094 <enum
1095 name="Scope"
1096 uuid="7c91096e-499e-4eca-9f9b-9001438d7855"
1097 >
1098 <desc>
1099 Scope of the operation.
1100
1101 A generic enumeration used in various methods to define the action or
1102 argument scope.
1103 </desc>
1104
1105 <const name="Global" value="0"/>
1106 <const name="Machine" value="1"/>
1107 <const name="Session" value="2"/>
1108 </enum>
1109
1110 <enum
1111 name="BIOSBootMenuMode"
1112 uuid="ae4fb9f7-29d2-45b4-b2c7-d579603135d5"
1113 >
1114 <desc>
1115 BIOS boot menu mode.
1116 </desc>
1117
1118 <const name="Disabled" value="0"/>
1119 <const name="MenuOnly" value="1"/>
1120 <const name="MessageAndMenu" value="2"/>
1121 </enum>
1122
1123 <enum
1124 name="ProcessorFeature"
1125 uuid="64c38e6b-8bcf-45ad-ac03-9b406287c5bf"
1126 >
1127 <desc>
1128 CPU features.
1129 </desc>
1130
1131 <const name="HWVirtEx" value="0"/>
1132 <const name="PAE" value="1"/>
1133 <const name="LongMode" value="2"/>
1134 <const name="NestedPaging" value="3"/>
1135 </enum>
1136
1137 <enum
1138 name="FirmwareType"
1139 uuid="b903f264-c230-483e-ac74-2b37ce60d371"
1140 >
1141 <desc>
1142 Firmware type.
1143 </desc>
1144 <const name="BIOS" value="1">
1145 <desc>BIOS Firmware.</desc>
1146 </const>
1147 <const name="EFI" value="2">
1148 <desc>EFI Firmware, bitness detected basing on OS type.</desc>
1149 </const>
1150 <const name="EFI32" value="3">
1151 <desc>Efi firmware, 32-bit.</desc>
1152 </const>
1153 <const name="EFI64" value="4">
1154 <desc>Efi firmware, 64-bit.</desc>
1155 </const>
1156 <const name="EFIDUAL" value="5">
1157 <desc>Efi firmware, combined 32 and 64-bit.</desc>
1158 </const>
1159 </enum>
1160
1161 <enum
1162 name="PointingHIDType"
1163 uuid="e44b2f7b-72ba-44fb-9e53-2186014f0d17"
1164 >
1165 <desc>
1166 Type of pointing device used in a virtual machine.
1167 </desc>
1168 <const name="None" value="1">
1169 <desc>No mouse.</desc>
1170 </const>
1171 <const name="PS2Mouse" value="2">
1172 <desc>PS/2 auxiliary device, a.k.a. mouse.</desc>
1173 </const>
1174 <const name="USBMouse" value="3">
1175 <desc>USB mouse (relative pointer).</desc>
1176 </const>
1177 <const name="USBTablet" value="4">
1178 <desc>USB tablet (absolute pointer).</desc>
1179 </const>
1180 <const name="ComboMouse" value="5">
1181 <desc>Combined device, working as PS/2 or USB mouse, depending on guest behavior.
1182 Using of such device can have negative performance implications. </desc>
1183 </const>
1184 </enum>
1185
1186 <enum
1187 name="KeyboardHIDType"
1188 uuid="383e43d7-5c7c-4ec8-9cb8-eda1bccd6699"
1189 >
1190 <desc>
1191 Type of keyboard device used in a virtual machine.
1192 </desc>
1193 <const name="None" value="1">
1194 <desc>No keyboard.</desc>
1195 </const>
1196 <const name="PS2Keyboard" value="2">
1197 <desc>PS/2 keyboard.</desc>
1198 </const>
1199 <const name="USBKeyboard" value="3">
1200 <desc>USB keyboard.</desc>
1201 </const>
1202 <const name="ComboKeyboard" value="4">
1203 <desc>Combined device, working as PS/2 or USB keyboard, depending on guest behavior.
1204 Using of such device can have negative performance implications. </desc>
1205 </const>
1206 </enum>
1207
1208 <!--
1209 // IVirtualBoxErrorInfo
1210 /////////////////////////////////////////////////////////////////////////
1211 -->
1212
1213 <interface
1214 name="IVirtualBoxErrorInfo" extends="$errorinfo"
1215 uuid="f91e6e91-49e1-4fd2-b21e-269003350d06"
1216 supportsErrorInfo="no"
1217 wsmap="managed"
1218 >
1219 <desc>
1220 The IVirtualBoxErrorInfo interface represents extended error information.
1221
1222 Extended error information can be set by VirtualBox components after
1223 unsuccessful or partially successful method invocation. This information
1224 can be retrieved by the calling party as an IVirtualBoxErrorInfo object
1225 and then shown to the client in addition to the plain 32-bit result code.
1226
1227 In MS COM, this interface extends the IErrorInfo interface,
1228 in XPCOM, it extends the nsIException interface. In both cases,
1229 it provides a set of common attributes to retrieve error
1230 information.
1231
1232 Sometimes invocation of some component's method may involve methods of
1233 other components that may also fail (independently of this method's
1234 failure), or a series of non-fatal errors may precede a fatal error that
1235 causes method failure. In cases like that, it may be desirable to preserve
1236 information about all errors happened during method invocation and deliver
1237 it to the caller. The <link to="#next"/> attribute is intended
1238 specifically for this purpose and allows to represent a chain of errors
1239 through a single IVirtualBoxErrorInfo object set after method invocation.
1240
1241 <note>errors are stored to a chain in the reverse order, i.e. the
1242 initial error object you query right after method invocation is the last
1243 error set by the callee, the object it points to in the @a next attribute
1244 is the previous error and so on, up to the first error (which is the last
1245 in the chain).</note>
1246 </desc>
1247
1248 <attribute name="resultCode" type="long" readonly="yes">
1249 <desc>
1250 Result code of the error.
1251 Usually, it will be the same as the result code returned
1252 by the method that provided this error information, but not
1253 always. For example, on Win32, CoCreateInstance() will most
1254 likely return E_NOINTERFACE upon unsuccessful component
1255 instantiation attempt, but not the value the component factory
1256 returned. Value is typed 'long', not 'result',
1257 to make interface usable from scripting languages.
1258 <note>
1259 In MS COM, there is no equivalent.
1260 In XPCOM, it is the same as nsIException::result.
1261 </note>
1262 </desc>
1263 </attribute>
1264
1265 <attribute name="interfaceID" type="uuid" mod="string" readonly="yes">
1266 <desc>
1267 UUID of the interface that defined the error.
1268 <note>
1269 In MS COM, it is the same as IErrorInfo::GetGUID, except for the
1270 data type.
1271 In XPCOM, there is no equivalent.
1272 </note>
1273 </desc>
1274 </attribute>
1275
1276 <attribute name="component" type="wstring" readonly="yes">
1277 <desc>
1278 Name of the component that generated the error.
1279 <note>
1280 In MS COM, it is the same as IErrorInfo::GetSource.
1281 In XPCOM, there is no equivalent.
1282 </note>
1283 </desc>
1284 </attribute>
1285
1286 <attribute name="text" type="wstring" readonly="yes">
1287 <desc>
1288 Text description of the error.
1289 <note>
1290 In MS COM, it is the same as IErrorInfo::GetDescription.
1291 In XPCOM, it is the same as nsIException::message.
1292 </note>
1293 </desc>
1294 </attribute>
1295
1296 <attribute name="next" type="IVirtualBoxErrorInfo" readonly="yes">
1297 <desc>
1298 Next error object if there is any, or @c null otherwise.
1299 <note>
1300 In MS COM, there is no equivalent.
1301 In XPCOM, it is the same as nsIException::inner.
1302 </note>
1303 </desc>
1304 </attribute>
1305
1306 </interface>
1307
1308 <!--
1309 // IVirtualBox
1310 /////////////////////////////////////////////////////////////////////////
1311 -->
1312
1313 <interface
1314 name="IDHCPServer" extends="$unknown"
1315 uuid="6cfe387c-74fb-4ca7-bff6-973bec8af7a3"
1316 wsmap="managed"
1317 >
1318 <desc>
1319 The IDHCPServer interface represents the vbox DHCP server configuration.
1320
1321 To enumerate all the DHCP servers on the host, use the
1322 <link to="IVirtualBox::DHCPServers"/> attribute.
1323 </desc>
1324
1325 <attribute name="enabled" type="boolean">
1326 <desc>
1327 specifies if the DHCP server is enabled
1328 </desc>
1329 </attribute>
1330
1331 <attribute name="IPAddress" type="wstring" readonly="yes">
1332 <desc>
1333 specifies server IP
1334 </desc>
1335 </attribute>
1336
1337 <attribute name="networkMask" type="wstring" readonly="yes">
1338 <desc>
1339 specifies server network mask
1340 </desc>
1341 </attribute>
1342
1343 <attribute name="networkName" type="wstring" readonly="yes">
1344 <desc>
1345 specifies internal network name the server is used for
1346 </desc>
1347 </attribute>
1348
1349 <attribute name="lowerIP" type="wstring" readonly="yes">
1350 <desc>
1351 specifies from IP address in server address range
1352 </desc>
1353 </attribute>
1354
1355 <attribute name="upperIP" type="wstring" readonly="yes">
1356 <desc>
1357 specifies to IP address in server address range
1358 </desc>
1359 </attribute>
1360
1361 <method name="setConfiguration">
1362 <desc>
1363 configures the server
1364 <result name="E_INVALIDARG">
1365 invalid configuration supplied
1366 </result>
1367 </desc>
1368 <param name="IPAddress" type="wstring" dir="in">
1369 <desc>
1370 server IP address
1371 </desc>
1372 </param>
1373 <param name="networkMask" type="wstring" dir="in">
1374 <desc>
1375 server network mask
1376 </desc>
1377 </param>
1378 <param name="FromIPAddress" type="wstring" dir="in">
1379 <desc>
1380 server From IP address for address range
1381 </desc>
1382 </param>
1383 <param name="ToIPAddress" type="wstring" dir="in">
1384 <desc>
1385 server To IP address for address range
1386 </desc>
1387 </param>
1388 </method>
1389
1390 <method name="start">
1391 <desc>
1392 Starts DHCP server process.
1393 <result name="E_FAIL">
1394 Failed to start the process.
1395 </result>
1396 </desc>
1397 <param name="networkName" type="wstring" dir="in">
1398 <desc>
1399 Name of internal network DHCP server should attach to.
1400 </desc>
1401 </param>
1402 <param name="trunkName" type="wstring" dir="in">
1403 <desc>
1404 Name of internal network trunk.
1405 </desc>
1406 </param>
1407 <param name="trunkType" type="wstring" dir="in">
1408 <desc>
1409 Type of internal network trunk.
1410 </desc>
1411 </param>
1412 </method>
1413
1414 <method name="stop">
1415 <desc>
1416 Stops DHCP server process.
1417 <result name="E_FAIL">
1418 Failed to stop the process.
1419 </result>
1420 </desc>
1421 </method>
1422 </interface>
1423
1424 <interface
1425 name="IVirtualBox" extends="$unknown"
1426 uuid="5c8814a1-2a35-402d-8680-68e5cb4e72aa"
1427 wsmap="managed"
1428 >
1429 <desc>
1430 The IVirtualBox interface represents the main interface exposed by the
1431 product that provides virtual machine management.
1432
1433 An instance of IVirtualBox is required for the product to do anything
1434 useful. Even though the interface does not expose this, internally,
1435 IVirtualBox is implemented as a singleton and actually lives in the
1436 process of the VirtualBox server (VBoxSVC.exe). This makes sure that
1437 IVirtualBox can track the state of all virtual machines on a particular
1438 host, regardless of which frontend started them.
1439
1440 To enumerate all the virtual machines on the host, use the
1441 <link to="IVirtualBox::machines"/> attribute.
1442 </desc>
1443
1444 <attribute name="version" type="wstring" readonly="yes">
1445 <desc>
1446 A string representing the version number of the product. The
1447 format is 3 integer numbers divided by dots (e.g. 1.0.1). The
1448 last number represents the build number and will frequently change.
1449
1450 This may be followed by a _ALPHA[0-9]*, _BETA[0-9]* or _RC[0-9]* tag
1451 in prerelease builds. Non-Oracle builds may (/shall) also have a
1452 publisher tag, at the end. The publisher tag starts with an underscore
1453 just like the prerelease build type tag.
1454 </desc>
1455 </attribute>
1456
1457 <attribute name="versionNormalized" type="wstring" readonly="yes">
1458 <desc>
1459 A string representing the version number of the product,
1460 without the publisher information (but still with other tags).
1461 See <link to="#version" />.
1462 </desc>
1463 </attribute>
1464
1465 <attribute name="revision" type="unsigned long" readonly="yes">
1466 <desc>
1467 The internal build revision number of the product.
1468 </desc>
1469 </attribute>
1470
1471 <attribute name="packageType" type="wstring" readonly="yes">
1472 <desc>
1473 A string representing the package type of this product. The
1474 format is OS_ARCH_DIST where OS is either WINDOWS, LINUX,
1475 SOLARIS, DARWIN. ARCH is either 32BITS or 64BITS. DIST
1476 is either GENERIC, UBUNTU_606, UBUNTU_710, or something like
1477 this.
1478 </desc>
1479 </attribute>
1480
1481 <attribute name="APIVersion" type="wstring" readonly="yes">
1482 <desc>
1483 A string representing the VirtualBox API version number. The format is
1484 2 integer numbers divided by an underscore (e.g. 1_0). After the
1485 first public release of packages with a particular API version the
1486 API will not be changed in an incompatible way. Note that this
1487 guarantee does not apply to development builds, and also there is no
1488 guarantee that this version is identical to the first two integer
1489 numbers of the package version.
1490 </desc>
1491 </attribute>
1492
1493 <attribute name="homeFolder" type="wstring" readonly="yes">
1494 <desc>
1495 Full path to the directory where the global settings file,
1496 <tt>VirtualBox.xml</tt>, is stored.
1497
1498 In this version of VirtualBox, the value of this property is
1499 always <tt>&lt;user_dir&gt;/.VirtualBox</tt> (where
1500 <tt>&lt;user_dir&gt;</tt> is the path to the user directory,
1501 as determined by the host OS), and cannot be changed.
1502
1503 This path is also used as the base to resolve relative paths in
1504 places where relative paths are allowed (unless otherwise
1505 expressly indicated).
1506 </desc>
1507 </attribute>
1508
1509 <attribute name="settingsFilePath" type="wstring" readonly="yes">
1510 <desc>
1511 Full name of the global settings file.
1512 The value of this property corresponds to the value of
1513 <link to="#homeFolder"/> plus <tt>/VirtualBox.xml</tt>.
1514 </desc>
1515 </attribute>
1516
1517 <attribute name="host" type="IHost" readonly="yes">
1518 <desc>Associated host object.</desc>
1519 </attribute>
1520
1521 <attribute name="systemProperties" type="ISystemProperties" readonly="yes">
1522 <desc>Associated system information object.</desc>
1523 </attribute>
1524
1525 <attribute name="machines" type="IMachine" readonly="yes" safearray="yes">
1526 <desc>
1527 Array of machine objects registered within this VirtualBox instance.
1528 </desc>
1529 </attribute>
1530
1531 <attribute name="machineGroups" type="wstring" readonly="yes" safearray="yes">
1532 <desc>
1533 Array of all machine group names which are used by the machines which
1534 are accessible. Each group is only listed once, however they are listed
1535 in no particular order and there is no guarantee that there are no gaps
1536 in the group hierarchy (i.e. <tt>"/"</tt>, <tt>"/group/subgroup"</tt>
1537 is a valid result).
1538 </desc>
1539 </attribute>
1540
1541 <attribute name="hardDisks" type="IMedium" readonly="yes" safearray="yes">
1542 <desc>
1543 Array of medium objects known to this VirtualBox installation.
1544
1545 This array contains only base media. All differencing
1546 media of the given base medium can be enumerated using
1547 <link to="IMedium::children"/>.
1548 </desc>
1549 </attribute>
1550
1551 <attribute name="DVDImages" type="IMedium" readonly="yes" safearray="yes">
1552 <desc>
1553 Array of CD/DVD image objects currently in use by this VirtualBox instance.
1554 </desc>
1555 </attribute>
1556
1557 <attribute name="floppyImages" type="IMedium" readonly="yes" safearray="yes">
1558 <desc>
1559 Array of floppy image objects currently in use by this VirtualBox instance.
1560 </desc>
1561 </attribute>
1562
1563 <attribute name="progressOperations" type="IProgress" readonly="yes" safearray="yes"/>
1564
1565 <attribute name="guestOSTypes" type="IGuestOSType" readonly="yes" safearray="yes"/>
1566
1567 <attribute name="sharedFolders" type="ISharedFolder" readonly="yes" safearray="yes">
1568 <desc>
1569 Collection of global shared folders. Global shared folders are
1570 available to all virtual machines.
1571
1572 New shared folders are added to the collection using
1573 <link to="#createSharedFolder"/>. Existing shared folders can be
1574 removed using <link to="#removeSharedFolder"/>.
1575
1576 <note>
1577 In the current version of the product, global shared folders are not
1578 implemented and therefore this collection is always empty.
1579 </note>
1580 </desc>
1581 </attribute>
1582
1583 <attribute name="performanceCollector" type="IPerformanceCollector" readonly="yes">
1584 <desc>
1585 Associated performance collector object.
1586 </desc>
1587 </attribute>
1588
1589 <attribute name="DHCPServers" type="IDHCPServer" safearray="yes" readonly="yes">
1590 <desc>
1591 DHCP servers.
1592 </desc>
1593 </attribute>
1594
1595 <attribute name="eventSource" type="IEventSource" readonly="yes">
1596 <desc>
1597 Event source for VirtualBox events.
1598 </desc>
1599 </attribute>
1600
1601 <attribute name="extensionPackManager" type="IExtPackManager" readonly="yes">
1602 <desc>
1603 The extension pack manager.
1604 </desc>
1605 </attribute>
1606
1607
1608 <attribute name="internalNetworks" type="wstring" safearray="yes" readonly="yes">
1609 <desc>
1610 Names of all internal networks.
1611 </desc>
1612 </attribute>
1613
1614 <attribute name="genericNetworkDrivers" type="wstring" safearray="yes" readonly="yes">
1615 <desc>
1616 Names of all generic network drivers.
1617 </desc>
1618 </attribute>
1619
1620 <method name="composeMachineFilename">
1621 <desc>
1622 Returns a recommended full path of the settings file name for a new virtual
1623 machine.
1624
1625 This API serves two purposes:
1626
1627 <ul>
1628 <li>It gets called by <link to="#createMachine" /> if @c null or
1629 empty string (which is recommended) is specified for the
1630 @a settingsFile argument there, which means that API should use
1631 a recommended default file name.</li>
1632
1633 <li>It can be called manually by a client software before creating a machine,
1634 e.g. if that client wants to pre-create the machine directory to create
1635 virtual hard disks in that directory together with the new machine
1636 settings file. In that case, the file name should be stripped from the
1637 full settings file path returned by this function to obtain the
1638 machine directory.</li>
1639 </ul>
1640
1641 See <link to="IMachine::name"/> and <link to="#createMachine"/> for more
1642 details about the machine name.
1643
1644 @a groupName defines which additional subdirectory levels should be
1645 included. It must be either a valid group name or @c null or empty
1646 string which designates that the machine will not be related to a
1647 machine group.
1648
1649 If @a baseFolder is a @c null or empty string (which is recommended), the
1650 default machine settings folder
1651 (see <link to="ISystemProperties::defaultMachineFolder" />) will be used as
1652 a base folder for the created machine, resulting in a file name like
1653 "/home/user/VirtualBox VMs/name/name.vbox". Otherwise the given base folder
1654 will be used.
1655
1656 This method does not access the host disks. In particular, it does not check
1657 for whether a machine with this name already exists.
1658 </desc>
1659 <param name="name" type="wstring" dir="in">
1660 <desc>Suggested machine name.</desc>
1661 </param>
1662 <param name="group" type="wstring" dir="in">
1663 <desc>Machine group name for the new machine or machine group. It is
1664 used to determine the right subdirectory.</desc>
1665 </param>
1666 <param name="baseFolder" type="wstring" dir="in">
1667 <desc>Base machine folder (optional).</desc>
1668 </param>
1669 <param name="file" type="wstring" dir="return">
1670 <desc>Fully qualified path where the machine would be created.</desc>
1671 </param>
1672 </method>
1673
1674 <method name="createMachine">
1675 <desc>
1676 Creates a new virtual machine by creating a machine settings file at
1677 the given location.
1678
1679 VirtualBox machine settings files use a custom XML dialect. Starting
1680 with VirtualBox 4.0, a ".vbox" extension is recommended, but not enforced,
1681 and machine files can be created at arbitrary locations.
1682
1683 However, it is recommended that machines are created in the default
1684 machine folder (e.g. "/home/user/VirtualBox VMs/name/name.vbox"; see
1685 <link to="ISystemProperties::defaultMachineFolder" />). If you specify
1686 @c null or empty string (which is recommended) for the @a settingsFile
1687 argument, <link to="#composeMachineFilename" /> is called automatically
1688 to have such a recommended name composed based on the machine name
1689 given in the @a name argument and the primary group.
1690
1691 If the resulting settings file already exists, this method will fail,
1692 unless @a forceOverwrite is set.
1693
1694 The new machine is created unregistered, with the initial configuration
1695 set according to the specified guest OS type. A typical sequence of
1696 actions to create a new virtual machine is as follows:
1697
1698 <ol>
1699 <li>
1700 Call this method to have a new machine created. The returned machine
1701 object will be "mutable" allowing to change any machine property.
1702 </li>
1703
1704 <li>
1705 Configure the machine using the appropriate attributes and methods.
1706 </li>
1707
1708 <li>
1709 Call <link to="IMachine::saveSettings" /> to write the settings
1710 to the machine's XML settings file. The configuration of the newly
1711 created machine will not be saved to disk until this method is
1712 called.
1713 </li>
1714
1715 <li>
1716 Call <link to="#registerMachine" /> to add the machine to the list
1717 of machines known to VirtualBox.
1718 </li>
1719 </ol>
1720
1721 The specified guest OS type identifier must match an ID of one of known
1722 guest OS types listed in the <link to="IVirtualBox::guestOSTypes"/>
1723 array.
1724
1725 Optionally, you may specify an UUID of to assign to the created machine.
1726 However, this is not recommended and you should normally pass an empty
1727 (@c null) UUID to this method so that a new UUID will be automatically
1728 generated for every created machine. You can use UUID
1729 00000000-0000-0000-0000-000000000000 as @c null value.
1730
1731 <note>
1732 There is no way to change the name of the settings file or
1733 subfolder of the created machine directly.
1734 </note>
1735
1736 <result name="VBOX_E_OBJECT_NOT_FOUND">
1737 @a osTypeId is invalid.
1738 </result>
1739 <result name="VBOX_E_FILE_ERROR">
1740 Resulting settings file name is invalid or the settings file already
1741 exists or could not be created due to an I/O error.
1742 </result>
1743 <result name="E_INVALIDARG">
1744 @a name is empty or @c null.
1745 </result>
1746 </desc>
1747
1748 <param name="settingsFile" type="wstring" dir="in">
1749 <desc>Fully qualified path where the settings file should be created,
1750 empty string or @c null for a default folder and file based on the
1751 @a name argument and the primary group.
1752 (see <link to="#composeMachineFilename" />).</desc>
1753 </param>
1754 <param name="name" type="wstring" dir="in">
1755 <desc>Machine name.</desc>
1756 </param>
1757 <param name="groups" type="wstring" safearray="yes" dir="in">
1758 <desc>Array of group names. @c null or an empty array have the same
1759 meaning as an array with just the empty string or <tt>"/"</tt>, i.e.
1760 create a machine without group association.</desc>
1761 </param>
1762 <param name="osTypeId" type="wstring" dir="in">
1763 <desc>Guest OS Type ID.</desc>
1764 </param>
1765 <param name="id" type="uuid" mod="string" dir="in">
1766 <desc>Machine UUID (optional).</desc>
1767 </param>
1768 <param name="forceOverwrite" type="boolean" dir="in">
1769 <desc>If true, an existing machine settings file will be overwritten.</desc>
1770 </param>
1771 <param name="machine" type="IMachine" dir="return">
1772 <desc>Created machine object.</desc>
1773 </param>
1774 </method>
1775
1776 <method name="openMachine">
1777 <desc>
1778 Opens a virtual machine from the existing settings file.
1779 The opened machine remains unregistered until you call
1780 <link to="#registerMachine"/>.
1781
1782 The specified settings file name must be fully qualified.
1783 The file must exist and be a valid machine XML settings file
1784 whose contents will be used to construct the machine object.
1785
1786 <result name="VBOX_E_FILE_ERROR">
1787 Settings file name invalid, not found or sharing violation.
1788 </result>
1789 </desc>
1790 <param name="settingsFile" type="wstring" dir="in">
1791 <desc>
1792 Name of the machine settings file.
1793 </desc>
1794 </param>
1795 <param name="machine" type="IMachine" dir="return">
1796 <desc>Opened machine object.</desc>
1797 </param>
1798 <note>
1799 <link to="IMachine::settingsModified"/> will return
1800 @c false for the created machine, until any of machine settings
1801 are changed.
1802 </note>
1803 </method>
1804
1805 <method name="registerMachine">
1806 <desc>
1807
1808 Registers the machine previously created using
1809 <link to="#createMachine"/> or opened using
1810 <link to="#openMachine"/> within this VirtualBox installation. After
1811 successful method invocation, the
1812 <link to="IMachineRegisteredEvent"/> event is fired.
1813
1814 <note>
1815 This method implicitly calls <link to="IMachine::saveSettings"/>
1816 to save all current machine settings before registering it.
1817 </note>
1818
1819 <result name="VBOX_E_OBJECT_NOT_FOUND">
1820 No matching virtual machine found.
1821 </result>
1822 <result name="VBOX_E_INVALID_OBJECT_STATE">
1823 Virtual machine was not created within this VirtualBox instance.
1824 </result>
1825
1826 </desc>
1827 <param name="machine" type="IMachine" dir="in"/>
1828 </method>
1829
1830 <method name="findMachine">
1831 <desc>
1832 Attempts to find a virtual machine given its name or UUID.
1833
1834 <note>Inaccessible machines cannot be found by name, only by UUID, because their name
1835 cannot safely be determined.</note>
1836
1837 <result name="VBOX_E_OBJECT_NOT_FOUND">
1838 Could not find registered machine matching @a nameOrId.
1839 </result>
1840
1841 </desc>
1842 <param name="nameOrId" type="wstring" dir="in">
1843 <desc>What to search for. This can either be the UUID or the name of a virtual machine.</desc>
1844 </param>
1845 <param name="machine" type="IMachine" dir="return">
1846 <desc>Machine object, if found.</desc>
1847 </param>
1848 </method>
1849
1850 <method name="getMachinesByGroups">
1851 <desc>
1852 Gets all machine references which are in one of the specified groups.
1853 </desc>
1854 <param name="groups" type="wstring" dir="in" safearray="yes">
1855 <desc>What groups to match. The usual group list rules apply, i.e.
1856 passing an empty list will match VMs in the toplevel group, likewise
1857 the empty string.</desc>
1858 </param>
1859 <param name="machines" type="IMachine" dir="return" safearray="yes">
1860 <desc>All machines which matched.</desc>
1861 </param>
1862 </method>
1863
1864 <method name="getMachineStates">
1865 <desc>
1866 Gets the state of several machines in a single operation.
1867 </desc>
1868 <param name="machines" type="IMachine" dir="in" safearray="yes">
1869 <desc>Array with the machine references.</desc>
1870 </param>
1871 <param name="states" type="MachineState" dir="return" safearray="yes">
1872 <desc>Machine states, corresponding to the machines.</desc>
1873 </param>
1874 </method>
1875
1876 <method name="createAppliance">
1877 <desc>
1878 Creates a new appliance object, which represents an appliance in the Open Virtual Machine
1879 Format (OVF). This can then be used to import an OVF appliance into VirtualBox or to export
1880 machines as an OVF appliance; see the documentation for <link to="IAppliance" /> for details.
1881 </desc>
1882 <param name="appliance" type="IAppliance" dir="return">
1883 <desc>New appliance.</desc>
1884 </param>
1885 </method>
1886
1887 <method name="createHardDisk">
1888 <desc>
1889 Creates a new base medium object that will use the given storage
1890 format and location for medium data.
1891
1892 The actual storage unit is not created by this method. In order to
1893 do it, and before you are able to attach the created medium to
1894 virtual machines, you must call one of the following methods to
1895 allocate a format-specific storage unit at the specified location:
1896 <ul>
1897 <li><link to="IMedium::createBaseStorage"/></li>
1898 <li><link to="IMedium::createDiffStorage"/></li>
1899 </ul>
1900
1901 Some medium attributes, such as <link to="IMedium::id"/>, may
1902 remain uninitialized until the medium storage unit is successfully
1903 created by one of the above methods.
1904
1905 After the storage unit is successfully created, it will be
1906 accessible through the <link to="#openMedium"/> method and can
1907 be found in the <link to="#hardDisks"/> array.
1908
1909 The list of all storage formats supported by this VirtualBox
1910 installation can be obtained using
1911 <link to="ISystemProperties::mediumFormats"/>. If the @a format
1912 attribute is empty or @c null then the default storage format
1913 specified by <link to="ISystemProperties::defaultHardDiskFormat"/> will
1914 be used for creating a storage unit of the medium.
1915
1916 Note that the format of the location string is storage format specific.
1917 See <link to="IMedium::location"/> and IMedium for more details.
1918
1919 <result name="VBOX_E_OBJECT_NOT_FOUND">
1920 @a format identifier is invalid. See
1921 <link to="ISystemProperties::mediumFormats"/>.
1922 </result>
1923 <result name="VBOX_E_FILE_ERROR">
1924 @a location is a not valid file name (for file-based formats only).
1925 </result>
1926 </desc>
1927 <param name="format" type="wstring" dir="in">
1928 <desc>
1929 Identifier of the storage format to use for the new medium.
1930 </desc>
1931 </param>
1932 <param name="location" type="wstring" dir="in">
1933 <desc>
1934 Location of the storage unit for the new medium.
1935 </desc>
1936 </param>
1937 <param name="medium" type="IMedium" dir="return">
1938 <desc>Created medium object.</desc>
1939 </param>
1940 </method>
1941
1942 <method name="openMedium">
1943 <desc>
1944 Finds existing media or opens a medium from an existing storage location.
1945
1946 Once a medium has been opened, it can be passed to other VirtualBox
1947 methods, in particular to <link to="IMachine::attachDevice" />.
1948
1949 Depending on the given device type, the file at the storage location
1950 must be in one of the media formats understood by VirtualBox:
1951
1952 <ul>
1953 <li>With a "HardDisk" device type, the file must be a hard disk image
1954 in one of the formats supported by VirtualBox (see
1955 <link to="ISystemProperties::mediumFormats" />).
1956 After this method succeeds, if the medium is a base medium, it
1957 will be added to the <link to="#hardDisks"/> array attribute. </li>
1958 <li>With a "DVD" device type, the file must be an ISO 9960 CD/DVD image.
1959 After this method succeeds, the medium will be added to the
1960 <link to="#DVDImages"/> array attribute.</li>
1961 <li>With a "Floppy" device type, the file must be an RAW floppy image.
1962 After this method succeeds, the medium will be added to the
1963 <link to="#floppyImages"/> array attribute.</li>
1964 </ul>
1965
1966 After having been opened, the medium can be re-found by this method
1967 and can be attached to virtual machines. See <link to="IMedium" /> for
1968 more details.
1969
1970 The UUID of the newly opened medium will either be retrieved from the
1971 storage location, if the format supports it (e.g. for hard disk images),
1972 or a new UUID will be randomly generated (e.g. for ISO and RAW files).
1973 If for some reason you need to change the medium's UUID, use
1974 <link to="IMedium::setIds" />.
1975
1976 If a differencing hard disk medium is to be opened by this method, the
1977 operation will succeed only if its parent medium and all ancestors,
1978 if any, are already known to this VirtualBox installation (for example,
1979 were opened by this method before).
1980
1981 This method attempts to guess the storage format of the specified medium
1982 by reading medium data at the specified location.
1983
1984 If @a accessMode is ReadWrite (which it should be for hard disks and floppies),
1985 the image is opened for read/write access and must have according permissions,
1986 as VirtualBox may actually write status information into the disk's metadata
1987 sections.
1988
1989 Note that write access is required for all typical hard disk usage in VirtualBox,
1990 since VirtualBox may need to write metadata such as a UUID into the image.
1991 The only exception is opening a source image temporarily for copying and
1992 cloning (see <link to="IMedium::cloneTo" /> when the image will be closed
1993 again soon.
1994
1995 The format of the location string is storage format specific. See
1996 <link to="IMedium::location"/> and IMedium for more details.
1997
1998 <result name="VBOX_E_FILE_ERROR">
1999 Invalid medium storage file location or could not find the medium
2000 at the specified location.
2001 </result>
2002 <result name="VBOX_E_IPRT_ERROR">
2003 Could not get medium storage format.
2004 </result>
2005 <result name="E_INVALIDARG">
2006 Invalid medium storage format.
2007 </result>
2008 <result name="VBOX_E_INVALID_OBJECT_STATE">
2009 Medium has already been added to a media registry.
2010 </result>
2011 </desc>
2012 <param name="location" type="wstring" dir="in">
2013 <desc>
2014 Location of the storage unit that contains medium data in one of
2015 the supported storage formats.
2016 </desc>
2017 </param>
2018 <param name="deviceType" type="DeviceType" dir="in">
2019 <desc>
2020 Must be one of "HardDisk", "DVD" or "Floppy".
2021 </desc>
2022 </param>
2023 <param name="accessMode" type="AccessMode" dir="in">
2024 <desc>Whether to open the image in read/write or read-only mode. For
2025 a "DVD" device type, this is ignored and read-only mode is always assumed.</desc>
2026 </param>
2027 <param name="forceNewUuid" type="boolean" dir="in">
2028 <desc>Allows the caller to request a completely new medium UUID for
2029 the image which is to be opened. Useful if one intends to open an exact
2030 copy of a previously opened image, as this would normally fail due to
2031 the duplicate UUID.</desc>
2032 </param>
2033 <param name="medium" type="IMedium" dir="return">
2034 <desc>Opened medium object.</desc>
2035 </param>
2036 </method>
2037
2038 <method name="getGuestOSType">
2039 <desc>
2040 Returns an object describing the specified guest OS type.
2041
2042 The requested guest OS type is specified using a string which is a
2043 mnemonic identifier of the guest operating system, such as
2044 <tt>"win31"</tt> or <tt>"ubuntu"</tt>. The guest OS type ID of a
2045 particular virtual machine can be read or set using the
2046 <link to="IMachine::OSTypeId"/> attribute.
2047
2048 The <link to="IVirtualBox::guestOSTypes"/> collection contains all
2049 available guest OS type objects. Each object has an
2050 <link to="IGuestOSType::id"/> attribute which contains an identifier of
2051 the guest OS this object describes.
2052
2053 <result name="E_INVALIDARG">
2054 @a id is not a valid Guest OS type.
2055 </result>
2056
2057 </desc>
2058 <param name="id" type="uuid" mod="string" dir="in">
2059 <desc>Guest OS type ID string.</desc>
2060 </param>
2061 <param name="type" type="IGuestOSType" dir="return">
2062 <desc>Guest OS type object.</desc>
2063 </param>
2064 </method>
2065
2066 <method name="createSharedFolder">
2067 <desc>
2068 Creates a new global shared folder by associating the given logical
2069 name with the given host path, adds it to the collection of shared
2070 folders and starts sharing it. Refer to the description of
2071 <link to="ISharedFolder"/> to read more about logical names.
2072 <note>
2073 In the current implementation, this operation is not
2074 implemented.
2075 </note>
2076 </desc>
2077 <param name="name" type="wstring" dir="in">
2078 <desc>Unique logical name of the shared folder.</desc>
2079 </param>
2080 <param name="hostPath" type="wstring" dir="in">
2081 <desc>Full path to the shared folder in the host file system.</desc>
2082 </param>
2083 <param name="writable" type="boolean" dir="in">
2084 <desc>Whether the share is writable or readonly</desc>
2085 </param>
2086 <param name="automount" type="boolean" dir="in">
2087 <desc>Whether the share gets automatically mounted by the guest
2088 or not.</desc>
2089 </param>
2090 </method>
2091
2092 <method name="removeSharedFolder">
2093 <desc>
2094 Removes the global shared folder with the given name previously
2095 created by <link to="#createSharedFolder"/> from the collection of
2096 shared folders and stops sharing it.
2097 <note>
2098 In the current implementation, this operation is not
2099 implemented.
2100 </note>
2101 </desc>
2102 <param name="name" type="wstring" dir="in">
2103 <desc>Logical name of the shared folder to remove.</desc>
2104 </param>
2105 </method>
2106
2107 <method name="getExtraDataKeys">
2108 <desc>
2109 Returns an array representing the global extra data keys which currently
2110 have values defined.
2111 </desc>
2112 <param name="value" type="wstring" dir="return" safearray="yes">
2113 <desc>Array of extra data keys.</desc>
2114 </param>
2115 </method>
2116
2117 <method name="getExtraData">
2118 <desc>
2119 Returns associated global extra data.
2120
2121 If the requested data @a key does not exist, this function will
2122 succeed and return an empty string in the @a value argument.
2123
2124 <result name="VBOX_E_FILE_ERROR">
2125 Settings file not accessible.
2126 </result>
2127 <result name="VBOX_E_XML_ERROR">
2128 Could not parse the settings file.
2129 </result>
2130
2131 </desc>
2132 <param name="key" type="wstring" dir="in">
2133 <desc>Name of the data key to get.</desc>
2134 </param>
2135 <param name="value" type="wstring" dir="return">
2136 <desc>Value of the requested data key.</desc>
2137 </param>
2138 </method>
2139
2140 <method name="setExtraData">
2141 <desc>
2142 Sets associated global extra data.
2143
2144 If you pass @c null or empty string as a key @a value, the given @a key
2145 will be deleted.
2146
2147 <note>
2148 Before performing the actual data change, this method will ask all
2149 registered event listener using the
2150 <link to="IExtraDataCanChangeEvent"/>
2151 notification for a permission. If one of the listeners refuses the
2152 new value, the change will not be performed.
2153 </note>
2154 <note>
2155 On success, the
2156 <link to="IExtraDataChangedEvent"/> notification
2157 is called to inform all registered listeners about a successful data
2158 change.
2159 </note>
2160
2161 <result name="VBOX_E_FILE_ERROR">
2162 Settings file not accessible.
2163 </result>
2164 <result name="VBOX_E_XML_ERROR">
2165 Could not parse the settings file.
2166 </result>
2167 <result name="E_ACCESSDENIED">
2168 Modification request refused.
2169 </result>
2170
2171 </desc>
2172 <param name="key" type="wstring" dir="in">
2173 <desc>Name of the data key to set.</desc>
2174 </param>
2175 <param name="value" type="wstring" dir="in">
2176 <desc>Value to assign to the key.</desc>
2177 </param>
2178 </method>
2179
2180 <method name="setSettingsSecret">
2181 <desc>
2182 Unlocks the secret data by passing the unlock password to the
2183 server. The server will cache the password for that machine.
2184
2185 <result name="VBOX_E_INVALID_VM_STATE">
2186 Virtual machine is not mutable.
2187 </result>
2188
2189 </desc>
2190 <param name="password" type="wstring" dir="in">
2191 <desc>
2192 The cipher key.
2193 </desc>
2194 </param>
2195 </method>
2196
2197 <!--method name="createDHCPServerForInterface">
2198 <desc>
2199 Creates a DHCP server settings to be used for the given interface
2200 <result name="E_INVALIDARG">
2201 Host network interface @a name already exists.
2202 </result>
2203 </desc>
2204 <param name="interface" type="IHostNetworkInterface" dir="in">
2205 <desc>Network Interface</desc>
2206 </param>
2207 <param name="server" type="IDHCPServer" dir="out">
2208 <desc>DHCP server settings</desc>
2209 </param>
2210 </method-->
2211
2212 <method name="createDHCPServer">
2213 <desc>
2214 Creates a DHCP server settings to be used for the given internal network name
2215 <result name="E_INVALIDARG">
2216 Host network interface @a name already exists.
2217 </result>
2218 </desc>
2219 <param name="name" type="wstring" dir="in">
2220 <desc>server name</desc>
2221 </param>
2222 <param name="server" type="IDHCPServer" dir="return">
2223 <desc>DHCP server settings</desc>
2224 </param>
2225 </method>
2226
2227 <method name="findDHCPServerByNetworkName">
2228 <desc>
2229 Searches a DHCP server settings to be used for the given internal network name
2230 <result name="E_INVALIDARG">
2231 Host network interface @a name already exists.
2232 </result>
2233
2234 </desc>
2235 <param name="name" type="wstring" dir="in">
2236 <desc>server name</desc>
2237 </param>
2238 <param name="server" type="IDHCPServer" dir="return">
2239 <desc>DHCP server settings</desc>
2240 </param>
2241 </method>
2242
2243 <!--method name="findDHCPServerForInterface">
2244 <desc>
2245 Searches a DHCP server settings to be used for the given interface
2246 <result name="E_INVALIDARG">
2247 Host network interface @a name already exists.
2248 </result>
2249 </desc>
2250 <param name="interface" type="IHostNetworkInterface" dir="in">
2251 <desc>Network Interface</desc>
2252 </param>
2253 <param name="server" type="IDHCPServer" dir="out">
2254 <desc>DHCP server settings</desc>
2255 </param>
2256 </method-->
2257
2258 <method name="removeDHCPServer">
2259 <desc>
2260 Removes the DHCP server settings
2261 <result name="E_INVALIDARG">
2262 Host network interface @a name already exists.
2263 </result>
2264 </desc>
2265 <param name="server" type="IDHCPServer" dir="in">
2266 <desc>DHCP server settings to be removed</desc>
2267 </param>
2268 </method>
2269
2270
2271 <method name="checkFirmwarePresent">
2272 <desc>
2273 Check if this VirtualBox installation has a firmware
2274 of the given type available, either system-wide or per-user.
2275 Optionally, this may return a hint where this firmware can be
2276 downloaded from.
2277 </desc>
2278 <param name="firmwareType" type="FirmwareType" dir="in">
2279 <desc>
2280 Type of firmware to check.
2281 </desc>
2282 </param>
2283 <param name="version" type="wstring" dir="in">
2284 <desc>Expected version number, usually empty string (presently ignored).</desc>
2285 </param>
2286
2287 <param name="url" type="wstring" dir="out">
2288 <desc>
2289 Suggested URL to download this firmware from.
2290 </desc>
2291 </param>
2292
2293 <param name="file" type="wstring" dir="out">
2294 <desc>
2295 Filename of firmware, only valid if result == TRUE.
2296 </desc>
2297 </param>
2298
2299 <param name="result" type="boolean" dir="return">
2300 <desc>If firmware of this type and version is available.</desc>
2301 </param>
2302 </method>
2303
2304 </interface>
2305
2306 <!--
2307 // IVFSExplorer
2308 /////////////////////////////////////////////////////////////////////////
2309 -->
2310
2311 <enum
2312 name="VFSType"
2313 uuid="813999ba-b949-48a8-9230-aadc6285e2f2"
2314 >
2315 <desc>
2316 Virtual file systems supported by VFSExplorer.
2317 </desc>
2318
2319 <const name="File" value="1" />
2320 <const name="Cloud" value="2" />
2321 <const name="S3" value="3" />
2322 <const name="WebDav" value="4" />
2323 </enum>
2324
2325 <enum
2326 name="VFSFileType"
2327 uuid="714333cd-44e2-415f-a245-d378fa9b1242"
2328 >
2329 <desc>
2330 File types known by VFSExplorer.
2331 </desc>
2332
2333 <const name="Unknown" value="1" />
2334 <const name="Fifo" value="2" />
2335 <const name="DevChar" value="3" />
2336 <const name="Directory" value="4" />
2337 <const name="DevBlock" value="5" />
2338 <const name="File" value="6" />
2339 <const name="SymLink" value="7" />
2340 <const name="Socket" value="8" />
2341 <const name="WhiteOut" value="9" />
2342 </enum>
2343
2344 <interface
2345 name="IVFSExplorer" extends="$unknown"
2346 uuid="003d7f92-d38e-487f-b790-8c5e8631cb2f"
2347 wsmap="managed"
2348 >
2349 <desc>
2350 The VFSExplorer interface unifies access to different file system
2351 types. This includes local file systems as well remote file systems like
2352 S3. For a list of supported types see <link to="VFSType" />.
2353 An instance of this is returned by <link to="IAppliance::createVFSExplorer" />.
2354 </desc>
2355
2356 <attribute name="path" type="wstring" readonly="yes">
2357 <desc>Returns the current path in the virtual file system.</desc>
2358 </attribute>
2359
2360 <attribute name="type" type="VFSType" readonly="yes">
2361 <desc>Returns the file system type which is currently in use.</desc>
2362 </attribute>
2363
2364 <method name="update">
2365 <desc>Updates the internal list of files/directories from the
2366 current directory level. Use <link to="#entryList" /> to get the full list
2367 after a call to this method.</desc>
2368
2369 <param name="aProgress" type="IProgress" dir="return">
2370 <desc>Progress object to track the operation completion.</desc>
2371 </param>
2372 </method>
2373
2374 <method name="cd">
2375 <desc>Change the current directory level.</desc>
2376
2377 <param name="aDir" type="wstring" dir="in">
2378 <desc>The name of the directory to go in.</desc>
2379 </param>
2380
2381 <param name="aProgress" type="IProgress" dir="return">
2382 <desc>Progress object to track the operation completion.</desc>
2383 </param>
2384 </method>
2385
2386 <method name="cdUp">
2387 <desc>Go one directory upwards from the current directory level.</desc>
2388
2389 <param name="aProgress" type="IProgress" dir="return">
2390 <desc>Progress object to track the operation completion.</desc>
2391 </param>
2392 </method>
2393
2394 <method name="entryList">
2395 <desc>Returns a list of files/directories after a call to <link
2396 to="#update" />. The user is responsible for keeping this internal
2397 list up do date.</desc>
2398
2399 <param name="aNames" type="wstring" safearray="yes" dir="out">
2400 <desc>The list of names for the entries.</desc>
2401 </param>
2402
2403 <param name="aTypes" type="unsigned long" safearray="yes" dir="out">
2404 <desc>The list of types for the entries.</desc>
2405 </param>
2406
2407 <param name="aSizes" type="unsigned long" safearray="yes" dir="out">
2408 <desc>The list of sizes (in bytes) for the entries.</desc>
2409 </param>
2410
2411 <param name="aModes" type="unsigned long" safearray="yes" dir="out">
2412 <desc>The list of file modes (in octal form) for the entries.</desc>
2413 </param>
2414 </method>
2415
2416 <method name="exists">
2417 <desc>Checks if the given file list exists in the current directory
2418 level.</desc>
2419
2420 <param name="aNames" type="wstring" safearray="yes" dir="in">
2421 <desc>The names to check.</desc>
2422 </param>
2423
2424 <param name="aExists" type="wstring" safearray="yes" dir="return">
2425 <desc>The names which exist.</desc>
2426 </param>
2427 </method>
2428
2429 <method name="remove">
2430 <desc>Deletes the given files in the current directory level.</desc>
2431
2432 <param name="aNames" type="wstring" safearray="yes" dir="in">
2433 <desc>The names to remove.</desc>
2434 </param>
2435
2436 <param name="aProgress" type="IProgress" dir="return">
2437 <desc>Progress object to track the operation completion.</desc>
2438 </param>
2439 </method>
2440
2441 </interface>
2442
2443 <enum
2444 name="ImportOptions" extends="$unknown"
2445 uuid="0a981523-3b20-4004-8ee3-dfd322202ace"
2446 >
2447
2448 <desc>
2449 Import options, used with <link to="IAppliance::importMachines" />.
2450 </desc>
2451
2452 <const name="KeepAllMACs" value="1">
2453 <desc>Don't generate new MAC addresses of the attached network adapters.</desc>
2454 </const>
2455 <const name="KeepNATMACs" value="2">
2456 <desc>Don't generate new MAC addresses of the attached network adapters when they are using NAT.</desc>
2457 </const>
2458
2459 </enum>
2460
2461
2462 <!--
2463 // IAppliance
2464 /////////////////////////////////////////////////////////////////////////
2465 -->
2466
2467 <interface
2468 name="IAppliance" extends="$unknown"
2469 uuid="3059cf9e-25c7-4f0b-9fa5-3c42e441670b"
2470 wsmap="managed"
2471 >
2472 <desc>
2473 Represents a platform-independent appliance in OVF format. An instance of this is returned
2474 by <link to="IVirtualBox::createAppliance" />, which can then be used to import and export
2475 virtual machines within an appliance with VirtualBox.
2476
2477 The OVF standard suggests two different physical file formats:
2478
2479 <ol>
2480 <li>If the appliance is distributed as a set of files, there must be at least one XML descriptor
2481 file that conforms to the OVF standard and carries an <tt>.ovf</tt> file extension. If
2482 this descriptor file references other files such as disk images, as OVF appliances typically
2483 do, those additional files must be in the same directory as the descriptor file.</li>
2484
2485 <li>If the appliance is distributed as a single file, it must be in TAR format and have the
2486 <tt>.ova</tt> file extension. This TAR file must then contain at least the OVF descriptor
2487 files and optionally other files.
2488
2489 At this time, VirtualBox does not not yet support the packed (TAR) variant; support will
2490 be added with a later version.</li>
2491 </ol>
2492
2493 <b>Importing</b> an OVF appliance into VirtualBox as instances of
2494 <link to="IMachine" /> involves the following sequence of API calls:
2495
2496 <ol>
2497 <li>Call <link to="IVirtualBox::createAppliance" />. This will create an empty IAppliance object.
2498 </li>
2499
2500 <li>On the new object, call <link to="#read" /> with the full path of the OVF file you
2501 would like to import. So long as this file is syntactically valid, this will succeed
2502 and fill the appliance object with the parsed data from the OVF file.
2503 </li>
2504
2505 <li>Next, call <link to="#interpret" />, which analyzes the OVF data and sets up the
2506 contents of the IAppliance attributes accordingly. These can be inspected by a
2507 VirtualBox front-end such as the GUI, and the suggestions can be displayed to the
2508 user. In particular, the <link to="#virtualSystemDescriptions" /> array contains
2509 instances of <link to="IVirtualSystemDescription" /> which represent the virtual
2510 systems (machines) in the OVF, which in turn describe the virtual hardware prescribed
2511 by the OVF (network and hardware adapters, virtual disk images, memory size and so on).
2512 The GUI can then give the user the option to confirm and/or change these suggestions.
2513 </li>
2514
2515 <li>If desired, call <link to="IVirtualSystemDescription::setFinalValues" /> for each
2516 virtual system (machine) to override the suggestions made by the <link to="#interpret" /> routine.
2517 </li>
2518
2519 <li>Finally, call <link to="#importMachines" /> to create virtual machines in
2520 VirtualBox as instances of <link to="IMachine" /> that match the information in the
2521 virtual system descriptions. After this call succeeded, the UUIDs of the machines created
2522 can be found in the <link to="#machines" /> array attribute.
2523 </li>
2524 </ol>
2525
2526 <b>Exporting</b> VirtualBox machines into an OVF appliance involves the following steps:
2527
2528 <ol>
2529 <li>As with importing, first call <link to="IVirtualBox::createAppliance" /> to create
2530 an empty IAppliance object.
2531 </li>
2532
2533 <li>For each machine you would like to export, call <link to="IMachine::export" />
2534 with the IAppliance object you just created. Each such call creates one instance of
2535 <link to="IVirtualSystemDescription" /> inside the appliance.
2536 </li>
2537
2538 <li>If desired, call <link to="IVirtualSystemDescription::setFinalValues" /> for each
2539 virtual system (machine) to override the suggestions made by the <link to="IMachine::export"/> routine.
2540 </li>
2541
2542 <li>Finally, call <link to="#write" /> with a path specification to have the OVF
2543 file written.</li>
2544 </ol>
2545
2546 </desc>
2547
2548 <attribute name="path" type="wstring" readonly="yes">
2549 <desc>Path to the main file of the OVF appliance, which is either the <tt>.ovf</tt> or
2550 the <tt>.ova</tt> file passed to <link to="#read" /> (for import) or
2551 <link to="#write" /> (for export).
2552 This attribute is empty until one of these methods has been called.
2553 </desc>
2554 </attribute>
2555
2556 <attribute name="disks" type="wstring" readonly="yes" safearray="yes">
2557 <desc>
2558 Array of virtual disk definitions. One such description exists for each
2559 disk definition in the OVF; each string array item represents one such piece of
2560 disk information, with the information fields separated by tab (\\t) characters.
2561
2562 The caller should be prepared for additional fields being appended to
2563 this string in future versions of VirtualBox and therefore check for
2564 the number of tabs in the strings returned.
2565
2566 In the current version, the following eight fields are returned per string
2567 in the array:
2568
2569 <ol>
2570 <li>Disk ID (unique string identifier given to disk)</li>
2571
2572 <li>Capacity (unsigned integer indicating the maximum capacity of the disk)</li>
2573
2574 <li>Populated size (optional unsigned integer indicating the current size of the
2575 disk; can be approximate; -1 if unspecified)</li>
2576
2577 <li>Format (string identifying the disk format, typically
2578 "http://www.vmware.com/specifications/vmdk.html#sparse")</li>
2579
2580 <li>Reference (where to find the disk image, typically a file name; if empty,
2581 then the disk should be created on import)</li>
2582
2583 <li>Image size (optional unsigned integer indicating the size of the image,
2584 which need not necessarily be the same as the values specified above, since
2585 the image may be compressed or sparse; -1 if not specified)</li>
2586
2587 <li>Chunk size (optional unsigned integer if the image is split into chunks;
2588 presently unsupported and always -1)</li>
2589
2590 <li>Compression (optional string equalling "gzip" if the image is gzip-compressed)</li>
2591 </ol>
2592 </desc>
2593 </attribute>
2594
2595 <attribute name="virtualSystemDescriptions" type="IVirtualSystemDescription" readonly="yes" safearray="yes">
2596 <desc> Array of virtual system descriptions. One such description is created
2597 for each virtual system (machine) found in the OVF.
2598 This array is empty until either <link to="#interpret" /> (for import) or <link to="IMachine::export" />
2599 (for export) has been called.
2600 </desc>
2601 </attribute>
2602
2603 <attribute name="machines" type="wstring" readonly="yes" safearray="yes">
2604 <desc>
2605 Contains the UUIDs of the machines created from the information in this appliances. This is only
2606 relevant for the import case, and will only contain data after a call to <link to="#importMachines" />
2607 succeeded.
2608 </desc>
2609 </attribute>
2610
2611 <method name="read">
2612 <desc>
2613 Reads an OVF file into the appliance object.
2614
2615 This method succeeds if the OVF is syntactically valid and, by itself, without errors. The
2616 mere fact that this method returns successfully does not mean that VirtualBox supports all
2617 features requested by the appliance; this can only be examined after a call to <link to="#interpret" />.
2618 </desc>
2619 <param name="file" type="wstring" dir="in">
2620 <desc>
2621 Name of appliance file to open (either with an <tt>.ovf</tt> or <tt>.ova</tt> extension, depending
2622 on whether the appliance is distributed as a set of files or as a single file, respectively).
2623 </desc>
2624 </param>
2625 <param name="aProgress" type="IProgress" dir="return">
2626 <desc>Progress object to track the operation completion.</desc>
2627 </param>
2628 </method>
2629
2630 <method name="interpret">
2631 <desc>
2632 Interprets the OVF data that was read when the appliance was constructed. After
2633 calling this method, one can inspect the
2634 <link to="#virtualSystemDescriptions" /> array attribute, which will then contain
2635 one <link to="IVirtualSystemDescription" /> for each virtual machine found in
2636 the appliance.
2637
2638 Calling this method is the second step of importing an appliance into VirtualBox;
2639 see <link to="IAppliance" /> for an overview.
2640
2641 After calling this method, one should call <link to="#getWarnings" /> to find out
2642 if problems were encountered during the processing which might later lead to
2643 errors.
2644 </desc>
2645 </method>
2646
2647 <method name="importMachines">
2648 <desc>
2649 Imports the appliance into VirtualBox by creating instances of <link to="IMachine" />
2650 and other interfaces that match the information contained in the appliance as
2651 closely as possible, as represented by the import instructions in the
2652 <link to="#virtualSystemDescriptions" /> array.
2653
2654 Calling this method is the final step of importing an appliance into VirtualBox;
2655 see <link to="IAppliance" /> for an overview.
2656
2657 Since importing the appliance will most probably involve copying and converting
2658 disk images, which can take a long time, this method operates asynchronously and
2659 returns an IProgress object to allow the caller to monitor the progress.
2660
2661 After the import succeeded, the UUIDs of the IMachine instances created can be
2662 retrieved from the <link to="#machines" /> array attribute.
2663 </desc>
2664
2665 <param name="options" type="ImportOptions" dir="in" safearray="yes">
2666 <desc>Options for the importing operation.</desc>
2667 </param>
2668
2669 <param name="aProgress" type="IProgress" dir="return">
2670 <desc>Progress object to track the operation completion.</desc>
2671 </param>
2672 </method>
2673
2674 <method name="createVFSExplorer">
2675 <desc>Returns a <link to="IVFSExplorer" /> object for the given URI.</desc>
2676
2677 <param name="aUri" type="wstring" dir="in">
2678 <desc>The URI describing the file system to use.</desc>
2679 </param>
2680
2681 <param name="aExplorer" type="IVFSExplorer" dir="return">
2682 <desc></desc>
2683 </param>
2684 </method>
2685
2686 <method name="write">
2687 <desc>
2688 Writes the contents of the appliance exports into a new OVF file.
2689
2690 Calling this method is the final step of exporting an appliance from VirtualBox;
2691 see <link to="IAppliance" /> for an overview.
2692
2693 Since exporting the appliance will most probably involve copying and converting
2694 disk images, which can take a long time, this method operates asynchronously and
2695 returns an IProgress object to allow the caller to monitor the progress.
2696 </desc>
2697 <param name="format" type="wstring" dir="in">
2698 <desc>
2699 Output format, as a string. Currently supported formats are "ovf-0.9", "ovf-1.0"
2700 and "ovf-2.0"; future versions of VirtualBox may support additional formats.
2701 </desc>
2702 </param>
2703 <param name="manifest" type="boolean" dir="in">
2704 <desc>
2705 Indicate if the optional manifest file (.mf) should be written. The manifest file
2706 is used for integrity checks prior import.
2707 </desc>
2708 </param>
2709 <param name="path" type="wstring" dir="in">
2710 <desc>
2711 Name of appliance file to open (either with an <tt>.ovf</tt> or <tt>.ova</tt> extension, depending
2712 on whether the appliance is distributed as a set of files or as a single file, respectively).
2713 </desc>
2714 </param>
2715 <param name="progress" type="IProgress" dir="return">
2716 <desc>Progress object to track the operation completion.</desc>
2717 </param>
2718 </method>
2719
2720 <method name="getWarnings">
2721 <desc>Returns textual warnings which occurred during execution of <link to="#interpret" />.</desc>
2722
2723 <param name="aWarnings" type="wstring" dir="return" safearray="yes">
2724 <desc></desc>
2725 </param>
2726 </method>
2727
2728 </interface>
2729
2730 <enum
2731 name="VirtualSystemDescriptionType"
2732 uuid="303c0900-a746-4612-8c67-79003e91f459"
2733 >
2734 <desc>Used with <link to="IVirtualSystemDescription" /> to describe the type of
2735 a configuration value.</desc>
2736
2737 <const name="Ignore" value="1" />
2738 <const name="OS" value="2" />
2739 <const name="Name" value="3" />
2740 <const name="Product" value="4" />
2741 <const name="Vendor" value="5" />
2742 <const name="Version" value="6" />
2743 <const name="ProductUrl" value="7" />
2744 <const name="VendorUrl" value="8" />
2745 <const name="Description" value="9" />
2746 <const name="License" value="10" />
2747 <const name="Miscellaneous" value="11" />
2748 <const name="CPU" value="12" />
2749 <const name="Memory" value="13" />
2750 <const name="HardDiskControllerIDE" value="14" />
2751 <const name="HardDiskControllerSATA" value="15" />
2752 <const name="HardDiskControllerSCSI" value="16" />
2753 <const name="HardDiskControllerSAS" value="17" />
2754 <const name="HardDiskImage" value="18" />
2755 <const name="Floppy" value="19" />
2756 <const name="CDROM" value="20" />
2757 <const name="NetworkAdapter" value="21" />
2758 <const name="USBController" value="22" />
2759 <const name="SoundCard" value="23" />
2760 <const name="SettingsFile" value="24">
2761 <desc>Not used/implemented right now, will be added later in 4.1.x.</desc>
2762 </const>
2763 </enum>
2764
2765 <enum
2766 name="VirtualSystemDescriptionValueType"
2767 uuid="56d9403f-3425-4118-9919-36f2a9b8c77c"
2768 >
2769 <desc>Used with <link to="IVirtualSystemDescription::getValuesByType" /> to describe the value
2770 type to fetch.</desc>
2771
2772 <const name="Reference" value="1" />
2773 <const name="Original" value="2" />
2774 <const name="Auto" value="3" />
2775 <const name="ExtraConfig" value="4" />
2776
2777 </enum>
2778
2779 <interface
2780 name="IVirtualSystemDescription" extends="$unknown"
2781 uuid="d7525e6c-531a-4c51-8e04-41235083a3d8"
2782 wsmap="managed"
2783 >
2784
2785 <desc>Represents one virtual system (machine) in an appliance. This interface is used in
2786 the <link to="IAppliance::virtualSystemDescriptions" /> array. After
2787 <link to="IAppliance::interpret" /> has been called, that array contains information
2788 about how the virtual systems described in the OVF should best be imported into
2789 VirtualBox virtual machines. See <link to="IAppliance" /> for the steps required to
2790 import an OVF into VirtualBox.
2791 </desc>
2792
2793 <attribute name="count" type="unsigned long" readonly="yes">
2794 <desc>Return the number of virtual system description entries.</desc>
2795 </attribute>
2796
2797 <method name="getDescription">
2798 <desc>Returns information about the virtual system as arrays of instruction items. In each array, the
2799 items with the same indices correspond and jointly represent an import instruction for VirtualBox.
2800
2801 The list below identifies the value sets that are possible depending on the
2802 <link to="VirtualSystemDescriptionType" /> enum value in the array item in @a aTypes[]. In each case,
2803 the array item with the same index in @a aOvfValues[] will contain the original value as contained
2804 in the OVF file (just for informational purposes), and the corresponding item in @a aVBoxValues[]
2805 will contain a suggested value to be used for VirtualBox. Depending on the description type,
2806 the @a aExtraConfigValues[] array item may also be used.
2807
2808 <ul>
2809 <li>
2810 "OS": the guest operating system type. There must be exactly one such array item on import. The
2811 corresponding item in @a aVBoxValues[] contains the suggested guest operating system for VirtualBox.
2812 This will be one of the values listed in <link to="IVirtualBox::guestOSTypes" />. The corresponding
2813 item in @a aOvfValues[] will contain a numerical value that described the operating system in the OVF.
2814 </li>
2815 <li>
2816 "Name": the name to give to the new virtual machine. There can be at most one such array item;
2817 if none is present on import, then an automatic name will be created from the operating system
2818 type. The corresponding item im @a aOvfValues[] will contain the suggested virtual machine name
2819 from the OVF file, and @a aVBoxValues[] will contain a suggestion for a unique VirtualBox
2820 <link to="IMachine" /> name that does not exist yet.
2821 </li>
2822 <li>
2823 "Description": an arbitrary description.
2824 </li>
2825 <li>
2826 "License": the EULA section from the OVF, if present. It is the responsibility of the calling
2827 code to display such a license for agreement; the Main API does not enforce any such policy.
2828 </li>
2829 <li>
2830 Miscellaneous: reserved for future use.
2831 </li>
2832 <li>
2833 "CPU": the number of CPUs. There can be at most one such item, which will presently be ignored.
2834 </li>
2835 <li>
2836 "Memory": the amount of guest RAM, in bytes. There can be at most one such array item; if none
2837 is present on import, then VirtualBox will set a meaningful default based on the operating system
2838 type.
2839 </li>
2840 <li>
2841 "HardDiskControllerIDE": an IDE hard disk controller. There can be at most two such items.
2842 An optional value in @a aOvfValues[] and @a aVBoxValues[] can be "PIIX3" or "PIIX4" to specify
2843 the type of IDE controller; this corresponds to the ResourceSubType element which VirtualBox
2844 writes into the OVF.
2845 The matching item in the @a aRefs[] array will contain an integer that items of the "Harddisk"
2846 type can use to specify which hard disk controller a virtual disk should be connected to.
2847 Note that in OVF, an IDE controller has two channels, corresponding to "master" and "slave"
2848 in traditional terminology, whereas the IDE storage controller that VirtualBox supports in
2849 its virtual machines supports four channels (primary master, primary slave, secondary master,
2850 secondary slave) and thus maps to two IDE controllers in the OVF sense.
2851 </li>
2852 <li>
2853 "HardDiskControllerSATA": an SATA hard disk controller. There can be at most one such item. This
2854 has no value in @a aOvfValues[] or @a aVBoxValues[].
2855 The matching item in the @a aRefs[] array will be used as with IDE controllers (see above).
2856 </li>
2857 <li>
2858 "HardDiskControllerSCSI": a SCSI hard disk controller. There can be at most one such item.
2859 The items in @a aOvfValues[] and @a aVBoxValues[] will either be "LsiLogic", "BusLogic" or
2860 "LsiLogicSas". (Note that in OVF, the LsiLogicSas controller is treated as a SCSI controller
2861 whereas VirtualBox considers it a class of storage controllers of its own; see
2862 <link to="StorageControllerType" />).
2863 The matching item in the @a aRefs[] array will be used as with IDE controllers (see above).
2864 </li>
2865 <li>
2866 "HardDiskImage": a virtual hard disk, most probably as a reference to an image file. There can be an
2867 arbitrary number of these items, one for each virtual disk image that accompanies the OVF.
2868
2869 The array item in @a aOvfValues[] will contain the file specification from the OVF file (without
2870 a path since the image file should be in the same location as the OVF file itself), whereas the
2871 item in @a aVBoxValues[] will contain a qualified path specification to where VirtualBox uses the
2872 hard disk image. This means that on import the image will be copied and converted from the
2873 "ovf" location to the "vbox" location; on export, this will be handled the other way round.
2874
2875 The matching item in the @a aExtraConfigValues[] array must contain a string of the following
2876 format: "controller=&lt;index&gt;;channel=&lt;c&gt;"
2877 In this string, &lt;index&gt; must be an integer specifying the hard disk controller to connect
2878 the image to. That number must be the index of an array item with one of the hard disk controller
2879 types (HardDiskControllerSCSI, HardDiskControllerSATA, HardDiskControllerIDE).
2880 In addition, &lt;c&gt; must specify the channel to use on that controller. For IDE controllers,
2881 this can be 0 or 1 for master or slave, respectively. For compatibility with VirtualBox versions
2882 before 3.2, the values 2 and 3 (for secondary master and secondary slave) are also supported, but
2883 no longer exported. For SATA and SCSI controllers, the channel can range from 0-29.
2884 </li>
2885 <li>
2886 "CDROM": a virtual CD-ROM drive. The matching item in @a aExtraConfigValue[] contains the same
2887 attachment information as with "HardDiskImage" items.
2888 </li>
2889 <li>
2890 "CDROM": a virtual floppy drive. The matching item in @a aExtraConfigValue[] contains the same
2891 attachment information as with "HardDiskImage" items.
2892 </li>
2893 <li>
2894 "NetworkAdapter": a network adapter. The array item in @a aVBoxValues[] will specify the hardware
2895 for the network adapter, whereas the array item in @a aExtraConfigValues[] will have a string
2896 of the "type=&lt;X&gt;" format, where &lt;X&gt; must be either "NAT" or "Bridged".
2897 </li>
2898 <li>
2899 "USBController": a USB controller. There can be at most one such item. If and only if such an
2900 item ispresent, USB support will be enabled for the new virtual machine.
2901 </li>
2902 <li>
2903 "SoundCard": a sound card. There can be at most one such item. If and only if such an item is
2904 present, sound support will be enabled for the new virtual machine. Note that the virtual
2905 machine in VirtualBox will always be presented with the standard VirtualBox soundcard, which
2906 may be different from the virtual soundcard expected by the appliance.
2907 </li>
2908 </ul>
2909
2910 </desc>
2911
2912 <param name="aTypes" type="VirtualSystemDescriptionType" dir="out" safearray="yes">
2913 <desc></desc>
2914 </param>
2915
2916 <param name="aRefs" type="wstring" dir="out" safearray="yes">
2917 <desc></desc>
2918 </param>
2919
2920 <param name="aOvfValues" type="wstring" dir="out" safearray="yes">
2921 <desc></desc>
2922 </param>
2923
2924 <param name="aVBoxValues" type="wstring" dir="out" safearray="yes">
2925 <desc></desc>
2926 </param>
2927
2928 <param name="aExtraConfigValues" type="wstring" dir="out" safearray="yes">
2929 <desc></desc>
2930 </param>
2931
2932 </method>
2933
2934 <method name="getDescriptionByType">
2935 <desc>This is the same as <link to="#getDescription" /> except that you can specify which types
2936 should be returned.</desc>
2937
2938 <param name="aType" type="VirtualSystemDescriptionType" dir="in">
2939 <desc></desc>
2940 </param>
2941
2942 <param name="aTypes" type="VirtualSystemDescriptionType" dir="out" safearray="yes">
2943 <desc></desc>
2944 </param>
2945
2946 <param name="aRefs" type="wstring" dir="out" safearray="yes">
2947 <desc></desc>
2948 </param>
2949
2950 <param name="aOvfValues" type="wstring" dir="out" safearray="yes">
2951 <desc></desc>
2952 </param>
2953
2954 <param name="aVBoxValues" type="wstring" dir="out" safearray="yes">
2955 <desc></desc>
2956 </param>
2957
2958 <param name="aExtraConfigValues" type="wstring" dir="out" safearray="yes">
2959 <desc></desc>
2960 </param>
2961
2962 </method>
2963
2964 <method name="getValuesByType">
2965 <desc>This is the same as <link to="#getDescriptionByType" /> except that you can specify which
2966 value types should be returned. See <link to="VirtualSystemDescriptionValueType" /> for possible
2967 values.</desc>
2968
2969 <param name="aType" type="VirtualSystemDescriptionType" dir="in">
2970 <desc></desc>
2971 </param>
2972
2973 <param name="aWhich" type="VirtualSystemDescriptionValueType" dir="in">
2974 <desc></desc>
2975 </param>
2976
2977 <param name="aValues" type="wstring" dir="return" safearray="yes">
2978 <desc></desc>
2979 </param>
2980
2981 </method>
2982
2983 <method name="setFinalValues">
2984 <desc>
2985 This method allows the appliance's user to change the configuration for the virtual
2986 system descriptions. For each array item returned from <link to="#getDescription" />,
2987 you must pass in one boolean value and one configuration value.
2988
2989 Each item in the boolean array determines whether the particular configuration item
2990 should be enabled.
2991 You can only disable items of the types HardDiskControllerIDE, HardDiskControllerSATA,
2992 HardDiskControllerSCSI, HardDiskImage, CDROM, Floppy, NetworkAdapter, USBController
2993 and SoundCard.
2994
2995 For the "vbox" and "extra configuration" values, if you pass in the same arrays
2996 as returned in the aVBoxValues and aExtraConfigValues arrays from <link to="#getDescription"/>,
2997 the configuration remains unchanged. Please see the documentation for <link to="#getDescription"/>
2998 for valid configuration values for the individual array item types. If the
2999 corresponding item in the aEnabled array is @c false, the configuration value is ignored.
3000 </desc>
3001
3002 <param name="aEnabled" type="boolean" dir="in" safearray="yes">
3003 <desc></desc>
3004 </param>
3005
3006 <param name="aVBoxValues" type="wstring" dir="in" safearray="yes">
3007 <desc></desc>
3008 </param>
3009
3010 <param name="aExtraConfigValues" type="wstring" dir="in" safearray="yes">
3011 <desc></desc>
3012 </param>
3013 </method>
3014
3015 <method name="addDescription">
3016 <desc>
3017 This method adds an additional description entry to the stack of already
3018 available descriptions for this virtual system. This is handy for writing
3019 values which aren't directly supported by VirtualBox. One example would
3020 be the License type of <link to="VirtualSystemDescriptionType" />.
3021 </desc>
3022
3023 <param name="aType" type="VirtualSystemDescriptionType" dir="in">
3024 <desc></desc>
3025 </param>
3026
3027 <param name="aVBoxValue" type="wstring" dir="in">
3028 <desc></desc>
3029 </param>
3030
3031 <param name="aExtraConfigValue" type="wstring" dir="in">
3032 <desc></desc>
3033 </param>
3034 </method>
3035 </interface>
3036
3037
3038 <!--
3039 // IMachine
3040 /////////////////////////////////////////////////////////////////////////
3041 -->
3042
3043 <interface
3044 name="IInternalMachineControl" extends="$unknown"
3045 uuid="ec824977-e43f-479c-81c9-ac6cae1423a5"
3046 internal="yes"
3047 wsmap="suppress"
3048 >
3049 <method name="setRemoveSavedStateFile">
3050 <desc>
3051 Updates the flag whether the saved state file is removed on a
3052 machine state change from Saved to PoweredOff.
3053 </desc>
3054 <param name="aRemove" type="boolean" dir="in"/>
3055 </method>
3056
3057 <method name="updateState">
3058 <desc>
3059 Updates the VM state.
3060 <note>
3061 This operation will also update the settings file with the correct
3062 information about the saved state file and delete this file from disk
3063 when appropriate.
3064 </note>
3065 </desc>
3066 <param name="state" type="MachineState" dir="in"/>
3067 </method>
3068
3069 <method name="getIPCId">
3070 <param name="id" type="wstring" dir="return"/>
3071 </method>
3072
3073 <method name="beginPowerUp">
3074 <desc>
3075 Tells VBoxSVC that <link to="IConsole::powerUp"/> is under ways and
3076 gives it the progress object that should be part of any pending
3077 <link to="IMachine::launchVMProcess"/> operations. The progress
3078 object may be called back to reflect an early cancelation, so some care
3079 have to be taken with respect to any cancelation callbacks. The console
3080 object will call <link to="IInternalMachineControl::endPowerUp"/>
3081 to signal the completion of the progress object.
3082 </desc>
3083 <param name="aProgress" type="IProgress" dir="in" />
3084 </method>
3085
3086 <method name="endPowerUp">
3087 <desc>
3088 Tells VBoxSVC that <link to="IConsole::powerUp"/> has completed.
3089 This method may query status information from the progress object it
3090 received in <link to="IInternalMachineControl::beginPowerUp"/> and copy
3091 it over to any in-progress <link to="IMachine::launchVMProcess"/>
3092 call in order to complete that progress object.
3093 </desc>
3094 <param name="result" type="long" dir="in"/>
3095 </method>
3096
3097 <method name="beginPoweringDown">
3098 <desc>
3099 Called by the VM process to inform the server it wants to
3100 stop the VM execution and power down.
3101 </desc>
3102 <param name="progress" type="IProgress" dir="out">
3103 <desc>
3104 Progress object created by VBoxSVC to wait until
3105 the VM is powered down.
3106 </desc>
3107 </param>
3108 </method>
3109
3110 <method name="endPoweringDown">
3111 <desc>
3112 Called by the VM process to inform the server that powering
3113 down previously requested by #beginPoweringDown is either
3114 successfully finished or there was a failure.
3115
3116 <result name="VBOX_E_FILE_ERROR">
3117 Settings file not accessible.
3118 </result>
3119 <result name="VBOX_E_XML_ERROR">
3120 Could not parse the settings file.
3121 </result>
3122
3123 </desc>
3124
3125 <param name="result" type="long" dir="in">
3126 <desc>@c S_OK to indicate success.
3127 </desc>
3128 </param>
3129 <param name="errMsg" type="wstring" dir="in">
3130 <desc>@c human readable error message in case of failure.
3131 </desc>
3132 </param>
3133 </method>
3134
3135 <method name="runUSBDeviceFilters">
3136 <desc>
3137 Asks the server to run USB devices filters of the associated
3138 machine against the given USB device and tell if there is
3139 a match.
3140 <note>
3141 Intended to be used only for remote USB devices. Local
3142 ones don't require to call this method (this is done
3143 implicitly by the Host and USBProxyService).
3144 </note>
3145 </desc>
3146 <param name="device" type="IUSBDevice" dir="in"/>
3147 <param name="matched" type="boolean" dir="out"/>
3148 <param name="maskedInterfaces" type="unsigned long" dir="out"/>
3149 </method>
3150
3151 <method name="captureUSBDevice">
3152 <desc>
3153 Requests a capture of the given host USB device.
3154 When the request is completed, the VM process will
3155 get a <link to="IInternalSessionControl::onUSBDeviceAttach"/>
3156 notification.
3157 </desc>
3158 <param name="id" type="uuid" mod="string" dir="in"/>
3159 </method>
3160
3161 <method name="detachUSBDevice">
3162 <desc>
3163 Notification that a VM is going to detach (@a done = @c false) or has
3164 already detached (@a done = @c true) the given USB device.
3165 When the @a done = @c true request is completed, the VM process will
3166 get a <link to="IInternalSessionControl::onUSBDeviceDetach"/>
3167 notification.
3168 <note>
3169 In the @a done = @c true case, the server must run its own filters
3170 and filters of all VMs but this one on the detached device
3171 as if it were just attached to the host computer.
3172 </note>
3173 </desc>
3174 <param name="id" type="uuid" mod="string" dir="in"/>
3175 <param name="done" type="boolean" dir="in"/>
3176 </method>
3177
3178 <method name="autoCaptureUSBDevices">
3179 <desc>
3180 Requests a capture all matching USB devices attached to the host.
3181 When the request is completed, the VM process will
3182 get a <link to="IInternalSessionControl::onUSBDeviceAttach"/>
3183 notification per every captured device.
3184 </desc>
3185 </method>
3186
3187 <method name="detachAllUSBDevices">
3188 <desc>
3189 Notification that a VM that is being powered down. The done
3190 parameter indicates whether which stage of the power down
3191 we're at. When @a done = @c false the VM is announcing its
3192 intentions, while when @a done = @c true the VM is reporting
3193 what it has done.
3194 <note>
3195 In the @a done = @c true case, the server must run its own filters
3196 and filters of all VMs but this one on all detach devices as
3197 if they were just attached to the host computer.
3198 </note>
3199 </desc>
3200 <param name="done" type="boolean" dir="in"/>
3201 </method>
3202
3203 <method name="onSessionEnd">
3204 <desc>
3205 Triggered by the given session object when the session is about
3206 to close normally.
3207 </desc>
3208 <param name="session" type="ISession" dir="in">
3209 <desc>Session that is being closed</desc>
3210 </param>
3211 <param name="progress" type="IProgress" dir="return">
3212 <desc>
3213 Used to wait until the corresponding machine is actually
3214 dissociated from the given session on the server.
3215 Returned only when this session is a direct one.
3216 </desc>
3217 </param>
3218 </method>
3219
3220 <method name="beginSavingState">
3221 <desc>
3222 Called by the VM process to inform the server it wants to
3223 save the current state and stop the VM execution.
3224 </desc>
3225 <param name="progress" type="IProgress" dir="out">
3226 <desc>
3227 Progress object created by VBoxSVC to wait until
3228 the state is saved.
3229 </desc>
3230 </param>
3231 <param name="stateFilePath" type="wstring" dir="out">
3232 <desc>
3233 File path the VM process must save the execution state to.
3234 </desc>
3235 </param>
3236 </method>
3237
3238 <method name="endSavingState">
3239 <desc>
3240 Called by the VM process to inform the server that saving
3241 the state previously requested by #beginSavingState is either
3242 successfully finished or there was a failure.
3243
3244 <result name="VBOX_E_FILE_ERROR">
3245 Settings file not accessible.
3246 </result>
3247 <result name="VBOX_E_XML_ERROR">
3248 Could not parse the settings file.
3249 </result>
3250
3251 </desc>
3252
3253 <param name="result" type="long" dir="in">
3254 <desc>@c S_OK to indicate success.
3255 </desc>
3256 </param>
3257 <param name="errMsg" type="wstring" dir="in">
3258 <desc>@c human readable error message in case of failure.
3259 </desc>
3260 </param>
3261 </method>
3262
3263 <method name="adoptSavedState">
3264 <desc>
3265 Gets called by <link to="IConsole::adoptSavedState"/>.
3266 <result name="VBOX_E_FILE_ERROR">
3267 Invalid saved state file path.
3268 </result>
3269 </desc>
3270 <param name="savedStateFile" type="wstring" dir="in">
3271 <desc>Path to the saved state file to adopt.</desc>
3272 </param>
3273 </method>
3274
3275 <method name="beginTakingSnapshot">
3276 <desc>
3277 Called from the VM process to request from the server to perform the
3278 server-side actions of creating a snapshot (creating differencing images
3279 and the snapshot object).
3280
3281 <result name="VBOX_E_FILE_ERROR">
3282 Settings file not accessible.
3283 </result>
3284 <result name="VBOX_E_XML_ERROR">
3285 Could not parse the settings file.
3286 </result>
3287 </desc>
3288 <param name="initiator" type="IConsole" dir="in">
3289 <desc>The console object that initiated this call.</desc>
3290 </param>
3291 <param name="name" type="wstring" dir="in">
3292 <desc>Snapshot name.</desc>
3293 </param>
3294 <param name="description" type="wstring" dir="in">
3295 <desc>Snapshot description.</desc>
3296 </param>
3297 <param name="consoleProgress" type="IProgress" dir="in">
3298 <desc>
3299 Progress object created by the VM process tracking the
3300 snapshot's progress. This has the following sub-operations:
3301 <ul>
3302 <li>setting up (weight 1);</li>
3303 <li>one for each medium attachment that needs a differencing image (weight 1 each);</li>
3304 <li>another one to copy the VM state (if offline with saved state, weight is VM memory size in MB);</li>
3305 <li>another one to save the VM state (if online, weight is VM memory size in MB);</li>
3306 <li>finishing up (weight 1)</li>
3307 </ul>
3308 </desc>
3309 </param>
3310 <param name="fTakingSnapshotOnline" type="boolean" dir="in">
3311 <desc>
3312 Whether this is an online snapshot (i.e. the machine is running).
3313 </desc>
3314 </param>
3315 <param name="stateFilePath" type="wstring" dir="out">
3316 <desc>
3317 File path the VM process must save the execution state to.
3318 </desc>
3319 </param>
3320 </method>
3321
3322 <method name="endTakingSnapshot">
3323 <desc>
3324 Called by the VM process to inform the server that the snapshot
3325 previously requested by #beginTakingSnapshot is either
3326 successfully taken or there was a failure.
3327 </desc>
3328
3329 <param name="success" type="boolean" dir="in">
3330 <desc>@c true to indicate success and @c false otherwise</desc>
3331 </param>
3332 </method>
3333
3334 <method name="deleteSnapshot">
3335 <desc>
3336 Gets called by <link to="IConsole::deleteSnapshot"/>,
3337 <link to="IConsole::deleteSnapshotAndAllChildren"/> and
3338 <link to="IConsole::deleteSnapshotRange"/>.
3339 <result name="VBOX_E_INVALID_OBJECT_STATE">
3340 Snapshot has more than one child snapshot. Only possible if the
3341 delete operation does not delete all children or the range does
3342 not meet the linearity condition.
3343 </result>
3344 </desc>
3345 <param name="initiator" type="IConsole" dir="in">
3346 <desc>The console object that initiated this call.</desc>
3347 </param>
3348 <param name="startId" type="uuid" mod="string" dir="in">
3349 <desc>UUID of the first snapshot to delete.</desc>
3350 </param>
3351 <param name="endId" type="uuid" mod="string" dir="in">
3352 <desc>UUID of the last snapshot to delete.</desc>
3353 </param>
3354 <param name="deleteAllChildren" type="boolean" dir="in">
3355 <desc>Whether all children should be deleted.</desc>
3356 </param>
3357 <param name="machineState" type="MachineState" dir="out">
3358 <desc>New machine state after this operation is started.</desc>
3359 </param>
3360 <param name="progress" type="IProgress" dir="return">
3361 <desc>Progress object to track the operation completion.</desc>
3362 </param>
3363 </method>
3364
3365 <method name="finishOnlineMergeMedium">
3366 <desc>
3367 Gets called by <link to="IInternalSessionControl::onlineMergeMedium"/>.
3368 </desc>
3369 <param name="mediumAttachment" type="IMediumAttachment" dir="in">
3370 <desc>The medium attachment which needs to be cleaned up.</desc>
3371 </param>
3372 <param name="source" type="IMedium" dir="in">
3373 <desc>Merge source medium.</desc>
3374 </param>
3375 <param name="target" type="IMedium" dir="in">
3376 <desc>Merge target medium.</desc>
3377 </param>
3378 <param name="mergeForward" type="boolean" dir="in">
3379 <desc>Merge direction.</desc>
3380 </param>
3381 <param name="parentForTarget" type="IMedium" dir="in">
3382 <desc>For forward merges: new parent for target medium.</desc>
3383 </param>
3384 <param name="childrenToReparent" type="IMedium" safearray="yes" dir="in">
3385 <desc>For backward merges: list of media which need their parent UUID
3386 updated.</desc>
3387 </param>
3388 </method>
3389
3390 <method name="restoreSnapshot">
3391 <desc>
3392 Gets called by <link to="IConsole::restoreSnapshot"/>.
3393 </desc>
3394 <param name="initiator" type="IConsole" dir="in">
3395 <desc>The console object that initiated this call.</desc>
3396 </param>
3397 <param name="snapshot" type="ISnapshot" dir="in">
3398 <desc>The snapshot to restore the VM state from.</desc>
3399 </param>
3400 <param name="machineState" type="MachineState" dir="out">
3401 <desc>New machine state after this operation is started.</desc>
3402 </param>
3403 <param name="progress" type="IProgress" dir="return">
3404 <desc>Progress object to track the operation completion.</desc>
3405 </param>
3406 </method>
3407
3408 <method name="pullGuestProperties">
3409 <desc>
3410 Get the list of the guest properties matching a set of patterns along
3411 with their values, time stamps and flags and give responsibility for
3412 managing properties to the console.
3413 </desc>
3414 <param name="name" type="wstring" dir="out" safearray="yes">
3415 <desc>
3416 The names of the properties returned.
3417 </desc>
3418 </param>
3419 <param name="value" type="wstring" dir="out" safearray="yes">
3420 <desc>
3421 The values of the properties returned. The array entries match the
3422 corresponding entries in the @a name array.
3423 </desc>
3424 </param>
3425 <param name="timestamp" type="long long" dir="out" safearray="yes">
3426 <desc>
3427 The time stamps of the properties returned. The array entries match
3428 the corresponding entries in the @a name array.
3429 </desc>
3430 </param>
3431 <param name="flags" type="wstring" dir="out" safearray="yes">
3432 <desc>
3433 The flags of the properties returned. The array entries match the
3434 corresponding entries in the @a name array.
3435 </desc>
3436 </param>
3437 </method>
3438
3439 <method name="pushGuestProperty">
3440 <desc>
3441 Update a single guest property in IMachine.
3442 </desc>
3443 <param name="name" type="wstring" dir="in">
3444 <desc>
3445 The name of the property to be updated.
3446 </desc>
3447 </param>
3448 <param name="value" type="wstring" dir="in">
3449 <desc>
3450 The value of the property.
3451 </desc>
3452 </param>
3453 <param name="timestamp" type="long long" dir="in">
3454 <desc>
3455 The timestamp of the property.
3456 </desc>
3457 </param>
3458 <param name="flags" type="wstring" dir="in">
3459 <desc>
3460 The flags of the property.
3461 </desc>
3462 </param>
3463 </method>
3464
3465 <method name="lockMedia">
3466 <desc>
3467 Locks all media attached to the machine for writing and parents of
3468 attached differencing media (if any) for reading. This operation is
3469 atomic so that if it fails no media is actually locked.
3470
3471 This method is intended to be called when the machine is in Starting or
3472 Restoring state. The locked media will be automatically unlocked when
3473 the machine is powered off or crashed.
3474 </desc>
3475 </method>
3476 <method name="unlockMedia">
3477 <desc>
3478 Unlocks all media previously locked using
3479 <link to="IInternalMachineControl::lockMedia"/>.
3480
3481 This method is intended to be used with teleportation so that it is
3482 possible to teleport between processes on the same machine.
3483 </desc>
3484 </method>
3485
3486 <method name="ejectMedium">
3487 <desc>
3488 Tells VBoxSVC that the guest has ejected the medium associated with
3489 the medium attachment.
3490 </desc>
3491 <param name="attachment" type="IMediumAttachment" dir="in">
3492 <desc>
3493 The medium attachment where the eject happened.
3494 </desc>
3495 </param>
3496 <param name="newAttachment" type="IMediumAttachment" dir="return">
3497 <desc>
3498 A new reference to the medium attachment, as the config change can
3499 result in the creation of a new instance.
3500 </desc>
3501 </param>
3502 </method>
3503
3504 <method name="reportGuestStatistics">
3505 <desc>
3506 Passes collected guest statistics to VBoxSVC.
3507 </desc>
3508 <param name="validStats" type="unsigned long" dir="in">
3509 <desc>
3510 Mask defining which parameters are valid. For example: 0x11 means
3511 that cpuIdle and XXX are valid. Other parameters should be ignored.
3512 </desc>
3513 </param>
3514 <param name="cpuUser" type="unsigned long" dir="in">
3515 <desc>Percentage of processor time spent in user mode as seen by the guest.</desc>
3516 </param>
3517 <param name="cpuKernel" type="unsigned long" dir="in">
3518 <desc>Percentage of processor time spent in kernel mode as seen by the guest.</desc>
3519 </param>
3520 <param name="cpuIdle" type="unsigned long" dir="in">
3521 <desc>Percentage of processor time spent idling as seen by the guest.</desc>
3522 </param>
3523 <param name="memTotal" type="unsigned long" dir="in">
3524 <desc>Total amount of physical guest RAM.</desc>
3525 </param>
3526 <param name="memFree" type="unsigned long" dir="in">
3527 <desc>Free amount of physical guest RAM.</desc>
3528 </param>
3529 <param name="memBalloon" type="unsigned long" dir="in">
3530 <desc>Amount of ballooned physical guest RAM.</desc>
3531 </param>
3532 <param name="memShared" type="unsigned long" dir="in">
3533 <desc>Amount of shared physical guest RAM.</desc>
3534 </param>
3535 <param name="memCache" type="unsigned long" dir="in">
3536 <desc>Total amount of guest (disk) cache memory.</desc>
3537 </param>
3538 <param name="pagedTotal" type="unsigned long" dir="in">
3539 <desc>Total amount of space in the page file.</desc>
3540 </param>
3541 <param name="memAllocTotal" type="unsigned long" dir="in">
3542 <desc>Total amount of memory allocated by the hypervisor.</desc>
3543 </param>
3544 <param name="memFreeTotal" type="unsigned long" dir="in">
3545 <desc>Total amount of free memory available in the hypervisor.</desc>
3546 </param>
3547 <param name="memBalloonTotal" type="unsigned long" dir="in">
3548 <desc>Total amount of memory ballooned by the hypervisor.</desc>
3549 </param>
3550 <param name="memSharedTotal" type="unsigned long" dir="in">
3551 <desc>Total amount of shared memory in the hypervisor.</desc>
3552 </param>
3553 </method>
3554 </interface>
3555
3556 <interface
3557 name="IBIOSSettings" extends="$unknown"
3558 uuid="38b54279-dc35-4f5e-a431-835b867c6b5e"
3559 wsmap="managed"
3560 >
3561 <desc>
3562 The IBIOSSettings interface represents BIOS settings of the virtual
3563 machine. This is used only in the <link to="IMachine::BIOSSettings" /> attribute.
3564 </desc>
3565 <attribute name="logoFadeIn" type="boolean">
3566 <desc>Fade in flag for BIOS logo animation.</desc>
3567 </attribute>
3568
3569 <attribute name="logoFadeOut" type="boolean">
3570 <desc>Fade out flag for BIOS logo animation.</desc>
3571 </attribute>
3572
3573 <attribute name="logoDisplayTime" type="unsigned long">
3574 <desc>BIOS logo display time in milliseconds (0 = default).</desc>
3575 </attribute>
3576
3577 <attribute name="logoImagePath" type="wstring">
3578 <desc>
3579 Local file system path for external BIOS splash image. Empty string
3580 means the default image is shown on boot.
3581 </desc>
3582 </attribute>
3583
3584 <attribute name="bootMenuMode" type="BIOSBootMenuMode">
3585 <desc>Mode of the BIOS boot device menu.</desc>
3586 </attribute>
3587
3588 <attribute name="ACPIEnabled" type="boolean">
3589 <desc>ACPI support flag.</desc>
3590 </attribute>
3591
3592 <attribute name="IOAPICEnabled" type="boolean">
3593 <desc>
3594 IO APIC support flag. If set, VirtualBox will provide an IO APIC
3595 and support IRQs above 15.
3596 </desc>
3597 </attribute>
3598
3599 <attribute name="timeOffset" type="long long">
3600 <desc>
3601 Offset in milliseconds from the host system time. This allows for
3602 guests running with a different system date/time than the host.
3603 It is equivalent to setting the system date/time in the BIOS except
3604 it is not an absolute value but a relative one. Guest Additions
3605 time synchronization honors this offset.
3606 </desc>
3607 </attribute>
3608
3609 <attribute name="PXEDebugEnabled" type="boolean">
3610 <desc>
3611 PXE debug logging flag. If set, VirtualBox will write extensive
3612 PXE trace information to the release log.
3613 </desc>
3614 </attribute>
3615 </interface>
3616
3617 <enum
3618 name="CleanupMode"
3619 uuid="67897c50-7cca-47a9-83f6-ce8fd8eb5441"
3620 >
3621 <desc>Cleanup mode, used with <link to="IMachine::unregister" />.
3622 </desc>
3623 <const name="UnregisterOnly" value="1">
3624 <desc>Unregister only the machine, but neither delete snapshots nor detach media.</desc>
3625 </const>
3626 <const name="DetachAllReturnNone" value="2">
3627 <desc>Delete all snapshots and detach all media but return none; this will keep all media registered.</desc>
3628 </const>
3629 <const name="DetachAllReturnHardDisksOnly" value="3">
3630 <desc>Delete all snapshots, detach all media and return hard disks for closing, but not removable media.</desc>
3631 </const>
3632 <const name="Full" value="4">
3633 <desc>Delete all snapshots, detach all media and return all media for closing.</desc>
3634 </const>
3635 </enum>
3636
3637 <interface
3638 name="IPCIAddress" extends="$unknown"
3639 uuid="D88B324F-DB19-4D3B-A1A9-BF5B127199A8"
3640 wsmap="struct"
3641 >
3642
3643 <desc>
3644 Address on the PCI bus.
3645 </desc>
3646
3647 <attribute name="bus" type="short">
3648 <desc>
3649 Bus number.
3650 </desc>
3651 </attribute>
3652
3653 <attribute name="device" type="short">
3654 <desc>
3655 Device number.
3656 </desc>
3657 </attribute>
3658
3659 <attribute name="devFunction" type="short">
3660 <desc>
3661 Device function number.
3662 </desc>
3663 </attribute>
3664
3665 <method name="asLong">
3666 <desc>
3667 Convert PCI address into long.
3668 </desc>
3669 <param name="result" type="long" dir="return" />
3670 </method>
3671
3672 <method name="fromLong">
3673 <desc>
3674 Make PCI address from long.
3675 </desc>
3676 <param name="number" type="long" dir="in" />
3677 </method>
3678 </interface>
3679
3680 <interface
3681 name="IPCIDeviceAttachment" extends="$unknown"
3682 uuid="91f33d6f-e621-4f70-a77e-15f0e3c714d5"
3683 wsmap="struct"
3684 >
3685
3686 <desc>
3687 Information about PCI attachments.
3688 </desc>
3689
3690 <attribute name="name" type="wstring" readonly="yes">
3691 <desc>
3692 Device name.
3693 </desc>
3694 </attribute>
3695
3696 <attribute name="isPhysicalDevice" type="boolean" readonly="yes">
3697 <desc>
3698 If this is physical or virtual device.
3699 </desc>
3700 </attribute>
3701
3702 <attribute name="hostAddress" type="long" readonly="yes">
3703 <desc>
3704 Address of device on the host, applicable only to host devices.
3705 </desc>
3706 </attribute>
3707
3708 <attribute name="guestAddress" type="long" readonly="yes">
3709 <desc>
3710 Address of device on the guest.
3711 </desc>
3712 </attribute>
3713
3714 </interface>
3715
3716 <enum
3717 name="CloneMode" extends="$unknown"
3718 uuid="A7A159FE-5096-4B8D-8C3C-D033CB0B35A8"
3719 >
3720
3721 <desc>
3722 Clone mode, used with <link to="IMachine::cloneTo" />.
3723 </desc>
3724
3725 <const name="MachineState" value="1">
3726 <desc>Clone the state of the selected machine.</desc>
3727 </const>
3728 <const name="MachineAndChildStates" value="2">
3729 <desc>Clone the state of the selected machine and its child snapshots if present.</desc>
3730 </const>
3731 <const name="AllStates" value="3">
3732 <desc>Clone all states (including all snapshots) of the machine, regardless of the machine object used.</desc>
3733 </const>
3734
3735 </enum>
3736
3737 <enum
3738 name="CloneOptions" extends="$unknown"
3739 uuid="22243f8e-96ab-497c-8cf0-f40a566c630b"
3740 >
3741
3742 <desc>
3743 Clone options, used with <link to="IMachine::cloneTo" />.
3744 </desc>
3745
3746 <const name="Link" value="1">
3747 <desc>Create a clone VM where all virtual disks are linked to the original VM.</desc>
3748 </const>
3749 <const name="KeepAllMACs" value="2">
3750 <desc>Don't generate new MAC addresses of the attached network adapters.</desc>
3751 </const>
3752 <const name="KeepNATMACs" value="3">
3753 <desc>Don't generate new MAC addresses of the attached network adapters when they are using NAT.</desc>
3754 </const>
3755 <const name="KeepDiskNames" value="4">
3756 <desc>Don't change the disk names.</desc>
3757 </const>
3758
3759 </enum>
3760
3761 <enum
3762 name="AutostopType" extends="$unknown"
3763 uuid="6bb96740-cf34-470d-aab2-2cd48ea2e10e"
3764 >
3765
3766 <desc>
3767 Autostop types, used with <link to="IMachine::autostopType" />.
3768 </desc>
3769
3770 <const name="Disabled" value="1">
3771 <desc>Stopping the VM during system shutdown is disabled.</desc>
3772 </const>
3773 <const name="SaveState" value="2">
3774 <desc>The state of the VM will be saved when the system shuts down.</desc>
3775 </const>
3776 <const name="PowerOff" value="3">
3777 <desc>The VM is powered off when the system shuts down.</desc>
3778 </const>
3779 <const name="AcpiShutdown" value="4">
3780 <desc>An ACPI shutdown event is generated.</desc>
3781 </const>
3782
3783 </enum>
3784
3785
3786 <interface
3787 name="IMachine" extends="$unknown"
3788 uuid="22781af3-1c96-4126-9edf-67a020e0e858"
3789 wsmap="managed"
3790 >
3791 <desc>
3792 The IMachine interface represents a virtual machine, or guest, created
3793 in VirtualBox.
3794
3795 This interface is used in two contexts. First of all, a collection of
3796 objects implementing this interface is stored in the
3797 <link to="IVirtualBox::machines"/> attribute which lists all the virtual
3798 machines that are currently registered with this VirtualBox
3799 installation. Also, once a session has been opened for the given virtual
3800 machine (e.g. the virtual machine is running), the machine object
3801 associated with the open session can be queried from the session object;
3802 see <link to="ISession"/> for details.
3803
3804 The main role of this interface is to expose the settings of the virtual
3805 machine and provide methods to change various aspects of the virtual
3806 machine's configuration. For machine objects stored in the
3807 <link to="IVirtualBox::machines"/> collection, all attributes are
3808 read-only unless explicitly stated otherwise in individual attribute
3809 and method descriptions.
3810
3811 In order to change a machine setting, a session for this machine must be
3812 opened using one of the <link to="IMachine::lockMachine" /> or
3813 <link to="IMachine::launchVMProcess"/> methods. After the
3814 machine has been successfully locked for a session, a mutable machine object
3815 needs to be queried from the session object and then the desired settings
3816 changes can be applied to the returned object using IMachine attributes and
3817 methods. See the <link to="ISession"/> interface description for more
3818 information about sessions.
3819
3820 Note that IMachine does not provide methods to control virtual machine
3821 execution (such as start the machine, or power it down) -- these methods
3822 are grouped in a separate interface called <link to="IConsole" />.
3823
3824 <see><link to="ISession"/>, <link to="IConsole"/></see>
3825 </desc>
3826
3827 <attribute name="parent" type="IVirtualBox" readonly="yes">
3828 <desc>Associated parent object.</desc>
3829 </attribute>
3830
3831 <attribute name="accessible" type="boolean" readonly="yes">
3832 <desc>
3833 Whether this virtual machine is currently accessible or not.
3834
3835 A machine is always deemed accessible unless it is registered <i>and</i>
3836 its settings file cannot be read or parsed (either because the file itself
3837 is unavailable or has invalid XML contents).
3838
3839 Every time this property is read, the accessibility state of
3840 this machine is re-evaluated. If the returned value is @c false,
3841 the <link to="#accessError"/> property may be used to get the
3842 detailed error information describing the reason of
3843 inaccessibility, including XML error messages.
3844
3845 When the machine is inaccessible, only the following properties
3846 can be used on it:
3847 <ul>
3848 <li><link to="#parent"/></li>
3849 <li><link to="#id"/></li>
3850 <li><link to="#settingsFilePath"/></li>
3851 <li><link to="#accessible"/></li>
3852 <li><link to="#accessError"/></li>
3853 </ul>
3854
3855 An attempt to access any other property or method will return
3856 an error.
3857
3858 The only possible action you can perform on an inaccessible
3859 machine is to unregister it using the
3860 <link to="IMachine::unregister"/> call (or, to check
3861 for the accessibility state once more by querying this
3862 property).
3863
3864 <note>
3865 In the current implementation, once this property returns
3866 @c true, the machine will never become inaccessible
3867 later, even if its settings file cannot be successfully
3868 read/written any more (at least, until the VirtualBox
3869 server is restarted). This limitation may be removed in
3870 future releases.
3871 </note>
3872 </desc>
3873 </attribute>
3874
3875 <attribute name="accessError" type="IVirtualBoxErrorInfo" readonly="yes">
3876 <desc>
3877 Error information describing the reason of machine
3878 inaccessibility.
3879
3880 Reading this property is only valid after the last call to
3881 <link to="#accessible"/> returned @c false (i.e. the
3882 machine is currently inaccessible). Otherwise, a @c null
3883 IVirtualBoxErrorInfo object will be returned.
3884 </desc>
3885 </attribute>
3886
3887 <attribute name="name" type="wstring">
3888 <desc>
3889 Name of the virtual machine.
3890
3891 Besides being used for human-readable identification purposes
3892 everywhere in VirtualBox, the virtual machine name is also used
3893 as a name of the machine's settings file and as a name of the
3894 subdirectory this settings file resides in. Thus, every time you
3895 change the value of this property, the settings file will be
3896 renamed once you call <link to="#saveSettings"/> to confirm the
3897 change. The containing subdirectory will be also renamed, but
3898 only if it has exactly the same name as the settings file
3899 itself prior to changing this property (for backward compatibility
3900 with previous API releases). The above implies the following
3901 limitations:
3902 <ul>
3903 <li>The machine name cannot be empty.</li>
3904 <li>The machine name can contain only characters that are valid
3905 file name characters according to the rules of the file
3906 system used to store VirtualBox configuration.</li>
3907 <li>You cannot have two or more machines with the same name
3908 if they use the same subdirectory for storing the machine
3909 settings files.</li>
3910 <li>You cannot change the name of the machine if it is running,
3911 or if any file in the directory containing the settings file
3912 is being used by another running machine or by any other
3913 process in the host operating system at a time when
3914 <link to="#saveSettings"/> is called.
3915 </li>
3916 </ul>
3917 If any of the above limitations are hit, <link to="#saveSettings"/>
3918 will return an appropriate error message explaining the exact
3919 reason and the changes you made to this machine will not be saved.
3920
3921 Starting with VirtualBox 4.0, a ".vbox" extension of the settings
3922 file is recommended, but not enforced. (Previous versions always
3923 used a generic ".xml" extension.)
3924 </desc>
3925 </attribute>
3926
3927 <attribute name="description" type="wstring">
3928 <desc>
3929 Description of the virtual machine.
3930
3931 The description attribute can contain any text and is
3932 typically used to describe the hardware and software
3933 configuration of the virtual machine in detail (i.e. network
3934 settings, versions of the installed software and so on).
3935 </desc>
3936 </attribute>
3937
3938 <attribute name="id" type="uuid" mod="string" readonly="yes">
3939 <desc>UUID of the virtual machine.</desc>
3940 </attribute>
3941
3942 <attribute name="groups" type="wstring" safearray="yes">
3943 <desc>
3944 Array of machine group names of which this machine is a member.
3945 <tt>""</tt> and <tt>"/"</tt> are synonyms for the toplevel group. Each
3946 group is only listed once, however they are listed in no particular
3947 order and there is no guarantee that there are no gaps in the group
3948 hierarchy (i.e. <tt>"/group"</tt>,
3949 <tt>"/group/subgroup/subsubgroup"</tt> is a valid result).
3950 </desc>
3951 </attribute>
3952
3953 <attribute name="OSTypeId" type="wstring">
3954 <desc>
3955 User-defined identifier of the Guest OS type.
3956 You may use <link to="IVirtualBox::getGuestOSType"/> to obtain
3957 an IGuestOSType object representing details about the given
3958 Guest OS type.
3959 <note>
3960 This value may differ from the value returned by
3961 <link to="IGuest::OSTypeId"/> if Guest Additions are
3962 installed to the guest OS.
3963 </note>
3964 </desc>
3965 </attribute>
3966
3967 <attribute name="hardwareVersion" type="wstring">
3968 <desc>Hardware version identifier. Internal use only for now.</desc>
3969 </attribute>
3970
3971 <attribute name="hardwareUUID" type="uuid" mod="string">
3972 <desc>
3973 The UUID presented to the guest via memory tables, hardware and guest
3974 properties. For most VMs this is the same as the @a id, but for VMs
3975 which have been cloned or teleported it may be the same as the source
3976 VM. The latter is because the guest shouldn't notice that it was
3977 cloned or teleported.
3978 </desc>
3979 </attribute>
3980
3981 <attribute name="CPUCount" type="unsigned long">
3982 <desc>Number of virtual CPUs in the VM.</desc>
3983 </attribute>
3984
3985 <attribute name="CPUHotPlugEnabled" type="boolean">
3986 <desc>
3987 This setting determines whether VirtualBox allows CPU
3988 hotplugging for this machine.</desc>
3989 </attribute>
3990
3991 <attribute name="CPUExecutionCap" type="unsigned long">
3992 <desc>
3993 Means to limit the number of CPU cycles a guest can use. The unit
3994 is percentage of host CPU cycles per second. The valid range
3995 is 1 - 100. 100 (the default) implies no limit.
3996 </desc>
3997 </attribute>
3998
3999 <attribute name="memorySize" type="unsigned long">
4000 <desc>System memory size in megabytes.</desc>
4001 </attribute>
4002
4003 <attribute name="memoryBalloonSize" type="unsigned long">
4004 <desc>Memory balloon size in megabytes.</desc>
4005 </attribute>
4006
4007 <attribute name="pageFusionEnabled" type="boolean">
4008 <desc>
4009 This setting determines whether VirtualBox allows page
4010 fusion for this machine (64 bits host only).
4011 </desc>
4012 </attribute>
4013
4014 <attribute name="VRAMSize" type="unsigned long">
4015 <desc>Video memory size in megabytes.</desc>
4016 </attribute>
4017
4018 <attribute name="accelerate3DEnabled" type="boolean" default="false">
4019 <desc>
4020 This setting determines whether VirtualBox allows this machine to make
4021 use of the 3D graphics support available on the host.</desc>
4022 </attribute>
4023
4024 <attribute name="accelerate2DVideoEnabled" type="boolean" default="false">
4025 <desc>
4026 This setting determines whether VirtualBox allows this machine to make
4027 use of the 2D video acceleration support available on the host.</desc>
4028 </attribute>
4029
4030 <attribute name="monitorCount" type="unsigned long">
4031 <desc>
4032 Number of virtual monitors.
4033 <note>
4034 Only effective on Windows XP and later guests with
4035 Guest Additions installed.
4036 </note>
4037 </desc>
4038 </attribute>
4039
4040 <attribute name="BIOSSettings" type="IBIOSSettings" readonly="yes">
4041 <desc>Object containing all BIOS settings.</desc>
4042 </attribute>
4043
4044 <attribute name="firmwareType" type="FirmwareType">
4045 <desc>Type of firmware (such as legacy BIOS or EFI), used for initial
4046 bootstrap in this VM.</desc>
4047 </attribute>
4048
4049 <attribute name="pointingHIDType" type="PointingHIDType">
4050 <desc>Type of pointing HID (such as mouse or tablet) used in this VM.
4051 The default is typically "PS2Mouse" but can vary depending on the
4052 requirements of the guest operating system.</desc>
4053 </attribute>
4054
4055 <attribute name="keyboardHIDType" type="KeyboardHIDType">
4056 <desc>Type of keyboard HID used in this VM.
4057 The default is typically "PS2Keyboard" but can vary depending on the
4058 requirements of the guest operating system.</desc>
4059 </attribute>
4060
4061 <attribute name="HPETEnabled" type="boolean">
4062 <desc>This attribute controls if High Precision Event Timer (HPET) is
4063 enabled in this VM. Use this property if you want to provide guests
4064 with additional time source, or if guest requires HPET to function correctly.
4065 Default is false.</desc>
4066 </attribute>
4067
4068 <attribute name="chipsetType" type="ChipsetType">
4069 <desc>Chipset type used in this VM.</desc>
4070 </attribute>
4071
4072 <attribute name="snapshotFolder" type="wstring">
4073 <desc>
4074 Full path to the directory used to store snapshot data
4075 (differencing media and saved state files) of this machine.
4076
4077 The initial value of this property is
4078 <tt>&lt;</tt><link to="#settingsFilePath">
4079 path_to_settings_file</link><tt>&gt;/&lt;</tt>
4080 <link to="#id">machine_uuid</link>
4081 <tt>&gt;</tt>.
4082
4083 Currently, it is an error to try to change this property on
4084 a machine that has snapshots (because this would require to
4085 move possibly large files to a different location).
4086 A separate method will be available for this purpose later.
4087
4088 <note>
4089 Setting this property to @c null or to an empty string will restore
4090 the initial value.
4091 </note>
4092 <note>
4093 When setting this property, the specified path can be
4094 absolute (full path) or relative to the directory where the
4095 <link to="#settingsFilePath">machine settings file</link>
4096 is located. When reading this property, a full path is
4097 always returned.
4098 </note>
4099 <note>
4100 The specified path may not exist, it will be created
4101 when necessary.
4102 </note>
4103 </desc>
4104 </attribute>
4105
4106 <attribute name="VRDEServer" type="IVRDEServer" readonly="yes">
4107 <desc>VirtualBox Remote Desktop Extension (VRDE) server object.</desc>
4108 </attribute>
4109
4110 <attribute name="emulatedUSBWebcameraEnabled" type="boolean" default="false"/>
4111 <attribute name="emulatedUSBCardReaderEnabled" type="boolean" default="false"/>
4112
4113 <attribute name="mediumAttachments" type="IMediumAttachment" readonly="yes" safearray="yes">
4114 <desc>Array of media attached to this machine.</desc>
4115 </attribute>
4116
4117 <attribute name="USBController" type="IUSBController" readonly="yes">
4118 <desc>
4119 Associated USB controller object.
4120
4121 <note>
4122 If USB functionality is not available in the given edition of
4123 VirtualBox, this method will set the result code to @c E_NOTIMPL.
4124 </note>
4125 </desc>
4126 </attribute>
4127
4128 <attribute name="audioAdapter" type="IAudioAdapter" readonly="yes">
4129 <desc>Associated audio adapter, always present.</desc>
4130 </attribute>
4131
4132 <attribute name="storageControllers" type="IStorageController" readonly="yes" safearray="yes">
4133 <desc>Array of storage controllers attached to this machine.</desc>
4134 </attribute>
4135
4136 <attribute name="settingsFilePath" type="wstring" readonly="yes">
4137 <desc>
4138 Full name of the file containing machine settings data.
4139 </desc>
4140 </attribute>
4141
4142 <attribute name="settingsModified" type="boolean" readonly="yes">
4143 <desc>
4144 Whether the settings of this machine have been modified
4145 (but neither yet saved nor discarded).
4146 <note>
4147 Reading this property is only valid on instances returned
4148 by <link to="ISession::machine"/> and on new machines
4149 created by <link to="IVirtualBox::createMachine"/> or opened
4150 by <link to="IVirtualBox::openMachine"/> but not
4151 yet registered, or on unregistered machines after calling
4152 <link to="IMachine::unregister"/>. For all other
4153 cases, the settings can never be modified.
4154 </note>
4155 <note>
4156 For newly created unregistered machines, the value of this
4157 property is always @c true until <link to="#saveSettings"/>
4158 is called (no matter if any machine settings have been
4159 changed after the creation or not). For opened machines
4160 the value is set to @c false (and then follows to normal rules).
4161 </note>
4162 </desc>
4163 </attribute>
4164
4165 <attribute name="sessionState" type="SessionState" readonly="yes">
4166 <desc>Current session state for this machine.</desc>
4167 </attribute>
4168
4169 <attribute name="sessionType" type="wstring" readonly="yes">
4170 <desc>
4171 Type of the session. If <link to="#sessionState"/> is
4172 Spawning or Locked, this attribute contains the
4173 same value as passed to the
4174 <link to="IMachine::launchVMProcess"/> method in the
4175 @a type parameter. If the session was used with
4176 <link to="IMachine::lockMachine" />, or if
4177 <link to="#sessionState"/> is SessionClosed, the value of this
4178 attribute is an empty string.
4179 </desc>
4180 </attribute>
4181
4182 <attribute name="sessionPID" type="unsigned long" readonly="yes">
4183 <desc>
4184 Identifier of the session process. This attribute contains the
4185 platform-dependent identifier of the process whose session was
4186 used with <link to="IMachine::lockMachine" /> call. The returned
4187 value is only valid if <link to="#sessionState"/> is Locked or
4188 Unlocking by the time this property is read.
4189 </desc>
4190 </attribute>
4191
4192 <attribute name="state" type="MachineState" readonly="yes">
4193 <desc>Current execution state of this machine.</desc>
4194 </attribute>
4195
4196 <attribute name="lastStateChange" type="long long" readonly="yes">
4197 <desc>
4198 Time stamp of the last execution state change,
4199 in milliseconds since 1970-01-01 UTC.
4200 </desc>
4201 </attribute>
4202
4203 <attribute name="stateFilePath" type="wstring" readonly="yes">
4204 <desc>
4205 Full path to the file that stores the execution state of
4206 the machine when it is in the <link to="MachineState_Saved"/> state.
4207 <note>
4208 When the machine is not in the Saved state, this attribute is
4209 an empty string.
4210 </note>
4211 </desc>
4212 </attribute>
4213
4214 <attribute name="logFolder" type="wstring" readonly="yes">
4215 <desc>
4216 Full path to the folder that stores a set of rotated log files
4217 recorded during machine execution. The most recent log file is
4218 named <tt>VBox.log</tt>, the previous log file is
4219 named <tt>VBox.log.1</tt> and so on (up to <tt>VBox.log.3</tt>
4220 in the current version).
4221 </desc>
4222 </attribute>
4223
4224 <attribute name="currentSnapshot" type="ISnapshot" readonly="yes">
4225 <desc>
4226 Current snapshot of this machine. This is @c null if the machine
4227 currently has no snapshots. If it is not @c null, then it was
4228 set by one of <link to="IConsole::takeSnapshot" />,
4229 <link to="IConsole::deleteSnapshot" />
4230 or <link to="IConsole::restoreSnapshot" />, depending on which
4231 was called last. See <link to="ISnapshot"/> for details.
4232 </desc>
4233 </attribute>
4234
4235 <attribute name="snapshotCount" type="unsigned long" readonly="yes">
4236 <desc>
4237 Number of snapshots taken on this machine. Zero means the
4238 machine doesn't have any snapshots.
4239 </desc>
4240 </attribute>
4241
4242 <attribute name="currentStateModified" type="boolean" readonly="yes">
4243 <desc>
4244 Returns @c true if the current state of the machine is not
4245 identical to the state stored in the current snapshot.
4246
4247 The current state is identical to the current snapshot only
4248 directly after one of the following calls are made:
4249
4250 <ul>
4251 <li><link to="IConsole::restoreSnapshot"/>
4252 </li>
4253 <li><link to="IConsole::takeSnapshot"/> (issued on a
4254 "powered off" or "saved" machine, for which
4255 <link to="#settingsModified"/> returns @c false)
4256 </li>
4257 </ul>
4258
4259 The current state remains identical until one of the following
4260 happens:
4261 <ul>
4262 <li>settings of the machine are changed</li>
4263 <li>the saved state is deleted</li>
4264 <li>the current snapshot is deleted</li>
4265 <li>an attempt to execute the machine is made</li>
4266 </ul>
4267
4268 <note>
4269 For machines that don't have snapshots, this property is
4270 always @c false.
4271 </note>
4272 </desc>
4273 </attribute>
4274
4275 <attribute name="sharedFolders" type="ISharedFolder" readonly="yes" safearray="yes">
4276 <desc>
4277 Collection of shared folders for this machine (permanent shared
4278 folders). These folders are shared automatically at machine startup
4279 and available only to the guest OS installed within this machine.
4280
4281 New shared folders are added to the collection using
4282 <link to="#createSharedFolder"/>. Existing shared folders can be
4283 removed using <link to="#removeSharedFolder"/>.
4284 </desc>
4285 </attribute>
4286
4287 <attribute name="clipboardMode" type="ClipboardMode">
4288 <desc>
4289 Synchronization mode between the host OS clipboard
4290 and the guest OS clipboard.
4291 </desc>
4292 </attribute>
4293
4294 <attribute name="dragAndDropMode" type="DragAndDropMode">
4295 <desc>
4296 Which mode is allowed for drag'n'drop.
4297 </desc>
4298 </attribute>
4299
4300 <attribute name="guestPropertyNotificationPatterns" type="wstring">
4301 <desc>
4302 A comma-separated list of simple glob patterns. Changes to guest
4303 properties whose name matches one of the patterns will generate an
4304 <link to="IGuestPropertyChangedEvent"/> signal.
4305 </desc>
4306 </attribute>
4307
4308 <attribute name="teleporterEnabled" type="boolean">
4309 <desc>
4310 When set to @a true, the virtual machine becomes a target teleporter
4311 the next time it is powered on. This can only set to @a true when the
4312 VM is in the @a PoweredOff or @a Aborted state.
4313
4314 <!-- This property is automatically set to @a false when the VM is powered
4315 on. (bird: This doesn't work yet ) -->
4316 </desc>
4317 </attribute>
4318
4319 <attribute name="teleporterPort" type="unsigned long">
4320 <desc>
4321 The TCP port the target teleporter will listen for incoming
4322 teleportations on.
4323
4324 0 means the port is automatically selected upon power on. The actual
4325 value can be read from this property while the machine is waiting for
4326 incoming teleportations.
4327 </desc>
4328 </attribute>
4329
4330 <attribute name="teleporterAddress" type="wstring">
4331 <desc>
4332 The address the target teleporter will listen on. If set to an empty
4333 string, it will listen on all addresses.
4334 </desc>
4335 </attribute>
4336
4337 <attribute name="teleporterPassword" type="wstring">
4338 <desc>
4339 The password to check for on the target teleporter. This is just a
4340 very basic measure to prevent simple hacks and operators accidentally
4341 beaming a virtual machine to the wrong place.
4342
4343 Note that you SET a plain text password while reading back a HASHED
4344 password. Setting a hashed password is currently not supported.
4345 </desc>
4346 </attribute>
4347
4348 <attribute name="faultToleranceState" type="FaultToleranceState">
4349 <desc>
4350 Fault tolerance state; disabled, source or target.
4351 This property can be changed at any time. If you change it for a running
4352 VM, then the fault tolerance address and port must be set beforehand.
4353 </desc>
4354 </attribute>
4355
4356 <attribute name="faultTolerancePort" type="unsigned long">
4357 <desc>
4358 The TCP port the fault tolerance source or target will use for
4359 communication.
4360 </desc>
4361 </attribute>
4362
4363 <attribute name="faultToleranceAddress" type="wstring">
4364 <desc>
4365 The address the fault tolerance source or target.
4366 </desc>
4367 </attribute>
4368
4369 <attribute name="faultTolerancePassword" type="wstring">
4370 <desc>
4371 The password to check for on the standby VM. This is just a
4372 very basic measure to prevent simple hacks and operators accidentally
4373 choosing the wrong standby VM.
4374 </desc>
4375 </attribute>
4376
4377 <attribute name="faultToleranceSyncInterval" type="unsigned long">
4378 <desc>
4379 The interval in ms used for syncing the state between source and target.
4380 </desc>
4381 </attribute>
4382
4383 <attribute name="RTCUseUTC" type="boolean">
4384 <desc>
4385 When set to @a true, the RTC device of the virtual machine will run
4386 in UTC time, otherwise in local time. Especially Unix guests prefer
4387 the time in UTC.
4388 </desc>
4389 </attribute>
4390
4391 <attribute name="IOCacheEnabled" type="boolean">
4392 <desc>
4393 When set to @a true, the builtin I/O cache of the virtual machine
4394 will be enabled.
4395 </desc>
4396 </attribute>
4397
4398 <attribute name="IOCacheSize" type="unsigned long">
4399 <desc>
4400 Maximum size of the I/O cache in MB.
4401 </desc>
4402 </attribute>
4403
4404 <attribute name="PCIDeviceAssignments" type="IPCIDeviceAttachment" readonly="yes" safearray="yes">
4405 <desc>Array of PCI devices assigned to this machine, to get list of all
4406 PCI devices attached to the machine use
4407 <link to="IConsole::attachedPCIDevices"/> attribute, as this attribute
4408 is intended to list only devices additional to what described in
4409 virtual hardware config. Usually, this list keeps host's physical
4410 devices assigned to the particular machine.
4411 </desc>
4412 </attribute>
4413
4414 <attribute name="bandwidthControl" type="IBandwidthControl" readonly="yes">
4415 <desc>
4416 Bandwidth control manager.
4417 </desc>
4418 </attribute>
4419
4420 <attribute name="tracingEnabled" type="boolean">
4421 <desc>
4422 Enables the tracing facility in the VMM (including PDM devices +
4423 drivers). The VMM will consume about 0.5MB of more memory when
4424 enabled and there may be some extra overhead from tracepoints that are
4425 always enabled.
4426 </desc>
4427 </attribute>
4428
4429 <attribute name="tracingConfig" type="wstring">
4430 <desc>
4431 Tracepoint configuration to apply at startup when
4432 <link to="IMachine::tracingEnabled" /> is true. The string specifies
4433 a space separated of tracepoint group names to enable. The special
4434 group 'all' enables all tracepoints. Check DBGFR3TracingConfig for
4435 more details on available tracepoint groups and such.
4436
4437 Note that on hosts supporting DTrace (or similar), a lot of the
4438 tracepoints may be implemented exclusivly as DTrace probes. So, the
4439 effect of the same config may differ between Solaris and Windows for
4440 example.
4441 </desc>
4442 </attribute>
4443
4444 <attribute name="allowTracingToAccessVM" type="boolean">
4445 <desc>
4446 Enables tracepoints in PDM devices and drivers to use the VMCPU or VM
4447 structures when firing off trace points. This is especially useful
4448 with DTrace tracepoints, as it allows you to use the VMCPU or VM
4449 pointer to obtain useful information such as guest register state.
4450
4451 This is disabled by default because devices and drivers normally has no
4452 business accessing the VMCPU or VM structures, and are therefore unable
4453 to get any pointers to these.
4454 </desc>
4455 </attribute>
4456
4457 <attribute name="autostartEnabled" type="boolean">
4458 <desc>
4459 Enables autostart of the VM during system boot.
4460 </desc>
4461 </attribute>
4462
4463 <attribute name="autostartDelay" type="unsigned long">
4464 <desc>
4465 Number of seconds to wait until the VM should be started during system boot.
4466 </desc>
4467 </attribute>
4468
4469 <attribute name="autostopType" type="AutostopType">
4470 <desc>
4471 Action type to do when the system is shutting down.
4472 </desc>
4473 </attribute>
4474
4475 <method name="lockMachine">
4476 <desc>
4477 Locks the machine for the given session to enable the caller
4478 to make changes to the machine or start the VM or control
4479 VM execution.
4480
4481 There are two ways to lock a machine for such uses:
4482
4483 <ul>
4484 <li>If you want to make changes to the machine settings,
4485 you must obtain an exclusive write lock on the machine
4486 by setting @a lockType to @c Write.
4487
4488 This will only succeed if no other process has locked
4489 the machine to prevent conflicting changes. Only after
4490 an exclusive write lock has been obtained using this method, one
4491 can change all VM settings or execute the VM in the process
4492 space of the session object. (Note that the latter is only of
4493 interest if you actually want to write a new front-end for
4494 virtual machines; but this API gets called internally by
4495 the existing front-ends such as VBoxHeadless and the VirtualBox
4496 GUI to acquire a write lock on the machine that they are running.)
4497
4498 On success, write-locking the machine for a session creates
4499 a second copy of the IMachine object. It is this second object
4500 upon which changes can be made; in VirtualBox terminology, the
4501 second copy is "mutable". It is only this second, mutable machine
4502 object upon which you can call methods that change the
4503 machine state. After having called this method, you can
4504 obtain this second, mutable machine object using the
4505 <link to="ISession::machine" /> attribute.
4506 </li>
4507 <li>If you only want to check the machine state or control
4508 machine execution without actually changing machine
4509 settings (e.g. to get access to VM statistics or take
4510 a snapshot or save the machine state), then set the
4511 @a lockType argument to @c Shared.
4512
4513 If no other session has obtained a lock, you will obtain an
4514 exclusive write lock as described above. However, if another
4515 session has already obtained such a lock, then a link to that
4516 existing session will be established which allows you
4517 to control that existing session.
4518
4519 To find out which type of lock was obtained, you can
4520 inspect <link to="ISession::type" />, which will have been
4521 set to either @c WriteLock or @c Shared.
4522 </li>
4523 </ul>
4524
4525 In either case, you can get access to the <link to="IConsole" />
4526 object which controls VM execution.
4527
4528 Also in all of the above cases, one must always call
4529 <link to="ISession::unlockMachine" /> to release the lock on the machine, or
4530 the machine's state will eventually be set to "Aborted".
4531
4532 To change settings on a machine, the following sequence is typically
4533 performed:
4534
4535 <ol>
4536 <li>Call this method to obtain an exclusive write lock for the current session.</li>
4537
4538 <li>Obtain a mutable IMachine object from <link to="ISession::machine" />.</li>
4539
4540 <li>Change the settings of the machine by invoking IMachine methods.</li>
4541
4542 <li>Call <link to="IMachine::saveSettings" />.</li>
4543
4544 <li>Release the write lock by calling <link to="ISession::unlockMachine"/>.</li>
4545 </ol>
4546
4547 <result name="E_UNEXPECTED">
4548 Virtual machine not registered.
4549 </result>
4550 <result name="E_ACCESSDENIED">
4551 Process not started by OpenRemoteSession.
4552 </result>
4553 <result name="VBOX_E_INVALID_OBJECT_STATE">
4554 Session already open or being opened.
4555 </result>
4556 <result name="VBOX_E_VM_ERROR">
4557 Failed to assign machine to session.
4558 </result>
4559 </desc>
4560 <param name="session" type="ISession" dir="in">
4561 <desc>
4562 Session object for which the machine will be locked.
4563 </desc>
4564 </param>
4565 <param name="lockType" type="LockType" dir="in">
4566 <desc>
4567 If set to @c Write, then attempt to acquire an exclusive write lock or fail.
4568 If set to @c Shared, then either acquire an exclusive write lock or establish
4569 a link to an existing session.
4570 </desc>
4571 </param>
4572 </method>
4573
4574 <method name="launchVMProcess">
4575 <desc>
4576 Spawns a new process that will execute the virtual machine and obtains a shared
4577 lock on the machine for the calling session.
4578
4579 If launching the VM succeeds, the new VM process will create its own session
4580 and write-lock the machine for it, preventing conflicting changes from other
4581 processes. If the machine is already locked (because it is already running or
4582 because another session has a write lock), launching the VM process will therefore
4583 fail. Reversely, future attempts to obtain a write lock will also fail while the
4584 machine is running.
4585
4586 The caller's session object remains separate from the session opened by the new
4587 VM process. It receives its own <link to="IConsole" /> object which can be used
4588 to control machine execution, but it cannot be used to change all VM settings
4589 which would be available after a <link to="#lockMachine" /> call.
4590
4591 The caller must eventually release the session's shared lock by calling
4592 <link to="ISession::unlockMachine" /> on the local session object once this call
4593 has returned. However, the session's state (see <link to="ISession::state" />)
4594 will not return to "Unlocked" until the remote session has also unlocked
4595 the machine (i.e. the machine has stopped running).
4596
4597 Launching a VM process can take some time (a new VM is started in a new process,
4598 for which memory and other resources need to be set up). Because of this,
4599 an <link to="IProgress" /> object is returned to allow the caller to wait
4600 for this asynchronous operation to be completed. Until then, the caller's
4601 session object remains in the "Unlocked" state, and its <link to="ISession::machine" />
4602 and <link to="ISession::console" /> attributes cannot be accessed.
4603 It is recommended to use <link to="IProgress::waitForCompletion" /> or
4604 similar calls to wait for completion. Completion is signalled when the VM
4605 is powered on. If launching the VM fails, error messages can be queried
4606 via the progress object, if available.
4607
4608 The progress object will have at least 2 sub-operations. The first
4609 operation covers the period up to the new VM process calls powerUp.
4610 The subsequent operations mirror the <link to="IConsole::powerUp"/>
4611 progress object. Because <link to="IConsole::powerUp"/> may require
4612 some extra sub-operations, the <link to="IProgress::operationCount"/>
4613 may change at the completion of operation.
4614
4615 For details on the teleportation progress operation, see
4616 <link to="IConsole::powerUp"/>.
4617
4618 The @a environment argument is a string containing definitions of
4619 environment variables in the following format:
4620 <pre>
4621 NAME[=VALUE]\n
4622 NAME[=VALUE]\n
4623 ...
4624 </pre>
4625 where <tt>\\n</tt> is the new line character. These environment
4626 variables will be appended to the environment of the VirtualBox server
4627 process. If an environment variable exists both in the server process
4628 and in this list, the value from this list takes precedence over the
4629 server's variable. If the value of the environment variable is
4630 omitted, this variable will be removed from the resulting environment.
4631 If the environment string is @c null or empty, the server environment
4632 is inherited by the started process as is.
4633
4634 <result name="E_UNEXPECTED">
4635 Virtual machine not registered.
4636 </result>
4637 <result name="E_INVALIDARG">
4638 Invalid session type @a type.
4639 </result>
4640 <result name="VBOX_E_OBJECT_NOT_FOUND">
4641 No machine matching @a machineId found.
4642 </result>
4643 <result name="VBOX_E_INVALID_OBJECT_STATE">
4644 Session already open or being opened.
4645 </result>
4646 <result name="VBOX_E_IPRT_ERROR">
4647 Launching process for machine failed.
4648 </result>
4649 <result name="VBOX_E_VM_ERROR">
4650 Failed to assign machine to session.
4651 </result>
4652 </desc>
4653 <param name="session" type="ISession" dir="in">
4654 <desc>
4655 Client session object to which the VM process will be connected (this
4656 must be in "Unlocked" state).
4657 </desc>
4658 </param>
4659 <param name="type" type="wstring" dir="in">
4660 <desc>
4661 Front-end to use for the new VM process. The following are currently supported:
4662 <ul>
4663 <li><tt>"gui"</tt>: VirtualBox Qt GUI front-end</li>
4664 <li><tt>"headless"</tt>: VBoxHeadless (VRDE Server) front-end</li>
4665 <li><tt>"sdl"</tt>: VirtualBox SDL front-end</li>
4666 <li><tt>"emergencystop"</tt>: reserved value, used for aborting
4667 the currently running VM or session owner. In this case the
4668 @a session parameter may be @c null (if it is non-null it isn't
4669 used in any way), and the @a progress return value will be always
4670 @c null. The operation completes immediately.</li>
4671 </ul>
4672 </desc>
4673 </param>
4674 <param name="environment" type="wstring" dir="in">
4675 <desc>
4676 Environment to pass to the VM process.
4677 </desc>
4678 </param>
4679 <param name="progress" type="IProgress" dir="return">
4680 <desc>Progress object to track the operation completion.</desc>
4681 </param>
4682 </method>
4683
4684 <method name="setBootOrder">
4685 <desc>
4686 Puts the given device to the specified position in
4687 the boot order.
4688
4689 To indicate that no device is associated with the given position,
4690 <link to="DeviceType_Null"/> should be used.
4691
4692 @todo setHardDiskBootOrder(), setNetworkBootOrder()
4693
4694 <result name="E_INVALIDARG">
4695 Boot @a position out of range.
4696 </result>
4697 <result name="E_NOTIMPL">
4698 Booting from USB @a device currently not supported.
4699 </result>
4700
4701 </desc>
4702 <param name="position" type="unsigned long" dir="in">
4703 <desc>
4704 Position in the boot order (@c 1 to the total number of
4705 devices the machine can boot from, as returned by
4706 <link to="ISystemProperties::maxBootPosition"/>).
4707 </desc>
4708 </param>
4709 <param name="device" type="DeviceType" dir="in">
4710 <desc>
4711 The type of the device used to boot at the given position.
4712 </desc>
4713 </param>
4714 </method>
4715
4716 <method name="getBootOrder" const="yes">
4717 <desc>
4718 Returns the device type that occupies the specified
4719 position in the boot order.
4720
4721 @todo [remove?]
4722 If the machine can have more than one device of the returned type
4723 (such as hard disks), then a separate method should be used to
4724 retrieve the individual device that occupies the given position.
4725
4726 If here are no devices at the given position, then
4727 <link to="DeviceType_Null"/> is returned.
4728
4729 @todo getHardDiskBootOrder(), getNetworkBootOrder()
4730
4731 <result name="E_INVALIDARG">
4732 Boot @a position out of range.
4733 </result>
4734
4735 </desc>
4736 <param name="position" type="unsigned long" dir="in">
4737 <desc>
4738 Position in the boot order (@c 1 to the total number of
4739 devices the machine can boot from, as returned by
4740 <link to="ISystemProperties::maxBootPosition"/>).
4741 </desc>
4742 </param>
4743 <param name="device" type="DeviceType" dir="return">
4744 <desc>
4745 Device at the given position.
4746 </desc>
4747 </param>
4748 </method>
4749
4750 <method name="attachDevice">
4751 <desc>
4752 Attaches a device and optionally mounts a medium to the given storage
4753 controller (<link to="IStorageController" />, identified by @a name),
4754 at the indicated port and device.
4755
4756 This method is intended for managing storage devices in general while a
4757 machine is powered off. It can be used to attach and detach fixed
4758 and removable media. The following kind of media can be attached
4759 to a machine:
4760
4761 <ul>
4762 <li>For fixed and removable media, you can pass in a medium that was
4763 previously opened using <link to="IVirtualBox::openMedium" />.
4764 </li>
4765
4766 <li>Only for storage devices supporting removable media (such as
4767 DVDs and floppies), you can also specify a null pointer to
4768 indicate an empty drive or one of the medium objects listed
4769 in the <link to="IHost::DVDDrives" /> and <link to="IHost::floppyDrives"/>
4770 arrays to indicate a host drive.
4771 For removable devices, you can also use <link to="IMachine::mountMedium"/>
4772 to change the media while the machine is running.
4773 </li>
4774 </ul>
4775
4776 In a VM's default configuration of virtual machines, the secondary
4777 master of the IDE controller is used for a CD/DVD drive.
4778
4779 After calling this returns successfully, a new instance of
4780 <link to="IMediumAttachment"/> will appear in the machine's list of medium
4781 attachments (see <link to="IMachine::mediumAttachments"/>).
4782
4783 See <link to="IMedium"/> and <link to="IMediumAttachment"/> for more
4784 information about attaching media.
4785
4786 The specified device slot must not have a device attached to it,
4787 or this method will fail.
4788
4789 <note>
4790 You cannot attach a device to a newly created machine until
4791 this machine's settings are saved to disk using
4792 <link to="#saveSettings"/>.
4793 </note>
4794 <note>
4795 If the medium is being attached indirectly, a new differencing medium
4796 will implicitly be created for it and attached instead. If the
4797 changes made to the machine settings (including this indirect
4798 attachment) are later cancelled using <link to="#discardSettings"/>,
4799 this implicitly created differencing medium will implicitly
4800 be deleted.
4801 </note>
4802
4803 <result name="E_INVALIDARG">
4804 SATA device, SATA port, IDE port or IDE slot out of range, or
4805 file or UUID not found.
4806 </result>
4807 <result name="VBOX_E_INVALID_OBJECT_STATE">
4808 Machine must be registered before media can be attached.
4809 </result>
4810 <result name="VBOX_E_INVALID_VM_STATE">
4811 Invalid machine state.
4812 </result>
4813 <result name="VBOX_E_OBJECT_IN_USE">
4814 A medium is already attached to this or another virtual machine.
4815 </result>
4816
4817 </desc>
4818 <param name="name" type="wstring" dir="in">
4819 <desc>Name of the storage controller to attach the device to.</desc>
4820 </param>
4821 <param name="controllerPort" type="long" dir="in">
4822 <desc>Port to attach the device to. For an IDE controller, 0 specifies
4823 the primary controller and 1 specifies the secondary controller.
4824 For a SCSI controller, this must range from 0 to 15; for a SATA controller,
4825 from 0 to 29; for an SAS controller, from 0 to 7.</desc>
4826 </param>
4827 <param name="device" type="long" dir="in">
4828 <desc>Device slot in the given port to attach the device to. This is only
4829 relevant for IDE controllers, for which 0 specifies the master device and
4830 1 specifies the slave device. For all other controller types, this must
4831 be 0.</desc>
4832 </param>
4833 <param name="type" type="DeviceType" dir="in">
4834 <desc>Device type of the attached device. For media opened by
4835 <link to="IVirtualBox::openMedium" />, this must match the device type
4836 specified there.</desc>
4837 </param>
4838 <param name="medium" type="IMedium" dir="in">
4839 <desc>Medium to mount or @c null for an empty drive.</desc>
4840 </param>
4841 </method>
4842
4843 <method name="attachDeviceWithoutMedium">
4844 <desc>
4845 Attaches a device and optionally mounts a medium to the given storage
4846 controller (<link to="IStorageController" />, identified by @a name),
4847 at the indicated port and device.
4848
4849 This method is intended for managing storage devices in general while a
4850 machine is powered off. It can be used to attach and detach fixed
4851 and removable media. The following kind of media can be attached
4852 to a machine:
4853 <ul>
4854 <li>
4855 For fixed and removable media, you can pass in a medium that was
4856 previously opened using <link to="IVirtualBox::openMedium" />.
4857 </li>
4858
4859 <li>Only for storage devices supporting removable media (such as
4860 DVDs and floppies) with an empty drive or one of the medium objects listed
4861 in the <link to="IHost::DVDDrives" /> and <link to="IHost::floppyDrives"/>
4862 arrays to indicate a host drive.
4863 For removable devices, you can also use <link to="IMachine::mountMedium"/>
4864 to change the media while the machine is running.
4865 </li>
4866 </ul>
4867
4868 In a VM's default configuration of virtual machines, the secondary
4869 master of the IDE controller is used for a CD/DVD drive.
4870 <link to="IMediumAttachment"/> will appear in the machine's list of medium
4871 attachments (see <link to="IMachine::mediumAttachments"/>).
4872
4873 See <link to="IMedium"/> and <link to="IMediumAttachment"/> for more
4874 information about attaching media.
4875
4876 The specified device slot must not have a device attached to it,
4877 or this method will fail.
4878 <note>
4879 You cannot attach a device to a newly created machine until
4880 this machine's settings are saved to disk using
4881 <link to="#saveSettings"/>.
4882 </note>
4883 <note>
4884 If the medium is being attached indirectly, a new differencing medium
4885 will implicitly be created for it and attached instead. If the
4886 changes made to the machine settings (including this indirect
4887 attachment) are later cancelled using <link to="#discardSettings"/>,
4888 this implicitly created differencing medium will implicitly
4889 be deleted.
4890 </note>
4891
4892 <result name="E_INVALIDARG">
4893 SATA device, SATA port, IDE port or IDE slot out of range, or
4894 file or UUID not found.
4895 </result>
4896 <result name="VBOX_E_INVALID_OBJECT_STATE">
4897 Machine must be registered before media can be attached.
4898 </result>
4899 <result name="VBOX_E_INVALID_VM_STATE">
4900 Invalid machine state.
4901 </result>
4902 <result name="VBOX_E_OBJECT_IN_USE">
4903 A medium is already attached to this or another virtual machine.
4904 </result>
4905 </desc>
4906 <param name="name" type="wstring" dir="in">
4907 <desc>Name of the storage controller to attach the device to.</desc>
4908 </param>
4909 <param name="controllerPort" type="long" dir="in">
4910 <desc>Port to attach the device to. For an IDE controller, 0 specifies
4911 the primary controller and 1 specifies the secondary controller.
4912 For a SCSI controller, this must range from 0 to 15; for a SATA controller,
4913 from 0 to 29; for an SAS controller, from 0 to 7.</desc>
4914 </param>
4915 <param name="device" type="long" dir="in">
4916 <desc>Device slot in the given port to attach the device to. This is only
4917 relevant for IDE controllers, for which 0 specifies the master device and
4918 1 specifies the slave device. For all other controller types, this must
4919 be 0.</desc>
4920 </param>
4921 <param name="type" type="DeviceType" dir="in">
4922 <desc>Device type of the attached device. For media opened by
4923 <link to="IVirtualBox::openMedium" />, this must match the device type
4924 specified there.</desc>
4925 </param>
4926 </method>
4927
4928 <method name="detachDevice">
4929 <desc>
4930 Detaches the device attached to a device slot of the specified bus.
4931
4932 Detaching the device from the virtual machine is deferred. This means
4933 that the medium remains associated with the machine when this method
4934 returns and gets actually de-associated only after a successful
4935 <link to="#saveSettings"/> call. See <link to="IMedium"/>
4936 for more detailed information about attaching media.
4937
4938 <note>
4939 You cannot detach a device from a running machine.
4940 </note>
4941 <note>
4942 Detaching differencing media implicitly created by <link
4943 to="#attachDevice"/> for the indirect attachment using this
4944 method will <b>not</b> implicitly delete them. The
4945 <link to="IMedium::deleteStorage"/> operation should be
4946 explicitly performed by the caller after the medium is successfully
4947 detached and the settings are saved with
4948 <link to="#saveSettings"/>, if it is the desired action.
4949 </note>
4950
4951 <result name="VBOX_E_INVALID_VM_STATE">
4952 Attempt to detach medium from a running virtual machine.
4953 </result>
4954 <result name="VBOX_E_OBJECT_NOT_FOUND">
4955 No medium attached to given slot/bus.
4956 </result>
4957 <result name="VBOX_E_NOT_SUPPORTED">
4958 Medium format does not support storage deletion (only for implicitly
4959 created differencing media, should not happen).
4960 </result>
4961
4962 </desc>
4963 <param name="name" type="wstring" dir="in">
4964 <desc>Name of the storage controller to detach the medium from.</desc>
4965 </param>
4966 <param name="controllerPort" type="long" dir="in">
4967 <desc>Port number to detach the medium from.</desc>
4968 </param>
4969 <param name="device" type="long" dir="in">
4970 <desc>Device slot number to detach the medium from.</desc>
4971 </param>
4972 </method>
4973
4974 <method name="passthroughDevice">
4975 <desc>
4976 Sets the passthrough mode of an existing DVD device. Changing the
4977 setting while the VM is running is forbidden. The setting is only used
4978 if at VM start the device is configured as a host DVD drive, in all
4979 other cases it is ignored. The device must already exist; see
4980 <link to="IMachine::attachDevice"/> for how to attach a new device.
4981
4982 The @a controllerPort and @a device parameters specify the device slot and
4983 have have the same meaning as with <link to="IMachine::attachDevice" />.
4984
4985 <result name="E_INVALIDARG">
4986 SATA device, SATA port, IDE port or IDE slot out of range.
4987 </result>
4988 <result name="VBOX_E_INVALID_OBJECT_STATE">
4989 Attempt to modify an unregistered virtual machine.
4990 </result>
4991 <result name="VBOX_E_INVALID_VM_STATE">
4992 Invalid machine state.
4993 </result>
4994
4995 </desc>
4996 <param name="name" type="wstring" dir="in">
4997 <desc>Name of the storage controller.</desc>
4998 </param>
4999 <param name="controllerPort" type="long" dir="in">
5000 <desc>Storage controller port.</desc>
5001 </param>
5002 <param name="device" type="long" dir="in">
5003 <desc>Device slot in the given port.</desc>
5004 </param>
5005 <param name="passthrough" type="boolean" dir="in">
5006 <desc>New value for the passthrough setting.</desc>
5007 </param>
5008 </method>
5009
5010 <method name="temporaryEjectDevice">
5011 <desc>
5012 Sets the behavior for guest-triggered medium eject. In some situations
5013 it is desirable that such ejects update the VM configuration, and in
5014 others the eject should keep the VM configuration. The device must
5015 already exist; see <link to="IMachine::attachDevice"/> for how to
5016 attach a new device.
5017
5018 The @a controllerPort and @a device parameters specify the device slot and
5019 have have the same meaning as with <link to="IMachine::attachDevice" />.
5020
5021 <result name="E_INVALIDARG">
5022 SATA device, SATA port, IDE port or IDE slot out of range.
5023 </result>
5024 <result name="VBOX_E_INVALID_OBJECT_STATE">
5025 Attempt to modify an unregistered virtual machine.
5026 </result>
5027 <result name="VBOX_E_INVALID_VM_STATE">
5028 Invalid machine state.
5029 </result>
5030
5031 </desc>
5032 <param name="name" type="wstring" dir="in">
5033 <desc>Name of the storage controller.</desc>
5034 </param>
5035 <param name="controllerPort" type="long" dir="in">
5036 <desc>Storage controller port.</desc>
5037 </param>
5038 <param name="device" type="long" dir="in">
5039 <desc>Device slot in the given port.</desc>
5040 </param>
5041 <param name="temporaryEject" type="boolean" dir="in">
5042 <desc>New value for the eject behavior.</desc>
5043 </param>
5044 </method>
5045
5046 <method name="nonRotationalDevice">
5047 <desc>
5048 Sets a flag in the device information which indicates that the medium
5049 is not based on rotational technology, i.e. that the access times are
5050 more or less independent of the position on the medium. This may or may
5051 not be supported by a particular drive, and is silently ignored in the
5052 latter case. At the moment only hard disks (which is a misnomer in this
5053 context) accept this setting. Changing the setting while the VM is
5054 running is forbidden. The device must already exist; see
5055 <link to="IMachine::attachDevice"/> for how to attach a new device.
5056
5057 The @a controllerPort and @a device parameters specify the device slot and
5058 have have the same meaning as with <link to="IMachine::attachDevice" />.
5059
5060 <result name="E_INVALIDARG">
5061 SATA device, SATA port, IDE port or IDE slot out of range.
5062 </result>
5063 <result name="VBOX_E_INVALID_OBJECT_STATE">
5064 Attempt to modify an unregistered virtual machine.
5065 </result>
5066 <result name="VBOX_E_INVALID_VM_STATE">
5067 Invalid machine state.
5068 </result>
5069
5070 </desc>
5071 <param name="name" type="wstring" dir="in">
5072 <desc>Name of the storage controller.</desc>
5073 </param>
5074 <param name="controllerPort" type="long" dir="in">
5075 <desc>Storage controller port.</desc>
5076 </param>
5077 <param name="device" type="long" dir="in">
5078 <desc>Device slot in the given port.</desc>
5079 </param>
5080 <param name="nonRotational" type="boolean" dir="in">
5081 <desc>New value for the non-rotational device flag.</desc>
5082 </param>
5083 </method>
5084
5085 <method name="setAutoDiscardForDevice">
5086 <desc>
5087 Sets a flag in the device information which indicates that the medium
5088 supports discarding unsused blocks (called trimming for SATA or unmap
5089 for SCSI devices) .This may or may not be supported by a particular drive,
5090 and is silently ignored in the latter case. At the moment only hard disks
5091 (which is a misnomer in this context) accept this setting. Changing the
5092 setting while the VM is running is forbidden. The device must already
5093 exist; see <link to="IMachine::attachDevice"/> for how to attach a new
5094 device.
5095
5096 The @a controllerPort and @a device parameters specify the device slot and
5097 have have the same meaning as with <link to="IMachine::attachDevice" />.
5098
5099 <result name="E_INVALIDARG">
5100 SATA device, SATA port, SCSI port out of range.
5101 </result>
5102 <result name="VBOX_E_INVALID_OBJECT_STATE">
5103 Attempt to modify an unregistered virtual machine.
5104 </result>
5105 <result name="VBOX_E_INVALID_VM_STATE">
5106 Invalid machine state.
5107 </result>
5108
5109 </desc>
5110 <param name="name" type="wstring" dir="in">
5111 <desc>Name of the storage controller.</desc>
5112 </param>
5113 <param name="controllerPort" type="long" dir="in">
5114 <desc>Storage controller port.</desc>
5115 </param>
5116 <param name="device" type="long" dir="in">
5117 <desc>Device slot in the given port.</desc>
5118 </param>
5119 <param name="discard" type="boolean" dir="in">
5120 <desc>New value for the discard device flag.</desc>
5121 </param>
5122 </method>
5123
5124 <method name="setBandwidthGroupForDevice">
5125 <desc>
5126 Sets the bandwidth group of an existing storage device.
5127 The device must already exist; see <link to="IMachine::attachDevice"/>
5128 for how to attach a new device.
5129
5130 The @a controllerPort and @a device parameters specify the device slot and
5131 have have the same meaning as with <link to="IMachine::attachDevice" />.
5132
5133 <result name="E_INVALIDARG">
5134 SATA device, SATA port, IDE port or IDE slot out of range.
5135 </result>
5136 <result name="VBOX_E_INVALID_OBJECT_STATE">
5137 Attempt to modify an unregistered virtual machine.
5138 </result>
5139 <result name="VBOX_E_INVALID_VM_STATE">
5140 Invalid machine state.
5141 </result>
5142
5143 </desc>
5144 <param name="name" type="wstring" dir="in">
5145 <desc>Name of the storage controller.</desc>
5146 </param>
5147 <param name="controllerPort" type="long" dir="in">
5148 <desc>Storage controller port.</desc>
5149 </param>
5150 <param name="device" type="long" dir="in">
5151 <desc>Device slot in the given port.</desc>
5152 </param>
5153 <param name="bandwidthGroup" type="IBandwidthGroup" dir="in">
5154 <desc>New value for the bandwidth group or @c null for no group.</desc>
5155 </param>
5156 </method>
5157
5158 <method name="setNoBandwidthGroupForDevice">
5159 <desc>
5160 Sets no bandwidth group for an existing storage device.
5161 The device must already exist; see <link to="IMachine::attachDevice"/>
5162 for how to attach a new device.
5163 The @a controllerPort and @a device parameters specify the device slot and
5164 have have the same meaning as with <link to="IMachine::attachDevice" />.
5165 <result name="E_INVALIDARG">
5166 SATA device, SATA port, IDE port or IDE slot out of range.
5167 </result>
5168 <result name="VBOX_E_INVALID_OBJECT_STATE">
5169 Attempt to modify an unregistered virtual machine.
5170 </result>
5171 <result name="VBOX_E_INVALID_VM_STATE">
5172 Invalid machine state.
5173 </result>
5174
5175 </desc>
5176 <param name="name" type="wstring" dir="in">
5177 <desc>Name of the storage controller.</desc>
5178 </param>
5179 <param name="controllerPort" type="long" dir="in">
5180 <desc>Storage controller port.</desc>
5181 </param>
5182 <param name="device" type="long" dir="in">
5183 <desc>Device slot in the given port.</desc>
5184 </param>
5185 </method>
5186
5187
5188 <method name="unmountMedium">
5189 <desc>
5190 Unmounts any currently mounted medium (<link to="IMedium" />,
5191 identified by the given UUID @a id) to the given storage controller
5192 (<link to="IStorageController" />, identified by @a name),
5193 at the indicated port and device. The device must already exist;
5194
5195 This method is intended only for managing removable media, where the
5196 device is fixed but media is changeable at runtime (such as DVDs
5197 and floppies). It cannot be used for fixed media such as hard disks.
5198
5199 The @a controllerPort and @a device parameters specify the device slot
5200 and have have the same meaning as with
5201 <link to="IMachine::attachDevice" />.
5202
5203 The specified device slot must have a medium mounted, which will be
5204 unmounted. If there is no mounted medium it will do nothing.
5205 See <link to="IMedium"/> for more detailed information about
5206 attaching/unmounting media.
5207
5208 <result name="E_INVALIDARG">
5209 SATA device, SATA port, IDE port or IDE slot out of range.
5210 </result>
5211 <result name="VBOX_E_INVALID_OBJECT_STATE">
5212 Attempt to unmount medium that is not removeable - not dvd or floppy.
5213 </result>
5214 <result name="VBOX_E_INVALID_VM_STATE">
5215 Invalid machine state.
5216 </result>
5217 <result name="VBOX_E_OBJECT_IN_USE">
5218 Medium already attached to this or another virtual machine.
5219 </result>
5220 <result name="VBOX_E_OBJECT_NOT_FOUND">
5221 Medium not attached to specified port, device, controller.
5222 </result>
5223
5224 </desc>
5225 <param name="name" type="wstring" dir="in">
5226 <desc>Name of the storage controller to unmount the medium from.</desc>
5227 </param>
5228 <param name="controllerPort" type="long" dir="in">
5229 <desc>Port to unmount the medium from.</desc>
5230 </param>
5231 <param name="device" type="long" dir="in">
5232 <desc>Device slot in the given port to unmount the medium from.</desc>
5233 </param>
5234 <param name="force" type="boolean" dir="in">
5235 <desc>Allows to force unmount of a medium which is locked by
5236 the device slot in the given port medium is attached to.</desc>
5237 </param>
5238 </method>
5239
5240 <method name="mountMedium">
5241 <desc>
5242 Mounts a medium (<link to="IMedium" />, identified
5243 by the given UUID @a id) to the given storage controller
5244 (<link to="IStorageController" />, identified by @a name),
5245 at the indicated port and device. The device must already exist;
5246 see <link to="IMachine::attachDevice"/> for how to attach a new device.
5247
5248 This method is intended only for managing removable media, where the
5249 device is fixed but media is changeable at runtime (such as DVDs
5250 and floppies). It cannot be used for fixed media such as hard disks.
5251
5252 The @a controllerPort and @a device parameters specify the device slot and
5253 have have the same meaning as with <link to="IMachine::attachDevice" />.
5254
5255 The specified device slot can have a medium mounted, which will be
5256 unmounted first. Specifying a zero UUID (or an empty string) for
5257 @a medium does just an unmount.
5258
5259 See <link to="IMedium"/> for more detailed information about
5260 attaching media.
5261
5262 <result name="E_INVALIDARG">
5263 SATA device, SATA port, IDE port or IDE slot out of range.
5264 </result>
5265 <result name="VBOX_E_INVALID_OBJECT_STATE">
5266 Attempt to attach medium to an unregistered virtual machine.
5267 </result>
5268 <result name="VBOX_E_INVALID_VM_STATE">
5269 Invalid machine state.
5270 </result>
5271 <result name="VBOX_E_OBJECT_IN_USE">
5272 Medium already attached to this or another virtual machine.
5273 </result>
5274
5275 </desc>
5276 <param name="name" type="wstring" dir="in">
5277 <desc>Name of the storage controller to attach the medium to.</desc>
5278 </param>
5279 <param name="controllerPort" type="long" dir="in">
5280 <desc>Port to attach the medium to.</desc>
5281 </param>
5282 <param name="device" type="long" dir="in">
5283 <desc>Device slot in the given port to attach the medium to.</desc>
5284 </param>
5285 <param name="medium" type="IMedium" dir="in">
5286 <desc>Medium to mount or @c null for an empty drive.</desc>
5287 </param>
5288 <param name="force" type="boolean" dir="in">
5289 <desc>Allows to force unmount/mount of a medium which is locked by
5290 the device slot in the given port to attach the medium to.</desc>
5291 </param>
5292 </method>
5293
5294 <method name="getMedium" const="yes">
5295 <desc>
5296 Returns the virtual medium attached to a device slot of the specified
5297 bus.
5298
5299 Note that if the medium was indirectly attached by
5300 <link to="#mountMedium"/> to the given device slot then this
5301 method will return not the same object as passed to the
5302 <link to="#mountMedium"/> call. See <link to="IMedium"/> for
5303 more detailed information about mounting a medium.
5304
5305 <result name="VBOX_E_OBJECT_NOT_FOUND">
5306 No medium attached to given slot/bus.
5307 </result>
5308
5309 </desc>
5310 <param name="name" type="wstring" dir="in">
5311 <desc>Name of the storage controller the medium is attached to.</desc>
5312 </param>
5313 <param name="controllerPort" type="long" dir="in">
5314 <desc>Port to query.</desc>
5315 </param>
5316 <param name="device" type="long" dir="in">
5317 <desc>Device slot in the given port to query.</desc>
5318 </param>
5319 <param name="medium" type="IMedium" dir="return">
5320 <desc>Attached medium object.</desc>
5321 </param>
5322 </method>
5323
5324 <method name="getMediumAttachmentsOfController" const="yes">
5325 <desc>
5326 Returns an array of medium attachments which are attached to the
5327 the controller with the given name.
5328
5329 <result name="VBOX_E_OBJECT_NOT_FOUND">
5330 A storage controller with given name doesn't exist.
5331 </result>
5332 </desc>
5333 <param name="name" type="wstring" dir="in"/>
5334 <param name="mediumAttachments" type="IMediumAttachment" safearray="yes" dir="return"/>
5335 </method>
5336
5337 <method name="getMediumAttachment" const="yes">
5338 <desc>
5339 Returns a medium attachment which corresponds to the controller with
5340 the given name, on the given port and device slot.
5341
5342 <result name="VBOX_E_OBJECT_NOT_FOUND">
5343 No attachment exists for the given controller/port/device combination.
5344 </result>
5345 </desc>
5346 <param name="name" type="wstring" dir="in"/>
5347 <param name="controllerPort" type="long" dir="in"/>
5348 <param name="device" type="long" dir="in"/>
5349 <param name="attachment" type="IMediumAttachment" dir="return"/>
5350 </method>
5351
5352 <method name="attachHostPCIDevice">
5353 <desc>
5354 Attaches host PCI device with the given (host) PCI address to the
5355 PCI bus of the virtual machine. Please note, that this operation
5356 is two phase, as real attachment will happen when VM will start,
5357 and most information will be delivered as IHostPCIDevicePlugEvent
5358 on IVirtualBox event source.
5359
5360 <see><link to="IHostPCIDevicePlugEvent"/></see>
5361
5362 <result name="VBOX_E_INVALID_VM_STATE">
5363 Virtual machine state is not stopped (PCI hotplug not yet implemented).
5364 </result>
5365 <result name="VBOX_E_PDM_ERROR">
5366 Virtual machine does not have a PCI controller allowing attachment of physical devices.
5367 </result>
5368 <result name="VBOX_E_NOT_SUPPORTED">
5369 Hardware or host OS doesn't allow PCI device passthrought.
5370 </result>
5371 </desc>
5372 <param name="hostAddress" type="long" dir="in">
5373 <desc>Address of the host PCI device.</desc>
5374 </param>
5375 <param name="desiredGuestAddress" type="long" dir="in">
5376 <desc>Desired position of this device on guest PCI bus.</desc>
5377 </param>
5378 <param name="tryToUnbind" type="boolean" dir="in">
5379 <desc>If VMM shall try to unbind existing drivers from the
5380 device before attaching it to the guest.</desc>
5381 </param>
5382 </method>
5383
5384 <method name="detachHostPCIDevice">
5385 <desc>
5386 Detach host PCI device from the virtual machine.
5387 Also HostPCIDevicePlugEvent on IVirtualBox event source
5388 will be delivered. As currently we don't support hot device
5389 unplug, IHostPCIDevicePlugEvent event is delivered immediately.
5390
5391 <see><link to="IHostPCIDevicePlugEvent"/></see>
5392
5393 <result name="VBOX_E_INVALID_VM_STATE">
5394 Virtual machine state is not stopped (PCI hotplug not yet implemented).
5395 </result>
5396 <result name="VBOX_E_OBJECT_NOT_FOUND">
5397 This host device is not attached to this machine.
5398 </result>
5399 <result name="VBOX_E_PDM_ERROR">
5400 Virtual machine does not have a PCI controller allowing attachment of physical devices.
5401 </result>
5402 <result name="VBOX_E_NOT_SUPPORTED">
5403 Hardware or host OS doesn't allow PCI device passthrought.
5404 </result>
5405 </desc>
5406 <param name="hostAddress" type="long" dir="in">
5407 <desc>Address of the host PCI device.</desc>
5408 </param>
5409 </method>
5410
5411 <method name="getNetworkAdapter" const="yes">
5412 <desc>
5413 Returns the network adapter associated with the given slot.
5414 Slots are numbered sequentially, starting with zero. The total
5415 number of adapters per machine is defined by the
5416 <link to="ISystemProperties::getMaxNetworkAdapters"/> property,
5417 so the maximum slot number is one less than that property's value.
5418
5419 <result name="E_INVALIDARG">
5420 Invalid @a slot number.
5421 </result>
5422
5423 </desc>
5424 <param name="slot" type="unsigned long" dir="in"/>
5425 <param name="adapter" type="INetworkAdapter" dir="return"/>
5426 </method>
5427
5428 <method name="addStorageController">
5429 <desc>
5430 Adds a new storage controller (SCSI, SAS or SATA controller) to the
5431 machine and returns it as an instance of
5432 <link to="IStorageController" />.
5433
5434 @a name identifies the controller for subsequent calls such as
5435 <link to="#getStorageControllerByName" />,
5436 <link to="#getStorageControllerByInstance" />,
5437 <link to="#removeStorageController" />,
5438 <link to="#attachDevice" /> or <link to="#mountMedium" />.
5439
5440 After the controller has been added, you can set its exact
5441 type by setting the <link to="IStorageController::controllerType" />.
5442
5443 <result name="VBOX_E_OBJECT_IN_USE">
5444 A storage controller with given name exists already.
5445 </result>
5446 <result name="E_INVALIDARG">
5447 Invalid @a controllerType.
5448 </result>
5449 </desc>
5450 <param name="name" type="wstring" dir="in"/>
5451 <param name="connectionType" type="StorageBus" dir="in"/>
5452 <param name="controller" type="IStorageController" dir="return"/>
5453 </method>
5454
5455 <method name="getStorageControllerByName" const="yes">
5456 <desc>
5457 Returns a storage controller with the given name.
5458
5459 <result name="VBOX_E_OBJECT_NOT_FOUND">
5460 A storage controller with given name doesn't exist.
5461 </result>
5462 </desc>
5463 <param name="name" type="wstring" dir="in"/>
5464 <param name="storageController" type="IStorageController" dir="return"/>
5465 </method>
5466
5467 <method name="getStorageControllerByInstance" const="yes">
5468 <desc>
5469 Returns a storage controller with the given instance number.
5470
5471 <result name="VBOX_E_OBJECT_NOT_FOUND">
5472 A storage controller with given instance number doesn't exist.
5473 </result>
5474 </desc>
5475 <param name="instance" type="unsigned long" dir="in"/>
5476 <param name="storageController" type="IStorageController" dir="return"/>
5477 </method>
5478
5479 <method name="removeStorageController">
5480 <desc>
5481 Removes a storage controller from the machine with all devices attached to it.
5482
5483 <result name="VBOX_E_OBJECT_NOT_FOUND">
5484 A storage controller with given name doesn't exist.
5485 </result>
5486 <result name="VBOX_E_NOT_SUPPORTED">
5487 Medium format does not support storage deletion (only for implicitly
5488 created differencing media, should not happen).
5489 </result>
5490 </desc>
5491 <param name="name" type="wstring" dir="in"/>
5492 </method>
5493
5494 <method name="setStorageControllerBootable">
5495 <desc>
5496 Sets the bootable flag of the storage controller with the given name.
5497
5498 <result name="VBOX_E_OBJECT_NOT_FOUND">
5499 A storage controller with given name doesn't exist.
5500 </result>
5501 <result name="VBOX_E_OBJECT_IN_USE">
5502 Another storage controller is marked as bootable already.
5503 </result>
5504 </desc>
5505 <param name="name" type="wstring" dir="in"/>
5506 <param name="bootable" type="boolean" dir="in"/>
5507 </method>
5508
5509 <method name="getSerialPort" const="yes">
5510 <desc>
5511 Returns the serial port associated with the given slot.
5512 Slots are numbered sequentially, starting with zero. The total
5513 number of serial ports per machine is defined by the
5514 <link to="ISystemProperties::serialPortCount"/> property,
5515 so the maximum slot number is one less than that property's value.
5516
5517 <result name="E_INVALIDARG">
5518 Invalid @a slot number.
5519 </result>
5520
5521 </desc>
5522 <param name="slot" type="unsigned long" dir="in"/>
5523 <param name="port" type="ISerialPort" dir="return"/>
5524 </method>
5525
5526 <method name="getParallelPort" const="yes">
5527 <desc>
5528 Returns the parallel port associated with the given slot.
5529 Slots are numbered sequentially, starting with zero. The total
5530 number of parallel ports per machine is defined by the
5531 <link to="ISystemProperties::parallelPortCount"/> property,
5532 so the maximum slot number is one less than that property's value.
5533
5534 <result name="E_INVALIDARG">
5535 Invalid @a slot number.
5536 </result>
5537
5538 </desc>
5539 <param name="slot" type="unsigned long" dir="in"/>
5540 <param name="port" type="IParallelPort" dir="return"/>
5541 </method>
5542
5543 <method name="getExtraDataKeys">
5544 <desc>
5545 Returns an array representing the machine-specific extra data keys
5546 which currently have values defined.
5547 </desc>
5548 <param name="value" type="wstring" dir="return" safearray="yes">
5549 <desc>Array of extra data keys.</desc>
5550 </param>
5551 </method>
5552
5553 <method name="getExtraData">
5554 <desc>
5555 Returns associated machine-specific extra data.
5556
5557 If the requested data @a key does not exist, this function will
5558 succeed and return an empty string in the @a value argument.
5559
5560 <result name="VBOX_E_FILE_ERROR">
5561 Settings file not accessible.
5562 </result>
5563 <result name="VBOX_E_XML_ERROR">
5564 Could not parse the settings file.
5565 </result>
5566
5567 </desc>
5568 <param name="key" type="wstring" dir="in">
5569 <desc>Name of the data key to get.</desc>
5570 </param>
5571 <param name="value" type="wstring" dir="return">
5572 <desc>Value of the requested data key.</desc>
5573 </param>
5574 </method>
5575
5576 <method name="setExtraData">
5577 <desc>
5578 Sets associated machine-specific extra data.
5579
5580 If you pass @c null or an empty string as a key @a value, the given
5581 @a key will be deleted.
5582
5583 <note>
5584 Before performing the actual data change, this method will ask all
5585 registered listeners using the
5586 <link to="IExtraDataCanChangeEvent"/>
5587 notification for a permission. If one of the listeners refuses the
5588 new value, the change will not be performed.
5589 </note>
5590 <note>
5591 On success, the
5592 <link to="IExtraDataChangedEvent"/> notification
5593 is called to inform all registered listeners about a successful data
5594 change.
5595 </note>
5596 <note>
5597 This method can be called outside the machine session and therefore
5598 it's a caller's responsibility to handle possible race conditions
5599 when several clients change the same key at the same time.
5600 </note>
5601
5602 <result name="VBOX_E_FILE_ERROR">
5603 Settings file not accessible.
5604 </result>
5605 <result name="VBOX_E_XML_ERROR">
5606 Could not parse the settings file.
5607 </result>
5608
5609 </desc>
5610 <param name="key" type="wstring" dir="in">
5611 <desc>Name of the data key to set.</desc>
5612 </param>
5613 <param name="value" type="wstring" dir="in">
5614 <desc>Value to assign to the key.</desc>
5615 </param>
5616 </method>
5617
5618 <method name="getCPUProperty" const="yes">
5619 <desc>
5620 Returns the virtual CPU boolean value of the specified property.
5621
5622 <result name="E_INVALIDARG">
5623 Invalid property.
5624 </result>
5625
5626 </desc>
5627 <param name="property" type="CPUPropertyType" dir="in">
5628 <desc>
5629 Property type to query.
5630 </desc>
5631 </param>
5632 <param name="value" type="boolean" dir="return">
5633 <desc>
5634 Property value.
5635 </desc>
5636 </param>
5637 </method>
5638
5639 <method name="setCPUProperty">
5640 <desc>
5641 Sets the virtual CPU boolean value of the specified property.
5642
5643 <result name="E_INVALIDARG">
5644 Invalid property.
5645 </result>
5646
5647 </desc>
5648 <param name="property" type="CPUPropertyType" dir="in">
5649 <desc>
5650 Property type to query.
5651 </desc>
5652 </param>
5653 <param name="value" type="boolean" dir="in">
5654 <desc>
5655 Property value.
5656 </desc>
5657 </param>
5658 </method>
5659
5660 <method name="getCPUIDLeaf" const="yes">
5661 <desc>
5662 Returns the virtual CPU cpuid information for the specified leaf.
5663
5664 Currently supported index values for cpuid:
5665 Standard CPUID leafs: 0 - 0xA
5666 Extended CPUID leafs: 0x80000000 - 0x8000000A
5667
5668 See the Intel and AMD programmer's manuals for detailed information
5669 about the cpuid instruction and its leafs.
5670 <result name="E_INVALIDARG">
5671 Invalid id.
5672 </result>
5673
5674 </desc>
5675 <param name="id" type="unsigned long" dir="in">
5676 <desc>
5677 CPUID leaf index.
5678 </desc>
5679 </param>
5680 <param name="valEax" type="unsigned long" dir="out">
5681 <desc>
5682 CPUID leaf value for register eax.
5683 </desc>
5684 </param>
5685 <param name="valEbx" type="unsigned long" dir="out">
5686 <desc>
5687 CPUID leaf value for register ebx.
5688 </desc>
5689 </param>
5690 <param name="valEcx" type="unsigned long" dir="out">
5691 <desc>
5692 CPUID leaf value for register ecx.
5693 </desc>
5694 </param>
5695 <param name="valEdx" type="unsigned long" dir="out">
5696 <desc>
5697 CPUID leaf value for register edx.
5698 </desc>
5699 </param>
5700 </method>
5701
5702 <method name="setCPUIDLeaf">
5703 <desc>
5704 Sets the virtual CPU cpuid information for the specified leaf. Note that these values
5705 are not passed unmodified. VirtualBox clears features that it doesn't support.
5706
5707 Currently supported index values for cpuid:
5708 Standard CPUID leafs: 0 - 0xA
5709 Extended CPUID leafs: 0x80000000 - 0x8000000A
5710
5711 See the Intel and AMD programmer's manuals for detailed information
5712 about the cpuid instruction and its leafs.
5713
5714 Do not use this method unless you know exactly what you're doing. Misuse can lead to
5715 random crashes inside VMs.
5716 <result name="E_INVALIDARG">
5717 Invalid id.
5718 </result>
5719
5720 </desc>
5721 <param name="id" type="unsigned long" dir="in">
5722 <desc>
5723 CPUID leaf index.
5724 </desc>
5725 </param>
5726 <param name="valEax" type="unsigned long" dir="in">
5727 <desc>
5728 CPUID leaf value for register eax.
5729 </desc>
5730 </param>
5731 <param name="valEbx" type="unsigned long" dir="in">
5732 <desc>
5733 CPUID leaf value for register ebx.
5734 </desc>
5735 </param>
5736 <param name="valEcx" type="unsigned long" dir="in">
5737 <desc>
5738 CPUID leaf value for register ecx.
5739 </desc>
5740 </param>
5741 <param name="valEdx" type="unsigned long" dir="in">
5742 <desc>
5743 CPUID leaf value for register edx.
5744 </desc>
5745 </param>
5746 </method>
5747
5748 <method name="removeCPUIDLeaf">
5749 <desc>
5750 Removes the virtual CPU cpuid leaf for the specified index
5751
5752 <result name="E_INVALIDARG">
5753 Invalid id.
5754 </result>
5755
5756 </desc>
5757 <param name="id" type="unsigned long" dir="in">
5758 <desc>
5759 CPUID leaf index.
5760 </desc>
5761 </param>
5762 </method>
5763
5764 <method name="removeAllCPUIDLeaves">
5765 <desc>
5766 Removes all the virtual CPU cpuid leaves
5767 </desc>
5768 </method>
5769
5770 <method name="getHWVirtExProperty" const="yes">
5771 <desc>
5772 Returns the value of the specified hardware virtualization boolean property.
5773
5774 <result name="E_INVALIDARG">
5775 Invalid property.
5776 </result>
5777
5778 </desc>
5779 <param name="property" type="HWVirtExPropertyType" dir="in">
5780 <desc>
5781 Property type to query.
5782 </desc>
5783 </param>
5784 <param name="value" type="boolean" dir="return">
5785 <desc>
5786 Property value.
5787 </desc>
5788 </param>
5789 </method>
5790
5791 <method name="setHWVirtExProperty">
5792 <desc>
5793 Sets a new value for the specified hardware virtualization boolean property.
5794
5795 <result name="E_INVALIDARG">
5796 Invalid property.
5797 </result>
5798
5799 </desc>
5800 <param name="property" type="HWVirtExPropertyType" dir="in">
5801 <desc>
5802 Property type to set.
5803 </desc>
5804 </param>
5805 <param name="value" type="boolean" dir="in">
5806 <desc>
5807 New property value.
5808 </desc>
5809 </param>
5810 </method>
5811
5812 <method name="saveSettings">
5813 <desc>
5814 Saves any changes to machine settings made since the session
5815 has been opened or a new machine has been created, or since the
5816 last call to <link to="#saveSettings"/> or <link to="#discardSettings"/>.
5817 For registered machines, new settings become visible to all
5818 other VirtualBox clients after successful invocation of this
5819 method.
5820 <note>
5821 The method sends <link to="IMachineDataChangedEvent"/>
5822 notification event after the configuration has been successfully
5823 saved (only for registered machines).
5824 </note>
5825 <note>
5826 Calling this method is only valid on instances returned
5827 by <link to="ISession::machine"/> and on new machines
5828 created by <link to="IVirtualBox::createMachine"/> but not
5829 yet registered, or on unregistered machines after calling
5830 <link to="IMachine::unregister"/>.
5831 </note>
5832
5833 <result name="VBOX_E_FILE_ERROR">
5834 Settings file not accessible.
5835 </result>
5836 <result name="VBOX_E_XML_ERROR">
5837 Could not parse the settings file.
5838 </result>
5839 <result name="E_ACCESSDENIED">
5840 Modification request refused.
5841 </result>
5842
5843 </desc>
5844 </method>
5845
5846 <method name="discardSettings">
5847 <desc>
5848 Discards any changes to the machine settings made since the session
5849 has been opened or since the last call to <link to="#saveSettings"/>
5850 or <link to="#discardSettings"/>.
5851 <note>
5852 Calling this method is only valid on instances returned
5853 by <link to="ISession::machine"/> and on new machines
5854 created by <link to="IVirtualBox::createMachine"/> or
5855 opened by <link to="IVirtualBox::openMachine"/> but not
5856 yet registered, or on unregistered machines after calling
5857 <link to="IMachine::unregister"/>.
5858 </note>
5859
5860 <result name="VBOX_E_INVALID_VM_STATE">
5861 Virtual machine is not mutable.
5862 </result>
5863
5864 </desc>
5865 </method>
5866
5867 <method name="unregister">
5868 <desc>
5869 Unregisters a machine previously registered with
5870 <link to="IVirtualBox::registerMachine"/> and optionally do additional
5871 cleanup before the machine is unregistered.
5872
5873 This method does not delete any files. It only changes the machine configuration and
5874 the list of registered machines in the VirtualBox object. To delete the files which
5875 belonged to the machine, including the XML file of the machine itself, call
5876 <link to="#delete"/>, optionally with the array of IMedium objects which was returned
5877 from this method.
5878
5879 How thoroughly this method cleans up the machine configuration before unregistering
5880 the machine depends on the @a cleanupMode argument.
5881
5882 <ul>
5883 <li>With "UnregisterOnly", the machine will only be unregistered, but no additional
5884 cleanup will be performed. The call will fail if the machine is in "Saved" state
5885 or has any snapshots or any media attached (see <link to="IMediumAttachment" />).
5886 It is the responsibility of the caller to delete all such configuration in this mode.
5887 In this mode, the API behaves like the former @c IVirtualBox::unregisterMachine() API
5888 which it replaces.</li>
5889 <li>With "DetachAllReturnNone", the call will succeed even if the machine is in "Saved"
5890 state or if it has snapshots or media attached. All media attached to the current machine
5891 state or in snapshots will be detached. No medium objects will be returned;
5892 all of the machine's media will remain open.</li>
5893 <li>With "DetachAllReturnHardDisksOnly", the call will behave like with "DetachAllReturnNone",
5894 except that all the hard disk medium objects which were detached from the machine will
5895 be returned as an array. This allows for quickly passing them to the <link to="#delete" />
5896 API for closing and deletion.</li>
5897 <li>With "Full", the call will behave like with "DetachAllReturnHardDisksOnly", except
5898 that all media will be returned in the array, including removable media like DVDs and
5899 floppies. This might be useful if the user wants to inspect in detail which media were
5900 attached to the machine. Be careful when passing the media array to <link to="#delete" />
5901 in that case because users will typically want to preserve ISO and RAW image files.</li>
5902 </ul>
5903
5904 A typical implementation will use "DetachAllReturnHardDisksOnly" and then pass the
5905 resulting IMedium array to <link to="#delete"/>. This way, the machine is completely
5906 deleted with all its saved states and hard disk images, but images for removable
5907 drives (such as ISO and RAW files) will remain on disk.
5908
5909 This API does not verify whether the media files returned in the array are still
5910 attached to other machines (i.e. shared between several machines). If such a shared
5911 image is passed to <link to="#delete" /> however, closing the image will fail there
5912 and the image will be silently skipped.
5913
5914 This API may, however, move media from this machine's media registry to other media
5915 registries (see <link to="IMedium" /> for details on media registries). For machines
5916 created with VirtualBox 4.0 or later, if media from this machine's media registry
5917 are also attached to another machine (shared attachments), each such medium will be
5918 moved to another machine's registry. This is because without this machine's media
5919 registry, the other machine cannot find its media any more and would become inaccessible.
5920
5921 This API implicitly calls <link to="#saveSettings"/> to save all current machine settings
5922 before unregistering it. It may also silently call <link to="#saveSettings"/> on other machines
5923 if media are moved to other machines' media registries.
5924
5925 After successful method invocation, the <link to="IMachineRegisteredEvent"/> event
5926 is fired.
5927
5928 The call will fail if the machine is currently locked (see <link to="ISession" />).
5929
5930 <note>
5931 If the given machine is inaccessible (see <link to="#accessible"/>), it
5932 will be unregistered and fully uninitialized right afterwards. As a result,
5933 the returned machine object will be unusable and an attempt to call
5934 <b>any</b> method will return the "Object not ready" error.
5935 </note>
5936
5937 <result name="VBOX_E_INVALID_OBJECT_STATE">
5938 Machine is currently locked for a session.
5939 </result>
5940 </desc>
5941
5942 <param name="cleanupMode" type="CleanupMode" dir="in">
5943 <desc>How to clean up after the machine has been unregistered.</desc>
5944 </param>
5945 <param name="aMedia" type="IMedium" safearray="yes" dir="return">
5946 <desc>List of media detached from the machine, depending on the @a cleanupMode parameter.</desc>
5947 </param>
5948 </method>
5949
5950 <method name="delete">
5951 <desc>
5952 Deletes the files associated with this machine from disk. If medium objects are passed
5953 in with the @a aMedia argument, they are closed and, if closing was successful, their
5954 storage files are deleted as well. For convenience, this array of media files can be
5955 the same as the one returned from a previous <link to="#unregister" /> call.
5956
5957 This method must only be called on machines which are either write-locked (i.e. on instances
5958 returned by <link to="ISession::machine"/>) or on unregistered machines (i.e. not yet
5959 registered machines created by <link to="IVirtualBox::createMachine"/> or opened by
5960 <link to="IVirtualBox::openMachine"/>, or after having called <link to="#unregister"/>).
5961
5962 The following files will be deleted by this method:
5963 <ul>
5964 <li>If <link to="#unregister" /> had been previously called with a @a cleanupMode
5965 argument other than "UnregisterOnly", this will delete all saved state files that
5966 the machine had in use; possibly one if the machine was in "Saved" state and one
5967 for each online snapshot that the machine had.</li>
5968 <li>On each medium object passed in the @a aMedia array, this will call
5969 <link to="IMedium::close" />. If that succeeds, this will attempt to delete the
5970 medium's storage on disk. Since the <link to="IMedium::close"/> call will fail if the medium is still
5971 in use, e.g. because it is still attached to a second machine; in that case the
5972 storage will not be deleted.</li>
5973 <li>Finally, the machine's own XML file will be deleted.</li>
5974 </ul>
5975
5976 Since deleting large disk image files can be a time-consuming I/O operation, this
5977 method operates asynchronously and returns an IProgress object to allow the caller
5978 to monitor the progress. There will be one sub-operation for each file that is
5979 being deleted (saved state or medium storage file).
5980
5981 <note>
5982 <link to="#settingsModified"/> will return @c true after this
5983 method successfully returns.
5984 </note>
5985
5986 <result name="VBOX_E_INVALID_VM_STATE">
5987 Machine is registered but not write-locked.
5988 </result>
5989 <result name="VBOX_E_IPRT_ERROR">
5990 Could not delete the settings file.
5991 </result>
5992 </desc>
5993 <param name="aMedia" type="IMedium" safearray="yes" dir="in">
5994 <desc>List of media to be closed and whose storage files will be deleted.</desc>
5995 </param>
5996 <param name="aProgress" type="IProgress" dir="return">
5997 <desc>Progress object to track the operation completion.</desc>
5998 </param>
5999 </method>
6000
6001 <method name="export">
6002 <desc>Exports the machine to an OVF appliance. See <link to="IAppliance" /> for the
6003 steps required to export VirtualBox machines to OVF.
6004 </desc>
6005
6006 <param name="aAppliance" type="IAppliance" dir="in">
6007 <desc>Appliance to export this machine to.</desc>
6008 </param>
6009 <param name="location" type="wstring" dir="in">
6010 <desc>The target location.</desc>
6011 </param>
6012 <param name="aDescription" type="IVirtualSystemDescription" dir="return">
6013 <desc>VirtualSystemDescription object which is created for this machine.</desc>
6014 </param>
6015 </method >
6016
6017 <method name="findSnapshot">
6018 <desc>
6019 Returns a snapshot of this machine with the given name or UUID.
6020
6021 Returns a snapshot of this machine with the given UUID.
6022 A @c null argument can be used to obtain the first snapshot
6023 taken on this machine. To traverse the whole tree of snapshots
6024 starting from the root, inspect the root snapshot's
6025 <link to="ISnapshot::children" /> attribute and recurse over those children.
6026
6027 <result name="VBOX_E_OBJECT_NOT_FOUND">
6028 Virtual machine has no snapshots or snapshot not found.
6029 </result>
6030
6031 </desc>
6032 <param name="nameOrId" type="wstring" dir="in">
6033 <desc>What to search for. Name or UUID of the snapshot to find</desc>
6034 </param>
6035 <param name="snapshot" type="ISnapshot" dir="return">
6036 <desc>Snapshot object with the given name.</desc>
6037 </param>
6038 </method>
6039
6040 <method name="createSharedFolder">
6041 <desc>
6042 Creates a new permanent shared folder by associating the given logical
6043 name with the given host path, adds it to the collection of shared
6044 folders and starts sharing it. Refer to the description of
6045 <link to="ISharedFolder"/> to read more about logical names.
6046
6047 <result name="VBOX_E_OBJECT_IN_USE">
6048 Shared folder already exists.
6049 </result>
6050 <result name="VBOX_E_FILE_ERROR">
6051 Shared folder @a hostPath not accessible.
6052 </result>
6053
6054 </desc>
6055 <param name="name" type="wstring" dir="in">
6056 <desc>Unique logical name of the shared folder.</desc>
6057 </param>
6058 <param name="hostPath" type="wstring" dir="in">
6059 <desc>Full path to the shared folder in the host file system.</desc>
6060 </param>
6061 <param name="writable" type="boolean" dir="in">
6062 <desc>Whether the share is writable or readonly.</desc>
6063 </param>
6064 <param name="automount" type="boolean" dir="in">
6065 <desc>Whether the share gets automatically mounted by the guest
6066 or not.</desc>
6067 </param>
6068 </method>
6069
6070 <method name="removeSharedFolder">
6071 <desc>
6072 Removes the permanent shared folder with the given name previously
6073 created by <link to="#createSharedFolder"/> from the collection of
6074 shared folders and stops sharing it.
6075
6076 <result name="VBOX_E_INVALID_VM_STATE">
6077 Virtual machine is not mutable.
6078 </result>
6079 <result name="VBOX_E_OBJECT_NOT_FOUND">
6080 Shared folder @a name does not exist.
6081 </result>
6082
6083 </desc>
6084 <param name="name" type="wstring" dir="in">
6085 <desc>Logical name of the shared folder to remove.</desc>
6086 </param>
6087 </method>
6088
6089 <method name="canShowConsoleWindow">
6090 <desc>
6091 Returns @c true if the VM console process can activate the
6092 console window and bring it to foreground on the desktop of
6093 the host PC.
6094 <note>
6095 This method will fail if a session for this machine is not
6096 currently open.
6097 </note>
6098
6099 <result name="VBOX_E_INVALID_VM_STATE">
6100 Machine session is not open.
6101 </result>
6102
6103 </desc>
6104 <param name="canShow" type="boolean" dir="return">
6105 <desc>
6106 @c true if the console window can be shown and @c false otherwise.
6107 </desc>
6108 </param>
6109 </method>
6110
6111 <method name="showConsoleWindow">
6112 <desc>
6113 Activates the console window and brings it to foreground on
6114 the desktop of the host PC. Many modern window managers on
6115 many platforms implement some sort of focus stealing
6116 prevention logic, so that it may be impossible to activate
6117 a window without the help of the currently active
6118 application. In this case, this method will return a non-zero
6119 identifier that represents the top-level window of the VM
6120 console process. The caller, if it represents a currently
6121 active process, is responsible to use this identifier (in a
6122 platform-dependent manner) to perform actual window
6123 activation.
6124 <note>
6125 This method will fail if a session for this machine is not
6126 currently open.
6127 </note>
6128
6129 <result name="VBOX_E_INVALID_VM_STATE">
6130 Machine session is not open.
6131 </result>
6132
6133 </desc>
6134 <param name="winId" type="long long" dir="return">
6135 <desc>
6136 Platform-dependent identifier of the top-level VM console
6137 window, or zero if this method has performed all actions
6138 necessary to implement the <i>show window</i> semantics for
6139 the given platform and/or VirtualBox front-end.
6140 </desc>
6141 </param>
6142 </method>
6143
6144 <method name="getGuestProperty" const="yes">
6145 <desc>
6146 Reads an entry from the machine's guest property store.
6147
6148 <result name="VBOX_E_INVALID_VM_STATE">
6149 Machine session is not open.
6150 </result>
6151
6152 </desc>
6153 <param name="name" type="wstring" dir="in">
6154 <desc>
6155 The name of the property to read.
6156 </desc>
6157 </param>
6158 <param name="value" type="wstring" dir="out">
6159 <desc>
6160 The value of the property. If the property does not exist then this
6161 will be empty.
6162 </desc>
6163 </param>
6164 <param name="timestamp" type="long long" dir="out">
6165 <desc>
6166 The time at which the property was last modified, as seen by the
6167 server process.
6168 </desc>
6169 </param>
6170 <param name="flags" type="wstring" dir="out">
6171 <desc>
6172 Additional property parameters, passed as a comma-separated list of
6173 "name=value" type entries.
6174 </desc>
6175 </param>
6176 </method>
6177
6178 <method name="getGuestPropertyValue" const="yes">
6179 <desc>
6180 Reads a value from the machine's guest property store.
6181
6182 <result name="VBOX_E_INVALID_VM_STATE">
6183 Machine session is not open.
6184 </result>
6185
6186 </desc>
6187 <param name="property" type="wstring" dir="in">
6188 <desc>
6189 The name of the property to read.
6190 </desc>
6191 </param>
6192 <param name="value" type="wstring" dir="return">
6193 <desc>
6194 The value of the property. If the property does not exist then this
6195 will be empty.
6196 </desc>
6197 </param>
6198 </method>
6199
6200 <method name="getGuestPropertyTimestamp" const="yes">
6201 <desc>
6202 Reads a property timestamp from the machine's guest property store.
6203
6204 <result name="VBOX_E_INVALID_VM_STATE">
6205 Machine session is not open.
6206 </result>
6207
6208 </desc>
6209 <param name="property" type="wstring" dir="in">
6210 <desc>
6211 The name of the property to read.
6212 </desc>
6213 </param>
6214 <param name="value" type="long long" dir="return">
6215 <desc>
6216 The timestamp. If the property does not exist then this will be
6217 empty.
6218 </desc>
6219 </param>
6220 </method>
6221
6222 <method name="setGuestProperty">
6223 <desc>
6224 Sets, changes or deletes an entry in the machine's guest property
6225 store.
6226
6227 <result name="E_ACCESSDENIED">
6228 Property cannot be changed.
6229 </result>
6230 <result name="E_INVALIDARG">
6231 Invalid @a flags.
6232 </result>
6233 <result name="VBOX_E_INVALID_VM_STATE">
6234 Virtual machine is not mutable or session not open.
6235 </result>
6236 <result name="VBOX_E_INVALID_OBJECT_STATE">
6237 Cannot set transient property when machine not running.
6238 </result>
6239
6240 </desc>
6241 <param name="property" type="wstring" dir="in">
6242 <desc>
6243 The name of the property to set, change or delete.
6244 </desc>
6245 </param>
6246 <param name="value" type="wstring" dir="in">
6247 <desc>
6248 The new value of the property to set, change or delete. If the
6249 property does not yet exist and value is non-empty, it will be
6250 created. If the value is @c null or empty, the property will be
6251 deleted if it exists.
6252 </desc>
6253 </param>
6254 <param name="flags" type="wstring" dir="in">
6255 <desc>
6256 Additional property parameters, passed as a comma-separated list of
6257 "name=value" type entries.
6258 </desc>
6259 </param>
6260 </method>
6261
6262 <method name="setGuestPropertyValue">
6263 <desc>
6264 Sets, changes or deletes a value in the machine's guest property
6265 store. The flags field will be left unchanged or created empty for a
6266 new property.
6267
6268 <result name="E_ACCESSDENIED">
6269 Property cannot be changed.
6270 </result>
6271 <result name="VBOX_E_INVALID_VM_STATE">
6272 Virtual machine is not mutable or session not open.
6273 </result>
6274 <result name="VBOX_E_INVALID_OBJECT_STATE">
6275 Cannot set transient property when machine not running.
6276 </result>
6277 </desc>
6278
6279 <param name="property" type="wstring" dir="in">
6280 <desc>
6281 The name of the property to set, change or delete.
6282 </desc>
6283 </param>
6284 <param name="value" type="wstring" dir="in">
6285 <desc>
6286 The new value of the property to set, change or delete. If the
6287 property does not yet exist and value is non-empty, it will be
6288 created. If the value is @c null or empty, the property will be
6289 deleted if it exists.
6290 </desc>
6291 </param>
6292 </method>
6293
6294 <method name="deleteGuestProperty" const="yes">
6295 <desc>
6296 Deletes an entry from the machine's guest property store.
6297
6298 <result name="VBOX_E_INVALID_VM_STATE">
6299 Machine session is not open.
6300 </result>
6301
6302 </desc>
6303 <param name="name" type="wstring" dir="in">
6304 <desc>
6305 The name of the property to delete.
6306 </desc>
6307 </param>
6308 </method>
6309
6310 <method name="enumerateGuestProperties" const="yes">
6311 <desc>
6312 Return a list of the guest properties matching a set of patterns along
6313 with their values, time stamps and flags.
6314 </desc>
6315 <param name="patterns" type="wstring" dir="in">
6316 <desc>
6317 The patterns to match the properties against, separated by '|'
6318 characters. If this is empty or @c null, all properties will match.
6319 </desc>
6320 </param>
6321 <param name="name" type="wstring" dir="out" safearray="yes">
6322 <desc>
6323 The names of the properties returned.
6324 </desc>
6325 </param>
6326 <param name="value" type="wstring" dir="out" safearray="yes">
6327 <desc>
6328 The values of the properties returned. The array entries match the
6329 corresponding entries in the @a name array.
6330 </desc>
6331 </param>
6332 <param name="timestamp" type="long long" dir="out" safearray="yes">
6333 <desc>
6334 The time stamps of the properties returned. The array entries match
6335 the corresponding entries in the @a name array.
6336 </desc>
6337 </param>
6338 <param name="flags" type="wstring" dir="out" safearray="yes">
6339 <desc>
6340 The flags of the properties returned. The array entries match the
6341 corresponding entries in the @a name array.
6342 </desc>
6343 </param>
6344 </method>
6345
6346 <method name="querySavedGuestScreenInfo" const="yes">
6347 <desc>
6348 Returns the guest dimensions from the saved state.
6349 </desc>
6350 <param name="screenId" type="unsigned long" dir="in">
6351 <desc>
6352 Saved guest screen to query info from.
6353 </desc>
6354 </param>
6355 <param name="originX" type="unsigned long" dir="out">
6356 <desc>
6357 The X position of the guest monitor top left corner.
6358 </desc>
6359 </param>
6360 <param name="originY" type="unsigned long" dir="out">
6361 <desc>
6362 The Y position of the guest monitor top left corner.
6363 </desc>
6364 </param>
6365 <param name="width" type="unsigned long" dir="out">
6366 <desc>
6367 Guest width at the time of the saved state was taken.
6368 </desc>
6369 </param>
6370 <param name="height" type="unsigned long" dir="out">
6371 <desc>
6372 Guest height at the time of the saved state was taken.
6373 </desc>
6374 </param>
6375 <param name="enabled" type="boolean" dir="out">
6376 <desc>
6377 Whether the monitor is enabled in the guest.
6378 </desc>
6379 </param>
6380 </method>
6381
6382 <method name="querySavedThumbnailSize">
6383 <desc>
6384 Returns size in bytes and dimensions in pixels of a saved thumbnail bitmap from saved state.
6385 </desc>
6386 <param name="screenId" type="unsigned long" dir="in">
6387 <desc>
6388 Saved guest screen to query info from.
6389 </desc>
6390 </param>
6391 <param name="size" type="unsigned long" dir="out">
6392 <desc>
6393 Size of buffer required to store the bitmap.
6394 </desc>
6395 </param>
6396 <param name="width" type="unsigned long" dir="out">
6397 <desc>
6398 Bitmap width.
6399 </desc>
6400 </param>
6401 <param name="height" type="unsigned long" dir="out">
6402 <desc>
6403 Bitmap height.
6404 </desc>
6405 </param>
6406 </method>
6407
6408 <method name="readSavedThumbnailToArray">
6409 <desc>
6410 Thumbnail is retrieved to an array of bytes in uncompressed 32-bit BGRA or RGBA format.
6411 </desc>
6412 <param name="screenId" type="unsigned long" dir="in">
6413 <desc>
6414 Saved guest screen to read from.
6415 </desc>
6416 </param>
6417 <param name="BGR" type="boolean" dir="in">
6418 <desc>
6419 How to order bytes in the pixel. A pixel consists of 4 bytes. If this parameter is true, then
6420 bytes order is: B, G, R, 0xFF. If this parameter is false, then bytes order is: R, G, B, 0xFF.
6421 </desc>
6422 </param>
6423 <param name="width" type="unsigned long" dir="out">
6424 <desc>
6425 Bitmap width.
6426 </desc>
6427 </param>
6428 <param name="height" type="unsigned long" dir="out">
6429 <desc>
6430 Bitmap height.
6431 </desc>
6432 </param>
6433 <param name="data" type="octet" safearray="yes" dir="return">
6434 <desc>
6435 Array with resulting bitmap data.
6436 </desc>
6437 </param>
6438 </method>
6439
6440 <method name="readSavedThumbnailPNGToArray">
6441 <desc>
6442 Thumbnail in PNG format is retrieved to an array of bytes.
6443 </desc>
6444 <param name="screenId" type="unsigned long" dir="in">
6445 <desc>
6446 Saved guest screen to read from.
6447 </desc>
6448 </param>
6449 <param name="width" type="unsigned long" dir="out">
6450 <desc>
6451 Image width.
6452 </desc>
6453 </param>
6454 <param name="height" type="unsigned long" dir="out">
6455 <desc>
6456 Image height.
6457 </desc>
6458 </param>
6459 <param name="data" type="octet" dir="return" safearray="yes">
6460 <desc>
6461 Array with resulting PNG data.
6462 </desc>
6463 </param>
6464 </method>
6465
6466 <method name="querySavedScreenshotPNGSize">
6467 <desc>
6468 Returns size in bytes and dimensions of a saved PNG image of screenshot from saved state.
6469 </desc>
6470 <param name="screenId" type="unsigned long" dir="in">
6471 <desc>
6472 Saved guest screen to query info from.
6473 </desc>
6474 </param>
6475 <param name="size" type="unsigned long" dir="out">
6476 <desc>
6477 Size of buffer required to store the PNG binary data.
6478 </desc>
6479 </param>
6480 <param name="width" type="unsigned long" dir="out">
6481 <desc>
6482 Image width.
6483 </desc>
6484 </param>
6485 <param name="height" type="unsigned long" dir="out">
6486 <desc>
6487 Image height.
6488 </desc>
6489 </param>
6490 </method>
6491
6492 <method name="readSavedScreenshotPNGToArray">
6493 <desc>
6494 Screenshot in PNG format is retrieved to an array of bytes.
6495 </desc>
6496 <param name="screenId" type="unsigned long" dir="in">
6497 <desc>
6498 Saved guest screen to read from.
6499 </desc>
6500 </param>
6501 <param name="width" type="unsigned long" dir="out">
6502 <desc>
6503 Image width.
6504 </desc>
6505 </param>
6506 <param name="height" type="unsigned long" dir="out">
6507 <desc>
6508 Image height.
6509 </desc>
6510 </param>
6511 <param name="data" type="octet" dir="return" safearray="yes">
6512 <desc>
6513 Array with resulting PNG data.
6514 </desc>
6515 </param>
6516 </method>
6517
6518 <method name="hotPlugCPU">
6519 <desc>
6520 Plugs a CPU into the machine.
6521 </desc>
6522 <param name="cpu" type="unsigned long" dir="in">
6523 <desc>
6524 The CPU id to insert.
6525 </desc>
6526 </param>
6527 </method>
6528
6529 <method name="hotUnplugCPU">
6530 <desc>
6531 Removes a CPU from the machine.
6532 </desc>
6533 <param name="cpu" type="unsigned long" dir="in">
6534 <desc>
6535 The CPU id to remove.
6536 </desc>
6537 </param>
6538 </method>
6539
6540 <method name="getCPUStatus">
6541 <desc>
6542 Returns the current status of the given CPU.
6543 </desc>
6544 <param name="cpu" type="unsigned long" dir="in">
6545 <desc>
6546 The CPU id to check for.
6547 </desc>
6548 </param>
6549 <param name="attached" type="boolean" dir="return">
6550 <desc>
6551 Status of the CPU.
6552 </desc>
6553 </param>
6554 </method>
6555
6556 <method name="queryLogFilename">
6557 <desc>
6558 Queries for the VM log file name of an given index. Returns an empty
6559 string if a log file with that index doesn't exists.
6560 </desc>
6561 <param name="idx" type="unsigned long" dir="in">
6562 <desc>
6563 Which log file name to query. 0=current log file.
6564 </desc>
6565 </param>
6566 <param name="filename" type="wstring" dir="return">
6567 <desc>
6568 On return the full path to the log file or an empty string on error.
6569 </desc>
6570 </param>
6571 </method>
6572
6573 <method name="readLog">
6574 <desc>
6575 Reads the VM log file. The chunk size is limited, so even if you
6576 ask for a big piece there might be less data returned.
6577 </desc>
6578 <param name="idx" type="unsigned long" dir="in">
6579 <desc>
6580 Which log file to read. 0=current log file.
6581 </desc>
6582 </param>
6583 <param name="offset" type="long long" dir="in">
6584 <desc>
6585 Offset in the log file.
6586 </desc>
6587 </param>
6588 <param name="size" type="long long" dir="in">
6589 <desc>
6590 Chunk size to read in the log file.
6591 </desc>
6592 </param>
6593 <param name="data" type="octet" dir="return" safearray="yes">
6594 <desc>
6595 Data read from the log file. A data size of 0 means end of file
6596 if the requested chunk size was not 0. This is the unprocessed
6597 file data, i.e. the line ending style depends on the platform of
6598 the system the server is running on.
6599 </desc>
6600 </param>
6601 </method>
6602
6603 <method name="cloneTo">
6604 <desc>
6605 Creates a clone of this machine, either as a full clone (which means
6606 creating independent copies of the hard disk media, save states and so
6607 on), or as a linked clone (which uses its own differencing media,
6608 sharing the parent media with the source machine).
6609
6610 The target machine object must have been created previously with <link
6611 to="IVirtualBox::createMachine"/>, and all the settings will be
6612 transferred except the VM name and the hardware UUID. You can set the
6613 VM name and the new hardware UUID when creating the target machine. The
6614 network MAC addresses are newly created for all newtwork adapters. You
6615 can change that behaviour with the options parameter. The operation is
6616 performed asynchronously, so the machine object will be not be usable
6617 until the @a progress object signals completion.
6618
6619 <result name="E_INVALIDARG">
6620 @a target is @c null.
6621 </result>
6622 </desc>
6623
6624 <param name="target" type="IMachine" dir="in">
6625 <desc>Target machine object.</desc>
6626 </param>
6627 <param name="mode" type="CloneMode" dir="in">
6628 <desc>Which states should be cloned.</desc>
6629 </param>
6630 <param name="options" type="CloneOptions" dir="in" safearray="yes">
6631 <desc>Options for the cloning operation.</desc>
6632 </param>
6633 <param name="progress" type="IProgress" dir="return">
6634 <desc>Progress object to track the operation completion.</desc>
6635 </param>
6636 </method>
6637
6638 </interface>
6639
6640 <!--
6641 // IConsole
6642 /////////////////////////////////////////////////////////////////////////
6643 -->
6644
6645 <interface
6646 name="IVRDEServerInfo" extends="$unknown"
6647 uuid="714434a1-58c3-4aab-9049-7652c5df113b"
6648 wsmap="struct"
6649 >
6650 <desc>
6651 Contains information about the remote desktop (VRDE) server capabilities and status.
6652 This is used in the <link to="IConsole::VRDEServerInfo" /> attribute.
6653 </desc>
6654
6655 <attribute name="active" type="boolean" readonly="yes">
6656 <desc>
6657 Whether the remote desktop connection is active.
6658 </desc>
6659 </attribute>
6660
6661 <attribute name="port" type="long" readonly="yes">
6662 <desc>
6663 VRDE server port number. If this property is equal to <tt>0</tt>, then
6664 the VRDE server failed to start, usually because there are no free IP
6665 ports to bind to. If this property is equal to <tt>-1</tt>, then the VRDE
6666 server has not yet been started.
6667 </desc>
6668 </attribute>
6669
6670 <attribute name="numberOfClients" type="unsigned long" readonly="yes">
6671 <desc>
6672 How many times a client connected.
6673 </desc>
6674 </attribute>
6675
6676 <attribute name="beginTime" type="long long" readonly="yes">
6677 <desc>
6678 When the last connection was established, in milliseconds since 1970-01-01 UTC.
6679 </desc>
6680 </attribute>
6681
6682 <attribute name="endTime" type="long long" readonly="yes">
6683 <desc>
6684 When the last connection was terminated or the current time, if
6685 connection is still active, in milliseconds since 1970-01-01 UTC.
6686 </desc>
6687 </attribute>
6688
6689 <attribute name="bytesSent" type="long long" readonly="yes">
6690 <desc>
6691 How many bytes were sent in last or current, if still active, connection.
6692 </desc>
6693 </attribute>
6694
6695 <attribute name="bytesSentTotal" type="long long" readonly="yes">
6696 <desc>
6697 How many bytes were sent in all connections.
6698 </desc>
6699 </attribute>
6700
6701 <attribute name="bytesReceived" type="long long" readonly="yes">
6702 <desc>
6703 How many bytes were received in last or current, if still active, connection.
6704 </desc>
6705 </attribute>
6706
6707 <attribute name="bytesReceivedTotal" type="long long" readonly="yes">
6708 <desc>
6709 How many bytes were received in all connections.
6710 </desc>
6711 </attribute>
6712
6713 <attribute name="user" type="wstring" readonly="yes">
6714 <desc>
6715 Login user name supplied by the client.
6716 </desc>
6717 </attribute>
6718
6719 <attribute name="domain" type="wstring" readonly="yes">
6720 <desc>
6721 Login domain name supplied by the client.
6722 </desc>
6723 </attribute>
6724
6725 <attribute name="clientName" type="wstring" readonly="yes">
6726 <desc>
6727 The client name supplied by the client.
6728 </desc>
6729 </attribute>
6730
6731 <attribute name="clientIP" type="wstring" readonly="yes">
6732 <desc>
6733 The IP address of the client.
6734 </desc>
6735 </attribute>
6736
6737 <attribute name="clientVersion" type="unsigned long" readonly="yes">
6738 <desc>
6739 The client software version number.
6740 </desc>
6741 </attribute>
6742
6743 <attribute name="encryptionStyle" type="unsigned long" readonly="yes">
6744 <desc>
6745 Public key exchange method used when connection was established.
6746 Values: 0 - RDP4 public key exchange scheme.
6747 1 - X509 certificates were sent to client.
6748 </desc>
6749 </attribute>
6750
6751 </interface>
6752
6753 <interface
6754 name="IConsole" extends="$unknown"
6755 uuid="db7ab4ca-2a3f-4183-9243-c1208da92392"
6756 wsmap="managed"
6757 >
6758 <desc>
6759 The IConsole interface represents an interface to control virtual
6760 machine execution.
6761
6762 A console object gets created when a machine has been locked for a
6763 particular session (client process) using <link to="IMachine::lockMachine" />
6764 or <link to="IMachine::launchVMProcess"/>. The console object can
6765 then be found in the session's <link to="ISession::console" /> attribute.
6766
6767 Methods of the IConsole interface allow the caller to query the current
6768 virtual machine execution state, pause the machine or power it down, save
6769 the machine state or take a snapshot, attach and detach removable media
6770 and so on.
6771
6772 <see><link to="ISession"/></see>
6773 </desc>
6774
6775 <attribute name="machine" type="IMachine" readonly="yes">
6776 <desc>
6777 Machine object for this console session.
6778 <note>
6779 This is a convenience property, it has the same value as
6780 <link to="ISession::machine"/> of the corresponding session
6781 object.
6782 </note>
6783 </desc>
6784 </attribute>
6785
6786 <attribute name="state" type="MachineState" readonly="yes">
6787 <desc>
6788 Current execution state of the machine.
6789 <note>
6790 This property always returns the same value as the corresponding
6791 property of the IMachine object for this console session.
6792 For the process that owns (executes) the VM, this is the
6793 preferable way of querying the VM state, because no IPC
6794 calls are made.
6795 </note>
6796 </desc>
6797 </attribute>
6798
6799 <attribute name="guest" type="IGuest" readonly="yes">
6800 <desc>Guest object.</desc>
6801 </attribute>
6802
6803 <attribute name="keyboard" type="IKeyboard" readonly="yes">
6804 <desc>
6805 Virtual keyboard object.
6806 <note>
6807 If the machine is not running, any attempt to use
6808 the returned object will result in an error.
6809 </note>
6810 </desc>
6811 </attribute>
6812
6813 <attribute name="mouse" type="IMouse" readonly="yes">
6814 <desc>
6815 Virtual mouse object.
6816 <note>
6817 If the machine is not running, any attempt to use
6818 the returned object will result in an error.
6819 </note>
6820 </desc>
6821 </attribute>
6822
6823 <attribute name="display" type="IDisplay" readonly="yes">
6824 <desc>Virtual display object.
6825 <note>
6826 If the machine is not running, any attempt to use
6827 the returned object will result in an error.
6828 </note>
6829 </desc>
6830 </attribute>
6831
6832 <attribute name="debugger" type="IMachineDebugger" readonly="yes">
6833 <desc>Debugging interface.</desc>
6834 </attribute>
6835
6836 <attribute name="USBDevices" type="IUSBDevice" readonly="yes" safearray="yes">
6837 <desc>
6838 Collection of USB devices currently attached to the virtual
6839 USB controller.
6840 <note>
6841 The collection is empty if the machine is not running.
6842 </note>
6843 </desc>
6844 </attribute>
6845
6846 <attribute name="remoteUSBDevices" type="IHostUSBDevice" readonly="yes" safearray="yes">
6847 <desc>
6848 List of USB devices currently attached to the remote VRDE client.
6849 Once a new device is physically attached to the remote host computer,
6850 it appears in this list and remains there until detached.
6851 </desc>
6852 </attribute>
6853
6854 <attribute name="sharedFolders" type="ISharedFolder" readonly="yes" safearray="yes">
6855 <desc>
6856 Collection of shared folders for the current session. These folders
6857 are called transient shared folders because they are available to the
6858 guest OS running inside the associated virtual machine only for the
6859 duration of the session (as opposed to
6860 <link to="IMachine::sharedFolders"/> which represent permanent shared
6861 folders). When the session is closed (e.g. the machine is powered down),
6862 these folders are automatically discarded.
6863
6864 New shared folders are added to the collection using
6865 <link to="#createSharedFolder"/>. Existing shared folders can be
6866 removed using <link to="#removeSharedFolder"/>.
6867 </desc>
6868 </attribute>
6869
6870 <attribute name="VRDEServerInfo" type="IVRDEServerInfo" readonly="yes">
6871 <desc>
6872 Interface that provides information on Remote Desktop Extension (VRDE) connection.
6873 </desc>
6874 </attribute>
6875
6876 <attribute name="eventSource" type="IEventSource" readonly="yes">
6877 <desc>
6878 Event source for console events.
6879 </desc>
6880 </attribute>
6881
6882 <attribute name="attachedPCIDevices" type="IPCIDeviceAttachment" readonly="yes" safearray="yes">
6883 <desc>Array of PCI devices attached to this machine.</desc>
6884 </attribute>
6885
6886 <attribute name="useHostClipboard" type="boolean">
6887 <desc>
6888 Whether the guest clipboard should be connected to the host one or
6889 whether it should only be allowed access to the VRDE clipboard. This
6890 setting may not affect existing guest clipboard connections which
6891 are already connected to the host clipboard.
6892 </desc>
6893 </attribute>
6894
6895 <method name="powerUp">
6896 <desc>
6897 Starts the virtual machine execution using the current machine
6898 state (that is, its current execution state, current settings and
6899 current storage devices).
6900
6901 <note>
6902 This method is only useful for front-ends that want to actually
6903 execute virtual machines in their own process (like the VirtualBox
6904 or VBoxSDL front-ends). Unless you are intending to write such a
6905 front-end, do not call this method. If you simply want to
6906 start virtual machine execution using one of the existing front-ends
6907 (for example the VirtualBox GUI or headless server), use
6908 <link to="IMachine::launchVMProcess"/> instead; these
6909 front-ends will power up the machine automatically for you.
6910 </note>
6911
6912 If the machine is powered off or aborted, the execution will
6913 start from the beginning (as if the real hardware were just
6914 powered on).
6915
6916 If the machine is in the <link to="MachineState_Saved"/> state,
6917 it will continue its execution the point where the state has
6918 been saved.
6919
6920 If the machine <link to="IMachine::teleporterEnabled"/> property is
6921 enabled on the machine being powered up, the machine will wait for an
6922 incoming teleportation in the <link to="MachineState_TeleportingIn"/>
6923 state. The returned progress object will have at least three
6924 operations where the last three are defined as: (1) powering up and
6925 starting TCP server, (2) waiting for incoming teleportations, and
6926 (3) perform teleportation. These operations will be reflected as the
6927 last three operations of the progress objected returned by
6928 <link to="IMachine::launchVMProcess"/> as well.
6929
6930 <see><link to="#saveState"/></see>
6931
6932 <result name="VBOX_E_INVALID_VM_STATE">
6933 Virtual machine already running.
6934 </result>
6935 <result name="VBOX_E_HOST_ERROR">
6936 Host interface does not exist or name not set.
6937 </result>
6938 <result name="VBOX_E_FILE_ERROR">
6939 Invalid saved state file.
6940 </result>
6941 </desc>
6942 <param name="progress" type="IProgress" dir="return">
6943 <desc>Progress object to track the operation completion.</desc>
6944 </param>
6945 </method>
6946
6947 <method name="powerUpPaused">
6948 <desc>
6949 Identical to powerUp except that the VM will enter the
6950 <link to="MachineState_Paused"/> state, instead of
6951 <link to="MachineState_Running"/>.
6952
6953 <see><link to="#powerUp"/></see>
6954 <result name="VBOX_E_INVALID_VM_STATE">
6955 Virtual machine already running.
6956 </result>
6957 <result name="VBOX_E_HOST_ERROR">
6958 Host interface does not exist or name not set.
6959 </result>
6960 <result name="VBOX_E_FILE_ERROR">
6961 Invalid saved state file.
6962 </result>
6963 </desc>
6964 <param name="progress" type="IProgress" dir="return">
6965 <desc>Progress object to track the operation completion.</desc>
6966 </param>
6967 </method>
6968
6969 <method name="powerDown">
6970 <desc>
6971 Initiates the power down procedure to stop the virtual machine
6972 execution.
6973
6974 The completion of the power down procedure is tracked using the returned
6975 IProgress object. After the operation is complete, the machine will go
6976 to the PoweredOff state.
6977 <result name="VBOX_E_INVALID_VM_STATE">
6978 Virtual machine must be Running, Paused or Stuck to be powered down.
6979 </result>
6980 </desc>
6981 <param name="progress" type="IProgress" dir="return">
6982 <desc>Progress object to track the operation completion.</desc>
6983 </param>
6984 </method>
6985
6986 <method name="reset">
6987 <desc>Resets the virtual machine.
6988 <result name="VBOX_E_INVALID_VM_STATE">
6989 Virtual machine not in Running state.
6990 </result>
6991 <result name="VBOX_E_VM_ERROR">
6992 Virtual machine error in reset operation.
6993 </result>
6994 </desc>
6995 </method>
6996
6997 <method name="pause">
6998 <desc>Pauses the virtual machine execution.
6999 <result name="VBOX_E_INVALID_VM_STATE">
7000 Virtual machine not in Running state.
7001 </result>
7002 <result name="VBOX_E_VM_ERROR">
7003 Virtual machine error in suspend operation.
7004 </result>
7005 </desc>
7006 </method>
7007
7008 <method name="resume">
7009 <desc>Resumes the virtual machine execution.
7010 <result name="VBOX_E_INVALID_VM_STATE">
7011 Virtual machine not in Paused state.
7012 </result>
7013 <result name="VBOX_E_VM_ERROR">
7014 Virtual machine error in resume operation.
7015 </result>
7016 </desc>
7017 </method>
7018
7019 <method name="powerButton">
7020 <desc>Sends the ACPI power button event to the guest.
7021 <result name="VBOX_E_INVALID_VM_STATE">
7022 Virtual machine not in Running state.
7023 </result>
7024 <result name="VBOX_E_PDM_ERROR">
7025 Controlled power off failed.
7026 </result>
7027 </desc>
7028 </method>
7029
7030 <method name="sleepButton">
7031 <desc>Sends the ACPI sleep button event to the guest.
7032 <result name="VBOX_E_INVALID_VM_STATE">
7033 Virtual machine not in Running state.
7034 </result>
7035 <result name="VBOX_E_PDM_ERROR">
7036 Sending sleep button event failed.
7037 </result>
7038 </desc>
7039 </method>
7040
7041 <method name="getPowerButtonHandled">
7042 <desc>Checks if the last power button event was handled by guest.
7043 <result name="VBOX_E_PDM_ERROR">
7044 Checking if the event was handled by the guest OS failed.
7045 </result>
7046 </desc>
7047 <param name="handled" type="boolean" dir="return"/>
7048 </method>
7049
7050 <method name="getGuestEnteredACPIMode">
7051 <desc>Checks if the guest entered the ACPI mode G0 (working) or
7052 G1 (sleeping). If this method returns @c false, the guest will
7053 most likely not respond to external ACPI events.
7054 <result name="VBOX_E_INVALID_VM_STATE">
7055 Virtual machine not in Running state.
7056 </result>
7057 </desc>
7058 <param name="entered" type="boolean" dir="return"/>
7059 </method>
7060
7061 <method name="saveState">
7062 <desc>
7063 Saves the current execution state of a running virtual machine
7064 and stops its execution.
7065
7066 After this operation completes, the machine will go to the
7067 Saved state. Next time it is powered up, this state will
7068 be restored and the machine will continue its execution from
7069 the place where it was saved.
7070
7071 This operation differs from taking a snapshot to the effect
7072 that it doesn't create new differencing media. Also, once
7073 the machine is powered up from the state saved using this method,
7074 the saved state is deleted, so it will be impossible to return
7075 to this state later.
7076
7077 <note>
7078 On success, this method implicitly calls
7079 <link to="IMachine::saveSettings"/> to save all current machine
7080 settings (including runtime changes to the DVD medium, etc.).
7081 Together with the impossibility to change any VM settings when it is
7082 in the Saved state, this guarantees adequate hardware
7083 configuration of the machine when it is restored from the saved
7084 state file.
7085 </note>
7086
7087 <note>
7088 The machine must be in the Running or Paused state, otherwise
7089 the operation will fail.
7090 </note>
7091 <result name="VBOX_E_INVALID_VM_STATE">
7092 Virtual machine state neither Running nor Paused.
7093 </result>
7094 <result name="VBOX_E_FILE_ERROR">
7095 Failed to create directory for saved state file.
7096 </result>
7097
7098 <see><link to="#takeSnapshot"/></see>
7099 </desc>
7100 <param name="progress" type="IProgress" dir="return">
7101 <desc>Progress object to track the operation completion.</desc>
7102 </param>
7103 </method>
7104
7105 <method name="adoptSavedState">
7106 <desc>
7107 Associates the given saved state file to the virtual machine.
7108
7109 On success, the machine will go to the Saved state. Next time it is
7110 powered up, it will be restored from the adopted saved state and
7111 continue execution from the place where the saved state file was
7112 created.
7113
7114 The specified saved state file path may be absolute or relative to the
7115 folder the VM normally saves the state to (usually,
7116 <link to="IMachine::snapshotFolder"/>).
7117
7118 <note>
7119 It's a caller's responsibility to make sure the given saved state
7120 file is compatible with the settings of this virtual machine that
7121 represent its virtual hardware (memory size, storage disk configuration
7122 etc.). If there is a mismatch, the behavior of the virtual machine
7123 is undefined.
7124 </note>
7125 <result name="VBOX_E_INVALID_VM_STATE">
7126 Virtual machine state neither PoweredOff nor Aborted.
7127 </result>
7128 </desc>
7129 <param name="savedStateFile" type="wstring" dir="in">
7130 <desc>Path to the saved state file to adopt.</desc>
7131 </param>
7132 </method>
7133
7134 <method name="discardSavedState">
7135 <desc>
7136 Forcibly resets the machine to "Powered Off" state if it is
7137 currently in the "Saved" state (previously created by <link to="#saveState"/>).
7138 Next time the machine is powered up, a clean boot will occur.
7139 <note>
7140 This operation is equivalent to resetting or powering off
7141 the machine without doing a proper shutdown of the guest
7142 operating system; as with resetting a running phyiscal
7143 computer, it can can lead to data loss.
7144 </note>
7145 If @a fRemoveFile is @c true, the file in the machine directory
7146 into which the machine state was saved is also deleted. If
7147 this is @c false, then the state can be recovered and later
7148 re-inserted into a machine using <link to="#adoptSavedState" />.
7149 The location of the file can be found in the
7150 <link to="IMachine::stateFilePath" /> attribute.
7151 <result name="VBOX_E_INVALID_VM_STATE">
7152 Virtual machine not in state Saved.
7153 </result>
7154 </desc>
7155 <param name="fRemoveFile" type="boolean" dir="in" >
7156 <desc>Whether to also remove the saved state file.</desc>
7157 </param>
7158 </method>
7159
7160 <method name="getDeviceActivity">
7161 <desc>
7162 Gets the current activity type of a given device or device group.
7163 <result name="E_INVALIDARG">
7164 Invalid device type.
7165 </result>
7166 </desc>
7167 <param name="type" type="DeviceType" dir="in"/>
7168 <param name="activity" type="DeviceActivity" dir="return"/>
7169 </method>
7170
7171 <method name="attachUSBDevice">
7172 <desc>
7173 Attaches a host USB device with the given UUID to the
7174 USB controller of the virtual machine.
7175
7176 The device needs to be in one of the following states:
7177 <link to="USBDeviceState_Busy"/>,
7178 <link to="USBDeviceState_Available"/> or
7179 <link to="USBDeviceState_Held"/>,
7180 otherwise an error is immediately returned.
7181
7182 When the device state is
7183 <link to="USBDeviceState_Busy">Busy</link>, an error may also
7184 be returned if the host computer refuses to release it for some reason.
7185
7186 <see><link to="IUSBController::deviceFilters"/>,
7187 <link to="USBDeviceState"/></see>
7188 <result name="VBOX_E_INVALID_VM_STATE">
7189 Virtual machine state neither Running nor Paused.
7190 </result>
7191 <result name="VBOX_E_PDM_ERROR">
7192 Virtual machine does not have a USB controller.
7193 </result>
7194 </desc>
7195 <param name="id" type="uuid" mod="string" dir="in">
7196 <desc>UUID of the host USB device to attach.</desc>
7197 </param>
7198 </method>
7199
7200 <method name="detachUSBDevice">
7201 <desc>
7202 Detaches an USB device with the given UUID from the USB controller
7203 of the virtual machine.
7204
7205 After this method succeeds, the VirtualBox server re-initiates
7206 all USB filters as if the device were just physically attached
7207 to the host, but filters of this machine are ignored to avoid
7208 a possible automatic re-attachment.
7209
7210 <see><link to="IUSBController::deviceFilters"/>,
7211 <link to="USBDeviceState"/></see>
7212
7213 <result name="VBOX_E_PDM_ERROR">
7214 Virtual machine does not have a USB controller.
7215 </result>
7216 <result name="E_INVALIDARG">
7217 USB device not attached to this virtual machine.
7218 </result>
7219 </desc>
7220 <param name="id" type="uuid" mod="string" dir="in">
7221 <desc>UUID of the USB device to detach.</desc>
7222 </param>
7223 <param name="device" type="IUSBDevice" dir="return">
7224 <desc>Detached USB device.</desc>
7225 </param>
7226 </method>
7227
7228 <method name="findUSBDeviceByAddress">
7229 <desc>
7230 Searches for a USB device with the given host address.
7231
7232 <result name="VBOX_E_OBJECT_NOT_FOUND">
7233 Given @c name does not correspond to any USB device.
7234 </result>
7235
7236 <see><link to="IUSBDevice::address"/></see>
7237 </desc>
7238 <param name="name" type="wstring" dir="in">
7239 <desc>
7240 Address of the USB device (as assigned by the host) to
7241 search for.
7242 </desc>
7243 </param>
7244 <param name="device" type="IUSBDevice" dir="return">
7245 <desc>Found USB device object.</desc>
7246 </param>
7247 </method>
7248
7249 <method name="findUSBDeviceById">
7250 <desc>
7251 Searches for a USB device with the given UUID.
7252
7253 <result name="VBOX_E_OBJECT_NOT_FOUND">
7254 Given @c id does not correspond to any USB device.
7255 </result>
7256
7257 <see><link to="IUSBDevice::id"/></see>
7258 </desc>
7259 <param name="id" type="uuid" mod="string" dir="in">
7260 <desc>UUID of the USB device to search for.</desc>
7261 </param>
7262 <param name="device" type="IUSBDevice" dir="return">
7263 <desc>Found USB device object.</desc>
7264 </param>
7265 </method>
7266
7267 <method name="createSharedFolder">
7268 <desc>
7269 Creates a transient new shared folder by associating the given logical
7270 name with the given host path, adds it to the collection of shared
7271 folders and starts sharing it. Refer to the description of
7272 <link to="ISharedFolder"/> to read more about logical names.
7273
7274 <result name="VBOX_E_INVALID_VM_STATE">
7275 Virtual machine in Saved state or currently changing state.
7276 </result>
7277 <result name="VBOX_E_FILE_ERROR">
7278 Shared folder already exists or not accessible.
7279 </result>
7280 </desc>
7281 <param name="name" type="wstring" dir="in">
7282 <desc>Unique logical name of the shared folder.</desc>
7283 </param>
7284 <param name="hostPath" type="wstring" dir="in">
7285 <desc>Full path to the shared folder in the host file system.</desc>
7286 </param>
7287 <param name="writable" type="boolean" dir="in">
7288 <desc>Whether the share is writable or readonly</desc>
7289 </param>
7290 <param name="automount" type="boolean" dir="in">
7291 <desc>Whether the share gets automatically mounted by the guest
7292 or not.</desc>
7293 </param>
7294 </method>
7295
7296 <method name="removeSharedFolder">
7297 <desc>
7298 Removes a transient shared folder with the given name previously
7299 created by <link to="#createSharedFolder"/> from the collection of
7300 shared folders and stops sharing it.
7301 <result name="VBOX_E_INVALID_VM_STATE">
7302 Virtual machine in Saved state or currently changing state.
7303 </result>
7304 <result name="VBOX_E_FILE_ERROR">
7305 Shared folder does not exists.
7306 </result>
7307 </desc>
7308 <param name="name" type="wstring" dir="in">
7309 <desc>Logical name of the shared folder to remove.</desc>
7310 </param>
7311 </method>
7312
7313 <method name="takeSnapshot">
7314 <desc>
7315 Saves the current execution state
7316 and all settings of the machine and creates differencing images
7317 for all normal (non-independent) media.
7318 See <link to="ISnapshot" /> for an introduction to snapshots.
7319
7320 This method can be called for a PoweredOff, Saved (see
7321 <link to="#saveState"/>), Running or
7322 Paused virtual machine. When the machine is PoweredOff, an
7323 offline snapshot is created. When the machine is Running a live
7324 snapshot is created, and an online snapshot is created when Paused.
7325
7326 The taken snapshot is always based on the
7327 <link to="IMachine::currentSnapshot">current snapshot</link>
7328 of the associated virtual machine and becomes a new current snapshot.
7329
7330 <note>
7331 This method implicitly calls <link to="IMachine::saveSettings"/> to
7332 save all current machine settings before taking an offline snapshot.
7333 </note>
7334
7335 <result name="VBOX_E_INVALID_VM_STATE">
7336 Virtual machine currently changing state.
7337 </result>
7338 </desc>
7339 <param name="name" type="wstring" dir="in">
7340 <desc>Short name for the snapshot.</desc>
7341 </param>
7342 <param name="description" type="wstring" dir="in">
7343 <desc>Optional description of the snapshot.</desc>
7344 </param>
7345 <param name="progress" type="IProgress" dir="return">
7346 <desc>Progress object to track the operation completion.</desc>
7347 </param>
7348 </method>
7349
7350 <method name="deleteSnapshot">
7351 <desc>
7352 Starts deleting the specified snapshot asynchronously.
7353 See <link to="ISnapshot" /> for an introduction to snapshots.
7354
7355 The execution state and settings of the associated machine stored in
7356 the snapshot will be deleted. The contents of all differencing media of
7357 this snapshot will be merged with the contents of their dependent child
7358 media to keep the medium chain valid (in other words, all changes
7359 represented by media being deleted will be propagated to their child
7360 medium). After that, this snapshot's differencing medium will be
7361 deleted. The parent of this snapshot will become a new parent for all
7362 its child snapshots.
7363
7364 If the deleted snapshot is the current one, its parent snapshot will
7365 become a new current snapshot. The current machine state is not directly
7366 affected in this case, except that currently attached differencing
7367 media based on media of the deleted snapshot will be also merged as
7368 described above.
7369
7370 If the deleted snapshot is the first or current snapshot, then the
7371 respective IMachine attributes will be adjusted. Deleting the current
7372 snapshot will also implicitly call <link to="IMachine::saveSettings"/>
7373 to make all current machine settings permanent.
7374
7375 Deleting a snapshot has the following preconditions:
7376
7377 <ul>
7378 <li>Child media of all normal media of the deleted snapshot
7379 must be accessible (see <link to="IMedium::state"/>) for this
7380 operation to succeed. If only one running VM refers to all images
7381 which participates in merging the operation can be performed while
7382 the VM is running. Otherwise all virtual machines whose media are
7383 directly or indirectly based on the media of deleted snapshot must
7384 be powered off. In any case, online snapshot deleting usually is
7385 slower than the same operation without any running VM.</li>
7386
7387 <li>You cannot delete the snapshot if a medium attached to it has
7388 more than one child medium (differencing images) because otherwise
7389 merging would be impossible. This might be the case if there is
7390 more than one child snapshot or differencing images were created
7391 for other reason (e.g. implicitly because of multiple machine
7392 attachments).</li>
7393 </ul>
7394
7395 The virtual machine's <link to="IMachine::state">state</link> is
7396 changed to "DeletingSnapshot", "DeletingSnapshotOnline" or
7397 "DeletingSnapshotPaused" while this operation is in progress.
7398
7399 <note>
7400 Merging medium contents can be very time and disk space
7401 consuming, if these media are big in size and have many
7402 children. However, if the snapshot being deleted is the last
7403 (head) snapshot on the branch, the operation will be rather
7404 quick.
7405 </note>
7406 <result name="VBOX_E_INVALID_VM_STATE">
7407 The running virtual machine prevents deleting this snapshot. This
7408 happens only in very specific situations, usually snapshots can be
7409 deleted without trouble while a VM is running. The error message
7410 text explains the reason for the failure.
7411 </result>
7412 </desc>
7413 <param name="id" type="uuid" mod="string" dir="in">
7414 <desc>UUID of the snapshot to delete.</desc>
7415 </param>
7416 <param name="progress" type="IProgress" dir="return">
7417 <desc>Progress object to track the operation completion.</desc>
7418 </param>
7419 </method>
7420
7421 <method name="deleteSnapshotAndAllChildren">
7422 <desc>
7423 Starts deleting the specified snapshot and all its children
7424 asynchronously. See <link to="ISnapshot" /> for an introduction to
7425 snapshots. The conditions and many details are the same as with
7426 <link to="#deleteSnapshot"/>.
7427
7428 This operation is very fast if the snapshot subtree does not include
7429 the current state. It is still significantly faster than deleting the
7430 snapshots one by one if the current state is in the subtree and there
7431 are more than one snapshots from current state to the snapshot which
7432 marks the subtree, since it eliminates the incremental image merging.
7433
7434 <note>This API method is right now not implemented!</note>
7435
7436 <result name="VBOX_E_INVALID_VM_STATE">
7437 The running virtual machine prevents deleting this snapshot. This
7438 happens only in very specific situations, usually snapshots can be
7439 deleted without trouble while a VM is running. The error message
7440 text explains the reason for the failure.
7441 </result>
7442 <result name="E_NOTIMPL">
7443 The method is not implemented yet.
7444 </result>
7445 </desc>
7446 <param name="id" type="uuid" mod="string" dir="in">
7447 <desc>UUID of the snapshot to delete, including all its children.</desc>
7448 </param>
7449 <param name="progress" type="IProgress" dir="return">
7450 <desc>Progress object to track the operation completion.</desc>
7451 </param>
7452 </method>
7453
7454 <method name="deleteSnapshotRange">
7455 <desc>
7456 Starts deleting the specified snapshot range. This is limited to
7457 linear snapshot lists, which means there may not be any other child
7458 snapshots other than the direct sequence between the start and end
7459 snapshot. If the start and end snapshot point to the same snapshot this
7460 method is completely equivalent to <link to="#deleteSnapshot"/>. See
7461 <link to="ISnapshot" /> for an introduction to snapshots. The
7462 conditions and many details are the same as with
7463 <link to="#deleteSnapshot"/>.
7464
7465 This operation is generally faster than deleting snapshots one by one
7466 and often also needs less extra disk space before freeing up disk space
7467 by deleting the removed disk images corresponding to the snapshot.
7468
7469 <note>This API method is right now not implemented!</note>
7470
7471 <result name="VBOX_E_INVALID_VM_STATE">
7472 The running virtual machine prevents deleting this snapshot. This
7473 happens only in very specific situations, usually snapshots can be
7474 deleted without trouble while a VM is running. The error message
7475 text explains the reason for the failure.
7476 </result>
7477 <result name="E_NOTIMPL">
7478 The method is not implemented yet.
7479 </result>
7480 </desc>
7481 <param name="startId" type="uuid" mod="string" dir="in">
7482 <desc>UUID of the first snapshot to delete.</desc>
7483 </param>
7484 <param name="endId" type="uuid" mod="string" dir="in">
7485 <desc>UUID of the last snapshot to delete.</desc>
7486 </param>
7487 <param name="progress" type="IProgress" dir="return">
7488 <desc>Progress object to track the operation completion.</desc>
7489 </param>
7490 </method>
7491
7492 <method name="restoreSnapshot">
7493 <desc>
7494 Starts resetting the machine's current state to the state contained
7495 in the given snapshot, asynchronously. All current settings of the
7496 machine will be reset and changes stored in differencing media
7497 will be lost.
7498 See <link to="ISnapshot" /> for an introduction to snapshots.
7499
7500 After this operation is successfully completed, new empty differencing
7501 media are created for all normal media of the machine.
7502
7503 If the given snapshot is an online snapshot, the machine will go to
7504 the <link to="MachineState_Saved"> saved state</link>, so that the
7505 next time it is powered on, the execution state will be restored
7506 from the state of the snapshot.
7507
7508 <note>
7509 The machine must not be running, otherwise the operation will fail.
7510 </note>
7511
7512 <note>
7513 If the machine state is <link to="MachineState_Saved">Saved</link>
7514 prior to this operation, the saved state file will be implicitly
7515 deleted (as if <link to="IConsole::discardSavedState"/> were
7516 called).
7517 </note>
7518
7519 <result name="VBOX_E_INVALID_VM_STATE">
7520 Virtual machine is running.
7521 </result>
7522 </desc>
7523 <param name="snapshot" type="ISnapshot" dir="in">
7524 <desc>The snapshot to restore the VM state from.</desc>
7525 </param>
7526 <param name="progress" type="IProgress" dir="return">
7527 <desc>Progress object to track the operation completion.</desc>
7528 </param>
7529 </method>
7530
7531 <method name="teleport">
7532 <desc>
7533 Teleport the VM to a different host machine or process.
7534
7535 TODO explain the details.
7536
7537 <result name="VBOX_E_INVALID_VM_STATE">
7538 Virtual machine not running or paused.
7539 </result>
7540 </desc>
7541 <param name="hostname" type="wstring" dir="in">
7542 <desc>The name or IP of the host to teleport to.</desc>
7543 </param>
7544 <param name="tcpport" type="unsigned long" dir="in">
7545 <desc>The TCP port to connect to (1..65535).</desc>
7546 </param>
7547 <param name="password" type="wstring" dir="in">
7548 <desc>The password.</desc>
7549 </param>
7550 <param name="maxDowntime" type="unsigned long" dir="in">
7551 <desc>
7552 The maximum allowed downtime given as milliseconds. 0 is not a valid
7553 value. Recommended value: 250 ms.
7554
7555 The higher the value is, the greater the chance for a successful
7556 teleportation. A small value may easily result in the teleportation
7557 process taking hours and eventually fail.
7558
7559 <note>
7560 The current implementation treats this a guideline, not as an
7561 absolute rule.
7562 </note>
7563 </desc>
7564 </param>
7565 <param name="progress" type="IProgress" dir="return">
7566 <desc>Progress object to track the operation completion.</desc>
7567 </param>
7568 </method>
7569
7570 </interface>
7571
7572 <!--
7573 // IHost
7574 /////////////////////////////////////////////////////////////////////////
7575 -->
7576
7577 <enum
7578 name="HostNetworkInterfaceMediumType"
7579 uuid="1aa54aaf-2497-45a2-bfb1-8eb225e93d5b"
7580 >
7581 <desc>
7582 Type of encapsulation. Ethernet encapsulation includes both wired and
7583 wireless Ethernet connections.
7584 <see><link to="IHostNetworkInterface"/></see>
7585 </desc>
7586
7587 <const name="Unknown" value="0">
7588 <desc>
7589 The type of interface cannot be determined.
7590 </desc>
7591 </const>
7592 <const name="Ethernet" value="1">
7593 <desc>
7594 Ethernet frame encapsulation.
7595 </desc>
7596 </const>
7597 <const name="PPP" value="2">
7598 <desc>
7599 Point-to-point protocol encapsulation.
7600 </desc>
7601 </const>
7602 <const name="SLIP" value="3">
7603 <desc>
7604 Serial line IP encapsulation.
7605 </desc>
7606 </const>
7607 </enum>
7608
7609 <enum
7610 name="HostNetworkInterfaceStatus"
7611 uuid="CC474A69-2710-434B-8D99-C38E5D5A6F41"
7612 >
7613 <desc>
7614 Current status of the interface.
7615 <see><link to="IHostNetworkInterface"/></see>
7616 </desc>
7617
7618 <const name="Unknown" value="0">
7619 <desc>
7620 The state of interface cannot be determined.
7621 </desc>
7622 </const>
7623 <const name="Up" value="1">
7624 <desc>
7625 The interface is fully operational.
7626 </desc>
7627 </const>
7628 <const name="Down" value="2">
7629 <desc>
7630 The interface is not functioning.
7631 </desc>
7632 </const>
7633 </enum>
7634
7635 <enum
7636 name="HostNetworkInterfaceType"
7637 uuid="67431b00-9946-48a2-bc02-b25c5919f4f3"
7638 >
7639 <desc>
7640 Network interface type.
7641 </desc>
7642 <const name="Bridged" value="1"/>
7643 <const name="HostOnly" value="2"/>
7644 </enum>
7645
7646 <interface
7647 name="IHostNetworkInterface" extends="$unknown"
7648 uuid="87a4153d-6889-4dd6-9654-2e9ff0ae8dec"
7649 wsmap="managed"
7650 >
7651 <desc>
7652 Represents one of host's network interfaces. IP V6 address and network
7653 mask are strings of 32 hexdecimal digits grouped by four. Groups are
7654 separated by colons.
7655 For example, fe80:0000:0000:0000:021e:c2ff:fed2:b030.
7656 </desc>
7657 <attribute name="name" type="wstring" readonly="yes">
7658 <desc>Returns the host network interface name.</desc>
7659 </attribute>
7660
7661 <attribute name="id" type="uuid" mod="string" readonly="yes">
7662 <desc>Returns the interface UUID.</desc>
7663 </attribute>
7664
7665 <attribute name="networkName" type="wstring" readonly="yes">
7666 <desc>Returns the name of a virtual network the interface gets attached to.</desc>
7667 </attribute>
7668
7669 <attribute name="DHCPEnabled" type="boolean" readonly="yes">
7670 <desc>Specifies whether the DHCP is enabled for the interface.</desc>
7671 </attribute>
7672
7673 <attribute name="IPAddress" type="wstring" readonly="yes">
7674 <desc>Returns the IP V4 address of the interface.</desc>
7675 </attribute>
7676
7677 <attribute name="networkMask" type="wstring" readonly="yes">
7678 <desc>Returns the network mask of the interface.</desc>
7679 </attribute>
7680
7681 <attribute name="IPV6Supported" type="boolean" readonly="yes">
7682 <desc>Specifies whether the IP V6 is supported/enabled for the interface.</desc>
7683 </attribute>
7684
7685 <attribute name="IPV6Address" type="wstring" readonly="yes">
7686 <desc>Returns the IP V6 address of the interface.</desc>
7687 </attribute>
7688
7689 <attribute name="IPV6NetworkMaskPrefixLength" type="unsigned long" readonly="yes">
7690 <desc>Returns the length IP V6 network mask prefix of the interface.</desc>
7691 </attribute>
7692
7693 <attribute name="hardwareAddress" type="wstring" readonly="yes">
7694 <desc>Returns the hardware address. For Ethernet it is MAC address.</desc>
7695 </attribute>
7696
7697 <attribute name="mediumType" type="HostNetworkInterfaceMediumType" readonly="yes">
7698 <desc>Type of protocol encapsulation used.</desc>
7699 </attribute>
7700
7701 <attribute name="status" type="HostNetworkInterfaceStatus" readonly="yes">
7702 <desc>Status of the interface.</desc>
7703 </attribute>
7704
7705 <attribute name="interfaceType" type="HostNetworkInterfaceType" readonly="yes">
7706 <desc>specifies the host interface type.</desc>
7707 </attribute>
7708
7709 <method name="enableStaticIPConfig">
7710 <desc>sets and enables the static IP V4 configuration for the given interface.</desc>
7711 <param name="IPAddress" type="wstring" dir="in">
7712 <desc>
7713 IP address.
7714 </desc>
7715 </param>
7716 <param name="networkMask" type="wstring" dir="in">
7717 <desc>
7718 network mask.
7719 </desc>
7720 </param>
7721 </method>
7722
7723 <method name="enableStaticIPConfigV6">
7724 <desc>sets and enables the static IP V6 configuration for the given interface.</desc>
7725 <param name="IPV6Address" type="wstring" dir="in">
7726 <desc>
7727 IP address.
7728 </desc>
7729 </param>
7730 <param name="IPV6NetworkMaskPrefixLength" type="unsigned long" dir="in">
7731 <desc>
7732 network mask.
7733 </desc>
7734 </param>
7735 </method>
7736
7737 <method name="enableDynamicIPConfig">
7738 <desc>enables the dynamic IP configuration.</desc>
7739 </method>
7740
7741 <method name="DHCPRediscover">
7742 <desc>refreshes the IP configuration for DHCP-enabled interface.</desc>
7743 </method>
7744
7745 </interface>
7746
7747 <interface
7748 name="IHost" extends="$unknown"
7749 uuid="30678943-32df-4830-b413-931b25ac86a0"
7750 wsmap="managed"
7751 >
7752 <desc>
7753 The IHost interface represents the physical machine that this VirtualBox
7754 installation runs on.
7755
7756 An object implementing this interface is returned by the
7757 <link to="IVirtualBox::host" /> attribute. This interface contains
7758 read-only information about the host's physical hardware (such as what
7759 processors and disks are available, what the host operating system is,
7760 and so on) and also allows for manipulating some of the host's hardware,
7761 such as global USB device filters and host interface networking.
7762
7763 </desc>
7764 <attribute name="DVDDrives" type="IMedium" readonly="yes" safearray="yes">
7765 <desc>List of DVD drives available on the host.</desc>
7766 </attribute>
7767
7768 <attribute name="floppyDrives" type="IMedium" readonly="yes" safearray="yes">
7769 <desc>List of floppy drives available on the host.</desc>
7770 </attribute>
7771
7772 <attribute name="USBDevices" type="IHostUSBDevice" readonly="yes" safearray="yes">
7773 <desc>
7774 List of USB devices currently attached to the host.
7775 Once a new device is physically attached to the host computer,
7776 it appears in this list and remains there until detached.
7777
7778 <note>
7779 If USB functionality is not available in the given edition of
7780 VirtualBox, this method will set the result code to @c E_NOTIMPL.
7781 </note>
7782 </desc>
7783 </attribute>
7784
7785 <attribute name="USBDeviceFilters" type="IHostUSBDeviceFilter" readonly="yes" safearray="yes">
7786 <desc>
7787 List of USB device filters in action.
7788 When a new device is physically attached to the host computer,
7789 filters from this list are applied to it (in order they are stored
7790 in the list). The first matched filter will determine the
7791 <link to="IHostUSBDeviceFilter::action">action</link>
7792 performed on the device.
7793
7794 Unless the device is ignored by these filters, filters of all
7795 currently running virtual machines
7796 (<link to="IUSBController::deviceFilters"/>) are applied to it.
7797
7798 <note>
7799 If USB functionality is not available in the given edition of
7800 VirtualBox, this method will set the result code to @c E_NOTIMPL.
7801 </note>
7802
7803 <see><link to="IHostUSBDeviceFilter"/>,
7804 <link to="USBDeviceState"/></see>
7805 </desc>
7806 </attribute>
7807
7808 <attribute name="networkInterfaces" type="IHostNetworkInterface" safearray="yes" readonly="yes">
7809 <desc>List of host network interfaces currently defined on the host.</desc>
7810 </attribute>
7811
7812 <attribute name="processorCount" type="unsigned long" readonly="yes">
7813 <desc>Number of (logical) CPUs installed in the host system.</desc>
7814 </attribute>
7815
7816 <attribute name="processorOnlineCount" type="unsigned long" readonly="yes">
7817 <desc>Number of (logical) CPUs online in the host system.</desc>
7818 </attribute>
7819
7820 <attribute name="processorCoreCount" type="unsigned long" readonly="yes">
7821 <desc>Number of physical processor cores installed in the host system.</desc>
7822 </attribute>
7823
7824 <method name="getProcessorSpeed">
7825 <desc>Query the (approximate) maximum speed of a specified host CPU in
7826 Megahertz.
7827 </desc>
7828 <param name="cpuId" type="unsigned long" dir="in">
7829 <desc>
7830 Identifier of the CPU.
7831 </desc>
7832 </param>
7833 <param name="speed" type="unsigned long" dir="return">
7834 <desc>
7835 Speed value. 0 is returned if value is not known or @a cpuId is
7836 invalid.
7837 </desc>
7838 </param>
7839 </method>
7840
7841 <method name="getProcessorFeature">
7842 <desc>Query whether a CPU feature is supported or not.</desc>
7843 <param name="feature" type="ProcessorFeature" dir="in">
7844 <desc>
7845 CPU Feature identifier.
7846 </desc>
7847 </param>
7848 <param name="supported" type="boolean" dir="return">
7849 <desc>
7850 Feature is supported or not.
7851 </desc>
7852 </param>
7853 </method>
7854
7855 <method name="getProcessorDescription">
7856 <desc>Query the model string of a specified host CPU.
7857 </desc>
7858 <param name="cpuId" type="unsigned long" dir="in">
7859 <desc>
7860 Identifier of the CPU.
7861 <note>
7862 The current implementation might not necessarily return the
7863 description for this exact CPU.
7864 </note>
7865 </desc>
7866 </param>
7867 <param name="description" type="wstring" dir="return">
7868 <desc>
7869 Model string. An empty string is returned if value is not known or
7870 @a cpuId is invalid.
7871 </desc>
7872 </param>
7873 </method>
7874
7875 <method name="getProcessorCPUIDLeaf">
7876 <desc>
7877 Returns the CPU cpuid information for the specified leaf.
7878 </desc>
7879 <param name="cpuId" type="unsigned long" dir="in">
7880 <desc>
7881 Identifier of the CPU. The CPU most be online.
7882 <note>
7883 The current implementation might not necessarily return the
7884 description for this exact CPU.
7885 </note>
7886 </desc>
7887 </param>
7888 <param name="leaf" type="unsigned long" dir="in">
7889 <desc>
7890 CPUID leaf index (eax).
7891 </desc>
7892 </param>
7893 <param name="subLeaf" type="unsigned long" dir="in">
7894 <desc>
7895 CPUID leaf sub index (ecx). This currently only applies to cache
7896 information on Intel CPUs. Use 0 if retrieving values for
7897 <link to="IMachine::setCPUIDLeaf"/>.
7898 </desc>
7899 </param>
7900 <param name="valEax" type="unsigned long" dir="out">
7901 <desc>
7902 CPUID leaf value for register eax.
7903 </desc>
7904 </param>
7905 <param name="valEbx" type="unsigned long" dir="out">
7906 <desc>
7907 CPUID leaf value for register ebx.
7908 </desc>
7909 </param>
7910 <param name="valEcx" type="unsigned long" dir="out">
7911 <desc>
7912 CPUID leaf value for register ecx.
7913 </desc>
7914 </param>
7915 <param name="valEdx" type="unsigned long" dir="out">
7916 <desc>
7917 CPUID leaf value for register edx.
7918 </desc>
7919 </param>
7920 </method>
7921
7922 <attribute name="memorySize" type="unsigned long" readonly="yes">
7923 <desc>Amount of system memory in megabytes installed in the host system.</desc>
7924 </attribute>
7925
7926 <attribute name="memoryAvailable" type="unsigned long" readonly="yes">
7927 <desc>Available system memory in the host system.</desc>
7928 </attribute>
7929
7930 <attribute name="operatingSystem" type="wstring" readonly="yes">
7931 <desc>Name of the host system's operating system.</desc>
7932 </attribute>
7933
7934 <attribute name="OSVersion" type="wstring" readonly="yes">
7935 <desc>Host operating system's version string.</desc>
7936 </attribute>
7937
7938 <attribute name="UTCTime" type="long long" readonly="yes">
7939 <desc>Returns the current host time in milliseconds since 1970-01-01 UTC.</desc>
7940 </attribute>
7941
7942 <attribute name="acceleration3DAvailable" type="boolean" readonly="yes">
7943 <desc>Returns @c true when the host supports 3D hardware acceleration.</desc>
7944 </attribute>
7945
7946 <method name="createHostOnlyNetworkInterface">
7947 <desc>
7948 Creates a new adapter for Host Only Networking.
7949 <result name="E_INVALIDARG">
7950 Host network interface @a name already exists.
7951 </result>
7952 </desc>
7953 <param name="hostInterface" type="IHostNetworkInterface" dir="out">
7954 <desc>
7955 Created host interface object.
7956 </desc>
7957 </param>
7958 <param name="progress" type="IProgress" dir="return">
7959 <desc>
7960 Progress object to track the operation completion.
7961 </desc>
7962 </param>
7963 </method>
7964
7965 <method name="removeHostOnlyNetworkInterface">
7966 <desc>
7967 Removes the given Host Only Networking interface.
7968 <result name="VBOX_E_OBJECT_NOT_FOUND">
7969 No host network interface matching @a id found.
7970 </result>
7971 </desc>
7972 <param name="id" type="uuid" mod="string" dir="in">
7973 <desc>
7974 Adapter GUID.
7975 </desc>
7976 </param>
7977 <param name="progress" type="IProgress" dir="return">
7978 <desc>
7979 Progress object to track the operation completion.
7980 </desc>
7981 </param>
7982 </method>
7983
7984 <method name="createUSBDeviceFilter">
7985 <desc>
7986 Creates a new USB device filter. All attributes except
7987 the filter name are set to empty (any match),
7988 <i>active</i> is @c false (the filter is not active).
7989
7990 The created filter can be added to the list of filters using
7991 <link to="#insertUSBDeviceFilter"/>.
7992
7993 <see><link to="#USBDeviceFilters"/></see>
7994 </desc>
7995 <param name="name" type="wstring" dir="in">
7996 <desc>
7997 Filter name. See <link to="IUSBDeviceFilter::name"/> for more information.
7998 </desc>
7999 </param>
8000 <param name="filter" type="IHostUSBDeviceFilter" dir="return">
8001 <desc>Created filter object.</desc>
8002 </param>
8003 </method>
8004
8005 <method name="insertUSBDeviceFilter">
8006 <desc>
8007 Inserts the given USB device to the specified position
8008 in the list of filters.
8009
8010 Positions are numbered starting from @c 0. If the specified
8011 position is equal to or greater than the number of elements in
8012 the list, the filter is added at the end of the collection.
8013
8014 <note>
8015 Duplicates are not allowed, so an attempt to insert a
8016 filter already in the list is an error.
8017 </note>
8018 <note>
8019 If USB functionality is not available in the given edition of
8020 VirtualBox, this method will set the result code to @c E_NOTIMPL.
8021 </note>
8022
8023 <see><link to="#USBDeviceFilters"/></see>
8024
8025 <result name="VBOX_E_INVALID_OBJECT_STATE">
8026 USB device filter is not created within this VirtualBox instance.
8027 </result>
8028 <result name="E_INVALIDARG">
8029 USB device filter already in list.
8030 </result>
8031
8032 </desc>
8033 <param name="position" type="unsigned long" dir="in">
8034 <desc>Position to insert the filter to.</desc>
8035 </param>
8036 <param name="filter" type="IHostUSBDeviceFilter" dir="in">
8037 <desc>USB device filter to insert.</desc>
8038 </param>
8039 </method>
8040
8041 <method name="removeUSBDeviceFilter">
8042 <desc>
8043 Removes a USB device filter from the specified position in the
8044 list of filters.
8045
8046 Positions are numbered starting from @c 0. Specifying a
8047 position equal to or greater than the number of elements in
8048 the list will produce an error.
8049
8050 <note>
8051 If USB functionality is not available in the given edition of
8052 VirtualBox, this method will set the result code to @c E_NOTIMPL.
8053 </note>
8054
8055 <see><link to="#USBDeviceFilters"/></see>
8056
8057 <result name="E_INVALIDARG">
8058 USB device filter list empty or invalid @a position.
8059 </result>
8060
8061 </desc>
8062 <param name="position" type="unsigned long" dir="in">
8063 <desc>Position to remove the filter from.</desc>
8064 </param>
8065 </method>
8066
8067 <method name="findHostDVDDrive">
8068 <desc>
8069 Searches for a host DVD drive with the given @c name.
8070
8071 <result name="VBOX_E_OBJECT_NOT_FOUND">
8072 Given @c name does not correspond to any host drive.
8073 </result>
8074
8075 </desc>
8076 <param name="name" type="wstring" dir="in">
8077 <desc>Name of the host drive to search for</desc>
8078 </param>
8079 <param name="drive" type="IMedium" dir="return">
8080 <desc>Found host drive object</desc>
8081 </param>
8082 </method>
8083
8084 <method name="findHostFloppyDrive">
8085 <desc>
8086 Searches for a host floppy drive with the given @c name.
8087
8088 <result name="VBOX_E_OBJECT_NOT_FOUND">
8089 Given @c name does not correspond to any host floppy drive.
8090 </result>
8091
8092 </desc>
8093 <param name="name" type="wstring" dir="in">
8094 <desc>Name of the host floppy drive to search for</desc>
8095 </param>
8096 <param name="drive" type="IMedium" dir="return">
8097 <desc>Found host floppy drive object</desc>
8098 </param>
8099 </method>
8100
8101 <method name="findHostNetworkInterfaceByName">
8102 <desc>
8103 Searches through all host network interfaces for an interface with
8104 the given @c name.
8105 <note>
8106 The method returns an error if the given @c name does not
8107 correspond to any host network interface.
8108 </note>
8109 </desc>
8110 <param name="name" type="wstring" dir="in">
8111 <desc>Name of the host network interface to search for.</desc>
8112 </param>
8113 <param name="networkInterface" type="IHostNetworkInterface" dir="return">
8114 <desc>Found host network interface object.</desc>
8115 </param>
8116 </method>
8117 <method name="findHostNetworkInterfaceById">
8118 <desc>
8119 Searches through all host network interfaces for an interface with
8120 the given GUID.
8121 <note>
8122 The method returns an error if the given GUID does not
8123 correspond to any host network interface.
8124 </note>
8125 </desc>
8126 <param name="id" type="uuid" mod="string" dir="in">
8127 <desc>GUID of the host network interface to search for.</desc>
8128 </param>
8129 <param name="networkInterface" type="IHostNetworkInterface" dir="return">
8130 <desc>Found host network interface object.</desc>
8131 </param>
8132 </method>
8133 <method name="findHostNetworkInterfacesOfType">
8134 <desc>
8135 Searches through all host network interfaces and returns a list of interfaces of the specified type
8136 </desc>
8137 <param name="type" type="HostNetworkInterfaceType" dir="in">
8138 <desc>type of the host network interfaces to search for.</desc>
8139 </param>
8140 <param name="networkInterfaces" type="IHostNetworkInterface" safearray="yes" dir="return">
8141 <desc>Found host network interface objects.</desc>
8142 </param>
8143 </method>
8144
8145 <method name="findUSBDeviceById">
8146 <desc>
8147 Searches for a USB device with the given UUID.
8148
8149 <result name="VBOX_E_OBJECT_NOT_FOUND">
8150 Given @c id does not correspond to any USB device.
8151 </result>
8152
8153 <see><link to="IUSBDevice::id"/></see>
8154 </desc>
8155 <param name="id" type="uuid" mod="string" dir="in">
8156 <desc>UUID of the USB device to search for.</desc>
8157 </param>
8158 <param name="device" type="IHostUSBDevice" dir="return">
8159 <desc>Found USB device object.</desc>
8160 </param>
8161 </method>
8162
8163 <method name="findUSBDeviceByAddress">
8164 <desc>
8165 Searches for a USB device with the given host address.
8166
8167 <result name="VBOX_E_OBJECT_NOT_FOUND">
8168 Given @c name does not correspond to any USB device.
8169 </result>
8170
8171 <see><link to="IUSBDevice::address"/></see>
8172 </desc>
8173 <param name="name" type="wstring" dir="in">
8174 <desc>
8175 Address of the USB device (as assigned by the host) to
8176 search for.
8177 </desc>
8178 </param>
8179 <param name="device" type="IHostUSBDevice" dir="return">
8180 <desc>Found USB device object.</desc>
8181 </param>
8182 </method>
8183
8184 <method name="generateMACAddress">
8185 <desc>
8186 Generates a valid Ethernet MAC address, 12 hexadecimal characters.
8187 </desc>
8188 <param name="address" type="wstring" dir="return">
8189 <desc>New Ethernet MAC address.</desc>
8190 </param>
8191 </method>
8192
8193 </interface>
8194
8195 <!--
8196 // ISystemProperties
8197 /////////////////////////////////////////////////////////////////////////
8198 -->
8199
8200 <interface
8201 name="ISystemProperties"
8202 extends="$unknown"
8203 uuid="1d7aca29-97f0-4287-9874-a60ec4f80ea6"
8204 wsmap="managed"
8205 >
8206 <desc>
8207 The ISystemProperties interface represents global properties of the given
8208 VirtualBox installation.
8209
8210 These properties define limits and default values for various attributes
8211 and parameters. Most of the properties are read-only, but some can be
8212 changed by a user.
8213 </desc>
8214
8215 <attribute name="minGuestRAM" type="unsigned long" readonly="yes">
8216 <desc>Minimum guest system memory in Megabytes.</desc>
8217 </attribute>
8218
8219 <attribute name="maxGuestRAM" type="unsigned long" readonly="yes">
8220 <desc>Maximum guest system memory in Megabytes.</desc>
8221 </attribute>
8222
8223 <attribute name="minGuestVRAM" type="unsigned long" readonly="yes">
8224 <desc>Minimum guest video memory in Megabytes.</desc>
8225 </attribute>
8226
8227 <attribute name="maxGuestVRAM" type="unsigned long" readonly="yes">
8228 <desc>Maximum guest video memory in Megabytes.</desc>
8229 </attribute>
8230
8231 <attribute name="minGuestCPUCount" type="unsigned long" readonly="yes">
8232 <desc>Minimum CPU count.</desc>
8233 </attribute>
8234
8235 <attribute name="maxGuestCPUCount" type="unsigned long" readonly="yes">
8236 <desc>Maximum CPU count.</desc>
8237 </attribute>
8238
8239 <attribute name="maxGuestMonitors" type="unsigned long" readonly="yes">
8240 <desc>Maximum of monitors which could be connected.</desc>
8241 </attribute>
8242
8243 <attribute name="infoVDSize" type="long long" readonly="yes">
8244 <desc>Maximum size of a virtual disk image in bytes. Informational value,
8245 does not reflect the limits of any virtual disk image format.</desc>
8246 </attribute>
8247
8248 <attribute name="serialPortCount" type="unsigned long" readonly="yes">
8249 <desc>
8250 Maximum number of serial ports associated with every
8251 <link to="IMachine"/> instance.
8252 </desc>
8253 </attribute>
8254
8255 <attribute name="parallelPortCount" type="unsigned long" readonly="yes">
8256 <desc>
8257 Maximum number of parallel ports associated with every
8258 <link to="IMachine"/> instance.
8259 </desc>
8260 </attribute>
8261
8262 <attribute name="maxBootPosition" type="unsigned long" readonly="yes">
8263 <desc>
8264 Maximum device position in the boot order. This value corresponds
8265 to the total number of devices a machine can boot from, to make it
8266 possible to include all possible devices to the boot list.
8267 <see><link to="IMachine::setBootOrder"/></see>
8268 </desc>
8269 </attribute>
8270
8271 <attribute name="defaultMachineFolder" type="wstring">
8272 <desc>
8273 Full path to the default directory used to create new or open
8274 existing machines when a machine settings file name contains no
8275 path.
8276
8277 Starting with VirtualBox 4.0, by default, this attribute contains
8278 the full path of folder named "VirtualBox VMs" in the user's
8279 home directory, which depends on the host platform.
8280
8281 When setting this attribute, a full path must be specified.
8282 Setting this property to @c null or an empty string or the
8283 special value "Machines" (for compatibility reasons) will restore
8284 that default value.
8285
8286 If the folder specified herein does not exist, it will be created
8287 automatically as needed.
8288
8289 <see>
8290 <link to="IVirtualBox::createMachine"/>,
8291 <link to="IVirtualBox::openMachine"/>
8292 </see>
8293 </desc>
8294 </attribute>
8295
8296 <attribute name="mediumFormats" type="IMediumFormat" safearray="yes" readonly="yes">
8297 <desc>
8298 List of all medium storage formats supported by this VirtualBox
8299 installation.
8300
8301 Keep in mind that the medium format identifier
8302 (<link to="IMediumFormat::id"/>) used in other API calls like
8303 <link to="IVirtualBox::createHardDisk"/> to refer to a particular
8304 medium format is a case-insensitive string. This means that, for
8305 example, all of the following strings:
8306 <pre>
8307 "VDI"
8308 "vdi"
8309 "VdI"</pre>
8310 refer to the same medium format.
8311
8312 Note that the virtual medium framework is backend-based, therefore
8313 the list of supported formats depends on what backends are currently
8314 installed.
8315
8316 <see><link to="IMediumFormat"/></see>
8317 </desc>
8318 </attribute>
8319
8320 <attribute name="defaultHardDiskFormat" type="wstring">
8321 <desc>
8322 Identifier of the default medium format used by VirtualBox.
8323
8324 The medium format set by this attribute is used by VirtualBox
8325 when the medium format was not specified explicitly. One example is
8326 <link to="IVirtualBox::createHardDisk"/> with the empty
8327 format argument. A more complex example is implicit creation of
8328 differencing media when taking a snapshot of a virtual machine:
8329 this operation will try to use a format of the parent medium first
8330 and if this format does not support differencing media the default
8331 format specified by this argument will be used.
8332
8333 The list of supported medium formats may be obtained by the
8334 <link to="#mediumFormats"/> call. Note that the default medium
8335 format must have a capability to create differencing media;
8336 otherwise operations that create media implicitly may fail
8337 unexpectedly.
8338
8339 The initial value of this property is <tt>"VDI"</tt> in the current
8340 version of the VirtualBox product, but may change in the future.
8341
8342 <note>
8343 Setting this property to @c null or empty string will restore the
8344 initial value.
8345 </note>
8346
8347 <see>
8348 <link to="#mediumFormats"/>,
8349 <link to="IMediumFormat::id"/>,
8350 <link to="IVirtualBox::createHardDisk"/>
8351 </see>
8352 </desc>
8353 </attribute>
8354
8355 <attribute name="freeDiskSpaceWarning" type="long long">
8356 <desc>Issue a warning if the free disk space is below (or in some disk
8357 intensive operation is expected to go below) the given size in
8358 bytes.</desc>
8359 </attribute>
8360
8361 <attribute name="freeDiskSpacePercentWarning" type="unsigned long">
8362 <desc>Issue a warning if the free disk space is below (or in some disk
8363 intensive operation is expected to go below) the given percentage.</desc>
8364 </attribute>
8365
8366 <attribute name="freeDiskSpaceError" type="long long">
8367 <desc>Issue an error if the free disk space is below (or in some disk
8368 intensive operation is expected to go below) the given size in
8369 bytes.</desc>
8370 </attribute>
8371
8372 <attribute name="freeDiskSpacePercentError" type="unsigned long">
8373 <desc>Issue an error if the free disk space is below (or in some disk
8374 intensive operation is expected to go below) the given percentage.</desc>
8375 </attribute>
8376
8377 <attribute name="VRDEAuthLibrary" type="wstring">
8378 <desc>
8379 Library that provides authentication for Remote Desktop clients. The library
8380 is used if a virtual machine's authentication type is set to "external"
8381 in the VM RemoteDisplay configuration.
8382
8383 The system library extension (".DLL" or ".so") must be omitted.
8384 A full path can be specified; if not, then the library must reside on the
8385 system's default library path.
8386
8387 The default value of this property is <tt>"VBoxAuth"</tt>. There is a library
8388 of that name in one of the default VirtualBox library directories.
8389
8390 For details about VirtualBox authentication libraries and how to implement
8391 them, please refer to the VirtualBox manual.
8392
8393 <note>
8394 Setting this property to @c null or empty string will restore the
8395 initial value.
8396 </note>
8397 </desc>
8398 </attribute>
8399
8400 <attribute name="webServiceAuthLibrary" type="wstring">
8401 <desc>
8402 Library that provides authentication for webservice clients. The library
8403 is used if a virtual machine's authentication type is set to "external"
8404 in the VM RemoteDisplay configuration and will be called from
8405 within the <link to="IWebsessionManager::logon" /> implementation.
8406
8407 As opposed to <link to="ISystemProperties::VRDEAuthLibrary" />,
8408 there is no per-VM setting for this, as the webservice is a global
8409 resource (if it is running). Only for this setting (for the webservice),
8410 setting this value to a literal <tt>"null"</tt> string disables authentication,
8411 meaning that <link to="IWebsessionManager::logon" /> will always succeed,
8412 no matter what user name and password are supplied.
8413
8414 The initial value of this property is <tt>"VBoxAuth"</tt>,
8415 meaning that the webservice will use the same authentication
8416 library that is used by default for VRDE (again, see
8417 <link to="ISystemProperties::VRDEAuthLibrary" />).
8418 The format and calling convention of authentication libraries
8419 is the same for the webservice as it is for VRDE.
8420
8421 <note>
8422 Setting this property to @c null or empty string will restore the
8423 initial value.
8424 </note>
8425 </desc>
8426 </attribute>
8427
8428 <attribute name="defaultVRDEExtPack" type="wstring">
8429 <desc>
8430 The name of the extension pack providing the default VRDE.
8431
8432 This attribute is for choosing between multiple extension packs
8433 providing VRDE. If only one is installed, it will automatically be the
8434 default one. The attribute value can be empty if no VRDE extension
8435 pack is installed.
8436
8437 For details about VirtualBox Remote Desktop Extension and how to
8438 implement one, please refer to the VirtualBox SDK.
8439 </desc>
8440 </attribute>
8441
8442 <attribute name="logHistoryCount" type="unsigned long">
8443 <desc>
8444 This value specifies how many old release log files are kept.
8445 </desc>
8446 </attribute>
8447
8448 <attribute name="defaultAudioDriver" type="AudioDriverType" readonly="yes">
8449 <desc>This value hold the default audio driver for the current
8450 system.</desc>
8451 </attribute>
8452
8453 <attribute name="autostartDatabasePath" type="wstring">
8454 <desc>
8455 The path to the autostart database. Depending on the host this might
8456 be a filesystem path or something else.
8457 </desc>
8458 </attribute>
8459
8460 <attribute name="defaultAdditionsISO" type="wstring">
8461 <desc>
8462 The path to the default Guest Additions ISO image. Can be empty if
8463 the location is not known in this installation.
8464 </desc>
8465 </attribute>
8466
8467 <method name="getMaxNetworkAdapters">
8468 <desc>
8469 Maximum total number of network adapters associated with every
8470 <link to="IMachine"/> instance.
8471 </desc>
8472
8473 <param name="chipset" type="ChipsetType" dir="in">
8474 <desc>The chipset type to get the value for.</desc>
8475 </param>
8476
8477
8478 <param name="maxNetworkAdapters" type="unsigned long" dir="return">
8479 <desc>The maximum total number of network adapters allowed.</desc>
8480 </param>
8481
8482 </method>
8483
8484 <method name="getMaxNetworkAdaptersOfType">
8485 <desc>
8486 Maximum number of network adapters of a given attachment type,
8487 associated with every <link to="IMachine"/> instance.
8488 </desc>
8489
8490 <param name="chipset" type="ChipsetType" dir="in">
8491 <desc>The chipset type to get the value for.</desc>
8492 </param>
8493
8494 <param name="type" type="NetworkAttachmentType" dir="in">
8495 <desc>Type of attachment.</desc>
8496 </param>
8497
8498 <param name="maxNetworkAdapters" type="unsigned long" dir="return">
8499 <desc>The maximum number of network adapters allowed for
8500 particular chipset and attachment type.</desc>
8501 </param>
8502
8503 </method>
8504
8505
8506 <method name="getMaxDevicesPerPortForStorageBus">
8507 <desc>Returns the maximum number of devices which can be attached to a port
8508 for the given storage bus.</desc>
8509
8510 <param name="bus" type="StorageBus" dir="in">
8511 <desc>The storage bus type to get the value for.</desc>
8512 </param>
8513
8514 <param name="maxDevicesPerPort" type="unsigned long" dir="return">
8515 <desc>The maximum number of devices which can be attached to the port for the given
8516 storage bus.</desc>
8517 </param>
8518 </method>
8519
8520 <method name="getMinPortCountForStorageBus">
8521 <desc>Returns the minimum number of ports the given storage bus supports.</desc>
8522
8523 <param name="bus" type="StorageBus" dir="in">
8524 <desc>The storage bus type to get the value for.</desc>
8525 </param>
8526
8527 <param name="minPortCount" type="unsigned long" dir="return">
8528 <desc>The minimum number of ports for the given storage bus.</desc>
8529 </param>
8530 </method>
8531
8532 <method name="getMaxPortCountForStorageBus">
8533 <desc>Returns the maximum number of ports the given storage bus supports.</desc>
8534
8535 <param name="bus" type="StorageBus" dir="in">
8536 <desc>The storage bus type to get the value for.</desc>
8537 </param>
8538
8539 <param name="maxPortCount" type="unsigned long" dir="return">
8540 <desc>The maximum number of ports for the given storage bus.</desc>
8541 </param>
8542 </method>
8543
8544 <method name="getMaxInstancesOfStorageBus">
8545 <desc>Returns the maximum number of storage bus instances which
8546 can be configured for each VM. This corresponds to the number of
8547 storage controllers one can have. Value may depend on chipset type
8548 used.</desc>
8549
8550 <param name="chipset" type="ChipsetType" dir="in">
8551 <desc>The chipset type to get the value for.</desc>
8552 </param>
8553
8554 <param name="bus" type="StorageBus" dir="in">
8555 <desc>The storage bus type to get the value for.</desc>
8556 </param>
8557
8558 <param name="maxInstances" type="unsigned long" dir="return">
8559 <desc>The maximum number of instances for the given storage bus.</desc>
8560 </param>
8561 </method>
8562
8563 <method name="getDeviceTypesForStorageBus">
8564 <desc>Returns list of all the supported device types
8565 (<link to="DeviceType"/>) for the given type of storage
8566 bus.</desc>
8567
8568 <param name="bus" type="StorageBus" dir="in">
8569 <desc>The storage bus type to get the value for.</desc>
8570 </param>
8571
8572 <param name="deviceTypes" type="DeviceType" safearray="yes" dir="return">
8573 <desc>The list of all supported device types for the given storage bus.</desc>
8574 </param>
8575 </method>
8576
8577 <method name="getDefaultIoCacheSettingForStorageController">
8578 <desc>Returns the default I/O cache setting for the
8579 given storage controller</desc>
8580
8581 <param name="controllerType" type="StorageControllerType" dir="in">
8582 <desc>The storage controller to the setting for.</desc>
8583 </param>
8584
8585 <param name="enabled" type="boolean" dir="return">
8586 <desc>Returned flag indicating the default value</desc>
8587 </param>
8588 </method>
8589 </interface>
8590
8591 <!--
8592 // IGuest
8593 /////////////////////////////////////////////////////////////////////////
8594 -->
8595
8596 <interface
8597 name="IGuestOSType" extends="$unknown"
8598 uuid="6d968f9a-858b-4c50-bf17-241f069e94c2"
8599 wsmap="struct"
8600 >
8601 <desc>
8602 </desc>
8603
8604 <attribute name="familyId" type="wstring" readonly="yes">
8605 <desc>Guest OS family identifier string.</desc>
8606 </attribute>
8607
8608 <attribute name="familyDescription" type="wstring" readonly="yes">
8609 <desc>Human readable description of the guest OS family.</desc>
8610 </attribute>
8611
8612 <attribute name="id" type="wstring" readonly="yes">
8613 <desc>Guest OS identifier string.</desc>
8614 </attribute>
8615
8616 <attribute name="description" type="wstring" readonly="yes">
8617 <desc>Human readable description of the guest OS.</desc>
8618 </attribute>
8619
8620 <attribute name="is64Bit" type="boolean" readonly="yes">
8621 <desc>Returns @c true if the given OS is 64-bit</desc>
8622 </attribute>
8623
8624 <attribute name="recommendedIOAPIC" type="boolean" readonly="yes">
8625 <desc>Returns @c true if IO APIC recommended for this OS type.</desc>
8626 </attribute>
8627
8628 <attribute name="recommendedVirtEx" type="boolean" readonly="yes">
8629 <desc>Returns @c true if VT-x or AMD-V recommended for this OS type.</desc>
8630 </attribute>
8631
8632 <attribute name="recommendedRAM" type="unsigned long" readonly="yes">
8633 <desc>Recommended RAM size in Megabytes.</desc>
8634 </attribute>
8635
8636 <attribute name="recommendedVRAM" type="unsigned long" readonly="yes">
8637 <desc>Recommended video RAM size in Megabytes.</desc>
8638 </attribute>
8639
8640 <attribute name="recommended2DVideoAcceleration" type="boolean" readonly="yes">
8641 <desc>Returns @c true if 2D video acceleration is recommended for this OS type.</desc>
8642 </attribute>
8643
8644 <attribute name="recommended3DAcceleration" type="boolean" readonly="yes">
8645 <desc>Returns @c true if 3D acceleration is recommended for this OS type.</desc>
8646 </attribute>
8647
8648 <attribute name="recommendedHDD" type="long long" readonly="yes">
8649 <desc>Recommended hard disk size in bytes.</desc>
8650 </attribute>
8651
8652 <attribute name="adapterType" type="NetworkAdapterType" readonly="yes">
8653 <desc>Returns recommended network adapter for this OS type.</desc>
8654 </attribute>
8655
8656 <attribute name="recommendedPAE" type="boolean" readonly="yes">
8657 <desc>Returns @c true if using PAE is recommended for this OS type.</desc>
8658 </attribute>
8659
8660 <attribute name="recommendedDVDStorageController" type="StorageControllerType" readonly="yes">
8661 <desc>Recommended storage controller type for DVD/CD drives.</desc>
8662 </attribute>
8663
8664 <attribute name="recommendedDVDStorageBus" type="StorageBus" readonly="yes">
8665 <desc>Recommended storage bus type for DVD/CD drives.</desc>
8666 </attribute>
8667
8668 <attribute name="recommendedHDStorageController" type="StorageControllerType" readonly="yes">
8669 <desc>Recommended storage controller type for HD drives.</desc>
8670 </attribute>
8671
8672 <attribute name="recommendedHDStorageBus" type="StorageBus" readonly="yes">
8673 <desc>Recommended storage bus type for HD drives.</desc>
8674 </attribute>
8675
8676 <attribute name="recommendedFirmware" type="FirmwareType" readonly="yes">
8677 <desc>Recommended firmware type.</desc>
8678 </attribute>
8679
8680 <attribute name="recommendedUSBHID" type="boolean" readonly="yes">
8681 <desc>Returns @c true if using USB Human Interface Devices, such as keyboard and mouse recommended.</desc>
8682 </attribute>
8683
8684 <attribute name="recommendedHPET" type="boolean" readonly="yes">
8685 <desc>Returns @c true if using HPET is recommended for this OS type.</desc>
8686 </attribute>
8687
8688 <attribute name="recommendedUSBTablet" type="boolean" readonly="yes">
8689 <desc>Returns @c true if using a USB Tablet is recommended.</desc>
8690 </attribute>
8691
8692 <attribute name="recommendedRTCUseUTC" type="boolean" readonly="yes">
8693 <desc>Returns @c true if the RTC of this VM should be set to UTC</desc>
8694 </attribute>
8695
8696 <attribute name="recommendedChipset" type="ChipsetType" readonly="yes">
8697 <desc>Recommended chipset type.</desc>
8698 </attribute>
8699
8700 <attribute name="recommendedAudioController" type="AudioControllerType" readonly="yes">
8701 <desc>Recommended audio type.</desc>
8702 </attribute>
8703
8704 <attribute name="recommendedFloppy" type="boolean" readonly="yes">
8705 <desc>Returns @c true a floppy drive is recommended for this OS type.</desc>
8706 </attribute>
8707
8708 <attribute name="recommendedUSB" type="boolean" readonly="yes">
8709 <desc>Returns @c true a USB controller is recommended for this OS type.</desc>
8710 </attribute>
8711
8712 </interface>
8713
8714 <enum
8715 name="AdditionsFacilityType"
8716 uuid="98f7f957-89fb-49b6-a3b1-31e3285eb1d8"
8717 >
8718 <desc>
8719 Guest Additions facility IDs.
8720 </desc>
8721
8722 <const name="None" value="0">
8723 <desc>No/invalid facility.</desc>
8724 </const>
8725 <const name="VBoxGuestDriver" value="20">
8726 <desc>VirtualBox base driver (VBoxGuest).</desc>
8727 </const>
8728 <const name="AutoLogon" value="90">
8729 <desc>Auto-logon modules (VBoxGINA, VBoxCredProv, pam_vbox).</desc>
8730 </const>
8731 <const name="VBoxService" value="100">
8732 <desc>VirtualBox system service (VBoxService).</desc>
8733 </const>
8734 <const name="VBoxTrayClient" value="101">
8735 <desc>VirtualBox desktop integration (VBoxTray on Windows, VBoxClient on non-Windows).</desc>
8736 </const>
8737 <const name="Seamless" value="1000">
8738 <desc>Seamless guest desktop integration.</desc>
8739 </const>
8740 <const name="Graphics" value="1100">
8741 <desc>Guest graphics mode. If not enabled, seamless rendering will not work, resize hints
8742 are not immediately acted on and guest display resizes are probably not initiated by
8743 the guest additions.
8744 </desc>
8745 </const>
8746 <const name="All" value="2147483646">
8747 <desc>All facilities selected.</desc>
8748 </const>
8749 </enum>
8750
8751 <enum
8752 name="AdditionsFacilityClass"
8753 uuid="446451b2-c88d-4e5d-84c9-91bc7f533f5f"
8754 >
8755 <desc>
8756 Guest Additions facility classes.
8757 </desc>
8758
8759 <const name="None" value="0">
8760 <desc>No/invalid class.</desc>
8761 </const>
8762 <const name="Driver" value="10">
8763 <desc>Driver.</desc>
8764 </const>
8765 <const name="Service" value="30">
8766 <desc>System service.</desc>
8767 </const>
8768 <const name="Program" value="50">
8769 <desc>Program.</desc>
8770 </const>
8771 <const name="Feature" value="100">
8772 <desc>Feature.</desc>
8773 </const>
8774 <const name="ThirdParty" value="999">
8775 <desc>Third party.</desc>
8776 </const>
8777 <const name="All" value="2147483646">
8778 <desc>All facility classes selected.</desc>
8779 </const>
8780 </enum>
8781
8782 <enum
8783 name="AdditionsFacilityStatus"
8784 uuid="ce06f9e1-394e-4fe9-9368-5a88c567dbde"
8785 >
8786 <desc>
8787 Guest Additions facility states.
8788 </desc>
8789
8790 <const name="Inactive" value="0">
8791 <desc>Facility is not active.</desc>
8792 </const>
8793 <const name="Paused" value="1">
8794 <desc>Facility has been paused.</desc>
8795 </const>
8796 <const name="PreInit" value="20">
8797 <desc>Facility is preparing to initialize.</desc>
8798 </const>
8799 <const name="Init" value="30">
8800 <desc>Facility is initializing.</desc>
8801 </const>
8802 <const name="Active" value="50">
8803 <desc>Facility is up and running.</desc>
8804 </const>
8805 <const name="Terminating" value="100">
8806 <desc>Facility is shutting down.</desc>
8807 </const>
8808 <const name="Terminated" value="101">
8809 <desc>Facility successfully shut down.</desc>
8810 </const>
8811 <const name="Failed" value="800">
8812 <desc>Facility failed to start.</desc>
8813 </const>
8814 <const name="Unknown" value="999">
8815 <desc>Facility status is unknown.</desc>
8816 </const>
8817 </enum>
8818
8819 <interface
8820 name="IAdditionsFacility" extends="$unknown"
8821 uuid="54992946-6af1-4e49-98ec-58b558b7291e"
8822 wsmap="struct"
8823 >
8824 <desc>
8825 Structure representing a Guest Additions facility.
8826 </desc>
8827
8828 <attribute name="classType" type="AdditionsFacilityClass" readonly="yes">
8829 <desc>The class this facility is part of.</desc>
8830 </attribute>
8831
8832 <attribute name="lastUpdated" type="long long" readonly="yes">
8833 <desc>
8834 Time stamp of the last status update,
8835 in milliseconds since 1970-01-01 UTC.
8836 </desc>
8837 </attribute>
8838
8839 <attribute name="name" type="wstring" readonly="yes">
8840 <desc>The facility's friendly name.</desc>
8841 </attribute>
8842
8843 <attribute name="status" type="AdditionsFacilityStatus" readonly="yes">
8844 <desc>The current status.</desc>
8845 </attribute>
8846
8847 <attribute name="type" type="AdditionsFacilityType" readonly="yes">
8848 <desc>The facility's type ID.</desc>
8849 </attribute>
8850 </interface>
8851
8852 <enum
8853 name="AdditionsRunLevelType"
8854 uuid="a25417ee-a9dd-4f5b-b0dc-377860087754"
8855 >
8856 <desc>
8857 Guest Additions run level type.
8858 </desc>
8859
8860 <const name="None" value="0">
8861 <desc>Guest Additions are not loaded.</desc>
8862 </const>
8863 <const name="System" value="1">
8864 <desc>Guest drivers are loaded.</desc>
8865 </const>
8866 <const name="Userland" value="2">
8867 <desc>Common components (such as application services) are loaded.</desc>
8868 </const>
8869 <const name="Desktop" value="3">
8870 <desc>Per-user desktop components are loaded.</desc>
8871 </const>
8872 </enum>
8873
8874 <enum
8875 name="AdditionsUpdateFlag"
8876 uuid="726a818d-18d6-4389-94e8-3e9e6826171a"
8877 >
8878 <desc>
8879 Guest Additions update flags.
8880 </desc>
8881
8882 <const name="None" value="0">
8883 <desc>No flag set.</desc>
8884 </const>
8885 <const name="WaitForUpdateStartOnly" value="1">
8886 <desc>Only wait for the update process being started and do not
8887 wait while peforming the actual update.</desc>
8888 </const>
8889 </enum>
8890
8891 <enum
8892 name="ExecuteProcessFlag"
8893 uuid="1c49b831-b2c7-4a30-97dd-999a2e2cbf90"
8894 >
8895 <desc>
8896 Guest process execution flags.
8897 </desc>
8898
8899 <const name="None" value="0">
8900 <desc>No flag set.</desc>
8901 </const>
8902 <const name="WaitForProcessStartOnly" value="1">
8903 <desc>Only use the specified timeout value to wait for starting the guest process - the guest
8904 process itself then uses an infinite timeout.</desc>
8905 </const>
8906 <const name="IgnoreOrphanedProcesses" value="2">
8907 <desc>Do not report an error when executed processes are still alive when VBoxService or the guest OS is shutting down.</desc>
8908 </const>
8909 <const name="Hidden" value="4">
8910 <desc>Do not show the started process according to the guest OS guidelines.</desc>
8911 </const>
8912 <const name="NoProfile" value="8">
8913 <desc>Do not use the user's profile data when exeuting a process. Only available for Windows guests.</desc>
8914 </const>
8915 <const name="WaitForStdOut" value="16">
8916 <desc>The guest process waits until all data from stdout is read out.</desc>
8917 </const>
8918 <const name="WaitForStdErr" value="32">
8919 <desc>The guest process waits until all data from stderr is read out.</desc>
8920 </const>
8921 </enum>
8922
8923 <enum
8924 name="ExecuteProcessStatus"
8925 uuid="153768d9-d971-4098-8b5a-c5cb1ab9ea88"
8926 >
8927 <desc>
8928 Guest process execution status.
8929 </desc>
8930 <const name="Undefined" value="0">
8931 <desc>Process is in an undefined state.</desc>
8932 </const>
8933
8934 <const name="Started" value="1">
8935 <desc>Process has been started.</desc>
8936 </const>
8937 <const name="TerminatedNormally" value="2">
8938 <desc>Process terminated normally.</desc>
8939 </const>
8940 <const name="TerminatedSignal" value="3">
8941 <desc>Process terminated via signal.</desc>
8942 </const>
8943 <const name="TerminatedAbnormally" value="4">
8944 <desc>Process terminated abnormally.</desc>
8945 </const>
8946 <const name="TimedOutKilled" value="5">
8947 <desc>Process timed out and was killed.</desc>
8948 </const>
8949 <const name="TimedOutAbnormally" value="6">
8950 <desc>Process timed out and was not killed successfully.</desc>
8951 </const>
8952 <const name="Down" value="7">
8953 <desc>Service/OS is stopping, process was killed.</desc>
8954 </const>
8955 <const name="Error" value="8">
8956 <desc>Something went wrong (error code in flags).</desc>
8957 </const>
8958 </enum>
8959
8960 <enum
8961 name="FileSeekType"
8962 uuid="1b73f4f3-3515-4073-a506-76878d9e2541"
8963 >
8964 <desc>
8965 TODO
8966 </desc>
8967
8968 <const name="Set" value="0">
8969 <desc>TODO</desc>
8970 </const>
8971 <const name="Current" value="1">
8972 <desc>TODO</desc>
8973 </const>
8974 </enum>
8975
8976 <enum
8977 name="ProcessInputFlag"
8978 uuid="5d38c1dd-2604-4ddf-92e5-0c0cdd3bdbd5"
8979 >
8980 <desc>
8981 Guest process input flags.
8982 </desc>
8983 <const name="None" value="0">
8984 <desc>No flag set.</desc>
8985 </const>
8986 <const name="EndOfFile" value="1">
8987 <desc>End of file (input) reached.</desc>
8988 </const>
8989 </enum>
8990
8991 <enum
8992 name="ProcessOutputFlag"
8993 uuid="9979e85a-52bb-40b7-870c-57115e27e0f1"
8994 >
8995 <desc>
8996 Guest process output flags for specifying which
8997 type of output to retrieve.
8998 </desc>
8999 <const name="None" value="0">
9000 <desc>No flags set. Get output from stdout.</desc>
9001 </const>
9002 <const name="StdErr" value="1">
9003 <desc>Get output from stderr.</desc>
9004 </const>
9005 </enum>
9006
9007 <enum
9008 name="ProcessWaitForFlag"
9009 uuid="23b550c7-78e1-437e-98f0-65fd9757bcd2"
9010 >
9011 <desc>
9012 TODO
9013 </desc>
9014
9015 <const name="None" value="0">
9016 <desc>TODO</desc>
9017 </const>
9018 <const name="Start" value="1">
9019 <desc>TODO</desc>
9020 </const>
9021 <const name="Terminate" value="2">
9022 <desc>TODO</desc>
9023 </const>
9024 <const name="StdIn" value="4">
9025 <desc>TODO</desc>
9026 </const>
9027 <const name="StdOut" value="8">
9028 <desc>TODO</desc>
9029 </const>
9030 <const name="StdErr" value="16">
9031 <desc>TODO</desc>
9032 </const>
9033 </enum>
9034
9035 <enum
9036 name="ProcessWaitResult"
9037 uuid="24a4d49f-a7c1-44b0-b01f-5686a316466b"
9038 >
9039 <desc>
9040 TODO
9041 </desc>
9042
9043 <const name="None" value="0">
9044 <desc>TODO</desc>
9045 </const>
9046 <const name="Start" value="1">
9047 <desc>TODO</desc>
9048 </const>
9049 <const name="Terminate" value="2">
9050 <desc>TODO</desc>
9051 </const>
9052 <const name="Status" value="3">
9053 <desc>TODO</desc>
9054 </const>
9055 <const name="Error" value="4">
9056 <desc>TODO</desc>
9057 </const>
9058 <const name="Timeout" value="5">
9059 <desc>TODO</desc>
9060 </const>
9061 <const name="StdIn" value="6">
9062 <desc>TODO</desc>
9063 </const>
9064 <const name="StdOut" value="7">
9065 <desc>TODO</desc>
9066 </const>
9067 <const name="StdErr" value="8">
9068 <desc>TODO</desc>
9069 </const>
9070 <const name="Any" value="9">
9071 <desc>TODO</desc>
9072 </const>
9073 </enum>
9074
9075 <enum
9076 name="CopyFileFlag"
9077 uuid="23f79fdf-738a-493d-b80b-42d607c9b916"
9078 >
9079 <desc>
9080 Host/Guest copy flags. At the moment none of these flags
9081 are implemented.
9082 </desc>
9083 <const name="None" value="0">
9084 <desc>No flag set.</desc>
9085 </const>
9086 <const name="Recursive" value="1">
9087 <desc>Copy directories recursively.</desc>
9088 </const>
9089 <const name="Update" value="2">
9090 <desc>Only copy when the source file is newer than the destination file or when the destination file is missing.</desc>
9091 </const>
9092 <const name="FollowLinks" value="4">
9093 <desc>Follow symbolic links.</desc>
9094 </const>
9095 </enum>
9096
9097 <enum
9098 name="DirectoryCreateFlag"
9099 uuid="bd721b0e-ced5-4f79-b368-249897c32a36"
9100 >
9101 <desc>
9102 Directory creation flags.
9103 </desc>
9104 <const name="None" value="0">
9105 <desc>No flag set.</desc>
9106 </const>
9107 <const name="Parents" value="1">
9108 <desc>No error if existing, make parent directories as needed.</desc>
9109 </const>
9110 </enum>
9111
9112 <enum
9113 name="DirectoryRemoveRecFlag"
9114 uuid="455aabf0-7692-48f6-9061-f21579b65769"
9115 >
9116 <desc>
9117 TODO
9118 </desc>
9119
9120 <const name="None" value="0">
9121 <desc>No flag set.</desc>
9122 </const>
9123 <const name="ContentAndDir" value="1">
9124 <desc>TODO</desc>
9125 </const>
9126 <const name="ContentOnly" value="2">
9127 <desc>TODO</desc>
9128 </const>
9129 </enum>
9130
9131 <enum
9132 name="PathRenameFlag"
9133 uuid="f3baa09f-c758-453d-b91c-c7787d76351d"
9134 >
9135 <desc>
9136 TODO
9137 </desc>
9138
9139 <const name="None" value="0">
9140 <desc>No flag set.</desc>
9141 </const>
9142 <const name="NoReplace" value="1">
9143 <desc>TODO</desc>
9144 </const>
9145 <const name="Replace" value="2">
9146 <desc>TODO</desc>
9147 </const>
9148 <const name="NoSymlinks" value="4">
9149 <desc>TODO</desc>
9150 </const>
9151 </enum>
9152
9153 <enum
9154 name="ProcessCreateFlag"
9155 uuid="35192799-bfde-405d-9bea-c735ab9998e4"
9156 >
9157 <desc>
9158 Guest process execution flags.
9159 </desc>
9160
9161 <const name="None" value="0">
9162 <desc>No flag set.</desc>
9163 </const>
9164 <const name="WaitForProcessStartOnly" value="1">
9165 <desc>Only use the specified timeout value to wait for starting the guest process - the guest
9166 process itself then uses an infinite timeout.</desc>
9167 </const>
9168 <const name="IgnoreOrphanedProcesses" value="2">
9169 <desc>Do not report an error when executed processes are still alive when VBoxService or the guest OS is shutting down.</desc>
9170 </const>
9171 <const name="Hidden" value="4">
9172 <desc>Do not show the started process according to the guest OS guidelines.</desc>
9173 </const>
9174 <const name="NoProfile" value="8">
9175 <desc>Do not use the user's profile data when exeuting a process. Only available for Windows guests.</desc>
9176 </const>
9177 <const name="WaitForStdOut" value="16">
9178 <desc>The guest process waits until all data from stdout is read out.</desc>
9179 </const>
9180 <const name="WaitForStdErr" value="32">
9181 <desc>The guest process waits until all data from stderr is read out.</desc>
9182 </const>
9183 <const name="ExpandArguments" value="64">
9184 <desc>Expands environment variables in process arguments.</desc>
9185 </const>
9186 </enum>
9187
9188 <enum
9189 name="ProcessPriority"
9190 uuid="ee8cac50-e232-49fe-806b-d1214d9c2e49"
9191 >
9192 <desc>
9193 TODO
9194 </desc>
9195
9196 <const name="Invalid" value="0">
9197 <desc>TODO</desc>
9198 </const>
9199 <const name="Default" value="1">
9200 <desc>TODO</desc>
9201 </const>
9202 </enum>
9203
9204 <enum
9205 name="SymlinkType"
9206 uuid="37794668-f8f1-4714-98a5-6f8fa2ed0118"
9207 >
9208 <desc>
9209 TODO
9210 </desc>
9211
9212 <const name="Unknown" value="0">
9213 <desc>TODO</desc>
9214 </const>
9215 <const name="Directory" value="1">
9216 <desc>TODO</desc>
9217 </const>
9218 <const name="File" value="2">
9219 <desc>TODO</desc>
9220 </const>
9221 </enum>
9222
9223 <enum
9224 name="SymlinkReadFlag"
9225 uuid="b7fe2b9d-790e-4b25-8adf-1ca33026931f"
9226 >
9227 <desc>
9228 TODO
9229 </desc>
9230
9231 <const name="None" value="0">
9232 <desc>TODO.</desc>
9233 </const>
9234 <const name="NoSymlinks" value="1">
9235 <desc>TODO</desc>
9236 </const>
9237 </enum>
9238
9239 <enum
9240 name="ProcessStatus"
9241 uuid="4d52368f-5b48-4bfe-b486-acf89139b52f"
9242 >
9243 <desc>
9244 Guest process execution status.
9245 </desc>
9246 <const name="Undefined" value="0">
9247 <desc>Process is in an undefined state.</desc>
9248 </const>
9249
9250 <const name="Starting" value="10">
9251 <desc>TODO</desc>
9252 </const>
9253 <const name="Started" value="100">
9254 <desc>Process has been started.</desc>
9255 </const>
9256 <const name="Paused" value="110">
9257 <desc>TODO</desc>
9258 </const>
9259 <const name="Terminating" value="480">
9260 <desc>TODO</desc>
9261 </const>
9262 <const name="TerminatedNormally" value="500">
9263 <desc>Process terminated normally.</desc>
9264 </const>
9265 <const name="TerminatedSignal" value="510">
9266 <desc>Process terminated via signal.</desc>
9267 </const>
9268 <const name="TerminatedAbnormally" value="511">
9269 <desc>Process terminated abnormally.</desc>
9270 </const>
9271 <const name="TimedOutKilled" value="512">
9272 <desc>Process timed out and was killed.</desc>
9273 </const>
9274 <const name="TimedOutAbnormally" value="513">
9275 <desc>Process timed out and was not killed successfully.</desc>
9276 </const>
9277 <const name="Down" value="600">
9278 <desc>Service/OS is stopping, process was killed.</desc>
9279 </const>
9280 <const name="Error" value="800">
9281 <desc>Something went wrong (error code in flags).</desc>
9282 </const>
9283 </enum>
9284
9285 <enum
9286 name="FsObjType"
9287 uuid="a1ed437c-b3c3-4ca2-b19c-4239d658d5e8"
9288 >
9289 <desc>
9290 TODO
9291 </desc>
9292
9293 <const name="Undefined" value="0">
9294 <desc>TODO</desc>
9295 </const>
9296 <const name="FIFO" value="1">
9297 <desc>TODO</desc>
9298 </const>
9299 <const name="DevChar" value="10">
9300 <desc>TODO</desc>
9301 </const>
9302 <const name="DevBlock" value="11">
9303 <desc>TODO</desc>
9304 </const>
9305 <const name="Directory" value="50">
9306 <desc>TODO</desc>
9307 </const>
9308 <const name="File" value="80">
9309 <desc>TODO</desc>
9310 </const>
9311 <const name="Symlink" value="100">
9312 <desc>TODO</desc>
9313 </const>
9314 <const name="Socket" value="200">
9315 <desc>TODO</desc>
9316 </const>
9317 <const name="Whiteout" value="400">
9318 <desc>TODO</desc>
9319 </const>
9320 </enum>
9321
9322 <enum
9323 name="DragAndDropAction"
9324 uuid="47f3b162-c107-4fcd-bfa7-54b8135c441e"
9325 >
9326 <desc>
9327 Possible actions within an Drag and Drop operation.
9328 </desc>
9329
9330 <const name="Ignore" value="0">
9331 <desc>Do nothing.</desc>
9332 </const>
9333
9334 <const name="Copy" value="1">
9335 <desc>Copy the item to the target.</desc>
9336 </const>
9337
9338 <const name="Move" value="2">
9339 <desc>Move the item to the target.</desc>
9340 </const>
9341
9342 <const name="Link" value="3">
9343 <desc>Link the item from within the target.</desc>
9344 </const>
9345 </enum>
9346
9347 <enum
9348 name="DirectoryOpenFlag"
9349 uuid="5138837a-8fd2-4194-a1b0-08f7bc3949d0"
9350 >
9351 <desc>
9352 Directory open flags.
9353 </desc>
9354 <const name="None" value="0">
9355 <desc>No flag set.</desc>
9356 </const>
9357 <const name="NoSymlinks" value="1">
9358 <desc>Don't allow symbolic links as part of the path.</desc>
9359 </const>
9360 </enum>
9361
9362 <enum
9363 name="GuestDirEntryType"
9364 uuid="6d19d924-1b77-4fc8-b369-a3b2c85c8241"
9365 >
9366 <desc>
9367 Guest directory entry type.
9368 </desc>
9369 <const name="Unknown" value="0">
9370 <desc>Unknown.</desc>
9371 </const>
9372 <const name="Directory" value="4">
9373 <desc>Regular file.</desc>
9374 </const>
9375 <const name="File" value="10">
9376 <desc>Regular file.</desc>
9377 </const>
9378 <const name="Symlink" value="12">
9379 <desc>Symbolic link.</desc>
9380 </const>
9381 </enum>
9382
9383 <interface
9384 name="IGuestDirEntry" extends="$unknown"
9385 uuid="20a66efc-c2f6-4438-826f-38454c04369e"
9386 wsmap="struct"
9387 >
9388 <desc>
9389 Structure representing a directory entry on the guest OS.
9390 </desc>
9391 <attribute name="nodeId" type="long long" readonly="yes">
9392 <desc>The unique identifier (within the guest's file system) of this file system object.</desc>
9393 </attribute>
9394 <attribute name="name" type="wstring" readonly="yes">
9395 <desc>The filename.</desc>
9396 </attribute>
9397 <attribute name="type" type="GuestDirEntryType" readonly="yes">
9398 <desc>The entry type.</desc>
9399 </attribute>
9400 </interface>
9401
9402 <interface
9403 name="IGuestSession" extends="$unknown"
9404 uuid="45aca317-55d7-4b6c-bbec-d053289118b9"
9405 wsmap="managed"
9406 >
9407
9408 <attribute name="user" type="wstring" readonly="yes">
9409 <desc>
9410 TODO
9411 <note>
9412 TODO
9413 </note>
9414 </desc>
9415 </attribute>
9416
9417 <attribute name="domain" type="wstring" readonly="yes">
9418 <desc>
9419 TODO
9420 <note>
9421 TODO
9422 </note>
9423 </desc>
9424 </attribute>
9425
9426 <attribute name="name" type="wstring" readonly="yes">
9427 <desc>
9428 TODO
9429 <note>
9430 TODO
9431 </note>
9432 </desc>
9433 </attribute>
9434
9435 <attribute name="id" type="unsigned long" readonly="yes">
9436 <desc>
9437 TODO
9438 <note>
9439 TODO
9440 </note>
9441 </desc>
9442 </attribute>
9443
9444 <attribute name="timeout" type="unsigned long" readonly="no">
9445 <desc>
9446 TODO
9447 <note>
9448 TODO
9449 </note>
9450 </desc>
9451 </attribute>
9452
9453 <attribute name="environment" type="wstring" safearray="yes">
9454 <desc>
9455 TODO
9456 </desc>
9457 </attribute>
9458
9459 <attribute name="processes" type="IGuestProcess" readonly="yes" safearray="yes">
9460 <desc>
9461 TODO
9462 </desc>
9463 </attribute>
9464
9465 <attribute name="directories" type="IGuestDirectory" readonly="yes" safearray="yes">
9466 <desc>
9467 TODO
9468 </desc>
9469 </attribute>
9470
9471 <attribute name="files" type="IGuestFile" readonly="yes" safearray="yes">
9472 <desc>
9473 TODO
9474 </desc>
9475 </attribute>
9476
9477 <method name="close">
9478 <desc>
9479 TODO
9480
9481 <result name="VBOX_E_NOT_SUPPORTED">
9482 TODO
9483 </result>
9484 </desc>
9485 </method>
9486
9487 <method name="copyFrom">
9488 <desc>
9489 TODO
9490
9491 <result name="VBOX_E_NOT_SUPPORTED">
9492 TODO
9493 </result>
9494 </desc>
9495 <param name="source" type="wstring" dir="in">
9496 <desc>TODO</desc>
9497 </param>
9498 <param name="dest" type="wstring" dir="in">
9499 <desc>TODO</desc>
9500 </param>
9501 <param name="flags" type="CopyFileFlag" dir="in" safearray="yes">
9502 <desc>TODO</desc>
9503 </param>
9504 <param name="progress" type="IProgress" dir="return">
9505 <desc>Progress object to track the operation completion.</desc>
9506 </param>
9507 </method>
9508
9509 <method name="copyTo">
9510 <desc>
9511 TODO
9512
9513 <result name="VBOX_E_NOT_SUPPORTED">
9514 TODO
9515 </result>
9516 </desc>
9517 <param name="source" type="wstring" dir="in">
9518 <desc>TODO</desc>
9519 </param>
9520 <param name="dest" type="wstring" dir="in">
9521 <desc>TODO</desc>
9522 </param>
9523 <param name="flags" type="CopyFileFlag" dir="in" safearray="yes">
9524 <desc>TODO</desc>
9525 </param>
9526 <param name="progress" type="IProgress" dir="return">
9527 <desc>Progress object to track the operation completion.</desc>
9528 </param>
9529 </method>
9530
9531 <method name="directoryCreate">
9532 <desc>
9533 TODO
9534
9535 <result name="VBOX_E_NOT_SUPPORTED">
9536 TODO
9537 </result>
9538 </desc>
9539 <param name="path" type="wstring" dir="in">
9540 <desc>TODO</desc>
9541 </param>
9542 <param name="mode" type="unsigned long" dir="in">
9543 <desc>TODO</desc>
9544 </param>
9545 <param name="flags" type="DirectoryCreateFlag" dir="in" safearray="yes">
9546 <desc>TODO</desc>
9547 </param>
9548 <param name="directory" type="IGuestDirectory" dir="return">
9549 <desc>Optional.</desc>
9550 </param>
9551 </method>
9552
9553 <method name="directoryCreateTemp">
9554 <desc>
9555 TODO
9556
9557 <result name="VBOX_E_NOT_SUPPORTED">
9558 TODO
9559 </result>
9560 </desc>
9561 <param name="templateName" type="wstring" dir="in">
9562 <desc>TODO</desc>
9563 </param>
9564 <param name="mode" type="unsigned long" dir="in">
9565 <desc>TODO</desc>
9566 </param>
9567 <param name="path" type="wstring" dir="in">
9568 <desc>TODO</desc>
9569 </param>
9570 <param name="directory" type="IGuestDirectory" dir="return">
9571 <desc>TODO</desc>
9572 </param>
9573 </method>
9574
9575 <method name="directoryExists">
9576 <desc>
9577 TODO
9578
9579 <result name="VBOX_E_NOT_SUPPORTED">
9580 TODO
9581 </result>
9582 </desc>
9583 <param name="path" type="wstring" dir="in">
9584 <desc>TODO</desc>
9585 </param>
9586 <param name="exists" type="boolean" dir="return">
9587 <desc>TODO</desc>
9588 </param>
9589 </method>
9590
9591 <method name="directoryOpen">
9592 <desc>
9593 TODO
9594
9595 <result name="VBOX_E_NOT_SUPPORTED">
9596 TODO
9597 </result>
9598 </desc>
9599 <param name="path" type="wstring" dir="in">
9600 <desc>TODO</desc>
9601 </param>
9602 <param name="filter" type="wstring" dir="in">
9603 <desc>TODO</desc>
9604 </param>
9605 <param name="flags" type="DirectoryOpenFlag" dir="in" safearray="yes">
9606 <desc>TODO</desc>
9607 </param>
9608 <param name="directory" type="IGuestDirectory" dir="return">
9609 <desc>TODO</desc>
9610 </param>
9611 </method>
9612
9613 <method name="directoryQueryInfo">
9614 <desc>
9615 TODO
9616
9617 <result name="VBOX_E_NOT_SUPPORTED">
9618 TODO
9619 </result>
9620 </desc>
9621 <param name="path" type="wstring" dir="in">
9622 <desc>TODO</desc>
9623 </param>
9624 <param name="info" type="IGuestFsObjInfo" dir="return">
9625 <desc>TODO</desc>
9626 </param>
9627 </method>
9628
9629 <method name="directoryRemove">
9630 <desc>
9631 TODO
9632
9633 <result name="VBOX_E_NOT_SUPPORTED">
9634 TODO
9635 </result>
9636 </desc>
9637 <param name="path" type="wstring" dir="in">
9638 <desc>TODO</desc>
9639 </param>
9640 </method>
9641
9642 <method name="directoryRemoveRecursive">
9643 <desc>
9644 TODO
9645
9646 <result name="VBOX_E_NOT_SUPPORTED">
9647 TODO
9648 </result>
9649 </desc>
9650 <param name="path" type="wstring" dir="in">
9651 <desc>TODO</desc>
9652 </param>
9653 <param name="flags" type="DirectoryRemoveRecFlag" dir="in" safearray="yes">
9654 <desc>TODO</desc>
9655 </param>
9656 <param name="progress" type="IProgress" dir="return">
9657 <desc>TODO</desc>
9658 </param>
9659 </method>
9660
9661 <method name="directoryRename">
9662 <desc>
9663 TODO
9664
9665 <result name="VBOX_E_NOT_SUPPORTED">
9666 TODO
9667 </result>
9668 </desc>
9669 <param name="source" type="wstring" dir="in">
9670 <desc>TODO</desc>
9671 </param>
9672 <param name="dest" type="wstring" dir="in">
9673 <desc>TODO</desc>
9674 </param>
9675 <param name="flags" type="PathRenameFlag" dir="in" safearray="yes">
9676 <desc>TODO</desc>
9677 </param>
9678 </method>
9679
9680 <method name="directorySetACL">
9681 <desc>
9682 TODO
9683
9684 <result name="VBOX_E_NOT_SUPPORTED">
9685 TODO
9686 </result>
9687 </desc>
9688 <param name="path" type="wstring" dir="in">
9689 <desc>TODO</desc>
9690 </param>
9691 <param name="acl" type="wstring" dir="in">
9692 <desc>TODO</desc>
9693 </param>
9694 </method>
9695
9696 <method name="environmentClear">
9697 <desc>
9698 TODO
9699
9700 <result name="VBOX_E_NOT_SUPPORTED">
9701 TODO
9702 </result>
9703 </desc>
9704 </method>
9705
9706 <method name="environmentGet">
9707 <desc>
9708 TODO
9709
9710 <result name="VBOX_E_NOT_SUPPORTED">
9711 TODO
9712 </result>
9713 </desc>
9714 <param name="name" type="wstring" dir="in">
9715 <desc>TODO</desc>
9716 </param>
9717 <param name="value" type="wstring" dir="return">
9718 <desc>TODO</desc>
9719 </param>
9720 </method>
9721
9722 <method name="environmentSet">
9723 <desc>
9724 TODO
9725
9726 <result name="VBOX_E_NOT_SUPPORTED">
9727 TODO
9728 </result>
9729 </desc>
9730 <param name="name" type="wstring" dir="in">
9731 <desc>TODO</desc>
9732 </param>
9733 <param name="value" type="wstring" dir="in">
9734 <desc>TODO</desc>
9735 </param>
9736 </method>
9737
9738 <method name="environmentUnset">
9739 <desc>
9740 TODO
9741
9742 <result name="VBOX_E_NOT_SUPPORTED">
9743 TODO
9744 </result>
9745 </desc>
9746 <param name="name" type="wstring" dir="in">
9747 <desc>TODO</desc>
9748 </param>
9749 </method>
9750
9751 <method name="fileCreateTemp">
9752 <desc>
9753 TODO
9754
9755 <result name="VBOX_E_NOT_SUPPORTED">
9756 TODO
9757 </result>
9758 </desc>
9759 <param name="templateName" type="wstring" dir="in">
9760 <desc>TODO</desc>
9761 </param>
9762 <param name="mode" type="unsigned long" dir="in">
9763 <desc>TODO</desc>
9764 </param>
9765 <param name="path" type="wstring" dir="in">
9766 <desc>TODO</desc>
9767 </param>
9768 <param name="file" type="IGuestFile" dir="return">
9769 <desc>Optional.</desc>
9770 </param>
9771 </method>
9772
9773 <method name="fileExists">
9774 <desc>
9775 TODO
9776
9777 <result name="VBOX_E_NOT_SUPPORTED">
9778 TODO
9779 </result>
9780 </desc>
9781 <param name="path" type="wstring" dir="in">
9782 <desc>TODO</desc>
9783 </param>
9784 <param name="exists" type="boolean" dir="return">
9785 <desc>TODO</desc>
9786 </param>
9787 </method>
9788
9789 <method name="fileRemove">
9790 <desc>
9791 Remove a single file on the guest.
9792
9793 </desc>
9794 <param name="path" type="wstring" dir="in">
9795 <desc>Path to the file to remove.</desc>
9796 </param>
9797 </method>
9798
9799 <method name="fileOpen">
9800 <desc>
9801 TODO
9802
9803 <result name="VBOX_E_NOT_SUPPORTED">
9804 TODO
9805 </result>
9806 </desc>
9807 <param name="path" type="wstring" dir="in">
9808 <desc>TODO</desc>
9809 </param>
9810 <param name="openMode" type="wstring" dir="in">
9811 <desc>TODO</desc>
9812 </param>
9813 <param name="disposition" type="wstring" dir="in">
9814 <desc>TODO</desc>
9815 </param>
9816 <param name="creationMode" type="unsigned long" dir="in">
9817 <desc>TODO</desc>
9818 </param>
9819 <param name="offset" type="long long" dir="in">
9820 <desc>TODO</desc>
9821 </param>
9822 <param name="file" type="IGuestFile" dir="return">
9823 <desc>TODO</desc>
9824 </param>
9825 </method>
9826
9827 <method name="fileQueryInfo">
9828 <desc>
9829 TODO
9830
9831 <result name="VBOX_E_NOT_SUPPORTED">
9832 TODO
9833 </result>
9834 </desc>
9835 <param name="path" type="wstring" dir="in">
9836 <desc>TODO</desc>
9837 </param>
9838 <param name="info" type="IGuestFsObjInfo" dir="return">
9839 <desc>TODO</desc>
9840 </param>
9841 </method>
9842
9843 <method name="fileQuerySize">
9844 <desc>
9845 TODO
9846
9847 <result name="VBOX_E_NOT_SUPPORTED">
9848 TODO
9849 </result>
9850 </desc>
9851 <param name="path" type="wstring" dir="in">
9852 <desc>TODO</desc>
9853 </param>
9854 <param name="size" type="long long" dir="return">
9855 <desc>TODO</desc>
9856 </param>
9857 </method>
9858
9859 <method name="fileRename">
9860 <desc>
9861 TODO
9862
9863 <result name="VBOX_E_NOT_SUPPORTED">
9864 TODO
9865 </result>
9866 </desc>
9867 <param name="source" type="wstring" dir="in">
9868 <desc>TODO</desc>
9869 </param>
9870 <param name="dest" type="wstring" dir="in">
9871 <desc>TODO</desc>
9872 </param>
9873 <param name="flags" type="PathRenameFlag" dir="in" safearray="yes">
9874 <desc>TODO</desc>
9875 </param>
9876 </method>
9877
9878 <method name="fileSetACL">
9879 <desc>
9880 TODO
9881
9882 <result name="VBOX_E_NOT_SUPPORTED">
9883 TODO
9884 </result>
9885 </desc>
9886 <param name="file" type="wstring" dir="in">
9887 <desc>TODO</desc>
9888 </param>
9889 <param name="acl" type="wstring" dir="in">
9890 <desc>TODO</desc>
9891 </param>
9892 </method>
9893
9894 <method name="processCreate">
9895 <desc>
9896 TODO
9897
9898 <result name="VBOX_E_NOT_SUPPORTED">
9899 TODO
9900 </result>
9901 </desc>
9902 <param name="command" type="wstring" dir="in">
9903 <desc>TODO</desc>
9904 </param>
9905 <param name="arguments" type="wstring" dir="in" safearray="yes">
9906 <desc>TODO</desc>
9907 </param>
9908 <param name="environment" type="wstring" dir="in" safearray="yes">
9909 <desc>TODO</desc>
9910 </param>
9911 <param name="flags" type="ProcessCreateFlag" dir="in" safearray="yes">
9912 <desc>TODO</desc>
9913 </param>
9914 <param name="timeoutMS" type="unsigned long" dir="in">
9915 <desc>TODO</desc>
9916 </param>
9917 <param name="guestProcess" type="IGuestProcess" dir="return">
9918 <desc>TODO</desc>
9919 </param>
9920 </method>
9921
9922 <method name="processCreateEx">
9923 <desc>
9924 TODO
9925
9926 <result name="VBOX_E_NOT_SUPPORTED">
9927 TODO
9928 </result>
9929 </desc>
9930 <param name="command" type="wstring" dir="in">
9931 <desc>TODO</desc>
9932 </param>
9933 <param name="arguments" type="wstring" dir="in" safearray="yes">
9934 <desc>TODO</desc>
9935 </param>
9936 <param name="environment" type="wstring" dir="in" safearray="yes">
9937 <desc>TODO</desc>
9938 </param>
9939 <param name="flags" type="ProcessCreateFlag" dir="in" safearray="yes">
9940 <desc>TODO</desc>
9941 </param>
9942 <param name="timeoutMS" type="unsigned long" dir="in">
9943 <desc>TODO</desc>
9944 </param>
9945 <param name="priority" type="ProcessPriority" dir="in">
9946 <desc>TODO</desc>
9947 </param>
9948 <param name="affinity" type="long" dir="in" safearray="yes">
9949 <desc>TODO</desc>
9950 </param>
9951 <param name="guestProcess" type="IGuestProcess" dir="return">
9952 <desc>TODO</desc>
9953 </param>
9954 </method>
9955
9956 <method name="processGet">
9957 <desc>
9958 TODO
9959
9960 <result name="VBOX_E_NOT_SUPPORTED">
9961 TODO
9962 </result>
9963 </desc>
9964 <param name="pid" type="unsigned long" dir="in">
9965 <desc>TODO</desc>
9966 </param>
9967 <param name="guestProcess" type="IGuestProcess" dir="return">
9968 <desc>TODO</desc>
9969 </param>
9970 </method>
9971
9972 <method name="symlinkCreate">
9973 <desc>
9974 TODO
9975
9976 <result name="VBOX_E_NOT_SUPPORTED">
9977 TODO
9978 </result>
9979 </desc>
9980 <param name="source" type="wstring" dir="in">
9981 <desc>TODO</desc>
9982 </param>
9983 <param name="target" type="wstring" dir="in">
9984 <desc>TODO</desc>
9985 </param>
9986 <param name="type" type="SymlinkType" dir="in">
9987 <desc>TODO</desc>
9988 </param>
9989 </method>
9990
9991 <method name="symlinkExists">
9992 <desc>
9993 TODO
9994
9995 <result name="VBOX_E_NOT_SUPPORTED">
9996 TODO
9997 </result>
9998 </desc>
9999 <param name="symlink" type="wstring" dir="in">
10000 <desc>TODO</desc>
10001 </param>
10002 <param name="exists" type="boolean" dir="return">
10003 <desc>TODO</desc>
10004 </param>
10005 </method>
10006
10007 <method name="symlinkRead">
10008 <desc>
10009 TODO
10010
10011 <result name="VBOX_E_NOT_SUPPORTED">
10012 TODO
10013 </result>
10014 </desc>
10015 <param name="symlink" type="wstring" dir="in">
10016 <desc>TODO</desc>
10017 </param>
10018 <param name="flags" type="SymlinkReadFlag" dir="in" safearray="yes">
10019 <desc>TODO</desc>
10020 </param>
10021 <param name="target" type="wstring" dir="return">
10022 <desc>TODO</desc>
10023 </param>
10024 </method>
10025
10026 <method name="symlinkRemoveDirectory">
10027 <desc>
10028 TODO
10029
10030 <result name="VBOX_E_NOT_SUPPORTED">
10031 TODO
10032 </result>
10033 </desc>
10034 <param name="path" type="wstring" dir="in">
10035 <desc>TODO</desc>
10036 </param>
10037 </method>
10038
10039 <method name="symlinkRemoveFile">
10040 <desc>
10041 TODO
10042
10043 <result name="VBOX_E_NOT_SUPPORTED">
10044 TODO
10045 </result>
10046 </desc>
10047 <param name="file" type="wstring" dir="in">
10048 <desc>TODO</desc>
10049 </param>
10050 </method>
10051
10052 </interface>
10053
10054 <interface
10055 name="IProcess" extends="$unknown"
10056 uuid="896df50a-c5d1-4892-8bc6-b78d0c1f4e33"
10057 wsmap="managed"
10058 >
10059 <desc>
10060 TODO
10061 </desc>
10062 <attribute name="PID" type="unsigned long" readonly="yes">
10063 <desc>
10064 TODO
10065 <note>
10066 TODO
10067 </note>
10068 </desc>
10069 </attribute>
10070 <attribute name="status" type="ProcessStatus" readonly="yes">
10071 <desc>
10072 TODO
10073 <note>
10074 TODO
10075 </note>
10076 </desc>
10077 </attribute>
10078 <attribute name="exitCode" type="long" readonly="yes">
10079 <desc>
10080 TODO
10081 <note>
10082 TODO
10083 </note>
10084 </desc>
10085 </attribute>
10086 <attribute name="environment" type="wstring" readonly="yes" safearray="yes">
10087 <desc>
10088 TODO
10089 <note>
10090 TODO
10091 </note>
10092 </desc>
10093 </attribute>
10094 <attribute name="arguments" type="wstring" readonly="yes" safearray="yes">
10095 <desc>
10096 TODO
10097 <note>
10098 TODO
10099 </note>
10100 </desc>
10101 </attribute>
10102 <attribute name="executablePath" type="wstring" readonly="yes">
10103 <desc>
10104 TODO
10105 <note>
10106 TODO
10107 </note>
10108 </desc>
10109 </attribute>
10110 <attribute name="name" type="wstring" readonly="yes">
10111 <desc>
10112 TODO
10113 <note>
10114 TODO
10115 </note>
10116 </desc>
10117 </attribute>
10118
10119 <method name="waitFor">
10120 <desc>
10121 TODO
10122
10123 <result name="VBOX_E_NOT_SUPPORTED">
10124 TODO
10125 </result>
10126 </desc>
10127 <param name="waitFor" type="unsigned long" dir="in">
10128 <desc>TODO</desc>
10129 </param>
10130 <param name="timeoutMS" type="unsigned long" dir="in">
10131 <desc>TODO</desc>
10132 </param>
10133 <param name="reason" type="ProcessWaitResult" dir="return">
10134 <desc>TODO</desc>
10135 </param>
10136 </method>
10137
10138 <method name="waitForArray">
10139 <desc>
10140 Scriptable version of <link to="#waitFor" />.
10141
10142 <result name="VBOX_E_NOT_SUPPORTED">
10143 TODO
10144 </result>
10145 </desc>
10146 <param name="waitFor" type="ProcessWaitForFlag" dir="in" safearray="yes">
10147 <desc>TODO</desc>
10148 </param>
10149 <param name="timeoutMS" type="unsigned long" dir="in">
10150 <desc>TODO</desc>
10151 </param>
10152 <param name="reason" type="ProcessWaitResult" dir="return">
10153 <desc>TODO</desc>
10154 </param>
10155 </method>
10156
10157 <method name="read">
10158 <desc>
10159 TODO
10160
10161 <result name="VBOX_E_NOT_SUPPORTED">
10162 TODO
10163 </result>
10164 </desc>
10165 <param name="handle" type="unsigned long" dir="in">
10166 <desc>TODO</desc>
10167 </param>
10168 <param name="size" type="unsigned long" dir="in">
10169 <desc>TODO</desc>
10170 </param>
10171 <param name="timeoutMS" type="unsigned long" dir="in">
10172 <desc>TODO</desc>
10173 </param>
10174 <param name="data" type="octet" dir="return" safearray="yes">
10175 <desc>TODO</desc>
10176 </param>
10177 </method>
10178
10179 <method name="write">
10180 <desc>
10181 TODO
10182
10183 <result name="VBOX_E_NOT_SUPPORTED">
10184 TODO
10185 </result>
10186 </desc>
10187 <param name="handle" type="unsigned long" dir="in">
10188 <desc>TODO</desc>
10189 </param>
10190 <param name="flags" type="unsigned long" dir="in">
10191 <desc>
10192 <link to="ProcessInputFlag"/> flags.
10193 </desc>
10194 </param>
10195 <param name="data" type="octet" dir="in" safearray="yes">
10196 <desc>TODO</desc>
10197 </param>
10198 <param name="timeoutMS" type="unsigned long" dir="in">
10199 <desc>TODO</desc>
10200 </param>
10201 <param name="written" type="unsigned long" dir="return">
10202 <desc>TODO</desc>
10203 </param>
10204 </method>
10205
10206 <method name="WriteArray">
10207 <desc>
10208 TODO
10209
10210 <result name="VBOX_E_NOT_SUPPORTED">
10211 TODO
10212 </result>
10213 </desc>
10214 <param name="handle" type="unsigned long" dir="in">
10215 <desc>TODO</desc>
10216 </param>
10217 <param name="flags" type="ProcessInputFlag" dir="in" safearray="yes">
10218 <desc>
10219 <link to="ProcessInputFlag"/> flags.
10220 </desc>
10221 </param>
10222 <param name="data" type="octet" dir="in" safearray="yes">
10223 <desc>TODO</desc>
10224 </param>
10225 <param name="timeoutMS" type="unsigned long" dir="in">
10226 <desc>TODO</desc>
10227 </param>
10228 <param name="written" type="unsigned long" dir="return">
10229 <desc>TODO</desc>
10230 </param>
10231 </method>
10232
10233 <method name="terminate">
10234 <desc>
10235 TODO
10236
10237 <result name="VBOX_E_NOT_SUPPORTED">
10238 TODO
10239 </result>
10240 </desc>
10241 </method>
10242 </interface>
10243
10244 <interface
10245 name="IGuestProcess" extends="IProcess"
10246 uuid="dfa39a36-5d43-4840-a025-67ea956b3111"
10247 wsmap="managed"
10248 >
10249 <desc>
10250 TODO
10251 </desc>
10252 </interface>
10253
10254 <interface
10255 name="IDirectory" extends="$unknown"
10256 uuid="1b70dd03-26d7-483a-8877-89bbb0f87b70"
10257 wsmap="managed"
10258 >
10259 <desc>
10260 TODO
10261 </desc>
10262
10263 <attribute name="directoryName" type="wstring" readonly="yes">
10264 <desc>
10265 Full path of directory.
10266 <note>
10267 TODO
10268 </note>
10269 </desc>
10270 </attribute>
10271
10272 <attribute name="filter" type="wstring" readonly="yes">
10273 <desc>
10274 The open filter.
10275 <note>
10276 TODO
10277 </note>
10278 </desc>
10279 </attribute>
10280
10281 <method name="close">
10282 <desc>
10283 TODO
10284
10285 <result name="VBOX_E_NOT_SUPPORTED">
10286 TODO
10287 </result>
10288 </desc>
10289 </method>
10290
10291 <method name="read">
10292 <desc>
10293 TODO
10294
10295 <result name="VBOX_E_OBJECT_NOT_FOUND">
10296 End of directory listing reached.
10297 </result>
10298 </desc>
10299 <param name="objInfo" type="IFsObjInfo" dir="return">
10300 <desc>TODO</desc>
10301 </param>
10302 </method>
10303 </interface>
10304
10305 <interface
10306 name="IGuestDirectory" extends="IDirectory"
10307 uuid="af4a8ce0-0725-42b7-8826-46e3c7ba7357"
10308 wsmap="managed"
10309 >
10310 <desc>
10311 TODO
10312 </desc>
10313 </interface>
10314
10315 <interface
10316 name="IFile" extends="$unknown"
10317 uuid="b3484293-b98b-4952-ae23-f18eca6a5ff9"
10318 wsmap="managed"
10319 >
10320 <desc>
10321 TODO
10322 </desc>
10323 <attribute name="creationMode" type="unsigned long" readonly="yes">
10324 <desc>
10325 TODO
10326 <note>
10327 TODO
10328 </note>
10329 </desc>
10330 </attribute>
10331 <attribute name="disposition" type="unsigned long" readonly="yes">
10332 <desc>
10333 TODO
10334 <note>
10335 TODO
10336 </note>
10337 </desc>
10338 </attribute>
10339 <attribute name="fileName" type="wstring" readonly="yes">
10340 <desc>
10341 TODO
10342 <note>
10343 TODO
10344 </note>
10345 </desc>
10346 </attribute>
10347 <attribute name="initialSize" type="long long" readonly="yes">
10348 <desc>
10349 TODO
10350 <note>
10351 TODO
10352 </note>
10353 </desc>
10354 </attribute>
10355 <attribute name="openMode" type="unsigned long" readonly="yes">
10356 <desc>
10357 TODO
10358 <note>
10359 TODO
10360 </note>
10361 </desc>
10362 </attribute>
10363 <attribute name="offset" type="long long" readonly="yes">
10364 <desc>
10365 TODO
10366 <note>
10367 TODO
10368 </note>
10369 </desc>
10370 </attribute>
10371
10372 <method name="close">
10373 <desc>
10374 TODO
10375
10376 <result name="VBOX_E_NOT_SUPPORTED">
10377 TODO
10378 </result>
10379 </desc>
10380 </method>
10381
10382 <method name="queryInfo">
10383 <desc>
10384 TODO
10385
10386 <result name="VBOX_E_NOT_SUPPORTED">
10387 TODO
10388 </result>
10389 </desc>
10390 <param name="objInfo" type="IFsObjInfo" dir="return">
10391 <desc>TODO</desc>
10392 </param>
10393 </method>
10394
10395 <method name="read">
10396 <desc>
10397 TODO
10398
10399 <result name="VBOX_E_NOT_SUPPORTED">
10400 TODO
10401 </result>
10402 </desc>
10403 <param name="toRead" type="unsigned long" dir="in">
10404 <desc>TODO</desc>
10405 </param>
10406 <param name="read" type="unsigned long" dir="out">
10407 <desc>TODO</desc>
10408 </param>
10409 <param name="data" type="octet" dir="return" safearray="yes">
10410 <desc>TODO</desc>
10411 </param>
10412 </method>
10413
10414 <method name="readAt">
10415 <desc>
10416 TODO
10417
10418 <result name="VBOX_E_NOT_SUPPORTED">
10419 TODO
10420 </result>
10421 </desc>
10422 <param name="offset" type="long long" dir="in">
10423 <desc>TODO</desc>
10424 </param>
10425 <param name="toRead" type="unsigned long" dir="in">
10426 <desc>TODO</desc>
10427 </param>
10428 <param name="read" type="unsigned long" dir="out">
10429 <desc>TODO</desc>
10430 </param>
10431 <param name="data" type="octet" dir="return" safearray="yes">
10432 <desc>TODO</desc>
10433 </param>
10434 </method>
10435
10436 <method name="seek">
10437 <desc>
10438 TODO
10439
10440 <result name="VBOX_E_NOT_SUPPORTED">
10441 TODO
10442 </result>
10443 </desc>
10444 <param name="offset" type="long long" dir="in">
10445 <desc>TODO</desc>
10446 </param>
10447 <param name="whence" type="FileSeekType" dir="in">
10448 <desc>TODO</desc>
10449 </param>
10450 </method>
10451
10452 <method name="setACL">
10453 <desc>
10454 TODO
10455
10456 <result name="VBOX_E_NOT_SUPPORTED">
10457 TODO
10458 </result>
10459 </desc>
10460 <param name="acl" type="wstring" dir="in">
10461 <desc>TODO</desc>
10462 </param>
10463 </method>
10464
10465 <method name="write">
10466 <desc>
10467 TODO
10468
10469 <result name="VBOX_E_NOT_SUPPORTED">
10470 TODO
10471 </result>
10472 </desc>
10473 <param name="data" type="octet" dir="in" safearray="yes">
10474 <desc>TODO</desc>
10475 </param>
10476 <param name="written" type="unsigned long" dir="return">
10477 <desc>TODO</desc>
10478 </param>
10479 </method>
10480
10481 <method name="writeAt">
10482 <desc>
10483 TODO
10484
10485 <result name="VBOX_E_NOT_SUPPORTED">
10486 TODO
10487 </result>
10488 </desc>
10489 <param name="offset" type="long long" dir="in">
10490 <desc>TODO</desc>
10491 </param>
10492 <param name="data" type="octet" dir="in" safearray="yes">
10493 <desc>TODO</desc>
10494 </param>
10495 <param name="written" type="unsigned long" dir="return">
10496 <desc>TODO</desc>
10497 </param>
10498 </method>
10499
10500 </interface>
10501
10502 <interface
10503 name="IGuestFile" extends="IFile"
10504 uuid="60661aec-145f-4d11-b80e-8ea151598093"
10505 wsmap="managed"
10506 >
10507 <desc>
10508 TODO
10509 </desc>
10510 </interface>
10511
10512 <interface
10513 name="IFsObjInfo" extends="$unknown"
10514 uuid="4047ba30-7006-4966-ae86-94164e5e20eb"
10515 wsmap="managed"
10516 >
10517 <desc>
10518 TODO
10519 </desc>
10520
10521 <attribute name="accessTime" type="long long" readonly="yes">
10522 <desc>
10523 TODO
10524 <note>
10525 TODO
10526 </note>
10527 </desc>
10528 </attribute>
10529 <attribute name="allocatedSize" type="long long" readonly="yes">
10530 <desc>
10531 TODO
10532 <note>
10533 TODO
10534 </note>
10535 </desc>
10536 </attribute>
10537 <attribute name="birthTime" type="long long" readonly="yes">
10538 <desc>
10539 TODO
10540 <note>
10541 TODO
10542 </note>
10543 </desc>
10544 </attribute>
10545 <attribute name="changeTime" type="long long" readonly="yes">
10546 <desc>
10547 TODO
10548 <note>
10549 TODO
10550 </note>
10551 </desc>
10552 </attribute>
10553 <attribute name="deviceNumber" type="unsigned long" readonly="yes">
10554 <desc>
10555 TODO
10556 <note>
10557 TODO
10558 </note>
10559 </desc>
10560 </attribute>
10561 <attribute name="fileAttributes" type="wstring" readonly="yes">
10562 <desc>
10563 TODO
10564 <note>
10565 TODO
10566 </note>
10567 </desc>
10568 </attribute>
10569 <attribute name="generationId" type="unsigned long" readonly="yes">
10570 <desc>
10571 TODO
10572 <note>
10573 TODO
10574 </note>
10575 </desc>
10576 </attribute>
10577 <attribute name="GID" type="unsigned long" readonly="yes">
10578 <desc>
10579 TODO
10580 <note>
10581 TODO
10582 </note>
10583 </desc>
10584 </attribute>
10585 <attribute name="groupName" type="wstring" readonly="yes">
10586 <desc>
10587 TODO
10588 <note>
10589 TODO
10590 </note>
10591 </desc>
10592 </attribute>
10593 <attribute name="hardLinks" type="unsigned long" readonly="yes">
10594 <desc>
10595 TODO
10596 <note>
10597 TODO
10598 </note>
10599 </desc>
10600 </attribute>
10601 <attribute name="modificationTime" type="long long" readonly="yes">
10602 <desc>
10603 TODO
10604 <note>
10605 TODO
10606 </note>
10607 </desc>
10608 </attribute>
10609 <attribute name="name" type="wstring" readonly="yes">
10610 <desc>
10611 TODO
10612 <note>
10613 TODO
10614 </note>
10615 </desc>
10616 </attribute>
10617 <attribute name="nodeId" type="long long" readonly="yes">
10618 <desc>
10619 TODO
10620 <note>
10621 TODO
10622 </note>
10623 </desc>
10624 </attribute>
10625 <attribute name="nodeIdDevice" type="unsigned long" readonly="yes">
10626 <desc>
10627 TODO
10628 <note>
10629 TODO
10630 </note>
10631 </desc>
10632 </attribute>
10633 <attribute name="objectSize" type="long long" readonly="yes">
10634 <desc>
10635 TODO
10636 <note>
10637 TODO
10638 </note>
10639 </desc>
10640 </attribute>
10641 <attribute name="type" type="FsObjType" readonly="yes">
10642 <desc>
10643 TODO
10644 <note>
10645 TODO
10646 </note>
10647 </desc>
10648 </attribute>
10649 <attribute name="UID" type="unsigned long" readonly="yes">
10650 <desc>
10651 TODO
10652 <note>
10653 TODO
10654 </note>
10655 </desc>
10656 </attribute>
10657 <attribute name="userFlags" type="unsigned long" readonly="yes">
10658 <desc>
10659 TODO
10660 <note>
10661 TODO
10662 </note>
10663 </desc>
10664 </attribute>
10665 <attribute name="userName" type="wstring" readonly="yes">
10666 <desc>
10667 TODO
10668 <note>
10669 TODO
10670 </note>
10671 </desc>
10672 </attribute>
10673
10674 </interface>
10675
10676 <interface
10677 name="IGuestFsObjInfo" extends="IFsObjInfo"
10678 uuid="d5cf678e-3484-4e4a-ac55-329e15462e18"
10679 wsmap="managed"
10680 >
10681 <desc>
10682 TODO
10683 </desc>
10684 </interface>
10685
10686 <interface
10687 name="IGuest" extends="$unknown"
10688 uuid="19c32350-0618-4ede-b0c3-2b4311bf0d9b"
10689 wsmap="managed"
10690 >
10691 <desc>
10692 The IGuest interface represents information about the operating system
10693 running inside the virtual machine. Used in
10694 <link to="IConsole::guest"/>.
10695
10696 IGuest provides information about the guest operating system, whether
10697 Guest Additions are installed and other OS-specific virtual machine
10698 properties.
10699 </desc>
10700
10701 <attribute name="OSTypeId" type="wstring" readonly="yes">
10702 <desc>
10703 Identifier of the Guest OS type as reported by the Guest
10704 Additions.
10705 You may use <link to="IVirtualBox::getGuestOSType"/> to obtain
10706 an IGuestOSType object representing details about the given
10707 Guest OS type.
10708 <note>
10709 If Guest Additions are not installed, this value will be
10710 the same as <link to="IMachine::OSTypeId"/>.
10711 </note>
10712 </desc>
10713 </attribute>
10714
10715 <attribute name="additionsRunLevel" type="AdditionsRunLevelType" readonly="yes">
10716 <desc>
10717 Current run level of the Guest Additions.
10718 </desc>
10719 </attribute>
10720
10721 <attribute name="additionsVersion" type="wstring" readonly="yes">
10722 <desc>
10723 Version of the Guest Additions in the same format as
10724 <link to="IVirtualBox::version"/>.
10725 </desc>
10726 </attribute>
10727
10728 <attribute name="additionsRevision" type="unsigned long" readonly="yes">
10729 <desc>
10730 The internal build revision number of the additions.
10731
10732 See also <link to="IVirtualBox::revision"/>.
10733 </desc>
10734 </attribute>
10735
10736 <attribute name="facilities" type="IAdditionsFacility" readonly="yes" safearray="yes">
10737 <desc>
10738 Array of current known facilities. Only returns facilities where a status is known,
10739 e.g. facilities with an unknown status will not be returned.
10740 </desc>
10741 </attribute>
10742
10743 <attribute name="sessions" type="IGuestSession" readonly="yes" safearray="yes">
10744 <desc>TODO</desc>
10745 </attribute>
10746
10747 <attribute name="memoryBalloonSize" type="unsigned long">
10748 <desc>Guest system memory balloon size in megabytes (transient property).</desc>
10749 </attribute>
10750
10751 <attribute name="statisticsUpdateInterval" type="unsigned long">
10752 <desc>Interval to update guest statistics in seconds.</desc>
10753 </attribute>
10754
10755 <method name="internalGetStatistics">
10756 <desc>
10757 Internal method; do not use as it might change at any time.
10758 </desc>
10759 <param name="cpuUser" type="unsigned long" dir="out">
10760 <desc>Percentage of processor time spent in user mode as seen by the guest.</desc>
10761 </param>
10762 <param name="cpuKernel" type="unsigned long" dir="out">
10763 <desc>Percentage of processor time spent in kernel mode as seen by the guest.</desc>
10764 </param>
10765 <param name="cpuIdle" type="unsigned long" dir="out">
10766 <desc>Percentage of processor time spent idling as seen by the guest.</desc>
10767 </param>
10768 <param name="memTotal" type="unsigned long" dir="out">
10769 <desc>Total amount of physical guest RAM.</desc>
10770 </param>
10771 <param name="memFree" type="unsigned long" dir="out">
10772 <desc>Free amount of physical guest RAM.</desc>
10773 </param>
10774 <param name="memBalloon" type="unsigned long" dir="out">
10775 <desc>Amount of ballooned physical guest RAM.</desc>
10776 </param>
10777 <param name="memShared" type="unsigned long" dir="out">
10778 <desc>Amount of shared physical guest RAM.</desc>
10779 </param>
10780 <param name="memCache" type="unsigned long" dir="out">
10781 <desc>Total amount of guest (disk) cache memory.</desc>
10782 </param>
10783 <param name="pagedTotal" type="unsigned long" dir="out">
10784 <desc>Total amount of space in the page file.</desc>
10785 </param>
10786 <param name="memAllocTotal" type="unsigned long" dir="out">
10787 <desc>Total amount of memory allocated by the hypervisor.</desc>
10788 </param>
10789 <param name="memFreeTotal" type="unsigned long" dir="out">
10790 <desc>Total amount of free memory available in the hypervisor.</desc>
10791 </param>
10792 <param name="memBalloonTotal" type="unsigned long" dir="out">
10793 <desc>Total amount of memory ballooned by the hypervisor.</desc>
10794 </param>
10795 <param name="memSharedTotal" type="unsigned long" dir="out">
10796 <desc>Total amount of shared memory in the hypervisor.</desc>
10797 </param>
10798 </method>
10799
10800 <method name="getFacilityStatus">
10801 <desc>
10802 Get the current status of a Guest Additions facility.
10803 </desc>
10804 <param name="facility" type="AdditionsFacilityType" dir="in">
10805 <desc>Facility to check status for.</desc>
10806 </param>
10807 <param name="timestamp" type="long long" dir="out">
10808 <desc>Timestamp (in ms) of last status update seen by the host.</desc>
10809 </param>
10810 <param name="status" type="AdditionsFacilityStatus" dir="return">
10811 <desc>The current (latest) facility status.</desc>
10812 </param>
10813 </method>
10814
10815 <method name="getAdditionsStatus">
10816 <desc>
10817 Retrieve the current status of a certain Guest Additions run level.
10818
10819 <result name="VBOX_E_NOT_SUPPORTED">
10820 Wrong status level specified.
10821 </result>
10822
10823 </desc>
10824 <param name="level" type="AdditionsRunLevelType" dir="in">
10825 <desc>Status level to check</desc>
10826 </param>
10827 <param name="active" type="boolean" dir="return">
10828 <desc>Flag whether the status level has been reached or not</desc>
10829 </param>
10830 </method>
10831
10832 <method name="setCredentials">
10833 <desc>
10834 Store login credentials that can be queried by guest operating
10835 systems with Additions installed. The credentials are transient
10836 to the session and the guest may also choose to erase them. Note
10837 that the caller cannot determine whether the guest operating system
10838 has queried or made use of the credentials.
10839
10840 <result name="VBOX_E_VM_ERROR">
10841 VMM device is not available.
10842 </result>
10843
10844 </desc>
10845 <param name="userName" type="wstring" dir="in">
10846 <desc>User name string, can be empty</desc>
10847 </param>
10848 <param name="password" type="wstring" dir="in">
10849 <desc>Password string, can be empty</desc>
10850 </param>
10851 <param name="domain" type="wstring" dir="in">
10852 <desc>Domain name (guest logon scheme specific), can be empty</desc>
10853 </param>
10854 <param name="allowInteractiveLogon" type="boolean" dir="in">
10855 <desc>
10856 Flag whether the guest should alternatively allow the user to
10857 interactively specify different credentials. This flag might
10858 not be supported by all versions of the Additions.
10859 </desc>
10860 </param>
10861 </method>
10862
10863 <method name="dragHGEnter">
10864 <desc>
10865 Informs the guest about a Drag and Drop enter event.
10866
10867 This is used in Host - Guest direction.
10868
10869 <result name="VBOX_E_VM_ERROR">
10870 VMM device is not available.
10871 </result>
10872
10873 </desc>
10874 <param name="screenId" type="unsigned long" dir="in">
10875 <desc>The screen id where the Drag and Drop event occured.</desc>
10876 </param>
10877 <param name="y" type="unsigned long" dir="in">
10878 <desc>y-position of the event.</desc>
10879 </param>
10880 <param name="x" type="unsigned long" dir="in">
10881 <desc>x-position of the event.</desc>
10882 </param>
10883 <param name="defaultAction" type="DragAndDropAction" dir="in">
10884 <desc>The default action to use.</desc>
10885 </param>
10886 <param name="allowedActions" type="DragAndDropAction" dir="in" safearray="yes">
10887 <desc>The actions which are allowed.</desc>
10888 </param>
10889 <param name="formats" type="wstring" dir="in" safearray="yes">
10890 <desc>The supported mime types.</desc>
10891 </param>
10892 <param name="resultAction" type="DragAndDropAction" dir="return">
10893 <desc>The resulting action of this event.</desc>
10894 </param>
10895 </method>
10896
10897 <method name="dragHGMove">
10898 <desc>
10899 Informs the guest about a Drag and Drop move event.
10900
10901 This is used in Host - Guest direction.
10902
10903 <result name="VBOX_E_VM_ERROR">
10904 VMM device is not available.
10905 </result>
10906
10907 </desc>
10908 <param name="screenId" type="unsigned long" dir="in">
10909 <desc>The screen id where the Drag and Drop event occured.</desc>
10910 </param>
10911 <param name="x" type="unsigned long" dir="in">
10912 <desc>x-position of the event.</desc>
10913 </param>
10914 <param name="y" type="unsigned long" dir="in">
10915 <desc>y-position of the event.</desc>
10916 </param>
10917 <param name="defaultAction" type="DragAndDropAction" dir="in">
10918 <desc>The default action to use.</desc>
10919 </param>
10920 <param name="allowedActions" type="DragAndDropAction" dir="in" safearray="yes">
10921 <desc>The actions which are allowed.</desc>
10922 </param>
10923 <param name="formats" type="wstring" dir="in" safearray="yes">
10924 <desc>The supported mime types.</desc>
10925 </param>
10926 <param name="resultAction" type="DragAndDropAction" dir="return">
10927 <desc>The resulting action of this event.</desc>
10928 </param>
10929 </method>
10930
10931 <method name="dragHGLeave">
10932 <desc>
10933 Informs the guest about a Drag and Drop leave event.
10934
10935 This is used in Host - Guest direction.
10936
10937 <result name="VBOX_E_VM_ERROR">
10938 VMM device is not available.
10939 </result>
10940
10941 </desc>
10942 <param name="screenId" type="unsigned long" dir="in">
10943 <desc>The screen id where the Drag and Drop event occured.</desc>
10944 </param>
10945 </method>
10946
10947 <method name="dragHGDrop">
10948 <desc>
10949 Informs the guest about a drop event.
10950
10951 This is used in Host - Guest direction.
10952
10953 <result name="VBOX_E_VM_ERROR">
10954 VMM device is not available.
10955 </result>
10956
10957 </desc>
10958 <param name="screenId" type="unsigned long" dir="in">
10959 <desc>The screen id where the Drag and Drop event occured.</desc>
10960 </param>
10961 <param name="x" type="unsigned long" dir="in">
10962 <desc>x-position of the event.</desc>
10963 </param>
10964 <param name="y" type="unsigned long" dir="in">
10965 <desc>y-position of the event.</desc>
10966 </param>
10967 <param name="defaultAction" type="DragAndDropAction" dir="in">
10968 <desc>The default action to use.</desc>
10969 </param>
10970 <param name="allowedActions" type="DragAndDropAction" dir="in" safearray="yes">
10971 <desc>The actions which are allowed.</desc>
10972 </param>
10973 <param name="formats" type="wstring" dir="in" safearray="yes">
10974 <desc>The supported mime types.</desc>
10975 </param>
10976 <param name="format" type="wstring" dir="out">
10977 <desc>The resulting format of this event.</desc>
10978 </param>
10979 <param name="resultAction" type="DragAndDropAction" dir="return">
10980 <desc>The resulting action of this event.</desc>
10981 </param>
10982 </method>
10983
10984 <method name="dragHGPutData">
10985 <desc>
10986 Informs the guest about a drop data event.
10987
10988 This is used in Host - Guest direction.
10989
10990 <result name="VBOX_E_VM_ERROR">
10991 VMM device is not available.
10992 </result>
10993
10994 </desc>
10995 <param name="screenId" type="unsigned long" dir="in">
10996 <desc>The screen id where the Drag and Drop event occured.</desc>
10997 </param>
10998 <param name="format" type="wstring" dir="in">
10999 <desc>The mime type the data is in.</desc>
11000 </param>
11001 <param name="data" type="octet" dir="in" safearray="yes">
11002 <desc>The actual data.</desc>
11003 </param>
11004 <param name="progress" type="IProgress" dir="return">
11005 <desc>Progress object to track the operation completion.</desc>
11006 </param>
11007 </method>
11008
11009 <method name="dragGHPending">
11010 <desc>
11011 Ask the guest if there is any Drag and Drop operation pending in the guest.
11012
11013 If no Drag and Drop operation is pending currently, Ignore is returned.
11014
11015 This is used in Guest - Host direction.
11016
11017 <result name="VBOX_E_VM_ERROR">
11018 VMM device is not available.
11019 </result>
11020
11021 </desc>
11022 <param name="screenId" type="unsigned long" dir="in">
11023 <desc>The screen id where the Drag and Drop event occured.</desc>
11024 </param>
11025 <param name="format" type="wstring" dir="out" safearray="yes">
11026 <desc>On return the supported mime types.</desc>
11027 </param>
11028 <param name="allowedActions" type="DragAndDropAction" dir="out" safearray="yes">
11029 <desc>On return the actions which are allowed.</desc>
11030 </param>
11031 <param name="defaultAction" type="DragAndDropAction" dir="return">
11032 <desc>On return the default action to use.</desc>
11033 </param>
11034 </method>
11035
11036 <method name="dragGHDropped">
11037 <desc>
11038 Informs the guest that a drop event occured for a pending Drag and Drop event.
11039
11040 This is used in Guest - Host direction.
11041
11042 <result name="VBOX_E_VM_ERROR">
11043 VMM device is not available.
11044 </result>
11045
11046 </desc>
11047
11048 <param name="format" type="wstring" dir="in">
11049 <desc>The mime type the data must be in.</desc>
11050 </param>
11051 <param name="action" type="DragAndDropAction" dir="in">
11052 <desc>The action to use.</desc>
11053 </param>
11054 <param name="progress" type="IProgress" dir="return">
11055 <desc>Progress object to track the operation completion.</desc>
11056 </param>
11057 </method>
11058
11059 <method name="dragGHGetData">
11060 <desc>
11061 Fetch the data of a previously Drag and Drop event from the guest.
11062
11063 This is used in Guest - Host direction.
11064
11065 <result name="VBOX_E_VM_ERROR">
11066 VMM device is not available.
11067 </result>
11068
11069 </desc>
11070
11071 <param name="data" type="octet" safearray="yes" dir="return">
11072 <desc>The actual data.</desc>
11073 </param>
11074 </method>
11075
11076 <method name="createSession">
11077 <desc>
11078 TODO
11079 </desc>
11080 <param name="user" type="wstring" dir="in">
11081 <desc>
11082 TODO
11083 </desc>
11084 </param>
11085 <param name="password" type="wstring" dir="in">
11086 <desc>
11087 TODO
11088 </desc>
11089 </param>
11090 <param name="domain" type="wstring" dir="in">
11091 <desc>
11092 TODO
11093 </desc>
11094 </param>
11095 <param name="sessionName" type="wstring" dir="in">
11096 <desc>
11097 TODO
11098 </desc>
11099 </param>
11100 <param name="guestSession" type="IGuestSession" dir="return">
11101 <desc>
11102 TODO
11103 </desc>
11104 </param>
11105 </method>
11106
11107 <method name="findSession">
11108 <desc>
11109 TODO
11110 </desc>
11111 <param name="sessionName" type="wstring" dir="in">
11112 <desc>
11113 TODO
11114 </desc>
11115 </param>
11116 <param name="sessions" type="IGuestSession" safearray="yes" dir="return">
11117 <desc>
11118 TODO
11119 </desc>
11120 </param>
11121 </method>
11122
11123 <method name="executeProcess">
11124 <desc>
11125 Executes an existing program inside the guest VM.
11126
11127 <note>
11128 Starting at VirtualBox 4.1.8 guest process execution by default is limited
11129 to serve up to 25 guest processes at a time. If all 25 guest processes
11130 are still active and running, starting a new guest process will result in an
11131 appropriate error message.
11132
11133 If ExecuteProcessFlag_WaitForStdOut and/or respectively
11134 ExecuteProcessFlag_WaitForStdErr of <link to="ExecuteProcessFlag"/> is
11135 set, the guest process will not exit until all data from the specified
11136 stream(s) is/are read out.
11137
11138 To raise or lower the guest process execution limit, either the guest property
11139 "/VirtualBox/GuestAdd/VBoxService/--control-procs-max-kept" or VBoxService'
11140 command line by specifying "--control-procs-max-kept" needs to be modified.
11141 A restart of the guest OS is required afterwards. To serve unlimited guest
11142 processes, a value of "0" needs to be set (not recommended).
11143 </note>
11144
11145 <result name="VBOX_E_IPRT_ERROR">
11146 Could not execute process.
11147 </result>
11148
11149 </desc>
11150 <param name="execName" type="wstring" dir="in">
11151 <desc>
11152 Full path name of the command to execute on the guest; the
11153 commands has to exists in the guest VM in order to be executed.
11154 </desc>
11155 </param>
11156 <param name="flags" type="unsigned long" dir="in">
11157 <desc>
11158 <link to="ExecuteProcessFlag"/> flags.
11159 </desc>
11160 </param>
11161 <param name="arguments" type="wstring" safearray="yes" dir="in">
11162 <desc>
11163 Array of arguments passed to the execution command.
11164 </desc>
11165 </param>
11166 <param name="environment" type="wstring" safearray="yes" dir="in">
11167 <desc>
11168 Environment variables that can be set while the command is being
11169 executed, in form of "NAME=VALUE"; one pair per entry. To unset a
11170 variable just set its name ("NAME") without a value.
11171 </desc>
11172 </param>
11173 <param name="userName" type="wstring" dir="in">
11174 <desc>
11175 User name under which the command will be executed; has to exist
11176 and have the appropriate rights to execute programs in the VM.
11177 </desc>
11178 </param>
11179 <param name="password" type="wstring" dir="in">
11180 <desc>
11181 Password of the user account specified.
11182 </desc>
11183 </param>
11184 <param name="timeoutMS" type="unsigned long" dir="in">
11185 <desc>
11186 The maximum timeout value (in msec) to wait for finished program
11187 execution. Pass 0 for an infinite timeout.
11188 </desc>
11189 </param>
11190 <param name="pid" type="unsigned long" dir="out">
11191 <desc>
11192 The PID (process ID) of the started command for later reference.
11193 </desc>
11194 </param>
11195 <param name="progress" type="IProgress" dir="return">
11196 <desc>Progress object to track the operation completion.</desc>
11197 </param>
11198 </method>
11199
11200 <method name="getProcessOutput">
11201 <desc>
11202 Retrieves output of a formerly started and running guest process.
11203
11204 <note>
11205 Starting with VirtualBox 4.1.8 this only will return output data
11206 from stdout or stderr if flag ExecuteProcessFlag_WaitForStdOut
11207 and/or respectively ExecuteProcessFlag_WaitForStdErr of
11208 <link to="ExecuteProcessFlag"/> is set in the
11209 former <link to="#executeProcess"/> call for this guest process.
11210 </note>
11211
11212 <result name="VBOX_E_IPRT_ERROR">
11213 Could not retrieve output.
11214 </result>
11215
11216 </desc>
11217 <param name="pid" type="unsigned long" dir="in">
11218 <desc>
11219 Process id returned by earlier <link to="#executeProcess"/> call.
11220 </desc>
11221 </param>
11222 <param name="flags" type="unsigned long" dir="in">
11223 <desc>
11224 <link to="ProcessOutputFlag"/> flags.
11225 </desc>
11226 </param>
11227 <param name="timeoutMS" type="unsigned long" dir="in">
11228 <desc>
11229 The maximum timeout value (in msec) to wait for output
11230 data. Pass 0 for an infinite timeout.
11231 </desc>
11232 </param>
11233 <param name="size" type="long long" dir="in">
11234 <desc>
11235 Size in bytes to read in the buffer.
11236 </desc>
11237 </param>
11238 <param name="data" type="octet" safearray="yes" dir="return">
11239 <desc>
11240 Buffer for retrieving the actual output. A data size of 0 means end of file
11241 if the requested size was not 0. This is the unprocessed
11242 output data, i.e. the line ending style depends on the platform of
11243 the system the server is running on.
11244 </desc>
11245 </param>
11246 </method>
11247
11248 <method name="getProcessStatus">
11249 <desc>
11250 Retrieves status, exit code and the exit reason of a formerly started
11251 guest process. If a guest process exited or got terminated this function
11252 returns its final status and removes this process from the list of
11253 known guest processes for further retrieval.
11254
11255 <result name="VBOX_E_IPRT_ERROR">
11256 Process with specified PID was not found.
11257 </result>
11258
11259 </desc>
11260 <param name="pid" type="unsigned long" dir="in">
11261 <desc>
11262 Process id returned by earlier <link to="#executeProcess"/> call.
11263 </desc>
11264 </param>
11265 <param name="exitcode" type="unsigned long" dir="out">
11266 <desc>
11267 The exit code (if available).
11268 </desc>
11269 </param>
11270 <param name="flags" type="unsigned long" dir="out">
11271 <desc>
11272 Additional flags of process status. Not used at the moment and
11273 must be set to 0.
11274 </desc>
11275 </param>
11276 <param name="reason" type="ExecuteProcessStatus" dir="return">
11277 <desc>
11278 The current process status.
11279 </desc>
11280 </param>
11281 </method>
11282
11283 <method name="copyFromGuest">
11284 <desc>
11285 Copies files/directories from guest to the host.
11286
11287 <result name="VBOX_E_IPRT_ERROR">
11288 Error while copying.
11289 </result>
11290
11291 </desc>
11292 <param name="source" type="wstring" dir="in">
11293 <desc>
11294 Source file on the guest to copy.
11295 </desc>
11296 </param>
11297 <param name="dest" type="wstring" dir="in">
11298 <desc>
11299 Destination path on the host.
11300 </desc>
11301 </param>
11302 <param name="userName" type="wstring" dir="in">
11303 <desc>
11304 User name under which the copy command will be executed; the
11305 user has to exist and have the appropriate rights to read from
11306 the source path.
11307 </desc>
11308 </param>
11309 <param name="password" type="wstring" dir="in">
11310 <desc>
11311 Password of the user account specified.
11312 </desc>
11313 </param>
11314 <param name="flags" type="unsigned long" dir="in">
11315 <desc>
11316 <link to="CopyFileFlag"/> flags. Not used at the moment and should be set to 0.
11317 </desc>
11318 </param>
11319 <param name="progress" type="IProgress" dir="return">
11320 <desc>Progress object to track the operation completion.</desc>
11321 </param>
11322 </method>
11323
11324 <method name="copyToGuest">
11325 <desc>
11326 Copies files/directories from host to the guest.
11327
11328 <result name="VBOX_E_IPRT_ERROR">
11329 Error while copying.
11330 </result>
11331
11332 </desc>
11333 <param name="source" type="wstring" dir="in">
11334 <desc>
11335 Source file on the host to copy.
11336 </desc>
11337 </param>
11338 <param name="dest" type="wstring" dir="in">
11339 <desc>
11340 Destination path on the guest.
11341 </desc>
11342 </param>
11343 <param name="userName" type="wstring" dir="in">
11344 <desc>
11345 User name under which the copy command will be executed; the
11346 user has to exist and have the appropriate rights to write to
11347 the destination path.
11348 </desc>
11349 </param>
11350 <param name="password" type="wstring" dir="in">
11351 <desc>
11352 Password of the user account specified.
11353 </desc>
11354 </param>
11355 <param name="flags" type="unsigned long" dir="in">
11356 <desc>
11357 <link to="CopyFileFlag"/> flags. Not used at the moment and should be set to 0.
11358 </desc>
11359 </param>
11360 <param name="progress" type="IProgress" dir="return">
11361 <desc>Progress object to track the operation completion.</desc>
11362 </param>
11363 </method>
11364
11365 <method name="directoryClose">
11366 <desc>
11367 Closes a formerly opened guest directory.
11368
11369 <result name="VBOX_E_IPRT_ERROR">
11370 Error while closing directory.
11371 </result>
11372
11373 </desc>
11374 <param name="handle" type="unsigned long" dir="in">
11375 <desc>
11376 Handle of opened directory to close.
11377 </desc>
11378 </param>
11379 </method>
11380
11381 <method name="directoryCreate">
11382 <desc>
11383 Creates a directory on the guest.
11384
11385 <result name="VBOX_E_IPRT_ERROR">
11386 Error while creating directory.
11387 </result>
11388
11389 </desc>
11390 <param name="directory" type="wstring" dir="in">
11391 <desc>
11392 Directory to create.
11393 </desc>
11394 </param>
11395 <param name="userName" type="wstring" dir="in">
11396 <desc>
11397 User name under which the directory creation will be executed; the
11398 user has to exist and have the appropriate rights to create the
11399 desired directory.
11400 </desc>
11401 </param>
11402 <param name="password" type="wstring" dir="in">
11403 <desc>
11404 Password of the user account specified.
11405 </desc>
11406 </param>
11407 <param name="mode" type="unsigned long" dir="in">
11408 <desc>
11409 File mode.
11410 </desc>
11411 </param>
11412 <param name="flags" type="unsigned long" dir="in">
11413 <desc>
11414 <link to="DirectoryCreateFlag"/> flags.
11415 </desc>
11416 </param>
11417 </method>
11418
11419 <method name="directoryOpen">
11420 <desc>
11421 Opens a directory on the guest.
11422
11423 <result name="VBOX_E_IPRT_ERROR">
11424 Error while opening / reading directory.
11425 </result>
11426
11427 </desc>
11428 <param name="directory" type="wstring" dir="in">
11429 <desc>
11430 Directory to read.
11431 </desc>
11432 </param>
11433 <param name="filter" type="wstring" dir="in">
11434 <desc>
11435 Directory filter (DOS style wildcards). Set to empty
11436 string if no filter required.
11437 </desc>
11438 </param>
11439 <param name="flags" type="unsigned long" dir="in">
11440 <desc>
11441 <link to="DirectoryOpenFlag"/> flags.
11442 </desc>
11443 </param>
11444 <param name="userName" type="wstring" dir="in">
11445 <desc>
11446 User name under which the directory reading will be performed; the
11447 user has to exist and have the appropriate rights to access / read the
11448 desired directory.
11449 </desc>
11450 </param>
11451 <param name="password" type="wstring" dir="in">
11452 <desc>
11453 Password of the user account specified.
11454 </desc>
11455 </param>
11456 <param name="handle" type="unsigned long" dir="return">
11457 <desc>
11458 Handle of opened directory returned by openDirectory.
11459 </desc>
11460 </param>
11461 </method>
11462
11463 <method name="directoryRead">
11464 <desc>
11465 Reads the next directory entry of an opened guest directory.
11466
11467 <result name="E_ABORT">
11468 When the end of the directory has been reached.
11469 </result>
11470
11471 <result name="VBOX_E_IPRT_ERROR">
11472 Error while opening / reading directory.
11473 </result>
11474
11475 </desc>
11476 <param name="handle" type="unsigned long" dir="in">
11477 <desc>
11478 Handle of opened directory returned by openDirectory.
11479 </desc>
11480 </param>
11481 <param name="entry" type="IGuestDirEntry" dir="return">
11482 <desc>
11483 Information about next directory entry on success.
11484 </desc>
11485 </param>
11486 </method>
11487
11488 <method name="fileExists">
11489 <desc>
11490 Checks if the specified file name exists and is a regular file.
11491
11492 If the file name ends with a slash or backslash, the function assumes
11493 it's a directory and will check if the specified directory exists and
11494 is a regular directory.
11495
11496 <result name="VBOX_E_IPRT_ERROR">
11497 Error while looking up information.
11498 </result>
11499
11500 </desc>
11501 <param name="file" type="wstring" dir="in">
11502 <desc>
11503 Full path of file to check.
11504 </desc>
11505 </param>
11506 <param name="userName" type="wstring" dir="in">
11507 <desc>
11508 User name under which the lookup will be performed; the
11509 user has to exist and have the appropriate rights to access / read the
11510 desired directory.
11511 </desc>
11512 </param>
11513 <param name="password" type="wstring" dir="in">
11514 <desc>
11515 Password of the user account specified.
11516 </desc>
11517 </param>
11518 <param name="exists" type="boolean" dir="return">
11519 <desc>
11520 True if it's a regular file, false if it isn't (or doesn't exist).
11521 </desc>
11522 </param>
11523 </method>
11524
11525 <method name="fileQuerySize">
11526 <desc>
11527 Queries the size of a file, given the path to it.
11528
11529 <result name="VBOX_E_IPRT_ERROR">
11530 Error while looking up information.
11531 </result>
11532
11533 </desc>
11534 <param name="file" type="wstring" dir="in">
11535 <desc>
11536 Full path of file to query file size for.
11537 </desc>
11538 </param>
11539 <param name="userName" type="wstring" dir="in">
11540 <desc>
11541 User name under which the lookup will be performed; the
11542 user has to exist and have the appropriate rights to access / read the
11543 desired directory.
11544 </desc>
11545 </param>
11546 <param name="password" type="wstring" dir="in">
11547 <desc>
11548 Password of the user account specified.
11549 </desc>
11550 </param>
11551 <param name="size" type="long long" dir="return">
11552 <desc>
11553 Size (in bytes) of file specified.
11554 </desc>
11555 </param>
11556 </method>
11557
11558 <method name="setProcessInput">
11559 <desc>
11560 Sends input into a formerly started process.
11561
11562 <result name="VBOX_E_IPRT_ERROR">
11563 Could not send input.
11564 </result>
11565
11566 </desc>
11567 <param name="pid" type="unsigned long" dir="in">
11568 <desc>
11569 Process id returned by earlier <link to="#executeProcess"/> call.
11570 </desc>
11571 </param>
11572 <param name="flags" type="unsigned long" dir="in">
11573 <desc>
11574 <link to="ProcessInputFlag"/> flags.
11575 </desc>
11576 </param>
11577 <param name="timeoutMS" type="unsigned long" dir="in">
11578 <desc>
11579 The maximum timeout value (in msec) to wait for getting the
11580 data transfered to the guest. Pass 0 for an infinite timeout.
11581 </desc>
11582 </param>
11583 <param name="data" type="octet" dir="in" safearray="yes">
11584 <desc>
11585 Buffer of input data to send to the started process to.
11586 </desc>
11587 </param>
11588 <param name="written" type="unsigned long" dir="return">
11589 <desc>
11590 Number of bytes written.
11591 </desc>
11592 </param>
11593 </method>
11594
11595 <method name="updateGuestAdditions">
11596 <desc>
11597 Updates already installed Guest Additions in a VM
11598 (Windows guests only).
11599
11600 <result name="VBOX_E_IPRT_ERROR">
11601 Error while updating.
11602 </result>
11603
11604 </desc>
11605 <param name="source" type="wstring" dir="in">
11606 <desc>
11607 Path to the Guest Additions .ISO file to use for the upate.
11608 </desc>
11609 </param>
11610 <param name="flags" type="AdditionsUpdateFlag" dir="in" safearray="yes">
11611 <desc>
11612 <link to="AdditionsUpdateFlag"/> flags.
11613 </desc>
11614 </param>
11615 <param name="progress" type="IProgress" dir="return">
11616 <desc>Progress object to track the operation completion.</desc>
11617 </param>
11618 </method>
11619
11620 </interface>
11621
11622
11623 <!--
11624 // IProgress
11625 /////////////////////////////////////////////////////////////////////////
11626 -->
11627
11628 <interface
11629 name="IProgress" extends="$unknown"
11630 uuid="c20238e4-3221-4d3f-8891-81ce92d9f913"
11631 wsmap="managed"
11632 >
11633 <desc>
11634 The IProgress interface is used to track and control
11635 asynchronous tasks within VirtualBox.
11636
11637 An instance of this is returned every time VirtualBox starts
11638 an asynchronous task (in other words, a separate thread) which
11639 continues to run after a method call returns. For example,
11640 <link to="IConsole::saveState" />, which saves the state of
11641 a running virtual machine, can take a long time to complete.
11642 To be able to display a progress bar, a user interface such as
11643 the VirtualBox graphical user interface can use the IProgress
11644 object returned by that method.
11645
11646 Note that IProgress is a "read-only" interface in the sense
11647 that only the VirtualBox internals behind the Main API can
11648 create and manipulate progress objects, whereas client code
11649 can only use the IProgress object to monitor a task's
11650 progress and, if <link to="#cancelable" /> is @c true,
11651 cancel the task by calling <link to="#cancel" />.
11652
11653 A task represented by IProgress consists of either one or
11654 several sub-operations that run sequentially, one by one (see
11655 <link to="#operation" /> and <link to="#operationCount" />).
11656 Every operation is identified by a number (starting from 0)
11657 and has a separate description.
11658
11659 You can find the individual percentage of completion of the current
11660 operation in <link to="#operationPercent" /> and the
11661 percentage of completion of the task as a whole
11662 in <link to="#percent" />.
11663
11664 Similarly, you can wait for the completion of a particular
11665 operation via <link to="#waitForOperationCompletion" /> or
11666 for the completion of the whole task via
11667 <link to="#waitForCompletion" />.
11668 </desc>
11669
11670 <attribute name="id" type="uuid" mod="string" readonly="yes">
11671 <desc>ID of the task.</desc>
11672 </attribute>
11673
11674 <attribute name="description" type="wstring" readonly="yes">
11675 <desc>Description of the task.</desc>
11676 </attribute>
11677
11678 <attribute name="initiator" type="$unknown" readonly="yes">
11679 <desc>Initiator of the task.</desc>
11680 </attribute>
11681
11682 <attribute name="cancelable" type="boolean" readonly="yes">
11683 <desc>Whether the task can be interrupted.</desc>
11684 </attribute>
11685
11686 <attribute name="percent" type="unsigned long" readonly="yes">
11687 <desc>
11688 Current progress value of the task as a whole, in percent.
11689 This value depends on how many operations are already complete.
11690 Returns 100 if <link to="#completed" /> is @c true.
11691 </desc>
11692 </attribute>
11693
11694 <attribute name="timeRemaining" type="long" readonly="yes">
11695 <desc>
11696 Estimated remaining time until the task completes, in
11697 seconds. Returns 0 once the task has completed; returns -1
11698 if the remaining time cannot be computed, in particular if
11699 the current progress is 0.
11700
11701 Even if a value is returned, the estimate will be unreliable
11702 for low progress values. It will become more reliable as the
11703 task progresses; it is not recommended to display an ETA
11704 before at least 20% of a task have completed.
11705 </desc>
11706 </attribute>
11707
11708 <attribute name="completed" type="boolean" readonly="yes">
11709 <desc>Whether the task has been completed.</desc>
11710 </attribute>
11711
11712 <attribute name="canceled" type="boolean" readonly="yes">
11713 <desc>Whether the task has been canceled.</desc>
11714 </attribute>
11715
11716 <attribute name="resultCode" type="long" readonly="yes">
11717 <desc>
11718 Result code of the progress task.
11719 Valid only if <link to="#completed"/> is @c true.
11720 </desc>
11721 </attribute>
11722
11723 <attribute name="errorInfo" type="IVirtualBoxErrorInfo" readonly="yes">
11724 <desc>
11725 Extended information about the unsuccessful result of the
11726 progress operation. May be @c null if no extended information
11727 is available.
11728 Valid only if <link to="#completed"/> is @c true and
11729 <link to="#resultCode"/> indicates a failure.
11730 </desc>
11731 </attribute>
11732
11733 <attribute name="operationCount" type="unsigned long" readonly="yes">
11734 <desc>
11735 Number of sub-operations this task is divided into.
11736 Every task consists of at least one suboperation.
11737 </desc>
11738 </attribute>
11739
11740 <attribute name="operation" type="unsigned long" readonly="yes">
11741 <desc>Number of the sub-operation being currently executed.</desc>
11742 </attribute>
11743
11744 <attribute name="operationDescription" type="wstring" readonly="yes">
11745 <desc>
11746 Description of the sub-operation being currently executed.
11747 </desc>
11748 </attribute>
11749
11750 <attribute name="operationPercent" type="unsigned long" readonly="yes">
11751 <desc>Progress value of the current sub-operation only, in percent.</desc>
11752 </attribute>
11753
11754 <attribute name="operationWeight" type="unsigned long" readonly="yes">
11755 <desc>Weight value of the current sub-operation only.</desc>
11756 </attribute>
11757
11758 <attribute name="timeout" type="unsigned long">
11759 <desc>
11760 When non-zero, this specifies the number of milliseconds after which
11761 the operation will automatically be canceled. This can only be set on
11762 cancelable objects.
11763 </desc>
11764 </attribute>
11765
11766 <method name="setCurrentOperationProgress">
11767 <desc>Internal method, not to be called externally.</desc>
11768 <param name="percent" type="unsigned long" dir="in" />
11769 </method>
11770 <method name="setNextOperation">
11771 <desc>Internal method, not to be called externally.</desc>
11772 <param name="nextOperationDescription" type="wstring" dir="in" />
11773 <param name="nextOperationsWeight" type="unsigned long" dir="in" />
11774 </method>
11775
11776 <method name="waitForCompletion">
11777 <desc>
11778 Waits until the task is done (including all sub-operations)
11779 with a given timeout in milliseconds; specify -1 for an indefinite wait.
11780
11781 Note that the VirtualBox/XPCOM/COM/native event queues of the calling
11782 thread are not processed while waiting. Neglecting event queues may
11783 have dire consequences (degrade performance, resource hogs,
11784 deadlocks, etc.), this is specially so for the main thread on
11785 platforms using XPCOM. Callers are adviced wait for short periods
11786 and service their event queues between calls, or to create a worker
11787 thread to do the waiting.
11788
11789 <result name="VBOX_E_IPRT_ERROR">
11790 Failed to wait for task completion.
11791 </result>
11792 </desc>
11793
11794 <param name="timeout" type="long" dir="in">
11795 <desc>
11796 Maximum time in milliseconds to wait or -1 to wait indefinitely.
11797 </desc>
11798 </param>
11799 </method>
11800
11801 <method name="waitForOperationCompletion">
11802 <desc>
11803 Waits until the given operation is done with a given timeout in
11804 milliseconds; specify -1 for an indefinite wait.
11805
11806 See <link to="#waitForCompletion"> for event queue considerations.</link>
11807
11808 <result name="VBOX_E_IPRT_ERROR">
11809 Failed to wait for operation completion.
11810 </result>
11811
11812 </desc>
11813 <param name="operation" type="unsigned long" dir="in">
11814 <desc>
11815 Number of the operation to wait for.
11816 Must be less than <link to="#operationCount"/>.
11817 </desc>
11818 </param>
11819 <param name="timeout" type="long" dir="in">
11820 <desc>
11821 Maximum time in milliseconds to wait or -1 to wait indefinitely.
11822 </desc>
11823 </param>
11824 </method>
11825
11826 <method name="waitForAsyncProgressCompletion">
11827 <desc>
11828 Waits until the other task is completed (including all
11829 sub-operations) and forward all changes from the other progress to
11830 this progress. This means sub-operation number, description, percent
11831 and so on.
11832
11833 You have to take care on setting up at least the same count on
11834 sub-operations in this progress object like there are in the other
11835 progress object.
11836
11837 If the other progress object supports cancel and this object gets any
11838 cancel request (when here enabled as well), it will be forwarded to
11839 the other progress object.
11840
11841 If there is an error in the other progress, this error isn't
11842 automatically transfered to this progress object. So you have to
11843 check any operation error within the other progress object, after
11844 this method returns.
11845 </desc>
11846
11847 <param name="pProgressAsync" type="IProgress" dir="in">
11848 <desc>
11849 The progress object of the asynchrony process.
11850 </desc>
11851 </param>
11852 </method>
11853
11854 <method name="cancel">
11855 <desc>
11856 Cancels the task.
11857 <note>
11858 If <link to="#cancelable"/> is @c false, then this method will fail.
11859 </note>
11860
11861 <result name="VBOX_E_INVALID_OBJECT_STATE">
11862 Operation cannot be canceled.
11863 </result>
11864
11865 </desc>
11866 </method>
11867
11868 </interface>
11869
11870 <!--
11871 // ISnapshot
11872 /////////////////////////////////////////////////////////////////////////
11873 -->
11874
11875 <interface
11876 name="ISnapshot" extends="$unknown"
11877 uuid="0472823b-c6e7-472a-8e9f-d732e86b8463"
11878 wsmap="managed"
11879 >
11880 <desc>
11881 The ISnapshot interface represents a snapshot of the virtual
11882 machine.
11883
11884 Together with the differencing media that are created
11885 when a snapshot is taken, a machine can be brought back to
11886 the exact state it was in when the snapshot was taken.
11887
11888 The ISnapshot interface has no methods, only attributes; snapshots
11889 are controlled through methods of the <link to="IConsole" /> interface
11890 which also manage the media associated with the snapshot.
11891 The following operations exist:
11892
11893 <ul>
11894 <li><link to="IConsole::takeSnapshot"/> creates a new snapshot
11895 by creating new, empty differencing images for the machine's
11896 media and saving the VM settings and (if the VM is running)
11897 the current VM state in the snapshot.
11898
11899 The differencing images will then receive all data written to
11900 the machine's media, while their parent (base) images
11901 remain unmodified after the snapshot has been taken (see
11902 <link to="IMedium" /> for details about differencing images).
11903 This simplifies restoring a machine to the state of a snapshot:
11904 only the differencing images need to be deleted.
11905
11906 The current machine state is not changed by taking a snapshot
11907 except that <link to="IMachine::currentSnapshot" /> is set to
11908 the newly created snapshot, which is also added to the machine's
11909 snapshots tree.
11910 </li>
11911
11912 <li><link to="IConsole::restoreSnapshot"/> resets a machine to
11913 the state of a previous snapshot by deleting the differencing
11914 image of each of the machine's media and setting the machine's
11915 settings and state to the state that was saved in the snapshot (if any).
11916
11917 This destroys the machine's current state. After calling this,
11918 <link to="IMachine::currentSnapshot" /> points to the snapshot
11919 that was restored.
11920 </li>
11921
11922 <li><link to="IConsole::deleteSnapshot"/> deletes a snapshot
11923 without affecting the current machine state.
11924
11925 This does not change the current machine state, but instead frees the
11926 resources allocated when the snapshot was taken: the settings and machine
11927 state file are deleted (if any), and the snapshot's differencing image for
11928 each of the machine's media gets merged with its parent image.
11929
11930 Neither the current machine state nor other snapshots are affected
11931 by this operation, except that parent media will be modified
11932 to contain the disk data associated with the snapshot being deleted.
11933
11934 When deleting the current snapshot, the <link to="IMachine::currentSnapshot" />
11935 attribute is set to the current snapshot's parent or @c null if it
11936 has no parent. Otherwise the attribute is unchanged.
11937 </li>
11938 </ul>
11939
11940 Each snapshot contains a copy of virtual machine's settings (hardware
11941 configuration etc.). This copy is contained in an immutable (read-only)
11942 instance of <link to="IMachine" /> which is available from the snapshot's
11943 <link to="#machine" /> attribute. When restoring the snapshot, these
11944 settings are copied back to the original machine.
11945
11946 In addition, if the machine was running when the
11947 snapshot was taken (<link to="IMachine::state"/> is <link to="MachineState_Running"/>),
11948 the current VM state is saved in the snapshot (similarly to what happens
11949 when a VM's state is saved). The snapshot is then said to be <i>online</i>
11950 because when restoring it, the VM will be running.
11951
11952 If the machine was in <link to="MachineState_Saved">saved</link> saved,
11953 the snapshot receives a copy of the execution state file
11954 (<link to="IMachine::stateFilePath"/>).
11955
11956 Otherwise, if the machine was not running (<link to="MachineState_PoweredOff"/>
11957 or <link to="MachineState_Aborted"/>), the snapshot is <i>offline</i>;
11958 it then contains a so-called "zero execution state", representing a
11959 machine that is powered off.
11960 </desc>
11961
11962 <attribute name="id" type="uuid" mod="string" readonly="yes">
11963 <desc>UUID of the snapshot.</desc>
11964 </attribute>
11965
11966 <attribute name="name" type="wstring">
11967 <desc>Short name of the snapshot.
11968 <note>Setting this attribute causes <link to="IMachine::saveSettings" /> to
11969 be called implicitly.</note>
11970 </desc>
11971 </attribute>
11972
11973 <attribute name="description" type="wstring">
11974 <desc>Optional description of the snapshot.
11975 <note>Setting this attribute causes <link to="IMachine::saveSettings" /> to
11976 be called implicitly.</note>
11977 </desc>
11978 </attribute>
11979
11980 <attribute name="timeStamp" type="long long" readonly="yes">
11981 <desc>
11982 Time stamp of the snapshot, in milliseconds since 1970-01-01 UTC.
11983 </desc>
11984 </attribute>
11985
11986 <attribute name="online" type="boolean" readonly="yes">
11987 <desc>
11988 @c true if this snapshot is an online snapshot and @c false otherwise.
11989
11990 When this attribute is @c true, the
11991 <link to="IMachine::stateFilePath"/> attribute of the
11992 <link to="#machine"/> object associated with this snapshot
11993 will point to the saved state file. Otherwise, it will be
11994 an empty string.
11995 </desc>
11996 </attribute>
11997
11998 <attribute name="machine" type="IMachine" readonly="yes">
11999 <desc>
12000 Virtual machine this snapshot is taken on. This object
12001 stores all settings the machine had when taking this snapshot.
12002 <note>
12003 The returned machine object is immutable, i.e. no
12004 any settings can be changed.
12005 </note>
12006 </desc>
12007 </attribute>
12008
12009 <attribute name="parent" type="ISnapshot" readonly="yes">
12010 <desc>
12011 Parent snapshot (a snapshot this one is based on), or
12012 @c null if the snapshot has no parent (i.e. is the first snapshot).
12013 </desc>
12014 </attribute>
12015
12016 <attribute name="children" type="ISnapshot" readonly="yes" safearray="yes">
12017 <desc>
12018 Child snapshots (all snapshots having this one as a parent).
12019 By inspecting this attribute starting with a machine's root snapshot
12020 (which can be obtained by calling <link to="IMachine::findSnapshot" />
12021 with a @c null UUID), a machine's snapshots tree can be iterated over.
12022 </desc>
12023 </attribute>
12024
12025 <method name="getChildrenCount" const="yes">
12026 <desc>
12027 Returns the number of direct childrens of this snapshot.
12028 </desc>
12029 <param name="childrenCount" type="unsigned long" dir="return">
12030 <desc>
12031 </desc>
12032 </param>
12033 </method>
12034
12035 </interface>
12036
12037
12038 <!--
12039 // IMedium
12040 /////////////////////////////////////////////////////////////////////////
12041 -->
12042
12043 <enum
12044 name="MediumState"
12045 uuid="ef41e980-e012-43cd-9dea-479d4ef14d13"
12046 >
12047 <desc>
12048 Virtual medium state.
12049 <see><link to="IMedium"/></see>
12050 </desc>
12051
12052 <const name="NotCreated" value="0">
12053 <desc>
12054 Associated medium storage does not exist (either was not created yet or
12055 was deleted).
12056 </desc>
12057 </const>
12058 <const name="Created" value="1">
12059 <desc>
12060 Associated storage exists and accessible; this gets set if the
12061 accessibility check performed by <link to="IMedium::refreshState" />
12062 was successful.
12063 </desc>
12064 </const>
12065 <const name="LockedRead" value="2">
12066 <desc>
12067 Medium is locked for reading (see <link to="IMedium::lockRead"/>),
12068 no data modification is possible.
12069 </desc>
12070 </const>
12071 <const name="LockedWrite" value="3">
12072 <desc>
12073 Medium is locked for writing (see <link to="IMedium::lockWrite"/>),
12074 no concurrent data reading or modification is possible.
12075 </desc>
12076 </const>
12077 <const name="Inaccessible" value="4">
12078 <desc>
12079 Medium accessibility check (see <link to="IMedium::refreshState" />) has
12080 not yet been performed, or else, associated medium storage is not
12081 accessible. In the first case, <link to="IMedium::lastAccessError"/>
12082 is empty, in the second case, it describes the error that occurred.
12083 </desc>
12084 </const>
12085 <const name="Creating" value="5">
12086 <desc>
12087 Associated medium storage is being created.
12088 </desc>
12089 </const>
12090 <const name="Deleting" value="6">
12091 <desc>
12092 Associated medium storage is being deleted.
12093 </desc>
12094 </const>
12095 </enum>
12096
12097 <enum
12098 name="MediumType"
12099 uuid="fe663fb5-c244-4e1b-9d81-c628b417dd04"
12100 >
12101 <desc>
12102 Virtual medium type. For each <link to="IMedium" />, this defines how the medium is
12103 attached to a virtual machine (see <link to="IMediumAttachment" />) and what happens
12104 when a snapshot (see <link to="ISnapshot" />) is taken of a virtual machine which has
12105 the medium attached. At the moment DVD and floppy media are always of type "writethrough".
12106 </desc>
12107
12108 <const name="Normal" value="0">
12109 <desc>
12110 Normal medium (attached directly or indirectly, preserved
12111 when taking snapshots).
12112 </desc>
12113 </const>
12114 <const name="Immutable" value="1">
12115 <desc>
12116 Immutable medium (attached indirectly, changes are wiped out
12117 the next time the virtual machine is started).
12118 </desc>
12119 </const>
12120 <const name="Writethrough" value="2">
12121 <desc>
12122 Write through medium (attached directly, ignored when
12123 taking snapshots).
12124 </desc>
12125 </const>
12126 <const name="Shareable" value="3">
12127 <desc>
12128 Allow using this medium concurrently by several machines.
12129 <note>Present since VirtualBox 3.2.0, and accepted since 3.2.8.</note>
12130 </desc>
12131 </const>
12132 <const name="Readonly" value="4">
12133 <desc>
12134 A readonly medium, which can of course be used by several machines.
12135 <note>Present and accepted since VirtualBox 4.0.</note>
12136 </desc>
12137 </const>
12138 <const name="MultiAttach" value="5">
12139 <desc>
12140 A medium which is indirectly attached, so that one base medium can
12141 be used for several VMs which have their own differencing medium to
12142 store their modifications. In some sense a variant of Immutable
12143 with unset AutoReset flag in each differencing medium.
12144 <note>Present and accepted since VirtualBox 4.0.</note>
12145 </desc>
12146 </const>
12147 </enum>
12148
12149 <enum
12150 name="MediumVariant"
12151 uuid="80685b6b-e42f-497d-8271-e77bf3c61ada"
12152 >
12153 <desc>
12154 Virtual medium image variant. More than one flag may be set.
12155 <see><link to="IMedium"/></see>
12156 </desc>
12157
12158 <const name="Standard" value="0">
12159 <desc>
12160 No particular variant requested, results in using the backend default.
12161 </desc>
12162 </const>
12163 <const name="VmdkSplit2G" value="0x01">
12164 <desc>
12165 VMDK image split in chunks of less than 2GByte.
12166 </desc>
12167 </const>
12168 <const name="VmdkRawDisk" value="0x02">
12169 <desc>
12170 VMDK image representing a raw disk.
12171 </desc>
12172 </const>
12173 <const name="VmdkStreamOptimized" value="0x04">
12174 <desc>
12175 VMDK streamOptimized image. Special import/export format which is
12176 read-only/append-only.
12177 </desc>
12178 </const>
12179 <const name="VmdkESX" value="0x08">
12180 <desc>
12181 VMDK format variant used on ESX products.
12182 </desc>
12183 </const>
12184 <const name="Fixed" value="0x10000">
12185 <desc>
12186 Fixed image. Only allowed for base images.
12187 </desc>
12188 </const>
12189 <const name="Diff" value="0x20000">
12190 <desc>
12191 Differencing image. Only allowed for child images.
12192 </desc>
12193 </const>
12194 <const name="NoCreateDir" value="0x40000000">
12195 <desc>
12196 Special flag which suppresses automatic creation of the subdirectory.
12197 Only used when passing the medium variant as an input parameter.
12198 </desc>
12199 </const>
12200 </enum>
12201
12202 <interface
12203 name="IMediumAttachment" extends="$unknown"
12204 uuid="5ee464d6-0613-4331-b154-7ce12170ef9f"
12205 wsmap="struct"
12206 >
12207 <desc>
12208 The IMediumAttachment interface links storage media to virtual machines.
12209 For each medium (<link to="IMedium"/>) which has been attached to a
12210 storage controller (<link to="IStorageController"/>) of a machine
12211 (<link to="IMachine"/>) via the <link to="IMachine::attachDevice" />
12212 method, one instance of IMediumAttachment is added to the machine's
12213 <link to="IMachine::mediumAttachments"/> array attribute.
12214
12215 Each medium attachment specifies the storage controller as well as a
12216 port and device number and the IMedium instance representing a virtual
12217 hard disk or floppy or DVD image.
12218
12219 For removable media (DVDs or floppies), there are two additional
12220 options. For one, the IMedium instance can be @c null to represent
12221 an empty drive with no media inserted (see <link to="IMachine::mountMedium" />);
12222 secondly, the medium can be one of the pseudo-media for host drives
12223 listed in <link to="IHost::DVDDrives"/> or <link to="IHost::floppyDrives"/>.
12224
12225 <h3>Attaching Hard Disks</h3>
12226
12227 Hard disks are attached to virtual machines using the
12228 <link to="IMachine::attachDevice"/> method and detached using the
12229 <link to="IMachine::detachDevice"/> method. Depending on a medium's
12230 type (see <link to="IMedium::type" />), hard disks are attached either
12231 <i>directly</i> or <i>indirectly</i>.
12232
12233 When a hard disk is being attached directly, it is associated with the
12234 virtual machine and used for hard disk operations when the machine is
12235 running. When a hard disk is being attached indirectly, a new differencing
12236 hard disk linked to it is implicitly created and this differencing hard
12237 disk is associated with the machine and used for hard disk operations.
12238 This also means that if <link to="IMachine::attachDevice"/> performs
12239 a direct attachment then the same hard disk will be returned in response
12240 to the subsequent <link to="IMachine::getMedium"/> call; however if
12241 an indirect attachment is performed then
12242 <link to="IMachine::getMedium"/> will return the implicitly created
12243 differencing hard disk, not the original one passed to <link
12244 to="IMachine::attachDevice"/>. In detail:
12245
12246 <ul>
12247 <li><b>Normal base</b> hard disks that do not have children (i.e.
12248 differencing hard disks linked to them) and that are not already
12249 attached to virtual machines in snapshots are attached <b>directly</b>.
12250 Otherwise, they are attached <b>indirectly</b> because having
12251 dependent children or being part of the snapshot makes it impossible
12252 to modify hard disk contents without breaking the integrity of the
12253 dependent party. The <link to="IMedium::readOnly"/> attribute allows to
12254 quickly determine the kind of the attachment for the given hard
12255 disk. Note that if a normal base hard disk is to be indirectly
12256 attached to a virtual machine with snapshots then a special
12257 procedure called <i>smart attachment</i> is performed (see below).</li>
12258 <li><b>Normal differencing</b> hard disks are like normal base hard disks:
12259 they are attached <b>directly</b> if they do not have children and are
12260 not attached to virtual machines in snapshots, and <b>indirectly</b>
12261 otherwise. Note that the smart attachment procedure is never performed
12262 for differencing hard disks.</li>
12263 <li><b>Immutable</b> hard disks are always attached <b>indirectly</b> because
12264 they are designed to be non-writable. If an immutable hard disk is
12265 attached to a virtual machine with snapshots then a special
12266 procedure called smart attachment is performed (see below).</li>
12267 <li><b>Writethrough</b> hard disks are always attached <b>directly</b>,
12268 also as designed. This also means that writethrough hard disks cannot
12269 have other hard disks linked to them at all.</li>
12270 <li><b>Shareable</b> hard disks are always attached <b>directly</b>,
12271 also as designed. This also means that shareable hard disks cannot
12272 have other hard disks linked to them at all. They behave almost
12273 like writethrough hard disks, except that shareable hard disks can
12274 be attached to several virtual machines which are running, allowing
12275 concurrent accesses. You need special cluster software running in
12276 the virtual machines to make use of such disks.</li>
12277 </ul>
12278
12279 Note that the same hard disk, regardless of its type, may be attached to
12280 more than one virtual machine at a time. In this case, the machine that is
12281 started first gains exclusive access to the hard disk and attempts to
12282 start other machines having this hard disk attached will fail until the
12283 first machine is powered down.
12284
12285 Detaching hard disks is performed in a <i>deferred</i> fashion. This means
12286 that the given hard disk remains associated with the given machine after a
12287 successful <link to="IMachine::detachDevice"/> call until
12288 <link to="IMachine::saveSettings"/> is called to save all changes to
12289 machine settings to disk. This deferring is necessary to guarantee that
12290 the hard disk configuration may be restored at any time by a call to
12291 <link to="IMachine::discardSettings"/> before the settings
12292 are saved (committed).
12293
12294 Note that if <link to="IMachine::discardSettings"/> is called after
12295 indirectly attaching some hard disks to the machine but before a call to
12296 <link to="IMachine::saveSettings"/> is made, it will implicitly delete
12297 all differencing hard disks implicitly created by
12298 <link to="IMachine::attachDevice"/> for these indirect attachments.
12299 Such implicitly created hard disks will also be immediately deleted when
12300 detached explicitly using the <link to="IMachine::detachDevice"/>
12301 call if it is made before <link to="IMachine::saveSettings"/>. This
12302 implicit deletion is safe because newly created differencing hard
12303 disks do not contain any user data.
12304
12305 However, keep in mind that detaching differencing hard disks that were
12306 implicitly created by <link to="IMachine::attachDevice"/>
12307 before the last <link to="IMachine::saveSettings"/> call will
12308 <b>not</b> implicitly delete them as they may already contain some data
12309 (for example, as a result of virtual machine execution). If these hard
12310 disks are no more necessary, the caller can always delete them explicitly
12311 using <link to="IMedium::deleteStorage"/> after they are actually de-associated
12312 from this machine by the <link to="IMachine::saveSettings"/> call.
12313
12314 <h3>Smart Attachment</h3>
12315
12316 When normal base or immutable hard disks are indirectly attached to a
12317 virtual machine then some additional steps are performed to make sure the
12318 virtual machine will have the most recent "view" of the hard disk being
12319 attached. These steps include walking through the machine's snapshots
12320 starting from the current one and going through ancestors up to the first
12321 snapshot. Hard disks attached to the virtual machine in all
12322 of the encountered snapshots are checked whether they are descendants of
12323 the given normal base or immutable hard disk. The first found child (which
12324 is the differencing hard disk) will be used instead of the normal base or
12325 immutable hard disk as a parent for creating a new differencing hard disk
12326 that will be actually attached to the machine. And only if no descendants
12327 are found or if the virtual machine does not have any snapshots then the
12328 normal base or immutable hard disk will be used itself as a parent for
12329 this differencing hard disk.
12330
12331 It is easier to explain what smart attachment does using the
12332 following example:
12333 <pre>
12334BEFORE attaching B.vdi: AFTER attaching B.vdi:
12335
12336Snapshot 1 (B.vdi) Snapshot 1 (B.vdi)
12337 Snapshot 2 (D1->B.vdi) Snapshot 2 (D1->B.vdi)
12338 Snapshot 3 (D2->D1.vdi) Snapshot 3 (D2->D1.vdi)
12339 Snapshot 4 (none) Snapshot 4 (none)
12340 CurState (none) CurState (D3->D2.vdi)
12341
12342 NOT
12343 ...
12344 CurState (D3->B.vdi)
12345 </pre>
12346 The first column is the virtual machine configuration before the base hard
12347 disk <tt>B.vdi</tt> is attached, the second column shows the machine after
12348 this hard disk is attached. Constructs like <tt>D1->B.vdi</tt> and similar
12349 mean that the hard disk that is actually attached to the machine is a
12350 differencing hard disk, <tt>D1.vdi</tt>, which is linked to (based on)
12351 another hard disk, <tt>B.vdi</tt>.
12352
12353 As we can see from the example, the hard disk <tt>B.vdi</tt> was detached
12354 from the machine before taking Snapshot 4. Later, after Snapshot 4 was
12355 taken, the user decides to attach <tt>B.vdi</tt> again. <tt>B.vdi</tt> has
12356 dependent child hard disks (<tt>D1.vdi</tt>, <tt>D2.vdi</tt>), therefore
12357 it cannot be attached directly and needs an indirect attachment (i.e.
12358 implicit creation of a new differencing hard disk). Due to the smart
12359 attachment procedure, the new differencing hard disk
12360 (<tt>D3.vdi</tt>) will be based on <tt>D2.vdi</tt>, not on
12361 <tt>B.vdi</tt> itself, since <tt>D2.vdi</tt> is the most recent view of
12362 <tt>B.vdi</tt> existing for this snapshot branch of the given virtual
12363 machine.
12364
12365 Note that if there is more than one descendant hard disk of the given base
12366 hard disk found in a snapshot, and there is an exact device, channel and
12367 bus match, then this exact match will be used. Otherwise, the youngest
12368 descendant will be picked up.
12369
12370 There is one more important aspect of the smart attachment procedure which
12371 is not related to snapshots at all. Before walking through the snapshots
12372 as described above, the backup copy of the current list of hard disk
12373 attachment is searched for descendants. This backup copy is created when
12374 the hard disk configuration is changed for the first time after the last
12375 <link to="IMachine::saveSettings"/> call and used by
12376 <link to="IMachine::discardSettings"/> to undo the recent hard disk
12377 changes. When such a descendant is found in this backup copy, it will be
12378 simply re-attached back, without creating a new differencing hard disk for
12379 it. This optimization is necessary to make it possible to re-attach the
12380 base or immutable hard disk to a different bus, channel or device slot
12381 without losing the contents of the differencing hard disk actually
12382 attached to the machine in place of it.
12383
12384 </desc>
12385
12386 <attribute name="medium" type="IMedium" readonly="yes">
12387 <desc>Medium object associated with this attachment; it
12388 can be @c null for removable devices.</desc>
12389 </attribute>
12390
12391 <attribute name="controller" type="wstring" readonly="yes">
12392 <desc>Name of the storage controller of this attachment; this
12393 refers to one of the controllers in <link to="IMachine::storageControllers" />
12394 by name.</desc>
12395 </attribute>
12396
12397 <attribute name="port" type="long" readonly="yes">
12398 <desc>Port number of this attachment.
12399 See <link to="IMachine::attachDevice" /> for the meaning of this value for the different controller types.
12400 </desc>
12401 </attribute>
12402
12403 <attribute name="device" type="long" readonly="yes">
12404 <desc>Device slot number of this attachment.
12405 See <link to="IMachine::attachDevice" /> for the meaning of this value for the different controller types.
12406 </desc>
12407 </attribute>
12408
12409 <attribute name="type" type="DeviceType" readonly="yes">
12410 <desc>Device type of this attachment.</desc>
12411 </attribute>
12412
12413 <attribute name="passthrough" type="boolean" readonly="yes">
12414 <desc>Pass I/O requests through to a device on the host.</desc>
12415 </attribute>
12416
12417 <attribute name="temporaryEject" type="boolean" readonly="yes">
12418 <desc>Whether guest-triggered eject results in unmounting the medium.</desc>
12419 </attribute>
12420
12421 <attribute name="isEjected" type="boolean" readonly="yes">
12422 <desc>Signals that the removable medium has been ejected. This is not
12423 necessarily equivalent to having a @c null medium association.</desc>
12424 </attribute>
12425
12426 <attribute name="nonRotational" type="boolean" readonly="yes">
12427 <desc>Whether the associated medium is non-rotational.</desc>
12428 </attribute>
12429
12430 <attribute name="discard" type="boolean" readonly="yes">
12431 <desc>Whether the associated medium supports discarding unused blocks.</desc>
12432 </attribute>
12433
12434 <attribute name="bandwidthGroup" type="IBandwidthGroup" readonly="yes">
12435 <desc>The bandwidth group this medium attachment is assigned to.</desc>
12436 </attribute>
12437
12438 </interface>
12439
12440 <interface
12441 name="IMedium" extends="$unknown"
12442 uuid="29989373-b111-4654-8493-2e1176cba890"
12443 wsmap="managed"
12444 >
12445 <desc>
12446 The IMedium interface represents virtual storage for a machine's
12447 hard disks, CD/DVD or floppy drives. It will typically represent
12448 a disk image on the host, for example a VDI or VMDK file representing
12449 a virtual hard disk, or an ISO or RAW file representing virtual
12450 removable media, but can also point to a network location (e.g.
12451 for iSCSI targets).
12452
12453 Instances of IMedium are connected to virtual machines by way of medium
12454 attachments, which link the storage medium to a particular device slot
12455 of a storage controller of the virtual machine.
12456 In the VirtualBox API, virtual storage is therefore always represented
12457 by the following chain of object links:
12458
12459 <ul>
12460 <li><link to="IMachine::storageControllers"/> contains an array of
12461 storage controllers (IDE, SATA, SCSI, SAS or a floppy controller;
12462 these are instances of <link to="IStorageController"/>).</li>
12463 <li><link to="IMachine::mediumAttachments"/> contains an array of
12464 medium attachments (instances of <link to="IMediumAttachment"/>
12465 created by <link to="IMachine::attachDevice" />),
12466 each containing a storage controller from the above array, a
12467 port/device specification, and an instance of IMedium representing
12468 the medium storage (image file).
12469
12470 For removable media, the storage medium is optional; a medium
12471 attachment with no medium represents a CD/DVD or floppy drive
12472 with no medium inserted. By contrast, hard disk attachments
12473 will always have an IMedium object attached.</li>
12474 <li>Each IMedium in turn points to a storage unit (such as a file
12475 on the host computer or a network resource) that holds actual
12476 data. This location is represented by the <link to="#location"/>
12477 attribute.</li>
12478 </ul>
12479
12480 Existing media are opened using <link to="IVirtualBox::openMedium"/>;
12481 new hard disk media can be created with the VirtualBox API using the
12482 <link to="IVirtualBox::createHardDisk"/> method. Differencing hard
12483 disks (see below) are usually implicitly created by VirtualBox as
12484 needed, but may also be created explicitly using <link to="#createDiffStorage"/>.
12485 VirtualBox cannot create CD/DVD or floppy images (ISO and RAW files); these
12486 should be created with external tools and then opened from within VirtualBox.
12487
12488 Only for CD/DVDs and floppies, an IMedium instance can also represent a host
12489 drive. In that case the <link to="#id" /> attribute contains the UUID of
12490 one of the drives in <link to="IHost::DVDDrives" /> or <link to="IHost::floppyDrives" />.
12491
12492 <h3>Media registries</h3>
12493
12494 When a medium has been opened or created using one of the aforementioned
12495 APIs, it becomes "known" to VirtualBox. Known media can be attached
12496 to virtual machines and re-found through <link to="IVirtualBox::openMedium"/>.
12497 They also appear in the global
12498 <link to="IVirtualBox::hardDisks" />,
12499 <link to="IVirtualBox::DVDImages" /> and
12500 <link to="IVirtualBox::floppyImages" /> arrays.
12501
12502 Prior to VirtualBox 4.0, opening a medium added it to a global media registry
12503 in the VirtualBox.xml file, which was shared between all machines and made
12504 transporting machines and their media from one host to another difficult.
12505
12506 Starting with VirtualBox 4.0, media are only added to a registry when they are
12507 <i>attached</i> to a machine using <link to="IMachine::attachDevice" />. For
12508 backwards compatibility, which registry a medium is added to depends on which
12509 VirtualBox version created a machine:
12510
12511 <ul>
12512 <li>If the medium has first been attached to a machine which was created by
12513 VirtualBox 4.0 or later, it is added to that machine's media registry in
12514 the machine XML settings file. This way all information about a machine's
12515 media attachments is contained in a single file and can be transported
12516 easily.</li>
12517 <li>For older media attachments (i.e. if the medium was first attached to a
12518 machine which was created with a VirtualBox version before 4.0), media
12519 continue to be registered in the global VirtualBox settings file, for
12520 backwards compatibility.</li>
12521 </ul>
12522
12523 See <link to="IVirtualBox::openMedium" /> for more information.
12524
12525 Media are removed from media registries by the <link to="IMedium::close"/>,
12526 <link to="#deleteStorage"/> and <link to="#mergeTo"/> methods.
12527
12528 <h3>Accessibility checks</h3>
12529
12530 VirtualBox defers media accessibility checks until the <link to="#refreshState" />
12531 method is called explicitly on a medium. This is done to make the VirtualBox object
12532 ready for serving requests as fast as possible and let the end-user
12533 application decide if it needs to check media accessibility right away or not.
12534
12535 As a result, when VirtualBox starts up (e.g. the VirtualBox
12536 object gets created for the first time), all known media are in the
12537 "Inaccessible" state, but the value of the <link to="#lastAccessError"/>
12538 attribute is an empty string because no actual accessibility check has
12539 been made yet.
12540
12541 After calling <link to="#refreshState" />, a medium is considered
12542 <i>accessible</i> if its storage unit can be read. In that case, the
12543 <link to="#state"/> attribute has a value of "Created". If the storage
12544 unit cannot be read (for example, because it is located on a disconnected
12545 network resource, or was accidentally deleted outside VirtualBox),
12546 the medium is considered <i>inaccessible</i>, which is indicated by the
12547 "Inaccessible" state. The exact reason why the medium is inaccessible can be
12548 obtained by reading the <link to="#lastAccessError"/> attribute.
12549
12550 <h3>Medium types</h3>
12551
12552 There are five types of medium behavior which are stored in the
12553 <link to="#type"/> attribute (see <link to="MediumType" />) and
12554 which define the medium's behavior with attachments and snapshots.
12555
12556 All media can be also divided in two groups: <i>base</i> media and
12557 <i>differencing</i> media. A base medium contains all sectors of the
12558 medium data in its own storage and therefore can be used independently.
12559 In contrast, a differencing medium is a "delta" to some other medium and
12560 contains only those sectors which differ from that other medium, which is
12561 then called a <i>parent</i>. The differencing medium is said to be
12562 <i>linked to</i> that parent. The parent may be itself a differencing
12563 medium, thus forming a chain of linked media. The last element in that
12564 chain must always be a base medium. Note that several differencing
12565 media may be linked to the same parent medium.
12566
12567 Differencing media can be distinguished from base media by querying the
12568 <link to="#parent"/> attribute: base media do not have parents they would
12569 depend on, so the value of this attribute is always @c null for them.
12570 Using this attribute, it is possible to walk up the medium tree (from the
12571 child medium to its parent). It is also possible to walk down the tree
12572 using the <link to="#children"/> attribute.
12573
12574 Note that the type of all differencing media is "normal"; all other
12575 values are meaningless for them. Base media may be of any type.
12576
12577 <h3>Automatic composition of the file name part</h3>
12578
12579 Another extension to the <link to="IMedium::location"/> attribute is that
12580 there is a possibility to cause VirtualBox to compose a unique value for
12581 the file name part of the location using the UUID of the hard disk. This
12582 applies only to hard disks in <link to="MediumState_NotCreated"/> state,
12583 e.g. before the storage unit is created, and works as follows. You set the
12584 value of the <link to="IMedium::location"/> attribute to a location
12585 specification which only contains the path specification but not the file
12586 name part and ends with either a forward slash or a backslash character.
12587 In response, VirtualBox will generate a new UUID for the hard disk and
12588 compose the file name using the following pattern:
12589 <pre>
12590 &lt;path&gt;/{&lt;uuid&gt;}.&lt;ext&gt;
12591 </pre>
12592 where <tt>&lt;path&gt;</tt> is the supplied path specification,
12593 <tt>&lt;uuid&gt;</tt> is the newly generated UUID and <tt>&lt;ext&gt;</tt>
12594 is the default extension for the storage format of this hard disk. After
12595 that, you may call any of the methods that create a new hard disk storage
12596 unit and they will use the generated UUID and file name.
12597 </desc>
12598
12599 <attribute name="id" type="uuid" mod="string" readonly="yes">
12600 <desc>
12601 UUID of the medium. For a newly created medium, this value is a randomly
12602 generated UUID.
12603
12604 <note>
12605 For media in one of MediumState_NotCreated, MediumState_Creating or
12606 MediumState_Deleting states, the value of this property is undefined
12607 and will most likely be an empty UUID.
12608 </note>
12609 </desc>
12610 </attribute>
12611
12612 <attribute name="description" type="wstring">
12613 <desc>
12614 Optional description of the medium. For a newly created medium the value
12615 of this attribute is an empty string.
12616
12617 Medium types that don't support this attribute will return E_NOTIMPL in
12618 attempt to get or set this attribute's value.
12619
12620 <note>
12621 For some storage types, reading this attribute may return an outdated
12622 (last known) value when <link to="#state"/> is <link
12623 to="MediumState_Inaccessible"/> or <link
12624 to="MediumState_LockedWrite"/> because the value of this attribute is
12625 stored within the storage unit itself. Also note that changing the
12626 attribute value is not possible in such case, as well as when the
12627 medium is the <link to="MediumState_LockedRead"/> state.
12628 </note>
12629 </desc>
12630 </attribute>
12631
12632 <attribute name="state" type="MediumState" readonly="yes">
12633 <desc>
12634 Returns the current medium state, which is the last state set by
12635 the accessibility check performed by <link to="#refreshState"/>.
12636 If that method has not yet been called on the medium, the state
12637 is "Inaccessible"; as opposed to truly inaccessible media, the
12638 value of <link to="#lastAccessError"/> will be an empty string in
12639 that case.
12640
12641 <note>As of version 3.1, this no longer performs an accessibility check
12642 automatically; call <link to="#refreshState"/> for that.
12643 </note>
12644 </desc>
12645 </attribute>
12646
12647 <attribute name="variant" type="unsigned long" readonly="yes">
12648 <desc>
12649 Returns the storage format variant information for this medium
12650 as a combination of the flags described at <link to="MediumVariant" />.
12651 Before <link to="#refreshState"/> is called this method returns
12652 an undefined value.
12653 </desc>
12654 </attribute>
12655
12656 <attribute name="location" type="wstring">
12657 <desc>
12658 Location of the storage unit holding medium data.
12659
12660 The format of the location string is medium type specific. For medium
12661 types using regular files in a host's file system, the location
12662 string is the full file name.
12663
12664 Some medium types may support changing the storage unit location by
12665 simply changing the value of this property. If this operation is not
12666 supported, the implementation will return E_NOTIMPL in attempt to set
12667 this attribute's value.
12668
12669 When setting a value of the location attribute which is a regular file
12670 in the host's file system, the given file name may be either relative to
12671 the <link to="IVirtualBox::homeFolder">VirtualBox home folder</link> or
12672 absolute. Note that if the given location specification does not contain
12673 the file extension part then a proper default extension will be
12674 automatically appended by the implementation depending on the medium type.
12675 </desc>
12676 </attribute>
12677
12678 <attribute name="name" type="wstring" readonly="yes">
12679 <desc>
12680 Name of the storage unit holding medium data.
12681
12682 The returned string is a short version of the <link to="#location"/>
12683 attribute that is suitable for representing the medium in situations
12684 where the full location specification is too long (such as lists
12685 and comboboxes in GUI frontends). This string is also used by frontends
12686 to sort the media list alphabetically when needed.
12687
12688 For example, for locations that are regular files in the host's file
12689 system, the value of this attribute is just the file name (+ extension),
12690 without the path specification.
12691
12692 Note that as opposed to the <link to="#location"/> attribute, the name
12693 attribute will not necessary be unique for a list of media of the
12694 given type and format.
12695 </desc>
12696 </attribute>
12697
12698 <attribute name="deviceType" type="DeviceType" readonly="yes">
12699 <desc>Kind of device (DVD/Floppy/HardDisk) which is applicable to this
12700 medium.</desc>
12701 </attribute>
12702
12703 <attribute name="hostDrive" type="boolean" readonly="yes">
12704 <desc>True if this corresponds to a drive on the host.</desc>
12705 </attribute>
12706
12707 <attribute name="size" type="long long" readonly="yes">
12708 <desc>
12709 Physical size of the storage unit used to hold medium data (in bytes).
12710
12711 <note>
12712 For media whose <link to="#state"/> is <link
12713 to="MediumState_Inaccessible"/>, the value of this property is the
12714 last known size. For <link to="MediumState_NotCreated"/> media,
12715 the returned value is zero.
12716 </note>
12717 </desc>
12718 </attribute>
12719
12720 <attribute name="format" type="wstring" readonly="yes">
12721 <desc>
12722 Storage format of this medium.
12723
12724 The value of this attribute is a string that specifies a backend used
12725 to store medium data. The storage format is defined when you create a
12726 new medium or automatically detected when you open an existing medium,
12727 and cannot be changed later.
12728
12729 The list of all storage formats supported by this VirtualBox
12730 installation can be obtained using
12731 <link to="ISystemProperties::mediumFormats"/>.
12732 </desc>
12733 </attribute>
12734
12735 <attribute name="mediumFormat" type="IMediumFormat" readonly="yes">
12736 <desc>
12737 Storage medium format object corresponding to this medium.
12738
12739 The value of this attribute is a reference to the medium format object
12740 that specifies the backend properties used to store medium data. The
12741 storage format is defined when you create a new medium or automatically
12742 detected when you open an existing medium, and cannot be changed later.
12743
12744 <note>@c null is returned if there is no associated medium format
12745 object. This can e.g. happen for medium objects representing host
12746 drives and other special medium objects.</note>
12747 </desc>
12748 </attribute>
12749
12750 <attribute name="type" type="MediumType">
12751 <desc>
12752 Type (role) of this medium.
12753
12754 The following constraints apply when changing the value of this
12755 attribute:
12756 <ul>
12757 <li>If a medium is attached to a virtual machine (either in the
12758 current state or in one of the snapshots), its type cannot be
12759 changed.
12760 </li>
12761 <li>As long as the medium has children, its type cannot be set
12762 to <link to="MediumType_Writethrough"/>.
12763 </li>
12764 <li>The type of all differencing media is
12765 <link to="MediumType_Normal"/> and cannot be changed.
12766 </li>
12767 </ul>
12768
12769 The type of a newly created or opened medium is set to
12770 <link to="MediumType_Normal"/>, except for DVD and floppy media,
12771 which have a type of <link to="MediumType_Writethrough"/>.
12772 </desc>
12773 </attribute>
12774
12775 <attribute name="allowedTypes" type="MediumType" safearray="yes" readonly="yes">
12776 <desc>
12777 Returns which medium types can selected for this medium.
12778
12779 <result name="E_NOTIMPL">
12780 This attribute is not implemented at the moment.
12781 </result>
12782 </desc>
12783 </attribute>
12784
12785 <attribute name="parent" type="IMedium" readonly="yes">
12786 <desc>
12787 Parent of this medium (the medium this medium is directly based
12788 on).
12789
12790 Only differencing media have parents. For base (non-differencing)
12791 media, @c null is returned.
12792 </desc>
12793 </attribute>
12794
12795 <attribute name="children" type="IMedium" safearray="yes" readonly="yes">
12796 <desc>
12797 Children of this medium (all differencing media directly based
12798 on this medium). A @c null array is returned if this medium
12799 does not have any children.
12800 </desc>
12801 </attribute>
12802
12803 <attribute name="base" type="IMedium" readonly="yes">
12804 <desc>
12805 Base medium of this medium.
12806
12807 If this is a differencing medium, its base medium is the medium
12808 the given medium branch starts from. For all other types of media, this
12809 property returns the medium object itself (i.e. the same object this
12810 property is read on).
12811 </desc>
12812 </attribute>
12813
12814 <attribute name="readOnly" type="boolean" readonly="yes">
12815 <desc>
12816 Returns @c true if this medium is read-only and @c false otherwise.
12817
12818 A medium is considered to be read-only when its contents cannot be
12819 modified without breaking the integrity of other parties that depend on
12820 this medium such as its child media or snapshots of virtual machines
12821 where this medium is attached to these machines. If there are no
12822 children and no such snapshots then there is no dependency and the
12823 medium is not read-only.
12824
12825 The value of this attribute can be used to determine the kind of the
12826 attachment that will take place when attaching this medium to a
12827 virtual machine. If the value is @c false then the medium will
12828 be attached directly. If the value is @c true then the medium
12829 will be attached indirectly by creating a new differencing child
12830 medium for that. See the interface description for more information.
12831
12832 Note that all <link to="MediumType_Immutable">Immutable</link> media
12833 are always read-only while all
12834 <link to="MediumType_Writethrough">Writethrough</link> media are
12835 always not.
12836
12837 <note>
12838 The read-only condition represented by this attribute is related to
12839 the medium type and usage, not to the current
12840 <link to="IMedium::state">medium state</link> and not to the read-only
12841 state of the storage unit.
12842 </note>
12843 </desc>
12844 </attribute>
12845
12846 <attribute name="logicalSize" type="long long" readonly="yes">
12847 <desc>
12848 Logical size of this medium (in bytes), as reported to the
12849 guest OS running inside the virtual machine this medium is
12850 attached to. The logical size is defined when the medium is created
12851 and cannot be changed later.
12852
12853 <note>
12854 Reading this property on a differencing medium will return the size
12855 of its <link to="#base"/> medium.
12856 </note>
12857 <note>
12858 For media whose state is <link to="#state"/> is <link
12859 to="MediumState_Inaccessible"/>, the value of this property is the
12860 last known logical size. For <link to="MediumState_NotCreated"/>
12861 media, the returned value is zero.
12862 </note>
12863 </desc>
12864 </attribute>
12865
12866 <attribute name="autoReset" type="boolean">
12867 <desc>
12868 Whether this differencing medium will be automatically reset each
12869 time a virtual machine it is attached to is powered up. This
12870 attribute is automatically set to @c true for the last
12871 differencing image of an "immutable" medium (see
12872 <link to="MediumType" />).
12873
12874 See <link to="#reset"/> for more information about resetting
12875 differencing media.
12876
12877 <note>
12878 Reading this property on a base (non-differencing) medium will
12879 always @c false. Changing the value of this property in this
12880 case is not supported.
12881 </note>
12882
12883 <result name="VBOX_E_NOT_SUPPORTED">
12884 This is not a differencing medium (when changing the attribute
12885 value).
12886 </result>
12887 </desc>
12888 </attribute>
12889
12890 <attribute name="lastAccessError" type="wstring" readonly="yes">
12891 <desc>
12892 Text message that represents the result of the last accessibility
12893 check performed by <link to="#refreshState"/>.
12894
12895 An empty string is returned if the last accessibility check
12896 was successful or has not yet been called. As a result, if
12897 <link to="#state" /> is "Inaccessible" and this attribute is empty,
12898 then <link to="#refreshState"/> has yet to be called; this is the
12899 default value of media after VirtualBox initialization.
12900 A non-empty string indicates a failure and should normally describe
12901 a reason of the failure (for example, a file read error).
12902 </desc>
12903 </attribute>
12904
12905 <attribute name="machineIds" type="uuid" mod="string" safearray="yes" readonly="yes">
12906 <desc>
12907 Array of UUIDs of all machines this medium is attached to.
12908
12909 A @c null array is returned if this medium is not attached to any
12910 machine or to any machine's snapshot.
12911
12912 <note>
12913 The returned array will include a machine even if this medium is not
12914 attached to that machine in the current state but attached to it in
12915 one of the machine's snapshots. See <link to="#getSnapshotIds"/> for
12916 details.
12917 </note>
12918 </desc>
12919 </attribute>
12920
12921 <method name="setIds">
12922 <desc>
12923 Changes the UUID and parent UUID for a hard disk medium.
12924 </desc>
12925 <param name="setImageId" type="boolean" dir="in">
12926 <desc>
12927 Select whether a new image UUID is set or not.
12928 </desc>
12929 </param>
12930 <param name="imageId" type="uuid" mod="string" dir="in">
12931 <desc>
12932 New UUID for the image. If an empty string is passed, then a new
12933 UUID is automatically created, provided that @a setImageId is @c true.
12934 Specifying a zero UUID is not allowed.
12935 </desc>
12936 </param>
12937 <param name="setParentId" type="boolean" dir="in">
12938 <desc>
12939 Select whether a new parent UUID is set or not.
12940 </desc>
12941 </param>
12942 <param name="parentId" type="uuid" mod="string" dir="in">
12943 <desc>
12944 New parent UUID for the image. If an empty string is passed, then a
12945 new UUID is automatically created, provided @a setParentId is
12946 @c true. A zero UUID is valid.
12947 </desc>
12948 </param>
12949 <result name="E_INVALIDARG">
12950 Invalid parameter combination.
12951 </result>
12952 <result name="VBOX_E_NOT_SUPPORTED">
12953 Medium is not a hard disk medium.
12954 </result>
12955 </method>
12956
12957 <method name="refreshState">
12958 <desc>
12959 If the current medium state (see <link to="MediumState"/>) is one of
12960 "Created", "Inaccessible" or "LockedRead", then this performs an
12961 accessibility check on the medium and sets the value of the <link to="#state"/>
12962 attribute accordingly; that value is also returned for convenience.
12963
12964 For all other state values, this does not perform a refresh but returns
12965 the state only.
12966
12967 The refresh, if performed, may take a long time (several seconds or even
12968 minutes, depending on the storage unit location and format) because it performs an
12969 accessibility check of the storage unit. This check may cause a significant
12970 delay if the storage unit of the given medium is, for example, a file located
12971 on a network share which is not currently accessible due to connectivity
12972 problems. In that case, the call will not return until a timeout
12973 interval defined by the host OS for this operation expires. For this reason,
12974 it is recommended to never read this attribute on the main UI thread to avoid
12975 making the UI unresponsive.
12976
12977 If the last known state of the medium is "Created" and the accessibility
12978 check fails, then the state would be set to "Inaccessible", and
12979 <link to="#lastAccessError"/> may be used to get more details about the
12980 failure. If the state of the medium is "LockedRead", then it remains the
12981 same, and a non-empty value of <link to="#lastAccessError"/> will
12982 indicate a failed accessibility check in this case.
12983
12984 Note that not all medium states are applicable to all medium types.
12985 </desc>
12986 <param name="state" type="MediumState" dir="return">
12987 <desc>
12988 New medium state.
12989 </desc>
12990 </param>
12991 </method>
12992
12993 <method name="getSnapshotIds">
12994 <desc>
12995 Returns an array of UUIDs of all snapshots of the given machine where
12996 this medium is attached to.
12997
12998 If the medium is attached to the machine in the current state, then the
12999 first element in the array will always be the ID of the queried machine
13000 (i.e. the value equal to the @c machineId argument), followed by
13001 snapshot IDs (if any).
13002
13003 If the medium is not attached to the machine in the current state, then
13004 the array will contain only snapshot IDs.
13005
13006 The returned array may be @c null if this medium is not attached
13007 to the given machine at all, neither in the current state nor in one of
13008 the snapshots.
13009 </desc>
13010 <param name="machineId" type="uuid" mod="string" dir="in">
13011 <desc>
13012 UUID of the machine to query.
13013 </desc>
13014 </param>
13015 <param name="snapshotIds" type="uuid" mod="string" safearray="yes" dir="return">
13016 <desc>
13017 Array of snapshot UUIDs of the given machine using this medium.
13018 </desc>
13019 </param>
13020 </method>
13021
13022 <method name="lockRead">
13023 <desc>
13024 Locks this medium for reading.
13025
13026 A read lock is shared: many clients can simultaneously lock the
13027 same medium for reading unless it is already locked for writing (see
13028 <link to="#lockWrite"/>) in which case an error is returned.
13029
13030 When the medium is locked for reading, it cannot be modified
13031 from within VirtualBox. This means that any method that changes
13032 the properties of this medium or contents of the storage unit
13033 will return an error (unless explicitly stated otherwise). That
13034 includes an attempt to start a virtual machine that wants to
13035 write to the the medium.
13036
13037 When the virtual machine is started up, it locks for reading all
13038 media it uses in read-only mode. If some medium cannot be locked
13039 for reading, the startup procedure will fail.
13040 A medium is typically locked for reading while it is used by a running
13041 virtual machine but has a depending differencing image that receives
13042 the actual write operations. This way one base medium can have
13043 multiple child differencing images which can be written to
13044 simultaneously. Read-only media such as DVD and floppy images are
13045 also locked for reading only (so they can be in use by multiple
13046 machines simultaneously).
13047
13048 A medium is also locked for reading when it is the source of a
13049 write operation such as <link to="#cloneTo"/> or <link to="#mergeTo"/>.
13050
13051 The medium locked for reading must be unlocked using the <link
13052 to="#unlockRead"/> method. Calls to <link to="#lockRead"/>
13053 can be nested and must be followed by the same number of paired
13054 <link to="#unlockRead"/> calls.
13055
13056 This method sets the medium state (see <link to="#state"/>) to
13057 "LockedRead" on success. The medium's previous state must be
13058 one of "Created", "Inaccessible" or "LockedRead".
13059
13060 Locking an inaccessible medium is not an error; this method performs
13061 a logical lock that prevents modifications of this medium through
13062 the VirtualBox API, not a physical file-system lock of the underlying
13063 storage unit.
13064
13065 This method returns the current state of the medium
13066 <i>before</i> the operation.
13067
13068 <result name="VBOX_E_INVALID_OBJECT_STATE">
13069 Invalid medium state (e.g. not created, locked, inaccessible,
13070 creating, deleting).
13071 </result>
13072
13073 </desc>
13074 <param name="state" type="MediumState" dir="return">
13075 <desc>
13076 State of the medium after the operation.
13077 </desc>
13078 </param>
13079 </method>
13080
13081 <method name="unlockRead">
13082 <desc>
13083 Cancels the read lock previously set by <link to="#lockRead"/>.
13084
13085 For both success and failure, this method returns the current state
13086 of the medium <i>after</i> the operation.
13087
13088 See <link to="#lockRead"/> for more details.
13089
13090 <result name="VBOX_E_INVALID_OBJECT_STATE">
13091 Medium not locked for reading.
13092 </result>
13093
13094 </desc>
13095 <param name="state" type="MediumState" dir="return">
13096 <desc>
13097 State of the medium after the operation.
13098 </desc>
13099 </param>
13100 </method>
13101
13102 <method name="lockWrite">
13103 <desc>
13104 Locks this medium for writing.
13105
13106 A write lock, as opposed to <link to="#lockRead"/>, is
13107 exclusive: there may be only one client holding a write lock,
13108 and there may be no read locks while the write lock is held.
13109 As a result, read-locking fails if a write lock is held, and
13110 write-locking fails if either a read or another write lock is held.
13111
13112 When a medium is locked for writing, it cannot be modified
13113 from within VirtualBox, and it is not guaranteed that the values
13114 of its properties are up-to-date. Any method that changes the
13115 properties of this medium or contents of the storage unit will
13116 return an error (unless explicitly stated otherwise).
13117
13118 When a virtual machine is started up, it locks for writing all
13119 media it uses to write data to. If any medium could not be locked
13120 for writing, the startup procedure will fail. If a medium has
13121 differencing images, then while the machine is running, only
13122 the last ("leaf") differencing image is locked for writing,
13123 whereas its parents are locked for reading only.
13124
13125 A medium is also locked for writing when it is the target of a
13126 write operation such as <link to="#cloneTo"/> or <link to="#mergeTo"/>.
13127
13128 The medium locked for writing must be unlocked using the <link
13129 to="#unlockWrite"/> method. Write locks <i>cannot</i> be nested.
13130
13131 This method sets the medium state (see <link to="#state"/>) to
13132 "LockedWrite" on success. The medium's previous state must be
13133 either "Created" or "Inaccessible".
13134
13135 Locking an inaccessible medium is not an error; this method performs
13136 a logical lock that prevents modifications of this medium through
13137 the VirtualBox API, not a physical file-system lock of the underlying
13138 storage unit.
13139
13140 For both, success and failure, this method returns the current
13141 state of the medium <i>before</i> the operation.
13142
13143 <result name="VBOX_E_INVALID_OBJECT_STATE">
13144 Invalid medium state (e.g. not created, locked, inaccessible,
13145 creating, deleting).
13146 </result>
13147
13148 </desc>
13149 <param name="state" type="MediumState" dir="return">
13150 <desc>
13151 State of the medium after the operation.
13152 </desc>
13153 </param>
13154 </method>
13155
13156 <method name="unlockWrite">
13157 <desc>
13158 Cancels the write lock previously set by <link to="#lockWrite"/>.
13159
13160 For both success and failure, this method returns the current
13161 state of the medium <i>after</i> the operation.
13162
13163 See <link to="#lockWrite"/> for more details.
13164
13165 <result name="VBOX_E_INVALID_OBJECT_STATE">
13166 Medium not locked for writing.
13167 </result>
13168
13169 </desc>
13170 <param name="state" type="MediumState" dir="return">
13171 <desc>
13172 State of the medium after the operation.
13173 </desc>
13174 </param>
13175 </method>
13176
13177 <method name="close">
13178 <desc>
13179 Closes this medium.
13180
13181 The medium must not be attached to any known virtual machine
13182 and must not have any known child media, otherwise the
13183 operation will fail.
13184
13185 When the medium is successfully closed, it is removed from
13186 the list of registered media, but its storage unit is not
13187 deleted. In particular, this means that this medium can
13188 later be opened again using the <link to="IVirtualBox::openMedium"/>
13189 call.
13190
13191 Note that after this method successfully returns, the given medium
13192 object becomes uninitialized. This means that any attempt
13193 to call any of its methods or attributes will fail with the
13194 <tt>"Object not ready" (E_ACCESSDENIED)</tt> error.
13195
13196 <result name="VBOX_E_INVALID_OBJECT_STATE">
13197 Invalid medium state (other than not created, created or
13198 inaccessible).
13199 </result>
13200 <result name="VBOX_E_OBJECT_IN_USE">
13201 Medium attached to virtual machine.
13202 </result>
13203 <result name="VBOX_E_FILE_ERROR">
13204 Settings file not accessible.
13205 </result>
13206 <result name="VBOX_E_XML_ERROR">
13207 Could not parse the settings file.
13208 </result>
13209
13210 </desc>
13211 </method>
13212
13213 <!-- property methods -->
13214
13215 <method name="getProperty" const="yes">
13216 <desc>
13217 Returns the value of the custom medium property with the given name.
13218
13219 The list of all properties supported by the given medium format can
13220 be obtained with <link to="IMediumFormat::describeProperties"/>.
13221
13222 <note>If this method returns an empty string in @a value, the requested
13223 property is supported but currently not assigned any value.</note>
13224
13225 <result name="VBOX_E_OBJECT_NOT_FOUND">
13226 Requested property does not exist (not supported by the format).
13227 </result>
13228 <result name="E_INVALIDARG">@a name is @c null or empty.</result>
13229 </desc>
13230 <param name="name" type="wstring" dir="in">
13231 <desc>Name of the property to get.</desc>
13232 </param>
13233 <param name="value" type="wstring" dir="return">
13234 <desc>Current property value.</desc>
13235 </param>
13236 </method>
13237
13238 <method name="setProperty">
13239 <desc>
13240 Sets the value of the custom medium property with the given name.
13241
13242 The list of all properties supported by the given medium format can
13243 be obtained with <link to="IMediumFormat::describeProperties"/>.
13244
13245 <note>Setting the property value to @c null or an empty string is
13246 equivalent to deleting the existing value. A default value (if it is
13247 defined for this property) will be used by the format backend in this
13248 case.</note>
13249
13250 <result name="VBOX_E_OBJECT_NOT_FOUND">
13251 Requested property does not exist (not supported by the format).
13252 </result>
13253 <result name="E_INVALIDARG">@a name is @c null or empty.</result>
13254 </desc>
13255 <param name="name" type="wstring" dir="in">
13256 <desc>Name of the property to set.</desc>
13257 </param>
13258 <param name="value" type="wstring" dir="in">
13259 <desc>Property value to set.</desc>
13260 </param>
13261 </method>
13262
13263 <method name="getProperties" const="yes">
13264 <desc>
13265 Returns values for a group of properties in one call.
13266
13267 The names of the properties to get are specified using the @a names
13268 argument which is a list of comma-separated property names or
13269 an empty string if all properties are to be returned.
13270 <note>Currently the value of this argument is ignored and the method
13271 always returns all existing properties.</note>
13272
13273 The list of all properties supported by the given medium format can
13274 be obtained with <link to="IMediumFormat::describeProperties"/>.
13275
13276 The method returns two arrays, the array of property names corresponding
13277 to the @a names argument and the current values of these properties.
13278 Both arrays have the same number of elements with each element at the
13279 given index in the first array corresponds to an element at the same
13280 index in the second array.
13281
13282 For properties that do not have assigned values, an empty string is
13283 returned at the appropriate index in the @a returnValues array.
13284
13285 </desc>
13286 <param name="names" type="wstring" dir="in">
13287 <desc>
13288 Names of properties to get.
13289 </desc>
13290 </param>
13291 <param name="returnNames" type="wstring" safearray="yes" dir="out">
13292 <desc>Names of returned properties.</desc>
13293 </param>
13294 <param name="returnValues" type="wstring" safearray="yes" dir="return">
13295 <desc>Values of returned properties.</desc>
13296 </param>
13297 </method>
13298
13299 <method name="setProperties">
13300 <desc>
13301 Sets values for a group of properties in one call.
13302
13303 The names of the properties to set are passed in the @a names
13304 array along with the new values for them in the @a values array. Both
13305 arrays have the same number of elements with each element at the given
13306 index in the first array corresponding to an element at the same index
13307 in the second array.
13308
13309 If there is at least one property name in @a names that is not valid,
13310 the method will fail before changing the values of any other properties
13311 from the @a names array.
13312
13313 Using this method over <link to="#setProperty"/> is preferred if you
13314 need to set several properties at once since it is more efficient.
13315
13316 The list of all properties supported by the given medium format can
13317 be obtained with <link to="IMediumFormat::describeProperties"/>.
13318
13319 Setting the property value to @c null or an empty string is equivalent
13320 to deleting the existing value. A default value (if it is defined for
13321 this property) will be used by the format backend in this case.
13322 </desc>
13323 <param name="names" type="wstring" safearray="yes" dir="in">
13324 <desc>Names of properties to set.</desc>
13325 </param>
13326 <param name="values" type="wstring" safearray="yes" dir="in">
13327 <desc>Values of properties to set.</desc>
13328 </param>
13329 </method>
13330
13331 <!-- storage methods -->
13332
13333 <method name="createBaseStorage">
13334 <desc>
13335 Starts creating a hard disk storage unit (fixed/dynamic, according
13336 to the variant flags) in in the background. The previous storage unit
13337 created for this object, if any, must first be deleted using
13338 <link to="#deleteStorage"/>, otherwise the operation will fail.
13339
13340 Before the operation starts, the medium is placed in
13341 <link to="MediumState_Creating"/> state. If the create operation
13342 fails, the medium will be placed back in <link to="MediumState_NotCreated"/>
13343 state.
13344
13345 After the returned progress object reports that the operation has
13346 successfully completed, the medium state will be set to <link
13347 to="MediumState_Created"/>, the medium will be remembered by this
13348 VirtualBox installation and may be attached to virtual machines.
13349
13350 <result name="VBOX_E_NOT_SUPPORTED">
13351 The variant of storage creation operation is not supported. See <link
13352 to="IMediumFormat::capabilities"/>.
13353 </result>
13354 </desc>
13355 <param name="logicalSize" type="long long" dir="in">
13356 <desc>Maximum logical size of the medium in bytes.</desc>
13357 </param>
13358 <param name="variant" type="unsigned long" dir="in">
13359 <desc>Exact image variant which should be created (as a combination of
13360 <link to="MediumVariant" /> flags).</desc>
13361 </param>
13362 <param name="progress" type="IProgress" dir="return">
13363 <desc>Progress object to track the operation completion.</desc>
13364 </param>
13365 </method>
13366
13367 <method name="deleteStorage">
13368 <desc>
13369 Starts deleting the storage unit of this medium.
13370
13371 The medium must not be attached to any known virtual machine and must
13372 not have any known child media, otherwise the operation will fail.
13373 It will also fail if there is no storage unit to delete or if deletion
13374 is already in progress, or if the medium is being in use (locked for
13375 read or for write) or inaccessible. Therefore, the only valid state for
13376 this operation to succeed is <link to="MediumState_Created"/>.
13377
13378 Before the operation starts, the medium is placed in
13379 <link to="MediumState_Deleting"/> state and gets removed from the list
13380 of remembered hard disks (media registry). If the delete operation
13381 fails, the medium will be remembered again and placed back to
13382 <link to="MediumState_Created"/> state.
13383
13384 After the returned progress object reports that the operation is
13385 complete, the medium state will be set to
13386 <link to="MediumState_NotCreated"/> and you will be able to use one of
13387 the storage creation methods to create it again.
13388
13389 <see><link to="#close"/></see>
13390
13391 <result name="VBOX_E_OBJECT_IN_USE">
13392 Medium is attached to a virtual machine.
13393 </result>
13394 <result name="VBOX_E_NOT_SUPPORTED">
13395 Storage deletion is not allowed because neither of storage creation
13396 operations are supported. See
13397 <link to="IMediumFormat::capabilities"/>.
13398 </result>
13399
13400 <note>
13401 If the deletion operation fails, it is not guaranteed that the storage
13402 unit still exists. You may check the <link to="IMedium::state"/> value
13403 to answer this question.
13404 </note>
13405 </desc>
13406 <param name="progress" type="IProgress" dir="return">
13407 <desc>Progress object to track the operation completion.</desc>
13408 </param>
13409 </method>
13410
13411 <!-- diff methods -->
13412
13413 <method name="createDiffStorage">
13414 <desc>
13415 Starts creating an empty differencing storage unit based on this
13416 medium in the format and at the location defined by the @a target
13417 argument.
13418
13419 The target medium must be in <link to="MediumState_NotCreated"/>
13420 state (i.e. must not have an existing storage unit). Upon successful
13421 completion, this operation will set the type of the target medium to
13422 <link to="MediumType_Normal"/> and create a storage unit necessary to
13423 represent the differencing medium data in the given format (according
13424 to the storage format of the target object).
13425
13426 After the returned progress object reports that the operation is
13427 successfully complete, the target medium gets remembered by this
13428 VirtualBox installation and may be attached to virtual machines.
13429
13430 <note>
13431 The medium will be set to <link to="MediumState_LockedRead"/>
13432 state for the duration of this operation.
13433 </note>
13434 <result name="VBOX_E_OBJECT_IN_USE">
13435 Medium not in @c NotCreated state.
13436 </result>
13437 </desc>
13438 <param name="target" type="IMedium" dir="in">
13439 <desc>Target medium.</desc>
13440 </param>
13441 <param name="variant" type="unsigned long" dir="in">
13442 <desc>Exact image variant which should be created (as a combination of
13443 <link to="MediumVariant" /> flags).</desc>
13444 </param>
13445 <param name="progress" type="IProgress" dir="return">
13446 <desc>Progress object to track the operation completion.</desc>
13447 </param>
13448 </method>
13449
13450 <method name="mergeTo">
13451 <desc>
13452 Starts merging the contents of this medium and all intermediate
13453 differencing media in the chain to the given target medium.
13454
13455 The target medium must be either a descendant of this medium or
13456 its ancestor (otherwise this method will immediately return a failure).
13457 It follows that there are two logical directions of the merge operation:
13458 from ancestor to descendant (<i>forward merge</i>) and from descendant to
13459 ancestor (<i>backward merge</i>). Let us consider the following medium
13460 chain:
13461
13462 <pre>Base &lt;- Diff_1 &lt;- Diff_2</pre>
13463
13464 Here, calling this method on the <tt>Base</tt> medium object with
13465 <tt>Diff_2</tt> as an argument will be a forward merge; calling it on
13466 <tt>Diff_2</tt> with <tt>Base</tt> as an argument will be a backward
13467 merge. Note that in both cases the contents of the resulting medium
13468 will be the same, the only difference is the medium object that takes
13469 the result of the merge operation. In case of the forward merge in the
13470 above example, the result will be written to <tt>Diff_2</tt>; in case of
13471 the backward merge, the result will be written to <tt>Base</tt>. In
13472 other words, the result of the operation is always stored in the target
13473 medium.
13474
13475 Upon successful operation completion, the storage units of all media in
13476 the chain between this (source) medium and the target medium, including
13477 the source medium itself, will be automatically deleted and the
13478 relevant medium objects (including this medium) will become
13479 uninitialized. This means that any attempt to call any of
13480 their methods or attributes will fail with the
13481 <tt>"Object not ready" (E_ACCESSDENIED)</tt> error. Applied to the above
13482 example, the forward merge of <tt>Base</tt> to <tt>Diff_2</tt> will
13483 delete and uninitialize both <tt>Base</tt> and <tt>Diff_1</tt> media.
13484 Note that <tt>Diff_2</tt> in this case will become a base medium
13485 itself since it will no longer be based on any other medium.
13486
13487 Considering the above, all of the following conditions must be met in
13488 order for the merge operation to succeed:
13489 <ul>
13490 <li>
13491 Neither this (source) medium nor any intermediate
13492 differencing medium in the chain between it and the target
13493 medium is attached to any virtual machine.
13494 </li>
13495 <li>
13496 Neither the source medium nor the target medium is an
13497 <link to="MediumType_Immutable"/> medium.
13498 </li>
13499 <li>
13500 The part of the medium tree from the source medium to the
13501 target medium is a linear chain, i.e. all medium in this
13502 chain have exactly one child which is the next medium in this
13503 chain. The only exception from this rule is the target medium in
13504 the forward merge operation; it is allowed to have any number of
13505 child media because the merge operation will not change its
13506 logical contents (as it is seen by the guest OS or by children).
13507 </li>
13508 <li>
13509 None of the involved media are in
13510 <link to="MediumState_LockedRead"/> or
13511 <link to="MediumState_LockedWrite"/> state.
13512 </li>
13513 </ul>
13514
13515 <note>
13516 This (source) medium and all intermediates will be placed to <link
13517 to="MediumState_Deleting"/> state and the target medium will be
13518 placed to <link to="MediumState_LockedWrite"/> state and for the
13519 duration of this operation.
13520 </note>
13521 </desc>
13522 <param name="target" type="IMedium" dir="in">
13523 <desc>Target medium.</desc>
13524 </param>
13525 <param name="progress" type="IProgress" dir="return">
13526 <desc>Progress object to track the operation completion.</desc>
13527 </param>
13528 </method>
13529
13530 <!-- clone method -->
13531
13532 <method name="cloneTo">
13533 <desc>
13534 Starts creating a clone of this medium in the format and at the
13535 location defined by the @a target argument.
13536
13537 The target medium must be either in <link to="MediumState_NotCreated"/>
13538 state (i.e. must not have an existing storage unit) or in
13539 <link to="MediumState_Created"/> state (i.e. created and not locked, and
13540 big enough to hold the data or else the copy will be partial). Upon
13541 successful completion, the cloned medium will contain exactly the
13542 same sector data as the medium being cloned, except that in the
13543 first case a new UUID for the clone will be randomly generated, and in
13544 the second case the UUID will remain unchanged.
13545
13546 The @a parent argument defines which medium will be the parent
13547 of the clone. Passing a @c null reference indicates that the clone will
13548 be a base image, i.e. completely independent. It is possible to specify
13549 an arbitrary medium for this parameter, including the parent of the
13550 medium which is being cloned. Even cloning to a child of the source
13551 medium is possible. Note that when cloning to an existing image, the
13552 @a parent argument is ignored.
13553
13554 After the returned progress object reports that the operation is
13555 successfully complete, the target medium gets remembered by this
13556 VirtualBox installation and may be attached to virtual machines.
13557
13558 <note>
13559 This medium will be placed to <link to="MediumState_LockedRead"/>
13560 state for the duration of this operation.
13561 </note>
13562 <result name="E_NOTIMPL">
13563 The specified cloning variant is not supported at the moment.
13564 </result>
13565 </desc>
13566 <param name="target" type="IMedium" dir="in">
13567 <desc>Target medium.</desc>
13568 </param>
13569 <param name="variant" type="unsigned long" dir="in">
13570 <desc>Exact image variant which should be created (as a combination of
13571 <link to="MediumVariant" /> flags).</desc>
13572 </param>
13573 <param name="parent" type="IMedium" dir="in">
13574 <desc>Parent of the cloned medium.</desc>
13575 </param>
13576 <param name="progress" type="IProgress" dir="return">
13577 <desc>Progress object to track the operation completion.</desc>
13578 </param>
13579 </method>
13580
13581 <method name="cloneToBase">
13582 <desc>
13583 Starts creating a clone of this medium in the format and at the
13584 location defined by the @a target argument.
13585
13586 The target medium must be either in <link to="MediumState_NotCreated"/>
13587 state (i.e. must not have an existing storage unit) or in
13588 <link to="MediumState_Created"/> state (i.e. created and not locked, and
13589 big enough to hold the data or else the copy will be partial). Upon
13590 successful completion, the cloned medium will contain exactly the
13591 same sector data as the medium being cloned, except that in the
13592 first case a new UUID for the clone will be randomly generated, and in
13593 the second case the UUID will remain unchanged.
13594
13595 The @a parent argument defines which medium will be the parent
13596 of the clone. In this case the clone will be a base image, i.e.
13597 completely independent. It is possible to specify an arbitrary
13598 medium for this parameter, including the parent of the
13599 medium which is being cloned. Even cloning to a child of the source
13600 medium is possible. Note that when cloning to an existing image, the
13601 @a parent argument is ignored.
13602
13603 After the returned progress object reports that the operation is
13604 successfully complete, the target medium gets remembered by this
13605 VirtualBox installation and may be attached to virtual machines.
13606
13607 <note>
13608 This medium will be placed to <link to="MediumState_LockedRead"/>
13609 state for the duration of this operation.
13610 </note>
13611 <result name="E_NOTIMPL">
13612 The specified cloning variant is not supported at the moment.
13613 </result>
13614 </desc>
13615 <param name="target" type="IMedium" dir="in">
13616 <desc>Target medium.</desc>
13617 </param>
13618 <param name="variant" type="unsigned long" dir="in">
13619 <desc>Exact image variant which should be created (as a combination of
13620 <link to="MediumVariant" /> flags).</desc>
13621 </param>
13622 <param name="progress" type="IProgress" dir="return">
13623 <desc>Progress object to track the operation completion.</desc>
13624 </param>
13625 </method>
13626
13627 <!-- other methods -->
13628
13629 <method name="compact">
13630 <desc>
13631 Starts compacting of this medium. This means that the medium is
13632 transformed into a possibly more compact storage representation.
13633 This potentially creates temporary images, which can require a
13634 substantial amount of additional disk space.
13635
13636 This medium will be placed to <link to="MediumState_LockedWrite"/>
13637 state and all its parent media (if any) will be placed to
13638 <link to="MediumState_LockedRead"/> state for the duration of this
13639 operation.
13640
13641 Please note that the results can be either returned straight away,
13642 or later as the result of the background operation via the object
13643 returned via the @a progress parameter.
13644
13645 <result name="VBOX_E_NOT_SUPPORTED">
13646 Medium format does not support compacting (but potentially
13647 needs it).
13648 </result>
13649 </desc>
13650 <param name="progress" type="IProgress" dir="return">
13651 <desc>Progress object to track the operation completion.</desc>
13652 </param>
13653 </method>
13654
13655 <method name="resize">
13656 <desc>
13657 Starts resizing this medium. This means that the nominal size of the
13658 medium is set to the new value. Both increasing and decreasing the
13659 size is possible, and there are no safety checks, since VirtualBox
13660 does not make any assumptions about the medium contents.
13661
13662 Resizing usually needs additional disk space, and possibly also
13663 some temporary disk space. Note that resize does not create a full
13664 temporary copy of the medium, so the additional disk space requirement
13665 is usually much lower than using the clone operation.
13666
13667 This medium will be placed to <link to="MediumState_LockedWrite"/>
13668 state for the duration of this operation.
13669
13670 Please note that the results can be either returned straight away,
13671 or later as the result of the background operation via the object
13672 returned via the @a progress parameter.
13673
13674 <result name="VBOX_E_NOT_SUPPORTED">
13675 Medium format does not support resizing.
13676 </result>
13677 </desc>
13678 <param name="logicalSize" type="long long" dir="in">
13679 <desc>New nominal capacity of the medium in bytes.</desc>
13680 </param>
13681 <param name="progress" type="IProgress" dir="return">
13682 <desc>Progress object to track the operation completion.</desc>
13683 </param>
13684 </method>
13685
13686 <method name="reset">
13687 <desc>
13688 Starts erasing the contents of this differencing medium.
13689
13690 This operation will reset the differencing medium to its initial
13691 state when it does not contain any sector data and any read operation is
13692 redirected to its parent medium. This automatically gets called
13693 during VM power-up for every medium whose <link to="#autoReset" />
13694 attribute is @c true.
13695
13696 The medium will be write-locked for the duration of this operation (see
13697 <link to="#lockWrite" />).
13698
13699 <result name="VBOX_E_NOT_SUPPORTED">
13700 This is not a differencing medium.
13701 </result>
13702 <result name="VBOX_E_INVALID_OBJECT_STATE">
13703 Medium is not in <link to="MediumState_Created"/> or
13704 <link to="MediumState_Inaccessible"/> state.
13705 </result>
13706 </desc>
13707 <param name="progress" type="IProgress" dir="return">
13708 <desc>Progress object to track the operation completion.</desc>
13709 </param>
13710 </method>
13711
13712 </interface>
13713
13714
13715 <!--
13716 // IMediumFormat
13717 /////////////////////////////////////////////////////////////////////////
13718 -->
13719
13720 <enum
13721 name="DataType"
13722 uuid="d90ea51e-a3f1-4a01-beb1-c1723c0d3ba7"
13723 >
13724 <const name="Int32" value="0"/>
13725 <const name="Int8" value="1"/>
13726 <const name="String" value="2"/>
13727 </enum>
13728
13729 <enum
13730 name="DataFlags"
13731 uuid="86884dcf-1d6b-4f1b-b4bf-f5aa44959d60"
13732 >
13733 <const name="None" value="0x00"/>
13734 <const name="Mandatory" value="0x01"/>
13735 <const name="Expert" value="0x02"/>
13736 <const name="Array" value="0x04"/>
13737 <const name="FlagMask" value="0x07"/>
13738 </enum>
13739
13740 <enum
13741 name="MediumFormatCapabilities"
13742 uuid="7342ba79-7ce0-4d94-8f86-5ed5a185d9bd"
13743 >
13744 <desc>
13745 Medium format capability flags.
13746 </desc>
13747
13748 <const name="Uuid" value="0x01">
13749 <desc>
13750 Supports UUIDs as expected by VirtualBox code.
13751 </desc>
13752 </const>
13753
13754 <const name="CreateFixed" value="0x02">
13755 <desc>
13756 Supports creating fixed size images, allocating all space instantly.
13757 </desc>
13758 </const>
13759
13760 <const name="CreateDynamic" value="0x04">
13761 <desc>
13762 Supports creating dynamically growing images, allocating space on
13763 demand.
13764 </desc>
13765 </const>
13766
13767 <const name="CreateSplit2G" value="0x08">
13768 <desc>
13769 Supports creating images split in chunks of a bit less than 2 GBytes.
13770 </desc>
13771 </const>
13772
13773 <const name="Differencing" value="0x10">
13774 <desc>
13775 Supports being used as a format for differencing media (see <link
13776 to="IMedium::createDiffStorage"/>).
13777 </desc>
13778 </const>
13779
13780 <const name="Asynchronous" value="0x20">
13781 <desc>
13782 Supports asynchronous I/O operations for at least some configurations.
13783 </desc>
13784 </const>
13785
13786 <const name="File" value="0x40">
13787 <desc>
13788 The format backend operates on files (the <link to="IMedium::location"/>
13789 attribute of the medium specifies a file used to store medium
13790 data; for a list of supported file extensions see
13791 <link to="IMediumFormat::describeFileExtensions"/>).
13792 </desc>
13793 </const>
13794
13795 <const name="Properties" value="0x80">
13796 <desc>
13797 The format backend uses the property interface to configure the storage
13798 location and properties (the <link to="IMediumFormat::describeProperties"/>
13799 method is used to get access to properties supported by the given medium format).
13800 </desc>
13801 </const>
13802
13803 <const name="TcpNetworking" value="0x100">
13804 <desc>
13805 The format backend uses the TCP networking interface for network access.
13806 </desc>
13807 </const>
13808
13809 <const name="VFS" value="0x200">
13810 <desc>
13811 The format backend supports virtual filesystem functionality.
13812 </desc>
13813 </const>
13814
13815 <const name="CapabilityMask" value="0x3FF"/>
13816 </enum>
13817
13818 <interface
13819 name="IMediumFormat" extends="$unknown"
13820 uuid="9bd5b655-ea47-4637-99f3-aad0948be35b"
13821 wsmap="managed"
13822 >
13823 <desc>
13824 The IMediumFormat interface represents a medium format.
13825
13826 Each medium format has an associated backend which is used to handle
13827 media stored in this format. This interface provides information
13828 about the properties of the associated backend.
13829
13830 Each medium format is identified by a string represented by the
13831 <link to="#id"/> attribute. This string is used in calls like
13832 <link to="IVirtualBox::createHardDisk"/> to specify the desired
13833 format.
13834
13835 The list of all supported medium formats can be obtained using
13836 <link to="ISystemProperties::mediumFormats"/>.
13837
13838 <see><link to="IMedium"/></see>
13839 </desc>
13840
13841 <attribute name="id" type="wstring" readonly="yes">
13842 <desc>
13843 Identifier of this format.
13844
13845 The format identifier is a non-@c null non-empty ASCII string. Note that
13846 this string is case-insensitive. This means that, for example, all of
13847 the following strings:
13848 <pre>
13849 "VDI"
13850 "vdi"
13851 "VdI"</pre>
13852 refer to the same medium format.
13853
13854 This string is used in methods of other interfaces where it is necessary
13855 to specify a medium format, such as
13856 <link to="IVirtualBox::createHardDisk"/>.
13857 </desc>
13858 </attribute>
13859
13860 <attribute name="name" type="wstring" readonly="yes">
13861 <desc>
13862 Human readable description of this format.
13863
13864 Mainly for use in file open dialogs.
13865 </desc>
13866 </attribute>
13867
13868 <attribute name="capabilities" type="unsigned long" readonly="yes">
13869 <desc>
13870 Capabilities of the format as a set of bit flags.
13871
13872 For the meaning of individual capability flags see
13873 <link to="MediumFormatCapabilities"/>.
13874 </desc>
13875 </attribute>
13876
13877 <method name="describeFileExtensions">
13878 <desc>
13879 Returns two arrays describing the supported file extensions.
13880
13881 The first array contains the supported extensions and the seconds one
13882 the type each extension supports. Both have the same size.
13883
13884 Note that some backends do not work on files, so this array may be
13885 empty.
13886
13887 <see><link to="IMediumFormat::capabilities"/></see>
13888 </desc>
13889 <param name="extensions" type="wstring" safearray="yes" dir="out">
13890 <desc>The array of supported extensions.</desc>
13891 </param>
13892 <param name="type" type="DeviceType" safearray="yes" dir="out">
13893 <desc>The array which indicates the device type for every given extension.</desc>
13894 </param>
13895 </method>
13896
13897 <method name="describeProperties" const="yes">
13898 <desc>
13899 Returns several arrays describing the properties supported by this
13900 format.
13901
13902 An element with the given index in each array describes one
13903 property. Thus, the number of elements in each returned array is the
13904 same and corresponds to the number of supported properties.
13905
13906 The returned arrays are filled in only if the
13907 <link to="MediumFormatCapabilities_Properties"/> flag is set.
13908 All arguments must be non-@c null.
13909
13910 <see><link to="DataType"/>, <link to="DataFlags"/></see>
13911 </desc>
13912
13913 <param name="names" type="wstring" safearray="yes" dir="out">
13914 <desc>Array of property names.</desc>
13915 </param>
13916 <param name="description" type="wstring" safearray="yes" dir="out">
13917 <desc>Array of property descriptions.</desc>
13918 </param>
13919 <param name="types" type="DataType" safearray="yes" dir="out">
13920 <desc>Array of property types.</desc>
13921 </param>
13922 <param name="flags" type="unsigned long" safearray="yes" dir="out">
13923 <desc>Array of property flags.</desc>
13924 </param>
13925 <param name="defaults" type="wstring" safearray="yes" dir="out">
13926 <desc>Array of default property values.</desc>
13927 </param>
13928 </method>
13929
13930 </interface>
13931
13932
13933 <!--
13934 // IKeyboard
13935 /////////////////////////////////////////////////////////////////////////
13936 -->
13937
13938 <interface
13939 name="IKeyboard" extends="$unknown"
13940 uuid="f6916ec5-a881-4237-898f-7de58cf88672"
13941 wsmap="managed"
13942 >
13943 <desc>
13944 The IKeyboard interface represents the virtual machine's keyboard. Used
13945 in <link to="IConsole::keyboard"/>.
13946
13947 Use this interface to send keystrokes or the Ctrl-Alt-Del sequence
13948 to the virtual machine.
13949
13950 </desc>
13951 <method name="putScancode">
13952 <desc>Sends a scancode to the keyboard.
13953
13954 <result name="VBOX_E_IPRT_ERROR">
13955 Could not send scan code to virtual keyboard.
13956 </result>
13957
13958 </desc>
13959 <param name="scancode" type="long" dir="in"/>
13960 </method>
13961
13962 <method name="putScancodes">
13963 <desc>Sends an array of scancodes to the keyboard.
13964
13965 <result name="VBOX_E_IPRT_ERROR">
13966 Could not send all scan codes to virtual keyboard.
13967 </result>
13968
13969 </desc>
13970 <param name="scancodes" type="long" dir="in" safearray="yes"/>
13971 <param name="codesStored" type="unsigned long" dir="return"/>
13972 </method>
13973
13974 <method name="putCAD">
13975 <desc>Sends the Ctrl-Alt-Del sequence to the keyboard. This
13976 function is nothing special, it is just a convenience function
13977 calling <link to="IKeyboard::putScancodes"/> with the proper scancodes.
13978
13979 <result name="VBOX_E_IPRT_ERROR">
13980 Could not send all scan codes to virtual keyboard.
13981 </result>
13982
13983 </desc>
13984 </method>
13985
13986 <attribute name="eventSource" type="IEventSource" readonly="yes">
13987 <desc>
13988 Event source for keyboard events.
13989 </desc>
13990 </attribute>
13991
13992 </interface>
13993
13994
13995 <!--
13996 // IMouse
13997 /////////////////////////////////////////////////////////////////////////
13998 -->
13999
14000 <enum
14001 name="MouseButtonState"
14002 uuid="9ee094b8-b28a-4d56-a166-973cb588d7f8"
14003 >
14004 <desc>
14005 Mouse button state.
14006 </desc>
14007
14008 <const name="LeftButton" value="0x01"/>
14009 <const name="RightButton" value="0x02"/>
14010 <const name="MiddleButton" value="0x04"/>
14011 <const name="WheelUp" value="0x08"/>
14012 <const name="WheelDown" value="0x10"/>
14013 <const name="XButton1" value="0x20"/>
14014 <const name="XButton2" value="0x40"/>
14015 <const name="MouseStateMask" value="0x7F"/>
14016 </enum>
14017
14018 <interface
14019 name="IMouse" extends="$unknown"
14020 uuid="05044a52-7811-4f00-ae3a-0ab7ff707b10"
14021 wsmap="managed"
14022 >
14023 <desc>
14024 The IMouse interface represents the virtual machine's mouse. Used in
14025 <link to="IConsole::mouse"/>.
14026
14027 Through this interface, the virtual machine's virtual mouse can be
14028 controlled.
14029 </desc>
14030
14031 <attribute name="absoluteSupported" type="boolean" readonly="yes">
14032 <desc>
14033 Whether the guest OS supports absolute mouse pointer positioning
14034 or not.
14035 <note>
14036 You can use the <link to="IMouseCapabilityChangedEvent"/>
14037 event to be instantly informed about changes of this attribute
14038 during virtual machine execution.
14039 </note>
14040 <see><link to="#putMouseEventAbsolute"/></see>
14041 </desc>
14042 </attribute>
14043
14044 <attribute name="relativeSupported" type="boolean" readonly="yes">
14045 <desc>
14046 Whether the guest OS supports relative mouse pointer positioning
14047 or not.
14048 <note>
14049 You can use the <link to="IMouseCapabilityChangedEvent"/>
14050 event to be instantly informed about changes of this attribute
14051 during virtual machine execution.
14052 </note>
14053 <see><link to="#putMouseEvent"/></see>
14054 </desc>
14055 </attribute>
14056
14057 <attribute name="needsHostCursor" type="boolean" readonly="yes">
14058 <desc>
14059 Whether the guest OS can currently switch to drawing it's own mouse
14060 cursor on demand.
14061 <note>
14062 You can use the <link to="IMouseCapabilityChangedEvent"/>
14063 event to be instantly informed about changes of this attribute
14064 during virtual machine execution.
14065 </note>
14066 <see><link to="#putMouseEvent"/></see>
14067 </desc>
14068 </attribute>
14069
14070 <method name="putMouseEvent">
14071 <desc>
14072 Initiates a mouse event using relative pointer movements
14073 along x and y axis.
14074
14075 <result name="E_ACCESSDENIED">
14076 Console not powered up.
14077 </result>
14078 <result name="VBOX_E_IPRT_ERROR">
14079 Could not send mouse event to virtual mouse.
14080 </result>
14081
14082 </desc>
14083
14084 <param name="dx" type="long" dir="in">
14085 <desc>
14086 Amount of pixels the mouse should move to the right.
14087 Negative values move the mouse to the left.
14088 </desc>
14089 </param>
14090 <param name="dy" type="long" dir="in">
14091 <desc>
14092 Amount of pixels the mouse should move downwards.
14093 Negative values move the mouse upwards.
14094 </desc>
14095 </param>
14096 <param name="dz" type="long" dir="in">
14097 <desc>
14098 Amount of mouse wheel moves.
14099 Positive values describe clockwise wheel rotations,
14100 negative values describe counterclockwise rotations.
14101 </desc>
14102 </param>
14103 <param name="dw" type="long" dir="in">
14104 <desc>
14105 Amount of horizontal mouse wheel moves.
14106 Positive values describe a movement to the left,
14107 negative values describe a movement to the right.
14108 </desc>
14109 </param>
14110 <param name="buttonState" type="long" dir="in">
14111 <desc>
14112 The current state of mouse buttons. Every bit represents
14113 a mouse button as follows:
14114 <table>
14115 <tr><td>Bit 0 (<tt>0x01</tt>)</td><td>left mouse button</td></tr>
14116 <tr><td>Bit 1 (<tt>0x02</tt>)</td><td>right mouse button</td></tr>
14117 <tr><td>Bit 2 (<tt>0x04</tt>)</td><td>middle mouse button</td></tr>
14118 </table>
14119 A value of <tt>1</tt> means the corresponding button is pressed.
14120 otherwise it is released.
14121 </desc>
14122 </param>
14123 </method>
14124
14125 <method name="putMouseEventAbsolute">
14126 <desc>
14127 Positions the mouse pointer using absolute x and y coordinates.
14128 These coordinates are expressed in pixels and
14129 start from <tt>[1,1]</tt> which corresponds to the top left
14130 corner of the virtual display.
14131
14132 <result name="E_ACCESSDENIED">
14133 Console not powered up.
14134 </result>
14135 <result name="VBOX_E_IPRT_ERROR">
14136 Could not send mouse event to virtual mouse.
14137 </result>
14138
14139 <note>
14140 This method will have effect only if absolute mouse
14141 positioning is supported by the guest OS.
14142 </note>
14143
14144 <see><link to="#absoluteSupported"/></see>
14145 </desc>
14146
14147 <param name="x" type="long" dir="in">
14148 <desc>
14149 X coordinate of the pointer in pixels, starting from @c 1.
14150 </desc>
14151 </param>
14152 <param name="y" type="long" dir="in">
14153 <desc>
14154 Y coordinate of the pointer in pixels, starting from @c 1.
14155 </desc>
14156 </param>
14157 <param name="dz" type="long" dir="in">
14158 <desc>
14159 Amount of mouse wheel moves.
14160 Positive values describe clockwise wheel rotations,
14161 negative values describe counterclockwise rotations.
14162 </desc>
14163 </param>
14164 <param name="dw" type="long" dir="in">
14165 <desc>
14166 Amount of horizontal mouse wheel moves.
14167 Positive values describe a movement to the left,
14168 negative values describe a movement to the right.
14169 </desc>
14170 </param>
14171 <param name="buttonState" type="long" dir="in">
14172 <desc>
14173 The current state of mouse buttons. Every bit represents
14174 a mouse button as follows:
14175 <table>
14176 <tr><td>Bit 0 (<tt>0x01</tt>)</td><td>left mouse button</td></tr>
14177 <tr><td>Bit 1 (<tt>0x02</tt>)</td><td>right mouse button</td></tr>
14178 <tr><td>Bit 2 (<tt>0x04</tt>)</td><td>middle mouse button</td></tr>
14179 </table>
14180 A value of @c 1 means the corresponding button is pressed.
14181 otherwise it is released.
14182 </desc>
14183 </param>
14184 </method>
14185
14186 <attribute name="eventSource" type="IEventSource" readonly="yes">
14187 <desc>
14188 Event source for mouse events.
14189 </desc>
14190 </attribute>
14191
14192 </interface>
14193
14194 <!--
14195 // IDisplay
14196 /////////////////////////////////////////////////////////////////////////
14197 -->
14198
14199 <enum
14200 name="FramebufferPixelFormat"
14201 uuid="7acfd5ed-29e3-45e3-8136-73c9224f3d2d"
14202 >
14203 <desc>
14204 Format of the video memory buffer. Constants represented by this enum can
14205 be used to test for particular values of <link
14206 to="IFramebuffer::pixelFormat"/>. See also <link
14207 to="IFramebuffer::requestResize"/>.
14208
14209 See also www.fourcc.org for more information about FOURCC pixel formats.
14210 </desc>
14211
14212 <const name="Opaque" value="0">
14213 <desc>
14214 Unknown buffer format (the user may not assume any particular format of
14215 the buffer).
14216 </desc>
14217 </const>
14218 <const name="FOURCC_RGB" value="0x32424752">
14219 <desc>
14220 Basic RGB format (<link to="IFramebuffer::bitsPerPixel"/> determines the
14221 bit layout).
14222 </desc>
14223 </const>
14224 </enum>
14225
14226 <interface
14227 name="IFramebuffer" extends="$unknown"
14228 uuid="b7ed347a-5765-40a0-ae1c-f543eb4ddeaf"
14229 wsmap="suppress"
14230 >
14231 <attribute name="address" type="octet" mod="ptr" readonly="yes">
14232 <desc>Address of the start byte of the frame buffer.</desc>
14233 </attribute>
14234
14235 <attribute name="width" type="unsigned long" readonly="yes">
14236 <desc>Frame buffer width, in pixels.</desc>
14237 </attribute>
14238
14239 <attribute name="height" type="unsigned long" readonly="yes">
14240 <desc>Frame buffer height, in pixels.</desc>
14241 </attribute>
14242
14243 <attribute name="bitsPerPixel" type="unsigned long" readonly="yes">
14244 <desc>
14245 Color depth, in bits per pixel. When <link to="#pixelFormat"/> is <link
14246 to="FramebufferPixelFormat_FOURCC_RGB">FOURCC_RGB</link>, valid values
14247 are: 8, 15, 16, 24 and 32.
14248 </desc>
14249 </attribute>
14250
14251 <attribute name="bytesPerLine" type="unsigned long" readonly="yes">
14252 <desc>
14253 Scan line size, in bytes. When <link to="#pixelFormat"/> is <link
14254 to="FramebufferPixelFormat_FOURCC_RGB">FOURCC_RGB</link>, the
14255 size of the scan line must be aligned to 32 bits.
14256 </desc>
14257 </attribute>
14258
14259 <attribute name="pixelFormat" type="unsigned long" readonly="yes">
14260 <desc>
14261 Frame buffer pixel format. It's either one of the values defined by <link
14262 to="FramebufferPixelFormat"/> or a raw FOURCC code.
14263 <note>
14264 This attribute must never return <link
14265 to="FramebufferPixelFormat_Opaque"/> -- the format of the buffer
14266 <link to="#address"/> points to must be always known.
14267 </note>
14268 </desc>
14269 </attribute>
14270
14271 <attribute name="usesGuestVRAM" type="boolean" readonly="yes">
14272 <desc>
14273 Defines whether this frame buffer uses the virtual video card's memory
14274 buffer (guest VRAM) directly or not. See <link
14275 to="IFramebuffer::requestResize"/> for more information.
14276 </desc>
14277 </attribute>
14278
14279 <attribute name="heightReduction" type="unsigned long" readonly="yes">
14280 <desc>
14281 Hint from the frame buffer about how much of the standard
14282 screen height it wants to use for itself. This information is
14283 exposed to the guest through the VESA BIOS and VMMDev interface
14284 so that it can use it for determining its video mode table. It
14285 is not guaranteed that the guest respects the value.
14286 </desc>
14287 </attribute>
14288
14289 <attribute name="overlay" type="IFramebufferOverlay" readonly="yes">
14290 <desc>
14291 An alpha-blended overlay which is superposed over the frame buffer.
14292 The initial purpose is to allow the display of icons providing
14293 information about the VM state, including disk activity, in front
14294 ends which do not have other means of doing that. The overlay is
14295 designed to controlled exclusively by IDisplay. It has no locking
14296 of its own, and any changes made to it are not guaranteed to be
14297 visible until the affected portion of IFramebuffer is updated. The
14298 overlay can be created lazily the first time it is requested. This
14299 attribute can also return @c null to signal that the overlay is not
14300 implemented.
14301 </desc>
14302 </attribute>
14303
14304 <attribute name="winId" type="long long" readonly="yes">
14305 <desc>
14306 Platform-dependent identifier of the window where context of this
14307 frame buffer is drawn, or zero if there's no such window.
14308 </desc>
14309 </attribute>
14310
14311 <method name="lock">
14312 <desc>
14313 Locks the frame buffer.
14314 Gets called by the IDisplay object where this frame buffer is
14315 bound to.
14316 </desc>
14317 </method>
14318
14319 <method name="unlock">
14320 <desc>
14321 Unlocks the frame buffer.
14322 Gets called by the IDisplay object where this frame buffer is
14323 bound to.
14324 </desc>
14325 </method>
14326
14327 <method name="notifyUpdate">
14328 <desc>
14329 Informs about an update.
14330 Gets called by the display object where this buffer is
14331 registered.
14332 </desc>
14333 <param name="x" type="unsigned long" dir="in"/>
14334 <param name="y" type="unsigned long" dir="in"/>
14335 <param name="width" type="unsigned long" dir="in"/>
14336 <param name="height" type="unsigned long" dir="in"/>
14337 </method>
14338
14339 <method name="requestResize">
14340 <desc>
14341 Requests a size and pixel format change.
14342
14343 There are two modes of working with the video buffer of the virtual
14344 machine. The <i>indirect</i> mode implies that the IFramebuffer
14345 implementation allocates a memory buffer for the requested display mode
14346 and provides it to the virtual machine. In <i>direct</i> mode, the
14347 IFramebuffer implementation uses the memory buffer allocated and owned
14348 by the virtual machine. This buffer represents the video memory of the
14349 emulated video adapter (so called <i>guest VRAM</i>). The direct mode is
14350 usually faster because the implementation gets a raw pointer to the
14351 guest VRAM buffer which it can directly use for visualizing the contents
14352 of the virtual display, as opposed to the indirect mode where the
14353 contents of guest VRAM are copied to the memory buffer provided by
14354 the implementation every time a display update occurs.
14355
14356 It is important to note that the direct mode is really fast only when
14357 the implementation uses the given guest VRAM buffer directly, for
14358 example, by blitting it to the window representing the virtual machine's
14359 display, which saves at least one copy operation comparing to the
14360 indirect mode. However, using the guest VRAM buffer directly is not
14361 always possible: the format and the color depth of this buffer may be
14362 not supported by the target window, or it may be unknown (opaque) as in
14363 case of text or non-linear multi-plane VGA video modes. In this case,
14364 the indirect mode (that is always available) should be used as a
14365 fallback: when the guest VRAM contents are copied to the
14366 implementation-provided memory buffer, color and format conversion is
14367 done automatically by the underlying code.
14368
14369 The @a pixelFormat parameter defines whether the direct mode is
14370 available or not. If @a pixelFormat is <link
14371 to="FramebufferPixelFormat_Opaque"/> then direct access to the guest
14372 VRAM buffer is not available -- the @a VRAM, @a bitsPerPixel and
14373 @a bytesPerLine parameters must be ignored and the implementation must use
14374 the indirect mode (where it provides its own buffer in one of the
14375 supported formats). In all other cases, @a pixelFormat together with
14376 @a bitsPerPixel and @a bytesPerLine define the format of the video memory
14377 buffer pointed to by the @a VRAM parameter and the implementation is
14378 free to choose which mode to use. To indicate that this frame buffer uses
14379 the direct mode, the implementation of the <link to="#usesGuestVRAM"/>
14380 attribute must return @c true and <link to="#address"/> must
14381 return exactly the same address that is passed in the @a VRAM parameter
14382 of this method; otherwise it is assumed that the indirect strategy is
14383 chosen.
14384
14385 The @a width and @a height parameters represent the size of the
14386 requested display mode in both modes. In case of indirect mode, the
14387 provided memory buffer should be big enough to store data of the given
14388 display mode. In case of direct mode, it is guaranteed that the given
14389 @a VRAM buffer contains enough space to represent the display mode of the
14390 given size. Note that this frame buffer's <link to="#width"/> and <link
14391 to="#height"/> attributes must return exactly the same values as
14392 passed to this method after the resize is completed (see below).
14393
14394 The @a finished output parameter determines if the implementation has
14395 finished resizing the frame buffer or not. If, for some reason, the
14396 resize cannot be finished immediately during this call, @a finished
14397 must be set to @c false, and the implementation must call
14398 <link to="IDisplay::resizeCompleted"/> after it has returned from
14399 this method as soon as possible. If @a finished is @c false, the
14400 machine will not call any frame buffer methods until
14401 <link to="IDisplay::resizeCompleted"/> is called.
14402
14403 Note that if the direct mode is chosen, the <link to="#bitsPerPixel"/>,
14404 <link to="#bytesPerLine"/> and <link to="#pixelFormat"/> attributes of
14405 this frame buffer must return exactly the same values as specified in the
14406 parameters of this method, after the resize is completed. If the
14407 indirect mode is chosen, these attributes must return values describing
14408 the format of the implementation's own memory buffer <link
14409 to="#address"/> points to. Note also that the <link to="#bitsPerPixel"/>
14410 value must always correlate with <link to="#pixelFormat"/>. Note that
14411 the <link to="#pixelFormat"/> attribute must never return <link
14412 to="FramebufferPixelFormat_Opaque"/> regardless of the selected mode.
14413
14414 <note>
14415 This method is called by the IDisplay object under the
14416 <link to="#lock"/> provided by this IFramebuffer
14417 implementation. If this method returns @c false in @a finished, then
14418 this lock is not released until
14419 <link to="IDisplay::resizeCompleted"/> is called.
14420 </note>
14421 </desc>
14422 <param name="screenId" type="unsigned long" dir="in">
14423 <desc>
14424 Logical screen number. Must be used in the corresponding call to
14425 <link to="IDisplay::resizeCompleted"/> if this call is made.
14426 </desc>
14427 </param>
14428 <param name="pixelFormat" type="unsigned long" dir="in">
14429 <desc>
14430 Pixel format of the memory buffer pointed to by @a VRAM.
14431 See also <link to="FramebufferPixelFormat"/>.
14432 </desc>
14433 </param>
14434 <param name="VRAM" type="octet" mod="ptr" dir="in">
14435 <desc>Pointer to the virtual video card's VRAM (may be @c null).</desc>
14436 </param>
14437 <param name="bitsPerPixel" type="unsigned long" dir="in">
14438 <desc>Color depth, bits per pixel.</desc>
14439 </param>
14440 <param name="bytesPerLine" type="unsigned long" dir="in">
14441 <desc>Size of one scan line, in bytes.</desc>
14442 </param>
14443 <param name="width" type="unsigned long" dir="in">
14444 <desc>Width of the guest display, in pixels.</desc>
14445 </param>
14446 <param name="height" type="unsigned long" dir="in">
14447 <desc>Height of the guest display, in pixels.</desc>
14448 </param>
14449 <param name="finished" type="boolean" dir="return">
14450 <desc>
14451 Can the VM start using the new frame buffer immediately
14452 after this method returns or it should wait for
14453 <link to="IDisplay::resizeCompleted"/>.
14454 </desc>
14455 </param>
14456 </method>
14457
14458 <method name="videoModeSupported">
14459 <desc>
14460 Returns whether the frame buffer implementation is willing to
14461 support a given video mode. In case it is not able to render
14462 the video mode (or for some reason not willing), it should
14463 return @c false. Usually this method is called when the guest
14464 asks the VMM device whether a given video mode is supported
14465 so the information returned is directly exposed to the guest.
14466 It is important that this method returns very quickly.
14467 </desc>
14468 <param name="width" type="unsigned long" dir="in"/>
14469 <param name="height" type="unsigned long" dir="in"/>
14470 <param name="bpp" type="unsigned long" dir="in"/>
14471 <param name="supported" type="boolean" dir="return"/>
14472 </method>
14473
14474 <method name="getVisibleRegion">
14475 <desc>
14476 Returns the visible region of this frame buffer.
14477
14478 If the @a rectangles parameter is @c null then the value of the
14479 @a count parameter is ignored and the number of elements necessary to
14480 describe the current visible region is returned in @a countCopied.
14481
14482 If @a rectangles is not @c null but @a count is less
14483 than the required number of elements to store region data, the method
14484 will report a failure. If @a count is equal or greater than the
14485 required number of elements, then the actual number of elements copied
14486 to the provided array will be returned in @a countCopied.
14487
14488 <note>
14489 The address of the provided array must be in the process space of
14490 this IFramebuffer object.
14491 </note>
14492 <note>
14493 Method not yet implemented.
14494 </note>
14495 </desc>
14496 <param name="rectangles" type="octet" mod="ptr" dir="in">
14497 <desc>Pointer to the @c RTRECT array to receive region data.</desc>
14498 </param>
14499 <param name="count" type="unsigned long" dir="in">
14500 <desc>Number of @c RTRECT elements in the @a rectangles array.</desc>
14501 </param>
14502 <param name="countCopied" type="unsigned long" dir="return">
14503 <desc>Number of elements copied to the @a rectangles array.</desc>
14504 </param>
14505 </method>
14506
14507 <method name="setVisibleRegion">
14508 <desc>
14509 Suggests a new visible region to this frame buffer. This region
14510 represents the area of the VM display which is a union of regions of
14511 all top-level windows of the guest operating system running inside the
14512 VM (if the Guest Additions for this system support this
14513 functionality). This information may be used by the frontends to
14514 implement the seamless desktop integration feature.
14515
14516 <note>
14517 The address of the provided array must be in the process space of
14518 this IFramebuffer object.
14519 </note>
14520 <note>
14521 The IFramebuffer implementation must make a copy of the provided
14522 array of rectangles.
14523 </note>
14524 <note>
14525 Method not yet implemented.
14526 </note>
14527 </desc>
14528 <param name="rectangles" type="octet" mod="ptr" dir="in">
14529 <desc>Pointer to the @c RTRECT array.</desc>
14530 </param>
14531 <param name="count" type="unsigned long" dir="in">
14532 <desc>Number of @c RTRECT elements in the @a rectangles array.</desc>
14533 </param>
14534 </method>
14535
14536 <method name="processVHWACommand">
14537 <desc>
14538 Posts a Video HW Acceleration Command to the frame buffer for processing.
14539 The commands used for 2D video acceleration (DDraw surface creation/destroying, blitting, scaling, color conversion, overlaying, etc.)
14540 are posted from quest to the host to be processed by the host hardware.
14541
14542 <note>
14543 The address of the provided command must be in the process space of
14544 this IFramebuffer object.
14545 </note>
14546 </desc>
14547
14548 <param name="command" type="octet" mod="ptr" dir="in">
14549 <desc>Pointer to VBOXVHWACMD containing the command to execute.</desc>
14550 </param>
14551 </method>
14552
14553 </interface>
14554
14555 <interface
14556 name="IFramebufferOverlay" extends="IFramebuffer"
14557 uuid="0bcc1c7e-e415-47d2-bfdb-e4c705fb0f47"
14558 wsmap="suppress"
14559 >
14560 <desc>
14561 The IFramebufferOverlay interface represents an alpha blended overlay
14562 for displaying status icons above an IFramebuffer. It is always created
14563 not visible, so that it must be explicitly shown. It only covers a
14564 portion of the IFramebuffer, determined by its width, height and
14565 co-ordinates. It is always in packed pixel little-endian 32bit ARGB (in
14566 that order) format, and may be written to directly. Do re-read the
14567 width though, after setting it, as it may be adjusted (increased) to
14568 make it more suitable for the front end.
14569 </desc>
14570 <attribute name="x" type="unsigned long" readonly="yes">
14571 <desc>X position of the overlay, relative to the frame buffer.</desc>
14572 </attribute>
14573
14574 <attribute name="y" type="unsigned long" readonly="yes">
14575 <desc>Y position of the overlay, relative to the frame buffer.</desc>
14576 </attribute>
14577
14578 <attribute name="visible" type="boolean" readonly="no">
14579 <desc>
14580 Whether the overlay is currently visible.
14581 </desc>
14582 </attribute>
14583
14584 <attribute name="alpha" type="unsigned long" readonly="no">
14585 <desc>
14586 The global alpha value for the overlay. This may or may not be
14587 supported by a given front end.
14588 </desc>
14589 </attribute>
14590
14591 <method name="move">
14592 <desc>
14593 Changes the overlay's position relative to the IFramebuffer.
14594 </desc>
14595 <param name="x" type="unsigned long" dir="in"/>
14596 <param name="y" type="unsigned long" dir="in"/>
14597 </method>
14598
14599 </interface>
14600
14601 <interface
14602 name="IDisplay" extends="$unknown"
14603 uuid="b83ee395-8679-40ca-8d60-1a0cbe724930"
14604 wsmap="managed"
14605 >
14606 <desc>
14607 The IDisplay interface represents the virtual machine's display.
14608
14609 The object implementing this interface is contained in each
14610 <link to="IConsole::display"/> attribute and represents the visual
14611 output of the virtual machine.
14612
14613 The virtual display supports pluggable output targets represented by the
14614 IFramebuffer interface. Examples of the output target are a window on
14615 the host computer or an RDP session's display on a remote computer.
14616 </desc>
14617 <method name="getScreenResolution">
14618 <desc>Queries display width, height and color depth for given screen.</desc>
14619 <param name="screenId" type="unsigned long" dir="in"/>
14620 <param name="width" type="unsigned long" dir="out"/>
14621 <param name="height" type="unsigned long" dir="out"/>
14622 <param name="bitsPerPixel" type="unsigned long" dir="out"/>
14623 </method>
14624
14625 <method name="setFramebuffer">
14626 <desc>
14627 Sets the framebuffer for given screen.
14628 </desc>
14629 <param name="screenId" type="unsigned long" dir="in"/>
14630 <param name="framebuffer" type="IFramebuffer" dir="in"/>
14631 </method>
14632
14633 <method name="getFramebuffer">
14634 <desc>
14635 Queries the framebuffer for given screen.
14636 </desc>
14637 <param name="screenId" type="unsigned long" dir="in"/>
14638 <param name="framebuffer" type="IFramebuffer" dir="out"/>
14639 <param name="xOrigin" type="long" dir="out"/>
14640 <param name="yOrigin" type="long" dir="out"/>
14641 </method>
14642
14643 <method name="setVideoModeHint">
14644 <desc>
14645 Asks VirtualBox to request the given video mode from
14646 the guest. This is just a hint and it cannot be guaranteed
14647 that the requested resolution will be used. Guest Additions
14648 are required for the request to be seen by guests. The caller
14649 should issue the request and wait for a resolution change and
14650 after a timeout retry.
14651
14652 Specifying @c 0 for either @a width, @a height or @a bitsPerPixel
14653 parameters means that the corresponding values should be taken from the
14654 current video mode (i.e. left unchanged).
14655
14656 If the guest OS supports multi-monitor configuration then the @a display
14657 parameter specifies the number of the guest display to send the hint to:
14658 @c 0 is the primary display, @c 1 is the first secondary and
14659 so on. If the multi-monitor configuration is not supported, @a display
14660 must be @c 0.
14661
14662 <result name="E_INVALIDARG">
14663 The @a display is not associated with any monitor.
14664 </result>
14665
14666 </desc>
14667 <param name="display" type="unsigned long" dir="in">
14668 <desc>
14669 The number of the guest display to send the hint to.
14670 </desc>
14671 </param>
14672 <param name="enabled" type="boolean" dir="in">
14673 <desc>
14674 @c True, if this guest screen is enabled,
14675 @c False otherwise.
14676 </desc>
14677 </param>
14678 <param name="changeOrigin" type="boolean" dir="in">
14679 <desc>
14680 @c True, if the origin of the guest screen should be changed,
14681 @c False otherwise.
14682 </desc>
14683 </param>
14684 <param name="originX" type="long" dir="in">
14685 <desc>
14686 The X origin of the guest screen.
14687 </desc>
14688 </param>
14689 <param name="originY" type="long" dir="in">
14690 <desc>
14691 The Y origin of the guest screen.
14692 </desc>
14693 </param>
14694 <param name="width" type="unsigned long" dir="in"/>
14695 <param name="height" type="unsigned long" dir="in"/>
14696 <param name="bitsPerPixel" type="unsigned long" dir="in"/>
14697 </method>
14698
14699 <method name="setSeamlessMode">
14700 <desc>
14701 Enables or disables seamless guest display rendering (seamless desktop
14702 integration) mode.
14703 <note>
14704 Calling this method has no effect if <link
14705 to="IGuest::getFacilityStatus"/> with facility @c Seamless
14706 does not return @c Active.
14707 </note>
14708 </desc>
14709 <param name="enabled" type="boolean" dir="in"/>
14710 </method>
14711
14712 <method name="takeScreenShot">
14713 <desc>
14714 Takes a screen shot of the requested size and copies it to the
14715 32-bpp buffer allocated by the caller and pointed to by @a address.
14716 A pixel consists of 4 bytes in order: B, G, R, 0.
14717
14718 <note>This API can be used only locally by a VM process through the
14719 COM/XPCOM C++ API as it requires pointer support. It is not
14720 available for scripting langages, Java or any webservice clients.
14721 Unless you are writing a new VM frontend use
14722 <link to="#takeScreenShotToArray" />.
14723 </note>
14724
14725 <result name="E_NOTIMPL">
14726 Feature not implemented.
14727 </result>
14728 <result name="VBOX_E_IPRT_ERROR">
14729 Could not take a screenshot.
14730 </result>
14731
14732 </desc>
14733 <param name="screenId" type="unsigned long" dir="in"/>
14734 <param name="address" type="octet" mod="ptr" dir="in"/>
14735 <param name="width" type="unsigned long" dir="in"/>
14736 <param name="height" type="unsigned long" dir="in"/>
14737 </method>
14738
14739 <method name="takeScreenShotToArray">
14740 <desc>
14741 Takes a guest screen shot of the requested size and returns it as
14742 an array of bytes in uncompressed 32-bit RGBA format.
14743 A pixel consists of 4 bytes in order: R, G, B, 0xFF.
14744
14745 This API is slow, but could be the only option to get guest screenshot
14746 for scriptable languages not allowed to manipulate with addresses
14747 directly.
14748
14749 <result name="E_NOTIMPL">
14750 Feature not implemented.
14751 </result>
14752 <result name="VBOX_E_IPRT_ERROR">
14753 Could not take a screenshot.
14754 </result>
14755 </desc>
14756 <param name="screenId" type="unsigned long" dir="in">
14757 <desc>
14758 Monitor to take screenshot from.
14759 </desc>
14760 </param>
14761 <param name="width" type="unsigned long" dir="in">
14762 <desc>
14763 Desired image width.
14764 </desc>
14765 </param>
14766 <param name="height" type="unsigned long" dir="in">
14767 <desc>
14768 Desired image height.
14769 </desc>
14770 </param>
14771 <param name="screenData" type="octet" dir="return" safearray="yes">
14772 <desc>
14773 Array with resulting screen data.
14774 </desc>
14775 </param>
14776 </method>
14777
14778 <method name="takeScreenShotPNGToArray">
14779 <desc>
14780 Takes a guest screen shot of the requested size and returns it as
14781 PNG image in array.
14782
14783 <result name="E_NOTIMPL">
14784 Feature not implemented.
14785 </result>
14786 <result name="VBOX_E_IPRT_ERROR">
14787 Could not take a screenshot.
14788 </result>
14789 </desc>
14790 <param name="screenId" type="unsigned long" dir="in">
14791 <desc>
14792 Monitor to take the screenshot from.
14793 </desc>
14794 </param>
14795 <param name="width" type="unsigned long" dir="in">
14796 <desc>
14797 Desired image width.
14798 </desc>
14799 </param>
14800 <param name="height" type="unsigned long" dir="in">
14801 <desc>
14802 Desired image height.
14803 </desc>
14804 </param>
14805 <param name="screenData" type="octet" dir="return" safearray="yes">
14806 <desc>
14807 Array with resulting screen data.
14808 </desc>
14809 </param>
14810 </method>
14811
14812 <method name="drawToScreen">
14813 <desc>
14814 Draws a 32-bpp image of the specified size from the given buffer
14815 to the given point on the VM display.
14816
14817 <result name="E_NOTIMPL">
14818 Feature not implemented.
14819 </result>
14820 <result name="VBOX_E_IPRT_ERROR">
14821 Could not draw to screen.
14822 </result>
14823
14824 </desc>
14825 <param name="screenId" type="unsigned long" dir="in">
14826 <desc>
14827 Monitor to take the screenshot from.
14828 </desc>
14829 </param>
14830 <param name="address" type="octet" mod="ptr" dir="in">
14831 <desc>
14832 Address to store the screenshot to
14833 </desc>
14834 </param>
14835 <param name="x" type="unsigned long" dir="in">
14836 <desc>
14837 Relative to the screen top left corner.
14838 </desc>
14839 </param>
14840 <param name="y" type="unsigned long" dir="in">
14841 <desc>
14842 Relative to the screen top left corner.
14843 </desc>
14844 </param>
14845 <param name="width" type="unsigned long" dir="in">
14846 <desc>
14847 Desired image width.
14848 </desc>
14849 </param>
14850 <param name="height" type="unsigned long" dir="in">
14851 <desc>
14852 Desired image height.
14853 </desc>
14854 </param>
14855 </method>
14856
14857 <method name="invalidateAndUpdate">
14858 <desc>
14859 Does a full invalidation of the VM display and instructs the VM
14860 to update it.
14861
14862 <result name="VBOX_E_IPRT_ERROR">
14863 Could not invalidate and update screen.
14864 </result>
14865
14866 </desc>
14867 </method>
14868
14869 <method name="resizeCompleted">
14870 <desc>
14871 Signals that a framebuffer has completed the resize operation.
14872
14873 <result name="VBOX_E_NOT_SUPPORTED">
14874 Operation only valid for external frame buffers.
14875 </result>
14876
14877 </desc>
14878 <param name="screenId" type="unsigned long" dir="in"/>
14879 </method>
14880
14881 <method name="completeVHWACommand">
14882 <desc>
14883 Signals that the Video HW Acceleration command has completed.
14884 </desc>
14885
14886 <param name="command" type="octet" mod="ptr" dir="in">
14887 <desc>Pointer to VBOXVHWACMD containing the completed command.</desc>
14888 </param>
14889 </method>
14890
14891 <method name="viewportChanged">
14892 <desc>
14893 Signals that framebuffer window viewport has changed.
14894
14895 <result name="E_INVALIDARG">
14896 The specified viewport data is invalid.
14897 </result>
14898
14899 </desc>
14900
14901 <param name="screenId" type="unsigned long" dir="in">
14902 <desc>
14903 Monitor to take the screenshot from.
14904 </desc>
14905 </param>
14906 <param name="x" type="unsigned long" dir="in">
14907 <desc>
14908 Framebuffer x offset.
14909 </desc>
14910 </param>
14911 <param name="y" type="unsigned long" dir="in">
14912 <desc>
14913 Framebuffer y offset.
14914 </desc>
14915 </param>
14916 <param name="width" type="unsigned long" dir="in">
14917 <desc>
14918 Viewport width.
14919 </desc>
14920 </param>
14921 <param name="height" type="unsigned long" dir="in">
14922 <desc>
14923 Viewport height.
14924 </desc>
14925 </param>
14926 </method>
14927 </interface>
14928
14929 <!--
14930 // INetworkAdapter
14931 /////////////////////////////////////////////////////////////////////////
14932 -->
14933
14934 <enum
14935 name="NetworkAttachmentType"
14936 uuid="2ac4bc71-6b82-417a-acd1-f7426d2570d6"
14937 >
14938 <desc>
14939 Network attachment type.
14940 </desc>
14941
14942 <const name="Null" value="0">
14943 <desc>Null value, also means "not attached".</desc>
14944 </const>
14945 <const name="NAT" value="1"/>
14946 <const name="Bridged" value="2"/>
14947 <const name="Internal" value="3"/>
14948 <const name="HostOnly" value="4"/>
14949 <const name="Generic" value="5"/>
14950 </enum>
14951
14952 <enum
14953 name="NetworkAdapterType"
14954 uuid="3c2281e4-d952-4e87-8c7d-24379cb6a81c"
14955 >
14956 <desc>
14957 Network adapter type.
14958 </desc>
14959
14960 <const name="Null" value="0">
14961 <desc>Null value (never used by the API).</desc>
14962 </const>
14963 <const name="Am79C970A" value="1">
14964 <desc>AMD PCNet-PCI II network card (Am79C970A).</desc>
14965 </const>
14966 <const name="Am79C973" value="2">
14967 <desc>AMD PCNet-FAST III network card (Am79C973).</desc>
14968 </const>
14969 <const name="I82540EM" value="3">
14970 <desc>Intel PRO/1000 MT Desktop network card (82540EM).</desc>
14971 </const>
14972 <const name="I82543GC" value="4">
14973 <desc>Intel PRO/1000 T Server network card (82543GC).</desc>
14974 </const>
14975 <const name="I82545EM" value="5">
14976 <desc>Intel PRO/1000 MT Server network card (82545EM).</desc>
14977 </const>
14978 <const name="Virtio" value="6">
14979 <desc>Virtio network device.</desc>
14980 </const>
14981 </enum>
14982
14983 <enum
14984 name="NetworkAdapterPromiscModePolicy"
14985 uuid="c963768a-376f-4c85-8d84-d8ced4b7269e"
14986 >
14987 <desc>
14988 The promiscuous mode policy of an interface.
14989 </desc>
14990
14991 <const name="Deny" value="1">
14992 <desc>Deny promiscuous mode requests.</desc>
14993 </const>
14994 <const name="AllowNetwork" value="2">
14995 <desc>
14996 Allow promicuous mode, but restrict the scope it to the internal
14997 network so that it only applies to other VMs.
14998 </desc>
14999 </const>
15000 <const name="AllowAll" value="3">
15001 <desc>
15002 Allow promicuous mode, include unrelated traffic going over the wire
15003 and internally on the host.
15004 </desc>
15005 </const>
15006 </enum>
15007
15008 <interface
15009 name="INetworkAdapter" extends="$unknown"
15010 uuid="efa0f965-63c7-4c60-afdf-b1cc9943b9c0"
15011 wsmap="managed"
15012 >
15013 <desc>
15014 Represents a virtual network adapter that is attached to a virtual machine.
15015 Each virtual machine has a fixed number of network adapter slots with one
15016 instance of this attached to each of them. Call
15017 <link to="IMachine::getNetworkAdapter" /> to get the network adapter that
15018 is attached to a given slot in a given machine.
15019
15020 Each network adapter can be in one of five attachment modes, which are
15021 represented by the <link to="NetworkAttachmentType" /> enumeration;
15022 see the <link to="#attachmentType" /> attribute.
15023 </desc>
15024
15025 <attribute name="adapterType" type="NetworkAdapterType">
15026 <desc>
15027 Type of the virtual network adapter. Depending on this value,
15028 VirtualBox will provide a different virtual network hardware
15029 to the guest.
15030 </desc>
15031 </attribute>
15032
15033 <attribute name="slot" type="unsigned long" readonly="yes">
15034 <desc>
15035 Slot number this adapter is plugged into. Corresponds to
15036 the value you pass to <link to="IMachine::getNetworkAdapter"/>
15037 to obtain this instance.
15038 </desc>
15039 </attribute>
15040
15041 <attribute name="enabled" type="boolean">
15042 <desc>
15043 Flag whether the network adapter is present in the
15044 guest system. If disabled, the virtual guest hardware will
15045 not contain this network adapter. Can only be changed when
15046 the VM is not running.
15047 </desc>
15048 </attribute>
15049
15050 <attribute name="MACAddress" type="wstring">
15051 <desc>
15052 Ethernet MAC address of the adapter, 12 hexadecimal characters. When setting
15053 it to @c null or an empty string, VirtualBox will generate a unique MAC address.
15054 </desc>
15055 </attribute>
15056
15057 <attribute name="attachmentType" type="NetworkAttachmentType">
15058 <desc>
15059 Sets/Gets network attachment type of this network adapter.
15060 </desc>
15061 </attribute>
15062
15063 <attribute name="bridgedInterface" type="wstring">
15064 <desc>
15065 Name of the network interface the VM should be bridged to.
15066 </desc>
15067 </attribute>
15068
15069 <attribute name="hostOnlyInterface" type="wstring">
15070 <desc>
15071 Name of the host only network interface the VM is attached to.
15072 </desc>
15073 </attribute>
15074
15075 <attribute name="internalNetwork" type="wstring">
15076 <desc>
15077 Name of the internal network the VM is attached to.
15078 </desc>
15079 </attribute>
15080
15081 <attribute name="NATNetwork" type="wstring">
15082 <desc>
15083 Name of the NAT network the VM is attached to.
15084 </desc>
15085 </attribute>
15086
15087 <attribute name="genericDriver" type="wstring">
15088 <desc>
15089 Name of the driver to use for the "Generic" network attachment type.
15090 </desc>
15091 </attribute>
15092
15093 <attribute name="cableConnected" type="boolean">
15094 <desc>
15095 Flag whether the adapter reports the cable as connected or not.
15096 It can be used to report offline situations to a VM.
15097 </desc>
15098 </attribute>
15099
15100 <attribute name="lineSpeed" type="unsigned long">
15101 <desc>
15102 Line speed reported by custom drivers, in units of 1 kbps.
15103 </desc>
15104 </attribute>
15105
15106 <attribute name="promiscModePolicy" type="NetworkAdapterPromiscModePolicy">
15107 <desc>
15108 The promiscuous mode policy of the network adapter when attached to an
15109 internal network, host only network or a bridge.
15110 </desc>
15111 </attribute>
15112
15113 <attribute name="traceEnabled" type="boolean">
15114 <desc>
15115 Flag whether network traffic from/to the network card should be traced.
15116 Can only be toggled when the VM is turned off.
15117 </desc>
15118 </attribute>
15119
15120 <attribute name="traceFile" type="wstring">
15121 <desc>
15122 Filename where a network trace will be stored. If not set, VBox-pid.pcap
15123 will be used.
15124 </desc>
15125 </attribute>
15126
15127 <attribute name="NATEngine" type="INATEngine" readonly="yes">
15128 <desc>
15129 Points to the NAT engine which handles the network address translation
15130 for this interface. This is active only when the interface actually uses
15131 NAT.
15132 </desc>
15133 </attribute>
15134
15135 <attribute name="bootPriority" type="unsigned long">
15136 <desc>
15137 Network boot priority of the adapter. Priority 1 is highest. If not set,
15138 the priority is considered to be at the lowest possible setting.
15139 </desc>
15140 </attribute>
15141
15142 <attribute name="bandwidthGroup" type="IBandwidthGroup">
15143 <desc>The bandwidth group this network adapter is assigned to.</desc>
15144 </attribute>
15145
15146 <!-- property methods -->
15147
15148 <method name="getProperty" const="yes">
15149 <desc>
15150 Returns the value of the network attachment property with the given name.
15151
15152 If the requested data @a key does not exist, this function will
15153 succeed and return an empty string in the @a value argument.
15154
15155 <result name="E_INVALIDARG">@a name is @c null or empty.</result>
15156 </desc>
15157 <param name="key" type="wstring" dir="in">
15158 <desc>Name of the property to get.</desc>
15159 </param>
15160 <param name="value" type="wstring" dir="return">
15161 <desc>Current property value.</desc>
15162 </param>
15163 </method>
15164
15165 <method name="setProperty">
15166 <desc>
15167 Sets the value of the network attachment property with the given name.
15168
15169 Setting the property value to @c null or an empty string is equivalent
15170 to deleting the existing value.
15171
15172 <result name="E_INVALIDARG">@a name is @c null or empty.</result>
15173 </desc>
15174 <param name="key" type="wstring" dir="in">
15175 <desc>Name of the property to set.</desc>
15176 </param>
15177 <param name="value" type="wstring" dir="in">
15178 <desc>Property value to set.</desc>
15179 </param>
15180 </method>
15181
15182 <method name="getProperties" const="yes">
15183 <desc>
15184 Returns values for a group of properties in one call.
15185
15186 The names of the properties to get are specified using the @a names
15187 argument which is a list of comma-separated property names or
15188 an empty string if all properties are to be returned.
15189 <note>Currently the value of this argument is ignored and the method
15190 always returns all existing properties.</note>
15191
15192 The method returns two arrays, the array of property names corresponding
15193 to the @a names argument and the current values of these properties.
15194 Both arrays have the same number of elements with each element at the
15195 given index in the first array corresponds to an element at the same
15196 index in the second array.
15197 </desc>
15198 <param name="names" type="wstring" dir="in">
15199 <desc>
15200 Names of properties to get.
15201 </desc>
15202 </param>
15203 <param name="returnNames" type="wstring" safearray="yes" dir="out">
15204 <desc>Names of returned properties.</desc>
15205 </param>
15206 <param name="returnValues" type="wstring" safearray="yes" dir="return">
15207 <desc>Values of returned properties.</desc>
15208 </param>
15209 </method>
15210
15211 </interface>
15212
15213
15214 <!--
15215 // ISerialPort
15216 /////////////////////////////////////////////////////////////////////////
15217 -->
15218
15219 <enum
15220 name="PortMode"
15221 uuid="533b5fe3-0185-4197-86a7-17e37dd39d76"
15222 >
15223 <desc>
15224 The PortMode enumeration represents possible communication modes for
15225 the virtual serial port device.
15226 </desc>
15227
15228 <const name="Disconnected" value="0">
15229 <desc>Virtual device is not attached to any real host device.</desc>
15230 </const>
15231 <const name="HostPipe" value="1">
15232 <desc>Virtual device is attached to a host pipe.</desc>
15233 </const>
15234 <const name="HostDevice" value="2">
15235 <desc>Virtual device is attached to a host device.</desc>
15236 </const>
15237 <const name="RawFile" value="3">
15238 <desc>Virtual device is attached to a raw file.</desc>
15239 </const>
15240 </enum>
15241
15242 <interface
15243 name="ISerialPort" extends="$unknown"
15244 uuid="937f6970-5103-4745-b78e-d28dcf1479a8"
15245 wsmap="managed"
15246 >
15247
15248 <desc>
15249 The ISerialPort interface represents the virtual serial port device.
15250
15251 The virtual serial port device acts like an ordinary serial port
15252 inside the virtual machine. This device communicates to the real
15253 serial port hardware in one of two modes: host pipe or host device.
15254
15255 In host pipe mode, the #path attribute specifies the path to the pipe on
15256 the host computer that represents a serial port. The #server attribute
15257 determines if this pipe is created by the virtual machine process at
15258 machine startup or it must already exist before starting machine
15259 execution.
15260
15261 In host device mode, the #path attribute specifies the name of the
15262 serial port device on the host computer.
15263
15264 There is also a third communication mode: the disconnected mode. In this
15265 mode, the guest OS running inside the virtual machine will be able to
15266 detect the serial port, but all port write operations will be discarded
15267 and all port read operations will return no data.
15268
15269 <see><link to="IMachine::getSerialPort"/></see>
15270 </desc>
15271
15272 <attribute name="slot" type="unsigned long" readonly="yes">
15273 <desc>
15274 Slot number this serial port is plugged into. Corresponds to
15275 the value you pass to <link to="IMachine::getSerialPort"/>
15276 to obtain this instance.
15277 </desc>
15278 </attribute>
15279
15280 <attribute name="enabled" type="boolean">
15281 <desc>
15282 Flag whether the serial port is enabled. If disabled,
15283 the serial port will not be reported to the guest OS.
15284 </desc>
15285 </attribute>
15286
15287 <attribute name="IOBase" type="unsigned long">
15288 <desc>Base I/O address of the serial port.</desc>
15289 </attribute>
15290
15291 <attribute name="IRQ" type="unsigned long">
15292 <desc>IRQ number of the serial port.</desc>
15293 </attribute>
15294
15295 <attribute name="hostMode" type="PortMode">
15296 <desc>
15297 How is this port connected to the host.
15298 <note>
15299 Changing this attribute may fail if the conditions for
15300 <link to="#path"/> are not met.
15301 </note>
15302 </desc>
15303 </attribute>
15304
15305 <attribute name="server" type="boolean">
15306 <desc>
15307 Flag whether this serial port acts as a server (creates a new pipe on
15308 the host) or as a client (uses the existing pipe). This attribute is
15309 used only when <link to="#hostMode"/> is PortMode_HostPipe.
15310 </desc>
15311 </attribute>
15312
15313 <attribute name="path" type="wstring">
15314 <desc>
15315 Path to the serial port's pipe on the host when <link to="ISerialPort::hostMode"/> is
15316 PortMode_HostPipe, or the host serial device name when
15317 <link to="ISerialPort::hostMode"/> is PortMode_HostDevice. For both
15318 cases, setting a @c null or empty string as the attribute's value
15319 is an error. Otherwise, the value of this property is ignored.
15320 </desc>
15321 </attribute>
15322
15323 </interface>
15324
15325 <!--
15326 // IParallelPort
15327 /////////////////////////////////////////////////////////////////////////
15328 -->
15329
15330 <interface
15331 name="IParallelPort" extends="$unknown"
15332 uuid="0c925f06-dd10-4b77-8de8-294d738c3214"
15333 wsmap="managed"
15334 >
15335
15336 <desc>
15337 The IParallelPort interface represents the virtual parallel port device.
15338
15339 The virtual parallel port device acts like an ordinary parallel port
15340 inside the virtual machine. This device communicates to the real
15341 parallel port hardware using the name of the parallel device on the host
15342 computer specified in the #path attribute.
15343
15344 Each virtual parallel port device is assigned a base I/O address and an
15345 IRQ number that will be reported to the guest operating system and used
15346 to operate the given parallel port from within the virtual machine.
15347
15348 <see><link to="IMachine::getParallelPort"/></see>
15349 </desc>
15350
15351 <attribute name="slot" type="unsigned long" readonly="yes">
15352 <desc>
15353 Slot number this parallel port is plugged into. Corresponds to
15354 the value you pass to <link to="IMachine::getParallelPort"/>
15355 to obtain this instance.
15356 </desc>
15357 </attribute>
15358
15359 <attribute name="enabled" type="boolean">
15360 <desc>
15361 Flag whether the parallel port is enabled. If disabled,
15362 the parallel port will not be reported to the guest OS.
15363 </desc>
15364 </attribute>
15365
15366 <attribute name="IOBase" type="unsigned long">
15367 <desc>Base I/O address of the parallel port.</desc>
15368 </attribute>
15369
15370 <attribute name="IRQ" type="unsigned long">
15371 <desc>IRQ number of the parallel port.</desc>
15372 </attribute>
15373
15374 <attribute name="path" type="wstring">
15375 <desc>
15376 Host parallel device name. If this parallel port is enabled, setting a
15377 @c null or an empty string as this attribute's value will result in
15378 an error.
15379 </desc>
15380 </attribute>
15381
15382 </interface>
15383
15384
15385 <!--
15386 // IMachineDebugger
15387 /////////////////////////////////////////////////////////////////////////
15388 -->
15389
15390 <interface
15391 name="IMachineDebugger" extends="$unknown"
15392 uuid="a9abbb7c-d678-43b2-bed2-19ec0e32303d"
15393 wsmap="suppress"
15394 >
15395 <method name="dumpGuestCore">
15396 <desc>
15397 Takes a core dump of the guest.
15398
15399 See include/VBox/dbgfcorefmt.h for details on the file format.
15400 </desc>
15401 <param name="filename" type="wstring" dir="in">
15402 <desc>
15403 The name of the output file. The file must not exist.
15404 </desc>
15405 </param>
15406 <param name="compression" type="wstring" dir="in">
15407 <desc>
15408 Reserved for future compression method indicator.
15409 </desc>
15410 </param>
15411 </method>
15412
15413 <method name="dumpHostProcessCore">
15414 <desc>
15415 Takes a core dump of the VM process on the host.
15416
15417 This feature is not implemented in the 4.0.0 release but it may show up
15418 in a dot release.
15419 </desc>
15420 <param name="filename" type="wstring" dir="in">
15421 <desc>
15422 The name of the output file. The file must not exist.
15423 </desc>
15424 </param>
15425 <param name="compression" type="wstring" dir="in">
15426 <desc>
15427 Reserved for future compression method indicator.
15428 </desc>
15429 </param>
15430 </method>
15431
15432 <method name="info">
15433 <desc>
15434 Interfaces with the info dumpers (DBGFInfo).
15435
15436 This feature is not implemented in the 4.0.0 release but it may show up
15437 in a dot release.
15438 </desc>
15439 <param name="name" type="wstring" dir="in">
15440 <desc>
15441 The name of the info item.
15442 </desc>
15443 </param>
15444 <param name="args" type="wstring" dir="in">
15445 <desc>
15446 Arguments to the info dumper.
15447 </desc>
15448 </param>
15449 <param name="info" type="wstring" dir="return">
15450 <desc>
15451 The into string.
15452 </desc>
15453 </param>
15454 </method>
15455
15456 <method name="injectNMI">
15457 <desc>
15458 Inject an NMI into a running VT-x/AMD-V VM.
15459 </desc>
15460 </method>
15461
15462 <method name="modifyLogGroups">
15463 <desc>
15464 Modifies the group settings of the debug or release logger.
15465 </desc>
15466 <param name="settings" type="wstring" dir="in">
15467 <desc>
15468 The group settings string. See iprt/log.h for details. To target the
15469 release logger, prefix the string with "release:".
15470 </desc>
15471 </param>
15472 </method>
15473
15474 <method name="modifyLogFlags">
15475 <desc>
15476 Modifies the debug or release logger flags.
15477 </desc>
15478 <param name="settings" type="wstring" dir="in">
15479 <desc>
15480 The flags settings string. See iprt/log.h for details. To target the
15481 release logger, prefix the string with "release:".
15482 </desc>
15483 </param>
15484 </method>
15485
15486 <method name="modifyLogDestinations">
15487 <desc>
15488 Modifies the debug or release logger destinations.
15489 </desc>
15490 <param name="settings" type="wstring" dir="in">
15491 <desc>
15492 The destination settings string. See iprt/log.h for details. To target the
15493 release logger, prefix the string with "release:".
15494 </desc>
15495 </param>
15496 </method>
15497
15498 <method name="readPhysicalMemory">
15499 <desc>
15500 Reads guest physical memory, no side effects (MMIO++).
15501
15502 This feature is not implemented in the 4.0.0 release but may show up
15503 in a dot release.
15504 </desc>
15505 <param name="address" type="long long" dir="in">
15506 <desc>The guest physical address.</desc>
15507 </param>
15508 <param name="size" type="unsigned long" dir="in">
15509 <desc>The number of bytes to read.</desc>
15510 </param>
15511 <param name="bytes" type="octet" safearray="yes" dir="return">
15512 <desc>The bytes read.</desc>
15513 </param>
15514 </method>
15515
15516 <method name="writePhysicalMemory">
15517 <desc>
15518 Writes guest physical memory, access handles (MMIO++) are ignored.
15519
15520 This feature is not implemented in the 4.0.0 release but may show up
15521 in a dot release.
15522 </desc>
15523 <param name="address" type="long long" dir="in">
15524 <desc>The guest physical address.</desc>
15525 </param>
15526 <param name="size" type="unsigned long" dir="in">
15527 <desc>The number of bytes to read.</desc>
15528 </param>
15529 <param name="bytes" type="octet" safearray="yes" dir="in">
15530 <desc>The bytes to write.</desc>
15531 </param>
15532 </method>
15533
15534 <method name="readVirtualMemory">
15535 <desc>
15536 Reads guest virtual memory, no side effects (MMIO++).
15537
15538 This feature is not implemented in the 4.0.0 release but may show up
15539 in a dot release.
15540 </desc>
15541 <param name="cpuId" type="unsigned long" dir="in">
15542 <desc>The identifier of the Virtual CPU.</desc>
15543 </param>
15544 <param name="address" type="long long" dir="in">
15545 <desc>The guest virtual address.</desc>
15546 </param>
15547 <param name="size" type="unsigned long" dir="in">
15548 <desc>The number of bytes to read.</desc>
15549 </param>
15550 <param name="bytes" type="octet" safearray="yes" dir="return">
15551 <desc>The bytes read.</desc>
15552 </param>
15553 </method>
15554
15555 <method name="writeVirtualMemory">
15556 <desc>
15557 Writes guest virtual memory, access handles (MMIO++) are ignored.
15558
15559 This feature is not implemented in the 4.0.0 release but may show up
15560 in a dot release.
15561 </desc>
15562 <param name="cpuId" type="unsigned long" dir="in">
15563 <desc>The identifier of the Virtual CPU.</desc>
15564 </param>
15565 <param name="address" type="long long" dir="in">
15566 <desc>The guest virtual address.</desc>
15567 </param>
15568 <param name="size" type="unsigned long" dir="in">
15569 <desc>The number of bytes to read.</desc>
15570 </param>
15571 <param name="bytes" type="octet" safearray="yes" dir="in">
15572 <desc>The bytes to write.</desc>
15573 </param>
15574 </method>
15575
15576 <method name="detectOS">
15577 <desc>
15578 Tries to (re-)detect the guest OS kernel.
15579
15580 This feature is not implemented in the 4.0.0 release but may show up
15581 in a dot release.
15582 </desc>
15583 <param name="os" type="wstring" dir="return">
15584 <desc>
15585 The detected OS kernel on success.
15586 </desc>
15587 </param>
15588 </method>
15589
15590 <method name="getRegister">
15591 <desc>
15592 Gets one register.
15593
15594 This feature is not implemented in the 4.0.0 release but may show up
15595 in a dot release.
15596 </desc>
15597 <param name="cpuId" type="unsigned long" dir="in">
15598 <desc>The identifier of the Virtual CPU.</desc>
15599 </param>
15600 <param name="name" type="wstring" dir="in">
15601 <desc>The register name, case is ignored.</desc>
15602 </param>
15603 <param name="value" type="wstring" dir="return">
15604 <desc>
15605 The register value. This is usually a hex value (always 0x prefixed)
15606 but other format may be used for floating point registers (TBD).
15607 </desc>
15608 </param>
15609 </method>
15610
15611 <method name="getRegisters">
15612 <desc>
15613 Gets all the registers for the given CPU.
15614
15615 This feature is not implemented in the 4.0.0 release but may show up
15616 in a dot release.
15617 </desc>
15618 <param name="cpuId" type="unsigned long" dir="in">
15619 <desc>The identifier of the Virtual CPU.</desc>
15620 </param>
15621 <param name="names" type="wstring" dir="out" safearray="yes">
15622 <desc>Array containing the lowercase register names.</desc>
15623 </param>
15624 <param name="values" type="wstring" dir="out" safearray="yes">
15625 <desc>
15626 Array paralell to the names holding the register values as if the
15627 register was returned by <link to="IMachineDebugger::getRegister"/>.
15628 </desc>
15629 </param>
15630 </method>
15631
15632 <method name="setRegister">
15633 <desc>
15634 Gets one register.
15635
15636 This feature is not implemented in the 4.0.0 release but may show up
15637 in a dot release.
15638 </desc>
15639 <param name="cpuId" type="unsigned long" dir="in">
15640 <desc>The identifier of the Virtual CPU.</desc>
15641 </param>
15642 <param name="name" type="wstring" dir="in">
15643 <desc>The register name, case is ignored.</desc>
15644 </param>
15645 <param name="value" type="wstring" dir="in">
15646 <desc>
15647 The new register value. Hexadecimal, decimal and octal formattings
15648 are supported in addition to any special formattings returned by
15649 the getters.
15650 </desc>
15651 </param>
15652 </method>
15653
15654 <method name="setRegisters">
15655 <desc>
15656 Sets zero or more registers atomically.
15657
15658 This feature is not implemented in the 4.0.0 release but may show up
15659 in a dot release.
15660 </desc>
15661 <param name="cpuId" type="unsigned long" dir="in">
15662 <desc>The identifier of the Virtual CPU.</desc>
15663 </param>
15664 <param name="names" type="wstring" dir="in" safearray="yes">
15665 <desc>Array containing the register names, case ignored.</desc>
15666 </param>
15667 <param name="values" type="wstring" dir="in" safearray="yes">
15668 <desc>
15669 Array paralell to the names holding the register values. See
15670 <link to="IMachineDebugger::setRegister"/> for formatting
15671 guidelines.
15672 </desc>
15673 </param>
15674 </method>
15675
15676 <method name="dumpGuestStack">
15677 <desc>
15678 Produce a simple stack dump using the current guest state.
15679
15680 This feature is not implemented in the 4.0.0 release but may show up
15681 in a dot release.
15682 </desc>
15683 <param name="cpuId" type="unsigned long" dir="in">
15684 <desc>The identifier of the Virtual CPU.</desc>
15685 </param>
15686 <param name="stack" type="wstring" dir="return">
15687 <desc>String containing the formatted stack dump.</desc>
15688 </param>
15689 </method>
15690
15691 <method name="resetStats">
15692 <desc>
15693 Reset VM statistics.
15694 </desc>
15695 <param name="pattern" type="wstring" dir="in">
15696 <desc>The selection pattern. A bit similar to filename globbing.</desc>
15697 </param>
15698 </method>
15699
15700 <method name="dumpStats">
15701 <desc>
15702 Dumps VM statistics.
15703 </desc>
15704 <param name="pattern" type="wstring" dir="in">
15705 <desc>The selection pattern. A bit similar to filename globbing.</desc>
15706 </param>
15707 </method>
15708
15709 <method name="getStats">
15710 <desc>
15711 Get the VM statistics in a XMLish format.
15712 </desc>
15713 <param name="pattern" type="wstring" dir="in">
15714 <desc>The selection pattern. A bit similar to filename globbing.</desc>
15715 </param>
15716 <param name="withDescriptions" type="boolean" dir="in">
15717 <desc>Whether to include the descriptions.</desc>
15718 </param>
15719 <param name="stats" type="wstring" dir="out">
15720 <desc>The XML document containing the statistics.</desc>
15721 </param>
15722 </method>
15723
15724 <attribute name="singleStep" type="boolean">
15725 <desc>Switch for enabling single-stepping.</desc>
15726 </attribute>
15727
15728 <attribute name="recompileUser" type="boolean">
15729 <desc>Switch for forcing code recompilation for user mode code.</desc>
15730 </attribute>
15731
15732 <attribute name="recompileSupervisor" type="boolean">
15733 <desc>Switch for forcing code recompilation for supervisor mode code.</desc>
15734 </attribute>
15735
15736 <attribute name="PATMEnabled" type="boolean">
15737 <desc>Switch for enabling and disabling the PATM component.</desc>
15738 </attribute>
15739
15740 <attribute name="CSAMEnabled" type="boolean">
15741 <desc>Switch for enabling and disabling the CSAM component.</desc>
15742 </attribute>
15743
15744 <attribute name="logEnabled" type="boolean">
15745 <desc>Switch for enabling and disabling the debug logger.</desc>
15746 </attribute>
15747
15748 <attribute name="logDbgFlags" type="wstring" readonly="yes">
15749 <desc>The debug logger flags.</desc>
15750 </attribute>
15751
15752 <attribute name="logDbgGroups" type="wstring" readonly="yes">
15753 <desc>The debug logger's group settings.</desc>
15754 </attribute>
15755
15756 <attribute name="logDbgDestinations" type="wstring" readonly="yes">
15757 <desc>The debug logger's destination settings.</desc>
15758 </attribute>
15759
15760 <attribute name="logRelFlags" type="wstring" readonly="yes">
15761 <desc>The release logger flags.</desc>
15762 </attribute>
15763
15764 <attribute name="logRelGroups" type="wstring" readonly="yes">
15765 <desc>The release logger's group settings.</desc>
15766 </attribute>
15767
15768 <attribute name="logRelDestinations" type="wstring" readonly="yes">
15769 <desc>The relase logger's destination settings.</desc>
15770 </attribute>
15771
15772 <attribute name="HWVirtExEnabled" type="boolean" readonly="yes">
15773 <desc>
15774 Flag indicating whether the VM is currently making use of CPU hardware
15775 virtualization extensions.
15776 </desc>
15777 </attribute>
15778
15779 <attribute name="HWVirtExNestedPagingEnabled" type="boolean" readonly="yes">
15780 <desc>
15781 Flag indicating whether the VM is currently making use of the nested paging
15782 CPU hardware virtualization extension.
15783 </desc>
15784 </attribute>
15785
15786 <attribute name="HWVirtExVPIDEnabled" type="boolean" readonly="yes">
15787 <desc>
15788 Flag indicating whether the VM is currently making use of the VPID
15789 VT-x extension.
15790 </desc>
15791 </attribute>
15792
15793 <attribute name="OSName" type="wstring" readonly="yes">
15794 <desc>
15795 Query the guest OS kernel name as detected by the DBGF.
15796
15797 This feature is not implemented in the 4.0.0 release but may show up
15798 in a dot release.
15799 </desc>
15800 </attribute>
15801
15802 <attribute name="OSVersion" type="wstring" readonly="yes">
15803 <desc>
15804 Query the guest OS kernel version string as detected by the DBGF.
15805
15806 This feature is not implemented in the 4.0.0 release but may show up
15807 in a dot release.
15808 </desc>
15809 </attribute>
15810
15811 <attribute name="PAEEnabled" type="boolean" readonly="yes">
15812 <desc>
15813 Flag indicating whether the VM is currently making use of the Physical
15814 Address Extension CPU feature.
15815 </desc>
15816 </attribute>
15817
15818 <attribute name="virtualTimeRate" type="unsigned long">
15819 <desc>
15820 The rate at which the virtual time runs expressed as a percentage.
15821 The accepted range is 2% to 20000%.
15822 </desc>
15823 </attribute>
15824
15825 <attribute name="VM" type="long long" readonly="yes">
15826 <desc>
15827 Gets the VM handle. This is only for internal use while
15828 we carve the details of this interface.
15829 </desc>
15830 </attribute>
15831
15832 </interface>
15833
15834 <!--
15835 // IUSBController
15836 /////////////////////////////////////////////////////////////////////////
15837 -->
15838
15839 <interface
15840 name="IUSBController" extends="$unknown"
15841 uuid="01e6f13a-0580-452f-a40f-74e32a5e4921"
15842 wsmap="managed"
15843 >
15844 <attribute name="enabled" type="boolean">
15845 <desc>
15846 Flag whether the USB controller is present in the
15847 guest system. If disabled, the virtual guest hardware will
15848 not contain any USB controller. Can only be changed when
15849 the VM is powered off.
15850 </desc>
15851 </attribute>
15852
15853 <attribute name="enabledEHCI" type="boolean">
15854 <desc>
15855 Flag whether the USB EHCI controller is present in the
15856 guest system. If disabled, the virtual guest hardware will
15857 not contain a USB EHCI controller. Can only be changed when
15858 the VM is powered off.
15859 </desc>
15860 </attribute>
15861
15862 <attribute name="proxyAvailable" type="boolean" readonly="yes">
15863 <desc>
15864 Flag whether there is an USB proxy available.
15865 </desc>
15866 </attribute>
15867
15868 <attribute name="USBStandard" type="unsigned short" readonly="yes">
15869 <desc>
15870 USB standard version which the controller implements.
15871 This is a BCD which means that the major version is in the
15872 high byte and minor version is in the low byte.
15873 </desc>
15874 </attribute>
15875
15876 <attribute name="deviceFilters" type="IUSBDeviceFilter" readonly="yes" safearray="yes">
15877 <desc>
15878 List of USB device filters associated with the machine.
15879
15880 If the machine is currently running, these filters are activated
15881 every time a new (supported) USB device is attached to the host
15882 computer that was not ignored by global filters
15883 (<link to="IHost::USBDeviceFilters"/>).
15884
15885 These filters are also activated when the machine is powered up.
15886 They are run against a list of all currently available USB
15887 devices (in states
15888 <link to="USBDeviceState_Available"/>,
15889 <link to="USBDeviceState_Busy"/>,
15890 <link to="USBDeviceState_Held"/>) that were not previously
15891 ignored by global filters.
15892
15893 If at least one filter matches the USB device in question, this
15894 device is automatically captured (attached to) the virtual USB
15895 controller of this machine.
15896
15897 <see><link to="IUSBDeviceFilter"/>, <link to="IUSBController"/></see>
15898 </desc>
15899 </attribute>
15900
15901 <method name="createDeviceFilter">
15902 <desc>
15903 Creates a new USB device filter. All attributes except
15904 the filter name are set to empty (any match),
15905 <i>active</i> is @c false (the filter is not active).
15906
15907 The created filter can then be added to the list of filters using
15908 <link to="#insertDeviceFilter"/>.
15909
15910 <result name="VBOX_E_INVALID_VM_STATE">
15911 The virtual machine is not mutable.
15912 </result>
15913
15914 <see><link to="#deviceFilters"/></see>
15915 </desc>
15916 <param name="name" type="wstring" dir="in">
15917 <desc>
15918 Filter name. See <link to="IUSBDeviceFilter::name"/>
15919 for more info.
15920 </desc>
15921 </param>
15922 <param name="filter" type="IUSBDeviceFilter" dir="return">
15923 <desc>Created filter object.</desc>
15924 </param>
15925 </method>
15926
15927 <method name="insertDeviceFilter">
15928 <desc>
15929 Inserts the given USB device to the specified position
15930 in the list of filters.
15931
15932 Positions are numbered starting from <tt>0</tt>. If the specified
15933 position is equal to or greater than the number of elements in
15934 the list, the filter is added to the end of the collection.
15935
15936 <note>
15937 Duplicates are not allowed, so an attempt to insert a
15938 filter that is already in the collection, will return an
15939 error.
15940 </note>
15941
15942 <result name="VBOX_E_INVALID_VM_STATE">
15943 Virtual machine is not mutable.
15944 </result>
15945 <result name="E_INVALIDARG">
15946 USB device filter not created within this VirtualBox instance.
15947 </result>
15948 <result name="VBOX_E_INVALID_OBJECT_STATE">
15949 USB device filter already in list.
15950 </result>
15951
15952 <see><link to="#deviceFilters"/></see>
15953 </desc>
15954 <param name="position" type="unsigned long" dir="in">
15955 <desc>Position to insert the filter to.</desc>
15956 </param>
15957 <param name="filter" type="IUSBDeviceFilter" dir="in">
15958 <desc>USB device filter to insert.</desc>
15959 </param>
15960 </method>
15961
15962 <method name="removeDeviceFilter">
15963 <desc>
15964 Removes a USB device filter from the specified position in the
15965 list of filters.
15966
15967 Positions are numbered starting from <tt>0</tt>. Specifying a
15968 position equal to or greater than the number of elements in
15969 the list will produce an error.
15970
15971 <see><link to="#deviceFilters"/></see>
15972
15973 <result name="VBOX_E_INVALID_VM_STATE">
15974 Virtual machine is not mutable.
15975 </result>
15976 <result name="E_INVALIDARG">
15977 USB device filter list empty or invalid @a position.
15978 </result>
15979
15980 </desc>
15981 <param name="position" type="unsigned long" dir="in">
15982 <desc>Position to remove the filter from.</desc>
15983 </param>
15984 <param name="filter" type="IUSBDeviceFilter" dir="return">
15985 <desc>Removed USB device filter.</desc>
15986 </param>
15987 </method>
15988
15989 </interface>
15990
15991
15992 <!--
15993 // IUSBDevice
15994 /////////////////////////////////////////////////////////////////////////
15995 -->
15996
15997 <interface
15998 name="IUSBDevice" extends="$unknown"
15999 uuid="f8967b0b-4483-400f-92b5-8b675d98a85b"
16000 wsmap="managed"
16001 >
16002 <desc>
16003 The IUSBDevice interface represents a virtual USB device attached to the
16004 virtual machine.
16005
16006 A collection of objects implementing this interface is stored in the
16007 <link to="IConsole::USBDevices"/> attribute which lists all USB devices
16008 attached to a running virtual machine's USB controller.
16009 </desc>
16010
16011 <attribute name="id" type="uuid" mod="string" readonly="yes">
16012 <desc>
16013 Unique USB device ID. This ID is built from #vendorId,
16014 #productId, #revision and #serialNumber.
16015 </desc>
16016 </attribute>
16017
16018 <attribute name="vendorId" type="unsigned short" readonly="yes">
16019 <desc>Vendor ID.</desc>
16020 </attribute>
16021
16022 <attribute name="productId" type="unsigned short" readonly="yes">
16023 <desc>Product ID.</desc>
16024 </attribute>
16025
16026 <attribute name="revision" type="unsigned short" readonly="yes">
16027 <desc>
16028 Product revision number. This is a packed BCD represented as
16029 unsigned short. The high byte is the integer part and the low
16030 byte is the decimal.
16031 </desc>
16032 </attribute>
16033
16034 <attribute name="manufacturer" type="wstring" readonly="yes">
16035 <desc>Manufacturer string.</desc>
16036 </attribute>
16037
16038 <attribute name="product" type="wstring" readonly="yes">
16039 <desc>Product string.</desc>
16040 </attribute>
16041
16042 <attribute name="serialNumber" type="wstring" readonly="yes">
16043 <desc>Serial number string.</desc>
16044 </attribute>
16045
16046 <attribute name="address" type="wstring" readonly="yes">
16047 <desc>Host specific address of the device.</desc>
16048 </attribute>
16049
16050 <attribute name="port" type="unsigned short" readonly="yes">
16051 <desc>
16052 Host USB port number the device is physically
16053 connected to.
16054 </desc>
16055 </attribute>
16056
16057 <attribute name="version" type="unsigned short" readonly="yes">
16058 <desc>
16059 The major USB version of the device - 1 or 2.
16060 </desc>
16061 </attribute>
16062
16063 <attribute name="portVersion" type="unsigned short" readonly="yes">
16064 <desc>
16065 The major USB version of the host USB port the device is
16066 physically connected to - 1 or 2. For devices not connected to
16067 anything this will have the same value as the version attribute.
16068 </desc>
16069 </attribute>
16070
16071 <attribute name="remote" type="boolean" readonly="yes">
16072 <desc>
16073 Whether the device is physically connected to a remote VRDE
16074 client or to a local host machine.
16075 </desc>
16076 </attribute>
16077
16078 </interface>
16079
16080
16081 <!--
16082 // IUSBDeviceFilter
16083 /////////////////////////////////////////////////////////////////////////
16084 -->
16085
16086 <interface
16087 name="IUSBDeviceFilter" extends="$unknown"
16088 uuid="d6831fb4-1a94-4c2c-96ef-8d0d6192066d"
16089 wsmap="managed"
16090 >
16091 <desc>
16092 The IUSBDeviceFilter interface represents an USB device filter used
16093 to perform actions on a group of USB devices.
16094
16095 This type of filters is used by running virtual machines to
16096 automatically capture selected USB devices once they are physically
16097 attached to the host computer.
16098
16099 A USB device is matched to the given device filter if and only if all
16100 attributes of the device match the corresponding attributes of the
16101 filter (that is, attributes are joined together using the logical AND
16102 operation). On the other hand, all together, filters in the list of
16103 filters carry the semantics of the logical OR operation. So if it is
16104 desirable to create a match like "this vendor id OR this product id",
16105 one needs to create two filters and specify "any match" (see below)
16106 for unused attributes.
16107
16108 All filter attributes used for matching are strings. Each string
16109 is an expression representing a set of values of the corresponding
16110 device attribute, that will match the given filter. Currently, the
16111 following filtering expressions are supported:
16112
16113 <ul>
16114 <li><i>Interval filters</i>. Used to specify valid intervals for
16115 integer device attributes (Vendor ID, Product ID and Revision).
16116 The format of the string is:
16117
16118 <tt>int:((m)|([m]-[n]))(,(m)|([m]-[n]))*</tt>
16119
16120 where <tt>m</tt> and <tt>n</tt> are integer numbers, either in octal
16121 (starting from <tt>0</tt>), hexadecimal (starting from <tt>0x</tt>)
16122 or decimal (otherwise) form, so that <tt>m &lt; n</tt>. If <tt>m</tt>
16123 is omitted before a dash (<tt>-</tt>), the minimum possible integer
16124 is assumed; if <tt>n</tt> is omitted after a dash, the maximum
16125 possible integer is assumed.
16126 </li>
16127 <li><i>Boolean filters</i>. Used to specify acceptable values for
16128 boolean device attributes. The format of the string is:
16129
16130 <tt>true|false|yes|no|0|1</tt>
16131
16132 </li>
16133 <li><i>Exact match</i>. Used to specify a single value for the given
16134 device attribute. Any string that doesn't start with <tt>int:</tt>
16135 represents the exact match. String device attributes are compared to
16136 this string including case of symbols. Integer attributes are first
16137 converted to a string (see individual filter attributes) and then
16138 compared ignoring case.
16139
16140 </li>
16141 <li><i>Any match</i>. Any value of the corresponding device attribute
16142 will match the given filter. An empty or @c null string is
16143 used to construct this type of filtering expressions.
16144
16145 </li>
16146 </ul>
16147
16148 <note>
16149 On the Windows host platform, interval filters are not currently
16150 available. Also all string filter attributes
16151 (<link to="#manufacturer"/>, <link to="#product"/>,
16152 <link to="#serialNumber"/>) are ignored, so they behave as
16153 <i>any match</i> no matter what string expression is specified.
16154 </note>
16155
16156 <see><link to="IUSBController::deviceFilters"/>,
16157 <link to="IHostUSBDeviceFilter"/></see>
16158 </desc>
16159
16160 <attribute name="name" type="wstring">
16161 <desc>
16162 Visible name for this filter.
16163 This name is used to visually distinguish one filter from another,
16164 so it can neither be @c null nor an empty string.
16165 </desc>
16166 </attribute>
16167
16168 <attribute name="active" type="boolean">
16169 <desc>Whether this filter active or has been temporarily disabled.</desc>
16170 </attribute>
16171
16172 <attribute name="vendorId" type="wstring">
16173 <desc>
16174 <link to="IUSBDevice::vendorId">Vendor ID</link> filter.
16175 The string representation for the <i>exact matching</i>
16176 has the form <tt>XXXX</tt>, where <tt>X</tt> is the hex digit
16177 (including leading zeroes).
16178 </desc>
16179 </attribute>
16180
16181 <attribute name="productId" type="wstring">
16182 <desc>
16183 <link to="IUSBDevice::productId">Product ID</link> filter.
16184 The string representation for the <i>exact matching</i>
16185 has the form <tt>XXXX</tt>, where <tt>X</tt> is the hex digit
16186 (including leading zeroes).
16187 </desc>
16188 </attribute>
16189
16190 <attribute name="revision" type="wstring">
16191 <desc>
16192 <link to="IUSBDevice::productId">Product revision number</link>
16193 filter. The string representation for the <i>exact matching</i>
16194 has the form <tt>IIFF</tt>, where <tt>I</tt> is the decimal digit
16195 of the integer part of the revision, and <tt>F</tt> is the
16196 decimal digit of its fractional part (including leading and
16197 trailing zeros).
16198 Note that for interval filters, it's best to use the hexadecimal
16199 form, because the revision is stored as a 16 bit packed BCD value;
16200 so the expression <tt>int:0x0100-0x0199</tt> will match any
16201 revision from <tt>1.0</tt> to <tt>1.99</tt>.
16202 </desc>
16203 </attribute>
16204
16205 <attribute name="manufacturer" type="wstring">
16206 <desc>
16207 <link to="IUSBDevice::manufacturer">Manufacturer</link> filter.
16208 </desc>
16209 </attribute>
16210
16211 <attribute name="product" type="wstring">
16212 <desc>
16213 <link to="IUSBDevice::product">Product</link> filter.
16214 </desc>
16215 </attribute>
16216
16217 <attribute name="serialNumber" type="wstring">
16218 <desc>
16219 <link to="IUSBDevice::serialNumber">Serial number</link> filter.
16220 </desc>
16221 </attribute>
16222
16223 <attribute name="port" type="wstring">
16224 <desc>
16225 <link to="IUSBDevice::port">Host USB port</link> filter.
16226 </desc>
16227 </attribute>
16228
16229 <attribute name="remote" type="wstring">
16230 <desc>
16231 <link to="IUSBDevice::remote">Remote state</link> filter.
16232 <note>
16233 This filter makes sense only for machine USB filters,
16234 i.e. it is ignored by IHostUSBDeviceFilter objects.
16235 </note>
16236 </desc>
16237 </attribute>
16238
16239 <attribute name="maskedInterfaces" type="unsigned long">
16240 <desc>
16241 This is an advanced option for hiding one or more USB interfaces
16242 from the guest. The value is a bit mask where the bits that are set
16243 means the corresponding USB interface should be hidden, masked off
16244 if you like.
16245 This feature only works on Linux hosts.
16246 </desc>
16247 </attribute>
16248
16249 </interface>
16250
16251
16252 <!--
16253 // IHostUSBDevice
16254 /////////////////////////////////////////////////////////////////////////
16255 -->
16256
16257 <enum
16258 name="USBDeviceState"
16259 uuid="b99a2e65-67fb-4882-82fd-f3e5e8193ab4"
16260 >
16261 <desc>
16262 USB device state. This enumeration represents all possible states
16263 of the USB device physically attached to the host computer regarding
16264 its state on the host computer and availability to guest computers
16265 (all currently running virtual machines).
16266
16267 Once a supported USB device is attached to the host, global USB
16268 filters (<link to="IHost::USBDeviceFilters"/>) are activated. They can
16269 either ignore the device, or put it to USBDeviceState_Held state, or do
16270 nothing. Unless the device is ignored by global filters, filters of all
16271 currently running guests (<link to="IUSBController::deviceFilters"/>) are
16272 activated that can put it to USBDeviceState_Captured state.
16273
16274 If the device was ignored by global filters, or didn't match
16275 any filters at all (including guest ones), it is handled by the host
16276 in a normal way. In this case, the device state is determined by
16277 the host and can be one of USBDeviceState_Unavailable, USBDeviceState_Busy
16278 or USBDeviceState_Available, depending on the current device usage.
16279
16280 Besides auto-capturing based on filters, the device can be manually
16281 captured by guests (<link to="IConsole::attachUSBDevice"/>) if its
16282 state is USBDeviceState_Busy, USBDeviceState_Available or
16283 USBDeviceState_Held.
16284
16285 <note>
16286 Due to differences in USB stack implementations in Linux and Win32,
16287 states USBDeviceState_Busy and USBDeviceState_Unavailable are applicable
16288 only to the Linux version of the product. This also means that (<link
16289 to="IConsole::attachUSBDevice"/>) can only succeed on Win32 if the
16290 device state is USBDeviceState_Held.
16291 </note>
16292
16293 <see><link to="IHostUSBDevice"/>, <link to="IHostUSBDeviceFilter"/></see>
16294 </desc>
16295
16296 <const name="NotSupported" value="0">
16297 <desc>
16298 Not supported by the VirtualBox server, not available to guests.
16299 </desc>
16300 </const>
16301 <const name="Unavailable" value="1">
16302 <desc>
16303 Being used by the host computer exclusively,
16304 not available to guests.
16305 </desc>
16306 </const>
16307 <const name="Busy" value="2">
16308 <desc>
16309 Being used by the host computer, potentially available to guests.
16310 </desc>
16311 </const>
16312 <const name="Available" value="3">
16313 <desc>
16314 Not used by the host computer, available to guests (the host computer
16315 can also start using the device at any time).
16316 </desc>
16317 </const>
16318 <const name="Held" value="4">
16319 <desc>
16320 Held by the VirtualBox server (ignored by the host computer),
16321 available to guests.
16322 </desc>
16323 </const>
16324 <const name="Captured" value="5">
16325 <desc>
16326 Captured by one of the guest computers, not available
16327 to anybody else.
16328 </desc>
16329 </const>
16330 </enum>
16331
16332 <interface
16333 name="IHostUSBDevice" extends="IUSBDevice"
16334 uuid="173b4b44-d268-4334-a00d-b6521c9a740a"
16335 wsmap="managed"
16336 >
16337 <desc>
16338 The IHostUSBDevice interface represents a physical USB device attached
16339 to the host computer.
16340
16341 Besides properties inherited from IUSBDevice, this interface adds the
16342 <link to="#state"/> property that holds the current state of the USB
16343 device.
16344
16345 <see><link to="IHost::USBDevices"/>,
16346 <link to="IHost::USBDeviceFilters"/></see>
16347 </desc>
16348
16349 <attribute name="state" type="USBDeviceState" readonly="yes">
16350 <desc>
16351 Current state of the device.
16352 </desc>
16353 </attribute>
16354
16355 <!-- @todo add class, subclass, bandwidth, configs, interfaces endpoints and such later. -->
16356
16357 </interface>
16358
16359
16360 <!--
16361 // IHostUSBDeviceFilter
16362 /////////////////////////////////////////////////////////////////////////
16363 -->
16364
16365 <enum
16366 name="USBDeviceFilterAction"
16367 uuid="cbc30a49-2f4e-43b5-9da6-121320475933"
16368 >
16369 <desc>
16370 Actions for host USB device filters.
16371 <see><link to="IHostUSBDeviceFilter"/>, <link to="USBDeviceState"/></see>
16372 </desc>
16373
16374 <const name="Null" value="0">
16375 <desc>Null value (never used by the API).</desc>
16376 </const>
16377 <const name="Ignore" value="1">
16378 <desc>Ignore the matched USB device.</desc>
16379 </const>
16380 <const name="Hold" value="2">
16381 <desc>Hold the matched USB device.</desc>
16382 </const>
16383 </enum>
16384
16385 <interface
16386 name="IHostUSBDeviceFilter" extends="IUSBDeviceFilter"
16387 uuid="4cc70246-d74a-400f-8222-3900489c0374"
16388 wsmap="managed"
16389 >
16390 <desc>
16391 The IHostUSBDeviceFilter interface represents a global filter for a
16392 physical USB device used by the host computer. Used indirectly in
16393 <link to="IHost::USBDeviceFilters"/>.
16394
16395 Using filters of this type, the host computer determines the initial
16396 state of the USB device after it is physically attached to the
16397 host's USB controller.
16398
16399 <note>
16400 The <link to="IUSBDeviceFilter::remote"/> attribute is ignored by this type of
16401 filters, because it makes sense only for
16402 <link to="IUSBController::deviceFilters">machine USB filters</link>.
16403 </note>
16404
16405 <see><link to="IHost::USBDeviceFilters"/></see>
16406 </desc>
16407
16408 <attribute name="action" type="USBDeviceFilterAction">
16409 <desc>
16410 Action performed by the host when an attached USB device
16411 matches this filter.
16412 </desc>
16413 </attribute>
16414
16415 </interface>
16416
16417 <!--
16418 // IAudioAdapter
16419 /////////////////////////////////////////////////////////////////////////
16420 -->
16421
16422 <enum
16423 name="AudioDriverType"
16424 uuid="4bcc3d73-c2fe-40db-b72f-0c2ca9d68496"
16425 >
16426 <desc>
16427 Host audio driver type.
16428 </desc>
16429
16430 <const name="Null" value="0">
16431 <desc>Null value, also means "dummy audio driver".</desc>
16432 </const>
16433 <const name="WinMM" value="1">
16434 <desc>Windows multimedia (Windows hosts only).</desc>
16435 </const>
16436 <const name="OSS" value="2">
16437 <desc>Open Sound System (Linux hosts only).</desc>
16438 </const>
16439 <const name="ALSA" value="3">
16440 <desc>Advanced Linux Sound Architecture (Linux hosts only).</desc>
16441 </const>
16442 <const name="DirectSound" value="4">
16443 <desc>DirectSound (Windows hosts only).</desc>
16444 </const>
16445 <const name="CoreAudio" value="5">
16446 <desc>CoreAudio (Mac hosts only).</desc>
16447 </const>
16448 <const name="MMPM" value="6">
16449 <desc>Reserved for historical reasons.</desc>
16450 </const>
16451 <const name="Pulse" value="7">
16452 <desc>PulseAudio (Linux hosts only).</desc>
16453 </const>
16454 <const name="SolAudio" value="8">
16455 <desc>Solaris audio (Solaris hosts only).</desc>
16456 </const>
16457 </enum>
16458
16459 <enum
16460 name="AudioControllerType"
16461 uuid="7afd395c-42c3-444e-8788-3ce80292f36c"
16462 >
16463 <desc>
16464 Virtual audio controller type.
16465 </desc>
16466
16467 <const name="AC97" value="0"/>
16468 <const name="SB16" value="1"/>
16469 <const name="HDA" value="2"/>
16470 </enum>
16471
16472 <interface
16473 name="IAudioAdapter" extends="$unknown"
16474 uuid="921873db-5f3f-4b69-91f9-7be9e535a2cb"
16475 wsmap="managed"
16476 >
16477 <desc>
16478 The IAudioAdapter interface represents the virtual audio adapter of
16479 the virtual machine. Used in <link to="IMachine::audioAdapter"/>.
16480 </desc>
16481 <attribute name="enabled" type="boolean">
16482 <desc>
16483 Flag whether the audio adapter is present in the
16484 guest system. If disabled, the virtual guest hardware will
16485 not contain any audio adapter. Can only be changed when
16486 the VM is not running.
16487 </desc>
16488 </attribute>
16489 <attribute name="audioController" type="AudioControllerType">
16490 <desc>
16491 The audio hardware we emulate.
16492 </desc>
16493 </attribute>
16494 <attribute name="audioDriver" type="AudioDriverType">
16495 <desc>
16496 Audio driver the adapter is connected to. This setting
16497 can only be changed when the VM is not running.
16498 </desc>
16499 </attribute>
16500 </interface>
16501
16502 <enum
16503 name="AuthType"
16504 uuid="7eef6ef6-98c2-4dc2-ab35-10d2b292028d"
16505 >
16506 <desc>
16507 VirtualBox authentication type.
16508 </desc>
16509
16510 <const name="Null" value="0">
16511 <desc>Null value, also means "no authentication".</desc>
16512 </const>
16513 <const name="External" value="1"/>
16514 <const name="Guest" value="2"/>
16515 </enum>
16516
16517 <!--
16518 // IVRDEServer
16519 /////////////////////////////////////////////////////////////////////////
16520 -->
16521
16522 <interface
16523 name="IVRDEServer" extends="$unknown"
16524 uuid="d38de40a-c2c1-4e95-b5a4-167b05f5694c"
16525 wsmap="managed"
16526 >
16527 <attribute name="enabled" type="boolean">
16528 <desc>VRDE server status.</desc>
16529 </attribute>
16530
16531 <attribute name="authType" type="AuthType">
16532 <desc>VRDE authentication method.</desc>
16533 </attribute>
16534
16535 <attribute name="authTimeout" type="unsigned long">
16536 <desc>Timeout for guest authentication. Milliseconds.</desc>
16537 </attribute>
16538
16539 <attribute name="allowMultiConnection" type="boolean">
16540 <desc>
16541 Flag whether multiple simultaneous connections to the VM are permitted.
16542 Note that this will be replaced by a more powerful mechanism in the future.
16543 </desc>
16544 </attribute>
16545
16546 <attribute name="reuseSingleConnection" type="boolean">
16547 <desc>
16548 Flag whether the existing connection must be dropped and a new connection
16549 must be established by the VRDE server, when a new client connects in single
16550 connection mode.
16551 </desc>
16552 </attribute>
16553
16554 <attribute name="VRDEExtPack" type="wstring">
16555 <desc>
16556 The name of Extension Pack providing VRDE for this VM. Overrides
16557 <link to="ISystemProperties::defaultVRDEExtPack"/>.
16558 </desc>
16559 </attribute>
16560
16561 <attribute name="authLibrary" type="wstring">
16562 <desc>
16563 Library used for authentication of RDP clients by this VM. Overrides
16564 <link to="ISystemProperties::VRDEAuthLibrary"/>.
16565 </desc>
16566 </attribute>
16567
16568 <attribute name="VRDEProperties" type="wstring" readonly="yes" safearray="yes">
16569 <desc>
16570 Array of names of properties, which are supported by this VRDE server.
16571 </desc>
16572 </attribute>
16573
16574 <method name="setVRDEProperty">
16575 <desc>
16576 Sets a VRDE specific property string.
16577
16578 If you pass @c null or empty string as a key @a value, the given @a key
16579 will be deleted.
16580
16581 </desc>
16582 <param name="key" type="wstring" dir="in">
16583 <desc>Name of the key to set.</desc>
16584 </param>
16585 <param name="value" type="wstring" dir="in">
16586 <desc>Value to assign to the key.</desc>
16587 </param>
16588 </method>
16589
16590 <method name="getVRDEProperty" const="yes">
16591 <desc>
16592 Returns a VRDE specific property string.
16593
16594 If the requested data @a key does not exist, this function will
16595 succeed and return an empty string in the @a value argument.
16596
16597 </desc>
16598 <param name="key" type="wstring" dir="in">
16599 <desc>Name of the key to get.</desc>
16600 </param>
16601 <param name="value" type="wstring" dir="return">
16602 <desc>Value of the requested key.</desc>
16603 </param>
16604 </method>
16605
16606 </interface>
16607
16608
16609 <!--
16610 // ISharedFolder
16611 /////////////////////////////////////////////////////////////////////////
16612 -->
16613
16614 <interface
16615 name="ISharedFolder" extends="$unknown"
16616 uuid="8388da11-b559-4574-a5b7-2bd7acd5cef8"
16617 wsmap="struct"
16618 >
16619 <desc>
16620 The ISharedFolder interface represents a folder in the host computer's
16621 file system accessible from the guest OS running inside a virtual
16622 machine using an associated logical name.
16623
16624 There are three types of shared folders:
16625 <ul>
16626 <li><i>Global</i> (<link to="IVirtualBox::sharedFolders"/>), shared
16627 folders available to all virtual machines.</li>
16628 <li><i>Permanent</i> (<link to="IMachine::sharedFolders"/>),
16629 VM-specific shared folders available to the given virtual machine at
16630 startup.</li>
16631 <li><i>Transient</i> (<link to="IConsole::sharedFolders"/>),
16632 VM-specific shared folders created in the session context (for
16633 example, when the virtual machine is running) and automatically
16634 discarded when the session is closed (the VM is powered off).</li>
16635 </ul>
16636
16637 Logical names of shared folders must be unique within the given scope
16638 (global, permanent or transient). However, they do not need to be unique
16639 across scopes. In this case, the definition of the shared folder in a
16640 more specific scope takes precedence over definitions in all other
16641 scopes. The order of precedence is (more specific to more general):
16642 <ol>
16643 <li>Transient definitions</li>
16644 <li>Permanent definitions</li>
16645 <li>Global definitions</li>
16646 </ol>
16647
16648 For example, if MyMachine has a shared folder named
16649 <tt>C_DRIVE</tt> (that points to <tt>C:\\</tt>), then creating a
16650 transient shared folder named <tt>C_DRIVE</tt> (that points
16651 to <tt>C:\\\\WINDOWS</tt>) will change the definition
16652 of <tt>C_DRIVE</tt> in the guest OS so
16653 that <tt>\\\\VBOXSVR\\C_DRIVE</tt> will give access
16654 to <tt>C:\\WINDOWS</tt> instead of <tt>C:\\</tt> on the host
16655 PC. Removing the transient shared folder <tt>C_DRIVE</tt> will restore
16656 the previous (permanent) definition of <tt>C_DRIVE</tt> that points
16657 to <tt>C:\\</tt> if it still exists.
16658
16659 Note that permanent and transient shared folders of different machines
16660 are in different name spaces, so they don't overlap and don't need to
16661 have unique logical names.
16662
16663 <note>
16664 Global shared folders are not implemented in the current version of the
16665 product.
16666 </note>
16667 </desc>
16668
16669 <attribute name="name" type="wstring" readonly="yes">
16670 <desc>Logical name of the shared folder.</desc>
16671 </attribute>
16672
16673 <attribute name="hostPath" type="wstring" readonly="yes">
16674 <desc>Full path to the shared folder in the host file system.</desc>
16675 </attribute>
16676
16677 <attribute name="accessible" type="boolean" readonly="yes">
16678 <desc>
16679 Whether the folder defined by the host path is currently
16680 accessible or not.
16681 For example, the folder can be inaccessible if it is placed
16682 on the network share that is not available by the time
16683 this property is read.
16684 </desc>
16685 </attribute>
16686
16687 <attribute name="writable" type="boolean" readonly="yes">
16688 <desc>
16689 Whether the folder defined by the host path is writable or
16690 not.
16691 </desc>
16692 </attribute>
16693
16694 <attribute name="autoMount" type="boolean" readonly="yes">
16695 <desc>
16696 Whether the folder gets automatically mounted by the guest or not.
16697 </desc>
16698 </attribute>
16699
16700 <attribute name="lastAccessError" type="wstring" readonly="yes">
16701 <desc>
16702 Text message that represents the result of the last accessibility
16703 check.
16704
16705 Accessibility checks are performed each time the <link to="#accessible"/>
16706 attribute is read. An empty string is returned if the last
16707 accessibility check was successful. A non-empty string indicates a
16708 failure and should normally describe a reason of the failure (for
16709 example, a file read error).
16710 </desc>
16711 </attribute>
16712
16713 </interface>
16714
16715 <!--
16716 // ISession
16717 /////////////////////////////////////////////////////////////////////////
16718 -->
16719
16720 <interface
16721 name="IInternalSessionControl" extends="$unknown"
16722 uuid="3e83963a-1c3b-400d-8c5f-f2d077b0a597"
16723 internal="yes"
16724 wsmap="suppress"
16725 >
16726 <method name="getPID">
16727 <desc>PID of the process that has created this Session object.
16728 </desc>
16729 <param name="pid" type="unsigned long" dir="return"/>
16730 </method>
16731
16732 <method name="getRemoteConsole">
16733 <desc>
16734 Returns the console object suitable for remote control.
16735
16736 <result name="VBOX_E_INVALID_VM_STATE">
16737 Session state prevents operation.
16738 </result>
16739 <result name="VBOX_E_INVALID_OBJECT_STATE">
16740 Session type prevents operation.
16741 </result>
16742
16743 </desc>
16744 <param name="console" type="IConsole" dir="return"/>
16745 </method>
16746
16747 <method name="assignMachine">
16748 <desc>
16749 Assigns the machine object associated with this direct-type
16750 session or informs the session that it will be a remote one
16751 (if @a machine == @c null).
16752
16753 <result name="VBOX_E_INVALID_VM_STATE">
16754 Session state prevents operation.
16755 </result>
16756 <result name="VBOX_E_INVALID_OBJECT_STATE">
16757 Session type prevents operation.
16758 </result>
16759
16760 </desc>
16761 <param name="machine" type="IMachine" dir="in"/>
16762 <param name="lockType" type="LockType" dir="in"/>
16763 </method>
16764
16765 <method name="assignRemoteMachine">
16766 <desc>
16767 Assigns the machine and the (remote) console object associated with
16768 this remote-type session.
16769
16770 <result name="VBOX_E_INVALID_VM_STATE">
16771 Session state prevents operation.
16772 </result>
16773
16774 </desc>
16775 <param name="machine" type="IMachine" dir="in"/>
16776 <param name="console" type="IConsole" dir="in"/>
16777 </method>
16778
16779 <method name="updateMachineState">
16780 <desc>
16781 Updates the machine state in the VM process.
16782 Must be called only in certain cases
16783 (see the method implementation).
16784
16785 <result name="VBOX_E_INVALID_VM_STATE">
16786 Session state prevents operation.
16787 </result>
16788 <result name="VBOX_E_INVALID_OBJECT_STATE">
16789 Session type prevents operation.
16790 </result>
16791
16792 </desc>
16793 <param name="aMachineState" type="MachineState" dir="in"/>
16794 </method>
16795
16796 <method name="uninitialize">
16797 <desc>
16798 Uninitializes (closes) this session. Used by VirtualBox to close
16799 the corresponding remote session when the direct session dies
16800 or gets closed.
16801
16802 <result name="VBOX_E_INVALID_VM_STATE">
16803 Session state prevents operation.
16804 </result>
16805
16806 </desc>
16807 </method>
16808
16809 <method name="onNetworkAdapterChange">
16810 <desc>
16811 Triggered when settings of a network adapter of the
16812 associated virtual machine have changed.
16813
16814 <result name="VBOX_E_INVALID_VM_STATE">
16815 Session state prevents operation.
16816 </result>
16817 <result name="VBOX_E_INVALID_OBJECT_STATE">
16818 Session type prevents operation.
16819 </result>
16820
16821 </desc>
16822 <param name="networkAdapter" type="INetworkAdapter" dir="in"/>
16823 <param name="changeAdapter" type="boolean" dir="in"/>
16824 </method>
16825
16826 <method name="onSerialPortChange">
16827 <desc>
16828 Triggered when settings of a serial port of the
16829 associated virtual machine have changed.
16830
16831 <result name="VBOX_E_INVALID_VM_STATE">
16832 Session state prevents operation.
16833 </result>
16834 <result name="VBOX_E_INVALID_OBJECT_STATE">
16835 Session type prevents operation.
16836 </result>
16837
16838 </desc>
16839 <param name="serialPort" type="ISerialPort" dir="in"/>
16840 </method>
16841
16842 <method name="onParallelPortChange">
16843 <desc>
16844 Triggered when settings of a parallel port of the
16845 associated virtual machine have changed.
16846
16847 <result name="VBOX_E_INVALID_VM_STATE">
16848 Session state prevents operation.
16849 </result>
16850 <result name="VBOX_E_INVALID_OBJECT_STATE">
16851 Session type prevents operation.
16852 </result>
16853
16854 </desc>
16855 <param name="parallelPort" type="IParallelPort" dir="in"/>
16856 </method>
16857
16858 <method name="onStorageControllerChange">
16859 <desc>
16860 Triggered when settings of a storage controller of the
16861 associated virtual machine have changed.
16862
16863 <result name="VBOX_E_INVALID_VM_STATE">
16864 Session state prevents operation.
16865 </result>
16866 <result name="VBOX_E_INVALID_OBJECT_STATE">
16867 Session type prevents operation.
16868 </result>
16869
16870 </desc>
16871 </method>
16872
16873 <method name="onMediumChange">
16874 <desc>
16875 Triggered when attached media of the
16876 associated virtual machine have changed.
16877
16878 <result name="VBOX_E_INVALID_VM_STATE">
16879 Session state prevents operation.
16880 </result>
16881 <result name="VBOX_E_INVALID_OBJECT_STATE">
16882 Session type prevents operation.
16883 </result>
16884
16885 </desc>
16886
16887 <param name="mediumAttachment" type="IMediumAttachment" dir="in">
16888 <desc>The medium attachment which changed.</desc>
16889 </param>
16890 <param name="force" type="boolean" dir="in">
16891 <desc>If the medium change was forced.</desc>
16892 </param>
16893 </method>
16894
16895 <method name="onStorageDeviceChange">
16896 <desc>
16897 Triggered when attached storage devices of the
16898 associated virtual machine have changed.
16899
16900 <result name="VBOX_E_INVALID_VM_STATE">
16901 Session state prevents operation.
16902 </result>
16903 <result name="VBOX_E_INVALID_OBJECT_STATE">
16904 Session type prevents operation.
16905 </result>
16906
16907 </desc>
16908
16909 <param name="mediumAttachment" type="IMediumAttachment" dir="in">
16910 <desc>The medium attachment which changed.</desc>
16911 </param>
16912 <param name="remove" type="boolean" dir="in">
16913 <desc>TRUE if the device is removed, FALSE if it was added.</desc>
16914 </param>
16915 </method>
16916
16917 <method name="onClipboardModeChange">
16918 <desc>
16919 Notification when the shared clipboard mode changes.
16920 </desc>
16921 <param name="clipboardMode" type="ClipboardMode" dir="in">
16922 <desc>The new shared clipboard mode.</desc>
16923 </param>
16924 </method>
16925
16926 <method name="onDragAndDropModeChange">
16927 <desc>
16928 Notification when the drag'n'drop mode changes.
16929 </desc>
16930 <param name="dragAndDropMode" type="DragAndDropMode" dir="in">
16931 <desc>The new mode for drag'n'drop.</desc>
16932 </param>
16933 </method>
16934
16935 <method name="onCPUChange">
16936 <desc>
16937 Notification when a CPU changes.
16938 </desc>
16939 <param name="cpu" type="unsigned long" dir="in">
16940 <desc>The CPU which changed</desc>
16941 </param>
16942 <param name="add" type="boolean" dir="in">
16943 <desc>Flag whether the CPU was added or removed</desc>
16944 </param>
16945 </method>
16946
16947 <method name="onCPUExecutionCapChange">
16948 <desc>
16949 Notification when the CPU execution cap changes.
16950 </desc>
16951 <param name="executionCap" type="unsigned long" dir="in">
16952 <desc>The new CPU execution cap value. (1-100)</desc>
16953 </param>
16954 </method>
16955
16956 <method name="onVRDEServerChange">
16957 <desc>
16958 Triggered when settings of the VRDE server object of the
16959 associated virtual machine have changed.
16960
16961 <result name="VBOX_E_INVALID_VM_STATE">
16962 Session state prevents operation.
16963 </result>
16964 <result name="VBOX_E_INVALID_OBJECT_STATE">
16965 Session type prevents operation.
16966 </result>
16967
16968 </desc>
16969 <param name="restart" type="boolean" dir="in">
16970 <desc>Flag whether the server must be restarted</desc>
16971 </param>
16972 </method>
16973
16974 <method name="onUSBControllerChange">
16975 <desc>
16976 Triggered when settings of the USB controller object of the
16977 associated virtual machine have changed.
16978
16979 <result name="VBOX_E_INVALID_VM_STATE">
16980 Session state prevents operation.
16981 </result>
16982 <result name="VBOX_E_INVALID_OBJECT_STATE">
16983 Session type prevents operation.
16984 </result>
16985
16986 </desc>
16987 </method>
16988
16989 <method name="onSharedFolderChange">
16990 <desc>
16991 Triggered when a permanent (global or machine) shared folder has been
16992 created or removed.
16993 <note>
16994 We don't pass shared folder parameters in this notification because
16995 the order in which parallel notifications are delivered is not defined,
16996 therefore it could happen that these parameters were outdated by the
16997 time of processing this notification.
16998 </note>
16999
17000 <result name="VBOX_E_INVALID_VM_STATE">
17001 Session state prevents operation.
17002 </result>
17003 <result name="VBOX_E_INVALID_OBJECT_STATE">
17004 Session type prevents operation.
17005 </result>
17006
17007 </desc>
17008 <param name="global" type="boolean" dir="in"/>
17009 </method>
17010
17011 <method name="onUSBDeviceAttach">
17012 <desc>
17013 Triggered when a request to capture a USB device (as a result
17014 of matched USB filters or direct call to
17015 <link to="IConsole::attachUSBDevice"/>) has completed.
17016 A @c null @a error object means success, otherwise it
17017 describes a failure.
17018
17019 <result name="VBOX_E_INVALID_VM_STATE">
17020 Session state prevents operation.
17021 </result>
17022 <result name="VBOX_E_INVALID_OBJECT_STATE">
17023 Session type prevents operation.
17024 </result>
17025
17026 </desc>
17027 <param name="device" type="IUSBDevice" dir="in"/>
17028 <param name="error" type="IVirtualBoxErrorInfo" dir="in"/>
17029 <param name="maskedInterfaces" type="unsigned long" dir="in"/>
17030 </method>
17031
17032 <method name="onUSBDeviceDetach">
17033 <desc>
17034 Triggered when a request to release the USB device (as a result
17035 of machine termination or direct call to
17036 <link to="IConsole::detachUSBDevice"/>) has completed.
17037 A @c null @a error object means success, otherwise it
17038 describes a failure.
17039
17040 <result name="VBOX_E_INVALID_VM_STATE">
17041 Session state prevents operation.
17042 </result>
17043 <result name="VBOX_E_INVALID_OBJECT_STATE">
17044 Session type prevents operation.
17045 </result>
17046
17047 </desc>
17048 <param name="id" type="uuid" mod="string" dir="in"/>
17049 <param name="error" type="IVirtualBoxErrorInfo" dir="in"/>
17050 </method>
17051
17052 <method name="onShowWindow">
17053 <desc>
17054 Called by <link to="IMachine::canShowConsoleWindow"/> and by
17055 <link to="IMachine::showConsoleWindow"/> in order to notify
17056 console listeners
17057 <link to="ICanShowWindowEvent"/>
17058 and <link to="IShowWindowEvent"/>.
17059
17060 <result name="VBOX_E_INVALID_OBJECT_STATE">
17061 Session type prevents operation.
17062 </result>
17063
17064 </desc>
17065 <param name="check" type="boolean" dir="in"/>
17066 <param name="canShow" type="boolean" dir="out"/>
17067 <param name="winId" type="long long" dir="out"/>
17068 </method>
17069
17070 <method name="onBandwidthGroupChange">
17071 <desc>
17072 Notification when one of the bandwidth groups change.
17073 </desc>
17074 <param name="bandwidthGroup" type="IBandwidthGroup" dir="in">
17075 <desc>The bandwidth group which changed.</desc>
17076 </param>
17077 </method>
17078
17079 <method name="accessGuestProperty">
17080 <desc>
17081 Called by <link to="IMachine::getGuestProperty"/> and by
17082 <link to="IMachine::setGuestProperty"/> in order to read and
17083 modify guest properties.
17084
17085 <result name="VBOX_E_INVALID_VM_STATE">
17086 Machine session is not open.
17087 </result>
17088 <result name="VBOX_E_INVALID_OBJECT_STATE">
17089 Session type is not direct.
17090 </result>
17091
17092 </desc>
17093 <param name="name" type="wstring" dir="in"/>
17094 <param name="value" type="wstring" dir="in"/>
17095 <param name="flags" type="wstring" dir="in"/>
17096 <param name="isSetter" type="boolean" dir="in"/>
17097 <param name="retValue" type="wstring" dir="out"/>
17098 <param name="retTimestamp" type="long long" dir="out"/>
17099 <param name="retFlags" type="wstring" dir="out"/>
17100 </method>
17101
17102 <method name="enumerateGuestProperties" const="yes">
17103 <desc>
17104 Return a list of the guest properties matching a set of patterns along
17105 with their values, time stamps and flags.
17106
17107 <result name="VBOX_E_INVALID_VM_STATE">
17108 Machine session is not open.
17109 </result>
17110 <result name="VBOX_E_INVALID_OBJECT_STATE">
17111 Session type is not direct.
17112 </result>
17113
17114 </desc>
17115 <param name="patterns" type="wstring" dir="in">
17116 <desc>
17117 The patterns to match the properties against as a comma-separated
17118 string. If this is empty, all properties currently set will be
17119 returned.
17120 </desc>
17121 </param>
17122 <param name="key" type="wstring" dir="out" safearray="yes">
17123 <desc>
17124 The key names of the properties returned.
17125 </desc>
17126 </param>
17127 <param name="value" type="wstring" dir="out" safearray="yes">
17128 <desc>
17129 The values of the properties returned. The array entries match the
17130 corresponding entries in the @a key array.
17131 </desc>
17132 </param>
17133 <param name="timestamp" type="long long" dir="out" safearray="yes">
17134 <desc>
17135 The time stamps of the properties returned. The array entries match
17136 the corresponding entries in the @a key array.
17137 </desc>
17138 </param>
17139 <param name="flags" type="wstring" dir="out" safearray="yes">
17140 <desc>
17141 The flags of the properties returned. The array entries match the
17142 corresponding entries in the @a key array.
17143 </desc>
17144 </param>
17145 </method>
17146
17147 <method name="onlineMergeMedium">
17148 <desc>
17149 Triggers online merging of a hard disk. Used internally when deleting
17150 a snapshot while a VM referring to the same hard disk chain is running.
17151
17152 <result name="VBOX_E_INVALID_VM_STATE">
17153 Machine session is not open.
17154 </result>
17155 <result name="VBOX_E_INVALID_OBJECT_STATE">
17156 Session type is not direct.
17157 </result>
17158
17159 </desc>
17160 <param name="mediumAttachment" type="IMediumAttachment" dir="in">
17161 <desc>The medium attachment to identify the medium chain.</desc>
17162 </param>
17163 <param name="sourceIdx" type="unsigned long" dir="in">
17164 <desc>The index of the source image in the chain.
17165 Redundant, but drastically reduces IPC.</desc>
17166 </param>
17167 <param name="targetIdx" type="unsigned long" dir="in">
17168 <desc>The index of the target image in the chain.
17169 Redundant, but drastically reduces IPC.</desc>
17170 </param>
17171 <param name="source" type="IMedium" dir="in">
17172 <desc>Merge source medium.</desc>
17173 </param>
17174 <param name="target" type="IMedium" dir="in">
17175 <desc>Merge target medium.</desc>
17176 </param>
17177 <param name="mergeForward" type="boolean" dir="in">
17178 <desc>Merge direction.</desc>
17179 </param>
17180 <param name="parentForTarget" type="IMedium" dir="in">
17181 <desc>For forward merges: new parent for target medium.</desc>
17182 </param>
17183 <param name="childrenToReparent" type="IMedium" safearray="yes" dir="in">
17184 <desc>For backward merges: list of media which need their parent UUID
17185 updated.</desc>
17186 </param>
17187 <param name="progress" type="IProgress" dir="in">
17188 <desc>
17189 Progress object for this operation.
17190 </desc>
17191 </param>
17192 </method>
17193
17194 <method name="enableVMMStatistics">
17195 <desc>
17196 Enables or disables collection of VMM RAM statistics.
17197
17198 <result name="VBOX_E_INVALID_VM_STATE">
17199 Machine session is not open.
17200 </result>
17201 <result name="VBOX_E_INVALID_OBJECT_STATE">
17202 Session type is not direct.
17203 </result>
17204
17205 </desc>
17206 <param name="enable" type="boolean" dir="in">
17207 <desc>True enables statistics collection.</desc>
17208 </param>
17209 </method>
17210
17211 </interface>
17212
17213 <interface
17214 name="ISession" extends="$unknown"
17215 uuid="12F4DCDB-12B2-4EC1-B7CD-DDD9F6C5BF4D"
17216 wsmap="managed"
17217 >
17218 <desc>
17219 The ISession interface represents a client process and allows for locking
17220 virtual machines (represented by IMachine objects) to prevent conflicting
17221 changes to the machine.
17222
17223 Any caller wishing to manipulate a virtual machine needs to create a session
17224 object first, which lives in its own process space. Such session objects are
17225 then associated with <link to="IMachine" /> objects living in the VirtualBox
17226 server process to coordinate such changes.
17227
17228 There are two typical scenarios in which sessions are used:
17229
17230 <ul>
17231 <li>To alter machine settings or control a running virtual machine, one
17232 needs to lock a machine for a given session (client process) by calling
17233 <link to="IMachine::lockMachine"/>.
17234
17235 Whereas multiple sessions may control a running virtual machine, only
17236 one process can obtain a write lock on the machine to prevent conflicting
17237 changes. A write lock is also needed if a process wants to actually run a
17238 virtual machine in its own context, such as the VirtualBox GUI or
17239 VBoxHeadless front-ends. They must also lock a machine for their own
17240 sessions before they are allowed to power up the virtual machine.
17241
17242 As a result, no machine settings can be altered while another process is
17243 already using it, either because that process is modifying machine settings
17244 or because the machine is running.
17245 </li>
17246 <li>
17247 To start a VM using one of the existing VirtualBox front-ends (e.g. the
17248 VirtualBox GUI or VBoxHeadless), one would use
17249 <link to="IMachine::launchVMProcess"/>, which also takes a session object
17250 as its first parameter. This session then identifies the caller and lets the
17251 caller control the started machine (for example, pause machine execution or
17252 power it down) as well as be notified about machine execution state changes.
17253 </li>
17254 </ul>
17255
17256 How sessions objects are created in a client process depends on whether you use
17257 the Main API via COM or via the webservice:
17258
17259 <ul>
17260 <li>When using the COM API directly, an object of the Session class from the
17261 VirtualBox type library needs to be created. In regular COM C++ client code,
17262 this can be done by calling <tt>createLocalObject()</tt>, a standard COM API.
17263 This object will then act as a local session object in further calls to open
17264 a session.
17265 </li>
17266
17267 <li>In the webservice, the session manager (IWebsessionManager) instead creates
17268 a session object automatically whenever <link to="IWebsessionManager::logon" />
17269 is called. A managed object reference to that session object can be retrieved by
17270 calling <link to="IWebsessionManager::getSessionObject" />.
17271 </li>
17272 </ul>
17273 </desc>
17274
17275 <attribute name="state" type="SessionState" readonly="yes">
17276 <desc>Current state of this session.</desc>
17277 </attribute>
17278
17279 <attribute name="type" type="SessionType" readonly="yes">
17280 <desc>
17281 Type of this session. The value of this attribute is valid only
17282 if the session currently has a machine locked (i.e. its
17283 <link to="#state" /> is Locked), otherwise an error will be returned.
17284 </desc>
17285 </attribute>
17286
17287 <attribute name="machine" type="IMachine" readonly="yes">
17288 <desc>Machine object associated with this session.</desc>
17289 </attribute>
17290
17291 <attribute name="console" type="IConsole" readonly="yes">
17292 <desc>Console object associated with this session.</desc>
17293 </attribute>
17294
17295 <method name="unlockMachine">
17296 <desc>
17297 Unlocks a machine that was previously locked for the current session.
17298
17299 Calling this method is required every time a machine has been locked
17300 for a particular session using the <link to="IMachine::launchVMProcess" />
17301 or <link to="IMachine::lockMachine" /> calls. Otherwise the state of
17302 the machine will be set to <link to="MachineState_Aborted" /> on the
17303 server, and changes made to the machine settings will be lost.
17304
17305 Generally, it is recommended to unlock all machines explicitly
17306 before terminating the application (regardless of the reason for
17307 the termination).
17308
17309 <note>
17310 Do not expect the session state (<link to="ISession::state" />
17311 to return to "Unlocked" immediately after you invoke this method,
17312 particularly if you have started a new VM process. The session
17313 state will automatically return to "Unlocked" once the VM is no
17314 longer executing, which can of course take a very long time.
17315 </note>
17316
17317 <result name="E_UNEXPECTED">
17318 Session is not locked.
17319 </result>
17320
17321 </desc>
17322 </method>
17323
17324 </interface>
17325
17326 <!--
17327 // IStorageController
17328 /////////////////////////////////////////////////////////////////////////
17329 -->
17330
17331 <enum
17332 name="StorageBus"
17333 uuid="eee67ab3-668d-4ef5-91e0-7025fe4a0d7a"
17334 >
17335 <desc>
17336 The bus type of the storage controller (IDE, SATA, SCSI, SAS or Floppy);
17337 see <link to="IStorageController::bus" />.
17338 </desc>
17339 <const name="Null" value="0">
17340 <desc>@c null value. Never used by the API.</desc>
17341 </const>
17342 <const name="IDE" value="1"/>
17343 <const name="SATA" value="2"/>
17344 <const name="SCSI" value="3"/>
17345 <const name="Floppy" value="4"/>
17346 <const name="SAS" value="5"/>
17347 </enum>
17348
17349 <enum
17350 name="StorageControllerType"
17351 uuid="8a412b8a-f43e-4456-bd37-b474f0879a58"
17352 >
17353 <desc>
17354 The exact variant of storage controller hardware presented
17355 to the guest; see <link to="IStorageController::controllerType" />.
17356 </desc>
17357
17358 <const name="Null" value="0">
17359 <desc>@c null value. Never used by the API.</desc>
17360 </const>
17361 <const name="LsiLogic" value="1">
17362 <desc>A SCSI controller of the LsiLogic variant.</desc>
17363 </const>
17364 <const name="BusLogic" value="2">
17365 <desc>A SCSI controller of the BusLogic variant.</desc>
17366 </const>
17367 <const name="IntelAhci" value="3">
17368 <desc>An Intel AHCI SATA controller; this is the only variant for SATA.</desc>
17369 </const>
17370 <const name="PIIX3" value="4">
17371 <desc>An IDE controller of the PIIX3 variant.</desc>
17372 </const>
17373 <const name="PIIX4" value="5">
17374 <desc>An IDE controller of the PIIX4 variant.</desc>
17375 </const>
17376 <const name="ICH6" value="6">
17377 <desc>An IDE controller of the ICH6 variant.</desc>
17378 </const>
17379 <const name="I82078" value="7">
17380 <desc>A floppy disk controller; this is the only variant for floppy drives.</desc>
17381 </const>
17382 <const name="LsiLogicSas" value="8">
17383 <desc>A variant of the LsiLogic controller using SAS.</desc>
17384 </const>
17385 </enum>
17386
17387 <enum
17388 name="ChipsetType"
17389 uuid="8b4096a8-a7c3-4d3b-bbb1-05a0a51ec394"
17390 >
17391 <desc>
17392 Type of emulated chipset (mostly southbridge).
17393 </desc>
17394
17395 <const name="Null" value="0">
17396 <desc>@c null value. Never used by the API.</desc>
17397 </const>
17398 <const name="PIIX3" value="1">
17399 <desc>A PIIX3 (PCI IDE ISA Xcelerator) chipset.</desc>
17400 </const>
17401 <const name="ICH9" value="2">
17402 <desc>A ICH9 (I/O Controller Hub) chipset.</desc>
17403 </const>
17404 </enum>
17405
17406 <interface
17407 name="IStorageController" extends="$unknown"
17408 uuid="a1556333-09b6-46d9-bfb7-fc239b7fbe1e"
17409 wsmap="managed"
17410 >
17411 <desc>
17412 Represents a storage controller that is attached to a virtual machine
17413 (<link to="IMachine" />). Just as drives (hard disks, DVDs, FDs) are
17414 attached to storage controllers in a real computer, virtual drives
17415 (represented by <link to="IMediumAttachment" />) are attached to virtual
17416 storage controllers, represented by this interface.
17417
17418 As opposed to physical hardware, VirtualBox has a very generic concept
17419 of a storage controller, and for purposes of the Main API, all virtual
17420 storage is attached to virtual machines via instances of this interface.
17421 There are five types of such virtual storage controllers: IDE, SCSI, SATA,
17422 SAS and Floppy (see <link to="#bus" />). Depending on which of these four
17423 is used, certain sub-types may be available and can be selected in
17424 <link to="#controllerType" />.
17425
17426 Depending on these settings, the guest operating system might see
17427 significantly different virtual hardware.
17428 </desc>
17429
17430 <attribute name="name" type="wstring" readonly="yes">
17431 <desc>
17432 Name of the storage controller, as originally specified with
17433 <link to="IMachine::addStorageController" />. This then uniquely
17434 identifies this controller with other method calls such as
17435 <link to="IMachine::attachDevice" /> and <link to="IMachine::mountMedium" />.
17436 </desc>
17437 </attribute>
17438
17439 <attribute name="maxDevicesPerPortCount" type="unsigned long" readonly="yes">
17440 <desc>
17441 Maximum number of devices which can be attached to one port.
17442 </desc>
17443 </attribute>
17444
17445 <attribute name="minPortCount" type="unsigned long" readonly="yes">
17446 <desc>
17447 Minimum number of ports that <link to="IStorageController::portCount"/> can be set to.
17448 </desc>
17449 </attribute>
17450
17451 <attribute name="maxPortCount" type="unsigned long" readonly="yes">
17452 <desc>
17453 Maximum number of ports that <link to="IStorageController::portCount"/> can be set to.
17454 </desc>
17455 </attribute>
17456
17457 <attribute name="instance" type="unsigned long">
17458 <desc>
17459 The instance number of the device in the running VM.
17460 </desc>
17461 </attribute>
17462
17463 <attribute name="portCount" type="unsigned long">
17464 <desc>
17465 The number of currently usable ports on the controller.
17466 The minimum and maximum number of ports for one controller are
17467 stored in <link to="IStorageController::minPortCount"/>
17468 and <link to="IStorageController::maxPortCount"/>.
17469 </desc>
17470 </attribute>
17471
17472 <attribute name="bus" type="StorageBus" readonly="yes">
17473 <desc>
17474 The bus type of the storage controller (IDE, SATA, SCSI, SAS or Floppy).
17475 </desc>
17476 </attribute>
17477
17478 <attribute name="controllerType" type="StorageControllerType">
17479 <desc>
17480 The exact variant of storage controller hardware presented
17481 to the guest.
17482 Depending on this value, VirtualBox will provide a different
17483 virtual storage controller hardware to the guest.
17484 For SATA, SAS and floppy controllers, only one variant is
17485 available, but for IDE and SCSI, there are several.
17486
17487 For SCSI controllers, the default type is LsiLogic.
17488 </desc>
17489 </attribute>
17490
17491 <attribute name="useHostIOCache" type="boolean">
17492 <desc>
17493 If true, the storage controller emulation will use a dedicated I/O thread, enable the host I/O
17494 caches and use synchronous file APIs on the host. This was the only option in the API before
17495 VirtualBox 3.2 and is still the default for IDE controllers.
17496
17497 If false, the host I/O cache will be disabled for image files attached to this storage controller.
17498 Instead, the storage controller emulation will use asynchronous I/O APIs on the host. This makes
17499 it possible to turn off the host I/O caches because the emulation can handle unaligned access to
17500 the file. This should be used on OS X and Linux hosts if a high I/O load is expected or many
17501 virtual machines are running at the same time to prevent I/O cache related hangs.
17502 This option new with the API of VirtualBox 3.2 and is now the default for non-IDE storage controllers.
17503 </desc>
17504 </attribute>
17505
17506 <attribute name="bootable" type="boolean" readonly="yes">
17507 <desc>
17508 Returns whether it is possible to boot from disks attached to this controller.
17509 </desc>
17510 </attribute>
17511
17512 <method name="getIDEEmulationPort">
17513 <desc>
17514 Gets the corresponding port number which is emulated as an IDE device.
17515 Works only with SATA controllers.
17516
17517 <result name="E_INVALIDARG">
17518 The @a devicePosition is not in the range 0 to 3.
17519 </result>
17520 <result name="E_NOTIMPL">
17521 The storage controller type is not SATAIntelAhci.
17522 </result>
17523
17524 </desc>
17525 <param name="devicePosition" type="long" dir="in"/>
17526 <param name="portNumber" type="long" dir="return"/>
17527 </method>
17528
17529 <method name="setIDEEmulationPort">
17530 <desc>
17531 Sets the port number which is emulated as an IDE device.
17532 Works only with SATA controllers.
17533
17534 <result name="E_INVALIDARG">
17535 The @a devicePosition is not in the range 0 to 3 or the
17536 @a portNumber is not in the range 0 to 29.
17537 </result>
17538 <result name="E_NOTIMPL">
17539 The storage controller type is not SATAIntelAhci.
17540 </result>
17541
17542 </desc>
17543 <param name="devicePosition" type="long" dir="in"/>
17544 <param name="portNumber" type="long" dir="in"/>
17545 </method>
17546
17547 </interface>
17548
17549<if target="wsdl">
17550
17551 <!--
17552 // IManagedObjectRef
17553 /////////////////////////////////////////////////////////////////////////
17554 -->
17555
17556 <interface
17557 name="IManagedObjectRef" extends="$unknown"
17558 uuid="9474d09d-2313-46de-b568-a42b8718e8ed"
17559 internal="yes"
17560 wsmap="managed"
17561 wscpp="hardcoded"
17562 >
17563 <desc>
17564 Managed object reference.
17565
17566 Only within the webservice, a managed object reference (which is really
17567 an opaque number) allows a webservice client to address an object
17568 that lives in the address space of the webservice server.
17569
17570 Behind each managed object reference, there is a COM object that lives
17571 in the webservice server's address space. The COM object is not freed
17572 until the managed object reference is released, either by an explicit
17573 call to <link to="IManagedObjectRef::release" /> or by logging off from
17574 the webservice (<link to="IWebsessionManager::logoff" />), which releases
17575 all objects created during the webservice session.
17576
17577 Whenever a method call of the VirtualBox API returns a COM object, the
17578 webservice representation of that method will instead return a
17579 managed object reference, which can then be used to invoke methods
17580 on that object.
17581 </desc>
17582
17583 <method name="getInterfaceName">
17584 <desc>
17585 Returns the name of the interface that this managed object represents,
17586 for example, "IMachine", as a string.
17587 </desc>
17588 <param name="return" type="wstring" dir="return"/>
17589 </method>
17590
17591 <method name="release">
17592 <desc>
17593 Releases this managed object reference and frees the resources that
17594 were allocated for it in the webservice server process. After calling
17595 this method, the identifier of the reference can no longer be used.
17596 </desc>
17597 </method>
17598
17599 </interface>
17600
17601 <!--
17602 // IWebsessionManager
17603 /////////////////////////////////////////////////////////////////////////
17604 -->
17605
17606 <interface
17607 name="IWebsessionManager" extends="$unknown"
17608 uuid="dea1b4c7-2de3-418a-850d-7868617f7733"
17609 internal="yes"
17610 wsmap="global"
17611 wscpp="hardcoded"
17612 >
17613 <desc>
17614 Websession manager. This provides essential services
17615 to webservice clients.
17616 </desc>
17617 <method name="logon">
17618 <desc>
17619 Logs a new client onto the webservice and returns a managed object reference to
17620 the IVirtualBox instance, which the client can then use as a basis to further
17621 queries, since all calls to the VirtualBox API are based on the IVirtualBox
17622 interface, in one way or the other.
17623 </desc>
17624 <param name="username" type="wstring" dir="in"/>
17625 <param name="password" type="wstring" dir="in"/>
17626 <param name="return" type="IVirtualBox" dir="return"/>
17627 </method>
17628
17629 <method name="getSessionObject">
17630 <desc>
17631 Returns a managed object reference to the internal ISession object that was created
17632 for this web service session when the client logged on.
17633
17634 <see><link to="ISession"/></see>
17635 </desc>
17636 <param name="refIVirtualBox" type="IVirtualBox" dir="in"/>
17637 <param name="return" type="ISession" dir="return"/>
17638 </method>
17639
17640 <method name="logoff">
17641 <desc>
17642 Logs off the client who has previously logged on with <link to="IWebsessionManager::logon" />
17643 and destroys all resources associated with the session (most importantly, all
17644 managed objects created in the server while the session was active).
17645 </desc>
17646 <param name="refIVirtualBox" type="IVirtualBox" dir="in"/>
17647 </method>
17648
17649 </interface>
17650
17651</if>
17652
17653 <!--
17654 // IPerformanceCollector & friends
17655 /////////////////////////////////////////////////////////////////////////
17656 -->
17657
17658 <interface
17659 name="IPerformanceMetric" extends="$unknown"
17660 uuid="2a1a60ae-9345-4019-ad53-d34ba41cbfe9" wsmap="managed"
17661 >
17662 <desc>
17663 The IPerformanceMetric interface represents parameters of the given
17664 performance metric.
17665 </desc>
17666
17667 <attribute name="metricName" type="wstring" readonly="yes">
17668 <desc>
17669 Name of the metric.
17670 </desc>
17671 </attribute>
17672
17673 <attribute name="object" type="$unknown" readonly="yes">
17674 <desc>
17675 Object this metric belongs to.
17676 </desc>
17677 </attribute>
17678
17679 <attribute name="description" type="wstring" readonly="yes">
17680 <desc>
17681 Textual description of the metric.
17682 </desc>
17683 </attribute>
17684
17685 <attribute name="period" type="unsigned long" readonly="yes">
17686 <desc>
17687 Time interval between samples, measured in seconds.
17688 </desc>
17689 </attribute>
17690
17691 <attribute name="count" type="unsigned long" readonly="yes">
17692 <desc>
17693 Number of recent samples retained by the performance collector for this
17694 metric.
17695
17696 When the collected sample count exceeds this number, older samples
17697 are discarded.
17698 </desc>
17699 </attribute>
17700
17701 <attribute name="unit" type="wstring" readonly="yes">
17702 <desc>
17703 Unit of measurement.
17704 </desc>
17705 </attribute>
17706
17707 <attribute name="minimumValue" type="long" readonly="yes">
17708 <desc>
17709 Minimum possible value of this metric.
17710 </desc>
17711 </attribute>
17712
17713 <attribute name="maximumValue" type="long" readonly="yes">
17714 <desc>
17715 Maximum possible value of this metric.
17716 </desc>
17717 </attribute>
17718 </interface>
17719
17720 <interface
17721 name="IPerformanceCollector" extends="$unknown"
17722 uuid="e22e1acb-ac4a-43bb-a31c-17321659b0c6"
17723 wsmap="managed"
17724 >
17725 <desc>
17726 The IPerformanceCollector interface represents a service that collects
17727 and stores performance metrics data.
17728
17729 Performance metrics are associated with objects of interfaces like IHost
17730 and IMachine. Each object has a distinct set of performance metrics. The
17731 set can be obtained with <link to="IPerformanceCollector::getMetrics"/>.
17732
17733 Metric data is collected at the specified intervals and is retained
17734 internally. The interval and the number of retained samples can be set
17735 with <link to="IPerformanceCollector::setupMetrics" />. Both metric data
17736 and collection settings are not persistent, they are discarded as soon as
17737 VBoxSVC process terminates. Moreover, metric settings and data associated
17738 with a particular VM only exist while VM is running. They disappear as
17739 soon as VM shuts down. It is not possible to set up metrics for machines
17740 that are powered off. One needs to start VM first, then set up metric
17741 collection parameters.
17742
17743 Metrics are organized hierarchically, with each level separated by a
17744 slash (/) character. Generally, the scheme for metric names is like this:
17745
17746 <tt>Category/Metric[/SubMetric][:aggregation]</tt>
17747
17748 "Category/Metric" together form the base metric name. A base metric is
17749 the smallest unit for which a sampling interval and the number of
17750 retained samples can be set. Only base metrics can be enabled and
17751 disabled. All sub-metrics are collected when their base metric is
17752 collected. Collected values for any set of sub-metrics can be queried
17753 with <link to="IPerformanceCollector::queryMetricsData" />.
17754
17755 For example "CPU/Load/User:avg" metric name stands for the "CPU"
17756 category, "Load" metric, "User" submetric, "average" aggregate. An
17757 aggregate function is computed over all retained data. Valid aggregate
17758 functions are:
17759
17760 <ul>
17761 <li>avg -- average</li>
17762 <li>min -- minimum</li>
17763 <li>max -- maximum</li>
17764 </ul>
17765
17766 When setting up metric parameters, querying metric data, enabling or
17767 disabling metrics wildcards can be used in metric names to specify a
17768 subset of metrics. For example, to select all CPU-related metrics
17769 use <tt>CPU/*</tt>, all averages can be queried using <tt>*:avg</tt> and
17770 so on. To query metric values without aggregates <tt>*:</tt> can be used.
17771
17772 The valid names for base metrics are:
17773
17774 <ul>
17775 <li>CPU/Load</li>
17776 <li>CPU/MHz</li>
17777 <li>RAM/Usage</li>
17778 <li>RAM/VMM</li>
17779 </ul>
17780
17781 The general sequence for collecting and retrieving the metrics is:
17782 <ul>
17783 <li>
17784 Obtain an instance of IPerformanceCollector with
17785 <link to="IVirtualBox::performanceCollector" />
17786 </li>
17787 <li>
17788 Allocate and populate an array with references to objects the metrics
17789 will be collected for. Use references to IHost and IMachine objects.
17790 </li>
17791 <li>
17792 Allocate and populate an array with base metric names the data will
17793 be collected for.
17794 </li>
17795 <li>
17796 Call <link to="IPerformanceCollector::setupMetrics" />. From now on
17797 the metric data will be collected and stored.
17798 </li>
17799 <li>
17800 Wait for the data to get collected.
17801 </li>
17802 <li>
17803 Allocate and populate an array with references to objects the metric
17804 values will be queried for. You can re-use the object array used for
17805 setting base metrics.
17806 </li>
17807 <li>
17808 Allocate and populate an array with metric names the data will be
17809 collected for. Note that metric names differ from base metric names.
17810 </li>
17811 <li>
17812 Call <link to="IPerformanceCollector::queryMetricsData" />. The data
17813 that have been collected so far are returned. Note that the values
17814 are still retained internally and data collection continues.
17815 </li>
17816 </ul>
17817
17818 For an example of usage refer to the following files in VirtualBox SDK:
17819 <ul>
17820 <li>
17821 Java: <tt>bindings/webservice/java/jax-ws/samples/metrictest.java</tt>
17822 </li>
17823 <li>
17824 Python: <tt>bindings/xpcom/python/sample/shellcommon.py</tt>
17825 </li>
17826 </ul>
17827 </desc>
17828
17829 <attribute name="metricNames" type="wstring" readonly="yes" safearray="yes">
17830 <desc>
17831 Array of unique names of metrics.
17832
17833 This array represents all metrics supported by the performance
17834 collector. Individual objects do not necessarily support all of them.
17835 <link to="IPerformanceCollector::getMetrics"/> can be used to get the
17836 list of supported metrics for a particular object.
17837 </desc>
17838 </attribute>
17839
17840 <method name="getMetrics">
17841 <desc>
17842 Returns parameters of specified metrics for a set of objects.
17843 <note>
17844 @c Null metrics array means all metrics. @c Null object array means
17845 all existing objects.
17846 </note>
17847 </desc>
17848 <param name="metricNames" type="wstring" dir="in" safearray="yes">
17849 <desc>
17850 Metric name filter. Currently, only a comma-separated list of metrics
17851 is supported.
17852 </desc>
17853 </param>
17854 <param name="objects" type="$unknown" dir="in" safearray="yes">
17855 <desc>
17856 Set of objects to return metric parameters for.
17857 </desc>
17858 </param>
17859 <param name="metrics" type="IPerformanceMetric" dir="return" safearray="yes">
17860 <desc>
17861 Array of returned metric parameters.
17862 </desc>
17863 </param>
17864 </method>
17865
17866 <method name="setupMetrics">
17867 <desc>
17868 Sets parameters of specified base metrics for a set of objects. Returns
17869 an array of <link to="IPerformanceMetric" /> describing the metrics
17870 have been affected.
17871 <note>
17872 @c Null or empty metric name array means all metrics. @c Null or
17873 empty object array means all existing objects. If metric name array
17874 contains a single element and object array contains many, the single
17875 metric name array element is applied to each object array element to
17876 form metric/object pairs.
17877 </note>
17878 </desc>
17879 <param name="metricNames" type="wstring" dir="in" safearray="yes">
17880 <desc>
17881 Metric name filter. Comma-separated list of metrics with wildcard
17882 support.
17883 </desc>
17884 </param>
17885 <param name="objects" type="$unknown" dir="in" safearray="yes">
17886 <desc>
17887 Set of objects to setup metric parameters for.
17888 </desc>
17889 </param>
17890 <param name="period" type="unsigned long" dir="in">
17891 <desc>
17892 Time interval in seconds between two consecutive samples of
17893 performance data.
17894 </desc>
17895 </param>
17896 <param name="count" type="unsigned long" dir="in">
17897 <desc>
17898 Number of samples to retain in performance data history. Older
17899 samples get discarded.
17900 </desc>
17901 </param>
17902 <param name="affectedMetrics" type="IPerformanceMetric" dir="return" safearray="yes">
17903 <desc>
17904 Array of metrics that have been modified by the call to this method.
17905 </desc>
17906 </param>
17907 </method>
17908
17909 <method name="enableMetrics">
17910 <desc>
17911 Turns on collecting specified base metrics. Returns an array of
17912 <link to="IPerformanceMetric" /> describing the metrics have been
17913 affected.
17914 <note>
17915 @c Null or empty metric name array means all metrics. @c Null or
17916 empty object array means all existing objects. If metric name array
17917 contains a single element and object array contains many, the single
17918 metric name array element is applied to each object array element to
17919 form metric/object pairs.
17920 </note>
17921 </desc>
17922 <param name="metricNames" type="wstring" dir="in" safearray="yes">
17923 <desc>
17924 Metric name filter. Comma-separated list of metrics with wildcard
17925 support.
17926 </desc>
17927 </param>
17928 <param name="objects" type="$unknown" dir="in" safearray="yes">
17929 <desc>
17930 Set of objects to enable metrics for.
17931 </desc>
17932 </param>
17933 <param name="affectedMetrics" type="IPerformanceMetric" dir="return" safearray="yes">
17934 <desc>
17935 Array of metrics that have been modified by the call to this method.
17936 </desc>
17937 </param>
17938 </method>
17939
17940 <method name="disableMetrics">
17941 <desc>
17942 Turns off collecting specified base metrics. Returns an array of
17943 <link to="IPerformanceMetric" /> describing the metrics have been
17944 affected.
17945 <note>
17946 @c Null or empty metric name array means all metrics. @c Null or
17947 empty object array means all existing objects. If metric name array
17948 contains a single element and object array contains many, the single
17949 metric name array element is applied to each object array element to
17950 form metric/object pairs.
17951 </note>
17952 </desc>
17953 <param name="metricNames" type="wstring" dir="in" safearray="yes">
17954 <desc>
17955 Metric name filter. Comma-separated list of metrics with wildcard
17956 support.
17957 </desc>
17958 </param>
17959 <param name="objects" type="$unknown" dir="in" safearray="yes">
17960 <desc>
17961 Set of objects to disable metrics for.
17962 </desc>
17963 </param>
17964 <param name="affectedMetrics" type="IPerformanceMetric" dir="return" safearray="yes">
17965 <desc>
17966 Array of metrics that have been modified by the call to this method.
17967 </desc>
17968 </param>
17969 </method>
17970
17971 <method name="queryMetricsData">
17972 <desc>
17973 Queries collected metrics data for a set of objects.
17974
17975 The data itself and related metric information are returned in seven
17976 parallel and one flattened array of arrays. Elements of
17977 <tt>returnMetricNames, returnObjects, returnUnits, returnScales,
17978 returnSequenceNumbers, returnDataIndices and returnDataLengths</tt> with
17979 the same index describe one set of values corresponding to a single
17980 metric.
17981
17982 The <tt>returnData</tt> parameter is a flattened array of arrays. Each
17983 start and length of a sub-array is indicated by
17984 <tt>returnDataIndices</tt> and <tt>returnDataLengths</tt>. The first
17985 value for metric <tt>metricNames[i]</tt> is at
17986 <tt>returnData[returnIndices[i]]</tt>.
17987
17988 <note>
17989 @c Null or empty metric name array means all metrics. @c Null or
17990 empty object array means all existing objects. If metric name array
17991 contains a single element and object array contains many, the single
17992 metric name array element is applied to each object array element to
17993 form metric/object pairs.
17994 </note>
17995 <note>
17996 Data collection continues behind the scenes after call to @c
17997 queryMetricsData. The return data can be seen as the snapshot of the
17998 current state at the time of @c queryMetricsData call. The internally
17999 kept metric values are not cleared by the call. This makes possible
18000 querying different subsets of metrics or aggregates with subsequent
18001 calls. If periodic querying is needed it is highly suggested to query
18002 the values with @c interval*count period to avoid confusion. This way
18003 a completely new set of data values will be provided by each query.
18004 </note>
18005 </desc>
18006 <param name="metricNames" type="wstring" dir="in" safearray="yes">
18007 <desc>
18008 Metric name filter. Comma-separated list of metrics with wildcard
18009 support.
18010 </desc>
18011 </param>
18012 <param name="objects" type="$unknown" dir="in" safearray="yes">
18013 <desc>
18014 Set of objects to query metrics for.
18015 </desc>
18016 </param>
18017 <param name="returnMetricNames" type="wstring" dir="out" safearray="yes">
18018 <desc>
18019 Names of metrics returned in @c returnData.
18020 </desc>
18021 </param>
18022 <param name="returnObjects" type="$unknown" dir="out" safearray="yes">
18023 <desc>
18024 Objects associated with metrics returned in @c returnData.
18025 </desc>
18026 </param>
18027 <param name="returnUnits" type="wstring" dir="out" safearray="yes">
18028 <desc>
18029 Units of measurement for each returned metric.
18030 </desc>
18031 </param>
18032 <param name="returnScales" type="unsigned long" dir="out" safearray="yes">
18033 <desc>
18034 Divisor that should be applied to return values in order to get
18035 floating point values. For example:
18036 <tt>(double)returnData[returnDataIndices[0]+i] / returnScales[0]</tt>
18037 will retrieve the floating point value of i-th sample of the first
18038 metric.
18039 </desc>
18040 </param>
18041 <param name="returnSequenceNumbers" type="unsigned long" dir="out" safearray="yes">
18042 <desc>
18043 Sequence numbers of the first elements of value sequences of
18044 particular metrics returned in @c returnData. For aggregate metrics
18045 it is the sequence number of the sample the aggregate started
18046 calculation from.
18047 </desc>
18048 </param>
18049 <param name="returnDataIndices" type="unsigned long" dir="out" safearray="yes">
18050 <desc>
18051 Indices of the first elements of value sequences of particular
18052 metrics returned in @c returnData.
18053 </desc>
18054 </param>
18055 <param name="returnDataLengths" type="unsigned long" dir="out" safearray="yes">
18056 <desc>
18057 Lengths of value sequences of particular metrics.
18058 </desc>
18059 </param>
18060 <param name="returnData" type="long" dir="return" safearray="yes">
18061 <desc>
18062 Flattened array of all metric data containing sequences of values for
18063 each metric.
18064 </desc>
18065 </param>
18066 </method>
18067
18068 </interface>
18069
18070 <enum
18071 name="NATAliasMode"
18072 uuid="67772168-50d9-11df-9669-7fb714ee4fa1"
18073 >
18074 <desc></desc>
18075 <const name="AliasLog" value="0x1">
18076 <desc></desc>
18077 </const>
18078 <const name="AliasProxyOnly" value="0x02">
18079 <desc></desc>
18080 </const>
18081 <const name="AliasUseSamePorts" value="0x04">
18082 <desc></desc>
18083 </const>
18084 </enum>
18085
18086 <enum
18087 name="NATProtocol"
18088 uuid="e90164be-eb03-11de-94af-fff9b1c1b19f"
18089 >
18090 <desc>Protocol definitions used with NAT port-forwarding rules.</desc>
18091 <const name="UDP" value="0">
18092 <desc>Port-forwarding uses UDP protocol.</desc>
18093 </const>
18094 <const name="TCP" value="1">
18095 <desc>Port-forwarding uses TCP protocol.</desc>
18096 </const>
18097 </enum>
18098
18099 <interface
18100 name="INATEngine" extends="$unknown"
18101 uuid="26451b99-3b2d-4dcb-8e4b-d63654218175"
18102 wsmap="managed"
18103 >
18104 <desc>Interface for managing a NAT engine which is used with a virtual machine. This
18105 allows for changing NAT behavior such as port-forwarding rules. This interface is
18106 used in the <link to="INetworkAdapter::NATEngine" /> attribute.</desc>
18107 <attribute name="network" type="wstring">
18108 <desc>The network attribute of the NAT engine (the same value is used with built-in
18109 DHCP server to fill corresponding fields of DHCP leases).</desc>
18110 </attribute>
18111 <attribute name="hostIP" type="wstring">
18112 <desc>IP of host interface to bind all opened sockets to.
18113 <note>Changing this does not change binding of port forwarding.</note>
18114 </desc>
18115 </attribute>
18116 <attribute name="TFTPPrefix" type="wstring">
18117 <desc>TFTP prefix attribute which is used with the built-in DHCP server to fill
18118 the corresponding fields of DHCP leases.</desc>
18119 </attribute>
18120 <attribute name="TFTPBootFile" type="wstring">
18121 <desc>TFTP boot file attribute which is used with the built-in DHCP server to fill
18122 the corresponding fields of DHCP leases.</desc>
18123 </attribute>
18124 <attribute name="TFTPNextServer" type="wstring">
18125 <desc>TFTP server attribute which is used with the built-in DHCP server to fill
18126 the corresponding fields of DHCP leases.
18127 <note>The preferred form is IPv4 addresses.</note>
18128 </desc>
18129 </attribute>
18130 <attribute name="aliasMode" type="unsigned long">
18131 <desc></desc>
18132 </attribute>
18133 <attribute name="DNSPassDomain" type="boolean">
18134 <desc>Whether the DHCP server should pass the DNS domain used by the host.</desc>
18135 </attribute>
18136 <attribute name="DNSProxy" type="boolean">
18137 <desc>Whether the DHCP server (and the DNS traffic by NAT) should pass the address
18138 of the DNS proxy and process traffic using DNS servers registered on the host.</desc>
18139 </attribute>
18140 <attribute name="DNSUseHostResolver" type="boolean">
18141 <desc>Whether the DHCP server (and the DNS traffic by NAT) should pass the address
18142 of the DNS proxy and process traffic using the host resolver mechanism.</desc>
18143 </attribute>
18144 <attribute name="redirects" type="wstring" readonly="yes" safearray="yes">
18145 <desc>Array of NAT port-forwarding rules in string representation, in the following
18146 format: "name,protocol id,host ip,host port,guest ip,guest port".</desc>
18147 </attribute>
18148 <method name="setNetworkSettings">
18149 <desc>Sets network configuration of the NAT engine.</desc>
18150 <param name="mtu" type="unsigned long" dir="in">
18151 <desc>MTU (maximum transmission unit) of the NAT engine in bytes.</desc>
18152 </param>
18153 <param name="sockSnd" type="unsigned long" dir="in">
18154 <desc>Capacity of the socket send buffer in bytes when creating a new socket.</desc>
18155 </param>
18156 <param name="sockRcv" type="unsigned long" dir="in">
18157 <desc>Capacity of the socket receive buffer in bytes when creating a new socket.</desc>
18158 </param>
18159 <param name="TcpWndSnd" type="unsigned long" dir="in">
18160 <desc>Initial size of the NAT engine's sending TCP window in bytes when
18161 establishing a new TCP connection.</desc>
18162 </param>
18163 <param name="TcpWndRcv" type="unsigned long" dir="in">
18164 <desc>Initial size of the NAT engine's receiving TCP window in bytes when
18165 establishing a new TCP connection.</desc>
18166 </param>
18167 </method>
18168 <method name="getNetworkSettings">
18169 <desc>Returns network configuration of NAT engine. See <link to="#setNetworkSettings" />
18170 for parameter descriptions.</desc>
18171 <param name="mtu" type="unsigned long" dir="out" />
18172 <param name="sockSnd" type="unsigned long" dir="out" />
18173 <param name="sockRcv" type="unsigned long" dir="out" />
18174 <param name="TcpWndSnd" type="unsigned long" dir="out" />
18175 <param name="TcpWndRcv" type="unsigned long" dir="out" />
18176 </method>
18177 <method name="addRedirect">
18178 <desc>Adds a new NAT port-forwarding rule.</desc>
18179 <param name="name" type="wstring" dir="in">
18180 <desc>The name of the rule. An empty name is acceptable, in which case the NAT engine
18181 auto-generates one using the other parameters.</desc>
18182 </param>
18183 <param name="proto" type="NATProtocol" dir="in">
18184 <desc>Protocol handled with the rule.</desc>
18185 </param>
18186 <param name="hostIP" type="wstring" dir="in">
18187 <desc>IP of the host interface to which the rule should apply. An empty ip address is
18188 acceptable, in which case the NAT engine binds the handling socket to any interface.</desc>
18189 </param>
18190 <param name="hostPort" type="unsigned short" dir="in">
18191 <desc>The port number to listen on.</desc>
18192 </param>
18193 <param name="guestIP" type="wstring" dir="in">
18194 <desc>The IP address of the guest which the NAT engine will forward matching packets
18195 to. An empty IP address is acceptable, in which case the NAT engine will forward
18196 packets to the first DHCP lease (x.x.x.15).</desc>
18197 </param>
18198 <param name="guestPort" type="unsigned short" dir="in">
18199 <desc>The port number to forward.</desc>
18200 </param>
18201 </method>
18202 <method name="removeRedirect">
18203 <desc>Removes a port-forwarding rule that was previously registered.</desc>
18204 <param name="name" type="wstring" dir="in">
18205 <desc>The name of the rule to delete.</desc>
18206 </param>
18207 </method>
18208 </interface>
18209
18210 <!--
18211 // IExtPackManager
18212 /////////////////////////////////////////////////////////////////////////
18213 -->
18214
18215 <interface
18216 name="IExtPackPlugIn" extends="$unknown"
18217 uuid="58000040-e718-4746-bbce-4b86d96da461"
18218 wsmap="suppress"
18219 >
18220 <desc>
18221 Interface for keeping information about a plug-in that ships with an
18222 extension pack.
18223 </desc>
18224 <attribute name="name" type="wstring" readonly="yes">
18225 <desc>The plug-in name.</desc>
18226 </attribute>
18227 <attribute name="description" type="wstring" readonly="yes">
18228 <desc>The plug-in description.</desc>
18229 </attribute>
18230 <attribute name="frontend" type="wstring" readonly="yes">
18231 <desc>
18232 The name of the frontend or component name this plug-in plugs into.
18233 </desc>
18234 </attribute>
18235 <attribute name="modulePath" type="wstring" readonly="yes">
18236 <desc> The module path. </desc>
18237 </attribute>
18238 </interface>
18239
18240 <interface
18241 name="IExtPackBase" extends="$unknown"
18242 uuid="f79b75d8-2890-4f34-ffff-ffffa144e82c"
18243 wsmap="suppress"
18244 >
18245 <desc>
18246 Interface for querying information about an extension pack as well as
18247 accessing COM objects within it.
18248 </desc>
18249 <attribute name="name" type="wstring" readonly="yes">
18250 <desc>The extension pack name. This is unique.</desc>
18251 </attribute>
18252 <attribute name="description" type="wstring" readonly="yes">
18253 <desc>The extension pack description.</desc>
18254 </attribute>
18255 <attribute name="version" type="wstring" readonly="yes">
18256 <desc>
18257 The extension pack version string. This is restricted to the dotted
18258 version number and optionally a build indicator. No tree revision or
18259 tag will be included in the string as those things are available as
18260 separate properties. An optional publisher tag may be present like for
18261 <link to="IVirtualBox::version"/>.
18262
18263 Examples: "1.2.3", "1.2.3_BETA1" and "1.2.3_RC2".
18264 </desc>
18265 </attribute>
18266 <attribute name="revision" type="unsigned long" readonly="yes">
18267 <desc>The extension pack internal revision number.</desc>
18268 </attribute>
18269 <attribute name="edition" type="wstring" readonly="yes">
18270 <desc>
18271 Edition indicator. This is usually empty.
18272
18273 Can for instance be used to help distinguishing between two editions
18274 of the same extension pack where only the license, service contract or
18275 something differs.
18276 </desc>
18277 </attribute>
18278 <attribute name="VRDEModule" type="wstring" readonly="yes">
18279 <desc>The name of the VRDE module if the extension pack sports one.</desc>
18280 </attribute>
18281 <attribute name="plugIns" type="IExtPackPlugIn" safearray="yes" readonly="yes">
18282 <desc>Plug-ins provided by this extension pack.</desc>
18283 </attribute>
18284 <attribute name="usable" type="boolean" readonly="yes">
18285 <desc>
18286 Indicates whether the extension pack is usable or not.
18287
18288 There are a number of reasons why an extension pack might be unusable,
18289 typical examples would be broken installation/file or that it is
18290 incompatible with the current VirtualBox version.
18291 </desc>
18292 </attribute>
18293 <attribute name="whyUnusable" type="wstring" readonly="yes">
18294 <desc>
18295 String indicating why the extension pack is not usable. This is an
18296 empty string if usable and always a non-empty string if not usable.
18297 </desc>
18298 </attribute>
18299 <attribute name="showLicense" type="boolean" readonly="yes">
18300 <desc>Whether to show the license before installation</desc>
18301 </attribute>
18302 <attribute name="license" type="wstring" readonly="yes">
18303 <desc>
18304 The default HTML license text for the extension pack. Same as
18305 calling <link to="#queryLicense">queryLicense</link> with
18306 preferredLocale and preferredLanguage as empty strings and format set
18307 to html.
18308 </desc>
18309 </attribute>
18310
18311 <method name="queryLicense">
18312 <desc>
18313 Full feature version of the license attribute.
18314 </desc>
18315 <param name="preferredLocale" type="wstring" dir="in">
18316 <desc>
18317 The preferred license locale. Pass an empty string to get the default
18318 license.
18319 </desc>
18320 </param>
18321 <param name="preferredLanguage" type="wstring" dir="in">
18322 <desc>
18323 The preferred license language. Pass an empty string to get the
18324 default language for the locale.
18325 </desc>
18326 </param>
18327 <param name="format" type="wstring" dir="in">
18328 <desc>
18329 The license format: html, rtf or txt. If a license is present there
18330 will always be an HTML of it, the rich text format (RTF) and plain
18331 text (txt) versions are optional. If
18332 </desc>
18333 </param>
18334 <param name="licenseText" type="wstring" dir="return">
18335 <desc>The license text.</desc>
18336 </param>
18337 </method>
18338
18339 </interface>
18340
18341 <interface
18342 name="IExtPack" extends="IExtPackBase"
18343 uuid="431685da-3618-4ebc-b038-833ba829b4b2"
18344 wsmap="suppress"
18345 >
18346 <desc>
18347 Interface for querying information about an extension pack as well as
18348 accessing COM objects within it.
18349 </desc>
18350 <method name="queryObject">
18351 <desc>
18352 Queries the IUnknown interface to an object in the extension pack
18353 main module. This allows plug-ins and others to talk directly to an
18354 extension pack.
18355 </desc>
18356 <param name="objUuid" type="wstring" dir="in">
18357 <desc>The object ID. What exactly this is </desc>
18358 </param>
18359 <param name="returnInterface" type="$unknown" dir="return">
18360 <desc>The queried interface.</desc>
18361 </param>
18362 </method>
18363 </interface>
18364
18365 <interface
18366 name="IExtPackFile" extends="IExtPackBase"
18367 uuid="b6b49f55-efcc-4f08-b486-56e8d8afb10b"
18368 wsmap="suppress"
18369 >
18370 <desc>
18371 Extension pack file (aka tarball, .vbox-extpack) representation returned
18372 by <link to="IExtPackManager::openExtPackFile"/>. This provides the base
18373 extension pack information with the addition of the file name.
18374 </desc>
18375 <attribute name="filePath" type="wstring" readonly="yes">
18376 <desc>
18377 The path to the extension pack file.
18378 </desc>
18379 </attribute>
18380
18381 <method name="install">
18382 <desc>
18383 Install the extension pack.
18384 </desc>
18385 <param name="replace" type="boolean" dir="in">
18386 <desc>
18387 Set this to automatically uninstall any existing extension pack with
18388 the same name as the one being installed.
18389 </desc>
18390 </param>
18391 <param name="displayInfo" type="wstring" dir="in">
18392 <desc>
18393 Platform specific display information. Reserved for future hacks.
18394 </desc>
18395 </param>
18396 <param name="progess" type="IProgress" dir="return">
18397 <desc>
18398 Progress object for the operation.
18399 </desc>
18400 </param>
18401 </method>
18402 </interface>
18403
18404 <interface
18405 name="IExtPackManager" extends="$unknown"
18406 uuid="3295e6ce-b051-47b2-9514-2c588bfe7554"
18407 wsmap="suppress"
18408 >
18409 <desc>
18410 Interface for managing VirtualBox Extension Packs.
18411
18412 TODO: Describe extension packs, how they are managed and how to create
18413 one.
18414 </desc>
18415
18416 <attribute name="installedExtPacks" type="IExtPack" safearray="yes" readonly="yes">
18417 <desc>
18418 List of the installed extension packs.
18419 </desc>
18420 </attribute>
18421
18422 <method name="find">
18423 <desc>
18424 Returns the extension pack with the specified name if found.
18425
18426 <result name="VBOX_E_OBJECT_NOT_FOUND">
18427 No extension pack matching @a name was found.
18428 </result>
18429 </desc>
18430 <param name="name" type="wstring" dir="in">
18431 <desc>The name of the extension pack to locate.</desc>
18432 </param>
18433 <param name="returnData" type="IExtPack" dir="return">
18434 <desc>The extension pack if found.</desc>
18435 </param>
18436 </method>
18437
18438 <method name="openExtPackFile">
18439 <desc>
18440 Attempts to open an extension pack file in preparation for
18441 installation.
18442 </desc>
18443 <param name="path" type="wstring" dir="in">
18444 <desc>The path of the extension pack tarball. This can optionally be
18445 followed by a "::SHA-256=hex-digit" of the tarball. </desc>
18446 </param>
18447 <param name="file" type="IExtPackFile" dir="return">
18448 <desc>The interface of the extension pack file object.</desc>
18449 </param>
18450 </method>
18451
18452 <method name="uninstall">
18453 <desc>Uninstalls an extension pack, removing all related files.</desc>
18454 <param name="name" type="wstring" dir="in">
18455 <desc>The name of the extension pack to uninstall.</desc>
18456 </param>
18457 <param name="forcedRemoval" type="boolean" dir="in">
18458 <desc>
18459 Forced removal of the extension pack. This means that the uninstall
18460 hook will not be called.
18461 </desc>
18462 </param>
18463 <param name="displayInfo" type="wstring" dir="in">
18464 <desc>
18465 Platform specific display information. Reserved for future hacks.
18466 </desc>
18467 </param>
18468 <param name="progess" type="IProgress" dir="return">
18469 <desc>
18470 Progress object for the operation.
18471 </desc>
18472 </param>
18473 </method>
18474
18475 <method name="cleanup">
18476 <desc>Cleans up failed installs and uninstalls</desc>
18477 </method>
18478
18479 <method name="queryAllPlugInsForFrontend">
18480 <desc>
18481 Gets the path to all the plug-in modules for a given frontend.
18482
18483 This is a convenience method that is intended to simplify the plug-in
18484 loading process for a frontend.
18485 </desc>
18486 <param name="frontendName" type="wstring" dir="in">
18487 <desc>The name of the frontend or component.</desc>
18488 </param>
18489 <param name="plugInModules" type="wstring" dir="return" safearray="yes">
18490 <desc>Array containing the plug-in modules (full paths).</desc>
18491 </param>
18492 </method>
18493
18494 <method name="isExtPackUsable">
18495 <desc>Check if the given extension pack is loaded and usable.</desc>
18496 <param name="name" type="wstring" dir="in">
18497 <desc>The name of the extension pack to check for.</desc>
18498 </param>
18499 <param name="usable" type="boolean" dir="return">
18500 <desc>Is the given extension pack loaded and usable.</desc>
18501 </param>
18502 </method>
18503
18504 </interface>
18505
18506 <!--
18507 // BandwidthGroupType
18508 /////////////////////////////////////////////////////////////////////////
18509 -->
18510 <enum
18511 name="BandwidthGroupType"
18512 uuid="1d92b67d-dc69-4be9-ad4c-93a01e1e0c8e">
18513
18514 <desc>
18515 Type of a bandwidth control group.
18516 </desc>
18517
18518 <const name="Null" value="0">
18519 <desc>
18520 Null type, must be first.
18521 </desc>
18522 </const>
18523
18524 <const name="Disk" value="1">
18525 <desc>
18526 The bandwidth group controls disk I/O.
18527 </desc>
18528 </const>
18529
18530 <const name="Network" value="2">
18531 <desc>
18532 The bandwidth group controls network I/O.
18533 </desc>
18534 </const>
18535
18536 </enum>
18537
18538 <!--
18539 // IBandwidthGroup
18540 /////////////////////////////////////////////////////////////////////////
18541 -->
18542 <interface
18543 name="IBandwidthGroup" extends="$unknown"
18544 uuid="badea2d7-0261-4146-89f0-6a57cc34833d"
18545 wsmap="managed"
18546 >
18547 <desc>Represents one bandwidth group.</desc>
18548
18549 <attribute name="name" type="wstring" readonly="yes">
18550 <desc>Name of the group.</desc>
18551 </attribute>
18552
18553 <attribute name="type" type="BandwidthGroupType" readonly="yes">
18554 <desc>Type of the group.</desc>
18555 </attribute>
18556
18557 <attribute name="reference" type="unsigned long" readonly="yes">
18558 <desc>How many devices/medium attachements use this group.</desc>
18559 </attribute>
18560
18561 <attribute name="maxBytesPerSec" type="long long">
18562 <desc>The maximum number of bytes which can be transfered by all
18563 entities attached to this group during one second.</desc>
18564 </attribute>
18565
18566 </interface>
18567
18568 <!--
18569 // IBandwidthControl
18570 /////////////////////////////////////////////////////////////////////////
18571 -->
18572 <interface
18573 name="IBandwidthControl" extends="$unknown"
18574 uuid="e2eb3930-d2f4-4f87-be17-0707e30f019f"
18575 wsmap="managed"
18576 >
18577 <desc>
18578 Controls the bandwidth groups of one machine used to cap I/O done by a VM.
18579 This includes network and disk I/O.
18580 </desc>
18581
18582 <attribute name="numGroups" type="unsigned long" readonly="yes">
18583 <desc>
18584 The current number of existing bandwidth groups managed.
18585 </desc>
18586 </attribute>
18587
18588 <method name="createBandwidthGroup">
18589 <desc>
18590 Creates a new bandwidth group.
18591 </desc>
18592
18593 <param name="name" type="wstring" dir="in">
18594 <desc>Name of the bandwidth group.</desc>
18595 </param>
18596 <param name="type" type="BandwidthGroupType" dir="in">
18597 <desc>The type of the bandwidth group (network or disk).</desc>
18598 </param>
18599 <param name="maxBytesPerSec" type="long long" dir="in">
18600 <desc>The maximum number of bytes which can be transfered by all
18601 entities attached to this group during one second.</desc>
18602 </param>
18603 </method>
18604
18605 <method name="deleteBandwidthGroup">
18606 <desc>
18607 Deletes a new bandwidth group.
18608 </desc>
18609
18610 <param name="name" type="wstring" dir="in">
18611 <desc>Name of the bandwidth group to delete.</desc>
18612 </param>
18613 </method>
18614
18615 <method name="getBandwidthGroup" const="yes">
18616 <desc>
18617 Get a bandwidth group by name.
18618 </desc>
18619
18620 <param name="name" type="wstring" dir="in">
18621 <desc>Name of the bandwidth group to get.</desc>
18622 </param>
18623 <param name="bandwidthGroup" type="IBandwidthGroup" dir="return">
18624 <desc>Where to store the bandwidth group on success.</desc>
18625 </param>
18626 </method>
18627
18628 <method name="getAllBandwidthGroups" const="yes">
18629 <desc>
18630 Get all managed bandwidth groups.
18631 </desc>
18632
18633 <param name="bandwidthGroups" type="IBandwidthGroup" dir="return" safearray="yes">
18634 <desc>The array of managed bandwidth groups.</desc>
18635 </param>
18636 </method>
18637 </interface>
18638
18639 <!--
18640 // IVirtualBoxClient
18641 /////////////////////////////////////////////////////////////////////////
18642 -->
18643
18644 <interface
18645 name="IVirtualBoxClient" extends="$unknown"
18646 uuid="5fe0bd48-1181-40d1-991f-3b02f269a823"
18647 wsmap="suppress"
18648 >
18649 <desc>
18650 Convenience interface for client applications. Treat this as a
18651 singleton, i.e. never create more than one instance of this interface.
18652
18653 At the moment only available for clients of the local API (not usable
18654 via the webservice). Once the session logic is redesigned this might
18655 change.
18656 </desc>
18657
18658 <attribute name="virtualBox" type="IVirtualBox" readonly="yes">
18659 <desc>
18660 Reference to the server-side API root object.
18661 </desc>
18662 </attribute>
18663
18664 <attribute name="session" type="ISession" readonly="yes">
18665 <desc>
18666 Create a new session object and return the reference to it.
18667 </desc>
18668 </attribute>
18669
18670 <attribute name="eventSource" type="IEventSource" readonly="yes">
18671 <desc>
18672 Event source for VirtualBoxClient events.
18673 </desc>
18674 </attribute>
18675
18676 </interface>
18677
18678 <!--
18679 // Events
18680 /////////////////////////////////////////////////////////////////////////
18681 -->
18682 <enum
18683 name="VBoxEventType"
18684 uuid="0d67e79e-b7b1-4919-aab3-b36866075515"
18685 >
18686
18687 <desc>
18688 Type of an event.
18689 See <link to="IEvent" /> for an introduction to VirtualBox event handling.
18690 </desc>
18691
18692 <const name="Invalid" value="0">
18693 <desc>
18694 Invalid event, must be first.
18695 </desc>
18696 </const>
18697
18698 <const name="Any" value="1">
18699 <desc>
18700 Wildcard for all events.
18701 Events of this type are never delivered, and only used in
18702 <link to="IEventSource::registerListener"/> call to simplify registration.
18703 </desc>
18704 </const>
18705
18706 <const name="Vetoable" value="2">
18707 <desc>
18708 Wildcard for all vetoable events. Events of this type are never delivered, and only
18709 used in <link to="IEventSource::registerListener"/> call to simplify registration.
18710 </desc>
18711 </const>
18712
18713 <const name="MachineEvent" value="3">
18714 <desc>
18715 Wildcard for all machine events. Events of this type are never delivered, and only used in
18716 <link to="IEventSource::registerListener"/> call to simplify registration.
18717 </desc>
18718 </const>
18719
18720 <const name="SnapshotEvent" value="4">
18721 <desc>
18722 Wildcard for all snapshot events. Events of this type are never delivered, and only used in
18723 <link to="IEventSource::registerListener"/> call to simplify registration.
18724 </desc>
18725 </const>
18726
18727 <const name="InputEvent" value="5">
18728 <desc>
18729 Wildcard for all input device (keyboard, mouse) events.
18730 Events of this type are never delivered, and only used in
18731 <link to="IEventSource::registerListener"/> call to simplify registration.
18732 </desc>
18733 </const>
18734
18735 <const name="LastWildcard" value="31">
18736 <desc>
18737 Last wildcard.
18738 </desc>
18739 </const>
18740
18741 <const name="OnMachineStateChanged" value="32">
18742 <desc>
18743 See <link to="IMachineStateChangedEvent">IMachineStateChangedEvent</link>.
18744 </desc>
18745 </const>
18746 <const name="OnMachineDataChanged" value="33">
18747 <desc>
18748 See <link to="IMachineDataChangedEvent">IMachineDataChangedEvent</link>.
18749 </desc>
18750 </const>
18751 <const name="OnExtraDataChanged" value="34">
18752 <desc>
18753 See <link to="IExtraDataChangedEvent">IExtraDataChangedEvent</link>.
18754 </desc>
18755 </const>
18756 <const name="OnExtraDataCanChange" value="35">
18757 <desc>
18758 See <link to="IExtraDataCanChangeEvent">IExtraDataCanChangeEvent</link>.
18759 </desc>
18760 </const>
18761 <const name="OnMediumRegistered" value="36">
18762 <desc>
18763 See <link to="IMediumRegisteredEvent">IMediumRegisteredEvent</link>.
18764 </desc>
18765 </const>
18766 <const name="OnMachineRegistered" value="37">
18767 <desc>
18768 See <link to="IMachineRegisteredEvent">IMachineRegisteredEvent</link>.
18769 </desc>
18770 </const>
18771 <const name="OnSessionStateChanged" value="38">
18772 <desc>
18773 See <link to="ISessionStateChangedEvent">ISessionStateChangedEvent</link>.
18774 </desc>
18775 </const>
18776 <const name="OnSnapshotTaken" value="39">
18777 <desc>
18778 See <link to="ISnapshotTakenEvent">ISnapshotTakenEvent</link>.
18779 </desc>
18780 </const>
18781 <const name="OnSnapshotDeleted" value="40">
18782 <desc>
18783 See <link to="ISnapshotDeletedEvent">ISnapshotDeletedEvent</link>.
18784 </desc>
18785 </const>
18786 <const name="OnSnapshotChanged" value="41">
18787 <desc>
18788 See <link to="ISnapshotChangedEvent">ISnapshotChangedEvent</link>.
18789 </desc>
18790 </const>
18791 <const name="OnGuestPropertyChanged" value="42">
18792 <desc>
18793 See <link to="IGuestPropertyChangedEvent">IGuestPropertyChangedEvent</link>.
18794 </desc>
18795 </const>
18796 <!-- Console events -->
18797 <const name="OnMousePointerShapeChanged" value="43">
18798 <desc>
18799 See <link to="IMousePointerShapeChangedEvent">IMousePointerShapeChangedEvent</link>.
18800 </desc>
18801 </const>
18802 <const name="OnMouseCapabilityChanged" value="44">
18803 <desc>
18804 See <link to="IMouseCapabilityChangedEvent">IMouseCapabilityChangedEvent</link>.
18805 </desc>
18806 </const>
18807 <const name="OnKeyboardLedsChanged" value="45">
18808 <desc>
18809 See <link to="IKeyboardLedsChangedEvent">IKeyboardLedsChangedEvent</link>.
18810 </desc>
18811 </const>
18812 <const name="OnStateChanged" value="46">
18813 <desc>
18814 See <link to="IStateChangedEvent">IStateChangedEvent</link>.
18815 </desc>
18816 </const>
18817 <const name="OnAdditionsStateChanged" value="47">
18818 <desc>
18819 See <link to="IAdditionsStateChangedEvent">IAdditionsStateChangedEvent</link>.
18820 </desc>
18821 </const>
18822 <const name="OnNetworkAdapterChanged" value="48">
18823 <desc>
18824 See <link to="INetworkAdapterChangedEvent">INetworkAdapterChangedEvent</link>.
18825 </desc>
18826 </const>
18827 <const name="OnSerialPortChanged" value="49">
18828 <desc>
18829 See <link to="ISerialPortChangedEvent">ISerialPortChangedEvent</link>.
18830 </desc>
18831 </const>
18832 <const name="OnParallelPortChanged" value="50">
18833 <desc>
18834 See <link to="IParallelPortChangedEvent">IParallelPortChangedEvent</link>.
18835 </desc>
18836 </const>
18837 <const name="OnStorageControllerChanged" value="51">
18838 <desc>
18839 See <link to="IStorageControllerChangedEvent">IStorageControllerChangedEvent</link>.
18840 </desc>
18841 </const>
18842 <const name="OnMediumChanged" value="52">
18843 <desc>
18844 See <link to="IMediumChangedEvent">IMediumChangedEvent</link>.
18845 </desc>
18846 </const>
18847 <const name="OnVRDEServerChanged" value="53">
18848 <desc>
18849 See <link to="IVRDEServerChangedEvent">IVRDEServerChangedEvent</link>.
18850 </desc>
18851 </const>
18852 <const name="OnUSBControllerChanged" value="54">
18853 <desc>
18854 See <link to="IUSBControllerChangedEvent">IUSBControllerChangedEvent</link>.
18855 </desc>
18856 </const>
18857 <const name="OnUSBDeviceStateChanged" value="55">
18858 <desc>
18859 See <link to="IUSBDeviceStateChangedEvent">IUSBDeviceStateChangedEvent</link>.
18860 </desc>
18861 </const>
18862 <const name="OnSharedFolderChanged" value="56">
18863 <desc>
18864 See <link to="ISharedFolderChangedEvent">ISharedFolderChangedEvent</link>.
18865 </desc>
18866 </const>
18867 <const name="OnRuntimeError" value="57">
18868 <desc>
18869 See <link to="IRuntimeErrorEvent">IRuntimeErrorEvent</link>.
18870 </desc>
18871 </const>
18872 <const name="OnCanShowWindow" value="58">
18873 <desc>
18874 See <link to="ICanShowWindowEvent">ICanShowWindowEvent</link>.
18875 </desc>
18876 </const>
18877 <const name="OnShowWindow" value="59">
18878 <desc>
18879 See <link to="IShowWindowEvent">IShowWindowEvent</link>.
18880 </desc>
18881 </const>
18882 <const name="OnCPUChanged" value="60">
18883 <desc>
18884 See <link to="ICPUChangedEvent">ICPUChangedEvent</link>.
18885 </desc>
18886 </const>
18887 <const name="OnVRDEServerInfoChanged" value="61">
18888 <desc>
18889 See <link to="IVRDEServerInfoChangedEvent">IVRDEServerInfoChangedEvent</link>.
18890 </desc>
18891 </const>
18892 <const name="OnEventSourceChanged" value="62">
18893 <desc>
18894 See <link to="IEventSourceChangedEvent">IEventSourceChangedEvent</link>.
18895 </desc>
18896 </const>
18897 <const name="OnCPUExecutionCapChanged" value="63">
18898 <desc>
18899 See <link to="ICPUExecutionCapChangedEvent">ICPUExecutionCapChangedEvent</link>.
18900 </desc>
18901 </const>
18902 <const name="OnGuestKeyboard" value="64">
18903 <desc>
18904 See <link to="IGuestKeyboardEvent">IGuestKeyboardEvent</link>.
18905 </desc>
18906 </const>
18907 <const name="OnGuestMouse" value="65">
18908 <desc>
18909 See <link to="IGuestMouseEvent">IGuestMouseEvent</link>.
18910 </desc>
18911 </const>
18912 <const name="OnNATRedirect" value="66">
18913 <desc>
18914 See <link to="INATRedirectEvent">INATRedirectEvent</link>.
18915 </desc>
18916 </const>
18917 <const name="OnHostPCIDevicePlug" value="67">
18918 <desc>
18919 See <link to="IHostPCIDevicePlugEvent">IHostPCIDevicePlugEvent</link>.
18920 </desc>
18921 </const>
18922 <const name="OnVBoxSVCAvailabilityChanged" value="68">
18923 <desc>
18924 See <link to="IVBoxSVCAvailabilityChangedEvent">IVBoxSVCAvailablityChangedEvent</link>.
18925 </desc>
18926 </const>
18927 <const name="OnBandwidthGroupChanged" value="69">
18928 <desc>
18929 See <link to="IBandwidthGroupChangedEvent">IBandwidthGroupChangedEvent</link>.
18930 </desc>
18931 </const>
18932 <const name="OnGuestMonitorChanged" value="70">
18933 <desc>
18934 See <link to="IGuestMonitorChangedEvent">IGuestMonitorChangedEvent</link>.
18935 </desc>
18936 </const>
18937 <const name="OnStorageDeviceChanged" value="71">
18938 <desc>
18939 See <link to="IStorageDeviceChangedEvent">IStorageDeviceChangedEvent</link>.
18940 </desc>
18941 </const>
18942 <const name="OnClipboardModeChanged" value="72">
18943 <desc>
18944 See <link to="IClipboardModeChangedEvent">IClipboardModeChangedEvent</link>.
18945 </desc>
18946 </const>
18947 <const name="OnDragAndDropModeChanged" value="73">
18948 <desc>
18949 See <link to="IDragAndDropModeChangedEvent">IDragAndDropModeChangedEvent</link>.
18950 </desc>
18951 </const>
18952
18953 <!-- Last event marker -->
18954 <const name="Last" value="74">
18955 <desc>
18956 Must be last event, used for iterations and structures relying on numerical event values.
18957 </desc>
18958 </const>
18959
18960 </enum>
18961
18962 <interface
18963 name="IEventSource" extends="$unknown"
18964 uuid="9b6e1aee-35f3-4f4d-b5bb-ed0ecefd8538"
18965 wsmap="managed"
18966 >
18967 <desc>
18968 Event source. Generally, any object which could generate events can be an event source,
18969 or aggregate one. To simplify using one-way protocols such as webservices running on top of HTTP(S),
18970 an event source can work with listeners in either active or passive mode. In active mode it is up to
18971 the IEventSource implementation to call <link to="IEventListener::handleEvent" />, in passive mode the
18972 event source keeps track of pending events for each listener and returns available events on demand.
18973
18974 See <link to="IEvent" /> for an introduction to VirtualBox event handling.
18975 </desc>
18976
18977 <method name="createListener">
18978 <desc>
18979 Creates a new listener object, useful for passive mode.
18980 </desc>
18981 <param name="listener" type="IEventListener" dir="return"/>
18982 </method>
18983
18984 <method name="createAggregator">
18985 <desc>
18986 Creates an aggregator event source, collecting events from multiple sources.
18987 This way a single listener can listen for events coming from multiple sources,
18988 using a single blocking <link to="#getEvent"/> on the returned aggregator.
18989 </desc>
18990 <param name="subordinates" type="IEventSource" dir="in" safearray="yes">
18991 <desc>
18992 Subordinate event source this one aggregatres.
18993 </desc>
18994 </param>
18995 <param name="result" type="IEventSource" dir="return">
18996 <desc>
18997 Event source aggregating passed sources.
18998 </desc>
18999 </param>
19000 </method>
19001
19002 <method name="registerListener">
19003 <desc>
19004 Register an event listener.
19005
19006 <note>
19007 To avoid system overload, the VirtualBox server process checks if passive event
19008 listeners call <link to="IEventSource::getEvent"/> frequently enough. In the
19009 current implementation, if more than 500 pending events are detected for a passive
19010 event listener, it is forcefully unregistered by the system, and further
19011 <link to="#getEvent" /> calls will return @c VBOX_E_OBJECT_NOT_FOUND.
19012 </note>
19013 </desc>
19014 <param name="listener" type="IEventListener" dir="in">
19015 <desc>Listener to register.</desc>
19016 </param>
19017 <param name="interesting" type="VBoxEventType" dir="in" safearray="yes">
19018 <desc>
19019 Event types listener is interested in. One can use wildcards like -
19020 <link to="VBoxEventType_Any"/> to specify wildcards, matching more
19021 than one event.
19022 </desc>
19023 </param>
19024 <param name="active" type="boolean" dir="in">
19025 <desc>
19026 Which mode this listener is operating in.
19027 In active mode, <link to="IEventListener::handleEvent" /> is called directly.
19028 In passive mode, an internal event queue is created for this this IEventListener.
19029 For each event coming in, it is added to queues for all interested registered passive
19030 listeners. It is then up to the external code to call the listener's
19031 <link to="IEventListener::handleEvent" /> method. When done with an event, the
19032 external code must call <link to="#eventProcessed" />.
19033 </desc>
19034 </param>
19035 </method>
19036
19037 <method name="unregisterListener">
19038 <desc>
19039 Unregister an event listener. If listener is passive, and some waitable events are still
19040 in queue they are marked as processed automatically.
19041 </desc>
19042 <param name="listener" type="IEventListener" dir="in">
19043 <desc>Listener to unregister.</desc>
19044 </param>
19045 </method>
19046
19047 <method name="fireEvent">
19048 <desc>
19049 Fire an event for this source.
19050 </desc>
19051 <param name="event" type="IEvent" dir="in">
19052 <desc>Event to deliver.</desc>
19053 </param>
19054 <param name="timeout" type="long" dir="in">
19055 <desc>
19056 Maximum time to wait for event processing (if event is waitable), in ms;
19057 0 = no wait, -1 = indefinite wait.
19058 </desc>
19059 </param>
19060 <param name="result" type="boolean" dir="return">
19061 <desc>true if an event was delivered to all targets, or is non-waitable.</desc>
19062 </param>
19063 </method>
19064
19065 <method name="getEvent">
19066 <desc>
19067 Get events from this peer's event queue (for passive mode). Calling this method
19068 regularly is required for passive event listeners to avoid system overload;
19069 see <link to="IEventSource::registerListener" /> for details.
19070
19071 <result name="VBOX_E_OBJECT_NOT_FOUND">
19072 Listener is not registered, or autounregistered.
19073 </result>
19074 </desc>
19075 <param name="listener" type="IEventListener" dir="in">
19076 <desc>Which listener to get data for.</desc>
19077 </param>
19078 <param name="timeout" type="long" dir="in">
19079 <desc>
19080 Maximum time to wait for events, in ms;
19081 0 = no wait, -1 = indefinite wait.
19082 </desc>
19083 </param>
19084 <param name="event" type="IEvent" dir="return">
19085 <desc>Event retrieved, or null if none available.</desc>
19086 </param>
19087 </method>
19088
19089 <method name="eventProcessed">
19090 <desc>
19091 Must be called for waitable events after a particular listener finished its
19092 event processing. When all listeners of a particular event have called this
19093 method, the system will then call <link to="IEvent::setProcessed" />.
19094 </desc>
19095 <param name="listener" type="IEventListener" dir="in">
19096 <desc>Which listener processed event.</desc>
19097 </param>
19098 <param name="event" type="IEvent" dir="in">
19099 <desc>Which event.</desc>
19100 </param>
19101 </method>
19102
19103 </interface>
19104
19105 <interface
19106 name="IEventListener" extends="$unknown"
19107 uuid="67099191-32e7-4f6c-85ee-422304c71b90"
19108 wsmap="managed"
19109 >
19110 <desc>
19111 Event listener. An event listener can work in either active or passive mode, depending on the way
19112 it was registered.
19113 See <link to="IEvent" /> for an introduction to VirtualBox event handling.
19114 </desc>
19115
19116 <method name="handleEvent">
19117 <desc>
19118 Handle event callback for active listeners. It is not called for
19119 passive listeners. After calling <link to="#handleEvent"/> on all active listeners
19120 and having received acknowledgement from all passive listeners via
19121 <link to="IEventSource::eventProcessed"/>, the event is marked as
19122 processed and <link to="IEvent::waitProcessed"/> will return
19123 immediately.
19124 </desc>
19125 <param name="event" type="IEvent" dir="in">
19126 <desc>Event available.</desc>
19127 </param>
19128 </method>
19129
19130 </interface>
19131
19132 <interface
19133 name="IEvent" extends="$unknown"
19134 uuid="0ca2adba-8f30-401b-a8cd-fe31dbe839c0"
19135 wsmap="managed"
19136 >
19137 <desc>
19138 Abstract parent interface for VirtualBox events. Actual events will typically implement
19139 a more specific interface which derives from this (see below).
19140
19141 <b>Introduction to VirtualBox events</b>
19142
19143 Generally speaking, an event (represented by this interface) signals that something
19144 happened, while an event listener (see <link to="IEventListener" />) represents an
19145 entity that is interested in certain events. In order for this to work with
19146 unidirectional protocols (i.e. web services), the concepts of passive and active
19147 listener are used.
19148
19149 Event consumers can register themselves as listeners, providing an array of
19150 events they are interested in (see <link to="IEventSource::registerListener" />).
19151 When an event triggers, the listener is notified about the event. The exact
19152 mechanism of the notification depends on whether the listener was registered as
19153 an active or passive listener:
19154
19155 <ul>
19156 <li>An active listener is very similar to a callback: it is a function invoked
19157 by the API. As opposed to the callbacks that were used in the API before
19158 VirtualBox 4.0 however, events are now objects with an interface hierarchy.
19159 </li>
19160
19161 <li>Passive listeners are somewhat trickier to implement, but do not require
19162 a client function to be callable, which is not an option with scripting
19163 languages or web service clients. Internally the <link to="IEventSource" />
19164 implementation maintains an event queue for each passive listener, and
19165 newly arrived events are put in this queue. When the listener calls
19166 <link to="IEventSource::getEvent"/>, first element from its internal event
19167 queue is returned. When the client completes processing of an event,
19168 the <link to="IEventSource::eventProcessed" /> function must be called,
19169 acknowledging that the event was processed. It supports implementing
19170 waitable events. On passive listener unregistration, all events from its
19171 queue are auto-acknowledged.
19172 </li>
19173 </ul>
19174
19175 Waitable events are useful in situations where the event generator wants to track
19176 delivery or a party wants to wait until all listeners have completed the event. A
19177 typical example would be a vetoable event (see <link to="IVetoEvent" />) where a
19178 listeners might veto a certain action, and thus the event producer has to make
19179 sure that all listeners have processed the event and not vetoed before taking
19180 the action.
19181
19182 A given event may have both passive and active listeners at the same time.
19183
19184 <b>Using events</b>
19185
19186 Any VirtualBox object capable of producing externally visible events provides an
19187 @c eventSource read-only attribute, which is of the type <link to="IEventSource" />.
19188 This event source object is notified by VirtualBox once something has happened, so
19189 consumers may register event listeners with this event source. To register a listener,
19190 an object implementing the <link to="IEventListener" /> interface must be provided.
19191 For active listeners, such an object is typically created by the consumer, while for
19192 passive listeners <link to="IEventSource::createListener" /> should be used. Please
19193 note that a listener created with <link to="IEventSource::createListener"/> must not be used as an active listener.
19194
19195 Once created, the listener must be registered to listen for the desired events
19196 (see <link to="IEventSource::registerListener" />), providing an array of
19197 <link to="VBoxEventType" /> enums. Those elements can either be the individual
19198 event IDs or wildcards matching multiple event IDs.
19199
19200 After registration, the callback's <link to="IEventListener::handleEvent" /> method is
19201 called automatically when the event is triggered, while passive listeners have to call
19202 <link to="IEventSource::getEvent" /> and <link to="IEventSource::eventProcessed" /> in
19203 an event processing loop.
19204
19205 The IEvent interface is an abstract parent interface for all such VirtualBox events
19206 coming in. As a result, the standard use pattern inside <link to="IEventListener::handleEvent" />
19207 or the event processing loop is to check the <link to="#type" /> attribute of the event and
19208 then cast to the appropriate specific interface using @c QueryInterface().
19209 </desc>
19210
19211 <attribute name="type" readonly="yes" type="VBoxEventType">
19212 <desc>
19213 Event type.
19214 </desc>
19215 </attribute>
19216
19217 <attribute name="source" readonly="yes" type="IEventSource">
19218 <desc>
19219 Source of this event.
19220 </desc>
19221 </attribute>
19222
19223 <attribute name="waitable" readonly="yes" type="boolean">
19224 <desc>
19225 If we can wait for this event being processed. If false, <link to="#waitProcessed"/> returns immediately,
19226 and <link to="#setProcessed"/> doesn't make sense. Non-waitable events are generally better performing,
19227 as no additional overhead associated with waitability imposed.
19228 Waitable events are needed when one need to be able to wait for particular event processed,
19229 for example for vetoable changes, or if event refers to some resource which need to be kept immutable
19230 until all consumers confirmed events.
19231 </desc>
19232 </attribute>
19233
19234 <method name="setProcessed">
19235 <desc>
19236 Internal method called by the system when all listeners of a particular event have called
19237 <link to="IEventSource::eventProcessed" />. This should not be called by client code.
19238 </desc>
19239 </method>
19240
19241 <method name="waitProcessed">
19242 <desc>
19243 Wait until time outs, or this event is processed. Event must be waitable for this operation to have
19244 described semantics, for non-waitable returns true immediately.
19245 </desc>
19246 <param name="timeout" type="long" dir="in">
19247 <desc>
19248 Maximum time to wait for event processeing, in ms;
19249 0 = no wait, -1 = indefinite wait.
19250 </desc>
19251 </param>
19252 <param name="result" type="boolean" dir="return">
19253 <desc>If this event was processed before timeout.</desc>
19254 </param>
19255 </method>
19256 </interface>
19257
19258
19259 <interface
19260 name="IReusableEvent" extends="IEvent"
19261 uuid="69bfb134-80f6-4266-8e20-16371f68fa25"
19262 wsmap="managed"
19263 >
19264 <desc>Base abstract interface for all reusable events.</desc>
19265
19266 <attribute name="generation" readonly="yes" type="unsigned long">
19267 <desc>Current generation of event, incremented on reuse.</desc>
19268 </attribute>
19269
19270 <method name="reuse">
19271 <desc>
19272 Marks an event as reused, increments 'generation', fields shall no
19273 longer be considered valid.
19274 </desc>
19275 </method>
19276 </interface>
19277
19278 <interface
19279 name="IMachineEvent" extends="IEvent"
19280 uuid="92ed7b1a-0d96-40ed-ae46-a564d484325e"
19281 wsmap="managed" id="MachineEvent"
19282 >
19283 <desc>Base abstract interface for all machine events.</desc>
19284
19285 <attribute name="machineId" readonly="yes" type="uuid" mod="string">
19286 <desc>ID of the machine this event relates to.</desc>
19287 </attribute>
19288
19289 </interface>
19290
19291 <interface
19292 name="IMachineStateChangedEvent" extends="IMachineEvent"
19293 uuid="5748F794-48DF-438D-85EB-98FFD70D18C9"
19294 wsmap="managed" autogen="VBoxEvent" id="OnMachineStateChanged"
19295 >
19296 <desc>Machine state change event.</desc>
19297
19298 <attribute name="state" readonly="yes" type="MachineState">
19299 <desc>New execution state.</desc>
19300 </attribute>
19301 </interface>
19302
19303 <interface
19304 name="IMachineDataChangedEvent" extends="IMachineEvent"
19305 uuid="abe94809-2e88-4436-83d7-50f3e64d0503"
19306 wsmap="managed" autogen="VBoxEvent" id="OnMachineDataChanged"
19307 >
19308 <desc>
19309 Any of the settings of the given machine has changed.
19310 </desc>
19311
19312 <attribute name="temporary" readonly="yes" type="boolean">
19313 <desc>@c true if the settings change is temporary. All permanent
19314 settings changes will trigger an event, and only temporary settings
19315 changes for running VMs will trigger an event. Note: sending events
19316 for temporary changes is NOT IMPLEMENTED.</desc>
19317 </attribute>
19318 </interface>
19319
19320 <interface
19321 name="IMediumRegisteredEvent" extends="IEvent"
19322 uuid="53fac49a-b7f1-4a5a-a4ef-a11dd9c2a458"
19323 wsmap="managed" autogen="VBoxEvent" id="OnMediumRegistered"
19324 >
19325 <desc>
19326 The given medium was registered or unregistered
19327 within this VirtualBox installation.
19328 </desc>
19329
19330 <attribute name="mediumId" readonly="yes" type="uuid" mod="string">
19331 <desc>ID of the medium this event relates to.</desc>
19332 </attribute>
19333
19334 <attribute name="mediumType" readonly="yes" type="DeviceType">
19335 <desc>Type of the medium this event relates to.</desc>
19336 </attribute>
19337
19338 <attribute name="registered" type="boolean" readonly="yes">
19339 <desc>
19340 If @c true, the medium was registered, otherwise it was
19341 unregistered.
19342 </desc>
19343 </attribute>
19344 </interface>
19345
19346 <interface
19347 name="IMachineRegisteredEvent" extends="IMachineEvent"
19348 uuid="c354a762-3ff2-4f2e-8f09-07382ee25088"
19349 wsmap="managed" autogen="VBoxEvent" id="OnMachineRegistered"
19350 >
19351 <desc>
19352 The given machine was registered or unregistered
19353 within this VirtualBox installation.
19354 </desc>
19355
19356 <attribute name="registered" type="boolean" readonly="yes">
19357 <desc>
19358 If @c true, the machine was registered, otherwise it was
19359 unregistered.
19360 </desc>
19361 </attribute>
19362 </interface>
19363
19364 <interface
19365 name="ISessionStateChangedEvent" extends="IMachineEvent"
19366 uuid="714a3eef-799a-4489-86cd-fe8e45b2ff8e"
19367 wsmap="managed" autogen="VBoxEvent" id="OnSessionStateChanged"
19368 >
19369 <desc>
19370 The state of the session for the given machine was changed.
19371 <see><link to="IMachine::sessionState"/></see>
19372 </desc>
19373
19374 <attribute name="state" type="SessionState" readonly="yes">
19375 <desc>
19376 New session state.
19377 </desc>
19378 </attribute>
19379 </interface>
19380
19381 <interface
19382 name="IGuestPropertyChangedEvent" extends="IMachineEvent"
19383 uuid="3f63597a-26f1-4edb-8dd2-6bddd0912368"
19384 wsmap="managed" autogen="VBoxEvent" id="OnGuestPropertyChanged"
19385 >
19386 <desc>
19387 Notification when a guest property has changed.
19388 </desc>
19389
19390 <attribute name="name" readonly="yes" type="wstring">
19391 <desc>
19392 The name of the property that has changed.
19393 </desc>
19394 </attribute>
19395
19396 <attribute name="value" readonly="yes" type="wstring">
19397 <desc>
19398 The new property value.
19399 </desc>
19400 </attribute>
19401
19402 <attribute name="flags" readonly="yes" type="wstring">
19403 <desc>
19404 The new property flags.
19405 </desc>
19406 </attribute>
19407
19408 </interface>
19409
19410 <interface
19411 name="ISnapshotEvent" extends="IMachineEvent"
19412 uuid="21637b0e-34b8-42d3-acfb-7e96daf77c22"
19413 wsmap="managed" id="SnapshotEvent"
19414 >
19415 <desc>Base interface for all snapshot events.</desc>
19416
19417 <attribute name="snapshotId" readonly="yes" type="uuid" mod="string">
19418 <desc>ID of the snapshot this event relates to.</desc>
19419 </attribute>
19420
19421 </interface>
19422
19423 <interface
19424 name="ISnapshotTakenEvent" extends="ISnapshotEvent"
19425 uuid="d27c0b3d-6038-422c-b45e-6d4a0503d9f1"
19426 wsmap="managed" autogen="VBoxEvent" id="OnSnapshotTaken"
19427 >
19428 <desc>
19429 A new snapshot of the machine has been taken.
19430 <see><link to="ISnapshot"/></see>
19431 </desc>
19432 </interface>
19433
19434 <interface
19435 name="ISnapshotDeletedEvent" extends="ISnapshotEvent"
19436 uuid="c48f3401-4a9e-43f4-b7a7-54bd285e22f4"
19437 wsmap="managed" autogen="VBoxEvent" id="OnSnapshotDeleted"
19438 >
19439 <desc>
19440 Snapshot of the given machine has been deleted.
19441
19442 <note>
19443 This notification is delivered <b>after</b> the snapshot
19444 object has been uninitialized on the server (so that any
19445 attempt to call its methods will return an error).
19446 </note>
19447
19448 <see><link to="ISnapshot"/></see>
19449 </desc>
19450 </interface>
19451
19452 <interface
19453 name="ISnapshotChangedEvent" extends="ISnapshotEvent"
19454 uuid="07541941-8079-447a-a33e-47a69c7980db"
19455 wsmap="managed" autogen="VBoxEvent" id="OnSnapshotChanged"
19456 >
19457 <desc>
19458 Snapshot properties (name and/or description) have been changed.
19459 <see><link to="ISnapshot"/></see>
19460 </desc>
19461 </interface>
19462
19463 <interface
19464 name="IMousePointerShapeChangedEvent" extends="IEvent"
19465 uuid="a6dcf6e8-416b-4181-8c4a-45ec95177aef"
19466 wsmap="managed" autogen="VBoxEvent" id="OnMousePointerShapeChanged"
19467 >
19468 <desc>
19469 Notification when the guest mouse pointer shape has
19470 changed. The new shape data is given.
19471 </desc>
19472
19473 <attribute name="visible" type="boolean" readonly="yes">
19474 <desc>
19475 Flag whether the pointer is visible.
19476 </desc>
19477 </attribute>
19478 <attribute name="alpha" type="boolean" readonly="yes">
19479 <desc>
19480 Flag whether the pointer has an alpha channel.
19481 </desc>
19482 </attribute>
19483 <attribute name="xhot" type="unsigned long" readonly="yes">
19484 <desc>
19485 The pointer hot spot X coordinate.
19486 </desc>
19487 </attribute>
19488 <attribute name="yhot" type="unsigned long" readonly="yes">
19489 <desc>
19490 The pointer hot spot Y coordinate.
19491 </desc>
19492 </attribute>
19493 <attribute name="width" type="unsigned long" readonly="yes">
19494 <desc>
19495 Width of the pointer shape in pixels.
19496 </desc>
19497 </attribute>
19498 <attribute name="height" type="unsigned long" readonly="yes">
19499 <desc>
19500 Height of the pointer shape in pixels.
19501 </desc>
19502 </attribute>
19503 <attribute name="shape" type="octet" safearray="yes" readonly="yes">
19504 <desc>
19505 Shape buffer arrays.
19506
19507 The @a shape buffer contains a 1-bpp (bits per pixel) AND mask
19508 followed by a 32-bpp XOR (color) mask.
19509
19510 For pointers without alpha channel the XOR mask pixels are 32
19511 bit values: (lsb)BGR0(msb). For pointers with alpha channel
19512 the XOR mask consists of (lsb)BGRA(msb) 32 bit values.
19513
19514 An AND mask is used for pointers with alpha channel, so if the
19515 callback does not support alpha, the pointer could be
19516 displayed as a normal color pointer.
19517
19518 The AND mask is a 1-bpp bitmap with byte aligned scanlines. The
19519 size of the AND mask therefore is <tt>cbAnd = (width + 7) / 8 *
19520 height</tt>. The padding bits at the end of each scanline are
19521 undefined.
19522
19523 The XOR mask follows the AND mask on the next 4-byte aligned
19524 offset: <tt>uint8_t *pXor = pAnd + (cbAnd + 3) &amp; ~3</tt>.
19525 Bytes in the gap between the AND and the XOR mask are undefined.
19526 The XOR mask scanlines have no gap between them and the size of
19527 the XOR mask is: <tt>cXor = width * 4 * height</tt>.
19528
19529 <note>
19530 If @a shape is 0, only the pointer visibility is changed.
19531 </note>
19532 </desc>
19533 </attribute>
19534 </interface>
19535
19536 <interface
19537 name="IMouseCapabilityChangedEvent" extends="IEvent"
19538 uuid="d633ad48-820c-4207-b46c-6bd3596640d5"
19539 wsmap="managed" autogen="VBoxEvent" id="OnMouseCapabilityChanged"
19540 >
19541 <desc>
19542 Notification when the mouse capabilities reported by the
19543 guest have changed. The new capabilities are passed.
19544 </desc>
19545 <attribute name="supportsAbsolute" type="boolean" readonly="yes">
19546 <desc>
19547 Supports absolute coordinates.
19548 </desc>
19549 </attribute>
19550 <attribute name="supportsRelative" type="boolean" readonly="yes">
19551 <desc>
19552 Supports relative coordinates.
19553 </desc>
19554 </attribute>
19555 <attribute name="needsHostCursor" type="boolean" readonly="yes">
19556 <desc>
19557 If host cursor is needed.
19558 </desc>
19559 </attribute>
19560 </interface>
19561
19562 <interface
19563 name="IKeyboardLedsChangedEvent" extends="IEvent"
19564 uuid="6DDEF35E-4737-457B-99FC-BC52C851A44F"
19565 wsmap="managed" autogen="VBoxEvent" id="OnKeyboardLedsChanged"
19566 >
19567 <desc>
19568 Notification when the guest OS executes the KBD_CMD_SET_LEDS command
19569 to alter the state of the keyboard LEDs.
19570 </desc>
19571 <attribute name="numLock" type="boolean" readonly="yes">
19572 <desc>
19573 NumLock status.
19574 </desc>
19575 </attribute>
19576 <attribute name="capsLock" type="boolean" readonly="yes">
19577 <desc>
19578 CapsLock status.
19579 </desc>
19580 </attribute>
19581 <attribute name="scrollLock" type="boolean" readonly="yes">
19582 <desc>
19583 ScrollLock status.
19584 </desc>
19585 </attribute>
19586 </interface>
19587
19588 <interface
19589 name="IStateChangedEvent" extends="IEvent"
19590 uuid="4376693C-CF37-453B-9289-3B0F521CAF27"
19591 wsmap="managed" autogen="VBoxEvent" id="OnStateChanged"
19592 >
19593 <desc>
19594 Notification when the execution state of the machine has changed.
19595 The new state is given.
19596 </desc>
19597 <attribute name="state" type="MachineState" readonly="yes">
19598 <desc>
19599 New machine state.
19600 </desc>
19601 </attribute>
19602 </interface>
19603
19604 <interface
19605 name="IAdditionsStateChangedEvent" extends="IEvent"
19606 uuid="D70F7915-DA7C-44C8-A7AC-9F173490446A"
19607 wsmap="managed" autogen="VBoxEvent" id="OnAdditionsStateChanged"
19608 >
19609 <desc>
19610 Notification when a Guest Additions property changes.
19611 Interested callees should query IGuest attributes to
19612 find out what has changed.
19613 </desc>
19614 </interface>
19615
19616 <interface
19617 name="INetworkAdapterChangedEvent" extends="IEvent"
19618 uuid="08889892-1EC6-4883-801D-77F56CFD0103"
19619 wsmap="managed" autogen="VBoxEvent" id="OnNetworkAdapterChanged"
19620 >
19621 <desc>
19622 Notification when a property of one of the
19623 virtual <link to="IMachine::getNetworkAdapter">network adapters</link>
19624 changes. Interested callees should use INetworkAdapter methods and
19625 attributes to find out what has changed.
19626 </desc>
19627 <attribute name="networkAdapter" type="INetworkAdapter" readonly="yes">
19628 <desc>
19629 Network adapter that is subject to change.
19630 </desc>
19631 </attribute>
19632 </interface>
19633
19634 <interface
19635 name="ISerialPortChangedEvent" extends="IEvent"
19636 uuid="3BA329DC-659C-488B-835C-4ECA7AE71C6C"
19637 wsmap="managed" autogen="VBoxEvent" id="OnSerialPortChanged"
19638 >
19639 <desc>
19640 Notification when a property of one of the
19641 virtual <link to="IMachine::getSerialPort">serial ports</link> changes.
19642 Interested callees should use ISerialPort methods and attributes
19643 to find out what has changed.
19644 </desc>
19645 <attribute name="serialPort" type="ISerialPort" readonly="yes">
19646 <desc>
19647 Serial port that is subject to change.
19648 </desc>
19649 </attribute>
19650 </interface>
19651
19652 <interface
19653 name="IParallelPortChangedEvent" extends="IEvent"
19654 uuid="813C99FC-9849-4F47-813E-24A75DC85615"
19655 wsmap="managed" autogen="VBoxEvent" id="OnParallelPortChanged"
19656 >
19657 <desc>
19658 Notification when a property of one of the
19659 virtual <link to="IMachine::getParallelPort">parallel ports</link>
19660 changes. Interested callees should use ISerialPort methods and
19661 attributes to find out what has changed.
19662 </desc>
19663 <attribute name="parallelPort" type="IParallelPort" readonly="yes">
19664 <desc>
19665 Parallel port that is subject to change.
19666 </desc>
19667 </attribute>
19668 </interface>
19669
19670 <interface
19671 name="IStorageControllerChangedEvent" extends="IEvent"
19672 uuid="715212BF-DA59-426E-8230-3831FAA52C56"
19673 wsmap="managed" autogen="VBoxEvent" id="OnStorageControllerChanged"
19674 >
19675 <desc>
19676 Notification when a
19677 <link to="IMachine::mediumAttachments">medium attachment</link>
19678 changes.
19679 </desc>
19680 </interface>
19681
19682 <interface
19683 name="IMediumChangedEvent" extends="IEvent"
19684 uuid="0FE2DA40-5637-472A-9736-72019EABD7DE"
19685 wsmap="managed" autogen="VBoxEvent" id="OnMediumChanged"
19686 >
19687 <desc>
19688 Notification when a
19689 <link to="IMachine::mediumAttachments">medium attachment</link>
19690 changes.
19691 </desc>
19692 <attribute name="mediumAttachment" type="IMediumAttachment" readonly="yes">
19693 <desc>
19694 Medium attachment that is subject to change.
19695 </desc>
19696 </attribute>
19697 </interface>
19698
19699 <interface
19700 name="IClipboardModeChangedEvent" extends="IEvent"
19701 uuid="cac21692-7997-4595-a731-3a509db604e5"
19702 wsmap="managed" autogen="VBoxEvent" id="OnClipboardModeChanged"
19703 >
19704 <desc>
19705 Notification when the shared clipboard mode changes.
19706 </desc>
19707 <attribute name="clipboardMode" type="ClipboardMode" readonly="yes">
19708 <desc>
19709 The new clipboard mode.
19710 </desc>
19711 </attribute>
19712 </interface>
19713
19714 <interface
19715 name="IDragAndDropModeChangedEvent" extends="IEvent"
19716 uuid="e90b8850-ac8e-4dff-8059-4100ae2c3c3d"
19717 wsmap="managed" autogen="VBoxEvent" id="OnDragAndDropModeChanged"
19718 >
19719 <desc>
19720 Notification when the drag'n'drop mode changes.
19721 </desc>
19722 <attribute name="dragAndDropMode" type="DragAndDropMode" readonly="yes">
19723 <desc>
19724 The new drag'n'drop mode.
19725 </desc>
19726 </attribute>
19727 </interface>
19728
19729 <interface
19730 name="ICPUChangedEvent" extends="IEvent"
19731 uuid="4da2dec7-71b2-4817-9a64-4ed12c17388e"
19732 wsmap="managed" autogen="VBoxEvent" id="OnCPUChanged"
19733 >
19734 <desc>
19735 Notification when a CPU changes.
19736 </desc>
19737 <attribute name="CPU" type="unsigned long" readonly="yes">
19738 <desc>
19739 The CPU which changed.
19740 </desc>
19741 </attribute>
19742 <attribute name="add" type="boolean" readonly="yes">
19743 <desc>
19744 Flag whether the CPU was added or removed.
19745 </desc>
19746 </attribute>
19747 </interface>
19748
19749 <interface
19750 name="ICPUExecutionCapChangedEvent" extends="IEvent"
19751 uuid="dfa7e4f5-b4a4-44ce-85a8-127ac5eb59dc"
19752 wsmap="managed" autogen="VBoxEvent" id="OnCPUExecutionCapChanged"
19753 >
19754 <desc>
19755 Notification when the CPU execution cap changes.
19756 </desc>
19757 <attribute name="executionCap" type="unsigned long" readonly="yes">
19758 <desc>
19759 The new CPU execution cap value. (1-100)
19760 </desc>
19761 </attribute>
19762 </interface>
19763
19764 <interface
19765 name="IGuestKeyboardEvent" extends="IEvent"
19766 uuid="88394258-7006-40d4-b339-472ee3801844"
19767 wsmap="managed" autogen="VBoxEvent" id="OnGuestKeyboard"
19768 >
19769 <desc>
19770 Notification when guest keyboard event happens.
19771 </desc>
19772 <attribute name="scancodes" type="long" safearray="yes" readonly="yes">
19773 <desc>
19774 Array of scancodes.
19775 </desc>
19776 </attribute>
19777 </interface>
19778
19779 <interface
19780 name="IGuestMouseEvent" extends="IReusableEvent"
19781 uuid="1f85d35c-c524-40ff-8e98-307000df0992"
19782 wsmap="managed" autogen="VBoxEvent" id="OnGuestMouse"
19783 >
19784 <desc>
19785 Notification when guest mouse event happens.
19786 </desc>
19787
19788 <attribute name="absolute" type="boolean" readonly="yes">
19789 <desc>
19790 If this event is relative or absolute.
19791 </desc>
19792 </attribute>
19793
19794 <attribute name="x" type="long" readonly="yes">
19795 <desc>
19796 New X position, or X delta.
19797 </desc>
19798 </attribute>
19799
19800 <attribute name="y" type="long" readonly="yes">
19801 <desc>
19802 New Y position, or Y delta.
19803 </desc>
19804 </attribute>
19805
19806 <attribute name="z" type="long" readonly="yes">
19807 <desc>
19808 Z delta.
19809 </desc>
19810 </attribute>
19811
19812 <attribute name="w" type="long" readonly="yes">
19813 <desc>
19814 W delta.
19815 </desc>
19816 </attribute>
19817
19818 <attribute name="buttons" type="long" readonly="yes">
19819 <desc>
19820 Button state bitmask.
19821 </desc>
19822 </attribute>
19823
19824 </interface>
19825
19826
19827 <interface
19828 name="IVRDEServerChangedEvent" extends="IEvent"
19829 uuid="a06fd66a-3188-4c8c-8756-1395e8cb691c"
19830 wsmap="managed" autogen="VBoxEvent" id="OnVRDEServerChanged"
19831 >
19832 <desc>
19833 Notification when a property of the
19834 <link to="IMachine::VRDEServer">VRDE server</link> changes.
19835 Interested callees should use IVRDEServer methods and attributes to
19836 find out what has changed.
19837 </desc>
19838 </interface>
19839
19840 <interface
19841 name="IVRDEServerInfoChangedEvent" extends="IEvent"
19842 uuid="dd6a1080-e1b7-4339-a549-f0878115596e"
19843 wsmap="managed" autogen="VBoxEvent" id="OnVRDEServerInfoChanged"
19844 >
19845 <desc>
19846 Notification when the status of the VRDE server changes. Interested callees
19847 should use <link to="IConsole::VRDEServerInfo">IVRDEServerInfo</link>
19848 attributes to find out what is the current status.
19849 </desc>
19850 </interface>
19851
19852 <interface
19853 name="IUSBControllerChangedEvent" extends="IEvent"
19854 uuid="93BADC0C-61D9-4940-A084-E6BB29AF3D83"
19855 wsmap="managed" autogen="VBoxEvent" id="OnUSBControllerChanged"
19856 >
19857 <desc>
19858 Notification when a property of the virtual
19859 <link to="IMachine::USBController">USB controller</link> changes.
19860 Interested callees should use IUSBController methods and attributes to
19861 find out what has changed.
19862 </desc>
19863 </interface>
19864
19865 <interface
19866 name="IUSBDeviceStateChangedEvent" extends="IEvent"
19867 uuid="806da61b-6679-422a-b629-51b06b0c6d93"
19868 wsmap="managed" autogen="VBoxEvent" id="OnUSBDeviceStateChanged"
19869 >
19870 <desc>
19871 Notification when a USB device is attached to or detached from
19872 the virtual USB controller.
19873
19874 This notification is sent as a result of the indirect
19875 request to attach the device because it matches one of the
19876 machine USB filters, or as a result of the direct request
19877 issued by <link to="IConsole::attachUSBDevice"/> or
19878 <link to="IConsole::detachUSBDevice"/>.
19879
19880 This notification is sent in case of both a succeeded and a
19881 failed request completion. When the request succeeds, the
19882 @a error parameter is @c null, and the given device has been
19883 already added to (when @a attached is @c true) or removed from
19884 (when @a attached is @c false) the collection represented by
19885 <link to="IConsole::USBDevices"/>. On failure, the collection
19886 doesn't change and the @a error parameter represents the error
19887 message describing the failure.
19888 </desc>
19889 <attribute name="device" type="IUSBDevice" readonly="yes">
19890 <desc>
19891 Device that is subject to state change.
19892 </desc>
19893 </attribute>
19894 <attribute name="attached" type="boolean" readonly="yes">
19895 <desc>
19896 @c true if the device was attached and @c false otherwise.
19897 </desc>
19898 </attribute>
19899 <attribute name="error" type="IVirtualBoxErrorInfo" readonly="yes">
19900 <desc>
19901 @c null on success or an error message object on failure.
19902 </desc>
19903 </attribute>
19904 </interface>
19905
19906 <interface
19907 name="ISharedFolderChangedEvent" extends="IEvent"
19908 uuid="B66349B5-3534-4239-B2DE-8E1535D94C0B"
19909 wsmap="managed" autogen="VBoxEvent" id="OnSharedFolderChanged"
19910 >
19911 <desc>
19912 Notification when a shared folder is added or removed.
19913 The @a scope argument defines one of three scopes:
19914 <link to="IVirtualBox::sharedFolders">global shared folders</link>
19915 (<link to="Scope_Global">Global</link>),
19916 <link to="IMachine::sharedFolders">permanent shared folders</link> of
19917 the machine (<link to="Scope_Machine">Machine</link>) or <link
19918 to="IConsole::sharedFolders">transient shared folders</link> of the
19919 machine (<link to="Scope_Session">Session</link>). Interested callees
19920 should use query the corresponding collections to find out what has
19921 changed.
19922 </desc>
19923 <attribute name="scope" type="Scope" readonly="yes">
19924 <desc>
19925 Scope of the notification.
19926 </desc>
19927 </attribute>
19928 </interface>
19929
19930 <interface
19931 name="IRuntimeErrorEvent" extends="IEvent"
19932 uuid="883DD18B-0721-4CDE-867C-1A82ABAF914C"
19933 wsmap="managed" autogen="VBoxEvent" id="OnRuntimeError"
19934 >
19935 <desc>
19936 Notification when an error happens during the virtual
19937 machine execution.
19938
19939 There are three kinds of runtime errors:
19940 <ul>
19941 <li><i>fatal</i></li>
19942 <li><i>non-fatal with retry</i></li>
19943 <li><i>non-fatal warnings</i></li>
19944 </ul>
19945
19946 <b>Fatal</b> errors are indicated by the @a fatal parameter set
19947 to @c true. In case of fatal errors, the virtual machine
19948 execution is always paused before calling this notification, and
19949 the notification handler is supposed either to immediately save
19950 the virtual machine state using <link to="IConsole::saveState"/>
19951 or power it off using <link to="IConsole::powerDown"/>.
19952 Resuming the execution can lead to unpredictable results.
19953
19954 <b>Non-fatal</b> errors and warnings are indicated by the
19955 @a fatal parameter set to @c false. If the virtual machine
19956 is in the Paused state by the time the error notification is
19957 received, it means that the user can <i>try to resume</i> the machine
19958 execution after attempting to solve the problem that caused the
19959 error. In this case, the notification handler is supposed
19960 to show an appropriate message to the user (depending on the
19961 value of the @a id parameter) that offers several actions such
19962 as <i>Retry</i>, <i>Save</i> or <i>Power Off</i>. If the user
19963 wants to retry, the notification handler should continue
19964 the machine execution using the <link to="IConsole::resume"/>
19965 call. If the machine execution is not Paused during this
19966 notification, then it means this notification is a <i>warning</i>
19967 (for example, about a fatal condition that can happen very soon);
19968 no immediate action is required from the user, the machine
19969 continues its normal execution.
19970
19971 Note that in either case the notification handler
19972 <b>must not</b> perform any action directly on a thread
19973 where this notification is called. Everything it is allowed to
19974 do is to post a message to another thread that will then talk
19975 to the user and take the corresponding action.
19976
19977 Currently, the following error identifiers are known:
19978 <ul>
19979 <li><tt>"HostMemoryLow"</tt></li>
19980 <li><tt>"HostAudioNotResponding"</tt></li>
19981 <li><tt>"VDIStorageFull"</tt></li>
19982 <li><tt>"3DSupportIncompatibleAdditions"</tt></li>
19983 </ul>
19984 </desc>
19985 <attribute name="fatal" type="boolean" readonly="yes">
19986 <desc>
19987 Whether the error is fatal or not.
19988 </desc>
19989 </attribute>
19990 <attribute name="id" type="wstring" readonly="yes">
19991 <desc>
19992 Error identifier.
19993 </desc>
19994 </attribute>
19995 <attribute name="message" type="wstring" readonly="yes">
19996 <desc>
19997 Optional error message.
19998 </desc>
19999 </attribute>
20000 </interface>
20001
20002
20003 <interface
20004 name="IEventSourceChangedEvent" extends="IEvent"
20005 uuid="e7932cb8-f6d4-4ab6-9cbf-558eb8959a6a"
20006 waitable="yes"
20007 wsmap="managed" autogen="VBoxEvent" id="OnEventSourceChanged"
20008 >
20009 <desc>
20010 Notification when an event source state changes (listener added or removed).
20011 </desc>
20012
20013 <attribute name="listener" type="IEventListener" readonly="yes">
20014 <desc>
20015 Event listener which has changed.
20016 </desc>
20017 </attribute>
20018
20019 <attribute name="add" type="boolean" readonly="yes">
20020 <desc>
20021 Flag whether listener was added or removed.
20022 </desc>
20023 </attribute>
20024 </interface>
20025
20026 <interface
20027 name="IExtraDataChangedEvent" extends="IEvent"
20028 uuid="024F00CE-6E0B-492A-A8D0-968472A94DC7"
20029 wsmap="managed" autogen="VBoxEvent" id="OnExtraDataChanged"
20030 >
20031 <desc>
20032 Notification when machine specific or global extra data
20033 has changed.
20034 </desc>
20035 <attribute name="machineId" type="uuid" mod="string" readonly="yes">
20036 <desc>
20037 ID of the machine this event relates to.
20038 Null for global extra data changes.
20039 </desc>
20040 </attribute>
20041 <attribute name="key" type="wstring" readonly="yes">
20042 <desc>
20043 Extra data key that has changed.
20044 </desc>
20045 </attribute>
20046 <attribute name="value" type="wstring" readonly="yes">
20047 <desc>
20048 Extra data value for the given key.
20049 </desc>
20050 </attribute>
20051 </interface>
20052
20053 <interface
20054 name="IVetoEvent" extends="IEvent"
20055 uuid="9a1a4130-69fe-472f-ac10-c6fa25d75007"
20056 wsmap="managed"
20057 >
20058 <desc>Base abstract interface for veto events.</desc>
20059
20060 <method name="addVeto">
20061 <desc>
20062 Adds a veto on this event.
20063 </desc>
20064 <param name="reason" type="wstring" dir="in">
20065 <desc>
20066 Reason for veto, could be null or empty string.
20067 </desc>
20068 </param>
20069 </method>
20070
20071 <method name="isVetoed">
20072 <desc>
20073 If this event was vetoed.
20074 </desc>
20075 <param name="result" type="boolean" dir="return">
20076 <desc>
20077 Reason for veto.
20078 </desc>
20079 </param>
20080 </method>
20081
20082 <method name="getVetos">
20083 <desc>
20084 Current veto reason list, if size is 0 - no veto.
20085 </desc>
20086 <param name="result" type="wstring" dir="return" safearray="yes">
20087 <desc>
20088 Array of reasons for veto provided by different event handlers.
20089 </desc>
20090 </param>
20091 </method>
20092
20093 </interface>
20094
20095 <interface
20096 name="IExtraDataCanChangeEvent" extends="IVetoEvent"
20097 uuid="245d88bd-800a-40f8-87a6-170d02249a55"
20098 wsmap="managed" autogen="VBoxEvent" id="OnExtraDataCanChange"
20099 waitable="true"
20100 >
20101 <desc>
20102 Notification when someone tries to change extra data for
20103 either the given machine or (if @c null) global extra data.
20104 This gives the chance to veto against changes.
20105 </desc>
20106 <attribute name="machineId" type="uuid" mod="string" readonly="yes">
20107 <desc>
20108 ID of the machine this event relates to.
20109 Null for global extra data changes.
20110 </desc>
20111 </attribute>
20112 <attribute name="key" type="wstring" readonly="yes">
20113 <desc>
20114 Extra data key that has changed.
20115 </desc>
20116 </attribute>
20117 <attribute name="value" type="wstring" readonly="yes">
20118 <desc>
20119 Extra data value for the given key.
20120 </desc>
20121 </attribute>
20122 </interface>
20123
20124 <interface
20125 name="ICanShowWindowEvent" extends="IVetoEvent"
20126 uuid="adf292b0-92c9-4a77-9d35-e058b39fe0b9"
20127 wsmap="managed" autogen="VBoxEvent" id="OnCanShowWindow"
20128 waitable="true"
20129 >
20130 <desc>
20131 Notification when a call to
20132 <link to="IMachine::canShowConsoleWindow"/> is made by a
20133 front-end to check if a subsequent call to
20134 <link to="IMachine::showConsoleWindow"/> can succeed.
20135
20136 The callee should give an answer appropriate to the current
20137 machine state using event veto. This answer must
20138 remain valid at least until the next
20139 <link to="IConsole::state">machine state</link> change.
20140 </desc>
20141 </interface>
20142
20143 <interface
20144 name="IShowWindowEvent" extends="IEvent"
20145 uuid="B0A0904D-2F05-4D28-855F-488F96BAD2B2"
20146 wsmap="managed" autogen="VBoxEvent" id="OnShowWindow"
20147 waitable="true"
20148 >
20149 <desc>
20150 Notification when a call to
20151 <link to="IMachine::showConsoleWindow"/>
20152 requests the console window to be activated and brought to
20153 foreground on the desktop of the host PC.
20154
20155 This notification should cause the VM console process to
20156 perform the requested action as described above. If it is
20157 impossible to do it at a time of this notification, this
20158 method should return a failure.
20159
20160 Note that many modern window managers on many platforms
20161 implement some sort of focus stealing prevention logic, so
20162 that it may be impossible to activate a window without the
20163 help of the currently active application (which is supposedly
20164 an initiator of this notification). In this case, this method
20165 must return a non-zero identifier that represents the
20166 top-level window of the VM console process. The caller, if it
20167 represents a currently active process, is responsible to use
20168 this identifier (in a platform-dependent manner) to perform
20169 actual window activation.
20170
20171 This method must set @a winId to zero if it has performed all
20172 actions necessary to complete the request and the console
20173 window is now active and in foreground, to indicate that no
20174 further action is required on the caller's side.
20175 </desc>
20176 <attribute name="winId" type="long long">
20177 <desc>
20178 Platform-dependent identifier of the top-level VM console
20179 window, or zero if this method has performed all actions
20180 necessary to implement the <i>show window</i> semantics for
20181 the given platform and/or this VirtualBox front-end.
20182 </desc>
20183 </attribute>
20184 </interface>
20185
20186 <interface
20187 name="INATRedirectEvent" extends="IMachineEvent"
20188 uuid="24eef068-c380-4510-bc7c-19314a7352f1"
20189 wsmap="managed" autogen="VBoxEvent" id="OnNATRedirect"
20190 >
20191 <desc>
20192 Notification when NAT redirect rule added or removed.
20193 </desc>
20194 <attribute name="slot" type="unsigned long" readonly="yes">
20195 <desc>
20196 Adapter which NAT attached to.
20197 </desc>
20198 </attribute>
20199 <attribute name="remove" type="boolean" readonly="yes">
20200 <desc>
20201 Whether rule remove or add.
20202 </desc>
20203 </attribute>
20204 <attribute name="name" type="wstring" readonly="yes">
20205 <desc>
20206 Name of the rule.
20207 </desc>
20208 </attribute>
20209 <attribute name="proto" type="NATProtocol" readonly="yes">
20210 <desc>
20211 Protocol (TCP or UDP) of the redirect rule.
20212 </desc>
20213 </attribute>
20214 <attribute name="hostIP" type="wstring" readonly="yes">
20215 <desc>
20216 Host ip address to bind socket on.
20217 </desc>
20218 </attribute>
20219 <attribute name="hostPort" type="long" readonly="yes">
20220 <desc>
20221 Host port to bind socket on.
20222 </desc>
20223 </attribute>
20224 <attribute name="guestIP" type="wstring" readonly="yes">
20225 <desc>
20226 Guest ip address to redirect to.
20227 </desc>
20228 </attribute>
20229 <attribute name="guestPort" type="long" readonly="yes">
20230 <desc>
20231 Guest port to redirect to.
20232 </desc>
20233 </attribute>
20234 </interface>
20235
20236 <interface
20237 name="IHostPCIDevicePlugEvent" extends="IMachineEvent"
20238 waitable="yes"
20239 uuid="a0bad6df-d612-47d3-89d4-db3992533948"
20240 wsmap="managed" autogen="VBoxEvent" id="OnHostPCIDevicePlug"
20241 >
20242 <desc>
20243 Notification when host PCI device is plugged/unplugged. Plugging
20244 usually takes place on VM startup, unplug - when
20245 <link to="IMachine::detachHostPCIDevice"/> is called.
20246
20247 <see><link to="IMachine::detachHostPCIDevice"/></see>
20248
20249 </desc>
20250
20251 <attribute name="plugged" type="boolean" readonly="yes">
20252 <desc>
20253 If device successfully plugged or unplugged.
20254 </desc>
20255 </attribute>
20256
20257 <attribute name="success" type="boolean" readonly="yes">
20258 <desc>
20259 If operation was successful, if false - 'message' attribute
20260 may be of interest.
20261 </desc>
20262 </attribute>
20263
20264 <attribute name="attachment" type="IPCIDeviceAttachment" readonly="yes">
20265 <desc>
20266 Attachment info for this device.
20267 </desc>
20268 </attribute>
20269
20270 <attribute name="message" type="wstring" readonly="yes">
20271 <desc>
20272 Optional error message.
20273 </desc>
20274 </attribute>
20275
20276 </interface>
20277
20278 <interface
20279 name="IVBoxSVCAvailabilityChangedEvent" extends="IEvent"
20280 uuid="97c78fcd-d4fc-485f-8613-5af88bfcfcdc"
20281 wsmap="managed" autogen="VBoxEvent" id="OnVBoxSVCAvailabilityChanged"
20282 >
20283 <desc>
20284 Notification when VBoxSVC becomes unavailable (due to a crash or similar
20285 unexpected circumstances) or available again.
20286 </desc>
20287
20288 <attribute name="available" type="boolean" readonly="yes">
20289 <desc>
20290 Whether VBoxSVC is available now.
20291 </desc>
20292 </attribute>
20293 </interface>
20294
20295 <interface
20296 name="IBandwidthGroupChangedEvent" extends="IEvent"
20297 uuid="334df94a-7556-4cbc-8c04-043096b02d82"
20298 wsmap="managed" autogen="VBoxEvent" id="OnBandwidthGroupChanged"
20299 >
20300 <desc>
20301 Notification when one of the bandwidth groups changed
20302 </desc>
20303 <attribute name="bandwidthGroup" type="IBandwidthGroup" readonly="yes">
20304 <desc>
20305 The changed bandwidth group.
20306 </desc>
20307 </attribute>
20308 </interface>
20309
20310 <enum
20311 name="GuestMonitorChangedEventType"
20312 uuid="ef172985-7e36-4297-95be-e46396968d66"
20313 >
20314
20315 <desc>
20316 How the guest monitor has been changed.
20317 </desc>
20318
20319 <const name="Enabled" value="0">
20320 <desc>
20321 The guest monitor has been enabled by the guest.
20322 </desc>
20323 </const>
20324
20325 <const name="Disabled" value="1">
20326 <desc>
20327 The guest monitor has been disabled by the guest.
20328 </desc>
20329 </const>
20330
20331 <const name="NewOrigin" value="2">
20332 <desc>
20333 The guest monitor origin has changed in the guest.
20334 </desc>
20335 </const>
20336 </enum>
20337
20338 <interface
20339 name="IGuestMonitorChangedEvent" extends="IEvent"
20340 uuid="0f7b8a22-c71f-4a36-8e5f-a77d01d76090"
20341 wsmap="managed" autogen="VBoxEvent" id="OnGuestMonitorChanged"
20342 >
20343 <desc>
20344 Notification when the guest enables one of its monitors.
20345 </desc>
20346
20347 <attribute name="changeType" type="GuestMonitorChangedEventType" readonly="yes">
20348 <desc>
20349 What was changed for this guest monitor.
20350 </desc>
20351 </attribute>
20352
20353 <attribute name="screenId" type="unsigned long" readonly="yes">
20354 <desc>
20355 The monitor which was changed.
20356 </desc>
20357 </attribute>
20358
20359 <attribute name="originX" type="unsigned long" readonly="yes">
20360 <desc>
20361 Physical X origin relative to the primary screen.
20362 Valid for Enabled and NewOrigin.
20363 </desc>
20364 </attribute>
20365
20366 <attribute name="originY" type="unsigned long" readonly="yes">
20367 <desc>
20368 Physical Y origin relative to the primary screen.
20369 Valid for Enabled and NewOrigin.
20370 </desc>
20371 </attribute>
20372
20373 <attribute name="width" type="unsigned long" readonly="yes">
20374 <desc>
20375 Width of the screen.
20376 Valid for Enabled.
20377 </desc>
20378 </attribute>
20379
20380 <attribute name="height" type="unsigned long" readonly="yes">
20381 <desc>
20382 Height of the screen.
20383 Valid for Enabled.
20384 </desc>
20385 </attribute>
20386
20387 </interface>
20388
20389 <interface
20390 name="IStorageDeviceChangedEvent" extends="IEvent"
20391 uuid="8a5c2dce-e341-49d4-afce-c95979f7d70c"
20392 wsmap="managed" autogen="VBoxEvent" id="OnStorageDeviceChanged"
20393 >
20394 <desc>
20395 Notification when a
20396 <link to="IMachine::mediumAttachments">storage device</link>
20397 is attached or removed.
20398 </desc>
20399 <attribute name="storageDevice" type="IMediumAttachment" readonly="yes">
20400 <desc>
20401 Storage device that is subject to change.
20402 </desc>
20403 </attribute>
20404 <attribute name="removed" type="boolean" readonly="yes">
20405 <desc>
20406 Flag whether the device was removed or added to the VM.
20407 </desc>
20408 </attribute>
20409 </interface>
20410
20411 <module name="VBoxSVC" context="LocalServer">
20412 <class name="VirtualBox" uuid="B1A7A4F2-47B9-4A1E-82B2-07CCD5323C3F"
20413 namespace="virtualbox.org">
20414 <interface name="IVirtualBox" default="yes"/>
20415 </class>
20416 </module>
20417
20418 <module name="VBoxC" context="InprocServer" threadingModel="Free">
20419 <class name="VirtualBoxClient" uuid="dd3fc71d-26c0-4fe1-bf6f-67f633265bba"
20420 namespace="virtualbox.org">
20421 <interface name="IVirtualBoxClient" default="yes"/>
20422 </class>
20423
20424 <class name="Session" uuid="3C02F46D-C9D2-4F11-A384-53F0CF917214"
20425 namespace="virtualbox.org">
20426 <interface name="ISession" default="yes"/>
20427 </class>
20428 </module>
20429
20430</library>
20431
20432</idl>
20433
20434<!-- vim: set shiftwidth=2 tabstop=2 expandtab: -->
Note: See TracBrowser for help on using the repository browser.

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