VirtualBox

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

Last change on this file since 43342 was 43162, checked in by vboxsync, 12 years ago

Main/Guest Control 2.0: Cleanup, separated guest error handling.

  • Property svn:eol-style set to native
File size: 723.7 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="3b2f08eb-b810-4715-bee0-bb06b9880ad2"
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="createFlags" type="wstring" dir="in">
1667 <desc>Machine creation flags, see <link to="#createMachine" /> (optional).</desc>
1668 </param>
1669 <param name="baseFolder" type="wstring" dir="in">
1670 <desc>Base machine folder (optional).</desc>
1671 </param>
1672 <param name="file" type="wstring" dir="return">
1673 <desc>Fully qualified path where the machine would be created.</desc>
1674 </param>
1675 </method>
1676
1677 <method name="createMachine">
1678 <desc>
1679 Creates a new virtual machine by creating a machine settings file at
1680 the given location.
1681
1682 VirtualBox machine settings files use a custom XML dialect. Starting
1683 with VirtualBox 4.0, a ".vbox" extension is recommended, but not enforced,
1684 and machine files can be created at arbitrary locations.
1685
1686 However, it is recommended that machines are created in the default
1687 machine folder (e.g. "/home/user/VirtualBox VMs/name/name.vbox"; see
1688 <link to="ISystemProperties::defaultMachineFolder" />). If you specify
1689 @c null or empty string (which is recommended) for the @a settingsFile
1690 argument, <link to="#composeMachineFilename" /> is called automatically
1691 to have such a recommended name composed based on the machine name
1692 given in the @a name argument and the primary group.
1693
1694 If the resulting settings file already exists, this method will fail,
1695 unless the forceOverwrite flag is set.
1696
1697 The new machine is created unregistered, with the initial configuration
1698 set according to the specified guest OS type. A typical sequence of
1699 actions to create a new virtual machine is as follows:
1700
1701 <ol>
1702 <li>
1703 Call this method to have a new machine created. The returned machine
1704 object will be "mutable" allowing to change any machine property.
1705 </li>
1706
1707 <li>
1708 Configure the machine using the appropriate attributes and methods.
1709 </li>
1710
1711 <li>
1712 Call <link to="IMachine::saveSettings" /> to write the settings
1713 to the machine's XML settings file. The configuration of the newly
1714 created machine will not be saved to disk until this method is
1715 called.
1716 </li>
1717
1718 <li>
1719 Call <link to="#registerMachine" /> to add the machine to the list
1720 of machines known to VirtualBox.
1721 </li>
1722 </ol>
1723
1724 The specified guest OS type identifier must match an ID of one of known
1725 guest OS types listed in the <link to="IVirtualBox::guestOSTypes"/>
1726 array.
1727
1728 <note>
1729 There is no way to change the name of the settings file or
1730 subfolder of the created machine directly.
1731 </note>
1732
1733 <result name="VBOX_E_OBJECT_NOT_FOUND">
1734 @a osTypeId is invalid.
1735 </result>
1736 <result name="VBOX_E_FILE_ERROR">
1737 Resulting settings file name is invalid or the settings file already
1738 exists or could not be created due to an I/O error.
1739 </result>
1740 <result name="E_INVALIDARG">
1741 @a name is empty or @c null.
1742 </result>
1743 </desc>
1744
1745 <param name="settingsFile" type="wstring" dir="in">
1746 <desc>Fully qualified path where the settings file should be created,
1747 empty string or @c null for a default folder and file based on the
1748 @a name argument and the primary group.
1749 (see <link to="#composeMachineFilename" />).</desc>
1750 </param>
1751 <param name="name" type="wstring" dir="in">
1752 <desc>Machine name.</desc>
1753 </param>
1754 <param name="groups" type="wstring" safearray="yes" dir="in">
1755 <desc>Array of group names. @c null or an empty array have the same
1756 meaning as an array with just the empty string or <tt>"/"</tt>, i.e.
1757 create a machine without group association.</desc>
1758 </param>
1759 <param name="osTypeId" type="wstring" dir="in">
1760 <desc>Guest OS Type ID.</desc>
1761 </param>
1762 <param name="flags" type="wstring" dir="in">
1763 <desc>
1764 Additional property parameters, passed as a comma-separated list of
1765 "name=value" type entries. The following ones are recognized:
1766 <tt>forceOverwrite=1</tt> to overwrite an existing machine settings
1767 file, <tt>UUID=&lt;uuid&gt;</tt> to specify a machine UUID and
1768 <tt>directoryIncludesUUID=1</tt> to switch to a special VM directory
1769 naming scheme which should not be used unless necessary.
1770 </desc>
1771 </param>
1772 <param name="machine" type="IMachine" dir="return">
1773 <desc>Created machine object.</desc>
1774 </param>
1775 </method>
1776
1777 <method name="openMachine">
1778 <desc>
1779 Opens a virtual machine from the existing settings file.
1780 The opened machine remains unregistered until you call
1781 <link to="#registerMachine"/>.
1782
1783 The specified settings file name must be fully qualified.
1784 The file must exist and be a valid machine XML settings file
1785 whose contents will be used to construct the machine object.
1786
1787 <result name="VBOX_E_FILE_ERROR">
1788 Settings file name invalid, not found or sharing violation.
1789 </result>
1790 </desc>
1791 <param name="settingsFile" type="wstring" dir="in">
1792 <desc>
1793 Name of the machine settings file.
1794 </desc>
1795 </param>
1796 <param name="machine" type="IMachine" dir="return">
1797 <desc>Opened machine object.</desc>
1798 </param>
1799 <note>
1800 <link to="IMachine::settingsModified"/> will return
1801 @c false for the created machine, until any of machine settings
1802 are changed.
1803 </note>
1804 </method>
1805
1806 <method name="registerMachine">
1807 <desc>
1808
1809 Registers the machine previously created using
1810 <link to="#createMachine"/> or opened using
1811 <link to="#openMachine"/> within this VirtualBox installation. After
1812 successful method invocation, the
1813 <link to="IMachineRegisteredEvent"/> event is fired.
1814
1815 <note>
1816 This method implicitly calls <link to="IMachine::saveSettings"/>
1817 to save all current machine settings before registering it.
1818 </note>
1819
1820 <result name="VBOX_E_OBJECT_NOT_FOUND">
1821 No matching virtual machine found.
1822 </result>
1823 <result name="VBOX_E_INVALID_OBJECT_STATE">
1824 Virtual machine was not created within this VirtualBox instance.
1825 </result>
1826
1827 </desc>
1828 <param name="machine" type="IMachine" dir="in"/>
1829 </method>
1830
1831 <method name="findMachine">
1832 <desc>
1833 Attempts to find a virtual machine given its name or UUID.
1834
1835 <note>Inaccessible machines cannot be found by name, only by UUID, because their name
1836 cannot safely be determined.</note>
1837
1838 <result name="VBOX_E_OBJECT_NOT_FOUND">
1839 Could not find registered machine matching @a nameOrId.
1840 </result>
1841
1842 </desc>
1843 <param name="nameOrId" type="wstring" dir="in">
1844 <desc>What to search for. This can either be the UUID or the name of a virtual machine.</desc>
1845 </param>
1846 <param name="machine" type="IMachine" dir="return">
1847 <desc>Machine object, if found.</desc>
1848 </param>
1849 </method>
1850
1851 <method name="getMachinesByGroups">
1852 <desc>
1853 Gets all machine references which are in one of the specified groups.
1854 </desc>
1855 <param name="groups" type="wstring" dir="in" safearray="yes">
1856 <desc>What groups to match. The usual group list rules apply, i.e.
1857 passing an empty list will match VMs in the toplevel group, likewise
1858 the empty string.</desc>
1859 </param>
1860 <param name="machines" type="IMachine" dir="return" safearray="yes">
1861 <desc>All machines which matched.</desc>
1862 </param>
1863 </method>
1864
1865 <method name="getMachineStates">
1866 <desc>
1867 Gets the state of several machines in a single operation.
1868 </desc>
1869 <param name="machines" type="IMachine" dir="in" safearray="yes">
1870 <desc>Array with the machine references.</desc>
1871 </param>
1872 <param name="states" type="MachineState" dir="return" safearray="yes">
1873 <desc>Machine states, corresponding to the machines.</desc>
1874 </param>
1875 </method>
1876
1877 <method name="createAppliance">
1878 <desc>
1879 Creates a new appliance object, which represents an appliance in the Open Virtual Machine
1880 Format (OVF). This can then be used to import an OVF appliance into VirtualBox or to export
1881 machines as an OVF appliance; see the documentation for <link to="IAppliance" /> for details.
1882 </desc>
1883 <param name="appliance" type="IAppliance" dir="return">
1884 <desc>New appliance.</desc>
1885 </param>
1886 </method>
1887
1888 <method name="createHardDisk">
1889 <desc>
1890 Creates a new base medium object that will use the given storage
1891 format and location for medium data.
1892
1893 The actual storage unit is not created by this method. In order to
1894 do it, and before you are able to attach the created medium to
1895 virtual machines, you must call one of the following methods to
1896 allocate a format-specific storage unit at the specified location:
1897 <ul>
1898 <li><link to="IMedium::createBaseStorage"/></li>
1899 <li><link to="IMedium::createDiffStorage"/></li>
1900 </ul>
1901
1902 Some medium attributes, such as <link to="IMedium::id"/>, may
1903 remain uninitialized until the medium storage unit is successfully
1904 created by one of the above methods.
1905
1906 After the storage unit is successfully created, it will be
1907 accessible through the <link to="#openMedium"/> method and can
1908 be found in the <link to="#hardDisks"/> array.
1909
1910 The list of all storage formats supported by this VirtualBox
1911 installation can be obtained using
1912 <link to="ISystemProperties::mediumFormats"/>. If the @a format
1913 attribute is empty or @c null then the default storage format
1914 specified by <link to="ISystemProperties::defaultHardDiskFormat"/> will
1915 be used for creating a storage unit of the medium.
1916
1917 Note that the format of the location string is storage format specific.
1918 See <link to="IMedium::location"/> and IMedium for more details.
1919
1920 <result name="VBOX_E_OBJECT_NOT_FOUND">
1921 @a format identifier is invalid. See
1922 <link to="ISystemProperties::mediumFormats"/>.
1923 </result>
1924 <result name="VBOX_E_FILE_ERROR">
1925 @a location is a not valid file name (for file-based formats only).
1926 </result>
1927 </desc>
1928 <param name="format" type="wstring" dir="in">
1929 <desc>
1930 Identifier of the storage format to use for the new medium.
1931 </desc>
1932 </param>
1933 <param name="location" type="wstring" dir="in">
1934 <desc>
1935 Location of the storage unit for the new medium.
1936 </desc>
1937 </param>
1938 <param name="medium" type="IMedium" dir="return">
1939 <desc>Created medium object.</desc>
1940 </param>
1941 </method>
1942
1943 <method name="openMedium">
1944 <desc>
1945 Finds existing media or opens a medium from an existing storage location.
1946
1947 Once a medium has been opened, it can be passed to other VirtualBox
1948 methods, in particular to <link to="IMachine::attachDevice" />.
1949
1950 Depending on the given device type, the file at the storage location
1951 must be in one of the media formats understood by VirtualBox:
1952
1953 <ul>
1954 <li>With a "HardDisk" device type, the file must be a hard disk image
1955 in one of the formats supported by VirtualBox (see
1956 <link to="ISystemProperties::mediumFormats" />).
1957 After this method succeeds, if the medium is a base medium, it
1958 will be added to the <link to="#hardDisks"/> array attribute. </li>
1959 <li>With a "DVD" device type, the file must be an ISO 9960 CD/DVD image.
1960 After this method succeeds, the medium will be added to the
1961 <link to="#DVDImages"/> array attribute.</li>
1962 <li>With a "Floppy" device type, the file must be an RAW floppy image.
1963 After this method succeeds, the medium will be added to the
1964 <link to="#floppyImages"/> array attribute.</li>
1965 </ul>
1966
1967 After having been opened, the medium can be re-found by this method
1968 and can be attached to virtual machines. See <link to="IMedium" /> for
1969 more details.
1970
1971 The UUID of the newly opened medium will either be retrieved from the
1972 storage location, if the format supports it (e.g. for hard disk images),
1973 or a new UUID will be randomly generated (e.g. for ISO and RAW files).
1974 If for some reason you need to change the medium's UUID, use
1975 <link to="IMedium::setIds" />.
1976
1977 If a differencing hard disk medium is to be opened by this method, the
1978 operation will succeed only if its parent medium and all ancestors,
1979 if any, are already known to this VirtualBox installation (for example,
1980 were opened by this method before).
1981
1982 This method attempts to guess the storage format of the specified medium
1983 by reading medium data at the specified location.
1984
1985 If @a accessMode is ReadWrite (which it should be for hard disks and floppies),
1986 the image is opened for read/write access and must have according permissions,
1987 as VirtualBox may actually write status information into the disk's metadata
1988 sections.
1989
1990 Note that write access is required for all typical hard disk usage in VirtualBox,
1991 since VirtualBox may need to write metadata such as a UUID into the image.
1992 The only exception is opening a source image temporarily for copying and
1993 cloning (see <link to="IMedium::cloneTo" /> when the image will be closed
1994 again soon.
1995
1996 The format of the location string is storage format specific. See
1997 <link to="IMedium::location"/> and IMedium for more details.
1998
1999 <result name="VBOX_E_FILE_ERROR">
2000 Invalid medium storage file location or could not find the medium
2001 at the specified location.
2002 </result>
2003 <result name="VBOX_E_IPRT_ERROR">
2004 Could not get medium storage format.
2005 </result>
2006 <result name="E_INVALIDARG">
2007 Invalid medium storage format.
2008 </result>
2009 <result name="VBOX_E_INVALID_OBJECT_STATE">
2010 Medium has already been added to a media registry.
2011 </result>
2012 </desc>
2013 <param name="location" type="wstring" dir="in">
2014 <desc>
2015 Location of the storage unit that contains medium data in one of
2016 the supported storage formats.
2017 </desc>
2018 </param>
2019 <param name="deviceType" type="DeviceType" dir="in">
2020 <desc>
2021 Must be one of "HardDisk", "DVD" or "Floppy".
2022 </desc>
2023 </param>
2024 <param name="accessMode" type="AccessMode" dir="in">
2025 <desc>Whether to open the image in read/write or read-only mode. For
2026 a "DVD" device type, this is ignored and read-only mode is always assumed.</desc>
2027 </param>
2028 <param name="forceNewUuid" type="boolean" dir="in">
2029 <desc>Allows the caller to request a completely new medium UUID for
2030 the image which is to be opened. Useful if one intends to open an exact
2031 copy of a previously opened image, as this would normally fail due to
2032 the duplicate UUID.</desc>
2033 </param>
2034 <param name="medium" type="IMedium" dir="return">
2035 <desc>Opened medium object.</desc>
2036 </param>
2037 </method>
2038
2039 <method name="getGuestOSType">
2040 <desc>
2041 Returns an object describing the specified guest OS type.
2042
2043 The requested guest OS type is specified using a string which is a
2044 mnemonic identifier of the guest operating system, such as
2045 <tt>"win31"</tt> or <tt>"ubuntu"</tt>. The guest OS type ID of a
2046 particular virtual machine can be read or set using the
2047 <link to="IMachine::OSTypeId"/> attribute.
2048
2049 The <link to="IVirtualBox::guestOSTypes"/> collection contains all
2050 available guest OS type objects. Each object has an
2051 <link to="IGuestOSType::id"/> attribute which contains an identifier of
2052 the guest OS this object describes.
2053
2054 <result name="E_INVALIDARG">
2055 @a id is not a valid Guest OS type.
2056 </result>
2057
2058 </desc>
2059 <param name="id" type="uuid" mod="string" dir="in">
2060 <desc>Guest OS type ID string.</desc>
2061 </param>
2062 <param name="type" type="IGuestOSType" dir="return">
2063 <desc>Guest OS type object.</desc>
2064 </param>
2065 </method>
2066
2067 <method name="createSharedFolder">
2068 <desc>
2069 Creates a new global shared folder by associating the given logical
2070 name with the given host path, adds it to the collection of shared
2071 folders and starts sharing it. Refer to the description of
2072 <link to="ISharedFolder"/> to read more about logical names.
2073 <note>
2074 In the current implementation, this operation is not
2075 implemented.
2076 </note>
2077 </desc>
2078 <param name="name" type="wstring" dir="in">
2079 <desc>Unique logical name of the shared folder.</desc>
2080 </param>
2081 <param name="hostPath" type="wstring" dir="in">
2082 <desc>Full path to the shared folder in the host file system.</desc>
2083 </param>
2084 <param name="writable" type="boolean" dir="in">
2085 <desc>Whether the share is writable or readonly</desc>
2086 </param>
2087 <param name="automount" type="boolean" dir="in">
2088 <desc>Whether the share gets automatically mounted by the guest
2089 or not.</desc>
2090 </param>
2091 </method>
2092
2093 <method name="removeSharedFolder">
2094 <desc>
2095 Removes the global shared folder with the given name previously
2096 created by <link to="#createSharedFolder"/> from the collection of
2097 shared folders and stops sharing it.
2098 <note>
2099 In the current implementation, this operation is not
2100 implemented.
2101 </note>
2102 </desc>
2103 <param name="name" type="wstring" dir="in">
2104 <desc>Logical name of the shared folder to remove.</desc>
2105 </param>
2106 </method>
2107
2108 <method name="getExtraDataKeys">
2109 <desc>
2110 Returns an array representing the global extra data keys which currently
2111 have values defined.
2112 </desc>
2113 <param name="value" type="wstring" dir="return" safearray="yes">
2114 <desc>Array of extra data keys.</desc>
2115 </param>
2116 </method>
2117
2118 <method name="getExtraData">
2119 <desc>
2120 Returns associated global extra data.
2121
2122 If the requested data @a key does not exist, this function will
2123 succeed and return an empty string in the @a value argument.
2124
2125 <result name="VBOX_E_FILE_ERROR">
2126 Settings file not accessible.
2127 </result>
2128 <result name="VBOX_E_XML_ERROR">
2129 Could not parse the settings file.
2130 </result>
2131
2132 </desc>
2133 <param name="key" type="wstring" dir="in">
2134 <desc>Name of the data key to get.</desc>
2135 </param>
2136 <param name="value" type="wstring" dir="return">
2137 <desc>Value of the requested data key.</desc>
2138 </param>
2139 </method>
2140
2141 <method name="setExtraData">
2142 <desc>
2143 Sets associated global extra data.
2144
2145 If you pass @c null or empty string as a key @a value, the given @a key
2146 will be deleted.
2147
2148 <note>
2149 Before performing the actual data change, this method will ask all
2150 registered event listener using the
2151 <link to="IExtraDataCanChangeEvent"/>
2152 notification for a permission. If one of the listeners refuses the
2153 new value, the change will not be performed.
2154 </note>
2155 <note>
2156 On success, the
2157 <link to="IExtraDataChangedEvent"/> notification
2158 is called to inform all registered listeners about a successful data
2159 change.
2160 </note>
2161
2162 <result name="VBOX_E_FILE_ERROR">
2163 Settings file not accessible.
2164 </result>
2165 <result name="VBOX_E_XML_ERROR">
2166 Could not parse the settings file.
2167 </result>
2168 <result name="E_ACCESSDENIED">
2169 Modification request refused.
2170 </result>
2171
2172 </desc>
2173 <param name="key" type="wstring" dir="in">
2174 <desc>Name of the data key to set.</desc>
2175 </param>
2176 <param name="value" type="wstring" dir="in">
2177 <desc>Value to assign to the key.</desc>
2178 </param>
2179 </method>
2180
2181 <method name="setSettingsSecret">
2182 <desc>
2183 Unlocks the secret data by passing the unlock password to the
2184 server. The server will cache the password for that machine.
2185
2186 <result name="VBOX_E_INVALID_VM_STATE">
2187 Virtual machine is not mutable.
2188 </result>
2189
2190 </desc>
2191 <param name="password" type="wstring" dir="in">
2192 <desc>
2193 The cipher key.
2194 </desc>
2195 </param>
2196 </method>
2197
2198 <!--method name="createDHCPServerForInterface">
2199 <desc>
2200 Creates a DHCP server settings to be used for the given interface
2201 <result name="E_INVALIDARG">
2202 Host network interface @a name already exists.
2203 </result>
2204 </desc>
2205 <param name="interface" type="IHostNetworkInterface" dir="in">
2206 <desc>Network Interface</desc>
2207 </param>
2208 <param name="server" type="IDHCPServer" dir="out">
2209 <desc>DHCP server settings</desc>
2210 </param>
2211 </method-->
2212
2213 <method name="createDHCPServer">
2214 <desc>
2215 Creates a DHCP server settings to be used for the given internal network name
2216 <result name="E_INVALIDARG">
2217 Host network interface @a name already exists.
2218 </result>
2219 </desc>
2220 <param name="name" type="wstring" dir="in">
2221 <desc>server name</desc>
2222 </param>
2223 <param name="server" type="IDHCPServer" dir="return">
2224 <desc>DHCP server settings</desc>
2225 </param>
2226 </method>
2227
2228 <method name="findDHCPServerByNetworkName">
2229 <desc>
2230 Searches a DHCP server settings to be used for the given internal network name
2231 <result name="E_INVALIDARG">
2232 Host network interface @a name already exists.
2233 </result>
2234
2235 </desc>
2236 <param name="name" type="wstring" dir="in">
2237 <desc>server name</desc>
2238 </param>
2239 <param name="server" type="IDHCPServer" dir="return">
2240 <desc>DHCP server settings</desc>
2241 </param>
2242 </method>
2243
2244 <!--method name="findDHCPServerForInterface">
2245 <desc>
2246 Searches a DHCP server settings to be used for the given interface
2247 <result name="E_INVALIDARG">
2248 Host network interface @a name already exists.
2249 </result>
2250 </desc>
2251 <param name="interface" type="IHostNetworkInterface" dir="in">
2252 <desc>Network Interface</desc>
2253 </param>
2254 <param name="server" type="IDHCPServer" dir="out">
2255 <desc>DHCP server settings</desc>
2256 </param>
2257 </method-->
2258
2259 <method name="removeDHCPServer">
2260 <desc>
2261 Removes the DHCP server settings
2262 <result name="E_INVALIDARG">
2263 Host network interface @a name already exists.
2264 </result>
2265 </desc>
2266 <param name="server" type="IDHCPServer" dir="in">
2267 <desc>DHCP server settings to be removed</desc>
2268 </param>
2269 </method>
2270
2271
2272 <method name="checkFirmwarePresent">
2273 <desc>
2274 Check if this VirtualBox installation has a firmware
2275 of the given type available, either system-wide or per-user.
2276 Optionally, this may return a hint where this firmware can be
2277 downloaded from.
2278 </desc>
2279 <param name="firmwareType" type="FirmwareType" dir="in">
2280 <desc>
2281 Type of firmware to check.
2282 </desc>
2283 </param>
2284 <param name="version" type="wstring" dir="in">
2285 <desc>Expected version number, usually empty string (presently ignored).</desc>
2286 </param>
2287
2288 <param name="url" type="wstring" dir="out">
2289 <desc>
2290 Suggested URL to download this firmware from.
2291 </desc>
2292 </param>
2293
2294 <param name="file" type="wstring" dir="out">
2295 <desc>
2296 Filename of firmware, only valid if result == TRUE.
2297 </desc>
2298 </param>
2299
2300 <param name="result" type="boolean" dir="return">
2301 <desc>If firmware of this type and version is available.</desc>
2302 </param>
2303 </method>
2304
2305 </interface>
2306
2307 <!--
2308 // IVFSExplorer
2309 /////////////////////////////////////////////////////////////////////////
2310 -->
2311
2312 <enum
2313 name="VFSType"
2314 uuid="813999ba-b949-48a8-9230-aadc6285e2f2"
2315 >
2316 <desc>
2317 Virtual file systems supported by VFSExplorer.
2318 </desc>
2319
2320 <const name="File" value="1" />
2321 <const name="Cloud" value="2" />
2322 <const name="S3" value="3" />
2323 <const name="WebDav" value="4" />
2324 </enum>
2325
2326 <enum
2327 name="VFSFileType"
2328 uuid="714333cd-44e2-415f-a245-d378fa9b1242"
2329 >
2330 <desc>
2331 File types known by VFSExplorer.
2332 </desc>
2333
2334 <const name="Unknown" value="1" />
2335 <const name="Fifo" value="2" />
2336 <const name="DevChar" value="3" />
2337 <const name="Directory" value="4" />
2338 <const name="DevBlock" value="5" />
2339 <const name="File" value="6" />
2340 <const name="SymLink" value="7" />
2341 <const name="Socket" value="8" />
2342 <const name="WhiteOut" value="9" />
2343 </enum>
2344
2345 <interface
2346 name="IVFSExplorer" extends="$unknown"
2347 uuid="003d7f92-d38e-487f-b790-8c5e8631cb2f"
2348 wsmap="managed"
2349 >
2350 <desc>
2351 The VFSExplorer interface unifies access to different file system
2352 types. This includes local file systems as well remote file systems like
2353 S3. For a list of supported types see <link to="VFSType" />.
2354 An instance of this is returned by <link to="IAppliance::createVFSExplorer" />.
2355 </desc>
2356
2357 <attribute name="path" type="wstring" readonly="yes">
2358 <desc>Returns the current path in the virtual file system.</desc>
2359 </attribute>
2360
2361 <attribute name="type" type="VFSType" readonly="yes">
2362 <desc>Returns the file system type which is currently in use.</desc>
2363 </attribute>
2364
2365 <method name="update">
2366 <desc>Updates the internal list of files/directories from the
2367 current directory level. Use <link to="#entryList" /> to get the full list
2368 after a call to this method.</desc>
2369
2370 <param name="aProgress" type="IProgress" dir="return">
2371 <desc>Progress object to track the operation completion.</desc>
2372 </param>
2373 </method>
2374
2375 <method name="cd">
2376 <desc>Change the current directory level.</desc>
2377
2378 <param name="aDir" type="wstring" dir="in">
2379 <desc>The name of the directory to go in.</desc>
2380 </param>
2381
2382 <param name="aProgress" type="IProgress" dir="return">
2383 <desc>Progress object to track the operation completion.</desc>
2384 </param>
2385 </method>
2386
2387 <method name="cdUp">
2388 <desc>Go one directory upwards from the current directory level.</desc>
2389
2390 <param name="aProgress" type="IProgress" dir="return">
2391 <desc>Progress object to track the operation completion.</desc>
2392 </param>
2393 </method>
2394
2395 <method name="entryList">
2396 <desc>Returns a list of files/directories after a call to <link
2397 to="#update" />. The user is responsible for keeping this internal
2398 list up do date.</desc>
2399
2400 <param name="aNames" type="wstring" safearray="yes" dir="out">
2401 <desc>The list of names for the entries.</desc>
2402 </param>
2403
2404 <param name="aTypes" type="unsigned long" safearray="yes" dir="out">
2405 <desc>The list of types for the entries.</desc>
2406 </param>
2407
2408 <param name="aSizes" type="unsigned long" safearray="yes" dir="out">
2409 <desc>The list of sizes (in bytes) for the entries.</desc>
2410 </param>
2411
2412 <param name="aModes" type="unsigned long" safearray="yes" dir="out">
2413 <desc>The list of file modes (in octal form) for the entries.</desc>
2414 </param>
2415 </method>
2416
2417 <method name="exists">
2418 <desc>Checks if the given file list exists in the current directory
2419 level.</desc>
2420
2421 <param name="aNames" type="wstring" safearray="yes" dir="in">
2422 <desc>The names to check.</desc>
2423 </param>
2424
2425 <param name="aExists" type="wstring" safearray="yes" dir="return">
2426 <desc>The names which exist.</desc>
2427 </param>
2428 </method>
2429
2430 <method name="remove">
2431 <desc>Deletes the given files in the current directory level.</desc>
2432
2433 <param name="aNames" type="wstring" safearray="yes" dir="in">
2434 <desc>The names to remove.</desc>
2435 </param>
2436
2437 <param name="aProgress" type="IProgress" dir="return">
2438 <desc>Progress object to track the operation completion.</desc>
2439 </param>
2440 </method>
2441
2442 </interface>
2443
2444 <enum
2445 name="ImportOptions" extends="$unknown"
2446 uuid="0a981523-3b20-4004-8ee3-dfd322202ace"
2447 >
2448
2449 <desc>
2450 Import options, used with <link to="IAppliance::importMachines" />.
2451 </desc>
2452
2453 <const name="KeepAllMACs" value="1">
2454 <desc>Don't generate new MAC addresses of the attached network adapters.</desc>
2455 </const>
2456 <const name="KeepNATMACs" value="2">
2457 <desc>Don't generate new MAC addresses of the attached network adapters when they are using NAT.</desc>
2458 </const>
2459
2460 </enum>
2461
2462
2463 <!--
2464 // IAppliance
2465 /////////////////////////////////////////////////////////////////////////
2466 -->
2467
2468 <interface
2469 name="IAppliance" extends="$unknown"
2470 uuid="3059cf9e-25c7-4f0b-9fa5-3c42e441670b"
2471 wsmap="managed"
2472 >
2473 <desc>
2474 Represents a platform-independent appliance in OVF format. An instance of this is returned
2475 by <link to="IVirtualBox::createAppliance" />, which can then be used to import and export
2476 virtual machines within an appliance with VirtualBox.
2477
2478 The OVF standard suggests two different physical file formats:
2479
2480 <ol>
2481 <li>If the appliance is distributed as a set of files, there must be at least one XML descriptor
2482 file that conforms to the OVF standard and carries an <tt>.ovf</tt> file extension. If
2483 this descriptor file references other files such as disk images, as OVF appliances typically
2484 do, those additional files must be in the same directory as the descriptor file.</li>
2485
2486 <li>If the appliance is distributed as a single file, it must be in TAR format and have the
2487 <tt>.ova</tt> file extension. This TAR file must then contain at least the OVF descriptor
2488 files and optionally other files.
2489
2490 At this time, VirtualBox does not not yet support the packed (TAR) variant; support will
2491 be added with a later version.</li>
2492 </ol>
2493
2494 <b>Importing</b> an OVF appliance into VirtualBox as instances of
2495 <link to="IMachine" /> involves the following sequence of API calls:
2496
2497 <ol>
2498 <li>Call <link to="IVirtualBox::createAppliance" />. This will create an empty IAppliance object.
2499 </li>
2500
2501 <li>On the new object, call <link to="#read" /> with the full path of the OVF file you
2502 would like to import. So long as this file is syntactically valid, this will succeed
2503 and fill the appliance object with the parsed data from the OVF file.
2504 </li>
2505
2506 <li>Next, call <link to="#interpret" />, which analyzes the OVF data and sets up the
2507 contents of the IAppliance attributes accordingly. These can be inspected by a
2508 VirtualBox front-end such as the GUI, and the suggestions can be displayed to the
2509 user. In particular, the <link to="#virtualSystemDescriptions" /> array contains
2510 instances of <link to="IVirtualSystemDescription" /> which represent the virtual
2511 systems (machines) in the OVF, which in turn describe the virtual hardware prescribed
2512 by the OVF (network and hardware adapters, virtual disk images, memory size and so on).
2513 The GUI can then give the user the option to confirm and/or change these suggestions.
2514 </li>
2515
2516 <li>If desired, call <link to="IVirtualSystemDescription::setFinalValues" /> for each
2517 virtual system (machine) to override the suggestions made by the <link to="#interpret" /> routine.
2518 </li>
2519
2520 <li>Finally, call <link to="#importMachines" /> to create virtual machines in
2521 VirtualBox as instances of <link to="IMachine" /> that match the information in the
2522 virtual system descriptions. After this call succeeded, the UUIDs of the machines created
2523 can be found in the <link to="#machines" /> array attribute.
2524 </li>
2525 </ol>
2526
2527 <b>Exporting</b> VirtualBox machines into an OVF appliance involves the following steps:
2528
2529 <ol>
2530 <li>As with importing, first call <link to="IVirtualBox::createAppliance" /> to create
2531 an empty IAppliance object.
2532 </li>
2533
2534 <li>For each machine you would like to export, call <link to="IMachine::export" />
2535 with the IAppliance object you just created. Each such call creates one instance of
2536 <link to="IVirtualSystemDescription" /> inside the appliance.
2537 </li>
2538
2539 <li>If desired, call <link to="IVirtualSystemDescription::setFinalValues" /> for each
2540 virtual system (machine) to override the suggestions made by the <link to="IMachine::export"/> routine.
2541 </li>
2542
2543 <li>Finally, call <link to="#write" /> with a path specification to have the OVF
2544 file written.</li>
2545 </ol>
2546
2547 </desc>
2548
2549 <attribute name="path" type="wstring" readonly="yes">
2550 <desc>Path to the main file of the OVF appliance, which is either the <tt>.ovf</tt> or
2551 the <tt>.ova</tt> file passed to <link to="#read" /> (for import) or
2552 <link to="#write" /> (for export).
2553 This attribute is empty until one of these methods has been called.
2554 </desc>
2555 </attribute>
2556
2557 <attribute name="disks" type="wstring" readonly="yes" safearray="yes">
2558 <desc>
2559 Array of virtual disk definitions. One such description exists for each
2560 disk definition in the OVF; each string array item represents one such piece of
2561 disk information, with the information fields separated by tab (\\t) characters.
2562
2563 The caller should be prepared for additional fields being appended to
2564 this string in future versions of VirtualBox and therefore check for
2565 the number of tabs in the strings returned.
2566
2567 In the current version, the following eight fields are returned per string
2568 in the array:
2569
2570 <ol>
2571 <li>Disk ID (unique string identifier given to disk)</li>
2572
2573 <li>Capacity (unsigned integer indicating the maximum capacity of the disk)</li>
2574
2575 <li>Populated size (optional unsigned integer indicating the current size of the
2576 disk; can be approximate; -1 if unspecified)</li>
2577
2578 <li>Format (string identifying the disk format, typically
2579 "http://www.vmware.com/specifications/vmdk.html#sparse")</li>
2580
2581 <li>Reference (where to find the disk image, typically a file name; if empty,
2582 then the disk should be created on import)</li>
2583
2584 <li>Image size (optional unsigned integer indicating the size of the image,
2585 which need not necessarily be the same as the values specified above, since
2586 the image may be compressed or sparse; -1 if not specified)</li>
2587
2588 <li>Chunk size (optional unsigned integer if the image is split into chunks;
2589 presently unsupported and always -1)</li>
2590
2591 <li>Compression (optional string equalling "gzip" if the image is gzip-compressed)</li>
2592 </ol>
2593 </desc>
2594 </attribute>
2595
2596 <attribute name="virtualSystemDescriptions" type="IVirtualSystemDescription" readonly="yes" safearray="yes">
2597 <desc> Array of virtual system descriptions. One such description is created
2598 for each virtual system (machine) found in the OVF.
2599 This array is empty until either <link to="#interpret" /> (for import) or <link to="IMachine::export" />
2600 (for export) has been called.
2601 </desc>
2602 </attribute>
2603
2604 <attribute name="machines" type="wstring" readonly="yes" safearray="yes">
2605 <desc>
2606 Contains the UUIDs of the machines created from the information in this appliances. This is only
2607 relevant for the import case, and will only contain data after a call to <link to="#importMachines" />
2608 succeeded.
2609 </desc>
2610 </attribute>
2611
2612 <method name="read">
2613 <desc>
2614 Reads an OVF file into the appliance object.
2615
2616 This method succeeds if the OVF is syntactically valid and, by itself, without errors. The
2617 mere fact that this method returns successfully does not mean that VirtualBox supports all
2618 features requested by the appliance; this can only be examined after a call to <link to="#interpret" />.
2619 </desc>
2620 <param name="file" type="wstring" dir="in">
2621 <desc>
2622 Name of appliance file to open (either with an <tt>.ovf</tt> or <tt>.ova</tt> extension, depending
2623 on whether the appliance is distributed as a set of files or as a single file, respectively).
2624 </desc>
2625 </param>
2626 <param name="aProgress" type="IProgress" dir="return">
2627 <desc>Progress object to track the operation completion.</desc>
2628 </param>
2629 </method>
2630
2631 <method name="interpret">
2632 <desc>
2633 Interprets the OVF data that was read when the appliance was constructed. After
2634 calling this method, one can inspect the
2635 <link to="#virtualSystemDescriptions" /> array attribute, which will then contain
2636 one <link to="IVirtualSystemDescription" /> for each virtual machine found in
2637 the appliance.
2638
2639 Calling this method is the second step of importing an appliance into VirtualBox;
2640 see <link to="IAppliance" /> for an overview.
2641
2642 After calling this method, one should call <link to="#getWarnings" /> to find out
2643 if problems were encountered during the processing which might later lead to
2644 errors.
2645 </desc>
2646 </method>
2647
2648 <method name="importMachines">
2649 <desc>
2650 Imports the appliance into VirtualBox by creating instances of <link to="IMachine" />
2651 and other interfaces that match the information contained in the appliance as
2652 closely as possible, as represented by the import instructions in the
2653 <link to="#virtualSystemDescriptions" /> array.
2654
2655 Calling this method is the final step of importing an appliance into VirtualBox;
2656 see <link to="IAppliance" /> for an overview.
2657
2658 Since importing the appliance will most probably involve copying and converting
2659 disk images, which can take a long time, this method operates asynchronously and
2660 returns an IProgress object to allow the caller to monitor the progress.
2661
2662 After the import succeeded, the UUIDs of the IMachine instances created can be
2663 retrieved from the <link to="#machines" /> array attribute.
2664 </desc>
2665
2666 <param name="options" type="ImportOptions" dir="in" safearray="yes">
2667 <desc>Options for the importing operation.</desc>
2668 </param>
2669
2670 <param name="aProgress" type="IProgress" dir="return">
2671 <desc>Progress object to track the operation completion.</desc>
2672 </param>
2673 </method>
2674
2675 <method name="createVFSExplorer">
2676 <desc>Returns a <link to="IVFSExplorer" /> object for the given URI.</desc>
2677
2678 <param name="aUri" type="wstring" dir="in">
2679 <desc>The URI describing the file system to use.</desc>
2680 </param>
2681
2682 <param name="aExplorer" type="IVFSExplorer" dir="return">
2683 <desc></desc>
2684 </param>
2685 </method>
2686
2687 <method name="write">
2688 <desc>
2689 Writes the contents of the appliance exports into a new OVF file.
2690
2691 Calling this method is the final step of exporting an appliance from VirtualBox;
2692 see <link to="IAppliance" /> for an overview.
2693
2694 Since exporting the appliance will most probably involve copying and converting
2695 disk images, which can take a long time, this method operates asynchronously and
2696 returns an IProgress object to allow the caller to monitor the progress.
2697 </desc>
2698 <param name="format" type="wstring" dir="in">
2699 <desc>
2700 Output format, as a string. Currently supported formats are "ovf-0.9", "ovf-1.0"
2701 and "ovf-2.0"; future versions of VirtualBox may support additional formats.
2702 </desc>
2703 </param>
2704 <param name="manifest" type="boolean" dir="in">
2705 <desc>
2706 Indicate if the optional manifest file (.mf) should be written. The manifest file
2707 is used for integrity checks prior import.
2708 </desc>
2709 </param>
2710 <param name="path" type="wstring" dir="in">
2711 <desc>
2712 Name of appliance file to open (either with an <tt>.ovf</tt> or <tt>.ova</tt> extension, depending
2713 on whether the appliance is distributed as a set of files or as a single file, respectively).
2714 </desc>
2715 </param>
2716 <param name="progress" type="IProgress" dir="return">
2717 <desc>Progress object to track the operation completion.</desc>
2718 </param>
2719 </method>
2720
2721 <method name="getWarnings">
2722 <desc>Returns textual warnings which occurred during execution of <link to="#interpret" />.</desc>
2723
2724 <param name="aWarnings" type="wstring" dir="return" safearray="yes">
2725 <desc></desc>
2726 </param>
2727 </method>
2728
2729 </interface>
2730
2731 <enum
2732 name="VirtualSystemDescriptionType"
2733 uuid="303c0900-a746-4612-8c67-79003e91f459"
2734 >
2735 <desc>Used with <link to="IVirtualSystemDescription" /> to describe the type of
2736 a configuration value.</desc>
2737
2738 <const name="Ignore" value="1" />
2739 <const name="OS" value="2" />
2740 <const name="Name" value="3" />
2741 <const name="Product" value="4" />
2742 <const name="Vendor" value="5" />
2743 <const name="Version" value="6" />
2744 <const name="ProductUrl" value="7" />
2745 <const name="VendorUrl" value="8" />
2746 <const name="Description" value="9" />
2747 <const name="License" value="10" />
2748 <const name="Miscellaneous" value="11" />
2749 <const name="CPU" value="12" />
2750 <const name="Memory" value="13" />
2751 <const name="HardDiskControllerIDE" value="14" />
2752 <const name="HardDiskControllerSATA" value="15" />
2753 <const name="HardDiskControllerSCSI" value="16" />
2754 <const name="HardDiskControllerSAS" value="17" />
2755 <const name="HardDiskImage" value="18" />
2756 <const name="Floppy" value="19" />
2757 <const name="CDROM" value="20" />
2758 <const name="NetworkAdapter" value="21" />
2759 <const name="USBController" value="22" />
2760 <const name="SoundCard" value="23" />
2761 <const name="SettingsFile" value="24">
2762 <desc>Not used/implemented right now, will be added later in 4.1.x.</desc>
2763 </const>
2764 </enum>
2765
2766 <enum
2767 name="VirtualSystemDescriptionValueType"
2768 uuid="56d9403f-3425-4118-9919-36f2a9b8c77c"
2769 >
2770 <desc>Used with <link to="IVirtualSystemDescription::getValuesByType" /> to describe the value
2771 type to fetch.</desc>
2772
2773 <const name="Reference" value="1" />
2774 <const name="Original" value="2" />
2775 <const name="Auto" value="3" />
2776 <const name="ExtraConfig" value="4" />
2777
2778 </enum>
2779
2780 <interface
2781 name="IVirtualSystemDescription" extends="$unknown"
2782 uuid="d7525e6c-531a-4c51-8e04-41235083a3d8"
2783 wsmap="managed"
2784 >
2785
2786 <desc>Represents one virtual system (machine) in an appliance. This interface is used in
2787 the <link to="IAppliance::virtualSystemDescriptions" /> array. After
2788 <link to="IAppliance::interpret" /> has been called, that array contains information
2789 about how the virtual systems described in the OVF should best be imported into
2790 VirtualBox virtual machines. See <link to="IAppliance" /> for the steps required to
2791 import an OVF into VirtualBox.
2792 </desc>
2793
2794 <attribute name="count" type="unsigned long" readonly="yes">
2795 <desc>Return the number of virtual system description entries.</desc>
2796 </attribute>
2797
2798 <method name="getDescription">
2799 <desc>Returns information about the virtual system as arrays of instruction items. In each array, the
2800 items with the same indices correspond and jointly represent an import instruction for VirtualBox.
2801
2802 The list below identifies the value sets that are possible depending on the
2803 <link to="VirtualSystemDescriptionType" /> enum value in the array item in @a aTypes[]. In each case,
2804 the array item with the same index in @a aOvfValues[] will contain the original value as contained
2805 in the OVF file (just for informational purposes), and the corresponding item in @a aVBoxValues[]
2806 will contain a suggested value to be used for VirtualBox. Depending on the description type,
2807 the @a aExtraConfigValues[] array item may also be used.
2808
2809 <ul>
2810 <li>
2811 "OS": the guest operating system type. There must be exactly one such array item on import. The
2812 corresponding item in @a aVBoxValues[] contains the suggested guest operating system for VirtualBox.
2813 This will be one of the values listed in <link to="IVirtualBox::guestOSTypes" />. The corresponding
2814 item in @a aOvfValues[] will contain a numerical value that described the operating system in the OVF.
2815 </li>
2816 <li>
2817 "Name": the name to give to the new virtual machine. There can be at most one such array item;
2818 if none is present on import, then an automatic name will be created from the operating system
2819 type. The corresponding item im @a aOvfValues[] will contain the suggested virtual machine name
2820 from the OVF file, and @a aVBoxValues[] will contain a suggestion for a unique VirtualBox
2821 <link to="IMachine" /> name that does not exist yet.
2822 </li>
2823 <li>
2824 "Description": an arbitrary description.
2825 </li>
2826 <li>
2827 "License": the EULA section from the OVF, if present. It is the responsibility of the calling
2828 code to display such a license for agreement; the Main API does not enforce any such policy.
2829 </li>
2830 <li>
2831 Miscellaneous: reserved for future use.
2832 </li>
2833 <li>
2834 "CPU": the number of CPUs. There can be at most one such item, which will presently be ignored.
2835 </li>
2836 <li>
2837 "Memory": the amount of guest RAM, in bytes. There can be at most one such array item; if none
2838 is present on import, then VirtualBox will set a meaningful default based on the operating system
2839 type.
2840 </li>
2841 <li>
2842 "HardDiskControllerIDE": an IDE hard disk controller. There can be at most two such items.
2843 An optional value in @a aOvfValues[] and @a aVBoxValues[] can be "PIIX3" or "PIIX4" to specify
2844 the type of IDE controller; this corresponds to the ResourceSubType element which VirtualBox
2845 writes into the OVF.
2846 The matching item in the @a aRefs[] array will contain an integer that items of the "Harddisk"
2847 type can use to specify which hard disk controller a virtual disk should be connected to.
2848 Note that in OVF, an IDE controller has two channels, corresponding to "master" and "slave"
2849 in traditional terminology, whereas the IDE storage controller that VirtualBox supports in
2850 its virtual machines supports four channels (primary master, primary slave, secondary master,
2851 secondary slave) and thus maps to two IDE controllers in the OVF sense.
2852 </li>
2853 <li>
2854 "HardDiskControllerSATA": an SATA hard disk controller. There can be at most one such item. This
2855 has no value in @a aOvfValues[] or @a aVBoxValues[].
2856 The matching item in the @a aRefs[] array will be used as with IDE controllers (see above).
2857 </li>
2858 <li>
2859 "HardDiskControllerSCSI": a SCSI hard disk controller. There can be at most one such item.
2860 The items in @a aOvfValues[] and @a aVBoxValues[] will either be "LsiLogic", "BusLogic" or
2861 "LsiLogicSas". (Note that in OVF, the LsiLogicSas controller is treated as a SCSI controller
2862 whereas VirtualBox considers it a class of storage controllers of its own; see
2863 <link to="StorageControllerType" />).
2864 The matching item in the @a aRefs[] array will be used as with IDE controllers (see above).
2865 </li>
2866 <li>
2867 "HardDiskImage": a virtual hard disk, most probably as a reference to an image file. There can be an
2868 arbitrary number of these items, one for each virtual disk image that accompanies the OVF.
2869
2870 The array item in @a aOvfValues[] will contain the file specification from the OVF file (without
2871 a path since the image file should be in the same location as the OVF file itself), whereas the
2872 item in @a aVBoxValues[] will contain a qualified path specification to where VirtualBox uses the
2873 hard disk image. This means that on import the image will be copied and converted from the
2874 "ovf" location to the "vbox" location; on export, this will be handled the other way round.
2875
2876 The matching item in the @a aExtraConfigValues[] array must contain a string of the following
2877 format: "controller=&lt;index&gt;;channel=&lt;c&gt;"
2878 In this string, &lt;index&gt; must be an integer specifying the hard disk controller to connect
2879 the image to. That number must be the index of an array item with one of the hard disk controller
2880 types (HardDiskControllerSCSI, HardDiskControllerSATA, HardDiskControllerIDE).
2881 In addition, &lt;c&gt; must specify the channel to use on that controller. For IDE controllers,
2882 this can be 0 or 1 for master or slave, respectively. For compatibility with VirtualBox versions
2883 before 3.2, the values 2 and 3 (for secondary master and secondary slave) are also supported, but
2884 no longer exported. For SATA and SCSI controllers, the channel can range from 0-29.
2885 </li>
2886 <li>
2887 "CDROM": a virtual CD-ROM drive. The matching item in @a aExtraConfigValue[] contains the same
2888 attachment information as with "HardDiskImage" items.
2889 </li>
2890 <li>
2891 "CDROM": a virtual floppy drive. The matching item in @a aExtraConfigValue[] contains the same
2892 attachment information as with "HardDiskImage" items.
2893 </li>
2894 <li>
2895 "NetworkAdapter": a network adapter. The array item in @a aVBoxValues[] will specify the hardware
2896 for the network adapter, whereas the array item in @a aExtraConfigValues[] will have a string
2897 of the "type=&lt;X&gt;" format, where &lt;X&gt; must be either "NAT" or "Bridged".
2898 </li>
2899 <li>
2900 "USBController": a USB controller. There can be at most one such item. If and only if such an
2901 item ispresent, USB support will be enabled for the new virtual machine.
2902 </li>
2903 <li>
2904 "SoundCard": a sound card. There can be at most one such item. If and only if such an item is
2905 present, sound support will be enabled for the new virtual machine. Note that the virtual
2906 machine in VirtualBox will always be presented with the standard VirtualBox soundcard, which
2907 may be different from the virtual soundcard expected by the appliance.
2908 </li>
2909 </ul>
2910
2911 </desc>
2912
2913 <param name="aTypes" type="VirtualSystemDescriptionType" dir="out" safearray="yes">
2914 <desc></desc>
2915 </param>
2916
2917 <param name="aRefs" type="wstring" dir="out" safearray="yes">
2918 <desc></desc>
2919 </param>
2920
2921 <param name="aOvfValues" type="wstring" dir="out" safearray="yes">
2922 <desc></desc>
2923 </param>
2924
2925 <param name="aVBoxValues" type="wstring" dir="out" safearray="yes">
2926 <desc></desc>
2927 </param>
2928
2929 <param name="aExtraConfigValues" type="wstring" dir="out" safearray="yes">
2930 <desc></desc>
2931 </param>
2932
2933 </method>
2934
2935 <method name="getDescriptionByType">
2936 <desc>This is the same as <link to="#getDescription" /> except that you can specify which types
2937 should be returned.</desc>
2938
2939 <param name="aType" type="VirtualSystemDescriptionType" dir="in">
2940 <desc></desc>
2941 </param>
2942
2943 <param name="aTypes" type="VirtualSystemDescriptionType" dir="out" safearray="yes">
2944 <desc></desc>
2945 </param>
2946
2947 <param name="aRefs" type="wstring" dir="out" safearray="yes">
2948 <desc></desc>
2949 </param>
2950
2951 <param name="aOvfValues" type="wstring" dir="out" safearray="yes">
2952 <desc></desc>
2953 </param>
2954
2955 <param name="aVBoxValues" type="wstring" dir="out" safearray="yes">
2956 <desc></desc>
2957 </param>
2958
2959 <param name="aExtraConfigValues" type="wstring" dir="out" safearray="yes">
2960 <desc></desc>
2961 </param>
2962
2963 </method>
2964
2965 <method name="getValuesByType">
2966 <desc>This is the same as <link to="#getDescriptionByType" /> except that you can specify which
2967 value types should be returned. See <link to="VirtualSystemDescriptionValueType" /> for possible
2968 values.</desc>
2969
2970 <param name="aType" type="VirtualSystemDescriptionType" dir="in">
2971 <desc></desc>
2972 </param>
2973
2974 <param name="aWhich" type="VirtualSystemDescriptionValueType" dir="in">
2975 <desc></desc>
2976 </param>
2977
2978 <param name="aValues" type="wstring" dir="return" safearray="yes">
2979 <desc></desc>
2980 </param>
2981
2982 </method>
2983
2984 <method name="setFinalValues">
2985 <desc>
2986 This method allows the appliance's user to change the configuration for the virtual
2987 system descriptions. For each array item returned from <link to="#getDescription" />,
2988 you must pass in one boolean value and one configuration value.
2989
2990 Each item in the boolean array determines whether the particular configuration item
2991 should be enabled.
2992 You can only disable items of the types HardDiskControllerIDE, HardDiskControllerSATA,
2993 HardDiskControllerSCSI, HardDiskImage, CDROM, Floppy, NetworkAdapter, USBController
2994 and SoundCard.
2995
2996 For the "vbox" and "extra configuration" values, if you pass in the same arrays
2997 as returned in the aVBoxValues and aExtraConfigValues arrays from <link to="#getDescription"/>,
2998 the configuration remains unchanged. Please see the documentation for <link to="#getDescription"/>
2999 for valid configuration values for the individual array item types. If the
3000 corresponding item in the aEnabled array is @c false, the configuration value is ignored.
3001 </desc>
3002
3003 <param name="aEnabled" type="boolean" dir="in" safearray="yes">
3004 <desc></desc>
3005 </param>
3006
3007 <param name="aVBoxValues" type="wstring" dir="in" safearray="yes">
3008 <desc></desc>
3009 </param>
3010
3011 <param name="aExtraConfigValues" type="wstring" dir="in" safearray="yes">
3012 <desc></desc>
3013 </param>
3014 </method>
3015
3016 <method name="addDescription">
3017 <desc>
3018 This method adds an additional description entry to the stack of already
3019 available descriptions for this virtual system. This is handy for writing
3020 values which aren't directly supported by VirtualBox. One example would
3021 be the License type of <link to="VirtualSystemDescriptionType" />.
3022 </desc>
3023
3024 <param name="aType" type="VirtualSystemDescriptionType" dir="in">
3025 <desc></desc>
3026 </param>
3027
3028 <param name="aVBoxValue" type="wstring" dir="in">
3029 <desc></desc>
3030 </param>
3031
3032 <param name="aExtraConfigValue" type="wstring" dir="in">
3033 <desc></desc>
3034 </param>
3035 </method>
3036 </interface>
3037
3038
3039 <!--
3040 // IMachine
3041 /////////////////////////////////////////////////////////////////////////
3042 -->
3043
3044 <interface
3045 name="IInternalMachineControl" extends="$unknown"
3046 uuid="ec824977-e43f-479c-81c9-ac6cae1423a5"
3047 internal="yes"
3048 wsmap="suppress"
3049 >
3050 <method name="setRemoveSavedStateFile">
3051 <desc>
3052 Updates the flag whether the saved state file is removed on a
3053 machine state change from Saved to PoweredOff.
3054 </desc>
3055 <param name="aRemove" type="boolean" dir="in"/>
3056 </method>
3057
3058 <method name="updateState">
3059 <desc>
3060 Updates the VM state.
3061 <note>
3062 This operation will also update the settings file with the correct
3063 information about the saved state file and delete this file from disk
3064 when appropriate.
3065 </note>
3066 </desc>
3067 <param name="state" type="MachineState" dir="in"/>
3068 </method>
3069
3070 <method name="getIPCId">
3071 <param name="id" type="wstring" dir="return"/>
3072 </method>
3073
3074 <method name="beginPowerUp">
3075 <desc>
3076 Tells VBoxSVC that <link to="IConsole::powerUp"/> is under ways and
3077 gives it the progress object that should be part of any pending
3078 <link to="IMachine::launchVMProcess"/> operations. The progress
3079 object may be called back to reflect an early cancelation, so some care
3080 have to be taken with respect to any cancelation callbacks. The console
3081 object will call <link to="IInternalMachineControl::endPowerUp"/>
3082 to signal the completion of the progress object.
3083 </desc>
3084 <param name="aProgress" type="IProgress" dir="in" />
3085 </method>
3086
3087 <method name="endPowerUp">
3088 <desc>
3089 Tells VBoxSVC that <link to="IConsole::powerUp"/> has completed.
3090 This method may query status information from the progress object it
3091 received in <link to="IInternalMachineControl::beginPowerUp"/> and copy
3092 it over to any in-progress <link to="IMachine::launchVMProcess"/>
3093 call in order to complete that progress object.
3094 </desc>
3095 <param name="result" type="long" dir="in"/>
3096 </method>
3097
3098 <method name="beginPoweringDown">
3099 <desc>
3100 Called by the VM process to inform the server it wants to
3101 stop the VM execution and power down.
3102 </desc>
3103 <param name="progress" type="IProgress" dir="out">
3104 <desc>
3105 Progress object created by VBoxSVC to wait until
3106 the VM is powered down.
3107 </desc>
3108 </param>
3109 </method>
3110
3111 <method name="endPoweringDown">
3112 <desc>
3113 Called by the VM process to inform the server that powering
3114 down previously requested by #beginPoweringDown is either
3115 successfully finished or there was a failure.
3116
3117 <result name="VBOX_E_FILE_ERROR">
3118 Settings file not accessible.
3119 </result>
3120 <result name="VBOX_E_XML_ERROR">
3121 Could not parse the settings file.
3122 </result>
3123
3124 </desc>
3125
3126 <param name="result" type="long" dir="in">
3127 <desc>@c S_OK to indicate success.
3128 </desc>
3129 </param>
3130 <param name="errMsg" type="wstring" dir="in">
3131 <desc>@c human readable error message in case of failure.
3132 </desc>
3133 </param>
3134 </method>
3135
3136 <method name="runUSBDeviceFilters">
3137 <desc>
3138 Asks the server to run USB devices filters of the associated
3139 machine against the given USB device and tell if there is
3140 a match.
3141 <note>
3142 Intended to be used only for remote USB devices. Local
3143 ones don't require to call this method (this is done
3144 implicitly by the Host and USBProxyService).
3145 </note>
3146 </desc>
3147 <param name="device" type="IUSBDevice" dir="in"/>
3148 <param name="matched" type="boolean" dir="out"/>
3149 <param name="maskedInterfaces" type="unsigned long" dir="out"/>
3150 </method>
3151
3152 <method name="captureUSBDevice">
3153 <desc>
3154 Requests a capture of the given host USB device.
3155 When the request is completed, the VM process will
3156 get a <link to="IInternalSessionControl::onUSBDeviceAttach"/>
3157 notification.
3158 </desc>
3159 <param name="id" type="uuid" mod="string" dir="in"/>
3160 </method>
3161
3162 <method name="detachUSBDevice">
3163 <desc>
3164 Notification that a VM is going to detach (@a done = @c false) or has
3165 already detached (@a done = @c true) the given USB device.
3166 When the @a done = @c true request is completed, the VM process will
3167 get a <link to="IInternalSessionControl::onUSBDeviceDetach"/>
3168 notification.
3169 <note>
3170 In the @a done = @c true case, the server must run its own filters
3171 and filters of all VMs but this one on the detached device
3172 as if it were just attached to the host computer.
3173 </note>
3174 </desc>
3175 <param name="id" type="uuid" mod="string" dir="in"/>
3176 <param name="done" type="boolean" dir="in"/>
3177 </method>
3178
3179 <method name="autoCaptureUSBDevices">
3180 <desc>
3181 Requests a capture all matching USB devices attached to the host.
3182 When the request is completed, the VM process will
3183 get a <link to="IInternalSessionControl::onUSBDeviceAttach"/>
3184 notification per every captured device.
3185 </desc>
3186 </method>
3187
3188 <method name="detachAllUSBDevices">
3189 <desc>
3190 Notification that a VM that is being powered down. The done
3191 parameter indicates whether which stage of the power down
3192 we're at. When @a done = @c false the VM is announcing its
3193 intentions, while when @a done = @c true the VM is reporting
3194 what it has done.
3195 <note>
3196 In the @a done = @c true case, the server must run its own filters
3197 and filters of all VMs but this one on all detach devices as
3198 if they were just attached to the host computer.
3199 </note>
3200 </desc>
3201 <param name="done" type="boolean" dir="in"/>
3202 </method>
3203
3204 <method name="onSessionEnd">
3205 <desc>
3206 Triggered by the given session object when the session is about
3207 to close normally.
3208 </desc>
3209 <param name="session" type="ISession" dir="in">
3210 <desc>Session that is being closed</desc>
3211 </param>
3212 <param name="progress" type="IProgress" dir="return">
3213 <desc>
3214 Used to wait until the corresponding machine is actually
3215 dissociated from the given session on the server.
3216 Returned only when this session is a direct one.
3217 </desc>
3218 </param>
3219 </method>
3220
3221 <method name="beginSavingState">
3222 <desc>
3223 Called by the VM process to inform the server it wants to
3224 save the current state and stop the VM execution.
3225 </desc>
3226 <param name="progress" type="IProgress" dir="out">
3227 <desc>
3228 Progress object created by VBoxSVC to wait until
3229 the state is saved.
3230 </desc>
3231 </param>
3232 <param name="stateFilePath" type="wstring" dir="out">
3233 <desc>
3234 File path the VM process must save the execution state to.
3235 </desc>
3236 </param>
3237 </method>
3238
3239 <method name="endSavingState">
3240 <desc>
3241 Called by the VM process to inform the server that saving
3242 the state previously requested by #beginSavingState is either
3243 successfully finished or there was a failure.
3244
3245 <result name="VBOX_E_FILE_ERROR">
3246 Settings file not accessible.
3247 </result>
3248 <result name="VBOX_E_XML_ERROR">
3249 Could not parse the settings file.
3250 </result>
3251
3252 </desc>
3253
3254 <param name="result" type="long" dir="in">
3255 <desc>@c S_OK to indicate success.
3256 </desc>
3257 </param>
3258 <param name="errMsg" type="wstring" dir="in">
3259 <desc>@c human readable error message in case of failure.
3260 </desc>
3261 </param>
3262 </method>
3263
3264 <method name="adoptSavedState">
3265 <desc>
3266 Gets called by <link to="IConsole::adoptSavedState"/>.
3267 <result name="VBOX_E_FILE_ERROR">
3268 Invalid saved state file path.
3269 </result>
3270 </desc>
3271 <param name="savedStateFile" type="wstring" dir="in">
3272 <desc>Path to the saved state file to adopt.</desc>
3273 </param>
3274 </method>
3275
3276 <method name="beginTakingSnapshot">
3277 <desc>
3278 Called from the VM process to request from the server to perform the
3279 server-side actions of creating a snapshot (creating differencing images
3280 and the snapshot object).
3281
3282 <result name="VBOX_E_FILE_ERROR">
3283 Settings file not accessible.
3284 </result>
3285 <result name="VBOX_E_XML_ERROR">
3286 Could not parse the settings file.
3287 </result>
3288 </desc>
3289 <param name="initiator" type="IConsole" dir="in">
3290 <desc>The console object that initiated this call.</desc>
3291 </param>
3292 <param name="name" type="wstring" dir="in">
3293 <desc>Snapshot name.</desc>
3294 </param>
3295 <param name="description" type="wstring" dir="in">
3296 <desc>Snapshot description.</desc>
3297 </param>
3298 <param name="consoleProgress" type="IProgress" dir="in">
3299 <desc>
3300 Progress object created by the VM process tracking the
3301 snapshot's progress. This has the following sub-operations:
3302 <ul>
3303 <li>setting up (weight 1);</li>
3304 <li>one for each medium attachment that needs a differencing image (weight 1 each);</li>
3305 <li>another one to copy the VM state (if offline with saved state, weight is VM memory size in MB);</li>
3306 <li>another one to save the VM state (if online, weight is VM memory size in MB);</li>
3307 <li>finishing up (weight 1)</li>
3308 </ul>
3309 </desc>
3310 </param>
3311 <param name="fTakingSnapshotOnline" type="boolean" dir="in">
3312 <desc>
3313 Whether this is an online snapshot (i.e. the machine is running).
3314 </desc>
3315 </param>
3316 <param name="stateFilePath" type="wstring" dir="out">
3317 <desc>
3318 File path the VM process must save the execution state to.
3319 </desc>
3320 </param>
3321 </method>
3322
3323 <method name="endTakingSnapshot">
3324 <desc>
3325 Called by the VM process to inform the server that the snapshot
3326 previously requested by #beginTakingSnapshot is either
3327 successfully taken or there was a failure.
3328 </desc>
3329
3330 <param name="success" type="boolean" dir="in">
3331 <desc>@c true to indicate success and @c false otherwise</desc>
3332 </param>
3333 </method>
3334
3335 <method name="deleteSnapshot">
3336 <desc>
3337 Gets called by <link to="IConsole::deleteSnapshot"/>,
3338 <link to="IConsole::deleteSnapshotAndAllChildren"/> and
3339 <link to="IConsole::deleteSnapshotRange"/>.
3340 <result name="VBOX_E_INVALID_OBJECT_STATE">
3341 Snapshot has more than one child snapshot. Only possible if the
3342 delete operation does not delete all children or the range does
3343 not meet the linearity condition.
3344 </result>
3345 </desc>
3346 <param name="initiator" type="IConsole" dir="in">
3347 <desc>The console object that initiated this call.</desc>
3348 </param>
3349 <param name="startId" type="uuid" mod="string" dir="in">
3350 <desc>UUID of the first snapshot to delete.</desc>
3351 </param>
3352 <param name="endId" type="uuid" mod="string" dir="in">
3353 <desc>UUID of the last snapshot to delete.</desc>
3354 </param>
3355 <param name="deleteAllChildren" type="boolean" dir="in">
3356 <desc>Whether all children should be deleted.</desc>
3357 </param>
3358 <param name="machineState" type="MachineState" dir="out">
3359 <desc>New machine state after this operation is started.</desc>
3360 </param>
3361 <param name="progress" type="IProgress" dir="return">
3362 <desc>Progress object to track the operation completion.</desc>
3363 </param>
3364 </method>
3365
3366 <method name="finishOnlineMergeMedium">
3367 <desc>
3368 Gets called by <link to="IInternalSessionControl::onlineMergeMedium"/>.
3369 </desc>
3370 <param name="mediumAttachment" type="IMediumAttachment" dir="in">
3371 <desc>The medium attachment which needs to be cleaned up.</desc>
3372 </param>
3373 <param name="source" type="IMedium" dir="in">
3374 <desc>Merge source medium.</desc>
3375 </param>
3376 <param name="target" type="IMedium" dir="in">
3377 <desc>Merge target medium.</desc>
3378 </param>
3379 <param name="mergeForward" type="boolean" dir="in">
3380 <desc>Merge direction.</desc>
3381 </param>
3382 <param name="parentForTarget" type="IMedium" dir="in">
3383 <desc>For forward merges: new parent for target medium.</desc>
3384 </param>
3385 <param name="childrenToReparent" type="IMedium" safearray="yes" dir="in">
3386 <desc>For backward merges: list of media which need their parent UUID
3387 updated.</desc>
3388 </param>
3389 </method>
3390
3391 <method name="restoreSnapshot">
3392 <desc>
3393 Gets called by <link to="IConsole::restoreSnapshot"/>.
3394 </desc>
3395 <param name="initiator" type="IConsole" dir="in">
3396 <desc>The console object that initiated this call.</desc>
3397 </param>
3398 <param name="snapshot" type="ISnapshot" dir="in">
3399 <desc>The snapshot to restore the VM state from.</desc>
3400 </param>
3401 <param name="machineState" type="MachineState" dir="out">
3402 <desc>New machine state after this operation is started.</desc>
3403 </param>
3404 <param name="progress" type="IProgress" dir="return">
3405 <desc>Progress object to track the operation completion.</desc>
3406 </param>
3407 </method>
3408
3409 <method name="pullGuestProperties">
3410 <desc>
3411 Get the list of the guest properties matching a set of patterns along
3412 with their values, time stamps and flags and give responsibility for
3413 managing properties to the console.
3414 </desc>
3415 <param name="name" type="wstring" dir="out" safearray="yes">
3416 <desc>
3417 The names of the properties returned.
3418 </desc>
3419 </param>
3420 <param name="value" type="wstring" dir="out" safearray="yes">
3421 <desc>
3422 The values of the properties returned. The array entries match the
3423 corresponding entries in the @a name array.
3424 </desc>
3425 </param>
3426 <param name="timestamp" type="long long" dir="out" safearray="yes">
3427 <desc>
3428 The time stamps of the properties returned. The array entries match
3429 the corresponding entries in the @a name array.
3430 </desc>
3431 </param>
3432 <param name="flags" type="wstring" dir="out" safearray="yes">
3433 <desc>
3434 The flags of the properties returned. The array entries match the
3435 corresponding entries in the @a name array.
3436 </desc>
3437 </param>
3438 </method>
3439
3440 <method name="pushGuestProperty">
3441 <desc>
3442 Update a single guest property in IMachine.
3443 </desc>
3444 <param name="name" type="wstring" dir="in">
3445 <desc>
3446 The name of the property to be updated.
3447 </desc>
3448 </param>
3449 <param name="value" type="wstring" dir="in">
3450 <desc>
3451 The value of the property.
3452 </desc>
3453 </param>
3454 <param name="timestamp" type="long long" dir="in">
3455 <desc>
3456 The timestamp of the property.
3457 </desc>
3458 </param>
3459 <param name="flags" type="wstring" dir="in">
3460 <desc>
3461 The flags of the property.
3462 </desc>
3463 </param>
3464 </method>
3465
3466 <method name="lockMedia">
3467 <desc>
3468 Locks all media attached to the machine for writing and parents of
3469 attached differencing media (if any) for reading. This operation is
3470 atomic so that if it fails no media is actually locked.
3471
3472 This method is intended to be called when the machine is in Starting or
3473 Restoring state. The locked media will be automatically unlocked when
3474 the machine is powered off or crashed.
3475 </desc>
3476 </method>
3477 <method name="unlockMedia">
3478 <desc>
3479 Unlocks all media previously locked using
3480 <link to="IInternalMachineControl::lockMedia"/>.
3481
3482 This method is intended to be used with teleportation so that it is
3483 possible to teleport between processes on the same machine.
3484 </desc>
3485 </method>
3486
3487 <method name="ejectMedium">
3488 <desc>
3489 Tells VBoxSVC that the guest has ejected the medium associated with
3490 the medium attachment.
3491 </desc>
3492 <param name="attachment" type="IMediumAttachment" dir="in">
3493 <desc>
3494 The medium attachment where the eject happened.
3495 </desc>
3496 </param>
3497 <param name="newAttachment" type="IMediumAttachment" dir="return">
3498 <desc>
3499 A new reference to the medium attachment, as the config change can
3500 result in the creation of a new instance.
3501 </desc>
3502 </param>
3503 </method>
3504
3505 <method name="reportGuestStatistics">
3506 <desc>
3507 Passes collected guest statistics to VBoxSVC.
3508 </desc>
3509 <param name="validStats" type="unsigned long" dir="in">
3510 <desc>
3511 Mask defining which parameters are valid. For example: 0x11 means
3512 that cpuIdle and XXX are valid. Other parameters should be ignored.
3513 </desc>
3514 </param>
3515 <param name="cpuUser" type="unsigned long" dir="in">
3516 <desc>Percentage of processor time spent in user mode as seen by the guest.</desc>
3517 </param>
3518 <param name="cpuKernel" type="unsigned long" dir="in">
3519 <desc>Percentage of processor time spent in kernel mode as seen by the guest.</desc>
3520 </param>
3521 <param name="cpuIdle" type="unsigned long" dir="in">
3522 <desc>Percentage of processor time spent idling as seen by the guest.</desc>
3523 </param>
3524 <param name="memTotal" type="unsigned long" dir="in">
3525 <desc>Total amount of physical guest RAM.</desc>
3526 </param>
3527 <param name="memFree" type="unsigned long" dir="in">
3528 <desc>Free amount of physical guest RAM.</desc>
3529 </param>
3530 <param name="memBalloon" type="unsigned long" dir="in">
3531 <desc>Amount of ballooned physical guest RAM.</desc>
3532 </param>
3533 <param name="memShared" type="unsigned long" dir="in">
3534 <desc>Amount of shared physical guest RAM.</desc>
3535 </param>
3536 <param name="memCache" type="unsigned long" dir="in">
3537 <desc>Total amount of guest (disk) cache memory.</desc>
3538 </param>
3539 <param name="pagedTotal" type="unsigned long" dir="in">
3540 <desc>Total amount of space in the page file.</desc>
3541 </param>
3542 <param name="memAllocTotal" type="unsigned long" dir="in">
3543 <desc>Total amount of memory allocated by the hypervisor.</desc>
3544 </param>
3545 <param name="memFreeTotal" type="unsigned long" dir="in">
3546 <desc>Total amount of free memory available in the hypervisor.</desc>
3547 </param>
3548 <param name="memBalloonTotal" type="unsigned long" dir="in">
3549 <desc>Total amount of memory ballooned by the hypervisor.</desc>
3550 </param>
3551 <param name="memSharedTotal" type="unsigned long" dir="in">
3552 <desc>Total amount of shared memory in the hypervisor.</desc>
3553 </param>
3554 </method>
3555 </interface>
3556
3557 <interface
3558 name="IBIOSSettings" extends="$unknown"
3559 uuid="38b54279-dc35-4f5e-a431-835b867c6b5e"
3560 wsmap="managed"
3561 >
3562 <desc>
3563 The IBIOSSettings interface represents BIOS settings of the virtual
3564 machine. This is used only in the <link to="IMachine::BIOSSettings" /> attribute.
3565 </desc>
3566 <attribute name="logoFadeIn" type="boolean">
3567 <desc>Fade in flag for BIOS logo animation.</desc>
3568 </attribute>
3569
3570 <attribute name="logoFadeOut" type="boolean">
3571 <desc>Fade out flag for BIOS logo animation.</desc>
3572 </attribute>
3573
3574 <attribute name="logoDisplayTime" type="unsigned long">
3575 <desc>BIOS logo display time in milliseconds (0 = default).</desc>
3576 </attribute>
3577
3578 <attribute name="logoImagePath" type="wstring">
3579 <desc>
3580 Local file system path for external BIOS splash image. Empty string
3581 means the default image is shown on boot.
3582 </desc>
3583 </attribute>
3584
3585 <attribute name="bootMenuMode" type="BIOSBootMenuMode">
3586 <desc>Mode of the BIOS boot device menu.</desc>
3587 </attribute>
3588
3589 <attribute name="ACPIEnabled" type="boolean">
3590 <desc>ACPI support flag.</desc>
3591 </attribute>
3592
3593 <attribute name="IOAPICEnabled" type="boolean">
3594 <desc>
3595 IO APIC support flag. If set, VirtualBox will provide an IO APIC
3596 and support IRQs above 15.
3597 </desc>
3598 </attribute>
3599
3600 <attribute name="timeOffset" type="long long">
3601 <desc>
3602 Offset in milliseconds from the host system time. This allows for
3603 guests running with a different system date/time than the host.
3604 It is equivalent to setting the system date/time in the BIOS except
3605 it is not an absolute value but a relative one. Guest Additions
3606 time synchronization honors this offset.
3607 </desc>
3608 </attribute>
3609
3610 <attribute name="PXEDebugEnabled" type="boolean">
3611 <desc>
3612 PXE debug logging flag. If set, VirtualBox will write extensive
3613 PXE trace information to the release log.
3614 </desc>
3615 </attribute>
3616 </interface>
3617
3618 <enum
3619 name="CleanupMode"
3620 uuid="67897c50-7cca-47a9-83f6-ce8fd8eb5441"
3621 >
3622 <desc>Cleanup mode, used with <link to="IMachine::unregister" />.
3623 </desc>
3624 <const name="UnregisterOnly" value="1">
3625 <desc>Unregister only the machine, but neither delete snapshots nor detach media.</desc>
3626 </const>
3627 <const name="DetachAllReturnNone" value="2">
3628 <desc>Delete all snapshots and detach all media but return none; this will keep all media registered.</desc>
3629 </const>
3630 <const name="DetachAllReturnHardDisksOnly" value="3">
3631 <desc>Delete all snapshots, detach all media and return hard disks for closing, but not removable media.</desc>
3632 </const>
3633 <const name="Full" value="4">
3634 <desc>Delete all snapshots, detach all media and return all media for closing.</desc>
3635 </const>
3636 </enum>
3637
3638 <interface
3639 name="IPCIAddress" extends="$unknown"
3640 uuid="D88B324F-DB19-4D3B-A1A9-BF5B127199A8"
3641 wsmap="struct"
3642 >
3643
3644 <desc>
3645 Address on the PCI bus.
3646 </desc>
3647
3648 <attribute name="bus" type="short">
3649 <desc>
3650 Bus number.
3651 </desc>
3652 </attribute>
3653
3654 <attribute name="device" type="short">
3655 <desc>
3656 Device number.
3657 </desc>
3658 </attribute>
3659
3660 <attribute name="devFunction" type="short">
3661 <desc>
3662 Device function number.
3663 </desc>
3664 </attribute>
3665
3666 <method name="asLong">
3667 <desc>
3668 Convert PCI address into long.
3669 </desc>
3670 <param name="result" type="long" dir="return" />
3671 </method>
3672
3673 <method name="fromLong">
3674 <desc>
3675 Make PCI address from long.
3676 </desc>
3677 <param name="number" type="long" dir="in" />
3678 </method>
3679 </interface>
3680
3681 <interface
3682 name="IPCIDeviceAttachment" extends="$unknown"
3683 uuid="91f33d6f-e621-4f70-a77e-15f0e3c714d5"
3684 wsmap="struct"
3685 >
3686
3687 <desc>
3688 Information about PCI attachments.
3689 </desc>
3690
3691 <attribute name="name" type="wstring" readonly="yes">
3692 <desc>
3693 Device name.
3694 </desc>
3695 </attribute>
3696
3697 <attribute name="isPhysicalDevice" type="boolean" readonly="yes">
3698 <desc>
3699 If this is physical or virtual device.
3700 </desc>
3701 </attribute>
3702
3703 <attribute name="hostAddress" type="long" readonly="yes">
3704 <desc>
3705 Address of device on the host, applicable only to host devices.
3706 </desc>
3707 </attribute>
3708
3709 <attribute name="guestAddress" type="long" readonly="yes">
3710 <desc>
3711 Address of device on the guest.
3712 </desc>
3713 </attribute>
3714
3715 </interface>
3716
3717 <enum
3718 name="CloneMode" extends="$unknown"
3719 uuid="A7A159FE-5096-4B8D-8C3C-D033CB0B35A8"
3720 >
3721
3722 <desc>
3723 Clone mode, used with <link to="IMachine::cloneTo" />.
3724 </desc>
3725
3726 <const name="MachineState" value="1">
3727 <desc>Clone the state of the selected machine.</desc>
3728 </const>
3729 <const name="MachineAndChildStates" value="2">
3730 <desc>Clone the state of the selected machine and its child snapshots if present.</desc>
3731 </const>
3732 <const name="AllStates" value="3">
3733 <desc>Clone all states (including all snapshots) of the machine, regardless of the machine object used.</desc>
3734 </const>
3735
3736 </enum>
3737
3738 <enum
3739 name="CloneOptions" extends="$unknown"
3740 uuid="22243f8e-96ab-497c-8cf0-f40a566c630b"
3741 >
3742
3743 <desc>
3744 Clone options, used with <link to="IMachine::cloneTo" />.
3745 </desc>
3746
3747 <const name="Link" value="1">
3748 <desc>Create a clone VM where all virtual disks are linked to the original VM.</desc>
3749 </const>
3750 <const name="KeepAllMACs" value="2">
3751 <desc>Don't generate new MAC addresses of the attached network adapters.</desc>
3752 </const>
3753 <const name="KeepNATMACs" value="3">
3754 <desc>Don't generate new MAC addresses of the attached network adapters when they are using NAT.</desc>
3755 </const>
3756 <const name="KeepDiskNames" value="4">
3757 <desc>Don't change the disk names.</desc>
3758 </const>
3759
3760 </enum>
3761
3762 <enum
3763 name="AutostopType" extends="$unknown"
3764 uuid="6bb96740-cf34-470d-aab2-2cd48ea2e10e"
3765 >
3766
3767 <desc>
3768 Autostop types, used with <link to="IMachine::autostopType" />.
3769 </desc>
3770
3771 <const name="Disabled" value="1">
3772 <desc>Stopping the VM during system shutdown is disabled.</desc>
3773 </const>
3774 <const name="SaveState" value="2">
3775 <desc>The state of the VM will be saved when the system shuts down.</desc>
3776 </const>
3777 <const name="PowerOff" value="3">
3778 <desc>The VM is powered off when the system shuts down.</desc>
3779 </const>
3780 <const name="AcpiShutdown" value="4">
3781 <desc>An ACPI shutdown event is generated.</desc>
3782 </const>
3783
3784 </enum>
3785
3786
3787 <interface
3788 name="IMachine" extends="$unknown"
3789 uuid="22781af3-1c96-4126-9edf-67a020e0e858"
3790 wsmap="managed"
3791 >
3792 <desc>
3793 The IMachine interface represents a virtual machine, or guest, created
3794 in VirtualBox.
3795
3796 This interface is used in two contexts. First of all, a collection of
3797 objects implementing this interface is stored in the
3798 <link to="IVirtualBox::machines"/> attribute which lists all the virtual
3799 machines that are currently registered with this VirtualBox
3800 installation. Also, once a session has been opened for the given virtual
3801 machine (e.g. the virtual machine is running), the machine object
3802 associated with the open session can be queried from the session object;
3803 see <link to="ISession"/> for details.
3804
3805 The main role of this interface is to expose the settings of the virtual
3806 machine and provide methods to change various aspects of the virtual
3807 machine's configuration. For machine objects stored in the
3808 <link to="IVirtualBox::machines"/> collection, all attributes are
3809 read-only unless explicitly stated otherwise in individual attribute
3810 and method descriptions.
3811
3812 In order to change a machine setting, a session for this machine must be
3813 opened using one of the <link to="IMachine::lockMachine" /> or
3814 <link to="IMachine::launchVMProcess"/> methods. After the
3815 machine has been successfully locked for a session, a mutable machine object
3816 needs to be queried from the session object and then the desired settings
3817 changes can be applied to the returned object using IMachine attributes and
3818 methods. See the <link to="ISession"/> interface description for more
3819 information about sessions.
3820
3821 Note that IMachine does not provide methods to control virtual machine
3822 execution (such as start the machine, or power it down) -- these methods
3823 are grouped in a separate interface called <link to="IConsole" />.
3824
3825 <see><link to="ISession"/>, <link to="IConsole"/></see>
3826 </desc>
3827
3828 <attribute name="parent" type="IVirtualBox" readonly="yes">
3829 <desc>Associated parent object.</desc>
3830 </attribute>
3831
3832 <attribute name="accessible" type="boolean" readonly="yes">
3833 <desc>
3834 Whether this virtual machine is currently accessible or not.
3835
3836 A machine is always deemed accessible unless it is registered <i>and</i>
3837 its settings file cannot be read or parsed (either because the file itself
3838 is unavailable or has invalid XML contents).
3839
3840 Every time this property is read, the accessibility state of
3841 this machine is re-evaluated. If the returned value is @c false,
3842 the <link to="#accessError"/> property may be used to get the
3843 detailed error information describing the reason of
3844 inaccessibility, including XML error messages.
3845
3846 When the machine is inaccessible, only the following properties
3847 can be used on it:
3848 <ul>
3849 <li><link to="#parent"/></li>
3850 <li><link to="#id"/></li>
3851 <li><link to="#settingsFilePath"/></li>
3852 <li><link to="#accessible"/></li>
3853 <li><link to="#accessError"/></li>
3854 </ul>
3855
3856 An attempt to access any other property or method will return
3857 an error.
3858
3859 The only possible action you can perform on an inaccessible
3860 machine is to unregister it using the
3861 <link to="IMachine::unregister"/> call (or, to check
3862 for the accessibility state once more by querying this
3863 property).
3864
3865 <note>
3866 In the current implementation, once this property returns
3867 @c true, the machine will never become inaccessible
3868 later, even if its settings file cannot be successfully
3869 read/written any more (at least, until the VirtualBox
3870 server is restarted). This limitation may be removed in
3871 future releases.
3872 </note>
3873 </desc>
3874 </attribute>
3875
3876 <attribute name="accessError" type="IVirtualBoxErrorInfo" readonly="yes">
3877 <desc>
3878 Error information describing the reason of machine
3879 inaccessibility.
3880
3881 Reading this property is only valid after the last call to
3882 <link to="#accessible"/> returned @c false (i.e. the
3883 machine is currently inaccessible). Otherwise, a @c null
3884 IVirtualBoxErrorInfo object will be returned.
3885 </desc>
3886 </attribute>
3887
3888 <attribute name="name" type="wstring">
3889 <desc>
3890 Name of the virtual machine.
3891
3892 Besides being used for human-readable identification purposes
3893 everywhere in VirtualBox, the virtual machine name is also used
3894 as a name of the machine's settings file and as a name of the
3895 subdirectory this settings file resides in. Thus, every time you
3896 change the value of this property, the settings file will be
3897 renamed once you call <link to="#saveSettings"/> to confirm the
3898 change. The containing subdirectory will be also renamed, but
3899 only if it has exactly the same name as the settings file
3900 itself prior to changing this property (for backward compatibility
3901 with previous API releases). The above implies the following
3902 limitations:
3903 <ul>
3904 <li>The machine name cannot be empty.</li>
3905 <li>The machine name can contain only characters that are valid
3906 file name characters according to the rules of the file
3907 system used to store VirtualBox configuration.</li>
3908 <li>You cannot have two or more machines with the same name
3909 if they use the same subdirectory for storing the machine
3910 settings files.</li>
3911 <li>You cannot change the name of the machine if it is running,
3912 or if any file in the directory containing the settings file
3913 is being used by another running machine or by any other
3914 process in the host operating system at a time when
3915 <link to="#saveSettings"/> is called.
3916 </li>
3917 </ul>
3918 If any of the above limitations are hit, <link to="#saveSettings"/>
3919 will return an appropriate error message explaining the exact
3920 reason and the changes you made to this machine will not be saved.
3921
3922 Starting with VirtualBox 4.0, a ".vbox" extension of the settings
3923 file is recommended, but not enforced. (Previous versions always
3924 used a generic ".xml" extension.)
3925 </desc>
3926 </attribute>
3927
3928 <attribute name="description" type="wstring">
3929 <desc>
3930 Description of the virtual machine.
3931
3932 The description attribute can contain any text and is
3933 typically used to describe the hardware and software
3934 configuration of the virtual machine in detail (i.e. network
3935 settings, versions of the installed software and so on).
3936 </desc>
3937 </attribute>
3938
3939 <attribute name="id" type="uuid" mod="string" readonly="yes">
3940 <desc>UUID of the virtual machine.</desc>
3941 </attribute>
3942
3943 <attribute name="groups" type="wstring" safearray="yes">
3944 <desc>
3945 Array of machine group names of which this machine is a member.
3946 <tt>""</tt> and <tt>"/"</tt> are synonyms for the toplevel group. Each
3947 group is only listed once, however they are listed in no particular
3948 order and there is no guarantee that there are no gaps in the group
3949 hierarchy (i.e. <tt>"/group"</tt>,
3950 <tt>"/group/subgroup/subsubgroup"</tt> is a valid result).
3951 </desc>
3952 </attribute>
3953
3954 <attribute name="OSTypeId" type="wstring">
3955 <desc>
3956 User-defined identifier of the Guest OS type.
3957 You may use <link to="IVirtualBox::getGuestOSType"/> to obtain
3958 an IGuestOSType object representing details about the given
3959 Guest OS type.
3960 <note>
3961 This value may differ from the value returned by
3962 <link to="IGuest::OSTypeId"/> if Guest Additions are
3963 installed to the guest OS.
3964 </note>
3965 </desc>
3966 </attribute>
3967
3968 <attribute name="hardwareVersion" type="wstring">
3969 <desc>Hardware version identifier. Internal use only for now.</desc>
3970 </attribute>
3971
3972 <attribute name="hardwareUUID" type="uuid" mod="string">
3973 <desc>
3974 The UUID presented to the guest via memory tables, hardware and guest
3975 properties. For most VMs this is the same as the @a id, but for VMs
3976 which have been cloned or teleported it may be the same as the source
3977 VM. The latter is because the guest shouldn't notice that it was
3978 cloned or teleported.
3979 </desc>
3980 </attribute>
3981
3982 <attribute name="CPUCount" type="unsigned long">
3983 <desc>Number of virtual CPUs in the VM.</desc>
3984 </attribute>
3985
3986 <attribute name="CPUHotPlugEnabled" type="boolean">
3987 <desc>
3988 This setting determines whether VirtualBox allows CPU
3989 hotplugging for this machine.</desc>
3990 </attribute>
3991
3992 <attribute name="CPUExecutionCap" type="unsigned long">
3993 <desc>
3994 Means to limit the number of CPU cycles a guest can use. The unit
3995 is percentage of host CPU cycles per second. The valid range
3996 is 1 - 100. 100 (the default) implies no limit.
3997 </desc>
3998 </attribute>
3999
4000 <attribute name="memorySize" type="unsigned long">
4001 <desc>System memory size in megabytes.</desc>
4002 </attribute>
4003
4004 <attribute name="memoryBalloonSize" type="unsigned long">
4005 <desc>Memory balloon size in megabytes.</desc>
4006 </attribute>
4007
4008 <attribute name="pageFusionEnabled" type="boolean">
4009 <desc>
4010 This setting determines whether VirtualBox allows page
4011 fusion for this machine (64 bits host only).
4012 </desc>
4013 </attribute>
4014
4015 <attribute name="VRAMSize" type="unsigned long">
4016 <desc>Video memory size in megabytes.</desc>
4017 </attribute>
4018
4019 <attribute name="accelerate3DEnabled" type="boolean" default="false">
4020 <desc>
4021 This setting determines whether VirtualBox allows this machine to make
4022 use of the 3D graphics support available on the host.</desc>
4023 </attribute>
4024
4025 <attribute name="accelerate2DVideoEnabled" type="boolean" default="false">
4026 <desc>
4027 This setting determines whether VirtualBox allows this machine to make
4028 use of the 2D video acceleration support available on the host.</desc>
4029 </attribute>
4030
4031 <attribute name="monitorCount" type="unsigned long">
4032 <desc>
4033 Number of virtual monitors.
4034 <note>
4035 Only effective on Windows XP and later guests with
4036 Guest Additions installed.
4037 </note>
4038 </desc>
4039 </attribute>
4040
4041 <attribute name="VideoCaptureEnabled" type="boolean" default="false">
4042 <desc>
4043 This setting determines whether VirtualBox uses video recording to
4044 record VM session.</desc>
4045 </attribute>
4046
4047 <attribute name="VideoCaptureFile" type="wstring" default="Test.webm">
4048 <desc>
4049 This setting determines what filename VirtualBox uses to save
4050 the recorded content.</desc>
4051 </attribute>
4052
4053 <attribute name="VideoCaptureWidth" type="unsigned long" default="640">
4054 <desc>
4055 This setting determines what should be the horizontal resolution of
4056 recorded video.</desc>
4057 </attribute>
4058
4059 <attribute name="VideoCaptureHeight" type="unsigned long" default="480">
4060 <desc>
4061 This setting determines what should be the vertical resolution
4062 of recorded video.</desc>
4063 </attribute>
4064
4065 <attribute name="BIOSSettings" type="IBIOSSettings" readonly="yes">
4066 <desc>Object containing all BIOS settings.</desc>
4067 </attribute>
4068
4069 <attribute name="firmwareType" type="FirmwareType">
4070 <desc>Type of firmware (such as legacy BIOS or EFI), used for initial
4071 bootstrap in this VM.</desc>
4072 </attribute>
4073
4074 <attribute name="pointingHIDType" type="PointingHIDType">
4075 <desc>Type of pointing HID (such as mouse or tablet) used in this VM.
4076 The default is typically "PS2Mouse" but can vary depending on the
4077 requirements of the guest operating system.</desc>
4078 </attribute>
4079
4080 <attribute name="keyboardHIDType" type="KeyboardHIDType">
4081 <desc>Type of keyboard HID used in this VM.
4082 The default is typically "PS2Keyboard" but can vary depending on the
4083 requirements of the guest operating system.</desc>
4084 </attribute>
4085
4086 <attribute name="HPETEnabled" type="boolean">
4087 <desc>This attribute controls if High Precision Event Timer (HPET) is
4088 enabled in this VM. Use this property if you want to provide guests
4089 with additional time source, or if guest requires HPET to function correctly.
4090 Default is false.</desc>
4091 </attribute>
4092
4093 <attribute name="chipsetType" type="ChipsetType">
4094 <desc>Chipset type used in this VM.</desc>
4095 </attribute>
4096
4097 <attribute name="snapshotFolder" type="wstring">
4098 <desc>
4099 Full path to the directory used to store snapshot data
4100 (differencing media and saved state files) of this machine.
4101
4102 The initial value of this property is
4103 <tt>&lt;</tt><link to="#settingsFilePath">
4104 path_to_settings_file</link><tt>&gt;/&lt;</tt>
4105 <link to="#id">machine_uuid</link>
4106 <tt>&gt;</tt>.
4107
4108 Currently, it is an error to try to change this property on
4109 a machine that has snapshots (because this would require to
4110 move possibly large files to a different location).
4111 A separate method will be available for this purpose later.
4112
4113 <note>
4114 Setting this property to @c null or to an empty string will restore
4115 the initial value.
4116 </note>
4117 <note>
4118 When setting this property, the specified path can be
4119 absolute (full path) or relative to the directory where the
4120 <link to="#settingsFilePath">machine settings file</link>
4121 is located. When reading this property, a full path is
4122 always returned.
4123 </note>
4124 <note>
4125 The specified path may not exist, it will be created
4126 when necessary.
4127 </note>
4128 </desc>
4129 </attribute>
4130
4131 <attribute name="VRDEServer" type="IVRDEServer" readonly="yes">
4132 <desc>VirtualBox Remote Desktop Extension (VRDE) server object.</desc>
4133 </attribute>
4134
4135 <attribute name="emulatedUSBWebcameraEnabled" type="boolean" default="false"/>
4136 <attribute name="emulatedUSBCardReaderEnabled" type="boolean" default="false"/>
4137
4138 <attribute name="mediumAttachments" type="IMediumAttachment" readonly="yes" safearray="yes">
4139 <desc>Array of media attached to this machine.</desc>
4140 </attribute>
4141
4142 <attribute name="USBController" type="IUSBController" readonly="yes">
4143 <desc>
4144 Associated USB controller object.
4145
4146 <note>
4147 If USB functionality is not available in the given edition of
4148 VirtualBox, this method will set the result code to @c E_NOTIMPL.
4149 </note>
4150 </desc>
4151 </attribute>
4152
4153 <attribute name="audioAdapter" type="IAudioAdapter" readonly="yes">
4154 <desc>Associated audio adapter, always present.</desc>
4155 </attribute>
4156
4157 <attribute name="storageControllers" type="IStorageController" readonly="yes" safearray="yes">
4158 <desc>Array of storage controllers attached to this machine.</desc>
4159 </attribute>
4160
4161 <attribute name="settingsFilePath" type="wstring" readonly="yes">
4162 <desc>
4163 Full name of the file containing machine settings data.
4164 </desc>
4165 </attribute>
4166
4167 <attribute name="settingsModified" type="boolean" readonly="yes">
4168 <desc>
4169 Whether the settings of this machine have been modified
4170 (but neither yet saved nor discarded).
4171 <note>
4172 Reading this property is only valid on instances returned
4173 by <link to="ISession::machine"/> and on new machines
4174 created by <link to="IVirtualBox::createMachine"/> or opened
4175 by <link to="IVirtualBox::openMachine"/> but not
4176 yet registered, or on unregistered machines after calling
4177 <link to="IMachine::unregister"/>. For all other
4178 cases, the settings can never be modified.
4179 </note>
4180 <note>
4181 For newly created unregistered machines, the value of this
4182 property is always @c true until <link to="#saveSettings"/>
4183 is called (no matter if any machine settings have been
4184 changed after the creation or not). For opened machines
4185 the value is set to @c false (and then follows to normal rules).
4186 </note>
4187 </desc>
4188 </attribute>
4189
4190 <attribute name="sessionState" type="SessionState" readonly="yes">
4191 <desc>Current session state for this machine.</desc>
4192 </attribute>
4193
4194 <attribute name="sessionType" type="wstring" readonly="yes">
4195 <desc>
4196 Type of the session. If <link to="#sessionState"/> is
4197 Spawning or Locked, this attribute contains the
4198 same value as passed to the
4199 <link to="IMachine::launchVMProcess"/> method in the
4200 @a type parameter. If the session was used with
4201 <link to="IMachine::lockMachine" />, or if
4202 <link to="#sessionState"/> is SessionClosed, the value of this
4203 attribute is an empty string.
4204 </desc>
4205 </attribute>
4206
4207 <attribute name="sessionPID" type="unsigned long" readonly="yes">
4208 <desc>
4209 Identifier of the session process. This attribute contains the
4210 platform-dependent identifier of the process whose session was
4211 used with <link to="IMachine::lockMachine" /> call. The returned
4212 value is only valid if <link to="#sessionState"/> is Locked or
4213 Unlocking by the time this property is read.
4214 </desc>
4215 </attribute>
4216
4217 <attribute name="state" type="MachineState" readonly="yes">
4218 <desc>Current execution state of this machine.</desc>
4219 </attribute>
4220
4221 <attribute name="lastStateChange" type="long long" readonly="yes">
4222 <desc>
4223 Time stamp of the last execution state change,
4224 in milliseconds since 1970-01-01 UTC.
4225 </desc>
4226 </attribute>
4227
4228 <attribute name="stateFilePath" type="wstring" readonly="yes">
4229 <desc>
4230 Full path to the file that stores the execution state of
4231 the machine when it is in the <link to="MachineState_Saved"/> state.
4232 <note>
4233 When the machine is not in the Saved state, this attribute is
4234 an empty string.
4235 </note>
4236 </desc>
4237 </attribute>
4238
4239 <attribute name="logFolder" type="wstring" readonly="yes">
4240 <desc>
4241 Full path to the folder that stores a set of rotated log files
4242 recorded during machine execution. The most recent log file is
4243 named <tt>VBox.log</tt>, the previous log file is
4244 named <tt>VBox.log.1</tt> and so on (up to <tt>VBox.log.3</tt>
4245 in the current version).
4246 </desc>
4247 </attribute>
4248
4249 <attribute name="currentSnapshot" type="ISnapshot" readonly="yes">
4250 <desc>
4251 Current snapshot of this machine. This is @c null if the machine
4252 currently has no snapshots. If it is not @c null, then it was
4253 set by one of <link to="IConsole::takeSnapshot" />,
4254 <link to="IConsole::deleteSnapshot" />
4255 or <link to="IConsole::restoreSnapshot" />, depending on which
4256 was called last. See <link to="ISnapshot"/> for details.
4257 </desc>
4258 </attribute>
4259
4260 <attribute name="snapshotCount" type="unsigned long" readonly="yes">
4261 <desc>
4262 Number of snapshots taken on this machine. Zero means the
4263 machine doesn't have any snapshots.
4264 </desc>
4265 </attribute>
4266
4267 <attribute name="currentStateModified" type="boolean" readonly="yes">
4268 <desc>
4269 Returns @c true if the current state of the machine is not
4270 identical to the state stored in the current snapshot.
4271
4272 The current state is identical to the current snapshot only
4273 directly after one of the following calls are made:
4274
4275 <ul>
4276 <li><link to="IConsole::restoreSnapshot"/>
4277 </li>
4278 <li><link to="IConsole::takeSnapshot"/> (issued on a
4279 "powered off" or "saved" machine, for which
4280 <link to="#settingsModified"/> returns @c false)
4281 </li>
4282 </ul>
4283
4284 The current state remains identical until one of the following
4285 happens:
4286 <ul>
4287 <li>settings of the machine are changed</li>
4288 <li>the saved state is deleted</li>
4289 <li>the current snapshot is deleted</li>
4290 <li>an attempt to execute the machine is made</li>
4291 </ul>
4292
4293 <note>
4294 For machines that don't have snapshots, this property is
4295 always @c false.
4296 </note>
4297 </desc>
4298 </attribute>
4299
4300 <attribute name="sharedFolders" type="ISharedFolder" readonly="yes" safearray="yes">
4301 <desc>
4302 Collection of shared folders for this machine (permanent shared
4303 folders). These folders are shared automatically at machine startup
4304 and available only to the guest OS installed within this machine.
4305
4306 New shared folders are added to the collection using
4307 <link to="#createSharedFolder"/>. Existing shared folders can be
4308 removed using <link to="#removeSharedFolder"/>.
4309 </desc>
4310 </attribute>
4311
4312 <attribute name="clipboardMode" type="ClipboardMode">
4313 <desc>
4314 Synchronization mode between the host OS clipboard
4315 and the guest OS clipboard.
4316 </desc>
4317 </attribute>
4318
4319 <attribute name="dragAndDropMode" type="DragAndDropMode">
4320 <desc>
4321 Which mode is allowed for drag'n'drop.
4322 </desc>
4323 </attribute>
4324
4325 <attribute name="guestPropertyNotificationPatterns" type="wstring">
4326 <desc>
4327 A comma-separated list of simple glob patterns. Changes to guest
4328 properties whose name matches one of the patterns will generate an
4329 <link to="IGuestPropertyChangedEvent"/> signal.
4330 </desc>
4331 </attribute>
4332
4333 <attribute name="teleporterEnabled" type="boolean">
4334 <desc>
4335 When set to @a true, the virtual machine becomes a target teleporter
4336 the next time it is powered on. This can only set to @a true when the
4337 VM is in the @a PoweredOff or @a Aborted state.
4338
4339 <!-- This property is automatically set to @a false when the VM is powered
4340 on. (bird: This doesn't work yet ) -->
4341 </desc>
4342 </attribute>
4343
4344 <attribute name="teleporterPort" type="unsigned long">
4345 <desc>
4346 The TCP port the target teleporter will listen for incoming
4347 teleportations on.
4348
4349 0 means the port is automatically selected upon power on. The actual
4350 value can be read from this property while the machine is waiting for
4351 incoming teleportations.
4352 </desc>
4353 </attribute>
4354
4355 <attribute name="teleporterAddress" type="wstring">
4356 <desc>
4357 The address the target teleporter will listen on. If set to an empty
4358 string, it will listen on all addresses.
4359 </desc>
4360 </attribute>
4361
4362 <attribute name="teleporterPassword" type="wstring">
4363 <desc>
4364 The password to check for on the target teleporter. This is just a
4365 very basic measure to prevent simple hacks and operators accidentally
4366 beaming a virtual machine to the wrong place.
4367
4368 Note that you SET a plain text password while reading back a HASHED
4369 password. Setting a hashed password is currently not supported.
4370 </desc>
4371 </attribute>
4372
4373 <attribute name="faultToleranceState" type="FaultToleranceState">
4374 <desc>
4375 Fault tolerance state; disabled, source or target.
4376 This property can be changed at any time. If you change it for a running
4377 VM, then the fault tolerance address and port must be set beforehand.
4378 </desc>
4379 </attribute>
4380
4381 <attribute name="faultTolerancePort" type="unsigned long">
4382 <desc>
4383 The TCP port the fault tolerance source or target will use for
4384 communication.
4385 </desc>
4386 </attribute>
4387
4388 <attribute name="faultToleranceAddress" type="wstring">
4389 <desc>
4390 The address the fault tolerance source or target.
4391 </desc>
4392 </attribute>
4393
4394 <attribute name="faultTolerancePassword" type="wstring">
4395 <desc>
4396 The password to check for on the standby VM. This is just a
4397 very basic measure to prevent simple hacks and operators accidentally
4398 choosing the wrong standby VM.
4399 </desc>
4400 </attribute>
4401
4402 <attribute name="faultToleranceSyncInterval" type="unsigned long">
4403 <desc>
4404 The interval in ms used for syncing the state between source and target.
4405 </desc>
4406 </attribute>
4407
4408 <attribute name="RTCUseUTC" type="boolean">
4409 <desc>
4410 When set to @a true, the RTC device of the virtual machine will run
4411 in UTC time, otherwise in local time. Especially Unix guests prefer
4412 the time in UTC.
4413 </desc>
4414 </attribute>
4415
4416 <attribute name="IOCacheEnabled" type="boolean">
4417 <desc>
4418 When set to @a true, the builtin I/O cache of the virtual machine
4419 will be enabled.
4420 </desc>
4421 </attribute>
4422
4423 <attribute name="IOCacheSize" type="unsigned long">
4424 <desc>
4425 Maximum size of the I/O cache in MB.
4426 </desc>
4427 </attribute>
4428
4429 <attribute name="PCIDeviceAssignments" type="IPCIDeviceAttachment" readonly="yes" safearray="yes">
4430 <desc>Array of PCI devices assigned to this machine, to get list of all
4431 PCI devices attached to the machine use
4432 <link to="IConsole::attachedPCIDevices"/> attribute, as this attribute
4433 is intended to list only devices additional to what described in
4434 virtual hardware config. Usually, this list keeps host's physical
4435 devices assigned to the particular machine.
4436 </desc>
4437 </attribute>
4438
4439 <attribute name="bandwidthControl" type="IBandwidthControl" readonly="yes">
4440 <desc>
4441 Bandwidth control manager.
4442 </desc>
4443 </attribute>
4444
4445 <attribute name="tracingEnabled" type="boolean">
4446 <desc>
4447 Enables the tracing facility in the VMM (including PDM devices +
4448 drivers). The VMM will consume about 0.5MB of more memory when
4449 enabled and there may be some extra overhead from tracepoints that are
4450 always enabled.
4451 </desc>
4452 </attribute>
4453
4454 <attribute name="tracingConfig" type="wstring">
4455 <desc>
4456 Tracepoint configuration to apply at startup when
4457 <link to="IMachine::tracingEnabled" /> is true. The string specifies
4458 a space separated of tracepoint group names to enable. The special
4459 group 'all' enables all tracepoints. Check DBGFR3TracingConfig for
4460 more details on available tracepoint groups and such.
4461
4462 Note that on hosts supporting DTrace (or similar), a lot of the
4463 tracepoints may be implemented exclusivly as DTrace probes. So, the
4464 effect of the same config may differ between Solaris and Windows for
4465 example.
4466 </desc>
4467 </attribute>
4468
4469 <attribute name="allowTracingToAccessVM" type="boolean">
4470 <desc>
4471 Enables tracepoints in PDM devices and drivers to use the VMCPU or VM
4472 structures when firing off trace points. This is especially useful
4473 with DTrace tracepoints, as it allows you to use the VMCPU or VM
4474 pointer to obtain useful information such as guest register state.
4475
4476 This is disabled by default because devices and drivers normally has no
4477 business accessing the VMCPU or VM structures, and are therefore unable
4478 to get any pointers to these.
4479 </desc>
4480 </attribute>
4481
4482 <attribute name="autostartEnabled" type="boolean">
4483 <desc>
4484 Enables autostart of the VM during system boot.
4485 </desc>
4486 </attribute>
4487
4488 <attribute name="autostartDelay" type="unsigned long">
4489 <desc>
4490 Number of seconds to wait until the VM should be started during system boot.
4491 </desc>
4492 </attribute>
4493
4494 <attribute name="autostopType" type="AutostopType">
4495 <desc>
4496 Action type to do when the system is shutting down.
4497 </desc>
4498 </attribute>
4499
4500 <method name="lockMachine">
4501 <desc>
4502 Locks the machine for the given session to enable the caller
4503 to make changes to the machine or start the VM or control
4504 VM execution.
4505
4506 There are two ways to lock a machine for such uses:
4507
4508 <ul>
4509 <li>If you want to make changes to the machine settings,
4510 you must obtain an exclusive write lock on the machine
4511 by setting @a lockType to @c Write.
4512
4513 This will only succeed if no other process has locked
4514 the machine to prevent conflicting changes. Only after
4515 an exclusive write lock has been obtained using this method, one
4516 can change all VM settings or execute the VM in the process
4517 space of the session object. (Note that the latter is only of
4518 interest if you actually want to write a new front-end for
4519 virtual machines; but this API gets called internally by
4520 the existing front-ends such as VBoxHeadless and the VirtualBox
4521 GUI to acquire a write lock on the machine that they are running.)
4522
4523 On success, write-locking the machine for a session creates
4524 a second copy of the IMachine object. It is this second object
4525 upon which changes can be made; in VirtualBox terminology, the
4526 second copy is "mutable". It is only this second, mutable machine
4527 object upon which you can call methods that change the
4528 machine state. After having called this method, you can
4529 obtain this second, mutable machine object using the
4530 <link to="ISession::machine" /> attribute.
4531 </li>
4532 <li>If you only want to check the machine state or control
4533 machine execution without actually changing machine
4534 settings (e.g. to get access to VM statistics or take
4535 a snapshot or save the machine state), then set the
4536 @a lockType argument to @c Shared.
4537
4538 If no other session has obtained a lock, you will obtain an
4539 exclusive write lock as described above. However, if another
4540 session has already obtained such a lock, then a link to that
4541 existing session will be established which allows you
4542 to control that existing session.
4543
4544 To find out which type of lock was obtained, you can
4545 inspect <link to="ISession::type" />, which will have been
4546 set to either @c WriteLock or @c Shared.
4547 </li>
4548 </ul>
4549
4550 In either case, you can get access to the <link to="IConsole" />
4551 object which controls VM execution.
4552
4553 Also in all of the above cases, one must always call
4554 <link to="ISession::unlockMachine" /> to release the lock on the machine, or
4555 the machine's state will eventually be set to "Aborted".
4556
4557 To change settings on a machine, the following sequence is typically
4558 performed:
4559
4560 <ol>
4561 <li>Call this method to obtain an exclusive write lock for the current session.</li>
4562
4563 <li>Obtain a mutable IMachine object from <link to="ISession::machine" />.</li>
4564
4565 <li>Change the settings of the machine by invoking IMachine methods.</li>
4566
4567 <li>Call <link to="IMachine::saveSettings" />.</li>
4568
4569 <li>Release the write lock by calling <link to="ISession::unlockMachine"/>.</li>
4570 </ol>
4571
4572 <result name="E_UNEXPECTED">
4573 Virtual machine not registered.
4574 </result>
4575 <result name="E_ACCESSDENIED">
4576 Process not started by OpenRemoteSession.
4577 </result>
4578 <result name="VBOX_E_INVALID_OBJECT_STATE">
4579 Session already open or being opened.
4580 </result>
4581 <result name="VBOX_E_VM_ERROR">
4582 Failed to assign machine to session.
4583 </result>
4584 </desc>
4585 <param name="session" type="ISession" dir="in">
4586 <desc>
4587 Session object for which the machine will be locked.
4588 </desc>
4589 </param>
4590 <param name="lockType" type="LockType" dir="in">
4591 <desc>
4592 If set to @c Write, then attempt to acquire an exclusive write lock or fail.
4593 If set to @c Shared, then either acquire an exclusive write lock or establish
4594 a link to an existing session.
4595 </desc>
4596 </param>
4597 </method>
4598
4599 <method name="launchVMProcess">
4600 <desc>
4601 Spawns a new process that will execute the virtual machine and obtains a shared
4602 lock on the machine for the calling session.
4603
4604 If launching the VM succeeds, the new VM process will create its own session
4605 and write-lock the machine for it, preventing conflicting changes from other
4606 processes. If the machine is already locked (because it is already running or
4607 because another session has a write lock), launching the VM process will therefore
4608 fail. Reversely, future attempts to obtain a write lock will also fail while the
4609 machine is running.
4610
4611 The caller's session object remains separate from the session opened by the new
4612 VM process. It receives its own <link to="IConsole" /> object which can be used
4613 to control machine execution, but it cannot be used to change all VM settings
4614 which would be available after a <link to="#lockMachine" /> call.
4615
4616 The caller must eventually release the session's shared lock by calling
4617 <link to="ISession::unlockMachine" /> on the local session object once this call
4618 has returned. However, the session's state (see <link to="ISession::state" />)
4619 will not return to "Unlocked" until the remote session has also unlocked
4620 the machine (i.e. the machine has stopped running).
4621
4622 Launching a VM process can take some time (a new VM is started in a new process,
4623 for which memory and other resources need to be set up). Because of this,
4624 an <link to="IProgress" /> object is returned to allow the caller to wait
4625 for this asynchronous operation to be completed. Until then, the caller's
4626 session object remains in the "Unlocked" state, and its <link to="ISession::machine" />
4627 and <link to="ISession::console" /> attributes cannot be accessed.
4628 It is recommended to use <link to="IProgress::waitForCompletion" /> or
4629 similar calls to wait for completion. Completion is signalled when the VM
4630 is powered on. If launching the VM fails, error messages can be queried
4631 via the progress object, if available.
4632
4633 The progress object will have at least 2 sub-operations. The first
4634 operation covers the period up to the new VM process calls powerUp.
4635 The subsequent operations mirror the <link to="IConsole::powerUp"/>
4636 progress object. Because <link to="IConsole::powerUp"/> may require
4637 some extra sub-operations, the <link to="IProgress::operationCount"/>
4638 may change at the completion of operation.
4639
4640 For details on the teleportation progress operation, see
4641 <link to="IConsole::powerUp"/>.
4642
4643 The @a environment argument is a string containing definitions of
4644 environment variables in the following format:
4645 <pre>
4646 NAME[=VALUE]\n
4647 NAME[=VALUE]\n
4648 ...
4649 </pre>
4650 where <tt>\\n</tt> is the new line character. These environment
4651 variables will be appended to the environment of the VirtualBox server
4652 process. If an environment variable exists both in the server process
4653 and in this list, the value from this list takes precedence over the
4654 server's variable. If the value of the environment variable is
4655 omitted, this variable will be removed from the resulting environment.
4656 If the environment string is @c null or empty, the server environment
4657 is inherited by the started process as is.
4658
4659 <result name="E_UNEXPECTED">
4660 Virtual machine not registered.
4661 </result>
4662 <result name="E_INVALIDARG">
4663 Invalid session type @a type.
4664 </result>
4665 <result name="VBOX_E_OBJECT_NOT_FOUND">
4666 No machine matching @a machineId found.
4667 </result>
4668 <result name="VBOX_E_INVALID_OBJECT_STATE">
4669 Session already open or being opened.
4670 </result>
4671 <result name="VBOX_E_IPRT_ERROR">
4672 Launching process for machine failed.
4673 </result>
4674 <result name="VBOX_E_VM_ERROR">
4675 Failed to assign machine to session.
4676 </result>
4677 </desc>
4678 <param name="session" type="ISession" dir="in">
4679 <desc>
4680 Client session object to which the VM process will be connected (this
4681 must be in "Unlocked" state).
4682 </desc>
4683 </param>
4684 <param name="type" type="wstring" dir="in">
4685 <desc>
4686 Front-end to use for the new VM process. The following are currently supported:
4687 <ul>
4688 <li><tt>"gui"</tt>: VirtualBox Qt GUI front-end</li>
4689 <li><tt>"headless"</tt>: VBoxHeadless (VRDE Server) front-end</li>
4690 <li><tt>"sdl"</tt>: VirtualBox SDL front-end</li>
4691 <li><tt>"emergencystop"</tt>: reserved value, used for aborting
4692 the currently running VM or session owner. In this case the
4693 @a session parameter may be @c null (if it is non-null it isn't
4694 used in any way), and the @a progress return value will be always
4695 @c null. The operation completes immediately.</li>
4696 </ul>
4697 </desc>
4698 </param>
4699 <param name="environment" type="wstring" dir="in">
4700 <desc>
4701 Environment to pass to the VM process.
4702 </desc>
4703 </param>
4704 <param name="progress" type="IProgress" dir="return">
4705 <desc>Progress object to track the operation completion.</desc>
4706 </param>
4707 </method>
4708
4709 <method name="setBootOrder">
4710 <desc>
4711 Puts the given device to the specified position in
4712 the boot order.
4713
4714 To indicate that no device is associated with the given position,
4715 <link to="DeviceType_Null"/> should be used.
4716
4717 @todo setHardDiskBootOrder(), setNetworkBootOrder()
4718
4719 <result name="E_INVALIDARG">
4720 Boot @a position out of range.
4721 </result>
4722 <result name="E_NOTIMPL">
4723 Booting from USB @a device currently not supported.
4724 </result>
4725
4726 </desc>
4727 <param name="position" type="unsigned long" dir="in">
4728 <desc>
4729 Position in the boot order (@c 1 to the total number of
4730 devices the machine can boot from, as returned by
4731 <link to="ISystemProperties::maxBootPosition"/>).
4732 </desc>
4733 </param>
4734 <param name="device" type="DeviceType" dir="in">
4735 <desc>
4736 The type of the device used to boot at the given position.
4737 </desc>
4738 </param>
4739 </method>
4740
4741 <method name="getBootOrder" const="yes">
4742 <desc>
4743 Returns the device type that occupies the specified
4744 position in the boot order.
4745
4746 @todo [remove?]
4747 If the machine can have more than one device of the returned type
4748 (such as hard disks), then a separate method should be used to
4749 retrieve the individual device that occupies the given position.
4750
4751 If here are no devices at the given position, then
4752 <link to="DeviceType_Null"/> is returned.
4753
4754 @todo getHardDiskBootOrder(), getNetworkBootOrder()
4755
4756 <result name="E_INVALIDARG">
4757 Boot @a position out of range.
4758 </result>
4759
4760 </desc>
4761 <param name="position" type="unsigned long" dir="in">
4762 <desc>
4763 Position in the boot order (@c 1 to the total number of
4764 devices the machine can boot from, as returned by
4765 <link to="ISystemProperties::maxBootPosition"/>).
4766 </desc>
4767 </param>
4768 <param name="device" type="DeviceType" dir="return">
4769 <desc>
4770 Device at the given position.
4771 </desc>
4772 </param>
4773 </method>
4774
4775 <method name="attachDevice">
4776 <desc>
4777 Attaches a device and optionally mounts a medium to the given storage
4778 controller (<link to="IStorageController" />, identified by @a name),
4779 at the indicated port and device.
4780
4781 This method is intended for managing storage devices in general while a
4782 machine is powered off. It can be used to attach and detach fixed
4783 and removable media. The following kind of media can be attached
4784 to a machine:
4785
4786 <ul>
4787 <li>For fixed and removable media, you can pass in a medium that was
4788 previously opened using <link to="IVirtualBox::openMedium" />.
4789 </li>
4790
4791 <li>Only for storage devices supporting removable media (such as
4792 DVDs and floppies), you can also specify a null pointer to
4793 indicate an empty drive or one of the medium objects listed
4794 in the <link to="IHost::DVDDrives" /> and <link to="IHost::floppyDrives"/>
4795 arrays to indicate a host drive.
4796 For removable devices, you can also use <link to="IMachine::mountMedium"/>
4797 to change the media while the machine is running.
4798 </li>
4799 </ul>
4800
4801 In a VM's default configuration of virtual machines, the secondary
4802 master of the IDE controller is used for a CD/DVD drive.
4803
4804 After calling this returns successfully, a new instance of
4805 <link to="IMediumAttachment"/> will appear in the machine's list of medium
4806 attachments (see <link to="IMachine::mediumAttachments"/>).
4807
4808 See <link to="IMedium"/> and <link to="IMediumAttachment"/> for more
4809 information about attaching media.
4810
4811 The specified device slot must not have a device attached to it,
4812 or this method will fail.
4813
4814 <note>
4815 You cannot attach a device to a newly created machine until
4816 this machine's settings are saved to disk using
4817 <link to="#saveSettings"/>.
4818 </note>
4819 <note>
4820 If the medium is being attached indirectly, a new differencing medium
4821 will implicitly be created for it and attached instead. If the
4822 changes made to the machine settings (including this indirect
4823 attachment) are later cancelled using <link to="#discardSettings"/>,
4824 this implicitly created differencing medium will implicitly
4825 be deleted.
4826 </note>
4827
4828 <result name="E_INVALIDARG">
4829 SATA device, SATA port, IDE port or IDE slot out of range, or
4830 file or UUID not found.
4831 </result>
4832 <result name="VBOX_E_INVALID_OBJECT_STATE">
4833 Machine must be registered before media can be attached.
4834 </result>
4835 <result name="VBOX_E_INVALID_VM_STATE">
4836 Invalid machine state.
4837 </result>
4838 <result name="VBOX_E_OBJECT_IN_USE">
4839 A medium is already attached to this or another virtual machine.
4840 </result>
4841
4842 </desc>
4843 <param name="name" type="wstring" dir="in">
4844 <desc>Name of the storage controller to attach the device to.</desc>
4845 </param>
4846 <param name="controllerPort" type="long" dir="in">
4847 <desc>Port to attach the device to. For an IDE controller, 0 specifies
4848 the primary controller and 1 specifies the secondary controller.
4849 For a SCSI controller, this must range from 0 to 15; for a SATA controller,
4850 from 0 to 29; for an SAS controller, from 0 to 7.</desc>
4851 </param>
4852 <param name="device" type="long" dir="in">
4853 <desc>Device slot in the given port to attach the device to. This is only
4854 relevant for IDE controllers, for which 0 specifies the master device and
4855 1 specifies the slave device. For all other controller types, this must
4856 be 0.</desc>
4857 </param>
4858 <param name="type" type="DeviceType" dir="in">
4859 <desc>Device type of the attached device. For media opened by
4860 <link to="IVirtualBox::openMedium" />, this must match the device type
4861 specified there.</desc>
4862 </param>
4863 <param name="medium" type="IMedium" dir="in">
4864 <desc>Medium to mount or @c null for an empty drive.</desc>
4865 </param>
4866 </method>
4867
4868 <method name="attachDeviceWithoutMedium">
4869 <desc>
4870 Attaches a device and optionally mounts a medium to the given storage
4871 controller (<link to="IStorageController" />, identified by @a name),
4872 at the indicated port and device.
4873
4874 This method is intended for managing storage devices in general while a
4875 machine is powered off. It can be used to attach and detach fixed
4876 and removable media. The following kind of media can be attached
4877 to a machine:
4878 <ul>
4879 <li>
4880 For fixed and removable media, you can pass in a medium that was
4881 previously opened using <link to="IVirtualBox::openMedium" />.
4882 </li>
4883
4884 <li>Only for storage devices supporting removable media (such as
4885 DVDs and floppies) with an empty drive or one of the medium objects listed
4886 in the <link to="IHost::DVDDrives" /> and <link to="IHost::floppyDrives"/>
4887 arrays to indicate a host drive.
4888 For removable devices, you can also use <link to="IMachine::mountMedium"/>
4889 to change the media while the machine is running.
4890 </li>
4891 </ul>
4892
4893 In a VM's default configuration of virtual machines, the secondary
4894 master of the IDE controller is used for a CD/DVD drive.
4895 <link to="IMediumAttachment"/> will appear in the machine's list of medium
4896 attachments (see <link to="IMachine::mediumAttachments"/>).
4897
4898 See <link to="IMedium"/> and <link to="IMediumAttachment"/> for more
4899 information about attaching media.
4900
4901 The specified device slot must not have a device attached to it,
4902 or this method will fail.
4903 <note>
4904 You cannot attach a device to a newly created machine until
4905 this machine's settings are saved to disk using
4906 <link to="#saveSettings"/>.
4907 </note>
4908 <note>
4909 If the medium is being attached indirectly, a new differencing medium
4910 will implicitly be created for it and attached instead. If the
4911 changes made to the machine settings (including this indirect
4912 attachment) are later cancelled using <link to="#discardSettings"/>,
4913 this implicitly created differencing medium will implicitly
4914 be deleted.
4915 </note>
4916
4917 <result name="E_INVALIDARG">
4918 SATA device, SATA port, IDE port or IDE slot out of range, or
4919 file or UUID not found.
4920 </result>
4921 <result name="VBOX_E_INVALID_OBJECT_STATE">
4922 Machine must be registered before media can be attached.
4923 </result>
4924 <result name="VBOX_E_INVALID_VM_STATE">
4925 Invalid machine state.
4926 </result>
4927 <result name="VBOX_E_OBJECT_IN_USE">
4928 A medium is already attached to this or another virtual machine.
4929 </result>
4930 </desc>
4931 <param name="name" type="wstring" dir="in">
4932 <desc>Name of the storage controller to attach the device to.</desc>
4933 </param>
4934 <param name="controllerPort" type="long" dir="in">
4935 <desc>Port to attach the device to. For an IDE controller, 0 specifies
4936 the primary controller and 1 specifies the secondary controller.
4937 For a SCSI controller, this must range from 0 to 15; for a SATA controller,
4938 from 0 to 29; for an SAS controller, from 0 to 7.</desc>
4939 </param>
4940 <param name="device" type="long" dir="in">
4941 <desc>Device slot in the given port to attach the device to. This is only
4942 relevant for IDE controllers, for which 0 specifies the master device and
4943 1 specifies the slave device. For all other controller types, this must
4944 be 0.</desc>
4945 </param>
4946 <param name="type" type="DeviceType" dir="in">
4947 <desc>Device type of the attached device. For media opened by
4948 <link to="IVirtualBox::openMedium" />, this must match the device type
4949 specified there.</desc>
4950 </param>
4951 </method>
4952
4953 <method name="detachDevice">
4954 <desc>
4955 Detaches the device attached to a device slot of the specified bus.
4956
4957 Detaching the device from the virtual machine is deferred. This means
4958 that the medium remains associated with the machine when this method
4959 returns and gets actually de-associated only after a successful
4960 <link to="#saveSettings"/> call. See <link to="IMedium"/>
4961 for more detailed information about attaching media.
4962
4963 <note>
4964 You cannot detach a device from a running machine.
4965 </note>
4966 <note>
4967 Detaching differencing media implicitly created by <link
4968 to="#attachDevice"/> for the indirect attachment using this
4969 method will <b>not</b> implicitly delete them. The
4970 <link to="IMedium::deleteStorage"/> operation should be
4971 explicitly performed by the caller after the medium is successfully
4972 detached and the settings are saved with
4973 <link to="#saveSettings"/>, if it is the desired action.
4974 </note>
4975
4976 <result name="VBOX_E_INVALID_VM_STATE">
4977 Attempt to detach medium from a running virtual machine.
4978 </result>
4979 <result name="VBOX_E_OBJECT_NOT_FOUND">
4980 No medium attached to given slot/bus.
4981 </result>
4982 <result name="VBOX_E_NOT_SUPPORTED">
4983 Medium format does not support storage deletion (only for implicitly
4984 created differencing media, should not happen).
4985 </result>
4986
4987 </desc>
4988 <param name="name" type="wstring" dir="in">
4989 <desc>Name of the storage controller to detach the medium from.</desc>
4990 </param>
4991 <param name="controllerPort" type="long" dir="in">
4992 <desc>Port number to detach the medium from.</desc>
4993 </param>
4994 <param name="device" type="long" dir="in">
4995 <desc>Device slot number to detach the medium from.</desc>
4996 </param>
4997 </method>
4998
4999 <method name="passthroughDevice">
5000 <desc>
5001 Sets the passthrough mode of an existing DVD device. Changing the
5002 setting while the VM is running is forbidden. The setting is only used
5003 if at VM start the device is configured as a host DVD drive, in all
5004 other cases it is ignored. The device must already exist; see
5005 <link to="IMachine::attachDevice"/> for how to attach a new device.
5006
5007 The @a controllerPort and @a device parameters specify the device slot and
5008 have have the same meaning as with <link to="IMachine::attachDevice" />.
5009
5010 <result name="E_INVALIDARG">
5011 SATA device, SATA port, IDE port or IDE slot out of range.
5012 </result>
5013 <result name="VBOX_E_INVALID_OBJECT_STATE">
5014 Attempt to modify an unregistered virtual machine.
5015 </result>
5016 <result name="VBOX_E_INVALID_VM_STATE">
5017 Invalid machine state.
5018 </result>
5019
5020 </desc>
5021 <param name="name" type="wstring" dir="in">
5022 <desc>Name of the storage controller.</desc>
5023 </param>
5024 <param name="controllerPort" type="long" dir="in">
5025 <desc>Storage controller port.</desc>
5026 </param>
5027 <param name="device" type="long" dir="in">
5028 <desc>Device slot in the given port.</desc>
5029 </param>
5030 <param name="passthrough" type="boolean" dir="in">
5031 <desc>New value for the passthrough setting.</desc>
5032 </param>
5033 </method>
5034
5035 <method name="temporaryEjectDevice">
5036 <desc>
5037 Sets the behavior for guest-triggered medium eject. In some situations
5038 it is desirable that such ejects update the VM configuration, and in
5039 others the eject should keep the VM configuration. The device must
5040 already exist; see <link to="IMachine::attachDevice"/> for how to
5041 attach a new device.
5042
5043 The @a controllerPort and @a device parameters specify the device slot and
5044 have have the same meaning as with <link to="IMachine::attachDevice" />.
5045
5046 <result name="E_INVALIDARG">
5047 SATA device, SATA port, IDE port or IDE slot out of range.
5048 </result>
5049 <result name="VBOX_E_INVALID_OBJECT_STATE">
5050 Attempt to modify an unregistered virtual machine.
5051 </result>
5052 <result name="VBOX_E_INVALID_VM_STATE">
5053 Invalid machine state.
5054 </result>
5055
5056 </desc>
5057 <param name="name" type="wstring" dir="in">
5058 <desc>Name of the storage controller.</desc>
5059 </param>
5060 <param name="controllerPort" type="long" dir="in">
5061 <desc>Storage controller port.</desc>
5062 </param>
5063 <param name="device" type="long" dir="in">
5064 <desc>Device slot in the given port.</desc>
5065 </param>
5066 <param name="temporaryEject" type="boolean" dir="in">
5067 <desc>New value for the eject behavior.</desc>
5068 </param>
5069 </method>
5070
5071 <method name="nonRotationalDevice">
5072 <desc>
5073 Sets a flag in the device information which indicates that the medium
5074 is not based on rotational technology, i.e. that the access times are
5075 more or less independent of the position on the medium. This may or may
5076 not be supported by a particular drive, and is silently ignored in the
5077 latter case. At the moment only hard disks (which is a misnomer in this
5078 context) accept this setting. Changing the setting while the VM is
5079 running is forbidden. The device must already exist; see
5080 <link to="IMachine::attachDevice"/> for how to attach a new device.
5081
5082 The @a controllerPort and @a device parameters specify the device slot and
5083 have have the same meaning as with <link to="IMachine::attachDevice" />.
5084
5085 <result name="E_INVALIDARG">
5086 SATA device, SATA port, IDE port or IDE slot out of range.
5087 </result>
5088 <result name="VBOX_E_INVALID_OBJECT_STATE">
5089 Attempt to modify an unregistered virtual machine.
5090 </result>
5091 <result name="VBOX_E_INVALID_VM_STATE">
5092 Invalid machine state.
5093 </result>
5094
5095 </desc>
5096 <param name="name" type="wstring" dir="in">
5097 <desc>Name of the storage controller.</desc>
5098 </param>
5099 <param name="controllerPort" type="long" dir="in">
5100 <desc>Storage controller port.</desc>
5101 </param>
5102 <param name="device" type="long" dir="in">
5103 <desc>Device slot in the given port.</desc>
5104 </param>
5105 <param name="nonRotational" type="boolean" dir="in">
5106 <desc>New value for the non-rotational device flag.</desc>
5107 </param>
5108 </method>
5109
5110 <method name="setAutoDiscardForDevice">
5111 <desc>
5112 Sets a flag in the device information which indicates that the medium
5113 supports discarding unsused blocks (called trimming for SATA or unmap
5114 for SCSI devices) .This may or may not be supported by a particular drive,
5115 and is silently ignored in the latter case. At the moment only hard disks
5116 (which is a misnomer in this context) accept this setting. Changing the
5117 setting while the VM is running is forbidden. The device must already
5118 exist; see <link to="IMachine::attachDevice"/> for how to attach a new
5119 device.
5120
5121 The @a controllerPort and @a device parameters specify the device slot and
5122 have have the same meaning as with <link to="IMachine::attachDevice" />.
5123
5124 <result name="E_INVALIDARG">
5125 SATA device, SATA port, SCSI port out of range.
5126 </result>
5127 <result name="VBOX_E_INVALID_OBJECT_STATE">
5128 Attempt to modify an unregistered virtual machine.
5129 </result>
5130 <result name="VBOX_E_INVALID_VM_STATE">
5131 Invalid machine state.
5132 </result>
5133
5134 </desc>
5135 <param name="name" type="wstring" dir="in">
5136 <desc>Name of the storage controller.</desc>
5137 </param>
5138 <param name="controllerPort" type="long" dir="in">
5139 <desc>Storage controller port.</desc>
5140 </param>
5141 <param name="device" type="long" dir="in">
5142 <desc>Device slot in the given port.</desc>
5143 </param>
5144 <param name="discard" type="boolean" dir="in">
5145 <desc>New value for the discard device flag.</desc>
5146 </param>
5147 </method>
5148
5149 <method name="setBandwidthGroupForDevice">
5150 <desc>
5151 Sets the bandwidth group of an existing storage device.
5152 The device must already exist; see <link to="IMachine::attachDevice"/>
5153 for how to attach a new device.
5154
5155 The @a controllerPort and @a device parameters specify the device slot and
5156 have have the same meaning as with <link to="IMachine::attachDevice" />.
5157
5158 <result name="E_INVALIDARG">
5159 SATA device, SATA port, IDE port or IDE slot out of range.
5160 </result>
5161 <result name="VBOX_E_INVALID_OBJECT_STATE">
5162 Attempt to modify an unregistered virtual machine.
5163 </result>
5164 <result name="VBOX_E_INVALID_VM_STATE">
5165 Invalid machine state.
5166 </result>
5167
5168 </desc>
5169 <param name="name" type="wstring" dir="in">
5170 <desc>Name of the storage controller.</desc>
5171 </param>
5172 <param name="controllerPort" type="long" dir="in">
5173 <desc>Storage controller port.</desc>
5174 </param>
5175 <param name="device" type="long" dir="in">
5176 <desc>Device slot in the given port.</desc>
5177 </param>
5178 <param name="bandwidthGroup" type="IBandwidthGroup" dir="in">
5179 <desc>New value for the bandwidth group or @c null for no group.</desc>
5180 </param>
5181 </method>
5182
5183 <method name="setNoBandwidthGroupForDevice">
5184 <desc>
5185 Sets no bandwidth group for an existing storage device.
5186 The device must already exist; see <link to="IMachine::attachDevice"/>
5187 for how to attach a new device.
5188 The @a controllerPort and @a device parameters specify the device slot and
5189 have have the same meaning as with <link to="IMachine::attachDevice" />.
5190 <result name="E_INVALIDARG">
5191 SATA device, SATA port, IDE port or IDE slot out of range.
5192 </result>
5193 <result name="VBOX_E_INVALID_OBJECT_STATE">
5194 Attempt to modify an unregistered virtual machine.
5195 </result>
5196 <result name="VBOX_E_INVALID_VM_STATE">
5197 Invalid machine state.
5198 </result>
5199
5200 </desc>
5201 <param name="name" type="wstring" dir="in">
5202 <desc>Name of the storage controller.</desc>
5203 </param>
5204 <param name="controllerPort" type="long" dir="in">
5205 <desc>Storage controller port.</desc>
5206 </param>
5207 <param name="device" type="long" dir="in">
5208 <desc>Device slot in the given port.</desc>
5209 </param>
5210 </method>
5211
5212
5213 <method name="unmountMedium">
5214 <desc>
5215 Unmounts any currently mounted medium (<link to="IMedium" />,
5216 identified by the given UUID @a id) to the given storage controller
5217 (<link to="IStorageController" />, identified by @a name),
5218 at the indicated port and device. The device must already exist;
5219
5220 This method is intended only for managing removable media, where the
5221 device is fixed but media is changeable at runtime (such as DVDs
5222 and floppies). It cannot be used for fixed media such as hard disks.
5223
5224 The @a controllerPort and @a device parameters specify the device slot
5225 and have have the same meaning as with
5226 <link to="IMachine::attachDevice" />.
5227
5228 The specified device slot must have a medium mounted, which will be
5229 unmounted. If there is no mounted medium it will do nothing.
5230 See <link to="IMedium"/> for more detailed information about
5231 attaching/unmounting media.
5232
5233 <result name="E_INVALIDARG">
5234 SATA device, SATA port, IDE port or IDE slot out of range.
5235 </result>
5236 <result name="VBOX_E_INVALID_OBJECT_STATE">
5237 Attempt to unmount medium that is not removeable - not dvd or floppy.
5238 </result>
5239 <result name="VBOX_E_INVALID_VM_STATE">
5240 Invalid machine state.
5241 </result>
5242 <result name="VBOX_E_OBJECT_IN_USE">
5243 Medium already attached to this or another virtual machine.
5244 </result>
5245 <result name="VBOX_E_OBJECT_NOT_FOUND">
5246 Medium not attached to specified port, device, controller.
5247 </result>
5248
5249 </desc>
5250 <param name="name" type="wstring" dir="in">
5251 <desc>Name of the storage controller to unmount the medium from.</desc>
5252 </param>
5253 <param name="controllerPort" type="long" dir="in">
5254 <desc>Port to unmount the medium from.</desc>
5255 </param>
5256 <param name="device" type="long" dir="in">
5257 <desc>Device slot in the given port to unmount the medium from.</desc>
5258 </param>
5259 <param name="force" type="boolean" dir="in">
5260 <desc>Allows to force unmount of a medium which is locked by
5261 the device slot in the given port medium is attached to.</desc>
5262 </param>
5263 </method>
5264
5265 <method name="mountMedium">
5266 <desc>
5267 Mounts a medium (<link to="IMedium" />, identified
5268 by the given UUID @a id) to the given storage controller
5269 (<link to="IStorageController" />, identified by @a name),
5270 at the indicated port and device. The device must already exist;
5271 see <link to="IMachine::attachDevice"/> for how to attach a new device.
5272
5273 This method is intended only for managing removable media, where the
5274 device is fixed but media is changeable at runtime (such as DVDs
5275 and floppies). It cannot be used for fixed media such as hard disks.
5276
5277 The @a controllerPort and @a device parameters specify the device slot and
5278 have have the same meaning as with <link to="IMachine::attachDevice" />.
5279
5280 The specified device slot can have a medium mounted, which will be
5281 unmounted first. Specifying a zero UUID (or an empty string) for
5282 @a medium does just an unmount.
5283
5284 See <link to="IMedium"/> for more detailed information about
5285 attaching media.
5286
5287 <result name="E_INVALIDARG">
5288 SATA device, SATA port, IDE port or IDE slot out of range.
5289 </result>
5290 <result name="VBOX_E_INVALID_OBJECT_STATE">
5291 Attempt to attach medium to an unregistered virtual machine.
5292 </result>
5293 <result name="VBOX_E_INVALID_VM_STATE">
5294 Invalid machine state.
5295 </result>
5296 <result name="VBOX_E_OBJECT_IN_USE">
5297 Medium already attached to this or another virtual machine.
5298 </result>
5299
5300 </desc>
5301 <param name="name" type="wstring" dir="in">
5302 <desc>Name of the storage controller to attach the medium to.</desc>
5303 </param>
5304 <param name="controllerPort" type="long" dir="in">
5305 <desc>Port to attach the medium to.</desc>
5306 </param>
5307 <param name="device" type="long" dir="in">
5308 <desc>Device slot in the given port to attach the medium to.</desc>
5309 </param>
5310 <param name="medium" type="IMedium" dir="in">
5311 <desc>Medium to mount or @c null for an empty drive.</desc>
5312 </param>
5313 <param name="force" type="boolean" dir="in">
5314 <desc>Allows to force unmount/mount of a medium which is locked by
5315 the device slot in the given port to attach the medium to.</desc>
5316 </param>
5317 </method>
5318
5319 <method name="getMedium" const="yes">
5320 <desc>
5321 Returns the virtual medium attached to a device slot of the specified
5322 bus.
5323
5324 Note that if the medium was indirectly attached by
5325 <link to="#mountMedium"/> to the given device slot then this
5326 method will return not the same object as passed to the
5327 <link to="#mountMedium"/> call. See <link to="IMedium"/> for
5328 more detailed information about mounting a medium.
5329
5330 <result name="VBOX_E_OBJECT_NOT_FOUND">
5331 No medium attached to given slot/bus.
5332 </result>
5333
5334 </desc>
5335 <param name="name" type="wstring" dir="in">
5336 <desc>Name of the storage controller the medium is attached to.</desc>
5337 </param>
5338 <param name="controllerPort" type="long" dir="in">
5339 <desc>Port to query.</desc>
5340 </param>
5341 <param name="device" type="long" dir="in">
5342 <desc>Device slot in the given port to query.</desc>
5343 </param>
5344 <param name="medium" type="IMedium" dir="return">
5345 <desc>Attached medium object.</desc>
5346 </param>
5347 </method>
5348
5349 <method name="getMediumAttachmentsOfController" const="yes">
5350 <desc>
5351 Returns an array of medium attachments which are attached to the
5352 the controller with the given name.
5353
5354 <result name="VBOX_E_OBJECT_NOT_FOUND">
5355 A storage controller with given name doesn't exist.
5356 </result>
5357 </desc>
5358 <param name="name" type="wstring" dir="in"/>
5359 <param name="mediumAttachments" type="IMediumAttachment" safearray="yes" dir="return"/>
5360 </method>
5361
5362 <method name="getMediumAttachment" const="yes">
5363 <desc>
5364 Returns a medium attachment which corresponds to the controller with
5365 the given name, on the given port and device slot.
5366
5367 <result name="VBOX_E_OBJECT_NOT_FOUND">
5368 No attachment exists for the given controller/port/device combination.
5369 </result>
5370 </desc>
5371 <param name="name" type="wstring" dir="in"/>
5372 <param name="controllerPort" type="long" dir="in"/>
5373 <param name="device" type="long" dir="in"/>
5374 <param name="attachment" type="IMediumAttachment" dir="return"/>
5375 </method>
5376
5377 <method name="attachHostPCIDevice">
5378 <desc>
5379 Attaches host PCI device with the given (host) PCI address to the
5380 PCI bus of the virtual machine. Please note, that this operation
5381 is two phase, as real attachment will happen when VM will start,
5382 and most information will be delivered as IHostPCIDevicePlugEvent
5383 on IVirtualBox event source.
5384
5385 <see><link to="IHostPCIDevicePlugEvent"/></see>
5386
5387 <result name="VBOX_E_INVALID_VM_STATE">
5388 Virtual machine state is not stopped (PCI hotplug not yet implemented).
5389 </result>
5390 <result name="VBOX_E_PDM_ERROR">
5391 Virtual machine does not have a PCI controller allowing attachment of physical devices.
5392 </result>
5393 <result name="VBOX_E_NOT_SUPPORTED">
5394 Hardware or host OS doesn't allow PCI device passthrought.
5395 </result>
5396 </desc>
5397 <param name="hostAddress" type="long" dir="in">
5398 <desc>Address of the host PCI device.</desc>
5399 </param>
5400 <param name="desiredGuestAddress" type="long" dir="in">
5401 <desc>Desired position of this device on guest PCI bus.</desc>
5402 </param>
5403 <param name="tryToUnbind" type="boolean" dir="in">
5404 <desc>If VMM shall try to unbind existing drivers from the
5405 device before attaching it to the guest.</desc>
5406 </param>
5407 </method>
5408
5409 <method name="detachHostPCIDevice">
5410 <desc>
5411 Detach host PCI device from the virtual machine.
5412 Also HostPCIDevicePlugEvent on IVirtualBox event source
5413 will be delivered. As currently we don't support hot device
5414 unplug, IHostPCIDevicePlugEvent event is delivered immediately.
5415
5416 <see><link to="IHostPCIDevicePlugEvent"/></see>
5417
5418 <result name="VBOX_E_INVALID_VM_STATE">
5419 Virtual machine state is not stopped (PCI hotplug not yet implemented).
5420 </result>
5421 <result name="VBOX_E_OBJECT_NOT_FOUND">
5422 This host device is not attached to this machine.
5423 </result>
5424 <result name="VBOX_E_PDM_ERROR">
5425 Virtual machine does not have a PCI controller allowing attachment of physical devices.
5426 </result>
5427 <result name="VBOX_E_NOT_SUPPORTED">
5428 Hardware or host OS doesn't allow PCI device passthrought.
5429 </result>
5430 </desc>
5431 <param name="hostAddress" type="long" dir="in">
5432 <desc>Address of the host PCI device.</desc>
5433 </param>
5434 </method>
5435
5436 <method name="getNetworkAdapter" const="yes">
5437 <desc>
5438 Returns the network adapter associated with the given slot.
5439 Slots are numbered sequentially, starting with zero. The total
5440 number of adapters per machine is defined by the
5441 <link to="ISystemProperties::getMaxNetworkAdapters"/> property,
5442 so the maximum slot number is one less than that property's value.
5443
5444 <result name="E_INVALIDARG">
5445 Invalid @a slot number.
5446 </result>
5447
5448 </desc>
5449 <param name="slot" type="unsigned long" dir="in"/>
5450 <param name="adapter" type="INetworkAdapter" dir="return"/>
5451 </method>
5452
5453 <method name="addStorageController">
5454 <desc>
5455 Adds a new storage controller (SCSI, SAS or SATA controller) to the
5456 machine and returns it as an instance of
5457 <link to="IStorageController" />.
5458
5459 @a name identifies the controller for subsequent calls such as
5460 <link to="#getStorageControllerByName" />,
5461 <link to="#getStorageControllerByInstance" />,
5462 <link to="#removeStorageController" />,
5463 <link to="#attachDevice" /> or <link to="#mountMedium" />.
5464
5465 After the controller has been added, you can set its exact
5466 type by setting the <link to="IStorageController::controllerType" />.
5467
5468 <result name="VBOX_E_OBJECT_IN_USE">
5469 A storage controller with given name exists already.
5470 </result>
5471 <result name="E_INVALIDARG">
5472 Invalid @a controllerType.
5473 </result>
5474 </desc>
5475 <param name="name" type="wstring" dir="in"/>
5476 <param name="connectionType" type="StorageBus" dir="in"/>
5477 <param name="controller" type="IStorageController" dir="return"/>
5478 </method>
5479
5480 <method name="getStorageControllerByName" const="yes">
5481 <desc>
5482 Returns a storage controller with the given name.
5483
5484 <result name="VBOX_E_OBJECT_NOT_FOUND">
5485 A storage controller with given name doesn't exist.
5486 </result>
5487 </desc>
5488 <param name="name" type="wstring" dir="in"/>
5489 <param name="storageController" type="IStorageController" dir="return"/>
5490 </method>
5491
5492 <method name="getStorageControllerByInstance" const="yes">
5493 <desc>
5494 Returns a storage controller with the given instance number.
5495
5496 <result name="VBOX_E_OBJECT_NOT_FOUND">
5497 A storage controller with given instance number doesn't exist.
5498 </result>
5499 </desc>
5500 <param name="instance" type="unsigned long" dir="in"/>
5501 <param name="storageController" type="IStorageController" dir="return"/>
5502 </method>
5503
5504 <method name="removeStorageController">
5505 <desc>
5506 Removes a storage controller from the machine with all devices attached to it.
5507
5508 <result name="VBOX_E_OBJECT_NOT_FOUND">
5509 A storage controller with given name doesn't exist.
5510 </result>
5511 <result name="VBOX_E_NOT_SUPPORTED">
5512 Medium format does not support storage deletion (only for implicitly
5513 created differencing media, should not happen).
5514 </result>
5515 </desc>
5516 <param name="name" type="wstring" dir="in"/>
5517 </method>
5518
5519 <method name="setStorageControllerBootable">
5520 <desc>
5521 Sets the bootable flag of the storage controller with the given name.
5522
5523 <result name="VBOX_E_OBJECT_NOT_FOUND">
5524 A storage controller with given name doesn't exist.
5525 </result>
5526 <result name="VBOX_E_OBJECT_IN_USE">
5527 Another storage controller is marked as bootable already.
5528 </result>
5529 </desc>
5530 <param name="name" type="wstring" dir="in"/>
5531 <param name="bootable" type="boolean" dir="in"/>
5532 </method>
5533
5534 <method name="getSerialPort" const="yes">
5535 <desc>
5536 Returns the serial port associated with the given slot.
5537 Slots are numbered sequentially, starting with zero. The total
5538 number of serial ports per machine is defined by the
5539 <link to="ISystemProperties::serialPortCount"/> property,
5540 so the maximum slot number is one less than that property's value.
5541
5542 <result name="E_INVALIDARG">
5543 Invalid @a slot number.
5544 </result>
5545
5546 </desc>
5547 <param name="slot" type="unsigned long" dir="in"/>
5548 <param name="port" type="ISerialPort" dir="return"/>
5549 </method>
5550
5551 <method name="getParallelPort" const="yes">
5552 <desc>
5553 Returns the parallel port associated with the given slot.
5554 Slots are numbered sequentially, starting with zero. The total
5555 number of parallel ports per machine is defined by the
5556 <link to="ISystemProperties::parallelPortCount"/> property,
5557 so the maximum slot number is one less than that property's value.
5558
5559 <result name="E_INVALIDARG">
5560 Invalid @a slot number.
5561 </result>
5562
5563 </desc>
5564 <param name="slot" type="unsigned long" dir="in"/>
5565 <param name="port" type="IParallelPort" dir="return"/>
5566 </method>
5567
5568 <method name="getExtraDataKeys">
5569 <desc>
5570 Returns an array representing the machine-specific extra data keys
5571 which currently have values defined.
5572 </desc>
5573 <param name="value" type="wstring" dir="return" safearray="yes">
5574 <desc>Array of extra data keys.</desc>
5575 </param>
5576 </method>
5577
5578 <method name="getExtraData">
5579 <desc>
5580 Returns associated machine-specific extra data.
5581
5582 If the requested data @a key does not exist, this function will
5583 succeed and return an empty string in the @a value argument.
5584
5585 <result name="VBOX_E_FILE_ERROR">
5586 Settings file not accessible.
5587 </result>
5588 <result name="VBOX_E_XML_ERROR">
5589 Could not parse the settings file.
5590 </result>
5591
5592 </desc>
5593 <param name="key" type="wstring" dir="in">
5594 <desc>Name of the data key to get.</desc>
5595 </param>
5596 <param name="value" type="wstring" dir="return">
5597 <desc>Value of the requested data key.</desc>
5598 </param>
5599 </method>
5600
5601 <method name="setExtraData">
5602 <desc>
5603 Sets associated machine-specific extra data.
5604
5605 If you pass @c null or an empty string as a key @a value, the given
5606 @a key will be deleted.
5607
5608 <note>
5609 Before performing the actual data change, this method will ask all
5610 registered listeners using the
5611 <link to="IExtraDataCanChangeEvent"/>
5612 notification for a permission. If one of the listeners refuses the
5613 new value, the change will not be performed.
5614 </note>
5615 <note>
5616 On success, the
5617 <link to="IExtraDataChangedEvent"/> notification
5618 is called to inform all registered listeners about a successful data
5619 change.
5620 </note>
5621 <note>
5622 This method can be called outside the machine session and therefore
5623 it's a caller's responsibility to handle possible race conditions
5624 when several clients change the same key at the same time.
5625 </note>
5626
5627 <result name="VBOX_E_FILE_ERROR">
5628 Settings file not accessible.
5629 </result>
5630 <result name="VBOX_E_XML_ERROR">
5631 Could not parse the settings file.
5632 </result>
5633
5634 </desc>
5635 <param name="key" type="wstring" dir="in">
5636 <desc>Name of the data key to set.</desc>
5637 </param>
5638 <param name="value" type="wstring" dir="in">
5639 <desc>Value to assign to the key.</desc>
5640 </param>
5641 </method>
5642
5643 <method name="getCPUProperty" const="yes">
5644 <desc>
5645 Returns the virtual CPU boolean value of the specified property.
5646
5647 <result name="E_INVALIDARG">
5648 Invalid property.
5649 </result>
5650
5651 </desc>
5652 <param name="property" type="CPUPropertyType" dir="in">
5653 <desc>
5654 Property type to query.
5655 </desc>
5656 </param>
5657 <param name="value" type="boolean" dir="return">
5658 <desc>
5659 Property value.
5660 </desc>
5661 </param>
5662 </method>
5663
5664 <method name="setCPUProperty">
5665 <desc>
5666 Sets the virtual CPU boolean value of the specified property.
5667
5668 <result name="E_INVALIDARG">
5669 Invalid property.
5670 </result>
5671
5672 </desc>
5673 <param name="property" type="CPUPropertyType" dir="in">
5674 <desc>
5675 Property type to query.
5676 </desc>
5677 </param>
5678 <param name="value" type="boolean" dir="in">
5679 <desc>
5680 Property value.
5681 </desc>
5682 </param>
5683 </method>
5684
5685 <method name="getCPUIDLeaf" const="yes">
5686 <desc>
5687 Returns the virtual CPU cpuid information for the specified leaf.
5688
5689 Currently supported index values for cpuid:
5690 Standard CPUID leafs: 0 - 0xA
5691 Extended CPUID leafs: 0x80000000 - 0x8000000A
5692
5693 See the Intel and AMD programmer's manuals for detailed information
5694 about the cpuid instruction and its leafs.
5695 <result name="E_INVALIDARG">
5696 Invalid id.
5697 </result>
5698
5699 </desc>
5700 <param name="id" type="unsigned long" dir="in">
5701 <desc>
5702 CPUID leaf index.
5703 </desc>
5704 </param>
5705 <param name="valEax" type="unsigned long" dir="out">
5706 <desc>
5707 CPUID leaf value for register eax.
5708 </desc>
5709 </param>
5710 <param name="valEbx" type="unsigned long" dir="out">
5711 <desc>
5712 CPUID leaf value for register ebx.
5713 </desc>
5714 </param>
5715 <param name="valEcx" type="unsigned long" dir="out">
5716 <desc>
5717 CPUID leaf value for register ecx.
5718 </desc>
5719 </param>
5720 <param name="valEdx" type="unsigned long" dir="out">
5721 <desc>
5722 CPUID leaf value for register edx.
5723 </desc>
5724 </param>
5725 </method>
5726
5727 <method name="setCPUIDLeaf">
5728 <desc>
5729 Sets the virtual CPU cpuid information for the specified leaf. Note that these values
5730 are not passed unmodified. VirtualBox clears features that it doesn't support.
5731
5732 Currently supported index values for cpuid:
5733 Standard CPUID leafs: 0 - 0xA
5734 Extended CPUID leafs: 0x80000000 - 0x8000000A
5735
5736 See the Intel and AMD programmer's manuals for detailed information
5737 about the cpuid instruction and its leafs.
5738
5739 Do not use this method unless you know exactly what you're doing. Misuse can lead to
5740 random crashes inside VMs.
5741 <result name="E_INVALIDARG">
5742 Invalid id.
5743 </result>
5744
5745 </desc>
5746 <param name="id" type="unsigned long" dir="in">
5747 <desc>
5748 CPUID leaf index.
5749 </desc>
5750 </param>
5751 <param name="valEax" type="unsigned long" dir="in">
5752 <desc>
5753 CPUID leaf value for register eax.
5754 </desc>
5755 </param>
5756 <param name="valEbx" type="unsigned long" dir="in">
5757 <desc>
5758 CPUID leaf value for register ebx.
5759 </desc>
5760 </param>
5761 <param name="valEcx" type="unsigned long" dir="in">
5762 <desc>
5763 CPUID leaf value for register ecx.
5764 </desc>
5765 </param>
5766 <param name="valEdx" type="unsigned long" dir="in">
5767 <desc>
5768 CPUID leaf value for register edx.
5769 </desc>
5770 </param>
5771 </method>
5772
5773 <method name="removeCPUIDLeaf">
5774 <desc>
5775 Removes the virtual CPU cpuid leaf for the specified index
5776
5777 <result name="E_INVALIDARG">
5778 Invalid id.
5779 </result>
5780
5781 </desc>
5782 <param name="id" type="unsigned long" dir="in">
5783 <desc>
5784 CPUID leaf index.
5785 </desc>
5786 </param>
5787 </method>
5788
5789 <method name="removeAllCPUIDLeaves">
5790 <desc>
5791 Removes all the virtual CPU cpuid leaves
5792 </desc>
5793 </method>
5794
5795 <method name="getHWVirtExProperty" const="yes">
5796 <desc>
5797 Returns the value of the specified hardware virtualization boolean property.
5798
5799 <result name="E_INVALIDARG">
5800 Invalid property.
5801 </result>
5802
5803 </desc>
5804 <param name="property" type="HWVirtExPropertyType" dir="in">
5805 <desc>
5806 Property type to query.
5807 </desc>
5808 </param>
5809 <param name="value" type="boolean" dir="return">
5810 <desc>
5811 Property value.
5812 </desc>
5813 </param>
5814 </method>
5815
5816 <method name="setHWVirtExProperty">
5817 <desc>
5818 Sets a new value for the specified hardware virtualization boolean property.
5819
5820 <result name="E_INVALIDARG">
5821 Invalid property.
5822 </result>
5823
5824 </desc>
5825 <param name="property" type="HWVirtExPropertyType" dir="in">
5826 <desc>
5827 Property type to set.
5828 </desc>
5829 </param>
5830 <param name="value" type="boolean" dir="in">
5831 <desc>
5832 New property value.
5833 </desc>
5834 </param>
5835 </method>
5836
5837 <method name="saveSettings">
5838 <desc>
5839 Saves any changes to machine settings made since the session
5840 has been opened or a new machine has been created, or since the
5841 last call to <link to="#saveSettings"/> or <link to="#discardSettings"/>.
5842 For registered machines, new settings become visible to all
5843 other VirtualBox clients after successful invocation of this
5844 method.
5845 <note>
5846 The method sends <link to="IMachineDataChangedEvent"/>
5847 notification event after the configuration has been successfully
5848 saved (only for registered machines).
5849 </note>
5850 <note>
5851 Calling this method is only valid on instances returned
5852 by <link to="ISession::machine"/> and on new machines
5853 created by <link to="IVirtualBox::createMachine"/> but not
5854 yet registered, or on unregistered machines after calling
5855 <link to="IMachine::unregister"/>.
5856 </note>
5857
5858 <result name="VBOX_E_FILE_ERROR">
5859 Settings file not accessible.
5860 </result>
5861 <result name="VBOX_E_XML_ERROR">
5862 Could not parse the settings file.
5863 </result>
5864 <result name="E_ACCESSDENIED">
5865 Modification request refused.
5866 </result>
5867
5868 </desc>
5869 </method>
5870
5871 <method name="discardSettings">
5872 <desc>
5873 Discards any changes to the machine settings made since the session
5874 has been opened or since the last call to <link to="#saveSettings"/>
5875 or <link to="#discardSettings"/>.
5876 <note>
5877 Calling this method is only valid on instances returned
5878 by <link to="ISession::machine"/> and on new machines
5879 created by <link to="IVirtualBox::createMachine"/> or
5880 opened by <link to="IVirtualBox::openMachine"/> but not
5881 yet registered, or on unregistered machines after calling
5882 <link to="IMachine::unregister"/>.
5883 </note>
5884
5885 <result name="VBOX_E_INVALID_VM_STATE">
5886 Virtual machine is not mutable.
5887 </result>
5888
5889 </desc>
5890 </method>
5891
5892 <method name="unregister">
5893 <desc>
5894 Unregisters a machine previously registered with
5895 <link to="IVirtualBox::registerMachine"/> and optionally do additional
5896 cleanup before the machine is unregistered.
5897
5898 This method does not delete any files. It only changes the machine configuration and
5899 the list of registered machines in the VirtualBox object. To delete the files which
5900 belonged to the machine, including the XML file of the machine itself, call
5901 <link to="#delete"/>, optionally with the array of IMedium objects which was returned
5902 from this method.
5903
5904 How thoroughly this method cleans up the machine configuration before unregistering
5905 the machine depends on the @a cleanupMode argument.
5906
5907 <ul>
5908 <li>With "UnregisterOnly", the machine will only be unregistered, but no additional
5909 cleanup will be performed. The call will fail if the machine is in "Saved" state
5910 or has any snapshots or any media attached (see <link to="IMediumAttachment" />).
5911 It is the responsibility of the caller to delete all such configuration in this mode.
5912 In this mode, the API behaves like the former @c IVirtualBox::unregisterMachine() API
5913 which it replaces.</li>
5914 <li>With "DetachAllReturnNone", the call will succeed even if the machine is in "Saved"
5915 state or if it has snapshots or media attached. All media attached to the current machine
5916 state or in snapshots will be detached. No medium objects will be returned;
5917 all of the machine's media will remain open.</li>
5918 <li>With "DetachAllReturnHardDisksOnly", the call will behave like with "DetachAllReturnNone",
5919 except that all the hard disk medium objects which were detached from the machine will
5920 be returned as an array. This allows for quickly passing them to the <link to="#delete" />
5921 API for closing and deletion.</li>
5922 <li>With "Full", the call will behave like with "DetachAllReturnHardDisksOnly", except
5923 that all media will be returned in the array, including removable media like DVDs and
5924 floppies. This might be useful if the user wants to inspect in detail which media were
5925 attached to the machine. Be careful when passing the media array to <link to="#delete" />
5926 in that case because users will typically want to preserve ISO and RAW image files.</li>
5927 </ul>
5928
5929 A typical implementation will use "DetachAllReturnHardDisksOnly" and then pass the
5930 resulting IMedium array to <link to="#delete"/>. This way, the machine is completely
5931 deleted with all its saved states and hard disk images, but images for removable
5932 drives (such as ISO and RAW files) will remain on disk.
5933
5934 This API does not verify whether the media files returned in the array are still
5935 attached to other machines (i.e. shared between several machines). If such a shared
5936 image is passed to <link to="#delete" /> however, closing the image will fail there
5937 and the image will be silently skipped.
5938
5939 This API may, however, move media from this machine's media registry to other media
5940 registries (see <link to="IMedium" /> for details on media registries). For machines
5941 created with VirtualBox 4.0 or later, if media from this machine's media registry
5942 are also attached to another machine (shared attachments), each such medium will be
5943 moved to another machine's registry. This is because without this machine's media
5944 registry, the other machine cannot find its media any more and would become inaccessible.
5945
5946 This API implicitly calls <link to="#saveSettings"/> to save all current machine settings
5947 before unregistering it. It may also silently call <link to="#saveSettings"/> on other machines
5948 if media are moved to other machines' media registries.
5949
5950 After successful method invocation, the <link to="IMachineRegisteredEvent"/> event
5951 is fired.
5952
5953 The call will fail if the machine is currently locked (see <link to="ISession" />).
5954
5955 <note>
5956 If the given machine is inaccessible (see <link to="#accessible"/>), it
5957 will be unregistered and fully uninitialized right afterwards. As a result,
5958 the returned machine object will be unusable and an attempt to call
5959 <b>any</b> method will return the "Object not ready" error.
5960 </note>
5961
5962 <result name="VBOX_E_INVALID_OBJECT_STATE">
5963 Machine is currently locked for a session.
5964 </result>
5965 </desc>
5966
5967 <param name="cleanupMode" type="CleanupMode" dir="in">
5968 <desc>How to clean up after the machine has been unregistered.</desc>
5969 </param>
5970 <param name="aMedia" type="IMedium" safearray="yes" dir="return">
5971 <desc>List of media detached from the machine, depending on the @a cleanupMode parameter.</desc>
5972 </param>
5973 </method>
5974
5975 <method name="delete">
5976 <desc>
5977 Deletes the files associated with this machine from disk. If medium objects are passed
5978 in with the @a aMedia argument, they are closed and, if closing was successful, their
5979 storage files are deleted as well. For convenience, this array of media files can be
5980 the same as the one returned from a previous <link to="#unregister" /> call.
5981
5982 This method must only be called on machines which are either write-locked (i.e. on instances
5983 returned by <link to="ISession::machine"/>) or on unregistered machines (i.e. not yet
5984 registered machines created by <link to="IVirtualBox::createMachine"/> or opened by
5985 <link to="IVirtualBox::openMachine"/>, or after having called <link to="#unregister"/>).
5986
5987 The following files will be deleted by this method:
5988 <ul>
5989 <li>If <link to="#unregister" /> had been previously called with a @a cleanupMode
5990 argument other than "UnregisterOnly", this will delete all saved state files that
5991 the machine had in use; possibly one if the machine was in "Saved" state and one
5992 for each online snapshot that the machine had.</li>
5993 <li>On each medium object passed in the @a aMedia array, this will call
5994 <link to="IMedium::close" />. If that succeeds, this will attempt to delete the
5995 medium's storage on disk. Since the <link to="IMedium::close"/> call will fail if the medium is still
5996 in use, e.g. because it is still attached to a second machine; in that case the
5997 storage will not be deleted.</li>
5998 <li>Finally, the machine's own XML file will be deleted.</li>
5999 </ul>
6000
6001 Since deleting large disk image files can be a time-consuming I/O operation, this
6002 method operates asynchronously and returns an IProgress object to allow the caller
6003 to monitor the progress. There will be one sub-operation for each file that is
6004 being deleted (saved state or medium storage file).
6005
6006 <note>
6007 <link to="#settingsModified"/> will return @c true after this
6008 method successfully returns.
6009 </note>
6010
6011 <result name="VBOX_E_INVALID_VM_STATE">
6012 Machine is registered but not write-locked.
6013 </result>
6014 <result name="VBOX_E_IPRT_ERROR">
6015 Could not delete the settings file.
6016 </result>
6017 </desc>
6018 <param name="aMedia" type="IMedium" safearray="yes" dir="in">
6019 <desc>List of media to be closed and whose storage files will be deleted.</desc>
6020 </param>
6021 <param name="aProgress" type="IProgress" dir="return">
6022 <desc>Progress object to track the operation completion.</desc>
6023 </param>
6024 </method>
6025
6026 <method name="export">
6027 <desc>Exports the machine to an OVF appliance. See <link to="IAppliance" /> for the
6028 steps required to export VirtualBox machines to OVF.
6029 </desc>
6030
6031 <param name="aAppliance" type="IAppliance" dir="in">
6032 <desc>Appliance to export this machine to.</desc>
6033 </param>
6034 <param name="location" type="wstring" dir="in">
6035 <desc>The target location.</desc>
6036 </param>
6037 <param name="aDescription" type="IVirtualSystemDescription" dir="return">
6038 <desc>VirtualSystemDescription object which is created for this machine.</desc>
6039 </param>
6040 </method >
6041
6042 <method name="findSnapshot">
6043 <desc>
6044 Returns a snapshot of this machine with the given name or UUID.
6045
6046 Returns a snapshot of this machine with the given UUID.
6047 A @c null argument can be used to obtain the first snapshot
6048 taken on this machine. To traverse the whole tree of snapshots
6049 starting from the root, inspect the root snapshot's
6050 <link to="ISnapshot::children" /> attribute and recurse over those children.
6051
6052 <result name="VBOX_E_OBJECT_NOT_FOUND">
6053 Virtual machine has no snapshots or snapshot not found.
6054 </result>
6055
6056 </desc>
6057 <param name="nameOrId" type="wstring" dir="in">
6058 <desc>What to search for. Name or UUID of the snapshot to find</desc>
6059 </param>
6060 <param name="snapshot" type="ISnapshot" dir="return">
6061 <desc>Snapshot object with the given name.</desc>
6062 </param>
6063 </method>
6064
6065 <method name="createSharedFolder">
6066 <desc>
6067 Creates a new permanent shared folder by associating the given logical
6068 name with the given host path, adds it to the collection of shared
6069 folders and starts sharing it. Refer to the description of
6070 <link to="ISharedFolder"/> to read more about logical names.
6071
6072 <result name="VBOX_E_OBJECT_IN_USE">
6073 Shared folder already exists.
6074 </result>
6075 <result name="VBOX_E_FILE_ERROR">
6076 Shared folder @a hostPath not accessible.
6077 </result>
6078
6079 </desc>
6080 <param name="name" type="wstring" dir="in">
6081 <desc>Unique logical name of the shared folder.</desc>
6082 </param>
6083 <param name="hostPath" type="wstring" dir="in">
6084 <desc>Full path to the shared folder in the host file system.</desc>
6085 </param>
6086 <param name="writable" type="boolean" dir="in">
6087 <desc>Whether the share is writable or readonly.</desc>
6088 </param>
6089 <param name="automount" type="boolean" dir="in">
6090 <desc>Whether the share gets automatically mounted by the guest
6091 or not.</desc>
6092 </param>
6093 </method>
6094
6095 <method name="removeSharedFolder">
6096 <desc>
6097 Removes the permanent shared folder with the given name previously
6098 created by <link to="#createSharedFolder"/> from the collection of
6099 shared folders and stops sharing it.
6100
6101 <result name="VBOX_E_INVALID_VM_STATE">
6102 Virtual machine is not mutable.
6103 </result>
6104 <result name="VBOX_E_OBJECT_NOT_FOUND">
6105 Shared folder @a name does not exist.
6106 </result>
6107
6108 </desc>
6109 <param name="name" type="wstring" dir="in">
6110 <desc>Logical name of the shared folder to remove.</desc>
6111 </param>
6112 </method>
6113
6114 <method name="canShowConsoleWindow">
6115 <desc>
6116 Returns @c true if the VM console process can activate the
6117 console window and bring it to foreground on the desktop of
6118 the host PC.
6119 <note>
6120 This method will fail if a session for this machine is not
6121 currently open.
6122 </note>
6123
6124 <result name="VBOX_E_INVALID_VM_STATE">
6125 Machine session is not open.
6126 </result>
6127
6128 </desc>
6129 <param name="canShow" type="boolean" dir="return">
6130 <desc>
6131 @c true if the console window can be shown and @c false otherwise.
6132 </desc>
6133 </param>
6134 </method>
6135
6136 <method name="showConsoleWindow">
6137 <desc>
6138 Activates the console window and brings it to foreground on
6139 the desktop of the host PC. Many modern window managers on
6140 many platforms implement some sort of focus stealing
6141 prevention logic, so that it may be impossible to activate
6142 a window without the help of the currently active
6143 application. In this case, this method will return a non-zero
6144 identifier that represents the top-level window of the VM
6145 console process. The caller, if it represents a currently
6146 active process, is responsible to use this identifier (in a
6147 platform-dependent manner) to perform actual window
6148 activation.
6149 <note>
6150 This method will fail if a session for this machine is not
6151 currently open.
6152 </note>
6153
6154 <result name="VBOX_E_INVALID_VM_STATE">
6155 Machine session is not open.
6156 </result>
6157
6158 </desc>
6159 <param name="winId" type="long long" dir="return">
6160 <desc>
6161 Platform-dependent identifier of the top-level VM console
6162 window, or zero if this method has performed all actions
6163 necessary to implement the <i>show window</i> semantics for
6164 the given platform and/or VirtualBox front-end.
6165 </desc>
6166 </param>
6167 </method>
6168
6169 <method name="getGuestProperty" const="yes">
6170 <desc>
6171 Reads an entry from the machine's guest property store.
6172
6173 <result name="VBOX_E_INVALID_VM_STATE">
6174 Machine session is not open.
6175 </result>
6176
6177 </desc>
6178 <param name="name" type="wstring" dir="in">
6179 <desc>
6180 The name of the property to read.
6181 </desc>
6182 </param>
6183 <param name="value" type="wstring" dir="out">
6184 <desc>
6185 The value of the property. If the property does not exist then this
6186 will be empty.
6187 </desc>
6188 </param>
6189 <param name="timestamp" type="long long" dir="out">
6190 <desc>
6191 The time at which the property was last modified, as seen by the
6192 server process.
6193 </desc>
6194 </param>
6195 <param name="flags" type="wstring" dir="out">
6196 <desc>
6197 Additional property parameters, passed as a comma-separated list of
6198 "name=value" type entries.
6199 </desc>
6200 </param>
6201 </method>
6202
6203 <method name="getGuestPropertyValue" const="yes">
6204 <desc>
6205 Reads a value from the machine's guest property store.
6206
6207 <result name="VBOX_E_INVALID_VM_STATE">
6208 Machine session is not open.
6209 </result>
6210
6211 </desc>
6212 <param name="property" type="wstring" dir="in">
6213 <desc>
6214 The name of the property to read.
6215 </desc>
6216 </param>
6217 <param name="value" type="wstring" dir="return">
6218 <desc>
6219 The value of the property. If the property does not exist then this
6220 will be empty.
6221 </desc>
6222 </param>
6223 </method>
6224
6225 <method name="getGuestPropertyTimestamp" const="yes">
6226 <desc>
6227 Reads a property timestamp from the machine's guest property store.
6228
6229 <result name="VBOX_E_INVALID_VM_STATE">
6230 Machine session is not open.
6231 </result>
6232
6233 </desc>
6234 <param name="property" type="wstring" dir="in">
6235 <desc>
6236 The name of the property to read.
6237 </desc>
6238 </param>
6239 <param name="value" type="long long" dir="return">
6240 <desc>
6241 The timestamp. If the property does not exist then this will be
6242 empty.
6243 </desc>
6244 </param>
6245 </method>
6246
6247 <method name="setGuestProperty">
6248 <desc>
6249 Sets, changes or deletes an entry in the machine's guest property
6250 store.
6251
6252 <result name="E_ACCESSDENIED">
6253 Property cannot be changed.
6254 </result>
6255 <result name="E_INVALIDARG">
6256 Invalid @a flags.
6257 </result>
6258 <result name="VBOX_E_INVALID_VM_STATE">
6259 Virtual machine is not mutable or session not open.
6260 </result>
6261 <result name="VBOX_E_INVALID_OBJECT_STATE">
6262 Cannot set transient property when machine not running.
6263 </result>
6264
6265 </desc>
6266 <param name="property" type="wstring" dir="in">
6267 <desc>
6268 The name of the property to set, change or delete.
6269 </desc>
6270 </param>
6271 <param name="value" type="wstring" dir="in">
6272 <desc>
6273 The new value of the property to set, change or delete. If the
6274 property does not yet exist and value is non-empty, it will be
6275 created. If the value is @c null or empty, the property will be
6276 deleted if it exists.
6277 </desc>
6278 </param>
6279 <param name="flags" type="wstring" dir="in">
6280 <desc>
6281 Additional property parameters, passed as a comma-separated list of
6282 "name=value" type entries.
6283 </desc>
6284 </param>
6285 </method>
6286
6287 <method name="setGuestPropertyValue">
6288 <desc>
6289 Sets, changes or deletes a value in the machine's guest property
6290 store. The flags field will be left unchanged or created empty for a
6291 new property.
6292
6293 <result name="E_ACCESSDENIED">
6294 Property cannot be changed.
6295 </result>
6296 <result name="VBOX_E_INVALID_VM_STATE">
6297 Virtual machine is not mutable or session not open.
6298 </result>
6299 <result name="VBOX_E_INVALID_OBJECT_STATE">
6300 Cannot set transient property when machine not running.
6301 </result>
6302 </desc>
6303
6304 <param name="property" type="wstring" dir="in">
6305 <desc>
6306 The name of the property to set, change or delete.
6307 </desc>
6308 </param>
6309 <param name="value" type="wstring" dir="in">
6310 <desc>
6311 The new value of the property to set, change or delete. If the
6312 property does not yet exist and value is non-empty, it will be
6313 created. If the value is @c null or empty, the property will be
6314 deleted if it exists.
6315 </desc>
6316 </param>
6317 </method>
6318
6319 <method name="deleteGuestProperty" const="yes">
6320 <desc>
6321 Deletes an entry from the machine's guest property store.
6322
6323 <result name="VBOX_E_INVALID_VM_STATE">
6324 Machine session is not open.
6325 </result>
6326
6327 </desc>
6328 <param name="name" type="wstring" dir="in">
6329 <desc>
6330 The name of the property to delete.
6331 </desc>
6332 </param>
6333 </method>
6334
6335 <method name="enumerateGuestProperties" const="yes">
6336 <desc>
6337 Return a list of the guest properties matching a set of patterns along
6338 with their values, time stamps and flags.
6339 </desc>
6340 <param name="patterns" type="wstring" dir="in">
6341 <desc>
6342 The patterns to match the properties against, separated by '|'
6343 characters. If this is empty or @c null, all properties will match.
6344 </desc>
6345 </param>
6346 <param name="name" type="wstring" dir="out" safearray="yes">
6347 <desc>
6348 The names of the properties returned.
6349 </desc>
6350 </param>
6351 <param name="value" type="wstring" dir="out" safearray="yes">
6352 <desc>
6353 The values of the properties returned. The array entries match the
6354 corresponding entries in the @a name array.
6355 </desc>
6356 </param>
6357 <param name="timestamp" type="long long" dir="out" safearray="yes">
6358 <desc>
6359 The time stamps of the properties returned. The array entries match
6360 the corresponding entries in the @a name array.
6361 </desc>
6362 </param>
6363 <param name="flags" type="wstring" dir="out" safearray="yes">
6364 <desc>
6365 The flags of the properties returned. The array entries match the
6366 corresponding entries in the @a name array.
6367 </desc>
6368 </param>
6369 </method>
6370
6371 <method name="querySavedGuestScreenInfo" const="yes">
6372 <desc>
6373 Returns the guest dimensions from the saved state.
6374 </desc>
6375 <param name="screenId" type="unsigned long" dir="in">
6376 <desc>
6377 Saved guest screen to query info from.
6378 </desc>
6379 </param>
6380 <param name="originX" type="unsigned long" dir="out">
6381 <desc>
6382 The X position of the guest monitor top left corner.
6383 </desc>
6384 </param>
6385 <param name="originY" type="unsigned long" dir="out">
6386 <desc>
6387 The Y position of the guest monitor top left corner.
6388 </desc>
6389 </param>
6390 <param name="width" type="unsigned long" dir="out">
6391 <desc>
6392 Guest width at the time of the saved state was taken.
6393 </desc>
6394 </param>
6395 <param name="height" type="unsigned long" dir="out">
6396 <desc>
6397 Guest height at the time of the saved state was taken.
6398 </desc>
6399 </param>
6400 <param name="enabled" type="boolean" dir="out">
6401 <desc>
6402 Whether the monitor is enabled in the guest.
6403 </desc>
6404 </param>
6405 </method>
6406
6407 <method name="querySavedThumbnailSize">
6408 <desc>
6409 Returns size in bytes and dimensions in pixels of a saved thumbnail bitmap from saved state.
6410 </desc>
6411 <param name="screenId" type="unsigned long" dir="in">
6412 <desc>
6413 Saved guest screen to query info from.
6414 </desc>
6415 </param>
6416 <param name="size" type="unsigned long" dir="out">
6417 <desc>
6418 Size of buffer required to store the bitmap.
6419 </desc>
6420 </param>
6421 <param name="width" type="unsigned long" dir="out">
6422 <desc>
6423 Bitmap width.
6424 </desc>
6425 </param>
6426 <param name="height" type="unsigned long" dir="out">
6427 <desc>
6428 Bitmap height.
6429 </desc>
6430 </param>
6431 </method>
6432
6433 <method name="readSavedThumbnailToArray">
6434 <desc>
6435 Thumbnail is retrieved to an array of bytes in uncompressed 32-bit BGRA or RGBA format.
6436 </desc>
6437 <param name="screenId" type="unsigned long" dir="in">
6438 <desc>
6439 Saved guest screen to read from.
6440 </desc>
6441 </param>
6442 <param name="BGR" type="boolean" dir="in">
6443 <desc>
6444 How to order bytes in the pixel. A pixel consists of 4 bytes. If this parameter is true, then
6445 bytes order is: B, G, R, 0xFF. If this parameter is false, then bytes order is: R, G, B, 0xFF.
6446 </desc>
6447 </param>
6448 <param name="width" type="unsigned long" dir="out">
6449 <desc>
6450 Bitmap width.
6451 </desc>
6452 </param>
6453 <param name="height" type="unsigned long" dir="out">
6454 <desc>
6455 Bitmap height.
6456 </desc>
6457 </param>
6458 <param name="data" type="octet" safearray="yes" dir="return">
6459 <desc>
6460 Array with resulting bitmap data.
6461 </desc>
6462 </param>
6463 </method>
6464
6465 <method name="readSavedThumbnailPNGToArray">
6466 <desc>
6467 Thumbnail in PNG format is retrieved to an array of bytes.
6468 </desc>
6469 <param name="screenId" type="unsigned long" dir="in">
6470 <desc>
6471 Saved guest screen to read from.
6472 </desc>
6473 </param>
6474 <param name="width" type="unsigned long" dir="out">
6475 <desc>
6476 Image width.
6477 </desc>
6478 </param>
6479 <param name="height" type="unsigned long" dir="out">
6480 <desc>
6481 Image height.
6482 </desc>
6483 </param>
6484 <param name="data" type="octet" dir="return" safearray="yes">
6485 <desc>
6486 Array with resulting PNG data.
6487 </desc>
6488 </param>
6489 </method>
6490
6491 <method name="querySavedScreenshotPNGSize">
6492 <desc>
6493 Returns size in bytes and dimensions of a saved PNG image of screenshot from saved state.
6494 </desc>
6495 <param name="screenId" type="unsigned long" dir="in">
6496 <desc>
6497 Saved guest screen to query info from.
6498 </desc>
6499 </param>
6500 <param name="size" type="unsigned long" dir="out">
6501 <desc>
6502 Size of buffer required to store the PNG binary data.
6503 </desc>
6504 </param>
6505 <param name="width" type="unsigned long" dir="out">
6506 <desc>
6507 Image width.
6508 </desc>
6509 </param>
6510 <param name="height" type="unsigned long" dir="out">
6511 <desc>
6512 Image height.
6513 </desc>
6514 </param>
6515 </method>
6516
6517 <method name="readSavedScreenshotPNGToArray">
6518 <desc>
6519 Screenshot in PNG format is retrieved to an array of bytes.
6520 </desc>
6521 <param name="screenId" type="unsigned long" dir="in">
6522 <desc>
6523 Saved guest screen to read from.
6524 </desc>
6525 </param>
6526 <param name="width" type="unsigned long" dir="out">
6527 <desc>
6528 Image width.
6529 </desc>
6530 </param>
6531 <param name="height" type="unsigned long" dir="out">
6532 <desc>
6533 Image height.
6534 </desc>
6535 </param>
6536 <param name="data" type="octet" dir="return" safearray="yes">
6537 <desc>
6538 Array with resulting PNG data.
6539 </desc>
6540 </param>
6541 </method>
6542
6543 <method name="hotPlugCPU">
6544 <desc>
6545 Plugs a CPU into the machine.
6546 </desc>
6547 <param name="cpu" type="unsigned long" dir="in">
6548 <desc>
6549 The CPU id to insert.
6550 </desc>
6551 </param>
6552 </method>
6553
6554 <method name="hotUnplugCPU">
6555 <desc>
6556 Removes a CPU from the machine.
6557 </desc>
6558 <param name="cpu" type="unsigned long" dir="in">
6559 <desc>
6560 The CPU id to remove.
6561 </desc>
6562 </param>
6563 </method>
6564
6565 <method name="getCPUStatus">
6566 <desc>
6567 Returns the current status of the given CPU.
6568 </desc>
6569 <param name="cpu" type="unsigned long" dir="in">
6570 <desc>
6571 The CPU id to check for.
6572 </desc>
6573 </param>
6574 <param name="attached" type="boolean" dir="return">
6575 <desc>
6576 Status of the CPU.
6577 </desc>
6578 </param>
6579 </method>
6580
6581 <method name="queryLogFilename">
6582 <desc>
6583 Queries for the VM log file name of an given index. Returns an empty
6584 string if a log file with that index doesn't exists.
6585 </desc>
6586 <param name="idx" type="unsigned long" dir="in">
6587 <desc>
6588 Which log file name to query. 0=current log file.
6589 </desc>
6590 </param>
6591 <param name="filename" type="wstring" dir="return">
6592 <desc>
6593 On return the full path to the log file or an empty string on error.
6594 </desc>
6595 </param>
6596 </method>
6597
6598 <method name="readLog">
6599 <desc>
6600 Reads the VM log file. The chunk size is limited, so even if you
6601 ask for a big piece there might be less data returned.
6602 </desc>
6603 <param name="idx" type="unsigned long" dir="in">
6604 <desc>
6605 Which log file to read. 0=current log file.
6606 </desc>
6607 </param>
6608 <param name="offset" type="long long" dir="in">
6609 <desc>
6610 Offset in the log file.
6611 </desc>
6612 </param>
6613 <param name="size" type="long long" dir="in">
6614 <desc>
6615 Chunk size to read in the log file.
6616 </desc>
6617 </param>
6618 <param name="data" type="octet" dir="return" safearray="yes">
6619 <desc>
6620 Data read from the log file. A data size of 0 means end of file
6621 if the requested chunk size was not 0. This is the unprocessed
6622 file data, i.e. the line ending style depends on the platform of
6623 the system the server is running on.
6624 </desc>
6625 </param>
6626 </method>
6627
6628 <method name="cloneTo">
6629 <desc>
6630 Creates a clone of this machine, either as a full clone (which means
6631 creating independent copies of the hard disk media, save states and so
6632 on), or as a linked clone (which uses its own differencing media,
6633 sharing the parent media with the source machine).
6634
6635 The target machine object must have been created previously with <link
6636 to="IVirtualBox::createMachine"/>, and all the settings will be
6637 transferred except the VM name and the hardware UUID. You can set the
6638 VM name and the new hardware UUID when creating the target machine. The
6639 network MAC addresses are newly created for all newtwork adapters. You
6640 can change that behaviour with the options parameter. The operation is
6641 performed asynchronously, so the machine object will be not be usable
6642 until the @a progress object signals completion.
6643
6644 <result name="E_INVALIDARG">
6645 @a target is @c null.
6646 </result>
6647 </desc>
6648
6649 <param name="target" type="IMachine" dir="in">
6650 <desc>Target machine object.</desc>
6651 </param>
6652 <param name="mode" type="CloneMode" dir="in">
6653 <desc>Which states should be cloned.</desc>
6654 </param>
6655 <param name="options" type="CloneOptions" dir="in" safearray="yes">
6656 <desc>Options for the cloning operation.</desc>
6657 </param>
6658 <param name="progress" type="IProgress" dir="return">
6659 <desc>Progress object to track the operation completion.</desc>
6660 </param>
6661 </method>
6662
6663 </interface>
6664
6665 <!--
6666 // IConsole
6667 /////////////////////////////////////////////////////////////////////////
6668 -->
6669
6670 <interface
6671 name="IVRDEServerInfo" extends="$unknown"
6672 uuid="714434a1-58c3-4aab-9049-7652c5df113b"
6673 wsmap="struct"
6674 >
6675 <desc>
6676 Contains information about the remote desktop (VRDE) server capabilities and status.
6677 This is used in the <link to="IConsole::VRDEServerInfo" /> attribute.
6678 </desc>
6679
6680 <attribute name="active" type="boolean" readonly="yes">
6681 <desc>
6682 Whether the remote desktop connection is active.
6683 </desc>
6684 </attribute>
6685
6686 <attribute name="port" type="long" readonly="yes">
6687 <desc>
6688 VRDE server port number. If this property is equal to <tt>0</tt>, then
6689 the VRDE server failed to start, usually because there are no free IP
6690 ports to bind to. If this property is equal to <tt>-1</tt>, then the VRDE
6691 server has not yet been started.
6692 </desc>
6693 </attribute>
6694
6695 <attribute name="numberOfClients" type="unsigned long" readonly="yes">
6696 <desc>
6697 How many times a client connected.
6698 </desc>
6699 </attribute>
6700
6701 <attribute name="beginTime" type="long long" readonly="yes">
6702 <desc>
6703 When the last connection was established, in milliseconds since 1970-01-01 UTC.
6704 </desc>
6705 </attribute>
6706
6707 <attribute name="endTime" type="long long" readonly="yes">
6708 <desc>
6709 When the last connection was terminated or the current time, if
6710 connection is still active, in milliseconds since 1970-01-01 UTC.
6711 </desc>
6712 </attribute>
6713
6714 <attribute name="bytesSent" type="long long" readonly="yes">
6715 <desc>
6716 How many bytes were sent in last or current, if still active, connection.
6717 </desc>
6718 </attribute>
6719
6720 <attribute name="bytesSentTotal" type="long long" readonly="yes">
6721 <desc>
6722 How many bytes were sent in all connections.
6723 </desc>
6724 </attribute>
6725
6726 <attribute name="bytesReceived" type="long long" readonly="yes">
6727 <desc>
6728 How many bytes were received in last or current, if still active, connection.
6729 </desc>
6730 </attribute>
6731
6732 <attribute name="bytesReceivedTotal" type="long long" readonly="yes">
6733 <desc>
6734 How many bytes were received in all connections.
6735 </desc>
6736 </attribute>
6737
6738 <attribute name="user" type="wstring" readonly="yes">
6739 <desc>
6740 Login user name supplied by the client.
6741 </desc>
6742 </attribute>
6743
6744 <attribute name="domain" type="wstring" readonly="yes">
6745 <desc>
6746 Login domain name supplied by the client.
6747 </desc>
6748 </attribute>
6749
6750 <attribute name="clientName" type="wstring" readonly="yes">
6751 <desc>
6752 The client name supplied by the client.
6753 </desc>
6754 </attribute>
6755
6756 <attribute name="clientIP" type="wstring" readonly="yes">
6757 <desc>
6758 The IP address of the client.
6759 </desc>
6760 </attribute>
6761
6762 <attribute name="clientVersion" type="unsigned long" readonly="yes">
6763 <desc>
6764 The client software version number.
6765 </desc>
6766 </attribute>
6767
6768 <attribute name="encryptionStyle" type="unsigned long" readonly="yes">
6769 <desc>
6770 Public key exchange method used when connection was established.
6771 Values: 0 - RDP4 public key exchange scheme.
6772 1 - X509 certificates were sent to client.
6773 </desc>
6774 </attribute>
6775
6776 </interface>
6777
6778 <interface
6779 name="IConsole" extends="$unknown"
6780 uuid="db7ab4ca-2a3f-4183-9243-c1208da92392"
6781 wsmap="managed"
6782 >
6783 <desc>
6784 The IConsole interface represents an interface to control virtual
6785 machine execution.
6786
6787 A console object gets created when a machine has been locked for a
6788 particular session (client process) using <link to="IMachine::lockMachine" />
6789 or <link to="IMachine::launchVMProcess"/>. The console object can
6790 then be found in the session's <link to="ISession::console" /> attribute.
6791
6792 Methods of the IConsole interface allow the caller to query the current
6793 virtual machine execution state, pause the machine or power it down, save
6794 the machine state or take a snapshot, attach and detach removable media
6795 and so on.
6796
6797 <see><link to="ISession"/></see>
6798 </desc>
6799
6800 <attribute name="machine" type="IMachine" readonly="yes">
6801 <desc>
6802 Machine object for this console session.
6803 <note>
6804 This is a convenience property, it has the same value as
6805 <link to="ISession::machine"/> of the corresponding session
6806 object.
6807 </note>
6808 </desc>
6809 </attribute>
6810
6811 <attribute name="state" type="MachineState" readonly="yes">
6812 <desc>
6813 Current execution state of the machine.
6814 <note>
6815 This property always returns the same value as the corresponding
6816 property of the IMachine object for this console session.
6817 For the process that owns (executes) the VM, this is the
6818 preferable way of querying the VM state, because no IPC
6819 calls are made.
6820 </note>
6821 </desc>
6822 </attribute>
6823
6824 <attribute name="guest" type="IGuest" readonly="yes">
6825 <desc>Guest object.</desc>
6826 </attribute>
6827
6828 <attribute name="keyboard" type="IKeyboard" readonly="yes">
6829 <desc>
6830 Virtual keyboard object.
6831 <note>
6832 If the machine is not running, any attempt to use
6833 the returned object will result in an error.
6834 </note>
6835 </desc>
6836 </attribute>
6837
6838 <attribute name="mouse" type="IMouse" readonly="yes">
6839 <desc>
6840 Virtual mouse object.
6841 <note>
6842 If the machine is not running, any attempt to use
6843 the returned object will result in an error.
6844 </note>
6845 </desc>
6846 </attribute>
6847
6848 <attribute name="display" type="IDisplay" readonly="yes">
6849 <desc>Virtual display object.
6850 <note>
6851 If the machine is not running, any attempt to use
6852 the returned object will result in an error.
6853 </note>
6854 </desc>
6855 </attribute>
6856
6857 <attribute name="debugger" type="IMachineDebugger" readonly="yes">
6858 <desc>Debugging interface.</desc>
6859 </attribute>
6860
6861 <attribute name="USBDevices" type="IUSBDevice" readonly="yes" safearray="yes">
6862 <desc>
6863 Collection of USB devices currently attached to the virtual
6864 USB controller.
6865 <note>
6866 The collection is empty if the machine is not running.
6867 </note>
6868 </desc>
6869 </attribute>
6870
6871 <attribute name="remoteUSBDevices" type="IHostUSBDevice" readonly="yes" safearray="yes">
6872 <desc>
6873 List of USB devices currently attached to the remote VRDE client.
6874 Once a new device is physically attached to the remote host computer,
6875 it appears in this list and remains there until detached.
6876 </desc>
6877 </attribute>
6878
6879 <attribute name="sharedFolders" type="ISharedFolder" readonly="yes" safearray="yes">
6880 <desc>
6881 Collection of shared folders for the current session. These folders
6882 are called transient shared folders because they are available to the
6883 guest OS running inside the associated virtual machine only for the
6884 duration of the session (as opposed to
6885 <link to="IMachine::sharedFolders"/> which represent permanent shared
6886 folders). When the session is closed (e.g. the machine is powered down),
6887 these folders are automatically discarded.
6888
6889 New shared folders are added to the collection using
6890 <link to="#createSharedFolder"/>. Existing shared folders can be
6891 removed using <link to="#removeSharedFolder"/>.
6892 </desc>
6893 </attribute>
6894
6895 <attribute name="VRDEServerInfo" type="IVRDEServerInfo" readonly="yes">
6896 <desc>
6897 Interface that provides information on Remote Desktop Extension (VRDE) connection.
6898 </desc>
6899 </attribute>
6900
6901 <attribute name="eventSource" type="IEventSource" readonly="yes">
6902 <desc>
6903 Event source for console events.
6904 </desc>
6905 </attribute>
6906
6907 <attribute name="attachedPCIDevices" type="IPCIDeviceAttachment" readonly="yes" safearray="yes">
6908 <desc>Array of PCI devices attached to this machine.</desc>
6909 </attribute>
6910
6911 <attribute name="useHostClipboard" type="boolean">
6912 <desc>
6913 Whether the guest clipboard should be connected to the host one or
6914 whether it should only be allowed access to the VRDE clipboard. This
6915 setting may not affect existing guest clipboard connections which
6916 are already connected to the host clipboard.
6917 </desc>
6918 </attribute>
6919
6920 <method name="powerUp">
6921 <desc>
6922 Starts the virtual machine execution using the current machine
6923 state (that is, its current execution state, current settings and
6924 current storage devices).
6925
6926 <note>
6927 This method is only useful for front-ends that want to actually
6928 execute virtual machines in their own process (like the VirtualBox
6929 or VBoxSDL front-ends). Unless you are intending to write such a
6930 front-end, do not call this method. If you simply want to
6931 start virtual machine execution using one of the existing front-ends
6932 (for example the VirtualBox GUI or headless server), use
6933 <link to="IMachine::launchVMProcess"/> instead; these
6934 front-ends will power up the machine automatically for you.
6935 </note>
6936
6937 If the machine is powered off or aborted, the execution will
6938 start from the beginning (as if the real hardware were just
6939 powered on).
6940
6941 If the machine is in the <link to="MachineState_Saved"/> state,
6942 it will continue its execution the point where the state has
6943 been saved.
6944
6945 If the machine <link to="IMachine::teleporterEnabled"/> property is
6946 enabled on the machine being powered up, the machine will wait for an
6947 incoming teleportation in the <link to="MachineState_TeleportingIn"/>
6948 state. The returned progress object will have at least three
6949 operations where the last three are defined as: (1) powering up and
6950 starting TCP server, (2) waiting for incoming teleportations, and
6951 (3) perform teleportation. These operations will be reflected as the
6952 last three operations of the progress objected returned by
6953 <link to="IMachine::launchVMProcess"/> as well.
6954
6955 <see><link to="#saveState"/></see>
6956
6957 <result name="VBOX_E_INVALID_VM_STATE">
6958 Virtual machine already running.
6959 </result>
6960 <result name="VBOX_E_HOST_ERROR">
6961 Host interface does not exist or name not set.
6962 </result>
6963 <result name="VBOX_E_FILE_ERROR">
6964 Invalid saved state file.
6965 </result>
6966 </desc>
6967 <param name="progress" type="IProgress" dir="return">
6968 <desc>Progress object to track the operation completion.</desc>
6969 </param>
6970 </method>
6971
6972 <method name="powerUpPaused">
6973 <desc>
6974 Identical to powerUp except that the VM will enter the
6975 <link to="MachineState_Paused"/> state, instead of
6976 <link to="MachineState_Running"/>.
6977
6978 <see><link to="#powerUp"/></see>
6979 <result name="VBOX_E_INVALID_VM_STATE">
6980 Virtual machine already running.
6981 </result>
6982 <result name="VBOX_E_HOST_ERROR">
6983 Host interface does not exist or name not set.
6984 </result>
6985 <result name="VBOX_E_FILE_ERROR">
6986 Invalid saved state file.
6987 </result>
6988 </desc>
6989 <param name="progress" type="IProgress" dir="return">
6990 <desc>Progress object to track the operation completion.</desc>
6991 </param>
6992 </method>
6993
6994 <method name="powerDown">
6995 <desc>
6996 Initiates the power down procedure to stop the virtual machine
6997 execution.
6998
6999 The completion of the power down procedure is tracked using the returned
7000 IProgress object. After the operation is complete, the machine will go
7001 to the PoweredOff state.
7002 <result name="VBOX_E_INVALID_VM_STATE">
7003 Virtual machine must be Running, Paused or Stuck to be powered down.
7004 </result>
7005 </desc>
7006 <param name="progress" type="IProgress" dir="return">
7007 <desc>Progress object to track the operation completion.</desc>
7008 </param>
7009 </method>
7010
7011 <method name="reset">
7012 <desc>Resets the virtual machine.
7013 <result name="VBOX_E_INVALID_VM_STATE">
7014 Virtual machine not in Running state.
7015 </result>
7016 <result name="VBOX_E_VM_ERROR">
7017 Virtual machine error in reset operation.
7018 </result>
7019 </desc>
7020 </method>
7021
7022 <method name="pause">
7023 <desc>Pauses the virtual machine execution.
7024 <result name="VBOX_E_INVALID_VM_STATE">
7025 Virtual machine not in Running state.
7026 </result>
7027 <result name="VBOX_E_VM_ERROR">
7028 Virtual machine error in suspend operation.
7029 </result>
7030 </desc>
7031 </method>
7032
7033 <method name="resume">
7034 <desc>Resumes the virtual machine execution.
7035 <result name="VBOX_E_INVALID_VM_STATE">
7036 Virtual machine not in Paused state.
7037 </result>
7038 <result name="VBOX_E_VM_ERROR">
7039 Virtual machine error in resume operation.
7040 </result>
7041 </desc>
7042 </method>
7043
7044 <method name="powerButton">
7045 <desc>Sends the ACPI power button event to the guest.
7046 <result name="VBOX_E_INVALID_VM_STATE">
7047 Virtual machine not in Running state.
7048 </result>
7049 <result name="VBOX_E_PDM_ERROR">
7050 Controlled power off failed.
7051 </result>
7052 </desc>
7053 </method>
7054
7055 <method name="sleepButton">
7056 <desc>Sends the ACPI sleep button event to the guest.
7057 <result name="VBOX_E_INVALID_VM_STATE">
7058 Virtual machine not in Running state.
7059 </result>
7060 <result name="VBOX_E_PDM_ERROR">
7061 Sending sleep button event failed.
7062 </result>
7063 </desc>
7064 </method>
7065
7066 <method name="getPowerButtonHandled">
7067 <desc>Checks if the last power button event was handled by guest.
7068 <result name="VBOX_E_PDM_ERROR">
7069 Checking if the event was handled by the guest OS failed.
7070 </result>
7071 </desc>
7072 <param name="handled" type="boolean" dir="return"/>
7073 </method>
7074
7075 <method name="getGuestEnteredACPIMode">
7076 <desc>Checks if the guest entered the ACPI mode G0 (working) or
7077 G1 (sleeping). If this method returns @c false, the guest will
7078 most likely not respond to external ACPI events.
7079 <result name="VBOX_E_INVALID_VM_STATE">
7080 Virtual machine not in Running state.
7081 </result>
7082 </desc>
7083 <param name="entered" type="boolean" dir="return"/>
7084 </method>
7085
7086 <method name="saveState">
7087 <desc>
7088 Saves the current execution state of a running virtual machine
7089 and stops its execution.
7090
7091 After this operation completes, the machine will go to the
7092 Saved state. Next time it is powered up, this state will
7093 be restored and the machine will continue its execution from
7094 the place where it was saved.
7095
7096 This operation differs from taking a snapshot to the effect
7097 that it doesn't create new differencing media. Also, once
7098 the machine is powered up from the state saved using this method,
7099 the saved state is deleted, so it will be impossible to return
7100 to this state later.
7101
7102 <note>
7103 On success, this method implicitly calls
7104 <link to="IMachine::saveSettings"/> to save all current machine
7105 settings (including runtime changes to the DVD medium, etc.).
7106 Together with the impossibility to change any VM settings when it is
7107 in the Saved state, this guarantees adequate hardware
7108 configuration of the machine when it is restored from the saved
7109 state file.
7110 </note>
7111
7112 <note>
7113 The machine must be in the Running or Paused state, otherwise
7114 the operation will fail.
7115 </note>
7116 <result name="VBOX_E_INVALID_VM_STATE">
7117 Virtual machine state neither Running nor Paused.
7118 </result>
7119 <result name="VBOX_E_FILE_ERROR">
7120 Failed to create directory for saved state file.
7121 </result>
7122
7123 <see><link to="#takeSnapshot"/></see>
7124 </desc>
7125 <param name="progress" type="IProgress" dir="return">
7126 <desc>Progress object to track the operation completion.</desc>
7127 </param>
7128 </method>
7129
7130 <method name="adoptSavedState">
7131 <desc>
7132 Associates the given saved state file to the virtual machine.
7133
7134 On success, the machine will go to the Saved state. Next time it is
7135 powered up, it will be restored from the adopted saved state and
7136 continue execution from the place where the saved state file was
7137 created.
7138
7139 The specified saved state file path may be absolute or relative to the
7140 folder the VM normally saves the state to (usually,
7141 <link to="IMachine::snapshotFolder"/>).
7142
7143 <note>
7144 It's a caller's responsibility to make sure the given saved state
7145 file is compatible with the settings of this virtual machine that
7146 represent its virtual hardware (memory size, storage disk configuration
7147 etc.). If there is a mismatch, the behavior of the virtual machine
7148 is undefined.
7149 </note>
7150 <result name="VBOX_E_INVALID_VM_STATE">
7151 Virtual machine state neither PoweredOff nor Aborted.
7152 </result>
7153 </desc>
7154 <param name="savedStateFile" type="wstring" dir="in">
7155 <desc>Path to the saved state file to adopt.</desc>
7156 </param>
7157 </method>
7158
7159 <method name="discardSavedState">
7160 <desc>
7161 Forcibly resets the machine to "Powered Off" state if it is
7162 currently in the "Saved" state (previously created by <link to="#saveState"/>).
7163 Next time the machine is powered up, a clean boot will occur.
7164 <note>
7165 This operation is equivalent to resetting or powering off
7166 the machine without doing a proper shutdown of the guest
7167 operating system; as with resetting a running phyiscal
7168 computer, it can can lead to data loss.
7169 </note>
7170 If @a fRemoveFile is @c true, the file in the machine directory
7171 into which the machine state was saved is also deleted. If
7172 this is @c false, then the state can be recovered and later
7173 re-inserted into a machine using <link to="#adoptSavedState" />.
7174 The location of the file can be found in the
7175 <link to="IMachine::stateFilePath" /> attribute.
7176 <result name="VBOX_E_INVALID_VM_STATE">
7177 Virtual machine not in state Saved.
7178 </result>
7179 </desc>
7180 <param name="fRemoveFile" type="boolean" dir="in" >
7181 <desc>Whether to also remove the saved state file.</desc>
7182 </param>
7183 </method>
7184
7185 <method name="getDeviceActivity">
7186 <desc>
7187 Gets the current activity type of a given device or device group.
7188 <result name="E_INVALIDARG">
7189 Invalid device type.
7190 </result>
7191 </desc>
7192 <param name="type" type="DeviceType" dir="in"/>
7193 <param name="activity" type="DeviceActivity" dir="return"/>
7194 </method>
7195
7196 <method name="attachUSBDevice">
7197 <desc>
7198 Attaches a host USB device with the given UUID to the
7199 USB controller of the virtual machine.
7200
7201 The device needs to be in one of the following states:
7202 <link to="USBDeviceState_Busy"/>,
7203 <link to="USBDeviceState_Available"/> or
7204 <link to="USBDeviceState_Held"/>,
7205 otherwise an error is immediately returned.
7206
7207 When the device state is
7208 <link to="USBDeviceState_Busy">Busy</link>, an error may also
7209 be returned if the host computer refuses to release it for some reason.
7210
7211 <see><link to="IUSBController::deviceFilters"/>,
7212 <link to="USBDeviceState"/></see>
7213 <result name="VBOX_E_INVALID_VM_STATE">
7214 Virtual machine state neither Running nor Paused.
7215 </result>
7216 <result name="VBOX_E_PDM_ERROR">
7217 Virtual machine does not have a USB controller.
7218 </result>
7219 </desc>
7220 <param name="id" type="uuid" mod="string" dir="in">
7221 <desc>UUID of the host USB device to attach.</desc>
7222 </param>
7223 </method>
7224
7225 <method name="detachUSBDevice">
7226 <desc>
7227 Detaches an USB device with the given UUID from the USB controller
7228 of the virtual machine.
7229
7230 After this method succeeds, the VirtualBox server re-initiates
7231 all USB filters as if the device were just physically attached
7232 to the host, but filters of this machine are ignored to avoid
7233 a possible automatic re-attachment.
7234
7235 <see><link to="IUSBController::deviceFilters"/>,
7236 <link to="USBDeviceState"/></see>
7237
7238 <result name="VBOX_E_PDM_ERROR">
7239 Virtual machine does not have a USB controller.
7240 </result>
7241 <result name="E_INVALIDARG">
7242 USB device not attached to this virtual machine.
7243 </result>
7244 </desc>
7245 <param name="id" type="uuid" mod="string" dir="in">
7246 <desc>UUID of the USB device to detach.</desc>
7247 </param>
7248 <param name="device" type="IUSBDevice" dir="return">
7249 <desc>Detached USB device.</desc>
7250 </param>
7251 </method>
7252
7253 <method name="findUSBDeviceByAddress">
7254 <desc>
7255 Searches for a USB device with the given host address.
7256
7257 <result name="VBOX_E_OBJECT_NOT_FOUND">
7258 Given @c name does not correspond to any USB device.
7259 </result>
7260
7261 <see><link to="IUSBDevice::address"/></see>
7262 </desc>
7263 <param name="name" type="wstring" dir="in">
7264 <desc>
7265 Address of the USB device (as assigned by the host) to
7266 search for.
7267 </desc>
7268 </param>
7269 <param name="device" type="IUSBDevice" dir="return">
7270 <desc>Found USB device object.</desc>
7271 </param>
7272 </method>
7273
7274 <method name="findUSBDeviceById">
7275 <desc>
7276 Searches for a USB device with the given UUID.
7277
7278 <result name="VBOX_E_OBJECT_NOT_FOUND">
7279 Given @c id does not correspond to any USB device.
7280 </result>
7281
7282 <see><link to="IUSBDevice::id"/></see>
7283 </desc>
7284 <param name="id" type="uuid" mod="string" dir="in">
7285 <desc>UUID of the USB device to search for.</desc>
7286 </param>
7287 <param name="device" type="IUSBDevice" dir="return">
7288 <desc>Found USB device object.</desc>
7289 </param>
7290 </method>
7291
7292 <method name="createSharedFolder">
7293 <desc>
7294 Creates a transient new shared folder by associating the given logical
7295 name with the given host path, adds it to the collection of shared
7296 folders and starts sharing it. Refer to the description of
7297 <link to="ISharedFolder"/> to read more about logical names.
7298
7299 <result name="VBOX_E_INVALID_VM_STATE">
7300 Virtual machine in Saved state or currently changing state.
7301 </result>
7302 <result name="VBOX_E_FILE_ERROR">
7303 Shared folder already exists or not accessible.
7304 </result>
7305 </desc>
7306 <param name="name" type="wstring" dir="in">
7307 <desc>Unique logical name of the shared folder.</desc>
7308 </param>
7309 <param name="hostPath" type="wstring" dir="in">
7310 <desc>Full path to the shared folder in the host file system.</desc>
7311 </param>
7312 <param name="writable" type="boolean" dir="in">
7313 <desc>Whether the share is writable or readonly</desc>
7314 </param>
7315 <param name="automount" type="boolean" dir="in">
7316 <desc>Whether the share gets automatically mounted by the guest
7317 or not.</desc>
7318 </param>
7319 </method>
7320
7321 <method name="removeSharedFolder">
7322 <desc>
7323 Removes a transient shared folder with the given name previously
7324 created by <link to="#createSharedFolder"/> from the collection of
7325 shared folders and stops sharing it.
7326 <result name="VBOX_E_INVALID_VM_STATE">
7327 Virtual machine in Saved state or currently changing state.
7328 </result>
7329 <result name="VBOX_E_FILE_ERROR">
7330 Shared folder does not exists.
7331 </result>
7332 </desc>
7333 <param name="name" type="wstring" dir="in">
7334 <desc>Logical name of the shared folder to remove.</desc>
7335 </param>
7336 </method>
7337
7338 <method name="takeSnapshot">
7339 <desc>
7340 Saves the current execution state
7341 and all settings of the machine and creates differencing images
7342 for all normal (non-independent) media.
7343 See <link to="ISnapshot" /> for an introduction to snapshots.
7344
7345 This method can be called for a PoweredOff, Saved (see
7346 <link to="#saveState"/>), Running or
7347 Paused virtual machine. When the machine is PoweredOff, an
7348 offline snapshot is created. When the machine is Running a live
7349 snapshot is created, and an online snapshot is created when Paused.
7350
7351 The taken snapshot is always based on the
7352 <link to="IMachine::currentSnapshot">current snapshot</link>
7353 of the associated virtual machine and becomes a new current snapshot.
7354
7355 <note>
7356 This method implicitly calls <link to="IMachine::saveSettings"/> to
7357 save all current machine settings before taking an offline snapshot.
7358 </note>
7359
7360 <result name="VBOX_E_INVALID_VM_STATE">
7361 Virtual machine currently changing state.
7362 </result>
7363 </desc>
7364 <param name="name" type="wstring" dir="in">
7365 <desc>Short name for the snapshot.</desc>
7366 </param>
7367 <param name="description" type="wstring" dir="in">
7368 <desc>Optional description of the snapshot.</desc>
7369 </param>
7370 <param name="progress" type="IProgress" dir="return">
7371 <desc>Progress object to track the operation completion.</desc>
7372 </param>
7373 </method>
7374
7375 <method name="deleteSnapshot">
7376 <desc>
7377 Starts deleting the specified snapshot asynchronously.
7378 See <link to="ISnapshot" /> for an introduction to snapshots.
7379
7380 The execution state and settings of the associated machine stored in
7381 the snapshot will be deleted. The contents of all differencing media of
7382 this snapshot will be merged with the contents of their dependent child
7383 media to keep the medium chain valid (in other words, all changes
7384 represented by media being deleted will be propagated to their child
7385 medium). After that, this snapshot's differencing medium will be
7386 deleted. The parent of this snapshot will become a new parent for all
7387 its child snapshots.
7388
7389 If the deleted snapshot is the current one, its parent snapshot will
7390 become a new current snapshot. The current machine state is not directly
7391 affected in this case, except that currently attached differencing
7392 media based on media of the deleted snapshot will be also merged as
7393 described above.
7394
7395 If the deleted snapshot is the first or current snapshot, then the
7396 respective IMachine attributes will be adjusted. Deleting the current
7397 snapshot will also implicitly call <link to="IMachine::saveSettings"/>
7398 to make all current machine settings permanent.
7399
7400 Deleting a snapshot has the following preconditions:
7401
7402 <ul>
7403 <li>Child media of all normal media of the deleted snapshot
7404 must be accessible (see <link to="IMedium::state"/>) for this
7405 operation to succeed. If only one running VM refers to all images
7406 which participates in merging the operation can be performed while
7407 the VM is running. Otherwise all virtual machines whose media are
7408 directly or indirectly based on the media of deleted snapshot must
7409 be powered off. In any case, online snapshot deleting usually is
7410 slower than the same operation without any running VM.</li>
7411
7412 <li>You cannot delete the snapshot if a medium attached to it has
7413 more than one child medium (differencing images) because otherwise
7414 merging would be impossible. This might be the case if there is
7415 more than one child snapshot or differencing images were created
7416 for other reason (e.g. implicitly because of multiple machine
7417 attachments).</li>
7418 </ul>
7419
7420 The virtual machine's <link to="IMachine::state">state</link> is
7421 changed to "DeletingSnapshot", "DeletingSnapshotOnline" or
7422 "DeletingSnapshotPaused" while this operation is in progress.
7423
7424 <note>
7425 Merging medium contents can be very time and disk space
7426 consuming, if these media are big in size and have many
7427 children. However, if the snapshot being deleted is the last
7428 (head) snapshot on the branch, the operation will be rather
7429 quick.
7430 </note>
7431 <result name="VBOX_E_INVALID_VM_STATE">
7432 The running virtual machine prevents deleting this snapshot. This
7433 happens only in very specific situations, usually snapshots can be
7434 deleted without trouble while a VM is running. The error message
7435 text explains the reason for the failure.
7436 </result>
7437 </desc>
7438 <param name="id" type="uuid" mod="string" dir="in">
7439 <desc>UUID of the snapshot to delete.</desc>
7440 </param>
7441 <param name="progress" type="IProgress" dir="return">
7442 <desc>Progress object to track the operation completion.</desc>
7443 </param>
7444 </method>
7445
7446 <method name="deleteSnapshotAndAllChildren">
7447 <desc>
7448 Starts deleting the specified snapshot and all its children
7449 asynchronously. See <link to="ISnapshot" /> for an introduction to
7450 snapshots. The conditions and many details are the same as with
7451 <link to="#deleteSnapshot"/>.
7452
7453 This operation is very fast if the snapshot subtree does not include
7454 the current state. It is still significantly faster than deleting the
7455 snapshots one by one if the current state is in the subtree and there
7456 are more than one snapshots from current state to the snapshot which
7457 marks the subtree, since it eliminates the incremental image merging.
7458
7459 <note>This API method is right now not implemented!</note>
7460
7461 <result name="VBOX_E_INVALID_VM_STATE">
7462 The running virtual machine prevents deleting this snapshot. This
7463 happens only in very specific situations, usually snapshots can be
7464 deleted without trouble while a VM is running. The error message
7465 text explains the reason for the failure.
7466 </result>
7467 <result name="E_NOTIMPL">
7468 The method is not implemented yet.
7469 </result>
7470 </desc>
7471 <param name="id" type="uuid" mod="string" dir="in">
7472 <desc>UUID of the snapshot to delete, including all its children.</desc>
7473 </param>
7474 <param name="progress" type="IProgress" dir="return">
7475 <desc>Progress object to track the operation completion.</desc>
7476 </param>
7477 </method>
7478
7479 <method name="deleteSnapshotRange">
7480 <desc>
7481 Starts deleting the specified snapshot range. This is limited to
7482 linear snapshot lists, which means there may not be any other child
7483 snapshots other than the direct sequence between the start and end
7484 snapshot. If the start and end snapshot point to the same snapshot this
7485 method is completely equivalent to <link to="#deleteSnapshot"/>. See
7486 <link to="ISnapshot" /> for an introduction to snapshots. The
7487 conditions and many details are the same as with
7488 <link to="#deleteSnapshot"/>.
7489
7490 This operation is generally faster than deleting snapshots one by one
7491 and often also needs less extra disk space before freeing up disk space
7492 by deleting the removed disk images corresponding to the snapshot.
7493
7494 <note>This API method is right now not implemented!</note>
7495
7496 <result name="VBOX_E_INVALID_VM_STATE">
7497 The running virtual machine prevents deleting this snapshot. This
7498 happens only in very specific situations, usually snapshots can be
7499 deleted without trouble while a VM is running. The error message
7500 text explains the reason for the failure.
7501 </result>
7502 <result name="E_NOTIMPL">
7503 The method is not implemented yet.
7504 </result>
7505 </desc>
7506 <param name="startId" type="uuid" mod="string" dir="in">
7507 <desc>UUID of the first snapshot to delete.</desc>
7508 </param>
7509 <param name="endId" type="uuid" mod="string" dir="in">
7510 <desc>UUID of the last snapshot to delete.</desc>
7511 </param>
7512 <param name="progress" type="IProgress" dir="return">
7513 <desc>Progress object to track the operation completion.</desc>
7514 </param>
7515 </method>
7516
7517 <method name="restoreSnapshot">
7518 <desc>
7519 Starts resetting the machine's current state to the state contained
7520 in the given snapshot, asynchronously. All current settings of the
7521 machine will be reset and changes stored in differencing media
7522 will be lost.
7523 See <link to="ISnapshot" /> for an introduction to snapshots.
7524
7525 After this operation is successfully completed, new empty differencing
7526 media are created for all normal media of the machine.
7527
7528 If the given snapshot is an online snapshot, the machine will go to
7529 the <link to="MachineState_Saved"> saved state</link>, so that the
7530 next time it is powered on, the execution state will be restored
7531 from the state of the snapshot.
7532
7533 <note>
7534 The machine must not be running, otherwise the operation will fail.
7535 </note>
7536
7537 <note>
7538 If the machine state is <link to="MachineState_Saved">Saved</link>
7539 prior to this operation, the saved state file will be implicitly
7540 deleted (as if <link to="IConsole::discardSavedState"/> were
7541 called).
7542 </note>
7543
7544 <result name="VBOX_E_INVALID_VM_STATE">
7545 Virtual machine is running.
7546 </result>
7547 </desc>
7548 <param name="snapshot" type="ISnapshot" dir="in">
7549 <desc>The snapshot to restore the VM state from.</desc>
7550 </param>
7551 <param name="progress" type="IProgress" dir="return">
7552 <desc>Progress object to track the operation completion.</desc>
7553 </param>
7554 </method>
7555
7556 <method name="teleport">
7557 <desc>
7558 Teleport the VM to a different host machine or process.
7559
7560 TODO explain the details.
7561
7562 <result name="VBOX_E_INVALID_VM_STATE">
7563 Virtual machine not running or paused.
7564 </result>
7565 </desc>
7566 <param name="hostname" type="wstring" dir="in">
7567 <desc>The name or IP of the host to teleport to.</desc>
7568 </param>
7569 <param name="tcpport" type="unsigned long" dir="in">
7570 <desc>The TCP port to connect to (1..65535).</desc>
7571 </param>
7572 <param name="password" type="wstring" dir="in">
7573 <desc>The password.</desc>
7574 </param>
7575 <param name="maxDowntime" type="unsigned long" dir="in">
7576 <desc>
7577 The maximum allowed downtime given as milliseconds. 0 is not a valid
7578 value. Recommended value: 250 ms.
7579
7580 The higher the value is, the greater the chance for a successful
7581 teleportation. A small value may easily result in the teleportation
7582 process taking hours and eventually fail.
7583
7584 <note>
7585 The current implementation treats this a guideline, not as an
7586 absolute rule.
7587 </note>
7588 </desc>
7589 </param>
7590 <param name="progress" type="IProgress" dir="return">
7591 <desc>Progress object to track the operation completion.</desc>
7592 </param>
7593 </method>
7594
7595 </interface>
7596
7597 <!--
7598 // IHost
7599 /////////////////////////////////////////////////////////////////////////
7600 -->
7601
7602 <enum
7603 name="HostNetworkInterfaceMediumType"
7604 uuid="1aa54aaf-2497-45a2-bfb1-8eb225e93d5b"
7605 >
7606 <desc>
7607 Type of encapsulation. Ethernet encapsulation includes both wired and
7608 wireless Ethernet connections.
7609 <see><link to="IHostNetworkInterface"/></see>
7610 </desc>
7611
7612 <const name="Unknown" value="0">
7613 <desc>
7614 The type of interface cannot be determined.
7615 </desc>
7616 </const>
7617 <const name="Ethernet" value="1">
7618 <desc>
7619 Ethernet frame encapsulation.
7620 </desc>
7621 </const>
7622 <const name="PPP" value="2">
7623 <desc>
7624 Point-to-point protocol encapsulation.
7625 </desc>
7626 </const>
7627 <const name="SLIP" value="3">
7628 <desc>
7629 Serial line IP encapsulation.
7630 </desc>
7631 </const>
7632 </enum>
7633
7634 <enum
7635 name="HostNetworkInterfaceStatus"
7636 uuid="CC474A69-2710-434B-8D99-C38E5D5A6F41"
7637 >
7638 <desc>
7639 Current status of the interface.
7640 <see><link to="IHostNetworkInterface"/></see>
7641 </desc>
7642
7643 <const name="Unknown" value="0">
7644 <desc>
7645 The state of interface cannot be determined.
7646 </desc>
7647 </const>
7648 <const name="Up" value="1">
7649 <desc>
7650 The interface is fully operational.
7651 </desc>
7652 </const>
7653 <const name="Down" value="2">
7654 <desc>
7655 The interface is not functioning.
7656 </desc>
7657 </const>
7658 </enum>
7659
7660 <enum
7661 name="HostNetworkInterfaceType"
7662 uuid="67431b00-9946-48a2-bc02-b25c5919f4f3"
7663 >
7664 <desc>
7665 Network interface type.
7666 </desc>
7667 <const name="Bridged" value="1"/>
7668 <const name="HostOnly" value="2"/>
7669 </enum>
7670
7671 <interface
7672 name="IHostNetworkInterface" extends="$unknown"
7673 uuid="87a4153d-6889-4dd6-9654-2e9ff0ae8dec"
7674 wsmap="managed"
7675 >
7676 <desc>
7677 Represents one of host's network interfaces. IP V6 address and network
7678 mask are strings of 32 hexdecimal digits grouped by four. Groups are
7679 separated by colons.
7680 For example, fe80:0000:0000:0000:021e:c2ff:fed2:b030.
7681 </desc>
7682 <attribute name="name" type="wstring" readonly="yes">
7683 <desc>Returns the host network interface name.</desc>
7684 </attribute>
7685
7686 <attribute name="id" type="uuid" mod="string" readonly="yes">
7687 <desc>Returns the interface UUID.</desc>
7688 </attribute>
7689
7690 <attribute name="networkName" type="wstring" readonly="yes">
7691 <desc>Returns the name of a virtual network the interface gets attached to.</desc>
7692 </attribute>
7693
7694 <attribute name="DHCPEnabled" type="boolean" readonly="yes">
7695 <desc>Specifies whether the DHCP is enabled for the interface.</desc>
7696 </attribute>
7697
7698 <attribute name="IPAddress" type="wstring" readonly="yes">
7699 <desc>Returns the IP V4 address of the interface.</desc>
7700 </attribute>
7701
7702 <attribute name="networkMask" type="wstring" readonly="yes">
7703 <desc>Returns the network mask of the interface.</desc>
7704 </attribute>
7705
7706 <attribute name="IPV6Supported" type="boolean" readonly="yes">
7707 <desc>Specifies whether the IP V6 is supported/enabled for the interface.</desc>
7708 </attribute>
7709
7710 <attribute name="IPV6Address" type="wstring" readonly="yes">
7711 <desc>Returns the IP V6 address of the interface.</desc>
7712 </attribute>
7713
7714 <attribute name="IPV6NetworkMaskPrefixLength" type="unsigned long" readonly="yes">
7715 <desc>Returns the length IP V6 network mask prefix of the interface.</desc>
7716 </attribute>
7717
7718 <attribute name="hardwareAddress" type="wstring" readonly="yes">
7719 <desc>Returns the hardware address. For Ethernet it is MAC address.</desc>
7720 </attribute>
7721
7722 <attribute name="mediumType" type="HostNetworkInterfaceMediumType" readonly="yes">
7723 <desc>Type of protocol encapsulation used.</desc>
7724 </attribute>
7725
7726 <attribute name="status" type="HostNetworkInterfaceStatus" readonly="yes">
7727 <desc>Status of the interface.</desc>
7728 </attribute>
7729
7730 <attribute name="interfaceType" type="HostNetworkInterfaceType" readonly="yes">
7731 <desc>specifies the host interface type.</desc>
7732 </attribute>
7733
7734 <method name="enableStaticIPConfig">
7735 <desc>sets and enables the static IP V4 configuration for the given interface.</desc>
7736 <param name="IPAddress" type="wstring" dir="in">
7737 <desc>
7738 IP address.
7739 </desc>
7740 </param>
7741 <param name="networkMask" type="wstring" dir="in">
7742 <desc>
7743 network mask.
7744 </desc>
7745 </param>
7746 </method>
7747
7748 <method name="enableStaticIPConfigV6">
7749 <desc>sets and enables the static IP V6 configuration for the given interface.</desc>
7750 <param name="IPV6Address" type="wstring" dir="in">
7751 <desc>
7752 IP address.
7753 </desc>
7754 </param>
7755 <param name="IPV6NetworkMaskPrefixLength" type="unsigned long" dir="in">
7756 <desc>
7757 network mask.
7758 </desc>
7759 </param>
7760 </method>
7761
7762 <method name="enableDynamicIPConfig">
7763 <desc>enables the dynamic IP configuration.</desc>
7764 </method>
7765
7766 <method name="DHCPRediscover">
7767 <desc>refreshes the IP configuration for DHCP-enabled interface.</desc>
7768 </method>
7769
7770 </interface>
7771
7772 <interface
7773 name="IHost" extends="$unknown"
7774 uuid="30678943-32df-4830-b413-931b25ac86a0"
7775 wsmap="managed"
7776 >
7777 <desc>
7778 The IHost interface represents the physical machine that this VirtualBox
7779 installation runs on.
7780
7781 An object implementing this interface is returned by the
7782 <link to="IVirtualBox::host" /> attribute. This interface contains
7783 read-only information about the host's physical hardware (such as what
7784 processors and disks are available, what the host operating system is,
7785 and so on) and also allows for manipulating some of the host's hardware,
7786 such as global USB device filters and host interface networking.
7787
7788 </desc>
7789 <attribute name="DVDDrives" type="IMedium" readonly="yes" safearray="yes">
7790 <desc>List of DVD drives available on the host.</desc>
7791 </attribute>
7792
7793 <attribute name="floppyDrives" type="IMedium" readonly="yes" safearray="yes">
7794 <desc>List of floppy drives available on the host.</desc>
7795 </attribute>
7796
7797 <attribute name="USBDevices" type="IHostUSBDevice" readonly="yes" safearray="yes">
7798 <desc>
7799 List of USB devices currently attached to the host.
7800 Once a new device is physically attached to the host computer,
7801 it appears in this list and remains there until detached.
7802
7803 <note>
7804 If USB functionality is not available in the given edition of
7805 VirtualBox, this method will set the result code to @c E_NOTIMPL.
7806 </note>
7807 </desc>
7808 </attribute>
7809
7810 <attribute name="USBDeviceFilters" type="IHostUSBDeviceFilter" readonly="yes" safearray="yes">
7811 <desc>
7812 List of USB device filters in action.
7813 When a new device is physically attached to the host computer,
7814 filters from this list are applied to it (in order they are stored
7815 in the list). The first matched filter will determine the
7816 <link to="IHostUSBDeviceFilter::action">action</link>
7817 performed on the device.
7818
7819 Unless the device is ignored by these filters, filters of all
7820 currently running virtual machines
7821 (<link to="IUSBController::deviceFilters"/>) are applied to it.
7822
7823 <note>
7824 If USB functionality is not available in the given edition of
7825 VirtualBox, this method will set the result code to @c E_NOTIMPL.
7826 </note>
7827
7828 <see><link to="IHostUSBDeviceFilter"/>,
7829 <link to="USBDeviceState"/></see>
7830 </desc>
7831 </attribute>
7832
7833 <attribute name="networkInterfaces" type="IHostNetworkInterface" safearray="yes" readonly="yes">
7834 <desc>List of host network interfaces currently defined on the host.</desc>
7835 </attribute>
7836
7837 <attribute name="processorCount" type="unsigned long" readonly="yes">
7838 <desc>Number of (logical) CPUs installed in the host system.</desc>
7839 </attribute>
7840
7841 <attribute name="processorOnlineCount" type="unsigned long" readonly="yes">
7842 <desc>Number of (logical) CPUs online in the host system.</desc>
7843 </attribute>
7844
7845 <attribute name="processorCoreCount" type="unsigned long" readonly="yes">
7846 <desc>Number of physical processor cores installed in the host system.</desc>
7847 </attribute>
7848
7849 <method name="getProcessorSpeed">
7850 <desc>Query the (approximate) maximum speed of a specified host CPU in
7851 Megahertz.
7852 </desc>
7853 <param name="cpuId" type="unsigned long" dir="in">
7854 <desc>
7855 Identifier of the CPU.
7856 </desc>
7857 </param>
7858 <param name="speed" type="unsigned long" dir="return">
7859 <desc>
7860 Speed value. 0 is returned if value is not known or @a cpuId is
7861 invalid.
7862 </desc>
7863 </param>
7864 </method>
7865
7866 <method name="getProcessorFeature">
7867 <desc>Query whether a CPU feature is supported or not.</desc>
7868 <param name="feature" type="ProcessorFeature" dir="in">
7869 <desc>
7870 CPU Feature identifier.
7871 </desc>
7872 </param>
7873 <param name="supported" type="boolean" dir="return">
7874 <desc>
7875 Feature is supported or not.
7876 </desc>
7877 </param>
7878 </method>
7879
7880 <method name="getProcessorDescription">
7881 <desc>Query the model string of a specified host CPU.
7882 </desc>
7883 <param name="cpuId" type="unsigned long" dir="in">
7884 <desc>
7885 Identifier of the CPU.
7886 <note>
7887 The current implementation might not necessarily return the
7888 description for this exact CPU.
7889 </note>
7890 </desc>
7891 </param>
7892 <param name="description" type="wstring" dir="return">
7893 <desc>
7894 Model string. An empty string is returned if value is not known or
7895 @a cpuId is invalid.
7896 </desc>
7897 </param>
7898 </method>
7899
7900 <method name="getProcessorCPUIDLeaf">
7901 <desc>
7902 Returns the CPU cpuid information for the specified leaf.
7903 </desc>
7904 <param name="cpuId" type="unsigned long" dir="in">
7905 <desc>
7906 Identifier of the CPU. The CPU most be online.
7907 <note>
7908 The current implementation might not necessarily return the
7909 description for this exact CPU.
7910 </note>
7911 </desc>
7912 </param>
7913 <param name="leaf" type="unsigned long" dir="in">
7914 <desc>
7915 CPUID leaf index (eax).
7916 </desc>
7917 </param>
7918 <param name="subLeaf" type="unsigned long" dir="in">
7919 <desc>
7920 CPUID leaf sub index (ecx). This currently only applies to cache
7921 information on Intel CPUs. Use 0 if retrieving values for
7922 <link to="IMachine::setCPUIDLeaf"/>.
7923 </desc>
7924 </param>
7925 <param name="valEax" type="unsigned long" dir="out">
7926 <desc>
7927 CPUID leaf value for register eax.
7928 </desc>
7929 </param>
7930 <param name="valEbx" type="unsigned long" dir="out">
7931 <desc>
7932 CPUID leaf value for register ebx.
7933 </desc>
7934 </param>
7935 <param name="valEcx" type="unsigned long" dir="out">
7936 <desc>
7937 CPUID leaf value for register ecx.
7938 </desc>
7939 </param>
7940 <param name="valEdx" type="unsigned long" dir="out">
7941 <desc>
7942 CPUID leaf value for register edx.
7943 </desc>
7944 </param>
7945 </method>
7946
7947 <attribute name="memorySize" type="unsigned long" readonly="yes">
7948 <desc>Amount of system memory in megabytes installed in the host system.</desc>
7949 </attribute>
7950
7951 <attribute name="memoryAvailable" type="unsigned long" readonly="yes">
7952 <desc>Available system memory in the host system.</desc>
7953 </attribute>
7954
7955 <attribute name="operatingSystem" type="wstring" readonly="yes">
7956 <desc>Name of the host system's operating system.</desc>
7957 </attribute>
7958
7959 <attribute name="OSVersion" type="wstring" readonly="yes">
7960 <desc>Host operating system's version string.</desc>
7961 </attribute>
7962
7963 <attribute name="UTCTime" type="long long" readonly="yes">
7964 <desc>Returns the current host time in milliseconds since 1970-01-01 UTC.</desc>
7965 </attribute>
7966
7967 <attribute name="acceleration3DAvailable" type="boolean" readonly="yes">
7968 <desc>Returns @c true when the host supports 3D hardware acceleration.</desc>
7969 </attribute>
7970
7971 <method name="createHostOnlyNetworkInterface">
7972 <desc>
7973 Creates a new adapter for Host Only Networking.
7974 <result name="E_INVALIDARG">
7975 Host network interface @a name already exists.
7976 </result>
7977 </desc>
7978 <param name="hostInterface" type="IHostNetworkInterface" dir="out">
7979 <desc>
7980 Created host interface object.
7981 </desc>
7982 </param>
7983 <param name="progress" type="IProgress" dir="return">
7984 <desc>
7985 Progress object to track the operation completion.
7986 </desc>
7987 </param>
7988 </method>
7989
7990 <method name="removeHostOnlyNetworkInterface">
7991 <desc>
7992 Removes the given Host Only Networking interface.
7993 <result name="VBOX_E_OBJECT_NOT_FOUND">
7994 No host network interface matching @a id found.
7995 </result>
7996 </desc>
7997 <param name="id" type="uuid" mod="string" dir="in">
7998 <desc>
7999 Adapter GUID.
8000 </desc>
8001 </param>
8002 <param name="progress" type="IProgress" dir="return">
8003 <desc>
8004 Progress object to track the operation completion.
8005 </desc>
8006 </param>
8007 </method>
8008
8009 <method name="createUSBDeviceFilter">
8010 <desc>
8011 Creates a new USB device filter. All attributes except
8012 the filter name are set to empty (any match),
8013 <i>active</i> is @c false (the filter is not active).
8014
8015 The created filter can be added to the list of filters using
8016 <link to="#insertUSBDeviceFilter"/>.
8017
8018 <see><link to="#USBDeviceFilters"/></see>
8019 </desc>
8020 <param name="name" type="wstring" dir="in">
8021 <desc>
8022 Filter name. See <link to="IUSBDeviceFilter::name"/> for more information.
8023 </desc>
8024 </param>
8025 <param name="filter" type="IHostUSBDeviceFilter" dir="return">
8026 <desc>Created filter object.</desc>
8027 </param>
8028 </method>
8029
8030 <method name="insertUSBDeviceFilter">
8031 <desc>
8032 Inserts the given USB device to the specified position
8033 in the list of filters.
8034
8035 Positions are numbered starting from @c 0. If the specified
8036 position is equal to or greater than the number of elements in
8037 the list, the filter is added at the end of the collection.
8038
8039 <note>
8040 Duplicates are not allowed, so an attempt to insert a
8041 filter already in the list is an error.
8042 </note>
8043 <note>
8044 If USB functionality is not available in the given edition of
8045 VirtualBox, this method will set the result code to @c E_NOTIMPL.
8046 </note>
8047
8048 <see><link to="#USBDeviceFilters"/></see>
8049
8050 <result name="VBOX_E_INVALID_OBJECT_STATE">
8051 USB device filter is not created within this VirtualBox instance.
8052 </result>
8053 <result name="E_INVALIDARG">
8054 USB device filter already in list.
8055 </result>
8056
8057 </desc>
8058 <param name="position" type="unsigned long" dir="in">
8059 <desc>Position to insert the filter to.</desc>
8060 </param>
8061 <param name="filter" type="IHostUSBDeviceFilter" dir="in">
8062 <desc>USB device filter to insert.</desc>
8063 </param>
8064 </method>
8065
8066 <method name="removeUSBDeviceFilter">
8067 <desc>
8068 Removes a USB device filter from the specified position in the
8069 list of filters.
8070
8071 Positions are numbered starting from @c 0. Specifying a
8072 position equal to or greater than the number of elements in
8073 the list will produce an error.
8074
8075 <note>
8076 If USB functionality is not available in the given edition of
8077 VirtualBox, this method will set the result code to @c E_NOTIMPL.
8078 </note>
8079
8080 <see><link to="#USBDeviceFilters"/></see>
8081
8082 <result name="E_INVALIDARG">
8083 USB device filter list empty or invalid @a position.
8084 </result>
8085
8086 </desc>
8087 <param name="position" type="unsigned long" dir="in">
8088 <desc>Position to remove the filter from.</desc>
8089 </param>
8090 </method>
8091
8092 <method name="findHostDVDDrive">
8093 <desc>
8094 Searches for a host DVD drive with the given @c name.
8095
8096 <result name="VBOX_E_OBJECT_NOT_FOUND">
8097 Given @c name does not correspond to any host drive.
8098 </result>
8099
8100 </desc>
8101 <param name="name" type="wstring" dir="in">
8102 <desc>Name of the host drive to search for</desc>
8103 </param>
8104 <param name="drive" type="IMedium" dir="return">
8105 <desc>Found host drive object</desc>
8106 </param>
8107 </method>
8108
8109 <method name="findHostFloppyDrive">
8110 <desc>
8111 Searches for a host floppy drive with the given @c name.
8112
8113 <result name="VBOX_E_OBJECT_NOT_FOUND">
8114 Given @c name does not correspond to any host floppy drive.
8115 </result>
8116
8117 </desc>
8118 <param name="name" type="wstring" dir="in">
8119 <desc>Name of the host floppy drive to search for</desc>
8120 </param>
8121 <param name="drive" type="IMedium" dir="return">
8122 <desc>Found host floppy drive object</desc>
8123 </param>
8124 </method>
8125
8126 <method name="findHostNetworkInterfaceByName">
8127 <desc>
8128 Searches through all host network interfaces for an interface with
8129 the given @c name.
8130 <note>
8131 The method returns an error if the given @c name does not
8132 correspond to any host network interface.
8133 </note>
8134 </desc>
8135 <param name="name" type="wstring" dir="in">
8136 <desc>Name of the host network interface to search for.</desc>
8137 </param>
8138 <param name="networkInterface" type="IHostNetworkInterface" dir="return">
8139 <desc>Found host network interface object.</desc>
8140 </param>
8141 </method>
8142 <method name="findHostNetworkInterfaceById">
8143 <desc>
8144 Searches through all host network interfaces for an interface with
8145 the given GUID.
8146 <note>
8147 The method returns an error if the given GUID does not
8148 correspond to any host network interface.
8149 </note>
8150 </desc>
8151 <param name="id" type="uuid" mod="string" dir="in">
8152 <desc>GUID of the host network interface to search for.</desc>
8153 </param>
8154 <param name="networkInterface" type="IHostNetworkInterface" dir="return">
8155 <desc>Found host network interface object.</desc>
8156 </param>
8157 </method>
8158 <method name="findHostNetworkInterfacesOfType">
8159 <desc>
8160 Searches through all host network interfaces and returns a list of interfaces of the specified type
8161 </desc>
8162 <param name="type" type="HostNetworkInterfaceType" dir="in">
8163 <desc>type of the host network interfaces to search for.</desc>
8164 </param>
8165 <param name="networkInterfaces" type="IHostNetworkInterface" safearray="yes" dir="return">
8166 <desc>Found host network interface objects.</desc>
8167 </param>
8168 </method>
8169
8170 <method name="findUSBDeviceById">
8171 <desc>
8172 Searches for a USB device with the given UUID.
8173
8174 <result name="VBOX_E_OBJECT_NOT_FOUND">
8175 Given @c id does not correspond to any USB device.
8176 </result>
8177
8178 <see><link to="IUSBDevice::id"/></see>
8179 </desc>
8180 <param name="id" type="uuid" mod="string" dir="in">
8181 <desc>UUID of the USB device to search for.</desc>
8182 </param>
8183 <param name="device" type="IHostUSBDevice" dir="return">
8184 <desc>Found USB device object.</desc>
8185 </param>
8186 </method>
8187
8188 <method name="findUSBDeviceByAddress">
8189 <desc>
8190 Searches for a USB device with the given host address.
8191
8192 <result name="VBOX_E_OBJECT_NOT_FOUND">
8193 Given @c name does not correspond to any USB device.
8194 </result>
8195
8196 <see><link to="IUSBDevice::address"/></see>
8197 </desc>
8198 <param name="name" type="wstring" dir="in">
8199 <desc>
8200 Address of the USB device (as assigned by the host) to
8201 search for.
8202 </desc>
8203 </param>
8204 <param name="device" type="IHostUSBDevice" dir="return">
8205 <desc>Found USB device object.</desc>
8206 </param>
8207 </method>
8208
8209 <method name="generateMACAddress">
8210 <desc>
8211 Generates a valid Ethernet MAC address, 12 hexadecimal characters.
8212 </desc>
8213 <param name="address" type="wstring" dir="return">
8214 <desc>New Ethernet MAC address.</desc>
8215 </param>
8216 </method>
8217
8218 </interface>
8219
8220 <!--
8221 // ISystemProperties
8222 /////////////////////////////////////////////////////////////////////////
8223 -->
8224
8225 <interface
8226 name="ISystemProperties"
8227 extends="$unknown"
8228 uuid="1d7aca29-97f0-4287-9874-a60ec4f80ea6"
8229 wsmap="managed"
8230 >
8231 <desc>
8232 The ISystemProperties interface represents global properties of the given
8233 VirtualBox installation.
8234
8235 These properties define limits and default values for various attributes
8236 and parameters. Most of the properties are read-only, but some can be
8237 changed by a user.
8238 </desc>
8239
8240 <attribute name="minGuestRAM" type="unsigned long" readonly="yes">
8241 <desc>Minimum guest system memory in Megabytes.</desc>
8242 </attribute>
8243
8244 <attribute name="maxGuestRAM" type="unsigned long" readonly="yes">
8245 <desc>Maximum guest system memory in Megabytes.</desc>
8246 </attribute>
8247
8248 <attribute name="minGuestVRAM" type="unsigned long" readonly="yes">
8249 <desc>Minimum guest video memory in Megabytes.</desc>
8250 </attribute>
8251
8252 <attribute name="maxGuestVRAM" type="unsigned long" readonly="yes">
8253 <desc>Maximum guest video memory in Megabytes.</desc>
8254 </attribute>
8255
8256 <attribute name="minGuestCPUCount" type="unsigned long" readonly="yes">
8257 <desc>Minimum CPU count.</desc>
8258 </attribute>
8259
8260 <attribute name="maxGuestCPUCount" type="unsigned long" readonly="yes">
8261 <desc>Maximum CPU count.</desc>
8262 </attribute>
8263
8264 <attribute name="maxGuestMonitors" type="unsigned long" readonly="yes">
8265 <desc>Maximum of monitors which could be connected.</desc>
8266 </attribute>
8267
8268 <attribute name="infoVDSize" type="long long" readonly="yes">
8269 <desc>Maximum size of a virtual disk image in bytes. Informational value,
8270 does not reflect the limits of any virtual disk image format.</desc>
8271 </attribute>
8272
8273 <attribute name="serialPortCount" type="unsigned long" readonly="yes">
8274 <desc>
8275 Maximum number of serial ports associated with every
8276 <link to="IMachine"/> instance.
8277 </desc>
8278 </attribute>
8279
8280 <attribute name="parallelPortCount" type="unsigned long" readonly="yes">
8281 <desc>
8282 Maximum number of parallel ports associated with every
8283 <link to="IMachine"/> instance.
8284 </desc>
8285 </attribute>
8286
8287 <attribute name="maxBootPosition" type="unsigned long" readonly="yes">
8288 <desc>
8289 Maximum device position in the boot order. This value corresponds
8290 to the total number of devices a machine can boot from, to make it
8291 possible to include all possible devices to the boot list.
8292 <see><link to="IMachine::setBootOrder"/></see>
8293 </desc>
8294 </attribute>
8295
8296 <attribute name="defaultMachineFolder" type="wstring">
8297 <desc>
8298 Full path to the default directory used to create new or open
8299 existing machines when a machine settings file name contains no
8300 path.
8301
8302 Starting with VirtualBox 4.0, by default, this attribute contains
8303 the full path of folder named "VirtualBox VMs" in the user's
8304 home directory, which depends on the host platform.
8305
8306 When setting this attribute, a full path must be specified.
8307 Setting this property to @c null or an empty string or the
8308 special value "Machines" (for compatibility reasons) will restore
8309 that default value.
8310
8311 If the folder specified herein does not exist, it will be created
8312 automatically as needed.
8313
8314 <see>
8315 <link to="IVirtualBox::createMachine"/>,
8316 <link to="IVirtualBox::openMachine"/>
8317 </see>
8318 </desc>
8319 </attribute>
8320
8321 <attribute name="mediumFormats" type="IMediumFormat" safearray="yes" readonly="yes">
8322 <desc>
8323 List of all medium storage formats supported by this VirtualBox
8324 installation.
8325
8326 Keep in mind that the medium format identifier
8327 (<link to="IMediumFormat::id"/>) used in other API calls like
8328 <link to="IVirtualBox::createHardDisk"/> to refer to a particular
8329 medium format is a case-insensitive string. This means that, for
8330 example, all of the following strings:
8331 <pre>
8332 "VDI"
8333 "vdi"
8334 "VdI"</pre>
8335 refer to the same medium format.
8336
8337 Note that the virtual medium framework is backend-based, therefore
8338 the list of supported formats depends on what backends are currently
8339 installed.
8340
8341 <see><link to="IMediumFormat"/></see>
8342 </desc>
8343 </attribute>
8344
8345 <attribute name="defaultHardDiskFormat" type="wstring">
8346 <desc>
8347 Identifier of the default medium format used by VirtualBox.
8348
8349 The medium format set by this attribute is used by VirtualBox
8350 when the medium format was not specified explicitly. One example is
8351 <link to="IVirtualBox::createHardDisk"/> with the empty
8352 format argument. A more complex example is implicit creation of
8353 differencing media when taking a snapshot of a virtual machine:
8354 this operation will try to use a format of the parent medium first
8355 and if this format does not support differencing media the default
8356 format specified by this argument will be used.
8357
8358 The list of supported medium formats may be obtained by the
8359 <link to="#mediumFormats"/> call. Note that the default medium
8360 format must have a capability to create differencing media;
8361 otherwise operations that create media implicitly may fail
8362 unexpectedly.
8363
8364 The initial value of this property is <tt>"VDI"</tt> in the current
8365 version of the VirtualBox product, but may change in the future.
8366
8367 <note>
8368 Setting this property to @c null or empty string will restore the
8369 initial value.
8370 </note>
8371
8372 <see>
8373 <link to="#mediumFormats"/>,
8374 <link to="IMediumFormat::id"/>,
8375 <link to="IVirtualBox::createHardDisk"/>
8376 </see>
8377 </desc>
8378 </attribute>
8379
8380 <attribute name="freeDiskSpaceWarning" type="long long">
8381 <desc>Issue a warning if the free disk space is below (or in some disk
8382 intensive operation is expected to go below) the given size in
8383 bytes.</desc>
8384 </attribute>
8385
8386 <attribute name="freeDiskSpacePercentWarning" type="unsigned long">
8387 <desc>Issue a warning if the free disk space is below (or in some disk
8388 intensive operation is expected to go below) the given percentage.</desc>
8389 </attribute>
8390
8391 <attribute name="freeDiskSpaceError" type="long long">
8392 <desc>Issue an error if the free disk space is below (or in some disk
8393 intensive operation is expected to go below) the given size in
8394 bytes.</desc>
8395 </attribute>
8396
8397 <attribute name="freeDiskSpacePercentError" type="unsigned long">
8398 <desc>Issue an error if the free disk space is below (or in some disk
8399 intensive operation is expected to go below) the given percentage.</desc>
8400 </attribute>
8401
8402 <attribute name="VRDEAuthLibrary" type="wstring">
8403 <desc>
8404 Library that provides authentication for Remote Desktop clients. The library
8405 is used if a virtual machine's authentication type is set to "external"
8406 in the VM RemoteDisplay configuration.
8407
8408 The system library extension (".DLL" or ".so") must be omitted.
8409 A full path can be specified; if not, then the library must reside on the
8410 system's default library path.
8411
8412 The default value of this property is <tt>"VBoxAuth"</tt>. There is a library
8413 of that name in one of the default VirtualBox library directories.
8414
8415 For details about VirtualBox authentication libraries and how to implement
8416 them, please refer to the VirtualBox manual.
8417
8418 <note>
8419 Setting this property to @c null or empty string will restore the
8420 initial value.
8421 </note>
8422 </desc>
8423 </attribute>
8424
8425 <attribute name="webServiceAuthLibrary" type="wstring">
8426 <desc>
8427 Library that provides authentication for webservice clients. The library
8428 is used if a virtual machine's authentication type is set to "external"
8429 in the VM RemoteDisplay configuration and will be called from
8430 within the <link to="IWebsessionManager::logon" /> implementation.
8431
8432 As opposed to <link to="ISystemProperties::VRDEAuthLibrary" />,
8433 there is no per-VM setting for this, as the webservice is a global
8434 resource (if it is running). Only for this setting (for the webservice),
8435 setting this value to a literal <tt>"null"</tt> string disables authentication,
8436 meaning that <link to="IWebsessionManager::logon" /> will always succeed,
8437 no matter what user name and password are supplied.
8438
8439 The initial value of this property is <tt>"VBoxAuth"</tt>,
8440 meaning that the webservice will use the same authentication
8441 library that is used by default for VRDE (again, see
8442 <link to="ISystemProperties::VRDEAuthLibrary" />).
8443 The format and calling convention of authentication libraries
8444 is the same for the webservice as it is for VRDE.
8445
8446 <note>
8447 Setting this property to @c null or empty string will restore the
8448 initial value.
8449 </note>
8450 </desc>
8451 </attribute>
8452
8453 <attribute name="defaultVRDEExtPack" type="wstring">
8454 <desc>
8455 The name of the extension pack providing the default VRDE.
8456
8457 This attribute is for choosing between multiple extension packs
8458 providing VRDE. If only one is installed, it will automatically be the
8459 default one. The attribute value can be empty if no VRDE extension
8460 pack is installed.
8461
8462 For details about VirtualBox Remote Desktop Extension and how to
8463 implement one, please refer to the VirtualBox SDK.
8464 </desc>
8465 </attribute>
8466
8467 <attribute name="logHistoryCount" type="unsigned long">
8468 <desc>
8469 This value specifies how many old release log files are kept.
8470 </desc>
8471 </attribute>
8472
8473 <attribute name="defaultAudioDriver" type="AudioDriverType" readonly="yes">
8474 <desc>This value hold the default audio driver for the current
8475 system.</desc>
8476 </attribute>
8477
8478 <attribute name="autostartDatabasePath" type="wstring">
8479 <desc>
8480 The path to the autostart database. Depending on the host this might
8481 be a filesystem path or something else.
8482 </desc>
8483 </attribute>
8484
8485 <attribute name="defaultAdditionsISO" type="wstring">
8486 <desc>
8487 The path to the default Guest Additions ISO image. Can be empty if
8488 the location is not known in this installation.
8489 </desc>
8490 </attribute>
8491
8492 <method name="getMaxNetworkAdapters">
8493 <desc>
8494 Maximum total number of network adapters associated with every
8495 <link to="IMachine"/> instance.
8496 </desc>
8497
8498 <param name="chipset" type="ChipsetType" dir="in">
8499 <desc>The chipset type to get the value for.</desc>
8500 </param>
8501
8502
8503 <param name="maxNetworkAdapters" type="unsigned long" dir="return">
8504 <desc>The maximum total number of network adapters allowed.</desc>
8505 </param>
8506
8507 </method>
8508
8509 <method name="getMaxNetworkAdaptersOfType">
8510 <desc>
8511 Maximum number of network adapters of a given attachment type,
8512 associated with every <link to="IMachine"/> instance.
8513 </desc>
8514
8515 <param name="chipset" type="ChipsetType" dir="in">
8516 <desc>The chipset type to get the value for.</desc>
8517 </param>
8518
8519 <param name="type" type="NetworkAttachmentType" dir="in">
8520 <desc>Type of attachment.</desc>
8521 </param>
8522
8523 <param name="maxNetworkAdapters" type="unsigned long" dir="return">
8524 <desc>The maximum number of network adapters allowed for
8525 particular chipset and attachment type.</desc>
8526 </param>
8527
8528 </method>
8529
8530
8531 <method name="getMaxDevicesPerPortForStorageBus">
8532 <desc>Returns the maximum number of devices which can be attached to a port
8533 for the given storage bus.</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="maxDevicesPerPort" type="unsigned long" dir="return">
8540 <desc>The maximum number of devices which can be attached to the port for the given
8541 storage bus.</desc>
8542 </param>
8543 </method>
8544
8545 <method name="getMinPortCountForStorageBus">
8546 <desc>Returns the minimum number of ports the given storage bus supports.</desc>
8547
8548 <param name="bus" type="StorageBus" dir="in">
8549 <desc>The storage bus type to get the value for.</desc>
8550 </param>
8551
8552 <param name="minPortCount" type="unsigned long" dir="return">
8553 <desc>The minimum number of ports for the given storage bus.</desc>
8554 </param>
8555 </method>
8556
8557 <method name="getMaxPortCountForStorageBus">
8558 <desc>Returns the maximum number of ports the given storage bus supports.</desc>
8559
8560 <param name="bus" type="StorageBus" dir="in">
8561 <desc>The storage bus type to get the value for.</desc>
8562 </param>
8563
8564 <param name="maxPortCount" type="unsigned long" dir="return">
8565 <desc>The maximum number of ports for the given storage bus.</desc>
8566 </param>
8567 </method>
8568
8569 <method name="getMaxInstancesOfStorageBus">
8570 <desc>Returns the maximum number of storage bus instances which
8571 can be configured for each VM. This corresponds to the number of
8572 storage controllers one can have. Value may depend on chipset type
8573 used.</desc>
8574
8575 <param name="chipset" type="ChipsetType" dir="in">
8576 <desc>The chipset type to get the value for.</desc>
8577 </param>
8578
8579 <param name="bus" type="StorageBus" dir="in">
8580 <desc>The storage bus type to get the value for.</desc>
8581 </param>
8582
8583 <param name="maxInstances" type="unsigned long" dir="return">
8584 <desc>The maximum number of instances for the given storage bus.</desc>
8585 </param>
8586 </method>
8587
8588 <method name="getDeviceTypesForStorageBus">
8589 <desc>Returns list of all the supported device types
8590 (<link to="DeviceType"/>) for the given type of storage
8591 bus.</desc>
8592
8593 <param name="bus" type="StorageBus" dir="in">
8594 <desc>The storage bus type to get the value for.</desc>
8595 </param>
8596
8597 <param name="deviceTypes" type="DeviceType" safearray="yes" dir="return">
8598 <desc>The list of all supported device types for the given storage bus.</desc>
8599 </param>
8600 </method>
8601
8602 <method name="getDefaultIoCacheSettingForStorageController">
8603 <desc>Returns the default I/O cache setting for the
8604 given storage controller</desc>
8605
8606 <param name="controllerType" type="StorageControllerType" dir="in">
8607 <desc>The storage controller to the setting for.</desc>
8608 </param>
8609
8610 <param name="enabled" type="boolean" dir="return">
8611 <desc>Returned flag indicating the default value</desc>
8612 </param>
8613 </method>
8614 </interface>
8615
8616 <!--
8617 // IGuest
8618 /////////////////////////////////////////////////////////////////////////
8619 -->
8620
8621 <interface
8622 name="IGuestOSType" extends="$unknown"
8623 uuid="6d968f9a-858b-4c50-bf17-241f069e94c2"
8624 wsmap="struct"
8625 >
8626 <desc>
8627 </desc>
8628
8629 <attribute name="familyId" type="wstring" readonly="yes">
8630 <desc>Guest OS family identifier string.</desc>
8631 </attribute>
8632
8633 <attribute name="familyDescription" type="wstring" readonly="yes">
8634 <desc>Human readable description of the guest OS family.</desc>
8635 </attribute>
8636
8637 <attribute name="id" type="wstring" readonly="yes">
8638 <desc>Guest OS identifier string.</desc>
8639 </attribute>
8640
8641 <attribute name="description" type="wstring" readonly="yes">
8642 <desc>Human readable description of the guest OS.</desc>
8643 </attribute>
8644
8645 <attribute name="is64Bit" type="boolean" readonly="yes">
8646 <desc>Returns @c true if the given OS is 64-bit</desc>
8647 </attribute>
8648
8649 <attribute name="recommendedIOAPIC" type="boolean" readonly="yes">
8650 <desc>Returns @c true if IO APIC recommended for this OS type.</desc>
8651 </attribute>
8652
8653 <attribute name="recommendedVirtEx" type="boolean" readonly="yes">
8654 <desc>Returns @c true if VT-x or AMD-V recommended for this OS type.</desc>
8655 </attribute>
8656
8657 <attribute name="recommendedRAM" type="unsigned long" readonly="yes">
8658 <desc>Recommended RAM size in Megabytes.</desc>
8659 </attribute>
8660
8661 <attribute name="recommendedVRAM" type="unsigned long" readonly="yes">
8662 <desc>Recommended video RAM size in Megabytes.</desc>
8663 </attribute>
8664
8665 <attribute name="recommended2DVideoAcceleration" type="boolean" readonly="yes">
8666 <desc>Returns @c true if 2D video acceleration is recommended for this OS type.</desc>
8667 </attribute>
8668
8669 <attribute name="recommended3DAcceleration" type="boolean" readonly="yes">
8670 <desc>Returns @c true if 3D acceleration is recommended for this OS type.</desc>
8671 </attribute>
8672
8673 <attribute name="recommendedHDD" type="long long" readonly="yes">
8674 <desc>Recommended hard disk size in bytes.</desc>
8675 </attribute>
8676
8677 <attribute name="adapterType" type="NetworkAdapterType" readonly="yes">
8678 <desc>Returns recommended network adapter for this OS type.</desc>
8679 </attribute>
8680
8681 <attribute name="recommendedPAE" type="boolean" readonly="yes">
8682 <desc>Returns @c true if using PAE is recommended for this OS type.</desc>
8683 </attribute>
8684
8685 <attribute name="recommendedDVDStorageController" type="StorageControllerType" readonly="yes">
8686 <desc>Recommended storage controller type for DVD/CD drives.</desc>
8687 </attribute>
8688
8689 <attribute name="recommendedDVDStorageBus" type="StorageBus" readonly="yes">
8690 <desc>Recommended storage bus type for DVD/CD drives.</desc>
8691 </attribute>
8692
8693 <attribute name="recommendedHDStorageController" type="StorageControllerType" readonly="yes">
8694 <desc>Recommended storage controller type for HD drives.</desc>
8695 </attribute>
8696
8697 <attribute name="recommendedHDStorageBus" type="StorageBus" readonly="yes">
8698 <desc>Recommended storage bus type for HD drives.</desc>
8699 </attribute>
8700
8701 <attribute name="recommendedFirmware" type="FirmwareType" readonly="yes">
8702 <desc>Recommended firmware type.</desc>
8703 </attribute>
8704
8705 <attribute name="recommendedUSBHID" type="boolean" readonly="yes">
8706 <desc>Returns @c true if using USB Human Interface Devices, such as keyboard and mouse recommended.</desc>
8707 </attribute>
8708
8709 <attribute name="recommendedHPET" type="boolean" readonly="yes">
8710 <desc>Returns @c true if using HPET is recommended for this OS type.</desc>
8711 </attribute>
8712
8713 <attribute name="recommendedUSBTablet" type="boolean" readonly="yes">
8714 <desc>Returns @c true if using a USB Tablet is recommended.</desc>
8715 </attribute>
8716
8717 <attribute name="recommendedRTCUseUTC" type="boolean" readonly="yes">
8718 <desc>Returns @c true if the RTC of this VM should be set to UTC</desc>
8719 </attribute>
8720
8721 <attribute name="recommendedChipset" type="ChipsetType" readonly="yes">
8722 <desc>Recommended chipset type.</desc>
8723 </attribute>
8724
8725 <attribute name="recommendedAudioController" type="AudioControllerType" readonly="yes">
8726 <desc>Recommended audio type.</desc>
8727 </attribute>
8728
8729 <attribute name="recommendedFloppy" type="boolean" readonly="yes">
8730 <desc>Returns @c true a floppy drive is recommended for this OS type.</desc>
8731 </attribute>
8732
8733 <attribute name="recommendedUSB" type="boolean" readonly="yes">
8734 <desc>Returns @c true a USB controller is recommended for this OS type.</desc>
8735 </attribute>
8736
8737 </interface>
8738
8739 <enum
8740 name="AdditionsFacilityType"
8741 uuid="98f7f957-89fb-49b6-a3b1-31e3285eb1d8"
8742 >
8743 <desc>
8744 Guest Additions facility IDs.
8745 </desc>
8746
8747 <const name="None" value="0">
8748 <desc>No/invalid facility.</desc>
8749 </const>
8750 <const name="VBoxGuestDriver" value="20">
8751 <desc>VirtualBox base driver (VBoxGuest).</desc>
8752 </const>
8753 <const name="AutoLogon" value="90">
8754 <desc>Auto-logon modules (VBoxGINA, VBoxCredProv, pam_vbox).</desc>
8755 </const>
8756 <const name="VBoxService" value="100">
8757 <desc>VirtualBox system service (VBoxService).</desc>
8758 </const>
8759 <const name="VBoxTrayClient" value="101">
8760 <desc>VirtualBox desktop integration (VBoxTray on Windows, VBoxClient on non-Windows).</desc>
8761 </const>
8762 <const name="Seamless" value="1000">
8763 <desc>Seamless guest desktop integration.</desc>
8764 </const>
8765 <const name="Graphics" value="1100">
8766 <desc>Guest graphics mode. If not enabled, seamless rendering will not work, resize hints
8767 are not immediately acted on and guest display resizes are probably not initiated by
8768 the guest additions.
8769 </desc>
8770 </const>
8771 <const name="All" value="2147483646">
8772 <desc>All facilities selected.</desc>
8773 </const>
8774 </enum>
8775
8776 <enum
8777 name="AdditionsFacilityClass"
8778 uuid="446451b2-c88d-4e5d-84c9-91bc7f533f5f"
8779 >
8780 <desc>
8781 Guest Additions facility classes.
8782 </desc>
8783
8784 <const name="None" value="0">
8785 <desc>No/invalid class.</desc>
8786 </const>
8787 <const name="Driver" value="10">
8788 <desc>Driver.</desc>
8789 </const>
8790 <const name="Service" value="30">
8791 <desc>System service.</desc>
8792 </const>
8793 <const name="Program" value="50">
8794 <desc>Program.</desc>
8795 </const>
8796 <const name="Feature" value="100">
8797 <desc>Feature.</desc>
8798 </const>
8799 <const name="ThirdParty" value="999">
8800 <desc>Third party.</desc>
8801 </const>
8802 <const name="All" value="2147483646">
8803 <desc>All facility classes selected.</desc>
8804 </const>
8805 </enum>
8806
8807 <enum
8808 name="AdditionsFacilityStatus"
8809 uuid="ce06f9e1-394e-4fe9-9368-5a88c567dbde"
8810 >
8811 <desc>
8812 Guest Additions facility states.
8813 </desc>
8814
8815 <const name="Inactive" value="0">
8816 <desc>Facility is not active.</desc>
8817 </const>
8818 <const name="Paused" value="1">
8819 <desc>Facility has been paused.</desc>
8820 </const>
8821 <const name="PreInit" value="20">
8822 <desc>Facility is preparing to initialize.</desc>
8823 </const>
8824 <const name="Init" value="30">
8825 <desc>Facility is initializing.</desc>
8826 </const>
8827 <const name="Active" value="50">
8828 <desc>Facility is up and running.</desc>
8829 </const>
8830 <const name="Terminating" value="100">
8831 <desc>Facility is shutting down.</desc>
8832 </const>
8833 <const name="Terminated" value="101">
8834 <desc>Facility successfully shut down.</desc>
8835 </const>
8836 <const name="Failed" value="800">
8837 <desc>Facility failed to start.</desc>
8838 </const>
8839 <const name="Unknown" value="999">
8840 <desc>Facility status is unknown.</desc>
8841 </const>
8842 </enum>
8843
8844 <interface
8845 name="IAdditionsFacility" extends="$unknown"
8846 uuid="54992946-6af1-4e49-98ec-58b558b7291e"
8847 wsmap="struct"
8848 >
8849 <desc>
8850 Structure representing a Guest Additions facility.
8851 </desc>
8852
8853 <attribute name="classType" type="AdditionsFacilityClass" readonly="yes">
8854 <desc>The class this facility is part of.</desc>
8855 </attribute>
8856
8857 <attribute name="lastUpdated" type="long long" readonly="yes">
8858 <desc>
8859 Time stamp of the last status update,
8860 in milliseconds since 1970-01-01 UTC.
8861 </desc>
8862 </attribute>
8863
8864 <attribute name="name" type="wstring" readonly="yes">
8865 <desc>The facility's friendly name.</desc>
8866 </attribute>
8867
8868 <attribute name="status" type="AdditionsFacilityStatus" readonly="yes">
8869 <desc>The current status.</desc>
8870 </attribute>
8871
8872 <attribute name="type" type="AdditionsFacilityType" readonly="yes">
8873 <desc>The facility's type ID.</desc>
8874 </attribute>
8875 </interface>
8876
8877 <enum
8878 name="AdditionsRunLevelType"
8879 uuid="a25417ee-a9dd-4f5b-b0dc-377860087754"
8880 >
8881 <desc>
8882 Guest Additions run level type.
8883 </desc>
8884
8885 <const name="None" value="0">
8886 <desc>Guest Additions are not loaded.</desc>
8887 </const>
8888 <const name="System" value="1">
8889 <desc>Guest drivers are loaded.</desc>
8890 </const>
8891 <const name="Userland" value="2">
8892 <desc>Common components (such as application services) are loaded.</desc>
8893 </const>
8894 <const name="Desktop" value="3">
8895 <desc>Per-user desktop components are loaded.</desc>
8896 </const>
8897 </enum>
8898
8899 <enum
8900 name="AdditionsUpdateFlag"
8901 uuid="726a818d-18d6-4389-94e8-3e9e6826171a"
8902 >
8903 <desc>
8904 Guest Additions update flags.
8905 </desc>
8906
8907 <const name="None" value="0">
8908 <desc>No flag set.</desc>
8909 </const>
8910 <const name="WaitForUpdateStartOnly" value="1">
8911 <desc>Starts the regular updating process and waits until the
8912 actual Guest Additions update inside the guest was started.
8913 This can be necessary due to needed interaction with the guest
8914 OS during the installation phase.</desc>
8915 </const>
8916 </enum>
8917
8918 <enum
8919 name="FileSeekType"
8920 uuid="1b73f4f3-3515-4073-a506-76878d9e2541"
8921 >
8922 <desc>
8923 File seeking types.
8924 </desc>
8925
8926 <const name="Set" value="0">
8927 <desc>Seek from the start of the file.</desc>
8928 </const>
8929 <const name="Current" value="1">
8930 <desc>Seek from the current file position.</desc>
8931 </const>
8932 </enum>
8933
8934 <enum
8935 name="ProcessInputFlag"
8936 uuid="5d38c1dd-2604-4ddf-92e5-0c0cdd3bdbd5"
8937 >
8938 <desc>
8939 Guest process input flags.
8940 </desc>
8941 <const name="None" value="0">
8942 <desc>No flag set.</desc>
8943 </const>
8944 <const name="EndOfFile" value="1">
8945 <desc>End of file (input) reached.</desc>
8946 </const>
8947 </enum>
8948
8949 <enum
8950 name="ProcessOutputFlag"
8951 uuid="9979e85a-52bb-40b7-870c-57115e27e0f1"
8952 >
8953 <desc>
8954 Guest process output flags for specifying which
8955 type of output to retrieve.
8956 </desc>
8957 <const name="None" value="0">
8958 <desc>No flags set. Get output from stdout.</desc>
8959 </const>
8960 <const name="StdErr" value="1">
8961 <desc>Get output from stderr.</desc>
8962 </const>
8963 </enum>
8964
8965 <enum
8966 name="ProcessWaitForFlag"
8967 uuid="23b550c7-78e1-437e-98f0-65fd9757bcd2"
8968 >
8969 <desc>
8970 Process waiting flags. Multiple flags can be combined.
8971 </desc>
8972
8973 <const name="None" value="0">
8974 <desc>No waiting flags specified. Do not use this.</desc>
8975 </const>
8976 <const name="Start" value="1">
8977 <desc>Wait for the process being started.</desc>
8978 </const>
8979 <const name="Terminate" value="2">
8980 <desc>Wait for the process being terminated.</desc>
8981 </const>
8982 <const name="StdIn" value="4">
8983 <desc>Wait for stdin becoming available.</desc>
8984 </const>
8985 <const name="StdOut" value="8">
8986 <desc>Wait for data becoming available on stdout.</desc>
8987 </const>
8988 <const name="StdErr" value="16">
8989 <desc>Wait for data becoming available on stderr.</desc>
8990 </const>
8991 </enum>
8992
8993 <enum
8994 name="ProcessWaitResult"
8995 uuid="40719cbe-f192-4fe9-a231-6697b3c8e2b4"
8996 >
8997 <desc>
8998 Process waiting results. Depending on the process waiting flags (for
8999 more information see <link to="ProcessWaitForFlag"/>) the waiting result
9000 can vary based on the processes' current status.
9001
9002 To wait for a gust process to terminate after it has been
9003 created by <link to="IGuestSession::processCreate"/> or <link to="IGuestSession::processCreateEx"/>
9004 one would specify ProcessWaitResult_Terminate.
9005
9006 If a guest process has been started with ProcessCreateFlag_WaitForStdOut
9007 a client can wait with ProcessWaitResult_StdOut for new data to arrive on
9008 stdout; same applies for ProcessCreateFlag_WaitForStdErr and
9009 ProcessWaitResult_StdErr.
9010 </desc>
9011
9012 <const name="None" value="0">
9013 <desc>No result was returned. Not being used.</desc>
9014 </const>
9015 <const name="Start" value="1">
9016 <desc>The process has been started.</desc>
9017 </const>
9018 <const name="Terminate" value="2">
9019 <desc>The process has been terminated.</desc>
9020 </const>
9021 <const name="Status" value="3">
9022 <desc>
9023 The process has changed its status. The status then can
9024 be retrieved via <link to="IProcess::status"/>.
9025 </desc>
9026 </const>
9027 <const name="Error" value="4">
9028 <desc>Error while executing the process.</desc>
9029 </const>
9030 <const name="Timeout" value="5">
9031 <desc>
9032 The waiting operation timed out. This also will happen
9033 when no event has been occured matching the
9034 current waiting flags in a <link to="IProcess::waitFor"/> call.
9035 </desc>
9036 </const>
9037 <const name="StdIn" value="6">
9038 <desc>
9039 The process signalled that stdin became available for writing
9040 and that the process awaits input now.</desc>
9041 </const>
9042 <const name="StdOut" value="7">
9043 <desc>Data on stdout became available for reading.</desc>
9044 </const>
9045 <const name="StdErr" value="8">
9046 <desc>Data on stderr became available for reading.</desc>
9047 </const>
9048 <const name="WaitFlagNotSupported" value="9">
9049 <desc>
9050 A waiting flag specified in the <link to="IProcess::waitFor"/> call
9051 is not supported by the guest.
9052 </desc>
9053 </const>
9054 </enum>
9055
9056 <enum
9057 name="CopyFileFlag"
9058 uuid="23f79fdf-738a-493d-b80b-42d607c9b916"
9059 >
9060 <desc>
9061 File copying flags.
9062 </desc>
9063 <const name="None" value="0">
9064 <desc>No flag set.</desc>
9065 </const>
9066 <const name="Recursive" value="1">
9067 <desc>Copy directories recursively.</desc>
9068 </const>
9069 <const name="Update" value="2">
9070 <desc>Only copy when the source file is newer than the destination file or when the destination file is missing.</desc>
9071 </const>
9072 <const name="FollowLinks" value="4">
9073 <desc>Follow symbolic links.</desc>
9074 </const>
9075 </enum>
9076
9077 <enum
9078 name="DirectoryCreateFlag"
9079 uuid="bd721b0e-ced5-4f79-b368-249897c32a36"
9080 >
9081 <desc>
9082 Directory creation flags.
9083 </desc>
9084 <const name="None" value="0">
9085 <desc>No flag set.</desc>
9086 </const>
9087 <const name="Parents" value="1">
9088 <desc>No error if existing, make parent directories as needed.</desc>
9089 </const>
9090 </enum>
9091
9092 <enum
9093 name="DirectoryRemoveRecFlag"
9094 uuid="455aabf0-7692-48f6-9061-f21579b65769"
9095 >
9096 <desc>
9097 Directory recursive removement flags.
9098 </desc>
9099
9100 <const name="None" value="0">
9101 <desc>No flag set.</desc>
9102 </const>
9103 <const name="ContentAndDir" value="1">
9104 <desc>Delete the content of the directory and the directory itself.</desc>
9105 </const>
9106 <const name="ContentOnly" value="2">
9107 <desc>Only delete the content of the directory, omit the directory it self.</desc>
9108 </const>
9109 </enum>
9110
9111 <enum
9112 name="PathRenameFlag"
9113 uuid="f3baa09f-c758-453d-b91c-c7787d76351d"
9114 >
9115 <desc>
9116 Path renaming flags.
9117 </desc>
9118
9119 <const name="None" value="0">
9120 <desc>No flag set.</desc>
9121 </const>
9122 <const name="NoReplace" value="1">
9123 <desc>Do not replace anything.</desc>
9124 </const>
9125 <const name="Replace" value="2">
9126 <desc>This will replace attempt any target which isn't a directory.</desc>
9127 </const>
9128 <const name="NoSymlinks" value="4">
9129 <desc>Don't allow symbolic links as part of the path.</desc>
9130 </const>
9131 </enum>
9132
9133 <enum
9134 name="ProcessCreateFlag"
9135 uuid="35192799-bfde-405d-9bea-c735ab9998e4"
9136 >
9137 <desc>
9138 Guest process execution flags.
9139 </desc>
9140
9141 <const name="None" value="0">
9142 <desc>No flag set.</desc>
9143 </const>
9144 <const name="WaitForProcessStartOnly" value="1">
9145 <desc>Only use the specified timeout value to wait for starting the guest process - the guest
9146 process itself then uses an infinite timeout.</desc>
9147 </const>
9148 <const name="IgnoreOrphanedProcesses" value="2">
9149 <desc>Do not report an error when executed processes are still alive when VBoxService or the guest OS is shutting down.</desc>
9150 </const>
9151 <const name="Hidden" value="4">
9152 <desc>Do not show the started process according to the guest OS guidelines.</desc>
9153 </const>
9154 <const name="NoProfile" value="8">
9155 <desc>Do not use the user's profile data when exeuting a process. Only available for Windows guests.</desc>
9156 </const>
9157 <const name="WaitForStdOut" value="16">
9158 <desc>The guest process waits until all data from stdout is read out.</desc>
9159 </const>
9160 <const name="WaitForStdErr" value="32">
9161 <desc>The guest process waits until all data from stderr is read out.</desc>
9162 </const>
9163 <const name="ExpandArguments" value="64">
9164 <desc>Expands environment variables in process arguments.</desc>
9165 </const>
9166 </enum>
9167
9168 <enum
9169 name="ProcessPriority"
9170 uuid="ee8cac50-e232-49fe-806b-d1214d9c2e49"
9171 >
9172 <desc>
9173 Process priorities.
9174 </desc>
9175
9176 <const name="Invalid" value="0">
9177 <desc>Invalid priority, do not use.</desc>
9178 </const>
9179 <const name="Default" value="1">
9180 <desc>Default process priority determined by the OS.</desc>
9181 </const>
9182 </enum>
9183
9184 <enum
9185 name="SymlinkType"
9186 uuid="37794668-f8f1-4714-98a5-6f8fa2ed0118"
9187 >
9188 <desc>
9189 Symbolic link types.
9190 </desc>
9191
9192 <const name="Unknown" value="0">
9193 <desc>It is not known what is being targeted.</desc>
9194 </const>
9195 <const name="Directory" value="1">
9196 <desc>The link targets a directory.</desc>
9197 </const>
9198 <const name="File" value="2">
9199 <desc>The link targets a file (or whatever else).</desc>
9200 </const>
9201 </enum>
9202
9203 <enum
9204 name="SymlinkReadFlag"
9205 uuid="b7fe2b9d-790e-4b25-8adf-1ca33026931f"
9206 >
9207 <desc>
9208 Symbolic link reading flags.
9209 </desc>
9210
9211 <const name="None" value="0">
9212 <desc>No flags set.</desc>
9213 </const>
9214 <const name="NoSymlinks" value="1">
9215 <desc>Don't allow symbolic links as part of the path.</desc>
9216 </const>
9217 </enum>
9218
9219 <enum
9220 name="ProcessStatus"
9221 uuid="4d52368f-5b48-4bfe-b486-acf89139b52f"
9222 >
9223 <desc>
9224 Process execution statuses.
9225 </desc>
9226 <const name="Undefined" value="0">
9227 <desc>Process is in an undefined state.</desc>
9228 </const>
9229
9230 <const name="Starting" value="10">
9231 <desc>Process is being started.</desc>
9232 </const>
9233 <const name="Started" value="100">
9234 <desc>Process has been started.</desc>
9235 </const>
9236 <const name="Paused" value="110">
9237 <desc>Process has been paused.</desc>
9238 </const>
9239 <const name="Terminating" value="480">
9240 <desc>Process is being terminated.</desc>
9241 </const>
9242 <const name="TerminatedNormally" value="500">
9243 <desc>Process terminated normally.</desc>
9244 </const>
9245 <const name="TerminatedSignal" value="510">
9246 <desc>Process terminated via signal.</desc>
9247 </const>
9248 <const name="TerminatedAbnormally" value="511">
9249 <desc>Process terminated abnormally.</desc>
9250 </const>
9251 <const name="TimedOutKilled" value="512">
9252 <desc>Process timed out and was killed.</desc>
9253 </const>
9254 <const name="TimedOutAbnormally" value="513">
9255 <desc>Process timed out and was not killed successfully.</desc>
9256 </const>
9257 <const name="Down" value="600">
9258 <desc>Service/OS is stopping, process was killed.</desc>
9259 </const>
9260 <const name="Error" value="800">
9261 <desc>Something went wrong.</desc>
9262 </const>
9263 </enum>
9264
9265 <enum
9266 name="FsObjType"
9267 uuid="a1ed437c-b3c3-4ca2-b19c-4239d658d5e8"
9268 >
9269 <desc>
9270 File system object type.
9271 </desc>
9272
9273 <const name="Undefined" value="0">
9274 <desc>Type is undefined / unknown.</desc>
9275 </const>
9276 <const name="FIFO" value="1">
9277 <desc>Named pipe.</desc>
9278 </const>
9279 <const name="DevChar" value="10">
9280 <desc>Character device.</desc>
9281 </const>
9282 <const name="DevBlock" value="11">
9283 <desc>Block device.</desc>
9284 </const>
9285 <const name="Directory" value="50">
9286 <desc>Directory.</desc>
9287 </const>
9288 <const name="File" value="80">
9289 <desc>File.</desc>
9290 </const>
9291 <const name="Symlink" value="100">
9292 <desc>Symlink.</desc>
9293 </const>
9294 <const name="Socket" value="200">
9295 <desc>Socket.</desc>
9296 </const>
9297 <const name="Whiteout" value="400">
9298 <desc>Whiteout.</desc>
9299 </const>
9300 </enum>
9301
9302 <enum
9303 name="DragAndDropAction"
9304 uuid="47f3b162-c107-4fcd-bfa7-54b8135c441e"
9305 >
9306 <desc>
9307 Possible actions within an Drag and Drop operation.
9308 </desc>
9309
9310 <const name="Ignore" value="0">
9311 <desc>Do nothing.</desc>
9312 </const>
9313
9314 <const name="Copy" value="1">
9315 <desc>Copy the item to the target.</desc>
9316 </const>
9317
9318 <const name="Move" value="2">
9319 <desc>Move the item to the target.</desc>
9320 </const>
9321
9322 <const name="Link" value="3">
9323 <desc>Link the item from within the target.</desc>
9324 </const>
9325 </enum>
9326
9327 <enum
9328 name="DirectoryOpenFlag"
9329 uuid="5138837a-8fd2-4194-a1b0-08f7bc3949d0"
9330 >
9331 <desc>
9332 Directory open flags.
9333 </desc>
9334 <const name="None" value="0">
9335 <desc>No flag set.</desc>
9336 </const>
9337 <const name="NoSymlinks" value="1">
9338 <desc>Don't allow symbolic links as part of the path.</desc>
9339 </const>
9340 </enum>
9341
9342 <interface
9343 name="IGuestSession" extends="$unknown"
9344 uuid="57eb82a8-822b-42c1-9d1c-5c54bc3d3250"
9345 wsmap="managed"
9346 >
9347 <desc>
9348 A guest session represents one impersonated user account on the guest, so
9349 every operation will use the same credentials specified when creating
9350 the session object via <link to="IGuest::createSession"/>.
9351
9352 There can be a maximum of 32 sessions at once per VM. Each session keeps
9353 track of its started guest processes, opened guest files or guest directories.
9354 To work on guest files or directories a guest session offers methods to open
9355 or create such objects (see <link to="IGuestSession::fileOpen"/> or
9356 <link to="IGuestSession::directoryOpen"/> for example).
9357
9358 When done with either of these objects, including the guest session itself,
9359 use the appropriate close() method to let the object do its cleanup work.
9360
9361 Every guest session has its own environment variable block which gets
9362 automatically applied when starting a new guest process via
9363 <link to="IGuestSession::processCreate"/> or <link to="IGuestSession::processCreateEx"/>.
9364 To override (or unset) certain environment variables already set by the
9365 guest session, one can specify a per-process environment block when using
9366 one of the both above mentioned process creation calls.
9367 </desc>
9368
9369 <attribute name="user" type="wstring" readonly="yes">
9370 <desc>Returns the user name used by this session to impersonate
9371 users on the guest.
9372 </desc>
9373 </attribute>
9374
9375 <attribute name="domain" type="wstring" readonly="yes">
9376 <desc>Returns the domain name used by this session to impersonate
9377 users on the guest.
9378 </desc>
9379 </attribute>
9380
9381 <attribute name="name" type="wstring" readonly="yes">
9382 <desc>Returns the session's friendly name.</desc>
9383 </attribute>
9384
9385 <attribute name="id" type="unsigned long" readonly="yes">
9386 <desc>Returns the internal session ID.</desc>
9387 </attribute>
9388
9389 <attribute name="timeout" type="unsigned long" readonly="no">
9390 <desc>
9391 Returns the session timeout (in ms).
9392 <result name="E_NOTIMPL">
9393 The method is not implemented yet.
9394 </result>
9395 </desc>
9396 </attribute>
9397
9398 <attribute name="environment" type="wstring" safearray="yes">
9399 <desc>
9400 Returns the current session environment.
9401 </desc>
9402 </attribute>
9403
9404 <attribute name="processes" type="IGuestProcess" readonly="yes" safearray="yes">
9405 <desc>
9406 Returns all current guest processes.
9407 </desc>
9408 </attribute>
9409
9410 <attribute name="directories" type="IGuestDirectory" readonly="yes" safearray="yes">
9411 <desc>
9412 Returns all currently opened guest directories.
9413 </desc>
9414 </attribute>
9415
9416 <attribute name="files" type="IGuestFile" readonly="yes" safearray="yes">
9417 <desc>
9418 Returns all currently opened guest files.
9419 </desc>
9420 </attribute>
9421
9422 <method name="close">
9423 <desc>
9424 Closes this session. All opened guest directories, files and
9425 processes which are not referenced by clients anymore will be
9426 uninitialized.
9427 </desc>
9428 </method>
9429
9430 <method name="copyFrom">
9431 <desc>
9432 Copies a file from guest to the host.
9433
9434 <result name="VBOX_E_IPRT_ERROR">
9435 Error starting the copy operation.
9436 </result>
9437 </desc>
9438 <param name="source" type="wstring" dir="in">
9439 <desc>Source file on the guest to copy to the host.</desc>
9440 </param>
9441 <param name="dest" type="wstring" dir="in">
9442 <desc>Destination file name on the host.</desc>
9443 </param>
9444 <param name="flags" type="CopyFileFlag" dir="in" safearray="yes">
9445 <desc>Copy flags; see <link to="CopyFileFlag"/> for more information.</desc>
9446 </param>
9447 <param name="progress" type="IProgress" dir="return">
9448 <desc>Progress object to track the operation completion.</desc>
9449 </param>
9450 </method>
9451
9452 <method name="copyTo">
9453 <desc>
9454 Copies a file from host to the guest.
9455
9456 <result name="VBOX_E_IPRT_ERROR">
9457 Error starting the copy operation.
9458 </result>
9459 </desc>
9460 <param name="source" type="wstring" dir="in">
9461 <desc>Source file on the host to copy to the guest.</desc>
9462 </param>
9463 <param name="dest" type="wstring" dir="in">
9464 <desc>Destination file name on the guest.</desc>
9465 </param>
9466 <param name="flags" type="CopyFileFlag" dir="in" safearray="yes">
9467 <desc>Copy flags; see <link to="CopyFileFlag"/> for more information.</desc>
9468 </param>
9469 <param name="progress" type="IProgress" dir="return">
9470 <desc>Progress object to track the operation completion.</desc>
9471 </param>
9472 </method>
9473
9474 <method name="directoryCreate">
9475 <desc>
9476 Create a directory on the guest.
9477
9478 <result name="VBOX_E_IPRT_ERROR">
9479 Error while creating the directory.
9480 </result>
9481 </desc>
9482 <param name="path" type="wstring" dir="in">
9483 <desc>Full path of directory to create.</desc>
9484 </param>
9485 <param name="mode" type="unsigned long" dir="in">
9486 <desc>File creation mode.</desc>
9487 </param>
9488 <param name="flags" type="DirectoryCreateFlag" dir="in" safearray="yes">
9489 <desc>Creation flags; see <link to="DirectoryCreateFlag"/> for more information.</desc>
9490 </param>
9491 </method>
9492
9493 <method name="directoryCreateTemp">
9494 <desc>
9495 Create a temporary directory on the guest.
9496
9497 <result name="VBOX_E_NOT_SUPPORTED">
9498 The operation is not possible as requested on this particular
9499 guest type.
9500 </result>
9501 <result name="E_INVALIDARG">
9502 Invalid argument. This includes an incorrectly formatted template,
9503 or a non-absolute path.
9504 </result>
9505 <result name="VBOX_E_IPRT_ERROR">
9506 The temporary directory could not be created. Possible reasons
9507 include a non-existing path or an insecure path when the secure
9508 option was requested.
9509 </result>
9510 </desc>
9511 <param name="templateName" type="wstring" dir="in">
9512 <desc>Template for the name of the directory to create. This must
9513 contain at least one 'X' character. The first group of consecutive
9514 'X' characters in the template will be replaced by a random
9515 alphanumeric string to produce a unique name.</desc>
9516 </param>
9517 <param name="mode" type="unsigned long" dir="in">
9518 <desc>The mode of the directory to create. Use 0700 unless there are
9519 reasons not to. This parameter is ignored if "secure" is specified.
9520 </desc>
9521 </param>
9522 <param name="path" type="wstring" dir="in">
9523 <desc>The absolute path to create the temporary directory in.</desc>
9524 </param>
9525 <param name="secure" type="boolean" dir="in">
9526 <desc>Whether to fail if the directory can not be securely created.
9527 Currently this means that another unprivileged user cannot
9528 manipulate the path specified or remove the temporary directory
9529 after it has been created. Also causes the mode specified to be
9530 ignored. May not be supported on all guest types.</desc>
9531 </param>
9532 <param name="directory" type="wstring" dir="return">
9533 <desc>On success this will contain the name of the directory created
9534 with full path.</desc>
9535 </param>
9536 </method>
9537
9538 <method name="directoryExists">
9539 <desc>
9540 Checks whether a directory exists on the guest or not.
9541
9542 <result name="VBOX_E_IPRT_ERROR">
9543 Error while checking existence of the directory specified.
9544 </result>
9545 </desc>
9546 <param name="path" type="wstring" dir="in">
9547 <desc>Directory to check existence for.</desc>
9548 </param>
9549 <param name="exists" type="boolean" dir="return">
9550 <desc>Returns @c true if the directory exists, @c false if not.</desc>
9551 </param>
9552 </method>
9553
9554 <method name="directoryOpen">
9555 <desc>
9556 Opens a directory and creates a <link to="IGuestDirectory"/> object that
9557 can be used for further operations.
9558
9559 <result name="VBOX_E_OBJECT_NOT_FOUND">
9560 Directory to open was not found.
9561 </result>
9562 <result name="VBOX_E_IPRT_ERROR">
9563 Error while opening the directory.
9564 </result>
9565 </desc>
9566 <param name="path" type="wstring" dir="in">
9567 <desc>Full path to file to open.</desc>
9568 </param>
9569 <param name="filter" type="wstring" dir="in">
9570 <desc>Open filter to apply. This can include wildcards like ? and *.</desc>
9571 </param>
9572 <param name="flags" type="DirectoryOpenFlag" dir="in" safearray="yes">
9573 <desc>Open flags; see <link to="DirectoryOpenFlag"/> for more information.</desc>
9574 </param>
9575 <param name="directory" type="IGuestDirectory" dir="return">
9576 <desc><link to="IGuestDirectory"/> object containing the opened directory.</desc>
9577 </param>
9578 </method>
9579
9580 <method name="directoryQueryInfo">
9581 <desc>
9582 Queries information of a directory on the guest.
9583
9584 <result name="VBOX_E_OBJECT_NOT_FOUND">
9585 Directory to query information for was not found.
9586 </result>
9587 <result name="VBOX_E_IPRT_ERROR">
9588 Error querying information.
9589 </result>
9590 </desc>
9591 <param name="path" type="wstring" dir="in">
9592 <desc>Directory to query information for.</desc>
9593 </param>
9594 <param name="info" type="IGuestFsObjInfo" dir="return">
9595 <desc><link to="IGuestFsObjInfo"/> object containing the queried information.</desc>
9596 </param>
9597 </method>
9598
9599 <method name="directoryRemove">
9600 <desc>
9601 Removes a guest directory if not empty.
9602
9603 <result name="E_NOTIMPL">
9604 The method is not implemented yet.
9605 </result>
9606 </desc>
9607 <param name="path" type="wstring" dir="in">
9608 <desc>Full path of directory to remove.</desc>
9609 </param>
9610 </method>
9611
9612 <method name="directoryRemoveRecursive">
9613 <desc>
9614 Removes a guest directory recursively.
9615
9616 <result name="E_NOTIMPL">
9617 The method is not implemented yet.
9618 </result>
9619 </desc>
9620 <param name="path" type="wstring" dir="in">
9621 <desc>Full path of directory to remove recursively.</desc>
9622 </param>
9623 <param name="flags" type="DirectoryRemoveRecFlag" dir="in" safearray="yes">
9624 <desc>Remove flags; see <link to="DirectoryRemoveRecFlag"/> for more information.</desc>
9625 </param>
9626 <param name="progress" type="IProgress" dir="return">
9627 <desc>Progress object to track the operation completion.</desc>
9628 </param>
9629 </method>
9630
9631 <method name="directoryRename">
9632 <desc>
9633 Renames a directory on the guest.
9634
9635 <result name="E_NOTIMPL">
9636 The method is not implemented yet.
9637 </result>
9638 </desc>
9639 <param name="source" type="wstring" dir="in">
9640 <desc>Source directory to rename.</desc>
9641 </param>
9642 <param name="dest" type="wstring" dir="in">
9643 <desc>Destination directory to rename the source to.</desc>
9644 </param>
9645 <param name="flags" type="PathRenameFlag" dir="in" safearray="yes">
9646 <desc>Rename flags; see <link to="PathRenameFlag"/> for more information.</desc>
9647 </param>
9648 </method>
9649
9650 <method name="directorySetACL">
9651 <desc>
9652 Sets the ACL (Access Control List) of a guest directory.
9653
9654 <result name="E_NOTIMPL">
9655 The method is not implemented yet.
9656 </result>
9657 </desc>
9658 <param name="path" type="wstring" dir="in">
9659 <desc>Full path of directory to set the ACL for.</desc>
9660 </param>
9661 <param name="acl" type="wstring" dir="in">
9662 <desc>Actual ACL string to set. Must comply with the guest OS.</desc>
9663 </param>
9664 </method>
9665
9666 <method name="environmentClear">
9667 <desc>
9668 Clears (deletes) all session environment variables.
9669
9670 <result name="VBOX_E_IPRT_ERROR">
9671 Error while clearing the session environment variables.
9672 </result>
9673 </desc>
9674 </method>
9675
9676 <method name="environmentGet">
9677 <desc>
9678 Gets the value of a session environment variable.
9679
9680 <result name="VBOX_E_IPRT_ERROR">
9681 Error while getting the value of the session environment variable.
9682 </result>
9683 </desc>
9684 <param name="name" type="wstring" dir="in">
9685 <desc>Name of session environment variable to get the value for.</desc>
9686 </param>
9687 <param name="value" type="wstring" dir="return">
9688 <desc>
9689 Value of the session environment variable specified. If this variable
9690 does not exist and empty value will be returned.
9691 </desc>
9692 </param>
9693 </method>
9694
9695 <method name="environmentSet">
9696 <desc>
9697 Sets a session environment variable.
9698
9699 <result name="VBOX_E_IPRT_ERROR">
9700 Error while setting the session environment variable.
9701 </result>
9702 </desc>
9703 <param name="name" type="wstring" dir="in">
9704 <desc>Name of session environment variable to set.</desc>
9705 </param>
9706 <param name="value" type="wstring" dir="in">
9707 <desc>Value to set the session environment variable to.</desc>
9708 </param>
9709 </method>
9710
9711 <method name="environmentUnset">
9712 <desc>
9713 Unsets session environment variable.
9714
9715 <result name="VBOX_E_IPRT_ERROR">
9716 Error while unsetting the session environment variable.
9717 </result>
9718 </desc>
9719 <param name="name" type="wstring" dir="in">
9720 <desc>Name of session environment variable to unset (clear).</desc>
9721 </param>
9722 </method>
9723
9724 <method name="fileCreateTemp">
9725 <desc>
9726 Creates a temporary file on the guest.
9727
9728 <result name="VBOX_E_NOT_SUPPORTED">
9729 The operation is not possible as requested on this particular
9730 guest type.
9731 </result>
9732 <result name="E_INVALIDARG">
9733 Invalid argument. This includes an incorrectly formatted template,
9734 or a non-absolute path.
9735 </result>
9736 <result name="VBOX_E_IPRT_ERROR">
9737 The temporary file could not be created. Possible reasons include
9738 a non-existing path or an insecure path when the secure
9739 option was requested.
9740 </result>
9741 </desc>
9742 <param name="templateName" type="wstring" dir="in">
9743 <desc>Template for the name of the file to create. This must contain
9744 at least one 'X' character. The first group of consecutive 'X'
9745 characters in the template will be replaced by a random
9746 alphanumeric string to produce a unique name.
9747 </desc>
9748 </param>
9749 <param name="mode" type="unsigned long" dir="in">
9750 <desc>The mode of the file to create. Use 0700 unless there are
9751 reasons not to. This parameter is ignored if "secure" is specified.
9752 </desc>
9753 </param>
9754 <param name="path" type="wstring" dir="in">
9755 <desc>The absolute path to create the temporary file in.</desc>
9756 </param>
9757 <param name="secure" type="boolean" dir="in">
9758 <desc>Whether to fail if the file can not be securely created.
9759 Currently this means that another unprivileged user cannot
9760 manipulate the path specified or remove the temporary file after
9761 it has been created. Also causes the mode specified to be ignored.
9762 May not be supported on all guest types.</desc>
9763 </param>
9764 <param name="file" type="IGuestFile" dir="return">
9765 <desc>On success this will contain an open file object for the new
9766 temporary file.
9767 </desc>
9768 </param>
9769 </method>
9770
9771 <method name="fileExists">
9772 <desc>
9773 Checks whether a file exists on the guest or not.
9774
9775 <result name="VBOX_E_IPRT_ERROR">
9776 Error while checking existence of the file specified.
9777 </result>
9778 </desc>
9779 <param name="path" type="wstring" dir="in">
9780 <desc>File to check existence for.</desc>
9781 </param>
9782 <param name="exists" type="boolean" dir="return">
9783 <desc>Returns @c true if the file exists, @c false if not.</desc>
9784 </param>
9785 </method>
9786
9787 <method name="fileRemove">
9788 <desc>
9789 Removes a single file on the guest.
9790
9791 <result name="VBOX_E_OBJECT_NOT_FOUND">
9792 File to remove was not found.
9793 </result>
9794 <result name="VBOX_E_IPRT_ERROR">
9795 Error while removing the file.
9796 </result>
9797 </desc>
9798 <param name="path" type="wstring" dir="in">
9799 <desc>Path to the file to remove.</desc>
9800 </param>
9801 </method>
9802
9803 <method name="fileOpen">
9804 <desc>
9805 Opens a file and creates a <link to="IGuestFile"/> object that
9806 can be used for further operations.
9807
9808 <result name="VBOX_E_OBJECT_NOT_FOUND">
9809 File to open was not found.
9810 </result>
9811 <result name="VBOX_E_IPRT_ERROR">
9812 Error while opening the file.
9813 </result>
9814 </desc>
9815 <param name="path" type="wstring" dir="in">
9816 <desc>Full path to file to open.</desc>
9817 </param>
9818 <param name="openMode" type="wstring" dir="in">
9819 <desc>The file open mode.</desc>
9820 </param>
9821 <param name="disposition" type="wstring" dir="in">
9822 <desc>The file disposition.</desc>
9823 </param>
9824 <param name="creationMode" type="unsigned long" dir="in">
9825 <desc>The file creation mode.</desc>
9826 </param>
9827 <param name="offset" type="long long" dir="in">
9828 <desc>The initial read/write offset.</desc>
9829 </param>
9830 <param name="file" type="IGuestFile" dir="return">
9831 <desc><link to="IGuestFile"/> object representing the opened file.</desc>
9832 </param>
9833 </method>
9834
9835 <method name="fileQueryInfo">
9836 <desc>
9837 Queries information of a file on the guest.
9838
9839 <result name="VBOX_E_OBJECT_NOT_FOUND">
9840 File to query information for was not found.
9841 </result>
9842 <result name="VBOX_E_IPRT_ERROR">
9843 Error querying information.
9844 </result>
9845 </desc>
9846 <param name="path" type="wstring" dir="in">
9847 <desc>File to query information for.</desc>
9848 </param>
9849 <param name="info" type="IGuestFsObjInfo" dir="return">
9850 <desc><link to="IGuestFsObjInfo"/> object containing the queried information.</desc>
9851 </param>
9852 </method>
9853
9854 <method name="fileQuerySize">
9855 <desc>
9856 Queries the size of a file on the guest.
9857
9858 <result name="VBOX_E_OBJECT_NOT_FOUND">
9859 File to rename was not found.
9860 </result>
9861 <result name="VBOX_E_IPRT_ERROR">
9862 Error querying file size.
9863 </result>
9864 </desc>
9865 <param name="path" type="wstring" dir="in">
9866 <desc>File to query the size for.</desc>
9867 </param>
9868 <param name="size" type="long long" dir="return">
9869 <desc>Queried file size.</desc>
9870 </param>
9871 </method>
9872
9873 <method name="fileRename">
9874 <desc>
9875 Renames a file on the guest.
9876
9877 <result name="E_NOTIMPL">
9878 The method is not implemented yet.
9879 </result>
9880 </desc>
9881 <param name="source" type="wstring" dir="in">
9882 <desc>Source file to rename.</desc>
9883 </param>
9884 <param name="dest" type="wstring" dir="in">
9885 <desc>Destination file to rename the source to.</desc>
9886 </param>
9887 <param name="flags" type="PathRenameFlag" dir="in" safearray="yes">
9888 <desc>Rename flags; see <link to="PathRenameFlag"/> for more information.</desc>
9889 </param>
9890 </method>
9891
9892 <method name="fileSetACL">
9893 <desc>
9894 Sets the ACL (Access Control List) of a file on the guest.
9895
9896 <result name="E_NOTIMPL">
9897 The method is not implemented yet.
9898 </result>
9899 </desc>
9900 <param name="file" type="wstring" dir="in">
9901 <desc>Full path of file to set the ACL for.</desc>
9902 </param>
9903 <param name="acl" type="wstring" dir="in">
9904 <desc>Actual ACL string to set. Must comply with the guest OS.</desc>
9905 </param>
9906 </method>
9907
9908 <method name="processCreate">
9909 <desc>
9910 Executes an existing program inside the guest VM.
9911
9912 <note>
9913 Starting at VirtualBox 4.2 guest process execution by default is limited
9914 to serve up to 255 guest processes at a time. If all 255 guest processes
9915 are still active and running, starting a new guest process will result in an
9916 appropriate error message.
9917
9918 If ProcessCreateFlag_WaitForStdOut and / or respectively ProcessCreateFlag_WaitForStdErr
9919 is / are set, the guest process will not exit until all data from the specified
9920 stream(s) is / are read out.
9921
9922 To raise or lower the guest process execution limit, either the guest property
9923 "/VirtualBox/GuestAdd/VBoxService/--control-procs-max-kept" or VBoxService'
9924 command line by specifying "--control-procs-max-kept" needs to be modified.
9925 A restart of the guest OS is required afterwards. To serve unlimited guest
9926 processes, a value of "0" needs to be set (not recommended).
9927 </note>
9928
9929 <result name="VBOX_E_IPRT_ERROR">
9930 Could not create process.
9931 </result>
9932 </desc>
9933 <param name="command" type="wstring" dir="in">
9934 <desc>
9935 Full path name of the command to execute on the guest; the
9936 commands has to exists in the guest VM in order to be executed.
9937 </desc>
9938 </param>
9939 <param name="arguments" type="wstring" dir="in" safearray="yes">
9940 <desc>Array of arguments passed to the execution command.</desc>
9941 </param>
9942 <param name="environment" type="wstring" dir="in" safearray="yes">
9943 <desc>
9944 Environment variables that can be set while the command is being
9945 executed, in form of "NAME=VALUE"; one pair per entry. To unset a
9946 variable just set its name ("NAME") without a value.
9947
9948 This parameter can be used to override environment variables set by
9949 the guest session, which will be applied to the newly started process
9950 in any case.
9951 </desc>
9952 </param>
9953 <param name="flags" type="ProcessCreateFlag" dir="in" safearray="yes">
9954 <desc>
9955 Process creation flags;
9956 see <link to="ProcessCreateFlag"/> for more information.
9957 </desc>
9958 </param>
9959 <param name="timeoutMS" type="unsigned long" dir="in">
9960 <desc>
9961 Timeout (in ms) to wait for the operation to complete.
9962 Pass 0 for an infinite timeout.
9963 </desc>
9964 </param>
9965 <param name="guestProcess" type="IGuestProcess" dir="return">
9966 <desc>Guest process object of the newly created process.</desc>
9967 </param>
9968 </method>
9969
9970 <method name="processCreateEx">
9971 <desc>
9972 Executes an existing program inside the guest VM. Extended version for
9973 also setting the process priority and affinity.
9974
9975 <note>
9976 Starting at VirtualBox 4.2 guest process execution by default is limited
9977 to serve up to 255 guest processes at a time. If all 255 guest processes
9978 are still active and running, starting a new guest process will result in an
9979 appropriate error message.
9980
9981 If ProcessCreateFlag_WaitForStdOut and / or respectively ProcessCreateFlag_WaitForStdErr
9982 is / are set, the guest process will not exit until all data from the specified
9983 stream(s) is / are read out.
9984
9985 To raise or lower the guest process execution limit, either the guest property
9986 "/VirtualBox/GuestAdd/VBoxService/--control-procs-max-kept" or VBoxService'
9987 command line by specifying "--control-procs-max-kept" needs to be modified.
9988 A restart of the guest OS is required afterwards. To serve unlimited guest
9989 processes, a value of "0" needs to be set (not recommended).
9990 </note>
9991
9992 <result name="VBOX_E_IPRT_ERROR">
9993 Could not create process.
9994 </result>
9995 </desc>
9996 <param name="command" type="wstring" dir="in">
9997 <desc>
9998 Full path name of the command to execute on the guest; the
9999 commands has to exists in the guest VM in order to be executed.
10000 </desc>
10001 </param>
10002 <param name="arguments" type="wstring" dir="in" safearray="yes">
10003 <desc>Array of arguments passed to the execution command.</desc>
10004 </param>
10005 <param name="environment" type="wstring" dir="in" safearray="yes">
10006 <desc>
10007 Environment variables that can be set while the command is being
10008 executed, in form of "NAME=VALUE"; one pair per entry. To unset a
10009 variable just set its name ("NAME") without a value.
10010
10011 This parameter can be used to override environment variables set by
10012 the guest session, which will be applied to the newly started process
10013 in any case.
10014 </desc>
10015 </param>
10016 <param name="flags" type="ProcessCreateFlag" dir="in" safearray="yes">
10017 <desc>
10018 Process creation flags;
10019 see <link to="ProcessCreateFlag"/> for more information.
10020 </desc>
10021 </param>
10022 <param name="timeoutMS" type="unsigned long" dir="in">
10023 <desc>
10024 Timeout (in ms) to wait for the operation to complete.
10025 Pass 0 for an infinite timeout.
10026 </desc>
10027 </param>
10028 <param name="priority" type="ProcessPriority" dir="in">
10029 <desc>
10030 Process priority to use for execution;
10031 see see <link to="ProcessPriority"/> for more information.</desc>
10032 </param>
10033 <param name="affinity" type="long" dir="in" safearray="yes">
10034 <desc>
10035 Process affinity to use for execution. This parameter
10036 is not implemented yet.
10037 </desc>
10038 </param>
10039 <param name="guestProcess" type="IGuestProcess" dir="return">
10040 <desc>Guest process object of the newly created process.</desc>
10041 </param>
10042 </method>
10043
10044 <method name="processGet">
10045 <desc>
10046 Gets a certain guest process by its process ID (PID).
10047 </desc>
10048 <param name="pid" type="unsigned long" dir="in">
10049 <desc>Process ID (PID) to get guest process for.</desc>
10050 </param>
10051 <param name="guestProcess" type="IGuestProcess" dir="return">
10052 <desc>Guest process of specified process ID (PID).</desc>
10053 </param>
10054 </method>
10055
10056 <method name="symlinkCreate">
10057 <desc>
10058 Creates a symbolic link on the guest.
10059
10060 <result name="E_NOTIMPL">
10061 The method is not implemented yet.
10062 </result>
10063 </desc>
10064 <param name="source" type="wstring" dir="in">
10065 <desc>The name of the symbolic link.</desc>
10066 </param>
10067 <param name="target" type="wstring" dir="in">
10068 <desc>The path to the symbolic link target.</desc>
10069 </param>
10070 <param name="type" type="SymlinkType" dir="in">
10071 <desc>
10072 The symbolic link type;
10073 see <link to="SymlinkReadFlag"/> for more information.
10074 </desc>
10075 </param>
10076 </method>
10077
10078 <method name="symlinkExists">
10079 <desc>
10080 Checks whether a symbolic link exists on the guest or not.
10081
10082 <result name="E_NOTIMPL">
10083 The method is not implemented yet.
10084 </result>
10085 </desc>
10086 <param name="symlink" type="wstring" dir="in">
10087 <desc>Symbolic link to check existence for.</desc>
10088 </param>
10089 <param name="exists" type="boolean" dir="return">
10090 <desc>Returns @c true if the symbolic link exists, @c false if not.</desc>
10091 </param>
10092 </method>
10093
10094 <method name="symlinkRead">
10095 <desc>
10096 Reads a symbolic link on the guest.
10097
10098 <result name="E_NOTIMPL">
10099 The method is not implemented yet.
10100 </result>
10101 </desc>
10102 <param name="symlink" type="wstring" dir="in">
10103 <desc>Full path to symbolic link to read.</desc>
10104 </param>
10105 <param name="flags" type="SymlinkReadFlag" dir="in" safearray="yes">
10106 <desc>
10107 Read flags; see <link to="SymlinkReadFlag"/> for more information.
10108 </desc>
10109 </param>
10110 <param name="target" type="wstring" dir="return">
10111 <desc>
10112 Target of the symbolic link pointing to, if found.
10113 </desc>
10114 </param>
10115 </method>
10116
10117 <method name="symlinkRemoveDirectory">
10118 <desc>
10119 Removes a symbolic link on the guest if it's a directory.
10120
10121 <result name="E_NOTIMPL">
10122 The method is not implemented yet.
10123 </result>
10124 </desc>
10125 <param name="path" type="wstring" dir="in">
10126 <desc>Symbolic link to remove.</desc>
10127 </param>
10128 </method>
10129
10130 <method name="symlinkRemoveFile">
10131 <desc>
10132 Removes a symbolic link on the guest if it's a file.
10133
10134 <result name="E_NOTIMPL">
10135 The method is not implemented yet.
10136 </result>
10137 </desc>
10138 <param name="file" type="wstring" dir="in">
10139 <desc>Symbolic link to remove.</desc>
10140 </param>
10141 </method>
10142
10143 </interface>
10144
10145 <interface
10146 name="IProcess" extends="$unknown"
10147 uuid="08864d56-96ab-418b-adbc-5a679532aeb0"
10148 wsmap="managed"
10149 >
10150 <desc>
10151 Abstract parent interface for processes handled by VirtualBox.
10152 </desc>
10153 <attribute name="PID" type="unsigned long" readonly="yes">
10154 <desc>
10155 The process ID (PID).
10156 </desc>
10157 </attribute>
10158 <attribute name="status" type="ProcessStatus" readonly="yes">
10159 <desc>
10160 The current process status; see <link to="ProcessStatus"/>
10161 for more information.
10162 </desc>
10163 </attribute>
10164 <attribute name="exitCode" type="long" readonly="yes">
10165 <desc>
10166 The exit code. Only available when the process has been
10167 terminated normally.
10168 </desc>
10169 </attribute>
10170 <attribute name="environment" type="wstring" readonly="yes" safearray="yes">
10171 <desc>
10172 The environment block this process is using during execution.
10173 </desc>
10174 </attribute>
10175 <attribute name="arguments" type="wstring" readonly="yes" safearray="yes">
10176 <desc>
10177 The arguments this process is using for execution.
10178 </desc>
10179 </attribute>
10180 <attribute name="executablePath" type="wstring" readonly="yes">
10181 <desc>Full path of the actual executable image.</desc>
10182 </attribute>
10183 <attribute name="name" type="wstring" readonly="yes">
10184 <desc>The friendly name of this process.</desc>
10185 </attribute>
10186
10187 <method name="waitFor">
10188 <desc>
10189 Waits for one more events to happen.
10190 </desc>
10191 <param name="waitFor" type="unsigned long" dir="in">
10192 <desc>
10193 Specifies what to wait for;
10194 see <link to="ProcessWaitForFlag"/> for more information.
10195 </desc>
10196 </param>
10197 <param name="timeoutMS" type="unsigned long" dir="in">
10198 <desc>
10199 Timeout (in ms) to wait for the operation to complete.
10200 Pass 0 for an infinite timeout.
10201 </desc>
10202 </param>
10203 <param name="reason" type="ProcessWaitResult" dir="return">
10204 <desc>
10205 The overall wait result;
10206 see <link to="ProcessWaitResult"/> for more information.
10207 </desc>
10208 </param>
10209 </method>
10210
10211 <method name="waitForArray">
10212 <desc>
10213 Waits for one more events to happen.
10214 Scriptable version of <link to="#waitFor" />.
10215 </desc>
10216 <param name="waitFor" type="ProcessWaitForFlag" dir="in" safearray="yes">
10217 <desc>
10218 Specifies what to wait for;
10219 see <link to="ProcessWaitForFlag"/> for more information.
10220 </desc>
10221 </param>
10222 <param name="timeoutMS" type="unsigned long" dir="in">
10223 <desc>
10224 Timeout (in ms) to wait for the operation to complete.
10225 Pass 0 for an infinite timeout.
10226 </desc>
10227 </param>
10228 <param name="reason" type="ProcessWaitResult" dir="return">
10229 <desc>
10230 The overall wait result;
10231 see <link to="ProcessWaitResult"/> for more information.
10232 </desc>
10233 </param>
10234 </method>
10235
10236 <method name="read">
10237 <desc>
10238 Reads data from a running process.
10239 </desc>
10240 <param name="handle" type="unsigned long" dir="in">
10241 <desc>Handle to read from. Usually 0 is stdin.</desc>
10242 </param>
10243 <param name="toRead" type="unsigned long" dir="in">
10244 <desc>Number of bytes to read.</desc>
10245 </param>
10246 <param name="timeoutMS" type="unsigned long" dir="in">
10247 <desc>
10248 Timeout (in ms) to wait for the operation to complete.
10249 Pass 0 for an infinite timeout.
10250 </desc>
10251 </param>
10252 <param name="data" type="octet" dir="return" safearray="yes">
10253 <desc>Array of data read.</desc>
10254 </param>
10255 </method>
10256
10257 <method name="write">
10258 <desc>
10259 Writes data to a running process.
10260 </desc>
10261 <param name="handle" type="unsigned long" dir="in">
10262 <desc>Handle to write to. Usually 0 is stdin, 1 is stdout and 2 is stderr.</desc>
10263 </param>
10264 <param name="flags" type="unsigned long" dir="in">
10265 <desc>
10266 A combination of <link to="ProcessInputFlag"/> flags.
10267 </desc>
10268 </param>
10269 <param name="data" type="octet" dir="in" safearray="yes">
10270 <desc>
10271 Array of bytes to write. The size of the array also specifies
10272 how much to write.
10273 </desc>
10274 </param>
10275 <param name="timeoutMS" type="unsigned long" dir="in">
10276 <desc>
10277 Timeout (in ms) to wait for the operation to complete.
10278 Pass 0 for an infinite timeout.
10279 </desc>
10280 </param>
10281 <param name="written" type="unsigned long" dir="return">
10282 <desc>How much bytes were written.</desc>
10283 </param>
10284 </method>
10285
10286 <method name="writeArray">
10287 <desc>
10288 Writes data to a running process.
10289 Scriptable version of <link to="#write" />.
10290 </desc>
10291 <param name="handle" type="unsigned long" dir="in">
10292 <desc>Handle to write to. Usually 0 is stdin, 1 is stdout and 2 is stderr.</desc>
10293 </param>
10294 <param name="flags" type="ProcessInputFlag" dir="in" safearray="yes">
10295 <desc>
10296 A combination of <link to="ProcessInputFlag"/> flags.
10297 </desc>
10298 </param>
10299 <param name="data" type="octet" dir="in" safearray="yes">
10300 <desc>
10301 Array of bytes to write. The size of the array also specifies
10302 how much to write.
10303 </desc>
10304 </param>
10305 <param name="timeoutMS" type="unsigned long" dir="in">
10306 <desc>
10307 Timeout (in ms) to wait for the operation to complete.
10308 Pass 0 for an infinite timeout.
10309 </desc>
10310 </param>
10311 <param name="written" type="unsigned long" dir="return">
10312 <desc>How much bytes were written.</desc>
10313 </param>
10314 </method>
10315
10316 <method name="terminate">
10317 <desc>
10318 Terminates (kills) a running process.
10319 </desc>
10320 </method>
10321 </interface>
10322
10323 <interface
10324 name="IGuestProcess" extends="IProcess"
10325 uuid="dfa39a36-5d43-4840-a025-67ea956b3111"
10326 wsmap="managed"
10327 >
10328 <desc>
10329 Implementation of the <link to="IProcess" /> object
10330 for processes on the guest.
10331 </desc>
10332 </interface>
10333
10334 <interface
10335 name="IDirectory" extends="$unknown"
10336 uuid="1b70dd03-26d7-483a-8877-89bbb0f87b70"
10337 wsmap="managed"
10338 >
10339 <desc>
10340 Abstract parent interface for directories handled by VirtualBox.
10341 </desc>
10342
10343 <attribute name="directoryName" type="wstring" readonly="yes">
10344 <desc>
10345 Full path of directory.
10346 </desc>
10347 </attribute>
10348
10349 <attribute name="filter" type="wstring" readonly="yes">
10350 <desc>
10351 The open filter.
10352 </desc>
10353 </attribute>
10354
10355 <method name="close">
10356 <desc>
10357 Closes this directory. After closing operations like reading the next
10358 directory entry will not be possible anymore.
10359 </desc>
10360 </method>
10361
10362 <method name="read">
10363 <desc>
10364 Reads the next directory entry of this directory.
10365 <result name="VBOX_E_OBJECT_NOT_FOUND">
10366 No more directory entries to read.
10367 </result>
10368 </desc>
10369 <param name="objInfo" type="IFsObjInfo" dir="return">
10370 <desc>Object information of the current directory entry read. Also see <link to="IFsObjInfo"/>.</desc>
10371 </param>
10372 </method>
10373 </interface>
10374
10375 <interface
10376 name="IGuestDirectory" extends="IDirectory"
10377 uuid="af4a8ce0-0725-42b7-8826-46e3c7ba7357"
10378 wsmap="managed"
10379 >
10380 <desc>
10381 Implementation of the <link to="IDirectory" /> object
10382 for directories on the guest.
10383 </desc>
10384 </interface>
10385
10386 <interface
10387 name="IFile" extends="$unknown"
10388 uuid="b702a560-6139-4a8e-a892-bbf14b97bf97"
10389 wsmap="managed"
10390 >
10391 <desc>
10392 Abstract parent interface for files handled by VirtualBox.
10393 </desc>
10394 <attribute name="creationMode" type="unsigned long" readonly="yes">
10395 <desc>
10396 The creation mode.
10397 </desc>
10398 </attribute>
10399 <attribute name="disposition" type="unsigned long" readonly="yes">
10400 <desc>
10401 The disposition mode.
10402 </desc>
10403 </attribute>
10404 <attribute name="fileName" type="wstring" readonly="yes">
10405 <desc>
10406 Full path of the actual file name of this file.
10407 </desc>
10408 </attribute>
10409 <attribute name="initialSize" type="long long" readonly="yes">
10410 <desc>
10411 The initial size in bytes when opened.
10412 </desc>
10413 </attribute>
10414 <attribute name="openMode" type="unsigned long" readonly="yes">
10415 <desc>
10416 The open mode.
10417 </desc>
10418 </attribute>
10419 <attribute name="offset" type="long long" readonly="yes">
10420 <desc>
10421 Current read/write offset in bytes.
10422 </desc>
10423 </attribute>
10424
10425 <method name="close">
10426 <desc>
10427 Closes this file. After closing operations like reading data,
10428 writing data or querying information will not be possible anymore.
10429 </desc>
10430 </method>
10431
10432 <method name="queryInfo">
10433 <desc>
10434 Queries information about this file.
10435
10436 <result name="E_NOTIMPL">
10437 The method is not implemented yet.
10438 </result>
10439 </desc>
10440 <param name="objInfo" type="IFsObjInfo" dir="return">
10441 <desc>Object information of this file. Also see <link to="IFsObjInfo"/>.</desc>
10442 </param>
10443 </method>
10444
10445 <method name="read">
10446 <desc>
10447 Reads data from this file.
10448
10449 <result name="E_NOTIMPL">
10450 The method is not implemented yet.
10451 </result>
10452 </desc>
10453 <param name="toRead" type="unsigned long" dir="in">
10454 <desc>Number of bytes to read.</desc>
10455 </param>
10456 <param name="timeoutMS" type="unsigned long" dir="in">
10457 <desc>
10458 Timeout (in ms) to wait for the operation to complete.
10459 Pass 0 for an infinite timeout.
10460 </desc>
10461 </param>
10462 <param name="data" type="octet" dir="return" safearray="yes">
10463 <desc>Array of data read.</desc>
10464 </param>
10465 </method>
10466
10467 <method name="readAt">
10468 <desc>
10469 Reads data from an offset of this file.
10470
10471 <result name="E_NOTIMPL">
10472 The method is not implemented yet.
10473 </result>
10474 </desc>
10475 <param name="offset" type="long long" dir="in">
10476 <desc>Offset in bytes to start reading.</desc>
10477 </param>
10478 <param name="toRead" type="unsigned long" dir="in">
10479 <desc>Number of bytes to read.</desc>
10480 </param>
10481 <param name="timeoutMS" type="unsigned long" dir="in">
10482 <desc>
10483 Timeout (in ms) to wait for the operation to complete.
10484 Pass 0 for an infinite timeout.
10485 </desc>
10486 </param>
10487 <param name="data" type="octet" dir="return" safearray="yes">
10488 <desc>Array of data read.</desc>
10489 </param>
10490 </method>
10491
10492 <method name="seek">
10493 <desc>
10494 Changes the read and write position of this file.
10495
10496 <result name="E_NOTIMPL">
10497 The method is not implemented yet.
10498 </result>
10499 </desc>
10500 <param name="offset" type="long long" dir="in">
10501 <desc>Offset to seek.</desc>
10502 </param>
10503 <param name="whence" type="FileSeekType" dir="in">
10504 <desc>
10505 Seek mode; see <link to="FileSeekType"/> for more information.
10506 </desc>
10507 </param>
10508 </method>
10509
10510 <method name="setACL">
10511 <desc>
10512 Sets the ACL of this file.
10513
10514 <result name="E_NOTIMPL">
10515 The method is not implemented yet.
10516 </result>
10517 </desc>
10518 <param name="acl" type="wstring" dir="in">
10519 <desc>ACL string to set.</desc>
10520 </param>
10521 </method>
10522
10523 <method name="write">
10524 <desc>
10525 Writes bytes to this file.
10526 </desc>
10527 <param name="data" type="octet" dir="in" safearray="yes">
10528 <desc>
10529 Array of bytes to write. The size of the array also specifies
10530 how much to write.
10531 </desc>
10532 </param>
10533 <param name="timeoutMS" type="unsigned long" dir="in">
10534 <desc>
10535 Timeout (in ms) to wait for the operation to complete.
10536 Pass 0 for an infinite timeout.
10537 </desc>
10538 </param>
10539 <param name="written" type="unsigned long" dir="return">
10540 <desc>How much bytes were written.</desc>
10541 </param>
10542 </method>
10543
10544 <method name="writeAt">
10545 <desc>
10546 Writes bytes at a certain offset to this file.
10547
10548 <result name="E_NOTIMPL">
10549 The method is not implemented yet.
10550 </result>
10551 </desc>
10552 <param name="offset" type="long long" dir="in">
10553 <desc>Offset in bytes to start writing.</desc>
10554 </param>
10555 <param name="data" type="octet" dir="in" safearray="yes">
10556 <desc>
10557 Array of bytes to write. The size of the array also specifies
10558 how much to write.
10559 </desc>
10560 </param>
10561 <param name="timeoutMS" type="unsigned long" dir="in">
10562 <desc>
10563 Timeout (in ms) to wait for the operation to complete.
10564 Pass 0 for an infinite timeout.
10565 </desc>
10566 </param>
10567 <param name="written" type="unsigned long" dir="return">
10568 <desc>How much bytes were written.</desc>
10569 </param>
10570 </method>
10571
10572 </interface>
10573
10574 <interface
10575 name="IGuestFile" extends="IFile"
10576 uuid="60661aec-145f-4d11-b80e-8ea151598093"
10577 wsmap="managed"
10578 >
10579 <desc>
10580 Implementation of the <link to="IFile" /> object
10581 for files on the guest.
10582 </desc>
10583 </interface>
10584
10585 <interface
10586 name="IFsObjInfo" extends="$unknown"
10587 uuid="4047ba30-7006-4966-ae86-94164e5e20eb"
10588 wsmap="managed"
10589 >
10590 <desc>
10591 Abstract parent interface for VirtualBox file system object information.
10592 This can be information about a file or a directory, for example.
10593 </desc>
10594
10595 <attribute name="accessTime" type="long long" readonly="yes">
10596 <desc>
10597 Time of last access (st_atime).
10598 </desc>
10599 </attribute>
10600 <attribute name="allocatedSize" type="long long" readonly="yes">
10601 <desc>
10602 Disk allocation size (st_blocks * DEV_BSIZE).
10603 </desc>
10604 </attribute>
10605 <attribute name="birthTime" type="long long" readonly="yes">
10606 <desc>
10607 Time of file birth (st_birthtime).
10608 </desc>
10609 </attribute>
10610 <attribute name="changeTime" type="long long" readonly="yes">
10611 <desc>
10612 Time of last status change (st_ctime).
10613 </desc>
10614 </attribute>
10615 <attribute name="deviceNumber" type="unsigned long" readonly="yes">
10616 <desc>
10617 The device number of a character or block device type object (st_rdev).
10618 </desc>
10619 </attribute>
10620 <attribute name="fileAttributes" type="wstring" readonly="yes">
10621 <desc>
10622 File attributes. Not implemented yet.
10623 </desc>
10624 </attribute>
10625 <attribute name="generationId" type="unsigned long" readonly="yes">
10626 <desc>
10627 The current generation number (st_gen).
10628 </desc>
10629 </attribute>
10630 <attribute name="GID" type="unsigned long" readonly="yes">
10631 <desc>
10632 The group the filesystem object is assigned (st_gid).
10633 </desc>
10634 </attribute>
10635 <attribute name="groupName" type="wstring" readonly="yes">
10636 <desc>
10637 The group name.
10638 </desc>
10639 </attribute>
10640 <attribute name="hardLinks" type="unsigned long" readonly="yes">
10641 <desc>
10642 Number of hard links to this filesystem object (st_nlink).
10643 </desc>
10644 </attribute>
10645 <attribute name="modificationTime" type="long long" readonly="yes">
10646 <desc>
10647 Time of last data modification (st_mtime).
10648 </desc>
10649 </attribute>
10650 <attribute name="name" type="wstring" readonly="yes">
10651 <desc>
10652 The object's name.
10653 </desc>
10654 </attribute>
10655 <attribute name="nodeId" type="long long" readonly="yes">
10656 <desc>
10657 The unique identifier (within the filesystem) of this filesystem object (st_ino).
10658 </desc>
10659 </attribute>
10660 <attribute name="nodeIdDevice" type="unsigned long" readonly="yes">
10661 <desc>
10662 The device number of the device which this filesystem object resides on (st_dev).
10663 </desc>
10664 </attribute>
10665 <attribute name="objectSize" type="long long" readonly="yes">
10666 <desc>
10667 The logical size (st_size). For normal files this is the size of the file.
10668 For symbolic links, this is the length of the path name contained in the
10669 symbolic link. For other objects this fields needs to be specified.
10670 </desc>
10671 </attribute>
10672 <attribute name="type" type="FsObjType" readonly="yes">
10673 <desc>
10674 The object type. See <link to="FsObjType" /> for more.
10675 </desc>
10676 </attribute>
10677 <attribute name="UID" type="unsigned long" readonly="yes">
10678 <desc>
10679 The user owning the filesystem object (st_uid).
10680 </desc>
10681 </attribute>
10682 <attribute name="userFlags" type="unsigned long" readonly="yes">
10683 <desc>
10684 User flags (st_flags).
10685 </desc>
10686 </attribute>
10687 <attribute name="userName" type="wstring" readonly="yes">
10688 <desc>
10689 The user name.
10690 </desc>
10691 </attribute>
10692
10693 </interface>
10694
10695 <interface
10696 name="IGuestFsObjInfo" extends="IFsObjInfo"
10697 uuid="d5cf678e-3484-4e4a-ac55-329e15462e18"
10698 wsmap="managed"
10699 >
10700 <desc>
10701 Represents the guest implementation of the
10702 <link to="IFsObjInfo" /> object.
10703 </desc>
10704 </interface>
10705
10706 <interface
10707 name="IGuest" extends="$unknown"
10708 uuid="19c32350-0618-4ede-b0c3-2b4311bf0d9b"
10709 wsmap="managed"
10710 >
10711 <desc>
10712 The IGuest interface represents information about the operating system
10713 running inside the virtual machine. Used in
10714 <link to="IConsole::guest"/>.
10715
10716 IGuest provides information about the guest operating system, whether
10717 Guest Additions are installed and other OS-specific virtual machine
10718 properties.
10719 </desc>
10720
10721 <attribute name="OSTypeId" type="wstring" readonly="yes">
10722 <desc>
10723 Identifier of the Guest OS type as reported by the Guest
10724 Additions.
10725 You may use <link to="IVirtualBox::getGuestOSType"/> to obtain
10726 an IGuestOSType object representing details about the given
10727 Guest OS type.
10728 <note>
10729 If Guest Additions are not installed, this value will be
10730 the same as <link to="IMachine::OSTypeId"/>.
10731 </note>
10732 </desc>
10733 </attribute>
10734
10735 <attribute name="additionsRunLevel" type="AdditionsRunLevelType" readonly="yes">
10736 <desc>
10737 Current run level of the Guest Additions.
10738 </desc>
10739 </attribute>
10740
10741 <attribute name="additionsVersion" type="wstring" readonly="yes">
10742 <desc>
10743 Version of the Guest Additions in the same format as
10744 <link to="IVirtualBox::version"/>.
10745 </desc>
10746 </attribute>
10747
10748 <attribute name="additionsRevision" type="unsigned long" readonly="yes">
10749 <desc>
10750 The internal build revision number of the additions.
10751
10752 See also <link to="IVirtualBox::revision"/>.
10753 </desc>
10754 </attribute>
10755
10756 <attribute name="facilities" type="IAdditionsFacility" readonly="yes" safearray="yes">
10757 <desc>
10758 Array of current known facilities. Only returns facilities where a status is known,
10759 e.g. facilities with an unknown status will not be returned.
10760 </desc>
10761 </attribute>
10762
10763 <attribute name="sessions" type="IGuestSession" readonly="yes" safearray="yes">
10764 <desc>Returns a collection of all opened guest sessions.</desc>
10765 </attribute>
10766
10767 <attribute name="memoryBalloonSize" type="unsigned long">
10768 <desc>Guest system memory balloon size in megabytes (transient property).</desc>
10769 </attribute>
10770
10771 <attribute name="statisticsUpdateInterval" type="unsigned long">
10772 <desc>Interval to update guest statistics in seconds.</desc>
10773 </attribute>
10774
10775 <method name="internalGetStatistics">
10776 <desc>
10777 Internal method; do not use as it might change at any time.
10778 </desc>
10779 <param name="cpuUser" type="unsigned long" dir="out">
10780 <desc>Percentage of processor time spent in user mode as seen by the guest.</desc>
10781 </param>
10782 <param name="cpuKernel" type="unsigned long" dir="out">
10783 <desc>Percentage of processor time spent in kernel mode as seen by the guest.</desc>
10784 </param>
10785 <param name="cpuIdle" type="unsigned long" dir="out">
10786 <desc>Percentage of processor time spent idling as seen by the guest.</desc>
10787 </param>
10788 <param name="memTotal" type="unsigned long" dir="out">
10789 <desc>Total amount of physical guest RAM.</desc>
10790 </param>
10791 <param name="memFree" type="unsigned long" dir="out">
10792 <desc>Free amount of physical guest RAM.</desc>
10793 </param>
10794 <param name="memBalloon" type="unsigned long" dir="out">
10795 <desc>Amount of ballooned physical guest RAM.</desc>
10796 </param>
10797 <param name="memShared" type="unsigned long" dir="out">
10798 <desc>Amount of shared physical guest RAM.</desc>
10799 </param>
10800 <param name="memCache" type="unsigned long" dir="out">
10801 <desc>Total amount of guest (disk) cache memory.</desc>
10802 </param>
10803 <param name="pagedTotal" type="unsigned long" dir="out">
10804 <desc>Total amount of space in the page file.</desc>
10805 </param>
10806 <param name="memAllocTotal" type="unsigned long" dir="out">
10807 <desc>Total amount of memory allocated by the hypervisor.</desc>
10808 </param>
10809 <param name="memFreeTotal" type="unsigned long" dir="out">
10810 <desc>Total amount of free memory available in the hypervisor.</desc>
10811 </param>
10812 <param name="memBalloonTotal" type="unsigned long" dir="out">
10813 <desc>Total amount of memory ballooned by the hypervisor.</desc>
10814 </param>
10815 <param name="memSharedTotal" type="unsigned long" dir="out">
10816 <desc>Total amount of shared memory in the hypervisor.</desc>
10817 </param>
10818 </method>
10819
10820 <method name="getFacilityStatus">
10821 <desc>
10822 Get the current status of a Guest Additions facility.
10823 </desc>
10824 <param name="facility" type="AdditionsFacilityType" dir="in">
10825 <desc>Facility to check status for.</desc>
10826 </param>
10827 <param name="timestamp" type="long long" dir="out">
10828 <desc>Timestamp (in ms) of last status update seen by the host.</desc>
10829 </param>
10830 <param name="status" type="AdditionsFacilityStatus" dir="return">
10831 <desc>The current (latest) facility status.</desc>
10832 </param>
10833 </method>
10834
10835 <method name="getAdditionsStatus">
10836 <desc>
10837 Retrieve the current status of a certain Guest Additions run level.
10838
10839 <result name="VBOX_E_NOT_SUPPORTED">
10840 Wrong status level specified.
10841 </result>
10842
10843 </desc>
10844 <param name="level" type="AdditionsRunLevelType" dir="in">
10845 <desc>Status level to check</desc>
10846 </param>
10847 <param name="active" type="boolean" dir="return">
10848 <desc>Flag whether the status level has been reached or not</desc>
10849 </param>
10850 </method>
10851
10852 <method name="setCredentials">
10853 <desc>
10854 Store login credentials that can be queried by guest operating
10855 systems with Additions installed. The credentials are transient
10856 to the session and the guest may also choose to erase them. Note
10857 that the caller cannot determine whether the guest operating system
10858 has queried or made use of the credentials.
10859
10860 <result name="VBOX_E_VM_ERROR">
10861 VMM device is not available.
10862 </result>
10863
10864 </desc>
10865 <param name="userName" type="wstring" dir="in">
10866 <desc>User name string, can be empty</desc>
10867 </param>
10868 <param name="password" type="wstring" dir="in">
10869 <desc>Password string, can be empty</desc>
10870 </param>
10871 <param name="domain" type="wstring" dir="in">
10872 <desc>Domain name (guest logon scheme specific), can be empty</desc>
10873 </param>
10874 <param name="allowInteractiveLogon" type="boolean" dir="in">
10875 <desc>
10876 Flag whether the guest should alternatively allow the user to
10877 interactively specify different credentials. This flag might
10878 not be supported by all versions of the Additions.
10879 </desc>
10880 </param>
10881 </method>
10882
10883 <method name="dragHGEnter">
10884 <desc>
10885 Informs the guest about a Drag and Drop enter event.
10886
10887 This is used in Host - Guest direction.
10888
10889 <result name="VBOX_E_VM_ERROR">
10890 VMM device is not available.
10891 </result>
10892
10893 </desc>
10894 <param name="screenId" type="unsigned long" dir="in">
10895 <desc>The screen id where the Drag and Drop event occured.</desc>
10896 </param>
10897 <param name="y" type="unsigned long" dir="in">
10898 <desc>y-position of the event.</desc>
10899 </param>
10900 <param name="x" type="unsigned long" dir="in">
10901 <desc>x-position of the event.</desc>
10902 </param>
10903 <param name="defaultAction" type="DragAndDropAction" dir="in">
10904 <desc>The default action to use.</desc>
10905 </param>
10906 <param name="allowedActions" type="DragAndDropAction" dir="in" safearray="yes">
10907 <desc>The actions which are allowed.</desc>
10908 </param>
10909 <param name="formats" type="wstring" dir="in" safearray="yes">
10910 <desc>The supported mime types.</desc>
10911 </param>
10912 <param name="resultAction" type="DragAndDropAction" dir="return">
10913 <desc>The resulting action of this event.</desc>
10914 </param>
10915 </method>
10916
10917 <method name="dragHGMove">
10918 <desc>
10919 Informs the guest about a Drag and Drop move event.
10920
10921 This is used in Host - Guest direction.
10922
10923 <result name="VBOX_E_VM_ERROR">
10924 VMM device is not available.
10925 </result>
10926
10927 </desc>
10928 <param name="screenId" type="unsigned long" dir="in">
10929 <desc>The screen id where the Drag and Drop event occured.</desc>
10930 </param>
10931 <param name="x" type="unsigned long" dir="in">
10932 <desc>x-position of the event.</desc>
10933 </param>
10934 <param name="y" type="unsigned long" dir="in">
10935 <desc>y-position of the event.</desc>
10936 </param>
10937 <param name="defaultAction" type="DragAndDropAction" dir="in">
10938 <desc>The default action to use.</desc>
10939 </param>
10940 <param name="allowedActions" type="DragAndDropAction" dir="in" safearray="yes">
10941 <desc>The actions which are allowed.</desc>
10942 </param>
10943 <param name="formats" type="wstring" dir="in" safearray="yes">
10944 <desc>The supported mime types.</desc>
10945 </param>
10946 <param name="resultAction" type="DragAndDropAction" dir="return">
10947 <desc>The resulting action of this event.</desc>
10948 </param>
10949 </method>
10950
10951 <method name="dragHGLeave">
10952 <desc>
10953 Informs the guest about a Drag and Drop leave event.
10954
10955 This is used in Host - Guest direction.
10956
10957 <result name="VBOX_E_VM_ERROR">
10958 VMM device is not available.
10959 </result>
10960
10961 </desc>
10962 <param name="screenId" type="unsigned long" dir="in">
10963 <desc>The screen id where the Drag and Drop event occured.</desc>
10964 </param>
10965 </method>
10966
10967 <method name="dragHGDrop">
10968 <desc>
10969 Informs the guest about a drop event.
10970
10971 This is used in Host - Guest direction.
10972
10973 <result name="VBOX_E_VM_ERROR">
10974 VMM device is not available.
10975 </result>
10976
10977 </desc>
10978 <param name="screenId" type="unsigned long" dir="in">
10979 <desc>The screen id where the Drag and Drop event occured.</desc>
10980 </param>
10981 <param name="x" type="unsigned long" dir="in">
10982 <desc>x-position of the event.</desc>
10983 </param>
10984 <param name="y" type="unsigned long" dir="in">
10985 <desc>y-position of the event.</desc>
10986 </param>
10987 <param name="defaultAction" type="DragAndDropAction" dir="in">
10988 <desc>The default action to use.</desc>
10989 </param>
10990 <param name="allowedActions" type="DragAndDropAction" dir="in" safearray="yes">
10991 <desc>The actions which are allowed.</desc>
10992 </param>
10993 <param name="formats" type="wstring" dir="in" safearray="yes">
10994 <desc>The supported mime types.</desc>
10995 </param>
10996 <param name="format" type="wstring" dir="out">
10997 <desc>The resulting format of this event.</desc>
10998 </param>
10999 <param name="resultAction" type="DragAndDropAction" dir="return">
11000 <desc>The resulting action of this event.</desc>
11001 </param>
11002 </method>
11003
11004 <method name="dragHGPutData">
11005 <desc>
11006 Informs the guest about a drop data event.
11007
11008 This is used in Host - Guest direction.
11009
11010 <result name="VBOX_E_VM_ERROR">
11011 VMM device is not available.
11012 </result>
11013
11014 </desc>
11015 <param name="screenId" type="unsigned long" dir="in">
11016 <desc>The screen id where the Drag and Drop event occured.</desc>
11017 </param>
11018 <param name="format" type="wstring" dir="in">
11019 <desc>The mime type the data is in.</desc>
11020 </param>
11021 <param name="data" type="octet" dir="in" safearray="yes">
11022 <desc>The actual data.</desc>
11023 </param>
11024 <param name="progress" type="IProgress" dir="return">
11025 <desc>Progress object to track the operation completion.</desc>
11026 </param>
11027 </method>
11028
11029 <method name="dragGHPending">
11030 <desc>
11031 Ask the guest if there is any Drag and Drop operation pending in the guest.
11032
11033 If no Drag and Drop operation is pending currently, Ignore is returned.
11034
11035 This is used in Guest - Host direction.
11036
11037 <result name="VBOX_E_VM_ERROR">
11038 VMM device is not available.
11039 </result>
11040
11041 </desc>
11042 <param name="screenId" type="unsigned long" dir="in">
11043 <desc>The screen id where the Drag and Drop event occured.</desc>
11044 </param>
11045 <param name="format" type="wstring" dir="out" safearray="yes">
11046 <desc>On return the supported mime types.</desc>
11047 </param>
11048 <param name="allowedActions" type="DragAndDropAction" dir="out" safearray="yes">
11049 <desc>On return the actions which are allowed.</desc>
11050 </param>
11051 <param name="defaultAction" type="DragAndDropAction" dir="return">
11052 <desc>On return the default action to use.</desc>
11053 </param>
11054 </method>
11055
11056 <method name="dragGHDropped">
11057 <desc>
11058 Informs the guest that a drop event occured for a pending Drag and Drop event.
11059
11060 This is used in Guest - Host direction.
11061
11062 <result name="VBOX_E_VM_ERROR">
11063 VMM device is not available.
11064 </result>
11065
11066 </desc>
11067
11068 <param name="format" type="wstring" dir="in">
11069 <desc>The mime type the data must be in.</desc>
11070 </param>
11071 <param name="action" type="DragAndDropAction" dir="in">
11072 <desc>The action to use.</desc>
11073 </param>
11074 <param name="progress" type="IProgress" dir="return">
11075 <desc>Progress object to track the operation completion.</desc>
11076 </param>
11077 </method>
11078
11079 <method name="dragGHGetData">
11080 <desc>
11081 Fetch the data of a previously Drag and Drop event from the guest.
11082
11083 This is used in Guest - Host direction.
11084
11085 <result name="VBOX_E_VM_ERROR">
11086 VMM device is not available.
11087 </result>
11088
11089 </desc>
11090
11091 <param name="data" type="octet" safearray="yes" dir="return">
11092 <desc>The actual data.</desc>
11093 </param>
11094 </method>
11095
11096 <method name="createSession">
11097 <desc>
11098 Creates a new guest session for controlling the guest.
11099
11100 A guest session represents one impersonated user account on the guest, so
11101 every operation will use the same credentials specified when creating
11102 the session object via <link to="IGuest::createSession"/>. Anonymous
11103 sessions, that is, sessions without specifying a valid
11104 user account on the guest are not allowed due to security reasons.
11105
11106 There can be a maximum of 32 sessions at once per VM. Each session keeps
11107 track of its started guest processes, opened guest files or guest directories.
11108 To work on guest files or directories a guest session offers methods to open
11109 or create such objects (see <link to="IGuestSession::fileOpen"/> or
11110 <link to="IGuestSession::directoryOpen"/> for example).
11111
11112 When done with either of these objects, including the guest session itself,
11113 use the appropriate close() method to let the object do its cleanup work.
11114
11115 Every guest session has its own environment variable block which gets
11116 automatically applied when starting a new guest process via
11117 <link to="IGuestSession::processCreate"/> or <link to="IGuestSession::processCreateEx"/>.
11118 To override (or unset) certain environment variables already set by the
11119 guest session, one can specify a per-process environment block when using
11120 one of the both above mentioned process creation calls.
11121
11122 Closing a session via <link to="IGuestSession::close" /> will try to close
11123 all the mentioned objects above unless these objects are still used by
11124 a client.
11125 </desc>
11126 <param name="user" type="wstring" dir="in">
11127 <desc>
11128 User name this session will be using to control the guest; has to exist
11129 and have the appropriate rights to execute programs in the VM. Must not
11130 be empty.
11131 </desc>
11132 </param>
11133 <param name="password" type="wstring" dir="in">
11134 <desc>
11135 Password of the user account to be used. Empty passwords are allowed.
11136 </desc>
11137 </param>
11138 <param name="domain" type="wstring" dir="in">
11139 <desc>
11140 Domain name of the user account to be used if the guest is part of
11141 a domain. Optional. This feature is not implemented yet.
11142 </desc>
11143 </param>
11144 <param name="sessionName" type="wstring" dir="in">
11145 <desc>
11146 The session's friendly name. Optional, can be empty.
11147 </desc>
11148 </param>
11149 <param name="guestSession" type="IGuestSession" dir="return">
11150 <desc>
11151 The newly created session object.
11152 </desc>
11153 </param>
11154 </method>
11155
11156 <method name="findSession">
11157 <desc>
11158 Finds guest sessions by their friendly name and returns an interface
11159 array with all found guest sessions.
11160 </desc>
11161 <param name="sessionName" type="wstring" dir="in">
11162 <desc>
11163 The session's friendly name to find. Wildcards like ? and * are allowed.
11164 </desc>
11165 </param>
11166 <param name="sessions" type="IGuestSession" safearray="yes" dir="return">
11167 <desc>
11168 Array with all guest sessions found matching the name specified.
11169 </desc>
11170 </param>
11171 </method>
11172
11173 <method name="updateGuestAdditions">
11174 <desc>
11175 Automatically updates already installed Guest Additions in a VM.
11176
11177 At the moment only Windows guests are supported.
11178
11179 Because the VirtualBox Guest Additions drivers are not WHQL-certified
11180 yet there might be warning dialogs during the actual Guest Additions
11181 update. These need to be confirmed manually in order to continue the
11182 installation process. This applies to Windows 2000 and Windows XP guests
11183 and therefore these guests can't be updated in a fully automated fashion
11184 without user interaction. However, to start a Guest Additions update for
11185 the mentioned Windows versions anyway, the flag
11186 AdditionsUpdateFlag_WaitForUpdateStartOnly can be specified. See
11187 <link to="AdditionsUpdateFlag"/> for more information.
11188
11189 <result name="VBOX_E_NOT_SUPPORTED">
11190 Guest OS is not supported for automated Guest Additions updates or the
11191 already installed Guest Additions are not ready yet.
11192 </result>
11193
11194 <result name="VBOX_E_IPRT_ERROR">
11195 Error while updating.
11196 </result>
11197
11198 </desc>
11199 <param name="source" type="wstring" dir="in">
11200 <desc>
11201 Path to the Guest Additions .ISO file to use for the upate.
11202 </desc>
11203 </param>
11204 <param name="flags" type="AdditionsUpdateFlag" dir="in" safearray="yes">
11205 <desc>
11206 <link to="AdditionsUpdateFlag"/> flags.
11207 </desc>
11208 </param>
11209 <param name="progress" type="IProgress" dir="return">
11210 <desc>Progress object to track the operation completion.</desc>
11211 </param>
11212 </method>
11213
11214 </interface>
11215
11216
11217 <!--
11218 // IProgress
11219 /////////////////////////////////////////////////////////////////////////
11220 -->
11221
11222 <interface
11223 name="IProgress" extends="$unknown"
11224 uuid="c20238e4-3221-4d3f-8891-81ce92d9f913"
11225 wsmap="managed"
11226 >
11227 <desc>
11228 The IProgress interface is used to track and control
11229 asynchronous tasks within VirtualBox.
11230
11231 An instance of this is returned every time VirtualBox starts
11232 an asynchronous task (in other words, a separate thread) which
11233 continues to run after a method call returns. For example,
11234 <link to="IConsole::saveState" />, which saves the state of
11235 a running virtual machine, can take a long time to complete.
11236 To be able to display a progress bar, a user interface such as
11237 the VirtualBox graphical user interface can use the IProgress
11238 object returned by that method.
11239
11240 Note that IProgress is a "read-only" interface in the sense
11241 that only the VirtualBox internals behind the Main API can
11242 create and manipulate progress objects, whereas client code
11243 can only use the IProgress object to monitor a task's
11244 progress and, if <link to="#cancelable" /> is @c true,
11245 cancel the task by calling <link to="#cancel" />.
11246
11247 A task represented by IProgress consists of either one or
11248 several sub-operations that run sequentially, one by one (see
11249 <link to="#operation" /> and <link to="#operationCount" />).
11250 Every operation is identified by a number (starting from 0)
11251 and has a separate description.
11252
11253 You can find the individual percentage of completion of the current
11254 operation in <link to="#operationPercent" /> and the
11255 percentage of completion of the task as a whole
11256 in <link to="#percent" />.
11257
11258 Similarly, you can wait for the completion of a particular
11259 operation via <link to="#waitForOperationCompletion" /> or
11260 for the completion of the whole task via
11261 <link to="#waitForCompletion" />.
11262 </desc>
11263
11264 <attribute name="id" type="uuid" mod="string" readonly="yes">
11265 <desc>ID of the task.</desc>
11266 </attribute>
11267
11268 <attribute name="description" type="wstring" readonly="yes">
11269 <desc>Description of the task.</desc>
11270 </attribute>
11271
11272 <attribute name="initiator" type="$unknown" readonly="yes">
11273 <desc>Initiator of the task.</desc>
11274 </attribute>
11275
11276 <attribute name="cancelable" type="boolean" readonly="yes">
11277 <desc>Whether the task can be interrupted.</desc>
11278 </attribute>
11279
11280 <attribute name="percent" type="unsigned long" readonly="yes">
11281 <desc>
11282 Current progress value of the task as a whole, in percent.
11283 This value depends on how many operations are already complete.
11284 Returns 100 if <link to="#completed" /> is @c true.
11285 </desc>
11286 </attribute>
11287
11288 <attribute name="timeRemaining" type="long" readonly="yes">
11289 <desc>
11290 Estimated remaining time until the task completes, in
11291 seconds. Returns 0 once the task has completed; returns -1
11292 if the remaining time cannot be computed, in particular if
11293 the current progress is 0.
11294
11295 Even if a value is returned, the estimate will be unreliable
11296 for low progress values. It will become more reliable as the
11297 task progresses; it is not recommended to display an ETA
11298 before at least 20% of a task have completed.
11299 </desc>
11300 </attribute>
11301
11302 <attribute name="completed" type="boolean" readonly="yes">
11303 <desc>Whether the task has been completed.</desc>
11304 </attribute>
11305
11306 <attribute name="canceled" type="boolean" readonly="yes">
11307 <desc>Whether the task has been canceled.</desc>
11308 </attribute>
11309
11310 <attribute name="resultCode" type="long" readonly="yes">
11311 <desc>
11312 Result code of the progress task.
11313 Valid only if <link to="#completed"/> is @c true.
11314 </desc>
11315 </attribute>
11316
11317 <attribute name="errorInfo" type="IVirtualBoxErrorInfo" readonly="yes">
11318 <desc>
11319 Extended information about the unsuccessful result of the
11320 progress operation. May be @c null if no extended information
11321 is available.
11322 Valid only if <link to="#completed"/> is @c true and
11323 <link to="#resultCode"/> indicates a failure.
11324 </desc>
11325 </attribute>
11326
11327 <attribute name="operationCount" type="unsigned long" readonly="yes">
11328 <desc>
11329 Number of sub-operations this task is divided into.
11330 Every task consists of at least one suboperation.
11331 </desc>
11332 </attribute>
11333
11334 <attribute name="operation" type="unsigned long" readonly="yes">
11335 <desc>Number of the sub-operation being currently executed.</desc>
11336 </attribute>
11337
11338 <attribute name="operationDescription" type="wstring" readonly="yes">
11339 <desc>
11340 Description of the sub-operation being currently executed.
11341 </desc>
11342 </attribute>
11343
11344 <attribute name="operationPercent" type="unsigned long" readonly="yes">
11345 <desc>Progress value of the current sub-operation only, in percent.</desc>
11346 </attribute>
11347
11348 <attribute name="operationWeight" type="unsigned long" readonly="yes">
11349 <desc>Weight value of the current sub-operation only.</desc>
11350 </attribute>
11351
11352 <attribute name="timeout" type="unsigned long">
11353 <desc>
11354 When non-zero, this specifies the number of milliseconds after which
11355 the operation will automatically be canceled. This can only be set on
11356 cancelable objects.
11357 </desc>
11358 </attribute>
11359
11360 <method name="setCurrentOperationProgress">
11361 <desc>Internal method, not to be called externally.</desc>
11362 <param name="percent" type="unsigned long" dir="in" />
11363 </method>
11364 <method name="setNextOperation">
11365 <desc>Internal method, not to be called externally.</desc>
11366 <param name="nextOperationDescription" type="wstring" dir="in" />
11367 <param name="nextOperationsWeight" type="unsigned long" dir="in" />
11368 </method>
11369
11370 <method name="waitForCompletion">
11371 <desc>
11372 Waits until the task is done (including all sub-operations)
11373 with a given timeout in milliseconds; specify -1 for an indefinite wait.
11374
11375 Note that the VirtualBox/XPCOM/COM/native event queues of the calling
11376 thread are not processed while waiting. Neglecting event queues may
11377 have dire consequences (degrade performance, resource hogs,
11378 deadlocks, etc.), this is specially so for the main thread on
11379 platforms using XPCOM. Callers are adviced wait for short periods
11380 and service their event queues between calls, or to create a worker
11381 thread to do the waiting.
11382
11383 <result name="VBOX_E_IPRT_ERROR">
11384 Failed to wait for task completion.
11385 </result>
11386 </desc>
11387
11388 <param name="timeout" type="long" dir="in">
11389 <desc>
11390 Maximum time in milliseconds to wait or -1 to wait indefinitely.
11391 </desc>
11392 </param>
11393 </method>
11394
11395 <method name="waitForOperationCompletion">
11396 <desc>
11397 Waits until the given operation is done with a given timeout in
11398 milliseconds; specify -1 for an indefinite wait.
11399
11400 See <link to="#waitForCompletion"> for event queue considerations.</link>
11401
11402 <result name="VBOX_E_IPRT_ERROR">
11403 Failed to wait for operation completion.
11404 </result>
11405
11406 </desc>
11407 <param name="operation" type="unsigned long" dir="in">
11408 <desc>
11409 Number of the operation to wait for.
11410 Must be less than <link to="#operationCount"/>.
11411 </desc>
11412 </param>
11413 <param name="timeout" type="long" dir="in">
11414 <desc>
11415 Maximum time in milliseconds to wait or -1 to wait indefinitely.
11416 </desc>
11417 </param>
11418 </method>
11419
11420 <method name="waitForAsyncProgressCompletion">
11421 <desc>
11422 Waits until the other task is completed (including all
11423 sub-operations) and forward all changes from the other progress to
11424 this progress. This means sub-operation number, description, percent
11425 and so on.
11426
11427 You have to take care on setting up at least the same count on
11428 sub-operations in this progress object like there are in the other
11429 progress object.
11430
11431 If the other progress object supports cancel and this object gets any
11432 cancel request (when here enabled as well), it will be forwarded to
11433 the other progress object.
11434
11435 If there is an error in the other progress, this error isn't
11436 automatically transfered to this progress object. So you have to
11437 check any operation error within the other progress object, after
11438 this method returns.
11439 </desc>
11440
11441 <param name="pProgressAsync" type="IProgress" dir="in">
11442 <desc>
11443 The progress object of the asynchrony process.
11444 </desc>
11445 </param>
11446 </method>
11447
11448 <method name="cancel">
11449 <desc>
11450 Cancels the task.
11451 <note>
11452 If <link to="#cancelable"/> is @c false, then this method will fail.
11453 </note>
11454
11455 <result name="VBOX_E_INVALID_OBJECT_STATE">
11456 Operation cannot be canceled.
11457 </result>
11458
11459 </desc>
11460 </method>
11461
11462 </interface>
11463
11464 <!--
11465 // ISnapshot
11466 /////////////////////////////////////////////////////////////////////////
11467 -->
11468
11469 <interface
11470 name="ISnapshot" extends="$unknown"
11471 uuid="0472823b-c6e7-472a-8e9f-d732e86b8463"
11472 wsmap="managed"
11473 >
11474 <desc>
11475 The ISnapshot interface represents a snapshot of the virtual
11476 machine.
11477
11478 Together with the differencing media that are created
11479 when a snapshot is taken, a machine can be brought back to
11480 the exact state it was in when the snapshot was taken.
11481
11482 The ISnapshot interface has no methods, only attributes; snapshots
11483 are controlled through methods of the <link to="IConsole" /> interface
11484 which also manage the media associated with the snapshot.
11485 The following operations exist:
11486
11487 <ul>
11488 <li><link to="IConsole::takeSnapshot"/> creates a new snapshot
11489 by creating new, empty differencing images for the machine's
11490 media and saving the VM settings and (if the VM is running)
11491 the current VM state in the snapshot.
11492
11493 The differencing images will then receive all data written to
11494 the machine's media, while their parent (base) images
11495 remain unmodified after the snapshot has been taken (see
11496 <link to="IMedium" /> for details about differencing images).
11497 This simplifies restoring a machine to the state of a snapshot:
11498 only the differencing images need to be deleted.
11499
11500 The current machine state is not changed by taking a snapshot
11501 except that <link to="IMachine::currentSnapshot" /> is set to
11502 the newly created snapshot, which is also added to the machine's
11503 snapshots tree.
11504 </li>
11505
11506 <li><link to="IConsole::restoreSnapshot"/> resets a machine to
11507 the state of a previous snapshot by deleting the differencing
11508 image of each of the machine's media and setting the machine's
11509 settings and state to the state that was saved in the snapshot (if any).
11510
11511 This destroys the machine's current state. After calling this,
11512 <link to="IMachine::currentSnapshot" /> points to the snapshot
11513 that was restored.
11514 </li>
11515
11516 <li><link to="IConsole::deleteSnapshot"/> deletes a snapshot
11517 without affecting the current machine state.
11518
11519 This does not change the current machine state, but instead frees the
11520 resources allocated when the snapshot was taken: the settings and machine
11521 state file are deleted (if any), and the snapshot's differencing image for
11522 each of the machine's media gets merged with its parent image.
11523
11524 Neither the current machine state nor other snapshots are affected
11525 by this operation, except that parent media will be modified
11526 to contain the disk data associated with the snapshot being deleted.
11527
11528 When deleting the current snapshot, the <link to="IMachine::currentSnapshot" />
11529 attribute is set to the current snapshot's parent or @c null if it
11530 has no parent. Otherwise the attribute is unchanged.
11531 </li>
11532 </ul>
11533
11534 Each snapshot contains a copy of virtual machine's settings (hardware
11535 configuration etc.). This copy is contained in an immutable (read-only)
11536 instance of <link to="IMachine" /> which is available from the snapshot's
11537 <link to="#machine" /> attribute. When restoring the snapshot, these
11538 settings are copied back to the original machine.
11539
11540 In addition, if the machine was running when the
11541 snapshot was taken (<link to="IMachine::state"/> is <link to="MachineState_Running"/>),
11542 the current VM state is saved in the snapshot (similarly to what happens
11543 when a VM's state is saved). The snapshot is then said to be <i>online</i>
11544 because when restoring it, the VM will be running.
11545
11546 If the machine was in <link to="MachineState_Saved">saved</link> saved,
11547 the snapshot receives a copy of the execution state file
11548 (<link to="IMachine::stateFilePath"/>).
11549
11550 Otherwise, if the machine was not running (<link to="MachineState_PoweredOff"/>
11551 or <link to="MachineState_Aborted"/>), the snapshot is <i>offline</i>;
11552 it then contains a so-called "zero execution state", representing a
11553 machine that is powered off.
11554 </desc>
11555
11556 <attribute name="id" type="uuid" mod="string" readonly="yes">
11557 <desc>UUID of the snapshot.</desc>
11558 </attribute>
11559
11560 <attribute name="name" type="wstring">
11561 <desc>Short name of the snapshot.
11562 <note>Setting this attribute causes <link to="IMachine::saveSettings" /> to
11563 be called implicitly.</note>
11564 </desc>
11565 </attribute>
11566
11567 <attribute name="description" type="wstring">
11568 <desc>Optional description of the snapshot.
11569 <note>Setting this attribute causes <link to="IMachine::saveSettings" /> to
11570 be called implicitly.</note>
11571 </desc>
11572 </attribute>
11573
11574 <attribute name="timeStamp" type="long long" readonly="yes">
11575 <desc>
11576 Time stamp of the snapshot, in milliseconds since 1970-01-01 UTC.
11577 </desc>
11578 </attribute>
11579
11580 <attribute name="online" type="boolean" readonly="yes">
11581 <desc>
11582 @c true if this snapshot is an online snapshot and @c false otherwise.
11583
11584 When this attribute is @c true, the
11585 <link to="IMachine::stateFilePath"/> attribute of the
11586 <link to="#machine"/> object associated with this snapshot
11587 will point to the saved state file. Otherwise, it will be
11588 an empty string.
11589 </desc>
11590 </attribute>
11591
11592 <attribute name="machine" type="IMachine" readonly="yes">
11593 <desc>
11594 Virtual machine this snapshot is taken on. This object
11595 stores all settings the machine had when taking this snapshot.
11596 <note>
11597 The returned machine object is immutable, i.e. no
11598 any settings can be changed.
11599 </note>
11600 </desc>
11601 </attribute>
11602
11603 <attribute name="parent" type="ISnapshot" readonly="yes">
11604 <desc>
11605 Parent snapshot (a snapshot this one is based on), or
11606 @c null if the snapshot has no parent (i.e. is the first snapshot).
11607 </desc>
11608 </attribute>
11609
11610 <attribute name="children" type="ISnapshot" readonly="yes" safearray="yes">
11611 <desc>
11612 Child snapshots (all snapshots having this one as a parent).
11613 By inspecting this attribute starting with a machine's root snapshot
11614 (which can be obtained by calling <link to="IMachine::findSnapshot" />
11615 with a @c null UUID), a machine's snapshots tree can be iterated over.
11616 </desc>
11617 </attribute>
11618
11619 <method name="getChildrenCount" const="yes">
11620 <desc>
11621 Returns the number of direct childrens of this snapshot.
11622 </desc>
11623 <param name="childrenCount" type="unsigned long" dir="return">
11624 <desc>
11625 </desc>
11626 </param>
11627 </method>
11628
11629 </interface>
11630
11631
11632 <!--
11633 // IMedium
11634 /////////////////////////////////////////////////////////////////////////
11635 -->
11636
11637 <enum
11638 name="MediumState"
11639 uuid="ef41e980-e012-43cd-9dea-479d4ef14d13"
11640 >
11641 <desc>
11642 Virtual medium state.
11643 <see><link to="IMedium"/></see>
11644 </desc>
11645
11646 <const name="NotCreated" value="0">
11647 <desc>
11648 Associated medium storage does not exist (either was not created yet or
11649 was deleted).
11650 </desc>
11651 </const>
11652 <const name="Created" value="1">
11653 <desc>
11654 Associated storage exists and accessible; this gets set if the
11655 accessibility check performed by <link to="IMedium::refreshState" />
11656 was successful.
11657 </desc>
11658 </const>
11659 <const name="LockedRead" value="2">
11660 <desc>
11661 Medium is locked for reading (see <link to="IMedium::lockRead"/>),
11662 no data modification is possible.
11663 </desc>
11664 </const>
11665 <const name="LockedWrite" value="3">
11666 <desc>
11667 Medium is locked for writing (see <link to="IMedium::lockWrite"/>),
11668 no concurrent data reading or modification is possible.
11669 </desc>
11670 </const>
11671 <const name="Inaccessible" value="4">
11672 <desc>
11673 Medium accessibility check (see <link to="IMedium::refreshState" />) has
11674 not yet been performed, or else, associated medium storage is not
11675 accessible. In the first case, <link to="IMedium::lastAccessError"/>
11676 is empty, in the second case, it describes the error that occurred.
11677 </desc>
11678 </const>
11679 <const name="Creating" value="5">
11680 <desc>
11681 Associated medium storage is being created.
11682 </desc>
11683 </const>
11684 <const name="Deleting" value="6">
11685 <desc>
11686 Associated medium storage is being deleted.
11687 </desc>
11688 </const>
11689 </enum>
11690
11691 <enum
11692 name="MediumType"
11693 uuid="fe663fb5-c244-4e1b-9d81-c628b417dd04"
11694 >
11695 <desc>
11696 Virtual medium type. For each <link to="IMedium" />, this defines how the medium is
11697 attached to a virtual machine (see <link to="IMediumAttachment" />) and what happens
11698 when a snapshot (see <link to="ISnapshot" />) is taken of a virtual machine which has
11699 the medium attached. At the moment DVD and floppy media are always of type "writethrough".
11700 </desc>
11701
11702 <const name="Normal" value="0">
11703 <desc>
11704 Normal medium (attached directly or indirectly, preserved
11705 when taking snapshots).
11706 </desc>
11707 </const>
11708 <const name="Immutable" value="1">
11709 <desc>
11710 Immutable medium (attached indirectly, changes are wiped out
11711 the next time the virtual machine is started).
11712 </desc>
11713 </const>
11714 <const name="Writethrough" value="2">
11715 <desc>
11716 Write through medium (attached directly, ignored when
11717 taking snapshots).
11718 </desc>
11719 </const>
11720 <const name="Shareable" value="3">
11721 <desc>
11722 Allow using this medium concurrently by several machines.
11723 <note>Present since VirtualBox 3.2.0, and accepted since 3.2.8.</note>
11724 </desc>
11725 </const>
11726 <const name="Readonly" value="4">
11727 <desc>
11728 A readonly medium, which can of course be used by several machines.
11729 <note>Present and accepted since VirtualBox 4.0.</note>
11730 </desc>
11731 </const>
11732 <const name="MultiAttach" value="5">
11733 <desc>
11734 A medium which is indirectly attached, so that one base medium can
11735 be used for several VMs which have their own differencing medium to
11736 store their modifications. In some sense a variant of Immutable
11737 with unset AutoReset flag in each differencing medium.
11738 <note>Present and accepted since VirtualBox 4.0.</note>
11739 </desc>
11740 </const>
11741 </enum>
11742
11743 <enum
11744 name="MediumVariant"
11745 uuid="80685b6b-e42f-497d-8271-e77bf3c61ada"
11746 >
11747 <desc>
11748 Virtual medium image variant. More than one flag may be set.
11749 <see><link to="IMedium"/></see>
11750 </desc>
11751
11752 <const name="Standard" value="0">
11753 <desc>
11754 No particular variant requested, results in using the backend default.
11755 </desc>
11756 </const>
11757 <const name="VmdkSplit2G" value="0x01">
11758 <desc>
11759 VMDK image split in chunks of less than 2GByte.
11760 </desc>
11761 </const>
11762 <const name="VmdkRawDisk" value="0x02">
11763 <desc>
11764 VMDK image representing a raw disk.
11765 </desc>
11766 </const>
11767 <const name="VmdkStreamOptimized" value="0x04">
11768 <desc>
11769 VMDK streamOptimized image. Special import/export format which is
11770 read-only/append-only.
11771 </desc>
11772 </const>
11773 <const name="VmdkESX" value="0x08">
11774 <desc>
11775 VMDK format variant used on ESX products.
11776 </desc>
11777 </const>
11778 <const name="Fixed" value="0x10000">
11779 <desc>
11780 Fixed image. Only allowed for base images.
11781 </desc>
11782 </const>
11783 <const name="Diff" value="0x20000">
11784 <desc>
11785 Differencing image. Only allowed for child images.
11786 </desc>
11787 </const>
11788 <const name="NoCreateDir" value="0x40000000">
11789 <desc>
11790 Special flag which suppresses automatic creation of the subdirectory.
11791 Only used when passing the medium variant as an input parameter.
11792 </desc>
11793 </const>
11794 </enum>
11795
11796 <interface
11797 name="IMediumAttachment" extends="$unknown"
11798 uuid="5ee464d6-0613-4331-b154-7ce12170ef9f"
11799 wsmap="struct"
11800 >
11801 <desc>
11802 The IMediumAttachment interface links storage media to virtual machines.
11803 For each medium (<link to="IMedium"/>) which has been attached to a
11804 storage controller (<link to="IStorageController"/>) of a machine
11805 (<link to="IMachine"/>) via the <link to="IMachine::attachDevice" />
11806 method, one instance of IMediumAttachment is added to the machine's
11807 <link to="IMachine::mediumAttachments"/> array attribute.
11808
11809 Each medium attachment specifies the storage controller as well as a
11810 port and device number and the IMedium instance representing a virtual
11811 hard disk or floppy or DVD image.
11812
11813 For removable media (DVDs or floppies), there are two additional
11814 options. For one, the IMedium instance can be @c null to represent
11815 an empty drive with no media inserted (see <link to="IMachine::mountMedium" />);
11816 secondly, the medium can be one of the pseudo-media for host drives
11817 listed in <link to="IHost::DVDDrives"/> or <link to="IHost::floppyDrives"/>.
11818
11819 <h3>Attaching Hard Disks</h3>
11820
11821 Hard disks are attached to virtual machines using the
11822 <link to="IMachine::attachDevice"/> method and detached using the
11823 <link to="IMachine::detachDevice"/> method. Depending on a medium's
11824 type (see <link to="IMedium::type" />), hard disks are attached either
11825 <i>directly</i> or <i>indirectly</i>.
11826
11827 When a hard disk is being attached directly, it is associated with the
11828 virtual machine and used for hard disk operations when the machine is
11829 running. When a hard disk is being attached indirectly, a new differencing
11830 hard disk linked to it is implicitly created and this differencing hard
11831 disk is associated with the machine and used for hard disk operations.
11832 This also means that if <link to="IMachine::attachDevice"/> performs
11833 a direct attachment then the same hard disk will be returned in response
11834 to the subsequent <link to="IMachine::getMedium"/> call; however if
11835 an indirect attachment is performed then
11836 <link to="IMachine::getMedium"/> will return the implicitly created
11837 differencing hard disk, not the original one passed to <link
11838 to="IMachine::attachDevice"/>. In detail:
11839
11840 <ul>
11841 <li><b>Normal base</b> hard disks that do not have children (i.e.
11842 differencing hard disks linked to them) and that are not already
11843 attached to virtual machines in snapshots are attached <b>directly</b>.
11844 Otherwise, they are attached <b>indirectly</b> because having
11845 dependent children or being part of the snapshot makes it impossible
11846 to modify hard disk contents without breaking the integrity of the
11847 dependent party. The <link to="IMedium::readOnly"/> attribute allows to
11848 quickly determine the kind of the attachment for the given hard
11849 disk. Note that if a normal base hard disk is to be indirectly
11850 attached to a virtual machine with snapshots then a special
11851 procedure called <i>smart attachment</i> is performed (see below).</li>
11852 <li><b>Normal differencing</b> hard disks are like normal base hard disks:
11853 they are attached <b>directly</b> if they do not have children and are
11854 not attached to virtual machines in snapshots, and <b>indirectly</b>
11855 otherwise. Note that the smart attachment procedure is never performed
11856 for differencing hard disks.</li>
11857 <li><b>Immutable</b> hard disks are always attached <b>indirectly</b> because
11858 they are designed to be non-writable. If an immutable hard disk is
11859 attached to a virtual machine with snapshots then a special
11860 procedure called smart attachment is performed (see below).</li>
11861 <li><b>Writethrough</b> hard disks are always attached <b>directly</b>,
11862 also as designed. This also means that writethrough hard disks cannot
11863 have other hard disks linked to them at all.</li>
11864 <li><b>Shareable</b> hard disks are always attached <b>directly</b>,
11865 also as designed. This also means that shareable hard disks cannot
11866 have other hard disks linked to them at all. They behave almost
11867 like writethrough hard disks, except that shareable hard disks can
11868 be attached to several virtual machines which are running, allowing
11869 concurrent accesses. You need special cluster software running in
11870 the virtual machines to make use of such disks.</li>
11871 </ul>
11872
11873 Note that the same hard disk, regardless of its type, may be attached to
11874 more than one virtual machine at a time. In this case, the machine that is
11875 started first gains exclusive access to the hard disk and attempts to
11876 start other machines having this hard disk attached will fail until the
11877 first machine is powered down.
11878
11879 Detaching hard disks is performed in a <i>deferred</i> fashion. This means
11880 that the given hard disk remains associated with the given machine after a
11881 successful <link to="IMachine::detachDevice"/> call until
11882 <link to="IMachine::saveSettings"/> is called to save all changes to
11883 machine settings to disk. This deferring is necessary to guarantee that
11884 the hard disk configuration may be restored at any time by a call to
11885 <link to="IMachine::discardSettings"/> before the settings
11886 are saved (committed).
11887
11888 Note that if <link to="IMachine::discardSettings"/> is called after
11889 indirectly attaching some hard disks to the machine but before a call to
11890 <link to="IMachine::saveSettings"/> is made, it will implicitly delete
11891 all differencing hard disks implicitly created by
11892 <link to="IMachine::attachDevice"/> for these indirect attachments.
11893 Such implicitly created hard disks will also be immediately deleted when
11894 detached explicitly using the <link to="IMachine::detachDevice"/>
11895 call if it is made before <link to="IMachine::saveSettings"/>. This
11896 implicit deletion is safe because newly created differencing hard
11897 disks do not contain any user data.
11898
11899 However, keep in mind that detaching differencing hard disks that were
11900 implicitly created by <link to="IMachine::attachDevice"/>
11901 before the last <link to="IMachine::saveSettings"/> call will
11902 <b>not</b> implicitly delete them as they may already contain some data
11903 (for example, as a result of virtual machine execution). If these hard
11904 disks are no more necessary, the caller can always delete them explicitly
11905 using <link to="IMedium::deleteStorage"/> after they are actually de-associated
11906 from this machine by the <link to="IMachine::saveSettings"/> call.
11907
11908 <h3>Smart Attachment</h3>
11909
11910 When normal base or immutable hard disks are indirectly attached to a
11911 virtual machine then some additional steps are performed to make sure the
11912 virtual machine will have the most recent "view" of the hard disk being
11913 attached. These steps include walking through the machine's snapshots
11914 starting from the current one and going through ancestors up to the first
11915 snapshot. Hard disks attached to the virtual machine in all
11916 of the encountered snapshots are checked whether they are descendants of
11917 the given normal base or immutable hard disk. The first found child (which
11918 is the differencing hard disk) will be used instead of the normal base or
11919 immutable hard disk as a parent for creating a new differencing hard disk
11920 that will be actually attached to the machine. And only if no descendants
11921 are found or if the virtual machine does not have any snapshots then the
11922 normal base or immutable hard disk will be used itself as a parent for
11923 this differencing hard disk.
11924
11925 It is easier to explain what smart attachment does using the
11926 following example:
11927 <pre>
11928BEFORE attaching B.vdi: AFTER attaching B.vdi:
11929
11930Snapshot 1 (B.vdi) Snapshot 1 (B.vdi)
11931 Snapshot 2 (D1->B.vdi) Snapshot 2 (D1->B.vdi)
11932 Snapshot 3 (D2->D1.vdi) Snapshot 3 (D2->D1.vdi)
11933 Snapshot 4 (none) Snapshot 4 (none)
11934 CurState (none) CurState (D3->D2.vdi)
11935
11936 NOT
11937 ...
11938 CurState (D3->B.vdi)
11939 </pre>
11940 The first column is the virtual machine configuration before the base hard
11941 disk <tt>B.vdi</tt> is attached, the second column shows the machine after
11942 this hard disk is attached. Constructs like <tt>D1->B.vdi</tt> and similar
11943 mean that the hard disk that is actually attached to the machine is a
11944 differencing hard disk, <tt>D1.vdi</tt>, which is linked to (based on)
11945 another hard disk, <tt>B.vdi</tt>.
11946
11947 As we can see from the example, the hard disk <tt>B.vdi</tt> was detached
11948 from the machine before taking Snapshot 4. Later, after Snapshot 4 was
11949 taken, the user decides to attach <tt>B.vdi</tt> again. <tt>B.vdi</tt> has
11950 dependent child hard disks (<tt>D1.vdi</tt>, <tt>D2.vdi</tt>), therefore
11951 it cannot be attached directly and needs an indirect attachment (i.e.
11952 implicit creation of a new differencing hard disk). Due to the smart
11953 attachment procedure, the new differencing hard disk
11954 (<tt>D3.vdi</tt>) will be based on <tt>D2.vdi</tt>, not on
11955 <tt>B.vdi</tt> itself, since <tt>D2.vdi</tt> is the most recent view of
11956 <tt>B.vdi</tt> existing for this snapshot branch of the given virtual
11957 machine.
11958
11959 Note that if there is more than one descendant hard disk of the given base
11960 hard disk found in a snapshot, and there is an exact device, channel and
11961 bus match, then this exact match will be used. Otherwise, the youngest
11962 descendant will be picked up.
11963
11964 There is one more important aspect of the smart attachment procedure which
11965 is not related to snapshots at all. Before walking through the snapshots
11966 as described above, the backup copy of the current list of hard disk
11967 attachment is searched for descendants. This backup copy is created when
11968 the hard disk configuration is changed for the first time after the last
11969 <link to="IMachine::saveSettings"/> call and used by
11970 <link to="IMachine::discardSettings"/> to undo the recent hard disk
11971 changes. When such a descendant is found in this backup copy, it will be
11972 simply re-attached back, without creating a new differencing hard disk for
11973 it. This optimization is necessary to make it possible to re-attach the
11974 base or immutable hard disk to a different bus, channel or device slot
11975 without losing the contents of the differencing hard disk actually
11976 attached to the machine in place of it.
11977
11978 </desc>
11979
11980 <attribute name="medium" type="IMedium" readonly="yes">
11981 <desc>Medium object associated with this attachment; it
11982 can be @c null for removable devices.</desc>
11983 </attribute>
11984
11985 <attribute name="controller" type="wstring" readonly="yes">
11986 <desc>Name of the storage controller of this attachment; this
11987 refers to one of the controllers in <link to="IMachine::storageControllers" />
11988 by name.</desc>
11989 </attribute>
11990
11991 <attribute name="port" type="long" readonly="yes">
11992 <desc>Port number of this attachment.
11993 See <link to="IMachine::attachDevice" /> for the meaning of this value for the different controller types.
11994 </desc>
11995 </attribute>
11996
11997 <attribute name="device" type="long" readonly="yes">
11998 <desc>Device slot number of this attachment.
11999 See <link to="IMachine::attachDevice" /> for the meaning of this value for the different controller types.
12000 </desc>
12001 </attribute>
12002
12003 <attribute name="type" type="DeviceType" readonly="yes">
12004 <desc>Device type of this attachment.</desc>
12005 </attribute>
12006
12007 <attribute name="passthrough" type="boolean" readonly="yes">
12008 <desc>Pass I/O requests through to a device on the host.</desc>
12009 </attribute>
12010
12011 <attribute name="temporaryEject" type="boolean" readonly="yes">
12012 <desc>Whether guest-triggered eject results in unmounting the medium.</desc>
12013 </attribute>
12014
12015 <attribute name="isEjected" type="boolean" readonly="yes">
12016 <desc>Signals that the removable medium has been ejected. This is not
12017 necessarily equivalent to having a @c null medium association.</desc>
12018 </attribute>
12019
12020 <attribute name="nonRotational" type="boolean" readonly="yes">
12021 <desc>Whether the associated medium is non-rotational.</desc>
12022 </attribute>
12023
12024 <attribute name="discard" type="boolean" readonly="yes">
12025 <desc>Whether the associated medium supports discarding unused blocks.</desc>
12026 </attribute>
12027
12028 <attribute name="bandwidthGroup" type="IBandwidthGroup" readonly="yes">
12029 <desc>The bandwidth group this medium attachment is assigned to.</desc>
12030 </attribute>
12031
12032 </interface>
12033
12034 <interface
12035 name="IMedium" extends="$unknown"
12036 uuid="29989373-b111-4654-8493-2e1176cba890"
12037 wsmap="managed"
12038 >
12039 <desc>
12040 The IMedium interface represents virtual storage for a machine's
12041 hard disks, CD/DVD or floppy drives. It will typically represent
12042 a disk image on the host, for example a VDI or VMDK file representing
12043 a virtual hard disk, or an ISO or RAW file representing virtual
12044 removable media, but can also point to a network location (e.g.
12045 for iSCSI targets).
12046
12047 Instances of IMedium are connected to virtual machines by way of medium
12048 attachments, which link the storage medium to a particular device slot
12049 of a storage controller of the virtual machine.
12050 In the VirtualBox API, virtual storage is therefore always represented
12051 by the following chain of object links:
12052
12053 <ul>
12054 <li><link to="IMachine::storageControllers"/> contains an array of
12055 storage controllers (IDE, SATA, SCSI, SAS or a floppy controller;
12056 these are instances of <link to="IStorageController"/>).</li>
12057 <li><link to="IMachine::mediumAttachments"/> contains an array of
12058 medium attachments (instances of <link to="IMediumAttachment"/>
12059 created by <link to="IMachine::attachDevice" />),
12060 each containing a storage controller from the above array, a
12061 port/device specification, and an instance of IMedium representing
12062 the medium storage (image file).
12063
12064 For removable media, the storage medium is optional; a medium
12065 attachment with no medium represents a CD/DVD or floppy drive
12066 with no medium inserted. By contrast, hard disk attachments
12067 will always have an IMedium object attached.</li>
12068 <li>Each IMedium in turn points to a storage unit (such as a file
12069 on the host computer or a network resource) that holds actual
12070 data. This location is represented by the <link to="#location"/>
12071 attribute.</li>
12072 </ul>
12073
12074 Existing media are opened using <link to="IVirtualBox::openMedium"/>;
12075 new hard disk media can be created with the VirtualBox API using the
12076 <link to="IVirtualBox::createHardDisk"/> method. Differencing hard
12077 disks (see below) are usually implicitly created by VirtualBox as
12078 needed, but may also be created explicitly using <link to="#createDiffStorage"/>.
12079 VirtualBox cannot create CD/DVD or floppy images (ISO and RAW files); these
12080 should be created with external tools and then opened from within VirtualBox.
12081
12082 Only for CD/DVDs and floppies, an IMedium instance can also represent a host
12083 drive. In that case the <link to="#id" /> attribute contains the UUID of
12084 one of the drives in <link to="IHost::DVDDrives" /> or <link to="IHost::floppyDrives" />.
12085
12086 <h3>Media registries</h3>
12087
12088 When a medium has been opened or created using one of the aforementioned
12089 APIs, it becomes "known" to VirtualBox. Known media can be attached
12090 to virtual machines and re-found through <link to="IVirtualBox::openMedium"/>.
12091 They also appear in the global
12092 <link to="IVirtualBox::hardDisks" />,
12093 <link to="IVirtualBox::DVDImages" /> and
12094 <link to="IVirtualBox::floppyImages" /> arrays.
12095
12096 Prior to VirtualBox 4.0, opening a medium added it to a global media registry
12097 in the VirtualBox.xml file, which was shared between all machines and made
12098 transporting machines and their media from one host to another difficult.
12099
12100 Starting with VirtualBox 4.0, media are only added to a registry when they are
12101 <i>attached</i> to a machine using <link to="IMachine::attachDevice" />. For
12102 backwards compatibility, which registry a medium is added to depends on which
12103 VirtualBox version created a machine:
12104
12105 <ul>
12106 <li>If the medium has first been attached to a machine which was created by
12107 VirtualBox 4.0 or later, it is added to that machine's media registry in
12108 the machine XML settings file. This way all information about a machine's
12109 media attachments is contained in a single file and can be transported
12110 easily.</li>
12111 <li>For older media attachments (i.e. if the medium was first attached to a
12112 machine which was created with a VirtualBox version before 4.0), media
12113 continue to be registered in the global VirtualBox settings file, for
12114 backwards compatibility.</li>
12115 </ul>
12116
12117 See <link to="IVirtualBox::openMedium" /> for more information.
12118
12119 Media are removed from media registries by the <link to="IMedium::close"/>,
12120 <link to="#deleteStorage"/> and <link to="#mergeTo"/> methods.
12121
12122 <h3>Accessibility checks</h3>
12123
12124 VirtualBox defers media accessibility checks until the <link to="#refreshState" />
12125 method is called explicitly on a medium. This is done to make the VirtualBox object
12126 ready for serving requests as fast as possible and let the end-user
12127 application decide if it needs to check media accessibility right away or not.
12128
12129 As a result, when VirtualBox starts up (e.g. the VirtualBox
12130 object gets created for the first time), all known media are in the
12131 "Inaccessible" state, but the value of the <link to="#lastAccessError"/>
12132 attribute is an empty string because no actual accessibility check has
12133 been made yet.
12134
12135 After calling <link to="#refreshState" />, a medium is considered
12136 <i>accessible</i> if its storage unit can be read. In that case, the
12137 <link to="#state"/> attribute has a value of "Created". If the storage
12138 unit cannot be read (for example, because it is located on a disconnected
12139 network resource, or was accidentally deleted outside VirtualBox),
12140 the medium is considered <i>inaccessible</i>, which is indicated by the
12141 "Inaccessible" state. The exact reason why the medium is inaccessible can be
12142 obtained by reading the <link to="#lastAccessError"/> attribute.
12143
12144 <h3>Medium types</h3>
12145
12146 There are five types of medium behavior which are stored in the
12147 <link to="#type"/> attribute (see <link to="MediumType" />) and
12148 which define the medium's behavior with attachments and snapshots.
12149
12150 All media can be also divided in two groups: <i>base</i> media and
12151 <i>differencing</i> media. A base medium contains all sectors of the
12152 medium data in its own storage and therefore can be used independently.
12153 In contrast, a differencing medium is a "delta" to some other medium and
12154 contains only those sectors which differ from that other medium, which is
12155 then called a <i>parent</i>. The differencing medium is said to be
12156 <i>linked to</i> that parent. The parent may be itself a differencing
12157 medium, thus forming a chain of linked media. The last element in that
12158 chain must always be a base medium. Note that several differencing
12159 media may be linked to the same parent medium.
12160
12161 Differencing media can be distinguished from base media by querying the
12162 <link to="#parent"/> attribute: base media do not have parents they would
12163 depend on, so the value of this attribute is always @c null for them.
12164 Using this attribute, it is possible to walk up the medium tree (from the
12165 child medium to its parent). It is also possible to walk down the tree
12166 using the <link to="#children"/> attribute.
12167
12168 Note that the type of all differencing media is "normal"; all other
12169 values are meaningless for them. Base media may be of any type.
12170
12171 <h3>Automatic composition of the file name part</h3>
12172
12173 Another extension to the <link to="IMedium::location"/> attribute is that
12174 there is a possibility to cause VirtualBox to compose a unique value for
12175 the file name part of the location using the UUID of the hard disk. This
12176 applies only to hard disks in <link to="MediumState_NotCreated"/> state,
12177 e.g. before the storage unit is created, and works as follows. You set the
12178 value of the <link to="IMedium::location"/> attribute to a location
12179 specification which only contains the path specification but not the file
12180 name part and ends with either a forward slash or a backslash character.
12181 In response, VirtualBox will generate a new UUID for the hard disk and
12182 compose the file name using the following pattern:
12183 <pre>
12184 &lt;path&gt;/{&lt;uuid&gt;}.&lt;ext&gt;
12185 </pre>
12186 where <tt>&lt;path&gt;</tt> is the supplied path specification,
12187 <tt>&lt;uuid&gt;</tt> is the newly generated UUID and <tt>&lt;ext&gt;</tt>
12188 is the default extension for the storage format of this hard disk. After
12189 that, you may call any of the methods that create a new hard disk storage
12190 unit and they will use the generated UUID and file name.
12191 </desc>
12192
12193 <attribute name="id" type="uuid" mod="string" readonly="yes">
12194 <desc>
12195 UUID of the medium. For a newly created medium, this value is a randomly
12196 generated UUID.
12197
12198 <note>
12199 For media in one of MediumState_NotCreated, MediumState_Creating or
12200 MediumState_Deleting states, the value of this property is undefined
12201 and will most likely be an empty UUID.
12202 </note>
12203 </desc>
12204 </attribute>
12205
12206 <attribute name="description" type="wstring">
12207 <desc>
12208 Optional description of the medium. For a newly created medium the value
12209 of this attribute is an empty string.
12210
12211 Medium types that don't support this attribute will return E_NOTIMPL in
12212 attempt to get or set this attribute's value.
12213
12214 <note>
12215 For some storage types, reading this attribute may return an outdated
12216 (last known) value when <link to="#state"/> is <link
12217 to="MediumState_Inaccessible"/> or <link
12218 to="MediumState_LockedWrite"/> because the value of this attribute is
12219 stored within the storage unit itself. Also note that changing the
12220 attribute value is not possible in such case, as well as when the
12221 medium is the <link to="MediumState_LockedRead"/> state.
12222 </note>
12223 </desc>
12224 </attribute>
12225
12226 <attribute name="state" type="MediumState" readonly="yes">
12227 <desc>
12228 Returns the current medium state, which is the last state set by
12229 the accessibility check performed by <link to="#refreshState"/>.
12230 If that method has not yet been called on the medium, the state
12231 is "Inaccessible"; as opposed to truly inaccessible media, the
12232 value of <link to="#lastAccessError"/> will be an empty string in
12233 that case.
12234
12235 <note>As of version 3.1, this no longer performs an accessibility check
12236 automatically; call <link to="#refreshState"/> for that.
12237 </note>
12238 </desc>
12239 </attribute>
12240
12241 <attribute name="variant" type="unsigned long" readonly="yes">
12242 <desc>
12243 Returns the storage format variant information for this medium
12244 as a combination of the flags described at <link to="MediumVariant" />.
12245 Before <link to="#refreshState"/> is called this method returns
12246 an undefined value.
12247 </desc>
12248 </attribute>
12249
12250 <attribute name="location" type="wstring">
12251 <desc>
12252 Location of the storage unit holding medium data.
12253
12254 The format of the location string is medium type specific. For medium
12255 types using regular files in a host's file system, the location
12256 string is the full file name.
12257
12258 Some medium types may support changing the storage unit location by
12259 simply changing the value of this property. If this operation is not
12260 supported, the implementation will return E_NOTIMPL in attempt to set
12261 this attribute's value.
12262
12263 When setting a value of the location attribute which is a regular file
12264 in the host's file system, the given file name may be either relative to
12265 the <link to="IVirtualBox::homeFolder">VirtualBox home folder</link> or
12266 absolute. Note that if the given location specification does not contain
12267 the file extension part then a proper default extension will be
12268 automatically appended by the implementation depending on the medium type.
12269 </desc>
12270 </attribute>
12271
12272 <attribute name="name" type="wstring" readonly="yes">
12273 <desc>
12274 Name of the storage unit holding medium data.
12275
12276 The returned string is a short version of the <link to="#location"/>
12277 attribute that is suitable for representing the medium in situations
12278 where the full location specification is too long (such as lists
12279 and comboboxes in GUI frontends). This string is also used by frontends
12280 to sort the media list alphabetically when needed.
12281
12282 For example, for locations that are regular files in the host's file
12283 system, the value of this attribute is just the file name (+ extension),
12284 without the path specification.
12285
12286 Note that as opposed to the <link to="#location"/> attribute, the name
12287 attribute will not necessary be unique for a list of media of the
12288 given type and format.
12289 </desc>
12290 </attribute>
12291
12292 <attribute name="deviceType" type="DeviceType" readonly="yes">
12293 <desc>Kind of device (DVD/Floppy/HardDisk) which is applicable to this
12294 medium.</desc>
12295 </attribute>
12296
12297 <attribute name="hostDrive" type="boolean" readonly="yes">
12298 <desc>True if this corresponds to a drive on the host.</desc>
12299 </attribute>
12300
12301 <attribute name="size" type="long long" readonly="yes">
12302 <desc>
12303 Physical size of the storage unit used to hold medium data (in bytes).
12304
12305 <note>
12306 For media whose <link to="#state"/> is <link
12307 to="MediumState_Inaccessible"/>, the value of this property is the
12308 last known size. For <link to="MediumState_NotCreated"/> media,
12309 the returned value is zero.
12310 </note>
12311 </desc>
12312 </attribute>
12313
12314 <attribute name="format" type="wstring" readonly="yes">
12315 <desc>
12316 Storage format of this medium.
12317
12318 The value of this attribute is a string that specifies a backend used
12319 to store medium data. The storage format is defined when you create a
12320 new medium or automatically detected when you open an existing medium,
12321 and cannot be changed later.
12322
12323 The list of all storage formats supported by this VirtualBox
12324 installation can be obtained using
12325 <link to="ISystemProperties::mediumFormats"/>.
12326 </desc>
12327 </attribute>
12328
12329 <attribute name="mediumFormat" type="IMediumFormat" readonly="yes">
12330 <desc>
12331 Storage medium format object corresponding to this medium.
12332
12333 The value of this attribute is a reference to the medium format object
12334 that specifies the backend properties used to store medium data. The
12335 storage format is defined when you create a new medium or automatically
12336 detected when you open an existing medium, and cannot be changed later.
12337
12338 <note>@c null is returned if there is no associated medium format
12339 object. This can e.g. happen for medium objects representing host
12340 drives and other special medium objects.</note>
12341 </desc>
12342 </attribute>
12343
12344 <attribute name="type" type="MediumType">
12345 <desc>
12346 Type (role) of this medium.
12347
12348 The following constraints apply when changing the value of this
12349 attribute:
12350 <ul>
12351 <li>If a medium is attached to a virtual machine (either in the
12352 current state or in one of the snapshots), its type cannot be
12353 changed.
12354 </li>
12355 <li>As long as the medium has children, its type cannot be set
12356 to <link to="MediumType_Writethrough"/>.
12357 </li>
12358 <li>The type of all differencing media is
12359 <link to="MediumType_Normal"/> and cannot be changed.
12360 </li>
12361 </ul>
12362
12363 The type of a newly created or opened medium is set to
12364 <link to="MediumType_Normal"/>, except for DVD and floppy media,
12365 which have a type of <link to="MediumType_Writethrough"/>.
12366 </desc>
12367 </attribute>
12368
12369 <attribute name="allowedTypes" type="MediumType" safearray="yes" readonly="yes">
12370 <desc>
12371 Returns which medium types can selected for this medium.
12372
12373 <result name="E_NOTIMPL">
12374 This attribute is not implemented at the moment.
12375 </result>
12376 </desc>
12377 </attribute>
12378
12379 <attribute name="parent" type="IMedium" readonly="yes">
12380 <desc>
12381 Parent of this medium (the medium this medium is directly based
12382 on).
12383
12384 Only differencing media have parents. For base (non-differencing)
12385 media, @c null is returned.
12386 </desc>
12387 </attribute>
12388
12389 <attribute name="children" type="IMedium" safearray="yes" readonly="yes">
12390 <desc>
12391 Children of this medium (all differencing media directly based
12392 on this medium). A @c null array is returned if this medium
12393 does not have any children.
12394 </desc>
12395 </attribute>
12396
12397 <attribute name="base" type="IMedium" readonly="yes">
12398 <desc>
12399 Base medium of this medium.
12400
12401 If this is a differencing medium, its base medium is the medium
12402 the given medium branch starts from. For all other types of media, this
12403 property returns the medium object itself (i.e. the same object this
12404 property is read on).
12405 </desc>
12406 </attribute>
12407
12408 <attribute name="readOnly" type="boolean" readonly="yes">
12409 <desc>
12410 Returns @c true if this medium is read-only and @c false otherwise.
12411
12412 A medium is considered to be read-only when its contents cannot be
12413 modified without breaking the integrity of other parties that depend on
12414 this medium such as its child media or snapshots of virtual machines
12415 where this medium is attached to these machines. If there are no
12416 children and no such snapshots then there is no dependency and the
12417 medium is not read-only.
12418
12419 The value of this attribute can be used to determine the kind of the
12420 attachment that will take place when attaching this medium to a
12421 virtual machine. If the value is @c false then the medium will
12422 be attached directly. If the value is @c true then the medium
12423 will be attached indirectly by creating a new differencing child
12424 medium for that. See the interface description for more information.
12425
12426 Note that all <link to="MediumType_Immutable">Immutable</link> media
12427 are always read-only while all
12428 <link to="MediumType_Writethrough">Writethrough</link> media are
12429 always not.
12430
12431 <note>
12432 The read-only condition represented by this attribute is related to
12433 the medium type and usage, not to the current
12434 <link to="IMedium::state">medium state</link> and not to the read-only
12435 state of the storage unit.
12436 </note>
12437 </desc>
12438 </attribute>
12439
12440 <attribute name="logicalSize" type="long long" readonly="yes">
12441 <desc>
12442 Logical size of this medium (in bytes), as reported to the
12443 guest OS running inside the virtual machine this medium is
12444 attached to. The logical size is defined when the medium is created
12445 and cannot be changed later.
12446
12447 <note>
12448 Reading this property on a differencing medium will return the size
12449 of its <link to="#base"/> medium.
12450 </note>
12451 <note>
12452 For media whose state is <link to="#state"/> is <link
12453 to="MediumState_Inaccessible"/>, the value of this property is the
12454 last known logical size. For <link to="MediumState_NotCreated"/>
12455 media, the returned value is zero.
12456 </note>
12457 </desc>
12458 </attribute>
12459
12460 <attribute name="autoReset" type="boolean">
12461 <desc>
12462 Whether this differencing medium will be automatically reset each
12463 time a virtual machine it is attached to is powered up. This
12464 attribute is automatically set to @c true for the last
12465 differencing image of an "immutable" medium (see
12466 <link to="MediumType" />).
12467
12468 See <link to="#reset"/> for more information about resetting
12469 differencing media.
12470
12471 <note>
12472 Reading this property on a base (non-differencing) medium will
12473 always @c false. Changing the value of this property in this
12474 case is not supported.
12475 </note>
12476
12477 <result name="VBOX_E_NOT_SUPPORTED">
12478 This is not a differencing medium (when changing the attribute
12479 value).
12480 </result>
12481 </desc>
12482 </attribute>
12483
12484 <attribute name="lastAccessError" type="wstring" readonly="yes">
12485 <desc>
12486 Text message that represents the result of the last accessibility
12487 check performed by <link to="#refreshState"/>.
12488
12489 An empty string is returned if the last accessibility check
12490 was successful or has not yet been called. As a result, if
12491 <link to="#state" /> is "Inaccessible" and this attribute is empty,
12492 then <link to="#refreshState"/> has yet to be called; this is the
12493 default value of media after VirtualBox initialization.
12494 A non-empty string indicates a failure and should normally describe
12495 a reason of the failure (for example, a file read error).
12496 </desc>
12497 </attribute>
12498
12499 <attribute name="machineIds" type="uuid" mod="string" safearray="yes" readonly="yes">
12500 <desc>
12501 Array of UUIDs of all machines this medium is attached to.
12502
12503 A @c null array is returned if this medium is not attached to any
12504 machine or to any machine's snapshot.
12505
12506 <note>
12507 The returned array will include a machine even if this medium is not
12508 attached to that machine in the current state but attached to it in
12509 one of the machine's snapshots. See <link to="#getSnapshotIds"/> for
12510 details.
12511 </note>
12512 </desc>
12513 </attribute>
12514
12515 <method name="setIds">
12516 <desc>
12517 Changes the UUID and parent UUID for a hard disk medium.
12518 </desc>
12519 <param name="setImageId" type="boolean" dir="in">
12520 <desc>
12521 Select whether a new image UUID is set or not.
12522 </desc>
12523 </param>
12524 <param name="imageId" type="uuid" mod="string" dir="in">
12525 <desc>
12526 New UUID for the image. If an empty string is passed, then a new
12527 UUID is automatically created, provided that @a setImageId is @c true.
12528 Specifying a zero UUID is not allowed.
12529 </desc>
12530 </param>
12531 <param name="setParentId" type="boolean" dir="in">
12532 <desc>
12533 Select whether a new parent UUID is set or not.
12534 </desc>
12535 </param>
12536 <param name="parentId" type="uuid" mod="string" dir="in">
12537 <desc>
12538 New parent UUID for the image. If an empty string is passed, then a
12539 new UUID is automatically created, provided @a setParentId is
12540 @c true. A zero UUID is valid.
12541 </desc>
12542 </param>
12543 <result name="E_INVALIDARG">
12544 Invalid parameter combination.
12545 </result>
12546 <result name="VBOX_E_NOT_SUPPORTED">
12547 Medium is not a hard disk medium.
12548 </result>
12549 </method>
12550
12551 <method name="refreshState">
12552 <desc>
12553 If the current medium state (see <link to="MediumState"/>) is one of
12554 "Created", "Inaccessible" or "LockedRead", then this performs an
12555 accessibility check on the medium and sets the value of the <link to="#state"/>
12556 attribute accordingly; that value is also returned for convenience.
12557
12558 For all other state values, this does not perform a refresh but returns
12559 the state only.
12560
12561 The refresh, if performed, may take a long time (several seconds or even
12562 minutes, depending on the storage unit location and format) because it performs an
12563 accessibility check of the storage unit. This check may cause a significant
12564 delay if the storage unit of the given medium is, for example, a file located
12565 on a network share which is not currently accessible due to connectivity
12566 problems. In that case, the call will not return until a timeout
12567 interval defined by the host OS for this operation expires. For this reason,
12568 it is recommended to never read this attribute on the main UI thread to avoid
12569 making the UI unresponsive.
12570
12571 If the last known state of the medium is "Created" and the accessibility
12572 check fails, then the state would be set to "Inaccessible", and
12573 <link to="#lastAccessError"/> may be used to get more details about the
12574 failure. If the state of the medium is "LockedRead", then it remains the
12575 same, and a non-empty value of <link to="#lastAccessError"/> will
12576 indicate a failed accessibility check in this case.
12577
12578 Note that not all medium states are applicable to all medium types.
12579 </desc>
12580 <param name="state" type="MediumState" dir="return">
12581 <desc>
12582 New medium state.
12583 </desc>
12584 </param>
12585 </method>
12586
12587 <method name="getSnapshotIds">
12588 <desc>
12589 Returns an array of UUIDs of all snapshots of the given machine where
12590 this medium is attached to.
12591
12592 If the medium is attached to the machine in the current state, then the
12593 first element in the array will always be the ID of the queried machine
12594 (i.e. the value equal to the @c machineId argument), followed by
12595 snapshot IDs (if any).
12596
12597 If the medium is not attached to the machine in the current state, then
12598 the array will contain only snapshot IDs.
12599
12600 The returned array may be @c null if this medium is not attached
12601 to the given machine at all, neither in the current state nor in one of
12602 the snapshots.
12603 </desc>
12604 <param name="machineId" type="uuid" mod="string" dir="in">
12605 <desc>
12606 UUID of the machine to query.
12607 </desc>
12608 </param>
12609 <param name="snapshotIds" type="uuid" mod="string" safearray="yes" dir="return">
12610 <desc>
12611 Array of snapshot UUIDs of the given machine using this medium.
12612 </desc>
12613 </param>
12614 </method>
12615
12616 <method name="lockRead">
12617 <desc>
12618 Locks this medium for reading.
12619
12620 A read lock is shared: many clients can simultaneously lock the
12621 same medium for reading unless it is already locked for writing (see
12622 <link to="#lockWrite"/>) in which case an error is returned.
12623
12624 When the medium is locked for reading, it cannot be modified
12625 from within VirtualBox. This means that any method that changes
12626 the properties of this medium or contents of the storage unit
12627 will return an error (unless explicitly stated otherwise). That
12628 includes an attempt to start a virtual machine that wants to
12629 write to the the medium.
12630
12631 When the virtual machine is started up, it locks for reading all
12632 media it uses in read-only mode. If some medium cannot be locked
12633 for reading, the startup procedure will fail.
12634 A medium is typically locked for reading while it is used by a running
12635 virtual machine but has a depending differencing image that receives
12636 the actual write operations. This way one base medium can have
12637 multiple child differencing images which can be written to
12638 simultaneously. Read-only media such as DVD and floppy images are
12639 also locked for reading only (so they can be in use by multiple
12640 machines simultaneously).
12641
12642 A medium is also locked for reading when it is the source of a
12643 write operation such as <link to="#cloneTo"/> or <link to="#mergeTo"/>.
12644
12645 The medium locked for reading must be unlocked using the <link
12646 to="#unlockRead"/> method. Calls to <link to="#lockRead"/>
12647 can be nested and must be followed by the same number of paired
12648 <link to="#unlockRead"/> calls.
12649
12650 This method sets the medium state (see <link to="#state"/>) to
12651 "LockedRead" on success. The medium's previous state must be
12652 one of "Created", "Inaccessible" or "LockedRead".
12653
12654 Locking an inaccessible medium is not an error; this method performs
12655 a logical lock that prevents modifications of this medium through
12656 the VirtualBox API, not a physical file-system lock of the underlying
12657 storage unit.
12658
12659 This method returns the current state of the medium
12660 <i>before</i> the operation.
12661
12662 <result name="VBOX_E_INVALID_OBJECT_STATE">
12663 Invalid medium state (e.g. not created, locked, inaccessible,
12664 creating, deleting).
12665 </result>
12666
12667 </desc>
12668 <param name="state" type="MediumState" dir="return">
12669 <desc>
12670 State of the medium after the operation.
12671 </desc>
12672 </param>
12673 </method>
12674
12675 <method name="unlockRead">
12676 <desc>
12677 Cancels the read lock previously set by <link to="#lockRead"/>.
12678
12679 For both success and failure, this method returns the current state
12680 of the medium <i>after</i> the operation.
12681
12682 See <link to="#lockRead"/> for more details.
12683
12684 <result name="VBOX_E_INVALID_OBJECT_STATE">
12685 Medium not locked for reading.
12686 </result>
12687
12688 </desc>
12689 <param name="state" type="MediumState" dir="return">
12690 <desc>
12691 State of the medium after the operation.
12692 </desc>
12693 </param>
12694 </method>
12695
12696 <method name="lockWrite">
12697 <desc>
12698 Locks this medium for writing.
12699
12700 A write lock, as opposed to <link to="#lockRead"/>, is
12701 exclusive: there may be only one client holding a write lock,
12702 and there may be no read locks while the write lock is held.
12703 As a result, read-locking fails if a write lock is held, and
12704 write-locking fails if either a read or another write lock is held.
12705
12706 When a medium is locked for writing, it cannot be modified
12707 from within VirtualBox, and it is not guaranteed that the values
12708 of its properties are up-to-date. Any method that changes the
12709 properties of this medium or contents of the storage unit will
12710 return an error (unless explicitly stated otherwise).
12711
12712 When a virtual machine is started up, it locks for writing all
12713 media it uses to write data to. If any medium could not be locked
12714 for writing, the startup procedure will fail. If a medium has
12715 differencing images, then while the machine is running, only
12716 the last ("leaf") differencing image is locked for writing,
12717 whereas its parents are locked for reading only.
12718
12719 A medium is also locked for writing when it is the target of a
12720 write operation such as <link to="#cloneTo"/> or <link to="#mergeTo"/>.
12721
12722 The medium locked for writing must be unlocked using the <link
12723 to="#unlockWrite"/> method. Write locks <i>cannot</i> be nested.
12724
12725 This method sets the medium state (see <link to="#state"/>) to
12726 "LockedWrite" on success. The medium's previous state must be
12727 either "Created" or "Inaccessible".
12728
12729 Locking an inaccessible medium is not an error; this method performs
12730 a logical lock that prevents modifications of this medium through
12731 the VirtualBox API, not a physical file-system lock of the underlying
12732 storage unit.
12733
12734 For both, success and failure, this method returns the current
12735 state of the medium <i>before</i> the operation.
12736
12737 <result name="VBOX_E_INVALID_OBJECT_STATE">
12738 Invalid medium state (e.g. not created, locked, inaccessible,
12739 creating, deleting).
12740 </result>
12741
12742 </desc>
12743 <param name="state" type="MediumState" dir="return">
12744 <desc>
12745 State of the medium after the operation.
12746 </desc>
12747 </param>
12748 </method>
12749
12750 <method name="unlockWrite">
12751 <desc>
12752 Cancels the write lock previously set by <link to="#lockWrite"/>.
12753
12754 For both success and failure, this method returns the current
12755 state of the medium <i>after</i> the operation.
12756
12757 See <link to="#lockWrite"/> for more details.
12758
12759 <result name="VBOX_E_INVALID_OBJECT_STATE">
12760 Medium not locked for writing.
12761 </result>
12762
12763 </desc>
12764 <param name="state" type="MediumState" dir="return">
12765 <desc>
12766 State of the medium after the operation.
12767 </desc>
12768 </param>
12769 </method>
12770
12771 <method name="close">
12772 <desc>
12773 Closes this medium.
12774
12775 The medium must not be attached to any known virtual machine
12776 and must not have any known child media, otherwise the
12777 operation will fail.
12778
12779 When the medium is successfully closed, it is removed from
12780 the list of registered media, but its storage unit is not
12781 deleted. In particular, this means that this medium can
12782 later be opened again using the <link to="IVirtualBox::openMedium"/>
12783 call.
12784
12785 Note that after this method successfully returns, the given medium
12786 object becomes uninitialized. This means that any attempt
12787 to call any of its methods or attributes will fail with the
12788 <tt>"Object not ready" (E_ACCESSDENIED)</tt> error.
12789
12790 <result name="VBOX_E_INVALID_OBJECT_STATE">
12791 Invalid medium state (other than not created, created or
12792 inaccessible).
12793 </result>
12794 <result name="VBOX_E_OBJECT_IN_USE">
12795 Medium attached to virtual machine.
12796 </result>
12797 <result name="VBOX_E_FILE_ERROR">
12798 Settings file not accessible.
12799 </result>
12800 <result name="VBOX_E_XML_ERROR">
12801 Could not parse the settings file.
12802 </result>
12803
12804 </desc>
12805 </method>
12806
12807 <!-- property methods -->
12808
12809 <method name="getProperty" const="yes">
12810 <desc>
12811 Returns the value of the custom medium property with the given name.
12812
12813 The list of all properties supported by the given medium format can
12814 be obtained with <link to="IMediumFormat::describeProperties"/>.
12815
12816 <note>If this method returns an empty string in @a value, the requested
12817 property is supported but currently not assigned any value.</note>
12818
12819 <result name="VBOX_E_OBJECT_NOT_FOUND">
12820 Requested property does not exist (not supported by the format).
12821 </result>
12822 <result name="E_INVALIDARG">@a name is @c null or empty.</result>
12823 </desc>
12824 <param name="name" type="wstring" dir="in">
12825 <desc>Name of the property to get.</desc>
12826 </param>
12827 <param name="value" type="wstring" dir="return">
12828 <desc>Current property value.</desc>
12829 </param>
12830 </method>
12831
12832 <method name="setProperty">
12833 <desc>
12834 Sets the value of the custom medium property with the given name.
12835
12836 The list of all properties supported by the given medium format can
12837 be obtained with <link to="IMediumFormat::describeProperties"/>.
12838
12839 <note>Setting the property value to @c null or an empty string is
12840 equivalent to deleting the existing value. A default value (if it is
12841 defined for this property) will be used by the format backend in this
12842 case.</note>
12843
12844 <result name="VBOX_E_OBJECT_NOT_FOUND">
12845 Requested property does not exist (not supported by the format).
12846 </result>
12847 <result name="E_INVALIDARG">@a name is @c null or empty.</result>
12848 </desc>
12849 <param name="name" type="wstring" dir="in">
12850 <desc>Name of the property to set.</desc>
12851 </param>
12852 <param name="value" type="wstring" dir="in">
12853 <desc>Property value to set.</desc>
12854 </param>
12855 </method>
12856
12857 <method name="getProperties" const="yes">
12858 <desc>
12859 Returns values for a group of properties in one call.
12860
12861 The names of the properties to get are specified using the @a names
12862 argument which is a list of comma-separated property names or
12863 an empty string if all properties are to be returned.
12864 <note>Currently the value of this argument is ignored and the method
12865 always returns all existing properties.</note>
12866
12867 The list of all properties supported by the given medium format can
12868 be obtained with <link to="IMediumFormat::describeProperties"/>.
12869
12870 The method returns two arrays, the array of property names corresponding
12871 to the @a names argument and the current values of these properties.
12872 Both arrays have the same number of elements with each element at the
12873 given index in the first array corresponds to an element at the same
12874 index in the second array.
12875
12876 For properties that do not have assigned values, an empty string is
12877 returned at the appropriate index in the @a returnValues array.
12878
12879 </desc>
12880 <param name="names" type="wstring" dir="in">
12881 <desc>
12882 Names of properties to get.
12883 </desc>
12884 </param>
12885 <param name="returnNames" type="wstring" safearray="yes" dir="out">
12886 <desc>Names of returned properties.</desc>
12887 </param>
12888 <param name="returnValues" type="wstring" safearray="yes" dir="return">
12889 <desc>Values of returned properties.</desc>
12890 </param>
12891 </method>
12892
12893 <method name="setProperties">
12894 <desc>
12895 Sets values for a group of properties in one call.
12896
12897 The names of the properties to set are passed in the @a names
12898 array along with the new values for them in the @a values array. Both
12899 arrays have the same number of elements with each element at the given
12900 index in the first array corresponding to an element at the same index
12901 in the second array.
12902
12903 If there is at least one property name in @a names that is not valid,
12904 the method will fail before changing the values of any other properties
12905 from the @a names array.
12906
12907 Using this method over <link to="#setProperty"/> is preferred if you
12908 need to set several properties at once since it is more efficient.
12909
12910 The list of all properties supported by the given medium format can
12911 be obtained with <link to="IMediumFormat::describeProperties"/>.
12912
12913 Setting the property value to @c null or an empty string is equivalent
12914 to deleting the existing value. A default value (if it is defined for
12915 this property) will be used by the format backend in this case.
12916 </desc>
12917 <param name="names" type="wstring" safearray="yes" dir="in">
12918 <desc>Names of properties to set.</desc>
12919 </param>
12920 <param name="values" type="wstring" safearray="yes" dir="in">
12921 <desc>Values of properties to set.</desc>
12922 </param>
12923 </method>
12924
12925 <!-- storage methods -->
12926
12927 <method name="createBaseStorage">
12928 <desc>
12929 Starts creating a hard disk storage unit (fixed/dynamic, according
12930 to the variant flags) in in the background. The previous storage unit
12931 created for this object, if any, must first be deleted using
12932 <link to="#deleteStorage"/>, otherwise the operation will fail.
12933
12934 Before the operation starts, the medium is placed in
12935 <link to="MediumState_Creating"/> state. If the create operation
12936 fails, the medium will be placed back in <link to="MediumState_NotCreated"/>
12937 state.
12938
12939 After the returned progress object reports that the operation has
12940 successfully completed, the medium state will be set to <link
12941 to="MediumState_Created"/>, the medium will be remembered by this
12942 VirtualBox installation and may be attached to virtual machines.
12943
12944 <result name="VBOX_E_NOT_SUPPORTED">
12945 The variant of storage creation operation is not supported. See <link
12946 to="IMediumFormat::capabilities"/>.
12947 </result>
12948 </desc>
12949 <param name="logicalSize" type="long long" dir="in">
12950 <desc>Maximum logical size of the medium in bytes.</desc>
12951 </param>
12952 <param name="variant" type="unsigned long" dir="in">
12953 <desc>Exact image variant which should be created (as a combination of
12954 <link to="MediumVariant" /> flags).</desc>
12955 </param>
12956 <param name="progress" type="IProgress" dir="return">
12957 <desc>Progress object to track the operation completion.</desc>
12958 </param>
12959 </method>
12960
12961 <method name="deleteStorage">
12962 <desc>
12963 Starts deleting the storage unit of this medium.
12964
12965 The medium must not be attached to any known virtual machine and must
12966 not have any known child media, otherwise the operation will fail.
12967 It will also fail if there is no storage unit to delete or if deletion
12968 is already in progress, or if the medium is being in use (locked for
12969 read or for write) or inaccessible. Therefore, the only valid state for
12970 this operation to succeed is <link to="MediumState_Created"/>.
12971
12972 Before the operation starts, the medium is placed in
12973 <link to="MediumState_Deleting"/> state and gets removed from the list
12974 of remembered hard disks (media registry). If the delete operation
12975 fails, the medium will be remembered again and placed back to
12976 <link to="MediumState_Created"/> state.
12977
12978 After the returned progress object reports that the operation is
12979 complete, the medium state will be set to
12980 <link to="MediumState_NotCreated"/> and you will be able to use one of
12981 the storage creation methods to create it again.
12982
12983 <see><link to="#close"/></see>
12984
12985 <result name="VBOX_E_OBJECT_IN_USE">
12986 Medium is attached to a virtual machine.
12987 </result>
12988 <result name="VBOX_E_NOT_SUPPORTED">
12989 Storage deletion is not allowed because neither of storage creation
12990 operations are supported. See
12991 <link to="IMediumFormat::capabilities"/>.
12992 </result>
12993
12994 <note>
12995 If the deletion operation fails, it is not guaranteed that the storage
12996 unit still exists. You may check the <link to="IMedium::state"/> value
12997 to answer this question.
12998 </note>
12999 </desc>
13000 <param name="progress" type="IProgress" dir="return">
13001 <desc>Progress object to track the operation completion.</desc>
13002 </param>
13003 </method>
13004
13005 <!-- diff methods -->
13006
13007 <method name="createDiffStorage">
13008 <desc>
13009 Starts creating an empty differencing storage unit based on this
13010 medium in the format and at the location defined by the @a target
13011 argument.
13012
13013 The target medium must be in <link to="MediumState_NotCreated"/>
13014 state (i.e. must not have an existing storage unit). Upon successful
13015 completion, this operation will set the type of the target medium to
13016 <link to="MediumType_Normal"/> and create a storage unit necessary to
13017 represent the differencing medium data in the given format (according
13018 to the storage format of the target object).
13019
13020 After the returned progress object reports that the operation is
13021 successfully complete, the target medium gets remembered by this
13022 VirtualBox installation and may be attached to virtual machines.
13023
13024 <note>
13025 The medium will be set to <link to="MediumState_LockedRead"/>
13026 state for the duration of this operation.
13027 </note>
13028 <result name="VBOX_E_OBJECT_IN_USE">
13029 Medium not in @c NotCreated state.
13030 </result>
13031 </desc>
13032 <param name="target" type="IMedium" dir="in">
13033 <desc>Target medium.</desc>
13034 </param>
13035 <param name="variant" type="unsigned long" dir="in">
13036 <desc>Exact image variant which should be created (as a combination of
13037 <link to="MediumVariant" /> flags).</desc>
13038 </param>
13039 <param name="progress" type="IProgress" dir="return">
13040 <desc>Progress object to track the operation completion.</desc>
13041 </param>
13042 </method>
13043
13044 <method name="mergeTo">
13045 <desc>
13046 Starts merging the contents of this medium and all intermediate
13047 differencing media in the chain to the given target medium.
13048
13049 The target medium must be either a descendant of this medium or
13050 its ancestor (otherwise this method will immediately return a failure).
13051 It follows that there are two logical directions of the merge operation:
13052 from ancestor to descendant (<i>forward merge</i>) and from descendant to
13053 ancestor (<i>backward merge</i>). Let us consider the following medium
13054 chain:
13055
13056 <pre>Base &lt;- Diff_1 &lt;- Diff_2</pre>
13057
13058 Here, calling this method on the <tt>Base</tt> medium object with
13059 <tt>Diff_2</tt> as an argument will be a forward merge; calling it on
13060 <tt>Diff_2</tt> with <tt>Base</tt> as an argument will be a backward
13061 merge. Note that in both cases the contents of the resulting medium
13062 will be the same, the only difference is the medium object that takes
13063 the result of the merge operation. In case of the forward merge in the
13064 above example, the result will be written to <tt>Diff_2</tt>; in case of
13065 the backward merge, the result will be written to <tt>Base</tt>. In
13066 other words, the result of the operation is always stored in the target
13067 medium.
13068
13069 Upon successful operation completion, the storage units of all media in
13070 the chain between this (source) medium and the target medium, including
13071 the source medium itself, will be automatically deleted and the
13072 relevant medium objects (including this medium) will become
13073 uninitialized. This means that any attempt to call any of
13074 their methods or attributes will fail with the
13075 <tt>"Object not ready" (E_ACCESSDENIED)</tt> error. Applied to the above
13076 example, the forward merge of <tt>Base</tt> to <tt>Diff_2</tt> will
13077 delete and uninitialize both <tt>Base</tt> and <tt>Diff_1</tt> media.
13078 Note that <tt>Diff_2</tt> in this case will become a base medium
13079 itself since it will no longer be based on any other medium.
13080
13081 Considering the above, all of the following conditions must be met in
13082 order for the merge operation to succeed:
13083 <ul>
13084 <li>
13085 Neither this (source) medium nor any intermediate
13086 differencing medium in the chain between it and the target
13087 medium is attached to any virtual machine.
13088 </li>
13089 <li>
13090 Neither the source medium nor the target medium is an
13091 <link to="MediumType_Immutable"/> medium.
13092 </li>
13093 <li>
13094 The part of the medium tree from the source medium to the
13095 target medium is a linear chain, i.e. all medium in this
13096 chain have exactly one child which is the next medium in this
13097 chain. The only exception from this rule is the target medium in
13098 the forward merge operation; it is allowed to have any number of
13099 child media because the merge operation will not change its
13100 logical contents (as it is seen by the guest OS or by children).
13101 </li>
13102 <li>
13103 None of the involved media are in
13104 <link to="MediumState_LockedRead"/> or
13105 <link to="MediumState_LockedWrite"/> state.
13106 </li>
13107 </ul>
13108
13109 <note>
13110 This (source) medium and all intermediates will be placed to <link
13111 to="MediumState_Deleting"/> state and the target medium will be
13112 placed to <link to="MediumState_LockedWrite"/> state and for the
13113 duration of this operation.
13114 </note>
13115 </desc>
13116 <param name="target" type="IMedium" dir="in">
13117 <desc>Target medium.</desc>
13118 </param>
13119 <param name="progress" type="IProgress" dir="return">
13120 <desc>Progress object to track the operation completion.</desc>
13121 </param>
13122 </method>
13123
13124 <!-- clone method -->
13125
13126 <method name="cloneTo">
13127 <desc>
13128 Starts creating a clone of this medium in the format and at the
13129 location defined by the @a target argument.
13130
13131 The target medium must be either in <link to="MediumState_NotCreated"/>
13132 state (i.e. must not have an existing storage unit) or in
13133 <link to="MediumState_Created"/> state (i.e. created and not locked, and
13134 big enough to hold the data or else the copy will be partial). Upon
13135 successful completion, the cloned medium will contain exactly the
13136 same sector data as the medium being cloned, except that in the
13137 first case a new UUID for the clone will be randomly generated, and in
13138 the second case the UUID will remain unchanged.
13139
13140 The @a parent argument defines which medium will be the parent
13141 of the clone. Passing a @c null reference indicates that the clone will
13142 be a base image, i.e. completely independent. It is possible to specify
13143 an arbitrary medium for this parameter, including the parent of the
13144 medium which is being cloned. Even cloning to a child of the source
13145 medium is possible. Note that when cloning to an existing image, the
13146 @a parent argument is ignored.
13147
13148 After the returned progress object reports that the operation is
13149 successfully complete, the target medium gets remembered by this
13150 VirtualBox installation and may be attached to virtual machines.
13151
13152 <note>
13153 This medium will be placed to <link to="MediumState_LockedRead"/>
13154 state for the duration of this operation.
13155 </note>
13156 <result name="E_NOTIMPL">
13157 The specified cloning variant is not supported at the moment.
13158 </result>
13159 </desc>
13160 <param name="target" type="IMedium" dir="in">
13161 <desc>Target medium.</desc>
13162 </param>
13163 <param name="variant" type="unsigned long" dir="in">
13164 <desc>Exact image variant which should be created (as a combination of
13165 <link to="MediumVariant" /> flags).</desc>
13166 </param>
13167 <param name="parent" type="IMedium" dir="in">
13168 <desc>Parent of the cloned medium.</desc>
13169 </param>
13170 <param name="progress" type="IProgress" dir="return">
13171 <desc>Progress object to track the operation completion.</desc>
13172 </param>
13173 </method>
13174
13175 <method name="cloneToBase">
13176 <desc>
13177 Starts creating a clone of this medium in the format and at the
13178 location defined by the @a target argument.
13179
13180 The target medium must be either in <link to="MediumState_NotCreated"/>
13181 state (i.e. must not have an existing storage unit) or in
13182 <link to="MediumState_Created"/> state (i.e. created and not locked, and
13183 big enough to hold the data or else the copy will be partial). Upon
13184 successful completion, the cloned medium will contain exactly the
13185 same sector data as the medium being cloned, except that in the
13186 first case a new UUID for the clone will be randomly generated, and in
13187 the second case the UUID will remain unchanged.
13188
13189 The @a parent argument defines which medium will be the parent
13190 of the clone. In this case the clone will be a base image, i.e.
13191 completely independent. It is possible to specify an arbitrary
13192 medium for this parameter, including the parent of the
13193 medium which is being cloned. Even cloning to a child of the source
13194 medium is possible. Note that when cloning to an existing image, the
13195 @a parent argument is ignored.
13196
13197 After the returned progress object reports that the operation is
13198 successfully complete, the target medium gets remembered by this
13199 VirtualBox installation and may be attached to virtual machines.
13200
13201 <note>
13202 This medium will be placed to <link to="MediumState_LockedRead"/>
13203 state for the duration of this operation.
13204 </note>
13205 <result name="E_NOTIMPL">
13206 The specified cloning variant is not supported at the moment.
13207 </result>
13208 </desc>
13209 <param name="target" type="IMedium" dir="in">
13210 <desc>Target medium.</desc>
13211 </param>
13212 <param name="variant" type="unsigned long" dir="in">
13213 <desc>Exact image variant which should be created (as a combination of
13214 <link to="MediumVariant" /> flags).</desc>
13215 </param>
13216 <param name="progress" type="IProgress" dir="return">
13217 <desc>Progress object to track the operation completion.</desc>
13218 </param>
13219 </method>
13220
13221 <!-- other methods -->
13222
13223 <method name="compact">
13224 <desc>
13225 Starts compacting of this medium. This means that the medium is
13226 transformed into a possibly more compact storage representation.
13227 This potentially creates temporary images, which can require a
13228 substantial amount of additional disk space.
13229
13230 This medium will be placed to <link to="MediumState_LockedWrite"/>
13231 state and all its parent media (if any) will be placed to
13232 <link to="MediumState_LockedRead"/> state for the duration of this
13233 operation.
13234
13235 Please note that the results can be either returned straight away,
13236 or later as the result of the background operation via the object
13237 returned via the @a progress parameter.
13238
13239 <result name="VBOX_E_NOT_SUPPORTED">
13240 Medium format does not support compacting (but potentially
13241 needs it).
13242 </result>
13243 </desc>
13244 <param name="progress" type="IProgress" dir="return">
13245 <desc>Progress object to track the operation completion.</desc>
13246 </param>
13247 </method>
13248
13249 <method name="resize">
13250 <desc>
13251 Starts resizing this medium. This means that the nominal size of the
13252 medium is set to the new value. Both increasing and decreasing the
13253 size is possible, and there are no safety checks, since VirtualBox
13254 does not make any assumptions about the medium contents.
13255
13256 Resizing usually needs additional disk space, and possibly also
13257 some temporary disk space. Note that resize does not create a full
13258 temporary copy of the medium, so the additional disk space requirement
13259 is usually much lower than using the clone operation.
13260
13261 This medium will be placed to <link to="MediumState_LockedWrite"/>
13262 state for the duration of this operation.
13263
13264 Please note that the results can be either returned straight away,
13265 or later as the result of the background operation via the object
13266 returned via the @a progress parameter.
13267
13268 <result name="VBOX_E_NOT_SUPPORTED">
13269 Medium format does not support resizing.
13270 </result>
13271 </desc>
13272 <param name="logicalSize" type="long long" dir="in">
13273 <desc>New nominal capacity of the medium in bytes.</desc>
13274 </param>
13275 <param name="progress" type="IProgress" dir="return">
13276 <desc>Progress object to track the operation completion.</desc>
13277 </param>
13278 </method>
13279
13280 <method name="reset">
13281 <desc>
13282 Starts erasing the contents of this differencing medium.
13283
13284 This operation will reset the differencing medium to its initial
13285 state when it does not contain any sector data and any read operation is
13286 redirected to its parent medium. This automatically gets called
13287 during VM power-up for every medium whose <link to="#autoReset" />
13288 attribute is @c true.
13289
13290 The medium will be write-locked for the duration of this operation (see
13291 <link to="#lockWrite" />).
13292
13293 <result name="VBOX_E_NOT_SUPPORTED">
13294 This is not a differencing medium.
13295 </result>
13296 <result name="VBOX_E_INVALID_OBJECT_STATE">
13297 Medium is not in <link to="MediumState_Created"/> or
13298 <link to="MediumState_Inaccessible"/> state.
13299 </result>
13300 </desc>
13301 <param name="progress" type="IProgress" dir="return">
13302 <desc>Progress object to track the operation completion.</desc>
13303 </param>
13304 </method>
13305
13306 </interface>
13307
13308
13309 <!--
13310 // IMediumFormat
13311 /////////////////////////////////////////////////////////////////////////
13312 -->
13313
13314 <enum
13315 name="DataType"
13316 uuid="d90ea51e-a3f1-4a01-beb1-c1723c0d3ba7"
13317 >
13318 <const name="Int32" value="0"/>
13319 <const name="Int8" value="1"/>
13320 <const name="String" value="2"/>
13321 </enum>
13322
13323 <enum
13324 name="DataFlags"
13325 uuid="86884dcf-1d6b-4f1b-b4bf-f5aa44959d60"
13326 >
13327 <const name="None" value="0x00"/>
13328 <const name="Mandatory" value="0x01"/>
13329 <const name="Expert" value="0x02"/>
13330 <const name="Array" value="0x04"/>
13331 <const name="FlagMask" value="0x07"/>
13332 </enum>
13333
13334 <enum
13335 name="MediumFormatCapabilities"
13336 uuid="7342ba79-7ce0-4d94-8f86-5ed5a185d9bd"
13337 >
13338 <desc>
13339 Medium format capability flags.
13340 </desc>
13341
13342 <const name="Uuid" value="0x01">
13343 <desc>
13344 Supports UUIDs as expected by VirtualBox code.
13345 </desc>
13346 </const>
13347
13348 <const name="CreateFixed" value="0x02">
13349 <desc>
13350 Supports creating fixed size images, allocating all space instantly.
13351 </desc>
13352 </const>
13353
13354 <const name="CreateDynamic" value="0x04">
13355 <desc>
13356 Supports creating dynamically growing images, allocating space on
13357 demand.
13358 </desc>
13359 </const>
13360
13361 <const name="CreateSplit2G" value="0x08">
13362 <desc>
13363 Supports creating images split in chunks of a bit less than 2 GBytes.
13364 </desc>
13365 </const>
13366
13367 <const name="Differencing" value="0x10">
13368 <desc>
13369 Supports being used as a format for differencing media (see <link
13370 to="IMedium::createDiffStorage"/>).
13371 </desc>
13372 </const>
13373
13374 <const name="Asynchronous" value="0x20">
13375 <desc>
13376 Supports asynchronous I/O operations for at least some configurations.
13377 </desc>
13378 </const>
13379
13380 <const name="File" value="0x40">
13381 <desc>
13382 The format backend operates on files (the <link to="IMedium::location"/>
13383 attribute of the medium specifies a file used to store medium
13384 data; for a list of supported file extensions see
13385 <link to="IMediumFormat::describeFileExtensions"/>).
13386 </desc>
13387 </const>
13388
13389 <const name="Properties" value="0x80">
13390 <desc>
13391 The format backend uses the property interface to configure the storage
13392 location and properties (the <link to="IMediumFormat::describeProperties"/>
13393 method is used to get access to properties supported by the given medium format).
13394 </desc>
13395 </const>
13396
13397 <const name="TcpNetworking" value="0x100">
13398 <desc>
13399 The format backend uses the TCP networking interface for network access.
13400 </desc>
13401 </const>
13402
13403 <const name="VFS" value="0x200">
13404 <desc>
13405 The format backend supports virtual filesystem functionality.
13406 </desc>
13407 </const>
13408
13409 <const name="CapabilityMask" value="0x3FF"/>
13410 </enum>
13411
13412 <interface
13413 name="IMediumFormat" extends="$unknown"
13414 uuid="9bd5b655-ea47-4637-99f3-aad0948be35b"
13415 wsmap="managed"
13416 >
13417 <desc>
13418 The IMediumFormat interface represents a medium format.
13419
13420 Each medium format has an associated backend which is used to handle
13421 media stored in this format. This interface provides information
13422 about the properties of the associated backend.
13423
13424 Each medium format is identified by a string represented by the
13425 <link to="#id"/> attribute. This string is used in calls like
13426 <link to="IVirtualBox::createHardDisk"/> to specify the desired
13427 format.
13428
13429 The list of all supported medium formats can be obtained using
13430 <link to="ISystemProperties::mediumFormats"/>.
13431
13432 <see><link to="IMedium"/></see>
13433 </desc>
13434
13435 <attribute name="id" type="wstring" readonly="yes">
13436 <desc>
13437 Identifier of this format.
13438
13439 The format identifier is a non-@c null non-empty ASCII string. Note that
13440 this string is case-insensitive. This means that, for example, all of
13441 the following strings:
13442 <pre>
13443 "VDI"
13444 "vdi"
13445 "VdI"</pre>
13446 refer to the same medium format.
13447
13448 This string is used in methods of other interfaces where it is necessary
13449 to specify a medium format, such as
13450 <link to="IVirtualBox::createHardDisk"/>.
13451 </desc>
13452 </attribute>
13453
13454 <attribute name="name" type="wstring" readonly="yes">
13455 <desc>
13456 Human readable description of this format.
13457
13458 Mainly for use in file open dialogs.
13459 </desc>
13460 </attribute>
13461
13462 <attribute name="capabilities" type="unsigned long" readonly="yes">
13463 <desc>
13464 Capabilities of the format as a set of bit flags.
13465
13466 For the meaning of individual capability flags see
13467 <link to="MediumFormatCapabilities"/>.
13468 </desc>
13469 </attribute>
13470
13471 <method name="describeFileExtensions">
13472 <desc>
13473 Returns two arrays describing the supported file extensions.
13474
13475 The first array contains the supported extensions and the seconds one
13476 the type each extension supports. Both have the same size.
13477
13478 Note that some backends do not work on files, so this array may be
13479 empty.
13480
13481 <see><link to="IMediumFormat::capabilities"/></see>
13482 </desc>
13483 <param name="extensions" type="wstring" safearray="yes" dir="out">
13484 <desc>The array of supported extensions.</desc>
13485 </param>
13486 <param name="type" type="DeviceType" safearray="yes" dir="out">
13487 <desc>The array which indicates the device type for every given extension.</desc>
13488 </param>
13489 </method>
13490
13491 <method name="describeProperties" const="yes">
13492 <desc>
13493 Returns several arrays describing the properties supported by this
13494 format.
13495
13496 An element with the given index in each array describes one
13497 property. Thus, the number of elements in each returned array is the
13498 same and corresponds to the number of supported properties.
13499
13500 The returned arrays are filled in only if the
13501 <link to="MediumFormatCapabilities_Properties"/> flag is set.
13502 All arguments must be non-@c null.
13503
13504 <see><link to="DataType"/>, <link to="DataFlags"/></see>
13505 </desc>
13506
13507 <param name="names" type="wstring" safearray="yes" dir="out">
13508 <desc>Array of property names.</desc>
13509 </param>
13510 <param name="description" type="wstring" safearray="yes" dir="out">
13511 <desc>Array of property descriptions.</desc>
13512 </param>
13513 <param name="types" type="DataType" safearray="yes" dir="out">
13514 <desc>Array of property types.</desc>
13515 </param>
13516 <param name="flags" type="unsigned long" safearray="yes" dir="out">
13517 <desc>Array of property flags.</desc>
13518 </param>
13519 <param name="defaults" type="wstring" safearray="yes" dir="out">
13520 <desc>Array of default property values.</desc>
13521 </param>
13522 </method>
13523
13524 </interface>
13525
13526
13527 <!--
13528 // IKeyboard
13529 /////////////////////////////////////////////////////////////////////////
13530 -->
13531
13532 <interface
13533 name="IKeyboard" extends="$unknown"
13534 uuid="f6916ec5-a881-4237-898f-7de58cf88672"
13535 wsmap="managed"
13536 >
13537 <desc>
13538 The IKeyboard interface represents the virtual machine's keyboard. Used
13539 in <link to="IConsole::keyboard"/>.
13540
13541 Use this interface to send keystrokes or the Ctrl-Alt-Del sequence
13542 to the virtual machine.
13543
13544 </desc>
13545 <method name="putScancode">
13546 <desc>Sends a scancode to the keyboard.
13547
13548 <result name="VBOX_E_IPRT_ERROR">
13549 Could not send scan code to virtual keyboard.
13550 </result>
13551
13552 </desc>
13553 <param name="scancode" type="long" dir="in"/>
13554 </method>
13555
13556 <method name="putScancodes">
13557 <desc>Sends an array of scancodes to the keyboard.
13558
13559 <result name="VBOX_E_IPRT_ERROR">
13560 Could not send all scan codes to virtual keyboard.
13561 </result>
13562
13563 </desc>
13564 <param name="scancodes" type="long" dir="in" safearray="yes"/>
13565 <param name="codesStored" type="unsigned long" dir="return"/>
13566 </method>
13567
13568 <method name="putCAD">
13569 <desc>Sends the Ctrl-Alt-Del sequence to the keyboard. This
13570 function is nothing special, it is just a convenience function
13571 calling <link to="IKeyboard::putScancodes"/> with the proper scancodes.
13572
13573 <result name="VBOX_E_IPRT_ERROR">
13574 Could not send all scan codes to virtual keyboard.
13575 </result>
13576
13577 </desc>
13578 </method>
13579
13580 <attribute name="eventSource" type="IEventSource" readonly="yes">
13581 <desc>
13582 Event source for keyboard events.
13583 </desc>
13584 </attribute>
13585
13586 </interface>
13587
13588
13589 <!--
13590 // IMouse
13591 /////////////////////////////////////////////////////////////////////////
13592 -->
13593
13594 <enum
13595 name="MouseButtonState"
13596 uuid="9ee094b8-b28a-4d56-a166-973cb588d7f8"
13597 >
13598 <desc>
13599 Mouse button state.
13600 </desc>
13601
13602 <const name="LeftButton" value="0x01"/>
13603 <const name="RightButton" value="0x02"/>
13604 <const name="MiddleButton" value="0x04"/>
13605 <const name="WheelUp" value="0x08"/>
13606 <const name="WheelDown" value="0x10"/>
13607 <const name="XButton1" value="0x20"/>
13608 <const name="XButton2" value="0x40"/>
13609 <const name="MouseStateMask" value="0x7F"/>
13610 </enum>
13611
13612 <interface
13613 name="IMouse" extends="$unknown"
13614 uuid="05044a52-7811-4f00-ae3a-0ab7ff707b10"
13615 wsmap="managed"
13616 >
13617 <desc>
13618 The IMouse interface represents the virtual machine's mouse. Used in
13619 <link to="IConsole::mouse"/>.
13620
13621 Through this interface, the virtual machine's virtual mouse can be
13622 controlled.
13623 </desc>
13624
13625 <attribute name="absoluteSupported" type="boolean" readonly="yes">
13626 <desc>
13627 Whether the guest OS supports absolute mouse pointer positioning
13628 or not.
13629 <note>
13630 You can use the <link to="IMouseCapabilityChangedEvent"/>
13631 event to be instantly informed about changes of this attribute
13632 during virtual machine execution.
13633 </note>
13634 <see><link to="#putMouseEventAbsolute"/></see>
13635 </desc>
13636 </attribute>
13637
13638 <attribute name="relativeSupported" type="boolean" readonly="yes">
13639 <desc>
13640 Whether the guest OS supports relative mouse pointer positioning
13641 or not.
13642 <note>
13643 You can use the <link to="IMouseCapabilityChangedEvent"/>
13644 event to be instantly informed about changes of this attribute
13645 during virtual machine execution.
13646 </note>
13647 <see><link to="#putMouseEvent"/></see>
13648 </desc>
13649 </attribute>
13650
13651 <attribute name="needsHostCursor" type="boolean" readonly="yes">
13652 <desc>
13653 Whether the guest OS can currently switch to drawing it's own mouse
13654 cursor on demand.
13655 <note>
13656 You can use the <link to="IMouseCapabilityChangedEvent"/>
13657 event to be instantly informed about changes of this attribute
13658 during virtual machine execution.
13659 </note>
13660 <see><link to="#putMouseEvent"/></see>
13661 </desc>
13662 </attribute>
13663
13664 <method name="putMouseEvent">
13665 <desc>
13666 Initiates a mouse event using relative pointer movements
13667 along x and y axis.
13668
13669 <result name="E_ACCESSDENIED">
13670 Console not powered up.
13671 </result>
13672 <result name="VBOX_E_IPRT_ERROR">
13673 Could not send mouse event to virtual mouse.
13674 </result>
13675
13676 </desc>
13677
13678 <param name="dx" type="long" dir="in">
13679 <desc>
13680 Amount of pixels the mouse should move to the right.
13681 Negative values move the mouse to the left.
13682 </desc>
13683 </param>
13684 <param name="dy" type="long" dir="in">
13685 <desc>
13686 Amount of pixels the mouse should move downwards.
13687 Negative values move the mouse upwards.
13688 </desc>
13689 </param>
13690 <param name="dz" type="long" dir="in">
13691 <desc>
13692 Amount of mouse wheel moves.
13693 Positive values describe clockwise wheel rotations,
13694 negative values describe counterclockwise rotations.
13695 </desc>
13696 </param>
13697 <param name="dw" type="long" dir="in">
13698 <desc>
13699 Amount of horizontal mouse wheel moves.
13700 Positive values describe a movement to the left,
13701 negative values describe a movement to the right.
13702 </desc>
13703 </param>
13704 <param name="buttonState" type="long" dir="in">
13705 <desc>
13706 The current state of mouse buttons. Every bit represents
13707 a mouse button as follows:
13708 <table>
13709 <tr><td>Bit 0 (<tt>0x01</tt>)</td><td>left mouse button</td></tr>
13710 <tr><td>Bit 1 (<tt>0x02</tt>)</td><td>right mouse button</td></tr>
13711 <tr><td>Bit 2 (<tt>0x04</tt>)</td><td>middle mouse button</td></tr>
13712 </table>
13713 A value of <tt>1</tt> means the corresponding button is pressed.
13714 otherwise it is released.
13715 </desc>
13716 </param>
13717 </method>
13718
13719 <method name="putMouseEventAbsolute">
13720 <desc>
13721 Positions the mouse pointer using absolute x and y coordinates.
13722 These coordinates are expressed in pixels and
13723 start from <tt>[1,1]</tt> which corresponds to the top left
13724 corner of the virtual display.
13725
13726 <result name="E_ACCESSDENIED">
13727 Console not powered up.
13728 </result>
13729 <result name="VBOX_E_IPRT_ERROR">
13730 Could not send mouse event to virtual mouse.
13731 </result>
13732
13733 <note>
13734 This method will have effect only if absolute mouse
13735 positioning is supported by the guest OS.
13736 </note>
13737
13738 <see><link to="#absoluteSupported"/></see>
13739 </desc>
13740
13741 <param name="x" type="long" dir="in">
13742 <desc>
13743 X coordinate of the pointer in pixels, starting from @c 1.
13744 </desc>
13745 </param>
13746 <param name="y" type="long" dir="in">
13747 <desc>
13748 Y coordinate of the pointer in pixels, starting from @c 1.
13749 </desc>
13750 </param>
13751 <param name="dz" type="long" dir="in">
13752 <desc>
13753 Amount of mouse wheel moves.
13754 Positive values describe clockwise wheel rotations,
13755 negative values describe counterclockwise rotations.
13756 </desc>
13757 </param>
13758 <param name="dw" type="long" dir="in">
13759 <desc>
13760 Amount of horizontal mouse wheel moves.
13761 Positive values describe a movement to the left,
13762 negative values describe a movement to the right.
13763 </desc>
13764 </param>
13765 <param name="buttonState" type="long" dir="in">
13766 <desc>
13767 The current state of mouse buttons. Every bit represents
13768 a mouse button as follows:
13769 <table>
13770 <tr><td>Bit 0 (<tt>0x01</tt>)</td><td>left mouse button</td></tr>
13771 <tr><td>Bit 1 (<tt>0x02</tt>)</td><td>right mouse button</td></tr>
13772 <tr><td>Bit 2 (<tt>0x04</tt>)</td><td>middle mouse button</td></tr>
13773 </table>
13774 A value of @c 1 means the corresponding button is pressed.
13775 otherwise it is released.
13776 </desc>
13777 </param>
13778 </method>
13779
13780 <attribute name="eventSource" type="IEventSource" readonly="yes">
13781 <desc>
13782 Event source for mouse events.
13783 </desc>
13784 </attribute>
13785
13786 </interface>
13787
13788 <!--
13789 // IDisplay
13790 /////////////////////////////////////////////////////////////////////////
13791 -->
13792
13793 <enum
13794 name="FramebufferPixelFormat"
13795 uuid="7acfd5ed-29e3-45e3-8136-73c9224f3d2d"
13796 >
13797 <desc>
13798 Format of the video memory buffer. Constants represented by this enum can
13799 be used to test for particular values of <link
13800 to="IFramebuffer::pixelFormat"/>. See also <link
13801 to="IFramebuffer::requestResize"/>.
13802
13803 See also www.fourcc.org for more information about FOURCC pixel formats.
13804 </desc>
13805
13806 <const name="Opaque" value="0">
13807 <desc>
13808 Unknown buffer format (the user may not assume any particular format of
13809 the buffer).
13810 </desc>
13811 </const>
13812 <const name="FOURCC_RGB" value="0x32424752">
13813 <desc>
13814 Basic RGB format (<link to="IFramebuffer::bitsPerPixel"/> determines the
13815 bit layout).
13816 </desc>
13817 </const>
13818 </enum>
13819
13820 <interface
13821 name="IFramebuffer" extends="$unknown"
13822 uuid="b7ed347a-5765-40a0-ae1c-f543eb4ddeaf"
13823 wsmap="suppress"
13824 >
13825 <attribute name="address" type="octet" mod="ptr" readonly="yes">
13826 <desc>Address of the start byte of the frame buffer.</desc>
13827 </attribute>
13828
13829 <attribute name="width" type="unsigned long" readonly="yes">
13830 <desc>Frame buffer width, in pixels.</desc>
13831 </attribute>
13832
13833 <attribute name="height" type="unsigned long" readonly="yes">
13834 <desc>Frame buffer height, in pixels.</desc>
13835 </attribute>
13836
13837 <attribute name="bitsPerPixel" type="unsigned long" readonly="yes">
13838 <desc>
13839 Color depth, in bits per pixel. When <link to="#pixelFormat"/> is <link
13840 to="FramebufferPixelFormat_FOURCC_RGB">FOURCC_RGB</link>, valid values
13841 are: 8, 15, 16, 24 and 32.
13842 </desc>
13843 </attribute>
13844
13845 <attribute name="bytesPerLine" type="unsigned long" readonly="yes">
13846 <desc>
13847 Scan line size, in bytes. When <link to="#pixelFormat"/> is <link
13848 to="FramebufferPixelFormat_FOURCC_RGB">FOURCC_RGB</link>, the
13849 size of the scan line must be aligned to 32 bits.
13850 </desc>
13851 </attribute>
13852
13853 <attribute name="pixelFormat" type="unsigned long" readonly="yes">
13854 <desc>
13855 Frame buffer pixel format. It's either one of the values defined by <link
13856 to="FramebufferPixelFormat"/> or a raw FOURCC code.
13857 <note>
13858 This attribute must never return <link
13859 to="FramebufferPixelFormat_Opaque"/> -- the format of the buffer
13860 <link to="#address"/> points to must be always known.
13861 </note>
13862 </desc>
13863 </attribute>
13864
13865 <attribute name="usesGuestVRAM" type="boolean" readonly="yes">
13866 <desc>
13867 Defines whether this frame buffer uses the virtual video card's memory
13868 buffer (guest VRAM) directly or not. See <link
13869 to="IFramebuffer::requestResize"/> for more information.
13870 </desc>
13871 </attribute>
13872
13873 <attribute name="heightReduction" type="unsigned long" readonly="yes">
13874 <desc>
13875 Hint from the frame buffer about how much of the standard
13876 screen height it wants to use for itself. This information is
13877 exposed to the guest through the VESA BIOS and VMMDev interface
13878 so that it can use it for determining its video mode table. It
13879 is not guaranteed that the guest respects the value.
13880 </desc>
13881 </attribute>
13882
13883 <attribute name="overlay" type="IFramebufferOverlay" readonly="yes">
13884 <desc>
13885 An alpha-blended overlay which is superposed over the frame buffer.
13886 The initial purpose is to allow the display of icons providing
13887 information about the VM state, including disk activity, in front
13888 ends which do not have other means of doing that. The overlay is
13889 designed to controlled exclusively by IDisplay. It has no locking
13890 of its own, and any changes made to it are not guaranteed to be
13891 visible until the affected portion of IFramebuffer is updated. The
13892 overlay can be created lazily the first time it is requested. This
13893 attribute can also return @c null to signal that the overlay is not
13894 implemented.
13895 </desc>
13896 </attribute>
13897
13898 <attribute name="winId" type="long long" readonly="yes">
13899 <desc>
13900 Platform-dependent identifier of the window where context of this
13901 frame buffer is drawn, or zero if there's no such window.
13902 </desc>
13903 </attribute>
13904
13905 <method name="lock">
13906 <desc>
13907 Locks the frame buffer.
13908 Gets called by the IDisplay object where this frame buffer is
13909 bound to.
13910 </desc>
13911 </method>
13912
13913 <method name="unlock">
13914 <desc>
13915 Unlocks the frame buffer.
13916 Gets called by the IDisplay object where this frame buffer is
13917 bound to.
13918 </desc>
13919 </method>
13920
13921 <method name="notifyUpdate">
13922 <desc>
13923 Informs about an update.
13924 Gets called by the display object where this buffer is
13925 registered.
13926 </desc>
13927 <param name="x" type="unsigned long" dir="in"/>
13928 <param name="y" type="unsigned long" dir="in"/>
13929 <param name="width" type="unsigned long" dir="in"/>
13930 <param name="height" type="unsigned long" dir="in"/>
13931 </method>
13932
13933 <method name="requestResize">
13934 <desc>
13935 Requests a size and pixel format change.
13936
13937 There are two modes of working with the video buffer of the virtual
13938 machine. The <i>indirect</i> mode implies that the IFramebuffer
13939 implementation allocates a memory buffer for the requested display mode
13940 and provides it to the virtual machine. In <i>direct</i> mode, the
13941 IFramebuffer implementation uses the memory buffer allocated and owned
13942 by the virtual machine. This buffer represents the video memory of the
13943 emulated video adapter (so called <i>guest VRAM</i>). The direct mode is
13944 usually faster because the implementation gets a raw pointer to the
13945 guest VRAM buffer which it can directly use for visualizing the contents
13946 of the virtual display, as opposed to the indirect mode where the
13947 contents of guest VRAM are copied to the memory buffer provided by
13948 the implementation every time a display update occurs.
13949
13950 It is important to note that the direct mode is really fast only when
13951 the implementation uses the given guest VRAM buffer directly, for
13952 example, by blitting it to the window representing the virtual machine's
13953 display, which saves at least one copy operation comparing to the
13954 indirect mode. However, using the guest VRAM buffer directly is not
13955 always possible: the format and the color depth of this buffer may be
13956 not supported by the target window, or it may be unknown (opaque) as in
13957 case of text or non-linear multi-plane VGA video modes. In this case,
13958 the indirect mode (that is always available) should be used as a
13959 fallback: when the guest VRAM contents are copied to the
13960 implementation-provided memory buffer, color and format conversion is
13961 done automatically by the underlying code.
13962
13963 The @a pixelFormat parameter defines whether the direct mode is
13964 available or not. If @a pixelFormat is <link
13965 to="FramebufferPixelFormat_Opaque"/> then direct access to the guest
13966 VRAM buffer is not available -- the @a VRAM, @a bitsPerPixel and
13967 @a bytesPerLine parameters must be ignored and the implementation must use
13968 the indirect mode (where it provides its own buffer in one of the
13969 supported formats). In all other cases, @a pixelFormat together with
13970 @a bitsPerPixel and @a bytesPerLine define the format of the video memory
13971 buffer pointed to by the @a VRAM parameter and the implementation is
13972 free to choose which mode to use. To indicate that this frame buffer uses
13973 the direct mode, the implementation of the <link to="#usesGuestVRAM"/>
13974 attribute must return @c true and <link to="#address"/> must
13975 return exactly the same address that is passed in the @a VRAM parameter
13976 of this method; otherwise it is assumed that the indirect strategy is
13977 chosen.
13978
13979 The @a width and @a height parameters represent the size of the
13980 requested display mode in both modes. In case of indirect mode, the
13981 provided memory buffer should be big enough to store data of the given
13982 display mode. In case of direct mode, it is guaranteed that the given
13983 @a VRAM buffer contains enough space to represent the display mode of the
13984 given size. Note that this frame buffer's <link to="#width"/> and <link
13985 to="#height"/> attributes must return exactly the same values as
13986 passed to this method after the resize is completed (see below).
13987
13988 The @a finished output parameter determines if the implementation has
13989 finished resizing the frame buffer or not. If, for some reason, the
13990 resize cannot be finished immediately during this call, @a finished
13991 must be set to @c false, and the implementation must call
13992 <link to="IDisplay::resizeCompleted"/> after it has returned from
13993 this method as soon as possible. If @a finished is @c false, the
13994 machine will not call any frame buffer methods until
13995 <link to="IDisplay::resizeCompleted"/> is called.
13996
13997 Note that if the direct mode is chosen, the <link to="#bitsPerPixel"/>,
13998 <link to="#bytesPerLine"/> and <link to="#pixelFormat"/> attributes of
13999 this frame buffer must return exactly the same values as specified in the
14000 parameters of this method, after the resize is completed. If the
14001 indirect mode is chosen, these attributes must return values describing
14002 the format of the implementation's own memory buffer <link
14003 to="#address"/> points to. Note also that the <link to="#bitsPerPixel"/>
14004 value must always correlate with <link to="#pixelFormat"/>. Note that
14005 the <link to="#pixelFormat"/> attribute must never return <link
14006 to="FramebufferPixelFormat_Opaque"/> regardless of the selected mode.
14007
14008 <note>
14009 This method is called by the IDisplay object under the
14010 <link to="#lock"/> provided by this IFramebuffer
14011 implementation. If this method returns @c false in @a finished, then
14012 this lock is not released until
14013 <link to="IDisplay::resizeCompleted"/> is called.
14014 </note>
14015 </desc>
14016 <param name="screenId" type="unsigned long" dir="in">
14017 <desc>
14018 Logical screen number. Must be used in the corresponding call to
14019 <link to="IDisplay::resizeCompleted"/> if this call is made.
14020 </desc>
14021 </param>
14022 <param name="pixelFormat" type="unsigned long" dir="in">
14023 <desc>
14024 Pixel format of the memory buffer pointed to by @a VRAM.
14025 See also <link to="FramebufferPixelFormat"/>.
14026 </desc>
14027 </param>
14028 <param name="VRAM" type="octet" mod="ptr" dir="in">
14029 <desc>Pointer to the virtual video card's VRAM (may be @c null).</desc>
14030 </param>
14031 <param name="bitsPerPixel" type="unsigned long" dir="in">
14032 <desc>Color depth, bits per pixel.</desc>
14033 </param>
14034 <param name="bytesPerLine" type="unsigned long" dir="in">
14035 <desc>Size of one scan line, in bytes.</desc>
14036 </param>
14037 <param name="width" type="unsigned long" dir="in">
14038 <desc>Width of the guest display, in pixels.</desc>
14039 </param>
14040 <param name="height" type="unsigned long" dir="in">
14041 <desc>Height of the guest display, in pixels.</desc>
14042 </param>
14043 <param name="finished" type="boolean" dir="return">
14044 <desc>
14045 Can the VM start using the new frame buffer immediately
14046 after this method returns or it should wait for
14047 <link to="IDisplay::resizeCompleted"/>.
14048 </desc>
14049 </param>
14050 </method>
14051
14052 <method name="videoModeSupported">
14053 <desc>
14054 Returns whether the frame buffer implementation is willing to
14055 support a given video mode. In case it is not able to render
14056 the video mode (or for some reason not willing), it should
14057 return @c false. Usually this method is called when the guest
14058 asks the VMM device whether a given video mode is supported
14059 so the information returned is directly exposed to the guest.
14060 It is important that this method returns very quickly.
14061 </desc>
14062 <param name="width" type="unsigned long" dir="in"/>
14063 <param name="height" type="unsigned long" dir="in"/>
14064 <param name="bpp" type="unsigned long" dir="in"/>
14065 <param name="supported" type="boolean" dir="return"/>
14066 </method>
14067
14068 <method name="getVisibleRegion">
14069 <desc>
14070 Returns the visible region of this frame buffer.
14071
14072 If the @a rectangles parameter is @c null then the value of the
14073 @a count parameter is ignored and the number of elements necessary to
14074 describe the current visible region is returned in @a countCopied.
14075
14076 If @a rectangles is not @c null but @a count is less
14077 than the required number of elements to store region data, the method
14078 will report a failure. If @a count is equal or greater than the
14079 required number of elements, then the actual number of elements copied
14080 to the provided array will be returned in @a countCopied.
14081
14082 <note>
14083 The address of the provided array must be in the process space of
14084 this IFramebuffer object.
14085 </note>
14086 <note>
14087 Method not yet implemented.
14088 </note>
14089 </desc>
14090 <param name="rectangles" type="octet" mod="ptr" dir="in">
14091 <desc>Pointer to the @c RTRECT array to receive region data.</desc>
14092 </param>
14093 <param name="count" type="unsigned long" dir="in">
14094 <desc>Number of @c RTRECT elements in the @a rectangles array.</desc>
14095 </param>
14096 <param name="countCopied" type="unsigned long" dir="return">
14097 <desc>Number of elements copied to the @a rectangles array.</desc>
14098 </param>
14099 </method>
14100
14101 <method name="setVisibleRegion">
14102 <desc>
14103 Suggests a new visible region to this frame buffer. This region
14104 represents the area of the VM display which is a union of regions of
14105 all top-level windows of the guest operating system running inside the
14106 VM (if the Guest Additions for this system support this
14107 functionality). This information may be used by the frontends to
14108 implement the seamless desktop integration feature.
14109
14110 <note>
14111 The address of the provided array must be in the process space of
14112 this IFramebuffer object.
14113 </note>
14114 <note>
14115 The IFramebuffer implementation must make a copy of the provided
14116 array of rectangles.
14117 </note>
14118 <note>
14119 Method not yet implemented.
14120 </note>
14121 </desc>
14122 <param name="rectangles" type="octet" mod="ptr" dir="in">
14123 <desc>Pointer to the @c RTRECT array.</desc>
14124 </param>
14125 <param name="count" type="unsigned long" dir="in">
14126 <desc>Number of @c RTRECT elements in the @a rectangles array.</desc>
14127 </param>
14128 </method>
14129
14130 <method name="processVHWACommand">
14131 <desc>
14132 Posts a Video HW Acceleration Command to the frame buffer for processing.
14133 The commands used for 2D video acceleration (DDraw surface creation/destroying, blitting, scaling, color conversion, overlaying, etc.)
14134 are posted from quest to the host to be processed by the host hardware.
14135
14136 <note>
14137 The address of the provided command must be in the process space of
14138 this IFramebuffer object.
14139 </note>
14140 </desc>
14141
14142 <param name="command" type="octet" mod="ptr" dir="in">
14143 <desc>Pointer to VBOXVHWACMD containing the command to execute.</desc>
14144 </param>
14145 </method>
14146
14147 </interface>
14148
14149 <interface
14150 name="IFramebufferOverlay" extends="IFramebuffer"
14151 uuid="0bcc1c7e-e415-47d2-bfdb-e4c705fb0f47"
14152 wsmap="suppress"
14153 >
14154 <desc>
14155 The IFramebufferOverlay interface represents an alpha blended overlay
14156 for displaying status icons above an IFramebuffer. It is always created
14157 not visible, so that it must be explicitly shown. It only covers a
14158 portion of the IFramebuffer, determined by its width, height and
14159 co-ordinates. It is always in packed pixel little-endian 32bit ARGB (in
14160 that order) format, and may be written to directly. Do re-read the
14161 width though, after setting it, as it may be adjusted (increased) to
14162 make it more suitable for the front end.
14163 </desc>
14164 <attribute name="x" type="unsigned long" readonly="yes">
14165 <desc>X position of the overlay, relative to the frame buffer.</desc>
14166 </attribute>
14167
14168 <attribute name="y" type="unsigned long" readonly="yes">
14169 <desc>Y position of the overlay, relative to the frame buffer.</desc>
14170 </attribute>
14171
14172 <attribute name="visible" type="boolean" readonly="no">
14173 <desc>
14174 Whether the overlay is currently visible.
14175 </desc>
14176 </attribute>
14177
14178 <attribute name="alpha" type="unsigned long" readonly="no">
14179 <desc>
14180 The global alpha value for the overlay. This may or may not be
14181 supported by a given front end.
14182 </desc>
14183 </attribute>
14184
14185 <method name="move">
14186 <desc>
14187 Changes the overlay's position relative to the IFramebuffer.
14188 </desc>
14189 <param name="x" type="unsigned long" dir="in"/>
14190 <param name="y" type="unsigned long" dir="in"/>
14191 </method>
14192
14193 </interface>
14194
14195 <interface
14196 name="IDisplay" extends="$unknown"
14197 uuid="b83ee395-8679-40ca-8d60-1a0cbe724930"
14198 wsmap="managed"
14199 >
14200 <desc>
14201 The IDisplay interface represents the virtual machine's display.
14202
14203 The object implementing this interface is contained in each
14204 <link to="IConsole::display"/> attribute and represents the visual
14205 output of the virtual machine.
14206
14207 The virtual display supports pluggable output targets represented by the
14208 IFramebuffer interface. Examples of the output target are a window on
14209 the host computer or an RDP session's display on a remote computer.
14210 </desc>
14211 <method name="getScreenResolution">
14212 <desc>Queries display width, height and color depth for given screen.</desc>
14213 <param name="screenId" type="unsigned long" dir="in"/>
14214 <param name="width" type="unsigned long" dir="out"/>
14215 <param name="height" type="unsigned long" dir="out"/>
14216 <param name="bitsPerPixel" type="unsigned long" dir="out"/>
14217 </method>
14218
14219 <method name="setFramebuffer">
14220 <desc>
14221 Sets the framebuffer for given screen.
14222 </desc>
14223 <param name="screenId" type="unsigned long" dir="in"/>
14224 <param name="framebuffer" type="IFramebuffer" dir="in"/>
14225 </method>
14226
14227 <method name="getFramebuffer">
14228 <desc>
14229 Queries the framebuffer for given screen.
14230 </desc>
14231 <param name="screenId" type="unsigned long" dir="in"/>
14232 <param name="framebuffer" type="IFramebuffer" dir="out"/>
14233 <param name="xOrigin" type="long" dir="out"/>
14234 <param name="yOrigin" type="long" dir="out"/>
14235 </method>
14236
14237 <method name="setVideoModeHint">
14238 <desc>
14239 Asks VirtualBox to request the given video mode from
14240 the guest. This is just a hint and it cannot be guaranteed
14241 that the requested resolution will be used. Guest Additions
14242 are required for the request to be seen by guests. The caller
14243 should issue the request and wait for a resolution change and
14244 after a timeout retry.
14245
14246 Specifying @c 0 for either @a width, @a height or @a bitsPerPixel
14247 parameters means that the corresponding values should be taken from the
14248 current video mode (i.e. left unchanged).
14249
14250 If the guest OS supports multi-monitor configuration then the @a display
14251 parameter specifies the number of the guest display to send the hint to:
14252 @c 0 is the primary display, @c 1 is the first secondary and
14253 so on. If the multi-monitor configuration is not supported, @a display
14254 must be @c 0.
14255
14256 <result name="E_INVALIDARG">
14257 The @a display is not associated with any monitor.
14258 </result>
14259
14260 </desc>
14261 <param name="display" type="unsigned long" dir="in">
14262 <desc>
14263 The number of the guest display to send the hint to.
14264 </desc>
14265 </param>
14266 <param name="enabled" type="boolean" dir="in">
14267 <desc>
14268 @c True, if this guest screen is enabled,
14269 @c False otherwise.
14270 </desc>
14271 </param>
14272 <param name="changeOrigin" type="boolean" dir="in">
14273 <desc>
14274 @c True, if the origin of the guest screen should be changed,
14275 @c False otherwise.
14276 </desc>
14277 </param>
14278 <param name="originX" type="long" dir="in">
14279 <desc>
14280 The X origin of the guest screen.
14281 </desc>
14282 </param>
14283 <param name="originY" type="long" dir="in">
14284 <desc>
14285 The Y origin of the guest screen.
14286 </desc>
14287 </param>
14288 <param name="width" type="unsigned long" dir="in"/>
14289 <param name="height" type="unsigned long" dir="in"/>
14290 <param name="bitsPerPixel" type="unsigned long" dir="in"/>
14291 </method>
14292
14293 <method name="setSeamlessMode">
14294 <desc>
14295 Enables or disables seamless guest display rendering (seamless desktop
14296 integration) mode.
14297 <note>
14298 Calling this method has no effect if <link
14299 to="IGuest::getFacilityStatus"/> with facility @c Seamless
14300 does not return @c Active.
14301 </note>
14302 </desc>
14303 <param name="enabled" type="boolean" dir="in"/>
14304 </method>
14305
14306 <method name="takeScreenShot">
14307 <desc>
14308 Takes a screen shot of the requested size and copies it to the
14309 32-bpp buffer allocated by the caller and pointed to by @a address.
14310 A pixel consists of 4 bytes in order: B, G, R, 0.
14311
14312 <note>This API can be used only locally by a VM process through the
14313 COM/XPCOM C++ API as it requires pointer support. It is not
14314 available for scripting langages, Java or any webservice clients.
14315 Unless you are writing a new VM frontend use
14316 <link to="#takeScreenShotToArray" />.
14317 </note>
14318
14319 <result name="E_NOTIMPL">
14320 Feature not implemented.
14321 </result>
14322 <result name="VBOX_E_IPRT_ERROR">
14323 Could not take a screenshot.
14324 </result>
14325
14326 </desc>
14327 <param name="screenId" type="unsigned long" dir="in"/>
14328 <param name="address" type="octet" mod="ptr" dir="in"/>
14329 <param name="width" type="unsigned long" dir="in"/>
14330 <param name="height" type="unsigned long" dir="in"/>
14331 </method>
14332
14333 <method name="takeScreenShotToArray">
14334 <desc>
14335 Takes a guest screen shot of the requested size and returns it as
14336 an array of bytes in uncompressed 32-bit RGBA format.
14337 A pixel consists of 4 bytes in order: R, G, B, 0xFF.
14338
14339 This API is slow, but could be the only option to get guest screenshot
14340 for scriptable languages not allowed to manipulate with addresses
14341 directly.
14342
14343 <result name="E_NOTIMPL">
14344 Feature not implemented.
14345 </result>
14346 <result name="VBOX_E_IPRT_ERROR">
14347 Could not take a screenshot.
14348 </result>
14349 </desc>
14350 <param name="screenId" type="unsigned long" dir="in">
14351 <desc>
14352 Monitor to take screenshot from.
14353 </desc>
14354 </param>
14355 <param name="width" type="unsigned long" dir="in">
14356 <desc>
14357 Desired image width.
14358 </desc>
14359 </param>
14360 <param name="height" type="unsigned long" dir="in">
14361 <desc>
14362 Desired image height.
14363 </desc>
14364 </param>
14365 <param name="screenData" type="octet" dir="return" safearray="yes">
14366 <desc>
14367 Array with resulting screen data.
14368 </desc>
14369 </param>
14370 </method>
14371
14372 <method name="takeScreenShotPNGToArray">
14373 <desc>
14374 Takes a guest screen shot of the requested size and returns it as
14375 PNG image in array.
14376
14377 <result name="E_NOTIMPL">
14378 Feature not implemented.
14379 </result>
14380 <result name="VBOX_E_IPRT_ERROR">
14381 Could not take a screenshot.
14382 </result>
14383 </desc>
14384 <param name="screenId" type="unsigned long" dir="in">
14385 <desc>
14386 Monitor to take the screenshot from.
14387 </desc>
14388 </param>
14389 <param name="width" type="unsigned long" dir="in">
14390 <desc>
14391 Desired image width.
14392 </desc>
14393 </param>
14394 <param name="height" type="unsigned long" dir="in">
14395 <desc>
14396 Desired image height.
14397 </desc>
14398 </param>
14399 <param name="screenData" type="octet" dir="return" safearray="yes">
14400 <desc>
14401 Array with resulting screen data.
14402 </desc>
14403 </param>
14404 </method>
14405
14406 <method name="drawToScreen">
14407 <desc>
14408 Draws a 32-bpp image of the specified size from the given buffer
14409 to the given point on the VM display.
14410
14411 <result name="E_NOTIMPL">
14412 Feature not implemented.
14413 </result>
14414 <result name="VBOX_E_IPRT_ERROR">
14415 Could not draw to screen.
14416 </result>
14417
14418 </desc>
14419 <param name="screenId" type="unsigned long" dir="in">
14420 <desc>
14421 Monitor to take the screenshot from.
14422 </desc>
14423 </param>
14424 <param name="address" type="octet" mod="ptr" dir="in">
14425 <desc>
14426 Address to store the screenshot to
14427 </desc>
14428 </param>
14429 <param name="x" type="unsigned long" dir="in">
14430 <desc>
14431 Relative to the screen top left corner.
14432 </desc>
14433 </param>
14434 <param name="y" type="unsigned long" dir="in">
14435 <desc>
14436 Relative to the screen top left corner.
14437 </desc>
14438 </param>
14439 <param name="width" type="unsigned long" dir="in">
14440 <desc>
14441 Desired image width.
14442 </desc>
14443 </param>
14444 <param name="height" type="unsigned long" dir="in">
14445 <desc>
14446 Desired image height.
14447 </desc>
14448 </param>
14449 </method>
14450
14451 <method name="invalidateAndUpdate">
14452 <desc>
14453 Does a full invalidation of the VM display and instructs the VM
14454 to update it.
14455
14456 <result name="VBOX_E_IPRT_ERROR">
14457 Could not invalidate and update screen.
14458 </result>
14459
14460 </desc>
14461 </method>
14462
14463 <method name="resizeCompleted">
14464 <desc>
14465 Signals that a framebuffer has completed the resize operation.
14466
14467 <result name="VBOX_E_NOT_SUPPORTED">
14468 Operation only valid for external frame buffers.
14469 </result>
14470
14471 </desc>
14472 <param name="screenId" type="unsigned long" dir="in"/>
14473 </method>
14474
14475 <method name="completeVHWACommand">
14476 <desc>
14477 Signals that the Video HW Acceleration command has completed.
14478 </desc>
14479
14480 <param name="command" type="octet" mod="ptr" dir="in">
14481 <desc>Pointer to VBOXVHWACMD containing the completed command.</desc>
14482 </param>
14483 </method>
14484
14485 <method name="viewportChanged">
14486 <desc>
14487 Signals that framebuffer window viewport has changed.
14488
14489 <result name="E_INVALIDARG">
14490 The specified viewport data is invalid.
14491 </result>
14492
14493 </desc>
14494
14495 <param name="screenId" type="unsigned long" dir="in">
14496 <desc>
14497 Monitor to take the screenshot from.
14498 </desc>
14499 </param>
14500 <param name="x" type="unsigned long" dir="in">
14501 <desc>
14502 Framebuffer x offset.
14503 </desc>
14504 </param>
14505 <param name="y" type="unsigned long" dir="in">
14506 <desc>
14507 Framebuffer y offset.
14508 </desc>
14509 </param>
14510 <param name="width" type="unsigned long" dir="in">
14511 <desc>
14512 Viewport width.
14513 </desc>
14514 </param>
14515 <param name="height" type="unsigned long" dir="in">
14516 <desc>
14517 Viewport height.
14518 </desc>
14519 </param>
14520 </method>
14521 </interface>
14522
14523 <!--
14524 // INetworkAdapter
14525 /////////////////////////////////////////////////////////////////////////
14526 -->
14527
14528 <enum
14529 name="NetworkAttachmentType"
14530 uuid="2ac4bc71-6b82-417a-acd1-f7426d2570d6"
14531 >
14532 <desc>
14533 Network attachment type.
14534 </desc>
14535
14536 <const name="Null" value="0">
14537 <desc>Null value, also means "not attached".</desc>
14538 </const>
14539 <const name="NAT" value="1"/>
14540 <const name="Bridged" value="2"/>
14541 <const name="Internal" value="3"/>
14542 <const name="HostOnly" value="4"/>
14543 <const name="Generic" value="5"/>
14544 </enum>
14545
14546 <enum
14547 name="NetworkAdapterType"
14548 uuid="3c2281e4-d952-4e87-8c7d-24379cb6a81c"
14549 >
14550 <desc>
14551 Network adapter type.
14552 </desc>
14553
14554 <const name="Null" value="0">
14555 <desc>Null value (never used by the API).</desc>
14556 </const>
14557 <const name="Am79C970A" value="1">
14558 <desc>AMD PCNet-PCI II network card (Am79C970A).</desc>
14559 </const>
14560 <const name="Am79C973" value="2">
14561 <desc>AMD PCNet-FAST III network card (Am79C973).</desc>
14562 </const>
14563 <const name="I82540EM" value="3">
14564 <desc>Intel PRO/1000 MT Desktop network card (82540EM).</desc>
14565 </const>
14566 <const name="I82543GC" value="4">
14567 <desc>Intel PRO/1000 T Server network card (82543GC).</desc>
14568 </const>
14569 <const name="I82545EM" value="5">
14570 <desc>Intel PRO/1000 MT Server network card (82545EM).</desc>
14571 </const>
14572 <const name="Virtio" value="6">
14573 <desc>Virtio network device.</desc>
14574 </const>
14575 </enum>
14576
14577 <enum
14578 name="NetworkAdapterPromiscModePolicy"
14579 uuid="c963768a-376f-4c85-8d84-d8ced4b7269e"
14580 >
14581 <desc>
14582 The promiscuous mode policy of an interface.
14583 </desc>
14584
14585 <const name="Deny" value="1">
14586 <desc>Deny promiscuous mode requests.</desc>
14587 </const>
14588 <const name="AllowNetwork" value="2">
14589 <desc>
14590 Allow promicuous mode, but restrict the scope it to the internal
14591 network so that it only applies to other VMs.
14592 </desc>
14593 </const>
14594 <const name="AllowAll" value="3">
14595 <desc>
14596 Allow promicuous mode, include unrelated traffic going over the wire
14597 and internally on the host.
14598 </desc>
14599 </const>
14600 </enum>
14601
14602 <interface
14603 name="INetworkAdapter" extends="$unknown"
14604 uuid="efa0f965-63c7-4c60-afdf-b1cc9943b9c0"
14605 wsmap="managed"
14606 >
14607 <desc>
14608 Represents a virtual network adapter that is attached to a virtual machine.
14609 Each virtual machine has a fixed number of network adapter slots with one
14610 instance of this attached to each of them. Call
14611 <link to="IMachine::getNetworkAdapter" /> to get the network adapter that
14612 is attached to a given slot in a given machine.
14613
14614 Each network adapter can be in one of five attachment modes, which are
14615 represented by the <link to="NetworkAttachmentType" /> enumeration;
14616 see the <link to="#attachmentType" /> attribute.
14617 </desc>
14618
14619 <attribute name="adapterType" type="NetworkAdapterType">
14620 <desc>
14621 Type of the virtual network adapter. Depending on this value,
14622 VirtualBox will provide a different virtual network hardware
14623 to the guest.
14624 </desc>
14625 </attribute>
14626
14627 <attribute name="slot" type="unsigned long" readonly="yes">
14628 <desc>
14629 Slot number this adapter is plugged into. Corresponds to
14630 the value you pass to <link to="IMachine::getNetworkAdapter"/>
14631 to obtain this instance.
14632 </desc>
14633 </attribute>
14634
14635 <attribute name="enabled" type="boolean">
14636 <desc>
14637 Flag whether the network adapter is present in the
14638 guest system. If disabled, the virtual guest hardware will
14639 not contain this network adapter. Can only be changed when
14640 the VM is not running.
14641 </desc>
14642 </attribute>
14643
14644 <attribute name="MACAddress" type="wstring">
14645 <desc>
14646 Ethernet MAC address of the adapter, 12 hexadecimal characters. When setting
14647 it to @c null or an empty string, VirtualBox will generate a unique MAC address.
14648 </desc>
14649 </attribute>
14650
14651 <attribute name="attachmentType" type="NetworkAttachmentType">
14652 <desc>
14653 Sets/Gets network attachment type of this network adapter.
14654 </desc>
14655 </attribute>
14656
14657 <attribute name="bridgedInterface" type="wstring">
14658 <desc>
14659 Name of the network interface the VM should be bridged to.
14660 </desc>
14661 </attribute>
14662
14663 <attribute name="hostOnlyInterface" type="wstring">
14664 <desc>
14665 Name of the host only network interface the VM is attached to.
14666 </desc>
14667 </attribute>
14668
14669 <attribute name="internalNetwork" type="wstring">
14670 <desc>
14671 Name of the internal network the VM is attached to.
14672 </desc>
14673 </attribute>
14674
14675 <attribute name="NATNetwork" type="wstring">
14676 <desc>
14677 Name of the NAT network the VM is attached to.
14678 </desc>
14679 </attribute>
14680
14681 <attribute name="genericDriver" type="wstring">
14682 <desc>
14683 Name of the driver to use for the "Generic" network attachment type.
14684 </desc>
14685 </attribute>
14686
14687 <attribute name="cableConnected" type="boolean">
14688 <desc>
14689 Flag whether the adapter reports the cable as connected or not.
14690 It can be used to report offline situations to a VM.
14691 </desc>
14692 </attribute>
14693
14694 <attribute name="lineSpeed" type="unsigned long">
14695 <desc>
14696 Line speed reported by custom drivers, in units of 1 kbps.
14697 </desc>
14698 </attribute>
14699
14700 <attribute name="promiscModePolicy" type="NetworkAdapterPromiscModePolicy">
14701 <desc>
14702 The promiscuous mode policy of the network adapter when attached to an
14703 internal network, host only network or a bridge.
14704 </desc>
14705 </attribute>
14706
14707 <attribute name="traceEnabled" type="boolean">
14708 <desc>
14709 Flag whether network traffic from/to the network card should be traced.
14710 Can only be toggled when the VM is turned off.
14711 </desc>
14712 </attribute>
14713
14714 <attribute name="traceFile" type="wstring">
14715 <desc>
14716 Filename where a network trace will be stored. If not set, VBox-pid.pcap
14717 will be used.
14718 </desc>
14719 </attribute>
14720
14721 <attribute name="NATEngine" type="INATEngine" readonly="yes">
14722 <desc>
14723 Points to the NAT engine which handles the network address translation
14724 for this interface. This is active only when the interface actually uses
14725 NAT.
14726 </desc>
14727 </attribute>
14728
14729 <attribute name="bootPriority" type="unsigned long">
14730 <desc>
14731 Network boot priority of the adapter. Priority 1 is highest. If not set,
14732 the priority is considered to be at the lowest possible setting.
14733 </desc>
14734 </attribute>
14735
14736 <attribute name="bandwidthGroup" type="IBandwidthGroup">
14737 <desc>The bandwidth group this network adapter is assigned to.</desc>
14738 </attribute>
14739
14740 <!-- property methods -->
14741
14742 <method name="getProperty" const="yes">
14743 <desc>
14744 Returns the value of the network attachment property with the given name.
14745
14746 If the requested data @a key does not exist, this function will
14747 succeed and return an empty string in the @a value argument.
14748
14749 <result name="E_INVALIDARG">@a name is @c null or empty.</result>
14750 </desc>
14751 <param name="key" type="wstring" dir="in">
14752 <desc>Name of the property to get.</desc>
14753 </param>
14754 <param name="value" type="wstring" dir="return">
14755 <desc>Current property value.</desc>
14756 </param>
14757 </method>
14758
14759 <method name="setProperty">
14760 <desc>
14761 Sets the value of the network attachment property with the given name.
14762
14763 Setting the property value to @c null or an empty string is equivalent
14764 to deleting the existing value.
14765
14766 <result name="E_INVALIDARG">@a name is @c null or empty.</result>
14767 </desc>
14768 <param name="key" type="wstring" dir="in">
14769 <desc>Name of the property to set.</desc>
14770 </param>
14771 <param name="value" type="wstring" dir="in">
14772 <desc>Property value to set.</desc>
14773 </param>
14774 </method>
14775
14776 <method name="getProperties" const="yes">
14777 <desc>
14778 Returns values for a group of properties in one call.
14779
14780 The names of the properties to get are specified using the @a names
14781 argument which is a list of comma-separated property names or
14782 an empty string if all properties are to be returned.
14783 <note>Currently the value of this argument is ignored and the method
14784 always returns all existing properties.</note>
14785
14786 The method returns two arrays, the array of property names corresponding
14787 to the @a names argument and the current values of these properties.
14788 Both arrays have the same number of elements with each element at the
14789 given index in the first array corresponds to an element at the same
14790 index in the second array.
14791 </desc>
14792 <param name="names" type="wstring" dir="in">
14793 <desc>
14794 Names of properties to get.
14795 </desc>
14796 </param>
14797 <param name="returnNames" type="wstring" safearray="yes" dir="out">
14798 <desc>Names of returned properties.</desc>
14799 </param>
14800 <param name="returnValues" type="wstring" safearray="yes" dir="return">
14801 <desc>Values of returned properties.</desc>
14802 </param>
14803 </method>
14804
14805 </interface>
14806
14807
14808 <!--
14809 // ISerialPort
14810 /////////////////////////////////////////////////////////////////////////
14811 -->
14812
14813 <enum
14814 name="PortMode"
14815 uuid="533b5fe3-0185-4197-86a7-17e37dd39d76"
14816 >
14817 <desc>
14818 The PortMode enumeration represents possible communication modes for
14819 the virtual serial port device.
14820 </desc>
14821
14822 <const name="Disconnected" value="0">
14823 <desc>Virtual device is not attached to any real host device.</desc>
14824 </const>
14825 <const name="HostPipe" value="1">
14826 <desc>Virtual device is attached to a host pipe.</desc>
14827 </const>
14828 <const name="HostDevice" value="2">
14829 <desc>Virtual device is attached to a host device.</desc>
14830 </const>
14831 <const name="RawFile" value="3">
14832 <desc>Virtual device is attached to a raw file.</desc>
14833 </const>
14834 </enum>
14835
14836 <interface
14837 name="ISerialPort" extends="$unknown"
14838 uuid="937f6970-5103-4745-b78e-d28dcf1479a8"
14839 wsmap="managed"
14840 >
14841
14842 <desc>
14843 The ISerialPort interface represents the virtual serial port device.
14844
14845 The virtual serial port device acts like an ordinary serial port
14846 inside the virtual machine. This device communicates to the real
14847 serial port hardware in one of two modes: host pipe or host device.
14848
14849 In host pipe mode, the #path attribute specifies the path to the pipe on
14850 the host computer that represents a serial port. The #server attribute
14851 determines if this pipe is created by the virtual machine process at
14852 machine startup or it must already exist before starting machine
14853 execution.
14854
14855 In host device mode, the #path attribute specifies the name of the
14856 serial port device on the host computer.
14857
14858 There is also a third communication mode: the disconnected mode. In this
14859 mode, the guest OS running inside the virtual machine will be able to
14860 detect the serial port, but all port write operations will be discarded
14861 and all port read operations will return no data.
14862
14863 <see><link to="IMachine::getSerialPort"/></see>
14864 </desc>
14865
14866 <attribute name="slot" type="unsigned long" readonly="yes">
14867 <desc>
14868 Slot number this serial port is plugged into. Corresponds to
14869 the value you pass to <link to="IMachine::getSerialPort"/>
14870 to obtain this instance.
14871 </desc>
14872 </attribute>
14873
14874 <attribute name="enabled" type="boolean">
14875 <desc>
14876 Flag whether the serial port is enabled. If disabled,
14877 the serial port will not be reported to the guest OS.
14878 </desc>
14879 </attribute>
14880
14881 <attribute name="IOBase" type="unsigned long">
14882 <desc>Base I/O address of the serial port.</desc>
14883 </attribute>
14884
14885 <attribute name="IRQ" type="unsigned long">
14886 <desc>IRQ number of the serial port.</desc>
14887 </attribute>
14888
14889 <attribute name="hostMode" type="PortMode">
14890 <desc>
14891 How is this port connected to the host.
14892 <note>
14893 Changing this attribute may fail if the conditions for
14894 <link to="#path"/> are not met.
14895 </note>
14896 </desc>
14897 </attribute>
14898
14899 <attribute name="server" type="boolean">
14900 <desc>
14901 Flag whether this serial port acts as a server (creates a new pipe on
14902 the host) or as a client (uses the existing pipe). This attribute is
14903 used only when <link to="#hostMode"/> is PortMode_HostPipe.
14904 </desc>
14905 </attribute>
14906
14907 <attribute name="path" type="wstring">
14908 <desc>
14909 Path to the serial port's pipe on the host when <link to="ISerialPort::hostMode"/> is
14910 PortMode_HostPipe, or the host serial device name when
14911 <link to="ISerialPort::hostMode"/> is PortMode_HostDevice. For both
14912 cases, setting a @c null or empty string as the attribute's value
14913 is an error. Otherwise, the value of this property is ignored.
14914 </desc>
14915 </attribute>
14916
14917 </interface>
14918
14919 <!--
14920 // IParallelPort
14921 /////////////////////////////////////////////////////////////////////////
14922 -->
14923
14924 <interface
14925 name="IParallelPort" extends="$unknown"
14926 uuid="0c925f06-dd10-4b77-8de8-294d738c3214"
14927 wsmap="managed"
14928 >
14929
14930 <desc>
14931 The IParallelPort interface represents the virtual parallel port device.
14932
14933 The virtual parallel port device acts like an ordinary parallel port
14934 inside the virtual machine. This device communicates to the real
14935 parallel port hardware using the name of the parallel device on the host
14936 computer specified in the #path attribute.
14937
14938 Each virtual parallel port device is assigned a base I/O address and an
14939 IRQ number that will be reported to the guest operating system and used
14940 to operate the given parallel port from within the virtual machine.
14941
14942 <see><link to="IMachine::getParallelPort"/></see>
14943 </desc>
14944
14945 <attribute name="slot" type="unsigned long" readonly="yes">
14946 <desc>
14947 Slot number this parallel port is plugged into. Corresponds to
14948 the value you pass to <link to="IMachine::getParallelPort"/>
14949 to obtain this instance.
14950 </desc>
14951 </attribute>
14952
14953 <attribute name="enabled" type="boolean">
14954 <desc>
14955 Flag whether the parallel port is enabled. If disabled,
14956 the parallel port will not be reported to the guest OS.
14957 </desc>
14958 </attribute>
14959
14960 <attribute name="IOBase" type="unsigned long">
14961 <desc>Base I/O address of the parallel port.</desc>
14962 </attribute>
14963
14964 <attribute name="IRQ" type="unsigned long">
14965 <desc>IRQ number of the parallel port.</desc>
14966 </attribute>
14967
14968 <attribute name="path" type="wstring">
14969 <desc>
14970 Host parallel device name. If this parallel port is enabled, setting a
14971 @c null or an empty string as this attribute's value will result in
14972 an error.
14973 </desc>
14974 </attribute>
14975
14976 </interface>
14977
14978
14979 <!--
14980 // IMachineDebugger
14981 /////////////////////////////////////////////////////////////////////////
14982 -->
14983
14984 <interface
14985 name="IMachineDebugger" extends="$unknown"
14986 uuid="a9abbb7c-d678-43b2-bed2-19ec0e32303d"
14987 wsmap="suppress"
14988 >
14989 <method name="dumpGuestCore">
14990 <desc>
14991 Takes a core dump of the guest.
14992
14993 See include/VBox/dbgfcorefmt.h for details on the file format.
14994 </desc>
14995 <param name="filename" type="wstring" dir="in">
14996 <desc>
14997 The name of the output file. The file must not exist.
14998 </desc>
14999 </param>
15000 <param name="compression" type="wstring" dir="in">
15001 <desc>
15002 Reserved for future compression method indicator.
15003 </desc>
15004 </param>
15005 </method>
15006
15007 <method name="dumpHostProcessCore">
15008 <desc>
15009 Takes a core dump of the VM process on the host.
15010
15011 This feature is not implemented in the 4.0.0 release but it may show up
15012 in a dot release.
15013 </desc>
15014 <param name="filename" type="wstring" dir="in">
15015 <desc>
15016 The name of the output file. The file must not exist.
15017 </desc>
15018 </param>
15019 <param name="compression" type="wstring" dir="in">
15020 <desc>
15021 Reserved for future compression method indicator.
15022 </desc>
15023 </param>
15024 </method>
15025
15026 <method name="info">
15027 <desc>
15028 Interfaces with the info dumpers (DBGFInfo).
15029
15030 This feature is not implemented in the 4.0.0 release but it may show up
15031 in a dot release.
15032 </desc>
15033 <param name="name" type="wstring" dir="in">
15034 <desc>
15035 The name of the info item.
15036 </desc>
15037 </param>
15038 <param name="args" type="wstring" dir="in">
15039 <desc>
15040 Arguments to the info dumper.
15041 </desc>
15042 </param>
15043 <param name="info" type="wstring" dir="return">
15044 <desc>
15045 The into string.
15046 </desc>
15047 </param>
15048 </method>
15049
15050 <method name="injectNMI">
15051 <desc>
15052 Inject an NMI into a running VT-x/AMD-V VM.
15053 </desc>
15054 </method>
15055
15056 <method name="modifyLogGroups">
15057 <desc>
15058 Modifies the group settings of the debug or release logger.
15059 </desc>
15060 <param name="settings" type="wstring" dir="in">
15061 <desc>
15062 The group settings string. See iprt/log.h for details. To target the
15063 release logger, prefix the string with "release:".
15064 </desc>
15065 </param>
15066 </method>
15067
15068 <method name="modifyLogFlags">
15069 <desc>
15070 Modifies the debug or release logger flags.
15071 </desc>
15072 <param name="settings" type="wstring" dir="in">
15073 <desc>
15074 The flags settings string. See iprt/log.h for details. To target the
15075 release logger, prefix the string with "release:".
15076 </desc>
15077 </param>
15078 </method>
15079
15080 <method name="modifyLogDestinations">
15081 <desc>
15082 Modifies the debug or release logger destinations.
15083 </desc>
15084 <param name="settings" type="wstring" dir="in">
15085 <desc>
15086 The destination settings string. See iprt/log.h for details. To target the
15087 release logger, prefix the string with "release:".
15088 </desc>
15089 </param>
15090 </method>
15091
15092 <method name="readPhysicalMemory">
15093 <desc>
15094 Reads guest physical memory, no side effects (MMIO++).
15095
15096 This feature is not implemented in the 4.0.0 release but may show up
15097 in a dot release.
15098 </desc>
15099 <param name="address" type="long long" dir="in">
15100 <desc>The guest physical address.</desc>
15101 </param>
15102 <param name="size" type="unsigned long" dir="in">
15103 <desc>The number of bytes to read.</desc>
15104 </param>
15105 <param name="bytes" type="octet" safearray="yes" dir="return">
15106 <desc>The bytes read.</desc>
15107 </param>
15108 </method>
15109
15110 <method name="writePhysicalMemory">
15111 <desc>
15112 Writes guest physical memory, access handles (MMIO++) are ignored.
15113
15114 This feature is not implemented in the 4.0.0 release but may show up
15115 in a dot release.
15116 </desc>
15117 <param name="address" type="long long" dir="in">
15118 <desc>The guest physical address.</desc>
15119 </param>
15120 <param name="size" type="unsigned long" dir="in">
15121 <desc>The number of bytes to read.</desc>
15122 </param>
15123 <param name="bytes" type="octet" safearray="yes" dir="in">
15124 <desc>The bytes to write.</desc>
15125 </param>
15126 </method>
15127
15128 <method name="readVirtualMemory">
15129 <desc>
15130 Reads guest virtual memory, no side effects (MMIO++).
15131
15132 This feature is not implemented in the 4.0.0 release but may show up
15133 in a dot release.
15134 </desc>
15135 <param name="cpuId" type="unsigned long" dir="in">
15136 <desc>The identifier of the Virtual CPU.</desc>
15137 </param>
15138 <param name="address" type="long long" dir="in">
15139 <desc>The guest virtual address.</desc>
15140 </param>
15141 <param name="size" type="unsigned long" dir="in">
15142 <desc>The number of bytes to read.</desc>
15143 </param>
15144 <param name="bytes" type="octet" safearray="yes" dir="return">
15145 <desc>The bytes read.</desc>
15146 </param>
15147 </method>
15148
15149 <method name="writeVirtualMemory">
15150 <desc>
15151 Writes guest virtual memory, access handles (MMIO++) are ignored.
15152
15153 This feature is not implemented in the 4.0.0 release but may show up
15154 in a dot release.
15155 </desc>
15156 <param name="cpuId" type="unsigned long" dir="in">
15157 <desc>The identifier of the Virtual CPU.</desc>
15158 </param>
15159 <param name="address" type="long long" dir="in">
15160 <desc>The guest virtual address.</desc>
15161 </param>
15162 <param name="size" type="unsigned long" dir="in">
15163 <desc>The number of bytes to read.</desc>
15164 </param>
15165 <param name="bytes" type="octet" safearray="yes" dir="in">
15166 <desc>The bytes to write.</desc>
15167 </param>
15168 </method>
15169
15170 <method name="detectOS">
15171 <desc>
15172 Tries to (re-)detect the guest OS kernel.
15173
15174 This feature is not implemented in the 4.0.0 release but may show up
15175 in a dot release.
15176 </desc>
15177 <param name="os" type="wstring" dir="return">
15178 <desc>
15179 The detected OS kernel on success.
15180 </desc>
15181 </param>
15182 </method>
15183
15184 <method name="getRegister">
15185 <desc>
15186 Gets one register.
15187
15188 This feature is not implemented in the 4.0.0 release but may show up
15189 in a dot release.
15190 </desc>
15191 <param name="cpuId" type="unsigned long" dir="in">
15192 <desc>The identifier of the Virtual CPU.</desc>
15193 </param>
15194 <param name="name" type="wstring" dir="in">
15195 <desc>The register name, case is ignored.</desc>
15196 </param>
15197 <param name="value" type="wstring" dir="return">
15198 <desc>
15199 The register value. This is usually a hex value (always 0x prefixed)
15200 but other format may be used for floating point registers (TBD).
15201 </desc>
15202 </param>
15203 </method>
15204
15205 <method name="getRegisters">
15206 <desc>
15207 Gets all the registers for the given CPU.
15208
15209 This feature is not implemented in the 4.0.0 release but may show up
15210 in a dot release.
15211 </desc>
15212 <param name="cpuId" type="unsigned long" dir="in">
15213 <desc>The identifier of the Virtual CPU.</desc>
15214 </param>
15215 <param name="names" type="wstring" dir="out" safearray="yes">
15216 <desc>Array containing the lowercase register names.</desc>
15217 </param>
15218 <param name="values" type="wstring" dir="out" safearray="yes">
15219 <desc>
15220 Array paralell to the names holding the register values as if the
15221 register was returned by <link to="IMachineDebugger::getRegister"/>.
15222 </desc>
15223 </param>
15224 </method>
15225
15226 <method name="setRegister">
15227 <desc>
15228 Gets one register.
15229
15230 This feature is not implemented in the 4.0.0 release but may show up
15231 in a dot release.
15232 </desc>
15233 <param name="cpuId" type="unsigned long" dir="in">
15234 <desc>The identifier of the Virtual CPU.</desc>
15235 </param>
15236 <param name="name" type="wstring" dir="in">
15237 <desc>The register name, case is ignored.</desc>
15238 </param>
15239 <param name="value" type="wstring" dir="in">
15240 <desc>
15241 The new register value. Hexadecimal, decimal and octal formattings
15242 are supported in addition to any special formattings returned by
15243 the getters.
15244 </desc>
15245 </param>
15246 </method>
15247
15248 <method name="setRegisters">
15249 <desc>
15250 Sets zero or more registers atomically.
15251
15252 This feature is not implemented in the 4.0.0 release but may show up
15253 in a dot release.
15254 </desc>
15255 <param name="cpuId" type="unsigned long" dir="in">
15256 <desc>The identifier of the Virtual CPU.</desc>
15257 </param>
15258 <param name="names" type="wstring" dir="in" safearray="yes">
15259 <desc>Array containing the register names, case ignored.</desc>
15260 </param>
15261 <param name="values" type="wstring" dir="in" safearray="yes">
15262 <desc>
15263 Array paralell to the names holding the register values. See
15264 <link to="IMachineDebugger::setRegister"/> for formatting
15265 guidelines.
15266 </desc>
15267 </param>
15268 </method>
15269
15270 <method name="dumpGuestStack">
15271 <desc>
15272 Produce a simple stack dump using the current guest state.
15273
15274 This feature is not implemented in the 4.0.0 release but may show up
15275 in a dot release.
15276 </desc>
15277 <param name="cpuId" type="unsigned long" dir="in">
15278 <desc>The identifier of the Virtual CPU.</desc>
15279 </param>
15280 <param name="stack" type="wstring" dir="return">
15281 <desc>String containing the formatted stack dump.</desc>
15282 </param>
15283 </method>
15284
15285 <method name="resetStats">
15286 <desc>
15287 Reset VM statistics.
15288 </desc>
15289 <param name="pattern" type="wstring" dir="in">
15290 <desc>The selection pattern. A bit similar to filename globbing.</desc>
15291 </param>
15292 </method>
15293
15294 <method name="dumpStats">
15295 <desc>
15296 Dumps VM statistics.
15297 </desc>
15298 <param name="pattern" type="wstring" dir="in">
15299 <desc>The selection pattern. A bit similar to filename globbing.</desc>
15300 </param>
15301 </method>
15302
15303 <method name="getStats">
15304 <desc>
15305 Get the VM statistics in a XMLish format.
15306 </desc>
15307 <param name="pattern" type="wstring" dir="in">
15308 <desc>The selection pattern. A bit similar to filename globbing.</desc>
15309 </param>
15310 <param name="withDescriptions" type="boolean" dir="in">
15311 <desc>Whether to include the descriptions.</desc>
15312 </param>
15313 <param name="stats" type="wstring" dir="out">
15314 <desc>The XML document containing the statistics.</desc>
15315 </param>
15316 </method>
15317
15318 <attribute name="singleStep" type="boolean">
15319 <desc>Switch for enabling single-stepping.</desc>
15320 </attribute>
15321
15322 <attribute name="recompileUser" type="boolean">
15323 <desc>Switch for forcing code recompilation for user mode code.</desc>
15324 </attribute>
15325
15326 <attribute name="recompileSupervisor" type="boolean">
15327 <desc>Switch for forcing code recompilation for supervisor mode code.</desc>
15328 </attribute>
15329
15330 <attribute name="PATMEnabled" type="boolean">
15331 <desc>Switch for enabling and disabling the PATM component.</desc>
15332 </attribute>
15333
15334 <attribute name="CSAMEnabled" type="boolean">
15335 <desc>Switch for enabling and disabling the CSAM component.</desc>
15336 </attribute>
15337
15338 <attribute name="logEnabled" type="boolean">
15339 <desc>Switch for enabling and disabling the debug logger.</desc>
15340 </attribute>
15341
15342 <attribute name="logDbgFlags" type="wstring" readonly="yes">
15343 <desc>The debug logger flags.</desc>
15344 </attribute>
15345
15346 <attribute name="logDbgGroups" type="wstring" readonly="yes">
15347 <desc>The debug logger's group settings.</desc>
15348 </attribute>
15349
15350 <attribute name="logDbgDestinations" type="wstring" readonly="yes">
15351 <desc>The debug logger's destination settings.</desc>
15352 </attribute>
15353
15354 <attribute name="logRelFlags" type="wstring" readonly="yes">
15355 <desc>The release logger flags.</desc>
15356 </attribute>
15357
15358 <attribute name="logRelGroups" type="wstring" readonly="yes">
15359 <desc>The release logger's group settings.</desc>
15360 </attribute>
15361
15362 <attribute name="logRelDestinations" type="wstring" readonly="yes">
15363 <desc>The relase logger's destination settings.</desc>
15364 </attribute>
15365
15366 <attribute name="HWVirtExEnabled" type="boolean" readonly="yes">
15367 <desc>
15368 Flag indicating whether the VM is currently making use of CPU hardware
15369 virtualization extensions.
15370 </desc>
15371 </attribute>
15372
15373 <attribute name="HWVirtExNestedPagingEnabled" type="boolean" readonly="yes">
15374 <desc>
15375 Flag indicating whether the VM is currently making use of the nested paging
15376 CPU hardware virtualization extension.
15377 </desc>
15378 </attribute>
15379
15380 <attribute name="HWVirtExVPIDEnabled" type="boolean" readonly="yes">
15381 <desc>
15382 Flag indicating whether the VM is currently making use of the VPID
15383 VT-x extension.
15384 </desc>
15385 </attribute>
15386
15387 <attribute name="OSName" type="wstring" readonly="yes">
15388 <desc>
15389 Query the guest OS kernel name as detected by the DBGF.
15390
15391 This feature is not implemented in the 4.0.0 release but may show up
15392 in a dot release.
15393 </desc>
15394 </attribute>
15395
15396 <attribute name="OSVersion" type="wstring" readonly="yes">
15397 <desc>
15398 Query the guest OS kernel version string as detected by the DBGF.
15399
15400 This feature is not implemented in the 4.0.0 release but may show up
15401 in a dot release.
15402 </desc>
15403 </attribute>
15404
15405 <attribute name="PAEEnabled" type="boolean" readonly="yes">
15406 <desc>
15407 Flag indicating whether the VM is currently making use of the Physical
15408 Address Extension CPU feature.
15409 </desc>
15410 </attribute>
15411
15412 <attribute name="virtualTimeRate" type="unsigned long">
15413 <desc>
15414 The rate at which the virtual time runs expressed as a percentage.
15415 The accepted range is 2% to 20000%.
15416 </desc>
15417 </attribute>
15418
15419 <attribute name="VM" type="long long" readonly="yes">
15420 <desc>
15421 Gets the VM handle. This is only for internal use while
15422 we carve the details of this interface.
15423 </desc>
15424 </attribute>
15425
15426 </interface>
15427
15428 <!--
15429 // IUSBController
15430 /////////////////////////////////////////////////////////////////////////
15431 -->
15432
15433 <interface
15434 name="IUSBController" extends="$unknown"
15435 uuid="01e6f13a-0580-452f-a40f-74e32a5e4921"
15436 wsmap="managed"
15437 >
15438 <attribute name="enabled" type="boolean">
15439 <desc>
15440 Flag whether the USB controller is present in the
15441 guest system. If disabled, the virtual guest hardware will
15442 not contain any USB controller. Can only be changed when
15443 the VM is powered off.
15444 </desc>
15445 </attribute>
15446
15447 <attribute name="enabledEHCI" type="boolean">
15448 <desc>
15449 Flag whether the USB EHCI controller is present in the
15450 guest system. If disabled, the virtual guest hardware will
15451 not contain a USB EHCI controller. Can only be changed when
15452 the VM is powered off.
15453 </desc>
15454 </attribute>
15455
15456 <attribute name="proxyAvailable" type="boolean" readonly="yes">
15457 <desc>
15458 Flag whether there is an USB proxy available.
15459 </desc>
15460 </attribute>
15461
15462 <attribute name="USBStandard" type="unsigned short" readonly="yes">
15463 <desc>
15464 USB standard version which the controller implements.
15465 This is a BCD which means that the major version is in the
15466 high byte and minor version is in the low byte.
15467 </desc>
15468 </attribute>
15469
15470 <attribute name="deviceFilters" type="IUSBDeviceFilter" readonly="yes" safearray="yes">
15471 <desc>
15472 List of USB device filters associated with the machine.
15473
15474 If the machine is currently running, these filters are activated
15475 every time a new (supported) USB device is attached to the host
15476 computer that was not ignored by global filters
15477 (<link to="IHost::USBDeviceFilters"/>).
15478
15479 These filters are also activated when the machine is powered up.
15480 They are run against a list of all currently available USB
15481 devices (in states
15482 <link to="USBDeviceState_Available"/>,
15483 <link to="USBDeviceState_Busy"/>,
15484 <link to="USBDeviceState_Held"/>) that were not previously
15485 ignored by global filters.
15486
15487 If at least one filter matches the USB device in question, this
15488 device is automatically captured (attached to) the virtual USB
15489 controller of this machine.
15490
15491 <see><link to="IUSBDeviceFilter"/>, <link to="IUSBController"/></see>
15492 </desc>
15493 </attribute>
15494
15495 <method name="createDeviceFilter">
15496 <desc>
15497 Creates a new USB device filter. All attributes except
15498 the filter name are set to empty (any match),
15499 <i>active</i> is @c false (the filter is not active).
15500
15501 The created filter can then be added to the list of filters using
15502 <link to="#insertDeviceFilter"/>.
15503
15504 <result name="VBOX_E_INVALID_VM_STATE">
15505 The virtual machine is not mutable.
15506 </result>
15507
15508 <see><link to="#deviceFilters"/></see>
15509 </desc>
15510 <param name="name" type="wstring" dir="in">
15511 <desc>
15512 Filter name. See <link to="IUSBDeviceFilter::name"/>
15513 for more info.
15514 </desc>
15515 </param>
15516 <param name="filter" type="IUSBDeviceFilter" dir="return">
15517 <desc>Created filter object.</desc>
15518 </param>
15519 </method>
15520
15521 <method name="insertDeviceFilter">
15522 <desc>
15523 Inserts the given USB device to the specified position
15524 in the list of filters.
15525
15526 Positions are numbered starting from <tt>0</tt>. If the specified
15527 position is equal to or greater than the number of elements in
15528 the list, the filter is added to the end of the collection.
15529
15530 <note>
15531 Duplicates are not allowed, so an attempt to insert a
15532 filter that is already in the collection, will return an
15533 error.
15534 </note>
15535
15536 <result name="VBOX_E_INVALID_VM_STATE">
15537 Virtual machine is not mutable.
15538 </result>
15539 <result name="E_INVALIDARG">
15540 USB device filter not created within this VirtualBox instance.
15541 </result>
15542 <result name="VBOX_E_INVALID_OBJECT_STATE">
15543 USB device filter already in list.
15544 </result>
15545
15546 <see><link to="#deviceFilters"/></see>
15547 </desc>
15548 <param name="position" type="unsigned long" dir="in">
15549 <desc>Position to insert the filter to.</desc>
15550 </param>
15551 <param name="filter" type="IUSBDeviceFilter" dir="in">
15552 <desc>USB device filter to insert.</desc>
15553 </param>
15554 </method>
15555
15556 <method name="removeDeviceFilter">
15557 <desc>
15558 Removes a USB device filter from the specified position in the
15559 list of filters.
15560
15561 Positions are numbered starting from <tt>0</tt>. Specifying a
15562 position equal to or greater than the number of elements in
15563 the list will produce an error.
15564
15565 <see><link to="#deviceFilters"/></see>
15566
15567 <result name="VBOX_E_INVALID_VM_STATE">
15568 Virtual machine is not mutable.
15569 </result>
15570 <result name="E_INVALIDARG">
15571 USB device filter list empty or invalid @a position.
15572 </result>
15573
15574 </desc>
15575 <param name="position" type="unsigned long" dir="in">
15576 <desc>Position to remove the filter from.</desc>
15577 </param>
15578 <param name="filter" type="IUSBDeviceFilter" dir="return">
15579 <desc>Removed USB device filter.</desc>
15580 </param>
15581 </method>
15582
15583 </interface>
15584
15585
15586 <!--
15587 // IUSBDevice
15588 /////////////////////////////////////////////////////////////////////////
15589 -->
15590
15591 <interface
15592 name="IUSBDevice" extends="$unknown"
15593 uuid="f8967b0b-4483-400f-92b5-8b675d98a85b"
15594 wsmap="managed"
15595 >
15596 <desc>
15597 The IUSBDevice interface represents a virtual USB device attached to the
15598 virtual machine.
15599
15600 A collection of objects implementing this interface is stored in the
15601 <link to="IConsole::USBDevices"/> attribute which lists all USB devices
15602 attached to a running virtual machine's USB controller.
15603 </desc>
15604
15605 <attribute name="id" type="uuid" mod="string" readonly="yes">
15606 <desc>
15607 Unique USB device ID. This ID is built from #vendorId,
15608 #productId, #revision and #serialNumber.
15609 </desc>
15610 </attribute>
15611
15612 <attribute name="vendorId" type="unsigned short" readonly="yes">
15613 <desc>Vendor ID.</desc>
15614 </attribute>
15615
15616 <attribute name="productId" type="unsigned short" readonly="yes">
15617 <desc>Product ID.</desc>
15618 </attribute>
15619
15620 <attribute name="revision" type="unsigned short" readonly="yes">
15621 <desc>
15622 Product revision number. This is a packed BCD represented as
15623 unsigned short. The high byte is the integer part and the low
15624 byte is the decimal.
15625 </desc>
15626 </attribute>
15627
15628 <attribute name="manufacturer" type="wstring" readonly="yes">
15629 <desc>Manufacturer string.</desc>
15630 </attribute>
15631
15632 <attribute name="product" type="wstring" readonly="yes">
15633 <desc>Product string.</desc>
15634 </attribute>
15635
15636 <attribute name="serialNumber" type="wstring" readonly="yes">
15637 <desc>Serial number string.</desc>
15638 </attribute>
15639
15640 <attribute name="address" type="wstring" readonly="yes">
15641 <desc>Host specific address of the device.</desc>
15642 </attribute>
15643
15644 <attribute name="port" type="unsigned short" readonly="yes">
15645 <desc>
15646 Host USB port number the device is physically
15647 connected to.
15648 </desc>
15649 </attribute>
15650
15651 <attribute name="version" type="unsigned short" readonly="yes">
15652 <desc>
15653 The major USB version of the device - 1 or 2.
15654 </desc>
15655 </attribute>
15656
15657 <attribute name="portVersion" type="unsigned short" readonly="yes">
15658 <desc>
15659 The major USB version of the host USB port the device is
15660 physically connected to - 1 or 2. For devices not connected to
15661 anything this will have the same value as the version attribute.
15662 </desc>
15663 </attribute>
15664
15665 <attribute name="remote" type="boolean" readonly="yes">
15666 <desc>
15667 Whether the device is physically connected to a remote VRDE
15668 client or to a local host machine.
15669 </desc>
15670 </attribute>
15671
15672 </interface>
15673
15674
15675 <!--
15676 // IUSBDeviceFilter
15677 /////////////////////////////////////////////////////////////////////////
15678 -->
15679
15680 <interface
15681 name="IUSBDeviceFilter" extends="$unknown"
15682 uuid="d6831fb4-1a94-4c2c-96ef-8d0d6192066d"
15683 wsmap="managed"
15684 >
15685 <desc>
15686 The IUSBDeviceFilter interface represents an USB device filter used
15687 to perform actions on a group of USB devices.
15688
15689 This type of filters is used by running virtual machines to
15690 automatically capture selected USB devices once they are physically
15691 attached to the host computer.
15692
15693 A USB device is matched to the given device filter if and only if all
15694 attributes of the device match the corresponding attributes of the
15695 filter (that is, attributes are joined together using the logical AND
15696 operation). On the other hand, all together, filters in the list of
15697 filters carry the semantics of the logical OR operation. So if it is
15698 desirable to create a match like "this vendor id OR this product id",
15699 one needs to create two filters and specify "any match" (see below)
15700 for unused attributes.
15701
15702 All filter attributes used for matching are strings. Each string
15703 is an expression representing a set of values of the corresponding
15704 device attribute, that will match the given filter. Currently, the
15705 following filtering expressions are supported:
15706
15707 <ul>
15708 <li><i>Interval filters</i>. Used to specify valid intervals for
15709 integer device attributes (Vendor ID, Product ID and Revision).
15710 The format of the string is:
15711
15712 <tt>int:((m)|([m]-[n]))(,(m)|([m]-[n]))*</tt>
15713
15714 where <tt>m</tt> and <tt>n</tt> are integer numbers, either in octal
15715 (starting from <tt>0</tt>), hexadecimal (starting from <tt>0x</tt>)
15716 or decimal (otherwise) form, so that <tt>m &lt; n</tt>. If <tt>m</tt>
15717 is omitted before a dash (<tt>-</tt>), the minimum possible integer
15718 is assumed; if <tt>n</tt> is omitted after a dash, the maximum
15719 possible integer is assumed.
15720 </li>
15721 <li><i>Boolean filters</i>. Used to specify acceptable values for
15722 boolean device attributes. The format of the string is:
15723
15724 <tt>true|false|yes|no|0|1</tt>
15725
15726 </li>
15727 <li><i>Exact match</i>. Used to specify a single value for the given
15728 device attribute. Any string that doesn't start with <tt>int:</tt>
15729 represents the exact match. String device attributes are compared to
15730 this string including case of symbols. Integer attributes are first
15731 converted to a string (see individual filter attributes) and then
15732 compared ignoring case.
15733
15734 </li>
15735 <li><i>Any match</i>. Any value of the corresponding device attribute
15736 will match the given filter. An empty or @c null string is
15737 used to construct this type of filtering expressions.
15738
15739 </li>
15740 </ul>
15741
15742 <note>
15743 On the Windows host platform, interval filters are not currently
15744 available. Also all string filter attributes
15745 (<link to="#manufacturer"/>, <link to="#product"/>,
15746 <link to="#serialNumber"/>) are ignored, so they behave as
15747 <i>any match</i> no matter what string expression is specified.
15748 </note>
15749
15750 <see><link to="IUSBController::deviceFilters"/>,
15751 <link to="IHostUSBDeviceFilter"/></see>
15752 </desc>
15753
15754 <attribute name="name" type="wstring">
15755 <desc>
15756 Visible name for this filter.
15757 This name is used to visually distinguish one filter from another,
15758 so it can neither be @c null nor an empty string.
15759 </desc>
15760 </attribute>
15761
15762 <attribute name="active" type="boolean">
15763 <desc>Whether this filter active or has been temporarily disabled.</desc>
15764 </attribute>
15765
15766 <attribute name="vendorId" type="wstring">
15767 <desc>
15768 <link to="IUSBDevice::vendorId">Vendor ID</link> filter.
15769 The string representation for the <i>exact matching</i>
15770 has the form <tt>XXXX</tt>, where <tt>X</tt> is the hex digit
15771 (including leading zeroes).
15772 </desc>
15773 </attribute>
15774
15775 <attribute name="productId" type="wstring">
15776 <desc>
15777 <link to="IUSBDevice::productId">Product ID</link> filter.
15778 The string representation for the <i>exact matching</i>
15779 has the form <tt>XXXX</tt>, where <tt>X</tt> is the hex digit
15780 (including leading zeroes).
15781 </desc>
15782 </attribute>
15783
15784 <attribute name="revision" type="wstring">
15785 <desc>
15786 <link to="IUSBDevice::productId">Product revision number</link>
15787 filter. The string representation for the <i>exact matching</i>
15788 has the form <tt>IIFF</tt>, where <tt>I</tt> is the decimal digit
15789 of the integer part of the revision, and <tt>F</tt> is the
15790 decimal digit of its fractional part (including leading and
15791 trailing zeros).
15792 Note that for interval filters, it's best to use the hexadecimal
15793 form, because the revision is stored as a 16 bit packed BCD value;
15794 so the expression <tt>int:0x0100-0x0199</tt> will match any
15795 revision from <tt>1.0</tt> to <tt>1.99</tt>.
15796 </desc>
15797 </attribute>
15798
15799 <attribute name="manufacturer" type="wstring">
15800 <desc>
15801 <link to="IUSBDevice::manufacturer">Manufacturer</link> filter.
15802 </desc>
15803 </attribute>
15804
15805 <attribute name="product" type="wstring">
15806 <desc>
15807 <link to="IUSBDevice::product">Product</link> filter.
15808 </desc>
15809 </attribute>
15810
15811 <attribute name="serialNumber" type="wstring">
15812 <desc>
15813 <link to="IUSBDevice::serialNumber">Serial number</link> filter.
15814 </desc>
15815 </attribute>
15816
15817 <attribute name="port" type="wstring">
15818 <desc>
15819 <link to="IUSBDevice::port">Host USB port</link> filter.
15820 </desc>
15821 </attribute>
15822
15823 <attribute name="remote" type="wstring">
15824 <desc>
15825 <link to="IUSBDevice::remote">Remote state</link> filter.
15826 <note>
15827 This filter makes sense only for machine USB filters,
15828 i.e. it is ignored by IHostUSBDeviceFilter objects.
15829 </note>
15830 </desc>
15831 </attribute>
15832
15833 <attribute name="maskedInterfaces" type="unsigned long">
15834 <desc>
15835 This is an advanced option for hiding one or more USB interfaces
15836 from the guest. The value is a bit mask where the bits that are set
15837 means the corresponding USB interface should be hidden, masked off
15838 if you like.
15839 This feature only works on Linux hosts.
15840 </desc>
15841 </attribute>
15842
15843 </interface>
15844
15845
15846 <!--
15847 // IHostUSBDevice
15848 /////////////////////////////////////////////////////////////////////////
15849 -->
15850
15851 <enum
15852 name="USBDeviceState"
15853 uuid="b99a2e65-67fb-4882-82fd-f3e5e8193ab4"
15854 >
15855 <desc>
15856 USB device state. This enumeration represents all possible states
15857 of the USB device physically attached to the host computer regarding
15858 its state on the host computer and availability to guest computers
15859 (all currently running virtual machines).
15860
15861 Once a supported USB device is attached to the host, global USB
15862 filters (<link to="IHost::USBDeviceFilters"/>) are activated. They can
15863 either ignore the device, or put it to USBDeviceState_Held state, or do
15864 nothing. Unless the device is ignored by global filters, filters of all
15865 currently running guests (<link to="IUSBController::deviceFilters"/>) are
15866 activated that can put it to USBDeviceState_Captured state.
15867
15868 If the device was ignored by global filters, or didn't match
15869 any filters at all (including guest ones), it is handled by the host
15870 in a normal way. In this case, the device state is determined by
15871 the host and can be one of USBDeviceState_Unavailable, USBDeviceState_Busy
15872 or USBDeviceState_Available, depending on the current device usage.
15873
15874 Besides auto-capturing based on filters, the device can be manually
15875 captured by guests (<link to="IConsole::attachUSBDevice"/>) if its
15876 state is USBDeviceState_Busy, USBDeviceState_Available or
15877 USBDeviceState_Held.
15878
15879 <note>
15880 Due to differences in USB stack implementations in Linux and Win32,
15881 states USBDeviceState_Busy and USBDeviceState_Unavailable are applicable
15882 only to the Linux version of the product. This also means that (<link
15883 to="IConsole::attachUSBDevice"/>) can only succeed on Win32 if the
15884 device state is USBDeviceState_Held.
15885 </note>
15886
15887 <see><link to="IHostUSBDevice"/>, <link to="IHostUSBDeviceFilter"/></see>
15888 </desc>
15889
15890 <const name="NotSupported" value="0">
15891 <desc>
15892 Not supported by the VirtualBox server, not available to guests.
15893 </desc>
15894 </const>
15895 <const name="Unavailable" value="1">
15896 <desc>
15897 Being used by the host computer exclusively,
15898 not available to guests.
15899 </desc>
15900 </const>
15901 <const name="Busy" value="2">
15902 <desc>
15903 Being used by the host computer, potentially available to guests.
15904 </desc>
15905 </const>
15906 <const name="Available" value="3">
15907 <desc>
15908 Not used by the host computer, available to guests (the host computer
15909 can also start using the device at any time).
15910 </desc>
15911 </const>
15912 <const name="Held" value="4">
15913 <desc>
15914 Held by the VirtualBox server (ignored by the host computer),
15915 available to guests.
15916 </desc>
15917 </const>
15918 <const name="Captured" value="5">
15919 <desc>
15920 Captured by one of the guest computers, not available
15921 to anybody else.
15922 </desc>
15923 </const>
15924 </enum>
15925
15926 <interface
15927 name="IHostUSBDevice" extends="IUSBDevice"
15928 uuid="173b4b44-d268-4334-a00d-b6521c9a740a"
15929 wsmap="managed"
15930 >
15931 <desc>
15932 The IHostUSBDevice interface represents a physical USB device attached
15933 to the host computer.
15934
15935 Besides properties inherited from IUSBDevice, this interface adds the
15936 <link to="#state"/> property that holds the current state of the USB
15937 device.
15938
15939 <see><link to="IHost::USBDevices"/>,
15940 <link to="IHost::USBDeviceFilters"/></see>
15941 </desc>
15942
15943 <attribute name="state" type="USBDeviceState" readonly="yes">
15944 <desc>
15945 Current state of the device.
15946 </desc>
15947 </attribute>
15948
15949 <!-- @todo add class, subclass, bandwidth, configs, interfaces endpoints and such later. -->
15950
15951 </interface>
15952
15953
15954 <!--
15955 // IHostUSBDeviceFilter
15956 /////////////////////////////////////////////////////////////////////////
15957 -->
15958
15959 <enum
15960 name="USBDeviceFilterAction"
15961 uuid="cbc30a49-2f4e-43b5-9da6-121320475933"
15962 >
15963 <desc>
15964 Actions for host USB device filters.
15965 <see><link to="IHostUSBDeviceFilter"/>, <link to="USBDeviceState"/></see>
15966 </desc>
15967
15968 <const name="Null" value="0">
15969 <desc>Null value (never used by the API).</desc>
15970 </const>
15971 <const name="Ignore" value="1">
15972 <desc>Ignore the matched USB device.</desc>
15973 </const>
15974 <const name="Hold" value="2">
15975 <desc>Hold the matched USB device.</desc>
15976 </const>
15977 </enum>
15978
15979 <interface
15980 name="IHostUSBDeviceFilter" extends="IUSBDeviceFilter"
15981 uuid="4cc70246-d74a-400f-8222-3900489c0374"
15982 wsmap="managed"
15983 >
15984 <desc>
15985 The IHostUSBDeviceFilter interface represents a global filter for a
15986 physical USB device used by the host computer. Used indirectly in
15987 <link to="IHost::USBDeviceFilters"/>.
15988
15989 Using filters of this type, the host computer determines the initial
15990 state of the USB device after it is physically attached to the
15991 host's USB controller.
15992
15993 <note>
15994 The <link to="IUSBDeviceFilter::remote"/> attribute is ignored by this type of
15995 filters, because it makes sense only for
15996 <link to="IUSBController::deviceFilters">machine USB filters</link>.
15997 </note>
15998
15999 <see><link to="IHost::USBDeviceFilters"/></see>
16000 </desc>
16001
16002 <attribute name="action" type="USBDeviceFilterAction">
16003 <desc>
16004 Action performed by the host when an attached USB device
16005 matches this filter.
16006 </desc>
16007 </attribute>
16008
16009 </interface>
16010
16011 <!--
16012 // IAudioAdapter
16013 /////////////////////////////////////////////////////////////////////////
16014 -->
16015
16016 <enum
16017 name="AudioDriverType"
16018 uuid="4bcc3d73-c2fe-40db-b72f-0c2ca9d68496"
16019 >
16020 <desc>
16021 Host audio driver type.
16022 </desc>
16023
16024 <const name="Null" value="0">
16025 <desc>Null value, also means "dummy audio driver".</desc>
16026 </const>
16027 <const name="WinMM" value="1">
16028 <desc>Windows multimedia (Windows hosts only).</desc>
16029 </const>
16030 <const name="OSS" value="2">
16031 <desc>Open Sound System (Linux hosts only).</desc>
16032 </const>
16033 <const name="ALSA" value="3">
16034 <desc>Advanced Linux Sound Architecture (Linux hosts only).</desc>
16035 </const>
16036 <const name="DirectSound" value="4">
16037 <desc>DirectSound (Windows hosts only).</desc>
16038 </const>
16039 <const name="CoreAudio" value="5">
16040 <desc>CoreAudio (Mac hosts only).</desc>
16041 </const>
16042 <const name="MMPM" value="6">
16043 <desc>Reserved for historical reasons.</desc>
16044 </const>
16045 <const name="Pulse" value="7">
16046 <desc>PulseAudio (Linux hosts only).</desc>
16047 </const>
16048 <const name="SolAudio" value="8">
16049 <desc>Solaris audio (Solaris hosts only).</desc>
16050 </const>
16051 </enum>
16052
16053 <enum
16054 name="AudioControllerType"
16055 uuid="7afd395c-42c3-444e-8788-3ce80292f36c"
16056 >
16057 <desc>
16058 Virtual audio controller type.
16059 </desc>
16060
16061 <const name="AC97" value="0"/>
16062 <const name="SB16" value="1"/>
16063 <const name="HDA" value="2"/>
16064 </enum>
16065
16066 <interface
16067 name="IAudioAdapter" extends="$unknown"
16068 uuid="921873db-5f3f-4b69-91f9-7be9e535a2cb"
16069 wsmap="managed"
16070 >
16071 <desc>
16072 The IAudioAdapter interface represents the virtual audio adapter of
16073 the virtual machine. Used in <link to="IMachine::audioAdapter"/>.
16074 </desc>
16075 <attribute name="enabled" type="boolean">
16076 <desc>
16077 Flag whether the audio adapter is present in the
16078 guest system. If disabled, the virtual guest hardware will
16079 not contain any audio adapter. Can only be changed when
16080 the VM is not running.
16081 </desc>
16082 </attribute>
16083 <attribute name="audioController" type="AudioControllerType">
16084 <desc>
16085 The audio hardware we emulate.
16086 </desc>
16087 </attribute>
16088 <attribute name="audioDriver" type="AudioDriverType">
16089 <desc>
16090 Audio driver the adapter is connected to. This setting
16091 can only be changed when the VM is not running.
16092 </desc>
16093 </attribute>
16094 </interface>
16095
16096 <enum
16097 name="AuthType"
16098 uuid="7eef6ef6-98c2-4dc2-ab35-10d2b292028d"
16099 >
16100 <desc>
16101 VirtualBox authentication type.
16102 </desc>
16103
16104 <const name="Null" value="0">
16105 <desc>Null value, also means "no authentication".</desc>
16106 </const>
16107 <const name="External" value="1"/>
16108 <const name="Guest" value="2"/>
16109 </enum>
16110
16111 <!--
16112 // IVRDEServer
16113 /////////////////////////////////////////////////////////////////////////
16114 -->
16115
16116 <interface
16117 name="IVRDEServer" extends="$unknown"
16118 uuid="d38de40a-c2c1-4e95-b5a4-167b05f5694c"
16119 wsmap="managed"
16120 >
16121 <attribute name="enabled" type="boolean">
16122 <desc>VRDE server status.</desc>
16123 </attribute>
16124
16125 <attribute name="authType" type="AuthType">
16126 <desc>VRDE authentication method.</desc>
16127 </attribute>
16128
16129 <attribute name="authTimeout" type="unsigned long">
16130 <desc>Timeout for guest authentication. Milliseconds.</desc>
16131 </attribute>
16132
16133 <attribute name="allowMultiConnection" type="boolean">
16134 <desc>
16135 Flag whether multiple simultaneous connections to the VM are permitted.
16136 Note that this will be replaced by a more powerful mechanism in the future.
16137 </desc>
16138 </attribute>
16139
16140 <attribute name="reuseSingleConnection" type="boolean">
16141 <desc>
16142 Flag whether the existing connection must be dropped and a new connection
16143 must be established by the VRDE server, when a new client connects in single
16144 connection mode.
16145 </desc>
16146 </attribute>
16147
16148 <attribute name="VRDEExtPack" type="wstring">
16149 <desc>
16150 The name of Extension Pack providing VRDE for this VM. Overrides
16151 <link to="ISystemProperties::defaultVRDEExtPack"/>.
16152 </desc>
16153 </attribute>
16154
16155 <attribute name="authLibrary" type="wstring">
16156 <desc>
16157 Library used for authentication of RDP clients by this VM. Overrides
16158 <link to="ISystemProperties::VRDEAuthLibrary"/>.
16159 </desc>
16160 </attribute>
16161
16162 <attribute name="VRDEProperties" type="wstring" readonly="yes" safearray="yes">
16163 <desc>
16164 Array of names of properties, which are supported by this VRDE server.
16165 </desc>
16166 </attribute>
16167
16168 <method name="setVRDEProperty">
16169 <desc>
16170 Sets a VRDE specific property string.
16171
16172 If you pass @c null or empty string as a key @a value, the given @a key
16173 will be deleted.
16174
16175 </desc>
16176 <param name="key" type="wstring" dir="in">
16177 <desc>Name of the key to set.</desc>
16178 </param>
16179 <param name="value" type="wstring" dir="in">
16180 <desc>Value to assign to the key.</desc>
16181 </param>
16182 </method>
16183
16184 <method name="getVRDEProperty" const="yes">
16185 <desc>
16186 Returns a VRDE specific property string.
16187
16188 If the requested data @a key does not exist, this function will
16189 succeed and return an empty string in the @a value argument.
16190
16191 </desc>
16192 <param name="key" type="wstring" dir="in">
16193 <desc>Name of the key to get.</desc>
16194 </param>
16195 <param name="value" type="wstring" dir="return">
16196 <desc>Value of the requested key.</desc>
16197 </param>
16198 </method>
16199
16200 </interface>
16201
16202
16203 <!--
16204 // ISharedFolder
16205 /////////////////////////////////////////////////////////////////////////
16206 -->
16207
16208 <interface
16209 name="ISharedFolder" extends="$unknown"
16210 uuid="8388da11-b559-4574-a5b7-2bd7acd5cef8"
16211 wsmap="struct"
16212 >
16213 <desc>
16214 The ISharedFolder interface represents a folder in the host computer's
16215 file system accessible from the guest OS running inside a virtual
16216 machine using an associated logical name.
16217
16218 There are three types of shared folders:
16219 <ul>
16220 <li><i>Global</i> (<link to="IVirtualBox::sharedFolders"/>), shared
16221 folders available to all virtual machines.</li>
16222 <li><i>Permanent</i> (<link to="IMachine::sharedFolders"/>),
16223 VM-specific shared folders available to the given virtual machine at
16224 startup.</li>
16225 <li><i>Transient</i> (<link to="IConsole::sharedFolders"/>),
16226 VM-specific shared folders created in the session context (for
16227 example, when the virtual machine is running) and automatically
16228 discarded when the session is closed (the VM is powered off).</li>
16229 </ul>
16230
16231 Logical names of shared folders must be unique within the given scope
16232 (global, permanent or transient). However, they do not need to be unique
16233 across scopes. In this case, the definition of the shared folder in a
16234 more specific scope takes precedence over definitions in all other
16235 scopes. The order of precedence is (more specific to more general):
16236 <ol>
16237 <li>Transient definitions</li>
16238 <li>Permanent definitions</li>
16239 <li>Global definitions</li>
16240 </ol>
16241
16242 For example, if MyMachine has a shared folder named
16243 <tt>C_DRIVE</tt> (that points to <tt>C:\\</tt>), then creating a
16244 transient shared folder named <tt>C_DRIVE</tt> (that points
16245 to <tt>C:\\\\WINDOWS</tt>) will change the definition
16246 of <tt>C_DRIVE</tt> in the guest OS so
16247 that <tt>\\\\VBOXSVR\\C_DRIVE</tt> will give access
16248 to <tt>C:\\WINDOWS</tt> instead of <tt>C:\\</tt> on the host
16249 PC. Removing the transient shared folder <tt>C_DRIVE</tt> will restore
16250 the previous (permanent) definition of <tt>C_DRIVE</tt> that points
16251 to <tt>C:\\</tt> if it still exists.
16252
16253 Note that permanent and transient shared folders of different machines
16254 are in different name spaces, so they don't overlap and don't need to
16255 have unique logical names.
16256
16257 <note>
16258 Global shared folders are not implemented in the current version of the
16259 product.
16260 </note>
16261 </desc>
16262
16263 <attribute name="name" type="wstring" readonly="yes">
16264 <desc>Logical name of the shared folder.</desc>
16265 </attribute>
16266
16267 <attribute name="hostPath" type="wstring" readonly="yes">
16268 <desc>Full path to the shared folder in the host file system.</desc>
16269 </attribute>
16270
16271 <attribute name="accessible" type="boolean" readonly="yes">
16272 <desc>
16273 Whether the folder defined by the host path is currently
16274 accessible or not.
16275 For example, the folder can be inaccessible if it is placed
16276 on the network share that is not available by the time
16277 this property is read.
16278 </desc>
16279 </attribute>
16280
16281 <attribute name="writable" type="boolean" readonly="yes">
16282 <desc>
16283 Whether the folder defined by the host path is writable or
16284 not.
16285 </desc>
16286 </attribute>
16287
16288 <attribute name="autoMount" type="boolean" readonly="yes">
16289 <desc>
16290 Whether the folder gets automatically mounted by the guest or not.
16291 </desc>
16292 </attribute>
16293
16294 <attribute name="lastAccessError" type="wstring" readonly="yes">
16295 <desc>
16296 Text message that represents the result of the last accessibility
16297 check.
16298
16299 Accessibility checks are performed each time the <link to="#accessible"/>
16300 attribute is read. An empty string is returned if the last
16301 accessibility check was successful. A non-empty string indicates a
16302 failure and should normally describe a reason of the failure (for
16303 example, a file read error).
16304 </desc>
16305 </attribute>
16306
16307 </interface>
16308
16309 <!--
16310 // ISession
16311 /////////////////////////////////////////////////////////////////////////
16312 -->
16313
16314 <interface
16315 name="IInternalSessionControl" extends="$unknown"
16316 uuid="3e83963a-1c3b-400d-8c5f-f2d077b0a597"
16317 internal="yes"
16318 wsmap="suppress"
16319 >
16320 <method name="getPID">
16321 <desc>PID of the process that has created this Session object.
16322 </desc>
16323 <param name="pid" type="unsigned long" dir="return"/>
16324 </method>
16325
16326 <method name="getRemoteConsole">
16327 <desc>
16328 Returns the console object suitable for remote control.
16329
16330 <result name="VBOX_E_INVALID_VM_STATE">
16331 Session state prevents operation.
16332 </result>
16333 <result name="VBOX_E_INVALID_OBJECT_STATE">
16334 Session type prevents operation.
16335 </result>
16336
16337 </desc>
16338 <param name="console" type="IConsole" dir="return"/>
16339 </method>
16340
16341 <method name="assignMachine">
16342 <desc>
16343 Assigns the machine object associated with this direct-type
16344 session or informs the session that it will be a remote one
16345 (if @a machine == @c null).
16346
16347 <result name="VBOX_E_INVALID_VM_STATE">
16348 Session state prevents operation.
16349 </result>
16350 <result name="VBOX_E_INVALID_OBJECT_STATE">
16351 Session type prevents operation.
16352 </result>
16353
16354 </desc>
16355 <param name="machine" type="IMachine" dir="in"/>
16356 <param name="lockType" type="LockType" dir="in"/>
16357 </method>
16358
16359 <method name="assignRemoteMachine">
16360 <desc>
16361 Assigns the machine and the (remote) console object associated with
16362 this remote-type session.
16363
16364 <result name="VBOX_E_INVALID_VM_STATE">
16365 Session state prevents operation.
16366 </result>
16367
16368 </desc>
16369 <param name="machine" type="IMachine" dir="in"/>
16370 <param name="console" type="IConsole" dir="in"/>
16371 </method>
16372
16373 <method name="updateMachineState">
16374 <desc>
16375 Updates the machine state in the VM process.
16376 Must be called only in certain cases
16377 (see the method implementation).
16378
16379 <result name="VBOX_E_INVALID_VM_STATE">
16380 Session state prevents operation.
16381 </result>
16382 <result name="VBOX_E_INVALID_OBJECT_STATE">
16383 Session type prevents operation.
16384 </result>
16385
16386 </desc>
16387 <param name="aMachineState" type="MachineState" dir="in"/>
16388 </method>
16389
16390 <method name="uninitialize">
16391 <desc>
16392 Uninitializes (closes) this session. Used by VirtualBox to close
16393 the corresponding remote session when the direct session dies
16394 or gets closed.
16395
16396 <result name="VBOX_E_INVALID_VM_STATE">
16397 Session state prevents operation.
16398 </result>
16399
16400 </desc>
16401 </method>
16402
16403 <method name="onNetworkAdapterChange">
16404 <desc>
16405 Triggered when settings of a network adapter of the
16406 associated virtual machine have changed.
16407
16408 <result name="VBOX_E_INVALID_VM_STATE">
16409 Session state prevents operation.
16410 </result>
16411 <result name="VBOX_E_INVALID_OBJECT_STATE">
16412 Session type prevents operation.
16413 </result>
16414
16415 </desc>
16416 <param name="networkAdapter" type="INetworkAdapter" dir="in"/>
16417 <param name="changeAdapter" type="boolean" dir="in"/>
16418 </method>
16419
16420 <method name="onSerialPortChange">
16421 <desc>
16422 Triggered when settings of a serial port of the
16423 associated virtual machine have changed.
16424
16425 <result name="VBOX_E_INVALID_VM_STATE">
16426 Session state prevents operation.
16427 </result>
16428 <result name="VBOX_E_INVALID_OBJECT_STATE">
16429 Session type prevents operation.
16430 </result>
16431
16432 </desc>
16433 <param name="serialPort" type="ISerialPort" dir="in"/>
16434 </method>
16435
16436 <method name="onParallelPortChange">
16437 <desc>
16438 Triggered when settings of a parallel port of the
16439 associated virtual machine have changed.
16440
16441 <result name="VBOX_E_INVALID_VM_STATE">
16442 Session state prevents operation.
16443 </result>
16444 <result name="VBOX_E_INVALID_OBJECT_STATE">
16445 Session type prevents operation.
16446 </result>
16447
16448 </desc>
16449 <param name="parallelPort" type="IParallelPort" dir="in"/>
16450 </method>
16451
16452 <method name="onStorageControllerChange">
16453 <desc>
16454 Triggered when settings of a storage controller of the
16455 associated virtual machine have changed.
16456
16457 <result name="VBOX_E_INVALID_VM_STATE">
16458 Session state prevents operation.
16459 </result>
16460 <result name="VBOX_E_INVALID_OBJECT_STATE">
16461 Session type prevents operation.
16462 </result>
16463
16464 </desc>
16465 </method>
16466
16467 <method name="onMediumChange">
16468 <desc>
16469 Triggered when attached media of the
16470 associated virtual machine have changed.
16471
16472 <result name="VBOX_E_INVALID_VM_STATE">
16473 Session state prevents operation.
16474 </result>
16475 <result name="VBOX_E_INVALID_OBJECT_STATE">
16476 Session type prevents operation.
16477 </result>
16478
16479 </desc>
16480
16481 <param name="mediumAttachment" type="IMediumAttachment" dir="in">
16482 <desc>The medium attachment which changed.</desc>
16483 </param>
16484 <param name="force" type="boolean" dir="in">
16485 <desc>If the medium change was forced.</desc>
16486 </param>
16487 </method>
16488
16489 <method name="onStorageDeviceChange">
16490 <desc>
16491 Triggered when attached storage devices of the
16492 associated virtual machine have changed.
16493
16494 <result name="VBOX_E_INVALID_VM_STATE">
16495 Session state prevents operation.
16496 </result>
16497 <result name="VBOX_E_INVALID_OBJECT_STATE">
16498 Session type prevents operation.
16499 </result>
16500
16501 </desc>
16502
16503 <param name="mediumAttachment" type="IMediumAttachment" dir="in">
16504 <desc>The medium attachment which changed.</desc>
16505 </param>
16506 <param name="remove" type="boolean" dir="in">
16507 <desc>TRUE if the device is removed, FALSE if it was added.</desc>
16508 </param>
16509 </method>
16510
16511 <method name="onClipboardModeChange">
16512 <desc>
16513 Notification when the shared clipboard mode changes.
16514 </desc>
16515 <param name="clipboardMode" type="ClipboardMode" dir="in">
16516 <desc>The new shared clipboard mode.</desc>
16517 </param>
16518 </method>
16519
16520 <method name="onDragAndDropModeChange">
16521 <desc>
16522 Notification when the drag'n'drop mode changes.
16523 </desc>
16524 <param name="dragAndDropMode" type="DragAndDropMode" dir="in">
16525 <desc>The new mode for drag'n'drop.</desc>
16526 </param>
16527 </method>
16528
16529 <method name="onCPUChange">
16530 <desc>
16531 Notification when a CPU changes.
16532 </desc>
16533 <param name="cpu" type="unsigned long" dir="in">
16534 <desc>The CPU which changed</desc>
16535 </param>
16536 <param name="add" type="boolean" dir="in">
16537 <desc>Flag whether the CPU was added or removed</desc>
16538 </param>
16539 </method>
16540
16541 <method name="onCPUExecutionCapChange">
16542 <desc>
16543 Notification when the CPU execution cap changes.
16544 </desc>
16545 <param name="executionCap" type="unsigned long" dir="in">
16546 <desc>The new CPU execution cap value. (1-100)</desc>
16547 </param>
16548 </method>
16549
16550 <method name="onVRDEServerChange">
16551 <desc>
16552 Triggered when settings of the VRDE server object of the
16553 associated virtual machine have changed.
16554
16555 <result name="VBOX_E_INVALID_VM_STATE">
16556 Session state prevents operation.
16557 </result>
16558 <result name="VBOX_E_INVALID_OBJECT_STATE">
16559 Session type prevents operation.
16560 </result>
16561
16562 </desc>
16563 <param name="restart" type="boolean" dir="in">
16564 <desc>Flag whether the server must be restarted</desc>
16565 </param>
16566 </method>
16567
16568 <method name="onUSBControllerChange">
16569 <desc>
16570 Triggered when settings of the USB controller object of the
16571 associated virtual machine have changed.
16572
16573 <result name="VBOX_E_INVALID_VM_STATE">
16574 Session state prevents operation.
16575 </result>
16576 <result name="VBOX_E_INVALID_OBJECT_STATE">
16577 Session type prevents operation.
16578 </result>
16579
16580 </desc>
16581 </method>
16582
16583 <method name="onSharedFolderChange">
16584 <desc>
16585 Triggered when a permanent (global or machine) shared folder has been
16586 created or removed.
16587 <note>
16588 We don't pass shared folder parameters in this notification because
16589 the order in which parallel notifications are delivered is not defined,
16590 therefore it could happen that these parameters were outdated by the
16591 time of processing this notification.
16592 </note>
16593
16594 <result name="VBOX_E_INVALID_VM_STATE">
16595 Session state prevents operation.
16596 </result>
16597 <result name="VBOX_E_INVALID_OBJECT_STATE">
16598 Session type prevents operation.
16599 </result>
16600
16601 </desc>
16602 <param name="global" type="boolean" dir="in"/>
16603 </method>
16604
16605 <method name="onUSBDeviceAttach">
16606 <desc>
16607 Triggered when a request to capture a USB device (as a result
16608 of matched USB filters or direct call to
16609 <link to="IConsole::attachUSBDevice"/>) has completed.
16610 A @c null @a error object means success, otherwise it
16611 describes a failure.
16612
16613 <result name="VBOX_E_INVALID_VM_STATE">
16614 Session state prevents operation.
16615 </result>
16616 <result name="VBOX_E_INVALID_OBJECT_STATE">
16617 Session type prevents operation.
16618 </result>
16619
16620 </desc>
16621 <param name="device" type="IUSBDevice" dir="in"/>
16622 <param name="error" type="IVirtualBoxErrorInfo" dir="in"/>
16623 <param name="maskedInterfaces" type="unsigned long" dir="in"/>
16624 </method>
16625
16626 <method name="onUSBDeviceDetach">
16627 <desc>
16628 Triggered when a request to release the USB device (as a result
16629 of machine termination or direct call to
16630 <link to="IConsole::detachUSBDevice"/>) has completed.
16631 A @c null @a error object means success, otherwise it
16632 describes a failure.
16633
16634 <result name="VBOX_E_INVALID_VM_STATE">
16635 Session state prevents operation.
16636 </result>
16637 <result name="VBOX_E_INVALID_OBJECT_STATE">
16638 Session type prevents operation.
16639 </result>
16640
16641 </desc>
16642 <param name="id" type="uuid" mod="string" dir="in"/>
16643 <param name="error" type="IVirtualBoxErrorInfo" dir="in"/>
16644 </method>
16645
16646 <method name="onShowWindow">
16647 <desc>
16648 Called by <link to="IMachine::canShowConsoleWindow"/> and by
16649 <link to="IMachine::showConsoleWindow"/> in order to notify
16650 console listeners
16651 <link to="ICanShowWindowEvent"/>
16652 and <link to="IShowWindowEvent"/>.
16653
16654 <result name="VBOX_E_INVALID_OBJECT_STATE">
16655 Session type prevents operation.
16656 </result>
16657
16658 </desc>
16659 <param name="check" type="boolean" dir="in"/>
16660 <param name="canShow" type="boolean" dir="out"/>
16661 <param name="winId" type="long long" dir="out"/>
16662 </method>
16663
16664 <method name="onBandwidthGroupChange">
16665 <desc>
16666 Notification when one of the bandwidth groups change.
16667 </desc>
16668 <param name="bandwidthGroup" type="IBandwidthGroup" dir="in">
16669 <desc>The bandwidth group which changed.</desc>
16670 </param>
16671 </method>
16672
16673 <method name="accessGuestProperty">
16674 <desc>
16675 Called by <link to="IMachine::getGuestProperty"/> and by
16676 <link to="IMachine::setGuestProperty"/> in order to read and
16677 modify guest properties.
16678
16679 <result name="VBOX_E_INVALID_VM_STATE">
16680 Machine session is not open.
16681 </result>
16682 <result name="VBOX_E_INVALID_OBJECT_STATE">
16683 Session type is not direct.
16684 </result>
16685
16686 </desc>
16687 <param name="name" type="wstring" dir="in"/>
16688 <param name="value" type="wstring" dir="in"/>
16689 <param name="flags" type="wstring" dir="in"/>
16690 <param name="isSetter" type="boolean" dir="in"/>
16691 <param name="retValue" type="wstring" dir="out"/>
16692 <param name="retTimestamp" type="long long" dir="out"/>
16693 <param name="retFlags" type="wstring" dir="out"/>
16694 </method>
16695
16696 <method name="enumerateGuestProperties" const="yes">
16697 <desc>
16698 Return a list of the guest properties matching a set of patterns along
16699 with their values, time stamps and flags.
16700
16701 <result name="VBOX_E_INVALID_VM_STATE">
16702 Machine session is not open.
16703 </result>
16704 <result name="VBOX_E_INVALID_OBJECT_STATE">
16705 Session type is not direct.
16706 </result>
16707
16708 </desc>
16709 <param name="patterns" type="wstring" dir="in">
16710 <desc>
16711 The patterns to match the properties against as a comma-separated
16712 string. If this is empty, all properties currently set will be
16713 returned.
16714 </desc>
16715 </param>
16716 <param name="key" type="wstring" dir="out" safearray="yes">
16717 <desc>
16718 The key names of the properties returned.
16719 </desc>
16720 </param>
16721 <param name="value" type="wstring" dir="out" safearray="yes">
16722 <desc>
16723 The values of the properties returned. The array entries match the
16724 corresponding entries in the @a key array.
16725 </desc>
16726 </param>
16727 <param name="timestamp" type="long long" dir="out" safearray="yes">
16728 <desc>
16729 The time stamps of the properties returned. The array entries match
16730 the corresponding entries in the @a key array.
16731 </desc>
16732 </param>
16733 <param name="flags" type="wstring" dir="out" safearray="yes">
16734 <desc>
16735 The flags of the properties returned. The array entries match the
16736 corresponding entries in the @a key array.
16737 </desc>
16738 </param>
16739 </method>
16740
16741 <method name="onlineMergeMedium">
16742 <desc>
16743 Triggers online merging of a hard disk. Used internally when deleting
16744 a snapshot while a VM referring to the same hard disk chain is running.
16745
16746 <result name="VBOX_E_INVALID_VM_STATE">
16747 Machine session is not open.
16748 </result>
16749 <result name="VBOX_E_INVALID_OBJECT_STATE">
16750 Session type is not direct.
16751 </result>
16752
16753 </desc>
16754 <param name="mediumAttachment" type="IMediumAttachment" dir="in">
16755 <desc>The medium attachment to identify the medium chain.</desc>
16756 </param>
16757 <param name="sourceIdx" type="unsigned long" dir="in">
16758 <desc>The index of the source image in the chain.
16759 Redundant, but drastically reduces IPC.</desc>
16760 </param>
16761 <param name="targetIdx" type="unsigned long" dir="in">
16762 <desc>The index of the target image in the chain.
16763 Redundant, but drastically reduces IPC.</desc>
16764 </param>
16765 <param name="source" type="IMedium" dir="in">
16766 <desc>Merge source medium.</desc>
16767 </param>
16768 <param name="target" type="IMedium" dir="in">
16769 <desc>Merge target medium.</desc>
16770 </param>
16771 <param name="mergeForward" type="boolean" dir="in">
16772 <desc>Merge direction.</desc>
16773 </param>
16774 <param name="parentForTarget" type="IMedium" dir="in">
16775 <desc>For forward merges: new parent for target medium.</desc>
16776 </param>
16777 <param name="childrenToReparent" type="IMedium" safearray="yes" dir="in">
16778 <desc>For backward merges: list of media which need their parent UUID
16779 updated.</desc>
16780 </param>
16781 <param name="progress" type="IProgress" dir="in">
16782 <desc>
16783 Progress object for this operation.
16784 </desc>
16785 </param>
16786 </method>
16787
16788 <method name="enableVMMStatistics">
16789 <desc>
16790 Enables or disables collection of VMM RAM statistics.
16791
16792 <result name="VBOX_E_INVALID_VM_STATE">
16793 Machine session is not open.
16794 </result>
16795 <result name="VBOX_E_INVALID_OBJECT_STATE">
16796 Session type is not direct.
16797 </result>
16798
16799 </desc>
16800 <param name="enable" type="boolean" dir="in">
16801 <desc>True enables statistics collection.</desc>
16802 </param>
16803 </method>
16804
16805 </interface>
16806
16807 <interface
16808 name="ISession" extends="$unknown"
16809 uuid="12F4DCDB-12B2-4EC1-B7CD-DDD9F6C5BF4D"
16810 wsmap="managed"
16811 >
16812 <desc>
16813 The ISession interface represents a client process and allows for locking
16814 virtual machines (represented by IMachine objects) to prevent conflicting
16815 changes to the machine.
16816
16817 Any caller wishing to manipulate a virtual machine needs to create a session
16818 object first, which lives in its own process space. Such session objects are
16819 then associated with <link to="IMachine" /> objects living in the VirtualBox
16820 server process to coordinate such changes.
16821
16822 There are two typical scenarios in which sessions are used:
16823
16824 <ul>
16825 <li>To alter machine settings or control a running virtual machine, one
16826 needs to lock a machine for a given session (client process) by calling
16827 <link to="IMachine::lockMachine"/>.
16828
16829 Whereas multiple sessions may control a running virtual machine, only
16830 one process can obtain a write lock on the machine to prevent conflicting
16831 changes. A write lock is also needed if a process wants to actually run a
16832 virtual machine in its own context, such as the VirtualBox GUI or
16833 VBoxHeadless front-ends. They must also lock a machine for their own
16834 sessions before they are allowed to power up the virtual machine.
16835
16836 As a result, no machine settings can be altered while another process is
16837 already using it, either because that process is modifying machine settings
16838 or because the machine is running.
16839 </li>
16840 <li>
16841 To start a VM using one of the existing VirtualBox front-ends (e.g. the
16842 VirtualBox GUI or VBoxHeadless), one would use
16843 <link to="IMachine::launchVMProcess"/>, which also takes a session object
16844 as its first parameter. This session then identifies the caller and lets the
16845 caller control the started machine (for example, pause machine execution or
16846 power it down) as well as be notified about machine execution state changes.
16847 </li>
16848 </ul>
16849
16850 How sessions objects are created in a client process depends on whether you use
16851 the Main API via COM or via the webservice:
16852
16853 <ul>
16854 <li>When using the COM API directly, an object of the Session class from the
16855 VirtualBox type library needs to be created. In regular COM C++ client code,
16856 this can be done by calling <tt>createLocalObject()</tt>, a standard COM API.
16857 This object will then act as a local session object in further calls to open
16858 a session.
16859 </li>
16860
16861 <li>In the webservice, the session manager (IWebsessionManager) instead creates
16862 a session object automatically whenever <link to="IWebsessionManager::logon" />
16863 is called. A managed object reference to that session object can be retrieved by
16864 calling <link to="IWebsessionManager::getSessionObject" />.
16865 </li>
16866 </ul>
16867 </desc>
16868
16869 <attribute name="state" type="SessionState" readonly="yes">
16870 <desc>Current state of this session.</desc>
16871 </attribute>
16872
16873 <attribute name="type" type="SessionType" readonly="yes">
16874 <desc>
16875 Type of this session. The value of this attribute is valid only
16876 if the session currently has a machine locked (i.e. its
16877 <link to="#state" /> is Locked), otherwise an error will be returned.
16878 </desc>
16879 </attribute>
16880
16881 <attribute name="machine" type="IMachine" readonly="yes">
16882 <desc>Machine object associated with this session.</desc>
16883 </attribute>
16884
16885 <attribute name="console" type="IConsole" readonly="yes">
16886 <desc>Console object associated with this session.</desc>
16887 </attribute>
16888
16889 <method name="unlockMachine">
16890 <desc>
16891 Unlocks a machine that was previously locked for the current session.
16892
16893 Calling this method is required every time a machine has been locked
16894 for a particular session using the <link to="IMachine::launchVMProcess" />
16895 or <link to="IMachine::lockMachine" /> calls. Otherwise the state of
16896 the machine will be set to <link to="MachineState_Aborted" /> on the
16897 server, and changes made to the machine settings will be lost.
16898
16899 Generally, it is recommended to unlock all machines explicitly
16900 before terminating the application (regardless of the reason for
16901 the termination).
16902
16903 <note>
16904 Do not expect the session state (<link to="ISession::state" />
16905 to return to "Unlocked" immediately after you invoke this method,
16906 particularly if you have started a new VM process. The session
16907 state will automatically return to "Unlocked" once the VM is no
16908 longer executing, which can of course take a very long time.
16909 </note>
16910
16911 <result name="E_UNEXPECTED">
16912 Session is not locked.
16913 </result>
16914
16915 </desc>
16916 </method>
16917
16918 </interface>
16919
16920 <!--
16921 // IStorageController
16922 /////////////////////////////////////////////////////////////////////////
16923 -->
16924
16925 <enum
16926 name="StorageBus"
16927 uuid="eee67ab3-668d-4ef5-91e0-7025fe4a0d7a"
16928 >
16929 <desc>
16930 The bus type of the storage controller (IDE, SATA, SCSI, SAS or Floppy);
16931 see <link to="IStorageController::bus" />.
16932 </desc>
16933 <const name="Null" value="0">
16934 <desc>@c null value. Never used by the API.</desc>
16935 </const>
16936 <const name="IDE" value="1"/>
16937 <const name="SATA" value="2"/>
16938 <const name="SCSI" value="3"/>
16939 <const name="Floppy" value="4"/>
16940 <const name="SAS" value="5"/>
16941 </enum>
16942
16943 <enum
16944 name="StorageControllerType"
16945 uuid="8a412b8a-f43e-4456-bd37-b474f0879a58"
16946 >
16947 <desc>
16948 The exact variant of storage controller hardware presented
16949 to the guest; see <link to="IStorageController::controllerType" />.
16950 </desc>
16951
16952 <const name="Null" value="0">
16953 <desc>@c null value. Never used by the API.</desc>
16954 </const>
16955 <const name="LsiLogic" value="1">
16956 <desc>A SCSI controller of the LsiLogic variant.</desc>
16957 </const>
16958 <const name="BusLogic" value="2">
16959 <desc>A SCSI controller of the BusLogic variant.</desc>
16960 </const>
16961 <const name="IntelAhci" value="3">
16962 <desc>An Intel AHCI SATA controller; this is the only variant for SATA.</desc>
16963 </const>
16964 <const name="PIIX3" value="4">
16965 <desc>An IDE controller of the PIIX3 variant.</desc>
16966 </const>
16967 <const name="PIIX4" value="5">
16968 <desc>An IDE controller of the PIIX4 variant.</desc>
16969 </const>
16970 <const name="ICH6" value="6">
16971 <desc>An IDE controller of the ICH6 variant.</desc>
16972 </const>
16973 <const name="I82078" value="7">
16974 <desc>A floppy disk controller; this is the only variant for floppy drives.</desc>
16975 </const>
16976 <const name="LsiLogicSas" value="8">
16977 <desc>A variant of the LsiLogic controller using SAS.</desc>
16978 </const>
16979 </enum>
16980
16981 <enum
16982 name="ChipsetType"
16983 uuid="8b4096a8-a7c3-4d3b-bbb1-05a0a51ec394"
16984 >
16985 <desc>
16986 Type of emulated chipset (mostly southbridge).
16987 </desc>
16988
16989 <const name="Null" value="0">
16990 <desc>@c null value. Never used by the API.</desc>
16991 </const>
16992 <const name="PIIX3" value="1">
16993 <desc>A PIIX3 (PCI IDE ISA Xcelerator) chipset.</desc>
16994 </const>
16995 <const name="ICH9" value="2">
16996 <desc>A ICH9 (I/O Controller Hub) chipset.</desc>
16997 </const>
16998 </enum>
16999
17000 <interface
17001 name="IStorageController" extends="$unknown"
17002 uuid="a1556333-09b6-46d9-bfb7-fc239b7fbe1e"
17003 wsmap="managed"
17004 >
17005 <desc>
17006 Represents a storage controller that is attached to a virtual machine
17007 (<link to="IMachine" />). Just as drives (hard disks, DVDs, FDs) are
17008 attached to storage controllers in a real computer, virtual drives
17009 (represented by <link to="IMediumAttachment" />) are attached to virtual
17010 storage controllers, represented by this interface.
17011
17012 As opposed to physical hardware, VirtualBox has a very generic concept
17013 of a storage controller, and for purposes of the Main API, all virtual
17014 storage is attached to virtual machines via instances of this interface.
17015 There are five types of such virtual storage controllers: IDE, SCSI, SATA,
17016 SAS and Floppy (see <link to="#bus" />). Depending on which of these four
17017 is used, certain sub-types may be available and can be selected in
17018 <link to="#controllerType" />.
17019
17020 Depending on these settings, the guest operating system might see
17021 significantly different virtual hardware.
17022 </desc>
17023
17024 <attribute name="name" type="wstring" readonly="yes">
17025 <desc>
17026 Name of the storage controller, as originally specified with
17027 <link to="IMachine::addStorageController" />. This then uniquely
17028 identifies this controller with other method calls such as
17029 <link to="IMachine::attachDevice" /> and <link to="IMachine::mountMedium" />.
17030 </desc>
17031 </attribute>
17032
17033 <attribute name="maxDevicesPerPortCount" type="unsigned long" readonly="yes">
17034 <desc>
17035 Maximum number of devices which can be attached to one port.
17036 </desc>
17037 </attribute>
17038
17039 <attribute name="minPortCount" type="unsigned long" readonly="yes">
17040 <desc>
17041 Minimum number of ports that <link to="IStorageController::portCount"/> can be set to.
17042 </desc>
17043 </attribute>
17044
17045 <attribute name="maxPortCount" type="unsigned long" readonly="yes">
17046 <desc>
17047 Maximum number of ports that <link to="IStorageController::portCount"/> can be set to.
17048 </desc>
17049 </attribute>
17050
17051 <attribute name="instance" type="unsigned long">
17052 <desc>
17053 The instance number of the device in the running VM.
17054 </desc>
17055 </attribute>
17056
17057 <attribute name="portCount" type="unsigned long">
17058 <desc>
17059 The number of currently usable ports on the controller.
17060 The minimum and maximum number of ports for one controller are
17061 stored in <link to="IStorageController::minPortCount"/>
17062 and <link to="IStorageController::maxPortCount"/>.
17063 </desc>
17064 </attribute>
17065
17066 <attribute name="bus" type="StorageBus" readonly="yes">
17067 <desc>
17068 The bus type of the storage controller (IDE, SATA, SCSI, SAS or Floppy).
17069 </desc>
17070 </attribute>
17071
17072 <attribute name="controllerType" type="StorageControllerType">
17073 <desc>
17074 The exact variant of storage controller hardware presented
17075 to the guest.
17076 Depending on this value, VirtualBox will provide a different
17077 virtual storage controller hardware to the guest.
17078 For SATA, SAS and floppy controllers, only one variant is
17079 available, but for IDE and SCSI, there are several.
17080
17081 For SCSI controllers, the default type is LsiLogic.
17082 </desc>
17083 </attribute>
17084
17085 <attribute name="useHostIOCache" type="boolean">
17086 <desc>
17087 If true, the storage controller emulation will use a dedicated I/O thread, enable the host I/O
17088 caches and use synchronous file APIs on the host. This was the only option in the API before
17089 VirtualBox 3.2 and is still the default for IDE controllers.
17090
17091 If false, the host I/O cache will be disabled for image files attached to this storage controller.
17092 Instead, the storage controller emulation will use asynchronous I/O APIs on the host. This makes
17093 it possible to turn off the host I/O caches because the emulation can handle unaligned access to
17094 the file. This should be used on OS X and Linux hosts if a high I/O load is expected or many
17095 virtual machines are running at the same time to prevent I/O cache related hangs.
17096 This option new with the API of VirtualBox 3.2 and is now the default for non-IDE storage controllers.
17097 </desc>
17098 </attribute>
17099
17100 <attribute name="bootable" type="boolean" readonly="yes">
17101 <desc>
17102 Returns whether it is possible to boot from disks attached to this controller.
17103 </desc>
17104 </attribute>
17105 </interface>
17106
17107<if target="wsdl">
17108
17109 <!--
17110 // IManagedObjectRef
17111 /////////////////////////////////////////////////////////////////////////
17112 -->
17113
17114 <interface
17115 name="IManagedObjectRef" extends="$unknown"
17116 uuid="9474d09d-2313-46de-b568-a42b8718e8ed"
17117 internal="yes"
17118 wsmap="managed"
17119 wscpp="hardcoded"
17120 >
17121 <desc>
17122 Managed object reference.
17123
17124 Only within the webservice, a managed object reference (which is really
17125 an opaque number) allows a webservice client to address an object
17126 that lives in the address space of the webservice server.
17127
17128 Behind each managed object reference, there is a COM object that lives
17129 in the webservice server's address space. The COM object is not freed
17130 until the managed object reference is released, either by an explicit
17131 call to <link to="IManagedObjectRef::release" /> or by logging off from
17132 the webservice (<link to="IWebsessionManager::logoff" />), which releases
17133 all objects created during the webservice session.
17134
17135 Whenever a method call of the VirtualBox API returns a COM object, the
17136 webservice representation of that method will instead return a
17137 managed object reference, which can then be used to invoke methods
17138 on that object.
17139 </desc>
17140
17141 <method name="getInterfaceName">
17142 <desc>
17143 Returns the name of the interface that this managed object represents,
17144 for example, "IMachine", as a string.
17145 </desc>
17146 <param name="return" type="wstring" dir="return"/>
17147 </method>
17148
17149 <method name="release">
17150 <desc>
17151 Releases this managed object reference and frees the resources that
17152 were allocated for it in the webservice server process. After calling
17153 this method, the identifier of the reference can no longer be used.
17154 </desc>
17155 </method>
17156
17157 </interface>
17158
17159 <!--
17160 // IWebsessionManager
17161 /////////////////////////////////////////////////////////////////////////
17162 -->
17163
17164 <interface
17165 name="IWebsessionManager" extends="$unknown"
17166 uuid="dea1b4c7-2de3-418a-850d-7868617f7733"
17167 internal="yes"
17168 wsmap="global"
17169 wscpp="hardcoded"
17170 >
17171 <desc>
17172 Websession manager. This provides essential services
17173 to webservice clients.
17174 </desc>
17175 <method name="logon">
17176 <desc>
17177 Logs a new client onto the webservice and returns a managed object reference to
17178 the IVirtualBox instance, which the client can then use as a basis to further
17179 queries, since all calls to the VirtualBox API are based on the IVirtualBox
17180 interface, in one way or the other.
17181 </desc>
17182 <param name="username" type="wstring" dir="in"/>
17183 <param name="password" type="wstring" dir="in"/>
17184 <param name="return" type="IVirtualBox" dir="return"/>
17185 </method>
17186
17187 <method name="getSessionObject">
17188 <desc>
17189 Returns a managed object reference to the internal ISession object that was created
17190 for this web service session when the client logged on.
17191
17192 <see><link to="ISession"/></see>
17193 </desc>
17194 <param name="refIVirtualBox" type="IVirtualBox" dir="in"/>
17195 <param name="return" type="ISession" dir="return"/>
17196 </method>
17197
17198 <method name="logoff">
17199 <desc>
17200 Logs off the client who has previously logged on with <link to="IWebsessionManager::logon" />
17201 and destroys all resources associated with the session (most importantly, all
17202 managed objects created in the server while the session was active).
17203 </desc>
17204 <param name="refIVirtualBox" type="IVirtualBox" dir="in"/>
17205 </method>
17206
17207 </interface>
17208
17209</if>
17210
17211 <!--
17212 // IPerformanceCollector & friends
17213 /////////////////////////////////////////////////////////////////////////
17214 -->
17215
17216 <interface
17217 name="IPerformanceMetric" extends="$unknown"
17218 uuid="2a1a60ae-9345-4019-ad53-d34ba41cbfe9" wsmap="managed"
17219 >
17220 <desc>
17221 The IPerformanceMetric interface represents parameters of the given
17222 performance metric.
17223 </desc>
17224
17225 <attribute name="metricName" type="wstring" readonly="yes">
17226 <desc>
17227 Name of the metric.
17228 </desc>
17229 </attribute>
17230
17231 <attribute name="object" type="$unknown" readonly="yes">
17232 <desc>
17233 Object this metric belongs to.
17234 </desc>
17235 </attribute>
17236
17237 <attribute name="description" type="wstring" readonly="yes">
17238 <desc>
17239 Textual description of the metric.
17240 </desc>
17241 </attribute>
17242
17243 <attribute name="period" type="unsigned long" readonly="yes">
17244 <desc>
17245 Time interval between samples, measured in seconds.
17246 </desc>
17247 </attribute>
17248
17249 <attribute name="count" type="unsigned long" readonly="yes">
17250 <desc>
17251 Number of recent samples retained by the performance collector for this
17252 metric.
17253
17254 When the collected sample count exceeds this number, older samples
17255 are discarded.
17256 </desc>
17257 </attribute>
17258
17259 <attribute name="unit" type="wstring" readonly="yes">
17260 <desc>
17261 Unit of measurement.
17262 </desc>
17263 </attribute>
17264
17265 <attribute name="minimumValue" type="long" readonly="yes">
17266 <desc>
17267 Minimum possible value of this metric.
17268 </desc>
17269 </attribute>
17270
17271 <attribute name="maximumValue" type="long" readonly="yes">
17272 <desc>
17273 Maximum possible value of this metric.
17274 </desc>
17275 </attribute>
17276 </interface>
17277
17278 <interface
17279 name="IPerformanceCollector" extends="$unknown"
17280 uuid="e22e1acb-ac4a-43bb-a31c-17321659b0c6"
17281 wsmap="managed"
17282 >
17283 <desc>
17284 The IPerformanceCollector interface represents a service that collects
17285 and stores performance metrics data.
17286
17287 Performance metrics are associated with objects of interfaces like IHost
17288 and IMachine. Each object has a distinct set of performance metrics. The
17289 set can be obtained with <link to="IPerformanceCollector::getMetrics"/>.
17290
17291 Metric data is collected at the specified intervals and is retained
17292 internally. The interval and the number of retained samples can be set
17293 with <link to="IPerformanceCollector::setupMetrics" />. Both metric data
17294 and collection settings are not persistent, they are discarded as soon as
17295 VBoxSVC process terminates. Moreover, metric settings and data associated
17296 with a particular VM only exist while VM is running. They disappear as
17297 soon as VM shuts down. It is not possible to set up metrics for machines
17298 that are powered off. One needs to start VM first, then set up metric
17299 collection parameters.
17300
17301 Metrics are organized hierarchically, with each level separated by a
17302 slash (/) character. Generally, the scheme for metric names is like this:
17303
17304 <tt>Category/Metric[/SubMetric][:aggregation]</tt>
17305
17306 "Category/Metric" together form the base metric name. A base metric is
17307 the smallest unit for which a sampling interval and the number of
17308 retained samples can be set. Only base metrics can be enabled and
17309 disabled. All sub-metrics are collected when their base metric is
17310 collected. Collected values for any set of sub-metrics can be queried
17311 with <link to="IPerformanceCollector::queryMetricsData" />.
17312
17313 For example "CPU/Load/User:avg" metric name stands for the "CPU"
17314 category, "Load" metric, "User" submetric, "average" aggregate. An
17315 aggregate function is computed over all retained data. Valid aggregate
17316 functions are:
17317
17318 <ul>
17319 <li>avg -- average</li>
17320 <li>min -- minimum</li>
17321 <li>max -- maximum</li>
17322 </ul>
17323
17324 When setting up metric parameters, querying metric data, enabling or
17325 disabling metrics wildcards can be used in metric names to specify a
17326 subset of metrics. For example, to select all CPU-related metrics
17327 use <tt>CPU/*</tt>, all averages can be queried using <tt>*:avg</tt> and
17328 so on. To query metric values without aggregates <tt>*:</tt> can be used.
17329
17330 The valid names for base metrics are:
17331
17332 <ul>
17333 <li>CPU/Load</li>
17334 <li>CPU/MHz</li>
17335 <li>RAM/Usage</li>
17336 <li>RAM/VMM</li>
17337 </ul>
17338
17339 The general sequence for collecting and retrieving the metrics is:
17340 <ul>
17341 <li>
17342 Obtain an instance of IPerformanceCollector with
17343 <link to="IVirtualBox::performanceCollector" />
17344 </li>
17345 <li>
17346 Allocate and populate an array with references to objects the metrics
17347 will be collected for. Use references to IHost and IMachine objects.
17348 </li>
17349 <li>
17350 Allocate and populate an array with base metric names the data will
17351 be collected for.
17352 </li>
17353 <li>
17354 Call <link to="IPerformanceCollector::setupMetrics" />. From now on
17355 the metric data will be collected and stored.
17356 </li>
17357 <li>
17358 Wait for the data to get collected.
17359 </li>
17360 <li>
17361 Allocate and populate an array with references to objects the metric
17362 values will be queried for. You can re-use the object array used for
17363 setting base metrics.
17364 </li>
17365 <li>
17366 Allocate and populate an array with metric names the data will be
17367 collected for. Note that metric names differ from base metric names.
17368 </li>
17369 <li>
17370 Call <link to="IPerformanceCollector::queryMetricsData" />. The data
17371 that have been collected so far are returned. Note that the values
17372 are still retained internally and data collection continues.
17373 </li>
17374 </ul>
17375
17376 For an example of usage refer to the following files in VirtualBox SDK:
17377 <ul>
17378 <li>
17379 Java: <tt>bindings/webservice/java/jax-ws/samples/metrictest.java</tt>
17380 </li>
17381 <li>
17382 Python: <tt>bindings/xpcom/python/sample/shellcommon.py</tt>
17383 </li>
17384 </ul>
17385 </desc>
17386
17387 <attribute name="metricNames" type="wstring" readonly="yes" safearray="yes">
17388 <desc>
17389 Array of unique names of metrics.
17390
17391 This array represents all metrics supported by the performance
17392 collector. Individual objects do not necessarily support all of them.
17393 <link to="IPerformanceCollector::getMetrics"/> can be used to get the
17394 list of supported metrics for a particular object.
17395 </desc>
17396 </attribute>
17397
17398 <method name="getMetrics">
17399 <desc>
17400 Returns parameters of specified metrics for a set of objects.
17401 <note>
17402 @c Null metrics array means all metrics. @c Null object array means
17403 all existing objects.
17404 </note>
17405 </desc>
17406 <param name="metricNames" type="wstring" dir="in" safearray="yes">
17407 <desc>
17408 Metric name filter. Currently, only a comma-separated list of metrics
17409 is supported.
17410 </desc>
17411 </param>
17412 <param name="objects" type="$unknown" dir="in" safearray="yes">
17413 <desc>
17414 Set of objects to return metric parameters for.
17415 </desc>
17416 </param>
17417 <param name="metrics" type="IPerformanceMetric" dir="return" safearray="yes">
17418 <desc>
17419 Array of returned metric parameters.
17420 </desc>
17421 </param>
17422 </method>
17423
17424 <method name="setupMetrics">
17425 <desc>
17426 Sets parameters of specified base metrics for a set of objects. Returns
17427 an array of <link to="IPerformanceMetric" /> describing the metrics
17428 have been affected.
17429 <note>
17430 @c Null or empty metric name array means all metrics. @c Null or
17431 empty object array means all existing objects. If metric name array
17432 contains a single element and object array contains many, the single
17433 metric name array element is applied to each object array element to
17434 form metric/object pairs.
17435 </note>
17436 </desc>
17437 <param name="metricNames" type="wstring" dir="in" safearray="yes">
17438 <desc>
17439 Metric name filter. Comma-separated list of metrics with wildcard
17440 support.
17441 </desc>
17442 </param>
17443 <param name="objects" type="$unknown" dir="in" safearray="yes">
17444 <desc>
17445 Set of objects to setup metric parameters for.
17446 </desc>
17447 </param>
17448 <param name="period" type="unsigned long" dir="in">
17449 <desc>
17450 Time interval in seconds between two consecutive samples of
17451 performance data.
17452 </desc>
17453 </param>
17454 <param name="count" type="unsigned long" dir="in">
17455 <desc>
17456 Number of samples to retain in performance data history. Older
17457 samples get discarded.
17458 </desc>
17459 </param>
17460 <param name="affectedMetrics" type="IPerformanceMetric" dir="return" safearray="yes">
17461 <desc>
17462 Array of metrics that have been modified by the call to this method.
17463 </desc>
17464 </param>
17465 </method>
17466
17467 <method name="enableMetrics">
17468 <desc>
17469 Turns on collecting specified base metrics. Returns an array of
17470 <link to="IPerformanceMetric" /> describing the metrics have been
17471 affected.
17472 <note>
17473 @c Null or empty metric name array means all metrics. @c Null or
17474 empty object array means all existing objects. If metric name array
17475 contains a single element and object array contains many, the single
17476 metric name array element is applied to each object array element to
17477 form metric/object pairs.
17478 </note>
17479 </desc>
17480 <param name="metricNames" type="wstring" dir="in" safearray="yes">
17481 <desc>
17482 Metric name filter. Comma-separated list of metrics with wildcard
17483 support.
17484 </desc>
17485 </param>
17486 <param name="objects" type="$unknown" dir="in" safearray="yes">
17487 <desc>
17488 Set of objects to enable metrics for.
17489 </desc>
17490 </param>
17491 <param name="affectedMetrics" type="IPerformanceMetric" dir="return" safearray="yes">
17492 <desc>
17493 Array of metrics that have been modified by the call to this method.
17494 </desc>
17495 </param>
17496 </method>
17497
17498 <method name="disableMetrics">
17499 <desc>
17500 Turns off collecting specified base metrics. Returns an array of
17501 <link to="IPerformanceMetric" /> describing the metrics have been
17502 affected.
17503 <note>
17504 @c Null or empty metric name array means all metrics. @c Null or
17505 empty object array means all existing objects. If metric name array
17506 contains a single element and object array contains many, the single
17507 metric name array element is applied to each object array element to
17508 form metric/object pairs.
17509 </note>
17510 </desc>
17511 <param name="metricNames" type="wstring" dir="in" safearray="yes">
17512 <desc>
17513 Metric name filter. Comma-separated list of metrics with wildcard
17514 support.
17515 </desc>
17516 </param>
17517 <param name="objects" type="$unknown" dir="in" safearray="yes">
17518 <desc>
17519 Set of objects to disable metrics for.
17520 </desc>
17521 </param>
17522 <param name="affectedMetrics" type="IPerformanceMetric" dir="return" safearray="yes">
17523 <desc>
17524 Array of metrics that have been modified by the call to this method.
17525 </desc>
17526 </param>
17527 </method>
17528
17529 <method name="queryMetricsData">
17530 <desc>
17531 Queries collected metrics data for a set of objects.
17532
17533 The data itself and related metric information are returned in seven
17534 parallel and one flattened array of arrays. Elements of
17535 <tt>returnMetricNames, returnObjects, returnUnits, returnScales,
17536 returnSequenceNumbers, returnDataIndices and returnDataLengths</tt> with
17537 the same index describe one set of values corresponding to a single
17538 metric.
17539
17540 The <tt>returnData</tt> parameter is a flattened array of arrays. Each
17541 start and length of a sub-array is indicated by
17542 <tt>returnDataIndices</tt> and <tt>returnDataLengths</tt>. The first
17543 value for metric <tt>metricNames[i]</tt> is at
17544 <tt>returnData[returnIndices[i]]</tt>.
17545
17546 <note>
17547 @c Null or empty metric name array means all metrics. @c Null or
17548 empty object array means all existing objects. If metric name array
17549 contains a single element and object array contains many, the single
17550 metric name array element is applied to each object array element to
17551 form metric/object pairs.
17552 </note>
17553 <note>
17554 Data collection continues behind the scenes after call to @c
17555 queryMetricsData. The return data can be seen as the snapshot of the
17556 current state at the time of @c queryMetricsData call. The internally
17557 kept metric values are not cleared by the call. This makes possible
17558 querying different subsets of metrics or aggregates with subsequent
17559 calls. If periodic querying is needed it is highly suggested to query
17560 the values with @c interval*count period to avoid confusion. This way
17561 a completely new set of data values will be provided by each query.
17562 </note>
17563 </desc>
17564 <param name="metricNames" type="wstring" dir="in" safearray="yes">
17565 <desc>
17566 Metric name filter. Comma-separated list of metrics with wildcard
17567 support.
17568 </desc>
17569 </param>
17570 <param name="objects" type="$unknown" dir="in" safearray="yes">
17571 <desc>
17572 Set of objects to query metrics for.
17573 </desc>
17574 </param>
17575 <param name="returnMetricNames" type="wstring" dir="out" safearray="yes">
17576 <desc>
17577 Names of metrics returned in @c returnData.
17578 </desc>
17579 </param>
17580 <param name="returnObjects" type="$unknown" dir="out" safearray="yes">
17581 <desc>
17582 Objects associated with metrics returned in @c returnData.
17583 </desc>
17584 </param>
17585 <param name="returnUnits" type="wstring" dir="out" safearray="yes">
17586 <desc>
17587 Units of measurement for each returned metric.
17588 </desc>
17589 </param>
17590 <param name="returnScales" type="unsigned long" dir="out" safearray="yes">
17591 <desc>
17592 Divisor that should be applied to return values in order to get
17593 floating point values. For example:
17594 <tt>(double)returnData[returnDataIndices[0]+i] / returnScales[0]</tt>
17595 will retrieve the floating point value of i-th sample of the first
17596 metric.
17597 </desc>
17598 </param>
17599 <param name="returnSequenceNumbers" type="unsigned long" dir="out" safearray="yes">
17600 <desc>
17601 Sequence numbers of the first elements of value sequences of
17602 particular metrics returned in @c returnData. For aggregate metrics
17603 it is the sequence number of the sample the aggregate started
17604 calculation from.
17605 </desc>
17606 </param>
17607 <param name="returnDataIndices" type="unsigned long" dir="out" safearray="yes">
17608 <desc>
17609 Indices of the first elements of value sequences of particular
17610 metrics returned in @c returnData.
17611 </desc>
17612 </param>
17613 <param name="returnDataLengths" type="unsigned long" dir="out" safearray="yes">
17614 <desc>
17615 Lengths of value sequences of particular metrics.
17616 </desc>
17617 </param>
17618 <param name="returnData" type="long" dir="return" safearray="yes">
17619 <desc>
17620 Flattened array of all metric data containing sequences of values for
17621 each metric.
17622 </desc>
17623 </param>
17624 </method>
17625
17626 </interface>
17627
17628 <enum
17629 name="NATAliasMode"
17630 uuid="67772168-50d9-11df-9669-7fb714ee4fa1"
17631 >
17632 <desc></desc>
17633 <const name="AliasLog" value="0x1">
17634 <desc></desc>
17635 </const>
17636 <const name="AliasProxyOnly" value="0x02">
17637 <desc></desc>
17638 </const>
17639 <const name="AliasUseSamePorts" value="0x04">
17640 <desc></desc>
17641 </const>
17642 </enum>
17643
17644 <enum
17645 name="NATProtocol"
17646 uuid="e90164be-eb03-11de-94af-fff9b1c1b19f"
17647 >
17648 <desc>Protocol definitions used with NAT port-forwarding rules.</desc>
17649 <const name="UDP" value="0">
17650 <desc>Port-forwarding uses UDP protocol.</desc>
17651 </const>
17652 <const name="TCP" value="1">
17653 <desc>Port-forwarding uses TCP protocol.</desc>
17654 </const>
17655 </enum>
17656
17657 <interface
17658 name="INATEngine" extends="$unknown"
17659 uuid="26451b99-3b2d-4dcb-8e4b-d63654218175"
17660 wsmap="managed"
17661 >
17662 <desc>Interface for managing a NAT engine which is used with a virtual machine. This
17663 allows for changing NAT behavior such as port-forwarding rules. This interface is
17664 used in the <link to="INetworkAdapter::NATEngine" /> attribute.</desc>
17665 <attribute name="network" type="wstring">
17666 <desc>The network attribute of the NAT engine (the same value is used with built-in
17667 DHCP server to fill corresponding fields of DHCP leases).</desc>
17668 </attribute>
17669 <attribute name="hostIP" type="wstring">
17670 <desc>IP of host interface to bind all opened sockets to.
17671 <note>Changing this does not change binding of port forwarding.</note>
17672 </desc>
17673 </attribute>
17674 <attribute name="TFTPPrefix" type="wstring">
17675 <desc>TFTP prefix attribute which is used with the built-in DHCP server to fill
17676 the corresponding fields of DHCP leases.</desc>
17677 </attribute>
17678 <attribute name="TFTPBootFile" type="wstring">
17679 <desc>TFTP boot file attribute which is used with the built-in DHCP server to fill
17680 the corresponding fields of DHCP leases.</desc>
17681 </attribute>
17682 <attribute name="TFTPNextServer" type="wstring">
17683 <desc>TFTP server attribute which is used with the built-in DHCP server to fill
17684 the corresponding fields of DHCP leases.
17685 <note>The preferred form is IPv4 addresses.</note>
17686 </desc>
17687 </attribute>
17688 <attribute name="aliasMode" type="unsigned long">
17689 <desc></desc>
17690 </attribute>
17691 <attribute name="DNSPassDomain" type="boolean">
17692 <desc>Whether the DHCP server should pass the DNS domain used by the host.</desc>
17693 </attribute>
17694 <attribute name="DNSProxy" type="boolean">
17695 <desc>Whether the DHCP server (and the DNS traffic by NAT) should pass the address
17696 of the DNS proxy and process traffic using DNS servers registered on the host.</desc>
17697 </attribute>
17698 <attribute name="DNSUseHostResolver" type="boolean">
17699 <desc>Whether the DHCP server (and the DNS traffic by NAT) should pass the address
17700 of the DNS proxy and process traffic using the host resolver mechanism.</desc>
17701 </attribute>
17702 <attribute name="redirects" type="wstring" readonly="yes" safearray="yes">
17703 <desc>Array of NAT port-forwarding rules in string representation, in the following
17704 format: "name,protocol id,host ip,host port,guest ip,guest port".</desc>
17705 </attribute>
17706 <method name="setNetworkSettings">
17707 <desc>Sets network configuration of the NAT engine.</desc>
17708 <param name="mtu" type="unsigned long" dir="in">
17709 <desc>MTU (maximum transmission unit) of the NAT engine in bytes.</desc>
17710 </param>
17711 <param name="sockSnd" type="unsigned long" dir="in">
17712 <desc>Capacity of the socket send buffer in bytes when creating a new socket.</desc>
17713 </param>
17714 <param name="sockRcv" type="unsigned long" dir="in">
17715 <desc>Capacity of the socket receive buffer in bytes when creating a new socket.</desc>
17716 </param>
17717 <param name="TcpWndSnd" type="unsigned long" dir="in">
17718 <desc>Initial size of the NAT engine's sending TCP window in bytes when
17719 establishing a new TCP connection.</desc>
17720 </param>
17721 <param name="TcpWndRcv" type="unsigned long" dir="in">
17722 <desc>Initial size of the NAT engine's receiving TCP window in bytes when
17723 establishing a new TCP connection.</desc>
17724 </param>
17725 </method>
17726 <method name="getNetworkSettings">
17727 <desc>Returns network configuration of NAT engine. See <link to="#setNetworkSettings" />
17728 for parameter descriptions.</desc>
17729 <param name="mtu" type="unsigned long" dir="out" />
17730 <param name="sockSnd" type="unsigned long" dir="out" />
17731 <param name="sockRcv" type="unsigned long" dir="out" />
17732 <param name="TcpWndSnd" type="unsigned long" dir="out" />
17733 <param name="TcpWndRcv" type="unsigned long" dir="out" />
17734 </method>
17735 <method name="addRedirect">
17736 <desc>Adds a new NAT port-forwarding rule.</desc>
17737 <param name="name" type="wstring" dir="in">
17738 <desc>The name of the rule. An empty name is acceptable, in which case the NAT engine
17739 auto-generates one using the other parameters.</desc>
17740 </param>
17741 <param name="proto" type="NATProtocol" dir="in">
17742 <desc>Protocol handled with the rule.</desc>
17743 </param>
17744 <param name="hostIP" type="wstring" dir="in">
17745 <desc>IP of the host interface to which the rule should apply. An empty ip address is
17746 acceptable, in which case the NAT engine binds the handling socket to any interface.</desc>
17747 </param>
17748 <param name="hostPort" type="unsigned short" dir="in">
17749 <desc>The port number to listen on.</desc>
17750 </param>
17751 <param name="guestIP" type="wstring" dir="in">
17752 <desc>The IP address of the guest which the NAT engine will forward matching packets
17753 to. An empty IP address is acceptable, in which case the NAT engine will forward
17754 packets to the first DHCP lease (x.x.x.15).</desc>
17755 </param>
17756 <param name="guestPort" type="unsigned short" dir="in">
17757 <desc>The port number to forward.</desc>
17758 </param>
17759 </method>
17760 <method name="removeRedirect">
17761 <desc>Removes a port-forwarding rule that was previously registered.</desc>
17762 <param name="name" type="wstring" dir="in">
17763 <desc>The name of the rule to delete.</desc>
17764 </param>
17765 </method>
17766 </interface>
17767
17768 <!--
17769 // IExtPackManager
17770 /////////////////////////////////////////////////////////////////////////
17771 -->
17772
17773 <interface
17774 name="IExtPackPlugIn" extends="$unknown"
17775 uuid="58000040-e718-4746-bbce-4b86d96da461"
17776 wsmap="suppress"
17777 >
17778 <desc>
17779 Interface for keeping information about a plug-in that ships with an
17780 extension pack.
17781 </desc>
17782 <attribute name="name" type="wstring" readonly="yes">
17783 <desc>The plug-in name.</desc>
17784 </attribute>
17785 <attribute name="description" type="wstring" readonly="yes">
17786 <desc>The plug-in description.</desc>
17787 </attribute>
17788 <attribute name="frontend" type="wstring" readonly="yes">
17789 <desc>
17790 The name of the frontend or component name this plug-in plugs into.
17791 </desc>
17792 </attribute>
17793 <attribute name="modulePath" type="wstring" readonly="yes">
17794 <desc> The module path. </desc>
17795 </attribute>
17796 </interface>
17797
17798 <interface
17799 name="IExtPackBase" extends="$unknown"
17800 uuid="f79b75d8-2890-4f34-ffff-ffffa144e82c"
17801 wsmap="suppress"
17802 >
17803 <desc>
17804 Interface for querying information about an extension pack as well as
17805 accessing COM objects within it.
17806 </desc>
17807 <attribute name="name" type="wstring" readonly="yes">
17808 <desc>The extension pack name. This is unique.</desc>
17809 </attribute>
17810 <attribute name="description" type="wstring" readonly="yes">
17811 <desc>The extension pack description.</desc>
17812 </attribute>
17813 <attribute name="version" type="wstring" readonly="yes">
17814 <desc>
17815 The extension pack version string. This is restricted to the dotted
17816 version number and optionally a build indicator. No tree revision or
17817 tag will be included in the string as those things are available as
17818 separate properties. An optional publisher tag may be present like for
17819 <link to="IVirtualBox::version"/>.
17820
17821 Examples: "1.2.3", "1.2.3_BETA1" and "1.2.3_RC2".
17822 </desc>
17823 </attribute>
17824 <attribute name="revision" type="unsigned long" readonly="yes">
17825 <desc>The extension pack internal revision number.</desc>
17826 </attribute>
17827 <attribute name="edition" type="wstring" readonly="yes">
17828 <desc>
17829 Edition indicator. This is usually empty.
17830
17831 Can for instance be used to help distinguishing between two editions
17832 of the same extension pack where only the license, service contract or
17833 something differs.
17834 </desc>
17835 </attribute>
17836 <attribute name="VRDEModule" type="wstring" readonly="yes">
17837 <desc>The name of the VRDE module if the extension pack sports one.</desc>
17838 </attribute>
17839 <attribute name="plugIns" type="IExtPackPlugIn" safearray="yes" readonly="yes">
17840 <desc>Plug-ins provided by this extension pack.</desc>
17841 </attribute>
17842 <attribute name="usable" type="boolean" readonly="yes">
17843 <desc>
17844 Indicates whether the extension pack is usable or not.
17845
17846 There are a number of reasons why an extension pack might be unusable,
17847 typical examples would be broken installation/file or that it is
17848 incompatible with the current VirtualBox version.
17849 </desc>
17850 </attribute>
17851 <attribute name="whyUnusable" type="wstring" readonly="yes">
17852 <desc>
17853 String indicating why the extension pack is not usable. This is an
17854 empty string if usable and always a non-empty string if not usable.
17855 </desc>
17856 </attribute>
17857 <attribute name="showLicense" type="boolean" readonly="yes">
17858 <desc>Whether to show the license before installation</desc>
17859 </attribute>
17860 <attribute name="license" type="wstring" readonly="yes">
17861 <desc>
17862 The default HTML license text for the extension pack. Same as
17863 calling <link to="#queryLicense">queryLicense</link> with
17864 preferredLocale and preferredLanguage as empty strings and format set
17865 to html.
17866 </desc>
17867 </attribute>
17868
17869 <method name="queryLicense">
17870 <desc>
17871 Full feature version of the license attribute.
17872 </desc>
17873 <param name="preferredLocale" type="wstring" dir="in">
17874 <desc>
17875 The preferred license locale. Pass an empty string to get the default
17876 license.
17877 </desc>
17878 </param>
17879 <param name="preferredLanguage" type="wstring" dir="in">
17880 <desc>
17881 The preferred license language. Pass an empty string to get the
17882 default language for the locale.
17883 </desc>
17884 </param>
17885 <param name="format" type="wstring" dir="in">
17886 <desc>
17887 The license format: html, rtf or txt. If a license is present there
17888 will always be an HTML of it, the rich text format (RTF) and plain
17889 text (txt) versions are optional. If
17890 </desc>
17891 </param>
17892 <param name="licenseText" type="wstring" dir="return">
17893 <desc>The license text.</desc>
17894 </param>
17895 </method>
17896
17897 </interface>
17898
17899 <interface
17900 name="IExtPack" extends="IExtPackBase"
17901 uuid="431685da-3618-4ebc-b038-833ba829b4b2"
17902 wsmap="suppress"
17903 >
17904 <desc>
17905 Interface for querying information about an extension pack as well as
17906 accessing COM objects within it.
17907 </desc>
17908 <method name="queryObject">
17909 <desc>
17910 Queries the IUnknown interface to an object in the extension pack
17911 main module. This allows plug-ins and others to talk directly to an
17912 extension pack.
17913 </desc>
17914 <param name="objUuid" type="wstring" dir="in">
17915 <desc>The object ID. What exactly this is </desc>
17916 </param>
17917 <param name="returnInterface" type="$unknown" dir="return">
17918 <desc>The queried interface.</desc>
17919 </param>
17920 </method>
17921 </interface>
17922
17923 <interface
17924 name="IExtPackFile" extends="IExtPackBase"
17925 uuid="b6b49f55-efcc-4f08-b486-56e8d8afb10b"
17926 wsmap="suppress"
17927 >
17928 <desc>
17929 Extension pack file (aka tarball, .vbox-extpack) representation returned
17930 by <link to="IExtPackManager::openExtPackFile"/>. This provides the base
17931 extension pack information with the addition of the file name.
17932 </desc>
17933 <attribute name="filePath" type="wstring" readonly="yes">
17934 <desc>
17935 The path to the extension pack file.
17936 </desc>
17937 </attribute>
17938
17939 <method name="install">
17940 <desc>
17941 Install the extension pack.
17942 </desc>
17943 <param name="replace" type="boolean" dir="in">
17944 <desc>
17945 Set this to automatically uninstall any existing extension pack with
17946 the same name as the one being installed.
17947 </desc>
17948 </param>
17949 <param name="displayInfo" type="wstring" dir="in">
17950 <desc>
17951 Platform specific display information. Reserved for future hacks.
17952 </desc>
17953 </param>
17954 <param name="progess" type="IProgress" dir="return">
17955 <desc>
17956 Progress object for the operation.
17957 </desc>
17958 </param>
17959 </method>
17960 </interface>
17961
17962 <interface
17963 name="IExtPackManager" extends="$unknown"
17964 uuid="3295e6ce-b051-47b2-9514-2c588bfe7554"
17965 wsmap="suppress"
17966 >
17967 <desc>
17968 Interface for managing VirtualBox Extension Packs.
17969
17970 TODO: Describe extension packs, how they are managed and how to create
17971 one.
17972 </desc>
17973
17974 <attribute name="installedExtPacks" type="IExtPack" safearray="yes" readonly="yes">
17975 <desc>
17976 List of the installed extension packs.
17977 </desc>
17978 </attribute>
17979
17980 <method name="find">
17981 <desc>
17982 Returns the extension pack with the specified name if found.
17983
17984 <result name="VBOX_E_OBJECT_NOT_FOUND">
17985 No extension pack matching @a name was found.
17986 </result>
17987 </desc>
17988 <param name="name" type="wstring" dir="in">
17989 <desc>The name of the extension pack to locate.</desc>
17990 </param>
17991 <param name="returnData" type="IExtPack" dir="return">
17992 <desc>The extension pack if found.</desc>
17993 </param>
17994 </method>
17995
17996 <method name="openExtPackFile">
17997 <desc>
17998 Attempts to open an extension pack file in preparation for
17999 installation.
18000 </desc>
18001 <param name="path" type="wstring" dir="in">
18002 <desc>The path of the extension pack tarball. This can optionally be
18003 followed by a "::SHA-256=hex-digit" of the tarball. </desc>
18004 </param>
18005 <param name="file" type="IExtPackFile" dir="return">
18006 <desc>The interface of the extension pack file object.</desc>
18007 </param>
18008 </method>
18009
18010 <method name="uninstall">
18011 <desc>Uninstalls an extension pack, removing all related files.</desc>
18012 <param name="name" type="wstring" dir="in">
18013 <desc>The name of the extension pack to uninstall.</desc>
18014 </param>
18015 <param name="forcedRemoval" type="boolean" dir="in">
18016 <desc>
18017 Forced removal of the extension pack. This means that the uninstall
18018 hook will not be called.
18019 </desc>
18020 </param>
18021 <param name="displayInfo" type="wstring" dir="in">
18022 <desc>
18023 Platform specific display information. Reserved for future hacks.
18024 </desc>
18025 </param>
18026 <param name="progess" type="IProgress" dir="return">
18027 <desc>
18028 Progress object for the operation.
18029 </desc>
18030 </param>
18031 </method>
18032
18033 <method name="cleanup">
18034 <desc>Cleans up failed installs and uninstalls</desc>
18035 </method>
18036
18037 <method name="queryAllPlugInsForFrontend">
18038 <desc>
18039 Gets the path to all the plug-in modules for a given frontend.
18040
18041 This is a convenience method that is intended to simplify the plug-in
18042 loading process for a frontend.
18043 </desc>
18044 <param name="frontendName" type="wstring" dir="in">
18045 <desc>The name of the frontend or component.</desc>
18046 </param>
18047 <param name="plugInModules" type="wstring" dir="return" safearray="yes">
18048 <desc>Array containing the plug-in modules (full paths).</desc>
18049 </param>
18050 </method>
18051
18052 <method name="isExtPackUsable">
18053 <desc>Check if the given extension pack is loaded and usable.</desc>
18054 <param name="name" type="wstring" dir="in">
18055 <desc>The name of the extension pack to check for.</desc>
18056 </param>
18057 <param name="usable" type="boolean" dir="return">
18058 <desc>Is the given extension pack loaded and usable.</desc>
18059 </param>
18060 </method>
18061
18062 </interface>
18063
18064 <!--
18065 // BandwidthGroupType
18066 /////////////////////////////////////////////////////////////////////////
18067 -->
18068 <enum
18069 name="BandwidthGroupType"
18070 uuid="1d92b67d-dc69-4be9-ad4c-93a01e1e0c8e">
18071
18072 <desc>
18073 Type of a bandwidth control group.
18074 </desc>
18075
18076 <const name="Null" value="0">
18077 <desc>
18078 Null type, must be first.
18079 </desc>
18080 </const>
18081
18082 <const name="Disk" value="1">
18083 <desc>
18084 The bandwidth group controls disk I/O.
18085 </desc>
18086 </const>
18087
18088 <const name="Network" value="2">
18089 <desc>
18090 The bandwidth group controls network I/O.
18091 </desc>
18092 </const>
18093
18094 </enum>
18095
18096 <!--
18097 // IBandwidthGroup
18098 /////////////////////////////////////////////////////////////////////////
18099 -->
18100 <interface
18101 name="IBandwidthGroup" extends="$unknown"
18102 uuid="badea2d7-0261-4146-89f0-6a57cc34833d"
18103 wsmap="managed"
18104 >
18105 <desc>Represents one bandwidth group.</desc>
18106
18107 <attribute name="name" type="wstring" readonly="yes">
18108 <desc>Name of the group.</desc>
18109 </attribute>
18110
18111 <attribute name="type" type="BandwidthGroupType" readonly="yes">
18112 <desc>Type of the group.</desc>
18113 </attribute>
18114
18115 <attribute name="reference" type="unsigned long" readonly="yes">
18116 <desc>How many devices/medium attachements use this group.</desc>
18117 </attribute>
18118
18119 <attribute name="maxBytesPerSec" type="long long">
18120 <desc>The maximum number of bytes which can be transfered by all
18121 entities attached to this group during one second.</desc>
18122 </attribute>
18123
18124 </interface>
18125
18126 <!--
18127 // IBandwidthControl
18128 /////////////////////////////////////////////////////////////////////////
18129 -->
18130 <interface
18131 name="IBandwidthControl" extends="$unknown"
18132 uuid="e2eb3930-d2f4-4f87-be17-0707e30f019f"
18133 wsmap="managed"
18134 >
18135 <desc>
18136 Controls the bandwidth groups of one machine used to cap I/O done by a VM.
18137 This includes network and disk I/O.
18138 </desc>
18139
18140 <attribute name="numGroups" type="unsigned long" readonly="yes">
18141 <desc>
18142 The current number of existing bandwidth groups managed.
18143 </desc>
18144 </attribute>
18145
18146 <method name="createBandwidthGroup">
18147 <desc>
18148 Creates a new bandwidth group.
18149 </desc>
18150
18151 <param name="name" type="wstring" dir="in">
18152 <desc>Name of the bandwidth group.</desc>
18153 </param>
18154 <param name="type" type="BandwidthGroupType" dir="in">
18155 <desc>The type of the bandwidth group (network or disk).</desc>
18156 </param>
18157 <param name="maxBytesPerSec" type="long long" dir="in">
18158 <desc>The maximum number of bytes which can be transfered by all
18159 entities attached to this group during one second.</desc>
18160 </param>
18161 </method>
18162
18163 <method name="deleteBandwidthGroup">
18164 <desc>
18165 Deletes a new bandwidth group.
18166 </desc>
18167
18168 <param name="name" type="wstring" dir="in">
18169 <desc>Name of the bandwidth group to delete.</desc>
18170 </param>
18171 </method>
18172
18173 <method name="getBandwidthGroup" const="yes">
18174 <desc>
18175 Get a bandwidth group by name.
18176 </desc>
18177
18178 <param name="name" type="wstring" dir="in">
18179 <desc>Name of the bandwidth group to get.</desc>
18180 </param>
18181 <param name="bandwidthGroup" type="IBandwidthGroup" dir="return">
18182 <desc>Where to store the bandwidth group on success.</desc>
18183 </param>
18184 </method>
18185
18186 <method name="getAllBandwidthGroups" const="yes">
18187 <desc>
18188 Get all managed bandwidth groups.
18189 </desc>
18190
18191 <param name="bandwidthGroups" type="IBandwidthGroup" dir="return" safearray="yes">
18192 <desc>The array of managed bandwidth groups.</desc>
18193 </param>
18194 </method>
18195 </interface>
18196
18197 <!--
18198 // IVirtualBoxClient
18199 /////////////////////////////////////////////////////////////////////////
18200 -->
18201
18202 <interface
18203 name="IVirtualBoxClient" extends="$unknown"
18204 uuid="5fe0bd48-1181-40d1-991f-3b02f269a823"
18205 wsmap="suppress"
18206 >
18207 <desc>
18208 Convenience interface for client applications. Treat this as a
18209 singleton, i.e. never create more than one instance of this interface.
18210
18211 At the moment only available for clients of the local API (not usable
18212 via the webservice). Once the session logic is redesigned this might
18213 change.
18214 </desc>
18215
18216 <attribute name="virtualBox" type="IVirtualBox" readonly="yes">
18217 <desc>
18218 Reference to the server-side API root object.
18219 </desc>
18220 </attribute>
18221
18222 <attribute name="session" type="ISession" readonly="yes">
18223 <desc>
18224 Create a new session object and return the reference to it.
18225 </desc>
18226 </attribute>
18227
18228 <attribute name="eventSource" type="IEventSource" readonly="yes">
18229 <desc>
18230 Event source for VirtualBoxClient events.
18231 </desc>
18232 </attribute>
18233
18234 </interface>
18235
18236 <!--
18237 // Events
18238 /////////////////////////////////////////////////////////////////////////
18239 -->
18240 <enum
18241 name="VBoxEventType"
18242 uuid="0d67e79e-b7b1-4919-aab3-b36866075515"
18243 >
18244
18245 <desc>
18246 Type of an event.
18247 See <link to="IEvent" /> for an introduction to VirtualBox event handling.
18248 </desc>
18249
18250 <const name="Invalid" value="0">
18251 <desc>
18252 Invalid event, must be first.
18253 </desc>
18254 </const>
18255
18256 <const name="Any" value="1">
18257 <desc>
18258 Wildcard for all events.
18259 Events of this type are never delivered, and only used in
18260 <link to="IEventSource::registerListener"/> call to simplify registration.
18261 </desc>
18262 </const>
18263
18264 <const name="Vetoable" value="2">
18265 <desc>
18266 Wildcard for all vetoable events. Events of this type are never delivered, and only
18267 used in <link to="IEventSource::registerListener"/> call to simplify registration.
18268 </desc>
18269 </const>
18270
18271 <const name="MachineEvent" value="3">
18272 <desc>
18273 Wildcard for all machine events. Events of this type are never delivered, and only used in
18274 <link to="IEventSource::registerListener"/> call to simplify registration.
18275 </desc>
18276 </const>
18277
18278 <const name="SnapshotEvent" value="4">
18279 <desc>
18280 Wildcard for all snapshot events. Events of this type are never delivered, and only used in
18281 <link to="IEventSource::registerListener"/> call to simplify registration.
18282 </desc>
18283 </const>
18284
18285 <const name="InputEvent" value="5">
18286 <desc>
18287 Wildcard for all input device (keyboard, mouse) events.
18288 Events of this type are never delivered, and only used in
18289 <link to="IEventSource::registerListener"/> call to simplify registration.
18290 </desc>
18291 </const>
18292
18293 <const name="LastWildcard" value="31">
18294 <desc>
18295 Last wildcard.
18296 </desc>
18297 </const>
18298
18299 <const name="OnMachineStateChanged" value="32">
18300 <desc>
18301 See <link to="IMachineStateChangedEvent">IMachineStateChangedEvent</link>.
18302 </desc>
18303 </const>
18304 <const name="OnMachineDataChanged" value="33">
18305 <desc>
18306 See <link to="IMachineDataChangedEvent">IMachineDataChangedEvent</link>.
18307 </desc>
18308 </const>
18309 <const name="OnExtraDataChanged" value="34">
18310 <desc>
18311 See <link to="IExtraDataChangedEvent">IExtraDataChangedEvent</link>.
18312 </desc>
18313 </const>
18314 <const name="OnExtraDataCanChange" value="35">
18315 <desc>
18316 See <link to="IExtraDataCanChangeEvent">IExtraDataCanChangeEvent</link>.
18317 </desc>
18318 </const>
18319 <const name="OnMediumRegistered" value="36">
18320 <desc>
18321 See <link to="IMediumRegisteredEvent">IMediumRegisteredEvent</link>.
18322 </desc>
18323 </const>
18324 <const name="OnMachineRegistered" value="37">
18325 <desc>
18326 See <link to="IMachineRegisteredEvent">IMachineRegisteredEvent</link>.
18327 </desc>
18328 </const>
18329 <const name="OnSessionStateChanged" value="38">
18330 <desc>
18331 See <link to="ISessionStateChangedEvent">ISessionStateChangedEvent</link>.
18332 </desc>
18333 </const>
18334 <const name="OnSnapshotTaken" value="39">
18335 <desc>
18336 See <link to="ISnapshotTakenEvent">ISnapshotTakenEvent</link>.
18337 </desc>
18338 </const>
18339 <const name="OnSnapshotDeleted" value="40">
18340 <desc>
18341 See <link to="ISnapshotDeletedEvent">ISnapshotDeletedEvent</link>.
18342 </desc>
18343 </const>
18344 <const name="OnSnapshotChanged" value="41">
18345 <desc>
18346 See <link to="ISnapshotChangedEvent">ISnapshotChangedEvent</link>.
18347 </desc>
18348 </const>
18349 <const name="OnGuestPropertyChanged" value="42">
18350 <desc>
18351 See <link to="IGuestPropertyChangedEvent">IGuestPropertyChangedEvent</link>.
18352 </desc>
18353 </const>
18354 <!-- Console events -->
18355 <const name="OnMousePointerShapeChanged" value="43">
18356 <desc>
18357 See <link to="IMousePointerShapeChangedEvent">IMousePointerShapeChangedEvent</link>.
18358 </desc>
18359 </const>
18360 <const name="OnMouseCapabilityChanged" value="44">
18361 <desc>
18362 See <link to="IMouseCapabilityChangedEvent">IMouseCapabilityChangedEvent</link>.
18363 </desc>
18364 </const>
18365 <const name="OnKeyboardLedsChanged" value="45">
18366 <desc>
18367 See <link to="IKeyboardLedsChangedEvent">IKeyboardLedsChangedEvent</link>.
18368 </desc>
18369 </const>
18370 <const name="OnStateChanged" value="46">
18371 <desc>
18372 See <link to="IStateChangedEvent">IStateChangedEvent</link>.
18373 </desc>
18374 </const>
18375 <const name="OnAdditionsStateChanged" value="47">
18376 <desc>
18377 See <link to="IAdditionsStateChangedEvent">IAdditionsStateChangedEvent</link>.
18378 </desc>
18379 </const>
18380 <const name="OnNetworkAdapterChanged" value="48">
18381 <desc>
18382 See <link to="INetworkAdapterChangedEvent">INetworkAdapterChangedEvent</link>.
18383 </desc>
18384 </const>
18385 <const name="OnSerialPortChanged" value="49">
18386 <desc>
18387 See <link to="ISerialPortChangedEvent">ISerialPortChangedEvent</link>.
18388 </desc>
18389 </const>
18390 <const name="OnParallelPortChanged" value="50">
18391 <desc>
18392 See <link to="IParallelPortChangedEvent">IParallelPortChangedEvent</link>.
18393 </desc>
18394 </const>
18395 <const name="OnStorageControllerChanged" value="51">
18396 <desc>
18397 See <link to="IStorageControllerChangedEvent">IStorageControllerChangedEvent</link>.
18398 </desc>
18399 </const>
18400 <const name="OnMediumChanged" value="52">
18401 <desc>
18402 See <link to="IMediumChangedEvent">IMediumChangedEvent</link>.
18403 </desc>
18404 </const>
18405 <const name="OnVRDEServerChanged" value="53">
18406 <desc>
18407 See <link to="IVRDEServerChangedEvent">IVRDEServerChangedEvent</link>.
18408 </desc>
18409 </const>
18410 <const name="OnUSBControllerChanged" value="54">
18411 <desc>
18412 See <link to="IUSBControllerChangedEvent">IUSBControllerChangedEvent</link>.
18413 </desc>
18414 </const>
18415 <const name="OnUSBDeviceStateChanged" value="55">
18416 <desc>
18417 See <link to="IUSBDeviceStateChangedEvent">IUSBDeviceStateChangedEvent</link>.
18418 </desc>
18419 </const>
18420 <const name="OnSharedFolderChanged" value="56">
18421 <desc>
18422 See <link to="ISharedFolderChangedEvent">ISharedFolderChangedEvent</link>.
18423 </desc>
18424 </const>
18425 <const name="OnRuntimeError" value="57">
18426 <desc>
18427 See <link to="IRuntimeErrorEvent">IRuntimeErrorEvent</link>.
18428 </desc>
18429 </const>
18430 <const name="OnCanShowWindow" value="58">
18431 <desc>
18432 See <link to="ICanShowWindowEvent">ICanShowWindowEvent</link>.
18433 </desc>
18434 </const>
18435 <const name="OnShowWindow" value="59">
18436 <desc>
18437 See <link to="IShowWindowEvent">IShowWindowEvent</link>.
18438 </desc>
18439 </const>
18440 <const name="OnCPUChanged" value="60">
18441 <desc>
18442 See <link to="ICPUChangedEvent">ICPUChangedEvent</link>.
18443 </desc>
18444 </const>
18445 <const name="OnVRDEServerInfoChanged" value="61">
18446 <desc>
18447 See <link to="IVRDEServerInfoChangedEvent">IVRDEServerInfoChangedEvent</link>.
18448 </desc>
18449 </const>
18450 <const name="OnEventSourceChanged" value="62">
18451 <desc>
18452 See <link to="IEventSourceChangedEvent">IEventSourceChangedEvent</link>.
18453 </desc>
18454 </const>
18455 <const name="OnCPUExecutionCapChanged" value="63">
18456 <desc>
18457 See <link to="ICPUExecutionCapChangedEvent">ICPUExecutionCapChangedEvent</link>.
18458 </desc>
18459 </const>
18460 <const name="OnGuestKeyboard" value="64">
18461 <desc>
18462 See <link to="IGuestKeyboardEvent">IGuestKeyboardEvent</link>.
18463 </desc>
18464 </const>
18465 <const name="OnGuestMouse" value="65">
18466 <desc>
18467 See <link to="IGuestMouseEvent">IGuestMouseEvent</link>.
18468 </desc>
18469 </const>
18470 <const name="OnNATRedirect" value="66">
18471 <desc>
18472 See <link to="INATRedirectEvent">INATRedirectEvent</link>.
18473 </desc>
18474 </const>
18475 <const name="OnHostPCIDevicePlug" value="67">
18476 <desc>
18477 See <link to="IHostPCIDevicePlugEvent">IHostPCIDevicePlugEvent</link>.
18478 </desc>
18479 </const>
18480 <const name="OnVBoxSVCAvailabilityChanged" value="68">
18481 <desc>
18482 See <link to="IVBoxSVCAvailabilityChangedEvent">IVBoxSVCAvailablityChangedEvent</link>.
18483 </desc>
18484 </const>
18485 <const name="OnBandwidthGroupChanged" value="69">
18486 <desc>
18487 See <link to="IBandwidthGroupChangedEvent">IBandwidthGroupChangedEvent</link>.
18488 </desc>
18489 </const>
18490 <const name="OnGuestMonitorChanged" value="70">
18491 <desc>
18492 See <link to="IGuestMonitorChangedEvent">IGuestMonitorChangedEvent</link>.
18493 </desc>
18494 </const>
18495 <const name="OnStorageDeviceChanged" value="71">
18496 <desc>
18497 See <link to="IStorageDeviceChangedEvent">IStorageDeviceChangedEvent</link>.
18498 </desc>
18499 </const>
18500 <const name="OnClipboardModeChanged" value="72">
18501 <desc>
18502 See <link to="IClipboardModeChangedEvent">IClipboardModeChangedEvent</link>.
18503 </desc>
18504 </const>
18505 <const name="OnDragAndDropModeChanged" value="73">
18506 <desc>
18507 See <link to="IDragAndDropModeChangedEvent">IDragAndDropModeChangedEvent</link>.
18508 </desc>
18509 </const>
18510
18511 <!-- Last event marker -->
18512 <const name="Last" value="74">
18513 <desc>
18514 Must be last event, used for iterations and structures relying on numerical event values.
18515 </desc>
18516 </const>
18517
18518 </enum>
18519
18520 <interface
18521 name="IEventSource" extends="$unknown"
18522 uuid="9b6e1aee-35f3-4f4d-b5bb-ed0ecefd8538"
18523 wsmap="managed"
18524 >
18525 <desc>
18526 Event source. Generally, any object which could generate events can be an event source,
18527 or aggregate one. To simplify using one-way protocols such as webservices running on top of HTTP(S),
18528 an event source can work with listeners in either active or passive mode. In active mode it is up to
18529 the IEventSource implementation to call <link to="IEventListener::handleEvent" />, in passive mode the
18530 event source keeps track of pending events for each listener and returns available events on demand.
18531
18532 See <link to="IEvent" /> for an introduction to VirtualBox event handling.
18533 </desc>
18534
18535 <method name="createListener">
18536 <desc>
18537 Creates a new listener object, useful for passive mode.
18538 </desc>
18539 <param name="listener" type="IEventListener" dir="return"/>
18540 </method>
18541
18542 <method name="createAggregator">
18543 <desc>
18544 Creates an aggregator event source, collecting events from multiple sources.
18545 This way a single listener can listen for events coming from multiple sources,
18546 using a single blocking <link to="#getEvent"/> on the returned aggregator.
18547 </desc>
18548 <param name="subordinates" type="IEventSource" dir="in" safearray="yes">
18549 <desc>
18550 Subordinate event source this one aggregatres.
18551 </desc>
18552 </param>
18553 <param name="result" type="IEventSource" dir="return">
18554 <desc>
18555 Event source aggregating passed sources.
18556 </desc>
18557 </param>
18558 </method>
18559
18560 <method name="registerListener">
18561 <desc>
18562 Register an event listener.
18563
18564 <note>
18565 To avoid system overload, the VirtualBox server process checks if passive event
18566 listeners call <link to="IEventSource::getEvent"/> frequently enough. In the
18567 current implementation, if more than 500 pending events are detected for a passive
18568 event listener, it is forcefully unregistered by the system, and further
18569 <link to="#getEvent" /> calls will return @c VBOX_E_OBJECT_NOT_FOUND.
18570 </note>
18571 </desc>
18572 <param name="listener" type="IEventListener" dir="in">
18573 <desc>Listener to register.</desc>
18574 </param>
18575 <param name="interesting" type="VBoxEventType" dir="in" safearray="yes">
18576 <desc>
18577 Event types listener is interested in. One can use wildcards like -
18578 <link to="VBoxEventType_Any"/> to specify wildcards, matching more
18579 than one event.
18580 </desc>
18581 </param>
18582 <param name="active" type="boolean" dir="in">
18583 <desc>
18584 Which mode this listener is operating in.
18585 In active mode, <link to="IEventListener::handleEvent" /> is called directly.
18586 In passive mode, an internal event queue is created for this this IEventListener.
18587 For each event coming in, it is added to queues for all interested registered passive
18588 listeners. It is then up to the external code to call the listener's
18589 <link to="IEventListener::handleEvent" /> method. When done with an event, the
18590 external code must call <link to="#eventProcessed" />.
18591 </desc>
18592 </param>
18593 </method>
18594
18595 <method name="unregisterListener">
18596 <desc>
18597 Unregister an event listener. If listener is passive, and some waitable events are still
18598 in queue they are marked as processed automatically.
18599 </desc>
18600 <param name="listener" type="IEventListener" dir="in">
18601 <desc>Listener to unregister.</desc>
18602 </param>
18603 </method>
18604
18605 <method name="fireEvent">
18606 <desc>
18607 Fire an event for this source.
18608 </desc>
18609 <param name="event" type="IEvent" dir="in">
18610 <desc>Event to deliver.</desc>
18611 </param>
18612 <param name="timeout" type="long" dir="in">
18613 <desc>
18614 Maximum time to wait for event processing (if event is waitable), in ms;
18615 0 = no wait, -1 = indefinite wait.
18616 </desc>
18617 </param>
18618 <param name="result" type="boolean" dir="return">
18619 <desc>true if an event was delivered to all targets, or is non-waitable.</desc>
18620 </param>
18621 </method>
18622
18623 <method name="getEvent">
18624 <desc>
18625 Get events from this peer's event queue (for passive mode). Calling this method
18626 regularly is required for passive event listeners to avoid system overload;
18627 see <link to="IEventSource::registerListener" /> for details.
18628
18629 <result name="VBOX_E_OBJECT_NOT_FOUND">
18630 Listener is not registered, or autounregistered.
18631 </result>
18632 </desc>
18633 <param name="listener" type="IEventListener" dir="in">
18634 <desc>Which listener to get data for.</desc>
18635 </param>
18636 <param name="timeout" type="long" dir="in">
18637 <desc>
18638 Maximum time to wait for events, in ms;
18639 0 = no wait, -1 = indefinite wait.
18640 </desc>
18641 </param>
18642 <param name="event" type="IEvent" dir="return">
18643 <desc>Event retrieved, or null if none available.</desc>
18644 </param>
18645 </method>
18646
18647 <method name="eventProcessed">
18648 <desc>
18649 Must be called for waitable events after a particular listener finished its
18650 event processing. When all listeners of a particular event have called this
18651 method, the system will then call <link to="IEvent::setProcessed" />.
18652 </desc>
18653 <param name="listener" type="IEventListener" dir="in">
18654 <desc>Which listener processed event.</desc>
18655 </param>
18656 <param name="event" type="IEvent" dir="in">
18657 <desc>Which event.</desc>
18658 </param>
18659 </method>
18660
18661 </interface>
18662
18663 <interface
18664 name="IEventListener" extends="$unknown"
18665 uuid="67099191-32e7-4f6c-85ee-422304c71b90"
18666 wsmap="managed"
18667 >
18668 <desc>
18669 Event listener. An event listener can work in either active or passive mode, depending on the way
18670 it was registered.
18671 See <link to="IEvent" /> for an introduction to VirtualBox event handling.
18672 </desc>
18673
18674 <method name="handleEvent">
18675 <desc>
18676 Handle event callback for active listeners. It is not called for
18677 passive listeners. After calling <link to="#handleEvent"/> on all active listeners
18678 and having received acknowledgement from all passive listeners via
18679 <link to="IEventSource::eventProcessed"/>, the event is marked as
18680 processed and <link to="IEvent::waitProcessed"/> will return
18681 immediately.
18682 </desc>
18683 <param name="event" type="IEvent" dir="in">
18684 <desc>Event available.</desc>
18685 </param>
18686 </method>
18687
18688 </interface>
18689
18690 <interface
18691 name="IEvent" extends="$unknown"
18692 uuid="0ca2adba-8f30-401b-a8cd-fe31dbe839c0"
18693 wsmap="managed"
18694 >
18695 <desc>
18696 Abstract parent interface for VirtualBox events. Actual events will typically implement
18697 a more specific interface which derives from this (see below).
18698
18699 <b>Introduction to VirtualBox events</b>
18700
18701 Generally speaking, an event (represented by this interface) signals that something
18702 happened, while an event listener (see <link to="IEventListener" />) represents an
18703 entity that is interested in certain events. In order for this to work with
18704 unidirectional protocols (i.e. web services), the concepts of passive and active
18705 listener are used.
18706
18707 Event consumers can register themselves as listeners, providing an array of
18708 events they are interested in (see <link to="IEventSource::registerListener" />).
18709 When an event triggers, the listener is notified about the event. The exact
18710 mechanism of the notification depends on whether the listener was registered as
18711 an active or passive listener:
18712
18713 <ul>
18714 <li>An active listener is very similar to a callback: it is a function invoked
18715 by the API. As opposed to the callbacks that were used in the API before
18716 VirtualBox 4.0 however, events are now objects with an interface hierarchy.
18717 </li>
18718
18719 <li>Passive listeners are somewhat trickier to implement, but do not require
18720 a client function to be callable, which is not an option with scripting
18721 languages or web service clients. Internally the <link to="IEventSource" />
18722 implementation maintains an event queue for each passive listener, and
18723 newly arrived events are put in this queue. When the listener calls
18724 <link to="IEventSource::getEvent"/>, first element from its internal event
18725 queue is returned. When the client completes processing of an event,
18726 the <link to="IEventSource::eventProcessed" /> function must be called,
18727 acknowledging that the event was processed. It supports implementing
18728 waitable events. On passive listener unregistration, all events from its
18729 queue are auto-acknowledged.
18730 </li>
18731 </ul>
18732
18733 Waitable events are useful in situations where the event generator wants to track
18734 delivery or a party wants to wait until all listeners have completed the event. A
18735 typical example would be a vetoable event (see <link to="IVetoEvent" />) where a
18736 listeners might veto a certain action, and thus the event producer has to make
18737 sure that all listeners have processed the event and not vetoed before taking
18738 the action.
18739
18740 A given event may have both passive and active listeners at the same time.
18741
18742 <b>Using events</b>
18743
18744 Any VirtualBox object capable of producing externally visible events provides an
18745 @c eventSource read-only attribute, which is of the type <link to="IEventSource" />.
18746 This event source object is notified by VirtualBox once something has happened, so
18747 consumers may register event listeners with this event source. To register a listener,
18748 an object implementing the <link to="IEventListener" /> interface must be provided.
18749 For active listeners, such an object is typically created by the consumer, while for
18750 passive listeners <link to="IEventSource::createListener" /> should be used. Please
18751 note that a listener created with <link to="IEventSource::createListener"/> must not be used as an active listener.
18752
18753 Once created, the listener must be registered to listen for the desired events
18754 (see <link to="IEventSource::registerListener" />), providing an array of
18755 <link to="VBoxEventType" /> enums. Those elements can either be the individual
18756 event IDs or wildcards matching multiple event IDs.
18757
18758 After registration, the callback's <link to="IEventListener::handleEvent" /> method is
18759 called automatically when the event is triggered, while passive listeners have to call
18760 <link to="IEventSource::getEvent" /> and <link to="IEventSource::eventProcessed" /> in
18761 an event processing loop.
18762
18763 The IEvent interface is an abstract parent interface for all such VirtualBox events
18764 coming in. As a result, the standard use pattern inside <link to="IEventListener::handleEvent" />
18765 or the event processing loop is to check the <link to="#type" /> attribute of the event and
18766 then cast to the appropriate specific interface using @c QueryInterface().
18767 </desc>
18768
18769 <attribute name="type" readonly="yes" type="VBoxEventType">
18770 <desc>
18771 Event type.
18772 </desc>
18773 </attribute>
18774
18775 <attribute name="source" readonly="yes" type="IEventSource">
18776 <desc>
18777 Source of this event.
18778 </desc>
18779 </attribute>
18780
18781 <attribute name="waitable" readonly="yes" type="boolean">
18782 <desc>
18783 If we can wait for this event being processed. If false, <link to="#waitProcessed"/> returns immediately,
18784 and <link to="#setProcessed"/> doesn't make sense. Non-waitable events are generally better performing,
18785 as no additional overhead associated with waitability imposed.
18786 Waitable events are needed when one need to be able to wait for particular event processed,
18787 for example for vetoable changes, or if event refers to some resource which need to be kept immutable
18788 until all consumers confirmed events.
18789 </desc>
18790 </attribute>
18791
18792 <method name="setProcessed">
18793 <desc>
18794 Internal method called by the system when all listeners of a particular event have called
18795 <link to="IEventSource::eventProcessed" />. This should not be called by client code.
18796 </desc>
18797 </method>
18798
18799 <method name="waitProcessed">
18800 <desc>
18801 Wait until time outs, or this event is processed. Event must be waitable for this operation to have
18802 described semantics, for non-waitable returns true immediately.
18803 </desc>
18804 <param name="timeout" type="long" dir="in">
18805 <desc>
18806 Maximum time to wait for event processeing, in ms;
18807 0 = no wait, -1 = indefinite wait.
18808 </desc>
18809 </param>
18810 <param name="result" type="boolean" dir="return">
18811 <desc>If this event was processed before timeout.</desc>
18812 </param>
18813 </method>
18814 </interface>
18815
18816
18817 <interface
18818 name="IReusableEvent" extends="IEvent"
18819 uuid="69bfb134-80f6-4266-8e20-16371f68fa25"
18820 wsmap="managed"
18821 >
18822 <desc>Base abstract interface for all reusable events.</desc>
18823
18824 <attribute name="generation" readonly="yes" type="unsigned long">
18825 <desc>Current generation of event, incremented on reuse.</desc>
18826 </attribute>
18827
18828 <method name="reuse">
18829 <desc>
18830 Marks an event as reused, increments 'generation', fields shall no
18831 longer be considered valid.
18832 </desc>
18833 </method>
18834 </interface>
18835
18836 <interface
18837 name="IMachineEvent" extends="IEvent"
18838 uuid="92ed7b1a-0d96-40ed-ae46-a564d484325e"
18839 wsmap="managed" id="MachineEvent"
18840 >
18841 <desc>Base abstract interface for all machine events.</desc>
18842
18843 <attribute name="machineId" readonly="yes" type="uuid" mod="string">
18844 <desc>ID of the machine this event relates to.</desc>
18845 </attribute>
18846
18847 </interface>
18848
18849 <interface
18850 name="IMachineStateChangedEvent" extends="IMachineEvent"
18851 uuid="5748F794-48DF-438D-85EB-98FFD70D18C9"
18852 wsmap="managed" autogen="VBoxEvent" id="OnMachineStateChanged"
18853 >
18854 <desc>Machine state change event.</desc>
18855
18856 <attribute name="state" readonly="yes" type="MachineState">
18857 <desc>New execution state.</desc>
18858 </attribute>
18859 </interface>
18860
18861 <interface
18862 name="IMachineDataChangedEvent" extends="IMachineEvent"
18863 uuid="abe94809-2e88-4436-83d7-50f3e64d0503"
18864 wsmap="managed" autogen="VBoxEvent" id="OnMachineDataChanged"
18865 >
18866 <desc>
18867 Any of the settings of the given machine has changed.
18868 </desc>
18869
18870 <attribute name="temporary" readonly="yes" type="boolean">
18871 <desc>@c true if the settings change is temporary. All permanent
18872 settings changes will trigger an event, and only temporary settings
18873 changes for running VMs will trigger an event. Note: sending events
18874 for temporary changes is NOT IMPLEMENTED.</desc>
18875 </attribute>
18876 </interface>
18877
18878 <interface
18879 name="IMediumRegisteredEvent" extends="IEvent"
18880 uuid="53fac49a-b7f1-4a5a-a4ef-a11dd9c2a458"
18881 wsmap="managed" autogen="VBoxEvent" id="OnMediumRegistered"
18882 >
18883 <desc>
18884 The given medium was registered or unregistered
18885 within this VirtualBox installation.
18886 </desc>
18887
18888 <attribute name="mediumId" readonly="yes" type="uuid" mod="string">
18889 <desc>ID of the medium this event relates to.</desc>
18890 </attribute>
18891
18892 <attribute name="mediumType" readonly="yes" type="DeviceType">
18893 <desc>Type of the medium this event relates to.</desc>
18894 </attribute>
18895
18896 <attribute name="registered" type="boolean" readonly="yes">
18897 <desc>
18898 If @c true, the medium was registered, otherwise it was
18899 unregistered.
18900 </desc>
18901 </attribute>
18902 </interface>
18903
18904 <interface
18905 name="IMachineRegisteredEvent" extends="IMachineEvent"
18906 uuid="c354a762-3ff2-4f2e-8f09-07382ee25088"
18907 wsmap="managed" autogen="VBoxEvent" id="OnMachineRegistered"
18908 >
18909 <desc>
18910 The given machine was registered or unregistered
18911 within this VirtualBox installation.
18912 </desc>
18913
18914 <attribute name="registered" type="boolean" readonly="yes">
18915 <desc>
18916 If @c true, the machine was registered, otherwise it was
18917 unregistered.
18918 </desc>
18919 </attribute>
18920 </interface>
18921
18922 <interface
18923 name="ISessionStateChangedEvent" extends="IMachineEvent"
18924 uuid="714a3eef-799a-4489-86cd-fe8e45b2ff8e"
18925 wsmap="managed" autogen="VBoxEvent" id="OnSessionStateChanged"
18926 >
18927 <desc>
18928 The state of the session for the given machine was changed.
18929 <see><link to="IMachine::sessionState"/></see>
18930 </desc>
18931
18932 <attribute name="state" type="SessionState" readonly="yes">
18933 <desc>
18934 New session state.
18935 </desc>
18936 </attribute>
18937 </interface>
18938
18939 <interface
18940 name="IGuestPropertyChangedEvent" extends="IMachineEvent"
18941 uuid="3f63597a-26f1-4edb-8dd2-6bddd0912368"
18942 wsmap="managed" autogen="VBoxEvent" id="OnGuestPropertyChanged"
18943 >
18944 <desc>
18945 Notification when a guest property has changed.
18946 </desc>
18947
18948 <attribute name="name" readonly="yes" type="wstring">
18949 <desc>
18950 The name of the property that has changed.
18951 </desc>
18952 </attribute>
18953
18954 <attribute name="value" readonly="yes" type="wstring">
18955 <desc>
18956 The new property value.
18957 </desc>
18958 </attribute>
18959
18960 <attribute name="flags" readonly="yes" type="wstring">
18961 <desc>
18962 The new property flags.
18963 </desc>
18964 </attribute>
18965
18966 </interface>
18967
18968 <interface
18969 name="ISnapshotEvent" extends="IMachineEvent"
18970 uuid="21637b0e-34b8-42d3-acfb-7e96daf77c22"
18971 wsmap="managed" id="SnapshotEvent"
18972 >
18973 <desc>Base interface for all snapshot events.</desc>
18974
18975 <attribute name="snapshotId" readonly="yes" type="uuid" mod="string">
18976 <desc>ID of the snapshot this event relates to.</desc>
18977 </attribute>
18978
18979 </interface>
18980
18981 <interface
18982 name="ISnapshotTakenEvent" extends="ISnapshotEvent"
18983 uuid="d27c0b3d-6038-422c-b45e-6d4a0503d9f1"
18984 wsmap="managed" autogen="VBoxEvent" id="OnSnapshotTaken"
18985 >
18986 <desc>
18987 A new snapshot of the machine has been taken.
18988 <see><link to="ISnapshot"/></see>
18989 </desc>
18990 </interface>
18991
18992 <interface
18993 name="ISnapshotDeletedEvent" extends="ISnapshotEvent"
18994 uuid="c48f3401-4a9e-43f4-b7a7-54bd285e22f4"
18995 wsmap="managed" autogen="VBoxEvent" id="OnSnapshotDeleted"
18996 >
18997 <desc>
18998 Snapshot of the given machine has been deleted.
18999
19000 <note>
19001 This notification is delivered <b>after</b> the snapshot
19002 object has been uninitialized on the server (so that any
19003 attempt to call its methods will return an error).
19004 </note>
19005
19006 <see><link to="ISnapshot"/></see>
19007 </desc>
19008 </interface>
19009
19010 <interface
19011 name="ISnapshotChangedEvent" extends="ISnapshotEvent"
19012 uuid="07541941-8079-447a-a33e-47a69c7980db"
19013 wsmap="managed" autogen="VBoxEvent" id="OnSnapshotChanged"
19014 >
19015 <desc>
19016 Snapshot properties (name and/or description) have been changed.
19017 <see><link to="ISnapshot"/></see>
19018 </desc>
19019 </interface>
19020
19021 <interface
19022 name="IMousePointerShapeChangedEvent" extends="IEvent"
19023 uuid="a6dcf6e8-416b-4181-8c4a-45ec95177aef"
19024 wsmap="managed" autogen="VBoxEvent" id="OnMousePointerShapeChanged"
19025 >
19026 <desc>
19027 Notification when the guest mouse pointer shape has
19028 changed. The new shape data is given.
19029 </desc>
19030
19031 <attribute name="visible" type="boolean" readonly="yes">
19032 <desc>
19033 Flag whether the pointer is visible.
19034 </desc>
19035 </attribute>
19036 <attribute name="alpha" type="boolean" readonly="yes">
19037 <desc>
19038 Flag whether the pointer has an alpha channel.
19039 </desc>
19040 </attribute>
19041 <attribute name="xhot" type="unsigned long" readonly="yes">
19042 <desc>
19043 The pointer hot spot X coordinate.
19044 </desc>
19045 </attribute>
19046 <attribute name="yhot" type="unsigned long" readonly="yes">
19047 <desc>
19048 The pointer hot spot Y coordinate.
19049 </desc>
19050 </attribute>
19051 <attribute name="width" type="unsigned long" readonly="yes">
19052 <desc>
19053 Width of the pointer shape in pixels.
19054 </desc>
19055 </attribute>
19056 <attribute name="height" type="unsigned long" readonly="yes">
19057 <desc>
19058 Height of the pointer shape in pixels.
19059 </desc>
19060 </attribute>
19061 <attribute name="shape" type="octet" safearray="yes" readonly="yes">
19062 <desc>
19063 Shape buffer arrays.
19064
19065 The @a shape buffer contains a 1-bpp (bits per pixel) AND mask
19066 followed by a 32-bpp XOR (color) mask.
19067
19068 For pointers without alpha channel the XOR mask pixels are 32
19069 bit values: (lsb)BGR0(msb). For pointers with alpha channel
19070 the XOR mask consists of (lsb)BGRA(msb) 32 bit values.
19071
19072 An AND mask is used for pointers with alpha channel, so if the
19073 callback does not support alpha, the pointer could be
19074 displayed as a normal color pointer.
19075
19076 The AND mask is a 1-bpp bitmap with byte aligned scanlines. The
19077 size of the AND mask therefore is <tt>cbAnd = (width + 7) / 8 *
19078 height</tt>. The padding bits at the end of each scanline are
19079 undefined.
19080
19081 The XOR mask follows the AND mask on the next 4-byte aligned
19082 offset: <tt>uint8_t *pXor = pAnd + (cbAnd + 3) &amp; ~3</tt>.
19083 Bytes in the gap between the AND and the XOR mask are undefined.
19084 The XOR mask scanlines have no gap between them and the size of
19085 the XOR mask is: <tt>cXor = width * 4 * height</tt>.
19086
19087 <note>
19088 If @a shape is 0, only the pointer visibility is changed.
19089 </note>
19090 </desc>
19091 </attribute>
19092 </interface>
19093
19094 <interface
19095 name="IMouseCapabilityChangedEvent" extends="IEvent"
19096 uuid="d633ad48-820c-4207-b46c-6bd3596640d5"
19097 wsmap="managed" autogen="VBoxEvent" id="OnMouseCapabilityChanged"
19098 >
19099 <desc>
19100 Notification when the mouse capabilities reported by the
19101 guest have changed. The new capabilities are passed.
19102 </desc>
19103 <attribute name="supportsAbsolute" type="boolean" readonly="yes">
19104 <desc>
19105 Supports absolute coordinates.
19106 </desc>
19107 </attribute>
19108 <attribute name="supportsRelative" type="boolean" readonly="yes">
19109 <desc>
19110 Supports relative coordinates.
19111 </desc>
19112 </attribute>
19113 <attribute name="needsHostCursor" type="boolean" readonly="yes">
19114 <desc>
19115 If host cursor is needed.
19116 </desc>
19117 </attribute>
19118 </interface>
19119
19120 <interface
19121 name="IKeyboardLedsChangedEvent" extends="IEvent"
19122 uuid="6DDEF35E-4737-457B-99FC-BC52C851A44F"
19123 wsmap="managed" autogen="VBoxEvent" id="OnKeyboardLedsChanged"
19124 >
19125 <desc>
19126 Notification when the guest OS executes the KBD_CMD_SET_LEDS command
19127 to alter the state of the keyboard LEDs.
19128 </desc>
19129 <attribute name="numLock" type="boolean" readonly="yes">
19130 <desc>
19131 NumLock status.
19132 </desc>
19133 </attribute>
19134 <attribute name="capsLock" type="boolean" readonly="yes">
19135 <desc>
19136 CapsLock status.
19137 </desc>
19138 </attribute>
19139 <attribute name="scrollLock" type="boolean" readonly="yes">
19140 <desc>
19141 ScrollLock status.
19142 </desc>
19143 </attribute>
19144 </interface>
19145
19146 <interface
19147 name="IStateChangedEvent" extends="IEvent"
19148 uuid="4376693C-CF37-453B-9289-3B0F521CAF27"
19149 wsmap="managed" autogen="VBoxEvent" id="OnStateChanged"
19150 >
19151 <desc>
19152 Notification when the execution state of the machine has changed.
19153 The new state is given.
19154 </desc>
19155 <attribute name="state" type="MachineState" readonly="yes">
19156 <desc>
19157 New machine state.
19158 </desc>
19159 </attribute>
19160 </interface>
19161
19162 <interface
19163 name="IAdditionsStateChangedEvent" extends="IEvent"
19164 uuid="D70F7915-DA7C-44C8-A7AC-9F173490446A"
19165 wsmap="managed" autogen="VBoxEvent" id="OnAdditionsStateChanged"
19166 >
19167 <desc>
19168 Notification when a Guest Additions property changes.
19169 Interested callees should query IGuest attributes to
19170 find out what has changed.
19171 </desc>
19172 </interface>
19173
19174 <interface
19175 name="INetworkAdapterChangedEvent" extends="IEvent"
19176 uuid="08889892-1EC6-4883-801D-77F56CFD0103"
19177 wsmap="managed" autogen="VBoxEvent" id="OnNetworkAdapterChanged"
19178 >
19179 <desc>
19180 Notification when a property of one of the
19181 virtual <link to="IMachine::getNetworkAdapter">network adapters</link>
19182 changes. Interested callees should use INetworkAdapter methods and
19183 attributes to find out what has changed.
19184 </desc>
19185 <attribute name="networkAdapter" type="INetworkAdapter" readonly="yes">
19186 <desc>
19187 Network adapter that is subject to change.
19188 </desc>
19189 </attribute>
19190 </interface>
19191
19192 <interface
19193 name="ISerialPortChangedEvent" extends="IEvent"
19194 uuid="3BA329DC-659C-488B-835C-4ECA7AE71C6C"
19195 wsmap="managed" autogen="VBoxEvent" id="OnSerialPortChanged"
19196 >
19197 <desc>
19198 Notification when a property of one of the
19199 virtual <link to="IMachine::getSerialPort">serial ports</link> changes.
19200 Interested callees should use ISerialPort methods and attributes
19201 to find out what has changed.
19202 </desc>
19203 <attribute name="serialPort" type="ISerialPort" readonly="yes">
19204 <desc>
19205 Serial port that is subject to change.
19206 </desc>
19207 </attribute>
19208 </interface>
19209
19210 <interface
19211 name="IParallelPortChangedEvent" extends="IEvent"
19212 uuid="813C99FC-9849-4F47-813E-24A75DC85615"
19213 wsmap="managed" autogen="VBoxEvent" id="OnParallelPortChanged"
19214 >
19215 <desc>
19216 Notification when a property of one of the
19217 virtual <link to="IMachine::getParallelPort">parallel ports</link>
19218 changes. Interested callees should use ISerialPort methods and
19219 attributes to find out what has changed.
19220 </desc>
19221 <attribute name="parallelPort" type="IParallelPort" readonly="yes">
19222 <desc>
19223 Parallel port that is subject to change.
19224 </desc>
19225 </attribute>
19226 </interface>
19227
19228 <interface
19229 name="IStorageControllerChangedEvent" extends="IEvent"
19230 uuid="715212BF-DA59-426E-8230-3831FAA52C56"
19231 wsmap="managed" autogen="VBoxEvent" id="OnStorageControllerChanged"
19232 >
19233 <desc>
19234 Notification when a
19235 <link to="IMachine::mediumAttachments">medium attachment</link>
19236 changes.
19237 </desc>
19238 </interface>
19239
19240 <interface
19241 name="IMediumChangedEvent" extends="IEvent"
19242 uuid="0FE2DA40-5637-472A-9736-72019EABD7DE"
19243 wsmap="managed" autogen="VBoxEvent" id="OnMediumChanged"
19244 >
19245 <desc>
19246 Notification when a
19247 <link to="IMachine::mediumAttachments">medium attachment</link>
19248 changes.
19249 </desc>
19250 <attribute name="mediumAttachment" type="IMediumAttachment" readonly="yes">
19251 <desc>
19252 Medium attachment that is subject to change.
19253 </desc>
19254 </attribute>
19255 </interface>
19256
19257 <interface
19258 name="IClipboardModeChangedEvent" extends="IEvent"
19259 uuid="cac21692-7997-4595-a731-3a509db604e5"
19260 wsmap="managed" autogen="VBoxEvent" id="OnClipboardModeChanged"
19261 >
19262 <desc>
19263 Notification when the shared clipboard mode changes.
19264 </desc>
19265 <attribute name="clipboardMode" type="ClipboardMode" readonly="yes">
19266 <desc>
19267 The new clipboard mode.
19268 </desc>
19269 </attribute>
19270 </interface>
19271
19272 <interface
19273 name="IDragAndDropModeChangedEvent" extends="IEvent"
19274 uuid="e90b8850-ac8e-4dff-8059-4100ae2c3c3d"
19275 wsmap="managed" autogen="VBoxEvent" id="OnDragAndDropModeChanged"
19276 >
19277 <desc>
19278 Notification when the drag'n'drop mode changes.
19279 </desc>
19280 <attribute name="dragAndDropMode" type="DragAndDropMode" readonly="yes">
19281 <desc>
19282 The new drag'n'drop mode.
19283 </desc>
19284 </attribute>
19285 </interface>
19286
19287 <interface
19288 name="ICPUChangedEvent" extends="IEvent"
19289 uuid="4da2dec7-71b2-4817-9a64-4ed12c17388e"
19290 wsmap="managed" autogen="VBoxEvent" id="OnCPUChanged"
19291 >
19292 <desc>
19293 Notification when a CPU changes.
19294 </desc>
19295 <attribute name="CPU" type="unsigned long" readonly="yes">
19296 <desc>
19297 The CPU which changed.
19298 </desc>
19299 </attribute>
19300 <attribute name="add" type="boolean" readonly="yes">
19301 <desc>
19302 Flag whether the CPU was added or removed.
19303 </desc>
19304 </attribute>
19305 </interface>
19306
19307 <interface
19308 name="ICPUExecutionCapChangedEvent" extends="IEvent"
19309 uuid="dfa7e4f5-b4a4-44ce-85a8-127ac5eb59dc"
19310 wsmap="managed" autogen="VBoxEvent" id="OnCPUExecutionCapChanged"
19311 >
19312 <desc>
19313 Notification when the CPU execution cap changes.
19314 </desc>
19315 <attribute name="executionCap" type="unsigned long" readonly="yes">
19316 <desc>
19317 The new CPU execution cap value. (1-100)
19318 </desc>
19319 </attribute>
19320 </interface>
19321
19322 <interface
19323 name="IGuestKeyboardEvent" extends="IEvent"
19324 uuid="88394258-7006-40d4-b339-472ee3801844"
19325 wsmap="managed" autogen="VBoxEvent" id="OnGuestKeyboard"
19326 >
19327 <desc>
19328 Notification when guest keyboard event happens.
19329 </desc>
19330 <attribute name="scancodes" type="long" safearray="yes" readonly="yes">
19331 <desc>
19332 Array of scancodes.
19333 </desc>
19334 </attribute>
19335 </interface>
19336
19337 <interface
19338 name="IGuestMouseEvent" extends="IReusableEvent"
19339 uuid="1f85d35c-c524-40ff-8e98-307000df0992"
19340 wsmap="managed" autogen="VBoxEvent" id="OnGuestMouse"
19341 >
19342 <desc>
19343 Notification when guest mouse event happens.
19344 </desc>
19345
19346 <attribute name="absolute" type="boolean" readonly="yes">
19347 <desc>
19348 If this event is relative or absolute.
19349 </desc>
19350 </attribute>
19351
19352 <attribute name="x" type="long" readonly="yes">
19353 <desc>
19354 New X position, or X delta.
19355 </desc>
19356 </attribute>
19357
19358 <attribute name="y" type="long" readonly="yes">
19359 <desc>
19360 New Y position, or Y delta.
19361 </desc>
19362 </attribute>
19363
19364 <attribute name="z" type="long" readonly="yes">
19365 <desc>
19366 Z delta.
19367 </desc>
19368 </attribute>
19369
19370 <attribute name="w" type="long" readonly="yes">
19371 <desc>
19372 W delta.
19373 </desc>
19374 </attribute>
19375
19376 <attribute name="buttons" type="long" readonly="yes">
19377 <desc>
19378 Button state bitmask.
19379 </desc>
19380 </attribute>
19381
19382 </interface>
19383
19384
19385 <interface
19386 name="IVRDEServerChangedEvent" extends="IEvent"
19387 uuid="a06fd66a-3188-4c8c-8756-1395e8cb691c"
19388 wsmap="managed" autogen="VBoxEvent" id="OnVRDEServerChanged"
19389 >
19390 <desc>
19391 Notification when a property of the
19392 <link to="IMachine::VRDEServer">VRDE server</link> changes.
19393 Interested callees should use IVRDEServer methods and attributes to
19394 find out what has changed.
19395 </desc>
19396 </interface>
19397
19398 <interface
19399 name="IVRDEServerInfoChangedEvent" extends="IEvent"
19400 uuid="dd6a1080-e1b7-4339-a549-f0878115596e"
19401 wsmap="managed" autogen="VBoxEvent" id="OnVRDEServerInfoChanged"
19402 >
19403 <desc>
19404 Notification when the status of the VRDE server changes. Interested callees
19405 should use <link to="IConsole::VRDEServerInfo">IVRDEServerInfo</link>
19406 attributes to find out what is the current status.
19407 </desc>
19408 </interface>
19409
19410 <interface
19411 name="IUSBControllerChangedEvent" extends="IEvent"
19412 uuid="93BADC0C-61D9-4940-A084-E6BB29AF3D83"
19413 wsmap="managed" autogen="VBoxEvent" id="OnUSBControllerChanged"
19414 >
19415 <desc>
19416 Notification when a property of the virtual
19417 <link to="IMachine::USBController">USB controller</link> changes.
19418 Interested callees should use IUSBController methods and attributes to
19419 find out what has changed.
19420 </desc>
19421 </interface>
19422
19423 <interface
19424 name="IUSBDeviceStateChangedEvent" extends="IEvent"
19425 uuid="806da61b-6679-422a-b629-51b06b0c6d93"
19426 wsmap="managed" autogen="VBoxEvent" id="OnUSBDeviceStateChanged"
19427 >
19428 <desc>
19429 Notification when a USB device is attached to or detached from
19430 the virtual USB controller.
19431
19432 This notification is sent as a result of the indirect
19433 request to attach the device because it matches one of the
19434 machine USB filters, or as a result of the direct request
19435 issued by <link to="IConsole::attachUSBDevice"/> or
19436 <link to="IConsole::detachUSBDevice"/>.
19437
19438 This notification is sent in case of both a succeeded and a
19439 failed request completion. When the request succeeds, the
19440 @a error parameter is @c null, and the given device has been
19441 already added to (when @a attached is @c true) or removed from
19442 (when @a attached is @c false) the collection represented by
19443 <link to="IConsole::USBDevices"/>. On failure, the collection
19444 doesn't change and the @a error parameter represents the error
19445 message describing the failure.
19446 </desc>
19447 <attribute name="device" type="IUSBDevice" readonly="yes">
19448 <desc>
19449 Device that is subject to state change.
19450 </desc>
19451 </attribute>
19452 <attribute name="attached" type="boolean" readonly="yes">
19453 <desc>
19454 @c true if the device was attached and @c false otherwise.
19455 </desc>
19456 </attribute>
19457 <attribute name="error" type="IVirtualBoxErrorInfo" readonly="yes">
19458 <desc>
19459 @c null on success or an error message object on failure.
19460 </desc>
19461 </attribute>
19462 </interface>
19463
19464 <interface
19465 name="ISharedFolderChangedEvent" extends="IEvent"
19466 uuid="B66349B5-3534-4239-B2DE-8E1535D94C0B"
19467 wsmap="managed" autogen="VBoxEvent" id="OnSharedFolderChanged"
19468 >
19469 <desc>
19470 Notification when a shared folder is added or removed.
19471 The @a scope argument defines one of three scopes:
19472 <link to="IVirtualBox::sharedFolders">global shared folders</link>
19473 (<link to="Scope_Global">Global</link>),
19474 <link to="IMachine::sharedFolders">permanent shared folders</link> of
19475 the machine (<link to="Scope_Machine">Machine</link>) or <link
19476 to="IConsole::sharedFolders">transient shared folders</link> of the
19477 machine (<link to="Scope_Session">Session</link>). Interested callees
19478 should use query the corresponding collections to find out what has
19479 changed.
19480 </desc>
19481 <attribute name="scope" type="Scope" readonly="yes">
19482 <desc>
19483 Scope of the notification.
19484 </desc>
19485 </attribute>
19486 </interface>
19487
19488 <interface
19489 name="IRuntimeErrorEvent" extends="IEvent"
19490 uuid="883DD18B-0721-4CDE-867C-1A82ABAF914C"
19491 wsmap="managed" autogen="VBoxEvent" id="OnRuntimeError"
19492 >
19493 <desc>
19494 Notification when an error happens during the virtual
19495 machine execution.
19496
19497 There are three kinds of runtime errors:
19498 <ul>
19499 <li><i>fatal</i></li>
19500 <li><i>non-fatal with retry</i></li>
19501 <li><i>non-fatal warnings</i></li>
19502 </ul>
19503
19504 <b>Fatal</b> errors are indicated by the @a fatal parameter set
19505 to @c true. In case of fatal errors, the virtual machine
19506 execution is always paused before calling this notification, and
19507 the notification handler is supposed either to immediately save
19508 the virtual machine state using <link to="IConsole::saveState"/>
19509 or power it off using <link to="IConsole::powerDown"/>.
19510 Resuming the execution can lead to unpredictable results.
19511
19512 <b>Non-fatal</b> errors and warnings are indicated by the
19513 @a fatal parameter set to @c false. If the virtual machine
19514 is in the Paused state by the time the error notification is
19515 received, it means that the user can <i>try to resume</i> the machine
19516 execution after attempting to solve the problem that caused the
19517 error. In this case, the notification handler is supposed
19518 to show an appropriate message to the user (depending on the
19519 value of the @a id parameter) that offers several actions such
19520 as <i>Retry</i>, <i>Save</i> or <i>Power Off</i>. If the user
19521 wants to retry, the notification handler should continue
19522 the machine execution using the <link to="IConsole::resume"/>
19523 call. If the machine execution is not Paused during this
19524 notification, then it means this notification is a <i>warning</i>
19525 (for example, about a fatal condition that can happen very soon);
19526 no immediate action is required from the user, the machine
19527 continues its normal execution.
19528
19529 Note that in either case the notification handler
19530 <b>must not</b> perform any action directly on a thread
19531 where this notification is called. Everything it is allowed to
19532 do is to post a message to another thread that will then talk
19533 to the user and take the corresponding action.
19534
19535 Currently, the following error identifiers are known:
19536 <ul>
19537 <li><tt>"HostMemoryLow"</tt></li>
19538 <li><tt>"HostAudioNotResponding"</tt></li>
19539 <li><tt>"VDIStorageFull"</tt></li>
19540 <li><tt>"3DSupportIncompatibleAdditions"</tt></li>
19541 </ul>
19542 </desc>
19543 <attribute name="fatal" type="boolean" readonly="yes">
19544 <desc>
19545 Whether the error is fatal or not.
19546 </desc>
19547 </attribute>
19548 <attribute name="id" type="wstring" readonly="yes">
19549 <desc>
19550 Error identifier.
19551 </desc>
19552 </attribute>
19553 <attribute name="message" type="wstring" readonly="yes">
19554 <desc>
19555 Optional error message.
19556 </desc>
19557 </attribute>
19558 </interface>
19559
19560
19561 <interface
19562 name="IEventSourceChangedEvent" extends="IEvent"
19563 uuid="e7932cb8-f6d4-4ab6-9cbf-558eb8959a6a"
19564 waitable="yes"
19565 wsmap="managed" autogen="VBoxEvent" id="OnEventSourceChanged"
19566 >
19567 <desc>
19568 Notification when an event source state changes (listener added or removed).
19569 </desc>
19570
19571 <attribute name="listener" type="IEventListener" readonly="yes">
19572 <desc>
19573 Event listener which has changed.
19574 </desc>
19575 </attribute>
19576
19577 <attribute name="add" type="boolean" readonly="yes">
19578 <desc>
19579 Flag whether listener was added or removed.
19580 </desc>
19581 </attribute>
19582 </interface>
19583
19584 <interface
19585 name="IExtraDataChangedEvent" extends="IEvent"
19586 uuid="024F00CE-6E0B-492A-A8D0-968472A94DC7"
19587 wsmap="managed" autogen="VBoxEvent" id="OnExtraDataChanged"
19588 >
19589 <desc>
19590 Notification when machine specific or global extra data
19591 has changed.
19592 </desc>
19593 <attribute name="machineId" type="uuid" mod="string" readonly="yes">
19594 <desc>
19595 ID of the machine this event relates to.
19596 Null for global extra data changes.
19597 </desc>
19598 </attribute>
19599 <attribute name="key" type="wstring" readonly="yes">
19600 <desc>
19601 Extra data key that has changed.
19602 </desc>
19603 </attribute>
19604 <attribute name="value" type="wstring" readonly="yes">
19605 <desc>
19606 Extra data value for the given key.
19607 </desc>
19608 </attribute>
19609 </interface>
19610
19611 <interface
19612 name="IVetoEvent" extends="IEvent"
19613 uuid="9a1a4130-69fe-472f-ac10-c6fa25d75007"
19614 wsmap="managed"
19615 >
19616 <desc>Base abstract interface for veto events.</desc>
19617
19618 <method name="addVeto">
19619 <desc>
19620 Adds a veto on this event.
19621 </desc>
19622 <param name="reason" type="wstring" dir="in">
19623 <desc>
19624 Reason for veto, could be null or empty string.
19625 </desc>
19626 </param>
19627 </method>
19628
19629 <method name="isVetoed">
19630 <desc>
19631 If this event was vetoed.
19632 </desc>
19633 <param name="result" type="boolean" dir="return">
19634 <desc>
19635 Reason for veto.
19636 </desc>
19637 </param>
19638 </method>
19639
19640 <method name="getVetos">
19641 <desc>
19642 Current veto reason list, if size is 0 - no veto.
19643 </desc>
19644 <param name="result" type="wstring" dir="return" safearray="yes">
19645 <desc>
19646 Array of reasons for veto provided by different event handlers.
19647 </desc>
19648 </param>
19649 </method>
19650
19651 </interface>
19652
19653 <interface
19654 name="IExtraDataCanChangeEvent" extends="IVetoEvent"
19655 uuid="245d88bd-800a-40f8-87a6-170d02249a55"
19656 wsmap="managed" autogen="VBoxEvent" id="OnExtraDataCanChange"
19657 waitable="true"
19658 >
19659 <desc>
19660 Notification when someone tries to change extra data for
19661 either the given machine or (if @c null) global extra data.
19662 This gives the chance to veto against changes.
19663 </desc>
19664 <attribute name="machineId" type="uuid" mod="string" readonly="yes">
19665 <desc>
19666 ID of the machine this event relates to.
19667 Null for global extra data changes.
19668 </desc>
19669 </attribute>
19670 <attribute name="key" type="wstring" readonly="yes">
19671 <desc>
19672 Extra data key that has changed.
19673 </desc>
19674 </attribute>
19675 <attribute name="value" type="wstring" readonly="yes">
19676 <desc>
19677 Extra data value for the given key.
19678 </desc>
19679 </attribute>
19680 </interface>
19681
19682 <interface
19683 name="ICanShowWindowEvent" extends="IVetoEvent"
19684 uuid="adf292b0-92c9-4a77-9d35-e058b39fe0b9"
19685 wsmap="managed" autogen="VBoxEvent" id="OnCanShowWindow"
19686 waitable="true"
19687 >
19688 <desc>
19689 Notification when a call to
19690 <link to="IMachine::canShowConsoleWindow"/> is made by a
19691 front-end to check if a subsequent call to
19692 <link to="IMachine::showConsoleWindow"/> can succeed.
19693
19694 The callee should give an answer appropriate to the current
19695 machine state using event veto. This answer must
19696 remain valid at least until the next
19697 <link to="IConsole::state">machine state</link> change.
19698 </desc>
19699 </interface>
19700
19701 <interface
19702 name="IShowWindowEvent" extends="IEvent"
19703 uuid="B0A0904D-2F05-4D28-855F-488F96BAD2B2"
19704 wsmap="managed" autogen="VBoxEvent" id="OnShowWindow"
19705 waitable="true"
19706 >
19707 <desc>
19708 Notification when a call to
19709 <link to="IMachine::showConsoleWindow"/>
19710 requests the console window to be activated and brought to
19711 foreground on the desktop of the host PC.
19712
19713 This notification should cause the VM console process to
19714 perform the requested action as described above. If it is
19715 impossible to do it at a time of this notification, this
19716 method should return a failure.
19717
19718 Note that many modern window managers on many platforms
19719 implement some sort of focus stealing prevention logic, so
19720 that it may be impossible to activate a window without the
19721 help of the currently active application (which is supposedly
19722 an initiator of this notification). In this case, this method
19723 must return a non-zero identifier that represents the
19724 top-level window of the VM console process. The caller, if it
19725 represents a currently active process, is responsible to use
19726 this identifier (in a platform-dependent manner) to perform
19727 actual window activation.
19728
19729 This method must set @a winId to zero if it has performed all
19730 actions necessary to complete the request and the console
19731 window is now active and in foreground, to indicate that no
19732 further action is required on the caller's side.
19733 </desc>
19734 <attribute name="winId" type="long long">
19735 <desc>
19736 Platform-dependent identifier of the top-level VM console
19737 window, or zero if this method has performed all actions
19738 necessary to implement the <i>show window</i> semantics for
19739 the given platform and/or this VirtualBox front-end.
19740 </desc>
19741 </attribute>
19742 </interface>
19743
19744 <interface
19745 name="INATRedirectEvent" extends="IMachineEvent"
19746 uuid="24eef068-c380-4510-bc7c-19314a7352f1"
19747 wsmap="managed" autogen="VBoxEvent" id="OnNATRedirect"
19748 >
19749 <desc>
19750 Notification when NAT redirect rule added or removed.
19751 </desc>
19752 <attribute name="slot" type="unsigned long" readonly="yes">
19753 <desc>
19754 Adapter which NAT attached to.
19755 </desc>
19756 </attribute>
19757 <attribute name="remove" type="boolean" readonly="yes">
19758 <desc>
19759 Whether rule remove or add.
19760 </desc>
19761 </attribute>
19762 <attribute name="name" type="wstring" readonly="yes">
19763 <desc>
19764 Name of the rule.
19765 </desc>
19766 </attribute>
19767 <attribute name="proto" type="NATProtocol" readonly="yes">
19768 <desc>
19769 Protocol (TCP or UDP) of the redirect rule.
19770 </desc>
19771 </attribute>
19772 <attribute name="hostIP" type="wstring" readonly="yes">
19773 <desc>
19774 Host ip address to bind socket on.
19775 </desc>
19776 </attribute>
19777 <attribute name="hostPort" type="long" readonly="yes">
19778 <desc>
19779 Host port to bind socket on.
19780 </desc>
19781 </attribute>
19782 <attribute name="guestIP" type="wstring" readonly="yes">
19783 <desc>
19784 Guest ip address to redirect to.
19785 </desc>
19786 </attribute>
19787 <attribute name="guestPort" type="long" readonly="yes">
19788 <desc>
19789 Guest port to redirect to.
19790 </desc>
19791 </attribute>
19792 </interface>
19793
19794 <interface
19795 name="IHostPCIDevicePlugEvent" extends="IMachineEvent"
19796 waitable="yes"
19797 uuid="a0bad6df-d612-47d3-89d4-db3992533948"
19798 wsmap="managed" autogen="VBoxEvent" id="OnHostPCIDevicePlug"
19799 >
19800 <desc>
19801 Notification when host PCI device is plugged/unplugged. Plugging
19802 usually takes place on VM startup, unplug - when
19803 <link to="IMachine::detachHostPCIDevice"/> is called.
19804
19805 <see><link to="IMachine::detachHostPCIDevice"/></see>
19806
19807 </desc>
19808
19809 <attribute name="plugged" type="boolean" readonly="yes">
19810 <desc>
19811 If device successfully plugged or unplugged.
19812 </desc>
19813 </attribute>
19814
19815 <attribute name="success" type="boolean" readonly="yes">
19816 <desc>
19817 If operation was successful, if false - 'message' attribute
19818 may be of interest.
19819 </desc>
19820 </attribute>
19821
19822 <attribute name="attachment" type="IPCIDeviceAttachment" readonly="yes">
19823 <desc>
19824 Attachment info for this device.
19825 </desc>
19826 </attribute>
19827
19828 <attribute name="message" type="wstring" readonly="yes">
19829 <desc>
19830 Optional error message.
19831 </desc>
19832 </attribute>
19833
19834 </interface>
19835
19836 <interface
19837 name="IVBoxSVCAvailabilityChangedEvent" extends="IEvent"
19838 uuid="97c78fcd-d4fc-485f-8613-5af88bfcfcdc"
19839 wsmap="managed" autogen="VBoxEvent" id="OnVBoxSVCAvailabilityChanged"
19840 >
19841 <desc>
19842 Notification when VBoxSVC becomes unavailable (due to a crash or similar
19843 unexpected circumstances) or available again.
19844 </desc>
19845
19846 <attribute name="available" type="boolean" readonly="yes">
19847 <desc>
19848 Whether VBoxSVC is available now.
19849 </desc>
19850 </attribute>
19851 </interface>
19852
19853 <interface
19854 name="IBandwidthGroupChangedEvent" extends="IEvent"
19855 uuid="334df94a-7556-4cbc-8c04-043096b02d82"
19856 wsmap="managed" autogen="VBoxEvent" id="OnBandwidthGroupChanged"
19857 >
19858 <desc>
19859 Notification when one of the bandwidth groups changed
19860 </desc>
19861 <attribute name="bandwidthGroup" type="IBandwidthGroup" readonly="yes">
19862 <desc>
19863 The changed bandwidth group.
19864 </desc>
19865 </attribute>
19866 </interface>
19867
19868 <enum
19869 name="GuestMonitorChangedEventType"
19870 uuid="ef172985-7e36-4297-95be-e46396968d66"
19871 >
19872
19873 <desc>
19874 How the guest monitor has been changed.
19875 </desc>
19876
19877 <const name="Enabled" value="0">
19878 <desc>
19879 The guest monitor has been enabled by the guest.
19880 </desc>
19881 </const>
19882
19883 <const name="Disabled" value="1">
19884 <desc>
19885 The guest monitor has been disabled by the guest.
19886 </desc>
19887 </const>
19888
19889 <const name="NewOrigin" value="2">
19890 <desc>
19891 The guest monitor origin has changed in the guest.
19892 </desc>
19893 </const>
19894 </enum>
19895
19896 <interface
19897 name="IGuestMonitorChangedEvent" extends="IEvent"
19898 uuid="0f7b8a22-c71f-4a36-8e5f-a77d01d76090"
19899 wsmap="managed" autogen="VBoxEvent" id="OnGuestMonitorChanged"
19900 >
19901 <desc>
19902 Notification when the guest enables one of its monitors.
19903 </desc>
19904
19905 <attribute name="changeType" type="GuestMonitorChangedEventType" readonly="yes">
19906 <desc>
19907 What was changed for this guest monitor.
19908 </desc>
19909 </attribute>
19910
19911 <attribute name="screenId" type="unsigned long" readonly="yes">
19912 <desc>
19913 The monitor which was changed.
19914 </desc>
19915 </attribute>
19916
19917 <attribute name="originX" type="unsigned long" readonly="yes">
19918 <desc>
19919 Physical X origin relative to the primary screen.
19920 Valid for Enabled and NewOrigin.
19921 </desc>
19922 </attribute>
19923
19924 <attribute name="originY" type="unsigned long" readonly="yes">
19925 <desc>
19926 Physical Y origin relative to the primary screen.
19927 Valid for Enabled and NewOrigin.
19928 </desc>
19929 </attribute>
19930
19931 <attribute name="width" type="unsigned long" readonly="yes">
19932 <desc>
19933 Width of the screen.
19934 Valid for Enabled.
19935 </desc>
19936 </attribute>
19937
19938 <attribute name="height" type="unsigned long" readonly="yes">
19939 <desc>
19940 Height of the screen.
19941 Valid for Enabled.
19942 </desc>
19943 </attribute>
19944
19945 </interface>
19946
19947 <interface
19948 name="IStorageDeviceChangedEvent" extends="IEvent"
19949 uuid="8a5c2dce-e341-49d4-afce-c95979f7d70c"
19950 wsmap="managed" autogen="VBoxEvent" id="OnStorageDeviceChanged"
19951 >
19952 <desc>
19953 Notification when a
19954 <link to="IMachine::mediumAttachments">storage device</link>
19955 is attached or removed.
19956 </desc>
19957 <attribute name="storageDevice" type="IMediumAttachment" readonly="yes">
19958 <desc>
19959 Storage device that is subject to change.
19960 </desc>
19961 </attribute>
19962 <attribute name="removed" type="boolean" readonly="yes">
19963 <desc>
19964 Flag whether the device was removed or added to the VM.
19965 </desc>
19966 </attribute>
19967 </interface>
19968
19969 <module name="VBoxSVC" context="LocalServer">
19970 <class name="VirtualBox" uuid="B1A7A4F2-47B9-4A1E-82B2-07CCD5323C3F"
19971 namespace="virtualbox.org">
19972 <interface name="IVirtualBox" default="yes"/>
19973 </class>
19974 </module>
19975
19976 <module name="VBoxC" context="InprocServer" threadingModel="Free">
19977 <class name="VirtualBoxClient" uuid="dd3fc71d-26c0-4fe1-bf6f-67f633265bba"
19978 namespace="virtualbox.org">
19979 <interface name="IVirtualBoxClient" default="yes"/>
19980 </class>
19981
19982 <class name="Session" uuid="3C02F46D-C9D2-4F11-A384-53F0CF917214"
19983 namespace="virtualbox.org">
19984 <interface name="ISession" default="yes"/>
19985 </class>
19986 </module>
19987
19988</library>
19989
19990</idl>
19991
19992<!-- vim: set shiftwidth=2 tabstop=2 expandtab: -->
Note: See TracBrowser for help on using the repository browser.

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