VirtualBox

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

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

Build fix.

  • Property svn:eol-style set to native
File size: 739.3 KB
Line 
1<?xml version="1.0" encoding="utf-8"?>
2
3<!--
4
5 Copyright (C) 2006-2012 Oracle Corporation
6
7 This file is part of VirtualBox Open Source Edition (OSE), as
8 available from http://www.virtualbox.org. This file is free software;
9 you can redistribute it and/or modify it under the terms of the GNU
10 General Public License (GPL) as published by the Free Software
11 Foundation, in version 2 as it comes in the "COPYING" file of the
12 VirtualBox OSE distribution. VirtualBox OSE is distributed in the
13 hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
14-->
15
16<!--
17 This is the master declaration for VirtualBox's Main API,
18 represented by COM/XPCOM and web service interfaces.
19
20 From this document, the build system generates several files
21 via XSLT that are then used during the build process.
22
23 Below is the list of XSL templates that operate on this file and
24 output files they generate. These XSL templates must be updated
25 whenever the schema of this file changes:
26
27 1. src/VBox/Main/idl/midl.xsl =>
28 out/<platform>/bin/sdk/idl/VirtualBox.idl
29 (MS COM interface definition file for Main API)
30
31 2. src/VBox/Main/idl/xpidl.xsl =>
32 out/<platform>/bin/sdk/idl/VirtualBox_XPCOM.idl
33 (XPCOM interface definition file for Main API)
34
35 3. src/VBox/Main/idl/doxygen.xsl =>
36 out/<platform>/obj/src/VBox/Main/VirtualBox.idl
37 (pseudo-IDL for Doxygen to generate the official Main API
38 documentation)
39
40 4. src/VBox/Main/webservice/*.xsl =>
41 a bunch of WSDL and C++ files
42 (VirtualBox web service sources and SOAP mappers;
43 see src/VBox/Main/webservice/Makefile.kmk for details)
44
45 5. src/VBox/Frontends/VirtualBox/include/COMWrappers.xsl =>
46 out/<platform>/obj/src/VBox/Frontends/VirtualBox/VirtualBox/include/COMWrappers.h
47 (smart Qt-based C++ wrapper classes for COM interfaces
48 of the Main API)
49
50 6. src/VBox/Installer/win32/VirtualBox_TypeLib.xsl =>
51 out/<platform>/obj/src/VBox/Installer/win32/VirtualBox_TypeLib.wxi
52 (Main API TypeLib block for the WiX installer)
53
54 7. src/VBox/Runtime/common/err/errmsgvboxcom.xsl =>
55 out/<platform>/obj/Runtime/errmsgvboxcomdata.h
56 (<result> extraction for the %Rhrc format specifier)
57-->
58
59<idl>
60
61<desc>
62 Welcome to the <b>VirtualBox Main API documentation</b>. This documentation
63 describes the so-called <i>VirtualBox Main API</i> which comprises all public
64 COM interfaces and components provided by the VirtualBox server and by the
65 VirtualBox client library.
66
67 VirtualBox employs a client-server design, meaning that whenever any part of
68 VirtualBox is running -- be it the Qt GUI, the VBoxManage command-line
69 interface or any virtual machine --, a dedicated server process named
70 VBoxSVC runs in the background. This allows multiple processes working with
71 VirtualBox to cooperate without conflicts. These processes communicate to each
72 other using inter-process communication facilities provided by the COM
73 implementation of the host computer.
74
75 On Windows platforms, the VirtualBox Main API uses Microsoft COM, a native COM
76 implementation. On all other platforms, Mozilla XPCOM, an open-source COM
77 implementation, is used.
78
79 All the parts that a typical VirtualBox user interacts with (the Qt GUI
80 and the VBoxManage command-line interface) are technically
81 front-ends to the Main API and only use the interfaces that are documented
82 in this Main API documentation. This ensures that, with any given release
83 version of VirtualBox, all capabilities of the product that could be useful
84 to an external client program are always exposed by way of this API.
85
86 The VirtualBox Main API (also called the <i>VirtualBox COM library</i>)
87 contains two public component classes:
88 <tt>%VirtualBox.VirtualBox</tt> and <tt>%VirtualBox.Session</tt>, which
89 implement IVirtualBox and ISession interfaces respectively. These two classes
90 are of supreme importance and will be needed in order for any front-end
91 program to do anything useful. It is recommended to read the documentation of
92 the mentioned interfaces first.
93
94 The <tt>%VirtualBox.VirtualBox</tt> class is a singleton. This means that
95 there can be only one object of this class on the local machine at any given
96 time. This object is a parent of many other objects in the VirtualBox COM
97 library and lives in the VBoxSVC process. In fact, when you create an instance
98 of the <tt>VirtualBox.VirtualBox</tt>, the COM subsystem checks if the VBoxSVC
99 process is already running, starts it if not, and returns you a reference to
100 the <tt>VirtualBox</tt> object created in this process. When the last reference
101 to this object is released, the VBoxSVC process ends (with a 5 second delay to
102 protect from too frequent restarts).
103
104 The <tt>%VirtualBox.Session</tt> class is a regular component. You can create
105 as many <tt>Session</tt> objects as you need but all of them will live in a
106 process which issues the object instantiation call. <tt>Session</tt> objects
107 represent virtual machine sessions which are used to configure virtual
108 machines and control their execution.
109
110 The naming of methods and attributes is very clearly defined: they all start
111 with a lowercase letter (except if they start with an acronym), and are using
112 CamelCase style otherwise. This naming only applies to the IDL description,
113 and is modified by the various language bindings (some convert the first
114 character to upper case, some not). See the SDK reference for more details
115 about how to call a method or attribute from a specific programming language.
116</desc>
117
118<if target="midl">
119 <cpp line="enum {"/>
120 <cpp line=" kTypeLibraryMajorVersion = 1,"/>
121 <cpp line=" kTypeLibraryMinorVersion = 0"/>
122 <cpp line="};"/>
123</if>
124
125<if target="xpidl">
126 <!-- NS_IMPL_THREADSAFE_ISUPPORTSxx_CI macros are placed here, for convenience -->
127 <cpp>
128/* currently, nsISupportsImpl.h lacks the below-like macros */
129
130#define NS_IMPL_THREADSAFE_QUERY_INTERFACE1_CI NS_IMPL_QUERY_INTERFACE1_CI
131#define NS_IMPL_THREADSAFE_QUERY_INTERFACE2_CI NS_IMPL_QUERY_INTERFACE2_CI
132#define NS_IMPL_THREADSAFE_QUERY_INTERFACE3_CI NS_IMPL_QUERY_INTERFACE3_CI
133#define NS_IMPL_THREADSAFE_QUERY_INTERFACE4_CI NS_IMPL_QUERY_INTERFACE4_CI
134
135
136#ifndef NS_IMPL_THREADSAFE_ISUPPORTS1_CI
137# define NS_IMPL_THREADSAFE_ISUPPORTS1_CI(_class, _interface) \
138 NS_IMPL_THREADSAFE_ADDREF(_class) \
139 NS_IMPL_THREADSAFE_RELEASE(_class) \
140 NS_IMPL_THREADSAFE_QUERY_INTERFACE1_CI(_class, _interface) \
141 NS_IMPL_CI_INTERFACE_GETTER1(_class, _interface)
142#endif
143
144#ifndef NS_IMPL_THREADSAFE_ISUPPORTS2_CI
145# define NS_IMPL_THREADSAFE_ISUPPORTS2_CI(_class, _i1, _i2) \
146 NS_IMPL_THREADSAFE_ADDREF(_class) \
147 NS_IMPL_THREADSAFE_RELEASE(_class) \
148 NS_IMPL_THREADSAFE_QUERY_INTERFACE2_CI(_class, _i1, _i2) \
149 NS_IMPL_CI_INTERFACE_GETTER2(_class, _i1, _i2)
150#endif
151
152#ifndef NS_IMPL_THREADSAFE_ISUPPORTS3_CI
153# define NS_IMPL_THREADSAFE_ISUPPORTS3_CI(_class, _i1, _i2, _i3) \
154 NS_IMPL_THREADSAFE_ADDREF(_class) \
155 NS_IMPL_THREADSAFE_RELEASE(_class) \
156 NS_IMPL_THREADSAFE_QUERY_INTERFACE3_CI(_class, _i1, _i2, _i3) \
157 NS_IMPL_CI_INTERFACE_GETTER3(_class, _i1, _i2, _i3)
158#endif
159
160#ifndef NS_IMPL_THREADSAFE_ISUPPORTS4_CI
161# define NS_IMPL_THREADSAFE_ISUPPORTS4_CI(_class, _i1, _i2, _i3, _i4) \
162 NS_IMPL_THREADSAFE_ADDREF(_class) \
163 NS_IMPL_THREADSAFE_RELEASE(_class) \
164 NS_IMPL_THREADSAFE_QUERY_INTERFACE4_CI(_class, _i1, _i2, _i3, _i4) \
165 NS_IMPL_CI_INTERFACE_GETTER4(_class, _i1, _i2, _i3, _i4)
166#endif
167
168#ifndef NS_IMPL_QUERY_INTERFACE1_AMBIGUOUS_CI
169# define NS_IMPL_QUERY_INTERFACE1_AMBIGUOUS_CI(_class, _i1, _ic1) \
170 NS_INTERFACE_MAP_BEGIN(_class) \
171 NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(_i1, _ic1) \
172 NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(nsISupports, _ic1) \
173 NS_IMPL_QUERY_CLASSINFO(_class) \
174 NS_INTERFACE_MAP_END
175#endif
176
177#ifndef NS_IMPL_QUERY_INTERFACE2_AMBIGUOUS_CI
178# define NS_IMPL_QUERY_INTERFACE2_AMBIGUOUS_CI(_class, _i1, _ic1, \
179 _i2, _ic2) \
180 NS_INTERFACE_MAP_BEGIN(_class) \
181 NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(_i1, _ic1) \
182 NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(_i2, _ic2) \
183 NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(nsISupports, _ic1) \
184 NS_IMPL_QUERY_CLASSINFO(_class) \
185 NS_INTERFACE_MAP_END
186#endif
187
188#ifndef NS_IMPL_QUERY_INTERFACE3_AMBIGUOUS_CI
189# define NS_IMPL_QUERY_INTERFACE3_AMBIGUOUS_CI(_class, _i1, _ic1, \
190 _i2, _ic2, _i3, _ic3) \
191 NS_INTERFACE_MAP_BEGIN(_class) \
192 NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(_i1, _ic1) \
193 NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(_i2, _ic2) \
194 NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(_i3, _ic3) \
195 NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(nsISupports, _ic1) \
196 NS_IMPL_QUERY_CLASSINFO(_class) \
197 NS_INTERFACE_MAP_END
198#endif
199
200#define NS_IMPL_THREADSAFE_QUERY_INTERFACE1_AMBIGUOUS_CI NS_IMPL_QUERY_INTERFACE1_AMBIGUOUS_CI
201#define NS_IMPL_THREADSAFE_QUERY_INTERFACE2_AMBIGUOUS_CI NS_IMPL_QUERY_INTERFACE2_AMBIGUOUS_CI
202#define NS_IMPL_THREADSAFE_QUERY_INTERFACE3_AMBIGUOUS_CI NS_IMPL_QUERY_INTERFACE3_AMBIGUOUS_CI
203
204#ifndef NS_IMPL_THREADSAFE_ISUPPORTS1_AMBIGUOUS_CI
205# define NS_IMPL_THREADSAFE_ISUPPORTS1_AMBIGUOUS_CI(_class, _i1, _ic1) \
206 NS_IMPL_THREADSAFE_ADDREF(_class) \
207 NS_IMPL_THREADSAFE_RELEASE(_class) \
208 NS_IMPL_THREADSAFE_QUERY_INTERFACE1_AMBIGUOUS_CI(_class, _i1, _ic1) \
209 NS_IMPL_CI_INTERFACE_GETTER1(_class, _i1)
210#endif
211
212#ifndef NS_IMPL_THREADSAFE_ISUPPORTS2_AMBIGUOUS_CI
213# define NS_IMPL_THREADSAFE_ISUPPORTS2_AMBIGUOUS_CI(_class, _i1, _ic1, \
214 _i2, _ic2) \
215 NS_IMPL_THREADSAFE_ADDREF(_class) \
216 NS_IMPL_THREADSAFE_RELEASE(_class) \
217 NS_IMPL_THREADSAFE_QUERY_INTERFACE2_AMBIGUOUS_CI(_class, _i1, _ic1, \
218 _i2, _ic2) \
219 NS_IMPL_CI_INTERFACE_GETTER2(_class, _i1, _i2)
220#endif
221
222#ifndef NS_IMPL_THREADSAFE_ISUPPORTS3_AMBIGUOUS_CI
223# define NS_IMPL_THREADSAFE_ISUPPORTS3_AMBIGUOUS_CI(_class, _i1, _ic1, \
224 _i2, _ic2, _i3, _ic3) \
225 NS_IMPL_THREADSAFE_ADDREF(_class) \
226 NS_IMPL_THREADSAFE_RELEASE(_class) \
227 NS_IMPL_THREADSAFE_QUERY_INTERFACE3_AMBIGUOUS_CI(_class, _i1, _ic1, \
228 _i2, _ic2, _i3, _ic3) \
229 NS_IMPL_CI_INTERFACE_GETTER3(_class, _i1, _i2, _i3)
230#endif
231
232 </cpp>
233</if>
234
235<library
236 name="VirtualBox"
237 uuid="46137EEC-703B-4fe5-AFD4-7C9BBBBA0259"
238 version="1.3"
239 desc="VirtualBox Type Library"
240 appUuid="819B4D85-9CEE-493C-B6FC-64FFE759B3C9"
241 supportsErrorInfo="yes"
242>
243
244
245 <!--
246 // COM result codes for VirtualBox
247 /////////////////////////////////////////////////////////////////////////
248 -->
249
250 <descGroup id="VirtualBox_COM_result_codes" title="VirtualBox COM result codes">
251 <desc>
252 This section describes all VirtualBox-specific COM result codes that may
253 be returned by methods of VirtualBox COM interfaces in addition to
254 standard COM result codes.
255
256 Note that along with the result code, every VirtualBox method returns
257 extended error information through the IVirtualBoxErrorInfo interface on
258 failure. This interface is a preferred way to present the error to the end
259 user because it contains a human readable description of the error. Raw
260 result codes, both standard and described in this section, are intended to
261 be used by programs to analyze the reason of a failure and select an
262 appropriate course of action without involving the end user (for example,
263 retry the operation later or make a different call).
264
265 The standard COM result codes that may originate from our methods include:
266
267 <table>
268 <tr><td>E_INVALIDARG</td>
269 <td>
270 Returned when the value of the method's argument is not within the range
271 of valid values. This should not be confused with situations when the
272 value is within the range but simply doesn't suit the current object
273 state and there is a possibility that it will be accepted later (in such
274 cases VirtualBox-specific codes are returned, for example,
275 <link to="VBOX_E_OBJECT_NOT_FOUND"/>).
276 </td>
277 </tr>
278 <tr><td>E_POINTER</td>
279 <td>
280 Returned if a memory pointer for the output argument is invalid (for
281 example, @c null). When pointers representing input arguments (such
282 as strings) are invalid, E_INVALIDARG is returned.
283 </td>
284 </tr>
285 <tr><td>E_ACCESSDENIED</td>
286 <td>
287 Returned when the called object is not ready. Since the lifetime of a
288 public COM object cannot be fully controlled by the implementation,
289 VirtualBox maintains the readiness state for all objects it creates and
290 returns this code in response to any method call on the object that was
291 deactivated by VirtualBox and is not functioning any more.
292 </td>
293 </tr>
294 <tr><td>E_OUTOFMEMORY</td>
295 <td>
296 Returned when a memory allocation operation fails.
297 </td>
298 </tr>
299 </table>
300 </desc>
301 </descGroup>
302
303 <!--
304 Note that src/VBox/Runtime/common/err/errmsgvboxcom.xsl will ignore
305 everything in <result>/<desc> after (and including) the first dot, so express
306 the matter of the error code in the first sentence and keep it short.
307 -->
308
309 <result name="VBOX_E_OBJECT_NOT_FOUND" value="0x80BB0001">
310 <desc>
311 Object corresponding to the supplied arguments does not exist.
312 </desc>
313 </result>
314
315 <result name="VBOX_E_INVALID_VM_STATE" value="0x80BB0002">
316 <desc>
317 Current virtual machine state prevents the operation.
318 </desc>
319 </result>
320
321 <result name="VBOX_E_VM_ERROR" value="0x80BB0003">
322 <desc>
323 Virtual machine error occurred attempting the operation.
324 </desc>
325 </result>
326
327 <result name="VBOX_E_FILE_ERROR" value="0x80BB0004">
328 <desc>
329 File not accessible or erroneous file contents.
330 </desc>
331 </result>
332
333 <result name="VBOX_E_IPRT_ERROR" value="0x80BB0005">
334 <desc>
335 Runtime subsystem error.
336 </desc>
337 </result>
338
339 <result name="VBOX_E_PDM_ERROR" value="0x80BB0006">
340 <desc>
341 Pluggable Device Manager error.
342 </desc>
343 </result>
344
345 <result name="VBOX_E_INVALID_OBJECT_STATE" value="0x80BB0007">
346 <desc>
347 Current object state prohibits operation.
348 </desc>
349 </result>
350
351 <result name="VBOX_E_HOST_ERROR" value="0x80BB0008">
352 <desc>
353 Host operating system related error.
354 </desc>
355 </result>
356
357 <result name="VBOX_E_NOT_SUPPORTED" value="0x80BB0009">
358 <desc>
359 Requested operation is not supported.
360 </desc>
361 </result>
362
363 <result name="VBOX_E_XML_ERROR" value="0x80BB000A">
364 <desc>
365 Invalid XML found.
366 </desc>
367 </result>
368
369 <result name="VBOX_E_INVALID_SESSION_STATE" value="0x80BB000B">
370 <desc>
371 Current session state prohibits operation.
372 </desc>
373 </result>
374
375 <result name="VBOX_E_OBJECT_IN_USE" value="0x80BB000C">
376 <desc>
377 Object being in use prohibits operation.
378 </desc>
379 </result>
380
381 <!--
382 Note that src/VBox/Runtime/common/err/errmsgvboxcom.xsl will ignore
383 everything in <result>/<desc> after (and including) the first dot, so express
384 the matter of the error code in the first sentence and keep it short.
385 -->
386
387 <descGroup/>
388
389 <!--
390 // all common enums
391 /////////////////////////////////////////////////////////////////////////
392 -->
393
394 <enum
395 name="SettingsVersion"
396 uuid="52bd6f5f-1adb-4493-975d-581a9c4b803f"
397 >
398 <desc>
399 Settings version of VirtualBox settings files. This is written to
400 the "version" attribute of the root "VirtualBox" element in the settings
401 file XML and indicates which VirtualBox version wrote the file.
402 </desc>
403
404 <const name="Null" value="0">
405 <desc>Null value, indicates invalid version.</desc>
406 </const>
407 <const name="v1_0" value="1">
408 <desc>Legacy settings version, not currently supported.</desc>
409 </const>
410 <const name="v1_1" value="2">
411 <desc>Legacy settings version, not currently supported.</desc>
412 </const>
413 <const name="v1_2" value="3">
414 <desc>Legacy settings version, not currently supported.</desc>
415 </const>
416 <const name="v1_3pre" value="4">
417 <desc>Legacy settings version, not currently supported.</desc>
418 </const>
419 <const name="v1_3" value="5">
420 <desc>Settings version "1.3", written by VirtualBox 2.0.12.</desc>
421 <!--
422 Machine XML: Capitalization of Uart, Lpt elements and many attributes changed.
423 -->
424 </const>
425 <const name="v1_4" value="6">
426 <desc>Intermediate settings version, understood by VirtualBox 2.1.x.</desc>
427 <!--
428 VirtualBox.xml: big DiskRegistry -> MediaRegistry revamp, various HardDisk types merged
429 (was VirtualDiskImage, VMDKImage, VHDImage, ISCSIHardDisk, CustomHardDisk, DiffHardDisk)
430 -->
431 </const>
432 <const name="v1_5" value="7">
433 <desc>Intermediate settings version, understood by VirtualBox 2.1.x.</desc>
434 <!--
435 2008-09-04: 2.0.0 released
436 2008-11-20: settings version 1.5 introduced
437 2008-12-17: 2.1.0 released
438 Machine changes:
439 guest OS identifiers changed;
440 Machine/Hardware/Display/MonitorCount renamed to monitorCount;
441 Machine/Hardware/Display/Accelerate3D renamed to accelerate3D;
442 Machine/Hardware/CPU/CPUCount/@count changed to CPU/@count
443 -->
444 </const>
445 <const name="v1_6" value="8">
446 <desc>Settings version "1.6", written by VirtualBox 2.1.4 (at least).</desc>
447 <!--
448 2008-12-17: 2.1.0 released
449 2008-12-19: settings version 1.6 introduced (is in 2.1 branch)
450 2009-04-08: 2.2.0 released
451 Machine changes: remove all Machine/Hardware/Network/Adapter/HostInterface[@TAPSetup or @TAPTerminate]/ attributes (done)
452 -->
453 </const>
454 <const name="v1_7" value="9">
455 <desc>Settings version "1.7", written by VirtualBox 2.2.x and 3.0.x.</desc>
456 <!--
457 2008-12-17: 2.1.0 released
458 2009-03-11: settings version 1.7 introduced (is in 2.2 branch)
459 2009-04-08: 2.2.0 released
460 VirtualBox.xml additions: NetserviceRegistry with DHCPServers (done)
461 Machine changes: HardDiskAttachments is now StorageControllers (done)
462 -->
463 </const>
464 <const name="v1_8" value="10">
465 <desc>Intermediate settings version "1.8", understood by VirtualBox 3.1.x.</desc>
466 <!--
467 Machine additions: Display/@accelerate2DVideo (done)
468 -->
469 </const>
470 <const name="v1_9" value="11">
471 <desc>Settings version "1.9", written by VirtualBox 3.1.x.</desc>
472 <!--
473 The big storage controller / DVD / Floppy rework (done)
474 -->
475 </const>
476 <const name="v1_10" value="12">
477 <desc>Settings version "1.10", written by VirtualBox 3.2.x.</desc>
478 <!--
479 Machine changes: RTC localOrUTC (done)
480 CPU hot-plug support
481 -->
482 </const>
483 <const name="v1_11" value="13">
484 <desc>Settings version "1.11", written by VirtualBox 4.0.x.</desc>
485 <!--
486 Machine changes: HD Audio controller, per-machine disk registries,
487 /@format attribute for DVD and floppy images.
488 -->
489 </const>
490 <const name="v1_12" value="14">
491 <desc>Settings version "1.12", written by VirtualBox 4.1.x.</desc>
492 <!--
493 Machine changes: raw PCI device attachment;
494 NetworkAdapter changes: bandwidth group.
495 -->
496 </const>
497 <const name="v1_13" value="15">
498 <desc>Settings version "1.13", written by VirtualBox 4.2.x.</desc>
499 <!--
500 Machine changes: tracing config, groups, autostart;
501 NetworkAdapter changes: unit for bandwidth group limits.
502 -->
503 </const>
504
505 <const name="Future" value="99999">
506 <desc>Settings version greater than "1.13", written by a future VirtualBox version.</desc>
507 </const>
508 </enum>
509
510 <enum
511 name="AccessMode"
512 uuid="1da0007c-ddf7-4be8-bcac-d84a1558785f"
513 >
514 <desc>
515 Access mode for opening files.
516 </desc>
517
518 <const name="ReadOnly" value="1"/>
519 <const name="ReadWrite" value="2"/>
520 </enum>
521
522 <enum
523 name="MachineState"
524 uuid="ec6c6a9e-113d-4ff4-b44f-0b69f21c97fe"
525 >
526 <desc>
527 Virtual machine execution state.
528
529 This enumeration represents possible values of the <link
530 to="IMachine::state"/> attribute.
531
532 Below is the basic virtual machine state diagram. It shows how the state
533 changes during virtual machine execution. The text in square braces shows
534 a method of the IConsole interface that performs the given state
535 transition.
536
537 <pre>
538 +---------[powerDown()] &lt;- Stuck &lt;--[failure]-+
539 V |
540 +-&gt; PoweredOff --+--&gt;[powerUp()]--&gt; Starting --+ | +-----[resume()]-----+
541 | | | | V |
542 | Aborted -----+ +--&gt; Running --[pause()]--&gt; Paused
543 | | ^ | ^ |
544 | Saved -----------[powerUp()]--&gt; Restoring -+ | | | |
545 | ^ | | | |
546 | | +-----------------------------------------+-|-------------------+ +
547 | | | | |
548 | | +-- Saving &lt;--------[takeSnapshot()]&lt;-------+---------------------+
549 | | | |
550 | +-------- Saving &lt;--------[saveState()]&lt;----------+---------------------+
551 | | |
552 +-------------- Stopping -------[powerDown()]&lt;----------+---------------------+
553 </pre>
554
555 Note that states to the right from PoweredOff, Aborted and Saved in the
556 above diagram are called <i>online VM states</i>. These states
557 represent the virtual machine which is being executed in a dedicated
558 process (usually with a GUI window attached to it where you can see the
559 activity of the virtual machine and interact with it). There are two
560 special pseudo-states, FirstOnline and LastOnline, that can be used in
561 relational expressions to detect if the given machine state is online or
562 not:
563
564 <pre>
565 if (machine.GetState() &gt;= MachineState_FirstOnline &amp;&amp;
566 machine.GetState() &lt;= MachineState_LastOnline)
567 {
568 ...the machine is being executed...
569 }
570 </pre>
571
572 When the virtual machine is in one of the online VM states (that is, being
573 executed), only a few machine settings can be modified. Methods working
574 with such settings contain an explicit note about that. An attempt to
575 change any other setting or perform a modifying operation during this time
576 will result in the @c VBOX_E_INVALID_VM_STATE error.
577
578 All online states except Running, Paused and Stuck are transitional: they
579 represent temporary conditions of the virtual machine that will last as
580 long as the operation that initiated such a condition.
581
582 The Stuck state is a special case. It means that execution of the machine
583 has reached the "Guru Meditation" condition. This condition indicates an
584 internal VMM (virtual machine manager) failure which may happen as a
585 result of either an unhandled low-level virtual hardware exception or one
586 of the recompiler exceptions (such as the <i>too-many-traps</i>
587 condition).
588
589 Note also that any online VM state may transit to the Aborted state. This
590 happens if the process that is executing the virtual machine terminates
591 unexpectedly (for example, crashes). Other than that, the Aborted state is
592 equivalent to PoweredOff.
593
594 There are also a few additional state diagrams that do not deal with
595 virtual machine execution and therefore are shown separately. The states
596 shown on these diagrams are called <i>offline VM states</i> (this includes
597 PoweredOff, Aborted and Saved too).
598
599 The first diagram shows what happens when a lengthy setup operation is
600 being executed (such as <link to="IMachine::attachDevice"/>).
601
602 <pre>
603 +----------------------------------(same state as before the call)------+
604 | |
605 +-&gt; PoweredOff --+ |
606 | | |
607 |-&gt; Aborted -----+--&gt;[lengthy VM configuration call] --&gt; SettingUp -----+
608 | |
609 +-&gt; Saved -------+
610 </pre>
611
612 The next two diagrams demonstrate the process of taking a snapshot of a
613 powered off virtual machine, restoring the state to that as of a snapshot
614 or deleting a snapshot, respectively.
615
616 <pre>
617 +----------------------------------(same state as before the call)------+
618 | |
619 +-&gt; PoweredOff --+ |
620 | +--&gt;[takeSnapshot()] -------------------&gt; Saving ------+
621 +-&gt; Aborted -----+
622
623 +-&gt; PoweredOff --+
624 | |
625 | Aborted -----+--&gt;[restoreSnapshot() ]-------&gt; RestoringSnapshot -+
626 | | [deleteSnapshot() ]-------&gt; DeletingSnapshot --+
627 +-&gt; Saved -------+ |
628 | |
629 +---(Saved if restored from an online snapshot, PoweredOff otherwise)---+
630 </pre>
631
632 Note that the Saving state is present in both the offline state group and
633 online state group. Currently, the only way to determine what group is
634 assumed in a particular case is to remember the previous machine state: if
635 it was Running or Paused, then Saving is an online state, otherwise it is
636 an offline state. This inconsistency may be removed in one of the future
637 versions of VirtualBox by adding a new state.
638
639 <note internal="yes">
640 For whoever decides to touch this enum: In order to keep the
641 comparisons involving FirstOnline and LastOnline pseudo-states valid,
642 the numeric values of these states must be correspondingly updated if
643 needed: for any online VM state, the condition
644 <tt>FirstOnline &lt;= state &lt;= LastOnline</tt> must be
645 @c true. The same relates to transient states for which
646 the condition <tt>FirstOnline &lt;= state &lt;= LastOnline</tt> must be
647 @c true.
648 </note>
649 </desc>
650
651 <const name="Null" value="0">
652 <desc>Null value (never used by the API).</desc>
653 </const>
654 <const name="PoweredOff" value="1">
655 <desc>
656 The machine is not running and has no saved execution state; it has
657 either never been started or been shut down successfully.
658 </desc>
659 </const>
660 <const name="Saved" value="2">
661 <desc>
662 The machine is not currently running, but the execution state of the machine
663 has been saved to an external file when it was running, from where
664 it can be resumed.
665 </desc>
666 </const>
667 <const name="Teleported" value="3">
668 <desc>
669 The machine was teleported to a different host (or process) and then
670 powered off. Take care when powering it on again may corrupt resources
671 it shares with the teleportation target (e.g. disk and network).
672 </desc>
673 </const>
674 <const name="Aborted" value="4">
675 <desc>
676 The process running the machine has terminated abnormally. This may
677 indicate a crash of the VM process in host execution context, or
678 the VM process has been terminated externally.
679 </desc>
680 </const>
681 <const name="Running" value="5">
682 <desc>
683 The machine is currently being executed.
684 <note internal="yes">
685 For whoever decides to touch this enum: In order to keep the
686 comparisons in the old source code valid, this state must immediately
687 precede the Paused state.
688 TODO: Lift this spectacularly wonderful restriction.
689 </note>
690 </desc>
691 </const>
692 <const name="Paused" value="6">
693 <desc>
694 Execution of the machine has been paused.
695 <note internal="yes">
696 For whoever decides to touch this enum: In order to keep the
697 comparisons in the old source code valid, this state must immediately
698 follow the Running state.
699 TODO: Lift this spectacularly wonderful restriction.
700 </note>
701 </desc>
702 </const>
703 <const name="Stuck" value="7">
704 <desc>
705 Execution of the machine has reached the "Guru Meditation"
706 condition. This indicates a severe error in the hypervisor itself.
707 <note internal="yes">
708 bird: Why this uncool name? Could we rename it to "GuruMeditation" or
709 "Guru", perhaps? Or are there some other VMM states that are
710 intended to be lumped in here as well?
711 </note>
712 </desc>
713 </const>
714 <const name="Teleporting" value="8">
715 <desc>
716 The machine is about to be teleported to a different host or process.
717 It is possible to pause a machine in this state, but it will go to the
718 @c TeleportingPausedVM state and it will not be
719 possible to resume it again unless the teleportation fails.
720 </desc>
721 </const>
722 <const name="LiveSnapshotting" value="9">
723 <desc>
724 A live snapshot is being taken. The machine is running normally, but
725 some of the runtime configuration options are inaccessible. Also, if
726 paused while in this state it will transition to
727 @c Saving and it will not be resume the
728 execution until the snapshot operation has completed.
729 </desc>
730 </const>
731 <const name="Starting" value="10">
732 <desc>
733 Machine is being started after powering it on from a
734 zero execution state.
735 </desc>
736 </const>
737 <const name="Stopping" value="11">
738 <desc>
739 Machine is being normally stopped powering it off, or after the guest OS
740 has initiated a shutdown sequence.
741 </desc>
742 </const>
743 <const name="Saving" value="12">
744 <desc>
745 Machine is saving its execution state to a file, or an online
746 snapshot of the machine is being taken.
747 </desc>
748 </const>
749 <const name="Restoring" value="13">
750 <desc>
751 Execution state of the machine is being restored from a file
752 after powering it on from the saved execution state.
753 </desc>
754 </const>
755 <const name="TeleportingPausedVM" value="14">
756 <desc>
757 The machine is being teleported to another host or process, but it is
758 not running. This is the paused variant of the
759 @c state.
760 </desc>
761 </const>
762 <const name="TeleportingIn" value="15">
763 <desc>
764 Teleporting the machine state in from another host or process.
765 </desc>
766 </const>
767 <const name="FaultTolerantSyncing" value="16">
768 <desc>
769 The machine is being synced with a fault tolerant VM running elsewhere.
770 </desc>
771 </const>
772 <const name="DeletingSnapshotOnline" value="17">
773 <desc>
774 Like @c DeletingSnapshot, but the merging of media is ongoing in
775 the background while the machine is running.
776 </desc>
777 </const>
778 <const name="DeletingSnapshotPaused" value="18">
779 <desc>
780 Like @c DeletingSnapshotOnline, but the machine was paused when the
781 merging of differencing media was started.
782 </desc>
783 </const>
784 <const name="RestoringSnapshot" value="19">
785 <desc>
786 A machine snapshot is being restored; this typically does not take long.
787 </desc>
788 </const>
789 <const name="DeletingSnapshot" value="20">
790 <desc>
791 A machine snapshot is being deleted; this can take a long time since this
792 may require merging differencing media. This value indicates that the
793 machine is not running while the snapshot is being deleted.
794 </desc>
795 </const>
796 <const name="SettingUp" value="21">
797 <desc>
798 Lengthy setup operation is in progress.
799 </desc>
800 </const>
801
802 <const name="FirstOnline" value="5" wsmap="suppress"> <!-- Running -->
803 <desc>
804 Pseudo-state: first online state (for use in relational expressions).
805 </desc>
806 </const>
807 <const name="LastOnline" value="18" wsmap="suppress"> <!-- DeletingSnapshotPaused -->
808 <desc>
809 Pseudo-state: last online state (for use in relational expressions).
810 </desc>
811 </const>
812
813 <const name="FirstTransient" value="8" wsmap="suppress"> <!-- Teleporting -->
814 <desc>
815 Pseudo-state: first transient state (for use in relational expressions).
816 </desc>
817 </const>
818 <const name="LastTransient" value="21" wsmap="suppress"> <!-- SettingUp -->
819 <desc>
820 Pseudo-state: last transient state (for use in relational expressions).
821 </desc>
822 </const>
823
824 </enum>
825
826 <enum
827 name="SessionState"
828 uuid="cf2700c0-ea4b-47ae-9725-7810114b94d8"
829 >
830 <desc>
831 Session state. This enumeration represents possible values of
832 <link to="IMachine::sessionState"/> and <link to="ISession::state"/>
833 attributes.
834 </desc>
835
836 <const name="Null" value="0">
837 <desc>Null value (never used by the API).</desc>
838 </const>
839 <const name="Unlocked" value="1">
840 <desc>
841 In <link to="IMachine::sessionState"/>, this means that the machine
842 is not locked for any sessions.
843
844 In <link to="ISession::state"/>, this means that no machine is
845 currently locked for this session.
846 </desc>
847 </const>
848 <const name="Locked" value="2">
849 <desc>
850 In <link to="IMachine::sessionState"/>, this means that the machine
851 is currently locked for a session, whose process identifier can
852 then be found in the <link to="IMachine::sessionPID" /> attribute.
853
854 In <link to="ISession::state"/>, this means that a machine is
855 currently locked for this session, and the mutable machine object
856 can be found in the <link to="ISession::machine"/> attribute
857 (see <link to="IMachine::lockMachine" /> for details).
858 </desc>
859 </const>
860 <const name="Spawning" value="3">
861 <desc>
862 A new process is being spawned for the machine as a result of
863 <link to="IMachine::launchVMProcess"/> call. This state also occurs
864 as a short transient state during an <link to="IMachine::lockMachine"/>
865 call.
866 </desc>
867 </const>
868 <const name="Unlocking" value="4">
869 <desc>
870 The session is being unlocked.
871 </desc>
872 </const>
873 </enum>
874
875 <enum
876 name="CPUPropertyType"
877 uuid="24d356a6-2f45-4abd-b977-1cbe9c4701f5"
878 >
879 <desc>
880 Virtual CPU property type. This enumeration represents possible values of the
881 IMachine get- and setCPUProperty methods.
882 </desc>
883 <const name="Null" value="0">
884 <desc>Null value (never used by the API).</desc>
885 </const>
886 <const name="PAE" value="1">
887 <desc>
888 This setting determines whether VirtualBox will expose the Physical Address
889 Extension (PAE) feature of the host CPU to the guest. Note that in case PAE
890 is not available, it will not be reported.
891 </desc>
892 </const>
893 <const name="Synthetic" value="2">
894 <desc>
895 This setting determines whether VirtualBox will expose a synthetic CPU to the guest to allow
896 teleporting between host systems that differ significantly.
897 </desc>
898 </const>
899 </enum>
900
901
902 <enum
903 name="HWVirtExPropertyType"
904 uuid="ce81dfdd-d2b8-4a90-bbea-40ee8b7ffcee"
905 >
906 <desc>
907 Hardware virtualization property type. This enumeration represents possible values
908 for the <link to="IMachine::getHWVirtExProperty"/> and
909 <link to="IMachine::setHWVirtExProperty"/> methods.
910 </desc>
911 <const name="Null" value="0">
912 <desc>Null value (never used by the API).</desc>
913 </const>
914 <const name="Enabled" value="1">
915 <desc>
916 Whether hardware virtualization (VT-x/AMD-V) is enabled at all. If
917 such extensions are not available, they will not be used.
918 </desc>
919 </const>
920 <const name="Exclusive" value="2">
921 <desc>
922 Whether hardware virtualization is used exclusively by VirtualBox. When enabled,
923 VirtualBox assumes it can acquire full and exclusive access to the VT-x or AMD-V
924 feature of the host. To share these with other hypervisors, you must disable this property.
925 </desc>
926 </const>
927 <const name="VPID" value="3">
928 <desc>
929 Whether VT-x VPID is enabled. If this extension is not available, it will not be used.
930 </desc>
931 </const>
932 <const name="NestedPaging" value="4">
933 <desc>
934 Whether Nested Paging is enabled. If this extension is not available, it will not be used.
935 </desc>
936 </const>
937 <const name="LargePages" value="5">
938 <desc>
939 Whether large page allocation is enabled; requires nested paging and a 64 bits host.
940 </desc>
941 </const>
942 <const name="Force" value="6">
943 <desc>
944 Whether the VM should fail to start if hardware virtualization (VT-x/AMD-V) cannot be used. If
945 not set, there will be an automatic fallback to software virtualization.
946 </desc>
947 </const>
948 </enum>
949
950 <enum
951 name="FaultToleranceState"
952 uuid="5124f7ec-6b67-493c-9dee-ee45a44114e1"
953 >
954 <desc>
955 Used with <link to="IMachine::faultToleranceState" />.
956 </desc>
957 <const name="Inactive" value="1">
958 <desc>No fault tolerance enabled.</desc>
959 </const>
960 <const name="Master" value="2">
961 <desc>Fault tolerant master VM.</desc>
962 </const>
963 <const name="Standby" value="3">
964 <desc>Fault tolerant standby VM.</desc>
965 </const>
966 </enum>
967
968 <enum
969 name="LockType"
970 uuid="168a6a8e-12fd-4878-a1f9-38a750a56089"
971 >
972 <desc>
973 Used with <link to="IMachine::lockMachine" />.
974 </desc>
975 <const name="Write" value="2">
976 <desc>Lock the machine for writing.</desc>
977 </const>
978 <const name="Shared" value="1">
979 <desc>Request only a shared read lock for remote-controlling the machine.</desc>
980 </const>
981 <const name="VM" value="3">
982 <desc>Lock the machine for writing, and create objects necessary for
983 running a VM in this process.</desc>
984 </const>
985 </enum>
986
987 <enum
988 name="SessionType"
989 uuid="A13C02CB-0C2C-421E-8317-AC0E8AAA153A"
990 >
991 <desc>
992 Session type. This enumeration represents possible values of the
993 <link to="ISession::type"/> attribute.
994 </desc>
995
996 <const name="Null" value="0">
997 <desc>Null value (never used by the API).</desc>
998 </const>
999 <const name="WriteLock" value="1">
1000 <desc>
1001 Session has acquired an exclusive write lock on a machine
1002 using <link to="IMachine::lockMachine"/>.
1003 </desc>
1004 </const>
1005 <const name="Remote" value="2">
1006 <desc>
1007 Session has launched a VM process using
1008 <link to="IMachine::launchVMProcess"/>
1009 </desc>
1010 </const>
1011 <const name="Shared" value="3">
1012 <desc>
1013 Session has obtained a link to another session using
1014 <link to="IMachine::lockMachine"/>
1015 </desc>
1016 </const>
1017 </enum>
1018
1019 <enum
1020 name="DeviceType"
1021 uuid="6d9420f7-0b56-4636-99f9-7346f1b01e57"
1022 >
1023 <desc>
1024 Device type.
1025 </desc>
1026 <const name="Null" value="0">
1027 <desc>
1028 Null value, may also mean "no device" (not allowed for
1029 <link to="IConsole::getDeviceActivity"/>).
1030 </desc>
1031 </const>
1032 <const name="Floppy" value="1">
1033 <desc>Floppy device.</desc>
1034 </const>
1035 <const name="DVD" value="2">
1036 <desc>CD/DVD-ROM device.</desc>
1037 </const>
1038 <const name="HardDisk" value="3">
1039 <desc>Hard disk device.</desc>
1040 </const>
1041 <const name="Network" value="4">
1042 <desc>Network device.</desc>
1043 </const>
1044 <const name="USB" value="5">
1045 <desc>USB device.</desc>
1046 </const>
1047 <const name="SharedFolder" value="6">
1048 <desc>Shared folder device.</desc>
1049 </const>
1050 </enum>
1051
1052 <enum
1053 name="DeviceActivity"
1054 uuid="6FC8AEAA-130A-4eb5-8954-3F921422D707"
1055 >
1056 <desc>
1057 Device activity for <link to="IConsole::getDeviceActivity"/>.
1058 </desc>
1059
1060 <const name="Null" value="0"/>
1061 <const name="Idle" value="1"/>
1062 <const name="Reading" value="2"/>
1063 <const name="Writing" value="3"/>
1064 </enum>
1065
1066 <enum
1067 name="ClipboardMode"
1068 uuid="33364716-4008-4701-8f14-be0fa3d62950"
1069 >
1070 <desc>
1071 Host-Guest clipboard interchange mode.
1072 </desc>
1073
1074 <const name="Disabled" value="0"/>
1075 <const name="HostToGuest" value="1"/>
1076 <const name="GuestToHost" value="2"/>
1077 <const name="Bidirectional" value="3"/>
1078 </enum>
1079
1080 <enum
1081 name="DragAndDropMode"
1082 uuid="b618ea0e-b6fb-4f8d-97f7-5e237e49b547"
1083 >
1084 <desc>
1085 Drag'n'Drop interchange mode.
1086 </desc>
1087
1088 <const name="Disabled" value="0"/>
1089 <const name="HostToGuest" value="1"/>
1090 <const name="GuestToHost" value="2"/>
1091 <const name="Bidirectional" value="3"/>
1092 </enum>
1093
1094 <enum
1095 name="Scope"
1096 uuid="7c91096e-499e-4eca-9f9b-9001438d7855"
1097 >
1098 <desc>
1099 Scope of the operation.
1100
1101 A generic enumeration used in various methods to define the action or
1102 argument scope.
1103 </desc>
1104
1105 <const name="Global" value="0"/>
1106 <const name="Machine" value="1"/>
1107 <const name="Session" value="2"/>
1108 </enum>
1109
1110 <enum
1111 name="BIOSBootMenuMode"
1112 uuid="ae4fb9f7-29d2-45b4-b2c7-d579603135d5"
1113 >
1114 <desc>
1115 BIOS boot menu mode.
1116 </desc>
1117
1118 <const name="Disabled" value="0"/>
1119 <const name="MenuOnly" value="1"/>
1120 <const name="MessageAndMenu" value="2"/>
1121 </enum>
1122
1123 <enum
1124 name="ProcessorFeature"
1125 uuid="64c38e6b-8bcf-45ad-ac03-9b406287c5bf"
1126 >
1127 <desc>
1128 CPU features.
1129 </desc>
1130
1131 <const name="HWVirtEx" value="0"/>
1132 <const name="PAE" value="1"/>
1133 <const name="LongMode" value="2"/>
1134 <const name="NestedPaging" value="3"/>
1135 </enum>
1136
1137 <enum
1138 name="FirmwareType"
1139 uuid="b903f264-c230-483e-ac74-2b37ce60d371"
1140 >
1141 <desc>
1142 Firmware type.
1143 </desc>
1144 <const name="BIOS" value="1">
1145 <desc>BIOS Firmware.</desc>
1146 </const>
1147 <const name="EFI" value="2">
1148 <desc>EFI Firmware, bitness detected basing on OS type.</desc>
1149 </const>
1150 <const name="EFI32" value="3">
1151 <desc>Efi firmware, 32-bit.</desc>
1152 </const>
1153 <const name="EFI64" value="4">
1154 <desc>Efi firmware, 64-bit.</desc>
1155 </const>
1156 <const name="EFIDUAL" value="5">
1157 <desc>Efi firmware, combined 32 and 64-bit.</desc>
1158 </const>
1159 </enum>
1160
1161 <enum
1162 name="PointingHIDType"
1163 uuid="e44b2f7b-72ba-44fb-9e53-2186014f0d17"
1164 >
1165 <desc>
1166 Type of pointing device used in a virtual machine.
1167 </desc>
1168 <const name="None" value="1">
1169 <desc>No mouse.</desc>
1170 </const>
1171 <const name="PS2Mouse" value="2">
1172 <desc>PS/2 auxiliary device, a.k.a. mouse.</desc>
1173 </const>
1174 <const name="USBMouse" value="3">
1175 <desc>USB mouse (relative pointer).</desc>
1176 </const>
1177 <const name="USBTablet" value="4">
1178 <desc>USB tablet (absolute pointer).</desc>
1179 </const>
1180 <const name="ComboMouse" value="5">
1181 <desc>Combined device, working as PS/2 or USB mouse, depending on guest behavior.
1182 Using of such device can have negative performance implications. </desc>
1183 </const>
1184 </enum>
1185
1186 <enum
1187 name="KeyboardHIDType"
1188 uuid="383e43d7-5c7c-4ec8-9cb8-eda1bccd6699"
1189 >
1190 <desc>
1191 Type of keyboard device used in a virtual machine.
1192 </desc>
1193 <const name="None" value="1">
1194 <desc>No keyboard.</desc>
1195 </const>
1196 <const name="PS2Keyboard" value="2">
1197 <desc>PS/2 keyboard.</desc>
1198 </const>
1199 <const name="USBKeyboard" value="3">
1200 <desc>USB keyboard.</desc>
1201 </const>
1202 <const name="ComboKeyboard" value="4">
1203 <desc>Combined device, working as PS/2 or USB keyboard, depending on guest behavior.
1204 Using of such device can have negative performance implications. </desc>
1205 </const>
1206 </enum>
1207
1208 <!--
1209 // IVirtualBoxErrorInfo
1210 /////////////////////////////////////////////////////////////////////////
1211 -->
1212
1213 <interface
1214 name="IVirtualBoxErrorInfo" extends="$errorinfo"
1215 uuid="f91e6e91-49e1-4fd2-b21e-269003350d06"
1216 supportsErrorInfo="no"
1217 wsmap="managed"
1218 >
1219 <desc>
1220 The IVirtualBoxErrorInfo interface represents extended error information.
1221
1222 Extended error information can be set by VirtualBox components after
1223 unsuccessful or partially successful method invocation. This information
1224 can be retrieved by the calling party as an IVirtualBoxErrorInfo object
1225 and then shown to the client in addition to the plain 32-bit result code.
1226
1227 In MS COM, this interface extends the IErrorInfo interface,
1228 in XPCOM, it extends the nsIException interface. In both cases,
1229 it provides a set of common attributes to retrieve error
1230 information.
1231
1232 Sometimes invocation of some component's method may involve methods of
1233 other components that may also fail (independently of this method's
1234 failure), or a series of non-fatal errors may precede a fatal error that
1235 causes method failure. In cases like that, it may be desirable to preserve
1236 information about all errors happened during method invocation and deliver
1237 it to the caller. The <link to="#next"/> attribute is intended
1238 specifically for this purpose and allows to represent a chain of errors
1239 through a single IVirtualBoxErrorInfo object set after method invocation.
1240
1241 <note>errors are stored to a chain in the reverse order, i.e. the
1242 initial error object you query right after method invocation is the last
1243 error set by the callee, the object it points to in the @a next attribute
1244 is the previous error and so on, up to the first error (which is the last
1245 in the chain).</note>
1246 </desc>
1247
1248 <attribute name="resultCode" type="long" readonly="yes">
1249 <desc>
1250 Result code of the error.
1251 Usually, it will be the same as the result code returned
1252 by the method that provided this error information, but not
1253 always. For example, on Win32, CoCreateInstance() will most
1254 likely return E_NOINTERFACE upon unsuccessful component
1255 instantiation attempt, but not the value the component factory
1256 returned. Value is typed 'long', not 'result',
1257 to make interface usable from scripting languages.
1258 <note>
1259 In MS COM, there is no equivalent.
1260 In XPCOM, it is the same as nsIException::result.
1261 </note>
1262 </desc>
1263 </attribute>
1264
1265 <attribute name="interfaceID" type="uuid" mod="string" readonly="yes">
1266 <desc>
1267 UUID of the interface that defined the error.
1268 <note>
1269 In MS COM, it is the same as IErrorInfo::GetGUID, except for the
1270 data type.
1271 In XPCOM, there is no equivalent.
1272 </note>
1273 </desc>
1274 </attribute>
1275
1276 <attribute name="component" type="wstring" readonly="yes">
1277 <desc>
1278 Name of the component that generated the error.
1279 <note>
1280 In MS COM, it is the same as IErrorInfo::GetSource.
1281 In XPCOM, there is no equivalent.
1282 </note>
1283 </desc>
1284 </attribute>
1285
1286 <attribute name="text" type="wstring" readonly="yes">
1287 <desc>
1288 Text description of the error.
1289 <note>
1290 In MS COM, it is the same as IErrorInfo::GetDescription.
1291 In XPCOM, it is the same as nsIException::message.
1292 </note>
1293 </desc>
1294 </attribute>
1295
1296 <attribute name="next" type="IVirtualBoxErrorInfo" readonly="yes">
1297 <desc>
1298 Next error object if there is any, or @c null otherwise.
1299 <note>
1300 In MS COM, there is no equivalent.
1301 In XPCOM, it is the same as nsIException::inner.
1302 </note>
1303 </desc>
1304 </attribute>
1305
1306 </interface>
1307
1308 <!--
1309 // IVirtualBox
1310 /////////////////////////////////////////////////////////////////////////
1311 -->
1312
1313 <interface
1314 name="IDHCPServer" extends="$unknown"
1315 uuid="6cfe387c-74fb-4ca7-bff6-973bec8af7a3"
1316 wsmap="managed"
1317 >
1318 <desc>
1319 The IDHCPServer interface represents the vbox DHCP server configuration.
1320
1321 To enumerate all the DHCP servers on the host, use the
1322 <link to="IVirtualBox::DHCPServers"/> attribute.
1323 </desc>
1324
1325 <attribute name="enabled" type="boolean">
1326 <desc>
1327 specifies if the DHCP server is enabled
1328 </desc>
1329 </attribute>
1330
1331 <attribute name="IPAddress" type="wstring" readonly="yes">
1332 <desc>
1333 specifies server IP
1334 </desc>
1335 </attribute>
1336
1337 <attribute name="networkMask" type="wstring" readonly="yes">
1338 <desc>
1339 specifies server network mask
1340 </desc>
1341 </attribute>
1342
1343 <attribute name="networkName" type="wstring" readonly="yes">
1344 <desc>
1345 specifies internal network name the server is used for
1346 </desc>
1347 </attribute>
1348
1349 <attribute name="lowerIP" type="wstring" readonly="yes">
1350 <desc>
1351 specifies from IP address in server address range
1352 </desc>
1353 </attribute>
1354
1355 <attribute name="upperIP" type="wstring" readonly="yes">
1356 <desc>
1357 specifies to IP address in server address range
1358 </desc>
1359 </attribute>
1360
1361 <method name="setConfiguration">
1362 <desc>
1363 configures the server
1364 <result name="E_INVALIDARG">
1365 invalid configuration supplied
1366 </result>
1367 </desc>
1368 <param name="IPAddress" type="wstring" dir="in">
1369 <desc>
1370 server IP address
1371 </desc>
1372 </param>
1373 <param name="networkMask" type="wstring" dir="in">
1374 <desc>
1375 server network mask
1376 </desc>
1377 </param>
1378 <param name="FromIPAddress" type="wstring" dir="in">
1379 <desc>
1380 server From IP address for address range
1381 </desc>
1382 </param>
1383 <param name="ToIPAddress" type="wstring" dir="in">
1384 <desc>
1385 server To IP address for address range
1386 </desc>
1387 </param>
1388 </method>
1389
1390 <method name="start">
1391 <desc>
1392 Starts DHCP server process.
1393 <result name="E_FAIL">
1394 Failed to start the process.
1395 </result>
1396 </desc>
1397 <param name="networkName" type="wstring" dir="in">
1398 <desc>
1399 Name of internal network DHCP server should attach to.
1400 </desc>
1401 </param>
1402 <param name="trunkName" type="wstring" dir="in">
1403 <desc>
1404 Name of internal network trunk.
1405 </desc>
1406 </param>
1407 <param name="trunkType" type="wstring" dir="in">
1408 <desc>
1409 Type of internal network trunk.
1410 </desc>
1411 </param>
1412 </method>
1413
1414 <method name="stop">
1415 <desc>
1416 Stops DHCP server process.
1417 <result name="E_FAIL">
1418 Failed to stop the process.
1419 </result>
1420 </desc>
1421 </method>
1422 </interface>
1423
1424 <interface
1425 name="IVirtualBox" extends="$unknown"
1426 uuid="5c8814a1-2a35-402d-8680-68e5cb4e72aa"
1427 wsmap="managed"
1428 >
1429 <desc>
1430 The IVirtualBox interface represents the main interface exposed by the
1431 product that provides virtual machine management.
1432
1433 An instance of IVirtualBox is required for the product to do anything
1434 useful. Even though the interface does not expose this, internally,
1435 IVirtualBox is implemented as a singleton and actually lives in the
1436 process of the VirtualBox server (VBoxSVC.exe). This makes sure that
1437 IVirtualBox can track the state of all virtual machines on a particular
1438 host, regardless of which frontend started them.
1439
1440 To enumerate all the virtual machines on the host, use the
1441 <link to="IVirtualBox::machines"/> attribute.
1442 </desc>
1443
1444 <attribute name="version" type="wstring" readonly="yes">
1445 <desc>
1446 A string representing the version number of the product. The
1447 format is 3 integer numbers divided by dots (e.g. 1.0.1). The
1448 last number represents the build number and will frequently change.
1449
1450 This may be followed by a _ALPHA[0-9]*, _BETA[0-9]* or _RC[0-9]* tag
1451 in prerelease builds. Non-Oracle builds may (/shall) also have a
1452 publisher tag, at the end. The publisher tag starts with an underscore
1453 just like the prerelease build type tag.
1454 </desc>
1455 </attribute>
1456
1457 <attribute name="versionNormalized" type="wstring" readonly="yes">
1458 <desc>
1459 A string representing the version number of the product,
1460 without the publisher information (but still with other tags).
1461 See <link to="#version" />.
1462 </desc>
1463 </attribute>
1464
1465 <attribute name="revision" type="unsigned long" readonly="yes">
1466 <desc>
1467 The internal build revision number of the product.
1468 </desc>
1469 </attribute>
1470
1471 <attribute name="packageType" type="wstring" readonly="yes">
1472 <desc>
1473 A string representing the package type of this product. The
1474 format is OS_ARCH_DIST where OS is either WINDOWS, LINUX,
1475 SOLARIS, DARWIN. ARCH is either 32BITS or 64BITS. DIST
1476 is either GENERIC, UBUNTU_606, UBUNTU_710, or something like
1477 this.
1478 </desc>
1479 </attribute>
1480
1481 <attribute name="APIVersion" type="wstring" readonly="yes">
1482 <desc>
1483 A string representing the VirtualBox API version number. The format is
1484 2 integer numbers divided by an underscore (e.g. 1_0). After the
1485 first public release of packages with a particular API version the
1486 API will not be changed in an incompatible way. Note that this
1487 guarantee does not apply to development builds, and also there is no
1488 guarantee that this version is identical to the first two integer
1489 numbers of the package version.
1490 </desc>
1491 </attribute>
1492
1493 <attribute name="homeFolder" type="wstring" readonly="yes">
1494 <desc>
1495 Full path to the directory where the global settings file,
1496 <tt>VirtualBox.xml</tt>, is stored.
1497
1498 In this version of VirtualBox, the value of this property is
1499 always <tt>&lt;user_dir&gt;/.VirtualBox</tt> (where
1500 <tt>&lt;user_dir&gt;</tt> is the path to the user directory,
1501 as determined by the host OS), and cannot be changed.
1502
1503 This path is also used as the base to resolve relative paths in
1504 places where relative paths are allowed (unless otherwise
1505 expressly indicated).
1506 </desc>
1507 </attribute>
1508
1509 <attribute name="settingsFilePath" type="wstring" readonly="yes">
1510 <desc>
1511 Full name of the global settings file.
1512 The value of this property corresponds to the value of
1513 <link to="#homeFolder"/> plus <tt>/VirtualBox.xml</tt>.
1514 </desc>
1515 </attribute>
1516
1517 <attribute name="host" type="IHost" readonly="yes">
1518 <desc>Associated host object.</desc>
1519 </attribute>
1520
1521 <attribute name="systemProperties" type="ISystemProperties" readonly="yes">
1522 <desc>Associated system information object.</desc>
1523 </attribute>
1524
1525 <attribute name="machines" type="IMachine" readonly="yes" safearray="yes">
1526 <desc>
1527 Array of machine objects registered within this VirtualBox instance.
1528 </desc>
1529 </attribute>
1530
1531 <attribute name="machineGroups" type="wstring" readonly="yes" safearray="yes">
1532 <desc>
1533 Array of all machine group names which are used by the machines which
1534 are accessible. Each group is only listed once, however they are listed
1535 in no particular order and there is no guarantee that there are no gaps
1536 in the group hierarchy (i.e. <tt>"/"</tt>, <tt>"/group/subgroup"</tt>
1537 is a valid result).
1538 </desc>
1539 </attribute>
1540
1541 <attribute name="hardDisks" type="IMedium" readonly="yes" safearray="yes">
1542 <desc>
1543 Array of medium objects known to this VirtualBox installation.
1544
1545 This array contains only base media. All differencing
1546 media of the given base medium can be enumerated using
1547 <link to="IMedium::children"/>.
1548 </desc>
1549 </attribute>
1550
1551 <attribute name="DVDImages" type="IMedium" readonly="yes" safearray="yes">
1552 <desc>
1553 Array of CD/DVD image objects currently in use by this VirtualBox instance.
1554 </desc>
1555 </attribute>
1556
1557 <attribute name="floppyImages" type="IMedium" readonly="yes" safearray="yes">
1558 <desc>
1559 Array of floppy image objects currently in use by this VirtualBox instance.
1560 </desc>
1561 </attribute>
1562
1563 <attribute name="progressOperations" type="IProgress" readonly="yes" safearray="yes"/>
1564
1565 <attribute name="guestOSTypes" type="IGuestOSType" readonly="yes" safearray="yes"/>
1566
1567 <attribute name="sharedFolders" type="ISharedFolder" readonly="yes" safearray="yes">
1568 <desc>
1569 Collection of global shared folders. Global shared folders are
1570 available to all virtual machines.
1571
1572 New shared folders are added to the collection using
1573 <link to="#createSharedFolder"/>. Existing shared folders can be
1574 removed using <link to="#removeSharedFolder"/>.
1575
1576 <note>
1577 In the current version of the product, global shared folders are not
1578 implemented and therefore this collection is always empty.
1579 </note>
1580 </desc>
1581 </attribute>
1582
1583 <attribute name="performanceCollector" type="IPerformanceCollector" readonly="yes">
1584 <desc>
1585 Associated performance collector object.
1586 </desc>
1587 </attribute>
1588
1589 <attribute name="DHCPServers" type="IDHCPServer" safearray="yes" readonly="yes">
1590 <desc>
1591 DHCP servers.
1592 </desc>
1593 </attribute>
1594
1595 <attribute name="eventSource" type="IEventSource" readonly="yes">
1596 <desc>
1597 Event source for VirtualBox events.
1598 </desc>
1599 </attribute>
1600
1601 <attribute name="extensionPackManager" type="IExtPackManager" readonly="yes">
1602 <desc>
1603 The extension pack manager.
1604 </desc>
1605 </attribute>
1606
1607
1608 <attribute name="internalNetworks" type="wstring" safearray="yes" readonly="yes">
1609 <desc>
1610 Names of all internal networks.
1611 </desc>
1612 </attribute>
1613
1614 <attribute name="genericNetworkDrivers" type="wstring" safearray="yes" readonly="yes">
1615 <desc>
1616 Names of all generic network drivers.
1617 </desc>
1618 </attribute>
1619
1620 <method name="composeMachineFilename">
1621 <desc>
1622 Returns a recommended full path of the settings file name for a new virtual
1623 machine.
1624
1625 This API serves two purposes:
1626
1627 <ul>
1628 <li>It gets called by <link to="#createMachine" /> if @c null or
1629 empty string (which is recommended) is specified for the
1630 @a settingsFile argument there, which means that API should use
1631 a recommended default file name.</li>
1632
1633 <li>It can be called manually by a client software before creating a machine,
1634 e.g. if that client wants to pre-create the machine directory to create
1635 virtual hard disks in that directory together with the new machine
1636 settings file. In that case, the file name should be stripped from the
1637 full settings file path returned by this function to obtain the
1638 machine directory.</li>
1639 </ul>
1640
1641 See <link to="IMachine::name"/> and <link to="#createMachine"/> for more
1642 details about the machine name.
1643
1644 @a groupName defines which additional subdirectory levels should be
1645 included. It must be either a valid group name or @c null or empty
1646 string which designates that the machine will not be related to a
1647 machine group.
1648
1649 If @a baseFolder is a @c null or empty string (which is recommended), the
1650 default machine settings folder
1651 (see <link to="ISystemProperties::defaultMachineFolder" />) will be used as
1652 a base folder for the created machine, resulting in a file name like
1653 "/home/user/VirtualBox VMs/name/name.vbox". Otherwise the given base folder
1654 will be used.
1655
1656 This method does not access the host disks. In particular, it does not check
1657 for whether a machine with this name already exists.
1658 </desc>
1659 <param name="name" type="wstring" dir="in">
1660 <desc>Suggested machine name.</desc>
1661 </param>
1662 <param name="group" type="wstring" dir="in">
1663 <desc>Machine group name for the new machine or machine group. It is
1664 used to determine the right subdirectory.</desc>
1665 </param>
1666 <param name="baseFolder" type="wstring" dir="in">
1667 <desc>Base machine folder (optional).</desc>
1668 </param>
1669 <param name="file" type="wstring" dir="return">
1670 <desc>Fully qualified path where the machine would be created.</desc>
1671 </param>
1672 </method>
1673
1674 <method name="createMachine">
1675 <desc>
1676 Creates a new virtual machine by creating a machine settings file at
1677 the given location.
1678
1679 VirtualBox machine settings files use a custom XML dialect. Starting
1680 with VirtualBox 4.0, a ".vbox" extension is recommended, but not enforced,
1681 and machine files can be created at arbitrary locations.
1682
1683 However, it is recommended that machines are created in the default
1684 machine folder (e.g. "/home/user/VirtualBox VMs/name/name.vbox"; see
1685 <link to="ISystemProperties::defaultMachineFolder" />). If you specify
1686 @c null or empty string (which is recommended) for the @a settingsFile
1687 argument, <link to="#composeMachineFilename" /> is called automatically
1688 to have such a recommended name composed based on the machine name
1689 given in the @a name argument and the primary group.
1690
1691 If the resulting settings file already exists, this method will fail,
1692 unless @a forceOverwrite is set.
1693
1694 The new machine is created unregistered, with the initial configuration
1695 set according to the specified guest OS type. A typical sequence of
1696 actions to create a new virtual machine is as follows:
1697
1698 <ol>
1699 <li>
1700 Call this method to have a new machine created. The returned machine
1701 object will be "mutable" allowing to change any machine property.
1702 </li>
1703
1704 <li>
1705 Configure the machine using the appropriate attributes and methods.
1706 </li>
1707
1708 <li>
1709 Call <link to="IMachine::saveSettings" /> to write the settings
1710 to the machine's XML settings file. The configuration of the newly
1711 created machine will not be saved to disk until this method is
1712 called.
1713 </li>
1714
1715 <li>
1716 Call <link to="#registerMachine" /> to add the machine to the list
1717 of machines known to VirtualBox.
1718 </li>
1719 </ol>
1720
1721 The specified guest OS type identifier must match an ID of one of known
1722 guest OS types listed in the <link to="IVirtualBox::guestOSTypes"/>
1723 array.
1724
1725 Optionally, you may specify an UUID of to assign to the created machine.
1726 However, this is not recommended and you should normally pass an empty
1727 (@c null) UUID to this method so that a new UUID will be automatically
1728 generated for every created machine. You can use UUID
1729 00000000-0000-0000-0000-000000000000 as @c null value.
1730
1731 <note>
1732 There is no way to change the name of the settings file or
1733 subfolder of the created machine directly.
1734 </note>
1735
1736 <result name="VBOX_E_OBJECT_NOT_FOUND">
1737 @a osTypeId is invalid.
1738 </result>
1739 <result name="VBOX_E_FILE_ERROR">
1740 Resulting settings file name is invalid or the settings file already
1741 exists or could not be created due to an I/O error.
1742 </result>
1743 <result name="E_INVALIDARG">
1744 @a name is empty or @c null.
1745 </result>
1746 </desc>
1747
1748 <param name="settingsFile" type="wstring" dir="in">
1749 <desc>Fully qualified path where the settings file should be created,
1750 empty string or @c null for a default folder and file based on the
1751 @a name argument and the primary group.
1752 (see <link to="#composeMachineFilename" />).</desc>
1753 </param>
1754 <param name="name" type="wstring" dir="in">
1755 <desc>Machine name.</desc>
1756 </param>
1757 <param name="groups" type="wstring" safearray="yes" dir="in">
1758 <desc>Array of group names. @c null or an empty array have the same
1759 meaning as an array with just the empty string or <tt>"/"</tt>, i.e.
1760 create a machine without group association.</desc>
1761 </param>
1762 <param name="osTypeId" type="wstring" dir="in">
1763 <desc>Guest OS Type ID.</desc>
1764 </param>
1765 <param name="id" type="uuid" mod="string" dir="in">
1766 <desc>Machine UUID (optional).</desc>
1767 </param>
1768 <param name="forceOverwrite" type="boolean" dir="in">
1769 <desc>If true, an existing machine settings file will be overwritten.</desc>
1770 </param>
1771 <param name="machine" type="IMachine" dir="return">
1772 <desc>Created machine object.</desc>
1773 </param>
1774 </method>
1775
1776 <method name="openMachine">
1777 <desc>
1778 Opens a virtual machine from the existing settings file.
1779 The opened machine remains unregistered until you call
1780 <link to="#registerMachine"/>.
1781
1782 The specified settings file name must be fully qualified.
1783 The file must exist and be a valid machine XML settings file
1784 whose contents will be used to construct the machine object.
1785
1786 <result name="VBOX_E_FILE_ERROR">
1787 Settings file name invalid, not found or sharing violation.
1788 </result>
1789 </desc>
1790 <param name="settingsFile" type="wstring" dir="in">
1791 <desc>
1792 Name of the machine settings file.
1793 </desc>
1794 </param>
1795 <param name="machine" type="IMachine" dir="return">
1796 <desc>Opened machine object.</desc>
1797 </param>
1798 <note>
1799 <link to="IMachine::settingsModified"/> will return
1800 @c false for the created machine, until any of machine settings
1801 are changed.
1802 </note>
1803 </method>
1804
1805 <method name="registerMachine">
1806 <desc>
1807
1808 Registers the machine previously created using
1809 <link to="#createMachine"/> or opened using
1810 <link to="#openMachine"/> within this VirtualBox installation. After
1811 successful method invocation, the
1812 <link to="IMachineRegisteredEvent"/> event is fired.
1813
1814 <note>
1815 This method implicitly calls <link to="IMachine::saveSettings"/>
1816 to save all current machine settings before registering it.
1817 </note>
1818
1819 <result name="VBOX_E_OBJECT_NOT_FOUND">
1820 No matching virtual machine found.
1821 </result>
1822 <result name="VBOX_E_INVALID_OBJECT_STATE">
1823 Virtual machine was not created within this VirtualBox instance.
1824 </result>
1825
1826 </desc>
1827 <param name="machine" type="IMachine" dir="in"/>
1828 </method>
1829
1830 <method name="findMachine">
1831 <desc>
1832 Attempts to find a virtual machine given its name or UUID.
1833
1834 <note>Inaccessible machines cannot be found by name, only by UUID, because their name
1835 cannot safely be determined.</note>
1836
1837 <result name="VBOX_E_OBJECT_NOT_FOUND">
1838 Could not find registered machine matching @a nameOrId.
1839 </result>
1840
1841 </desc>
1842 <param name="nameOrId" type="wstring" dir="in">
1843 <desc>What to search for. This can either be the UUID or the name of a virtual machine.</desc>
1844 </param>
1845 <param name="machine" type="IMachine" dir="return">
1846 <desc>Machine object, if found.</desc>
1847 </param>
1848 </method>
1849
1850 <method name="getMachinesByGroups">
1851 <desc>
1852 Gets all machine references which are in one of the specified groups.
1853 </desc>
1854 <param name="groups" type="wstring" dir="in" safearray="yes">
1855 <desc>What groups to match. The usual group list rules apply, i.e.
1856 passing an empty list will match VMs in the toplevel group, likewise
1857 the empty string.</desc>
1858 </param>
1859 <param name="machines" type="IMachine" dir="return" safearray="yes">
1860 <desc>All machines which matched.</desc>
1861 </param>
1862 </method>
1863
1864 <method name="getMachineStates">
1865 <desc>
1866 Gets the state of several machines in a single operation.
1867 </desc>
1868 <param name="machines" type="IMachine" dir="in" safearray="yes">
1869 <desc>Array with the machine references.</desc>
1870 </param>
1871 <param name="states" type="MachineState" dir="return" safearray="yes">
1872 <desc>Machine states, corresponding to the machines.</desc>
1873 </param>
1874 </method>
1875
1876 <method name="createAppliance">
1877 <desc>
1878 Creates a new appliance object, which represents an appliance in the Open Virtual Machine
1879 Format (OVF). This can then be used to import an OVF appliance into VirtualBox or to export
1880 machines as an OVF appliance; see the documentation for <link to="IAppliance" /> for details.
1881 </desc>
1882 <param name="appliance" type="IAppliance" dir="return">
1883 <desc>New appliance.</desc>
1884 </param>
1885 </method>
1886
1887 <method name="createHardDisk">
1888 <desc>
1889 Creates a new base medium object that will use the given storage
1890 format and location for medium data.
1891
1892 The actual storage unit is not created by this method. In order to
1893 do it, and before you are able to attach the created medium to
1894 virtual machines, you must call one of the following methods to
1895 allocate a format-specific storage unit at the specified location:
1896 <ul>
1897 <li><link to="IMedium::createBaseStorage"/></li>
1898 <li><link to="IMedium::createDiffStorage"/></li>
1899 </ul>
1900
1901 Some medium attributes, such as <link to="IMedium::id"/>, may
1902 remain uninitialized until the medium storage unit is successfully
1903 created by one of the above methods.
1904
1905 After the storage unit is successfully created, it will be
1906 accessible through the <link to="#openMedium"/> method and can
1907 be found in the <link to="#hardDisks"/> array.
1908
1909 The list of all storage formats supported by this VirtualBox
1910 installation can be obtained using
1911 <link to="ISystemProperties::mediumFormats"/>. If the @a format
1912 attribute is empty or @c null then the default storage format
1913 specified by <link to="ISystemProperties::defaultHardDiskFormat"/> will
1914 be used for creating a storage unit of the medium.
1915
1916 Note that the format of the location string is storage format specific.
1917 See <link to="IMedium::location"/> and IMedium for more details.
1918
1919 <result name="VBOX_E_OBJECT_NOT_FOUND">
1920 @a format identifier is invalid. See
1921 <link to="ISystemProperties::mediumFormats"/>.
1922 </result>
1923 <result name="VBOX_E_FILE_ERROR">
1924 @a location is a not valid file name (for file-based formats only).
1925 </result>
1926 </desc>
1927 <param name="format" type="wstring" dir="in">
1928 <desc>
1929 Identifier of the storage format to use for the new medium.
1930 </desc>
1931 </param>
1932 <param name="location" type="wstring" dir="in">
1933 <desc>
1934 Location of the storage unit for the new medium.
1935 </desc>
1936 </param>
1937 <param name="medium" type="IMedium" dir="return">
1938 <desc>Created medium object.</desc>
1939 </param>
1940 </method>
1941
1942 <method name="openMedium">
1943 <desc>
1944 Finds existing media or opens a medium from an existing storage location.
1945
1946 Once a medium has been opened, it can be passed to other VirtualBox
1947 methods, in particular to <link to="IMachine::attachDevice" />.
1948
1949 Depending on the given device type, the file at the storage location
1950 must be in one of the media formats understood by VirtualBox:
1951
1952 <ul>
1953 <li>With a "HardDisk" device type, the file must be a hard disk image
1954 in one of the formats supported by VirtualBox (see
1955 <link to="ISystemProperties::mediumFormats" />).
1956 After this method succeeds, if the medium is a base medium, it
1957 will be added to the <link to="#hardDisks"/> array attribute. </li>
1958 <li>With a "DVD" device type, the file must be an ISO 9960 CD/DVD image.
1959 After this method succeeds, the medium will be added to the
1960 <link to="#DVDImages"/> array attribute.</li>
1961 <li>With a "Floppy" device type, the file must be an RAW floppy image.
1962 After this method succeeds, the medium will be added to the
1963 <link to="#floppyImages"/> array attribute.</li>
1964 </ul>
1965
1966 After having been opened, the medium can be re-found by this method
1967 and can be attached to virtual machines. See <link to="IMedium" /> for
1968 more details.
1969
1970 The UUID of the newly opened medium will either be retrieved from the
1971 storage location, if the format supports it (e.g. for hard disk images),
1972 or a new UUID will be randomly generated (e.g. for ISO and RAW files).
1973 If for some reason you need to change the medium's UUID, use
1974 <link to="IMedium::setIds" />.
1975
1976 If a differencing hard disk medium is to be opened by this method, the
1977 operation will succeed only if its parent medium and all ancestors,
1978 if any, are already known to this VirtualBox installation (for example,
1979 were opened by this method before).
1980
1981 This method attempts to guess the storage format of the specified medium
1982 by reading medium data at the specified location.
1983
1984 If @a accessMode is ReadWrite (which it should be for hard disks and floppies),
1985 the image is opened for read/write access and must have according permissions,
1986 as VirtualBox may actually write status information into the disk's metadata
1987 sections.
1988
1989 Note that write access is required for all typical hard disk usage in VirtualBox,
1990 since VirtualBox may need to write metadata such as a UUID into the image.
1991 The only exception is opening a source image temporarily for copying and
1992 cloning (see <link to="IMedium::cloneTo" /> when the image will be closed
1993 again soon.
1994
1995 The format of the location string is storage format specific. See
1996 <link to="IMedium::location"/> and IMedium for more details.
1997
1998 <result name="VBOX_E_FILE_ERROR">
1999 Invalid medium storage file location or could not find the medium
2000 at the specified location.
2001 </result>
2002 <result name="VBOX_E_IPRT_ERROR">
2003 Could not get medium storage format.
2004 </result>
2005 <result name="E_INVALIDARG">
2006 Invalid medium storage format.
2007 </result>
2008 <result name="VBOX_E_INVALID_OBJECT_STATE">
2009 Medium has already been added to a media registry.
2010 </result>
2011 </desc>
2012 <param name="location" type="wstring" dir="in">
2013 <desc>
2014 Location of the storage unit that contains medium data in one of
2015 the supported storage formats.
2016 </desc>
2017 </param>
2018 <param name="deviceType" type="DeviceType" dir="in">
2019 <desc>
2020 Must be one of "HardDisk", "DVD" or "Floppy".
2021 </desc>
2022 </param>
2023 <param name="accessMode" type="AccessMode" dir="in">
2024 <desc>Whether to open the image in read/write or read-only mode. For
2025 a "DVD" device type, this is ignored and read-only mode is always assumed.</desc>
2026 </param>
2027 <param name="forceNewUuid" type="boolean" dir="in">
2028 <desc>Allows the caller to request a completely new medium UUID for
2029 the image which is to be opened. Useful if one intends to open an exact
2030 copy of a previously opened image, as this would normally fail due to
2031 the duplicate UUID.</desc>
2032 </param>
2033 <param name="medium" type="IMedium" dir="return">
2034 <desc>Opened medium object.</desc>
2035 </param>
2036 </method>
2037
2038 <method name="getGuestOSType">
2039 <desc>
2040 Returns an object describing the specified guest OS type.
2041
2042 The requested guest OS type is specified using a string which is a
2043 mnemonic identifier of the guest operating system, such as
2044 <tt>"win31"</tt> or <tt>"ubuntu"</tt>. The guest OS type ID of a
2045 particular virtual machine can be read or set using the
2046 <link to="IMachine::OSTypeId"/> attribute.
2047
2048 The <link to="IVirtualBox::guestOSTypes"/> collection contains all
2049 available guest OS type objects. Each object has an
2050 <link to="IGuestOSType::id"/> attribute which contains an identifier of
2051 the guest OS this object describes.
2052
2053 <result name="E_INVALIDARG">
2054 @a id is not a valid Guest OS type.
2055 </result>
2056
2057 </desc>
2058 <param name="id" type="uuid" mod="string" dir="in">
2059 <desc>Guest OS type ID string.</desc>
2060 </param>
2061 <param name="type" type="IGuestOSType" dir="return">
2062 <desc>Guest OS type object.</desc>
2063 </param>
2064 </method>
2065
2066 <method name="createSharedFolder">
2067 <desc>
2068 Creates a new global shared folder by associating the given logical
2069 name with the given host path, adds it to the collection of shared
2070 folders and starts sharing it. Refer to the description of
2071 <link to="ISharedFolder"/> to read more about logical names.
2072 <note>
2073 In the current implementation, this operation is not
2074 implemented.
2075 </note>
2076 </desc>
2077 <param name="name" type="wstring" dir="in">
2078 <desc>Unique logical name of the shared folder.</desc>
2079 </param>
2080 <param name="hostPath" type="wstring" dir="in">
2081 <desc>Full path to the shared folder in the host file system.</desc>
2082 </param>
2083 <param name="writable" type="boolean" dir="in">
2084 <desc>Whether the share is writable or readonly</desc>
2085 </param>
2086 <param name="automount" type="boolean" dir="in">
2087 <desc>Whether the share gets automatically mounted by the guest
2088 or not.</desc>
2089 </param>
2090 </method>
2091
2092 <method name="removeSharedFolder">
2093 <desc>
2094 Removes the global shared folder with the given name previously
2095 created by <link to="#createSharedFolder"/> from the collection of
2096 shared folders and stops sharing it.
2097 <note>
2098 In the current implementation, this operation is not
2099 implemented.
2100 </note>
2101 </desc>
2102 <param name="name" type="wstring" dir="in">
2103 <desc>Logical name of the shared folder to remove.</desc>
2104 </param>
2105 </method>
2106
2107 <method name="getExtraDataKeys">
2108 <desc>
2109 Returns an array representing the global extra data keys which currently
2110 have values defined.
2111 </desc>
2112 <param name="value" type="wstring" dir="return" safearray="yes">
2113 <desc>Array of extra data keys.</desc>
2114 </param>
2115 </method>
2116
2117 <method name="getExtraData">
2118 <desc>
2119 Returns associated global extra data.
2120
2121 If the requested data @a key does not exist, this function will
2122 succeed and return an empty string in the @a value argument.
2123
2124 <result name="VBOX_E_FILE_ERROR">
2125 Settings file not accessible.
2126 </result>
2127 <result name="VBOX_E_XML_ERROR">
2128 Could not parse the settings file.
2129 </result>
2130
2131 </desc>
2132 <param name="key" type="wstring" dir="in">
2133 <desc>Name of the data key to get.</desc>
2134 </param>
2135 <param name="value" type="wstring" dir="return">
2136 <desc>Value of the requested data key.</desc>
2137 </param>
2138 </method>
2139
2140 <method name="setExtraData">
2141 <desc>
2142 Sets associated global extra data.
2143
2144 If you pass @c null or empty string as a key @a value, the given @a key
2145 will be deleted.
2146
2147 <note>
2148 Before performing the actual data change, this method will ask all
2149 registered event listener using the
2150 <link to="IExtraDataCanChangeEvent"/>
2151 notification for a permission. If one of the listeners refuses the
2152 new value, the change will not be performed.
2153 </note>
2154 <note>
2155 On success, the
2156 <link to="IExtraDataChangedEvent"/> notification
2157 is called to inform all registered listeners about a successful data
2158 change.
2159 </note>
2160
2161 <result name="VBOX_E_FILE_ERROR">
2162 Settings file not accessible.
2163 </result>
2164 <result name="VBOX_E_XML_ERROR">
2165 Could not parse the settings file.
2166 </result>
2167 <result name="E_ACCESSDENIED">
2168 Modification request refused.
2169 </result>
2170
2171 </desc>
2172 <param name="key" type="wstring" dir="in">
2173 <desc>Name of the data key to set.</desc>
2174 </param>
2175 <param name="value" type="wstring" dir="in">
2176 <desc>Value to assign to the key.</desc>
2177 </param>
2178 </method>
2179
2180 <method name="setSettingsSecret">
2181 <desc>
2182 Unlocks the secret data by passing the unlock password to the
2183 server. The server will cache the password for that machine.
2184
2185 <result name="VBOX_E_INVALID_VM_STATE">
2186 Virtual machine is not mutable.
2187 </result>
2188
2189 </desc>
2190 <param name="password" type="wstring" dir="in">
2191 <desc>
2192 The cipher key.
2193 </desc>
2194 </param>
2195 </method>
2196
2197 <!--method name="createDHCPServerForInterface">
2198 <desc>
2199 Creates a DHCP server settings to be used for the given interface
2200 <result name="E_INVALIDARG">
2201 Host network interface @a name already exists.
2202 </result>
2203 </desc>
2204 <param name="interface" type="IHostNetworkInterface" dir="in">
2205 <desc>Network Interface</desc>
2206 </param>
2207 <param name="server" type="IDHCPServer" dir="out">
2208 <desc>DHCP server settings</desc>
2209 </param>
2210 </method-->
2211
2212 <method name="createDHCPServer">
2213 <desc>
2214 Creates a DHCP server settings to be used for the given internal network name
2215 <result name="E_INVALIDARG">
2216 Host network interface @a name already exists.
2217 </result>
2218 </desc>
2219 <param name="name" type="wstring" dir="in">
2220 <desc>server name</desc>
2221 </param>
2222 <param name="server" type="IDHCPServer" dir="return">
2223 <desc>DHCP server settings</desc>
2224 </param>
2225 </method>
2226
2227 <method name="findDHCPServerByNetworkName">
2228 <desc>
2229 Searches a DHCP server settings to be used for the given internal network name
2230 <result name="E_INVALIDARG">
2231 Host network interface @a name already exists.
2232 </result>
2233
2234 </desc>
2235 <param name="name" type="wstring" dir="in">
2236 <desc>server name</desc>
2237 </param>
2238 <param name="server" type="IDHCPServer" dir="return">
2239 <desc>DHCP server settings</desc>
2240 </param>
2241 </method>
2242
2243 <!--method name="findDHCPServerForInterface">
2244 <desc>
2245 Searches a DHCP server settings to be used for the given interface
2246 <result name="E_INVALIDARG">
2247 Host network interface @a name already exists.
2248 </result>
2249 </desc>
2250 <param name="interface" type="IHostNetworkInterface" dir="in">
2251 <desc>Network Interface</desc>
2252 </param>
2253 <param name="server" type="IDHCPServer" dir="out">
2254 <desc>DHCP server settings</desc>
2255 </param>
2256 </method-->
2257
2258 <method name="removeDHCPServer">
2259 <desc>
2260 Removes the DHCP server settings
2261 <result name="E_INVALIDARG">
2262 Host network interface @a name already exists.
2263 </result>
2264 </desc>
2265 <param name="server" type="IDHCPServer" dir="in">
2266 <desc>DHCP server settings to be removed</desc>
2267 </param>
2268 </method>
2269
2270
2271 <method name="checkFirmwarePresent">
2272 <desc>
2273 Check if this VirtualBox installation has a firmware
2274 of the given type available, either system-wide or per-user.
2275 Optionally, this may return a hint where this firmware can be
2276 downloaded from.
2277 </desc>
2278 <param name="firmwareType" type="FirmwareType" dir="in">
2279 <desc>
2280 Type of firmware to check.
2281 </desc>
2282 </param>
2283 <param name="version" type="wstring" dir="in">
2284 <desc>Expected version number, usually empty string (presently ignored).</desc>
2285 </param>
2286
2287 <param name="url" type="wstring" dir="out">
2288 <desc>
2289 Suggested URL to download this firmware from.
2290 </desc>
2291 </param>
2292
2293 <param name="file" type="wstring" dir="out">
2294 <desc>
2295 Filename of firmware, only valid if result == TRUE.
2296 </desc>
2297 </param>
2298
2299 <param name="result" type="boolean" dir="return">
2300 <desc>If firmware of this type and version is available.</desc>
2301 </param>
2302 </method>
2303
2304 </interface>
2305
2306 <!--
2307 // IVFSExplorer
2308 /////////////////////////////////////////////////////////////////////////
2309 -->
2310
2311 <enum
2312 name="VFSType"
2313 uuid="813999ba-b949-48a8-9230-aadc6285e2f2"
2314 >
2315 <desc>
2316 Virtual file systems supported by VFSExplorer.
2317 </desc>
2318
2319 <const name="File" value="1" />
2320 <const name="Cloud" value="2" />
2321 <const name="S3" value="3" />
2322 <const name="WebDav" value="4" />
2323 </enum>
2324
2325 <enum
2326 name="VFSFileType"
2327 uuid="714333cd-44e2-415f-a245-d378fa9b1242"
2328 >
2329 <desc>
2330 File types known by VFSExplorer.
2331 </desc>
2332
2333 <const name="Unknown" value="1" />
2334 <const name="Fifo" value="2" />
2335 <const name="DevChar" value="3" />
2336 <const name="Directory" value="4" />
2337 <const name="DevBlock" value="5" />
2338 <const name="File" value="6" />
2339 <const name="SymLink" value="7" />
2340 <const name="Socket" value="8" />
2341 <const name="WhiteOut" value="9" />
2342 </enum>
2343
2344 <interface
2345 name="IVFSExplorer" extends="$unknown"
2346 uuid="003d7f92-d38e-487f-b790-8c5e8631cb2f"
2347 wsmap="managed"
2348 >
2349 <desc>
2350 The VFSExplorer interface unifies access to different file system
2351 types. This includes local file systems as well remote file systems like
2352 S3. For a list of supported types see <link to="VFSType" />.
2353 An instance of this is returned by <link to="IAppliance::createVFSExplorer" />.
2354 </desc>
2355
2356 <attribute name="path" type="wstring" readonly="yes">
2357 <desc>Returns the current path in the virtual file system.</desc>
2358 </attribute>
2359
2360 <attribute name="type" type="VFSType" readonly="yes">
2361 <desc>Returns the file system type which is currently in use.</desc>
2362 </attribute>
2363
2364 <method name="update">
2365 <desc>Updates the internal list of files/directories from the
2366 current directory level. Use <link to="#entryList" /> to get the full list
2367 after a call to this method.</desc>
2368
2369 <param name="aProgress" type="IProgress" dir="return">
2370 <desc>Progress object to track the operation completion.</desc>
2371 </param>
2372 </method>
2373
2374 <method name="cd">
2375 <desc>Change the current directory level.</desc>
2376
2377 <param name="aDir" type="wstring" dir="in">
2378 <desc>The name of the directory to go in.</desc>
2379 </param>
2380
2381 <param name="aProgress" type="IProgress" dir="return">
2382 <desc>Progress object to track the operation completion.</desc>
2383 </param>
2384 </method>
2385
2386 <method name="cdUp">
2387 <desc>Go one directory upwards from the current directory level.</desc>
2388
2389 <param name="aProgress" type="IProgress" dir="return">
2390 <desc>Progress object to track the operation completion.</desc>
2391 </param>
2392 </method>
2393
2394 <method name="entryList">
2395 <desc>Returns a list of files/directories after a call to <link
2396 to="#update" />. The user is responsible for keeping this internal
2397 list up do date.</desc>
2398
2399 <param name="aNames" type="wstring" safearray="yes" dir="out">
2400 <desc>The list of names for the entries.</desc>
2401 </param>
2402
2403 <param name="aTypes" type="unsigned long" safearray="yes" dir="out">
2404 <desc>The list of types for the entries.</desc>
2405 </param>
2406
2407 <param name="aSizes" type="unsigned long" safearray="yes" dir="out">
2408 <desc>The list of sizes (in bytes) for the entries.</desc>
2409 </param>
2410
2411 <param name="aModes" type="unsigned long" safearray="yes" dir="out">
2412 <desc>The list of file modes (in octal form) for the entries.</desc>
2413 </param>
2414 </method>
2415
2416 <method name="exists">
2417 <desc>Checks if the given file list exists in the current directory
2418 level.</desc>
2419
2420 <param name="aNames" type="wstring" safearray="yes" dir="in">
2421 <desc>The names to check.</desc>
2422 </param>
2423
2424 <param name="aExists" type="wstring" safearray="yes" dir="return">
2425 <desc>The names which exist.</desc>
2426 </param>
2427 </method>
2428
2429 <method name="remove">
2430 <desc>Deletes the given files in the current directory level.</desc>
2431
2432 <param name="aNames" type="wstring" safearray="yes" dir="in">
2433 <desc>The names to remove.</desc>
2434 </param>
2435
2436 <param name="aProgress" type="IProgress" dir="return">
2437 <desc>Progress object to track the operation completion.</desc>
2438 </param>
2439 </method>
2440
2441 </interface>
2442
2443 <enum
2444 name="ImportOptions" extends="$unknown"
2445 uuid="0a981523-3b20-4004-8ee3-dfd322202ace"
2446 >
2447
2448 <desc>
2449 Import options, used with <link to="IAppliance::importMachines" />.
2450 </desc>
2451
2452 <const name="KeepAllMACs" value="1">
2453 <desc>Don't generate new MAC addresses of the attached network adapters.</desc>
2454 </const>
2455 <const name="KeepNATMACs" value="2">
2456 <desc>Don't generate new MAC addresses of the attached network adapters when they are using NAT.</desc>
2457 </const>
2458
2459 </enum>
2460
2461
2462 <!--
2463 // IAppliance
2464 /////////////////////////////////////////////////////////////////////////
2465 -->
2466
2467 <interface
2468 name="IAppliance" extends="$unknown"
2469 uuid="3059cf9e-25c7-4f0b-9fa5-3c42e441670b"
2470 wsmap="managed"
2471 >
2472 <desc>
2473 Represents a platform-independent appliance in OVF format. An instance of this is returned
2474 by <link to="IVirtualBox::createAppliance" />, which can then be used to import and export
2475 virtual machines within an appliance with VirtualBox.
2476
2477 The OVF standard suggests two different physical file formats:
2478
2479 <ol>
2480 <li>If the appliance is distributed as a set of files, there must be at least one XML descriptor
2481 file that conforms to the OVF standard and carries an <tt>.ovf</tt> file extension. If
2482 this descriptor file references other files such as disk images, as OVF appliances typically
2483 do, those additional files must be in the same directory as the descriptor file.</li>
2484
2485 <li>If the appliance is distributed as a single file, it must be in TAR format and have the
2486 <tt>.ova</tt> file extension. This TAR file must then contain at least the OVF descriptor
2487 files and optionally other files.
2488
2489 At this time, VirtualBox does not not yet support the packed (TAR) variant; support will
2490 be added with a later version.</li>
2491 </ol>
2492
2493 <b>Importing</b> an OVF appliance into VirtualBox as instances of
2494 <link to="IMachine" /> involves the following sequence of API calls:
2495
2496 <ol>
2497 <li>Call <link to="IVirtualBox::createAppliance" />. This will create an empty IAppliance object.
2498 </li>
2499
2500 <li>On the new object, call <link to="#read" /> with the full path of the OVF file you
2501 would like to import. So long as this file is syntactically valid, this will succeed
2502 and fill the appliance object with the parsed data from the OVF file.
2503 </li>
2504
2505 <li>Next, call <link to="#interpret" />, which analyzes the OVF data and sets up the
2506 contents of the IAppliance attributes accordingly. These can be inspected by a
2507 VirtualBox front-end such as the GUI, and the suggestions can be displayed to the
2508 user. In particular, the <link to="#virtualSystemDescriptions" /> array contains
2509 instances of <link to="IVirtualSystemDescription" /> which represent the virtual
2510 systems (machines) in the OVF, which in turn describe the virtual hardware prescribed
2511 by the OVF (network and hardware adapters, virtual disk images, memory size and so on).
2512 The GUI can then give the user the option to confirm and/or change these suggestions.
2513 </li>
2514
2515 <li>If desired, call <link to="IVirtualSystemDescription::setFinalValues" /> for each
2516 virtual system (machine) to override the suggestions made by the <link to="#interpret" /> routine.
2517 </li>
2518
2519 <li>Finally, call <link to="#importMachines" /> to create virtual machines in
2520 VirtualBox as instances of <link to="IMachine" /> that match the information in the
2521 virtual system descriptions. After this call succeeded, the UUIDs of the machines created
2522 can be found in the <link to="#machines" /> array attribute.
2523 </li>
2524 </ol>
2525
2526 <b>Exporting</b> VirtualBox machines into an OVF appliance involves the following steps:
2527
2528 <ol>
2529 <li>As with importing, first call <link to="IVirtualBox::createAppliance" /> to create
2530 an empty IAppliance object.
2531 </li>
2532
2533 <li>For each machine you would like to export, call <link to="IMachine::export" />
2534 with the IAppliance object you just created. Each such call creates one instance of
2535 <link to="IVirtualSystemDescription" /> inside the appliance.
2536 </li>
2537
2538 <li>If desired, call <link to="IVirtualSystemDescription::setFinalValues" /> for each
2539 virtual system (machine) to override the suggestions made by the <link to="IMachine::export"/> routine.
2540 </li>
2541
2542 <li>Finally, call <link to="#write" /> with a path specification to have the OVF
2543 file written.</li>
2544 </ol>
2545
2546 </desc>
2547
2548 <attribute name="path" type="wstring" readonly="yes">
2549 <desc>Path to the main file of the OVF appliance, which is either the <tt>.ovf</tt> or
2550 the <tt>.ova</tt> file passed to <link to="#read" /> (for import) or
2551 <link to="#write" /> (for export).
2552 This attribute is empty until one of these methods has been called.
2553 </desc>
2554 </attribute>
2555
2556 <attribute name="disks" type="wstring" readonly="yes" safearray="yes">
2557 <desc>
2558 Array of virtual disk definitions. One such description exists for each
2559 disk definition in the OVF; each string array item represents one such piece of
2560 disk information, with the information fields separated by tab (\\t) characters.
2561
2562 The caller should be prepared for additional fields being appended to
2563 this string in future versions of VirtualBox and therefore check for
2564 the number of tabs in the strings returned.
2565
2566 In the current version, the following eight fields are returned per string
2567 in the array:
2568
2569 <ol>
2570 <li>Disk ID (unique string identifier given to disk)</li>
2571
2572 <li>Capacity (unsigned integer indicating the maximum capacity of the disk)</li>
2573
2574 <li>Populated size (optional unsigned integer indicating the current size of the
2575 disk; can be approximate; -1 if unspecified)</li>
2576
2577 <li>Format (string identifying the disk format, typically
2578 "http://www.vmware.com/specifications/vmdk.html#sparse")</li>
2579
2580 <li>Reference (where to find the disk image, typically a file name; if empty,
2581 then the disk should be created on import)</li>
2582
2583 <li>Image size (optional unsigned integer indicating the size of the image,
2584 which need not necessarily be the same as the values specified above, since
2585 the image may be compressed or sparse; -1 if not specified)</li>
2586
2587 <li>Chunk size (optional unsigned integer if the image is split into chunks;
2588 presently unsupported and always -1)</li>
2589
2590 <li>Compression (optional string equalling "gzip" if the image is gzip-compressed)</li>
2591 </ol>
2592 </desc>
2593 </attribute>
2594
2595 <attribute name="virtualSystemDescriptions" type="IVirtualSystemDescription" readonly="yes" safearray="yes">
2596 <desc> Array of virtual system descriptions. One such description is created
2597 for each virtual system (machine) found in the OVF.
2598 This array is empty until either <link to="#interpret" /> (for import) or <link to="IMachine::export" />
2599 (for export) has been called.
2600 </desc>
2601 </attribute>
2602
2603 <attribute name="machines" type="wstring" readonly="yes" safearray="yes">
2604 <desc>
2605 Contains the UUIDs of the machines created from the information in this appliances. This is only
2606 relevant for the import case, and will only contain data after a call to <link to="#importMachines" />
2607 succeeded.
2608 </desc>
2609 </attribute>
2610
2611 <method name="read">
2612 <desc>
2613 Reads an OVF file into the appliance object.
2614
2615 This method succeeds if the OVF is syntactically valid and, by itself, without errors. The
2616 mere fact that this method returns successfully does not mean that VirtualBox supports all
2617 features requested by the appliance; this can only be examined after a call to <link to="#interpret" />.
2618 </desc>
2619 <param name="file" type="wstring" dir="in">
2620 <desc>
2621 Name of appliance file to open (either with an <tt>.ovf</tt> or <tt>.ova</tt> extension, depending
2622 on whether the appliance is distributed as a set of files or as a single file, respectively).
2623 </desc>
2624 </param>
2625 <param name="aProgress" type="IProgress" dir="return">
2626 <desc>Progress object to track the operation completion.</desc>
2627 </param>
2628 </method>
2629
2630 <method name="interpret">
2631 <desc>
2632 Interprets the OVF data that was read when the appliance was constructed. After
2633 calling this method, one can inspect the
2634 <link to="#virtualSystemDescriptions" /> array attribute, which will then contain
2635 one <link to="IVirtualSystemDescription" /> for each virtual machine found in
2636 the appliance.
2637
2638 Calling this method is the second step of importing an appliance into VirtualBox;
2639 see <link to="IAppliance" /> for an overview.
2640
2641 After calling this method, one should call <link to="#getWarnings" /> to find out
2642 if problems were encountered during the processing which might later lead to
2643 errors.
2644 </desc>
2645 </method>
2646
2647 <method name="importMachines">
2648 <desc>
2649 Imports the appliance into VirtualBox by creating instances of <link to="IMachine" />
2650 and other interfaces that match the information contained in the appliance as
2651 closely as possible, as represented by the import instructions in the
2652 <link to="#virtualSystemDescriptions" /> array.
2653
2654 Calling this method is the final step of importing an appliance into VirtualBox;
2655 see <link to="IAppliance" /> for an overview.
2656
2657 Since importing the appliance will most probably involve copying and converting
2658 disk images, which can take a long time, this method operates asynchronously and
2659 returns an IProgress object to allow the caller to monitor the progress.
2660
2661 After the import succeeded, the UUIDs of the IMachine instances created can be
2662 retrieved from the <link to="#machines" /> array attribute.
2663 </desc>
2664
2665 <param name="options" type="ImportOptions" dir="in" safearray="yes">
2666 <desc>Options for the importing operation.</desc>
2667 </param>
2668
2669 <param name="aProgress" type="IProgress" dir="return">
2670 <desc>Progress object to track the operation completion.</desc>
2671 </param>
2672 </method>
2673
2674 <method name="createVFSExplorer">
2675 <desc>Returns a <link to="IVFSExplorer" /> object for the given URI.</desc>
2676
2677 <param name="aUri" type="wstring" dir="in">
2678 <desc>The URI describing the file system to use.</desc>
2679 </param>
2680
2681 <param name="aExplorer" type="IVFSExplorer" dir="return">
2682 <desc></desc>
2683 </param>
2684 </method>
2685
2686 <method name="write">
2687 <desc>
2688 Writes the contents of the appliance exports into a new OVF file.
2689
2690 Calling this method is the final step of exporting an appliance from VirtualBox;
2691 see <link to="IAppliance" /> for an overview.
2692
2693 Since exporting the appliance will most probably involve copying and converting
2694 disk images, which can take a long time, this method operates asynchronously and
2695 returns an IProgress object to allow the caller to monitor the progress.
2696 </desc>
2697 <param name="format" type="wstring" dir="in">
2698 <desc>
2699 Output format, as a string. Currently supported formats are "ovf-0.9", "ovf-1.0"
2700 and "ovf-2.0"; future versions of VirtualBox may support additional formats.
2701 </desc>
2702 </param>
2703 <param name="manifest" type="boolean" dir="in">
2704 <desc>
2705 Indicate if the optional manifest file (.mf) should be written. The manifest file
2706 is used for integrity checks prior import.
2707 </desc>
2708 </param>
2709 <param name="path" type="wstring" dir="in">
2710 <desc>
2711 Name of appliance file to open (either with an <tt>.ovf</tt> or <tt>.ova</tt> extension, depending
2712 on whether the appliance is distributed as a set of files or as a single file, respectively).
2713 </desc>
2714 </param>
2715 <param name="progress" type="IProgress" dir="return">
2716 <desc>Progress object to track the operation completion.</desc>
2717 </param>
2718 </method>
2719
2720 <method name="getWarnings">
2721 <desc>Returns textual warnings which occurred during execution of <link to="#interpret" />.</desc>
2722
2723 <param name="aWarnings" type="wstring" dir="return" safearray="yes">
2724 <desc></desc>
2725 </param>
2726 </method>
2727
2728 </interface>
2729
2730 <enum
2731 name="VirtualSystemDescriptionType"
2732 uuid="303c0900-a746-4612-8c67-79003e91f459"
2733 >
2734 <desc>Used with <link to="IVirtualSystemDescription" /> to describe the type of
2735 a configuration value.</desc>
2736
2737 <const name="Ignore" value="1" />
2738 <const name="OS" value="2" />
2739 <const name="Name" value="3" />
2740 <const name="Product" value="4" />
2741 <const name="Vendor" value="5" />
2742 <const name="Version" value="6" />
2743 <const name="ProductUrl" value="7" />
2744 <const name="VendorUrl" value="8" />
2745 <const name="Description" value="9" />
2746 <const name="License" value="10" />
2747 <const name="Miscellaneous" value="11" />
2748 <const name="CPU" value="12" />
2749 <const name="Memory" value="13" />
2750 <const name="HardDiskControllerIDE" value="14" />
2751 <const name="HardDiskControllerSATA" value="15" />
2752 <const name="HardDiskControllerSCSI" value="16" />
2753 <const name="HardDiskControllerSAS" value="17" />
2754 <const name="HardDiskImage" value="18" />
2755 <const name="Floppy" value="19" />
2756 <const name="CDROM" value="20" />
2757 <const name="NetworkAdapter" value="21" />
2758 <const name="USBController" value="22" />
2759 <const name="SoundCard" value="23" />
2760 <const name="SettingsFile" value="24">
2761 <desc>Not used/implemented right now, will be added later in 4.1.x.</desc>
2762 </const>
2763 </enum>
2764
2765 <enum
2766 name="VirtualSystemDescriptionValueType"
2767 uuid="56d9403f-3425-4118-9919-36f2a9b8c77c"
2768 >
2769 <desc>Used with <link to="IVirtualSystemDescription::getValuesByType" /> to describe the value
2770 type to fetch.</desc>
2771
2772 <const name="Reference" value="1" />
2773 <const name="Original" value="2" />
2774 <const name="Auto" value="3" />
2775 <const name="ExtraConfig" value="4" />
2776
2777 </enum>
2778
2779 <interface
2780 name="IVirtualSystemDescription" extends="$unknown"
2781 uuid="d7525e6c-531a-4c51-8e04-41235083a3d8"
2782 wsmap="managed"
2783 >
2784
2785 <desc>Represents one virtual system (machine) in an appliance. This interface is used in
2786 the <link to="IAppliance::virtualSystemDescriptions" /> array. After
2787 <link to="IAppliance::interpret" /> has been called, that array contains information
2788 about how the virtual systems described in the OVF should best be imported into
2789 VirtualBox virtual machines. See <link to="IAppliance" /> for the steps required to
2790 import an OVF into VirtualBox.
2791 </desc>
2792
2793 <attribute name="count" type="unsigned long" readonly="yes">
2794 <desc>Return the number of virtual system description entries.</desc>
2795 </attribute>
2796
2797 <method name="getDescription">
2798 <desc>Returns information about the virtual system as arrays of instruction items. In each array, the
2799 items with the same indices correspond and jointly represent an import instruction for VirtualBox.
2800
2801 The list below identifies the value sets that are possible depending on the
2802 <link to="VirtualSystemDescriptionType" /> enum value in the array item in @a aTypes[]. In each case,
2803 the array item with the same index in @a aOvfValues[] will contain the original value as contained
2804 in the OVF file (just for informational purposes), and the corresponding item in @a aVBoxValues[]
2805 will contain a suggested value to be used for VirtualBox. Depending on the description type,
2806 the @a aExtraConfigValues[] array item may also be used.
2807
2808 <ul>
2809 <li>
2810 "OS": the guest operating system type. There must be exactly one such array item on import. The
2811 corresponding item in @a aVBoxValues[] contains the suggested guest operating system for VirtualBox.
2812 This will be one of the values listed in <link to="IVirtualBox::guestOSTypes" />. The corresponding
2813 item in @a aOvfValues[] will contain a numerical value that described the operating system in the OVF.
2814 </li>
2815 <li>
2816 "Name": the name to give to the new virtual machine. There can be at most one such array item;
2817 if none is present on import, then an automatic name will be created from the operating system
2818 type. The corresponding item im @a aOvfValues[] will contain the suggested virtual machine name
2819 from the OVF file, and @a aVBoxValues[] will contain a suggestion for a unique VirtualBox
2820 <link to="IMachine" /> name that does not exist yet.
2821 </li>
2822 <li>
2823 "Description": an arbitrary description.
2824 </li>
2825 <li>
2826 "License": the EULA section from the OVF, if present. It is the responsibility of the calling
2827 code to display such a license for agreement; the Main API does not enforce any such policy.
2828 </li>
2829 <li>
2830 Miscellaneous: reserved for future use.
2831 </li>
2832 <li>
2833 "CPU": the number of CPUs. There can be at most one such item, which will presently be ignored.
2834 </li>
2835 <li>
2836 "Memory": the amount of guest RAM, in bytes. There can be at most one such array item; if none
2837 is present on import, then VirtualBox will set a meaningful default based on the operating system
2838 type.
2839 </li>
2840 <li>
2841 "HardDiskControllerIDE": an IDE hard disk controller. There can be at most two such items.
2842 An optional value in @a aOvfValues[] and @a aVBoxValues[] can be "PIIX3" or "PIIX4" to specify
2843 the type of IDE controller; this corresponds to the ResourceSubType element which VirtualBox
2844 writes into the OVF.
2845 The matching item in the @a aRefs[] array will contain an integer that items of the "Harddisk"
2846 type can use to specify which hard disk controller a virtual disk should be connected to.
2847 Note that in OVF, an IDE controller has two channels, corresponding to "master" and "slave"
2848 in traditional terminology, whereas the IDE storage controller that VirtualBox supports in
2849 its virtual machines supports four channels (primary master, primary slave, secondary master,
2850 secondary slave) and thus maps to two IDE controllers in the OVF sense.
2851 </li>
2852 <li>
2853 "HardDiskControllerSATA": an SATA hard disk controller. There can be at most one such item. This
2854 has no value in @a aOvfValues[] or @a aVBoxValues[].
2855 The matching item in the @a aRefs[] array will be used as with IDE controllers (see above).
2856 </li>
2857 <li>
2858 "HardDiskControllerSCSI": a SCSI hard disk controller. There can be at most one such item.
2859 The items in @a aOvfValues[] and @a aVBoxValues[] will either be "LsiLogic", "BusLogic" or
2860 "LsiLogicSas". (Note that in OVF, the LsiLogicSas controller is treated as a SCSI controller
2861 whereas VirtualBox considers it a class of storage controllers of its own; see
2862 <link to="StorageControllerType" />).
2863 The matching item in the @a aRefs[] array will be used as with IDE controllers (see above).
2864 </li>
2865 <li>
2866 "HardDiskImage": a virtual hard disk, most probably as a reference to an image file. There can be an
2867 arbitrary number of these items, one for each virtual disk image that accompanies the OVF.
2868
2869 The array item in @a aOvfValues[] will contain the file specification from the OVF file (without
2870 a path since the image file should be in the same location as the OVF file itself), whereas the
2871 item in @a aVBoxValues[] will contain a qualified path specification to where VirtualBox uses the
2872 hard disk image. This means that on import the image will be copied and converted from the
2873 "ovf" location to the "vbox" location; on export, this will be handled the other way round.
2874
2875 The matching item in the @a aExtraConfigValues[] array must contain a string of the following
2876 format: "controller=&lt;index&gt;;channel=&lt;c&gt;"
2877 In this string, &lt;index&gt; must be an integer specifying the hard disk controller to connect
2878 the image to. That number must be the index of an array item with one of the hard disk controller
2879 types (HardDiskControllerSCSI, HardDiskControllerSATA, HardDiskControllerIDE).
2880 In addition, &lt;c&gt; must specify the channel to use on that controller. For IDE controllers,
2881 this can be 0 or 1 for master or slave, respectively. For compatibility with VirtualBox versions
2882 before 3.2, the values 2 and 3 (for secondary master and secondary slave) are also supported, but
2883 no longer exported. For SATA and SCSI controllers, the channel can range from 0-29.
2884 </li>
2885 <li>
2886 "CDROM": a virtual CD-ROM drive. The matching item in @a aExtraConfigValue[] contains the same
2887 attachment information as with "HardDiskImage" items.
2888 </li>
2889 <li>
2890 "CDROM": a virtual floppy drive. The matching item in @a aExtraConfigValue[] contains the same
2891 attachment information as with "HardDiskImage" items.
2892 </li>
2893 <li>
2894 "NetworkAdapter": a network adapter. The array item in @a aVBoxValues[] will specify the hardware
2895 for the network adapter, whereas the array item in @a aExtraConfigValues[] will have a string
2896 of the "type=&lt;X&gt;" format, where &lt;X&gt; must be either "NAT" or "Bridged".
2897 </li>
2898 <li>
2899 "USBController": a USB controller. There can be at most one such item. If and only if such an
2900 item ispresent, USB support will be enabled for the new virtual machine.
2901 </li>
2902 <li>
2903 "SoundCard": a sound card. There can be at most one such item. If and only if such an item is
2904 present, sound support will be enabled for the new virtual machine. Note that the virtual
2905 machine in VirtualBox will always be presented with the standard VirtualBox soundcard, which
2906 may be different from the virtual soundcard expected by the appliance.
2907 </li>
2908 </ul>
2909
2910 </desc>
2911
2912 <param name="aTypes" type="VirtualSystemDescriptionType" dir="out" safearray="yes">
2913 <desc></desc>
2914 </param>
2915
2916 <param name="aRefs" type="wstring" dir="out" safearray="yes">
2917 <desc></desc>
2918 </param>
2919
2920 <param name="aOvfValues" type="wstring" dir="out" safearray="yes">
2921 <desc></desc>
2922 </param>
2923
2924 <param name="aVBoxValues" type="wstring" dir="out" safearray="yes">
2925 <desc></desc>
2926 </param>
2927
2928 <param name="aExtraConfigValues" type="wstring" dir="out" safearray="yes">
2929 <desc></desc>
2930 </param>
2931
2932 </method>
2933
2934 <method name="getDescriptionByType">
2935 <desc>This is the same as <link to="#getDescription" /> except that you can specify which types
2936 should be returned.</desc>
2937
2938 <param name="aType" type="VirtualSystemDescriptionType" dir="in">
2939 <desc></desc>
2940 </param>
2941
2942 <param name="aTypes" type="VirtualSystemDescriptionType" dir="out" safearray="yes">
2943 <desc></desc>
2944 </param>
2945
2946 <param name="aRefs" type="wstring" dir="out" safearray="yes">
2947 <desc></desc>
2948 </param>
2949
2950 <param name="aOvfValues" type="wstring" dir="out" safearray="yes">
2951 <desc></desc>
2952 </param>
2953
2954 <param name="aVBoxValues" type="wstring" dir="out" safearray="yes">
2955 <desc></desc>
2956 </param>
2957
2958 <param name="aExtraConfigValues" type="wstring" dir="out" safearray="yes">
2959 <desc></desc>
2960 </param>
2961
2962 </method>
2963
2964 <method name="getValuesByType">
2965 <desc>This is the same as <link to="#getDescriptionByType" /> except that you can specify which
2966 value types should be returned. See <link to="VirtualSystemDescriptionValueType" /> for possible
2967 values.</desc>
2968
2969 <param name="aType" type="VirtualSystemDescriptionType" dir="in">
2970 <desc></desc>
2971 </param>
2972
2973 <param name="aWhich" type="VirtualSystemDescriptionValueType" dir="in">
2974 <desc></desc>
2975 </param>
2976
2977 <param name="aValues" type="wstring" dir="return" safearray="yes">
2978 <desc></desc>
2979 </param>
2980
2981 </method>
2982
2983 <method name="setFinalValues">
2984 <desc>
2985 This method allows the appliance's user to change the configuration for the virtual
2986 system descriptions. For each array item returned from <link to="#getDescription" />,
2987 you must pass in one boolean value and one configuration value.
2988
2989 Each item in the boolean array determines whether the particular configuration item
2990 should be enabled.
2991 You can only disable items of the types HardDiskControllerIDE, HardDiskControllerSATA,
2992 HardDiskControllerSCSI, HardDiskImage, CDROM, Floppy, NetworkAdapter, USBController
2993 and SoundCard.
2994
2995 For the "vbox" and "extra configuration" values, if you pass in the same arrays
2996 as returned in the aVBoxValues and aExtraConfigValues arrays from <link to="#getDescription"/>,
2997 the configuration remains unchanged. Please see the documentation for <link to="#getDescription"/>
2998 for valid configuration values for the individual array item types. If the
2999 corresponding item in the aEnabled array is @c false, the configuration value is ignored.
3000 </desc>
3001
3002 <param name="aEnabled" type="boolean" dir="in" safearray="yes">
3003 <desc></desc>
3004 </param>
3005
3006 <param name="aVBoxValues" type="wstring" dir="in" safearray="yes">
3007 <desc></desc>
3008 </param>
3009
3010 <param name="aExtraConfigValues" type="wstring" dir="in" safearray="yes">
3011 <desc></desc>
3012 </param>
3013 </method>
3014
3015 <method name="addDescription">
3016 <desc>
3017 This method adds an additional description entry to the stack of already
3018 available descriptions for this virtual system. This is handy for writing
3019 values which aren't directly supported by VirtualBox. One example would
3020 be the License type of <link to="VirtualSystemDescriptionType" />.
3021 </desc>
3022
3023 <param name="aType" type="VirtualSystemDescriptionType" dir="in">
3024 <desc></desc>
3025 </param>
3026
3027 <param name="aVBoxValue" type="wstring" dir="in">
3028 <desc></desc>
3029 </param>
3030
3031 <param name="aExtraConfigValue" type="wstring" dir="in">
3032 <desc></desc>
3033 </param>
3034 </method>
3035 </interface>
3036
3037
3038 <!--
3039 // IMachine
3040 /////////////////////////////////////////////////////////////////////////
3041 -->
3042
3043 <interface
3044 name="IInternalMachineControl" extends="$unknown"
3045 uuid="ec824977-e43f-479c-81c9-ac6cae1423a5"
3046 internal="yes"
3047 wsmap="suppress"
3048 >
3049 <method name="setRemoveSavedStateFile">
3050 <desc>
3051 Updates the flag whether the saved state file is removed on a
3052 machine state change from Saved to PoweredOff.
3053 </desc>
3054 <param name="aRemove" type="boolean" dir="in"/>
3055 </method>
3056
3057 <method name="updateState">
3058 <desc>
3059 Updates the VM state.
3060 <note>
3061 This operation will also update the settings file with the correct
3062 information about the saved state file and delete this file from disk
3063 when appropriate.
3064 </note>
3065 </desc>
3066 <param name="state" type="MachineState" dir="in"/>
3067 </method>
3068
3069 <method name="getIPCId">
3070 <param name="id" type="wstring" dir="return"/>
3071 </method>
3072
3073 <method name="beginPowerUp">
3074 <desc>
3075 Tells VBoxSVC that <link to="IConsole::powerUp"/> is under ways and
3076 gives it the progress object that should be part of any pending
3077 <link to="IMachine::launchVMProcess"/> operations. The progress
3078 object may be called back to reflect an early cancelation, so some care
3079 have to be taken with respect to any cancelation callbacks. The console
3080 object will call <link to="IInternalMachineControl::endPowerUp"/>
3081 to signal the completion of the progress object.
3082 </desc>
3083 <param name="aProgress" type="IProgress" dir="in" />
3084 </method>
3085
3086 <method name="endPowerUp">
3087 <desc>
3088 Tells VBoxSVC that <link to="IConsole::powerUp"/> has completed.
3089 This method may query status information from the progress object it
3090 received in <link to="IInternalMachineControl::beginPowerUp"/> and copy
3091 it over to any in-progress <link to="IMachine::launchVMProcess"/>
3092 call in order to complete that progress object.
3093 </desc>
3094 <param name="result" type="long" dir="in"/>
3095 </method>
3096
3097 <method name="beginPoweringDown">
3098 <desc>
3099 Called by the VM process to inform the server it wants to
3100 stop the VM execution and power down.
3101 </desc>
3102 <param name="progress" type="IProgress" dir="out">
3103 <desc>
3104 Progress object created by VBoxSVC to wait until
3105 the VM is powered down.
3106 </desc>
3107 </param>
3108 </method>
3109
3110 <method name="endPoweringDown">
3111 <desc>
3112 Called by the VM process to inform the server that powering
3113 down previously requested by #beginPoweringDown is either
3114 successfully finished or there was a failure.
3115
3116 <result name="VBOX_E_FILE_ERROR">
3117 Settings file not accessible.
3118 </result>
3119 <result name="VBOX_E_XML_ERROR">
3120 Could not parse the settings file.
3121 </result>
3122
3123 </desc>
3124
3125 <param name="result" type="long" dir="in">
3126 <desc>@c S_OK to indicate success.
3127 </desc>
3128 </param>
3129 <param name="errMsg" type="wstring" dir="in">
3130 <desc>@c human readable error message in case of failure.
3131 </desc>
3132 </param>
3133 </method>
3134
3135 <method name="runUSBDeviceFilters">
3136 <desc>
3137 Asks the server to run USB devices filters of the associated
3138 machine against the given USB device and tell if there is
3139 a match.
3140 <note>
3141 Intended to be used only for remote USB devices. Local
3142 ones don't require to call this method (this is done
3143 implicitly by the Host and USBProxyService).
3144 </note>
3145 </desc>
3146 <param name="device" type="IUSBDevice" dir="in"/>
3147 <param name="matched" type="boolean" dir="out"/>
3148 <param name="maskedInterfaces" type="unsigned long" dir="out"/>
3149 </method>
3150
3151 <method name="captureUSBDevice">
3152 <desc>
3153 Requests a capture of the given host USB device.
3154 When the request is completed, the VM process will
3155 get a <link to="IInternalSessionControl::onUSBDeviceAttach"/>
3156 notification.
3157 </desc>
3158 <param name="id" type="uuid" mod="string" dir="in"/>
3159 </method>
3160
3161 <method name="detachUSBDevice">
3162 <desc>
3163 Notification that a VM is going to detach (@a done = @c false) or has
3164 already detached (@a done = @c true) the given USB device.
3165 When the @a done = @c true request is completed, the VM process will
3166 get a <link to="IInternalSessionControl::onUSBDeviceDetach"/>
3167 notification.
3168 <note>
3169 In the @a done = @c true case, the server must run its own filters
3170 and filters of all VMs but this one on the detached device
3171 as if it were just attached to the host computer.
3172 </note>
3173 </desc>
3174 <param name="id" type="uuid" mod="string" dir="in"/>
3175 <param name="done" type="boolean" dir="in"/>
3176 </method>
3177
3178 <method name="autoCaptureUSBDevices">
3179 <desc>
3180 Requests a capture all matching USB devices attached to the host.
3181 When the request is completed, the VM process will
3182 get a <link to="IInternalSessionControl::onUSBDeviceAttach"/>
3183 notification per every captured device.
3184 </desc>
3185 </method>
3186
3187 <method name="detachAllUSBDevices">
3188 <desc>
3189 Notification that a VM that is being powered down. The done
3190 parameter indicates whether which stage of the power down
3191 we're at. When @a done = @c false the VM is announcing its
3192 intentions, while when @a done = @c true the VM is reporting
3193 what it has done.
3194 <note>
3195 In the @a done = @c true case, the server must run its own filters
3196 and filters of all VMs but this one on all detach devices as
3197 if they were just attached to the host computer.
3198 </note>
3199 </desc>
3200 <param name="done" type="boolean" dir="in"/>
3201 </method>
3202
3203 <method name="onSessionEnd">
3204 <desc>
3205 Triggered by the given session object when the session is about
3206 to close normally.
3207 </desc>
3208 <param name="session" type="ISession" dir="in">
3209 <desc>Session that is being closed</desc>
3210 </param>
3211 <param name="progress" type="IProgress" dir="return">
3212 <desc>
3213 Used to wait until the corresponding machine is actually
3214 dissociated from the given session on the server.
3215 Returned only when this session is a direct one.
3216 </desc>
3217 </param>
3218 </method>
3219
3220 <method name="beginSavingState">
3221 <desc>
3222 Called by the VM process to inform the server it wants to
3223 save the current state and stop the VM execution.
3224 </desc>
3225 <param name="progress" type="IProgress" dir="out">
3226 <desc>
3227 Progress object created by VBoxSVC to wait until
3228 the state is saved.
3229 </desc>
3230 </param>
3231 <param name="stateFilePath" type="wstring" dir="out">
3232 <desc>
3233 File path the VM process must save the execution state to.
3234 </desc>
3235 </param>
3236 </method>
3237
3238 <method name="endSavingState">
3239 <desc>
3240 Called by the VM process to inform the server that saving
3241 the state previously requested by #beginSavingState is either
3242 successfully finished or there was a failure.
3243
3244 <result name="VBOX_E_FILE_ERROR">
3245 Settings file not accessible.
3246 </result>
3247 <result name="VBOX_E_XML_ERROR">
3248 Could not parse the settings file.
3249 </result>
3250
3251 </desc>
3252
3253 <param name="result" type="long" dir="in">
3254 <desc>@c S_OK to indicate success.
3255 </desc>
3256 </param>
3257 <param name="errMsg" type="wstring" dir="in">
3258 <desc>@c human readable error message in case of failure.
3259 </desc>
3260 </param>
3261 </method>
3262
3263 <method name="adoptSavedState">
3264 <desc>
3265 Gets called by <link to="IConsole::adoptSavedState"/>.
3266 <result name="VBOX_E_FILE_ERROR">
3267 Invalid saved state file path.
3268 </result>
3269 </desc>
3270 <param name="savedStateFile" type="wstring" dir="in">
3271 <desc>Path to the saved state file to adopt.</desc>
3272 </param>
3273 </method>
3274
3275 <method name="beginTakingSnapshot">
3276 <desc>
3277 Called from the VM process to request from the server to perform the
3278 server-side actions of creating a snapshot (creating differencing images
3279 and the snapshot object).
3280
3281 <result name="VBOX_E_FILE_ERROR">
3282 Settings file not accessible.
3283 </result>
3284 <result name="VBOX_E_XML_ERROR">
3285 Could not parse the settings file.
3286 </result>
3287 </desc>
3288 <param name="initiator" type="IConsole" dir="in">
3289 <desc>The console object that initiated this call.</desc>
3290 </param>
3291 <param name="name" type="wstring" dir="in">
3292 <desc>Snapshot name.</desc>
3293 </param>
3294 <param name="description" type="wstring" dir="in">
3295 <desc>Snapshot description.</desc>
3296 </param>
3297 <param name="consoleProgress" type="IProgress" dir="in">
3298 <desc>
3299 Progress object created by the VM process tracking the
3300 snapshot's progress. This has the following sub-operations:
3301 <ul>
3302 <li>setting up (weight 1);</li>
3303 <li>one for each medium attachment that needs a differencing image (weight 1 each);</li>
3304 <li>another one to copy the VM state (if offline with saved state, weight is VM memory size in MB);</li>
3305 <li>another one to save the VM state (if online, weight is VM memory size in MB);</li>
3306 <li>finishing up (weight 1)</li>
3307 </ul>
3308 </desc>
3309 </param>
3310 <param name="fTakingSnapshotOnline" type="boolean" dir="in">
3311 <desc>
3312 Whether this is an online snapshot (i.e. the machine is running).
3313 </desc>
3314 </param>
3315 <param name="stateFilePath" type="wstring" dir="out">
3316 <desc>
3317 File path the VM process must save the execution state to.
3318 </desc>
3319 </param>
3320 </method>
3321
3322 <method name="endTakingSnapshot">
3323 <desc>
3324 Called by the VM process to inform the server that the snapshot
3325 previously requested by #beginTakingSnapshot is either
3326 successfully taken or there was a failure.
3327 </desc>
3328
3329 <param name="success" type="boolean" dir="in">
3330 <desc>@c true to indicate success and @c false otherwise</desc>
3331 </param>
3332 </method>
3333
3334 <method name="deleteSnapshot">
3335 <desc>
3336 Gets called by <link to="IConsole::deleteSnapshot"/>,
3337 <link to="IConsole::deleteSnapshotAndAllChildren"/> and
3338 <link to="IConsole::deleteSnapshotRange"/>.
3339 <result name="VBOX_E_INVALID_OBJECT_STATE">
3340 Snapshot has more than one child snapshot. Only possible if the
3341 delete operation does not delete all children or the range does
3342 not meet the linearity condition.
3343 </result>
3344 </desc>
3345 <param name="initiator" type="IConsole" dir="in">
3346 <desc>The console object that initiated this call.</desc>
3347 </param>
3348 <param name="startId" type="uuid" mod="string" dir="in">
3349 <desc>UUID of the first snapshot to delete.</desc>
3350 </param>
3351 <param name="endId" type="uuid" mod="string" dir="in">
3352 <desc>UUID of the last snapshot to delete.</desc>
3353 </param>
3354 <param name="deleteAllChildren" type="boolean" dir="in">
3355 <desc>Whether all children should be deleted.</desc>
3356 </param>
3357 <param name="machineState" type="MachineState" dir="out">
3358 <desc>New machine state after this operation is started.</desc>
3359 </param>
3360 <param name="progress" type="IProgress" dir="return">
3361 <desc>Progress object to track the operation completion.</desc>
3362 </param>
3363 </method>
3364
3365 <method name="finishOnlineMergeMedium">
3366 <desc>
3367 Gets called by <link to="IInternalSessionControl::onlineMergeMedium"/>.
3368 </desc>
3369 <param name="mediumAttachment" type="IMediumAttachment" dir="in">
3370 <desc>The medium attachment which needs to be cleaned up.</desc>
3371 </param>
3372 <param name="source" type="IMedium" dir="in">
3373 <desc>Merge source medium.</desc>
3374 </param>
3375 <param name="target" type="IMedium" dir="in">
3376 <desc>Merge target medium.</desc>
3377 </param>
3378 <param name="mergeForward" type="boolean" dir="in">
3379 <desc>Merge direction.</desc>
3380 </param>
3381 <param name="parentForTarget" type="IMedium" dir="in">
3382 <desc>For forward merges: new parent for target medium.</desc>
3383 </param>
3384 <param name="childrenToReparent" type="IMedium" safearray="yes" dir="in">
3385 <desc>For backward merges: list of media which need their parent UUID
3386 updated.</desc>
3387 </param>
3388 </method>
3389
3390 <method name="restoreSnapshot">
3391 <desc>
3392 Gets called by <link to="IConsole::restoreSnapshot"/>.
3393 </desc>
3394 <param name="initiator" type="IConsole" dir="in">
3395 <desc>The console object that initiated this call.</desc>
3396 </param>
3397 <param name="snapshot" type="ISnapshot" dir="in">
3398 <desc>The snapshot to restore the VM state from.</desc>
3399 </param>
3400 <param name="machineState" type="MachineState" dir="out">
3401 <desc>New machine state after this operation is started.</desc>
3402 </param>
3403 <param name="progress" type="IProgress" dir="return">
3404 <desc>Progress object to track the operation completion.</desc>
3405 </param>
3406 </method>
3407
3408 <method name="pullGuestProperties">
3409 <desc>
3410 Get the list of the guest properties matching a set of patterns along
3411 with their values, time stamps and flags and give responsibility for
3412 managing properties to the console.
3413 </desc>
3414 <param name="name" type="wstring" dir="out" safearray="yes">
3415 <desc>
3416 The names of the properties returned.
3417 </desc>
3418 </param>
3419 <param name="value" type="wstring" dir="out" safearray="yes">
3420 <desc>
3421 The values of the properties returned. The array entries match the
3422 corresponding entries in the @a name array.
3423 </desc>
3424 </param>
3425 <param name="timestamp" type="long long" dir="out" safearray="yes">
3426 <desc>
3427 The time stamps of the properties returned. The array entries match
3428 the corresponding entries in the @a name array.
3429 </desc>
3430 </param>
3431 <param name="flags" type="wstring" dir="out" safearray="yes">
3432 <desc>
3433 The flags of the properties returned. The array entries match the
3434 corresponding entries in the @a name array.
3435 </desc>
3436 </param>
3437 </method>
3438
3439 <method name="pushGuestProperty">
3440 <desc>
3441 Update a single guest property in IMachine.
3442 </desc>
3443 <param name="name" type="wstring" dir="in">
3444 <desc>
3445 The name of the property to be updated.
3446 </desc>
3447 </param>
3448 <param name="value" type="wstring" dir="in">
3449 <desc>
3450 The value of the property.
3451 </desc>
3452 </param>
3453 <param name="timestamp" type="long long" dir="in">
3454 <desc>
3455 The timestamp of the property.
3456 </desc>
3457 </param>
3458 <param name="flags" type="wstring" dir="in">
3459 <desc>
3460 The flags of the property.
3461 </desc>
3462 </param>
3463 </method>
3464
3465 <method name="lockMedia">
3466 <desc>
3467 Locks all media attached to the machine for writing and parents of
3468 attached differencing media (if any) for reading. This operation is
3469 atomic so that if it fails no media is actually locked.
3470
3471 This method is intended to be called when the machine is in Starting or
3472 Restoring state. The locked media will be automatically unlocked when
3473 the machine is powered off or crashed.
3474 </desc>
3475 </method>
3476 <method name="unlockMedia">
3477 <desc>
3478 Unlocks all media previously locked using
3479 <link to="IInternalMachineControl::lockMedia"/>.
3480
3481 This method is intended to be used with teleportation so that it is
3482 possible to teleport between processes on the same machine.
3483 </desc>
3484 </method>
3485
3486 <method name="ejectMedium">
3487 <desc>
3488 Tells VBoxSVC that the guest has ejected the medium associated with
3489 the medium attachment.
3490 </desc>
3491 <param name="attachment" type="IMediumAttachment" dir="in">
3492 <desc>
3493 The medium attachment where the eject happened.
3494 </desc>
3495 </param>
3496 <param name="newAttachment" type="IMediumAttachment" dir="return">
3497 <desc>
3498 A new reference to the medium attachment, as the config change can
3499 result in the creation of a new instance.
3500 </desc>
3501 </param>
3502 </method>
3503
3504 <method name="reportGuestStatistics">
3505 <desc>
3506 Passes collected guest statistics to VBoxSVC.
3507 </desc>
3508 <param name="validStats" type="unsigned long" dir="in">
3509 <desc>
3510 Mask defining which parameters are valid. For example: 0x11 means
3511 that cpuIdle and XXX are valid. Other parameters should be ignored.
3512 </desc>
3513 </param>
3514 <param name="cpuUser" type="unsigned long" dir="in">
3515 <desc>Percentage of processor time spent in user mode as seen by the guest.</desc>
3516 </param>
3517 <param name="cpuKernel" type="unsigned long" dir="in">
3518 <desc>Percentage of processor time spent in kernel mode as seen by the guest.</desc>
3519 </param>
3520 <param name="cpuIdle" type="unsigned long" dir="in">
3521 <desc>Percentage of processor time spent idling as seen by the guest.</desc>
3522 </param>
3523 <param name="memTotal" type="unsigned long" dir="in">
3524 <desc>Total amount of physical guest RAM.</desc>
3525 </param>
3526 <param name="memFree" type="unsigned long" dir="in">
3527 <desc>Free amount of physical guest RAM.</desc>
3528 </param>
3529 <param name="memBalloon" type="unsigned long" dir="in">
3530 <desc>Amount of ballooned physical guest RAM.</desc>
3531 </param>
3532 <param name="memShared" type="unsigned long" dir="in">
3533 <desc>Amount of shared physical guest RAM.</desc>
3534 </param>
3535 <param name="memCache" type="unsigned long" dir="in">
3536 <desc>Total amount of guest (disk) cache memory.</desc>
3537 </param>
3538 <param name="pagedTotal" type="unsigned long" dir="in">
3539 <desc>Total amount of space in the page file.</desc>
3540 </param>
3541 <param name="memAllocTotal" type="unsigned long" dir="in">
3542 <desc>Total amount of memory allocated by the hypervisor.</desc>
3543 </param>
3544 <param name="memFreeTotal" type="unsigned long" dir="in">
3545 <desc>Total amount of free memory available in the hypervisor.</desc>
3546 </param>
3547 <param name="memBalloonTotal" type="unsigned long" dir="in">
3548 <desc>Total amount of memory ballooned by the hypervisor.</desc>
3549 </param>
3550 <param name="memSharedTotal" type="unsigned long" dir="in">
3551 <desc>Total amount of shared memory in the hypervisor.</desc>
3552 </param>
3553 </method>
3554 </interface>
3555
3556 <interface
3557 name="IBIOSSettings" extends="$unknown"
3558 uuid="38b54279-dc35-4f5e-a431-835b867c6b5e"
3559 wsmap="managed"
3560 >
3561 <desc>
3562 The IBIOSSettings interface represents BIOS settings of the virtual
3563 machine. This is used only in the <link to="IMachine::BIOSSettings" /> attribute.
3564 </desc>
3565 <attribute name="logoFadeIn" type="boolean">
3566 <desc>Fade in flag for BIOS logo animation.</desc>
3567 </attribute>
3568
3569 <attribute name="logoFadeOut" type="boolean">
3570 <desc>Fade out flag for BIOS logo animation.</desc>
3571 </attribute>
3572
3573 <attribute name="logoDisplayTime" type="unsigned long">
3574 <desc>BIOS logo display time in milliseconds (0 = default).</desc>
3575 </attribute>
3576
3577 <attribute name="logoImagePath" type="wstring">
3578 <desc>
3579 Local file system path for external BIOS splash image. Empty string
3580 means the default image is shown on boot.
3581 </desc>
3582 </attribute>
3583
3584 <attribute name="bootMenuMode" type="BIOSBootMenuMode">
3585 <desc>Mode of the BIOS boot device menu.</desc>
3586 </attribute>
3587
3588 <attribute name="ACPIEnabled" type="boolean">
3589 <desc>ACPI support flag.</desc>
3590 </attribute>
3591
3592 <attribute name="IOAPICEnabled" type="boolean">
3593 <desc>
3594 IO APIC support flag. If set, VirtualBox will provide an IO APIC
3595 and support IRQs above 15.
3596 </desc>
3597 </attribute>
3598
3599 <attribute name="timeOffset" type="long long">
3600 <desc>
3601 Offset in milliseconds from the host system time. This allows for
3602 guests running with a different system date/time than the host.
3603 It is equivalent to setting the system date/time in the BIOS except
3604 it is not an absolute value but a relative one. Guest Additions
3605 time synchronization honors this offset.
3606 </desc>
3607 </attribute>
3608
3609 <attribute name="PXEDebugEnabled" type="boolean">
3610 <desc>
3611 PXE debug logging flag. If set, VirtualBox will write extensive
3612 PXE trace information to the release log.
3613 </desc>
3614 </attribute>
3615 </interface>
3616
3617 <enum
3618 name="CleanupMode"
3619 uuid="67897c50-7cca-47a9-83f6-ce8fd8eb5441"
3620 >
3621 <desc>Cleanup mode, used with <link to="IMachine::unregister" />.
3622 </desc>
3623 <const name="UnregisterOnly" value="1">
3624 <desc>Unregister only the machine, but neither delete snapshots nor detach media.</desc>
3625 </const>
3626 <const name="DetachAllReturnNone" value="2">
3627 <desc>Delete all snapshots and detach all media but return none; this will keep all media registered.</desc>
3628 </const>
3629 <const name="DetachAllReturnHardDisksOnly" value="3">
3630 <desc>Delete all snapshots, detach all media and return hard disks for closing, but not removable media.</desc>
3631 </const>
3632 <const name="Full" value="4">
3633 <desc>Delete all snapshots, detach all media and return all media for closing.</desc>
3634 </const>
3635 </enum>
3636
3637 <interface
3638 name="IPCIAddress" extends="$unknown"
3639 uuid="D88B324F-DB19-4D3B-A1A9-BF5B127199A8"
3640 wsmap="struct"
3641 >
3642
3643 <desc>
3644 Address on the PCI bus.
3645 </desc>
3646
3647 <attribute name="bus" type="short">
3648 <desc>
3649 Bus number.
3650 </desc>
3651 </attribute>
3652
3653 <attribute name="device" type="short">
3654 <desc>
3655 Device number.
3656 </desc>
3657 </attribute>
3658
3659 <attribute name="devFunction" type="short">
3660 <desc>
3661 Device function number.
3662 </desc>
3663 </attribute>
3664
3665 <method name="asLong">
3666 <desc>
3667 Convert PCI address into long.
3668 </desc>
3669 <param name="result" type="long" dir="return" />
3670 </method>
3671
3672 <method name="fromLong">
3673 <desc>
3674 Make PCI address from long.
3675 </desc>
3676 <param name="number" type="long" dir="in" />
3677 </method>
3678 </interface>
3679
3680 <interface
3681 name="IPCIDeviceAttachment" extends="$unknown"
3682 uuid="91f33d6f-e621-4f70-a77e-15f0e3c714d5"
3683 wsmap="struct"
3684 >
3685
3686 <desc>
3687 Information about PCI attachments.
3688 </desc>
3689
3690 <attribute name="name" type="wstring" readonly="yes">
3691 <desc>
3692 Device name.
3693 </desc>
3694 </attribute>
3695
3696 <attribute name="isPhysicalDevice" type="boolean" readonly="yes">
3697 <desc>
3698 If this is physical or virtual device.
3699 </desc>
3700 </attribute>
3701
3702 <attribute name="hostAddress" type="long" readonly="yes">
3703 <desc>
3704 Address of device on the host, applicable only to host devices.
3705 </desc>
3706 </attribute>
3707
3708 <attribute name="guestAddress" type="long" readonly="yes">
3709 <desc>
3710 Address of device on the guest.
3711 </desc>
3712 </attribute>
3713
3714 </interface>
3715
3716 <enum
3717 name="CloneMode" extends="$unknown"
3718 uuid="A7A159FE-5096-4B8D-8C3C-D033CB0B35A8"
3719 >
3720
3721 <desc>
3722 Clone mode, used with <link to="IMachine::cloneTo" />.
3723 </desc>
3724
3725 <const name="MachineState" value="1">
3726 <desc>Clone the state of the selected machine.</desc>
3727 </const>
3728 <const name="MachineAndChildStates" value="2">
3729 <desc>Clone the state of the selected machine and its child snapshots if present.</desc>
3730 </const>
3731 <const name="AllStates" value="3">
3732 <desc>Clone all states (including all snapshots) of the machine, regardless of the machine object used.</desc>
3733 </const>
3734
3735 </enum>
3736
3737 <enum
3738 name="CloneOptions" extends="$unknown"
3739 uuid="22243f8e-96ab-497c-8cf0-f40a566c630b"
3740 >
3741
3742 <desc>
3743 Clone options, used with <link to="IMachine::cloneTo" />.
3744 </desc>
3745
3746 <const name="Link" value="1">
3747 <desc>Create a clone VM where all virtual disks are linked to the original VM.</desc>
3748 </const>
3749 <const name="KeepAllMACs" value="2">
3750 <desc>Don't generate new MAC addresses of the attached network adapters.</desc>
3751 </const>
3752 <const name="KeepNATMACs" value="3">
3753 <desc>Don't generate new MAC addresses of the attached network adapters when they are using NAT.</desc>
3754 </const>
3755 <const name="KeepDiskNames" value="4">
3756 <desc>Don't change the disk names.</desc>
3757 </const>
3758
3759 </enum>
3760
3761 <enum
3762 name="AutostopType" extends="$unknown"
3763 uuid="6bb96740-cf34-470d-aab2-2cd48ea2e10e"
3764 >
3765
3766 <desc>
3767 Autostop types, used with <link to="IMachine::autostopType" />.
3768 </desc>
3769
3770 <const name="Disabled" value="1">
3771 <desc>Stopping the VM during system shutdown is disabled.</desc>
3772 </const>
3773 <const name="SaveState" value="2">
3774 <desc>The state of the VM will be saved when the system shuts down.</desc>
3775 </const>
3776 <const name="PowerOff" value="3">
3777 <desc>The VM is powered off when the system shuts down.</desc>
3778 </const>
3779 <const name="AcpiShutdown" value="4">
3780 <desc>An ACPI shutdown event is generated.</desc>
3781 </const>
3782
3783 </enum>
3784
3785
3786 <interface
3787 name="IMachine" extends="$unknown"
3788 uuid="22781af3-1c96-4126-9edf-67a020e0e858"
3789 wsmap="managed"
3790 >
3791 <desc>
3792 The IMachine interface represents a virtual machine, or guest, created
3793 in VirtualBox.
3794
3795 This interface is used in two contexts. First of all, a collection of
3796 objects implementing this interface is stored in the
3797 <link to="IVirtualBox::machines"/> attribute which lists all the virtual
3798 machines that are currently registered with this VirtualBox
3799 installation. Also, once a session has been opened for the given virtual
3800 machine (e.g. the virtual machine is running), the machine object
3801 associated with the open session can be queried from the session object;
3802 see <link to="ISession"/> for details.
3803
3804 The main role of this interface is to expose the settings of the virtual
3805 machine and provide methods to change various aspects of the virtual
3806 machine's configuration. For machine objects stored in the
3807 <link to="IVirtualBox::machines"/> collection, all attributes are
3808 read-only unless explicitly stated otherwise in individual attribute
3809 and method descriptions.
3810
3811 In order to change a machine setting, a session for this machine must be
3812 opened using one of the <link to="IMachine::lockMachine" /> or
3813 <link to="IMachine::launchVMProcess"/> methods. After the
3814 machine has been successfully locked for a session, a mutable machine object
3815 needs to be queried from the session object and then the desired settings
3816 changes can be applied to the returned object using IMachine attributes and
3817 methods. See the <link to="ISession"/> interface description for more
3818 information about sessions.
3819
3820 Note that IMachine does not provide methods to control virtual machine
3821 execution (such as start the machine, or power it down) -- these methods
3822 are grouped in a separate interface called <link to="IConsole" />.
3823
3824 <see><link to="ISession"/>, <link to="IConsole"/></see>
3825 </desc>
3826
3827 <attribute name="parent" type="IVirtualBox" readonly="yes">
3828 <desc>Associated parent object.</desc>
3829 </attribute>
3830
3831 <attribute name="accessible" type="boolean" readonly="yes">
3832 <desc>
3833 Whether this virtual machine is currently accessible or not.
3834
3835 A machine is always deemed accessible unless it is registered <i>and</i>
3836 its settings file cannot be read or parsed (either because the file itself
3837 is unavailable or has invalid XML contents).
3838
3839 Every time this property is read, the accessibility state of
3840 this machine is re-evaluated. If the returned value is @c false,
3841 the <link to="#accessError"/> property may be used to get the
3842 detailed error information describing the reason of
3843 inaccessibility, including XML error messages.
3844
3845 When the machine is inaccessible, only the following properties
3846 can be used on it:
3847 <ul>
3848 <li><link to="#parent"/></li>
3849 <li><link to="#id"/></li>
3850 <li><link to="#settingsFilePath"/></li>
3851 <li><link to="#accessible"/></li>
3852 <li><link to="#accessError"/></li>
3853 </ul>
3854
3855 An attempt to access any other property or method will return
3856 an error.
3857
3858 The only possible action you can perform on an inaccessible
3859 machine is to unregister it using the
3860 <link to="IMachine::unregister"/> call (or, to check
3861 for the accessibility state once more by querying this
3862 property).
3863
3864 <note>
3865 In the current implementation, once this property returns
3866 @c true, the machine will never become inaccessible
3867 later, even if its settings file cannot be successfully
3868 read/written any more (at least, until the VirtualBox
3869 server is restarted). This limitation may be removed in
3870 future releases.
3871 </note>
3872 </desc>
3873 </attribute>
3874
3875 <attribute name="accessError" type="IVirtualBoxErrorInfo" readonly="yes">
3876 <desc>
3877 Error information describing the reason of machine
3878 inaccessibility.
3879
3880 Reading this property is only valid after the last call to
3881 <link to="#accessible"/> returned @c false (i.e. the
3882 machine is currently inaccessible). Otherwise, a @c null
3883 IVirtualBoxErrorInfo object will be returned.
3884 </desc>
3885 </attribute>
3886
3887 <attribute name="name" type="wstring">
3888 <desc>
3889 Name of the virtual machine.
3890
3891 Besides being used for human-readable identification purposes
3892 everywhere in VirtualBox, the virtual machine name is also used
3893 as a name of the machine's settings file and as a name of the
3894 subdirectory this settings file resides in. Thus, every time you
3895 change the value of this property, the settings file will be
3896 renamed once you call <link to="#saveSettings"/> to confirm the
3897 change. The containing subdirectory will be also renamed, but
3898 only if it has exactly the same name as the settings file
3899 itself prior to changing this property (for backward compatibility
3900 with previous API releases). The above implies the following
3901 limitations:
3902 <ul>
3903 <li>The machine name cannot be empty.</li>
3904 <li>The machine name can contain only characters that are valid
3905 file name characters according to the rules of the file
3906 system used to store VirtualBox configuration.</li>
3907 <li>You cannot have two or more machines with the same name
3908 if they use the same subdirectory for storing the machine
3909 settings files.</li>
3910 <li>You cannot change the name of the machine if it is running,
3911 or if any file in the directory containing the settings file
3912 is being used by another running machine or by any other
3913 process in the host operating system at a time when
3914 <link to="#saveSettings"/> is called.
3915 </li>
3916 </ul>
3917 If any of the above limitations are hit, <link to="#saveSettings"/>
3918 will return an appropriate error message explaining the exact
3919 reason and the changes you made to this machine will not be saved.
3920
3921 Starting with VirtualBox 4.0, a ".vbox" extension of the settings
3922 file is recommended, but not enforced. (Previous versions always
3923 used a generic ".xml" extension.)
3924 </desc>
3925 </attribute>
3926
3927 <attribute name="description" type="wstring">
3928 <desc>
3929 Description of the virtual machine.
3930
3931 The description attribute can contain any text and is
3932 typically used to describe the hardware and software
3933 configuration of the virtual machine in detail (i.e. network
3934 settings, versions of the installed software and so on).
3935 </desc>
3936 </attribute>
3937
3938 <attribute name="id" type="uuid" mod="string" readonly="yes">
3939 <desc>UUID of the virtual machine.</desc>
3940 </attribute>
3941
3942 <attribute name="groups" type="wstring" safearray="yes">
3943 <desc>
3944 Array of machine group names of which this machine is a member.
3945 <tt>""</tt> and <tt>"/"</tt> are synonyms for the toplevel group. Each
3946 group is only listed once, however they are listed in no particular
3947 order and there is no guarantee that there are no gaps in the group
3948 hierarchy (i.e. <tt>"/group"</tt>,
3949 <tt>"/group/subgroup/subsubgroup"</tt> is a valid result).
3950 </desc>
3951 </attribute>
3952
3953 <attribute name="OSTypeId" type="wstring">
3954 <desc>
3955 User-defined identifier of the Guest OS type.
3956 You may use <link to="IVirtualBox::getGuestOSType"/> to obtain
3957 an IGuestOSType object representing details about the given
3958 Guest OS type.
3959 <note>
3960 This value may differ from the value returned by
3961 <link to="IGuest::OSTypeId"/> if Guest Additions are
3962 installed to the guest OS.
3963 </note>
3964 </desc>
3965 </attribute>
3966
3967 <attribute name="hardwareVersion" type="wstring">
3968 <desc>Hardware version identifier. Internal use only for now.</desc>
3969 </attribute>
3970
3971 <attribute name="hardwareUUID" type="uuid" mod="string">
3972 <desc>
3973 The UUID presented to the guest via memory tables, hardware and guest
3974 properties. For most VMs this is the same as the @a id, but for VMs
3975 which have been cloned or teleported it may be the same as the source
3976 VM. The latter is because the guest shouldn't notice that it was
3977 cloned or teleported.
3978 </desc>
3979 </attribute>
3980
3981 <attribute name="CPUCount" type="unsigned long">
3982 <desc>Number of virtual CPUs in the VM.</desc>
3983 </attribute>
3984
3985 <attribute name="CPUHotPlugEnabled" type="boolean">
3986 <desc>
3987 This setting determines whether VirtualBox allows CPU
3988 hotplugging for this machine.</desc>
3989 </attribute>
3990
3991 <attribute name="CPUExecutionCap" type="unsigned long">
3992 <desc>
3993 Means to limit the number of CPU cycles a guest can use. The unit
3994 is percentage of host CPU cycles per second. The valid range
3995 is 1 - 100. 100 (the default) implies no limit.
3996 </desc>
3997 </attribute>
3998
3999 <attribute name="memorySize" type="unsigned long">
4000 <desc>System memory size in megabytes.</desc>
4001 </attribute>
4002
4003 <attribute name="memoryBalloonSize" type="unsigned long">
4004 <desc>Memory balloon size in megabytes.</desc>
4005 </attribute>
4006
4007 <attribute name="pageFusionEnabled" type="boolean">
4008 <desc>
4009 This setting determines whether VirtualBox allows page
4010 fusion for this machine (64 bits host only).
4011 </desc>
4012 </attribute>
4013
4014 <attribute name="VRAMSize" type="unsigned long">
4015 <desc>Video memory size in megabytes.</desc>
4016 </attribute>
4017
4018 <attribute name="accelerate3DEnabled" type="boolean" default="false">
4019 <desc>
4020 This setting determines whether VirtualBox allows this machine to make
4021 use of the 3D graphics support available on the host.</desc>
4022 </attribute>
4023
4024 <attribute name="accelerate2DVideoEnabled" type="boolean" default="false">
4025 <desc>
4026 This setting determines whether VirtualBox allows this machine to make
4027 use of the 2D video acceleration support available on the host.</desc>
4028 </attribute>
4029
4030 <attribute name="monitorCount" type="unsigned long">
4031 <desc>
4032 Number of virtual monitors.
4033 <note>
4034 Only effective on Windows XP and later guests with
4035 Guest Additions installed.
4036 </note>
4037 </desc>
4038 </attribute>
4039
4040 <attribute name="BIOSSettings" type="IBIOSSettings" readonly="yes">
4041 <desc>Object containing all BIOS settings.</desc>
4042 </attribute>
4043
4044 <attribute name="firmwareType" type="FirmwareType">
4045 <desc>Type of firmware (such as legacy BIOS or EFI), used for initial
4046 bootstrap in this VM.</desc>
4047 </attribute>
4048
4049 <attribute name="pointingHIDType" type="PointingHIDType">
4050 <desc>Type of pointing HID (such as mouse or tablet) used in this VM.
4051 The default is typically "PS2Mouse" but can vary depending on the
4052 requirements of the guest operating system.</desc>
4053 </attribute>
4054
4055 <attribute name="keyboardHIDType" type="KeyboardHIDType">
4056 <desc>Type of keyboard HID used in this VM.
4057 The default is typically "PS2Keyboard" but can vary depending on the
4058 requirements of the guest operating system.</desc>
4059 </attribute>
4060
4061 <attribute name="HPETEnabled" type="boolean">
4062 <desc>This attribute controls if High Precision Event Timer (HPET) is
4063 enabled in this VM. Use this property if you want to provide guests
4064 with additional time source, or if guest requires HPET to function correctly.
4065 Default is false.</desc>
4066 </attribute>
4067
4068 <attribute name="chipsetType" type="ChipsetType">
4069 <desc>Chipset type used in this VM.</desc>
4070 </attribute>
4071
4072 <attribute name="snapshotFolder" type="wstring">
4073 <desc>
4074 Full path to the directory used to store snapshot data
4075 (differencing media and saved state files) of this machine.
4076
4077 The initial value of this property is
4078 <tt>&lt;</tt><link to="#settingsFilePath">
4079 path_to_settings_file</link><tt>&gt;/&lt;</tt>
4080 <link to="#id">machine_uuid</link>
4081 <tt>&gt;</tt>.
4082
4083 Currently, it is an error to try to change this property on
4084 a machine that has snapshots (because this would require to
4085 move possibly large files to a different location).
4086 A separate method will be available for this purpose later.
4087
4088 <note>
4089 Setting this property to @c null or to an empty string will restore
4090 the initial value.
4091 </note>
4092 <note>
4093 When setting this property, the specified path can be
4094 absolute (full path) or relative to the directory where the
4095 <link to="#settingsFilePath">machine settings file</link>
4096 is located. When reading this property, a full path is
4097 always returned.
4098 </note>
4099 <note>
4100 The specified path may not exist, it will be created
4101 when necessary.
4102 </note>
4103 </desc>
4104 </attribute>
4105
4106 <attribute name="VRDEServer" type="IVRDEServer" readonly="yes">
4107 <desc>VirtualBox Remote Desktop Extension (VRDE) server object.</desc>
4108 </attribute>
4109
4110 <attribute name="emulatedUSBWebcameraEnabled" type="boolean" default="false"/>
4111 <attribute name="emulatedUSBCardReaderEnabled" type="boolean" default="false"/>
4112
4113 <attribute name="mediumAttachments" type="IMediumAttachment" readonly="yes" safearray="yes">
4114 <desc>Array of media attached to this machine.</desc>
4115 </attribute>
4116
4117 <attribute name="USBController" type="IUSBController" readonly="yes">
4118 <desc>
4119 Associated USB controller object.
4120
4121 <note>
4122 If USB functionality is not available in the given edition of
4123 VirtualBox, this method will set the result code to @c E_NOTIMPL.
4124 </note>
4125 </desc>
4126 </attribute>
4127
4128 <attribute name="audioAdapter" type="IAudioAdapter" readonly="yes">
4129 <desc>Associated audio adapter, always present.</desc>
4130 </attribute>
4131
4132 <attribute name="storageControllers" type="IStorageController" readonly="yes" safearray="yes">
4133 <desc>Array of storage controllers attached to this machine.</desc>
4134 </attribute>
4135
4136 <attribute name="settingsFilePath" type="wstring" readonly="yes">
4137 <desc>
4138 Full name of the file containing machine settings data.
4139 </desc>
4140 </attribute>
4141
4142 <attribute name="settingsModified" type="boolean" readonly="yes">
4143 <desc>
4144 Whether the settings of this machine have been modified
4145 (but neither yet saved nor discarded).
4146 <note>
4147 Reading this property is only valid on instances returned
4148 by <link to="ISession::machine"/> and on new machines
4149 created by <link to="IVirtualBox::createMachine"/> or opened
4150 by <link to="IVirtualBox::openMachine"/> but not
4151 yet registered, or on unregistered machines after calling
4152 <link to="IMachine::unregister"/>. For all other
4153 cases, the settings can never be modified.
4154 </note>
4155 <note>
4156 For newly created unregistered machines, the value of this
4157 property is always @c true until <link to="#saveSettings"/>
4158 is called (no matter if any machine settings have been
4159 changed after the creation or not). For opened machines
4160 the value is set to @c false (and then follows to normal rules).
4161 </note>
4162 </desc>
4163 </attribute>
4164
4165 <attribute name="sessionState" type="SessionState" readonly="yes">
4166 <desc>Current session state for this machine.</desc>
4167 </attribute>
4168
4169 <attribute name="sessionType" type="wstring" readonly="yes">
4170 <desc>
4171 Type of the session. If <link to="#sessionState"/> is
4172 Spawning or Locked, this attribute contains the
4173 same value as passed to the
4174 <link to="IMachine::launchVMProcess"/> method in the
4175 @a type parameter. If the session was used with
4176 <link to="IMachine::lockMachine" />, or if
4177 <link to="#sessionState"/> is SessionClosed, the value of this
4178 attribute is an empty string.
4179 </desc>
4180 </attribute>
4181
4182 <attribute name="sessionPID" type="unsigned long" readonly="yes">
4183 <desc>
4184 Identifier of the session process. This attribute contains the
4185 platform-dependent identifier of the process whose session was
4186 used with <link to="IMachine::lockMachine" /> call. The returned
4187 value is only valid if <link to="#sessionState"/> is Locked or
4188 Unlocking by the time this property is read.
4189 </desc>
4190 </attribute>
4191
4192 <attribute name="state" type="MachineState" readonly="yes">
4193 <desc>Current execution state of this machine.</desc>
4194 </attribute>
4195
4196 <attribute name="lastStateChange" type="long long" readonly="yes">
4197 <desc>
4198 Time stamp of the last execution state change,
4199 in milliseconds since 1970-01-01 UTC.
4200 </desc>
4201 </attribute>
4202
4203 <attribute name="stateFilePath" type="wstring" readonly="yes">
4204 <desc>
4205 Full path to the file that stores the execution state of
4206 the machine when it is in the <link to="MachineState_Saved"/> state.
4207 <note>
4208 When the machine is not in the Saved state, this attribute is
4209 an empty string.
4210 </note>
4211 </desc>
4212 </attribute>
4213
4214 <attribute name="logFolder" type="wstring" readonly="yes">
4215 <desc>
4216 Full path to the folder that stores a set of rotated log files
4217 recorded during machine execution. The most recent log file is
4218 named <tt>VBox.log</tt>, the previous log file is
4219 named <tt>VBox.log.1</tt> and so on (up to <tt>VBox.log.3</tt>
4220 in the current version).
4221 </desc>
4222 </attribute>
4223
4224 <attribute name="currentSnapshot" type="ISnapshot" readonly="yes">
4225 <desc>
4226 Current snapshot of this machine. This is @c null if the machine
4227 currently has no snapshots. If it is not @c null, then it was
4228 set by one of <link to="IConsole::takeSnapshot" />,
4229 <link to="IConsole::deleteSnapshot" />
4230 or <link to="IConsole::restoreSnapshot" />, depending on which
4231 was called last. See <link to="ISnapshot"/> for details.
4232 </desc>
4233 </attribute>
4234
4235 <attribute name="snapshotCount" type="unsigned long" readonly="yes">
4236 <desc>
4237 Number of snapshots taken on this machine. Zero means the
4238 machine doesn't have any snapshots.
4239 </desc>
4240 </attribute>
4241
4242 <attribute name="currentStateModified" type="boolean" readonly="yes">
4243 <desc>
4244 Returns @c true if the current state of the machine is not
4245 identical to the state stored in the current snapshot.
4246
4247 The current state is identical to the current snapshot only
4248 directly after one of the following calls are made:
4249
4250 <ul>
4251 <li><link to="IConsole::restoreSnapshot"/>
4252 </li>
4253 <li><link to="IConsole::takeSnapshot"/> (issued on a
4254 "powered off" or "saved" machine, for which
4255 <link to="#settingsModified"/> returns @c false)
4256 </li>
4257 </ul>
4258
4259 The current state remains identical until one of the following
4260 happens:
4261 <ul>
4262 <li>settings of the machine are changed</li>
4263 <li>the saved state is deleted</li>
4264 <li>the current snapshot is deleted</li>
4265 <li>an attempt to execute the machine is made</li>
4266 </ul>
4267
4268 <note>
4269 For machines that don't have snapshots, this property is
4270 always @c false.
4271 </note>
4272 </desc>
4273 </attribute>
4274
4275 <attribute name="sharedFolders" type="ISharedFolder" readonly="yes" safearray="yes">
4276 <desc>
4277 Collection of shared folders for this machine (permanent shared
4278 folders). These folders are shared automatically at machine startup
4279 and available only to the guest OS installed within this machine.
4280
4281 New shared folders are added to the collection using
4282 <link to="#createSharedFolder"/>. Existing shared folders can be
4283 removed using <link to="#removeSharedFolder"/>.
4284 </desc>
4285 </attribute>
4286
4287 <attribute name="clipboardMode" type="ClipboardMode">
4288 <desc>
4289 Synchronization mode between the host OS clipboard
4290 and the guest OS clipboard.
4291 </desc>
4292 </attribute>
4293
4294 <attribute name="dragAndDropMode" type="DragAndDropMode">
4295 <desc>
4296 Which mode is allowed for drag'n'drop.
4297 </desc>
4298 </attribute>
4299
4300 <attribute name="guestPropertyNotificationPatterns" type="wstring">
4301 <desc>
4302 A comma-separated list of simple glob patterns. Changes to guest
4303 properties whose name matches one of the patterns will generate an
4304 <link to="IGuestPropertyChangedEvent"/> signal.
4305 </desc>
4306 </attribute>
4307
4308 <attribute name="teleporterEnabled" type="boolean">
4309 <desc>
4310 When set to @a true, the virtual machine becomes a target teleporter
4311 the next time it is powered on. This can only set to @a true when the
4312 VM is in the @a PoweredOff or @a Aborted state.
4313
4314 <!-- This property is automatically set to @a false when the VM is powered
4315 on. (bird: This doesn't work yet ) -->
4316 </desc>
4317 </attribute>
4318
4319 <attribute name="teleporterPort" type="unsigned long">
4320 <desc>
4321 The TCP port the target teleporter will listen for incoming
4322 teleportations on.
4323
4324 0 means the port is automatically selected upon power on. The actual
4325 value can be read from this property while the machine is waiting for
4326 incoming teleportations.
4327 </desc>
4328 </attribute>
4329
4330 <attribute name="teleporterAddress" type="wstring">
4331 <desc>
4332 The address the target teleporter will listen on. If set to an empty
4333 string, it will listen on all addresses.
4334 </desc>
4335 </attribute>
4336
4337 <attribute name="teleporterPassword" type="wstring">
4338 <desc>
4339 The password to check for on the target teleporter. This is just a
4340 very basic measure to prevent simple hacks and operators accidentally
4341 beaming a virtual machine to the wrong place.
4342
4343 Note that you SET a plain text password while reading back a HASHED
4344 password. Setting a hashed password is currently not supported.
4345 </desc>
4346 </attribute>
4347
4348 <attribute name="faultToleranceState" type="FaultToleranceState">
4349 <desc>
4350 Fault tolerance state; disabled, source or target.
4351 This property can be changed at any time. If you change it for a running
4352 VM, then the fault tolerance address and port must be set beforehand.
4353 </desc>
4354 </attribute>
4355
4356 <attribute name="faultTolerancePort" type="unsigned long">
4357 <desc>
4358 The TCP port the fault tolerance source or target will use for
4359 communication.
4360 </desc>
4361 </attribute>
4362
4363 <attribute name="faultToleranceAddress" type="wstring">
4364 <desc>
4365 The address the fault tolerance source or target.
4366 </desc>
4367 </attribute>
4368
4369 <attribute name="faultTolerancePassword" type="wstring">
4370 <desc>
4371 The password to check for on the standby VM. This is just a
4372 very basic measure to prevent simple hacks and operators accidentally
4373 choosing the wrong standby VM.
4374 </desc>
4375 </attribute>
4376
4377 <attribute name="faultToleranceSyncInterval" type="unsigned long">
4378 <desc>
4379 The interval in ms used for syncing the state between source and target.
4380 </desc>
4381 </attribute>
4382
4383 <attribute name="RTCUseUTC" type="boolean">
4384 <desc>
4385 When set to @a true, the RTC device of the virtual machine will run
4386 in UTC time, otherwise in local time. Especially Unix guests prefer
4387 the time in UTC.
4388 </desc>
4389 </attribute>
4390
4391 <attribute name="IOCacheEnabled" type="boolean">
4392 <desc>
4393 When set to @a true, the builtin I/O cache of the virtual machine
4394 will be enabled.
4395 </desc>
4396 </attribute>
4397
4398 <attribute name="IOCacheSize" type="unsigned long">
4399 <desc>
4400 Maximum size of the I/O cache in MB.
4401 </desc>
4402 </attribute>
4403
4404 <attribute name="PCIDeviceAssignments" type="IPCIDeviceAttachment" readonly="yes" safearray="yes">
4405 <desc>Array of PCI devices assigned to this machine, to get list of all
4406 PCI devices attached to the machine use
4407 <link to="IConsole::attachedPCIDevices"/> attribute, as this attribute
4408 is intended to list only devices additional to what described in
4409 virtual hardware config. Usually, this list keeps host's physical
4410 devices assigned to the particular machine.
4411 </desc>
4412 </attribute>
4413
4414 <attribute name="bandwidthControl" type="IBandwidthControl" readonly="yes">
4415 <desc>
4416 Bandwidth control manager.
4417 </desc>
4418 </attribute>
4419
4420 <attribute name="tracingEnabled" type="boolean">
4421 <desc>
4422 Enables the tracing facility in the VMM (including PDM devices +
4423 drivers). The VMM will consume about 0.5MB of more memory when
4424 enabled and there may be some extra overhead from tracepoints that are
4425 always enabled.
4426 </desc>
4427 </attribute>
4428
4429 <attribute name="tracingConfig" type="wstring">
4430 <desc>
4431 Tracepoint configuration to apply at startup when
4432 <link to="IMachine::tracingEnabled" /> is true. The string specifies
4433 a space separated of tracepoint group names to enable. The special
4434 group 'all' enables all tracepoints. Check DBGFR3TracingConfig for
4435 more details on available tracepoint groups and such.
4436
4437 Note that on hosts supporting DTrace (or similar), a lot of the
4438 tracepoints may be implemented exclusivly as DTrace probes. So, the
4439 effect of the same config may differ between Solaris and Windows for
4440 example.
4441 </desc>
4442 </attribute>
4443
4444 <attribute name="allowTracingToAccessVM" type="boolean">
4445 <desc>
4446 Enables tracepoints in PDM devices and drivers to use the VMCPU or VM
4447 structures when firing off trace points. This is especially useful
4448 with DTrace tracepoints, as it allows you to use the VMCPU or VM
4449 pointer to obtain useful information such as guest register state.
4450
4451 This is disabled by default because devices and drivers normally has no
4452 business accessing the VMCPU or VM structures, and are therefore unable
4453 to get any pointers to these.
4454 </desc>
4455 </attribute>
4456
4457 <attribute name="autostartEnabled" type="boolean">
4458 <desc>
4459 Enables autostart of the VM during system boot.
4460 </desc>
4461 </attribute>
4462
4463 <attribute name="autostartDelay" type="unsigned long">
4464 <desc>
4465 Number of seconds to wait until the VM should be started during system boot.
4466 </desc>
4467 </attribute>
4468
4469 <attribute name="autostopType" type="AutostopType">
4470 <desc>
4471 Action type to do when the system is shutting down.
4472 </desc>
4473 </attribute>
4474
4475 <method name="lockMachine">
4476 <desc>
4477 Locks the machine for the given session to enable the caller
4478 to make changes to the machine or start the VM or control
4479 VM execution.
4480
4481 There are two ways to lock a machine for such uses:
4482
4483 <ul>
4484 <li>If you want to make changes to the machine settings,
4485 you must obtain an exclusive write lock on the machine
4486 by setting @a lockType to @c Write.
4487
4488 This will only succeed if no other process has locked
4489 the machine to prevent conflicting changes. Only after
4490 an exclusive write lock has been obtained using this method, one
4491 can change all VM settings or execute the VM in the process
4492 space of the session object. (Note that the latter is only of
4493 interest if you actually want to write a new front-end for
4494 virtual machines; but this API gets called internally by
4495 the existing front-ends such as VBoxHeadless and the VirtualBox
4496 GUI to acquire a write lock on the machine that they are running.)
4497
4498 On success, write-locking the machine for a session creates
4499 a second copy of the IMachine object. It is this second object
4500 upon which changes can be made; in VirtualBox terminology, the
4501 second copy is "mutable". It is only this second, mutable machine
4502 object upon which you can call methods that change the
4503 machine state. After having called this method, you can
4504 obtain this second, mutable machine object using the
4505 <link to="ISession::machine" /> attribute.
4506 </li>
4507 <li>If you only want to check the machine state or control
4508 machine execution without actually changing machine
4509 settings (e.g. to get access to VM statistics or take
4510 a snapshot or save the machine state), then set the
4511 @a lockType argument to @c Shared.
4512
4513 If no other session has obtained a lock, you will obtain an
4514 exclusive write lock as described above. However, if another
4515 session has already obtained such a lock, then a link to that
4516 existing session will be established which allows you
4517 to control that existing session.
4518
4519 To find out which type of lock was obtained, you can
4520 inspect <link to="ISession::type" />, which will have been
4521 set to either @c WriteLock or @c Shared.
4522 </li>
4523 </ul>
4524
4525 In either case, you can get access to the <link to="IConsole" />
4526 object which controls VM execution.
4527
4528 Also in all of the above cases, one must always call
4529 <link to="ISession::unlockMachine" /> to release the lock on the machine, or
4530 the machine's state will eventually be set to "Aborted".
4531
4532 To change settings on a machine, the following sequence is typically
4533 performed:
4534
4535 <ol>
4536 <li>Call this method to obtain an exclusive write lock for the current session.</li>
4537
4538 <li>Obtain a mutable IMachine object from <link to="ISession::machine" />.</li>
4539
4540 <li>Change the settings of the machine by invoking IMachine methods.</li>
4541
4542 <li>Call <link to="IMachine::saveSettings" />.</li>
4543
4544 <li>Release the write lock by calling <link to="ISession::unlockMachine"/>.</li>
4545 </ol>
4546
4547 <result name="E_UNEXPECTED">
4548 Virtual machine not registered.
4549 </result>
4550 <result name="E_ACCESSDENIED">
4551 Process not started by OpenRemoteSession.
4552 </result>
4553 <result name="VBOX_E_INVALID_OBJECT_STATE">
4554 Session already open or being opened.
4555 </result>
4556 <result name="VBOX_E_VM_ERROR">
4557 Failed to assign machine to session.
4558 </result>
4559 </desc>
4560 <param name="session" type="ISession" dir="in">
4561 <desc>
4562 Session object for which the machine will be locked.
4563 </desc>
4564 </param>
4565 <param name="lockType" type="LockType" dir="in">
4566 <desc>
4567 If set to @c Write, then attempt to acquire an exclusive write lock or fail.
4568 If set to @c Shared, then either acquire an exclusive write lock or establish
4569 a link to an existing session.
4570 </desc>
4571 </param>
4572 </method>
4573
4574 <method name="launchVMProcess">
4575 <desc>
4576 Spawns a new process that will execute the virtual machine and obtains a shared
4577 lock on the machine for the calling session.
4578
4579 If launching the VM succeeds, the new VM process will create its own session
4580 and write-lock the machine for it, preventing conflicting changes from other
4581 processes. If the machine is already locked (because it is already running or
4582 because another session has a write lock), launching the VM process will therefore
4583 fail. Reversely, future attempts to obtain a write lock will also fail while the
4584 machine is running.
4585
4586 The caller's session object remains separate from the session opened by the new
4587 VM process. It receives its own <link to="IConsole" /> object which can be used
4588 to control machine execution, but it cannot be used to change all VM settings
4589 which would be available after a <link to="#lockMachine" /> call.
4590
4591 The caller must eventually release the session's shared lock by calling
4592 <link to="ISession::unlockMachine" /> on the local session object once this call
4593 has returned. However, the session's state (see <link to="ISession::state" />)
4594 will not return to "Unlocked" until the remote session has also unlocked
4595 the machine (i.e. the machine has stopped running).
4596
4597 Launching a VM process can take some time (a new VM is started in a new process,
4598 for which memory and other resources need to be set up). Because of this,
4599 an <link to="IProgress" /> object is returned to allow the caller to wait
4600 for this asynchronous operation to be completed. Until then, the caller's
4601 session object remains in the "Unlocked" state, and its <link to="ISession::machine" />
4602 and <link to="ISession::console" /> attributes cannot be accessed.
4603 It is recommended to use <link to="IProgress::waitForCompletion" /> or
4604 similar calls to wait for completion. Completion is signalled when the VM
4605 is powered on. If launching the VM fails, error messages can be queried
4606 via the progress object, if available.
4607
4608 The progress object will have at least 2 sub-operations. The first
4609 operation covers the period up to the new VM process calls powerUp.
4610 The subsequent operations mirror the <link to="IConsole::powerUp"/>
4611 progress object. Because <link to="IConsole::powerUp"/> may require
4612 some extra sub-operations, the <link to="IProgress::operationCount"/>
4613 may change at the completion of operation.
4614
4615 For details on the teleportation progress operation, see
4616 <link to="IConsole::powerUp"/>.
4617
4618 The @a environment argument is a string containing definitions of
4619 environment variables in the following format:
4620 <pre>
4621 NAME[=VALUE]\n
4622 NAME[=VALUE]\n
4623 ...
4624 </pre>
4625 where <tt>\\n</tt> is the new line character. These environment
4626 variables will be appended to the environment of the VirtualBox server
4627 process. If an environment variable exists both in the server process
4628 and in this list, the value from this list takes precedence over the
4629 server's variable. If the value of the environment variable is
4630 omitted, this variable will be removed from the resulting environment.
4631 If the environment string is @c null or empty, the server environment
4632 is inherited by the started process as is.
4633
4634 <result name="E_UNEXPECTED">
4635 Virtual machine not registered.
4636 </result>
4637 <result name="E_INVALIDARG">
4638 Invalid session type @a type.
4639 </result>
4640 <result name="VBOX_E_OBJECT_NOT_FOUND">
4641 No machine matching @a machineId found.
4642 </result>
4643 <result name="VBOX_E_INVALID_OBJECT_STATE">
4644 Session already open or being opened.
4645 </result>
4646 <result name="VBOX_E_IPRT_ERROR">
4647 Launching process for machine failed.
4648 </result>
4649 <result name="VBOX_E_VM_ERROR">
4650 Failed to assign machine to session.
4651 </result>
4652 </desc>
4653 <param name="session" type="ISession" dir="in">
4654 <desc>
4655 Client session object to which the VM process will be connected (this
4656 must be in "Unlocked" state).
4657 </desc>
4658 </param>
4659 <param name="type" type="wstring" dir="in">
4660 <desc>
4661 Front-end to use for the new VM process. The following are currently supported:
4662 <ul>
4663 <li><tt>"gui"</tt>: VirtualBox Qt GUI front-end</li>
4664 <li><tt>"headless"</tt>: VBoxHeadless (VRDE Server) front-end</li>
4665 <li><tt>"sdl"</tt>: VirtualBox SDL front-end</li>
4666 <li><tt>"emergencystop"</tt>: reserved value, used for aborting
4667 the currently running VM or session owner. In this case the
4668 @a session parameter may be @c null (if it is non-null it isn't
4669 used in any way), and the @a progress return value will be always
4670 @c null. The operation completes immediately.</li>
4671 </ul>
4672 </desc>
4673 </param>
4674 <param name="environment" type="wstring" dir="in">
4675 <desc>
4676 Environment to pass to the VM process.
4677 </desc>
4678 </param>
4679 <param name="progress" type="IProgress" dir="return">
4680 <desc>Progress object to track the operation completion.</desc>
4681 </param>
4682 </method>
4683
4684 <method name="setBootOrder">
4685 <desc>
4686 Puts the given device to the specified position in
4687 the boot order.
4688
4689 To indicate that no device is associated with the given position,
4690 <link to="DeviceType_Null"/> should be used.
4691
4692 @todo setHardDiskBootOrder(), setNetworkBootOrder()
4693
4694 <result name="E_INVALIDARG">
4695 Boot @a position out of range.
4696 </result>
4697 <result name="E_NOTIMPL">
4698 Booting from USB @a device currently not supported.
4699 </result>
4700
4701 </desc>
4702 <param name="position" type="unsigned long" dir="in">
4703 <desc>
4704 Position in the boot order (@c 1 to the total number of
4705 devices the machine can boot from, as returned by
4706 <link to="ISystemProperties::maxBootPosition"/>).
4707 </desc>
4708 </param>
4709 <param name="device" type="DeviceType" dir="in">
4710 <desc>
4711 The type of the device used to boot at the given position.
4712 </desc>
4713 </param>
4714 </method>
4715
4716 <method name="getBootOrder" const="yes">
4717 <desc>
4718 Returns the device type that occupies the specified
4719 position in the boot order.
4720
4721 @todo [remove?]
4722 If the machine can have more than one device of the returned type
4723 (such as hard disks), then a separate method should be used to
4724 retrieve the individual device that occupies the given position.
4725
4726 If here are no devices at the given position, then
4727 <link to="DeviceType_Null"/> is returned.
4728
4729 @todo getHardDiskBootOrder(), getNetworkBootOrder()
4730
4731 <result name="E_INVALIDARG">
4732 Boot @a position out of range.
4733 </result>
4734
4735 </desc>
4736 <param name="position" type="unsigned long" dir="in">
4737 <desc>
4738 Position in the boot order (@c 1 to the total number of
4739 devices the machine can boot from, as returned by
4740 <link to="ISystemProperties::maxBootPosition"/>).
4741 </desc>
4742 </param>
4743 <param name="device" type="DeviceType" dir="return">
4744 <desc>
4745 Device at the given position.
4746 </desc>
4747 </param>
4748 </method>
4749
4750 <method name="attachDevice">
4751 <desc>
4752 Attaches a device and optionally mounts a medium to the given storage
4753 controller (<link to="IStorageController" />, identified by @a name),
4754 at the indicated port and device.
4755
4756 This method is intended for managing storage devices in general while a
4757 machine is powered off. It can be used to attach and detach fixed
4758 and removable media. The following kind of media can be attached
4759 to a machine:
4760
4761 <ul>
4762 <li>For fixed and removable media, you can pass in a medium that was
4763 previously opened using <link to="IVirtualBox::openMedium" />.
4764 </li>
4765
4766 <li>Only for storage devices supporting removable media (such as
4767 DVDs and floppies), you can also specify a null pointer to
4768 indicate an empty drive or one of the medium objects listed
4769 in the <link to="IHost::DVDDrives" /> and <link to="IHost::floppyDrives"/>
4770 arrays to indicate a host drive.
4771 For removable devices, you can also use <link to="IMachine::mountMedium"/>
4772 to change the media while the machine is running.
4773 </li>
4774 </ul>
4775
4776 In a VM's default configuration of virtual machines, the secondary
4777 master of the IDE controller is used for a CD/DVD drive.
4778
4779 After calling this returns successfully, a new instance of
4780 <link to="IMediumAttachment"/> will appear in the machine's list of medium
4781 attachments (see <link to="IMachine::mediumAttachments"/>).
4782
4783 See <link to="IMedium"/> and <link to="IMediumAttachment"/> for more
4784 information about attaching media.
4785
4786 The specified device slot must not have a device attached to it,
4787 or this method will fail.
4788
4789 <note>
4790 You cannot attach a device to a newly created machine until
4791 this machine's settings are saved to disk using
4792 <link to="#saveSettings"/>.
4793 </note>
4794 <note>
4795 If the medium is being attached indirectly, a new differencing medium
4796 will implicitly be created for it and attached instead. If the
4797 changes made to the machine settings (including this indirect
4798 attachment) are later cancelled using <link to="#discardSettings"/>,
4799 this implicitly created differencing medium will implicitly
4800 be deleted.
4801 </note>
4802
4803 <result name="E_INVALIDARG">
4804 SATA device, SATA port, IDE port or IDE slot out of range, or
4805 file or UUID not found.
4806 </result>
4807 <result name="VBOX_E_INVALID_OBJECT_STATE">
4808 Machine must be registered before media can be attached.
4809 </result>
4810 <result name="VBOX_E_INVALID_VM_STATE">
4811 Invalid machine state.
4812 </result>
4813 <result name="VBOX_E_OBJECT_IN_USE">
4814 A medium is already attached to this or another virtual machine.
4815 </result>
4816
4817 </desc>
4818 <param name="name" type="wstring" dir="in">
4819 <desc>Name of the storage controller to attach the device to.</desc>
4820 </param>
4821 <param name="controllerPort" type="long" dir="in">
4822 <desc>Port to attach the device to. For an IDE controller, 0 specifies
4823 the primary controller and 1 specifies the secondary controller.
4824 For a SCSI controller, this must range from 0 to 15; for a SATA controller,
4825 from 0 to 29; for an SAS controller, from 0 to 7.</desc>
4826 </param>
4827 <param name="device" type="long" dir="in">
4828 <desc>Device slot in the given port to attach the device to. This is only
4829 relevant for IDE controllers, for which 0 specifies the master device and
4830 1 specifies the slave device. For all other controller types, this must
4831 be 0.</desc>
4832 </param>
4833 <param name="type" type="DeviceType" dir="in">
4834 <desc>Device type of the attached device. For media opened by
4835 <link to="IVirtualBox::openMedium" />, this must match the device type
4836 specified there.</desc>
4837 </param>
4838 <param name="medium" type="IMedium" dir="in">
4839 <desc>Medium to mount or @c null for an empty drive.</desc>
4840 </param>
4841 </method>
4842
4843 <method name="attachDeviceWithoutMedium">
4844 <desc>
4845 Attaches a device and optionally mounts a medium to the given storage
4846 controller (<link to="IStorageController" />, identified by @a name),
4847 at the indicated port and device.
4848
4849 This method is intended for managing storage devices in general while a
4850 machine is powered off. It can be used to attach and detach fixed
4851 and removable media. The following kind of media can be attached
4852 to a machine:
4853 <ul>
4854 <li>
4855 For fixed and removable media, you can pass in a medium that was
4856 previously opened using <link to="IVirtualBox::openMedium" />.
4857 </li>
4858
4859 <li>Only for storage devices supporting removable media (such as
4860 DVDs and floppies) with an empty drive or one of the medium objects listed
4861 in the <link to="IHost::DVDDrives" /> and <link to="IHost::floppyDrives"/>
4862 arrays to indicate a host drive.
4863 For removable devices, you can also use <link to="IMachine::mountMedium"/>
4864 to change the media while the machine is running.
4865 </li>
4866 </ul>
4867
4868 In a VM's default configuration of virtual machines, the secondary
4869 master of the IDE controller is used for a CD/DVD drive.
4870 <link to="IMediumAttachment"/> will appear in the machine's list of medium
4871 attachments (see <link to="IMachine::mediumAttachments"/>).
4872
4873 See <link to="IMedium"/> and <link to="IMediumAttachment"/> for more
4874 information about attaching media.
4875
4876 The specified device slot must not have a device attached to it,
4877 or this method will fail.
4878 <note>
4879 You cannot attach a device to a newly created machine until
4880 this machine's settings are saved to disk using
4881 <link to="#saveSettings"/>.
4882 </note>
4883 <note>
4884 If the medium is being attached indirectly, a new differencing medium
4885 will implicitly be created for it and attached instead. If the
4886 changes made to the machine settings (including this indirect
4887 attachment) are later cancelled using <link to="#discardSettings"/>,
4888 this implicitly created differencing medium will implicitly
4889 be deleted.
4890 </note>
4891
4892 <result name="E_INVALIDARG">
4893 SATA device, SATA port, IDE port or IDE slot out of range, or
4894 file or UUID not found.
4895 </result>
4896 <result name="VBOX_E_INVALID_OBJECT_STATE">
4897 Machine must be registered before media can be attached.
4898 </result>
4899 <result name="VBOX_E_INVALID_VM_STATE">
4900 Invalid machine state.
4901 </result>
4902 <result name="VBOX_E_OBJECT_IN_USE">
4903 A medium is already attached to this or another virtual machine.
4904 </result>
4905 </desc>
4906 <param name="name" type="wstring" dir="in">
4907 <desc>Name of the storage controller to attach the device to.</desc>
4908 </param>
4909 <param name="controllerPort" type="long" dir="in">
4910 <desc>Port to attach the device to. For an IDE controller, 0 specifies
4911 the primary controller and 1 specifies the secondary controller.
4912 For a SCSI controller, this must range from 0 to 15; for a SATA controller,
4913 from 0 to 29; for an SAS controller, from 0 to 7.</desc>
4914 </param>
4915 <param name="device" type="long" dir="in">
4916 <desc>Device slot in the given port to attach the device to. This is only
4917 relevant for IDE controllers, for which 0 specifies the master device and
4918 1 specifies the slave device. For all other controller types, this must
4919 be 0.</desc>
4920 </param>
4921 <param name="type" type="DeviceType" dir="in">
4922 <desc>Device type of the attached device. For media opened by
4923 <link to="IVirtualBox::openMedium" />, this must match the device type
4924 specified there.</desc>
4925 </param>
4926 </method>
4927
4928 <method name="detachDevice">
4929 <desc>
4930 Detaches the device attached to a device slot of the specified bus.
4931
4932 Detaching the device from the virtual machine is deferred. This means
4933 that the medium remains associated with the machine when this method
4934 returns and gets actually de-associated only after a successful
4935 <link to="#saveSettings"/> call. See <link to="IMedium"/>
4936 for more detailed information about attaching media.
4937
4938 <note>
4939 You cannot detach a device from a running machine.
4940 </note>
4941 <note>
4942 Detaching differencing media implicitly created by <link
4943 to="#attachDevice"/> for the indirect attachment using this
4944 method will <b>not</b> implicitly delete them. The
4945 <link to="IMedium::deleteStorage"/> operation should be
4946 explicitly performed by the caller after the medium is successfully
4947 detached and the settings are saved with
4948 <link to="#saveSettings"/>, if it is the desired action.
4949 </note>
4950
4951 <result name="VBOX_E_INVALID_VM_STATE">
4952 Attempt to detach medium from a running virtual machine.
4953 </result>
4954 <result name="VBOX_E_OBJECT_NOT_FOUND">
4955 No medium attached to given slot/bus.
4956 </result>
4957 <result name="VBOX_E_NOT_SUPPORTED">
4958 Medium format does not support storage deletion (only for implicitly
4959 created differencing media, should not happen).
4960 </result>
4961
4962 </desc>
4963 <param name="name" type="wstring" dir="in">
4964 <desc>Name of the storage controller to detach the medium from.</desc>
4965 </param>
4966 <param name="controllerPort" type="long" dir="in">
4967 <desc>Port number to detach the medium from.</desc>
4968 </param>
4969 <param name="device" type="long" dir="in">
4970 <desc>Device slot number to detach the medium from.</desc>
4971 </param>
4972 </method>
4973
4974 <method name="passthroughDevice">
4975 <desc>
4976 Sets the passthrough mode of an existing DVD device. Changing the
4977 setting while the VM is running is forbidden. The setting is only used
4978 if at VM start the device is configured as a host DVD drive, in all
4979 other cases it is ignored. The device must already exist; see
4980 <link to="IMachine::attachDevice"/> for how to attach a new device.
4981
4982 The @a controllerPort and @a device parameters specify the device slot and
4983 have have the same meaning as with <link to="IMachine::attachDevice" />.
4984
4985 <result name="E_INVALIDARG">
4986 SATA device, SATA port, IDE port or IDE slot out of range.
4987 </result>
4988 <result name="VBOX_E_INVALID_OBJECT_STATE">
4989 Attempt to modify an unregistered virtual machine.
4990 </result>
4991 <result name="VBOX_E_INVALID_VM_STATE">
4992 Invalid machine state.
4993 </result>
4994
4995 </desc>
4996 <param name="name" type="wstring" dir="in">
4997 <desc>Name of the storage controller.</desc>
4998 </param>
4999 <param name="controllerPort" type="long" dir="in">
5000 <desc>Storage controller port.</desc>
5001 </param>
5002 <param name="device" type="long" dir="in">
5003 <desc>Device slot in the given port.</desc>
5004 </param>
5005 <param name="passthrough" type="boolean" dir="in">
5006 <desc>New value for the passthrough setting.</desc>
5007 </param>
5008 </method>
5009
5010 <method name="temporaryEjectDevice">
5011 <desc>
5012 Sets the behavior for guest-triggered medium eject. In some situations
5013 it is desirable that such ejects update the VM configuration, and in
5014 others the eject should keep the VM configuration. The device must
5015 already exist; see <link to="IMachine::attachDevice"/> for how to
5016 attach a new device.
5017
5018 The @a controllerPort and @a device parameters specify the device slot and
5019 have have the same meaning as with <link to="IMachine::attachDevice" />.
5020
5021 <result name="E_INVALIDARG">
5022 SATA device, SATA port, IDE port or IDE slot out of range.
5023 </result>
5024 <result name="VBOX_E_INVALID_OBJECT_STATE">
5025 Attempt to modify an unregistered virtual machine.
5026 </result>
5027 <result name="VBOX_E_INVALID_VM_STATE">
5028 Invalid machine state.
5029 </result>
5030
5031 </desc>
5032 <param name="name" type="wstring" dir="in">
5033 <desc>Name of the storage controller.</desc>
5034 </param>
5035 <param name="controllerPort" type="long" dir="in">
5036 <desc>Storage controller port.</desc>
5037 </param>
5038 <param name="device" type="long" dir="in">
5039 <desc>Device slot in the given port.</desc>
5040 </param>
5041 <param name="temporaryEject" type="boolean" dir="in">
5042 <desc>New value for the eject behavior.</desc>
5043 </param>
5044 </method>
5045
5046 <method name="nonRotationalDevice">
5047 <desc>
5048 Sets a flag in the device information which indicates that the medium
5049 is not based on rotational technology, i.e. that the access times are
5050 more or less independent of the position on the medium. This may or may
5051 not be supported by a particular drive, and is silently ignored in the
5052 latter case. At the moment only hard disks (which is a misnomer in this
5053 context) accept this setting. Changing the setting while the VM is
5054 running is forbidden. The device must already exist; see
5055 <link to="IMachine::attachDevice"/> for how to attach a new device.
5056
5057 The @a controllerPort and @a device parameters specify the device slot and
5058 have have the same meaning as with <link to="IMachine::attachDevice" />.
5059
5060 <result name="E_INVALIDARG">
5061 SATA device, SATA port, IDE port or IDE slot out of range.
5062 </result>
5063 <result name="VBOX_E_INVALID_OBJECT_STATE">
5064 Attempt to modify an unregistered virtual machine.
5065 </result>
5066 <result name="VBOX_E_INVALID_VM_STATE">
5067 Invalid machine state.
5068 </result>
5069
5070 </desc>
5071 <param name="name" type="wstring" dir="in">
5072 <desc>Name of the storage controller.</desc>
5073 </param>
5074 <param name="controllerPort" type="long" dir="in">
5075 <desc>Storage controller port.</desc>
5076 </param>
5077 <param name="device" type="long" dir="in">
5078 <desc>Device slot in the given port.</desc>
5079 </param>
5080 <param name="nonRotational" type="boolean" dir="in">
5081 <desc>New value for the non-rotational device flag.</desc>
5082 </param>
5083 </method>
5084
5085 <method name="setAutoDiscardForDevice">
5086 <desc>
5087 Sets a flag in the device information which indicates that the medium
5088 supports discarding unsused blocks (called trimming for SATA or unmap
5089 for SCSI devices) .This may or may not be supported by a particular drive,
5090 and is silently ignored in the latter case. At the moment only hard disks
5091 (which is a misnomer in this context) accept this setting. Changing the
5092 setting while the VM is running is forbidden. The device must already
5093 exist; see <link to="IMachine::attachDevice"/> for how to attach a new
5094 device.
5095
5096 The @a controllerPort and @a device parameters specify the device slot and
5097 have have the same meaning as with <link to="IMachine::attachDevice" />.
5098
5099 <result name="E_INVALIDARG">
5100 SATA device, SATA port, SCSI port out of range.
5101 </result>
5102 <result name="VBOX_E_INVALID_OBJECT_STATE">
5103 Attempt to modify an unregistered virtual machine.
5104 </result>
5105 <result name="VBOX_E_INVALID_VM_STATE">
5106 Invalid machine state.
5107 </result>
5108
5109 </desc>
5110 <param name="name" type="wstring" dir="in">
5111 <desc>Name of the storage controller.</desc>
5112 </param>
5113 <param name="controllerPort" type="long" dir="in">
5114 <desc>Storage controller port.</desc>
5115 </param>
5116 <param name="device" type="long" dir="in">
5117 <desc>Device slot in the given port.</desc>
5118 </param>
5119 <param name="discard" type="boolean" dir="in">
5120 <desc>New value for the discard device flag.</desc>
5121 </param>
5122 </method>
5123
5124 <method name="setBandwidthGroupForDevice">
5125 <desc>
5126 Sets the bandwidth group of an existing storage device.
5127 The device must already exist; see <link to="IMachine::attachDevice"/>
5128 for how to attach a new device.
5129
5130 The @a controllerPort and @a device parameters specify the device slot and
5131 have have the same meaning as with <link to="IMachine::attachDevice" />.
5132
5133 <result name="E_INVALIDARG">
5134 SATA device, SATA port, IDE port or IDE slot out of range.
5135 </result>
5136 <result name="VBOX_E_INVALID_OBJECT_STATE">
5137 Attempt to modify an unregistered virtual machine.
5138 </result>
5139 <result name="VBOX_E_INVALID_VM_STATE">
5140 Invalid machine state.
5141 </result>
5142
5143 </desc>
5144 <param name="name" type="wstring" dir="in">
5145 <desc>Name of the storage controller.</desc>
5146 </param>
5147 <param name="controllerPort" type="long" dir="in">
5148 <desc>Storage controller port.</desc>
5149 </param>
5150 <param name="device" type="long" dir="in">
5151 <desc>Device slot in the given port.</desc>
5152 </param>
5153 <param name="bandwidthGroup" type="IBandwidthGroup" dir="in">
5154 <desc>New value for the bandwidth group or @c null for no group.</desc>
5155 </param>
5156 </method>
5157
5158 <method name="setNoBandwidthGroupForDevice">
5159 <desc>
5160 Sets no bandwidth group for an existing storage device.
5161 The device must already exist; see <link to="IMachine::attachDevice"/>
5162 for how to attach a new device.
5163 The @a controllerPort and @a device parameters specify the device slot and
5164 have have the same meaning as with <link to="IMachine::attachDevice" />.
5165 <result name="E_INVALIDARG">
5166 SATA device, SATA port, IDE port or IDE slot out of range.
5167 </result>
5168 <result name="VBOX_E_INVALID_OBJECT_STATE">
5169 Attempt to modify an unregistered virtual machine.
5170 </result>
5171 <result name="VBOX_E_INVALID_VM_STATE">
5172 Invalid machine state.
5173 </result>
5174
5175 </desc>
5176 <param name="name" type="wstring" dir="in">
5177 <desc>Name of the storage controller.</desc>
5178 </param>
5179 <param name="controllerPort" type="long" dir="in">
5180 <desc>Storage controller port.</desc>
5181 </param>
5182 <param name="device" type="long" dir="in">
5183 <desc>Device slot in the given port.</desc>
5184 </param>
5185 </method>
5186
5187
5188 <method name="unmountMedium">
5189 <desc>
5190 Unmounts any currently mounted medium (<link to="IMedium" />,
5191 identified by the given UUID @a id) to the given storage controller
5192 (<link to="IStorageController" />, identified by @a name),
5193 at the indicated port and device. The device must already exist;
5194
5195 This method is intended only for managing removable media, where the
5196 device is fixed but media is changeable at runtime (such as DVDs
5197 and floppies). It cannot be used for fixed media such as hard disks.
5198
5199 The @a controllerPort and @a device parameters specify the device slot
5200 and have have the same meaning as with
5201 <link to="IMachine::attachDevice" />.
5202
5203 The specified device slot must have a medium mounted, which will be
5204 unmounted. If there is no mounted medium it will do nothing.
5205 See <link to="IMedium"/> for more detailed information about
5206 attaching/unmounting media.
5207
5208 <result name="E_INVALIDARG">
5209 SATA device, SATA port, IDE port or IDE slot out of range.
5210 </result>
5211 <result name="VBOX_E_INVALID_OBJECT_STATE">
5212 Attempt to unmount medium that is not removeable - not dvd or floppy.
5213 </result>
5214 <result name="VBOX_E_INVALID_VM_STATE">
5215 Invalid machine state.
5216 </result>
5217 <result name="VBOX_E_OBJECT_IN_USE">
5218 Medium already attached to this or another virtual machine.
5219 </result>
5220 <result name="VBOX_E_OBJECT_NOT_FOUND">
5221 Medium not attached to specified port, device, controller.
5222 </result>
5223
5224 </desc>
5225 <param name="name" type="wstring" dir="in">
5226 <desc>Name of the storage controller to unmount the medium from.</desc>
5227 </param>
5228 <param name="controllerPort" type="long" dir="in">
5229 <desc>Port to unmount the medium from.</desc>
5230 </param>
5231 <param name="device" type="long" dir="in">
5232 <desc>Device slot in the given port to unmount the medium from.</desc>
5233 </param>
5234 <param name="force" type="boolean" dir="in">
5235 <desc>Allows to force unmount of a medium which is locked by
5236 the device slot in the given port medium is attached to.</desc>
5237 </param>
5238 </method>
5239
5240 <method name="mountMedium">
5241 <desc>
5242 Mounts a medium (<link to="IMedium" />, identified
5243 by the given UUID @a id) to the given storage controller
5244 (<link to="IStorageController" />, identified by @a name),
5245 at the indicated port and device. The device must already exist;
5246 see <link to="IMachine::attachDevice"/> for how to attach a new device.
5247
5248 This method is intended only for managing removable media, where the
5249 device is fixed but media is changeable at runtime (such as DVDs
5250 and floppies). It cannot be used for fixed media such as hard disks.
5251
5252 The @a controllerPort and @a device parameters specify the device slot and
5253 have have the same meaning as with <link to="IMachine::attachDevice" />.
5254
5255 The specified device slot can have a medium mounted, which will be
5256 unmounted first. Specifying a zero UUID (or an empty string) for
5257 @a medium does just an unmount.
5258
5259 See <link to="IMedium"/> for more detailed information about
5260 attaching media.
5261
5262 <result name="E_INVALIDARG">
5263 SATA device, SATA port, IDE port or IDE slot out of range.
5264 </result>
5265 <result name="VBOX_E_INVALID_OBJECT_STATE">
5266 Attempt to attach medium to an unregistered virtual machine.
5267 </result>
5268 <result name="VBOX_E_INVALID_VM_STATE">
5269 Invalid machine state.
5270 </result>
5271 <result name="VBOX_E_OBJECT_IN_USE">
5272 Medium already attached to this or another virtual machine.
5273 </result>
5274
5275 </desc>
5276 <param name="name" type="wstring" dir="in">
5277 <desc>Name of the storage controller to attach the medium to.</desc>
5278 </param>
5279 <param name="controllerPort" type="long" dir="in">
5280 <desc>Port to attach the medium to.</desc>
5281 </param>
5282 <param name="device" type="long" dir="in">
5283 <desc>Device slot in the given port to attach the medium to.</desc>
5284 </param>
5285 <param name="medium" type="IMedium" dir="in">
5286 <desc>Medium to mount or @c null for an empty drive.</desc>
5287 </param>
5288 <param name="force" type="boolean" dir="in">
5289 <desc>Allows to force unmount/mount of a medium which is locked by
5290 the device slot in the given port to attach the medium to.</desc>
5291 </param>
5292 </method>
5293
5294 <method name="getMedium" const="yes">
5295 <desc>
5296 Returns the virtual medium attached to a device slot of the specified
5297 bus.
5298
5299 Note that if the medium was indirectly attached by
5300 <link to="#mountMedium"/> to the given device slot then this
5301 method will return not the same object as passed to the
5302 <link to="#mountMedium"/> call. See <link to="IMedium"/> for
5303 more detailed information about mounting a medium.
5304
5305 <result name="VBOX_E_OBJECT_NOT_FOUND">
5306 No medium attached to given slot/bus.
5307 </result>
5308
5309 </desc>
5310 <param name="name" type="wstring" dir="in">
5311 <desc>Name of the storage controller the medium is attached to.</desc>
5312 </param>
5313 <param name="controllerPort" type="long" dir="in">
5314 <desc>Port to query.</desc>
5315 </param>
5316 <param name="device" type="long" dir="in">
5317 <desc>Device slot in the given port to query.</desc>
5318 </param>
5319 <param name="medium" type="IMedium" dir="return">
5320 <desc>Attached medium object.</desc>
5321 </param>
5322 </method>
5323
5324 <method name="getMediumAttachmentsOfController" const="yes">
5325 <desc>
5326 Returns an array of medium attachments which are attached to the
5327 the controller with the given name.
5328
5329 <result name="VBOX_E_OBJECT_NOT_FOUND">
5330 A storage controller with given name doesn't exist.
5331 </result>
5332 </desc>
5333 <param name="name" type="wstring" dir="in"/>
5334 <param name="mediumAttachments" type="IMediumAttachment" safearray="yes" dir="return"/>
5335 </method>
5336
5337 <method name="getMediumAttachment" const="yes">
5338 <desc>
5339 Returns a medium attachment which corresponds to the controller with
5340 the given name, on the given port and device slot.
5341
5342 <result name="VBOX_E_OBJECT_NOT_FOUND">
5343 No attachment exists for the given controller/port/device combination.
5344 </result>
5345 </desc>
5346 <param name="name" type="wstring" dir="in"/>
5347 <param name="controllerPort" type="long" dir="in"/>
5348 <param name="device" type="long" dir="in"/>
5349 <param name="attachment" type="IMediumAttachment" dir="return"/>
5350 </method>
5351
5352 <method name="attachHostPCIDevice">
5353 <desc>
5354 Attaches host PCI device with the given (host) PCI address to the
5355 PCI bus of the virtual machine. Please note, that this operation
5356 is two phase, as real attachment will happen when VM will start,
5357 and most information will be delivered as IHostPCIDevicePlugEvent
5358 on IVirtualBox event source.
5359
5360 <see><link to="IHostPCIDevicePlugEvent"/></see>
5361
5362 <result name="VBOX_E_INVALID_VM_STATE">
5363 Virtual machine state is not stopped (PCI hotplug not yet implemented).
5364 </result>
5365 <result name="VBOX_E_PDM_ERROR">
5366 Virtual machine does not have a PCI controller allowing attachment of physical devices.
5367 </result>
5368 <result name="VBOX_E_NOT_SUPPORTED">
5369 Hardware or host OS doesn't allow PCI device passthrought.
5370 </result>
5371 </desc>
5372 <param name="hostAddress" type="long" dir="in">
5373 <desc>Address of the host PCI device.</desc>
5374 </param>
5375 <param name="desiredGuestAddress" type="long" dir="in">
5376 <desc>Desired position of this device on guest PCI bus.</desc>
5377 </param>
5378 <param name="tryToUnbind" type="boolean" dir="in">
5379 <desc>If VMM shall try to unbind existing drivers from the
5380 device before attaching it to the guest.</desc>
5381 </param>
5382 </method>
5383
5384 <method name="detachHostPCIDevice">
5385 <desc>
5386 Detach host PCI device from the virtual machine.
5387 Also HostPCIDevicePlugEvent on IVirtualBox event source
5388 will be delivered. As currently we don't support hot device
5389 unplug, IHostPCIDevicePlugEvent event is delivered immediately.
5390
5391 <see><link to="IHostPCIDevicePlugEvent"/></see>
5392
5393 <result name="VBOX_E_INVALID_VM_STATE">
5394 Virtual machine state is not stopped (PCI hotplug not yet implemented).
5395 </result>
5396 <result name="VBOX_E_OBJECT_NOT_FOUND">
5397 This host device is not attached to this machine.
5398 </result>
5399 <result name="VBOX_E_PDM_ERROR">
5400 Virtual machine does not have a PCI controller allowing attachment of physical devices.
5401 </result>
5402 <result name="VBOX_E_NOT_SUPPORTED">
5403 Hardware or host OS doesn't allow PCI device passthrought.
5404 </result>
5405 </desc>
5406 <param name="hostAddress" type="long" dir="in">
5407 <desc>Address of the host PCI device.</desc>
5408 </param>
5409 </method>
5410
5411 <method name="getNetworkAdapter" const="yes">
5412 <desc>
5413 Returns the network adapter associated with the given slot.
5414 Slots are numbered sequentially, starting with zero. The total
5415 number of adapters per machine is defined by the
5416 <link to="ISystemProperties::getMaxNetworkAdapters"/> property,
5417 so the maximum slot number is one less than that property's value.
5418
5419 <result name="E_INVALIDARG">
5420 Invalid @a slot number.
5421 </result>
5422
5423 </desc>
5424 <param name="slot" type="unsigned long" dir="in"/>
5425 <param name="adapter" type="INetworkAdapter" dir="return"/>
5426 </method>
5427
5428 <method name="addStorageController">
5429 <desc>
5430 Adds a new storage controller (SCSI, SAS or SATA controller) to the
5431 machine and returns it as an instance of
5432 <link to="IStorageController" />.
5433
5434 @a name identifies the controller for subsequent calls such as
5435 <link to="#getStorageControllerByName" />,
5436 <link to="#getStorageControllerByInstance" />,
5437 <link to="#removeStorageController" />,
5438 <link to="#attachDevice" /> or <link to="#mountMedium" />.
5439
5440 After the controller has been added, you can set its exact
5441 type by setting the <link to="IStorageController::controllerType" />.
5442
5443 <result name="VBOX_E_OBJECT_IN_USE">
5444 A storage controller with given name exists already.
5445 </result>
5446 <result name="E_INVALIDARG">
5447 Invalid @a controllerType.
5448 </result>
5449 </desc>
5450 <param name="name" type="wstring" dir="in"/>
5451 <param name="connectionType" type="StorageBus" dir="in"/>
5452 <param name="controller" type="IStorageController" dir="return"/>
5453 </method>
5454
5455 <method name="getStorageControllerByName" const="yes">
5456 <desc>
5457 Returns a storage controller with the given name.
5458
5459 <result name="VBOX_E_OBJECT_NOT_FOUND">
5460 A storage controller with given name doesn't exist.
5461 </result>
5462 </desc>
5463 <param name="name" type="wstring" dir="in"/>
5464 <param name="storageController" type="IStorageController" dir="return"/>
5465 </method>
5466
5467 <method name="getStorageControllerByInstance" const="yes">
5468 <desc>
5469 Returns a storage controller with the given instance number.
5470
5471 <result name="VBOX_E_OBJECT_NOT_FOUND">
5472 A storage controller with given instance number doesn't exist.
5473 </result>
5474 </desc>
5475 <param name="instance" type="unsigned long" dir="in"/>
5476 <param name="storageController" type="IStorageController" dir="return"/>
5477 </method>
5478
5479 <method name="removeStorageController">
5480 <desc>
5481 Removes a storage controller from the machine with all devices attached to it.
5482
5483 <result name="VBOX_E_OBJECT_NOT_FOUND">
5484 A storage controller with given name doesn't exist.
5485 </result>
5486 <result name="VBOX_E_NOT_SUPPORTED">
5487 Medium format does not support storage deletion (only for implicitly
5488 created differencing media, should not happen).
5489 </result>
5490 </desc>
5491 <param name="name" type="wstring" dir="in"/>
5492 </method>
5493
5494 <method name="setStorageControllerBootable">
5495 <desc>
5496 Sets the bootable flag of the storage controller with the given name.
5497
5498 <result name="VBOX_E_OBJECT_NOT_FOUND">
5499 A storage controller with given name doesn't exist.
5500 </result>
5501 <result name="VBOX_E_OBJECT_IN_USE">
5502 Another storage controller is marked as bootable already.
5503 </result>
5504 </desc>
5505 <param name="name" type="wstring" dir="in"/>
5506 <param name="bootable" type="boolean" dir="in"/>
5507 </method>
5508
5509 <method name="getSerialPort" const="yes">
5510 <desc>
5511 Returns the serial port associated with the given slot.
5512 Slots are numbered sequentially, starting with zero. The total
5513 number of serial ports per machine is defined by the
5514 <link to="ISystemProperties::serialPortCount"/> property,
5515 so the maximum slot number is one less than that property's value.
5516
5517 <result name="E_INVALIDARG">
5518 Invalid @a slot number.
5519 </result>
5520
5521 </desc>
5522 <param name="slot" type="unsigned long" dir="in"/>
5523 <param name="port" type="ISerialPort" dir="return"/>
5524 </method>
5525
5526 <method name="getParallelPort" const="yes">
5527 <desc>
5528 Returns the parallel port associated with the given slot.
5529 Slots are numbered sequentially, starting with zero. The total
5530 number of parallel ports per machine is defined by the
5531 <link to="ISystemProperties::parallelPortCount"/> property,
5532 so the maximum slot number is one less than that property's value.
5533
5534 <result name="E_INVALIDARG">
5535 Invalid @a slot number.
5536 </result>
5537
5538 </desc>
5539 <param name="slot" type="unsigned long" dir="in"/>
5540 <param name="port" type="IParallelPort" dir="return"/>
5541 </method>
5542
5543 <method name="getExtraDataKeys">
5544 <desc>
5545 Returns an array representing the machine-specific extra data keys
5546 which currently have values defined.
5547 </desc>
5548 <param name="value" type="wstring" dir="return" safearray="yes">
5549 <desc>Array of extra data keys.</desc>
5550 </param>
5551 </method>
5552
5553 <method name="getExtraData">
5554 <desc>
5555 Returns associated machine-specific extra data.
5556
5557 If the requested data @a key does not exist, this function will
5558 succeed and return an empty string in the @a value argument.
5559
5560 <result name="VBOX_E_FILE_ERROR">
5561 Settings file not accessible.
5562 </result>
5563 <result name="VBOX_E_XML_ERROR">
5564 Could not parse the settings file.
5565 </result>
5566
5567 </desc>
5568 <param name="key" type="wstring" dir="in">
5569 <desc>Name of the data key to get.</desc>
5570 </param>
5571 <param name="value" type="wstring" dir="return">
5572 <desc>Value of the requested data key.</desc>
5573 </param>
5574 </method>
5575
5576 <method name="setExtraData">
5577 <desc>
5578 Sets associated machine-specific extra data.
5579
5580 If you pass @c null or an empty string as a key @a value, the given
5581 @a key will be deleted.
5582
5583 <note>
5584 Before performing the actual data change, this method will ask all
5585 registered listeners using the
5586 <link to="IExtraDataCanChangeEvent"/>
5587 notification for a permission. If one of the listeners refuses the
5588 new value, the change will not be performed.
5589 </note>
5590 <note>
5591 On success, the
5592 <link to="IExtraDataChangedEvent"/> notification
5593 is called to inform all registered listeners about a successful data
5594 change.
5595 </note>
5596 <note>
5597 This method can be called outside the machine session and therefore
5598 it's a caller's responsibility to handle possible race conditions
5599 when several clients change the same key at the same time.
5600 </note>
5601
5602 <result name="VBOX_E_FILE_ERROR">
5603 Settings file not accessible.
5604 </result>
5605 <result name="VBOX_E_XML_ERROR">
5606 Could not parse the settings file.
5607 </result>
5608
5609 </desc>
5610 <param name="key" type="wstring" dir="in">
5611 <desc>Name of the data key to set.</desc>
5612 </param>
5613 <param name="value" type="wstring" dir="in">
5614 <desc>Value to assign to the key.</desc>
5615 </param>
5616 </method>
5617
5618 <method name="getCPUProperty" const="yes">
5619 <desc>
5620 Returns the virtual CPU boolean value of the specified property.
5621
5622 <result name="E_INVALIDARG">
5623 Invalid property.
5624 </result>
5625
5626 </desc>
5627 <param name="property" type="CPUPropertyType" dir="in">
5628 <desc>
5629 Property type to query.
5630 </desc>
5631 </param>
5632 <param name="value" type="boolean" dir="return">
5633 <desc>
5634 Property value.
5635 </desc>
5636 </param>
5637 </method>
5638
5639 <method name="setCPUProperty">
5640 <desc>
5641 Sets the virtual CPU boolean value of the specified property.
5642
5643 <result name="E_INVALIDARG">
5644 Invalid property.
5645 </result>
5646
5647 </desc>
5648 <param name="property" type="CPUPropertyType" dir="in">
5649 <desc>
5650 Property type to query.
5651 </desc>
5652 </param>
5653 <param name="value" type="boolean" dir="in">
5654 <desc>
5655 Property value.
5656 </desc>
5657 </param>
5658 </method>
5659
5660 <method name="getCPUIDLeaf" const="yes">
5661 <desc>
5662 Returns the virtual CPU cpuid information for the specified leaf.
5663
5664 Currently supported index values for cpuid:
5665 Standard CPUID leafs: 0 - 0xA
5666 Extended CPUID leafs: 0x80000000 - 0x8000000A
5667
5668 See the Intel and AMD programmer's manuals for detailed information
5669 about the cpuid instruction and its leafs.
5670 <result name="E_INVALIDARG">
5671 Invalid id.
5672 </result>
5673
5674 </desc>
5675 <param name="id" type="unsigned long" dir="in">
5676 <desc>
5677 CPUID leaf index.
5678 </desc>
5679 </param>
5680 <param name="valEax" type="unsigned long" dir="out">
5681 <desc>
5682 CPUID leaf value for register eax.
5683 </desc>
5684 </param>
5685 <param name="valEbx" type="unsigned long" dir="out">
5686 <desc>
5687 CPUID leaf value for register ebx.
5688 </desc>
5689 </param>
5690 <param name="valEcx" type="unsigned long" dir="out">
5691 <desc>
5692 CPUID leaf value for register ecx.
5693 </desc>
5694 </param>
5695 <param name="valEdx" type="unsigned long" dir="out">
5696 <desc>
5697 CPUID leaf value for register edx.
5698 </desc>
5699 </param>
5700 </method>
5701
5702 <method name="setCPUIDLeaf">
5703 <desc>
5704 Sets the virtual CPU cpuid information for the specified leaf. Note that these values
5705 are not passed unmodified. VirtualBox clears features that it doesn't support.
5706
5707 Currently supported index values for cpuid:
5708 Standard CPUID leafs: 0 - 0xA
5709 Extended CPUID leafs: 0x80000000 - 0x8000000A
5710
5711 See the Intel and AMD programmer's manuals for detailed information
5712 about the cpuid instruction and its leafs.
5713
5714 Do not use this method unless you know exactly what you're doing. Misuse can lead to
5715 random crashes inside VMs.
5716 <result name="E_INVALIDARG">
5717 Invalid id.
5718 </result>
5719
5720 </desc>
5721 <param name="id" type="unsigned long" dir="in">
5722 <desc>
5723 CPUID leaf index.
5724 </desc>
5725 </param>
5726 <param name="valEax" type="unsigned long" dir="in">
5727 <desc>
5728 CPUID leaf value for register eax.
5729 </desc>
5730 </param>
5731 <param name="valEbx" type="unsigned long" dir="in">
5732 <desc>
5733 CPUID leaf value for register ebx.
5734 </desc>
5735 </param>
5736 <param name="valEcx" type="unsigned long" dir="in">
5737 <desc>
5738 CPUID leaf value for register ecx.
5739 </desc>
5740 </param>
5741 <param name="valEdx" type="unsigned long" dir="in">
5742 <desc>
5743 CPUID leaf value for register edx.
5744 </desc>
5745 </param>
5746 </method>
5747
5748 <method name="removeCPUIDLeaf">
5749 <desc>
5750 Removes the virtual CPU cpuid leaf for the specified index
5751
5752 <result name="E_INVALIDARG">
5753 Invalid id.
5754 </result>
5755
5756 </desc>
5757 <param name="id" type="unsigned long" dir="in">
5758 <desc>
5759 CPUID leaf index.
5760 </desc>
5761 </param>
5762 </method>
5763
5764 <method name="removeAllCPUIDLeaves">
5765 <desc>
5766 Removes all the virtual CPU cpuid leaves
5767 </desc>
5768 </method>
5769
5770 <method name="getHWVirtExProperty" const="yes">
5771 <desc>
5772 Returns the value of the specified hardware virtualization boolean property.
5773
5774 <result name="E_INVALIDARG">
5775 Invalid property.
5776 </result>
5777
5778 </desc>
5779 <param name="property" type="HWVirtExPropertyType" dir="in">
5780 <desc>
5781 Property type to query.
5782 </desc>
5783 </param>
5784 <param name="value" type="boolean" dir="return">
5785 <desc>
5786 Property value.
5787 </desc>
5788 </param>
5789 </method>
5790
5791 <method name="setHWVirtExProperty">
5792 <desc>
5793 Sets a new value for the specified hardware virtualization boolean property.
5794
5795 <result name="E_INVALIDARG">
5796 Invalid property.
5797 </result>
5798
5799 </desc>
5800 <param name="property" type="HWVirtExPropertyType" dir="in">
5801 <desc>
5802 Property type to set.
5803 </desc>
5804 </param>
5805 <param name="value" type="boolean" dir="in">
5806 <desc>
5807 New property value.
5808 </desc>
5809 </param>
5810 </method>
5811
5812 <method name="saveSettings">
5813 <desc>
5814 Saves any changes to machine settings made since the session
5815 has been opened or a new machine has been created, or since the
5816 last call to <link to="#saveSettings"/> or <link to="#discardSettings"/>.
5817 For registered machines, new settings become visible to all
5818 other VirtualBox clients after successful invocation of this
5819 method.
5820 <note>
5821 The method sends <link to="IMachineDataChangedEvent"/>
5822 notification event after the configuration has been successfully
5823 saved (only for registered machines).
5824 </note>
5825 <note>
5826 Calling this method is only valid on instances returned
5827 by <link to="ISession::machine"/> and on new machines
5828 created by <link to="IVirtualBox::createMachine"/> but not
5829 yet registered, or on unregistered machines after calling
5830 <link to="IMachine::unregister"/>.
5831 </note>
5832
5833 <result name="VBOX_E_FILE_ERROR">
5834 Settings file not accessible.
5835 </result>
5836 <result name="VBOX_E_XML_ERROR">
5837 Could not parse the settings file.
5838 </result>
5839 <result name="E_ACCESSDENIED">
5840 Modification request refused.
5841 </result>
5842
5843 </desc>
5844 </method>
5845
5846 <method name="discardSettings">
5847 <desc>
5848 Discards any changes to the machine settings made since the session
5849 has been opened or since the last call to <link to="#saveSettings"/>
5850 or <link to="#discardSettings"/>.
5851 <note>
5852 Calling this method is only valid on instances returned
5853 by <link to="ISession::machine"/> and on new machines
5854 created by <link to="IVirtualBox::createMachine"/> or
5855 opened by <link to="IVirtualBox::openMachine"/> but not
5856 yet registered, or on unregistered machines after calling
5857 <link to="IMachine::unregister"/>.
5858 </note>
5859
5860 <result name="VBOX_E_INVALID_VM_STATE">
5861 Virtual machine is not mutable.
5862 </result>
5863
5864 </desc>
5865 </method>
5866
5867 <method name="unregister">
5868 <desc>
5869 Unregisters a machine previously registered with
5870 <link to="IVirtualBox::registerMachine"/> and optionally do additional
5871 cleanup before the machine is unregistered.
5872
5873 This method does not delete any files. It only changes the machine configuration and
5874 the list of registered machines in the VirtualBox object. To delete the files which
5875 belonged to the machine, including the XML file of the machine itself, call
5876 <link to="#delete"/>, optionally with the array of IMedium objects which was returned
5877 from this method.
5878
5879 How thoroughly this method cleans up the machine configuration before unregistering
5880 the machine depends on the @a cleanupMode argument.
5881
5882 <ul>
5883 <li>With "UnregisterOnly", the machine will only be unregistered, but no additional
5884 cleanup will be performed. The call will fail if the machine is in "Saved" state
5885 or has any snapshots or any media attached (see <link to="IMediumAttachment" />).
5886 It is the responsibility of the caller to delete all such configuration in this mode.
5887 In this mode, the API behaves like the former @c IVirtualBox::unregisterMachine() API
5888 which it replaces.</li>
5889 <li>With "DetachAllReturnNone", the call will succeed even if the machine is in "Saved"
5890 state or if it has snapshots or media attached. All media attached to the current machine
5891 state or in snapshots will be detached. No medium objects will be returned;
5892 all of the machine's media will remain open.</li>
5893 <li>With "DetachAllReturnHardDisksOnly", the call will behave like with "DetachAllReturnNone",
5894 except that all the hard disk medium objects which were detached from the machine will
5895 be returned as an array. This allows for quickly passing them to the <link to="#delete" />
5896 API for closing and deletion.</li>
5897 <li>With "Full", the call will behave like with "DetachAllReturnHardDisksOnly", except
5898 that all media will be returned in the array, including removable media like DVDs and
5899 floppies. This might be useful if the user wants to inspect in detail which media were
5900 attached to the machine. Be careful when passing the media array to <link to="#delete" />
5901 in that case because users will typically want to preserve ISO and RAW image files.</li>
5902 </ul>
5903
5904 A typical implementation will use "DetachAllReturnHardDisksOnly" and then pass the
5905 resulting IMedium array to <link to="#delete"/>. This way, the machine is completely
5906 deleted with all its saved states and hard disk images, but images for removable
5907 drives (such as ISO and RAW files) will remain on disk.
5908
5909 This API does not verify whether the media files returned in the array are still
5910 attached to other machines (i.e. shared between several machines). If such a shared
5911 image is passed to <link to="#delete" /> however, closing the image will fail there
5912 and the image will be silently skipped.
5913
5914 This API may, however, move media from this machine's media registry to other media
5915 registries (see <link to="IMedium" /> for details on media registries). For machines
5916 created with VirtualBox 4.0 or later, if media from this machine's media registry
5917 are also attached to another machine (shared attachments), each such medium will be
5918 moved to another machine's registry. This is because without this machine's media
5919 registry, the other machine cannot find its media any more and would become inaccessible.
5920
5921 This API implicitly calls <link to="#saveSettings"/> to save all current machine settings
5922 before unregistering it. It may also silently call <link to="#saveSettings"/> on other machines
5923 if media are moved to other machines' media registries.
5924
5925 After successful method invocation, the <link to="IMachineRegisteredEvent"/> event
5926 is fired.
5927
5928 The call will fail if the machine is currently locked (see <link to="ISession" />).
5929
5930 <note>
5931 If the given machine is inaccessible (see <link to="#accessible"/>), it
5932 will be unregistered and fully uninitialized right afterwards. As a result,
5933 the returned machine object will be unusable and an attempt to call
5934 <b>any</b> method will return the "Object not ready" error.
5935 </note>
5936
5937 <result name="VBOX_E_INVALID_OBJECT_STATE">
5938 Machine is currently locked for a session.
5939 </result>
5940 </desc>
5941
5942 <param name="cleanupMode" type="CleanupMode" dir="in">
5943 <desc>How to clean up after the machine has been unregistered.</desc>
5944 </param>
5945 <param name="aMedia" type="IMedium" safearray="yes" dir="return">
5946 <desc>List of media detached from the machine, depending on the @a cleanupMode parameter.</desc>
5947 </param>
5948 </method>
5949
5950 <method name="delete">
5951 <desc>
5952 Deletes the files associated with this machine from disk. If medium objects are passed
5953 in with the @a aMedia argument, they are closed and, if closing was successful, their
5954 storage files are deleted as well. For convenience, this array of media files can be
5955 the same as the one returned from a previous <link to="#unregister" /> call.
5956
5957 This method must only be called on machines which are either write-locked (i.e. on instances
5958 returned by <link to="ISession::machine"/>) or on unregistered machines (i.e. not yet
5959 registered machines created by <link to="IVirtualBox::createMachine"/> or opened by
5960 <link to="IVirtualBox::openMachine"/>, or after having called <link to="#unregister"/>).
5961
5962 The following files will be deleted by this method:
5963 <ul>
5964 <li>If <link to="#unregister" /> had been previously called with a @a cleanupMode
5965 argument other than "UnregisterOnly", this will delete all saved state files that
5966 the machine had in use; possibly one if the machine was in "Saved" state and one
5967 for each online snapshot that the machine had.</li>
5968 <li>On each medium object passed in the @a aMedia array, this will call
5969 <link to="IMedium::close" />. If that succeeds, this will attempt to delete the
5970 medium's storage on disk. Since the <link to="IMedium::close"/> call will fail if the medium is still
5971 in use, e.g. because it is still attached to a second machine; in that case the
5972 storage will not be deleted.</li>
5973 <li>Finally, the machine's own XML file will be deleted.</li>
5974 </ul>
5975
5976 Since deleting large disk image files can be a time-consuming I/O operation, this
5977 method operates asynchronously and returns an IProgress object to allow the caller
5978 to monitor the progress. There will be one sub-operation for each file that is
5979 being deleted (saved state or medium storage file).
5980
5981 <note>
5982 <link to="#settingsModified"/> will return @c true after this
5983 method successfully returns.
5984 </note>
5985
5986 <result name="VBOX_E_INVALID_VM_STATE">
5987 Machine is registered but not write-locked.
5988 </result>
5989 <result name="VBOX_E_IPRT_ERROR">
5990 Could not delete the settings file.
5991 </result>
5992 </desc>
5993 <param name="aMedia" type="IMedium" safearray="yes" dir="in">
5994 <desc>List of media to be closed and whose storage files will be deleted.</desc>
5995 </param>
5996 <param name="aProgress" type="IProgress" dir="return">
5997 <desc>Progress object to track the operation completion.</desc>
5998 </param>
5999 </method>
6000
6001 <method name="export">
6002 <desc>Exports the machine to an OVF appliance. See <link to="IAppliance" /> for the
6003 steps required to export VirtualBox machines to OVF.
6004 </desc>
6005
6006 <param name="aAppliance" type="IAppliance" dir="in">
6007 <desc>Appliance to export this machine to.</desc>
6008 </param>
6009 <param name="location" type="wstring" dir="in">
6010 <desc>The target location.</desc>
6011 </param>
6012 <param name="aDescription" type="IVirtualSystemDescription" dir="return">
6013 <desc>VirtualSystemDescription object which is created for this machine.</desc>
6014 </param>
6015 </method >
6016
6017 <method name="findSnapshot">
6018 <desc>
6019 Returns a snapshot of this machine with the given name or UUID.
6020
6021 Returns a snapshot of this machine with the given UUID.
6022 A @c null argument can be used to obtain the first snapshot
6023 taken on this machine. To traverse the whole tree of snapshots
6024 starting from the root, inspect the root snapshot's
6025 <link to="ISnapshot::children" /> attribute and recurse over those children.
6026
6027 <result name="VBOX_E_OBJECT_NOT_FOUND">
6028 Virtual machine has no snapshots or snapshot not found.
6029 </result>
6030
6031 </desc>
6032 <param name="nameOrId" type="wstring" dir="in">
6033 <desc>What to search for. Name or UUID of the snapshot to find</desc>
6034 </param>
6035 <param name="snapshot" type="ISnapshot" dir="return">
6036 <desc>Snapshot object with the given name.</desc>
6037 </param>
6038 </method>
6039
6040 <method name="createSharedFolder">
6041 <desc>
6042 Creates a new permanent shared folder by associating the given logical
6043 name with the given host path, adds it to the collection of shared
6044 folders and starts sharing it. Refer to the description of
6045 <link to="ISharedFolder"/> to read more about logical names.
6046
6047 <result name="VBOX_E_OBJECT_IN_USE">
6048 Shared folder already exists.
6049 </result>
6050 <result name="VBOX_E_FILE_ERROR">
6051 Shared folder @a hostPath not accessible.
6052 </result>
6053
6054 </desc>
6055 <param name="name" type="wstring" dir="in">
6056 <desc>Unique logical name of the shared folder.</desc>
6057 </param>
6058 <param name="hostPath" type="wstring" dir="in">
6059 <desc>Full path to the shared folder in the host file system.</desc>
6060 </param>
6061 <param name="writable" type="boolean" dir="in">
6062 <desc>Whether the share is writable or readonly.</desc>
6063 </param>
6064 <param name="automount" type="boolean" dir="in">
6065 <desc>Whether the share gets automatically mounted by the guest
6066 or not.</desc>
6067 </param>
6068 </method>
6069
6070 <method name="removeSharedFolder">
6071 <desc>
6072 Removes the permanent shared folder with the given name previously
6073 created by <link to="#createSharedFolder"/> from the collection of
6074 shared folders and stops sharing it.
6075
6076 <result name="VBOX_E_INVALID_VM_STATE">
6077 Virtual machine is not mutable.
6078 </result>
6079 <result name="VBOX_E_OBJECT_NOT_FOUND">
6080 Shared folder @a name does not exist.
6081 </result>
6082
6083 </desc>
6084 <param name="name" type="wstring" dir="in">
6085 <desc>Logical name of the shared folder to remove.</desc>
6086 </param>
6087 </method>
6088
6089 <method name="canShowConsoleWindow">
6090 <desc>
6091 Returns @c true if the VM console process can activate the
6092 console window and bring it to foreground on the desktop of
6093 the host PC.
6094 <note>
6095 This method will fail if a session for this machine is not
6096 currently open.
6097 </note>
6098
6099 <result name="VBOX_E_INVALID_VM_STATE">
6100 Machine session is not open.
6101 </result>
6102
6103 </desc>
6104 <param name="canShow" type="boolean" dir="return">
6105 <desc>
6106 @c true if the console window can be shown and @c false otherwise.
6107 </desc>
6108 </param>
6109 </method>
6110
6111 <method name="showConsoleWindow">
6112 <desc>
6113 Activates the console window and brings it to foreground on
6114 the desktop of the host PC. Many modern window managers on
6115 many platforms implement some sort of focus stealing
6116 prevention logic, so that it may be impossible to activate
6117 a window without the help of the currently active
6118 application. In this case, this method will return a non-zero
6119 identifier that represents the top-level window of the VM
6120 console process. The caller, if it represents a currently
6121 active process, is responsible to use this identifier (in a
6122 platform-dependent manner) to perform actual window
6123 activation.
6124 <note>
6125 This method will fail if a session for this machine is not
6126 currently open.
6127 </note>
6128
6129 <result name="VBOX_E_INVALID_VM_STATE">
6130 Machine session is not open.
6131 </result>
6132
6133 </desc>
6134 <param name="winId" type="long long" dir="return">
6135 <desc>
6136 Platform-dependent identifier of the top-level VM console
6137 window, or zero if this method has performed all actions
6138 necessary to implement the <i>show window</i> semantics for
6139 the given platform and/or VirtualBox front-end.
6140 </desc>
6141 </param>
6142 </method>
6143
6144 <method name="getGuestProperty" const="yes">
6145 <desc>
6146 Reads an entry from the machine's guest property store.
6147
6148 <result name="VBOX_E_INVALID_VM_STATE">
6149 Machine session is not open.
6150 </result>
6151
6152 </desc>
6153 <param name="name" type="wstring" dir="in">
6154 <desc>
6155 The name of the property to read.
6156 </desc>
6157 </param>
6158 <param name="value" type="wstring" dir="out">
6159 <desc>
6160 The value of the property. If the property does not exist then this
6161 will be empty.
6162 </desc>
6163 </param>
6164 <param name="timestamp" type="long long" dir="out">
6165 <desc>
6166 The time at which the property was last modified, as seen by the
6167 server process.
6168 </desc>
6169 </param>
6170 <param name="flags" type="wstring" dir="out">
6171 <desc>
6172 Additional property parameters, passed as a comma-separated list of
6173 "name=value" type entries.
6174 </desc>
6175 </param>
6176 </method>
6177
6178 <method name="getGuestPropertyValue" const="yes">
6179 <desc>
6180 Reads a value from the machine's guest property store.
6181
6182 <result name="VBOX_E_INVALID_VM_STATE">
6183 Machine session is not open.
6184 </result>
6185
6186 </desc>
6187 <param name="property" type="wstring" dir="in">
6188 <desc>
6189 The name of the property to read.
6190 </desc>
6191 </param>
6192 <param name="value" type="wstring" dir="return">
6193 <desc>
6194 The value of the property. If the property does not exist then this
6195 will be empty.
6196 </desc>
6197 </param>
6198 </method>
6199
6200 <method name="getGuestPropertyTimestamp" const="yes">
6201 <desc>
6202 Reads a property timestamp from the machine's guest property store.
6203
6204 <result name="VBOX_E_INVALID_VM_STATE">
6205 Machine session is not open.
6206 </result>
6207
6208 </desc>
6209 <param name="property" type="wstring" dir="in">
6210 <desc>
6211 The name of the property to read.
6212 </desc>
6213 </param>
6214 <param name="value" type="long long" dir="return">
6215 <desc>
6216 The timestamp. If the property does not exist then this will be
6217 empty.
6218 </desc>
6219 </param>
6220 </method>
6221
6222 <method name="setGuestProperty">
6223 <desc>
6224 Sets, changes or deletes an entry in the machine's guest property
6225 store.
6226
6227 <result name="E_ACCESSDENIED">
6228 Property cannot be changed.
6229 </result>
6230 <result name="E_INVALIDARG">
6231 Invalid @a flags.
6232 </result>
6233 <result name="VBOX_E_INVALID_VM_STATE">
6234 Virtual machine is not mutable or session not open.
6235 </result>
6236 <result name="VBOX_E_INVALID_OBJECT_STATE">
6237 Cannot set transient property when machine not running.
6238 </result>
6239
6240 </desc>
6241 <param name="property" type="wstring" dir="in">
6242 <desc>
6243 The name of the property to set, change or delete.
6244 </desc>
6245 </param>
6246 <param name="value" type="wstring" dir="in">
6247 <desc>
6248 The new value of the property to set, change or delete. If the
6249 property does not yet exist and value is non-empty, it will be
6250 created. If the value is @c null or empty, the property will be
6251 deleted if it exists.
6252 </desc>
6253 </param>
6254 <param name="flags" type="wstring" dir="in">
6255 <desc>
6256 Additional property parameters, passed as a comma-separated list of
6257 "name=value" type entries.
6258 </desc>
6259 </param>
6260 </method>
6261
6262 <method name="setGuestPropertyValue">
6263 <desc>
6264 Sets, changes or deletes a value in the machine's guest property
6265 store. The flags field will be left unchanged or created empty for a
6266 new property.
6267
6268 <result name="E_ACCESSDENIED">
6269 Property cannot be changed.
6270 </result>
6271 <result name="VBOX_E_INVALID_VM_STATE">
6272 Virtual machine is not mutable or session not open.
6273 </result>
6274 <result name="VBOX_E_INVALID_OBJECT_STATE">
6275 Cannot set transient property when machine not running.
6276 </result>
6277 </desc>
6278
6279 <param name="property" type="wstring" dir="in">
6280 <desc>
6281 The name of the property to set, change or delete.
6282 </desc>
6283 </param>
6284 <param name="value" type="wstring" dir="in">
6285 <desc>
6286 The new value of the property to set, change or delete. If the
6287 property does not yet exist and value is non-empty, it will be
6288 created. If the value is @c null or empty, the property will be
6289 deleted if it exists.
6290 </desc>
6291 </param>
6292 </method>
6293
6294 <method name="deleteGuestProperty" const="yes">
6295 <desc>
6296 Deletes an entry from the machine's guest property store.
6297
6298 <result name="VBOX_E_INVALID_VM_STATE">
6299 Machine session is not open.
6300 </result>
6301
6302 </desc>
6303 <param name="name" type="wstring" dir="in">
6304 <desc>
6305 The name of the property to delete.
6306 </desc>
6307 </param>
6308 </method>
6309
6310 <method name="enumerateGuestProperties" const="yes">
6311 <desc>
6312 Return a list of the guest properties matching a set of patterns along
6313 with their values, time stamps and flags.
6314 </desc>
6315 <param name="patterns" type="wstring" dir="in">
6316 <desc>
6317 The patterns to match the properties against, separated by '|'
6318 characters. If this is empty or @c null, all properties will match.
6319 </desc>
6320 </param>
6321 <param name="name" type="wstring" dir="out" safearray="yes">
6322 <desc>
6323 The names of the properties returned.
6324 </desc>
6325 </param>
6326 <param name="value" type="wstring" dir="out" safearray="yes">
6327 <desc>
6328 The values of the properties returned. The array entries match the
6329 corresponding entries in the @a name array.
6330 </desc>
6331 </param>
6332 <param name="timestamp" type="long long" dir="out" safearray="yes">
6333 <desc>
6334 The time stamps of the properties returned. The array entries match
6335 the corresponding entries in the @a name array.
6336 </desc>
6337 </param>
6338 <param name="flags" type="wstring" dir="out" safearray="yes">
6339 <desc>
6340 The flags of the properties returned. The array entries match the
6341 corresponding entries in the @a name array.
6342 </desc>
6343 </param>
6344 </method>
6345
6346 <method name="querySavedGuestScreenInfo" const="yes">
6347 <desc>
6348 Returns the guest dimensions from the saved state.
6349 </desc>
6350 <param name="screenId" type="unsigned long" dir="in">
6351 <desc>
6352 Saved guest screen to query info from.
6353 </desc>
6354 </param>
6355 <param name="originX" type="unsigned long" dir="out">
6356 <desc>
6357 The X position of the guest monitor top left corner.
6358 </desc>
6359 </param>
6360 <param name="originY" type="unsigned long" dir="out">
6361 <desc>
6362 The Y position of the guest monitor top left corner.
6363 </desc>
6364 </param>
6365 <param name="width" type="unsigned long" dir="out">
6366 <desc>
6367 Guest width at the time of the saved state was taken.
6368 </desc>
6369 </param>
6370 <param name="height" type="unsigned long" dir="out">
6371 <desc>
6372 Guest height at the time of the saved state was taken.
6373 </desc>
6374 </param>
6375 <param name="enabled" type="boolean" dir="out">
6376 <desc>
6377 Whether the monitor is enabled in the guest.
6378 </desc>
6379 </param>
6380 </method>
6381
6382 <method name="querySavedThumbnailSize">
6383 <desc>
6384 Returns size in bytes and dimensions in pixels of a saved thumbnail bitmap from saved state.
6385 </desc>
6386 <param name="screenId" type="unsigned long" dir="in">
6387 <desc>
6388 Saved guest screen to query info from.
6389 </desc>
6390 </param>
6391 <param name="size" type="unsigned long" dir="out">
6392 <desc>
6393 Size of buffer required to store the bitmap.
6394 </desc>
6395 </param>
6396 <param name="width" type="unsigned long" dir="out">
6397 <desc>
6398 Bitmap width.
6399 </desc>
6400 </param>
6401 <param name="height" type="unsigned long" dir="out">
6402 <desc>
6403 Bitmap height.
6404 </desc>
6405 </param>
6406 </method>
6407
6408 <method name="readSavedThumbnailToArray">
6409 <desc>
6410 Thumbnail is retrieved to an array of bytes in uncompressed 32-bit BGRA or RGBA format.
6411 </desc>
6412 <param name="screenId" type="unsigned long" dir="in">
6413 <desc>
6414 Saved guest screen to read from.
6415 </desc>
6416 </param>
6417 <param name="BGR" type="boolean" dir="in">
6418 <desc>
6419 How to order bytes in the pixel. A pixel consists of 4 bytes. If this parameter is true, then
6420 bytes order is: B, G, R, 0xFF. If this parameter is false, then bytes order is: R, G, B, 0xFF.
6421 </desc>
6422 </param>
6423 <param name="width" type="unsigned long" dir="out">
6424 <desc>
6425 Bitmap width.
6426 </desc>
6427 </param>
6428 <param name="height" type="unsigned long" dir="out">
6429 <desc>
6430 Bitmap height.
6431 </desc>
6432 </param>
6433 <param name="data" type="octet" safearray="yes" dir="return">
6434 <desc>
6435 Array with resulting bitmap data.
6436 </desc>
6437 </param>
6438 </method>
6439
6440 <method name="readSavedThumbnailPNGToArray">
6441 <desc>
6442 Thumbnail in PNG format is retrieved to an array of bytes.
6443 </desc>
6444 <param name="screenId" type="unsigned long" dir="in">
6445 <desc>
6446 Saved guest screen to read from.
6447 </desc>
6448 </param>
6449 <param name="width" type="unsigned long" dir="out">
6450 <desc>
6451 Image width.
6452 </desc>
6453 </param>
6454 <param name="height" type="unsigned long" dir="out">
6455 <desc>
6456 Image height.
6457 </desc>
6458 </param>
6459 <param name="data" type="octet" dir="return" safearray="yes">
6460 <desc>
6461 Array with resulting PNG data.
6462 </desc>
6463 </param>
6464 </method>
6465
6466 <method name="querySavedScreenshotPNGSize">
6467 <desc>
6468 Returns size in bytes and dimensions of a saved PNG image of screenshot from saved state.
6469 </desc>
6470 <param name="screenId" type="unsigned long" dir="in">
6471 <desc>
6472 Saved guest screen to query info from.
6473 </desc>
6474 </param>
6475 <param name="size" type="unsigned long" dir="out">
6476 <desc>
6477 Size of buffer required to store the PNG binary data.
6478 </desc>
6479 </param>
6480 <param name="width" type="unsigned long" dir="out">
6481 <desc>
6482 Image width.
6483 </desc>
6484 </param>
6485 <param name="height" type="unsigned long" dir="out">
6486 <desc>
6487 Image height.
6488 </desc>
6489 </param>
6490 </method>
6491
6492 <method name="readSavedScreenshotPNGToArray">
6493 <desc>
6494 Screenshot in PNG format is retrieved to an array of bytes.
6495 </desc>
6496 <param name="screenId" type="unsigned long" dir="in">
6497 <desc>
6498 Saved guest screen to read from.
6499 </desc>
6500 </param>
6501 <param name="width" type="unsigned long" dir="out">
6502 <desc>
6503 Image width.
6504 </desc>
6505 </param>
6506 <param name="height" type="unsigned long" dir="out">
6507 <desc>
6508 Image height.
6509 </desc>
6510 </param>
6511 <param name="data" type="octet" dir="return" safearray="yes">
6512 <desc>
6513 Array with resulting PNG data.
6514 </desc>
6515 </param>
6516 </method>
6517
6518 <method name="hotPlugCPU">
6519 <desc>
6520 Plugs a CPU into the machine.
6521 </desc>
6522 <param name="cpu" type="unsigned long" dir="in">
6523 <desc>
6524 The CPU id to insert.
6525 </desc>
6526 </param>
6527 </method>
6528
6529 <method name="hotUnplugCPU">
6530 <desc>
6531 Removes a CPU from the machine.
6532 </desc>
6533 <param name="cpu" type="unsigned long" dir="in">
6534 <desc>
6535 The CPU id to remove.
6536 </desc>
6537 </param>
6538 </method>
6539
6540 <method name="getCPUStatus">
6541 <desc>
6542 Returns the current status of the given CPU.
6543 </desc>
6544 <param name="cpu" type="unsigned long" dir="in">
6545 <desc>
6546 The CPU id to check for.
6547 </desc>
6548 </param>
6549 <param name="attached" type="boolean" dir="return">
6550 <desc>
6551 Status of the CPU.
6552 </desc>
6553 </param>
6554 </method>
6555
6556 <method name="queryLogFilename">
6557 <desc>
6558 Queries for the VM log file name of an given index. Returns an empty
6559 string if a log file with that index doesn't exists.
6560 </desc>
6561 <param name="idx" type="unsigned long" dir="in">
6562 <desc>
6563 Which log file name to query. 0=current log file.
6564 </desc>
6565 </param>
6566 <param name="filename" type="wstring" dir="return">
6567 <desc>
6568 On return the full path to the log file or an empty string on error.
6569 </desc>
6570 </param>
6571 </method>
6572
6573 <method name="readLog">
6574 <desc>
6575 Reads the VM log file. The chunk size is limited, so even if you
6576 ask for a big piece there might be less data returned.
6577 </desc>
6578 <param name="idx" type="unsigned long" dir="in">
6579 <desc>
6580 Which log file to read. 0=current log file.
6581 </desc>
6582 </param>
6583 <param name="offset" type="long long" dir="in">
6584 <desc>
6585 Offset in the log file.
6586 </desc>
6587 </param>
6588 <param name="size" type="long long" dir="in">
6589 <desc>
6590 Chunk size to read in the log file.
6591 </desc>
6592 </param>
6593 <param name="data" type="octet" dir="return" safearray="yes">
6594 <desc>
6595 Data read from the log file. A data size of 0 means end of file
6596 if the requested chunk size was not 0. This is the unprocessed
6597 file data, i.e. the line ending style depends on the platform of
6598 the system the server is running on.
6599 </desc>
6600 </param>
6601 </method>
6602
6603 <method name="cloneTo">
6604 <desc>
6605 Creates a clone of this machine, either as a full clone (which means
6606 creating independent copies of the hard disk media, save states and so
6607 on), or as a linked clone (which uses its own differencing media,
6608 sharing the parent media with the source machine).
6609
6610 The target machine object must have been created previously with <link
6611 to="IVirtualBox::createMachine"/>, and all the settings will be
6612 transferred except the VM name and the hardware UUID. You can set the
6613 VM name and the new hardware UUID when creating the target machine. The
6614 network MAC addresses are newly created for all newtwork adapters. You
6615 can change that behaviour with the options parameter. The operation is
6616 performed asynchronously, so the machine object will be not be usable
6617 until the @a progress object signals completion.
6618
6619 <result name="E_INVALIDARG">
6620 @a target is @c null.
6621 </result>
6622 </desc>
6623
6624 <param name="target" type="IMachine" dir="in">
6625 <desc>Target machine object.</desc>
6626 </param>
6627 <param name="mode" type="CloneMode" dir="in">
6628 <desc>Which states should be cloned.</desc>
6629 </param>
6630 <param name="options" type="CloneOptions" dir="in" safearray="yes">
6631 <desc>Options for the cloning operation.</desc>
6632 </param>
6633 <param name="progress" type="IProgress" dir="return">
6634 <desc>Progress object to track the operation completion.</desc>
6635 </param>
6636 </method>
6637
6638 </interface>
6639
6640 <!--
6641 // IConsole
6642 /////////////////////////////////////////////////////////////////////////
6643 -->
6644
6645 <interface
6646 name="IVRDEServerInfo" extends="$unknown"
6647 uuid="714434a1-58c3-4aab-9049-7652c5df113b"
6648 wsmap="struct"
6649 >
6650 <desc>
6651 Contains information about the remote desktop (VRDE) server capabilities and status.
6652 This is used in the <link to="IConsole::VRDEServerInfo" /> attribute.
6653 </desc>
6654
6655 <attribute name="active" type="boolean" readonly="yes">
6656 <desc>
6657 Whether the remote desktop connection is active.
6658 </desc>
6659 </attribute>
6660
6661 <attribute name="port" type="long" readonly="yes">
6662 <desc>
6663 VRDE server port number. If this property is equal to <tt>0</tt>, then
6664 the VRDE server failed to start, usually because there are no free IP
6665 ports to bind to. If this property is equal to <tt>-1</tt>, then the VRDE
6666 server has not yet been started.
6667 </desc>
6668 </attribute>
6669
6670 <attribute name="numberOfClients" type="unsigned long" readonly="yes">
6671 <desc>
6672 How many times a client connected.
6673 </desc>
6674 </attribute>
6675
6676 <attribute name="beginTime" type="long long" readonly="yes">
6677 <desc>
6678 When the last connection was established, in milliseconds since 1970-01-01 UTC.
6679 </desc>
6680 </attribute>
6681
6682 <attribute name="endTime" type="long long" readonly="yes">
6683 <desc>
6684 When the last connection was terminated or the current time, if
6685 connection is still active, in milliseconds since 1970-01-01 UTC.
6686 </desc>
6687 </attribute>
6688
6689 <attribute name="bytesSent" type="long long" readonly="yes">
6690 <desc>
6691 How many bytes were sent in last or current, if still active, connection.
6692 </desc>
6693 </attribute>
6694
6695 <attribute name="bytesSentTotal" type="long long" readonly="yes">
6696 <desc>
6697 How many bytes were sent in all connections.
6698 </desc>
6699 </attribute>
6700
6701 <attribute name="bytesReceived" type="long long" readonly="yes">
6702 <desc>
6703 How many bytes were received in last or current, if still active, connection.
6704 </desc>
6705 </attribute>
6706
6707 <attribute name="bytesReceivedTotal" type="long long" readonly="yes">
6708 <desc>
6709 How many bytes were received in all connections.
6710 </desc>
6711 </attribute>
6712
6713 <attribute name="user" type="wstring" readonly="yes">
6714 <desc>
6715 Login user name supplied by the client.
6716 </desc>
6717 </attribute>
6718
6719 <attribute name="domain" type="wstring" readonly="yes">
6720 <desc>
6721 Login domain name supplied by the client.
6722 </desc>
6723 </attribute>
6724
6725 <attribute name="clientName" type="wstring" readonly="yes">
6726 <desc>
6727 The client name supplied by the client.
6728 </desc>
6729 </attribute>
6730
6731 <attribute name="clientIP" type="wstring" readonly="yes">
6732 <desc>
6733 The IP address of the client.
6734 </desc>
6735 </attribute>
6736
6737 <attribute name="clientVersion" type="unsigned long" readonly="yes">
6738 <desc>
6739 The client software version number.
6740 </desc>
6741 </attribute>
6742
6743 <attribute name="encryptionStyle" type="unsigned long" readonly="yes">
6744 <desc>
6745 Public key exchange method used when connection was established.
6746 Values: 0 - RDP4 public key exchange scheme.
6747 1 - X509 certificates were sent to client.
6748 </desc>
6749 </attribute>
6750
6751 </interface>
6752
6753 <interface
6754 name="IConsole" extends="$unknown"
6755 uuid="db7ab4ca-2a3f-4183-9243-c1208da92392"
6756 wsmap="managed"
6757 >
6758 <desc>
6759 The IConsole interface represents an interface to control virtual
6760 machine execution.
6761
6762 A console object gets created when a machine has been locked for a
6763 particular session (client process) using <link to="IMachine::lockMachine" />
6764 or <link to="IMachine::launchVMProcess"/>. The console object can
6765 then be found in the session's <link to="ISession::console" /> attribute.
6766
6767 Methods of the IConsole interface allow the caller to query the current
6768 virtual machine execution state, pause the machine or power it down, save
6769 the machine state or take a snapshot, attach and detach removable media
6770 and so on.
6771
6772 <see><link to="ISession"/></see>
6773 </desc>
6774
6775 <attribute name="machine" type="IMachine" readonly="yes">
6776 <desc>
6777 Machine object for this console session.
6778 <note>
6779 This is a convenience property, it has the same value as
6780 <link to="ISession::machine"/> of the corresponding session
6781 object.
6782 </note>
6783 </desc>
6784 </attribute>
6785
6786 <attribute name="state" type="MachineState" readonly="yes">
6787 <desc>
6788 Current execution state of the machine.
6789 <note>
6790 This property always returns the same value as the corresponding
6791 property of the IMachine object for this console session.
6792 For the process that owns (executes) the VM, this is the
6793 preferable way of querying the VM state, because no IPC
6794 calls are made.
6795 </note>
6796 </desc>
6797 </attribute>
6798
6799 <attribute name="guest" type="IGuest" readonly="yes">
6800 <desc>Guest object.</desc>
6801 </attribute>
6802
6803 <attribute name="keyboard" type="IKeyboard" readonly="yes">
6804 <desc>
6805 Virtual keyboard object.
6806 <note>
6807 If the machine is not running, any attempt to use
6808 the returned object will result in an error.
6809 </note>
6810 </desc>
6811 </attribute>
6812
6813 <attribute name="mouse" type="IMouse" readonly="yes">
6814 <desc>
6815 Virtual mouse object.
6816 <note>
6817 If the machine is not running, any attempt to use
6818 the returned object will result in an error.
6819 </note>
6820 </desc>
6821 </attribute>
6822
6823 <attribute name="display" type="IDisplay" readonly="yes">
6824 <desc>Virtual display object.
6825 <note>
6826 If the machine is not running, any attempt to use
6827 the returned object will result in an error.
6828 </note>
6829 </desc>
6830 </attribute>
6831
6832 <attribute name="debugger" type="IMachineDebugger" readonly="yes">
6833 <desc>Debugging interface.</desc>
6834 </attribute>
6835
6836 <attribute name="USBDevices" type="IUSBDevice" readonly="yes" safearray="yes">
6837 <desc>
6838 Collection of USB devices currently attached to the virtual
6839 USB controller.
6840 <note>
6841 The collection is empty if the machine is not running.
6842 </note>
6843 </desc>
6844 </attribute>
6845
6846 <attribute name="remoteUSBDevices" type="IHostUSBDevice" readonly="yes" safearray="yes">
6847 <desc>
6848 List of USB devices currently attached to the remote VRDE client.
6849 Once a new device is physically attached to the remote host computer,
6850 it appears in this list and remains there until detached.
6851 </desc>
6852 </attribute>
6853
6854 <attribute name="sharedFolders" type="ISharedFolder" readonly="yes" safearray="yes">
6855 <desc>
6856 Collection of shared folders for the current session. These folders
6857 are called transient shared folders because they are available to the
6858 guest OS running inside the associated virtual machine only for the
6859 duration of the session (as opposed to
6860 <link to="IMachine::sharedFolders"/> which represent permanent shared
6861 folders). When the session is closed (e.g. the machine is powered down),
6862 these folders are automatically discarded.
6863
6864 New shared folders are added to the collection using
6865 <link to="#createSharedFolder"/>. Existing shared folders can be
6866 removed using <link to="#removeSharedFolder"/>.
6867 </desc>
6868 </attribute>
6869
6870 <attribute name="VRDEServerInfo" type="IVRDEServerInfo" readonly="yes">
6871 <desc>
6872 Interface that provides information on Remote Desktop Extension (VRDE) connection.
6873 </desc>
6874 </attribute>
6875
6876 <attribute name="eventSource" type="IEventSource" readonly="yes">
6877 <desc>
6878 Event source for console events.
6879 </desc>
6880 </attribute>
6881
6882 <attribute name="attachedPCIDevices" type="IPCIDeviceAttachment" readonly="yes" safearray="yes">
6883 <desc>Array of PCI devices attached to this machine.</desc>
6884 </attribute>
6885
6886 <attribute name="useHostClipboard" type="boolean">
6887 <desc>
6888 Whether the guest clipboard should be connected to the host one or
6889 whether it should only be allowed access to the VRDE clipboard. This
6890 setting may not affect existing guest clipboard connections which
6891 are already connected to the host clipboard.
6892 </desc>
6893 </attribute>
6894
6895 <method name="powerUp">
6896 <desc>
6897 Starts the virtual machine execution using the current machine
6898 state (that is, its current execution state, current settings and
6899 current storage devices).
6900
6901 <note>
6902 This method is only useful for front-ends that want to actually
6903 execute virtual machines in their own process (like the VirtualBox
6904 or VBoxSDL front-ends). Unless you are intending to write such a
6905 front-end, do not call this method. If you simply want to
6906 start virtual machine execution using one of the existing front-ends
6907 (for example the VirtualBox GUI or headless server), use
6908 <link to="IMachine::launchVMProcess"/> instead; these
6909 front-ends will power up the machine automatically for you.
6910 </note>
6911
6912 If the machine is powered off or aborted, the execution will
6913 start from the beginning (as if the real hardware were just
6914 powered on).
6915
6916 If the machine is in the <link to="MachineState_Saved"/> state,
6917 it will continue its execution the point where the state has
6918 been saved.
6919
6920 If the machine <link to="IMachine::teleporterEnabled"/> property is
6921 enabled on the machine being powered up, the machine will wait for an
6922 incoming teleportation in the <link to="MachineState_TeleportingIn"/>
6923 state. The returned progress object will have at least three
6924 operations where the last three are defined as: (1) powering up and
6925 starting TCP server, (2) waiting for incoming teleportations, and
6926 (3) perform teleportation. These operations will be reflected as the
6927 last three operations of the progress objected returned by
6928 <link to="IMachine::launchVMProcess"/> as well.
6929
6930 <see><link to="#saveState"/></see>
6931
6932 <result name="VBOX_E_INVALID_VM_STATE">
6933 Virtual machine already running.
6934 </result>
6935 <result name="VBOX_E_HOST_ERROR">
6936 Host interface does not exist or name not set.
6937 </result>
6938 <result name="VBOX_E_FILE_ERROR">
6939 Invalid saved state file.
6940 </result>
6941 </desc>
6942 <param name="progress" type="IProgress" dir="return">
6943 <desc>Progress object to track the operation completion.</desc>
6944 </param>
6945 </method>
6946
6947 <method name="powerUpPaused">
6948 <desc>
6949 Identical to powerUp except that the VM will enter the
6950 <link to="MachineState_Paused"/> state, instead of
6951 <link to="MachineState_Running"/>.
6952
6953 <see><link to="#powerUp"/></see>
6954 <result name="VBOX_E_INVALID_VM_STATE">
6955 Virtual machine already running.
6956 </result>
6957 <result name="VBOX_E_HOST_ERROR">
6958 Host interface does not exist or name not set.
6959 </result>
6960 <result name="VBOX_E_FILE_ERROR">
6961 Invalid saved state file.
6962 </result>
6963 </desc>
6964 <param name="progress" type="IProgress" dir="return">
6965 <desc>Progress object to track the operation completion.</desc>
6966 </param>
6967 </method>
6968
6969 <method name="powerDown">
6970 <desc>
6971 Initiates the power down procedure to stop the virtual machine
6972 execution.
6973
6974 The completion of the power down procedure is tracked using the returned
6975 IProgress object. After the operation is complete, the machine will go
6976 to the PoweredOff state.
6977 <result name="VBOX_E_INVALID_VM_STATE">
6978 Virtual machine must be Running, Paused or Stuck to be powered down.
6979 </result>
6980 </desc>
6981 <param name="progress" type="IProgress" dir="return">
6982 <desc>Progress object to track the operation completion.</desc>
6983 </param>
6984 </method>
6985
6986 <method name="reset">
6987 <desc>Resets the virtual machine.
6988 <result name="VBOX_E_INVALID_VM_STATE">
6989 Virtual machine not in Running state.
6990 </result>
6991 <result name="VBOX_E_VM_ERROR">
6992 Virtual machine error in reset operation.
6993 </result>
6994 </desc>
6995 </method>
6996
6997 <method name="pause">
6998 <desc>Pauses the virtual machine execution.
6999 <result name="VBOX_E_INVALID_VM_STATE">
7000 Virtual machine not in Running state.
7001 </result>
7002 <result name="VBOX_E_VM_ERROR">
7003 Virtual machine error in suspend operation.
7004 </result>
7005 </desc>
7006 </method>
7007
7008 <method name="resume">
7009 <desc>Resumes the virtual machine execution.
7010 <result name="VBOX_E_INVALID_VM_STATE">
7011 Virtual machine not in Paused state.
7012 </result>
7013 <result name="VBOX_E_VM_ERROR">
7014 Virtual machine error in resume operation.
7015 </result>
7016 </desc>
7017 </method>
7018
7019 <method name="powerButton">
7020 <desc>Sends the ACPI power button event to the guest.
7021 <result name="VBOX_E_INVALID_VM_STATE">
7022 Virtual machine not in Running state.
7023 </result>
7024 <result name="VBOX_E_PDM_ERROR">
7025 Controlled power off failed.
7026 </result>
7027 </desc>
7028 </method>
7029
7030 <method name="sleepButton">
7031 <desc>Sends the ACPI sleep button event to the guest.
7032 <result name="VBOX_E_INVALID_VM_STATE">
7033 Virtual machine not in Running state.
7034 </result>
7035 <result name="VBOX_E_PDM_ERROR">
7036 Sending sleep button event failed.
7037 </result>
7038 </desc>
7039 </method>
7040
7041 <method name="getPowerButtonHandled">
7042 <desc>Checks if the last power button event was handled by guest.
7043 <result name="VBOX_E_PDM_ERROR">
7044 Checking if the event was handled by the guest OS failed.
7045 </result>
7046 </desc>
7047 <param name="handled" type="boolean" dir="return"/>
7048 </method>
7049
7050 <method name="getGuestEnteredACPIMode">
7051 <desc>Checks if the guest entered the ACPI mode G0 (working) or
7052 G1 (sleeping). If this method returns @c false, the guest will
7053 most likely not respond to external ACPI events.
7054 <result name="VBOX_E_INVALID_VM_STATE">
7055 Virtual machine not in Running state.
7056 </result>
7057 </desc>
7058 <param name="entered" type="boolean" dir="return"/>
7059 </method>
7060
7061 <method name="saveState">
7062 <desc>
7063 Saves the current execution state of a running virtual machine
7064 and stops its execution.
7065
7066 After this operation completes, the machine will go to the
7067 Saved state. Next time it is powered up, this state will
7068 be restored and the machine will continue its execution from
7069 the place where it was saved.
7070
7071 This operation differs from taking a snapshot to the effect
7072 that it doesn't create new differencing media. Also, once
7073 the machine is powered up from the state saved using this method,
7074 the saved state is deleted, so it will be impossible to return
7075 to this state later.
7076
7077 <note>
7078 On success, this method implicitly calls
7079 <link to="IMachine::saveSettings"/> to save all current machine
7080 settings (including runtime changes to the DVD medium, etc.).
7081 Together with the impossibility to change any VM settings when it is
7082 in the Saved state, this guarantees adequate hardware
7083 configuration of the machine when it is restored from the saved
7084 state file.
7085 </note>
7086
7087 <note>
7088 The machine must be in the Running or Paused state, otherwise
7089 the operation will fail.
7090 </note>
7091 <result name="VBOX_E_INVALID_VM_STATE">
7092 Virtual machine state neither Running nor Paused.
7093 </result>
7094 <result name="VBOX_E_FILE_ERROR">
7095 Failed to create directory for saved state file.
7096 </result>
7097
7098 <see><link to="#takeSnapshot"/></see>
7099 </desc>
7100 <param name="progress" type="IProgress" dir="return">
7101 <desc>Progress object to track the operation completion.</desc>
7102 </param>
7103 </method>
7104
7105 <method name="adoptSavedState">
7106 <desc>
7107 Associates the given saved state file to the virtual machine.
7108
7109 On success, the machine will go to the Saved state. Next time it is
7110 powered up, it will be restored from the adopted saved state and
7111 continue execution from the place where the saved state file was
7112 created.
7113
7114 The specified saved state file path may be absolute or relative to the
7115 folder the VM normally saves the state to (usually,
7116 <link to="IMachine::snapshotFolder"/>).
7117
7118 <note>
7119 It's a caller's responsibility to make sure the given saved state
7120 file is compatible with the settings of this virtual machine that
7121 represent its virtual hardware (memory size, storage disk configuration
7122 etc.). If there is a mismatch, the behavior of the virtual machine
7123 is undefined.
7124 </note>
7125 <result name="VBOX_E_INVALID_VM_STATE">
7126 Virtual machine state neither PoweredOff nor Aborted.
7127 </result>
7128 </desc>
7129 <param name="savedStateFile" type="wstring" dir="in">
7130 <desc>Path to the saved state file to adopt.</desc>
7131 </param>
7132 </method>
7133
7134 <method name="discardSavedState">
7135 <desc>
7136 Forcibly resets the machine to "Powered Off" state if it is
7137 currently in the "Saved" state (previously created by <link to="#saveState"/>).
7138 Next time the machine is powered up, a clean boot will occur.
7139 <note>
7140 This operation is equivalent to resetting or powering off
7141 the machine without doing a proper shutdown of the guest
7142 operating system; as with resetting a running phyiscal
7143 computer, it can can lead to data loss.
7144 </note>
7145 If @a fRemoveFile is @c true, the file in the machine directory
7146 into which the machine state was saved is also deleted. If
7147 this is @c false, then the state can be recovered and later
7148 re-inserted into a machine using <link to="#adoptSavedState" />.
7149 The location of the file can be found in the
7150 <link to="IMachine::stateFilePath" /> attribute.
7151 <result name="VBOX_E_INVALID_VM_STATE">
7152 Virtual machine not in state Saved.
7153 </result>
7154 </desc>
7155 <param name="fRemoveFile" type="boolean" dir="in" >
7156 <desc>Whether to also remove the saved state file.</desc>
7157 </param>
7158 </method>
7159
7160 <method name="getDeviceActivity">
7161 <desc>
7162 Gets the current activity type of a given device or device group.
7163 <result name="E_INVALIDARG">
7164 Invalid device type.
7165 </result>
7166 </desc>
7167 <param name="type" type="DeviceType" dir="in"/>
7168 <param name="activity" type="DeviceActivity" dir="return"/>
7169 </method>
7170
7171 <method name="attachUSBDevice">
7172 <desc>
7173 Attaches a host USB device with the given UUID to the
7174 USB controller of the virtual machine.
7175
7176 The device needs to be in one of the following states:
7177 <link to="USBDeviceState_Busy"/>,
7178 <link to="USBDeviceState_Available"/> or
7179 <link to="USBDeviceState_Held"/>,
7180 otherwise an error is immediately returned.
7181
7182 When the device state is
7183 <link to="USBDeviceState_Busy">Busy</link>, an error may also
7184 be returned if the host computer refuses to release it for some reason.
7185
7186 <see><link to="IUSBController::deviceFilters"/>,
7187 <link to="USBDeviceState"/></see>
7188 <result name="VBOX_E_INVALID_VM_STATE">
7189 Virtual machine state neither Running nor Paused.
7190 </result>
7191 <result name="VBOX_E_PDM_ERROR">
7192 Virtual machine does not have a USB controller.
7193 </result>
7194 </desc>
7195 <param name="id" type="uuid" mod="string" dir="in">
7196 <desc>UUID of the host USB device to attach.</desc>
7197 </param>
7198 </method>
7199
7200 <method name="detachUSBDevice">
7201 <desc>
7202 Detaches an USB device with the given UUID from the USB controller
7203 of the virtual machine.
7204
7205 After this method succeeds, the VirtualBox server re-initiates
7206 all USB filters as if the device were just physically attached
7207 to the host, but filters of this machine are ignored to avoid
7208 a possible automatic re-attachment.
7209
7210 <see><link to="IUSBController::deviceFilters"/>,
7211 <link to="USBDeviceState"/></see>
7212
7213 <result name="VBOX_E_PDM_ERROR">
7214 Virtual machine does not have a USB controller.
7215 </result>
7216 <result name="E_INVALIDARG">
7217 USB device not attached to this virtual machine.
7218 </result>
7219 </desc>
7220 <param name="id" type="uuid" mod="string" dir="in">
7221 <desc>UUID of the USB device to detach.</desc>
7222 </param>
7223 <param name="device" type="IUSBDevice" dir="return">
7224 <desc>Detached USB device.</desc>
7225 </param>
7226 </method>
7227
7228 <method name="findUSBDeviceByAddress">
7229 <desc>
7230 Searches for a USB device with the given host address.
7231
7232 <result name="VBOX_E_OBJECT_NOT_FOUND">
7233 Given @c name does not correspond to any USB device.
7234 </result>
7235
7236 <see><link to="IUSBDevice::address"/></see>
7237 </desc>
7238 <param name="name" type="wstring" dir="in">
7239 <desc>
7240 Address of the USB device (as assigned by the host) to
7241 search for.
7242 </desc>
7243 </param>
7244 <param name="device" type="IUSBDevice" dir="return">
7245 <desc>Found USB device object.</desc>
7246 </param>
7247 </method>
7248
7249 <method name="findUSBDeviceById">
7250 <desc>
7251 Searches for a USB device with the given UUID.
7252
7253 <result name="VBOX_E_OBJECT_NOT_FOUND">
7254 Given @c id does not correspond to any USB device.
7255 </result>
7256
7257 <see><link to="IUSBDevice::id"/></see>
7258 </desc>
7259 <param name="id" type="uuid" mod="string" dir="in">
7260 <desc>UUID of the USB device to search for.</desc>
7261 </param>
7262 <param name="device" type="IUSBDevice" dir="return">
7263 <desc>Found USB device object.</desc>
7264 </param>
7265 </method>
7266
7267 <method name="createSharedFolder">
7268 <desc>
7269 Creates a transient new shared folder by associating the given logical
7270 name with the given host path, adds it to the collection of shared
7271 folders and starts sharing it. Refer to the description of
7272 <link to="ISharedFolder"/> to read more about logical names.
7273
7274 <result name="VBOX_E_INVALID_VM_STATE">
7275 Virtual machine in Saved state or currently changing state.
7276 </result>
7277 <result name="VBOX_E_FILE_ERROR">
7278 Shared folder already exists or not accessible.
7279 </result>
7280 </desc>
7281 <param name="name" type="wstring" dir="in">
7282 <desc>Unique logical name of the shared folder.</desc>
7283 </param>
7284 <param name="hostPath" type="wstring" dir="in">
7285 <desc>Full path to the shared folder in the host file system.</desc>
7286 </param>
7287 <param name="writable" type="boolean" dir="in">
7288 <desc>Whether the share is writable or readonly</desc>
7289 </param>
7290 <param name="automount" type="boolean" dir="in">
7291 <desc>Whether the share gets automatically mounted by the guest
7292 or not.</desc>
7293 </param>
7294 </method>
7295
7296 <method name="removeSharedFolder">
7297 <desc>
7298 Removes a transient shared folder with the given name previously
7299 created by <link to="#createSharedFolder"/> from the collection of
7300 shared folders and stops sharing it.
7301 <result name="VBOX_E_INVALID_VM_STATE">
7302 Virtual machine in Saved state or currently changing state.
7303 </result>
7304 <result name="VBOX_E_FILE_ERROR">
7305 Shared folder does not exists.
7306 </result>
7307 </desc>
7308 <param name="name" type="wstring" dir="in">
7309 <desc>Logical name of the shared folder to remove.</desc>
7310 </param>
7311 </method>
7312
7313 <method name="takeSnapshot">
7314 <desc>
7315 Saves the current execution state
7316 and all settings of the machine and creates differencing images
7317 for all normal (non-independent) media.
7318 See <link to="ISnapshot" /> for an introduction to snapshots.
7319
7320 This method can be called for a PoweredOff, Saved (see
7321 <link to="#saveState"/>), Running or
7322 Paused virtual machine. When the machine is PoweredOff, an
7323 offline snapshot is created. When the machine is Running a live
7324 snapshot is created, and an online snapshot is created when Paused.
7325
7326 The taken snapshot is always based on the
7327 <link to="IMachine::currentSnapshot">current snapshot</link>
7328 of the associated virtual machine and becomes a new current snapshot.
7329
7330 <note>
7331 This method implicitly calls <link to="IMachine::saveSettings"/> to
7332 save all current machine settings before taking an offline snapshot.
7333 </note>
7334
7335 <result name="VBOX_E_INVALID_VM_STATE">
7336 Virtual machine currently changing state.
7337 </result>
7338 </desc>
7339 <param name="name" type="wstring" dir="in">
7340 <desc>Short name for the snapshot.</desc>
7341 </param>
7342 <param name="description" type="wstring" dir="in">
7343 <desc>Optional description of the snapshot.</desc>
7344 </param>
7345 <param name="progress" type="IProgress" dir="return">
7346 <desc>Progress object to track the operation completion.</desc>
7347 </param>
7348 </method>
7349
7350 <method name="deleteSnapshot">
7351 <desc>
7352 Starts deleting the specified snapshot asynchronously.
7353 See <link to="ISnapshot" /> for an introduction to snapshots.
7354
7355 The execution state and settings of the associated machine stored in
7356 the snapshot will be deleted. The contents of all differencing media of
7357 this snapshot will be merged with the contents of their dependent child
7358 media to keep the medium chain valid (in other words, all changes
7359 represented by media being deleted will be propagated to their child
7360 medium). After that, this snapshot's differencing medium will be
7361 deleted. The parent of this snapshot will become a new parent for all
7362 its child snapshots.
7363
7364 If the deleted snapshot is the current one, its parent snapshot will
7365 become a new current snapshot. The current machine state is not directly
7366 affected in this case, except that currently attached differencing
7367 media based on media of the deleted snapshot will be also merged as
7368 described above.
7369
7370 If the deleted snapshot is the first or current snapshot, then the
7371 respective IMachine attributes will be adjusted. Deleting the current
7372 snapshot will also implicitly call <link to="IMachine::saveSettings"/>
7373 to make all current machine settings permanent.
7374
7375 Deleting a snapshot has the following preconditions:
7376
7377 <ul>
7378 <li>Child media of all normal media of the deleted snapshot
7379 must be accessible (see <link to="IMedium::state"/>) for this
7380 operation to succeed. If only one running VM refers to all images
7381 which participates in merging the operation can be performed while
7382 the VM is running. Otherwise all virtual machines whose media are
7383 directly or indirectly based on the media of deleted snapshot must
7384 be powered off. In any case, online snapshot deleting usually is
7385 slower than the same operation without any running VM.</li>
7386
7387 <li>You cannot delete the snapshot if a medium attached to it has
7388 more than one child medium (differencing images) because otherwise
7389 merging would be impossible. This might be the case if there is
7390 more than one child snapshot or differencing images were created
7391 for other reason (e.g. implicitly because of multiple machine
7392 attachments).</li>
7393 </ul>
7394
7395 The virtual machine's <link to="IMachine::state">state</link> is
7396 changed to "DeletingSnapshot", "DeletingSnapshotOnline" or
7397 "DeletingSnapshotPaused" while this operation is in progress.
7398
7399 <note>
7400 Merging medium contents can be very time and disk space
7401 consuming, if these media are big in size and have many
7402 children. However, if the snapshot being deleted is the last
7403 (head) snapshot on the branch, the operation will be rather
7404 quick.
7405 </note>
7406 <result name="VBOX_E_INVALID_VM_STATE">
7407 The running virtual machine prevents deleting this snapshot. This
7408 happens only in very specific situations, usually snapshots can be
7409 deleted without trouble while a VM is running. The error message
7410 text explains the reason for the failure.
7411 </result>
7412 </desc>
7413 <param name="id" type="uuid" mod="string" dir="in">
7414 <desc>UUID of the snapshot to delete.</desc>
7415 </param>
7416 <param name="progress" type="IProgress" dir="return">
7417 <desc>Progress object to track the operation completion.</desc>
7418 </param>
7419 </method>
7420
7421 <method name="deleteSnapshotAndAllChildren">
7422 <desc>
7423 Starts deleting the specified snapshot and all its children
7424 asynchronously. See <link to="ISnapshot" /> for an introduction to
7425 snapshots. The conditions and many details are the same as with
7426 <link to="#deleteSnapshot"/>.
7427
7428 This operation is very fast if the snapshot subtree does not include
7429 the current state. It is still significantly faster than deleting the
7430 snapshots one by one if the current state is in the subtree and there
7431 are more than one snapshots from current state to the snapshot which
7432 marks the subtree, since it eliminates the incremental image merging.
7433
7434 <note>This API method is right now not implemented!</note>
7435
7436 <result name="VBOX_E_INVALID_VM_STATE">
7437 The running virtual machine prevents deleting this snapshot. This
7438 happens only in very specific situations, usually snapshots can be
7439 deleted without trouble while a VM is running. The error message
7440 text explains the reason for the failure.
7441 </result>
7442 <result name="E_NOTIMPL">
7443 The method is not implemented yet.
7444 </result>
7445 </desc>
7446 <param name="id" type="uuid" mod="string" dir="in">
7447 <desc>UUID of the snapshot to delete, including all its children.</desc>
7448 </param>
7449 <param name="progress" type="IProgress" dir="return">
7450 <desc>Progress object to track the operation completion.</desc>
7451 </param>
7452 </method>
7453
7454 <method name="deleteSnapshotRange">
7455 <desc>
7456 Starts deleting the specified snapshot range. This is limited to
7457 linear snapshot lists, which means there may not be any other child
7458 snapshots other than the direct sequence between the start and end
7459 snapshot. If the start and end snapshot point to the same snapshot this
7460 method is completely equivalent to <link to="#deleteSnapshot"/>. See
7461 <link to="ISnapshot" /> for an introduction to snapshots. The
7462 conditions and many details are the same as with
7463 <link to="#deleteSnapshot"/>.
7464
7465 This operation is generally faster than deleting snapshots one by one
7466 and often also needs less extra disk space before freeing up disk space
7467 by deleting the removed disk images corresponding to the snapshot.
7468
7469 <note>This API method is right now not implemented!</note>
7470
7471 <result name="VBOX_E_INVALID_VM_STATE">
7472 The running virtual machine prevents deleting this snapshot. This
7473 happens only in very specific situations, usually snapshots can be
7474 deleted without trouble while a VM is running. The error message
7475 text explains the reason for the failure.
7476 </result>
7477 <result name="E_NOTIMPL">
7478 The method is not implemented yet.
7479 </result>
7480 </desc>
7481 <param name="startId" type="uuid" mod="string" dir="in">
7482 <desc>UUID of the first snapshot to delete.</desc>
7483 </param>
7484 <param name="endId" type="uuid" mod="string" dir="in">
7485 <desc>UUID of the last snapshot to delete.</desc>
7486 </param>
7487 <param name="progress" type="IProgress" dir="return">
7488 <desc>Progress object to track the operation completion.</desc>
7489 </param>
7490 </method>
7491
7492 <method name="restoreSnapshot">
7493 <desc>
7494 Starts resetting the machine's current state to the state contained
7495 in the given snapshot, asynchronously. All current settings of the
7496 machine will be reset and changes stored in differencing media
7497 will be lost.
7498 See <link to="ISnapshot" /> for an introduction to snapshots.
7499
7500 After this operation is successfully completed, new empty differencing
7501 media are created for all normal media of the machine.
7502
7503 If the given snapshot is an online snapshot, the machine will go to
7504 the <link to="MachineState_Saved"> saved state</link>, so that the
7505 next time it is powered on, the execution state will be restored
7506 from the state of the snapshot.
7507
7508 <note>
7509 The machine must not be running, otherwise the operation will fail.
7510 </note>
7511
7512 <note>
7513 If the machine state is <link to="MachineState_Saved">Saved</link>
7514 prior to this operation, the saved state file will be implicitly
7515 deleted (as if <link to="IConsole::discardSavedState"/> were
7516 called).
7517 </note>
7518
7519 <result name="VBOX_E_INVALID_VM_STATE">
7520 Virtual machine is running.
7521 </result>
7522 </desc>
7523 <param name="snapshot" type="ISnapshot" dir="in">
7524 <desc>The snapshot to restore the VM state from.</desc>
7525 </param>
7526 <param name="progress" type="IProgress" dir="return">
7527 <desc>Progress object to track the operation completion.</desc>
7528 </param>
7529 </method>
7530
7531 <method name="teleport">
7532 <desc>
7533 Teleport the VM to a different host machine or process.
7534
7535 TODO explain the details.
7536
7537 <result name="VBOX_E_INVALID_VM_STATE">
7538 Virtual machine not running or paused.
7539 </result>
7540 </desc>
7541 <param name="hostname" type="wstring" dir="in">
7542 <desc>The name or IP of the host to teleport to.</desc>
7543 </param>
7544 <param name="tcpport" type="unsigned long" dir="in">
7545 <desc>The TCP port to connect to (1..65535).</desc>
7546 </param>
7547 <param name="password" type="wstring" dir="in">
7548 <desc>The password.</desc>
7549 </param>
7550 <param name="maxDowntime" type="unsigned long" dir="in">
7551 <desc>
7552 The maximum allowed downtime given as milliseconds. 0 is not a valid
7553 value. Recommended value: 250 ms.
7554
7555 The higher the value is, the greater the chance for a successful
7556 teleportation. A small value may easily result in the teleportation
7557 process taking hours and eventually fail.
7558
7559 <note>
7560 The current implementation treats this a guideline, not as an
7561 absolute rule.
7562 </note>
7563 </desc>
7564 </param>
7565 <param name="progress" type="IProgress" dir="return">
7566 <desc>Progress object to track the operation completion.</desc>
7567 </param>
7568 </method>
7569
7570 </interface>
7571
7572 <!--
7573 // IHost
7574 /////////////////////////////////////////////////////////////////////////
7575 -->
7576
7577 <enum
7578 name="HostNetworkInterfaceMediumType"
7579 uuid="1aa54aaf-2497-45a2-bfb1-8eb225e93d5b"
7580 >
7581 <desc>
7582 Type of encapsulation. Ethernet encapsulation includes both wired and
7583 wireless Ethernet connections.
7584 <see><link to="IHostNetworkInterface"/></see>
7585 </desc>
7586
7587 <const name="Unknown" value="0">
7588 <desc>
7589 The type of interface cannot be determined.
7590 </desc>
7591 </const>
7592 <const name="Ethernet" value="1">
7593 <desc>
7594 Ethernet frame encapsulation.
7595 </desc>
7596 </const>
7597 <const name="PPP" value="2">
7598 <desc>
7599 Point-to-point protocol encapsulation.
7600 </desc>
7601 </const>
7602 <const name="SLIP" value="3">
7603 <desc>
7604 Serial line IP encapsulation.
7605 </desc>
7606 </const>
7607 </enum>
7608
7609 <enum
7610 name="HostNetworkInterfaceStatus"
7611 uuid="CC474A69-2710-434B-8D99-C38E5D5A6F41"
7612 >
7613 <desc>
7614 Current status of the interface.
7615 <see><link to="IHostNetworkInterface"/></see>
7616 </desc>
7617
7618 <const name="Unknown" value="0">
7619 <desc>
7620 The state of interface cannot be determined.
7621 </desc>
7622 </const>
7623 <const name="Up" value="1">
7624 <desc>
7625 The interface is fully operational.
7626 </desc>
7627 </const>
7628 <const name="Down" value="2">
7629 <desc>
7630 The interface is not functioning.
7631 </desc>
7632 </const>
7633 </enum>
7634
7635 <enum
7636 name="HostNetworkInterfaceType"
7637 uuid="67431b00-9946-48a2-bc02-b25c5919f4f3"
7638 >
7639 <desc>
7640 Network interface type.
7641 </desc>
7642 <const name="Bridged" value="1"/>
7643 <const name="HostOnly" value="2"/>
7644 </enum>
7645
7646 <interface
7647 name="IHostNetworkInterface" extends="$unknown"
7648 uuid="87a4153d-6889-4dd6-9654-2e9ff0ae8dec"
7649 wsmap="managed"
7650 >
7651 <desc>
7652 Represents one of host's network interfaces. IP V6 address and network
7653 mask are strings of 32 hexdecimal digits grouped by four. Groups are
7654 separated by colons.
7655 For example, fe80:0000:0000:0000:021e:c2ff:fed2:b030.
7656 </desc>
7657 <attribute name="name" type="wstring" readonly="yes">
7658 <desc>Returns the host network interface name.</desc>
7659 </attribute>
7660
7661 <attribute name="id" type="uuid" mod="string" readonly="yes">
7662 <desc>Returns the interface UUID.</desc>
7663 </attribute>
7664
7665 <attribute name="networkName" type="wstring" readonly="yes">
7666 <desc>Returns the name of a virtual network the interface gets attached to.</desc>
7667 </attribute>
7668
7669 <attribute name="DHCPEnabled" type="boolean" readonly="yes">
7670 <desc>Specifies whether the DHCP is enabled for the interface.</desc>
7671 </attribute>
7672
7673 <attribute name="IPAddress" type="wstring" readonly="yes">
7674 <desc>Returns the IP V4 address of the interface.</desc>
7675 </attribute>
7676
7677 <attribute name="networkMask" type="wstring" readonly="yes">
7678 <desc>Returns the network mask of the interface.</desc>
7679 </attribute>
7680
7681 <attribute name="IPV6Supported" type="boolean" readonly="yes">
7682 <desc>Specifies whether the IP V6 is supported/enabled for the interface.</desc>
7683 </attribute>
7684
7685 <attribute name="IPV6Address" type="wstring" readonly="yes">
7686 <desc>Returns the IP V6 address of the interface.</desc>
7687 </attribute>
7688
7689 <attribute name="IPV6NetworkMaskPrefixLength" type="unsigned long" readonly="yes">
7690 <desc>Returns the length IP V6 network mask prefix of the interface.</desc>
7691 </attribute>
7692
7693 <attribute name="hardwareAddress" type="wstring" readonly="yes">
7694 <desc>Returns the hardware address. For Ethernet it is MAC address.</desc>
7695 </attribute>
7696
7697 <attribute name="mediumType" type="HostNetworkInterfaceMediumType" readonly="yes">
7698 <desc>Type of protocol encapsulation used.</desc>
7699 </attribute>
7700
7701 <attribute name="status" type="HostNetworkInterfaceStatus" readonly="yes">
7702 <desc>Status of the interface.</desc>
7703 </attribute>
7704
7705 <attribute name="interfaceType" type="HostNetworkInterfaceType" readonly="yes">
7706 <desc>specifies the host interface type.</desc>
7707 </attribute>
7708
7709 <method name="enableStaticIPConfig">
7710 <desc>sets and enables the static IP V4 configuration for the given interface.</desc>
7711 <param name="IPAddress" type="wstring" dir="in">
7712 <desc>
7713 IP address.
7714 </desc>
7715 </param>
7716 <param name="networkMask" type="wstring" dir="in">
7717 <desc>
7718 network mask.
7719 </desc>
7720 </param>
7721 </method>
7722
7723 <method name="enableStaticIPConfigV6">
7724 <desc>sets and enables the static IP V6 configuration for the given interface.</desc>
7725 <param name="IPV6Address" type="wstring" dir="in">
7726 <desc>
7727 IP address.
7728 </desc>
7729 </param>
7730 <param name="IPV6NetworkMaskPrefixLength" type="unsigned long" dir="in">
7731 <desc>
7732 network mask.
7733 </desc>
7734 </param>
7735 </method>
7736
7737 <method name="enableDynamicIPConfig">
7738 <desc>enables the dynamic IP configuration.</desc>
7739 </method>
7740
7741 <method name="DHCPRediscover">
7742 <desc>refreshes the IP configuration for DHCP-enabled interface.</desc>
7743 </method>
7744
7745 </interface>
7746
7747 <interface
7748 name="IHost" extends="$unknown"
7749 uuid="30678943-32df-4830-b413-931b25ac86a0"
7750 wsmap="managed"
7751 >
7752 <desc>
7753 The IHost interface represents the physical machine that this VirtualBox
7754 installation runs on.
7755
7756 An object implementing this interface is returned by the
7757 <link to="IVirtualBox::host" /> attribute. This interface contains
7758 read-only information about the host's physical hardware (such as what
7759 processors and disks are available, what the host operating system is,
7760 and so on) and also allows for manipulating some of the host's hardware,
7761 such as global USB device filters and host interface networking.
7762
7763 </desc>
7764 <attribute name="DVDDrives" type="IMedium" readonly="yes" safearray="yes">
7765 <desc>List of DVD drives available on the host.</desc>
7766 </attribute>
7767
7768 <attribute name="floppyDrives" type="IMedium" readonly="yes" safearray="yes">
7769 <desc>List of floppy drives available on the host.</desc>
7770 </attribute>
7771
7772 <attribute name="USBDevices" type="IHostUSBDevice" readonly="yes" safearray="yes">
7773 <desc>
7774 List of USB devices currently attached to the host.
7775 Once a new device is physically attached to the host computer,
7776 it appears in this list and remains there until detached.
7777
7778 <note>
7779 If USB functionality is not available in the given edition of
7780 VirtualBox, this method will set the result code to @c E_NOTIMPL.
7781 </note>
7782 </desc>
7783 </attribute>
7784
7785 <attribute name="USBDeviceFilters" type="IHostUSBDeviceFilter" readonly="yes" safearray="yes">
7786 <desc>
7787 List of USB device filters in action.
7788 When a new device is physically attached to the host computer,
7789 filters from this list are applied to it (in order they are stored
7790 in the list). The first matched filter will determine the
7791 <link to="IHostUSBDeviceFilter::action">action</link>
7792 performed on the device.
7793
7794 Unless the device is ignored by these filters, filters of all
7795 currently running virtual machines
7796 (<link to="IUSBController::deviceFilters"/>) are applied to it.
7797
7798 <note>
7799 If USB functionality is not available in the given edition of
7800 VirtualBox, this method will set the result code to @c E_NOTIMPL.
7801 </note>
7802
7803 <see><link to="IHostUSBDeviceFilter"/>,
7804 <link to="USBDeviceState"/></see>
7805 </desc>
7806 </attribute>
7807
7808 <attribute name="networkInterfaces" type="IHostNetworkInterface" safearray="yes" readonly="yes">
7809 <desc>List of host network interfaces currently defined on the host.</desc>
7810 </attribute>
7811
7812 <attribute name="processorCount" type="unsigned long" readonly="yes">
7813 <desc>Number of (logical) CPUs installed in the host system.</desc>
7814 </attribute>
7815
7816 <attribute name="processorOnlineCount" type="unsigned long" readonly="yes">
7817 <desc>Number of (logical) CPUs online in the host system.</desc>
7818 </attribute>
7819
7820 <attribute name="processorCoreCount" type="unsigned long" readonly="yes">
7821 <desc>Number of physical processor cores installed in the host system.</desc>
7822 </attribute>
7823
7824 <method name="getProcessorSpeed">
7825 <desc>Query the (approximate) maximum speed of a specified host CPU in
7826 Megahertz.
7827 </desc>
7828 <param name="cpuId" type="unsigned long" dir="in">
7829 <desc>
7830 Identifier of the CPU.
7831 </desc>
7832 </param>
7833 <param name="speed" type="unsigned long" dir="return">
7834 <desc>
7835 Speed value. 0 is returned if value is not known or @a cpuId is
7836 invalid.
7837 </desc>
7838 </param>
7839 </method>
7840
7841 <method name="getProcessorFeature">
7842 <desc>Query whether a CPU feature is supported or not.</desc>
7843 <param name="feature" type="ProcessorFeature" dir="in">
7844 <desc>
7845 CPU Feature identifier.
7846 </desc>
7847 </param>
7848 <param name="supported" type="boolean" dir="return">
7849 <desc>
7850 Feature is supported or not.
7851 </desc>
7852 </param>
7853 </method>
7854
7855 <method name="getProcessorDescription">
7856 <desc>Query the model string of a specified host CPU.
7857 </desc>
7858 <param name="cpuId" type="unsigned long" dir="in">
7859 <desc>
7860 Identifier of the CPU.
7861 <note>
7862 The current implementation might not necessarily return the
7863 description for this exact CPU.
7864 </note>
7865 </desc>
7866 </param>
7867 <param name="description" type="wstring" dir="return">
7868 <desc>
7869 Model string. An empty string is returned if value is not known or
7870 @a cpuId is invalid.
7871 </desc>
7872 </param>
7873 </method>
7874
7875 <method name="getProcessorCPUIDLeaf">
7876 <desc>
7877 Returns the CPU cpuid information for the specified leaf.
7878 </desc>
7879 <param name="cpuId" type="unsigned long" dir="in">
7880 <desc>
7881 Identifier of the CPU. The CPU most be online.
7882 <note>
7883 The current implementation might not necessarily return the
7884 description for this exact CPU.
7885 </note>
7886 </desc>
7887 </param>
7888 <param name="leaf" type="unsigned long" dir="in">
7889 <desc>
7890 CPUID leaf index (eax).
7891 </desc>
7892 </param>
7893 <param name="subLeaf" type="unsigned long" dir="in">
7894 <desc>
7895 CPUID leaf sub index (ecx). This currently only applies to cache
7896 information on Intel CPUs. Use 0 if retrieving values for
7897 <link to="IMachine::setCPUIDLeaf"/>.
7898 </desc>
7899 </param>
7900 <param name="valEax" type="unsigned long" dir="out">
7901 <desc>
7902 CPUID leaf value for register eax.
7903 </desc>
7904 </param>
7905 <param name="valEbx" type="unsigned long" dir="out">
7906 <desc>
7907 CPUID leaf value for register ebx.
7908 </desc>
7909 </param>
7910 <param name="valEcx" type="unsigned long" dir="out">
7911 <desc>
7912 CPUID leaf value for register ecx.
7913 </desc>
7914 </param>
7915 <param name="valEdx" type="unsigned long" dir="out">
7916 <desc>
7917 CPUID leaf value for register edx.
7918 </desc>
7919 </param>
7920 </method>
7921
7922 <attribute name="memorySize" type="unsigned long" readonly="yes">
7923 <desc>Amount of system memory in megabytes installed in the host system.</desc>
7924 </attribute>
7925
7926 <attribute name="memoryAvailable" type="unsigned long" readonly="yes">
7927 <desc>Available system memory in the host system.</desc>
7928 </attribute>
7929
7930 <attribute name="operatingSystem" type="wstring" readonly="yes">
7931 <desc>Name of the host system's operating system.</desc>
7932 </attribute>
7933
7934 <attribute name="OSVersion" type="wstring" readonly="yes">
7935 <desc>Host operating system's version string.</desc>
7936 </attribute>
7937
7938 <attribute name="UTCTime" type="long long" readonly="yes">
7939 <desc>Returns the current host time in milliseconds since 1970-01-01 UTC.</desc>
7940 </attribute>
7941
7942 <attribute name="acceleration3DAvailable" type="boolean" readonly="yes">
7943 <desc>Returns @c true when the host supports 3D hardware acceleration.</desc>
7944 </attribute>
7945
7946 <method name="createHostOnlyNetworkInterface">
7947 <desc>
7948 Creates a new adapter for Host Only Networking.
7949 <result name="E_INVALIDARG">
7950 Host network interface @a name already exists.
7951 </result>
7952 </desc>
7953 <param name="hostInterface" type="IHostNetworkInterface" dir="out">
7954 <desc>
7955 Created host interface object.
7956 </desc>
7957 </param>
7958 <param name="progress" type="IProgress" dir="return">
7959 <desc>
7960 Progress object to track the operation completion.
7961 </desc>
7962 </param>
7963 </method>
7964
7965 <method name="removeHostOnlyNetworkInterface">
7966 <desc>
7967 Removes the given Host Only Networking interface.
7968 <result name="VBOX_E_OBJECT_NOT_FOUND">
7969 No host network interface matching @a id found.
7970 </result>
7971 </desc>
7972 <param name="id" type="uuid" mod="string" dir="in">
7973 <desc>
7974 Adapter GUID.
7975 </desc>
7976 </param>
7977 <param name="progress" type="IProgress" dir="return">
7978 <desc>
7979 Progress object to track the operation completion.
7980 </desc>
7981 </param>
7982 </method>
7983
7984 <method name="createUSBDeviceFilter">
7985 <desc>
7986 Creates a new USB device filter. All attributes except
7987 the filter name are set to empty (any match),
7988 <i>active</i> is @c false (the filter is not active).
7989
7990 The created filter can be added to the list of filters using
7991 <link to="#insertUSBDeviceFilter"/>.
7992
7993 <see><link to="#USBDeviceFilters"/></see>
7994 </desc>
7995 <param name="name" type="wstring" dir="in">
7996 <desc>
7997 Filter name. See <link to="IUSBDeviceFilter::name"/> for more information.
7998 </desc>
7999 </param>
8000 <param name="filter" type="IHostUSBDeviceFilter" dir="return">
8001 <desc>Created filter object.</desc>
8002 </param>
8003 </method>
8004
8005 <method name="insertUSBDeviceFilter">
8006 <desc>
8007 Inserts the given USB device to the specified position
8008 in the list of filters.
8009
8010 Positions are numbered starting from @c 0. If the specified
8011 position is equal to or greater than the number of elements in
8012 the list, the filter is added at the end of the collection.
8013
8014 <note>
8015 Duplicates are not allowed, so an attempt to insert a
8016 filter already in the list is an error.
8017 </note>
8018 <note>
8019 If USB functionality is not available in the given edition of
8020 VirtualBox, this method will set the result code to @c E_NOTIMPL.
8021 </note>
8022
8023 <see><link to="#USBDeviceFilters"/></see>
8024
8025 <result name="VBOX_E_INVALID_OBJECT_STATE">
8026 USB device filter is not created within this VirtualBox instance.
8027 </result>
8028 <result name="E_INVALIDARG">
8029 USB device filter already in list.
8030 </result>
8031
8032 </desc>
8033 <param name="position" type="unsigned long" dir="in">
8034 <desc>Position to insert the filter to.</desc>
8035 </param>
8036 <param name="filter" type="IHostUSBDeviceFilter" dir="in">
8037 <desc>USB device filter to insert.</desc>
8038 </param>
8039 </method>
8040
8041 <method name="removeUSBDeviceFilter">
8042 <desc>
8043 Removes a USB device filter from the specified position in the
8044 list of filters.
8045
8046 Positions are numbered starting from @c 0. Specifying a
8047 position equal to or greater than the number of elements in
8048 the list will produce an error.
8049
8050 <note>
8051 If USB functionality is not available in the given edition of
8052 VirtualBox, this method will set the result code to @c E_NOTIMPL.
8053 </note>
8054
8055 <see><link to="#USBDeviceFilters"/></see>
8056
8057 <result name="E_INVALIDARG">
8058 USB device filter list empty or invalid @a position.
8059 </result>
8060
8061 </desc>
8062 <param name="position" type="unsigned long" dir="in">
8063 <desc>Position to remove the filter from.</desc>
8064 </param>
8065 </method>
8066
8067 <method name="findHostDVDDrive">
8068 <desc>
8069 Searches for a host DVD drive with the given @c name.
8070
8071 <result name="VBOX_E_OBJECT_NOT_FOUND">
8072 Given @c name does not correspond to any host drive.
8073 </result>
8074
8075 </desc>
8076 <param name="name" type="wstring" dir="in">
8077 <desc>Name of the host drive to search for</desc>
8078 </param>
8079 <param name="drive" type="IMedium" dir="return">
8080 <desc>Found host drive object</desc>
8081 </param>
8082 </method>
8083
8084 <method name="findHostFloppyDrive">
8085 <desc>
8086 Searches for a host floppy drive with the given @c name.
8087
8088 <result name="VBOX_E_OBJECT_NOT_FOUND">
8089 Given @c name does not correspond to any host floppy drive.
8090 </result>
8091
8092 </desc>
8093 <param name="name" type="wstring" dir="in">
8094 <desc>Name of the host floppy drive to search for</desc>
8095 </param>
8096 <param name="drive" type="IMedium" dir="return">
8097 <desc>Found host floppy drive object</desc>
8098 </param>
8099 </method>
8100
8101 <method name="findHostNetworkInterfaceByName">
8102 <desc>
8103 Searches through all host network interfaces for an interface with
8104 the given @c name.
8105 <note>
8106 The method returns an error if the given @c name does not
8107 correspond to any host network interface.
8108 </note>
8109 </desc>
8110 <param name="name" type="wstring" dir="in">
8111 <desc>Name of the host network interface to search for.</desc>
8112 </param>
8113 <param name="networkInterface" type="IHostNetworkInterface" dir="return">
8114 <desc>Found host network interface object.</desc>
8115 </param>
8116 </method>
8117 <method name="findHostNetworkInterfaceById">
8118 <desc>
8119 Searches through all host network interfaces for an interface with
8120 the given GUID.
8121 <note>
8122 The method returns an error if the given GUID does not
8123 correspond to any host network interface.
8124 </note>
8125 </desc>
8126 <param name="id" type="uuid" mod="string" dir="in">
8127 <desc>GUID of the host network interface to search for.</desc>
8128 </param>
8129 <param name="networkInterface" type="IHostNetworkInterface" dir="return">
8130 <desc>Found host network interface object.</desc>
8131 </param>
8132 </method>
8133 <method name="findHostNetworkInterfacesOfType">
8134 <desc>
8135 Searches through all host network interfaces and returns a list of interfaces of the specified type
8136 </desc>
8137 <param name="type" type="HostNetworkInterfaceType" dir="in">
8138 <desc>type of the host network interfaces to search for.</desc>
8139 </param>
8140 <param name="networkInterfaces" type="IHostNetworkInterface" safearray="yes" dir="return">
8141 <desc>Found host network interface objects.</desc>
8142 </param>
8143 </method>
8144
8145 <method name="findUSBDeviceById">
8146 <desc>
8147 Searches for a USB device with the given UUID.
8148
8149 <result name="VBOX_E_OBJECT_NOT_FOUND">
8150 Given @c id does not correspond to any USB device.
8151 </result>
8152
8153 <see><link to="IUSBDevice::id"/></see>
8154 </desc>
8155 <param name="id" type="uuid" mod="string" dir="in">
8156 <desc>UUID of the USB device to search for.</desc>
8157 </param>
8158 <param name="device" type="IHostUSBDevice" dir="return">
8159 <desc>Found USB device object.</desc>
8160 </param>
8161 </method>
8162
8163 <method name="findUSBDeviceByAddress">
8164 <desc>
8165 Searches for a USB device with the given host address.
8166
8167 <result name="VBOX_E_OBJECT_NOT_FOUND">
8168 Given @c name does not correspond to any USB device.
8169 </result>
8170
8171 <see><link to="IUSBDevice::address"/></see>
8172 </desc>
8173 <param name="name" type="wstring" dir="in">
8174 <desc>
8175 Address of the USB device (as assigned by the host) to
8176 search for.
8177 </desc>
8178 </param>
8179 <param name="device" type="IHostUSBDevice" dir="return">
8180 <desc>Found USB device object.</desc>
8181 </param>
8182 </method>
8183
8184 <method name="generateMACAddress">
8185 <desc>
8186 Generates a valid Ethernet MAC address, 12 hexadecimal characters.
8187 </desc>
8188 <param name="address" type="wstring" dir="return">
8189 <desc>New Ethernet MAC address.</desc>
8190 </param>
8191 </method>
8192
8193 </interface>
8194
8195 <!--
8196 // ISystemProperties
8197 /////////////////////////////////////////////////////////////////////////
8198 -->
8199
8200 <interface
8201 name="ISystemProperties"
8202 extends="$unknown"
8203 uuid="1d7aca29-97f0-4287-9874-a60ec4f80ea6"
8204 wsmap="managed"
8205 >
8206 <desc>
8207 The ISystemProperties interface represents global properties of the given
8208 VirtualBox installation.
8209
8210 These properties define limits and default values for various attributes
8211 and parameters. Most of the properties are read-only, but some can be
8212 changed by a user.
8213 </desc>
8214
8215 <attribute name="minGuestRAM" type="unsigned long" readonly="yes">
8216 <desc>Minimum guest system memory in Megabytes.</desc>
8217 </attribute>
8218
8219 <attribute name="maxGuestRAM" type="unsigned long" readonly="yes">
8220 <desc>Maximum guest system memory in Megabytes.</desc>
8221 </attribute>
8222
8223 <attribute name="minGuestVRAM" type="unsigned long" readonly="yes">
8224 <desc>Minimum guest video memory in Megabytes.</desc>
8225 </attribute>
8226
8227 <attribute name="maxGuestVRAM" type="unsigned long" readonly="yes">
8228 <desc>Maximum guest video memory in Megabytes.</desc>
8229 </attribute>
8230
8231 <attribute name="minGuestCPUCount" type="unsigned long" readonly="yes">
8232 <desc>Minimum CPU count.</desc>
8233 </attribute>
8234
8235 <attribute name="maxGuestCPUCount" type="unsigned long" readonly="yes">
8236 <desc>Maximum CPU count.</desc>
8237 </attribute>
8238
8239 <attribute name="maxGuestMonitors" type="unsigned long" readonly="yes">
8240 <desc>Maximum of monitors which could be connected.</desc>
8241 </attribute>
8242
8243 <attribute name="infoVDSize" type="long long" readonly="yes">
8244 <desc>Maximum size of a virtual disk image in bytes. Informational value,
8245 does not reflect the limits of any virtual disk image format.</desc>
8246 </attribute>
8247
8248 <attribute name="serialPortCount" type="unsigned long" readonly="yes">
8249 <desc>
8250 Maximum number of serial ports associated with every
8251 <link to="IMachine"/> instance.
8252 </desc>
8253 </attribute>
8254
8255 <attribute name="parallelPortCount" type="unsigned long" readonly="yes">
8256 <desc>
8257 Maximum number of parallel ports associated with every
8258 <link to="IMachine"/> instance.
8259 </desc>
8260 </attribute>
8261
8262 <attribute name="maxBootPosition" type="unsigned long" readonly="yes">
8263 <desc>
8264 Maximum device position in the boot order. This value corresponds
8265 to the total number of devices a machine can boot from, to make it
8266 possible to include all possible devices to the boot list.
8267 <see><link to="IMachine::setBootOrder"/></see>
8268 </desc>
8269 </attribute>
8270
8271 <attribute name="defaultMachineFolder" type="wstring">
8272 <desc>
8273 Full path to the default directory used to create new or open
8274 existing machines when a machine settings file name contains no
8275 path.
8276
8277 Starting with VirtualBox 4.0, by default, this attribute contains
8278 the full path of folder named "VirtualBox VMs" in the user's
8279 home directory, which depends on the host platform.
8280
8281 When setting this attribute, a full path must be specified.
8282 Setting this property to @c null or an empty string or the
8283 special value "Machines" (for compatibility reasons) will restore
8284 that default value.
8285
8286 If the folder specified herein does not exist, it will be created
8287 automatically as needed.
8288
8289 <see>
8290 <link to="IVirtualBox::createMachine"/>,
8291 <link to="IVirtualBox::openMachine"/>
8292 </see>
8293 </desc>
8294 </attribute>
8295
8296 <attribute name="mediumFormats" type="IMediumFormat" safearray="yes" readonly="yes">
8297 <desc>
8298 List of all medium storage formats supported by this VirtualBox
8299 installation.
8300
8301 Keep in mind that the medium format identifier
8302 (<link to="IMediumFormat::id"/>) used in other API calls like
8303 <link to="IVirtualBox::createHardDisk"/> to refer to a particular
8304 medium format is a case-insensitive string. This means that, for
8305 example, all of the following strings:
8306 <pre>
8307 "VDI"
8308 "vdi"
8309 "VdI"</pre>
8310 refer to the same medium format.
8311
8312 Note that the virtual medium framework is backend-based, therefore
8313 the list of supported formats depends on what backends are currently
8314 installed.
8315
8316 <see><link to="IMediumFormat"/></see>
8317 </desc>
8318 </attribute>
8319
8320 <attribute name="defaultHardDiskFormat" type="wstring">
8321 <desc>
8322 Identifier of the default medium format used by VirtualBox.
8323
8324 The medium format set by this attribute is used by VirtualBox
8325 when the medium format was not specified explicitly. One example is
8326 <link to="IVirtualBox::createHardDisk"/> with the empty
8327 format argument. A more complex example is implicit creation of
8328 differencing media when taking a snapshot of a virtual machine:
8329 this operation will try to use a format of the parent medium first
8330 and if this format does not support differencing media the default
8331 format specified by this argument will be used.
8332
8333 The list of supported medium formats may be obtained by the
8334 <link to="#mediumFormats"/> call. Note that the default medium
8335 format must have a capability to create differencing media;
8336 otherwise operations that create media implicitly may fail
8337 unexpectedly.
8338
8339 The initial value of this property is <tt>"VDI"</tt> in the current
8340 version of the VirtualBox product, but may change in the future.
8341
8342 <note>
8343 Setting this property to @c null or empty string will restore the
8344 initial value.
8345 </note>
8346
8347 <see>
8348 <link to="#mediumFormats"/>,
8349 <link to="IMediumFormat::id"/>,
8350 <link to="IVirtualBox::createHardDisk"/>
8351 </see>
8352 </desc>
8353 </attribute>
8354
8355 <attribute name="freeDiskSpaceWarning" type="long long">
8356 <desc>Issue a warning if the free disk space is below (or in some disk
8357 intensive operation is expected to go below) the given size in
8358 bytes.</desc>
8359 </attribute>
8360
8361 <attribute name="freeDiskSpacePercentWarning" type="unsigned long">
8362 <desc>Issue a warning if the free disk space is below (or in some disk
8363 intensive operation is expected to go below) the given percentage.</desc>
8364 </attribute>
8365
8366 <attribute name="freeDiskSpaceError" type="long long">
8367 <desc>Issue an error if the free disk space is below (or in some disk
8368 intensive operation is expected to go below) the given size in
8369 bytes.</desc>
8370 </attribute>
8371
8372 <attribute name="freeDiskSpacePercentError" type="unsigned long">
8373 <desc>Issue an error if the free disk space is below (or in some disk
8374 intensive operation is expected to go below) the given percentage.</desc>
8375 </attribute>
8376
8377 <attribute name="VRDEAuthLibrary" type="wstring">
8378 <desc>
8379 Library that provides authentication for Remote Desktop clients. The library
8380 is used if a virtual machine's authentication type is set to "external"
8381 in the VM RemoteDisplay configuration.
8382
8383 The system library extension (".DLL" or ".so") must be omitted.
8384 A full path can be specified; if not, then the library must reside on the
8385 system's default library path.
8386
8387 The default value of this property is <tt>"VBoxAuth"</tt>. There is a library
8388 of that name in one of the default VirtualBox library directories.
8389
8390 For details about VirtualBox authentication libraries and how to implement
8391 them, please refer to the VirtualBox manual.
8392
8393 <note>
8394 Setting this property to @c null or empty string will restore the
8395 initial value.
8396 </note>
8397 </desc>
8398 </attribute>
8399
8400 <attribute name="webServiceAuthLibrary" type="wstring">
8401 <desc>
8402 Library that provides authentication for webservice clients. The library
8403 is used if a virtual machine's authentication type is set to "external"
8404 in the VM RemoteDisplay configuration and will be called from
8405 within the <link to="IWebsessionManager::logon" /> implementation.
8406
8407 As opposed to <link to="ISystemProperties::VRDEAuthLibrary" />,
8408 there is no per-VM setting for this, as the webservice is a global
8409 resource (if it is running). Only for this setting (for the webservice),
8410 setting this value to a literal <tt>"null"</tt> string disables authentication,
8411 meaning that <link to="IWebsessionManager::logon" /> will always succeed,
8412 no matter what user name and password are supplied.
8413
8414 The initial value of this property is <tt>"VBoxAuth"</tt>,
8415 meaning that the webservice will use the same authentication
8416 library that is used by default for VRDE (again, see
8417 <link to="ISystemProperties::VRDEAuthLibrary" />).
8418 The format and calling convention of authentication libraries
8419 is the same for the webservice as it is for VRDE.
8420
8421 <note>
8422 Setting this property to @c null or empty string will restore the
8423 initial value.
8424 </note>
8425 </desc>
8426 </attribute>
8427
8428 <attribute name="defaultVRDEExtPack" type="wstring">
8429 <desc>
8430 The name of the extension pack providing the default VRDE.
8431
8432 This attribute is for choosing between multiple extension packs
8433 providing VRDE. If only one is installed, it will automatically be the
8434 default one. The attribute value can be empty if no VRDE extension
8435 pack is installed.
8436
8437 For details about VirtualBox Remote Desktop Extension and how to
8438 implement one, please refer to the VirtualBox SDK.
8439 </desc>
8440 </attribute>
8441
8442 <attribute name="logHistoryCount" type="unsigned long">
8443 <desc>
8444 This value specifies how many old release log files are kept.
8445 </desc>
8446 </attribute>
8447
8448 <attribute name="defaultAudioDriver" type="AudioDriverType" readonly="yes">
8449 <desc>This value hold the default audio driver for the current
8450 system.</desc>
8451 </attribute>
8452
8453 <attribute name="autostartDatabasePath" type="wstring">
8454 <desc>
8455 The path to the autostart database. Depending on the host this might
8456 be a filesystem path or something else.
8457 </desc>
8458 </attribute>
8459
8460 <attribute name="defaultAdditionsISO" type="wstring">
8461 <desc>
8462 The path to the default Guest Additions ISO image. Can be empty if
8463 the location is not known in this installation.
8464 </desc>
8465 </attribute>
8466
8467 <method name="getMaxNetworkAdapters">
8468 <desc>
8469 Maximum total number of network adapters associated with every
8470 <link to="IMachine"/> instance.
8471 </desc>
8472
8473 <param name="chipset" type="ChipsetType" dir="in">
8474 <desc>The chipset type to get the value for.</desc>
8475 </param>
8476
8477
8478 <param name="maxNetworkAdapters" type="unsigned long" dir="return">
8479 <desc>The maximum total number of network adapters allowed.</desc>
8480 </param>
8481
8482 </method>
8483
8484 <method name="getMaxNetworkAdaptersOfType">
8485 <desc>
8486 Maximum number of network adapters of a given attachment type,
8487 associated with every <link to="IMachine"/> instance.
8488 </desc>
8489
8490 <param name="chipset" type="ChipsetType" dir="in">
8491 <desc>The chipset type to get the value for.</desc>
8492 </param>
8493
8494 <param name="type" type="NetworkAttachmentType" dir="in">
8495 <desc>Type of attachment.</desc>
8496 </param>
8497
8498 <param name="maxNetworkAdapters" type="unsigned long" dir="return">
8499 <desc>The maximum number of network adapters allowed for
8500 particular chipset and attachment type.</desc>
8501 </param>
8502
8503 </method>
8504
8505
8506 <method name="getMaxDevicesPerPortForStorageBus">
8507 <desc>Returns the maximum number of devices which can be attached to a port
8508 for the given storage bus.</desc>
8509
8510 <param name="bus" type="StorageBus" dir="in">
8511 <desc>The storage bus type to get the value for.</desc>
8512 </param>
8513
8514 <param name="maxDevicesPerPort" type="unsigned long" dir="return">
8515 <desc>The maximum number of devices which can be attached to the port for the given
8516 storage bus.</desc>
8517 </param>
8518 </method>
8519
8520 <method name="getMinPortCountForStorageBus">
8521 <desc>Returns the minimum number of ports the given storage bus supports.</desc>
8522
8523 <param name="bus" type="StorageBus" dir="in">
8524 <desc>The storage bus type to get the value for.</desc>
8525 </param>
8526
8527 <param name="minPortCount" type="unsigned long" dir="return">
8528 <desc>The minimum number of ports for the given storage bus.</desc>
8529 </param>
8530 </method>
8531
8532 <method name="getMaxPortCountForStorageBus">
8533 <desc>Returns the maximum number of ports the given storage bus supports.</desc>
8534
8535 <param name="bus" type="StorageBus" dir="in">
8536 <desc>The storage bus type to get the value for.</desc>
8537 </param>
8538
8539 <param name="maxPortCount" type="unsigned long" dir="return">
8540 <desc>The maximum number of ports for the given storage bus.</desc>
8541 </param>
8542 </method>
8543
8544 <method name="getMaxInstancesOfStorageBus">
8545 <desc>Returns the maximum number of storage bus instances which
8546 can be configured for each VM. This corresponds to the number of
8547 storage controllers one can have. Value may depend on chipset type
8548 used.</desc>
8549
8550 <param name="chipset" type="ChipsetType" dir="in">
8551 <desc>The chipset type to get the value for.</desc>
8552 </param>
8553
8554 <param name="bus" type="StorageBus" dir="in">
8555 <desc>The storage bus type to get the value for.</desc>
8556 </param>
8557
8558 <param name="maxInstances" type="unsigned long" dir="return">
8559 <desc>The maximum number of instances for the given storage bus.</desc>
8560 </param>
8561 </method>
8562
8563 <method name="getDeviceTypesForStorageBus">
8564 <desc>Returns list of all the supported device types
8565 (<link to="DeviceType"/>) for the given type of storage
8566 bus.</desc>
8567
8568 <param name="bus" type="StorageBus" dir="in">
8569 <desc>The storage bus type to get the value for.</desc>
8570 </param>
8571
8572 <param name="deviceTypes" type="DeviceType" safearray="yes" dir="return">
8573 <desc>The list of all supported device types for the given storage bus.</desc>
8574 </param>
8575 </method>
8576
8577 <method name="getDefaultIoCacheSettingForStorageController">
8578 <desc>Returns the default I/O cache setting for the
8579 given storage controller</desc>
8580
8581 <param name="controllerType" type="StorageControllerType" dir="in">
8582 <desc>The storage controller to the setting for.</desc>
8583 </param>
8584
8585 <param name="enabled" type="boolean" dir="return">
8586 <desc>Returned flag indicating the default value</desc>
8587 </param>
8588 </method>
8589 </interface>
8590
8591 <!--
8592 // IGuest
8593 /////////////////////////////////////////////////////////////////////////
8594 -->
8595
8596 <interface
8597 name="IGuestOSType" extends="$unknown"
8598 uuid="6d968f9a-858b-4c50-bf17-241f069e94c2"
8599 wsmap="struct"
8600 >
8601 <desc>
8602 </desc>
8603
8604 <attribute name="familyId" type="wstring" readonly="yes">
8605 <desc>Guest OS family identifier string.</desc>
8606 </attribute>
8607
8608 <attribute name="familyDescription" type="wstring" readonly="yes">
8609 <desc>Human readable description of the guest OS family.</desc>
8610 </attribute>
8611
8612 <attribute name="id" type="wstring" readonly="yes">
8613 <desc>Guest OS identifier string.</desc>
8614 </attribute>
8615
8616 <attribute name="description" type="wstring" readonly="yes">
8617 <desc>Human readable description of the guest OS.</desc>
8618 </attribute>
8619
8620 <attribute name="is64Bit" type="boolean" readonly="yes">
8621 <desc>Returns @c true if the given OS is 64-bit</desc>
8622 </attribute>
8623
8624 <attribute name="recommendedIOAPIC" type="boolean" readonly="yes">
8625 <desc>Returns @c true if IO APIC recommended for this OS type.</desc>
8626 </attribute>
8627
8628 <attribute name="recommendedVirtEx" type="boolean" readonly="yes">
8629 <desc>Returns @c true if VT-x or AMD-V recommended for this OS type.</desc>
8630 </attribute>
8631
8632 <attribute name="recommendedRAM" type="unsigned long" readonly="yes">
8633 <desc>Recommended RAM size in Megabytes.</desc>
8634 </attribute>
8635
8636 <attribute name="recommendedVRAM" type="unsigned long" readonly="yes">
8637 <desc>Recommended video RAM size in Megabytes.</desc>
8638 </attribute>
8639
8640 <attribute name="recommended2DVideoAcceleration" type="boolean" readonly="yes">
8641 <desc>Returns @c true if 2D video acceleration is recommended for this OS type.</desc>
8642 </attribute>
8643
8644 <attribute name="recommended3DAcceleration" type="boolean" readonly="yes">
8645 <desc>Returns @c true if 3D acceleration is recommended for this OS type.</desc>
8646 </attribute>
8647
8648 <attribute name="recommendedHDD" type="long long" readonly="yes">
8649 <desc>Recommended hard disk size in bytes.</desc>
8650 </attribute>
8651
8652 <attribute name="adapterType" type="NetworkAdapterType" readonly="yes">
8653 <desc>Returns recommended network adapter for this OS type.</desc>
8654 </attribute>
8655
8656 <attribute name="recommendedPAE" type="boolean" readonly="yes">
8657 <desc>Returns @c true if using PAE is recommended for this OS type.</desc>
8658 </attribute>
8659
8660 <attribute name="recommendedDVDStorageController" type="StorageControllerType" readonly="yes">
8661 <desc>Recommended storage controller type for DVD/CD drives.</desc>
8662 </attribute>
8663
8664 <attribute name="recommendedDVDStorageBus" type="StorageBus" readonly="yes">
8665 <desc>Recommended storage bus type for DVD/CD drives.</desc>
8666 </attribute>
8667
8668 <attribute name="recommendedHDStorageController" type="StorageControllerType" readonly="yes">
8669 <desc>Recommended storage controller type for HD drives.</desc>
8670 </attribute>
8671
8672 <attribute name="recommendedHDStorageBus" type="StorageBus" readonly="yes">
8673 <desc>Recommended storage bus type for HD drives.</desc>
8674 </attribute>
8675
8676 <attribute name="recommendedFirmware" type="FirmwareType" readonly="yes">
8677 <desc>Recommended firmware type.</desc>
8678 </attribute>
8679
8680 <attribute name="recommendedUSBHID" type="boolean" readonly="yes">
8681 <desc>Returns @c true if using USB Human Interface Devices, such as keyboard and mouse recommended.</desc>
8682 </attribute>
8683
8684 <attribute name="recommendedHPET" type="boolean" readonly="yes">
8685 <desc>Returns @c true if using HPET is recommended for this OS type.</desc>
8686 </attribute>
8687
8688 <attribute name="recommendedUSBTablet" type="boolean" readonly="yes">
8689 <desc>Returns @c true if using a USB Tablet is recommended.</desc>
8690 </attribute>
8691
8692 <attribute name="recommendedRTCUseUTC" type="boolean" readonly="yes">
8693 <desc>Returns @c true if the RTC of this VM should be set to UTC</desc>
8694 </attribute>
8695
8696 <attribute name="recommendedChipset" type="ChipsetType" readonly="yes">
8697 <desc>Recommended chipset type.</desc>
8698 </attribute>
8699
8700 <attribute name="recommendedAudioController" type="AudioControllerType" readonly="yes">
8701 <desc>Recommended audio type.</desc>
8702 </attribute>
8703
8704 <attribute name="recommendedFloppy" type="boolean" readonly="yes">
8705 <desc>Returns @c true a floppy drive is recommended for this OS type.</desc>
8706 </attribute>
8707
8708 <attribute name="recommendedUSB" type="boolean" readonly="yes">
8709 <desc>Returns @c true a USB controller is recommended for this OS type.</desc>
8710 </attribute>
8711
8712 </interface>
8713
8714 <enum
8715 name="AdditionsFacilityType"
8716 uuid="98f7f957-89fb-49b6-a3b1-31e3285eb1d8"
8717 >
8718 <desc>
8719 Guest Additions facility IDs.
8720 </desc>
8721
8722 <const name="None" value="0">
8723 <desc>No/invalid facility.</desc>
8724 </const>
8725 <const name="VBoxGuestDriver" value="20">
8726 <desc>VirtualBox base driver (VBoxGuest).</desc>
8727 </const>
8728 <const name="AutoLogon" value="90">
8729 <desc>Auto-logon modules (VBoxGINA, VBoxCredProv, pam_vbox).</desc>
8730 </const>
8731 <const name="VBoxService" value="100">
8732 <desc>VirtualBox system service (VBoxService).</desc>
8733 </const>
8734 <const name="VBoxTrayClient" value="101">
8735 <desc>VirtualBox desktop integration (VBoxTray on Windows, VBoxClient on non-Windows).</desc>
8736 </const>
8737 <const name="Seamless" value="1000">
8738 <desc>Seamless guest desktop integration.</desc>
8739 </const>
8740 <const name="Graphics" value="1100">
8741 <desc>Guest graphics mode. If not enabled, seamless rendering will not work, resize hints
8742 are not immediately acted on and guest display resizes are probably not initiated by
8743 the guest additions.
8744 </desc>
8745 </const>
8746 <const name="All" value="2147483646">
8747 <desc>All facilities selected.</desc>
8748 </const>
8749 </enum>
8750
8751 <enum
8752 name="AdditionsFacilityClass"
8753 uuid="446451b2-c88d-4e5d-84c9-91bc7f533f5f"
8754 >
8755 <desc>
8756 Guest Additions facility classes.
8757 </desc>
8758
8759 <const name="None" value="0">
8760 <desc>No/invalid class.</desc>
8761 </const>
8762 <const name="Driver" value="10">
8763 <desc>Driver.</desc>
8764 </const>
8765 <const name="Service" value="30">
8766 <desc>System service.</desc>
8767 </const>
8768 <const name="Program" value="50">
8769 <desc>Program.</desc>
8770 </const>
8771 <const name="Feature" value="100">
8772 <desc>Feature.</desc>
8773 </const>
8774 <const name="ThirdParty" value="999">
8775 <desc>Third party.</desc>
8776 </const>
8777 <const name="All" value="2147483646">
8778 <desc>All facility classes selected.</desc>
8779 </const>
8780 </enum>
8781
8782 <enum
8783 name="AdditionsFacilityStatus"
8784 uuid="ce06f9e1-394e-4fe9-9368-5a88c567dbde"
8785 >
8786 <desc>
8787 Guest Additions facility states.
8788 </desc>
8789
8790 <const name="Inactive" value="0">
8791 <desc>Facility is not active.</desc>
8792 </const>
8793 <const name="Paused" value="1">
8794 <desc>Facility has been paused.</desc>
8795 </const>
8796 <const name="PreInit" value="20">
8797 <desc>Facility is preparing to initialize.</desc>
8798 </const>
8799 <const name="Init" value="30">
8800 <desc>Facility is initializing.</desc>
8801 </const>
8802 <const name="Active" value="50">
8803 <desc>Facility is up and running.</desc>
8804 </const>
8805 <const name="Terminating" value="100">
8806 <desc>Facility is shutting down.</desc>
8807 </const>
8808 <const name="Terminated" value="101">
8809 <desc>Facility successfully shut down.</desc>
8810 </const>
8811 <const name="Failed" value="800">
8812 <desc>Facility failed to start.</desc>
8813 </const>
8814 <const name="Unknown" value="999">
8815 <desc>Facility status is unknown.</desc>
8816 </const>
8817 </enum>
8818
8819 <interface
8820 name="IAdditionsFacility" extends="$unknown"
8821 uuid="54992946-6af1-4e49-98ec-58b558b7291e"
8822 wsmap="struct"
8823 >
8824 <desc>
8825 Structure representing a Guest Additions facility.
8826 </desc>
8827
8828 <attribute name="classType" type="AdditionsFacilityClass" readonly="yes">
8829 <desc>The class this facility is part of.</desc>
8830 </attribute>
8831
8832 <attribute name="lastUpdated" type="long long" readonly="yes">
8833 <desc>
8834 Time stamp of the last status update,
8835 in milliseconds since 1970-01-01 UTC.
8836 </desc>
8837 </attribute>
8838
8839 <attribute name="name" type="wstring" readonly="yes">
8840 <desc>The facility's friendly name.</desc>
8841 </attribute>
8842
8843 <attribute name="status" type="AdditionsFacilityStatus" readonly="yes">
8844 <desc>The current status.</desc>
8845 </attribute>
8846
8847 <attribute name="type" type="AdditionsFacilityType" readonly="yes">
8848 <desc>The facility's type ID.</desc>
8849 </attribute>
8850 </interface>
8851
8852 <enum
8853 name="AdditionsRunLevelType"
8854 uuid="a25417ee-a9dd-4f5b-b0dc-377860087754"
8855 >
8856 <desc>
8857 Guest Additions run level type.
8858 </desc>
8859
8860 <const name="None" value="0">
8861 <desc>Guest Additions are not loaded.</desc>
8862 </const>
8863 <const name="System" value="1">
8864 <desc>Guest drivers are loaded.</desc>
8865 </const>
8866 <const name="Userland" value="2">
8867 <desc>Common components (such as application services) are loaded.</desc>
8868 </const>
8869 <const name="Desktop" value="3">
8870 <desc>Per-user desktop components are loaded.</desc>
8871 </const>
8872 </enum>
8873
8874 <enum
8875 name="AdditionsUpdateFlag"
8876 uuid="726a818d-18d6-4389-94e8-3e9e6826171a"
8877 >
8878 <desc>
8879 Guest Additions update flags.
8880 </desc>
8881
8882 <const name="None" value="0">
8883 <desc>No flag set.</desc>
8884 </const>
8885 <const name="WaitForUpdateStartOnly" value="1">
8886 <desc>Only wait for the update process being started and do not
8887 wait while peforming the actual update.</desc>
8888 </const>
8889 </enum>
8890
8891 <enum
8892 name="ExecuteProcessFlag"
8893 uuid="1c49b831-b2c7-4a30-97dd-999a2e2cbf90"
8894 >
8895 <desc>
8896 Guest process execution flags.
8897 </desc>
8898
8899 <const name="None" value="0">
8900 <desc>No flag set.</desc>
8901 </const>
8902 <const name="WaitForProcessStartOnly" value="1">
8903 <desc>Only use the specified timeout value to wait for starting the guest process - the guest
8904 process itself then uses an infinite timeout.</desc>
8905 </const>
8906 <const name="IgnoreOrphanedProcesses" value="2">
8907 <desc>Do not report an error when executed processes are still alive when VBoxService or the guest OS is shutting down.</desc>
8908 </const>
8909 <const name="Hidden" value="4">
8910 <desc>Do not show the started process according to the guest OS guidelines.</desc>
8911 </const>
8912 <const name="NoProfile" value="8">
8913 <desc>Do not use the user's profile data when exeuting a process. Only available for Windows guests.</desc>
8914 </const>
8915 <const name="WaitForStdOut" value="16">
8916 <desc>The guest process waits until all data from stdout is read out.</desc>
8917 </const>
8918 <const name="WaitForStdErr" value="32">
8919 <desc>The guest process waits until all data from stderr is read out.</desc>
8920 </const>
8921 </enum>
8922
8923 <enum
8924 name="ExecuteProcessStatus"
8925 uuid="153768d9-d971-4098-8b5a-c5cb1ab9ea88"
8926 >
8927 <desc>
8928 Guest process execution status.
8929 </desc>
8930 <const name="Undefined" value="0">
8931 <desc>Process is in an undefined state.</desc>
8932 </const>
8933
8934 <const name="Started" value="1">
8935 <desc>Process has been started.</desc>
8936 </const>
8937 <const name="TerminatedNormally" value="2">
8938 <desc>Process terminated normally.</desc>
8939 </const>
8940 <const name="TerminatedSignal" value="3">
8941 <desc>Process terminated via signal.</desc>
8942 </const>
8943 <const name="TerminatedAbnormally" value="4">
8944 <desc>Process terminated abnormally.</desc>
8945 </const>
8946 <const name="TimedOutKilled" value="5">
8947 <desc>Process timed out and was killed.</desc>
8948 </const>
8949 <const name="TimedOutAbnormally" value="6">
8950 <desc>Process timed out and was not killed successfully.</desc>
8951 </const>
8952 <const name="Down" value="7">
8953 <desc>Service/OS is stopping, process was killed.</desc>
8954 </const>
8955 <const name="Error" value="8">
8956 <desc>Something went wrong (error code in flags).</desc>
8957 </const>
8958 </enum>
8959
8960 <enum
8961 name="FileSeekType"
8962 uuid="1b73f4f3-3515-4073-a506-76878d9e2541"
8963 >
8964 <desc>
8965 File seeking types.
8966 </desc>
8967
8968 <const name="Set" value="0">
8969 <desc>Seek from the start of the file.</desc>
8970 </const>
8971 <const name="Current" value="1">
8972 <desc>Seek from the current file position.</desc>
8973 </const>
8974 </enum>
8975
8976 <enum
8977 name="ProcessInputFlag"
8978 uuid="5d38c1dd-2604-4ddf-92e5-0c0cdd3bdbd5"
8979 >
8980 <desc>
8981 Guest process input flags.
8982 </desc>
8983 <const name="None" value="0">
8984 <desc>No flag set.</desc>
8985 </const>
8986 <const name="EndOfFile" value="1">
8987 <desc>End of file (input) reached.</desc>
8988 </const>
8989 </enum>
8990
8991 <enum
8992 name="ProcessOutputFlag"
8993 uuid="9979e85a-52bb-40b7-870c-57115e27e0f1"
8994 >
8995 <desc>
8996 Guest process output flags for specifying which
8997 type of output to retrieve.
8998 </desc>
8999 <const name="None" value="0">
9000 <desc>No flags set. Get output from stdout.</desc>
9001 </const>
9002 <const name="StdErr" value="1">
9003 <desc>Get output from stderr.</desc>
9004 </const>
9005 </enum>
9006
9007 <enum
9008 name="ProcessWaitForFlag"
9009 uuid="23b550c7-78e1-437e-98f0-65fd9757bcd2"
9010 >
9011 <desc>
9012 Process waiting flags. Multiple flags can be combined.
9013 </desc>
9014
9015 <const name="None" value="0">
9016 <desc>No waiting flags specified. Do not use this.</desc>
9017 </const>
9018 <const name="Start" value="1">
9019 <desc>Wait for the process being started.</desc>
9020 </const>
9021 <const name="Terminate" value="2">
9022 <desc>Wait for the process being terminated.</desc>
9023 </const>
9024 <const name="StdIn" value="4">
9025 <desc>Wait for stdin becoming available.</desc>
9026 </const>
9027 <const name="StdOut" value="8">
9028 <desc>Wait for data becoming available on stdout.</desc>
9029 </const>
9030 <const name="StdErr" value="16">
9031 <desc>Wait for data becoming available on stderr.</desc>
9032 </const>
9033 </enum>
9034
9035 <enum
9036 name="ProcessWaitResult"
9037 uuid="24a4d49f-a7c1-44b0-b01f-5686a316466b"
9038 >
9039 <desc>
9040 Process waiting results. Depending on the process waiting flags (for
9041 more information see <link to="ProcessWaitForFlag"/>) the waiting result
9042 can vary based on the processes' current status.
9043
9044 To wait for a gust process to terminate after it has been
9045 created by <link to="IGuestSession::processCreate"/> or <link to="IGuestSession::processCreateEx"/>
9046 one would specify ProcessWaitResult_Terminate.
9047
9048 If a guest process has been started with ProcessCreateFlag_WaitForStdOut
9049 a client can wait with ProcessWaitResult_StdOut for new data to arrive on
9050 stdout; same applies for ProcessCreateFlag_WaitForStdErr and
9051 ProcessWaitResult_StdErr.
9052 </desc>
9053
9054 <const name="None" value="0">
9055 <desc>No result was returned. Not being used.</desc>
9056 </const>
9057 <const name="Start" value="1">
9058 <desc>The process has been started.</desc>
9059 </const>
9060 <const name="Terminate" value="2">
9061 <desc>The process has been terminated.</desc>
9062 </const>
9063 <const name="Status" value="3">
9064 <desc>
9065 The process has changed its status. The status then can
9066 be retrieved via <link to="IProcess::status"/>.
9067 </desc>
9068 </const>
9069 <const name="Error" value="4">
9070 <desc>Error while executing the process.</desc>
9071 </const>
9072 <const name="Timeout" value="5">
9073 <desc>
9074 The waiting operation timed out. This also will happen
9075 when no event has been occured matching the specified the
9076 current waiting flags in the <link to="IProcess::waitFor"/> call.
9077 </desc>
9078 </const>
9079 <const name="StdIn" value="6">
9080 <desc>
9081 The process signalled that stdin became available for writing
9082 and that the process awaits input now.</desc>
9083 </const>
9084 <const name="StdOut" value="7">
9085 <desc>Data on stdout became available for reading.</desc>
9086 </const>
9087 <const name="StdErr" value="8">
9088 <desc>Data on stderr became available for reading.</desc>
9089 </const>
9090 <const name="Any" value="9">
9091 <desc>
9092 A waiting flag specified in the <link to="IProcess::waitFor"/> call
9093 is not supported by the guest.
9094 </desc>
9095 </const>
9096 </enum>
9097
9098 <enum
9099 name="CopyFileFlag"
9100 uuid="23f79fdf-738a-493d-b80b-42d607c9b916"
9101 >
9102 <desc>
9103 File copying flags.
9104 </desc>
9105 <const name="None" value="0">
9106 <desc>No flag set.</desc>
9107 </const>
9108 <const name="Recursive" value="1">
9109 <desc>Copy directories recursively.</desc>
9110 </const>
9111 <const name="Update" value="2">
9112 <desc>Only copy when the source file is newer than the destination file or when the destination file is missing.</desc>
9113 </const>
9114 <const name="FollowLinks" value="4">
9115 <desc>Follow symbolic links.</desc>
9116 </const>
9117 </enum>
9118
9119 <enum
9120 name="DirectoryCreateFlag"
9121 uuid="bd721b0e-ced5-4f79-b368-249897c32a36"
9122 >
9123 <desc>
9124 Directory creation flags.
9125 </desc>
9126 <const name="None" value="0">
9127 <desc>No flag set.</desc>
9128 </const>
9129 <const name="Parents" value="1">
9130 <desc>No error if existing, make parent directories as needed.</desc>
9131 </const>
9132 </enum>
9133
9134 <enum
9135 name="DirectoryRemoveRecFlag"
9136 uuid="455aabf0-7692-48f6-9061-f21579b65769"
9137 >
9138 <desc>
9139 Directory recursive removement flags.
9140 </desc>
9141
9142 <const name="None" value="0">
9143 <desc>No flag set.</desc>
9144 </const>
9145 <const name="ContentAndDir" value="1">
9146 <desc>Delete the content of the directory and the directory itself.</desc>
9147 </const>
9148 <const name="ContentOnly" value="2">
9149 <desc>Only delete the content of the directory, omit the directory it self.</desc>
9150 </const>
9151 </enum>
9152
9153 <enum
9154 name="PathRenameFlag"
9155 uuid="f3baa09f-c758-453d-b91c-c7787d76351d"
9156 >
9157 <desc>
9158 Path renaming flags.
9159 </desc>
9160
9161 <const name="None" value="0">
9162 <desc>No flag set.</desc>
9163 </const>
9164 <const name="NoReplace" value="1">
9165 <desc>Do not replace anything.</desc>
9166 </const>
9167 <const name="Replace" value="2">
9168 <desc>This will replace attempt any target which isn't a directory.</desc>
9169 </const>
9170 <const name="NoSymlinks" value="4">
9171 <desc>Don't allow symbolic links as part of the path.</desc>
9172 </const>
9173 </enum>
9174
9175 <enum
9176 name="ProcessCreateFlag"
9177 uuid="35192799-bfde-405d-9bea-c735ab9998e4"
9178 >
9179 <desc>
9180 Guest process execution flags.
9181 </desc>
9182
9183 <const name="None" value="0">
9184 <desc>No flag set.</desc>
9185 </const>
9186 <const name="WaitForProcessStartOnly" value="1">
9187 <desc>Only use the specified timeout value to wait for starting the guest process - the guest
9188 process itself then uses an infinite timeout.</desc>
9189 </const>
9190 <const name="IgnoreOrphanedProcesses" value="2">
9191 <desc>Do not report an error when executed processes are still alive when VBoxService or the guest OS is shutting down.</desc>
9192 </const>
9193 <const name="Hidden" value="4">
9194 <desc>Do not show the started process according to the guest OS guidelines.</desc>
9195 </const>
9196 <const name="NoProfile" value="8">
9197 <desc>Do not use the user's profile data when exeuting a process. Only available for Windows guests.</desc>
9198 </const>
9199 <const name="WaitForStdOut" value="16">
9200 <desc>The guest process waits until all data from stdout is read out.</desc>
9201 </const>
9202 <const name="WaitForStdErr" value="32">
9203 <desc>The guest process waits until all data from stderr is read out.</desc>
9204 </const>
9205 <const name="ExpandArguments" value="64">
9206 <desc>Expands environment variables in process arguments.</desc>
9207 </const>
9208 </enum>
9209
9210 <enum
9211 name="ProcessPriority"
9212 uuid="ee8cac50-e232-49fe-806b-d1214d9c2e49"
9213 >
9214 <desc>
9215 Process priorities.
9216 </desc>
9217
9218 <const name="Invalid" value="0">
9219 <desc>Invalid priority, do not use.</desc>
9220 </const>
9221 <const name="Default" value="1">
9222 <desc>Default process priority determined by the OS.</desc>
9223 </const>
9224 </enum>
9225
9226 <enum
9227 name="SymlinkType"
9228 uuid="37794668-f8f1-4714-98a5-6f8fa2ed0118"
9229 >
9230 <desc>
9231 Symbolic link types.
9232 </desc>
9233
9234 <const name="Unknown" value="0">
9235 <desc>It is not known what is being targeted.</desc>
9236 </const>
9237 <const name="Directory" value="1">
9238 <desc>The link targets a directory.</desc>
9239 </const>
9240 <const name="File" value="2">
9241 <desc>The link targets a file (or whatever else).</desc>
9242 </const>
9243 </enum>
9244
9245 <enum
9246 name="SymlinkReadFlag"
9247 uuid="b7fe2b9d-790e-4b25-8adf-1ca33026931f"
9248 >
9249 <desc>
9250 Symbolic link reading flags.
9251 </desc>
9252
9253 <const name="None" value="0">
9254 <desc>No flags set.</desc>
9255 </const>
9256 <const name="NoSymlinks" value="1">
9257 <desc>Don't allow symbolic links as part of the path.</desc>
9258 </const>
9259 </enum>
9260
9261 <enum
9262 name="ProcessStatus"
9263 uuid="4d52368f-5b48-4bfe-b486-acf89139b52f"
9264 >
9265 <desc>
9266 Process execution statuses.
9267 </desc>
9268 <const name="Undefined" value="0">
9269 <desc>Process is in an undefined state.</desc>
9270 </const>
9271
9272 <const name="Starting" value="10">
9273 <desc>Process is being started.</desc>
9274 </const>
9275 <const name="Started" value="100">
9276 <desc>Process has been started.</desc>
9277 </const>
9278 <const name="Paused" value="110">
9279 <desc>Process has been paused.</desc>
9280 </const>
9281 <const name="Terminating" value="480">
9282 <desc>Process is being terminated.</desc>
9283 </const>
9284 <const name="TerminatedNormally" value="500">
9285 <desc>Process terminated normally.</desc>
9286 </const>
9287 <const name="TerminatedSignal" value="510">
9288 <desc>Process terminated via signal.</desc>
9289 </const>
9290 <const name="TerminatedAbnormally" value="511">
9291 <desc>Process terminated abnormally.</desc>
9292 </const>
9293 <const name="TimedOutKilled" value="512">
9294 <desc>Process timed out and was killed.</desc>
9295 </const>
9296 <const name="TimedOutAbnormally" value="513">
9297 <desc>Process timed out and was not killed successfully.</desc>
9298 </const>
9299 <const name="Down" value="600">
9300 <desc>Service/OS is stopping, process was killed.</desc>
9301 </const>
9302 <const name="Error" value="800">
9303 <desc>Something went wrong.</desc>
9304 </const>
9305 </enum>
9306
9307 <enum
9308 name="FsObjType"
9309 uuid="a1ed437c-b3c3-4ca2-b19c-4239d658d5e8"
9310 >
9311 <desc>
9312 File system object type.
9313 </desc>
9314
9315 <const name="Undefined" value="0">
9316 <desc>Type is undefined / unknown.</desc>
9317 </const>
9318 <const name="FIFO" value="1">
9319 <desc>Named pipe.</desc>
9320 </const>
9321 <const name="DevChar" value="10">
9322 <desc>Character device.</desc>
9323 </const>
9324 <const name="DevBlock" value="11">
9325 <desc>Block device.</desc>
9326 </const>
9327 <const name="Directory" value="50">
9328 <desc>Directory.</desc>
9329 </const>
9330 <const name="File" value="80">
9331 <desc>File.</desc>
9332 </const>
9333 <const name="Symlink" value="100">
9334 <desc>Symlink.</desc>
9335 </const>
9336 <const name="Socket" value="200">
9337 <desc>Socket.</desc>
9338 </const>
9339 <const name="Whiteout" value="400">
9340 <desc>Whiteout.</desc>
9341 </const>
9342 </enum>
9343
9344 <enum
9345 name="DragAndDropAction"
9346 uuid="47f3b162-c107-4fcd-bfa7-54b8135c441e"
9347 >
9348 <desc>
9349 Possible actions within an Drag and Drop operation.
9350 </desc>
9351
9352 <const name="Ignore" value="0">
9353 <desc>Do nothing.</desc>
9354 </const>
9355
9356 <const name="Copy" value="1">
9357 <desc>Copy the item to the target.</desc>
9358 </const>
9359
9360 <const name="Move" value="2">
9361 <desc>Move the item to the target.</desc>
9362 </const>
9363
9364 <const name="Link" value="3">
9365 <desc>Link the item from within the target.</desc>
9366 </const>
9367 </enum>
9368
9369 <enum
9370 name="DirectoryOpenFlag"
9371 uuid="5138837a-8fd2-4194-a1b0-08f7bc3949d0"
9372 >
9373 <desc>
9374 Directory open flags.
9375 </desc>
9376 <const name="None" value="0">
9377 <desc>No flag set.</desc>
9378 </const>
9379 <const name="NoSymlinks" value="1">
9380 <desc>Don't allow symbolic links as part of the path.</desc>
9381 </const>
9382 </enum>
9383
9384 <enum
9385 name="GuestDirEntryType"
9386 uuid="6d19d924-1b77-4fc8-b369-a3b2c85c8241"
9387 >
9388 <desc>
9389 Guest directory entry type.
9390 </desc>
9391 <const name="Unknown" value="0">
9392 <desc>Unknown.</desc>
9393 </const>
9394 <const name="Directory" value="4">
9395 <desc>Regular file.</desc>
9396 </const>
9397 <const name="File" value="10">
9398 <desc>Regular file.</desc>
9399 </const>
9400 <const name="Symlink" value="12">
9401 <desc>Symbolic link.</desc>
9402 </const>
9403 </enum>
9404
9405 <interface
9406 name="IGuestDirEntry" extends="$unknown"
9407 uuid="20a66efc-c2f6-4438-826f-38454c04369e"
9408 wsmap="struct"
9409 >
9410 <desc>
9411 Structure representing a directory entry on the guest OS.
9412 </desc>
9413 <attribute name="nodeId" type="long long" readonly="yes">
9414 <desc>The unique identifier (within the guest's file system) of this file system object.</desc>
9415 </attribute>
9416 <attribute name="name" type="wstring" readonly="yes">
9417 <desc>The filename.</desc>
9418 </attribute>
9419 <attribute name="type" type="GuestDirEntryType" readonly="yes">
9420 <desc>The entry type.</desc>
9421 </attribute>
9422 </interface>
9423
9424 <interface
9425 name="IGuestSession" extends="$unknown"
9426 uuid="57eb82a8-822b-42c1-9d1c-5c54bc3d3250"
9427 wsmap="managed"
9428 >
9429
9430 <attribute name="user" type="wstring" readonly="yes">
9431 <desc>Returns the user name used by this session to impersonate
9432 users on the guest.
9433 </desc>
9434 </attribute>
9435
9436 <attribute name="domain" type="wstring" readonly="yes">
9437 <desc>Returns the domain name used by this session to impersonate
9438 users on the guest.
9439 </desc>
9440 </attribute>
9441
9442 <attribute name="name" type="wstring" readonly="yes">
9443 <desc>Returns the session's friendly name.</desc>
9444 </attribute>
9445
9446 <attribute name="id" type="unsigned long" readonly="yes">
9447 <desc>Returns the internal session ID.</desc>
9448 </attribute>
9449
9450 <attribute name="timeout" type="unsigned long" readonly="no">
9451 <desc>
9452 Returns the session timeout (in ms).
9453 <result name="E_NOTIMPL">
9454 The method is not implemented yet.
9455 </result>
9456 </desc>
9457 </attribute>
9458
9459 <attribute name="environment" type="wstring" safearray="yes">
9460 <desc>
9461 Returns the current session environment.
9462 </desc>
9463 </attribute>
9464
9465 <attribute name="processes" type="IGuestProcess" readonly="yes" safearray="yes">
9466 <desc>
9467 Returns all current guest processes.
9468 </desc>
9469 </attribute>
9470
9471 <attribute name="directories" type="IGuestDirectory" readonly="yes" safearray="yes">
9472 <desc>
9473 Returns all currently opened guest directories.
9474 </desc>
9475 </attribute>
9476
9477 <attribute name="files" type="IGuestFile" readonly="yes" safearray="yes">
9478 <desc>
9479 Returns all currently opened guest files.
9480 </desc>
9481 </attribute>
9482
9483 <method name="close">
9484 <desc>
9485 Closes this session. All opened guest directories, files and
9486 processes which are not referenced by clients anymore will be
9487 uninitialized.
9488 </desc>
9489 </method>
9490
9491 <method name="copyFrom">
9492 <desc>
9493 Copies a file from guest to the host.
9494
9495 <result name="VBOX_E_IPRT_ERROR">
9496 Error starting the copy operation.
9497 </result>
9498 </desc>
9499 <param name="source" type="wstring" dir="in">
9500 <desc>Source file on the guest to copy to the host.</desc>
9501 </param>
9502 <param name="dest" type="wstring" dir="in">
9503 <desc>Destination file name on the host.</desc>
9504 </param>
9505 <param name="flags" type="CopyFileFlag" dir="in" safearray="yes">
9506 <desc>Copy flags; see <link to="CopyFileFlag"/> for more information.</desc>
9507 </param>
9508 <param name="progress" type="IProgress" dir="return">
9509 <desc>Progress object to track the operation completion.</desc>
9510 </param>
9511 </method>
9512
9513 <method name="copyTo">
9514 <desc>
9515 Copies a file from host to the guest.
9516
9517 <result name="VBOX_E_IPRT_ERROR">
9518 Error starting the copy operation.
9519 </result>
9520 </desc>
9521 <param name="source" type="wstring" dir="in">
9522 <desc>Source file on the host to copy to the guest.</desc>
9523 </param>
9524 <param name="dest" type="wstring" dir="in">
9525 <desc>Destination file name on the guest.</desc>
9526 </param>
9527 <param name="flags" type="CopyFileFlag" dir="in" safearray="yes">
9528 <desc>Copy flags; see <link to="CopyFileFlag"/> for more information.</desc>
9529 </param>
9530 <param name="progress" type="IProgress" dir="return">
9531 <desc>Progress object to track the operation completion.</desc>
9532 </param>
9533 </method>
9534
9535 <method name="directoryCreate">
9536 <desc>
9537 Create a directory on the guest.
9538
9539 <result name="VBOX_E_IPRT_ERROR">
9540 Error while creating the directory.
9541 </result>
9542 </desc>
9543 <param name="path" type="wstring" dir="in">
9544 <desc>Full path of directory to create.</desc>
9545 </param>
9546 <param name="mode" type="unsigned long" dir="in">
9547 <desc>File creation mode.</desc>
9548 </param>
9549 <param name="flags" type="DirectoryCreateFlag" dir="in" safearray="yes">
9550 <desc>Creation flags; see <link to="DirectoryCreateFlag"/> for more information.</desc>
9551 </param>
9552 </method>
9553
9554 <method name="directoryCreateTemp">
9555 <desc>
9556 Create a temporary directory on the guest.
9557
9558 <result name="VBOX_E_NOT_SUPPORTED">
9559 The operation is not possible as requested on this particular
9560 guest type.
9561 </result>
9562 <result name="E_INVALIDARG">
9563 Invalid argument. This includes an incorrectly formatted template,
9564 or a non-absolute path.
9565 </result>
9566 <result name="VBOX_E_IPRT_ERROR">
9567 The temporary directory could not be created. Possible reasons
9568 include a non-existing path or an insecure path when the secure
9569 option was requested.
9570 </result>
9571 </desc>
9572 <param name="templateName" type="wstring" dir="in">
9573 <desc>Template for the name of the directory to create. This must
9574 contain at least one 'X' character. The first group of consecutive
9575 'X' characters in the template will be replaced by a random
9576 alphanumeric string to produce a unique name.</desc>
9577 </param>
9578 <param name="mode" type="unsigned long" dir="in">
9579 <desc>The mode of the directory to create. Use 0700 unless there are
9580 reasons not to. This parameter is ignored if "secure" is specified.
9581 </desc>
9582 </param>
9583 <param name="path" type="wstring" dir="in">
9584 <desc>The absolute path to create the temporary directory in.</desc>
9585 </param>
9586 <param name="secure" type="boolean" dir="in">
9587 <desc>Whether to fail if the directory can not be securely created.
9588 Currently this means that another unprivileged user cannot
9589 manipulate the path specified or remove the temporary directory
9590 after it has been created. Also causes the mode specified to be
9591 ignored. May not be supported on all guest types.</desc>
9592 </param>
9593 <param name="directory" type="wstring" dir="return">
9594 <desc>On success this will contain the name of the directory created
9595 with full path.</desc>
9596 </param>
9597 </method>
9598
9599 <method name="directoryExists">
9600 <desc>
9601 Checks whether a directory exists on the guest or not.
9602
9603 <result name="VBOX_E_IPRT_ERROR">
9604 Error while checking existence of the directory specified.
9605 </result>
9606 </desc>
9607 <param name="path" type="wstring" dir="in">
9608 <desc>Directory to check existence for.</desc>
9609 </param>
9610 <param name="exists" type="boolean" dir="return">
9611 <desc>Returns @c true if the directory exists, @c false if not.</desc>
9612 </param>
9613 </method>
9614
9615 <method name="directoryOpen">
9616 <desc>
9617 Opens a directory and creates a <link to="IGuestDirectory"/> object that
9618 can be used for further operations.
9619
9620 <result name="VBOX_E_OBJECT_NOT_FOUND">
9621 Directory to open was not found.
9622 </result>
9623 <result name="VBOX_E_IPRT_ERROR">
9624 Error while opening the directory.
9625 </result>
9626 </desc>
9627 <param name="path" type="wstring" dir="in">
9628 <desc>Full path to file to open.</desc>
9629 </param>
9630 <param name="filter" type="wstring" dir="in">
9631 <desc>Open filter to apply. This can include wildcards like ? and *.</desc>
9632 </param>
9633 <param name="flags" type="DirectoryOpenFlag" dir="in" safearray="yes">
9634 <desc>Open flags; see <link to="DirectoryOpenFlag"/> for more information.</desc>
9635 </param>
9636 <param name="directory" type="IGuestDirectory" dir="return">
9637 <desc><link to="IGuestDirectory"/> object containing the opened directory.</desc>
9638 </param>
9639 </method>
9640
9641 <method name="directoryQueryInfo">
9642 <desc>
9643 Queries information of a directory on the guest.
9644
9645 <result name="VBOX_E_OBJECT_NOT_FOUND">
9646 Directory to query information for was not found.
9647 </result>
9648 <result name="VBOX_E_IPRT_ERROR">
9649 Error querying information.
9650 </result>
9651 </desc>
9652 <param name="path" type="wstring" dir="in">
9653 <desc>Directory to query information for.</desc>
9654 </param>
9655 <param name="info" type="IGuestFsObjInfo" dir="return">
9656 <desc><link to="IGuestFsObjInfo"/> object containing the queried information.</desc>
9657 </param>
9658 </method>
9659
9660 <method name="directoryRemove">
9661 <desc>
9662 Removes a guest directory if not empty.
9663
9664 <result name="E_NOTIMPL">
9665 The method is not implemented yet.
9666 </result>
9667 </desc>
9668 <param name="path" type="wstring" dir="in">
9669 <desc>Full path of directory to remove.</desc>
9670 </param>
9671 </method>
9672
9673 <method name="directoryRemoveRecursive">
9674 <desc>
9675 Removes a guest directory recursively.
9676
9677 <result name="E_NOTIMPL">
9678 The method is not implemented yet.
9679 </result>
9680 </desc>
9681 <param name="path" type="wstring" dir="in">
9682 <desc>Full path of directory to remove recursively.</desc>
9683 </param>
9684 <param name="flags" type="DirectoryRemoveRecFlag" dir="in" safearray="yes">
9685 <desc>Remove flags; see <link to="DirectoryRemoveRecFlag"/> for more information.</desc>
9686 </param>
9687 <param name="progress" type="IProgress" dir="return">
9688 <desc>Progress object to track the operation completion.</desc>
9689 </param>
9690 </method>
9691
9692 <method name="directoryRename">
9693 <desc>
9694 Renames a directory on the guest.
9695
9696 <result name="E_NOTIMPL">
9697 The method is not implemented yet.
9698 </result>
9699 </desc>
9700 <param name="source" type="wstring" dir="in">
9701 <desc>Source directory to rename.</desc>
9702 </param>
9703 <param name="dest" type="wstring" dir="in">
9704 <desc>Destination directory to rename the source to.</desc>
9705 </param>
9706 <param name="flags" type="PathRenameFlag" dir="in" safearray="yes">
9707 <desc>Rename flags; see <link to="PathRenameFlag"/> for more information.</desc>
9708 </param>
9709 </method>
9710
9711 <method name="directorySetACL">
9712 <desc>
9713 Sets the ACL (Access Control List) of a guest directory.
9714
9715 <result name="E_NOTIMPL">
9716 The method is not implemented yet.
9717 </result>
9718 </desc>
9719 <param name="path" type="wstring" dir="in">
9720 <desc>Full path of directory to set the ACL for.</desc>
9721 </param>
9722 <param name="acl" type="wstring" dir="in">
9723 <desc>Actual ACL string to set. Must comply with the guest OS.</desc>
9724 </param>
9725 </method>
9726
9727 <method name="environmentClear">
9728 <desc>
9729 Clears (deletes) all session environment variables.
9730
9731 <result name="VBOX_E_IPRT_ERROR">
9732 Error while clearing the session environment variables.
9733 </result>
9734 </desc>
9735 </method>
9736
9737 <method name="environmentGet">
9738 <desc>
9739 Gets the value of a session environment variable.
9740
9741 <result name="VBOX_E_IPRT_ERROR">
9742 Error while getting the value of the session environment variable.
9743 </result>
9744 </desc>
9745 <param name="name" type="wstring" dir="in">
9746 <desc>Name of session environment variable to get the value for.</desc>
9747 </param>
9748 <param name="value" type="wstring" dir="return">
9749 <desc>
9750 Value of the session environment variable specified. If this variable
9751 does not exist and empty value will be returned.
9752 </desc>
9753 </param>
9754 </method>
9755
9756 <method name="environmentSet">
9757 <desc>
9758 Sets a session environment variable.
9759
9760 <result name="VBOX_E_IPRT_ERROR">
9761 Error while setting the session environment variable.
9762 </result>
9763 </desc>
9764 <param name="name" type="wstring" dir="in">
9765 <desc>Name of session environment variable to set.</desc>
9766 </param>
9767 <param name="value" type="wstring" dir="in">
9768 <desc>Value to set the session environment variable to.</desc>
9769 </param>
9770 </method>
9771
9772 <method name="environmentUnset">
9773 <desc>
9774 Unsets session environment variable.
9775
9776 <result name="VBOX_E_IPRT_ERROR">
9777 Error while unsetting the session environment variable.
9778 </result>
9779 </desc>
9780 <param name="name" type="wstring" dir="in">
9781 <desc>Name of session environment variable to unset (clear).</desc>
9782 </param>
9783 </method>
9784
9785 <method name="fileCreateTemp">
9786 <desc>
9787 Creates a temporary file on the guest.
9788
9789 <result name="VBOX_E_NOT_SUPPORTED">
9790 The operation is not possible as requested on this particular
9791 guest type.
9792 </result>
9793 <result name="E_INVALIDARG">
9794 Invalid argument. This includes an incorrectly formatted template,
9795 or a non-absolute path.
9796 </result>
9797 <result name="VBOX_E_IPRT_ERROR">
9798 The temporary file could not be created. Possible reasons include
9799 a non-existing path or an insecure path when the secure
9800 option was requested.
9801 </result>
9802 </desc>
9803 <param name="templateName" type="wstring" dir="in">
9804 <desc>Template for the name of the file to create. This must contain
9805 at least one 'X' character. The first group of consecutive 'X'
9806 characters in the template will be replaced by a random
9807 alphanumeric string to produce a unique name.
9808 </desc>
9809 </param>
9810 <param name="mode" type="unsigned long" dir="in">
9811 <desc>The mode of the file to create. Use 0700 unless there are
9812 reasons not to. This parameter is ignored if "secure" is specified.
9813 </desc>
9814 </param>
9815 <param name="path" type="wstring" dir="in">
9816 <desc>The absolute path to create the temporary file in.</desc>
9817 </param>
9818 <param name="secure" type="boolean" dir="in">
9819 <desc>Whether to fail if the file can not be securely created.
9820 Currently this means that another unprivileged user cannot
9821 manipulate the path specified or remove the temporary file after
9822 it has been created. Also causes the mode specified to be ignored.
9823 May not be supported on all guest types.</desc>
9824 </param>
9825 <param name="file" type="IGuestFile" dir="return">
9826 <desc>On success this will contain an open file object for the new
9827 temporary file.
9828 </desc>
9829 </param>
9830 </method>
9831
9832 <method name="fileExists">
9833 <desc>
9834 Checks whether a file exists on the guest or not.
9835
9836 <result name="VBOX_E_IPRT_ERROR">
9837 Error while checking existence of the file specified.
9838 </result>
9839 </desc>
9840 <param name="path" type="wstring" dir="in">
9841 <desc>File to check existence for.</desc>
9842 </param>
9843 <param name="exists" type="boolean" dir="return">
9844 <desc>Returns @c true if the file exists, @c false if not.</desc>
9845 </param>
9846 </method>
9847
9848 <method name="fileRemove">
9849 <desc>
9850 Removes a single file on the guest.
9851
9852 <result name="VBOX_E_OBJECT_NOT_FOUND">
9853 File to remove was not found.
9854 </result>
9855 <result name="VBOX_E_IPRT_ERROR">
9856 Error while removing the file.
9857 </result>
9858 </desc>
9859 <param name="path" type="wstring" dir="in">
9860 <desc>Path to the file to remove.</desc>
9861 </param>
9862 </method>
9863
9864 <method name="fileOpen">
9865 <desc>
9866 Opens a file and creates a <link to="IGuestFile"/> object that
9867 can be used for further operations.
9868
9869 <result name="VBOX_E_OBJECT_NOT_FOUND">
9870 File to open was not found.
9871 </result>
9872 <result name="VBOX_E_IPRT_ERROR">
9873 Error while opening the file.
9874 </result>
9875 </desc>
9876 <param name="path" type="wstring" dir="in">
9877 <desc>Full path to file to open.</desc>
9878 </param>
9879 <param name="openMode" type="wstring" dir="in">
9880 <desc>The file open mode.</desc>
9881 </param>
9882 <param name="disposition" type="wstring" dir="in">
9883 <desc>The file disposition.</desc>
9884 </param>
9885 <param name="creationMode" type="unsigned long" dir="in">
9886 <desc>The file creation mode.</desc>
9887 </param>
9888 <param name="offset" type="long long" dir="in">
9889 <desc>The initial read/write offset.</desc>
9890 </param>
9891 <param name="file" type="IGuestFile" dir="return">
9892 <desc><link to="IGuestFile"/> object representing the opened file.</desc>
9893 </param>
9894 </method>
9895
9896 <method name="fileQueryInfo">
9897 <desc>
9898 Queries information of a file on the guest.
9899
9900 <result name="VBOX_E_OBJECT_NOT_FOUND">
9901 File to query information for was not found.
9902 </result>
9903 <result name="VBOX_E_IPRT_ERROR">
9904 Error querying information.
9905 </result>
9906 </desc>
9907 <param name="path" type="wstring" dir="in">
9908 <desc>File to query information for.</desc>
9909 </param>
9910 <param name="info" type="IGuestFsObjInfo" dir="return">
9911 <desc><link to="IGuestFsObjInfo"/> object containing the queried information.</desc>
9912 </param>
9913 </method>
9914
9915 <method name="fileQuerySize">
9916 <desc>
9917 Queries the size of a file on the guest.
9918
9919 <result name="VBOX_E_OBJECT_NOT_FOUND">
9920 File to rename was not found.
9921 </result>
9922 <result name="VBOX_E_IPRT_ERROR">
9923 Error querying file size.
9924 </result>
9925 </desc>
9926 <param name="path" type="wstring" dir="in">
9927 <desc>File to query the size for.</desc>
9928 </param>
9929 <param name="size" type="long long" dir="return">
9930 <desc>Queried file size.</desc>
9931 </param>
9932 </method>
9933
9934 <method name="fileRename">
9935 <desc>
9936 Renames a file on the guest.
9937
9938 <result name="E_NOTIMPL">
9939 The method is not implemented yet.
9940 </result>
9941 </desc>
9942 <param name="source" type="wstring" dir="in">
9943 <desc>Source file to rename.</desc>
9944 </param>
9945 <param name="dest" type="wstring" dir="in">
9946 <desc>Destination file to rename the source to.</desc>
9947 </param>
9948 <param name="flags" type="PathRenameFlag" dir="in" safearray="yes">
9949 <desc>Rename flags; see <link to="PathRenameFlag"/> for more information.</desc>
9950 </param>
9951 </method>
9952
9953 <method name="fileSetACL">
9954 <desc>
9955 Sets the ACL (Access Control List) of a file on the guest.
9956
9957 <result name="E_NOTIMPL">
9958 The method is not implemented yet.
9959 </result>
9960 </desc>
9961 <param name="file" type="wstring" dir="in">
9962 <desc>Full path of file to set the ACL for.</desc>
9963 </param>
9964 <param name="acl" type="wstring" dir="in">
9965 <desc>Actual ACL string to set. Must comply with the guest OS.</desc>
9966 </param>
9967 </method>
9968
9969 <method name="processCreate">
9970 <desc>
9971 Executes an existing program inside the guest VM.
9972
9973 <note>
9974 Starting at VirtualBox 4.2 guest process execution by default is limited
9975 to serve up to 255 guest processes at a time. If all 255 guest processes
9976 are still active and running, starting a new guest process will result in an
9977 appropriate error message.
9978
9979 If ProcessCreateFlag_WaitForStdOut and / or respectively ProcessCreateFlag_WaitForStdErr
9980 is / are set, the guest process will not exit until all data from the specified
9981 stream(s) is / are read out.
9982
9983 To raise or lower the guest process execution limit, either the guest property
9984 "/VirtualBox/GuestAdd/VBoxService/--control-procs-max-kept" or VBoxService'
9985 command line by specifying "--control-procs-max-kept" needs to be modified.
9986 A restart of the guest OS is required afterwards. To serve unlimited guest
9987 processes, a value of "0" needs to be set (not recommended).
9988 </note>
9989
9990 <result name="VBOX_E_IPRT_ERROR">
9991 Could not create process.
9992 </result>
9993 </desc>
9994 <param name="command" type="wstring" dir="in">
9995 <desc>
9996 Full path name of the command to execute on the guest; the
9997 commands has to exists in the guest VM in order to be executed.
9998 </desc>
9999 </param>
10000 <param name="arguments" type="wstring" dir="in" safearray="yes">
10001 <desc>Array of arguments passed to the execution command.</desc>
10002 </param>
10003 <param name="environment" type="wstring" dir="in" safearray="yes">
10004 <desc>
10005 Environment variables that can be set while the command is being
10006 executed, in form of "NAME=VALUE"; one pair per entry. To unset a
10007 variable just set its name ("NAME") without a value.
10008
10009 This parameter can be used to override environment variables set by
10010 the guest session, which will be applied to the newly started process
10011 in any case.
10012 </desc>
10013 </param>
10014 <param name="flags" type="ProcessCreateFlag" dir="in" safearray="yes">
10015 <desc>
10016 Process creation flags;
10017 see <link to="ProcessCreateFlag"/> for more information.
10018 </desc>
10019 </param>
10020 <param name="timeoutMS" type="unsigned long" dir="in">
10021 <desc>
10022 Timeout (in ms) to wait for the operation to complete.
10023 Pass 0 for an infinite timeout.
10024 </desc>
10025 </param>
10026 <param name="guestProcess" type="IGuestProcess" dir="return">
10027 <desc>Guest process object of the newly created process.</desc>
10028 </param>
10029 </method>
10030
10031 <method name="processCreateEx">
10032 <desc>
10033 Executes an existing program inside the guest VM. Extended version for
10034 also setting the process priority and affinity.
10035
10036 <note>
10037 Starting at VirtualBox 4.2 guest process execution by default is limited
10038 to serve up to 255 guest processes at a time. If all 255 guest processes
10039 are still active and running, starting a new guest process will result in an
10040 appropriate error message.
10041
10042 If ProcessCreateFlag_WaitForStdOut and / or respectively ProcessCreateFlag_WaitForStdErr
10043 is / are set, the guest process will not exit until all data from the specified
10044 stream(s) is / are read out.
10045
10046 To raise or lower the guest process execution limit, either the guest property
10047 "/VirtualBox/GuestAdd/VBoxService/--control-procs-max-kept" or VBoxService'
10048 command line by specifying "--control-procs-max-kept" needs to be modified.
10049 A restart of the guest OS is required afterwards. To serve unlimited guest
10050 processes, a value of "0" needs to be set (not recommended).
10051 </note>
10052
10053 <result name="VBOX_E_IPRT_ERROR">
10054 Could not create process.
10055 </result>
10056 </desc>
10057 <param name="command" type="wstring" dir="in">
10058 <desc>
10059 Full path name of the command to execute on the guest; the
10060 commands has to exists in the guest VM in order to be executed.
10061 </desc>
10062 </param>
10063 <param name="arguments" type="wstring" dir="in" safearray="yes">
10064 <desc>Array of arguments passed to the execution command.</desc>
10065 </param>
10066 <param name="environment" type="wstring" dir="in" safearray="yes">
10067 <desc>
10068 Environment variables that can be set while the command is being
10069 executed, in form of "NAME=VALUE"; one pair per entry. To unset a
10070 variable just set its name ("NAME") without a value.
10071
10072 This parameter can be used to override environment variables set by
10073 the guest session, which will be applied to the newly started process
10074 in any case.
10075 </desc>
10076 </param>
10077 <param name="flags" type="ProcessCreateFlag" dir="in" safearray="yes">
10078 <desc>
10079 Process creation flags;
10080 see <link to="ProcessCreateFlag"/> for more information.
10081 </desc>
10082 </param>
10083 <param name="timeoutMS" type="unsigned long" dir="in">
10084 <desc>
10085 Timeout (in ms) to wait for the operation to complete.
10086 Pass 0 for an infinite timeout.
10087 </desc>
10088 </param>
10089 <param name="priority" type="ProcessPriority" dir="in">
10090 <desc>
10091 Process priority to use for execution;
10092 see see <link to="ProcessPriority"/> for more information.</desc>
10093 </param>
10094 <param name="affinity" type="long" dir="in" safearray="yes">
10095 <desc>
10096 Process affinity to use for execution. This parameter
10097 is not implemented yet.
10098 </desc>
10099 </param>
10100 <param name="guestProcess" type="IGuestProcess" dir="return">
10101 <desc>Guest process object of the newly created process.</desc>
10102 </param>
10103 </method>
10104
10105 <method name="processGet">
10106 <desc>
10107 Gets a certain guest process by its process ID (PID).
10108 </desc>
10109 <param name="pid" type="unsigned long" dir="in">
10110 <desc>Process ID (PID) to get guest process for.</desc>
10111 </param>
10112 <param name="guestProcess" type="IGuestProcess" dir="return">
10113 <desc>Guest process of specified process ID (PID).</desc>
10114 </param>
10115 </method>
10116
10117 <method name="symlinkCreate">
10118 <desc>
10119 Creates a symbolic link on the guest.
10120
10121 <result name="E_NOTIMPL">
10122 The method is not implemented yet.
10123 </result>
10124 </desc>
10125 <param name="source" type="wstring" dir="in">
10126 <desc>The name of the symbolic link.</desc>
10127 </param>
10128 <param name="target" type="wstring" dir="in">
10129 <desc>The path to the symbolic link target.</desc>
10130 </param>
10131 <param name="type" type="SymlinkType" dir="in">
10132 <desc>
10133 The symbolic link type;
10134 see <link to="SymlinkReadFlag"/> for more information.
10135 </desc>
10136 </param>
10137 </method>
10138
10139 <method name="symlinkExists">
10140 <desc>
10141 Checks whether a symbolic link exists on the guest or not.
10142
10143 <result name="E_NOTIMPL">
10144 The method is not implemented yet.
10145 </result>
10146 </desc>
10147 <param name="symlink" type="wstring" dir="in">
10148 <desc>Symbolic link to check existence for.</desc>
10149 </param>
10150 <param name="exists" type="boolean" dir="return">
10151 <desc>Returns @c true if the symbolic link exists, @c false if not.</desc>
10152 </param>
10153 </method>
10154
10155 <method name="symlinkRead">
10156 <desc>
10157 Reads a symbolic link on the guest.
10158
10159 <result name="E_NOTIMPL">
10160 The method is not implemented yet.
10161 </result>
10162 </desc>
10163 <param name="symlink" type="wstring" dir="in">
10164 <desc>Full path to symbolic link to read.</desc>
10165 </param>
10166 <param name="flags" type="SymlinkReadFlag" dir="in" safearray="yes">
10167 <desc>
10168 Read flags; see <link to="SymlinkReadFlag"/> for more information.
10169 </desc>
10170 </param>
10171 <param name="target" type="wstring" dir="return">
10172 <desc>
10173 Target of the symbolic link pointing to, if found.
10174 </desc>
10175 </param>
10176 </method>
10177
10178 <method name="symlinkRemoveDirectory">
10179 <desc>
10180 Removes a symbolic link on the guest if it's a directory.
10181
10182 <result name="E_NOTIMPL">
10183 The method is not implemented yet.
10184 </result>
10185 </desc>
10186 <param name="path" type="wstring" dir="in">
10187 <desc>Symbolic link to remove.</desc>
10188 </param>
10189 </method>
10190
10191 <method name="symlinkRemoveFile">
10192 <desc>
10193 Removes a symbolic link on the guest if it's a file.
10194
10195 <result name="E_NOTIMPL">
10196 The method is not implemented yet.
10197 </result>
10198 </desc>
10199 <param name="file" type="wstring" dir="in">
10200 <desc>Symbolic link to remove.</desc>
10201 </param>
10202 </method>
10203
10204 </interface>
10205
10206 <interface
10207 name="IProcess" extends="$unknown"
10208 uuid="08864d56-96ab-418b-adbc-5a679532aeb0"
10209 wsmap="managed"
10210 >
10211 <desc>
10212 Abstract parent interface for processes handled by VirtualBox.
10213 </desc>
10214 <attribute name="PID" type="unsigned long" readonly="yes">
10215 <desc>
10216 The process ID (PID).
10217 </desc>
10218 </attribute>
10219 <attribute name="status" type="ProcessStatus" readonly="yes">
10220 <desc>
10221 The current process status; see <link to="ProcessStatus"/>
10222 for more information.
10223 </desc>
10224 </attribute>
10225 <attribute name="exitCode" type="long" readonly="yes">
10226 <desc>
10227 The exit code. Only available when the process has been
10228 terminated normally.
10229 </desc>
10230 </attribute>
10231 <attribute name="environment" type="wstring" readonly="yes" safearray="yes">
10232 <desc>
10233 The environment block this process is using during execution.
10234 </desc>
10235 </attribute>
10236 <attribute name="arguments" type="wstring" readonly="yes" safearray="yes">
10237 <desc>
10238 The arguments this process is using for execution.
10239 </desc>
10240 </attribute>
10241 <attribute name="executablePath" type="wstring" readonly="yes">
10242 <desc>Full path of the actual executable image.</desc>
10243 </attribute>
10244 <attribute name="name" type="wstring" readonly="yes">
10245 <desc>The friendly name of this process.</desc>
10246 </attribute>
10247
10248 <method name="waitFor">
10249 <desc>
10250 Waits for one more events to happen.
10251 </desc>
10252 <param name="waitFor" type="unsigned long" dir="in">
10253 <desc>
10254 Specifies what to wait for;
10255 see <link to="ProcessWaitForFlag"/> for more information.
10256 </desc>
10257 </param>
10258 <param name="timeoutMS" type="unsigned long" dir="in">
10259 <desc>
10260 Timeout (in ms) to wait for the operation to complete.
10261 Pass 0 for an infinite timeout.
10262 </desc>
10263 </param>
10264 <param name="reason" type="ProcessWaitResult" dir="return">
10265 <desc>
10266 The overall wait result;
10267 see <link to="ProcessWaitResult"/> for more information.
10268 </desc>
10269 </param>
10270 </method>
10271
10272 <method name="waitForArray">
10273 <desc>
10274 Waits for one more events to happen.
10275 Scriptable version of <link to="#waitFor" />.
10276 </desc>
10277 <param name="waitFor" type="ProcessWaitForFlag" dir="in" safearray="yes">
10278 <desc>
10279 Specifies what to wait for;
10280 see <link to="ProcessWaitForFlag"/> for more information.
10281 </desc>
10282 </param>
10283 <param name="timeoutMS" type="unsigned long" dir="in">
10284 <desc>
10285 Timeout (in ms) to wait for the operation to complete.
10286 Pass 0 for an infinite timeout.
10287 </desc>
10288 </param>
10289 <param name="reason" type="ProcessWaitResult" dir="return">
10290 <desc>
10291 The overall wait result;
10292 see <link to="ProcessWaitResult"/> for more information.
10293 </desc>
10294 </param>
10295 </method>
10296
10297 <method name="read">
10298 <desc>
10299 Reads data from a running process.
10300 </desc>
10301 <param name="handle" type="unsigned long" dir="in">
10302 <desc>Handle to read from. Usually 0 is stdin.</desc>
10303 </param>
10304 <param name="size" type="unsigned long" dir="in">
10305 <desc>Number of bytes to read.</desc>
10306 </param>
10307 <param name="timeoutMS" type="unsigned long" dir="in">
10308 <desc>
10309 Timeout (in ms) to wait for the operation to complete.
10310 Pass 0 for an infinite timeout.
10311 </desc>
10312 </param>
10313 <param name="data" type="octet" dir="return" safearray="yes">
10314 <desc>Array of data read.</desc>
10315 </param>
10316 </method>
10317
10318 <method name="write">
10319 <desc>
10320 Writes data to a running process.
10321 </desc>
10322 <param name="handle" type="unsigned long" dir="in">
10323 <desc>Handle to write to. Usually 0 is stdin, 1 is stdout and 2 is stderr.</desc>
10324 </param>
10325 <param name="flags" type="unsigned long" dir="in">
10326 <desc>
10327 A combination of <link to="ProcessInputFlag"/> flags.
10328 </desc>
10329 </param>
10330 <param name="data" type="octet" dir="in" safearray="yes">
10331 <desc>
10332 Array of bytes to write. The size of the array also specifies
10333 how much to write.
10334 </desc>
10335 </param>
10336 <param name="timeoutMS" type="unsigned long" dir="in">
10337 <desc>
10338 Timeout (in ms) to wait for the operation to complete.
10339 Pass 0 for an infinite timeout.
10340 </desc>
10341 </param>
10342 <param name="written" type="unsigned long" dir="return">
10343 <desc>How much bytes were written.</desc>
10344 </param>
10345 </method>
10346
10347 <method name="writeArray">
10348 <desc>
10349 Writes data to a running process.
10350 Scriptable version of <link to="#write" />.
10351 </desc>
10352 <param name="handle" type="unsigned long" dir="in">
10353 <desc>Handle to write to. Usually 0 is stdin, 1 is stdout and 2 is stderr.</desc>
10354 </param>
10355 <param name="flags" type="ProcessInputFlag" dir="in" safearray="yes">
10356 <desc>
10357 A combination of <link to="ProcessInputFlag"/> flags.
10358 </desc>
10359 </param>
10360 <param name="data" type="octet" dir="in" safearray="yes">
10361 <desc>
10362 Array of bytes to write. The size of the array also specifies
10363 how much to write.
10364 </desc>
10365 </param>
10366 <param name="timeoutMS" type="unsigned long" dir="in">
10367 <desc>
10368 Timeout (in ms) to wait for the operation to complete.
10369 Pass 0 for an infinite timeout.
10370 </desc>
10371 </param>
10372 <param name="written" type="unsigned long" dir="return">
10373 <desc>How much bytes were written.</desc>
10374 </param>
10375 </method>
10376
10377 <method name="terminate">
10378 <desc>
10379 Terminates (kills) a running process.
10380 </desc>
10381 </method>
10382 </interface>
10383
10384 <interface
10385 name="IGuestProcess" extends="IProcess"
10386 uuid="dfa39a36-5d43-4840-a025-67ea956b3111"
10387 wsmap="managed"
10388 >
10389 <desc>
10390 Implementation of the <link to="IProcess" /> object
10391 for processes on the guest.
10392 </desc>
10393 </interface>
10394
10395 <interface
10396 name="IDirectory" extends="$unknown"
10397 uuid="1b70dd03-26d7-483a-8877-89bbb0f87b70"
10398 wsmap="managed"
10399 >
10400 <desc>
10401 Abstract parent interface for directories handled by VirtualBox.
10402 </desc>
10403
10404 <attribute name="directoryName" type="wstring" readonly="yes">
10405 <desc>
10406 Full path of directory.
10407 </desc>
10408 </attribute>
10409
10410 <attribute name="filter" type="wstring" readonly="yes">
10411 <desc>
10412 The open filter.
10413 </desc>
10414 </attribute>
10415
10416 <method name="close">
10417 <desc>
10418 Closes this directory. After closing operations like reading the next
10419 directory entry will not be possible anymore.
10420 </desc>
10421 </method>
10422
10423 <method name="read">
10424 <desc>
10425 Reads the next directory entry of this directory.
10426 <result name="VBOX_E_OBJECT_NOT_FOUND">
10427 No more directory entries to read.
10428 </result>
10429 </desc>
10430 <param name="objInfo" type="IFsObjInfo" dir="return">
10431 <desc>Object information of the current directory entry read. Also see <link to="IFsObjInfo"/>.</desc>
10432 </param>
10433 </method>
10434 </interface>
10435
10436 <interface
10437 name="IGuestDirectory" extends="IDirectory"
10438 uuid="af4a8ce0-0725-42b7-8826-46e3c7ba7357"
10439 wsmap="managed"
10440 >
10441 <desc>
10442 Implementation of the <link to="IDirectory" /> object
10443 for directories on the guest.
10444 </desc>
10445 </interface>
10446
10447 <interface
10448 name="IFile" extends="$unknown"
10449 uuid="b3484293-b98b-4952-ae23-f18eca6a5ff9"
10450 wsmap="managed"
10451 >
10452 <desc>
10453 Abstract parent interface for files handled by VirtualBox.
10454 </desc>
10455 <attribute name="creationMode" type="unsigned long" readonly="yes">
10456 <desc>
10457 The creation mode.
10458
10459 <result name="E_NOTIMPL">
10460 The method is not implemented yet.
10461 </result>
10462 </desc>
10463 </attribute>
10464 <attribute name="disposition" type="unsigned long" readonly="yes">
10465 <desc>
10466 The disposition mode.
10467
10468 <result name="E_NOTIMPL">
10469 The method is not implemented yet.
10470 </result>
10471 </desc>
10472 </attribute>
10473 <attribute name="fileName" type="wstring" readonly="yes">
10474 <desc>
10475 Full path of the actual file name of this file.
10476 </desc>
10477 </attribute>
10478 <attribute name="initialSize" type="long long" readonly="yes">
10479 <desc>
10480 The initial size in bytes when opened.
10481
10482 <result name="E_NOTIMPL">
10483 The method is not implemented yet.
10484 </result>
10485 </desc>
10486 </attribute>
10487 <attribute name="openMode" type="unsigned long" readonly="yes">
10488 <desc>
10489 The open mode.
10490
10491 <result name="E_NOTIMPL">
10492 The method is not implemented yet.
10493 </result>
10494 </desc>
10495 </attribute>
10496 <attribute name="offset" type="long long" readonly="yes">
10497 <desc>
10498 Current read/write offset in bytes.
10499
10500 <result name="E_NOTIMPL">
10501 The method is not implemented yet.
10502 </result>
10503 </desc>
10504 </attribute>
10505
10506 <method name="close">
10507 <desc>
10508 Closes this file. After closing operations like reading data,
10509 writing data or querying information will not be possible anymore.
10510
10511 <result name="E_NOTIMPL">
10512 The method is not implemented yet.
10513 </result>
10514 </desc>
10515 </method>
10516
10517 <method name="queryInfo">
10518 <desc>
10519 Queries information about this file.
10520
10521 <result name="E_NOTIMPL">
10522 The method is not implemented yet.
10523 </result>
10524 </desc>
10525 <param name="objInfo" type="IFsObjInfo" dir="return">
10526 <desc>Object information of this file. Also see <link to="IFsObjInfo"/>.</desc>
10527 </param>
10528 </method>
10529
10530 <method name="read">
10531 <desc>
10532 Reads data from this file.
10533
10534 <result name="E_NOTIMPL">
10535 The method is not implemented yet.
10536 </result>
10537 </desc>
10538 <param name="toRead" type="unsigned long" dir="in">
10539 <desc>Number of bytes to read.</desc>
10540 </param>
10541 <param name="read" type="unsigned long" dir="out">
10542 <desc>How much bytes were read.</desc>
10543 </param>
10544 <param name="data" type="octet" dir="return" safearray="yes">
10545 <desc>Array of data read.</desc>
10546 </param>
10547 </method>
10548
10549 <method name="readAt">
10550 <desc>
10551 Reads data from an offset of this file.
10552
10553 <result name="E_NOTIMPL">
10554 The method is not implemented yet.
10555 </result>
10556 </desc>
10557 <param name="offset" type="long long" dir="in">
10558 <desc>Offset in bytes to start reading.</desc>
10559 </param>
10560 <param name="toRead" type="unsigned long" dir="in">
10561 <desc>Number of bytes to read.</desc>
10562 </param>
10563 <param name="read" type="unsigned long" dir="out">
10564 <desc>How much bytes were read.</desc>
10565 </param>
10566 <param name="data" type="octet" dir="return" safearray="yes">
10567 <desc>Array of data read.</desc>
10568 </param>
10569 </method>
10570
10571 <method name="seek">
10572 <desc>
10573 Changes the read and write position of this file.
10574
10575 <result name="E_NOTIMPL">
10576 The method is not implemented yet.
10577 </result>
10578 </desc>
10579 <param name="offset" type="long long" dir="in">
10580 <desc>Offset to seek.</desc>
10581 </param>
10582 <param name="whence" type="FileSeekType" dir="in">
10583 <desc>
10584 Seek mode; see <link to="FileSeekType"/> for more information.
10585 </desc>
10586 </param>
10587 </method>
10588
10589 <method name="setACL">
10590 <desc>
10591 Sets the ACL of this file.
10592
10593 <result name="E_NOTIMPL">
10594 The method is not implemented yet.
10595 </result>
10596 </desc>
10597 <param name="acl" type="wstring" dir="in">
10598 <desc>ACL string to set.</desc>
10599 </param>
10600 </method>
10601
10602 <method name="write">
10603 <desc>
10604 Writes bytes to this file.
10605 </desc>
10606 <param name="data" type="octet" dir="in" safearray="yes">
10607 <desc>
10608 Array of bytes to write. The size of the array also specifies
10609 how much to write.
10610 </desc>
10611 </param>
10612 <param name="written" type="unsigned long" dir="return">
10613 <desc>How much bytes were written.</desc>
10614 </param>
10615 </method>
10616
10617 <method name="writeAt">
10618 <desc>
10619 Writes bytes at a certain offset to this file.
10620
10621 <result name="E_NOTIMPL">
10622 The method is not implemented yet.
10623 </result>
10624 </desc>
10625 <param name="offset" type="long long" dir="in">
10626 <desc>Offset in bytes to start writing.</desc>
10627 </param>
10628 <param name="data" type="octet" dir="in" safearray="yes">
10629 <desc>
10630 Array of bytes to write. The size of the array also specifies
10631 how much to write.
10632 </desc>
10633 </param>
10634 <param name="written" type="unsigned long" dir="return">
10635 <desc>How much bytes were written.</desc>
10636 </param>
10637 </method>
10638
10639 </interface>
10640
10641 <interface
10642 name="IGuestFile" extends="IFile"
10643 uuid="60661aec-145f-4d11-b80e-8ea151598093"
10644 wsmap="managed"
10645 >
10646 <desc>
10647 Implementation of the <link to="IFile" /> object
10648 for files on the guest.
10649 </desc>
10650 </interface>
10651
10652 <interface
10653 name="IFsObjInfo" extends="$unknown"
10654 uuid="4047ba30-7006-4966-ae86-94164e5e20eb"
10655 wsmap="managed"
10656 >
10657 <desc>
10658 Abstract parent interface for VirtualBox file system object information.
10659 This can be information about a file or a directory, for example.
10660 </desc>
10661
10662 <attribute name="accessTime" type="long long" readonly="yes">
10663 <desc>
10664 Time of last access (st_atime).
10665 </desc>
10666 </attribute>
10667 <attribute name="allocatedSize" type="long long" readonly="yes">
10668 <desc>
10669 Disk allocation size (st_blocks * DEV_BSIZE).
10670 </desc>
10671 </attribute>
10672 <attribute name="birthTime" type="long long" readonly="yes">
10673 <desc>
10674 Time of file birth (st_birthtime).
10675 </desc>
10676 </attribute>
10677 <attribute name="changeTime" type="long long" readonly="yes">
10678 <desc>
10679 Time of last status change (st_ctime).
10680 </desc>
10681 </attribute>
10682 <attribute name="deviceNumber" type="unsigned long" readonly="yes">
10683 <desc>
10684 The device number of a character or block device type object (st_rdev).
10685 </desc>
10686 </attribute>
10687 <attribute name="fileAttributes" type="wstring" readonly="yes">
10688 <desc>
10689 File attributes. Not implemented yet.
10690 </desc>
10691 </attribute>
10692 <attribute name="generationId" type="unsigned long" readonly="yes">
10693 <desc>
10694 The current generation number (st_gen).
10695 </desc>
10696 </attribute>
10697 <attribute name="GID" type="unsigned long" readonly="yes">
10698 <desc>
10699 The group the filesystem object is assigned (st_gid).
10700 </desc>
10701 </attribute>
10702 <attribute name="groupName" type="wstring" readonly="yes">
10703 <desc>
10704 The group name.
10705 </desc>
10706 </attribute>
10707 <attribute name="hardLinks" type="unsigned long" readonly="yes">
10708 <desc>
10709 Number of hard links to this filesystem object (st_nlink).
10710 </desc>
10711 </attribute>
10712 <attribute name="modificationTime" type="long long" readonly="yes">
10713 <desc>
10714 Time of last data modification (st_mtime).
10715 </desc>
10716 </attribute>
10717 <attribute name="name" type="wstring" readonly="yes">
10718 <desc>
10719 The object's name.
10720 </desc>
10721 </attribute>
10722 <attribute name="nodeId" type="long long" readonly="yes">
10723 <desc>
10724 The unique identifier (within the filesystem) of this filesystem object (st_ino).
10725 </desc>
10726 </attribute>
10727 <attribute name="nodeIdDevice" type="unsigned long" readonly="yes">
10728 <desc>
10729 The device number of the device which this filesystem object resides on (st_dev).
10730 </desc>
10731 </attribute>
10732 <attribute name="objectSize" type="long long" readonly="yes">
10733 <desc>
10734 The logical size (st_size). For normal files this is the size of the file.
10735 For symbolic links, this is the length of the path name contained in the
10736 symbolic link. For other objects this fields needs to be specified.
10737 </desc>
10738 </attribute>
10739 <attribute name="type" type="FsObjType" readonly="yes">
10740 <desc>
10741 The object type. See <link to="FsObjType" /> for more.
10742 </desc>
10743 </attribute>
10744 <attribute name="UID" type="unsigned long" readonly="yes">
10745 <desc>
10746 The user owning the filesystem object (st_uid).
10747 </desc>
10748 </attribute>
10749 <attribute name="userFlags" type="unsigned long" readonly="yes">
10750 <desc>
10751 User flags (st_flags).
10752 </desc>
10753 </attribute>
10754 <attribute name="userName" type="wstring" readonly="yes">
10755 <desc>
10756 The user name.
10757 </desc>
10758 </attribute>
10759
10760 </interface>
10761
10762 <interface
10763 name="IGuestFsObjInfo" extends="IFsObjInfo"
10764 uuid="d5cf678e-3484-4e4a-ac55-329e15462e18"
10765 wsmap="managed"
10766 >
10767 <desc>
10768 Represents the guest implementation of the
10769 <link to="IFsObjInfo" /> object.
10770 </desc>
10771 </interface>
10772
10773 <interface
10774 name="IGuest" extends="$unknown"
10775 uuid="19c32350-0618-4ede-b0c3-2b4311bf0d9b"
10776 wsmap="managed"
10777 >
10778 <desc>
10779 The IGuest interface represents information about the operating system
10780 running inside the virtual machine. Used in
10781 <link to="IConsole::guest"/>.
10782
10783 IGuest provides information about the guest operating system, whether
10784 Guest Additions are installed and other OS-specific virtual machine
10785 properties.
10786 </desc>
10787
10788 <attribute name="OSTypeId" type="wstring" readonly="yes">
10789 <desc>
10790 Identifier of the Guest OS type as reported by the Guest
10791 Additions.
10792 You may use <link to="IVirtualBox::getGuestOSType"/> to obtain
10793 an IGuestOSType object representing details about the given
10794 Guest OS type.
10795 <note>
10796 If Guest Additions are not installed, this value will be
10797 the same as <link to="IMachine::OSTypeId"/>.
10798 </note>
10799 </desc>
10800 </attribute>
10801
10802 <attribute name="additionsRunLevel" type="AdditionsRunLevelType" readonly="yes">
10803 <desc>
10804 Current run level of the Guest Additions.
10805 </desc>
10806 </attribute>
10807
10808 <attribute name="additionsVersion" type="wstring" readonly="yes">
10809 <desc>
10810 Version of the Guest Additions in the same format as
10811 <link to="IVirtualBox::version"/>.
10812 </desc>
10813 </attribute>
10814
10815 <attribute name="additionsRevision" type="unsigned long" readonly="yes">
10816 <desc>
10817 The internal build revision number of the additions.
10818
10819 See also <link to="IVirtualBox::revision"/>.
10820 </desc>
10821 </attribute>
10822
10823 <attribute name="facilities" type="IAdditionsFacility" readonly="yes" safearray="yes">
10824 <desc>
10825 Array of current known facilities. Only returns facilities where a status is known,
10826 e.g. facilities with an unknown status will not be returned.
10827 </desc>
10828 </attribute>
10829
10830 <attribute name="sessions" type="IGuestSession" readonly="yes" safearray="yes">
10831 <desc>Returns a collection of all opened guest sessions.</desc>
10832 </attribute>
10833
10834 <attribute name="memoryBalloonSize" type="unsigned long">
10835 <desc>Guest system memory balloon size in megabytes (transient property).</desc>
10836 </attribute>
10837
10838 <attribute name="statisticsUpdateInterval" type="unsigned long">
10839 <desc>Interval to update guest statistics in seconds.</desc>
10840 </attribute>
10841
10842 <method name="internalGetStatistics">
10843 <desc>
10844 Internal method; do not use as it might change at any time.
10845 </desc>
10846 <param name="cpuUser" type="unsigned long" dir="out">
10847 <desc>Percentage of processor time spent in user mode as seen by the guest.</desc>
10848 </param>
10849 <param name="cpuKernel" type="unsigned long" dir="out">
10850 <desc>Percentage of processor time spent in kernel mode as seen by the guest.</desc>
10851 </param>
10852 <param name="cpuIdle" type="unsigned long" dir="out">
10853 <desc>Percentage of processor time spent idling as seen by the guest.</desc>
10854 </param>
10855 <param name="memTotal" type="unsigned long" dir="out">
10856 <desc>Total amount of physical guest RAM.</desc>
10857 </param>
10858 <param name="memFree" type="unsigned long" dir="out">
10859 <desc>Free amount of physical guest RAM.</desc>
10860 </param>
10861 <param name="memBalloon" type="unsigned long" dir="out">
10862 <desc>Amount of ballooned physical guest RAM.</desc>
10863 </param>
10864 <param name="memShared" type="unsigned long" dir="out">
10865 <desc>Amount of shared physical guest RAM.</desc>
10866 </param>
10867 <param name="memCache" type="unsigned long" dir="out">
10868 <desc>Total amount of guest (disk) cache memory.</desc>
10869 </param>
10870 <param name="pagedTotal" type="unsigned long" dir="out">
10871 <desc>Total amount of space in the page file.</desc>
10872 </param>
10873 <param name="memAllocTotal" type="unsigned long" dir="out">
10874 <desc>Total amount of memory allocated by the hypervisor.</desc>
10875 </param>
10876 <param name="memFreeTotal" type="unsigned long" dir="out">
10877 <desc>Total amount of free memory available in the hypervisor.</desc>
10878 </param>
10879 <param name="memBalloonTotal" type="unsigned long" dir="out">
10880 <desc>Total amount of memory ballooned by the hypervisor.</desc>
10881 </param>
10882 <param name="memSharedTotal" type="unsigned long" dir="out">
10883 <desc>Total amount of shared memory in the hypervisor.</desc>
10884 </param>
10885 </method>
10886
10887 <method name="getFacilityStatus">
10888 <desc>
10889 Get the current status of a Guest Additions facility.
10890 </desc>
10891 <param name="facility" type="AdditionsFacilityType" dir="in">
10892 <desc>Facility to check status for.</desc>
10893 </param>
10894 <param name="timestamp" type="long long" dir="out">
10895 <desc>Timestamp (in ms) of last status update seen by the host.</desc>
10896 </param>
10897 <param name="status" type="AdditionsFacilityStatus" dir="return">
10898 <desc>The current (latest) facility status.</desc>
10899 </param>
10900 </method>
10901
10902 <method name="getAdditionsStatus">
10903 <desc>
10904 Retrieve the current status of a certain Guest Additions run level.
10905
10906 <result name="VBOX_E_NOT_SUPPORTED">
10907 Wrong status level specified.
10908 </result>
10909
10910 </desc>
10911 <param name="level" type="AdditionsRunLevelType" dir="in">
10912 <desc>Status level to check</desc>
10913 </param>
10914 <param name="active" type="boolean" dir="return">
10915 <desc>Flag whether the status level has been reached or not</desc>
10916 </param>
10917 </method>
10918
10919 <method name="setCredentials">
10920 <desc>
10921 Store login credentials that can be queried by guest operating
10922 systems with Additions installed. The credentials are transient
10923 to the session and the guest may also choose to erase them. Note
10924 that the caller cannot determine whether the guest operating system
10925 has queried or made use of the credentials.
10926
10927 <result name="VBOX_E_VM_ERROR">
10928 VMM device is not available.
10929 </result>
10930
10931 </desc>
10932 <param name="userName" type="wstring" dir="in">
10933 <desc>User name string, can be empty</desc>
10934 </param>
10935 <param name="password" type="wstring" dir="in">
10936 <desc>Password string, can be empty</desc>
10937 </param>
10938 <param name="domain" type="wstring" dir="in">
10939 <desc>Domain name (guest logon scheme specific), can be empty</desc>
10940 </param>
10941 <param name="allowInteractiveLogon" type="boolean" dir="in">
10942 <desc>
10943 Flag whether the guest should alternatively allow the user to
10944 interactively specify different credentials. This flag might
10945 not be supported by all versions of the Additions.
10946 </desc>
10947 </param>
10948 </method>
10949
10950 <method name="dragHGEnter">
10951 <desc>
10952 Informs the guest about a Drag and Drop enter event.
10953
10954 This is used in Host - Guest direction.
10955
10956 <result name="VBOX_E_VM_ERROR">
10957 VMM device is not available.
10958 </result>
10959
10960 </desc>
10961 <param name="screenId" type="unsigned long" dir="in">
10962 <desc>The screen id where the Drag and Drop event occured.</desc>
10963 </param>
10964 <param name="y" type="unsigned long" dir="in">
10965 <desc>y-position of the event.</desc>
10966 </param>
10967 <param name="x" type="unsigned long" dir="in">
10968 <desc>x-position of the event.</desc>
10969 </param>
10970 <param name="defaultAction" type="DragAndDropAction" dir="in">
10971 <desc>The default action to use.</desc>
10972 </param>
10973 <param name="allowedActions" type="DragAndDropAction" dir="in" safearray="yes">
10974 <desc>The actions which are allowed.</desc>
10975 </param>
10976 <param name="formats" type="wstring" dir="in" safearray="yes">
10977 <desc>The supported mime types.</desc>
10978 </param>
10979 <param name="resultAction" type="DragAndDropAction" dir="return">
10980 <desc>The resulting action of this event.</desc>
10981 </param>
10982 </method>
10983
10984 <method name="dragHGMove">
10985 <desc>
10986 Informs the guest about a Drag and Drop move event.
10987
10988 This is used in Host - Guest direction.
10989
10990 <result name="VBOX_E_VM_ERROR">
10991 VMM device is not available.
10992 </result>
10993
10994 </desc>
10995 <param name="screenId" type="unsigned long" dir="in">
10996 <desc>The screen id where the Drag and Drop event occured.</desc>
10997 </param>
10998 <param name="x" type="unsigned long" dir="in">
10999 <desc>x-position of the event.</desc>
11000 </param>
11001 <param name="y" type="unsigned long" dir="in">
11002 <desc>y-position of the event.</desc>
11003 </param>
11004 <param name="defaultAction" type="DragAndDropAction" dir="in">
11005 <desc>The default action to use.</desc>
11006 </param>
11007 <param name="allowedActions" type="DragAndDropAction" dir="in" safearray="yes">
11008 <desc>The actions which are allowed.</desc>
11009 </param>
11010 <param name="formats" type="wstring" dir="in" safearray="yes">
11011 <desc>The supported mime types.</desc>
11012 </param>
11013 <param name="resultAction" type="DragAndDropAction" dir="return">
11014 <desc>The resulting action of this event.</desc>
11015 </param>
11016 </method>
11017
11018 <method name="dragHGLeave">
11019 <desc>
11020 Informs the guest about a Drag and Drop leave event.
11021
11022 This is used in Host - Guest direction.
11023
11024 <result name="VBOX_E_VM_ERROR">
11025 VMM device is not available.
11026 </result>
11027
11028 </desc>
11029 <param name="screenId" type="unsigned long" dir="in">
11030 <desc>The screen id where the Drag and Drop event occured.</desc>
11031 </param>
11032 </method>
11033
11034 <method name="dragHGDrop">
11035 <desc>
11036 Informs the guest about a drop event.
11037
11038 This is used in Host - Guest direction.
11039
11040 <result name="VBOX_E_VM_ERROR">
11041 VMM device is not available.
11042 </result>
11043
11044 </desc>
11045 <param name="screenId" type="unsigned long" dir="in">
11046 <desc>The screen id where the Drag and Drop event occured.</desc>
11047 </param>
11048 <param name="x" type="unsigned long" dir="in">
11049 <desc>x-position of the event.</desc>
11050 </param>
11051 <param name="y" type="unsigned long" dir="in">
11052 <desc>y-position of the event.</desc>
11053 </param>
11054 <param name="defaultAction" type="DragAndDropAction" dir="in">
11055 <desc>The default action to use.</desc>
11056 </param>
11057 <param name="allowedActions" type="DragAndDropAction" dir="in" safearray="yes">
11058 <desc>The actions which are allowed.</desc>
11059 </param>
11060 <param name="formats" type="wstring" dir="in" safearray="yes">
11061 <desc>The supported mime types.</desc>
11062 </param>
11063 <param name="format" type="wstring" dir="out">
11064 <desc>The resulting format of this event.</desc>
11065 </param>
11066 <param name="resultAction" type="DragAndDropAction" dir="return">
11067 <desc>The resulting action of this event.</desc>
11068 </param>
11069 </method>
11070
11071 <method name="dragHGPutData">
11072 <desc>
11073 Informs the guest about a drop data event.
11074
11075 This is used in Host - Guest direction.
11076
11077 <result name="VBOX_E_VM_ERROR">
11078 VMM device is not available.
11079 </result>
11080
11081 </desc>
11082 <param name="screenId" type="unsigned long" dir="in">
11083 <desc>The screen id where the Drag and Drop event occured.</desc>
11084 </param>
11085 <param name="format" type="wstring" dir="in">
11086 <desc>The mime type the data is in.</desc>
11087 </param>
11088 <param name="data" type="octet" dir="in" safearray="yes">
11089 <desc>The actual data.</desc>
11090 </param>
11091 <param name="progress" type="IProgress" dir="return">
11092 <desc>Progress object to track the operation completion.</desc>
11093 </param>
11094 </method>
11095
11096 <method name="dragGHPending">
11097 <desc>
11098 Ask the guest if there is any Drag and Drop operation pending in the guest.
11099
11100 If no Drag and Drop operation is pending currently, Ignore is returned.
11101
11102 This is used in Guest - Host direction.
11103
11104 <result name="VBOX_E_VM_ERROR">
11105 VMM device is not available.
11106 </result>
11107
11108 </desc>
11109 <param name="screenId" type="unsigned long" dir="in">
11110 <desc>The screen id where the Drag and Drop event occured.</desc>
11111 </param>
11112 <param name="format" type="wstring" dir="out" safearray="yes">
11113 <desc>On return the supported mime types.</desc>
11114 </param>
11115 <param name="allowedActions" type="DragAndDropAction" dir="out" safearray="yes">
11116 <desc>On return the actions which are allowed.</desc>
11117 </param>
11118 <param name="defaultAction" type="DragAndDropAction" dir="return">
11119 <desc>On return the default action to use.</desc>
11120 </param>
11121 </method>
11122
11123 <method name="dragGHDropped">
11124 <desc>
11125 Informs the guest that a drop event occured for a pending Drag and Drop event.
11126
11127 This is used in Guest - Host direction.
11128
11129 <result name="VBOX_E_VM_ERROR">
11130 VMM device is not available.
11131 </result>
11132
11133 </desc>
11134
11135 <param name="format" type="wstring" dir="in">
11136 <desc>The mime type the data must be in.</desc>
11137 </param>
11138 <param name="action" type="DragAndDropAction" dir="in">
11139 <desc>The action to use.</desc>
11140 </param>
11141 <param name="progress" type="IProgress" dir="return">
11142 <desc>Progress object to track the operation completion.</desc>
11143 </param>
11144 </method>
11145
11146 <method name="dragGHGetData">
11147 <desc>
11148 Fetch the data of a previously Drag and Drop event from the guest.
11149
11150 This is used in Guest - Host direction.
11151
11152 <result name="VBOX_E_VM_ERROR">
11153 VMM device is not available.
11154 </result>
11155
11156 </desc>
11157
11158 <param name="data" type="octet" safearray="yes" dir="return">
11159 <desc>The actual data.</desc>
11160 </param>
11161 </method>
11162
11163 <method name="createSession">
11164 <desc>
11165 Creates a new guest session for controlling the guest. All operations
11166 of a session object are using the same credentials specified with this
11167 call. Anonymous sessions, that is, sessions without specifying a valid
11168 user account on the guest are not allowed due to security reasons. Per
11169 VM there can be 255 sessions at once. Using sessions across VMs is not
11170 possible.
11171
11172 A guest session holds all started or opened guest processes, guest
11173 directories and guest files.
11174
11175 Closing a session via <link to="IGuestSession::close" /> will try to close
11176 all the mentioned objects above unless these objects are still used by
11177 a client.
11178 </desc>
11179 <param name="user" type="wstring" dir="in">
11180 <desc>
11181 User name this session will be using to control the guest; has to exist
11182 and have the appropriate rights to execute programs in the VM. Must not
11183 be empty.
11184 </desc>
11185 </param>
11186 <param name="password" type="wstring" dir="in">
11187 <desc>
11188 Password of the user account to be used. Empty passwords are allowed.
11189 </desc>
11190 </param>
11191 <param name="domain" type="wstring" dir="in">
11192 <desc>
11193 Domain name of the user account to be used if the guest is part of
11194 a domain. Optional. This feature is not implemented yet.
11195 </desc>
11196 </param>
11197 <param name="sessionName" type="wstring" dir="in">
11198 <desc>
11199 The session's friendly name. Optional, can be empty.
11200 </desc>
11201 </param>
11202 <param name="guestSession" type="IGuestSession" dir="return">
11203 <desc>
11204 The newly created session object.
11205 </desc>
11206 </param>
11207 </method>
11208
11209 <method name="findSession">
11210 <desc>
11211 Finds guest sessions by their friendly name and returns an interface
11212 array with all found guest sessions.
11213 </desc>
11214 <param name="sessionName" type="wstring" dir="in">
11215 <desc>
11216 The session's friendly name to find. Wildcards like ? and * are allowed.
11217 </desc>
11218 </param>
11219 <param name="sessions" type="IGuestSession" safearray="yes" dir="return">
11220 <desc>
11221 Array with all guest sessions found matching the name specified.
11222 </desc>
11223 </param>
11224 </method>
11225
11226 <method name="executeProcess">
11227 <desc>
11228 Executes an existing program inside the guest VM.
11229
11230 <note>
11231 Starting at VirtualBox 4.1.8 guest process execution by default is limited
11232 to serve up to 25 guest processes at a time. If all 25 guest processes
11233 are still active and running, starting a new guest process will result in an
11234 appropriate error message.
11235
11236 If ExecuteProcessFlag_WaitForStdOut and/or respectively
11237 ExecuteProcessFlag_WaitForStdErr of <link to="ExecuteProcessFlag"/> is
11238 set, the guest process will not exit until all data from the specified
11239 stream(s) is/are read out.
11240
11241 To raise or lower the guest process execution limit, either the guest property
11242 "/VirtualBox/GuestAdd/VBoxService/--control-procs-max-kept" or VBoxService'
11243 command line by specifying "--control-procs-max-kept" needs to be modified.
11244 A restart of the guest OS is required afterwards. To serve unlimited guest
11245 processes, a value of "0" needs to be set (not recommended).
11246 </note>
11247
11248 <result name="VBOX_E_IPRT_ERROR">
11249 Could not execute process.
11250 </result>
11251
11252 </desc>
11253 <param name="execName" type="wstring" dir="in">
11254 <desc>
11255 Full path name of the command to execute on the guest; the
11256 commands has to exists in the guest VM in order to be executed.
11257 </desc>
11258 </param>
11259 <param name="flags" type="unsigned long" dir="in">
11260 <desc>
11261 <link to="ExecuteProcessFlag"/> flags.
11262 </desc>
11263 </param>
11264 <param name="arguments" type="wstring" safearray="yes" dir="in">
11265 <desc>
11266 Array of arguments passed to the execution command.
11267 </desc>
11268 </param>
11269 <param name="environment" type="wstring" safearray="yes" dir="in">
11270 <desc>
11271 Environment variables that can be set while the command is being
11272 executed, in form of "NAME=VALUE"; one pair per entry. To unset a
11273 variable just set its name ("NAME") without a value.
11274 </desc>
11275 </param>
11276 <param name="userName" type="wstring" dir="in">
11277 <desc>
11278 User name under which the command will be executed; has to exist
11279 and have the appropriate rights to execute programs in the VM.
11280 </desc>
11281 </param>
11282 <param name="password" type="wstring" dir="in">
11283 <desc>
11284 Password of the user account specified.
11285 </desc>
11286 </param>
11287 <param name="timeoutMS" type="unsigned long" dir="in">
11288 <desc>
11289 The maximum timeout value (in msec) to wait for finished program
11290 execution. Pass 0 for an infinite timeout.
11291 </desc>
11292 </param>
11293 <param name="pid" type="unsigned long" dir="out">
11294 <desc>
11295 The PID (process ID) of the started command for later reference.
11296 </desc>
11297 </param>
11298 <param name="progress" type="IProgress" dir="return">
11299 <desc>Progress object to track the operation completion.</desc>
11300 </param>
11301 </method>
11302
11303 <method name="getProcessOutput">
11304 <desc>
11305 Retrieves output of a formerly started and running guest process.
11306
11307 <note>
11308 Starting with VirtualBox 4.1.8 this only will return output data
11309 from stdout or stderr if flag ExecuteProcessFlag_WaitForStdOut
11310 and/or respectively ExecuteProcessFlag_WaitForStdErr of
11311 <link to="ExecuteProcessFlag"/> is set in the
11312 former <link to="#executeProcess"/> call for this guest process.
11313 </note>
11314
11315 <result name="VBOX_E_IPRT_ERROR">
11316 Could not retrieve output.
11317 </result>
11318
11319 </desc>
11320 <param name="pid" type="unsigned long" dir="in">
11321 <desc>
11322 Process id returned by earlier <link to="#executeProcess"/> call.
11323 </desc>
11324 </param>
11325 <param name="flags" type="unsigned long" dir="in">
11326 <desc>
11327 <link to="ProcessOutputFlag"/> flags.
11328 </desc>
11329 </param>
11330 <param name="timeoutMS" type="unsigned long" dir="in">
11331 <desc>
11332 The maximum timeout value (in msec) to wait for output
11333 data. Pass 0 for an infinite timeout.
11334 </desc>
11335 </param>
11336 <param name="size" type="long long" dir="in">
11337 <desc>
11338 Size in bytes to read in the buffer.
11339 </desc>
11340 </param>
11341 <param name="data" type="octet" safearray="yes" dir="return">
11342 <desc>
11343 Buffer for retrieving the actual output. A data size of 0 means end of file
11344 if the requested size was not 0. This is the unprocessed
11345 output data, i.e. the line ending style depends on the platform of
11346 the system the server is running on.
11347 </desc>
11348 </param>
11349 </method>
11350
11351 <method name="getProcessStatus">
11352 <desc>
11353 Retrieves status, exit code and the exit reason of a formerly started
11354 guest process. If a guest process exited or got terminated this function
11355 returns its final status and removes this process from the list of
11356 known guest processes for further retrieval.
11357
11358 <result name="VBOX_E_IPRT_ERROR">
11359 Process with specified PID was not found.
11360 </result>
11361
11362 </desc>
11363 <param name="pid" type="unsigned long" dir="in">
11364 <desc>
11365 Process id returned by earlier <link to="#executeProcess"/> call.
11366 </desc>
11367 </param>
11368 <param name="exitcode" type="unsigned long" dir="out">
11369 <desc>
11370 The exit code (if available).
11371 </desc>
11372 </param>
11373 <param name="flags" type="unsigned long" dir="out">
11374 <desc>
11375 Additional flags of process status. Not used at the moment and
11376 must be set to 0.
11377 </desc>
11378 </param>
11379 <param name="reason" type="ExecuteProcessStatus" dir="return">
11380 <desc>
11381 The current process status.
11382 </desc>
11383 </param>
11384 </method>
11385
11386 <method name="copyFromGuest">
11387 <desc>
11388 Copies files/directories from guest to the host.
11389
11390 <result name="VBOX_E_IPRT_ERROR">
11391 Error while copying.
11392 </result>
11393
11394 </desc>
11395 <param name="source" type="wstring" dir="in">
11396 <desc>
11397 Source file on the guest to copy.
11398 </desc>
11399 </param>
11400 <param name="dest" type="wstring" dir="in">
11401 <desc>
11402 Destination path on the host.
11403 </desc>
11404 </param>
11405 <param name="userName" type="wstring" dir="in">
11406 <desc>
11407 User name under which the copy command will be executed; the
11408 user has to exist and have the appropriate rights to read from
11409 the source path.
11410 </desc>
11411 </param>
11412 <param name="password" type="wstring" dir="in">
11413 <desc>
11414 Password of the user account specified.
11415 </desc>
11416 </param>
11417 <param name="flags" type="unsigned long" dir="in">
11418 <desc>
11419 <link to="CopyFileFlag"/> flags. Not used at the moment and should be set to 0.
11420 </desc>
11421 </param>
11422 <param name="progress" type="IProgress" dir="return">
11423 <desc>Progress object to track the operation completion.</desc>
11424 </param>
11425 </method>
11426
11427 <method name="copyToGuest">
11428 <desc>
11429 Copies files/directories from host to the guest.
11430
11431 <result name="VBOX_E_IPRT_ERROR">
11432 Error while copying.
11433 </result>
11434
11435 </desc>
11436 <param name="source" type="wstring" dir="in">
11437 <desc>
11438 Source file on the host to copy.
11439 </desc>
11440 </param>
11441 <param name="dest" type="wstring" dir="in">
11442 <desc>
11443 Destination path on the guest.
11444 </desc>
11445 </param>
11446 <param name="userName" type="wstring" dir="in">
11447 <desc>
11448 User name under which the copy command will be executed; the
11449 user has to exist and have the appropriate rights to write to
11450 the destination path.
11451 </desc>
11452 </param>
11453 <param name="password" type="wstring" dir="in">
11454 <desc>
11455 Password of the user account specified.
11456 </desc>
11457 </param>
11458 <param name="flags" type="unsigned long" dir="in">
11459 <desc>
11460 <link to="CopyFileFlag"/> flags. Not used at the moment and should be set to 0.
11461 </desc>
11462 </param>
11463 <param name="progress" type="IProgress" dir="return">
11464 <desc>Progress object to track the operation completion.</desc>
11465 </param>
11466 </method>
11467
11468 <method name="directoryClose">
11469 <desc>
11470 Closes a formerly opened guest directory.
11471
11472 <result name="VBOX_E_IPRT_ERROR">
11473 Error while closing directory.
11474 </result>
11475
11476 </desc>
11477 <param name="handle" type="unsigned long" dir="in">
11478 <desc>
11479 Handle of opened directory to close.
11480 </desc>
11481 </param>
11482 </method>
11483
11484 <method name="directoryCreate">
11485 <desc>
11486 Creates a directory on the guest.
11487
11488 <result name="VBOX_E_IPRT_ERROR">
11489 Error while creating directory.
11490 </result>
11491
11492 </desc>
11493 <param name="directory" type="wstring" dir="in">
11494 <desc>
11495 Directory to create.
11496 </desc>
11497 </param>
11498 <param name="userName" type="wstring" dir="in">
11499 <desc>
11500 User name under which the directory creation will be executed; the
11501 user has to exist and have the appropriate rights to create the
11502 desired directory.
11503 </desc>
11504 </param>
11505 <param name="password" type="wstring" dir="in">
11506 <desc>
11507 Password of the user account specified.
11508 </desc>
11509 </param>
11510 <param name="mode" type="unsigned long" dir="in">
11511 <desc>
11512 File mode.
11513 </desc>
11514 </param>
11515 <param name="flags" type="unsigned long" dir="in">
11516 <desc>
11517 <link to="DirectoryCreateFlag"/> flags.
11518 </desc>
11519 </param>
11520 </method>
11521
11522 <method name="directoryOpen">
11523 <desc>
11524 Opens a directory on the guest.
11525
11526 <result name="VBOX_E_IPRT_ERROR">
11527 Error while opening / reading directory.
11528 </result>
11529
11530 </desc>
11531 <param name="directory" type="wstring" dir="in">
11532 <desc>
11533 Directory to read.
11534 </desc>
11535 </param>
11536 <param name="filter" type="wstring" dir="in">
11537 <desc>
11538 Directory filter (DOS style wildcards). Set to empty
11539 string if no filter required.
11540 </desc>
11541 </param>
11542 <param name="flags" type="unsigned long" dir="in">
11543 <desc>
11544 <link to="DirectoryOpenFlag"/> flags.
11545 </desc>
11546 </param>
11547 <param name="userName" type="wstring" dir="in">
11548 <desc>
11549 User name under which the directory reading will be performed; the
11550 user has to exist and have the appropriate rights to access / read the
11551 desired directory.
11552 </desc>
11553 </param>
11554 <param name="password" type="wstring" dir="in">
11555 <desc>
11556 Password of the user account specified.
11557 </desc>
11558 </param>
11559 <param name="handle" type="unsigned long" dir="return">
11560 <desc>
11561 Handle of opened directory returned by openDirectory.
11562 </desc>
11563 </param>
11564 </method>
11565
11566 <method name="directoryRead">
11567 <desc>
11568 Reads the next directory entry of an opened guest directory.
11569
11570 <result name="E_ABORT">
11571 When the end of the directory has been reached.
11572 </result>
11573
11574 <result name="VBOX_E_IPRT_ERROR">
11575 Error while opening / reading directory.
11576 </result>
11577
11578 </desc>
11579 <param name="handle" type="unsigned long" dir="in">
11580 <desc>
11581 Handle of opened directory returned by openDirectory.
11582 </desc>
11583 </param>
11584 <param name="entry" type="IGuestDirEntry" dir="return">
11585 <desc>
11586 Information about next directory entry on success.
11587 </desc>
11588 </param>
11589 </method>
11590
11591 <method name="fileExists">
11592 <desc>
11593 Checks if the specified file name exists and is a regular file.
11594
11595 If the file name ends with a slash or backslash, the function assumes
11596 it's a directory and will check if the specified directory exists and
11597 is a regular directory.
11598
11599 <result name="VBOX_E_IPRT_ERROR">
11600 Error while looking up information.
11601 </result>
11602
11603 </desc>
11604 <param name="file" type="wstring" dir="in">
11605 <desc>
11606 Full path of file to check.
11607 </desc>
11608 </param>
11609 <param name="userName" type="wstring" dir="in">
11610 <desc>
11611 User name under which the lookup will be performed; the
11612 user has to exist and have the appropriate rights to access / read the
11613 desired directory.
11614 </desc>
11615 </param>
11616 <param name="password" type="wstring" dir="in">
11617 <desc>
11618 Password of the user account specified.
11619 </desc>
11620 </param>
11621 <param name="exists" type="boolean" dir="return">
11622 <desc>
11623 True if it's a regular file, false if it isn't (or doesn't exist).
11624 </desc>
11625 </param>
11626 </method>
11627
11628 <method name="fileQuerySize">
11629 <desc>
11630 Queries the size of a file, given the path to it.
11631
11632 <result name="VBOX_E_IPRT_ERROR">
11633 Error while looking up information.
11634 </result>
11635
11636 </desc>
11637 <param name="file" type="wstring" dir="in">
11638 <desc>
11639 Full path of file to query file size for.
11640 </desc>
11641 </param>
11642 <param name="userName" type="wstring" dir="in">
11643 <desc>
11644 User name under which the lookup will be performed; the
11645 user has to exist and have the appropriate rights to access / read the
11646 desired directory.
11647 </desc>
11648 </param>
11649 <param name="password" type="wstring" dir="in">
11650 <desc>
11651 Password of the user account specified.
11652 </desc>
11653 </param>
11654 <param name="size" type="long long" dir="return">
11655 <desc>
11656 Size (in bytes) of file specified.
11657 </desc>
11658 </param>
11659 </method>
11660
11661 <method name="setProcessInput">
11662 <desc>
11663 Sends input into a formerly started process.
11664
11665 <result name="VBOX_E_IPRT_ERROR">
11666 Could not send input.
11667 </result>
11668
11669 </desc>
11670 <param name="pid" type="unsigned long" dir="in">
11671 <desc>
11672 Process id returned by earlier <link to="#executeProcess"/> call.
11673 </desc>
11674 </param>
11675 <param name="flags" type="unsigned long" dir="in">
11676 <desc>
11677 <link to="ProcessInputFlag"/> flags.
11678 </desc>
11679 </param>
11680 <param name="timeoutMS" type="unsigned long" dir="in">
11681 <desc>
11682 The maximum timeout value (in msec) to wait for getting the
11683 data transfered to the guest. Pass 0 for an infinite timeout.
11684 </desc>
11685 </param>
11686 <param name="data" type="octet" dir="in" safearray="yes">
11687 <desc>
11688 Buffer of input data to send to the started process to.
11689 </desc>
11690 </param>
11691 <param name="written" type="unsigned long" dir="return">
11692 <desc>
11693 Number of bytes written.
11694 </desc>
11695 </param>
11696 </method>
11697
11698 <method name="updateGuestAdditions">
11699 <desc>
11700 Updates already installed Guest Additions in a VM
11701 (Windows guests only).
11702
11703 <result name="VBOX_E_IPRT_ERROR">
11704 Error while updating.
11705 </result>
11706
11707 </desc>
11708 <param name="source" type="wstring" dir="in">
11709 <desc>
11710 Path to the Guest Additions .ISO file to use for the upate.
11711 </desc>
11712 </param>
11713 <param name="flags" type="AdditionsUpdateFlag" dir="in" safearray="yes">
11714 <desc>
11715 <link to="AdditionsUpdateFlag"/> flags.
11716 </desc>
11717 </param>
11718 <param name="progress" type="IProgress" dir="return">
11719 <desc>Progress object to track the operation completion.</desc>
11720 </param>
11721 </method>
11722
11723 </interface>
11724
11725
11726 <!--
11727 // IProgress
11728 /////////////////////////////////////////////////////////////////////////
11729 -->
11730
11731 <interface
11732 name="IProgress" extends="$unknown"
11733 uuid="c20238e4-3221-4d3f-8891-81ce92d9f913"
11734 wsmap="managed"
11735 >
11736 <desc>
11737 The IProgress interface is used to track and control
11738 asynchronous tasks within VirtualBox.
11739
11740 An instance of this is returned every time VirtualBox starts
11741 an asynchronous task (in other words, a separate thread) which
11742 continues to run after a method call returns. For example,
11743 <link to="IConsole::saveState" />, which saves the state of
11744 a running virtual machine, can take a long time to complete.
11745 To be able to display a progress bar, a user interface such as
11746 the VirtualBox graphical user interface can use the IProgress
11747 object returned by that method.
11748
11749 Note that IProgress is a "read-only" interface in the sense
11750 that only the VirtualBox internals behind the Main API can
11751 create and manipulate progress objects, whereas client code
11752 can only use the IProgress object to monitor a task's
11753 progress and, if <link to="#cancelable" /> is @c true,
11754 cancel the task by calling <link to="#cancel" />.
11755
11756 A task represented by IProgress consists of either one or
11757 several sub-operations that run sequentially, one by one (see
11758 <link to="#operation" /> and <link to="#operationCount" />).
11759 Every operation is identified by a number (starting from 0)
11760 and has a separate description.
11761
11762 You can find the individual percentage of completion of the current
11763 operation in <link to="#operationPercent" /> and the
11764 percentage of completion of the task as a whole
11765 in <link to="#percent" />.
11766
11767 Similarly, you can wait for the completion of a particular
11768 operation via <link to="#waitForOperationCompletion" /> or
11769 for the completion of the whole task via
11770 <link to="#waitForCompletion" />.
11771 </desc>
11772
11773 <attribute name="id" type="uuid" mod="string" readonly="yes">
11774 <desc>ID of the task.</desc>
11775 </attribute>
11776
11777 <attribute name="description" type="wstring" readonly="yes">
11778 <desc>Description of the task.</desc>
11779 </attribute>
11780
11781 <attribute name="initiator" type="$unknown" readonly="yes">
11782 <desc>Initiator of the task.</desc>
11783 </attribute>
11784
11785 <attribute name="cancelable" type="boolean" readonly="yes">
11786 <desc>Whether the task can be interrupted.</desc>
11787 </attribute>
11788
11789 <attribute name="percent" type="unsigned long" readonly="yes">
11790 <desc>
11791 Current progress value of the task as a whole, in percent.
11792 This value depends on how many operations are already complete.
11793 Returns 100 if <link to="#completed" /> is @c true.
11794 </desc>
11795 </attribute>
11796
11797 <attribute name="timeRemaining" type="long" readonly="yes">
11798 <desc>
11799 Estimated remaining time until the task completes, in
11800 seconds. Returns 0 once the task has completed; returns -1
11801 if the remaining time cannot be computed, in particular if
11802 the current progress is 0.
11803
11804 Even if a value is returned, the estimate will be unreliable
11805 for low progress values. It will become more reliable as the
11806 task progresses; it is not recommended to display an ETA
11807 before at least 20% of a task have completed.
11808 </desc>
11809 </attribute>
11810
11811 <attribute name="completed" type="boolean" readonly="yes">
11812 <desc>Whether the task has been completed.</desc>
11813 </attribute>
11814
11815 <attribute name="canceled" type="boolean" readonly="yes">
11816 <desc>Whether the task has been canceled.</desc>
11817 </attribute>
11818
11819 <attribute name="resultCode" type="long" readonly="yes">
11820 <desc>
11821 Result code of the progress task.
11822 Valid only if <link to="#completed"/> is @c true.
11823 </desc>
11824 </attribute>
11825
11826 <attribute name="errorInfo" type="IVirtualBoxErrorInfo" readonly="yes">
11827 <desc>
11828 Extended information about the unsuccessful result of the
11829 progress operation. May be @c null if no extended information
11830 is available.
11831 Valid only if <link to="#completed"/> is @c true and
11832 <link to="#resultCode"/> indicates a failure.
11833 </desc>
11834 </attribute>
11835
11836 <attribute name="operationCount" type="unsigned long" readonly="yes">
11837 <desc>
11838 Number of sub-operations this task is divided into.
11839 Every task consists of at least one suboperation.
11840 </desc>
11841 </attribute>
11842
11843 <attribute name="operation" type="unsigned long" readonly="yes">
11844 <desc>Number of the sub-operation being currently executed.</desc>
11845 </attribute>
11846
11847 <attribute name="operationDescription" type="wstring" readonly="yes">
11848 <desc>
11849 Description of the sub-operation being currently executed.
11850 </desc>
11851 </attribute>
11852
11853 <attribute name="operationPercent" type="unsigned long" readonly="yes">
11854 <desc>Progress value of the current sub-operation only, in percent.</desc>
11855 </attribute>
11856
11857 <attribute name="operationWeight" type="unsigned long" readonly="yes">
11858 <desc>Weight value of the current sub-operation only.</desc>
11859 </attribute>
11860
11861 <attribute name="timeout" type="unsigned long">
11862 <desc>
11863 When non-zero, this specifies the number of milliseconds after which
11864 the operation will automatically be canceled. This can only be set on
11865 cancelable objects.
11866 </desc>
11867 </attribute>
11868
11869 <method name="setCurrentOperationProgress">
11870 <desc>Internal method, not to be called externally.</desc>
11871 <param name="percent" type="unsigned long" dir="in" />
11872 </method>
11873 <method name="setNextOperation">
11874 <desc>Internal method, not to be called externally.</desc>
11875 <param name="nextOperationDescription" type="wstring" dir="in" />
11876 <param name="nextOperationsWeight" type="unsigned long" dir="in" />
11877 </method>
11878
11879 <method name="waitForCompletion">
11880 <desc>
11881 Waits until the task is done (including all sub-operations)
11882 with a given timeout in milliseconds; specify -1 for an indefinite wait.
11883
11884 Note that the VirtualBox/XPCOM/COM/native event queues of the calling
11885 thread are not processed while waiting. Neglecting event queues may
11886 have dire consequences (degrade performance, resource hogs,
11887 deadlocks, etc.), this is specially so for the main thread on
11888 platforms using XPCOM. Callers are adviced wait for short periods
11889 and service their event queues between calls, or to create a worker
11890 thread to do the waiting.
11891
11892 <result name="VBOX_E_IPRT_ERROR">
11893 Failed to wait for task completion.
11894 </result>
11895 </desc>
11896
11897 <param name="timeout" type="long" dir="in">
11898 <desc>
11899 Maximum time in milliseconds to wait or -1 to wait indefinitely.
11900 </desc>
11901 </param>
11902 </method>
11903
11904 <method name="waitForOperationCompletion">
11905 <desc>
11906 Waits until the given operation is done with a given timeout in
11907 milliseconds; specify -1 for an indefinite wait.
11908
11909 See <link to="#waitForCompletion"> for event queue considerations.</link>
11910
11911 <result name="VBOX_E_IPRT_ERROR">
11912 Failed to wait for operation completion.
11913 </result>
11914
11915 </desc>
11916 <param name="operation" type="unsigned long" dir="in">
11917 <desc>
11918 Number of the operation to wait for.
11919 Must be less than <link to="#operationCount"/>.
11920 </desc>
11921 </param>
11922 <param name="timeout" type="long" dir="in">
11923 <desc>
11924 Maximum time in milliseconds to wait or -1 to wait indefinitely.
11925 </desc>
11926 </param>
11927 </method>
11928
11929 <method name="waitForAsyncProgressCompletion">
11930 <desc>
11931 Waits until the other task is completed (including all
11932 sub-operations) and forward all changes from the other progress to
11933 this progress. This means sub-operation number, description, percent
11934 and so on.
11935
11936 You have to take care on setting up at least the same count on
11937 sub-operations in this progress object like there are in the other
11938 progress object.
11939
11940 If the other progress object supports cancel and this object gets any
11941 cancel request (when here enabled as well), it will be forwarded to
11942 the other progress object.
11943
11944 If there is an error in the other progress, this error isn't
11945 automatically transfered to this progress object. So you have to
11946 check any operation error within the other progress object, after
11947 this method returns.
11948 </desc>
11949
11950 <param name="pProgressAsync" type="IProgress" dir="in">
11951 <desc>
11952 The progress object of the asynchrony process.
11953 </desc>
11954 </param>
11955 </method>
11956
11957 <method name="cancel">
11958 <desc>
11959 Cancels the task.
11960 <note>
11961 If <link to="#cancelable"/> is @c false, then this method will fail.
11962 </note>
11963
11964 <result name="VBOX_E_INVALID_OBJECT_STATE">
11965 Operation cannot be canceled.
11966 </result>
11967
11968 </desc>
11969 </method>
11970
11971 </interface>
11972
11973 <!--
11974 // ISnapshot
11975 /////////////////////////////////////////////////////////////////////////
11976 -->
11977
11978 <interface
11979 name="ISnapshot" extends="$unknown"
11980 uuid="0472823b-c6e7-472a-8e9f-d732e86b8463"
11981 wsmap="managed"
11982 >
11983 <desc>
11984 The ISnapshot interface represents a snapshot of the virtual
11985 machine.
11986
11987 Together with the differencing media that are created
11988 when a snapshot is taken, a machine can be brought back to
11989 the exact state it was in when the snapshot was taken.
11990
11991 The ISnapshot interface has no methods, only attributes; snapshots
11992 are controlled through methods of the <link to="IConsole" /> interface
11993 which also manage the media associated with the snapshot.
11994 The following operations exist:
11995
11996 <ul>
11997 <li><link to="IConsole::takeSnapshot"/> creates a new snapshot
11998 by creating new, empty differencing images for the machine's
11999 media and saving the VM settings and (if the VM is running)
12000 the current VM state in the snapshot.
12001
12002 The differencing images will then receive all data written to
12003 the machine's media, while their parent (base) images
12004 remain unmodified after the snapshot has been taken (see
12005 <link to="IMedium" /> for details about differencing images).
12006 This simplifies restoring a machine to the state of a snapshot:
12007 only the differencing images need to be deleted.
12008
12009 The current machine state is not changed by taking a snapshot
12010 except that <link to="IMachine::currentSnapshot" /> is set to
12011 the newly created snapshot, which is also added to the machine's
12012 snapshots tree.
12013 </li>
12014
12015 <li><link to="IConsole::restoreSnapshot"/> resets a machine to
12016 the state of a previous snapshot by deleting the differencing
12017 image of each of the machine's media and setting the machine's
12018 settings and state to the state that was saved in the snapshot (if any).
12019
12020 This destroys the machine's current state. After calling this,
12021 <link to="IMachine::currentSnapshot" /> points to the snapshot
12022 that was restored.
12023 </li>
12024
12025 <li><link to="IConsole::deleteSnapshot"/> deletes a snapshot
12026 without affecting the current machine state.
12027
12028 This does not change the current machine state, but instead frees the
12029 resources allocated when the snapshot was taken: the settings and machine
12030 state file are deleted (if any), and the snapshot's differencing image for
12031 each of the machine's media gets merged with its parent image.
12032
12033 Neither the current machine state nor other snapshots are affected
12034 by this operation, except that parent media will be modified
12035 to contain the disk data associated with the snapshot being deleted.
12036
12037 When deleting the current snapshot, the <link to="IMachine::currentSnapshot" />
12038 attribute is set to the current snapshot's parent or @c null if it
12039 has no parent. Otherwise the attribute is unchanged.
12040 </li>
12041 </ul>
12042
12043 Each snapshot contains a copy of virtual machine's settings (hardware
12044 configuration etc.). This copy is contained in an immutable (read-only)
12045 instance of <link to="IMachine" /> which is available from the snapshot's
12046 <link to="#machine" /> attribute. When restoring the snapshot, these
12047 settings are copied back to the original machine.
12048
12049 In addition, if the machine was running when the
12050 snapshot was taken (<link to="IMachine::state"/> is <link to="MachineState_Running"/>),
12051 the current VM state is saved in the snapshot (similarly to what happens
12052 when a VM's state is saved). The snapshot is then said to be <i>online</i>
12053 because when restoring it, the VM will be running.
12054
12055 If the machine was in <link to="MachineState_Saved">saved</link> saved,
12056 the snapshot receives a copy of the execution state file
12057 (<link to="IMachine::stateFilePath"/>).
12058
12059 Otherwise, if the machine was not running (<link to="MachineState_PoweredOff"/>
12060 or <link to="MachineState_Aborted"/>), the snapshot is <i>offline</i>;
12061 it then contains a so-called "zero execution state", representing a
12062 machine that is powered off.
12063 </desc>
12064
12065 <attribute name="id" type="uuid" mod="string" readonly="yes">
12066 <desc>UUID of the snapshot.</desc>
12067 </attribute>
12068
12069 <attribute name="name" type="wstring">
12070 <desc>Short name of the snapshot.
12071 <note>Setting this attribute causes <link to="IMachine::saveSettings" /> to
12072 be called implicitly.</note>
12073 </desc>
12074 </attribute>
12075
12076 <attribute name="description" type="wstring">
12077 <desc>Optional description of the snapshot.
12078 <note>Setting this attribute causes <link to="IMachine::saveSettings" /> to
12079 be called implicitly.</note>
12080 </desc>
12081 </attribute>
12082
12083 <attribute name="timeStamp" type="long long" readonly="yes">
12084 <desc>
12085 Time stamp of the snapshot, in milliseconds since 1970-01-01 UTC.
12086 </desc>
12087 </attribute>
12088
12089 <attribute name="online" type="boolean" readonly="yes">
12090 <desc>
12091 @c true if this snapshot is an online snapshot and @c false otherwise.
12092
12093 When this attribute is @c true, the
12094 <link to="IMachine::stateFilePath"/> attribute of the
12095 <link to="#machine"/> object associated with this snapshot
12096 will point to the saved state file. Otherwise, it will be
12097 an empty string.
12098 </desc>
12099 </attribute>
12100
12101 <attribute name="machine" type="IMachine" readonly="yes">
12102 <desc>
12103 Virtual machine this snapshot is taken on. This object
12104 stores all settings the machine had when taking this snapshot.
12105 <note>
12106 The returned machine object is immutable, i.e. no
12107 any settings can be changed.
12108 </note>
12109 </desc>
12110 </attribute>
12111
12112 <attribute name="parent" type="ISnapshot" readonly="yes">
12113 <desc>
12114 Parent snapshot (a snapshot this one is based on), or
12115 @c null if the snapshot has no parent (i.e. is the first snapshot).
12116 </desc>
12117 </attribute>
12118
12119 <attribute name="children" type="ISnapshot" readonly="yes" safearray="yes">
12120 <desc>
12121 Child snapshots (all snapshots having this one as a parent).
12122 By inspecting this attribute starting with a machine's root snapshot
12123 (which can be obtained by calling <link to="IMachine::findSnapshot" />
12124 with a @c null UUID), a machine's snapshots tree can be iterated over.
12125 </desc>
12126 </attribute>
12127
12128 <method name="getChildrenCount" const="yes">
12129 <desc>
12130 Returns the number of direct childrens of this snapshot.
12131 </desc>
12132 <param name="childrenCount" type="unsigned long" dir="return">
12133 <desc>
12134 </desc>
12135 </param>
12136 </method>
12137
12138 </interface>
12139
12140
12141 <!--
12142 // IMedium
12143 /////////////////////////////////////////////////////////////////////////
12144 -->
12145
12146 <enum
12147 name="MediumState"
12148 uuid="ef41e980-e012-43cd-9dea-479d4ef14d13"
12149 >
12150 <desc>
12151 Virtual medium state.
12152 <see><link to="IMedium"/></see>
12153 </desc>
12154
12155 <const name="NotCreated" value="0">
12156 <desc>
12157 Associated medium storage does not exist (either was not created yet or
12158 was deleted).
12159 </desc>
12160 </const>
12161 <const name="Created" value="1">
12162 <desc>
12163 Associated storage exists and accessible; this gets set if the
12164 accessibility check performed by <link to="IMedium::refreshState" />
12165 was successful.
12166 </desc>
12167 </const>
12168 <const name="LockedRead" value="2">
12169 <desc>
12170 Medium is locked for reading (see <link to="IMedium::lockRead"/>),
12171 no data modification is possible.
12172 </desc>
12173 </const>
12174 <const name="LockedWrite" value="3">
12175 <desc>
12176 Medium is locked for writing (see <link to="IMedium::lockWrite"/>),
12177 no concurrent data reading or modification is possible.
12178 </desc>
12179 </const>
12180 <const name="Inaccessible" value="4">
12181 <desc>
12182 Medium accessibility check (see <link to="IMedium::refreshState" />) has
12183 not yet been performed, or else, associated medium storage is not
12184 accessible. In the first case, <link to="IMedium::lastAccessError"/>
12185 is empty, in the second case, it describes the error that occurred.
12186 </desc>
12187 </const>
12188 <const name="Creating" value="5">
12189 <desc>
12190 Associated medium storage is being created.
12191 </desc>
12192 </const>
12193 <const name="Deleting" value="6">
12194 <desc>
12195 Associated medium storage is being deleted.
12196 </desc>
12197 </const>
12198 </enum>
12199
12200 <enum
12201 name="MediumType"
12202 uuid="fe663fb5-c244-4e1b-9d81-c628b417dd04"
12203 >
12204 <desc>
12205 Virtual medium type. For each <link to="IMedium" />, this defines how the medium is
12206 attached to a virtual machine (see <link to="IMediumAttachment" />) and what happens
12207 when a snapshot (see <link to="ISnapshot" />) is taken of a virtual machine which has
12208 the medium attached. At the moment DVD and floppy media are always of type "writethrough".
12209 </desc>
12210
12211 <const name="Normal" value="0">
12212 <desc>
12213 Normal medium (attached directly or indirectly, preserved
12214 when taking snapshots).
12215 </desc>
12216 </const>
12217 <const name="Immutable" value="1">
12218 <desc>
12219 Immutable medium (attached indirectly, changes are wiped out
12220 the next time the virtual machine is started).
12221 </desc>
12222 </const>
12223 <const name="Writethrough" value="2">
12224 <desc>
12225 Write through medium (attached directly, ignored when
12226 taking snapshots).
12227 </desc>
12228 </const>
12229 <const name="Shareable" value="3">
12230 <desc>
12231 Allow using this medium concurrently by several machines.
12232 <note>Present since VirtualBox 3.2.0, and accepted since 3.2.8.</note>
12233 </desc>
12234 </const>
12235 <const name="Readonly" value="4">
12236 <desc>
12237 A readonly medium, which can of course be used by several machines.
12238 <note>Present and accepted since VirtualBox 4.0.</note>
12239 </desc>
12240 </const>
12241 <const name="MultiAttach" value="5">
12242 <desc>
12243 A medium which is indirectly attached, so that one base medium can
12244 be used for several VMs which have their own differencing medium to
12245 store their modifications. In some sense a variant of Immutable
12246 with unset AutoReset flag in each differencing medium.
12247 <note>Present and accepted since VirtualBox 4.0.</note>
12248 </desc>
12249 </const>
12250 </enum>
12251
12252 <enum
12253 name="MediumVariant"
12254 uuid="80685b6b-e42f-497d-8271-e77bf3c61ada"
12255 >
12256 <desc>
12257 Virtual medium image variant. More than one flag may be set.
12258 <see><link to="IMedium"/></see>
12259 </desc>
12260
12261 <const name="Standard" value="0">
12262 <desc>
12263 No particular variant requested, results in using the backend default.
12264 </desc>
12265 </const>
12266 <const name="VmdkSplit2G" value="0x01">
12267 <desc>
12268 VMDK image split in chunks of less than 2GByte.
12269 </desc>
12270 </const>
12271 <const name="VmdkRawDisk" value="0x02">
12272 <desc>
12273 VMDK image representing a raw disk.
12274 </desc>
12275 </const>
12276 <const name="VmdkStreamOptimized" value="0x04">
12277 <desc>
12278 VMDK streamOptimized image. Special import/export format which is
12279 read-only/append-only.
12280 </desc>
12281 </const>
12282 <const name="VmdkESX" value="0x08">
12283 <desc>
12284 VMDK format variant used on ESX products.
12285 </desc>
12286 </const>
12287 <const name="Fixed" value="0x10000">
12288 <desc>
12289 Fixed image. Only allowed for base images.
12290 </desc>
12291 </const>
12292 <const name="Diff" value="0x20000">
12293 <desc>
12294 Differencing image. Only allowed for child images.
12295 </desc>
12296 </const>
12297 <const name="NoCreateDir" value="0x40000000">
12298 <desc>
12299 Special flag which suppresses automatic creation of the subdirectory.
12300 Only used when passing the medium variant as an input parameter.
12301 </desc>
12302 </const>
12303 </enum>
12304
12305 <interface
12306 name="IMediumAttachment" extends="$unknown"
12307 uuid="5ee464d6-0613-4331-b154-7ce12170ef9f"
12308 wsmap="struct"
12309 >
12310 <desc>
12311 The IMediumAttachment interface links storage media to virtual machines.
12312 For each medium (<link to="IMedium"/>) which has been attached to a
12313 storage controller (<link to="IStorageController"/>) of a machine
12314 (<link to="IMachine"/>) via the <link to="IMachine::attachDevice" />
12315 method, one instance of IMediumAttachment is added to the machine's
12316 <link to="IMachine::mediumAttachments"/> array attribute.
12317
12318 Each medium attachment specifies the storage controller as well as a
12319 port and device number and the IMedium instance representing a virtual
12320 hard disk or floppy or DVD image.
12321
12322 For removable media (DVDs or floppies), there are two additional
12323 options. For one, the IMedium instance can be @c null to represent
12324 an empty drive with no media inserted (see <link to="IMachine::mountMedium" />);
12325 secondly, the medium can be one of the pseudo-media for host drives
12326 listed in <link to="IHost::DVDDrives"/> or <link to="IHost::floppyDrives"/>.
12327
12328 <h3>Attaching Hard Disks</h3>
12329
12330 Hard disks are attached to virtual machines using the
12331 <link to="IMachine::attachDevice"/> method and detached using the
12332 <link to="IMachine::detachDevice"/> method. Depending on a medium's
12333 type (see <link to="IMedium::type" />), hard disks are attached either
12334 <i>directly</i> or <i>indirectly</i>.
12335
12336 When a hard disk is being attached directly, it is associated with the
12337 virtual machine and used for hard disk operations when the machine is
12338 running. When a hard disk is being attached indirectly, a new differencing
12339 hard disk linked to it is implicitly created and this differencing hard
12340 disk is associated with the machine and used for hard disk operations.
12341 This also means that if <link to="IMachine::attachDevice"/> performs
12342 a direct attachment then the same hard disk will be returned in response
12343 to the subsequent <link to="IMachine::getMedium"/> call; however if
12344 an indirect attachment is performed then
12345 <link to="IMachine::getMedium"/> will return the implicitly created
12346 differencing hard disk, not the original one passed to <link
12347 to="IMachine::attachDevice"/>. In detail:
12348
12349 <ul>
12350 <li><b>Normal base</b> hard disks that do not have children (i.e.
12351 differencing hard disks linked to them) and that are not already
12352 attached to virtual machines in snapshots are attached <b>directly</b>.
12353 Otherwise, they are attached <b>indirectly</b> because having
12354 dependent children or being part of the snapshot makes it impossible
12355 to modify hard disk contents without breaking the integrity of the
12356 dependent party. The <link to="IMedium::readOnly"/> attribute allows to
12357 quickly determine the kind of the attachment for the given hard
12358 disk. Note that if a normal base hard disk is to be indirectly
12359 attached to a virtual machine with snapshots then a special
12360 procedure called <i>smart attachment</i> is performed (see below).</li>
12361 <li><b>Normal differencing</b> hard disks are like normal base hard disks:
12362 they are attached <b>directly</b> if they do not have children and are
12363 not attached to virtual machines in snapshots, and <b>indirectly</b>
12364 otherwise. Note that the smart attachment procedure is never performed
12365 for differencing hard disks.</li>
12366 <li><b>Immutable</b> hard disks are always attached <b>indirectly</b> because
12367 they are designed to be non-writable. If an immutable hard disk is
12368 attached to a virtual machine with snapshots then a special
12369 procedure called smart attachment is performed (see below).</li>
12370 <li><b>Writethrough</b> hard disks are always attached <b>directly</b>,
12371 also as designed. This also means that writethrough hard disks cannot
12372 have other hard disks linked to them at all.</li>
12373 <li><b>Shareable</b> hard disks are always attached <b>directly</b>,
12374 also as designed. This also means that shareable hard disks cannot
12375 have other hard disks linked to them at all. They behave almost
12376 like writethrough hard disks, except that shareable hard disks can
12377 be attached to several virtual machines which are running, allowing
12378 concurrent accesses. You need special cluster software running in
12379 the virtual machines to make use of such disks.</li>
12380 </ul>
12381
12382 Note that the same hard disk, regardless of its type, may be attached to
12383 more than one virtual machine at a time. In this case, the machine that is
12384 started first gains exclusive access to the hard disk and attempts to
12385 start other machines having this hard disk attached will fail until the
12386 first machine is powered down.
12387
12388 Detaching hard disks is performed in a <i>deferred</i> fashion. This means
12389 that the given hard disk remains associated with the given machine after a
12390 successful <link to="IMachine::detachDevice"/> call until
12391 <link to="IMachine::saveSettings"/> is called to save all changes to
12392 machine settings to disk. This deferring is necessary to guarantee that
12393 the hard disk configuration may be restored at any time by a call to
12394 <link to="IMachine::discardSettings"/> before the settings
12395 are saved (committed).
12396
12397 Note that if <link to="IMachine::discardSettings"/> is called after
12398 indirectly attaching some hard disks to the machine but before a call to
12399 <link to="IMachine::saveSettings"/> is made, it will implicitly delete
12400 all differencing hard disks implicitly created by
12401 <link to="IMachine::attachDevice"/> for these indirect attachments.
12402 Such implicitly created hard disks will also be immediately deleted when
12403 detached explicitly using the <link to="IMachine::detachDevice"/>
12404 call if it is made before <link to="IMachine::saveSettings"/>. This
12405 implicit deletion is safe because newly created differencing hard
12406 disks do not contain any user data.
12407
12408 However, keep in mind that detaching differencing hard disks that were
12409 implicitly created by <link to="IMachine::attachDevice"/>
12410 before the last <link to="IMachine::saveSettings"/> call will
12411 <b>not</b> implicitly delete them as they may already contain some data
12412 (for example, as a result of virtual machine execution). If these hard
12413 disks are no more necessary, the caller can always delete them explicitly
12414 using <link to="IMedium::deleteStorage"/> after they are actually de-associated
12415 from this machine by the <link to="IMachine::saveSettings"/> call.
12416
12417 <h3>Smart Attachment</h3>
12418
12419 When normal base or immutable hard disks are indirectly attached to a
12420 virtual machine then some additional steps are performed to make sure the
12421 virtual machine will have the most recent "view" of the hard disk being
12422 attached. These steps include walking through the machine's snapshots
12423 starting from the current one and going through ancestors up to the first
12424 snapshot. Hard disks attached to the virtual machine in all
12425 of the encountered snapshots are checked whether they are descendants of
12426 the given normal base or immutable hard disk. The first found child (which
12427 is the differencing hard disk) will be used instead of the normal base or
12428 immutable hard disk as a parent for creating a new differencing hard disk
12429 that will be actually attached to the machine. And only if no descendants
12430 are found or if the virtual machine does not have any snapshots then the
12431 normal base or immutable hard disk will be used itself as a parent for
12432 this differencing hard disk.
12433
12434 It is easier to explain what smart attachment does using the
12435 following example:
12436 <pre>
12437BEFORE attaching B.vdi: AFTER attaching B.vdi:
12438
12439Snapshot 1 (B.vdi) Snapshot 1 (B.vdi)
12440 Snapshot 2 (D1->B.vdi) Snapshot 2 (D1->B.vdi)
12441 Snapshot 3 (D2->D1.vdi) Snapshot 3 (D2->D1.vdi)
12442 Snapshot 4 (none) Snapshot 4 (none)
12443 CurState (none) CurState (D3->D2.vdi)
12444
12445 NOT
12446 ...
12447 CurState (D3->B.vdi)
12448 </pre>
12449 The first column is the virtual machine configuration before the base hard
12450 disk <tt>B.vdi</tt> is attached, the second column shows the machine after
12451 this hard disk is attached. Constructs like <tt>D1->B.vdi</tt> and similar
12452 mean that the hard disk that is actually attached to the machine is a
12453 differencing hard disk, <tt>D1.vdi</tt>, which is linked to (based on)
12454 another hard disk, <tt>B.vdi</tt>.
12455
12456 As we can see from the example, the hard disk <tt>B.vdi</tt> was detached
12457 from the machine before taking Snapshot 4. Later, after Snapshot 4 was
12458 taken, the user decides to attach <tt>B.vdi</tt> again. <tt>B.vdi</tt> has
12459 dependent child hard disks (<tt>D1.vdi</tt>, <tt>D2.vdi</tt>), therefore
12460 it cannot be attached directly and needs an indirect attachment (i.e.
12461 implicit creation of a new differencing hard disk). Due to the smart
12462 attachment procedure, the new differencing hard disk
12463 (<tt>D3.vdi</tt>) will be based on <tt>D2.vdi</tt>, not on
12464 <tt>B.vdi</tt> itself, since <tt>D2.vdi</tt> is the most recent view of
12465 <tt>B.vdi</tt> existing for this snapshot branch of the given virtual
12466 machine.
12467
12468 Note that if there is more than one descendant hard disk of the given base
12469 hard disk found in a snapshot, and there is an exact device, channel and
12470 bus match, then this exact match will be used. Otherwise, the youngest
12471 descendant will be picked up.
12472
12473 There is one more important aspect of the smart attachment procedure which
12474 is not related to snapshots at all. Before walking through the snapshots
12475 as described above, the backup copy of the current list of hard disk
12476 attachment is searched for descendants. This backup copy is created when
12477 the hard disk configuration is changed for the first time after the last
12478 <link to="IMachine::saveSettings"/> call and used by
12479 <link to="IMachine::discardSettings"/> to undo the recent hard disk
12480 changes. When such a descendant is found in this backup copy, it will be
12481 simply re-attached back, without creating a new differencing hard disk for
12482 it. This optimization is necessary to make it possible to re-attach the
12483 base or immutable hard disk to a different bus, channel or device slot
12484 without losing the contents of the differencing hard disk actually
12485 attached to the machine in place of it.
12486
12487 </desc>
12488
12489 <attribute name="medium" type="IMedium" readonly="yes">
12490 <desc>Medium object associated with this attachment; it
12491 can be @c null for removable devices.</desc>
12492 </attribute>
12493
12494 <attribute name="controller" type="wstring" readonly="yes">
12495 <desc>Name of the storage controller of this attachment; this
12496 refers to one of the controllers in <link to="IMachine::storageControllers" />
12497 by name.</desc>
12498 </attribute>
12499
12500 <attribute name="port" type="long" readonly="yes">
12501 <desc>Port number of this attachment.
12502 See <link to="IMachine::attachDevice" /> for the meaning of this value for the different controller types.
12503 </desc>
12504 </attribute>
12505
12506 <attribute name="device" type="long" readonly="yes">
12507 <desc>Device slot number of this attachment.
12508 See <link to="IMachine::attachDevice" /> for the meaning of this value for the different controller types.
12509 </desc>
12510 </attribute>
12511
12512 <attribute name="type" type="DeviceType" readonly="yes">
12513 <desc>Device type of this attachment.</desc>
12514 </attribute>
12515
12516 <attribute name="passthrough" type="boolean" readonly="yes">
12517 <desc>Pass I/O requests through to a device on the host.</desc>
12518 </attribute>
12519
12520 <attribute name="temporaryEject" type="boolean" readonly="yes">
12521 <desc>Whether guest-triggered eject results in unmounting the medium.</desc>
12522 </attribute>
12523
12524 <attribute name="isEjected" type="boolean" readonly="yes">
12525 <desc>Signals that the removable medium has been ejected. This is not
12526 necessarily equivalent to having a @c null medium association.</desc>
12527 </attribute>
12528
12529 <attribute name="nonRotational" type="boolean" readonly="yes">
12530 <desc>Whether the associated medium is non-rotational.</desc>
12531 </attribute>
12532
12533 <attribute name="discard" type="boolean" readonly="yes">
12534 <desc>Whether the associated medium supports discarding unused blocks.</desc>
12535 </attribute>
12536
12537 <attribute name="bandwidthGroup" type="IBandwidthGroup" readonly="yes">
12538 <desc>The bandwidth group this medium attachment is assigned to.</desc>
12539 </attribute>
12540
12541 </interface>
12542
12543 <interface
12544 name="IMedium" extends="$unknown"
12545 uuid="29989373-b111-4654-8493-2e1176cba890"
12546 wsmap="managed"
12547 >
12548 <desc>
12549 The IMedium interface represents virtual storage for a machine's
12550 hard disks, CD/DVD or floppy drives. It will typically represent
12551 a disk image on the host, for example a VDI or VMDK file representing
12552 a virtual hard disk, or an ISO or RAW file representing virtual
12553 removable media, but can also point to a network location (e.g.
12554 for iSCSI targets).
12555
12556 Instances of IMedium are connected to virtual machines by way of medium
12557 attachments, which link the storage medium to a particular device slot
12558 of a storage controller of the virtual machine.
12559 In the VirtualBox API, virtual storage is therefore always represented
12560 by the following chain of object links:
12561
12562 <ul>
12563 <li><link to="IMachine::storageControllers"/> contains an array of
12564 storage controllers (IDE, SATA, SCSI, SAS or a floppy controller;
12565 these are instances of <link to="IStorageController"/>).</li>
12566 <li><link to="IMachine::mediumAttachments"/> contains an array of
12567 medium attachments (instances of <link to="IMediumAttachment"/>
12568 created by <link to="IMachine::attachDevice" />),
12569 each containing a storage controller from the above array, a
12570 port/device specification, and an instance of IMedium representing
12571 the medium storage (image file).
12572
12573 For removable media, the storage medium is optional; a medium
12574 attachment with no medium represents a CD/DVD or floppy drive
12575 with no medium inserted. By contrast, hard disk attachments
12576 will always have an IMedium object attached.</li>
12577 <li>Each IMedium in turn points to a storage unit (such as a file
12578 on the host computer or a network resource) that holds actual
12579 data. This location is represented by the <link to="#location"/>
12580 attribute.</li>
12581 </ul>
12582
12583 Existing media are opened using <link to="IVirtualBox::openMedium"/>;
12584 new hard disk media can be created with the VirtualBox API using the
12585 <link to="IVirtualBox::createHardDisk"/> method. Differencing hard
12586 disks (see below) are usually implicitly created by VirtualBox as
12587 needed, but may also be created explicitly using <link to="#createDiffStorage"/>.
12588 VirtualBox cannot create CD/DVD or floppy images (ISO and RAW files); these
12589 should be created with external tools and then opened from within VirtualBox.
12590
12591 Only for CD/DVDs and floppies, an IMedium instance can also represent a host
12592 drive. In that case the <link to="#id" /> attribute contains the UUID of
12593 one of the drives in <link to="IHost::DVDDrives" /> or <link to="IHost::floppyDrives" />.
12594
12595 <h3>Media registries</h3>
12596
12597 When a medium has been opened or created using one of the aforementioned
12598 APIs, it becomes "known" to VirtualBox. Known media can be attached
12599 to virtual machines and re-found through <link to="IVirtualBox::openMedium"/>.
12600 They also appear in the global
12601 <link to="IVirtualBox::hardDisks" />,
12602 <link to="IVirtualBox::DVDImages" /> and
12603 <link to="IVirtualBox::floppyImages" /> arrays.
12604
12605 Prior to VirtualBox 4.0, opening a medium added it to a global media registry
12606 in the VirtualBox.xml file, which was shared between all machines and made
12607 transporting machines and their media from one host to another difficult.
12608
12609 Starting with VirtualBox 4.0, media are only added to a registry when they are
12610 <i>attached</i> to a machine using <link to="IMachine::attachDevice" />. For
12611 backwards compatibility, which registry a medium is added to depends on which
12612 VirtualBox version created a machine:
12613
12614 <ul>
12615 <li>If the medium has first been attached to a machine which was created by
12616 VirtualBox 4.0 or later, it is added to that machine's media registry in
12617 the machine XML settings file. This way all information about a machine's
12618 media attachments is contained in a single file and can be transported
12619 easily.</li>
12620 <li>For older media attachments (i.e. if the medium was first attached to a
12621 machine which was created with a VirtualBox version before 4.0), media
12622 continue to be registered in the global VirtualBox settings file, for
12623 backwards compatibility.</li>
12624 </ul>
12625
12626 See <link to="IVirtualBox::openMedium" /> for more information.
12627
12628 Media are removed from media registries by the <link to="IMedium::close"/>,
12629 <link to="#deleteStorage"/> and <link to="#mergeTo"/> methods.
12630
12631 <h3>Accessibility checks</h3>
12632
12633 VirtualBox defers media accessibility checks until the <link to="#refreshState" />
12634 method is called explicitly on a medium. This is done to make the VirtualBox object
12635 ready for serving requests as fast as possible and let the end-user
12636 application decide if it needs to check media accessibility right away or not.
12637
12638 As a result, when VirtualBox starts up (e.g. the VirtualBox
12639 object gets created for the first time), all known media are in the
12640 "Inaccessible" state, but the value of the <link to="#lastAccessError"/>
12641 attribute is an empty string because no actual accessibility check has
12642 been made yet.
12643
12644 After calling <link to="#refreshState" />, a medium is considered
12645 <i>accessible</i> if its storage unit can be read. In that case, the
12646 <link to="#state"/> attribute has a value of "Created". If the storage
12647 unit cannot be read (for example, because it is located on a disconnected
12648 network resource, or was accidentally deleted outside VirtualBox),
12649 the medium is considered <i>inaccessible</i>, which is indicated by the
12650 "Inaccessible" state. The exact reason why the medium is inaccessible can be
12651 obtained by reading the <link to="#lastAccessError"/> attribute.
12652
12653 <h3>Medium types</h3>
12654
12655 There are five types of medium behavior which are stored in the
12656 <link to="#type"/> attribute (see <link to="MediumType" />) and
12657 which define the medium's behavior with attachments and snapshots.
12658
12659 All media can be also divided in two groups: <i>base</i> media and
12660 <i>differencing</i> media. A base medium contains all sectors of the
12661 medium data in its own storage and therefore can be used independently.
12662 In contrast, a differencing medium is a "delta" to some other medium and
12663 contains only those sectors which differ from that other medium, which is
12664 then called a <i>parent</i>. The differencing medium is said to be
12665 <i>linked to</i> that parent. The parent may be itself a differencing
12666 medium, thus forming a chain of linked media. The last element in that
12667 chain must always be a base medium. Note that several differencing
12668 media may be linked to the same parent medium.
12669
12670 Differencing media can be distinguished from base media by querying the
12671 <link to="#parent"/> attribute: base media do not have parents they would
12672 depend on, so the value of this attribute is always @c null for them.
12673 Using this attribute, it is possible to walk up the medium tree (from the
12674 child medium to its parent). It is also possible to walk down the tree
12675 using the <link to="#children"/> attribute.
12676
12677 Note that the type of all differencing media is "normal"; all other
12678 values are meaningless for them. Base media may be of any type.
12679
12680 <h3>Automatic composition of the file name part</h3>
12681
12682 Another extension to the <link to="IMedium::location"/> attribute is that
12683 there is a possibility to cause VirtualBox to compose a unique value for
12684 the file name part of the location using the UUID of the hard disk. This
12685 applies only to hard disks in <link to="MediumState_NotCreated"/> state,
12686 e.g. before the storage unit is created, and works as follows. You set the
12687 value of the <link to="IMedium::location"/> attribute to a location
12688 specification which only contains the path specification but not the file
12689 name part and ends with either a forward slash or a backslash character.
12690 In response, VirtualBox will generate a new UUID for the hard disk and
12691 compose the file name using the following pattern:
12692 <pre>
12693 &lt;path&gt;/{&lt;uuid&gt;}.&lt;ext&gt;
12694 </pre>
12695 where <tt>&lt;path&gt;</tt> is the supplied path specification,
12696 <tt>&lt;uuid&gt;</tt> is the newly generated UUID and <tt>&lt;ext&gt;</tt>
12697 is the default extension for the storage format of this hard disk. After
12698 that, you may call any of the methods that create a new hard disk storage
12699 unit and they will use the generated UUID and file name.
12700 </desc>
12701
12702 <attribute name="id" type="uuid" mod="string" readonly="yes">
12703 <desc>
12704 UUID of the medium. For a newly created medium, this value is a randomly
12705 generated UUID.
12706
12707 <note>
12708 For media in one of MediumState_NotCreated, MediumState_Creating or
12709 MediumState_Deleting states, the value of this property is undefined
12710 and will most likely be an empty UUID.
12711 </note>
12712 </desc>
12713 </attribute>
12714
12715 <attribute name="description" type="wstring">
12716 <desc>
12717 Optional description of the medium. For a newly created medium the value
12718 of this attribute is an empty string.
12719
12720 Medium types that don't support this attribute will return E_NOTIMPL in
12721 attempt to get or set this attribute's value.
12722
12723 <note>
12724 For some storage types, reading this attribute may return an outdated
12725 (last known) value when <link to="#state"/> is <link
12726 to="MediumState_Inaccessible"/> or <link
12727 to="MediumState_LockedWrite"/> because the value of this attribute is
12728 stored within the storage unit itself. Also note that changing the
12729 attribute value is not possible in such case, as well as when the
12730 medium is the <link to="MediumState_LockedRead"/> state.
12731 </note>
12732 </desc>
12733 </attribute>
12734
12735 <attribute name="state" type="MediumState" readonly="yes">
12736 <desc>
12737 Returns the current medium state, which is the last state set by
12738 the accessibility check performed by <link to="#refreshState"/>.
12739 If that method has not yet been called on the medium, the state
12740 is "Inaccessible"; as opposed to truly inaccessible media, the
12741 value of <link to="#lastAccessError"/> will be an empty string in
12742 that case.
12743
12744 <note>As of version 3.1, this no longer performs an accessibility check
12745 automatically; call <link to="#refreshState"/> for that.
12746 </note>
12747 </desc>
12748 </attribute>
12749
12750 <attribute name="variant" type="unsigned long" readonly="yes">
12751 <desc>
12752 Returns the storage format variant information for this medium
12753 as a combination of the flags described at <link to="MediumVariant" />.
12754 Before <link to="#refreshState"/> is called this method returns
12755 an undefined value.
12756 </desc>
12757 </attribute>
12758
12759 <attribute name="location" type="wstring">
12760 <desc>
12761 Location of the storage unit holding medium data.
12762
12763 The format of the location string is medium type specific. For medium
12764 types using regular files in a host's file system, the location
12765 string is the full file name.
12766
12767 Some medium types may support changing the storage unit location by
12768 simply changing the value of this property. If this operation is not
12769 supported, the implementation will return E_NOTIMPL in attempt to set
12770 this attribute's value.
12771
12772 When setting a value of the location attribute which is a regular file
12773 in the host's file system, the given file name may be either relative to
12774 the <link to="IVirtualBox::homeFolder">VirtualBox home folder</link> or
12775 absolute. Note that if the given location specification does not contain
12776 the file extension part then a proper default extension will be
12777 automatically appended by the implementation depending on the medium type.
12778 </desc>
12779 </attribute>
12780
12781 <attribute name="name" type="wstring" readonly="yes">
12782 <desc>
12783 Name of the storage unit holding medium data.
12784
12785 The returned string is a short version of the <link to="#location"/>
12786 attribute that is suitable for representing the medium in situations
12787 where the full location specification is too long (such as lists
12788 and comboboxes in GUI frontends). This string is also used by frontends
12789 to sort the media list alphabetically when needed.
12790
12791 For example, for locations that are regular files in the host's file
12792 system, the value of this attribute is just the file name (+ extension),
12793 without the path specification.
12794
12795 Note that as opposed to the <link to="#location"/> attribute, the name
12796 attribute will not necessary be unique for a list of media of the
12797 given type and format.
12798 </desc>
12799 </attribute>
12800
12801 <attribute name="deviceType" type="DeviceType" readonly="yes">
12802 <desc>Kind of device (DVD/Floppy/HardDisk) which is applicable to this
12803 medium.</desc>
12804 </attribute>
12805
12806 <attribute name="hostDrive" type="boolean" readonly="yes">
12807 <desc>True if this corresponds to a drive on the host.</desc>
12808 </attribute>
12809
12810 <attribute name="size" type="long long" readonly="yes">
12811 <desc>
12812 Physical size of the storage unit used to hold medium data (in bytes).
12813
12814 <note>
12815 For media whose <link to="#state"/> is <link
12816 to="MediumState_Inaccessible"/>, the value of this property is the
12817 last known size. For <link to="MediumState_NotCreated"/> media,
12818 the returned value is zero.
12819 </note>
12820 </desc>
12821 </attribute>
12822
12823 <attribute name="format" type="wstring" readonly="yes">
12824 <desc>
12825 Storage format of this medium.
12826
12827 The value of this attribute is a string that specifies a backend used
12828 to store medium data. The storage format is defined when you create a
12829 new medium or automatically detected when you open an existing medium,
12830 and cannot be changed later.
12831
12832 The list of all storage formats supported by this VirtualBox
12833 installation can be obtained using
12834 <link to="ISystemProperties::mediumFormats"/>.
12835 </desc>
12836 </attribute>
12837
12838 <attribute name="mediumFormat" type="IMediumFormat" readonly="yes">
12839 <desc>
12840 Storage medium format object corresponding to this medium.
12841
12842 The value of this attribute is a reference to the medium format object
12843 that specifies the backend properties used to store medium data. The
12844 storage format is defined when you create a new medium or automatically
12845 detected when you open an existing medium, and cannot be changed later.
12846
12847 <note>@c null is returned if there is no associated medium format
12848 object. This can e.g. happen for medium objects representing host
12849 drives and other special medium objects.</note>
12850 </desc>
12851 </attribute>
12852
12853 <attribute name="type" type="MediumType">
12854 <desc>
12855 Type (role) of this medium.
12856
12857 The following constraints apply when changing the value of this
12858 attribute:
12859 <ul>
12860 <li>If a medium is attached to a virtual machine (either in the
12861 current state or in one of the snapshots), its type cannot be
12862 changed.
12863 </li>
12864 <li>As long as the medium has children, its type cannot be set
12865 to <link to="MediumType_Writethrough"/>.
12866 </li>
12867 <li>The type of all differencing media is
12868 <link to="MediumType_Normal"/> and cannot be changed.
12869 </li>
12870 </ul>
12871
12872 The type of a newly created or opened medium is set to
12873 <link to="MediumType_Normal"/>, except for DVD and floppy media,
12874 which have a type of <link to="MediumType_Writethrough"/>.
12875 </desc>
12876 </attribute>
12877
12878 <attribute name="allowedTypes" type="MediumType" safearray="yes" readonly="yes">
12879 <desc>
12880 Returns which medium types can selected for this medium.
12881
12882 <result name="E_NOTIMPL">
12883 This attribute is not implemented at the moment.
12884 </result>
12885 </desc>
12886 </attribute>
12887
12888 <attribute name="parent" type="IMedium" readonly="yes">
12889 <desc>
12890 Parent of this medium (the medium this medium is directly based
12891 on).
12892
12893 Only differencing media have parents. For base (non-differencing)
12894 media, @c null is returned.
12895 </desc>
12896 </attribute>
12897
12898 <attribute name="children" type="IMedium" safearray="yes" readonly="yes">
12899 <desc>
12900 Children of this medium (all differencing media directly based
12901 on this medium). A @c null array is returned if this medium
12902 does not have any children.
12903 </desc>
12904 </attribute>
12905
12906 <attribute name="base" type="IMedium" readonly="yes">
12907 <desc>
12908 Base medium of this medium.
12909
12910 If this is a differencing medium, its base medium is the medium
12911 the given medium branch starts from. For all other types of media, this
12912 property returns the medium object itself (i.e. the same object this
12913 property is read on).
12914 </desc>
12915 </attribute>
12916
12917 <attribute name="readOnly" type="boolean" readonly="yes">
12918 <desc>
12919 Returns @c true if this medium is read-only and @c false otherwise.
12920
12921 A medium is considered to be read-only when its contents cannot be
12922 modified without breaking the integrity of other parties that depend on
12923 this medium such as its child media or snapshots of virtual machines
12924 where this medium is attached to these machines. If there are no
12925 children and no such snapshots then there is no dependency and the
12926 medium is not read-only.
12927
12928 The value of this attribute can be used to determine the kind of the
12929 attachment that will take place when attaching this medium to a
12930 virtual machine. If the value is @c false then the medium will
12931 be attached directly. If the value is @c true then the medium
12932 will be attached indirectly by creating a new differencing child
12933 medium for that. See the interface description for more information.
12934
12935 Note that all <link to="MediumType_Immutable">Immutable</link> media
12936 are always read-only while all
12937 <link to="MediumType_Writethrough">Writethrough</link> media are
12938 always not.
12939
12940 <note>
12941 The read-only condition represented by this attribute is related to
12942 the medium type and usage, not to the current
12943 <link to="IMedium::state">medium state</link> and not to the read-only
12944 state of the storage unit.
12945 </note>
12946 </desc>
12947 </attribute>
12948
12949 <attribute name="logicalSize" type="long long" readonly="yes">
12950 <desc>
12951 Logical size of this medium (in bytes), as reported to the
12952 guest OS running inside the virtual machine this medium is
12953 attached to. The logical size is defined when the medium is created
12954 and cannot be changed later.
12955
12956 <note>
12957 Reading this property on a differencing medium will return the size
12958 of its <link to="#base"/> medium.
12959 </note>
12960 <note>
12961 For media whose state is <link to="#state"/> is <link
12962 to="MediumState_Inaccessible"/>, the value of this property is the
12963 last known logical size. For <link to="MediumState_NotCreated"/>
12964 media, the returned value is zero.
12965 </note>
12966 </desc>
12967 </attribute>
12968
12969 <attribute name="autoReset" type="boolean">
12970 <desc>
12971 Whether this differencing medium will be automatically reset each
12972 time a virtual machine it is attached to is powered up. This
12973 attribute is automatically set to @c true for the last
12974 differencing image of an "immutable" medium (see
12975 <link to="MediumType" />).
12976
12977 See <link to="#reset"/> for more information about resetting
12978 differencing media.
12979
12980 <note>
12981 Reading this property on a base (non-differencing) medium will
12982 always @c false. Changing the value of this property in this
12983 case is not supported.
12984 </note>
12985
12986 <result name="VBOX_E_NOT_SUPPORTED">
12987 This is not a differencing medium (when changing the attribute
12988 value).
12989 </result>
12990 </desc>
12991 </attribute>
12992
12993 <attribute name="lastAccessError" type="wstring" readonly="yes">
12994 <desc>
12995 Text message that represents the result of the last accessibility
12996 check performed by <link to="#refreshState"/>.
12997
12998 An empty string is returned if the last accessibility check
12999 was successful or has not yet been called. As a result, if
13000 <link to="#state" /> is "Inaccessible" and this attribute is empty,
13001 then <link to="#refreshState"/> has yet to be called; this is the
13002 default value of media after VirtualBox initialization.
13003 A non-empty string indicates a failure and should normally describe
13004 a reason of the failure (for example, a file read error).
13005 </desc>
13006 </attribute>
13007
13008 <attribute name="machineIds" type="uuid" mod="string" safearray="yes" readonly="yes">
13009 <desc>
13010 Array of UUIDs of all machines this medium is attached to.
13011
13012 A @c null array is returned if this medium is not attached to any
13013 machine or to any machine's snapshot.
13014
13015 <note>
13016 The returned array will include a machine even if this medium is not
13017 attached to that machine in the current state but attached to it in
13018 one of the machine's snapshots. See <link to="#getSnapshotIds"/> for
13019 details.
13020 </note>
13021 </desc>
13022 </attribute>
13023
13024 <method name="setIds">
13025 <desc>
13026 Changes the UUID and parent UUID for a hard disk medium.
13027 </desc>
13028 <param name="setImageId" type="boolean" dir="in">
13029 <desc>
13030 Select whether a new image UUID is set or not.
13031 </desc>
13032 </param>
13033 <param name="imageId" type="uuid" mod="string" dir="in">
13034 <desc>
13035 New UUID for the image. If an empty string is passed, then a new
13036 UUID is automatically created, provided that @a setImageId is @c true.
13037 Specifying a zero UUID is not allowed.
13038 </desc>
13039 </param>
13040 <param name="setParentId" type="boolean" dir="in">
13041 <desc>
13042 Select whether a new parent UUID is set or not.
13043 </desc>
13044 </param>
13045 <param name="parentId" type="uuid" mod="string" dir="in">
13046 <desc>
13047 New parent UUID for the image. If an empty string is passed, then a
13048 new UUID is automatically created, provided @a setParentId is
13049 @c true. A zero UUID is valid.
13050 </desc>
13051 </param>
13052 <result name="E_INVALIDARG">
13053 Invalid parameter combination.
13054 </result>
13055 <result name="VBOX_E_NOT_SUPPORTED">
13056 Medium is not a hard disk medium.
13057 </result>
13058 </method>
13059
13060 <method name="refreshState">
13061 <desc>
13062 If the current medium state (see <link to="MediumState"/>) is one of
13063 "Created", "Inaccessible" or "LockedRead", then this performs an
13064 accessibility check on the medium and sets the value of the <link to="#state"/>
13065 attribute accordingly; that value is also returned for convenience.
13066
13067 For all other state values, this does not perform a refresh but returns
13068 the state only.
13069
13070 The refresh, if performed, may take a long time (several seconds or even
13071 minutes, depending on the storage unit location and format) because it performs an
13072 accessibility check of the storage unit. This check may cause a significant
13073 delay if the storage unit of the given medium is, for example, a file located
13074 on a network share which is not currently accessible due to connectivity
13075 problems. In that case, the call will not return until a timeout
13076 interval defined by the host OS for this operation expires. For this reason,
13077 it is recommended to never read this attribute on the main UI thread to avoid
13078 making the UI unresponsive.
13079
13080 If the last known state of the medium is "Created" and the accessibility
13081 check fails, then the state would be set to "Inaccessible", and
13082 <link to="#lastAccessError"/> may be used to get more details about the
13083 failure. If the state of the medium is "LockedRead", then it remains the
13084 same, and a non-empty value of <link to="#lastAccessError"/> will
13085 indicate a failed accessibility check in this case.
13086
13087 Note that not all medium states are applicable to all medium types.
13088 </desc>
13089 <param name="state" type="MediumState" dir="return">
13090 <desc>
13091 New medium state.
13092 </desc>
13093 </param>
13094 </method>
13095
13096 <method name="getSnapshotIds">
13097 <desc>
13098 Returns an array of UUIDs of all snapshots of the given machine where
13099 this medium is attached to.
13100
13101 If the medium is attached to the machine in the current state, then the
13102 first element in the array will always be the ID of the queried machine
13103 (i.e. the value equal to the @c machineId argument), followed by
13104 snapshot IDs (if any).
13105
13106 If the medium is not attached to the machine in the current state, then
13107 the array will contain only snapshot IDs.
13108
13109 The returned array may be @c null if this medium is not attached
13110 to the given machine at all, neither in the current state nor in one of
13111 the snapshots.
13112 </desc>
13113 <param name="machineId" type="uuid" mod="string" dir="in">
13114 <desc>
13115 UUID of the machine to query.
13116 </desc>
13117 </param>
13118 <param name="snapshotIds" type="uuid" mod="string" safearray="yes" dir="return">
13119 <desc>
13120 Array of snapshot UUIDs of the given machine using this medium.
13121 </desc>
13122 </param>
13123 </method>
13124
13125 <method name="lockRead">
13126 <desc>
13127 Locks this medium for reading.
13128
13129 A read lock is shared: many clients can simultaneously lock the
13130 same medium for reading unless it is already locked for writing (see
13131 <link to="#lockWrite"/>) in which case an error is returned.
13132
13133 When the medium is locked for reading, it cannot be modified
13134 from within VirtualBox. This means that any method that changes
13135 the properties of this medium or contents of the storage unit
13136 will return an error (unless explicitly stated otherwise). That
13137 includes an attempt to start a virtual machine that wants to
13138 write to the the medium.
13139
13140 When the virtual machine is started up, it locks for reading all
13141 media it uses in read-only mode. If some medium cannot be locked
13142 for reading, the startup procedure will fail.
13143 A medium is typically locked for reading while it is used by a running
13144 virtual machine but has a depending differencing image that receives
13145 the actual write operations. This way one base medium can have
13146 multiple child differencing images which can be written to
13147 simultaneously. Read-only media such as DVD and floppy images are
13148 also locked for reading only (so they can be in use by multiple
13149 machines simultaneously).
13150
13151 A medium is also locked for reading when it is the source of a
13152 write operation such as <link to="#cloneTo"/> or <link to="#mergeTo"/>.
13153
13154 The medium locked for reading must be unlocked using the <link
13155 to="#unlockRead"/> method. Calls to <link to="#lockRead"/>
13156 can be nested and must be followed by the same number of paired
13157 <link to="#unlockRead"/> calls.
13158
13159 This method sets the medium state (see <link to="#state"/>) to
13160 "LockedRead" on success. The medium's previous state must be
13161 one of "Created", "Inaccessible" or "LockedRead".
13162
13163 Locking an inaccessible medium is not an error; this method performs
13164 a logical lock that prevents modifications of this medium through
13165 the VirtualBox API, not a physical file-system lock of the underlying
13166 storage unit.
13167
13168 This method returns the current state of the medium
13169 <i>before</i> the operation.
13170
13171 <result name="VBOX_E_INVALID_OBJECT_STATE">
13172 Invalid medium state (e.g. not created, locked, inaccessible,
13173 creating, deleting).
13174 </result>
13175
13176 </desc>
13177 <param name="state" type="MediumState" dir="return">
13178 <desc>
13179 State of the medium after the operation.
13180 </desc>
13181 </param>
13182 </method>
13183
13184 <method name="unlockRead">
13185 <desc>
13186 Cancels the read lock previously set by <link to="#lockRead"/>.
13187
13188 For both success and failure, this method returns the current state
13189 of the medium <i>after</i> the operation.
13190
13191 See <link to="#lockRead"/> for more details.
13192
13193 <result name="VBOX_E_INVALID_OBJECT_STATE">
13194 Medium not locked for reading.
13195 </result>
13196
13197 </desc>
13198 <param name="state" type="MediumState" dir="return">
13199 <desc>
13200 State of the medium after the operation.
13201 </desc>
13202 </param>
13203 </method>
13204
13205 <method name="lockWrite">
13206 <desc>
13207 Locks this medium for writing.
13208
13209 A write lock, as opposed to <link to="#lockRead"/>, is
13210 exclusive: there may be only one client holding a write lock,
13211 and there may be no read locks while the write lock is held.
13212 As a result, read-locking fails if a write lock is held, and
13213 write-locking fails if either a read or another write lock is held.
13214
13215 When a medium is locked for writing, it cannot be modified
13216 from within VirtualBox, and it is not guaranteed that the values
13217 of its properties are up-to-date. Any method that changes the
13218 properties of this medium or contents of the storage unit will
13219 return an error (unless explicitly stated otherwise).
13220
13221 When a virtual machine is started up, it locks for writing all
13222 media it uses to write data to. If any medium could not be locked
13223 for writing, the startup procedure will fail. If a medium has
13224 differencing images, then while the machine is running, only
13225 the last ("leaf") differencing image is locked for writing,
13226 whereas its parents are locked for reading only.
13227
13228 A medium is also locked for writing when it is the target of a
13229 write operation such as <link to="#cloneTo"/> or <link to="#mergeTo"/>.
13230
13231 The medium locked for writing must be unlocked using the <link
13232 to="#unlockWrite"/> method. Write locks <i>cannot</i> be nested.
13233
13234 This method sets the medium state (see <link to="#state"/>) to
13235 "LockedWrite" on success. The medium's previous state must be
13236 either "Created" or "Inaccessible".
13237
13238 Locking an inaccessible medium is not an error; this method performs
13239 a logical lock that prevents modifications of this medium through
13240 the VirtualBox API, not a physical file-system lock of the underlying
13241 storage unit.
13242
13243 For both, success and failure, this method returns the current
13244 state of the medium <i>before</i> the operation.
13245
13246 <result name="VBOX_E_INVALID_OBJECT_STATE">
13247 Invalid medium state (e.g. not created, locked, inaccessible,
13248 creating, deleting).
13249 </result>
13250
13251 </desc>
13252 <param name="state" type="MediumState" dir="return">
13253 <desc>
13254 State of the medium after the operation.
13255 </desc>
13256 </param>
13257 </method>
13258
13259 <method name="unlockWrite">
13260 <desc>
13261 Cancels the write lock previously set by <link to="#lockWrite"/>.
13262
13263 For both success and failure, this method returns the current
13264 state of the medium <i>after</i> the operation.
13265
13266 See <link to="#lockWrite"/> for more details.
13267
13268 <result name="VBOX_E_INVALID_OBJECT_STATE">
13269 Medium not locked for writing.
13270 </result>
13271
13272 </desc>
13273 <param name="state" type="MediumState" dir="return">
13274 <desc>
13275 State of the medium after the operation.
13276 </desc>
13277 </param>
13278 </method>
13279
13280 <method name="close">
13281 <desc>
13282 Closes this medium.
13283
13284 The medium must not be attached to any known virtual machine
13285 and must not have any known child media, otherwise the
13286 operation will fail.
13287
13288 When the medium is successfully closed, it is removed from
13289 the list of registered media, but its storage unit is not
13290 deleted. In particular, this means that this medium can
13291 later be opened again using the <link to="IVirtualBox::openMedium"/>
13292 call.
13293
13294 Note that after this method successfully returns, the given medium
13295 object becomes uninitialized. This means that any attempt
13296 to call any of its methods or attributes will fail with the
13297 <tt>"Object not ready" (E_ACCESSDENIED)</tt> error.
13298
13299 <result name="VBOX_E_INVALID_OBJECT_STATE">
13300 Invalid medium state (other than not created, created or
13301 inaccessible).
13302 </result>
13303 <result name="VBOX_E_OBJECT_IN_USE">
13304 Medium attached to virtual machine.
13305 </result>
13306 <result name="VBOX_E_FILE_ERROR">
13307 Settings file not accessible.
13308 </result>
13309 <result name="VBOX_E_XML_ERROR">
13310 Could not parse the settings file.
13311 </result>
13312
13313 </desc>
13314 </method>
13315
13316 <!-- property methods -->
13317
13318 <method name="getProperty" const="yes">
13319 <desc>
13320 Returns the value of the custom medium property with the given name.
13321
13322 The list of all properties supported by the given medium format can
13323 be obtained with <link to="IMediumFormat::describeProperties"/>.
13324
13325 <note>If this method returns an empty string in @a value, the requested
13326 property is supported but currently not assigned any value.</note>
13327
13328 <result name="VBOX_E_OBJECT_NOT_FOUND">
13329 Requested property does not exist (not supported by the format).
13330 </result>
13331 <result name="E_INVALIDARG">@a name is @c null or empty.</result>
13332 </desc>
13333 <param name="name" type="wstring" dir="in">
13334 <desc>Name of the property to get.</desc>
13335 </param>
13336 <param name="value" type="wstring" dir="return">
13337 <desc>Current property value.</desc>
13338 </param>
13339 </method>
13340
13341 <method name="setProperty">
13342 <desc>
13343 Sets the value of the custom medium property with the given name.
13344
13345 The list of all properties supported by the given medium format can
13346 be obtained with <link to="IMediumFormat::describeProperties"/>.
13347
13348 <note>Setting the property value to @c null or an empty string is
13349 equivalent to deleting the existing value. A default value (if it is
13350 defined for this property) will be used by the format backend in this
13351 case.</note>
13352
13353 <result name="VBOX_E_OBJECT_NOT_FOUND">
13354 Requested property does not exist (not supported by the format).
13355 </result>
13356 <result name="E_INVALIDARG">@a name is @c null or empty.</result>
13357 </desc>
13358 <param name="name" type="wstring" dir="in">
13359 <desc>Name of the property to set.</desc>
13360 </param>
13361 <param name="value" type="wstring" dir="in">
13362 <desc>Property value to set.</desc>
13363 </param>
13364 </method>
13365
13366 <method name="getProperties" const="yes">
13367 <desc>
13368 Returns values for a group of properties in one call.
13369
13370 The names of the properties to get are specified using the @a names
13371 argument which is a list of comma-separated property names or
13372 an empty string if all properties are to be returned.
13373 <note>Currently the value of this argument is ignored and the method
13374 always returns all existing properties.</note>
13375
13376 The list of all properties supported by the given medium format can
13377 be obtained with <link to="IMediumFormat::describeProperties"/>.
13378
13379 The method returns two arrays, the array of property names corresponding
13380 to the @a names argument and the current values of these properties.
13381 Both arrays have the same number of elements with each element at the
13382 given index in the first array corresponds to an element at the same
13383 index in the second array.
13384
13385 For properties that do not have assigned values, an empty string is
13386 returned at the appropriate index in the @a returnValues array.
13387
13388 </desc>
13389 <param name="names" type="wstring" dir="in">
13390 <desc>
13391 Names of properties to get.
13392 </desc>
13393 </param>
13394 <param name="returnNames" type="wstring" safearray="yes" dir="out">
13395 <desc>Names of returned properties.</desc>
13396 </param>
13397 <param name="returnValues" type="wstring" safearray="yes" dir="return">
13398 <desc>Values of returned properties.</desc>
13399 </param>
13400 </method>
13401
13402 <method name="setProperties">
13403 <desc>
13404 Sets values for a group of properties in one call.
13405
13406 The names of the properties to set are passed in the @a names
13407 array along with the new values for them in the @a values array. Both
13408 arrays have the same number of elements with each element at the given
13409 index in the first array corresponding to an element at the same index
13410 in the second array.
13411
13412 If there is at least one property name in @a names that is not valid,
13413 the method will fail before changing the values of any other properties
13414 from the @a names array.
13415
13416 Using this method over <link to="#setProperty"/> is preferred if you
13417 need to set several properties at once since it is more efficient.
13418
13419 The list of all properties supported by the given medium format can
13420 be obtained with <link to="IMediumFormat::describeProperties"/>.
13421
13422 Setting the property value to @c null or an empty string is equivalent
13423 to deleting the existing value. A default value (if it is defined for
13424 this property) will be used by the format backend in this case.
13425 </desc>
13426 <param name="names" type="wstring" safearray="yes" dir="in">
13427 <desc>Names of properties to set.</desc>
13428 </param>
13429 <param name="values" type="wstring" safearray="yes" dir="in">
13430 <desc>Values of properties to set.</desc>
13431 </param>
13432 </method>
13433
13434 <!-- storage methods -->
13435
13436 <method name="createBaseStorage">
13437 <desc>
13438 Starts creating a hard disk storage unit (fixed/dynamic, according
13439 to the variant flags) in in the background. The previous storage unit
13440 created for this object, if any, must first be deleted using
13441 <link to="#deleteStorage"/>, otherwise the operation will fail.
13442
13443 Before the operation starts, the medium is placed in
13444 <link to="MediumState_Creating"/> state. If the create operation
13445 fails, the medium will be placed back in <link to="MediumState_NotCreated"/>
13446 state.
13447
13448 After the returned progress object reports that the operation has
13449 successfully completed, the medium state will be set to <link
13450 to="MediumState_Created"/>, the medium will be remembered by this
13451 VirtualBox installation and may be attached to virtual machines.
13452
13453 <result name="VBOX_E_NOT_SUPPORTED">
13454 The variant of storage creation operation is not supported. See <link
13455 to="IMediumFormat::capabilities"/>.
13456 </result>
13457 </desc>
13458 <param name="logicalSize" type="long long" dir="in">
13459 <desc>Maximum logical size of the medium in bytes.</desc>
13460 </param>
13461 <param name="variant" type="unsigned long" dir="in">
13462 <desc>Exact image variant which should be created (as a combination of
13463 <link to="MediumVariant" /> flags).</desc>
13464 </param>
13465 <param name="progress" type="IProgress" dir="return">
13466 <desc>Progress object to track the operation completion.</desc>
13467 </param>
13468 </method>
13469
13470 <method name="deleteStorage">
13471 <desc>
13472 Starts deleting the storage unit of this medium.
13473
13474 The medium must not be attached to any known virtual machine and must
13475 not have any known child media, otherwise the operation will fail.
13476 It will also fail if there is no storage unit to delete or if deletion
13477 is already in progress, or if the medium is being in use (locked for
13478 read or for write) or inaccessible. Therefore, the only valid state for
13479 this operation to succeed is <link to="MediumState_Created"/>.
13480
13481 Before the operation starts, the medium is placed in
13482 <link to="MediumState_Deleting"/> state and gets removed from the list
13483 of remembered hard disks (media registry). If the delete operation
13484 fails, the medium will be remembered again and placed back to
13485 <link to="MediumState_Created"/> state.
13486
13487 After the returned progress object reports that the operation is
13488 complete, the medium state will be set to
13489 <link to="MediumState_NotCreated"/> and you will be able to use one of
13490 the storage creation methods to create it again.
13491
13492 <see><link to="#close"/></see>
13493
13494 <result name="VBOX_E_OBJECT_IN_USE">
13495 Medium is attached to a virtual machine.
13496 </result>
13497 <result name="VBOX_E_NOT_SUPPORTED">
13498 Storage deletion is not allowed because neither of storage creation
13499 operations are supported. See
13500 <link to="IMediumFormat::capabilities"/>.
13501 </result>
13502
13503 <note>
13504 If the deletion operation fails, it is not guaranteed that the storage
13505 unit still exists. You may check the <link to="IMedium::state"/> value
13506 to answer this question.
13507 </note>
13508 </desc>
13509 <param name="progress" type="IProgress" dir="return">
13510 <desc>Progress object to track the operation completion.</desc>
13511 </param>
13512 </method>
13513
13514 <!-- diff methods -->
13515
13516 <method name="createDiffStorage">
13517 <desc>
13518 Starts creating an empty differencing storage unit based on this
13519 medium in the format and at the location defined by the @a target
13520 argument.
13521
13522 The target medium must be in <link to="MediumState_NotCreated"/>
13523 state (i.e. must not have an existing storage unit). Upon successful
13524 completion, this operation will set the type of the target medium to
13525 <link to="MediumType_Normal"/> and create a storage unit necessary to
13526 represent the differencing medium data in the given format (according
13527 to the storage format of the target object).
13528
13529 After the returned progress object reports that the operation is
13530 successfully complete, the target medium gets remembered by this
13531 VirtualBox installation and may be attached to virtual machines.
13532
13533 <note>
13534 The medium will be set to <link to="MediumState_LockedRead"/>
13535 state for the duration of this operation.
13536 </note>
13537 <result name="VBOX_E_OBJECT_IN_USE">
13538 Medium not in @c NotCreated state.
13539 </result>
13540 </desc>
13541 <param name="target" type="IMedium" dir="in">
13542 <desc>Target medium.</desc>
13543 </param>
13544 <param name="variant" type="unsigned long" dir="in">
13545 <desc>Exact image variant which should be created (as a combination of
13546 <link to="MediumVariant" /> flags).</desc>
13547 </param>
13548 <param name="progress" type="IProgress" dir="return">
13549 <desc>Progress object to track the operation completion.</desc>
13550 </param>
13551 </method>
13552
13553 <method name="mergeTo">
13554 <desc>
13555 Starts merging the contents of this medium and all intermediate
13556 differencing media in the chain to the given target medium.
13557
13558 The target medium must be either a descendant of this medium or
13559 its ancestor (otherwise this method will immediately return a failure).
13560 It follows that there are two logical directions of the merge operation:
13561 from ancestor to descendant (<i>forward merge</i>) and from descendant to
13562 ancestor (<i>backward merge</i>). Let us consider the following medium
13563 chain:
13564
13565 <pre>Base &lt;- Diff_1 &lt;- Diff_2</pre>
13566
13567 Here, calling this method on the <tt>Base</tt> medium object with
13568 <tt>Diff_2</tt> as an argument will be a forward merge; calling it on
13569 <tt>Diff_2</tt> with <tt>Base</tt> as an argument will be a backward
13570 merge. Note that in both cases the contents of the resulting medium
13571 will be the same, the only difference is the medium object that takes
13572 the result of the merge operation. In case of the forward merge in the
13573 above example, the result will be written to <tt>Diff_2</tt>; in case of
13574 the backward merge, the result will be written to <tt>Base</tt>. In
13575 other words, the result of the operation is always stored in the target
13576 medium.
13577
13578 Upon successful operation completion, the storage units of all media in
13579 the chain between this (source) medium and the target medium, including
13580 the source medium itself, will be automatically deleted and the
13581 relevant medium objects (including this medium) will become
13582 uninitialized. This means that any attempt to call any of
13583 their methods or attributes will fail with the
13584 <tt>"Object not ready" (E_ACCESSDENIED)</tt> error. Applied to the above
13585 example, the forward merge of <tt>Base</tt> to <tt>Diff_2</tt> will
13586 delete and uninitialize both <tt>Base</tt> and <tt>Diff_1</tt> media.
13587 Note that <tt>Diff_2</tt> in this case will become a base medium
13588 itself since it will no longer be based on any other medium.
13589
13590 Considering the above, all of the following conditions must be met in
13591 order for the merge operation to succeed:
13592 <ul>
13593 <li>
13594 Neither this (source) medium nor any intermediate
13595 differencing medium in the chain between it and the target
13596 medium is attached to any virtual machine.
13597 </li>
13598 <li>
13599 Neither the source medium nor the target medium is an
13600 <link to="MediumType_Immutable"/> medium.
13601 </li>
13602 <li>
13603 The part of the medium tree from the source medium to the
13604 target medium is a linear chain, i.e. all medium in this
13605 chain have exactly one child which is the next medium in this
13606 chain. The only exception from this rule is the target medium in
13607 the forward merge operation; it is allowed to have any number of
13608 child media because the merge operation will not change its
13609 logical contents (as it is seen by the guest OS or by children).
13610 </li>
13611 <li>
13612 None of the involved media are in
13613 <link to="MediumState_LockedRead"/> or
13614 <link to="MediumState_LockedWrite"/> state.
13615 </li>
13616 </ul>
13617
13618 <note>
13619 This (source) medium and all intermediates will be placed to <link
13620 to="MediumState_Deleting"/> state and the target medium will be
13621 placed to <link to="MediumState_LockedWrite"/> state and for the
13622 duration of this operation.
13623 </note>
13624 </desc>
13625 <param name="target" type="IMedium" dir="in">
13626 <desc>Target medium.</desc>
13627 </param>
13628 <param name="progress" type="IProgress" dir="return">
13629 <desc>Progress object to track the operation completion.</desc>
13630 </param>
13631 </method>
13632
13633 <!-- clone method -->
13634
13635 <method name="cloneTo">
13636 <desc>
13637 Starts creating a clone of this medium in the format and at the
13638 location defined by the @a target argument.
13639
13640 The target medium must be either in <link to="MediumState_NotCreated"/>
13641 state (i.e. must not have an existing storage unit) or in
13642 <link to="MediumState_Created"/> state (i.e. created and not locked, and
13643 big enough to hold the data or else the copy will be partial). Upon
13644 successful completion, the cloned medium will contain exactly the
13645 same sector data as the medium being cloned, except that in the
13646 first case a new UUID for the clone will be randomly generated, and in
13647 the second case the UUID will remain unchanged.
13648
13649 The @a parent argument defines which medium will be the parent
13650 of the clone. Passing a @c null reference indicates that the clone will
13651 be a base image, i.e. completely independent. It is possible to specify
13652 an arbitrary medium for this parameter, including the parent of the
13653 medium which is being cloned. Even cloning to a child of the source
13654 medium is possible. Note that when cloning to an existing image, the
13655 @a parent argument is ignored.
13656
13657 After the returned progress object reports that the operation is
13658 successfully complete, the target medium gets remembered by this
13659 VirtualBox installation and may be attached to virtual machines.
13660
13661 <note>
13662 This medium will be placed to <link to="MediumState_LockedRead"/>
13663 state for the duration of this operation.
13664 </note>
13665 <result name="E_NOTIMPL">
13666 The specified cloning variant is not supported at the moment.
13667 </result>
13668 </desc>
13669 <param name="target" type="IMedium" dir="in">
13670 <desc>Target medium.</desc>
13671 </param>
13672 <param name="variant" type="unsigned long" dir="in">
13673 <desc>Exact image variant which should be created (as a combination of
13674 <link to="MediumVariant" /> flags).</desc>
13675 </param>
13676 <param name="parent" type="IMedium" dir="in">
13677 <desc>Parent of the cloned medium.</desc>
13678 </param>
13679 <param name="progress" type="IProgress" dir="return">
13680 <desc>Progress object to track the operation completion.</desc>
13681 </param>
13682 </method>
13683
13684 <method name="cloneToBase">
13685 <desc>
13686 Starts creating a clone of this medium in the format and at the
13687 location defined by the @a target argument.
13688
13689 The target medium must be either in <link to="MediumState_NotCreated"/>
13690 state (i.e. must not have an existing storage unit) or in
13691 <link to="MediumState_Created"/> state (i.e. created and not locked, and
13692 big enough to hold the data or else the copy will be partial). Upon
13693 successful completion, the cloned medium will contain exactly the
13694 same sector data as the medium being cloned, except that in the
13695 first case a new UUID for the clone will be randomly generated, and in
13696 the second case the UUID will remain unchanged.
13697
13698 The @a parent argument defines which medium will be the parent
13699 of the clone. In this case the clone will be a base image, i.e.
13700 completely independent. It is possible to specify an arbitrary
13701 medium for this parameter, including the parent of the
13702 medium which is being cloned. Even cloning to a child of the source
13703 medium is possible. Note that when cloning to an existing image, the
13704 @a parent argument is ignored.
13705
13706 After the returned progress object reports that the operation is
13707 successfully complete, the target medium gets remembered by this
13708 VirtualBox installation and may be attached to virtual machines.
13709
13710 <note>
13711 This medium will be placed to <link to="MediumState_LockedRead"/>
13712 state for the duration of this operation.
13713 </note>
13714 <result name="E_NOTIMPL">
13715 The specified cloning variant is not supported at the moment.
13716 </result>
13717 </desc>
13718 <param name="target" type="IMedium" dir="in">
13719 <desc>Target medium.</desc>
13720 </param>
13721 <param name="variant" type="unsigned long" dir="in">
13722 <desc>Exact image variant which should be created (as a combination of
13723 <link to="MediumVariant" /> flags).</desc>
13724 </param>
13725 <param name="progress" type="IProgress" dir="return">
13726 <desc>Progress object to track the operation completion.</desc>
13727 </param>
13728 </method>
13729
13730 <!-- other methods -->
13731
13732 <method name="compact">
13733 <desc>
13734 Starts compacting of this medium. This means that the medium is
13735 transformed into a possibly more compact storage representation.
13736 This potentially creates temporary images, which can require a
13737 substantial amount of additional disk space.
13738
13739 This medium will be placed to <link to="MediumState_LockedWrite"/>
13740 state and all its parent media (if any) will be placed to
13741 <link to="MediumState_LockedRead"/> state for the duration of this
13742 operation.
13743
13744 Please note that the results can be either returned straight away,
13745 or later as the result of the background operation via the object
13746 returned via the @a progress parameter.
13747
13748 <result name="VBOX_E_NOT_SUPPORTED">
13749 Medium format does not support compacting (but potentially
13750 needs it).
13751 </result>
13752 </desc>
13753 <param name="progress" type="IProgress" dir="return">
13754 <desc>Progress object to track the operation completion.</desc>
13755 </param>
13756 </method>
13757
13758 <method name="resize">
13759 <desc>
13760 Starts resizing this medium. This means that the nominal size of the
13761 medium is set to the new value. Both increasing and decreasing the
13762 size is possible, and there are no safety checks, since VirtualBox
13763 does not make any assumptions about the medium contents.
13764
13765 Resizing usually needs additional disk space, and possibly also
13766 some temporary disk space. Note that resize does not create a full
13767 temporary copy of the medium, so the additional disk space requirement
13768 is usually much lower than using the clone operation.
13769
13770 This medium will be placed to <link to="MediumState_LockedWrite"/>
13771 state for the duration of this operation.
13772
13773 Please note that the results can be either returned straight away,
13774 or later as the result of the background operation via the object
13775 returned via the @a progress parameter.
13776
13777 <result name="VBOX_E_NOT_SUPPORTED">
13778 Medium format does not support resizing.
13779 </result>
13780 </desc>
13781 <param name="logicalSize" type="long long" dir="in">
13782 <desc>New nominal capacity of the medium in bytes.</desc>
13783 </param>
13784 <param name="progress" type="IProgress" dir="return">
13785 <desc>Progress object to track the operation completion.</desc>
13786 </param>
13787 </method>
13788
13789 <method name="reset">
13790 <desc>
13791 Starts erasing the contents of this differencing medium.
13792
13793 This operation will reset the differencing medium to its initial
13794 state when it does not contain any sector data and any read operation is
13795 redirected to its parent medium. This automatically gets called
13796 during VM power-up for every medium whose <link to="#autoReset" />
13797 attribute is @c true.
13798
13799 The medium will be write-locked for the duration of this operation (see
13800 <link to="#lockWrite" />).
13801
13802 <result name="VBOX_E_NOT_SUPPORTED">
13803 This is not a differencing medium.
13804 </result>
13805 <result name="VBOX_E_INVALID_OBJECT_STATE">
13806 Medium is not in <link to="MediumState_Created"/> or
13807 <link to="MediumState_Inaccessible"/> state.
13808 </result>
13809 </desc>
13810 <param name="progress" type="IProgress" dir="return">
13811 <desc>Progress object to track the operation completion.</desc>
13812 </param>
13813 </method>
13814
13815 </interface>
13816
13817
13818 <!--
13819 // IMediumFormat
13820 /////////////////////////////////////////////////////////////////////////
13821 -->
13822
13823 <enum
13824 name="DataType"
13825 uuid="d90ea51e-a3f1-4a01-beb1-c1723c0d3ba7"
13826 >
13827 <const name="Int32" value="0"/>
13828 <const name="Int8" value="1"/>
13829 <const name="String" value="2"/>
13830 </enum>
13831
13832 <enum
13833 name="DataFlags"
13834 uuid="86884dcf-1d6b-4f1b-b4bf-f5aa44959d60"
13835 >
13836 <const name="None" value="0x00"/>
13837 <const name="Mandatory" value="0x01"/>
13838 <const name="Expert" value="0x02"/>
13839 <const name="Array" value="0x04"/>
13840 <const name="FlagMask" value="0x07"/>
13841 </enum>
13842
13843 <enum
13844 name="MediumFormatCapabilities"
13845 uuid="7342ba79-7ce0-4d94-8f86-5ed5a185d9bd"
13846 >
13847 <desc>
13848 Medium format capability flags.
13849 </desc>
13850
13851 <const name="Uuid" value="0x01">
13852 <desc>
13853 Supports UUIDs as expected by VirtualBox code.
13854 </desc>
13855 </const>
13856
13857 <const name="CreateFixed" value="0x02">
13858 <desc>
13859 Supports creating fixed size images, allocating all space instantly.
13860 </desc>
13861 </const>
13862
13863 <const name="CreateDynamic" value="0x04">
13864 <desc>
13865 Supports creating dynamically growing images, allocating space on
13866 demand.
13867 </desc>
13868 </const>
13869
13870 <const name="CreateSplit2G" value="0x08">
13871 <desc>
13872 Supports creating images split in chunks of a bit less than 2 GBytes.
13873 </desc>
13874 </const>
13875
13876 <const name="Differencing" value="0x10">
13877 <desc>
13878 Supports being used as a format for differencing media (see <link
13879 to="IMedium::createDiffStorage"/>).
13880 </desc>
13881 </const>
13882
13883 <const name="Asynchronous" value="0x20">
13884 <desc>
13885 Supports asynchronous I/O operations for at least some configurations.
13886 </desc>
13887 </const>
13888
13889 <const name="File" value="0x40">
13890 <desc>
13891 The format backend operates on files (the <link to="IMedium::location"/>
13892 attribute of the medium specifies a file used to store medium
13893 data; for a list of supported file extensions see
13894 <link to="IMediumFormat::describeFileExtensions"/>).
13895 </desc>
13896 </const>
13897
13898 <const name="Properties" value="0x80">
13899 <desc>
13900 The format backend uses the property interface to configure the storage
13901 location and properties (the <link to="IMediumFormat::describeProperties"/>
13902 method is used to get access to properties supported by the given medium format).
13903 </desc>
13904 </const>
13905
13906 <const name="TcpNetworking" value="0x100">
13907 <desc>
13908 The format backend uses the TCP networking interface for network access.
13909 </desc>
13910 </const>
13911
13912 <const name="VFS" value="0x200">
13913 <desc>
13914 The format backend supports virtual filesystem functionality.
13915 </desc>
13916 </const>
13917
13918 <const name="CapabilityMask" value="0x3FF"/>
13919 </enum>
13920
13921 <interface
13922 name="IMediumFormat" extends="$unknown"
13923 uuid="9bd5b655-ea47-4637-99f3-aad0948be35b"
13924 wsmap="managed"
13925 >
13926 <desc>
13927 The IMediumFormat interface represents a medium format.
13928
13929 Each medium format has an associated backend which is used to handle
13930 media stored in this format. This interface provides information
13931 about the properties of the associated backend.
13932
13933 Each medium format is identified by a string represented by the
13934 <link to="#id"/> attribute. This string is used in calls like
13935 <link to="IVirtualBox::createHardDisk"/> to specify the desired
13936 format.
13937
13938 The list of all supported medium formats can be obtained using
13939 <link to="ISystemProperties::mediumFormats"/>.
13940
13941 <see><link to="IMedium"/></see>
13942 </desc>
13943
13944 <attribute name="id" type="wstring" readonly="yes">
13945 <desc>
13946 Identifier of this format.
13947
13948 The format identifier is a non-@c null non-empty ASCII string. Note that
13949 this string is case-insensitive. This means that, for example, all of
13950 the following strings:
13951 <pre>
13952 "VDI"
13953 "vdi"
13954 "VdI"</pre>
13955 refer to the same medium format.
13956
13957 This string is used in methods of other interfaces where it is necessary
13958 to specify a medium format, such as
13959 <link to="IVirtualBox::createHardDisk"/>.
13960 </desc>
13961 </attribute>
13962
13963 <attribute name="name" type="wstring" readonly="yes">
13964 <desc>
13965 Human readable description of this format.
13966
13967 Mainly for use in file open dialogs.
13968 </desc>
13969 </attribute>
13970
13971 <attribute name="capabilities" type="unsigned long" readonly="yes">
13972 <desc>
13973 Capabilities of the format as a set of bit flags.
13974
13975 For the meaning of individual capability flags see
13976 <link to="MediumFormatCapabilities"/>.
13977 </desc>
13978 </attribute>
13979
13980 <method name="describeFileExtensions">
13981 <desc>
13982 Returns two arrays describing the supported file extensions.
13983
13984 The first array contains the supported extensions and the seconds one
13985 the type each extension supports. Both have the same size.
13986
13987 Note that some backends do not work on files, so this array may be
13988 empty.
13989
13990 <see><link to="IMediumFormat::capabilities"/></see>
13991 </desc>
13992 <param name="extensions" type="wstring" safearray="yes" dir="out">
13993 <desc>The array of supported extensions.</desc>
13994 </param>
13995 <param name="type" type="DeviceType" safearray="yes" dir="out">
13996 <desc>The array which indicates the device type for every given extension.</desc>
13997 </param>
13998 </method>
13999
14000 <method name="describeProperties" const="yes">
14001 <desc>
14002 Returns several arrays describing the properties supported by this
14003 format.
14004
14005 An element with the given index in each array describes one
14006 property. Thus, the number of elements in each returned array is the
14007 same and corresponds to the number of supported properties.
14008
14009 The returned arrays are filled in only if the
14010 <link to="MediumFormatCapabilities_Properties"/> flag is set.
14011 All arguments must be non-@c null.
14012
14013 <see><link to="DataType"/>, <link to="DataFlags"/></see>
14014 </desc>
14015
14016 <param name="names" type="wstring" safearray="yes" dir="out">
14017 <desc>Array of property names.</desc>
14018 </param>
14019 <param name="description" type="wstring" safearray="yes" dir="out">
14020 <desc>Array of property descriptions.</desc>
14021 </param>
14022 <param name="types" type="DataType" safearray="yes" dir="out">
14023 <desc>Array of property types.</desc>
14024 </param>
14025 <param name="flags" type="unsigned long" safearray="yes" dir="out">
14026 <desc>Array of property flags.</desc>
14027 </param>
14028 <param name="defaults" type="wstring" safearray="yes" dir="out">
14029 <desc>Array of default property values.</desc>
14030 </param>
14031 </method>
14032
14033 </interface>
14034
14035
14036 <!--
14037 // IKeyboard
14038 /////////////////////////////////////////////////////////////////////////
14039 -->
14040
14041 <interface
14042 name="IKeyboard" extends="$unknown"
14043 uuid="f6916ec5-a881-4237-898f-7de58cf88672"
14044 wsmap="managed"
14045 >
14046 <desc>
14047 The IKeyboard interface represents the virtual machine's keyboard. Used
14048 in <link to="IConsole::keyboard"/>.
14049
14050 Use this interface to send keystrokes or the Ctrl-Alt-Del sequence
14051 to the virtual machine.
14052
14053 </desc>
14054 <method name="putScancode">
14055 <desc>Sends a scancode to the keyboard.
14056
14057 <result name="VBOX_E_IPRT_ERROR">
14058 Could not send scan code to virtual keyboard.
14059 </result>
14060
14061 </desc>
14062 <param name="scancode" type="long" dir="in"/>
14063 </method>
14064
14065 <method name="putScancodes">
14066 <desc>Sends an array of scancodes to the keyboard.
14067
14068 <result name="VBOX_E_IPRT_ERROR">
14069 Could not send all scan codes to virtual keyboard.
14070 </result>
14071
14072 </desc>
14073 <param name="scancodes" type="long" dir="in" safearray="yes"/>
14074 <param name="codesStored" type="unsigned long" dir="return"/>
14075 </method>
14076
14077 <method name="putCAD">
14078 <desc>Sends the Ctrl-Alt-Del sequence to the keyboard. This
14079 function is nothing special, it is just a convenience function
14080 calling <link to="IKeyboard::putScancodes"/> with the proper scancodes.
14081
14082 <result name="VBOX_E_IPRT_ERROR">
14083 Could not send all scan codes to virtual keyboard.
14084 </result>
14085
14086 </desc>
14087 </method>
14088
14089 <attribute name="eventSource" type="IEventSource" readonly="yes">
14090 <desc>
14091 Event source for keyboard events.
14092 </desc>
14093 </attribute>
14094
14095 </interface>
14096
14097
14098 <!--
14099 // IMouse
14100 /////////////////////////////////////////////////////////////////////////
14101 -->
14102
14103 <enum
14104 name="MouseButtonState"
14105 uuid="9ee094b8-b28a-4d56-a166-973cb588d7f8"
14106 >
14107 <desc>
14108 Mouse button state.
14109 </desc>
14110
14111 <const name="LeftButton" value="0x01"/>
14112 <const name="RightButton" value="0x02"/>
14113 <const name="MiddleButton" value="0x04"/>
14114 <const name="WheelUp" value="0x08"/>
14115 <const name="WheelDown" value="0x10"/>
14116 <const name="XButton1" value="0x20"/>
14117 <const name="XButton2" value="0x40"/>
14118 <const name="MouseStateMask" value="0x7F"/>
14119 </enum>
14120
14121 <interface
14122 name="IMouse" extends="$unknown"
14123 uuid="05044a52-7811-4f00-ae3a-0ab7ff707b10"
14124 wsmap="managed"
14125 >
14126 <desc>
14127 The IMouse interface represents the virtual machine's mouse. Used in
14128 <link to="IConsole::mouse"/>.
14129
14130 Through this interface, the virtual machine's virtual mouse can be
14131 controlled.
14132 </desc>
14133
14134 <attribute name="absoluteSupported" type="boolean" readonly="yes">
14135 <desc>
14136 Whether the guest OS supports absolute mouse pointer positioning
14137 or not.
14138 <note>
14139 You can use the <link to="IMouseCapabilityChangedEvent"/>
14140 event to be instantly informed about changes of this attribute
14141 during virtual machine execution.
14142 </note>
14143 <see><link to="#putMouseEventAbsolute"/></see>
14144 </desc>
14145 </attribute>
14146
14147 <attribute name="relativeSupported" type="boolean" readonly="yes">
14148 <desc>
14149 Whether the guest OS supports relative mouse pointer positioning
14150 or not.
14151 <note>
14152 You can use the <link to="IMouseCapabilityChangedEvent"/>
14153 event to be instantly informed about changes of this attribute
14154 during virtual machine execution.
14155 </note>
14156 <see><link to="#putMouseEvent"/></see>
14157 </desc>
14158 </attribute>
14159
14160 <attribute name="needsHostCursor" type="boolean" readonly="yes">
14161 <desc>
14162 Whether the guest OS can currently switch to drawing it's own mouse
14163 cursor on demand.
14164 <note>
14165 You can use the <link to="IMouseCapabilityChangedEvent"/>
14166 event to be instantly informed about changes of this attribute
14167 during virtual machine execution.
14168 </note>
14169 <see><link to="#putMouseEvent"/></see>
14170 </desc>
14171 </attribute>
14172
14173 <method name="putMouseEvent">
14174 <desc>
14175 Initiates a mouse event using relative pointer movements
14176 along x and y axis.
14177
14178 <result name="E_ACCESSDENIED">
14179 Console not powered up.
14180 </result>
14181 <result name="VBOX_E_IPRT_ERROR">
14182 Could not send mouse event to virtual mouse.
14183 </result>
14184
14185 </desc>
14186
14187 <param name="dx" type="long" dir="in">
14188 <desc>
14189 Amount of pixels the mouse should move to the right.
14190 Negative values move the mouse to the left.
14191 </desc>
14192 </param>
14193 <param name="dy" type="long" dir="in">
14194 <desc>
14195 Amount of pixels the mouse should move downwards.
14196 Negative values move the mouse upwards.
14197 </desc>
14198 </param>
14199 <param name="dz" type="long" dir="in">
14200 <desc>
14201 Amount of mouse wheel moves.
14202 Positive values describe clockwise wheel rotations,
14203 negative values describe counterclockwise rotations.
14204 </desc>
14205 </param>
14206 <param name="dw" type="long" dir="in">
14207 <desc>
14208 Amount of horizontal mouse wheel moves.
14209 Positive values describe a movement to the left,
14210 negative values describe a movement to the right.
14211 </desc>
14212 </param>
14213 <param name="buttonState" type="long" dir="in">
14214 <desc>
14215 The current state of mouse buttons. Every bit represents
14216 a mouse button as follows:
14217 <table>
14218 <tr><td>Bit 0 (<tt>0x01</tt>)</td><td>left mouse button</td></tr>
14219 <tr><td>Bit 1 (<tt>0x02</tt>)</td><td>right mouse button</td></tr>
14220 <tr><td>Bit 2 (<tt>0x04</tt>)</td><td>middle mouse button</td></tr>
14221 </table>
14222 A value of <tt>1</tt> means the corresponding button is pressed.
14223 otherwise it is released.
14224 </desc>
14225 </param>
14226 </method>
14227
14228 <method name="putMouseEventAbsolute">
14229 <desc>
14230 Positions the mouse pointer using absolute x and y coordinates.
14231 These coordinates are expressed in pixels and
14232 start from <tt>[1,1]</tt> which corresponds to the top left
14233 corner of the virtual display.
14234
14235 <result name="E_ACCESSDENIED">
14236 Console not powered up.
14237 </result>
14238 <result name="VBOX_E_IPRT_ERROR">
14239 Could not send mouse event to virtual mouse.
14240 </result>
14241
14242 <note>
14243 This method will have effect only if absolute mouse
14244 positioning is supported by the guest OS.
14245 </note>
14246
14247 <see><link to="#absoluteSupported"/></see>
14248 </desc>
14249
14250 <param name="x" type="long" dir="in">
14251 <desc>
14252 X coordinate of the pointer in pixels, starting from @c 1.
14253 </desc>
14254 </param>
14255 <param name="y" type="long" dir="in">
14256 <desc>
14257 Y coordinate of the pointer in pixels, starting from @c 1.
14258 </desc>
14259 </param>
14260 <param name="dz" type="long" dir="in">
14261 <desc>
14262 Amount of mouse wheel moves.
14263 Positive values describe clockwise wheel rotations,
14264 negative values describe counterclockwise rotations.
14265 </desc>
14266 </param>
14267 <param name="dw" type="long" dir="in">
14268 <desc>
14269 Amount of horizontal mouse wheel moves.
14270 Positive values describe a movement to the left,
14271 negative values describe a movement to the right.
14272 </desc>
14273 </param>
14274 <param name="buttonState" type="long" dir="in">
14275 <desc>
14276 The current state of mouse buttons. Every bit represents
14277 a mouse button as follows:
14278 <table>
14279 <tr><td>Bit 0 (<tt>0x01</tt>)</td><td>left mouse button</td></tr>
14280 <tr><td>Bit 1 (<tt>0x02</tt>)</td><td>right mouse button</td></tr>
14281 <tr><td>Bit 2 (<tt>0x04</tt>)</td><td>middle mouse button</td></tr>
14282 </table>
14283 A value of @c 1 means the corresponding button is pressed.
14284 otherwise it is released.
14285 </desc>
14286 </param>
14287 </method>
14288
14289 <attribute name="eventSource" type="IEventSource" readonly="yes">
14290 <desc>
14291 Event source for mouse events.
14292 </desc>
14293 </attribute>
14294
14295 </interface>
14296
14297 <!--
14298 // IDisplay
14299 /////////////////////////////////////////////////////////////////////////
14300 -->
14301
14302 <enum
14303 name="FramebufferPixelFormat"
14304 uuid="7acfd5ed-29e3-45e3-8136-73c9224f3d2d"
14305 >
14306 <desc>
14307 Format of the video memory buffer. Constants represented by this enum can
14308 be used to test for particular values of <link
14309 to="IFramebuffer::pixelFormat"/>. See also <link
14310 to="IFramebuffer::requestResize"/>.
14311
14312 See also www.fourcc.org for more information about FOURCC pixel formats.
14313 </desc>
14314
14315 <const name="Opaque" value="0">
14316 <desc>
14317 Unknown buffer format (the user may not assume any particular format of
14318 the buffer).
14319 </desc>
14320 </const>
14321 <const name="FOURCC_RGB" value="0x32424752">
14322 <desc>
14323 Basic RGB format (<link to="IFramebuffer::bitsPerPixel"/> determines the
14324 bit layout).
14325 </desc>
14326 </const>
14327 </enum>
14328
14329 <interface
14330 name="IFramebuffer" extends="$unknown"
14331 uuid="b7ed347a-5765-40a0-ae1c-f543eb4ddeaf"
14332 wsmap="suppress"
14333 >
14334 <attribute name="address" type="octet" mod="ptr" readonly="yes">
14335 <desc>Address of the start byte of the frame buffer.</desc>
14336 </attribute>
14337
14338 <attribute name="width" type="unsigned long" readonly="yes">
14339 <desc>Frame buffer width, in pixels.</desc>
14340 </attribute>
14341
14342 <attribute name="height" type="unsigned long" readonly="yes">
14343 <desc>Frame buffer height, in pixels.</desc>
14344 </attribute>
14345
14346 <attribute name="bitsPerPixel" type="unsigned long" readonly="yes">
14347 <desc>
14348 Color depth, in bits per pixel. When <link to="#pixelFormat"/> is <link
14349 to="FramebufferPixelFormat_FOURCC_RGB">FOURCC_RGB</link>, valid values
14350 are: 8, 15, 16, 24 and 32.
14351 </desc>
14352 </attribute>
14353
14354 <attribute name="bytesPerLine" type="unsigned long" readonly="yes">
14355 <desc>
14356 Scan line size, in bytes. When <link to="#pixelFormat"/> is <link
14357 to="FramebufferPixelFormat_FOURCC_RGB">FOURCC_RGB</link>, the
14358 size of the scan line must be aligned to 32 bits.
14359 </desc>
14360 </attribute>
14361
14362 <attribute name="pixelFormat" type="unsigned long" readonly="yes">
14363 <desc>
14364 Frame buffer pixel format. It's either one of the values defined by <link
14365 to="FramebufferPixelFormat"/> or a raw FOURCC code.
14366 <note>
14367 This attribute must never return <link
14368 to="FramebufferPixelFormat_Opaque"/> -- the format of the buffer
14369 <link to="#address"/> points to must be always known.
14370 </note>
14371 </desc>
14372 </attribute>
14373
14374 <attribute name="usesGuestVRAM" type="boolean" readonly="yes">
14375 <desc>
14376 Defines whether this frame buffer uses the virtual video card's memory
14377 buffer (guest VRAM) directly or not. See <link
14378 to="IFramebuffer::requestResize"/> for more information.
14379 </desc>
14380 </attribute>
14381
14382 <attribute name="heightReduction" type="unsigned long" readonly="yes">
14383 <desc>
14384 Hint from the frame buffer about how much of the standard
14385 screen height it wants to use for itself. This information is
14386 exposed to the guest through the VESA BIOS and VMMDev interface
14387 so that it can use it for determining its video mode table. It
14388 is not guaranteed that the guest respects the value.
14389 </desc>
14390 </attribute>
14391
14392 <attribute name="overlay" type="IFramebufferOverlay" readonly="yes">
14393 <desc>
14394 An alpha-blended overlay which is superposed over the frame buffer.
14395 The initial purpose is to allow the display of icons providing
14396 information about the VM state, including disk activity, in front
14397 ends which do not have other means of doing that. The overlay is
14398 designed to controlled exclusively by IDisplay. It has no locking
14399 of its own, and any changes made to it are not guaranteed to be
14400 visible until the affected portion of IFramebuffer is updated. The
14401 overlay can be created lazily the first time it is requested. This
14402 attribute can also return @c null to signal that the overlay is not
14403 implemented.
14404 </desc>
14405 </attribute>
14406
14407 <attribute name="winId" type="long long" readonly="yes">
14408 <desc>
14409 Platform-dependent identifier of the window where context of this
14410 frame buffer is drawn, or zero if there's no such window.
14411 </desc>
14412 </attribute>
14413
14414 <method name="lock">
14415 <desc>
14416 Locks the frame buffer.
14417 Gets called by the IDisplay object where this frame buffer is
14418 bound to.
14419 </desc>
14420 </method>
14421
14422 <method name="unlock">
14423 <desc>
14424 Unlocks the frame buffer.
14425 Gets called by the IDisplay object where this frame buffer is
14426 bound to.
14427 </desc>
14428 </method>
14429
14430 <method name="notifyUpdate">
14431 <desc>
14432 Informs about an update.
14433 Gets called by the display object where this buffer is
14434 registered.
14435 </desc>
14436 <param name="x" type="unsigned long" dir="in"/>
14437 <param name="y" type="unsigned long" dir="in"/>
14438 <param name="width" type="unsigned long" dir="in"/>
14439 <param name="height" type="unsigned long" dir="in"/>
14440 </method>
14441
14442 <method name="requestResize">
14443 <desc>
14444 Requests a size and pixel format change.
14445
14446 There are two modes of working with the video buffer of the virtual
14447 machine. The <i>indirect</i> mode implies that the IFramebuffer
14448 implementation allocates a memory buffer for the requested display mode
14449 and provides it to the virtual machine. In <i>direct</i> mode, the
14450 IFramebuffer implementation uses the memory buffer allocated and owned
14451 by the virtual machine. This buffer represents the video memory of the
14452 emulated video adapter (so called <i>guest VRAM</i>). The direct mode is
14453 usually faster because the implementation gets a raw pointer to the
14454 guest VRAM buffer which it can directly use for visualizing the contents
14455 of the virtual display, as opposed to the indirect mode where the
14456 contents of guest VRAM are copied to the memory buffer provided by
14457 the implementation every time a display update occurs.
14458
14459 It is important to note that the direct mode is really fast only when
14460 the implementation uses the given guest VRAM buffer directly, for
14461 example, by blitting it to the window representing the virtual machine's
14462 display, which saves at least one copy operation comparing to the
14463 indirect mode. However, using the guest VRAM buffer directly is not
14464 always possible: the format and the color depth of this buffer may be
14465 not supported by the target window, or it may be unknown (opaque) as in
14466 case of text or non-linear multi-plane VGA video modes. In this case,
14467 the indirect mode (that is always available) should be used as a
14468 fallback: when the guest VRAM contents are copied to the
14469 implementation-provided memory buffer, color and format conversion is
14470 done automatically by the underlying code.
14471
14472 The @a pixelFormat parameter defines whether the direct mode is
14473 available or not. If @a pixelFormat is <link
14474 to="FramebufferPixelFormat_Opaque"/> then direct access to the guest
14475 VRAM buffer is not available -- the @a VRAM, @a bitsPerPixel and
14476 @a bytesPerLine parameters must be ignored and the implementation must use
14477 the indirect mode (where it provides its own buffer in one of the
14478 supported formats). In all other cases, @a pixelFormat together with
14479 @a bitsPerPixel and @a bytesPerLine define the format of the video memory
14480 buffer pointed to by the @a VRAM parameter and the implementation is
14481 free to choose which mode to use. To indicate that this frame buffer uses
14482 the direct mode, the implementation of the <link to="#usesGuestVRAM"/>
14483 attribute must return @c true and <link to="#address"/> must
14484 return exactly the same address that is passed in the @a VRAM parameter
14485 of this method; otherwise it is assumed that the indirect strategy is
14486 chosen.
14487
14488 The @a width and @a height parameters represent the size of the
14489 requested display mode in both modes. In case of indirect mode, the
14490 provided memory buffer should be big enough to store data of the given
14491 display mode. In case of direct mode, it is guaranteed that the given
14492 @a VRAM buffer contains enough space to represent the display mode of the
14493 given size. Note that this frame buffer's <link to="#width"/> and <link
14494 to="#height"/> attributes must return exactly the same values as
14495 passed to this method after the resize is completed (see below).
14496
14497 The @a finished output parameter determines if the implementation has
14498 finished resizing the frame buffer or not. If, for some reason, the
14499 resize cannot be finished immediately during this call, @a finished
14500 must be set to @c false, and the implementation must call
14501 <link to="IDisplay::resizeCompleted"/> after it has returned from
14502 this method as soon as possible. If @a finished is @c false, the
14503 machine will not call any frame buffer methods until
14504 <link to="IDisplay::resizeCompleted"/> is called.
14505
14506 Note that if the direct mode is chosen, the <link to="#bitsPerPixel"/>,
14507 <link to="#bytesPerLine"/> and <link to="#pixelFormat"/> attributes of
14508 this frame buffer must return exactly the same values as specified in the
14509 parameters of this method, after the resize is completed. If the
14510 indirect mode is chosen, these attributes must return values describing
14511 the format of the implementation's own memory buffer <link
14512 to="#address"/> points to. Note also that the <link to="#bitsPerPixel"/>
14513 value must always correlate with <link to="#pixelFormat"/>. Note that
14514 the <link to="#pixelFormat"/> attribute must never return <link
14515 to="FramebufferPixelFormat_Opaque"/> regardless of the selected mode.
14516
14517 <note>
14518 This method is called by the IDisplay object under the
14519 <link to="#lock"/> provided by this IFramebuffer
14520 implementation. If this method returns @c false in @a finished, then
14521 this lock is not released until
14522 <link to="IDisplay::resizeCompleted"/> is called.
14523 </note>
14524 </desc>
14525 <param name="screenId" type="unsigned long" dir="in">
14526 <desc>
14527 Logical screen number. Must be used in the corresponding call to
14528 <link to="IDisplay::resizeCompleted"/> if this call is made.
14529 </desc>
14530 </param>
14531 <param name="pixelFormat" type="unsigned long" dir="in">
14532 <desc>
14533 Pixel format of the memory buffer pointed to by @a VRAM.
14534 See also <link to="FramebufferPixelFormat"/>.
14535 </desc>
14536 </param>
14537 <param name="VRAM" type="octet" mod="ptr" dir="in">
14538 <desc>Pointer to the virtual video card's VRAM (may be @c null).</desc>
14539 </param>
14540 <param name="bitsPerPixel" type="unsigned long" dir="in">
14541 <desc>Color depth, bits per pixel.</desc>
14542 </param>
14543 <param name="bytesPerLine" type="unsigned long" dir="in">
14544 <desc>Size of one scan line, in bytes.</desc>
14545 </param>
14546 <param name="width" type="unsigned long" dir="in">
14547 <desc>Width of the guest display, in pixels.</desc>
14548 </param>
14549 <param name="height" type="unsigned long" dir="in">
14550 <desc>Height of the guest display, in pixels.</desc>
14551 </param>
14552 <param name="finished" type="boolean" dir="return">
14553 <desc>
14554 Can the VM start using the new frame buffer immediately
14555 after this method returns or it should wait for
14556 <link to="IDisplay::resizeCompleted"/>.
14557 </desc>
14558 </param>
14559 </method>
14560
14561 <method name="videoModeSupported">
14562 <desc>
14563 Returns whether the frame buffer implementation is willing to
14564 support a given video mode. In case it is not able to render
14565 the video mode (or for some reason not willing), it should
14566 return @c false. Usually this method is called when the guest
14567 asks the VMM device whether a given video mode is supported
14568 so the information returned is directly exposed to the guest.
14569 It is important that this method returns very quickly.
14570 </desc>
14571 <param name="width" type="unsigned long" dir="in"/>
14572 <param name="height" type="unsigned long" dir="in"/>
14573 <param name="bpp" type="unsigned long" dir="in"/>
14574 <param name="supported" type="boolean" dir="return"/>
14575 </method>
14576
14577 <method name="getVisibleRegion">
14578 <desc>
14579 Returns the visible region of this frame buffer.
14580
14581 If the @a rectangles parameter is @c null then the value of the
14582 @a count parameter is ignored and the number of elements necessary to
14583 describe the current visible region is returned in @a countCopied.
14584
14585 If @a rectangles is not @c null but @a count is less
14586 than the required number of elements to store region data, the method
14587 will report a failure. If @a count is equal or greater than the
14588 required number of elements, then the actual number of elements copied
14589 to the provided array will be returned in @a countCopied.
14590
14591 <note>
14592 The address of the provided array must be in the process space of
14593 this IFramebuffer object.
14594 </note>
14595 <note>
14596 Method not yet implemented.
14597 </note>
14598 </desc>
14599 <param name="rectangles" type="octet" mod="ptr" dir="in">
14600 <desc>Pointer to the @c RTRECT array to receive region data.</desc>
14601 </param>
14602 <param name="count" type="unsigned long" dir="in">
14603 <desc>Number of @c RTRECT elements in the @a rectangles array.</desc>
14604 </param>
14605 <param name="countCopied" type="unsigned long" dir="return">
14606 <desc>Number of elements copied to the @a rectangles array.</desc>
14607 </param>
14608 </method>
14609
14610 <method name="setVisibleRegion">
14611 <desc>
14612 Suggests a new visible region to this frame buffer. This region
14613 represents the area of the VM display which is a union of regions of
14614 all top-level windows of the guest operating system running inside the
14615 VM (if the Guest Additions for this system support this
14616 functionality). This information may be used by the frontends to
14617 implement the seamless desktop integration feature.
14618
14619 <note>
14620 The address of the provided array must be in the process space of
14621 this IFramebuffer object.
14622 </note>
14623 <note>
14624 The IFramebuffer implementation must make a copy of the provided
14625 array of rectangles.
14626 </note>
14627 <note>
14628 Method not yet implemented.
14629 </note>
14630 </desc>
14631 <param name="rectangles" type="octet" mod="ptr" dir="in">
14632 <desc>Pointer to the @c RTRECT array.</desc>
14633 </param>
14634 <param name="count" type="unsigned long" dir="in">
14635 <desc>Number of @c RTRECT elements in the @a rectangles array.</desc>
14636 </param>
14637 </method>
14638
14639 <method name="processVHWACommand">
14640 <desc>
14641 Posts a Video HW Acceleration Command to the frame buffer for processing.
14642 The commands used for 2D video acceleration (DDraw surface creation/destroying, blitting, scaling, color conversion, overlaying, etc.)
14643 are posted from quest to the host to be processed by the host hardware.
14644
14645 <note>
14646 The address of the provided command must be in the process space of
14647 this IFramebuffer object.
14648 </note>
14649 </desc>
14650
14651 <param name="command" type="octet" mod="ptr" dir="in">
14652 <desc>Pointer to VBOXVHWACMD containing the command to execute.</desc>
14653 </param>
14654 </method>
14655
14656 </interface>
14657
14658 <interface
14659 name="IFramebufferOverlay" extends="IFramebuffer"
14660 uuid="0bcc1c7e-e415-47d2-bfdb-e4c705fb0f47"
14661 wsmap="suppress"
14662 >
14663 <desc>
14664 The IFramebufferOverlay interface represents an alpha blended overlay
14665 for displaying status icons above an IFramebuffer. It is always created
14666 not visible, so that it must be explicitly shown. It only covers a
14667 portion of the IFramebuffer, determined by its width, height and
14668 co-ordinates. It is always in packed pixel little-endian 32bit ARGB (in
14669 that order) format, and may be written to directly. Do re-read the
14670 width though, after setting it, as it may be adjusted (increased) to
14671 make it more suitable for the front end.
14672 </desc>
14673 <attribute name="x" type="unsigned long" readonly="yes">
14674 <desc>X position of the overlay, relative to the frame buffer.</desc>
14675 </attribute>
14676
14677 <attribute name="y" type="unsigned long" readonly="yes">
14678 <desc>Y position of the overlay, relative to the frame buffer.</desc>
14679 </attribute>
14680
14681 <attribute name="visible" type="boolean" readonly="no">
14682 <desc>
14683 Whether the overlay is currently visible.
14684 </desc>
14685 </attribute>
14686
14687 <attribute name="alpha" type="unsigned long" readonly="no">
14688 <desc>
14689 The global alpha value for the overlay. This may or may not be
14690 supported by a given front end.
14691 </desc>
14692 </attribute>
14693
14694 <method name="move">
14695 <desc>
14696 Changes the overlay's position relative to the IFramebuffer.
14697 </desc>
14698 <param name="x" type="unsigned long" dir="in"/>
14699 <param name="y" type="unsigned long" dir="in"/>
14700 </method>
14701
14702 </interface>
14703
14704 <interface
14705 name="IDisplay" extends="$unknown"
14706 uuid="b83ee395-8679-40ca-8d60-1a0cbe724930"
14707 wsmap="managed"
14708 >
14709 <desc>
14710 The IDisplay interface represents the virtual machine's display.
14711
14712 The object implementing this interface is contained in each
14713 <link to="IConsole::display"/> attribute and represents the visual
14714 output of the virtual machine.
14715
14716 The virtual display supports pluggable output targets represented by the
14717 IFramebuffer interface. Examples of the output target are a window on
14718 the host computer or an RDP session's display on a remote computer.
14719 </desc>
14720 <method name="getScreenResolution">
14721 <desc>Queries display width, height and color depth for given screen.</desc>
14722 <param name="screenId" type="unsigned long" dir="in"/>
14723 <param name="width" type="unsigned long" dir="out"/>
14724 <param name="height" type="unsigned long" dir="out"/>
14725 <param name="bitsPerPixel" type="unsigned long" dir="out"/>
14726 </method>
14727
14728 <method name="setFramebuffer">
14729 <desc>
14730 Sets the framebuffer for given screen.
14731 </desc>
14732 <param name="screenId" type="unsigned long" dir="in"/>
14733 <param name="framebuffer" type="IFramebuffer" dir="in"/>
14734 </method>
14735
14736 <method name="getFramebuffer">
14737 <desc>
14738 Queries the framebuffer for given screen.
14739 </desc>
14740 <param name="screenId" type="unsigned long" dir="in"/>
14741 <param name="framebuffer" type="IFramebuffer" dir="out"/>
14742 <param name="xOrigin" type="long" dir="out"/>
14743 <param name="yOrigin" type="long" dir="out"/>
14744 </method>
14745
14746 <method name="setVideoModeHint">
14747 <desc>
14748 Asks VirtualBox to request the given video mode from
14749 the guest. This is just a hint and it cannot be guaranteed
14750 that the requested resolution will be used. Guest Additions
14751 are required for the request to be seen by guests. The caller
14752 should issue the request and wait for a resolution change and
14753 after a timeout retry.
14754
14755 Specifying @c 0 for either @a width, @a height or @a bitsPerPixel
14756 parameters means that the corresponding values should be taken from the
14757 current video mode (i.e. left unchanged).
14758
14759 If the guest OS supports multi-monitor configuration then the @a display
14760 parameter specifies the number of the guest display to send the hint to:
14761 @c 0 is the primary display, @c 1 is the first secondary and
14762 so on. If the multi-monitor configuration is not supported, @a display
14763 must be @c 0.
14764
14765 <result name="E_INVALIDARG">
14766 The @a display is not associated with any monitor.
14767 </result>
14768
14769 </desc>
14770 <param name="display" type="unsigned long" dir="in">
14771 <desc>
14772 The number of the guest display to send the hint to.
14773 </desc>
14774 </param>
14775 <param name="enabled" type="boolean" dir="in">
14776 <desc>
14777 @c True, if this guest screen is enabled,
14778 @c False otherwise.
14779 </desc>
14780 </param>
14781 <param name="changeOrigin" type="boolean" dir="in">
14782 <desc>
14783 @c True, if the origin of the guest screen should be changed,
14784 @c False otherwise.
14785 </desc>
14786 </param>
14787 <param name="originX" type="long" dir="in">
14788 <desc>
14789 The X origin of the guest screen.
14790 </desc>
14791 </param>
14792 <param name="originY" type="long" dir="in">
14793 <desc>
14794 The Y origin of the guest screen.
14795 </desc>
14796 </param>
14797 <param name="width" type="unsigned long" dir="in"/>
14798 <param name="height" type="unsigned long" dir="in"/>
14799 <param name="bitsPerPixel" type="unsigned long" dir="in"/>
14800 </method>
14801
14802 <method name="setSeamlessMode">
14803 <desc>
14804 Enables or disables seamless guest display rendering (seamless desktop
14805 integration) mode.
14806 <note>
14807 Calling this method has no effect if <link
14808 to="IGuest::getFacilityStatus"/> with facility @c Seamless
14809 does not return @c Active.
14810 </note>
14811 </desc>
14812 <param name="enabled" type="boolean" dir="in"/>
14813 </method>
14814
14815 <method name="takeScreenShot">
14816 <desc>
14817 Takes a screen shot of the requested size and copies it to the
14818 32-bpp buffer allocated by the caller and pointed to by @a address.
14819 A pixel consists of 4 bytes in order: B, G, R, 0.
14820
14821 <note>This API can be used only locally by a VM process through the
14822 COM/XPCOM C++ API as it requires pointer support. It is not
14823 available for scripting langages, Java or any webservice clients.
14824 Unless you are writing a new VM frontend use
14825 <link to="#takeScreenShotToArray" />.
14826 </note>
14827
14828 <result name="E_NOTIMPL">
14829 Feature not implemented.
14830 </result>
14831 <result name="VBOX_E_IPRT_ERROR">
14832 Could not take a screenshot.
14833 </result>
14834
14835 </desc>
14836 <param name="screenId" type="unsigned long" dir="in"/>
14837 <param name="address" type="octet" mod="ptr" dir="in"/>
14838 <param name="width" type="unsigned long" dir="in"/>
14839 <param name="height" type="unsigned long" dir="in"/>
14840 </method>
14841
14842 <method name="takeScreenShotToArray">
14843 <desc>
14844 Takes a guest screen shot of the requested size and returns it as
14845 an array of bytes in uncompressed 32-bit RGBA format.
14846 A pixel consists of 4 bytes in order: R, G, B, 0xFF.
14847
14848 This API is slow, but could be the only option to get guest screenshot
14849 for scriptable languages not allowed to manipulate with addresses
14850 directly.
14851
14852 <result name="E_NOTIMPL">
14853 Feature not implemented.
14854 </result>
14855 <result name="VBOX_E_IPRT_ERROR">
14856 Could not take a screenshot.
14857 </result>
14858 </desc>
14859 <param name="screenId" type="unsigned long" dir="in">
14860 <desc>
14861 Monitor to take screenshot from.
14862 </desc>
14863 </param>
14864 <param name="width" type="unsigned long" dir="in">
14865 <desc>
14866 Desired image width.
14867 </desc>
14868 </param>
14869 <param name="height" type="unsigned long" dir="in">
14870 <desc>
14871 Desired image height.
14872 </desc>
14873 </param>
14874 <param name="screenData" type="octet" dir="return" safearray="yes">
14875 <desc>
14876 Array with resulting screen data.
14877 </desc>
14878 </param>
14879 </method>
14880
14881 <method name="takeScreenShotPNGToArray">
14882 <desc>
14883 Takes a guest screen shot of the requested size and returns it as
14884 PNG image in array.
14885
14886 <result name="E_NOTIMPL">
14887 Feature not implemented.
14888 </result>
14889 <result name="VBOX_E_IPRT_ERROR">
14890 Could not take a screenshot.
14891 </result>
14892 </desc>
14893 <param name="screenId" type="unsigned long" dir="in">
14894 <desc>
14895 Monitor to take the screenshot from.
14896 </desc>
14897 </param>
14898 <param name="width" type="unsigned long" dir="in">
14899 <desc>
14900 Desired image width.
14901 </desc>
14902 </param>
14903 <param name="height" type="unsigned long" dir="in">
14904 <desc>
14905 Desired image height.
14906 </desc>
14907 </param>
14908 <param name="screenData" type="octet" dir="return" safearray="yes">
14909 <desc>
14910 Array with resulting screen data.
14911 </desc>
14912 </param>
14913 </method>
14914
14915 <method name="drawToScreen">
14916 <desc>
14917 Draws a 32-bpp image of the specified size from the given buffer
14918 to the given point on the VM display.
14919
14920 <result name="E_NOTIMPL">
14921 Feature not implemented.
14922 </result>
14923 <result name="VBOX_E_IPRT_ERROR">
14924 Could not draw to screen.
14925 </result>
14926
14927 </desc>
14928 <param name="screenId" type="unsigned long" dir="in">
14929 <desc>
14930 Monitor to take the screenshot from.
14931 </desc>
14932 </param>
14933 <param name="address" type="octet" mod="ptr" dir="in">
14934 <desc>
14935 Address to store the screenshot to
14936 </desc>
14937 </param>
14938 <param name="x" type="unsigned long" dir="in">
14939 <desc>
14940 Relative to the screen top left corner.
14941 </desc>
14942 </param>
14943 <param name="y" type="unsigned long" dir="in">
14944 <desc>
14945 Relative to the screen top left corner.
14946 </desc>
14947 </param>
14948 <param name="width" type="unsigned long" dir="in">
14949 <desc>
14950 Desired image width.
14951 </desc>
14952 </param>
14953 <param name="height" type="unsigned long" dir="in">
14954 <desc>
14955 Desired image height.
14956 </desc>
14957 </param>
14958 </method>
14959
14960 <method name="invalidateAndUpdate">
14961 <desc>
14962 Does a full invalidation of the VM display and instructs the VM
14963 to update it.
14964
14965 <result name="VBOX_E_IPRT_ERROR">
14966 Could not invalidate and update screen.
14967 </result>
14968
14969 </desc>
14970 </method>
14971
14972 <method name="resizeCompleted">
14973 <desc>
14974 Signals that a framebuffer has completed the resize operation.
14975
14976 <result name="VBOX_E_NOT_SUPPORTED">
14977 Operation only valid for external frame buffers.
14978 </result>
14979
14980 </desc>
14981 <param name="screenId" type="unsigned long" dir="in"/>
14982 </method>
14983
14984 <method name="completeVHWACommand">
14985 <desc>
14986 Signals that the Video HW Acceleration command has completed.
14987 </desc>
14988
14989 <param name="command" type="octet" mod="ptr" dir="in">
14990 <desc>Pointer to VBOXVHWACMD containing the completed command.</desc>
14991 </param>
14992 </method>
14993
14994 <method name="viewportChanged">
14995 <desc>
14996 Signals that framebuffer window viewport has changed.
14997
14998 <result name="E_INVALIDARG">
14999 The specified viewport data is invalid.
15000 </result>
15001
15002 </desc>
15003
15004 <param name="screenId" type="unsigned long" dir="in">
15005 <desc>
15006 Monitor to take the screenshot from.
15007 </desc>
15008 </param>
15009 <param name="x" type="unsigned long" dir="in">
15010 <desc>
15011 Framebuffer x offset.
15012 </desc>
15013 </param>
15014 <param name="y" type="unsigned long" dir="in">
15015 <desc>
15016 Framebuffer y offset.
15017 </desc>
15018 </param>
15019 <param name="width" type="unsigned long" dir="in">
15020 <desc>
15021 Viewport width.
15022 </desc>
15023 </param>
15024 <param name="height" type="unsigned long" dir="in">
15025 <desc>
15026 Viewport height.
15027 </desc>
15028 </param>
15029 </method>
15030 </interface>
15031
15032 <!--
15033 // INetworkAdapter
15034 /////////////////////////////////////////////////////////////////////////
15035 -->
15036
15037 <enum
15038 name="NetworkAttachmentType"
15039 uuid="2ac4bc71-6b82-417a-acd1-f7426d2570d6"
15040 >
15041 <desc>
15042 Network attachment type.
15043 </desc>
15044
15045 <const name="Null" value="0">
15046 <desc>Null value, also means "not attached".</desc>
15047 </const>
15048 <const name="NAT" value="1"/>
15049 <const name="Bridged" value="2"/>
15050 <const name="Internal" value="3"/>
15051 <const name="HostOnly" value="4"/>
15052 <const name="Generic" value="5"/>
15053 </enum>
15054
15055 <enum
15056 name="NetworkAdapterType"
15057 uuid="3c2281e4-d952-4e87-8c7d-24379cb6a81c"
15058 >
15059 <desc>
15060 Network adapter type.
15061 </desc>
15062
15063 <const name="Null" value="0">
15064 <desc>Null value (never used by the API).</desc>
15065 </const>
15066 <const name="Am79C970A" value="1">
15067 <desc>AMD PCNet-PCI II network card (Am79C970A).</desc>
15068 </const>
15069 <const name="Am79C973" value="2">
15070 <desc>AMD PCNet-FAST III network card (Am79C973).</desc>
15071 </const>
15072 <const name="I82540EM" value="3">
15073 <desc>Intel PRO/1000 MT Desktop network card (82540EM).</desc>
15074 </const>
15075 <const name="I82543GC" value="4">
15076 <desc>Intel PRO/1000 T Server network card (82543GC).</desc>
15077 </const>
15078 <const name="I82545EM" value="5">
15079 <desc>Intel PRO/1000 MT Server network card (82545EM).</desc>
15080 </const>
15081 <const name="Virtio" value="6">
15082 <desc>Virtio network device.</desc>
15083 </const>
15084 </enum>
15085
15086 <enum
15087 name="NetworkAdapterPromiscModePolicy"
15088 uuid="c963768a-376f-4c85-8d84-d8ced4b7269e"
15089 >
15090 <desc>
15091 The promiscuous mode policy of an interface.
15092 </desc>
15093
15094 <const name="Deny" value="1">
15095 <desc>Deny promiscuous mode requests.</desc>
15096 </const>
15097 <const name="AllowNetwork" value="2">
15098 <desc>
15099 Allow promicuous mode, but restrict the scope it to the internal
15100 network so that it only applies to other VMs.
15101 </desc>
15102 </const>
15103 <const name="AllowAll" value="3">
15104 <desc>
15105 Allow promicuous mode, include unrelated traffic going over the wire
15106 and internally on the host.
15107 </desc>
15108 </const>
15109 </enum>
15110
15111 <interface
15112 name="INetworkAdapter" extends="$unknown"
15113 uuid="efa0f965-63c7-4c60-afdf-b1cc9943b9c0"
15114 wsmap="managed"
15115 >
15116 <desc>
15117 Represents a virtual network adapter that is attached to a virtual machine.
15118 Each virtual machine has a fixed number of network adapter slots with one
15119 instance of this attached to each of them. Call
15120 <link to="IMachine::getNetworkAdapter" /> to get the network adapter that
15121 is attached to a given slot in a given machine.
15122
15123 Each network adapter can be in one of five attachment modes, which are
15124 represented by the <link to="NetworkAttachmentType" /> enumeration;
15125 see the <link to="#attachmentType" /> attribute.
15126 </desc>
15127
15128 <attribute name="adapterType" type="NetworkAdapterType">
15129 <desc>
15130 Type of the virtual network adapter. Depending on this value,
15131 VirtualBox will provide a different virtual network hardware
15132 to the guest.
15133 </desc>
15134 </attribute>
15135
15136 <attribute name="slot" type="unsigned long" readonly="yes">
15137 <desc>
15138 Slot number this adapter is plugged into. Corresponds to
15139 the value you pass to <link to="IMachine::getNetworkAdapter"/>
15140 to obtain this instance.
15141 </desc>
15142 </attribute>
15143
15144 <attribute name="enabled" type="boolean">
15145 <desc>
15146 Flag whether the network adapter is present in the
15147 guest system. If disabled, the virtual guest hardware will
15148 not contain this network adapter. Can only be changed when
15149 the VM is not running.
15150 </desc>
15151 </attribute>
15152
15153 <attribute name="MACAddress" type="wstring">
15154 <desc>
15155 Ethernet MAC address of the adapter, 12 hexadecimal characters. When setting
15156 it to @c null or an empty string, VirtualBox will generate a unique MAC address.
15157 </desc>
15158 </attribute>
15159
15160 <attribute name="attachmentType" type="NetworkAttachmentType">
15161 <desc>
15162 Sets/Gets network attachment type of this network adapter.
15163 </desc>
15164 </attribute>
15165
15166 <attribute name="bridgedInterface" type="wstring">
15167 <desc>
15168 Name of the network interface the VM should be bridged to.
15169 </desc>
15170 </attribute>
15171
15172 <attribute name="hostOnlyInterface" type="wstring">
15173 <desc>
15174 Name of the host only network interface the VM is attached to.
15175 </desc>
15176 </attribute>
15177
15178 <attribute name="internalNetwork" type="wstring">
15179 <desc>
15180 Name of the internal network the VM is attached to.
15181 </desc>
15182 </attribute>
15183
15184 <attribute name="NATNetwork" type="wstring">
15185 <desc>
15186 Name of the NAT network the VM is attached to.
15187 </desc>
15188 </attribute>
15189
15190 <attribute name="genericDriver" type="wstring">
15191 <desc>
15192 Name of the driver to use for the "Generic" network attachment type.
15193 </desc>
15194 </attribute>
15195
15196 <attribute name="cableConnected" type="boolean">
15197 <desc>
15198 Flag whether the adapter reports the cable as connected or not.
15199 It can be used to report offline situations to a VM.
15200 </desc>
15201 </attribute>
15202
15203 <attribute name="lineSpeed" type="unsigned long">
15204 <desc>
15205 Line speed reported by custom drivers, in units of 1 kbps.
15206 </desc>
15207 </attribute>
15208
15209 <attribute name="promiscModePolicy" type="NetworkAdapterPromiscModePolicy">
15210 <desc>
15211 The promiscuous mode policy of the network adapter when attached to an
15212 internal network, host only network or a bridge.
15213 </desc>
15214 </attribute>
15215
15216 <attribute name="traceEnabled" type="boolean">
15217 <desc>
15218 Flag whether network traffic from/to the network card should be traced.
15219 Can only be toggled when the VM is turned off.
15220 </desc>
15221 </attribute>
15222
15223 <attribute name="traceFile" type="wstring">
15224 <desc>
15225 Filename where a network trace will be stored. If not set, VBox-pid.pcap
15226 will be used.
15227 </desc>
15228 </attribute>
15229
15230 <attribute name="NATEngine" type="INATEngine" readonly="yes">
15231 <desc>
15232 Points to the NAT engine which handles the network address translation
15233 for this interface. This is active only when the interface actually uses
15234 NAT.
15235 </desc>
15236 </attribute>
15237
15238 <attribute name="bootPriority" type="unsigned long">
15239 <desc>
15240 Network boot priority of the adapter. Priority 1 is highest. If not set,
15241 the priority is considered to be at the lowest possible setting.
15242 </desc>
15243 </attribute>
15244
15245 <attribute name="bandwidthGroup" type="IBandwidthGroup">
15246 <desc>The bandwidth group this network adapter is assigned to.</desc>
15247 </attribute>
15248
15249 <!-- property methods -->
15250
15251 <method name="getProperty" const="yes">
15252 <desc>
15253 Returns the value of the network attachment property with the given name.
15254
15255 If the requested data @a key does not exist, this function will
15256 succeed and return an empty string in the @a value argument.
15257
15258 <result name="E_INVALIDARG">@a name is @c null or empty.</result>
15259 </desc>
15260 <param name="key" type="wstring" dir="in">
15261 <desc>Name of the property to get.</desc>
15262 </param>
15263 <param name="value" type="wstring" dir="return">
15264 <desc>Current property value.</desc>
15265 </param>
15266 </method>
15267
15268 <method name="setProperty">
15269 <desc>
15270 Sets the value of the network attachment property with the given name.
15271
15272 Setting the property value to @c null or an empty string is equivalent
15273 to deleting the existing value.
15274
15275 <result name="E_INVALIDARG">@a name is @c null or empty.</result>
15276 </desc>
15277 <param name="key" type="wstring" dir="in">
15278 <desc>Name of the property to set.</desc>
15279 </param>
15280 <param name="value" type="wstring" dir="in">
15281 <desc>Property value to set.</desc>
15282 </param>
15283 </method>
15284
15285 <method name="getProperties" const="yes">
15286 <desc>
15287 Returns values for a group of properties in one call.
15288
15289 The names of the properties to get are specified using the @a names
15290 argument which is a list of comma-separated property names or
15291 an empty string if all properties are to be returned.
15292 <note>Currently the value of this argument is ignored and the method
15293 always returns all existing properties.</note>
15294
15295 The method returns two arrays, the array of property names corresponding
15296 to the @a names argument and the current values of these properties.
15297 Both arrays have the same number of elements with each element at the
15298 given index in the first array corresponds to an element at the same
15299 index in the second array.
15300 </desc>
15301 <param name="names" type="wstring" dir="in">
15302 <desc>
15303 Names of properties to get.
15304 </desc>
15305 </param>
15306 <param name="returnNames" type="wstring" safearray="yes" dir="out">
15307 <desc>Names of returned properties.</desc>
15308 </param>
15309 <param name="returnValues" type="wstring" safearray="yes" dir="return">
15310 <desc>Values of returned properties.</desc>
15311 </param>
15312 </method>
15313
15314 </interface>
15315
15316
15317 <!--
15318 // ISerialPort
15319 /////////////////////////////////////////////////////////////////////////
15320 -->
15321
15322 <enum
15323 name="PortMode"
15324 uuid="533b5fe3-0185-4197-86a7-17e37dd39d76"
15325 >
15326 <desc>
15327 The PortMode enumeration represents possible communication modes for
15328 the virtual serial port device.
15329 </desc>
15330
15331 <const name="Disconnected" value="0">
15332 <desc>Virtual device is not attached to any real host device.</desc>
15333 </const>
15334 <const name="HostPipe" value="1">
15335 <desc>Virtual device is attached to a host pipe.</desc>
15336 </const>
15337 <const name="HostDevice" value="2">
15338 <desc>Virtual device is attached to a host device.</desc>
15339 </const>
15340 <const name="RawFile" value="3">
15341 <desc>Virtual device is attached to a raw file.</desc>
15342 </const>
15343 </enum>
15344
15345 <interface
15346 name="ISerialPort" extends="$unknown"
15347 uuid="937f6970-5103-4745-b78e-d28dcf1479a8"
15348 wsmap="managed"
15349 >
15350
15351 <desc>
15352 The ISerialPort interface represents the virtual serial port device.
15353
15354 The virtual serial port device acts like an ordinary serial port
15355 inside the virtual machine. This device communicates to the real
15356 serial port hardware in one of two modes: host pipe or host device.
15357
15358 In host pipe mode, the #path attribute specifies the path to the pipe on
15359 the host computer that represents a serial port. The #server attribute
15360 determines if this pipe is created by the virtual machine process at
15361 machine startup or it must already exist before starting machine
15362 execution.
15363
15364 In host device mode, the #path attribute specifies the name of the
15365 serial port device on the host computer.
15366
15367 There is also a third communication mode: the disconnected mode. In this
15368 mode, the guest OS running inside the virtual machine will be able to
15369 detect the serial port, but all port write operations will be discarded
15370 and all port read operations will return no data.
15371
15372 <see><link to="IMachine::getSerialPort"/></see>
15373 </desc>
15374
15375 <attribute name="slot" type="unsigned long" readonly="yes">
15376 <desc>
15377 Slot number this serial port is plugged into. Corresponds to
15378 the value you pass to <link to="IMachine::getSerialPort"/>
15379 to obtain this instance.
15380 </desc>
15381 </attribute>
15382
15383 <attribute name="enabled" type="boolean">
15384 <desc>
15385 Flag whether the serial port is enabled. If disabled,
15386 the serial port will not be reported to the guest OS.
15387 </desc>
15388 </attribute>
15389
15390 <attribute name="IOBase" type="unsigned long">
15391 <desc>Base I/O address of the serial port.</desc>
15392 </attribute>
15393
15394 <attribute name="IRQ" type="unsigned long">
15395 <desc>IRQ number of the serial port.</desc>
15396 </attribute>
15397
15398 <attribute name="hostMode" type="PortMode">
15399 <desc>
15400 How is this port connected to the host.
15401 <note>
15402 Changing this attribute may fail if the conditions for
15403 <link to="#path"/> are not met.
15404 </note>
15405 </desc>
15406 </attribute>
15407
15408 <attribute name="server" type="boolean">
15409 <desc>
15410 Flag whether this serial port acts as a server (creates a new pipe on
15411 the host) or as a client (uses the existing pipe). This attribute is
15412 used only when <link to="#hostMode"/> is PortMode_HostPipe.
15413 </desc>
15414 </attribute>
15415
15416 <attribute name="path" type="wstring">
15417 <desc>
15418 Path to the serial port's pipe on the host when <link to="ISerialPort::hostMode"/> is
15419 PortMode_HostPipe, or the host serial device name when
15420 <link to="ISerialPort::hostMode"/> is PortMode_HostDevice. For both
15421 cases, setting a @c null or empty string as the attribute's value
15422 is an error. Otherwise, the value of this property is ignored.
15423 </desc>
15424 </attribute>
15425
15426 </interface>
15427
15428 <!--
15429 // IParallelPort
15430 /////////////////////////////////////////////////////////////////////////
15431 -->
15432
15433 <interface
15434 name="IParallelPort" extends="$unknown"
15435 uuid="0c925f06-dd10-4b77-8de8-294d738c3214"
15436 wsmap="managed"
15437 >
15438
15439 <desc>
15440 The IParallelPort interface represents the virtual parallel port device.
15441
15442 The virtual parallel port device acts like an ordinary parallel port
15443 inside the virtual machine. This device communicates to the real
15444 parallel port hardware using the name of the parallel device on the host
15445 computer specified in the #path attribute.
15446
15447 Each virtual parallel port device is assigned a base I/O address and an
15448 IRQ number that will be reported to the guest operating system and used
15449 to operate the given parallel port from within the virtual machine.
15450
15451 <see><link to="IMachine::getParallelPort"/></see>
15452 </desc>
15453
15454 <attribute name="slot" type="unsigned long" readonly="yes">
15455 <desc>
15456 Slot number this parallel port is plugged into. Corresponds to
15457 the value you pass to <link to="IMachine::getParallelPort"/>
15458 to obtain this instance.
15459 </desc>
15460 </attribute>
15461
15462 <attribute name="enabled" type="boolean">
15463 <desc>
15464 Flag whether the parallel port is enabled. If disabled,
15465 the parallel port will not be reported to the guest OS.
15466 </desc>
15467 </attribute>
15468
15469 <attribute name="IOBase" type="unsigned long">
15470 <desc>Base I/O address of the parallel port.</desc>
15471 </attribute>
15472
15473 <attribute name="IRQ" type="unsigned long">
15474 <desc>IRQ number of the parallel port.</desc>
15475 </attribute>
15476
15477 <attribute name="path" type="wstring">
15478 <desc>
15479 Host parallel device name. If this parallel port is enabled, setting a
15480 @c null or an empty string as this attribute's value will result in
15481 an error.
15482 </desc>
15483 </attribute>
15484
15485 </interface>
15486
15487
15488 <!--
15489 // IMachineDebugger
15490 /////////////////////////////////////////////////////////////////////////
15491 -->
15492
15493 <interface
15494 name="IMachineDebugger" extends="$unknown"
15495 uuid="a9abbb7c-d678-43b2-bed2-19ec0e32303d"
15496 wsmap="suppress"
15497 >
15498 <method name="dumpGuestCore">
15499 <desc>
15500 Takes a core dump of the guest.
15501
15502 See include/VBox/dbgfcorefmt.h for details on the file format.
15503 </desc>
15504 <param name="filename" type="wstring" dir="in">
15505 <desc>
15506 The name of the output file. The file must not exist.
15507 </desc>
15508 </param>
15509 <param name="compression" type="wstring" dir="in">
15510 <desc>
15511 Reserved for future compression method indicator.
15512 </desc>
15513 </param>
15514 </method>
15515
15516 <method name="dumpHostProcessCore">
15517 <desc>
15518 Takes a core dump of the VM process on the host.
15519
15520 This feature is not implemented in the 4.0.0 release but it may show up
15521 in a dot release.
15522 </desc>
15523 <param name="filename" type="wstring" dir="in">
15524 <desc>
15525 The name of the output file. The file must not exist.
15526 </desc>
15527 </param>
15528 <param name="compression" type="wstring" dir="in">
15529 <desc>
15530 Reserved for future compression method indicator.
15531 </desc>
15532 </param>
15533 </method>
15534
15535 <method name="info">
15536 <desc>
15537 Interfaces with the info dumpers (DBGFInfo).
15538
15539 This feature is not implemented in the 4.0.0 release but it may show up
15540 in a dot release.
15541 </desc>
15542 <param name="name" type="wstring" dir="in">
15543 <desc>
15544 The name of the info item.
15545 </desc>
15546 </param>
15547 <param name="args" type="wstring" dir="in">
15548 <desc>
15549 Arguments to the info dumper.
15550 </desc>
15551 </param>
15552 <param name="info" type="wstring" dir="return">
15553 <desc>
15554 The into string.
15555 </desc>
15556 </param>
15557 </method>
15558
15559 <method name="injectNMI">
15560 <desc>
15561 Inject an NMI into a running VT-x/AMD-V VM.
15562 </desc>
15563 </method>
15564
15565 <method name="modifyLogGroups">
15566 <desc>
15567 Modifies the group settings of the debug or release logger.
15568 </desc>
15569 <param name="settings" type="wstring" dir="in">
15570 <desc>
15571 The group settings string. See iprt/log.h for details. To target the
15572 release logger, prefix the string with "release:".
15573 </desc>
15574 </param>
15575 </method>
15576
15577 <method name="modifyLogFlags">
15578 <desc>
15579 Modifies the debug or release logger flags.
15580 </desc>
15581 <param name="settings" type="wstring" dir="in">
15582 <desc>
15583 The flags settings string. See iprt/log.h for details. To target the
15584 release logger, prefix the string with "release:".
15585 </desc>
15586 </param>
15587 </method>
15588
15589 <method name="modifyLogDestinations">
15590 <desc>
15591 Modifies the debug or release logger destinations.
15592 </desc>
15593 <param name="settings" type="wstring" dir="in">
15594 <desc>
15595 The destination settings string. See iprt/log.h for details. To target the
15596 release logger, prefix the string with "release:".
15597 </desc>
15598 </param>
15599 </method>
15600
15601 <method name="readPhysicalMemory">
15602 <desc>
15603 Reads guest physical memory, no side effects (MMIO++).
15604
15605 This feature is not implemented in the 4.0.0 release but may show up
15606 in a dot release.
15607 </desc>
15608 <param name="address" type="long long" dir="in">
15609 <desc>The guest physical address.</desc>
15610 </param>
15611 <param name="size" type="unsigned long" dir="in">
15612 <desc>The number of bytes to read.</desc>
15613 </param>
15614 <param name="bytes" type="octet" safearray="yes" dir="return">
15615 <desc>The bytes read.</desc>
15616 </param>
15617 </method>
15618
15619 <method name="writePhysicalMemory">
15620 <desc>
15621 Writes guest physical memory, access handles (MMIO++) are ignored.
15622
15623 This feature is not implemented in the 4.0.0 release but may show up
15624 in a dot release.
15625 </desc>
15626 <param name="address" type="long long" dir="in">
15627 <desc>The guest physical address.</desc>
15628 </param>
15629 <param name="size" type="unsigned long" dir="in">
15630 <desc>The number of bytes to read.</desc>
15631 </param>
15632 <param name="bytes" type="octet" safearray="yes" dir="in">
15633 <desc>The bytes to write.</desc>
15634 </param>
15635 </method>
15636
15637 <method name="readVirtualMemory">
15638 <desc>
15639 Reads guest virtual memory, no side effects (MMIO++).
15640
15641 This feature is not implemented in the 4.0.0 release but may show up
15642 in a dot release.
15643 </desc>
15644 <param name="cpuId" type="unsigned long" dir="in">
15645 <desc>The identifier of the Virtual CPU.</desc>
15646 </param>
15647 <param name="address" type="long long" dir="in">
15648 <desc>The guest virtual address.</desc>
15649 </param>
15650 <param name="size" type="unsigned long" dir="in">
15651 <desc>The number of bytes to read.</desc>
15652 </param>
15653 <param name="bytes" type="octet" safearray="yes" dir="return">
15654 <desc>The bytes read.</desc>
15655 </param>
15656 </method>
15657
15658 <method name="writeVirtualMemory">
15659 <desc>
15660 Writes guest virtual memory, access handles (MMIO++) are ignored.
15661
15662 This feature is not implemented in the 4.0.0 release but may show up
15663 in a dot release.
15664 </desc>
15665 <param name="cpuId" type="unsigned long" dir="in">
15666 <desc>The identifier of the Virtual CPU.</desc>
15667 </param>
15668 <param name="address" type="long long" dir="in">
15669 <desc>The guest virtual address.</desc>
15670 </param>
15671 <param name="size" type="unsigned long" dir="in">
15672 <desc>The number of bytes to read.</desc>
15673 </param>
15674 <param name="bytes" type="octet" safearray="yes" dir="in">
15675 <desc>The bytes to write.</desc>
15676 </param>
15677 </method>
15678
15679 <method name="detectOS">
15680 <desc>
15681 Tries to (re-)detect the guest OS kernel.
15682
15683 This feature is not implemented in the 4.0.0 release but may show up
15684 in a dot release.
15685 </desc>
15686 <param name="os" type="wstring" dir="return">
15687 <desc>
15688 The detected OS kernel on success.
15689 </desc>
15690 </param>
15691 </method>
15692
15693 <method name="getRegister">
15694 <desc>
15695 Gets one register.
15696
15697 This feature is not implemented in the 4.0.0 release but may show up
15698 in a dot release.
15699 </desc>
15700 <param name="cpuId" type="unsigned long" dir="in">
15701 <desc>The identifier of the Virtual CPU.</desc>
15702 </param>
15703 <param name="name" type="wstring" dir="in">
15704 <desc>The register name, case is ignored.</desc>
15705 </param>
15706 <param name="value" type="wstring" dir="return">
15707 <desc>
15708 The register value. This is usually a hex value (always 0x prefixed)
15709 but other format may be used for floating point registers (TBD).
15710 </desc>
15711 </param>
15712 </method>
15713
15714 <method name="getRegisters">
15715 <desc>
15716 Gets all the registers for the given CPU.
15717
15718 This feature is not implemented in the 4.0.0 release but may show up
15719 in a dot release.
15720 </desc>
15721 <param name="cpuId" type="unsigned long" dir="in">
15722 <desc>The identifier of the Virtual CPU.</desc>
15723 </param>
15724 <param name="names" type="wstring" dir="out" safearray="yes">
15725 <desc>Array containing the lowercase register names.</desc>
15726 </param>
15727 <param name="values" type="wstring" dir="out" safearray="yes">
15728 <desc>
15729 Array paralell to the names holding the register values as if the
15730 register was returned by <link to="IMachineDebugger::getRegister"/>.
15731 </desc>
15732 </param>
15733 </method>
15734
15735 <method name="setRegister">
15736 <desc>
15737 Gets one register.
15738
15739 This feature is not implemented in the 4.0.0 release but may show up
15740 in a dot release.
15741 </desc>
15742 <param name="cpuId" type="unsigned long" dir="in">
15743 <desc>The identifier of the Virtual CPU.</desc>
15744 </param>
15745 <param name="name" type="wstring" dir="in">
15746 <desc>The register name, case is ignored.</desc>
15747 </param>
15748 <param name="value" type="wstring" dir="in">
15749 <desc>
15750 The new register value. Hexadecimal, decimal and octal formattings
15751 are supported in addition to any special formattings returned by
15752 the getters.
15753 </desc>
15754 </param>
15755 </method>
15756
15757 <method name="setRegisters">
15758 <desc>
15759 Sets zero or more registers atomically.
15760
15761 This feature is not implemented in the 4.0.0 release but may show up
15762 in a dot release.
15763 </desc>
15764 <param name="cpuId" type="unsigned long" dir="in">
15765 <desc>The identifier of the Virtual CPU.</desc>
15766 </param>
15767 <param name="names" type="wstring" dir="in" safearray="yes">
15768 <desc>Array containing the register names, case ignored.</desc>
15769 </param>
15770 <param name="values" type="wstring" dir="in" safearray="yes">
15771 <desc>
15772 Array paralell to the names holding the register values. See
15773 <link to="IMachineDebugger::setRegister"/> for formatting
15774 guidelines.
15775 </desc>
15776 </param>
15777 </method>
15778
15779 <method name="dumpGuestStack">
15780 <desc>
15781 Produce a simple stack dump using the current guest state.
15782
15783 This feature is not implemented in the 4.0.0 release but may show up
15784 in a dot release.
15785 </desc>
15786 <param name="cpuId" type="unsigned long" dir="in">
15787 <desc>The identifier of the Virtual CPU.</desc>
15788 </param>
15789 <param name="stack" type="wstring" dir="return">
15790 <desc>String containing the formatted stack dump.</desc>
15791 </param>
15792 </method>
15793
15794 <method name="resetStats">
15795 <desc>
15796 Reset VM statistics.
15797 </desc>
15798 <param name="pattern" type="wstring" dir="in">
15799 <desc>The selection pattern. A bit similar to filename globbing.</desc>
15800 </param>
15801 </method>
15802
15803 <method name="dumpStats">
15804 <desc>
15805 Dumps VM statistics.
15806 </desc>
15807 <param name="pattern" type="wstring" dir="in">
15808 <desc>The selection pattern. A bit similar to filename globbing.</desc>
15809 </param>
15810 </method>
15811
15812 <method name="getStats">
15813 <desc>
15814 Get the VM statistics in a XMLish format.
15815 </desc>
15816 <param name="pattern" type="wstring" dir="in">
15817 <desc>The selection pattern. A bit similar to filename globbing.</desc>
15818 </param>
15819 <param name="withDescriptions" type="boolean" dir="in">
15820 <desc>Whether to include the descriptions.</desc>
15821 </param>
15822 <param name="stats" type="wstring" dir="out">
15823 <desc>The XML document containing the statistics.</desc>
15824 </param>
15825 </method>
15826
15827 <attribute name="singleStep" type="boolean">
15828 <desc>Switch for enabling single-stepping.</desc>
15829 </attribute>
15830
15831 <attribute name="recompileUser" type="boolean">
15832 <desc>Switch for forcing code recompilation for user mode code.</desc>
15833 </attribute>
15834
15835 <attribute name="recompileSupervisor" type="boolean">
15836 <desc>Switch for forcing code recompilation for supervisor mode code.</desc>
15837 </attribute>
15838
15839 <attribute name="PATMEnabled" type="boolean">
15840 <desc>Switch for enabling and disabling the PATM component.</desc>
15841 </attribute>
15842
15843 <attribute name="CSAMEnabled" type="boolean">
15844 <desc>Switch for enabling and disabling the CSAM component.</desc>
15845 </attribute>
15846
15847 <attribute name="logEnabled" type="boolean">
15848 <desc>Switch for enabling and disabling the debug logger.</desc>
15849 </attribute>
15850
15851 <attribute name="logDbgFlags" type="wstring" readonly="yes">
15852 <desc>The debug logger flags.</desc>
15853 </attribute>
15854
15855 <attribute name="logDbgGroups" type="wstring" readonly="yes">
15856 <desc>The debug logger's group settings.</desc>
15857 </attribute>
15858
15859 <attribute name="logDbgDestinations" type="wstring" readonly="yes">
15860 <desc>The debug logger's destination settings.</desc>
15861 </attribute>
15862
15863 <attribute name="logRelFlags" type="wstring" readonly="yes">
15864 <desc>The release logger flags.</desc>
15865 </attribute>
15866
15867 <attribute name="logRelGroups" type="wstring" readonly="yes">
15868 <desc>The release logger's group settings.</desc>
15869 </attribute>
15870
15871 <attribute name="logRelDestinations" type="wstring" readonly="yes">
15872 <desc>The relase logger's destination settings.</desc>
15873 </attribute>
15874
15875 <attribute name="HWVirtExEnabled" type="boolean" readonly="yes">
15876 <desc>
15877 Flag indicating whether the VM is currently making use of CPU hardware
15878 virtualization extensions.
15879 </desc>
15880 </attribute>
15881
15882 <attribute name="HWVirtExNestedPagingEnabled" type="boolean" readonly="yes">
15883 <desc>
15884 Flag indicating whether the VM is currently making use of the nested paging
15885 CPU hardware virtualization extension.
15886 </desc>
15887 </attribute>
15888
15889 <attribute name="HWVirtExVPIDEnabled" type="boolean" readonly="yes">
15890 <desc>
15891 Flag indicating whether the VM is currently making use of the VPID
15892 VT-x extension.
15893 </desc>
15894 </attribute>
15895
15896 <attribute name="OSName" type="wstring" readonly="yes">
15897 <desc>
15898 Query the guest OS kernel name as detected by the DBGF.
15899
15900 This feature is not implemented in the 4.0.0 release but may show up
15901 in a dot release.
15902 </desc>
15903 </attribute>
15904
15905 <attribute name="OSVersion" type="wstring" readonly="yes">
15906 <desc>
15907 Query the guest OS kernel version string as detected by the DBGF.
15908
15909 This feature is not implemented in the 4.0.0 release but may show up
15910 in a dot release.
15911 </desc>
15912 </attribute>
15913
15914 <attribute name="PAEEnabled" type="boolean" readonly="yes">
15915 <desc>
15916 Flag indicating whether the VM is currently making use of the Physical
15917 Address Extension CPU feature.
15918 </desc>
15919 </attribute>
15920
15921 <attribute name="virtualTimeRate" type="unsigned long">
15922 <desc>
15923 The rate at which the virtual time runs expressed as a percentage.
15924 The accepted range is 2% to 20000%.
15925 </desc>
15926 </attribute>
15927
15928 <attribute name="VM" type="long long" readonly="yes">
15929 <desc>
15930 Gets the VM handle. This is only for internal use while
15931 we carve the details of this interface.
15932 </desc>
15933 </attribute>
15934
15935 </interface>
15936
15937 <!--
15938 // IUSBController
15939 /////////////////////////////////////////////////////////////////////////
15940 -->
15941
15942 <interface
15943 name="IUSBController" extends="$unknown"
15944 uuid="01e6f13a-0580-452f-a40f-74e32a5e4921"
15945 wsmap="managed"
15946 >
15947 <attribute name="enabled" type="boolean">
15948 <desc>
15949 Flag whether the USB controller is present in the
15950 guest system. If disabled, the virtual guest hardware will
15951 not contain any USB controller. Can only be changed when
15952 the VM is powered off.
15953 </desc>
15954 </attribute>
15955
15956 <attribute name="enabledEHCI" type="boolean">
15957 <desc>
15958 Flag whether the USB EHCI controller is present in the
15959 guest system. If disabled, the virtual guest hardware will
15960 not contain a USB EHCI controller. Can only be changed when
15961 the VM is powered off.
15962 </desc>
15963 </attribute>
15964
15965 <attribute name="proxyAvailable" type="boolean" readonly="yes">
15966 <desc>
15967 Flag whether there is an USB proxy available.
15968 </desc>
15969 </attribute>
15970
15971 <attribute name="USBStandard" type="unsigned short" readonly="yes">
15972 <desc>
15973 USB standard version which the controller implements.
15974 This is a BCD which means that the major version is in the
15975 high byte and minor version is in the low byte.
15976 </desc>
15977 </attribute>
15978
15979 <attribute name="deviceFilters" type="IUSBDeviceFilter" readonly="yes" safearray="yes">
15980 <desc>
15981 List of USB device filters associated with the machine.
15982
15983 If the machine is currently running, these filters are activated
15984 every time a new (supported) USB device is attached to the host
15985 computer that was not ignored by global filters
15986 (<link to="IHost::USBDeviceFilters"/>).
15987
15988 These filters are also activated when the machine is powered up.
15989 They are run against a list of all currently available USB
15990 devices (in states
15991 <link to="USBDeviceState_Available"/>,
15992 <link to="USBDeviceState_Busy"/>,
15993 <link to="USBDeviceState_Held"/>) that were not previously
15994 ignored by global filters.
15995
15996 If at least one filter matches the USB device in question, this
15997 device is automatically captured (attached to) the virtual USB
15998 controller of this machine.
15999
16000 <see><link to="IUSBDeviceFilter"/>, <link to="IUSBController"/></see>
16001 </desc>
16002 </attribute>
16003
16004 <method name="createDeviceFilter">
16005 <desc>
16006 Creates a new USB device filter. All attributes except
16007 the filter name are set to empty (any match),
16008 <i>active</i> is @c false (the filter is not active).
16009
16010 The created filter can then be added to the list of filters using
16011 <link to="#insertDeviceFilter"/>.
16012
16013 <result name="VBOX_E_INVALID_VM_STATE">
16014 The virtual machine is not mutable.
16015 </result>
16016
16017 <see><link to="#deviceFilters"/></see>
16018 </desc>
16019 <param name="name" type="wstring" dir="in">
16020 <desc>
16021 Filter name. See <link to="IUSBDeviceFilter::name"/>
16022 for more info.
16023 </desc>
16024 </param>
16025 <param name="filter" type="IUSBDeviceFilter" dir="return">
16026 <desc>Created filter object.</desc>
16027 </param>
16028 </method>
16029
16030 <method name="insertDeviceFilter">
16031 <desc>
16032 Inserts the given USB device to the specified position
16033 in the list of filters.
16034
16035 Positions are numbered starting from <tt>0</tt>. If the specified
16036 position is equal to or greater than the number of elements in
16037 the list, the filter is added to the end of the collection.
16038
16039 <note>
16040 Duplicates are not allowed, so an attempt to insert a
16041 filter that is already in the collection, will return an
16042 error.
16043 </note>
16044
16045 <result name="VBOX_E_INVALID_VM_STATE">
16046 Virtual machine is not mutable.
16047 </result>
16048 <result name="E_INVALIDARG">
16049 USB device filter not created within this VirtualBox instance.
16050 </result>
16051 <result name="VBOX_E_INVALID_OBJECT_STATE">
16052 USB device filter already in list.
16053 </result>
16054
16055 <see><link to="#deviceFilters"/></see>
16056 </desc>
16057 <param name="position" type="unsigned long" dir="in">
16058 <desc>Position to insert the filter to.</desc>
16059 </param>
16060 <param name="filter" type="IUSBDeviceFilter" dir="in">
16061 <desc>USB device filter to insert.</desc>
16062 </param>
16063 </method>
16064
16065 <method name="removeDeviceFilter">
16066 <desc>
16067 Removes a USB device filter from the specified position in the
16068 list of filters.
16069
16070 Positions are numbered starting from <tt>0</tt>. Specifying a
16071 position equal to or greater than the number of elements in
16072 the list will produce an error.
16073
16074 <see><link to="#deviceFilters"/></see>
16075
16076 <result name="VBOX_E_INVALID_VM_STATE">
16077 Virtual machine is not mutable.
16078 </result>
16079 <result name="E_INVALIDARG">
16080 USB device filter list empty or invalid @a position.
16081 </result>
16082
16083 </desc>
16084 <param name="position" type="unsigned long" dir="in">
16085 <desc>Position to remove the filter from.</desc>
16086 </param>
16087 <param name="filter" type="IUSBDeviceFilter" dir="return">
16088 <desc>Removed USB device filter.</desc>
16089 </param>
16090 </method>
16091
16092 </interface>
16093
16094
16095 <!--
16096 // IUSBDevice
16097 /////////////////////////////////////////////////////////////////////////
16098 -->
16099
16100 <interface
16101 name="IUSBDevice" extends="$unknown"
16102 uuid="f8967b0b-4483-400f-92b5-8b675d98a85b"
16103 wsmap="managed"
16104 >
16105 <desc>
16106 The IUSBDevice interface represents a virtual USB device attached to the
16107 virtual machine.
16108
16109 A collection of objects implementing this interface is stored in the
16110 <link to="IConsole::USBDevices"/> attribute which lists all USB devices
16111 attached to a running virtual machine's USB controller.
16112 </desc>
16113
16114 <attribute name="id" type="uuid" mod="string" readonly="yes">
16115 <desc>
16116 Unique USB device ID. This ID is built from #vendorId,
16117 #productId, #revision and #serialNumber.
16118 </desc>
16119 </attribute>
16120
16121 <attribute name="vendorId" type="unsigned short" readonly="yes">
16122 <desc>Vendor ID.</desc>
16123 </attribute>
16124
16125 <attribute name="productId" type="unsigned short" readonly="yes">
16126 <desc>Product ID.</desc>
16127 </attribute>
16128
16129 <attribute name="revision" type="unsigned short" readonly="yes">
16130 <desc>
16131 Product revision number. This is a packed BCD represented as
16132 unsigned short. The high byte is the integer part and the low
16133 byte is the decimal.
16134 </desc>
16135 </attribute>
16136
16137 <attribute name="manufacturer" type="wstring" readonly="yes">
16138 <desc>Manufacturer string.</desc>
16139 </attribute>
16140
16141 <attribute name="product" type="wstring" readonly="yes">
16142 <desc>Product string.</desc>
16143 </attribute>
16144
16145 <attribute name="serialNumber" type="wstring" readonly="yes">
16146 <desc>Serial number string.</desc>
16147 </attribute>
16148
16149 <attribute name="address" type="wstring" readonly="yes">
16150 <desc>Host specific address of the device.</desc>
16151 </attribute>
16152
16153 <attribute name="port" type="unsigned short" readonly="yes">
16154 <desc>
16155 Host USB port number the device is physically
16156 connected to.
16157 </desc>
16158 </attribute>
16159
16160 <attribute name="version" type="unsigned short" readonly="yes">
16161 <desc>
16162 The major USB version of the device - 1 or 2.
16163 </desc>
16164 </attribute>
16165
16166 <attribute name="portVersion" type="unsigned short" readonly="yes">
16167 <desc>
16168 The major USB version of the host USB port the device is
16169 physically connected to - 1 or 2. For devices not connected to
16170 anything this will have the same value as the version attribute.
16171 </desc>
16172 </attribute>
16173
16174 <attribute name="remote" type="boolean" readonly="yes">
16175 <desc>
16176 Whether the device is physically connected to a remote VRDE
16177 client or to a local host machine.
16178 </desc>
16179 </attribute>
16180
16181 </interface>
16182
16183
16184 <!--
16185 // IUSBDeviceFilter
16186 /////////////////////////////////////////////////////////////////////////
16187 -->
16188
16189 <interface
16190 name="IUSBDeviceFilter" extends="$unknown"
16191 uuid="d6831fb4-1a94-4c2c-96ef-8d0d6192066d"
16192 wsmap="managed"
16193 >
16194 <desc>
16195 The IUSBDeviceFilter interface represents an USB device filter used
16196 to perform actions on a group of USB devices.
16197
16198 This type of filters is used by running virtual machines to
16199 automatically capture selected USB devices once they are physically
16200 attached to the host computer.
16201
16202 A USB device is matched to the given device filter if and only if all
16203 attributes of the device match the corresponding attributes of the
16204 filter (that is, attributes are joined together using the logical AND
16205 operation). On the other hand, all together, filters in the list of
16206 filters carry the semantics of the logical OR operation. So if it is
16207 desirable to create a match like "this vendor id OR this product id",
16208 one needs to create two filters and specify "any match" (see below)
16209 for unused attributes.
16210
16211 All filter attributes used for matching are strings. Each string
16212 is an expression representing a set of values of the corresponding
16213 device attribute, that will match the given filter. Currently, the
16214 following filtering expressions are supported:
16215
16216 <ul>
16217 <li><i>Interval filters</i>. Used to specify valid intervals for
16218 integer device attributes (Vendor ID, Product ID and Revision).
16219 The format of the string is:
16220
16221 <tt>int:((m)|([m]-[n]))(,(m)|([m]-[n]))*</tt>
16222
16223 where <tt>m</tt> and <tt>n</tt> are integer numbers, either in octal
16224 (starting from <tt>0</tt>), hexadecimal (starting from <tt>0x</tt>)
16225 or decimal (otherwise) form, so that <tt>m &lt; n</tt>. If <tt>m</tt>
16226 is omitted before a dash (<tt>-</tt>), the minimum possible integer
16227 is assumed; if <tt>n</tt> is omitted after a dash, the maximum
16228 possible integer is assumed.
16229 </li>
16230 <li><i>Boolean filters</i>. Used to specify acceptable values for
16231 boolean device attributes. The format of the string is:
16232
16233 <tt>true|false|yes|no|0|1</tt>
16234
16235 </li>
16236 <li><i>Exact match</i>. Used to specify a single value for the given
16237 device attribute. Any string that doesn't start with <tt>int:</tt>
16238 represents the exact match. String device attributes are compared to
16239 this string including case of symbols. Integer attributes are first
16240 converted to a string (see individual filter attributes) and then
16241 compared ignoring case.
16242
16243 </li>
16244 <li><i>Any match</i>. Any value of the corresponding device attribute
16245 will match the given filter. An empty or @c null string is
16246 used to construct this type of filtering expressions.
16247
16248 </li>
16249 </ul>
16250
16251 <note>
16252 On the Windows host platform, interval filters are not currently
16253 available. Also all string filter attributes
16254 (<link to="#manufacturer"/>, <link to="#product"/>,
16255 <link to="#serialNumber"/>) are ignored, so they behave as
16256 <i>any match</i> no matter what string expression is specified.
16257 </note>
16258
16259 <see><link to="IUSBController::deviceFilters"/>,
16260 <link to="IHostUSBDeviceFilter"/></see>
16261 </desc>
16262
16263 <attribute name="name" type="wstring">
16264 <desc>
16265 Visible name for this filter.
16266 This name is used to visually distinguish one filter from another,
16267 so it can neither be @c null nor an empty string.
16268 </desc>
16269 </attribute>
16270
16271 <attribute name="active" type="boolean">
16272 <desc>Whether this filter active or has been temporarily disabled.</desc>
16273 </attribute>
16274
16275 <attribute name="vendorId" type="wstring">
16276 <desc>
16277 <link to="IUSBDevice::vendorId">Vendor ID</link> filter.
16278 The string representation for the <i>exact matching</i>
16279 has the form <tt>XXXX</tt>, where <tt>X</tt> is the hex digit
16280 (including leading zeroes).
16281 </desc>
16282 </attribute>
16283
16284 <attribute name="productId" type="wstring">
16285 <desc>
16286 <link to="IUSBDevice::productId">Product ID</link> filter.
16287 The string representation for the <i>exact matching</i>
16288 has the form <tt>XXXX</tt>, where <tt>X</tt> is the hex digit
16289 (including leading zeroes).
16290 </desc>
16291 </attribute>
16292
16293 <attribute name="revision" type="wstring">
16294 <desc>
16295 <link to="IUSBDevice::productId">Product revision number</link>
16296 filter. The string representation for the <i>exact matching</i>
16297 has the form <tt>IIFF</tt>, where <tt>I</tt> is the decimal digit
16298 of the integer part of the revision, and <tt>F</tt> is the
16299 decimal digit of its fractional part (including leading and
16300 trailing zeros).
16301 Note that for interval filters, it's best to use the hexadecimal
16302 form, because the revision is stored as a 16 bit packed BCD value;
16303 so the expression <tt>int:0x0100-0x0199</tt> will match any
16304 revision from <tt>1.0</tt> to <tt>1.99</tt>.
16305 </desc>
16306 </attribute>
16307
16308 <attribute name="manufacturer" type="wstring">
16309 <desc>
16310 <link to="IUSBDevice::manufacturer">Manufacturer</link> filter.
16311 </desc>
16312 </attribute>
16313
16314 <attribute name="product" type="wstring">
16315 <desc>
16316 <link to="IUSBDevice::product">Product</link> filter.
16317 </desc>
16318 </attribute>
16319
16320 <attribute name="serialNumber" type="wstring">
16321 <desc>
16322 <link to="IUSBDevice::serialNumber">Serial number</link> filter.
16323 </desc>
16324 </attribute>
16325
16326 <attribute name="port" type="wstring">
16327 <desc>
16328 <link to="IUSBDevice::port">Host USB port</link> filter.
16329 </desc>
16330 </attribute>
16331
16332 <attribute name="remote" type="wstring">
16333 <desc>
16334 <link to="IUSBDevice::remote">Remote state</link> filter.
16335 <note>
16336 This filter makes sense only for machine USB filters,
16337 i.e. it is ignored by IHostUSBDeviceFilter objects.
16338 </note>
16339 </desc>
16340 </attribute>
16341
16342 <attribute name="maskedInterfaces" type="unsigned long">
16343 <desc>
16344 This is an advanced option for hiding one or more USB interfaces
16345 from the guest. The value is a bit mask where the bits that are set
16346 means the corresponding USB interface should be hidden, masked off
16347 if you like.
16348 This feature only works on Linux hosts.
16349 </desc>
16350 </attribute>
16351
16352 </interface>
16353
16354
16355 <!--
16356 // IHostUSBDevice
16357 /////////////////////////////////////////////////////////////////////////
16358 -->
16359
16360 <enum
16361 name="USBDeviceState"
16362 uuid="b99a2e65-67fb-4882-82fd-f3e5e8193ab4"
16363 >
16364 <desc>
16365 USB device state. This enumeration represents all possible states
16366 of the USB device physically attached to the host computer regarding
16367 its state on the host computer and availability to guest computers
16368 (all currently running virtual machines).
16369
16370 Once a supported USB device is attached to the host, global USB
16371 filters (<link to="IHost::USBDeviceFilters"/>) are activated. They can
16372 either ignore the device, or put it to USBDeviceState_Held state, or do
16373 nothing. Unless the device is ignored by global filters, filters of all
16374 currently running guests (<link to="IUSBController::deviceFilters"/>) are
16375 activated that can put it to USBDeviceState_Captured state.
16376
16377 If the device was ignored by global filters, or didn't match
16378 any filters at all (including guest ones), it is handled by the host
16379 in a normal way. In this case, the device state is determined by
16380 the host and can be one of USBDeviceState_Unavailable, USBDeviceState_Busy
16381 or USBDeviceState_Available, depending on the current device usage.
16382
16383 Besides auto-capturing based on filters, the device can be manually
16384 captured by guests (<link to="IConsole::attachUSBDevice"/>) if its
16385 state is USBDeviceState_Busy, USBDeviceState_Available or
16386 USBDeviceState_Held.
16387
16388 <note>
16389 Due to differences in USB stack implementations in Linux and Win32,
16390 states USBDeviceState_Busy and USBDeviceState_Unavailable are applicable
16391 only to the Linux version of the product. This also means that (<link
16392 to="IConsole::attachUSBDevice"/>) can only succeed on Win32 if the
16393 device state is USBDeviceState_Held.
16394 </note>
16395
16396 <see><link to="IHostUSBDevice"/>, <link to="IHostUSBDeviceFilter"/></see>
16397 </desc>
16398
16399 <const name="NotSupported" value="0">
16400 <desc>
16401 Not supported by the VirtualBox server, not available to guests.
16402 </desc>
16403 </const>
16404 <const name="Unavailable" value="1">
16405 <desc>
16406 Being used by the host computer exclusively,
16407 not available to guests.
16408 </desc>
16409 </const>
16410 <const name="Busy" value="2">
16411 <desc>
16412 Being used by the host computer, potentially available to guests.
16413 </desc>
16414 </const>
16415 <const name="Available" value="3">
16416 <desc>
16417 Not used by the host computer, available to guests (the host computer
16418 can also start using the device at any time).
16419 </desc>
16420 </const>
16421 <const name="Held" value="4">
16422 <desc>
16423 Held by the VirtualBox server (ignored by the host computer),
16424 available to guests.
16425 </desc>
16426 </const>
16427 <const name="Captured" value="5">
16428 <desc>
16429 Captured by one of the guest computers, not available
16430 to anybody else.
16431 </desc>
16432 </const>
16433 </enum>
16434
16435 <interface
16436 name="IHostUSBDevice" extends="IUSBDevice"
16437 uuid="173b4b44-d268-4334-a00d-b6521c9a740a"
16438 wsmap="managed"
16439 >
16440 <desc>
16441 The IHostUSBDevice interface represents a physical USB device attached
16442 to the host computer.
16443
16444 Besides properties inherited from IUSBDevice, this interface adds the
16445 <link to="#state"/> property that holds the current state of the USB
16446 device.
16447
16448 <see><link to="IHost::USBDevices"/>,
16449 <link to="IHost::USBDeviceFilters"/></see>
16450 </desc>
16451
16452 <attribute name="state" type="USBDeviceState" readonly="yes">
16453 <desc>
16454 Current state of the device.
16455 </desc>
16456 </attribute>
16457
16458 <!-- @todo add class, subclass, bandwidth, configs, interfaces endpoints and such later. -->
16459
16460 </interface>
16461
16462
16463 <!--
16464 // IHostUSBDeviceFilter
16465 /////////////////////////////////////////////////////////////////////////
16466 -->
16467
16468 <enum
16469 name="USBDeviceFilterAction"
16470 uuid="cbc30a49-2f4e-43b5-9da6-121320475933"
16471 >
16472 <desc>
16473 Actions for host USB device filters.
16474 <see><link to="IHostUSBDeviceFilter"/>, <link to="USBDeviceState"/></see>
16475 </desc>
16476
16477 <const name="Null" value="0">
16478 <desc>Null value (never used by the API).</desc>
16479 </const>
16480 <const name="Ignore" value="1">
16481 <desc>Ignore the matched USB device.</desc>
16482 </const>
16483 <const name="Hold" value="2">
16484 <desc>Hold the matched USB device.</desc>
16485 </const>
16486 </enum>
16487
16488 <interface
16489 name="IHostUSBDeviceFilter" extends="IUSBDeviceFilter"
16490 uuid="4cc70246-d74a-400f-8222-3900489c0374"
16491 wsmap="managed"
16492 >
16493 <desc>
16494 The IHostUSBDeviceFilter interface represents a global filter for a
16495 physical USB device used by the host computer. Used indirectly in
16496 <link to="IHost::USBDeviceFilters"/>.
16497
16498 Using filters of this type, the host computer determines the initial
16499 state of the USB device after it is physically attached to the
16500 host's USB controller.
16501
16502 <note>
16503 The <link to="IUSBDeviceFilter::remote"/> attribute is ignored by this type of
16504 filters, because it makes sense only for
16505 <link to="IUSBController::deviceFilters">machine USB filters</link>.
16506 </note>
16507
16508 <see><link to="IHost::USBDeviceFilters"/></see>
16509 </desc>
16510
16511 <attribute name="action" type="USBDeviceFilterAction">
16512 <desc>
16513 Action performed by the host when an attached USB device
16514 matches this filter.
16515 </desc>
16516 </attribute>
16517
16518 </interface>
16519
16520 <!--
16521 // IAudioAdapter
16522 /////////////////////////////////////////////////////////////////////////
16523 -->
16524
16525 <enum
16526 name="AudioDriverType"
16527 uuid="4bcc3d73-c2fe-40db-b72f-0c2ca9d68496"
16528 >
16529 <desc>
16530 Host audio driver type.
16531 </desc>
16532
16533 <const name="Null" value="0">
16534 <desc>Null value, also means "dummy audio driver".</desc>
16535 </const>
16536 <const name="WinMM" value="1">
16537 <desc>Windows multimedia (Windows hosts only).</desc>
16538 </const>
16539 <const name="OSS" value="2">
16540 <desc>Open Sound System (Linux hosts only).</desc>
16541 </const>
16542 <const name="ALSA" value="3">
16543 <desc>Advanced Linux Sound Architecture (Linux hosts only).</desc>
16544 </const>
16545 <const name="DirectSound" value="4">
16546 <desc>DirectSound (Windows hosts only).</desc>
16547 </const>
16548 <const name="CoreAudio" value="5">
16549 <desc>CoreAudio (Mac hosts only).</desc>
16550 </const>
16551 <const name="MMPM" value="6">
16552 <desc>Reserved for historical reasons.</desc>
16553 </const>
16554 <const name="Pulse" value="7">
16555 <desc>PulseAudio (Linux hosts only).</desc>
16556 </const>
16557 <const name="SolAudio" value="8">
16558 <desc>Solaris audio (Solaris hosts only).</desc>
16559 </const>
16560 </enum>
16561
16562 <enum
16563 name="AudioControllerType"
16564 uuid="7afd395c-42c3-444e-8788-3ce80292f36c"
16565 >
16566 <desc>
16567 Virtual audio controller type.
16568 </desc>
16569
16570 <const name="AC97" value="0"/>
16571 <const name="SB16" value="1"/>
16572 <const name="HDA" value="2"/>
16573 </enum>
16574
16575 <interface
16576 name="IAudioAdapter" extends="$unknown"
16577 uuid="921873db-5f3f-4b69-91f9-7be9e535a2cb"
16578 wsmap="managed"
16579 >
16580 <desc>
16581 The IAudioAdapter interface represents the virtual audio adapter of
16582 the virtual machine. Used in <link to="IMachine::audioAdapter"/>.
16583 </desc>
16584 <attribute name="enabled" type="boolean">
16585 <desc>
16586 Flag whether the audio adapter is present in the
16587 guest system. If disabled, the virtual guest hardware will
16588 not contain any audio adapter. Can only be changed when
16589 the VM is not running.
16590 </desc>
16591 </attribute>
16592 <attribute name="audioController" type="AudioControllerType">
16593 <desc>
16594 The audio hardware we emulate.
16595 </desc>
16596 </attribute>
16597 <attribute name="audioDriver" type="AudioDriverType">
16598 <desc>
16599 Audio driver the adapter is connected to. This setting
16600 can only be changed when the VM is not running.
16601 </desc>
16602 </attribute>
16603 </interface>
16604
16605 <enum
16606 name="AuthType"
16607 uuid="7eef6ef6-98c2-4dc2-ab35-10d2b292028d"
16608 >
16609 <desc>
16610 VirtualBox authentication type.
16611 </desc>
16612
16613 <const name="Null" value="0">
16614 <desc>Null value, also means "no authentication".</desc>
16615 </const>
16616 <const name="External" value="1"/>
16617 <const name="Guest" value="2"/>
16618 </enum>
16619
16620 <!--
16621 // IVRDEServer
16622 /////////////////////////////////////////////////////////////////////////
16623 -->
16624
16625 <interface
16626 name="IVRDEServer" extends="$unknown"
16627 uuid="d38de40a-c2c1-4e95-b5a4-167b05f5694c"
16628 wsmap="managed"
16629 >
16630 <attribute name="enabled" type="boolean">
16631 <desc>VRDE server status.</desc>
16632 </attribute>
16633
16634 <attribute name="authType" type="AuthType">
16635 <desc>VRDE authentication method.</desc>
16636 </attribute>
16637
16638 <attribute name="authTimeout" type="unsigned long">
16639 <desc>Timeout for guest authentication. Milliseconds.</desc>
16640 </attribute>
16641
16642 <attribute name="allowMultiConnection" type="boolean">
16643 <desc>
16644 Flag whether multiple simultaneous connections to the VM are permitted.
16645 Note that this will be replaced by a more powerful mechanism in the future.
16646 </desc>
16647 </attribute>
16648
16649 <attribute name="reuseSingleConnection" type="boolean">
16650 <desc>
16651 Flag whether the existing connection must be dropped and a new connection
16652 must be established by the VRDE server, when a new client connects in single
16653 connection mode.
16654 </desc>
16655 </attribute>
16656
16657 <attribute name="VRDEExtPack" type="wstring">
16658 <desc>
16659 The name of Extension Pack providing VRDE for this VM. Overrides
16660 <link to="ISystemProperties::defaultVRDEExtPack"/>.
16661 </desc>
16662 </attribute>
16663
16664 <attribute name="authLibrary" type="wstring">
16665 <desc>
16666 Library used for authentication of RDP clients by this VM. Overrides
16667 <link to="ISystemProperties::VRDEAuthLibrary"/>.
16668 </desc>
16669 </attribute>
16670
16671 <attribute name="VRDEProperties" type="wstring" readonly="yes" safearray="yes">
16672 <desc>
16673 Array of names of properties, which are supported by this VRDE server.
16674 </desc>
16675 </attribute>
16676
16677 <method name="setVRDEProperty">
16678 <desc>
16679 Sets a VRDE specific property string.
16680
16681 If you pass @c null or empty string as a key @a value, the given @a key
16682 will be deleted.
16683
16684 </desc>
16685 <param name="key" type="wstring" dir="in">
16686 <desc>Name of the key to set.</desc>
16687 </param>
16688 <param name="value" type="wstring" dir="in">
16689 <desc>Value to assign to the key.</desc>
16690 </param>
16691 </method>
16692
16693 <method name="getVRDEProperty" const="yes">
16694 <desc>
16695 Returns a VRDE specific property string.
16696
16697 If the requested data @a key does not exist, this function will
16698 succeed and return an empty string in the @a value argument.
16699
16700 </desc>
16701 <param name="key" type="wstring" dir="in">
16702 <desc>Name of the key to get.</desc>
16703 </param>
16704 <param name="value" type="wstring" dir="return">
16705 <desc>Value of the requested key.</desc>
16706 </param>
16707 </method>
16708
16709 </interface>
16710
16711
16712 <!--
16713 // ISharedFolder
16714 /////////////////////////////////////////////////////////////////////////
16715 -->
16716
16717 <interface
16718 name="ISharedFolder" extends="$unknown"
16719 uuid="8388da11-b559-4574-a5b7-2bd7acd5cef8"
16720 wsmap="struct"
16721 >
16722 <desc>
16723 The ISharedFolder interface represents a folder in the host computer's
16724 file system accessible from the guest OS running inside a virtual
16725 machine using an associated logical name.
16726
16727 There are three types of shared folders:
16728 <ul>
16729 <li><i>Global</i> (<link to="IVirtualBox::sharedFolders"/>), shared
16730 folders available to all virtual machines.</li>
16731 <li><i>Permanent</i> (<link to="IMachine::sharedFolders"/>),
16732 VM-specific shared folders available to the given virtual machine at
16733 startup.</li>
16734 <li><i>Transient</i> (<link to="IConsole::sharedFolders"/>),
16735 VM-specific shared folders created in the session context (for
16736 example, when the virtual machine is running) and automatically
16737 discarded when the session is closed (the VM is powered off).</li>
16738 </ul>
16739
16740 Logical names of shared folders must be unique within the given scope
16741 (global, permanent or transient). However, they do not need to be unique
16742 across scopes. In this case, the definition of the shared folder in a
16743 more specific scope takes precedence over definitions in all other
16744 scopes. The order of precedence is (more specific to more general):
16745 <ol>
16746 <li>Transient definitions</li>
16747 <li>Permanent definitions</li>
16748 <li>Global definitions</li>
16749 </ol>
16750
16751 For example, if MyMachine has a shared folder named
16752 <tt>C_DRIVE</tt> (that points to <tt>C:\\</tt>), then creating a
16753 transient shared folder named <tt>C_DRIVE</tt> (that points
16754 to <tt>C:\\\\WINDOWS</tt>) will change the definition
16755 of <tt>C_DRIVE</tt> in the guest OS so
16756 that <tt>\\\\VBOXSVR\\C_DRIVE</tt> will give access
16757 to <tt>C:\\WINDOWS</tt> instead of <tt>C:\\</tt> on the host
16758 PC. Removing the transient shared folder <tt>C_DRIVE</tt> will restore
16759 the previous (permanent) definition of <tt>C_DRIVE</tt> that points
16760 to <tt>C:\\</tt> if it still exists.
16761
16762 Note that permanent and transient shared folders of different machines
16763 are in different name spaces, so they don't overlap and don't need to
16764 have unique logical names.
16765
16766 <note>
16767 Global shared folders are not implemented in the current version of the
16768 product.
16769 </note>
16770 </desc>
16771
16772 <attribute name="name" type="wstring" readonly="yes">
16773 <desc>Logical name of the shared folder.</desc>
16774 </attribute>
16775
16776 <attribute name="hostPath" type="wstring" readonly="yes">
16777 <desc>Full path to the shared folder in the host file system.</desc>
16778 </attribute>
16779
16780 <attribute name="accessible" type="boolean" readonly="yes">
16781 <desc>
16782 Whether the folder defined by the host path is currently
16783 accessible or not.
16784 For example, the folder can be inaccessible if it is placed
16785 on the network share that is not available by the time
16786 this property is read.
16787 </desc>
16788 </attribute>
16789
16790 <attribute name="writable" type="boolean" readonly="yes">
16791 <desc>
16792 Whether the folder defined by the host path is writable or
16793 not.
16794 </desc>
16795 </attribute>
16796
16797 <attribute name="autoMount" type="boolean" readonly="yes">
16798 <desc>
16799 Whether the folder gets automatically mounted by the guest or not.
16800 </desc>
16801 </attribute>
16802
16803 <attribute name="lastAccessError" type="wstring" readonly="yes">
16804 <desc>
16805 Text message that represents the result of the last accessibility
16806 check.
16807
16808 Accessibility checks are performed each time the <link to="#accessible"/>
16809 attribute is read. An empty string is returned if the last
16810 accessibility check was successful. A non-empty string indicates a
16811 failure and should normally describe a reason of the failure (for
16812 example, a file read error).
16813 </desc>
16814 </attribute>
16815
16816 </interface>
16817
16818 <!--
16819 // ISession
16820 /////////////////////////////////////////////////////////////////////////
16821 -->
16822
16823 <interface
16824 name="IInternalSessionControl" extends="$unknown"
16825 uuid="3e83963a-1c3b-400d-8c5f-f2d077b0a597"
16826 internal="yes"
16827 wsmap="suppress"
16828 >
16829 <method name="getPID">
16830 <desc>PID of the process that has created this Session object.
16831 </desc>
16832 <param name="pid" type="unsigned long" dir="return"/>
16833 </method>
16834
16835 <method name="getRemoteConsole">
16836 <desc>
16837 Returns the console object suitable for remote control.
16838
16839 <result name="VBOX_E_INVALID_VM_STATE">
16840 Session state prevents operation.
16841 </result>
16842 <result name="VBOX_E_INVALID_OBJECT_STATE">
16843 Session type prevents operation.
16844 </result>
16845
16846 </desc>
16847 <param name="console" type="IConsole" dir="return"/>
16848 </method>
16849
16850 <method name="assignMachine">
16851 <desc>
16852 Assigns the machine object associated with this direct-type
16853 session or informs the session that it will be a remote one
16854 (if @a machine == @c null).
16855
16856 <result name="VBOX_E_INVALID_VM_STATE">
16857 Session state prevents operation.
16858 </result>
16859 <result name="VBOX_E_INVALID_OBJECT_STATE">
16860 Session type prevents operation.
16861 </result>
16862
16863 </desc>
16864 <param name="machine" type="IMachine" dir="in"/>
16865 <param name="lockType" type="LockType" dir="in"/>
16866 </method>
16867
16868 <method name="assignRemoteMachine">
16869 <desc>
16870 Assigns the machine and the (remote) console object associated with
16871 this remote-type session.
16872
16873 <result name="VBOX_E_INVALID_VM_STATE">
16874 Session state prevents operation.
16875 </result>
16876
16877 </desc>
16878 <param name="machine" type="IMachine" dir="in"/>
16879 <param name="console" type="IConsole" dir="in"/>
16880 </method>
16881
16882 <method name="updateMachineState">
16883 <desc>
16884 Updates the machine state in the VM process.
16885 Must be called only in certain cases
16886 (see the method implementation).
16887
16888 <result name="VBOX_E_INVALID_VM_STATE">
16889 Session state prevents operation.
16890 </result>
16891 <result name="VBOX_E_INVALID_OBJECT_STATE">
16892 Session type prevents operation.
16893 </result>
16894
16895 </desc>
16896 <param name="aMachineState" type="MachineState" dir="in"/>
16897 </method>
16898
16899 <method name="uninitialize">
16900 <desc>
16901 Uninitializes (closes) this session. Used by VirtualBox to close
16902 the corresponding remote session when the direct session dies
16903 or gets closed.
16904
16905 <result name="VBOX_E_INVALID_VM_STATE">
16906 Session state prevents operation.
16907 </result>
16908
16909 </desc>
16910 </method>
16911
16912 <method name="onNetworkAdapterChange">
16913 <desc>
16914 Triggered when settings of a network adapter of the
16915 associated virtual machine have changed.
16916
16917 <result name="VBOX_E_INVALID_VM_STATE">
16918 Session state prevents operation.
16919 </result>
16920 <result name="VBOX_E_INVALID_OBJECT_STATE">
16921 Session type prevents operation.
16922 </result>
16923
16924 </desc>
16925 <param name="networkAdapter" type="INetworkAdapter" dir="in"/>
16926 <param name="changeAdapter" type="boolean" dir="in"/>
16927 </method>
16928
16929 <method name="onSerialPortChange">
16930 <desc>
16931 Triggered when settings of a serial port of the
16932 associated virtual machine have changed.
16933
16934 <result name="VBOX_E_INVALID_VM_STATE">
16935 Session state prevents operation.
16936 </result>
16937 <result name="VBOX_E_INVALID_OBJECT_STATE">
16938 Session type prevents operation.
16939 </result>
16940
16941 </desc>
16942 <param name="serialPort" type="ISerialPort" dir="in"/>
16943 </method>
16944
16945 <method name="onParallelPortChange">
16946 <desc>
16947 Triggered when settings of a parallel port of the
16948 associated virtual machine have changed.
16949
16950 <result name="VBOX_E_INVALID_VM_STATE">
16951 Session state prevents operation.
16952 </result>
16953 <result name="VBOX_E_INVALID_OBJECT_STATE">
16954 Session type prevents operation.
16955 </result>
16956
16957 </desc>
16958 <param name="parallelPort" type="IParallelPort" dir="in"/>
16959 </method>
16960
16961 <method name="onStorageControllerChange">
16962 <desc>
16963 Triggered when settings of a storage controller of the
16964 associated virtual machine have changed.
16965
16966 <result name="VBOX_E_INVALID_VM_STATE">
16967 Session state prevents operation.
16968 </result>
16969 <result name="VBOX_E_INVALID_OBJECT_STATE">
16970 Session type prevents operation.
16971 </result>
16972
16973 </desc>
16974 </method>
16975
16976 <method name="onMediumChange">
16977 <desc>
16978 Triggered when attached media of the
16979 associated virtual machine have changed.
16980
16981 <result name="VBOX_E_INVALID_VM_STATE">
16982 Session state prevents operation.
16983 </result>
16984 <result name="VBOX_E_INVALID_OBJECT_STATE">
16985 Session type prevents operation.
16986 </result>
16987
16988 </desc>
16989
16990 <param name="mediumAttachment" type="IMediumAttachment" dir="in">
16991 <desc>The medium attachment which changed.</desc>
16992 </param>
16993 <param name="force" type="boolean" dir="in">
16994 <desc>If the medium change was forced.</desc>
16995 </param>
16996 </method>
16997
16998 <method name="onStorageDeviceChange">
16999 <desc>
17000 Triggered when attached storage devices of the
17001 associated virtual machine have changed.
17002
17003 <result name="VBOX_E_INVALID_VM_STATE">
17004 Session state prevents operation.
17005 </result>
17006 <result name="VBOX_E_INVALID_OBJECT_STATE">
17007 Session type prevents operation.
17008 </result>
17009
17010 </desc>
17011
17012 <param name="mediumAttachment" type="IMediumAttachment" dir="in">
17013 <desc>The medium attachment which changed.</desc>
17014 </param>
17015 <param name="remove" type="boolean" dir="in">
17016 <desc>TRUE if the device is removed, FALSE if it was added.</desc>
17017 </param>
17018 </method>
17019
17020 <method name="onClipboardModeChange">
17021 <desc>
17022 Notification when the shared clipboard mode changes.
17023 </desc>
17024 <param name="clipboardMode" type="ClipboardMode" dir="in">
17025 <desc>The new shared clipboard mode.</desc>
17026 </param>
17027 </method>
17028
17029 <method name="onDragAndDropModeChange">
17030 <desc>
17031 Notification when the drag'n'drop mode changes.
17032 </desc>
17033 <param name="dragAndDropMode" type="DragAndDropMode" dir="in">
17034 <desc>The new mode for drag'n'drop.</desc>
17035 </param>
17036 </method>
17037
17038 <method name="onCPUChange">
17039 <desc>
17040 Notification when a CPU changes.
17041 </desc>
17042 <param name="cpu" type="unsigned long" dir="in">
17043 <desc>The CPU which changed</desc>
17044 </param>
17045 <param name="add" type="boolean" dir="in">
17046 <desc>Flag whether the CPU was added or removed</desc>
17047 </param>
17048 </method>
17049
17050 <method name="onCPUExecutionCapChange">
17051 <desc>
17052 Notification when the CPU execution cap changes.
17053 </desc>
17054 <param name="executionCap" type="unsigned long" dir="in">
17055 <desc>The new CPU execution cap value. (1-100)</desc>
17056 </param>
17057 </method>
17058
17059 <method name="onVRDEServerChange">
17060 <desc>
17061 Triggered when settings of the VRDE server object of the
17062 associated virtual machine have changed.
17063
17064 <result name="VBOX_E_INVALID_VM_STATE">
17065 Session state prevents operation.
17066 </result>
17067 <result name="VBOX_E_INVALID_OBJECT_STATE">
17068 Session type prevents operation.
17069 </result>
17070
17071 </desc>
17072 <param name="restart" type="boolean" dir="in">
17073 <desc>Flag whether the server must be restarted</desc>
17074 </param>
17075 </method>
17076
17077 <method name="onUSBControllerChange">
17078 <desc>
17079 Triggered when settings of the USB controller object of the
17080 associated virtual machine have changed.
17081
17082 <result name="VBOX_E_INVALID_VM_STATE">
17083 Session state prevents operation.
17084 </result>
17085 <result name="VBOX_E_INVALID_OBJECT_STATE">
17086 Session type prevents operation.
17087 </result>
17088
17089 </desc>
17090 </method>
17091
17092 <method name="onSharedFolderChange">
17093 <desc>
17094 Triggered when a permanent (global or machine) shared folder has been
17095 created or removed.
17096 <note>
17097 We don't pass shared folder parameters in this notification because
17098 the order in which parallel notifications are delivered is not defined,
17099 therefore it could happen that these parameters were outdated by the
17100 time of processing this notification.
17101 </note>
17102
17103 <result name="VBOX_E_INVALID_VM_STATE">
17104 Session state prevents operation.
17105 </result>
17106 <result name="VBOX_E_INVALID_OBJECT_STATE">
17107 Session type prevents operation.
17108 </result>
17109
17110 </desc>
17111 <param name="global" type="boolean" dir="in"/>
17112 </method>
17113
17114 <method name="onUSBDeviceAttach">
17115 <desc>
17116 Triggered when a request to capture a USB device (as a result
17117 of matched USB filters or direct call to
17118 <link to="IConsole::attachUSBDevice"/>) has completed.
17119 A @c null @a error object means success, otherwise it
17120 describes a failure.
17121
17122 <result name="VBOX_E_INVALID_VM_STATE">
17123 Session state prevents operation.
17124 </result>
17125 <result name="VBOX_E_INVALID_OBJECT_STATE">
17126 Session type prevents operation.
17127 </result>
17128
17129 </desc>
17130 <param name="device" type="IUSBDevice" dir="in"/>
17131 <param name="error" type="IVirtualBoxErrorInfo" dir="in"/>
17132 <param name="maskedInterfaces" type="unsigned long" dir="in"/>
17133 </method>
17134
17135 <method name="onUSBDeviceDetach">
17136 <desc>
17137 Triggered when a request to release the USB device (as a result
17138 of machine termination or direct call to
17139 <link to="IConsole::detachUSBDevice"/>) has completed.
17140 A @c null @a error object means success, otherwise it
17141 describes a failure.
17142
17143 <result name="VBOX_E_INVALID_VM_STATE">
17144 Session state prevents operation.
17145 </result>
17146 <result name="VBOX_E_INVALID_OBJECT_STATE">
17147 Session type prevents operation.
17148 </result>
17149
17150 </desc>
17151 <param name="id" type="uuid" mod="string" dir="in"/>
17152 <param name="error" type="IVirtualBoxErrorInfo" dir="in"/>
17153 </method>
17154
17155 <method name="onShowWindow">
17156 <desc>
17157 Called by <link to="IMachine::canShowConsoleWindow"/> and by
17158 <link to="IMachine::showConsoleWindow"/> in order to notify
17159 console listeners
17160 <link to="ICanShowWindowEvent"/>
17161 and <link to="IShowWindowEvent"/>.
17162
17163 <result name="VBOX_E_INVALID_OBJECT_STATE">
17164 Session type prevents operation.
17165 </result>
17166
17167 </desc>
17168 <param name="check" type="boolean" dir="in"/>
17169 <param name="canShow" type="boolean" dir="out"/>
17170 <param name="winId" type="long long" dir="out"/>
17171 </method>
17172
17173 <method name="onBandwidthGroupChange">
17174 <desc>
17175 Notification when one of the bandwidth groups change.
17176 </desc>
17177 <param name="bandwidthGroup" type="IBandwidthGroup" dir="in">
17178 <desc>The bandwidth group which changed.</desc>
17179 </param>
17180 </method>
17181
17182 <method name="accessGuestProperty">
17183 <desc>
17184 Called by <link to="IMachine::getGuestProperty"/> and by
17185 <link to="IMachine::setGuestProperty"/> in order to read and
17186 modify guest properties.
17187
17188 <result name="VBOX_E_INVALID_VM_STATE">
17189 Machine session is not open.
17190 </result>
17191 <result name="VBOX_E_INVALID_OBJECT_STATE">
17192 Session type is not direct.
17193 </result>
17194
17195 </desc>
17196 <param name="name" type="wstring" dir="in"/>
17197 <param name="value" type="wstring" dir="in"/>
17198 <param name="flags" type="wstring" dir="in"/>
17199 <param name="isSetter" type="boolean" dir="in"/>
17200 <param name="retValue" type="wstring" dir="out"/>
17201 <param name="retTimestamp" type="long long" dir="out"/>
17202 <param name="retFlags" type="wstring" dir="out"/>
17203 </method>
17204
17205 <method name="enumerateGuestProperties" const="yes">
17206 <desc>
17207 Return a list of the guest properties matching a set of patterns along
17208 with their values, time stamps and flags.
17209
17210 <result name="VBOX_E_INVALID_VM_STATE">
17211 Machine session is not open.
17212 </result>
17213 <result name="VBOX_E_INVALID_OBJECT_STATE">
17214 Session type is not direct.
17215 </result>
17216
17217 </desc>
17218 <param name="patterns" type="wstring" dir="in">
17219 <desc>
17220 The patterns to match the properties against as a comma-separated
17221 string. If this is empty, all properties currently set will be
17222 returned.
17223 </desc>
17224 </param>
17225 <param name="key" type="wstring" dir="out" safearray="yes">
17226 <desc>
17227 The key names of the properties returned.
17228 </desc>
17229 </param>
17230 <param name="value" type="wstring" dir="out" safearray="yes">
17231 <desc>
17232 The values of the properties returned. The array entries match the
17233 corresponding entries in the @a key array.
17234 </desc>
17235 </param>
17236 <param name="timestamp" type="long long" dir="out" safearray="yes">
17237 <desc>
17238 The time stamps of the properties returned. The array entries match
17239 the corresponding entries in the @a key array.
17240 </desc>
17241 </param>
17242 <param name="flags" type="wstring" dir="out" safearray="yes">
17243 <desc>
17244 The flags of the properties returned. The array entries match the
17245 corresponding entries in the @a key array.
17246 </desc>
17247 </param>
17248 </method>
17249
17250 <method name="onlineMergeMedium">
17251 <desc>
17252 Triggers online merging of a hard disk. Used internally when deleting
17253 a snapshot while a VM referring to the same hard disk chain is running.
17254
17255 <result name="VBOX_E_INVALID_VM_STATE">
17256 Machine session is not open.
17257 </result>
17258 <result name="VBOX_E_INVALID_OBJECT_STATE">
17259 Session type is not direct.
17260 </result>
17261
17262 </desc>
17263 <param name="mediumAttachment" type="IMediumAttachment" dir="in">
17264 <desc>The medium attachment to identify the medium chain.</desc>
17265 </param>
17266 <param name="sourceIdx" type="unsigned long" dir="in">
17267 <desc>The index of the source image in the chain.
17268 Redundant, but drastically reduces IPC.</desc>
17269 </param>
17270 <param name="targetIdx" type="unsigned long" dir="in">
17271 <desc>The index of the target image in the chain.
17272 Redundant, but drastically reduces IPC.</desc>
17273 </param>
17274 <param name="source" type="IMedium" dir="in">
17275 <desc>Merge source medium.</desc>
17276 </param>
17277 <param name="target" type="IMedium" dir="in">
17278 <desc>Merge target medium.</desc>
17279 </param>
17280 <param name="mergeForward" type="boolean" dir="in">
17281 <desc>Merge direction.</desc>
17282 </param>
17283 <param name="parentForTarget" type="IMedium" dir="in">
17284 <desc>For forward merges: new parent for target medium.</desc>
17285 </param>
17286 <param name="childrenToReparent" type="IMedium" safearray="yes" dir="in">
17287 <desc>For backward merges: list of media which need their parent UUID
17288 updated.</desc>
17289 </param>
17290 <param name="progress" type="IProgress" dir="in">
17291 <desc>
17292 Progress object for this operation.
17293 </desc>
17294 </param>
17295 </method>
17296
17297 <method name="enableVMMStatistics">
17298 <desc>
17299 Enables or disables collection of VMM RAM statistics.
17300
17301 <result name="VBOX_E_INVALID_VM_STATE">
17302 Machine session is not open.
17303 </result>
17304 <result name="VBOX_E_INVALID_OBJECT_STATE">
17305 Session type is not direct.
17306 </result>
17307
17308 </desc>
17309 <param name="enable" type="boolean" dir="in">
17310 <desc>True enables statistics collection.</desc>
17311 </param>
17312 </method>
17313
17314 </interface>
17315
17316 <interface
17317 name="ISession" extends="$unknown"
17318 uuid="12F4DCDB-12B2-4EC1-B7CD-DDD9F6C5BF4D"
17319 wsmap="managed"
17320 >
17321 <desc>
17322 The ISession interface represents a client process and allows for locking
17323 virtual machines (represented by IMachine objects) to prevent conflicting
17324 changes to the machine.
17325
17326 Any caller wishing to manipulate a virtual machine needs to create a session
17327 object first, which lives in its own process space. Such session objects are
17328 then associated with <link to="IMachine" /> objects living in the VirtualBox
17329 server process to coordinate such changes.
17330
17331 There are two typical scenarios in which sessions are used:
17332
17333 <ul>
17334 <li>To alter machine settings or control a running virtual machine, one
17335 needs to lock a machine for a given session (client process) by calling
17336 <link to="IMachine::lockMachine"/>.
17337
17338 Whereas multiple sessions may control a running virtual machine, only
17339 one process can obtain a write lock on the machine to prevent conflicting
17340 changes. A write lock is also needed if a process wants to actually run a
17341 virtual machine in its own context, such as the VirtualBox GUI or
17342 VBoxHeadless front-ends. They must also lock a machine for their own
17343 sessions before they are allowed to power up the virtual machine.
17344
17345 As a result, no machine settings can be altered while another process is
17346 already using it, either because that process is modifying machine settings
17347 or because the machine is running.
17348 </li>
17349 <li>
17350 To start a VM using one of the existing VirtualBox front-ends (e.g. the
17351 VirtualBox GUI or VBoxHeadless), one would use
17352 <link to="IMachine::launchVMProcess"/>, which also takes a session object
17353 as its first parameter. This session then identifies the caller and lets the
17354 caller control the started machine (for example, pause machine execution or
17355 power it down) as well as be notified about machine execution state changes.
17356 </li>
17357 </ul>
17358
17359 How sessions objects are created in a client process depends on whether you use
17360 the Main API via COM or via the webservice:
17361
17362 <ul>
17363 <li>When using the COM API directly, an object of the Session class from the
17364 VirtualBox type library needs to be created. In regular COM C++ client code,
17365 this can be done by calling <tt>createLocalObject()</tt>, a standard COM API.
17366 This object will then act as a local session object in further calls to open
17367 a session.
17368 </li>
17369
17370 <li>In the webservice, the session manager (IWebsessionManager) instead creates
17371 a session object automatically whenever <link to="IWebsessionManager::logon" />
17372 is called. A managed object reference to that session object can be retrieved by
17373 calling <link to="IWebsessionManager::getSessionObject" />.
17374 </li>
17375 </ul>
17376 </desc>
17377
17378 <attribute name="state" type="SessionState" readonly="yes">
17379 <desc>Current state of this session.</desc>
17380 </attribute>
17381
17382 <attribute name="type" type="SessionType" readonly="yes">
17383 <desc>
17384 Type of this session. The value of this attribute is valid only
17385 if the session currently has a machine locked (i.e. its
17386 <link to="#state" /> is Locked), otherwise an error will be returned.
17387 </desc>
17388 </attribute>
17389
17390 <attribute name="machine" type="IMachine" readonly="yes">
17391 <desc>Machine object associated with this session.</desc>
17392 </attribute>
17393
17394 <attribute name="console" type="IConsole" readonly="yes">
17395 <desc>Console object associated with this session.</desc>
17396 </attribute>
17397
17398 <method name="unlockMachine">
17399 <desc>
17400 Unlocks a machine that was previously locked for the current session.
17401
17402 Calling this method is required every time a machine has been locked
17403 for a particular session using the <link to="IMachine::launchVMProcess" />
17404 or <link to="IMachine::lockMachine" /> calls. Otherwise the state of
17405 the machine will be set to <link to="MachineState_Aborted" /> on the
17406 server, and changes made to the machine settings will be lost.
17407
17408 Generally, it is recommended to unlock all machines explicitly
17409 before terminating the application (regardless of the reason for
17410 the termination).
17411
17412 <note>
17413 Do not expect the session state (<link to="ISession::state" />
17414 to return to "Unlocked" immediately after you invoke this method,
17415 particularly if you have started a new VM process. The session
17416 state will automatically return to "Unlocked" once the VM is no
17417 longer executing, which can of course take a very long time.
17418 </note>
17419
17420 <result name="E_UNEXPECTED">
17421 Session is not locked.
17422 </result>
17423
17424 </desc>
17425 </method>
17426
17427 </interface>
17428
17429 <!--
17430 // IStorageController
17431 /////////////////////////////////////////////////////////////////////////
17432 -->
17433
17434 <enum
17435 name="StorageBus"
17436 uuid="eee67ab3-668d-4ef5-91e0-7025fe4a0d7a"
17437 >
17438 <desc>
17439 The bus type of the storage controller (IDE, SATA, SCSI, SAS or Floppy);
17440 see <link to="IStorageController::bus" />.
17441 </desc>
17442 <const name="Null" value="0">
17443 <desc>@c null value. Never used by the API.</desc>
17444 </const>
17445 <const name="IDE" value="1"/>
17446 <const name="SATA" value="2"/>
17447 <const name="SCSI" value="3"/>
17448 <const name="Floppy" value="4"/>
17449 <const name="SAS" value="5"/>
17450 </enum>
17451
17452 <enum
17453 name="StorageControllerType"
17454 uuid="8a412b8a-f43e-4456-bd37-b474f0879a58"
17455 >
17456 <desc>
17457 The exact variant of storage controller hardware presented
17458 to the guest; see <link to="IStorageController::controllerType" />.
17459 </desc>
17460
17461 <const name="Null" value="0">
17462 <desc>@c null value. Never used by the API.</desc>
17463 </const>
17464 <const name="LsiLogic" value="1">
17465 <desc>A SCSI controller of the LsiLogic variant.</desc>
17466 </const>
17467 <const name="BusLogic" value="2">
17468 <desc>A SCSI controller of the BusLogic variant.</desc>
17469 </const>
17470 <const name="IntelAhci" value="3">
17471 <desc>An Intel AHCI SATA controller; this is the only variant for SATA.</desc>
17472 </const>
17473 <const name="PIIX3" value="4">
17474 <desc>An IDE controller of the PIIX3 variant.</desc>
17475 </const>
17476 <const name="PIIX4" value="5">
17477 <desc>An IDE controller of the PIIX4 variant.</desc>
17478 </const>
17479 <const name="ICH6" value="6">
17480 <desc>An IDE controller of the ICH6 variant.</desc>
17481 </const>
17482 <const name="I82078" value="7">
17483 <desc>A floppy disk controller; this is the only variant for floppy drives.</desc>
17484 </const>
17485 <const name="LsiLogicSas" value="8">
17486 <desc>A variant of the LsiLogic controller using SAS.</desc>
17487 </const>
17488 </enum>
17489
17490 <enum
17491 name="ChipsetType"
17492 uuid="8b4096a8-a7c3-4d3b-bbb1-05a0a51ec394"
17493 >
17494 <desc>
17495 Type of emulated chipset (mostly southbridge).
17496 </desc>
17497
17498 <const name="Null" value="0">
17499 <desc>@c null value. Never used by the API.</desc>
17500 </const>
17501 <const name="PIIX3" value="1">
17502 <desc>A PIIX3 (PCI IDE ISA Xcelerator) chipset.</desc>
17503 </const>
17504 <const name="ICH9" value="2">
17505 <desc>A ICH9 (I/O Controller Hub) chipset.</desc>
17506 </const>
17507 </enum>
17508
17509 <interface
17510 name="IStorageController" extends="$unknown"
17511 uuid="a1556333-09b6-46d9-bfb7-fc239b7fbe1e"
17512 wsmap="managed"
17513 >
17514 <desc>
17515 Represents a storage controller that is attached to a virtual machine
17516 (<link to="IMachine" />). Just as drives (hard disks, DVDs, FDs) are
17517 attached to storage controllers in a real computer, virtual drives
17518 (represented by <link to="IMediumAttachment" />) are attached to virtual
17519 storage controllers, represented by this interface.
17520
17521 As opposed to physical hardware, VirtualBox has a very generic concept
17522 of a storage controller, and for purposes of the Main API, all virtual
17523 storage is attached to virtual machines via instances of this interface.
17524 There are five types of such virtual storage controllers: IDE, SCSI, SATA,
17525 SAS and Floppy (see <link to="#bus" />). Depending on which of these four
17526 is used, certain sub-types may be available and can be selected in
17527 <link to="#controllerType" />.
17528
17529 Depending on these settings, the guest operating system might see
17530 significantly different virtual hardware.
17531 </desc>
17532
17533 <attribute name="name" type="wstring" readonly="yes">
17534 <desc>
17535 Name of the storage controller, as originally specified with
17536 <link to="IMachine::addStorageController" />. This then uniquely
17537 identifies this controller with other method calls such as
17538 <link to="IMachine::attachDevice" /> and <link to="IMachine::mountMedium" />.
17539 </desc>
17540 </attribute>
17541
17542 <attribute name="maxDevicesPerPortCount" type="unsigned long" readonly="yes">
17543 <desc>
17544 Maximum number of devices which can be attached to one port.
17545 </desc>
17546 </attribute>
17547
17548 <attribute name="minPortCount" type="unsigned long" readonly="yes">
17549 <desc>
17550 Minimum number of ports that <link to="IStorageController::portCount"/> can be set to.
17551 </desc>
17552 </attribute>
17553
17554 <attribute name="maxPortCount" type="unsigned long" readonly="yes">
17555 <desc>
17556 Maximum number of ports that <link to="IStorageController::portCount"/> can be set to.
17557 </desc>
17558 </attribute>
17559
17560 <attribute name="instance" type="unsigned long">
17561 <desc>
17562 The instance number of the device in the running VM.
17563 </desc>
17564 </attribute>
17565
17566 <attribute name="portCount" type="unsigned long">
17567 <desc>
17568 The number of currently usable ports on the controller.
17569 The minimum and maximum number of ports for one controller are
17570 stored in <link to="IStorageController::minPortCount"/>
17571 and <link to="IStorageController::maxPortCount"/>.
17572 </desc>
17573 </attribute>
17574
17575 <attribute name="bus" type="StorageBus" readonly="yes">
17576 <desc>
17577 The bus type of the storage controller (IDE, SATA, SCSI, SAS or Floppy).
17578 </desc>
17579 </attribute>
17580
17581 <attribute name="controllerType" type="StorageControllerType">
17582 <desc>
17583 The exact variant of storage controller hardware presented
17584 to the guest.
17585 Depending on this value, VirtualBox will provide a different
17586 virtual storage controller hardware to the guest.
17587 For SATA, SAS and floppy controllers, only one variant is
17588 available, but for IDE and SCSI, there are several.
17589
17590 For SCSI controllers, the default type is LsiLogic.
17591 </desc>
17592 </attribute>
17593
17594 <attribute name="useHostIOCache" type="boolean">
17595 <desc>
17596 If true, the storage controller emulation will use a dedicated I/O thread, enable the host I/O
17597 caches and use synchronous file APIs on the host. This was the only option in the API before
17598 VirtualBox 3.2 and is still the default for IDE controllers.
17599
17600 If false, the host I/O cache will be disabled for image files attached to this storage controller.
17601 Instead, the storage controller emulation will use asynchronous I/O APIs on the host. This makes
17602 it possible to turn off the host I/O caches because the emulation can handle unaligned access to
17603 the file. This should be used on OS X and Linux hosts if a high I/O load is expected or many
17604 virtual machines are running at the same time to prevent I/O cache related hangs.
17605 This option new with the API of VirtualBox 3.2 and is now the default for non-IDE storage controllers.
17606 </desc>
17607 </attribute>
17608
17609 <attribute name="bootable" type="boolean" readonly="yes">
17610 <desc>
17611 Returns whether it is possible to boot from disks attached to this controller.
17612 </desc>
17613 </attribute>
17614
17615 <method name="getIDEEmulationPort">
17616 <desc>
17617 Gets the corresponding port number which is emulated as an IDE device.
17618 Works only with SATA controllers.
17619
17620 <result name="E_INVALIDARG">
17621 The @a devicePosition is not in the range 0 to 3.
17622 </result>
17623 <result name="E_NOTIMPL">
17624 The storage controller type is not SATAIntelAhci.
17625 </result>
17626
17627 </desc>
17628 <param name="devicePosition" type="long" dir="in"/>
17629 <param name="portNumber" type="long" dir="return"/>
17630 </method>
17631
17632 <method name="setIDEEmulationPort">
17633 <desc>
17634 Sets the port number which is emulated as an IDE device.
17635 Works only with SATA controllers.
17636
17637 <result name="E_INVALIDARG">
17638 The @a devicePosition is not in the range 0 to 3 or the
17639 @a portNumber is not in the range 0 to 29.
17640 </result>
17641 <result name="E_NOTIMPL">
17642 The storage controller type is not SATAIntelAhci.
17643 </result>
17644
17645 </desc>
17646 <param name="devicePosition" type="long" dir="in"/>
17647 <param name="portNumber" type="long" dir="in"/>
17648 </method>
17649
17650 </interface>
17651
17652<if target="wsdl">
17653
17654 <!--
17655 // IManagedObjectRef
17656 /////////////////////////////////////////////////////////////////////////
17657 -->
17658
17659 <interface
17660 name="IManagedObjectRef" extends="$unknown"
17661 uuid="9474d09d-2313-46de-b568-a42b8718e8ed"
17662 internal="yes"
17663 wsmap="managed"
17664 wscpp="hardcoded"
17665 >
17666 <desc>
17667 Managed object reference.
17668
17669 Only within the webservice, a managed object reference (which is really
17670 an opaque number) allows a webservice client to address an object
17671 that lives in the address space of the webservice server.
17672
17673 Behind each managed object reference, there is a COM object that lives
17674 in the webservice server's address space. The COM object is not freed
17675 until the managed object reference is released, either by an explicit
17676 call to <link to="IManagedObjectRef::release" /> or by logging off from
17677 the webservice (<link to="IWebsessionManager::logoff" />), which releases
17678 all objects created during the webservice session.
17679
17680 Whenever a method call of the VirtualBox API returns a COM object, the
17681 webservice representation of that method will instead return a
17682 managed object reference, which can then be used to invoke methods
17683 on that object.
17684 </desc>
17685
17686 <method name="getInterfaceName">
17687 <desc>
17688 Returns the name of the interface that this managed object represents,
17689 for example, "IMachine", as a string.
17690 </desc>
17691 <param name="return" type="wstring" dir="return"/>
17692 </method>
17693
17694 <method name="release">
17695 <desc>
17696 Releases this managed object reference and frees the resources that
17697 were allocated for it in the webservice server process. After calling
17698 this method, the identifier of the reference can no longer be used.
17699 </desc>
17700 </method>
17701
17702 </interface>
17703
17704 <!--
17705 // IWebsessionManager
17706 /////////////////////////////////////////////////////////////////////////
17707 -->
17708
17709 <interface
17710 name="IWebsessionManager" extends="$unknown"
17711 uuid="dea1b4c7-2de3-418a-850d-7868617f7733"
17712 internal="yes"
17713 wsmap="global"
17714 wscpp="hardcoded"
17715 >
17716 <desc>
17717 Websession manager. This provides essential services
17718 to webservice clients.
17719 </desc>
17720 <method name="logon">
17721 <desc>
17722 Logs a new client onto the webservice and returns a managed object reference to
17723 the IVirtualBox instance, which the client can then use as a basis to further
17724 queries, since all calls to the VirtualBox API are based on the IVirtualBox
17725 interface, in one way or the other.
17726 </desc>
17727 <param name="username" type="wstring" dir="in"/>
17728 <param name="password" type="wstring" dir="in"/>
17729 <param name="return" type="IVirtualBox" dir="return"/>
17730 </method>
17731
17732 <method name="getSessionObject">
17733 <desc>
17734 Returns a managed object reference to the internal ISession object that was created
17735 for this web service session when the client logged on.
17736
17737 <see><link to="ISession"/></see>
17738 </desc>
17739 <param name="refIVirtualBox" type="IVirtualBox" dir="in"/>
17740 <param name="return" type="ISession" dir="return"/>
17741 </method>
17742
17743 <method name="logoff">
17744 <desc>
17745 Logs off the client who has previously logged on with <link to="IWebsessionManager::logon" />
17746 and destroys all resources associated with the session (most importantly, all
17747 managed objects created in the server while the session was active).
17748 </desc>
17749 <param name="refIVirtualBox" type="IVirtualBox" dir="in"/>
17750 </method>
17751
17752 </interface>
17753
17754</if>
17755
17756 <!--
17757 // IPerformanceCollector & friends
17758 /////////////////////////////////////////////////////////////////////////
17759 -->
17760
17761 <interface
17762 name="IPerformanceMetric" extends="$unknown"
17763 uuid="2a1a60ae-9345-4019-ad53-d34ba41cbfe9" wsmap="managed"
17764 >
17765 <desc>
17766 The IPerformanceMetric interface represents parameters of the given
17767 performance metric.
17768 </desc>
17769
17770 <attribute name="metricName" type="wstring" readonly="yes">
17771 <desc>
17772 Name of the metric.
17773 </desc>
17774 </attribute>
17775
17776 <attribute name="object" type="$unknown" readonly="yes">
17777 <desc>
17778 Object this metric belongs to.
17779 </desc>
17780 </attribute>
17781
17782 <attribute name="description" type="wstring" readonly="yes">
17783 <desc>
17784 Textual description of the metric.
17785 </desc>
17786 </attribute>
17787
17788 <attribute name="period" type="unsigned long" readonly="yes">
17789 <desc>
17790 Time interval between samples, measured in seconds.
17791 </desc>
17792 </attribute>
17793
17794 <attribute name="count" type="unsigned long" readonly="yes">
17795 <desc>
17796 Number of recent samples retained by the performance collector for this
17797 metric.
17798
17799 When the collected sample count exceeds this number, older samples
17800 are discarded.
17801 </desc>
17802 </attribute>
17803
17804 <attribute name="unit" type="wstring" readonly="yes">
17805 <desc>
17806 Unit of measurement.
17807 </desc>
17808 </attribute>
17809
17810 <attribute name="minimumValue" type="long" readonly="yes">
17811 <desc>
17812 Minimum possible value of this metric.
17813 </desc>
17814 </attribute>
17815
17816 <attribute name="maximumValue" type="long" readonly="yes">
17817 <desc>
17818 Maximum possible value of this metric.
17819 </desc>
17820 </attribute>
17821 </interface>
17822
17823 <interface
17824 name="IPerformanceCollector" extends="$unknown"
17825 uuid="e22e1acb-ac4a-43bb-a31c-17321659b0c6"
17826 wsmap="managed"
17827 >
17828 <desc>
17829 The IPerformanceCollector interface represents a service that collects
17830 and stores performance metrics data.
17831
17832 Performance metrics are associated with objects of interfaces like IHost
17833 and IMachine. Each object has a distinct set of performance metrics. The
17834 set can be obtained with <link to="IPerformanceCollector::getMetrics"/>.
17835
17836 Metric data is collected at the specified intervals and is retained
17837 internally. The interval and the number of retained samples can be set
17838 with <link to="IPerformanceCollector::setupMetrics" />. Both metric data
17839 and collection settings are not persistent, they are discarded as soon as
17840 VBoxSVC process terminates. Moreover, metric settings and data associated
17841 with a particular VM only exist while VM is running. They disappear as
17842 soon as VM shuts down. It is not possible to set up metrics for machines
17843 that are powered off. One needs to start VM first, then set up metric
17844 collection parameters.
17845
17846 Metrics are organized hierarchically, with each level separated by a
17847 slash (/) character. Generally, the scheme for metric names is like this:
17848
17849 <tt>Category/Metric[/SubMetric][:aggregation]</tt>
17850
17851 "Category/Metric" together form the base metric name. A base metric is
17852 the smallest unit for which a sampling interval and the number of
17853 retained samples can be set. Only base metrics can be enabled and
17854 disabled. All sub-metrics are collected when their base metric is
17855 collected. Collected values for any set of sub-metrics can be queried
17856 with <link to="IPerformanceCollector::queryMetricsData" />.
17857
17858 For example "CPU/Load/User:avg" metric name stands for the "CPU"
17859 category, "Load" metric, "User" submetric, "average" aggregate. An
17860 aggregate function is computed over all retained data. Valid aggregate
17861 functions are:
17862
17863 <ul>
17864 <li>avg -- average</li>
17865 <li>min -- minimum</li>
17866 <li>max -- maximum</li>
17867 </ul>
17868
17869 When setting up metric parameters, querying metric data, enabling or
17870 disabling metrics wildcards can be used in metric names to specify a
17871 subset of metrics. For example, to select all CPU-related metrics
17872 use <tt>CPU/*</tt>, all averages can be queried using <tt>*:avg</tt> and
17873 so on. To query metric values without aggregates <tt>*:</tt> can be used.
17874
17875 The valid names for base metrics are:
17876
17877 <ul>
17878 <li>CPU/Load</li>
17879 <li>CPU/MHz</li>
17880 <li>RAM/Usage</li>
17881 <li>RAM/VMM</li>
17882 </ul>
17883
17884 The general sequence for collecting and retrieving the metrics is:
17885 <ul>
17886 <li>
17887 Obtain an instance of IPerformanceCollector with
17888 <link to="IVirtualBox::performanceCollector" />
17889 </li>
17890 <li>
17891 Allocate and populate an array with references to objects the metrics
17892 will be collected for. Use references to IHost and IMachine objects.
17893 </li>
17894 <li>
17895 Allocate and populate an array with base metric names the data will
17896 be collected for.
17897 </li>
17898 <li>
17899 Call <link to="IPerformanceCollector::setupMetrics" />. From now on
17900 the metric data will be collected and stored.
17901 </li>
17902 <li>
17903 Wait for the data to get collected.
17904 </li>
17905 <li>
17906 Allocate and populate an array with references to objects the metric
17907 values will be queried for. You can re-use the object array used for
17908 setting base metrics.
17909 </li>
17910 <li>
17911 Allocate and populate an array with metric names the data will be
17912 collected for. Note that metric names differ from base metric names.
17913 </li>
17914 <li>
17915 Call <link to="IPerformanceCollector::queryMetricsData" />. The data
17916 that have been collected so far are returned. Note that the values
17917 are still retained internally and data collection continues.
17918 </li>
17919 </ul>
17920
17921 For an example of usage refer to the following files in VirtualBox SDK:
17922 <ul>
17923 <li>
17924 Java: <tt>bindings/webservice/java/jax-ws/samples/metrictest.java</tt>
17925 </li>
17926 <li>
17927 Python: <tt>bindings/xpcom/python/sample/shellcommon.py</tt>
17928 </li>
17929 </ul>
17930 </desc>
17931
17932 <attribute name="metricNames" type="wstring" readonly="yes" safearray="yes">
17933 <desc>
17934 Array of unique names of metrics.
17935
17936 This array represents all metrics supported by the performance
17937 collector. Individual objects do not necessarily support all of them.
17938 <link to="IPerformanceCollector::getMetrics"/> can be used to get the
17939 list of supported metrics for a particular object.
17940 </desc>
17941 </attribute>
17942
17943 <method name="getMetrics">
17944 <desc>
17945 Returns parameters of specified metrics for a set of objects.
17946 <note>
17947 @c Null metrics array means all metrics. @c Null object array means
17948 all existing objects.
17949 </note>
17950 </desc>
17951 <param name="metricNames" type="wstring" dir="in" safearray="yes">
17952 <desc>
17953 Metric name filter. Currently, only a comma-separated list of metrics
17954 is supported.
17955 </desc>
17956 </param>
17957 <param name="objects" type="$unknown" dir="in" safearray="yes">
17958 <desc>
17959 Set of objects to return metric parameters for.
17960 </desc>
17961 </param>
17962 <param name="metrics" type="IPerformanceMetric" dir="return" safearray="yes">
17963 <desc>
17964 Array of returned metric parameters.
17965 </desc>
17966 </param>
17967 </method>
17968
17969 <method name="setupMetrics">
17970 <desc>
17971 Sets parameters of specified base metrics for a set of objects. Returns
17972 an array of <link to="IPerformanceMetric" /> describing the metrics
17973 have been affected.
17974 <note>
17975 @c Null or empty metric name array means all metrics. @c Null or
17976 empty object array means all existing objects. If metric name array
17977 contains a single element and object array contains many, the single
17978 metric name array element is applied to each object array element to
17979 form metric/object pairs.
17980 </note>
17981 </desc>
17982 <param name="metricNames" type="wstring" dir="in" safearray="yes">
17983 <desc>
17984 Metric name filter. Comma-separated list of metrics with wildcard
17985 support.
17986 </desc>
17987 </param>
17988 <param name="objects" type="$unknown" dir="in" safearray="yes">
17989 <desc>
17990 Set of objects to setup metric parameters for.
17991 </desc>
17992 </param>
17993 <param name="period" type="unsigned long" dir="in">
17994 <desc>
17995 Time interval in seconds between two consecutive samples of
17996 performance data.
17997 </desc>
17998 </param>
17999 <param name="count" type="unsigned long" dir="in">
18000 <desc>
18001 Number of samples to retain in performance data history. Older
18002 samples get discarded.
18003 </desc>
18004 </param>
18005 <param name="affectedMetrics" type="IPerformanceMetric" dir="return" safearray="yes">
18006 <desc>
18007 Array of metrics that have been modified by the call to this method.
18008 </desc>
18009 </param>
18010 </method>
18011
18012 <method name="enableMetrics">
18013 <desc>
18014 Turns on collecting specified base metrics. Returns an array of
18015 <link to="IPerformanceMetric" /> describing the metrics have been
18016 affected.
18017 <note>
18018 @c Null or empty metric name array means all metrics. @c Null or
18019 empty object array means all existing objects. If metric name array
18020 contains a single element and object array contains many, the single
18021 metric name array element is applied to each object array element to
18022 form metric/object pairs.
18023 </note>
18024 </desc>
18025 <param name="metricNames" type="wstring" dir="in" safearray="yes">
18026 <desc>
18027 Metric name filter. Comma-separated list of metrics with wildcard
18028 support.
18029 </desc>
18030 </param>
18031 <param name="objects" type="$unknown" dir="in" safearray="yes">
18032 <desc>
18033 Set of objects to enable metrics for.
18034 </desc>
18035 </param>
18036 <param name="affectedMetrics" type="IPerformanceMetric" dir="return" safearray="yes">
18037 <desc>
18038 Array of metrics that have been modified by the call to this method.
18039 </desc>
18040 </param>
18041 </method>
18042
18043 <method name="disableMetrics">
18044 <desc>
18045 Turns off collecting specified base metrics. Returns an array of
18046 <link to="IPerformanceMetric" /> describing the metrics have been
18047 affected.
18048 <note>
18049 @c Null or empty metric name array means all metrics. @c Null or
18050 empty object array means all existing objects. If metric name array
18051 contains a single element and object array contains many, the single
18052 metric name array element is applied to each object array element to
18053 form metric/object pairs.
18054 </note>
18055 </desc>
18056 <param name="metricNames" type="wstring" dir="in" safearray="yes">
18057 <desc>
18058 Metric name filter. Comma-separated list of metrics with wildcard
18059 support.
18060 </desc>
18061 </param>
18062 <param name="objects" type="$unknown" dir="in" safearray="yes">
18063 <desc>
18064 Set of objects to disable metrics for.
18065 </desc>
18066 </param>
18067 <param name="affectedMetrics" type="IPerformanceMetric" dir="return" safearray="yes">
18068 <desc>
18069 Array of metrics that have been modified by the call to this method.
18070 </desc>
18071 </param>
18072 </method>
18073
18074 <method name="queryMetricsData">
18075 <desc>
18076 Queries collected metrics data for a set of objects.
18077
18078 The data itself and related metric information are returned in seven
18079 parallel and one flattened array of arrays. Elements of
18080 <tt>returnMetricNames, returnObjects, returnUnits, returnScales,
18081 returnSequenceNumbers, returnDataIndices and returnDataLengths</tt> with
18082 the same index describe one set of values corresponding to a single
18083 metric.
18084
18085 The <tt>returnData</tt> parameter is a flattened array of arrays. Each
18086 start and length of a sub-array is indicated by
18087 <tt>returnDataIndices</tt> and <tt>returnDataLengths</tt>. The first
18088 value for metric <tt>metricNames[i]</tt> is at
18089 <tt>returnData[returnIndices[i]]</tt>.
18090
18091 <note>
18092 @c Null or empty metric name array means all metrics. @c Null or
18093 empty object array means all existing objects. If metric name array
18094 contains a single element and object array contains many, the single
18095 metric name array element is applied to each object array element to
18096 form metric/object pairs.
18097 </note>
18098 <note>
18099 Data collection continues behind the scenes after call to @c
18100 queryMetricsData. The return data can be seen as the snapshot of the
18101 current state at the time of @c queryMetricsData call. The internally
18102 kept metric values are not cleared by the call. This makes possible
18103 querying different subsets of metrics or aggregates with subsequent
18104 calls. If periodic querying is needed it is highly suggested to query
18105 the values with @c interval*count period to avoid confusion. This way
18106 a completely new set of data values will be provided by each query.
18107 </note>
18108 </desc>
18109 <param name="metricNames" type="wstring" dir="in" safearray="yes">
18110 <desc>
18111 Metric name filter. Comma-separated list of metrics with wildcard
18112 support.
18113 </desc>
18114 </param>
18115 <param name="objects" type="$unknown" dir="in" safearray="yes">
18116 <desc>
18117 Set of objects to query metrics for.
18118 </desc>
18119 </param>
18120 <param name="returnMetricNames" type="wstring" dir="out" safearray="yes">
18121 <desc>
18122 Names of metrics returned in @c returnData.
18123 </desc>
18124 </param>
18125 <param name="returnObjects" type="$unknown" dir="out" safearray="yes">
18126 <desc>
18127 Objects associated with metrics returned in @c returnData.
18128 </desc>
18129 </param>
18130 <param name="returnUnits" type="wstring" dir="out" safearray="yes">
18131 <desc>
18132 Units of measurement for each returned metric.
18133 </desc>
18134 </param>
18135 <param name="returnScales" type="unsigned long" dir="out" safearray="yes">
18136 <desc>
18137 Divisor that should be applied to return values in order to get
18138 floating point values. For example:
18139 <tt>(double)returnData[returnDataIndices[0]+i] / returnScales[0]</tt>
18140 will retrieve the floating point value of i-th sample of the first
18141 metric.
18142 </desc>
18143 </param>
18144 <param name="returnSequenceNumbers" type="unsigned long" dir="out" safearray="yes">
18145 <desc>
18146 Sequence numbers of the first elements of value sequences of
18147 particular metrics returned in @c returnData. For aggregate metrics
18148 it is the sequence number of the sample the aggregate started
18149 calculation from.
18150 </desc>
18151 </param>
18152 <param name="returnDataIndices" type="unsigned long" dir="out" safearray="yes">
18153 <desc>
18154 Indices of the first elements of value sequences of particular
18155 metrics returned in @c returnData.
18156 </desc>
18157 </param>
18158 <param name="returnDataLengths" type="unsigned long" dir="out" safearray="yes">
18159 <desc>
18160 Lengths of value sequences of particular metrics.
18161 </desc>
18162 </param>
18163 <param name="returnData" type="long" dir="return" safearray="yes">
18164 <desc>
18165 Flattened array of all metric data containing sequences of values for
18166 each metric.
18167 </desc>
18168 </param>
18169 </method>
18170
18171 </interface>
18172
18173 <enum
18174 name="NATAliasMode"
18175 uuid="67772168-50d9-11df-9669-7fb714ee4fa1"
18176 >
18177 <desc></desc>
18178 <const name="AliasLog" value="0x1">
18179 <desc></desc>
18180 </const>
18181 <const name="AliasProxyOnly" value="0x02">
18182 <desc></desc>
18183 </const>
18184 <const name="AliasUseSamePorts" value="0x04">
18185 <desc></desc>
18186 </const>
18187 </enum>
18188
18189 <enum
18190 name="NATProtocol"
18191 uuid="e90164be-eb03-11de-94af-fff9b1c1b19f"
18192 >
18193 <desc>Protocol definitions used with NAT port-forwarding rules.</desc>
18194 <const name="UDP" value="0">
18195 <desc>Port-forwarding uses UDP protocol.</desc>
18196 </const>
18197 <const name="TCP" value="1">
18198 <desc>Port-forwarding uses TCP protocol.</desc>
18199 </const>
18200 </enum>
18201
18202 <interface
18203 name="INATEngine" extends="$unknown"
18204 uuid="26451b99-3b2d-4dcb-8e4b-d63654218175"
18205 wsmap="managed"
18206 >
18207 <desc>Interface for managing a NAT engine which is used with a virtual machine. This
18208 allows for changing NAT behavior such as port-forwarding rules. This interface is
18209 used in the <link to="INetworkAdapter::NATEngine" /> attribute.</desc>
18210 <attribute name="network" type="wstring">
18211 <desc>The network attribute of the NAT engine (the same value is used with built-in
18212 DHCP server to fill corresponding fields of DHCP leases).</desc>
18213 </attribute>
18214 <attribute name="hostIP" type="wstring">
18215 <desc>IP of host interface to bind all opened sockets to.
18216 <note>Changing this does not change binding of port forwarding.</note>
18217 </desc>
18218 </attribute>
18219 <attribute name="TFTPPrefix" type="wstring">
18220 <desc>TFTP prefix attribute which is used with the built-in DHCP server to fill
18221 the corresponding fields of DHCP leases.</desc>
18222 </attribute>
18223 <attribute name="TFTPBootFile" type="wstring">
18224 <desc>TFTP boot file attribute which is used with the built-in DHCP server to fill
18225 the corresponding fields of DHCP leases.</desc>
18226 </attribute>
18227 <attribute name="TFTPNextServer" type="wstring">
18228 <desc>TFTP server attribute which is used with the built-in DHCP server to fill
18229 the corresponding fields of DHCP leases.
18230 <note>The preferred form is IPv4 addresses.</note>
18231 </desc>
18232 </attribute>
18233 <attribute name="aliasMode" type="unsigned long">
18234 <desc></desc>
18235 </attribute>
18236 <attribute name="DNSPassDomain" type="boolean">
18237 <desc>Whether the DHCP server should pass the DNS domain used by the host.</desc>
18238 </attribute>
18239 <attribute name="DNSProxy" type="boolean">
18240 <desc>Whether the DHCP server (and the DNS traffic by NAT) should pass the address
18241 of the DNS proxy and process traffic using DNS servers registered on the host.</desc>
18242 </attribute>
18243 <attribute name="DNSUseHostResolver" type="boolean">
18244 <desc>Whether the DHCP server (and the DNS traffic by NAT) should pass the address
18245 of the DNS proxy and process traffic using the host resolver mechanism.</desc>
18246 </attribute>
18247 <attribute name="redirects" type="wstring" readonly="yes" safearray="yes">
18248 <desc>Array of NAT port-forwarding rules in string representation, in the following
18249 format: "name,protocol id,host ip,host port,guest ip,guest port".</desc>
18250 </attribute>
18251 <method name="setNetworkSettings">
18252 <desc>Sets network configuration of the NAT engine.</desc>
18253 <param name="mtu" type="unsigned long" dir="in">
18254 <desc>MTU (maximum transmission unit) of the NAT engine in bytes.</desc>
18255 </param>
18256 <param name="sockSnd" type="unsigned long" dir="in">
18257 <desc>Capacity of the socket send buffer in bytes when creating a new socket.</desc>
18258 </param>
18259 <param name="sockRcv" type="unsigned long" dir="in">
18260 <desc>Capacity of the socket receive buffer in bytes when creating a new socket.</desc>
18261 </param>
18262 <param name="TcpWndSnd" type="unsigned long" dir="in">
18263 <desc>Initial size of the NAT engine's sending TCP window in bytes when
18264 establishing a new TCP connection.</desc>
18265 </param>
18266 <param name="TcpWndRcv" type="unsigned long" dir="in">
18267 <desc>Initial size of the NAT engine's receiving TCP window in bytes when
18268 establishing a new TCP connection.</desc>
18269 </param>
18270 </method>
18271 <method name="getNetworkSettings">
18272 <desc>Returns network configuration of NAT engine. See <link to="#setNetworkSettings" />
18273 for parameter descriptions.</desc>
18274 <param name="mtu" type="unsigned long" dir="out" />
18275 <param name="sockSnd" type="unsigned long" dir="out" />
18276 <param name="sockRcv" type="unsigned long" dir="out" />
18277 <param name="TcpWndSnd" type="unsigned long" dir="out" />
18278 <param name="TcpWndRcv" type="unsigned long" dir="out" />
18279 </method>
18280 <method name="addRedirect">
18281 <desc>Adds a new NAT port-forwarding rule.</desc>
18282 <param name="name" type="wstring" dir="in">
18283 <desc>The name of the rule. An empty name is acceptable, in which case the NAT engine
18284 auto-generates one using the other parameters.</desc>
18285 </param>
18286 <param name="proto" type="NATProtocol" dir="in">
18287 <desc>Protocol handled with the rule.</desc>
18288 </param>
18289 <param name="hostIP" type="wstring" dir="in">
18290 <desc>IP of the host interface to which the rule should apply. An empty ip address is
18291 acceptable, in which case the NAT engine binds the handling socket to any interface.</desc>
18292 </param>
18293 <param name="hostPort" type="unsigned short" dir="in">
18294 <desc>The port number to listen on.</desc>
18295 </param>
18296 <param name="guestIP" type="wstring" dir="in">
18297 <desc>The IP address of the guest which the NAT engine will forward matching packets
18298 to. An empty IP address is acceptable, in which case the NAT engine will forward
18299 packets to the first DHCP lease (x.x.x.15).</desc>
18300 </param>
18301 <param name="guestPort" type="unsigned short" dir="in">
18302 <desc>The port number to forward.</desc>
18303 </param>
18304 </method>
18305 <method name="removeRedirect">
18306 <desc>Removes a port-forwarding rule that was previously registered.</desc>
18307 <param name="name" type="wstring" dir="in">
18308 <desc>The name of the rule to delete.</desc>
18309 </param>
18310 </method>
18311 </interface>
18312
18313 <!--
18314 // IExtPackManager
18315 /////////////////////////////////////////////////////////////////////////
18316 -->
18317
18318 <interface
18319 name="IExtPackPlugIn" extends="$unknown"
18320 uuid="58000040-e718-4746-bbce-4b86d96da461"
18321 wsmap="suppress"
18322 >
18323 <desc>
18324 Interface for keeping information about a plug-in that ships with an
18325 extension pack.
18326 </desc>
18327 <attribute name="name" type="wstring" readonly="yes">
18328 <desc>The plug-in name.</desc>
18329 </attribute>
18330 <attribute name="description" type="wstring" readonly="yes">
18331 <desc>The plug-in description.</desc>
18332 </attribute>
18333 <attribute name="frontend" type="wstring" readonly="yes">
18334 <desc>
18335 The name of the frontend or component name this plug-in plugs into.
18336 </desc>
18337 </attribute>
18338 <attribute name="modulePath" type="wstring" readonly="yes">
18339 <desc> The module path. </desc>
18340 </attribute>
18341 </interface>
18342
18343 <interface
18344 name="IExtPackBase" extends="$unknown"
18345 uuid="f79b75d8-2890-4f34-ffff-ffffa144e82c"
18346 wsmap="suppress"
18347 >
18348 <desc>
18349 Interface for querying information about an extension pack as well as
18350 accessing COM objects within it.
18351 </desc>
18352 <attribute name="name" type="wstring" readonly="yes">
18353 <desc>The extension pack name. This is unique.</desc>
18354 </attribute>
18355 <attribute name="description" type="wstring" readonly="yes">
18356 <desc>The extension pack description.</desc>
18357 </attribute>
18358 <attribute name="version" type="wstring" readonly="yes">
18359 <desc>
18360 The extension pack version string. This is restricted to the dotted
18361 version number and optionally a build indicator. No tree revision or
18362 tag will be included in the string as those things are available as
18363 separate properties. An optional publisher tag may be present like for
18364 <link to="IVirtualBox::version"/>.
18365
18366 Examples: "1.2.3", "1.2.3_BETA1" and "1.2.3_RC2".
18367 </desc>
18368 </attribute>
18369 <attribute name="revision" type="unsigned long" readonly="yes">
18370 <desc>The extension pack internal revision number.</desc>
18371 </attribute>
18372 <attribute name="edition" type="wstring" readonly="yes">
18373 <desc>
18374 Edition indicator. This is usually empty.
18375
18376 Can for instance be used to help distinguishing between two editions
18377 of the same extension pack where only the license, service contract or
18378 something differs.
18379 </desc>
18380 </attribute>
18381 <attribute name="VRDEModule" type="wstring" readonly="yes">
18382 <desc>The name of the VRDE module if the extension pack sports one.</desc>
18383 </attribute>
18384 <attribute name="plugIns" type="IExtPackPlugIn" safearray="yes" readonly="yes">
18385 <desc>Plug-ins provided by this extension pack.</desc>
18386 </attribute>
18387 <attribute name="usable" type="boolean" readonly="yes">
18388 <desc>
18389 Indicates whether the extension pack is usable or not.
18390
18391 There are a number of reasons why an extension pack might be unusable,
18392 typical examples would be broken installation/file or that it is
18393 incompatible with the current VirtualBox version.
18394 </desc>
18395 </attribute>
18396 <attribute name="whyUnusable" type="wstring" readonly="yes">
18397 <desc>
18398 String indicating why the extension pack is not usable. This is an
18399 empty string if usable and always a non-empty string if not usable.
18400 </desc>
18401 </attribute>
18402 <attribute name="showLicense" type="boolean" readonly="yes">
18403 <desc>Whether to show the license before installation</desc>
18404 </attribute>
18405 <attribute name="license" type="wstring" readonly="yes">
18406 <desc>
18407 The default HTML license text for the extension pack. Same as
18408 calling <link to="#queryLicense">queryLicense</link> with
18409 preferredLocale and preferredLanguage as empty strings and format set
18410 to html.
18411 </desc>
18412 </attribute>
18413
18414 <method name="queryLicense">
18415 <desc>
18416 Full feature version of the license attribute.
18417 </desc>
18418 <param name="preferredLocale" type="wstring" dir="in">
18419 <desc>
18420 The preferred license locale. Pass an empty string to get the default
18421 license.
18422 </desc>
18423 </param>
18424 <param name="preferredLanguage" type="wstring" dir="in">
18425 <desc>
18426 The preferred license language. Pass an empty string to get the
18427 default language for the locale.
18428 </desc>
18429 </param>
18430 <param name="format" type="wstring" dir="in">
18431 <desc>
18432 The license format: html, rtf or txt. If a license is present there
18433 will always be an HTML of it, the rich text format (RTF) and plain
18434 text (txt) versions are optional. If
18435 </desc>
18436 </param>
18437 <param name="licenseText" type="wstring" dir="return">
18438 <desc>The license text.</desc>
18439 </param>
18440 </method>
18441
18442 </interface>
18443
18444 <interface
18445 name="IExtPack" extends="IExtPackBase"
18446 uuid="431685da-3618-4ebc-b038-833ba829b4b2"
18447 wsmap="suppress"
18448 >
18449 <desc>
18450 Interface for querying information about an extension pack as well as
18451 accessing COM objects within it.
18452 </desc>
18453 <method name="queryObject">
18454 <desc>
18455 Queries the IUnknown interface to an object in the extension pack
18456 main module. This allows plug-ins and others to talk directly to an
18457 extension pack.
18458 </desc>
18459 <param name="objUuid" type="wstring" dir="in">
18460 <desc>The object ID. What exactly this is </desc>
18461 </param>
18462 <param name="returnInterface" type="$unknown" dir="return">
18463 <desc>The queried interface.</desc>
18464 </param>
18465 </method>
18466 </interface>
18467
18468 <interface
18469 name="IExtPackFile" extends="IExtPackBase"
18470 uuid="b6b49f55-efcc-4f08-b486-56e8d8afb10b"
18471 wsmap="suppress"
18472 >
18473 <desc>
18474 Extension pack file (aka tarball, .vbox-extpack) representation returned
18475 by <link to="IExtPackManager::openExtPackFile"/>. This provides the base
18476 extension pack information with the addition of the file name.
18477 </desc>
18478 <attribute name="filePath" type="wstring" readonly="yes">
18479 <desc>
18480 The path to the extension pack file.
18481 </desc>
18482 </attribute>
18483
18484 <method name="install">
18485 <desc>
18486 Install the extension pack.
18487 </desc>
18488 <param name="replace" type="boolean" dir="in">
18489 <desc>
18490 Set this to automatically uninstall any existing extension pack with
18491 the same name as the one being installed.
18492 </desc>
18493 </param>
18494 <param name="displayInfo" type="wstring" dir="in">
18495 <desc>
18496 Platform specific display information. Reserved for future hacks.
18497 </desc>
18498 </param>
18499 <param name="progess" type="IProgress" dir="return">
18500 <desc>
18501 Progress object for the operation.
18502 </desc>
18503 </param>
18504 </method>
18505 </interface>
18506
18507 <interface
18508 name="IExtPackManager" extends="$unknown"
18509 uuid="3295e6ce-b051-47b2-9514-2c588bfe7554"
18510 wsmap="suppress"
18511 >
18512 <desc>
18513 Interface for managing VirtualBox Extension Packs.
18514
18515 TODO: Describe extension packs, how they are managed and how to create
18516 one.
18517 </desc>
18518
18519 <attribute name="installedExtPacks" type="IExtPack" safearray="yes" readonly="yes">
18520 <desc>
18521 List of the installed extension packs.
18522 </desc>
18523 </attribute>
18524
18525 <method name="find">
18526 <desc>
18527 Returns the extension pack with the specified name if found.
18528
18529 <result name="VBOX_E_OBJECT_NOT_FOUND">
18530 No extension pack matching @a name was found.
18531 </result>
18532 </desc>
18533 <param name="name" type="wstring" dir="in">
18534 <desc>The name of the extension pack to locate.</desc>
18535 </param>
18536 <param name="returnData" type="IExtPack" dir="return">
18537 <desc>The extension pack if found.</desc>
18538 </param>
18539 </method>
18540
18541 <method name="openExtPackFile">
18542 <desc>
18543 Attempts to open an extension pack file in preparation for
18544 installation.
18545 </desc>
18546 <param name="path" type="wstring" dir="in">
18547 <desc>The path of the extension pack tarball. This can optionally be
18548 followed by a "::SHA-256=hex-digit" of the tarball. </desc>
18549 </param>
18550 <param name="file" type="IExtPackFile" dir="return">
18551 <desc>The interface of the extension pack file object.</desc>
18552 </param>
18553 </method>
18554
18555 <method name="uninstall">
18556 <desc>Uninstalls an extension pack, removing all related files.</desc>
18557 <param name="name" type="wstring" dir="in">
18558 <desc>The name of the extension pack to uninstall.</desc>
18559 </param>
18560 <param name="forcedRemoval" type="boolean" dir="in">
18561 <desc>
18562 Forced removal of the extension pack. This means that the uninstall
18563 hook will not be called.
18564 </desc>
18565 </param>
18566 <param name="displayInfo" type="wstring" dir="in">
18567 <desc>
18568 Platform specific display information. Reserved for future hacks.
18569 </desc>
18570 </param>
18571 <param name="progess" type="IProgress" dir="return">
18572 <desc>
18573 Progress object for the operation.
18574 </desc>
18575 </param>
18576 </method>
18577
18578 <method name="cleanup">
18579 <desc>Cleans up failed installs and uninstalls</desc>
18580 </method>
18581
18582 <method name="queryAllPlugInsForFrontend">
18583 <desc>
18584 Gets the path to all the plug-in modules for a given frontend.
18585
18586 This is a convenience method that is intended to simplify the plug-in
18587 loading process for a frontend.
18588 </desc>
18589 <param name="frontendName" type="wstring" dir="in">
18590 <desc>The name of the frontend or component.</desc>
18591 </param>
18592 <param name="plugInModules" type="wstring" dir="return" safearray="yes">
18593 <desc>Array containing the plug-in modules (full paths).</desc>
18594 </param>
18595 </method>
18596
18597 <method name="isExtPackUsable">
18598 <desc>Check if the given extension pack is loaded and usable.</desc>
18599 <param name="name" type="wstring" dir="in">
18600 <desc>The name of the extension pack to check for.</desc>
18601 </param>
18602 <param name="usable" type="boolean" dir="return">
18603 <desc>Is the given extension pack loaded and usable.</desc>
18604 </param>
18605 </method>
18606
18607 </interface>
18608
18609 <!--
18610 // BandwidthGroupType
18611 /////////////////////////////////////////////////////////////////////////
18612 -->
18613 <enum
18614 name="BandwidthGroupType"
18615 uuid="1d92b67d-dc69-4be9-ad4c-93a01e1e0c8e">
18616
18617 <desc>
18618 Type of a bandwidth control group.
18619 </desc>
18620
18621 <const name="Null" value="0">
18622 <desc>
18623 Null type, must be first.
18624 </desc>
18625 </const>
18626
18627 <const name="Disk" value="1">
18628 <desc>
18629 The bandwidth group controls disk I/O.
18630 </desc>
18631 </const>
18632
18633 <const name="Network" value="2">
18634 <desc>
18635 The bandwidth group controls network I/O.
18636 </desc>
18637 </const>
18638
18639 </enum>
18640
18641 <!--
18642 // IBandwidthGroup
18643 /////////////////////////////////////////////////////////////////////////
18644 -->
18645 <interface
18646 name="IBandwidthGroup" extends="$unknown"
18647 uuid="badea2d7-0261-4146-89f0-6a57cc34833d"
18648 wsmap="managed"
18649 >
18650 <desc>Represents one bandwidth group.</desc>
18651
18652 <attribute name="name" type="wstring" readonly="yes">
18653 <desc>Name of the group.</desc>
18654 </attribute>
18655
18656 <attribute name="type" type="BandwidthGroupType" readonly="yes">
18657 <desc>Type of the group.</desc>
18658 </attribute>
18659
18660 <attribute name="reference" type="unsigned long" readonly="yes">
18661 <desc>How many devices/medium attachements use this group.</desc>
18662 </attribute>
18663
18664 <attribute name="maxBytesPerSec" type="long long">
18665 <desc>The maximum number of bytes which can be transfered by all
18666 entities attached to this group during one second.</desc>
18667 </attribute>
18668
18669 </interface>
18670
18671 <!--
18672 // IBandwidthControl
18673 /////////////////////////////////////////////////////////////////////////
18674 -->
18675 <interface
18676 name="IBandwidthControl" extends="$unknown"
18677 uuid="e2eb3930-d2f4-4f87-be17-0707e30f019f"
18678 wsmap="managed"
18679 >
18680 <desc>
18681 Controls the bandwidth groups of one machine used to cap I/O done by a VM.
18682 This includes network and disk I/O.
18683 </desc>
18684
18685 <attribute name="numGroups" type="unsigned long" readonly="yes">
18686 <desc>
18687 The current number of existing bandwidth groups managed.
18688 </desc>
18689 </attribute>
18690
18691 <method name="createBandwidthGroup">
18692 <desc>
18693 Creates a new bandwidth group.
18694 </desc>
18695
18696 <param name="name" type="wstring" dir="in">
18697 <desc>Name of the bandwidth group.</desc>
18698 </param>
18699 <param name="type" type="BandwidthGroupType" dir="in">
18700 <desc>The type of the bandwidth group (network or disk).</desc>
18701 </param>
18702 <param name="maxBytesPerSec" type="long long" dir="in">
18703 <desc>The maximum number of bytes which can be transfered by all
18704 entities attached to this group during one second.</desc>
18705 </param>
18706 </method>
18707
18708 <method name="deleteBandwidthGroup">
18709 <desc>
18710 Deletes a new bandwidth group.
18711 </desc>
18712
18713 <param name="name" type="wstring" dir="in">
18714 <desc>Name of the bandwidth group to delete.</desc>
18715 </param>
18716 </method>
18717
18718 <method name="getBandwidthGroup" const="yes">
18719 <desc>
18720 Get a bandwidth group by name.
18721 </desc>
18722
18723 <param name="name" type="wstring" dir="in">
18724 <desc>Name of the bandwidth group to get.</desc>
18725 </param>
18726 <param name="bandwidthGroup" type="IBandwidthGroup" dir="return">
18727 <desc>Where to store the bandwidth group on success.</desc>
18728 </param>
18729 </method>
18730
18731 <method name="getAllBandwidthGroups" const="yes">
18732 <desc>
18733 Get all managed bandwidth groups.
18734 </desc>
18735
18736 <param name="bandwidthGroups" type="IBandwidthGroup" dir="return" safearray="yes">
18737 <desc>The array of managed bandwidth groups.</desc>
18738 </param>
18739 </method>
18740 </interface>
18741
18742 <!--
18743 // IVirtualBoxClient
18744 /////////////////////////////////////////////////////////////////////////
18745 -->
18746
18747 <interface
18748 name="IVirtualBoxClient" extends="$unknown"
18749 uuid="5fe0bd48-1181-40d1-991f-3b02f269a823"
18750 wsmap="suppress"
18751 >
18752 <desc>
18753 Convenience interface for client applications. Treat this as a
18754 singleton, i.e. never create more than one instance of this interface.
18755
18756 At the moment only available for clients of the local API (not usable
18757 via the webservice). Once the session logic is redesigned this might
18758 change.
18759 </desc>
18760
18761 <attribute name="virtualBox" type="IVirtualBox" readonly="yes">
18762 <desc>
18763 Reference to the server-side API root object.
18764 </desc>
18765 </attribute>
18766
18767 <attribute name="session" type="ISession" readonly="yes">
18768 <desc>
18769 Create a new session object and return the reference to it.
18770 </desc>
18771 </attribute>
18772
18773 <attribute name="eventSource" type="IEventSource" readonly="yes">
18774 <desc>
18775 Event source for VirtualBoxClient events.
18776 </desc>
18777 </attribute>
18778
18779 </interface>
18780
18781 <!--
18782 // Events
18783 /////////////////////////////////////////////////////////////////////////
18784 -->
18785 <enum
18786 name="VBoxEventType"
18787 uuid="0d67e79e-b7b1-4919-aab3-b36866075515"
18788 >
18789
18790 <desc>
18791 Type of an event.
18792 See <link to="IEvent" /> for an introduction to VirtualBox event handling.
18793 </desc>
18794
18795 <const name="Invalid" value="0">
18796 <desc>
18797 Invalid event, must be first.
18798 </desc>
18799 </const>
18800
18801 <const name="Any" value="1">
18802 <desc>
18803 Wildcard for all events.
18804 Events of this type are never delivered, and only used in
18805 <link to="IEventSource::registerListener"/> call to simplify registration.
18806 </desc>
18807 </const>
18808
18809 <const name="Vetoable" value="2">
18810 <desc>
18811 Wildcard for all vetoable events. Events of this type are never delivered, and only
18812 used in <link to="IEventSource::registerListener"/> call to simplify registration.
18813 </desc>
18814 </const>
18815
18816 <const name="MachineEvent" value="3">
18817 <desc>
18818 Wildcard for all machine events. Events of this type are never delivered, and only used in
18819 <link to="IEventSource::registerListener"/> call to simplify registration.
18820 </desc>
18821 </const>
18822
18823 <const name="SnapshotEvent" value="4">
18824 <desc>
18825 Wildcard for all snapshot events. Events of this type are never delivered, and only used in
18826 <link to="IEventSource::registerListener"/> call to simplify registration.
18827 </desc>
18828 </const>
18829
18830 <const name="InputEvent" value="5">
18831 <desc>
18832 Wildcard for all input device (keyboard, mouse) events.
18833 Events of this type are never delivered, and only used in
18834 <link to="IEventSource::registerListener"/> call to simplify registration.
18835 </desc>
18836 </const>
18837
18838 <const name="LastWildcard" value="31">
18839 <desc>
18840 Last wildcard.
18841 </desc>
18842 </const>
18843
18844 <const name="OnMachineStateChanged" value="32">
18845 <desc>
18846 See <link to="IMachineStateChangedEvent">IMachineStateChangedEvent</link>.
18847 </desc>
18848 </const>
18849 <const name="OnMachineDataChanged" value="33">
18850 <desc>
18851 See <link to="IMachineDataChangedEvent">IMachineDataChangedEvent</link>.
18852 </desc>
18853 </const>
18854 <const name="OnExtraDataChanged" value="34">
18855 <desc>
18856 See <link to="IExtraDataChangedEvent">IExtraDataChangedEvent</link>.
18857 </desc>
18858 </const>
18859 <const name="OnExtraDataCanChange" value="35">
18860 <desc>
18861 See <link to="IExtraDataCanChangeEvent">IExtraDataCanChangeEvent</link>.
18862 </desc>
18863 </const>
18864 <const name="OnMediumRegistered" value="36">
18865 <desc>
18866 See <link to="IMediumRegisteredEvent">IMediumRegisteredEvent</link>.
18867 </desc>
18868 </const>
18869 <const name="OnMachineRegistered" value="37">
18870 <desc>
18871 See <link to="IMachineRegisteredEvent">IMachineRegisteredEvent</link>.
18872 </desc>
18873 </const>
18874 <const name="OnSessionStateChanged" value="38">
18875 <desc>
18876 See <link to="ISessionStateChangedEvent">ISessionStateChangedEvent</link>.
18877 </desc>
18878 </const>
18879 <const name="OnSnapshotTaken" value="39">
18880 <desc>
18881 See <link to="ISnapshotTakenEvent">ISnapshotTakenEvent</link>.
18882 </desc>
18883 </const>
18884 <const name="OnSnapshotDeleted" value="40">
18885 <desc>
18886 See <link to="ISnapshotDeletedEvent">ISnapshotDeletedEvent</link>.
18887 </desc>
18888 </const>
18889 <const name="OnSnapshotChanged" value="41">
18890 <desc>
18891 See <link to="ISnapshotChangedEvent">ISnapshotChangedEvent</link>.
18892 </desc>
18893 </const>
18894 <const name="OnGuestPropertyChanged" value="42">
18895 <desc>
18896 See <link to="IGuestPropertyChangedEvent">IGuestPropertyChangedEvent</link>.
18897 </desc>
18898 </const>
18899 <!-- Console events -->
18900 <const name="OnMousePointerShapeChanged" value="43">
18901 <desc>
18902 See <link to="IMousePointerShapeChangedEvent">IMousePointerShapeChangedEvent</link>.
18903 </desc>
18904 </const>
18905 <const name="OnMouseCapabilityChanged" value="44">
18906 <desc>
18907 See <link to="IMouseCapabilityChangedEvent">IMouseCapabilityChangedEvent</link>.
18908 </desc>
18909 </const>
18910 <const name="OnKeyboardLedsChanged" value="45">
18911 <desc>
18912 See <link to="IKeyboardLedsChangedEvent">IKeyboardLedsChangedEvent</link>.
18913 </desc>
18914 </const>
18915 <const name="OnStateChanged" value="46">
18916 <desc>
18917 See <link to="IStateChangedEvent">IStateChangedEvent</link>.
18918 </desc>
18919 </const>
18920 <const name="OnAdditionsStateChanged" value="47">
18921 <desc>
18922 See <link to="IAdditionsStateChangedEvent">IAdditionsStateChangedEvent</link>.
18923 </desc>
18924 </const>
18925 <const name="OnNetworkAdapterChanged" value="48">
18926 <desc>
18927 See <link to="INetworkAdapterChangedEvent">INetworkAdapterChangedEvent</link>.
18928 </desc>
18929 </const>
18930 <const name="OnSerialPortChanged" value="49">
18931 <desc>
18932 See <link to="ISerialPortChangedEvent">ISerialPortChangedEvent</link>.
18933 </desc>
18934 </const>
18935 <const name="OnParallelPortChanged" value="50">
18936 <desc>
18937 See <link to="IParallelPortChangedEvent">IParallelPortChangedEvent</link>.
18938 </desc>
18939 </const>
18940 <const name="OnStorageControllerChanged" value="51">
18941 <desc>
18942 See <link to="IStorageControllerChangedEvent">IStorageControllerChangedEvent</link>.
18943 </desc>
18944 </const>
18945 <const name="OnMediumChanged" value="52">
18946 <desc>
18947 See <link to="IMediumChangedEvent">IMediumChangedEvent</link>.
18948 </desc>
18949 </const>
18950 <const name="OnVRDEServerChanged" value="53">
18951 <desc>
18952 See <link to="IVRDEServerChangedEvent">IVRDEServerChangedEvent</link>.
18953 </desc>
18954 </const>
18955 <const name="OnUSBControllerChanged" value="54">
18956 <desc>
18957 See <link to="IUSBControllerChangedEvent">IUSBControllerChangedEvent</link>.
18958 </desc>
18959 </const>
18960 <const name="OnUSBDeviceStateChanged" value="55">
18961 <desc>
18962 See <link to="IUSBDeviceStateChangedEvent">IUSBDeviceStateChangedEvent</link>.
18963 </desc>
18964 </const>
18965 <const name="OnSharedFolderChanged" value="56">
18966 <desc>
18967 See <link to="ISharedFolderChangedEvent">ISharedFolderChangedEvent</link>.
18968 </desc>
18969 </const>
18970 <const name="OnRuntimeError" value="57">
18971 <desc>
18972 See <link to="IRuntimeErrorEvent">IRuntimeErrorEvent</link>.
18973 </desc>
18974 </const>
18975 <const name="OnCanShowWindow" value="58">
18976 <desc>
18977 See <link to="ICanShowWindowEvent">ICanShowWindowEvent</link>.
18978 </desc>
18979 </const>
18980 <const name="OnShowWindow" value="59">
18981 <desc>
18982 See <link to="IShowWindowEvent">IShowWindowEvent</link>.
18983 </desc>
18984 </const>
18985 <const name="OnCPUChanged" value="60">
18986 <desc>
18987 See <link to="ICPUChangedEvent">ICPUChangedEvent</link>.
18988 </desc>
18989 </const>
18990 <const name="OnVRDEServerInfoChanged" value="61">
18991 <desc>
18992 See <link to="IVRDEServerInfoChangedEvent">IVRDEServerInfoChangedEvent</link>.
18993 </desc>
18994 </const>
18995 <const name="OnEventSourceChanged" value="62">
18996 <desc>
18997 See <link to="IEventSourceChangedEvent">IEventSourceChangedEvent</link>.
18998 </desc>
18999 </const>
19000 <const name="OnCPUExecutionCapChanged" value="63">
19001 <desc>
19002 See <link to="ICPUExecutionCapChangedEvent">ICPUExecutionCapChangedEvent</link>.
19003 </desc>
19004 </const>
19005 <const name="OnGuestKeyboard" value="64">
19006 <desc>
19007 See <link to="IGuestKeyboardEvent">IGuestKeyboardEvent</link>.
19008 </desc>
19009 </const>
19010 <const name="OnGuestMouse" value="65">
19011 <desc>
19012 See <link to="IGuestMouseEvent">IGuestMouseEvent</link>.
19013 </desc>
19014 </const>
19015 <const name="OnNATRedirect" value="66">
19016 <desc>
19017 See <link to="INATRedirectEvent">INATRedirectEvent</link>.
19018 </desc>
19019 </const>
19020 <const name="OnHostPCIDevicePlug" value="67">
19021 <desc>
19022 See <link to="IHostPCIDevicePlugEvent">IHostPCIDevicePlugEvent</link>.
19023 </desc>
19024 </const>
19025 <const name="OnVBoxSVCAvailabilityChanged" value="68">
19026 <desc>
19027 See <link to="IVBoxSVCAvailabilityChangedEvent">IVBoxSVCAvailablityChangedEvent</link>.
19028 </desc>
19029 </const>
19030 <const name="OnBandwidthGroupChanged" value="69">
19031 <desc>
19032 See <link to="IBandwidthGroupChangedEvent">IBandwidthGroupChangedEvent</link>.
19033 </desc>
19034 </const>
19035 <const name="OnGuestMonitorChanged" value="70">
19036 <desc>
19037 See <link to="IGuestMonitorChangedEvent">IGuestMonitorChangedEvent</link>.
19038 </desc>
19039 </const>
19040 <const name="OnStorageDeviceChanged" value="71">
19041 <desc>
19042 See <link to="IStorageDeviceChangedEvent">IStorageDeviceChangedEvent</link>.
19043 </desc>
19044 </const>
19045 <const name="OnClipboardModeChanged" value="72">
19046 <desc>
19047 See <link to="IClipboardModeChangedEvent">IClipboardModeChangedEvent</link>.
19048 </desc>
19049 </const>
19050 <const name="OnDragAndDropModeChanged" value="73">
19051 <desc>
19052 See <link to="IDragAndDropModeChangedEvent">IDragAndDropModeChangedEvent</link>.
19053 </desc>
19054 </const>
19055
19056 <!-- Last event marker -->
19057 <const name="Last" value="74">
19058 <desc>
19059 Must be last event, used for iterations and structures relying on numerical event values.
19060 </desc>
19061 </const>
19062
19063 </enum>
19064
19065 <interface
19066 name="IEventSource" extends="$unknown"
19067 uuid="9b6e1aee-35f3-4f4d-b5bb-ed0ecefd8538"
19068 wsmap="managed"
19069 >
19070 <desc>
19071 Event source. Generally, any object which could generate events can be an event source,
19072 or aggregate one. To simplify using one-way protocols such as webservices running on top of HTTP(S),
19073 an event source can work with listeners in either active or passive mode. In active mode it is up to
19074 the IEventSource implementation to call <link to="IEventListener::handleEvent" />, in passive mode the
19075 event source keeps track of pending events for each listener and returns available events on demand.
19076
19077 See <link to="IEvent" /> for an introduction to VirtualBox event handling.
19078 </desc>
19079
19080 <method name="createListener">
19081 <desc>
19082 Creates a new listener object, useful for passive mode.
19083 </desc>
19084 <param name="listener" type="IEventListener" dir="return"/>
19085 </method>
19086
19087 <method name="createAggregator">
19088 <desc>
19089 Creates an aggregator event source, collecting events from multiple sources.
19090 This way a single listener can listen for events coming from multiple sources,
19091 using a single blocking <link to="#getEvent"/> on the returned aggregator.
19092 </desc>
19093 <param name="subordinates" type="IEventSource" dir="in" safearray="yes">
19094 <desc>
19095 Subordinate event source this one aggregatres.
19096 </desc>
19097 </param>
19098 <param name="result" type="IEventSource" dir="return">
19099 <desc>
19100 Event source aggregating passed sources.
19101 </desc>
19102 </param>
19103 </method>
19104
19105 <method name="registerListener">
19106 <desc>
19107 Register an event listener.
19108
19109 <note>
19110 To avoid system overload, the VirtualBox server process checks if passive event
19111 listeners call <link to="IEventSource::getEvent"/> frequently enough. In the
19112 current implementation, if more than 500 pending events are detected for a passive
19113 event listener, it is forcefully unregistered by the system, and further
19114 <link to="#getEvent" /> calls will return @c VBOX_E_OBJECT_NOT_FOUND.
19115 </note>
19116 </desc>
19117 <param name="listener" type="IEventListener" dir="in">
19118 <desc>Listener to register.</desc>
19119 </param>
19120 <param name="interesting" type="VBoxEventType" dir="in" safearray="yes">
19121 <desc>
19122 Event types listener is interested in. One can use wildcards like -
19123 <link to="VBoxEventType_Any"/> to specify wildcards, matching more
19124 than one event.
19125 </desc>
19126 </param>
19127 <param name="active" type="boolean" dir="in">
19128 <desc>
19129 Which mode this listener is operating in.
19130 In active mode, <link to="IEventListener::handleEvent" /> is called directly.
19131 In passive mode, an internal event queue is created for this this IEventListener.
19132 For each event coming in, it is added to queues for all interested registered passive
19133 listeners. It is then up to the external code to call the listener's
19134 <link to="IEventListener::handleEvent" /> method. When done with an event, the
19135 external code must call <link to="#eventProcessed" />.
19136 </desc>
19137 </param>
19138 </method>
19139
19140 <method name="unregisterListener">
19141 <desc>
19142 Unregister an event listener. If listener is passive, and some waitable events are still
19143 in queue they are marked as processed automatically.
19144 </desc>
19145 <param name="listener" type="IEventListener" dir="in">
19146 <desc>Listener to unregister.</desc>
19147 </param>
19148 </method>
19149
19150 <method name="fireEvent">
19151 <desc>
19152 Fire an event for this source.
19153 </desc>
19154 <param name="event" type="IEvent" dir="in">
19155 <desc>Event to deliver.</desc>
19156 </param>
19157 <param name="timeout" type="long" dir="in">
19158 <desc>
19159 Maximum time to wait for event processing (if event is waitable), in ms;
19160 0 = no wait, -1 = indefinite wait.
19161 </desc>
19162 </param>
19163 <param name="result" type="boolean" dir="return">
19164 <desc>true if an event was delivered to all targets, or is non-waitable.</desc>
19165 </param>
19166 </method>
19167
19168 <method name="getEvent">
19169 <desc>
19170 Get events from this peer's event queue (for passive mode). Calling this method
19171 regularly is required for passive event listeners to avoid system overload;
19172 see <link to="IEventSource::registerListener" /> for details.
19173
19174 <result name="VBOX_E_OBJECT_NOT_FOUND">
19175 Listener is not registered, or autounregistered.
19176 </result>
19177 </desc>
19178 <param name="listener" type="IEventListener" dir="in">
19179 <desc>Which listener to get data for.</desc>
19180 </param>
19181 <param name="timeout" type="long" dir="in">
19182 <desc>
19183 Maximum time to wait for events, in ms;
19184 0 = no wait, -1 = indefinite wait.
19185 </desc>
19186 </param>
19187 <param name="event" type="IEvent" dir="return">
19188 <desc>Event retrieved, or null if none available.</desc>
19189 </param>
19190 </method>
19191
19192 <method name="eventProcessed">
19193 <desc>
19194 Must be called for waitable events after a particular listener finished its
19195 event processing. When all listeners of a particular event have called this
19196 method, the system will then call <link to="IEvent::setProcessed" />.
19197 </desc>
19198 <param name="listener" type="IEventListener" dir="in">
19199 <desc>Which listener processed event.</desc>
19200 </param>
19201 <param name="event" type="IEvent" dir="in">
19202 <desc>Which event.</desc>
19203 </param>
19204 </method>
19205
19206 </interface>
19207
19208 <interface
19209 name="IEventListener" extends="$unknown"
19210 uuid="67099191-32e7-4f6c-85ee-422304c71b90"
19211 wsmap="managed"
19212 >
19213 <desc>
19214 Event listener. An event listener can work in either active or passive mode, depending on the way
19215 it was registered.
19216 See <link to="IEvent" /> for an introduction to VirtualBox event handling.
19217 </desc>
19218
19219 <method name="handleEvent">
19220 <desc>
19221 Handle event callback for active listeners. It is not called for
19222 passive listeners. After calling <link to="#handleEvent"/> on all active listeners
19223 and having received acknowledgement from all passive listeners via
19224 <link to="IEventSource::eventProcessed"/>, the event is marked as
19225 processed and <link to="IEvent::waitProcessed"/> will return
19226 immediately.
19227 </desc>
19228 <param name="event" type="IEvent" dir="in">
19229 <desc>Event available.</desc>
19230 </param>
19231 </method>
19232
19233 </interface>
19234
19235 <interface
19236 name="IEvent" extends="$unknown"
19237 uuid="0ca2adba-8f30-401b-a8cd-fe31dbe839c0"
19238 wsmap="managed"
19239 >
19240 <desc>
19241 Abstract parent interface for VirtualBox events. Actual events will typically implement
19242 a more specific interface which derives from this (see below).
19243
19244 <b>Introduction to VirtualBox events</b>
19245
19246 Generally speaking, an event (represented by this interface) signals that something
19247 happened, while an event listener (see <link to="IEventListener" />) represents an
19248 entity that is interested in certain events. In order for this to work with
19249 unidirectional protocols (i.e. web services), the concepts of passive and active
19250 listener are used.
19251
19252 Event consumers can register themselves as listeners, providing an array of
19253 events they are interested in (see <link to="IEventSource::registerListener" />).
19254 When an event triggers, the listener is notified about the event. The exact
19255 mechanism of the notification depends on whether the listener was registered as
19256 an active or passive listener:
19257
19258 <ul>
19259 <li>An active listener is very similar to a callback: it is a function invoked
19260 by the API. As opposed to the callbacks that were used in the API before
19261 VirtualBox 4.0 however, events are now objects with an interface hierarchy.
19262 </li>
19263
19264 <li>Passive listeners are somewhat trickier to implement, but do not require
19265 a client function to be callable, which is not an option with scripting
19266 languages or web service clients. Internally the <link to="IEventSource" />
19267 implementation maintains an event queue for each passive listener, and
19268 newly arrived events are put in this queue. When the listener calls
19269 <link to="IEventSource::getEvent"/>, first element from its internal event
19270 queue is returned. When the client completes processing of an event,
19271 the <link to="IEventSource::eventProcessed" /> function must be called,
19272 acknowledging that the event was processed. It supports implementing
19273 waitable events. On passive listener unregistration, all events from its
19274 queue are auto-acknowledged.
19275 </li>
19276 </ul>
19277
19278 Waitable events are useful in situations where the event generator wants to track
19279 delivery or a party wants to wait until all listeners have completed the event. A
19280 typical example would be a vetoable event (see <link to="IVetoEvent" />) where a
19281 listeners might veto a certain action, and thus the event producer has to make
19282 sure that all listeners have processed the event and not vetoed before taking
19283 the action.
19284
19285 A given event may have both passive and active listeners at the same time.
19286
19287 <b>Using events</b>
19288
19289 Any VirtualBox object capable of producing externally visible events provides an
19290 @c eventSource read-only attribute, which is of the type <link to="IEventSource" />.
19291 This event source object is notified by VirtualBox once something has happened, so
19292 consumers may register event listeners with this event source. To register a listener,
19293 an object implementing the <link to="IEventListener" /> interface must be provided.
19294 For active listeners, such an object is typically created by the consumer, while for
19295 passive listeners <link to="IEventSource::createListener" /> should be used. Please
19296 note that a listener created with <link to="IEventSource::createListener"/> must not be used as an active listener.
19297
19298 Once created, the listener must be registered to listen for the desired events
19299 (see <link to="IEventSource::registerListener" />), providing an array of
19300 <link to="VBoxEventType" /> enums. Those elements can either be the individual
19301 event IDs or wildcards matching multiple event IDs.
19302
19303 After registration, the callback's <link to="IEventListener::handleEvent" /> method is
19304 called automatically when the event is triggered, while passive listeners have to call
19305 <link to="IEventSource::getEvent" /> and <link to="IEventSource::eventProcessed" /> in
19306 an event processing loop.
19307
19308 The IEvent interface is an abstract parent interface for all such VirtualBox events
19309 coming in. As a result, the standard use pattern inside <link to="IEventListener::handleEvent" />
19310 or the event processing loop is to check the <link to="#type" /> attribute of the event and
19311 then cast to the appropriate specific interface using @c QueryInterface().
19312 </desc>
19313
19314 <attribute name="type" readonly="yes" type="VBoxEventType">
19315 <desc>
19316 Event type.
19317 </desc>
19318 </attribute>
19319
19320 <attribute name="source" readonly="yes" type="IEventSource">
19321 <desc>
19322 Source of this event.
19323 </desc>
19324 </attribute>
19325
19326 <attribute name="waitable" readonly="yes" type="boolean">
19327 <desc>
19328 If we can wait for this event being processed. If false, <link to="#waitProcessed"/> returns immediately,
19329 and <link to="#setProcessed"/> doesn't make sense. Non-waitable events are generally better performing,
19330 as no additional overhead associated with waitability imposed.
19331 Waitable events are needed when one need to be able to wait for particular event processed,
19332 for example for vetoable changes, or if event refers to some resource which need to be kept immutable
19333 until all consumers confirmed events.
19334 </desc>
19335 </attribute>
19336
19337 <method name="setProcessed">
19338 <desc>
19339 Internal method called by the system when all listeners of a particular event have called
19340 <link to="IEventSource::eventProcessed" />. This should not be called by client code.
19341 </desc>
19342 </method>
19343
19344 <method name="waitProcessed">
19345 <desc>
19346 Wait until time outs, or this event is processed. Event must be waitable for this operation to have
19347 described semantics, for non-waitable returns true immediately.
19348 </desc>
19349 <param name="timeout" type="long" dir="in">
19350 <desc>
19351 Maximum time to wait for event processeing, in ms;
19352 0 = no wait, -1 = indefinite wait.
19353 </desc>
19354 </param>
19355 <param name="result" type="boolean" dir="return">
19356 <desc>If this event was processed before timeout.</desc>
19357 </param>
19358 </method>
19359 </interface>
19360
19361
19362 <interface
19363 name="IReusableEvent" extends="IEvent"
19364 uuid="69bfb134-80f6-4266-8e20-16371f68fa25"
19365 wsmap="managed"
19366 >
19367 <desc>Base abstract interface for all reusable events.</desc>
19368
19369 <attribute name="generation" readonly="yes" type="unsigned long">
19370 <desc>Current generation of event, incremented on reuse.</desc>
19371 </attribute>
19372
19373 <method name="reuse">
19374 <desc>
19375 Marks an event as reused, increments 'generation', fields shall no
19376 longer be considered valid.
19377 </desc>
19378 </method>
19379 </interface>
19380
19381 <interface
19382 name="IMachineEvent" extends="IEvent"
19383 uuid="92ed7b1a-0d96-40ed-ae46-a564d484325e"
19384 wsmap="managed" id="MachineEvent"
19385 >
19386 <desc>Base abstract interface for all machine events.</desc>
19387
19388 <attribute name="machineId" readonly="yes" type="uuid" mod="string">
19389 <desc>ID of the machine this event relates to.</desc>
19390 </attribute>
19391
19392 </interface>
19393
19394 <interface
19395 name="IMachineStateChangedEvent" extends="IMachineEvent"
19396 uuid="5748F794-48DF-438D-85EB-98FFD70D18C9"
19397 wsmap="managed" autogen="VBoxEvent" id="OnMachineStateChanged"
19398 >
19399 <desc>Machine state change event.</desc>
19400
19401 <attribute name="state" readonly="yes" type="MachineState">
19402 <desc>New execution state.</desc>
19403 </attribute>
19404 </interface>
19405
19406 <interface
19407 name="IMachineDataChangedEvent" extends="IMachineEvent"
19408 uuid="abe94809-2e88-4436-83d7-50f3e64d0503"
19409 wsmap="managed" autogen="VBoxEvent" id="OnMachineDataChanged"
19410 >
19411 <desc>
19412 Any of the settings of the given machine has changed.
19413 </desc>
19414
19415 <attribute name="temporary" readonly="yes" type="boolean">
19416 <desc>@c true if the settings change is temporary. All permanent
19417 settings changes will trigger an event, and only temporary settings
19418 changes for running VMs will trigger an event. Note: sending events
19419 for temporary changes is NOT IMPLEMENTED.</desc>
19420 </attribute>
19421 </interface>
19422
19423 <interface
19424 name="IMediumRegisteredEvent" extends="IEvent"
19425 uuid="53fac49a-b7f1-4a5a-a4ef-a11dd9c2a458"
19426 wsmap="managed" autogen="VBoxEvent" id="OnMediumRegistered"
19427 >
19428 <desc>
19429 The given medium was registered or unregistered
19430 within this VirtualBox installation.
19431 </desc>
19432
19433 <attribute name="mediumId" readonly="yes" type="uuid" mod="string">
19434 <desc>ID of the medium this event relates to.</desc>
19435 </attribute>
19436
19437 <attribute name="mediumType" readonly="yes" type="DeviceType">
19438 <desc>Type of the medium this event relates to.</desc>
19439 </attribute>
19440
19441 <attribute name="registered" type="boolean" readonly="yes">
19442 <desc>
19443 If @c true, the medium was registered, otherwise it was
19444 unregistered.
19445 </desc>
19446 </attribute>
19447 </interface>
19448
19449 <interface
19450 name="IMachineRegisteredEvent" extends="IMachineEvent"
19451 uuid="c354a762-3ff2-4f2e-8f09-07382ee25088"
19452 wsmap="managed" autogen="VBoxEvent" id="OnMachineRegistered"
19453 >
19454 <desc>
19455 The given machine was registered or unregistered
19456 within this VirtualBox installation.
19457 </desc>
19458
19459 <attribute name="registered" type="boolean" readonly="yes">
19460 <desc>
19461 If @c true, the machine was registered, otherwise it was
19462 unregistered.
19463 </desc>
19464 </attribute>
19465 </interface>
19466
19467 <interface
19468 name="ISessionStateChangedEvent" extends="IMachineEvent"
19469 uuid="714a3eef-799a-4489-86cd-fe8e45b2ff8e"
19470 wsmap="managed" autogen="VBoxEvent" id="OnSessionStateChanged"
19471 >
19472 <desc>
19473 The state of the session for the given machine was changed.
19474 <see><link to="IMachine::sessionState"/></see>
19475 </desc>
19476
19477 <attribute name="state" type="SessionState" readonly="yes">
19478 <desc>
19479 New session state.
19480 </desc>
19481 </attribute>
19482 </interface>
19483
19484 <interface
19485 name="IGuestPropertyChangedEvent" extends="IMachineEvent"
19486 uuid="3f63597a-26f1-4edb-8dd2-6bddd0912368"
19487 wsmap="managed" autogen="VBoxEvent" id="OnGuestPropertyChanged"
19488 >
19489 <desc>
19490 Notification when a guest property has changed.
19491 </desc>
19492
19493 <attribute name="name" readonly="yes" type="wstring">
19494 <desc>
19495 The name of the property that has changed.
19496 </desc>
19497 </attribute>
19498
19499 <attribute name="value" readonly="yes" type="wstring">
19500 <desc>
19501 The new property value.
19502 </desc>
19503 </attribute>
19504
19505 <attribute name="flags" readonly="yes" type="wstring">
19506 <desc>
19507 The new property flags.
19508 </desc>
19509 </attribute>
19510
19511 </interface>
19512
19513 <interface
19514 name="ISnapshotEvent" extends="IMachineEvent"
19515 uuid="21637b0e-34b8-42d3-acfb-7e96daf77c22"
19516 wsmap="managed" id="SnapshotEvent"
19517 >
19518 <desc>Base interface for all snapshot events.</desc>
19519
19520 <attribute name="snapshotId" readonly="yes" type="uuid" mod="string">
19521 <desc>ID of the snapshot this event relates to.</desc>
19522 </attribute>
19523
19524 </interface>
19525
19526 <interface
19527 name="ISnapshotTakenEvent" extends="ISnapshotEvent"
19528 uuid="d27c0b3d-6038-422c-b45e-6d4a0503d9f1"
19529 wsmap="managed" autogen="VBoxEvent" id="OnSnapshotTaken"
19530 >
19531 <desc>
19532 A new snapshot of the machine has been taken.
19533 <see><link to="ISnapshot"/></see>
19534 </desc>
19535 </interface>
19536
19537 <interface
19538 name="ISnapshotDeletedEvent" extends="ISnapshotEvent"
19539 uuid="c48f3401-4a9e-43f4-b7a7-54bd285e22f4"
19540 wsmap="managed" autogen="VBoxEvent" id="OnSnapshotDeleted"
19541 >
19542 <desc>
19543 Snapshot of the given machine has been deleted.
19544
19545 <note>
19546 This notification is delivered <b>after</b> the snapshot
19547 object has been uninitialized on the server (so that any
19548 attempt to call its methods will return an error).
19549 </note>
19550
19551 <see><link to="ISnapshot"/></see>
19552 </desc>
19553 </interface>
19554
19555 <interface
19556 name="ISnapshotChangedEvent" extends="ISnapshotEvent"
19557 uuid="07541941-8079-447a-a33e-47a69c7980db"
19558 wsmap="managed" autogen="VBoxEvent" id="OnSnapshotChanged"
19559 >
19560 <desc>
19561 Snapshot properties (name and/or description) have been changed.
19562 <see><link to="ISnapshot"/></see>
19563 </desc>
19564 </interface>
19565
19566 <interface
19567 name="IMousePointerShapeChangedEvent" extends="IEvent"
19568 uuid="a6dcf6e8-416b-4181-8c4a-45ec95177aef"
19569 wsmap="managed" autogen="VBoxEvent" id="OnMousePointerShapeChanged"
19570 >
19571 <desc>
19572 Notification when the guest mouse pointer shape has
19573 changed. The new shape data is given.
19574 </desc>
19575
19576 <attribute name="visible" type="boolean" readonly="yes">
19577 <desc>
19578 Flag whether the pointer is visible.
19579 </desc>
19580 </attribute>
19581 <attribute name="alpha" type="boolean" readonly="yes">
19582 <desc>
19583 Flag whether the pointer has an alpha channel.
19584 </desc>
19585 </attribute>
19586 <attribute name="xhot" type="unsigned long" readonly="yes">
19587 <desc>
19588 The pointer hot spot X coordinate.
19589 </desc>
19590 </attribute>
19591 <attribute name="yhot" type="unsigned long" readonly="yes">
19592 <desc>
19593 The pointer hot spot Y coordinate.
19594 </desc>
19595 </attribute>
19596 <attribute name="width" type="unsigned long" readonly="yes">
19597 <desc>
19598 Width of the pointer shape in pixels.
19599 </desc>
19600 </attribute>
19601 <attribute name="height" type="unsigned long" readonly="yes">
19602 <desc>
19603 Height of the pointer shape in pixels.
19604 </desc>
19605 </attribute>
19606 <attribute name="shape" type="octet" safearray="yes" readonly="yes">
19607 <desc>
19608 Shape buffer arrays.
19609
19610 The @a shape buffer contains a 1-bpp (bits per pixel) AND mask
19611 followed by a 32-bpp XOR (color) mask.
19612
19613 For pointers without alpha channel the XOR mask pixels are 32
19614 bit values: (lsb)BGR0(msb). For pointers with alpha channel
19615 the XOR mask consists of (lsb)BGRA(msb) 32 bit values.
19616
19617 An AND mask is used for pointers with alpha channel, so if the
19618 callback does not support alpha, the pointer could be
19619 displayed as a normal color pointer.
19620
19621 The AND mask is a 1-bpp bitmap with byte aligned scanlines. The
19622 size of the AND mask therefore is <tt>cbAnd = (width + 7) / 8 *
19623 height</tt>. The padding bits at the end of each scanline are
19624 undefined.
19625
19626 The XOR mask follows the AND mask on the next 4-byte aligned
19627 offset: <tt>uint8_t *pXor = pAnd + (cbAnd + 3) &amp; ~3</tt>.
19628 Bytes in the gap between the AND and the XOR mask are undefined.
19629 The XOR mask scanlines have no gap between them and the size of
19630 the XOR mask is: <tt>cXor = width * 4 * height</tt>.
19631
19632 <note>
19633 If @a shape is 0, only the pointer visibility is changed.
19634 </note>
19635 </desc>
19636 </attribute>
19637 </interface>
19638
19639 <interface
19640 name="IMouseCapabilityChangedEvent" extends="IEvent"
19641 uuid="d633ad48-820c-4207-b46c-6bd3596640d5"
19642 wsmap="managed" autogen="VBoxEvent" id="OnMouseCapabilityChanged"
19643 >
19644 <desc>
19645 Notification when the mouse capabilities reported by the
19646 guest have changed. The new capabilities are passed.
19647 </desc>
19648 <attribute name="supportsAbsolute" type="boolean" readonly="yes">
19649 <desc>
19650 Supports absolute coordinates.
19651 </desc>
19652 </attribute>
19653 <attribute name="supportsRelative" type="boolean" readonly="yes">
19654 <desc>
19655 Supports relative coordinates.
19656 </desc>
19657 </attribute>
19658 <attribute name="needsHostCursor" type="boolean" readonly="yes">
19659 <desc>
19660 If host cursor is needed.
19661 </desc>
19662 </attribute>
19663 </interface>
19664
19665 <interface
19666 name="IKeyboardLedsChangedEvent" extends="IEvent"
19667 uuid="6DDEF35E-4737-457B-99FC-BC52C851A44F"
19668 wsmap="managed" autogen="VBoxEvent" id="OnKeyboardLedsChanged"
19669 >
19670 <desc>
19671 Notification when the guest OS executes the KBD_CMD_SET_LEDS command
19672 to alter the state of the keyboard LEDs.
19673 </desc>
19674 <attribute name="numLock" type="boolean" readonly="yes">
19675 <desc>
19676 NumLock status.
19677 </desc>
19678 </attribute>
19679 <attribute name="capsLock" type="boolean" readonly="yes">
19680 <desc>
19681 CapsLock status.
19682 </desc>
19683 </attribute>
19684 <attribute name="scrollLock" type="boolean" readonly="yes">
19685 <desc>
19686 ScrollLock status.
19687 </desc>
19688 </attribute>
19689 </interface>
19690
19691 <interface
19692 name="IStateChangedEvent" extends="IEvent"
19693 uuid="4376693C-CF37-453B-9289-3B0F521CAF27"
19694 wsmap="managed" autogen="VBoxEvent" id="OnStateChanged"
19695 >
19696 <desc>
19697 Notification when the execution state of the machine has changed.
19698 The new state is given.
19699 </desc>
19700 <attribute name="state" type="MachineState" readonly="yes">
19701 <desc>
19702 New machine state.
19703 </desc>
19704 </attribute>
19705 </interface>
19706
19707 <interface
19708 name="IAdditionsStateChangedEvent" extends="IEvent"
19709 uuid="D70F7915-DA7C-44C8-A7AC-9F173490446A"
19710 wsmap="managed" autogen="VBoxEvent" id="OnAdditionsStateChanged"
19711 >
19712 <desc>
19713 Notification when a Guest Additions property changes.
19714 Interested callees should query IGuest attributes to
19715 find out what has changed.
19716 </desc>
19717 </interface>
19718
19719 <interface
19720 name="INetworkAdapterChangedEvent" extends="IEvent"
19721 uuid="08889892-1EC6-4883-801D-77F56CFD0103"
19722 wsmap="managed" autogen="VBoxEvent" id="OnNetworkAdapterChanged"
19723 >
19724 <desc>
19725 Notification when a property of one of the
19726 virtual <link to="IMachine::getNetworkAdapter">network adapters</link>
19727 changes. Interested callees should use INetworkAdapter methods and
19728 attributes to find out what has changed.
19729 </desc>
19730 <attribute name="networkAdapter" type="INetworkAdapter" readonly="yes">
19731 <desc>
19732 Network adapter that is subject to change.
19733 </desc>
19734 </attribute>
19735 </interface>
19736
19737 <interface
19738 name="ISerialPortChangedEvent" extends="IEvent"
19739 uuid="3BA329DC-659C-488B-835C-4ECA7AE71C6C"
19740 wsmap="managed" autogen="VBoxEvent" id="OnSerialPortChanged"
19741 >
19742 <desc>
19743 Notification when a property of one of the
19744 virtual <link to="IMachine::getSerialPort">serial ports</link> changes.
19745 Interested callees should use ISerialPort methods and attributes
19746 to find out what has changed.
19747 </desc>
19748 <attribute name="serialPort" type="ISerialPort" readonly="yes">
19749 <desc>
19750 Serial port that is subject to change.
19751 </desc>
19752 </attribute>
19753 </interface>
19754
19755 <interface
19756 name="IParallelPortChangedEvent" extends="IEvent"
19757 uuid="813C99FC-9849-4F47-813E-24A75DC85615"
19758 wsmap="managed" autogen="VBoxEvent" id="OnParallelPortChanged"
19759 >
19760 <desc>
19761 Notification when a property of one of the
19762 virtual <link to="IMachine::getParallelPort">parallel ports</link>
19763 changes. Interested callees should use ISerialPort methods and
19764 attributes to find out what has changed.
19765 </desc>
19766 <attribute name="parallelPort" type="IParallelPort" readonly="yes">
19767 <desc>
19768 Parallel port that is subject to change.
19769 </desc>
19770 </attribute>
19771 </interface>
19772
19773 <interface
19774 name="IStorageControllerChangedEvent" extends="IEvent"
19775 uuid="715212BF-DA59-426E-8230-3831FAA52C56"
19776 wsmap="managed" autogen="VBoxEvent" id="OnStorageControllerChanged"
19777 >
19778 <desc>
19779 Notification when a
19780 <link to="IMachine::mediumAttachments">medium attachment</link>
19781 changes.
19782 </desc>
19783 </interface>
19784
19785 <interface
19786 name="IMediumChangedEvent" extends="IEvent"
19787 uuid="0FE2DA40-5637-472A-9736-72019EABD7DE"
19788 wsmap="managed" autogen="VBoxEvent" id="OnMediumChanged"
19789 >
19790 <desc>
19791 Notification when a
19792 <link to="IMachine::mediumAttachments">medium attachment</link>
19793 changes.
19794 </desc>
19795 <attribute name="mediumAttachment" type="IMediumAttachment" readonly="yes">
19796 <desc>
19797 Medium attachment that is subject to change.
19798 </desc>
19799 </attribute>
19800 </interface>
19801
19802 <interface
19803 name="IClipboardModeChangedEvent" extends="IEvent"
19804 uuid="cac21692-7997-4595-a731-3a509db604e5"
19805 wsmap="managed" autogen="VBoxEvent" id="OnClipboardModeChanged"
19806 >
19807 <desc>
19808 Notification when the shared clipboard mode changes.
19809 </desc>
19810 <attribute name="clipboardMode" type="ClipboardMode" readonly="yes">
19811 <desc>
19812 The new clipboard mode.
19813 </desc>
19814 </attribute>
19815 </interface>
19816
19817 <interface
19818 name="IDragAndDropModeChangedEvent" extends="IEvent"
19819 uuid="e90b8850-ac8e-4dff-8059-4100ae2c3c3d"
19820 wsmap="managed" autogen="VBoxEvent" id="OnDragAndDropModeChanged"
19821 >
19822 <desc>
19823 Notification when the drag'n'drop mode changes.
19824 </desc>
19825 <attribute name="dragAndDropMode" type="DragAndDropMode" readonly="yes">
19826 <desc>
19827 The new drag'n'drop mode.
19828 </desc>
19829 </attribute>
19830 </interface>
19831
19832 <interface
19833 name="ICPUChangedEvent" extends="IEvent"
19834 uuid="4da2dec7-71b2-4817-9a64-4ed12c17388e"
19835 wsmap="managed" autogen="VBoxEvent" id="OnCPUChanged"
19836 >
19837 <desc>
19838 Notification when a CPU changes.
19839 </desc>
19840 <attribute name="CPU" type="unsigned long" readonly="yes">
19841 <desc>
19842 The CPU which changed.
19843 </desc>
19844 </attribute>
19845 <attribute name="add" type="boolean" readonly="yes">
19846 <desc>
19847 Flag whether the CPU was added or removed.
19848 </desc>
19849 </attribute>
19850 </interface>
19851
19852 <interface
19853 name="ICPUExecutionCapChangedEvent" extends="IEvent"
19854 uuid="dfa7e4f5-b4a4-44ce-85a8-127ac5eb59dc"
19855 wsmap="managed" autogen="VBoxEvent" id="OnCPUExecutionCapChanged"
19856 >
19857 <desc>
19858 Notification when the CPU execution cap changes.
19859 </desc>
19860 <attribute name="executionCap" type="unsigned long" readonly="yes">
19861 <desc>
19862 The new CPU execution cap value. (1-100)
19863 </desc>
19864 </attribute>
19865 </interface>
19866
19867 <interface
19868 name="IGuestKeyboardEvent" extends="IEvent"
19869 uuid="88394258-7006-40d4-b339-472ee3801844"
19870 wsmap="managed" autogen="VBoxEvent" id="OnGuestKeyboard"
19871 >
19872 <desc>
19873 Notification when guest keyboard event happens.
19874 </desc>
19875 <attribute name="scancodes" type="long" safearray="yes" readonly="yes">
19876 <desc>
19877 Array of scancodes.
19878 </desc>
19879 </attribute>
19880 </interface>
19881
19882 <interface
19883 name="IGuestMouseEvent" extends="IReusableEvent"
19884 uuid="1f85d35c-c524-40ff-8e98-307000df0992"
19885 wsmap="managed" autogen="VBoxEvent" id="OnGuestMouse"
19886 >
19887 <desc>
19888 Notification when guest mouse event happens.
19889 </desc>
19890
19891 <attribute name="absolute" type="boolean" readonly="yes">
19892 <desc>
19893 If this event is relative or absolute.
19894 </desc>
19895 </attribute>
19896
19897 <attribute name="x" type="long" readonly="yes">
19898 <desc>
19899 New X position, or X delta.
19900 </desc>
19901 </attribute>
19902
19903 <attribute name="y" type="long" readonly="yes">
19904 <desc>
19905 New Y position, or Y delta.
19906 </desc>
19907 </attribute>
19908
19909 <attribute name="z" type="long" readonly="yes">
19910 <desc>
19911 Z delta.
19912 </desc>
19913 </attribute>
19914
19915 <attribute name="w" type="long" readonly="yes">
19916 <desc>
19917 W delta.
19918 </desc>
19919 </attribute>
19920
19921 <attribute name="buttons" type="long" readonly="yes">
19922 <desc>
19923 Button state bitmask.
19924 </desc>
19925 </attribute>
19926
19927 </interface>
19928
19929
19930 <interface
19931 name="IVRDEServerChangedEvent" extends="IEvent"
19932 uuid="a06fd66a-3188-4c8c-8756-1395e8cb691c"
19933 wsmap="managed" autogen="VBoxEvent" id="OnVRDEServerChanged"
19934 >
19935 <desc>
19936 Notification when a property of the
19937 <link to="IMachine::VRDEServer">VRDE server</link> changes.
19938 Interested callees should use IVRDEServer methods and attributes to
19939 find out what has changed.
19940 </desc>
19941 </interface>
19942
19943 <interface
19944 name="IVRDEServerInfoChangedEvent" extends="IEvent"
19945 uuid="dd6a1080-e1b7-4339-a549-f0878115596e"
19946 wsmap="managed" autogen="VBoxEvent" id="OnVRDEServerInfoChanged"
19947 >
19948 <desc>
19949 Notification when the status of the VRDE server changes. Interested callees
19950 should use <link to="IConsole::VRDEServerInfo">IVRDEServerInfo</link>
19951 attributes to find out what is the current status.
19952 </desc>
19953 </interface>
19954
19955 <interface
19956 name="IUSBControllerChangedEvent" extends="IEvent"
19957 uuid="93BADC0C-61D9-4940-A084-E6BB29AF3D83"
19958 wsmap="managed" autogen="VBoxEvent" id="OnUSBControllerChanged"
19959 >
19960 <desc>
19961 Notification when a property of the virtual
19962 <link to="IMachine::USBController">USB controller</link> changes.
19963 Interested callees should use IUSBController methods and attributes to
19964 find out what has changed.
19965 </desc>
19966 </interface>
19967
19968 <interface
19969 name="IUSBDeviceStateChangedEvent" extends="IEvent"
19970 uuid="806da61b-6679-422a-b629-51b06b0c6d93"
19971 wsmap="managed" autogen="VBoxEvent" id="OnUSBDeviceStateChanged"
19972 >
19973 <desc>
19974 Notification when a USB device is attached to or detached from
19975 the virtual USB controller.
19976
19977 This notification is sent as a result of the indirect
19978 request to attach the device because it matches one of the
19979 machine USB filters, or as a result of the direct request
19980 issued by <link to="IConsole::attachUSBDevice"/> or
19981 <link to="IConsole::detachUSBDevice"/>.
19982
19983 This notification is sent in case of both a succeeded and a
19984 failed request completion. When the request succeeds, the
19985 @a error parameter is @c null, and the given device has been
19986 already added to (when @a attached is @c true) or removed from
19987 (when @a attached is @c false) the collection represented by
19988 <link to="IConsole::USBDevices"/>. On failure, the collection
19989 doesn't change and the @a error parameter represents the error
19990 message describing the failure.
19991 </desc>
19992 <attribute name="device" type="IUSBDevice" readonly="yes">
19993 <desc>
19994 Device that is subject to state change.
19995 </desc>
19996 </attribute>
19997 <attribute name="attached" type="boolean" readonly="yes">
19998 <desc>
19999 @c true if the device was attached and @c false otherwise.
20000 </desc>
20001 </attribute>
20002 <attribute name="error" type="IVirtualBoxErrorInfo" readonly="yes">
20003 <desc>
20004 @c null on success or an error message object on failure.
20005 </desc>
20006 </attribute>
20007 </interface>
20008
20009 <interface
20010 name="ISharedFolderChangedEvent" extends="IEvent"
20011 uuid="B66349B5-3534-4239-B2DE-8E1535D94C0B"
20012 wsmap="managed" autogen="VBoxEvent" id="OnSharedFolderChanged"
20013 >
20014 <desc>
20015 Notification when a shared folder is added or removed.
20016 The @a scope argument defines one of three scopes:
20017 <link to="IVirtualBox::sharedFolders">global shared folders</link>
20018 (<link to="Scope_Global">Global</link>),
20019 <link to="IMachine::sharedFolders">permanent shared folders</link> of
20020 the machine (<link to="Scope_Machine">Machine</link>) or <link
20021 to="IConsole::sharedFolders">transient shared folders</link> of the
20022 machine (<link to="Scope_Session">Session</link>). Interested callees
20023 should use query the corresponding collections to find out what has
20024 changed.
20025 </desc>
20026 <attribute name="scope" type="Scope" readonly="yes">
20027 <desc>
20028 Scope of the notification.
20029 </desc>
20030 </attribute>
20031 </interface>
20032
20033 <interface
20034 name="IRuntimeErrorEvent" extends="IEvent"
20035 uuid="883DD18B-0721-4CDE-867C-1A82ABAF914C"
20036 wsmap="managed" autogen="VBoxEvent" id="OnRuntimeError"
20037 >
20038 <desc>
20039 Notification when an error happens during the virtual
20040 machine execution.
20041
20042 There are three kinds of runtime errors:
20043 <ul>
20044 <li><i>fatal</i></li>
20045 <li><i>non-fatal with retry</i></li>
20046 <li><i>non-fatal warnings</i></li>
20047 </ul>
20048
20049 <b>Fatal</b> errors are indicated by the @a fatal parameter set
20050 to @c true. In case of fatal errors, the virtual machine
20051 execution is always paused before calling this notification, and
20052 the notification handler is supposed either to immediately save
20053 the virtual machine state using <link to="IConsole::saveState"/>
20054 or power it off using <link to="IConsole::powerDown"/>.
20055 Resuming the execution can lead to unpredictable results.
20056
20057 <b>Non-fatal</b> errors and warnings are indicated by the
20058 @a fatal parameter set to @c false. If the virtual machine
20059 is in the Paused state by the time the error notification is
20060 received, it means that the user can <i>try to resume</i> the machine
20061 execution after attempting to solve the problem that caused the
20062 error. In this case, the notification handler is supposed
20063 to show an appropriate message to the user (depending on the
20064 value of the @a id parameter) that offers several actions such
20065 as <i>Retry</i>, <i>Save</i> or <i>Power Off</i>. If the user
20066 wants to retry, the notification handler should continue
20067 the machine execution using the <link to="IConsole::resume"/>
20068 call. If the machine execution is not Paused during this
20069 notification, then it means this notification is a <i>warning</i>
20070 (for example, about a fatal condition that can happen very soon);
20071 no immediate action is required from the user, the machine
20072 continues its normal execution.
20073
20074 Note that in either case the notification handler
20075 <b>must not</b> perform any action directly on a thread
20076 where this notification is called. Everything it is allowed to
20077 do is to post a message to another thread that will then talk
20078 to the user and take the corresponding action.
20079
20080 Currently, the following error identifiers are known:
20081 <ul>
20082 <li><tt>"HostMemoryLow"</tt></li>
20083 <li><tt>"HostAudioNotResponding"</tt></li>
20084 <li><tt>"VDIStorageFull"</tt></li>
20085 <li><tt>"3DSupportIncompatibleAdditions"</tt></li>
20086 </ul>
20087 </desc>
20088 <attribute name="fatal" type="boolean" readonly="yes">
20089 <desc>
20090 Whether the error is fatal or not.
20091 </desc>
20092 </attribute>
20093 <attribute name="id" type="wstring" readonly="yes">
20094 <desc>
20095 Error identifier.
20096 </desc>
20097 </attribute>
20098 <attribute name="message" type="wstring" readonly="yes">
20099 <desc>
20100 Optional error message.
20101 </desc>
20102 </attribute>
20103 </interface>
20104
20105
20106 <interface
20107 name="IEventSourceChangedEvent" extends="IEvent"
20108 uuid="e7932cb8-f6d4-4ab6-9cbf-558eb8959a6a"
20109 waitable="yes"
20110 wsmap="managed" autogen="VBoxEvent" id="OnEventSourceChanged"
20111 >
20112 <desc>
20113 Notification when an event source state changes (listener added or removed).
20114 </desc>
20115
20116 <attribute name="listener" type="IEventListener" readonly="yes">
20117 <desc>
20118 Event listener which has changed.
20119 </desc>
20120 </attribute>
20121
20122 <attribute name="add" type="boolean" readonly="yes">
20123 <desc>
20124 Flag whether listener was added or removed.
20125 </desc>
20126 </attribute>
20127 </interface>
20128
20129 <interface
20130 name="IExtraDataChangedEvent" extends="IEvent"
20131 uuid="024F00CE-6E0B-492A-A8D0-968472A94DC7"
20132 wsmap="managed" autogen="VBoxEvent" id="OnExtraDataChanged"
20133 >
20134 <desc>
20135 Notification when machine specific or global extra data
20136 has changed.
20137 </desc>
20138 <attribute name="machineId" type="uuid" mod="string" readonly="yes">
20139 <desc>
20140 ID of the machine this event relates to.
20141 Null for global extra data changes.
20142 </desc>
20143 </attribute>
20144 <attribute name="key" type="wstring" readonly="yes">
20145 <desc>
20146 Extra data key that has changed.
20147 </desc>
20148 </attribute>
20149 <attribute name="value" type="wstring" readonly="yes">
20150 <desc>
20151 Extra data value for the given key.
20152 </desc>
20153 </attribute>
20154 </interface>
20155
20156 <interface
20157 name="IVetoEvent" extends="IEvent"
20158 uuid="9a1a4130-69fe-472f-ac10-c6fa25d75007"
20159 wsmap="managed"
20160 >
20161 <desc>Base abstract interface for veto events.</desc>
20162
20163 <method name="addVeto">
20164 <desc>
20165 Adds a veto on this event.
20166 </desc>
20167 <param name="reason" type="wstring" dir="in">
20168 <desc>
20169 Reason for veto, could be null or empty string.
20170 </desc>
20171 </param>
20172 </method>
20173
20174 <method name="isVetoed">
20175 <desc>
20176 If this event was vetoed.
20177 </desc>
20178 <param name="result" type="boolean" dir="return">
20179 <desc>
20180 Reason for veto.
20181 </desc>
20182 </param>
20183 </method>
20184
20185 <method name="getVetos">
20186 <desc>
20187 Current veto reason list, if size is 0 - no veto.
20188 </desc>
20189 <param name="result" type="wstring" dir="return" safearray="yes">
20190 <desc>
20191 Array of reasons for veto provided by different event handlers.
20192 </desc>
20193 </param>
20194 </method>
20195
20196 </interface>
20197
20198 <interface
20199 name="IExtraDataCanChangeEvent" extends="IVetoEvent"
20200 uuid="245d88bd-800a-40f8-87a6-170d02249a55"
20201 wsmap="managed" autogen="VBoxEvent" id="OnExtraDataCanChange"
20202 waitable="true"
20203 >
20204 <desc>
20205 Notification when someone tries to change extra data for
20206 either the given machine or (if @c null) global extra data.
20207 This gives the chance to veto against changes.
20208 </desc>
20209 <attribute name="machineId" type="uuid" mod="string" readonly="yes">
20210 <desc>
20211 ID of the machine this event relates to.
20212 Null for global extra data changes.
20213 </desc>
20214 </attribute>
20215 <attribute name="key" type="wstring" readonly="yes">
20216 <desc>
20217 Extra data key that has changed.
20218 </desc>
20219 </attribute>
20220 <attribute name="value" type="wstring" readonly="yes">
20221 <desc>
20222 Extra data value for the given key.
20223 </desc>
20224 </attribute>
20225 </interface>
20226
20227 <interface
20228 name="ICanShowWindowEvent" extends="IVetoEvent"
20229 uuid="adf292b0-92c9-4a77-9d35-e058b39fe0b9"
20230 wsmap="managed" autogen="VBoxEvent" id="OnCanShowWindow"
20231 waitable="true"
20232 >
20233 <desc>
20234 Notification when a call to
20235 <link to="IMachine::canShowConsoleWindow"/> is made by a
20236 front-end to check if a subsequent call to
20237 <link to="IMachine::showConsoleWindow"/> can succeed.
20238
20239 The callee should give an answer appropriate to the current
20240 machine state using event veto. This answer must
20241 remain valid at least until the next
20242 <link to="IConsole::state">machine state</link> change.
20243 </desc>
20244 </interface>
20245
20246 <interface
20247 name="IShowWindowEvent" extends="IEvent"
20248 uuid="B0A0904D-2F05-4D28-855F-488F96BAD2B2"
20249 wsmap="managed" autogen="VBoxEvent" id="OnShowWindow"
20250 waitable="true"
20251 >
20252 <desc>
20253 Notification when a call to
20254 <link to="IMachine::showConsoleWindow"/>
20255 requests the console window to be activated and brought to
20256 foreground on the desktop of the host PC.
20257
20258 This notification should cause the VM console process to
20259 perform the requested action as described above. If it is
20260 impossible to do it at a time of this notification, this
20261 method should return a failure.
20262
20263 Note that many modern window managers on many platforms
20264 implement some sort of focus stealing prevention logic, so
20265 that it may be impossible to activate a window without the
20266 help of the currently active application (which is supposedly
20267 an initiator of this notification). In this case, this method
20268 must return a non-zero identifier that represents the
20269 top-level window of the VM console process. The caller, if it
20270 represents a currently active process, is responsible to use
20271 this identifier (in a platform-dependent manner) to perform
20272 actual window activation.
20273
20274 This method must set @a winId to zero if it has performed all
20275 actions necessary to complete the request and the console
20276 window is now active and in foreground, to indicate that no
20277 further action is required on the caller's side.
20278 </desc>
20279 <attribute name="winId" type="long long">
20280 <desc>
20281 Platform-dependent identifier of the top-level VM console
20282 window, or zero if this method has performed all actions
20283 necessary to implement the <i>show window</i> semantics for
20284 the given platform and/or this VirtualBox front-end.
20285 </desc>
20286 </attribute>
20287 </interface>
20288
20289 <interface
20290 name="INATRedirectEvent" extends="IMachineEvent"
20291 uuid="24eef068-c380-4510-bc7c-19314a7352f1"
20292 wsmap="managed" autogen="VBoxEvent" id="OnNATRedirect"
20293 >
20294 <desc>
20295 Notification when NAT redirect rule added or removed.
20296 </desc>
20297 <attribute name="slot" type="unsigned long" readonly="yes">
20298 <desc>
20299 Adapter which NAT attached to.
20300 </desc>
20301 </attribute>
20302 <attribute name="remove" type="boolean" readonly="yes">
20303 <desc>
20304 Whether rule remove or add.
20305 </desc>
20306 </attribute>
20307 <attribute name="name" type="wstring" readonly="yes">
20308 <desc>
20309 Name of the rule.
20310 </desc>
20311 </attribute>
20312 <attribute name="proto" type="NATProtocol" readonly="yes">
20313 <desc>
20314 Protocol (TCP or UDP) of the redirect rule.
20315 </desc>
20316 </attribute>
20317 <attribute name="hostIP" type="wstring" readonly="yes">
20318 <desc>
20319 Host ip address to bind socket on.
20320 </desc>
20321 </attribute>
20322 <attribute name="hostPort" type="long" readonly="yes">
20323 <desc>
20324 Host port to bind socket on.
20325 </desc>
20326 </attribute>
20327 <attribute name="guestIP" type="wstring" readonly="yes">
20328 <desc>
20329 Guest ip address to redirect to.
20330 </desc>
20331 </attribute>
20332 <attribute name="guestPort" type="long" readonly="yes">
20333 <desc>
20334 Guest port to redirect to.
20335 </desc>
20336 </attribute>
20337 </interface>
20338
20339 <interface
20340 name="IHostPCIDevicePlugEvent" extends="IMachineEvent"
20341 waitable="yes"
20342 uuid="a0bad6df-d612-47d3-89d4-db3992533948"
20343 wsmap="managed" autogen="VBoxEvent" id="OnHostPCIDevicePlug"
20344 >
20345 <desc>
20346 Notification when host PCI device is plugged/unplugged. Plugging
20347 usually takes place on VM startup, unplug - when
20348 <link to="IMachine::detachHostPCIDevice"/> is called.
20349
20350 <see><link to="IMachine::detachHostPCIDevice"/></see>
20351
20352 </desc>
20353
20354 <attribute name="plugged" type="boolean" readonly="yes">
20355 <desc>
20356 If device successfully plugged or unplugged.
20357 </desc>
20358 </attribute>
20359
20360 <attribute name="success" type="boolean" readonly="yes">
20361 <desc>
20362 If operation was successful, if false - 'message' attribute
20363 may be of interest.
20364 </desc>
20365 </attribute>
20366
20367 <attribute name="attachment" type="IPCIDeviceAttachment" readonly="yes">
20368 <desc>
20369 Attachment info for this device.
20370 </desc>
20371 </attribute>
20372
20373 <attribute name="message" type="wstring" readonly="yes">
20374 <desc>
20375 Optional error message.
20376 </desc>
20377 </attribute>
20378
20379 </interface>
20380
20381 <interface
20382 name="IVBoxSVCAvailabilityChangedEvent" extends="IEvent"
20383 uuid="97c78fcd-d4fc-485f-8613-5af88bfcfcdc"
20384 wsmap="managed" autogen="VBoxEvent" id="OnVBoxSVCAvailabilityChanged"
20385 >
20386 <desc>
20387 Notification when VBoxSVC becomes unavailable (due to a crash or similar
20388 unexpected circumstances) or available again.
20389 </desc>
20390
20391 <attribute name="available" type="boolean" readonly="yes">
20392 <desc>
20393 Whether VBoxSVC is available now.
20394 </desc>
20395 </attribute>
20396 </interface>
20397
20398 <interface
20399 name="IBandwidthGroupChangedEvent" extends="IEvent"
20400 uuid="334df94a-7556-4cbc-8c04-043096b02d82"
20401 wsmap="managed" autogen="VBoxEvent" id="OnBandwidthGroupChanged"
20402 >
20403 <desc>
20404 Notification when one of the bandwidth groups changed
20405 </desc>
20406 <attribute name="bandwidthGroup" type="IBandwidthGroup" readonly="yes">
20407 <desc>
20408 The changed bandwidth group.
20409 </desc>
20410 </attribute>
20411 </interface>
20412
20413 <enum
20414 name="GuestMonitorChangedEventType"
20415 uuid="ef172985-7e36-4297-95be-e46396968d66"
20416 >
20417
20418 <desc>
20419 How the guest monitor has been changed.
20420 </desc>
20421
20422 <const name="Enabled" value="0">
20423 <desc>
20424 The guest monitor has been enabled by the guest.
20425 </desc>
20426 </const>
20427
20428 <const name="Disabled" value="1">
20429 <desc>
20430 The guest monitor has been disabled by the guest.
20431 </desc>
20432 </const>
20433
20434 <const name="NewOrigin" value="2">
20435 <desc>
20436 The guest monitor origin has changed in the guest.
20437 </desc>
20438 </const>
20439 </enum>
20440
20441 <interface
20442 name="IGuestMonitorChangedEvent" extends="IEvent"
20443 uuid="0f7b8a22-c71f-4a36-8e5f-a77d01d76090"
20444 wsmap="managed" autogen="VBoxEvent" id="OnGuestMonitorChanged"
20445 >
20446 <desc>
20447 Notification when the guest enables one of its monitors.
20448 </desc>
20449
20450 <attribute name="changeType" type="GuestMonitorChangedEventType" readonly="yes">
20451 <desc>
20452 What was changed for this guest monitor.
20453 </desc>
20454 </attribute>
20455
20456 <attribute name="screenId" type="unsigned long" readonly="yes">
20457 <desc>
20458 The monitor which was changed.
20459 </desc>
20460 </attribute>
20461
20462 <attribute name="originX" type="unsigned long" readonly="yes">
20463 <desc>
20464 Physical X origin relative to the primary screen.
20465 Valid for Enabled and NewOrigin.
20466 </desc>
20467 </attribute>
20468
20469 <attribute name="originY" type="unsigned long" readonly="yes">
20470 <desc>
20471 Physical Y origin relative to the primary screen.
20472 Valid for Enabled and NewOrigin.
20473 </desc>
20474 </attribute>
20475
20476 <attribute name="width" type="unsigned long" readonly="yes">
20477 <desc>
20478 Width of the screen.
20479 Valid for Enabled.
20480 </desc>
20481 </attribute>
20482
20483 <attribute name="height" type="unsigned long" readonly="yes">
20484 <desc>
20485 Height of the screen.
20486 Valid for Enabled.
20487 </desc>
20488 </attribute>
20489
20490 </interface>
20491
20492 <interface
20493 name="IStorageDeviceChangedEvent" extends="IEvent"
20494 uuid="8a5c2dce-e341-49d4-afce-c95979f7d70c"
20495 wsmap="managed" autogen="VBoxEvent" id="OnStorageDeviceChanged"
20496 >
20497 <desc>
20498 Notification when a
20499 <link to="IMachine::mediumAttachments">storage device</link>
20500 is attached or removed.
20501 </desc>
20502 <attribute name="storageDevice" type="IMediumAttachment" readonly="yes">
20503 <desc>
20504 Storage device that is subject to change.
20505 </desc>
20506 </attribute>
20507 <attribute name="removed" type="boolean" readonly="yes">
20508 <desc>
20509 Flag whether the device was removed or added to the VM.
20510 </desc>
20511 </attribute>
20512 </interface>
20513
20514 <module name="VBoxSVC" context="LocalServer">
20515 <class name="VirtualBox" uuid="B1A7A4F2-47B9-4A1E-82B2-07CCD5323C3F"
20516 namespace="virtualbox.org">
20517 <interface name="IVirtualBox" default="yes"/>
20518 </class>
20519 </module>
20520
20521 <module name="VBoxC" context="InprocServer" threadingModel="Free">
20522 <class name="VirtualBoxClient" uuid="dd3fc71d-26c0-4fe1-bf6f-67f633265bba"
20523 namespace="virtualbox.org">
20524 <interface name="IVirtualBoxClient" default="yes"/>
20525 </class>
20526
20527 <class name="Session" uuid="3C02F46D-C9D2-4F11-A384-53F0CF917214"
20528 namespace="virtualbox.org">
20529 <interface name="ISession" default="yes"/>
20530 </class>
20531 </module>
20532
20533</library>
20534
20535</idl>
20536
20537<!-- 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