VirtualBox

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

最後變更 在這個檔案從33656是 33596,由 vboxsync 提交於 14 年 前

Main: Change the 'default default' machine folder to '/home/umoeller/VirtualBox VMs'

  • 屬性 svn:eol-style 設為 native
檔案大小: 570.3 KB
 
1<?xml version="1.0" ?>
2
3<!--
4
5 Copyright (C) 2006-2010 Oracle Corporation
6
7 This file is part of VirtualBox Open Source Edition (OSE), as
8 available from http://www.alldomusa.eu.org. This file is free software;
9 you can redistribute it and/or modify it under the terms of the GNU
10 General Public License (GPL) as published by the Free Software
11 Foundation, in version 2 as it comes in the "COPYING" file of the
12 VirtualBox OSE distribution. VirtualBox OSE is distributed in the
13 hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
14-->
15
16<!--
17 This is the master declaration for VirtualBox's Main API,
18 represented by COM/XPCOM and web service interfaces.
19
20 From this document, the build system generates several files
21 via XSLT that are then used during the build process.
22
23 Below is the list of XSL templates that operate on this file and
24 output files they generate. These XSL templates must be updated
25 whenever the schema of this file changes:
26
27 1. src/VBox/Main/idl/midl.xsl =>
28 out/<platform>/bin/sdk/idl/VirtualBox.idl
29 (MS COM interface definition file for Main API)
30
31 2. src/VBox/Main/idl/xpidl.xsl =>
32 out/<platform>/bin/sdk/idl/VirtualBox_XPCOM.idl
33 (XPCOM interface definition file for Main API)
34
35 3. src/VBox/Main/idl/doxygen.xsl =>
36 out/<platform>/obj/src/VBox/Main/VirtualBox.idl
37 (pseudo-IDL for Doxygen to generate the official Main API
38 documentation)
39
40 4. src/VBox/Main/webservice/*.xsl =>
41 a bunch of WSDL and C++ files
42 (VirtualBox web service sources and SOAP mappers;
43 see src/VBox/Main/webservice/Makefile.kmk for details)
44
45 5. src/VBox/Frontends/VirtualBox/include/COMWrappers.xsl =>
46 out/<platform>/obj/src/VBox/Frontends/VirtualBox/VirtualBox/include/COMWrappers.h
47 (smart Qt-based C++ wrapper classes for COM interfaces
48 of the Main API)
49
50 6. src/VBox/Installer/win32/VirtualBox_TypeLib.xsl =>
51 out/<platform>/obj/src/VBox/Installer/win32/VirtualBox_TypeLib.wxi
52 (Main API TypeLib block for the WiX installer)
53
54 7. src/VBox/Runtime/common/err/errmsgvboxcom.xsl =>
55 out/<platform>/obj/Runtime/errmsgvboxcomdata.h
56 (<result> extraction for the %Rhrc format specifier)
57-->
58
59<idl>
60
61<desc>
62 Welcome to the <b>VirtualBox Main API documentation</b>. This documentation
63 describes the so-called <i>VirtualBox Main API</i> which comprises all public
64 COM interfaces and components provided by the VirtualBox server and by the
65 VirtualBox client library.
66
67 VirtualBox employs a client-server design, meaning that whenever any part of
68 VirtualBox is running -- be it the Qt GUI, the VBoxManage command-line
69 interface or any virtual machine --, a dedicated server process named
70 VBoxSVC runs in the background. This allows multiple processes working with
71 VirtualBox to cooperate without conflicts. These processes communicate to each
72 other using inter-process communication facilities provided by the COM
73 implementation of the host computer.
74
75 On Windows platforms, the VirtualBox Main API uses Microsoft COM, a native COM
76 implementation. On all other platforms, Mozilla XPCOM, an open-source COM
77 implementation, is used.
78
79 All the parts that a typical VirtualBox user interacts with (the Qt GUI
80 and the VBoxManage command-line interface) are technically
81 front-ends to the Main API and only use the interfaces that are documented
82 in this Main API documentation. This ensures that, with any given release
83 version of VirtualBox, all capabilities of the product that could be useful
84 to an external client program are always exposed by way of this API.
85
86 The VirtualBox Main API (also called the <i>VirtualBox COM library</i>)
87 contains two public component classes:
88 <tt>%VirtualBox.VirtualBox</tt> and <tt>%VirtualBox.Session</tt>, which
89 implement IVirtualBox and ISession interfaces respectively. These two classes
90 are of supreme importance and will be needed in order for any front-end
91 program to do anything useful. It is recommended to read the documentation of
92 the mentioned interfaces first.
93
94 The <tt>%VirtualBox.VirtualBox</tt> class is a singleton. This means that
95 there can be only one object of this class on the local machine at any given
96 time. This object is a parent of many other objects in the VirtualBox COM
97 library and lives in the VBoxSVC process. In fact, when you create an instance
98 of the <tt>VirtualBox.VirtualBox</tt>, the COM subsystem checks if the VBoxSVC
99 process is already running, starts it if not, and returns you a reference to
100 the <tt>VirtualBox</tt> object created in this process. When the last reference
101 to this object is released, the VBoxSVC process ends (with a 5 second delay to
102 protect from too frequent restarts).
103
104 The <tt>%VirtualBox.Session</tt> class is a regular component. You can create
105 as many <tt>Session</tt> objects as you need but all of them will live in a
106 process which issues the object instantiation call. <tt>Session</tt> objects
107 represent virtual machine sessions which are used to configure virtual
108 machines and control their execution.
109</desc>
110
111<if target="midl">
112 <cpp line="enum {"/>
113 <cpp line=" kTypeLibraryMajorVersion = 1,"/>
114 <cpp line=" kTypeLibraryMinorVersion = 0"/>
115 <cpp line="};"/>
116</if>
117
118<if target="xpidl">
119 <!-- NS_IMPL_THREADSAFE_ISUPPORTSxx_CI macros are placed here, for convenience -->
120 <cpp>
121/* currently, nsISupportsImpl.h lacks the below-like macros */
122
123#define NS_IMPL_THREADSAFE_QUERY_INTERFACE1_CI NS_IMPL_QUERY_INTERFACE1_CI
124#define NS_IMPL_THREADSAFE_QUERY_INTERFACE2_CI NS_IMPL_QUERY_INTERFACE2_CI
125#define NS_IMPL_THREADSAFE_QUERY_INTERFACE3_CI NS_IMPL_QUERY_INTERFACE3_CI
126#define NS_IMPL_THREADSAFE_QUERY_INTERFACE4_CI NS_IMPL_QUERY_INTERFACE4_CI
127
128
129#ifndef NS_IMPL_THREADSAFE_ISUPPORTS1_CI
130# define NS_IMPL_THREADSAFE_ISUPPORTS1_CI(_class, _interface) \
131 NS_IMPL_THREADSAFE_ADDREF(_class) \
132 NS_IMPL_THREADSAFE_RELEASE(_class) \
133 NS_IMPL_THREADSAFE_QUERY_INTERFACE1_CI(_class, _interface) \
134 NS_IMPL_CI_INTERFACE_GETTER1(_class, _interface)
135#endif
136
137#ifndef NS_IMPL_THREADSAFE_ISUPPORTS2_CI
138# define NS_IMPL_THREADSAFE_ISUPPORTS2_CI(_class, _i1, _i2) \
139 NS_IMPL_THREADSAFE_ADDREF(_class) \
140 NS_IMPL_THREADSAFE_RELEASE(_class) \
141 NS_IMPL_THREADSAFE_QUERY_INTERFACE2_CI(_class, _i1, _i2) \
142 NS_IMPL_CI_INTERFACE_GETTER2(_class, _i1, _i2)
143#endif
144
145#ifndef NS_IMPL_THREADSAFE_ISUPPORTS3_CI
146# define NS_IMPL_THREADSAFE_ISUPPORTS3_CI(_class, _i1, _i2, _i3) \
147 NS_IMPL_THREADSAFE_ADDREF(_class) \
148 NS_IMPL_THREADSAFE_RELEASE(_class) \
149 NS_IMPL_THREADSAFE_QUERY_INTERFACE3_CI(_class, _i1, _i2, _i3) \
150 NS_IMPL_CI_INTERFACE_GETTER3(_class, _i1, _i2, _i3)
151#endif
152
153#ifndef NS_IMPL_THREADSAFE_ISUPPORTS4_CI
154# define NS_IMPL_THREADSAFE_ISUPPORTS4_CI(_class, _i1, _i2, _i3, _i4) \
155 NS_IMPL_THREADSAFE_ADDREF(_class) \
156 NS_IMPL_THREADSAFE_RELEASE(_class) \
157 NS_IMPL_THREADSAFE_QUERY_INTERFACE4_CI(_class, _i1, _i2, _i3, _i4) \
158 NS_IMPL_CI_INTERFACE_GETTER4(_class, _i1, _i2, _i3, _i4)
159#endif
160
161#ifndef NS_IMPL_QUERY_INTERFACE1_AMBIGUOUS_CI
162# define NS_IMPL_QUERY_INTERFACE1_AMBIGUOUS_CI(_class, _i1, _ic1) \
163 NS_INTERFACE_MAP_BEGIN(_class) \
164 NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(_i1, _ic1) \
165 NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(nsISupports, _ic1) \
166 NS_IMPL_QUERY_CLASSINFO(_class) \
167 NS_INTERFACE_MAP_END
168#endif
169
170#ifndef NS_IMPL_QUERY_INTERFACE2_AMBIGUOUS_CI
171# define NS_IMPL_QUERY_INTERFACE2_AMBIGUOUS_CI(_class, _i1, _ic1, \
172 _i2, _ic2) \
173 NS_INTERFACE_MAP_BEGIN(_class) \
174 NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(_i1, _ic1) \
175 NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(_i2, _ic2) \
176 NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(nsISupports, _ic1) \
177 NS_IMPL_QUERY_CLASSINFO(_class) \
178 NS_INTERFACE_MAP_END
179#endif
180
181#ifndef NS_IMPL_QUERY_INTERFACE3_AMBIGUOUS_CI
182# define NS_IMPL_QUERY_INTERFACE3_AMBIGUOUS_CI(_class, _i1, _ic1, \
183 _i2, _ic2, _i3, _ic3) \
184 NS_INTERFACE_MAP_BEGIN(_class) \
185 NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(_i1, _ic1) \
186 NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(_i2, _ic2) \
187 NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(_i3, _ic3) \
188 NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(nsISupports, _ic1) \
189 NS_IMPL_QUERY_CLASSINFO(_class) \
190 NS_INTERFACE_MAP_END
191#endif
192
193#define NS_IMPL_THREADSAFE_QUERY_INTERFACE1_AMBIGUOUS_CI NS_IMPL_QUERY_INTERFACE1_AMBIGUOUS_CI
194#define NS_IMPL_THREADSAFE_QUERY_INTERFACE2_AMBIGUOUS_CI NS_IMPL_QUERY_INTERFACE2_AMBIGUOUS_CI
195#define NS_IMPL_THREADSAFE_QUERY_INTERFACE3_AMBIGUOUS_CI NS_IMPL_QUERY_INTERFACE3_AMBIGUOUS_CI
196
197#ifndef NS_IMPL_THREADSAFE_ISUPPORTS1_AMBIGUOUS_CI
198# define NS_IMPL_THREADSAFE_ISUPPORTS1_AMBIGUOUS_CI(_class, _i1, _ic1) \
199 NS_IMPL_THREADSAFE_ADDREF(_class) \
200 NS_IMPL_THREADSAFE_RELEASE(_class) \
201 NS_IMPL_THREADSAFE_QUERY_INTERFACE1_AMBIGUOUS_CI(_class, _i1, _ic1) \
202 NS_IMPL_CI_INTERFACE_GETTER1(_class, _i1)
203#endif
204
205#ifndef NS_IMPL_THREADSAFE_ISUPPORTS2_AMBIGUOUS_CI
206# define NS_IMPL_THREADSAFE_ISUPPORTS2_AMBIGUOUS_CI(_class, _i1, _ic1, \
207 _i2, _ic2) \
208 NS_IMPL_THREADSAFE_ADDREF(_class) \
209 NS_IMPL_THREADSAFE_RELEASE(_class) \
210 NS_IMPL_THREADSAFE_QUERY_INTERFACE2_AMBIGUOUS_CI(_class, _i1, _ic1, \
211 _i2, _ic2) \
212 NS_IMPL_CI_INTERFACE_GETTER2(_class, _i1, _i2)
213#endif
214
215#ifndef NS_IMPL_THREADSAFE_ISUPPORTS3_AMBIGUOUS_CI
216# define NS_IMPL_THREADSAFE_ISUPPORTS3_AMBIGUOUS_CI(_class, _i1, _ic1, \
217 _i2, _ic2, _i3, _ic3) \
218 NS_IMPL_THREADSAFE_ADDREF(_class) \
219 NS_IMPL_THREADSAFE_RELEASE(_class) \
220 NS_IMPL_THREADSAFE_QUERY_INTERFACE3_AMBIGUOUS_CI(_class, _i1, _ic1, \
221 _i2, _ic2, _i3, _ic3) \
222 NS_IMPL_CI_INTERFACE_GETTER3(_class, _i1, _i2, _i3)
223#endif
224
225 </cpp>
226</if>
227
228<library
229 name="VirtualBox"
230 uuid="46137EEC-703B-4fe5-AFD4-7C9BBBBA0259"
231 version="1.3"
232 desc="VirtualBox Type Library"
233 appUuid="819B4D85-9CEE-493C-B6FC-64FFE759B3C9"
234 supportsErrorInfo="yes"
235>
236
237
238 <!--
239 // COM result codes for VirtualBox
240 /////////////////////////////////////////////////////////////////////////
241 -->
242
243 <descGroup id="VirtualBox_COM_result_codes" title="VirtualBox COM result codes">
244 <desc>
245 This section describes all VirtualBox-specific COM result codes that may
246 be returned by methods of VirtualBox COM interfaces in addition to
247 standard COM result codes.
248
249 Note that along with the result code, every VirtualBox method returns
250 extended error information through the IVirtualBoxErrorInfo interface on
251 failure. This interface is a preferred way to present the error to the end
252 user because it contains a human readable description of the error. Raw
253 result codes, both standard and described in this section, are intended to
254 be used by programs to analyze the reason of a failure and select an
255 appropriate course of action without involving the end user (for example,
256 retry the operation later or make a different call).
257
258 The standard COM result codes that may originate from our methods include:
259
260 <table>
261 <tr><td>E_INVALIDARG</td>
262 <td>
263 Returned when the value of the method's argument is not within the range
264 of valid values. This should not be confused with situations when the
265 value is within the range but simply doesn't suit the current object
266 state and there is a possibility that it will be accepted later (in such
267 cases VirtualBox-specific codes are returned, for example,
268 <link to="VBOX_E_OBJECT_NOT_FOUND"/>).
269 </td>
270 </tr>
271 <tr><td>E_POINTER</td>
272 <td>
273 Returned if a memory pointer for the output argument is invalid (for
274 example, @c null). Note that when pointers representing input
275 arguments (such as strings) are invalid, E_INVALIDARG is returned.
276 </td>
277 </tr>
278 <tr><td>E_ACCESSDENIED</td>
279 <td>
280 Returned when the called object is not ready. Since the lifetime of a
281 public COM object cannot be fully controlled by the implementation,
282 VirtualBox maintains the readiness state for all objects it creates and
283 returns this code in response to any method call on the object that was
284 deactivated by VirtualBox and is not functioning any more.
285 </td>
286 </tr>
287 <tr><td>E_OUTOFMEMORY</td>
288 <td>
289 Returned when a memory allocation operation fails.
290 </td>
291 </tr>
292 </table>
293 </desc>
294 </descGroup>
295
296 <!--
297 Note that src/VBox/Runtime/common/err/errmsgvboxcom.xsl will ignore
298 everything in <result>/<desc> after (and including) the first dot, so express
299 the matter of the error code in the first sentence and keep it short.
300 -->
301
302 <result name="VBOX_E_OBJECT_NOT_FOUND" value="0x80BB0001">
303 <desc>
304 Object corresponding to the supplied arguments does not exist.
305 </desc>
306 </result>
307
308 <result name="VBOX_E_INVALID_VM_STATE" value="0x80BB0002">
309 <desc>
310 Current virtual machine state prevents the operation.
311 </desc>
312 </result>
313
314 <result name="VBOX_E_VM_ERROR" value="0x80BB0003">
315 <desc>
316 Virtual machine error occurred attempting the operation.
317 </desc>
318 </result>
319
320 <result name="VBOX_E_FILE_ERROR" value="0x80BB0004">
321 <desc>
322 File not accessible or erroneous file contents.
323 </desc>
324 </result>
325
326 <result name="VBOX_E_IPRT_ERROR" value="0x80BB0005">
327 <desc>
328 Runtime subsystem error.
329 </desc>
330 </result>
331
332 <result name="VBOX_E_PDM_ERROR" value="0x80BB0006">
333 <desc>
334 Pluggable Device Manager error.
335 </desc>
336 </result>
337
338 <result name="VBOX_E_INVALID_OBJECT_STATE" value="0x80BB0007">
339 <desc>
340 Current object state prohibits operation.
341 </desc>
342 </result>
343
344 <result name="VBOX_E_HOST_ERROR" value="0x80BB0008">
345 <desc>
346 Host operating system related error.
347 </desc>
348 </result>
349
350 <result name="VBOX_E_NOT_SUPPORTED" value="0x80BB0009">
351 <desc>
352 Requested operation is not supported.
353 </desc>
354 </result>
355
356 <result name="VBOX_E_XML_ERROR" value="0x80BB000A">
357 <desc>
358 Invalid XML found.
359 </desc>
360 </result>
361
362 <result name="VBOX_E_INVALID_SESSION_STATE" value="0x80BB000B">
363 <desc>
364 Current session state prohibits operation.
365 </desc>
366 </result>
367
368 <result name="VBOX_E_OBJECT_IN_USE" value="0x80BB000C">
369 <desc>
370 Object being in use prohibits operation.
371 </desc>
372 </result>
373
374 <!--
375 Note that src/VBox/Runtime/common/err/errmsgvboxcom.xsl will ignore
376 everything in <result>/<desc> after (and including) the first dot, so express
377 the matter of the error code in the first sentence and keep it short.
378 -->
379
380 <descGroup/>
381
382 <!--
383 // all common enums
384 /////////////////////////////////////////////////////////////////////////
385 -->
386
387 <enum name="SettingsVersion"
388 uuid="52bd6f5f-1adb-4493-975d-581a9c4b803f"
389 >
390 <desc>Settings version of VirtualBox settings files. This is written to
391 the "version" attribute of the root "VirtualBox" element in the settings
392 file XML and indicates which VirtualBox version wrote the file.
393 </desc>
394
395 <const name="Null" value="0">
396 <desc>Null value, indicates invalid version.</desc>
397 </const>
398 <const name="v1_0" value="1">
399 <desc>Legacy settings version, not currently supported.</desc>
400 </const>
401 <const name="v1_1" value="2">
402 <desc>Legacy settings version, not currently supported.</desc>
403 </const>
404 <const name="v1_2" value="3">
405 <desc>Legacy settings version, not currently supported.</desc>
406 </const>
407 <const name="v1_3pre" value="4">
408 <desc>Legacy settings version, not currently supported.</desc>
409 </const>
410 <const name="v1_3" value="5">
411 <desc>Settings version "1.3", written by VirtualBox 2.0.12.</desc>
412 <!--
413 Machine XML: Capitalization of Uart, Lpt elements and many attributes changed.
414 -->
415 </const>
416 <const name="v1_4" value="6">
417 <desc>Intermediate settings version, understood by VirtualBox 2.1.x.</desc>
418 <!--
419 VirtualBox.xml: big DiskRegistry -> MediaRegistry revamp, various HardDisk types merged
420 (was VirtualDiskImage, VMDKImage, VHDImage, ISCSIHardDisk, CustomHardDisk, DiffHardDisk)
421 -->
422 </const>
423 <const name="v1_5" value="7">
424 <desc>Intermediate settings version, understood by VirtualBox 2.1.x.</desc>
425 <!-- 2008-09-04: 2.0.0 released
426 2008-11-20: settings version 1.5 introduced
427 2008-12-17: 2.1.0 released
428 Machine changes:
429 guest OS identifiers changed;
430 Machine/Hardware/Display/MonitorCount renamed to monitorCount;
431 Machine/Hardware/Display/Accelerate3D renamed to accelerate3D;
432 Machine/Hardware/CPU/CPUCount/@count changed to CPU/@count
433 -->
434 </const>
435 <const name="v1_6" value="8">
436 <desc>Settings version "1.6", written by VirtualBox 2.1.4 (at least).</desc>
437 <!-- 2008-12-17: 2.1.0 released
438 2008-12-19: settings version 1.6 introduced (is in 2.1 branch)
439 2009-04-08: 2.2.0 released
440 Machine changes: remove all Machine/Hardware/Network/Adapter/HostInterface[@TAPSetup or @TAPTerminate]/ attributes (done)
441 -->
442 </const>
443 <const name="v1_7" value="9">
444 <desc>Settings version "1.7", written by VirtualBox 2.2.x and 3.0.x.</desc>
445 <!-- 2008-12-17: 2.1.0 released
446 2009-03-11: settings version 1.7 introduced (is in 2.2 branch)
447 2009-04-08: 2.2.0 released
448 VirtualBox.xml additions: NetserviceRegistry with DHCPServers (done)
449 Machine changes: HardDiskAttachments is now StorageControllers (done)
450 -->
451 </const>
452 <const name="v1_8" value="10">
453 <desc>Intermediate settings version "1.8", understood by VirtualBox 3.1.x.</desc>
454 <!-- Machine additions: Display/@accelerate2DVideo (done)
455 -->
456 </const>
457 <const name="v1_9" value="11">
458 <desc>Settings version "1.9", written by VirtualBox 3.1.x.</desc>
459 <!-- The big storage controller / DVD / Floppy rework (done)
460 -->
461 </const>
462 <const name="v1_10" value="12">
463 <desc>Settings version "1.10", written by VirtualBox 3.2.x.</desc>
464 <!-- Machine changes: RTC localOrUTC (done)
465 CPU hot-plug support
466 -->
467 </const>
468 <const name="v1_11" value="13">
469 <desc>Settings version "1.11", written by VirtualBox 4.0.x.</desc>
470 <!-- Machine changes: HD Audio controller, per-machine disk registries,
471 /@format attribute for DVD and floppy images.
472 -->
473 </const>
474 <const name="Future" value="99999">
475 <desc>Settings version greater than "1.11", written by a future VirtualBox version.</desc>
476 </const>
477 </enum>
478
479 <enum
480 name="AccessMode"
481 uuid="1da0007c-ddf7-4be8-bcac-d84a1558785f"
482 >
483 <desc>
484 Access mode for opening files.
485 </desc>
486
487 <const name="ReadOnly" value="1"/>
488 <const name="ReadWrite" value="2"/>
489 </enum>
490
491 <enum
492 name="MachineState"
493 uuid="ec6c6a9e-113d-4ff4-b44f-0b69f21c97fe"
494 >
495 <desc>
496 Virtual machine execution state.
497
498 This enumeration represents possible values of the <link
499 to="IMachine::state"/> attribute.
500
501 Below is the basic virtual machine state diagram. It shows how the state
502 changes during virtual machine execution. The text in square braces shows
503 a method of the IConsole interface that performs the given state
504 transition.
505
506 <pre>
507 +---------[powerDown()] &lt;- Stuck &lt;--[failure]-+
508 V |
509 +-&gt; PoweredOff --+--&gt;[powerUp()]--&gt; Starting --+ | +-----[resume()]-----+
510 | | | | V |
511 | Aborted -----+ +--&gt; Running --[pause()]--&gt; Paused
512 | | ^ | ^ |
513 | Saved -----------[powerUp()]--&gt; Restoring -+ | | | |
514 | ^ | | | |
515 | | +-----------------------------------------+-|-------------------+ +
516 | | | | |
517 | | +-- Saving &lt;--------[takeSnapshot()]&lt;-------+---------------------+
518 | | | |
519 | +-------- Saving &lt;--------[saveState()]&lt;----------+---------------------+
520 | | |
521 +-------------- Stopping -------[powerDown()]&lt;----------+---------------------+
522 </pre>
523
524 Note that states to the right from PoweredOff, Aborted and Saved in the
525 above diagram are called <i>online VM states</i>. These states
526 represent the virtual machine which is being executed in a dedicated
527 process (usually with a GUI window attached to it where you can see the
528 activity of the virtual machine and interact with it). There are two
529 special pseudo-states, FirstOnline and LastOnline, that can be used in
530 relational expressions to detect if the given machine state is online or
531 not:
532
533 <pre>
534 if (machine.GetState() &gt;= MachineState_FirstOnline &amp;&amp;
535 machine.GetState() &lt;= MachineState_LastOnline)
536 {
537 ...the machine is being executed...
538 }
539 </pre>
540
541 When the virtual machine is in one of the online VM states (that is, being
542 executed), only a few machine settings can be modified. Methods working
543 with such settings contain an explicit note about that. An attempt to
544 change any oter setting or perform a modifying operation during this time
545 will result in the <link to="VBOX_E_INVALID_VM_STATE"/> error.
546
547 All online states except Running, Paused and Stuck are transitional: they
548 represent temporary conditions of the virtual machine that will last as
549 long as the operation that initiated such a condition.
550
551 The Stuck state is a special case. It means that execution of the machine
552 has reached the "Guru Meditation" condition. This condition indicates an
553 internal VMM (virtual machine manager) failure which may happen as a
554 result of either an unhandled low-level virtual hardware exception or one
555 of the recompiler exceptions (such as the <i>too-many-traps</i>
556 condition).
557
558 Note also that any online VM state may transit to the Aborted state. This
559 happens if the process that is executing the virtual machine terminates
560 unexpectedly (for example, crashes). Other than that, the Aborted state is
561 equivalent to PoweredOff.
562
563 There are also a few additional state diagrams that do not deal with
564 virtual machine execution and therefore are shown separately. The states
565 shown on these diagrams are called <i>offline VM states</i> (this includes
566 PoweredOff, Aborted and Saved too).
567
568 The first diagram shows what happens when a lengthy setup operation is
569 being executed (such as <link to="IMachine::attachDevice"/>).
570
571 <pre>
572 +----------------------------------(same state as before the call)------+
573 | |
574 +-&gt; PoweredOff --+ |
575 | | |
576 |-&gt; Aborted -----+--&gt;[lengthy VM configuration call] --&gt; SettingUp -----+
577 | |
578 +-&gt; Saved -------+
579 </pre>
580
581 The next two diagrams demonstrate the process of taking a snapshot of a
582 powered off virtual machine, restoring the state to that as of a snapshot
583 or deleting a snapshot, respectively.
584
585 <pre>
586 +----------------------------------(same state as before the call)------+
587 | |
588 +-&gt; PoweredOff --+ |
589 | +--&gt;[takeSnapshot()] -------------------&gt; Saving ------+
590 +-&gt; Aborted -----+
591
592 +-&gt; PoweredOff --+
593 | |
594 | Aborted -----+--&gt;[restoreSnapshot() ]-------&gt; RestoringSnapshot -+
595 | | [deleteSnapshot() ]-------&gt; DeletingSnapshot --+
596 +-&gt; Saved -------+ |
597 | |
598 +---(Saved if restored from an online snapshot, PoweredOff otherwise)---+
599 </pre>
600
601 Note that the Saving state is present in both the offline state group and
602 online state group. Currently, the only way to determine what group is
603 assumed in a particular case is to remember the previous machine state: if
604 it was Running or Paused, then Saving is an online state, otherwise it is
605 an offline state. This inconsistency may be removed in one of the future
606 versions of VirtualBox by adding a new state.
607
608 <note internal="yes">
609 For whoever decides to touch this enum: In order to keep the
610 comparisons involving FirstOnline and LastOnline pseudo-states valid,
611 the numeric values of these states must be correspondingly updated if
612 needed: for any online VM state, the condition
613 <tt>FirstOnline &lt;= state &lt;= LastOnline</tt> must be
614 @c true. The same relates to transient states for which
615 the condition <tt>FirstOnline &lt;= state &lt;= LastOnline</tt> must be
616 @c true.
617 </note>
618 </desc>
619
620 <const name="Null" value="0">
621 <desc>Null value (never used by the API).</desc>
622 </const>
623 <const name="PoweredOff" value="1">
624 <desc>
625 The machine is not running and has no saved execution state; it has
626 either never been started or been shut down successfully.
627 </desc>
628 </const>
629 <const name="Saved" value="2">
630 <desc>
631 The machine is not currently running, but the execution state of the machine
632 has been saved to an external file when it was running, from where
633 it can be resumed.
634 </desc>
635 </const>
636 <const name="Teleported" value="3">
637 <desc>
638 The machine was teleported to a different host (or process) and then
639 powered off. Take care when powering it on again may corrupt resources
640 it shares with the teleportation target (e.g. disk and network).
641 </desc>
642 </const>
643 <const name="Aborted" value="4">
644 <desc>
645 The process running the machine has terminated abnormally. This may
646 indicate a crash of the VM process in host execution context, or
647 the VM process has been terminated externally.
648 </desc>
649 </const>
650 <const name="Running" value="5">
651 <desc>
652 The machine is currently being executed.
653 <note internal="yes">
654 For whoever decides to touch this enum: In order to keep the
655 comparisons in the old source code valid, this state must immediately
656 precede the Paused state.
657 TODO: Lift this spectacularly wonderful restriction.
658 </note>
659 </desc>
660 </const>
661 <const name="Paused" value="6">
662 <desc>
663 Execution of the machine has been paused.
664 <note internal="yes">
665 For whoever decides to touch this enum: In order to keep the
666 comparisons in the old source code valid, this state must immediately
667 follow the Running state.
668 TODO: Lift this spectacularly wonderful restriction.
669 </note>
670 </desc>
671 </const>
672 <const name="Stuck" value="7">
673 <desc>
674 Execution of the machine has reached the "Guru Meditation"
675 condition. This indicates a severe error in the hypervisor itself.
676 <note internal="yes">
677 bird: Why this uncool name? Could we rename it to "GuruMeditation" or
678 "Guru", perhaps? Or are there some other VMM states that are
679 intended to be lumped in here as well?
680 </note>
681 </desc>
682 </const>
683 <const name="Teleporting" value="8">
684 <desc>
685 The machine is about to be teleported to a different host or process.
686 It is possible to pause a machine in this state, but it will go to the
687 @c TeleportingPausedVM state and it will not be
688 possible to resume it again unless the teleportation fails.
689 </desc>
690 </const>
691 <const name="LiveSnapshotting" value="9">
692 <desc>
693 A live snapshot is being taken. The machine is running normally, but
694 some of the runtime configuration options are inaccessible. Also, if
695 paused while in this state it will transition to
696 @c Saving and it will not be resume the
697 execution until the snapshot operation has completed.
698 </desc>
699 </const>
700 <const name="Starting" value="10">
701 <desc>
702 Machine is being started after powering it on from a
703 zero execution state.
704 </desc>
705 </const>
706 <const name="Stopping" value="11">
707 <desc>
708 Machine is being normally stopped powering it off, or after the guest OS
709 has initiated a shutdown sequence.
710 </desc>
711 </const>
712 <const name="Saving" value="12">
713 <desc>
714 Machine is saving its execution state to a file, or an online
715 snapshot of the machine is being taken.
716 </desc>
717 </const>
718 <const name="Restoring" value="13">
719 <desc>
720 Execution state of the machine is being restored from a file
721 after powering it on from the saved execution state.
722 </desc>
723 </const>
724 <const name="TeleportingPausedVM" value="14">
725 <desc>
726 The machine is being teleported to another host or process, but it is
727 not running. This is the paused variant of the
728 @c state.
729 </desc>
730 </const>
731 <const name="TeleportingIn" value="15">
732 <desc>
733 Teleporting the machine state in from another host or process.
734 </desc>
735 </const>
736 <const name="FaultTolerantSyncing" value="16">
737 <desc>
738 The machine is being synced with a fault tolerant VM running elsewhere.
739 </desc>
740 </const>
741 <const name="DeletingSnapshotOnline" value="17">
742 <desc>
743 Like @c DeletingSnapshot, but the merging of media is ongoing in
744 the background while the machine is running.
745 </desc>
746 </const>
747 <const name="DeletingSnapshotPaused" value="18">
748 <desc>
749 Like @c DeletingSnapshotOnline, but the machine was paused when the
750 merging of differencing media was started.
751 </desc>
752 </const>
753 <const name="RestoringSnapshot" value="19">
754 <desc>
755 A machine snapshot is being restored; this typically does not take long.
756 </desc>
757 </const>
758 <const name="DeletingSnapshot" value="20">
759 <desc>
760 A machine snapshot is being deleted; this can take a long time since this
761 may require merging differencing media. This value indicates that the
762 machine is not running while the snapshot is being deleted.
763 </desc>
764 </const>
765 <const name="SettingUp" value="21">
766 <desc>
767 Lengthy setup operation is in progress.
768 </desc>
769 </const>
770
771 <const name="FirstOnline" value="5" wsmap="suppress"> <!-- Running -->
772 <desc>
773 Pseudo-state: first online state (for use in relational expressions).
774 </desc>
775 </const>
776 <const name="LastOnline" value="18" wsmap="suppress"> <!-- DeletingSnapshotPaused -->
777 <desc>
778 Pseudo-state: last online state (for use in relational expressions).
779 </desc>
780 </const>
781
782 <const name="FirstTransient" value="8" wsmap="suppress"> <!-- Teleporting -->
783 <desc>
784 Pseudo-state: first transient state (for use in relational expressions).
785 </desc>
786 </const>
787 <const name="LastTransient" value="21" wsmap="suppress"> <!-- SettingUp -->
788 <desc>
789 Pseudo-state: last transient state (for use in relational expressions).
790 </desc>
791 </const>
792
793 </enum>
794
795 <enum
796 name="SessionState"
797 uuid="cf2700c0-ea4b-47ae-9725-7810114b94d8"
798 >
799 <desc>
800 Session state. This enumeration represents possible values of
801 <link to="IMachine::sessionState"/> and <link to="ISession::state"/>
802 attributes.
803 </desc>
804
805 <const name="Null" value="0">
806 <desc>Null value (never used by the API).</desc>
807 </const>
808 <const name="Unlocked" value="1">
809 <desc>
810 In <link to="IMachine::sessionState"/>, this means that the machine
811 is not locked for any sessions.
812
813 In <link to="ISession::state"/>, this means that no machine is
814 currently locked for this session.
815 </desc>
816 </const>
817 <const name="Locked" value="2">
818 <desc>
819 In <link to="IMachine::sessionState"/>, this means that the machine
820 is currently locked for a session, whose process identifier can
821 then be found in the <link to="IMachine::sessionPid" /> attribute.
822
823 In <link to="ISession::state"/>, this means that a machine is
824 currently locked for this session, and the mutable machine object
825 can be found in the <link to="ISession::machine"/> attribute
826 (see <link to="IMachine::lockMachine" /> for details).
827 </desc>
828 </const>
829 <const name="Spawning" value="3">
830 <desc>
831 A new process is being spawned for the machine as a result of
832 <link to="IMachine::launchVMProcess"/> call. This state also occurs
833 as a short transient state during an <link to="IMachine::lockMachine"/>
834 call.
835 </desc>
836 </const>
837 <const name="Unlocking" value="4">
838 <desc>
839 The session is being unlocked.
840 </desc>
841 </const>
842 </enum>
843
844 <enum
845 name="CPUPropertyType"
846 uuid="24d356a6-2f45-4abd-b977-1cbe9c4701f5"
847 >
848 <desc>
849 Virtual CPU property type. This enumeration represents possible values of the
850 IMachine get- and setCPUProperty methods.
851 </desc>
852 <const name="Null" value="0">
853 <desc>Null value (never used by the API).</desc>
854 </const>
855 <const name="PAE" value="1">
856 <desc>
857 This setting determines whether VirtualBox will expose the Physical Address
858 Extension (PAE) feature of the host CPU to the guest. Note that in case PAE
859 is not available, it will not be reported.
860 </desc>
861 </const>
862 <const name="Synthetic" value="2">
863 <desc>
864 This setting determines whether VirtualBox will expose a synthetic CPU to the guest to allow
865 teleporting between host systems that differ significantly.
866 </desc>
867 </const>
868 </enum>
869
870
871 <enum
872 name="HWVirtExPropertyType"
873 uuid="ce81dfdd-d2b8-4a90-bbea-40ee8b7ffcee"
874 >
875 <desc>
876 Hardware virtualization property type. This enumeration represents possible values
877 for the <link to="IMachine::getHWVirtExProperty"/> and
878 <link to="IMachine::setHWVirtExProperty"/> methods.
879 </desc>
880 <const name="Null" value="0">
881 <desc>Null value (never used by the API).</desc>
882 </const>
883 <const name="Enabled" value="1">
884 <desc>
885 Whether hardware virtualization (VT-x/AMD-V) is enabled at all. If
886 such extensions are not available, they will not be used.
887 </desc>
888 </const>
889 <const name="Exclusive" value="2">
890 <desc>
891 Whether hardware virtualization is used exclusively by VirtualBox. When enabled,
892 VirtualBox assumes it can acquire full and exclusive access to the VT-x or AMD-V
893 feature of the host. To share these with other hypervisors, you must disable this property.
894 </desc>
895 </const>
896 <const name="VPID" value="3">
897 <desc>
898 Whether VT-x VPID is enabled. If this extension is not available, it will not be used.
899 </desc>
900 </const>
901 <const name="NestedPaging" value="4">
902 <desc>
903 Whether Nested Paging is enabled. If this extension is not available, it will not be used.
904 </desc>
905 </const>
906 <const name="LargePages" value="5">
907 <desc>
908 Whether large page allocation is enabled; requires nested paging and a 64 bits host.
909 </desc>
910 </const>
911 <const name="Force" value="6">
912 <desc>
913 Whether the VM should fail to start if hardware virtualization (VT-x/AMD-V) cannot be used. If
914 not set, there will be an automatic fallback to software virtualization.
915 </desc>
916 </const>
917 </enum>
918
919 <enum
920 name="FaultToleranceState"
921 uuid="5124f7ec-6b67-493c-9dee-ee45a44114e1"
922 >
923 <desc>
924 Used with <link to="IMachine::faultToleranceState" />.
925 </desc>
926 <const name="Inactive" value="1">
927 <desc>No fault tolerance enabled.</desc>
928 </const>
929 <const name="Master" value="2">
930 <desc>Fault tolerant master VM.</desc>
931 </const>
932 <const name="Standby" value="3">
933 <desc>Fault tolerant standby VM.</desc>
934 </const>
935 </enum>
936
937 <enum
938 name="LockType"
939 uuid="138b53f8-db4b-47c5-b32b-4ef52f769413"
940 >
941 <desc>
942 Used with <link to="IMachine::lockMachine" />.
943 </desc>
944 <const name="Write" value="2">
945 <desc>Lock the machine for writing.</desc>
946 </const>
947 <const name="Shared" value="1">
948 <desc>Request only a shared read lock for remote-controlling the machine.</desc>
949 </const>
950 </enum>
951
952 <enum
953 name="SessionType"
954 uuid="A13C02CB-0C2C-421E-8317-AC0E8AAA153A"
955 >
956 <desc>
957 Session type. This enumeration represents possible values of the
958 <link to="ISession::type"/> attribute.
959 </desc>
960
961 <const name="Null" value="0">
962 <desc>Null value (never used by the API).</desc>
963 </const>
964 <const name="WriteLock" value="1">
965 <desc>
966 Session has acquired an exclusive write lock on a machine
967 using <link to="IMachine::lockMachine"/>.
968 </desc>
969 </const>
970 <const name="Remote" value="2">
971 <desc>
972 Session has launched a VM process using
973 <link to="IMachine::launchVMProcess"/>
974 </desc>
975 </const>
976 <const name="Shared" value="3">
977 <desc>
978 Session has obtained a link to another session using
979 <link to="IMachine::lockMachine"/>
980 </desc>
981 </const>
982 </enum>
983
984 <enum
985 name="DeviceType"
986 uuid="6d9420f7-0b56-4636-99f9-7346f1b01e57"
987 >
988 <desc>
989 Device type.
990 </desc>
991 <const name="Null" value="0">
992 <desc>
993 Null value, may also mean "no device" (not allowed for
994 <link to="IConsole::getDeviceActivity"/>).
995 </desc>
996 </const>
997 <const name="Floppy" value="1">
998 <desc>Floppy device.</desc>
999 </const>
1000 <const name="DVD" value="2">
1001 <desc>CD/DVD-ROM device.</desc>
1002 </const>
1003 <const name="HardDisk" value="3">
1004 <desc>Hard disk device.</desc>
1005 </const>
1006 <const name="Network" value="4">
1007 <desc>Network device.</desc>
1008 </const>
1009 <const name="USB" value="5">
1010 <desc>USB device.</desc>
1011 </const>
1012 <const name="SharedFolder" value="6">
1013 <desc>Shared folder device.</desc>
1014 </const>
1015 </enum>
1016
1017 <enum
1018 name="DeviceActivity"
1019 uuid="6FC8AEAA-130A-4eb5-8954-3F921422D707"
1020 >
1021 <desc>
1022 Device activity for <link to="IConsole::getDeviceActivity"/>.
1023 </desc>
1024
1025 <const name="Null" value="0"/>
1026 <const name="Idle" value="1"/>
1027 <const name="Reading" value="2"/>
1028 <const name="Writing" value="3"/>
1029 </enum>
1030
1031 <enum
1032 name="ClipboardMode"
1033 uuid="33364716-4008-4701-8f14-be0fa3d62950"
1034 >
1035 <desc>
1036 Host-Guest clipboard interchange mode.
1037 </desc>
1038
1039 <const name="Disabled" value="0"/>
1040 <const name="HostToGuest" value="1"/>
1041 <const name="GuestToHost" value="2"/>
1042 <const name="Bidirectional" value="3"/>
1043 </enum>
1044
1045 <enum
1046 name="Scope"
1047 uuid="7c91096e-499e-4eca-9f9b-9001438d7855"
1048 >
1049 <desc>
1050 Scope of the operation.
1051
1052 A generic enumeration used in various methods to define the action or
1053 argument scope.
1054 </desc>
1055
1056 <const name="Global" value="0"/>
1057 <const name="Machine" value="1"/>
1058 <const name="Session" value="2"/>
1059 </enum>
1060
1061 <enum
1062 name="BIOSBootMenuMode"
1063 uuid="ae4fb9f7-29d2-45b4-b2c7-d579603135d5"
1064 >
1065 <desc>
1066 BIOS boot menu mode.
1067 </desc>
1068
1069 <const name="Disabled" value="0"/>
1070 <const name="MenuOnly" value="1"/>
1071 <const name="MessageAndMenu" value="2"/>
1072 </enum>
1073
1074 <enum
1075 name="ProcessorFeature"
1076 uuid="64c38e6b-8bcf-45ad-ac03-9b406287c5bf"
1077 >
1078 <desc>
1079 CPU features.
1080 </desc>
1081
1082 <const name="HWVirtEx" value="0"/>
1083 <const name="PAE" value="1"/>
1084 <const name="LongMode" value="2"/>
1085 <const name="NestedPaging" value="3"/>
1086 </enum>
1087
1088 <enum
1089 name="FirmwareType"
1090 uuid="b903f264-c230-483e-ac74-2b37ce60d371"
1091 >
1092 <desc>
1093 Firmware type.
1094 </desc>
1095 <const name="BIOS" value="1">
1096 <desc>BIOS Firmware.</desc>
1097 </const>
1098 <const name="EFI" value="2">
1099 <desc>EFI Firmware, bitness detected basing on OS type.</desc>
1100 </const>
1101 <const name="EFI32" value="3">
1102 <desc>Efi firmware, 32-bit.</desc>
1103 </const>
1104 <const name="EFI64" value="4">
1105 <desc>Efi firmware, 64-bit.</desc>
1106 </const>
1107 <const name="EFIDUAL" value="5">
1108 <desc>Efi firmware, combined 32 and 64-bit.</desc>
1109 </const>
1110 </enum>
1111
1112 <enum
1113 name="PointingHidType"
1114 uuid="0d3c17a2-821a-4b2e-ae41-890c6c60aa97"
1115 >
1116 <desc>
1117 Type of pointing device used in a virtual machine.
1118 </desc>
1119 <const name="None" value="1">
1120 <desc>No mouse.</desc>
1121 </const>
1122 <const name="PS2Mouse" value="2">
1123 <desc>PS/2 auxiliary device, a.k.a. mouse.</desc>
1124 </const>
1125 <const name="USBMouse" value="3">
1126 <desc>USB mouse (relative pointer).</desc>
1127 </const>
1128 <const name="USBTablet" value="4">
1129 <desc>USB tablet (absolute pointer).</desc>
1130 </const>
1131 <const name="ComboMouse" value="5">
1132 <desc>Combined device, working as PS/2 or USB mouse, depending on guest behavior.
1133 Using of such device can have negative performance implications. </desc>
1134 </const>
1135 </enum>
1136
1137 <enum
1138 name="KeyboardHidType"
1139 uuid="5a5b0996-3a3e-44bb-9019-56979812cbcc"
1140 >
1141 <desc>
1142 Type of keyboard device used in a virtual machine.
1143 </desc>
1144 <const name="None" value="1">
1145 <desc>No keyboard.</desc>
1146 </const>
1147 <const name="PS2Keyboard" value="2">
1148 <desc>PS/2 keyboard.</desc>
1149 </const>
1150 <const name="USBKeyboard" value="3">
1151 <desc>USB keyboard.</desc>
1152 </const>
1153 <const name="ComboKeyboard" value="4">
1154 <desc>Combined device, working as PS/2 or USB keyboard, depending on guest behavior.
1155 Using of such device can have negative performance implications. </desc>
1156 </const>
1157 </enum>
1158
1159 <!--
1160 // IVirtualBoxErrorInfo
1161 /////////////////////////////////////////////////////////////////////////
1162 -->
1163
1164 <interface
1165 name="IVirtualBoxErrorInfo" extends="$errorinfo"
1166 uuid="e053d3c0-f493-491b-a735-3a9f0b1feed4"
1167 supportsErrorInfo="no"
1168 wsmap="managed"
1169 >
1170 <desc>
1171 The IVirtualBoxErrorInfo interface represents extended error information.
1172
1173 Extended error information can be set by VirtualBox components after
1174 unsuccessful or partially successful method invocation. This information
1175 can be retrieved by the calling party as an IVirtualBoxErrorInfo object
1176 and then shown to the client in addition to the plain 32-bit result code.
1177
1178 In MS COM, this interface extends the IErrorInfo interface,
1179 in XPCOM, it extends the nsIException interface. In both cases,
1180 it provides a set of common attributes to retrieve error
1181 information.
1182
1183 Sometimes invocation of some component's method may involve methods of
1184 other components that may also fail (independently of this method's
1185 failure), or a series of non-fatal errors may precede a fatal error that
1186 causes method failure. In cases like that, it may be desirable to preserve
1187 information about all errors happened during method invocation and deliver
1188 it to the caller. The <link to="#next"/> attribute is intended
1189 specifically for this purpose and allows to represent a chain of errors
1190 through a single IVirtualBoxErrorInfo object set after method invocation.
1191
1192 Note that errors are stored to a chain in the reverse order, i.e. the
1193 initial error object you query right after method invocation is the last
1194 error set by the callee, the object it points to in the @a next attribute
1195 is the previous error and so on, up to the first error (which is the last
1196 in the chain).
1197 </desc>
1198
1199 <attribute name="resultCode" type="long" readonly="yes">
1200 <desc>
1201 Result code of the error.
1202 Usually, it will be the same as the result code returned
1203 by the method that provided this error information, but not
1204 always. For example, on Win32, CoCreateInstance() will most
1205 likely return E_NOINTERFACE upon unsuccessful component
1206 instantiation attempt, but not the value the component factory
1207 returned. Value is typed 'long', not 'result',
1208 to make interface usable from scripting languages.
1209 <note>
1210 In MS COM, there is no equivalent.
1211 In XPCOM, it is the same as nsIException::result.
1212 </note>
1213 </desc>
1214 </attribute>
1215
1216 <attribute name="interfaceID" type="uuid" mod="string" readonly="yes">
1217 <desc>
1218 UUID of the interface that defined the error.
1219 <note>
1220 In MS COM, it is the same as IErrorInfo::GetGUID, except for the
1221 data type.
1222 In XPCOM, there is no equivalent.
1223 </note>
1224 </desc>
1225 </attribute>
1226
1227 <attribute name="component" type="wstring" readonly="yes">
1228 <desc>
1229 Name of the component that generated the error.
1230 <note>
1231 In MS COM, it is the same as IErrorInfo::GetSource.
1232 In XPCOM, there is no equivalent.
1233 </note>
1234 </desc>
1235 </attribute>
1236
1237 <attribute name="text" type="wstring" readonly="yes">
1238 <desc>
1239 Text description of the error.
1240 <note>
1241 In MS COM, it is the same as IErrorInfo::GetDescription.
1242 In XPCOM, it is the same as nsIException::message.
1243 </note>
1244 </desc>
1245 </attribute>
1246
1247 <attribute name="next" type="IVirtualBoxErrorInfo" readonly="yes">
1248 <desc>
1249 Next error object if there is any, or @c null otherwise.
1250 <note>
1251 In MS COM, there is no equivalent.
1252 In XPCOM, it is the same as nsIException::inner.
1253 </note>
1254 </desc>
1255 </attribute>
1256
1257 </interface>
1258
1259 <!--
1260 // IVirtualBox
1261 /////////////////////////////////////////////////////////////////////////
1262 -->
1263
1264 <interface
1265 name="IDHCPServer" extends="$unknown"
1266 uuid="6cfe387c-74fb-4ca7-bff6-973bec8af7a3"
1267 wsmap="managed"
1268 >
1269 <desc>
1270 The IDHCPServer interface represents the vbox dhcp server configuration.
1271
1272 To enumerate all the dhcp servers on the host, use the
1273 <link to="IVirtualBox::DHCPServers"/> attribute.
1274 </desc>
1275
1276 <attribute name="enabled" type="boolean">
1277 <desc>
1278 specifies if the dhcp server is enabled
1279 </desc>
1280 </attribute>
1281
1282 <attribute name="IPAddress" type="wstring" readonly="yes">
1283 <desc>
1284 specifies server IP
1285 </desc>
1286 </attribute>
1287
1288 <attribute name="networkMask" type="wstring" readonly="yes">
1289 <desc>
1290 specifies server network mask
1291 </desc>
1292 </attribute>
1293
1294 <attribute name="networkName" type="wstring" readonly="yes">
1295 <desc>
1296 specifies internal network name the server is used for
1297 </desc>
1298 </attribute>
1299
1300 <attribute name="lowerIP" type="wstring" readonly="yes">
1301 <desc>
1302 specifies from IP address in server address range
1303 </desc>
1304 </attribute>
1305
1306 <attribute name="upperIP" type="wstring" readonly="yes">
1307 <desc>
1308 specifies to IP address in server address range
1309 </desc>
1310 </attribute>
1311
1312 <method name="setConfiguration">
1313 <desc>
1314 configures the server
1315 <result name="E_INVALIDARG">
1316 invalid configuration supplied
1317 </result>
1318 </desc>
1319 <param name="IPAddress" type="wstring" dir="in">
1320 <desc>
1321 server IP address
1322 </desc>
1323 </param>
1324 <param name="networkMask" type="wstring" dir="in">
1325 <desc>
1326 server network mask
1327 </desc>
1328 </param>
1329 <param name="FromIPAddress" type="wstring" dir="in">
1330 <desc>
1331 server From IP address for address range
1332 </desc>
1333 </param>
1334 <param name="ToIPAddress" type="wstring" dir="in">
1335 <desc>
1336 server To IP address for address range
1337 </desc>
1338 </param>
1339 </method>
1340
1341 <method name="start">
1342 <desc>
1343 Starts DHCP server process.
1344 <result name="E_FAIL">
1345 Failed to start the process.
1346 </result>
1347 </desc>
1348 <param name="networkName" type="wstring" dir="in">
1349 <desc>
1350 Name of internal network DHCP server should attach to.
1351 </desc>
1352 </param>
1353 <param name="trunkName" type="wstring" dir="in">
1354 <desc>
1355 Name of internal network trunk.
1356 </desc>
1357 </param>
1358 <param name="trunkType" type="wstring" dir="in">
1359 <desc>
1360 Type of internal network trunk.
1361 </desc>
1362 </param>
1363 </method>
1364
1365 <method name="stop">
1366 <desc>
1367 Stops DHCP server process.
1368 <result name="E_FAIL">
1369 Failed to stop the process.
1370 </result>
1371 </desc>
1372 </method>
1373 </interface>
1374
1375 <interface
1376 name="IVirtualBox" extends="$unknown"
1377 uuid="b59d8e0a-9aeb-4196-a5e9-398970ddbae5"
1378 wsmap="managed"
1379 >
1380 <desc>
1381 The IVirtualBox interface represents the main interface exposed by the
1382 product that provides virtual machine management.
1383
1384 An instance of IVirtualBox is required for the product to do anything
1385 useful. Even though the interface does not expose this, internally,
1386 IVirtualBox is implemented as a singleton and actually lives in the
1387 process of the VirtualBox server (VBoxSVC.exe). This makes sure that
1388 IVirtualBox can track the state of all virtual machines on a particular
1389 host, regardless of which frontend started them.
1390
1391 To enumerate all the virtual machines on the host, use the
1392 <link to="IVirtualBox::machines"/> attribute.
1393 </desc>
1394
1395 <attribute name="version" type="wstring" readonly="yes">
1396 <desc>
1397 A string representing the version number of the product. The
1398 format is 3 integer numbers divided by dots (e.g. 1.0.1). The
1399 last number represents the build number and will frequently change.
1400 </desc>
1401 </attribute>
1402
1403 <attribute name="revision" type="unsigned long" readonly="yes">
1404 <desc>
1405 The internal build revision number of the product.
1406 </desc>
1407 </attribute>
1408
1409 <attribute name="packageType" type="wstring" readonly="yes">
1410 <desc>
1411 A string representing the package type of this product. The
1412 format is OS_ARCH_DIST where OS is either WINDOWS, LINUX,
1413 SOLARIS, DARWIN. ARCH is either 32BITS or 64BITS. DIST
1414 is either GENERIC, UBUNTU_606, UBUNTU_710, or something like
1415 this.
1416 </desc>
1417 </attribute>
1418
1419 <attribute name="homeFolder" type="wstring" readonly="yes">
1420 <desc>
1421 Full path to the directory where the global settings file,
1422 <tt>VirtualBox.xml</tt>, is stored.
1423
1424 In this version of VirtualBox, the value of this property is
1425 always <tt>&lt;user_dir&gt;/.VirtualBox</tt> (where
1426 <tt>&lt;user_dir&gt;</tt> is the path to the user directory,
1427 as determined by the host OS), and cannot be changed.
1428
1429 This path is also used as the base to resolve relative paths in
1430 places where relative paths are allowed (unless otherwise
1431 expressly indicated).
1432 </desc>
1433 </attribute>
1434
1435 <attribute name="settingsFilePath" type="wstring" readonly="yes">
1436 <desc>
1437 Full name of the global settings file.
1438 The value of this property corresponds to the value of
1439 <link to="#homeFolder"/> plus <tt>/VirtualBox.xml</tt>.
1440 </desc>
1441 </attribute>
1442
1443 <attribute name="host" type="IHost" readonly="yes">
1444 <desc>Associated host object.</desc>
1445 </attribute>
1446
1447 <attribute name="systemProperties" type="ISystemProperties" readonly="yes">
1448 <desc>Associated system information object.</desc>
1449 </attribute>
1450
1451 <attribute name="machines" type="IMachine" readonly="yes" safearray="yes">
1452 <desc>
1453 Array of machine objects registered within this VirtualBox instance.
1454 </desc>
1455 </attribute>
1456
1457 <attribute name="hardDisks" type="IMedium" readonly="yes" safearray="yes">
1458 <desc>
1459 Array of medium objects known to this VirtualBox installation.
1460
1461 This array contains only base media. All differencing
1462 media of the given base medium can be enumerated using
1463 <link to="IMedium::children"/>.
1464 </desc>
1465 </attribute>
1466
1467 <attribute name="DVDImages" type="IMedium" readonly="yes" safearray="yes">
1468 <desc>
1469 Array of CD/DVD image objects currently in use by this VirtualBox instance.
1470 </desc>
1471 </attribute>
1472
1473 <attribute name="floppyImages" type="IMedium" readonly="yes" safearray="yes">
1474 <desc>
1475 Array of floppy image objects currently in use by this VirtualBox instance.
1476 </desc>
1477 </attribute>
1478
1479 <attribute name="progressOperations" type="IProgress" readonly="yes" safearray="yes"/>
1480
1481 <attribute name="guestOSTypes" type="IGuestOSType" readonly="yes" safearray="yes"/>
1482
1483 <attribute name="sharedFolders" type="ISharedFolder" readonly="yes" safearray="yes">
1484 <desc>
1485 Collection of global shared folders. Global shared folders are
1486 available to all virtual machines.
1487
1488 New shared folders are added to the collection using
1489 <link to="#createSharedFolder"/>. Existing shared folders can be
1490 removed using <link to="#removeSharedFolder"/>.
1491
1492 <note>
1493 In the current version of the product, global shared folders are not
1494 implemented and therefore this collection is always empty.
1495 </note>
1496 </desc>
1497 </attribute>
1498
1499 <attribute name="performanceCollector" type="IPerformanceCollector" readonly="yes">
1500 <desc>
1501 Associated performance collector object.
1502 </desc>
1503 </attribute>
1504
1505 <attribute name="DHCPServers" type="IDHCPServer" safearray="yes" readonly="yes">
1506 <desc>
1507 dhcp server settings.
1508 </desc>
1509 </attribute>
1510
1511 <attribute name="eventSource" type="IEventSource" readonly="yes">
1512 <desc>
1513 Event source for VirtualBox events.
1514 </desc>
1515 </attribute>
1516
1517 <method name="composeMachineFilename">
1518 <desc>
1519 Returns a recommended full path of the settings file name for a new virtual
1520 machine.
1521
1522 This API serves two purposes:
1523
1524 <ul>
1525 <li>It gets called by <link to="#createMachine" /> if NULL is specified
1526 for the @a settingsFile argument there, which means that API should use
1527 a recommended default file name.</li>
1528
1529 <li>It can be called manually by a client software before creating a machine,
1530 e.g. if that client wants to pre-create the machine directory to create
1531 virtual hard disks in that directory together with the new machine
1532 settings file. In that case, the file name should be stripped from the
1533 full settings file path returned by this function to obtain the
1534 machine directory.</li>
1535 </ul>
1536
1537 See the <link to="IMachine::name"/> attribute description for more details about
1538 the machine name.
1539
1540 Every machine has a <i>settings file</i> that is used to store
1541 the machine configuration. This file is stored in a directory called the
1542 <i>machine settings subfolder</i>. Both the settings subfolder and file
1543 will have a name that corresponds to the name of the virtual machine.
1544 You can specify where to create the machine setting subfolder using the
1545 @a baseFolder argument.
1546
1547 If @a baseFolder is a @c null or empty string (which is recommended), the
1548 default machine settings folder
1549 (see <link to="ISystemProperties::defaultMachineFolder" />) will be used as
1550 a base folder for the created machine. Otherwise the given base folder
1551 will be used.
1552
1553 In either case, the full path to the resulting settings file has the
1554 following structure:
1555 <pre>
1556 &lt;base_folder&gt;/&lt;machine_name&gt;/&lt;machine_name&gt;.xml
1557 </pre>
1558
1559 This method does not access the host disks. In particular, it does not check
1560 for whether a machine of this name already exists.
1561 </desc>
1562 <param name="name" type="wstring" dir="in">
1563 <desc>Suggested machine name.</desc>
1564 </param>
1565 <param name="baseFolder" type="wstring" dir="in">
1566 <desc>Base machine folder (optional).</desc>
1567 </param>
1568 <param name="file" type="wstring" dir="return">
1569 <desc>Fully qualified path where the machine would be created.</desc>
1570 </param>
1571 </method>
1572
1573 <method name="createMachine">
1574 <desc>
1575 Creates a new virtual machine by creating a machine settings file at
1576 the given location.
1577
1578 VirtualBox machine settings files use a custom XML dialect. Starting
1579 with VirtualBox 4.0, a ".vbox" extension is recommended, but not enforced,
1580 and machine files can be created at arbitrary locations. However, it is
1581 is recommended that machines are created in the "VirtualBox VMs" folder
1582 created in the user's home directory
1583 (e.g. "/home/user/VirtualBox VMs/name/name.vbox").
1584
1585 If you specify NULL for the @a settingsFile argument,
1586 <link to="#composeMachineFilename" /> is called automatically to have
1587 such a recommended name composed based on the machine name given in
1588 the @a name argument.
1589
1590 The new machine is created unregistered, with the initial configuration
1591 set according to the specified guest OS type. A typical sequence of
1592 actions to create a new virtual machine is as follows:
1593
1594 <ol>
1595 <li>
1596 Call this method to have a new machine created. The returned machine
1597 object will be "mutable" allowing to change any machine property.
1598 </li>
1599
1600 <li>
1601 Configure the machine using the appropriate attributes and methods.
1602 </li>
1603
1604 <li>
1605 Call <link to="IMachine::saveSettings" /> to write the settings
1606 to the machine's XML settings file. The configuration of the newly
1607 created machine will not be saved to disk until this method is
1608 called.
1609 </li>
1610
1611 <li>
1612 Call <link to="#registerMachine" /> to add the machine to the list
1613 of machines known to VirtualBox.
1614 </li>
1615 </ol>
1616
1617 The specified guest OS type identifier must match an ID of one of known
1618 guest OS types listed in the <link to="IVirtualBox::guestOSTypes"/>
1619 array.
1620
1621 If the resulting settings file already exists, this method will fail
1622 with <link to="VBOX_E_FILE_ERROR"/>.
1623
1624 Optionally, you may specify an UUID of to assign to the created machine.
1625 However, this is not recommended and you should normally pass an empty
1626 (@c null) UUID to this method so that a new UUID will be automatically
1627 generated for every created machine. You can use UUID
1628 00000000-0000-0000-0000-000000000000 as @c null value.
1629
1630 <note>
1631 There is no way to change the name of the settings file or
1632 subfolder of the created machine directly.
1633 </note>
1634
1635 <result name="VBOX_E_OBJECT_NOT_FOUND">
1636 @a osTypeId is invalid.
1637 </result>
1638 <result name="VBOX_E_FILE_ERROR">
1639 Resulting settings file name is invalid or the settings file already
1640 exists or could not be created due to an I/O error.
1641 </result>
1642 <result name="E_INVALIDARG">
1643 @a name is empty or @c null.
1644 </result>
1645 </desc>
1646
1647 <param name="settingsFile" type="wstring" dir="in">
1648 <desc>Fully qualified path where the settings file should be created,
1649 or NULL for a default folder and file based on the @a name argument
1650 (see <link to="#composeMachineFilename" />).</desc>
1651 </param>
1652 <param name="name" type="wstring" dir="in">
1653 <desc>Machine name.</desc>
1654 </param>
1655 <param name="osTypeId" type="wstring" dir="in">
1656 <desc>Guest OS Type ID.</desc>
1657 </param>
1658 <param name="id" type="uuid" mod="string" dir="in">
1659 <desc>Machine UUID (optional).</desc>
1660 </param>
1661 <param name="forceOverwrite" type="boolean" dir="in">
1662 <desc>If true, an existing machine settings file will be overwritten.</desc>
1663 </param>
1664 <param name="machine" type="IMachine" dir="return">
1665 <desc>Created machine object.</desc>
1666 </param>
1667 </method>
1668
1669 <method name="openMachine">
1670 <desc>
1671 Opens a virtual machine from the existing settings file.
1672 The opened machine remains unregistered until you call
1673 <link to="#registerMachine"/>.
1674
1675 The specified settings file name can be absolute
1676 (full path) or relative to the <link to="IVirtualBox::homeFolder">
1677 VirtualBox home directory</link>. This file must exist
1678 and must be a valid machine settings file whose contents
1679 will be used to construct the machine object.
1680
1681 <result name="VBOX_E_FILE_ERROR">
1682 Settings file name invalid, not found or sharing violation.
1683 </result>
1684 </desc>
1685 <param name="settingsFile" type="wstring" dir="in">
1686 <desc>
1687 Name of the machine settings file.
1688 </desc>
1689 </param>
1690 <param name="machine" type="IMachine" dir="return">
1691 <desc>Opened machine object.</desc>
1692 </param>
1693 <note>
1694 <link to="IMachine::settingsModified"/> will return
1695 @c false for the created machine, until any of machine settings
1696 are changed.
1697 </note>
1698 </method>
1699
1700 <method name="registerMachine">
1701 <desc>
1702
1703 Registers the machine previously created using
1704 <link to="#createMachine"/> or opened using
1705 <link to="#openMachine"/> within this VirtualBox installation. After
1706 successful method invocation, the
1707 <link to="IMachineRegisteredEvent"/> event is fired.
1708
1709 <note>
1710 This method implicitly calls <link to="IMachine::saveSettings"/>
1711 to save all current machine settings before registering it.
1712 </note>
1713
1714 <result name="VBOX_E_OBJECT_NOT_FOUND">
1715 No matching virtual machine found.
1716 </result>
1717 <result name="VBOX_E_INVALID_OBJECT_STATE">
1718 Virtual machine was not created within this VirtualBox instance.
1719 </result>
1720
1721 </desc>
1722 <param name="machine" type="IMachine" dir="in"/>
1723 </method>
1724
1725 <method name="findMachine">
1726 <desc>
1727 Attempts to find a virtual machine given its name or UUID.
1728
1729 <note>Inaccessible machines cannot be found by name, only by UUID, because their name
1730 cannot safely be determined.</note>
1731
1732 <result name="VBOX_E_OBJECT_NOT_FOUND">
1733 Could not find registered machine matching @a nameOrId.
1734 </result>
1735
1736 </desc>
1737 <param name="nameOrId" type="wstring" dir="in">
1738 <desc>What to search for. This can either be the UUID or the name of a virtual machine.</desc>
1739 </param>
1740 <param name="machine" type="IMachine" dir="return">
1741 <desc>Machine object, if found.</desc>
1742 </param>
1743 </method>
1744
1745 <method name="createAppliance">
1746 <desc>
1747 Creates a new appliance object, which represents an appliance in the Open Virtual Machine
1748 Format (OVF). This can then be used to import an OVF appliance into VirtualBox or to export
1749 machines as an OVF appliance; see the documentation for <link to="IAppliance" /> for details.
1750 </desc>
1751 <param name="appliance" type="IAppliance" dir="return">
1752 <desc>New appliance.</desc>
1753 </param>
1754 </method>
1755
1756 <method name="createHardDisk">
1757 <desc>
1758 Creates a new base medium object that will use the given storage
1759 format and location for medium data.
1760
1761 Note that the actual storage unit is not created by this method. In
1762 order to do it, and before you are able to attach the created medium
1763 to virtual machines, you must call one of the following methods to
1764 allocate a format-specific storage unit at the specified location:
1765 <ul>
1766 <li><link to="IMedium::createBaseStorage"/></li>
1767 <li><link to="IMedium::createDiffStorage"/></li>
1768 </ul>
1769
1770 Some medium attributes, such as <link to="IMedium::id"/>, may
1771 remain uninitialized until the medium storage unit is successfully
1772 created by one of the above methods.
1773
1774 After the storage unit is successfully created, it will be
1775 accessible through the <link to="#findMedium"/> method and can
1776 be found in the <link to="#hardDisks"/> array.
1777
1778 The list of all storage formats supported by this VirtualBox
1779 installation can be obtained using
1780 <link to="ISystemProperties::mediumFormats"/>. If the @a format
1781 attribute is empty or @c null then the default storage format
1782 specified by <link to="ISystemProperties::defaultHardDiskFormat"/> will
1783 be used for creating a storage unit of the medium.
1784
1785 Note that the format of the location string is storage format specific.
1786 See <link to="IMedium::location"/> and IMedium for more details.
1787
1788 <result name="VBOX_E_OBJECT_NOT_FOUND">
1789 @a format identifier is invalid. See
1790 <link to="ISystemProperties::mediumFormats"/>.
1791 </result>
1792 <result name="VBOX_E_FILE_ERROR">
1793 @a location is a not valid file name (for file-based formats only).
1794 </result>
1795 </desc>
1796 <param name="format" type="wstring" dir="in">
1797 <desc>
1798 Identifier of the storage format to use for the new medium.
1799 </desc>
1800 </param>
1801 <param name="location" type="wstring" dir="in">
1802 <desc>
1803 Location of the storage unit for the new medium.
1804 </desc>
1805 </param>
1806 <param name="medium" type="IMedium" dir="return">
1807 <desc>Created medium object.</desc>
1808 </param>
1809 </method>
1810
1811 <method name="openMedium">
1812 <desc>
1813 Opens a medium from an existing storage location.
1814
1815 Once a medium has been opened, it can be passed to other VirtualBox
1816 methods, in particular to <link to="IMachine::attachDevice" />.
1817
1818 Depending on the given device type, the file at the storage location
1819 must be in one of the media formats understood by VirtualBox:
1820
1821 <ul>
1822 <li>With a "HardDisk" device type, the file must be a hard disk image
1823 in one of the formats supported by VirtualBox (see
1824 <link to="ISystemProperties::mediumFormats" />).
1825 After this method succeeds, if the medium is a base medium, it
1826 will be added to the <link to="#hardDisks"/> array attribute. </li>
1827 <li>With a "DVD" device type, the file must be an ISO 9960 CD/DVD image.
1828 After this method succeeds, the medium will be added to the
1829 <link to="#DVDImages"/> array attribute.</li>
1830 <li>With a "Floppy" device type, the file must be an RAW floppy image.
1831 After this method succeeds, the medium will be added to the
1832 <link to="#floppyImages"/> array attribute.</li>
1833 </ul>
1834
1835 After having been opened, the medium can be found by the <link to="#findMedium"/>
1836 method and can be attached to virtual machines. See <link to="IMedium" /> for more details.
1837
1838 The UUID of the newly opened medium will either be retrieved from the
1839 storage location, if the format supports it (e.g. for hard disk images),
1840 or a new UUID will be randomly generated (e.g. for ISO and RAW files).
1841 If for some reason you need to change the medium's UUID, use
1842 <link to="IMedium::setIDs" />.
1843
1844 If a differencing hard disk medium is to be opened by this method, the
1845 operation will succeed only if its parent medium and all ancestors,
1846 if any, are already known to this VirtualBox installation (for example,
1847 were opened by this method before).
1848
1849 This method attempts to guess the storage format of the specified medium
1850 by reading medium data at the specified location.
1851
1852 If @a accessMode is ReadWrite (which it should be for hard disks and floppies),
1853 the image is opened for read/write access and must have according permissions,
1854 as VirtualBox may actually write status information into the disk's metadata
1855 sections.
1856
1857 Note that write access is required for all typical hard disk usage in VirtualBox,
1858 since VirtualBox may need to write metadata such as a UUID into the image.
1859 The only exception is opening a source image temporarily for copying and
1860 cloning (see <link to="IMedium::cloneTo" /> when the image will be closed
1861 again soon.
1862
1863 The format of the location string is storage format specific. See
1864 <link to="IMedium::location"/> and IMedium for more details.
1865
1866 Prior to VirtualBox 4.0, opening a medium added it to a global media
1867 registry in the VirtualBox.xml file, which was shared between all machines
1868 and made transporting machines and their media from one host to another
1869 difficult.
1870
1871 Starting with VirtualBox 4.0, media are only added to a registry when
1872 they are attached to a machine. Machines created with VirtualBox 4.0
1873 or later can have their own media registry. As a result, a medium attached
1874 to such a machine will be remembered in that machine's XML settings file.
1875 Media attached to older machines will continue to be added to the global
1876 registry.
1877
1878 <result name="VBOX_E_FILE_ERROR">
1879 Invalid medium storage file location or could not find the medium
1880 at the specified location.
1881 </result>
1882 <result name="VBOX_E_IPRT_ERROR">
1883 Could not get medium storage format.
1884 </result>
1885 <result name="E_INVALIDARG">
1886 Invalid medium storage format.
1887 </result>
1888 <result name="VBOX_E_INVALID_OBJECT_STATE">
1889 Medium has already been added to a media registry.
1890 </result>
1891 </desc>
1892 <param name="location" type="wstring" dir="in">
1893 <desc>
1894 Location of the storage unit that contains medium data in one of
1895 the supported storage formats.
1896 </desc>
1897 </param>
1898 <param name="deviceType" type="DeviceType" dir="in">
1899 <desc>
1900 Must be one of "HardDisk", "DVD" or "Floppy".
1901 </desc>
1902 </param>
1903 <param name="accessMode" type="AccessMode" dir="in">
1904 <desc>Whether to open the image in read/write or read-only mode. For
1905 a "DVD" device type, this is ignored and read-only mode is always assumed.</desc>
1906 </param>
1907 <param name="medium" type="IMedium" dir="return">
1908 <desc>Opened medium object.</desc>
1909 </param>
1910 </method>
1911
1912 <method name="findMedium">
1913 <desc>
1914 Returns a medium of the given type that uses the given fully qualified
1915 location or UUID to store medium data.
1916
1917 The given medium must be known to this VirtualBox installation, i.e.
1918 it must be previously created by <link to="#createHardDisk"/> or opened
1919 by <link to="#openMedium"/>.
1920
1921 The search is done by comparing the value of the @a location argument to
1922 the <link to="IMedium::location"/> and <link to="IMedium::id" />
1923 attributes of each known medium.
1924
1925 On case sensitive file systems, a case sensitive comparison is performed,
1926 otherwise the case of symbols in the file path is ignored.
1927
1928 <result name="VBOX_E_OBJECT_NOT_FOUND">
1929 No medium object matching @a location found.
1930 </result>
1931 </desc>
1932 <param name="location" type="wstring" dir="in">
1933 <desc>What to search for. This can either be the UUID or the location string of an open medium.</desc>
1934 </param>
1935 <param name="type" type="DeviceType" dir="in">
1936 <desc>Device type (must be HardDisk, DVD or Floppy)</desc>
1937 </param>
1938 <param name="medium" type="IMedium" dir="return">
1939 <desc>Medium object, if found.</desc>
1940 </param>
1941 </method>
1942
1943 <method name="getGuestOSType">
1944 <desc>
1945 Returns an object describing the specified guest OS type.
1946
1947 The requested guest OS type is specified using a string which is a
1948 mnemonic identifier of the guest operating system, such as
1949 <tt>"win31"</tt> or <tt>"ubuntu"</tt>. The guest OS type ID of a
1950 particular virtual machine can be read or set using the
1951 <link to="IMachine::OSTypeId"/> attribute.
1952
1953 The <link to="IVirtualBox::guestOSTypes"/> collection contains all
1954 available guest OS type objects. Each object has an
1955 <link to="IGuestOSType::id"/> attribute which contains an identifier of
1956 the guest OS this object describes.
1957
1958 <result name="E_INVALIDARG">
1959 @a id is not a valid Guest OS type.
1960 </result>
1961
1962 </desc>
1963 <param name="id" type="uuid" mod="string" dir="in">
1964 <desc>Guest OS type ID string.</desc>
1965 </param>
1966 <param name="type" type="IGuestOSType" dir="return">
1967 <desc>Guest OS type object.</desc>
1968 </param>
1969 </method>
1970
1971 <method name="createSharedFolder">
1972 <desc>
1973 Creates a new global shared folder by associating the given logical
1974 name with the given host path, adds it to the collection of shared
1975 folders and starts sharing it. Refer to the description of
1976 <link to="ISharedFolder"/> to read more about logical names.
1977 <note>
1978 In the current implementation, this operation is not
1979 implemented.
1980 </note>
1981 </desc>
1982 <param name="name" type="wstring" dir="in">
1983 <desc>Unique logical name of the shared folder.</desc>
1984 </param>
1985 <param name="hostPath" type="wstring" dir="in">
1986 <desc>Full path to the shared folder in the host file system.</desc>
1987 </param>
1988 <param name="writable" type="boolean" dir="in">
1989 <desc>Whether the share is writable or readonly</desc>
1990 </param>
1991 <param name="automount" type="boolean" dir="in">
1992 <desc>Whether the share gets automatically mounted by the guest
1993 or not.</desc>
1994 </param>
1995 </method>
1996
1997 <method name="removeSharedFolder">
1998 <desc>
1999 Removes the global shared folder with the given name previously
2000 created by <link to="#createSharedFolder"/> from the collection of
2001 shared folders and stops sharing it.
2002 <note>
2003 In the current implementation, this operation is not
2004 implemented.
2005 </note>
2006 </desc>
2007 <param name="name" type="wstring" dir="in">
2008 <desc>Logical name of the shared folder to remove.</desc>
2009 </param>
2010 </method>
2011
2012 <method name="getExtraDataKeys">
2013 <desc>
2014 Returns an array representing the global extra data keys which currently
2015 have values defined.
2016 </desc>
2017 <param name="value" type="wstring" dir="return" safearray="yes">
2018 <desc>Array of extra data keys.</desc>
2019 </param>
2020 </method>
2021
2022 <method name="getExtraData">
2023 <desc>
2024 Returns associated global extra data.
2025
2026 If the requested data @a key does not exist, this function will
2027 succeed and return an empty string in the @a value argument.
2028
2029 <result name="VBOX_E_FILE_ERROR">
2030 Settings file not accessible.
2031 </result>
2032 <result name="VBOX_E_XML_ERROR">
2033 Could not parse the settings file.
2034 </result>
2035
2036 </desc>
2037 <param name="key" type="wstring" dir="in">
2038 <desc>Name of the data key to get.</desc>
2039 </param>
2040 <param name="value" type="wstring" dir="return">
2041 <desc>Value of the requested data key.</desc>
2042 </param>
2043 </method>
2044
2045 <method name="setExtraData">
2046 <desc>
2047 Sets associated global extra data.
2048
2049 If you pass @c null or empty string as a key @a value, the given @a key
2050 will be deleted.
2051
2052 <note>
2053 Before performing the actual data change, this method will ask all
2054 registered event listener using the
2055 <link to="IExtraDataCanChangeEvent"/>
2056 notification for a permission. If one of the listeners refuses the
2057 new value, the change will not be performed.
2058 </note>
2059 <note>
2060 On success, the
2061 <link to="IExtraDataChangedEvent"/> notification
2062 is called to inform all registered listeners about a successful data
2063 change.
2064 </note>
2065
2066 <result name="VBOX_E_FILE_ERROR">
2067 Settings file not accessible.
2068 </result>
2069 <result name="VBOX_E_XML_ERROR">
2070 Could not parse the settings file.
2071 </result>
2072 <result name="E_ACCESSDENIED">
2073 Modification request refused.
2074 </result>
2075
2076 </desc>
2077 <param name="key" type="wstring" dir="in">
2078 <desc>Name of the data key to set.</desc>
2079 </param>
2080 <param name="value" type="wstring" dir="in">
2081 <desc>Value to assign to the key.</desc>
2082 </param>
2083 </method>
2084
2085 <!--method name="createDHCPServerForInterface">
2086 <desc>
2087 Creates a dhcp server settings to be used for the given interface
2088 <result name="E_INVALIDARG">
2089 Host network interface @a name already exists.
2090 </result>
2091 </desc>
2092 <param name="interface" type="IHostNetworkInterface" dir="in">
2093 <desc>Network Interface</desc>
2094 </param>
2095 <param name="server" type="IDHCPServer" dir="out">
2096 <desc>Dhcp server settings</desc>
2097 </param>
2098 </method-->
2099
2100 <method name="createDHCPServer">
2101 <desc>
2102 Creates a dhcp server settings to be used for the given internal network name
2103 <result name="E_INVALIDARG">
2104 Host network interface @a name already exists.
2105 </result>
2106 </desc>
2107 <param name="name" type="wstring" dir="in">
2108 <desc>server name</desc>
2109 </param>
2110 <param name="server" type="IDHCPServer" dir="return">
2111 <desc>Dhcp server settings</desc>
2112 </param>
2113 </method>
2114
2115 <method name="findDHCPServerByNetworkName">
2116 <desc>
2117 Searches a dhcp server settings to be used for the given internal network name
2118 <result name="E_INVALIDARG">
2119 Host network interface @a name already exists.
2120 </result>
2121
2122 </desc>
2123 <param name="name" type="wstring" dir="in">
2124 <desc>server name</desc>
2125 </param>
2126 <param name="server" type="IDHCPServer" dir="return">
2127 <desc>Dhcp server settings</desc>
2128 </param>
2129 </method>
2130
2131 <!--method name="findDHCPServerForInterface">
2132 <desc>
2133 Searches a dhcp server settings to be used for the given interface
2134 <result name="E_INVALIDARG">
2135 Host network interface @a name already exists.
2136 </result>
2137 </desc>
2138 <param name="interface" type="IHostNetworkInterface" dir="in">
2139 <desc>Network Interface</desc>
2140 </param>
2141 <param name="server" type="IDHCPServer" dir="out">
2142 <desc>Dhcp server settings</desc>
2143 </param>
2144 </method-->
2145
2146 <method name="removeDHCPServer">
2147 <desc>
2148 Removes the dhcp server settings
2149 <result name="E_INVALIDARG">
2150 Host network interface @a name already exists.
2151 </result>
2152 </desc>
2153 <param name="server" type="IDHCPServer" dir="in">
2154 <desc>Dhcp server settings to be removed</desc>
2155 </param>
2156 </method>
2157
2158
2159 <method name="checkFirmwarePresent">
2160 <desc>
2161 Check if this VirtualBox installation has a firmware
2162 of the given type available, either system-wide or per-user.
2163 Optionally, this may return a hint where this firmware can be
2164 downloaded from.
2165 </desc>
2166 <param name="firmwareType" type="FirmwareType" dir="in">
2167 <desc>
2168 Type of firmware to check.
2169 </desc>
2170 </param>
2171 <param name="version" type="wstring" dir="in">
2172 <desc>Expected version number, usually empty string (presently ignored).</desc>
2173 </param>
2174
2175 <param name="url" type="wstring" dir="out">
2176 <desc>
2177 Suggested URL to download this firmware from.
2178 </desc>
2179 </param>
2180
2181 <param name="file" type="wstring" dir="out">
2182 <desc>
2183 Filename of firmware, only valid if result == TRUE.
2184 </desc>
2185 </param>
2186
2187 <param name="result" type="boolean" dir="return">
2188 <desc>If firmware of this type and version is available.</desc>
2189 </param>
2190 </method>
2191
2192 <method name="VRDERegisterLibrary">
2193 <desc>
2194 Appends a VRDE library to this VirtualBox installation.
2195
2196 The library implements a VirtualBox Remote Desktop Extension (VRDE),
2197 which is used to remotely connect to the virtual machines.
2198
2199 The system library extension (".DLL" or ".so") must be omitted.
2200 The library must reside in the VirtualBox installation directory.
2201 </desc>
2202 <param name="name" type="wstring" dir="in">
2203 <desc>The library name.</desc>
2204 </param>
2205 </method>
2206
2207 <method name="VRDEUnregisterLibrary">
2208 <desc>
2209 Removes a VRDE library from this VirtualBox installation.
2210 </desc>
2211 <param name="name" type="wstring" dir="in">
2212 <desc>The library name.</desc>
2213 </param>
2214 </method>
2215
2216 <method name="VRDEListLibraries">
2217 <desc>
2218 List registered libraries.
2219 </desc>
2220 <param name="names" type="wstring" dir="return" safearray="yes">
2221 <desc>Array of names of the libraries.</desc>
2222 </param>
2223 </method>
2224
2225 <method name="VRDEIsLibraryRegistered">
2226 <desc>
2227 Check if the library is registered.
2228 </desc>
2229 <param name="name" type="wstring" dir="in">
2230 <desc>The library name.</desc>
2231 </param>
2232 <param name="registered" type="boolean" dir="return">
2233 <desc>Whether the library is registered.</desc>
2234 </param>
2235 </method>
2236
2237 </interface>
2238
2239 <!--
2240 // IVFSExplorer
2241 /////////////////////////////////////////////////////////////////////////
2242 -->
2243
2244 <enum
2245 name="VFSType"
2246 uuid="813999ba-b949-48a8-9230-aadc6285e2f2"
2247 >
2248 <desc>
2249 Virtual file systems supported by VFSExplorer.
2250 </desc>
2251
2252 <const name="File" value="1" />
2253 <const name="Cloud" value="2" />
2254 <const name="S3" value="3" />
2255 <const name="WebDav" value="4" />
2256 </enum>
2257
2258 <enum
2259 name="VFSFileType"
2260 uuid="714333cd-44e2-415f-a245-d378fa9b1242"
2261 >
2262 <desc>
2263 File types known by VFSExplorer.
2264 </desc>
2265
2266 <const name="Unknown" value="1" />
2267 <const name="Fifo" value="2" />
2268 <const name="DevChar" value="3" />
2269 <const name="Directory" value="4" />
2270 <const name="DevBlock" value="5" />
2271 <const name="File" value="6" />
2272 <const name="SymLink" value="7" />
2273 <const name="Socket" value="8" />
2274 <const name="WhiteOut" value="9" />
2275 </enum>
2276
2277 <interface
2278 name="IVFSExplorer" extends="$unknown"
2279 uuid="003d7f92-d38e-487f-b790-8c5e8631cb2f"
2280 wsmap="managed"
2281 >
2282 <desc>
2283 The VFSExplorer interface unifies access to different file system
2284 types. This includes local file systems as well remote file systems like
2285 S3. For a list of supported types see <link to="VFSType" />.
2286 An instance of this is returned by <link to="IAppliance::createVFSExplorer" />.
2287 </desc>
2288
2289 <attribute name="path" type="wstring" readonly="yes">
2290 <desc>Returns the current path in the virtual file system.</desc>
2291 </attribute>
2292
2293 <attribute name="type" type="VFSType" readonly="yes">
2294 <desc>Returns the file system type which is currently in use.</desc>
2295 </attribute>
2296
2297 <method name="update">
2298 <desc>Updates the internal list of files/directories from the
2299 current directory level. Use <link to="#entryList" /> to get the full list
2300 after a call to this method.</desc>
2301
2302 <param name="aProgress" type="IProgress" dir="return">
2303 <desc>Progress object to track the operation completion.</desc>
2304 </param>
2305 </method>
2306
2307 <method name="cd">
2308 <desc>Change the current directory level.</desc>
2309
2310 <param name="aDir" type="wstring" dir="in">
2311 <desc>The name of the directory to go in.</desc>
2312 </param>
2313
2314 <param name="aProgress" type="IProgress" dir="return">
2315 <desc>Progress object to track the operation completion.</desc>
2316 </param>
2317 </method>
2318
2319 <method name="cdUp">
2320 <desc>Go one directory upwards from the current directory level.</desc>
2321
2322 <param name="aProgress" type="IProgress" dir="return">
2323 <desc>Progress object to track the operation completion.</desc>
2324 </param>
2325 </method>
2326
2327 <method name="entryList">
2328 <desc>Returns a list of files/directories after a call to <link
2329 to="#update" />. The user is responsible for keeping this internal
2330 list up do date.</desc>
2331
2332 <param name="aNames" type="wstring" safearray="yes" dir="out">
2333 <desc>The list of names for the entries.</desc>
2334 </param>
2335
2336 <param name="aTypes" type="unsigned long" safearray="yes" dir="out">
2337 <desc>The list of types for the entries.</desc>
2338 </param>
2339
2340 <param name="aSizes" type="unsigned long" safearray="yes" dir="out">
2341 <desc>The list of sizes (in bytes) for the entries.</desc>
2342 </param>
2343
2344 <param name="aModes" type="unsigned long" safearray="yes" dir="out">
2345 <desc>The list of file modes (in octal form) for the entries.</desc>
2346 </param>
2347 </method>
2348
2349 <method name="exists">
2350 <desc>Checks if the given file list exists in the current directory
2351 level.</desc>
2352
2353 <param name="aNames" type="wstring" safearray="yes" dir="in">
2354 <desc>The names to check.</desc>
2355 </param>
2356
2357 <param name="aExists" type="wstring" safearray="yes" dir="return">
2358 <desc>The names which exist.</desc>
2359 </param>
2360 </method>
2361
2362 <method name="remove">
2363 <desc>Deletes the given files in the current directory level.</desc>
2364
2365 <param name="aNames" type="wstring" safearray="yes" dir="in">
2366 <desc>The names to remove.</desc>
2367 </param>
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 </interface>
2375
2376 <!--
2377 // IAppliance
2378 /////////////////////////////////////////////////////////////////////////
2379 -->
2380
2381 <interface
2382 name="IAppliance" extends="$unknown"
2383 uuid="7b148032-4124-4f46-b56a-b48ac1273f5a"
2384 wsmap="managed"
2385 >
2386 <desc>
2387 Represents a platform-independent appliance in OVF format. An instance of this is returned
2388 by <link to="IVirtualBox::createAppliance" />, which can then be used to import and export
2389 virtual machines within an appliance with VirtualBox.
2390
2391 The OVF standard suggests two different physical file formats:
2392
2393 <ol>
2394 <li>If the appliance is distributed as a set of files, there must be at least one XML descriptor
2395 file that conforms to the OVF standard and carries an <tt>.ovf</tt> file extension. If
2396 this descriptor file references other files such as disk images, as OVF appliances typically
2397 do, those additional files must be in the same directory as the descriptor file.</li>
2398
2399 <li>If the appliance is distributed as a single file, it must be in TAR format and have the
2400 <tt>.ova</tt> file extension. This TAR file must then contain at least the OVF descriptor
2401 files and optionally other files.
2402
2403 At this time, VirtualBox does not not yet support the packed (TAR) variant; support will
2404 be added with a later version.</li>
2405 </ol>
2406
2407 <b>Importing</b> an OVF appliance into VirtualBox as instances of
2408 <link to="IMachine" /> involves the following sequence of API calls:
2409
2410 <ol>
2411 <li>Call <link to="IVirtualBox::createAppliance" />. This will create an empty IAppliance object.
2412 </li>
2413
2414 <li>On the new object, call <link to="#read" /> with the full path of the OVF file you
2415 would like to import. So long as this file is syntactically valid, this will succeed
2416 and fill the appliance object with the parsed data from the OVF file.
2417 </li>
2418
2419 <li>Next, call <link to="#interpret" />, which analyzes the OVF data and sets up the
2420 contents of the IAppliance attributes accordingly. These can be inspected by a
2421 VirtualBox front-end such as the GUI, and the suggestions can be displayed to the
2422 user. In particular, the <link to="#virtualSystemDescriptions" /> array contains
2423 instances of <link to="IVirtualSystemDescription" /> which represent the virtual
2424 systems (machines) in the OVF, which in turn describe the virtual hardware prescribed
2425 by the OVF (network and hardware adapters, virtual disk images, memory size and so on).
2426 The GUI can then give the user the option to confirm and/or change these suggestions.
2427 </li>
2428
2429 <li>If desired, call <link to="IVirtualSystemDescription::setFinalValues" /> for each
2430 virtual system (machine) to override the suggestions made by the interpret() routine.
2431 </li>
2432
2433 <li>Finally, call <link to="#importMachines" /> to create virtual machines in
2434 VirtualBox as instances of <link to="IMachine" /> that match the information in the
2435 virtual system descriptions. After this call succeeded, the UUIDs of the machines created
2436 can be found in the <link to="#machines" /> array attribute.
2437 </li>
2438 </ol>
2439
2440 <b>Exporting</b> VirtualBox machines into an OVF appliance involves the following steps:
2441
2442 <ol>
2443 <li>As with importing, first call <link to="IVirtualBox::createAppliance" /> to create
2444 an empty IAppliance object.
2445 </li>
2446
2447 <li>For each machine you would like to export, call <link to="IMachine::export" />
2448 with the IAppliance object you just created. Each such call creates one instance of
2449 <link to="IVirtualSystemDescription" /> inside the appliance.
2450 </li>
2451
2452 <li>If desired, call <link to="IVirtualSystemDescription::setFinalValues" /> for each
2453 virtual system (machine) to override the suggestions made by the export() routine.
2454 </li>
2455
2456 <li>Finally, call <link to="#write" /> with a path specification to have the OVF
2457 file written.</li>
2458 </ol>
2459
2460 </desc>
2461
2462 <attribute name="path" type="wstring" readonly="yes">
2463 <desc>Path to the main file of the OVF appliance, which is either the <tt>.ovf</tt> or
2464 the <tt>.ova</tt> file passed to <link to="#read" /> (for import) or
2465 <link to="#write" /> (for export).
2466 This attribute is empty until one of these methods has been called.
2467 </desc>
2468 </attribute>
2469
2470 <attribute name="disks" type="wstring" readonly="yes" safearray="yes">
2471 <desc>
2472 Array of virtual disk definitions. One such description exists for each
2473 disk definition in the OVF; each string array item represents one such piece of
2474 disk information, with the information fields separated by tab (\t) characters.
2475
2476 The caller should be prepared for additional fields being appended to
2477 this string in future versions of VirtualBox and therefore check for
2478 the number of tabs in the strings returned.
2479
2480 In the current version, the following eight fields are returned per string
2481 in the array:
2482
2483 <ol>
2484 <li>Disk ID (unique string identifier given to disk)</li>
2485
2486 <li>Capacity (unsigned integer indicating the maximum capacity of the disk)</li>
2487
2488 <li>Populated size (optional unsigned integer indicating the current size of the
2489 disk; can be approximate; -1 if unspecified)</li>
2490
2491 <li>Format (string identifying the disk format, typically
2492 "http://www.vmware.com/specifications/vmdk.html#sparse")</li>
2493
2494 <li>Reference (where to find the disk image, typically a file name; if empty,
2495 then the disk should be created on import)</li>
2496
2497 <li>Image size (optional unsigned integer indicating the size of the image,
2498 which need not necessarily be the same as the values specified above, since
2499 the image may be compressed or sparse; -1 if not specified)</li>
2500
2501 <li>Chunk size (optional unsigned integer if the image is split into chunks;
2502 presently unsupported and always -1)</li>
2503
2504 <li>Compression (optional string equalling "gzip" if the image is gzip-compressed)</li>
2505 </ol>
2506 </desc>
2507 </attribute>
2508
2509 <attribute name="virtualSystemDescriptions" type="IVirtualSystemDescription" readonly="yes" safearray="yes">
2510 <desc> Array of virtual system descriptions. One such description is created
2511 for each virtual system (machine) found in the OVF.
2512 This array is empty until either <link to="#interpret" /> (for import) or <link to="IMachine::export" />
2513 (for export) has been called.
2514 </desc>
2515 </attribute>
2516
2517 <attribute name="machines" type="wstring" readonly="yes" safearray="yes">
2518 <desc>
2519 Contains the UUIDs of the machines created from the information in this appliances. This is only
2520 relevant for the import case, and will only contain data after a call to <link to="#importMachines" />
2521 succeeded.
2522 </desc>
2523 </attribute>
2524
2525 <method name="read">
2526 <desc>
2527 Reads an OVF file into the appliance object.
2528
2529 This method succeeds if the OVF is syntactically valid and, by itself, without errors. The
2530 mere fact that this method returns successfully does not mean that VirtualBox supports all
2531 features requested by the appliance; this can only be examined after a call to <link to="#interpret" />.
2532 </desc>
2533 <param name="file" type="wstring" dir="in">
2534 <desc>
2535 Name of appliance file to open (either with an <tt>.ovf</tt> or <tt>.ova</tt> extension, depending
2536 on whether the appliance is distributed as a set of files or as a single file, respectively).
2537 </desc>
2538 </param>
2539 <param name="aProgress" type="IProgress" dir="return">
2540 <desc>Progress object to track the operation completion.</desc>
2541 </param>
2542 </method>
2543
2544 <method name="interpret">
2545 <desc>
2546 Interprets the OVF data that was read when the appliance was constructed. After
2547 calling this method, one can inspect the
2548 <link to="#virtualSystemDescriptions" /> array attribute, which will then contain
2549 one <link to="IVirtualSystemDescription" /> for each virtual machine found in
2550 the appliance.
2551
2552 Calling this method is the second step of importing an appliance into VirtualBox;
2553 see <link to="IAppliance" /> for an overview.
2554
2555 After calling this method, one should call <link to="#getWarnings" /> to find out
2556 if problems were encountered during the processing which might later lead to
2557 errors.
2558 </desc>
2559 </method>
2560
2561 <method name="importMachines">
2562 <desc>
2563 Imports the appliance into VirtualBox by creating instances of <link to="IMachine" />
2564 and other interfaces that match the information contained in the appliance as
2565 closely as possible, as represented by the import instructions in the
2566 <link to="#virtualSystemDescriptions" /> array.
2567
2568 Calling this method is the final step of importing an appliance into VirtualBox;
2569 see <link to="IAppliance" /> for an overview.
2570
2571 Since importing the appliance will most probably involve copying and converting
2572 disk images, which can take a long time, this method operates asynchronously and
2573 returns an IProgress object to allow the caller to monitor the progress.
2574
2575 After the import succeeded, the UUIDs of the IMachine instances created can be
2576 retrieved from the <link to="#machines" /> array attribute.
2577 </desc>
2578
2579 <param name="aProgress" type="IProgress" dir="return">
2580 <desc>Progress object to track the operation completion.</desc>
2581 </param>
2582 </method>
2583
2584 <method name="createVFSExplorer">
2585 <desc>Returns a <link to="IVFSExplorer" /> object for the given URI.</desc>
2586
2587 <param name="aUri" type="wstring" dir="in">
2588 <desc>The URI describing the file system to use.</desc>
2589 </param>
2590
2591 <param name="aExplorer" type="IVFSExplorer" dir="return">
2592 <desc></desc>
2593 </param>
2594 </method>
2595
2596 <method name="write">
2597 <desc>
2598 Writes the contents of the appliance exports into a new OVF file.
2599
2600 Calling this method is the final step of exporting an appliance from VirtualBox;
2601 see <link to="IAppliance" /> for an overview.
2602
2603 Since exporting the appliance will most probably involve copying and converting
2604 disk images, which can take a long time, this method operates asynchronously and
2605 returns an IProgress object to allow the caller to monitor the progress.
2606 </desc>
2607 <param name="format" type="wstring" dir="in">
2608 <desc>
2609 Output format, as a string. Currently supported formats are "ovf-0.9" and "ovf-1.0";
2610 future versions of VirtualBox may support additional formats.
2611 </desc>
2612 </param>
2613 <param name="manifest" type="boolean" dir="in">
2614 <desc>
2615 Indicate if the optional manifest file (.mf) should be written. The manifest file
2616 is used for integrity checks prior import.
2617 </desc>
2618 </param>
2619 <param name="path" 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="progress" type="IProgress" dir="return">
2626 <desc>Progress object to track the operation completion.</desc>
2627 </param>
2628 </method>
2629
2630 <method name="getWarnings">
2631 <desc>Returns textual warnings which occurred during execution of <link to="#interpret" />.</desc>
2632
2633 <param name="aWarnings" type="wstring" dir="return" safearray="yes">
2634 <desc></desc>
2635 </param>
2636 </method>
2637
2638 </interface>
2639
2640 <enum
2641 name="VirtualSystemDescriptionType"
2642 uuid="c0f8f135-3a1d-417d-afa6-b38b95a91f90"
2643 >
2644 <desc>Used with <link to="IVirtualSystemDescription" /> to describe the type of
2645 a configuration value.</desc>
2646
2647 <const name="Ignore" value="1" />
2648 <const name="OS" value="2" />
2649 <const name="Name" value="3" />
2650 <const name="Product" value="4" />
2651 <const name="Vendor" value="5" />
2652 <const name="Version" value="6" />
2653 <const name="ProductUrl" value="7" />
2654 <const name="VendorUrl" value="8" />
2655 <const name="Description" value="9" />
2656 <const name="License" value="10" />
2657 <const name="Miscellaneous" value="11" />
2658 <const name="CPU" value="12" />
2659 <const name="Memory" value="13" />
2660 <const name="HardDiskControllerIDE" value="14" />
2661 <const name="HardDiskControllerSATA" value="15" />
2662 <const name="HardDiskControllerSCSI" value="16" />
2663 <const name="HardDiskControllerSAS" value="17" />
2664 <const name="HardDiskImage" value="18" />
2665 <const name="Floppy" value="19" />
2666 <const name="CDROM" value="20" />
2667 <const name="NetworkAdapter" value="21" />
2668 <const name="USBController" value="22" />
2669 <const name="SoundCard" value="23" />
2670
2671 </enum>
2672
2673 <enum
2674 name="VirtualSystemDescriptionValueType"
2675 uuid="56d9403f-3425-4118-9919-36f2a9b8c77c"
2676 >
2677 <desc>Used with <link to="IVirtualSystemDescription::getValuesByType" /> to describe the value
2678 type to fetch.</desc>
2679
2680 <const name="Reference" value="1" />
2681 <const name="Original" value="2" />
2682 <const name="Auto" value="3" />
2683 <const name="ExtraConfig" value="4" />
2684
2685 </enum>
2686
2687 <interface
2688 name="IVirtualSystemDescription" extends="$unknown"
2689 uuid="d7525e6c-531a-4c51-8e04-41235083a3d8"
2690 wsmap="managed"
2691 >
2692
2693 <desc>Represents one virtual system (machine) in an appliance. This interface is used in
2694 the <link to="IAppliance::virtualSystemDescriptions" /> array. After
2695 <link to="IAppliance::interpret" /> has been called, that array contains information
2696 about how the virtual systems described in the OVF should best be imported into
2697 VirtualBox virtual machines. See <link to="IAppliance" /> for the steps required to
2698 import an OVF into VirtualBox.
2699 </desc>
2700
2701 <attribute name="count" type="unsigned long" readonly="yes">
2702 <desc>Return the number of virtual system description entries.</desc>
2703 </attribute>
2704
2705 <method name="getDescription">
2706 <desc>Returns information about the virtual system as arrays of instruction items. In each array, the
2707 items with the same indices correspond and jointly represent an import instruction for VirtualBox.
2708
2709 The list below identifies the value sets that are possible depending on the
2710 <link to="VirtualSystemDescriptionType" /> enum value in the array item in @a aTypes[]. In each case,
2711 the array item with the same index in @a aOvfValues[] will contain the original value as contained
2712 in the OVF file (just for informational purposes), and the corresponding item in @a aVBoxValues[]
2713 will contain a suggested value to be used for VirtualBox. Depending on the description type,
2714 the @a aExtraConfigValues[] array item may also be used.
2715
2716 <ul>
2717 <li>
2718 "OS": the guest operating system type. There must be exactly one such array item on import. The
2719 corresponding item in @a aVBoxValues[] contains the suggested guest operating system for VirtualBox.
2720 This will be one of the values listed in <link to="IVirtualBox::guestOSTypes" />. The corresponding
2721 item in @a aOvfValues[] will contain a numerical value that described the operating system in the OVF.
2722 </li>
2723 <li>
2724 "Name": the name to give to the new virtual machine. There can be at most one such array item;
2725 if none is present on import, then an automatic name will be created from the operating system
2726 type. The corresponding item im @a aOvfValues[] will contain the suggested virtual machine name
2727 from the OVF file, and @a aVBoxValues[] will contain a suggestion for a unique VirtualBox
2728 <link to="IMachine" /> name that does not exist yet.
2729 </li>
2730 <li>
2731 "Description": an arbitrary description.
2732 </li>
2733 <li>
2734 "License": the EULA section from the OVF, if present. It is the responsibility of the calling
2735 code to display such a license for agreement; the Main API does not enforce any such policy.
2736 </li>
2737 <li>
2738 Miscellaneous: reserved for future use.
2739 </li>
2740 <li>
2741 "CPU": the number of CPUs. There can be at most one such item, which will presently be ignored.
2742 </li>
2743 <li>
2744 "Memory": the amount of guest RAM, in bytes. There can be at most one such array item; if none
2745 is present on import, then VirtualBox will set a meaningful default based on the operating system
2746 type.
2747 </li>
2748 <li>
2749 "HardDiskControllerIDE": an IDE hard disk controller. There can be at most two such items.
2750 An optional value in @a aOvfValues[] and @a aVBoxValues[] can be "PIIX3" or "PIIX4" to specify
2751 the type of IDE controller; this corresponds to the ResourceSubType element which VirtualBox
2752 writes into the OVF.
2753 The matching item in the @a aRefs[] array will contain an integer that items of the "Harddisk"
2754 type can use to specify which hard disk controller a virtual disk should be connected to.
2755 Note that in OVF, an IDE controller has two channels, corresponding to "master" and "slave"
2756 in traditional terminology, whereas the IDE storage controller that VirtualBox supports in
2757 its virtual machines supports four channels (primary master, primary slave, secondary master,
2758 secondary slave) and thus maps to two IDE controllers in the OVF sense.
2759 </li>
2760 <li>
2761 "HardDiskControllerSATA": an SATA hard disk controller. There can be at most one such item. This
2762 has no value in @a aOvfValues[] or @a aVBoxValues[].
2763 The matching item in the @a aRefs[] array will be used as with IDE controllers (see above).
2764 </li>
2765 <li>
2766 "HardDiskControllerSCSI": a SCSI hard disk controller. There can be at most one such item.
2767 The items in @a aOvfValues[] and @a aVBoxValues[] will either be "LsiLogic", "BusLogic" or
2768 "LsiLogicSas". (Note that in OVF, the LsiLogicSas controller is treated as a SCSI controller
2769 whereas VirtualBox considers it a class of storage controllers of its own; see
2770 <link to="StorageControllerType" />).
2771 The matching item in the @a aRefs[] array will be used as with IDE controllers (see above).
2772 </li>
2773 <li>
2774 "HardDiskImage": a virtual hard disk, most probably as a reference to an image file. There can be an
2775 arbitrary number of these items, one for each virtual disk image that accompanies the OVF.
2776
2777 The array item in @a aOvfValues[] will contain the file specification from the OVF file (without
2778 a path since the image file should be in the same location as the OVF file itself), whereas the
2779 item in @a aVBoxValues[] will contain a qualified path specification to where VirtualBox uses the
2780 hard disk image. This means that on import the image will be copied and converted from the
2781 "ovf" location to the "vbox" location; on export, this will be handled the other way round.
2782
2783 The matching item in the @a aExtraConfigValues[] array must contain a string of the following
2784 format: "controller=&lt;index&gt;;channel=&lt;c&gt;"
2785 In this string, &lt;index&gt; must be an integer specifying the hard disk controller to connect
2786 the image to. That number must be the index of an array item with one of the hard disk controller
2787 types (HardDiskControllerSCSI, HardDiskControllerSATA, HardDiskControllerIDE).
2788 In addition, &lt;c&gt; must specify the channel to use on that controller. For IDE controllers,
2789 this can be 0 or 1 for master or slave, respectively. For compatibility with VirtualBox versions
2790 before 3.2, the values 2 and 3 (for secondary master and secondary slave) are also supported, but
2791 no longer exported. For SATA and SCSI controllers, the channel can range from 0-29.
2792 </li>
2793 <li>
2794 "CDROM": a virtual CD-ROM drive. The matching item in @a aExtraConfigValue[] contains the same
2795 attachment information as with "HardDiskImage" items.
2796 </li>
2797 <li>
2798 "CDROM": a virtual floppy drive. The matching item in @a aExtraConfigValue[] contains the same
2799 attachment information as with "HardDiskImage" items.
2800 </li>
2801 <li>
2802 "NetworkAdapter": a network adapter. The array item in @a aVBoxValues[] will specify the hardware
2803 for the network adapter, whereas the array item in @a aExtraConfigValues[] will have a string
2804 of the "type=&lt;X&gt;" format, where &lt;X&gt; must be either "NAT" or "Bridged".
2805 </li>
2806 <li>
2807 "USBController": a USB controller. There can be at most one such item. If and only if such an
2808 item ispresent, USB support will be enabled for the new virtual machine.
2809 </li>
2810 <li>
2811 "SoundCard": a sound card. There can be at most one such item. If and only if such an item is
2812 present, sound support will be enabled for the new virtual machine. Note that the virtual
2813 machine in VirtualBox will always be presented with the standard VirtualBox soundcard, which
2814 may be different from the virtual soundcard expected by the appliance.
2815 </li>
2816 </ul>
2817
2818 </desc>
2819
2820 <param name="aTypes" type="VirtualSystemDescriptionType" dir="out" safearray="yes">
2821 <desc></desc>
2822 </param>
2823
2824 <param name="aRefs" type="wstring" dir="out" safearray="yes">
2825 <desc></desc>
2826 </param>
2827
2828 <param name="aOvfValues" type="wstring" dir="out" safearray="yes">
2829 <desc></desc>
2830 </param>
2831
2832 <param name="aVBoxValues" type="wstring" dir="out" safearray="yes">
2833 <desc></desc>
2834 </param>
2835
2836 <param name="aExtraConfigValues" type="wstring" dir="out" safearray="yes">
2837 <desc></desc>
2838 </param>
2839
2840 </method>
2841
2842 <method name="getDescriptionByType">
2843 <desc>This is the same as <link to="#getDescription" /> except that you can specify which types
2844 should be returned.</desc>
2845
2846 <param name="aType" type="VirtualSystemDescriptionType" dir="in">
2847 <desc></desc>
2848 </param>
2849
2850 <param name="aTypes" type="VirtualSystemDescriptionType" dir="out" safearray="yes">
2851 <desc></desc>
2852 </param>
2853
2854 <param name="aRefs" type="wstring" dir="out" safearray="yes">
2855 <desc></desc>
2856 </param>
2857
2858 <param name="aOvfValues" type="wstring" dir="out" safearray="yes">
2859 <desc></desc>
2860 </param>
2861
2862 <param name="aVBoxValues" type="wstring" dir="out" safearray="yes">
2863 <desc></desc>
2864 </param>
2865
2866 <param name="aExtraConfigValues" type="wstring" dir="out" safearray="yes">
2867 <desc></desc>
2868 </param>
2869
2870 </method>
2871
2872 <method name="getValuesByType">
2873 <desc>This is the same as <link to="#getDescriptionByType" /> except that you can specify which
2874 value types should be returned. See <link to="VirtualSystemDescriptionValueType" /> for possible
2875 values.</desc>
2876
2877 <param name="aType" type="VirtualSystemDescriptionType" dir="in">
2878 <desc></desc>
2879 </param>
2880
2881 <param name="aWhich" type="VirtualSystemDescriptionValueType" dir="in">
2882 <desc></desc>
2883 </param>
2884
2885 <param name="aValues" type="wstring" dir="return" safearray="yes">
2886 <desc></desc>
2887 </param>
2888
2889 </method>
2890
2891 <method name="setFinalValues">
2892 <desc>
2893 This method allows the appliance's user to change the configuration for the virtual
2894 system descriptions. For each array item returned from <link to="#getDescription" />,
2895 you must pass in one boolean value and one configuration value.
2896
2897 Each item in the boolean array determines whether the particular configuration item
2898 should be enabled.
2899 You can only disable items of the types HardDiskControllerIDE, HardDiskControllerSATA,
2900 HardDiskControllerSCSI, HardDiskImage, CDROM, Floppy, NetworkAdapter, USBController
2901 and SoundCard.
2902
2903 For the "vbox" and "extra configuration" values, if you pass in the same arrays
2904 as returned in the aVBoxValues and aExtraConfigValues arrays from getDescription(),
2905 the configuration remains unchanged. Please see the documentation for getDescription()
2906 for valid configuration values for the individual array item types. If the
2907 corresponding item in the aEnabled array is @c false, the configuration value is ignored.
2908 </desc>
2909
2910 <param name="aEnabled" type="boolean" dir="in" safearray="yes">
2911 <desc></desc>
2912 </param>
2913
2914 <param name="aVBoxValues" type="wstring" dir="in" safearray="yes">
2915 <desc></desc>
2916 </param>
2917
2918 <param name="aExtraConfigValues" type="wstring" dir="in" safearray="yes">
2919 <desc></desc>
2920 </param>
2921 </method>
2922
2923 <method name="addDescription">
2924 <desc>
2925 This method adds an additional description entry to the stack of already
2926 available descriptions for this virtual system. This is handy for writing
2927 values which aren't directly supported by VirtualBox. One example would
2928 be the License type of <link to="VirtualSystemDescriptionType" />.
2929 </desc>
2930
2931 <param name="aType" type="VirtualSystemDescriptionType" dir="in">
2932 <desc></desc>
2933 </param>
2934
2935 <param name="aVBoxValue" type="wstring" dir="in">
2936 <desc></desc>
2937 </param>
2938
2939 <param name="aExtraConfigValue" type="wstring" dir="in">
2940 <desc></desc>
2941 </param>
2942 </method>
2943 </interface>
2944
2945
2946 <!--
2947 // IMachine
2948 /////////////////////////////////////////////////////////////////////////
2949 -->
2950
2951 <interface
2952 name="IInternalMachineControl" extends="$unknown"
2953 uuid="e2da8b1a-2ad1-490e-b29e-c33a144791b6"
2954 internal="yes"
2955 wsmap="suppress"
2956 >
2957 <method name="setRemoveSavedStateFile">
2958 <desc>
2959 Updates the flag whether the saved state file is removed on a
2960 machine state change from Saved to PoweredOff.
2961 </desc>
2962 <param name="aRemove" type="boolean" dir="in"/>
2963 </method>
2964
2965 <method name="updateState">
2966 <desc>
2967 Updates the VM state.
2968 <note>
2969 This operation will also update the settings file with the correct
2970 information about the saved state file and delete this file from disk
2971 when appropriate.
2972 </note>
2973 </desc>
2974 <param name="state" type="MachineState" dir="in"/>
2975 </method>
2976
2977 <method name="getIPCId">
2978 <param name="id" type="wstring" dir="return"/>
2979 </method>
2980
2981 <method name="beginPowerUp">
2982 <desc>
2983 Tells VBoxSVC that <link to="IConsole::powerUp"/> is under ways and
2984 gives it the progress object that should be part of any pending
2985 <link to="IMachine::launchVMProcess"/> operations. The progress
2986 object may be called back to reflect an early cancelation, so some care
2987 have to be taken with respect to any cancelation callbacks. The console
2988 object will call <link to="IInternalMachineControl::endPowerUp"/>
2989 to signal the completion of the progress object.
2990 </desc>
2991 <param name="aProgress" type="IProgress" dir="in" />
2992 </method>
2993
2994 <method name="endPowerUp">
2995 <desc>
2996 Tells VBoxSVC that <link to="IConsole::powerUp"/> has completed.
2997 This method may query status information from the progress object it
2998 received in <link to="IInternalMachineControl::beginPowerUp"/> and copy
2999 it over to any in-progress <link to="IMachine::launchVMProcess"/>
3000 call in order to complete that progress object.
3001 </desc>
3002 <param name="result" type="long" dir="in"/>
3003 </method>
3004
3005 <method name="runUSBDeviceFilters">
3006 <desc>
3007 Asks the server to run USB devices filters of the associated
3008 machine against the given USB device and tell if there is
3009 a match.
3010 <note>
3011 Intended to be used only for remote USB devices. Local
3012 ones don't require to call this method (this is done
3013 implicitly by the Host and USBProxyService).
3014 </note>
3015 </desc>
3016 <param name="device" type="IUSBDevice" dir="in"/>
3017 <param name="matched" type="boolean" dir="out"/>
3018 <param name="maskedInterfaces" type="unsigned long" dir="out"/>
3019 </method>
3020
3021 <method name="captureUSBDevice">
3022 <desc>
3023 Requests a capture of the given host USB device.
3024 When the request is completed, the VM process will
3025 get a <link to="IInternalSessionControl::onUSBDeviceAttach"/>
3026 notification.
3027 </desc>
3028 <param name="id" type="uuid" mod="string" dir="in"/>
3029 </method>
3030
3031 <method name="detachUSBDevice">
3032 <desc>
3033 Notification that a VM is going to detach (@a done = @c false) or has
3034 already detached (@a done = @c true) the given USB device.
3035 When the @a done = @c true request is completed, the VM process will
3036 get a <link to="IInternalSessionControl::onUSBDeviceDetach"/>
3037 notification.
3038 <note>
3039 In the @a done = @c true case, the server must run its own filters
3040 and filters of all VMs but this one on the detached device
3041 as if it were just attached to the host computer.
3042 </note>
3043 </desc>
3044 <param name="id" type="uuid" mod="string" dir="in"/>
3045 <param name="done" type="boolean" dir="in"/>
3046 </method>
3047
3048 <method name="autoCaptureUSBDevices">
3049 <desc>
3050 Requests a capture all matching USB devices attached to the host.
3051 When the request is completed, the VM process will
3052 get a <link to="IInternalSessionControl::onUSBDeviceAttach"/>
3053 notification per every captured device.
3054 </desc>
3055 </method>
3056
3057 <method name="detachAllUSBDevices">
3058 <desc>
3059 Notification that a VM that is being powered down. The done
3060 parameter indicates whether which stage of the power down
3061 we're at. When @a done = @c false the VM is announcing its
3062 intentions, while when @a done = @c true the VM is reporting
3063 what it has done.
3064 <note>
3065 In the @a done = @c true case, the server must run its own filters
3066 and filters of all VMs but this one on all detach devices as
3067 if they were just attached to the host computer.
3068 </note>
3069 </desc>
3070 <param name="done" type="boolean" dir="in"/>
3071 </method>
3072
3073 <method name="onSessionEnd">
3074 <desc>
3075 Triggered by the given session object when the session is about
3076 to close normally.
3077 </desc>
3078 <param name="session" type="ISession" dir="in">
3079 <desc>Session that is being closed</desc>
3080 </param>
3081 <param name="progress" type="IProgress" dir="return">
3082 <desc>
3083 Used to wait until the corresponding machine is actually
3084 dissociated from the given session on the server.
3085 Returned only when this session is a direct one.
3086 </desc>
3087 </param>
3088 </method>
3089
3090 <method name="beginSavingState">
3091 <desc>
3092 Called by the VM process to inform the server it wants to
3093 save the current state and stop the VM execution.
3094 </desc>
3095 <param name="progress" type="IProgress" dir="in">
3096 <desc>
3097 Progress object created by the VM process to wait until
3098 the state is saved.
3099 </desc>
3100 </param>
3101 <param name="stateFilePath" type="wstring" dir="out">
3102 <desc>
3103 File path the VM process must save the execution state to.
3104 </desc>
3105 </param>
3106 </method>
3107
3108 <method name="endSavingState">
3109 <desc>
3110 Called by the VM process to inform the server that saving
3111 the state previously requested by #beginSavingState is either
3112 successfully finished or there was a failure.
3113
3114 <result name="VBOX_E_FILE_ERROR">
3115 Settings file not accessible.
3116 </result>
3117 <result name="VBOX_E_XML_ERROR">
3118 Could not parse the settings file.
3119 </result>
3120
3121 </desc>
3122
3123 <param name="success" type="boolean" dir="in">
3124 <desc>@c true to indicate success and @c false otherwise.
3125 </desc>
3126 </param>
3127 </method>
3128
3129 <method name="adoptSavedState">
3130 <desc>
3131 Gets called by IConsole::adoptSavedState.
3132 <result name="VBOX_E_FILE_ERROR">
3133 Invalid saved state file path.
3134 </result>
3135 </desc>
3136 <param name="savedStateFile" type="wstring" dir="in">
3137 <desc>Path to the saved state file to adopt.</desc>
3138 </param>
3139 </method>
3140
3141 <method name="beginTakingSnapshot">
3142 <desc>
3143 Called from the VM process to request from the server to perform the
3144 server-side actions of creating a snapshot (creating differencing images
3145 and the snapshot object).
3146
3147 <result name="VBOX_E_FILE_ERROR">
3148 Settings file not accessible.
3149 </result>
3150 <result name="VBOX_E_XML_ERROR">
3151 Could not parse the settings file.
3152 </result>
3153 </desc>
3154 <param name="initiator" type="IConsole" dir="in">
3155 <desc>The console object that initiated this call.</desc>
3156 </param>
3157 <param name="name" type="wstring" dir="in">
3158 <desc>Snapshot name.</desc>
3159 </param>
3160 <param name="description" type="wstring" dir="in">
3161 <desc>Snapshot description.</desc>
3162 </param>
3163 <param name="consoleProgress" type="IProgress" dir="in">
3164 <desc>
3165 Progress object created by the VM process tracking the
3166 snapshot's progress. This has the following sub-operations:
3167 <ul>
3168 <li>setting up (weight 1);</li>
3169 <li>one for each medium attachment that needs a differencing image (weight 1 each);</li>
3170 <li>another one to copy the VM state (if offline with saved state, weight is VM memory size in MB);</li>
3171 <li>another one to save the VM state (if online, weight is VM memory size in MB);</li>
3172 <li>finishing up (weight 1)</li>
3173 </ul>
3174 </desc>
3175 </param>
3176 <param name="fTakingSnapshotOnline" type="boolean" dir="in">
3177 <desc>
3178 Whether this is an online snapshot (i.e. the machine is running).
3179 </desc>
3180 </param>
3181 <param name="stateFilePath" type="wstring" dir="out">
3182 <desc>
3183 File path the VM process must save the execution state to.
3184 </desc>
3185 </param>
3186 </method>
3187
3188 <method name="endTakingSnapshot">
3189 <desc>
3190 Called by the VM process to inform the server that the snapshot
3191 previously requested by #beginTakingSnapshot is either
3192 successfully taken or there was a failure.
3193 </desc>
3194
3195 <param name="success" type="boolean" dir="in">
3196 <desc>@c true to indicate success and @c false otherwise</desc>
3197 </param>
3198 </method>
3199
3200 <method name="deleteSnapshot">
3201 <desc>
3202 Gets called by IConsole::deleteSnapshot.
3203 <result name="VBOX_E_INVALID_OBJECT_STATE">
3204 Snapshot has more than one child snapshot.
3205 </result>
3206 </desc>
3207 <param name="initiator" type="IConsole" dir="in">
3208 <desc>The console object that initiated this call.</desc>
3209 </param>
3210 <param name="id" type="uuid" mod="string" dir="in">
3211 <desc>UUID of the snapshot to delete.</desc>
3212 </param>
3213 <param name="machineState" type="MachineState" dir="out">
3214 <desc>New machine state after this operation is started.</desc>
3215 </param>
3216 <param name="progress" type="IProgress" dir="return">
3217 <desc>Progress object to track the operation completion.</desc>
3218 </param>
3219 </method>
3220
3221 <method name="finishOnlineMergeMedium">
3222 <desc>
3223 Gets called by IConsole::onlineMergeMedium.
3224 </desc>
3225 <param name="mediumAttachment" type="IMediumAttachment" dir="in">
3226 <desc>The medium attachment which needs to be cleaned up.</desc>
3227 </param>
3228 <param name="source" type="IMedium" dir="in">
3229 <desc>Merge source medium.</desc>
3230 </param>
3231 <param name="target" type="IMedium" dir="in">
3232 <desc>Merge target medium.</desc>
3233 </param>
3234 <param name="mergeForward" type="boolean" dir="in">
3235 <desc>Merge direction.</desc>
3236 </param>
3237 <param name="parentForTarget" type="IMedium" dir="in">
3238 <desc>For forward merges: new parent for target medium.</desc>
3239 </param>
3240 <param name="childrenToReparent" type="IMedium" safearray="yes" dir="in">
3241 <desc>For backward merges: list of media which need their parent UUID
3242 updated.</desc>
3243 </param>
3244 </method>
3245
3246 <method name="restoreSnapshot">
3247 <desc>
3248 Gets called by IConsole::RestoreSnapshot.
3249 </desc>
3250 <param name="initiator" type="IConsole" dir="in">
3251 <desc>The console object that initiated this call.</desc>
3252 </param>
3253 <param name="snapshot" type="ISnapshot" dir="in">
3254 <desc>The snapshot to restore the VM state from.</desc>
3255 </param>
3256 <param name="machineState" type="MachineState" dir="out">
3257 <desc>New machine state after this operation is started.</desc>
3258 </param>
3259 <param name="progress" type="IProgress" dir="return">
3260 <desc>Progress object to track the operation completion.</desc>
3261 </param>
3262 </method>
3263
3264 <method name="pullGuestProperties">
3265 <desc>
3266 Get the list of the guest properties matching a set of patterns along
3267 with their values, time stamps and flags and give responsibility for
3268 managing properties to the console.
3269 </desc>
3270 <param name="name" type="wstring" dir="out" safearray="yes">
3271 <desc>
3272 The names of the properties returned.
3273 </desc>
3274 </param>
3275 <param name="value" type="wstring" dir="out" safearray="yes">
3276 <desc>
3277 The values of the properties returned. The array entries match the
3278 corresponding entries in the @a name array.
3279 </desc>
3280 </param>
3281 <param name="timestamp" type="long long" dir="out" safearray="yes">
3282 <desc>
3283 The time stamps of the properties returned. The array entries match
3284 the corresponding entries in the @a name array.
3285 </desc>
3286 </param>
3287 <param name="flags" type="wstring" dir="out" safearray="yes">
3288 <desc>
3289 The flags of the properties returned. The array entries match the
3290 corresponding entries in the @a name array.
3291 </desc>
3292 </param>
3293 </method>
3294
3295 <method name="pushGuestProperty">
3296 <desc>
3297 Update a single guest property in IMachine.
3298 </desc>
3299 <param name="name" type="wstring" dir="in">
3300 <desc>
3301 The name of the property to be updated.
3302 </desc>
3303 </param>
3304 <param name="value" type="wstring" dir="in">
3305 <desc>
3306 The value of the property.
3307 </desc>
3308 </param>
3309 <param name="timestamp" type="long long" dir="in">
3310 <desc>
3311 The timestamp of the property.
3312 </desc>
3313 </param>
3314 <param name="flags" type="wstring" dir="in">
3315 <desc>
3316 The flags of the property.
3317 </desc>
3318 </param>
3319 </method>
3320
3321 <method name="lockMedia">
3322 <desc>
3323 Locks all media attached to the machine for writing and parents of
3324 attached differencing media (if any) for reading. This operation is
3325 atomic so that if it fails no media is actually locked.
3326
3327 This method is intended to be called when the machine is in Starting or
3328 Restoring state. The locked media will be automatically unlocked when
3329 the machine is powered off or crashed.
3330 </desc>
3331 </method>
3332 <method name="unlockMedia">
3333 <desc>
3334 Unlocks all media previously locked using
3335 <link to="IInternalMachineControl::lockMedia"/>.
3336
3337 This method is intended to be used with teleportation so that it is
3338 possible to teleport between processes on the same machine.
3339 </desc>
3340 </method>
3341 </interface>
3342
3343 <interface
3344 name="IBIOSSettings" extends="$unknown"
3345 uuid="38b54279-dc35-4f5e-a431-835b867c6b5e"
3346 wsmap="managed"
3347 >
3348 <desc>
3349 The IBIOSSettings interface represents BIOS settings of the virtual
3350 machine. This is used only in the <link to="IMachine::BIOSSettings" /> attribute.
3351 </desc>
3352 <attribute name="logoFadeIn" type="boolean">
3353 <desc>Fade in flag for BIOS logo animation.</desc>
3354 </attribute>
3355
3356 <attribute name="logoFadeOut" type="boolean">
3357 <desc>Fade out flag for BIOS logo animation.</desc>
3358 </attribute>
3359
3360 <attribute name="logoDisplayTime" type="unsigned long">
3361 <desc>BIOS logo display time in milliseconds (0 = default).</desc>
3362 </attribute>
3363
3364 <attribute name="logoImagePath" type="wstring">
3365 <desc>
3366 Local file system path for external BIOS splash image. Empty string
3367 means the default image is shown on boot.
3368 </desc>
3369 </attribute>
3370
3371 <attribute name="bootMenuMode" type="BIOSBootMenuMode">
3372 <desc>Mode of the BIOS boot device menu.</desc>
3373 </attribute>
3374
3375 <attribute name="ACPIEnabled" type="boolean">
3376 <desc>ACPI support flag.</desc>
3377 </attribute>
3378
3379 <attribute name="IOAPICEnabled" type="boolean">
3380 <desc>
3381 IO APIC support flag. If set, VirtualBox will provide an IO APIC
3382 and support IRQs above 15.
3383 </desc>
3384 </attribute>
3385
3386 <attribute name="timeOffset" type="long long">
3387 <desc>
3388 Offset in milliseconds from the host system time. This allows for
3389 guests running with a different system date/time than the host.
3390 It is equivalent to setting the system date/time in the BIOS except
3391 it is not an absolute value but a relative one. Guest Additions
3392 time synchronization honors this offset.
3393 </desc>
3394 </attribute>
3395
3396 <attribute name="PXEDebugEnabled" type="boolean">
3397 <desc>
3398 PXE debug logging flag. If set, VirtualBox will write extensive
3399 PXE trace information to the release log.
3400 </desc>
3401 </attribute>
3402
3403 </interface>
3404
3405 <enum name="CleanupMode"
3406 uuid="67897c50-7cca-47a9-83f6-ce8fd8eb5441">
3407 <desc>Cleanup mode, used with <link to="IMachine::unregister" />.
3408 </desc>
3409 <const name="UnregisterOnly" value="1">
3410 <desc>Unregister only the machine, but neither delete snapshots nor detach media.</desc>
3411 </const>
3412 <const name="DetachAllReturnNone" value="2">
3413 <desc>Delete all snapshots and detach all media but return none; this will keep all media registered.</desc>
3414 </const>
3415 <const name="DetachAllReturnHardDisksOnly" value="3">
3416 <desc>Delete all snapshots, detach all media and return hard disks for closing, but not removeable media.</desc>
3417 </const>
3418 <const name="Full" value="4">
3419 <desc>Delete all snapshots, detach all media and return all media for closing.</desc>
3420 </const>
3421 </enum>
3422
3423 <interface
3424 name="IMachine" extends="$unknown"
3425 uuid="cc4fec9a-3150-45df-9ee9-f00ba54d6ac3"
3426 wsmap="managed"
3427 >
3428 <desc>
3429 The IMachine interface represents a virtual machine, or guest, created
3430 in VirtualBox.
3431
3432 This interface is used in two contexts. First of all, a collection of
3433 objects implementing this interface is stored in the
3434 <link to="IVirtualBox::machines"/> attribute which lists all the virtual
3435 machines that are currently registered with this VirtualBox
3436 installation. Also, once a session has been opened for the given virtual
3437 machine (e.g. the virtual machine is running), the machine object
3438 associated with the open session can be queried from the session object;
3439 see <link to="ISession"/> for details.
3440
3441 The main role of this interface is to expose the settings of the virtual
3442 machine and provide methods to change various aspects of the virtual
3443 machine's configuration. For machine objects stored in the
3444 <link to="IVirtualBox::machines"/> collection, all attributes are
3445 read-only unless explicitly stated otherwise in individual attribute
3446 and method descriptions.
3447
3448 In order to change a machine setting, a session for this machine must be
3449 opened using one of the <link to="IMachine::lockMachine" /> or
3450 <link to="IMachine::launchVMProcess"/> methods. After the
3451 machine has been successfully locked for a session, a mutable machine object
3452 needs to be queried from the session object and then the desired settings
3453 changes can be applied to the returned object using IMachine attributes and
3454 methods. See the <link to="ISession"/> interface description for more
3455 information about sessions.
3456
3457 Note that IMachine does not provide methods to control virtual machine
3458 execution (such as start the machine, or power it down) -- these methods
3459 are grouped in a separate interface called <link to="IConsole" />.
3460
3461 <see>ISession, IConsole</see>
3462 </desc>
3463
3464 <attribute name="parent" type="IVirtualBox" readonly="yes">
3465 <desc>Associated parent object.</desc>
3466 </attribute>
3467
3468 <attribute name="accessible" type="boolean" readonly="yes">
3469 <desc>
3470 Whether this virtual machine is currently accessible or not.
3471
3472 A machine is always deemed accessible unless it is registered <i>and</i>
3473 its settings file cannot be read or parsed (either because the file itself
3474 is unavailable or has invalid XML contents).
3475
3476 Every time this property is read, the accessibility state of
3477 this machine is re-evaluated. If the returned value is @c false,
3478 the <link to="#accessError"/> property may be used to get the
3479 detailed error information describing the reason of
3480 inaccessibility, including XML error messages.
3481
3482 When the machine is inaccessible, only the following properties
3483 can be used on it:
3484 <ul>
3485 <li><link to="#parent"/></li>
3486 <li><link to="#id"/></li>
3487 <li><link to="#settingsFilePath"/></li>
3488 <li><link to="#accessible"/></li>
3489 <li><link to="#accessError"/></li>
3490 </ul>
3491
3492 An attempt to access any other property or method will return
3493 an error.
3494
3495 The only possible action you can perform on an inaccessible
3496 machine is to unregister it using the
3497 <link to="IMachine::unregister"/> call (or, to check
3498 for the accessibility state once more by querying this
3499 property).
3500
3501 <note>
3502 In the current implementation, once this property returns
3503 @c true, the machine will never become inaccessible
3504 later, even if its settings file cannot be successfully
3505 read/written any more (at least, until the VirtualBox
3506 server is restarted). This limitation may be removed in
3507 future releases.
3508 </note>
3509 </desc>
3510 </attribute>
3511
3512 <attribute name="accessError" type="IVirtualBoxErrorInfo" readonly="yes">
3513 <desc>
3514 Error information describing the reason of machine
3515 inaccessibility.
3516
3517 Reading this property is only valid after the last call to
3518 <link to="#accessible"/> returned @c false (i.e. the
3519 machine is currently inaccessible). Otherwise, a @c null
3520 IVirtualBoxErrorInfo object will be returned.
3521 </desc>
3522 </attribute>
3523
3524 <attribute name="name" type="wstring">
3525 <desc>
3526 Name of the virtual machine.
3527
3528 Besides being used for human-readable identification purposes
3529 everywhere in VirtualBox, the virtual machine name is also used
3530 as a name of the machine's settings file and as a name of the
3531 subdirectory this settings file resides in. Thus, every time you
3532 change the value of this property, the settings file will be
3533 renamed once you call <link to="#saveSettings"/> to confirm the
3534 change. The containing subdirectory will be also renamed, but
3535 only if it has exactly the same name as the settings file
3536 itself prior to changing this property (for backward compatibility
3537 with previous API releases). The above implies the following
3538 limitations:
3539 <ul>
3540 <li>The machine name cannot be empty.</li>
3541 <li>The machine name can contain only characters that are valid
3542 file name characters according to the rules of the file
3543 system used to store VirtualBox configuration.</li>
3544 <li>You cannot have two or more machines with the same name
3545 if they use the same subdirectory for storing the machine
3546 settings files.</li>
3547 <li>You cannot change the name of the machine if it is running,
3548 or if any file in the directory containing the settings file
3549 is being used by another running machine or by any other
3550 process in the host operating system at a time when
3551 <link to="#saveSettings"/> is called.
3552 </li>
3553 </ul>
3554 If any of the above limitations are hit, <link to="#saveSettings"/>
3555 will return an appropriate error message explaining the exact
3556 reason and the changes you made to this machine will not be saved.
3557 </desc>
3558 </attribute>
3559
3560 <attribute name="description" type="wstring">
3561 <desc>
3562 Description of the virtual machine.
3563
3564 The description attribute can contain any text and is
3565 typically used to describe the hardware and software
3566 configuration of the virtual machine in detail (i.e. network
3567 settings, versions of the installed software and so on).
3568 </desc>
3569 </attribute>
3570
3571 <attribute name="id" type="uuid" mod="string" readonly="yes">
3572 <desc>UUID of the virtual machine.</desc>
3573 </attribute>
3574
3575 <attribute name="OSTypeId" type="wstring">
3576 <desc>
3577 User-defined identifier of the Guest OS type.
3578 You may use <link to="IVirtualBox::getGuestOSType"/> to obtain
3579 an IGuestOSType object representing details about the given
3580 Guest OS type.
3581 <note>
3582 This value may differ from the value returned by
3583 <link to="IGuest::OSTypeId"/> if Guest Additions are
3584 installed to the guest OS.
3585 </note>
3586 </desc>
3587 </attribute>
3588
3589 <attribute name="HardwareVersion" type="wstring">
3590 <desc>Hardware version identifier. Internal use only for now.</desc>
3591 </attribute>
3592
3593 <attribute name="hardwareUUID" type="uuid" mod="string">
3594 <desc>
3595 The UUID presented to the guest via memory tables, hardware and guest
3596 properties. For most VMs this is the same as the @a id, but for VMs
3597 which have been cloned or teleported it may be the same as the source
3598 VM. This latter is because the guest shouldn't notice that it was
3599 cloned or teleported.
3600 </desc>
3601 </attribute>
3602
3603 <attribute name="CPUCount" type="unsigned long">
3604 <desc>Number of virtual CPUs in the VM.</desc>
3605 </attribute>
3606
3607 <attribute name="CPUHotPlugEnabled" type="boolean">
3608 <desc>
3609 This setting determines whether VirtualBox allows CPU
3610 hotplugging for this machine.</desc>
3611 </attribute>
3612
3613 <attribute name="CPUExecutionCap" type="unsigned long">
3614 <desc>
3615 Means to limit the number of CPU cycles a guest can use. The unit
3616 is percentage of host CPU cycles per second. The valid range
3617 is 1 - 100. 100 (the default) implies no limit.
3618 </desc>
3619 </attribute>
3620
3621 <attribute name="memorySize" type="unsigned long">
3622 <desc>System memory size in megabytes.</desc>
3623 </attribute>
3624
3625 <attribute name="memoryBalloonSize" type="unsigned long">
3626 <desc>Memory balloon size in megabytes.</desc>
3627 </attribute>
3628
3629 <attribute name="PageFusionEnabled" type="boolean">
3630 <desc>
3631 This setting determines whether VirtualBox allows page
3632 fusion for this machine (64 bits host only).
3633 </desc>
3634 </attribute>
3635
3636 <attribute name="VRAMSize" type="unsigned long">
3637 <desc>Video memory size in megabytes.</desc>
3638 </attribute>
3639
3640 <attribute name="accelerate3DEnabled" type="boolean" default="false">
3641 <desc>
3642 This setting determines whether VirtualBox allows this machine to make
3643 use of the 3D graphics support available on the host.</desc>
3644 </attribute>
3645
3646 <attribute name="accelerate2DVideoEnabled" type="boolean" default="false">
3647 <desc>
3648 This setting determines whether VirtualBox allows this machine to make
3649 use of the 2D video acceleration support available on the host.</desc>
3650 </attribute>
3651
3652 <attribute name="monitorCount" type="unsigned long">
3653 <desc>
3654 Number of virtual monitors.
3655 <note>
3656 Only effective on Windows XP and later guests with
3657 Guest Additions installed.
3658 </note>
3659 </desc>
3660 </attribute>
3661
3662 <attribute name="BIOSSettings" type="IBIOSSettings" readonly="yes">
3663 <desc>Object containing all BIOS settings.</desc>
3664 </attribute>
3665
3666 <attribute name="firmwareType" type="FirmwareType">
3667 <desc>Type of firmware (such as legacy BIOS or EFI), used for initial
3668 bootstrap in this VM.</desc>
3669 </attribute>
3670
3671 <attribute name="pointingHidType" type="PointingHidType">
3672 <desc>Type of pointing HID (such as mouse or tablet) used in this VM.
3673 The default is typically "PS2Mouse" but can vary depending on the
3674 requirements of the guest operating system.</desc>
3675 </attribute>
3676
3677 <attribute name="keyboardHidType" type="KeyboardHidType">
3678 <desc>Type of keyboard HID used in this VM.
3679 The default is typically "PS2Keyboard" but can vary depending on the
3680 requirements of the guest operating system.</desc>
3681 </attribute>
3682
3683 <attribute name="hpetEnabled" type="boolean">
3684 <desc>This attribute controls if High Precision Event Timer (HPET) is
3685 enabled in this VM. Use this property if you want to provide guests
3686 with additional time source, or if guest requires HPET to function correctly.
3687 Default is false.</desc>
3688 </attribute>
3689
3690 <attribute name="chipsetType" type="ChipsetType">
3691 <desc>Chipset type used in this VM.</desc>
3692 </attribute>
3693
3694 <attribute name="snapshotFolder" type="wstring">
3695 <desc>
3696 Full path to the directory used to store snapshot data
3697 (differencing media and saved state files) of this machine.
3698
3699 The initial value of this property is
3700 <tt>&lt;</tt><link to="#settingsFilePath">
3701 path_to_settings_file</link><tt>&gt;/&lt;</tt>
3702 <link to="#id">machine_uuid</link>
3703 <tt>&gt;</tt>.
3704
3705 Currently, it is an error to try to change this property on
3706 a machine that has snapshots (because this would require to
3707 move possibly large files to a different location).
3708 A separate method will be available for this purpose later.
3709
3710 <note>
3711 Setting this property to @c null or to an empty string will restore
3712 the initial value.
3713 </note>
3714 <note>
3715 When setting this property, the specified path can be
3716 absolute (full path) or relative to the directory where the
3717 <link to="#settingsFilePath">machine settings file</link>
3718 is located. When reading this property, a full path is
3719 always returned.
3720 </note>
3721 <note>
3722 The specified path may not exist, it will be created
3723 when necessary.
3724 </note>
3725 </desc>
3726 </attribute>
3727
3728 <attribute name="VRDEServer" type="IVRDEServer" readonly="yes">
3729 <desc>VirtualBox Remote Desktop Extension (VRDE) server object.</desc>
3730 </attribute>
3731
3732 <attribute name="mediumAttachments" type="IMediumAttachment" readonly="yes" safearray="yes">
3733 <desc>Array of media attached to this machine.</desc>
3734 </attribute>
3735
3736 <attribute name="USBController" type="IUSBController" readonly="yes">
3737 <desc>
3738 Associated USB controller object.
3739
3740 <note>
3741 If USB functionality is not available in the given edition of
3742 VirtualBox, this method will set the result code to @c E_NOTIMPL.
3743 </note>
3744 </desc>
3745 </attribute>
3746
3747 <attribute name="audioAdapter" type="IAudioAdapter" readonly="yes">
3748 <desc>Associated audio adapter, always present.</desc>
3749 </attribute>
3750
3751 <attribute name="storageControllers" type="IStorageController" readonly="yes" safearray="yes">
3752 <desc>Array of storage controllers attached to this machine.</desc>
3753 </attribute>
3754
3755 <attribute name="settingsFilePath" type="wstring" readonly="yes">
3756 <desc>
3757 Full name of the file containing machine settings data.
3758 </desc>
3759 </attribute>
3760
3761 <attribute name="settingsModified" type="boolean" readonly="yes">
3762 <desc>
3763 Whether the settings of this machine have been modified
3764 (but neither yet saved nor discarded).
3765 <note>
3766 Reading this property is only valid on instances returned
3767 by <link to="ISession::machine"/> and on new machines
3768 created by <link to="IVirtualBox::createMachine"/> or opened
3769 by <link to="IVirtualBox::openMachine"/> but not
3770 yet registered, or on unregistered machines after calling
3771 <link to="IMachine::unregister"/>. For all other
3772 cases, the settings can never be modified.
3773 </note>
3774 <note>
3775 For newly created unregistered machines, the value of this
3776 property is always @c true until <link to="#saveSettings"/>
3777 is called (no matter if any machine settings have been
3778 changed after the creation or not). For opened machines
3779 the value is set to @c false (and then follows to normal rules).
3780 </note>
3781 </desc>
3782 </attribute>
3783
3784 <attribute name="sessionState" type="SessionState" readonly="yes">
3785 <desc>Current session state for this machine.</desc>
3786 </attribute>
3787
3788 <attribute name="sessionType" type="wstring" readonly="yes">
3789 <desc>
3790 Type of the session. If <link to="#sessionState"/> is
3791 Spawning or Locked, this attribute contains the
3792 same value as passed to the
3793 <link to="IMachine::launchVMProcess"/> method in the
3794 @a type parameter. If the session was used with
3795 <link to="IMachine::lockMachine" />, or if
3796 <link to="#sessionState"/> is SessionClosed, the value of this
3797 attribute is an empty string.
3798 </desc>
3799 </attribute>
3800
3801 <attribute name="sessionPid" type="unsigned long" readonly="yes">
3802 <desc>
3803 Identifier of the session process. This attribute contains the
3804 platform-dependent identifier of the process whose session was
3805 used with <link to="IMachine::lockMachine" /> call. The returned
3806 value is only valid if <link to="#sessionState"/> is Locked or
3807 Unlocking by the time this property is read.
3808 </desc>
3809 </attribute>
3810
3811 <attribute name="state" type="MachineState" readonly="yes">
3812 <desc>Current execution state of this machine.</desc>
3813 </attribute>
3814
3815 <attribute name="lastStateChange" type="long long" readonly="yes">
3816 <desc>
3817 Time stamp of the last execution state change,
3818 in milliseconds since 1970-01-01 UTC.
3819 </desc>
3820 </attribute>
3821
3822 <attribute name="stateFilePath" type="wstring" readonly="yes">
3823 <desc>
3824 Full path to the file that stores the execution state of
3825 the machine when it is in the <link to="MachineState_Saved"/> state.
3826 <note>
3827 When the machine is not in the Saved state, this attribute is
3828 an empty string.
3829 </note>
3830 </desc>
3831 </attribute>
3832
3833 <attribute name="logFolder" type="wstring" readonly="yes">
3834 <desc>
3835 Full path to the folder that stores a set of rotated log files
3836 recorded during machine execution. The most recent log file is
3837 named <tt>VBox.log</tt>, the previous log file is
3838 named <tt>VBox.log.1</tt> and so on (up to <tt>VBox.log.3</tt>
3839 in the current version).
3840 </desc>
3841 </attribute>
3842
3843 <attribute name="currentSnapshot" type="ISnapshot" readonly="yes">
3844 <desc>
3845 Current snapshot of this machine. This is @c null if the machine
3846 currently has no snapshots. If it is not @c null, then it was
3847 set by one of <link to="IConsole::takeSnapshot" />,
3848 <link to="IConsole::deleteSnapshot" />
3849 or <link to="IConsole::restoreSnapshot" />, depending on which
3850 was called last. See <link to="ISnapshot"/> for details.
3851 </desc>
3852 </attribute>
3853
3854 <attribute name="snapshotCount" type="unsigned long" readonly="yes">
3855 <desc>
3856 Number of snapshots taken on this machine. Zero means the
3857 machine doesn't have any snapshots.
3858 </desc>
3859 </attribute>
3860
3861 <attribute name="currentStateModified" type="boolean" readonly="yes">
3862 <desc>
3863 Returns @c true if the current state of the machine is not
3864 identical to the state stored in the current snapshot.
3865
3866 The current state is identical to the current snapshot only
3867 directly after one of the following calls are made:
3868
3869 <ul>
3870 <li><link to="IConsole::restoreSnapshot"/>
3871 </li>
3872 <li><link to="IConsole::takeSnapshot"/> (issued on a
3873 "powered off" or "saved" machine, for which
3874 <link to="#settingsModified"/> returns @c false)
3875 </li>
3876 </ul>
3877
3878 The current state remains identical until one of the following
3879 happens:
3880 <ul>
3881 <li>settings of the machine are changed</li>
3882 <li>the saved state is deleted</li>
3883 <li>the current snapshot is deleted</li>
3884 <li>an attempt to execute the machine is made</li>
3885 </ul>
3886
3887 <note>
3888 For machines that don't have snapshots, this property is
3889 always @c false.
3890 </note>
3891 </desc>
3892 </attribute>
3893
3894 <attribute name="sharedFolders" type="ISharedFolder" readonly="yes" safearray="yes">
3895 <desc>
3896 Collection of shared folders for this machine (permanent shared
3897 folders). These folders are shared automatically at machine startup
3898 and available only to the guest OS installed within this machine.
3899
3900 New shared folders are added to the collection using
3901 <link to="#createSharedFolder"/>. Existing shared folders can be
3902 removed using <link to="#removeSharedFolder"/>.
3903 </desc>
3904 </attribute>
3905
3906 <attribute name="clipboardMode" type="ClipboardMode">
3907 <desc>
3908 Synchronization mode between the host OS clipboard
3909 and the guest OS clipboard.
3910 </desc>
3911 </attribute>
3912
3913 <attribute name="guestPropertyNotificationPatterns" type="wstring">
3914 <desc>
3915 A comma-separated list of simple glob patterns. Changes to guest
3916 properties whose name matches one of the patterns will generate an
3917 <link to="IGuestPropertyChangedEvent"/> signal.
3918 </desc>
3919 </attribute>
3920
3921 <attribute name="teleporterEnabled" type="boolean">
3922 <desc>
3923 When set to @a true, the virtual machine becomes a target teleporter
3924 the next time it is powered on. This can only set to @a true when the
3925 VM is in the @a PoweredOff or @a Aborted state.
3926
3927 <!-- This property is automatically set to @a false when the VM is powered
3928 on. (bird: This doesn't work yet ) -->
3929 </desc>
3930 </attribute>
3931
3932 <attribute name="teleporterPort" type="unsigned long">
3933 <desc>
3934 The TCP port the target teleporter will listen for incoming
3935 teleportations on.
3936
3937 0 means the port is automatically selected upon power on. The actual
3938 value can be read from this property while the machine is waiting for
3939 incoming teleportations.
3940 </desc>
3941 </attribute>
3942
3943 <attribute name="teleporterAddress" type="wstring">
3944 <desc>
3945 The address the target teleporter will listen on. If set to an empty
3946 string, it will listen on all addresses.
3947 </desc>
3948 </attribute>
3949
3950 <attribute name="teleporterPassword" type="wstring">
3951 <desc>
3952 The password to check for on the target teleporter. This is just a
3953 very basic measure to prevent simple hacks and operators accidentally
3954 beaming a virtual machine to the wrong place.
3955 </desc>
3956 </attribute>
3957
3958 <attribute name="faultToleranceState" type="FaultToleranceState">
3959 <desc>
3960 Fault tolerance state; disabled, source or target.
3961 This property can be changed at any time. If you change it for a running
3962 VM, then the fault tolerance address and port must be set beforehand.
3963 </desc>
3964 </attribute>
3965
3966 <attribute name="faultTolerancePort" type="unsigned long">
3967 <desc>
3968 The TCP port the fault tolerance source or target will use for
3969 communication.
3970 </desc>
3971 </attribute>
3972
3973 <attribute name="faultToleranceAddress" type="wstring">
3974 <desc>
3975 The address the fault tolerance source or target.
3976 </desc>
3977 </attribute>
3978
3979 <attribute name="faultTolerancePassword" type="wstring">
3980 <desc>
3981 The password to check for on the standby VM. This is just a
3982 very basic measure to prevent simple hacks and operators accidentally
3983 choosing the wrong standby VM.
3984 </desc>
3985 </attribute>
3986
3987 <attribute name="faultToleranceSyncInterval" type="unsigned long">
3988 <desc>
3989 The interval in ms used for syncing the state between source and target.
3990 </desc>
3991 </attribute>
3992
3993 <attribute name="RTCUseUTC" type="boolean">
3994 <desc>
3995 When set to @a true, the RTC device of the virtual machine will run
3996 in UTC time, otherwise in local time. Especially Unix guests prefer
3997 the time in UTC.
3998 </desc>
3999 </attribute>
4000
4001 <attribute name="ioCacheEnabled" type="boolean">
4002 <desc>
4003 When set to @a true, the builtin I/O cache of the virtual machine
4004 will be enabled.
4005 </desc>
4006 </attribute>
4007
4008 <attribute name="ioCacheSize" type="unsigned long">
4009 <desc>
4010 Maximum size of the I/O cache in MB.
4011 </desc>
4012 </attribute>
4013
4014 <method name="lockMachine">
4015 <desc>
4016 Locks the machine for the given session to enable the caller
4017 to make changes to the machine or start the VM or control
4018 VM execution.
4019
4020 There are two ways to lock a machine for such uses:
4021
4022 <ul>
4023 <li>If you want to make changes to the machine settings,
4024 you must obtain an exclusive write lock on the machine
4025 by setting @a lockType to @c Write.
4026
4027 This will only succeed if no other process has locked
4028 the machine to prevent conflicting changes. Only after
4029 an exclusive write lock has been obtained using this method, one
4030 can change all VM settings or execute the VM in the process
4031 space of the session object. (Note that the latter is only of
4032 interest if you actually want to write a new front-end for
4033 virtual machines; but this API gets called internally by
4034 the existing front-ends such as VBoxHeadless and the VirtualBox
4035 GUI to acquire a write lock on the machine that they are running.)
4036
4037 On success, write-locking the machine for a session creates
4038 a second copy of the IMachine object. It is this second object
4039 upon which changes can be made; in VirtualBox terminology, the
4040 second copy is "mutable". It is only this second, mutable machine
4041 object upon which you can call methods that change the
4042 machine state. After having called this method, you can
4043 obtain this second, mutable machine object using the
4044 <link to="ISession::machine" /> attribute.
4045 </li>
4046 <li>If you only want to check the machine state or control
4047 machine execution without actually changing machine
4048 settings (e.g. to get access to VM statistics or take
4049 a snapshot or save the machine state), then set the
4050 @a lockType argument to @c Shared.
4051
4052 If no other session has obtained a lock, you will obtain an
4053 exclusive write lock as described above. However, if another
4054 session has already obtained such a lock, then a link to that
4055 existing session will be established which allows you
4056 to control that existing session.
4057
4058 To find out which type of lock was obtained, you can
4059 inspect <link to="ISession::type" />, which will have been
4060 set to either @c WriteLock or @c Shared.
4061 </li>
4062 </ul>
4063
4064 In either case, you can get access to the <link to="IConsole" />
4065 object which controls VM execution.
4066
4067 Also in all of the above cases, one must always call
4068 <link to="ISession::unlockMachine" /> to release the lock on the machine, or
4069 the machine's state will eventually be set to "Aborted".
4070
4071 To change settings on a machine, the following sequence is typically
4072 performed:
4073
4074 <ol>
4075 <li>Call this method to obtain an exclusive write lock for the current session.</li>
4076
4077 <li>Obtain a mutable IMachine object from <link to="ISession::machine" />.</li>
4078
4079 <li>Change the settings of the machine by invoking IMachine methods.</li>
4080
4081 <li>Call <link to="IMachine::saveSettings" />.</li>
4082
4083 <li>Release the write lock by calling <link to="ISession::unlockMachine"/>.</li>
4084 </ol>
4085
4086 <result name="E_UNEXPECTED">
4087 Virtual machine not registered.
4088 </result>
4089 <result name="E_ACCESSDENIED">
4090 Process not started by OpenRemoteSession.
4091 </result>
4092 <result name="VBOX_E_INVALID_OBJECT_STATE">
4093 Session already open or being opened.
4094 </result>
4095 <result name="VBOX_E_VM_ERROR">
4096 Failed to assign machine to session.
4097 </result>
4098 </desc>
4099 <param name="session" type="ISession" dir="in">
4100 <desc>
4101 Session object for which the machine will be locked.
4102 </desc>
4103 </param>
4104 <param name="lockType" type="LockType" dir="in">
4105 <desc>
4106 If set to @c Write, then attempt to acquire an exclusive write lock or fail.
4107 If set to @c Shared, then either acquire an exclusive write lock or establish
4108 a link to an existing session.
4109 </desc>
4110 </param>
4111 </method>
4112
4113 <method name="launchVMProcess">
4114 <desc>
4115 Spawns a new process that will execute the virtual machine and obtains a shared
4116 lock on the machine for the calling session.
4117
4118 If launching the VM succeeds, the new VM process will create its own session
4119 and write-lock the machine for it, preventing conflicting changes from other
4120 processes. If the machine is already locked (because it is already running or
4121 because another session has a write lock), launching the VM process will therefore
4122 fail. Reversely, future attempts to obtain a write lock will also fail while the
4123 machine is running.
4124
4125 The caller's session object remains separate from the session opened by the new
4126 VM process. It receives its own <link to="IConsole" /> object which can be used
4127 to control machine execution, but it cannot be used to change all VM settings
4128 which would be available after a <link to="#lockMachine" /> call.
4129
4130 The caller must eventually release the session's shared lock by calling
4131 <link to="ISession::unlockMachine" /> on the local session object once this call
4132 has returned. However, the session's state (see <link to="ISession::state" />)
4133 will not return to "Unlocked" until the remote session has also unlocked
4134 the machine (i.e. the machine has stopped running).
4135
4136 Launching a VM process can take some time (a new VM is started in a new process,
4137 for which memory and other resources need to be set up). Because of this,
4138 an <link to="IProgress" /> object is returned to allow the caller to wait
4139 for this asynchronous operation to be completed. Until then, the caller's
4140 session object remains in the "Unlocked" state, and its <link to="ISession::machine" />
4141 and <link to="ISession::console" /> attributes cannot be accessed.
4142 It is recommended to use <link to="IProgress::waitForCompletion" /> or
4143 similar calls to wait for completion. Completion is signalled when the VM
4144 is powered on. If launching the VM fails, error messages can be queried
4145 via the progress object, if available.
4146
4147 The progress object will have at least 2 sub-operations. The first
4148 operation covers the period up to the new VM process calls powerUp.
4149 The subsequent operations mirror the <link to="IConsole::powerUp"/>
4150 progress object. Because <link to="IConsole::powerUp"/> may require
4151 some extra sub-operations, the <link to="IProgress::operationCount"/>
4152 may change at the completion of operation.
4153
4154 For details on the teleportation progress operation, see
4155 <link to="IConsole::powerUp"/>.
4156
4157 The @a environment argument is a string containing definitions of
4158 environment variables in the following format:
4159 @code
4160 NAME[=VALUE]\n
4161 NAME[=VALUE]\n
4162 ...
4163 @endcode
4164 where <tt>\\n</tt> is the new line character. These environment
4165 variables will be appended to the environment of the VirtualBox server
4166 process. If an environment variable exists both in the server process
4167 and in this list, the value from this list takes precedence over the
4168 server's variable. If the value of the environment variable is
4169 omitted, this variable will be removed from the resulting environment.
4170 If the environment string is @c null or empty, the server environment
4171 is inherited by the started process as is.
4172
4173 <result name="E_UNEXPECTED">
4174 Virtual machine not registered.
4175 </result>
4176 <result name="E_INVALIDARG">
4177 Invalid session type @a type.
4178 </result>
4179 <result name="VBOX_E_OBJECT_NOT_FOUND">
4180 No machine matching @a machineId found.
4181 </result>
4182 <result name="VBOX_E_INVALID_OBJECT_STATE">
4183 Session already open or being opened.
4184 </result>
4185 <result name="VBOX_E_IPRT_ERROR">
4186 Launching process for machine failed.
4187 </result>
4188 <result name="VBOX_E_VM_ERROR">
4189 Failed to assign machine to session.
4190 </result>
4191 </desc>
4192 <param name="session" type="ISession" dir="in">
4193 <desc>
4194 Client session object to which the VM process will be connected (this
4195 must be in "Unlocked" state).
4196 </desc>
4197 </param>
4198 <param name="type" type="wstring" dir="in">
4199 <desc>
4200 Front-end to use for the new VM process. The following are currently supported:
4201 <ul>
4202 <li><tt>"gui"</tt>: VirtualBox Qt GUI front-end</li>
4203 <li><tt>"headless"</tt>: VBoxHeadless (VRDE Server) front-end</li>
4204 <li><tt>"sdl"</tt>: VirtualBox SDL front-end</li>
4205 </ul>
4206 </desc>
4207 </param>
4208 <param name="environment" type="wstring" dir="in">
4209 <desc>
4210 Environment to pass to the VM process.
4211 </desc>
4212 </param>
4213 <param name="progress" type="IProgress" dir="return">
4214 <desc>Progress object to track the operation completion.</desc>
4215 </param>
4216 </method>
4217
4218 <method name="setBootOrder">
4219 <desc>
4220 Puts the given device to the specified position in
4221 the boot order.
4222
4223 To indicate that no device is associated with the given position,
4224 <link to="DeviceType_Null"/> should be used.
4225
4226 @todo setHardDiskBootOrder(), setNetworkBootOrder()
4227
4228 <result name="E_INVALIDARG">
4229 Boot @a position out of range.
4230 </result>
4231 <result name="E_NOTIMPL">
4232 Booting from USB @a device currently not supported.
4233 </result>
4234
4235 </desc>
4236 <param name="position" type="unsigned long" dir="in">
4237 <desc>
4238 Position in the boot order (@c 1 to the total number of
4239 devices the machine can boot from, as returned by
4240 <link to="ISystemProperties::maxBootPosition"/>).
4241 </desc>
4242 </param>
4243 <param name="device" type="DeviceType" dir="in">
4244 <desc>
4245 The type of the device used to boot at the given position.
4246 </desc>
4247 </param>
4248 </method>
4249
4250 <method name="getBootOrder" const="yes">
4251 <desc>
4252 Returns the device type that occupies the specified
4253 position in the boot order.
4254
4255 @todo [remove?]
4256 If the machine can have more than one device of the returned type
4257 (such as hard disks), then a separate method should be used to
4258 retrieve the individual device that occupies the given position.
4259
4260 If here are no devices at the given position, then
4261 <link to="DeviceType_Null"/> is returned.
4262
4263 @todo getHardDiskBootOrder(), getNetworkBootOrder()
4264
4265 <result name="E_INVALIDARG">
4266 Boot @a position out of range.
4267 </result>
4268
4269 </desc>
4270 <param name="position" type="unsigned long" dir="in">
4271 <desc>
4272 Position in the boot order (@c 1 to the total number of
4273 devices the machine can boot from, as returned by
4274 <link to="ISystemProperties::maxBootPosition"/>).
4275 </desc>
4276 </param>
4277 <param name="device" type="DeviceType" dir="return">
4278 <desc>
4279 Device at the given position.
4280 </desc>
4281 </param>
4282 </method>
4283
4284 <method name="attachDevice">
4285 <desc>
4286 Attaches a device and optionally mounts a medium to the given storage
4287 controller (<link to="IStorageController" />, identified by @a name),
4288 at the indicated port and device.
4289
4290 This method is intended for managing storage devices in general while a
4291 machine is powered off. It can be used to attach and detach fixed
4292 and removeable media. The following kind of media can be attached
4293 to a machine:
4294
4295 <ul>
4296 <li>For fixed and removable media, you can pass in a medium that was
4297 previously opened using <link to="IVirtualBox::openMedium" />.
4298 </li>
4299
4300 <li>Only for storage devices supporting removable media (such as
4301 DVDs and floppies), you can also specify a null pointer to
4302 indicate an empty drive or one of the medium objects listed
4303 in the <link to="IHost::DVDDrives" /> and <link to="IHost::floppyDrives"/>
4304 arrays to indicate a host drive.
4305 For removeable devices, you can also use <link to="IMachine::mountMedium"/>
4306 to change the media while the machine is running.
4307 </li>
4308 </ul>
4309
4310 In a VM's default configuration of virtual machines, the secondary
4311 master of the IDE controller is used for a CD/DVD drive.
4312
4313 After calling this returns successfully, a new instance of
4314 <link to="IMediumAttachment"/> will appear in the machine's list of medium
4315 attachments (see <link to="IMachine::mediumAttachments"/>).
4316
4317 See <link to="IMedium"/> and <link to="IMediumAttachment"/> for more
4318 information about attaching media.
4319
4320 The specified device slot must not have a device attached to it,
4321 or this method will fail.
4322
4323 <note>
4324 You cannot attach a device to a newly created machine until
4325 this machine's settings are saved to disk using
4326 <link to="#saveSettings"/>.
4327 </note>
4328 <note>
4329 If the medium is being attached indirectly, a new differencing medium
4330 will implicitly be created for it and attached instead. If the
4331 changes made to the machine settings (including this indirect
4332 attachment) are later cancelled using <link to="#discardSettings"/>,
4333 this implicitly created differencing medium will implicitly
4334 be deleted.
4335 </note>
4336
4337 <result name="E_INVALIDARG">
4338 SATA device, SATA port, IDE port or IDE slot out of range, or
4339 file or UUID not found.
4340 </result>
4341 <result name="VBOX_E_INVALID_OBJECT_STATE">
4342 Machine must be registered before media can be attached.
4343 </result>
4344 <result name="VBOX_E_INVALID_VM_STATE">
4345 Invalid machine state.
4346 </result>
4347 <result name="VBOX_E_OBJECT_IN_USE">
4348 A medium is already attached to this or another virtual machine.
4349 </result>
4350
4351 </desc>
4352 <param name="name" type="wstring" dir="in">
4353 <desc>Name of the storage controller to attach the device to.</desc>
4354 </param>
4355 <param name="controllerPort" type="long" dir="in">
4356 <desc>Port to attach the device to. For an IDE controller, 0 specifies
4357 the primary controller and 1 specifies the secondary controller.
4358 For a SCSI controller, this must range from 0 to 15; for a SATA controller,
4359 from 0 to 29; for an SAS controller, from 0 to 7.</desc>
4360 </param>
4361 <param name="device" type="long" dir="in">
4362 <desc>Device slot in the given port to attach the device to. This is only
4363 relevant for IDE controllers, for which 0 specifies the master device and
4364 1 specifies the slave device. For all other controller types, this must
4365 be 0.</desc>
4366 </param>
4367 <param name="type" type="DeviceType" dir="in">
4368 <desc>Device type of the attached device. For media opened by
4369 <link to="IVirtualBox::openMedium" />, this must match the device type
4370 specified there.</desc>
4371 </param>
4372 <param name="medium" type="IMedium" dir="in">
4373 <desc>Medium to mount or NULL for an empty drive.</desc>
4374 </param>
4375 </method>
4376
4377 <method name="detachDevice">
4378 <desc>
4379 Detaches the device attached to a device slot of the specified bus.
4380
4381 Detaching the device from the virtual machine is deferred. This means
4382 that the medium remains associated with the machine when this method
4383 returns and gets actually de-associated only after a successful
4384 <link to="#saveSettings"/> call. See <link to="IMedium"/>
4385 for more detailed information about attaching media.
4386
4387 <note>
4388 You cannot detach a device from a running machine.
4389 </note>
4390 <note>
4391 Detaching differencing media implicitly created by <link
4392 to="#attachDevice"/> for the indirect attachment using this
4393 method will <b>not</b> implicitly delete them. The
4394 <link to="IMedium::deleteStorage"/> operation should be
4395 explicitly performed by the caller after the medium is successfully
4396 detached and the settings are saved with
4397 <link to="#saveSettings"/>, if it is the desired action.
4398 </note>
4399
4400 <result name="VBOX_E_INVALID_VM_STATE">
4401 Attempt to detach medium from a running virtual machine.
4402 </result>
4403 <result name="VBOX_E_OBJECT_NOT_FOUND">
4404 No medium attached to given slot/bus.
4405 </result>
4406 <result name="VBOX_E_NOT_SUPPORTED">
4407 Medium format does not support storage deletion.
4408 </result>
4409
4410 </desc>
4411 <param name="name" type="wstring" dir="in">
4412 <desc>Name of the storage controller to detach the medium from.</desc>
4413 </param>
4414 <param name="controllerPort" type="long" dir="in">
4415 <desc>Port number to detach the medium from.</desc>
4416 </param>
4417 <param name="device" type="long" dir="in">
4418 <desc>Device slot number to detach the medium from.</desc>
4419 </param>
4420 </method>
4421
4422 <method name="passthroughDevice">
4423 <desc>
4424 Sets the passthrough mode of an existing DVD device. Changing the
4425 setting while the VM is running is forbidden. The setting is only used
4426 if at VM start the device is configured as a host DVD drive, in all
4427 other cases it is ignored. The device must already exist; see
4428 <link to="IMachine::attachDevice"/> for how to attach a new device.
4429
4430 The @a controllerPort and @a device parameters specify the device slot and
4431 have have the same meaning as with <link to="IMachine::attachDevice" />.
4432
4433 <result name="E_INVALIDARG">
4434 SATA device, SATA port, IDE port or IDE slot out of range.
4435 </result>
4436 <result name="VBOX_E_INVALID_OBJECT_STATE">
4437 Attempt to modify an unregistered virtual machine.
4438 </result>
4439 <result name="VBOX_E_INVALID_VM_STATE">
4440 Invalid machine state.
4441 </result>
4442
4443 </desc>
4444 <param name="name" type="wstring" dir="in">
4445 <desc>Name of the storage controller.</desc>
4446 </param>
4447 <param name="controllerPort" type="long" dir="in">
4448 <desc>Storage controller port.</desc>
4449 </param>
4450 <param name="device" type="long" dir="in">
4451 <desc>Device slot in the given port.</desc>
4452 </param>
4453 <param name="passthrough" type="boolean" dir="in">
4454 <desc>New value for the passthrough setting.</desc>
4455 </param>
4456 </method>
4457
4458 <method name="mountMedium">
4459 <desc>
4460 Mounts a medium (<link to="IMedium" />, identified
4461 by the given UUID @a id) to the given storage controller
4462 (<link to="IStorageController" />, identified by @a name),
4463 at the indicated port and device. The device must already exist;
4464 see <link to="IMachine::attachDevice"/> for how to attach a new device.
4465
4466 This method is intended only for managing removable media, where the
4467 device is fixed but media is changeable at runtime (such as DVDs
4468 and floppies). It cannot be used for fixed media such as hard disks.
4469
4470 The @a controllerPort and @a device parameters specify the device slot and
4471 have have the same meaning as with <link to="IMachine::attachDevice" />.
4472
4473 The specified device slot can have a medium mounted, which will be
4474 unmounted first. Specifying a zero UUID (or an empty string) for
4475 @a medium does just an unmount.
4476
4477 See <link to="IMedium"/> for more detailed information about
4478 attaching media.
4479
4480 <result name="E_INVALIDARG">
4481 SATA device, SATA port, IDE port or IDE slot out of range.
4482 </result>
4483 <result name="VBOX_E_INVALID_OBJECT_STATE">
4484 Attempt to attach medium to an unregistered virtual machine.
4485 </result>
4486 <result name="VBOX_E_INVALID_VM_STATE">
4487 Invalid machine state.
4488 </result>
4489 <result name="VBOX_E_OBJECT_IN_USE">
4490 Medium already attached to this or another virtual machine.
4491 </result>
4492
4493 </desc>
4494 <param name="name" type="wstring" dir="in">
4495 <desc>Name of the storage controller to attach the medium to.</desc>
4496 </param>
4497 <param name="controllerPort" type="long" dir="in">
4498 <desc>Port to attach the medium to.</desc>
4499 </param>
4500 <param name="device" type="long" dir="in">
4501 <desc>Device slot in the given port to attach the medium to.</desc>
4502 </param>
4503 <param name="medium" type="IMedium" dir="in">
4504 <desc>Medium to mount or NULL for an empty drive.</desc>
4505 </param>
4506 <param name="force" type="boolean" dir="in">
4507 <desc>Allows to force unmount/mount of a medium which is locked by
4508 the device slot in the given port to attach the medium to.</desc>
4509 </param>
4510 </method>
4511
4512 <method name="getMedium" const="yes">
4513 <desc>
4514 Returns the virtual medium attached to a device slot of the specified
4515 bus.
4516
4517 Note that if the medium was indirectly attached by
4518 <link to="#mountMedium"/> to the given device slot then this
4519 method will return not the same object as passed to the
4520 <link to="#mountMedium"/> call. See <link to="IMedium"/> for
4521 more detailed information about mounting a medium.
4522
4523 <result name="VBOX_E_OBJECT_NOT_FOUND">
4524 No medium attached to given slot/bus.
4525 </result>
4526
4527 </desc>
4528 <param name="name" type="wstring" dir="in">
4529 <desc>Name of the storage controller the medium is attached to.</desc>
4530 </param>
4531 <param name="controllerPort" type="long" dir="in">
4532 <desc>Port to query.</desc>
4533 </param>
4534 <param name="device" type="long" dir="in">
4535 <desc>Device slot in the given port to query.</desc>
4536 </param>
4537 <param name="medium" type="IMedium" dir="return">
4538 <desc>Attached medium object.</desc>
4539 </param>
4540 </method>
4541
4542 <method name="getMediumAttachmentsOfController" const="yes">
4543 <desc>
4544 Returns an array of medium attachments which are attached to the
4545 the controller with the given name.
4546
4547 <result name="VBOX_E_OBJECT_NOT_FOUND">
4548 A storage controller with given name doesn't exist.
4549 </result>
4550 </desc>
4551 <param name="name" type="wstring" dir="in"/>
4552 <param name="mediumAttachments" type="IMediumAttachment" safearray="yes" dir="return"/>
4553 </method>
4554
4555 <method name="getMediumAttachment" const="yes">
4556 <desc>
4557 Returns a medium attachment which corresponds to the controller with
4558 the given name, on the given port and device slot.
4559
4560 <result name="VBOX_E_OBJECT_NOT_FOUND">
4561 No attachment exists for the given controller/port/device combination.
4562 </result>
4563 </desc>
4564 <param name="name" type="wstring" dir="in"/>
4565 <param name="controllerPort" type="long" dir="in"/>
4566 <param name="device" type="long" dir="in"/>
4567 <param name="attachment" type="IMediumAttachment" dir="return"/>
4568 </method>
4569
4570 <method name="getNetworkAdapter" const="yes">
4571 <desc>
4572 Returns the network adapter associated with the given slot.
4573 Slots are numbered sequentially, starting with zero. The total
4574 number of adapters per machine is defined by the
4575 <link to="ISystemProperties::networkAdapterCount"/> property,
4576 so the maximum slot number is one less than that property's value.
4577
4578 <result name="E_INVALIDARG">
4579 Invalid @a slot number.
4580 </result>
4581
4582 </desc>
4583 <param name="slot" type="unsigned long" dir="in"/>
4584 <param name="adapter" type="INetworkAdapter" dir="return"/>
4585 </method>
4586
4587 <method name="addStorageController">
4588 <desc>
4589 Adds a new storage controller (SCSI, SAS or SATA controller) to the
4590 machine and returns it as an instance of
4591 <link to="IStorageController" />.
4592
4593 @a name identifies the controller for subsequent calls such as
4594 <link to="#getStorageControllerByName" />,
4595 <link to="#getStorageControllerByInstance" />,
4596 <link to="#removeStorageController" />,
4597 <link to="#attachDevice" /> or <link to="#mountMedium" />.
4598
4599 After the controller has been added, you can set its exact
4600 type by setting the <link to="IStorageController::controllerType" />.
4601
4602 <result name="VBOX_E_OBJECT_IN_USE">
4603 A storage controller with given name exists already.
4604 </result>
4605 <result name="E_INVALIDARG">
4606 Invalid @a controllerType.
4607 </result>
4608 </desc>
4609 <param name="name" type="wstring" dir="in"/>
4610 <param name="connectionType" type="StorageBus" dir="in"/>
4611 <param name="controller" type="IStorageController" dir="return"/>
4612 </method>
4613
4614 <method name="getStorageControllerByName" const="yes">
4615 <desc>
4616 Returns a storage controller with the given name.
4617
4618 <result name="VBOX_E_OBJECT_NOT_FOUND">
4619 A storage controller with given name doesn't exist.
4620 </result>
4621 </desc>
4622 <param name="name" type="wstring" dir="in"/>
4623 <param name="storageController" type="IStorageController" dir="return"/>
4624 </method>
4625
4626 <method name="getStorageControllerByInstance" const="yes">
4627 <desc>
4628 Returns a storage controller with the given instance number.
4629
4630 <result name="VBOX_E_OBJECT_NOT_FOUND">
4631 A storage controller with given instance number doesn't exist.
4632 </result>
4633 </desc>
4634 <param name="instance" type="unsigned long" dir="in"/>
4635 <param name="storageController" type="IStorageController" dir="return"/>
4636 </method>
4637
4638 <method name="removeStorageController">
4639 <desc>
4640 Removes a storage controller from the machine.
4641
4642 <result name="VBOX_E_OBJECT_NOT_FOUND">
4643 A storage controller with given name doesn't exist.
4644 </result>
4645 </desc>
4646 <param name="name" type="wstring" dir="in"/>
4647 </method>
4648
4649 <method name="getSerialPort" const="yes">
4650 <desc>
4651 Returns the serial port associated with the given slot.
4652 Slots are numbered sequentially, starting with zero. The total
4653 number of serial ports per machine is defined by the
4654 <link to="ISystemProperties::serialPortCount"/> property,
4655 so the maximum slot number is one less than that property's value.
4656
4657 <result name="E_INVALIDARG">
4658 Invalid @a slot number.
4659 </result>
4660
4661 </desc>
4662 <param name="slot" type="unsigned long" dir="in"/>
4663 <param name="port" type="ISerialPort" dir="return"/>
4664 </method>
4665
4666 <method name="getParallelPort" const="yes">
4667 <desc>
4668 Returns the parallel port associated with the given slot.
4669 Slots are numbered sequentially, starting with zero. The total
4670 number of parallel ports per machine is defined by the
4671 <link to="ISystemProperties::parallelPortCount"/> property,
4672 so the maximum slot number is one less than that property's value.
4673
4674 <result name="E_INVALIDARG">
4675 Invalid @a slot number.
4676 </result>
4677
4678 </desc>
4679 <param name="slot" type="unsigned long" dir="in"/>
4680 <param name="port" type="IParallelPort" dir="return"/>
4681 </method>
4682
4683 <method name="getExtraDataKeys">
4684 <desc>
4685 Returns an array representing the machine-specific extra data keys
4686 which currently have values defined.
4687 </desc>
4688 <param name="value" type="wstring" dir="return" safearray="yes">
4689 <desc>Array of extra data keys.</desc>
4690 </param>
4691 </method>
4692
4693 <method name="getExtraData">
4694 <desc>
4695 Returns associated machine-specific extra data.
4696
4697 If the requested data @a key does not exist, this function will
4698 succeed and return an empty string in the @a value argument.
4699
4700 <result name="VBOX_E_FILE_ERROR">
4701 Settings file not accessible.
4702 </result>
4703 <result name="VBOX_E_XML_ERROR">
4704 Could not parse the settings file.
4705 </result>
4706
4707 </desc>
4708 <param name="key" type="wstring" dir="in">
4709 <desc>Name of the data key to get.</desc>
4710 </param>
4711 <param name="value" type="wstring" dir="return">
4712 <desc>Value of the requested data key.</desc>
4713 </param>
4714 </method>
4715
4716 <method name="setExtraData">
4717 <desc>
4718 Sets associated machine-specific extra data.
4719
4720 If you pass @c null or an empty string as a key @a value, the given
4721 @a key will be deleted.
4722
4723 <note>
4724 Before performing the actual data change, this method will ask all
4725 registered listeners using the
4726 <link to="IExtraDataCanChangeEvent"/>
4727 notification for a permission. If one of the listeners refuses the
4728 new value, the change will not be performed.
4729 </note>
4730 <note>
4731 On success, the
4732 <link to="IExtraDataChangedEvent"/> notification
4733 is called to inform all registered listeners about a successful data
4734 change.
4735 </note>
4736 <note>
4737 This method can be called outside the machine session and therefore
4738 it's a caller's responsibility to handle possible race conditions
4739 when several clients change the same key at the same time.
4740 </note>
4741
4742 <result name="VBOX_E_FILE_ERROR">
4743 Settings file not accessible.
4744 </result>
4745 <result name="VBOX_E_XML_ERROR">
4746 Could not parse the settings file.
4747 </result>
4748
4749 </desc>
4750 <param name="key" type="wstring" dir="in">
4751 <desc>Name of the data key to set.</desc>
4752 </param>
4753 <param name="value" type="wstring" dir="in">
4754 <desc>Value to assign to the key.</desc>
4755 </param>
4756 </method>
4757
4758 <method name="getCPUProperty" const="yes">
4759 <desc>
4760 Returns the virtual CPU boolean value of the specified property.
4761
4762 <result name="E_INVALIDARG">
4763 Invalid property.
4764 </result>
4765
4766 </desc>
4767 <param name="property" type="CPUPropertyType" dir="in">
4768 <desc>
4769 Property type to query.
4770 </desc>
4771 </param>
4772 <param name="value" type="boolean" dir="return">
4773 <desc>
4774 Property value.
4775 </desc>
4776 </param>
4777 </method>
4778
4779 <method name="setCPUProperty">
4780 <desc>
4781 Sets the virtual CPU boolean value of the specified property.
4782
4783 <result name="E_INVALIDARG">
4784 Invalid property.
4785 </result>
4786
4787 </desc>
4788 <param name="property" type="CPUPropertyType" dir="in">
4789 <desc>
4790 Property type to query.
4791 </desc>
4792 </param>
4793 <param name="value" type="boolean" dir="in">
4794 <desc>
4795 Property value.
4796 </desc>
4797 </param>
4798 </method>
4799
4800 <method name="getCPUIDLeaf" const="yes">
4801 <desc>
4802 Returns the virtual CPU cpuid information for the specified leaf.
4803
4804 Currently supported index values for cpuid:
4805 Standard CPUID leafs: 0 - 0xA
4806 Extended CPUID leafs: 0x80000000 - 0x8000000A
4807
4808 See the Intel and AMD programmer's manuals for detailed information
4809 about the cpuid instruction and its leafs.
4810 <result name="E_INVALIDARG">
4811 Invalid id.
4812 </result>
4813
4814 </desc>
4815 <param name="id" type="unsigned long" dir="in">
4816 <desc>
4817 CPUID leaf index.
4818 </desc>
4819 </param>
4820 <param name="valEax" type="unsigned long" dir="out">
4821 <desc>
4822 CPUID leaf value for register eax.
4823 </desc>
4824 </param>
4825 <param name="valEbx" type="unsigned long" dir="out">
4826 <desc>
4827 CPUID leaf value for register ebx.
4828 </desc>
4829 </param>
4830 <param name="valEcx" type="unsigned long" dir="out">
4831 <desc>
4832 CPUID leaf value for register ecx.
4833 </desc>
4834 </param>
4835 <param name="valEdx" type="unsigned long" dir="out">
4836 <desc>
4837 CPUID leaf value for register edx.
4838 </desc>
4839 </param>
4840 </method>
4841
4842 <method name="setCPUIDLeaf">
4843 <desc>
4844 Sets the virtual CPU cpuid information for the specified leaf. Note that these values
4845 are not passed unmodified. VirtualBox clears features that it doesn't support.
4846
4847 Currently supported index values for cpuid:
4848 Standard CPUID leafs: 0 - 0xA
4849 Extended CPUID leafs: 0x80000000 - 0x8000000A
4850
4851 See the Intel and AMD programmer's manuals for detailed information
4852 about the cpuid instruction and its leafs.
4853
4854 Do not use this method unless you know exactly what you're doing. Misuse can lead to
4855 random crashes inside VMs.
4856 <result name="E_INVALIDARG">
4857 Invalid id.
4858 </result>
4859
4860 </desc>
4861 <param name="id" type="unsigned long" dir="in">
4862 <desc>
4863 CPUID leaf index.
4864 </desc>
4865 </param>
4866 <param name="valEax" type="unsigned long" dir="in">
4867 <desc>
4868 CPUID leaf value for register eax.
4869 </desc>
4870 </param>
4871 <param name="valEbx" type="unsigned long" dir="in">
4872 <desc>
4873 CPUID leaf value for register ebx.
4874 </desc>
4875 </param>
4876 <param name="valEcx" type="unsigned long" dir="in">
4877 <desc>
4878 CPUID leaf value for register ecx.
4879 </desc>
4880 </param>
4881 <param name="valEdx" type="unsigned long" dir="in">
4882 <desc>
4883 CPUID leaf value for register edx.
4884 </desc>
4885 </param>
4886 </method>
4887
4888 <method name="removeCPUIDLeaf">
4889 <desc>
4890 Removes the virtual CPU cpuid leaf for the specified index
4891
4892 <result name="E_INVALIDARG">
4893 Invalid id.
4894 </result>
4895
4896 </desc>
4897 <param name="id" type="unsigned long" dir="in">
4898 <desc>
4899 CPUID leaf index.
4900 </desc>
4901 </param>
4902 </method>
4903
4904 <method name="removeAllCPUIDLeaves">
4905 <desc>
4906 Removes all the virtual CPU cpuid leaves
4907 </desc>
4908 </method>
4909
4910 <method name="getHWVirtExProperty" const="yes">
4911 <desc>
4912 Returns the value of the specified hardware virtualization boolean property.
4913
4914 <result name="E_INVALIDARG">
4915 Invalid property.
4916 </result>
4917
4918 </desc>
4919 <param name="property" type="HWVirtExPropertyType" dir="in">
4920 <desc>
4921 Property type to query.
4922 </desc>
4923 </param>
4924 <param name="value" type="boolean" dir="return">
4925 <desc>
4926 Property value.
4927 </desc>
4928 </param>
4929 </method>
4930
4931 <method name="setHWVirtExProperty">
4932 <desc>
4933 Sets a new value for the specified hardware virtualization boolean property.
4934
4935 <result name="E_INVALIDARG">
4936 Invalid property.
4937 </result>
4938
4939 </desc>
4940 <param name="property" type="HWVirtExPropertyType" dir="in">
4941 <desc>
4942 Property type to set.
4943 </desc>
4944 </param>
4945 <param name="value" type="boolean" dir="in">
4946 <desc>
4947 New property value.
4948 </desc>
4949 </param>
4950 </method>
4951
4952 <method name="saveSettings">
4953 <desc>
4954 Saves any changes to machine settings made since the session
4955 has been opened or a new machine has been created, or since the
4956 last call to <link to="#saveSettings"/> or <link to="#discardSettings"/>.
4957 For registered machines, new settings become visible to all
4958 other VirtualBox clients after successful invocation of this
4959 method.
4960 <note>
4961 The method sends <link to="IMachineDataChangedEvent"/>
4962 notification event after the configuration has been successfully
4963 saved (only for registered machines).
4964 </note>
4965 <note>
4966 Calling this method is only valid on instances returned
4967 by <link to="ISession::machine"/> and on new machines
4968 created by <link to="IVirtualBox::createMachine"/> but not
4969 yet registered, or on unregistered machines after calling
4970 <link to="IMachine::unregister"/>.
4971 </note>
4972
4973 <result name="VBOX_E_FILE_ERROR">
4974 Settings file not accessible.
4975 </result>
4976 <result name="VBOX_E_XML_ERROR">
4977 Could not parse the settings file.
4978 </result>
4979 <result name="E_ACCESSDENIED">
4980 Modification request refused.
4981 </result>
4982
4983 </desc>
4984 </method>
4985
4986 <method name="discardSettings">
4987 <desc>
4988 Discards any changes to the machine settings made since the session
4989 has been opened or since the last call to <link to="#saveSettings"/>
4990 or <link to="#discardSettings"/>.
4991 <note>
4992 Calling this method is only valid on instances returned
4993 by <link to="ISession::machine"/> and on new machines
4994 created by <link to="IVirtualBox::createMachine"/> or
4995 opened by <link to="IVirtualBox::openMachine"/> but not
4996 yet registered, or on unregistered machines after calling
4997 <link to="IMachine::unregister"/>.
4998 </note>
4999
5000 <result name="VBOX_E_INVALID_VM_STATE">
5001 Virtual machine is not mutable.
5002 </result>
5003
5004 </desc>
5005 </method>
5006
5007 <method name="unregister">
5008 <desc>
5009 Unregisters the machine, which must have been previously registered using
5010 <link to="IVirtualBox::registerMachine"/>, and optionally do additional
5011 cleanup before the machine is unregistered.
5012
5013 This method does not delete any files. It only changes the machine configuration and
5014 the list of registered machines in the VirtualBox object. To delete the files which
5015 belonged to the machine, including the XML file of the machine itself, call
5016 <link to="#delete"/>, optionally with the array of IMedium objects which was returned
5017 from this method.
5018
5019 How thoroughly this method cleans up the machine configuration before unregistering
5020 the machine depends on the @a cleanupMode argument.
5021
5022 <ul>
5023 <li>With "UnregisterOnly", the machine will only be unregistered, but no additional
5024 cleanup will be performed. The call will fail if the machine is in "Saved" state
5025 or has any snapshots or any media attached (see <link to="IMediumAttachment" />.
5026 It is the responsibility of the caller to delete all such configuration in this mode.
5027 In this mode, the API behaves like the former @c IVirtualBox::unregisterMachine() API
5028 which it replaces.</li>
5029 <li>With "DetachAllReturnNone", the call will succeed even if the machine is in "Saved"
5030 state or if it has snapshots or media attached. All media attached to the current machine
5031 state or in snapshots will be detached. No medium objects will be returned; all of the
5032 machine's media will remain open.</li>
5033 <li>With "DetachAllReturnHardDisksOnly", the call will behave like with "DetachAllReturnNone",
5034 except that all the hard disk medium objects which were detached from the machine will
5035 be returned as an array. This allows for quickly passing them to the <link to="#delete" />
5036 API for closing and deletion.</li>
5037 <li>With "Full", the call will behave like with "DetachAllReturnHardDisksOnly", except
5038 that all media will be returned in the array, including removeable media like DVDs and
5039 floppies. This might be useful if the user wants to inspect in detail which media were
5040 attached to the machine. Be careful when passing the media array to <link to="#delete" />
5041 in that case because users will typically want to preserve ISO and RAW image files.</li>
5042 </ul>
5043
5044 This API does not verify whether the media files returned in the array are still
5045 attached to other machines (i.e. shared between several machines). If such a shared
5046 image is passed to <link to="#delete" /> however, closing the image will fail there
5047 and the image will be silently skipped.
5048
5049 A typical implementation will use "DetachAllReturnHardDisksOnly" and then pass the
5050 resulting IMedia array to <link to="#delete"/>. This way, the machine is completely
5051 deleted with all its saved states and hard disk images, but images for removeable
5052 drives (such as ISO and RAW files) will remain on disk.
5053
5054 The call will fail if the machine is currently locked (see <link to="ISession" />).
5055 It implicitly calls <link to="#saveSettings"/> to save all current machine settings
5056 before unregistering it.
5057
5058 After successful method invocation, the <link to="IMachineRegisteredEvent"/> event
5059 is fired.
5060
5061 <note>
5062 If the given machine is inaccessible (see <link to="#accessible"/>), it
5063 will be unregistered and fully uninitialized right afterwards. As a result,
5064 the returned machine object will be unusable and an attempt to call
5065 <b>any</b> method will return the "Object not ready" error.
5066 </note>
5067
5068 <result name="VBOX_E_INVALID_OBJECT_STATE">
5069 Machine is currently locked for a session.
5070 </result>
5071 </desc>
5072
5073 <param name="cleanupMode" type="CleanupMode" dir="in">
5074 <desc>How to clean up after the machine has been unregistered.</desc>
5075 </param>
5076 <param name="aMedia" type="IMedium" safearray="yes" dir="return">
5077 <desc>List of media detached from the machine, depending on the @a cleanupMode parameter.</desc>
5078 </param>
5079 </method>
5080
5081 <method name="delete">
5082 <desc>
5083 Deletes the files associated with this machine from disk. If medium objects are passed
5084 in with the @a aMedia argument, they are closed and, if closing was successful, their
5085 storage files are deleted as well. For convenience, this array of media files can be
5086 the same as the one returned from a previous <link to="#unregister" /> call.
5087
5088 This method must only be called on machines which are either write-locked (i.e. on instances
5089 returned by <link to="ISession::machine"/>) or on unregistered machines (i.e. not yet
5090 registered machines created by <link to="IVirtualBox::createMachine"/> or opened by
5091 <link to="IVirtualBox::openMachine"/>, or after having called <link to="#unregister"/>).
5092
5093 The following files will be deleted by this method:
5094 <ul>
5095 <li>If <link to="#unregister" /> had been previously called with a @a cleanupMode
5096 argument other than "UnregisterOnly", this will delete all saved state files that
5097 the machine had in use; possibly one if the machine was in "Saved" state and one
5098 for each online snapshot that the machine had.</li>
5099 <li>On each medium object passed in the @a aMedia array, this will call
5100 <link to="IMedium::close" />. If that succeeds, this will attempt to delete the
5101 medium's storage on disk. Since the close() call will fail if the medium is still
5102 in use, e.g. because it is still attached to a second machine; in that case the
5103 storage will not be deleted.</li>
5104 <li>Finally, the machine's own XML file will be deleted.</li>
5105 </ul>
5106
5107 Since deleting large disk image files can be a time-consuming I/O operation, this
5108 method operates asynchronously and returns an IProgress object to allow the caller
5109 to monitor the progress. There will be one sub-operation for each file that is
5110 being deleted (saved state or medium storage file).
5111
5112 <note>
5113 <link to="#settingsModified"/> will return @c true after this
5114 method successfully returns.
5115 </note>
5116
5117 <result name="VBOX_E_INVALID_VM_STATE">
5118 Machine is registered but not write-locked.
5119 </result>
5120 <result name="VBOX_E_IPRT_ERROR">
5121 Could not delete the settings file.
5122 </result>
5123 </desc>
5124 <param name="aMedia" type="IMedium" safearray="yes" dir="in">
5125 <desc>List of media to be closed and whose storage files will be deleted.</desc>
5126 </param>
5127 <param name="aProgress" type="IProgress" dir="return">
5128 <desc>Progress object to track the operation completion.</desc>
5129 </param>
5130 </method>
5131
5132 <method name="export">
5133 <desc>Exports the machine to an OVF appliance. See <link to="IAppliance" /> for the
5134 steps required to export VirtualBox machines to OVF.
5135 </desc>
5136
5137 <param name="aAppliance" type="IAppliance" dir="in">
5138 <desc>Appliance to export this machine to.</desc>
5139 </param>
5140 <param name="location" type="wstring" dir="in">
5141 <desc>The target location.</desc>
5142 </param>
5143 <param name="aDescription" type="IVirtualSystemDescription" dir="return">
5144 <desc>VirtualSystemDescription object which is created for this machine.</desc>
5145 </param>
5146 </method >
5147
5148 <method name="findSnapshot">
5149 <desc>
5150 Returns a snapshot of this machine with the given name or UUID.
5151
5152 Returns a snapshot of this machine with the given UUID.
5153 A @c null argument can be used to obtain the first snapshot
5154 taken on this machine. This is useful if you want to traverse
5155 the whole tree of snapshots starting from the root.
5156
5157 <result name="VBOX_E_OBJECT_NOT_FOUND">
5158 Virtual machine has no snapshots or snapshot not found.
5159 </result>
5160
5161 </desc>
5162 <param name="nameOrId" type="wstring" dir="in">
5163 <desc>What to search for. Name or UUID of the snapshot to find</desc>
5164 </param>
5165 <param name="snapshot" type="ISnapshot" dir="return">
5166 <desc>Snapshot object with the given name.</desc>
5167 </param>
5168 </method>
5169
5170 <method name="createSharedFolder">
5171 <desc>
5172 Creates a new permanent shared folder by associating the given logical
5173 name with the given host path, adds it to the collection of shared
5174 folders and starts sharing it. Refer to the description of
5175 <link to="ISharedFolder"/> to read more about logical names.
5176
5177 <result name="VBOX_E_OBJECT_IN_USE">
5178 Shared folder already exists.
5179 </result>
5180 <result name="VBOX_E_FILE_ERROR">
5181 Shared folder @a hostPath not accessible.
5182 </result>
5183
5184 </desc>
5185 <param name="name" type="wstring" dir="in">
5186 <desc>Unique logical name of the shared folder.</desc>
5187 </param>
5188 <param name="hostPath" type="wstring" dir="in">
5189 <desc>Full path to the shared folder in the host file system.</desc>
5190 </param>
5191 <param name="writable" type="boolean" dir="in">
5192 <desc>Whether the share is writable or readonly.</desc>
5193 </param>
5194 <param name="automount" type="boolean" dir="in">
5195 <desc>Whether the share gets automatically mounted by the guest
5196 or not.</desc>
5197 </param>
5198 </method>
5199
5200 <method name="removeSharedFolder">
5201 <desc>
5202 Removes the permanent shared folder with the given name previously
5203 created by <link to="#createSharedFolder"/> from the collection of
5204 shared folders and stops sharing it.
5205
5206 <result name="VBOX_E_INVALID_VM_STATE">
5207 Virtual machine is not mutable.
5208 </result>
5209 <result name="VBOX_E_OBJECT_NOT_FOUND">
5210 Shared folder @a name does not exist.
5211 </result>
5212
5213 </desc>
5214 <param name="name" type="wstring" dir="in">
5215 <desc>Logical name of the shared folder to remove.</desc>
5216 </param>
5217 </method>
5218
5219 <method name="canShowConsoleWindow">
5220 <desc>
5221 Returns @c true if the VM console process can activate the
5222 console window and bring it to foreground on the desktop of
5223 the host PC.
5224 <note>
5225 This method will fail if a session for this machine is not
5226 currently open.
5227 </note>
5228
5229 <result name="VBOX_E_INVALID_VM_STATE">
5230 Machine session is not open.
5231 </result>
5232
5233 </desc>
5234 <param name="canShow" type="boolean" dir="return">
5235 <desc>
5236 @c true if the console window can be shown and @c false otherwise.
5237 </desc>
5238 </param>
5239 </method>
5240
5241 <method name="showConsoleWindow">
5242 <desc>
5243 Activates the console window and brings it to foreground on
5244 the desktop of the host PC. Many modern window managers on
5245 many platforms implement some sort of focus stealing
5246 prevention logic, so that it may be impossible to activate
5247 a window without the help of the currently active
5248 application. In this case, this method will return a non-zero
5249 identifier that represents the top-level window of the VM
5250 console process. The caller, if it represents a currently
5251 active process, is responsible to use this identifier (in a
5252 platform-dependent manner) to perform actual window
5253 activation.
5254 <note>
5255 This method will fail if a session for this machine is not
5256 currently open.
5257 </note>
5258
5259 <result name="VBOX_E_INVALID_VM_STATE">
5260 Machine session is not open.
5261 </result>
5262
5263 </desc>
5264 <param name="winId" type="long long" dir="return">
5265 <desc>
5266 Platform-dependent identifier of the top-level VM console
5267 window, or zero if this method has performed all actions
5268 necessary to implement the <i>show window</i> semantics for
5269 the given platform and/or VirtualBox front-end.
5270 </desc>
5271 </param>
5272 </method>
5273
5274 <method name="getGuestProperty" const="yes">
5275 <desc>
5276 Reads an entry from the machine's guest property store.
5277
5278 <result name="VBOX_E_INVALID_VM_STATE">
5279 Machine session is not open.
5280 </result>
5281
5282 </desc>
5283 <param name="name" type="wstring" dir="in">
5284 <desc>
5285 The name of the property to read.
5286 </desc>
5287 </param>
5288 <param name="value" type="wstring" dir="out">
5289 <desc>
5290 The value of the property. If the property does not exist then this
5291 will be empty.
5292 </desc>
5293 </param>
5294 <param name="timestamp" type="long long" dir="out">
5295 <desc>
5296 The time at which the property was last modified, as seen by the
5297 server process.
5298 </desc>
5299 </param>
5300 <param name="flags" type="wstring" dir="out">
5301 <desc>
5302 Additional property parameters, passed as a comma-separated list of
5303 "name=value" type entries.
5304 </desc>
5305 </param>
5306 </method>
5307
5308 <method name="getGuestPropertyValue" const="yes">
5309 <desc>
5310 Reads a value from the machine's guest property store.
5311
5312 <result name="VBOX_E_INVALID_VM_STATE">
5313 Machine session is not open.
5314 </result>
5315
5316 </desc>
5317 <param name="property" type="wstring" dir="in">
5318 <desc>
5319 The name of the property to read.
5320 </desc>
5321 </param>
5322 <param name="value" type="wstring" dir="return">
5323 <desc>
5324 The value of the property. If the property does not exist then this
5325 will be empty.
5326 </desc>
5327 </param>
5328 </method>
5329
5330 <method name="getGuestPropertyTimestamp" const="yes">
5331 <desc>
5332 Reads a property timestamp from the machine's guest property store.
5333
5334 <result name="VBOX_E_INVALID_VM_STATE">
5335 Machine session is not open.
5336 </result>
5337
5338 </desc>
5339 <param name="property" type="wstring" dir="in">
5340 <desc>
5341 The name of the property to read.
5342 </desc>
5343 </param>
5344 <param name="value" type="long long" dir="return">
5345 <desc>
5346 The timestamp. If the property does not exist then this will be
5347 empty.
5348 </desc>
5349 </param>
5350 </method>
5351
5352 <method name="setGuestProperty">
5353 <desc>
5354 Sets, changes or deletes an entry in the machine's guest property
5355 store.
5356
5357 <result name="E_ACCESSDENIED">
5358 Property cannot be changed.
5359 </result>
5360 <result name="E_INVALIDARG">
5361 Invalid @a flags.
5362 </result>
5363 <result name="VBOX_E_INVALID_VM_STATE">
5364 Virtual machine is not mutable or session not open.
5365 </result>
5366 <result name="VBOX_E_INVALID_OBJECT_STATE">
5367 Cannot set transient property when machine not running.
5368 </result>
5369
5370 </desc>
5371 <param name="property" type="wstring" dir="in">
5372 <desc>
5373 The name of the property to set, change or delete.
5374 </desc>
5375 </param>
5376 <param name="value" type="wstring" dir="in">
5377 <desc>
5378 The new value of the property to set, change or delete. If the
5379 property does not yet exist and value is non-empty, it will be
5380 created. If the value is @c null or empty, the property will be
5381 deleted if it exists.
5382 </desc>
5383 </param>
5384 <param name="flags" type="wstring" dir="in">
5385 <desc>
5386 Additional property parameters, passed as a comma-separated list of
5387 "name=value" type entries.
5388 </desc>
5389 </param>
5390 </method>
5391
5392 <method name="setGuestPropertyValue">
5393 <desc>
5394 Sets, changes or deletes a value in the machine's guest property
5395 store. The flags field will be left unchanged or created empty for a
5396 new property.
5397
5398 <result name="E_ACCESSDENIED">
5399 Property cannot be changed.
5400 </result>
5401 <result name="VBOX_E_INVALID_VM_STATE">
5402 Virtual machine is not mutable or session not open.
5403 </result>
5404 <result name="VBOX_E_INVALID_OBJECT_STATE">
5405 Cannot set transient property when machine not running.
5406 </result>
5407 </desc>
5408
5409 <param name="property" type="wstring" dir="in">
5410 <desc>
5411 The name of the property to set, change or delete.
5412 </desc>
5413 </param>
5414 <param name="value" type="wstring" dir="in">
5415 <desc>
5416 The new value of the property to set, change or delete. If the
5417 property does not yet exist and value is non-empty, it will be
5418 created. If the value is @c null or empty, the property will be
5419 deleted if it exists.
5420 </desc>
5421 </param>
5422 </method>
5423
5424 <method name="enumerateGuestProperties">
5425 <desc>
5426 Return a list of the guest properties matching a set of patterns along
5427 with their values, time stamps and flags.
5428 </desc>
5429 <param name="patterns" type="wstring" dir="in">
5430 <desc>
5431 The patterns to match the properties against, separated by '|'
5432 characters. If this is empty or @c null, all properties will match.
5433 </desc>
5434 </param>
5435 <param name="name" type="wstring" dir="out" safearray="yes">
5436 <desc>
5437 The names of the properties returned.
5438 </desc>
5439 </param>
5440 <param name="value" type="wstring" dir="out" safearray="yes">
5441 <desc>
5442 The values of the properties returned. The array entries match the
5443 corresponding entries in the @a name array.
5444 </desc>
5445 </param>
5446 <param name="timestamp" type="long long" dir="out" safearray="yes">
5447 <desc>
5448 The time stamps of the properties returned. The array entries match
5449 the corresponding entries in the @a name array.
5450 </desc>
5451 </param>
5452 <param name="flags" type="wstring" dir="out" safearray="yes">
5453 <desc>
5454 The flags of the properties returned. The array entries match the
5455 corresponding entries in the @a name array.
5456 </desc>
5457 </param>
5458 </method>
5459
5460 <method name="querySavedGuestSize">
5461 <desc>
5462 Returns the guest dimensions from the saved state.
5463 </desc>
5464 <param name="screenId" type="unsigned long" dir="in">
5465 <desc>
5466 Saved guest screen to query info from.
5467 </desc>
5468 </param>
5469 <param name="width" type="unsigned long" dir="out">
5470 <desc>
5471 Guest width at the time of the saved state was taken.
5472 </desc>
5473 </param>
5474 <param name="height" type="unsigned long" dir="out">
5475 <desc>
5476 Guest height at the time of the saved state was taken.
5477 </desc>
5478 </param>
5479 </method>
5480
5481 <method name="querySavedThumbnailSize">
5482 <desc>
5483 Returns size in bytes and dimensions in pixels of a saved thumbnail bitmap from saved state.
5484 </desc>
5485 <param name="screenId" type="unsigned long" dir="in">
5486 <desc>
5487 Saved guest screen to query info from.
5488 </desc>
5489 </param>
5490 <param name="size" type="unsigned long" dir="out">
5491 <desc>
5492 Size of buffer required to store the bitmap.
5493 </desc>
5494 </param>
5495 <param name="width" type="unsigned long" dir="out">
5496 <desc>
5497 Bitmap width.
5498 </desc>
5499 </param>
5500 <param name="height" type="unsigned long" dir="out">
5501 <desc>
5502 Bitmap height.
5503 </desc>
5504 </param>
5505 </method>
5506
5507 <method name="readSavedThumbnailToArray">
5508 <desc>
5509 Thumbnail is retrieved to an array of bytes in uncompressed 32-bit BGRA or RGBA format.
5510 </desc>
5511 <param name="screenId" type="unsigned long" dir="in">
5512 <desc>
5513 Saved guest screen to read from.
5514 </desc>
5515 </param>
5516 <param name="BGR" type="boolean" dir="in">
5517 <desc>
5518 How to order bytes in the pixel. A pixel consists of 4 bytes. If this parameter is true, then
5519 bytes order is: B, G, R, 0xFF. If this parameter is false, then bytes order is: R, G, B, 0xFF.
5520 </desc>
5521 </param>
5522 <param name="width" type="unsigned long" dir="out">
5523 <desc>
5524 Bitmap width.
5525 </desc>
5526 </param>
5527 <param name="height" type="unsigned long" dir="out">
5528 <desc>
5529 Bitmap height.
5530 </desc>
5531 </param>
5532 <param name="data" type="octet" safearray="yes" dir="return">
5533 <desc>
5534 Array with resulting bitmap data.
5535 </desc>
5536 </param>
5537 </method>
5538
5539 <method name="readSavedThumbnailPNGToArray">
5540 <desc>
5541 Thumbnail in PNG format is retrieved to an array of bytes.
5542 </desc>
5543 <param name="screenId" type="unsigned long" dir="in">
5544 <desc>
5545 Saved guest screen to read from.
5546 </desc>
5547 </param>
5548 <param name="width" type="unsigned long" dir="out">
5549 <desc>
5550 Image width.
5551 </desc>
5552 </param>
5553 <param name="height" type="unsigned long" dir="out">
5554 <desc>
5555 Image height.
5556 </desc>
5557 </param>
5558 <param name="data" type="octet" dir="return" safearray="yes">
5559 <desc>
5560 Array with resulting PNG data.
5561 </desc>
5562 </param>
5563 </method>
5564
5565 <method name="querySavedScreenshotPNGSize">
5566 <desc>
5567 Returns size in bytes and dimensions of a saved PNG image of screenshot from saved state.
5568 </desc>
5569 <param name="screenId" type="unsigned long" dir="in">
5570 <desc>
5571 Saved guest screen to query info from.
5572 </desc>
5573 </param>
5574 <param name="size" type="unsigned long" dir="out">
5575 <desc>
5576 Size of buffer required to store the PNG binary data.
5577 </desc>
5578 </param>
5579 <param name="width" type="unsigned long" dir="out">
5580 <desc>
5581 Image width.
5582 </desc>
5583 </param>
5584 <param name="height" type="unsigned long" dir="out">
5585 <desc>
5586 Image height.
5587 </desc>
5588 </param>
5589 </method>
5590
5591 <method name="readSavedScreenshotPNGToArray">
5592 <desc>
5593 Screenshot in PNG format is retrieved to an array of bytes.
5594 </desc>
5595 <param name="screenId" type="unsigned long" dir="in">
5596 <desc>
5597 Saved guest screen to read from.
5598 </desc>
5599 </param>
5600 <param name="width" type="unsigned long" dir="out">
5601 <desc>
5602 Image width.
5603 </desc>
5604 </param>
5605 <param name="height" type="unsigned long" dir="out">
5606 <desc>
5607 Image height.
5608 </desc>
5609 </param>
5610 <param name="data" type="octet" dir="return" safearray="yes">
5611 <desc>
5612 Array with resulting PNG data.
5613 </desc>
5614 </param>
5615 </method>
5616
5617 <method name="hotPlugCPU">
5618 <desc>
5619 Plugs a CPU into the machine.
5620 </desc>
5621 <param name="cpu" type="unsigned long" dir="in">
5622 <desc>
5623 The CPU id to insert.
5624 </desc>
5625 </param>
5626 </method>
5627
5628 <method name="hotUnplugCPU">
5629 <desc>
5630 Removes a CPU from the machine.
5631 </desc>
5632 <param name="cpu" type="unsigned long" dir="in">
5633 <desc>
5634 The CPU id to remove.
5635 </desc>
5636 </param>
5637 </method>
5638
5639 <method name="getCPUStatus">
5640 <desc>
5641 Returns the current status of the given CPU.
5642 </desc>
5643 <param name="cpu" type="unsigned long" dir="in">
5644 <desc>
5645 The CPU id to check for.
5646 </desc>
5647 </param>
5648 <param name="attached" type="boolean" dir="return">
5649 <desc>
5650 Status of the CPU.
5651 </desc>
5652 </param>
5653 </method>
5654
5655 <method name="queryLogFilename">
5656 <desc>
5657 Queries for the VM log file name of an given index. Returns an empty
5658 string if a log file with that index doesn't exists.
5659 </desc>
5660 <param name="idx" type="unsigned long" dir="in">
5661 <desc>
5662 Which log file name to query. 0=current log file.
5663 </desc>
5664 </param>
5665 <param name="filename" type="wstring" dir="return">
5666 <desc>
5667 On return the full path to the log file or an empty string on error.
5668 </desc>
5669 </param>
5670 </method>
5671
5672 <method name="readLog">
5673 <desc>
5674 Reads the VM log file. The chunk size is limited, so even if you
5675 ask for a big piece there might be less data returned.
5676 </desc>
5677 <param name="idx" type="unsigned long" dir="in">
5678 <desc>
5679 Which log file to read. 0=current log file.
5680 </desc>
5681 </param>
5682 <param name="offset" type="long long" dir="in">
5683 <desc>
5684 Offset in the log file.
5685 </desc>
5686 </param>
5687 <param name="size" type="long long" dir="in">
5688 <desc>
5689 Chunk size to read in the log file.
5690 </desc>
5691 </param>
5692 <param name="data" type="octet" dir="return" safearray="yes">
5693 <desc>
5694 Data read from the log file. A data size of 0 means end of file
5695 if the requested chunk size was not 0. This is the unprocessed
5696 file data, i.e. the line ending style depends on the platform of
5697 the system the server is running on.
5698 </desc>
5699 </param>
5700 </method>
5701 </interface>
5702
5703 <!--
5704 // IConsole
5705 /////////////////////////////////////////////////////////////////////////
5706 -->
5707
5708 <interface
5709 name="IVRDEServerInfo" extends="$unknown"
5710 uuid="714434a1-58c3-4aab-9049-7652c5df113b"
5711 wsmap="struct"
5712 >
5713 <desc>
5714 Contains information about the remote desktop (VRDE) server capabilities and status.
5715 This is used in the <link to="IConsole::VRDEServerInfo" /> attribute.
5716 </desc>
5717
5718 <attribute name="active" type="boolean" readonly="yes">
5719 <desc>
5720 Whether the remote desktop connection is active.
5721 </desc>
5722 </attribute>
5723
5724 <attribute name="port" type="long" readonly="yes">
5725 <desc>
5726 VRDE server port number. If this property is equal to <tt>0</tt>, then
5727 the VRDE server failed to start, usually because there are no free IP
5728 ports to bind to. If this property is equal to <tt>-1</tt>, then the VRDE
5729 server has not yet been started.
5730 </desc>
5731 </attribute>
5732
5733 <attribute name="numberOfClients" type="unsigned long" readonly="yes">
5734 <desc>
5735 How many times a client connected.
5736 </desc>
5737 </attribute>
5738
5739 <attribute name="beginTime" type="long long" readonly="yes">
5740 <desc>
5741 When the last connection was established, in milliseconds since 1970-01-01 UTC.
5742 </desc>
5743 </attribute>
5744
5745 <attribute name="endTime" type="long long" readonly="yes">
5746 <desc>
5747 When the last connection was terminated or the current time, if
5748 connection is still active, in milliseconds since 1970-01-01 UTC.
5749 </desc>
5750 </attribute>
5751
5752 <attribute name="bytesSent" type="long long" readonly="yes">
5753 <desc>
5754 How many bytes were sent in last or current, if still active, connection.
5755 </desc>
5756 </attribute>
5757
5758 <attribute name="bytesSentTotal" type="long long" readonly="yes">
5759 <desc>
5760 How many bytes were sent in all connections.
5761 </desc>
5762 </attribute>
5763
5764 <attribute name="bytesReceived" type="long long" readonly="yes">
5765 <desc>
5766 How many bytes were received in last or current, if still active, connection.
5767 </desc>
5768 </attribute>
5769
5770 <attribute name="bytesReceivedTotal" type="long long" readonly="yes">
5771 <desc>
5772 How many bytes were received in all connections.
5773 </desc>
5774 </attribute>
5775
5776 <attribute name="user" type="wstring" readonly="yes">
5777 <desc>
5778 Login user name supplied by the client.
5779 </desc>
5780 </attribute>
5781
5782 <attribute name="domain" type="wstring" readonly="yes">
5783 <desc>
5784 Login domain name supplied by the client.
5785 </desc>
5786 </attribute>
5787
5788 <attribute name="clientName" type="wstring" readonly="yes">
5789 <desc>
5790 The client name supplied by the client.
5791 </desc>
5792 </attribute>
5793
5794 <attribute name="clientIP" type="wstring" readonly="yes">
5795 <desc>
5796 The IP address of the client.
5797 </desc>
5798 </attribute>
5799
5800 <attribute name="clientVersion" type="unsigned long" readonly="yes">
5801 <desc>
5802 The client software version number.
5803 </desc>
5804 </attribute>
5805
5806 <attribute name="encryptionStyle" type="unsigned long" readonly="yes">
5807 <desc>
5808 Public key exchange method used when connection was established.
5809 Values: 0 - RDP4 public key exchange scheme.
5810 1 - X509 certificates were sent to client.
5811 </desc>
5812 </attribute>
5813
5814 </interface>
5815
5816 <interface
5817 name="IConsole" extends="$unknown"
5818 uuid="3c4a453e-d27b-44a2-b59d-dda6e1835e57"
5819 wsmap="managed"
5820 >
5821 <desc>
5822 The IConsole interface represents an interface to control virtual
5823 machine execution.
5824
5825 A console object gets created when a machine has been locked for a
5826 particular session (client process) using <link to="IMachine::lockMachine" />
5827 or <link to="IMachine::launchVMProcess"/>. The console object can
5828 then be found in the session's <link to="ISession::console" /> attribute.
5829
5830 Methods of the IConsole interface allow the caller to query the current
5831 virtual machine execution state, pause the machine or power it down, save
5832 the machine state or take a snapshot, attach and detach removable media
5833 and so on.
5834
5835 <see>ISession</see>
5836 </desc>
5837
5838 <attribute name="machine" type="IMachine" readonly="yes">
5839 <desc>
5840 Machine object for this console session.
5841 <note>
5842 This is a convenience property, it has the same value as
5843 <link to="ISession::machine"/> of the corresponding session
5844 object.
5845 </note>
5846 </desc>
5847 </attribute>
5848
5849 <attribute name="state" type="MachineState" readonly="yes">
5850 <desc>
5851 Current execution state of the machine.
5852 <note>
5853 This property always returns the same value as the corresponding
5854 property of the IMachine object for this console session.
5855 For the process that owns (executes) the VM, this is the
5856 preferable way of querying the VM state, because no IPC
5857 calls are made.
5858 </note>
5859 </desc>
5860 </attribute>
5861
5862 <attribute name="guest" type="IGuest" readonly="yes">
5863 <desc>Guest object.</desc>
5864 </attribute>
5865
5866 <attribute name="keyboard" type="IKeyboard" readonly="yes">
5867 <desc>
5868 Virtual keyboard object.
5869 <note>
5870 If the machine is not running, any attempt to use
5871 the returned object will result in an error.
5872 </note>
5873 </desc>
5874 </attribute>
5875
5876 <attribute name="mouse" type="IMouse" readonly="yes">
5877 <desc>
5878 Virtual mouse object.
5879 <note>
5880 If the machine is not running, any attempt to use
5881 the returned object will result in an error.
5882 </note>
5883 </desc>
5884 </attribute>
5885
5886 <attribute name="display" type="IDisplay" readonly="yes">
5887 <desc>Virtual display object.
5888 <note>
5889 If the machine is not running, any attempt to use
5890 the returned object will result in an error.
5891 </note>
5892 </desc>
5893 </attribute>
5894
5895 <attribute name="debugger" type="IMachineDebugger" readonly="yes">
5896 <desc>Debugging interface.</desc>
5897 </attribute>
5898
5899 <attribute name="USBDevices" type="IUSBDevice" readonly="yes" safearray="yes">
5900 <desc>
5901 Collection of USB devices currently attached to the virtual
5902 USB controller.
5903 <note>
5904 The collection is empty if the machine is not running.
5905 </note>
5906 </desc>
5907 </attribute>
5908
5909 <attribute name="remoteUSBDevices" type="IHostUSBDevice" readonly="yes" safearray="yes">
5910 <desc>
5911 List of USB devices currently attached to the remote VRDE client.
5912 Once a new device is physically attached to the remote host computer,
5913 it appears in this list and remains there until detached.
5914 </desc>
5915 </attribute>
5916
5917 <attribute name="sharedFolders" type="ISharedFolder" readonly="yes" safearray="yes">
5918 <desc>
5919 Collection of shared folders for the current session. These folders
5920 are called transient shared folders because they are available to the
5921 guest OS running inside the associated virtual machine only for the
5922 duration of the session (as opposed to
5923 <link to="IMachine::sharedFolders"/> which represent permanent shared
5924 folders). When the session is closed (e.g. the machine is powered down),
5925 these folders are automatically discarded.
5926
5927 New shared folders are added to the collection using
5928 <link to="#createSharedFolder"/>. Existing shared folders can be
5929 removed using <link to="#removeSharedFolder"/>.
5930 </desc>
5931 </attribute>
5932
5933 <attribute name="VRDEServerInfo" type="IVRDEServerInfo" readonly="yes">
5934 <desc>
5935 Interface that provides information on Remote Desktop Extension (VRDE) connection.
5936 </desc>
5937 </attribute>
5938
5939 <attribute name="eventSource" type="IEventSource" readonly="yes">
5940 <desc>
5941 Event source for console events.
5942 </desc>
5943 </attribute>
5944
5945 <method name="powerUp">
5946 <desc>
5947 Starts the virtual machine execution using the current machine
5948 state (that is, its current execution state, current settings and
5949 current storage devices).
5950
5951 <note>
5952 This method is only useful for front-ends that want to actually
5953 execute virtual machines in their own process (like the VirtualBox
5954 or VBoxSDL front-ends). Unless you are intending to write such a
5955 front-end, do not call this method. If you simply want to
5956 start virtual machine execution using one of the existing front-ends
5957 (for example the VirtualBox GUI or headless server), use
5958 <link to="IMachine::launchVMProcess"/> instead; these
5959 front-ends will power up the machine automatically for you.
5960 </note>
5961
5962 If the machine is powered off or aborted, the execution will
5963 start from the beginning (as if the real hardware were just
5964 powered on).
5965
5966 If the machine is in the <link to="MachineState_Saved"/> state,
5967 it will continue its execution the point where the state has
5968 been saved.
5969
5970 If the machine <link to="IMachine::teleporterEnabled"/> property is
5971 enabled on the machine being powered up, the machine will wait for an
5972 incoming teleportation in the <link to="MachineState_TeleportingIn"/>
5973 state. The returned progress object will have at least three
5974 operations where the last three are defined as: (1) powering up and
5975 starting TCP server, (2) waiting for incoming teleportations, and
5976 (3) perform teleportation. These operations will be reflected as the
5977 last three operations of the progress objected returned by
5978 <link to="IMachine::launchVMProcess"/> as well.
5979
5980 <see>#saveState</see>
5981
5982 <result name="VBOX_E_INVALID_VM_STATE">
5983 Virtual machine already running.
5984 </result>
5985 <result name="VBOX_E_HOST_ERROR">
5986 Host interface does not exist or name not set.
5987 </result>
5988 <result name="VBOX_E_FILE_ERROR">
5989 Invalid saved state file.
5990 </result>
5991 </desc>
5992 <param name="progress" type="IProgress" dir="return">
5993 <desc>Progress object to track the operation completion.</desc>
5994 </param>
5995 </method>
5996
5997 <method name="powerUpPaused">
5998 <desc>
5999 Identical to powerUp except that the VM will enter the
6000 <link to="MachineState_Paused"/> state, instead of
6001 <link to="MachineState_Running"/>.
6002
6003 <see>#powerUp</see>
6004 <result name="VBOX_E_INVALID_VM_STATE">
6005 Virtual machine already running.
6006 </result>
6007 <result name="VBOX_E_HOST_ERROR">
6008 Host interface does not exist or name not set.
6009 </result>
6010 <result name="VBOX_E_FILE_ERROR">
6011 Invalid saved state file.
6012 </result>
6013 </desc>
6014 <param name="progress" type="IProgress" dir="return">
6015 <desc>Progress object to track the operation completion.</desc>
6016 </param>
6017 </method>
6018
6019 <method name="powerDown">
6020 <desc>
6021 Initiates the power down procedure to stop the virtual machine
6022 execution.
6023
6024 The completion of the power down procedure is tracked using the returned
6025 IProgress object. After the operation is complete, the machine will go
6026 to the PoweredOff state.
6027 <result name="VBOX_E_INVALID_VM_STATE">
6028 Virtual machine must be Running, Paused or Stuck to be powered down.
6029 </result>
6030 </desc>
6031 <param name="progress" type="IProgress" dir="return">
6032 <desc>Progress object to track the operation completion.</desc>
6033 </param>
6034 </method>
6035
6036 <method name="reset">
6037 <desc>Resets the virtual machine.
6038 <result name="VBOX_E_INVALID_VM_STATE">
6039 Virtual machine not in Running state.
6040 </result>
6041 <result name="VBOX_E_VM_ERROR">
6042 Virtual machine error in reset operation.
6043 </result>
6044 </desc>
6045 </method>
6046
6047 <method name="pause">
6048 <desc>Pauses the virtual machine execution.
6049 <result name="VBOX_E_INVALID_VM_STATE">
6050 Virtual machine not in Running state.
6051 </result>
6052 <result name="VBOX_E_VM_ERROR">
6053 Virtual machine error in suspend operation.
6054 </result>
6055 </desc>
6056 </method>
6057
6058 <method name="resume">
6059 <desc>Resumes the virtual machine execution.
6060 <result name="VBOX_E_INVALID_VM_STATE">
6061 Virtual machine not in Paused state.
6062 </result>
6063 <result name="VBOX_E_VM_ERROR">
6064 Virtual machine error in resume operation.
6065 </result>
6066 </desc>
6067 </method>
6068
6069 <method name="powerButton">
6070 <desc>Sends the ACPI power button event to the guest.
6071 <result name="VBOX_E_INVALID_VM_STATE">
6072 Virtual machine not in Running state.
6073 </result>
6074 <result name="VBOX_E_PDM_ERROR">
6075 Controlled power off failed.
6076 </result>
6077 </desc>
6078 </method>
6079
6080 <method name="sleepButton">
6081 <desc>Sends the ACPI sleep button event to the guest.
6082 <result name="VBOX_E_INVALID_VM_STATE">
6083 Virtual machine not in Running state.
6084 </result>
6085 <result name="VBOX_E_PDM_ERROR">
6086 Sending sleep button event failed.
6087 </result>
6088 </desc>
6089 </method>
6090
6091 <method name="getPowerButtonHandled">
6092 <desc>Checks if the last power button event was handled by guest.
6093 <result name="VBOX_E_PDM_ERROR">
6094 Checking if the event was handled by the guest OS failed.
6095 </result>
6096 </desc>
6097 <param name="handled" type="boolean" dir="return"/>
6098 </method>
6099
6100 <method name="getGuestEnteredACPIMode">
6101 <desc>Checks if the guest entered the ACPI mode G0 (working) or
6102 G1 (sleeping). If this method returns @c false, the guest will
6103 most likely not respond to external ACPI events.
6104 <result name="VBOX_E_INVALID_VM_STATE">
6105 Virtual machine not in Running state.
6106 </result>
6107 </desc>
6108 <param name="entered" type="boolean" dir="return"/>
6109 </method>
6110
6111 <method name="saveState">
6112 <desc>
6113 Saves the current execution state of a running virtual machine
6114 and stops its execution.
6115
6116 After this operation completes, the machine will go to the
6117 Saved state. Next time it is powered up, this state will
6118 be restored and the machine will continue its execution from
6119 the place where it was saved.
6120
6121 This operation differs from taking a snapshot to the effect
6122 that it doesn't create new differencing media. Also, once
6123 the machine is powered up from the state saved using this method,
6124 the saved state is deleted, so it will be impossible to return
6125 to this state later.
6126
6127 <note>
6128 On success, this method implicitly calls
6129 <link to="IMachine::saveSettings"/> to save all current machine
6130 settings (including runtime changes to the DVD medium, etc.).
6131 Together with the impossibility to change any VM settings when it is
6132 in the Saved state, this guarantees adequate hardware
6133 configuration of the machine when it is restored from the saved
6134 state file.
6135 </note>
6136
6137 <note>
6138 The machine must be in the Running or Paused state, otherwise
6139 the operation will fail.
6140 </note>
6141 <result name="VBOX_E_INVALID_VM_STATE">
6142 Virtual machine state neither Running nor Paused.
6143 </result>
6144 <result name="VBOX_E_FILE_ERROR">
6145 Failed to create directory for saved state file.
6146 </result>
6147
6148 <see><link to="#takeSnapshot"/></see>
6149 </desc>
6150 <param name="progress" type="IProgress" dir="return">
6151 <desc>Progress object to track the operation completion.</desc>
6152 </param>
6153 </method>
6154
6155 <method name="adoptSavedState">
6156 <desc>
6157 Associates the given saved state file to the virtual machine.
6158
6159 On success, the machine will go to the Saved state. Next time it is
6160 powered up, it will be restored from the adopted saved state and
6161 continue execution from the place where the saved state file was
6162 created.
6163
6164 The specified saved state file path may be absolute or relative to the
6165 folder the VM normally saves the state to (usually,
6166 <link to="IMachine::snapshotFolder"/>).
6167
6168 <note>
6169 It's a caller's responsibility to make sure the given saved state
6170 file is compatible with the settings of this virtual machine that
6171 represent its virtual hardware (memory size, storage disk configuration
6172 etc.). If there is a mismatch, the behavior of the virtual machine
6173 is undefined.
6174 </note>
6175 <result name="VBOX_E_INVALID_VM_STATE">
6176 Virtual machine state neither PoweredOff nor Aborted.
6177 </result>
6178 </desc>
6179 <param name="savedStateFile" type="wstring" dir="in">
6180 <desc>Path to the saved state file to adopt.</desc>
6181 </param>
6182 </method>
6183
6184 <method name="discardSavedState">
6185 <desc>
6186 Forcibly resets the machine to "Powered Off" state if it is
6187 currently in the "Saved" state (previously created by <link to="#saveState"/>).
6188 Next time the machine is powered up, a clean boot will occur.
6189 <note>
6190 This operation is equivalent to resetting or powering off
6191 the machine without doing a proper shutdown of the guest
6192 operating system; as with resetting a running phyiscal
6193 computer, it can can lead to data loss.
6194 </note>
6195 If @a fRemoveFile is @c true, the file in the machine directory
6196 into which the machine state was saved is also deleted. If
6197 this is @c false, then the state can be recovered and later
6198 re-inserted into a machine using <link to="#adoptSavedState" />.
6199 The location of the file can be found in the
6200 <link to="IMachine::stateFilePath" /> attribute.
6201 <result name="VBOX_E_INVALID_VM_STATE">
6202 Virtual machine not in state Saved.
6203 </result>
6204 </desc>
6205 <param name="fRemoveFile" type="boolean" dir="in" >
6206 <desc>Whether to also remove the saved state file.</desc>
6207 </param>
6208 </method>
6209
6210 <method name="getDeviceActivity">
6211 <desc>
6212 Gets the current activity type of a given device or device group.
6213 <result name="E_INVALIDARG">
6214 Invalid device type.
6215 </result>
6216 </desc>
6217 <param name="type" type="DeviceType" dir="in"/>
6218 <param name="activity" type="DeviceActivity" dir="return"/>
6219 </method>
6220
6221 <method name="attachUSBDevice">
6222 <desc>
6223 Attaches a host USB device with the given UUID to the
6224 USB controller of the virtual machine.
6225
6226 The device needs to be in one of the following states:
6227 <link to="USBDeviceState_Busy"/>,
6228 <link to="USBDeviceState_Available"/> or
6229 <link to="USBDeviceState_Held"/>,
6230 otherwise an error is immediately returned.
6231
6232 When the device state is
6233 <link to="USBDeviceState_Busy">Busy</link>, an error may also
6234 be returned if the host computer refuses to release it for some reason.
6235
6236 <see>IUSBController::deviceFilters, USBDeviceState</see>
6237 <result name="VBOX_E_INVALID_VM_STATE">
6238 Virtual machine state neither Running nor Paused.
6239 </result>
6240 <result name="VBOX_E_PDM_ERROR">
6241 Virtual machine does not have a USB controller.
6242 </result>
6243 </desc>
6244 <param name="id" type="uuid" mod="string" dir="in">
6245 <desc>UUID of the host USB device to attach.</desc>
6246 </param>
6247 </method>
6248
6249 <method name="detachUSBDevice">
6250 <desc>
6251 Detaches an USB device with the given UUID from the USB controller
6252 of the virtual machine.
6253
6254 After this method succeeds, the VirtualBox server re-initiates
6255 all USB filters as if the device were just physically attached
6256 to the host, but filters of this machine are ignored to avoid
6257 a possible automatic re-attachment.
6258
6259 <see>IUSBController::deviceFilters, USBDeviceState</see>
6260
6261 <result name="VBOX_E_PDM_ERROR">
6262 Virtual machine does not have a USB controller.
6263 </result>
6264 <result name="E_INVALIDARG">
6265 USB device not attached to this virtual machine.
6266 </result>
6267 </desc>
6268 <param name="id" type="uuid" mod="string" dir="in">
6269 <desc>UUID of the USB device to detach.</desc>
6270 </param>
6271 <param name="device" type="IUSBDevice" dir="return">
6272 <desc>Detached USB device.</desc>
6273 </param>
6274 </method>
6275
6276 <method name="findUSBDeviceByAddress">
6277 <desc>
6278 Searches for a USB device with the given host address.
6279
6280 <result name="VBOX_E_OBJECT_NOT_FOUND">
6281 Given @c name does not correspond to any USB device.
6282 </result>
6283
6284 <see>IUSBDevice::address</see>
6285 </desc>
6286 <param name="name" type="wstring" dir="in">
6287 <desc>
6288 Address of the USB device (as assigned by the host) to
6289 search for.
6290 </desc>
6291 </param>
6292 <param name="device" type="IUSBDevice" dir="return">
6293 <desc>Found USB device object.</desc>
6294 </param>
6295 </method>
6296
6297 <method name="findUSBDeviceById">
6298 <desc>
6299 Searches for a USB device with the given UUID.
6300
6301 <result name="VBOX_E_OBJECT_NOT_FOUND">
6302 Given @c id does not correspond to any USB device.
6303 </result>
6304
6305 <see>IUSBDevice::id</see>
6306 </desc>
6307 <param name="id" type="uuid" mod="string" dir="in">
6308 <desc>UUID of the USB device to search for.</desc>
6309 </param>
6310 <param name="device" type="IUSBDevice" dir="return">
6311 <desc>Found USB device object.</desc>
6312 </param>
6313 </method>
6314
6315 <method name="createSharedFolder">
6316 <desc>
6317 Creates a transient new shared folder by associating the given logical
6318 name with the given host path, adds it to the collection of shared
6319 folders and starts sharing it. Refer to the description of
6320 <link to="ISharedFolder"/> to read more about logical names.
6321
6322 <result name="VBOX_E_INVALID_VM_STATE">
6323 Virtual machine in Saved state or currently changing state.
6324 </result>
6325 <result name="VBOX_E_FILE_ERROR">
6326 Shared folder already exists or not accessible.
6327 </result>
6328 </desc>
6329 <param name="name" type="wstring" dir="in">
6330 <desc>Unique logical name of the shared folder.</desc>
6331 </param>
6332 <param name="hostPath" type="wstring" dir="in">
6333 <desc>Full path to the shared folder in the host file system.</desc>
6334 </param>
6335 <param name="writable" type="boolean" dir="in">
6336 <desc>Whether the share is writable or readonly</desc>
6337 </param>
6338 <param name="automount" type="boolean" dir="in">
6339 <desc>Whether the share gets automatically mounted by the guest
6340 or not.</desc>
6341 </param>
6342 </method>
6343
6344 <method name="removeSharedFolder">
6345 <desc>
6346 Removes a transient shared folder with the given name previously
6347 created by <link to="#createSharedFolder"/> from the collection of
6348 shared folders and stops sharing it.
6349 <result name="VBOX_E_INVALID_VM_STATE">
6350 Virtual machine in Saved state or currently changing state.
6351 </result>
6352 <result name="VBOX_E_FILE_ERROR">
6353 Shared folder does not exists.
6354 </result>
6355 </desc>
6356 <param name="name" type="wstring" dir="in">
6357 <desc>Logical name of the shared folder to remove.</desc>
6358 </param>
6359 </method>
6360
6361 <method name="takeSnapshot">
6362 <desc>
6363 Saves the current execution state
6364 and all settings of the machine and creates differencing images
6365 for all normal (non-independent) media.
6366 See <link to="ISnapshot" /> for an introduction to snapshots.
6367
6368 This method can be called for a PoweredOff, Saved (see
6369 <link to="#saveState"/>), Running or
6370 Paused virtual machine. When the machine is PoweredOff, an
6371 offline snapshot is created. When the machine is Running a live
6372 snapshot is created, and an online snapshot is is created when Paused.
6373
6374 The taken snapshot is always based on the
6375 <link to="IMachine::currentSnapshot">current snapshot</link>
6376 of the associated virtual machine and becomes a new current snapshot.
6377
6378 <note>
6379 This method implicitly calls <link to="IMachine::saveSettings"/> to
6380 save all current machine settings before taking an offline snapshot.
6381 </note>
6382
6383 <result name="VBOX_E_INVALID_VM_STATE">
6384 Virtual machine currently changing state.
6385 </result>
6386 </desc>
6387 <param name="name" type="wstring" dir="in">
6388 <desc>Short name for the snapshot.</desc>
6389 </param>
6390 <param name="description" type="wstring" dir="in">
6391 <desc>Optional description of the snapshot.</desc>
6392 </param>
6393 <param name="progress" type="IProgress" dir="return">
6394 <desc>Progress object to track the operation completion.</desc>
6395 </param>
6396 </method>
6397
6398 <method name="deleteSnapshot">
6399 <desc>
6400 Starts deleting the specified snapshot asynchronously.
6401 See <link to="ISnapshot" /> for an introduction to snapshots.
6402
6403 The execution state and settings of the associated machine stored in
6404 the snapshot will be deleted. The contents of all differencing media of
6405 this snapshot will be merged with the contents of their dependent child
6406 media to keep the medium chain valid (in other words, all changes
6407 represented by media being deleted will be propagated to their child
6408 medium). After that, this snapshot's differencing medium will be
6409 deleted. The parent of this snapshot will become a new parent for all
6410 its child snapshots.
6411
6412 If the deleted snapshot is the current one, its parent snapshot will
6413 become a new current snapshot. The current machine state is not directly
6414 affected in this case, except that currently attached differencing
6415 media based on media of the deleted snapshot will be also merged as
6416 described above.
6417
6418 If the deleted snapshot is the first or current snapshot, then the
6419 respective IMachine attributes will be adjusted. Deleting the current
6420 snapshot will also implicitly call <link to="IMachine::saveSettings"/>
6421 to make all current machine settings permanent.
6422
6423 Deleting a snapshot has the following preconditions:
6424
6425 <ul>
6426 <li>Child media of all normal media of the deleted snapshot
6427 must be accessible (see <link to="IMedium::state"/>) for this
6428 operation to succeed. In particular, this means that all virtual
6429 machines, whose media are directly or indirectly based on the
6430 media of deleted snapshot, must be powered off.</li>
6431
6432 <li>You cannot delete the snapshot if a medium attached to it has
6433 more than once child medium (differencing images) because otherwise
6434 merging would be impossible. This might be the case if there is
6435 more than one child snapshot or differencing images were created
6436 for other reason (e.g. implicitly because of multiple machine
6437 attachments).</li>
6438 </ul>
6439
6440
6441 The virtual machine's <link to="IMachine::state">state</link> is
6442 changed to "DeletingSnapshot", "DeletingSnapshotOnline" or
6443 "DeletingSnapshotPaused" while this operation is in progress.
6444
6445 <note>
6446 Merging medium contents can be very time and disk space
6447 consuming, if these media are big in size and have many
6448 children. However, if the snapshot being deleted is the last
6449 (head) snapshot on the branch, the operation will be rather
6450 quick.
6451 </note>
6452 <result name="VBOX_E_INVALID_VM_STATE">
6453 The running virtual machine prevents deleting this snapshot. This
6454 happens only in very specific situations, usually snapshots can be
6455 deleted without trouble while a VM is running. The error message
6456 text explains the reason for the failure.
6457 </result>
6458 </desc>
6459 <param name="id" type="uuid" mod="string" dir="in">
6460 <desc>UUID of the snapshot to delete.</desc>
6461 </param>
6462 <param name="progress" type="IProgress" dir="return">
6463 <desc>Progress object to track the operation completion.</desc>
6464 </param>
6465 </method>
6466
6467 <method name="restoreSnapshot">
6468 <desc>
6469 Starts resetting the machine's current state to the state contained
6470 in the given snapshot, asynchronously. All current settings of the
6471 machine will be reset and changes stored in differencing media
6472 will be lost.
6473 See <link to="ISnapshot" /> for an introduction to snapshots.
6474
6475 After this operation is successfully completed, new empty differencing
6476 media are created for all normal media of the machine.
6477
6478 If the given snapshot is an online snapshot, the machine will go to
6479 the <link to="MachineState_Saved"> saved state</link>, so that the
6480 next time it is powered on, the execution state will be restored
6481 from the state of the snapshot.
6482
6483 <note>
6484 The machine must not be running, otherwise the operation will fail.
6485 </note>
6486
6487 <note>
6488 If the machine state is <link to="MachineState_Saved">Saved</link>
6489 prior to this operation, the saved state file will be implicitly
6490 deleted (as if <link to="IConsole::discardSavedState"/> were
6491 called).
6492 </note>
6493
6494 <result name="VBOX_E_INVALID_VM_STATE">
6495 Virtual machine is running.
6496 </result>
6497 </desc>
6498 <param name="snapshot" type="ISnapshot" dir="in">
6499 <desc>The snapshot to restore the VM state from.</desc>
6500 </param>
6501 <param name="progress" type="IProgress" dir="return">
6502 <desc>Progress object to track the operation completion.</desc>
6503 </param>
6504 </method>
6505
6506 <method name="teleport">
6507 <desc>
6508 Teleport the VM to a different host machine or process.
6509
6510 TODO explain the details.
6511
6512 <result name="VBOX_E_INVALID_VM_STATE">
6513 Virtual machine not running or paused.
6514 </result>
6515 </desc>
6516 <param name="hostname" type="wstring" dir="in">
6517 <desc>The name or IP of the host to teleport to.</desc>
6518 </param>
6519 <param name="tcpport" type="unsigned long" dir="in">
6520 <desc>The TCP port to connect to (1..65535).</desc>
6521 </param>
6522 <param name="password" type="wstring" dir="in">
6523 <desc>The password.</desc>
6524 </param>
6525 <param name="maxDowntime" type="unsigned long" dir="in">
6526 <desc>
6527 The maximum allowed downtime given as milliseconds. 0 is not a valid
6528 value. Recommended value: 250 ms.
6529
6530 The higher the value is, the greater the chance for a successful
6531 teleportation. A small value may easily result in the teleportation
6532 process taking hours and eventually fail.
6533
6534 <note>
6535 The current implementation treats this a guideline, not as an
6536 absolute rule.
6537 </note>
6538 </desc>
6539 </param>
6540 <param name="progress" type="IProgress" dir="return">
6541 <desc>Progress object to track the operation completion.</desc>
6542 </param>
6543 </method>
6544
6545 </interface>
6546
6547 <!--
6548 // IHost
6549 /////////////////////////////////////////////////////////////////////////
6550 -->
6551
6552 <enum
6553 name="HostNetworkInterfaceMediumType"
6554 uuid="1aa54aaf-2497-45a2-bfb1-8eb225e93d5b"
6555 >
6556 <desc>
6557 Type of encapsulation. Ethernet encapsulation includes both wired and
6558 wireless Ethernet connections.
6559 <see>IHostNetworkInterface</see>
6560 </desc>
6561
6562 <const name="Unknown" value="0">
6563 <desc>
6564 The type of interface cannot be determined.
6565 </desc>
6566 </const>
6567 <const name="Ethernet" value="1">
6568 <desc>
6569 Ethernet frame encapsulation.
6570 </desc>
6571 </const>
6572 <const name="PPP" value="2">
6573 <desc>
6574 Point-to-point protocol encapsulation.
6575 </desc>
6576 </const>
6577 <const name="SLIP" value="3">
6578 <desc>
6579 Serial line IP encapsulation.
6580 </desc>
6581 </const>
6582 </enum>
6583
6584 <enum
6585 name="HostNetworkInterfaceStatus"
6586 uuid="CC474A69-2710-434B-8D99-C38E5D5A6F41"
6587 >
6588 <desc>
6589 Current status of the interface.
6590 <see>IHostNetworkInterface</see>
6591 </desc>
6592
6593 <const name="Unknown" value="0">
6594 <desc>
6595 The state of interface cannot be determined.
6596 </desc>
6597 </const>
6598 <const name="Up" value="1">
6599 <desc>
6600 The interface is fully operational.
6601 </desc>
6602 </const>
6603 <const name="Down" value="2">
6604 <desc>
6605 The interface is not functioning.
6606 </desc>
6607 </const>
6608 </enum>
6609
6610 <enum
6611 name="HostNetworkInterfaceType"
6612 uuid="67431b00-9946-48a2-bc02-b25c5919f4f3"
6613 >
6614 <desc>
6615 Network interface type.
6616 </desc>
6617 <const name="Bridged" value="1"/>
6618 <const name="HostOnly" value="2"/>
6619 </enum>
6620
6621 <interface
6622 name="IHostNetworkInterface" extends="$unknown"
6623 uuid="ce6fae58-7642-4102-b5db-c9005c2320a8"
6624 wsmap="managed"
6625 >
6626 <desc>
6627 Represents one of host's network interfaces. IP V6 address and network
6628 mask are strings of 32 hexdecimal digits grouped by four. Groups are
6629 separated by colons.
6630 For example, fe80:0000:0000:0000:021e:c2ff:fed2:b030.
6631 </desc>
6632 <attribute name="name" type="wstring" readonly="yes">
6633 <desc>Returns the host network interface name.</desc>
6634 </attribute>
6635
6636 <attribute name="id" type="uuid" mod="string" readonly="yes">
6637 <desc>Returns the interface UUID.</desc>
6638 </attribute>
6639
6640 <attribute name="networkName" type="wstring" readonly="yes">
6641 <desc>Returns the name of a virtual network the interface gets attached to.</desc>
6642 </attribute>
6643
6644 <attribute name="dhcpEnabled" type="boolean" readonly="yes">
6645 <desc>Specifies whether the DHCP is enabled for the interface.</desc>
6646 </attribute>
6647
6648 <attribute name="IPAddress" type="wstring" readonly="yes">
6649 <desc>Returns the IP V4 address of the interface.</desc>
6650 </attribute>
6651
6652 <attribute name="networkMask" type="wstring" readonly="yes">
6653 <desc>Returns the network mask of the interface.</desc>
6654 </attribute>
6655
6656 <attribute name="IPV6Supported" type="boolean" readonly="yes">
6657 <desc>Specifies whether the IP V6 is supported/enabled for the interface.</desc>
6658 </attribute>
6659
6660 <attribute name="IPV6Address" type="wstring" readonly="yes">
6661 <desc>Returns the IP V6 address of the interface.</desc>
6662 </attribute>
6663
6664 <attribute name="IPV6NetworkMaskPrefixLength" type="unsigned long" readonly="yes">
6665 <desc>Returns the length IP V6 network mask prefix of the interface.</desc>
6666 </attribute>
6667
6668 <attribute name="hardwareAddress" type="wstring" readonly="yes">
6669 <desc>Returns the hardware address. For Ethernet it is MAC address.</desc>
6670 </attribute>
6671
6672 <attribute name="mediumType" type="HostNetworkInterfaceMediumType" readonly="yes">
6673 <desc>Type of protocol encapsulation used.</desc>
6674 </attribute>
6675
6676 <attribute name="status" type="HostNetworkInterfaceStatus" readonly="yes">
6677 <desc>Status of the interface.</desc>
6678 </attribute>
6679
6680 <attribute name="interfaceType" type="HostNetworkInterfaceType" readonly="yes">
6681 <desc>specifies the host interface type.</desc>
6682 </attribute>
6683
6684 <method name="enableStaticIpConfig">
6685 <desc>sets and enables the static IP V4 configuration for the given interface.</desc>
6686 <param name="IPAddress" type="wstring" dir="in">
6687 <desc>
6688 IP address.
6689 </desc>
6690 </param>
6691 <param name="networkMask" type="wstring" dir="in">
6692 <desc>
6693 network mask.
6694 </desc>
6695 </param>
6696 </method>
6697
6698 <method name="enableStaticIpConfigV6">
6699 <desc>sets and enables the static IP V6 configuration for the given interface.</desc>
6700 <param name="IPV6Address" type="wstring" dir="in">
6701 <desc>
6702 IP address.
6703 </desc>
6704 </param>
6705 <param name="IPV6NetworkMaskPrefixLength" type="unsigned long" dir="in">
6706 <desc>
6707 network mask.
6708 </desc>
6709 </param>
6710 </method>
6711
6712 <method name="enableDynamicIpConfig">
6713 <desc>enables the dynamic IP configuration.</desc>
6714 </method>
6715
6716 <method name="dhcpRediscover">
6717 <desc>refreshes the IP configuration for dhcp-enabled interface.</desc>
6718 </method>
6719
6720 </interface>
6721
6722 <interface
6723 name="IHost" extends="$unknown"
6724 uuid="35b004f4-7806-4009-bfa8-d1308adba7e5"
6725 wsmap="managed"
6726 >
6727 <desc>
6728 The IHost interface represents the physical machine that this VirtualBox
6729 installation runs on.
6730
6731 An object implementing this interface is returned by the
6732 <link to="IVirtualBox::host" /> attribute. This interface contains
6733 read-only information about the host's physical hardware (such as what
6734 processors and disks are available, what the host operating system is,
6735 and so on) and also allows for manipulating some of the host's hardware,
6736 such as global USB device filters and host interface networking.
6737
6738 </desc>
6739 <attribute name="DVDDrives" type="IMedium" readonly="yes" safearray="yes">
6740 <desc>List of DVD drives available on the host.</desc>
6741 </attribute>
6742
6743 <attribute name="floppyDrives" type="IMedium" readonly="yes" safearray="yes">
6744 <desc>List of floppy drives available on the host.</desc>
6745 </attribute>
6746
6747 <attribute name="USBDevices" type="IHostUSBDevice" readonly="yes" safearray="yes">
6748 <desc>
6749 List of USB devices currently attached to the host.
6750 Once a new device is physically attached to the host computer,
6751 it appears in this list and remains there until detached.
6752
6753 <note>
6754 If USB functionality is not available in the given edition of
6755 VirtualBox, this method will set the result code to @c E_NOTIMPL.
6756 </note>
6757 </desc>
6758 </attribute>
6759
6760 <attribute name="USBDeviceFilters" type="IHostUSBDeviceFilter" readonly="yes" safearray="yes">
6761 <desc>
6762 List of USB device filters in action.
6763 When a new device is physically attached to the host computer,
6764 filters from this list are applied to it (in order they are stored
6765 in the list). The first matched filter will determine the
6766 <link to="IHostUSBDeviceFilter::action">action</link>
6767 performed on the device.
6768
6769 Unless the device is ignored by these filters, filters of all
6770 currently running virtual machines
6771 (<link to="IUSBController::deviceFilters"/>) are applied to it.
6772
6773 <note>
6774 If USB functionality is not available in the given edition of
6775 VirtualBox, this method will set the result code to @c E_NOTIMPL.
6776 </note>
6777
6778 <see>IHostUSBDeviceFilter, USBDeviceState</see>
6779 </desc>
6780 </attribute>
6781
6782 <attribute name="networkInterfaces" type="IHostNetworkInterface" safearray="yes" readonly="yes">
6783 <desc>List of host network interfaces currently defined on the host.</desc>
6784 </attribute>
6785
6786 <attribute name="processorCount" type="unsigned long" readonly="yes">
6787 <desc>Number of (logical) CPUs installed in the host system.</desc>
6788 </attribute>
6789
6790 <attribute name="processorOnlineCount" type="unsigned long" readonly="yes">
6791 <desc>Number of (logical) CPUs online in the host system.</desc>
6792 </attribute>
6793
6794 <attribute name="processorCoreCount" type="unsigned long" readonly="yes">
6795 <desc>Number of physical processor cores installed in the host system.</desc>
6796 </attribute>
6797
6798 <method name="getProcessorSpeed">
6799 <desc>Query the (approximate) maximum speed of a specified host CPU in
6800 Megahertz.
6801 </desc>
6802 <param name="cpuId" type="unsigned long" dir="in">
6803 <desc>
6804 Identifier of the CPU.
6805 </desc>
6806 </param>
6807 <param name="speed" type="unsigned long" dir="return">
6808 <desc>
6809 Speed value. 0 is returned if value is not known or @a cpuId is
6810 invalid.
6811 </desc>
6812 </param>
6813 </method>
6814
6815 <method name="getProcessorFeature">
6816 <desc>Query whether a CPU feature is supported or not.</desc>
6817 <param name="feature" type="ProcessorFeature" dir="in">
6818 <desc>
6819 CPU Feature identifier.
6820 </desc>
6821 </param>
6822 <param name="supported" type="boolean" dir="return">
6823 <desc>
6824 Feature is supported or not.
6825 </desc>
6826 </param>
6827 </method>
6828
6829 <method name="getProcessorDescription">
6830 <desc>Query the model string of a specified host CPU.
6831 </desc>
6832 <param name="cpuId" type="unsigned long" dir="in">
6833 <desc>
6834 Identifier of the CPU.
6835 <note>
6836 The current implementation might not necessarily return the
6837 description for this exact CPU.
6838 </note>
6839 </desc>
6840 </param>
6841 <param name="description" type="wstring" dir="return">
6842 <desc>
6843 Model string. An empty string is returned if value is not known or
6844 @a cpuId is invalid.
6845 </desc>
6846 </param>
6847 </method>
6848
6849 <method name="getProcessorCPUIDLeaf">
6850 <desc>
6851 Returns the CPU cpuid information for the specified leaf.
6852 </desc>
6853 <param name="cpuId" type="unsigned long" dir="in">
6854 <desc>
6855 Identifier of the CPU. The CPU most be online.
6856 <note>
6857 The current implementation might not necessarily return the
6858 description for this exact CPU.
6859 </note>
6860 </desc>
6861 </param>
6862 <param name="leaf" type="unsigned long" dir="in">
6863 <desc>
6864 CPUID leaf index (eax).
6865 </desc>
6866 </param>
6867 <param name="subLeaf" type="unsigned long" dir="in">
6868 <desc>
6869 CPUID leaf sub index (ecx). This currently only applies to cache
6870 information on Intel CPUs. Use 0 if retrieving values for
6871 <link to="IMachine::setCPUIDLeaf"/>.
6872 </desc>
6873 </param>
6874 <param name="valEax" type="unsigned long" dir="out">
6875 <desc>
6876 CPUID leaf value for register eax.
6877 </desc>
6878 </param>
6879 <param name="valEbx" type="unsigned long" dir="out">
6880 <desc>
6881 CPUID leaf value for register ebx.
6882 </desc>
6883 </param>
6884 <param name="valEcx" type="unsigned long" dir="out">
6885 <desc>
6886 CPUID leaf value for register ecx.
6887 </desc>
6888 </param>
6889 <param name="valEdx" type="unsigned long" dir="out">
6890 <desc>
6891 CPUID leaf value for register edx.
6892 </desc>
6893 </param>
6894 </method>
6895
6896 <attribute name="memorySize" type="unsigned long" readonly="yes">
6897 <desc>Amount of system memory in megabytes installed in the host system.</desc>
6898 </attribute>
6899
6900 <attribute name="memoryAvailable" type="unsigned long" readonly="yes">
6901 <desc>Available system memory in the host system.</desc>
6902 </attribute>
6903
6904 <attribute name="operatingSystem" type="wstring" readonly="yes">
6905 <desc>Name of the host system's operating system.</desc>
6906 </attribute>
6907
6908 <attribute name="OSVersion" type="wstring" readonly="yes">
6909 <desc>Host operating system's version string.</desc>
6910 </attribute>
6911
6912 <attribute name="UTCTime" type="long long" readonly="yes">
6913 <desc>Returns the current host time in milliseconds since 1970-01-01 UTC.</desc>
6914 </attribute>
6915
6916 <attribute name="Acceleration3DAvailable" type="boolean" readonly="yes">
6917 <desc>Returns @c true when the host supports 3D hardware acceleration.</desc>
6918 </attribute>
6919
6920 <method name="createHostOnlyNetworkInterface">
6921 <desc>
6922 Creates a new adapter for Host Only Networking.
6923 <result name="E_INVALIDARG">
6924 Host network interface @a name already exists.
6925 </result>
6926 </desc>
6927 <param name="hostInterface" type="IHostNetworkInterface" dir="out">
6928 <desc>
6929 Created host interface object.
6930 </desc>
6931 </param>
6932 <param name="progress" type="IProgress" dir="return">
6933 <desc>
6934 Progress object to track the operation completion.
6935 </desc>
6936 </param>
6937 </method>
6938
6939 <method name="removeHostOnlyNetworkInterface">
6940 <desc>
6941 Removes the given Host Only Networking interface.
6942 <result name="VBOX_E_OBJECT_NOT_FOUND">
6943 No host network interface matching @a id found.
6944 </result>
6945 </desc>
6946 <param name="id" type="uuid" mod="string" dir="in">
6947 <desc>
6948 Adapter GUID.
6949 </desc>
6950 </param>
6951 <param name="progress" type="IProgress" dir="return">
6952 <desc>
6953 Progress object to track the operation completion.
6954 </desc>
6955 </param>
6956 </method>
6957
6958 <method name="createUSBDeviceFilter">
6959 <desc>
6960 Creates a new USB device filter. All attributes except
6961 the filter name are set to empty (any match),
6962 <i>active</i> is @c false (the filter is not active).
6963
6964 The created filter can be added to the list of filters using
6965 <link to="#insertUSBDeviceFilter"/>.
6966
6967 <see>#USBDeviceFilters</see>
6968 </desc>
6969 <param name="name" type="wstring" dir="in">
6970 <desc>
6971 Filter name. See <link to="IUSBDeviceFilter::name"/> for more information.
6972 </desc>
6973 </param>
6974 <param name="filter" type="IHostUSBDeviceFilter" dir="return">
6975 <desc>Created filter object.</desc>
6976 </param>
6977 </method>
6978
6979 <method name="insertUSBDeviceFilter">
6980 <desc>
6981 Inserts the given USB device to the specified position
6982 in the list of filters.
6983
6984 Positions are numbered starting from @c 0. If the specified
6985 position is equal to or greater than the number of elements in
6986 the list, the filter is added at the end of the collection.
6987
6988 <note>
6989 Duplicates are not allowed, so an attempt to insert a
6990 filter already in the list is an error.
6991 </note>
6992 <note>
6993 If USB functionality is not available in the given edition of
6994 VirtualBox, this method will set the result code to @c E_NOTIMPL.
6995 </note>
6996
6997 <see>#USBDeviceFilters</see>
6998
6999 <result name="VBOX_E_INVALID_OBJECT_STATE">
7000 USB device filter is not created within this VirtualBox instance.
7001 </result>
7002 <result name="E_INVALIDARG">
7003 USB device filter already in list.
7004 </result>
7005
7006 </desc>
7007 <param name="position" type="unsigned long" dir="in">
7008 <desc>Position to insert the filter to.</desc>
7009 </param>
7010 <param name="filter" type="IHostUSBDeviceFilter" dir="in">
7011 <desc>USB device filter to insert.</desc>
7012 </param>
7013 </method>
7014
7015 <method name="removeUSBDeviceFilter">
7016 <desc>
7017 Removes a USB device filter from the specified position in the
7018 list of filters.
7019
7020 Positions are numbered starting from @c 0. Specifying a
7021 position equal to or greater than the number of elements in
7022 the list will produce an error.
7023
7024 <note>
7025 If USB functionality is not available in the given edition of
7026 VirtualBox, this method will set the result code to @c E_NOTIMPL.
7027 </note>
7028
7029 <see>#USBDeviceFilters</see>
7030
7031 <result name="E_INVALIDARG">
7032 USB device filter list empty or invalid @a position.
7033 </result>
7034
7035 </desc>
7036 <param name="position" type="unsigned long" dir="in">
7037 <desc>Position to remove the filter from.</desc>
7038 </param>
7039 </method>
7040
7041 <method name="findHostDVDDrive">
7042 <desc>
7043 Searches for a host DVD drive with the given @c name.
7044
7045 <result name="VBOX_E_OBJECT_NOT_FOUND">
7046 Given @c name does not correspond to any host drive.
7047 </result>
7048
7049 </desc>
7050 <param name="name" type="wstring" dir="in">
7051 <desc>Name of the host drive to search for</desc>
7052 </param>
7053 <param name="drive" type="IMedium" dir="return">
7054 <desc>Found host drive object</desc>
7055 </param>
7056 </method>
7057
7058 <method name="findHostFloppyDrive">
7059 <desc>
7060 Searches for a host floppy drive with the given @c name.
7061
7062 <result name="VBOX_E_OBJECT_NOT_FOUND">
7063 Given @c name does not correspond to any host floppy drive.
7064 </result>
7065
7066 </desc>
7067 <param name="name" type="wstring" dir="in">
7068 <desc>Name of the host floppy drive to search for</desc>
7069 </param>
7070 <param name="drive" type="IMedium" dir="return">
7071 <desc>Found host floppy drive object</desc>
7072 </param>
7073 </method>
7074
7075 <method name="findHostNetworkInterfaceByName">
7076 <desc>
7077 Searches through all host network interfaces for an interface with
7078 the given @c name.
7079 <note>
7080 The method returns an error if the given @c name does not
7081 correspond to any host network interface.
7082 </note>
7083 </desc>
7084 <param name="name" type="wstring" dir="in">
7085 <desc>Name of the host network interface to search for.</desc>
7086 </param>
7087 <param name="networkInterface" type="IHostNetworkInterface" dir="return">
7088 <desc>Found host network interface object.</desc>
7089 </param>
7090 </method>
7091 <method name="findHostNetworkInterfaceById">
7092 <desc>
7093 Searches through all host network interfaces for an interface with
7094 the given GUID.
7095 <note>
7096 The method returns an error if the given GUID does not
7097 correspond to any host network interface.
7098 </note>
7099 </desc>
7100 <param name="id" type="uuid" mod="string" dir="in">
7101 <desc>GUID of the host network interface to search for.</desc>
7102 </param>
7103 <param name="networkInterface" type="IHostNetworkInterface" dir="return">
7104 <desc>Found host network interface object.</desc>
7105 </param>
7106 </method>
7107 <method name="findHostNetworkInterfacesOfType">
7108 <desc>
7109 Searches through all host network interfaces and returns a list of interfaces of the specified type
7110 </desc>
7111 <param name="type" type="HostNetworkInterfaceType" dir="in">
7112 <desc>type of the host network interfaces to search for.</desc>
7113 </param>
7114 <param name="networkInterfaces" type="IHostNetworkInterface" safearray="yes" dir="return">
7115 <desc>Found host network interface objects.</desc>
7116 </param>
7117 </method>
7118
7119 <method name="findUSBDeviceById">
7120 <desc>
7121 Searches for a USB device with the given UUID.
7122
7123 <result name="VBOX_E_OBJECT_NOT_FOUND">
7124 Given @c id does not correspond to any USB device.
7125 </result>
7126
7127 <see>IHostUSBDevice::id</see>
7128 </desc>
7129 <param name="id" type="uuid" mod="string" dir="in">
7130 <desc>UUID of the USB device to search for.</desc>
7131 </param>
7132 <param name="device" type="IHostUSBDevice" dir="return">
7133 <desc>Found USB device object.</desc>
7134 </param>
7135 </method>
7136
7137 <method name="findUSBDeviceByAddress">
7138 <desc>
7139 Searches for a USB device with the given host address.
7140
7141 <result name="VBOX_E_OBJECT_NOT_FOUND">
7142 Given @c name does not correspond to any USB device.
7143 </result>
7144
7145 <see>IHostUSBDevice::address</see>
7146 </desc>
7147 <param name="name" type="wstring" dir="in">
7148 <desc>
7149 Address of the USB device (as assigned by the host) to
7150 search for.
7151 </desc>
7152 </param>
7153 <param name="device" type="IHostUSBDevice" dir="return">
7154 <desc>Found USB device object.</desc>
7155 </param>
7156 </method>
7157
7158 </interface>
7159
7160 <!--
7161 // ISystemProperties
7162 /////////////////////////////////////////////////////////////////////////
7163 -->
7164
7165 <interface
7166 name="ISystemProperties"
7167 extends="$unknown"
7168 uuid="2af0100b-fda2-4c6a-8e8f-31e4ba871886"
7169 wsmap="managed"
7170 >
7171 <desc>
7172 The ISystemProperties interface represents global properties of the given
7173 VirtualBox installation.
7174
7175 These properties define limits and default values for various attributes
7176 and parameters. Most of the properties are read-only, but some can be
7177 changed by a user.
7178 </desc>
7179
7180 <attribute name="minGuestRAM" type="unsigned long" readonly="yes">
7181 <desc>Minimum guest system memory in Megabytes.</desc>
7182 </attribute>
7183
7184 <attribute name="maxGuestRAM" type="unsigned long" readonly="yes">
7185 <desc>Maximum guest system memory in Megabytes.</desc>
7186 </attribute>
7187
7188 <attribute name="minGuestVRAM" type="unsigned long" readonly="yes">
7189 <desc>Minimum guest video memory in Megabytes.</desc>
7190 </attribute>
7191
7192 <attribute name="maxGuestVRAM" type="unsigned long" readonly="yes">
7193 <desc>Maximum guest video memory in Megabytes.</desc>
7194 </attribute>
7195
7196 <attribute name="minGuestCPUCount" type="unsigned long" readonly="yes">
7197 <desc>Minimum CPU count.</desc>
7198 </attribute>
7199
7200 <attribute name="maxGuestCPUCount" type="unsigned long" readonly="yes">
7201 <desc>Maximum CPU count.</desc>
7202 </attribute>
7203
7204 <attribute name="maxGuestMonitors" type="unsigned long" readonly="yes">
7205 <desc>Maximum of monitors which could be connected.</desc>
7206 </attribute>
7207
7208 <attribute name="infoVDSize" type="long long" readonly="yes">
7209 <desc>Maximum size of a virtual disk image in bytes. Informational value,
7210 does not reflect the limits of any virtual disk image format.</desc>
7211 </attribute>
7212
7213 <attribute name="networkAdapterCount" type="unsigned long" readonly="yes">
7214 <desc>
7215 Number of network adapters associated with every
7216 <link to="IMachine"/> instance.
7217 </desc>
7218 </attribute>
7219
7220 <attribute name="serialPortCount" type="unsigned long" readonly="yes">
7221 <desc>
7222 Number of serial ports associated with every
7223 <link to="IMachine"/> instance.
7224 </desc>
7225 </attribute>
7226
7227 <attribute name="parallelPortCount" type="unsigned long" readonly="yes">
7228 <desc>
7229 Number of parallel ports associated with every
7230 <link to="IMachine"/> instance.
7231 </desc>
7232 </attribute>
7233
7234 <attribute name="maxBootPosition" type="unsigned long" readonly="yes">
7235 <desc>
7236 Maximum device position in the boot order. This value corresponds
7237 to the total number of devices a machine can boot from, to make it
7238 possible to include all possible devices to the boot list.
7239 <see><link to="IMachine::setBootOrder"/></see>
7240 </desc>
7241 </attribute>
7242
7243 <attribute name="defaultMachineFolder" type="wstring">
7244 <desc>
7245 Full path to the default directory used to create new or open
7246 existing machines when a machine settings file name contains no
7247 path.
7248
7249 Starting with VirtualBox 4.0, by default, this attribute contains
7250 the full path of folder named "VirtualBox VMs" in the user's
7251 home directory, which depends on the host platform.
7252
7253 When setting this attribute, a full path must be specified.
7254 Setting this property to @c null or an empty string or the
7255 special value "Machines" (for compatibility reasons) will restore
7256 that default value.
7257
7258 If the folder specified herein does not exist, it will be created
7259 automatically as needed.
7260
7261 <see>
7262 <link to="IVirtualBox::createMachine"/>,
7263 <link to="IVirtualBox::openMachine"/>
7264 </see>
7265 </desc>
7266 </attribute>
7267
7268 <attribute name="mediumFormats" type="IMediumFormat" safearray="yes" readonly="yes">
7269 <desc>
7270 List of all medium storage formats supported by this VirtualBox
7271 installation.
7272
7273 Keep in mind that the medium format identifier
7274 (<link to="IMediumFormat::id"/>) used in other API calls like
7275 <link to="IVirtualBox::createHardDisk"/> to refer to a particular
7276 medium format is a case-insensitive string. This means that, for
7277 example, all of the following strings:
7278 <pre>
7279 "VDI"
7280 "vdi"
7281 "VdI"</pre>
7282 refer to the same medium format.
7283
7284 Note that the virtual medium framework is backend-based, therefore
7285 the list of supported formats depends on what backends are currently
7286 installed.
7287
7288 <see>
7289 <link to="IMediumFormat"/>,
7290 </see>
7291 </desc>
7292 </attribute>
7293
7294 <attribute name="defaultHardDiskFormat" type="wstring">
7295 <desc>
7296 Identifier of the default medium format used by VirtualBox.
7297
7298 The medium format set by this attribute is used by VirtualBox
7299 when the medium format was not specified explicitly. One example is
7300 <link to="IVirtualBox::createHardDisk"/> with the empty
7301 format argument. A more complex example is implicit creation of
7302 differencing media when taking a snapshot of a virtual machine:
7303 this operation will try to use a format of the parent medium first
7304 and if this format does not support differencing media the default
7305 format specified by this argument will be used.
7306
7307 The list of supported medium formats may be obtained by the
7308 <link to="#mediumFormats"/> call. Note that the default medium
7309 format must have a capability to create differencing media;
7310 otherwise operations that create media implicitly may fail
7311 unexpectedly.
7312
7313 The initial value of this property is <tt>"VDI"</tt> in the current
7314 version of the VirtualBox product, but may change in the future.
7315
7316 <note>
7317 Setting this property to @c null or empty string will restore the
7318 initial value.
7319 </note>
7320
7321 <see>
7322 <link to="#mediumFormats"/>,
7323 <link to="IMediumFormat::id"/>,
7324 <link to="IVirtualBox::createHardDisk"/>
7325 </see>
7326 </desc>
7327 </attribute>
7328
7329 <attribute name="freeDiskSpaceWarning" type="long long">
7330 <desc>Issue a warning if the free disk space is below (or in some disk
7331 intensive operation is expected to go below) the given size in
7332 bytes.</desc>
7333 </attribute>
7334
7335 <attribute name="freeDiskSpacePercentWarning" type="unsigned long">
7336 <desc>Issue a warning if the free disk space is below (or in some disk
7337 intensive operation is expected to go below) the given percentage.</desc>
7338 </attribute>
7339
7340 <attribute name="freeDiskSpaceError" type="long long">
7341 <desc>Issue an error if the free disk space is below (or in some disk
7342 intensive operation is expected to go below) the given size in
7343 bytes.</desc>
7344 </attribute>
7345
7346 <attribute name="freeDiskSpacePercentError" type="unsigned long">
7347 <desc>Issue an error if the free disk space is below (or in some disk
7348 intensive operation is expected to go below) the given percentage.</desc>
7349 </attribute>
7350
7351 <attribute name="VRDEAuthLibrary" type="wstring">
7352 <desc>
7353 Library that provides authentication for Remote Desktop clients. The library
7354 is used if a virtual machine's authentication type is set to "external"
7355 in the VM RemoteDisplay configuration.
7356
7357 The system library extension (".DLL" or ".so") must be omitted.
7358 A full path can be specified; if not, then the library must reside on the
7359 system's default library path.
7360
7361 The default value of this property is <tt>"VRDPAuth"</tt>. There is a library
7362 of that name in one of the default VirtualBox library directories.
7363
7364 For details about VirtualBox authentication libraries and how to implement
7365 them, please refer to the VirtualBox manual.
7366
7367 <note>
7368 Setting this property to @c null or empty string will restore the
7369 initial value.
7370 </note>
7371 </desc>
7372 </attribute>
7373
7374 <attribute name="webServiceAuthLibrary" type="wstring">
7375 <desc>
7376 Library that provides authentication for webservice clients. The library
7377 is used if a virtual machine's authentication type is set to "external"
7378 in the VM RemoteDisplay configuration and will be called from
7379 within the <link to="IWebsessionManager::logon" /> implementation.
7380
7381 As opposed to <link to="ISystemProperties::VRDEAuthLibrary" />,
7382 there is no per-VM setting for this, as the webservice is a global
7383 resource (if it is running). Only for this setting (for the webservice),
7384 setting this value to a literal <tt>"null"</tt> string disables authentication,
7385 meaning that <link to="IWebsessionManager::logon" /> will always succeed,
7386 no matter what user name and password are supplied.
7387
7388 The initial value of this property is <tt>"VRDPAuth"</tt>,
7389 meaning that the webservice will use the same authentication
7390 library that is used by default for VRDE (again, see
7391 <link to="ISystemProperties::VRDEAuthLibrary" />).
7392 The format and calling convention of authentication libraries
7393 is the same for the webservice as it is for VRDE.
7394
7395 <note>
7396 Setting this property to @c null or empty string will restore the
7397 initial value.
7398 </note>
7399 </desc>
7400 </attribute>
7401
7402 <attribute name="defaultVRDELibrary" type="wstring">
7403 <desc>
7404 Default VRDE library.
7405
7406 The default value of this property is an empty string, which means that the
7407 VRDE is not available.
7408
7409 For details about VirtualBox Remote Desktop Extension and how to implement
7410 it, please refer to the VirtualBox SDK.
7411 </desc>
7412 </attribute>
7413
7414 <attribute name="LogHistoryCount" type="unsigned long">
7415 <desc>
7416 This value specifies how many old release log files are kept.
7417 </desc>
7418 </attribute>
7419
7420 <attribute name="defaultAudioDriver" type="AudioDriverType" readonly="yes">
7421 <desc>This value hold the default audio driver for the current
7422 system.</desc>
7423 </attribute>
7424
7425 <method name="getMaxDevicesPerPortForStorageBus">
7426 <desc>Returns the maximum number of devices which can be attached to a port
7427 for the given storage bus.</desc>
7428
7429 <param name="bus" type="StorageBus" dir="in">
7430 <desc>The storage bus type to get the value for.</desc>
7431 </param>
7432
7433 <param name="maxDevicesPerPort" type="unsigned long" dir="return">
7434 <desc>The maximum number of devices which can eb attached to the port for the given
7435 storage bus.</desc>
7436 </param>
7437 </method>
7438
7439 <method name="getMinPortCountForStorageBus">
7440 <desc>Returns the minimum number of ports the given storage bus supports.</desc>
7441
7442 <param name="bus" type="StorageBus" dir="in">
7443 <desc>The storage bus type to get the value for.</desc>
7444 </param>
7445
7446 <param name="minPortCount" type="unsigned long" dir="return">
7447 <desc>The minimum number of ports for the given storage bus.</desc>
7448 </param>
7449 </method>
7450
7451 <method name="getMaxPortCountForStorageBus">
7452 <desc>Returns the maximum number of ports the given storage bus supports.</desc>
7453
7454 <param name="bus" type="StorageBus" dir="in">
7455 <desc>The storage bus type to get the value for.</desc>
7456 </param>
7457
7458 <param name="maxPortCount" type="unsigned long" dir="return">
7459 <desc>The maximum number of ports for the given storage bus.</desc>
7460 </param>
7461 </method>
7462
7463 <method name="getMaxInstancesOfStorageBus">
7464 <desc>Returns the maximum number of storage bus instances which
7465 can be configured for each VM. This corresponds to the number of
7466 storage controllers one can have.</desc>
7467
7468 <param name="bus" type="StorageBus" dir="in">
7469 <desc>The storage bus type to get the value for.</desc>
7470 </param>
7471
7472 <param name="maxInstances" type="unsigned long" dir="return">
7473 <desc>The maximum number of instances for the given storage bus.</desc>
7474 </param>
7475 </method>
7476
7477 <method name="getDeviceTypesForStorageBus">
7478 <desc>Returns list of all the supported device types
7479 (<link to="DeviceType"/>) for the given type of storage
7480 bus.</desc>
7481
7482 <param name="bus" type="StorageBus" dir="in">
7483 <desc>The storage bus type to get the value for.</desc>
7484 </param>
7485
7486 <param name="deviceTypes" type="DeviceType" safearray="yes" dir="return">
7487 <desc>The list of all supported device types for the given storage bus.</desc>
7488 </param>
7489 </method>
7490
7491 <method name="getDefaultIoCacheSettingForStorageController">
7492 <desc>Returns the default I/O cache setting for the
7493 given storage controller</desc>
7494
7495 <param name="controllerType" type="StorageControllerType" dir="in">
7496 <desc>The storage controller to the setting for.</desc>
7497 </param>
7498
7499 <param name="enabled" type="boolean" dir="return">
7500 <desc>Returned flag indicating the default value</desc>
7501 </param>
7502 </method>
7503 </interface>
7504
7505 <!--
7506 // IGuest
7507 /////////////////////////////////////////////////////////////////////////
7508 -->
7509
7510 <interface
7511 name="IGuestOSType" extends="$unknown"
7512 uuid="432c1546-1354-4abf-bf08-878a32a373f5"
7513 wsmap="struct"
7514 >
7515 <desc>
7516 </desc>
7517
7518 <attribute name="familyId" type="wstring" readonly="yes">
7519 <desc>Guest OS family identifier string.</desc>
7520 </attribute>
7521
7522 <attribute name="familyDescription" type="wstring" readonly="yes">
7523 <desc>Human readable description of the guest OS family.</desc>
7524 </attribute>
7525
7526 <attribute name="id" type="wstring" readonly="yes">
7527 <desc>Guest OS identifier string.</desc>
7528 </attribute>
7529
7530 <attribute name="description" type="wstring" readonly="yes">
7531 <desc>Human readable description of the guest OS.</desc>
7532 </attribute>
7533
7534 <attribute name="is64Bit" type="boolean" readonly="yes">
7535 <desc>Returns @c true if the given OS is 64-bit</desc>
7536 </attribute>
7537
7538 <attribute name="recommendedIOAPIC" type="boolean" readonly="yes">
7539 <desc>Returns @c true if IO APIC recommended for this OS type.</desc>
7540 </attribute>
7541
7542 <attribute name="recommendedVirtEx" type="boolean" readonly="yes">
7543 <desc>Returns @c true if VT-x or AMD-V recommended for this OS type.</desc>
7544 </attribute>
7545
7546 <attribute name="recommendedRAM" type="unsigned long" readonly="yes">
7547 <desc>Recommended RAM size in Megabytes.</desc>
7548 </attribute>
7549
7550 <attribute name="recommendedVRAM" type="unsigned long" readonly="yes">
7551 <desc>Recommended video RAM size in Megabytes.</desc>
7552 </attribute>
7553
7554 <attribute name="recommendedHDD" type="long long" readonly="yes">
7555 <desc>Recommended hard disk size in bytes.</desc>
7556 </attribute>
7557
7558 <attribute name="adapterType" type="NetworkAdapterType" readonly="yes">
7559 <desc>Returns recommended network adapter for this OS type.</desc>
7560 </attribute>
7561
7562 <attribute name="recommendedPae" type="boolean" readonly="yes">
7563 <desc>Returns @c true if using PAE is recommended for this OS type.</desc>
7564 </attribute>
7565
7566 <attribute name="recommendedDvdStorageController" type="StorageControllerType" readonly="yes">
7567 <desc>Recommended storage controller type for DVD/CD drives.</desc>
7568 </attribute>
7569
7570 <attribute name="recommendedDvdStorageBus" type="StorageBus" readonly="yes">
7571 <desc>Recommended storage bus type for DVD/CD drives.</desc>
7572 </attribute>
7573
7574 <attribute name="recommendedHdStorageController" type="StorageControllerType" readonly="yes">
7575 <desc>Recommended storage controller type for HD drives.</desc>
7576 </attribute>
7577
7578 <attribute name="recommendedHdStorageBus" type="StorageBus" readonly="yes">
7579 <desc>Recommended storage bus type for HD drives.</desc>
7580 </attribute>
7581
7582 <attribute name="recommendedFirmware" type="FirmwareType" readonly="yes">
7583 <desc>Recommended firmware type.</desc>
7584 </attribute>
7585
7586 <attribute name="recommendedUsbHid" type="boolean" readonly="yes">
7587 <desc>Returns @c true if using USB Human Interface Devices, such as keyboard and mouse recommended.</desc>
7588 </attribute>
7589
7590 <attribute name="recommendedHpet" type="boolean" readonly="yes">
7591 <desc>Returns @c true if using HPET is recommended for this OS type.</desc>
7592 </attribute>
7593
7594 <attribute name="recommendedUsbTablet" type="boolean" readonly="yes">
7595 <desc>Returns @c true if using a USB Tablet is recommended.</desc>
7596 </attribute>
7597
7598 <attribute name="recommendedRtcUseUtc" type="boolean" readonly="yes">
7599 <desc>Returns @c true if the RTC of this VM should be set to UTC</desc>
7600 </attribute>
7601
7602 <attribute name="recommendedChipset" type="ChipsetType" readonly="yes">
7603 <desc>Recommended chipset type.</desc>
7604 </attribute>
7605
7606 <attribute name="recommendedAudioController" type="AudioControllerType" readonly="yes">
7607 <desc>Recommended audio type.</desc>
7608 </attribute>
7609
7610 </interface>
7611
7612 <enum
7613 name="AdditionsRunLevelType"
7614 uuid="a25417ee-a9dd-4f5b-b0dc-377860087754"
7615 >
7616 <desc>
7617 Guest Additions run level type.
7618 </desc>
7619
7620 <const name="None" value="0">
7621 <desc>Guest Additions are not loaded.</desc>
7622 </const>
7623 <const name="System" value="1">
7624 <desc>Guest drivers are loaded.</desc>
7625 </const>
7626 <const name="Userland" value="2">
7627 <desc>Common components (such as application services) are loaded.</desc>
7628 </const>
7629 <const name="Desktop" value="3">
7630 <desc>Per-user desktop components are loaded.</desc>
7631 </const>
7632 </enum>
7633
7634 <enum
7635 name="ExecuteProcessFlag"
7636 uuid="3258e8a5-ba0c-43d5-86b5-cf91405fddc0"
7637 >
7638 <desc>
7639 Guest process execution flags.
7640 </desc>
7641
7642 <const name="None" value="0">
7643 <desc>No flag set.</desc>
7644 </const>
7645
7646 <const name="WaitForProcessStartOnly" value="1">
7647 <desc>Only use the specified timeout value to wait for starting the guest process - the guest
7648 process itself then uses an infinite timeout.</desc>
7649 </const>
7650
7651 <const name="IgnoreOrphanedProcesses" value="2">
7652 <desc>Do not report an error when executed processes are still alive when VBoxService or the guest OS is shutting down.</desc>
7653 </const>
7654 </enum>
7655
7656 <enum
7657 name="ProcessInputFlag"
7658 uuid="5d38c1dd-2604-4ddf-92e5-0c0cdd3bdbd5"
7659 >
7660 <desc>
7661 Guest process input flags.
7662 </desc>
7663
7664 <const name="None" value="0">
7665 <desc>No flag set.</desc>
7666 </const>
7667 <const name="EndOfFile" value="1">
7668 <desc>End of file (input) reached.</desc>
7669 </const>
7670 </enum>
7671
7672 <enum
7673 name="CopyFileFlag"
7674 uuid="23f79fdf-738a-493d-b80b-42d607c9b916"
7675 >
7676 <desc>
7677 Host/Guest copy flags.
7678 </desc>
7679
7680 <const name="None" value="0">
7681 <desc>No flag set.</desc>
7682 </const>
7683
7684 <const name="Recursive" value="1">
7685 <desc>Copy directories recursively.</desc>
7686 </const>
7687
7688 <const name="Update" value="2">
7689 <desc>Copy only when the source file is newer than the destination file or when the destination file is missing.</desc>
7690 </const>
7691
7692 <const name="FollowLinks" value="4">
7693 <desc>Follow symbolic links.</desc>
7694 </const>
7695 </enum>
7696
7697 <interface
7698 name="IGuest" extends="$unknown"
7699 uuid="5a4f265c-0c0e-495a-8ff6-7d68682e276b"
7700 wsmap="managed"
7701 >
7702 <desc>
7703 The IGuest interface represents information about the operating system
7704 running inside the virtual machine. Used in
7705 <link to="IConsole::guest"/>.
7706
7707 IGuest provides information about the guest operating system, whether
7708 Guest Additions are installed and other OS-specific virtual machine
7709 properties.
7710 </desc>
7711
7712 <attribute name="OSTypeId" type="wstring" readonly="yes">
7713 <desc>
7714 Identifier of the Guest OS type as reported by the Guest
7715 Additions.
7716 You may use <link to="IVirtualBox::getGuestOSType"/> to obtain
7717 an IGuestOSType object representing details about the given
7718 Guest OS type.
7719 <note>
7720 If Guest Additions are not installed, this value will be
7721 the same as <link to="IMachine::OSTypeId"/>.
7722 </note>
7723 </desc>
7724 </attribute>
7725
7726 <attribute name="additionsRunLevel" type="AdditionsRunLevelType" readonly="yes">
7727 <desc>
7728 Current run level of the Guest Additions.
7729 </desc>
7730 </attribute>
7731
7732 <attribute name="additionsVersion" type="wstring" readonly="yes">
7733 <desc>
7734 Version of the Guest Additions including the revision (3 decimal numbers
7735 separated by dots + revision number) installed on the guest or empty
7736 when the Additions are not installed.
7737 </desc>
7738 </attribute>
7739
7740 <attribute name="supportsSeamless" type="boolean" readonly="yes">
7741 <desc>
7742 Flag whether seamless guest display rendering (seamless desktop
7743 integration) is supported.
7744 </desc>
7745 </attribute>
7746
7747 <attribute name="supportsGraphics" type="boolean" readonly="yes">
7748 <desc>
7749 Flag whether the guest is in graphics mode. If it is not, then
7750 seamless rendering will not work, resize hints are not immediately
7751 acted on and guest display resizes are probably not initiated by
7752 the guest additions.
7753 </desc>
7754 </attribute>
7755
7756 <attribute name="memoryBalloonSize" type="unsigned long">
7757 <desc>Guest system memory balloon size in megabytes (transient property).</desc>
7758 </attribute>
7759
7760 <attribute name="statisticsUpdateInterval" type="unsigned long">
7761 <desc>Interval to update guest statistics in seconds.</desc>
7762 </attribute>
7763
7764 <method name="internalGetStatistics">
7765 <desc>
7766 Internal method; do not use as it might change at any time
7767 </desc>
7768 <param name="cpuUser" type="unsigned long" dir="out">
7769 <desc>Percentage of processor time spent in user mode as seen by the guest</desc>
7770 </param>
7771 <param name="cpuKernel" type="unsigned long" dir="out">
7772 <desc>Percentage of processor time spent in kernel mode as seen by the guest</desc>
7773 </param>
7774 <param name="cpuIdle" type="unsigned long" dir="out">
7775 <desc>Percentage of processor time spent idling as seen by the guest</desc>
7776 </param>
7777 <param name="memTotal" type="unsigned long" dir="out">
7778 <desc>Total amount of physical guest RAM</desc>
7779 </param>
7780 <param name="memFree" type="unsigned long" dir="out">
7781 <desc>Free amount of physical guest RAM</desc>
7782 </param>
7783 <param name="memBalloon" type="unsigned long" dir="out">
7784 <desc>Amount of ballooned physical guest RAM</desc>
7785 </param>
7786 <param name="memShared" type="unsigned long" dir="out">
7787 <desc>Amount of shared physical guest RAM</desc>
7788 </param>
7789 <param name="memCache" type="unsigned long" dir="out">
7790 <desc>Total amount of guest (disk) cache memory</desc>
7791 </param>
7792 <param name="pagedTotal" type="unsigned long" dir="out">
7793 <desc>Total amount of space in the page file</desc>
7794 </param>
7795 <param name="memAllocTotal" type="unsigned long" dir="out">
7796 <desc>Total amount of memory allocated by the hypervisor</desc>
7797 </param>
7798 <param name="memFreeTotal" type="unsigned long" dir="out">
7799 <desc>Total amount of free memory available in the hypervisor</desc>
7800 </param>
7801 <param name="memBalloonTotal" type="unsigned long" dir="out">
7802 <desc>Total amount of memory ballooned by the hypervisor</desc>
7803 </param>
7804 <param name="memSharedTotal" type="unsigned long" dir="out">
7805 <desc>Total amount of shared memory in the hypervisor</desc>
7806 </param>
7807 </method>
7808
7809 <method name="getAdditionsStatus">
7810 <desc>
7811 Retrieve the current status of a certain Guest Additions run level.
7812
7813 <result name="VBOX_E_NOT_SUPPORTED">
7814 Wrong status level specified.
7815 </result>
7816
7817 </desc>
7818 <param name="level" type="AdditionsRunLevelType" dir="in">
7819 <desc>Status level to check</desc>
7820 </param>
7821 <param name="active" type="boolean" dir="return">
7822 <desc>Flag whether the status level has been reached or not</desc>
7823 </param>
7824 </method>
7825
7826 <method name="setCredentials">
7827 <desc>
7828 Store login credentials that can be queried by guest operating
7829 systems with Additions installed. The credentials are transient
7830 to the session and the guest may also choose to erase them. Note
7831 that the caller cannot determine whether the guest operating system
7832 has queried or made use of the credentials.
7833
7834 <result name="VBOX_E_VM_ERROR">
7835 VMM device is not available.
7836 </result>
7837
7838 </desc>
7839 <param name="userName" type="wstring" dir="in">
7840 <desc>User name string, can be empty</desc>
7841 </param>
7842 <param name="password" type="wstring" dir="in">
7843 <desc>Password string, can be empty</desc>
7844 </param>
7845 <param name="domain" type="wstring" dir="in">
7846 <desc>Domain name (guest logon scheme specific), can be empty</desc>
7847 </param>
7848 <param name="allowInteractiveLogon" type="boolean" dir="in">
7849 <desc>
7850 Flag whether the guest should alternatively allow the user to
7851 interactively specify different credentials. This flag might
7852 not be supported by all versions of the Additions.
7853 </desc>
7854 </param>
7855 </method>
7856
7857 <method name="executeProcess">
7858 <desc>
7859 Executes an existing program inside the guest VM.
7860
7861 <result name="VBOX_E_IPRT_ERROR">
7862 Could not execute process.
7863 </result>
7864
7865 </desc>
7866 <param name="execName" type="wstring" dir="in">
7867 <desc>
7868 Full path name of the command to execute on the guest; the
7869 commands has to exists in the guest VM in order to be executed.
7870 </desc>
7871 </param>
7872 <param name="flags" type="unsigned long" dir="in">
7873 <desc>
7874 Execution flags - currently not supported and therefore
7875 has to be set to 0.
7876 </desc>
7877 </param>
7878 <param name="arguments" type="wstring" safearray="yes" dir="in">
7879 <desc>
7880 Array of arguments passed to the execution command.
7881 </desc>
7882 </param>
7883 <param name="environment" type="wstring" safearray="yes" dir="in">
7884 <desc>
7885 Environment variables that can be set while the command is being
7886 executed, in form of "NAME=VALUE"; one pair per entry. To unset a
7887 variable just set its name ("NAME") without a value.
7888 </desc>
7889 </param>
7890 <param name="userName" type="wstring" dir="in">
7891 <desc>
7892 User name under which the command will be executed; has to exist
7893 and have the appropriate rights to execute programs in the VM.
7894 </desc>
7895 </param>
7896 <param name="password" type="wstring" dir="in">
7897 <desc>
7898 Password of the user account specified.
7899 </desc>
7900 </param>
7901 <param name="timeoutMS" type="unsigned long" dir="in">
7902 <desc>
7903 The maximum timeout value (in msec) to wait for finished program
7904 execution. Pass 0 for an infinite timeout.
7905 </desc>
7906 </param>
7907 <param name="pid" type="unsigned long" dir="out">
7908 <desc>
7909 The PID (process ID) of the started command for later reference.
7910 </desc>
7911 </param>
7912 <param name="progress" type="IProgress" dir="return">
7913 <desc>Progress object to track the operation completion.</desc>
7914 </param>
7915 </method>
7916
7917 <method name="getProcessOutput">
7918 <desc>
7919 Retrieves output of a formerly started process.
7920
7921 <result name="VBOX_E_IPRT_ERROR">
7922 Could not retrieve output.
7923 </result>
7924
7925 </desc>
7926 <param name="pid" type="unsigned long" dir="in">
7927 <desc>
7928 Process id returned by earlier executeProcess() call.
7929 </desc>
7930 </param>
7931 <param name="flags" type="unsigned long" dir="in">
7932 <desc>
7933 Flags describing which output to retrieve.
7934 </desc>
7935 </param>
7936 <param name="timeoutMS" type="unsigned long" dir="in">
7937 <desc>
7938 The maximum timeout value (in msec) to wait for output
7939 data. Pass 0 for an infinite timeout.
7940 </desc>
7941 </param>
7942 <param name="size" type="long long" dir="in">
7943 <desc>
7944 Size in bytes to read in the buffer.
7945 </desc>
7946 </param>
7947 <param name="data" type="octet" dir="return" safearray="yes">
7948 <desc>
7949 Buffer for retrieving the actual output. A data size of 0 means end of file
7950 if the requested size was not 0. This is the unprocessed
7951 output data, i.e. the line ending style depends on the platform of
7952 the system the server is running on.
7953 </desc>
7954 </param>
7955 </method>
7956
7957 <method name="getProcessStatus">
7958 <desc>
7959 Retrieves status, exit code and the exit reason of a formerly started process.
7960
7961 <result name="VBOX_E_IPRT_ERROR">
7962 Process with specified PID was not found.
7963 </result>
7964
7965 </desc>
7966 <param name="pid" type="unsigned long" dir="in">
7967 <desc>
7968 Process id returned by earlier executeProcess() call.
7969 </desc>
7970 </param>
7971 <param name="exitcode" type="unsigned long" dir="out">
7972 <desc>
7973 The exit code (if available).
7974 </desc>
7975 </param>
7976 <param name="flags" type="unsigned long" dir="out">
7977 <desc>
7978 Additional flags of process status (not used at the moment).
7979 </desc>
7980 </param>
7981 <param name="reason" type="unsigned long" dir="return">
7982 <desc>
7983 The current process status.
7984 </desc>
7985 </param>
7986 </method>
7987
7988 <method name="copyToGuest">
7989 <desc>
7990 Copies files/directories from host to the guest.
7991
7992 <result name="VBOX_E_IPRT_ERROR">
7993 Error while copying.
7994 </result>
7995
7996 </desc>
7997 <param name="source" type="wstring" dir="in">
7998 <desc>
7999 Source file on the host to copy.
8000 </desc>
8001 </param>
8002 <param name="dest" type="wstring" dir="in">
8003 <desc>
8004 Destination path on the guest.
8005 </desc>
8006 </param>
8007 <param name="userName" type="wstring" dir="in">
8008 <desc>
8009 User name under which the copy command will be executed; the
8010 user has to exist and have the appropriate rights to write to
8011 the destination path.
8012 </desc>
8013 </param>
8014 <param name="password" type="wstring" dir="in">
8015 <desc>
8016 Password of the user account specified.
8017 </desc>
8018 </param>
8019 <param name="flags" type="unsigned long" dir="in">
8020 <desc>
8021 Copy flags.
8022 </desc>
8023 </param>
8024 <param name="progress" type="IProgress" dir="return">
8025 <desc>Progress object to track the operation completion.</desc>
8026 </param>
8027 </method>
8028
8029 <method name="setProcessInput">
8030 <desc>
8031 Sends input into a formerly started process.
8032
8033 <result name="VBOX_E_IPRT_ERROR">
8034 Could not send input.
8035 </result>
8036
8037 </desc>
8038 <param name="pid" type="unsigned long" dir="in">
8039 <desc>
8040 Process id returned by earlier executeProcess() call.
8041 </desc>
8042 </param>
8043 <param name="flags" type="unsigned long" dir="in">
8044 <desc>
8045 Not used, must be set to zero.
8046 </desc>
8047 </param>
8048 <param name="data" type="octet" dir="in" safearray="yes">
8049 <desc>
8050 Buffer of input data to send to the started process to.
8051 </desc>
8052 </param>
8053 <param name="written" type="unsigned long" dir="return">
8054 <desc>
8055 Number of bytes written.
8056 </desc>
8057 </param>
8058 </method>
8059
8060 <method name="updateGuestAdditions">
8061 <desc>
8062 Updates already installed Guest Additions in a VM
8063 (Windows guests only).
8064
8065 <result name="VBOX_E_IPRT_ERROR">
8066 Error while updating.
8067 </result>
8068
8069 </desc>
8070 <param name="source" type="wstring" dir="in">
8071 <desc>
8072 Path to the Guest Additions .ISO file to use for the upate.
8073 </desc>
8074 </param>
8075 <param name="progress" type="IProgress" dir="return">
8076 <desc>Progress object to track the operation completion.</desc>
8077 </param>
8078 </method>
8079
8080 </interface>
8081
8082
8083 <!--
8084 // IProgress
8085 /////////////////////////////////////////////////////////////////////////
8086 -->
8087
8088 <interface
8089 name="IProgress" extends="$unknown"
8090 uuid="A163C98F-8635-4AA8-B770-A9941737F3EF"
8091 wsmap="managed"
8092 >
8093 <desc>
8094 The IProgress interface is used to track and control
8095 asynchronous tasks within VirtualBox.
8096
8097 An instance of this is returned every time VirtualBox starts
8098 an asynchronous task (in other words, a separate thread) which
8099 continues to run after a method call returns. For example,
8100 <link to="IConsole::saveState" />, which saves the state of
8101 a running virtual machine, can take a long time to complete.
8102 To be able to display a progress bar, a user interface such as
8103 the VirtualBox graphical user interface can use the IProgress
8104 object returned by that method.
8105
8106 Note that IProgress is a "read-only" interface in the sense
8107 that only the VirtualBox internals behind the Main API can
8108 create and manipulate progress objects, whereas client code
8109 can only use the IProgress object to monitor a task's
8110 progress and, if <link to="#cancelable" /> is @c true,
8111 cancel the task by calling <link to="#cancel" />.
8112
8113 A task represented by IProgress consists of either one or
8114 several sub-operations that run sequentially, one by one (see
8115 <link to="#operation" /> and <link to="#operationCount" />).
8116 Every operation is identified by a number (starting from 0)
8117 and has a separate description.
8118
8119 You can find the individual percentage of completion of the current
8120 operation in <link to="#operationPercent" /> and the
8121 percentage of completion of the task as a whole
8122 in <link to="#percent" />.
8123
8124 Similarly, you can wait for the completion of a particular
8125 operation via <link to="#waitForOperationCompletion" /> or
8126 for the completion of the whole task via
8127 <link to="#waitForCompletion" />.
8128 </desc>
8129
8130 <attribute name="id" type="uuid" mod="string" readonly="yes">
8131 <desc>ID of the task.</desc>
8132 </attribute>
8133
8134 <attribute name="description" type="wstring" readonly="yes">
8135 <desc>Description of the task.</desc>
8136 </attribute>
8137
8138 <attribute name="initiator" type="$unknown" readonly="yes">
8139 <desc>Initiator of the task.</desc>
8140 </attribute>
8141
8142 <attribute name="cancelable" type="boolean" readonly="yes">
8143 <desc>Whether the task can be interrupted.</desc>
8144 </attribute>
8145
8146 <attribute name="percent" type="unsigned long" readonly="yes">
8147 <desc>
8148 Current progress value of the task as a whole, in percent.
8149 This value depends on how many operations are already complete.
8150 Returns 100 if <link to="#completed" /> is @c true.
8151 </desc>
8152 </attribute>
8153
8154 <attribute name="timeRemaining" type="long" readonly="yes">
8155 <desc>
8156 Estimated remaining time until the task completes, in
8157 seconds. Returns 0 once the task has completed; returns -1
8158 if the remaining time cannot be computed, in particular if
8159 the current progress is 0.
8160
8161 Even if a value is returned, the estimate will be unreliable
8162 for low progress values. It will become more reliable as the
8163 task progresses; it is not recommended to display an ETA
8164 before at least 20% of a task have completed.
8165 </desc>
8166 </attribute>
8167
8168 <attribute name="completed" type="boolean" readonly="yes">
8169 <desc>Whether the task has been completed.</desc>
8170 </attribute>
8171
8172 <attribute name="canceled" type="boolean" readonly="yes">
8173 <desc>Whether the task has been canceled.</desc>
8174 </attribute>
8175
8176 <attribute name="resultCode" type="long" readonly="yes">
8177 <desc>
8178 Result code of the progress task.
8179 Valid only if <link to="#completed"/> is @c true.
8180 </desc>
8181 </attribute>
8182
8183 <attribute name="errorInfo" type="IVirtualBoxErrorInfo" readonly="yes">
8184 <desc>
8185 Extended information about the unsuccessful result of the
8186 progress operation. May be @c null if no extended information
8187 is available.
8188 Valid only if <link to="#completed"/> is @c true and
8189 <link to="#resultCode"/> indicates a failure.
8190 </desc>
8191 </attribute>
8192
8193 <attribute name="operationCount" type="unsigned long" readonly="yes">
8194 <desc>
8195 Number of sub-operations this task is divided into.
8196 Every task consists of at least one suboperation.
8197 </desc>
8198 </attribute>
8199
8200 <attribute name="operation" type="unsigned long" readonly="yes">
8201 <desc>Number of the sub-operation being currently executed.</desc>
8202 </attribute>
8203
8204 <attribute name="operationDescription" type="wstring" readonly="yes">
8205 <desc>
8206 Description of the sub-operation being currently executed.
8207 </desc>
8208 </attribute>
8209
8210 <attribute name="operationPercent" type="unsigned long" readonly="yes">
8211 <desc>Progress value of the current sub-operation only, in percent.</desc>
8212 </attribute>
8213
8214 <attribute name="operationWeight" type="unsigned long" readonly="yes">
8215 <desc>Weight value of the current sub-operation only.</desc>
8216 </attribute>
8217
8218 <attribute name="timeout" type="unsigned long">
8219 <desc>
8220 When non-zero, this specifies the number of milliseconds after which
8221 the operation will automatically be canceled. This can only be set on
8222 cancelable objects.
8223 </desc>
8224 </attribute>
8225
8226 <method name="setCurrentOperationProgress">
8227 <desc>Internal method, not to be called externally.</desc>
8228 <param name="percent" type="unsigned long" dir="in" />
8229 </method>
8230 <method name="setNextOperation">
8231 <desc>Internal method, not to be called externally.</desc>
8232 <param name="nextOperationDescription" type="wstring" dir="in" />
8233 <param name="nextOperationsWeight" type="unsigned long" dir="in" />
8234 </method>
8235
8236 <method name="waitForCompletion">
8237 <desc>
8238 Waits until the task is done (including all sub-operations)
8239 with a given timeout in milliseconds; specify -1 for an indefinite wait.
8240
8241 Note that the VirtualBox/XPCOM/COM/native event queues of the calling
8242 thread are not processed while waiting. Neglecting event queues may
8243 have dire consequences (degrade performance, resource hogs,
8244 deadlocks, etc.), this is specially so for the main thread on
8245 platforms using XPCOM. Callers are adviced wait for short periods
8246 and service their event queues between calls, or to create a worker
8247 thread to do the waiting.
8248
8249 <result name="VBOX_E_IPRT_ERROR">
8250 Failed to wait for task completion.
8251 </result>
8252 </desc>
8253
8254 <param name="timeout" type="long" dir="in">
8255 <desc>
8256 Maximum time in milliseconds to wait or -1 to wait indefinitely.
8257 </desc>
8258 </param>
8259 </method>
8260
8261 <method name="waitForOperationCompletion">
8262 <desc>
8263 Waits until the given operation is done with a given timeout in
8264 milliseconds; specify -1 for an indefinite wait.
8265
8266 See <link to="#waitForCompletion"> for event queue considerations.</link>
8267
8268 <result name="VBOX_E_IPRT_ERROR">
8269 Failed to wait for operation completion.
8270 </result>
8271
8272 </desc>
8273 <param name="operation" type="unsigned long" dir="in">
8274 <desc>
8275 Number of the operation to wait for.
8276 Must be less than <link to="#operationCount"/>.
8277 </desc>
8278 </param>
8279 <param name="timeout" type="long" dir="in">
8280 <desc>
8281 Maximum time in milliseconds to wait or -1 to wait indefinitely.
8282 </desc>
8283 </param>
8284 </method>
8285
8286 <method name="cancel">
8287 <desc>
8288 Cancels the task.
8289 <note>
8290 If <link to="#cancelable"/> is @c false, then this method will fail.
8291 </note>
8292
8293 <result name="VBOX_E_INVALID_OBJECT_STATE">
8294 Operation cannot be canceled.
8295 </result>
8296
8297 </desc>
8298 </method>
8299
8300 </interface>
8301
8302 <!--
8303 // ISnapshot
8304 /////////////////////////////////////////////////////////////////////////
8305 -->
8306
8307 <interface
8308 name="ISnapshot" extends="$unknown"
8309 uuid="1a2d0551-58a4-4107-857e-ef414fc42ffc"
8310 wsmap="managed"
8311 >
8312 <desc>
8313 The ISnapshot interface represents a snapshot of the virtual
8314 machine.
8315
8316 Together with the differencing media that are created
8317 when a snapshot is taken, a machine can be brought back to
8318 the exact state it was in when the snapshot was taken.
8319
8320 The ISnapshot interface has no methods, only attributes; snapshots
8321 are controlled through methods of the <link to="IConsole" /> interface
8322 which also manage the media associated with the snapshot.
8323 The following operations exist:
8324
8325 <ul>
8326 <li><link to="IConsole::takeSnapshot"/> creates a new snapshot
8327 by creating new, empty differencing images for the machine's
8328 media and saving the VM settings and (if the VM is running)
8329 the current VM state in the snapshot.
8330
8331 The differencing images will then receive all data written to
8332 the machine's media, while their parent (base) images
8333 remain unmodified after the snapshot has been taken (see
8334 <link to="IMedium" /> for details about differencing images).
8335 This simplifies restoring a machine to the state of a snapshot:
8336 only the differencing images need to be deleted.
8337
8338 The current machine state is not changed by taking a snapshot.
8339 If the machine is running, it will resume execution after the
8340 snapshot has been taken. After calling this,
8341 <link to="IMachine::currentSnapshot" /> is set to the snapshot
8342 just created.
8343 </li>
8344
8345 <li><link to="IConsole::restoreSnapshot"/> resets a machine to
8346 the state of a previous snapshot by deleting the differencing
8347 image of each of the machine's media and setting the machine's
8348 settings and state to the state that was saved in the snapshot (if any).
8349
8350 This destroys the machine's current state. After calling this,
8351 <link to="IMachine::currentSnapshot" /> is set to the snapshot that was
8352 restored.
8353 </li>
8354
8355 <li><link to="IConsole::deleteSnapshot"/> deletes a snapshot
8356 without affecting the current machine state.
8357
8358 This does not change the current machine state, but instead frees the
8359 resources allocated when the snapshot was taken: the settings and machine
8360 state file are deleted (if any), and the snapshot's differencing image for
8361 each of the machine's media gets merged with its parent image.
8362
8363 Neither the current machine state nor other snapshots are affected
8364 by this operation, except that parent media will be modified
8365 to contain the disk data associated with the snapshot being deleted.
8366
8367 When deleting the current snapshot, the <link to="IMachine::currentSnapshot" />
8368 attribute is set to the current snapshot's parent or NULL if it
8369 has no parent. Otherwise the attribute is unchanged.
8370 </li>
8371 </ul>
8372
8373 Each snapshot contains the settings of the virtual machine (hardware
8374 configuration etc.). In addition, if the machine was running when the
8375 snapshot was taken (<link to="IMachine::state"/> is <link to="MachineState_Running"/>),
8376 the current VM state is saved in the snapshot (similarly to what happens
8377 when a VM's state is saved). The snapshot is then said to
8378 be <i>online</i> because when restoring it, the VM will be running.
8379
8380 If the machine is saved (<link to="MachineState_Saved"/>), the snapshot
8381 receives a copy of the execution state file (<link to="IMachine::stateFilePath"/>).
8382
8383 Otherwise, if the machine was not running (<link to="MachineState_PoweredOff"/>
8384 or <link to="MachineState_Aborted"/>), the snapshot is <i>offline</i>;
8385 it then contains a so-called "zero execution state", representing a
8386 machine that is powered off.
8387 </desc>
8388
8389 <attribute name="id" type="uuid" mod="string" readonly="yes">
8390 <desc>UUID of the snapshot.</desc>
8391 </attribute>
8392
8393 <attribute name="name" type="wstring">
8394 <desc>Short name of the snapshot.</desc>
8395 </attribute>
8396
8397 <attribute name="description" type="wstring">
8398 <desc>Optional description of the snapshot.</desc>
8399 </attribute>
8400
8401 <attribute name="timeStamp" type="long long" readonly="yes">
8402 <desc>
8403 Time stamp of the snapshot, in milliseconds since 1970-01-01 UTC.
8404 </desc>
8405 </attribute>
8406
8407 <attribute name="online" type="boolean" readonly="yes">
8408 <desc>
8409 @c true if this snapshot is an online snapshot and @c false otherwise.
8410
8411 When this attribute is @c true, the
8412 <link to="IMachine::stateFilePath"/> attribute of the
8413 <link to="#machine"/> object associated with this snapshot
8414 will point to the saved state file. Otherwise, it will be
8415 an empty string.
8416 </desc>
8417 </attribute>
8418
8419 <attribute name="machine" type="IMachine" readonly="yes">
8420 <desc>
8421 Virtual machine this snapshot is taken on. This object
8422 stores all settings the machine had when taking this snapshot.
8423 <note>
8424 The returned machine object is immutable, i.e. no
8425 any settings can be changed.
8426 </note>
8427 </desc>
8428 </attribute>
8429
8430 <attribute name="parent" type="ISnapshot" readonly="yes">
8431 <desc>
8432 Parent snapshot (a snapshot this one is based on), or
8433 @c null if the snapshot has no parent (i.e. is the first snapshot).
8434 </desc>
8435 </attribute>
8436
8437 <attribute name="children" type="ISnapshot" readonly="yes" safearray="yes">
8438 <desc>
8439 Child snapshots (all snapshots having this one as a parent).
8440 </desc>
8441 </attribute>
8442
8443 </interface>
8444
8445
8446 <!--
8447 // IMedium
8448 /////////////////////////////////////////////////////////////////////////
8449 -->
8450
8451 <enum
8452 name="MediumState"
8453 uuid="ef41e980-e012-43cd-9dea-479d4ef14d13"
8454 >
8455 <desc>
8456 Virtual medium state.
8457 <see>IMedium</see>
8458 </desc>
8459
8460 <const name="NotCreated" value="0">
8461 <desc>
8462 Associated medium storage does not exist (either was not created yet or
8463 was deleted).
8464 </desc>
8465 </const>
8466 <const name="Created" value="1">
8467 <desc>
8468 Associated storage exists and accessible; this gets set if the
8469 accessibility check performed by <link to="IMedium::refreshState" />
8470 was successful.
8471 </desc>
8472 </const>
8473 <const name="LockedRead" value="2">
8474 <desc>
8475 Medium is locked for reading (see <link to="IMedium::lockRead"/>),
8476 no data modification is possible.
8477 </desc>
8478 </const>
8479 <const name="LockedWrite" value="3">
8480 <desc>
8481 Medium is locked for writing (see <link to="IMedium::lockWrite"/>),
8482 no concurrent data reading or modification is possible.
8483 </desc>
8484 </const>
8485 <const name="Inaccessible" value="4">
8486 <desc>
8487 Medium accessibility check (see <link to="IMedium::refreshState" />) has
8488 not yet been performed, or else, associated medium storage is not
8489 accessible. In the first case, <link to="IMedium::lastAccessError"/>
8490 is empty, in the second case, it describes the error that occurred.
8491 </desc>
8492 </const>
8493 <const name="Creating" value="5">
8494 <desc>
8495 Associated medium storage is being created.
8496 </desc>
8497 </const>
8498 <const name="Deleting" value="6">
8499 <desc>
8500 Associated medium storage is being deleted.
8501 </desc>
8502 </const>
8503 </enum>
8504
8505 <enum
8506 name="MediumType"
8507 uuid="19388a99-8e70-4bd4-9a95-90cbc513ef6d"
8508 >
8509 <desc>
8510 Virtual medium type.
8511 <see>IMedium</see>
8512 </desc>
8513
8514 <const name="Normal" value="0">
8515 <desc>
8516 Normal medium (attached directly or indirectly, preserved
8517 when taking snapshots).
8518 </desc>
8519 </const>
8520 <const name="Immutable" value="1">
8521 <desc>
8522 Immutable medium (attached indirectly, changes are wiped out
8523 the next time the virtual machine is started).
8524 </desc>
8525 </const>
8526 <const name="Writethrough" value="2">
8527 <desc>
8528 Write through medium (attached directly, ignored when
8529 taking snapshots).
8530 </desc>
8531 </const>
8532 <const name="Shareable" value="3">
8533 <desc>
8534 Allow using this medium concurrently by several machines.
8535 <note>Present since VirtualBox 3.2.0, and accepted since 3.2.8.</note>
8536 </desc>
8537 </const>
8538 <const name="Readonly" value="4">
8539 <desc>
8540 A readonly medium, which can of course be used by several machines.
8541 <note>Present and accepted since VirtualBox 4.0.</note>
8542 </desc>
8543 </const>
8544 </enum>
8545
8546 <enum
8547 name="MediumVariant"
8548 uuid="584ea502-143b-4ab0-ad14-d1028fdf0316"
8549 >
8550 <desc>
8551 Virtual medium image variant. More than one flag may be set.
8552 <see>IMedium</see>
8553 </desc>
8554
8555 <const name="Standard" value="0">
8556 <desc>
8557 No particular variant requested, results in using the backend default.
8558 </desc>
8559 </const>
8560 <const name="VmdkSplit2G" value="0x01">
8561 <desc>
8562 VMDK image split in chunks of less than 2GByte.
8563 </desc>
8564 </const>
8565 <const name="VmdkStreamOptimized" value="0x04">
8566 <desc>
8567 VMDK streamOptimized image. Special import/export format which is
8568 read-only/append-only.
8569 </desc>
8570 </const>
8571 <const name="VmdkESX" value="0x08">
8572 <desc>
8573 VMDK format variant used on ESX products.
8574 </desc>
8575 </const>
8576 <const name="Fixed" value="0x10000">
8577 <desc>
8578 Fixed image. Only allowed for base images.
8579 </desc>
8580 </const>
8581 <const name="Diff" value="0x20000">
8582 <desc>
8583 Differencing image. Only allowed for child images.
8584 </desc>
8585 </const>
8586 </enum>
8587
8588 <interface
8589 name="IMediumAttachment" extends="$unknown"
8590 uuid="c29452cc-ca72-404b-9261-cfc514f1e412"
8591 wsmap="struct"
8592 >
8593 <desc>
8594 The IMediumAttachment interface links storage media to virtual machines.
8595 For each medium (<link to="IMedium"/>) which has been attached to a
8596 storage controller (<link to="IStorageController"/>) of a machine
8597 (<link to="IMachine"/>) via the <link to="IMachine::attachDevice" />
8598 method, one instance of IMediumAttachment is added to the machine's
8599 <link to="IMachine::mediumAttachments"/> array attribute.
8600
8601 Each medium attachment specifies the storage controller as well as a
8602 port and device number and the IMedium instance representing a virtual
8603 hard disk or floppy or DVD image.
8604
8605 For removeable media (DVDs or floppies), there are two additional
8606 options. For one, the IMedium instance can be @c null to represent
8607 an empty drive with no media inserted (see <link to="IMachine::mountMedium" />);
8608 secondly, the medium can be one of the pseudo-media for host drives
8609 listed in <link to="IHost::DVDDrives"/> or <link to="IHost::floppyDrives"/>.
8610 </desc>
8611
8612 <attribute name="medium" type="IMedium" readonly="yes">
8613 <desc>Medium object associated with this attachment; it
8614 can be @c null for removable devices.</desc>
8615 </attribute>
8616
8617 <attribute name="controller" type="wstring" readonly="yes">
8618 <desc>Name of the storage controller of this attachment; this
8619 refers to one of the controllers in <link to="IMachine::storageControllers" />
8620 by name.</desc>
8621 </attribute>
8622
8623 <attribute name="port" type="long" readonly="yes">
8624 <desc>Port number of this attachment.
8625 See <link to="IMachine::attachDevice" /> for the meaning of this value for the different controller types.
8626 </desc>
8627 </attribute>
8628
8629 <attribute name="device" type="long" readonly="yes">
8630 <desc>Device slot number of this attachment.
8631 See <link to="IMachine::attachDevice" /> for the meaning of this value for the different controller types.
8632 </desc>
8633 </attribute>
8634
8635 <attribute name="type" type="DeviceType" readonly="yes">
8636 <desc>Device type of this attachment.</desc>
8637 </attribute>
8638
8639 <attribute name="passthrough" type="boolean" readonly="yes">
8640 <desc>Pass I/O requests through to a device on the host.</desc>
8641 </attribute>
8642
8643 <attribute name="bandwidthLimit" type="unsigned long">
8644 <desc>
8645 Maximum throughput allowed for this medium attachment, in units of 1 mbps.
8646 A zero value means uncapped/unlimited.
8647 </desc>
8648 </attribute>
8649
8650 </interface>
8651
8652 <interface
8653 name="IMedium" extends="$unknown"
8654 uuid="bfcf5b8c-5155-4f24-9414-9457054b16db"
8655 wsmap="managed"
8656 >
8657 <desc>
8658 The IMedium interface represents virtual storage for a machine's
8659 hard disks, CD/DVD or floppy drives. It will typically represent
8660 a disk image on the host, for example a VDI or VMDK file representing
8661 a virtual hard disk, or an ISO or RAW file representing virtual
8662 removable media, but can also point to a network location (e.g.
8663 for iSCSI targets).
8664
8665 Instances of IMedium are connected to virtual machines by way of
8666 medium attachments (see <link to="IMediumAttachment" />), which link
8667 the storage medium to a particular device slot of a storage controller
8668 of the virtual machine.
8669 In the VirtualBox API, virtual storage is therefore always represented
8670 by the following chain of object links:
8671
8672 <ul>
8673 <li><link to="IMachine::storageControllers"/> contains an array of
8674 storage controllers (IDE, SATA, SCSI, SAS or a floppy controller;
8675 these are instances of <link to="IStorageController"/>).</li>
8676 <li><link to="IMachine::mediumAttachments"/> contains an array of
8677 medium attachments (instances of <link to="IMediumAttachment"/>),
8678 each containing a storage controller from the above array, a
8679 port/device specification, and an instance of IMedium representing
8680 the medium storage (image file).
8681
8682 For removable media, the storage medium is optional; a medium
8683 attachment with no medium represents a CD/DVD or floppy drive
8684 with no medium inserted. By contrast, hard disk attachments
8685 will always have an IMedium object attached.</li>
8686 <li>Each IMedium in turn points to a storage unit (such as a file
8687 on the host computer or a network resource) that holds actual
8688 data. This location is represented by the <link to="#location"/>
8689 attribute.</li>
8690 </ul>
8691
8692 Existing media are opened using <link to="IVirtualBox::openMedium"/>;
8693 new hard disk media can be created with the VirtualBox API using the
8694 <link to="IVirtualBox::createHardDisk"/> method.
8695
8696 CD/DVD and floppy images (ISO and RAW files) are usually created outside
8697 VirtualBox, e.g. by storing a copy of the real medium of the corresponding
8698 type in a regular file.
8699
8700 Only for CD/DVDs and floppies, an IMedium instance can also represent a host
8701 drive; in that case the <link to="#id" /> attribute contains the UUID of
8702 one of the drives in <link to="IHost::DVDDrives" /> or <link to="IHost::floppyDrives" />.
8703
8704 <h3>Known media</h3>
8705
8706 When an existing medium is opened and attached to a virtual machine, it
8707 is automatically added to a media registry. If the medium has first
8708 been attached to a machine which was created by VirtualBox 4.0 or later,
8709 it is added to that machine's media registry (in the machine XML settings
8710 file; this way all information about a machine's media attachments is
8711 contained in a single file). For older media attachments (i.e. if the
8712 medium was first attached to a machine which was created with a VirtualBox
8713 version before 4.0), media continue to be registered in the global
8714 VirtualBox settings file, for backwards compatibility.
8715
8716 See <link to="IVirtualBox::openMedium" /> for more information.
8717
8718 All known media can be enumerated using
8719 <link to="IVirtualBox::hardDisks"/>,
8720 <link to="IVirtualBox::DVDImages"/> and
8721 <link to="IVirtualBox::floppyImages"/> attributes. Individual media can be
8722 quickly found using the <link to="IVirtualBox::findMedium"/> method.
8723
8724 Only known media can be attached to virtual machines.
8725
8726 Removing known media from the media registry is performed when the given
8727 medium is closed using the <link to="#close"/> method or when its
8728 associated storage unit is deleted.
8729
8730 <h3>Accessibility checks</h3>
8731
8732 VirtualBox defers media accessibility checks until the <link to="#refreshState" />
8733 method is called explicitly on a medium. This is done to make the VirtualBox object
8734 ready for serving requests as fast as possible and let the end-user
8735 application decide if it needs to check media accessibility right away or not.
8736
8737 As a result, when VirtualBox starts up (e.g. the VirtualBox
8738 object gets created for the first time), all known media are in the
8739 "Inaccessible" state, but the value of the <link to="#lastAccessError"/>
8740 attribute is an empty string because no actual accessibility check has
8741 been made yet.
8742
8743 After calling <link to="#refreshState" />, a medium is considered
8744 <i>accessible</i> if its storage unit can be read. In that case, the
8745 <link to="#state"/> attribute has a value of "Created". If the storage
8746 unit cannot be read (for example, because it is located on a disconnected
8747 network resource, or was accidentally deleted outside VirtualBox),
8748 the medium is considered <i>inaccessible</i>, which is indicated by the
8749 "Inaccessible" state. The exact reason why the medium is inaccessible can be
8750 obtained by reading the <link to="#lastAccessError"/> attribute.
8751
8752 <h3>Medium types</h3>
8753
8754 There are four types of medium behavior (see <link to="MediumType" />):
8755 "normal", "immutable", "writethrough" and "shareable", represented by the
8756 <link to="#type"/> attribute. The type of the medium defines how the
8757 medium is attached to a virtual machine and what happens when a
8758 <link to="ISnapshot">snapshot</link> of the virtual machine with the
8759 attached medium is taken. At the moment DVD and floppy media are always
8760 of type "writethrough".
8761
8762 All media can be also divided in two groups: <i>base</i> media and
8763 <i>differencing</i> media. A base medium contains all sectors of the
8764 medium data in its own storage and therefore can be used independently.
8765 In contrast, a differencing medium is a "delta" to some other medium and
8766 contains only those sectors which differ from that other medium, which is
8767 then called a <i>parent</i>. The differencing medium is said to be
8768 <i>linked to</i> that parent. The parent may be itself a differencing
8769 medium, thus forming a chain of linked media. The last element in that
8770 chain must always be a base medium. Note that several differencing
8771 media may be linked to the same parent medium.
8772
8773 Differencing media can be distinguished from base media by querying the
8774 <link to="#parent"/> attribute: base media do not have parents they would
8775 depend on, so the value of this attribute is always @c null for them.
8776 Using this attribute, it is possible to walk up the medium tree (from the
8777 child medium to its parent). It is also possible to walk down the tree
8778 using the <link to="#children"/> attribute.
8779
8780 Note that the type of all differencing media is "normal"; all other
8781 values are meaningless for them. Base media may be of any type.
8782
8783 <h3>Creating hard disks</h3>
8784
8785 New base hard disks are created using
8786 <link to="IVirtualBox::createHardDisk"/>. Existing hard disks are
8787 opened using <link to="IVirtualBox::openMedium"/>. Differencing hard
8788 disks are usually implicitly created by VirtualBox when needed but may
8789 also be created explicitly using <link to="#createDiffStorage"/>.
8790
8791 After the hard disk is successfully created (including the storage unit)
8792 or opened, it becomes a known hard disk (remembered in the internal media
8793 registry). Known hard disks can be attached to a virtual machine, accessed
8794 through <link to="IVirtualBox::findMedium"/> or enumerated using the
8795 <link to="IVirtualBox::hardDisks"/> array (only for base hard disks).
8796
8797 The following methods, besides <link to="IMedium::close"/>,
8798 automatically remove the hard disk from the media registry:
8799 <ul>
8800 <li><link to="#deleteStorage"/></li>
8801 <li><link to="#mergeTo"/></li>
8802 </ul>
8803
8804 If the storage unit of the hard disk is a regular file in the host's
8805 file system then the rules stated in the description of the
8806 <link to="IMedium::location"/> attribute apply when setting its value.
8807
8808 <h4>Automatic composition of the file name part</h4>
8809
8810 Another extension to the <link to="IMedium::location"/> attribute is that
8811 there is a possibility to cause VirtualBox to compose a unique value for
8812 the file name part of the location using the UUID of the hard disk. This
8813 applies only to hard disks in <link to="MediumState_NotCreated"/> state,
8814 e.g. before the storage unit is created, and works as follows. You set the
8815 value of the <link to="IMedium::location"/> attribute to a location
8816 specification which only contains the path specification but not the file
8817 name part and ends with either a forward slash or a backslash character.
8818 In response, VirtualBox will generate a new UUID for the hard disk and
8819 compose the file name using the following pattern:
8820 <pre>
8821 &lt;path&gt;/{&lt;uuid&gt;}.&lt;ext&gt;
8822 </pre>
8823 where <tt>&lt;path&gt;</tt> is the supplied path specification,
8824 <tt>&lt;uuid&gt;</tt> is the newly generated UUID and <tt>&lt;ext&gt;</tt>
8825 is the default extension for the storage format of this hard disk. After
8826 that, you may call any of the methods that create a new hard disk storage
8827 unit and they will use the generated UUID and file name.
8828
8829 <h3>Attaching Hard Disks</h3>
8830
8831 Hard disks are attached to virtual machines using the
8832 <link to="IMachine::attachDevice"/> method and detached using the
8833 <link to="IMachine::detachDevice"/> method. Depending on their
8834 <link to="#type"/>, hard disks are attached either
8835 <i>directly</i> or <i>indirectly</i>.
8836
8837 When a hard disk is being attached directly, it is associated with the
8838 virtual machine and used for hard disk operations when the machine is
8839 running. When a hard disk is being attached indirectly, a new differencing
8840 hard disk linked to it is implicitly created and this differencing hard
8841 disk is associated with the machine and used for hard disk operations.
8842 This also means that if <link to="IMachine::attachDevice"/> performs
8843 a direct attachment then the same hard disk will be returned in response
8844 to the subsequent <link to="IMachine::getMedium"/> call; however if
8845 an indirect attachment is performed then
8846 <link to="IMachine::getMedium"/> will return the implicitly created
8847 differencing hard disk, not the original one passed to <link
8848 to="IMachine::attachDevice"/>. In detail:
8849
8850 <ul>
8851 <li><b>Normal base</b> hard disks that do not have children (i.e.
8852 differencing hard disks linked to them) and that are not already
8853 attached to virtual machines in snapshots are attached <b>directly</b>.
8854 Otherwise, they are attached <b>indirectly</b> because having
8855 dependent children or being part of the snapshot makes it impossible
8856 to modify hard disk contents without breaking the integrity of the
8857 dependent party. The <link to="#readOnly"/> attribute allows to
8858 quickly determine the kind of the attachment for the given hard
8859 disk. Note that if a normal base hard disk is to be indirectly
8860 attached to a virtual machine with snapshots then a special
8861 procedure called <i>smart attachment</i> is performed (see below).</li>
8862 <li><b>Normal differencing</b> hard disks are like normal base hard disks:
8863 they are attached <b>directly</b> if they do not have children and are
8864 not attached to virtual machines in snapshots, and <b>indirectly</b>
8865 otherwise. Note that the smart attachment procedure is never performed
8866 for differencing hard disks.</li>
8867 <li><b>Immutable</b> hard disks are always attached <b>indirectly</b> because
8868 they are designed to be non-writable. If an immutable hard disk is
8869 attached to a virtual machine with snapshots then a special
8870 procedure called smart attachment is performed (see below).</li>
8871 <li><b>Writethrough</b> hard disks are always attached <b>directly</b>,
8872 also as designed. This also means that writethrough hard disks cannot
8873 have other hard disks linked to them at all.</li>
8874 <li><b>Shareable</b> hard disks are always attached <b>directly</b>,
8875 also as designed. This also means that shareable hard disks cannot
8876 have other hard disks linked to them at all. They behave almost
8877 like writethrough hard disks, except that shareable hard disks can
8878 be attached to several virtual machines which are running, allowing
8879 concurrent accesses. You need special cluster software running in
8880 the virtual machines to make use of such disks.</li>
8881 </ul>
8882
8883 Note that the same hard disk, regardless of its type, may be attached to
8884 more than one virtual machine at a time. In this case, the machine that is
8885 started first gains exclusive access to the hard disk and attempts to
8886 start other machines having this hard disk attached will fail until the
8887 first machine is powered down.
8888
8889 Detaching hard disks is performed in a <i>deferred</i> fashion. This means
8890 that the given hard disk remains associated with the given machine after a
8891 successful <link to="IMachine::detachDevice"/> call until
8892 <link to="IMachine::saveSettings"/> is called to save all changes to
8893 machine settings to disk. This deferring is necessary to guarantee that
8894 the hard disk configuration may be restored at any time by a call to
8895 <link to="IMachine::discardSettings"/> before the settings
8896 are saved (committed).
8897
8898 Note that if <link to="IMachine::discardSettings"/> is called after
8899 indirectly attaching some hard disks to the machine but before a call to
8900 <link to="IMachine::saveSettings"/> is made, it will implicitly delete
8901 all differencing hard disks implicitly created by
8902 <link to="IMachine::attachDevice"/> for these indirect attachments.
8903 Such implicitly created hard disks will also be immediately deleted when
8904 detached explicitly using the <link to="IMachine::detachDevice"/>
8905 call if it is made before <link to="IMachine::saveSettings"/>. This
8906 implicit deletion is safe because newly created differencing hard
8907 disks do not contain any user data.
8908
8909 However, keep in mind that detaching differencing hard disks that were
8910 implicitly created by <link to="IMachine::attachDevice"/>
8911 before the last <link to="IMachine::saveSettings"/> call will
8912 <b>not</b> implicitly delete them as they may already contain some data
8913 (for example, as a result of virtual machine execution). If these hard
8914 disks are no more necessary, the caller can always delete them explicitly
8915 using <link to="#deleteStorage"/> after they are actually de-associated
8916 from this machine by the <link to="IMachine::saveSettings"/> call.
8917
8918 <h3>Smart Attachment</h3>
8919
8920 When normal base or immutable hard disks are indirectly attached to a
8921 virtual machine then some additional steps are performed to make sure the
8922 virtual machine will have the most recent "view" of the hard disk being
8923 attached. These steps include walking through the machine's snapshots
8924 starting from the current one and going through ancestors up to the first
8925 snapshot. Hard disks attached to the virtual machine in all
8926 of the encountered snapshots are checked whether they are descendants of
8927 the given normal base or immutable hard disk. The first found child (which
8928 is the differencing hard disk) will be used instead of the normal base or
8929 immutable hard disk as a parent for creating a new differencing hard disk
8930 that will be actually attached to the machine. And only if no descendants
8931 are found or if the virtual machine does not have any snapshots then the
8932 normal base or immutable hard disk will be used itself as a parent for
8933 this differencing hard disk.
8934
8935 It is easier to explain what smart attachment does using the
8936 following example:
8937 <pre>
8938BEFORE attaching B.vdi: AFTER attaching B.vdi:
8939
8940Snapshot 1 (B.vdi) Snapshot 1 (B.vdi)
8941 Snapshot 2 (D1->B.vdi) Snapshot 2 (D1->B.vdi)
8942 Snapshot 3 (D2->D1.vdi) Snapshot 3 (D2->D1.vdi)
8943 Snapshot 4 (none) Snapshot 4 (none)
8944 CurState (none) CurState (D3->D2.vdi)
8945
8946 NOT
8947 ...
8948 CurState (D3->B.vdi)
8949 </pre>
8950 The first column is the virtual machine configuration before the base hard
8951 disk <tt>B.vdi</tt> is attached, the second column shows the machine after
8952 this hard disk is attached. Constructs like <tt>D1->B.vdi</tt> and similar
8953 mean that the hard disk that is actually attached to the machine is a
8954 differencing hard disk, <tt>D1.vdi</tt>, which is linked to (based on)
8955 another hard disk, <tt>B.vdi</tt>.
8956
8957 As we can see from the example, the hard disk <tt>B.vdi</tt> was detached
8958 from the machine before taking Snapshot 4. Later, after Snapshot 4 was
8959 taken, the user decides to attach <tt>B.vdi</tt> again. <tt>B.vdi</tt> has
8960 dependent child hard disks (<tt>D1.vdi</tt>, <tt>D2.vdi</tt>), therefore
8961 it cannot be attached directly and needs an indirect attachment (i.e.
8962 implicit creation of a new differencing hard disk). Due to the smart
8963 attachment procedure, the new differencing hard disk
8964 (<tt>D3.vdi</tt>) will be based on <tt>D2.vdi</tt>, not on
8965 <tt>B.vdi</tt> itself, since <tt>D2.vdi</tt> is the most recent view of
8966 <tt>B.vdi</tt> existing for this snapshot branch of the given virtual
8967 machine.
8968
8969 Note that if there is more than one descendant hard disk of the given base
8970 hard disk found in a snapshot, and there is an exact device, channel and
8971 bus match, then this exact match will be used. Otherwise, the youngest
8972 descendant will be picked up.
8973
8974 There is one more important aspect of the smart attachment procedure which
8975 is not related to snapshots at all. Before walking through the snapshots
8976 as described above, the backup copy of the current list of hard disk
8977 attachment is searched for descendants. This backup copy is created when
8978 the hard disk configuration is changed for the first time after the last
8979 <link to="IMachine::saveSettings"/> call and used by
8980 <link to="IMachine::discardSettings"/> to undo the recent hard disk
8981 changes. When such a descendant is found in this backup copy, it will be
8982 simply re-attached back, without creating a new differencing hard disk for
8983 it. This optimization is necessary to make it possible to re-attach the
8984 base or immutable hard disk to a different bus, channel or device slot
8985 without losing the contents of the differencing hard disk actually
8986 attached to the machine in place of it.
8987 </desc>
8988
8989 <attribute name="id" type="uuid" mod="string" readonly="yes">
8990 <desc>
8991 UUID of the medium. For a newly created medium, this value is a randomly
8992 generated UUID.
8993
8994 <note>
8995 For media in one of MediumState_NotCreated, MediumState_Creating or
8996 MediumState_Deleting states, the value of this property is undefined
8997 and will most likely be an empty UUID.
8998 </note>
8999 </desc>
9000 </attribute>
9001
9002 <attribute name="description" type="wstring">
9003 <desc>
9004 Optional description of the medium. For a newly created medium the value
9005 of this attribute is an empty string.
9006
9007 Medium types that don't support this attribute will return E_NOTIMPL in
9008 attempt to get or set this attribute's value.
9009
9010 <note>
9011 For some storage types, reading this attribute may return an outdated
9012 (last known) value when <link to="#state"/> is <link
9013 to="MediumState_Inaccessible"/> or <link
9014 to="MediumState_LockedWrite"/> because the value of this attribute is
9015 stored within the storage unit itself. Also note that changing the
9016 attribute value is not possible in such case, as well as when the
9017 medium is the <link to="MediumState_LockedRead"/> state.
9018 </note>
9019 </desc>
9020 </attribute>
9021
9022 <attribute name="state" type="MediumState" readonly="yes">
9023 <desc>
9024 Returns the current medium state, which is the last state set by
9025 the accessibility check performed by <link to="#refreshState"/>.
9026 If that method has not yet been called on the medium, the state
9027 is "Inaccessible"; as opposed to truly inaccessible media, the
9028 value of <link to="#lastAccessError"/> will be an empty string in
9029 that case.
9030
9031 <note>As of version 3.1, this no longer performs an accessibility check
9032 automatically; call <link to="#refreshState"/> for that.
9033 </note>
9034 </desc>
9035 </attribute>
9036
9037 <attribute name="variant" type="MediumVariant" readonly="yes">
9038 <desc>
9039 Returns the storage format variant information for this medium.
9040 Before <link to="#refreshState"/> is called this method returns
9041 an undefined value.
9042 </desc>
9043 </attribute>
9044
9045 <attribute name="location" type="wstring">
9046 <desc>
9047 Location of the storage unit holding medium data.
9048
9049 The format of the location string is medium type specific. For medium
9050 types using regular files in a host's file system, the location
9051 string is the full file name.
9052
9053 Some medium types may support changing the storage unit location by
9054 simply changing the value of this property. If this operation is not
9055 supported, the implementation will return E_NOTIMPL in attempt to set
9056 this attribute's value.
9057
9058 When setting a value of the location attribute which is a regular file
9059 in the host's file system, the given file name may be either relative to
9060 the <link to="IVirtualBox::homeFolder">VirtualBox home folder</link> or
9061 absolute. Note that if the given location specification does not contain
9062 the file extension part then a proper default extension will be
9063 automatically appended by the implementation depending on the medium type.
9064 </desc>
9065 </attribute>
9066
9067 <attribute name="name" type="wstring" readonly="yes">
9068 <desc>
9069 Name of the storage unit holding medium data.
9070
9071 The returned string is a short version of the <link to="#location"/>
9072 attribute that is suitable for representing the medium in situations
9073 where the full location specification is too long (such as lists
9074 and comboboxes in GUI frontends). This string is also used by frontends
9075 to sort the media list alphabetically when needed.
9076
9077 For example, for locations that are regular files in the host's file
9078 system, the value of this attribute is just the file name (+ extension),
9079 without the path specification.
9080
9081 Note that as opposed to the <link to="#location"/> attribute, the name
9082 attribute will not necessary be unique for a list of media of the
9083 given type and format.
9084 </desc>
9085 </attribute>
9086
9087 <attribute name="deviceType" type="DeviceType" readonly="yes">
9088 <desc>Kind of device (DVD/Floppy/HardDisk) which is applicable to this
9089 medium.</desc>
9090 </attribute>
9091
9092 <attribute name="hostDrive" type="boolean" readonly="yes">
9093 <desc>True if this corresponds to a drive on the host.</desc>
9094 </attribute>
9095
9096 <attribute name="size" type="long long" readonly="yes">
9097 <desc>
9098 Physical size of the storage unit used to hold medium data (in bytes).
9099
9100 <note>
9101 For media whose <link to="#state"/> is <link
9102 to="MediumState_Inaccessible"/>, the value of this property is the
9103 last known size. For <link to="MediumState_NotCreated"/> media,
9104 the returned value is zero.
9105 </note>
9106 </desc>
9107 </attribute>
9108
9109 <attribute name="format" type="wstring" readonly="yes">
9110 <desc>
9111 Storage format of this medium.
9112
9113 The value of this attribute is a string that specifies a backend used
9114 to store medium data. The storage format is defined when you create a
9115 new medium or automatically detected when you open an existing medium,
9116 and cannot be changed later.
9117
9118 The list of all storage formats supported by this VirtualBox
9119 installation can be obtained using
9120 <link to="ISystemProperties::mediumFormats"/>.
9121 </desc>
9122 </attribute>
9123
9124 <attribute name="mediumFormat" type="IMediumFormat" readonly="yes">
9125 <desc>
9126 Storage medium format object corresponding to this medium.
9127
9128 The value of this attribute is a reference to the medium format object
9129 that specifies the backend properties used to store medium data. The
9130 storage format is defined when you create a new medium or automatically
9131 detected when you open an existing medium, and cannot be changed later.
9132
9133 <note>@c null is returned if there is no associated medium format
9134 object. This can e.g. happen for medium objects representing host
9135 drives and other special medium objects.</note>
9136 </desc>
9137 </attribute>
9138
9139 <attribute name="type" type="MediumType">
9140 <desc>
9141 Type (role) of this medium.
9142
9143 The following constraints apply when changing the value of this
9144 attribute:
9145 <ul>
9146 <li>If a medium is attached to a virtual machine (either in the
9147 current state or in one of the snapshots), its type cannot be
9148 changed.
9149 </li>
9150 <li>As long as the medium has children, its type cannot be set
9151 to <link to="MediumType_Writethrough"/>.
9152 </li>
9153 <li>The type of all differencing media is
9154 <link to="MediumType_Normal"/> and cannot be changed.
9155 </li>
9156 </ul>
9157
9158 The type of a newly created or opened medium is set to
9159 <link to="MediumType_Normal"/>, except for DVD and floppy media,
9160 which have a type of <link to="MediumType_Writethrough"/>.
9161 </desc>
9162 </attribute>
9163
9164 <attribute name="parent" type="IMedium" readonly="yes">
9165 <desc>
9166 Parent of this medium (the medium this medium is directly based
9167 on).
9168
9169 Only differencing media have parents. For base (non-differencing)
9170 media, @c null is returned.
9171 </desc>
9172 </attribute>
9173
9174 <attribute name="children" type="IMedium" safearray="yes" readonly="yes">
9175 <desc>
9176 Children of this medium (all differencing media directly based
9177 on this medium). A @c null array is returned if this medium
9178 does not have any children.
9179 </desc>
9180 </attribute>
9181
9182 <attribute name="base" type="IMedium" readonly="yes">
9183 <desc>
9184 Base medium of this medium.
9185
9186 If this is a differencing medium, its base medium is the medium
9187 the given medium branch starts from. For all other types of media, this
9188 property returns the medium object itself (i.e. the same object this
9189 property is read on).
9190 </desc>
9191 </attribute>
9192
9193 <attribute name="readOnly" type="boolean" readonly="yes">
9194 <desc>
9195 Returns @c true if this medium is read-only and @c false otherwise.
9196
9197 A medium is considered to be read-only when its contents cannot be
9198 modified without breaking the integrity of other parties that depend on
9199 this medium such as its child media or snapshots of virtual machines
9200 where this medium is attached to these machines. If there are no
9201 children and no such snapshots then there is no dependency and the
9202 medium is not read-only.
9203
9204 The value of this attribute can be used to determine the kind of the
9205 attachment that will take place when attaching this medium to a
9206 virtual machine. If the value is @c false then the medium will
9207 be attached directly. If the value is @c true then the medium
9208 will be attached indirectly by creating a new differencing child
9209 medium for that. See the interface description for more information.
9210
9211 Note that all <link to="MediumType_Immutable">Immutable</link> media
9212 are always read-only while all
9213 <link to="MediumType_Writethrough">Writethrough</link> media are
9214 always not.
9215
9216 <note>
9217 The read-only condition represented by this attribute is related to
9218 the medium type and usage, not to the current
9219 <link to="IMedium::state">medium state</link> and not to the read-only
9220 state of the storage unit.
9221 </note>
9222 </desc>
9223 </attribute>
9224
9225 <attribute name="logicalSize" type="long long" readonly="yes">
9226 <desc>
9227 Logical size of this medium (in bytes), as reported to the
9228 guest OS running inside the virtual machine this medium is
9229 attached to. The logical size is defined when the medium is created
9230 and cannot be changed later.
9231
9232 <note>
9233 Reading this property on a differencing medium will return the size
9234 of its <link to="#base"/> medium.
9235 </note>
9236 <note>
9237 For media whose state is <link to="#state"/> is <link
9238 to="MediumState_Inaccessible"/>, the value of this property is the
9239 last known logical size. For <link to="MediumState_NotCreated"/>
9240 media, the returned value is zero.
9241 </note>
9242 </desc>
9243 </attribute>
9244
9245 <attribute name="autoReset" type="boolean">
9246 <desc>
9247 Whether this differencing medium will be automatically reset each
9248 time a virtual machine it is attached to is powered up. This
9249 attribute is automatically set to @c true for the last
9250 differencing image of an "immutable" medium (see
9251 <link to="MediumType" />).
9252
9253 See <link to="#reset"/> for more information about resetting
9254 differencing media.
9255
9256 <note>
9257 Reading this property on a base (non-differencing) medium will
9258 always @c false. Changing the value of this property in this
9259 case is not supported.
9260 </note>
9261
9262 <result name="VBOX_E_NOT_SUPPORTED">
9263 This is not a differencing medium (when changing the attribute
9264 value).
9265 </result>
9266 </desc>
9267 </attribute>
9268
9269 <attribute name="lastAccessError" type="wstring" readonly="yes">
9270 <desc>
9271 Text message that represents the result of the last accessibility
9272 check performed by <link to="#refreshState"/>.
9273
9274 An empty string is returned if the last accessibility check
9275 was successful or has not yet been called. As a result, if
9276 <link to="#state" /> is "Inaccessible" and this attribute is empty,
9277 then <link to="#refreshState"/> has yet to be called; this is the
9278 default value of media after VirtualBox initialization.
9279 A non-empty string indicates a failure and should normally describe
9280 a reason of the failure (for example, a file read error).
9281 </desc>
9282 </attribute>
9283
9284 <attribute name="machineIds" type="uuid" mod="string" safearray="yes" readonly="yes">
9285 <desc>
9286 Array of UUIDs of all machines this medium is attached to.
9287
9288 A @c null array is returned if this medium is not attached to any
9289 machine or to any machine's snapshot.
9290
9291 <note>
9292 The returned array will include a machine even if this medium is not
9293 attached to that machine in the current state but attached to it in
9294 one of the machine's snapshots. See <link to="#getSnapshotIds"/> for
9295 details.
9296 </note>
9297 </desc>
9298 </attribute>
9299
9300 <method name="setIDs">
9301 <desc>
9302 Changes the UUID and parent UUID for a hard disk medium.
9303 </desc>
9304 <param name="setImageId" type="boolean" dir="in">
9305 <desc>
9306 Select whether a new image UUID is set or not.
9307 </desc>
9308 </param>
9309 <param name="imageId" type="uuid" mod="string" dir="in">
9310 <desc>
9311 New UUID for the image. If an empty string is passed, then a new
9312 UUID is automatically created, provided that @a setImageId is @c true.
9313 Specifying a zero UUID is not allowed.
9314 </desc>
9315 </param>
9316 <param name="setParentId" type="boolean" dir="in">
9317 <desc>
9318 Select whether a new parent UUID is set or not.
9319 </desc>
9320 </param>
9321 <param name="parentId" type="uuid" mod="string" dir="in">
9322 <desc>
9323 New parent UUID for the image. If an empty string is passed, then a
9324 new UUID is automatically created, provided @a setParentId is
9325 @c true. A zero UUID is valid.
9326 </desc>
9327 </param>
9328 <result name="E_INVALIDARG">
9329 Invalid parameter combination.
9330 </result>
9331 <result name="VBOX_E_NOT_SUPPORTED">
9332 Medium is not a hard disk medium.
9333 </result>
9334 </method>
9335
9336 <method name="refreshState">
9337 <desc>
9338 If the current medium state (see <link to="MediumState"/>) is one of
9339 "Created", "Inaccessible" or "LockedRead", then this performs an
9340 accessibility check on the medium and sets the value of the <link to="#state"/>
9341 attribute accordingly; that value is also returned for convenience.
9342
9343 For all other state values, this does not perform a refresh but returns
9344 the state only.
9345
9346 The refresh, if performed, may take a long time (several seconds or even
9347 minutes, depending on the storage unit location and format) because it performs an
9348 accessibility check of the storage unit. This check may cause a significant
9349 delay if the storage unit of the given medium is, for example, a file located
9350 on a network share which is not currently accessible due to connectivity
9351 problems. In that case, the call will not return until a timeout
9352 interval defined by the host OS for this operation expires. For this reason,
9353 it is recommended to never read this attribute on the main UI thread to avoid
9354 making the UI unresponsive.
9355
9356 If the last known state of the medium is "Created" and the accessibility
9357 check fails, then the state would be set to "Inaccessible", and
9358 <link to="#lastAccessError"/> may be used to get more details about the
9359 failure. If the state of the medium is "LockedRead", then it remains the
9360 same, and a non-empty value of <link to="#lastAccessError"/> will
9361 indicate a failed accessibility check in this case.
9362
9363 Note that not all medium states are applicable to all medium types.
9364 </desc>
9365 <param name="state" type="MediumState" dir="return">
9366 <desc>
9367 New medium state.
9368 </desc>
9369 </param>
9370 </method>
9371
9372 <method name="getSnapshotIds">
9373 <desc>
9374 Returns an array of UUIDs of all snapshots of the given machine where
9375 this medium is attached to.
9376
9377 If the medium is attached to the machine in the current state, then the
9378 first element in the array will always be the ID of the queried machine
9379 (i.e. the value equal to the @c machineId argument), followed by
9380 snapshot IDs (if any).
9381
9382 If the medium is not attached to the machine in the current state, then
9383 the array will contain only snapshot IDs.
9384
9385 The returned array may be @c null if this medium is not attached
9386 to the given machine at all, neither in the current state nor in one of
9387 the snapshots.
9388 </desc>
9389 <param name="machineId" type="uuid" mod="string" dir="in">
9390 <desc>
9391 UUID of the machine to query.
9392 </desc>
9393 </param>
9394 <param name="snapshotIds" type="uuid" mod="string" safearray="yes" dir="return">
9395 <desc>
9396 Array of snapshot UUIDs of the given machine using this medium.
9397 </desc>
9398 </param>
9399 </method>
9400
9401 <method name="lockRead">
9402 <desc>
9403 Locks this medium for reading.
9404
9405 A read lock is shared: many clients can simultaneously lock the
9406 same medium for reading unless it is already locked for writing (see
9407 <link to="#lockWrite"/>) in which case an error is returned.
9408
9409 When the medium is locked for reading, it cannot be modified
9410 from within VirtualBox. This means that any method that changes
9411 the properties of this medium or contents of the storage unit
9412 will return an error (unless explicitly stated otherwise). That
9413 includes an attempt to start a virtual machine that wants to
9414 write to the the medium.
9415
9416 When the virtual machine is started up, it locks for reading all
9417 media it uses in read-only mode. If some medium cannot be locked
9418 for reading, the startup procedure will fail.
9419 A medium is typically locked for reading while it is used by a running
9420 virtual machine but has a depending differencing image that receives
9421 the actual write operations. This way one base medium can have
9422 multiple child differencing images which can be written to
9423 simultaneously. Read-only media such as DVD and floppy images are
9424 also locked for reading only (so they can be in use by multiple
9425 machines simultaneously).
9426
9427 A medium is also locked for reading when it is the source of a
9428 write operation such as <link to="#cloneTo"/> or <link to="#mergeTo"/>.
9429
9430 The medium locked for reading must be unlocked using the <link
9431 to="#unlockRead"/> method. Calls to <link to="#lockRead"/>
9432 can be nested and must be followed by the same number of paired
9433 <link to="#unlockRead"/> calls.
9434
9435 This method sets the medium state (see <link to="#state"/>) to
9436 "LockedRead" on success. The medium's previous state must be
9437 one of "Created", "Inaccessible" or "LockedRead".
9438
9439 Locking an inaccessible medium is not an error; this method performs
9440 a logical lock that prevents modifications of this medium through
9441 the VirtualBox API, not a physical file-system lock of the underlying
9442 storage unit.
9443
9444 This method returns the current state of the medium
9445 <i>before</i> the operation.
9446
9447 <result name="VBOX_E_INVALID_OBJECT_STATE">
9448 Invalid medium state (e.g. not created, locked, inaccessible,
9449 creating, deleting).
9450 </result>
9451
9452 </desc>
9453 <param name="state" type="MediumState" dir="return">
9454 <desc>
9455 State of the medium after the operation.
9456 </desc>
9457 </param>
9458 </method>
9459
9460 <method name="unlockRead">
9461 <desc>
9462 Cancels the read lock previously set by <link to="#lockRead"/>.
9463
9464 For both success and failure, this method returns the current state
9465 of the medium <i>after</i> the operation.
9466
9467 See <link to="#lockRead"/> for more details.
9468
9469 <result name="VBOX_E_INVALID_OBJECT_STATE">
9470 Medium not locked for reading.
9471 </result>
9472
9473 </desc>
9474 <param name="state" type="MediumState" dir="return">
9475 <desc>
9476 State of the medium after the operation.
9477 </desc>
9478 </param>
9479 </method>
9480
9481 <method name="lockWrite">
9482 <desc>
9483 Locks this medium for writing.
9484
9485 A write lock, as opposed to <link to="#lockRead"/>, is
9486 exclusive: there may be only one client holding a write lock,
9487 and there may be no read locks while the write lock is held.
9488 As a result, read-locking fails if a write lock is held, and
9489 write-locking fails if either a read or another write lock is held.
9490
9491 When a medium is locked for writing, it cannot be modified
9492 from within VirtualBox, and it is not guaranteed that the values
9493 of its properties are up-to-date. Any method that changes the
9494 properties of this medium or contents of the storage unit will
9495 return an error (unless explicitly stated otherwise).
9496
9497 When a virtual machine is started up, it locks for writing all
9498 media it uses to write data to. If any medium could not be locked
9499 for writing, the startup procedure will fail. If a medium has
9500 differencing images, then while the machine is running, only
9501 the last ("leaf") differencing image is locked for writing,
9502 whereas its parents are locked for reading only.
9503
9504 A medium is also locked for writing when it is the target of a
9505 write operation such as <link to="#cloneTo"/> or <link to="#mergeTo"/>.
9506
9507 The medium locked for writing must be unlocked using the <link
9508 to="#unlockWrite"/> method. Write locks <i>cannot</i> be nested.
9509
9510 This method sets the medium state (see <link to="#state"/>) to
9511 "LockedWrite" on success. The medium's previous state must be
9512 either "Created" or "Inaccessible".
9513
9514 Locking an inaccessible medium is not an error; this method performs
9515 a logical lock that prevents modifications of this medium through
9516 the VirtualBox API, not a physical file-system lock of the underlying
9517 storage unit.
9518
9519 For both, success and failure, this method returns the current
9520 state of the medium <i>before</i> the operation.
9521
9522 <result name="VBOX_E_INVALID_OBJECT_STATE">
9523 Invalid medium state (e.g. not created, locked, inaccessible,
9524 creating, deleting).
9525 </result>
9526
9527 </desc>
9528 <param name="state" type="MediumState" dir="return">
9529 <desc>
9530 State of the medium after the operation.
9531 </desc>
9532 </param>
9533 </method>
9534
9535 <method name="unlockWrite">
9536 <desc>
9537 Cancels the write lock previously set by <link to="#lockWrite"/>.
9538
9539 For both success and failure, this method returns the current
9540 state of the medium <i>after</i> the operation.
9541
9542 See <link to="#lockWrite"/> for more details.
9543
9544 <result name="VBOX_E_INVALID_OBJECT_STATE">
9545 Medium not locked for writing.
9546 </result>
9547
9548 </desc>
9549 <param name="state" type="MediumState" dir="return">
9550 <desc>
9551 State of the medium after the operation.
9552 </desc>
9553 </param>
9554 </method>
9555
9556 <method name="close">
9557 <desc>
9558 Closes this medium.
9559
9560 The medium must not be attached to any known virtual machine
9561 and must not have any known child media, otherwise the
9562 operation will fail.
9563
9564 When the medium is successfully closed, it is removed from
9565 the list of registered media, but its storage unit is not
9566 deleted. In particular, this means that this medium can
9567 later be opened again using the <link to="IVirtualBox::openMedium"/>
9568 call.
9569
9570 Note that after this method successfully returns, the given medium
9571 object becomes uninitialized. This means that any attempt
9572 to call any of its methods or attributes will fail with the
9573 <tt>"Object not ready" (E_ACCESSDENIED)</tt> error.
9574
9575 <result name="VBOX_E_INVALID_OBJECT_STATE">
9576 Invalid medium state (other than not created, created or
9577 inaccessible).
9578 </result>
9579 <result name="VBOX_E_OBJECT_IN_USE">
9580 Medium attached to virtual machine.
9581 </result>
9582 <result name="VBOX_E_FILE_ERROR">
9583 Settings file not accessible.
9584 </result>
9585 <result name="VBOX_E_XML_ERROR">
9586 Could not parse the settings file.
9587 </result>
9588
9589 </desc>
9590 </method>
9591
9592 <!-- storage methods -->
9593
9594 <method name="getProperty">
9595 <desc>
9596 Returns the value of the custom medium property with the given name.
9597
9598 The list of all properties supported by the given medium format can
9599 be obtained with <link to="IMediumFormat::describeProperties"/>.
9600
9601 Note that if this method returns an empty string in @a value, the
9602 requested property is supported but currently not assigned any value.
9603
9604 <result name="VBOX_E_OBJECT_NOT_FOUND">
9605 Requested property does not exist (not supported by the format).
9606 </result>
9607 <result name="E_INVALIDARG">@a name is @c null or empty.</result>
9608 </desc>
9609 <param name="name" type="wstring" dir="in">
9610 <desc>Name of the property to get.</desc>
9611 </param>
9612 <param name="value" type="wstring" dir="return">
9613 <desc>Current property value.</desc>
9614 </param>
9615 </method>
9616
9617 <method name="setProperty">
9618 <desc>
9619 Sets the value of the custom medium property with the given name.
9620
9621 The list of all properties supported by the given medium format can
9622 be obtained with <link to="IMediumFormat::describeProperties"/>.
9623
9624 Note that setting the property value to @c null or an empty string is
9625 equivalent to deleting the existing value. A default value (if it is
9626 defined for this property) will be used by the format backend in this
9627 case.
9628
9629 <result name="VBOX_E_OBJECT_NOT_FOUND">
9630 Requested property does not exist (not supported by the format).
9631 </result>
9632 <result name="E_INVALIDARG">@a name is @c null or empty.</result>
9633 </desc>
9634 <param name="name" type="wstring" dir="in">
9635 <desc>Name of the property to set.</desc>
9636 </param>
9637 <param name="value" type="wstring" dir="in">
9638 <desc>Property value to set.</desc>
9639 </param>
9640 </method>
9641
9642 <method name="getProperties">
9643 <desc>
9644 Returns values for a group of properties in one call.
9645
9646 The names of the properties to get are specified using the @a names
9647 argument which is a list of comma-separated property names or
9648 an empty string if all properties are to be returned. Note that currently
9649 the value of this argument is ignored and the method always returns all
9650 existing properties.
9651
9652 The list of all properties supported by the given medium format can
9653 be obtained with <link to="IMediumFormat::describeProperties"/>.
9654
9655 The method returns two arrays, the array of property names corresponding
9656 to the @a names argument and the current values of these properties.
9657 Both arrays have the same number of elements with each elemend at the
9658 given index in the first array corresponds to an element at the same
9659 index in the second array.
9660
9661 Note that for properties that do not have assigned values,
9662 an empty string is returned at the appropriate index in the
9663 @a returnValues array.
9664
9665 </desc>
9666 <param name="names" type="wstring" dir="in">
9667 <desc>
9668 Names of properties to get.
9669 </desc>
9670 </param>
9671 <param name="returnNames" type="wstring" safearray="yes" dir="out">
9672 <desc>Names of returned properties.</desc>
9673 </param>
9674 <param name="returnValues" type="wstring" safearray="yes" dir="return">
9675 <desc>Values of returned properties.</desc>
9676 </param>
9677 </method>
9678
9679 <method name="setProperties">
9680 <desc>
9681 Sets values for a group of properties in one call.
9682
9683 The names of the properties to set are passed in the @a names
9684 array along with the new values for them in the @a values array. Both
9685 arrays have the same number of elements with each elemend at the given
9686 index in the first array corresponding to an element at the same index
9687 in the second array.
9688
9689 If there is at least one property name in @a names that is not valid,
9690 the method will fail before changing the values of any other properties
9691 from the @a names array.
9692
9693 Using this method over <link to="#setProperty"/> is preferred if you
9694 need to set several properties at once since it will result into less
9695 IPC calls.
9696
9697 The list of all properties supported by the given medium format can
9698 be obtained with <link to="IMediumFormat::describeProperties"/>.
9699
9700 Note that setting the property value to @c null or an empty string is
9701 equivalent to deleting the existing value. A default value (if it is
9702 defined for this property) will be used by the format backend in this
9703 case.
9704 </desc>
9705 <param name="names" type="wstring" safearray="yes" dir="in">
9706 <desc>Names of properties to set.</desc>
9707 </param>
9708 <param name="values" type="wstring" safearray="yes" dir="in">
9709 <desc>Values of properties to set.</desc>
9710 </param>
9711 </method>
9712
9713 <!-- storage methods -->
9714
9715 <method name="createBaseStorage">
9716 <desc>
9717 Starts creating a hard disk storage unit (fixed/dynamic, according
9718 to the variant flags) in in the background. The previous storage unit
9719 created for this object, if any, must first be deleted using
9720 <link to="#deleteStorage"/>, otherwise the operation will fail.
9721
9722 Before the operation starts, the medium is placed in
9723 <link to="MediumState_Creating"/> state. If the create operation
9724 fails, the medium will be placed back in <link to="MediumState_NotCreated"/>
9725 state.
9726
9727 After the returned progress object reports that the operation has
9728 successfully completed, the medium state will be set to <link
9729 to="MediumState_Created"/>, the medium will be remembered by this
9730 VirtualBox installation and may be attached to virtual machines.
9731
9732 <result name="VBOX_E_NOT_SUPPORTED">
9733 The variant of storage creation operation is not supported. See <link
9734 to="IMediumFormat::capabilities"/>.
9735 </result>
9736 </desc>
9737 <param name="logicalSize" type="long long" dir="in">
9738 <desc>Maximum logical size of the medium in bytes.</desc>
9739 </param>
9740 <param name="variant" type="MediumVariant" dir="in">
9741 <desc>Exact image variant which should be created.</desc>
9742 </param>
9743 <param name="progress" type="IProgress" dir="return">
9744 <desc>Progress object to track the operation completion.</desc>
9745 </param>
9746 </method>
9747
9748 <method name="deleteStorage">
9749 <desc>
9750 Starts deleting the storage unit of this medium.
9751
9752 The medium must not be attached to any known virtual machine and must
9753 not have any known child media, otherwise the operation will fail.
9754 It will also fail if there is no storage unit to delete or if deletion
9755 is already in progress, or if the medium is being in use (locked for
9756 read or for write) or inaccessible. Therefore, the only valid state for
9757 this operation to succeed is <link to="MediumState_Created"/>.
9758
9759 Before the operation starts, the medium is placed in
9760 <link to="MediumState_Deleting"/> state and gets removed from the list
9761 of remembered hard disks (media registry). If the delete operation
9762 fails, the medium will be remembered again and placed back to
9763 <link to="MediumState_Created"/> state.
9764
9765 After the returned progress object reports that the operation is
9766 complete, the medium state will be set to
9767 <link to="MediumState_NotCreated"/> and you will be able to use one of
9768 the storage creation methods to create it again.
9769
9770 <see>#close()</see>
9771
9772 <result name="VBOX_E_OBJECT_IN_USE">
9773 Medium is attached to a virtual machine.
9774 </result>
9775 <result name="VBOX_E_NOT_SUPPORTED">
9776 Storage deletion is not allowed because neither of storage creation
9777 operations are supported. See
9778 <link to="IMediumFormat::capabilities"/>.
9779 </result>
9780
9781 <note>
9782 If the deletion operation fails, it is not guaranteed that the storage
9783 unit still exists. You may check the <link to="IMedium::state"/> value
9784 to answer this question.
9785 </note>
9786 </desc>
9787 <param name="progress" type="IProgress" dir="return">
9788 <desc>Progress object to track the operation completion.</desc>
9789 </param>
9790 </method>
9791
9792 <!-- diff methods -->
9793
9794 <method name="createDiffStorage">
9795 <desc>
9796 Starts creating an empty differencing storage unit based on this
9797 medium in the format and at the location defined by the @a target
9798 argument.
9799
9800 The target medium must be in <link to="MediumState_NotCreated"/>
9801 state (i.e. must not have an existing storage unit). Upon successful
9802 completion, this operation will set the type of the target medium to
9803 <link to="MediumType_Normal"/> and create a storage unit necessary to
9804 represent the differencing medium data in the given format (according
9805 to the storage format of the target object).
9806
9807 After the returned progress object reports that the operation is
9808 successfully complete, the target medium gets remembered by this
9809 VirtualBox installation and may be attached to virtual machines.
9810
9811 <note>
9812 The medium will be set to <link to="MediumState_LockedRead"/>
9813 state for the duration of this operation.
9814 </note>
9815 <result name="VBOX_E_OBJECT_IN_USE">
9816 Medium not in @c NotCreated state.
9817 </result>
9818 </desc>
9819 <param name="target" type="IMedium" dir="in">
9820 <desc>Target medium.</desc>
9821 </param>
9822 <param name="variant" type="MediumVariant" dir="in">
9823 <desc>Exact image variant which should be created.</desc>
9824 </param>
9825 <param name="progress" type="IProgress" dir="return">
9826 <desc>Progress object to track the operation completion.</desc>
9827 </param>
9828 </method>
9829
9830 <method name="mergeTo">
9831 <desc>
9832 Starts merging the contents of this medium and all intermediate
9833 differencing media in the chain to the given target medium.
9834
9835 The target medium must be either a descendant of this medium or
9836 its ancestor (otherwise this method will immediately return a failure).
9837 It follows that there are two logical directions of the merge operation:
9838 from ancestor to descendant (<i>forward merge</i>) and from descendant to
9839 ancestor (<i>backward merge</i>). Let us consider the following medium
9840 chain:
9841
9842 <pre>Base &lt;- Diff_1 &lt;- Diff_2</pre>
9843
9844 Here, calling this method on the <tt>Base</tt> medium object with
9845 <tt>Diff_2</tt> as an argument will be a forward merge; calling it on
9846 <tt>Diff_2</tt> with <tt>Base</tt> as an argument will be a backward
9847 merge. Note that in both cases the contents of the resulting medium
9848 will be the same, the only difference is the medium object that takes
9849 the result of the merge operation. In case of the forward merge in the
9850 above example, the result will be written to <tt>Diff_2</tt>; in case of
9851 the backward merge, the result will be written to <tt>Base</tt>. In
9852 other words, the result of the operation is always stored in the target
9853 medium.
9854
9855 Upon successful operation completion, the storage units of all media in
9856 the chain between this (source) medium and the target medium, including
9857 the source medium itself, will be automatically deleted and the
9858 relevant medium objects (including this medium) will become
9859 uninitialized. This means that any attempt to call any of
9860 their methods or attributes will fail with the
9861 <tt>"Object not ready" (E_ACCESSDENIED)</tt> error. Applied to the above
9862 example, the forward merge of <tt>Base</tt> to <tt>Diff_2</tt> will
9863 delete and uninitialize both <tt>Base</tt> and <tt>Diff_1</tt> media.
9864 Note that <tt>Diff_2</tt> in this case will become a base medium
9865 itself since it will no longer be based on any other medium.
9866
9867 Considering the above, all of the following conditions must be met in
9868 order for the merge operation to succeed:
9869 <ul>
9870 <li>
9871 Neither this (source) medium nor any intermediate
9872 differencing medium in the chain between it and the target
9873 medium is attached to any virtual machine.
9874 </li>
9875 <li>
9876 Neither the source medium nor the target medium is an
9877 <link to="MediumType_Immutable"/> medium.
9878 </li>
9879 <li>
9880 The part of the medium tree from the source medium to the
9881 target medium is a linear chain, i.e. all medium in this
9882 chain have exactly one child which is the next medium in this
9883 chain. The only exception from this rule is the target medium in
9884 the forward merge operation; it is allowed to have any number of
9885 child media because the merge operation will not change its
9886 logical contents (as it is seen by the guest OS or by children).
9887 </li>
9888 <li>
9889 None of the involved media are in
9890 <link to="MediumState_LockedRead"/> or
9891 <link to="MediumState_LockedWrite"/> state.
9892 </li>
9893 </ul>
9894
9895 <note>
9896 This (source) medium and all intermediates will be placed to <link
9897 to="MediumState_Deleting"/> state and the target medium will be
9898 placed to <link to="MediumState_LockedWrite"/> state and for the
9899 duration of this operation.
9900 </note>
9901 </desc>
9902 <param name="target" type="IMedium" dir="in">
9903 <desc>Target medium.</desc>
9904 </param>
9905 <param name="progress" type="IProgress" dir="return">
9906 <desc>Progress object to track the operation completion.</desc>
9907 </param>
9908 </method>
9909
9910 <!-- clone method -->
9911
9912 <method name="cloneTo">
9913 <desc>
9914 Starts creating a clone of this medium in the format and at the
9915 location defined by the @a target argument.
9916
9917 The target medium must be either in <link to="MediumState_NotCreated"/>
9918 state (i.e. must not have an existing storage unit) or in
9919 <link to="MediumState_Created"/> state (i.e. created and not locked, and
9920 big enough to hold the data or else the copy will be partial). Upon
9921 successful completion, the cloned medium will contain exactly the
9922 same sector data as the medium being cloned, except that in the
9923 first case a new UUID for the clone will be randomly generated, and in
9924 the second case the UUID will remain unchanged.
9925
9926 The @a parent argument defines which medium will be the parent
9927 of the clone. Passing a @c null reference indicates that the clone will
9928 be a base image, i.e. completely independent. It is possible to specify
9929 an arbitrary medium for this parameter, including the parent of the
9930 medium which is being cloned. Even cloning to a child of the source
9931 medium is possible. Note that when cloning to an existing image, the
9932 @a parent irgument is ignored.
9933
9934 After the returned progress object reports that the operation is
9935 successfully complete, the target medium gets remembered by this
9936 VirtualBox installation and may be attached to virtual machines.
9937
9938 <note>
9939 This medium will be placed to <link to="MediumState_LockedRead"/>
9940 state for the duration of this operation.
9941 </note>
9942 <result name="E_NOTIMPL">
9943 The specified cloning variant is not supported at the moment.
9944 </result>
9945 </desc>
9946 <param name="target" type="IMedium" dir="in">
9947 <desc>Target medium.</desc>
9948 </param>
9949 <param name="variant" type="MediumVariant" dir="in">
9950 <desc>Exact image variant which should be created.</desc>
9951 </param>
9952 <param name="parent" type="IMedium" dir="in">
9953 <desc>Parent of the cloned medium.</desc>
9954 </param>
9955 <param name="progress" type="IProgress" dir="return">
9956 <desc>Progress object to track the operation completion.</desc>
9957 </param>
9958 </method>
9959
9960 <!-- other methods -->
9961
9962 <method name="compact">
9963 <desc>
9964 Starts compacting of this medium. This means that the medium is
9965 transformed into a possibly more compact storage representation.
9966 This potentially creates temporary images, which can require a
9967 substantial amount of additional disk space.
9968
9969 This medium will be placed to <link to="MediumState_LockedWrite"/>
9970 state and all its parent media (if any) will be placed to
9971 <link to="MediumState_LockedRead"/> state for the duration of this
9972 operation.
9973
9974 Please note that the results can be either returned straight away,
9975 or later as the result of the background operation via the object
9976 returned via the @a progress parameter.
9977
9978 <result name="VBOX_E_NOT_SUPPORTED">
9979 Medium format does not support compacting (but potentially
9980 needs it).
9981 </result>
9982 </desc>
9983 <param name="progress" type="IProgress" dir="return">
9984 <desc>Progress object to track the operation completion.</desc>
9985 </param>
9986 </method>
9987
9988 <method name="resize">
9989 <desc>
9990 Starts resizing this medium. This means that the nominal size of the
9991 medium is set to the new value. Both increasing and decreasing the
9992 size is possible, and there are no safety checks, since VirtualBox
9993 does not make any assumptions about the medium contents.
9994
9995 Resizing usually needs additional disk space, and possibly also
9996 some temporary disk space. Note that resize does not create a full
9997 temporary copy of the medium, so the additional disk space requirement
9998 is usually much lower than using the clone operation.
9999
10000 This medium will be placed to <link to="MediumState_LockedWrite"/>
10001 state for the duration of this operation.
10002
10003 Please note that the results can be either returned straight away,
10004 or later as the result of the background operation via the object
10005 returned via the @a progress parameter.
10006
10007 <result name="VBOX_E_NOT_SUPPORTED">
10008 Medium format does not support resizing.
10009 </result>
10010 </desc>
10011 <param name="logicalSize" type="long long" dir="in">
10012 <desc>New nominal capacity of the medium in bytes.</desc>
10013 </param>
10014 <param name="progress" type="IProgress" dir="return">
10015 <desc>Progress object to track the operation completion.</desc>
10016 </param>
10017 </method>
10018
10019 <method name="reset">
10020 <desc>
10021 Starts erasing the contents of this differencing medium.
10022
10023 This operation will reset the differencing medium to its initial
10024 state when it does not contain any sector data and any read operation is
10025 redirected to its parent medium. This automatically gets called
10026 during VM power-up for every medium whose <link to="#autoReset" />
10027 attribute is @c true.
10028
10029 The medium will be write-locked for the duration of this operation (see
10030 <link to="#lockWrite" />).
10031
10032 <result name="VBOX_E_NOT_SUPPORTED">
10033 This is not a differencing medium.
10034 </result>
10035 <result name="VBOX_E_INVALID_OBJECT_STATE">
10036 Medium is not in <link to="MediumState_Created"/> or
10037 <link to="MediumState_Inaccessible"/> state.
10038 </result>
10039 </desc>
10040 <param name="progress" type="IProgress" dir="return">
10041 <desc>Progress object to track the operation completion.</desc>
10042 </param>
10043 </method>
10044
10045 </interface>
10046
10047
10048 <!--
10049 // IMediumFormat
10050 /////////////////////////////////////////////////////////////////////////
10051 -->
10052
10053 <enum
10054 name="DataType"
10055 uuid="d90ea51e-a3f1-4a01-beb1-c1723c0d3ba7"
10056 >
10057 <const name="Int32" value="0"/>
10058 <const name="Int8" value="1"/>
10059 <const name="String" value="2"/>
10060 </enum>
10061
10062 <enum
10063 name="DataFlags"
10064 uuid="86884dcf-1d6b-4f1b-b4bf-f5aa44959d60"
10065 >
10066 <const name="None" value="0x00"/>
10067 <const name="Mandatory" value="0x01"/>
10068 <const name="Expert" value="0x02"/>
10069 <const name="Array" value="0x04"/>
10070 <const name="FlagMask" value="0x07"/>
10071 </enum>
10072
10073 <enum
10074 name="MediumFormatCapabilities"
10075 uuid="7342ba79-7ce0-4d94-8f86-5ed5a185d9bd"
10076 >
10077 <desc>
10078 Medium format capability flags.
10079 </desc>
10080
10081 <const name="Uuid" value="0x01">
10082 <desc>
10083 Supports UUIDs as expected by VirtualBox code.
10084 </desc>
10085 </const>
10086
10087 <const name="CreateFixed" value="0x02">
10088 <desc>
10089 Supports creating fixed size images, allocating all space instantly.
10090 </desc>
10091 </const>
10092
10093 <const name="CreateDynamic" value="0x04">
10094 <desc>
10095 Supports creating dynamically growing images, allocating space on
10096 demand.
10097 </desc>
10098 </const>
10099
10100 <const name="CreateSplit2G" value="0x08">
10101 <desc>
10102 Supports creating images split in chunks of a bit less than 2 GBytes.
10103 </desc>
10104 </const>
10105
10106 <const name="Differencing" value="0x10">
10107 <desc>
10108 Supports being used as a format for differencing media (see <link
10109 to="IMedium::createDiffStorage"/>).
10110 </desc>
10111 </const>
10112
10113 <const name="Asynchronous" value="0x20">
10114 <desc>
10115 Supports asynchronous I/O operations for at least some configurations.
10116 </desc>
10117 </const>
10118
10119 <const name="File" value="0x40">
10120 <desc>
10121 The format backend operates on files (the <link to="IMedium::location"/>
10122 attribute of the medium specifies a file used to store medium
10123 data; for a list of supported file extensions see
10124 <link to="IMediumFormat::describeFileExtensions"/>).
10125 </desc>
10126 </const>
10127
10128 <const name="Properties" value="0x80">
10129 <desc>
10130 The format backend uses the property interface to configure the storage
10131 location and properties (the <link to="IMediumFormat::describeProperties"/>
10132 method is used to get access to properties supported by the given medium format).
10133 </desc>
10134 </const>
10135
10136 <const name="TcpNetworking" value="0x100">
10137 <desc>
10138 The format backend uses the TCP networking interface for network access.
10139 </desc>
10140 </const>
10141
10142 <const name="VFS" value="0x200">
10143 <desc>
10144 The format backend supports virtual filesystem functionality.
10145 </desc>
10146 </const>
10147
10148 <const name="CapabilityMask" value="0x3FF"/>
10149 </enum>
10150
10151 <interface
10152 name="IMediumFormat" extends="$unknown"
10153 uuid="4e9a873f-0599-434a-8345-619ef3fb3111"
10154 wsmap="managed"
10155 >
10156 <desc>
10157 The IMediumFormat interface represents a medium format.
10158
10159 Each medium format has an associated backend which is used to handle
10160 media stored in this format. This interface provides information
10161 about the properties of the associated backend.
10162
10163 Each medium format is identified by a string represented by the
10164 <link to="#id"/> attribute. This string is used in calls like
10165 <link to="IVirtualBox::createHardDisk"/> to specify the desired
10166 format.
10167
10168 The list of all supported medium formats can be obtained using
10169 <link to="ISystemProperties::mediumFormats"/>.
10170
10171 <see>IMedium</see>
10172 </desc>
10173
10174 <attribute name="id" type="wstring" readonly="yes">
10175 <desc>
10176 Identifier of this format.
10177
10178 The format identifier is a non-@c null non-empty ASCII string. Note that
10179 this string is case-insensitive. This means that, for example, all of
10180 the following strings:
10181 <pre>
10182 "VDI"
10183 "vdi"
10184 "VdI"</pre>
10185 refer to the same medium format.
10186
10187 This string is used in methods of other interfaces where it is necessary
10188 to specify a medium format, such as
10189 <link to="IVirtualBox::createHardDisk"/>.
10190 </desc>
10191 </attribute>
10192
10193 <attribute name="name" type="wstring" readonly="yes">
10194 <desc>
10195 Human readable description of this format.
10196
10197 Mainly for use in file open dialogs.
10198 </desc>
10199 </attribute>
10200
10201 <attribute name="capabilities" type="unsigned long" readonly="yes">
10202 <desc>
10203 Capabilities of the format as a set of bit flags.
10204
10205 For the meaning of individual capability flags see
10206 <link to="MediumFormatCapabilities"/>.
10207 </desc>
10208 </attribute>
10209
10210 <method name="describeFileExtensions">
10211 <desc>
10212 Returns two arrays describing the supported file extensions.
10213
10214 The first array contains the supported extensions and the seconds one
10215 the type each extension supports. Both have the same size.
10216
10217 Note that some backends do not work on files, so this array may be
10218 empty.
10219
10220 <see>IMediumFormat::capabilities</see>
10221 </desc>
10222 <param name="extensions" type="wstring" safearray="yes" dir="out">
10223 <desc>The array of supported extensions.</desc>
10224 </param>
10225 <param name="type" type="DeviceType" safearray="yes" dir="out">
10226 <desc>The array which indicates the device type for every given extension.</desc>
10227 </param>
10228 </method>
10229
10230 <method name="describeProperties">
10231 <desc>
10232 Returns several arrays describing the properties supported by this
10233 format.
10234
10235 An element with the given index in each array describes one
10236 property. Thus, the number of elements in each returned array is the
10237 same and corresponds to the number of supported properties.
10238
10239 The returned arrays are filled in only if the
10240 <link to="MediumFormatCapabilities_Properties"/> flag is set.
10241 All arguments must be non-@c null.
10242
10243 <see>DataType</see>
10244 <see>DataFlags</see>
10245 </desc>
10246
10247 <param name="names" type="wstring" safearray="yes" dir="out">
10248 <desc>Array of property names.</desc>
10249 </param>
10250 <param name="description" type="wstring" safearray="yes" dir="out">
10251 <desc>Array of property descriptions.</desc>
10252 </param>
10253 <param name="types" type="DataType" safearray="yes" dir="out">
10254 <desc>Array of property types.</desc>
10255 </param>
10256 <param name="flags" type="unsigned long" safearray="yes" dir="out">
10257 <desc>Array of property flags.</desc>
10258 </param>
10259 <param name="defaults" type="wstring" safearray="yes" dir="out">
10260 <desc>Array of default property values.</desc>
10261 </param>
10262 </method>
10263
10264 </interface>
10265
10266
10267 <!--
10268 // IKeyboard
10269 /////////////////////////////////////////////////////////////////////////
10270 -->
10271
10272 <interface
10273 name="IKeyboard" extends="$unknown"
10274 uuid="f6916ec5-a881-4237-898f-7de58cf88672"
10275 wsmap="managed"
10276 >
10277 <desc>
10278 The IKeyboard interface represents the virtual machine's keyboard. Used
10279 in <link to="IConsole::keyboard"/>.
10280
10281 Use this interface to send keystrokes or the Ctrl-Alt-Del sequence
10282 to the virtual machine.
10283
10284 </desc>
10285 <method name="putScancode">
10286 <desc>Sends a scancode to the keyboard.
10287
10288 <result name="VBOX_E_IPRT_ERROR">
10289 Could not send scan code to virtual keyboard.
10290 </result>
10291
10292 </desc>
10293 <param name="scancode" type="long" dir="in"/>
10294 </method>
10295
10296 <method name="putScancodes">
10297 <desc>Sends an array of scancodes to the keyboard.
10298
10299 <result name="VBOX_E_IPRT_ERROR">
10300 Could not send all scan codes to virtual keyboard.
10301 </result>
10302
10303 </desc>
10304 <param name="scancodes" type="long" dir="in" safearray="yes"/>
10305 <param name="codesStored" type="unsigned long" dir="return"/>
10306 </method>
10307
10308 <method name="putCAD">
10309 <desc>Sends the Ctrl-Alt-Del sequence to the keyboard. This
10310 function is nothing special, it is just a convenience function
10311 calling <link to="IKeyboard::putScancodes"/> with the proper scancodes.
10312
10313 <result name="VBOX_E_IPRT_ERROR">
10314 Could not send all scan codes to virtual keyboard.
10315 </result>
10316
10317 </desc>
10318 </method>
10319
10320 <attribute name="eventSource" type="IEventSource" readonly="yes">
10321 <desc>
10322 Event source for keyboard events.
10323 </desc>
10324 </attribute>
10325
10326 </interface>
10327
10328
10329 <!--
10330 // IMouse
10331 /////////////////////////////////////////////////////////////////////////
10332 -->
10333
10334 <enum
10335 name="MouseButtonState"
10336 uuid="9ee094b8-b28a-4d56-a166-973cb588d7f8"
10337 >
10338 <desc>
10339 Mouse button state.
10340 </desc>
10341
10342 <const name="LeftButton" value="0x01"/>
10343 <const name="RightButton" value="0x02"/>
10344 <const name="MiddleButton" value="0x04"/>
10345 <const name="WheelUp" value="0x08"/>
10346 <const name="WheelDown" value="0x10"/>
10347 <const name="XButton1" value="0x20"/>
10348 <const name="XButton2" value="0x40"/>
10349 <const name="MouseStateMask" value="0x7F"/>
10350 </enum>
10351
10352 <interface
10353 name="IMouse" extends="$unknown"
10354 uuid="05044a52-7811-4f00-ae3a-0ab7ff707b10"
10355 wsmap="managed"
10356 >
10357 <desc>
10358 The IMouse interface represents the virtual machine's mouse. Used in
10359 <link to="IConsole::mouse"/>.
10360
10361 Through this interface, the virtual machine's virtual mouse can be
10362 controlled.
10363 </desc>
10364
10365 <attribute name="absoluteSupported" type="boolean" readonly="yes">
10366 <desc>
10367 Whether the guest OS supports absolute mouse pointer positioning
10368 or not.
10369 <note>
10370 You can use the <link to="IMouseCapabilityChangedEvent"/>
10371 event to be instantly informed about changes of this attribute
10372 during virtual machine execution.
10373 </note>
10374 <see><link to="#putMouseEventAbsolute"/></see>
10375 </desc>
10376 </attribute>
10377
10378 <attribute name="relativeSupported" type="boolean" readonly="yes">
10379 <desc>
10380 Whether the guest OS supports relative mouse pointer positioning
10381 or not.
10382 <note>
10383 You can use the <link to="IMouseCapabilityChangedEvent"/>
10384 event to be instantly informed about changes of this attribute
10385 during virtual machine execution.
10386 </note>
10387 <see><link to="#putMouseEvent"/></see>
10388 </desc>
10389 </attribute>
10390
10391 <attribute name="needsHostCursor" type="boolean" readonly="yes">
10392 <desc>
10393 Whether the guest OS can currently switch to drawing it's own mouse
10394 cursor on demand.
10395 <note>
10396 You can use the <link to="IMouseCapabilityChangedEvent"/>
10397 event to be instantly informed about changes of this attribute
10398 during virtual machine execution.
10399 </note>
10400 <see><link to="#putMouseEvent"/></see>
10401 </desc>
10402 </attribute>
10403
10404 <method name="putMouseEvent">
10405 <desc>
10406 Initiates a mouse event using relative pointer movements
10407 along x and y axis.
10408
10409 <result name="E_ACCESSDENIED">
10410 Console not powered up.
10411 </result>
10412 <result name="VBOX_E_IPRT_ERROR">
10413 Could not send mouse event to virtual mouse.
10414 </result>
10415
10416 </desc>
10417
10418 <param name="dx" type="long" dir="in">
10419 <desc>
10420 Amount of pixels the mouse should move to the right.
10421 Negative values move the mouse to the left.
10422 </desc>
10423 </param>
10424 <param name="dy" type="long" dir="in">
10425 <desc>
10426 Amount of pixels the mouse should move downwards.
10427 Negative values move the mouse upwards.
10428 </desc>
10429 </param>
10430 <param name="dz" type="long" dir="in">
10431 <desc>
10432 Amount of mouse wheel moves.
10433 Positive values describe clockwise wheel rotations,
10434 negative values describe counterclockwise rotations.
10435 </desc>
10436 </param>
10437 <param name="dw" type="long" dir="in">
10438 <desc>
10439 Amount of horizontal mouse wheel moves.
10440 Positive values describe a movement to the left,
10441 negative values describe a movement to the right.
10442 </desc>
10443 </param>
10444 <param name="buttonState" type="long" dir="in">
10445 <desc>
10446 The current state of mouse buttons. Every bit represents
10447 a mouse button as follows:
10448 <table>
10449 <tr><td>Bit 0 (<tt>0x01</tt>)</td><td>left mouse button</td></tr>
10450 <tr><td>Bit 1 (<tt>0x02</tt>)</td><td>right mouse button</td></tr>
10451 <tr><td>Bit 2 (<tt>0x04</tt>)</td><td>middle mouse button</td></tr>
10452 </table>
10453 A value of <tt>1</tt> means the corresponding button is pressed.
10454 otherwise it is released.
10455 </desc>
10456 </param>
10457 </method>
10458
10459 <method name="putMouseEventAbsolute">
10460 <desc>
10461 Positions the mouse pointer using absolute x and y coordinates.
10462 These coordinates are expressed in pixels and
10463 start from <tt>[1,1]</tt> which corresponds to the top left
10464 corner of the virtual display.
10465
10466 <result name="E_ACCESSDENIED">
10467 Console not powered up.
10468 </result>
10469 <result name="VBOX_E_IPRT_ERROR">
10470 Could not send mouse event to virtual mouse.
10471 </result>
10472
10473 <note>
10474 This method will have effect only if absolute mouse
10475 positioning is supported by the guest OS.
10476 </note>
10477
10478 <see><link to="#absoluteSupported"/></see>
10479 </desc>
10480
10481 <param name="x" type="long" dir="in">
10482 <desc>
10483 X coordinate of the pointer in pixels, starting from @c 1.
10484 </desc>
10485 </param>
10486 <param name="y" type="long" dir="in">
10487 <desc>
10488 Y coordinate of the pointer in pixels, starting from @c 1.
10489 </desc>
10490 </param>
10491 <param name="dz" type="long" dir="in">
10492 <desc>
10493 Amount of mouse wheel moves.
10494 Positive values describe clockwise wheel rotations,
10495 negative values describe counterclockwise rotations.
10496 </desc>
10497 </param>
10498 <param name="dw" type="long" dir="in">
10499 <desc>
10500 Amount of horizontal mouse wheel moves.
10501 Positive values describe a movement to the left,
10502 negative values describe a movement to the right.
10503 </desc>
10504 </param>
10505 <param name="buttonState" type="long" dir="in">
10506 <desc>
10507 The current state of mouse buttons. Every bit represents
10508 a mouse button as follows:
10509 <table>
10510 <tr><td>Bit 0 (<tt>0x01</tt>)</td><td>left mouse button</td></tr>
10511 <tr><td>Bit 1 (<tt>0x02</tt>)</td><td>right mouse button</td></tr>
10512 <tr><td>Bit 2 (<tt>0x04</tt>)</td><td>middle mouse button</td></tr>
10513 </table>
10514 A value of @c 1 means the corresponding button is pressed.
10515 otherwise it is released.
10516 </desc>
10517 </param>
10518 </method>
10519
10520 <attribute name="eventSource" type="IEventSource" readonly="yes">
10521 <desc>
10522 Event source for mouse events.
10523 </desc>
10524 </attribute>
10525
10526 </interface>
10527
10528 <!--
10529 // IDisplay
10530 /////////////////////////////////////////////////////////////////////////
10531 -->
10532
10533 <enum
10534 name="FramebufferPixelFormat"
10535 uuid="7acfd5ed-29e3-45e3-8136-73c9224f3d2d"
10536 >
10537 <desc>
10538 Format of the video memory buffer. Constants represented by this enum can
10539 be used to test for particular values of <link
10540 to="IFramebuffer::pixelFormat"/>. See also <link
10541 to="IFramebuffer::requestResize"/>.
10542
10543 See also www.fourcc.org for more information about FOURCC pixel formats.
10544 </desc>
10545
10546 <const name="Opaque" value="0">
10547 <desc>
10548 Unknown buffer format (the user may not assume any particular format of
10549 the buffer).
10550 </desc>
10551 </const>
10552 <const name="FOURCC_RGB" value="0x32424752">
10553 <desc>
10554 Basic RGB format (<link to="IFramebuffer::bitsPerPixel"/> determines the
10555 bit layout).
10556 </desc>
10557 </const>
10558 </enum>
10559
10560 <interface
10561 name="IFramebuffer" extends="$unknown"
10562 uuid="b7ed347a-5765-40a0-ae1c-f543eb4ddeaf"
10563 wsmap="suppress"
10564 >
10565 <attribute name="address" type="octet" mod="ptr" readonly="yes">
10566 <desc>Address of the start byte of the frame buffer.</desc>
10567 </attribute>
10568
10569 <attribute name="width" type="unsigned long" readonly="yes">
10570 <desc>Frame buffer width, in pixels.</desc>
10571 </attribute>
10572
10573 <attribute name="height" type="unsigned long" readonly="yes">
10574 <desc>Frame buffer height, in pixels.</desc>
10575 </attribute>
10576
10577 <attribute name="bitsPerPixel" type="unsigned long" readonly="yes">
10578 <desc>
10579 Color depth, in bits per pixel. When <link to="#pixelFormat"/> is <link
10580 to="FramebufferPixelFormat_FOURCC_RGB">FOURCC_RGB</link>, valid values
10581 are: 8, 15, 16, 24 and 32.
10582 </desc>
10583 </attribute>
10584
10585 <attribute name="bytesPerLine" type="unsigned long" readonly="yes">
10586 <desc>
10587 Scan line size, in bytes. When <link to="#pixelFormat"/> is <link
10588 to="FramebufferPixelFormat_FOURCC_RGB">FOURCC_RGB</link>, the
10589 size of the scan line must be aligned to 32 bits.
10590 </desc>
10591 </attribute>
10592
10593 <attribute name="pixelFormat" type="unsigned long" readonly="yes">
10594 <desc>
10595 Frame buffer pixel format. It's either one of the values defined by <link
10596 to="FramebufferPixelFormat"/> or a raw FOURCC code.
10597 <note>
10598 This attribute must never return <link
10599 to="FramebufferPixelFormat_Opaque"/> -- the format of the buffer
10600 <link to="#address"/> points to must be always known.
10601 </note>
10602 </desc>
10603 </attribute>
10604
10605 <attribute name="usesGuestVRAM" type="boolean" readonly="yes">
10606 <desc>
10607 Defines whether this frame buffer uses the virtual video card's memory
10608 buffer (guest VRAM) directly or not. See <link
10609 to="IFramebuffer::requestResize"/> for more information.
10610 </desc>
10611 </attribute>
10612
10613 <attribute name="heightReduction" type="unsigned long" readonly="yes">
10614 <desc>
10615 Hint from the frame buffer about how much of the standard
10616 screen height it wants to use for itself. This information is
10617 exposed to the guest through the VESA BIOS and VMMDev interface
10618 so that it can use it for determining its video mode table. It
10619 is not guaranteed that the guest respects the value.
10620 </desc>
10621 </attribute>
10622
10623 <attribute name="overlay" type="IFramebufferOverlay" readonly="yes">
10624 <desc>
10625 An alpha-blended overlay which is superposed over the frame buffer.
10626 The initial purpose is to allow the display of icons providing
10627 information about the VM state, including disk activity, in front
10628 ends which do not have other means of doing that. The overlay is
10629 designed to controlled exclusively by IDisplay. It has no locking
10630 of its own, and any changes made to it are not guaranteed to be
10631 visible until the affected portion of IFramebuffer is updated. The
10632 overlay can be created lazily the first time it is requested. This
10633 attribute can also return @c null to signal that the overlay is not
10634 implemented.
10635 </desc>
10636 </attribute>
10637
10638 <attribute name="winId" type="long long" readonly="yes">
10639 <desc>
10640 Platform-dependent identifier of the window where context of this
10641 frame buffer is drawn, or zero if there's no such window.
10642 </desc>
10643 </attribute>
10644
10645 <method name="lock">
10646 <desc>
10647 Locks the frame buffer.
10648 Gets called by the IDisplay object where this frame buffer is
10649 bound to.
10650 </desc>
10651 </method>
10652
10653 <method name="unlock">
10654 <desc>
10655 Unlocks the frame buffer.
10656 Gets called by the IDisplay object where this frame buffer is
10657 bound to.
10658 </desc>
10659 </method>
10660
10661 <method name="notifyUpdate">
10662 <desc>
10663 Informs about an update.
10664 Gets called by the display object where this buffer is
10665 registered.
10666 </desc>
10667 <param name="x" type="unsigned long" dir="in"/>
10668 <param name="y" type="unsigned long" dir="in"/>
10669 <param name="width" type="unsigned long" dir="in"/>
10670 <param name="height" type="unsigned long" dir="in"/>
10671 </method>
10672
10673 <method name="requestResize">
10674 <desc>
10675 Requests a size and pixel format change.
10676
10677 There are two modes of working with the video buffer of the virtual
10678 machine. The <i>indirect</i> mode implies that the IFramebuffer
10679 implementation allocates a memory buffer for the requested display mode
10680 and provides it to the virtual machine. In <i>direct</i> mode, the
10681 IFramebuffer implementation uses the memory buffer allocated and owned
10682 by the virtual machine. This buffer represents the video memory of the
10683 emulated video adapter (so called <i>guest VRAM</i>). The direct mode is
10684 usually faster because the implementation gets a raw pointer to the
10685 guest VRAM buffer which it can directly use for visualizing the contents
10686 of the virtual display, as opposed to the indirect mode where the
10687 contents of guest VRAM are copied to the memory buffer provided by
10688 the implementation every time a display update occurs.
10689
10690 It is important to note that the direct mode is really fast only when
10691 the implementation uses the given guest VRAM buffer directly, for
10692 example, by blitting it to the window representing the virtual machine's
10693 display, which saves at least one copy operation comparing to the
10694 indirect mode. However, using the guest VRAM buffer directly is not
10695 always possible: the format and the color depth of this buffer may be
10696 not supported by the target window, or it may be unknown (opaque) as in
10697 case of text or non-linear multi-plane VGA video modes. In this case,
10698 the indirect mode (that is always available) should be used as a
10699 fallback: when the guest VRAM contents are copied to the
10700 implementation-provided memory buffer, color and format conversion is
10701 done automatically by the underlying code.
10702
10703 The @a pixelFormat parameter defines whether the direct mode is
10704 available or not. If @a pixelFormat is <link
10705 to="FramebufferPixelFormat_Opaque"/> then direct access to the guest
10706 VRAM buffer is not available -- the @a VRAM, @a bitsPerPixel and
10707 @a bytesPerLine parameters must be ignored and the implementation must use
10708 the indirect mode (where it provides its own buffer in one of the
10709 supported formats). In all other cases, @a pixelFormat together with
10710 @a bitsPerPixel and @a bytesPerLine define the format of the video memory
10711 buffer pointed to by the @a VRAM parameter and the implementation is
10712 free to choose which mode to use. To indicate that this frame buffer uses
10713 the direct mode, the implementation of the <link to="#usesGuestVRAM"/>
10714 attribute must return @c true and <link to="#address"/> must
10715 return exactly the same address that is passed in the @a VRAM parameter
10716 of this method; otherwise it is assumed that the indirect strategy is
10717 chosen.
10718
10719 The @a width and @a height parameters represent the size of the
10720 requested display mode in both modes. In case of indirect mode, the
10721 provided memory buffer should be big enough to store data of the given
10722 display mode. In case of direct mode, it is guaranteed that the given
10723 @a VRAM buffer contains enough space to represent the display mode of the
10724 given size. Note that this frame buffer's <link to="#width"/> and <link
10725 to="#height"/> attributes must return exactly the same values as
10726 passed to this method after the resize is completed (see below).
10727
10728 The @a finished output parameter determines if the implementation has
10729 finished resizing the frame buffer or not. If, for some reason, the
10730 resize cannot be finished immediately during this call, @a finished
10731 must be set to @c false, and the implementation must call
10732 <link to="IDisplay::resizeCompleted"/> after it has returned from
10733 this method as soon as possible. If @a finished is @c false, the
10734 machine will not call any frame buffer methods until
10735 <link to="IDisplay::resizeCompleted"/> is called.
10736
10737 Note that if the direct mode is chosen, the <link to="#bitsPerPixel"/>,
10738 <link to="#bytesPerLine"/> and <link to="#pixelFormat"/> attributes of
10739 this frame buffer must return exactly the same values as specified in the
10740 parameters of this method, after the resize is completed. If the
10741 indirect mode is chosen, these attributes must return values describing
10742 the format of the implementation's own memory buffer <link
10743 to="#address"/> points to. Note also that the <link to="#bitsPerPixel"/>
10744 value must always correlate with <link to="#pixelFormat"/>. Note that
10745 the <link to="#pixelFormat"/> attribute must never return <link
10746 to="FramebufferPixelFormat_Opaque"/> regardless of the selected mode.
10747
10748 <note>
10749 This method is called by the IDisplay object under the
10750 <link to="#lock"/> provided by this IFramebuffer
10751 implementation. If this method returns @c false in @a finished, then
10752 this lock is not released until
10753 <link to="IDisplay::resizeCompleted"/> is called.
10754 </note>
10755 </desc>
10756 <param name="screenId" type="unsigned long" dir="in">
10757 <desc>
10758 Logical screen number. Must be used in the corresponding call to
10759 <link to="IDisplay::resizeCompleted"/> if this call is made.
10760 </desc>
10761 </param>
10762 <param name="pixelFormat" type="unsigned long" dir="in">
10763 <desc>
10764 Pixel format of the memory buffer pointed to by @a VRAM.
10765 See also <link to="FramebufferPixelFormat"/>.
10766 </desc>
10767 </param>
10768 <param name="VRAM" type="octet" mod="ptr" dir="in">
10769 <desc>Pointer to the virtual video card's VRAM (may be @c null).</desc>
10770 </param>
10771 <param name="bitsPerPixel" type="unsigned long" dir="in">
10772 <desc>Color depth, bits per pixel.</desc>
10773 </param>
10774 <param name="bytesPerLine" type="unsigned long" dir="in">
10775 <desc>Size of one scan line, in bytes.</desc>
10776 </param>
10777 <param name="width" type="unsigned long" dir="in">
10778 <desc>Width of the guest display, in pixels.</desc>
10779 </param>
10780 <param name="height" type="unsigned long" dir="in">
10781 <desc>Height of the guest display, in pixels.</desc>
10782 </param>
10783 <param name="finished" type="boolean" dir="return">
10784 <desc>
10785 Can the VM start using the new frame buffer immediately
10786 after this method returns or it should wait for
10787 <link to="IDisplay::resizeCompleted"/>.
10788 </desc>
10789 </param>
10790 </method>
10791
10792 <method name="videoModeSupported">
10793 <desc>
10794 Returns whether the frame buffer implementation is willing to
10795 support a given video mode. In case it is not able to render
10796 the video mode (or for some reason not willing), it should
10797 return @c false. Usually this method is called when the guest
10798 asks the VMM device whether a given video mode is supported
10799 so the information returned is directly exposed to the guest.
10800 It is important that this method returns very quickly.
10801 </desc>
10802 <param name="width" type="unsigned long" dir="in"/>
10803 <param name="height" type="unsigned long" dir="in"/>
10804 <param name="bpp" type="unsigned long" dir="in"/>
10805 <param name="supported" type="boolean" dir="return"/>
10806 </method>
10807
10808 <method name="getVisibleRegion">
10809 <desc>
10810 Returns the visible region of this frame buffer.
10811
10812 If the @a rectangles parameter is @c null then the value of the
10813 @a count parameter is ignored and the number of elements necessary to
10814 describe the current visible region is returned in @a countCopied.
10815
10816 If @a rectangles is not @c null but @a count is less
10817 than the required number of elements to store region data, the method
10818 will report a failure. If @a count is equal or greater than the
10819 required number of elements, then the actual number of elements copied
10820 to the provided array will be returned in @a countCopied.
10821
10822 <note>
10823 The address of the provided array must be in the process space of
10824 this IFramebuffer object.
10825 </note>
10826 <note>
10827 Method not yet implemented.
10828 </note>
10829 </desc>
10830 <param name="rectangles" type="octet" mod="ptr" dir="in">
10831 <desc>Pointer to the @c RTRECT array to receive region data.</desc>
10832 </param>
10833 <param name="count" type="unsigned long" dir="in">
10834 <desc>Number of @c RTRECT elements in the @a rectangles array.</desc>
10835 </param>
10836 <param name="countCopied" type="unsigned long" dir="return">
10837 <desc>Number of elements copied to the @a rectangles array.</desc>
10838 </param>
10839 </method>
10840
10841 <method name="setVisibleRegion">
10842 <desc>
10843 Suggests a new visible region to this frame buffer. This region
10844 represents the area of the VM display which is a union of regions of
10845 all top-level windows of the guest operating system running inside the
10846 VM (if the Guest Additions for this system support this
10847 functionality). This information may be used by the frontends to
10848 implement the seamless desktop integration feature.
10849
10850 <note>
10851 The address of the provided array must be in the process space of
10852 this IFramebuffer object.
10853 </note>
10854 <note>
10855 The IFramebuffer implementation must make a copy of the provided
10856 array of rectangles.
10857 </note>
10858 <note>
10859 Method not yet implemented.
10860 </note>
10861 </desc>
10862 <param name="rectangles" type="octet" mod="ptr" dir="in">
10863 <desc>Pointer to the @c RTRECT array.</desc>
10864 </param>
10865 <param name="count" type="unsigned long" dir="in">
10866 <desc>Number of @c RTRECT elements in the @a rectangles array.</desc>
10867 </param>
10868 </method>
10869
10870 <method name="processVHWACommand">
10871 <desc>
10872 Posts a Video HW Acceleration Command to the frame buffer for processing.
10873 The commands used for 2D video acceleration (DDraw surface creation/destroying, blitting, scaling, color conversion, overlaying, etc.)
10874 are posted from quest to the host to be processed by the host hardware.
10875
10876 <note>
10877 The address of the provided command must be in the process space of
10878 this IFramebuffer object.
10879 </note>
10880 </desc>
10881
10882 <param name="command" type="octet" mod="ptr" dir="in">
10883 <desc>Pointer to VBOXVHWACMD containing the command to execute.</desc>
10884 </param>
10885 </method>
10886
10887 </interface>
10888
10889 <interface
10890 name="IFramebufferOverlay" extends="IFramebuffer"
10891 uuid="0bcc1c7e-e415-47d2-bfdb-e4c705fb0f47"
10892 wsmap="suppress"
10893 >
10894 <desc>
10895 The IFramebufferOverlay interface represents an alpha blended overlay
10896 for displaying status icons above an IFramebuffer. It is always created
10897 not visible, so that it must be explicitly shown. It only covers a
10898 portion of the IFramebuffer, determined by its width, height and
10899 co-ordinates. It is always in packed pixel little-endian 32bit ARGB (in
10900 that order) format, and may be written to directly. Do re-read the
10901 width though, after setting it, as it may be adjusted (increased) to
10902 make it more suitable for the front end.
10903 </desc>
10904 <attribute name="x" type="unsigned long" readonly="yes">
10905 <desc>X position of the overlay, relative to the frame buffer.</desc>
10906 </attribute>
10907
10908 <attribute name="y" type="unsigned long" readonly="yes">
10909 <desc>Y position of the overlay, relative to the frame buffer.</desc>
10910 </attribute>
10911
10912 <attribute name="visible" type="boolean" readonly="no">
10913 <desc>
10914 Whether the overlay is currently visible.
10915 </desc>
10916 </attribute>
10917
10918 <attribute name="alpha" type="unsigned long" readonly="no">
10919 <desc>
10920 The global alpha value for the overlay. This may or may not be
10921 supported by a given front end.
10922 </desc>
10923 </attribute>
10924
10925 <method name="move">
10926 <desc>
10927 Changes the overlay's position relative to the IFramebuffer.
10928 </desc>
10929 <param name="x" type="unsigned long" dir="in"/>
10930 <param name="y" type="unsigned long" dir="in"/>
10931 </method>
10932
10933 </interface>
10934
10935 <interface
10936 name="IDisplay" extends="$unknown"
10937 uuid="09EED313-CD56-4D06-BD56-FAC0F716B5DD"
10938 wsmap="managed"
10939 >
10940 <desc>
10941 The IDisplay interface represents the virtual machine's display.
10942
10943 The object implementing this interface is contained in each
10944 <link to="IConsole::display"/> attribute and represents the visual
10945 output of the virtual machine.
10946
10947 The virtual display supports pluggable output targets represented by the
10948 IFramebuffer interface. Examples of the output target are a window on
10949 the host computer or an RDP session's display on a remote computer.
10950 </desc>
10951 <method name="getScreenResolution">
10952 <desc>Queries display width, height and color depth for given screen.</desc>
10953 <param name="screenId" type="unsigned long" dir="in"/>
10954 <param name="width" type="unsigned long" dir="out"/>
10955 <param name="height" type="unsigned long" dir="out"/>
10956 <param name="bitsPerPixel" type="unsigned long" dir="out"/>
10957 </method>
10958
10959 <method name="setFramebuffer">
10960 <desc>
10961 Sets the framebuffer for given screen.
10962 </desc>
10963 <param name="screenId" type="unsigned long" dir="in"/>
10964 <param name="framebuffer" type="IFramebuffer" dir="in"/>
10965 </method>
10966
10967 <method name="getFramebuffer">
10968 <desc>
10969 Queries the framebuffer for given screen.
10970 </desc>
10971 <param name="screenId" type="unsigned long" dir="in"/>
10972 <param name="framebuffer" type="IFramebuffer" dir="out"/>
10973 <param name="xOrigin" type="long" dir="out"/>
10974 <param name="yOrigin" type="long" dir="out"/>
10975 </method>
10976
10977 <method name="setVideoModeHint">
10978 <desc>
10979 Asks VirtualBox to request the given video mode from
10980 the guest. This is just a hint and it cannot be guaranteed
10981 that the requested resolution will be used. Guest Additions
10982 are required for the request to be seen by guests. The caller
10983 should issue the request and wait for a resolution change and
10984 after a timeout retry.
10985
10986 Specifying @c 0 for either @a width, @a height or @a bitsPerPixel
10987 parameters means that the corresponding values should be taken from the
10988 current video mode (i.e. left unchanged).
10989
10990 If the guest OS supports multi-monitor configuration then the @a display
10991 parameter specifies the number of the guest display to send the hint to:
10992 @c 0 is the primary display, @c 1 is the first secondary and
10993 so on. If the multi-monitor configuration is not supported, @a display
10994 must be @c 0.
10995
10996 <result name="E_INVALIDARG">
10997 The @a display is not associated with any monitor.
10998 </result>
10999
11000 </desc>
11001 <param name="width" type="unsigned long" dir="in"/>
11002 <param name="height" type="unsigned long" dir="in"/>
11003 <param name="bitsPerPixel" type="unsigned long" dir="in"/>
11004 <param name="display" type="unsigned long" dir="in"/>
11005 </method>
11006
11007 <method name="setSeamlessMode">
11008 <desc>
11009 Enables or disables seamless guest display rendering (seamless desktop
11010 integration) mode.
11011 <note>
11012 Calling this method has no effect if <link
11013 to="IGuest::supportsSeamless"/> returns @c false.
11014 </note>
11015 </desc>
11016 <param name="enabled" type="boolean" dir="in"/>
11017 </method>
11018
11019 <method name="takeScreenShot">
11020 <desc>
11021 Takes a screen shot of the requested size and copies it to the
11022 32-bpp buffer allocated by the caller and pointed to by @a address.
11023 A pixel consists of 4 bytes in order: B, G, R, 0.
11024
11025 <note>This API can be used only by the COM/XPCOM C++ API as it
11026 requires pointer support. Use <link to="#takeScreenShotToArray" />
11027 with other language bindings.
11028 </note>
11029
11030 <result name="E_NOTIMPL">
11031 Feature not implemented.
11032 </result>
11033 <result name="VBOX_E_IPRT_ERROR">
11034 Could not take a screenshot.
11035 </result>
11036
11037 </desc>
11038 <param name="screenId" type="unsigned long" dir="in"/>
11039 <param name="address" type="octet" mod="ptr" dir="in"/>
11040 <param name="width" type="unsigned long" dir="in"/>
11041 <param name="height" type="unsigned long" dir="in"/>
11042 </method>
11043
11044 <method name="takeScreenShotToArray">
11045 <desc>
11046 Takes a guest screen shot of the requested size and returns it as
11047 an array of bytes in uncompressed 32-bit RGBA format.
11048 A pixel consists of 4 bytes in order: R, G, B, 0xFF.
11049
11050 This API is slow, but could be the only option to get guest screenshot
11051 for scriptable languages not allowed to manipulate with addresses
11052 directly.
11053
11054 <result name="E_NOTIMPL">
11055 Feature not implemented.
11056 </result>
11057 <result name="VBOX_E_IPRT_ERROR">
11058 Could not take a screenshot.
11059 </result>
11060 </desc>
11061 <param name="screenId" type="unsigned long" dir="in">
11062 <desc>
11063 Monitor to take screenshot from.
11064 </desc>
11065 </param>
11066 <param name="width" type="unsigned long" dir="in">
11067 <desc>
11068 Desired image width.
11069 </desc>
11070 </param>
11071 <param name="height" type="unsigned long" dir="in">
11072 <desc>
11073 Desired image height.
11074 </desc>
11075 </param>
11076 <param name="screenData" type="octet" dir="return" safearray="yes">
11077 <desc>
11078 Array with resulting screen data.
11079 </desc>
11080 </param>
11081 </method>
11082
11083 <method name="takeScreenShotPNGToArray">
11084 <desc>
11085 Takes a guest screen shot of the requested size and returns it as
11086 PNG image in array.
11087
11088 <result name="E_NOTIMPL">
11089 Feature not implemented.
11090 </result>
11091 <result name="VBOX_E_IPRT_ERROR">
11092 Could not take a screenshot.
11093 </result>
11094 </desc>
11095 <param name="screenId" type="unsigned long" dir="in">
11096 <desc>
11097 Monitor to take the screenshot from.
11098 </desc>
11099 </param>
11100 <param name="width" type="unsigned long" dir="in">
11101 <desc>
11102 Desired image width.
11103 </desc>
11104 </param>
11105 <param name="height" type="unsigned long" dir="in">
11106 <desc>
11107 Desired image height.
11108 </desc>
11109 </param>
11110 <param name="screenData" type="octet" dir="return" safearray="yes">
11111 <desc>
11112 Array with resulting screen data.
11113 </desc>
11114 </param>
11115 </method>
11116
11117 <method name="drawToScreen">
11118 <desc>
11119 Draws a 32-bpp image of the specified size from the given buffer
11120 to the given point on the VM display.
11121
11122 <result name="E_NOTIMPL">
11123 Feature not implemented.
11124 </result>
11125 <result name="VBOX_E_IPRT_ERROR">
11126 Could not draw to screen.
11127 </result>
11128
11129 </desc>
11130 <param name="screenId" type="unsigned long" dir="in">
11131 <desc>
11132 Monitor to take the screenshot from.
11133 </desc>
11134 </param>
11135 <param name="address" type="octet" mod="ptr" dir="in">
11136 <desc>
11137 Address to store the screenshot to
11138 </desc>
11139 </param>
11140 <param name="x" type="unsigned long" dir="in">
11141 <desc>
11142 Relative to the screen top left corner.
11143 </desc>
11144 </param>
11145 <param name="y" type="unsigned long" dir="in">
11146 <desc>
11147 Relative to the screen top left corner.
11148 </desc>
11149 </param>
11150 <param name="width" type="unsigned long" dir="in">
11151 <desc>
11152 Desired image width.
11153 </desc>
11154 </param>
11155 <param name="height" type="unsigned long" dir="in">
11156 <desc>
11157 Desired image height.
11158 </desc>
11159 </param>
11160 </method>
11161
11162 <method name="invalidateAndUpdate">
11163 <desc>
11164 Does a full invalidation of the VM display and instructs the VM
11165 to update it.
11166
11167 <result name="VBOX_E_IPRT_ERROR">
11168 Could not invalidate and update screen.
11169 </result>
11170
11171 </desc>
11172 </method>
11173
11174 <method name="resizeCompleted">
11175 <desc>
11176 Signals that a framebuffer has completed the resize operation.
11177
11178 <result name="VBOX_E_NOT_SUPPORTED">
11179 Operation only valid for external frame buffers.
11180 </result>
11181
11182 </desc>
11183 <param name="screenId" type="unsigned long" dir="in"/>
11184 </method>
11185
11186 <method name="completeVHWACommand">
11187 <desc>
11188 Signals that the Video HW Acceleration command has completed.
11189 </desc>
11190
11191 <param name="command" type="octet" mod="ptr" dir="in">
11192 <desc>Pointer to VBOXVHWACMD containing the completed command.</desc>
11193 </param>
11194 </method>
11195
11196 </interface>
11197
11198 <!--
11199 // INetworkAdapter
11200 /////////////////////////////////////////////////////////////////////////
11201 -->
11202
11203 <enum
11204 name="NetworkAttachmentType"
11205 uuid="44bce1ee-99f7-4e8e-89fc-80597fd9eeaf"
11206 >
11207 <desc>
11208 Network attachment type.
11209 </desc>
11210
11211 <const name="Null" value="0">
11212 <desc>Null value, also means "not attached".</desc>
11213 </const>
11214 <const name="NAT" value="1"/>
11215 <const name="Bridged" value="2"/>
11216 <const name="Internal" value="3"/>
11217 <const name="HostOnly" value="4"/>
11218 <const name="VDE" value="5"/>
11219 </enum>
11220
11221 <enum
11222 name="NetworkAdapterType"
11223 uuid="3c2281e4-d952-4e87-8c7d-24379cb6a81c"
11224 >
11225 <desc>
11226 Network adapter type.
11227 </desc>
11228
11229 <const name="Null" value="0">
11230 <desc>Null value (never used by the API).</desc>
11231 </const>
11232 <const name="Am79C970A" value="1">
11233 <desc>AMD PCNet-PCI II network card (Am79C970A).</desc>
11234 </const>
11235 <const name="Am79C973" value="2">
11236 <desc>AMD PCNet-FAST III network card (Am79C973).</desc>
11237 </const>
11238 <const name="I82540EM" value="3">
11239 <desc>Intel PRO/1000 MT Desktop network card (82540EM).</desc>
11240 </const>
11241 <const name="I82543GC" value="4">
11242 <desc>Intel PRO/1000 T Server network card (82543GC).</desc>
11243 </const>
11244 <const name="I82545EM" value="5">
11245 <desc>Intel PRO/1000 MT Server network card (82545EM).</desc>
11246 </const>
11247 <const name="Virtio" value="6">
11248 <desc>Virtio network device.</desc>
11249 </const>
11250 </enum>
11251
11252 <interface
11253 name="INetworkAdapter" extends="$unknown"
11254 uuid="9bf58a46-c3f7-4f31-80fa-dde9a5dc0b7b"
11255 wsmap="managed"
11256 >
11257 <desc>
11258 Represents a virtual network adapter that is attached to a virtual machine.
11259 Each virtual machine has a fixed number of network adapter slots with one
11260 instance of this attached to each of them. Call
11261 <link to="IMachine::getNetworkAdapter" /> to get the network adapter that
11262 is attached to a given slot in a given machine.
11263
11264 Each network adapter can be in one of five attachment modes, which are
11265 represented by the <link to="NetworkAttachmentType" /> enumeration;
11266 see the <link to="#attachmentType" /> attribute.
11267 </desc>
11268
11269 <attribute name="adapterType" type="NetworkAdapterType">
11270 <desc>
11271 Type of the virtual network adapter. Depending on this value,
11272 VirtualBox will provide a different virtual network hardware
11273 to the guest.
11274 </desc>
11275 </attribute>
11276
11277 <attribute name="slot" type="unsigned long" readonly="yes">
11278 <desc>
11279 Slot number this adapter is plugged into. Corresponds to
11280 the value you pass to <link to="IMachine::getNetworkAdapter"/>
11281 to obtain this instance.
11282 </desc>
11283 </attribute>
11284
11285 <attribute name="enabled" type="boolean">
11286 <desc>
11287 Flag whether the network adapter is present in the
11288 guest system. If disabled, the virtual guest hardware will
11289 not contain this network adapter. Can only be changed when
11290 the VM is not running.
11291 </desc>
11292 </attribute>
11293
11294 <attribute name="MACAddress" type="wstring">
11295 <desc>
11296 Ethernet MAC address of the adapter, 12 hexadecimal characters. When setting
11297 it to @c null or an empty string, VirtualBox will generate a unique MAC address.
11298 </desc>
11299 </attribute>
11300
11301 <attribute name="attachmentType" type="NetworkAttachmentType" readonly="yes"/>
11302
11303 <attribute name="hostInterface" type="wstring">
11304 <desc>
11305 Name of the host network interface the VM is attached to.
11306 </desc>
11307 </attribute>
11308
11309 <attribute name="internalNetwork" type="wstring">
11310 <desc>
11311 Name of the internal network the VM is attached to.
11312 </desc>
11313 </attribute>
11314
11315 <attribute name="NATNetwork" type="wstring">
11316 <desc>
11317 Name of the NAT network the VM is attached to.
11318 </desc>
11319 </attribute>
11320
11321 <attribute name="VDENetwork" type="wstring">
11322 <desc>
11323 Name of the VDE switch the VM is attached to.
11324 </desc>
11325 </attribute>
11326
11327 <attribute name="cableConnected" type="boolean">
11328 <desc>
11329 Flag whether the adapter reports the cable as connected or not.
11330 It can be used to report offline situations to a VM.
11331 </desc>
11332 </attribute>
11333
11334 <attribute name="lineSpeed" type="unsigned long">
11335 <desc>
11336 Line speed reported by custom drivers, in units of 1 kbps.
11337 </desc>
11338 </attribute>
11339
11340 <attribute name="traceEnabled" type="boolean">
11341 <desc>
11342 Flag whether network traffic from/to the network card should be traced.
11343 Can only be toggled when the VM is turned off.
11344 </desc>
11345 </attribute>
11346
11347 <attribute name="traceFile" type="wstring">
11348 <desc>
11349 Filename where a network trace will be stored. If not set, VBox-pid.pcap
11350 will be used.
11351 </desc>
11352 </attribute>
11353
11354 <attribute name="natDriver" type="INATEngine" readonly="yes">
11355 <desc>
11356 Points to the NAT engine which handles the network address translation
11357 for this interface. This is active only when the interface actually uses
11358 NAT (see <link to="#attachToNAT" />).
11359 </desc>
11360 </attribute>
11361
11362 <attribute name="bootPriority" type="unsigned long">
11363 <desc>
11364 Network boot priority of the adapter. Priority 1 is highest. If not set,
11365 the priority is considered to be at the lowest possible setting.
11366 </desc>
11367 </attribute>
11368
11369 <attribute name="bandwidthLimit" type="unsigned long">
11370 <desc>
11371 Maximum throughput allowed for this network adapter, in units of 1 mbps.
11372 A zero value means uncapped/unlimited.
11373 </desc>
11374 </attribute>
11375
11376 <method name="attachToNAT">
11377 <desc>
11378 Attach the network adapter to the Network Address Translation (NAT) interface.
11379 </desc>
11380 </method>
11381
11382 <method name="attachToBridgedInterface">
11383 <desc>
11384 Attach the network adapter to a bridged host interface.
11385 </desc>
11386 </method>
11387
11388 <method name="attachToInternalNetwork">
11389 <desc>
11390 Attach the network adapter to an internal network.
11391 </desc>
11392 </method>
11393
11394 <method name="attachToHostOnlyInterface">
11395 <desc>
11396 Attach the network adapter to the host-only network.
11397 </desc>
11398 </method>
11399
11400 <method name="attachToVDE">
11401 <desc>
11402 Attach the network adapter to a VDE network.
11403 </desc>
11404 </method>
11405
11406 <method name="detach">
11407 <desc>
11408 Detach the network adapter
11409 </desc>
11410 </method>
11411 </interface>
11412
11413
11414 <!--
11415 // ISerialPort
11416 /////////////////////////////////////////////////////////////////////////
11417 -->
11418
11419 <enum
11420 name="PortMode"
11421 uuid="533b5fe3-0185-4197-86a7-17e37dd39d76"
11422 >
11423 <desc>
11424 The PortMode enumeration represents possible communication modes for
11425 the virtual serial port device.
11426 </desc>
11427
11428 <const name="Disconnected" value="0">
11429 <desc>Virtual device is not attached to any real host device.</desc>
11430 </const>
11431 <const name="HostPipe" value="1">
11432 <desc>Virtual device is attached to a host pipe.</desc>
11433 </const>
11434 <const name="HostDevice" value="2">
11435 <desc>Virtual device is attached to a host device.</desc>
11436 </const>
11437 <const name="RawFile" value="3">
11438 <desc>Virtual device is attached to a raw file.</desc>
11439 </const>
11440 </enum>
11441
11442 <interface
11443 name="ISerialPort" extends="$unknown"
11444 uuid="937f6970-5103-4745-b78e-d28dcf1479a8"
11445 wsmap="managed"
11446 >
11447
11448 <desc>
11449 The ISerialPort interface represents the virtual serial port device.
11450
11451 The virtual serial port device acts like an ordinary serial port
11452 inside the virtual machine. This device communicates to the real
11453 serial port hardware in one of two modes: host pipe or host device.
11454
11455 In host pipe mode, the #path attribute specifies the path to the pipe on
11456 the host computer that represents a serial port. The #server attribute
11457 determines if this pipe is created by the virtual machine process at
11458 machine startup or it must already exist before starting machine
11459 execution.
11460
11461 In host device mode, the #path attribute specifies the name of the
11462 serial port device on the host computer.
11463
11464 There is also a third communication mode: the disconnected mode. In this
11465 mode, the guest OS running inside the virtual machine will be able to
11466 detect the serial port, but all port write operations will be discarded
11467 and all port read operations will return no data.
11468
11469 <see>IMachine::getSerialPort</see>
11470 </desc>
11471
11472 <attribute name="slot" type="unsigned long" readonly="yes">
11473 <desc>
11474 Slot number this serial port is plugged into. Corresponds to
11475 the value you pass to <link to="IMachine::getSerialPort"/>
11476 to obtain this instance.
11477 </desc>
11478 </attribute>
11479
11480 <attribute name="enabled" type="boolean">
11481 <desc>
11482 Flag whether the serial port is enabled. If disabled,
11483 the serial port will not be reported to the guest OS.
11484 </desc>
11485 </attribute>
11486
11487 <attribute name="IOBase" type="unsigned long">
11488 <desc>Base I/O address of the serial port.</desc>
11489 </attribute>
11490
11491 <attribute name="IRQ" type="unsigned long">
11492 <desc>IRQ number of the serial port.</desc>
11493 </attribute>
11494
11495 <attribute name="hostMode" type="PortMode">
11496 <desc>
11497 How is this port connected to the host.
11498 <note>
11499 Changing this attribute may fail if the conditions for
11500 <link to="#path"/> are not met.
11501 </note>
11502 </desc>
11503 </attribute>
11504
11505 <attribute name="server" type="boolean">
11506 <desc>
11507 Flag whether this serial port acts as a server (creates a new pipe on
11508 the host) or as a client (uses the existing pipe). This attribute is
11509 used only when <link to="#hostMode"/> is PortMode_HostPipe.
11510 </desc>
11511 </attribute>
11512
11513 <attribute name="path" type="wstring">
11514 <desc>
11515 Path to the serial port's pipe on the host when <link to="ISerialPort::hostMode"/> is
11516 PortMode_HostPipe, or the host serial device name when
11517 <link to="ISerialPort::hostMode"/> is PortMode_HostDevice. For both
11518 cases, setting a @c null or empty string as the attribute's value
11519 is an error. Otherwise, the value of this property is ignored.
11520 </desc>
11521 </attribute>
11522
11523 </interface>
11524
11525 <!--
11526 // IParallelPort
11527 /////////////////////////////////////////////////////////////////////////
11528 -->
11529
11530 <interface
11531 name="IParallelPort" extends="$unknown"
11532 uuid="0c925f06-dd10-4b77-8de8-294d738c3214"
11533 wsmap="managed"
11534 >
11535
11536 <desc>
11537 The IParallelPort interface represents the virtual parallel port device.
11538
11539 The virtual parallel port device acts like an ordinary parallel port
11540 inside the virtual machine. This device communicates to the real
11541 parallel port hardware using the name of the parallel device on the host
11542 computer specified in the #path attribute.
11543
11544 Each virtual parallel port device is assigned a base I/O address and an
11545 IRQ number that will be reported to the guest operating system and used
11546 to operate the given parallel port from within the virtual machine.
11547
11548 <see>IMachine::getParallelPort</see>
11549 </desc>
11550
11551 <attribute name="slot" type="unsigned long" readonly="yes">
11552 <desc>
11553 Slot number this parallel port is plugged into. Corresponds to
11554 the value you pass to <link to="IMachine::getParallelPort"/>
11555 to obtain this instance.
11556 </desc>
11557 </attribute>
11558
11559 <attribute name="enabled" type="boolean">
11560 <desc>
11561 Flag whether the parallel port is enabled. If disabled,
11562 the parallel port will not be reported to the guest OS.
11563 </desc>
11564 </attribute>
11565
11566 <attribute name="IOBase" type="unsigned long">
11567 <desc>Base I/O address of the parallel port.</desc>
11568 </attribute>
11569
11570 <attribute name="IRQ" type="unsigned long">
11571 <desc>IRQ number of the parallel port.</desc>
11572 </attribute>
11573
11574 <attribute name="path" type="wstring">
11575 <desc>
11576 Host parallel device name. If this parallel port is enabled, setting a
11577 @c null or an empty string as this attribute's value will result into
11578 an error.
11579 </desc>
11580 </attribute>
11581
11582 </interface>
11583
11584
11585 <!--
11586 // IMachineDebugger
11587 /////////////////////////////////////////////////////////////////////////
11588 -->
11589
11590 <interface
11591 name="IMachineDebugger" extends="$unknown"
11592 uuid="b0b2a2dd-0627-4502-91c2-ddc5e77609e0"
11593 wsmap="suppress"
11594 >
11595 <method name="resetStats">
11596 <desc>
11597 Reset VM statistics.
11598 </desc>
11599 <param name="pattern" type="wstring" dir="in">
11600 <desc>The selection pattern. A bit similar to filename globbing.</desc>
11601 </param>
11602 </method>
11603
11604 <method name="dumpStats">
11605 <desc>
11606 Dumps VM statistics.
11607 </desc>
11608 <param name="pattern" type="wstring" dir="in">
11609 <desc>The selection pattern. A bit similar to filename globbing.</desc>
11610 </param>
11611 </method>
11612
11613 <method name="getStats">
11614 <desc>
11615 Get the VM statistics in a XMLish format.
11616 </desc>
11617 <param name="pattern" type="wstring" dir="in">
11618 <desc>The selection pattern. A bit similar to filename globbing.</desc>
11619 </param>
11620 <param name="withDescriptions" type="boolean" dir="in">
11621 <desc>Whether to include the descriptions.</desc>
11622 </param>
11623 <param name="stats" type="wstring" dir="out">
11624 <desc>The XML document containing the statistics.</desc>
11625 </param>
11626 </method>
11627
11628 <method name="injectNMI">
11629 <desc>
11630 Inject an NMI into a running VT-x/AMD-V VM.
11631 </desc>
11632 </method>
11633
11634 <attribute name="singlestep" type="boolean">
11635 <desc>Switch for enabling singlestepping.</desc>
11636 </attribute>
11637
11638 <attribute name="recompileUser" type="boolean">
11639 <desc>Switch for forcing code recompilation for user mode code.</desc>
11640 </attribute>
11641
11642 <attribute name="recompileSupervisor" type="boolean">
11643 <desc>Switch for forcing code recompilation for supervisor mode code.</desc>
11644 </attribute>
11645
11646 <attribute name="PATMEnabled" type="boolean">
11647 <desc>Switch for enabling and disabling the PATM component.</desc>
11648 </attribute>
11649
11650 <attribute name="CSAMEnabled" type="boolean">
11651 <desc>Switch for enabling and disabling the CSAM component.</desc>
11652 </attribute>
11653
11654 <attribute name="logEnabled" type="boolean">
11655 <desc>Switch for enabling and disabling logging.</desc>
11656 </attribute>
11657
11658 <attribute name="HWVirtExEnabled" type="boolean" readonly="yes">
11659 <desc>
11660 Flag indicating whether the VM is currently making use of CPU hardware
11661 virtualization extensions.
11662 </desc>
11663 </attribute>
11664
11665 <attribute name="HWVirtExNestedPagingEnabled" type="boolean" readonly="yes">
11666 <desc>
11667 Flag indicating whether the VM is currently making use of the nested paging
11668 CPU hardware virtualization extension.
11669 </desc>
11670 </attribute>
11671
11672 <attribute name="HWVirtExVPIDEnabled" type="boolean" readonly="yes">
11673 <desc>
11674 Flag indicating whether the VM is currently making use of the VPID
11675 VT-x extension.
11676 </desc>
11677 </attribute>
11678
11679 <attribute name="PAEEnabled" type="boolean" readonly="yes">
11680 <desc>
11681 Flag indicating whether the VM is currently making use of the Physical
11682 Address Extension CPU feature.
11683 </desc>
11684 </attribute>
11685
11686 <attribute name="virtualTimeRate" type="unsigned long">
11687 <desc>
11688 The rate at which the virtual time runs expressed as a percentage.
11689 The accepted range is 2% to 20000%.
11690 </desc>
11691 </attribute>
11692
11693 <!-- @todo method for setting log flags, groups and destination! -->
11694
11695 <attribute name="VM" type="long long" readonly="yes">
11696 <desc>
11697 Gets the VM handle. This is only for internal use while
11698 we carve the details of this interface.
11699 </desc>
11700 </attribute>
11701
11702 </interface>
11703
11704 <!--
11705 // IUSBController
11706 /////////////////////////////////////////////////////////////////////////
11707 -->
11708
11709 <interface
11710 name="IUSBController" extends="$unknown"
11711 uuid="6fdcccc5-abd3-4fec-9387-2ad3914fc4a8"
11712 wsmap="managed"
11713 >
11714 <attribute name="enabled" type="boolean">
11715 <desc>
11716 Flag whether the USB controller is present in the
11717 guest system. If disabled, the virtual guest hardware will
11718 not contain any USB controller. Can only be changed when
11719 the VM is powered off.
11720 </desc>
11721 </attribute>
11722
11723 <attribute name="enabledEhci" type="boolean">
11724 <desc>
11725 Flag whether the USB EHCI controller is present in the
11726 guest system. If disabled, the virtual guest hardware will
11727 not contain a USB EHCI controller. Can only be changed when
11728 the VM is powered off.
11729 </desc>
11730 </attribute>
11731
11732 <attribute name="proxyAvailable" type="boolean" readonly="yes">
11733 <desc>
11734 Flag whether there is an USB proxy available.
11735 </desc>
11736 </attribute>
11737
11738 <attribute name="USBStandard" type="unsigned short" readonly="yes">
11739 <desc>
11740 USB standard version which the controller implements.
11741 This is a BCD which means that the major version is in the
11742 high byte and minor version is in the low byte.
11743 </desc>
11744 </attribute>
11745
11746 <attribute name="deviceFilters" type="IUSBDeviceFilter" readonly="yes" safearray="yes">
11747 <desc>
11748 List of USB device filters associated with the machine.
11749
11750 If the machine is currently running, these filters are activated
11751 every time a new (supported) USB device is attached to the host
11752 computer that was not ignored by global filters
11753 (<link to="IHost::USBDeviceFilters"/>).
11754
11755 These filters are also activated when the machine is powered up.
11756 They are run against a list of all currently available USB
11757 devices (in states
11758 <link to="USBDeviceState_Available"/>,
11759 <link to="USBDeviceState_Busy"/>,
11760 <link to="USBDeviceState_Held"/>) that were not previously
11761 ignored by global filters.
11762
11763 If at least one filter matches the USB device in question, this
11764 device is automatically captured (attached to) the virtual USB
11765 controller of this machine.
11766
11767 <see>IUSBDeviceFilter, ::IUSBController</see>
11768 </desc>
11769 </attribute>
11770
11771 <method name="createDeviceFilter">
11772 <desc>
11773 Creates a new USB device filter. All attributes except
11774 the filter name are set to empty (any match),
11775 <i>active</i> is @c false (the filter is not active).
11776
11777 The created filter can then be added to the list of filters using
11778 <link to="#insertDeviceFilter"/>.
11779
11780 <result name="VBOX_E_INVALID_VM_STATE">
11781 The virtual machine is not mutable.
11782 </result>
11783
11784 <see>#deviceFilters</see>
11785 </desc>
11786 <param name="name" type="wstring" dir="in">
11787 <desc>
11788 Filter name. See <link to="IUSBDeviceFilter::name"/>
11789 for more info.
11790 </desc>
11791 </param>
11792 <param name="filter" type="IUSBDeviceFilter" dir="return">
11793 <desc>Created filter object.</desc>
11794 </param>
11795 </method>
11796
11797 <method name="insertDeviceFilter">
11798 <desc>
11799 Inserts the given USB device to the specified position
11800 in the list of filters.
11801
11802 Positions are numbered starting from <tt>0</tt>. If the specified
11803 position is equal to or greater than the number of elements in
11804 the list, the filter is added to the end of the collection.
11805
11806 <note>
11807 Duplicates are not allowed, so an attempt to insert a
11808 filter that is already in the collection, will return an
11809 error.
11810 </note>
11811
11812 <result name="VBOX_E_INVALID_VM_STATE">
11813 Virtual machine is not mutable.
11814 </result>
11815 <result name="E_INVALIDARG">
11816 USB device filter not created within this VirtualBox instance.
11817 </result>
11818 <result name="VBOX_E_INVALID_OBJECT_STATE">
11819 USB device filter already in list.
11820 </result>
11821
11822 <see>#deviceFilters</see>
11823 </desc>
11824 <param name="position" type="unsigned long" dir="in">
11825 <desc>Position to insert the filter to.</desc>
11826 </param>
11827 <param name="filter" type="IUSBDeviceFilter" dir="in">
11828 <desc>USB device filter to insert.</desc>
11829 </param>
11830 </method>
11831
11832 <method name="removeDeviceFilter">
11833 <desc>
11834 Removes a USB device filter from the specified position in the
11835 list of filters.
11836
11837 Positions are numbered starting from <tt>0</tt>. Specifying a
11838 position equal to or greater than the number of elements in
11839 the list will produce an error.
11840
11841 <see>#deviceFilters</see>
11842
11843 <result name="VBOX_E_INVALID_VM_STATE">
11844 Virtual machine is not mutable.
11845 </result>
11846 <result name="E_INVALIDARG">
11847 USB device filter list empty or invalid @a position.
11848 </result>
11849
11850 </desc>
11851 <param name="position" type="unsigned long" dir="in">
11852 <desc>Position to remove the filter from.</desc>
11853 </param>
11854 <param name="filter" type="IUSBDeviceFilter" dir="return">
11855 <desc>Removed USB device filter.</desc>
11856 </param>
11857 </method>
11858
11859 </interface>
11860
11861
11862 <!--
11863 // IUSBDevice
11864 /////////////////////////////////////////////////////////////////////////
11865 -->
11866
11867 <interface
11868 name="IUSBDevice" extends="$unknown"
11869 uuid="f8967b0b-4483-400f-92b5-8b675d98a85b"
11870 wsmap="managed"
11871 >
11872 <desc>
11873 The IUSBDevice interface represents a virtual USB device attached to the
11874 virtual machine.
11875
11876 A collection of objects implementing this interface is stored in the
11877 <link to="IConsole::USBDevices"/> attribute which lists all USB devices
11878 attached to a running virtual machine's USB controller.
11879 </desc>
11880
11881 <attribute name="id" type="uuid" mod="string" readonly="yes">
11882 <desc>
11883 Unique USB device ID. This ID is built from #vendorId,
11884 #productId, #revision and #serialNumber.
11885 </desc>
11886 </attribute>
11887
11888 <attribute name="vendorId" type="unsigned short" readonly="yes">
11889 <desc>Vendor ID.</desc>
11890 </attribute>
11891
11892 <attribute name="productId" type="unsigned short" readonly="yes">
11893 <desc>Product ID.</desc>
11894 </attribute>
11895
11896 <attribute name="revision" type="unsigned short" readonly="yes">
11897 <desc>
11898 Product revision number. This is a packed BCD represented as
11899 unsigned short. The high byte is the integer part and the low
11900 byte is the decimal.
11901 </desc>
11902 </attribute>
11903
11904 <attribute name="manufacturer" type="wstring" readonly="yes">
11905 <desc>Manufacturer string.</desc>
11906 </attribute>
11907
11908 <attribute name="product" type="wstring" readonly="yes">
11909 <desc>Product string.</desc>
11910 </attribute>
11911
11912 <attribute name="serialNumber" type="wstring" readonly="yes">
11913 <desc>Serial number string.</desc>
11914 </attribute>
11915
11916 <attribute name="address" type="wstring" readonly="yes">
11917 <desc>Host specific address of the device.</desc>
11918 </attribute>
11919
11920 <attribute name="port" type="unsigned short" readonly="yes">
11921 <desc>
11922 Host USB port number the device is physically
11923 connected to.
11924 </desc>
11925 </attribute>
11926
11927 <attribute name="version" type="unsigned short" readonly="yes">
11928 <desc>
11929 The major USB version of the device - 1 or 2.
11930 </desc>
11931 </attribute>
11932
11933 <attribute name="portVersion" type="unsigned short" readonly="yes">
11934 <desc>
11935 The major USB version of the host USB port the device is
11936 physically connected to - 1 or 2. For devices not connected to
11937 anything this will have the same value as the version attribute.
11938 </desc>
11939 </attribute>
11940
11941 <attribute name="remote" type="boolean" readonly="yes">
11942 <desc>
11943 Whether the device is physically connected to a remote VRDE
11944 client or to a local host machine.
11945 </desc>
11946 </attribute>
11947
11948 </interface>
11949
11950
11951 <!--
11952 // IUSBDeviceFilter
11953 /////////////////////////////////////////////////////////////////////////
11954 -->
11955
11956 <interface
11957 name="IUSBDeviceFilter" extends="$unknown"
11958 uuid="d6831fb4-1a94-4c2c-96ef-8d0d6192066d"
11959 wsmap="managed"
11960 >
11961 <desc>
11962 The IUSBDeviceFilter interface represents an USB device filter used
11963 to perform actions on a group of USB devices.
11964
11965 This type of filters is used by running virtual machines to
11966 automatically capture selected USB devices once they are physically
11967 attached to the host computer.
11968
11969 A USB device is matched to the given device filter if and only if all
11970 attributes of the device match the corresponding attributes of the
11971 filter (that is, attributes are joined together using the logical AND
11972 operation). On the other hand, all together, filters in the list of
11973 filters carry the semantics of the logical OR operation. So if it is
11974 desirable to create a match like "this vendor id OR this product id",
11975 one needs to create two filters and specify "any match" (see below)
11976 for unused attributes.
11977
11978 All filter attributes used for matching are strings. Each string
11979 is an expression representing a set of values of the corresponding
11980 device attribute, that will match the given filter. Currently, the
11981 following filtering expressions are supported:
11982
11983 <ul>
11984 <li><i>Interval filters</i>. Used to specify valid intervals for
11985 integer device attributes (Vendor ID, Product ID and Revision).
11986 The format of the string is:
11987
11988 <tt>int:((m)|([m]-[n]))(,(m)|([m]-[n]))*</tt>
11989
11990 where <tt>m</tt> and <tt>n</tt> are integer numbers, either in octal
11991 (starting from <tt>0</tt>), hexadecimal (starting from <tt>0x</tt>)
11992 or decimal (otherwise) form, so that <tt>m &lt; n</tt>. If <tt>m</tt>
11993 is omitted before a dash (<tt>-</tt>), the minimum possible integer
11994 is assumed; if <tt>n</tt> is omitted after a dash, the maximum
11995 possible integer is assumed.
11996 </li>
11997 <li><i>Boolean filters</i>. Used to specify acceptable values for
11998 boolean device attributes. The format of the string is:
11999
12000 <tt>true|false|yes|no|0|1</tt>
12001
12002 </li>
12003 <li><i>Exact match</i>. Used to specify a single value for the given
12004 device attribute. Any string that doesn't start with <tt>int:</tt>
12005 represents the exact match. String device attributes are compared to
12006 this string including case of symbols. Integer attributes are first
12007 converted to a string (see individual filter attributes) and then
12008 compared ignoring case.
12009
12010 </li>
12011 <li><i>Any match</i>. Any value of the corresponding device attribute
12012 will match the given filter. An empty or @c null string is
12013 used to construct this type of filtering expressions.
12014
12015 </li>
12016 </ul>
12017
12018 <note>
12019 On the Windows host platform, interval filters are not currently
12020 available. Also all string filter attributes
12021 (<link to="#manufacturer"/>, <link to="#product"/>,
12022 <link to="#serialNumber"/>) are ignored, so they behave as
12023 <i>any match</i> no matter what string expression is specified.
12024 </note>
12025
12026 <see>IUSBController::deviceFilters, IHostUSBDeviceFilter</see>
12027 </desc>
12028
12029 <attribute name="name" type="wstring">
12030 <desc>
12031 Visible name for this filter.
12032 This name is used to visually distinguish one filter from another,
12033 so it can neither be @c null nor an empty string.
12034 </desc>
12035 </attribute>
12036
12037 <attribute name="active" type="boolean">
12038 <desc>Whether this filter active or has been temporarily disabled.</desc>
12039 </attribute>
12040
12041 <attribute name="vendorId" type="wstring">
12042 <desc>
12043 <link to="IUSBDevice::vendorId">Vendor ID</link> filter.
12044 The string representation for the <i>exact matching</i>
12045 has the form <tt>XXXX</tt>, where <tt>X</tt> is the hex digit
12046 (including leading zeroes).
12047 </desc>
12048 </attribute>
12049
12050 <attribute name="productId" type="wstring">
12051 <desc>
12052 <link to="IUSBDevice::productId">Product ID</link> filter.
12053 The string representation for the <i>exact matching</i>
12054 has the form <tt>XXXX</tt>, where <tt>X</tt> is the hex digit
12055 (including leading zeroes).
12056 </desc>
12057 </attribute>
12058
12059 <attribute name="revision" type="wstring">
12060 <desc>
12061 <link to="IUSBDevice::productId">Product revision number</link>
12062 filter. The string representation for the <i>exact matching</i>
12063 has the form <tt>IIFF</tt>, where <tt>I</tt> is the decimal digit
12064 of the integer part of the revision, and <tt>F</tt> is the
12065 decimal digit of its fractional part (including leading and
12066 trailing zeros).
12067 Note that for interval filters, it's best to use the hexadecimal
12068 form, because the revision is stored as a 16 bit packed BCD value;
12069 so the expression <tt>int:0x0100-0x0199</tt> will match any
12070 revision from <tt>1.0</tt> to <tt>1.99</tt>.
12071 </desc>
12072 </attribute>
12073
12074 <attribute name="manufacturer" type="wstring">
12075 <desc>
12076 <link to="IUSBDevice::manufacturer">Manufacturer</link> filter.
12077 </desc>
12078 </attribute>
12079
12080 <attribute name="product" type="wstring">
12081 <desc>
12082 <link to="IUSBDevice::product">Product</link> filter.
12083 </desc>
12084 </attribute>
12085
12086 <attribute name="serialNumber" type="wstring">
12087 <desc>
12088 <link to="IUSBDevice::serialNumber">Serial number</link> filter.
12089 </desc>
12090 </attribute>
12091
12092 <attribute name="port" type="wstring">
12093 <desc>
12094 <link to="IUSBDevice::port">Host USB port</link> filter.
12095 </desc>
12096 </attribute>
12097
12098 <attribute name="remote" type="wstring">
12099 <desc>
12100 <link to="IUSBDevice::remote">Remote state</link> filter.
12101 <note>
12102 This filter makes sense only for machine USB filters,
12103 i.e. it is ignored by IHostUSBDeviceFilter objects.
12104 </note>
12105 </desc>
12106 </attribute>
12107
12108 <attribute name="maskedInterfaces" type="unsigned long">
12109 <desc>
12110 This is an advanced option for hiding one or more USB interfaces
12111 from the guest. The value is a bit mask where the bits that are set
12112 means the corresponding USB interface should be hidden, masked off
12113 if you like.
12114 This feature only works on Linux hosts.
12115 </desc>
12116 </attribute>
12117
12118 </interface>
12119
12120
12121 <!--
12122 // IHostUSBDevice
12123 /////////////////////////////////////////////////////////////////////////
12124 -->
12125
12126 <enum
12127 name="USBDeviceState"
12128 uuid="b99a2e65-67fb-4882-82fd-f3e5e8193ab4"
12129 >
12130 <desc>
12131 USB device state. This enumeration represents all possible states
12132 of the USB device physically attached to the host computer regarding
12133 its state on the host computer and availability to guest computers
12134 (all currently running virtual machines).
12135
12136 Once a supported USB device is attached to the host, global USB
12137 filters (<link to="IHost::USBDeviceFilters"/>) are activated. They can
12138 either ignore the device, or put it to USBDeviceState_Held state, or do
12139 nothing. Unless the device is ignored by global filters, filters of all
12140 currently running guests (<link to="IUSBController::deviceFilters"/>) are
12141 activated that can put it to USBDeviceState_Captured state.
12142
12143 If the device was ignored by global filters, or didn't match
12144 any filters at all (including guest ones), it is handled by the host
12145 in a normal way. In this case, the device state is determined by
12146 the host and can be one of USBDeviceState_Unavailable, USBDeviceState_Busy
12147 or USBDeviceState_Available, depending on the current device usage.
12148
12149 Besides auto-capturing based on filters, the device can be manually
12150 captured by guests (<link to="IConsole::attachUSBDevice"/>) if its
12151 state is USBDeviceState_Busy, USBDeviceState_Available or
12152 USBDeviceState_Held.
12153
12154 <note>
12155 Due to differences in USB stack implementations in Linux and Win32,
12156 states USBDeviceState_Busy and USBDeviceState_Unavailable are applicable
12157 only to the Linux version of the product. This also means that (<link
12158 to="IConsole::attachUSBDevice"/>) can only succeed on Win32 if the
12159 device state is USBDeviceState_Held.
12160 </note>
12161
12162 <see>IHostUSBDevice, IHostUSBDeviceFilter</see>
12163 </desc>
12164
12165 <const name="NotSupported" value="0">
12166 <desc>
12167 Not supported by the VirtualBox server, not available to guests.
12168 </desc>
12169 </const>
12170 <const name="Unavailable" value="1">
12171 <desc>
12172 Being used by the host computer exclusively,
12173 not available to guests.
12174 </desc>
12175 </const>
12176 <const name="Busy" value="2">
12177 <desc>
12178 Being used by the host computer, potentially available to guests.
12179 </desc>
12180 </const>
12181 <const name="Available" value="3">
12182 <desc>
12183 Not used by the host computer, available to guests (the host computer
12184 can also start using the device at any time).
12185 </desc>
12186 </const>
12187 <const name="Held" value="4">
12188 <desc>
12189 Held by the VirtualBox server (ignored by the host computer),
12190 available to guests.
12191 </desc>
12192 </const>
12193 <const name="Captured" value="5">
12194 <desc>
12195 Captured by one of the guest computers, not available
12196 to anybody else.
12197 </desc>
12198 </const>
12199 </enum>
12200
12201 <interface
12202 name="IHostUSBDevice" extends="IUSBDevice"
12203 uuid="173b4b44-d268-4334-a00d-b6521c9a740a"
12204 wsmap="managed"
12205 >
12206 <desc>
12207 The IHostUSBDevice interface represents a physical USB device attached
12208 to the host computer.
12209
12210 Besides properties inherited from IUSBDevice, this interface adds the
12211 <link to="#state"/> property that holds the current state of the USB
12212 device.
12213
12214 <see>IHost::USBDevices, IHost::USBDeviceFilters</see>
12215 </desc>
12216
12217 <attribute name="state" type="USBDeviceState" readonly="yes">
12218 <desc>
12219 Current state of the device.
12220 </desc>
12221 </attribute>
12222
12223 <!-- @todo add class, subclass, bandwidth, configs, interfaces endpoints and such later. -->
12224
12225 </interface>
12226
12227
12228 <!--
12229 // IHostUSBDeviceFilter
12230 /////////////////////////////////////////////////////////////////////////
12231 -->
12232
12233 <enum
12234 name="USBDeviceFilterAction"
12235 uuid="cbc30a49-2f4e-43b5-9da6-121320475933"
12236 >
12237 <desc>
12238 Actions for host USB device filters.
12239 <see>IHostUSBDeviceFilter, USBDeviceState</see>
12240 </desc>
12241
12242 <const name="Null" value="0">
12243 <desc>Null value (never used by the API).</desc>
12244 </const>
12245 <const name="Ignore" value="1">
12246 <desc>Ignore the matched USB device.</desc>
12247 </const>
12248 <const name="Hold" value="2">
12249 <desc>Hold the matched USB device.</desc>
12250 </const>
12251 </enum>
12252
12253 <interface
12254 name="IHostUSBDeviceFilter" extends="IUSBDeviceFilter"
12255 uuid="4cc70246-d74a-400f-8222-3900489c0374"
12256 wsmap="managed"
12257 >
12258 <desc>
12259 The IHostUSBDeviceFilter interface represents a global filter for a
12260 physical USB device used by the host computer. Used indirectly in
12261 <link to="IHost::USBDeviceFilters"/>.
12262
12263 Using filters of this type, the host computer determines the initial
12264 state of the USB device after it is physically attached to the
12265 host's USB controller.
12266
12267 <note>
12268 The <link to="IUSBDeviceFilter::remote"/> attribute is ignored by this type of
12269 filters, because it makes sense only for
12270 <link to="IUSBController::deviceFilters">machine USB filters</link>.
12271 </note>
12272
12273 <see>IHost::USBDeviceFilters</see>
12274 </desc>
12275
12276 <attribute name="action" type="USBDeviceFilterAction">
12277 <desc>
12278 Action performed by the host when an attached USB device
12279 matches this filter.
12280 </desc>
12281 </attribute>
12282
12283 </interface>
12284
12285 <!--
12286 // IAudioAdapter
12287 /////////////////////////////////////////////////////////////////////////
12288 -->
12289
12290 <enum
12291 name="AudioDriverType"
12292 uuid="4bcc3d73-c2fe-40db-b72f-0c2ca9d68496"
12293 >
12294 <desc>
12295 Host audio driver type.
12296 </desc>
12297
12298 <const name="Null" value="0">
12299 <desc>Null value, also means "dummy audio driver".</desc>
12300 </const>
12301 <const name="WinMM" value="1">
12302 <desc>Windows multimedia (Windows hosts only).</desc>
12303 </const>
12304 <const name="OSS" value="2">
12305 <desc>Open Sound System (Linux hosts only).</desc>
12306 </const>
12307 <const name="ALSA" value="3">
12308 <desc>Advanced Linux Sound Architecture (Linux hosts only).</desc>
12309 </const>
12310 <const name="DirectSound" value="4">
12311 <desc>DirectSound (Windows hosts only).</desc>
12312 </const>
12313 <const name="CoreAudio" value="5">
12314 <desc>CoreAudio (Mac hosts only).</desc>
12315 </const>
12316 <const name="MMPM" value="6">
12317 <desc>Reserved for historical reasons.</desc>
12318 </const>
12319 <const name="Pulse" value="7">
12320 <desc>PulseAudio (Linux hosts only).</desc>
12321 </const>
12322 <const name="SolAudio" value="8">
12323 <desc>Solaris audio (Solaris hosts only).</desc>
12324 </const>
12325 </enum>
12326
12327 <enum
12328 name="AudioControllerType"
12329 uuid="7afd395c-42c3-444e-8788-3ce80292f36c"
12330 >
12331 <desc>
12332 Virtual audio controller type.
12333 </desc>
12334
12335 <const name="AC97" value="0"/>
12336 <const name="SB16" value="1"/>
12337 <const name="HDA" value="2"/>
12338 </enum>
12339
12340 <interface
12341 name="IAudioAdapter" extends="$unknown"
12342 uuid="921873db-5f3f-4b69-91f9-7be9e535a2cb"
12343 wsmap="managed"
12344 >
12345 <desc>
12346 The IAudioAdapter interface represents the virtual audio adapter of
12347 the virtual machine. Used in <link to="IMachine::audioAdapter"/>.
12348 </desc>
12349 <attribute name="enabled" type="boolean">
12350 <desc>
12351 Flag whether the audio adapter is present in the
12352 guest system. If disabled, the virtual guest hardware will
12353 not contain any audio adapter. Can only be changed when
12354 the VM is not running.
12355 </desc>
12356 </attribute>
12357 <attribute name="audioController" type="AudioControllerType">
12358 <desc>
12359 The audio hardware we emulate.
12360 </desc>
12361 </attribute>
12362 <attribute name="audioDriver" type="AudioDriverType">
12363 <desc>
12364 Audio driver the adapter is connected to. This setting
12365 can only be changed when the VM is not running.
12366 </desc>
12367 </attribute>
12368 </interface>
12369
12370 <enum
12371 name="AuthType"
12372 uuid="7eef6ef6-98c2-4dc2-ab35-10d2b292028d"
12373 >
12374 <desc>
12375 VirtualBox authentication type.
12376 </desc>
12377
12378 <const name="Null" value="0">
12379 <desc>Null value, also means "no authentication".</desc>
12380 </const>
12381 <const name="External" value="1"/>
12382 <const name="Guest" value="2"/>
12383 </enum>
12384
12385 <!--
12386 // IVRDEServer
12387 /////////////////////////////////////////////////////////////////////////
12388 -->
12389
12390 <interface
12391 name="IVRDEServer" extends="$unknown"
12392 uuid="f68a6b34-6f09-4040-8de1-e8d746c4a9ea"
12393 wsmap="managed"
12394 >
12395 <attribute name="enabled" type="boolean">
12396 <desc>VRDE server status.</desc>
12397 </attribute>
12398
12399 <attribute name="authType" type="AuthType">
12400 <desc>VRDE authentication method.</desc>
12401 </attribute>
12402
12403 <attribute name="authTimeout" type="unsigned long">
12404 <desc>Timeout for guest authentication. Milliseconds.</desc>
12405 </attribute>
12406
12407 <attribute name="allowMultiConnection" type="boolean">
12408 <desc>
12409 Flag whether multiple simultaneous connections to the VM are permitted.
12410 Note that this will be replaced by a more powerful mechanism in the future.
12411 </desc>
12412 </attribute>
12413
12414 <attribute name="reuseSingleConnection" type="boolean">
12415 <desc>
12416 Flag whether the existing connection must be dropped and a new connection
12417 must be established by the VRDE server, when a new client connects in single
12418 connection mode.
12419 </desc>
12420 </attribute>
12421
12422 <attribute name="videoChannel" type="boolean">
12423 <desc>
12424 Flag whether video redirectiron channel is enabled.
12425 </desc>
12426 </attribute>
12427
12428 <attribute name="videoChannelQuality" type="unsigned long">
12429 <desc>
12430 Image quality in percents.
12431 </desc>
12432 </attribute>
12433
12434 <attribute name="VRDELibrary" type="wstring">
12435 <desc>
12436 VRDE library used by this VM. Overrides
12437 <link to="ISystemProperties::defaultVRDELibrary"/>.
12438 </desc>
12439 </attribute>
12440
12441 <method name="setVRDEProperty">
12442 <desc>
12443 Sets a VRDE specific property string.
12444
12445 If you pass @c null or empty string as a key @a value, the given @a key
12446 will be deleted.
12447
12448 </desc>
12449 <param name="key" type="wstring" dir="in">
12450 <desc>Name of the key to set.</desc>
12451 </param>
12452 <param name="value" type="wstring" dir="in">
12453 <desc>Value to assign to the key.</desc>
12454 </param>
12455 </method>
12456
12457 <method name="getVRDEProperty">
12458 <desc>
12459 Returns a VRDE specific property string.
12460
12461 If the requested data @a key does not exist, this function will
12462 succeed and return an empty string in the @a value argument.
12463
12464 </desc>
12465 <param name="key" type="wstring" dir="in">
12466 <desc>Name of the key to get.</desc>
12467 </param>
12468 <param name="value" type="wstring" dir="return">
12469 <desc>Value of the requested key.</desc>
12470 </param>
12471 </method>
12472
12473 </interface>
12474
12475
12476 <!--
12477 // ISharedFolder
12478 /////////////////////////////////////////////////////////////////////////
12479 -->
12480
12481 <interface
12482 name="ISharedFolder" extends="$unknown"
12483 uuid="8388da11-b559-4574-a5b7-2bd7acd5cef8"
12484 wsmap="struct"
12485 >
12486 <desc>
12487 The ISharedFolder interface represents a folder in the host computer's
12488 file system accessible from the guest OS running inside a virtual
12489 machine using an associated logical name.
12490
12491 There are three types of shared folders:
12492 <ul>
12493 <li><i>Global</i> (<link to="IVirtualBox::sharedFolders"/>), shared
12494 folders available to all virtual machines.</li>
12495 <li><i>Permanent</i> (<link to="IMachine::sharedFolders"/>),
12496 VM-specific shared folders available to the given virtual machine at
12497 startup.</li>
12498 <li><i>Transient</i> (<link to="IConsole::sharedFolders"/>),
12499 VM-specific shared folders created in the session context (for
12500 example, when the virtual machine is running) and automatically
12501 discarded when the session is closed (the VM is powered off).</li>
12502 </ul>
12503
12504 Logical names of shared folders must be unique within the given scope
12505 (global, permanent or transient). However, they do not need to be unique
12506 across scopes. In this case, the definition of the shared folder in a
12507 more specific scope takes precedence over definitions in all other
12508 scopes. The order of precedence is (more specific to more general):
12509 <ol>
12510 <li>Transient definitions</li>
12511 <li>Permanent definitions</li>
12512 <li>Global definitions</li>
12513 </ol>
12514
12515 For example, if MyMachine has a shared folder named
12516 <tt>C_DRIVE</tt> (that points to <tt>C:\\</tt>), then creating a
12517 transient shared folder named <tt>C_DRIVE</tt> (that points
12518 to <tt>C:\\\\WINDOWS</tt>) will change the definition
12519 of <tt>C_DRIVE</tt> in the guest OS so
12520 that <tt>\\\\VBOXSVR\\C_DRIVE</tt> will give access
12521 to <tt>C:\\WINDOWS</tt> instead of <tt>C:\\</tt> on the host
12522 PC. Removing the transient shared folder <tt>C_DRIVE</tt> will restore
12523 the previous (permanent) definition of <tt>C_DRIVE</tt> that points
12524 to <tt>C:\\</tt> if it still exists.
12525
12526 Note that permanent and transient shared folders of different machines
12527 are in different name spaces, so they don't overlap and don't need to
12528 have unique logical names.
12529
12530 <note>
12531 Global shared folders are not implemented in the current version of the
12532 product.
12533 </note>
12534 </desc>
12535
12536 <attribute name="name" type="wstring" readonly="yes">
12537 <desc>Logical name of the shared folder.</desc>
12538 </attribute>
12539
12540 <attribute name="hostPath" type="wstring" readonly="yes">
12541 <desc>Full path to the shared folder in the host file system.</desc>
12542 </attribute>
12543
12544 <attribute name="accessible" type="boolean" readonly="yes">
12545 <desc>
12546 Whether the folder defined by the host path is currently
12547 accessible or not.
12548 For example, the folder can be inaccessible if it is placed
12549 on the network share that is not available by the time
12550 this property is read.
12551 </desc>
12552 </attribute>
12553
12554 <attribute name="writable" type="boolean" readonly="yes">
12555 <desc>
12556 Whether the folder defined by the host path is writable or
12557 not.
12558 </desc>
12559 </attribute>
12560
12561 <attribute name="autoMount" type="boolean" readonly="yes">
12562 <desc>
12563 Whether the folder gets automatically mounted by the guest or not.
12564 </desc>
12565 </attribute>
12566
12567 <attribute name="lastAccessError" type="wstring" readonly="yes">
12568 <desc>
12569 Text message that represents the result of the last accessibility
12570 check.
12571
12572 Accessibility checks are performed each time the <link to="#accessible"/>
12573 attribute is read. An empty string is returned if the last
12574 accessibility check was successful. A non-empty string indicates a
12575 failure and should normally describe a reason of the failure (for
12576 example, a file read error).
12577 </desc>
12578 </attribute>
12579
12580 </interface>
12581
12582 <!--
12583 // ISession
12584 /////////////////////////////////////////////////////////////////////////
12585 -->
12586
12587 <interface
12588 name="IInternalSessionControl" extends="$unknown"
12589 uuid="06ef98a7-f7c0-45ba-bf99-9aca7a4d5530"
12590 internal="yes"
12591 wsmap="suppress"
12592 >
12593 <method name="getPID">
12594 <desc>PID of the process that has created this Session object.
12595 </desc>
12596 <param name="pid" type="unsigned long" dir="return"/>
12597 </method>
12598
12599 <method name="getRemoteConsole">
12600 <desc>
12601 Returns the console object suitable for remote control.
12602
12603 <result name="VBOX_E_INVALID_VM_STATE">
12604 Session state prevents operation.
12605 </result>
12606 <result name="VBOX_E_INVALID_OBJECT_STATE">
12607 Session type prevents operation.
12608 </result>
12609
12610 </desc>
12611 <param name="console" type="IConsole" dir="return"/>
12612 </method>
12613
12614 <method name="assignMachine">
12615 <desc>
12616 Assigns the machine object associated with this direct-type
12617 session or informs the session that it will be a remote one
12618 (if @a machine == @c null).
12619
12620 <result name="VBOX_E_INVALID_VM_STATE">
12621 Session state prevents operation.
12622 </result>
12623 <result name="VBOX_E_INVALID_OBJECT_STATE">
12624 Session type prevents operation.
12625 </result>
12626
12627 </desc>
12628 <param name="machine" type="IMachine" dir="in"/>
12629 </method>
12630
12631 <method name="assignRemoteMachine">
12632 <desc>
12633 Assigns the machine and the (remote) console object associated with
12634 this remote-type session.
12635
12636 <result name="VBOX_E_INVALID_VM_STATE">
12637 Session state prevents operation.
12638 </result>
12639
12640 </desc>
12641 <param name="machine" type="IMachine" dir="in"/>
12642 <param name="console" type="IConsole" dir="in"/>
12643 </method>
12644
12645 <method name="updateMachineState">
12646 <desc>
12647 Updates the machine state in the VM process.
12648 Must be called only in certain cases
12649 (see the method implementation).
12650
12651 <result name="VBOX_E_INVALID_VM_STATE">
12652 Session state prevents operation.
12653 </result>
12654 <result name="VBOX_E_INVALID_OBJECT_STATE">
12655 Session type prevents operation.
12656 </result>
12657
12658 </desc>
12659 <param name="aMachineState" type="MachineState" dir="in"/>
12660 </method>
12661
12662 <method name="uninitialize">
12663 <desc>
12664 Uninitializes (closes) this session. Used by VirtualBox to close
12665 the corresponding remote session when the direct session dies
12666 or gets closed.
12667
12668 <result name="VBOX_E_INVALID_VM_STATE">
12669 Session state prevents operation.
12670 </result>
12671
12672 </desc>
12673 </method>
12674
12675 <method name="onNetworkAdapterChange">
12676 <desc>
12677 Triggered when settings of a network adapter of the
12678 associated virtual machine have changed.
12679
12680 <result name="VBOX_E_INVALID_VM_STATE">
12681 Session state prevents operation.
12682 </result>
12683 <result name="VBOX_E_INVALID_OBJECT_STATE">
12684 Session type prevents operation.
12685 </result>
12686
12687 </desc>
12688 <param name="networkAdapter" type="INetworkAdapter" dir="in"/>
12689 <param name="changeAdapter" type="boolean" dir="in"/>
12690 </method>
12691
12692 <method name="onSerialPortChange">
12693 <desc>
12694 Triggered when settings of a serial port of the
12695 associated virtual machine have changed.
12696
12697 <result name="VBOX_E_INVALID_VM_STATE">
12698 Session state prevents operation.
12699 </result>
12700 <result name="VBOX_E_INVALID_OBJECT_STATE">
12701 Session type prevents operation.
12702 </result>
12703
12704 </desc>
12705 <param name="serialPort" type="ISerialPort" dir="in"/>
12706 </method>
12707
12708 <method name="onParallelPortChange">
12709 <desc>
12710 Triggered when settings of a parallel port of the
12711 associated virtual machine have changed.
12712
12713 <result name="VBOX_E_INVALID_VM_STATE">
12714 Session state prevents operation.
12715 </result>
12716 <result name="VBOX_E_INVALID_OBJECT_STATE">
12717 Session type prevents operation.
12718 </result>
12719
12720 </desc>
12721 <param name="parallelPort" type="IParallelPort" dir="in"/>
12722 </method>
12723
12724 <method name="onStorageControllerChange">
12725 <desc>
12726 Triggered when settings of a storage controller of the
12727 associated virtual machine have changed.
12728
12729 <result name="VBOX_E_INVALID_VM_STATE">
12730 Session state prevents operation.
12731 </result>
12732 <result name="VBOX_E_INVALID_OBJECT_STATE">
12733 Session type prevents operation.
12734 </result>
12735
12736 </desc>
12737 </method>
12738
12739 <method name="onMediumChange">
12740 <desc>
12741 Triggered when attached media of the
12742 associated virtual machine have changed.
12743
12744 <result name="VBOX_E_INVALID_VM_STATE">
12745 Session state prevents operation.
12746 </result>
12747 <result name="VBOX_E_INVALID_OBJECT_STATE">
12748 Session type prevents operation.
12749 </result>
12750
12751 </desc>
12752
12753 <param name="mediumAttachment" type="IMediumAttachment" dir="in"/>
12754 <param name="force" type="boolean" dir="in"/>
12755 </method>
12756
12757 <method name="onCPUChange">
12758 <desc>
12759 Notification when a CPU changes.
12760 </desc>
12761 <param name="cpu" type="unsigned long" dir="in">
12762 <desc>The CPU which changed</desc>
12763 </param>
12764 <param name="add" type="boolean" dir="in">
12765 <desc>Flag whether the CPU was added or removed</desc>
12766 </param>
12767 </method>
12768
12769 <method name="onCPUExecutionCapChange">
12770 <desc>
12771 Notification when the CPU execution cap changes.
12772 </desc>
12773 <param name="executionCap" type="unsigned long" dir="in">
12774 <desc>The new CPU execution cap value. (1-100)</desc>
12775 </param>
12776 </method>
12777
12778 <method name="onVRDEServerChange">
12779 <desc>
12780 Triggered when settings of the VRDE server object of the
12781 associated virtual machine have changed.
12782
12783 <result name="VBOX_E_INVALID_VM_STATE">
12784 Session state prevents operation.
12785 </result>
12786 <result name="VBOX_E_INVALID_OBJECT_STATE">
12787 Session type prevents operation.
12788 </result>
12789
12790 </desc>
12791 <param name="restart" type="boolean" dir="in">
12792 <desc>Flag whether the server must be restarted</desc>
12793 </param>
12794 </method>
12795
12796 <method name="onUSBControllerChange">
12797 <desc>
12798 Triggered when settings of the USB controller object of the
12799 associated virtual machine have changed.
12800
12801 <result name="VBOX_E_INVALID_VM_STATE">
12802 Session state prevents operation.
12803 </result>
12804 <result name="VBOX_E_INVALID_OBJECT_STATE">
12805 Session type prevents operation.
12806 </result>
12807
12808 </desc>
12809 </method>
12810
12811 <method name="onSharedFolderChange">
12812 <desc>
12813 Triggered when a permanent (global or machine) shared folder has been
12814 created or removed.
12815 <note>
12816 We don't pass shared folder parameters in this notification because
12817 the order in which parallel notifications are delivered is not defined,
12818 therefore it could happen that these parameters were outdated by the
12819 time of processing this notification.
12820 </note>
12821
12822 <result name="VBOX_E_INVALID_VM_STATE">
12823 Session state prevents operation.
12824 </result>
12825 <result name="VBOX_E_INVALID_OBJECT_STATE">
12826 Session type prevents operation.
12827 </result>
12828
12829 </desc>
12830 <param name="global" type="boolean" dir="in"/>
12831 </method>
12832
12833 <method name="onUSBDeviceAttach">
12834 <desc>
12835 Triggered when a request to capture a USB device (as a result
12836 of matched USB filters or direct call to
12837 <link to="IConsole::attachUSBDevice"/>) has completed.
12838 A @c null @a error object means success, otherwise it
12839 describes a failure.
12840
12841 <result name="VBOX_E_INVALID_VM_STATE">
12842 Session state prevents operation.
12843 </result>
12844 <result name="VBOX_E_INVALID_OBJECT_STATE">
12845 Session type prevents operation.
12846 </result>
12847
12848 </desc>
12849 <param name="device" type="IUSBDevice" dir="in"/>
12850 <param name="error" type="IVirtualBoxErrorInfo" dir="in"/>
12851 <param name="maskedInterfaces" type="unsigned long" dir="in"/>
12852 </method>
12853
12854 <method name="onUSBDeviceDetach">
12855 <desc>
12856 Triggered when a request to release the USB device (as a result
12857 of machine termination or direct call to
12858 <link to="IConsole::detachUSBDevice"/>) has completed.
12859 A @c null @a error object means success, otherwise it
12860 describes a failure.
12861
12862 <result name="VBOX_E_INVALID_VM_STATE">
12863 Session state prevents operation.
12864 </result>
12865 <result name="VBOX_E_INVALID_OBJECT_STATE">
12866 Session type prevents operation.
12867 </result>
12868
12869 </desc>
12870 <param name="id" type="uuid" mod="string" dir="in"/>
12871 <param name="error" type="IVirtualBoxErrorInfo" dir="in"/>
12872 </method>
12873
12874 <method name="onShowWindow">
12875 <desc>
12876 Called by <link to="IMachine::canShowConsoleWindow"/> and by
12877 <link to="IMachine::showConsoleWindow"/> in order to notify
12878 console listeners
12879 <link to="ICanShowWindowEvent"/>
12880 and <link to="IShowWindowEvent"/>.
12881
12882 <result name="VBOX_E_INVALID_OBJECT_STATE">
12883 Session type prevents operation.
12884 </result>
12885
12886 </desc>
12887 <param name="check" type="boolean" dir="in"/>
12888 <param name="canShow" type="boolean" dir="out"/>
12889 <param name="winId" type="long long" dir="out"/>
12890 </method>
12891
12892 <method name="accessGuestProperty">
12893 <desc>
12894 Called by <link to="IMachine::getGuestProperty"/> and by
12895 <link to="IMachine::setGuestProperty"/> in order to read and
12896 modify guest properties.
12897
12898 <result name="VBOX_E_INVALID_VM_STATE">
12899 Machine session is not open.
12900 </result>
12901 <result name="VBOX_E_INVALID_OBJECT_STATE">
12902 Session type is not direct.
12903 </result>
12904
12905 </desc>
12906 <param name="name" type="wstring" dir="in"/>
12907 <param name="value" type="wstring" dir="in"/>
12908 <param name="flags" type="wstring" dir="in"/>
12909 <param name="isSetter" type="boolean" dir="in"/>
12910 <param name="retValue" type="wstring" dir="out"/>
12911 <param name="retTimestamp" type="long long" dir="out"/>
12912 <param name="retFlags" type="wstring" dir="out"/>
12913 </method>
12914
12915 <method name="enumerateGuestProperties">
12916 <desc>
12917 Return a list of the guest properties matching a set of patterns along
12918 with their values, time stamps and flags.
12919
12920 <result name="VBOX_E_INVALID_VM_STATE">
12921 Machine session is not open.
12922 </result>
12923 <result name="VBOX_E_INVALID_OBJECT_STATE">
12924 Session type is not direct.
12925 </result>
12926
12927 </desc>
12928 <param name="patterns" type="wstring" dir="in">
12929 <desc>
12930 The patterns to match the properties against as a comma-separated
12931 string. If this is empty, all properties currently set will be
12932 returned.
12933 </desc>
12934 </param>
12935 <param name="key" type="wstring" dir="out" safearray="yes">
12936 <desc>
12937 The key names of the properties returned.
12938 </desc>
12939 </param>
12940 <param name="value" type="wstring" dir="out" safearray="yes">
12941 <desc>
12942 The values of the properties returned. The array entries match the
12943 corresponding entries in the @a key array.
12944 </desc>
12945 </param>
12946 <param name="timestamp" type="long long" dir="out" safearray="yes">
12947 <desc>
12948 The time stamps of the properties returned. The array entries match
12949 the corresponding entries in the @a key array.
12950 </desc>
12951 </param>
12952 <param name="flags" type="wstring" dir="out" safearray="yes">
12953 <desc>
12954 The flags of the properties returned. The array entries match the
12955 corresponding entries in the @a key array.
12956 </desc>
12957 </param>
12958 </method>
12959
12960 <method name="onlineMergeMedium">
12961 <desc>
12962 Triggers online merging of a hard disk. Used internally when deleting
12963 a snapshot while a VM referring to the same hard disk chain is running.
12964
12965 <result name="VBOX_E_INVALID_VM_STATE">
12966 Machine session is not open.
12967 </result>
12968 <result name="VBOX_E_INVALID_OBJECT_STATE">
12969 Session type is not direct.
12970 </result>
12971
12972 </desc>
12973 <param name="mediumAttachment" type="IMediumAttachment" dir="in">
12974 <desc>The medium attachment to identify the medium chain.</desc>
12975 </param>
12976 <param name="sourceIdx" type="unsigned long" dir="in">
12977 <desc>The index of the source image in the chain.
12978 Redundant, but drastically reduces IPC.</desc>
12979 </param>
12980 <param name="targetIdx" type="unsigned long" dir="in">
12981 <desc>The index of the target image in the chain.
12982 Redundant, but drastically reduces IPC.</desc>
12983 </param>
12984 <param name="source" type="IMedium" dir="in">
12985 <desc>Merge source medium.</desc>
12986 </param>
12987 <param name="target" type="IMedium" dir="in">
12988 <desc>Merge target medium.</desc>
12989 </param>
12990 <param name="mergeForward" type="boolean" dir="in">
12991 <desc>Merge direction.</desc>
12992 </param>
12993 <param name="parentForTarget" type="IMedium" dir="in">
12994 <desc>For forward merges: new parent for target medium.</desc>
12995 </param>
12996 <param name="childrenToReparent" type="IMedium" safearray="yes" dir="in">
12997 <desc>For backward merges: list of media which need their parent UUID
12998 updated.</desc>
12999 </param>
13000 <param name="progress" type="IProgress" dir="in">
13001 <desc>
13002 Progress object for this operation.
13003 </desc>
13004 </param>
13005 </method>
13006
13007 </interface>
13008
13009 <interface
13010 name="ISession" extends="$unknown"
13011 uuid="12F4DCDB-12B2-4EC1-B7CD-DDD9F6C5BF4D"
13012 wsmap="managed"
13013 >
13014 <desc>
13015 The ISession interface represents a client process and allows for locking
13016 virtual machines (represented by IMachine objects) to prevent conflicting
13017 changes to the machine.
13018
13019 Any caller wishing to manipulate a virtual machine needs to create a session
13020 object first, which lives in its own process space. Such session objects are
13021 then associated with <link to="IMachine" /> objects living in the VirtualBox
13022 server process to coordinate such changes.
13023
13024 There are two typical scenarios in which sessions are used:
13025
13026 <ul>
13027 <li>To alter machine settings or control a running virtual machine, one
13028 needs to lock a machine for a given session (client process) by calling
13029 <link to="IMachine::lockMachine"/>.
13030
13031 Whereas multiple sessions may control a running virtual machine, only
13032 one process can obtain a write lock on the machine to prevent conflicting
13033 changes. A write lock is also needed if a process wants to actually run a
13034 virtual machine in its own context, such as the VirtualBox GUI or
13035 VBoxHeadless front-ends. They must also lock a machine for their own
13036 sessions before they are allowed to power up the virtual machine.
13037
13038 As a result, no machine settings can be altered while another process is
13039 already using it, either because that process is modifying machine settings
13040 or because the machine is running.
13041 </li>
13042 <li>
13043 To start a VM using one of the existing VirtualBox front-ends (e.g. the
13044 VirtualBox GUI or VBoxHeadless), one would use
13045 <link to="IMachine::launchVMProcess"/>, which also takes a session object
13046 as its first parameter. This session then identifies the caller and lets the
13047 caller control the started machine (for example, pause machine execution or
13048 power it down) as well as be notified about machine execution state changes.
13049 </li>
13050 </ul>
13051
13052 How sessions objects are created in a client process depends on whether you use
13053 the Main API via COM or via the webservice:
13054
13055 <ul>
13056 <li>When using the COM API directly, an object of the Session class from the
13057 VirtualBox type library needs to be created. In regular COM C++ client code,
13058 this can be done by calling <tt>createLocalObject()</tt>, a standard COM API.
13059 This object will then act as a local session object in further calls to open
13060 a session.
13061 </li>
13062
13063 <li>In the webservice, the session manager (IWebsessionManager) instead creates
13064 a session object automatically whenever <link to="IWebsessionManager::logon" />
13065 is called. A managed object reference to that session object can be retrieved by
13066 calling <link to="IWebsessionManager::getSessionObject" />.
13067 </li>
13068 </ul>
13069 </desc>
13070
13071 <attribute name="state" type="SessionState" readonly="yes">
13072 <desc>Current state of this session.</desc>
13073 </attribute>
13074
13075 <attribute name="type" type="SessionType" readonly="yes">
13076 <desc>
13077 Type of this session. The value of this attribute is valid only
13078 if the session currently has a machine locked (i.e. its
13079 <link to="#state" /> is Locked), otherwise an error will be returned.
13080 </desc>
13081 </attribute>
13082
13083 <attribute name="machine" type="IMachine" readonly="yes">
13084 <desc>Machine object associated with this session.</desc>
13085 </attribute>
13086
13087 <attribute name="console" type="IConsole" readonly="yes">
13088 <desc>Console object associated with this session.</desc>
13089 </attribute>
13090
13091 <method name="unlockMachine">
13092 <desc>
13093 Unlocks a machine that was previously locked for the current session.
13094
13095 Calling this method is required every time a machine has been locked
13096 for a particular session using the <link to="IMachine::launchVMProcess" />
13097 or <link to="IMachine::lockMachine" /> calls. Otherwise the state of
13098 the machine will be set to <link to="MachineState_Aborted" /> on the
13099 server, and changes made to the machine settings will be lost.
13100
13101 Generally, it is recommended to unlock all machines explicitly
13102 before terminating the application (regardless of the reason for
13103 the termination).
13104
13105 <note>
13106 Do not expect the session state (<link to="ISession::state" />
13107 to return to "Unlocked" immediately after you invoke this method,
13108 particularly if you have started a new VM process. The session
13109 state will automatically return to "Unlocked" once the VM is no
13110 longer executing, which can of course take a very long time.
13111 </note>
13112
13113 <result name="E_UNEXPECTED">
13114 Session is not locked.
13115 </result>
13116
13117 </desc>
13118 </method>
13119
13120 </interface>
13121
13122 <!--
13123 // IStorageController
13124 /////////////////////////////////////////////////////////////////////////
13125 -->
13126
13127 <enum
13128 name="StorageBus"
13129 uuid="eee67ab3-668d-4ef5-91e0-7025fe4a0d7a"
13130 >
13131 <desc>
13132 The bus type of the storage controller (IDE, SATA, SCSI, SAS or Floppy);
13133 see <link to="IStorageController::bus" />.
13134 </desc>
13135 <const name="Null" value="0">
13136 <desc>@c null value. Never used by the API.</desc>
13137 </const>
13138 <const name="IDE" value="1"/>
13139 <const name="SATA" value="2"/>
13140 <const name="SCSI" value="3"/>
13141 <const name="Floppy" value="4"/>
13142 <const name="SAS" value="5"/>
13143 </enum>
13144
13145 <enum
13146 name="StorageControllerType"
13147 uuid="8a412b8a-f43e-4456-bd37-b474f0879a58"
13148 >
13149 <desc>
13150 The exact variant of storage controller hardware presented
13151 to the guest; see <link to="IStorageController::controllerType" />.
13152 </desc>
13153
13154 <const name="Null" value="0">
13155 <desc>@c null value. Never used by the API.</desc>
13156 </const>
13157 <const name="LsiLogic" value="1">
13158 <desc>A SCSI controller of the LsiLogic variant.</desc>
13159 </const>
13160 <const name="BusLogic" value="2">
13161 <desc>A SCSI controller of the BusLogic variant.</desc>
13162 </const>
13163 <const name="IntelAhci" value="3">
13164 <desc>An Intel AHCI SATA controller; this is the only variant for SATA.</desc>
13165 </const>
13166 <const name="PIIX3" value="4">
13167 <desc>An IDE controller of the PIIX3 variant.</desc>
13168 </const>
13169 <const name="PIIX4" value="5">
13170 <desc>An IDE controller of the PIIX4 variant.</desc>
13171 </const>
13172 <const name="ICH6" value="6">
13173 <desc>An IDE controller of the ICH6 variant.</desc>
13174 </const>
13175 <const name="I82078" value="7">
13176 <desc>A floppy disk controller; this is the only variant for floppy drives.</desc>
13177 </const>
13178 <const name="LsiLogicSas" value="8">
13179 <desc>A variant of the LsiLogic controller using SAS.</desc>
13180 </const>
13181 </enum>
13182
13183 <enum
13184 name="ChipsetType"
13185 uuid="8b4096a8-a7c3-4d3b-bbb1-05a0a51ec394"
13186 >
13187 <desc>
13188 Type of emulated chipset (mostly southbridge).
13189 </desc>
13190
13191 <const name="Null" value="0">
13192 <desc>@c null value. Never used by the API.</desc>
13193 </const>
13194 <const name="PIIX3" value="1">
13195 <desc>A PIIX3 (PCI IDE ISA Xcelerator) chipset.</desc>
13196 </const>
13197 <const name="ICH9" value="2">
13198 <desc>A ICH9 (I/O Controller Hub) chipset.</desc>
13199 </const>
13200 </enum>
13201
13202 <interface
13203 name="IStorageController" extends="$unknown"
13204 uuid="fd93adc0-bbaa-4256-9e6e-00e29f9151c9"
13205 wsmap="managed"
13206 >
13207 <desc>
13208 Represents a storage controller that is attached to a virtual machine
13209 (<link to="IMachine" />). Just as drives (hard disks, DVDs, FDs) are
13210 attached to storage controllers in a real computer, virtual drives
13211 (represented by <link to="IMediumAttachment" />) are attached to virtual
13212 storage controllers, represented by this interface.
13213
13214 As opposed to physical hardware, VirtualBox has a very generic concept
13215 of a storage controller, and for purposes of the Main API, all virtual
13216 storage is attached to virtual machines via instances of this interface.
13217 There are five types of such virtual storage controllers: IDE, SCSI, SATA,
13218 SAS and Floppy (see <link to="#bus" />). Depending on which of these four
13219 is used, certain sub-types may be available and can be selected in
13220 <link to="#controllerType" />.
13221
13222 Depending on these settings, the guest operating system might see
13223 significantly different virtual hardware.
13224 </desc>
13225
13226 <attribute name="name" type="wstring" readonly="yes">
13227 <desc>
13228 Name of the storage controller, as originally specified with
13229 <link to="IMachine::addStorageController" />. This then uniquely
13230 identifies this controller with other method calls such as
13231 <link to="IMachine::attachDevice" /> and <link to="IMachine::mountMedium" />.
13232 </desc>
13233 </attribute>
13234
13235 <attribute name="maxDevicesPerPortCount" type="unsigned long" readonly="yes">
13236 <desc>
13237 Maximum number of devices which can be attached to one port.
13238 </desc>
13239 </attribute>
13240
13241 <attribute name="minPortCount" type="unsigned long" readonly="yes">
13242 <desc>
13243 Minimum number of ports that <link to="IStorageController::portCount"/> can be set to.
13244 </desc>
13245 </attribute>
13246
13247 <attribute name="maxPortCount" type="unsigned long" readonly="yes">
13248 <desc>
13249 Maximum number of ports that <link to="IStorageController::portCount"/> can be set to.
13250 </desc>
13251 </attribute>
13252
13253 <attribute name="instance" type="unsigned long">
13254 <desc>
13255 The instance number of the device in the running VM.
13256 </desc>
13257 </attribute>
13258
13259 <attribute name="portCount" type="unsigned long">
13260 <desc>
13261 The number of currently usable ports on the controller.
13262 The minimum and maximum number of ports for one controller are
13263 stored in <link to="IStorageController::minPortCount"/>
13264 and <link to="IStorageController::maxPortCount"/>.
13265 </desc>
13266 </attribute>
13267
13268 <attribute name="bus" type="StorageBus" readonly="yes">
13269 <desc>
13270 The bus type of the storage controller (IDE, SATA, SCSI, SAS or Floppy).
13271 </desc>
13272 </attribute>
13273
13274 <attribute name="controllerType" type="StorageControllerType">
13275 <desc>
13276 The exact variant of storage controller hardware presented
13277 to the guest.
13278 Depending on this value, VirtualBox will provide a different
13279 virtual storage controller hardware to the guest.
13280 For SATA, SAS and floppy controllers, only one variant is
13281 available, but for IDE and SCSI, there are several.
13282
13283 For SCSI controllers, the default type is LsiLogic.
13284 </desc>
13285 </attribute>
13286
13287 <attribute name="useHostIOCache" type="boolean">
13288 <desc>
13289 If true, the storage controller emulation will use a dedicated I/O thread, enable the host I/O
13290 caches and use synchronous file APIs on the host. This was the only option in the API before
13291 VirtualBox 3.2 and is still the default for IDE controllers.
13292
13293 If false, the host I/O cache will be disabled for image files attached to this storage controller.
13294 Instead, the storage controller emulation will use asynchronous I/O APIs on the host. This makes
13295 it possible to turn off the host I/O caches because the emulation can handle unaligned access to
13296 the file. This should be used on OS X and Linux hosts if a high I/O load is expected or many
13297 virtual machines are running at the same time to prevent I/O cache related hangs.
13298 This option new with the API of VirtualBox 3.2 and is now the default for non-IDE storage controllers.
13299 </desc>
13300 </attribute>
13301
13302 <method name="getIDEEmulationPort">
13303 <desc>
13304 Gets the corresponding port number which is emulated as an IDE device.
13305 Works only with SATA controllers.
13306
13307 <result name="E_INVALIDARG">
13308 The @a devicePosition is not in the range 0 to 3.
13309 </result>
13310 <result name="E_NOTIMPL">
13311 The storage controller type is not SATAIntelAhci.
13312 </result>
13313
13314 </desc>
13315 <param name="devicePosition" type="long" dir="in"/>
13316 <param name="portNumber" type="long" dir="return"/>
13317 </method>
13318
13319 <method name="setIDEEmulationPort">
13320 <desc>
13321 Sets the port number which is emulated as an IDE device.
13322 Works only with SATA controllers.
13323
13324 <result name="E_INVALIDARG">
13325 The @a devicePosition is not in the range 0 to 3 or the
13326 @a portNumber is not in the range 0 to 29.
13327 </result>
13328 <result name="E_NOTIMPL">
13329 The storage controller type is not SATAIntelAhci.
13330 </result>
13331
13332 </desc>
13333 <param name="devicePosition" type="long" dir="in"/>
13334 <param name="portNumber" type="long" dir="in"/>
13335 </method>
13336
13337 </interface>
13338
13339<if target="wsdl">
13340
13341 <!--
13342 // IManagedObjectRef
13343 /////////////////////////////////////////////////////////////////////////
13344 -->
13345
13346 <interface
13347 name="IManagedObjectRef" extends="$unknown"
13348 uuid="9474d09d-2313-46de-b568-a42b8718e8ed"
13349 internal="yes"
13350 wsmap="managed"
13351 wscpp="hardcoded"
13352 >
13353 <desc>
13354 Managed object reference.
13355
13356 Only within the webservice, a managed object reference (which is really
13357 an opaque number) allows a webservice client to address an object
13358 that lives in the address space of the webservice server.
13359
13360 Behind each managed object reference, there is a COM object that lives
13361 in the webservice server's address space. The COM object is not freed
13362 until the managed object reference is released, either by an explicit
13363 call to <link to="IManagedObjectRef::release" /> or by logging off from
13364 the webservice (<link to="IWebsessionManager::logoff" />), which releases
13365 all objects created during the webservice session.
13366
13367 Whenever a method call of the VirtualBox API returns a COM object, the
13368 webservice representation of that method will instead return a
13369 managed object reference, which can then be used to invoke methods
13370 on that object.
13371 </desc>
13372
13373 <method name="getInterfaceName">
13374 <desc>
13375 Returns the name of the interface that this managed object represents,
13376 for example, "IMachine", as a string.
13377 </desc>
13378 <param name="return" type="wstring" dir="return"/>
13379 </method>
13380
13381 <method name="release">
13382 <desc>
13383 Releases this managed object reference and frees the resources that
13384 were allocated for it in the webservice server process. After calling
13385 this method, the identifier of the reference can no longer be used.
13386 </desc>
13387 </method>
13388
13389 </interface>
13390
13391 <!--
13392 // IWebsessionManager
13393 /////////////////////////////////////////////////////////////////////////
13394 -->
13395
13396 <interface
13397 name="IWebsessionManager" extends="$unknown"
13398 uuid="dea1b4c7-2de3-418a-850d-7868617f7733"
13399 internal="yes"
13400 wsmap="global"
13401 wscpp="hardcoded"
13402 >
13403 <desc>
13404 Websession manager. This provides essential services
13405 to webservice clients.
13406 </desc>
13407 <method name="logon">
13408 <desc>
13409 Logs a new client onto the webservice and returns a managed object reference to
13410 the IVirtualBox instance, which the client can then use as a basis to further
13411 queries, since all calls to the VirtualBox API are based on the IVirtualBox
13412 interface, in one way or the other.
13413 </desc>
13414 <param name="username" type="wstring" dir="in"/>
13415 <param name="password" type="wstring" dir="in"/>
13416 <param name="return" type="IVirtualBox" dir="return"/>
13417 </method>
13418
13419 <method name="getSessionObject">
13420 <desc>
13421 Returns a managed object reference to the internal ISession object that was created
13422 for this web service session when the client logged on.
13423
13424 <see>ISession</see>
13425 </desc>
13426 <param name="refIVirtualBox" type="IVirtualBox" dir="in"/>
13427 <param name="return" type="ISession" dir="return"/>
13428 </method>
13429
13430 <method name="logoff">
13431 <desc>
13432 Logs off the client who has previously logged on with <link to="IWebsessionManager::logoff" />
13433 and destroys all resources associated with the session (most importantly, all
13434 managed objects created in the server while the session was active).
13435 </desc>
13436 <param name="refIVirtualBox" type="IVirtualBox" dir="in"/>
13437 </method>
13438
13439 </interface>
13440
13441</if>
13442
13443 <!--
13444 // IPerformanceCollector & friends
13445 /////////////////////////////////////////////////////////////////////////
13446 -->
13447
13448 <interface
13449 name="IPerformanceMetric" extends="$unknown"
13450 uuid="2a1a60ae-9345-4019-ad53-d34ba41cbfe9" wsmap="managed"
13451 >
13452 <desc>
13453 The IPerformanceMetric interface represents parameters of the given
13454 performance metric.
13455 </desc>
13456
13457 <attribute name="metricName" type="wstring" readonly="yes">
13458 <desc>
13459 Name of the metric.
13460 </desc>
13461 </attribute>
13462
13463 <attribute name="object" type="$unknown" readonly="yes">
13464 <desc>
13465 Object this metric belongs to.
13466 </desc>
13467 </attribute>
13468
13469 <attribute name="description" type="wstring" readonly="yes">
13470 <desc>
13471 Textual description of the metric.
13472 </desc>
13473 </attribute>
13474
13475 <attribute name="period" type="unsigned long" readonly="yes">
13476 <desc>
13477 Time interval between samples, measured in seconds.
13478 </desc>
13479 </attribute>
13480
13481 <attribute name="count" type="unsigned long" readonly="yes">
13482 <desc>
13483 Number of recent samples retained by the performance collector for this
13484 metric.
13485
13486 When the collected sample count exceeds this number, older samples
13487 are discarded.
13488 </desc>
13489 </attribute>
13490
13491 <attribute name="unit" type="wstring" readonly="yes">
13492 <desc>
13493 Unit of measurement.
13494 </desc>
13495 </attribute>
13496
13497 <attribute name="minimumValue" type="long" readonly="yes">
13498 <desc>
13499 Minimum possible value of this metric.
13500 </desc>
13501 </attribute>
13502
13503 <attribute name="maximumValue" type="long" readonly="yes">
13504 <desc>
13505 Maximum possible value of this metric.
13506 </desc>
13507 </attribute>
13508 </interface>
13509
13510 <interface
13511 name="IPerformanceCollector" extends="$unknown"
13512 uuid="e22e1acb-ac4a-43bb-a31c-17321659b0c6"
13513 wsmap="managed"
13514 >
13515 <desc>
13516 The IPerformanceCollector interface represents a service that collects
13517 and stores performance metrics data.
13518
13519 Performance metrics are associated with objects of interfaces like IHost
13520 and IMachine. Each object has a distinct set of performance metrics. The
13521 set can be obtained with <link to="IPerformanceCollector::getMetrics"/>.
13522
13523 Metric data is collected at the specified intervals and is retained
13524 internally. The interval and the number of retained samples can be set
13525 with <link to="IPerformanceCollector::setupMetrics" />. Both metric data
13526 and collection settings are not persistent, they are discarded as soon as
13527 VBoxSVC process terminates. Moreover, metric settings and data associated
13528 with a particular VM only exist while VM is running. They disappear as
13529 soon as VM shuts down. It is not possible to set up metrics for machines
13530 that are powered off. One needs to start VM first, then set up metric
13531 collection parameters.
13532
13533 Metrics are organized hierarchically, with each level separated by a
13534 slash (/) character. Generally, the scheme for metric names is like this:
13535
13536 <tt>Category/Metric[/SubMetric][:aggregation]</tt>
13537
13538 "Category/Metric" together form the base metric name. A base metric is
13539 the smallest unit for which a sampling interval and the number of
13540 retained samples can be set. Only base metrics can be enabled and
13541 disabled. All sub-metrics are collected when their base metric is
13542 collected. Collected values for any set of sub-metrics can be queried
13543 with <link to="IPerformanceCollector::queryMetricsData" />.
13544
13545 For example "CPU/Load/User:avg" metric name stands for the "CPU"
13546 category, "Load" metric, "User" submetric, "average" aggregate. An
13547 aggregate function is computed over all retained data. Valid aggregate
13548 functions are:
13549
13550 <ul>
13551 <li>avg -- average</li>
13552 <li>min -- minimum</li>
13553 <li>max -- maximum</li>
13554 </ul>
13555
13556 When setting up metric parameters, querying metric data, enabling or
13557 disabling metrics wildcards can be used in metric names to specify a
13558 subset of metrics. For example, to select all CPU-related metrics
13559 use <tt>CPU/*</tt>, all averages can be queried using <tt>*:avg</tt> and
13560 so on. To query metric values without aggregates <tt>*:</tt> can be used.
13561
13562 The valid names for base metrics are:
13563
13564 <ul>
13565 <li>CPU/Load</li>
13566 <li>CPU/MHz</li>
13567 <li>RAM/Usage</li>
13568 </ul>
13569
13570 The general sequence for collecting and retrieving the metrics is:
13571 <ul>
13572 <li>
13573 Obtain an instance of IPerformanceCollector with
13574 <link to="IVirtualBox::performanceCollector" />
13575 </li>
13576 <li>
13577 Allocate and populate an array with references to objects the metrics
13578 will be collected for. Use references to IHost and IMachine objects.
13579 </li>
13580 <li>
13581 Allocate and populate an array with base metric names the data will
13582 be collected for.
13583 </li>
13584 <li>
13585 Call <link to="IPerformanceCollector::setupMetrics" />. From now on
13586 the metric data will be collected and stored.
13587 </li>
13588 <li>
13589 Wait for the data to get collected.
13590 </li>
13591 <li>
13592 Allocate and populate an array with references to objects the metric
13593 values will be queried for. You can re-use the object array used for
13594 setting base metrics.
13595 </li>
13596 <li>
13597 Allocate and populate an array with metric names the data will be
13598 collected for. Note that metric names differ from base metric names.
13599 </li>
13600 <li>
13601 Call <link to="IPerformanceCollector::queryMetricsData" />. The data
13602 that have been collected so far are returned. Note that the values
13603 are still retained internally and data collection continues.
13604 </li>
13605 </ul>
13606
13607 For an example of usage refer to the following files in VirtualBox SDK:
13608 <ul>
13609 <li>
13610 Java: <tt>bindings/webservice/java/jax-ws/samples/metrictest.java</tt>
13611 </li>
13612 <li>
13613 Python: <tt>bindings/xpcom/python/sample/shellcommon.py</tt>
13614 </li>
13615 </ul>
13616 </desc>
13617
13618 <attribute name="metricNames" type="wstring" readonly="yes" safearray="yes">
13619 <desc>
13620 Array of unique names of metrics.
13621
13622 This array represents all metrics supported by the performance
13623 collector. Individual objects do not necessarily support all of them.
13624 <link to="IPerformanceCollector::getMetrics"/> can be used to get the
13625 list of supported metrics for a particular object.
13626 </desc>
13627 </attribute>
13628
13629 <method name="getMetrics">
13630 <desc>
13631 Returns parameters of specified metrics for a set of objects.
13632 <note>
13633 @c Null metrics array means all metrics. @c Null object array means
13634 all existing objects.
13635 </note>
13636 </desc>
13637 <param name="metricNames" type="wstring" dir="in" safearray="yes">
13638 <desc>
13639 Metric name filter. Currently, only a comma-separated list of metrics
13640 is supported.
13641 </desc>
13642 </param>
13643 <param name="objects" type="$unknown" dir="in" safearray="yes">
13644 <desc>
13645 Set of objects to return metric parameters for.
13646 </desc>
13647 </param>
13648 <param name="metrics" type="IPerformanceMetric" dir="return" safearray="yes">
13649 <desc>
13650 Array of returned metric parameters.
13651 </desc>
13652 </param>
13653 </method>
13654
13655 <method name="setupMetrics">
13656 <desc>
13657 Sets parameters of specified base metrics for a set of objects. Returns
13658 an array of <link to="IPerformanceMetric" /> describing the metrics
13659 have been affected.
13660 <note>
13661 @c Null or empty metric name array means all metrics. @c Null or
13662 empty object array means all existing objects. If metric name array
13663 contains a single element and object array contains many, the single
13664 metric name array element is applied to each object array element to
13665 form metric/object pairs.
13666 </note>
13667 </desc>
13668 <param name="metricNames" type="wstring" dir="in" safearray="yes">
13669 <desc>
13670 Metric name filter. Comma-separated list of metrics with wildcard
13671 support.
13672 </desc>
13673 </param>
13674 <param name="objects" type="$unknown" dir="in" safearray="yes">
13675 <desc>
13676 Set of objects to setup metric parameters for.
13677 </desc>
13678 </param>
13679 <param name="period" type="unsigned long" dir="in">
13680 <desc>
13681 Time interval in seconds between two consecutive samples of
13682 performance data.
13683 </desc>
13684 </param>
13685 <param name="count" type="unsigned long" dir="in">
13686 <desc>
13687 Number of samples to retain in performance data history. Older
13688 samples get discarded.
13689 </desc>
13690 </param>
13691 <param name="affectedMetrics" type="IPerformanceMetric" dir="return" safearray="yes">
13692 <desc>
13693 Array of metrics that have been modified by the call to this method.
13694 </desc>
13695 </param>
13696 </method>
13697
13698 <method name="enableMetrics">
13699 <desc>
13700 Turns on collecting specified base metrics. Returns an array of
13701 <link to="IPerformanceMetric" /> describing the metrics have been
13702 affected.
13703 <note>
13704 @c Null or empty metric name array means all metrics. @c Null or
13705 empty object array means all existing objects. If metric name array
13706 contains a single element and object array contains many, the single
13707 metric name array element is applied to each object array element to
13708 form metric/object pairs.
13709 </note>
13710 </desc>
13711 <param name="metricNames" type="wstring" dir="in" safearray="yes">
13712 <desc>
13713 Metric name filter. Comma-separated list of metrics with wildcard
13714 support.
13715 </desc>
13716 </param>
13717 <param name="objects" type="$unknown" dir="in" safearray="yes">
13718 <desc>
13719 Set of objects to enable metrics for.
13720 </desc>
13721 </param>
13722 <param name="affectedMetrics" type="IPerformanceMetric" dir="return" safearray="yes">
13723 <desc>
13724 Array of metrics that have been modified by the call to this method.
13725 </desc>
13726 </param>
13727 </method>
13728
13729 <method name="disableMetrics">
13730 <desc>
13731 Turns off collecting specified base metrics. Returns an array of
13732 <link to="IPerformanceMetric" /> describing the metrics have been
13733 affected.
13734 <note>
13735 @c Null or empty metric name array means all metrics. @c Null or
13736 empty object array means all existing objects. If metric name array
13737 contains a single element and object array contains many, the single
13738 metric name array element is applied to each object array element to
13739 form metric/object pairs.
13740 </note>
13741 </desc>
13742 <param name="metricNames" type="wstring" dir="in" safearray="yes">
13743 <desc>
13744 Metric name filter. Comma-separated list of metrics with wildcard
13745 support.
13746 </desc>
13747 </param>
13748 <param name="objects" type="$unknown" dir="in" safearray="yes">
13749 <desc>
13750 Set of objects to disable metrics for.
13751 </desc>
13752 </param>
13753 <param name="affectedMetrics" type="IPerformanceMetric" dir="return" safearray="yes">
13754 <desc>
13755 Array of metrics that have been modified by the call to this method.
13756 </desc>
13757 </param>
13758 </method>
13759
13760 <method name="queryMetricsData">
13761 <desc>
13762 Queries collected metrics data for a set of objects.
13763
13764 The data itself and related metric information are returned in seven
13765 parallel and one flattened array of arrays. Elements of
13766 <tt>returnMetricNames, returnObjects, returnUnits, returnScales,
13767 returnSequenceNumbers, returnDataIndices and returnDataLengths</tt> with
13768 the same index describe one set of values corresponding to a single
13769 metric.
13770
13771 The <tt>returnData</tt> parameter is a flattened array of arrays. Each
13772 start and length of a sub-array is indicated by
13773 <tt>returnDataIndices</tt> and <tt>returnDataLengths</tt>. The first
13774 value for metric <tt>metricNames[i]</tt> is at
13775 <tt>returnData[returnIndices[i]]</tt>.
13776
13777 <note>
13778 @c Null or empty metric name array means all metrics. @c Null or
13779 empty object array means all existing objects. If metric name array
13780 contains a single element and object array contains many, the single
13781 metric name array element is applied to each object array element to
13782 form metric/object pairs.
13783 </note>
13784 <note>
13785 Data collection continues behind the scenes after call to @c
13786 queryMetricsData. The return data can be seen as the snapshot of the
13787 current state at the time of @c queryMetricsData call. The internally
13788 kept metric values are not cleared by the call. This makes possible
13789 querying different subsets of metrics or aggregates with subsequent
13790 calls. If periodic querying is needed it is highly suggested to query
13791 the values with @c interval*count period to avoid confusion. This way
13792 a completely new set of data values will be provided by each query.
13793 </note>
13794 </desc>
13795 <param name="metricNames" type="wstring" dir="in" safearray="yes">
13796 <desc>
13797 Metric name filter. Comma-separated list of metrics with wildcard
13798 support.
13799 </desc>
13800 </param>
13801 <param name="objects" type="$unknown" dir="in" safearray="yes">
13802 <desc>
13803 Set of objects to query metrics for.
13804 </desc>
13805 </param>
13806 <param name="returnMetricNames" type="wstring" dir="out" safearray="yes">
13807 <desc>
13808 Names of metrics returned in @c returnData.
13809 </desc>
13810 </param>
13811 <param name="returnObjects" type="$unknown" dir="out" safearray="yes">
13812 <desc>
13813 Objects associated with metrics returned in @c returnData.
13814 </desc>
13815 </param>
13816 <param name="returnUnits" type="wstring" dir="out" safearray="yes">
13817 <desc>
13818 Units of measurement for each returned metric.
13819 </desc>
13820 </param>
13821 <param name="returnScales" type="unsigned long" dir="out" safearray="yes">
13822 <desc>
13823 Divisor that should be applied to return values in order to get
13824 floating point values. For example:
13825 <tt>(double)returnData[returnDataIndices[0]+i] / returnScales[0]</tt>
13826 will retrieve the floating point value of i-th sample of the first
13827 metric.
13828 </desc>
13829 </param>
13830 <param name="returnSequenceNumbers" type="unsigned long" dir="out" safearray="yes">
13831 <desc>
13832 Sequence numbers of the first elements of value sequences of
13833 particular metrics returned in @c returnData. For aggregate metrics
13834 it is the sequence number of the sample the aggregate started
13835 calculation from.
13836 </desc>
13837 </param>
13838 <param name="returnDataIndices" type="unsigned long" dir="out" safearray="yes">
13839 <desc>
13840 Indices of the first elements of value sequences of particular
13841 metrics returned in @c returnData.
13842 </desc>
13843 </param>
13844 <param name="returnDataLengths" type="unsigned long" dir="out" safearray="yes">
13845 <desc>
13846 Lengths of value sequences of particular metrics.
13847 </desc>
13848 </param>
13849 <param name="returnData" type="long" dir="return" safearray="yes">
13850 <desc>
13851 Flattened array of all metric data containing sequences of values for
13852 each metric.
13853 </desc>
13854 </param>
13855 </method>
13856
13857 </interface>
13858 <enum
13859 name="NATAliasMode"
13860 uuid="67772168-50d9-11df-9669-7fb714ee4fa1">
13861 <desc></desc>
13862 <const name="AliasLog" value="0x1">
13863 <desc></desc>
13864 </const>
13865 <const name="AliasProxyOnly" value="0x02">
13866 <desc></desc>
13867 </const>
13868 <const name="AliasUseSamePorts" value="0x04">
13869 <desc></desc>
13870 </const>
13871 </enum>
13872 <enum
13873 name="NATProtocol"
13874 uuid="e90164be-eb03-11de-94af-fff9b1c1b19f"
13875 >
13876 <desc>Protocol definitions used with NAT port-forwarding rules.</desc>
13877 <const name="UDP" value="0">
13878 <desc>Port-forwarding uses UDP protocol.</desc>
13879 </const>
13880 <const name="TCP" value="1">
13881 <desc>Port-forwarding uses TCP protocol.</desc>
13882 </const>
13883 </enum>
13884
13885 <interface
13886 name="INATEngine" extends="$unknown"
13887 uuid="4b286616-eb03-11de-b0fb-1701eca42246"
13888 wsmap="managed"
13889 >
13890 <desc>Interface for managing a NAT engine which is used with a virtual machine. This
13891 allows for changing NAT behavior such as port-forwarding rules. This interface is
13892 used in the <link to="INetworkAdapter::natDriver" /> attribute.</desc>
13893 <attribute name="network" type="wstring">
13894 <desc>The network attribute of the NAT engine (the same value is used with built-in
13895 DHCP server to fill corresponding fields of DHCP leases).</desc>
13896 </attribute>
13897 <attribute name="hostIP" type="wstring">
13898 <desc>IP of host interface to bind all opened sockets to.
13899 <note>Changing this does not change binding of port forwarding.</note>
13900 </desc>
13901 </attribute>
13902 <attribute name="tftpPrefix" type="wstring">
13903 <desc>TFTP prefix attribute which is used with the built-in DHCP server to fill
13904 the corresponding fields of DHCP leases.</desc>
13905 </attribute>
13906 <attribute name="tftpBootFile" type="wstring">
13907 <desc>TFTP boot file attribute which is used with the built-in DHCP server to fill
13908 the corresponding fields of DHCP leases.</desc>
13909 </attribute>
13910 <attribute name="tftpNextServer" type="wstring">
13911 <desc>TFTP server attribute which is used with the built-in DHCP server to fill
13912 the corresponding fields of DHCP leases.
13913 <note>The preferred form is IPv4 addresses.</note>
13914 </desc>
13915 </attribute>
13916 <attribute name="aliasMode" type="unsigned long">
13917 <desc></desc>
13918 </attribute>
13919 <attribute name="dnsPassDomain" type="boolean">
13920 <desc>Whether the DHCP server should pass the DNS domain used by the host.</desc>
13921 </attribute>
13922 <attribute name="dnsProxy" type="boolean">
13923 <desc>Whether the DHCP server (and the DNS traffic by NAT) should pass the address
13924 of the DNS proxy and process traffic using DNS servers registered on the host.</desc>
13925 </attribute>
13926 <attribute name="dnsUseHostResolver" type="boolean">
13927 <desc>Whether the DHCP server (and the DNS traffic by NAT) should pass the address
13928 of the DNS proxy and process traffic using the host resolver mechanism.</desc>
13929 </attribute>
13930 <attribute name="redirects" type="wstring" readonly="yes" safearray="yes">
13931 <desc>Array of NAT port-forwarding rules in string representation, in the following
13932 format: "name,protocol id,host ip,host port,guest ip,guest port".</desc>
13933 </attribute>
13934 <method name="setNetworkSettings">
13935 <desc>Sets network configuration of the NAT engine.</desc>
13936 <param name="mtu" type="unsigned long" dir="in">
13937 <desc>MTU (maximum transmission unit) of the NAT engine in bytes.</desc>
13938 </param>
13939 <param name="sockSnd" type="unsigned long" dir="in">
13940 <desc>Capacity of the socket send buffer in bytes when creating a new socket.</desc>
13941 </param>
13942 <param name="sockRcv" type="unsigned long" dir="in">
13943 <desc>Capacity of the socket receive buffer in bytes when creating a new socket.</desc>
13944 </param>
13945 <param name="TcpWndSnd" type="unsigned long" dir="in">
13946 <desc>Initial size of the NAT engine's sending TCP window in bytes when
13947 establishing a new TCP connection.</desc>
13948 </param>
13949 <param name="TcpWndRcv" type="unsigned long" dir="in">
13950 <desc>Initial size of the NAT engine's receiving TCP window in bytes when
13951 establishing a new TCP connection.</desc>
13952 </param>
13953 </method>
13954 <method name="getNetworkSettings">
13955 <desc>Returns network configuration of NAT engine. See <link to="#setNetworkSettings" />
13956 for parameter descriptions.</desc>
13957 <param name="mtu" type="unsigned long" dir="out" />
13958 <param name="sockSnd" type="unsigned long" dir="out" />
13959 <param name="sockRcv" type="unsigned long" dir="out" />
13960 <param name="TcpWndSnd" type="unsigned long" dir="out" />
13961 <param name="TcpWndRcv" type="unsigned long" dir="out" />
13962 </method>
13963 <method name="addRedirect">
13964 <desc>Adds a new NAT port-forwarding rule.</desc>
13965 <param name="name" type="wstring" dir="in">
13966 <desc>The name of the rule. An empty name is acceptable, in which case the NAT engine
13967 auto-generates one using the other parameters.</desc>
13968 </param>
13969 <param name="proto" type="NATProtocol" dir="in">
13970 <desc>Protocol handled with the rule.</desc>
13971 </param>
13972 <param name="hostIp" type="wstring" dir="in">
13973 <desc>IP of the host interface to which the rule should apply. An empty ip address is
13974 acceptable, in which case the NAT engine binds the handling socket to any interface.</desc>
13975 </param>
13976 <param name="hostPort" type="unsigned short" dir="in">
13977 <desc>The port number to listen on.</desc>
13978 </param>
13979 <param name="guestIp" type="wstring" dir="in">
13980 <desc>The IP address of the guest which the NAT engine will forward matching packets
13981 to. An empty IP address is acceptable, in which case the NAT engine will forward
13982 packets to the first DHCP lease (x.x.x.15).</desc>
13983 </param>
13984 <param name="guestPort" type="unsigned short" dir="in">
13985 <desc>The port number to forward.</desc>
13986 </param>
13987 </method>
13988 <method name="removeRedirect">
13989 <desc>Removes a port-forwarding rule that was previously registered.</desc>
13990 <param name="name" type="wstring" dir="in">
13991 <desc>The name of the rule to delete.</desc>
13992 </param>
13993 </method>
13994 </interface>
13995
13996 <!--
13997 // IExtPackManager
13998 /////////////////////////////////////////////////////////////////////////
13999 -->
14000
14001 <interface
14002 name="IExtPack" extends="$unknown"
14003 uuid="1b69431b-b22f-454a-977d-7d50986defcb"
14004 wsmap="suppress"
14005 >
14006 <desc>
14007 Interface for querying interfaces and information relating to an
14008 extension pack. The extension pack specific interfaces can be queried
14009 via the IUnknown::QueryInterface method.
14010 </desc>
14011 <attribute name="name" type="wstring" readonly="yes">
14012 <desc>The extension pack name. This is unique.</desc>
14013 </attribute>
14014 <attribute name="version" type="wstring" readonly="yes">
14015 <desc>
14016 The extension pack version string. This is on the same form as
14017 other VirtualBox version strings, i.e.: "1.2.3", "1.2.3_BETA1",
14018 "1.2.3-OSE", "1.2.3r45678", "1.2.3r45678-OSE", "1.2.3_BETA1-r45678"
14019 or "1.2.3_BETA1-r45678-OSE"
14020 </desc>
14021 </attribute>
14022 <attribute name="revision" type="unsigned long" readonly="yes">
14023 <desc>The extension pack internal revision number.</desc>
14024 </attribute>
14025 <attribute name="usable" type="boolean" readonly="yes">
14026 <desc>
14027 Indicates whether the extension pack is usable or not. An
14028 extension pack that is not compatible with the current VirtualBox
14029 version will be flagged as not usable.
14030 </desc>
14031 </attribute>
14032 <attribute name="whyUnusable" type="wstring" readonly="yes">
14033 <desc>
14034 String indicating why the extension pack is not usable. This is an
14035 empty string if usable and always a non-empty string if not usable.
14036 </desc>
14037 </attribute>
14038 </interface>
14039
14040 <interface
14041 name="IExtPackManager" extends="$unknown"
14042 uuid="ba1fbfca-53f1-471c-b5a1-416386f0f52b"
14043 wsmap="suppress"
14044 >
14045 <desc>
14046 Interface for managing VirtualBox Extension Packs.
14047
14048 TODO: Describe extension packs, how they are managed and how to create
14049 one.
14050 </desc>
14051
14052 <attribute name="installedExtPacks" type="IExtPack" safearray="yes" readonly="yes">
14053 <desc>
14054 List of the installed extension packs.
14055 </desc>
14056 </attribute>
14057
14058 <method name="find">
14059 <desc>
14060 Returns the extension pack with the specified name if found.
14061
14062 <result name="VBOX_E_OBJECT_NOT_FOUND">
14063 No extension pack matching @a name was found.
14064 </result>
14065 </desc>
14066 <param name="name" type="wstring" dir="in">
14067 <desc>The name of the extension pack to locate.</desc>
14068 </param>
14069 <param name="returnData" type="IExtPack" dir="return">
14070 <desc>The extension pack if found.</desc>
14071 </param>
14072 </method>
14073
14074 <method name="install">
14075 <param name="path" type="wstring" dir="in">
14076 <desc>The path of the extension pack tarball.</desc>
14077 </param>
14078 <param name="name" type="wstring" dir="out">
14079 <desc>The name of the installed extension pack.</desc>
14080 </param>
14081 </method>
14082
14083 <method name="uninstall">
14084 <desc>Uninstalls an extension pack, removing all related files.</desc>
14085 <param name="name" type="wstring" dir="in">
14086 <desc>The name of the extension pack to uninstall.</desc>
14087 </param>
14088 <param name="forcedRemoval" type="boolean" dir="in">
14089 <desc>
14090 Forced removal of the extension pack. This means that the uninstall
14091 hook will not be called.
14092 </desc>
14093 </param>
14094 </method>
14095 </interface>
14096
14097 <!--
14098 // Events
14099 /////////////////////////////////////////////////////////////////////////
14100 -->
14101 <enum
14102 name="VBoxEventType"
14103 uuid="e085d0b1-05e6-4f40-a709-b7266fbdb236">
14104
14105 <desc>
14106 Type of an event.
14107 See <link to="IEvent" /> for an introduction to VirtualBox event handling.
14108 </desc>
14109
14110 <const name="Invalid" value="0">
14111 <desc>
14112 Invalid event, must be first.
14113 </desc>
14114 </const>
14115
14116 <const name="Any" value="1">
14117 <desc>
14118 Wildcard for all events.
14119 Events of this type are never delivered, and only used in
14120 registerListener() call to simplify registration.
14121 </desc>
14122 </const>
14123
14124 <const name="Vetoable" value="2">
14125 <desc>
14126 Wildcard for all vetoable events. Events of this type are never delivered, and only
14127 used in registerListener() call to simplify registration.
14128 </desc>
14129 </const>
14130
14131 <const name="MachineEvent" value="3">
14132 <desc>
14133 Wildcard for all machine events. Events of this type are never delivered, and only used in
14134 registerListener() call to simplify registration.
14135 </desc>
14136 </const>
14137
14138 <const name="SnapshotEvent" value="4">
14139 <desc>
14140 Wildcard for all snapshot events. Events of this type are never delivered, and only used in
14141 registerListener() call to simplify registration.
14142 </desc>
14143 </const>
14144
14145 <const name="InputEvent" value="5">
14146 <desc>
14147 Wildcard for all input device (keyboard, mouse) events.
14148 Events of this type are never delivered, and only used in
14149 registerListener() call to simplify registration.
14150 </desc>
14151 </const>
14152
14153 <const name="LastWildcard" value="31">
14154 <desc>
14155 Last wildcard.
14156 </desc>
14157 </const>
14158
14159 <const name="OnMachineStateChanged" value="32">
14160 <desc>
14161 See <link to="IMachineStateChangedEvent">IMachineStateChangedEvent</link>.
14162 </desc>
14163 </const>
14164 <const name="OnMachineDataChanged" value="33">
14165 <desc>
14166 See <link to="IMachineDataChangedEvent">IMachineDataChangedEvent</link>.
14167 </desc>
14168 </const>
14169 <const name="OnExtraDataChanged" value="34">
14170 <desc>
14171 See <link to="IExtraDataChangedEvent">IExtraDataChangedEvent</link>.
14172 </desc>
14173 </const>
14174 <const name="OnExtraDataCanChange" value="35">
14175 <desc>
14176 See <link to="IExtraDataCanChangeEvent">IExtraDataCanChangeEvent</link>.
14177 </desc>
14178 </const>
14179 <const name="OnMediumRegistered" value="36">
14180 <desc>
14181 See <link to="IMediumRegisteredEvent">IMediumRegisteredEvent</link>.
14182 </desc>
14183 </const>
14184 <const name="OnMachineRegistered" value="37">
14185 <desc>
14186 See <link to="IMachineRegisteredEvent">IMachineRegisteredEvent</link>.
14187 </desc>
14188 </const>
14189 <const name="OnSessionStateChanged" value="38">
14190 <desc>
14191 See <link to="ISessionStateChangedEvent">ISessionStateChangedEvent</link>.
14192 </desc>
14193 </const>
14194 <const name="OnSnapshotTaken" value="39">
14195 <desc>
14196 See <link to="ISnapshotTakenEvent">ISnapshotTakenEvent</link>.
14197 </desc>
14198 </const>
14199 <const name="OnSnapshotDeleted" value="40">
14200 <desc>
14201 See <link to="ISnapshotDeletedEvent">ISnapshotDeletedEvent</link>.
14202 </desc>
14203 </const>
14204 <const name="OnSnapshotChanged" value="41">
14205 <desc>
14206 See <link to="ISnapshotChangedEvent">ISnapshotChangedEvent</link>.
14207 </desc>
14208 </const>
14209 <const name="OnGuestPropertyChanged" value="42">
14210 <desc>
14211 See <link to="IGuestPropertyChangedEvent">IGuestPropertyChangedEvent</link>.
14212 </desc>
14213 </const>
14214 <!-- Console events -->
14215 <const name="OnMousePointerShapeChanged" value="43">
14216 <desc>
14217 See <link to="IMousePointerShapeChangedEvent">IMousePointerShapeChangedEvent</link>.
14218 </desc>
14219 </const>
14220 <const name="OnMouseCapabilityChanged" value="44">
14221 <desc>
14222 See <link to="IMouseCapabilityChangedEvent">IMouseCapabilityChangedEvent</link>.
14223 </desc>
14224 </const>
14225 <const name="OnKeyboardLedsChanged" value="45">
14226 <desc>
14227 See <link to="IKeyboardLedsChangedEvent">IKeyboardLedsChangedEvent</link>.
14228 </desc>
14229 </const>
14230 <const name="OnStateChanged" value="46">
14231 <desc>
14232 See <link to="IStateChangedEvent">IStateChangedEvent</link>.
14233 </desc>
14234 </const>
14235 <const name="OnAdditionsStateChanged" value="47">
14236 <desc>
14237 See <link to="IAdditionsStateChangedEvent">IAdditionsStateChangedEvent</link>.
14238 </desc>
14239 </const>
14240 <const name="OnNetworkAdapterChanged" value="48">
14241 <desc>
14242 See <link to="INetworkAdapterChangedEvent">INetworkAdapterChangedEvent</link>.
14243 </desc>
14244 </const>
14245 <const name="OnSerialPortChanged" value="49">
14246 <desc>
14247 See <link to="ISerialPortChangedEvent">ISerialPortChangedEvent</link>.
14248 </desc>
14249 </const>
14250 <const name="OnParallelPortChanged" value="50">
14251 <desc>
14252 See <link to="IParallelPortChangedEvent">IParallelPortChangedEvent</link>.
14253 </desc>
14254 </const>
14255 <const name="OnStorageControllerChanged" value="51">
14256 <desc>
14257 See <link to="IStorageControllerChangedEvent">IStorageControllerChangedEvent</link>.
14258 </desc>
14259 </const>
14260 <const name="OnMediumChanged" value="52">
14261 <desc>
14262 See <link to="IMediumChangedEvent">IMediumChangedEvent</link>.
14263 </desc>
14264 </const>
14265 <const name="OnVRDEServerChanged" value="53">
14266 <desc>
14267 See <link to="IVRDEServerChangedEvent">IVRDEServerChangedEvent</link>.
14268 </desc>
14269 </const>
14270 <const name="OnUSBControllerChanged" value="54">
14271 <desc>
14272 See <link to="IUSBControllerChangedEvent">IUSBControllerChangedEvent</link>.
14273 </desc>
14274 </const>
14275 <const name="OnUSBDeviceStateChanged" value="55">
14276 <desc>
14277 See <link to="IUSBDeviceStateChangedEvent">IUSBDeviceStateChangedEvent</link>.
14278 </desc>
14279 </const>
14280 <const name="OnSharedFolderChanged" value="56">
14281 <desc>
14282 See <link to="ISharedFolderChangedEvent">ISharedFolderChangedEvent</link>.
14283 </desc>
14284 </const>
14285 <const name="OnRuntimeError" value="57">
14286 <desc>
14287 See <link to="IRuntimeErrorEvent">IRuntimeErrorEvent</link>.
14288 </desc>
14289 </const>
14290 <const name="OnCanShowWindow" value="58">
14291 <desc>
14292 See <link to="ICanShowWindowEvent">ICanShowWindowEvent</link>.
14293 </desc>
14294 </const>
14295 <const name="OnShowWindow" value="59">
14296 <desc>
14297 See <link to="IShowWindowEvent">IShowWindowEvent</link>.
14298 </desc>
14299 </const>
14300 <const name="OnCPUChanged" value="60">
14301 <desc>
14302 See <link to="ICPUChangedEvent">ICPUChangedEvent</link>.
14303 </desc>
14304 </const>
14305 <const name="OnVRDEServerInfoChanged" value="61">
14306 <desc>
14307 See <link to="IVRDEServerInfoChangedEvent">IVRDEServerInfoChangedEvent</link>.
14308 </desc>
14309 </const>
14310 <const name="OnEventSourceChanged" value="62">
14311 <desc>
14312 See <link to="IEventSourceChangedEvent">IEventSourceChangedEvent</link>.
14313 </desc>
14314 </const>
14315 <const name="OnCPUExecutionCapChanged" value="63">
14316 <desc>
14317 See <link to="ICPUExecutionCapChangedEvent">ICPUExecutionCapChangedEvent</link>.
14318 </desc>
14319 </const>
14320 <const name="OnGuestKeyboardEvent" value="64">
14321 <desc>
14322 See <link to="IGuestKeyboardEvent">IGuestKeyboardEvent</link>.
14323 </desc>
14324 </const>
14325 <const name="OnGuestMouseEvent" value="65">
14326 <desc>
14327 See <link to="IGuestMouseEvent">IGuestMouseEvent</link>.
14328 </desc>
14329 </const>
14330 <!-- Last event marker -->
14331 <const name="Last" value="66">
14332 <desc>
14333 Must be last event, used for iterations and structures relying on numerical event values.
14334 </desc>
14335 </const>
14336
14337 </enum>
14338
14339 <interface
14340 name="IEventSource" extends="$unknown"
14341 uuid="9b6e1aee-35f3-4f4d-b5bb-ed0ecefd8538"
14342 wsmap="managed"
14343 >
14344 <desc>
14345 Event source. Generally, any object which could generate events can be an event source,
14346 or aggregate one. To simplify using one-way protocols such as webservices running on top of HTTP(S),
14347 an event source can work with listeners in either active or passive mode. In active mode it is up to
14348 the IEventSource implementation to call <link to="IEventListener::handleEvent" />, in passive mode the
14349 event source keeps track of pending events for each listener and returns available events on demand.
14350
14351 See <link to="IEvent" /> for an introduction to VirtualBox event handling.
14352 </desc>
14353
14354 <method name="createListener">
14355 <desc>
14356 Creates a new listener object, useful for passive mode.
14357 </desc>
14358 <param name="listener" type="IEventListener" dir="return"/>
14359 </method>
14360
14361 <method name="createAggregator">
14362 <desc>
14363 Creates a aggregator event source, collecting events from multiple sources.
14364 This way single listener can listen for events coming from multiple sources,
14365 using single blocking getEvent() of this aggregator.
14366 </desc>
14367 <param name="subordinates" type="IEventSource" dir="in" safearray="yes">
14368 <desc>
14369 Subordinate event source this one aggregatres.
14370 </desc>
14371 </param>
14372 <param name="result" type="IEventSource" dir="return"/>
14373 </method>
14374
14375 <method name="registerListener">
14376 <desc>
14377 Register an event listener.
14378
14379 <note>
14380 To avoid system overload, the VirtualBox server process checks if passive event
14381 listeners call <link to="IEventSource::getEvent"/> frequently enough. In the
14382 current implementation, if more than 500 pending events are detected for a passive
14383 event listener, it is forcefully unregistered by the system, and further
14384 <link to="#getEvent" /> calls will return @c VBOX_E_OBJECT_NOT_FOUND.
14385 </note>
14386 </desc>
14387 <param name="listener" type="IEventListener" dir="in">
14388 <desc>Listener to register.</desc>
14389 </param>
14390 <param name="interesting" type="VBoxEventType" dir="in" safearray="yes">
14391 <desc>
14392 Event types listener is interested in. One can use wildcards like -
14393 <link to="VBoxEventType_Any"/> to specify wildcards, matching more
14394 than one event.
14395 </desc>
14396 </param>
14397 <param name="active" type="boolean" dir="in">
14398 <desc>
14399 Which mode this listener is operating in.
14400 In active mode, <link to="IEventListener::handleEvent" /> is called directly.
14401 In passive mode, an internal event queue is created for this this IEventListener.
14402 For each event coming in, it is added to queues for all interested registered passive
14403 listeners. It is then up to the external code to call the listener's
14404 <link to="IEventListener::handleEvent" /> method. When done with an event, the
14405 external code must call <link to="#eventProcessed" />.
14406 </desc>
14407 </param>
14408 </method>
14409
14410 <method name="unregisterListener">
14411 <desc>
14412 Unregister an event listener. If listener is passive, and some waitable events are still
14413 in queue they are marked as processed automatically.
14414 </desc>
14415 <param name="listener" type="IEventListener" dir="in">
14416 <desc>Listener to unregister.</desc>
14417 </param>
14418 </method>
14419
14420 <method name="fireEvent">
14421 <desc>
14422 Fire an event for this source.
14423 </desc>
14424 <param name="event" type="IEvent" dir="in">
14425 <desc>Event to deliver.</desc>
14426 </param>
14427 <param name="timeout" type="long" dir="in">
14428 <desc>
14429 Maximum time to wait for event processing (if event is waitable), in ms;
14430 0 = no wait, -1 = indefinite wait.
14431 </desc>
14432 </param>
14433 <param name="result" type="boolean" dir="return">
14434 <desc>true if an event was delivered to all targets, or is non-waitable.</desc>
14435 </param>
14436 </method>
14437
14438 <method name="getEvent">
14439 <desc>
14440 Get events from this peer's event queue (for passive mode). Calling this method
14441 regularly is required for passive event listeners to avoid system overload;
14442 see <link to="IEventSource::registerListener" /> for details.
14443
14444 <result name="VBOX_E_OBJECT_NOT_FOUND">
14445 Listener is not registered, or autounregistered.
14446 </result>
14447 </desc>
14448 <param name="listener" type="IEventListener" dir="in">
14449 <desc>Which listener to get data for.</desc>
14450 </param>
14451 <param name="timeout" type="long" dir="in">
14452 <desc>
14453 Maximum time to wait for events, in ms;
14454 0 = no wait, -1 = indefinite wait.
14455 </desc>
14456 </param>
14457 <param name="event" type="IEvent" dir="return">
14458 <desc>Event retrieved, or null if none available.</desc>
14459 </param>
14460 </method>
14461
14462 <method name="eventProcessed">
14463 <desc>
14464 Must be called for waitable events after a particular listener finished its
14465 event processing. When all listeners of a particular event have called this
14466 method, the system will then call <link to="IEvent::setProcessed" />.
14467 </desc>
14468 <param name="listener" type="IEventListener" dir="in">
14469 <desc>Which listener processed event.</desc>
14470 </param>
14471 <param name="event" type="IEvent" dir="in">
14472 <desc>Which event.</desc>
14473 </param>
14474 </method>
14475
14476 </interface>
14477
14478 <interface
14479 name="IEventListener" extends="$unknown"
14480 uuid="67099191-32e7-4f6c-85ee-422304c71b90"
14481 wsmap="managed"
14482 >
14483 <desc>
14484 Event listener. An event listener can work in either active or passive mode, depending on the way
14485 it was registered.
14486 See <link to="IEvent" /> for an introduction to VirtualBox event handling.
14487 </desc>
14488
14489 <method name="handleEvent">
14490 <desc>
14491 Handle event callback (called directly by IEventSource in active mode, or could be
14492 called by event processor thread in passive mode).
14493 </desc>
14494 <param name="event" type="IEvent" dir="in">
14495 <desc>Event available.</desc>
14496 </param>
14497 </method>
14498
14499 </interface>
14500
14501 <interface
14502 name="IEvent" extends="$unknown"
14503 uuid="0ca2adba-8f30-401b-a8cd-fe31dbe839c0"
14504 wsmap="managed"
14505 >
14506 <desc>
14507 Abstract parent interface for VirtualBox events. Actual events will typically implement
14508 a more specific interface which derives from this (see below).
14509
14510 <b>Introduction to VirtualBox events</b>
14511
14512 Generally speaking, an event (represented by this interface) signals that something
14513 happened, while an event listener (see <link to="IEventListener" />) represents an
14514 entity that is interested in certain events. In order for this to work with
14515 unidirectional protocols (i.e. web services), the concepts of passive and active
14516 listener are used.
14517
14518 Event consumers can register themselves as listeners, providing an array of
14519 events they are interested in (see <link to="IEventSource::registerListener" />).
14520 When an event triggers, the listener is notified about the event. The exact
14521 mechanism of the notification depends on whether the listener was registered as
14522 an active or passive listener:
14523
14524 <ul>
14525 <li>An active listener is very similar to a callback: it is a function invoked
14526 by the API. As opposed to the callbacks that were used in the API before
14527 VirtualBox 4.0 however, events are now objects with an interface hierarchy.
14528 </li>
14529
14530 <li>Passive listeners are somewhat trickier to implement, but do not require
14531 a client function to be callable, which is not an option with scripting
14532 languages or web service clients. Internally the <link to="IEventSource" />
14533 implementation maintains an event queue for each passive listener, and
14534 newly arrived events are put in this queue. When the listener calls
14535 <link to="IEventSource::getEvent"/>, first element from its internal event
14536 queue is returned. When the client completes processing of an event,
14537 the <link to="IEventSource::eventProcessed" /> function must be called,
14538 acknowledging that the event was processed. It supports implementing
14539 waitable events. On passive listener unregistration, all events from its
14540 queue are auto-acknowledged.
14541 </li>
14542 </ul>
14543
14544 Waitable events are useful in situations where the event generator wants to track
14545 delivery or a party wants to wait until all listeners have completed the event. A
14546 typical example would be a vetoable event (see <link to="IVetoEvent" />) where a
14547 listeners might veto a certain action, and thus the event producer has to make
14548 sure that all listeners have processed the event and not vetoed before taking
14549 the action.
14550
14551 A given event may have both passive and active listeners at the same time.
14552
14553 <b>Using events</b>
14554
14555 Any VirtualBox object capable of producing externally visible events provides an
14556 @c eventSource read-only attribute, which is of the type <link to="IEventSource" />.
14557 This event source object is notified by VirtualBox once something has happened, so
14558 consumers may register event listeners with this event source. To register a listener,
14559 an object implementing the <link to="IEventListener" /> interface must be provided.
14560 For active listeners, such an object is typically created by the consumer, while for
14561 passive listeners <link to="IEventSource::createListener" /> should be used. Please
14562 note that a listener created with @c createListener() must not be used as an active listener.
14563
14564 Once created, the listener must be registered to listen for the desired events
14565 (see <link to="IEventSource::registerListener" />), providing an array of
14566 <link to="VBoxEventType" /> enums. Those elements can either be the individual
14567 event IDs or wildcards matching multiple event IDs.
14568
14569 After registration, the callback's <link to="IEventListener::handleEvent" /> method is
14570 called automatically when the event is triggered, while passive listeners have to call
14571 <link to="IEventSource::getEvent" /> and <link to="IEventSource::eventProcessed" /> in
14572 an event processing loop.
14573
14574 The IEvent interface is an abstract parent interface for all such VirtualBox events
14575 coming in. As a result, the standard use pattern inside <link to="IEventListener::handleEvent" />
14576 or the event processing loop is to check the <link to="#type" /> attribute of the event and
14577 then cast to the appropriate specific interface using @c QueryInterface().
14578 </desc>
14579
14580 <attribute name="type" readonly="yes" type="VBoxEventType">
14581 <desc>
14582 Event type.
14583 </desc>
14584 </attribute>
14585
14586 <attribute name="source" readonly="yes" type="IEventSource">
14587 <desc>
14588 Source of this event.
14589 </desc>
14590 </attribute>
14591
14592 <attribute name="waitable" readonly="yes" type="boolean">
14593 <desc>
14594 If we can wait for this event being processed. If false, waitProcessed() returns immediately,
14595 and setProcessed() doesn't make sense. Non-waitable events are generally better performing,
14596 as no additional overhead associated with waitability imposed.
14597 Waitable events are needed when one need to be able to wait for particular event processed,
14598 for example for vetoable changes, or if event refers to some resource which need to be kept immutable
14599 until all consumers confirmed events.
14600 </desc>
14601 </attribute>
14602
14603 <method name="setProcessed">
14604 <desc>
14605 Internal method called by the system when all listeners of a particular event have called
14606 <link to="IEventSource::eventProcessed" />. This should not be called by client code.
14607 </desc>
14608 </method>
14609
14610 <method name="waitProcessed">
14611 <desc>
14612 Wait until time outs, or this event is processed. Event must be waitable for this operation to have
14613 described semantics, for non-waitable returns true immediately.
14614 </desc>
14615 <param name="timeout" type="long" dir="in">
14616 <desc>
14617 Maximum time to wait for event processeing, in ms;
14618 0 = no wait, -1 = indefinite wait.
14619 </desc>
14620 </param>
14621 <param name="result" type="boolean" dir="return">
14622 <desc>If this event was processed before timeout.</desc>
14623 </param>
14624 </method>
14625 </interface>
14626
14627
14628 <interface
14629 name="IReusableEvent" extends="IEvent"
14630 uuid="69bfb134-80f6-4266-8e20-16371f68fa25"
14631 wsmap="managed"
14632 >
14633 <desc>Base abstract interface for all reusable events.</desc>
14634
14635 <attribute name="generation" readonly="yes" type="unsigned long">
14636 <desc>Current generation of event, incremented on reuse.</desc>
14637 </attribute>
14638
14639 <method name="reuse">
14640 <desc>
14641 Marks an event as reused, increments 'generation', fields shall no
14642 longer be considered valid.
14643 </desc>
14644 </method>
14645 </interface>
14646
14647 <interface
14648 name="IMachineEvent" extends="IEvent"
14649 uuid="92ed7b1a-0d96-40ed-ae46-a564d484325e"
14650 wsmap="managed" id="MachineEvent"
14651 >
14652 <desc>Base abstract interface for all machine events.</desc>
14653
14654 <attribute name="machineId" readonly="yes" type="uuid" mod="string">
14655 <desc>ID of the machine this event relates to.</desc>
14656 </attribute>
14657
14658 </interface>
14659
14660 <interface
14661 name="IMachineStateChangedEvent" extends="IMachineEvent"
14662 uuid="5748F794-48DF-438D-85EB-98FFD70D18C9"
14663 wsmap="managed" autogen="VBoxEvent" id="OnMachineStateChanged"
14664 >
14665 <desc>Machine state change event.</desc>
14666
14667 <attribute name="state" readonly="yes" type="MachineState">
14668 <desc>New execution state.</desc>
14669 </attribute>
14670 </interface>
14671
14672 <interface
14673 name="IMachineDataChangedEvent" extends="IMachineEvent"
14674 uuid="6AA70A6C-0DCA-4810-8C5C-457B278E3D49"
14675 wsmap="managed" autogen="VBoxEvent" id="OnMachineDataChanged"
14676 >
14677 <desc>
14678 Any of the settings of the given machine has changed.
14679 </desc>
14680 </interface>
14681
14682 <interface
14683 name="IMediumRegisteredEvent" extends="IEvent"
14684 uuid="53fac49a-b7f1-4a5a-a4ef-a11dd9c2a458"
14685 wsmap="managed" autogen="VBoxEvent" id="OnMediumRegistered"
14686 >
14687 <desc>
14688 The given medium was registered or unregistered
14689 within this VirtualBox installation.
14690 </desc>
14691
14692 <attribute name="mediumId" readonly="yes" type="uuid" mod="string">
14693 <desc>ID of the medium this event relates to.</desc>
14694 </attribute>
14695
14696 <attribute name="mediumType" readonly="yes" type="DeviceType">
14697 <desc>Type of the medium this event relates to.</desc>
14698 </attribute>
14699
14700 <attribute name="registered" type="boolean" readonly="yes">
14701 <desc>
14702 If @c true, the medium was registered, otherwise it was
14703 unregistered.
14704 </desc>
14705 </attribute>
14706 </interface>
14707
14708 <interface
14709 name="IMachineRegisteredEvent" extends="IMachineEvent"
14710 uuid="c354a762-3ff2-4f2e-8f09-07382ee25088"
14711 wsmap="managed" autogen="VBoxEvent" id="OnMachineRegistered"
14712 >
14713 <desc>
14714 The given machine was registered or unregistered
14715 within this VirtualBox installation.
14716 </desc>
14717
14718 <attribute name="registered" type="boolean" readonly="yes">
14719 <desc>
14720 If @c true, the machine was registered, otherwise it was
14721 unregistered.
14722 </desc>
14723 </attribute>
14724 </interface>
14725
14726 <interface
14727 name="ISessionStateChangedEvent" extends="IMachineEvent"
14728 uuid="714a3eef-799a-4489-86cd-fe8e45b2ff8e"
14729 wsmap="managed" autogen="VBoxEvent" id="OnSessionStateChanged"
14730 >
14731 <desc>
14732 The state of the session for the given machine was changed.
14733 <see>IMachine::sessionState</see>
14734 </desc>
14735
14736 <attribute name="state" type="SessionState" readonly="yes">
14737 <desc>
14738 New session state.
14739 </desc>
14740 </attribute>
14741 </interface>
14742
14743 <interface
14744 name="IGuestPropertyChangedEvent" extends="IMachineEvent"
14745 uuid="3f63597a-26f1-4edb-8dd2-6bddd0912368"
14746 wsmap="managed" autogen="VBoxEvent" id="OnGuestPropertyChanged"
14747 >
14748 <desc>
14749 Notification when a guest property has changed.
14750 </desc>
14751
14752 <attribute name="name" readonly="yes" type="wstring">
14753 <desc>
14754 The name of the property that has changed.
14755 </desc>
14756 </attribute>
14757
14758 <attribute name="value" readonly="yes" type="wstring">
14759 <desc>
14760 The new property value.
14761 </desc>
14762 </attribute>
14763
14764 <attribute name="flags" readonly="yes" type="wstring">
14765 <desc>
14766 The new property flags.
14767 </desc>
14768 </attribute>
14769
14770 </interface>
14771
14772 <interface
14773 name="ISnapshotEvent" extends="IMachineEvent"
14774 uuid="21637b0e-34b8-42d3-acfb-7e96daf77c22"
14775 wsmap="managed" id="SnapshotEvent"
14776 >
14777 <desc>Base interface for all snapshot events.</desc>
14778
14779 <attribute name="snapshotId" readonly="yes" type="uuid" mod="string">
14780 <desc>ID of the snapshot this event relates to.</desc>
14781 </attribute>
14782
14783 </interface>
14784
14785 <interface
14786 name="ISnapshotTakenEvent" extends="ISnapshotEvent"
14787 uuid="d27c0b3d-6038-422c-b45e-6d4a0503d9f1"
14788 wsmap="managed" autogen="VBoxEvent" id="OnSnapshotTaken"
14789 >
14790 <desc>
14791 A new snapshot of the machine has been taken.
14792 <see>ISnapshot</see>
14793 </desc>
14794 </interface>
14795
14796 <interface
14797 name="ISnapshotDeletedEvent" extends="ISnapshotEvent"
14798 uuid="c48f3401-4a9e-43f4-b7a7-54bd285e22f4"
14799 wsmap="managed" autogen="VBoxEvent" id="OnSnapshotDeleted"
14800 >
14801 <desc>
14802 Snapshot of the given machine has been deleted.
14803
14804 <note>
14805 This notification is delivered <b>after</b> the snapshot
14806 object has been uninitialized on the server (so that any
14807 attempt to call its methods will return an error).
14808 </note>
14809
14810 <see>ISnapshot</see>
14811 </desc>
14812 </interface>
14813
14814 <interface
14815 name="ISnapshotChangedEvent" extends="ISnapshotEvent"
14816 uuid="07541941-8079-447a-a33e-47a69c7980db"
14817 wsmap="managed" autogen="VBoxEvent" id="OnSnapshotChanged"
14818 >
14819 <desc>
14820 Snapshot properties (name and/or description) have been changed.
14821 <see>ISnapshot</see>
14822 </desc>
14823 </interface>
14824
14825 <interface
14826 name="IMousePointerShapeChangedEvent" extends="IEvent"
14827 uuid="a6dcf6e8-416b-4181-8c4a-45ec95177aef"
14828 wsmap="managed" autogen="VBoxEvent" id="OnMousePointerShapeChanged"
14829 >
14830 <desc>
14831 Notification when the guest mouse pointer shape has
14832 changed. The new shape data is given.
14833 </desc>
14834
14835 <attribute name="visible" type="boolean" readonly="yes">
14836 <desc>
14837 Flag whether the pointer is visible.
14838 </desc>
14839 </attribute>
14840 <attribute name="alpha" type="boolean" readonly="yes">
14841 <desc>
14842 Flag whether the pointer has an alpha channel.
14843 </desc>
14844 </attribute>
14845 <attribute name="xhot" type="unsigned long" readonly="yes">
14846 <desc>
14847 The pointer hot spot X coordinate.
14848 </desc>
14849 </attribute>
14850 <attribute name="yhot" type="unsigned long" readonly="yes">
14851 <desc>
14852 The pointer hot spot Y coordinate.
14853 </desc>
14854 </attribute>
14855 <attribute name="width" type="unsigned long" readonly="yes">
14856 <desc>
14857 Width of the pointer shape in pixels.
14858 </desc>
14859 </attribute>
14860 <attribute name="height" type="unsigned long" readonly="yes">
14861 <desc>
14862 Height of the pointer shape in pixels.
14863 </desc>
14864 </attribute>
14865 <attribute name="shape" type="octet" safearray="yes" readonly="yes">
14866 <desc>
14867 Shape buffer arrays.
14868
14869 The @a shape buffer contains a 1-bpp (bits per pixel) AND mask
14870 followed by a 32-bpp XOR (color) mask.
14871
14872 For pointers without alpha channel the XOR mask pixels are 32
14873 bit values: (lsb)BGR0(msb). For pointers with alpha channel
14874 the XOR mask consists of (lsb)BGRA(msb) 32 bit values.
14875
14876 An AND mask is used for pointers with alpha channel, so if the
14877 callback does not support alpha, the pointer could be
14878 displayed as a normal color pointer.
14879
14880 The AND mask is a 1-bpp bitmap with byte aligned scanlines. The
14881 size of the AND mask therefore is <tt>cbAnd = (width + 7) / 8 *
14882 height</tt>. The padding bits at the end of each scanline are
14883 undefined.
14884
14885 The XOR mask follows the AND mask on the next 4-byte aligned
14886 offset: <tt>uint8_t *pXor = pAnd + (cbAnd + 3) &amp; ~3</tt>.
14887 Bytes in the gap between the AND and the XOR mask are undefined.
14888 The XOR mask scanlines have no gap between them and the size of
14889 the XOR mask is: <tt>cXor = width * 4 * height</tt>.
14890
14891 <note>
14892 If @a shape is 0, only the pointer visibility is changed.
14893 </note>
14894 </desc>
14895 </attribute>
14896 </interface>
14897
14898 <interface
14899 name="IMouseCapabilityChangedEvent" extends="IEvent"
14900 uuid="d633ad48-820c-4207-b46c-6bd3596640d5"
14901 wsmap="managed" autogen="VBoxEvent" id="OnMouseCapabilityChanged"
14902 >
14903 <desc>
14904 Notification when the mouse capabilities reported by the
14905 guest have changed. The new capabilities are passed.
14906 </desc>
14907 <attribute name="supportsAbsolute" type="boolean" readonly="yes">
14908 <desc>
14909 Supports absolute coordinates.
14910 </desc>
14911 </attribute>
14912 <attribute name="supportsRelative" type="boolean" readonly="yes">
14913 <desc>
14914 Supports relative coordinates.
14915 </desc>
14916 </attribute>
14917 <attribute name="needsHostCursor" type="boolean" readonly="yes">
14918 <desc>
14919 If host cursor is needed.
14920 </desc>
14921 </attribute>
14922 </interface>
14923
14924 <interface
14925 name="IKeyboardLedsChangedEvent" extends="IEvent"
14926 uuid="6DDEF35E-4737-457B-99FC-BC52C851A44F"
14927 wsmap="managed" autogen="VBoxEvent" id="OnKeyboardLedsChanged"
14928 >
14929 <desc>
14930 Notification when the guest OS executes the KBD_CMD_SET_LEDS command
14931 to alter the state of the keyboard LEDs.
14932 </desc>
14933 <attribute name="numLock" type="boolean" readonly="yes">
14934 <desc>
14935 NumLock status.
14936 </desc>
14937 </attribute>
14938 <attribute name="capsLock" type="boolean" readonly="yes">
14939 <desc>
14940 CapsLock status.
14941 </desc>
14942 </attribute>
14943 <attribute name="scrollLock" type="boolean" readonly="yes">
14944 <desc>
14945 ScrollLock status.
14946 </desc>
14947 </attribute>
14948 </interface>
14949
14950 <interface
14951 name="IStateChangedEvent" extends="IEvent"
14952 uuid="4376693C-CF37-453B-9289-3B0F521CAF27"
14953 wsmap="managed" autogen="VBoxEvent" id="OnStateChanged"
14954 >
14955 <desc>
14956 Notification when the execution state of the machine has changed.
14957 The new state is given.
14958 </desc>
14959 <attribute name="state" type="MachineState" readonly="yes">
14960 <desc>
14961 New machine state.
14962 </desc>
14963 </attribute>
14964 </interface>
14965
14966 <interface
14967 name="IAdditionsStateChangedEvent" extends="IEvent"
14968 uuid="D70F7915-DA7C-44C8-A7AC-9F173490446A"
14969 wsmap="managed" autogen="VBoxEvent" id="OnAdditionsStateChanged"
14970 >
14971 <desc>
14972 Notification when a Guest Additions property changes.
14973 Interested callees should query IGuest attributes to
14974 find out what has changed.
14975 </desc>
14976 </interface>
14977
14978 <interface
14979 name="INetworkAdapterChangedEvent" extends="IEvent"
14980 uuid="08889892-1EC6-4883-801D-77F56CFD0103"
14981 wsmap="managed" autogen="VBoxEvent" id="OnNetworkAdapterChanged"
14982 >
14983 <desc>
14984 Notification when a property of one of the
14985 virtual <link to="IMachine::getNetworkAdapter">network adapters</link>
14986 changes. Interested callees should use INetworkAdapter methods and
14987 attributes to find out what has changed.
14988 </desc>
14989 <attribute name="networkAdapter" type="INetworkAdapter" readonly="yes">
14990 <desc>
14991 Network adapter that is subject to change.
14992 </desc>
14993 </attribute>
14994 </interface>
14995
14996 <interface
14997 name="ISerialPortChangedEvent" extends="IEvent"
14998 uuid="3BA329DC-659C-488B-835C-4ECA7AE71C6C"
14999 wsmap="managed" autogen="VBoxEvent" id="OnSerialPortChanged"
15000 >
15001 <desc>
15002 Notification when a property of one of the
15003 virtual <link to="IMachine::getSerialPort">serial ports</link> changes.
15004 Interested callees should use ISerialPort methods and attributes
15005 to find out what has changed.
15006 </desc>
15007 <attribute name="serialPort" type="ISerialPort" readonly="yes">
15008 <desc>
15009 Serial port that is subject to change.
15010 </desc>
15011 </attribute>
15012 </interface>
15013
15014 <interface
15015 name="IParallelPortChangedEvent" extends="IEvent"
15016 uuid="813C99FC-9849-4F47-813E-24A75DC85615"
15017 wsmap="managed" autogen="VBoxEvent" id="OnParallelPortChanged"
15018 >
15019 <desc>
15020 Notification when a property of one of the
15021 virtual <link to="IMachine::getParallelPort">parallel ports</link>
15022 changes. Interested callees should use ISerialPort methods and
15023 attributes to find out what has changed.
15024 </desc>
15025 <attribute name="parallelPort" type="IParallelPort" readonly="yes">
15026 <desc>
15027 Parallel port that is subject to change.
15028 </desc>
15029 </attribute>
15030 </interface>
15031
15032 <interface
15033 name="IStorageControllerChangedEvent" extends="IEvent"
15034 uuid="715212BF-DA59-426E-8230-3831FAA52C56"
15035 wsmap="managed" autogen="VBoxEvent" id="OnStorageControllerChanged"
15036 >
15037 <desc>
15038 Notification when a
15039 <link to="IMachine::mediumAttachments">medium attachment</link>
15040 changes.
15041 </desc>
15042 </interface>
15043
15044 <interface
15045 name="IMediumChangedEvent" extends="IEvent"
15046 uuid="0FE2DA40-5637-472A-9736-72019EABD7DE"
15047 wsmap="managed" autogen="VBoxEvent" id="OnMediumChanged"
15048 >
15049 <desc>
15050 Notification when a
15051 <link to="IMachine::mediumAttachments">medium attachment</link>
15052 changes.
15053 </desc>
15054 <attribute name="mediumAttachment" type="IMediumAttachment" readonly="yes">
15055 <desc>
15056 Medium attachment that is subject to change.
15057 </desc>
15058 </attribute>
15059 </interface>
15060
15061 <interface
15062 name="ICPUChangedEvent" extends="IEvent"
15063 uuid="D0F0BECC-EE17-4D17-A8CC-383B0EB55E9D"
15064 wsmap="managed" autogen="VBoxEvent" id="OnCPUChanged"
15065 >
15066 <desc>
15067 Notification when a CPU changes.
15068 </desc>
15069 <attribute name="cpu" type="unsigned long" readonly="yes">
15070 <desc>
15071 The CPU which changed.
15072 </desc>
15073 </attribute>
15074 <attribute name="add" type="boolean" readonly="yes">
15075 <desc>
15076 Flag whether the CPU was added or removed.
15077 </desc>
15078 </attribute>
15079 </interface>
15080
15081 <interface
15082 name="ICPUExecutionCapChangedEvent" extends="IEvent"
15083 uuid="dfa7e4f5-b4a4-44ce-85a8-127ac5eb59dc"
15084 wsmap="managed" autogen="VBoxEvent" id="OnCPUExecutionCapChanged"
15085 >
15086 <desc>
15087 Notification when the CPU execution cap changes.
15088 </desc>
15089 <attribute name="executionCap" type="unsigned long" readonly="yes">
15090 <desc>
15091 The new CPU execution cap value. (1-100)
15092 </desc>
15093 </attribute>
15094 </interface>
15095
15096 <interface
15097 name="IGuestKeyboardEvent" extends="IEvent"
15098 uuid="88394258-7006-40d4-b339-472ee3801844"
15099 wsmap="managed" autogen="VBoxEvent" id="OnGuestKeyboardEvent"
15100 >
15101 <desc>
15102 Notification when guest keyboard event happens.
15103 </desc>
15104 <attribute name="scancodes" type="long" safearray="yes" readonly="yes">
15105 <desc>
15106 Array of scancodes.
15107 </desc>
15108 </attribute>
15109 </interface>
15110
15111 <interface
15112 name="IGuestMouseEvent" extends="IReusableEvent"
15113 uuid="1f85d35c-c524-40ff-8e98-307000df0992"
15114 wsmap="managed" autogen="VBoxEvent" id="OnGuestMouseEvent"
15115 >
15116 <desc>
15117 Notification when guest mouse event happens.
15118 </desc>
15119
15120 <attribute name="absolute" type="boolean" readonly="yes">
15121 <desc>
15122 If this event is relative or absolute.
15123 </desc>
15124 </attribute>
15125
15126 <attribute name="x" type="long" readonly="yes">
15127 <desc>
15128 New X position, or X delta.
15129 </desc>
15130 </attribute>
15131
15132 <attribute name="y" type="long" readonly="yes">
15133 <desc>
15134 New Y position, or Y delta.
15135 </desc>
15136 </attribute>
15137
15138 <attribute name="z" type="long" readonly="yes">
15139 <desc>
15140 Z delta.
15141 </desc>
15142 </attribute>
15143
15144 <attribute name="w" type="long" readonly="yes">
15145 <desc>
15146 W delta.
15147 </desc>
15148 </attribute>
15149
15150 <attribute name="buttons" type="long" readonly="yes">
15151 <desc>
15152 Button state bitmask.
15153 </desc>
15154 </attribute>
15155
15156 </interface>
15157
15158
15159 <interface
15160 name="IVRDEServerChangedEvent" extends="IEvent"
15161 uuid="a06fd66a-3188-4c8c-8756-1395e8cb691c"
15162 wsmap="managed" autogen="VBoxEvent" id="OnVRDEServerChanged"
15163 >
15164 <desc>
15165 Notification when a property of the
15166 <link to="IMachine::VRDEServer">VRDE server</link> changes.
15167 Interested callees should use IVRDEServer methods and attributes to
15168 find out what has changed.
15169 </desc>
15170 </interface>
15171
15172 <interface
15173 name="IVRDEServerInfoChangedEvent" extends="IEvent"
15174 uuid="dd6a1080-e1b7-4339-a549-f0878115596e"
15175 wsmap="managed" autogen="VBoxEvent" id="OnVRDEServerInfoChanged"
15176 >
15177 <desc>
15178 Notification when the status of the VRDE server changes. Interested callees
15179 should use <link to="IConsole::VRDEServerInfo">IVRDEServerInfo</link>
15180 attributes to find out what is the current status.
15181 </desc>
15182 </interface>
15183
15184 <interface
15185 name="IUSBControllerChangedEvent" extends="IEvent"
15186 uuid="93BADC0C-61D9-4940-A084-E6BB29AF3D83"
15187 wsmap="managed" autogen="VBoxEvent" id="OnUSBControllerChanged"
15188 >
15189 <desc>
15190 Notification when a property of the virtual
15191 <link to="IMachine::USBController">USB controller</link> changes.
15192 Interested callees should use IUSBController methods and attributes to
15193 find out what has changed.
15194 </desc>
15195 </interface>
15196
15197 <interface
15198 name="IUSBDeviceStateChangedEvent" extends="IEvent"
15199 uuid="806da61b-6679-422a-b629-51b06b0c6d93"
15200 wsmap="managed" autogen="VBoxEvent" id="OnUSBDeviceStateChanged"
15201 >
15202 <desc>
15203 Notification when a USB device is attached to or detached from
15204 the virtual USB controller.
15205
15206 This notification is sent as a result of the indirect
15207 request to attach the device because it matches one of the
15208 machine USB filters, or as a result of the direct request
15209 issued by <link to="IConsole::attachUSBDevice"/> or
15210 <link to="IConsole::detachUSBDevice"/>.
15211
15212 This notification is sent in case of both a succeeded and a
15213 failed request completion. When the request succeeds, the
15214 @a error parameter is @c null, and the given device has been
15215 already added to (when @a attached is @c true) or removed from
15216 (when @a attached is @c false) the collection represented by
15217 <link to="IConsole::USBDevices"/>. On failure, the collection
15218 doesn't change and the @a error parameter represents the error
15219 message describing the failure.
15220 </desc>
15221 <attribute name="device" type="IUSBDevice" readonly="yes">
15222 <desc>
15223 Device that is subject to state change.
15224 </desc>
15225 </attribute>
15226 <attribute name="attached" type="boolean" readonly="yes">
15227 <desc>
15228 @c true if the device was attached and @c false otherwise.
15229 </desc>
15230 </attribute>
15231 <attribute name="error" type="IVirtualBoxErrorInfo" readonly="yes">
15232 <desc>
15233 @c null on success or an error message object on failure.
15234 </desc>
15235 </attribute>
15236 </interface>
15237
15238 <interface
15239 name="ISharedFolderChangedEvent" extends="IEvent"
15240 uuid="B66349B5-3534-4239-B2DE-8E1535D94C0B"
15241 wsmap="managed" autogen="VBoxEvent" id="OnSharedFolderChanged"
15242 >
15243 <desc>
15244 Notification when a shared folder is added or removed.
15245 The @a scope argument defines one of three scopes:
15246 <link to="IVirtualBox::sharedFolders">global shared folders</link>
15247 (<link to="Scope_Global">Global</link>),
15248 <link to="IMachine::sharedFolders">permanent shared folders</link> of
15249 the machine (<link to="Scope_Machine">Machine</link>) or <link
15250 to="IConsole::sharedFolders">transient shared folders</link> of the
15251 machine (<link to="Scope_Session">Session</link>). Interested callees
15252 should use query the corresponding collections to find out what has
15253 changed.
15254 </desc>
15255 <attribute name="scope" type="Scope" readonly="yes">
15256 <desc>
15257 Scope of the notification.
15258 </desc>
15259 </attribute>
15260 </interface>
15261
15262 <interface
15263 name="IRuntimeErrorEvent" extends="IEvent"
15264 uuid="883DD18B-0721-4CDE-867C-1A82ABAF914C"
15265 wsmap="managed" autogen="VBoxEvent" id="OnRuntimeError"
15266 >
15267 <desc>
15268 Notification when an error happens during the virtual
15269 machine execution.
15270
15271 There are three kinds of runtime errors:
15272 <ul>
15273 <li><i>fatal</i></li>
15274 <li><i>non-fatal with retry</i></li>
15275 <li><i>non-fatal warnings</i></li>
15276 </ul>
15277
15278 <b>Fatal</b> errors are indicated by the @a fatal parameter set
15279 to @c true. In case of fatal errors, the virtual machine
15280 execution is always paused before calling this notification, and
15281 the notification handler is supposed either to immediately save
15282 the virtual machine state using <link to="IConsole::saveState"/>
15283 or power it off using <link to="IConsole::powerDown"/>.
15284 Resuming the execution can lead to unpredictable results.
15285
15286 <b>Non-fatal</b> errors and warnings are indicated by the
15287 @a fatal parameter set to @c false. If the virtual machine
15288 is in the Paused state by the time the error notification is
15289 received, it means that the user can <i>try to resume</i> the machine
15290 execution after attempting to solve the problem that caused the
15291 error. In this case, the notification handler is supposed
15292 to show an appropriate message to the user (depending on the
15293 value of the @a id parameter) that offers several actions such
15294 as <i>Retry</i>, <i>Save</i> or <i>Power Off</i>. If the user
15295 wants to retry, the notification handler should continue
15296 the machine execution using the <link to="IConsole::resume"/>
15297 call. If the machine execution is not Paused during this
15298 notification, then it means this notification is a <i>warning</i>
15299 (for example, about a fatal condition that can happen very soon);
15300 no immediate action is required from the user, the machine
15301 continues its normal execution.
15302
15303 Note that in either case the notification handler
15304 <b>must not</b> perform any action directly on a thread
15305 where this notification is called. Everything it is allowed to
15306 do is to post a message to another thread that will then talk
15307 to the user and take the corresponding action.
15308
15309 Currently, the following error identifiers are known:
15310 <ul>
15311 <li><tt>"HostMemoryLow"</tt></li>
15312 <li><tt>"HostAudioNotResponding"</tt></li>
15313 <li><tt>"VDIStorageFull"</tt></li>
15314 <li><tt>"3DSupportIncompatibleAdditions"</tt></li>
15315 </ul>
15316 </desc>
15317 <attribute name="fatal" type="boolean" readonly="yes">
15318 <desc>
15319 Whether the error is fatal or not.
15320 </desc>
15321 </attribute>
15322 <attribute name="id" type="wstring" readonly="yes">
15323 <desc>
15324 Error identifier.
15325 </desc>
15326 </attribute>
15327 <attribute name="message" type="wstring" readonly="yes">
15328 <desc>
15329 Optional error message.
15330 </desc>
15331 </attribute>
15332 </interface>
15333
15334
15335 <interface
15336 name="IEventSourceChangedEvent" extends="IEvent"
15337 uuid="e7932cb8-f6d4-4ab6-9cbf-558eb8959a6a"
15338 waitable="yes"
15339 wsmap="managed" autogen="VBoxEvent" id="OnEventSourceChanged"
15340 >
15341 <desc>
15342 Notification when an event source state changes (listener added or removed).
15343 </desc>
15344
15345 <attribute name="listener" type="IEventListener" readonly="yes">
15346 <desc>
15347 Event listener which has changed.
15348 </desc>
15349 </attribute>
15350
15351 <attribute name="add" type="boolean" readonly="yes">
15352 <desc>
15353 Flag whether listener was added or removed.
15354 </desc>
15355 </attribute>
15356 </interface>
15357
15358 <interface
15359 name="IExtraDataChangedEvent" extends="IEvent"
15360 uuid="024F00CE-6E0B-492A-A8D0-968472A94DC7"
15361 wsmap="managed" autogen="VBoxEvent" id="OnExtraDataChanged"
15362 >
15363 <desc>
15364 Notification when machine specific or global extra data
15365 has changed.
15366 </desc>
15367 <attribute name="machineId" type="uuid" mod="string" readonly="yes">
15368 <desc>
15369 ID of the machine this event relates to.
15370 Null for global extra data changes.
15371 </desc>
15372 </attribute>
15373 <attribute name="key" type="wstring" readonly="yes">
15374 <desc>
15375 Extra data key that has changed.
15376 </desc>
15377 </attribute>
15378 <attribute name="value" type="wstring" readonly="yes">
15379 <desc>
15380 Extra data value for the given key.
15381 </desc>
15382 </attribute>
15383 </interface>
15384
15385 <interface
15386 name="IVetoEvent" extends="IEvent"
15387 uuid="9a1a4130-69fe-472f-ac10-c6fa25d75007"
15388 wsmap="managed"
15389 >
15390 <desc>Base abstract interface for veto events.</desc>
15391
15392 <method name="addVeto">
15393 <desc>
15394 Adds a veto on this event.
15395 </desc>
15396 <param name="reason" type="wstring" dir="in">
15397 <desc>
15398 Reason for veto, could be null or empty string.
15399 </desc>
15400 </param>
15401 </method>
15402
15403 <method name="isVetoed">
15404 <desc>
15405 If this event was vetoed.
15406 </desc>
15407 <param name="result" type="boolean" dir="return">
15408 <desc>
15409 Reason for veto.
15410 </desc>
15411 </param>
15412 </method>
15413
15414 <method name="getVetos">
15415 <desc>
15416 Current veto reason list, if size is 0 - no veto.
15417 </desc>
15418 <param name="result" type="wstring" dir="return" safearray="yes">
15419 <desc>
15420 Array of reasons for veto provided by different event handlers.
15421 </desc>
15422 </param>
15423 </method>
15424
15425 </interface>
15426
15427 <interface
15428 name="IExtraDataCanChangeEvent" extends="IVetoEvent"
15429 uuid="245d88bd-800a-40f8-87a6-170d02249a55"
15430 wsmap="managed" autogen="VBoxEvent" id="OnExtraDataCanChange"
15431 waitable="true"
15432 >
15433 <desc>
15434 Notification when someone tries to change extra data for
15435 either the given machine or (if @c null) global extra data.
15436 This gives the chance to veto against changes.
15437 </desc>
15438 <attribute name="machineId" type="uuid" mod="string" readonly="yes">
15439 <desc>
15440 ID of the machine this event relates to.
15441 Null for global extra data changes.
15442 </desc>
15443 </attribute>
15444 <attribute name="key" type="wstring" readonly="yes">
15445 <desc>
15446 Extra data key that has changed.
15447 </desc>
15448 </attribute>
15449 <attribute name="value" type="wstring" readonly="yes">
15450 <desc>
15451 Extra data value for the given key.
15452 </desc>
15453 </attribute>
15454 </interface>
15455
15456 <interface
15457 name="ICanShowWindowEvent" extends="IVetoEvent"
15458 uuid="adf292b0-92c9-4a77-9d35-e058b39fe0b9"
15459 wsmap="managed" autogen="VBoxEvent" id="OnCanShowWindow"
15460 waitable="true"
15461 >
15462 <desc>
15463 Notification when a call to
15464 <link to="IMachine::canShowConsoleWindow"/> is made by a
15465 front-end to check if a subsequent call to
15466 <link to="IMachine::showConsoleWindow"/> can succeed.
15467
15468 The callee should give an answer appropriate to the current
15469 machine state using event veto. This answer must
15470 remain valid at least until the next
15471 <link to="IConsole::state">machine state</link> change.
15472 </desc>
15473 </interface>
15474
15475 <interface
15476 name="IShowWindowEvent" extends="IEvent"
15477 uuid="B0A0904D-2F05-4D28-855F-488F96BAD2B2"
15478 wsmap="managed" autogen="VBoxEvent" id="OnShowWindow"
15479 waitable="true"
15480 >
15481 <desc>
15482 Notification when a call to
15483 <link to="IMachine::showConsoleWindow"/>
15484 requests the console window to be activated and brought to
15485 foreground on the desktop of the host PC.
15486
15487 This notification should cause the VM console process to
15488 perform the requested action as described above. If it is
15489 impossible to do it at a time of this notification, this
15490 method should return a failure.
15491
15492 Note that many modern window managers on many platforms
15493 implement some sort of focus stealing prevention logic, so
15494 that it may be impossible to activate a window without the
15495 help of the currently active application (which is supposedly
15496 an initiator of this notification). In this case, this method
15497 must return a non-zero identifier that represents the
15498 top-level window of the VM console process. The caller, if it
15499 represents a currently active process, is responsible to use
15500 this identifier (in a platform-dependent manner) to perform
15501 actual window activation.
15502
15503 This method must set @a winId to zero if it has performed all
15504 actions necessary to complete the request and the console
15505 window is now active and in foreground, to indicate that no
15506 further action is required on the caller's side.
15507 </desc>
15508 <attribute name="winId" type="long long">
15509 <desc>
15510 Platform-dependent identifier of the top-level VM console
15511 window, or zero if this method has performed all actions
15512 necessary to implement the <i>show window</i> semantics for
15513 the given platform and/or this VirtualBox front-end.
15514 </desc>
15515 </attribute>
15516 </interface>
15517
15518 <module name="VBoxSVC" context="LocalServer">
15519 <class name="VirtualBox" uuid="B1A7A4F2-47B9-4A1E-82B2-07CCD5323C3F"
15520 namespace="virtualbox.org">
15521 <interface name="IVirtualBox" default="yes"/>
15522 </class>
15523 </module>
15524
15525 <module name="VBoxC" context="InprocServer" threadingModel="Free">
15526 <class name="Session" uuid="3C02F46D-C9D2-4F11-A384-53F0CF917214"
15527 namespace="virtualbox.org">
15528 <interface name="ISession" default="yes"/>
15529 </class>
15530
15531 <class name="Console" uuid="577230FF-164F-4CAC-8548-312D8275A4A7"
15532 namespace="virtualbox.org">
15533 <interface name="IConsole" default="yes"/>
15534 </class>
15535 </module>
15536
15537</library>
15538
15539</idl>
15540
15541<!-- vim: set shiftwidth=2 tabstop=2 expandtab: -->
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

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