VirtualBox

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

Last change on this file since 46478 was 46478, checked in by vboxsync, 11 years ago

libs/xpcom: touch up Java XPCOM wrapper generation, new common exception handlin
g model
Main/glue: Java glue code with better exception handling, indentation/coding style fixes both in the XSLT and the generated code, touched up Java sample code showing exception handling and getting all error information, Python indentation/whitespace cleanup
Main/idl: make more interfaces available over the webservice, some minor docs changes, whitespace cleanup
Main/webservice: redo error reporting through exceptions, no longer loses error
information, allow more fine-grained suppression of methods/attributed, touched up C++ webservice sample code to support showing the full error information, build system changes to prepare for incremental Java compilation, indentation fixesFrontends/VBoxShell: minor cleanups, coding style fixes, indentation fixes, elim
inate warnings

  • Property svn:eol-style set to native
File size: 759.5 KB
Line 
1<?xml version="1.0" encoding="utf-8"?>
2
3<!--
4
5 Copyright (C) 2006-2013 Oracle Corporation
6
7 This file is part of VirtualBox Open Source Edition (OSE), as
8 available from http://www.virtualbox.org. This file is free software;
9 you can redistribute it and/or modify it under the terms of the GNU
10 General Public License (GPL) as published by the Free Software
11 Foundation, in version 2 as it comes in the "COPYING" file of the
12 VirtualBox OSE distribution. VirtualBox OSE is distributed in the
13 hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
14-->
15
16<!--
17 This is the master declaration for VirtualBox's Main API,
18 represented by COM/XPCOM and web service interfaces.
19
20 From this document, the build system generates several files
21 via XSLT that are then used during the build process.
22
23 Below is the list of XSL templates that operate on this file and
24 output files they generate. These XSL templates must be updated
25 whenever the schema of this file changes:
26
27 1. src/VBox/Main/idl/midl.xsl =>
28 out/<platform>/bin/sdk/idl/VirtualBox.idl
29 (MS COM interface definition file for Main API)
30
31 2. src/VBox/Main/idl/xpidl.xsl =>
32 out/<platform>/bin/sdk/idl/VirtualBox_XPCOM.idl
33 (XPCOM interface definition file for Main API)
34
35 3. src/VBox/Main/idl/doxygen.xsl =>
36 out/<platform>/obj/src/VBox/Main/VirtualBox.idl
37 (pseudo-IDL for Doxygen to generate the official Main API
38 documentation)
39
40 4. src/VBox/Main/webservice/*.xsl =>
41 a bunch of WSDL and C++ files
42 (VirtualBox web service sources and SOAP mappers;
43 see src/VBox/Main/webservice/Makefile.kmk for details)
44
45 5. src/VBox/Frontends/VirtualBox/include/COMWrappers.xsl =>
46 out/<platform>/obj/src/VBox/Frontends/VirtualBox/VirtualBox/include/COMWrappers.h
47 (smart Qt-based C++ wrapper classes for COM interfaces
48 of the Main API)
49
50 6. src/VBox/Installer/win32/VirtualBox_TypeLib.xsl =>
51 out/<platform>/obj/src/VBox/Installer/win32/VirtualBox_TypeLib.wxi
52 (Main API TypeLib block for the WiX installer)
53
54 7. src/VBox/Runtime/common/err/errmsgvboxcom.xsl =>
55 out/<platform>/obj/Runtime/errmsgvboxcomdata.h
56 (<result> extraction for the %Rhrc format specifier)
57-->
58
59<idl>
60
61<desc>
62 Welcome to the <b>VirtualBox Main API documentation</b>. This documentation
63 describes the so-called <i>VirtualBox Main API</i> which comprises all public
64 COM interfaces and components provided by the VirtualBox server and by the
65 VirtualBox client library.
66
67 VirtualBox employs a client-server design, meaning that whenever any part of
68 VirtualBox is running -- be it the Qt GUI, the VBoxManage command-line
69 interface or any virtual machine --, a dedicated server process named
70 VBoxSVC runs in the background. This allows multiple processes working with
71 VirtualBox to cooperate without conflicts. These processes communicate to each
72 other using inter-process communication facilities provided by the COM
73 implementation of the host computer.
74
75 On Windows platforms, the VirtualBox Main API uses Microsoft COM, a native COM
76 implementation. On all other platforms, Mozilla XPCOM, an open-source COM
77 implementation, is used.
78
79 All the parts that a typical VirtualBox user interacts with (the Qt GUI
80 and the VBoxManage command-line interface) are technically
81 front-ends to the Main API and only use the interfaces that are documented
82 in this Main API documentation. This ensures that, with any given release
83 version of VirtualBox, all capabilities of the product that could be useful
84 to an external client program are always exposed by way of this API.
85
86 The VirtualBox Main API (also called the <i>VirtualBox COM library</i>)
87 contains two public component classes:
88 <tt>%VirtualBox.VirtualBox</tt> and <tt>%VirtualBox.Session</tt>, which
89 implement IVirtualBox and ISession interfaces respectively. These two classes
90 are of supreme importance and will be needed in order for any front-end
91 program to do anything useful. It is recommended to read the documentation of
92 the mentioned interfaces first.
93
94 The <tt>%VirtualBox.VirtualBox</tt> class is a singleton. This means that
95 there can be only one object of this class on the local machine at any given
96 time. This object is a parent of many other objects in the VirtualBox COM
97 library and lives in the VBoxSVC process. In fact, when you create an instance
98 of the <tt>VirtualBox.VirtualBox</tt>, the COM subsystem checks if the VBoxSVC
99 process is already running, starts it if not, and returns you a reference to
100 the <tt>VirtualBox</tt> object created in this process. When the last reference
101 to this object is released, the VBoxSVC process ends (with a 5 second delay to
102 protect from too frequent restarts).
103
104 The <tt>%VirtualBox.Session</tt> class is a regular component. You can create
105 as many <tt>Session</tt> objects as you need but all of them will live in a
106 process which issues the object instantiation call. <tt>Session</tt> objects
107 represent virtual machine sessions which are used to configure virtual
108 machines and control their execution.
109
110 The naming of methods and attributes is very clearly defined: they all start
111 with a lowercase letter (except if they start with an acronym), and are using
112 CamelCase style otherwise. This naming only applies to the IDL description,
113 and is modified by the various language bindings (some convert the first
114 character to upper case, some not). See the SDK reference for more details
115 about how to call a method or attribute from a specific programming language.
116</desc>
117
118<if target="midl">
119 <cpp line="enum {"/>
120 <cpp line=" kTypeLibraryMajorVersion = 1,"/>
121 <cpp line=" kTypeLibraryMinorVersion = 0"/>
122 <cpp line="};"/>
123</if>
124
125<if target="xpidl">
126 <!-- NS_IMPL_THREADSAFE_ISUPPORTSxx_CI macros are placed here, for convenience -->
127 <cpp>
128/* currently, nsISupportsImpl.h lacks the below-like macros */
129
130#define NS_IMPL_THREADSAFE_QUERY_INTERFACE1_CI NS_IMPL_QUERY_INTERFACE1_CI
131#define NS_IMPL_THREADSAFE_QUERY_INTERFACE2_CI NS_IMPL_QUERY_INTERFACE2_CI
132#define NS_IMPL_THREADSAFE_QUERY_INTERFACE3_CI NS_IMPL_QUERY_INTERFACE3_CI
133#define NS_IMPL_THREADSAFE_QUERY_INTERFACE4_CI NS_IMPL_QUERY_INTERFACE4_CI
134#define NS_IMPL_THREADSAFE_QUERY_INTERFACE5_CI NS_IMPL_QUERY_INTERFACE5_CI
135#define NS_IMPL_THREADSAFE_QUERY_INTERFACE6_CI NS_IMPL_QUERY_INTERFACE6_CI
136#define NS_IMPL_THREADSAFE_QUERY_INTERFACE7_CI NS_IMPL_QUERY_INTERFACE7_CI
137#define NS_IMPL_THREADSAFE_QUERY_INTERFACE8_CI NS_IMPL_QUERY_INTERFACE8_CI
138
139
140#ifndef NS_IMPL_THREADSAFE_ISUPPORTS1_CI
141# define NS_IMPL_THREADSAFE_ISUPPORTS1_CI(_class, _interface) \
142 NS_IMPL_THREADSAFE_ADDREF(_class) \
143 NS_IMPL_THREADSAFE_RELEASE(_class) \
144 NS_IMPL_THREADSAFE_QUERY_INTERFACE1_CI(_class, _interface) \
145 NS_IMPL_CI_INTERFACE_GETTER1(_class, _interface)
146#endif
147
148#ifndef NS_IMPL_THREADSAFE_ISUPPORTS2_CI
149# define NS_IMPL_THREADSAFE_ISUPPORTS2_CI(_class, _i1, _i2) \
150 NS_IMPL_THREADSAFE_ADDREF(_class) \
151 NS_IMPL_THREADSAFE_RELEASE(_class) \
152 NS_IMPL_THREADSAFE_QUERY_INTERFACE2_CI(_class, _i1, _i2) \
153 NS_IMPL_CI_INTERFACE_GETTER2(_class, _i1, _i2)
154#endif
155
156#ifndef NS_IMPL_THREADSAFE_ISUPPORTS3_CI
157# define NS_IMPL_THREADSAFE_ISUPPORTS3_CI(_class, _i1, _i2, _i3) \
158 NS_IMPL_THREADSAFE_ADDREF(_class) \
159 NS_IMPL_THREADSAFE_RELEASE(_class) \
160 NS_IMPL_THREADSAFE_QUERY_INTERFACE3_CI(_class, _i1, _i2, _i3) \
161 NS_IMPL_CI_INTERFACE_GETTER3(_class, _i1, _i2, _i3)
162#endif
163
164#ifndef NS_IMPL_THREADSAFE_ISUPPORTS4_CI
165# define NS_IMPL_THREADSAFE_ISUPPORTS4_CI(_class, _i1, _i2, _i3, _i4) \
166 NS_IMPL_THREADSAFE_ADDREF(_class) \
167 NS_IMPL_THREADSAFE_RELEASE(_class) \
168 NS_IMPL_THREADSAFE_QUERY_INTERFACE4_CI(_class, _i1, _i2, _i3, _i4) \
169 NS_IMPL_CI_INTERFACE_GETTER4(_class, _i1, _i2, _i3, _i4)
170#endif
171
172#ifndef NS_IMPL_THREADSAFE_ISUPPORTS5_CI
173# define NS_IMPL_THREADSAFE_ISUPPORTS5_CI(_class, _i1, _i2, _i3, _i4, _i5) \
174 NS_IMPL_THREADSAFE_ADDREF(_class) \
175 NS_IMPL_THREADSAFE_RELEASE(_class) \
176 NS_IMPL_THREADSAFE_QUERY_INTERFACE5_CI(_class, _i1, _i2, _i3, _i4, _i5) \
177 NS_IMPL_CI_INTERFACE_GETTER5(_class, _i1, _i2, _i3, _i4, _i5)
178#endif
179
180#ifndef NS_IMPL_THREADSAFE_ISUPPORTS6_CI
181# define NS_IMPL_THREADSAFE_ISUPPORTS6_CI(_class, _i1, _i2, _i3, _i4, _i5, _i6) \
182 NS_IMPL_THREADSAFE_ADDREF(_class) \
183 NS_IMPL_THREADSAFE_RELEASE(_class) \
184 NS_IMPL_THREADSAFE_QUERY_INTERFACE6_CI(_class, _i1, _i2, _i3, _i4, _i5, _i6) \
185 NS_IMPL_CI_INTERFACE_GETTER6(_class, _i1, _i2, _i3, _i4, _i5, _i6)
186#endif
187
188#ifndef NS_IMPL_THREADSAFE_ISUPPORTS7_CI
189# define NS_IMPL_THREADSAFE_ISUPPORTS7_CI(_class, _i1, _i2, _i3, _i4, _i5, _i6, _i7) \
190 NS_IMPL_THREADSAFE_ADDREF(_class) \
191 NS_IMPL_THREADSAFE_RELEASE(_class) \
192 NS_IMPL_THREADSAFE_QUERY_INTERFACE7_CI(_class, _i1, _i2, _i3, _i4, _i5, _i6, _i7) \
193 NS_IMPL_CI_INTERFACE_GETTER7(_class, _i1, _i2, _i3, _i4, _i5, _i6, _i7)
194#endif
195
196#ifndef NS_IMPL_THREADSAFE_ISUPPORTS8_CI
197# define NS_IMPL_THREADSAFE_ISUPPORTS8_CI(_class, _i1, _i2, _i3, _i4, _i5, _i6, _i7, _i8) \
198 NS_IMPL_THREADSAFE_ADDREF(_class) \
199 NS_IMPL_THREADSAFE_RELEASE(_class) \
200 NS_IMPL_THREADSAFE_QUERY_INTERFACE8_CI(_class, _i1, _i2, _i3, _i4, _i5, _i6, _i7, _i8) \
201 NS_IMPL_CI_INTERFACE_GETTER8(_class, _i1, _i2, _i3, _i4, _i5, _i6, _i7, _i8)
202#endif
203
204#ifndef NS_IMPL_QUERY_INTERFACE1_AMBIGUOUS_CI
205# define NS_IMPL_QUERY_INTERFACE1_AMBIGUOUS_CI(_class, _i1, _ic1) \
206 NS_INTERFACE_MAP_BEGIN(_class) \
207 NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(_i1, _ic1) \
208 NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(nsISupports, _ic1) \
209 NS_IMPL_QUERY_CLASSINFO(_class) \
210 NS_INTERFACE_MAP_END
211#endif
212
213#ifndef NS_IMPL_QUERY_INTERFACE2_AMBIGUOUS_CI
214# define NS_IMPL_QUERY_INTERFACE2_AMBIGUOUS_CI(_class, _i1, _ic1, \
215 _i2, _ic2) \
216 NS_INTERFACE_MAP_BEGIN(_class) \
217 NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(_i1, _ic1) \
218 NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(_i2, _ic2) \
219 NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(nsISupports, _ic1) \
220 NS_IMPL_QUERY_CLASSINFO(_class) \
221 NS_INTERFACE_MAP_END
222#endif
223
224#ifndef NS_IMPL_QUERY_INTERFACE3_AMBIGUOUS_CI
225# define NS_IMPL_QUERY_INTERFACE3_AMBIGUOUS_CI(_class, _i1, _ic1, \
226 _i2, _ic2, _i3, _ic3) \
227 NS_INTERFACE_MAP_BEGIN(_class) \
228 NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(_i1, _ic1) \
229 NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(_i2, _ic2) \
230 NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(_i3, _ic3) \
231 NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(nsISupports, _ic1) \
232 NS_IMPL_QUERY_CLASSINFO(_class) \
233 NS_INTERFACE_MAP_END
234#endif
235
236#define NS_IMPL_THREADSAFE_QUERY_INTERFACE1_AMBIGUOUS_CI NS_IMPL_QUERY_INTERFACE1_AMBIGUOUS_CI
237#define NS_IMPL_THREADSAFE_QUERY_INTERFACE2_AMBIGUOUS_CI NS_IMPL_QUERY_INTERFACE2_AMBIGUOUS_CI
238#define NS_IMPL_THREADSAFE_QUERY_INTERFACE3_AMBIGUOUS_CI NS_IMPL_QUERY_INTERFACE3_AMBIGUOUS_CI
239
240#ifndef NS_IMPL_THREADSAFE_ISUPPORTS1_AMBIGUOUS_CI
241# define NS_IMPL_THREADSAFE_ISUPPORTS1_AMBIGUOUS_CI(_class, _i1, _ic1) \
242 NS_IMPL_THREADSAFE_ADDREF(_class) \
243 NS_IMPL_THREADSAFE_RELEASE(_class) \
244 NS_IMPL_THREADSAFE_QUERY_INTERFACE1_AMBIGUOUS_CI(_class, _i1, _ic1) \
245 NS_IMPL_CI_INTERFACE_GETTER1(_class, _i1)
246#endif
247
248#ifndef NS_IMPL_THREADSAFE_ISUPPORTS2_AMBIGUOUS_CI
249# define NS_IMPL_THREADSAFE_ISUPPORTS2_AMBIGUOUS_CI(_class, _i1, _ic1, \
250 _i2, _ic2) \
251 NS_IMPL_THREADSAFE_ADDREF(_class) \
252 NS_IMPL_THREADSAFE_RELEASE(_class) \
253 NS_IMPL_THREADSAFE_QUERY_INTERFACE2_AMBIGUOUS_CI(_class, _i1, _ic1, \
254 _i2, _ic2) \
255 NS_IMPL_CI_INTERFACE_GETTER2(_class, _i1, _i2)
256#endif
257
258#ifndef NS_IMPL_THREADSAFE_ISUPPORTS3_AMBIGUOUS_CI
259# define NS_IMPL_THREADSAFE_ISUPPORTS3_AMBIGUOUS_CI(_class, _i1, _ic1, \
260 _i2, _ic2, _i3, _ic3) \
261 NS_IMPL_THREADSAFE_ADDREF(_class) \
262 NS_IMPL_THREADSAFE_RELEASE(_class) \
263 NS_IMPL_THREADSAFE_QUERY_INTERFACE3_AMBIGUOUS_CI(_class, _i1, _ic1, \
264 _i2, _ic2, _i3, _ic3) \
265 NS_IMPL_CI_INTERFACE_GETTER3(_class, _i1, _i2, _i3)
266#endif
267
268 </cpp>
269</if>
270
271<library
272 name="VirtualBox"
273 uuid="d7569351-1750-46f0-936e-bd127d5bc264"
274 version="1.3"
275 desc="VirtualBox Type Library"
276 appUuid="819B4D85-9CEE-493C-B6FC-64FFE759B3C9"
277 supportsErrorInfo="yes"
278>
279
280
281 <!--
282 // COM result codes for VirtualBox
283 /////////////////////////////////////////////////////////////////////////
284 -->
285
286 <descGroup id="VirtualBox_COM_result_codes" title="VirtualBox COM result codes">
287 <desc>
288 This section describes all VirtualBox-specific COM result codes that may
289 be returned by methods of VirtualBox COM interfaces in addition to
290 standard COM result codes.
291
292 Note that along with the result code, every VirtualBox method returns
293 extended error information through the IVirtualBoxErrorInfo interface on
294 failure. This interface is a preferred way to present the error to the end
295 user because it contains a human readable description of the error. Raw
296 result codes, both standard and described in this section, are intended to
297 be used by programs to analyze the reason of a failure and select an
298 appropriate course of action without involving the end user (for example,
299 retry the operation later or make a different call).
300
301 The standard COM result codes that may originate from our methods include:
302
303 <table>
304 <tr><td>E_INVALIDARG</td>
305 <td>
306 Returned when the value of the method's argument is not within the range
307 of valid values. This should not be confused with situations when the
308 value is within the range but simply doesn't suit the current object
309 state and there is a possibility that it will be accepted later (in such
310 cases VirtualBox-specific codes are returned, for example,
311 <link to="VBOX_E_OBJECT_NOT_FOUND"/>).
312 </td>
313 </tr>
314 <tr><td>E_POINTER</td>
315 <td>
316 Returned if a memory pointer for the output argument is invalid (for
317 example, @c null). When pointers representing input arguments (such
318 as strings) are invalid, E_INVALIDARG is returned.
319 </td>
320 </tr>
321 <tr><td>E_ACCESSDENIED</td>
322 <td>
323 Returned when the called object is not ready. Since the lifetime of a
324 public COM object cannot be fully controlled by the implementation,
325 VirtualBox maintains the readiness state for all objects it creates and
326 returns this code in response to any method call on the object that was
327 deactivated by VirtualBox and is not functioning any more.
328 </td>
329 </tr>
330 <tr><td>E_OUTOFMEMORY</td>
331 <td>
332 Returned when a memory allocation operation fails.
333 </td>
334 </tr>
335 </table>
336 </desc>
337 </descGroup>
338
339 <!--
340 Note that src/VBox/Runtime/common/err/errmsgvboxcom.xsl will ignore
341 everything in <result>/<desc> after (and including) the first dot, so express
342 the matter of the error code in the first sentence and keep it short.
343 -->
344
345 <result name="VBOX_E_OBJECT_NOT_FOUND" value="0x80BB0001">
346 <desc>
347 Object corresponding to the supplied arguments does not exist.
348 </desc>
349 </result>
350
351 <result name="VBOX_E_INVALID_VM_STATE" value="0x80BB0002">
352 <desc>
353 Current virtual machine state prevents the operation.
354 </desc>
355 </result>
356
357 <result name="VBOX_E_VM_ERROR" value="0x80BB0003">
358 <desc>
359 Virtual machine error occurred attempting the operation.
360 </desc>
361 </result>
362
363 <result name="VBOX_E_FILE_ERROR" value="0x80BB0004">
364 <desc>
365 File not accessible or erroneous file contents.
366 </desc>
367 </result>
368
369 <result name="VBOX_E_IPRT_ERROR" value="0x80BB0005">
370 <desc>
371 Runtime subsystem error.
372 </desc>
373 </result>
374
375 <result name="VBOX_E_PDM_ERROR" value="0x80BB0006">
376 <desc>
377 Pluggable Device Manager error.
378 </desc>
379 </result>
380
381 <result name="VBOX_E_INVALID_OBJECT_STATE" value="0x80BB0007">
382 <desc>
383 Current object state prohibits operation.
384 </desc>
385 </result>
386
387 <result name="VBOX_E_HOST_ERROR" value="0x80BB0008">
388 <desc>
389 Host operating system related error.
390 </desc>
391 </result>
392
393 <result name="VBOX_E_NOT_SUPPORTED" value="0x80BB0009">
394 <desc>
395 Requested operation is not supported.
396 </desc>
397 </result>
398
399 <result name="VBOX_E_XML_ERROR" value="0x80BB000A">
400 <desc>
401 Invalid XML found.
402 </desc>
403 </result>
404
405 <result name="VBOX_E_INVALID_SESSION_STATE" value="0x80BB000B">
406 <desc>
407 Current session state prohibits operation.
408 </desc>
409 </result>
410
411 <result name="VBOX_E_OBJECT_IN_USE" value="0x80BB000C">
412 <desc>
413 Object being in use prohibits operation.
414 </desc>
415 </result>
416
417 <!--
418 Note that src/VBox/Runtime/common/err/errmsgvboxcom.xsl will ignore
419 everything in <result>/<desc> after (and including) the first dot, so express
420 the matter of the error code in the first sentence and keep it short.
421 -->
422
423 <descGroup/>
424
425 <!--
426 // all common enums
427 /////////////////////////////////////////////////////////////////////////
428 -->
429
430 <enum
431 name="SettingsVersion"
432 uuid="d5b15ca7-3de7-46b2-a63a-ddcce42bfa3f"
433 >
434 <desc>
435 Settings version of VirtualBox settings files. This is written to
436 the "version" attribute of the root "VirtualBox" element in the settings
437 file XML and indicates which VirtualBox version wrote the file.
438 </desc>
439
440 <const name="Null" value="0">
441 <desc>Null value, indicates invalid version.</desc>
442 </const>
443 <const name="v1_0" value="1">
444 <desc>Legacy settings version, not currently supported.</desc>
445 </const>
446 <const name="v1_1" value="2">
447 <desc>Legacy settings version, not currently supported.</desc>
448 </const>
449 <const name="v1_2" value="3">
450 <desc>Legacy settings version, not currently supported.</desc>
451 </const>
452 <const name="v1_3pre" value="4">
453 <desc>Legacy settings version, not currently supported.</desc>
454 </const>
455 <const name="v1_3" value="5">
456 <desc>Settings version "1.3", written by VirtualBox 2.0.12.</desc>
457 <!--
458 Machine XML: Capitalization of Uart, Lpt elements and many attributes changed.
459 -->
460 </const>
461 <const name="v1_4" value="6">
462 <desc>Intermediate settings version, understood by VirtualBox 2.1.x.</desc>
463 <!--
464 VirtualBox.xml: big DiskRegistry -> MediaRegistry revamp, various HardDisk types merged
465 (was VirtualDiskImage, VMDKImage, VHDImage, ISCSIHardDisk, CustomHardDisk, DiffHardDisk)
466 -->
467 </const>
468 <const name="v1_5" value="7">
469 <desc>Intermediate settings version, understood by VirtualBox 2.1.x.</desc>
470 <!--
471 2008-09-04: 2.0.0 released
472 2008-11-20: settings version 1.5 introduced
473 2008-12-17: 2.1.0 released
474 Machine changes:
475 guest OS identifiers changed;
476 Machine/Hardware/Display/MonitorCount renamed to monitorCount;
477 Machine/Hardware/Display/Accelerate3D renamed to accelerate3D;
478 Machine/Hardware/CPU/CPUCount/@count changed to CPU/@count
479 -->
480 </const>
481 <const name="v1_6" value="8">
482 <desc>Settings version "1.6", written by VirtualBox 2.1.4 (at least).</desc>
483 <!--
484 2008-12-17: 2.1.0 released
485 2008-12-19: settings version 1.6 introduced (is in 2.1 branch)
486 2009-04-08: 2.2.0 released
487 Machine changes: remove all Machine/Hardware/Network/Adapter/HostInterface[@TAPSetup or @TAPTerminate]/ attributes (done)
488 -->
489 </const>
490 <const name="v1_7" value="9">
491 <desc>Settings version "1.7", written by VirtualBox 2.2.x and 3.0.x.</desc>
492 <!--
493 2008-12-17: 2.1.0 released
494 2009-03-11: settings version 1.7 introduced (is in 2.2 branch)
495 2009-04-08: 2.2.0 released
496 VirtualBox.xml additions: NetserviceRegistry with DHCPServers (done)
497 Machine changes: HardDiskAttachments is now StorageControllers (done)
498 -->
499 </const>
500 <const name="v1_8" value="10">
501 <desc>Intermediate settings version "1.8", understood by VirtualBox 3.1.x.</desc>
502 <!--
503 Machine additions: Display/@accelerate2DVideo (done)
504 -->
505 </const>
506 <const name="v1_9" value="11">
507 <desc>Settings version "1.9", written by VirtualBox 3.1.x.</desc>
508 <!--
509 The big storage controller / DVD / Floppy rework (done)
510 -->
511 </const>
512 <const name="v1_10" value="12">
513 <desc>Settings version "1.10", written by VirtualBox 3.2.x.</desc>
514 <!--
515 Machine changes: RTC localOrUTC (done)
516 CPU hot-plug support
517 -->
518 </const>
519 <const name="v1_11" value="13">
520 <desc>Settings version "1.11", written by VirtualBox 4.0.x.</desc>
521 <!--
522 Machine changes: HD Audio controller, per-machine disk registries,
523 /@format attribute for DVD and floppy images.
524 -->
525 </const>
526 <const name="v1_12" value="14">
527 <desc>Settings version "1.12", written by VirtualBox 4.1.x.</desc>
528 <!--
529 Machine changes: raw PCI device attachment;
530 NetworkAdapter changes: bandwidth group.
531 -->
532 </const>
533 <const name="v1_13" value="15">
534 <desc>Settings version "1.13", written by VirtualBox 4.2.x.</desc>
535 <!--
536 Machine changes: tracing config, groups, autostart;
537 NetworkAdapter changes: unit for bandwidth group limits.
538 -->
539 </const>
540 <const name="v1_14" value="16">
541 <desc>Settings version "1.14", written by VirtualBox 4.3.x.</desc>
542 <!--
543 Machine changes: default frontend.
544 -->
545 </const>
546
547 <const name="Future" value="99999">
548 <desc>Settings version greater than "1.13", written by a future VirtualBox version.</desc>
549 </const>
550 </enum>
551
552 <enum
553 name="AccessMode"
554 uuid="1da0007c-ddf7-4be8-bcac-d84a1558785f"
555 >
556 <desc>
557 Access mode for opening files.
558 </desc>
559
560 <const name="ReadOnly" value="1"/>
561 <const name="ReadWrite" value="2"/>
562 </enum>
563
564 <enum
565 name="MachineState"
566 uuid="ec6c6a9e-113d-4ff4-b44f-0b69f21c97fe"
567 >
568 <desc>
569 Virtual machine execution state.
570
571 This enumeration represents possible values of the <link
572 to="IMachine::state"/> attribute.
573
574 Below is the basic virtual machine state diagram. It shows how the state
575 changes during virtual machine execution. The text in square braces shows
576 a method of the IConsole interface that performs the given state
577 transition.
578
579 <pre>
580 +---------[powerDown()] &lt;- Stuck &lt;--[failure]-+
581 V |
582 +-&gt; PoweredOff --+--&gt;[powerUp()]--&gt; Starting --+ | +-----[resume()]-----+
583 | | | | V |
584 | Aborted -----+ +--&gt; Running --[pause()]--&gt; Paused
585 | | ^ | ^ |
586 | Saved -----------[powerUp()]--&gt; Restoring -+ | | | |
587 | ^ | | | |
588 | | +-----------------------------------------+-|-------------------+ +
589 | | | | |
590 | | +-- Saving &lt;--------[takeSnapshot()]&lt;-------+---------------------+
591 | | | |
592 | +-------- Saving &lt;--------[saveState()]&lt;----------+---------------------+
593 | | |
594 +-------------- Stopping -------[powerDown()]&lt;----------+---------------------+
595 </pre>
596
597 Note that states to the right from PoweredOff, Aborted and Saved in the
598 above diagram are called <i>online VM states</i>. These states
599 represent the virtual machine which is being executed in a dedicated
600 process (usually with a GUI window attached to it where you can see the
601 activity of the virtual machine and interact with it). There are two
602 special pseudo-states, FirstOnline and LastOnline, that can be used in
603 relational expressions to detect if the given machine state is online or
604 not:
605
606 <pre>
607 if (machine.GetState() &gt;= MachineState_FirstOnline &amp;&amp;
608 machine.GetState() &lt;= MachineState_LastOnline)
609 {
610 ...the machine is being executed...
611 }
612 </pre>
613
614 When the virtual machine is in one of the online VM states (that is, being
615 executed), only a few machine settings can be modified. Methods working
616 with such settings contain an explicit note about that. An attempt to
617 change any other setting or perform a modifying operation during this time
618 will result in the @c VBOX_E_INVALID_VM_STATE error.
619
620 All online states except Running, Paused and Stuck are transitional: they
621 represent temporary conditions of the virtual machine that will last as
622 long as the operation that initiated such a condition.
623
624 The Stuck state is a special case. It means that execution of the machine
625 has reached the "Guru Meditation" condition. This condition indicates an
626 internal VMM (virtual machine manager) failure which may happen as a
627 result of either an unhandled low-level virtual hardware exception or one
628 of the recompiler exceptions (such as the <i>too-many-traps</i>
629 condition).
630
631 Note also that any online VM state may transit to the Aborted state. This
632 happens if the process that is executing the virtual machine terminates
633 unexpectedly (for example, crashes). Other than that, the Aborted state is
634 equivalent to PoweredOff.
635
636 There are also a few additional state diagrams that do not deal with
637 virtual machine execution and therefore are shown separately. The states
638 shown on these diagrams are called <i>offline VM states</i> (this includes
639 PoweredOff, Aborted and Saved too).
640
641 The first diagram shows what happens when a lengthy setup operation is
642 being executed (such as <link to="IMachine::attachDevice"/>).
643
644 <pre>
645 +----------------------------------(same state as before the call)------+
646 | |
647 +-&gt; PoweredOff --+ |
648 | | |
649 |-&gt; Aborted -----+--&gt;[lengthy VM configuration call] --&gt; SettingUp -----+
650 | |
651 +-&gt; Saved -------+
652 </pre>
653
654 The next two diagrams demonstrate the process of taking a snapshot of a
655 powered off virtual machine, restoring the state to that as of a snapshot
656 or deleting a snapshot, respectively.
657
658 <pre>
659 +----------------------------------(same state as before the call)------+
660 | |
661 +-&gt; PoweredOff --+ |
662 | +--&gt;[takeSnapshot()] -------------------&gt; Saving ------+
663 +-&gt; Aborted -----+
664
665 +-&gt; PoweredOff --+
666 | |
667 | Aborted -----+--&gt;[restoreSnapshot() ]-------&gt; RestoringSnapshot -+
668 | | [deleteSnapshot() ]-------&gt; DeletingSnapshot --+
669 +-&gt; Saved -------+ |
670 | |
671 +---(Saved if restored from an online snapshot, PoweredOff otherwise)---+
672 </pre>
673
674 Note that the Saving state is present in both the offline state group and
675 online state group. Currently, the only way to determine what group is
676 assumed in a particular case is to remember the previous machine state: if
677 it was Running or Paused, then Saving is an online state, otherwise it is
678 an offline state. This inconsistency may be removed in one of the future
679 versions of VirtualBox by adding a new state.
680
681 <note internal="yes">
682 For whoever decides to touch this enum: In order to keep the
683 comparisons involving FirstOnline and LastOnline pseudo-states valid,
684 the numeric values of these states must be correspondingly updated if
685 needed: for any online VM state, the condition
686 <tt>FirstOnline &lt;= state &lt;= LastOnline</tt> must be
687 @c true. The same relates to transient states for which
688 the condition <tt>FirstOnline &lt;= state &lt;= LastOnline</tt> must be
689 @c true.
690 </note>
691 </desc>
692
693 <const name="Null" value="0">
694 <desc>Null value (never used by the API).</desc>
695 </const>
696 <const name="PoweredOff" value="1">
697 <desc>
698 The machine is not running and has no saved execution state; it has
699 either never been started or been shut down successfully.
700 </desc>
701 </const>
702 <const name="Saved" value="2">
703 <desc>
704 The machine is not currently running, but the execution state of the machine
705 has been saved to an external file when it was running, from where
706 it can be resumed.
707 </desc>
708 </const>
709 <const name="Teleported" value="3">
710 <desc>
711 The machine was teleported to a different host (or process) and then
712 powered off. Take care when powering it on again may corrupt resources
713 it shares with the teleportation target (e.g. disk and network).
714 </desc>
715 </const>
716 <const name="Aborted" value="4">
717 <desc>
718 The process running the machine has terminated abnormally. This may
719 indicate a crash of the VM process in host execution context, or
720 the VM process has been terminated externally.
721 </desc>
722 </const>
723 <const name="Running" value="5">
724 <desc>
725 The machine is currently being executed.
726 <note internal="yes">
727 For whoever decides to touch this enum: In order to keep the
728 comparisons in the old source code valid, this state must immediately
729 precede the Paused state.
730 TODO: Lift this spectacularly wonderful restriction.
731 </note>
732 </desc>
733 </const>
734 <const name="Paused" value="6">
735 <desc>
736 Execution of the machine has been paused.
737 <note internal="yes">
738 For whoever decides to touch this enum: In order to keep the
739 comparisons in the old source code valid, this state must immediately
740 follow the Running state.
741 TODO: Lift this spectacularly wonderful restriction.
742 </note>
743 </desc>
744 </const>
745 <const name="Stuck" value="7">
746 <desc>
747 Execution of the machine has reached the "Guru Meditation"
748 condition. This indicates a severe error in the hypervisor itself.
749 <note internal="yes">
750 bird: Why this uncool name? Could we rename it to "GuruMeditation" or
751 "Guru", perhaps? Or are there some other VMM states that are
752 intended to be lumped in here as well?
753 </note>
754 </desc>
755 </const>
756 <const name="Teleporting" value="8">
757 <desc>
758 The machine is about to be teleported to a different host or process.
759 It is possible to pause a machine in this state, but it will go to the
760 @c TeleportingPausedVM state and it will not be
761 possible to resume it again unless the teleportation fails.
762 </desc>
763 </const>
764 <const name="LiveSnapshotting" value="9">
765 <desc>
766 A live snapshot is being taken. The machine is running normally, but
767 some of the runtime configuration options are inaccessible. Also, if
768 paused while in this state it will transition to
769 @c Saving and it will not be resume the
770 execution until the snapshot operation has completed.
771 </desc>
772 </const>
773 <const name="Starting" value="10">
774 <desc>
775 Machine is being started after powering it on from a
776 zero execution state.
777 </desc>
778 </const>
779 <const name="Stopping" value="11">
780 <desc>
781 Machine is being normally stopped powering it off, or after the guest OS
782 has initiated a shutdown sequence.
783 </desc>
784 </const>
785 <const name="Saving" value="12">
786 <desc>
787 Machine is saving its execution state to a file, or an online
788 snapshot of the machine is being taken.
789 </desc>
790 </const>
791 <const name="Restoring" value="13">
792 <desc>
793 Execution state of the machine is being restored from a file
794 after powering it on from the saved execution state.
795 </desc>
796 </const>
797 <const name="TeleportingPausedVM" value="14">
798 <desc>
799 The machine is being teleported to another host or process, but it is
800 not running. This is the paused variant of the
801 @c state.
802 </desc>
803 </const>
804 <const name="TeleportingIn" value="15">
805 <desc>
806 Teleporting the machine state in from another host or process.
807 </desc>
808 </const>
809 <const name="FaultTolerantSyncing" value="16">
810 <desc>
811 The machine is being synced with a fault tolerant VM running elsewhere.
812 </desc>
813 </const>
814 <const name="DeletingSnapshotOnline" value="17">
815 <desc>
816 Like @c DeletingSnapshot, but the merging of media is ongoing in
817 the background while the machine is running.
818 </desc>
819 </const>
820 <const name="DeletingSnapshotPaused" value="18">
821 <desc>
822 Like @c DeletingSnapshotOnline, but the machine was paused when the
823 merging of differencing media was started.
824 </desc>
825 </const>
826 <const name="RestoringSnapshot" value="19">
827 <desc>
828 A machine snapshot is being restored; this typically does not take long.
829 </desc>
830 </const>
831 <const name="DeletingSnapshot" value="20">
832 <desc>
833 A machine snapshot is being deleted; this can take a long time since this
834 may require merging differencing media. This value indicates that the
835 machine is not running while the snapshot is being deleted.
836 </desc>
837 </const>
838 <const name="SettingUp" value="21">
839 <desc>
840 Lengthy setup operation is in progress.
841 </desc>
842 </const>
843
844 <const name="FirstOnline" value="5" wsmap="suppress"> <!-- Running -->
845 <desc>
846 Pseudo-state: first online state (for use in relational expressions).
847 </desc>
848 </const>
849 <const name="LastOnline" value="18" wsmap="suppress"> <!-- DeletingSnapshotPaused -->
850 <desc>
851 Pseudo-state: last online state (for use in relational expressions).
852 </desc>
853 </const>
854
855 <const name="FirstTransient" value="8" wsmap="suppress"> <!-- Teleporting -->
856 <desc>
857 Pseudo-state: first transient state (for use in relational expressions).
858 </desc>
859 </const>
860 <const name="LastTransient" value="21" wsmap="suppress"> <!-- SettingUp -->
861 <desc>
862 Pseudo-state: last transient state (for use in relational expressions).
863 </desc>
864 </const>
865
866 </enum>
867
868 <enum
869 name="SessionState"
870 uuid="cf2700c0-ea4b-47ae-9725-7810114b94d8"
871 >
872 <desc>
873 Session state. This enumeration represents possible values of
874 <link to="IMachine::sessionState"/> and <link to="ISession::state"/>
875 attributes.
876 </desc>
877
878 <const name="Null" value="0">
879 <desc>Null value (never used by the API).</desc>
880 </const>
881 <const name="Unlocked" value="1">
882 <desc>
883 In <link to="IMachine::sessionState"/>, this means that the machine
884 is not locked for any sessions.
885
886 In <link to="ISession::state"/>, this means that no machine is
887 currently locked for this session.
888 </desc>
889 </const>
890 <const name="Locked" value="2">
891 <desc>
892 In <link to="IMachine::sessionState"/>, this means that the machine
893 is currently locked for a session, whose process identifier can
894 then be found in the <link to="IMachine::sessionPID" /> attribute.
895
896 In <link to="ISession::state"/>, this means that a machine is
897 currently locked for this session, and the mutable machine object
898 can be found in the <link to="ISession::machine"/> attribute
899 (see <link to="IMachine::lockMachine" /> for details).
900 </desc>
901 </const>
902 <const name="Spawning" value="3">
903 <desc>
904 A new process is being spawned for the machine as a result of
905 <link to="IMachine::launchVMProcess"/> call. This state also occurs
906 as a short transient state during an <link to="IMachine::lockMachine"/>
907 call.
908 </desc>
909 </const>
910 <const name="Unlocking" value="4">
911 <desc>
912 The session is being unlocked.
913 </desc>
914 </const>
915 </enum>
916
917 <enum
918 name="CPUPropertyType"
919 uuid="24d356a6-2f45-4abd-b977-1cbe9c4701f5"
920 >
921 <desc>
922 Virtual CPU property type. This enumeration represents possible values of the
923 IMachine get- and setCPUProperty methods.
924 </desc>
925 <const name="Null" value="0">
926 <desc>Null value (never used by the API).</desc>
927 </const>
928 <const name="PAE" value="1">
929 <desc>
930 This setting determines whether VirtualBox will expose the Physical Address
931 Extension (PAE) feature of the host CPU to the guest. Note that in case PAE
932 is not available, it will not be reported.
933 </desc>
934 </const>
935 <const name="Synthetic" value="2">
936 <desc>
937 This setting determines whether VirtualBox will expose a synthetic CPU to the guest to allow
938 teleporting between host systems that differ significantly.
939 </desc>
940 </const>
941 <const name="LongMode" value="3">
942 <desc>
943 This setting determines whether VirtualBox will advertice long mode
944 (i.e. 64-bit guest support) and let the guest enter it.
945 </desc>
946 </const>
947 </enum>
948
949
950 <enum
951 name="HWVirtExPropertyType"
952 uuid="39463ecd-b4b8-401f-b168-76cfa87e11f0"
953 >
954 <desc>
955 Hardware virtualization property type. This enumeration represents possible values
956 for the <link to="IMachine::getHWVirtExProperty"/> and
957 <link to="IMachine::setHWVirtExProperty"/> methods.
958 </desc>
959 <const name="Null" value="0">
960 <desc>Null value (never used by the API).</desc>
961 </const>
962 <const name="Enabled" value="1">
963 <desc>
964 Whether hardware virtualization (VT-x/AMD-V) is enabled at all. If
965 such extensions are not available, they will not be used.
966 </desc>
967 </const>
968 <const name="Exclusive" value="2">
969 <desc>
970 Whether hardware virtualization is used exclusively by VirtualBox. When enabled,
971 VirtualBox assumes it can acquire full and exclusive access to the VT-x or AMD-V
972 feature of the host. To share these with other hypervisors, you must disable this property.
973 </desc>
974 </const>
975 <const name="VPID" value="3">
976 <desc>
977 Whether VT-x VPID is enabled. If this extension is not available, it will not be used.
978 </desc>
979 </const>
980 <const name="NestedPaging" value="4">
981 <desc>
982 Whether Nested Paging is enabled. If this extension is not available, it will not be used.
983 </desc>
984 </const>
985 <const name="UnrestrictedExecution" value="5">
986 <desc>
987 Whether VT-x unrestricted execution is enabled. If this feature is not available, it will not be used.
988 </desc>
989 </const>
990 <const name="LargePages" value="6">
991 <desc>
992 Whether large page allocation is enabled; requires nested paging and a 64-bit host.
993 </desc>
994 </const>
995 <const name="Force" value="7">
996 <desc>
997 Whether the VM should fail to start if hardware virtualization (VT-x/AMD-V) cannot be used. If
998 not set, there will be an automatic fallback to software virtualization.
999 </desc>
1000 </const>
1001 </enum>
1002
1003 <enum
1004 name="FaultToleranceState"
1005 uuid="5124f7ec-6b67-493c-9dee-ee45a44114e1"
1006 >
1007 <desc>
1008 Used with <link to="IMachine::faultToleranceState" />.
1009 </desc>
1010 <const name="Inactive" value="1">
1011 <desc>No fault tolerance enabled.</desc>
1012 </const>
1013 <const name="Master" value="2">
1014 <desc>Fault tolerant master VM.</desc>
1015 </const>
1016 <const name="Standby" value="3">
1017 <desc>Fault tolerant standby VM.</desc>
1018 </const>
1019 </enum>
1020
1021 <enum
1022 name="LockType"
1023 uuid="168a6a8e-12fd-4878-a1f9-38a750a56089"
1024 >
1025 <desc>
1026 Used with <link to="IMachine::lockMachine" />.
1027 </desc>
1028 <const name="Write" value="2">
1029 <desc>Lock the machine for writing. This requests an exclusive lock, i.e.
1030 there cannot be any other API client holding any type of lock for this
1031 VM concurrently. Remember that a VM process counts as an API client
1032 which implicitly holds the equivalent of a shared lock during the
1033 entire VM runtime.</desc>
1034 </const>
1035 <const name="Shared" value="1">
1036 <desc>Request only a shared lock for remote-controlling the machine.
1037 Such a lock allows changing certain VM settings which can be safely
1038 modified for a running VM.</desc>
1039 </const>
1040 <const name="VM" value="3">
1041 <desc>Lock the machine for writing, and create objects necessary for
1042 running a VM in this process.</desc>
1043 </const>
1044 </enum>
1045
1046 <enum
1047 name="SessionType"
1048 uuid="A13C02CB-0C2C-421E-8317-AC0E8AAA153A"
1049 >
1050 <desc>
1051 Session type. This enumeration represents possible values of the
1052 <link to="ISession::type"/> attribute.
1053 </desc>
1054
1055 <const name="Null" value="0">
1056 <desc>Null value (never used by the API).</desc>
1057 </const>
1058 <const name="WriteLock" value="1">
1059 <desc>
1060 Session has acquired an exclusive write lock on a machine
1061 using <link to="IMachine::lockMachine"/>.
1062 </desc>
1063 </const>
1064 <const name="Remote" value="2">
1065 <desc>
1066 Session has launched a VM process using
1067 <link to="IMachine::launchVMProcess"/>
1068 </desc>
1069 </const>
1070 <const name="Shared" value="3">
1071 <desc>
1072 Session has obtained a link to another session using
1073 <link to="IMachine::lockMachine"/>
1074 </desc>
1075 </const>
1076 </enum>
1077
1078 <enum
1079 name="DeviceType"
1080 uuid="6d9420f7-0b56-4636-99f9-7346f1b01e57"
1081 >
1082 <desc>
1083 Device type.
1084 </desc>
1085 <const name="Null" value="0">
1086 <desc>
1087 Null value, may also mean "no device" (not allowed for
1088 <link to="IConsole::getDeviceActivity"/>).
1089 </desc>
1090 </const>
1091 <const name="Floppy" value="1">
1092 <desc>Floppy device.</desc>
1093 </const>
1094 <const name="DVD" value="2">
1095 <desc>CD/DVD-ROM device.</desc>
1096 </const>
1097 <const name="HardDisk" value="3">
1098 <desc>Hard disk device.</desc>
1099 </const>
1100 <const name="Network" value="4">
1101 <desc>Network device.</desc>
1102 </const>
1103 <const name="USB" value="5">
1104 <desc>USB device.</desc>
1105 </const>
1106 <const name="SharedFolder" value="6">
1107 <desc>Shared folder device.</desc>
1108 </const>
1109 </enum>
1110
1111 <enum
1112 name="DeviceActivity"
1113 uuid="6FC8AEAA-130A-4eb5-8954-3F921422D707"
1114 >
1115 <desc>
1116 Device activity for <link to="IConsole::getDeviceActivity"/>.
1117 </desc>
1118
1119 <const name="Null" value="0"/>
1120 <const name="Idle" value="1"/>
1121 <const name="Reading" value="2"/>
1122 <const name="Writing" value="3"/>
1123 </enum>
1124
1125 <enum
1126 name="ClipboardMode"
1127 uuid="33364716-4008-4701-8f14-be0fa3d62950"
1128 >
1129 <desc>
1130 Host-Guest clipboard interchange mode.
1131 </desc>
1132
1133 <const name="Disabled" value="0"/>
1134 <const name="HostToGuest" value="1"/>
1135 <const name="GuestToHost" value="2"/>
1136 <const name="Bidirectional" value="3"/>
1137 </enum>
1138
1139 <enum
1140 name="DragAndDropMode"
1141 uuid="b618ea0e-b6fb-4f8d-97f7-5e237e49b547"
1142 >
1143 <desc>
1144 Drag'n'Drop interchange mode.
1145 </desc>
1146
1147 <const name="Disabled" value="0"/>
1148 <const name="HostToGuest" value="1"/>
1149 <const name="GuestToHost" value="2"/>
1150 <const name="Bidirectional" value="3"/>
1151 </enum>
1152
1153 <enum
1154 name="Scope"
1155 uuid="7c91096e-499e-4eca-9f9b-9001438d7855"
1156 >
1157 <desc>
1158 Scope of the operation.
1159
1160 A generic enumeration used in various methods to define the action or
1161 argument scope.
1162 </desc>
1163
1164 <const name="Global" value="0"/>
1165 <const name="Machine" value="1"/>
1166 <const name="Session" value="2"/>
1167 </enum>
1168
1169 <enum
1170 name="BIOSBootMenuMode"
1171 uuid="ae4fb9f7-29d2-45b4-b2c7-d579603135d5"
1172 >
1173 <desc>
1174 BIOS boot menu mode.
1175 </desc>
1176
1177 <const name="Disabled" value="0"/>
1178 <const name="MenuOnly" value="1"/>
1179 <const name="MessageAndMenu" value="2"/>
1180 </enum>
1181
1182 <enum
1183 name="ProcessorFeature"
1184 uuid="64c38e6b-8bcf-45ad-ac03-9b406287c5bf"
1185 >
1186 <desc>
1187 CPU features.
1188 </desc>
1189
1190 <const name="HWVirtEx" value="0"/>
1191 <const name="PAE" value="1"/>
1192 <const name="LongMode" value="2"/>
1193 <const name="NestedPaging" value="3"/>
1194 </enum>
1195
1196 <enum
1197 name="FirmwareType"
1198 uuid="b903f264-c230-483e-ac74-2b37ce60d371"
1199 >
1200 <desc>
1201 Firmware type.
1202 </desc>
1203 <const name="BIOS" value="1">
1204 <desc>BIOS Firmware.</desc>
1205 </const>
1206 <const name="EFI" value="2">
1207 <desc>EFI Firmware, bitness detected basing on OS type.</desc>
1208 </const>
1209 <const name="EFI32" value="3">
1210 <desc>Efi firmware, 32-bit.</desc>
1211 </const>
1212 <const name="EFI64" value="4">
1213 <desc>Efi firmware, 64-bit.</desc>
1214 </const>
1215 <const name="EFIDUAL" value="5">
1216 <desc>Efi firmware, combined 32 and 64-bit.</desc>
1217 </const>
1218 </enum>
1219
1220 <enum
1221 name="PointingHIDType"
1222 uuid="e44b2f7b-72ba-44fb-9e53-2186014f0d17"
1223 >
1224 <desc>
1225 Type of pointing device used in a virtual machine.
1226 </desc>
1227 <const name="None" value="1">
1228 <desc>No mouse.</desc>
1229 </const>
1230 <const name="PS2Mouse" value="2">
1231 <desc>PS/2 auxiliary device, a.k.a. mouse.</desc>
1232 </const>
1233 <const name="USBMouse" value="3">
1234 <desc>USB mouse (relative pointer).</desc>
1235 </const>
1236 <const name="USBTablet" value="4">
1237 <desc>USB tablet (absolute pointer).</desc>
1238 </const>
1239 <const name="ComboMouse" value="5">
1240 <desc>Combined device, working as PS/2 or USB mouse, depending on guest behavior.
1241 Using of such device can have negative performance implications.</desc>
1242 </const>
1243 </enum>
1244
1245 <enum
1246 name="KeyboardHIDType"
1247 uuid="383e43d7-5c7c-4ec8-9cb8-eda1bccd6699"
1248 >
1249 <desc>
1250 Type of keyboard device used in a virtual machine.
1251 </desc>
1252 <const name="None" value="1">
1253 <desc>No keyboard.</desc>
1254 </const>
1255 <const name="PS2Keyboard" value="2">
1256 <desc>PS/2 keyboard.</desc>
1257 </const>
1258 <const name="USBKeyboard" value="3">
1259 <desc>USB keyboard.</desc>
1260 </const>
1261 <const name="ComboKeyboard" value="4">
1262 <desc>Combined device, working as PS/2 or USB keyboard, depending on guest behavior.
1263 Using of such device can have negative performance implications.</desc>
1264 </const>
1265 </enum>
1266
1267 <!--
1268 // IVirtualBoxErrorInfo
1269 /////////////////////////////////////////////////////////////////////////
1270 -->
1271
1272 <interface
1273 name="IVirtualBoxErrorInfo" extends="$errorinfo"
1274 uuid="c1bcc6d5-7966-481d-ab0b-d0ed73e28135"
1275 supportsErrorInfo="no"
1276 wsmap="managed"
1277 >
1278 <desc>
1279 The IVirtualBoxErrorInfo interface represents extended error information.
1280
1281 Extended error information can be set by VirtualBox components after
1282 unsuccessful or partially successful method invocation. This information
1283 can be retrieved by the calling party as an IVirtualBoxErrorInfo object
1284 and then shown to the client in addition to the plain 32-bit result code.
1285
1286 In MS COM, this interface extends the IErrorInfo interface,
1287 in XPCOM, it extends the nsIException interface. In both cases,
1288 it provides a set of common attributes to retrieve error
1289 information.
1290
1291 Sometimes invocation of some component's method may involve methods of
1292 other components that may also fail (independently of this method's
1293 failure), or a series of non-fatal errors may precede a fatal error that
1294 causes method failure. In cases like that, it may be desirable to preserve
1295 information about all errors happened during method invocation and deliver
1296 it to the caller. The <link to="#next"/> attribute is intended
1297 specifically for this purpose and allows to represent a chain of errors
1298 through a single IVirtualBoxErrorInfo object set after method invocation.
1299
1300 <note>errors are stored to a chain in the reverse order, i.e. the
1301 initial error object you query right after method invocation is the last
1302 error set by the callee, the object it points to in the @a next attribute
1303 is the previous error and so on, up to the first error (which is the last
1304 in the chain).</note>
1305 </desc>
1306
1307 <attribute name="resultCode" type="long" readonly="yes">
1308 <desc>
1309 Result code of the error.
1310 Usually, it will be the same as the result code returned
1311 by the method that provided this error information, but not
1312 always. For example, on Win32, CoCreateInstance() will most
1313 likely return E_NOINTERFACE upon unsuccessful component
1314 instantiation attempt, but not the value the component factory
1315 returned. Value is typed 'long', not 'result',
1316 to make interface usable from scripting languages.
1317 <note>
1318 In MS COM, there is no equivalent.
1319 In XPCOM, it is the same as nsIException::result.
1320 </note>
1321 </desc>
1322 </attribute>
1323
1324 <attribute name="resultDetail" type="long" readonly="yes">
1325 <desc>
1326 Optional result data of this error. This will vary depending on the
1327 actual error usage. By default this attribute is not being used.
1328 </desc>
1329 </attribute>
1330
1331 <attribute name="interfaceID" type="uuid" mod="string" readonly="yes">
1332 <desc>
1333 UUID of the interface that defined the error.
1334 <note>
1335 In MS COM, it is the same as IErrorInfo::GetGUID, except for the
1336 data type.
1337 In XPCOM, there is no equivalent.
1338 </note>
1339 </desc>
1340 </attribute>
1341
1342 <attribute name="component" type="wstring" readonly="yes">
1343 <desc>
1344 Name of the component that generated the error.
1345 <note>
1346 In MS COM, it is the same as IErrorInfo::GetSource.
1347 In XPCOM, there is no equivalent.
1348 </note>
1349 </desc>
1350 </attribute>
1351
1352 <attribute name="text" type="wstring" readonly="yes">
1353 <desc>
1354 Text description of the error.
1355 <note>
1356 In MS COM, it is the same as IErrorInfo::GetDescription.
1357 In XPCOM, it is the same as nsIException::message.
1358 </note>
1359 </desc>
1360 </attribute>
1361
1362 <attribute name="next" type="IVirtualBoxErrorInfo" readonly="yes">
1363 <desc>
1364 Next error object if there is any, or @c null otherwise.
1365 <note>
1366 In MS COM, there is no equivalent.
1367 In XPCOM, it is the same as nsIException::inner.
1368 </note>
1369 </desc>
1370 </attribute>
1371
1372 </interface>
1373
1374 <!--
1375 // IVirtualBox
1376 /////////////////////////////////////////////////////////////////////////
1377 -->
1378 <!-- This is experimental interface to LWIP based NAT server -->
1379 <interface name="INATNetwork" extends="$unknown"
1380 uuid="03DFD6F7-1B78-48A3-8345-C785281E9523"
1381 wsmap="managed">
1382 <attribute name="NetworkName" type="wstring">
1383 <desc>
1384 TBD: the idea, technically we can start any number of the NAT networks,
1385 but we should expect that at some point we will get collisions because of
1386 port-forwanding rules. so perhaps we should support only single instance of NAT
1387 network.
1388 </desc>
1389 </attribute>
1390 <attribute name="enabled" type="boolean"/>
1391 <attribute name="network" type="wstring">
1392 <desc>
1393 This is CIDR IPv4 string. Specifiying it user defines IPv4 addresses
1394 of gateway (low address + 1) and dhcp server (= low address + 2).
1395 Note: if there're defined IPv4 port-forward rules update of network
1396 will be ignored (because new assignment could break existing rules).
1397 </desc>
1398 </attribute>
1399 <attribute name="gateway" type="wstring" readonly="yes">
1400 <desc>
1401 This attribute is read-only. It's recalculated on changing
1402 network attribute (low address of network + 1).
1403 </desc>
1404 </attribute>
1405 <attribute name="IPv6Enabled" type="boolean">
1406 <desc>
1407 This attribute define whether gateway will support IPv6 or not.
1408 </desc>
1409 </attribute>
1410 <attribute name="IPv6Prefix" type="wstring">
1411 <desc>
1412 This a CIDR IPv6 defining prefix for link-local addresses
1413 autoconfiguration within network. Note: ignored if attribute
1414 IPv6Enabled is false.
1415 </desc>
1416 </attribute>
1417 <attribute name="advertiseDefaultIPv6RouteEnabled" type="boolean"/>
1418 <attribute name="needDhcpServer" type="boolean"/>
1419 <attribute name="eventSource" type="IEventSource" readonly="yes"/>
1420 <attribute name="portForwardRules4" type="wstring" readonly="yes" safearray="yes">
1421 <desc>Array of NAT port-forwarding rules in string representation,
1422 in the following format:
1423 "name:protocolid:[host ip]:host port:[guest ip]:guest port".
1424 </desc>
1425 </attribute>
1426 <attribute name="portForwardRules6" type="wstring" readonly="yes" safearray="yes">
1427 <desc>Array of NAT port-forwarding rules in string representation, in the
1428 following format: "name:protocolid:[host ip]:host port:[guest ip]:guest port".
1429 </desc>
1430 </attribute>
1431 <method name="addPortForwardRule">
1432 <param name="isIpv6" type="boolean" dir="in"/>
1433 <param name="ruleName" type="wstring" dir="in"/>
1434 <param name="proto" type="NATProtocol" dir="in">
1435 <desc>Protocol handled with the rule.</desc>
1436 </param>
1437 <param name="hostIP" type="wstring" dir="in">
1438 <desc>IP of the host interface to which the rule should apply.
1439 An empty ip address is acceptable, in which case the NAT engine
1440 binds the handling socket to any interface.
1441 </desc>
1442 </param>
1443 <param name="hostPort" type="unsigned short" dir="in">
1444 <desc>The port number to listen on.</desc>
1445 </param>
1446 <param name="guestIP" type="wstring" dir="in">
1447 <desc>The IP address of the guest which the NAT engine will forward
1448 matching packets to. An empty IP address is not acceptable.</desc>
1449 </param>
1450 <param name="guestPort" type="unsigned short" dir="in">
1451 <desc>The port number to forward.</desc>
1452 </param>
1453 </method>
1454 <method name="removePortForwardRule">
1455 <param name="iSipv6" type="boolean" dir="in"/>
1456 <param name="ruleName" type="wstring" dir="in"/>
1457 </method>
1458 <method name="start">
1459 <param name="trunkType" type="wstring" dir="in">
1460 <desc>
1461 Type of internal network trunk.
1462 </desc>
1463 </param>
1464 </method>
1465 <method name="stop"/>
1466 </interface>
1467
1468 <interface
1469 name="IDHCPServer" extends="$unknown"
1470 uuid="6cfe387c-74fb-4ca7-bff6-973bec8af7a3"
1471 wsmap="managed"
1472 >
1473 <desc>
1474 The IDHCPServer interface represents the vbox DHCP server configuration.
1475
1476 To enumerate all the DHCP servers on the host, use the
1477 <link to="IVirtualBox::DHCPServers"/> attribute.
1478 </desc>
1479
1480 <attribute name="enabled" type="boolean">
1481 <desc>
1482 specifies if the DHCP server is enabled
1483 </desc>
1484 </attribute>
1485
1486 <attribute name="IPAddress" type="wstring" readonly="yes">
1487 <desc>
1488 specifies server IP
1489 </desc>
1490 </attribute>
1491
1492 <attribute name="networkMask" type="wstring" readonly="yes">
1493 <desc>
1494 specifies server network mask
1495 </desc>
1496 </attribute>
1497
1498 <attribute name="networkName" type="wstring" readonly="yes">
1499 <desc>
1500 specifies internal network name the server is used for
1501 </desc>
1502 </attribute>
1503
1504 <attribute name="lowerIP" type="wstring" readonly="yes">
1505 <desc>
1506 specifies from IP address in server address range
1507 </desc>
1508 </attribute>
1509
1510 <attribute name="upperIP" type="wstring" readonly="yes">
1511 <desc>
1512 specifies to IP address in server address range
1513 </desc>
1514 </attribute>
1515
1516 <method name="setConfiguration">
1517 <desc>
1518 configures the server
1519 <result name="E_INVALIDARG">
1520 invalid configuration supplied
1521 </result>
1522 </desc>
1523 <param name="IPAddress" type="wstring" dir="in">
1524 <desc>
1525 server IP address
1526 </desc>
1527 </param>
1528 <param name="networkMask" type="wstring" dir="in">
1529 <desc>
1530 server network mask
1531 </desc>
1532 </param>
1533 <param name="FromIPAddress" type="wstring" dir="in">
1534 <desc>
1535 server From IP address for address range
1536 </desc>
1537 </param>
1538 <param name="ToIPAddress" type="wstring" dir="in">
1539 <desc>
1540 server To IP address for address range
1541 </desc>
1542 </param>
1543 </method>
1544
1545 <method name="start">
1546 <desc>
1547 Starts DHCP server process.
1548 <result name="E_FAIL">
1549 Failed to start the process.
1550 </result>
1551 </desc>
1552 <param name="networkName" type="wstring" dir="in">
1553 <desc>
1554 Name of internal network DHCP server should attach to.
1555 </desc>
1556 </param>
1557 <param name="trunkName" type="wstring" dir="in">
1558 <desc>
1559 Name of internal network trunk.
1560 </desc>
1561 </param>
1562 <param name="trunkType" type="wstring" dir="in">
1563 <desc>
1564 Type of internal network trunk.
1565 </desc>
1566 </param>
1567 </method>
1568
1569 <method name="stop">
1570 <desc>
1571 Stops DHCP server process.
1572 <result name="E_FAIL">
1573 Failed to stop the process.
1574 </result>
1575 </desc>
1576 </method>
1577 </interface>
1578
1579 <interface
1580 name="IVirtualBox" extends="$unknown"
1581 uuid="fafa4e17-1ee2-4905-a10e-fe7c18bf5554"
1582 wsmap="managed"
1583 >
1584 <desc>
1585 The IVirtualBox interface represents the main interface exposed by the
1586 product that provides virtual machine management.
1587
1588 An instance of IVirtualBox is required for the product to do anything
1589 useful. Even though the interface does not expose this, internally,
1590 IVirtualBox is implemented as a singleton and actually lives in the
1591 process of the VirtualBox server (VBoxSVC.exe). This makes sure that
1592 IVirtualBox can track the state of all virtual machines on a particular
1593 host, regardless of which frontend started them.
1594
1595 To enumerate all the virtual machines on the host, use the
1596 <link to="IVirtualBox::machines"/> attribute.
1597 </desc>
1598
1599 <attribute name="version" type="wstring" readonly="yes">
1600 <desc>
1601 A string representing the version number of the product. The
1602 format is 3 integer numbers divided by dots (e.g. 1.0.1). The
1603 last number represents the build number and will frequently change.
1604
1605 This may be followed by a _ALPHA[0-9]*, _BETA[0-9]* or _RC[0-9]* tag
1606 in prerelease builds. Non-Oracle builds may (/shall) also have a
1607 publisher tag, at the end. The publisher tag starts with an underscore
1608 just like the prerelease build type tag.
1609 </desc>
1610 </attribute>
1611
1612 <attribute name="versionNormalized" type="wstring" readonly="yes">
1613 <desc>
1614 A string representing the version number of the product,
1615 without the publisher information (but still with other tags).
1616 See <link to="#version" />.
1617 </desc>
1618 </attribute>
1619
1620 <attribute name="revision" type="unsigned long" readonly="yes">
1621 <desc>
1622 The internal build revision number of the product.
1623 </desc>
1624 </attribute>
1625
1626 <attribute name="packageType" type="wstring" readonly="yes">
1627 <desc>
1628 A string representing the package type of this product. The
1629 format is OS_ARCH_DIST where OS is either WINDOWS, LINUX,
1630 SOLARIS, DARWIN. ARCH is either 32BITS or 64BITS. DIST
1631 is either GENERIC, UBUNTU_606, UBUNTU_710, or something like
1632 this.
1633 </desc>
1634 </attribute>
1635
1636 <attribute name="APIVersion" type="wstring" readonly="yes">
1637 <desc>
1638 A string representing the VirtualBox API version number. The format is
1639 2 integer numbers divided by an underscore (e.g. 1_0). After the
1640 first public release of packages with a particular API version the
1641 API will not be changed in an incompatible way. Note that this
1642 guarantee does not apply to development builds, and also there is no
1643 guarantee that this version is identical to the first two integer
1644 numbers of the package version.
1645 </desc>
1646 </attribute>
1647
1648 <attribute name="homeFolder" type="wstring" readonly="yes">
1649 <desc>
1650 Full path to the directory where the global settings file,
1651 <tt>VirtualBox.xml</tt>, is stored.
1652
1653 In this version of VirtualBox, the value of this property is
1654 always <tt>&lt;user_dir&gt;/.VirtualBox</tt> (where
1655 <tt>&lt;user_dir&gt;</tt> is the path to the user directory,
1656 as determined by the host OS), and cannot be changed.
1657
1658 This path is also used as the base to resolve relative paths in
1659 places where relative paths are allowed (unless otherwise
1660 expressly indicated).
1661 </desc>
1662 </attribute>
1663
1664 <attribute name="settingsFilePath" type="wstring" readonly="yes">
1665 <desc>
1666 Full name of the global settings file.
1667 The value of this property corresponds to the value of
1668 <link to="#homeFolder"/> plus <tt>/VirtualBox.xml</tt>.
1669 </desc>
1670 </attribute>
1671
1672 <attribute name="host" type="IHost" readonly="yes">
1673 <desc>Associated host object.</desc>
1674 </attribute>
1675
1676 <attribute name="systemProperties" type="ISystemProperties" readonly="yes">
1677 <desc>Associated system information object.</desc>
1678 </attribute>
1679
1680 <attribute name="machines" type="IMachine" readonly="yes" safearray="yes">
1681 <desc>
1682 Array of machine objects registered within this VirtualBox instance.
1683 </desc>
1684 </attribute>
1685
1686 <attribute name="machineGroups" type="wstring" readonly="yes" safearray="yes">
1687 <desc>
1688 Array of all machine group names which are used by the machines which
1689 are accessible. Each group is only listed once, however they are listed
1690 in no particular order and there is no guarantee that there are no gaps
1691 in the group hierarchy (i.e. <tt>"/"</tt>, <tt>"/group/subgroup"</tt>
1692 is a valid result).
1693 </desc>
1694 </attribute>
1695
1696 <attribute name="hardDisks" type="IMedium" readonly="yes" safearray="yes">
1697 <desc>
1698 Array of medium objects known to this VirtualBox installation.
1699
1700 This array contains only base media. All differencing
1701 media of the given base medium can be enumerated using
1702 <link to="IMedium::children"/>.
1703 </desc>
1704 </attribute>
1705
1706 <attribute name="DVDImages" type="IMedium" readonly="yes" safearray="yes">
1707 <desc>
1708 Array of CD/DVD image objects currently in use by this VirtualBox instance.
1709 </desc>
1710 </attribute>
1711
1712 <attribute name="floppyImages" type="IMedium" readonly="yes" safearray="yes">
1713 <desc>
1714 Array of floppy image objects currently in use by this VirtualBox instance.
1715 </desc>
1716 </attribute>
1717
1718 <attribute name="progressOperations" type="IProgress" readonly="yes" safearray="yes"/>
1719
1720 <attribute name="guestOSTypes" type="IGuestOSType" readonly="yes" safearray="yes"/>
1721
1722 <attribute name="sharedFolders" type="ISharedFolder" readonly="yes" safearray="yes">
1723 <desc>
1724 Collection of global shared folders. Global shared folders are
1725 available to all virtual machines.
1726
1727 New shared folders are added to the collection using
1728 <link to="#createSharedFolder"/>. Existing shared folders can be
1729 removed using <link to="#removeSharedFolder"/>.
1730
1731 <note>
1732 In the current version of the product, global shared folders are not
1733 implemented and therefore this collection is always empty.
1734 </note>
1735 </desc>
1736 </attribute>
1737
1738 <attribute name="performanceCollector" type="IPerformanceCollector" readonly="yes">
1739 <desc>
1740 Associated performance collector object.
1741 </desc>
1742 </attribute>
1743
1744 <attribute name="DHCPServers" type="IDHCPServer" safearray="yes" readonly="yes">
1745 <desc>
1746 DHCP servers.
1747 </desc>
1748 </attribute>
1749 <!-- Array of NAT networks -->
1750 <attribute name="NATNetworks" type="INATNetwork" safearray="yes" readonly="yes"/>
1751
1752 <attribute name="eventSource" type="IEventSource" readonly="yes">
1753 <desc>
1754 Event source for VirtualBox events.
1755 </desc>
1756 </attribute>
1757
1758 <attribute name="extensionPackManager" type="IExtPackManager" readonly="yes">
1759 <desc>
1760 The extension pack manager.
1761 </desc>
1762 </attribute>
1763
1764
1765 <attribute name="internalNetworks" type="wstring" safearray="yes" readonly="yes">
1766 <desc>
1767 Names of all internal networks.
1768 </desc>
1769 </attribute>
1770
1771 <attribute name="genericNetworkDrivers" type="wstring" safearray="yes" readonly="yes">
1772 <desc>
1773 Names of all generic network drivers.
1774 </desc>
1775 </attribute>
1776
1777 <method name="composeMachineFilename">
1778 <desc>
1779 Returns a recommended full path of the settings file name for a new virtual
1780 machine.
1781
1782 This API serves two purposes:
1783
1784 <ul>
1785 <li>It gets called by <link to="#createMachine" /> if @c null or
1786 empty string (which is recommended) is specified for the
1787 @a settingsFile argument there, which means that API should use
1788 a recommended default file name.</li>
1789
1790 <li>It can be called manually by a client software before creating a machine,
1791 e.g. if that client wants to pre-create the machine directory to create
1792 virtual hard disks in that directory together with the new machine
1793 settings file. In that case, the file name should be stripped from the
1794 full settings file path returned by this function to obtain the
1795 machine directory.</li>
1796 </ul>
1797
1798 See <link to="IMachine::name"/> and <link to="#createMachine"/> for more
1799 details about the machine name.
1800
1801 @a groupName defines which additional subdirectory levels should be
1802 included. It must be either a valid group name or @c null or empty
1803 string which designates that the machine will not be related to a
1804 machine group.
1805
1806 If @a baseFolder is a @c null or empty string (which is recommended), the
1807 default machine settings folder
1808 (see <link to="ISystemProperties::defaultMachineFolder" />) will be used as
1809 a base folder for the created machine, resulting in a file name like
1810 "/home/user/VirtualBox VMs/name/name.vbox". Otherwise the given base folder
1811 will be used.
1812
1813 This method does not access the host disks. In particular, it does not check
1814 for whether a machine with this name already exists.
1815 </desc>
1816 <param name="name" type="wstring" dir="in">
1817 <desc>Suggested machine name.</desc>
1818 </param>
1819 <param name="group" type="wstring" dir="in">
1820 <desc>Machine group name for the new machine or machine group. It is
1821 used to determine the right subdirectory.</desc>
1822 </param>
1823 <param name="createFlags" type="wstring" dir="in">
1824 <desc>Machine creation flags, see <link to="#createMachine" /> (optional).</desc>
1825 </param>
1826 <param name="baseFolder" type="wstring" dir="in">
1827 <desc>Base machine folder (optional).</desc>
1828 </param>
1829 <param name="file" type="wstring" dir="return">
1830 <desc>Fully qualified path where the machine would be created.</desc>
1831 </param>
1832 </method>
1833
1834 <method name="createMachine">
1835 <desc>
1836 Creates a new virtual machine by creating a machine settings file at
1837 the given location.
1838
1839 VirtualBox machine settings files use a custom XML dialect. Starting
1840 with VirtualBox 4.0, a ".vbox" extension is recommended, but not enforced,
1841 and machine files can be created at arbitrary locations.
1842
1843 However, it is recommended that machines are created in the default
1844 machine folder (e.g. "/home/user/VirtualBox VMs/name/name.vbox"; see
1845 <link to="ISystemProperties::defaultMachineFolder" />). If you specify
1846 @c null or empty string (which is recommended) for the @a settingsFile
1847 argument, <link to="#composeMachineFilename" /> is called automatically
1848 to have such a recommended name composed based on the machine name
1849 given in the @a name argument and the primary group.
1850
1851 If the resulting settings file already exists, this method will fail,
1852 unless the forceOverwrite flag is set.
1853
1854 The new machine is created unregistered, with the initial configuration
1855 set according to the specified guest OS type. A typical sequence of
1856 actions to create a new virtual machine is as follows:
1857
1858 <ol>
1859 <li>
1860 Call this method to have a new machine created. The returned machine
1861 object will be "mutable" allowing to change any machine property.
1862 </li>
1863
1864 <li>
1865 Configure the machine using the appropriate attributes and methods.
1866 </li>
1867
1868 <li>
1869 Call <link to="IMachine::saveSettings" /> to write the settings
1870 to the machine's XML settings file. The configuration of the newly
1871 created machine will not be saved to disk until this method is
1872 called.
1873 </li>
1874
1875 <li>
1876 Call <link to="#registerMachine" /> to add the machine to the list
1877 of machines known to VirtualBox.
1878 </li>
1879 </ol>
1880
1881 The specified guest OS type identifier must match an ID of one of known
1882 guest OS types listed in the <link to="IVirtualBox::guestOSTypes"/>
1883 array.
1884
1885 <note>
1886 There is no way to change the name of the settings file or
1887 subfolder of the created machine directly.
1888 </note>
1889
1890 <result name="VBOX_E_OBJECT_NOT_FOUND">
1891 @a osTypeId is invalid.
1892 </result>
1893 <result name="VBOX_E_FILE_ERROR">
1894 Resulting settings file name is invalid or the settings file already
1895 exists or could not be created due to an I/O error.
1896 </result>
1897 <result name="E_INVALIDARG">
1898 @a name is empty or @c null.
1899 </result>
1900 </desc>
1901
1902 <param name="settingsFile" type="wstring" dir="in">
1903 <desc>Fully qualified path where the settings file should be created,
1904 empty string or @c null for a default folder and file based on the
1905 @a name argument and the primary group.
1906 (see <link to="#composeMachineFilename" />).</desc>
1907 </param>
1908 <param name="name" type="wstring" dir="in">
1909 <desc>Machine name.</desc>
1910 </param>
1911 <param name="groups" type="wstring" safearray="yes" dir="in">
1912 <desc>Array of group names. @c null or an empty array have the same
1913 meaning as an array with just the empty string or <tt>"/"</tt>, i.e.
1914 create a machine without group association.</desc>
1915 </param>
1916 <param name="osTypeId" type="wstring" dir="in">
1917 <desc>Guest OS Type ID.</desc>
1918 </param>
1919 <param name="flags" type="wstring" dir="in">
1920 <desc>
1921 Additional property parameters, passed as a comma-separated list of
1922 "name=value" type entries. The following ones are recognized:
1923 <tt>forceOverwrite=1</tt> to overwrite an existing machine settings
1924 file, <tt>UUID=&lt;uuid&gt;</tt> to specify a machine UUID and
1925 <tt>directoryIncludesUUID=1</tt> to switch to a special VM directory
1926 naming scheme which should not be used unless necessary.
1927 </desc>
1928 </param>
1929 <param name="machine" type="IMachine" dir="return">
1930 <desc>Created machine object.</desc>
1931 </param>
1932 </method>
1933
1934 <method name="openMachine">
1935 <desc>
1936 Opens a virtual machine from the existing settings file.
1937 The opened machine remains unregistered until you call
1938 <link to="#registerMachine"/>.
1939
1940 The specified settings file name must be fully qualified.
1941 The file must exist and be a valid machine XML settings file
1942 whose contents will be used to construct the machine object.
1943
1944 <result name="VBOX_E_FILE_ERROR">
1945 Settings file name invalid, not found or sharing violation.
1946 </result>
1947 </desc>
1948 <param name="settingsFile" type="wstring" dir="in">
1949 <desc>
1950 Name of the machine settings file.
1951 </desc>
1952 </param>
1953 <param name="machine" type="IMachine" dir="return">
1954 <desc>Opened machine object.</desc>
1955 </param>
1956 <note>
1957 <link to="IMachine::settingsModified"/> will return
1958 @c false for the created machine, until any of machine settings
1959 are changed.
1960 </note>
1961 </method>
1962
1963 <method name="registerMachine">
1964 <desc>
1965
1966 Registers the machine previously created using
1967 <link to="#createMachine"/> or opened using
1968 <link to="#openMachine"/> within this VirtualBox installation. After
1969 successful method invocation, the
1970 <link to="IMachineRegisteredEvent"/> event is fired.
1971
1972 <note>
1973 This method implicitly calls <link to="IMachine::saveSettings"/>
1974 to save all current machine settings before registering it.
1975 </note>
1976
1977 <result name="VBOX_E_OBJECT_NOT_FOUND">
1978 No matching virtual machine found.
1979 </result>
1980 <result name="VBOX_E_INVALID_OBJECT_STATE">
1981 Virtual machine was not created within this VirtualBox instance.
1982 </result>
1983
1984 </desc>
1985 <param name="machine" type="IMachine" dir="in"/>
1986 </method>
1987
1988 <method name="findMachine">
1989 <desc>
1990 Attempts to find a virtual machine given its name or UUID.
1991
1992 <note>Inaccessible machines cannot be found by name, only by UUID, because their name
1993 cannot safely be determined.</note>
1994
1995 <result name="VBOX_E_OBJECT_NOT_FOUND">
1996 Could not find registered machine matching @a nameOrId.
1997 </result>
1998
1999 </desc>
2000 <param name="nameOrId" type="wstring" dir="in">
2001 <desc>What to search for. This can either be the UUID or the name of a virtual machine.</desc>
2002 </param>
2003 <param name="machine" type="IMachine" dir="return">
2004 <desc>Machine object, if found.</desc>
2005 </param>
2006 </method>
2007
2008 <method name="getMachinesByGroups">
2009 <desc>
2010 Gets all machine references which are in one of the specified groups.
2011 </desc>
2012 <param name="groups" type="wstring" dir="in" safearray="yes">
2013 <desc>What groups to match. The usual group list rules apply, i.e.
2014 passing an empty list will match VMs in the toplevel group, likewise
2015 the empty string.</desc>
2016 </param>
2017 <param name="machines" type="IMachine" dir="return" safearray="yes">
2018 <desc>All machines which matched.</desc>
2019 </param>
2020 </method>
2021
2022 <method name="getMachineStates">
2023 <desc>
2024 Gets the state of several machines in a single operation.
2025 </desc>
2026 <param name="machines" type="IMachine" dir="in" safearray="yes">
2027 <desc>Array with the machine references.</desc>
2028 </param>
2029 <param name="states" type="MachineState" dir="return" safearray="yes">
2030 <desc>Machine states, corresponding to the machines.</desc>
2031 </param>
2032 </method>
2033
2034 <method name="createAppliance">
2035 <desc>
2036 Creates a new appliance object, which represents an appliance in the Open Virtual Machine
2037 Format (OVF). This can then be used to import an OVF appliance into VirtualBox or to export
2038 machines as an OVF appliance; see the documentation for <link to="IAppliance" /> for details.
2039 </desc>
2040 <param name="appliance" type="IAppliance" dir="return">
2041 <desc>New appliance.</desc>
2042 </param>
2043 </method>
2044
2045 <method name="createHardDisk">
2046 <desc>
2047 Creates a new base medium object that will use the given storage
2048 format and location for medium data.
2049
2050 The actual storage unit is not created by this method. In order to
2051 do it, and before you are able to attach the created medium to
2052 virtual machines, you must call one of the following methods to
2053 allocate a format-specific storage unit at the specified location:
2054 <ul>
2055 <li><link to="IMedium::createBaseStorage"/></li>
2056 <li><link to="IMedium::createDiffStorage"/></li>
2057 </ul>
2058
2059 Some medium attributes, such as <link to="IMedium::id"/>, may
2060 remain uninitialized until the medium storage unit is successfully
2061 created by one of the above methods.
2062
2063 After the storage unit is successfully created, it will be
2064 accessible through the <link to="#openMedium"/> method and can
2065 be found in the <link to="#hardDisks"/> array.
2066
2067 The list of all storage formats supported by this VirtualBox
2068 installation can be obtained using
2069 <link to="ISystemProperties::mediumFormats"/>. If the @a format
2070 attribute is empty or @c null then the default storage format
2071 specified by <link to="ISystemProperties::defaultHardDiskFormat"/> will
2072 be used for creating a storage unit of the medium.
2073
2074 Note that the format of the location string is storage format specific.
2075 See <link to="IMedium::location"/> and IMedium for more details.
2076
2077 <result name="VBOX_E_OBJECT_NOT_FOUND">
2078 @a format identifier is invalid. See
2079 <link to="ISystemProperties::mediumFormats"/>.
2080 </result>
2081 <result name="VBOX_E_FILE_ERROR">
2082 @a location is a not valid file name (for file-based formats only).
2083 </result>
2084 </desc>
2085 <param name="format" type="wstring" dir="in">
2086 <desc>
2087 Identifier of the storage format to use for the new medium.
2088 </desc>
2089 </param>
2090 <param name="location" type="wstring" dir="in">
2091 <desc>
2092 Location of the storage unit for the new medium.
2093 </desc>
2094 </param>
2095 <param name="medium" type="IMedium" dir="return">
2096 <desc>Created medium object.</desc>
2097 </param>
2098 </method>
2099
2100 <method name="openMedium">
2101 <desc>
2102 Finds existing media or opens a medium from an existing storage location.
2103
2104 Once a medium has been opened, it can be passed to other VirtualBox
2105 methods, in particular to <link to="IMachine::attachDevice" />.
2106
2107 Depending on the given device type, the file at the storage location
2108 must be in one of the media formats understood by VirtualBox:
2109
2110 <ul>
2111 <li>With a "HardDisk" device type, the file must be a hard disk image
2112 in one of the formats supported by VirtualBox (see
2113 <link to="ISystemProperties::mediumFormats" />).
2114 After this method succeeds, if the medium is a base medium, it
2115 will be added to the <link to="#hardDisks"/> array attribute. </li>
2116 <li>With a "DVD" device type, the file must be an ISO 9960 CD/DVD image.
2117 After this method succeeds, the medium will be added to the
2118 <link to="#DVDImages"/> array attribute.</li>
2119 <li>With a "Floppy" device type, the file must be an RAW floppy image.
2120 After this method succeeds, the medium will be added to the
2121 <link to="#floppyImages"/> array attribute.</li>
2122 </ul>
2123
2124 After having been opened, the medium can be re-found by this method
2125 and can be attached to virtual machines. See <link to="IMedium" /> for
2126 more details.
2127
2128 The UUID of the newly opened medium will either be retrieved from the
2129 storage location, if the format supports it (e.g. for hard disk images),
2130 or a new UUID will be randomly generated (e.g. for ISO and RAW files).
2131 If for some reason you need to change the medium's UUID, use
2132 <link to="IMedium::setIds" />.
2133
2134 If a differencing hard disk medium is to be opened by this method, the
2135 operation will succeed only if its parent medium and all ancestors,
2136 if any, are already known to this VirtualBox installation (for example,
2137 were opened by this method before).
2138
2139 This method attempts to guess the storage format of the specified medium
2140 by reading medium data at the specified location.
2141
2142 If @a accessMode is ReadWrite (which it should be for hard disks and floppies),
2143 the image is opened for read/write access and must have according permissions,
2144 as VirtualBox may actually write status information into the disk's metadata
2145 sections.
2146
2147 Note that write access is required for all typical hard disk usage in VirtualBox,
2148 since VirtualBox may need to write metadata such as a UUID into the image.
2149 The only exception is opening a source image temporarily for copying and
2150 cloning (see <link to="IMedium::cloneTo" /> when the image will be closed
2151 again soon.
2152
2153 The format of the location string is storage format specific. See
2154 <link to="IMedium::location"/> and IMedium for more details.
2155
2156 <result name="VBOX_E_FILE_ERROR">
2157 Invalid medium storage file location or could not find the medium
2158 at the specified location.
2159 </result>
2160 <result name="VBOX_E_IPRT_ERROR">
2161 Could not get medium storage format.
2162 </result>
2163 <result name="E_INVALIDARG">
2164 Invalid medium storage format.
2165 </result>
2166 <result name="VBOX_E_INVALID_OBJECT_STATE">
2167 Medium has already been added to a media registry.
2168 </result>
2169 </desc>
2170 <param name="location" type="wstring" dir="in">
2171 <desc>
2172 Location of the storage unit that contains medium data in one of
2173 the supported storage formats.
2174 </desc>
2175 </param>
2176 <param name="deviceType" type="DeviceType" dir="in">
2177 <desc>
2178 Must be one of "HardDisk", "DVD" or "Floppy".
2179 </desc>
2180 </param>
2181 <param name="accessMode" type="AccessMode" dir="in">
2182 <desc>Whether to open the image in read/write or read-only mode. For
2183 a "DVD" device type, this is ignored and read-only mode is always assumed.</desc>
2184 </param>
2185 <param name="forceNewUuid" type="boolean" dir="in">
2186 <desc>Allows the caller to request a completely new medium UUID for
2187 the image which is to be opened. Useful if one intends to open an exact
2188 copy of a previously opened image, as this would normally fail due to
2189 the duplicate UUID.</desc>
2190 </param>
2191 <param name="medium" type="IMedium" dir="return">
2192 <desc>Opened medium object.</desc>
2193 </param>
2194 </method>
2195
2196 <method name="getGuestOSType">
2197 <desc>
2198 Returns an object describing the specified guest OS type.
2199
2200 The requested guest OS type is specified using a string which is a
2201 mnemonic identifier of the guest operating system, such as
2202 <tt>"win31"</tt> or <tt>"ubuntu"</tt>. The guest OS type ID of a
2203 particular virtual machine can be read or set using the
2204 <link to="IMachine::OSTypeId"/> attribute.
2205
2206 The <link to="IVirtualBox::guestOSTypes"/> collection contains all
2207 available guest OS type objects. Each object has an
2208 <link to="IGuestOSType::id"/> attribute which contains an identifier of
2209 the guest OS this object describes.
2210
2211 <result name="E_INVALIDARG">
2212 @a id is not a valid Guest OS type.
2213 </result>
2214
2215 </desc>
2216 <param name="id" type="uuid" mod="string" dir="in">
2217 <desc>Guest OS type ID string.</desc>
2218 </param>
2219 <param name="type" type="IGuestOSType" dir="return">
2220 <desc>Guest OS type object.</desc>
2221 </param>
2222 </method>
2223
2224 <method name="createSharedFolder">
2225 <desc>
2226 Creates a new global shared folder by associating the given logical
2227 name with the given host path, adds it to the collection of shared
2228 folders and starts sharing it. Refer to the description of
2229 <link to="ISharedFolder"/> to read more about logical names.
2230 <note>
2231 In the current implementation, this operation is not
2232 implemented.
2233 </note>
2234 </desc>
2235 <param name="name" type="wstring" dir="in">
2236 <desc>Unique logical name of the shared folder.</desc>
2237 </param>
2238 <param name="hostPath" type="wstring" dir="in">
2239 <desc>Full path to the shared folder in the host file system.</desc>
2240 </param>
2241 <param name="writable" type="boolean" dir="in">
2242 <desc>Whether the share is writable or readonly</desc>
2243 </param>
2244 <param name="automount" type="boolean" dir="in">
2245 <desc>Whether the share gets automatically mounted by the guest
2246 or not.</desc>
2247 </param>
2248 </method>
2249
2250 <method name="removeSharedFolder">
2251 <desc>
2252 Removes the global shared folder with the given name previously
2253 created by <link to="#createSharedFolder"/> from the collection of
2254 shared folders and stops sharing it.
2255 <note>
2256 In the current implementation, this operation is not
2257 implemented.
2258 </note>
2259 </desc>
2260 <param name="name" type="wstring" dir="in">
2261 <desc>Logical name of the shared folder to remove.</desc>
2262 </param>
2263 </method>
2264
2265 <method name="getExtraDataKeys">
2266 <desc>
2267 Returns an array representing the global extra data keys which currently
2268 have values defined.
2269 </desc>
2270 <param name="keys" type="wstring" dir="return" safearray="yes">
2271 <desc>Array of extra data keys.</desc>
2272 </param>
2273 </method>
2274
2275 <method name="getExtraData">
2276 <desc>
2277 Returns associated global extra data.
2278
2279 If the requested data @a key does not exist, this function will
2280 succeed and return an empty string in the @a value argument.
2281
2282 <result name="VBOX_E_FILE_ERROR">
2283 Settings file not accessible.
2284 </result>
2285 <result name="VBOX_E_XML_ERROR">
2286 Could not parse the settings file.
2287 </result>
2288
2289 </desc>
2290 <param name="key" type="wstring" dir="in">
2291 <desc>Name of the data key to get.</desc>
2292 </param>
2293 <param name="value" type="wstring" dir="return">
2294 <desc>Value of the requested data key.</desc>
2295 </param>
2296 </method>
2297
2298 <method name="setExtraData">
2299 <desc>
2300 Sets associated global extra data.
2301
2302 If you pass @c null or empty string as a key @a value, the given @a key
2303 will be deleted.
2304
2305 <note>
2306 Before performing the actual data change, this method will ask all
2307 registered event listener using the
2308 <link to="IExtraDataCanChangeEvent"/>
2309 notification for a permission. If one of the listeners refuses the
2310 new value, the change will not be performed.
2311 </note>
2312 <note>
2313 On success, the
2314 <link to="IExtraDataChangedEvent"/> notification
2315 is called to inform all registered listeners about a successful data
2316 change.
2317 </note>
2318
2319 <result name="VBOX_E_FILE_ERROR">
2320 Settings file not accessible.
2321 </result>
2322 <result name="VBOX_E_XML_ERROR">
2323 Could not parse the settings file.
2324 </result>
2325 <result name="E_ACCESSDENIED">
2326 Modification request refused.
2327 </result>
2328
2329 </desc>
2330 <param name="key" type="wstring" dir="in">
2331 <desc>Name of the data key to set.</desc>
2332 </param>
2333 <param name="value" type="wstring" dir="in">
2334 <desc>Value to assign to the key.</desc>
2335 </param>
2336 </method>
2337
2338 <method name="setSettingsSecret">
2339 <desc>
2340 Unlocks the secret data by passing the unlock password to the
2341 server. The server will cache the password for that machine.
2342
2343 <result name="VBOX_E_INVALID_VM_STATE">
2344 Virtual machine is not mutable.
2345 </result>
2346
2347 </desc>
2348 <param name="password" type="wstring" dir="in">
2349 <desc>
2350 The cipher key.
2351 </desc>
2352 </param>
2353 </method>
2354
2355 <!--method name="createDHCPServerForInterface">
2356 <desc>
2357 Creates a DHCP server settings to be used for the given interface
2358 <result name="E_INVALIDARG">
2359 Host network interface @a name already exists.
2360 </result>
2361 </desc>
2362 <param name="interface" type="IHostNetworkInterface" dir="in">
2363 <desc>Network Interface</desc>
2364 </param>
2365 <param name="server" type="IDHCPServer" dir="out">
2366 <desc>DHCP server settings</desc>
2367 </param>
2368 </method-->
2369
2370 <method name="createDHCPServer">
2371 <desc>
2372 Creates a DHCP server settings to be used for the given internal network name
2373 <result name="E_INVALIDARG">
2374 Host network interface @a name already exists.
2375 </result>
2376 </desc>
2377 <param name="name" type="wstring" dir="in">
2378 <desc>server name</desc>
2379 </param>
2380 <param name="server" type="IDHCPServer" dir="return">
2381 <desc>DHCP server settings</desc>
2382 </param>
2383 </method>
2384
2385 <method name="findDHCPServerByNetworkName">
2386 <desc>
2387 Searches a DHCP server settings to be used for the given internal network name
2388 <result name="E_INVALIDARG">
2389 Host network interface @a name already exists.
2390 </result>
2391
2392 </desc>
2393 <param name="name" type="wstring" dir="in">
2394 <desc>server name</desc>
2395 </param>
2396 <param name="server" type="IDHCPServer" dir="return">
2397 <desc>DHCP server settings</desc>
2398 </param>
2399 </method>
2400
2401 <!--method name="findDHCPServerForInterface">
2402 <desc>
2403 Searches a DHCP server settings to be used for the given interface
2404 <result name="E_INVALIDARG">
2405 Host network interface @a name already exists.
2406 </result>
2407 </desc>
2408 <param name="interface" type="IHostNetworkInterface" dir="in">
2409 <desc>Network Interface</desc>
2410 </param>
2411 <param name="server" type="IDHCPServer" dir="out">
2412 <desc>DHCP server settings</desc>
2413 </param>
2414 </method-->
2415
2416 <method name="removeDHCPServer">
2417 <desc>
2418 Removes the DHCP server settings
2419 <result name="E_INVALIDARG">
2420 Host network interface @a name already exists.
2421 </result>
2422 </desc>
2423 <param name="server" type="IDHCPServer" dir="in">
2424 <desc>DHCP server settings to be removed</desc>
2425 </param>
2426 </method>
2427
2428 <!-- bunch of metods to create NAT -->
2429 <method name="createNATNetwork">
2430 <!-- Here we create a record in NAT network array with name
2431 and gateway/network parameters this information should
2432 be enough for VBoxNet[Lwip]NAT and VBoxNetDHCP for
2433 servicing the guests.
2434 -->
2435 <param name="networkName" type="wstring" dir="in"/>
2436 <param name="network" type="INATNetwork" dir="return"/>
2437 </method>
2438
2439 <!--
2440 Returns the NATNetwork by name, e.g. for adding porforward rule or delition.
2441 -->
2442 <method name="findNATNetworkByName">
2443 <param name="networkName" type="wstring" dir="in"/>
2444 <param name="network" type="INATNetwork" dir="return"/>
2445 </method>
2446 <!--
2447 Deletes given NAT network.
2448 -->
2449 <method name="removeNATNetwork">
2450 <param name="network" type="INATNetwork" dir="in"/>
2451 </method>
2452
2453 <method name="checkFirmwarePresent">
2454 <desc>
2455 Check if this VirtualBox installation has a firmware
2456 of the given type available, either system-wide or per-user.
2457 Optionally, this may return a hint where this firmware can be
2458 downloaded from.
2459 </desc>
2460 <param name="firmwareType" type="FirmwareType" dir="in">
2461 <desc>
2462 Type of firmware to check.
2463 </desc>
2464 </param>
2465 <param name="version" type="wstring" dir="in">
2466 <desc>Expected version number, usually empty string (presently ignored).</desc>
2467 </param>
2468
2469 <param name="url" type="wstring" dir="out">
2470 <desc>
2471 Suggested URL to download this firmware from.
2472 </desc>
2473 </param>
2474
2475 <param name="file" type="wstring" dir="out">
2476 <desc>
2477 Filename of firmware, only valid if result == TRUE.
2478 </desc>
2479 </param>
2480
2481 <param name="result" type="boolean" dir="return">
2482 <desc>If firmware of this type and version is available.</desc>
2483 </param>
2484 </method>
2485
2486 </interface>
2487
2488 <!--
2489 // IVFSExplorer
2490 /////////////////////////////////////////////////////////////////////////
2491 -->
2492
2493 <enum
2494 name="VFSType"
2495 uuid="813999ba-b949-48a8-9230-aadc6285e2f2"
2496 >
2497 <desc>
2498 Virtual file systems supported by VFSExplorer.
2499 </desc>
2500
2501 <const name="File" value="1" />
2502 <const name="Cloud" value="2" />
2503 <const name="S3" value="3" />
2504 <const name="WebDav" value="4" />
2505 </enum>
2506
2507 <enum
2508 name="VFSFileType"
2509 uuid="714333cd-44e2-415f-a245-d378fa9b1242"
2510 >
2511 <desc>
2512 File types known by VFSExplorer.
2513 </desc>
2514
2515 <const name="Unknown" value="1" />
2516 <const name="Fifo" value="2" />
2517 <const name="DevChar" value="3" />
2518 <const name="Directory" value="4" />
2519 <const name="DevBlock" value="5" />
2520 <const name="File" value="6" />
2521 <const name="SymLink" value="7" />
2522 <const name="Socket" value="8" />
2523 <const name="WhiteOut" value="9" />
2524 </enum>
2525
2526 <interface
2527 name="IVFSExplorer" extends="$unknown"
2528 uuid="003d7f92-d38e-487f-b790-8c5e8631cb2f"
2529 wsmap="managed"
2530 >
2531 <desc>
2532 The VFSExplorer interface unifies access to different file system
2533 types. This includes local file systems as well remote file systems like
2534 S3. For a list of supported types see <link to="VFSType" />.
2535 An instance of this is returned by <link to="IAppliance::createVFSExplorer" />.
2536 </desc>
2537
2538 <attribute name="path" type="wstring" readonly="yes">
2539 <desc>Returns the current path in the virtual file system.</desc>
2540 </attribute>
2541
2542 <attribute name="type" type="VFSType" readonly="yes">
2543 <desc>Returns the file system type which is currently in use.</desc>
2544 </attribute>
2545
2546 <method name="update">
2547 <desc>Updates the internal list of files/directories from the
2548 current directory level. Use <link to="#entryList" /> to get the full list
2549 after a call to this method.</desc>
2550
2551 <param name="progress" type="IProgress" dir="return">
2552 <desc>Progress object to track the operation completion.</desc>
2553 </param>
2554 </method>
2555
2556 <method name="cd">
2557 <desc>Change the current directory level.</desc>
2558
2559 <param name="dir" type="wstring" dir="in">
2560 <desc>The name of the directory to go in.</desc>
2561 </param>
2562
2563 <param name="progress" type="IProgress" dir="return">
2564 <desc>Progress object to track the operation completion.</desc>
2565 </param>
2566 </method>
2567
2568 <method name="cdUp">
2569 <desc>Go one directory upwards from the current directory level.</desc>
2570
2571 <param name="progress" type="IProgress" dir="return">
2572 <desc>Progress object to track the operation completion.</desc>
2573 </param>
2574 </method>
2575
2576 <method name="entryList">
2577 <desc>Returns a list of files/directories after a call to <link
2578 to="#update" />. The user is responsible for keeping this internal
2579 list up do date.</desc>
2580
2581 <param name="names" type="wstring" safearray="yes" dir="out">
2582 <desc>The list of names for the entries.</desc>
2583 </param>
2584
2585 <param name="types" type="unsigned long" safearray="yes" dir="out">
2586 <desc>The list of types for the entries.</desc>
2587 </param>
2588
2589 <param name="sizes" type="unsigned long" safearray="yes" dir="out">
2590 <desc>The list of sizes (in bytes) for the entries.</desc>
2591 </param>
2592
2593 <param name="modes" type="unsigned long" safearray="yes" dir="out">
2594 <desc>The list of file modes (in octal form) for the entries.</desc>
2595 </param>
2596 </method>
2597
2598 <method name="exists">
2599 <desc>Checks if the given file list exists in the current directory
2600 level.</desc>
2601
2602 <param name="names" type="wstring" safearray="yes" dir="in">
2603 <desc>The names to check.</desc>
2604 </param>
2605
2606 <param name="exists" type="wstring" safearray="yes" dir="return">
2607 <desc>The names which exist.</desc>
2608 </param>
2609 </method>
2610
2611 <method name="remove">
2612 <desc>Deletes the given files in the current directory level.</desc>
2613
2614 <param name="names" type="wstring" safearray="yes" dir="in">
2615 <desc>The names to remove.</desc>
2616 </param>
2617
2618 <param name="progress" type="IProgress" dir="return">
2619 <desc>Progress object to track the operation completion.</desc>
2620 </param>
2621 </method>
2622
2623 </interface>
2624
2625 <enum
2626 name="ImportOptions" extends="$unknown"
2627 uuid="0a981523-3b20-4004-8ee3-dfd322202ace"
2628 >
2629
2630 <desc>
2631 Import options, used with <link to="IAppliance::importMachines" />.
2632 </desc>
2633
2634 <const name="KeepAllMACs" value="1">
2635 <desc>Don't generate new MAC addresses of the attached network adapters.</desc>
2636 </const>
2637 <const name="KeepNATMACs" value="2">
2638 <desc>Don't generate new MAC addresses of the attached network adapters when they are using NAT.</desc>
2639 </const>
2640
2641 </enum>
2642
2643
2644 <!--
2645 // IAppliance
2646 /////////////////////////////////////////////////////////////////////////
2647 -->
2648
2649 <interface
2650 name="IAppliance" extends="$unknown"
2651 uuid="3059cf9e-25c7-4f0b-9fa5-3c42e441670b"
2652 wsmap="managed"
2653 >
2654 <desc>
2655 Represents a platform-independent appliance in OVF format. An instance of this is returned
2656 by <link to="IVirtualBox::createAppliance" />, which can then be used to import and export
2657 virtual machines within an appliance with VirtualBox.
2658
2659 The OVF standard suggests two different physical file formats:
2660
2661 <ol>
2662 <li>If the appliance is distributed as a set of files, there must be at least one XML descriptor
2663 file that conforms to the OVF standard and carries an <tt>.ovf</tt> file extension. If
2664 this descriptor file references other files such as disk images, as OVF appliances typically
2665 do, those additional files must be in the same directory as the descriptor file.</li>
2666
2667 <li>If the appliance is distributed as a single file, it must be in TAR format and have the
2668 <tt>.ova</tt> file extension. This TAR file must then contain at least the OVF descriptor
2669 files and optionally other files.
2670
2671 At this time, VirtualBox does not not yet support the packed (TAR) variant; support will
2672 be added with a later version.</li>
2673 </ol>
2674
2675 <b>Importing</b> an OVF appliance into VirtualBox as instances of
2676 <link to="IMachine" /> involves the following sequence of API calls:
2677
2678 <ol>
2679 <li>Call <link to="IVirtualBox::createAppliance" />. This will create an empty IAppliance object.
2680 </li>
2681
2682 <li>On the new object, call <link to="#read" /> with the full path of the OVF file you
2683 would like to import. So long as this file is syntactically valid, this will succeed
2684 and fill the appliance object with the parsed data from the OVF file.
2685 </li>
2686
2687 <li>Next, call <link to="#interpret" />, which analyzes the OVF data and sets up the
2688 contents of the IAppliance attributes accordingly. These can be inspected by a
2689 VirtualBox front-end such as the GUI, and the suggestions can be displayed to the
2690 user. In particular, the <link to="#virtualSystemDescriptions" /> array contains
2691 instances of <link to="IVirtualSystemDescription" /> which represent the virtual
2692 systems (machines) in the OVF, which in turn describe the virtual hardware prescribed
2693 by the OVF (network and hardware adapters, virtual disk images, memory size and so on).
2694 The GUI can then give the user the option to confirm and/or change these suggestions.
2695 </li>
2696
2697 <li>If desired, call <link to="IVirtualSystemDescription::setFinalValues" /> for each
2698 virtual system (machine) to override the suggestions made by the <link to="#interpret" /> routine.
2699 </li>
2700
2701 <li>Finally, call <link to="#importMachines" /> to create virtual machines in
2702 VirtualBox as instances of <link to="IMachine" /> that match the information in the
2703 virtual system descriptions. After this call succeeded, the UUIDs of the machines created
2704 can be found in the <link to="#machines" /> array attribute.
2705 </li>
2706 </ol>
2707
2708 <b>Exporting</b> VirtualBox machines into an OVF appliance involves the following steps:
2709
2710 <ol>
2711 <li>As with importing, first call <link to="IVirtualBox::createAppliance" /> to create
2712 an empty IAppliance object.
2713 </li>
2714
2715 <li>For each machine you would like to export, call <link to="IMachine::exportTo" />
2716 with the IAppliance object you just created. Each such call creates one instance of
2717 <link to="IVirtualSystemDescription" /> inside the appliance.
2718 </li>
2719
2720 <li>If desired, call <link to="IVirtualSystemDescription::setFinalValues" /> for each
2721 virtual system (machine) to override the suggestions made by the <link to="IMachine::exportTo"/> routine.
2722 </li>
2723
2724 <li>Finally, call <link to="#write" /> with a path specification to have the OVF
2725 file written.</li>
2726 </ol>
2727
2728 </desc>
2729
2730 <attribute name="path" type="wstring" readonly="yes">
2731 <desc>Path to the main file of the OVF appliance, which is either the <tt>.ovf</tt> or
2732 the <tt>.ova</tt> file passed to <link to="#read" /> (for import) or
2733 <link to="#write" /> (for export).
2734 This attribute is empty until one of these methods has been called.
2735 </desc>
2736 </attribute>
2737
2738 <attribute name="disks" type="wstring" readonly="yes" safearray="yes">
2739 <desc>
2740 Array of virtual disk definitions. One such description exists for each
2741 disk definition in the OVF; each string array item represents one such piece of
2742 disk information, with the information fields separated by tab (\\t) characters.
2743
2744 The caller should be prepared for additional fields being appended to
2745 this string in future versions of VirtualBox and therefore check for
2746 the number of tabs in the strings returned.
2747
2748 In the current version, the following eight fields are returned per string
2749 in the array:
2750
2751 <ol>
2752 <li>Disk ID (unique string identifier given to disk)</li>
2753
2754 <li>Capacity (unsigned integer indicating the maximum capacity of the disk)</li>
2755
2756 <li>Populated size (optional unsigned integer indicating the current size of the
2757 disk; can be approximate; -1 if unspecified)</li>
2758
2759 <li>Format (string identifying the disk format, typically
2760 "http://www.vmware.com/specifications/vmdk.html#sparse")</li>
2761
2762 <li>Reference (where to find the disk image, typically a file name; if empty,
2763 then the disk should be created on import)</li>
2764
2765 <li>Image size (optional unsigned integer indicating the size of the image,
2766 which need not necessarily be the same as the values specified above, since
2767 the image may be compressed or sparse; -1 if not specified)</li>
2768
2769 <li>Chunk size (optional unsigned integer if the image is split into chunks;
2770 presently unsupported and always -1)</li>
2771
2772 <li>Compression (optional string equalling "gzip" if the image is gzip-compressed)</li>
2773 </ol>
2774 </desc>
2775 </attribute>
2776
2777 <attribute name="virtualSystemDescriptions" type="IVirtualSystemDescription" readonly="yes" safearray="yes">
2778 <desc> Array of virtual system descriptions. One such description is created
2779 for each virtual system (machine) found in the OVF.
2780 This array is empty until either <link to="#interpret" /> (for import) or <link to="IMachine::exportTo" />
2781 (for export) has been called.
2782 </desc>
2783 </attribute>
2784
2785 <attribute name="machines" type="wstring" readonly="yes" safearray="yes">
2786 <desc>
2787 Contains the UUIDs of the machines created from the information in this appliances. This is only
2788 relevant for the import case, and will only contain data after a call to <link to="#importMachines" />
2789 succeeded.
2790 </desc>
2791 </attribute>
2792
2793 <method name="read">
2794 <desc>
2795 Reads an OVF file into the appliance object.
2796
2797 This method succeeds if the OVF is syntactically valid and, by itself, without errors. The
2798 mere fact that this method returns successfully does not mean that VirtualBox supports all
2799 features requested by the appliance; this can only be examined after a call to <link to="#interpret" />.
2800 </desc>
2801 <param name="file" type="wstring" dir="in">
2802 <desc>
2803 Name of appliance file to open (either with an <tt>.ovf</tt> or <tt>.ova</tt> extension, depending
2804 on whether the appliance is distributed as a set of files or as a single file, respectively).
2805 </desc>
2806 </param>
2807 <param name="progress" type="IProgress" dir="return">
2808 <desc>Progress object to track the operation completion.</desc>
2809 </param>
2810 </method>
2811
2812 <method name="interpret">
2813 <desc>
2814 Interprets the OVF data that was read when the appliance was constructed. After
2815 calling this method, one can inspect the
2816 <link to="#virtualSystemDescriptions" /> array attribute, which will then contain
2817 one <link to="IVirtualSystemDescription" /> for each virtual machine found in
2818 the appliance.
2819
2820 Calling this method is the second step of importing an appliance into VirtualBox;
2821 see <link to="IAppliance" /> for an overview.
2822
2823 After calling this method, one should call <link to="#getWarnings" /> to find out
2824 if problems were encountered during the processing which might later lead to
2825 errors.
2826 </desc>
2827 </method>
2828
2829 <method name="importMachines">
2830 <desc>
2831 Imports the appliance into VirtualBox by creating instances of <link to="IMachine" />
2832 and other interfaces that match the information contained in the appliance as
2833 closely as possible, as represented by the import instructions in the
2834 <link to="#virtualSystemDescriptions" /> array.
2835
2836 Calling this method is the final step of importing an appliance into VirtualBox;
2837 see <link to="IAppliance" /> for an overview.
2838
2839 Since importing the appliance will most probably involve copying and converting
2840 disk images, which can take a long time, this method operates asynchronously and
2841 returns an IProgress object to allow the caller to monitor the progress.
2842
2843 After the import succeeded, the UUIDs of the IMachine instances created can be
2844 retrieved from the <link to="#machines" /> array attribute.
2845 </desc>
2846
2847 <param name="options" type="ImportOptions" dir="in" safearray="yes">
2848 <desc>Options for the importing operation.</desc>
2849 </param>
2850
2851 <param name="progress" type="IProgress" dir="return">
2852 <desc>Progress object to track the operation completion.</desc>
2853 </param>
2854 </method>
2855
2856 <method name="createVFSExplorer">
2857 <desc>Returns a <link to="IVFSExplorer" /> object for the given URI.</desc>
2858
2859 <param name="URI" type="wstring" dir="in">
2860 <desc>The URI describing the file system to use.</desc>
2861 </param>
2862
2863 <param name="explorer" type="IVFSExplorer" dir="return">
2864 <desc></desc>
2865 </param>
2866 </method>
2867
2868 <method name="write">
2869 <desc>
2870 Writes the contents of the appliance exports into a new OVF file.
2871
2872 Calling this method is the final step of exporting an appliance from VirtualBox;
2873 see <link to="IAppliance" /> for an overview.
2874
2875 Since exporting the appliance will most probably involve copying and converting
2876 disk images, which can take a long time, this method operates asynchronously and
2877 returns an IProgress object to allow the caller to monitor the progress.
2878 </desc>
2879 <param name="format" type="wstring" dir="in">
2880 <desc>
2881 Output format, as a string. Currently supported formats are "ovf-0.9", "ovf-1.0"
2882 and "ovf-2.0"; future versions of VirtualBox may support additional formats.
2883 </desc>
2884 </param>
2885 <param name="manifest" type="boolean" dir="in">
2886 <desc>
2887 Indicate if the optional manifest file (.mf) should be written. The manifest file
2888 is used for integrity checks prior import.
2889 </desc>
2890 </param>
2891 <param name="path" type="wstring" dir="in">
2892 <desc>
2893 Name of appliance file to open (either with an <tt>.ovf</tt> or <tt>.ova</tt> extension, depending
2894 on whether the appliance is distributed as a set of files or as a single file, respectively).
2895 </desc>
2896 </param>
2897 <param name="progress" type="IProgress" dir="return">
2898 <desc>Progress object to track the operation completion.</desc>
2899 </param>
2900 </method>
2901
2902 <method name="getWarnings">
2903 <desc>Returns textual warnings which occurred during execution of <link to="#interpret" />.</desc>
2904
2905 <param name="warnings" type="wstring" dir="return" safearray="yes">
2906 <desc></desc>
2907 </param>
2908 </method>
2909
2910 </interface>
2911
2912 <enum
2913 name="VirtualSystemDescriptionType"
2914 uuid="303c0900-a746-4612-8c67-79003e91f459"
2915 >
2916 <desc>Used with <link to="IVirtualSystemDescription" /> to describe the type of
2917 a configuration value.</desc>
2918
2919 <const name="Ignore" value="1" />
2920 <const name="OS" value="2" />
2921 <const name="Name" value="3" />
2922 <const name="Product" value="4" />
2923 <const name="Vendor" value="5" />
2924 <const name="Version" value="6" />
2925 <const name="ProductUrl" value="7" />
2926 <const name="VendorUrl" value="8" />
2927 <const name="Description" value="9" />
2928 <const name="License" value="10" />
2929 <const name="Miscellaneous" value="11" />
2930 <const name="CPU" value="12" />
2931 <const name="Memory" value="13" />
2932 <const name="HardDiskControllerIDE" value="14" />
2933 <const name="HardDiskControllerSATA" value="15" />
2934 <const name="HardDiskControllerSCSI" value="16" />
2935 <const name="HardDiskControllerSAS" value="17" />
2936 <const name="HardDiskImage" value="18" />
2937 <const name="Floppy" value="19" />
2938 <const name="CDROM" value="20" />
2939 <const name="NetworkAdapter" value="21" />
2940 <const name="USBController" value="22" />
2941 <const name="SoundCard" value="23" />
2942 <const name="SettingsFile" value="24">
2943 <desc>Not used/implemented right now, will be added later in 4.1.x.</desc>
2944 </const>
2945 </enum>
2946
2947 <enum
2948 name="VirtualSystemDescriptionValueType"
2949 uuid="56d9403f-3425-4118-9919-36f2a9b8c77c"
2950 >
2951 <desc>Used with <link to="IVirtualSystemDescription::getValuesByType" /> to describe the value
2952 type to fetch.</desc>
2953
2954 <const name="Reference" value="1" />
2955 <const name="Original" value="2" />
2956 <const name="Auto" value="3" />
2957 <const name="ExtraConfig" value="4" />
2958
2959 </enum>
2960
2961 <interface
2962 name="IVirtualSystemDescription" extends="$unknown"
2963 uuid="d7525e6c-531a-4c51-8e04-41235083a3d8"
2964 wsmap="managed"
2965 >
2966
2967 <desc>Represents one virtual system (machine) in an appliance. This interface is used in
2968 the <link to="IAppliance::virtualSystemDescriptions" /> array. After
2969 <link to="IAppliance::interpret" /> has been called, that array contains information
2970 about how the virtual systems described in the OVF should best be imported into
2971 VirtualBox virtual machines. See <link to="IAppliance" /> for the steps required to
2972 import an OVF into VirtualBox.
2973 </desc>
2974
2975 <attribute name="count" type="unsigned long" readonly="yes">
2976 <desc>Return the number of virtual system description entries.</desc>
2977 </attribute>
2978
2979 <method name="getDescription">
2980 <desc>Returns information about the virtual system as arrays of instruction items. In each array, the
2981 items with the same indices correspond and jointly represent an import instruction for VirtualBox.
2982
2983 The list below identifies the value sets that are possible depending on the
2984 <link to="VirtualSystemDescriptionType" /> enum value in the array item in @a aTypes[]. In each case,
2985 the array item with the same index in @a OVFValues[] will contain the original value as contained
2986 in the OVF file (just for informational purposes), and the corresponding item in @a aVBoxValues[]
2987 will contain a suggested value to be used for VirtualBox. Depending on the description type,
2988 the @a aExtraConfigValues[] array item may also be used.
2989
2990 <ul>
2991 <li>
2992 "OS": the guest operating system type. There must be exactly one such array item on import. The
2993 corresponding item in @a aVBoxValues[] contains the suggested guest operating system for VirtualBox.
2994 This will be one of the values listed in <link to="IVirtualBox::guestOSTypes" />. The corresponding
2995 item in @a OVFValues[] will contain a numerical value that described the operating system in the OVF.
2996 </li>
2997 <li>
2998 "Name": the name to give to the new virtual machine. There can be at most one such array item;
2999 if none is present on import, then an automatic name will be created from the operating system
3000 type. The corresponding item im @a OVFValues[] will contain the suggested virtual machine name
3001 from the OVF file, and @a aVBoxValues[] will contain a suggestion for a unique VirtualBox
3002 <link to="IMachine" /> name that does not exist yet.
3003 </li>
3004 <li>
3005 "Description": an arbitrary description.
3006 </li>
3007 <li>
3008 "License": the EULA section from the OVF, if present. It is the responsibility of the calling
3009 code to display such a license for agreement; the Main API does not enforce any such policy.
3010 </li>
3011 <li>
3012 Miscellaneous: reserved for future use.
3013 </li>
3014 <li>
3015 "CPU": the number of CPUs. There can be at most one such item, which will presently be ignored.
3016 </li>
3017 <li>
3018 "Memory": the amount of guest RAM, in bytes. There can be at most one such array item; if none
3019 is present on import, then VirtualBox will set a meaningful default based on the operating system
3020 type.
3021 </li>
3022 <li>
3023 "HardDiskControllerIDE": an IDE hard disk controller. There can be at most two such items.
3024 An optional value in @a OVFValues[] and @a aVBoxValues[] can be "PIIX3" or "PIIX4" to specify
3025 the type of IDE controller; this corresponds to the ResourceSubType element which VirtualBox
3026 writes into the OVF.
3027 The matching item in the @a aRefs[] array will contain an integer that items of the "Harddisk"
3028 type can use to specify which hard disk controller a virtual disk should be connected to.
3029 Note that in OVF, an IDE controller has two channels, corresponding to "master" and "slave"
3030 in traditional terminology, whereas the IDE storage controller that VirtualBox supports in
3031 its virtual machines supports four channels (primary master, primary slave, secondary master,
3032 secondary slave) and thus maps to two IDE controllers in the OVF sense.
3033 </li>
3034 <li>
3035 "HardDiskControllerSATA": an SATA hard disk controller. There can be at most one such item. This
3036 has no value in @a OVFValues[] or @a aVBoxValues[].
3037 The matching item in the @a aRefs[] array will be used as with IDE controllers (see above).
3038 </li>
3039 <li>
3040 "HardDiskControllerSCSI": a SCSI hard disk controller. There can be at most one such item.
3041 The items in @a OVFValues[] and @a aVBoxValues[] will either be "LsiLogic", "BusLogic" or
3042 "LsiLogicSas". (Note that in OVF, the LsiLogicSas controller is treated as a SCSI controller
3043 whereas VirtualBox considers it a class of storage controllers of its own; see
3044 <link to="StorageControllerType" />).
3045 The matching item in the @a aRefs[] array will be used as with IDE controllers (see above).
3046 </li>
3047 <li>
3048 "HardDiskImage": a virtual hard disk, most probably as a reference to an image file. There can be an
3049 arbitrary number of these items, one for each virtual disk image that accompanies the OVF.
3050
3051 The array item in @a OVFValues[] will contain the file specification from the OVF file (without
3052 a path since the image file should be in the same location as the OVF file itself), whereas the
3053 item in @a aVBoxValues[] will contain a qualified path specification to where VirtualBox uses the
3054 hard disk image. This means that on import the image will be copied and converted from the
3055 "ovf" location to the "vbox" location; on export, this will be handled the other way round.
3056
3057 The matching item in the @a aExtraConfigValues[] array must contain a string of the following
3058 format: "controller=&lt;index&gt;;channel=&lt;c&gt;"
3059 In this string, &lt;index&gt; must be an integer specifying the hard disk controller to connect
3060 the image to. That number must be the index of an array item with one of the hard disk controller
3061 types (HardDiskControllerSCSI, HardDiskControllerSATA, HardDiskControllerIDE).
3062 In addition, &lt;c&gt; must specify the channel to use on that controller. For IDE controllers,
3063 this can be 0 or 1 for master or slave, respectively. For compatibility with VirtualBox versions
3064 before 3.2, the values 2 and 3 (for secondary master and secondary slave) are also supported, but
3065 no longer exported. For SATA and SCSI controllers, the channel can range from 0-29.
3066 </li>
3067 <li>
3068 "CDROM": a virtual CD-ROM drive. The matching item in @a aExtraConfigValue[] contains the same
3069 attachment information as with "HardDiskImage" items.
3070 </li>
3071 <li>
3072 "CDROM": a virtual floppy drive. The matching item in @a aExtraConfigValue[] contains the same
3073 attachment information as with "HardDiskImage" items.
3074 </li>
3075 <li>
3076 "NetworkAdapter": a network adapter. The array item in @a aVBoxValues[] will specify the hardware
3077 for the network adapter, whereas the array item in @a aExtraConfigValues[] will have a string
3078 of the "type=&lt;X&gt;" format, where &lt;X&gt; must be either "NAT" or "Bridged".
3079 </li>
3080 <li>
3081 "USBController": a USB controller. There can be at most one such item. If and only if such an
3082 item ispresent, USB support will be enabled for the new virtual machine.
3083 </li>
3084 <li>
3085 "SoundCard": a sound card. There can be at most one such item. If and only if such an item is
3086 present, sound support will be enabled for the new virtual machine. Note that the virtual
3087 machine in VirtualBox will always be presented with the standard VirtualBox soundcard, which
3088 may be different from the virtual soundcard expected by the appliance.
3089 </li>
3090 </ul>
3091
3092 </desc>
3093
3094 <param name="types" type="VirtualSystemDescriptionType" dir="out" safearray="yes">
3095 <desc></desc>
3096 </param>
3097
3098 <param name="refs" type="wstring" dir="out" safearray="yes">
3099 <desc></desc>
3100 </param>
3101
3102 <param name="OVFValues" type="wstring" dir="out" safearray="yes">
3103 <desc></desc>
3104 </param>
3105
3106 <param name="VBoxValues" type="wstring" dir="out" safearray="yes">
3107 <desc></desc>
3108 </param>
3109
3110 <param name="extraConfigValues" type="wstring" dir="out" safearray="yes">
3111 <desc></desc>
3112 </param>
3113
3114 </method>
3115
3116 <method name="getDescriptionByType">
3117 <desc>This is the same as <link to="#getDescription" /> except that you can specify which types
3118 should be returned.</desc>
3119
3120 <param name="type" type="VirtualSystemDescriptionType" dir="in">
3121 <desc></desc>
3122 </param>
3123
3124 <param name="types" type="VirtualSystemDescriptionType" dir="out" safearray="yes">
3125 <desc></desc>
3126 </param>
3127
3128 <param name="refs" type="wstring" dir="out" safearray="yes">
3129 <desc></desc>
3130 </param>
3131
3132 <param name="OVFValues" type="wstring" dir="out" safearray="yes">
3133 <desc></desc>
3134 </param>
3135
3136 <param name="VBoxValues" type="wstring" dir="out" safearray="yes">
3137 <desc></desc>
3138 </param>
3139
3140 <param name="extraConfigValues" type="wstring" dir="out" safearray="yes">
3141 <desc></desc>
3142 </param>
3143
3144 </method>
3145
3146 <method name="getValuesByType">
3147 <desc>This is the same as <link to="#getDescriptionByType" /> except that you can specify which
3148 value types should be returned. See <link to="VirtualSystemDescriptionValueType" /> for possible
3149 values.</desc>
3150
3151 <param name="type" type="VirtualSystemDescriptionType" dir="in">
3152 <desc></desc>
3153 </param>
3154
3155 <param name="which" type="VirtualSystemDescriptionValueType" dir="in">
3156 <desc></desc>
3157 </param>
3158
3159 <param name="values" type="wstring" dir="return" safearray="yes">
3160 <desc></desc>
3161 </param>
3162
3163 </method>
3164
3165 <method name="setFinalValues">
3166 <desc>
3167 This method allows the appliance's user to change the configuration for the virtual
3168 system descriptions. For each array item returned from <link to="#getDescription" />,
3169 you must pass in one boolean value and one configuration value.
3170
3171 Each item in the boolean array determines whether the particular configuration item
3172 should be enabled.
3173 You can only disable items of the types HardDiskControllerIDE, HardDiskControllerSATA,
3174 HardDiskControllerSCSI, HardDiskImage, CDROM, Floppy, NetworkAdapter, USBController
3175 and SoundCard.
3176
3177 For the "vbox" and "extra configuration" values, if you pass in the same arrays
3178 as returned in the aVBoxValues and aExtraConfigValues arrays from <link to="#getDescription"/>,
3179 the configuration remains unchanged. Please see the documentation for <link to="#getDescription"/>
3180 for valid configuration values for the individual array item types. If the
3181 corresponding item in the aEnabled array is @c false, the configuration value is ignored.
3182 </desc>
3183
3184 <param name="enabled" type="boolean" dir="in" safearray="yes">
3185 <desc></desc>
3186 </param>
3187
3188 <param name="VBoxValues" type="wstring" dir="in" safearray="yes">
3189 <desc></desc>
3190 </param>
3191
3192 <param name="extraConfigValues" type="wstring" dir="in" safearray="yes">
3193 <desc></desc>
3194 </param>
3195 </method>
3196
3197 <method name="addDescription">
3198 <desc>
3199 This method adds an additional description entry to the stack of already
3200 available descriptions for this virtual system. This is handy for writing
3201 values which aren't directly supported by VirtualBox. One example would
3202 be the License type of <link to="VirtualSystemDescriptionType" />.
3203 </desc>
3204
3205 <param name="type" type="VirtualSystemDescriptionType" dir="in">
3206 <desc></desc>
3207 </param>
3208
3209 <param name="VBoxValue" type="wstring" dir="in">
3210 <desc></desc>
3211 </param>
3212
3213 <param name="extraConfigValue" type="wstring" dir="in">
3214 <desc></desc>
3215 </param>
3216 </method>
3217 </interface>
3218
3219
3220 <!--
3221 // IMachine
3222 /////////////////////////////////////////////////////////////////////////
3223 -->
3224
3225 <interface
3226 name="IInternalMachineControl" extends="$unknown"
3227 uuid="dca36a92-703c-4649-98a4-f40c1ef0c336"
3228 internal="yes"
3229 wsmap="suppress"
3230 >
3231 <method name="setRemoveSavedStateFile">
3232 <desc>
3233 Updates the flag whether the saved state file is removed on a
3234 machine state change from Saved to PoweredOff.
3235 </desc>
3236 <param name="remove" type="boolean" dir="in"/>
3237 </method>
3238
3239 <method name="updateState">
3240 <desc>
3241 Updates the VM state.
3242 <note>
3243 This operation will also update the settings file with the correct
3244 information about the saved state file and delete this file from disk
3245 when appropriate.
3246 </note>
3247 </desc>
3248 <param name="state" type="MachineState" dir="in"/>
3249 </method>
3250
3251 <method name="getIPCId">
3252 <param name="id" type="wstring" dir="return"/>
3253 </method>
3254
3255 <method name="beginPowerUp">
3256 <desc>
3257 Tells VBoxSVC that <link to="IConsole::powerUp"/> is under ways and
3258 gives it the progress object that should be part of any pending
3259 <link to="IMachine::launchVMProcess"/> operations. The progress
3260 object may be called back to reflect an early cancelation, so some care
3261 have to be taken with respect to any cancelation callbacks. The console
3262 object will call <link to="IInternalMachineControl::endPowerUp"/>
3263 to signal the completion of the progress object.
3264 </desc>
3265 <param name="progress" type="IProgress" dir="in" />
3266 </method>
3267
3268 <method name="endPowerUp">
3269 <desc>
3270 Tells VBoxSVC that <link to="IConsole::powerUp"/> has completed.
3271 This method may query status information from the progress object it
3272 received in <link to="IInternalMachineControl::beginPowerUp"/> and copy
3273 it over to any in-progress <link to="IMachine::launchVMProcess"/>
3274 call in order to complete that progress object.
3275 </desc>
3276 <param name="result" type="long" dir="in"/>
3277 </method>
3278
3279 <method name="beginPoweringDown">
3280 <desc>
3281 Called by the VM process to inform the server it wants to
3282 stop the VM execution and power down.
3283 </desc>
3284 <param name="progress" type="IProgress" dir="out">
3285 <desc>
3286 Progress object created by VBoxSVC to wait until
3287 the VM is powered down.
3288 </desc>
3289 </param>
3290 </method>
3291
3292 <method name="endPoweringDown">
3293 <desc>
3294 Called by the VM process to inform the server that powering
3295 down previously requested by #beginPoweringDown is either
3296 successfully finished or there was a failure.
3297
3298 <result name="VBOX_E_FILE_ERROR">
3299 Settings file not accessible.
3300 </result>
3301 <result name="VBOX_E_XML_ERROR">
3302 Could not parse the settings file.
3303 </result>
3304
3305 </desc>
3306
3307 <param name="result" type="long" dir="in">
3308 <desc>@c S_OK to indicate success.
3309 </desc>
3310 </param>
3311 <param name="errMsg" type="wstring" dir="in">
3312 <desc>@c human readable error message in case of failure.
3313 </desc>
3314 </param>
3315 </method>
3316
3317 <method name="runUSBDeviceFilters">
3318 <desc>
3319 Asks the server to run USB devices filters of the associated
3320 machine against the given USB device and tell if there is
3321 a match.
3322 <note>
3323 Intended to be used only for remote USB devices. Local
3324 ones don't require to call this method (this is done
3325 implicitly by the Host and USBProxyService).
3326 </note>
3327 </desc>
3328 <param name="device" type="IUSBDevice" dir="in"/>
3329 <param name="matched" type="boolean" dir="out"/>
3330 <param name="maskedInterfaces" type="unsigned long" dir="out"/>
3331 </method>
3332
3333 <method name="captureUSBDevice">
3334 <desc>
3335 Requests a capture of the given host USB device.
3336 When the request is completed, the VM process will
3337 get a <link to="IInternalSessionControl::onUSBDeviceAttach"/>
3338 notification.
3339 </desc>
3340 <param name="id" type="uuid" mod="string" dir="in"/>
3341 </method>
3342
3343 <method name="detachUSBDevice">
3344 <desc>
3345 Notification that a VM is going to detach (@a done = @c false) or has
3346 already detached (@a done = @c true) the given USB device.
3347 When the @a done = @c true request is completed, the VM process will
3348 get a <link to="IInternalSessionControl::onUSBDeviceDetach"/>
3349 notification.
3350 <note>
3351 In the @a done = @c true case, the server must run its own filters
3352 and filters of all VMs but this one on the detached device
3353 as if it were just attached to the host computer.
3354 </note>
3355 </desc>
3356 <param name="id" type="uuid" mod="string" dir="in"/>
3357 <param name="done" type="boolean" dir="in"/>
3358 </method>
3359
3360 <method name="autoCaptureUSBDevices">
3361 <desc>
3362 Requests a capture all matching USB devices attached to the host.
3363 When the request is completed, the VM process will
3364 get a <link to="IInternalSessionControl::onUSBDeviceAttach"/>
3365 notification per every captured device.
3366 </desc>
3367 </method>
3368
3369 <method name="detachAllUSBDevices">
3370 <desc>
3371 Notification that a VM that is being powered down. The done
3372 parameter indicates whether which stage of the power down
3373 we're at. When @a done = @c false the VM is announcing its
3374 intentions, while when @a done = @c true the VM is reporting
3375 what it has done.
3376 <note>
3377 In the @a done = @c true case, the server must run its own filters
3378 and filters of all VMs but this one on all detach devices as
3379 if they were just attached to the host computer.
3380 </note>
3381 </desc>
3382 <param name="done" type="boolean" dir="in"/>
3383 </method>
3384
3385 <method name="onSessionEnd">
3386 <desc>
3387 Triggered by the given session object when the session is about
3388 to close normally.
3389 </desc>
3390 <param name="session" type="ISession" dir="in">
3391 <desc>Session that is being closed</desc>
3392 </param>
3393 <param name="progress" type="IProgress" dir="return">
3394 <desc>
3395 Used to wait until the corresponding machine is actually
3396 dissociated from the given session on the server.
3397 Returned only when this session is a direct one.
3398 </desc>
3399 </param>
3400 </method>
3401
3402 <method name="beginSavingState">
3403 <desc>
3404 Called by the VM process to inform the server it wants to
3405 save the current state and stop the VM execution.
3406 </desc>
3407 <param name="progress" type="IProgress" dir="out">
3408 <desc>
3409 Progress object created by VBoxSVC to wait until
3410 the state is saved.
3411 </desc>
3412 </param>
3413 <param name="stateFilePath" type="wstring" dir="out">
3414 <desc>
3415 File path the VM process must save the execution state to.
3416 </desc>
3417 </param>
3418 </method>
3419
3420 <method name="endSavingState">
3421 <desc>
3422 Called by the VM process to inform the server that saving
3423 the state previously requested by #beginSavingState is either
3424 successfully finished or there was a failure.
3425
3426 <result name="VBOX_E_FILE_ERROR">
3427 Settings file not accessible.
3428 </result>
3429 <result name="VBOX_E_XML_ERROR">
3430 Could not parse the settings file.
3431 </result>
3432
3433 </desc>
3434
3435 <param name="result" type="long" dir="in">
3436 <desc>@c S_OK to indicate success.
3437 </desc>
3438 </param>
3439 <param name="errMsg" type="wstring" dir="in">
3440 <desc>@c human readable error message in case of failure.
3441 </desc>
3442 </param>
3443 </method>
3444
3445 <method name="adoptSavedState">
3446 <desc>
3447 Gets called by <link to="IConsole::adoptSavedState"/>.
3448 <result name="VBOX_E_FILE_ERROR">
3449 Invalid saved state file path.
3450 </result>
3451 </desc>
3452 <param name="savedStateFile" type="wstring" dir="in">
3453 <desc>Path to the saved state file to adopt.</desc>
3454 </param>
3455 </method>
3456
3457 <method name="beginTakingSnapshot">
3458 <desc>
3459 Called from the VM process to request from the server to perform the
3460 server-side actions of creating a snapshot (creating differencing images
3461 and the snapshot object).
3462
3463 <result name="VBOX_E_FILE_ERROR">
3464 Settings file not accessible.
3465 </result>
3466 <result name="VBOX_E_XML_ERROR">
3467 Could not parse the settings file.
3468 </result>
3469 </desc>
3470 <param name="initiator" type="IConsole" dir="in">
3471 <desc>The console object that initiated this call.</desc>
3472 </param>
3473 <param name="name" type="wstring" dir="in">
3474 <desc>Snapshot name.</desc>
3475 </param>
3476 <param name="description" type="wstring" dir="in">
3477 <desc>Snapshot description.</desc>
3478 </param>
3479 <param name="consoleProgress" type="IProgress" dir="in">
3480 <desc>
3481 Progress object created by the VM process tracking the
3482 snapshot's progress. This has the following sub-operations:
3483 <ul>
3484 <li>setting up (weight 1);</li>
3485 <li>one for each medium attachment that needs a differencing image (weight 1 each);</li>
3486 <li>another one to copy the VM state (if offline with saved state, weight is VM memory size in MB);</li>
3487 <li>another one to save the VM state (if online, weight is VM memory size in MB);</li>
3488 <li>finishing up (weight 1)</li>
3489 </ul>
3490 </desc>
3491 </param>
3492 <param name="fTakingSnapshotOnline" type="boolean" dir="in">
3493 <desc>
3494 Whether this is an online snapshot (i.e. the machine is running).
3495 </desc>
3496 </param>
3497 <param name="stateFilePath" type="wstring" dir="out">
3498 <desc>
3499 File path the VM process must save the execution state to.
3500 </desc>
3501 </param>
3502 </method>
3503
3504 <method name="endTakingSnapshot">
3505 <desc>
3506 Called by the VM process to inform the server that the snapshot
3507 previously requested by #beginTakingSnapshot is either
3508 successfully taken or there was a failure.
3509 </desc>
3510
3511 <param name="success" type="boolean" dir="in">
3512 <desc>@c true to indicate success and @c false otherwise</desc>
3513 </param>
3514 </method>
3515
3516 <method name="deleteSnapshot">
3517 <desc>
3518 Gets called by <link to="IConsole::deleteSnapshot"/>,
3519 <link to="IConsole::deleteSnapshotAndAllChildren"/> and
3520 <link to="IConsole::deleteSnapshotRange"/>.
3521 <result name="VBOX_E_INVALID_OBJECT_STATE">
3522 Snapshot has more than one child snapshot. Only possible if the
3523 delete operation does not delete all children or the range does
3524 not meet the linearity condition.
3525 </result>
3526 </desc>
3527 <param name="initiator" type="IConsole" dir="in">
3528 <desc>The console object that initiated this call.</desc>
3529 </param>
3530 <param name="startId" type="uuid" mod="string" dir="in">
3531 <desc>UUID of the first snapshot to delete.</desc>
3532 </param>
3533 <param name="endId" type="uuid" mod="string" dir="in">
3534 <desc>UUID of the last snapshot to delete.</desc>
3535 </param>
3536 <param name="deleteAllChildren" type="boolean" dir="in">
3537 <desc>Whether all children should be deleted.</desc>
3538 </param>
3539 <param name="machineState" type="MachineState" dir="out">
3540 <desc>New machine state after this operation is started.</desc>
3541 </param>
3542 <param name="progress" type="IProgress" dir="return">
3543 <desc>Progress object to track the operation completion.</desc>
3544 </param>
3545 </method>
3546
3547 <method name="finishOnlineMergeMedium">
3548 <desc>
3549 Gets called by <link to="IInternalSessionControl::onlineMergeMedium"/>.
3550 </desc>
3551 <param name="mediumAttachment" type="IMediumAttachment" dir="in">
3552 <desc>The medium attachment which needs to be cleaned up.</desc>
3553 </param>
3554 <param name="source" type="IMedium" dir="in">
3555 <desc>Merge source medium.</desc>
3556 </param>
3557 <param name="target" type="IMedium" dir="in">
3558 <desc>Merge target medium.</desc>
3559 </param>
3560 <param name="mergeForward" type="boolean" dir="in">
3561 <desc>Merge direction.</desc>
3562 </param>
3563 <param name="parentForTarget" type="IMedium" dir="in">
3564 <desc>For forward merges: new parent for target medium.</desc>
3565 </param>
3566 <param name="childrenToReparent" type="IMedium" safearray="yes" dir="in">
3567 <desc>For backward merges: list of media which need their parent UUID
3568 updated.</desc>
3569 </param>
3570 </method>
3571
3572 <method name="restoreSnapshot">
3573 <desc>
3574 Gets called by <link to="IConsole::restoreSnapshot"/>.
3575 </desc>
3576 <param name="initiator" type="IConsole" dir="in">
3577 <desc>The console object that initiated this call.</desc>
3578 </param>
3579 <param name="snapshot" type="ISnapshot" dir="in">
3580 <desc>The snapshot to restore the VM state from.</desc>
3581 </param>
3582 <param name="machineState" type="MachineState" dir="out">
3583 <desc>New machine state after this operation is started.</desc>
3584 </param>
3585 <param name="progress" type="IProgress" dir="return">
3586 <desc>Progress object to track the operation completion.</desc>
3587 </param>
3588 </method>
3589
3590 <method name="pullGuestProperties">
3591 <desc>
3592 Get the list of the guest properties matching a set of patterns along
3593 with their values, time stamps and flags and give responsibility for
3594 managing properties to the console.
3595 </desc>
3596 <param name="names" type="wstring" dir="out" safearray="yes">
3597 <desc>
3598 The names of the properties returned.
3599 </desc>
3600 </param>
3601 <param name="values" type="wstring" dir="out" safearray="yes">
3602 <desc>
3603 The values of the properties returned. The array entries match the
3604 corresponding entries in the @a name array.
3605 </desc>
3606 </param>
3607 <param name="timestamps" type="long long" dir="out" safearray="yes">
3608 <desc>
3609 The time stamps of the properties returned. The array entries match
3610 the corresponding entries in the @a name array.
3611 </desc>
3612 </param>
3613 <param name="flags" type="wstring" dir="out" safearray="yes">
3614 <desc>
3615 The flags of the properties returned. The array entries match the
3616 corresponding entries in the @a name array.
3617 </desc>
3618 </param>
3619 </method>
3620
3621 <method name="pushGuestProperty">
3622 <desc>
3623 Update a single guest property in IMachine.
3624 </desc>
3625 <param name="name" type="wstring" dir="in">
3626 <desc>
3627 The name of the property to be updated.
3628 </desc>
3629 </param>
3630 <param name="value" type="wstring" dir="in">
3631 <desc>
3632 The value of the property.
3633 </desc>
3634 </param>
3635 <param name="timestamp" type="long long" dir="in">
3636 <desc>
3637 The timestamp of the property.
3638 </desc>
3639 </param>
3640 <param name="flags" type="wstring" dir="in">
3641 <desc>
3642 The flags of the property.
3643 </desc>
3644 </param>
3645 </method>
3646
3647 <method name="lockMedia">
3648 <desc>
3649 Locks all media attached to the machine for writing and parents of
3650 attached differencing media (if any) for reading. This operation is
3651 atomic so that if it fails no media is actually locked.
3652
3653 This method is intended to be called when the machine is in Starting or
3654 Restoring state. The locked media will be automatically unlocked when
3655 the machine is powered off or crashed.
3656 </desc>
3657 </method>
3658 <method name="unlockMedia">
3659 <desc>
3660 Unlocks all media previously locked using
3661 <link to="IInternalMachineControl::lockMedia"/>.
3662
3663 This method is intended to be used with teleportation so that it is
3664 possible to teleport between processes on the same machine.
3665 </desc>
3666 </method>
3667
3668 <method name="ejectMedium">
3669 <desc>
3670 Tells VBoxSVC that the guest has ejected the medium associated with
3671 the medium attachment.
3672 </desc>
3673 <param name="attachment" type="IMediumAttachment" dir="in">
3674 <desc>
3675 The medium attachment where the eject happened.
3676 </desc>
3677 </param>
3678 <param name="newAttachment" type="IMediumAttachment" dir="return">
3679 <desc>
3680 A new reference to the medium attachment, as the config change can
3681 result in the creation of a new instance.
3682 </desc>
3683 </param>
3684 </method>
3685
3686 <method name="reportVmStatistics">
3687 <desc>
3688 Passes statistics collected by VM (including guest statistics) to VBoxSVC.
3689 </desc>
3690 <param name="validStats" type="unsigned long" dir="in">
3691 <desc>
3692 Mask defining which parameters are valid. For example: 0x11 means
3693 that cpuIdle and XXX are valid. Other parameters should be ignored.
3694 </desc>
3695 </param>
3696 <param name="cpuUser" type="unsigned long" dir="in">
3697 <desc>Percentage of processor time spent in user mode as seen by the guest.</desc>
3698 </param>
3699 <param name="cpuKernel" type="unsigned long" dir="in">
3700 <desc>Percentage of processor time spent in kernel mode as seen by the guest.</desc>
3701 </param>
3702 <param name="cpuIdle" type="unsigned long" dir="in">
3703 <desc>Percentage of processor time spent idling as seen by the guest.</desc>
3704 </param>
3705 <param name="memTotal" type="unsigned long" dir="in">
3706 <desc>Total amount of physical guest RAM.</desc>
3707 </param>
3708 <param name="memFree" type="unsigned long" dir="in">
3709 <desc>Free amount of physical guest RAM.</desc>
3710 </param>
3711 <param name="memBalloon" type="unsigned long" dir="in">
3712 <desc>Amount of ballooned physical guest RAM.</desc>
3713 </param>
3714 <param name="memShared" type="unsigned long" dir="in">
3715 <desc>Amount of shared physical guest RAM.</desc>
3716 </param>
3717 <param name="memCache" type="unsigned long" dir="in">
3718 <desc>Total amount of guest (disk) cache memory.</desc>
3719 </param>
3720 <param name="pagedTotal" type="unsigned long" dir="in">
3721 <desc>Total amount of space in the page file.</desc>
3722 </param>
3723 <param name="memAllocTotal" type="unsigned long" dir="in">
3724 <desc>Total amount of memory allocated by the hypervisor.</desc>
3725 </param>
3726 <param name="memFreeTotal" type="unsigned long" dir="in">
3727 <desc>Total amount of free memory available in the hypervisor.</desc>
3728 </param>
3729 <param name="memBalloonTotal" type="unsigned long" dir="in">
3730 <desc>Total amount of memory ballooned by the hypervisor.</desc>
3731 </param>
3732 <param name="memSharedTotal" type="unsigned long" dir="in">
3733 <desc>Total amount of shared memory in the hypervisor.</desc>
3734 </param>
3735 <param name="vmNetRx" type="unsigned long" dir="in">
3736 <desc>Network receive rate for VM.</desc>
3737 </param>
3738 <param name="vmNetTx" type="unsigned long" dir="in">
3739 <desc>Network transmit rate for VM.</desc>
3740 </param>
3741 </method>
3742 </interface>
3743
3744 <interface
3745 name="IBIOSSettings" extends="$unknown"
3746 uuid="38b54279-dc35-4f5e-a431-835b867c6b5e"
3747 wsmap="managed"
3748 >
3749 <desc>
3750 The IBIOSSettings interface represents BIOS settings of the virtual
3751 machine. This is used only in the <link to="IMachine::BIOSSettings" /> attribute.
3752 </desc>
3753 <attribute name="logoFadeIn" type="boolean">
3754 <desc>Fade in flag for BIOS logo animation.</desc>
3755 </attribute>
3756
3757 <attribute name="logoFadeOut" type="boolean">
3758 <desc>Fade out flag for BIOS logo animation.</desc>
3759 </attribute>
3760
3761 <attribute name="logoDisplayTime" type="unsigned long">
3762 <desc>BIOS logo display time in milliseconds (0 = default).</desc>
3763 </attribute>
3764
3765 <attribute name="logoImagePath" type="wstring">
3766 <desc>
3767 Local file system path for external BIOS splash image. Empty string
3768 means the default image is shown on boot.
3769 </desc>
3770 </attribute>
3771
3772 <attribute name="bootMenuMode" type="BIOSBootMenuMode">
3773 <desc>Mode of the BIOS boot device menu.</desc>
3774 </attribute>
3775
3776 <attribute name="ACPIEnabled" type="boolean">
3777 <desc>ACPI support flag.</desc>
3778 </attribute>
3779
3780 <attribute name="IOAPICEnabled" type="boolean">
3781 <desc>
3782 IO APIC support flag. If set, VirtualBox will provide an IO APIC
3783 and support IRQs above 15.
3784 </desc>
3785 </attribute>
3786
3787 <attribute name="timeOffset" type="long long">
3788 <desc>
3789 Offset in milliseconds from the host system time. This allows for
3790 guests running with a different system date/time than the host.
3791 It is equivalent to setting the system date/time in the BIOS except
3792 it is not an absolute value but a relative one. Guest Additions
3793 time synchronization honors this offset.
3794 </desc>
3795 </attribute>
3796
3797 <attribute name="PXEDebugEnabled" type="boolean">
3798 <desc>
3799 PXE debug logging flag. If set, VirtualBox will write extensive
3800 PXE trace information to the release log.
3801 </desc>
3802 </attribute>
3803 </interface>
3804
3805 <interface
3806 name="IPCIAddress" extends="$unknown"
3807 uuid="c984d15f-e191-400b-840e-970f3dad7296"
3808 wsmap="managed"
3809 >
3810
3811 <desc>
3812 Address on the PCI bus.
3813 </desc>
3814
3815 <attribute name="bus" type="short">
3816 <desc>
3817 Bus number.
3818 </desc>
3819 </attribute>
3820
3821 <attribute name="device" type="short">
3822 <desc>
3823 Device number.
3824 </desc>
3825 </attribute>
3826
3827 <attribute name="devFunction" type="short">
3828 <desc>
3829 Device function number.
3830 </desc>
3831 </attribute>
3832
3833 <method name="asLong">
3834 <desc>
3835 Convert PCI address into long.
3836 </desc>
3837 <param name="result" type="long" dir="return" />
3838 </method>
3839
3840 <method name="fromLong">
3841 <desc>
3842 Make PCI address from long.
3843 </desc>
3844 <param name="number" type="long" dir="in" />
3845 </method>
3846 </interface>
3847
3848 <interface
3849 name="IPCIDeviceAttachment" extends="$unknown"
3850 uuid="91f33d6f-e621-4f70-a77e-15f0e3c714d5"
3851 wsmap="struct"
3852 >
3853
3854 <desc>
3855 Information about PCI attachments.
3856 </desc>
3857
3858 <attribute name="name" type="wstring" readonly="yes">
3859 <desc>
3860 Device name.
3861 </desc>
3862 </attribute>
3863
3864 <attribute name="isPhysicalDevice" type="boolean" readonly="yes">
3865 <desc>
3866 If this is physical or virtual device.
3867 </desc>
3868 </attribute>
3869
3870 <attribute name="hostAddress" type="long" readonly="yes">
3871 <desc>
3872 Address of device on the host, applicable only to host devices.
3873 </desc>
3874 </attribute>
3875
3876 <attribute name="guestAddress" type="long" readonly="yes">
3877 <desc>
3878 Address of device on the guest.
3879 </desc>
3880 </attribute>
3881
3882 </interface>
3883
3884 <enum
3885 name="GraphicsControllerType"
3886 uuid="79c96ca0-9f39-4900-948e-68c41cbe127a"
3887 >
3888 <desc>Graphics controller type, used with <link to="IMachine::unregister" />.
3889 </desc>
3890 <const name="Null" value="0">
3891 <desc>Reserved value, invalid.</desc>
3892 </const>
3893 <const name="VBoxVGA" value="1">
3894 <desc>Default VirtualBox VGA device.</desc>
3895 </const>
3896 </enum>
3897
3898 <enum
3899 name="CleanupMode"
3900 uuid="67897c50-7cca-47a9-83f6-ce8fd8eb5441"
3901 >
3902 <desc>Cleanup mode, used with <link to="IMachine::unregister" />.
3903 </desc>
3904 <const name="UnregisterOnly" value="1">
3905 <desc>Unregister only the machine, but neither delete snapshots nor detach media.</desc>
3906 </const>
3907 <const name="DetachAllReturnNone" value="2">
3908 <desc>Delete all snapshots and detach all media but return none; this will keep all media registered.</desc>
3909 </const>
3910 <const name="DetachAllReturnHardDisksOnly" value="3">
3911 <desc>Delete all snapshots, detach all media and return hard disks for closing, but not removable media.</desc>
3912 </const>
3913 <const name="Full" value="4">
3914 <desc>Delete all snapshots, detach all media and return all media for closing.</desc>
3915 </const>
3916 </enum>
3917
3918 <enum
3919 name="CloneMode" extends="$unknown"
3920 uuid="A7A159FE-5096-4B8D-8C3C-D033CB0B35A8"
3921 >
3922
3923 <desc>
3924 Clone mode, used with <link to="IMachine::cloneTo" />.
3925 </desc>
3926
3927 <const name="MachineState" value="1">
3928 <desc>Clone the state of the selected machine.</desc>
3929 </const>
3930 <const name="MachineAndChildStates" value="2">
3931 <desc>Clone the state of the selected machine and its child snapshots if present.</desc>
3932 </const>
3933 <const name="AllStates" value="3">
3934 <desc>Clone all states (including all snapshots) of the machine, regardless of the machine object used.</desc>
3935 </const>
3936
3937 </enum>
3938
3939 <enum
3940 name="CloneOptions" extends="$unknown"
3941 uuid="22243f8e-96ab-497c-8cf0-f40a566c630b"
3942 >
3943
3944 <desc>
3945 Clone options, used with <link to="IMachine::cloneTo" />.
3946 </desc>
3947
3948 <const name="Link" value="1">
3949 <desc>Create a clone VM where all virtual disks are linked to the original VM.</desc>
3950 </const>
3951 <const name="KeepAllMACs" value="2">
3952 <desc>Don't generate new MAC addresses of the attached network adapters.</desc>
3953 </const>
3954 <const name="KeepNATMACs" value="3">
3955 <desc>Don't generate new MAC addresses of the attached network adapters when they are using NAT.</desc>
3956 </const>
3957 <const name="KeepDiskNames" value="4">
3958 <desc>Don't change the disk names.</desc>
3959 </const>
3960
3961 </enum>
3962
3963 <enum
3964 name="AutostopType" extends="$unknown"
3965 uuid="6bb96740-cf34-470d-aab2-2cd48ea2e10e"
3966 >
3967
3968 <desc>
3969 Autostop types, used with <link to="IMachine::autostopType" />.
3970 </desc>
3971
3972 <const name="Disabled" value="1">
3973 <desc>Stopping the VM during system shutdown is disabled.</desc>
3974 </const>
3975 <const name="SaveState" value="2">
3976 <desc>The state of the VM will be saved when the system shuts down.</desc>
3977 </const>
3978 <const name="PowerOff" value="3">
3979 <desc>The VM is powered off when the system shuts down.</desc>
3980 </const>
3981 <const name="AcpiShutdown" value="4">
3982 <desc>An ACPI shutdown event is generated.</desc>
3983 </const>
3984
3985 </enum>
3986
3987
3988 <interface
3989 name="IMachine" extends="$unknown"
3990 uuid="f6258810-a760-11e2-9e96-0800200c9a66"
3991 wsmap="managed"
3992 >
3993 <desc>
3994 The IMachine interface represents a virtual machine, or guest, created
3995 in VirtualBox.
3996
3997 This interface is used in two contexts. First of all, a collection of
3998 objects implementing this interface is stored in the
3999 <link to="IVirtualBox::machines"/> attribute which lists all the virtual
4000 machines that are currently registered with this VirtualBox
4001 installation. Also, once a session has been opened for the given virtual
4002 machine (e.g. the virtual machine is running), the machine object
4003 associated with the open session can be queried from the session object;
4004 see <link to="ISession"/> for details.
4005
4006 The main role of this interface is to expose the settings of the virtual
4007 machine and provide methods to change various aspects of the virtual
4008 machine's configuration. For machine objects stored in the
4009 <link to="IVirtualBox::machines"/> collection, all attributes are
4010 read-only unless explicitly stated otherwise in individual attribute
4011 and method descriptions.
4012
4013 In order to change a machine setting, a session for this machine must be
4014 opened using one of the <link to="IMachine::lockMachine" /> or
4015 <link to="IMachine::launchVMProcess"/> methods. After the
4016 machine has been successfully locked for a session, a mutable machine object
4017 needs to be queried from the session object and then the desired settings
4018 changes can be applied to the returned object using IMachine attributes and
4019 methods. See the <link to="ISession"/> interface description for more
4020 information about sessions.
4021
4022 Note that IMachine does not provide methods to control virtual machine
4023 execution (such as start the machine, or power it down) -- these methods
4024 are grouped in a separate interface called <link to="IConsole" />.
4025
4026 <see><link to="ISession"/>, <link to="IConsole"/></see>
4027 </desc>
4028
4029 <attribute name="parent" type="IVirtualBox" readonly="yes">
4030 <desc>Associated parent object.</desc>
4031 </attribute>
4032
4033 <attribute name="icon" type="octet" safearray="yes">
4034 <desc>Overriden VM Icon details.</desc>
4035 </attribute>
4036
4037 <attribute name="accessible" type="boolean" readonly="yes">
4038 <desc>
4039 Whether this virtual machine is currently accessible or not.
4040
4041 A machine is always deemed accessible unless it is registered <i>and</i>
4042 its settings file cannot be read or parsed (either because the file itself
4043 is unavailable or has invalid XML contents).
4044
4045 Every time this property is read, the accessibility state of
4046 this machine is re-evaluated. If the returned value is @c false,
4047 the <link to="#accessError"/> property may be used to get the
4048 detailed error information describing the reason of
4049 inaccessibility, including XML error messages.
4050
4051 When the machine is inaccessible, only the following properties
4052 can be used on it:
4053 <ul>
4054 <li><link to="#parent"/></li>
4055 <li><link to="#id"/></li>
4056 <li><link to="#settingsFilePath"/></li>
4057 <li><link to="#accessible"/></li>
4058 <li><link to="#accessError"/></li>
4059 </ul>
4060
4061 An attempt to access any other property or method will return
4062 an error.
4063
4064 The only possible action you can perform on an inaccessible
4065 machine is to unregister it using the
4066 <link to="IMachine::unregister"/> call (or, to check
4067 for the accessibility state once more by querying this
4068 property).
4069
4070 <note>
4071 In the current implementation, once this property returns
4072 @c true, the machine will never become inaccessible
4073 later, even if its settings file cannot be successfully
4074 read/written any more (at least, until the VirtualBox
4075 server is restarted). This limitation may be removed in
4076 future releases.
4077 </note>
4078 </desc>
4079 </attribute>
4080
4081 <attribute name="accessError" type="IVirtualBoxErrorInfo" readonly="yes">
4082 <desc>
4083 Error information describing the reason of machine
4084 inaccessibility.
4085
4086 Reading this property is only valid after the last call to
4087 <link to="#accessible"/> returned @c false (i.e. the
4088 machine is currently inaccessible). Otherwise, a @c null
4089 IVirtualBoxErrorInfo object will be returned.
4090 </desc>
4091 </attribute>
4092
4093 <attribute name="name" type="wstring">
4094 <desc>
4095 Name of the virtual machine.
4096
4097 Besides being used for human-readable identification purposes
4098 everywhere in VirtualBox, the virtual machine name is also used
4099 as a name of the machine's settings file and as a name of the
4100 subdirectory this settings file resides in. Thus, every time you
4101 change the value of this property, the settings file will be
4102 renamed once you call <link to="#saveSettings"/> to confirm the
4103 change. The containing subdirectory will be also renamed, but
4104 only if it has exactly the same name as the settings file
4105 itself prior to changing this property (for backward compatibility
4106 with previous API releases). The above implies the following
4107 limitations:
4108 <ul>
4109 <li>The machine name cannot be empty.</li>
4110 <li>The machine name can contain only characters that are valid
4111 file name characters according to the rules of the file
4112 system used to store VirtualBox configuration.</li>
4113 <li>You cannot have two or more machines with the same name
4114 if they use the same subdirectory for storing the machine
4115 settings files.</li>
4116 <li>You cannot change the name of the machine if it is running,
4117 or if any file in the directory containing the settings file
4118 is being used by another running machine or by any other
4119 process in the host operating system at a time when
4120 <link to="#saveSettings"/> is called.
4121 </li>
4122 </ul>
4123 If any of the above limitations are hit, <link to="#saveSettings"/>
4124 will return an appropriate error message explaining the exact
4125 reason and the changes you made to this machine will not be saved.
4126
4127 Starting with VirtualBox 4.0, a ".vbox" extension of the settings
4128 file is recommended, but not enforced. (Previous versions always
4129 used a generic ".xml" extension.)
4130 </desc>
4131 </attribute>
4132
4133 <attribute name="description" type="wstring">
4134 <desc>
4135 Description of the virtual machine.
4136
4137 The description attribute can contain any text and is
4138 typically used to describe the hardware and software
4139 configuration of the virtual machine in detail (i.e. network
4140 settings, versions of the installed software and so on).
4141 </desc>
4142 </attribute>
4143
4144 <attribute name="id" type="uuid" mod="string" readonly="yes">
4145 <desc>UUID of the virtual machine.</desc>
4146 </attribute>
4147
4148 <attribute name="groups" type="wstring" safearray="yes">
4149 <desc>
4150 Array of machine group names of which this machine is a member.
4151 <tt>""</tt> and <tt>"/"</tt> are synonyms for the toplevel group. Each
4152 group is only listed once, however they are listed in no particular
4153 order and there is no guarantee that there are no gaps in the group
4154 hierarchy (i.e. <tt>"/group"</tt>,
4155 <tt>"/group/subgroup/subsubgroup"</tt> is a valid result).
4156 </desc>
4157 </attribute>
4158
4159 <attribute name="OSTypeId" type="wstring">
4160 <desc>
4161 User-defined identifier of the Guest OS type.
4162 You may use <link to="IVirtualBox::getGuestOSType"/> to obtain
4163 an IGuestOSType object representing details about the given
4164 Guest OS type.
4165 <note>
4166 This value may differ from the value returned by
4167 <link to="IGuest::OSTypeId"/> if Guest Additions are
4168 installed to the guest OS.
4169 </note>
4170 </desc>
4171 </attribute>
4172
4173 <attribute name="hardwareVersion" type="wstring">
4174 <desc>Hardware version identifier. Internal use only for now.</desc>
4175 </attribute>
4176
4177 <attribute name="hardwareUUID" type="uuid" mod="string">
4178 <desc>
4179 The UUID presented to the guest via memory tables, hardware and guest
4180 properties. For most VMs this is the same as the @a id, but for VMs
4181 which have been cloned or teleported it may be the same as the source
4182 VM. The latter is because the guest shouldn't notice that it was
4183 cloned or teleported.
4184 </desc>
4185 </attribute>
4186
4187 <attribute name="CPUCount" type="unsigned long">
4188 <desc>Number of virtual CPUs in the VM.</desc>
4189 </attribute>
4190
4191 <attribute name="CPUHotPlugEnabled" type="boolean">
4192 <desc>
4193 This setting determines whether VirtualBox allows CPU
4194 hotplugging for this machine.</desc>
4195 </attribute>
4196
4197 <attribute name="CPUExecutionCap" type="unsigned long">
4198 <desc>
4199 Means to limit the number of CPU cycles a guest can use. The unit
4200 is percentage of host CPU cycles per second. The valid range
4201 is 1 - 100. 100 (the default) implies no limit.
4202 </desc>
4203 </attribute>
4204
4205 <attribute name="memorySize" type="unsigned long">
4206 <desc>System memory size in megabytes.</desc>
4207 </attribute>
4208
4209 <attribute name="memoryBalloonSize" type="unsigned long">
4210 <desc>Memory balloon size in megabytes.</desc>
4211 </attribute>
4212
4213 <attribute name="pageFusionEnabled" type="boolean">
4214 <desc>
4215 This setting determines whether VirtualBox allows page
4216 fusion for this machine (64-bit hosts only).
4217 </desc>
4218 </attribute>
4219
4220 <attribute name="graphicsControllerType" type="GraphicsControllerType">
4221 <desc>Graphics controller type.</desc>
4222 </attribute>
4223
4224 <attribute name="VRAMSize" type="unsigned long">
4225 <desc>Video memory size in megabytes.</desc>
4226 </attribute>
4227
4228 <attribute name="accelerate3DEnabled" type="boolean" default="false">
4229 <desc>
4230 This setting determines whether VirtualBox allows this machine to make
4231 use of the 3D graphics support available on the host.</desc>
4232 </attribute>
4233
4234 <attribute name="accelerate2DVideoEnabled" type="boolean" default="false">
4235 <desc>
4236 This setting determines whether VirtualBox allows this machine to make
4237 use of the 2D video acceleration support available on the host.</desc>
4238 </attribute>
4239
4240 <attribute name="monitorCount" type="unsigned long">
4241 <desc>
4242 Number of virtual monitors.
4243 <note>
4244 Only effective on Windows XP and later guests with
4245 Guest Additions installed.
4246 </note>
4247 </desc>
4248 </attribute>
4249
4250 <attribute name="VideoCaptureEnabled" type="boolean" default="false">
4251 <desc>
4252 This setting determines whether VirtualBox uses video recording to
4253 record VM session.</desc>
4254 </attribute>
4255
4256 <attribute name="VideoCaptureScreens" type="boolean" safearray="yes">
4257 <desc>
4258 This setting determines for which screens video recording is
4259 enabled.</desc>
4260 </attribute>
4261
4262 <attribute name="VideoCaptureFile" type="wstring" default="Test.webm">
4263 <desc>
4264 This setting determines the filename VirtualBox uses to save
4265 the recorded content.</desc>
4266 </attribute>
4267
4268 <attribute name="VideoCaptureWidth" type="unsigned long" default="640">
4269 <desc>
4270 This setting determines the horizontal resolution of the recorded video.</desc>
4271 </attribute>
4272
4273 <attribute name="VideoCaptureHeight" type="unsigned long" default="480">
4274 <desc>
4275 This setting determines the vertical resolution of the recorded video.</desc>
4276 </attribute>
4277
4278 <attribute name="VideoCaptureRate" type="unsigned long" default="512">
4279 <desc>
4280 This setting determines the bitrate in kilobits per second.
4281 Increasing this value makes the video look better for the
4282 cost of an increased file size.
4283 </desc>
4284 </attribute>
4285
4286 <attribute name="VideoCaptureFps" type="unsigned long" default="25">
4287 <desc>
4288 This setting determines the maximum number of frames per second.
4289 Frames with a higher frequency will be skipped. Reducing this
4290 value increses the number of skipped frames but reduces the
4291 file size.
4292 </desc>
4293 </attribute>
4294
4295 <attribute name="BIOSSettings" type="IBIOSSettings" readonly="yes">
4296 <desc>Object containing all BIOS settings.</desc>
4297 </attribute>
4298
4299 <attribute name="firmwareType" type="FirmwareType">
4300 <desc>Type of firmware (such as legacy BIOS or EFI), used for initial
4301 bootstrap in this VM.</desc>
4302 </attribute>
4303
4304 <attribute name="pointingHIDType" type="PointingHIDType">
4305 <desc>Type of pointing HID (such as mouse or tablet) used in this VM.
4306 The default is typically "PS2Mouse" but can vary depending on the
4307 requirements of the guest operating system.</desc>
4308 </attribute>
4309
4310 <attribute name="keyboardHIDType" type="KeyboardHIDType">
4311 <desc>Type of keyboard HID used in this VM.
4312 The default is typically "PS2Keyboard" but can vary depending on the
4313 requirements of the guest operating system.</desc>
4314 </attribute>
4315
4316 <attribute name="HPETEnabled" type="boolean">
4317 <desc>This attribute controls if High Precision Event Timer (HPET) is
4318 enabled in this VM. Use this property if you want to provide guests
4319 with additional time source, or if guest requires HPET to function correctly.
4320 Default is false.</desc>
4321 </attribute>
4322
4323 <attribute name="chipsetType" type="ChipsetType">
4324 <desc>Chipset type used in this VM.</desc>
4325 </attribute>
4326
4327 <attribute name="snapshotFolder" type="wstring">
4328 <desc>
4329 Full path to the directory used to store snapshot data
4330 (differencing media and saved state files) of this machine.
4331
4332 The initial value of this property is
4333 <tt>&lt;</tt><link to="#settingsFilePath">
4334 path_to_settings_file</link><tt>&gt;/&lt;</tt>
4335 <link to="#id">machine_uuid</link>
4336 <tt>&gt;</tt>.
4337
4338 Currently, it is an error to try to change this property on
4339 a machine that has snapshots (because this would require to
4340 move possibly large files to a different location).
4341 A separate method will be available for this purpose later.
4342
4343 <note>
4344 Setting this property to @c null or to an empty string will restore
4345 the initial value.
4346 </note>
4347 <note>
4348 When setting this property, the specified path can be
4349 absolute (full path) or relative to the directory where the
4350 <link to="#settingsFilePath">machine settings file</link>
4351 is located. When reading this property, a full path is
4352 always returned.
4353 </note>
4354 <note>
4355 The specified path may not exist, it will be created
4356 when necessary.
4357 </note>
4358 </desc>
4359 </attribute>
4360
4361 <attribute name="VRDEServer" type="IVRDEServer" readonly="yes">
4362 <desc>VirtualBox Remote Desktop Extension (VRDE) server object.</desc>
4363 </attribute>
4364
4365 <attribute name="emulatedUSBWebcameraEnabled" type="boolean" default="false"/>
4366 <attribute name="emulatedUSBCardReaderEnabled" type="boolean" default="false"/>
4367
4368 <attribute name="mediumAttachments" type="IMediumAttachment" readonly="yes" safearray="yes">
4369 <desc>Array of media attached to this machine.</desc>
4370 </attribute>
4371
4372 <attribute name="USBController" type="IUSBController" readonly="yes">
4373 <desc>
4374 Associated USB controller object.
4375
4376 <note>
4377 If USB functionality is not available in the given edition of
4378 VirtualBox, this method will set the result code to @c E_NOTIMPL.
4379 </note>
4380 </desc>
4381 </attribute>
4382
4383 <attribute name="audioAdapter" type="IAudioAdapter" readonly="yes">
4384 <desc>Associated audio adapter, always present.</desc>
4385 </attribute>
4386
4387 <attribute name="storageControllers" type="IStorageController" readonly="yes" safearray="yes">
4388 <desc>Array of storage controllers attached to this machine.</desc>
4389 </attribute>
4390
4391 <attribute name="settingsFilePath" type="wstring" readonly="yes">
4392 <desc>
4393 Full name of the file containing machine settings data.
4394 </desc>
4395 </attribute>
4396
4397 <attribute name="settingsModified" type="boolean" readonly="yes">
4398 <desc>
4399 Whether the settings of this machine have been modified
4400 (but neither yet saved nor discarded).
4401 <note>
4402 Reading this property is only valid on instances returned
4403 by <link to="ISession::machine"/> and on new machines
4404 created by <link to="IVirtualBox::createMachine"/> or opened
4405 by <link to="IVirtualBox::openMachine"/> but not
4406 yet registered, or on unregistered machines after calling
4407 <link to="IMachine::unregister"/>. For all other
4408 cases, the settings can never be modified.
4409 </note>
4410 <note>
4411 For newly created unregistered machines, the value of this
4412 property is always @c true until <link to="#saveSettings"/>
4413 is called (no matter if any machine settings have been
4414 changed after the creation or not). For opened machines
4415 the value is set to @c false (and then follows to normal rules).
4416 </note>
4417 </desc>
4418 </attribute>
4419
4420 <attribute name="sessionState" type="SessionState" readonly="yes">
4421 <desc>Current session state for this machine.</desc>
4422 </attribute>
4423
4424 <attribute name="sessionType" type="wstring" readonly="yes">
4425 <desc>
4426 Type of the session. If <link to="#sessionState"/> is
4427 Spawning or Locked, this attribute contains the
4428 same value as passed to the
4429 <link to="IMachine::launchVMProcess"/> method in the
4430 @a type parameter. If the session was used with
4431 <link to="IMachine::lockMachine" />, or if
4432 <link to="#sessionState"/> is SessionClosed, the value of this
4433 attribute is an empty string.
4434 </desc>
4435 </attribute>
4436
4437 <attribute name="sessionPID" type="unsigned long" readonly="yes">
4438 <desc>
4439 Identifier of the session process. This attribute contains the
4440 platform-dependent identifier of the process whose session was
4441 used with <link to="IMachine::lockMachine" /> call. The returned
4442 value is only valid if <link to="#sessionState"/> is Locked or
4443 Unlocking by the time this property is read.
4444 </desc>
4445 </attribute>
4446
4447 <attribute name="state" type="MachineState" readonly="yes">
4448 <desc>Current execution state of this machine.</desc>
4449 </attribute>
4450
4451 <attribute name="lastStateChange" type="long long" readonly="yes">
4452 <desc>
4453 Time stamp of the last execution state change,
4454 in milliseconds since 1970-01-01 UTC.
4455 </desc>
4456 </attribute>
4457
4458 <attribute name="stateFilePath" type="wstring" readonly="yes">
4459 <desc>
4460 Full path to the file that stores the execution state of
4461 the machine when it is in the <link to="MachineState_Saved"/> state.
4462 <note>
4463 When the machine is not in the Saved state, this attribute is
4464 an empty string.
4465 </note>
4466 </desc>
4467 </attribute>
4468
4469 <attribute name="logFolder" type="wstring" readonly="yes">
4470 <desc>
4471 Full path to the folder that stores a set of rotated log files
4472 recorded during machine execution. The most recent log file is
4473 named <tt>VBox.log</tt>, the previous log file is
4474 named <tt>VBox.log.1</tt> and so on (up to <tt>VBox.log.3</tt>
4475 in the current version).
4476 </desc>
4477 </attribute>
4478
4479 <attribute name="currentSnapshot" type="ISnapshot" readonly="yes">
4480 <desc>
4481 Current snapshot of this machine. This is @c null if the machine
4482 currently has no snapshots. If it is not @c null, then it was
4483 set by one of <link to="IConsole::takeSnapshot" />,
4484 <link to="IConsole::deleteSnapshot" />
4485 or <link to="IConsole::restoreSnapshot" />, depending on which
4486 was called last. See <link to="ISnapshot"/> for details.
4487 </desc>
4488 </attribute>
4489
4490 <attribute name="snapshotCount" type="unsigned long" readonly="yes">
4491 <desc>
4492 Number of snapshots taken on this machine. Zero means the
4493 machine doesn't have any snapshots.
4494 </desc>
4495 </attribute>
4496
4497 <attribute name="currentStateModified" type="boolean" readonly="yes">
4498 <desc>
4499 Returns @c true if the current state of the machine is not
4500 identical to the state stored in the current snapshot.
4501
4502 The current state is identical to the current snapshot only
4503 directly after one of the following calls are made:
4504
4505 <ul>
4506 <li><link to="IConsole::restoreSnapshot"/>
4507 </li>
4508 <li><link to="IConsole::takeSnapshot"/> (issued on a
4509 "powered off" or "saved" machine, for which
4510 <link to="#settingsModified"/> returns @c false)
4511 </li>
4512 </ul>
4513
4514 The current state remains identical until one of the following
4515 happens:
4516 <ul>
4517 <li>settings of the machine are changed</li>
4518 <li>the saved state is deleted</li>
4519 <li>the current snapshot is deleted</li>
4520 <li>an attempt to execute the machine is made</li>
4521 </ul>
4522
4523 <note>
4524 For machines that don't have snapshots, this property is
4525 always @c false.
4526 </note>
4527 </desc>
4528 </attribute>
4529
4530 <attribute name="sharedFolders" type="ISharedFolder" readonly="yes" safearray="yes">
4531 <desc>
4532 Collection of shared folders for this machine (permanent shared
4533 folders). These folders are shared automatically at machine startup
4534 and available only to the guest OS installed within this machine.
4535
4536 New shared folders are added to the collection using
4537 <link to="#createSharedFolder"/>. Existing shared folders can be
4538 removed using <link to="#removeSharedFolder"/>.
4539 </desc>
4540 </attribute>
4541
4542 <attribute name="clipboardMode" type="ClipboardMode">
4543 <desc>
4544 Synchronization mode between the host OS clipboard
4545 and the guest OS clipboard.
4546 </desc>
4547 </attribute>
4548
4549 <attribute name="dragAndDropMode" type="DragAndDropMode">
4550 <desc>
4551 Which mode is allowed for drag'n'drop.
4552 </desc>
4553 </attribute>
4554
4555 <attribute name="guestPropertyNotificationPatterns" type="wstring">
4556 <desc>
4557 A comma-separated list of simple glob patterns. Changes to guest
4558 properties whose name matches one of the patterns will generate an
4559 <link to="IGuestPropertyChangedEvent"/> signal.
4560 </desc>
4561 </attribute>
4562
4563 <attribute name="teleporterEnabled" type="boolean">
4564 <desc>
4565 When set to @a true, the virtual machine becomes a target teleporter
4566 the next time it is powered on. This can only set to @a true when the
4567 VM is in the @a PoweredOff or @a Aborted state.
4568
4569 <!-- This property is automatically set to @a false when the VM is powered
4570 on. (bird: This doesn't work yet ) -->
4571 </desc>
4572 </attribute>
4573
4574 <attribute name="teleporterPort" type="unsigned long">
4575 <desc>
4576 The TCP port the target teleporter will listen for incoming
4577 teleportations on.
4578
4579 0 means the port is automatically selected upon power on. The actual
4580 value can be read from this property while the machine is waiting for
4581 incoming teleportations.
4582 </desc>
4583 </attribute>
4584
4585 <attribute name="teleporterAddress" type="wstring">
4586 <desc>
4587 The address the target teleporter will listen on. If set to an empty
4588 string, it will listen on all addresses.
4589 </desc>
4590 </attribute>
4591
4592 <attribute name="teleporterPassword" type="wstring">
4593 <desc>
4594 The password to check for on the target teleporter. This is just a
4595 very basic measure to prevent simple hacks and operators accidentally
4596 beaming a virtual machine to the wrong place.
4597
4598 Note that you SET a plain text password while reading back a HASHED
4599 password. Setting a hashed password is currently not supported.
4600 </desc>
4601 </attribute>
4602
4603 <attribute name="faultToleranceState" type="FaultToleranceState">
4604 <desc>
4605 Fault tolerance state; disabled, source or target.
4606 This property can be changed at any time. If you change it for a running
4607 VM, then the fault tolerance address and port must be set beforehand.
4608 </desc>
4609 </attribute>
4610
4611 <attribute name="faultTolerancePort" type="unsigned long">
4612 <desc>
4613 The TCP port the fault tolerance source or target will use for
4614 communication.
4615 </desc>
4616 </attribute>
4617
4618 <attribute name="faultToleranceAddress" type="wstring">
4619 <desc>
4620 The address the fault tolerance source or target.
4621 </desc>
4622 </attribute>
4623
4624 <attribute name="faultTolerancePassword" type="wstring">
4625 <desc>
4626 The password to check for on the standby VM. This is just a
4627 very basic measure to prevent simple hacks and operators accidentally
4628 choosing the wrong standby VM.
4629 </desc>
4630 </attribute>
4631
4632 <attribute name="faultToleranceSyncInterval" type="unsigned long">
4633 <desc>
4634 The interval in ms used for syncing the state between source and target.
4635 </desc>
4636 </attribute>
4637
4638 <attribute name="RTCUseUTC" type="boolean">
4639 <desc>
4640 When set to @a true, the RTC device of the virtual machine will run
4641 in UTC time, otherwise in local time. Especially Unix guests prefer
4642 the time in UTC.
4643 </desc>
4644 </attribute>
4645
4646 <attribute name="IOCacheEnabled" type="boolean">
4647 <desc>
4648 When set to @a true, the builtin I/O cache of the virtual machine
4649 will be enabled.
4650 </desc>
4651 </attribute>
4652
4653 <attribute name="IOCacheSize" type="unsigned long">
4654 <desc>
4655 Maximum size of the I/O cache in MB.
4656 </desc>
4657 </attribute>
4658
4659 <attribute name="PCIDeviceAssignments" type="IPCIDeviceAttachment" readonly="yes" safearray="yes">
4660 <desc>Array of PCI devices assigned to this machine, to get list of all
4661 PCI devices attached to the machine use
4662 <link to="IConsole::attachedPCIDevices"/> attribute, as this attribute
4663 is intended to list only devices additional to what described in
4664 virtual hardware config. Usually, this list keeps host's physical
4665 devices assigned to the particular machine.
4666 </desc>
4667 </attribute>
4668
4669 <attribute name="bandwidthControl" type="IBandwidthControl" readonly="yes">
4670 <desc>
4671 Bandwidth control manager.
4672 </desc>
4673 </attribute>
4674
4675 <attribute name="tracingEnabled" type="boolean">
4676 <desc>
4677 Enables the tracing facility in the VMM (including PDM devices +
4678 drivers). The VMM will consume about 0.5MB of more memory when
4679 enabled and there may be some extra overhead from tracepoints that are
4680 always enabled.
4681 </desc>
4682 </attribute>
4683
4684 <attribute name="tracingConfig" type="wstring">
4685 <desc>
4686 Tracepoint configuration to apply at startup when
4687 <link to="IMachine::tracingEnabled" /> is true. The string specifies
4688 a space separated of tracepoint group names to enable. The special
4689 group 'all' enables all tracepoints. Check DBGFR3TracingConfig for
4690 more details on available tracepoint groups and such.
4691
4692 Note that on hosts supporting DTrace (or similar), a lot of the
4693 tracepoints may be implemented exclusivly as DTrace probes. So, the
4694 effect of the same config may differ between Solaris and Windows for
4695 example.
4696 </desc>
4697 </attribute>
4698
4699 <attribute name="allowTracingToAccessVM" type="boolean">
4700 <desc>
4701 Enables tracepoints in PDM devices and drivers to use the VMCPU or VM
4702 structures when firing off trace points. This is especially useful
4703 with DTrace tracepoints, as it allows you to use the VMCPU or VM
4704 pointer to obtain useful information such as guest register state.
4705
4706 This is disabled by default because devices and drivers normally has no
4707 business accessing the VMCPU or VM structures, and are therefore unable
4708 to get any pointers to these.
4709 </desc>
4710 </attribute>
4711
4712 <attribute name="autostartEnabled" type="boolean">
4713 <desc>
4714 Enables autostart of the VM during system boot.
4715 </desc>
4716 </attribute>
4717
4718 <attribute name="autostartDelay" type="unsigned long">
4719 <desc>
4720 Number of seconds to wait until the VM should be started during system boot.
4721 </desc>
4722 </attribute>
4723
4724 <attribute name="autostopType" type="AutostopType">
4725 <desc>
4726 Action type to do when the system is shutting down.
4727 </desc>
4728 </attribute>
4729
4730 <attribute name="defaultFrontend" type="wstring">
4731 <desc>
4732 Selects which VM frontend should be used by default when launching
4733 this VM through the <link to="IMachine::launchVMProcess" /> method.
4734 Empty or @c null strings do not define a particular default, it is up
4735 to <link to="IMachine::launchVMProcess" /> to select one. See the
4736 description of <link to="IMachine::launchVMProcess" /> for the valid
4737 frontend types.
4738
4739 This per-VM setting overrides the default defined by
4740 <link to="ISystemProperties::defaultFrontend" /> attribute, and is
4741 overridden by a frontend type passed to
4742 <link to="IMachine::launchVMProcess" />.
4743 </desc>
4744 </attribute>
4745
4746 <method name="lockMachine">
4747 <desc>
4748 Locks the machine for the given session to enable the caller
4749 to make changes to the machine or start the VM or control
4750 VM execution.
4751
4752 There are two ways to lock a machine for such uses:
4753
4754 <ul>
4755 <li>If you want to make changes to the machine settings,
4756 you must obtain an exclusive write lock on the machine
4757 by setting @a lockType to @c Write.
4758
4759 This will only succeed if no other process has locked
4760 the machine to prevent conflicting changes. Only after
4761 an exclusive write lock has been obtained using this method, one
4762 can change all VM settings or execute the VM in the process
4763 space of the session object. (Note that the latter is only of
4764 interest if you actually want to write a new front-end for
4765 virtual machines; but this API gets called internally by
4766 the existing front-ends such as VBoxHeadless and the VirtualBox
4767 GUI to acquire a write lock on the machine that they are running.)
4768
4769 On success, write-locking the machine for a session creates
4770 a second copy of the IMachine object. It is this second object
4771 upon which changes can be made; in VirtualBox terminology, the
4772 second copy is "mutable". It is only this second, mutable machine
4773 object upon which you can call methods that change the
4774 machine state. After having called this method, you can
4775 obtain this second, mutable machine object using the
4776 <link to="ISession::machine" /> attribute.
4777 </li>
4778 <li>If you only want to check the machine state or control
4779 machine execution without actually changing machine
4780 settings (e.g. to get access to VM statistics or take
4781 a snapshot or save the machine state), then set the
4782 @a lockType argument to @c Shared.
4783
4784 If no other session has obtained a lock, you will obtain an
4785 exclusive write lock as described above. However, if another
4786 session has already obtained such a lock, then a link to that
4787 existing session will be established which allows you
4788 to control that existing session.
4789
4790 To find out which type of lock was obtained, you can
4791 inspect <link to="ISession::type" />, which will have been
4792 set to either @c WriteLock or @c Shared.
4793 </li>
4794 </ul>
4795
4796 In either case, you can get access to the <link to="IConsole" />
4797 object which controls VM execution.
4798
4799 Also in all of the above cases, one must always call
4800 <link to="ISession::unlockMachine" /> to release the lock on the machine, or
4801 the machine's state will eventually be set to "Aborted".
4802
4803 To change settings on a machine, the following sequence is typically
4804 performed:
4805
4806 <ol>
4807 <li>Call this method to obtain an exclusive write lock for the current session.</li>
4808
4809 <li>Obtain a mutable IMachine object from <link to="ISession::machine" />.</li>
4810
4811 <li>Change the settings of the machine by invoking IMachine methods.</li>
4812
4813 <li>Call <link to="IMachine::saveSettings" />.</li>
4814
4815 <li>Release the write lock by calling <link to="ISession::unlockMachine"/>.</li>
4816 </ol>
4817
4818 <result name="E_UNEXPECTED">
4819 Virtual machine not registered.
4820 </result>
4821 <result name="E_ACCESSDENIED">
4822 Process not started by OpenRemoteSession.
4823 </result>
4824 <result name="VBOX_E_INVALID_OBJECT_STATE">
4825 Session already open or being opened.
4826 </result>
4827 <result name="VBOX_E_VM_ERROR">
4828 Failed to assign machine to session.
4829 </result>
4830 </desc>
4831 <param name="session" type="ISession" dir="in">
4832 <desc>
4833 Session object for which the machine will be locked.
4834 </desc>
4835 </param>
4836 <param name="lockType" type="LockType" dir="in">
4837 <desc>
4838 If set to @c Write, then attempt to acquire an exclusive write lock or fail.
4839 If set to @c Shared, then either acquire an exclusive write lock or establish
4840 a link to an existing session.
4841 </desc>
4842 </param>
4843 </method>
4844
4845 <method name="launchVMProcess">
4846 <desc>
4847 Spawns a new process that will execute the virtual machine and obtains a shared
4848 lock on the machine for the calling session.
4849
4850 If launching the VM succeeds, the new VM process will create its own session
4851 and write-lock the machine for it, preventing conflicting changes from other
4852 processes. If the machine is already locked (because it is already running or
4853 because another session has a write lock), launching the VM process will therefore
4854 fail. Reversely, future attempts to obtain a write lock will also fail while the
4855 machine is running.
4856
4857 The caller's session object remains separate from the session opened by the new
4858 VM process. It receives its own <link to="IConsole" /> object which can be used
4859 to control machine execution, but it cannot be used to change all VM settings
4860 which would be available after a <link to="#lockMachine" /> call.
4861
4862 The caller must eventually release the session's shared lock by calling
4863 <link to="ISession::unlockMachine" /> on the local session object once this call
4864 has returned. However, the session's state (see <link to="ISession::state" />)
4865 will not return to "Unlocked" until the remote session has also unlocked
4866 the machine (i.e. the machine has stopped running).
4867
4868 Launching a VM process can take some time (a new VM is started in a new process,
4869 for which memory and other resources need to be set up). Because of this,
4870 an <link to="IProgress" /> object is returned to allow the caller to wait
4871 for this asynchronous operation to be completed. Until then, the caller's
4872 session object remains in the "Unlocked" state, and its <link to="ISession::machine" />
4873 and <link to="ISession::console" /> attributes cannot be accessed.
4874 It is recommended to use <link to="IProgress::waitForCompletion" /> or
4875 similar calls to wait for completion. Completion is signalled when the VM
4876 is powered on. If launching the VM fails, error messages can be queried
4877 via the progress object, if available.
4878
4879 The progress object will have at least 2 sub-operations. The first
4880 operation covers the period up to the new VM process calls powerUp.
4881 The subsequent operations mirror the <link to="IConsole::powerUp"/>
4882 progress object. Because <link to="IConsole::powerUp"/> may require
4883 some extra sub-operations, the <link to="IProgress::operationCount"/>
4884 may change at the completion of operation.
4885
4886 For details on the teleportation progress operation, see
4887 <link to="IConsole::powerUp"/>.
4888
4889 The @a environment argument is a string containing definitions of
4890 environment variables in the following format:
4891 <pre>
4892 NAME[=VALUE]\n
4893 NAME[=VALUE]\n
4894 ...
4895 </pre>
4896 where <tt>\\n</tt> is the new line character. These environment
4897 variables will be appended to the environment of the VirtualBox server
4898 process. If an environment variable exists both in the server process
4899 and in this list, the value from this list takes precedence over the
4900 server's variable. If the value of the environment variable is
4901 omitted, this variable will be removed from the resulting environment.
4902 If the environment string is @c null or empty, the server environment
4903 is inherited by the started process as is.
4904
4905 <result name="E_UNEXPECTED">
4906 Virtual machine not registered.
4907 </result>
4908 <result name="E_INVALIDARG">
4909 Invalid session type @a type.
4910 </result>
4911 <result name="VBOX_E_OBJECT_NOT_FOUND">
4912 No machine matching @a machineId found.
4913 </result>
4914 <result name="VBOX_E_INVALID_OBJECT_STATE">
4915 Session already open or being opened.
4916 </result>
4917 <result name="VBOX_E_IPRT_ERROR">
4918 Launching process for machine failed.
4919 </result>
4920 <result name="VBOX_E_VM_ERROR">
4921 Failed to assign machine to session.
4922 </result>
4923 </desc>
4924 <param name="session" type="ISession" dir="in">
4925 <desc>
4926 Client session object to which the VM process will be connected (this
4927 must be in "Unlocked" state).
4928 </desc>
4929 </param>
4930 <param name="type" type="wstring" dir="in">
4931 <desc>
4932 Front-end to use for the new VM process. The following are currently supported:
4933 <ul>
4934 <li><tt>"gui"</tt>: VirtualBox Qt GUI front-end</li>
4935 <li><tt>"headless"</tt>: VBoxHeadless (VRDE Server) front-end</li>
4936 <li><tt>"sdl"</tt>: VirtualBox SDL front-end</li>
4937 <li><tt>"emergencystop"</tt>: reserved value, used for aborting
4938 the currently running VM or session owner. In this case the
4939 @a session parameter may be @c null (if it is non-null it isn't
4940 used in any way), and the @a progress return value will be always
4941 @c null. The operation completes immediately.</li>
4942 <li><tt>""</tt>: use the per-VM default frontend if set, otherwise
4943 the global default defined in the system properties. If neither
4944 are set, the API will launch a <tt>"gui"</tt> session, which may
4945 fail if there is no windowing environment available. See
4946 <link to="IMachine::defaultFrontend"/> and
4947 <link to="ISystemProperties::defaultFrontend"/>.</li>
4948 </ul>
4949 </desc>
4950 </param>
4951 <param name="environment" type="wstring" dir="in">
4952 <desc>
4953 Environment to pass to the VM process.
4954 </desc>
4955 </param>
4956 <param name="progress" type="IProgress" dir="return">
4957 <desc>Progress object to track the operation completion.</desc>
4958 </param>
4959 </method>
4960
4961 <method name="setBootOrder">
4962 <desc>
4963 Puts the given device to the specified position in
4964 the boot order.
4965
4966 To indicate that no device is associated with the given position,
4967 <link to="DeviceType_Null"/> should be used.
4968
4969 @todo setHardDiskBootOrder(), setNetworkBootOrder()
4970
4971 <result name="E_INVALIDARG">
4972 Boot @a position out of range.
4973 </result>
4974 <result name="E_NOTIMPL">
4975 Booting from USB @a device currently not supported.
4976 </result>
4977
4978 </desc>
4979 <param name="position" type="unsigned long" dir="in">
4980 <desc>
4981 Position in the boot order (@c 1 to the total number of
4982 devices the machine can boot from, as returned by
4983 <link to="ISystemProperties::maxBootPosition"/>).
4984 </desc>
4985 </param>
4986 <param name="device" type="DeviceType" dir="in">
4987 <desc>
4988 The type of the device used to boot at the given position.
4989 </desc>
4990 </param>
4991 </method>
4992
4993 <method name="getBootOrder" const="yes">
4994 <desc>
4995 Returns the device type that occupies the specified
4996 position in the boot order.
4997
4998 @todo [remove?]
4999 If the machine can have more than one device of the returned type
5000 (such as hard disks), then a separate method should be used to
5001 retrieve the individual device that occupies the given position.
5002
5003 If here are no devices at the given position, then
5004 <link to="DeviceType_Null"/> is returned.
5005
5006 @todo getHardDiskBootOrder(), getNetworkBootOrder()
5007
5008 <result name="E_INVALIDARG">
5009 Boot @a position out of range.
5010 </result>
5011
5012 </desc>
5013 <param name="position" type="unsigned long" dir="in">
5014 <desc>
5015 Position in the boot order (@c 1 to the total number of
5016 devices the machine can boot from, as returned by
5017 <link to="ISystemProperties::maxBootPosition"/>).
5018 </desc>
5019 </param>
5020 <param name="device" type="DeviceType" dir="return">
5021 <desc>
5022 Device at the given position.
5023 </desc>
5024 </param>
5025 </method>
5026
5027 <method name="attachDevice">
5028 <desc>
5029 Attaches a device and optionally mounts a medium to the given storage
5030 controller (<link to="IStorageController" />, identified by @a name),
5031 at the indicated port and device.
5032
5033 This method is intended for managing storage devices in general while a
5034 machine is powered off. It can be used to attach and detach fixed
5035 and removable media. The following kind of media can be attached
5036 to a machine:
5037
5038 <ul>
5039 <li>For fixed and removable media, you can pass in a medium that was
5040 previously opened using <link to="IVirtualBox::openMedium" />.
5041 </li>
5042
5043 <li>Only for storage devices supporting removable media (such as
5044 DVDs and floppies), you can also specify a null pointer to
5045 indicate an empty drive or one of the medium objects listed
5046 in the <link to="IHost::DVDDrives" /> and <link to="IHost::floppyDrives"/>
5047 arrays to indicate a host drive.
5048 For removable devices, you can also use <link to="IMachine::mountMedium"/>
5049 to change the media while the machine is running.
5050 </li>
5051 </ul>
5052
5053 In a VM's default configuration of virtual machines, the secondary
5054 master of the IDE controller is used for a CD/DVD drive.
5055
5056 After calling this returns successfully, a new instance of
5057 <link to="IMediumAttachment"/> will appear in the machine's list of medium
5058 attachments (see <link to="IMachine::mediumAttachments"/>).
5059
5060 See <link to="IMedium"/> and <link to="IMediumAttachment"/> for more
5061 information about attaching media.
5062
5063 The specified device slot must not have a device attached to it,
5064 or this method will fail.
5065
5066 <note>
5067 You cannot attach a device to a newly created machine until
5068 this machine's settings are saved to disk using
5069 <link to="#saveSettings"/>.
5070 </note>
5071 <note>
5072 If the medium is being attached indirectly, a new differencing medium
5073 will implicitly be created for it and attached instead. If the
5074 changes made to the machine settings (including this indirect
5075 attachment) are later cancelled using <link to="#discardSettings"/>,
5076 this implicitly created differencing medium will implicitly
5077 be deleted.
5078 </note>
5079
5080 <result name="E_INVALIDARG">
5081 SATA device, SATA port, IDE port or IDE slot out of range, or
5082 file or UUID not found.
5083 </result>
5084 <result name="VBOX_E_INVALID_OBJECT_STATE">
5085 Machine must be registered before media can be attached.
5086 </result>
5087 <result name="VBOX_E_INVALID_VM_STATE">
5088 Invalid machine state.
5089 </result>
5090 <result name="VBOX_E_OBJECT_IN_USE">
5091 A medium is already attached to this or another virtual machine.
5092 </result>
5093
5094 </desc>
5095 <param name="name" type="wstring" dir="in">
5096 <desc>Name of the storage controller to attach the device to.</desc>
5097 </param>
5098 <param name="controllerPort" type="long" dir="in">
5099 <desc>Port to attach the device to. For an IDE controller, 0 specifies
5100 the primary controller and 1 specifies the secondary controller.
5101 For a SCSI controller, this must range from 0 to 15; for a SATA controller,
5102 from 0 to 29; for an SAS controller, from 0 to 7.</desc>
5103 </param>
5104 <param name="device" type="long" dir="in">
5105 <desc>Device slot in the given port to attach the device to. This is only
5106 relevant for IDE controllers, for which 0 specifies the master device and
5107 1 specifies the slave device. For all other controller types, this must
5108 be 0.</desc>
5109 </param>
5110 <param name="type" type="DeviceType" dir="in">
5111 <desc>Device type of the attached device. For media opened by
5112 <link to="IVirtualBox::openMedium" />, this must match the device type
5113 specified there.</desc>
5114 </param>
5115 <param name="medium" type="IMedium" dir="in">
5116 <desc>Medium to mount or @c null for an empty drive.</desc>
5117 </param>
5118 </method>
5119
5120 <method name="attachDeviceWithoutMedium">
5121 <desc>
5122 Attaches a device and optionally mounts a medium to the given storage
5123 controller (<link to="IStorageController" />, identified by @a name),
5124 at the indicated port and device.
5125
5126 This method is intended for managing storage devices in general while a
5127 machine is powered off. It can be used to attach and detach fixed
5128 and removable media. The following kind of media can be attached
5129 to a machine:
5130 <ul>
5131 <li>
5132 For fixed and removable media, you can pass in a medium that was
5133 previously opened using <link to="IVirtualBox::openMedium" />.
5134 </li>
5135
5136 <li>Only for storage devices supporting removable media (such as
5137 DVDs and floppies) with an empty drive or one of the medium objects listed
5138 in the <link to="IHost::DVDDrives" /> and <link to="IHost::floppyDrives"/>
5139 arrays to indicate a host drive.
5140 For removable devices, you can also use <link to="IMachine::mountMedium"/>
5141 to change the media while the machine is running.
5142 </li>
5143 </ul>
5144
5145 In a VM's default configuration of virtual machines, the secondary
5146 master of the IDE controller is used for a CD/DVD drive.
5147 <link to="IMediumAttachment"/> will appear in the machine's list of medium
5148 attachments (see <link to="IMachine::mediumAttachments"/>).
5149
5150 See <link to="IMedium"/> and <link to="IMediumAttachment"/> for more
5151 information about attaching media.
5152
5153 The specified device slot must not have a device attached to it,
5154 or this method will fail.
5155 <note>
5156 You cannot attach a device to a newly created machine until
5157 this machine's settings are saved to disk using
5158 <link to="#saveSettings"/>.
5159 </note>
5160 <note>
5161 If the medium is being attached indirectly, a new differencing medium
5162 will implicitly be created for it and attached instead. If the
5163 changes made to the machine settings (including this indirect
5164 attachment) are later cancelled using <link to="#discardSettings"/>,
5165 this implicitly created differencing medium will implicitly
5166 be deleted.
5167 </note>
5168
5169 <result name="E_INVALIDARG">
5170 SATA device, SATA port, IDE port or IDE slot out of range, or
5171 file or UUID not found.
5172 </result>
5173 <result name="VBOX_E_INVALID_OBJECT_STATE">
5174 Machine must be registered before media can be attached.
5175 </result>
5176 <result name="VBOX_E_INVALID_VM_STATE">
5177 Invalid machine state.
5178 </result>
5179 <result name="VBOX_E_OBJECT_IN_USE">
5180 A medium is already attached to this or another virtual machine.
5181 </result>
5182 </desc>
5183 <param name="name" type="wstring" dir="in">
5184 <desc>Name of the storage controller to attach the device to.</desc>
5185 </param>
5186 <param name="controllerPort" type="long" dir="in">
5187 <desc>Port to attach the device to. For an IDE controller, 0 specifies
5188 the primary controller and 1 specifies the secondary controller.
5189 For a SCSI controller, this must range from 0 to 15; for a SATA controller,
5190 from 0 to 29; for an SAS controller, from 0 to 7.</desc>
5191 </param>
5192 <param name="device" type="long" dir="in">
5193 <desc>Device slot in the given port to attach the device to. This is only
5194 relevant for IDE controllers, for which 0 specifies the master device and
5195 1 specifies the slave device. For all other controller types, this must
5196 be 0.</desc>
5197 </param>
5198 <param name="type" type="DeviceType" dir="in">
5199 <desc>Device type of the attached device. For media opened by
5200 <link to="IVirtualBox::openMedium" />, this must match the device type
5201 specified there.</desc>
5202 </param>
5203 </method>
5204
5205 <method name="detachDevice">
5206 <desc>
5207 Detaches the device attached to a device slot of the specified bus.
5208
5209 Detaching the device from the virtual machine is deferred. This means
5210 that the medium remains associated with the machine when this method
5211 returns and gets actually de-associated only after a successful
5212 <link to="#saveSettings"/> call. See <link to="IMedium"/>
5213 for more detailed information about attaching media.
5214
5215 <note>
5216 You cannot detach a device from a running machine.
5217 </note>
5218 <note>
5219 Detaching differencing media implicitly created by <link
5220 to="#attachDevice"/> for the indirect attachment using this
5221 method will <b>not</b> implicitly delete them. The
5222 <link to="IMedium::deleteStorage"/> operation should be
5223 explicitly performed by the caller after the medium is successfully
5224 detached and the settings are saved with
5225 <link to="#saveSettings"/>, if it is the desired action.
5226 </note>
5227
5228 <result name="VBOX_E_INVALID_VM_STATE">
5229 Attempt to detach medium from a running virtual machine.
5230 </result>
5231 <result name="VBOX_E_OBJECT_NOT_FOUND">
5232 No medium attached to given slot/bus.
5233 </result>
5234 <result name="VBOX_E_NOT_SUPPORTED">
5235 Medium format does not support storage deletion (only for implicitly
5236 created differencing media, should not happen).
5237 </result>
5238
5239 </desc>
5240 <param name="name" type="wstring" dir="in">
5241 <desc>Name of the storage controller to detach the medium from.</desc>
5242 </param>
5243 <param name="controllerPort" type="long" dir="in">
5244 <desc>Port number to detach the medium from.</desc>
5245 </param>
5246 <param name="device" type="long" dir="in">
5247 <desc>Device slot number to detach the medium from.</desc>
5248 </param>
5249 </method>
5250
5251 <method name="passthroughDevice">
5252 <desc>
5253 Sets the passthrough mode of an existing DVD device. Changing the
5254 setting while the VM is running is forbidden. The setting is only used
5255 if at VM start the device is configured as a host DVD drive, in all
5256 other cases it is ignored. The device must already exist; see
5257 <link to="IMachine::attachDevice"/> for how to attach a new device.
5258
5259 The @a controllerPort and @a device parameters specify the device slot and
5260 have have the same meaning as with <link to="IMachine::attachDevice" />.
5261
5262 <result name="E_INVALIDARG">
5263 SATA device, SATA port, IDE port or IDE slot out of range.
5264 </result>
5265 <result name="VBOX_E_INVALID_OBJECT_STATE">
5266 Attempt to modify an unregistered virtual machine.
5267 </result>
5268 <result name="VBOX_E_INVALID_VM_STATE">
5269 Invalid machine state.
5270 </result>
5271
5272 </desc>
5273 <param name="name" type="wstring" dir="in">
5274 <desc>Name of the storage controller.</desc>
5275 </param>
5276 <param name="controllerPort" type="long" dir="in">
5277 <desc>Storage controller port.</desc>
5278 </param>
5279 <param name="device" type="long" dir="in">
5280 <desc>Device slot in the given port.</desc>
5281 </param>
5282 <param name="passthrough" type="boolean" dir="in">
5283 <desc>New value for the passthrough setting.</desc>
5284 </param>
5285 </method>
5286
5287 <method name="temporaryEjectDevice">
5288 <desc>
5289 Sets the behavior for guest-triggered medium eject. In some situations
5290 it is desirable that such ejects update the VM configuration, and in
5291 others the eject should keep the VM configuration. The device must
5292 already exist; see <link to="IMachine::attachDevice"/> for how to
5293 attach a new device.
5294
5295 The @a controllerPort and @a device parameters specify the device slot and
5296 have have the same meaning as with <link to="IMachine::attachDevice" />.
5297
5298 <result name="E_INVALIDARG">
5299 SATA device, SATA port, IDE port or IDE slot out of range.
5300 </result>
5301 <result name="VBOX_E_INVALID_OBJECT_STATE">
5302 Attempt to modify an unregistered virtual machine.
5303 </result>
5304 <result name="VBOX_E_INVALID_VM_STATE">
5305 Invalid machine state.
5306 </result>
5307
5308 </desc>
5309 <param name="name" type="wstring" dir="in">
5310 <desc>Name of the storage controller.</desc>
5311 </param>
5312 <param name="controllerPort" type="long" dir="in">
5313 <desc>Storage controller port.</desc>
5314 </param>
5315 <param name="device" type="long" dir="in">
5316 <desc>Device slot in the given port.</desc>
5317 </param>
5318 <param name="temporaryEject" type="boolean" dir="in">
5319 <desc>New value for the eject behavior.</desc>
5320 </param>
5321 </method>
5322
5323 <method name="nonRotationalDevice">
5324 <desc>
5325 Sets a flag in the device information which indicates that the medium
5326 is not based on rotational technology, i.e. that the access times are
5327 more or less independent of the position on the medium. This may or may
5328 not be supported by a particular drive, and is silently ignored in the
5329 latter case. At the moment only hard disks (which is a misnomer in this
5330 context) accept this setting. Changing the setting while the VM is
5331 running is forbidden. The device must already exist; see
5332 <link to="IMachine::attachDevice"/> for how to attach a new device.
5333
5334 The @a controllerPort and @a device parameters specify the device slot and
5335 have have the same meaning as with <link to="IMachine::attachDevice" />.
5336
5337 <result name="E_INVALIDARG">
5338 SATA device, SATA port, IDE port or IDE slot out of range.
5339 </result>
5340 <result name="VBOX_E_INVALID_OBJECT_STATE">
5341 Attempt to modify an unregistered virtual machine.
5342 </result>
5343 <result name="VBOX_E_INVALID_VM_STATE">
5344 Invalid machine state.
5345 </result>
5346
5347 </desc>
5348 <param name="name" type="wstring" dir="in">
5349 <desc>Name of the storage controller.</desc>
5350 </param>
5351 <param name="controllerPort" type="long" dir="in">
5352 <desc>Storage controller port.</desc>
5353 </param>
5354 <param name="device" type="long" dir="in">
5355 <desc>Device slot in the given port.</desc>
5356 </param>
5357 <param name="nonRotational" type="boolean" dir="in">
5358 <desc>New value for the non-rotational device flag.</desc>
5359 </param>
5360 </method>
5361
5362 <method name="setAutoDiscardForDevice">
5363 <desc>
5364 Sets a flag in the device information which indicates that the medium
5365 supports discarding unsused blocks (called trimming for SATA or unmap
5366 for SCSI devices) .This may or may not be supported by a particular drive,
5367 and is silently ignored in the latter case. At the moment only hard disks
5368 (which is a misnomer in this context) accept this setting. Changing the
5369 setting while the VM is running is forbidden. The device must already
5370 exist; see <link to="IMachine::attachDevice"/> for how to attach a new
5371 device.
5372
5373 The @a controllerPort and @a device parameters specify the device slot and
5374 have have the same meaning as with <link to="IMachine::attachDevice" />.
5375
5376 <result name="E_INVALIDARG">
5377 SATA device, SATA port, SCSI port out of range.
5378 </result>
5379 <result name="VBOX_E_INVALID_OBJECT_STATE">
5380 Attempt to modify an unregistered virtual machine.
5381 </result>
5382 <result name="VBOX_E_INVALID_VM_STATE">
5383 Invalid machine state.
5384 </result>
5385
5386 </desc>
5387 <param name="name" type="wstring" dir="in">
5388 <desc>Name of the storage controller.</desc>
5389 </param>
5390 <param name="controllerPort" type="long" dir="in">
5391 <desc>Storage controller port.</desc>
5392 </param>
5393 <param name="device" type="long" dir="in">
5394 <desc>Device slot in the given port.</desc>
5395 </param>
5396 <param name="discard" type="boolean" dir="in">
5397 <desc>New value for the discard device flag.</desc>
5398 </param>
5399 </method>
5400
5401 <method name="setBandwidthGroupForDevice">
5402 <desc>
5403 Sets the bandwidth group of an existing storage device.
5404 The device must already exist; see <link to="IMachine::attachDevice"/>
5405 for how to attach a new device.
5406
5407 The @a controllerPort and @a device parameters specify the device slot and
5408 have have the same meaning as with <link to="IMachine::attachDevice" />.
5409
5410 <result name="E_INVALIDARG">
5411 SATA device, SATA port, IDE port or IDE slot out of range.
5412 </result>
5413 <result name="VBOX_E_INVALID_OBJECT_STATE">
5414 Attempt to modify an unregistered virtual machine.
5415 </result>
5416 <result name="VBOX_E_INVALID_VM_STATE">
5417 Invalid machine state.
5418 </result>
5419
5420 </desc>
5421 <param name="name" type="wstring" dir="in">
5422 <desc>Name of the storage controller.</desc>
5423 </param>
5424 <param name="controllerPort" type="long" dir="in">
5425 <desc>Storage controller port.</desc>
5426 </param>
5427 <param name="device" type="long" dir="in">
5428 <desc>Device slot in the given port.</desc>
5429 </param>
5430 <param name="bandwidthGroup" type="IBandwidthGroup" dir="in">
5431 <desc>New value for the bandwidth group or @c null for no group.</desc>
5432 </param>
5433 </method>
5434
5435 <method name="setNoBandwidthGroupForDevice">
5436 <desc>
5437 Sets no bandwidth group for an existing storage device.
5438 The device must already exist; see <link to="IMachine::attachDevice"/>
5439 for how to attach a new device.
5440 The @a controllerPort and @a device parameters specify the device slot and
5441 have have the same meaning as with <link to="IMachine::attachDevice" />.
5442 <result name="E_INVALIDARG">
5443 SATA device, SATA port, IDE port or IDE slot out of range.
5444 </result>
5445 <result name="VBOX_E_INVALID_OBJECT_STATE">
5446 Attempt to modify an unregistered virtual machine.
5447 </result>
5448 <result name="VBOX_E_INVALID_VM_STATE">
5449 Invalid machine state.
5450 </result>
5451
5452 </desc>
5453 <param name="name" type="wstring" dir="in">
5454 <desc>Name of the storage controller.</desc>
5455 </param>
5456 <param name="controllerPort" type="long" dir="in">
5457 <desc>Storage controller port.</desc>
5458 </param>
5459 <param name="device" type="long" dir="in">
5460 <desc>Device slot in the given port.</desc>
5461 </param>
5462 </method>
5463
5464
5465 <method name="unmountMedium">
5466 <desc>
5467 Unmounts any currently mounted medium (<link to="IMedium" />,
5468 identified by the given UUID @a id) to the given storage controller
5469 (<link to="IStorageController" />, identified by @a name),
5470 at the indicated port and device. The device must already exist;
5471
5472 This method is intended only for managing removable media, where the
5473 device is fixed but media is changeable at runtime (such as DVDs
5474 and floppies). It cannot be used for fixed media such as hard disks.
5475
5476 The @a controllerPort and @a device parameters specify the device slot
5477 and have have the same meaning as with
5478 <link to="IMachine::attachDevice" />.
5479
5480 The specified device slot must have a medium mounted, which will be
5481 unmounted. If there is no mounted medium it will do nothing.
5482 See <link to="IMedium"/> for more detailed information about
5483 attaching/unmounting media.
5484
5485 <result name="E_INVALIDARG">
5486 SATA device, SATA port, IDE port or IDE slot out of range.
5487 </result>
5488 <result name="VBOX_E_INVALID_OBJECT_STATE">
5489 Attempt to unmount medium that is not removeable - not dvd or floppy.
5490 </result>
5491 <result name="VBOX_E_INVALID_VM_STATE">
5492 Invalid machine state.
5493 </result>
5494 <result name="VBOX_E_OBJECT_IN_USE">
5495 Medium already attached to this or another virtual machine.
5496 </result>
5497 <result name="VBOX_E_OBJECT_NOT_FOUND">
5498 Medium not attached to specified port, device, controller.
5499 </result>
5500
5501 </desc>
5502 <param name="name" type="wstring" dir="in">
5503 <desc>Name of the storage controller to unmount the medium from.</desc>
5504 </param>
5505 <param name="controllerPort" type="long" dir="in">
5506 <desc>Port to unmount the medium from.</desc>
5507 </param>
5508 <param name="device" type="long" dir="in">
5509 <desc>Device slot in the given port to unmount the medium from.</desc>
5510 </param>
5511 <param name="force" type="boolean" dir="in">
5512 <desc>Allows to force unmount of a medium which is locked by
5513 the device slot in the given port medium is attached to.</desc>
5514 </param>
5515 </method>
5516
5517 <method name="mountMedium">
5518 <desc>
5519 Mounts a medium (<link to="IMedium" />, identified
5520 by the given UUID @a id) to the given storage controller
5521 (<link to="IStorageController" />, identified by @a name),
5522 at the indicated port and device. The device must already exist;
5523 see <link to="IMachine::attachDevice"/> for how to attach a new device.
5524
5525 This method is intended only for managing removable media, where the
5526 device is fixed but media is changeable at runtime (such as DVDs
5527 and floppies). It cannot be used for fixed media such as hard disks.
5528
5529 The @a controllerPort and @a device parameters specify the device slot and
5530 have have the same meaning as with <link to="IMachine::attachDevice" />.
5531
5532 The specified device slot can have a medium mounted, which will be
5533 unmounted first. Specifying a zero UUID (or an empty string) for
5534 @a medium does just an unmount.
5535
5536 See <link to="IMedium"/> for more detailed information about
5537 attaching media.
5538
5539 <result name="E_INVALIDARG">
5540 SATA device, SATA port, IDE port or IDE slot out of range.
5541 </result>
5542 <result name="VBOX_E_INVALID_OBJECT_STATE">
5543 Attempt to attach medium to an unregistered virtual machine.
5544 </result>
5545 <result name="VBOX_E_INVALID_VM_STATE">
5546 Invalid machine state.
5547 </result>
5548 <result name="VBOX_E_OBJECT_IN_USE">
5549 Medium already attached to this or another virtual machine.
5550 </result>
5551
5552 </desc>
5553 <param name="name" type="wstring" dir="in">
5554 <desc>Name of the storage controller to attach the medium to.</desc>
5555 </param>
5556 <param name="controllerPort" type="long" dir="in">
5557 <desc>Port to attach the medium to.</desc>
5558 </param>
5559 <param name="device" type="long" dir="in">
5560 <desc>Device slot in the given port to attach the medium to.</desc>
5561 </param>
5562 <param name="medium" type="IMedium" dir="in">
5563 <desc>Medium to mount or @c null for an empty drive.</desc>
5564 </param>
5565 <param name="force" type="boolean" dir="in">
5566 <desc>Allows to force unmount/mount of a medium which is locked by
5567 the device slot in the given port to attach the medium to.</desc>
5568 </param>
5569 </method>
5570
5571 <method name="getMedium" const="yes">
5572 <desc>
5573 Returns the virtual medium attached to a device slot of the specified
5574 bus.
5575
5576 Note that if the medium was indirectly attached by
5577 <link to="#mountMedium"/> to the given device slot then this
5578 method will return not the same object as passed to the
5579 <link to="#mountMedium"/> call. See <link to="IMedium"/> for
5580 more detailed information about mounting a medium.
5581
5582 <result name="VBOX_E_OBJECT_NOT_FOUND">
5583 No medium attached to given slot/bus.
5584 </result>
5585
5586 </desc>
5587 <param name="name" type="wstring" dir="in">
5588 <desc>Name of the storage controller the medium is attached to.</desc>
5589 </param>
5590 <param name="controllerPort" type="long" dir="in">
5591 <desc>Port to query.</desc>
5592 </param>
5593 <param name="device" type="long" dir="in">
5594 <desc>Device slot in the given port to query.</desc>
5595 </param>
5596 <param name="medium" type="IMedium" dir="return">
5597 <desc>Attached medium object.</desc>
5598 </param>
5599 </method>
5600
5601 <method name="getMediumAttachmentsOfController" const="yes">
5602 <desc>
5603 Returns an array of medium attachments which are attached to the
5604 the controller with the given name.
5605
5606 <result name="VBOX_E_OBJECT_NOT_FOUND">
5607 A storage controller with given name doesn't exist.
5608 </result>
5609 </desc>
5610 <param name="name" type="wstring" dir="in"/>
5611 <param name="mediumAttachments" type="IMediumAttachment" safearray="yes" dir="return"/>
5612 </method>
5613
5614 <method name="getMediumAttachment" const="yes">
5615 <desc>
5616 Returns a medium attachment which corresponds to the controller with
5617 the given name, on the given port and device slot.
5618
5619 <result name="VBOX_E_OBJECT_NOT_FOUND">
5620 No attachment exists for the given controller/port/device combination.
5621 </result>
5622 </desc>
5623 <param name="name" type="wstring" dir="in"/>
5624 <param name="controllerPort" type="long" dir="in"/>
5625 <param name="device" type="long" dir="in"/>
5626 <param name="attachment" type="IMediumAttachment" dir="return"/>
5627 </method>
5628
5629 <method name="attachHostPCIDevice">
5630 <desc>
5631 Attaches host PCI device with the given (host) PCI address to the
5632 PCI bus of the virtual machine. Please note, that this operation
5633 is two phase, as real attachment will happen when VM will start,
5634 and most information will be delivered as IHostPCIDevicePlugEvent
5635 on IVirtualBox event source.
5636
5637 <see><link to="IHostPCIDevicePlugEvent"/></see>
5638
5639 <result name="VBOX_E_INVALID_VM_STATE">
5640 Virtual machine state is not stopped (PCI hotplug not yet implemented).
5641 </result>
5642 <result name="VBOX_E_PDM_ERROR">
5643 Virtual machine does not have a PCI controller allowing attachment of physical devices.
5644 </result>
5645 <result name="VBOX_E_NOT_SUPPORTED">
5646 Hardware or host OS doesn't allow PCI device passthrought.
5647 </result>
5648 </desc>
5649 <param name="hostAddress" type="long" dir="in">
5650 <desc>Address of the host PCI device.</desc>
5651 </param>
5652 <param name="desiredGuestAddress" type="long" dir="in">
5653 <desc>Desired position of this device on guest PCI bus.</desc>
5654 </param>
5655 <param name="tryToUnbind" type="boolean" dir="in">
5656 <desc>If VMM shall try to unbind existing drivers from the
5657 device before attaching it to the guest.</desc>
5658 </param>
5659 </method>
5660
5661 <method name="detachHostPCIDevice">
5662 <desc>
5663 Detach host PCI device from the virtual machine.
5664 Also HostPCIDevicePlugEvent on IVirtualBox event source
5665 will be delivered. As currently we don't support hot device
5666 unplug, IHostPCIDevicePlugEvent event is delivered immediately.
5667
5668 <see><link to="IHostPCIDevicePlugEvent"/></see>
5669
5670 <result name="VBOX_E_INVALID_VM_STATE">
5671 Virtual machine state is not stopped (PCI hotplug not yet implemented).
5672 </result>
5673 <result name="VBOX_E_OBJECT_NOT_FOUND">
5674 This host device is not attached to this machine.
5675 </result>
5676 <result name="VBOX_E_PDM_ERROR">
5677 Virtual machine does not have a PCI controller allowing attachment of physical devices.
5678 </result>
5679 <result name="VBOX_E_NOT_SUPPORTED">
5680 Hardware or host OS doesn't allow PCI device passthrought.
5681 </result>
5682 </desc>
5683 <param name="hostAddress" type="long" dir="in">
5684 <desc>Address of the host PCI device.</desc>
5685 </param>
5686 </method>
5687
5688 <method name="getNetworkAdapter" const="yes">
5689 <desc>
5690 Returns the network adapter associated with the given slot.
5691 Slots are numbered sequentially, starting with zero. The total
5692 number of adapters per machine is defined by the
5693 <link to="ISystemProperties::getMaxNetworkAdapters"/> property,
5694 so the maximum slot number is one less than that property's value.
5695
5696 <result name="E_INVALIDARG">
5697 Invalid @a slot number.
5698 </result>
5699
5700 </desc>
5701 <param name="slot" type="unsigned long" dir="in"/>
5702 <param name="adapter" type="INetworkAdapter" dir="return"/>
5703 </method>
5704
5705 <method name="addStorageController">
5706 <desc>
5707 Adds a new storage controller (SCSI, SAS or SATA controller) to the
5708 machine and returns it as an instance of
5709 <link to="IStorageController" />.
5710
5711 @a name identifies the controller for subsequent calls such as
5712 <link to="#getStorageControllerByName" />,
5713 <link to="#getStorageControllerByInstance" />,
5714 <link to="#removeStorageController" />,
5715 <link to="#attachDevice" /> or <link to="#mountMedium" />.
5716
5717 After the controller has been added, you can set its exact
5718 type by setting the <link to="IStorageController::controllerType" />.
5719
5720 <result name="VBOX_E_OBJECT_IN_USE">
5721 A storage controller with given name exists already.
5722 </result>
5723 <result name="E_INVALIDARG">
5724 Invalid @a controllerType.
5725 </result>
5726 </desc>
5727 <param name="name" type="wstring" dir="in"/>
5728 <param name="connectionType" type="StorageBus" dir="in"/>
5729 <param name="controller" type="IStorageController" dir="return"/>
5730 </method>
5731
5732 <method name="getStorageControllerByName" const="yes">
5733 <desc>
5734 Returns a storage controller with the given name.
5735
5736 <result name="VBOX_E_OBJECT_NOT_FOUND">
5737 A storage controller with given name doesn't exist.
5738 </result>
5739 </desc>
5740 <param name="name" type="wstring" dir="in"/>
5741 <param name="storageController" type="IStorageController" dir="return"/>
5742 </method>
5743
5744 <method name="getStorageControllerByInstance" const="yes">
5745 <desc>
5746 Returns a storage controller with the given instance number.
5747
5748 <result name="VBOX_E_OBJECT_NOT_FOUND">
5749 A storage controller with given instance number doesn't exist.
5750 </result>
5751 </desc>
5752 <param name="instance" type="unsigned long" dir="in"/>
5753 <param name="storageController" type="IStorageController" dir="return"/>
5754 </method>
5755
5756 <method name="removeStorageController">
5757 <desc>
5758 Removes a storage controller from the machine with all devices attached to it.
5759
5760 <result name="VBOX_E_OBJECT_NOT_FOUND">
5761 A storage controller with given name doesn't exist.
5762 </result>
5763 <result name="VBOX_E_NOT_SUPPORTED">
5764 Medium format does not support storage deletion (only for implicitly
5765 created differencing media, should not happen).
5766 </result>
5767 </desc>
5768 <param name="name" type="wstring" dir="in"/>
5769 </method>
5770
5771 <method name="setStorageControllerBootable">
5772 <desc>
5773 Sets the bootable flag of the storage controller with the given name.
5774
5775 <result name="VBOX_E_OBJECT_NOT_FOUND">
5776 A storage controller with given name doesn't exist.
5777 </result>
5778 <result name="VBOX_E_OBJECT_IN_USE">
5779 Another storage controller is marked as bootable already.
5780 </result>
5781 </desc>
5782 <param name="name" type="wstring" dir="in"/>
5783 <param name="bootable" type="boolean" dir="in"/>
5784 </method>
5785
5786 <method name="getSerialPort" const="yes">
5787 <desc>
5788 Returns the serial port associated with the given slot.
5789 Slots are numbered sequentially, starting with zero. The total
5790 number of serial ports per machine is defined by the
5791 <link to="ISystemProperties::serialPortCount"/> property,
5792 so the maximum slot number is one less than that property's value.
5793
5794 <result name="E_INVALIDARG">
5795 Invalid @a slot number.
5796 </result>
5797
5798 </desc>
5799 <param name="slot" type="unsigned long" dir="in"/>
5800 <param name="port" type="ISerialPort" dir="return"/>
5801 </method>
5802
5803 <method name="getParallelPort" const="yes">
5804 <desc>
5805 Returns the parallel port associated with the given slot.
5806 Slots are numbered sequentially, starting with zero. The total
5807 number of parallel ports per machine is defined by the
5808 <link to="ISystemProperties::parallelPortCount"/> property,
5809 so the maximum slot number is one less than that property's value.
5810
5811 <result name="E_INVALIDARG">
5812 Invalid @a slot number.
5813 </result>
5814
5815 </desc>
5816 <param name="slot" type="unsigned long" dir="in"/>
5817 <param name="port" type="IParallelPort" dir="return"/>
5818 </method>
5819
5820 <method name="getExtraDataKeys">
5821 <desc>
5822 Returns an array representing the machine-specific extra data keys
5823 which currently have values defined.
5824 </desc>
5825 <param name="keys" type="wstring" dir="return" safearray="yes">
5826 <desc>Array of extra data keys.</desc>
5827 </param>
5828 </method>
5829
5830 <method name="getExtraData">
5831 <desc>
5832 Returns associated machine-specific extra data.
5833
5834 If the requested data @a key does not exist, this function will
5835 succeed and return an empty string in the @a value argument.
5836
5837 <result name="VBOX_E_FILE_ERROR">
5838 Settings file not accessible.
5839 </result>
5840 <result name="VBOX_E_XML_ERROR">
5841 Could not parse the settings file.
5842 </result>
5843
5844 </desc>
5845 <param name="key" type="wstring" dir="in">
5846 <desc>Name of the data key to get.</desc>
5847 </param>
5848 <param name="value" type="wstring" dir="return">
5849 <desc>Value of the requested data key.</desc>
5850 </param>
5851 </method>
5852
5853 <method name="setExtraData">
5854 <desc>
5855 Sets associated machine-specific extra data.
5856
5857 If you pass @c null or an empty string as a key @a value, the given
5858 @a key will be deleted.
5859
5860 <note>
5861 Before performing the actual data change, this method will ask all
5862 registered listeners using the
5863 <link to="IExtraDataCanChangeEvent"/>
5864 notification for a permission. If one of the listeners refuses the
5865 new value, the change will not be performed.
5866 </note>
5867 <note>
5868 On success, the
5869 <link to="IExtraDataChangedEvent"/> notification
5870 is called to inform all registered listeners about a successful data
5871 change.
5872 </note>
5873 <note>
5874 This method can be called outside the machine session and therefore
5875 it's a caller's responsibility to handle possible race conditions
5876 when several clients change the same key at the same time.
5877 </note>
5878
5879 <result name="VBOX_E_FILE_ERROR">
5880 Settings file not accessible.
5881 </result>
5882 <result name="VBOX_E_XML_ERROR">
5883 Could not parse the settings file.
5884 </result>
5885
5886 </desc>
5887 <param name="key" type="wstring" dir="in">
5888 <desc>Name of the data key to set.</desc>
5889 </param>
5890 <param name="value" type="wstring" dir="in">
5891 <desc>Value to assign to the key.</desc>
5892 </param>
5893 </method>
5894
5895 <method name="getCPUProperty" const="yes">
5896 <desc>
5897 Returns the virtual CPU boolean value of the specified property.
5898
5899 <result name="E_INVALIDARG">
5900 Invalid property.
5901 </result>
5902
5903 </desc>
5904 <param name="property" type="CPUPropertyType" dir="in">
5905 <desc>
5906 Property type to query.
5907 </desc>
5908 </param>
5909 <param name="value" type="boolean" dir="return">
5910 <desc>
5911 Property value.
5912 </desc>
5913 </param>
5914 </method>
5915
5916 <method name="setCPUProperty">
5917 <desc>
5918 Sets the virtual CPU boolean value of the specified property.
5919
5920 <result name="E_INVALIDARG">
5921 Invalid property.
5922 </result>
5923
5924 </desc>
5925 <param name="property" type="CPUPropertyType" dir="in">
5926 <desc>
5927 Property type to query.
5928 </desc>
5929 </param>
5930 <param name="value" type="boolean" dir="in">
5931 <desc>
5932 Property value.
5933 </desc>
5934 </param>
5935 </method>
5936
5937 <method name="getCPUIDLeaf" const="yes">
5938 <desc>
5939 Returns the virtual CPU cpuid information for the specified leaf.
5940
5941 Currently supported index values for cpuid:
5942 Standard CPUID leafs: 0 - 0xA
5943 Extended CPUID leafs: 0x80000000 - 0x8000000A
5944
5945 See the Intel and AMD programmer's manuals for detailed information
5946 about the cpuid instruction and its leafs.
5947 <result name="E_INVALIDARG">
5948 Invalid id.
5949 </result>
5950
5951 </desc>
5952 <param name="id" type="unsigned long" dir="in">
5953 <desc>
5954 CPUID leaf index.
5955 </desc>
5956 </param>
5957 <param name="valEax" type="unsigned long" dir="out">
5958 <desc>
5959 CPUID leaf value for register eax.
5960 </desc>
5961 </param>
5962 <param name="valEbx" type="unsigned long" dir="out">
5963 <desc>
5964 CPUID leaf value for register ebx.
5965 </desc>
5966 </param>
5967 <param name="valEcx" type="unsigned long" dir="out">
5968 <desc>
5969 CPUID leaf value for register ecx.
5970 </desc>
5971 </param>
5972 <param name="valEdx" type="unsigned long" dir="out">
5973 <desc>
5974 CPUID leaf value for register edx.
5975 </desc>
5976 </param>
5977 </method>
5978
5979 <method name="setCPUIDLeaf">
5980 <desc>
5981 Sets the virtual CPU cpuid information for the specified leaf. Note that these values
5982 are not passed unmodified. VirtualBox clears features that it doesn't support.
5983
5984 Currently supported index values for cpuid:
5985 Standard CPUID leafs: 0 - 0xA
5986 Extended CPUID leafs: 0x80000000 - 0x8000000A
5987
5988 See the Intel and AMD programmer's manuals for detailed information
5989 about the cpuid instruction and its leafs.
5990
5991 Do not use this method unless you know exactly what you're doing. Misuse can lead to
5992 random crashes inside VMs.
5993 <result name="E_INVALIDARG">
5994 Invalid id.
5995 </result>
5996
5997 </desc>
5998 <param name="id" type="unsigned long" dir="in">
5999 <desc>
6000 CPUID leaf index.
6001 </desc>
6002 </param>
6003 <param name="valEax" type="unsigned long" dir="in">
6004 <desc>
6005 CPUID leaf value for register eax.
6006 </desc>
6007 </param>
6008 <param name="valEbx" type="unsigned long" dir="in">
6009 <desc>
6010 CPUID leaf value for register ebx.
6011 </desc>
6012 </param>
6013 <param name="valEcx" type="unsigned long" dir="in">
6014 <desc>
6015 CPUID leaf value for register ecx.
6016 </desc>
6017 </param>
6018 <param name="valEdx" type="unsigned long" dir="in">
6019 <desc>
6020 CPUID leaf value for register edx.
6021 </desc>
6022 </param>
6023 </method>
6024
6025 <method name="removeCPUIDLeaf">
6026 <desc>
6027 Removes the virtual CPU cpuid leaf for the specified index
6028
6029 <result name="E_INVALIDARG">
6030 Invalid id.
6031 </result>
6032
6033 </desc>
6034 <param name="id" type="unsigned long" dir="in">
6035 <desc>
6036 CPUID leaf index.
6037 </desc>
6038 </param>
6039 </method>
6040
6041 <method name="removeAllCPUIDLeaves">
6042 <desc>
6043 Removes all the virtual CPU cpuid leaves
6044 </desc>
6045 </method>
6046
6047 <method name="getHWVirtExProperty" const="yes">
6048 <desc>
6049 Returns the value of the specified hardware virtualization boolean property.
6050
6051 <result name="E_INVALIDARG">
6052 Invalid property.
6053 </result>
6054
6055 </desc>
6056 <param name="property" type="HWVirtExPropertyType" dir="in">
6057 <desc>
6058 Property type to query.
6059 </desc>
6060 </param>
6061 <param name="value" type="boolean" dir="return">
6062 <desc>
6063 Property value.
6064 </desc>
6065 </param>
6066 </method>
6067
6068 <method name="setHWVirtExProperty">
6069 <desc>
6070 Sets a new value for the specified hardware virtualization boolean property.
6071
6072 <result name="E_INVALIDARG">
6073 Invalid property.
6074 </result>
6075
6076 </desc>
6077 <param name="property" type="HWVirtExPropertyType" dir="in">
6078 <desc>
6079 Property type to set.
6080 </desc>
6081 </param>
6082 <param name="value" type="boolean" dir="in">
6083 <desc>
6084 New property value.
6085 </desc>
6086 </param>
6087 </method>
6088
6089 <method name="saveSettings">
6090 <desc>
6091 Saves any changes to machine settings made since the session
6092 has been opened or a new machine has been created, or since the
6093 last call to <link to="#saveSettings"/> or <link to="#discardSettings"/>.
6094 For registered machines, new settings become visible to all
6095 other VirtualBox clients after successful invocation of this
6096 method.
6097 <note>
6098 The method sends <link to="IMachineDataChangedEvent"/>
6099 notification event after the configuration has been successfully
6100 saved (only for registered machines).
6101 </note>
6102 <note>
6103 Calling this method is only valid on instances returned
6104 by <link to="ISession::machine"/> and on new machines
6105 created by <link to="IVirtualBox::createMachine"/> but not
6106 yet registered, or on unregistered machines after calling
6107 <link to="IMachine::unregister"/>.
6108 </note>
6109
6110 <result name="VBOX_E_FILE_ERROR">
6111 Settings file not accessible.
6112 </result>
6113 <result name="VBOX_E_XML_ERROR">
6114 Could not parse the settings file.
6115 </result>
6116 <result name="E_ACCESSDENIED">
6117 Modification request refused.
6118 </result>
6119
6120 </desc>
6121 </method>
6122
6123 <method name="discardSettings">
6124 <desc>
6125 Discards any changes to the machine settings made since the session
6126 has been opened or since the last call to <link to="#saveSettings"/>
6127 or <link to="#discardSettings"/>.
6128 <note>
6129 Calling this method is only valid on instances returned
6130 by <link to="ISession::machine"/> and on new machines
6131 created by <link to="IVirtualBox::createMachine"/> or
6132 opened by <link to="IVirtualBox::openMachine"/> but not
6133 yet registered, or on unregistered machines after calling
6134 <link to="IMachine::unregister"/>.
6135 </note>
6136
6137 <result name="VBOX_E_INVALID_VM_STATE">
6138 Virtual machine is not mutable.
6139 </result>
6140
6141 </desc>
6142 </method>
6143
6144 <method name="unregister">
6145 <desc>
6146 Unregisters a machine previously registered with
6147 <link to="IVirtualBox::registerMachine"/> and optionally do additional
6148 cleanup before the machine is unregistered.
6149
6150 This method does not delete any files. It only changes the machine configuration and
6151 the list of registered machines in the VirtualBox object. To delete the files which
6152 belonged to the machine, including the XML file of the machine itself, call
6153 <link to="#deleteConfig"/>, optionally with the array of IMedium objects which was returned
6154 from this method.
6155
6156 How thoroughly this method cleans up the machine configuration before unregistering
6157 the machine depends on the @a cleanupMode argument.
6158
6159 <ul>
6160 <li>With "UnregisterOnly", the machine will only be unregistered, but no additional
6161 cleanup will be performed. The call will fail if the machine is in "Saved" state
6162 or has any snapshots or any media attached (see <link to="IMediumAttachment" />).
6163 It is the responsibility of the caller to delete all such configuration in this mode.
6164 In this mode, the API behaves like the former @c IVirtualBox::unregisterMachine() API
6165 which it replaces.</li>
6166 <li>With "DetachAllReturnNone", the call will succeed even if the machine is in "Saved"
6167 state or if it has snapshots or media attached. All media attached to the current machine
6168 state or in snapshots will be detached. No medium objects will be returned;
6169 all of the machine's media will remain open.</li>
6170 <li>With "DetachAllReturnHardDisksOnly", the call will behave like with "DetachAllReturnNone",
6171 except that all the hard disk medium objects which were detached from the machine will
6172 be returned as an array. This allows for quickly passing them to the <link to="#deleteConfig" />
6173 API for closing and deletion.</li>
6174 <li>With "Full", the call will behave like with "DetachAllReturnHardDisksOnly", except
6175 that all media will be returned in the array, including removable media like DVDs and
6176 floppies. This might be useful if the user wants to inspect in detail which media were
6177 attached to the machine. Be careful when passing the media array to <link to="#deleteConfig" />
6178 in that case because users will typically want to preserve ISO and RAW image files.</li>
6179 </ul>
6180
6181 A typical implementation will use "DetachAllReturnHardDisksOnly" and then pass the
6182 resulting IMedium array to <link to="#deleteConfig"/>. This way, the machine is completely
6183 deleted with all its saved states and hard disk images, but images for removable
6184 drives (such as ISO and RAW files) will remain on disk.
6185
6186 This API does not verify whether the media files returned in the array are still
6187 attached to other machines (i.e. shared between several machines). If such a shared
6188 image is passed to <link to="#deleteConfig" /> however, closing the image will fail there
6189 and the image will be silently skipped.
6190
6191 This API may, however, move media from this machine's media registry to other media
6192 registries (see <link to="IMedium" /> for details on media registries). For machines
6193 created with VirtualBox 4.0 or later, if media from this machine's media registry
6194 are also attached to another machine (shared attachments), each such medium will be
6195 moved to another machine's registry. This is because without this machine's media
6196 registry, the other machine cannot find its media any more and would become inaccessible.
6197
6198 This API implicitly calls <link to="#saveSettings"/> to save all current machine settings
6199 before unregistering it. It may also silently call <link to="#saveSettings"/> on other machines
6200 if media are moved to other machines' media registries.
6201
6202 After successful method invocation, the <link to="IMachineRegisteredEvent"/> event
6203 is fired.
6204
6205 The call will fail if the machine is currently locked (see <link to="ISession" />).
6206
6207 <note>
6208 If the given machine is inaccessible (see <link to="#accessible"/>), it
6209 will be unregistered and fully uninitialized right afterwards. As a result,
6210 the returned machine object will be unusable and an attempt to call
6211 <b>any</b> method will return the "Object not ready" error.
6212 </note>
6213
6214 <result name="VBOX_E_INVALID_OBJECT_STATE">
6215 Machine is currently locked for a session.
6216 </result>
6217 </desc>
6218
6219 <param name="cleanupMode" type="CleanupMode" dir="in">
6220 <desc>How to clean up after the machine has been unregistered.</desc>
6221 </param>
6222 <param name="media" type="IMedium" safearray="yes" dir="return">
6223 <desc>List of media detached from the machine, depending on the @a cleanupMode parameter.</desc>
6224 </param>
6225 </method>
6226
6227 <method name="deleteConfig">
6228 <desc>
6229 Deletes the files associated with this machine from disk. If medium objects are passed
6230 in with the @a aMedia argument, they are closed and, if closing was successful, their
6231 storage files are deleted as well. For convenience, this array of media files can be
6232 the same as the one returned from a previous <link to="#unregister" /> call.
6233
6234 This method must only be called on machines which are either write-locked (i.e. on instances
6235 returned by <link to="ISession::machine"/>) or on unregistered machines (i.e. not yet
6236 registered machines created by <link to="IVirtualBox::createMachine"/> or opened by
6237 <link to="IVirtualBox::openMachine"/>, or after having called <link to="#unregister"/>).
6238
6239 The following files will be deleted by this method:
6240 <ul>
6241 <li>If <link to="#unregister" /> had been previously called with a @a cleanupMode
6242 argument other than "UnregisterOnly", this will delete all saved state files that
6243 the machine had in use; possibly one if the machine was in "Saved" state and one
6244 for each online snapshot that the machine had.</li>
6245 <li>On each medium object passed in the @a aMedia array, this will call
6246 <link to="IMedium::close" />. If that succeeds, this will attempt to delete the
6247 medium's storage on disk. Since the <link to="IMedium::close"/> call will fail if the medium is still
6248 in use, e.g. because it is still attached to a second machine; in that case the
6249 storage will not be deleted.</li>
6250 <li>Finally, the machine's own XML file will be deleted.</li>
6251 </ul>
6252
6253 Since deleting large disk image files can be a time-consuming I/O operation, this
6254 method operates asynchronously and returns an IProgress object to allow the caller
6255 to monitor the progress. There will be one sub-operation for each file that is
6256 being deleted (saved state or medium storage file).
6257
6258 <note>
6259 <link to="#settingsModified"/> will return @c true after this
6260 method successfully returns.
6261 </note>
6262
6263 <result name="VBOX_E_INVALID_VM_STATE">
6264 Machine is registered but not write-locked.
6265 </result>
6266 <result name="VBOX_E_IPRT_ERROR">
6267 Could not delete the settings file.
6268 </result>
6269 </desc>
6270 <param name="media" type="IMedium" safearray="yes" dir="in">
6271 <desc>List of media to be closed and whose storage files will be deleted.</desc>
6272 </param>
6273 <param name="progress" type="IProgress" dir="return">
6274 <desc>Progress object to track the operation completion.</desc>
6275 </param>
6276 </method>
6277
6278 <method name="exportTo">
6279 <desc>Exports the machine to an OVF appliance. See <link to="IAppliance" /> for the
6280 steps required to export VirtualBox machines to OVF.
6281 </desc>
6282
6283 <param name="appliance" type="IAppliance" dir="in">
6284 <desc>Appliance to export this machine to.</desc>
6285 </param>
6286 <param name="location" type="wstring" dir="in">
6287 <desc>The target location.</desc>
6288 </param>
6289 <param name="description" type="IVirtualSystemDescription" dir="return">
6290 <desc>VirtualSystemDescription object which is created for this machine.</desc>
6291 </param>
6292 </method>
6293
6294 <method name="findSnapshot">
6295 <desc>
6296 Returns a snapshot of this machine with the given name or UUID.
6297
6298 Returns a snapshot of this machine with the given UUID.
6299 A @c null argument can be used to obtain the first snapshot
6300 taken on this machine. To traverse the whole tree of snapshots
6301 starting from the root, inspect the root snapshot's
6302 <link to="ISnapshot::children" /> attribute and recurse over those children.
6303
6304 <result name="VBOX_E_OBJECT_NOT_FOUND">
6305 Virtual machine has no snapshots or snapshot not found.
6306 </result>
6307
6308 </desc>
6309 <param name="nameOrId" type="wstring" dir="in">
6310 <desc>What to search for. Name or UUID of the snapshot to find</desc>
6311 </param>
6312 <param name="snapshot" type="ISnapshot" dir="return">
6313 <desc>Snapshot object with the given name.</desc>
6314 </param>
6315 </method>
6316
6317 <method name="createSharedFolder">
6318 <desc>
6319 Creates a new permanent shared folder by associating the given logical
6320 name with the given host path, adds it to the collection of shared
6321 folders and starts sharing it. Refer to the description of
6322 <link to="ISharedFolder"/> to read more about logical names.
6323
6324 <result name="VBOX_E_OBJECT_IN_USE">
6325 Shared folder already exists.
6326 </result>
6327 <result name="VBOX_E_FILE_ERROR">
6328 Shared folder @a hostPath not accessible.
6329 </result>
6330
6331 </desc>
6332 <param name="name" type="wstring" dir="in">
6333 <desc>Unique logical name of the shared folder.</desc>
6334 </param>
6335 <param name="hostPath" type="wstring" dir="in">
6336 <desc>Full path to the shared folder in the host file system.</desc>
6337 </param>
6338 <param name="writable" type="boolean" dir="in">
6339 <desc>Whether the share is writable or readonly.</desc>
6340 </param>
6341 <param name="automount" type="boolean" dir="in">
6342 <desc>Whether the share gets automatically mounted by the guest
6343 or not.</desc>
6344 </param>
6345 </method>
6346
6347 <method name="removeSharedFolder">
6348 <desc>
6349 Removes the permanent shared folder with the given name previously
6350 created by <link to="#createSharedFolder"/> from the collection of
6351 shared folders and stops sharing it.
6352
6353 <result name="VBOX_E_INVALID_VM_STATE">
6354 Virtual machine is not mutable.
6355 </result>
6356 <result name="VBOX_E_OBJECT_NOT_FOUND">
6357 Shared folder @a name does not exist.
6358 </result>
6359
6360 </desc>
6361 <param name="name" type="wstring" dir="in">
6362 <desc>Logical name of the shared folder to remove.</desc>
6363 </param>
6364 </method>
6365
6366 <method name="canShowConsoleWindow">
6367 <desc>
6368 Returns @c true if the VM console process can activate the
6369 console window and bring it to foreground on the desktop of
6370 the host PC.
6371 <note>
6372 This method will fail if a session for this machine is not
6373 currently open.
6374 </note>
6375
6376 <result name="VBOX_E_INVALID_VM_STATE">
6377 Machine session is not open.
6378 </result>
6379
6380 </desc>
6381 <param name="canShow" type="boolean" dir="return">
6382 <desc>
6383 @c true if the console window can be shown and @c false otherwise.
6384 </desc>
6385 </param>
6386 </method>
6387
6388 <method name="showConsoleWindow">
6389 <desc>
6390 Activates the console window and brings it to foreground on
6391 the desktop of the host PC. Many modern window managers on
6392 many platforms implement some sort of focus stealing
6393 prevention logic, so that it may be impossible to activate
6394 a window without the help of the currently active
6395 application. In this case, this method will return a non-zero
6396 identifier that represents the top-level window of the VM
6397 console process. The caller, if it represents a currently
6398 active process, is responsible to use this identifier (in a
6399 platform-dependent manner) to perform actual window
6400 activation.
6401 <note>
6402 This method will fail if a session for this machine is not
6403 currently open.
6404 </note>
6405
6406 <result name="VBOX_E_INVALID_VM_STATE">
6407 Machine session is not open.
6408 </result>
6409
6410 </desc>
6411 <param name="winId" type="long long" dir="return">
6412 <desc>
6413 Platform-dependent identifier of the top-level VM console
6414 window, or zero if this method has performed all actions
6415 necessary to implement the <i>show window</i> semantics for
6416 the given platform and/or VirtualBox front-end.
6417 </desc>
6418 </param>
6419 </method>
6420
6421 <method name="getGuestProperty" const="yes">
6422 <desc>
6423 Reads an entry from the machine's guest property store.
6424
6425 <result name="VBOX_E_INVALID_VM_STATE">
6426 Machine session is not open.
6427 </result>
6428
6429 </desc>
6430 <param name="name" type="wstring" dir="in">
6431 <desc>
6432 The name of the property to read.
6433 </desc>
6434 </param>
6435 <param name="value" type="wstring" dir="out">
6436 <desc>
6437 The value of the property. If the property does not exist then this
6438 will be empty.
6439 </desc>
6440 </param>
6441 <param name="timestamp" type="long long" dir="out">
6442 <desc>
6443 The time at which the property was last modified, as seen by the
6444 server process.
6445 </desc>
6446 </param>
6447 <param name="flags" type="wstring" dir="out">
6448 <desc>
6449 Additional property parameters, passed as a comma-separated list of
6450 "name=value" type entries.
6451 </desc>
6452 </param>
6453 </method>
6454
6455 <method name="getGuestPropertyValue" const="yes">
6456 <desc>
6457 Reads a value from the machine's guest property store.
6458
6459 <result name="VBOX_E_INVALID_VM_STATE">
6460 Machine session is not open.
6461 </result>
6462
6463 </desc>
6464 <param name="property" type="wstring" dir="in">
6465 <desc>
6466 The name of the property to read.
6467 </desc>
6468 </param>
6469 <param name="value" type="wstring" dir="return">
6470 <desc>
6471 The value of the property. If the property does not exist then this
6472 will be empty.
6473 </desc>
6474 </param>
6475 </method>
6476
6477 <method name="getGuestPropertyTimestamp" const="yes">
6478 <desc>
6479 Reads a property timestamp from the machine's guest property store.
6480
6481 <result name="VBOX_E_INVALID_VM_STATE">
6482 Machine session is not open.
6483 </result>
6484
6485 </desc>
6486 <param name="property" type="wstring" dir="in">
6487 <desc>
6488 The name of the property to read.
6489 </desc>
6490 </param>
6491 <param name="value" type="long long" dir="return">
6492 <desc>
6493 The timestamp. If the property does not exist then this will be
6494 empty.
6495 </desc>
6496 </param>
6497 </method>
6498
6499 <method name="setGuestProperty">
6500 <desc>
6501 Sets, changes or deletes an entry in the machine's guest property
6502 store.
6503
6504 <result name="E_ACCESSDENIED">
6505 Property cannot be changed.
6506 </result>
6507 <result name="E_INVALIDARG">
6508 Invalid @a flags.
6509 </result>
6510 <result name="VBOX_E_INVALID_VM_STATE">
6511 Virtual machine is not mutable or session not open.
6512 </result>
6513 <result name="VBOX_E_INVALID_OBJECT_STATE">
6514 Cannot set transient property when machine not running.
6515 </result>
6516
6517 </desc>
6518 <param name="property" type="wstring" dir="in">
6519 <desc>
6520 The name of the property to set, change or delete.
6521 </desc>
6522 </param>
6523 <param name="value" type="wstring" dir="in">
6524 <desc>
6525 The new value of the property to set, change or delete. If the
6526 property does not yet exist and value is non-empty, it will be
6527 created. If the value is @c null or empty, the property will be
6528 deleted if it exists.
6529 </desc>
6530 </param>
6531 <param name="flags" type="wstring" dir="in">
6532 <desc>
6533 Additional property parameters, passed as a comma-separated list of
6534 "name=value" type entries.
6535 </desc>
6536 </param>
6537 </method>
6538
6539 <method name="setGuestPropertyValue">
6540 <desc>
6541 Sets or changes a value in the machine's guest property
6542 store. The flags field will be left unchanged or created empty for a
6543 new property.
6544
6545 <result name="E_ACCESSDENIED">
6546 Property cannot be changed.
6547 </result>
6548 <result name="VBOX_E_INVALID_VM_STATE">
6549 Virtual machine is not mutable or session not open.
6550 </result>
6551 <result name="VBOX_E_INVALID_OBJECT_STATE">
6552 Cannot set transient property when machine not running.
6553 </result>
6554 </desc>
6555
6556 <param name="property" type="wstring" dir="in">
6557 <desc>
6558 The name of the property to set or change.
6559 </desc>
6560 </param>
6561 <param name="value" type="wstring" dir="in">
6562 <desc>
6563 The new value of the property to set or change. If the
6564 property does not yet exist and value is non-empty, it will be
6565 created.
6566 </desc>
6567 </param>
6568 </method>
6569
6570 <method name="deleteGuestProperty" const="yes">
6571 <desc>
6572 Deletes an entry from the machine's guest property store.
6573
6574 <result name="VBOX_E_INVALID_VM_STATE">
6575 Machine session is not open.
6576 </result>
6577
6578 </desc>
6579 <param name="name" type="wstring" dir="in">
6580 <desc>
6581 The name of the property to delete.
6582 </desc>
6583 </param>
6584 </method>
6585
6586 <method name="enumerateGuestProperties" const="yes">
6587 <desc>
6588 Return a list of the guest properties matching a set of patterns along
6589 with their values, time stamps and flags.
6590 </desc>
6591 <param name="patterns" type="wstring" dir="in">
6592 <desc>
6593 The patterns to match the properties against, separated by '|'
6594 characters. If this is empty or @c null, all properties will match.
6595 </desc>
6596 </param>
6597 <param name="names" type="wstring" dir="out" safearray="yes">
6598 <desc>
6599 The names of the properties returned.
6600 </desc>
6601 </param>
6602 <param name="values" type="wstring" dir="out" safearray="yes">
6603 <desc>
6604 The values of the properties returned. The array entries match the
6605 corresponding entries in the @a name array.
6606 </desc>
6607 </param>
6608 <param name="timestamps" type="long long" dir="out" safearray="yes">
6609 <desc>
6610 The time stamps of the properties returned. The array entries match
6611 the corresponding entries in the @a name array.
6612 </desc>
6613 </param>
6614 <param name="flags" type="wstring" dir="out" safearray="yes">
6615 <desc>
6616 The flags of the properties returned. The array entries match the
6617 corresponding entries in the @a name array.
6618 </desc>
6619 </param>
6620 </method>
6621
6622 <method name="querySavedGuestScreenInfo" const="yes">
6623 <desc>
6624 Returns the guest dimensions from the saved state.
6625 </desc>
6626 <param name="screenId" type="unsigned long" dir="in">
6627 <desc>
6628 Saved guest screen to query info from.
6629 </desc>
6630 </param>
6631 <param name="originX" type="unsigned long" dir="out">
6632 <desc>
6633 The X position of the guest monitor top left corner.
6634 </desc>
6635 </param>
6636 <param name="originY" type="unsigned long" dir="out">
6637 <desc>
6638 The Y position of the guest monitor top left corner.
6639 </desc>
6640 </param>
6641 <param name="width" type="unsigned long" dir="out">
6642 <desc>
6643 Guest width at the time of the saved state was taken.
6644 </desc>
6645 </param>
6646 <param name="height" type="unsigned long" dir="out">
6647 <desc>
6648 Guest height at the time of the saved state was taken.
6649 </desc>
6650 </param>
6651 <param name="enabled" type="boolean" dir="out">
6652 <desc>
6653 Whether the monitor is enabled in the guest.
6654 </desc>
6655 </param>
6656 </method>
6657
6658 <method name="querySavedThumbnailSize">
6659 <desc>
6660 Returns size in bytes and dimensions in pixels of a saved thumbnail bitmap from saved state.
6661 </desc>
6662 <param name="screenId" type="unsigned long" dir="in">
6663 <desc>
6664 Saved guest screen to query info from.
6665 </desc>
6666 </param>
6667 <param name="size" type="unsigned long" dir="out">
6668 <desc>
6669 Size of buffer required to store the bitmap.
6670 </desc>
6671 </param>
6672 <param name="width" type="unsigned long" dir="out">
6673 <desc>
6674 Bitmap width.
6675 </desc>
6676 </param>
6677 <param name="height" type="unsigned long" dir="out">
6678 <desc>
6679 Bitmap height.
6680 </desc>
6681 </param>
6682 </method>
6683
6684 <method name="readSavedThumbnailToArray">
6685 <desc>
6686 Thumbnail is retrieved to an array of bytes in uncompressed 32-bit BGRA or RGBA format.
6687 </desc>
6688 <param name="screenId" type="unsigned long" dir="in">
6689 <desc>
6690 Saved guest screen to read from.
6691 </desc>
6692 </param>
6693 <param name="BGR" type="boolean" dir="in">
6694 <desc>
6695 How to order bytes in the pixel. A pixel consists of 4 bytes. If this parameter is true, then
6696 bytes order is: B, G, R, 0xFF. If this parameter is false, then bytes order is: R, G, B, 0xFF.
6697 </desc>
6698 </param>
6699 <param name="width" type="unsigned long" dir="out">
6700 <desc>
6701 Bitmap width.
6702 </desc>
6703 </param>
6704 <param name="height" type="unsigned long" dir="out">
6705 <desc>
6706 Bitmap height.
6707 </desc>
6708 </param>
6709 <param name="data" type="octet" safearray="yes" dir="return">
6710 <desc>
6711 Array with resulting bitmap data.
6712 </desc>
6713 </param>
6714 </method>
6715
6716 <method name="readSavedThumbnailPNGToArray">
6717 <desc>
6718 Thumbnail in PNG format is retrieved to an array of bytes.
6719 </desc>
6720 <param name="screenId" type="unsigned long" dir="in">
6721 <desc>
6722 Saved guest screen to read from.
6723 </desc>
6724 </param>
6725 <param name="width" type="unsigned long" dir="out">
6726 <desc>
6727 Image width.
6728 </desc>
6729 </param>
6730 <param name="height" type="unsigned long" dir="out">
6731 <desc>
6732 Image height.
6733 </desc>
6734 </param>
6735 <param name="data" type="octet" dir="return" safearray="yes">
6736 <desc>
6737 Array with resulting PNG data.
6738 </desc>
6739 </param>
6740 </method>
6741
6742 <method name="querySavedScreenshotPNGSize">
6743 <desc>
6744 Returns size in bytes and dimensions of a saved PNG image of screenshot from saved state.
6745 </desc>
6746 <param name="screenId" type="unsigned long" dir="in">
6747 <desc>
6748 Saved guest screen to query info from.
6749 </desc>
6750 </param>
6751 <param name="size" type="unsigned long" dir="out">
6752 <desc>
6753 Size of buffer required to store the PNG binary data.
6754 </desc>
6755 </param>
6756 <param name="width" type="unsigned long" dir="out">
6757 <desc>
6758 Image width.
6759 </desc>
6760 </param>
6761 <param name="height" type="unsigned long" dir="out">
6762 <desc>
6763 Image height.
6764 </desc>
6765 </param>
6766 </method>
6767
6768 <method name="readSavedScreenshotPNGToArray">
6769 <desc>
6770 Screenshot in PNG format is retrieved to an array of bytes.
6771 </desc>
6772 <param name="screenId" type="unsigned long" dir="in">
6773 <desc>
6774 Saved guest screen to read from.
6775 </desc>
6776 </param>
6777 <param name="width" type="unsigned long" dir="out">
6778 <desc>
6779 Image width.
6780 </desc>
6781 </param>
6782 <param name="height" type="unsigned long" dir="out">
6783 <desc>
6784 Image height.
6785 </desc>
6786 </param>
6787 <param name="data" type="octet" dir="return" safearray="yes">
6788 <desc>
6789 Array with resulting PNG data.
6790 </desc>
6791 </param>
6792 </method>
6793
6794 <method name="hotPlugCPU">
6795 <desc>
6796 Plugs a CPU into the machine.
6797 </desc>
6798 <param name="cpu" type="unsigned long" dir="in">
6799 <desc>
6800 The CPU id to insert.
6801 </desc>
6802 </param>
6803 </method>
6804
6805 <method name="hotUnplugCPU">
6806 <desc>
6807 Removes a CPU from the machine.
6808 </desc>
6809 <param name="cpu" type="unsigned long" dir="in">
6810 <desc>
6811 The CPU id to remove.
6812 </desc>
6813 </param>
6814 </method>
6815
6816 <method name="getCPUStatus">
6817 <desc>
6818 Returns the current status of the given CPU.
6819 </desc>
6820 <param name="cpu" type="unsigned long" dir="in">
6821 <desc>
6822 The CPU id to check for.
6823 </desc>
6824 </param>
6825 <param name="attached" type="boolean" dir="return">
6826 <desc>
6827 Status of the CPU.
6828 </desc>
6829 </param>
6830 </method>
6831
6832 <method name="queryLogFilename">
6833 <desc>
6834 Queries for the VM log file name of an given index. Returns an empty
6835 string if a log file with that index doesn't exists.
6836 </desc>
6837 <param name="idx" type="unsigned long" dir="in">
6838 <desc>
6839 Which log file name to query. 0=current log file.
6840 </desc>
6841 </param>
6842 <param name="filename" type="wstring" dir="return">
6843 <desc>
6844 On return the full path to the log file or an empty string on error.
6845 </desc>
6846 </param>
6847 </method>
6848
6849 <method name="readLog">
6850 <desc>
6851 Reads the VM log file. The chunk size is limited, so even if you
6852 ask for a big piece there might be less data returned.
6853 </desc>
6854 <param name="idx" type="unsigned long" dir="in">
6855 <desc>
6856 Which log file to read. 0=current log file.
6857 </desc>
6858 </param>
6859 <param name="offset" type="long long" dir="in">
6860 <desc>
6861 Offset in the log file.
6862 </desc>
6863 </param>
6864 <param name="size" type="long long" dir="in">
6865 <desc>
6866 Chunk size to read in the log file.
6867 </desc>
6868 </param>
6869 <param name="data" type="octet" dir="return" safearray="yes">
6870 <desc>
6871 Data read from the log file. A data size of 0 means end of file
6872 if the requested chunk size was not 0. This is the unprocessed
6873 file data, i.e. the line ending style depends on the platform of
6874 the system the server is running on.
6875 </desc>
6876 </param>
6877 </method>
6878
6879 <method name="cloneTo">
6880 <desc>
6881 Creates a clone of this machine, either as a full clone (which means
6882 creating independent copies of the hard disk media, save states and so
6883 on), or as a linked clone (which uses its own differencing media,
6884 sharing the parent media with the source machine).
6885
6886 The target machine object must have been created previously with <link
6887 to="IVirtualBox::createMachine"/>, and all the settings will be
6888 transferred except the VM name and the hardware UUID. You can set the
6889 VM name and the new hardware UUID when creating the target machine. The
6890 network MAC addresses are newly created for all newtwork adapters. You
6891 can change that behaviour with the options parameter. The operation is
6892 performed asynchronously, so the machine object will be not be usable
6893 until the @a progress object signals completion.
6894
6895 <result name="E_INVALIDARG">
6896 @a target is @c null.
6897 </result>
6898 </desc>
6899
6900 <param name="target" type="IMachine" dir="in">
6901 <desc>Target machine object.</desc>
6902 </param>
6903 <param name="mode" type="CloneMode" dir="in">
6904 <desc>Which states should be cloned.</desc>
6905 </param>
6906 <param name="options" type="CloneOptions" dir="in" safearray="yes">
6907 <desc>Options for the cloning operation.</desc>
6908 </param>
6909 <param name="progress" type="IProgress" dir="return">
6910 <desc>Progress object to track the operation completion.</desc>
6911 </param>
6912 </method>
6913
6914 </interface>
6915
6916 <!--
6917 // IConsole
6918 /////////////////////////////////////////////////////////////////////////
6919 -->
6920
6921 <interface
6922 name="IVRDEServerInfo" extends="$unknown"
6923 uuid="714434a1-58c3-4aab-9049-7652c5df113b"
6924 wsmap="struct"
6925 >
6926 <desc>
6927 Contains information about the remote desktop (VRDE) server capabilities and status.
6928 This is used in the <link to="IConsole::VRDEServerInfo" /> attribute.
6929 </desc>
6930
6931 <attribute name="active" type="boolean" readonly="yes">
6932 <desc>
6933 Whether the remote desktop connection is active.
6934 </desc>
6935 </attribute>
6936
6937 <attribute name="port" type="long" readonly="yes">
6938 <desc>
6939 VRDE server port number. If this property is equal to <tt>0</tt>, then
6940 the VRDE server failed to start, usually because there are no free IP
6941 ports to bind to. If this property is equal to <tt>-1</tt>, then the VRDE
6942 server has not yet been started.
6943 </desc>
6944 </attribute>
6945
6946 <attribute name="numberOfClients" type="unsigned long" readonly="yes">
6947 <desc>
6948 How many times a client connected.
6949 </desc>
6950 </attribute>
6951
6952 <attribute name="beginTime" type="long long" readonly="yes">
6953 <desc>
6954 When the last connection was established, in milliseconds since 1970-01-01 UTC.
6955 </desc>
6956 </attribute>
6957
6958 <attribute name="endTime" type="long long" readonly="yes">
6959 <desc>
6960 When the last connection was terminated or the current time, if
6961 connection is still active, in milliseconds since 1970-01-01 UTC.
6962 </desc>
6963 </attribute>
6964
6965 <attribute name="bytesSent" type="long long" readonly="yes">
6966 <desc>
6967 How many bytes were sent in last or current, if still active, connection.
6968 </desc>
6969 </attribute>
6970
6971 <attribute name="bytesSentTotal" type="long long" readonly="yes">
6972 <desc>
6973 How many bytes were sent in all connections.
6974 </desc>
6975 </attribute>
6976
6977 <attribute name="bytesReceived" type="long long" readonly="yes">
6978 <desc>
6979 How many bytes were received in last or current, if still active, connection.
6980 </desc>
6981 </attribute>
6982
6983 <attribute name="bytesReceivedTotal" type="long long" readonly="yes">
6984 <desc>
6985 How many bytes were received in all connections.
6986 </desc>
6987 </attribute>
6988
6989 <attribute name="user" type="wstring" readonly="yes">
6990 <desc>
6991 Login user name supplied by the client.
6992 </desc>
6993 </attribute>
6994
6995 <attribute name="domain" type="wstring" readonly="yes">
6996 <desc>
6997 Login domain name supplied by the client.
6998 </desc>
6999 </attribute>
7000
7001 <attribute name="clientName" type="wstring" readonly="yes">
7002 <desc>
7003 The client name supplied by the client.
7004 </desc>
7005 </attribute>
7006
7007 <attribute name="clientIP" type="wstring" readonly="yes">
7008 <desc>
7009 The IP address of the client.
7010 </desc>
7011 </attribute>
7012
7013 <attribute name="clientVersion" type="unsigned long" readonly="yes">
7014 <desc>
7015 The client software version number.
7016 </desc>
7017 </attribute>
7018
7019 <attribute name="encryptionStyle" type="unsigned long" readonly="yes">
7020 <desc>
7021 Public key exchange method used when connection was established.
7022 Values: 0 - RDP4 public key exchange scheme.
7023 1 - X509 certificates were sent to client.
7024 </desc>
7025 </attribute>
7026
7027 </interface>
7028
7029 <interface
7030 name="IConsole" extends="$unknown"
7031 uuid="db7ab4ca-2a3f-4183-9243-c1208da92392"
7032 wsmap="managed"
7033 >
7034 <desc>
7035 The IConsole interface represents an interface to control virtual
7036 machine execution.
7037
7038 A console object gets created when a machine has been locked for a
7039 particular session (client process) using <link to="IMachine::lockMachine" />
7040 or <link to="IMachine::launchVMProcess"/>. The console object can
7041 then be found in the session's <link to="ISession::console" /> attribute.
7042
7043 Methods of the IConsole interface allow the caller to query the current
7044 virtual machine execution state, pause the machine or power it down, save
7045 the machine state or take a snapshot, attach and detach removable media
7046 and so on.
7047
7048 <see><link to="ISession"/></see>
7049 </desc>
7050
7051 <attribute name="machine" type="IMachine" readonly="yes">
7052 <desc>
7053 Machine object for this console session.
7054 <note>
7055 This is a convenience property, it has the same value as
7056 <link to="ISession::machine"/> of the corresponding session
7057 object.
7058 </note>
7059 </desc>
7060 </attribute>
7061
7062 <attribute name="state" type="MachineState" readonly="yes">
7063 <desc>
7064 Current execution state of the machine.
7065 <note>
7066 This property always returns the same value as the corresponding
7067 property of the IMachine object for this console session.
7068 For the process that owns (executes) the VM, this is the
7069 preferable way of querying the VM state, because no IPC
7070 calls are made.
7071 </note>
7072 </desc>
7073 </attribute>
7074
7075 <attribute name="guest" type="IGuest" readonly="yes">
7076 <desc>Guest object.</desc>
7077 </attribute>
7078
7079 <attribute name="keyboard" type="IKeyboard" readonly="yes">
7080 <desc>
7081 Virtual keyboard object.
7082 <note>
7083 If the machine is not running, any attempt to use
7084 the returned object will result in an error.
7085 </note>
7086 </desc>
7087 </attribute>
7088
7089 <attribute name="mouse" type="IMouse" readonly="yes">
7090 <desc>
7091 Virtual mouse object.
7092 <note>
7093 If the machine is not running, any attempt to use
7094 the returned object will result in an error.
7095 </note>
7096 </desc>
7097 </attribute>
7098
7099 <attribute name="display" type="IDisplay" readonly="yes">
7100 <desc>Virtual display object.
7101 <note>
7102 If the machine is not running, any attempt to use
7103 the returned object will result in an error.
7104 </note>
7105 </desc>
7106 </attribute>
7107
7108 <attribute name="debugger" type="IMachineDebugger" readonly="yes">
7109 <desc>Debugging interface.</desc>
7110 </attribute>
7111
7112 <attribute name="USBDevices" type="IUSBDevice" readonly="yes" safearray="yes">
7113 <desc>
7114 Collection of USB devices currently attached to the virtual
7115 USB controller.
7116 <note>
7117 The collection is empty if the machine is not running.
7118 </note>
7119 </desc>
7120 </attribute>
7121
7122 <attribute name="remoteUSBDevices" type="IHostUSBDevice" readonly="yes" safearray="yes">
7123 <desc>
7124 List of USB devices currently attached to the remote VRDE client.
7125 Once a new device is physically attached to the remote host computer,
7126 it appears in this list and remains there until detached.
7127 </desc>
7128 </attribute>
7129
7130 <attribute name="sharedFolders" type="ISharedFolder" readonly="yes" safearray="yes">
7131 <desc>
7132 Collection of shared folders for the current session. These folders
7133 are called transient shared folders because they are available to the
7134 guest OS running inside the associated virtual machine only for the
7135 duration of the session (as opposed to
7136 <link to="IMachine::sharedFolders"/> which represent permanent shared
7137 folders). When the session is closed (e.g. the machine is powered down),
7138 these folders are automatically discarded.
7139
7140 New shared folders are added to the collection using
7141 <link to="#createSharedFolder"/>. Existing shared folders can be
7142 removed using <link to="#removeSharedFolder"/>.
7143 </desc>
7144 </attribute>
7145
7146 <attribute name="VRDEServerInfo" type="IVRDEServerInfo" readonly="yes">
7147 <desc>
7148 Interface that provides information on Remote Desktop Extension (VRDE) connection.
7149 </desc>
7150 </attribute>
7151
7152 <attribute name="eventSource" type="IEventSource" readonly="yes">
7153 <desc>
7154 Event source for console events.
7155 </desc>
7156 </attribute>
7157
7158 <attribute name="attachedPCIDevices" type="IPCIDeviceAttachment" readonly="yes" safearray="yes">
7159 <desc>Array of PCI devices attached to this machine.</desc>
7160 </attribute>
7161
7162 <attribute name="useHostClipboard" type="boolean">
7163 <desc>
7164 Whether the guest clipboard should be connected to the host one or
7165 whether it should only be allowed access to the VRDE clipboard. This
7166 setting may not affect existing guest clipboard connections which
7167 are already connected to the host clipboard.
7168 </desc>
7169 </attribute>
7170
7171 <method name="powerUp">
7172 <desc>
7173 Starts the virtual machine execution using the current machine
7174 state (that is, its current execution state, current settings and
7175 current storage devices).
7176
7177 <note>
7178 This method is only useful for front-ends that want to actually
7179 execute virtual machines in their own process (like the VirtualBox
7180 or VBoxSDL front-ends). Unless you are intending to write such a
7181 front-end, do not call this method. If you simply want to
7182 start virtual machine execution using one of the existing front-ends
7183 (for example the VirtualBox GUI or headless server), use
7184 <link to="IMachine::launchVMProcess"/> instead; these
7185 front-ends will power up the machine automatically for you.
7186 </note>
7187
7188 If the machine is powered off or aborted, the execution will
7189 start from the beginning (as if the real hardware were just
7190 powered on).
7191
7192 If the machine is in the <link to="MachineState_Saved"/> state,
7193 it will continue its execution the point where the state has
7194 been saved.
7195
7196 If the machine <link to="IMachine::teleporterEnabled"/> property is
7197 enabled on the machine being powered up, the machine will wait for an
7198 incoming teleportation in the <link to="MachineState_TeleportingIn"/>
7199 state. The returned progress object will have at least three
7200 operations where the last three are defined as: (1) powering up and
7201 starting TCP server, (2) waiting for incoming teleportations, and
7202 (3) perform teleportation. These operations will be reflected as the
7203 last three operations of the progress objected returned by
7204 <link to="IMachine::launchVMProcess"/> as well.
7205
7206 <see><link to="#saveState"/></see>
7207
7208 <result name="VBOX_E_INVALID_VM_STATE">
7209 Virtual machine already running.
7210 </result>
7211 <result name="VBOX_E_HOST_ERROR">
7212 Host interface does not exist or name not set.
7213 </result>
7214 <result name="VBOX_E_FILE_ERROR">
7215 Invalid saved state file.
7216 </result>
7217 </desc>
7218 <param name="progress" type="IProgress" dir="return">
7219 <desc>Progress object to track the operation completion.</desc>
7220 </param>
7221 </method>
7222
7223 <method name="powerUpPaused">
7224 <desc>
7225 Identical to powerUp except that the VM will enter the
7226 <link to="MachineState_Paused"/> state, instead of
7227 <link to="MachineState_Running"/>.
7228
7229 <see><link to="#powerUp"/></see>
7230 <result name="VBOX_E_INVALID_VM_STATE">
7231 Virtual machine already running.
7232 </result>
7233 <result name="VBOX_E_HOST_ERROR">
7234 Host interface does not exist or name not set.
7235 </result>
7236 <result name="VBOX_E_FILE_ERROR">
7237 Invalid saved state file.
7238 </result>
7239 </desc>
7240 <param name="progress" type="IProgress" dir="return">
7241 <desc>Progress object to track the operation completion.</desc>
7242 </param>
7243 </method>
7244
7245 <method name="powerDown">
7246 <desc>
7247 Initiates the power down procedure to stop the virtual machine
7248 execution.
7249
7250 The completion of the power down procedure is tracked using the returned
7251 IProgress object. After the operation is complete, the machine will go
7252 to the PoweredOff state.
7253 <result name="VBOX_E_INVALID_VM_STATE">
7254 Virtual machine must be Running, Paused or Stuck to be powered down.
7255 </result>
7256 </desc>
7257 <param name="progress" type="IProgress" dir="return">
7258 <desc>Progress object to track the operation completion.</desc>
7259 </param>
7260 </method>
7261
7262 <method name="reset">
7263 <desc>Resets the virtual machine.
7264 <result name="VBOX_E_INVALID_VM_STATE">
7265 Virtual machine not in Running state.
7266 </result>
7267 <result name="VBOX_E_VM_ERROR">
7268 Virtual machine error in reset operation.
7269 </result>
7270 </desc>
7271 </method>
7272
7273 <method name="pause">
7274 <desc>Pauses the virtual machine execution.
7275 <result name="VBOX_E_INVALID_VM_STATE">
7276 Virtual machine not in Running state.
7277 </result>
7278 <result name="VBOX_E_VM_ERROR">
7279 Virtual machine error in suspend operation.
7280 </result>
7281 </desc>
7282 </method>
7283
7284 <method name="resume">
7285 <desc>Resumes the virtual machine execution.
7286 <result name="VBOX_E_INVALID_VM_STATE">
7287 Virtual machine not in Paused state.
7288 </result>
7289 <result name="VBOX_E_VM_ERROR">
7290 Virtual machine error in resume operation.
7291 </result>
7292 </desc>
7293 </method>
7294
7295 <method name="powerButton">
7296 <desc>Sends the ACPI power button event to the guest.
7297 <result name="VBOX_E_INVALID_VM_STATE">
7298 Virtual machine not in Running state.
7299 </result>
7300 <result name="VBOX_E_PDM_ERROR">
7301 Controlled power off failed.
7302 </result>
7303 </desc>
7304 </method>
7305
7306 <method name="sleepButton">
7307 <desc>Sends the ACPI sleep button event to the guest.
7308 <result name="VBOX_E_INVALID_VM_STATE">
7309 Virtual machine not in Running state.
7310 </result>
7311 <result name="VBOX_E_PDM_ERROR">
7312 Sending sleep button event failed.
7313 </result>
7314 </desc>
7315 </method>
7316
7317 <method name="getPowerButtonHandled">
7318 <desc>Checks if the last power button event was handled by guest.
7319 <result name="VBOX_E_PDM_ERROR">
7320 Checking if the event was handled by the guest OS failed.
7321 </result>
7322 </desc>
7323 <param name="handled" type="boolean" dir="return"/>
7324 </method>
7325
7326 <method name="getGuestEnteredACPIMode">
7327 <desc>Checks if the guest entered the ACPI mode G0 (working) or
7328 G1 (sleeping). If this method returns @c false, the guest will
7329 most likely not respond to external ACPI events.
7330 <result name="VBOX_E_INVALID_VM_STATE">
7331 Virtual machine not in Running state.
7332 </result>
7333 </desc>
7334 <param name="entered" type="boolean" dir="return"/>
7335 </method>
7336
7337 <method name="saveState">
7338 <desc>
7339 Saves the current execution state of a running virtual machine
7340 and stops its execution.
7341
7342 After this operation completes, the machine will go to the
7343 Saved state. Next time it is powered up, this state will
7344 be restored and the machine will continue its execution from
7345 the place where it was saved.
7346
7347 This operation differs from taking a snapshot to the effect
7348 that it doesn't create new differencing media. Also, once
7349 the machine is powered up from the state saved using this method,
7350 the saved state is deleted, so it will be impossible to return
7351 to this state later.
7352
7353 <note>
7354 On success, this method implicitly calls
7355 <link to="IMachine::saveSettings"/> to save all current machine
7356 settings (including runtime changes to the DVD medium, etc.).
7357 Together with the impossibility to change any VM settings when it is
7358 in the Saved state, this guarantees adequate hardware
7359 configuration of the machine when it is restored from the saved
7360 state file.
7361 </note>
7362
7363 <note>
7364 The machine must be in the Running or Paused state, otherwise
7365 the operation will fail.
7366 </note>
7367 <result name="VBOX_E_INVALID_VM_STATE">
7368 Virtual machine state neither Running nor Paused.
7369 </result>
7370 <result name="VBOX_E_FILE_ERROR">
7371 Failed to create directory for saved state file.
7372 </result>
7373
7374 <see><link to="#takeSnapshot"/></see>
7375 </desc>
7376 <param name="progress" type="IProgress" dir="return">
7377 <desc>Progress object to track the operation completion.</desc>
7378 </param>
7379 </method>
7380
7381 <method name="adoptSavedState">
7382 <desc>
7383 Associates the given saved state file to the virtual machine.
7384
7385 On success, the machine will go to the Saved state. Next time it is
7386 powered up, it will be restored from the adopted saved state and
7387 continue execution from the place where the saved state file was
7388 created.
7389
7390 The specified saved state file path may be absolute or relative to the
7391 folder the VM normally saves the state to (usually,
7392 <link to="IMachine::snapshotFolder"/>).
7393
7394 <note>
7395 It's a caller's responsibility to make sure the given saved state
7396 file is compatible with the settings of this virtual machine that
7397 represent its virtual hardware (memory size, storage disk configuration
7398 etc.). If there is a mismatch, the behavior of the virtual machine
7399 is undefined.
7400 </note>
7401 <result name="VBOX_E_INVALID_VM_STATE">
7402 Virtual machine state neither PoweredOff nor Aborted.
7403 </result>
7404 </desc>
7405 <param name="savedStateFile" type="wstring" dir="in">
7406 <desc>Path to the saved state file to adopt.</desc>
7407 </param>
7408 </method>
7409
7410 <method name="discardSavedState">
7411 <desc>
7412 Forcibly resets the machine to "Powered Off" state if it is
7413 currently in the "Saved" state (previously created by <link to="#saveState"/>).
7414 Next time the machine is powered up, a clean boot will occur.
7415 <note>
7416 This operation is equivalent to resetting or powering off
7417 the machine without doing a proper shutdown of the guest
7418 operating system; as with resetting a running phyiscal
7419 computer, it can can lead to data loss.
7420 </note>
7421 If @a fRemoveFile is @c true, the file in the machine directory
7422 into which the machine state was saved is also deleted. If
7423 this is @c false, then the state can be recovered and later
7424 re-inserted into a machine using <link to="#adoptSavedState" />.
7425 The location of the file can be found in the
7426 <link to="IMachine::stateFilePath" /> attribute.
7427 <result name="VBOX_E_INVALID_VM_STATE">
7428 Virtual machine not in state Saved.
7429 </result>
7430 </desc>
7431 <param name="fRemoveFile" type="boolean" dir="in" >
7432 <desc>Whether to also remove the saved state file.</desc>
7433 </param>
7434 </method>
7435
7436 <method name="getDeviceActivity">
7437 <desc>
7438 Gets the current activity type of a given device or device group.
7439 <result name="E_INVALIDARG">
7440 Invalid device type.
7441 </result>
7442 </desc>
7443 <param name="type" type="DeviceType" dir="in"/>
7444 <param name="activity" type="DeviceActivity" dir="return"/>
7445 </method>
7446
7447 <method name="attachUSBDevice">
7448 <desc>
7449 Attaches a host USB device with the given UUID to the
7450 USB controller of the virtual machine.
7451
7452 The device needs to be in one of the following states:
7453 <link to="USBDeviceState_Busy"/>,
7454 <link to="USBDeviceState_Available"/> or
7455 <link to="USBDeviceState_Held"/>,
7456 otherwise an error is immediately returned.
7457
7458 When the device state is
7459 <link to="USBDeviceState_Busy">Busy</link>, an error may also
7460 be returned if the host computer refuses to release it for some reason.
7461
7462 <see><link to="IUSBController::deviceFilters"/>,
7463 <link to="USBDeviceState"/></see>
7464 <result name="VBOX_E_INVALID_VM_STATE">
7465 Virtual machine state neither Running nor Paused.
7466 </result>
7467 <result name="VBOX_E_PDM_ERROR">
7468 Virtual machine does not have a USB controller.
7469 </result>
7470 </desc>
7471 <param name="id" type="uuid" mod="string" dir="in">
7472 <desc>UUID of the host USB device to attach.</desc>
7473 </param>
7474 </method>
7475
7476 <method name="detachUSBDevice">
7477 <desc>
7478 Detaches an USB device with the given UUID from the USB controller
7479 of the virtual machine.
7480
7481 After this method succeeds, the VirtualBox server re-initiates
7482 all USB filters as if the device were just physically attached
7483 to the host, but filters of this machine are ignored to avoid
7484 a possible automatic re-attachment.
7485
7486 <see><link to="IUSBController::deviceFilters"/>,
7487 <link to="USBDeviceState"/></see>
7488
7489 <result name="VBOX_E_PDM_ERROR">
7490 Virtual machine does not have a USB controller.
7491 </result>
7492 <result name="E_INVALIDARG">
7493 USB device not attached to this virtual machine.
7494 </result>
7495 </desc>
7496 <param name="id" type="uuid" mod="string" dir="in">
7497 <desc>UUID of the USB device to detach.</desc>
7498 </param>
7499 <param name="device" type="IUSBDevice" dir="return">
7500 <desc>Detached USB device.</desc>
7501 </param>
7502 </method>
7503
7504 <method name="findUSBDeviceByAddress">
7505 <desc>
7506 Searches for a USB device with the given host address.
7507
7508 <result name="VBOX_E_OBJECT_NOT_FOUND">
7509 Given @c name does not correspond to any USB device.
7510 </result>
7511
7512 <see><link to="IUSBDevice::address"/></see>
7513 </desc>
7514 <param name="name" type="wstring" dir="in">
7515 <desc>
7516 Address of the USB device (as assigned by the host) to
7517 search for.
7518 </desc>
7519 </param>
7520 <param name="device" type="IUSBDevice" dir="return">
7521 <desc>Found USB device object.</desc>
7522 </param>
7523 </method>
7524
7525 <method name="findUSBDeviceById">
7526 <desc>
7527 Searches for a USB device with the given UUID.
7528
7529 <result name="VBOX_E_OBJECT_NOT_FOUND">
7530 Given @c id does not correspond to any USB device.
7531 </result>
7532
7533 <see><link to="IUSBDevice::id"/></see>
7534 </desc>
7535 <param name="id" type="uuid" mod="string" dir="in">
7536 <desc>UUID of the USB device to search for.</desc>
7537 </param>
7538 <param name="device" type="IUSBDevice" dir="return">
7539 <desc>Found USB device object.</desc>
7540 </param>
7541 </method>
7542
7543 <method name="createSharedFolder">
7544 <desc>
7545 Creates a transient new shared folder by associating the given logical
7546 name with the given host path, adds it to the collection of shared
7547 folders and starts sharing it. Refer to the description of
7548 <link to="ISharedFolder"/> to read more about logical names.
7549
7550 <result name="VBOX_E_INVALID_VM_STATE">
7551 Virtual machine in Saved state or currently changing state.
7552 </result>
7553 <result name="VBOX_E_FILE_ERROR">
7554 Shared folder already exists or not accessible.
7555 </result>
7556 </desc>
7557 <param name="name" type="wstring" dir="in">
7558 <desc>Unique logical name of the shared folder.</desc>
7559 </param>
7560 <param name="hostPath" type="wstring" dir="in">
7561 <desc>Full path to the shared folder in the host file system.</desc>
7562 </param>
7563 <param name="writable" type="boolean" dir="in">
7564 <desc>Whether the share is writable or readonly</desc>
7565 </param>
7566 <param name="automount" type="boolean" dir="in">
7567 <desc>Whether the share gets automatically mounted by the guest
7568 or not.</desc>
7569 </param>
7570 </method>
7571
7572 <method name="removeSharedFolder">
7573 <desc>
7574 Removes a transient shared folder with the given name previously
7575 created by <link to="#createSharedFolder"/> from the collection of
7576 shared folders and stops sharing it.
7577 <result name="VBOX_E_INVALID_VM_STATE">
7578 Virtual machine in Saved state or currently changing state.
7579 </result>
7580 <result name="VBOX_E_FILE_ERROR">
7581 Shared folder does not exists.
7582 </result>
7583 </desc>
7584 <param name="name" type="wstring" dir="in">
7585 <desc>Logical name of the shared folder to remove.</desc>
7586 </param>
7587 </method>
7588
7589 <method name="takeSnapshot">
7590 <desc>
7591 Saves the current execution state
7592 and all settings of the machine and creates differencing images
7593 for all normal (non-independent) media.
7594 See <link to="ISnapshot" /> for an introduction to snapshots.
7595
7596 This method can be called for a PoweredOff, Saved (see
7597 <link to="#saveState"/>), Running or
7598 Paused virtual machine. When the machine is PoweredOff, an
7599 offline snapshot is created. When the machine is Running a live
7600 snapshot is created, and an online snapshot is created when Paused.
7601
7602 The taken snapshot is always based on the
7603 <link to="IMachine::currentSnapshot">current snapshot</link>
7604 of the associated virtual machine and becomes a new current snapshot.
7605
7606 <note>
7607 This method implicitly calls <link to="IMachine::saveSettings"/> to
7608 save all current machine settings before taking an offline snapshot.
7609 </note>
7610
7611 <result name="VBOX_E_INVALID_VM_STATE">
7612 Virtual machine currently changing state.
7613 </result>
7614 </desc>
7615 <param name="name" type="wstring" dir="in">
7616 <desc>Short name for the snapshot.</desc>
7617 </param>
7618 <param name="description" type="wstring" dir="in">
7619 <desc>Optional description of the snapshot.</desc>
7620 </param>
7621 <param name="progress" type="IProgress" dir="return">
7622 <desc>Progress object to track the operation completion.</desc>
7623 </param>
7624 </method>
7625
7626 <method name="deleteSnapshot">
7627 <desc>
7628 Starts deleting the specified snapshot asynchronously.
7629 See <link to="ISnapshot" /> for an introduction to snapshots.
7630
7631 The execution state and settings of the associated machine stored in
7632 the snapshot will be deleted. The contents of all differencing media of
7633 this snapshot will be merged with the contents of their dependent child
7634 media to keep the medium chain valid (in other words, all changes
7635 represented by media being deleted will be propagated to their child
7636 medium). After that, this snapshot's differencing medium will be
7637 deleted. The parent of this snapshot will become a new parent for all
7638 its child snapshots.
7639
7640 If the deleted snapshot is the current one, its parent snapshot will
7641 become a new current snapshot. The current machine state is not directly
7642 affected in this case, except that currently attached differencing
7643 media based on media of the deleted snapshot will be also merged as
7644 described above.
7645
7646 If the deleted snapshot is the first or current snapshot, then the
7647 respective IMachine attributes will be adjusted. Deleting the current
7648 snapshot will also implicitly call <link to="IMachine::saveSettings"/>
7649 to make all current machine settings permanent.
7650
7651 Deleting a snapshot has the following preconditions:
7652
7653 <ul>
7654 <li>Child media of all normal media of the deleted snapshot
7655 must be accessible (see <link to="IMedium::state"/>) for this
7656 operation to succeed. If only one running VM refers to all images
7657 which participates in merging the operation can be performed while
7658 the VM is running. Otherwise all virtual machines whose media are
7659 directly or indirectly based on the media of deleted snapshot must
7660 be powered off. In any case, online snapshot deleting usually is
7661 slower than the same operation without any running VM.</li>
7662
7663 <li>You cannot delete the snapshot if a medium attached to it has
7664 more than one child medium (differencing images) because otherwise
7665 merging would be impossible. This might be the case if there is
7666 more than one child snapshot or differencing images were created
7667 for other reason (e.g. implicitly because of multiple machine
7668 attachments).</li>
7669 </ul>
7670
7671 The virtual machine's <link to="IMachine::state">state</link> is
7672 changed to "DeletingSnapshot", "DeletingSnapshotOnline" or
7673 "DeletingSnapshotPaused" while this operation is in progress.
7674
7675 <note>
7676 Merging medium contents can be very time and disk space
7677 consuming, if these media are big in size and have many
7678 children. However, if the snapshot being deleted is the last
7679 (head) snapshot on the branch, the operation will be rather
7680 quick.
7681 </note>
7682 <result name="VBOX_E_INVALID_VM_STATE">
7683 The running virtual machine prevents deleting this snapshot. This
7684 happens only in very specific situations, usually snapshots can be
7685 deleted without trouble while a VM is running. The error message
7686 text explains the reason for the failure.
7687 </result>
7688 </desc>
7689 <param name="id" type="uuid" mod="string" dir="in">
7690 <desc>UUID of the snapshot to delete.</desc>
7691 </param>
7692 <param name="progress" type="IProgress" dir="return">
7693 <desc>Progress object to track the operation completion.</desc>
7694 </param>
7695 </method>
7696
7697 <method name="deleteSnapshotAndAllChildren">
7698 <desc>
7699 Starts deleting the specified snapshot and all its children
7700 asynchronously. See <link to="ISnapshot" /> for an introduction to
7701 snapshots. The conditions and many details are the same as with
7702 <link to="#deleteSnapshot"/>.
7703
7704 This operation is very fast if the snapshot subtree does not include
7705 the current state. It is still significantly faster than deleting the
7706 snapshots one by one if the current state is in the subtree and there
7707 are more than one snapshots from current state to the snapshot which
7708 marks the subtree, since it eliminates the incremental image merging.
7709
7710 <note>This API method is right now not implemented!</note>
7711
7712 <result name="VBOX_E_INVALID_VM_STATE">
7713 The running virtual machine prevents deleting this snapshot. This
7714 happens only in very specific situations, usually snapshots can be
7715 deleted without trouble while a VM is running. The error message
7716 text explains the reason for the failure.
7717 </result>
7718 <result name="E_NOTIMPL">
7719 The method is not implemented yet.
7720 </result>
7721 </desc>
7722 <param name="id" type="uuid" mod="string" dir="in">
7723 <desc>UUID of the snapshot to delete, including all its children.</desc>
7724 </param>
7725 <param name="progress" type="IProgress" dir="return">
7726 <desc>Progress object to track the operation completion.</desc>
7727 </param>
7728 </method>
7729
7730 <method name="deleteSnapshotRange">
7731 <desc>
7732 Starts deleting the specified snapshot range. This is limited to
7733 linear snapshot lists, which means there may not be any other child
7734 snapshots other than the direct sequence between the start and end
7735 snapshot. If the start and end snapshot point to the same snapshot this
7736 method is completely equivalent to <link to="#deleteSnapshot"/>. See
7737 <link to="ISnapshot" /> for an introduction to snapshots. The
7738 conditions and many details are the same as with
7739 <link to="#deleteSnapshot"/>.
7740
7741 This operation is generally faster than deleting snapshots one by one
7742 and often also needs less extra disk space before freeing up disk space
7743 by deleting the removed disk images corresponding to the snapshot.
7744
7745 <note>This API method is right now not implemented!</note>
7746
7747 <result name="VBOX_E_INVALID_VM_STATE">
7748 The running virtual machine prevents deleting this snapshot. This
7749 happens only in very specific situations, usually snapshots can be
7750 deleted without trouble while a VM is running. The error message
7751 text explains the reason for the failure.
7752 </result>
7753 <result name="E_NOTIMPL">
7754 The method is not implemented yet.
7755 </result>
7756 </desc>
7757 <param name="startId" type="uuid" mod="string" dir="in">
7758 <desc>UUID of the first snapshot to delete.</desc>
7759 </param>
7760 <param name="endId" type="uuid" mod="string" dir="in">
7761 <desc>UUID of the last snapshot to delete.</desc>
7762 </param>
7763 <param name="progress" type="IProgress" dir="return">
7764 <desc>Progress object to track the operation completion.</desc>
7765 </param>
7766 </method>
7767
7768 <method name="restoreSnapshot">
7769 <desc>
7770 Starts resetting the machine's current state to the state contained
7771 in the given snapshot, asynchronously. All current settings of the
7772 machine will be reset and changes stored in differencing media
7773 will be lost.
7774 See <link to="ISnapshot" /> for an introduction to snapshots.
7775
7776 After this operation is successfully completed, new empty differencing
7777 media are created for all normal media of the machine.
7778
7779 If the given snapshot is an online snapshot, the machine will go to
7780 the <link to="MachineState_Saved"> saved state</link>, so that the
7781 next time it is powered on, the execution state will be restored
7782 from the state of the snapshot.
7783
7784 <note>
7785 The machine must not be running, otherwise the operation will fail.
7786 </note>
7787
7788 <note>
7789 If the machine state is <link to="MachineState_Saved">Saved</link>
7790 prior to this operation, the saved state file will be implicitly
7791 deleted (as if <link to="IConsole::discardSavedState"/> were
7792 called).
7793 </note>
7794
7795 <result name="VBOX_E_INVALID_VM_STATE">
7796 Virtual machine is running.
7797 </result>
7798 </desc>
7799 <param name="snapshot" type="ISnapshot" dir="in">
7800 <desc>The snapshot to restore the VM state from.</desc>
7801 </param>
7802 <param name="progress" type="IProgress" dir="return">
7803 <desc>Progress object to track the operation completion.</desc>
7804 </param>
7805 </method>
7806
7807 <method name="teleport">
7808 <desc>
7809 Teleport the VM to a different host machine or process.
7810
7811 TODO explain the details.
7812
7813 <result name="VBOX_E_INVALID_VM_STATE">
7814 Virtual machine not running or paused.
7815 </result>
7816 </desc>
7817 <param name="hostname" type="wstring" dir="in">
7818 <desc>The name or IP of the host to teleport to.</desc>
7819 </param>
7820 <param name="tcpport" type="unsigned long" dir="in">
7821 <desc>The TCP port to connect to (1..65535).</desc>
7822 </param>
7823 <param name="password" type="wstring" dir="in">
7824 <desc>The password.</desc>
7825 </param>
7826 <param name="maxDowntime" type="unsigned long" dir="in">
7827 <desc>
7828 The maximum allowed downtime given as milliseconds. 0 is not a valid
7829 value. Recommended value: 250 ms.
7830
7831 The higher the value is, the greater the chance for a successful
7832 teleportation. A small value may easily result in the teleportation
7833 process taking hours and eventually fail.
7834
7835 <note>
7836 The current implementation treats this a guideline, not as an
7837 absolute rule.
7838 </note>
7839 </desc>
7840 </param>
7841 <param name="progress" type="IProgress" dir="return">
7842 <desc>Progress object to track the operation completion.</desc>
7843 </param>
7844 </method>
7845
7846 </interface>
7847
7848 <!--
7849 // IHost
7850 /////////////////////////////////////////////////////////////////////////
7851 -->
7852
7853 <enum
7854 name="HostNetworkInterfaceMediumType"
7855 uuid="1aa54aaf-2497-45a2-bfb1-8eb225e93d5b"
7856 >
7857 <desc>
7858 Type of encapsulation. Ethernet encapsulation includes both wired and
7859 wireless Ethernet connections.
7860 <see><link to="IHostNetworkInterface"/></see>
7861 </desc>
7862
7863 <const name="Unknown" value="0">
7864 <desc>
7865 The type of interface cannot be determined.
7866 </desc>
7867 </const>
7868 <const name="Ethernet" value="1">
7869 <desc>
7870 Ethernet frame encapsulation.
7871 </desc>
7872 </const>
7873 <const name="PPP" value="2">
7874 <desc>
7875 Point-to-point protocol encapsulation.
7876 </desc>
7877 </const>
7878 <const name="SLIP" value="3">
7879 <desc>
7880 Serial line IP encapsulation.
7881 </desc>
7882 </const>
7883 </enum>
7884
7885 <enum
7886 name="HostNetworkInterfaceStatus"
7887 uuid="CC474A69-2710-434B-8D99-C38E5D5A6F41"
7888 >
7889 <desc>
7890 Current status of the interface.
7891 <see><link to="IHostNetworkInterface"/></see>
7892 </desc>
7893
7894 <const name="Unknown" value="0">
7895 <desc>
7896 The state of interface cannot be determined.
7897 </desc>
7898 </const>
7899 <const name="Up" value="1">
7900 <desc>
7901 The interface is fully operational.
7902 </desc>
7903 </const>
7904 <const name="Down" value="2">
7905 <desc>
7906 The interface is not functioning.
7907 </desc>
7908 </const>
7909 </enum>
7910
7911 <enum
7912 name="HostNetworkInterfaceType"
7913 uuid="67431b00-9946-48a2-bc02-b25c5919f4f3"
7914 >
7915 <desc>
7916 Network interface type.
7917 </desc>
7918 <const name="Bridged" value="1"/>
7919 <const name="HostOnly" value="2"/>
7920 </enum>
7921
7922 <interface
7923 name="IHostNetworkInterface" extends="$unknown"
7924 uuid="87a4153d-6889-4dd6-9654-2e9ff0ae8dec"
7925 wsmap="managed"
7926 >
7927 <desc>
7928 Represents one of host's network interfaces. IP V6 address and network
7929 mask are strings of 32 hexdecimal digits grouped by four. Groups are
7930 separated by colons.
7931 For example, fe80:0000:0000:0000:021e:c2ff:fed2:b030.
7932 </desc>
7933 <attribute name="name" type="wstring" readonly="yes">
7934 <desc>Returns the host network interface name.</desc>
7935 </attribute>
7936
7937 <attribute name="id" type="uuid" mod="string" readonly="yes">
7938 <desc>Returns the interface UUID.</desc>
7939 </attribute>
7940
7941 <attribute name="networkName" type="wstring" readonly="yes">
7942 <desc>Returns the name of a virtual network the interface gets attached to.</desc>
7943 </attribute>
7944
7945 <attribute name="DHCPEnabled" type="boolean" readonly="yes">
7946 <desc>Specifies whether the DHCP is enabled for the interface.</desc>
7947 </attribute>
7948
7949 <attribute name="IPAddress" type="wstring" readonly="yes">
7950 <desc>Returns the IP V4 address of the interface.</desc>
7951 </attribute>
7952
7953 <attribute name="networkMask" type="wstring" readonly="yes">
7954 <desc>Returns the network mask of the interface.</desc>
7955 </attribute>
7956
7957 <attribute name="IPV6Supported" type="boolean" readonly="yes">
7958 <desc>Specifies whether the IP V6 is supported/enabled for the interface.</desc>
7959 </attribute>
7960
7961 <attribute name="IPV6Address" type="wstring" readonly="yes">
7962 <desc>Returns the IP V6 address of the interface.</desc>
7963 </attribute>
7964
7965 <attribute name="IPV6NetworkMaskPrefixLength" type="unsigned long" readonly="yes">
7966 <desc>Returns the length IP V6 network mask prefix of the interface.</desc>
7967 </attribute>
7968
7969 <attribute name="hardwareAddress" type="wstring" readonly="yes">
7970 <desc>Returns the hardware address. For Ethernet it is MAC address.</desc>
7971 </attribute>
7972
7973 <attribute name="mediumType" type="HostNetworkInterfaceMediumType" readonly="yes">
7974 <desc>Type of protocol encapsulation used.</desc>
7975 </attribute>
7976
7977 <attribute name="status" type="HostNetworkInterfaceStatus" readonly="yes">
7978 <desc>Status of the interface.</desc>
7979 </attribute>
7980
7981 <attribute name="interfaceType" type="HostNetworkInterfaceType" readonly="yes">
7982 <desc>specifies the host interface type.</desc>
7983 </attribute>
7984
7985 <method name="enableStaticIPConfig">
7986 <desc>sets and enables the static IP V4 configuration for the given interface.</desc>
7987 <param name="IPAddress" type="wstring" dir="in">
7988 <desc>
7989 IP address.
7990 </desc>
7991 </param>
7992 <param name="networkMask" type="wstring" dir="in">
7993 <desc>
7994 network mask.
7995 </desc>
7996 </param>
7997 </method>
7998
7999 <method name="enableStaticIPConfigV6">
8000 <desc>sets and enables the static IP V6 configuration for the given interface.</desc>
8001 <param name="IPV6Address" type="wstring" dir="in">
8002 <desc>
8003 IP address.
8004 </desc>
8005 </param>
8006 <param name="IPV6NetworkMaskPrefixLength" type="unsigned long" dir="in">
8007 <desc>
8008 network mask.
8009 </desc>
8010 </param>
8011 </method>
8012
8013 <method name="enableDynamicIPConfig">
8014 <desc>enables the dynamic IP configuration.</desc>
8015 </method>
8016
8017 <method name="DHCPRediscover">
8018 <desc>refreshes the IP configuration for DHCP-enabled interface.</desc>
8019 </method>
8020
8021 </interface>
8022
8023 <interface
8024 name="IHost" extends="$unknown"
8025 uuid="30678943-32df-4830-b413-931b25ac86a0"
8026 wsmap="managed"
8027 >
8028 <desc>
8029 The IHost interface represents the physical machine that this VirtualBox
8030 installation runs on.
8031
8032 An object implementing this interface is returned by the
8033 <link to="IVirtualBox::host" /> attribute. This interface contains
8034 read-only information about the host's physical hardware (such as what
8035 processors and disks are available, what the host operating system is,
8036 and so on) and also allows for manipulating some of the host's hardware,
8037 such as global USB device filters and host interface networking.
8038
8039 </desc>
8040 <attribute name="DVDDrives" type="IMedium" readonly="yes" safearray="yes">
8041 <desc>List of DVD drives available on the host.</desc>
8042 </attribute>
8043
8044 <attribute name="floppyDrives" type="IMedium" readonly="yes" safearray="yes">
8045 <desc>List of floppy drives available on the host.</desc>
8046 </attribute>
8047
8048 <attribute name="USBDevices" type="IHostUSBDevice" readonly="yes" safearray="yes">
8049 <desc>
8050 List of USB devices currently attached to the host.
8051 Once a new device is physically attached to the host computer,
8052 it appears in this list and remains there until detached.
8053
8054 <note>
8055 If USB functionality is not available in the given edition of
8056 VirtualBox, this method will set the result code to @c E_NOTIMPL.
8057 </note>
8058 </desc>
8059 </attribute>
8060
8061 <attribute name="USBDeviceFilters" type="IHostUSBDeviceFilter" readonly="yes" safearray="yes">
8062 <desc>
8063 List of USB device filters in action.
8064 When a new device is physically attached to the host computer,
8065 filters from this list are applied to it (in order they are stored
8066 in the list). The first matched filter will determine the
8067 <link to="IHostUSBDeviceFilter::action">action</link>
8068 performed on the device.
8069
8070 Unless the device is ignored by these filters, filters of all
8071 currently running virtual machines
8072 (<link to="IUSBController::deviceFilters"/>) are applied to it.
8073
8074 <note>
8075 If USB functionality is not available in the given edition of
8076 VirtualBox, this method will set the result code to @c E_NOTIMPL.
8077 </note>
8078
8079 <see><link to="IHostUSBDeviceFilter"/>,
8080 <link to="USBDeviceState"/></see>
8081 </desc>
8082 </attribute>
8083
8084 <attribute name="networkInterfaces" type="IHostNetworkInterface" safearray="yes" readonly="yes">
8085 <desc>List of host network interfaces currently defined on the host.</desc>
8086 </attribute>
8087
8088 <attribute name="processorCount" type="unsigned long" readonly="yes">
8089 <desc>Number of (logical) CPUs installed in the host system.</desc>
8090 </attribute>
8091
8092 <attribute name="processorOnlineCount" type="unsigned long" readonly="yes">
8093 <desc>Number of (logical) CPUs online in the host system.</desc>
8094 </attribute>
8095
8096 <attribute name="processorCoreCount" type="unsigned long" readonly="yes">
8097 <desc>Number of physical processor cores installed in the host system.</desc>
8098 </attribute>
8099
8100 <method name="getProcessorSpeed">
8101 <desc>Query the (approximate) maximum speed of a specified host CPU in
8102 Megahertz.
8103 </desc>
8104 <param name="cpuId" type="unsigned long" dir="in">
8105 <desc>
8106 Identifier of the CPU.
8107 </desc>
8108 </param>
8109 <param name="speed" type="unsigned long" dir="return">
8110 <desc>
8111 Speed value. 0 is returned if value is not known or @a cpuId is
8112 invalid.
8113 </desc>
8114 </param>
8115 </method>
8116
8117 <method name="getProcessorFeature">
8118 <desc>Query whether a CPU feature is supported or not.</desc>
8119 <param name="feature" type="ProcessorFeature" dir="in">
8120 <desc>
8121 CPU Feature identifier.
8122 </desc>
8123 </param>
8124 <param name="supported" type="boolean" dir="return">
8125 <desc>
8126 Feature is supported or not.
8127 </desc>
8128 </param>
8129 </method>
8130
8131 <method name="getProcessorDescription">
8132 <desc>Query the model string of a specified host CPU.
8133 </desc>
8134 <param name="cpuId" type="unsigned long" dir="in">
8135 <desc>
8136 Identifier of the CPU.
8137 <note>
8138 The current implementation might not necessarily return the
8139 description for this exact CPU.
8140 </note>
8141 </desc>
8142 </param>
8143 <param name="description" type="wstring" dir="return">
8144 <desc>
8145 Model string. An empty string is returned if value is not known or
8146 @a cpuId is invalid.
8147 </desc>
8148 </param>
8149 </method>
8150
8151 <method name="getProcessorCPUIDLeaf">
8152 <desc>
8153 Returns the CPU cpuid information for the specified leaf.
8154 </desc>
8155 <param name="cpuId" type="unsigned long" dir="in">
8156 <desc>
8157 Identifier of the CPU. The CPU most be online.
8158 <note>
8159 The current implementation might not necessarily return the
8160 description for this exact CPU.
8161 </note>
8162 </desc>
8163 </param>
8164 <param name="leaf" type="unsigned long" dir="in">
8165 <desc>
8166 CPUID leaf index (eax).
8167 </desc>
8168 </param>
8169 <param name="subLeaf" type="unsigned long" dir="in">
8170 <desc>
8171 CPUID leaf sub index (ecx). This currently only applies to cache
8172 information on Intel CPUs. Use 0 if retrieving values for
8173 <link to="IMachine::setCPUIDLeaf"/>.
8174 </desc>
8175 </param>
8176 <param name="valEax" type="unsigned long" dir="out">
8177 <desc>
8178 CPUID leaf value for register eax.
8179 </desc>
8180 </param>
8181 <param name="valEbx" type="unsigned long" dir="out">
8182 <desc>
8183 CPUID leaf value for register ebx.
8184 </desc>
8185 </param>
8186 <param name="valEcx" type="unsigned long" dir="out">
8187 <desc>
8188 CPUID leaf value for register ecx.
8189 </desc>
8190 </param>
8191 <param name="valEdx" type="unsigned long" dir="out">
8192 <desc>
8193 CPUID leaf value for register edx.
8194 </desc>
8195 </param>
8196 </method>
8197
8198 <attribute name="memorySize" type="unsigned long" readonly="yes">
8199 <desc>Amount of system memory in megabytes installed in the host system.</desc>
8200 </attribute>
8201
8202 <attribute name="memoryAvailable" type="unsigned long" readonly="yes">
8203 <desc>Available system memory in the host system.</desc>
8204 </attribute>
8205
8206 <attribute name="operatingSystem" type="wstring" readonly="yes">
8207 <desc>Name of the host system's operating system.</desc>
8208 </attribute>
8209
8210 <attribute name="OSVersion" type="wstring" readonly="yes">
8211 <desc>Host operating system's version string.</desc>
8212 </attribute>
8213
8214 <attribute name="UTCTime" type="long long" readonly="yes">
8215 <desc>Returns the current host time in milliseconds since 1970-01-01 UTC.</desc>
8216 </attribute>
8217
8218 <attribute name="acceleration3DAvailable" type="boolean" readonly="yes">
8219 <desc>Returns @c true when the host supports 3D hardware acceleration.</desc>
8220 </attribute>
8221
8222 <method name="createHostOnlyNetworkInterface">
8223 <desc>
8224 Creates a new adapter for Host Only Networking.
8225 <result name="E_INVALIDARG">
8226 Host network interface @a name already exists.
8227 </result>
8228 </desc>
8229 <param name="hostInterface" type="IHostNetworkInterface" dir="out">
8230 <desc>
8231 Created host interface object.
8232 </desc>
8233 </param>
8234 <param name="progress" type="IProgress" dir="return">
8235 <desc>
8236 Progress object to track the operation completion.
8237 </desc>
8238 </param>
8239 </method>
8240
8241 <method name="removeHostOnlyNetworkInterface">
8242 <desc>
8243 Removes the given Host Only Networking interface.
8244 <result name="VBOX_E_OBJECT_NOT_FOUND">
8245 No host network interface matching @a id found.
8246 </result>
8247 </desc>
8248 <param name="id" type="uuid" mod="string" dir="in">
8249 <desc>
8250 Adapter GUID.
8251 </desc>
8252 </param>
8253 <param name="progress" type="IProgress" dir="return">
8254 <desc>
8255 Progress object to track the operation completion.
8256 </desc>
8257 </param>
8258 </method>
8259
8260 <method name="createUSBDeviceFilter">
8261 <desc>
8262 Creates a new USB device filter. All attributes except
8263 the filter name are set to empty (any match),
8264 <i>active</i> is @c false (the filter is not active).
8265
8266 The created filter can be added to the list of filters using
8267 <link to="#insertUSBDeviceFilter"/>.
8268
8269 <see><link to="#USBDeviceFilters"/></see>
8270 </desc>
8271 <param name="name" type="wstring" dir="in">
8272 <desc>
8273 Filter name. See <link to="IUSBDeviceFilter::name"/> for more information.
8274 </desc>
8275 </param>
8276 <param name="filter" type="IHostUSBDeviceFilter" dir="return">
8277 <desc>Created filter object.</desc>
8278 </param>
8279 </method>
8280
8281 <method name="insertUSBDeviceFilter">
8282 <desc>
8283 Inserts the given USB device to the specified position
8284 in the list of filters.
8285
8286 Positions are numbered starting from @c 0. If the specified
8287 position is equal to or greater than the number of elements in
8288 the list, the filter is added at the end of the collection.
8289
8290 <note>
8291 Duplicates are not allowed, so an attempt to insert a
8292 filter already in the list is an error.
8293 </note>
8294 <note>
8295 If USB functionality is not available in the given edition of
8296 VirtualBox, this method will set the result code to @c E_NOTIMPL.
8297 </note>
8298
8299 <see><link to="#USBDeviceFilters"/></see>
8300
8301 <result name="VBOX_E_INVALID_OBJECT_STATE">
8302 USB device filter is not created within this VirtualBox instance.
8303 </result>
8304 <result name="E_INVALIDARG">
8305 USB device filter already in list.
8306 </result>
8307
8308 </desc>
8309 <param name="position" type="unsigned long" dir="in">
8310 <desc>Position to insert the filter to.</desc>
8311 </param>
8312 <param name="filter" type="IHostUSBDeviceFilter" dir="in">
8313 <desc>USB device filter to insert.</desc>
8314 </param>
8315 </method>
8316
8317 <method name="removeUSBDeviceFilter">
8318 <desc>
8319 Removes a USB device filter from the specified position in the
8320 list of filters.
8321
8322 Positions are numbered starting from @c 0. Specifying a
8323 position equal to or greater than the number of elements in
8324 the list will produce an error.
8325
8326 <note>
8327 If USB functionality is not available in the given edition of
8328 VirtualBox, this method will set the result code to @c E_NOTIMPL.
8329 </note>
8330
8331 <see><link to="#USBDeviceFilters"/></see>
8332
8333 <result name="E_INVALIDARG">
8334 USB device filter list empty or invalid @a position.
8335 </result>
8336
8337 </desc>
8338 <param name="position" type="unsigned long" dir="in">
8339 <desc>Position to remove the filter from.</desc>
8340 </param>
8341 </method>
8342
8343 <method name="findHostDVDDrive">
8344 <desc>
8345 Searches for a host DVD drive with the given @c name.
8346
8347 <result name="VBOX_E_OBJECT_NOT_FOUND">
8348 Given @c name does not correspond to any host drive.
8349 </result>
8350
8351 </desc>
8352 <param name="name" type="wstring" dir="in">
8353 <desc>Name of the host drive to search for</desc>
8354 </param>
8355 <param name="drive" type="IMedium" dir="return">
8356 <desc>Found host drive object</desc>
8357 </param>
8358 </method>
8359
8360 <method name="findHostFloppyDrive">
8361 <desc>
8362 Searches for a host floppy drive with the given @c name.
8363
8364 <result name="VBOX_E_OBJECT_NOT_FOUND">
8365 Given @c name does not correspond to any host floppy drive.
8366 </result>
8367
8368 </desc>
8369 <param name="name" type="wstring" dir="in">
8370 <desc>Name of the host floppy drive to search for</desc>
8371 </param>
8372 <param name="drive" type="IMedium" dir="return">
8373 <desc>Found host floppy drive object</desc>
8374 </param>
8375 </method>
8376
8377 <method name="findHostNetworkInterfaceByName">
8378 <desc>
8379 Searches through all host network interfaces for an interface with
8380 the given @c name.
8381 <note>
8382 The method returns an error if the given @c name does not
8383 correspond to any host network interface.
8384 </note>
8385 </desc>
8386 <param name="name" type="wstring" dir="in">
8387 <desc>Name of the host network interface to search for.</desc>
8388 </param>
8389 <param name="networkInterface" type="IHostNetworkInterface" dir="return">
8390 <desc>Found host network interface object.</desc>
8391 </param>
8392 </method>
8393 <method name="findHostNetworkInterfaceById">
8394 <desc>
8395 Searches through all host network interfaces for an interface with
8396 the given GUID.
8397 <note>
8398 The method returns an error if the given GUID does not
8399 correspond to any host network interface.
8400 </note>
8401 </desc>
8402 <param name="id" type="uuid" mod="string" dir="in">
8403 <desc>GUID of the host network interface to search for.</desc>
8404 </param>
8405 <param name="networkInterface" type="IHostNetworkInterface" dir="return">
8406 <desc>Found host network interface object.</desc>
8407 </param>
8408 </method>
8409 <method name="findHostNetworkInterfacesOfType">
8410 <desc>
8411 Searches through all host network interfaces and returns a list of interfaces of the specified type
8412 </desc>
8413 <param name="type" type="HostNetworkInterfaceType" dir="in">
8414 <desc>type of the host network interfaces to search for.</desc>
8415 </param>
8416 <param name="networkInterfaces" type="IHostNetworkInterface" safearray="yes" dir="return">
8417 <desc>Found host network interface objects.</desc>
8418 </param>
8419 </method>
8420
8421 <method name="findUSBDeviceById">
8422 <desc>
8423 Searches for a USB device with the given UUID.
8424
8425 <result name="VBOX_E_OBJECT_NOT_FOUND">
8426 Given @c id does not correspond to any USB device.
8427 </result>
8428
8429 <see><link to="IUSBDevice::id"/></see>
8430 </desc>
8431 <param name="id" type="uuid" mod="string" dir="in">
8432 <desc>UUID of the USB device to search for.</desc>
8433 </param>
8434 <param name="device" type="IHostUSBDevice" dir="return">
8435 <desc>Found USB device object.</desc>
8436 </param>
8437 </method>
8438
8439 <method name="findUSBDeviceByAddress">
8440 <desc>
8441 Searches for a USB device with the given host address.
8442
8443 <result name="VBOX_E_OBJECT_NOT_FOUND">
8444 Given @c name does not correspond to any USB device.
8445 </result>
8446
8447 <see><link to="IUSBDevice::address"/></see>
8448 </desc>
8449 <param name="name" type="wstring" dir="in">
8450 <desc>
8451 Address of the USB device (as assigned by the host) to
8452 search for.
8453 </desc>
8454 </param>
8455 <param name="device" type="IHostUSBDevice" dir="return">
8456 <desc>Found USB device object.</desc>
8457 </param>
8458 </method>
8459
8460 <method name="generateMACAddress">
8461 <desc>
8462 Generates a valid Ethernet MAC address, 12 hexadecimal characters.
8463 </desc>
8464 <param name="address" type="wstring" dir="return">
8465 <desc>New Ethernet MAC address.</desc>
8466 </param>
8467 </method>
8468
8469 </interface>
8470
8471 <!--
8472 // ISystemProperties
8473 /////////////////////////////////////////////////////////////////////////
8474 -->
8475
8476 <interface
8477 name="ISystemProperties"
8478 extends="$unknown"
8479 uuid="55699910-cc50-11e2-8b8b-0800200c9a66"
8480 wsmap="managed"
8481 >
8482 <desc>
8483 The ISystemProperties interface represents global properties of the given
8484 VirtualBox installation.
8485
8486 These properties define limits and default values for various attributes
8487 and parameters. Most of the properties are read-only, but some can be
8488 changed by a user.
8489 </desc>
8490
8491 <attribute name="minGuestRAM" type="unsigned long" readonly="yes">
8492 <desc>Minimum guest system memory in Megabytes.</desc>
8493 </attribute>
8494
8495 <attribute name="maxGuestRAM" type="unsigned long" readonly="yes">
8496 <desc>Maximum guest system memory in Megabytes.</desc>
8497 </attribute>
8498
8499 <attribute name="minGuestVRAM" type="unsigned long" readonly="yes">
8500 <desc>Minimum guest video memory in Megabytes.</desc>
8501 </attribute>
8502
8503 <attribute name="maxGuestVRAM" type="unsigned long" readonly="yes">
8504 <desc>Maximum guest video memory in Megabytes.</desc>
8505 </attribute>
8506
8507 <attribute name="minGuestCPUCount" type="unsigned long" readonly="yes">
8508 <desc>Minimum CPU count.</desc>
8509 </attribute>
8510
8511 <attribute name="maxGuestCPUCount" type="unsigned long" readonly="yes">
8512 <desc>Maximum CPU count.</desc>
8513 </attribute>
8514
8515 <attribute name="maxGuestMonitors" type="unsigned long" readonly="yes">
8516 <desc>Maximum of monitors which could be connected.</desc>
8517 </attribute>
8518
8519 <attribute name="infoVDSize" type="long long" readonly="yes">
8520 <desc>Maximum size of a virtual disk image in bytes. Informational value,
8521 does not reflect the limits of any virtual disk image format.</desc>
8522 </attribute>
8523
8524 <attribute name="serialPortCount" type="unsigned long" readonly="yes">
8525 <desc>
8526 Maximum number of serial ports associated with every
8527 <link to="IMachine"/> instance.
8528 </desc>
8529 </attribute>
8530
8531 <attribute name="parallelPortCount" type="unsigned long" readonly="yes">
8532 <desc>
8533 Maximum number of parallel ports associated with every
8534 <link to="IMachine"/> instance.
8535 </desc>
8536 </attribute>
8537
8538 <attribute name="maxBootPosition" type="unsigned long" readonly="yes">
8539 <desc>
8540 Maximum device position in the boot order. This value corresponds
8541 to the total number of devices a machine can boot from, to make it
8542 possible to include all possible devices to the boot list.
8543 <see><link to="IMachine::setBootOrder"/></see>
8544 </desc>
8545 </attribute>
8546
8547 <attribute name="defaultMachineFolder" type="wstring">
8548 <desc>
8549 Full path to the default directory used to create new or open
8550 existing machines when a machine settings file name contains no
8551 path.
8552
8553 Starting with VirtualBox 4.0, by default, this attribute contains
8554 the full path of folder named "VirtualBox VMs" in the user's
8555 home directory, which depends on the host platform.
8556
8557 When setting this attribute, a full path must be specified.
8558 Setting this property to @c null or an empty string or the
8559 special value "Machines" (for compatibility reasons) will restore
8560 that default value.
8561
8562 If the folder specified herein does not exist, it will be created
8563 automatically as needed.
8564
8565 <see>
8566 <link to="IVirtualBox::createMachine"/>,
8567 <link to="IVirtualBox::openMachine"/>
8568 </see>
8569 </desc>
8570 </attribute>
8571
8572 <attribute name="loggingLevel" type="wstring">
8573 <desc>
8574 Specifies the logging level in current use by VirtualBox.
8575 </desc>
8576 </attribute>
8577
8578 <attribute name="mediumFormats" type="IMediumFormat" safearray="yes" readonly="yes">
8579 <desc>
8580 List of all medium storage formats supported by this VirtualBox
8581 installation.
8582
8583 Keep in mind that the medium format identifier
8584 (<link to="IMediumFormat::id"/>) used in other API calls like
8585 <link to="IVirtualBox::createHardDisk"/> to refer to a particular
8586 medium format is a case-insensitive string. This means that, for
8587 example, all of the following strings:
8588 <pre>
8589 "VDI"
8590 "vdi"
8591 "VdI"</pre>
8592 refer to the same medium format.
8593
8594 Note that the virtual medium framework is backend-based, therefore
8595 the list of supported formats depends on what backends are currently
8596 installed.
8597
8598 <see><link to="IMediumFormat"/></see>
8599 </desc>
8600 </attribute>
8601
8602 <attribute name="defaultHardDiskFormat" type="wstring">
8603 <desc>
8604 Identifier of the default medium format used by VirtualBox.
8605
8606 The medium format set by this attribute is used by VirtualBox
8607 when the medium format was not specified explicitly. One example is
8608 <link to="IVirtualBox::createHardDisk"/> with the empty
8609 format argument. A more complex example is implicit creation of
8610 differencing media when taking a snapshot of a virtual machine:
8611 this operation will try to use a format of the parent medium first
8612 and if this format does not support differencing media the default
8613 format specified by this argument will be used.
8614
8615 The list of supported medium formats may be obtained by the
8616 <link to="#mediumFormats"/> call. Note that the default medium
8617 format must have a capability to create differencing media;
8618 otherwise operations that create media implicitly may fail
8619 unexpectedly.
8620
8621 The initial value of this property is <tt>"VDI"</tt> in the current
8622 version of the VirtualBox product, but may change in the future.
8623
8624 <note>
8625 Setting this property to @c null or empty string will restore the
8626 initial value.
8627 </note>
8628
8629 <see>
8630 <link to="#mediumFormats"/>,
8631 <link to="IMediumFormat::id"/>,
8632 <link to="IVirtualBox::createHardDisk"/>
8633 </see>
8634 </desc>
8635 </attribute>
8636
8637 <attribute name="freeDiskSpaceWarning" type="long long">
8638 <desc>Issue a warning if the free disk space is below (or in some disk
8639 intensive operation is expected to go below) the given size in
8640 bytes.</desc>
8641 </attribute>
8642
8643 <attribute name="freeDiskSpacePercentWarning" type="unsigned long">
8644 <desc>Issue a warning if the free disk space is below (or in some disk
8645 intensive operation is expected to go below) the given percentage.</desc>
8646 </attribute>
8647
8648 <attribute name="freeDiskSpaceError" type="long long">
8649 <desc>Issue an error if the free disk space is below (or in some disk
8650 intensive operation is expected to go below) the given size in
8651 bytes.</desc>
8652 </attribute>
8653
8654 <attribute name="freeDiskSpacePercentError" type="unsigned long">
8655 <desc>Issue an error if the free disk space is below (or in some disk
8656 intensive operation is expected to go below) the given percentage.</desc>
8657 </attribute>
8658
8659 <attribute name="VRDEAuthLibrary" type="wstring">
8660 <desc>
8661 Library that provides authentication for Remote Desktop clients. The library
8662 is used if a virtual machine's authentication type is set to "external"
8663 in the VM RemoteDisplay configuration.
8664
8665 The system library extension (".DLL" or ".so") must be omitted.
8666 A full path can be specified; if not, then the library must reside on the
8667 system's default library path.
8668
8669 The default value of this property is <tt>"VBoxAuth"</tt>. There is a library
8670 of that name in one of the default VirtualBox library directories.
8671
8672 For details about VirtualBox authentication libraries and how to implement
8673 them, please refer to the VirtualBox manual.
8674
8675 <note>
8676 Setting this property to @c null or empty string will restore the
8677 initial value.
8678 </note>
8679 </desc>
8680 </attribute>
8681
8682 <attribute name="webServiceAuthLibrary" type="wstring">
8683 <desc>
8684 Library that provides authentication for webservice clients. The library
8685 is used if a virtual machine's authentication type is set to "external"
8686 in the VM RemoteDisplay configuration and will be called from
8687 within the <link to="IWebsessionManager::logon" /> implementation.
8688
8689 As opposed to <link to="ISystemProperties::VRDEAuthLibrary" />,
8690 there is no per-VM setting for this, as the webservice is a global
8691 resource (if it is running). Only for this setting (for the webservice),
8692 setting this value to a literal <tt>"null"</tt> string disables authentication,
8693 meaning that <link to="IWebsessionManager::logon" /> will always succeed,
8694 no matter what user name and password are supplied.
8695
8696 The initial value of this property is <tt>"VBoxAuth"</tt>,
8697 meaning that the webservice will use the same authentication
8698 library that is used by default for VRDE (again, see
8699 <link to="ISystemProperties::VRDEAuthLibrary" />).
8700 The format and calling convention of authentication libraries
8701 is the same for the webservice as it is for VRDE.
8702
8703 <note>
8704 Setting this property to @c null or empty string will restore the
8705 initial value.
8706 </note>
8707 </desc>
8708 </attribute>
8709
8710 <attribute name="defaultVRDEExtPack" type="wstring">
8711 <desc>
8712 The name of the extension pack providing the default VRDE.
8713
8714 This attribute is for choosing between multiple extension packs
8715 providing VRDE. If only one is installed, it will automatically be the
8716 default one. The attribute value can be empty if no VRDE extension
8717 pack is installed.
8718
8719 For details about VirtualBox Remote Desktop Extension and how to
8720 implement one, please refer to the VirtualBox SDK.
8721 </desc>
8722 </attribute>
8723
8724 <attribute name="logHistoryCount" type="unsigned long">
8725 <desc>
8726 This value specifies how many old release log files are kept.
8727 </desc>
8728 </attribute>
8729
8730 <attribute name="defaultAudioDriver" type="AudioDriverType" readonly="yes">
8731 <desc>This value hold the default audio driver for the current
8732 system.</desc>
8733 </attribute>
8734
8735 <attribute name="autostartDatabasePath" type="wstring">
8736 <desc>
8737 The path to the autostart database. Depending on the host this might
8738 be a filesystem path or something else.
8739 </desc>
8740 </attribute>
8741
8742 <attribute name="defaultAdditionsISO" type="wstring">
8743 <desc>
8744 The path to the default Guest Additions ISO image. Can be empty if
8745 the location is not known in this installation.
8746 </desc>
8747 </attribute>
8748
8749 <attribute name="defaultFrontend" type="wstring">
8750 <desc>
8751 Selects which VM frontend should be used by default when launching
8752 a VM through the <link to="IMachine::launchVMProcess" /> method.
8753 Empty or @c null strings do not define a particular default, it is up
8754 to <link to="IMachine::launchVMProcess" /> to select one. See the
8755 description of <link to="IMachine::launchVMProcess" /> for the valid
8756 frontend types.
8757
8758 This global setting is overridden by the per-VM attribute
8759 <link to="IMachine::defaultFrontend" /> or a frontend type
8760 passed to <link to="IMachine::launchVMProcess" />.
8761 </desc>
8762 </attribute>
8763
8764 <method name="getMaxNetworkAdapters">
8765 <desc>
8766 Maximum total number of network adapters associated with every
8767 <link to="IMachine"/> instance.
8768 </desc>
8769
8770 <param name="chipset" type="ChipsetType" dir="in">
8771 <desc>The chipset type to get the value for.</desc>
8772 </param>
8773
8774
8775 <param name="maxNetworkAdapters" type="unsigned long" dir="return">
8776 <desc>The maximum total number of network adapters allowed.</desc>
8777 </param>
8778
8779 </method>
8780
8781 <method name="getMaxNetworkAdaptersOfType">
8782 <desc>
8783 Maximum number of network adapters of a given attachment type,
8784 associated with every <link to="IMachine"/> instance.
8785 </desc>
8786
8787 <param name="chipset" type="ChipsetType" dir="in">
8788 <desc>The chipset type to get the value for.</desc>
8789 </param>
8790
8791 <param name="type" type="NetworkAttachmentType" dir="in">
8792 <desc>Type of attachment.</desc>
8793 </param>
8794
8795 <param name="maxNetworkAdapters" type="unsigned long" dir="return">
8796 <desc>The maximum number of network adapters allowed for
8797 particular chipset and attachment type.</desc>
8798 </param>
8799
8800 </method>
8801
8802
8803 <method name="getMaxDevicesPerPortForStorageBus">
8804 <desc>Returns the maximum number of devices which can be attached to a port
8805 for the given storage bus.</desc>
8806
8807 <param name="bus" type="StorageBus" dir="in">
8808 <desc>The storage bus type to get the value for.</desc>
8809 </param>
8810
8811 <param name="maxDevicesPerPort" type="unsigned long" dir="return">
8812 <desc>The maximum number of devices which can be attached to the port for the given
8813 storage bus.</desc>
8814 </param>
8815 </method>
8816
8817 <method name="getMinPortCountForStorageBus">
8818 <desc>Returns the minimum number of ports the given storage bus supports.</desc>
8819
8820 <param name="bus" type="StorageBus" dir="in">
8821 <desc>The storage bus type to get the value for.</desc>
8822 </param>
8823
8824 <param name="minPortCount" type="unsigned long" dir="return">
8825 <desc>The minimum number of ports for the given storage bus.</desc>
8826 </param>
8827 </method>
8828
8829 <method name="getMaxPortCountForStorageBus">
8830 <desc>Returns the maximum number of ports the given storage bus supports.</desc>
8831
8832 <param name="bus" type="StorageBus" dir="in">
8833 <desc>The storage bus type to get the value for.</desc>
8834 </param>
8835
8836 <param name="maxPortCount" type="unsigned long" dir="return">
8837 <desc>The maximum number of ports for the given storage bus.</desc>
8838 </param>
8839 </method>
8840
8841 <method name="getMaxInstancesOfStorageBus">
8842 <desc>Returns the maximum number of storage bus instances which
8843 can be configured for each VM. This corresponds to the number of
8844 storage controllers one can have. Value may depend on chipset type
8845 used.</desc>
8846
8847 <param name="chipset" type="ChipsetType" dir="in">
8848 <desc>The chipset type to get the value for.</desc>
8849 </param>
8850
8851 <param name="bus" type="StorageBus" dir="in">
8852 <desc>The storage bus type to get the value for.</desc>
8853 </param>
8854
8855 <param name="maxInstances" type="unsigned long" dir="return">
8856 <desc>The maximum number of instances for the given storage bus.</desc>
8857 </param>
8858 </method>
8859
8860 <method name="getDeviceTypesForStorageBus">
8861 <desc>Returns list of all the supported device types
8862 (<link to="DeviceType"/>) for the given type of storage
8863 bus.</desc>
8864
8865 <param name="bus" type="StorageBus" dir="in">
8866 <desc>The storage bus type to get the value for.</desc>
8867 </param>
8868
8869 <param name="deviceTypes" type="DeviceType" safearray="yes" dir="return">
8870 <desc>The list of all supported device types for the given storage bus.</desc>
8871 </param>
8872 </method>
8873
8874 <method name="getDefaultIoCacheSettingForStorageController">
8875 <desc>Returns the default I/O cache setting for the
8876 given storage controller</desc>
8877
8878 <param name="controllerType" type="StorageControllerType" dir="in">
8879 <desc>The storage controller to the setting for.</desc>
8880 </param>
8881
8882 <param name="enabled" type="boolean" dir="return">
8883 <desc>Returned flag indicating the default value</desc>
8884 </param>
8885 </method>
8886 </interface>
8887
8888 <!--
8889 // IGuest
8890 /////////////////////////////////////////////////////////////////////////
8891 -->
8892
8893 <interface
8894 name="IGuestOSType" extends="$unknown"
8895 uuid="6d968f9a-858b-4c50-bf17-241f069e94c2"
8896 wsmap="struct"
8897 >
8898 <desc>
8899 </desc>
8900
8901 <attribute name="familyId" type="wstring" readonly="yes">
8902 <desc>Guest OS family identifier string.</desc>
8903 </attribute>
8904
8905 <attribute name="familyDescription" type="wstring" readonly="yes">
8906 <desc>Human readable description of the guest OS family.</desc>
8907 </attribute>
8908
8909 <attribute name="id" type="wstring" readonly="yes">
8910 <desc>Guest OS identifier string.</desc>
8911 </attribute>
8912
8913 <attribute name="description" type="wstring" readonly="yes">
8914 <desc>Human readable description of the guest OS.</desc>
8915 </attribute>
8916
8917 <attribute name="is64Bit" type="boolean" readonly="yes">
8918 <desc>Returns @c true if the given OS is 64-bit</desc>
8919 </attribute>
8920
8921 <attribute name="recommendedIOAPIC" type="boolean" readonly="yes">
8922 <desc>Returns @c true if IO APIC recommended for this OS type.</desc>
8923 </attribute>
8924
8925 <attribute name="recommendedVirtEx" type="boolean" readonly="yes">
8926 <desc>Returns @c true if VT-x or AMD-V recommended for this OS type.</desc>
8927 </attribute>
8928
8929 <attribute name="recommendedRAM" type="unsigned long" readonly="yes">
8930 <desc>Recommended RAM size in Megabytes.</desc>
8931 </attribute>
8932
8933 <attribute name="recommendedVRAM" type="unsigned long" readonly="yes">
8934 <desc>Recommended video RAM size in Megabytes.</desc>
8935 </attribute>
8936
8937 <attribute name="recommended2DVideoAcceleration" type="boolean" readonly="yes">
8938 <desc>Returns @c true if 2D video acceleration is recommended for this OS type.</desc>
8939 </attribute>
8940
8941 <attribute name="recommended3DAcceleration" type="boolean" readonly="yes">
8942 <desc>Returns @c true if 3D acceleration is recommended for this OS type.</desc>
8943 </attribute>
8944
8945 <attribute name="recommendedHDD" type="long long" readonly="yes">
8946 <desc>Recommended hard disk size in bytes.</desc>
8947 </attribute>
8948
8949 <attribute name="adapterType" type="NetworkAdapterType" readonly="yes">
8950 <desc>Returns recommended network adapter for this OS type.</desc>
8951 </attribute>
8952
8953 <attribute name="recommendedPAE" type="boolean" readonly="yes">
8954 <desc>Returns @c true if using PAE is recommended for this OS type.</desc>
8955 </attribute>
8956
8957 <attribute name="recommendedDVDStorageController" type="StorageControllerType" readonly="yes">
8958 <desc>Recommended storage controller type for DVD/CD drives.</desc>
8959 </attribute>
8960
8961 <attribute name="recommendedDVDStorageBus" type="StorageBus" readonly="yes">
8962 <desc>Recommended storage bus type for DVD/CD drives.</desc>
8963 </attribute>
8964
8965 <attribute name="recommendedHDStorageController" type="StorageControllerType" readonly="yes">
8966 <desc>Recommended storage controller type for HD drives.</desc>
8967 </attribute>
8968
8969 <attribute name="recommendedHDStorageBus" type="StorageBus" readonly="yes">
8970 <desc>Recommended storage bus type for HD drives.</desc>
8971 </attribute>
8972
8973 <attribute name="recommendedFirmware" type="FirmwareType" readonly="yes">
8974 <desc>Recommended firmware type.</desc>
8975 </attribute>
8976
8977 <attribute name="recommendedUSBHID" type="boolean" readonly="yes">
8978 <desc>Returns @c true if using USB Human Interface Devices, such as keyboard and mouse recommended.</desc>
8979 </attribute>
8980
8981 <attribute name="recommendedHPET" type="boolean" readonly="yes">
8982 <desc>Returns @c true if using HPET is recommended for this OS type.</desc>
8983 </attribute>
8984
8985 <attribute name="recommendedUSBTablet" type="boolean" readonly="yes">
8986 <desc>Returns @c true if using a USB Tablet is recommended.</desc>
8987 </attribute>
8988
8989 <attribute name="recommendedRTCUseUTC" type="boolean" readonly="yes">
8990 <desc>Returns @c true if the RTC of this VM should be set to UTC</desc>
8991 </attribute>
8992
8993 <attribute name="recommendedChipset" type="ChipsetType" readonly="yes">
8994 <desc>Recommended chipset type.</desc>
8995 </attribute>
8996
8997 <attribute name="recommendedAudioController" type="AudioControllerType" readonly="yes">
8998 <desc>Recommended audio type.</desc>
8999 </attribute>
9000
9001 <attribute name="recommendedFloppy" type="boolean" readonly="yes">
9002 <desc>Returns @c true a floppy drive is recommended for this OS type.</desc>
9003 </attribute>
9004
9005 <attribute name="recommendedUSB" type="boolean" readonly="yes">
9006 <desc>Returns @c true a USB controller is recommended for this OS type.</desc>
9007 </attribute>
9008
9009 </interface>
9010
9011 <enum
9012 name="AdditionsFacilityType"
9013 uuid="98f7f957-89fb-49b6-a3b1-31e3285eb1d8"
9014 >
9015 <desc>
9016 Guest Additions facility IDs.
9017 </desc>
9018
9019 <const name="None" value="0">
9020 <desc>No/invalid facility.</desc>
9021 </const>
9022 <const name="VBoxGuestDriver" value="20">
9023 <desc>VirtualBox base driver (VBoxGuest).</desc>
9024 </const>
9025 <const name="AutoLogon" value="90">
9026 <desc>Auto-logon modules (VBoxGINA, VBoxCredProv, pam_vbox).</desc>
9027 </const>
9028 <const name="VBoxService" value="100">
9029 <desc>VirtualBox system service (VBoxService).</desc>
9030 </const>
9031 <const name="VBoxTrayClient" value="101">
9032 <desc>VirtualBox desktop integration (VBoxTray on Windows, VBoxClient on non-Windows).</desc>
9033 </const>
9034 <const name="Seamless" value="1000">
9035 <desc>Seamless guest desktop integration.</desc>
9036 </const>
9037 <const name="Graphics" value="1100">
9038 <desc>Guest graphics mode. If not enabled, seamless rendering will not work, resize hints
9039 are not immediately acted on and guest display resizes are probably not initiated by
9040 the guest additions.
9041 </desc>
9042 </const>
9043 <const name="All" value="2147483646">
9044 <desc>All facilities selected.</desc>
9045 </const>
9046 </enum>
9047
9048 <enum
9049 name="AdditionsFacilityClass"
9050 uuid="446451b2-c88d-4e5d-84c9-91bc7f533f5f"
9051 >
9052 <desc>
9053 Guest Additions facility classes.
9054 </desc>
9055
9056 <const name="None" value="0">
9057 <desc>No/invalid class.</desc>
9058 </const>
9059 <const name="Driver" value="10">
9060 <desc>Driver.</desc>
9061 </const>
9062 <const name="Service" value="30">
9063 <desc>System service.</desc>
9064 </const>
9065 <const name="Program" value="50">
9066 <desc>Program.</desc>
9067 </const>
9068 <const name="Feature" value="100">
9069 <desc>Feature.</desc>
9070 </const>
9071 <const name="ThirdParty" value="999">
9072 <desc>Third party.</desc>
9073 </const>
9074 <const name="All" value="2147483646">
9075 <desc>All facility classes selected.</desc>
9076 </const>
9077 </enum>
9078
9079 <enum
9080 name="AdditionsFacilityStatus"
9081 uuid="ce06f9e1-394e-4fe9-9368-5a88c567dbde"
9082 >
9083 <desc>
9084 Guest Additions facility states.
9085 </desc>
9086
9087 <const name="Inactive" value="0">
9088 <desc>Facility is not active.</desc>
9089 </const>
9090 <const name="Paused" value="1">
9091 <desc>Facility has been paused.</desc>
9092 </const>
9093 <const name="PreInit" value="20">
9094 <desc>Facility is preparing to initialize.</desc>
9095 </const>
9096 <const name="Init" value="30">
9097 <desc>Facility is initializing.</desc>
9098 </const>
9099 <const name="Active" value="50">
9100 <desc>Facility is up and running.</desc>
9101 </const>
9102 <const name="Terminating" value="100">
9103 <desc>Facility is shutting down.</desc>
9104 </const>
9105 <const name="Terminated" value="101">
9106 <desc>Facility successfully shut down.</desc>
9107 </const>
9108 <const name="Failed" value="800">
9109 <desc>Facility failed to start.</desc>
9110 </const>
9111 <const name="Unknown" value="999">
9112 <desc>Facility status is unknown.</desc>
9113 </const>
9114 </enum>
9115
9116 <interface
9117 name="IAdditionsFacility" extends="$unknown"
9118 uuid="54992946-6af1-4e49-98ec-58b558b7291e"
9119 wsmap="struct"
9120 >
9121 <desc>
9122 Structure representing a Guest Additions facility.
9123 </desc>
9124
9125 <attribute name="classType" type="AdditionsFacilityClass" readonly="yes">
9126 <desc>The class this facility is part of.</desc>
9127 </attribute>
9128
9129 <attribute name="lastUpdated" type="long long" readonly="yes">
9130 <desc>
9131 Time stamp of the last status update,
9132 in milliseconds since 1970-01-01 UTC.
9133 </desc>
9134 </attribute>
9135
9136 <attribute name="name" type="wstring" readonly="yes">
9137 <desc>The facility's friendly name.</desc>
9138 </attribute>
9139
9140 <attribute name="status" type="AdditionsFacilityStatus" readonly="yes">
9141 <desc>The current status.</desc>
9142 </attribute>
9143
9144 <attribute name="type" type="AdditionsFacilityType" readonly="yes">
9145 <desc>The facility's type ID.</desc>
9146 </attribute>
9147 </interface>
9148
9149 <enum
9150 name="AdditionsRunLevelType"
9151 uuid="a25417ee-a9dd-4f5b-b0dc-377860087754"
9152 >
9153 <desc>
9154 Guest Additions run level type.
9155 </desc>
9156
9157 <const name="None" value="0">
9158 <desc>Guest Additions are not loaded.</desc>
9159 </const>
9160 <const name="System" value="1">
9161 <desc>Guest drivers are loaded.</desc>
9162 </const>
9163 <const name="Userland" value="2">
9164 <desc>Common components (such as application services) are loaded.</desc>
9165 </const>
9166 <const name="Desktop" value="3">
9167 <desc>Per-user desktop components are loaded.</desc>
9168 </const>
9169 </enum>
9170
9171 <enum
9172 name="AdditionsUpdateFlag"
9173 uuid="726a818d-18d6-4389-94e8-3e9e6826171a"
9174 >
9175 <desc>
9176 Guest Additions update flags.
9177 </desc>
9178
9179 <const name="None" value="0">
9180 <desc>No flag set.</desc>
9181 </const>
9182 <const name="WaitForUpdateStartOnly" value="1">
9183 <desc>Starts the regular updating process and waits until the
9184 actual Guest Additions update inside the guest was started.
9185 This can be necessary due to needed interaction with the guest
9186 OS during the installation phase.</desc>
9187 </const>
9188 </enum>
9189
9190 <enum
9191 name="GuestSessionStatus"
9192 uuid="ac2669da-4624-44f2-85b5-0b0bfb8d8673"
9193 >
9194 <desc>
9195 Guest session status. This enumeration represents possible values of
9196 the <link to="IGuestSession::status"/> attribute.
9197 </desc>
9198 <const name="Undefined" value="0">
9199 <desc>Guest session is in an undefined state.</desc>
9200 </const>
9201 <const name="Starting" value="10">
9202 <desc>Guest session is being started.</desc>
9203 </const>
9204 <const name="Started" value="100">
9205 <desc>Guest session has been started.</desc>
9206 </const>
9207 <const name="Terminating" value="480">
9208 <desc>Guest session is being terminated.</desc>
9209 </const>
9210 <const name="Terminated" value="500">
9211 <desc>Guest session terminated normally.</desc>
9212 </const>
9213 <const name="TimedOutKilled" value="512">
9214 <desc>Guest session timed out and was killed.</desc>
9215 </const>
9216 <const name="TimedOutAbnormally" value="513">
9217 <desc>Guest session timed out and was not killed successfully.</desc>
9218 </const>
9219 <const name="Down" value="600">
9220 <desc>Service/OS is stopping, guest session was killed.</desc>
9221 </const>
9222 <const name="Error" value="800">
9223 <desc>Something went wrong.</desc>
9224 </const>
9225 </enum>
9226
9227 <enum
9228 name="GuestSessionWaitForFlag"
9229 uuid="bb7a372a-f635-4e11-a81a-e707f3a52ef5"
9230 >
9231 <desc>
9232 Guest session waiting flags. Multiple flags can be combined.
9233 </desc>
9234
9235 <const name="None" value="0">
9236 <desc>No waiting flags specified. Do not use this.</desc>
9237 </const>
9238 <const name="Start" value="1">
9239 <desc>Wait for the guest session being started.</desc>
9240 </const>
9241 <const name="Terminate" value="2">
9242 <desc>Wait for the guest session being terminated.</desc>
9243 </const>
9244 <const name="Status" value="4">
9245 <desc>Wait for the next guest session status change.</desc>
9246 </const>
9247 </enum>
9248
9249 <enum
9250 name="GuestSessionWaitResult"
9251 uuid="c0f6a8a5-fdb6-42bf-a582-56c6f82bcd2d"
9252 >
9253 <desc>
9254 Guest session waiting results. Depending on the session waiting flags (for
9255 more information see <link to="GuestSessionWaitForFlag"/>) the waiting result
9256 can vary based on the session's current status.
9257
9258 To wait for a guest session to terminate after it has been
9259 created by <link to="IGuest::createSession"/> one would specify
9260 GuestSessionWaitResult_Terminate.
9261 </desc>
9262
9263 <const name="None" value="0">
9264 <desc>No result was returned. Not being used.</desc>
9265 </const>
9266 <const name="Start" value="1">
9267 <desc>The guest session has been started.</desc>
9268 </const>
9269 <const name="Terminate" value="2">
9270 <desc>The guest session has been terminated.</desc>
9271 </const>
9272 <const name="Status" value="3">
9273 <desc>
9274 The guest session has changed its status. The status then can
9275 be retrieved via <link to="IGuestSession::status"/>.
9276 </desc>
9277 </const>
9278 <const name="Error" value="4">
9279 <desc>Error while executing the process.</desc>
9280 </const>
9281 <const name="Timeout" value="5">
9282 <desc>
9283 The waiting operation timed out. This also will happen
9284 when no event has been occured matching the
9285 current waiting flags in a <link to="IGuestSession::waitFor"/> call.
9286 </desc>
9287 </const>
9288 <const name="WaitFlagNotSupported" value="6">
9289 <desc>
9290 A waiting flag specified in the <link to="IGuestSession::waitFor"/> call
9291 is not supported by the guest.
9292 </desc>
9293 </const>
9294 </enum>
9295
9296 <enum
9297 name="FileSeekType"
9298 uuid="1b73f4f3-3515-4073-a506-76878d9e2541"
9299 >
9300 <desc>
9301 File seeking types.
9302 </desc>
9303
9304 <const name="Set" value="0">
9305 <desc>Seek from the start of the file.</desc>
9306 </const>
9307 <const name="Current" value="1">
9308 <desc>Seek from the current file position.</desc>
9309 </const>
9310 </enum>
9311
9312 <enum
9313 name="ProcessInputFlag"
9314 uuid="5d38c1dd-2604-4ddf-92e5-0c0cdd3bdbd5"
9315 >
9316 <desc>
9317 Guest process input flags.
9318 </desc>
9319 <const name="None" value="0">
9320 <desc>No flag set.</desc>
9321 </const>
9322 <const name="EndOfFile" value="1">
9323 <desc>End of file (input) reached.</desc>
9324 </const>
9325 </enum>
9326
9327 <enum
9328 name="ProcessOutputFlag"
9329 uuid="9979e85a-52bb-40b7-870c-57115e27e0f1"
9330 >
9331 <desc>
9332 Guest process output flags for specifying which
9333 type of output to retrieve.
9334 </desc>
9335 <const name="None" value="0">
9336 <desc>No flags set. Get output from stdout.</desc>
9337 </const>
9338 <const name="StdErr" value="1">
9339 <desc>Get output from stderr.</desc>
9340 </const>
9341 </enum>
9342
9343 <enum
9344 name="ProcessWaitForFlag"
9345 uuid="23b550c7-78e1-437e-98f0-65fd9757bcd2"
9346 >
9347 <desc>
9348 Process waiting flags. Multiple flags can be combined.
9349 </desc>
9350
9351 <const name="None" value="0">
9352 <desc>No waiting flags specified. Do not use this.</desc>
9353 </const>
9354 <const name="Start" value="1">
9355 <desc>Wait for the process being started.</desc>
9356 </const>
9357 <const name="Terminate" value="2">
9358 <desc>Wait for the process being terminated.</desc>
9359 </const>
9360 <const name="StdIn" value="4">
9361 <desc>Wait for stdin becoming available.</desc>
9362 </const>
9363 <const name="StdOut" value="8">
9364 <desc>Wait for data becoming available on stdout.</desc>
9365 </const>
9366 <const name="StdErr" value="16">
9367 <desc>Wait for data becoming available on stderr.</desc>
9368 </const>
9369 </enum>
9370
9371 <enum
9372 name="ProcessWaitResult"
9373 uuid="40719cbe-f192-4fe9-a231-6697b3c8e2b4"
9374 >
9375 <desc>
9376 Process waiting results. Depending on the process waiting flags (for
9377 more information see <link to="ProcessWaitForFlag"/>) the waiting result
9378 can vary based on the processes' current status.
9379
9380 To wait for a guest process to terminate after it has been
9381 created by <link to="IGuestSession::processCreate"/> or <link to="IGuestSession::processCreateEx"/>
9382 one would specify ProcessWaitResult_Terminate.
9383
9384 If a guest process has been started with ProcessCreateFlag_WaitForStdOut
9385 a client can wait with ProcessWaitResult_StdOut for new data to arrive on
9386 stdout; same applies for ProcessCreateFlag_WaitForStdErr and
9387 ProcessWaitResult_StdErr.
9388 </desc>
9389
9390 <const name="None" value="0">
9391 <desc>No result was returned. Not being used.</desc>
9392 </const>
9393 <const name="Start" value="1">
9394 <desc>The process has been started.</desc>
9395 </const>
9396 <const name="Terminate" value="2">
9397 <desc>The process has been terminated.</desc>
9398 </const>
9399 <const name="Status" value="3">
9400 <desc>
9401 The process has changed its status. The status then can
9402 be retrieved via <link to="IProcess::status"/>.
9403 </desc>
9404 </const>
9405 <const name="Error" value="4">
9406 <desc>Error while executing the process.</desc>
9407 </const>
9408 <const name="Timeout" value="5">
9409 <desc>
9410 The waiting operation timed out. This also will happen
9411 when no event has been occured matching the
9412 current waiting flags in a <link to="IProcess::waitFor"/> call.
9413 </desc>
9414 </const>
9415 <const name="StdIn" value="6">
9416 <desc>
9417 The process signalled that stdin became available for writing
9418 and that the process awaits input now.</desc>
9419 </const>
9420 <const name="StdOut" value="7">
9421 <desc>Data on stdout became available for reading.</desc>
9422 </const>
9423 <const name="StdErr" value="8">
9424 <desc>Data on stderr became available for reading.</desc>
9425 </const>
9426 <const name="WaitFlagNotSupported" value="9">
9427 <desc>
9428 A waiting flag specified in the <link to="IProcess::waitFor"/> call
9429 is not supported by the guest.
9430 </desc>
9431 </const>
9432 </enum>
9433
9434 <enum
9435 name="CopyFileFlag"
9436 uuid="23f79fdf-738a-493d-b80b-42d607c9b916"
9437 >
9438 <desc>
9439 File copying flags.
9440 </desc>
9441 <const name="None" value="0">
9442 <desc>No flag set.</desc>
9443 </const>
9444 <const name="Recursive" value="1">
9445 <desc>Copy directories recursively.</desc>
9446 </const>
9447 <const name="Update" value="2">
9448 <desc>Only copy when the source file is newer than the destination file or when the destination file is missing.</desc>
9449 </const>
9450 <const name="FollowLinks" value="4">
9451 <desc>Follow symbolic links.</desc>
9452 </const>
9453 </enum>
9454
9455 <enum
9456 name="DirectoryCreateFlag"
9457 uuid="bd721b0e-ced5-4f79-b368-249897c32a36"
9458 >
9459 <desc>
9460 Directory creation flags.
9461 </desc>
9462 <const name="None" value="0">
9463 <desc>No flag set.</desc>
9464 </const>
9465 <const name="Parents" value="1">
9466 <desc>No error if existing, make parent directories as needed.</desc>
9467 </const>
9468 </enum>
9469
9470 <enum
9471 name="DirectoryRemoveRecFlag"
9472 uuid="455aabf0-7692-48f6-9061-f21579b65769"
9473 >
9474 <desc>
9475 Directory recursive removement flags.
9476 </desc>
9477
9478 <const name="None" value="0">
9479 <desc>No flag set.</desc>
9480 </const>
9481 <const name="ContentAndDir" value="1">
9482 <desc>Delete the content of the directory and the directory itself.</desc>
9483 </const>
9484 <const name="ContentOnly" value="2">
9485 <desc>Only delete the content of the directory, omit the directory it self.</desc>
9486 </const>
9487 </enum>
9488
9489 <enum
9490 name="PathRenameFlag"
9491 uuid="f3baa09f-c758-453d-b91c-c7787d76351d"
9492 >
9493 <desc>
9494 Path renaming flags.
9495 </desc>
9496
9497 <const name="None" value="0">
9498 <desc>No flag set.</desc>
9499 </const>
9500 <const name="NoReplace" value="1">
9501 <desc>Do not replace anything.</desc>
9502 </const>
9503 <const name="Replace" value="2">
9504 <desc>This will replace attempt any target which isn't a directory.</desc>
9505 </const>
9506 <const name="NoSymlinks" value="4">
9507 <desc>Don't allow symbolic links as part of the path.</desc>
9508 </const>
9509 </enum>
9510
9511 <enum
9512 name="ProcessCreateFlag"
9513 uuid="35192799-bfde-405d-9bea-c735ab9998e4"
9514 >
9515 <desc>
9516 Guest process execution flags.
9517 </desc>
9518
9519 <const name="None" value="0">
9520 <desc>No flag set.</desc>
9521 </const>
9522 <const name="WaitForProcessStartOnly" value="1">
9523 <desc>Only use the specified timeout value to wait for starting the guest process - the guest
9524 process itself then uses an infinite timeout.</desc>
9525 </const>
9526 <const name="IgnoreOrphanedProcesses" value="2">
9527 <desc>Do not report an error when executed processes are still alive when VBoxService or the guest OS is shutting down.</desc>
9528 </const>
9529 <const name="Hidden" value="4">
9530 <desc>Do not show the started process according to the guest OS guidelines.</desc>
9531 </const>
9532 <const name="NoProfile" value="8">
9533 <desc>Do not use the user's profile data when exeuting a process. Only available for Windows guests.</desc>
9534 </const>
9535 <const name="WaitForStdOut" value="16">
9536 <desc>The guest process waits until all data from stdout is read out.</desc>
9537 </const>
9538 <const name="WaitForStdErr" value="32">
9539 <desc>The guest process waits until all data from stderr is read out.</desc>
9540 </const>
9541 <const name="ExpandArguments" value="64">
9542 <desc>Expands environment variables in process arguments.</desc>
9543 </const>
9544 </enum>
9545
9546 <enum
9547 name="ProcessPriority"
9548 uuid="ee8cac50-e232-49fe-806b-d1214d9c2e49"
9549 >
9550 <desc>
9551 Process priorities.
9552 </desc>
9553
9554 <const name="Invalid" value="0">
9555 <desc>Invalid priority, do not use.</desc>
9556 </const>
9557 <const name="Default" value="1">
9558 <desc>Default process priority determined by the OS.</desc>
9559 </const>
9560 </enum>
9561
9562 <enum
9563 name="SymlinkType"
9564 uuid="37794668-f8f1-4714-98a5-6f8fa2ed0118"
9565 >
9566 <desc>
9567 Symbolic link types.
9568 </desc>
9569
9570 <const name="Unknown" value="0">
9571 <desc>It is not known what is being targeted.</desc>
9572 </const>
9573 <const name="Directory" value="1">
9574 <desc>The link targets a directory.</desc>
9575 </const>
9576 <const name="File" value="2">
9577 <desc>The link targets a file (or whatever else).</desc>
9578 </const>
9579 </enum>
9580
9581 <enum
9582 name="SymlinkReadFlag"
9583 uuid="b7fe2b9d-790e-4b25-8adf-1ca33026931f"
9584 >
9585 <desc>
9586 Symbolic link reading flags.
9587 </desc>
9588
9589 <const name="None" value="0">
9590 <desc>No flags set.</desc>
9591 </const>
9592 <const name="NoSymlinks" value="1">
9593 <desc>Don't allow symbolic links as part of the path.</desc>
9594 </const>
9595 </enum>
9596
9597 <enum
9598 name="ProcessStatus"
9599 uuid="4d52368f-5b48-4bfe-b486-acf89139b52f"
9600 >
9601 <desc>
9602 Process execution statuses.
9603 </desc>
9604
9605 <const name="Undefined" value="0">
9606 <desc>Process is in an undefined state.</desc>
9607 </const>
9608 <const name="Starting" value="10">
9609 <desc>Process is being started.</desc>
9610 </const>
9611 <const name="Started" value="100">
9612 <desc>Process has been started.</desc>
9613 </const>
9614 <const name="Paused" value="110">
9615 <desc>Process has been paused.</desc>
9616 </const>
9617 <const name="Terminating" value="480">
9618 <desc>Process is being terminated.</desc>
9619 </const>
9620 <const name="TerminatedNormally" value="500">
9621 <desc>Process terminated normally.</desc>
9622 </const>
9623 <const name="TerminatedSignal" value="510">
9624 <desc>Process terminated via signal.</desc>
9625 </const>
9626 <const name="TerminatedAbnormally" value="511">
9627 <desc>Process terminated abnormally.</desc>
9628 </const>
9629 <const name="TimedOutKilled" value="512">
9630 <desc>Process timed out and was killed.</desc>
9631 </const>
9632 <const name="TimedOutAbnormally" value="513">
9633 <desc>Process timed out and was not killed successfully.</desc>
9634 </const>
9635 <const name="Down" value="600">
9636 <desc>Service/OS is stopping, process was killed.</desc>
9637 </const>
9638 <const name="Error" value="800">
9639 <desc>Something went wrong.</desc>
9640 </const>
9641 </enum>
9642
9643 <enum
9644 name="ProcessInputStatus"
9645 uuid="a4a0ef9c-29cc-4805-9803-c8215ae9da6c"
9646 >
9647 <desc>
9648 Process input statuses.
9649 </desc>
9650
9651 <const name="Undefined" value="0">
9652 <desc>Undefined state.</desc>
9653 </const>
9654 <const name="Broken" value="1">
9655 <desc>Input pipe is broken.</desc>
9656 </const>
9657 <const name="Available" value="10">
9658 <desc>Input pipe became available for writing.</desc>
9659 </const>
9660 <const name="Written" value="50">
9661 <desc>Data has been successfully written.</desc>
9662 </const>
9663 <const name="Overflow" value="100">
9664 <desc>Too much input data supplied, data overflow.</desc>
9665 </const>
9666 </enum>
9667
9668 <enum
9669 name="FileStatus"
9670 uuid="8c86468b-b97b-4080-8914-e29f5b0abd2c"
9671 >
9672 <desc>
9673 File statuses.
9674 </desc>
9675
9676 <const name="Undefined" value="0">
9677 <desc>File is in an undefined state.</desc>
9678 </const>
9679 <const name="Opening" value="10">
9680 <desc>Guest file is opening.</desc>
9681 </const>
9682 <const name="Open" value="100">
9683 <desc>Guest file has been successfully opened.</desc>
9684 </const>
9685 <const name="Closing" value="150">
9686 <desc>Guest file closing.</desc>
9687 </const>
9688 <const name="Closed" value="200">
9689 <desc>Guest file has been closed.</desc>
9690 </const>
9691 <const name="Down" value="600">
9692 <desc>Service/OS is stopping, guest file was closed.</desc>
9693 </const>
9694 <const name="Error" value="800">
9695 <desc>Something went wrong.</desc>
9696 </const>
9697 </enum>
9698
9699 <enum
9700 name="FsObjType"
9701 uuid="a1ed437c-b3c3-4ca2-b19c-4239d658d5e8"
9702 >
9703 <desc>
9704 File system object type.
9705 </desc>
9706
9707 <const name="Undefined" value="0">
9708 <desc>Type is undefined / unknown.</desc>
9709 </const>
9710 <const name="FIFO" value="1">
9711 <desc>Named pipe.</desc>
9712 </const>
9713 <const name="DevChar" value="10">
9714 <desc>Character device.</desc>
9715 </const>
9716 <const name="DevBlock" value="11">
9717 <desc>Block device.</desc>
9718 </const>
9719 <const name="Directory" value="50">
9720 <desc>Directory.</desc>
9721 </const>
9722 <const name="File" value="80">
9723 <desc>File.</desc>
9724 </const>
9725 <const name="Symlink" value="100">
9726 <desc>Symlink.</desc>
9727 </const>
9728 <const name="Socket" value="200">
9729 <desc>Socket.</desc>
9730 </const>
9731 <const name="Whiteout" value="400">
9732 <desc>Whiteout.</desc>
9733 </const>
9734 </enum>
9735
9736 <enum
9737 name="DragAndDropAction"
9738 uuid="47f3b162-c107-4fcd-bfa7-54b8135c441e"
9739 >
9740 <desc>
9741 Possible actions within an Drag and Drop operation.
9742 </desc>
9743
9744 <const name="Ignore" value="0">
9745 <desc>Do nothing.</desc>
9746 </const>
9747
9748 <const name="Copy" value="1">
9749 <desc>Copy the item to the target.</desc>
9750 </const>
9751
9752 <const name="Move" value="2">
9753 <desc>Move the item to the target.</desc>
9754 </const>
9755
9756 <const name="Link" value="3">
9757 <desc>Link the item from within the target.</desc>
9758 </const>
9759 </enum>
9760
9761 <enum
9762 name="DirectoryOpenFlag"
9763 uuid="5138837a-8fd2-4194-a1b0-08f7bc3949d0"
9764 >
9765 <desc>
9766 Directory open flags.
9767 </desc>
9768 <const name="None" value="0">
9769 <desc>No flag set.</desc>
9770 </const>
9771 <const name="NoSymlinks" value="1">
9772 <desc>Don't allow symbolic links as part of the path.</desc>
9773 </const>
9774 </enum>
9775
9776 <interface
9777 name="IGuestSession" extends="$unknown"
9778 uuid="c8e8607b-5e67-4073-8f14-146515d0c1ff"
9779 wsmap="managed"
9780 >
9781 <desc>
9782 A guest session represents one impersonated user account on the guest, so
9783 every operation will use the same credentials specified when creating
9784 the session object via <link to="IGuest::createSession"/>.
9785
9786 There can be a maximum of 32 sessions at once per VM. Each session keeps
9787 track of its started guest processes, opened guest files or guest directories.
9788 To work on guest files or directories a guest session offers methods to open
9789 or create such objects (see <link to="IGuestSession::fileOpen"/> or
9790 <link to="IGuestSession::directoryOpen"/> for example).
9791
9792 When done with either of these objects, including the guest session itself,
9793 use the appropriate close() method to let the object do its cleanup work.
9794
9795 Every guest session has its own environment variable block which gets
9796 automatically applied when starting a new guest process via
9797 <link to="IGuestSession::processCreate"/> or <link to="IGuestSession::processCreateEx"/>.
9798 To override (or unset) certain environment variables already set by the
9799 guest session, one can specify a per-process environment block when using
9800 one of the both above mentioned process creation calls.
9801 </desc>
9802
9803 <attribute name="user" type="wstring" readonly="yes">
9804 <desc>Returns the user name used by this session to impersonate
9805 users on the guest.
9806 </desc>
9807 </attribute>
9808 <attribute name="domain" type="wstring" readonly="yes">
9809 <desc>Returns the domain name used by this session to impersonate
9810 users on the guest.
9811 </desc>
9812 </attribute>
9813 <attribute name="name" type="wstring" readonly="yes">
9814 <desc>Returns the session's friendly name.</desc>
9815 </attribute>
9816 <attribute name="id" type="unsigned long" readonly="yes">
9817 <desc>Returns the internal session ID.</desc>
9818 </attribute>
9819 <attribute name="timeout" type="unsigned long">
9820 <desc>
9821 Returns the session timeout (in ms).
9822 <result name="E_NOTIMPL">
9823 The method is not implemented yet.
9824 </result>
9825 </desc>
9826 </attribute>
9827 <attribute name="status" type="GuestSessionStatus" readonly="yes">
9828 <desc>Returns the current session status.</desc>
9829 </attribute>
9830 <attribute name="environment" type="wstring" safearray="yes">
9831 <desc>
9832 Returns the current session environment.
9833 </desc>
9834 </attribute>
9835 <attribute name="processes" type="IGuestProcess" readonly="yes" safearray="yes">
9836 <desc>
9837 Returns all current guest processes.
9838 </desc>
9839 </attribute>
9840 <attribute name="directories" type="IGuestDirectory" readonly="yes" safearray="yes">
9841 <desc>
9842 Returns all currently opened guest directories.
9843 </desc>
9844 </attribute>
9845 <attribute name="files" type="IGuestFile" readonly="yes" safearray="yes">
9846 <desc>
9847 Returns all currently opened guest files.
9848 </desc>
9849 </attribute>
9850 <attribute name="eventSource" type="IEventSource" readonly="yes">
9851 <desc>
9852 Event source for guest session events.
9853 </desc>
9854 </attribute>
9855
9856 <method name="close">
9857 <desc>
9858 Closes this session. All opened guest directories, files and
9859 processes which are not referenced by clients anymore will be
9860 uninitialized.
9861 </desc>
9862 </method>
9863
9864 <method name="copyFrom">
9865 <desc>
9866 Copies a file from guest to the host.
9867
9868 <result name="VBOX_E_IPRT_ERROR">
9869 Error starting the copy operation.
9870 </result>
9871 </desc>
9872 <param name="source" type="wstring" dir="in">
9873 <desc>Source file on the guest to copy to the host.</desc>
9874 </param>
9875 <param name="dest" type="wstring" dir="in">
9876 <desc>Destination file name on the host.</desc>
9877 </param>
9878 <param name="flags" type="CopyFileFlag" dir="in" safearray="yes">
9879 <desc>Copy flags; see <link to="CopyFileFlag"/> for more information.</desc>
9880 </param>
9881 <param name="progress" type="IProgress" dir="return">
9882 <desc>Progress object to track the operation completion.</desc>
9883 </param>
9884 </method>
9885
9886 <method name="copyTo">
9887 <desc>
9888 Copies a file from host to the guest.
9889
9890 <result name="VBOX_E_IPRT_ERROR">
9891 Error starting the copy operation.
9892 </result>
9893 </desc>
9894 <param name="source" type="wstring" dir="in">
9895 <desc>Source file on the host to copy to the guest.</desc>
9896 </param>
9897 <param name="dest" type="wstring" dir="in">
9898 <desc>Destination file name on the guest.</desc>
9899 </param>
9900 <param name="flags" type="CopyFileFlag" dir="in" safearray="yes">
9901 <desc>Copy flags; see <link to="CopyFileFlag"/> for more information.</desc>
9902 </param>
9903 <param name="progress" type="IProgress" dir="return">
9904 <desc>Progress object to track the operation completion.</desc>
9905 </param>
9906 </method>
9907
9908 <method name="directoryCreate">
9909 <desc>
9910 Create a directory on the guest.
9911
9912 <result name="VBOX_E_IPRT_ERROR">
9913 Error while creating the directory.
9914 </result>
9915 </desc>
9916 <param name="path" type="wstring" dir="in">
9917 <desc>Full path of directory to create.</desc>
9918 </param>
9919 <param name="mode" type="unsigned long" dir="in">
9920 <desc>File creation mode.</desc>
9921 </param>
9922 <param name="flags" type="DirectoryCreateFlag" dir="in" safearray="yes">
9923 <desc>Creation flags; see <link to="DirectoryCreateFlag"/> for more information.</desc>
9924 </param>
9925 </method>
9926
9927 <method name="directoryCreateTemp">
9928 <desc>
9929 Create a temporary directory on the guest.
9930
9931 <result name="VBOX_E_NOT_SUPPORTED">
9932 The operation is not possible as requested on this particular
9933 guest type.
9934 </result>
9935 <result name="E_INVALIDARG">
9936 Invalid argument. This includes an incorrectly formatted template,
9937 or a non-absolute path.
9938 </result>
9939 <result name="VBOX_E_IPRT_ERROR">
9940 The temporary directory could not be created. Possible reasons
9941 include a non-existing path or an insecure path when the secure
9942 option was requested.
9943 </result>
9944 </desc>
9945 <param name="templateName" type="wstring" dir="in">
9946 <desc>Template for the name of the directory to create. This must
9947 contain at least one 'X' character. The first group of consecutive
9948 'X' characters in the template will be replaced by a random
9949 alphanumeric string to produce a unique name.</desc>
9950 </param>
9951 <param name="mode" type="unsigned long" dir="in">
9952 <desc>The mode of the directory to create. Use 0700 unless there are
9953 reasons not to. This parameter is ignored if "secure" is specified.
9954 </desc>
9955 </param>
9956 <param name="path" type="wstring" dir="in">
9957 <desc>The absolute path to create the temporary directory in.</desc>
9958 </param>
9959 <param name="secure" type="boolean" dir="in">
9960 <desc>Whether to fail if the directory can not be securely created.
9961 Currently this means that another unprivileged user cannot
9962 manipulate the path specified or remove the temporary directory
9963 after it has been created. Also causes the mode specified to be
9964 ignored. May not be supported on all guest types.</desc>
9965 </param>
9966 <param name="directory" type="wstring" dir="return">
9967 <desc>On success this will contain the name of the directory created
9968 with full path.</desc>
9969 </param>
9970 </method>
9971
9972 <method name="directoryExists">
9973 <desc>
9974 Checks whether a directory exists on the guest or not.
9975
9976 <result name="VBOX_E_IPRT_ERROR">
9977 Error while checking existence of the directory specified.
9978 </result>
9979 </desc>
9980 <param name="path" type="wstring" dir="in">
9981 <desc>Directory to check existence for.</desc>
9982 </param>
9983 <param name="exists" type="boolean" dir="return">
9984 <desc>Returns @c true if the directory exists, @c false if not.</desc>
9985 </param>
9986 </method>
9987
9988 <method name="directoryOpen">
9989 <desc>
9990 Opens a directory and creates a <link to="IGuestDirectory"/> object that
9991 can be used for further operations.
9992
9993 <result name="VBOX_E_OBJECT_NOT_FOUND">
9994 Directory to open was not found.
9995 </result>
9996 <result name="VBOX_E_IPRT_ERROR">
9997 Error while opening the directory.
9998 </result>
9999 </desc>
10000 <param name="path" type="wstring" dir="in">
10001 <desc>Full path to file to open.</desc>
10002 </param>
10003 <param name="filter" type="wstring" dir="in">
10004 <desc>Open filter to apply. This can include wildcards like ? and *.</desc>
10005 </param>
10006 <param name="flags" type="DirectoryOpenFlag" dir="in" safearray="yes">
10007 <desc>Open flags; see <link to="DirectoryOpenFlag"/> for more information.</desc>
10008 </param>
10009 <param name="directory" type="IGuestDirectory" dir="return">
10010 <desc><link to="IGuestDirectory"/> object containing the opened directory.</desc>
10011 </param>
10012 </method>
10013
10014 <method name="directoryQueryInfo">
10015 <desc>
10016 Queries information of a directory on the guest.
10017
10018 <result name="VBOX_E_OBJECT_NOT_FOUND">
10019 Directory to query information for was not found.
10020 </result>
10021 <result name="VBOX_E_IPRT_ERROR">
10022 Error querying information.
10023 </result>
10024 </desc>
10025 <param name="path" type="wstring" dir="in">
10026 <desc>Directory to query information for.</desc>
10027 </param>
10028 <param name="info" type="IGuestFsObjInfo" dir="return">
10029 <desc><link to="IGuestFsObjInfo"/> object containing the queried information.</desc>
10030 </param>
10031 </method>
10032
10033 <method name="directoryRemove">
10034 <desc>
10035 Removes a guest directory if not empty.
10036
10037 <result name="E_NOTIMPL">
10038 The method is not implemented yet.
10039 </result>
10040 </desc>
10041 <param name="path" type="wstring" dir="in">
10042 <desc>Full path of directory to remove.</desc>
10043 </param>
10044 </method>
10045
10046 <method name="directoryRemoveRecursive">
10047 <desc>
10048 Removes a guest directory recursively.
10049
10050 <result name="E_NOTIMPL">
10051 The method is not implemented yet.
10052 </result>
10053 </desc>
10054 <param name="path" type="wstring" dir="in">
10055 <desc>Full path of directory to remove recursively.</desc>
10056 </param>
10057 <param name="flags" type="DirectoryRemoveRecFlag" dir="in" safearray="yes">
10058 <desc>Remove flags; see <link to="DirectoryRemoveRecFlag"/> for more information.</desc>
10059 </param>
10060 <param name="progress" type="IProgress" dir="return">
10061 <desc>Progress object to track the operation completion.</desc>
10062 </param>
10063 </method>
10064
10065 <method name="directoryRename">
10066 <desc>
10067 Renames a directory on the guest.
10068
10069 <result name="E_NOTIMPL">
10070 The method is not implemented yet.
10071 </result>
10072 </desc>
10073 <param name="source" type="wstring" dir="in">
10074 <desc>Source directory to rename.</desc>
10075 </param>
10076 <param name="dest" type="wstring" dir="in">
10077 <desc>Destination directory to rename the source to.</desc>
10078 </param>
10079 <param name="flags" type="PathRenameFlag" dir="in" safearray="yes">
10080 <desc>Rename flags; see <link to="PathRenameFlag"/> for more information.</desc>
10081 </param>
10082 </method>
10083
10084 <method name="directorySetACL">
10085 <desc>
10086 Sets the ACL (Access Control List) of a guest directory.
10087
10088 <result name="E_NOTIMPL">
10089 The method is not implemented yet.
10090 </result>
10091 </desc>
10092 <param name="path" type="wstring" dir="in">
10093 <desc>Full path of directory to set the ACL for.</desc>
10094 </param>
10095 <param name="acl" type="wstring" dir="in">
10096 <desc>Actual ACL string to set. Must comply with the guest OS.</desc>
10097 </param>
10098 </method>
10099
10100 <method name="environmentClear">
10101 <desc>
10102 Clears (deletes) all session environment variables.
10103
10104 <result name="VBOX_E_IPRT_ERROR">
10105 Error while clearing the session environment variables.
10106 </result>
10107 </desc>
10108 </method>
10109
10110 <method name="environmentGet">
10111 <desc>
10112 Gets the value of a session environment variable.
10113
10114 <result name="VBOX_E_IPRT_ERROR">
10115 Error while getting the value of the session environment variable.
10116 </result>
10117 </desc>
10118 <param name="name" type="wstring" dir="in">
10119 <desc>Name of session environment variable to get the value for.</desc>
10120 </param>
10121 <param name="value" type="wstring" dir="return">
10122 <desc>
10123 Value of the session environment variable specified. If this variable
10124 does not exist and empty value will be returned.
10125 </desc>
10126 </param>
10127 </method>
10128
10129 <method name="environmentSet">
10130 <desc>
10131 Sets a session environment variable.
10132
10133 <result name="VBOX_E_IPRT_ERROR">
10134 Error while setting the session environment variable.
10135 </result>
10136 </desc>
10137 <param name="name" type="wstring" dir="in">
10138 <desc>Name of session environment variable to set.</desc>
10139 </param>
10140 <param name="value" type="wstring" dir="in">
10141 <desc>Value to set the session environment variable to.</desc>
10142 </param>
10143 </method>
10144
10145 <method name="environmentUnset">
10146 <desc>
10147 Unsets session environment variable.
10148
10149 <result name="VBOX_E_IPRT_ERROR">
10150 Error while unsetting the session environment variable.
10151 </result>
10152 </desc>
10153 <param name="name" type="wstring" dir="in">
10154 <desc>Name of session environment variable to unset (clear).</desc>
10155 </param>
10156 </method>
10157
10158 <method name="fileCreateTemp">
10159 <desc>
10160 Creates a temporary file on the guest.
10161
10162 <result name="VBOX_E_NOT_SUPPORTED">
10163 The operation is not possible as requested on this particular
10164 guest type.
10165 </result>
10166 <result name="E_INVALIDARG">
10167 Invalid argument. This includes an incorrectly formatted template,
10168 or a non-absolute path.
10169 </result>
10170 <result name="VBOX_E_IPRT_ERROR">
10171 The temporary file could not be created. Possible reasons include
10172 a non-existing path or an insecure path when the secure
10173 option was requested.
10174 </result>
10175 </desc>
10176 <param name="templateName" type="wstring" dir="in">
10177 <desc>Template for the name of the file to create. This must contain
10178 at least one 'X' character. The first group of consecutive 'X'
10179 characters in the template will be replaced by a random
10180 alphanumeric string to produce a unique name.
10181 </desc>
10182 </param>
10183 <param name="mode" type="unsigned long" dir="in">
10184 <desc>The mode of the file to create. Use 0700 unless there are
10185 reasons not to. This parameter is ignored if "secure" is specified.
10186 </desc>
10187 </param>
10188 <param name="path" type="wstring" dir="in">
10189 <desc>The absolute path to create the temporary file in.</desc>
10190 </param>
10191 <param name="secure" type="boolean" dir="in">
10192 <desc>Whether to fail if the file can not be securely created.
10193 Currently this means that another unprivileged user cannot
10194 manipulate the path specified or remove the temporary file after
10195 it has been created. Also causes the mode specified to be ignored.
10196 May not be supported on all guest types.</desc>
10197 </param>
10198 <param name="file" type="IGuestFile" dir="return">
10199 <desc>On success this will contain an open file object for the new
10200 temporary file.
10201 </desc>
10202 </param>
10203 </method>
10204
10205 <method name="fileExists">
10206 <desc>
10207 Checks whether a file exists on the guest or not.
10208
10209 <result name="VBOX_E_IPRT_ERROR">
10210 Error while checking existence of the file specified.
10211 </result>
10212 </desc>
10213 <param name="path" type="wstring" dir="in">
10214 <desc>File to check existence for.</desc>
10215 </param>
10216 <param name="exists" type="boolean" dir="return">
10217 <desc>Returns @c true if the file exists, @c false if not.</desc>
10218 </param>
10219 </method>
10220
10221 <method name="fileRemove">
10222 <desc>
10223 Removes a single file on the guest.
10224
10225 <result name="VBOX_E_OBJECT_NOT_FOUND">
10226 File to remove was not found.
10227 </result>
10228 <result name="VBOX_E_IPRT_ERROR">
10229 Error while removing the file.
10230 </result>
10231 </desc>
10232 <param name="path" type="wstring" dir="in">
10233 <desc>Path to the file to remove.</desc>
10234 </param>
10235 </method>
10236
10237 <method name="fileOpen">
10238 <desc>
10239 Opens a file and creates a <link to="IGuestFile"/> object that
10240 can be used for further operations.
10241
10242 <result name="VBOX_E_OBJECT_NOT_FOUND">
10243 File to open was not found.
10244 </result>
10245 <result name="VBOX_E_IPRT_ERROR">
10246 Error while opening the file.
10247 </result>
10248 </desc>
10249 <param name="path" type="wstring" dir="in">
10250 <desc>Full path to file to open.</desc>
10251 </param>
10252 <param name="openMode" type="wstring" dir="in">
10253 <desc>The file open mode.</desc>
10254 </param>
10255 <param name="disposition" type="wstring" dir="in">
10256 <desc>The file disposition.</desc>
10257 </param>
10258 <param name="creationMode" type="unsigned long" dir="in">
10259 <desc>The file creation mode.</desc>
10260 </param>
10261 <param name="offset" type="long long" dir="in">
10262 <desc>The initial read/write offset.</desc>
10263 </param>
10264 <param name="file" type="IGuestFile" dir="return">
10265 <desc><link to="IGuestFile"/> object representing the opened file.</desc>
10266 </param>
10267 </method>
10268
10269 <method name="fileQueryInfo">
10270 <desc>
10271 Queries information of a file on the guest.
10272
10273 <result name="VBOX_E_OBJECT_NOT_FOUND">
10274 File to query information for was not found.
10275 </result>
10276 <result name="VBOX_E_IPRT_ERROR">
10277 Error querying information.
10278 </result>
10279 </desc>
10280 <param name="path" type="wstring" dir="in">
10281 <desc>File to query information for.</desc>
10282 </param>
10283 <param name="info" type="IGuestFsObjInfo" dir="return">
10284 <desc><link to="IGuestFsObjInfo"/> object containing the queried information.</desc>
10285 </param>
10286 </method>
10287
10288 <method name="fileQuerySize">
10289 <desc>
10290 Queries the size of a file on the guest.
10291
10292 <result name="VBOX_E_OBJECT_NOT_FOUND">
10293 File to rename was not found.
10294 </result>
10295 <result name="VBOX_E_IPRT_ERROR">
10296 Error querying file size.
10297 </result>
10298 </desc>
10299 <param name="path" type="wstring" dir="in">
10300 <desc>File to query the size for.</desc>
10301 </param>
10302 <param name="size" type="long long" dir="return">
10303 <desc>Queried file size.</desc>
10304 </param>
10305 </method>
10306
10307 <method name="fileRename">
10308 <desc>
10309 Renames a file on the guest.
10310
10311 <result name="E_NOTIMPL">
10312 The method is not implemented yet.
10313 </result>
10314 </desc>
10315 <param name="source" type="wstring" dir="in">
10316 <desc>Source file to rename.</desc>
10317 </param>
10318 <param name="dest" type="wstring" dir="in">
10319 <desc>Destination file to rename the source to.</desc>
10320 </param>
10321 <param name="flags" type="PathRenameFlag" dir="in" safearray="yes">
10322 <desc>Rename flags; see <link to="PathRenameFlag"/> for more information.</desc>
10323 </param>
10324 </method>
10325
10326 <method name="fileSetACL">
10327 <desc>
10328 Sets the ACL (Access Control List) of a file on the guest.
10329
10330 <result name="E_NOTIMPL">
10331 The method is not implemented yet.
10332 </result>
10333 </desc>
10334 <param name="file" type="wstring" dir="in">
10335 <desc>Full path of file to set the ACL for.</desc>
10336 </param>
10337 <param name="acl" type="wstring" dir="in">
10338 <desc>Actual ACL string to set. Must comply with the guest OS.</desc>
10339 </param>
10340 </method>
10341
10342 <method name="processCreate">
10343 <desc>
10344 Creates a new process running on the guest. The new process will be
10345 started asynchronously, meaning on return of this function it is not
10346 guaranteed that the guest process is in a started state. To wait for
10347 successful startup, use the <link to="IProcess::waitFor"/> call.
10348
10349 <note>
10350 Starting at VirtualBox 4.2 guest process execution by default is limited
10351 to serve up to 255 guest processes at a time. If all 255 guest processes
10352 are still active and running, creating a new guest process will result in an
10353 appropriate error message.
10354
10355 If ProcessCreateFlag_WaitForStdOut and / or respectively ProcessCreateFlag_WaitForStdErr
10356 is / are set, the guest process will not exit until all data from the specified
10357 stream(s) is / are read out.
10358
10359 To raise or lower the guest process execution limit, either the guest property
10360 "/VirtualBox/GuestAdd/VBoxService/--control-procs-max-kept" or VBoxService'
10361 command line by specifying "--control-procs-max-kept" needs to be modified.
10362 A restart of the guest OS is required afterwards. To serve unlimited guest
10363 processes, a value of "0" needs to be set (not recommended).
10364 </note>
10365
10366 <result name="VBOX_E_IPRT_ERROR">
10367 Error creating guest process.
10368 </result>
10369 </desc>
10370 <param name="command" type="wstring" dir="in">
10371 <desc>
10372 Full path name of the command to execute on the guest; the
10373 commands has to exists in the guest VM in order to be executed.
10374 </desc>
10375 </param>
10376 <param name="arguments" type="wstring" dir="in" safearray="yes">
10377 <desc>Array of arguments passed to the execution command.</desc>
10378 </param>
10379 <param name="environment" type="wstring" dir="in" safearray="yes">
10380 <desc>
10381 <para>Environment variables that can be set while the command is being
10382 executed, in form of "NAME=VALUE"; one pair per entry. To unset a
10383 variable just set its name ("NAME") without a value.</para>
10384 <para>This parameter can be used to override environment variables set by
10385 the guest session, which will be applied to the newly started process
10386 in any case.</para>
10387 </desc>
10388 </param>
10389 <param name="flags" type="ProcessCreateFlag" dir="in" safearray="yes">
10390 <desc>
10391 Process creation flags;
10392 see <link to="ProcessCreateFlag"/> for more information.
10393 </desc>
10394 </param>
10395 <param name="timeoutMS" type="unsigned long" dir="in">
10396 <desc>
10397 Timeout (in ms) for limiting the guest process' running time.
10398 Pass 0 for an infinite timeout. On timeout the guest process will be
10399 killed and its status will be put to an appropriate value. See
10400 <link to="ProcessStatus"/> for more information.
10401 </desc>
10402 </param>
10403 <param name="guestProcess" type="IGuestProcess" dir="return">
10404 <desc>Guest process object of the newly created process.</desc>
10405 </param>
10406 </method>
10407
10408 <method name="processCreateEx">
10409 <desc>
10410 <para>Creates a new process running on the guest. Extended version for
10411 also setting the process priority and affinity.</para>
10412
10413 <para>See <link to="IGuestSession::processCreate"/> for more
10414 information.</para>
10415 </desc>
10416 <param name="command" type="wstring" dir="in">
10417 <desc>
10418 Full path name of the command to execute on the guest; the
10419 commands has to exists in the guest VM in order to be executed.
10420 </desc>
10421 </param>
10422 <param name="arguments" type="wstring" dir="in" safearray="yes">
10423 <desc>Array of arguments passed to the execution command.</desc>
10424 </param>
10425 <param name="environment" type="wstring" dir="in" safearray="yes">
10426 <desc>
10427 <para>Environment variables that can be set while the command is being
10428 executed, in form of "NAME=VALUE"; one pair per entry. To unset a
10429 variable just set its name ("NAME") without a value.</para>
10430 <para>This parameter can be used to override environment variables set by
10431 the guest session, which will be applied to the newly started process
10432 in any case.</para>
10433 </desc>
10434 </param>
10435 <param name="flags" type="ProcessCreateFlag" dir="in" safearray="yes">
10436 <desc>
10437 Process creation flags;
10438 see <link to="ProcessCreateFlag"/> for more information.
10439 </desc>
10440 </param>
10441 <param name="timeoutMS" type="unsigned long" dir="in">
10442 <desc>
10443 Timeout (in ms) for limiting the guest process' running time.
10444 Pass 0 for an infinite timeout. On timeout the guest process will be
10445 killed and its status will be put to an appropriate value. See
10446 <link to="ProcessStatus"/> for more information.
10447 </desc>
10448 </param>
10449 <param name="priority" type="ProcessPriority" dir="in">
10450 <desc>
10451 Process priority to use for execution;
10452 see see <link to="ProcessPriority"/> for more information.</desc>
10453 </param>
10454 <param name="affinity" type="long" dir="in" safearray="yes">
10455 <desc>
10456 Process affinity to use for execution. This parameter
10457 is not implemented yet.
10458 </desc>
10459 </param>
10460 <param name="guestProcess" type="IGuestProcess" dir="return">
10461 <desc>Guest process object of the newly created process.</desc>
10462 </param>
10463 </method>
10464
10465 <method name="processGet">
10466 <desc>
10467 Gets a certain guest process by its process ID (PID).
10468 </desc>
10469 <param name="pid" type="unsigned long" dir="in">
10470 <desc>Process ID (PID) to get guest process for.</desc>
10471 </param>
10472 <param name="guestProcess" type="IGuestProcess" dir="return">
10473 <desc>Guest process of specified process ID (PID).</desc>
10474 </param>
10475 </method>
10476
10477 <method name="symlinkCreate">
10478 <desc>
10479 Creates a symbolic link on the guest.
10480
10481 <result name="E_NOTIMPL">
10482 The method is not implemented yet.
10483 </result>
10484 </desc>
10485 <param name="source" type="wstring" dir="in">
10486 <desc>The name of the symbolic link.</desc>
10487 </param>
10488 <param name="target" type="wstring" dir="in">
10489 <desc>The path to the symbolic link target.</desc>
10490 </param>
10491 <param name="type" type="SymlinkType" dir="in">
10492 <desc>
10493 The symbolic link type;
10494 see <link to="SymlinkReadFlag"/> for more information.
10495 </desc>
10496 </param>
10497 </method>
10498
10499 <method name="symlinkExists">
10500 <desc>
10501 Checks whether a symbolic link exists on the guest or not.
10502
10503 <result name="E_NOTIMPL">
10504 The method is not implemented yet.
10505 </result>
10506 </desc>
10507 <param name="symlink" type="wstring" dir="in">
10508 <desc>Symbolic link to check existence for.</desc>
10509 </param>
10510 <param name="exists" type="boolean" dir="return">
10511 <desc>Returns @c true if the symbolic link exists, @c false if not.</desc>
10512 </param>
10513 </method>
10514
10515 <method name="symlinkRead">
10516 <desc>
10517 Reads a symbolic link on the guest.
10518
10519 <result name="E_NOTIMPL">
10520 The method is not implemented yet.
10521 </result>
10522 </desc>
10523 <param name="symlink" type="wstring" dir="in">
10524 <desc>Full path to symbolic link to read.</desc>
10525 </param>
10526 <param name="flags" type="SymlinkReadFlag" dir="in" safearray="yes">
10527 <desc>
10528 Read flags; see <link to="SymlinkReadFlag"/> for more information.
10529 </desc>
10530 </param>
10531 <param name="target" type="wstring" dir="return">
10532 <desc>
10533 Target of the symbolic link pointing to, if found.
10534 </desc>
10535 </param>
10536 </method>
10537
10538 <method name="symlinkRemoveDirectory">
10539 <desc>
10540 Removes a symbolic link on the guest if it's a directory.
10541
10542 <result name="E_NOTIMPL">
10543 The method is not implemented yet.
10544 </result>
10545 </desc>
10546 <param name="path" type="wstring" dir="in">
10547 <desc>Symbolic link to remove.</desc>
10548 </param>
10549 </method>
10550
10551 <method name="symlinkRemoveFile">
10552 <desc>
10553 Removes a symbolic link on the guest if it's a file.
10554
10555 <result name="E_NOTIMPL">
10556 The method is not implemented yet.
10557 </result>
10558 </desc>
10559 <param name="file" type="wstring" dir="in">
10560 <desc>Symbolic link to remove.</desc>
10561 </param>
10562 </method>
10563
10564 <method name="waitFor">
10565 <desc>
10566 Waits for one more events to happen.
10567 </desc>
10568 <param name="waitFor" type="unsigned long" dir="in">
10569 <desc>
10570 Specifies what to wait for;
10571 see <link to="GuestSessionWaitForFlag"/> for more information.
10572 </desc>
10573 </param>
10574 <param name="timeoutMS" type="unsigned long" dir="in">
10575 <desc>
10576 Timeout (in ms) to wait for the operation to complete.
10577 Pass 0 for an infinite timeout.
10578 </desc>
10579 </param>
10580 <param name="reason" type="GuestSessionWaitResult" dir="return">
10581 <desc>
10582 The overall wait result;
10583 see <link to="GuestSessionWaitResult"/> for more information.
10584 </desc>
10585 </param>
10586 </method>
10587
10588 <method name="waitForArray">
10589 <desc>
10590 Waits for one more events to happen.
10591 Scriptable version of <link to="#waitFor" />.
10592 </desc>
10593 <param name="waitFor" type="GuestSessionWaitForFlag" dir="in" safearray="yes">
10594 <desc>
10595 Specifies what to wait for;
10596 see <link to="GuestSessionWaitForFlag"/> for more information.
10597 </desc>
10598 </param>
10599 <param name="timeoutMS" type="unsigned long" dir="in">
10600 <desc>
10601 Timeout (in ms) to wait for the operation to complete.
10602 Pass 0 for an infinite timeout.
10603 </desc>
10604 </param>
10605 <param name="reason" type="GuestSessionWaitResult" dir="return">
10606 <desc>
10607 The overall wait result;
10608 see <link to="GuestSessionWaitResult"/> for more information.
10609 </desc>
10610 </param>
10611 </method>
10612
10613 </interface>
10614
10615 <interface
10616 name="IProcess" extends="$unknown"
10617 uuid="5a4fe06d-8cb1-40ff-ac9e-9676e32f706e"
10618 wsmap="managed"
10619 >
10620 <desc>
10621 Abstract parent interface for processes handled by VirtualBox.
10622 </desc>
10623
10624 <attribute name="arguments" type="wstring" readonly="yes" safearray="yes">
10625 <desc>
10626 The arguments this process is using for execution.
10627 </desc>
10628 </attribute>
10629 <attribute name="environment" type="wstring" readonly="yes" safearray="yes">
10630 <desc>
10631 The environment block this process is using during execution.
10632 </desc>
10633 </attribute>
10634 <attribute name="eventSource" type="IEventSource" readonly="yes">
10635 <desc>
10636 Event source for VirtualBox events.
10637 </desc>
10638 </attribute>
10639 <attribute name="executablePath" type="wstring" readonly="yes">
10640 <desc>Full path of the actual executable image.</desc>
10641 </attribute>
10642 <attribute name="exitCode" type="long" readonly="yes">
10643 <desc>
10644 The exit code. Only available when the process has been
10645 terminated normally.
10646 </desc>
10647 </attribute>
10648 <attribute name="name" type="wstring" readonly="yes">
10649 <desc>
10650 The friendly name of this process.
10651 </desc>
10652 </attribute>
10653 <attribute name="PID" type="unsigned long" readonly="yes">
10654 <desc>
10655 The process ID (PID).
10656 </desc>
10657 </attribute>
10658 <attribute name="status" type="ProcessStatus" readonly="yes">
10659 <desc>
10660 The current process status; see <link to="ProcessStatus"/>
10661 for more information.
10662 </desc>
10663 </attribute>
10664
10665 <method name="waitFor">
10666 <desc>
10667 Waits for one more events to happen.
10668 </desc>
10669 <param name="waitFor" type="unsigned long" dir="in">
10670 <desc>
10671 Specifies what to wait for;
10672 see <link to="ProcessWaitForFlag"/> for more information.
10673 </desc>
10674 </param>
10675 <param name="timeoutMS" type="unsigned long" dir="in">
10676 <desc>
10677 Timeout (in ms) to wait for the operation to complete.
10678 Pass 0 for an infinite timeout.
10679 </desc>
10680 </param>
10681 <param name="reason" type="ProcessWaitResult" dir="return">
10682 <desc>
10683 The overall wait result;
10684 see <link to="ProcessWaitResult"/> for more information.
10685 </desc>
10686 </param>
10687 </method>
10688
10689 <method name="waitForArray">
10690 <desc>
10691 Waits for one more events to happen.
10692 Scriptable version of <link to="#waitFor" />.
10693 </desc>
10694 <param name="waitFor" type="ProcessWaitForFlag" dir="in" safearray="yes">
10695 <desc>
10696 Specifies what to wait for;
10697 see <link to="ProcessWaitForFlag"/> for more information.
10698 </desc>
10699 </param>
10700 <param name="timeoutMS" type="unsigned long" dir="in">
10701 <desc>
10702 Timeout (in ms) to wait for the operation to complete.
10703 Pass 0 for an infinite timeout.
10704 </desc>
10705 </param>
10706 <param name="reason" type="ProcessWaitResult" dir="return">
10707 <desc>
10708 The overall wait result;
10709 see <link to="ProcessWaitResult"/> for more information.
10710 </desc>
10711 </param>
10712 </method>
10713
10714 <method name="read">
10715 <desc>
10716 Reads data from a running process.
10717 </desc>
10718 <param name="handle" type="unsigned long" dir="in">
10719 <desc>Handle to read from. Usually 0 is stdin.</desc>
10720 </param>
10721 <param name="toRead" type="unsigned long" dir="in">
10722 <desc>Number of bytes to read.</desc>
10723 </param>
10724 <param name="timeoutMS" type="unsigned long" dir="in">
10725 <desc>
10726 Timeout (in ms) to wait for the operation to complete.
10727 Pass 0 for an infinite timeout.
10728 </desc>
10729 </param>
10730 <param name="data" type="octet" dir="return" safearray="yes">
10731 <desc>Array of data read.</desc>
10732 </param>
10733 </method>
10734
10735 <method name="write">
10736 <desc>
10737 Writes data to a running process.
10738 </desc>
10739 <param name="handle" type="unsigned long" dir="in">
10740 <desc>Handle to write to. Usually 0 is stdin, 1 is stdout and 2 is stderr.</desc>
10741 </param>
10742 <param name="flags" type="unsigned long" dir="in">
10743 <desc>
10744 A combination of <link to="ProcessInputFlag"/> flags.
10745 </desc>
10746 </param>
10747 <param name="data" type="octet" dir="in" safearray="yes">
10748 <desc>
10749 Array of bytes to write. The size of the array also specifies
10750 how much to write.
10751 </desc>
10752 </param>
10753 <param name="timeoutMS" type="unsigned long" dir="in">
10754 <desc>
10755 Timeout (in ms) to wait for the operation to complete.
10756 Pass 0 for an infinite timeout.
10757 </desc>
10758 </param>
10759 <param name="written" type="unsigned long" dir="return">
10760 <desc>How much bytes were written.</desc>
10761 </param>
10762 </method>
10763
10764 <method name="writeArray">
10765 <desc>
10766 Writes data to a running process.
10767 Scriptable version of <link to="#write" />.
10768 </desc>
10769 <param name="handle" type="unsigned long" dir="in">
10770 <desc>Handle to write to. Usually 0 is stdin, 1 is stdout and 2 is stderr.</desc>
10771 </param>
10772 <param name="flags" type="ProcessInputFlag" dir="in" safearray="yes">
10773 <desc>
10774 A combination of <link to="ProcessInputFlag"/> flags.
10775 </desc>
10776 </param>
10777 <param name="data" type="octet" dir="in" safearray="yes">
10778 <desc>
10779 Array of bytes to write. The size of the array also specifies
10780 how much to write.
10781 </desc>
10782 </param>
10783 <param name="timeoutMS" type="unsigned long" dir="in">
10784 <desc>
10785 Timeout (in ms) to wait for the operation to complete.
10786 Pass 0 for an infinite timeout.
10787 </desc>
10788 </param>
10789 <param name="written" type="unsigned long" dir="return">
10790 <desc>How much bytes were written.</desc>
10791 </param>
10792 </method>
10793
10794 <method name="terminate">
10795 <desc>
10796 Terminates (kills) a running process.
10797 </desc>
10798 </method>
10799 </interface>
10800
10801 <interface
10802 name="IGuestProcess" extends="IProcess"
10803 uuid="dfa39a36-5d43-4840-a025-67ea956b3111"
10804 wsmap="managed"
10805 >
10806 <desc>
10807 Implementation of the <link to="IProcess" /> object
10808 for processes on the guest.
10809 </desc>
10810 </interface>
10811
10812 <interface
10813 name="IDirectory" extends="$unknown"
10814 uuid="1b70dd03-26d7-483a-8877-89bbb0f87b70"
10815 wsmap="managed"
10816 >
10817 <desc>
10818 Abstract parent interface for directories handled by VirtualBox.
10819 </desc>
10820
10821 <attribute name="directoryName" type="wstring" readonly="yes">
10822 <desc>
10823 Full path of directory.
10824 </desc>
10825 </attribute>
10826
10827 <attribute name="filter" type="wstring" readonly="yes">
10828 <desc>
10829 The open filter.
10830 </desc>
10831 </attribute>
10832
10833 <method name="close">
10834 <desc>
10835 Closes this directory. After closing operations like reading the next
10836 directory entry will not be possible anymore.
10837 </desc>
10838 </method>
10839
10840 <method name="read">
10841 <desc>
10842 Reads the next directory entry of this directory.
10843 <result name="VBOX_E_OBJECT_NOT_FOUND">
10844 No more directory entries to read.
10845 </result>
10846 </desc>
10847 <param name="objInfo" type="IFsObjInfo" dir="return">
10848 <desc>Object information of the current directory entry read. Also see
10849 <link to="IFsObjInfo"/>.</desc>
10850 </param>
10851 </method>
10852 </interface>
10853
10854 <interface
10855 name="IGuestDirectory" extends="IDirectory"
10856 uuid="af4a8ce0-0725-42b7-8826-46e3c7ba7357"
10857 wsmap="managed"
10858 >
10859 <desc>
10860 Implementation of the <link to="IDirectory" /> object
10861 for directories on the guest.
10862 </desc>
10863 </interface>
10864
10865 <interface
10866 name="IFile" extends="$unknown"
10867 uuid="ceb895d7-8b2d-4a39-8f7c-7d2270f341d5"
10868 wsmap="managed"
10869 >
10870 <desc>
10871 Abstract parent interface for files handled by VirtualBox.
10872 </desc>
10873 <attribute name="creationMode" type="unsigned long" readonly="yes">
10874 <desc>
10875 The creation mode.
10876 </desc>
10877 </attribute>
10878 <attribute name="disposition" type="unsigned long" readonly="yes">
10879 <desc>
10880 The disposition mode.
10881 </desc>
10882 </attribute>
10883 <attribute name="eventSource" type="IEventSource" readonly="yes">
10884 <desc>
10885 Event source for guest session events.
10886 </desc>
10887 </attribute>
10888 <attribute name="fileName" type="wstring" readonly="yes">
10889 <desc>
10890 Full path of the actual file name of this file.
10891 </desc>
10892 </attribute>
10893 <attribute name="initialSize" type="long long" readonly="yes">
10894 <desc>
10895 The initial size in bytes when opened.
10896 </desc>
10897 </attribute>
10898 <attribute name="openMode" type="unsigned long" readonly="yes">
10899 <desc>
10900 The open mode.
10901 </desc>
10902 </attribute>
10903 <attribute name="offset" type="long long" readonly="yes">
10904 <desc>
10905 Current read/write offset in bytes.
10906 </desc>
10907 </attribute>
10908 <attribute name="status" type="FileStatus" readonly="yes">
10909 <desc>
10910 Current file status.
10911 </desc>
10912 </attribute>
10913
10914 <method name="close">
10915 <desc>
10916 Closes this file. After closing operations like reading data,
10917 writing data or querying information will not be possible anymore.
10918 </desc>
10919 </method>
10920
10921 <method name="queryInfo">
10922 <desc>
10923 Queries information about this file.
10924
10925 <result name="E_NOTIMPL">
10926 The method is not implemented yet.
10927 </result>
10928 </desc>
10929 <param name="objInfo" type="IFsObjInfo" dir="return">
10930 <desc>Object information of this file. Also see
10931 <link to="IFsObjInfo"/>.</desc>
10932 </param>
10933 </method>
10934
10935 <method name="read">
10936 <desc>
10937 Reads data from this file.
10938
10939 <result name="E_NOTIMPL">
10940 The method is not implemented yet.
10941 </result>
10942 </desc>
10943 <param name="toRead" type="unsigned long" dir="in">
10944 <desc>Number of bytes to read.</desc>
10945 </param>
10946 <param name="timeoutMS" type="unsigned long" dir="in">
10947 <desc>
10948 Timeout (in ms) to wait for the operation to complete.
10949 Pass 0 for an infinite timeout.
10950 </desc>
10951 </param>
10952 <param name="data" type="octet" dir="return" safearray="yes">
10953 <desc>Array of data read.</desc>
10954 </param>
10955 </method>
10956
10957 <method name="readAt">
10958 <desc>
10959 Reads data from an offset of this file.
10960
10961 <result name="E_NOTIMPL">
10962 The method is not implemented yet.
10963 </result>
10964 </desc>
10965 <param name="offset" type="long long" dir="in">
10966 <desc>Offset in bytes to start reading.</desc>
10967 </param>
10968 <param name="toRead" type="unsigned long" dir="in">
10969 <desc>Number of bytes to read.</desc>
10970 </param>
10971 <param name="timeoutMS" type="unsigned long" dir="in">
10972 <desc>
10973 Timeout (in ms) to wait for the operation to complete.
10974 Pass 0 for an infinite timeout.
10975 </desc>
10976 </param>
10977 <param name="data" type="octet" dir="return" safearray="yes">
10978 <desc>Array of data read.</desc>
10979 </param>
10980 </method>
10981
10982 <method name="seek">
10983 <desc>
10984 Changes the read and write position of this file.
10985
10986 <result name="E_NOTIMPL">
10987 The method is not implemented yet.
10988 </result>
10989 </desc>
10990 <param name="offset" type="long long" dir="in">
10991 <desc>Offset to seek.</desc>
10992 </param>
10993 <param name="whence" type="FileSeekType" dir="in">
10994 <desc>
10995 Seek mode; see <link to="FileSeekType"/> for more information.
10996 </desc>
10997 </param>
10998 </method>
10999
11000 <method name="setACL">
11001 <desc>
11002 Sets the ACL of this file.
11003
11004 <result name="E_NOTIMPL">
11005 The method is not implemented yet.
11006 </result>
11007 </desc>
11008 <param name="acl" type="wstring" dir="in">
11009 <desc>ACL string to set.</desc>
11010 </param>
11011 </method>
11012
11013 <method name="write">
11014 <desc>
11015 Writes bytes to this file.
11016 </desc>
11017 <param name="data" type="octet" dir="in" safearray="yes">
11018 <desc>
11019 Array of bytes to write. The size of the array also specifies
11020 how much to write.
11021 </desc>
11022 </param>
11023 <param name="timeoutMS" type="unsigned long" dir="in">
11024 <desc>
11025 Timeout (in ms) to wait for the operation to complete.
11026 Pass 0 for an infinite timeout.
11027 </desc>
11028 </param>
11029 <param name="written" type="unsigned long" dir="return">
11030 <desc>How much bytes were written.</desc>
11031 </param>
11032 </method>
11033
11034 <method name="writeAt">
11035 <desc>
11036 Writes bytes at a certain offset to this file.
11037
11038 <result name="E_NOTIMPL">
11039 The method is not implemented yet.
11040 </result>
11041 </desc>
11042 <param name="offset" type="long long" dir="in">
11043 <desc>Offset in bytes to start writing.</desc>
11044 </param>
11045 <param name="data" type="octet" dir="in" safearray="yes">
11046 <desc>
11047 Array of bytes to write. The size of the array also specifies
11048 how much to write.
11049 </desc>
11050 </param>
11051 <param name="timeoutMS" type="unsigned long" dir="in">
11052 <desc>
11053 Timeout (in ms) to wait for the operation to complete.
11054 Pass 0 for an infinite timeout.
11055 </desc>
11056 </param>
11057 <param name="written" type="unsigned long" dir="return">
11058 <desc>How much bytes were written.</desc>
11059 </param>
11060 </method>
11061
11062 </interface>
11063
11064 <interface
11065 name="IGuestFile" extends="IFile"
11066 uuid="60661aec-145f-4d11-b80e-8ea151598093"
11067 wsmap="managed"
11068 >
11069 <desc>
11070 Implementation of the <link to="IFile" /> object
11071 for files on the guest.
11072 </desc>
11073 </interface>
11074
11075 <interface
11076 name="IFsObjInfo" extends="$unknown"
11077 uuid="4047ba30-7006-4966-ae86-94164e5e20eb"
11078 wsmap="managed"
11079 >
11080 <desc>
11081 Abstract parent interface for VirtualBox file system object information.
11082 This can be information about a file or a directory, for example.
11083 </desc>
11084
11085 <attribute name="accessTime" type="long long" readonly="yes">
11086 <desc>
11087 Time of last access (st_atime).
11088 </desc>
11089 </attribute>
11090 <attribute name="allocatedSize" type="long long" readonly="yes">
11091 <desc>
11092 Disk allocation size (st_blocks * DEV_BSIZE).
11093 </desc>
11094 </attribute>
11095 <attribute name="birthTime" type="long long" readonly="yes">
11096 <desc>
11097 Time of file birth (st_birthtime).
11098 </desc>
11099 </attribute>
11100 <attribute name="changeTime" type="long long" readonly="yes">
11101 <desc>
11102 Time of last status change (st_ctime).
11103 </desc>
11104 </attribute>
11105 <attribute name="deviceNumber" type="unsigned long" readonly="yes">
11106 <desc>
11107 The device number of a character or block device type object (st_rdev).
11108 </desc>
11109 </attribute>
11110 <attribute name="fileAttributes" type="wstring" readonly="yes">
11111 <desc>
11112 File attributes. Not implemented yet.
11113 </desc>
11114 </attribute>
11115 <attribute name="generationId" type="unsigned long" readonly="yes">
11116 <desc>
11117 The current generation number (st_gen).
11118 </desc>
11119 </attribute>
11120 <attribute name="GID" type="unsigned long" readonly="yes">
11121 <desc>
11122 The group the filesystem object is assigned (st_gid).
11123 </desc>
11124 </attribute>
11125 <attribute name="groupName" type="wstring" readonly="yes">
11126 <desc>
11127 The group name.
11128 </desc>
11129 </attribute>
11130 <attribute name="hardLinks" type="unsigned long" readonly="yes">
11131 <desc>
11132 Number of hard links to this filesystem object (st_nlink).
11133 </desc>
11134 </attribute>
11135 <attribute name="modificationTime" type="long long" readonly="yes">
11136 <desc>
11137 Time of last data modification (st_mtime).
11138 </desc>
11139 </attribute>
11140 <attribute name="name" type="wstring" readonly="yes">
11141 <desc>
11142 The object's name.
11143 </desc>
11144 </attribute>
11145 <attribute name="nodeId" type="long long" readonly="yes">
11146 <desc>
11147 The unique identifier (within the filesystem) of this filesystem object (st_ino).
11148 </desc>
11149 </attribute>
11150 <attribute name="nodeIdDevice" type="unsigned long" readonly="yes">
11151 <desc>
11152 The device number of the device which this filesystem object resides on (st_dev).
11153 </desc>
11154 </attribute>
11155 <attribute name="objectSize" type="long long" readonly="yes">
11156 <desc>
11157 The logical size (st_size). For normal files this is the size of the file.
11158 For symbolic links, this is the length of the path name contained in the
11159 symbolic link. For other objects this fields needs to be specified.
11160 </desc>
11161 </attribute>
11162 <attribute name="type" type="FsObjType" readonly="yes">
11163 <desc>
11164 The object type. See <link to="FsObjType" /> for more.
11165 </desc>
11166 </attribute>
11167 <attribute name="UID" type="unsigned long" readonly="yes">
11168 <desc>
11169 The user owning the filesystem object (st_uid).
11170 </desc>
11171 </attribute>
11172 <attribute name="userFlags" type="unsigned long" readonly="yes">
11173 <desc>
11174 User flags (st_flags).
11175 </desc>
11176 </attribute>
11177 <attribute name="userName" type="wstring" readonly="yes">
11178 <desc>
11179 The user name.
11180 </desc>
11181 </attribute>
11182
11183 </interface>
11184
11185 <interface
11186 name="IGuestFsObjInfo" extends="IFsObjInfo"
11187 uuid="d5cf678e-3484-4e4a-ac55-329e15462e18"
11188 wsmap="managed"
11189 >
11190 <desc>
11191 Represents the guest implementation of the
11192 <link to="IFsObjInfo" /> object.
11193 </desc>
11194 </interface>
11195
11196 <interface
11197 name="IGuest" extends="$unknown"
11198 uuid="19c32350-0618-4ede-b0c3-2b4311bf0d9b"
11199 wsmap="managed"
11200 >
11201 <desc>
11202 The IGuest interface represents information about the operating system
11203 running inside the virtual machine. Used in
11204 <link to="IConsole::guest"/>.
11205
11206 IGuest provides information about the guest operating system, whether
11207 Guest Additions are installed and other OS-specific virtual machine
11208 properties.
11209 </desc>
11210
11211 <attribute name="OSTypeId" type="wstring" readonly="yes">
11212 <desc>
11213 Identifier of the Guest OS type as reported by the Guest
11214 Additions.
11215 You may use <link to="IVirtualBox::getGuestOSType"/> to obtain
11216 an IGuestOSType object representing details about the given
11217 Guest OS type.
11218 <note>
11219 If Guest Additions are not installed, this value will be
11220 the same as <link to="IMachine::OSTypeId"/>.
11221 </note>
11222 </desc>
11223 </attribute>
11224
11225 <attribute name="additionsRunLevel" type="AdditionsRunLevelType" readonly="yes">
11226 <desc>
11227 Current run level of the Guest Additions.
11228 </desc>
11229 </attribute>
11230
11231 <attribute name="additionsVersion" type="wstring" readonly="yes">
11232 <desc>
11233 Version of the Guest Additions in the same format as
11234 <link to="IVirtualBox::version"/>.
11235 </desc>
11236 </attribute>
11237
11238 <attribute name="additionsRevision" type="unsigned long" readonly="yes">
11239 <desc>
11240 The internal build revision number of the additions.
11241
11242 See also <link to="IVirtualBox::revision"/>.
11243 </desc>
11244 </attribute>
11245
11246 <attribute name="facilities" type="IAdditionsFacility" readonly="yes" safearray="yes">
11247 <desc>
11248 Array of current known facilities. Only returns facilities where a status is known,
11249 e.g. facilities with an unknown status will not be returned.
11250 </desc>
11251 </attribute>
11252
11253 <attribute name="sessions" type="IGuestSession" readonly="yes" safearray="yes">
11254 <desc>Returns a collection of all opened guest sessions.</desc>
11255 </attribute>
11256
11257 <attribute name="memoryBalloonSize" type="unsigned long">
11258 <desc>Guest system memory balloon size in megabytes (transient property).</desc>
11259 </attribute>
11260
11261 <attribute name="statisticsUpdateInterval" type="unsigned long">
11262 <desc>Interval to update guest statistics in seconds.</desc>
11263 </attribute>
11264
11265 <method name="internalGetStatistics">
11266 <desc>
11267 Internal method; do not use as it might change at any time.
11268 </desc>
11269 <param name="cpuUser" type="unsigned long" dir="out">
11270 <desc>Percentage of processor time spent in user mode as seen by the guest.</desc>
11271 </param>
11272 <param name="cpuKernel" type="unsigned long" dir="out">
11273 <desc>Percentage of processor time spent in kernel mode as seen by the guest.</desc>
11274 </param>
11275 <param name="cpuIdle" type="unsigned long" dir="out">
11276 <desc>Percentage of processor time spent idling as seen by the guest.</desc>
11277 </param>
11278 <param name="memTotal" type="unsigned long" dir="out">
11279 <desc>Total amount of physical guest RAM.</desc>
11280 </param>
11281 <param name="memFree" type="unsigned long" dir="out">
11282 <desc>Free amount of physical guest RAM.</desc>
11283 </param>
11284 <param name="memBalloon" type="unsigned long" dir="out">
11285 <desc>Amount of ballooned physical guest RAM.</desc>
11286 </param>
11287 <param name="memShared" type="unsigned long" dir="out">
11288 <desc>Amount of shared physical guest RAM.</desc>
11289 </param>
11290 <param name="memCache" type="unsigned long" dir="out">
11291 <desc>Total amount of guest (disk) cache memory.</desc>
11292 </param>
11293 <param name="pagedTotal" type="unsigned long" dir="out">
11294 <desc>Total amount of space in the page file.</desc>
11295 </param>
11296 <param name="memAllocTotal" type="unsigned long" dir="out">
11297 <desc>Total amount of memory allocated by the hypervisor.</desc>
11298 </param>
11299 <param name="memFreeTotal" type="unsigned long" dir="out">
11300 <desc>Total amount of free memory available in the hypervisor.</desc>
11301 </param>
11302 <param name="memBalloonTotal" type="unsigned long" dir="out">
11303 <desc>Total amount of memory ballooned by the hypervisor.</desc>
11304 </param>
11305 <param name="memSharedTotal" type="unsigned long" dir="out">
11306 <desc>Total amount of shared memory in the hypervisor.</desc>
11307 </param>
11308 </method>
11309
11310 <method name="getFacilityStatus">
11311 <desc>
11312 Get the current status of a Guest Additions facility.
11313 </desc>
11314 <param name="facility" type="AdditionsFacilityType" dir="in">
11315 <desc>Facility to check status for.</desc>
11316 </param>
11317 <param name="timestamp" type="long long" dir="out">
11318 <desc>Timestamp (in ms) of last status update seen by the host.</desc>
11319 </param>
11320 <param name="status" type="AdditionsFacilityStatus" dir="return">
11321 <desc>The current (latest) facility status.</desc>
11322 </param>
11323 </method>
11324
11325 <method name="getAdditionsStatus">
11326 <desc>
11327 Retrieve the current status of a certain Guest Additions run level.
11328
11329 <result name="VBOX_E_NOT_SUPPORTED">
11330 Wrong status level specified.
11331 </result>
11332
11333 </desc>
11334 <param name="level" type="AdditionsRunLevelType" dir="in">
11335 <desc>Status level to check</desc>
11336 </param>
11337 <param name="active" type="boolean" dir="return">
11338 <desc>Flag whether the status level has been reached or not</desc>
11339 </param>
11340 </method>
11341
11342 <method name="setCredentials">
11343 <desc>
11344 Store login credentials that can be queried by guest operating
11345 systems with Additions installed. The credentials are transient
11346 to the session and the guest may also choose to erase them. Note
11347 that the caller cannot determine whether the guest operating system
11348 has queried or made use of the credentials.
11349
11350 <result name="VBOX_E_VM_ERROR">
11351 VMM device is not available.
11352 </result>
11353
11354 </desc>
11355 <param name="userName" type="wstring" dir="in">
11356 <desc>User name string, can be empty</desc>
11357 </param>
11358 <param name="password" type="wstring" dir="in">
11359 <desc>Password string, can be empty</desc>
11360 </param>
11361 <param name="domain" type="wstring" dir="in">
11362 <desc>Domain name (guest logon scheme specific), can be empty</desc>
11363 </param>
11364 <param name="allowInteractiveLogon" type="boolean" dir="in">
11365 <desc>
11366 Flag whether the guest should alternatively allow the user to
11367 interactively specify different credentials. This flag might
11368 not be supported by all versions of the Additions.
11369 </desc>
11370 </param>
11371 </method>
11372
11373 <method name="dragHGEnter">
11374 <desc>
11375 Informs the guest about a Drag and Drop enter event.
11376
11377 This is used in Host - Guest direction.
11378
11379 <result name="VBOX_E_VM_ERROR">
11380 VMM device is not available.
11381 </result>
11382
11383 </desc>
11384 <param name="screenId" type="unsigned long" dir="in">
11385 <desc>The screen id where the Drag and Drop event occured.</desc>
11386 </param>
11387 <param name="y" type="unsigned long" dir="in">
11388 <desc>y-position of the event.</desc>
11389 </param>
11390 <param name="x" type="unsigned long" dir="in">
11391 <desc>x-position of the event.</desc>
11392 </param>
11393 <param name="defaultAction" type="DragAndDropAction" dir="in">
11394 <desc>The default action to use.</desc>
11395 </param>
11396 <param name="allowedActions" type="DragAndDropAction" dir="in" safearray="yes">
11397 <desc>The actions which are allowed.</desc>
11398 </param>
11399 <param name="formats" type="wstring" dir="in" safearray="yes">
11400 <desc>The supported mime types.</desc>
11401 </param>
11402 <param name="resultAction" type="DragAndDropAction" dir="return">
11403 <desc>The resulting action of this event.</desc>
11404 </param>
11405 </method>
11406
11407 <method name="dragHGMove">
11408 <desc>
11409 Informs the guest about a Drag and Drop move event.
11410
11411 This is used in Host - Guest direction.
11412
11413 <result name="VBOX_E_VM_ERROR">
11414 VMM device is not available.
11415 </result>
11416
11417 </desc>
11418 <param name="screenId" type="unsigned long" dir="in">
11419 <desc>The screen id where the Drag and Drop event occured.</desc>
11420 </param>
11421 <param name="x" type="unsigned long" dir="in">
11422 <desc>x-position of the event.</desc>
11423 </param>
11424 <param name="y" type="unsigned long" dir="in">
11425 <desc>y-position of the event.</desc>
11426 </param>
11427 <param name="defaultAction" type="DragAndDropAction" dir="in">
11428 <desc>The default action to use.</desc>
11429 </param>
11430 <param name="allowedActions" type="DragAndDropAction" dir="in" safearray="yes">
11431 <desc>The actions which are allowed.</desc>
11432 </param>
11433 <param name="formats" type="wstring" dir="in" safearray="yes">
11434 <desc>The supported mime types.</desc>
11435 </param>
11436 <param name="resultAction" type="DragAndDropAction" dir="return">
11437 <desc>The resulting action of this event.</desc>
11438 </param>
11439 </method>
11440
11441 <method name="dragHGLeave">
11442 <desc>
11443 Informs the guest about a Drag and Drop leave event.
11444
11445 This is used in Host - Guest direction.
11446
11447 <result name="VBOX_E_VM_ERROR">
11448 VMM device is not available.
11449 </result>
11450
11451 </desc>
11452 <param name="screenId" type="unsigned long" dir="in">
11453 <desc>The screen id where the Drag and Drop event occured.</desc>
11454 </param>
11455 </method>
11456
11457 <method name="dragHGDrop">
11458 <desc>
11459 Informs the guest about a drop event.
11460
11461 This is used in Host - Guest direction.
11462
11463 <result name="VBOX_E_VM_ERROR">
11464 VMM device is not available.
11465 </result>
11466
11467 </desc>
11468 <param name="screenId" type="unsigned long" dir="in">
11469 <desc>The screen id where the Drag and Drop event occured.</desc>
11470 </param>
11471 <param name="x" type="unsigned long" dir="in">
11472 <desc>x-position of the event.</desc>
11473 </param>
11474 <param name="y" type="unsigned long" dir="in">
11475 <desc>y-position of the event.</desc>
11476 </param>
11477 <param name="defaultAction" type="DragAndDropAction" dir="in">
11478 <desc>The default action to use.</desc>
11479 </param>
11480 <param name="allowedActions" type="DragAndDropAction" dir="in" safearray="yes">
11481 <desc>The actions which are allowed.</desc>
11482 </param>
11483 <param name="formats" type="wstring" dir="in" safearray="yes">
11484 <desc>The supported mime types.</desc>
11485 </param>
11486 <param name="format" type="wstring" dir="out">
11487 <desc>The resulting format of this event.</desc>
11488 </param>
11489 <param name="resultAction" type="DragAndDropAction" dir="return">
11490 <desc>The resulting action of this event.</desc>
11491 </param>
11492 </method>
11493
11494 <method name="dragHGPutData">
11495 <desc>
11496 Informs the guest about a drop data event.
11497
11498 This is used in Host - Guest direction.
11499
11500 <result name="VBOX_E_VM_ERROR">
11501 VMM device is not available.
11502 </result>
11503
11504 </desc>
11505 <param name="screenId" type="unsigned long" dir="in">
11506 <desc>The screen id where the Drag and Drop event occured.</desc>
11507 </param>
11508 <param name="format" type="wstring" dir="in">
11509 <desc>The mime type the data is in.</desc>
11510 </param>
11511 <param name="data" type="octet" dir="in" safearray="yes">
11512 <desc>The actual data.</desc>
11513 </param>
11514 <param name="progress" type="IProgress" dir="return">
11515 <desc>Progress object to track the operation completion.</desc>
11516 </param>
11517 </method>
11518
11519 <method name="dragGHPending">
11520 <desc>
11521 Ask the guest if there is any Drag and Drop operation pending in the guest.
11522
11523 If no Drag and Drop operation is pending currently, Ignore is returned.
11524
11525 This is used in Guest - Host direction.
11526
11527 <result name="VBOX_E_VM_ERROR">
11528 VMM device is not available.
11529 </result>
11530
11531 </desc>
11532 <param name="screenId" type="unsigned long" dir="in">
11533 <desc>The screen id where the Drag and Drop event occured.</desc>
11534 </param>
11535 <param name="formats" type="wstring" dir="out" safearray="yes">
11536 <desc>On return the supported mime types.</desc>
11537 </param>
11538 <param name="allowedActions" type="DragAndDropAction" dir="out" safearray="yes">
11539 <desc>On return the actions which are allowed.</desc>
11540 </param>
11541 <param name="defaultAction" type="DragAndDropAction" dir="return">
11542 <desc>On return the default action to use.</desc>
11543 </param>
11544 </method>
11545
11546 <method name="dragGHDropped">
11547 <desc>
11548 Informs the guest that a drop event occured for a pending Drag and Drop event.
11549
11550 This is used in Guest - Host direction.
11551
11552 <result name="VBOX_E_VM_ERROR">
11553 VMM device is not available.
11554 </result>
11555
11556 </desc>
11557
11558 <param name="format" type="wstring" dir="in">
11559 <desc>The mime type the data must be in.</desc>
11560 </param>
11561 <param name="action" type="DragAndDropAction" dir="in">
11562 <desc>The action to use.</desc>
11563 </param>
11564 <param name="progress" type="IProgress" dir="return">
11565 <desc>Progress object to track the operation completion.</desc>
11566 </param>
11567 </method>
11568
11569 <method name="dragGHGetData">
11570 <desc>
11571 Fetch the data of a previously Drag and Drop event from the guest.
11572
11573 This is used in Guest - Host direction.
11574
11575 <result name="VBOX_E_VM_ERROR">
11576 VMM device is not available.
11577 </result>
11578
11579 </desc>
11580
11581 <param name="data" type="octet" safearray="yes" dir="return">
11582 <desc>The actual data.</desc>
11583 </param>
11584 </method>
11585
11586 <method name="createSession">
11587 <desc>
11588 Creates a new guest session for controlling the guest.
11589
11590 A guest session represents one impersonated user account on the guest, so
11591 every operation will use the same credentials specified when creating
11592 the session object via <link to="IGuest::createSession"/>. Anonymous
11593 sessions, that is, sessions without specifying a valid
11594 user account on the guest are not allowed due to security reasons.
11595
11596 There can be a maximum of 32 sessions at once per VM. Each session keeps
11597 track of its started guest processes, opened guest files or guest directories.
11598 To work on guest files or directories a guest session offers methods to open
11599 or create such objects (see <link to="IGuestSession::fileOpen"/> or
11600 <link to="IGuestSession::directoryOpen"/> for example).
11601
11602 When done with either of these objects, including the guest session itself,
11603 use the appropriate close() method to let the object do its cleanup work.
11604
11605 Every guest session has its own environment variable block which gets
11606 automatically applied when starting a new guest process via
11607 <link to="IGuestSession::processCreate"/> or <link to="IGuestSession::processCreateEx"/>.
11608 To override (or unset) certain environment variables already set by the
11609 guest session, one can specify a per-process environment block when using
11610 one of the both above mentioned process creation calls.
11611
11612 Closing a session via <link to="IGuestSession::close" /> will try to close
11613 all the mentioned objects above unless these objects are still used by
11614 a client.
11615 </desc>
11616 <param name="user" type="wstring" dir="in">
11617 <desc>
11618 User name this session will be using to control the guest; has to exist
11619 and have the appropriate rights to execute programs in the VM. Must not
11620 be empty.
11621 </desc>
11622 </param>
11623 <param name="password" type="wstring" dir="in">
11624 <desc>
11625 Password of the user account to be used. Empty passwords are allowed.
11626 </desc>
11627 </param>
11628 <param name="domain" type="wstring" dir="in">
11629 <desc>
11630 Domain name of the user account to be used if the guest is part of
11631 a domain. Optional. This feature is not implemented yet.
11632 </desc>
11633 </param>
11634 <param name="sessionName" type="wstring" dir="in">
11635 <desc>
11636 The session's friendly name. Optional, can be empty.
11637 </desc>
11638 </param>
11639 <param name="guestSession" type="IGuestSession" dir="return">
11640 <desc>
11641 The newly created session object.
11642 </desc>
11643 </param>
11644 </method>
11645
11646 <method name="findSession">
11647 <desc>
11648 Finds guest sessions by their friendly name and returns an interface
11649 array with all found guest sessions.
11650 </desc>
11651 <param name="sessionName" type="wstring" dir="in">
11652 <desc>
11653 The session's friendly name to find. Wildcards like ? and * are allowed.
11654 </desc>
11655 </param>
11656 <param name="sessions" type="IGuestSession" safearray="yes" dir="return">
11657 <desc>
11658 Array with all guest sessions found matching the name specified.
11659 </desc>
11660 </param>
11661 </method>
11662
11663 <method name="updateGuestAdditions">
11664 <desc>
11665 Automatically updates already installed Guest Additions in a VM.
11666
11667 At the moment only Windows guests are supported.
11668
11669 Because the VirtualBox Guest Additions drivers are not WHQL-certified
11670 yet there might be warning dialogs during the actual Guest Additions
11671 update. These need to be confirmed manually in order to continue the
11672 installation process. This applies to Windows 2000 and Windows XP guests
11673 and therefore these guests can't be updated in a fully automated fashion
11674 without user interaction. However, to start a Guest Additions update for
11675 the mentioned Windows versions anyway, the flag
11676 AdditionsUpdateFlag_WaitForUpdateStartOnly can be specified. See
11677 <link to="AdditionsUpdateFlag"/> for more information.
11678
11679 <result name="VBOX_E_NOT_SUPPORTED">
11680 Guest OS is not supported for automated Guest Additions updates or the
11681 already installed Guest Additions are not ready yet.
11682 </result>
11683
11684 <result name="VBOX_E_IPRT_ERROR">
11685 Error while updating.
11686 </result>
11687
11688 </desc>
11689 <param name="source" type="wstring" dir="in">
11690 <desc>
11691 Path to the Guest Additions .ISO file to use for the upate.
11692 </desc>
11693 </param>
11694 <param name="flags" type="AdditionsUpdateFlag" dir="in" safearray="yes">
11695 <desc>
11696 <link to="AdditionsUpdateFlag"/> flags.
11697 </desc>
11698 </param>
11699 <param name="progress" type="IProgress" dir="return">
11700 <desc>Progress object to track the operation completion.</desc>
11701 </param>
11702 </method>
11703
11704 </interface>
11705
11706
11707 <!--
11708 // IProgress
11709 /////////////////////////////////////////////////////////////////////////
11710 -->
11711
11712 <interface
11713 name="IProgress" extends="$unknown"
11714 uuid="c20238e4-3221-4d3f-8891-81ce92d9f913"
11715 wsmap="managed"
11716 >
11717 <desc>
11718 The IProgress interface is used to track and control
11719 asynchronous tasks within VirtualBox.
11720
11721 An instance of this is returned every time VirtualBox starts
11722 an asynchronous task (in other words, a separate thread) which
11723 continues to run after a method call returns. For example,
11724 <link to="IConsole::saveState" />, which saves the state of
11725 a running virtual machine, can take a long time to complete.
11726 To be able to display a progress bar, a user interface such as
11727 the VirtualBox graphical user interface can use the IProgress
11728 object returned by that method.
11729
11730 Note that IProgress is a "read-only" interface in the sense
11731 that only the VirtualBox internals behind the Main API can
11732 create and manipulate progress objects, whereas client code
11733 can only use the IProgress object to monitor a task's
11734 progress and, if <link to="#cancelable" /> is @c true,
11735 cancel the task by calling <link to="#cancel" />.
11736
11737 A task represented by IProgress consists of either one or
11738 several sub-operations that run sequentially, one by one (see
11739 <link to="#operation" /> and <link to="#operationCount" />).
11740 Every operation is identified by a number (starting from 0)
11741 and has a separate description.
11742
11743 You can find the individual percentage of completion of the current
11744 operation in <link to="#operationPercent" /> and the
11745 percentage of completion of the task as a whole
11746 in <link to="#percent" />.
11747
11748 Similarly, you can wait for the completion of a particular
11749 operation via <link to="#waitForOperationCompletion" /> or
11750 for the completion of the whole task via
11751 <link to="#waitForCompletion" />.
11752 </desc>
11753
11754 <attribute name="id" type="uuid" mod="string" readonly="yes">
11755 <desc>ID of the task.</desc>
11756 </attribute>
11757
11758 <attribute name="description" type="wstring" readonly="yes">
11759 <desc>Description of the task.</desc>
11760 </attribute>
11761
11762 <attribute name="initiator" type="$unknown" readonly="yes">
11763 <desc>Initiator of the task.</desc>
11764 </attribute>
11765
11766 <attribute name="cancelable" type="boolean" readonly="yes">
11767 <desc>Whether the task can be interrupted.</desc>
11768 </attribute>
11769
11770 <attribute name="percent" type="unsigned long" readonly="yes">
11771 <desc>
11772 Current progress value of the task as a whole, in percent.
11773 This value depends on how many operations are already complete.
11774 Returns 100 if <link to="#completed" /> is @c true.
11775 </desc>
11776 </attribute>
11777
11778 <attribute name="timeRemaining" type="long" readonly="yes">
11779 <desc>
11780 Estimated remaining time until the task completes, in
11781 seconds. Returns 0 once the task has completed; returns -1
11782 if the remaining time cannot be computed, in particular if
11783 the current progress is 0.
11784
11785 Even if a value is returned, the estimate will be unreliable
11786 for low progress values. It will become more reliable as the
11787 task progresses; it is not recommended to display an ETA
11788 before at least 20% of a task have completed.
11789 </desc>
11790 </attribute>
11791
11792 <attribute name="completed" type="boolean" readonly="yes">
11793 <desc>Whether the task has been completed.</desc>
11794 </attribute>
11795
11796 <attribute name="canceled" type="boolean" readonly="yes">
11797 <desc>Whether the task has been canceled.</desc>
11798 </attribute>
11799
11800 <attribute name="resultCode" type="long" readonly="yes">
11801 <desc>
11802 Result code of the progress task.
11803 Valid only if <link to="#completed"/> is @c true.
11804 </desc>
11805 </attribute>
11806
11807 <attribute name="errorInfo" type="IVirtualBoxErrorInfo" readonly="yes">
11808 <desc>
11809 Extended information about the unsuccessful result of the
11810 progress operation. May be @c null if no extended information
11811 is available.
11812 Valid only if <link to="#completed"/> is @c true and
11813 <link to="#resultCode"/> indicates a failure.
11814 </desc>
11815 </attribute>
11816
11817 <attribute name="operationCount" type="unsigned long" readonly="yes">
11818 <desc>
11819 Number of sub-operations this task is divided into.
11820 Every task consists of at least one suboperation.
11821 </desc>
11822 </attribute>
11823
11824 <attribute name="operation" type="unsigned long" readonly="yes">
11825 <desc>Number of the sub-operation being currently executed.</desc>
11826 </attribute>
11827
11828 <attribute name="operationDescription" type="wstring" readonly="yes">
11829 <desc>
11830 Description of the sub-operation being currently executed.
11831 </desc>
11832 </attribute>
11833
11834 <attribute name="operationPercent" type="unsigned long" readonly="yes">
11835 <desc>Progress value of the current sub-operation only, in percent.</desc>
11836 </attribute>
11837
11838 <attribute name="operationWeight" type="unsigned long" readonly="yes">
11839 <desc>Weight value of the current sub-operation only.</desc>
11840 </attribute>
11841
11842 <attribute name="timeout" type="unsigned long">
11843 <desc>
11844 When non-zero, this specifies the number of milliseconds after which
11845 the operation will automatically be canceled. This can only be set on
11846 cancelable objects.
11847 </desc>
11848 </attribute>
11849
11850 <method name="setCurrentOperationProgress">
11851 <desc>Internal method, not to be called externally.</desc>
11852 <param name="percent" type="unsigned long" dir="in" />
11853 </method>
11854 <method name="setNextOperation">
11855 <desc>Internal method, not to be called externally.</desc>
11856 <param name="nextOperationDescription" type="wstring" dir="in" />
11857 <param name="nextOperationsWeight" type="unsigned long" dir="in" />
11858 </method>
11859
11860 <method name="waitForCompletion">
11861 <desc>
11862 Waits until the task is done (including all sub-operations)
11863 with a given timeout in milliseconds; specify -1 for an indefinite wait.
11864
11865 Note that the VirtualBox/XPCOM/COM/native event queues of the calling
11866 thread are not processed while waiting. Neglecting event queues may
11867 have dire consequences (degrade performance, resource hogs,
11868 deadlocks, etc.), this is specially so for the main thread on
11869 platforms using XPCOM. Callers are adviced wait for short periods
11870 and service their event queues between calls, or to create a worker
11871 thread to do the waiting.
11872
11873 <result name="VBOX_E_IPRT_ERROR">
11874 Failed to wait for task completion.
11875 </result>
11876 </desc>
11877
11878 <param name="timeout" type="long" dir="in">
11879 <desc>
11880 Maximum time in milliseconds to wait or -1 to wait indefinitely.
11881 </desc>
11882 </param>
11883 </method>
11884
11885 <method name="waitForOperationCompletion">
11886 <desc>
11887 Waits until the given operation is done with a given timeout in
11888 milliseconds; specify -1 for an indefinite wait.
11889
11890 See <link to="#waitForCompletion"> for event queue considerations.</link>
11891
11892 <result name="VBOX_E_IPRT_ERROR">
11893 Failed to wait for operation completion.
11894 </result>
11895
11896 </desc>
11897 <param name="operation" type="unsigned long" dir="in">
11898 <desc>
11899 Number of the operation to wait for.
11900 Must be less than <link to="#operationCount"/>.
11901 </desc>
11902 </param>
11903 <param name="timeout" type="long" dir="in">
11904 <desc>
11905 Maximum time in milliseconds to wait or -1 to wait indefinitely.
11906 </desc>
11907 </param>
11908 </method>
11909
11910 <method name="waitForAsyncProgressCompletion">
11911 <desc>
11912 Waits until the other task is completed (including all
11913 sub-operations) and forward all changes from the other progress to
11914 this progress. This means sub-operation number, description, percent
11915 and so on.
11916
11917 You have to take care on setting up at least the same count on
11918 sub-operations in this progress object like there are in the other
11919 progress object.
11920
11921 If the other progress object supports cancel and this object gets any
11922 cancel request (when here enabled as well), it will be forwarded to
11923 the other progress object.
11924
11925 If there is an error in the other progress, this error isn't
11926 automatically transfered to this progress object. So you have to
11927 check any operation error within the other progress object, after
11928 this method returns.
11929 </desc>
11930
11931 <param name="pProgressAsync" type="IProgress" dir="in">
11932 <desc>
11933 The progress object of the asynchrony process.
11934 </desc>
11935 </param>
11936 </method>
11937
11938 <method name="cancel">
11939 <desc>
11940 Cancels the task.
11941 <note>
11942 If <link to="#cancelable"/> is @c false, then this method will fail.
11943 </note>
11944
11945 <result name="VBOX_E_INVALID_OBJECT_STATE">
11946 Operation cannot be canceled.
11947 </result>
11948
11949 </desc>
11950 </method>
11951
11952 </interface>
11953
11954 <!--
11955 // ISnapshot
11956 /////////////////////////////////////////////////////////////////////////
11957 -->
11958
11959 <interface
11960 name="ISnapshot" extends="$unknown"
11961 uuid="0472823b-c6e7-472a-8e9f-d732e86b8463"
11962 wsmap="managed"
11963 >
11964 <desc>
11965 The ISnapshot interface represents a snapshot of the virtual
11966 machine.
11967
11968 Together with the differencing media that are created
11969 when a snapshot is taken, a machine can be brought back to
11970 the exact state it was in when the snapshot was taken.
11971
11972 The ISnapshot interface has no methods, only attributes; snapshots
11973 are controlled through methods of the <link to="IConsole" /> interface
11974 which also manage the media associated with the snapshot.
11975 The following operations exist:
11976
11977 <ul>
11978 <li><link to="IConsole::takeSnapshot"/> creates a new snapshot
11979 by creating new, empty differencing images for the machine's
11980 media and saving the VM settings and (if the VM is running)
11981 the current VM state in the snapshot.
11982
11983 The differencing images will then receive all data written to
11984 the machine's media, while their parent (base) images
11985 remain unmodified after the snapshot has been taken (see
11986 <link to="IMedium" /> for details about differencing images).
11987 This simplifies restoring a machine to the state of a snapshot:
11988 only the differencing images need to be deleted.
11989
11990 The current machine state is not changed by taking a snapshot
11991 except that <link to="IMachine::currentSnapshot" /> is set to
11992 the newly created snapshot, which is also added to the machine's
11993 snapshots tree.
11994 </li>
11995
11996 <li><link to="IConsole::restoreSnapshot"/> resets a machine to
11997 the state of a previous snapshot by deleting the differencing
11998 image of each of the machine's media and setting the machine's
11999 settings and state to the state that was saved in the snapshot (if any).
12000
12001 This destroys the machine's current state. After calling this,
12002 <link to="IMachine::currentSnapshot" /> points to the snapshot
12003 that was restored.
12004 </li>
12005
12006 <li><link to="IConsole::deleteSnapshot"/> deletes a snapshot
12007 without affecting the current machine state.
12008
12009 This does not change the current machine state, but instead frees the
12010 resources allocated when the snapshot was taken: the settings and machine
12011 state file are deleted (if any), and the snapshot's differencing image for
12012 each of the machine's media gets merged with its parent image.
12013
12014 Neither the current machine state nor other snapshots are affected
12015 by this operation, except that parent media will be modified
12016 to contain the disk data associated with the snapshot being deleted.
12017
12018 When deleting the current snapshot, the <link to="IMachine::currentSnapshot" />
12019 attribute is set to the current snapshot's parent or @c null if it
12020 has no parent. Otherwise the attribute is unchanged.
12021 </li>
12022 </ul>
12023
12024 Each snapshot contains a copy of virtual machine's settings (hardware
12025 configuration etc.). This copy is contained in an immutable (read-only)
12026 instance of <link to="IMachine" /> which is available from the snapshot's
12027 <link to="#machine" /> attribute. When restoring the snapshot, these
12028 settings are copied back to the original machine.
12029
12030 In addition, if the machine was running when the
12031 snapshot was taken (<link to="IMachine::state"/> is <link to="MachineState_Running"/>),
12032 the current VM state is saved in the snapshot (similarly to what happens
12033 when a VM's state is saved). The snapshot is then said to be <i>online</i>
12034 because when restoring it, the VM will be running.
12035
12036 If the machine was in <link to="MachineState_Saved">saved</link> saved,
12037 the snapshot receives a copy of the execution state file
12038 (<link to="IMachine::stateFilePath"/>).
12039
12040 Otherwise, if the machine was not running (<link to="MachineState_PoweredOff"/>
12041 or <link to="MachineState_Aborted"/>), the snapshot is <i>offline</i>;
12042 it then contains a so-called "zero execution state", representing a
12043 machine that is powered off.
12044 </desc>
12045
12046 <attribute name="id" type="uuid" mod="string" readonly="yes">
12047 <desc>UUID of the snapshot.</desc>
12048 </attribute>
12049
12050 <attribute name="name" type="wstring">
12051 <desc>Short name of the snapshot.
12052 <note>Setting this attribute causes <link to="IMachine::saveSettings" /> to
12053 be called implicitly.</note>
12054 </desc>
12055 </attribute>
12056
12057 <attribute name="description" type="wstring">
12058 <desc>Optional description of the snapshot.
12059 <note>Setting this attribute causes <link to="IMachine::saveSettings" /> to
12060 be called implicitly.</note>
12061 </desc>
12062 </attribute>
12063
12064 <attribute name="timeStamp" type="long long" readonly="yes">
12065 <desc>
12066 Time stamp of the snapshot, in milliseconds since 1970-01-01 UTC.
12067 </desc>
12068 </attribute>
12069
12070 <attribute name="online" type="boolean" readonly="yes">
12071 <desc>
12072 @c true if this snapshot is an online snapshot and @c false otherwise.
12073
12074 When this attribute is @c true, the
12075 <link to="IMachine::stateFilePath"/> attribute of the
12076 <link to="#machine"/> object associated with this snapshot
12077 will point to the saved state file. Otherwise, it will be
12078 an empty string.
12079 </desc>
12080 </attribute>
12081
12082 <attribute name="machine" type="IMachine" readonly="yes">
12083 <desc>
12084 Virtual machine this snapshot is taken on. This object
12085 stores all settings the machine had when taking this snapshot.
12086 <note>
12087 The returned machine object is immutable, i.e. no
12088 any settings can be changed.
12089 </note>
12090 </desc>
12091 </attribute>
12092
12093 <attribute name="parent" type="ISnapshot" readonly="yes">
12094 <desc>
12095 Parent snapshot (a snapshot this one is based on), or
12096 @c null if the snapshot has no parent (i.e. is the first snapshot).
12097 </desc>
12098 </attribute>
12099
12100 <attribute name="children" type="ISnapshot" readonly="yes" safearray="yes">
12101 <desc>
12102 Child snapshots (all snapshots having this one as a parent).
12103 By inspecting this attribute starting with a machine's root snapshot
12104 (which can be obtained by calling <link to="IMachine::findSnapshot" />
12105 with a @c null UUID), a machine's snapshots tree can be iterated over.
12106 </desc>
12107 </attribute>
12108
12109 <method name="getChildrenCount" const="yes">
12110 <desc>
12111 Returns the number of direct childrens of this snapshot.
12112 </desc>
12113 <param name="childrenCount" type="unsigned long" dir="return">
12114 <desc>
12115 </desc>
12116 </param>
12117 </method>
12118
12119 </interface>
12120
12121
12122 <!--
12123 // IMedium
12124 /////////////////////////////////////////////////////////////////////////
12125 -->
12126
12127 <enum
12128 name="MediumState"
12129 uuid="ef41e980-e012-43cd-9dea-479d4ef14d13"
12130 >
12131 <desc>
12132 Virtual medium state.
12133 <see><link to="IMedium"/></see>
12134 </desc>
12135
12136 <const name="NotCreated" value="0">
12137 <desc>
12138 Associated medium storage does not exist (either was not created yet or
12139 was deleted).
12140 </desc>
12141 </const>
12142 <const name="Created" value="1">
12143 <desc>
12144 Associated storage exists and accessible; this gets set if the
12145 accessibility check performed by <link to="IMedium::refreshState" />
12146 was successful.
12147 </desc>
12148 </const>
12149 <const name="LockedRead" value="2">
12150 <desc>
12151 Medium is locked for reading (see <link to="IMedium::lockRead"/>),
12152 no data modification is possible.
12153 </desc>
12154 </const>
12155 <const name="LockedWrite" value="3">
12156 <desc>
12157 Medium is locked for writing (see <link to="IMedium::lockWrite"/>),
12158 no concurrent data reading or modification is possible.
12159 </desc>
12160 </const>
12161 <const name="Inaccessible" value="4">
12162 <desc>
12163 Medium accessibility check (see <link to="IMedium::refreshState" />) has
12164 not yet been performed, or else, associated medium storage is not
12165 accessible. In the first case, <link to="IMedium::lastAccessError"/>
12166 is empty, in the second case, it describes the error that occurred.
12167 </desc>
12168 </const>
12169 <const name="Creating" value="5">
12170 <desc>
12171 Associated medium storage is being created.
12172 </desc>
12173 </const>
12174 <const name="Deleting" value="6">
12175 <desc>
12176 Associated medium storage is being deleted.
12177 </desc>
12178 </const>
12179 </enum>
12180
12181 <enum
12182 name="MediumType"
12183 uuid="fe663fb5-c244-4e1b-9d81-c628b417dd04"
12184 >
12185 <desc>
12186 Virtual medium type. For each <link to="IMedium" />, this defines how the medium is
12187 attached to a virtual machine (see <link to="IMediumAttachment" />) and what happens
12188 when a snapshot (see <link to="ISnapshot" />) is taken of a virtual machine which has
12189 the medium attached. At the moment DVD and floppy media are always of type "writethrough".
12190 </desc>
12191
12192 <const name="Normal" value="0">
12193 <desc>
12194 Normal medium (attached directly or indirectly, preserved
12195 when taking snapshots).
12196 </desc>
12197 </const>
12198 <const name="Immutable" value="1">
12199 <desc>
12200 Immutable medium (attached indirectly, changes are wiped out
12201 the next time the virtual machine is started).
12202 </desc>
12203 </const>
12204 <const name="Writethrough" value="2">
12205 <desc>
12206 Write through medium (attached directly, ignored when
12207 taking snapshots).
12208 </desc>
12209 </const>
12210 <const name="Shareable" value="3">
12211 <desc>
12212 Allow using this medium concurrently by several machines.
12213 <note>Present since VirtualBox 3.2.0, and accepted since 3.2.8.</note>
12214 </desc>
12215 </const>
12216 <const name="Readonly" value="4">
12217 <desc>
12218 A readonly medium, which can of course be used by several machines.
12219 <note>Present and accepted since VirtualBox 4.0.</note>
12220 </desc>
12221 </const>
12222 <const name="MultiAttach" value="5">
12223 <desc>
12224 A medium which is indirectly attached, so that one base medium can
12225 be used for several VMs which have their own differencing medium to
12226 store their modifications. In some sense a variant of Immutable
12227 with unset AutoReset flag in each differencing medium.
12228 <note>Present and accepted since VirtualBox 4.0.</note>
12229 </desc>
12230 </const>
12231 </enum>
12232
12233 <enum
12234 name="MediumVariant"
12235 uuid="80685b6b-e42f-497d-8271-e77bf3c61ada"
12236 >
12237 <desc>
12238 Virtual medium image variant. More than one flag may be set.
12239 <see><link to="IMedium"/></see>
12240 </desc>
12241
12242 <const name="Standard" value="0">
12243 <desc>
12244 No particular variant requested, results in using the backend default.
12245 </desc>
12246 </const>
12247 <const name="VmdkSplit2G" value="0x01">
12248 <desc>
12249 VMDK image split in chunks of less than 2GByte.
12250 </desc>
12251 </const>
12252 <const name="VmdkRawDisk" value="0x02">
12253 <desc>
12254 VMDK image representing a raw disk.
12255 </desc>
12256 </const>
12257 <const name="VmdkStreamOptimized" value="0x04">
12258 <desc>
12259 VMDK streamOptimized image. Special import/export format which is
12260 read-only/append-only.
12261 </desc>
12262 </const>
12263 <const name="VmdkESX" value="0x08">
12264 <desc>
12265 VMDK format variant used on ESX products.
12266 </desc>
12267 </const>
12268 <const name="Fixed" value="0x10000">
12269 <desc>
12270 Fixed image. Only allowed for base images.
12271 </desc>
12272 </const>
12273 <const name="Diff" value="0x20000">
12274 <desc>
12275 Differencing image. Only allowed for child images.
12276 </desc>
12277 </const>
12278 <const name="NoCreateDir" value="0x40000000">
12279 <desc>
12280 Special flag which suppresses automatic creation of the subdirectory.
12281 Only used when passing the medium variant as an input parameter.
12282 </desc>
12283 </const>
12284 </enum>
12285
12286 <interface
12287 name="IMediumAttachment" extends="$unknown"
12288 uuid="5ee464d6-0613-4331-b154-7ce12170ef9f"
12289 wsmap="struct"
12290 >
12291 <desc>
12292 The IMediumAttachment interface links storage media to virtual machines.
12293 For each medium (<link to="IMedium"/>) which has been attached to a
12294 storage controller (<link to="IStorageController"/>) of a machine
12295 (<link to="IMachine"/>) via the <link to="IMachine::attachDevice" />
12296 method, one instance of IMediumAttachment is added to the machine's
12297 <link to="IMachine::mediumAttachments"/> array attribute.
12298
12299 Each medium attachment specifies the storage controller as well as a
12300 port and device number and the IMedium instance representing a virtual
12301 hard disk or floppy or DVD image.
12302
12303 For removable media (DVDs or floppies), there are two additional
12304 options. For one, the IMedium instance can be @c null to represent
12305 an empty drive with no media inserted (see <link to="IMachine::mountMedium" />);
12306 secondly, the medium can be one of the pseudo-media for host drives
12307 listed in <link to="IHost::DVDDrives"/> or <link to="IHost::floppyDrives"/>.
12308
12309 <h3>Attaching Hard Disks</h3>
12310
12311 Hard disks are attached to virtual machines using the
12312 <link to="IMachine::attachDevice"/> method and detached using the
12313 <link to="IMachine::detachDevice"/> method. Depending on a medium's
12314 type (see <link to="IMedium::type" />), hard disks are attached either
12315 <i>directly</i> or <i>indirectly</i>.
12316
12317 When a hard disk is being attached directly, it is associated with the
12318 virtual machine and used for hard disk operations when the machine is
12319 running. When a hard disk is being attached indirectly, a new differencing
12320 hard disk linked to it is implicitly created and this differencing hard
12321 disk is associated with the machine and used for hard disk operations.
12322 This also means that if <link to="IMachine::attachDevice"/> performs
12323 a direct attachment then the same hard disk will be returned in response
12324 to the subsequent <link to="IMachine::getMedium"/> call; however if
12325 an indirect attachment is performed then
12326 <link to="IMachine::getMedium"/> will return the implicitly created
12327 differencing hard disk, not the original one passed to <link
12328 to="IMachine::attachDevice"/>. In detail:
12329
12330 <ul>
12331 <li><b>Normal base</b> hard disks that do not have children (i.e.
12332 differencing hard disks linked to them) and that are not already
12333 attached to virtual machines in snapshots are attached <b>directly</b>.
12334 Otherwise, they are attached <b>indirectly</b> because having
12335 dependent children or being part of the snapshot makes it impossible
12336 to modify hard disk contents without breaking the integrity of the
12337 dependent party. The <link to="IMedium::readOnly"/> attribute allows to
12338 quickly determine the kind of the attachment for the given hard
12339 disk. Note that if a normal base hard disk is to be indirectly
12340 attached to a virtual machine with snapshots then a special
12341 procedure called <i>smart attachment</i> is performed (see below).</li>
12342 <li><b>Normal differencing</b> hard disks are like normal base hard disks:
12343 they are attached <b>directly</b> if they do not have children and are
12344 not attached to virtual machines in snapshots, and <b>indirectly</b>
12345 otherwise. Note that the smart attachment procedure is never performed
12346 for differencing hard disks.</li>
12347 <li><b>Immutable</b> hard disks are always attached <b>indirectly</b> because
12348 they are designed to be non-writable. If an immutable hard disk is
12349 attached to a virtual machine with snapshots then a special
12350 procedure called smart attachment is performed (see below).</li>
12351 <li><b>Writethrough</b> hard disks are always attached <b>directly</b>,
12352 also as designed. This also means that writethrough hard disks cannot
12353 have other hard disks linked to them at all.</li>
12354 <li><b>Shareable</b> hard disks are always attached <b>directly</b>,
12355 also as designed. This also means that shareable hard disks cannot
12356 have other hard disks linked to them at all. They behave almost
12357 like writethrough hard disks, except that shareable hard disks can
12358 be attached to several virtual machines which are running, allowing
12359 concurrent accesses. You need special cluster software running in
12360 the virtual machines to make use of such disks.</li>
12361 </ul>
12362
12363 Note that the same hard disk, regardless of its type, may be attached to
12364 more than one virtual machine at a time. In this case, the machine that is
12365 started first gains exclusive access to the hard disk and attempts to
12366 start other machines having this hard disk attached will fail until the
12367 first machine is powered down.
12368
12369 Detaching hard disks is performed in a <i>deferred</i> fashion. This means
12370 that the given hard disk remains associated with the given machine after a
12371 successful <link to="IMachine::detachDevice"/> call until
12372 <link to="IMachine::saveSettings"/> is called to save all changes to
12373 machine settings to disk. This deferring is necessary to guarantee that
12374 the hard disk configuration may be restored at any time by a call to
12375 <link to="IMachine::discardSettings"/> before the settings
12376 are saved (committed).
12377
12378 Note that if <link to="IMachine::discardSettings"/> is called after
12379 indirectly attaching some hard disks to the machine but before a call to
12380 <link to="IMachine::saveSettings"/> is made, it will implicitly delete
12381 all differencing hard disks implicitly created by
12382 <link to="IMachine::attachDevice"/> for these indirect attachments.
12383 Such implicitly created hard disks will also be immediately deleted when
12384 detached explicitly using the <link to="IMachine::detachDevice"/>
12385 call if it is made before <link to="IMachine::saveSettings"/>. This
12386 implicit deletion is safe because newly created differencing hard
12387 disks do not contain any user data.
12388
12389 However, keep in mind that detaching differencing hard disks that were
12390 implicitly created by <link to="IMachine::attachDevice"/>
12391 before the last <link to="IMachine::saveSettings"/> call will
12392 <b>not</b> implicitly delete them as they may already contain some data
12393 (for example, as a result of virtual machine execution). If these hard
12394 disks are no more necessary, the caller can always delete them explicitly
12395 using <link to="IMedium::deleteStorage"/> after they are actually de-associated
12396 from this machine by the <link to="IMachine::saveSettings"/> call.
12397
12398 <h3>Smart Attachment</h3>
12399
12400 When normal base or immutable hard disks are indirectly attached to a
12401 virtual machine then some additional steps are performed to make sure the
12402 virtual machine will have the most recent "view" of the hard disk being
12403 attached. These steps include walking through the machine's snapshots
12404 starting from the current one and going through ancestors up to the first
12405 snapshot. Hard disks attached to the virtual machine in all
12406 of the encountered snapshots are checked whether they are descendants of
12407 the given normal base or immutable hard disk. The first found child (which
12408 is the differencing hard disk) will be used instead of the normal base or
12409 immutable hard disk as a parent for creating a new differencing hard disk
12410 that will be actually attached to the machine. And only if no descendants
12411 are found or if the virtual machine does not have any snapshots then the
12412 normal base or immutable hard disk will be used itself as a parent for
12413 this differencing hard disk.
12414
12415 It is easier to explain what smart attachment does using the
12416 following example:
12417 <pre>
12418BEFORE attaching B.vdi: AFTER attaching B.vdi:
12419
12420Snapshot 1 (B.vdi) Snapshot 1 (B.vdi)
12421 Snapshot 2 (D1->B.vdi) Snapshot 2 (D1->B.vdi)
12422 Snapshot 3 (D2->D1.vdi) Snapshot 3 (D2->D1.vdi)
12423 Snapshot 4 (none) Snapshot 4 (none)
12424 CurState (none) CurState (D3->D2.vdi)
12425
12426 NOT
12427 ...
12428 CurState (D3->B.vdi)
12429 </pre>
12430 The first column is the virtual machine configuration before the base hard
12431 disk <tt>B.vdi</tt> is attached, the second column shows the machine after
12432 this hard disk is attached. Constructs like <tt>D1->B.vdi</tt> and similar
12433 mean that the hard disk that is actually attached to the machine is a
12434 differencing hard disk, <tt>D1.vdi</tt>, which is linked to (based on)
12435 another hard disk, <tt>B.vdi</tt>.
12436
12437 As we can see from the example, the hard disk <tt>B.vdi</tt> was detached
12438 from the machine before taking Snapshot 4. Later, after Snapshot 4 was
12439 taken, the user decides to attach <tt>B.vdi</tt> again. <tt>B.vdi</tt> has
12440 dependent child hard disks (<tt>D1.vdi</tt>, <tt>D2.vdi</tt>), therefore
12441 it cannot be attached directly and needs an indirect attachment (i.e.
12442 implicit creation of a new differencing hard disk). Due to the smart
12443 attachment procedure, the new differencing hard disk
12444 (<tt>D3.vdi</tt>) will be based on <tt>D2.vdi</tt>, not on
12445 <tt>B.vdi</tt> itself, since <tt>D2.vdi</tt> is the most recent view of
12446 <tt>B.vdi</tt> existing for this snapshot branch of the given virtual
12447 machine.
12448
12449 Note that if there is more than one descendant hard disk of the given base
12450 hard disk found in a snapshot, and there is an exact device, channel and
12451 bus match, then this exact match will be used. Otherwise, the youngest
12452 descendant will be picked up.
12453
12454 There is one more important aspect of the smart attachment procedure which
12455 is not related to snapshots at all. Before walking through the snapshots
12456 as described above, the backup copy of the current list of hard disk
12457 attachment is searched for descendants. This backup copy is created when
12458 the hard disk configuration is changed for the first time after the last
12459 <link to="IMachine::saveSettings"/> call and used by
12460 <link to="IMachine::discardSettings"/> to undo the recent hard disk
12461 changes. When such a descendant is found in this backup copy, it will be
12462 simply re-attached back, without creating a new differencing hard disk for
12463 it. This optimization is necessary to make it possible to re-attach the
12464 base or immutable hard disk to a different bus, channel or device slot
12465 without losing the contents of the differencing hard disk actually
12466 attached to the machine in place of it.
12467
12468 </desc>
12469
12470 <attribute name="medium" type="IMedium" readonly="yes">
12471 <desc>Medium object associated with this attachment; it
12472 can be @c null for removable devices.</desc>
12473 </attribute>
12474
12475 <attribute name="controller" type="wstring" readonly="yes">
12476 <desc>Name of the storage controller of this attachment; this
12477 refers to one of the controllers in <link to="IMachine::storageControllers" />
12478 by name.</desc>
12479 </attribute>
12480
12481 <attribute name="port" type="long" readonly="yes">
12482 <desc>Port number of this attachment.
12483 See <link to="IMachine::attachDevice" /> for the meaning of this value for the different controller types.
12484 </desc>
12485 </attribute>
12486
12487 <attribute name="device" type="long" readonly="yes">
12488 <desc>Device slot number of this attachment.
12489 See <link to="IMachine::attachDevice" /> for the meaning of this value for the different controller types.
12490 </desc>
12491 </attribute>
12492
12493 <attribute name="type" type="DeviceType" readonly="yes">
12494 <desc>Device type of this attachment.</desc>
12495 </attribute>
12496
12497 <attribute name="passthrough" type="boolean" readonly="yes">
12498 <desc>Pass I/O requests through to a device on the host.</desc>
12499 </attribute>
12500
12501 <attribute name="temporaryEject" type="boolean" readonly="yes">
12502 <desc>Whether guest-triggered eject results in unmounting the medium.</desc>
12503 </attribute>
12504
12505 <attribute name="isEjected" type="boolean" readonly="yes">
12506 <desc>Signals that the removable medium has been ejected. This is not
12507 necessarily equivalent to having a @c null medium association.</desc>
12508 </attribute>
12509
12510 <attribute name="nonRotational" type="boolean" readonly="yes">
12511 <desc>Whether the associated medium is non-rotational.</desc>
12512 </attribute>
12513
12514 <attribute name="discard" type="boolean" readonly="yes">
12515 <desc>Whether the associated medium supports discarding unused blocks.</desc>
12516 </attribute>
12517
12518 <attribute name="bandwidthGroup" type="IBandwidthGroup" readonly="yes">
12519 <desc>The bandwidth group this medium attachment is assigned to.</desc>
12520 </attribute>
12521
12522 </interface>
12523
12524 <interface
12525 name="IMedium" extends="$unknown"
12526 uuid="86fd6208-4c8c-40c2-a4e3-f6b47ac6ef07"
12527 wsmap="managed"
12528 >
12529 <desc>
12530 The IMedium interface represents virtual storage for a machine's
12531 hard disks, CD/DVD or floppy drives. It will typically represent
12532 a disk image on the host, for example a VDI or VMDK file representing
12533 a virtual hard disk, or an ISO or RAW file representing virtual
12534 removable media, but can also point to a network location (e.g.
12535 for iSCSI targets).
12536
12537 Instances of IMedium are connected to virtual machines by way of medium
12538 attachments, which link the storage medium to a particular device slot
12539 of a storage controller of the virtual machine.
12540 In the VirtualBox API, virtual storage is therefore always represented
12541 by the following chain of object links:
12542
12543 <ul>
12544 <li><link to="IMachine::storageControllers"/> contains an array of
12545 storage controllers (IDE, SATA, SCSI, SAS or a floppy controller;
12546 these are instances of <link to="IStorageController"/>).</li>
12547 <li><link to="IMachine::mediumAttachments"/> contains an array of
12548 medium attachments (instances of <link to="IMediumAttachment"/>
12549 created by <link to="IMachine::attachDevice" />),
12550 each containing a storage controller from the above array, a
12551 port/device specification, and an instance of IMedium representing
12552 the medium storage (image file).
12553
12554 For removable media, the storage medium is optional; a medium
12555 attachment with no medium represents a CD/DVD or floppy drive
12556 with no medium inserted. By contrast, hard disk attachments
12557 will always have an IMedium object attached.</li>
12558 <li>Each IMedium in turn points to a storage unit (such as a file
12559 on the host computer or a network resource) that holds actual
12560 data. This location is represented by the <link to="#location"/>
12561 attribute.</li>
12562 </ul>
12563
12564 Existing media are opened using <link to="IVirtualBox::openMedium"/>;
12565 new hard disk media can be created with the VirtualBox API using the
12566 <link to="IVirtualBox::createHardDisk"/> method. Differencing hard
12567 disks (see below) are usually implicitly created by VirtualBox as
12568 needed, but may also be created explicitly using <link to="#createDiffStorage"/>.
12569 VirtualBox cannot create CD/DVD or floppy images (ISO and RAW files); these
12570 should be created with external tools and then opened from within VirtualBox.
12571
12572 Only for CD/DVDs and floppies, an IMedium instance can also represent a host
12573 drive. In that case the <link to="#id" /> attribute contains the UUID of
12574 one of the drives in <link to="IHost::DVDDrives" /> or <link to="IHost::floppyDrives" />.
12575
12576 <h3>Media registries</h3>
12577
12578 When a medium has been opened or created using one of the aforementioned
12579 APIs, it becomes "known" to VirtualBox. Known media can be attached
12580 to virtual machines and re-found through <link to="IVirtualBox::openMedium"/>.
12581 They also appear in the global
12582 <link to="IVirtualBox::hardDisks" />,
12583 <link to="IVirtualBox::DVDImages" /> and
12584 <link to="IVirtualBox::floppyImages" /> arrays.
12585
12586 Prior to VirtualBox 4.0, opening a medium added it to a global media registry
12587 in the VirtualBox.xml file, which was shared between all machines and made
12588 transporting machines and their media from one host to another difficult.
12589
12590 Starting with VirtualBox 4.0, media are only added to a registry when they are
12591 <i>attached</i> to a machine using <link to="IMachine::attachDevice" />. For
12592 backwards compatibility, which registry a medium is added to depends on which
12593 VirtualBox version created a machine:
12594
12595 <ul>
12596 <li>If the medium has first been attached to a machine which was created by
12597 VirtualBox 4.0 or later, it is added to that machine's media registry in
12598 the machine XML settings file. This way all information about a machine's
12599 media attachments is contained in a single file and can be transported
12600 easily.</li>
12601 <li>For older media attachments (i.e. if the medium was first attached to a
12602 machine which was created with a VirtualBox version before 4.0), media
12603 continue to be registered in the global VirtualBox settings file, for
12604 backwards compatibility.</li>
12605 </ul>
12606
12607 See <link to="IVirtualBox::openMedium" /> for more information.
12608
12609 Media are removed from media registries by the <link to="IMedium::close"/>,
12610 <link to="#deleteStorage"/> and <link to="#mergeTo"/> methods.
12611
12612 <h3>Accessibility checks</h3>
12613
12614 VirtualBox defers media accessibility checks until the <link to="#refreshState" />
12615 method is called explicitly on a medium. This is done to make the VirtualBox object
12616 ready for serving requests as fast as possible and let the end-user
12617 application decide if it needs to check media accessibility right away or not.
12618
12619 As a result, when VirtualBox starts up (e.g. the VirtualBox
12620 object gets created for the first time), all known media are in the
12621 "Inaccessible" state, but the value of the <link to="#lastAccessError"/>
12622 attribute is an empty string because no actual accessibility check has
12623 been made yet.
12624
12625 After calling <link to="#refreshState" />, a medium is considered
12626 <i>accessible</i> if its storage unit can be read. In that case, the
12627 <link to="#state"/> attribute has a value of "Created". If the storage
12628 unit cannot be read (for example, because it is located on a disconnected
12629 network resource, or was accidentally deleted outside VirtualBox),
12630 the medium is considered <i>inaccessible</i>, which is indicated by the
12631 "Inaccessible" state. The exact reason why the medium is inaccessible can be
12632 obtained by reading the <link to="#lastAccessError"/> attribute.
12633
12634 <h3>Medium types</h3>
12635
12636 There are five types of medium behavior which are stored in the
12637 <link to="#type"/> attribute (see <link to="MediumType" />) and
12638 which define the medium's behavior with attachments and snapshots.
12639
12640 All media can be also divided in two groups: <i>base</i> media and
12641 <i>differencing</i> media. A base medium contains all sectors of the
12642 medium data in its own storage and therefore can be used independently.
12643 In contrast, a differencing medium is a "delta" to some other medium and
12644 contains only those sectors which differ from that other medium, which is
12645 then called a <i>parent</i>. The differencing medium is said to be
12646 <i>linked to</i> that parent. The parent may be itself a differencing
12647 medium, thus forming a chain of linked media. The last element in that
12648 chain must always be a base medium. Note that several differencing
12649 media may be linked to the same parent medium.
12650
12651 Differencing media can be distinguished from base media by querying the
12652 <link to="#parent"/> attribute: base media do not have parents they would
12653 depend on, so the value of this attribute is always @c null for them.
12654 Using this attribute, it is possible to walk up the medium tree (from the
12655 child medium to its parent). It is also possible to walk down the tree
12656 using the <link to="#children"/> attribute.
12657
12658 Note that the type of all differencing media is "normal"; all other
12659 values are meaningless for them. Base media may be of any type.
12660
12661 <h3>Automatic composition of the file name part</h3>
12662
12663 Another extension to the <link to="IMedium::location"/> attribute is that
12664 there is a possibility to cause VirtualBox to compose a unique value for
12665 the file name part of the location using the UUID of the hard disk. This
12666 applies only to hard disks in <link to="MediumState_NotCreated"/> state,
12667 e.g. before the storage unit is created, and works as follows. You set the
12668 value of the <link to="IMedium::location"/> attribute to a location
12669 specification which only contains the path specification but not the file
12670 name part and ends with either a forward slash or a backslash character.
12671 In response, VirtualBox will generate a new UUID for the hard disk and
12672 compose the file name using the following pattern:
12673 <pre>
12674 &lt;path&gt;/{&lt;uuid&gt;}.&lt;ext&gt;
12675 </pre>
12676 where <tt>&lt;path&gt;</tt> is the supplied path specification,
12677 <tt>&lt;uuid&gt;</tt> is the newly generated UUID and <tt>&lt;ext&gt;</tt>
12678 is the default extension for the storage format of this hard disk. After
12679 that, you may call any of the methods that create a new hard disk storage
12680 unit and they will use the generated UUID and file name.
12681 </desc>
12682
12683 <attribute name="id" type="uuid" mod="string" readonly="yes">
12684 <desc>
12685 UUID of the medium. For a newly created medium, this value is a randomly
12686 generated UUID.
12687
12688 <note>
12689 For media in one of MediumState_NotCreated, MediumState_Creating or
12690 MediumState_Deleting states, the value of this property is undefined
12691 and will most likely be an empty UUID.
12692 </note>
12693 </desc>
12694 </attribute>
12695
12696 <attribute name="description" type="wstring">
12697 <desc>
12698 Optional description of the medium. For a newly created medium the value
12699 of this attribute is an empty string.
12700
12701 Medium types that don't support this attribute will return E_NOTIMPL in
12702 attempt to get or set this attribute's value.
12703
12704 <note>
12705 For some storage types, reading this attribute may return an outdated
12706 (last known) value when <link to="#state"/> is <link
12707 to="MediumState_Inaccessible"/> or <link
12708 to="MediumState_LockedWrite"/> because the value of this attribute is
12709 stored within the storage unit itself. Also note that changing the
12710 attribute value is not possible in such case, as well as when the
12711 medium is the <link to="MediumState_LockedRead"/> state.
12712 </note>
12713 </desc>
12714 </attribute>
12715
12716 <attribute name="state" type="MediumState" readonly="yes">
12717 <desc>
12718 Returns the current medium state, which is the last state set by
12719 the accessibility check performed by <link to="#refreshState"/>.
12720 If that method has not yet been called on the medium, the state
12721 is "Inaccessible"; as opposed to truly inaccessible media, the
12722 value of <link to="#lastAccessError"/> will be an empty string in
12723 that case.
12724
12725 <note>As of version 3.1, this no longer performs an accessibility check
12726 automatically; call <link to="#refreshState"/> for that.
12727 </note>
12728 </desc>
12729 </attribute>
12730
12731 <attribute name="variant" type="MediumVariant" safearray="yes" readonly="yes">
12732 <desc>
12733 Returns the storage format variant information for this medium
12734 as an aaray of the flags described at <link to="MediumVariant" />.
12735 Before <link to="#refreshState"/> is called this method returns
12736 an undefined value.
12737 </desc>
12738 </attribute>
12739
12740 <attribute name="location" type="wstring">
12741 <desc>
12742 Location of the storage unit holding medium data.
12743
12744 The format of the location string is medium type specific. For medium
12745 types using regular files in a host's file system, the location
12746 string is the full file name.
12747
12748 Some medium types may support changing the storage unit location by
12749 simply changing the value of this property. If this operation is not
12750 supported, the implementation will return E_NOTIMPL in attempt to set
12751 this attribute's value.
12752
12753 When setting a value of the location attribute which is a regular file
12754 in the host's file system, the given file name may be either relative to
12755 the <link to="IVirtualBox::homeFolder">VirtualBox home folder</link> or
12756 absolute. Note that if the given location specification does not contain
12757 the file extension part then a proper default extension will be
12758 automatically appended by the implementation depending on the medium type.
12759 </desc>
12760 </attribute>
12761
12762 <attribute name="name" type="wstring" readonly="yes">
12763 <desc>
12764 Name of the storage unit holding medium data.
12765
12766 The returned string is a short version of the <link to="#location"/>
12767 attribute that is suitable for representing the medium in situations
12768 where the full location specification is too long (such as lists
12769 and comboboxes in GUI frontends). This string is also used by frontends
12770 to sort the media list alphabetically when needed.
12771
12772 For example, for locations that are regular files in the host's file
12773 system, the value of this attribute is just the file name (+ extension),
12774 without the path specification.
12775
12776 Note that as opposed to the <link to="#location"/> attribute, the name
12777 attribute will not necessary be unique for a list of media of the
12778 given type and format.
12779 </desc>
12780 </attribute>
12781
12782 <attribute name="deviceType" type="DeviceType" readonly="yes">
12783 <desc>Kind of device (DVD/Floppy/HardDisk) which is applicable to this
12784 medium.</desc>
12785 </attribute>
12786
12787 <attribute name="hostDrive" type="boolean" readonly="yes">
12788 <desc>True if this corresponds to a drive on the host.</desc>
12789 </attribute>
12790
12791 <attribute name="size" type="long long" readonly="yes">
12792 <desc>
12793 Physical size of the storage unit used to hold medium data (in bytes).
12794
12795 <note>
12796 For media whose <link to="#state"/> is <link
12797 to="MediumState_Inaccessible"/>, the value of this property is the
12798 last known size. For <link to="MediumState_NotCreated"/> media,
12799 the returned value is zero.
12800 </note>
12801 </desc>
12802 </attribute>
12803
12804 <attribute name="format" type="wstring" readonly="yes">
12805 <desc>
12806 Storage format of this medium.
12807
12808 The value of this attribute is a string that specifies a backend used
12809 to store medium data. The storage format is defined when you create a
12810 new medium or automatically detected when you open an existing medium,
12811 and cannot be changed later.
12812
12813 The list of all storage formats supported by this VirtualBox
12814 installation can be obtained using
12815 <link to="ISystemProperties::mediumFormats"/>.
12816 </desc>
12817 </attribute>
12818
12819 <attribute name="mediumFormat" type="IMediumFormat" readonly="yes">
12820 <desc>
12821 Storage medium format object corresponding to this medium.
12822
12823 The value of this attribute is a reference to the medium format object
12824 that specifies the backend properties used to store medium data. The
12825 storage format is defined when you create a new medium or automatically
12826 detected when you open an existing medium, and cannot be changed later.
12827
12828 <note>@c null is returned if there is no associated medium format
12829 object. This can e.g. happen for medium objects representing host
12830 drives and other special medium objects.</note>
12831 </desc>
12832 </attribute>
12833
12834 <attribute name="type" type="MediumType">
12835 <desc>
12836 Type (role) of this medium.
12837
12838 The following constraints apply when changing the value of this
12839 attribute:
12840 <ul>
12841 <li>If a medium is attached to a virtual machine (either in the
12842 current state or in one of the snapshots), its type cannot be
12843 changed.
12844 </li>
12845 <li>As long as the medium has children, its type cannot be set
12846 to <link to="MediumType_Writethrough"/>.
12847 </li>
12848 <li>The type of all differencing media is
12849 <link to="MediumType_Normal"/> and cannot be changed.
12850 </li>
12851 </ul>
12852
12853 The type of a newly created or opened medium is set to
12854 <link to="MediumType_Normal"/>, except for DVD and floppy media,
12855 which have a type of <link to="MediumType_Writethrough"/>.
12856 </desc>
12857 </attribute>
12858
12859 <attribute name="allowedTypes" type="MediumType" safearray="yes" readonly="yes">
12860 <desc>
12861 Returns which medium types can selected for this medium.
12862
12863 <result name="E_NOTIMPL">
12864 This attribute is not implemented at the moment.
12865 </result>
12866 </desc>
12867 </attribute>
12868
12869 <attribute name="parent" type="IMedium" readonly="yes">
12870 <desc>
12871 Parent of this medium (the medium this medium is directly based
12872 on).
12873
12874 Only differencing media have parents. For base (non-differencing)
12875 media, @c null is returned.
12876 </desc>
12877 </attribute>
12878
12879 <attribute name="children" type="IMedium" safearray="yes" readonly="yes">
12880 <desc>
12881 Children of this medium (all differencing media directly based
12882 on this medium). A @c null array is returned if this medium
12883 does not have any children.
12884 </desc>
12885 </attribute>
12886
12887 <attribute name="base" type="IMedium" readonly="yes">
12888 <desc>
12889 Base medium of this medium.
12890
12891 If this is a differencing medium, its base medium is the medium
12892 the given medium branch starts from. For all other types of media, this
12893 property returns the medium object itself (i.e. the same object this
12894 property is read on).
12895 </desc>
12896 </attribute>
12897
12898 <attribute name="readOnly" type="boolean" readonly="yes">
12899 <desc>
12900 Returns @c true if this medium is read-only and @c false otherwise.
12901
12902 A medium is considered to be read-only when its contents cannot be
12903 modified without breaking the integrity of other parties that depend on
12904 this medium such as its child media or snapshots of virtual machines
12905 where this medium is attached to these machines. If there are no
12906 children and no such snapshots then there is no dependency and the
12907 medium is not read-only.
12908
12909 The value of this attribute can be used to determine the kind of the
12910 attachment that will take place when attaching this medium to a
12911 virtual machine. If the value is @c false then the medium will
12912 be attached directly. If the value is @c true then the medium
12913 will be attached indirectly by creating a new differencing child
12914 medium for that. See the interface description for more information.
12915
12916 Note that all <link to="MediumType_Immutable">Immutable</link> media
12917 are always read-only while all
12918 <link to="MediumType_Writethrough">Writethrough</link> media are
12919 always not.
12920
12921 <note>
12922 The read-only condition represented by this attribute is related to
12923 the medium type and usage, not to the current
12924 <link to="IMedium::state">medium state</link> and not to the read-only
12925 state of the storage unit.
12926 </note>
12927 </desc>
12928 </attribute>
12929
12930 <attribute name="logicalSize" type="long long" readonly="yes">
12931 <desc>
12932 Logical size of this medium (in bytes), as reported to the
12933 guest OS running inside the virtual machine this medium is
12934 attached to. The logical size is defined when the medium is created
12935 and cannot be changed later.
12936
12937 <note>
12938 For media whose state is <link to="#state"/> is <link
12939 to="MediumState_Inaccessible"/>, the value of this property is the
12940 last known logical size. For <link to="MediumState_NotCreated"/>
12941 media, the returned value is zero.
12942 </note>
12943 </desc>
12944 </attribute>
12945
12946 <attribute name="autoReset" type="boolean">
12947 <desc>
12948 Whether this differencing medium will be automatically reset each
12949 time a virtual machine it is attached to is powered up. This
12950 attribute is automatically set to @c true for the last
12951 differencing image of an "immutable" medium (see
12952 <link to="MediumType" />).
12953
12954 See <link to="#reset"/> for more information about resetting
12955 differencing media.
12956
12957 <note>
12958 Reading this property on a base (non-differencing) medium will
12959 always @c false. Changing the value of this property in this
12960 case is not supported.
12961 </note>
12962
12963 <result name="VBOX_E_NOT_SUPPORTED">
12964 This is not a differencing medium (when changing the attribute
12965 value).
12966 </result>
12967 </desc>
12968 </attribute>
12969
12970 <attribute name="lastAccessError" type="wstring" readonly="yes">
12971 <desc>
12972 Text message that represents the result of the last accessibility
12973 check performed by <link to="#refreshState"/>.
12974
12975 An empty string is returned if the last accessibility check
12976 was successful or has not yet been called. As a result, if
12977 <link to="#state" /> is "Inaccessible" and this attribute is empty,
12978 then <link to="#refreshState"/> has yet to be called; this is the
12979 default value of media after VirtualBox initialization.
12980 A non-empty string indicates a failure and should normally describe
12981 a reason of the failure (for example, a file read error).
12982 </desc>
12983 </attribute>
12984
12985 <attribute name="machineIds" type="uuid" mod="string" safearray="yes" readonly="yes">
12986 <desc>
12987 Array of UUIDs of all machines this medium is attached to.
12988
12989 A @c null array is returned if this medium is not attached to any
12990 machine or to any machine's snapshot.
12991
12992 <note>
12993 The returned array will include a machine even if this medium is not
12994 attached to that machine in the current state but attached to it in
12995 one of the machine's snapshots. See <link to="#getSnapshotIds"/> for
12996 details.
12997 </note>
12998 </desc>
12999 </attribute>
13000
13001 <method name="setIds">
13002 <desc>
13003 Changes the UUID and parent UUID for a hard disk medium.
13004 </desc>
13005 <param name="setImageId" type="boolean" dir="in">
13006 <desc>
13007 Select whether a new image UUID is set or not.
13008 </desc>
13009 </param>
13010 <param name="imageId" type="uuid" mod="string" dir="in">
13011 <desc>
13012 New UUID for the image. If an empty string is passed, then a new
13013 UUID is automatically created, provided that @a setImageId is @c true.
13014 Specifying a zero UUID is not allowed.
13015 </desc>
13016 </param>
13017 <param name="setParentId" type="boolean" dir="in">
13018 <desc>
13019 Select whether a new parent UUID is set or not.
13020 </desc>
13021 </param>
13022 <param name="parentId" type="uuid" mod="string" dir="in">
13023 <desc>
13024 New parent UUID for the image. If an empty string is passed, then a
13025 new UUID is automatically created, provided @a setParentId is
13026 @c true. A zero UUID is valid.
13027 </desc>
13028 </param>
13029 <result name="E_INVALIDARG">
13030 Invalid parameter combination.
13031 </result>
13032 <result name="VBOX_E_NOT_SUPPORTED">
13033 Medium is not a hard disk medium.
13034 </result>
13035 </method>
13036
13037 <method name="refreshState">
13038 <desc>
13039 If the current medium state (see <link to="MediumState"/>) is one of
13040 "Created", "Inaccessible" or "LockedRead", then this performs an
13041 accessibility check on the medium and sets the value of the <link to="#state"/>
13042 attribute accordingly; that value is also returned for convenience.
13043
13044 For all other state values, this does not perform a refresh but returns
13045 the state only.
13046
13047 The refresh, if performed, may take a long time (several seconds or even
13048 minutes, depending on the storage unit location and format) because it performs an
13049 accessibility check of the storage unit. This check may cause a significant
13050 delay if the storage unit of the given medium is, for example, a file located
13051 on a network share which is not currently accessible due to connectivity
13052 problems. In that case, the call will not return until a timeout
13053 interval defined by the host OS for this operation expires. For this reason,
13054 it is recommended to never read this attribute on the main UI thread to avoid
13055 making the UI unresponsive.
13056
13057 If the last known state of the medium is "Created" and the accessibility
13058 check fails, then the state would be set to "Inaccessible", and
13059 <link to="#lastAccessError"/> may be used to get more details about the
13060 failure. If the state of the medium is "LockedRead", then it remains the
13061 same, and a non-empty value of <link to="#lastAccessError"/> will
13062 indicate a failed accessibility check in this case.
13063
13064 Note that not all medium states are applicable to all medium types.
13065 </desc>
13066 <param name="state" type="MediumState" dir="return">
13067 <desc>
13068 New medium state.
13069 </desc>
13070 </param>
13071 </method>
13072
13073 <method name="getSnapshotIds">
13074 <desc>
13075 Returns an array of UUIDs of all snapshots of the given machine where
13076 this medium is attached to.
13077
13078 If the medium is attached to the machine in the current state, then the
13079 first element in the array will always be the ID of the queried machine
13080 (i.e. the value equal to the @c machineId argument), followed by
13081 snapshot IDs (if any).
13082
13083 If the medium is not attached to the machine in the current state, then
13084 the array will contain only snapshot IDs.
13085
13086 The returned array may be @c null if this medium is not attached
13087 to the given machine at all, neither in the current state nor in one of
13088 the snapshots.
13089 </desc>
13090 <param name="machineId" type="uuid" mod="string" dir="in">
13091 <desc>
13092 UUID of the machine to query.
13093 </desc>
13094 </param>
13095 <param name="snapshotIds" type="uuid" mod="string" safearray="yes" dir="return">
13096 <desc>
13097 Array of snapshot UUIDs of the given machine using this medium.
13098 </desc>
13099 </param>
13100 </method>
13101
13102 <method name="lockRead">
13103 <desc>
13104 Locks this medium for reading.
13105
13106 A read lock is shared: many clients can simultaneously lock the
13107 same medium for reading unless it is already locked for writing (see
13108 <link to="#lockWrite"/>) in which case an error is returned.
13109
13110 When the medium is locked for reading, it cannot be modified
13111 from within VirtualBox. This means that any method that changes
13112 the properties of this medium or contents of the storage unit
13113 will return an error (unless explicitly stated otherwise). That
13114 includes an attempt to start a virtual machine that wants to
13115 write to the the medium.
13116
13117 When the virtual machine is started up, it locks for reading all
13118 media it uses in read-only mode. If some medium cannot be locked
13119 for reading, the startup procedure will fail.
13120 A medium is typically locked for reading while it is used by a running
13121 virtual machine but has a depending differencing image that receives
13122 the actual write operations. This way one base medium can have
13123 multiple child differencing images which can be written to
13124 simultaneously. Read-only media such as DVD and floppy images are
13125 also locked for reading only (so they can be in use by multiple
13126 machines simultaneously).
13127
13128 A medium is also locked for reading when it is the source of a
13129 write operation such as <link to="#cloneTo"/> or <link to="#mergeTo"/>.
13130
13131 The medium locked for reading must be unlocked using the <link
13132 to="#unlockRead"/> method. Calls to <link to="#lockRead"/>
13133 can be nested and must be followed by the same number of paired
13134 <link to="#unlockRead"/> calls.
13135
13136 This method sets the medium state (see <link to="#state"/>) to
13137 "LockedRead" on success. The medium's previous state must be
13138 one of "Created", "Inaccessible" or "LockedRead".
13139
13140 Locking an inaccessible medium is not an error; this method performs
13141 a logical lock that prevents modifications of this medium through
13142 the VirtualBox API, not a physical file-system lock of the underlying
13143 storage unit.
13144
13145 This method returns the current state of the medium
13146 <i>before</i> the operation.
13147
13148 <result name="VBOX_E_INVALID_OBJECT_STATE">
13149 Invalid medium state (e.g. not created, locked, inaccessible,
13150 creating, deleting).
13151 </result>
13152
13153 </desc>
13154 <param name="state" type="MediumState" dir="return">
13155 <desc>
13156 State of the medium after the operation.
13157 </desc>
13158 </param>
13159 </method>
13160
13161 <method name="unlockRead">
13162 <desc>
13163 Cancels the read lock previously set by <link to="#lockRead"/>.
13164
13165 For both success and failure, this method returns the current state
13166 of the medium <i>after</i> the operation.
13167
13168 See <link to="#lockRead"/> for more details.
13169
13170 <result name="VBOX_E_INVALID_OBJECT_STATE">
13171 Medium not locked for reading.
13172 </result>
13173
13174 </desc>
13175 <param name="state" type="MediumState" dir="return">
13176 <desc>
13177 State of the medium after the operation.
13178 </desc>
13179 </param>
13180 </method>
13181
13182 <method name="lockWrite">
13183 <desc>
13184 Locks this medium for writing.
13185
13186 A write lock, as opposed to <link to="#lockRead"/>, is
13187 exclusive: there may be only one client holding a write lock,
13188 and there may be no read locks while the write lock is held.
13189 As a result, read-locking fails if a write lock is held, and
13190 write-locking fails if either a read or another write lock is held.
13191
13192 When a medium is locked for writing, it cannot be modified
13193 from within VirtualBox, and it is not guaranteed that the values
13194 of its properties are up-to-date. Any method that changes the
13195 properties of this medium or contents of the storage unit will
13196 return an error (unless explicitly stated otherwise).
13197
13198 When a virtual machine is started up, it locks for writing all
13199 media it uses to write data to. If any medium could not be locked
13200 for writing, the startup procedure will fail. If a medium has
13201 differencing images, then while the machine is running, only
13202 the last ("leaf") differencing image is locked for writing,
13203 whereas its parents are locked for reading only.
13204
13205 A medium is also locked for writing when it is the target of a
13206 write operation such as <link to="#cloneTo"/> or <link to="#mergeTo"/>.
13207
13208 The medium locked for writing must be unlocked using the <link
13209 to="#unlockWrite"/> method. Write locks <i>cannot</i> be nested.
13210
13211 This method sets the medium state (see <link to="#state"/>) to
13212 "LockedWrite" on success. The medium's previous state must be
13213 either "Created" or "Inaccessible".
13214
13215 Locking an inaccessible medium is not an error; this method performs
13216 a logical lock that prevents modifications of this medium through
13217 the VirtualBox API, not a physical file-system lock of the underlying
13218 storage unit.
13219
13220 For both, success and failure, this method returns the current
13221 state of the medium <i>before</i> the operation.
13222
13223 <result name="VBOX_E_INVALID_OBJECT_STATE">
13224 Invalid medium state (e.g. not created, locked, inaccessible,
13225 creating, deleting).
13226 </result>
13227
13228 </desc>
13229 <param name="state" type="MediumState" dir="return">
13230 <desc>
13231 State of the medium after the operation.
13232 </desc>
13233 </param>
13234 </method>
13235
13236 <method name="unlockWrite">
13237 <desc>
13238 Cancels the write lock previously set by <link to="#lockWrite"/>.
13239
13240 For both success and failure, this method returns the current
13241 state of the medium <i>after</i> the operation.
13242
13243 See <link to="#lockWrite"/> for more details.
13244
13245 <result name="VBOX_E_INVALID_OBJECT_STATE">
13246 Medium not locked for writing.
13247 </result>
13248
13249 </desc>
13250 <param name="state" type="MediumState" dir="return">
13251 <desc>
13252 State of the medium after the operation.
13253 </desc>
13254 </param>
13255 </method>
13256
13257 <method name="close">
13258 <desc>
13259 Closes this medium.
13260
13261 The medium must not be attached to any known virtual machine
13262 and must not have any known child media, otherwise the
13263 operation will fail.
13264
13265 When the medium is successfully closed, it is removed from
13266 the list of registered media, but its storage unit is not
13267 deleted. In particular, this means that this medium can
13268 later be opened again using the <link to="IVirtualBox::openMedium"/>
13269 call.
13270
13271 Note that after this method successfully returns, the given medium
13272 object becomes uninitialized. This means that any attempt
13273 to call any of its methods or attributes will fail with the
13274 <tt>"Object not ready" (E_ACCESSDENIED)</tt> error.
13275
13276 <result name="VBOX_E_INVALID_OBJECT_STATE">
13277 Invalid medium state (other than not created, created or
13278 inaccessible).
13279 </result>
13280 <result name="VBOX_E_OBJECT_IN_USE">
13281 Medium attached to virtual machine.
13282 </result>
13283 <result name="VBOX_E_FILE_ERROR">
13284 Settings file not accessible.
13285 </result>
13286 <result name="VBOX_E_XML_ERROR">
13287 Could not parse the settings file.
13288 </result>
13289
13290 </desc>
13291 </method>
13292
13293 <!-- property methods -->
13294
13295 <method name="getProperty" const="yes">
13296 <desc>
13297 Returns the value of the custom medium property with the given name.
13298
13299 The list of all properties supported by the given medium format can
13300 be obtained with <link to="IMediumFormat::describeProperties"/>.
13301
13302 <note>If this method returns an empty string in @a value, the requested
13303 property is supported but currently not assigned any value.</note>
13304
13305 <result name="VBOX_E_OBJECT_NOT_FOUND">
13306 Requested property does not exist (not supported by the format).
13307 </result>
13308 <result name="E_INVALIDARG">@a name is @c null or empty.</result>
13309 </desc>
13310 <param name="name" type="wstring" dir="in">
13311 <desc>Name of the property to get.</desc>
13312 </param>
13313 <param name="value" type="wstring" dir="return">
13314 <desc>Current property value.</desc>
13315 </param>
13316 </method>
13317
13318 <method name="setProperty">
13319 <desc>
13320 Sets the value of the custom medium property with the given name.
13321
13322 The list of all properties supported by the given medium format can
13323 be obtained with <link to="IMediumFormat::describeProperties"/>.
13324
13325 <note>Setting the property value to @c null or an empty string is
13326 equivalent to deleting the existing value. A default value (if it is
13327 defined for this property) will be used by the format backend in this
13328 case.</note>
13329
13330 <result name="VBOX_E_OBJECT_NOT_FOUND">
13331 Requested property does not exist (not supported by the format).
13332 </result>
13333 <result name="E_INVALIDARG">@a name is @c null or empty.</result>
13334 </desc>
13335 <param name="name" type="wstring" dir="in">
13336 <desc>Name of the property to set.</desc>
13337 </param>
13338 <param name="value" type="wstring" dir="in">
13339 <desc>Property value to set.</desc>
13340 </param>
13341 </method>
13342
13343 <method name="getProperties" const="yes">
13344 <desc>
13345 Returns values for a group of properties in one call.
13346
13347 The names of the properties to get are specified using the @a names
13348 argument which is a list of comma-separated property names or
13349 an empty string if all properties are to be returned.
13350 <note>Currently the value of this argument is ignored and the method
13351 always returns all existing properties.</note>
13352
13353 The list of all properties supported by the given medium format can
13354 be obtained with <link to="IMediumFormat::describeProperties"/>.
13355
13356 The method returns two arrays, the array of property names corresponding
13357 to the @a names argument and the current values of these properties.
13358 Both arrays have the same number of elements with each element at the
13359 given index in the first array corresponds to an element at the same
13360 index in the second array.
13361
13362 For properties that do not have assigned values, an empty string is
13363 returned at the appropriate index in the @a returnValues array.
13364
13365 </desc>
13366 <param name="names" type="wstring" dir="in">
13367 <desc>
13368 Names of properties to get.
13369 </desc>
13370 </param>
13371 <param name="returnNames" type="wstring" safearray="yes" dir="out">
13372 <desc>Names of returned properties.</desc>
13373 </param>
13374 <param name="returnValues" type="wstring" safearray="yes" dir="return">
13375 <desc>Values of returned properties.</desc>
13376 </param>
13377 </method>
13378
13379 <method name="setProperties">
13380 <desc>
13381 Sets values for a group of properties in one call.
13382
13383 The names of the properties to set are passed in the @a names
13384 array along with the new values for them in the @a values array. Both
13385 arrays have the same number of elements with each element at the given
13386 index in the first array corresponding to an element at the same index
13387 in the second array.
13388
13389 If there is at least one property name in @a names that is not valid,
13390 the method will fail before changing the values of any other properties
13391 from the @a names array.
13392
13393 Using this method over <link to="#setProperty"/> is preferred if you
13394 need to set several properties at once since it is more efficient.
13395
13396 The list of all properties supported by the given medium format can
13397 be obtained with <link to="IMediumFormat::describeProperties"/>.
13398
13399 Setting the property value to @c null or an empty string is equivalent
13400 to deleting the existing value. A default value (if it is defined for
13401 this property) will be used by the format backend in this case.
13402 </desc>
13403 <param name="names" type="wstring" safearray="yes" dir="in">
13404 <desc>Names of properties to set.</desc>
13405 </param>
13406 <param name="values" type="wstring" safearray="yes" dir="in">
13407 <desc>Values of properties to set.</desc>
13408 </param>
13409 </method>
13410
13411 <!-- storage methods -->
13412
13413 <method name="createBaseStorage">
13414 <desc>
13415 Starts creating a hard disk storage unit (fixed/dynamic, according
13416 to the variant flags) in in the background. The previous storage unit
13417 created for this object, if any, must first be deleted using
13418 <link to="#deleteStorage"/>, otherwise the operation will fail.
13419
13420 Before the operation starts, the medium is placed in
13421 <link to="MediumState_Creating"/> state. If the create operation
13422 fails, the medium will be placed back in <link to="MediumState_NotCreated"/>
13423 state.
13424
13425 After the returned progress object reports that the operation has
13426 successfully completed, the medium state will be set to <link
13427 to="MediumState_Created"/>, the medium will be remembered by this
13428 VirtualBox installation and may be attached to virtual machines.
13429
13430 <result name="VBOX_E_NOT_SUPPORTED">
13431 The variant of storage creation operation is not supported. See <link
13432 to="IMediumFormat::capabilities"/>.
13433 </result>
13434 </desc>
13435 <param name="logicalSize" type="long long" dir="in">
13436 <desc>Maximum logical size of the medium in bytes.</desc>
13437 </param>
13438 <param name="variant" type="MediumVariant" safearray="yes" dir="in">
13439 <desc>Exact image variant which should be created (as a combination of
13440 <link to="MediumVariant" /> flags).</desc>
13441 </param>
13442 <param name="progress" type="IProgress" dir="return">
13443 <desc>Progress object to track the operation completion.</desc>
13444 </param>
13445 </method>
13446
13447 <method name="deleteStorage">
13448 <desc>
13449 Starts deleting the storage unit of this medium.
13450
13451 The medium must not be attached to any known virtual machine and must
13452 not have any known child media, otherwise the operation will fail.
13453 It will also fail if there is no storage unit to delete or if deletion
13454 is already in progress, or if the medium is being in use (locked for
13455 read or for write) or inaccessible. Therefore, the only valid state for
13456 this operation to succeed is <link to="MediumState_Created"/>.
13457
13458 Before the operation starts, the medium is placed in
13459 <link to="MediumState_Deleting"/> state and gets removed from the list
13460 of remembered hard disks (media registry). If the delete operation
13461 fails, the medium will be remembered again and placed back to
13462 <link to="MediumState_Created"/> state.
13463
13464 After the returned progress object reports that the operation is
13465 complete, the medium state will be set to
13466 <link to="MediumState_NotCreated"/> and you will be able to use one of
13467 the storage creation methods to create it again.
13468
13469 <see><link to="#close"/></see>
13470
13471 <result name="VBOX_E_OBJECT_IN_USE">
13472 Medium is attached to a virtual machine.
13473 </result>
13474 <result name="VBOX_E_NOT_SUPPORTED">
13475 Storage deletion is not allowed because neither of storage creation
13476 operations are supported. See
13477 <link to="IMediumFormat::capabilities"/>.
13478 </result>
13479
13480 <note>
13481 If the deletion operation fails, it is not guaranteed that the storage
13482 unit still exists. You may check the <link to="IMedium::state"/> value
13483 to answer this question.
13484 </note>
13485 </desc>
13486 <param name="progress" type="IProgress" dir="return">
13487 <desc>Progress object to track the operation completion.</desc>
13488 </param>
13489 </method>
13490
13491 <!-- diff methods -->
13492
13493 <method name="createDiffStorage">
13494 <desc>
13495 Starts creating an empty differencing storage unit based on this
13496 medium in the format and at the location defined by the @a target
13497 argument.
13498
13499 The target medium must be in <link to="MediumState_NotCreated"/>
13500 state (i.e. must not have an existing storage unit). Upon successful
13501 completion, this operation will set the type of the target medium to
13502 <link to="MediumType_Normal"/> and create a storage unit necessary to
13503 represent the differencing medium data in the given format (according
13504 to the storage format of the target object).
13505
13506 After the returned progress object reports that the operation is
13507 successfully complete, the target medium gets remembered by this
13508 VirtualBox installation and may be attached to virtual machines.
13509
13510 <note>
13511 The medium will be set to <link to="MediumState_LockedRead"/>
13512 state for the duration of this operation.
13513 </note>
13514 <result name="VBOX_E_OBJECT_IN_USE">
13515 Medium not in @c NotCreated state.
13516 </result>
13517 </desc>
13518 <param name="target" type="IMedium" dir="in">
13519 <desc>Target medium.</desc>
13520 </param>
13521 <param name="variant" type="MediumVariant" safearray="yes" dir="in">
13522 <desc>Exact image variant which should be created (as a combination of
13523 <link to="MediumVariant" /> flags).</desc>
13524 </param>
13525 <param name="progress" type="IProgress" dir="return">
13526 <desc>Progress object to track the operation completion.</desc>
13527 </param>
13528 </method>
13529
13530 <method name="mergeTo">
13531 <desc>
13532 Starts merging the contents of this medium and all intermediate
13533 differencing media in the chain to the given target medium.
13534
13535 The target medium must be either a descendant of this medium or
13536 its ancestor (otherwise this method will immediately return a failure).
13537 It follows that there are two logical directions of the merge operation:
13538 from ancestor to descendant (<i>forward merge</i>) and from descendant to
13539 ancestor (<i>backward merge</i>). Let us consider the following medium
13540 chain:
13541
13542 <pre>Base &lt;- Diff_1 &lt;- Diff_2</pre>
13543
13544 Here, calling this method on the <tt>Base</tt> medium object with
13545 <tt>Diff_2</tt> as an argument will be a forward merge; calling it on
13546 <tt>Diff_2</tt> with <tt>Base</tt> as an argument will be a backward
13547 merge. Note that in both cases the contents of the resulting medium
13548 will be the same, the only difference is the medium object that takes
13549 the result of the merge operation. In case of the forward merge in the
13550 above example, the result will be written to <tt>Diff_2</tt>; in case of
13551 the backward merge, the result will be written to <tt>Base</tt>. In
13552 other words, the result of the operation is always stored in the target
13553 medium.
13554
13555 Upon successful operation completion, the storage units of all media in
13556 the chain between this (source) medium and the target medium, including
13557 the source medium itself, will be automatically deleted and the
13558 relevant medium objects (including this medium) will become
13559 uninitialized. This means that any attempt to call any of
13560 their methods or attributes will fail with the
13561 <tt>"Object not ready" (E_ACCESSDENIED)</tt> error. Applied to the above
13562 example, the forward merge of <tt>Base</tt> to <tt>Diff_2</tt> will
13563 delete and uninitialize both <tt>Base</tt> and <tt>Diff_1</tt> media.
13564 Note that <tt>Diff_2</tt> in this case will become a base medium
13565 itself since it will no longer be based on any other medium.
13566
13567 Considering the above, all of the following conditions must be met in
13568 order for the merge operation to succeed:
13569 <ul>
13570 <li>
13571 Neither this (source) medium nor any intermediate
13572 differencing medium in the chain between it and the target
13573 medium is attached to any virtual machine.
13574 </li>
13575 <li>
13576 Neither the source medium nor the target medium is an
13577 <link to="MediumType_Immutable"/> medium.
13578 </li>
13579 <li>
13580 The part of the medium tree from the source medium to the
13581 target medium is a linear chain, i.e. all medium in this
13582 chain have exactly one child which is the next medium in this
13583 chain. The only exception from this rule is the target medium in
13584 the forward merge operation; it is allowed to have any number of
13585 child media because the merge operation will not change its
13586 logical contents (as it is seen by the guest OS or by children).
13587 </li>
13588 <li>
13589 None of the involved media are in
13590 <link to="MediumState_LockedRead"/> or
13591 <link to="MediumState_LockedWrite"/> state.
13592 </li>
13593 </ul>
13594
13595 <note>
13596 This (source) medium and all intermediates will be placed to <link
13597 to="MediumState_Deleting"/> state and the target medium will be
13598 placed to <link to="MediumState_LockedWrite"/> state and for the
13599 duration of this operation.
13600 </note>
13601 </desc>
13602 <param name="target" type="IMedium" dir="in">
13603 <desc>Target medium.</desc>
13604 </param>
13605 <param name="progress" type="IProgress" dir="return">
13606 <desc>Progress object to track the operation completion.</desc>
13607 </param>
13608 </method>
13609
13610 <!-- clone method -->
13611
13612 <method name="cloneTo">
13613 <desc>
13614 Starts creating a clone of this medium in the format and at the
13615 location defined by the @a target argument.
13616
13617 The target medium must be either in <link to="MediumState_NotCreated"/>
13618 state (i.e. must not have an existing storage unit) or in
13619 <link to="MediumState_Created"/> state (i.e. created and not locked, and
13620 big enough to hold the data or else the copy will be partial). Upon
13621 successful completion, the cloned medium will contain exactly the
13622 same sector data as the medium being cloned, except that in the
13623 first case a new UUID for the clone will be randomly generated, and in
13624 the second case the UUID will remain unchanged.
13625
13626 The @a parent argument defines which medium will be the parent
13627 of the clone. Passing a @c null reference indicates that the clone will
13628 be a base image, i.e. completely independent. It is possible to specify
13629 an arbitrary medium for this parameter, including the parent of the
13630 medium which is being cloned. Even cloning to a child of the source
13631 medium is possible. Note that when cloning to an existing image, the
13632 @a parent argument is ignored.
13633
13634 After the returned progress object reports that the operation is
13635 successfully complete, the target medium gets remembered by this
13636 VirtualBox installation and may be attached to virtual machines.
13637
13638 <note>
13639 This medium will be placed to <link to="MediumState_LockedRead"/>
13640 state for the duration of this operation.
13641 </note>
13642 <result name="E_NOTIMPL">
13643 The specified cloning variant is not supported at the moment.
13644 </result>
13645 </desc>
13646 <param name="target" type="IMedium" dir="in">
13647 <desc>Target medium.</desc>
13648 </param>
13649 <param name="variant" type="MediumVariant" safearray="yes" dir="in">
13650 <desc>Exact image variant which should be created (as a combination of
13651 <link to="MediumVariant" /> flags).</desc>
13652 </param>
13653 <param name="parent" type="IMedium" dir="in">
13654 <desc>Parent of the cloned medium.</desc>
13655 </param>
13656 <param name="progress" type="IProgress" dir="return">
13657 <desc>Progress object to track the operation completion.</desc>
13658 </param>
13659 </method>
13660
13661 <method name="cloneToBase">
13662 <desc>
13663 Starts creating a clone of this medium in the format and at the
13664 location defined by the @a target argument.
13665
13666 The target medium must be either in <link to="MediumState_NotCreated"/>
13667 state (i.e. must not have an existing storage unit) or in
13668 <link to="MediumState_Created"/> state (i.e. created and not locked, and
13669 big enough to hold the data or else the copy will be partial). Upon
13670 successful completion, the cloned medium will contain exactly the
13671 same sector data as the medium being cloned, except that in the
13672 first case a new UUID for the clone will be randomly generated, and in
13673 the second case the UUID will remain unchanged.
13674
13675 The @a parent argument defines which medium will be the parent
13676 of the clone. In this case the clone will be a base image, i.e.
13677 completely independent. It is possible to specify an arbitrary
13678 medium for this parameter, including the parent of the
13679 medium which is being cloned. Even cloning to a child of the source
13680 medium is possible. Note that when cloning to an existing image, the
13681 @a parent argument is ignored.
13682
13683 After the returned progress object reports that the operation is
13684 successfully complete, the target medium gets remembered by this
13685 VirtualBox installation and may be attached to virtual machines.
13686
13687 <note>
13688 This medium will be placed to <link to="MediumState_LockedRead"/>
13689 state for the duration of this operation.
13690 </note>
13691 <result name="E_NOTIMPL">
13692 The specified cloning variant is not supported at the moment.
13693 </result>
13694 </desc>
13695 <param name="target" type="IMedium" dir="in">
13696 <desc>Target medium.</desc>
13697 </param>
13698 <param name="variant" type="MediumVariant" safearray="yes" dir="in">
13699 <desc><link to="MediumVariant" /> flags).</desc>
13700 </param>
13701 <param name="progress" type="IProgress" dir="return">
13702 <desc>Progress object to track the operation completion.</desc>
13703 </param>
13704 </method>
13705
13706 <!-- other methods -->
13707
13708 <method name="compact">
13709 <desc>
13710 Starts compacting of this medium. This means that the medium is
13711 transformed into a possibly more compact storage representation.
13712 This potentially creates temporary images, which can require a
13713 substantial amount of additional disk space.
13714
13715 This medium will be placed to <link to="MediumState_LockedWrite"/>
13716 state and all its parent media (if any) will be placed to
13717 <link to="MediumState_LockedRead"/> state for the duration of this
13718 operation.
13719
13720 Please note that the results can be either returned straight away,
13721 or later as the result of the background operation via the object
13722 returned via the @a progress parameter.
13723
13724 <result name="VBOX_E_NOT_SUPPORTED">
13725 Medium format does not support compacting (but potentially
13726 needs it).
13727 </result>
13728 </desc>
13729 <param name="progress" type="IProgress" dir="return">
13730 <desc>Progress object to track the operation completion.</desc>
13731 </param>
13732 </method>
13733
13734 <method name="resize">
13735 <desc>
13736 Starts resizing this medium. This means that the nominal size of the
13737 medium is set to the new value. Both increasing and decreasing the
13738 size is possible, and there are no safety checks, since VirtualBox
13739 does not make any assumptions about the medium contents.
13740
13741 Resizing usually needs additional disk space, and possibly also
13742 some temporary disk space. Note that resize does not create a full
13743 temporary copy of the medium, so the additional disk space requirement
13744 is usually much lower than using the clone operation.
13745
13746 This medium will be placed to <link to="MediumState_LockedWrite"/>
13747 state for the duration of this operation.
13748
13749 Please note that the results can be either returned straight away,
13750 or later as the result of the background operation via the object
13751 returned via the @a progress parameter.
13752
13753 <result name="VBOX_E_NOT_SUPPORTED">
13754 Medium format does not support resizing.
13755 </result>
13756 </desc>
13757 <param name="logicalSize" type="long long" dir="in">
13758 <desc>New nominal capacity of the medium in bytes.</desc>
13759 </param>
13760 <param name="progress" type="IProgress" dir="return">
13761 <desc>Progress object to track the operation completion.</desc>
13762 </param>
13763 </method>
13764
13765 <method name="reset">
13766 <desc>
13767 Starts erasing the contents of this differencing medium.
13768
13769 This operation will reset the differencing medium to its initial
13770 state when it does not contain any sector data and any read operation is
13771 redirected to its parent medium. This automatically gets called
13772 during VM power-up for every medium whose <link to="#autoReset" />
13773 attribute is @c true.
13774
13775 The medium will be write-locked for the duration of this operation (see
13776 <link to="#lockWrite" />).
13777
13778 <result name="VBOX_E_NOT_SUPPORTED">
13779 This is not a differencing medium.
13780 </result>
13781 <result name="VBOX_E_INVALID_OBJECT_STATE">
13782 Medium is not in <link to="MediumState_Created"/> or
13783 <link to="MediumState_Inaccessible"/> state.
13784 </result>
13785 </desc>
13786 <param name="progress" type="IProgress" dir="return">
13787 <desc>Progress object to track the operation completion.</desc>
13788 </param>
13789 </method>
13790
13791 </interface>
13792
13793
13794 <!--
13795 // IMediumFormat
13796 /////////////////////////////////////////////////////////////////////////
13797 -->
13798
13799 <enum
13800 name="DataType"
13801 uuid="d90ea51e-a3f1-4a01-beb1-c1723c0d3ba7"
13802 >
13803 <const name="Int32" value="0"/>
13804 <const name="Int8" value="1"/>
13805 <const name="String" value="2"/>
13806 </enum>
13807
13808 <enum
13809 name="DataFlags"
13810 uuid="86884dcf-1d6b-4f1b-b4bf-f5aa44959d60"
13811 >
13812 <const name="None" value="0x00"/>
13813 <const name="Mandatory" value="0x01"/>
13814 <const name="Expert" value="0x02"/>
13815 <const name="Array" value="0x04"/>
13816 <const name="FlagMask" value="0x07"/>
13817 </enum>
13818
13819 <enum
13820 name="MediumFormatCapabilities"
13821 uuid="7342ba79-7ce0-4d94-8f86-5ed5a185d9bd"
13822 >
13823 <desc>
13824 Medium format capability flags.
13825 </desc>
13826
13827 <const name="Uuid" value="0x01">
13828 <desc>
13829 Supports UUIDs as expected by VirtualBox code.
13830 </desc>
13831 </const>
13832
13833 <const name="CreateFixed" value="0x02">
13834 <desc>
13835 Supports creating fixed size images, allocating all space instantly.
13836 </desc>
13837 </const>
13838
13839 <const name="CreateDynamic" value="0x04">
13840 <desc>
13841 Supports creating dynamically growing images, allocating space on
13842 demand.
13843 </desc>
13844 </const>
13845
13846 <const name="CreateSplit2G" value="0x08">
13847 <desc>
13848 Supports creating images split in chunks of a bit less than 2 GBytes.
13849 </desc>
13850 </const>
13851
13852 <const name="Differencing" value="0x10">
13853 <desc>
13854 Supports being used as a format for differencing media (see <link
13855 to="IMedium::createDiffStorage"/>).
13856 </desc>
13857 </const>
13858
13859 <const name="Asynchronous" value="0x20">
13860 <desc>
13861 Supports asynchronous I/O operations for at least some configurations.
13862 </desc>
13863 </const>
13864
13865 <const name="File" value="0x40">
13866 <desc>
13867 The format backend operates on files (the <link to="IMedium::location"/>
13868 attribute of the medium specifies a file used to store medium
13869 data; for a list of supported file extensions see
13870 <link to="IMediumFormat::describeFileExtensions"/>).
13871 </desc>
13872 </const>
13873
13874 <const name="Properties" value="0x80">
13875 <desc>
13876 The format backend uses the property interface to configure the storage
13877 location and properties (the <link to="IMediumFormat::describeProperties"/>
13878 method is used to get access to properties supported by the given medium format).
13879 </desc>
13880 </const>
13881
13882 <const name="TcpNetworking" value="0x100">
13883 <desc>
13884 The format backend uses the TCP networking interface for network access.
13885 </desc>
13886 </const>
13887
13888 <const name="VFS" value="0x200">
13889 <desc>
13890 The format backend supports virtual filesystem functionality.
13891 </desc>
13892 </const>
13893
13894 <const name="CapabilityMask" value="0x3FF"/>
13895 </enum>
13896
13897 <interface
13898 name="IMediumFormat" extends="$unknown"
13899 uuid="6238e1cf-a17d-4ec1-8172-418bfb22b93a"
13900 wsmap="managed"
13901 >
13902 <desc>
13903 The IMediumFormat interface represents a medium format.
13904
13905 Each medium format has an associated backend which is used to handle
13906 media stored in this format. This interface provides information
13907 about the properties of the associated backend.
13908
13909 Each medium format is identified by a string represented by the
13910 <link to="#id"/> attribute. This string is used in calls like
13911 <link to="IVirtualBox::createHardDisk"/> to specify the desired
13912 format.
13913
13914 The list of all supported medium formats can be obtained using
13915 <link to="ISystemProperties::mediumFormats"/>.
13916
13917 <see><link to="IMedium"/></see>
13918 </desc>
13919
13920 <attribute name="id" type="wstring" readonly="yes">
13921 <desc>
13922 Identifier of this format.
13923
13924 The format identifier is a non-@c null non-empty ASCII string. Note that
13925 this string is case-insensitive. This means that, for example, all of
13926 the following strings:
13927 <pre>
13928 "VDI"
13929 "vdi"
13930 "VdI"</pre>
13931 refer to the same medium format.
13932
13933 This string is used in methods of other interfaces where it is necessary
13934 to specify a medium format, such as
13935 <link to="IVirtualBox::createHardDisk"/>.
13936 </desc>
13937 </attribute>
13938
13939 <attribute name="name" type="wstring" readonly="yes">
13940 <desc>
13941 Human readable description of this format.
13942
13943 Mainly for use in file open dialogs.
13944 </desc>
13945 </attribute>
13946
13947 <attribute name="capabilities" type="MediumFormatCapabilities" safearray="yes" readonly="yes">
13948 <desc>
13949 Capabilities of the format as an array of the flags.
13950
13951 For the meaning of individual capability flags see
13952 <link to="MediumFormatCapabilities"/>.
13953 </desc>
13954 </attribute>
13955
13956 <method name="describeFileExtensions">
13957 <desc>
13958 Returns two arrays describing the supported file extensions.
13959
13960 The first array contains the supported extensions and the seconds one
13961 the type each extension supports. Both have the same size.
13962
13963 Note that some backends do not work on files, so this array may be
13964 empty.
13965
13966 <see><link to="IMediumFormat::capabilities"/></see>
13967 </desc>
13968 <param name="extensions" type="wstring" safearray="yes" dir="out">
13969 <desc>The array of supported extensions.</desc>
13970 </param>
13971 <param name="types" type="DeviceType" safearray="yes" dir="out">
13972 <desc>The array which indicates the device type for every given extension.</desc>
13973 </param>
13974 </method>
13975
13976 <method name="describeProperties" const="yes">
13977 <desc>
13978 Returns several arrays describing the properties supported by this
13979 format.
13980
13981 An element with the given index in each array describes one
13982 property. Thus, the number of elements in each returned array is the
13983 same and corresponds to the number of supported properties.
13984
13985 The returned arrays are filled in only if the
13986 <link to="MediumFormatCapabilities_Properties"/> flag is set.
13987 All arguments must be non-@c null.
13988
13989 <see><link to="DataType"/>, <link to="DataFlags"/></see>
13990 </desc>
13991
13992 <param name="names" type="wstring" safearray="yes" dir="out">
13993 <desc>Array of property names.</desc>
13994 </param>
13995 <param name="descriptions" type="wstring" safearray="yes" dir="out">
13996 <desc>Array of property descriptions.</desc>
13997 </param>
13998 <param name="types" type="DataType" safearray="yes" dir="out">
13999 <desc>Array of property types.</desc>
14000 </param>
14001 <param name="flags" type="unsigned long" safearray="yes" dir="out">
14002 <desc>Array of property flags.</desc>
14003 </param>
14004 <param name="defaults" type="wstring" safearray="yes" dir="out">
14005 <desc>Array of default property values.</desc>
14006 </param>
14007 </method>
14008
14009 </interface>
14010
14011
14012 <!--
14013 // IKeyboard
14014 /////////////////////////////////////////////////////////////////////////
14015 -->
14016
14017 <interface
14018 name="IKeyboard" extends="$unknown"
14019 uuid="f6916ec5-a881-4237-898f-7de58cf88672"
14020 wsmap="managed"
14021 >
14022 <desc>
14023 The IKeyboard interface represents the virtual machine's keyboard. Used
14024 in <link to="IConsole::keyboard"/>.
14025
14026 Use this interface to send keystrokes or the Ctrl-Alt-Del sequence
14027 to the virtual machine.
14028
14029 </desc>
14030 <method name="putScancode">
14031 <desc>Sends a scancode to the keyboard.
14032
14033 <result name="VBOX_E_IPRT_ERROR">
14034 Could not send scan code to virtual keyboard.
14035 </result>
14036
14037 </desc>
14038 <param name="scancode" type="long" dir="in"/>
14039 </method>
14040
14041 <method name="putScancodes">
14042 <desc>Sends an array of scancodes to the keyboard.
14043
14044 <result name="VBOX_E_IPRT_ERROR">
14045 Could not send all scan codes to virtual keyboard.
14046 </result>
14047
14048 </desc>
14049 <param name="scancodes" type="long" dir="in" safearray="yes"/>
14050 <param name="codesStored" type="unsigned long" dir="return"/>
14051 </method>
14052
14053 <method name="putCAD">
14054 <desc>Sends the Ctrl-Alt-Del sequence to the keyboard. This
14055 function is nothing special, it is just a convenience function
14056 calling <link to="IKeyboard::putScancodes"/> with the proper scancodes.
14057
14058 <result name="VBOX_E_IPRT_ERROR">
14059 Could not send all scan codes to virtual keyboard.
14060 </result>
14061
14062 </desc>
14063 </method>
14064
14065 <attribute name="eventSource" type="IEventSource" readonly="yes">
14066 <desc>
14067 Event source for keyboard events.
14068 </desc>
14069 </attribute>
14070
14071 </interface>
14072
14073
14074 <!--
14075 // IMouse
14076 /////////////////////////////////////////////////////////////////////////
14077 -->
14078
14079 <enum
14080 name="MouseButtonState"
14081 uuid="9ee094b8-b28a-4d56-a166-973cb588d7f8"
14082 >
14083 <desc>
14084 Mouse button state.
14085 </desc>
14086
14087 <const name="LeftButton" value="0x01"/>
14088 <const name="RightButton" value="0x02"/>
14089 <const name="MiddleButton" value="0x04"/>
14090 <const name="WheelUp" value="0x08"/>
14091 <const name="WheelDown" value="0x10"/>
14092 <const name="XButton1" value="0x20"/>
14093 <const name="XButton2" value="0x40"/>
14094 <const name="MouseStateMask" value="0x7F"/>
14095 </enum>
14096
14097 <interface
14098 name="IMouse" extends="$unknown"
14099 uuid="05044a52-7811-4f00-ae3a-0ab7ff707b10"
14100 wsmap="managed"
14101 >
14102 <desc>
14103 The IMouse interface represents the virtual machine's mouse. Used in
14104 <link to="IConsole::mouse"/>.
14105
14106 Through this interface, the virtual machine's virtual mouse can be
14107 controlled.
14108 </desc>
14109
14110 <attribute name="absoluteSupported" type="boolean" readonly="yes">
14111 <desc>
14112 Whether the guest OS supports absolute mouse pointer positioning
14113 or not.
14114 <note>
14115 You can use the <link to="IMouseCapabilityChangedEvent"/>
14116 event to be instantly informed about changes of this attribute
14117 during virtual machine execution.
14118 </note>
14119 <see><link to="#putMouseEventAbsolute"/></see>
14120 </desc>
14121 </attribute>
14122
14123 <attribute name="relativeSupported" type="boolean" readonly="yes">
14124 <desc>
14125 Whether the guest OS supports relative mouse pointer positioning
14126 or not.
14127 <note>
14128 You can use the <link to="IMouseCapabilityChangedEvent"/>
14129 event to be instantly informed about changes of this attribute
14130 during virtual machine execution.
14131 </note>
14132 <see><link to="#putMouseEvent"/></see>
14133 </desc>
14134 </attribute>
14135
14136 <attribute name="needsHostCursor" type="boolean" readonly="yes">
14137 <desc>
14138 Whether the guest OS can currently switch to drawing it's own mouse
14139 cursor on demand.
14140 <note>
14141 You can use the <link to="IMouseCapabilityChangedEvent"/>
14142 event to be instantly informed about changes of this attribute
14143 during virtual machine execution.
14144 </note>
14145 <see><link to="#putMouseEvent"/></see>
14146 </desc>
14147 </attribute>
14148
14149 <method name="putMouseEvent">
14150 <desc>
14151 Initiates a mouse event using relative pointer movements
14152 along x and y axis.
14153
14154 <result name="E_ACCESSDENIED">
14155 Console not powered up.
14156 </result>
14157 <result name="VBOX_E_IPRT_ERROR">
14158 Could not send mouse event to virtual mouse.
14159 </result>
14160
14161 </desc>
14162
14163 <param name="dx" type="long" dir="in">
14164 <desc>
14165 Amount of pixels the mouse should move to the right.
14166 Negative values move the mouse to the left.
14167 </desc>
14168 </param>
14169 <param name="dy" type="long" dir="in">
14170 <desc>
14171 Amount of pixels the mouse should move downwards.
14172 Negative values move the mouse upwards.
14173 </desc>
14174 </param>
14175 <param name="dz" type="long" dir="in">
14176 <desc>
14177 Amount of mouse wheel moves.
14178 Positive values describe clockwise wheel rotations,
14179 negative values describe counterclockwise rotations.
14180 </desc>
14181 </param>
14182 <param name="dw" type="long" dir="in">
14183 <desc>
14184 Amount of horizontal mouse wheel moves.
14185 Positive values describe a movement to the left,
14186 negative values describe a movement to the right.
14187 </desc>
14188 </param>
14189 <param name="buttonState" type="long" dir="in">
14190 <desc>
14191 The current state of mouse buttons. Every bit represents
14192 a mouse button as follows:
14193 <table>
14194 <tr><td>Bit 0 (<tt>0x01</tt>)</td><td>left mouse button</td></tr>
14195 <tr><td>Bit 1 (<tt>0x02</tt>)</td><td>right mouse button</td></tr>
14196 <tr><td>Bit 2 (<tt>0x04</tt>)</td><td>middle mouse button</td></tr>
14197 </table>
14198 A value of <tt>1</tt> means the corresponding button is pressed.
14199 otherwise it is released.
14200 </desc>
14201 </param>
14202 </method>
14203
14204 <method name="putMouseEventAbsolute">
14205 <desc>
14206 Positions the mouse pointer using absolute x and y coordinates.
14207 These coordinates are expressed in pixels and
14208 start from <tt>[1,1]</tt> which corresponds to the top left
14209 corner of the virtual display.
14210
14211 <result name="E_ACCESSDENIED">
14212 Console not powered up.
14213 </result>
14214 <result name="VBOX_E_IPRT_ERROR">
14215 Could not send mouse event to virtual mouse.
14216 </result>
14217
14218 <note>
14219 This method will have effect only if absolute mouse
14220 positioning is supported by the guest OS.
14221 </note>
14222
14223 <see><link to="#absoluteSupported"/></see>
14224 </desc>
14225
14226 <param name="x" type="long" dir="in">
14227 <desc>
14228 X coordinate of the pointer in pixels, starting from @c 1.
14229 </desc>
14230 </param>
14231 <param name="y" type="long" dir="in">
14232 <desc>
14233 Y coordinate of the pointer in pixels, starting from @c 1.
14234 </desc>
14235 </param>
14236 <param name="dz" type="long" dir="in">
14237 <desc>
14238 Amount of mouse wheel moves.
14239 Positive values describe clockwise wheel rotations,
14240 negative values describe counterclockwise rotations.
14241 </desc>
14242 </param>
14243 <param name="dw" type="long" dir="in">
14244 <desc>
14245 Amount of horizontal mouse wheel moves.
14246 Positive values describe a movement to the left,
14247 negative values describe a movement to the right.
14248 </desc>
14249 </param>
14250 <param name="buttonState" type="long" dir="in">
14251 <desc>
14252 The current state of mouse buttons. Every bit represents
14253 a mouse button as follows:
14254 <table>
14255 <tr><td>Bit 0 (<tt>0x01</tt>)</td><td>left mouse button</td></tr>
14256 <tr><td>Bit 1 (<tt>0x02</tt>)</td><td>right mouse button</td></tr>
14257 <tr><td>Bit 2 (<tt>0x04</tt>)</td><td>middle mouse button</td></tr>
14258 </table>
14259 A value of @c 1 means the corresponding button is pressed.
14260 otherwise it is released.
14261 </desc>
14262 </param>
14263 </method>
14264
14265 <attribute name="eventSource" type="IEventSource" readonly="yes">
14266 <desc>
14267 Event source for mouse events.
14268 </desc>
14269 </attribute>
14270
14271 </interface>
14272
14273 <!--
14274 // IDisplay
14275 /////////////////////////////////////////////////////////////////////////
14276 -->
14277
14278 <enum
14279 name="FramebufferPixelFormat"
14280 uuid="7acfd5ed-29e3-45e3-8136-73c9224f3d2d"
14281 >
14282 <desc>
14283 Format of the video memory buffer. Constants represented by this enum can
14284 be used to test for particular values of <link
14285 to="IFramebuffer::pixelFormat"/>.
14286
14287 See also www.fourcc.org for more information about FOURCC pixel formats.
14288 </desc>
14289
14290 <const name="Opaque" value="0">
14291 <desc>
14292 Unknown buffer format (the user may not assume any particular format of
14293 the buffer).
14294 </desc>
14295 </const>
14296 <const name="FOURCC_RGB" value="0x32424752">
14297 <desc>
14298 Basic RGB format (<link to="IFramebuffer::bitsPerPixel"/> determines the
14299 bit layout).
14300 </desc>
14301 </const>
14302 </enum>
14303
14304 <interface
14305 name="IFramebuffer" extends="$unknown"
14306 uuid="e3f122c0-adab-4fc9-a8dc-da112fb48428"
14307 wsmap="managed"
14308 >
14309 <attribute name="address" type="octet" mod="ptr" readonly="yes" wsmap="suppress">
14310 <desc>Address of the start byte of the frame buffer.</desc>
14311 </attribute>
14312
14313 <attribute name="width" type="unsigned long" readonly="yes">
14314 <desc>Frame buffer width, in pixels.</desc>
14315 </attribute>
14316
14317 <attribute name="height" type="unsigned long" readonly="yes">
14318 <desc>Frame buffer height, in pixels.</desc>
14319 </attribute>
14320
14321 <attribute name="bitsPerPixel" type="unsigned long" readonly="yes">
14322 <desc>
14323 Color depth, in bits per pixel. When <link to="#pixelFormat"/> is <link
14324 to="FramebufferPixelFormat_FOURCC_RGB">FOURCC_RGB</link>, valid values
14325 are: 8, 15, 16, 24 and 32.
14326 </desc>
14327 </attribute>
14328
14329 <attribute name="bytesPerLine" type="unsigned long" readonly="yes">
14330 <desc>
14331 Scan line size, in bytes. When <link to="#pixelFormat"/> is <link
14332 to="FramebufferPixelFormat_FOURCC_RGB">FOURCC_RGB</link>, the
14333 size of the scan line must be aligned to 32 bits.
14334 </desc>
14335 </attribute>
14336
14337 <attribute name="pixelFormat" type="unsigned long" readonly="yes">
14338 <desc>
14339 Frame buffer pixel format. It's either one of the values defined by <link
14340 to="FramebufferPixelFormat"/> or a raw FOURCC code.
14341 <note>
14342 This attribute must never (and will never) return <link
14343 to="FramebufferPixelFormat_Opaque"/> -- the format of the frame
14344 buffer must be always known.
14345 </note>
14346 </desc>
14347 </attribute>
14348
14349 <attribute name="usesGuestVRAM" type="boolean" readonly="yes">
14350 <desc>
14351 Defines whether this frame buffer uses the virtual video card's memory
14352 buffer (guest VRAM) directly or not.
14353 </desc>
14354 </attribute>
14355
14356 <attribute name="heightReduction" type="unsigned long" readonly="yes">
14357 <desc>
14358 Hint from the frame buffer about how much of the standard
14359 screen height it wants to use for itself. This information is
14360 exposed to the guest through the VESA BIOS and VMMDev interface
14361 so that it can use it for determining its video mode table. It
14362 is not guaranteed that the guest respects the value.
14363 </desc>
14364 </attribute>
14365
14366 <attribute name="overlay" type="IFramebufferOverlay" readonly="yes">
14367 <desc>
14368 An alpha-blended overlay which is superposed over the frame buffer.
14369 The initial purpose is to allow the display of icons providing
14370 information about the VM state, including disk activity, in front
14371 ends which do not have other means of doing that. The overlay is
14372 designed to controlled exclusively by IDisplay. It has no locking
14373 of its own, and any changes made to it are not guaranteed to be
14374 visible until the affected portion of IFramebuffer is updated. The
14375 overlay can be created lazily the first time it is requested. This
14376 attribute can also return @c null to signal that the overlay is not
14377 implemented.
14378 </desc>
14379 </attribute>
14380
14381 <attribute name="winId" type="long long" readonly="yes" wsmap="suppress">
14382 <desc>
14383 Platform-dependent identifier of the window where context of this
14384 frame buffer is drawn, or zero if there's no such window.
14385 </desc>
14386 </attribute>
14387
14388 <method name="lock" wsmap="suppress">
14389 <desc>
14390 Locks the frame buffer.
14391 Gets called by the IDisplay object where this frame buffer is
14392 bound to.
14393 </desc>
14394 </method>
14395
14396 <method name="unlock" wsmap="suppress">
14397 <desc>
14398 Unlocks the frame buffer.
14399 Gets called by the IDisplay object where this frame buffer is
14400 bound to.
14401 </desc>
14402 </method>
14403
14404 <method name="notifyUpdate" wsmap="suppress">
14405 <desc>
14406 Informs about an update.
14407 Gets called by the display object where this buffer is
14408 registered.
14409 </desc>
14410 <param name="x" type="unsigned long" dir="in"/>
14411 <param name="y" type="unsigned long" dir="in"/>
14412 <param name="width" type="unsigned long" dir="in"/>
14413 <param name="height" type="unsigned long" dir="in"/>
14414 </method>
14415
14416 <method name="requestResize" wsmap="suppress">
14417 <desc>
14418 Requests a size and pixel format change.
14419
14420 There are two modes of working with the video buffer of the virtual
14421 machine. The <i>indirect</i> mode implies that the IFramebuffer
14422 implementation allocates a memory buffer for the requested display mode
14423 and provides it to the virtual machine. In <i>direct</i> mode, the
14424 IFramebuffer implementation uses the memory buffer allocated and owned
14425 by the virtual machine. This buffer represents the video memory of the
14426 emulated video adapter (so called <i>guest VRAM</i>). The direct mode is
14427 usually faster because the implementation gets a raw pointer to the
14428 guest VRAM buffer which it can directly use for visualizing the contents
14429 of the virtual display, as opposed to the indirect mode where the
14430 contents of guest VRAM are copied to the memory buffer provided by
14431 the implementation every time a display update occurs.
14432
14433 It is important to note that the direct mode is really fast only when
14434 the implementation uses the given guest VRAM buffer directly, for
14435 example, by blitting it to the window representing the virtual machine's
14436 display, which saves at least one copy operation comparing to the
14437 indirect mode. However, using the guest VRAM buffer directly is not
14438 always possible: the format and the color depth of this buffer may be
14439 not supported by the target window, or it may be unknown (opaque) as in
14440 case of text or non-linear multi-plane VGA video modes. In this case,
14441 the indirect mode (that is always available) should be used as a
14442 fallback: when the guest VRAM contents are copied to the
14443 implementation-provided memory buffer, color and format conversion is
14444 done automatically by the underlying code.
14445
14446 The @a pixelFormat parameter defines whether the direct mode is
14447 available or not. If @a pixelFormat is <link
14448 to="FramebufferPixelFormat_Opaque"/> then direct access to the guest
14449 VRAM buffer is not available -- the @a VRAM, @a bitsPerPixel and
14450 @a bytesPerLine parameters must be ignored and the implementation must use
14451 the indirect mode (where it provides its own buffer in one of the
14452 supported formats). In all other cases, @a pixelFormat together with
14453 @a bitsPerPixel and @a bytesPerLine define the format of the video memory
14454 buffer pointed to by the @a VRAM parameter and the implementation is
14455 free to choose which mode to use. To indicate that this frame buffer uses
14456 the direct mode, the implementation of the <link to="#usesGuestVRAM"/>
14457 attribute must return @c true and <link to="#address"/> must
14458 return exactly the same address that is passed in the @a VRAM parameter
14459 of this method; otherwise it is assumed that the indirect strategy is
14460 chosen.
14461
14462 The @a width and @a height parameters represent the size of the
14463 requested display mode in both modes. In case of indirect mode, the
14464 provided memory buffer should be big enough to store data of the given
14465 display mode. In case of direct mode, it is guaranteed that the given
14466 @a VRAM buffer contains enough space to represent the display mode of the
14467 given size. Note that this frame buffer's <link to="#width"/> and <link
14468 to="#height"/> attributes must return exactly the same values as
14469 passed to this method after the resize is completed (see below).
14470
14471 The @a finished output parameter determines if the implementation has
14472 finished resizing the frame buffer or not. If, for some reason, the
14473 resize cannot be finished immediately during this call, @a finished
14474 must be set to @c false, and the implementation must call
14475 <link to="IDisplay::resizeCompleted"/> after it has returned from
14476 this method as soon as possible. If @a finished is @c false, the
14477 machine will not call any frame buffer methods until
14478 <link to="IDisplay::resizeCompleted"/> is called.
14479
14480 Note that if the direct mode is chosen, the <link to="#bitsPerPixel"/>,
14481 <link to="#bytesPerLine"/> and <link to="#pixelFormat"/> attributes of
14482 this frame buffer must return exactly the same values as specified in the
14483 parameters of this method, after the resize is completed. If the
14484 indirect mode is chosen, these attributes must return values describing
14485 the format of the implementation's own memory buffer <link
14486 to="#address"/> points to. Note also that the <link to="#bitsPerPixel"/>
14487 value must always correlate with <link to="#pixelFormat"/>. Note that
14488 the <link to="#pixelFormat"/> attribute must never return <link
14489 to="FramebufferPixelFormat_Opaque"/> regardless of the selected mode.
14490
14491 <note>
14492 This method is called by the IDisplay object under the
14493 <link to="#lock"/> provided by this IFramebuffer
14494 implementation. If this method returns @c false in @a finished, then
14495 this lock is not released until
14496 <link to="IDisplay::resizeCompleted"/> is called.
14497 </note>
14498 </desc>
14499 <param name="screenId" type="unsigned long" dir="in">
14500 <desc>
14501 Logical screen number. Must be used in the corresponding call to
14502 <link to="IDisplay::resizeCompleted"/> if this call is made.
14503 </desc>
14504 </param>
14505 <param name="pixelFormat" type="unsigned long" dir="in">
14506 <desc>
14507 Pixel format of the memory buffer pointed to by @a VRAM.
14508 See also <link to="FramebufferPixelFormat"/>.
14509 </desc>
14510 </param>
14511 <param name="VRAM" type="octet" mod="ptr" dir="in">
14512 <desc>Pointer to the virtual video card's VRAM (may be @c null).</desc>
14513 </param>
14514 <param name="bitsPerPixel" type="unsigned long" dir="in">
14515 <desc>Color depth, bits per pixel.</desc>
14516 </param>
14517 <param name="bytesPerLine" type="unsigned long" dir="in">
14518 <desc>Size of one scan line, in bytes.</desc>
14519 </param>
14520 <param name="width" type="unsigned long" dir="in">
14521 <desc>Width of the guest display, in pixels.</desc>
14522 </param>
14523 <param name="height" type="unsigned long" dir="in">
14524 <desc>Height of the guest display, in pixels.</desc>
14525 </param>
14526 <param name="finished" type="boolean" dir="return">
14527 <desc>
14528 Can the VM start using the new frame buffer immediately
14529 after this method returns or it should wait for
14530 <link to="IDisplay::resizeCompleted"/>.
14531 </desc>
14532 </param>
14533 </method>
14534
14535 <method name="videoModeSupported">
14536 <desc>
14537 Returns whether the frame buffer implementation is willing to
14538 support a given video mode. In case it is not able to render
14539 the video mode (or for some reason not willing), it should
14540 return @c false. Usually this method is called when the guest
14541 asks the VMM device whether a given video mode is supported
14542 so the information returned is directly exposed to the guest.
14543 It is important that this method returns very quickly.
14544 </desc>
14545 <param name="width" type="unsigned long" dir="in"/>
14546 <param name="height" type="unsigned long" dir="in"/>
14547 <param name="bpp" type="unsigned long" dir="in"/>
14548 <param name="supported" type="boolean" dir="return"/>
14549 </method>
14550
14551 <method name="getVisibleRegion" wsmap="suppress">
14552 <desc>
14553 Returns the visible region of this frame buffer.
14554
14555 If the @a rectangles parameter is @c null then the value of the
14556 @a count parameter is ignored and the number of elements necessary to
14557 describe the current visible region is returned in @a countCopied.
14558
14559 If @a rectangles is not @c null but @a count is less
14560 than the required number of elements to store region data, the method
14561 will report a failure. If @a count is equal or greater than the
14562 required number of elements, then the actual number of elements copied
14563 to the provided array will be returned in @a countCopied.
14564
14565 <note>
14566 The address of the provided array must be in the process space of
14567 this IFramebuffer object.
14568 </note>
14569 <note>
14570 Method not yet implemented.
14571 </note>
14572 </desc>
14573 <param name="rectangles" type="octet" mod="ptr" dir="in">
14574 <desc>Pointer to the @c RTRECT array to receive region data.</desc>
14575 </param>
14576 <param name="count" type="unsigned long" dir="in">
14577 <desc>Number of @c RTRECT elements in the @a rectangles array.</desc>
14578 </param>
14579 <param name="countCopied" type="unsigned long" dir="return">
14580 <desc>Number of elements copied to the @a rectangles array.</desc>
14581 </param>
14582 </method>
14583
14584 <method name="setVisibleRegion" wsmap="suppress">
14585 <desc>
14586 Suggests a new visible region to this frame buffer. This region
14587 represents the area of the VM display which is a union of regions of
14588 all top-level windows of the guest operating system running inside the
14589 VM (if the Guest Additions for this system support this
14590 functionality). This information may be used by the frontends to
14591 implement the seamless desktop integration feature.
14592
14593 <note>
14594 The address of the provided array must be in the process space of
14595 this IFramebuffer object.
14596 </note>
14597 <note>
14598 The IFramebuffer implementation must make a copy of the provided
14599 array of rectangles.
14600 </note>
14601 <note>
14602 Method not yet implemented.
14603 </note>
14604 </desc>
14605 <param name="rectangles" type="octet" mod="ptr" dir="in">
14606 <desc>Pointer to the @c RTRECT array.</desc>
14607 </param>
14608 <param name="count" type="unsigned long" dir="in">
14609 <desc>Number of @c RTRECT elements in the @a rectangles array.</desc>
14610 </param>
14611 </method>
14612
14613 <method name="processVHWACommand" wsmap="suppress">
14614 <desc>
14615 Posts a Video HW Acceleration Command to the frame buffer for processing.
14616 The commands used for 2D video acceleration (DDraw surface creation/destroying, blitting, scaling, color conversion, overlaying, etc.)
14617 are posted from quest to the host to be processed by the host hardware.
14618
14619 <note>
14620 The address of the provided command must be in the process space of
14621 this IFramebuffer object.
14622 </note>
14623 </desc>
14624
14625 <param name="command" type="octet" mod="ptr" dir="in">
14626 <desc>Pointer to VBOXVHWACMD containing the command to execute.</desc>
14627 </param>
14628 </method>
14629
14630 <method name="notify3DEvent">
14631 <desc>
14632 Notifies framebuffer about 3D backend event.
14633 </desc>
14634
14635 <param name="type" type="unsigned long" dir="in">
14636 <desc>event type. Currently only VBOX3D_NOTIFY_EVENT_TYPE_VISIBLE_WINDOW is supported.</desc>
14637 </param>
14638 <param name="reserved" type="octet" mod="ptr" dir="in">
14639 <desc>Reserved for future use, must be NULL.</desc>
14640 </param>
14641 </method>
14642
14643 </interface>
14644
14645 <interface
14646 name="IFramebufferOverlay" extends="IFramebuffer"
14647 uuid="0bcc1c7e-e415-47d2-bfdb-e4c705fb0f47"
14648 wsmap="managed"
14649 >
14650 <desc>
14651 The IFramebufferOverlay interface represents an alpha blended overlay
14652 for displaying status icons above an IFramebuffer. It is always created
14653 not visible, so that it must be explicitly shown. It only covers a
14654 portion of the IFramebuffer, determined by its width, height and
14655 co-ordinates. It is always in packed pixel little-endian 32bit ARGB (in
14656 that order) format, and may be written to directly. Do re-read the
14657 width though, after setting it, as it may be adjusted (increased) to
14658 make it more suitable for the front end.
14659 </desc>
14660 <attribute name="x" type="unsigned long" readonly="yes">
14661 <desc>X position of the overlay, relative to the frame buffer.</desc>
14662 </attribute>
14663
14664 <attribute name="y" type="unsigned long" readonly="yes">
14665 <desc>Y position of the overlay, relative to the frame buffer.</desc>
14666 </attribute>
14667
14668 <attribute name="visible" type="boolean">
14669 <desc>
14670 Whether the overlay is currently visible.
14671 </desc>
14672 </attribute>
14673
14674 <attribute name="alpha" type="unsigned long">
14675 <desc>
14676 The global alpha value for the overlay. This may or may not be
14677 supported by a given front end.
14678 </desc>
14679 </attribute>
14680
14681 <method name="move">
14682 <desc>
14683 Changes the overlay's position relative to the IFramebuffer.
14684 </desc>
14685 <param name="x" type="unsigned long" dir="in"/>
14686 <param name="y" type="unsigned long" dir="in"/>
14687 </method>
14688
14689 </interface>
14690
14691 <interface
14692 name="IDisplay" extends="$unknown"
14693 uuid="0598a3df-3dc0-43c7-a79c-237fb5bb633d"
14694 wsmap="managed"
14695 >
14696 <desc>
14697 The IDisplay interface represents the virtual machine's display.
14698
14699 The object implementing this interface is contained in each
14700 <link to="IConsole::display"/> attribute and represents the visual
14701 output of the virtual machine.
14702
14703 The virtual display supports pluggable output targets represented by the
14704 IFramebuffer interface. Examples of the output target are a window on
14705 the host computer or an RDP session's display on a remote computer.
14706 </desc>
14707 <method name="getScreenResolution">
14708 <desc>Queries display width, height and color depth for given screen.</desc>
14709 <param name="screenId" type="unsigned long" dir="in"/>
14710 <param name="width" type="unsigned long" dir="out"/>
14711 <param name="height" type="unsigned long" dir="out"/>
14712 <param name="bitsPerPixel" type="unsigned long" dir="out"/>
14713 </method>
14714
14715 <method name="setFramebuffer">
14716 <desc>
14717 Sets the framebuffer for given screen.
14718 </desc>
14719 <param name="screenId" type="unsigned long" dir="in"/>
14720 <param name="framebuffer" type="IFramebuffer" dir="in"/>
14721 </method>
14722
14723 <method name="getFramebuffer">
14724 <desc>
14725 Queries the framebuffer for given screen.
14726 </desc>
14727 <param name="screenId" type="unsigned long" dir="in"/>
14728 <param name="framebuffer" type="IFramebuffer" dir="out"/>
14729 <param name="xOrigin" type="long" dir="out"/>
14730 <param name="yOrigin" type="long" dir="out"/>
14731 </method>
14732
14733 <method name="setVideoModeHint">
14734 <desc>
14735 Asks VirtualBox to request the given video mode from
14736 the guest. This is just a hint and it cannot be guaranteed
14737 that the requested resolution will be used. Guest Additions
14738 are required for the request to be seen by guests. The caller
14739 should issue the request and wait for a resolution change and
14740 after a timeout retry.
14741
14742 Specifying @c 0 for either @a width, @a height or @a bitsPerPixel
14743 parameters means that the corresponding values should be taken from the
14744 current video mode (i.e. left unchanged).
14745
14746 If the guest OS supports multi-monitor configuration then the @a display
14747 parameter specifies the number of the guest display to send the hint to:
14748 @c 0 is the primary display, @c 1 is the first secondary and
14749 so on. If the multi-monitor configuration is not supported, @a display
14750 must be @c 0.
14751
14752 <result name="E_INVALIDARG">
14753 The @a display is not associated with any monitor.
14754 </result>
14755
14756 </desc>
14757 <param name="display" type="unsigned long" dir="in">
14758 <desc>
14759 The number of the guest display to send the hint to.
14760 </desc>
14761 </param>
14762 <param name="enabled" type="boolean" dir="in">
14763 <desc>
14764 @c True, if this guest screen is enabled,
14765 @c False otherwise.
14766 </desc>
14767 </param>
14768 <param name="changeOrigin" type="boolean" dir="in">
14769 <desc>
14770 @c True, if the origin of the guest screen should be changed,
14771 @c False otherwise.
14772 </desc>
14773 </param>
14774 <param name="originX" type="long" dir="in">
14775 <desc>
14776 The X origin of the guest screen.
14777 </desc>
14778 </param>
14779 <param name="originY" type="long" dir="in">
14780 <desc>
14781 The Y origin of the guest screen.
14782 </desc>
14783 </param>
14784 <param name="width" type="unsigned long" dir="in"/>
14785 <param name="height" type="unsigned long" dir="in"/>
14786 <param name="bitsPerPixel" type="unsigned long" dir="in"/>
14787 </method>
14788
14789 <method name="setSeamlessMode">
14790 <desc>
14791 Enables or disables seamless guest display rendering (seamless desktop
14792 integration) mode.
14793 <note>
14794 Calling this method has no effect if <link
14795 to="IGuest::getFacilityStatus"/> with facility @c Seamless
14796 does not return @c Active.
14797 </note>
14798 </desc>
14799 <param name="enabled" type="boolean" dir="in"/>
14800 </method>
14801
14802 <method name="takeScreenShot">
14803 <desc>
14804 Takes a screen shot of the requested size and copies it to the
14805 32-bpp buffer allocated by the caller and pointed to by @a address.
14806 A pixel consists of 4 bytes in order: B, G, R, 0.
14807
14808 <note>This API can be used only locally by a VM process through the
14809 COM/XPCOM C++ API as it requires pointer support. It is not
14810 available for scripting langages, Java or any webservice clients.
14811 Unless you are writing a new VM frontend use
14812 <link to="#takeScreenShotToArray" />.
14813 </note>
14814
14815 <result name="E_NOTIMPL">
14816 Feature not implemented.
14817 </result>
14818 <result name="VBOX_E_IPRT_ERROR">
14819 Could not take a screenshot.
14820 </result>
14821
14822 </desc>
14823 <param name="screenId" type="unsigned long" dir="in"/>
14824 <param name="address" type="octet" mod="ptr" dir="in"/>
14825 <param name="width" type="unsigned long" dir="in"/>
14826 <param name="height" type="unsigned long" dir="in"/>
14827 </method>
14828
14829 <method name="takeScreenShotToArray">
14830 <desc>
14831 Takes a guest screen shot of the requested size and returns it as
14832 an array of bytes in uncompressed 32-bpp RGBA format.
14833 A pixel consists of 4 bytes in order: R, G, B, 0xFF.
14834
14835 This API is slow, but could be the only option to get guest screenshot
14836 for scriptable languages not allowed to manipulate with addresses
14837 directly.
14838
14839 <result name="E_NOTIMPL">
14840 Feature not implemented.
14841 </result>
14842 <result name="VBOX_E_IPRT_ERROR">
14843 Could not take a screenshot.
14844 </result>
14845 </desc>
14846 <param name="screenId" type="unsigned long" dir="in">
14847 <desc>
14848 Monitor to take screenshot from.
14849 </desc>
14850 </param>
14851 <param name="width" type="unsigned long" dir="in">
14852 <desc>
14853 Desired image width.
14854 </desc>
14855 </param>
14856 <param name="height" type="unsigned long" dir="in">
14857 <desc>
14858 Desired image height.
14859 </desc>
14860 </param>
14861 <param name="screenData" type="octet" dir="return" safearray="yes">
14862 <desc>
14863 Array with resulting screen data.
14864 </desc>
14865 </param>
14866 </method>
14867
14868 <method name="takeScreenShotPNGToArray">
14869 <desc>
14870 Takes a guest screen shot of the requested size and returns it as
14871 PNG image in array.
14872
14873 <result name="E_NOTIMPL">
14874 Feature not implemented.
14875 </result>
14876 <result name="VBOX_E_IPRT_ERROR">
14877 Could not take a screenshot.
14878 </result>
14879 </desc>
14880 <param name="screenId" type="unsigned long" dir="in">
14881 <desc>
14882 Monitor to take the screenshot from.
14883 </desc>
14884 </param>
14885 <param name="width" type="unsigned long" dir="in">
14886 <desc>
14887 Desired image width.
14888 </desc>
14889 </param>
14890 <param name="height" type="unsigned long" dir="in">
14891 <desc>
14892 Desired image height.
14893 </desc>
14894 </param>
14895 <param name="screenData" type="octet" dir="return" safearray="yes">
14896 <desc>
14897 Array with resulting screen data.
14898 </desc>
14899 </param>
14900 </method>
14901
14902 <method name="enableVideoCaptureScreens">
14903 <desc>
14904 Start/stop video capture on selected screens.
14905 </desc>
14906 <param name="screens" type="boolean" safearray="yes" dir="in">
14907 <desc>
14908 The screens to start/stop capturing.
14909 </desc>
14910 </param>
14911 </method>
14912
14913 <method name="drawToScreen">
14914 <desc>
14915 Draws a 32-bpp image of the specified size from the given buffer
14916 to the given point on the VM display.
14917
14918 <result name="E_NOTIMPL">
14919 Feature not implemented.
14920 </result>
14921 <result name="VBOX_E_IPRT_ERROR">
14922 Could not draw to screen.
14923 </result>
14924
14925 </desc>
14926 <param name="screenId" type="unsigned long" dir="in">
14927 <desc>
14928 Monitor to take the screenshot from.
14929 </desc>
14930 </param>
14931 <param name="address" type="octet" mod="ptr" dir="in">
14932 <desc>
14933 Address to store the screenshot to
14934 </desc>
14935 </param>
14936 <param name="x" type="unsigned long" dir="in">
14937 <desc>
14938 Relative to the screen top left corner.
14939 </desc>
14940 </param>
14941 <param name="y" type="unsigned long" dir="in">
14942 <desc>
14943 Relative to the screen top left corner.
14944 </desc>
14945 </param>
14946 <param name="width" type="unsigned long" dir="in">
14947 <desc>
14948 Desired image width.
14949 </desc>
14950 </param>
14951 <param name="height" type="unsigned long" dir="in">
14952 <desc>
14953 Desired image height.
14954 </desc>
14955 </param>
14956 </method>
14957
14958 <method name="invalidateAndUpdate">
14959 <desc>
14960 Does a full invalidation of the VM display and instructs the VM
14961 to update it.
14962
14963 <result name="VBOX_E_IPRT_ERROR">
14964 Could not invalidate and update screen.
14965 </result>
14966
14967 </desc>
14968 </method>
14969
14970 <method name="resizeCompleted">
14971 <desc>
14972 Signals that a framebuffer has completed the resize operation.
14973
14974 <result name="VBOX_E_NOT_SUPPORTED">
14975 Operation only valid for external frame buffers.
14976 </result>
14977
14978 </desc>
14979 <param name="screenId" type="unsigned long" dir="in"/>
14980 </method>
14981
14982 <method name="completeVHWACommand">
14983 <desc>
14984 Signals that the Video HW Acceleration command has completed.
14985 </desc>
14986
14987 <param name="command" type="octet" mod="ptr" dir="in">
14988 <desc>Pointer to VBOXVHWACMD containing the completed command.</desc>
14989 </param>
14990 </method>
14991
14992 <method name="viewportChanged">
14993 <desc>
14994 Signals that framebuffer window viewport has changed.
14995
14996 <result name="E_INVALIDARG">
14997 The specified viewport data is invalid.
14998 </result>
14999
15000 </desc>
15001
15002 <param name="screenId" type="unsigned long" dir="in">
15003 <desc>
15004 Monitor to take the screenshot from.
15005 </desc>
15006 </param>
15007 <param name="x" type="unsigned long" dir="in">
15008 <desc>
15009 Framebuffer x offset.
15010 </desc>
15011 </param>
15012 <param name="y" type="unsigned long" dir="in">
15013 <desc>
15014 Framebuffer y offset.
15015 </desc>
15016 </param>
15017 <param name="width" type="unsigned long" dir="in">
15018 <desc>
15019 Viewport width.
15020 </desc>
15021 </param>
15022 <param name="height" type="unsigned long" dir="in">
15023 <desc>
15024 Viewport height.
15025 </desc>
15026 </param>
15027 </method>
15028 </interface>
15029
15030 <!--
15031 // INetworkAdapter
15032 /////////////////////////////////////////////////////////////////////////
15033 -->
15034
15035 <enum
15036 name="NetworkAttachmentType"
15037 uuid="2ac4bc71-6b82-417a-acd1-f7426d2570d6"
15038 >
15039 <desc>
15040 Network attachment type.
15041 </desc>
15042
15043 <const name="Null" value="0">
15044 <desc>Null value, also means "not attached".</desc>
15045 </const>
15046 <const name="NAT" value="1"/>
15047 <const name="Bridged" value="2"/>
15048 <const name="Internal" value="3"/>
15049 <const name="HostOnly" value="4"/>
15050 <const name="Generic" value="5"/>
15051 </enum>
15052
15053 <enum
15054 name="NetworkAdapterType"
15055 uuid="3c2281e4-d952-4e87-8c7d-24379cb6a81c"
15056 >
15057 <desc>
15058 Network adapter type.
15059 </desc>
15060
15061 <const name="Null" value="0">
15062 <desc>Null value (never used by the API).</desc>
15063 </const>
15064 <const name="Am79C970A" value="1">
15065 <desc>AMD PCNet-PCI II network card (Am79C970A).</desc>
15066 </const>
15067 <const name="Am79C973" value="2">
15068 <desc>AMD PCNet-FAST III network card (Am79C973).</desc>
15069 </const>
15070 <const name="I82540EM" value="3">
15071 <desc>Intel PRO/1000 MT Desktop network card (82540EM).</desc>
15072 </const>
15073 <const name="I82543GC" value="4">
15074 <desc>Intel PRO/1000 T Server network card (82543GC).</desc>
15075 </const>
15076 <const name="I82545EM" value="5">
15077 <desc>Intel PRO/1000 MT Server network card (82545EM).</desc>
15078 </const>
15079 <const name="Virtio" value="6">
15080 <desc>Virtio network device.</desc>
15081 </const>
15082 </enum>
15083
15084 <enum
15085 name="NetworkAdapterPromiscModePolicy"
15086 uuid="c963768a-376f-4c85-8d84-d8ced4b7269e"
15087 >
15088 <desc>
15089 The promiscuous mode policy of an interface.
15090 </desc>
15091
15092 <const name="Deny" value="1">
15093 <desc>Deny promiscuous mode requests.</desc>
15094 </const>
15095 <const name="AllowNetwork" value="2">
15096 <desc>
15097 Allow promicuous mode, but restrict the scope it to the internal
15098 network so that it only applies to other VMs.
15099 </desc>
15100 </const>
15101 <const name="AllowAll" value="3">
15102 <desc>
15103 Allow promicuous mode, include unrelated traffic going over the wire
15104 and internally on the host.
15105 </desc>
15106 </const>
15107 </enum>
15108
15109 <interface
15110 name="INetworkAdapter" extends="$unknown"
15111 uuid="efa0f965-63c7-4c60-afdf-b1cc9943b9c0"
15112 wsmap="managed"
15113 >
15114 <desc>
15115 Represents a virtual network adapter that is attached to a virtual machine.
15116 Each virtual machine has a fixed number of network adapter slots with one
15117 instance of this attached to each of them. Call
15118 <link to="IMachine::getNetworkAdapter" /> to get the network adapter that
15119 is attached to a given slot in a given machine.
15120
15121 Each network adapter can be in one of five attachment modes, which are
15122 represented by the <link to="NetworkAttachmentType" /> enumeration;
15123 see the <link to="#attachmentType" /> attribute.
15124 </desc>
15125
15126 <attribute name="adapterType" type="NetworkAdapterType">
15127 <desc>
15128 Type of the virtual network adapter. Depending on this value,
15129 VirtualBox will provide a different virtual network hardware
15130 to the guest.
15131 </desc>
15132 </attribute>
15133
15134 <attribute name="slot" type="unsigned long" readonly="yes">
15135 <desc>
15136 Slot number this adapter is plugged into. Corresponds to
15137 the value you pass to <link to="IMachine::getNetworkAdapter"/>
15138 to obtain this instance.
15139 </desc>
15140 </attribute>
15141
15142 <attribute name="enabled" type="boolean">
15143 <desc>
15144 Flag whether the network adapter is present in the
15145 guest system. If disabled, the virtual guest hardware will
15146 not contain this network adapter. Can only be changed when
15147 the VM is not running.
15148 </desc>
15149 </attribute>
15150
15151 <attribute name="MACAddress" type="wstring">
15152 <desc>
15153 Ethernet MAC address of the adapter, 12 hexadecimal characters. When setting
15154 it to @c null or an empty string, VirtualBox will generate a unique MAC address.
15155 </desc>
15156 </attribute>
15157
15158 <attribute name="attachmentType" type="NetworkAttachmentType">
15159 <desc>
15160 Sets/Gets network attachment type of this network adapter.
15161 </desc>
15162 </attribute>
15163
15164 <attribute name="bridgedInterface" type="wstring">
15165 <desc>
15166 Name of the network interface the VM should be bridged to.
15167 </desc>
15168 </attribute>
15169
15170 <attribute name="hostOnlyInterface" type="wstring">
15171 <desc>
15172 Name of the host only network interface the VM is attached to.
15173 </desc>
15174 </attribute>
15175
15176 <attribute name="internalNetwork" type="wstring">
15177 <desc>
15178 Name of the internal network the VM is attached to.
15179 </desc>
15180 </attribute>
15181
15182 <attribute name="NATNetwork" type="wstring">
15183 <desc>
15184 Name of the NAT network the VM is attached to.
15185 </desc>
15186 </attribute>
15187
15188 <attribute name="genericDriver" type="wstring">
15189 <desc>
15190 Name of the driver to use for the "Generic" network attachment type.
15191 </desc>
15192 </attribute>
15193
15194 <attribute name="cableConnected" type="boolean">
15195 <desc>
15196 Flag whether the adapter reports the cable as connected or not.
15197 It can be used to report offline situations to a VM.
15198 </desc>
15199 </attribute>
15200
15201 <attribute name="lineSpeed" type="unsigned long">
15202 <desc>
15203 Line speed reported by custom drivers, in units of 1 kbps.
15204 </desc>
15205 </attribute>
15206
15207 <attribute name="promiscModePolicy" type="NetworkAdapterPromiscModePolicy">
15208 <desc>
15209 The promiscuous mode policy of the network adapter when attached to an
15210 internal network, host only network or a bridge.
15211 </desc>
15212 </attribute>
15213
15214 <attribute name="traceEnabled" type="boolean">
15215 <desc>
15216 Flag whether network traffic from/to the network card should be traced.
15217 Can only be toggled when the VM is turned off.
15218 </desc>
15219 </attribute>
15220
15221 <attribute name="traceFile" type="wstring">
15222 <desc>
15223 Filename where a network trace will be stored. If not set, VBox-pid.pcap
15224 will be used.
15225 </desc>
15226 </attribute>
15227
15228 <attribute name="NATEngine" type="INATEngine" readonly="yes">
15229 <desc>
15230 Points to the NAT engine which handles the network address translation
15231 for this interface. This is active only when the interface actually uses
15232 NAT.
15233 </desc>
15234 </attribute>
15235
15236 <attribute name="bootPriority" type="unsigned long">
15237 <desc>
15238 Network boot priority of the adapter. Priority 1 is highest. If not set,
15239 the priority is considered to be at the lowest possible setting.
15240 </desc>
15241 </attribute>
15242
15243 <attribute name="bandwidthGroup" type="IBandwidthGroup">
15244 <desc>The bandwidth group this network adapter is assigned to.</desc>
15245 </attribute>
15246
15247 <!-- property methods -->
15248
15249 <method name="getProperty" const="yes">
15250 <desc>
15251 Returns the value of the network attachment property with the given name.
15252
15253 If the requested data @a key does not exist, this function will
15254 succeed and return an empty string in the @a value argument.
15255
15256 <result name="E_INVALIDARG">@a name is @c null or empty.</result>
15257 </desc>
15258 <param name="key" type="wstring" dir="in">
15259 <desc>Name of the property to get.</desc>
15260 </param>
15261 <param name="value" type="wstring" dir="return">
15262 <desc>Current property value.</desc>
15263 </param>
15264 </method>
15265
15266 <method name="setProperty">
15267 <desc>
15268 Sets the value of the network attachment property with the given name.
15269
15270 Setting the property value to @c null or an empty string is equivalent
15271 to deleting the existing value.
15272
15273 <result name="E_INVALIDARG">@a name is @c null or empty.</result>
15274 </desc>
15275 <param name="key" type="wstring" dir="in">
15276 <desc>Name of the property to set.</desc>
15277 </param>
15278 <param name="value" type="wstring" dir="in">
15279 <desc>Property value to set.</desc>
15280 </param>
15281 </method>
15282
15283 <method name="getProperties" const="yes">
15284 <desc>
15285 Returns values for a group of properties in one call.
15286
15287 The names of the properties to get are specified using the @a names
15288 argument which is a list of comma-separated property names or
15289 an empty string if all properties are to be returned.
15290 <note>Currently the value of this argument is ignored and the method
15291 always returns all existing properties.</note>
15292
15293 The method returns two arrays, the array of property names corresponding
15294 to the @a names argument and the current values of these properties.
15295 Both arrays have the same number of elements with each element at the
15296 given index in the first array corresponds to an element at the same
15297 index in the second array.
15298 </desc>
15299 <param name="names" type="wstring" dir="in">
15300 <desc>
15301 Names of properties to get.
15302 </desc>
15303 </param>
15304 <param name="returnNames" type="wstring" safearray="yes" dir="out">
15305 <desc>Names of returned properties.</desc>
15306 </param>
15307 <param name="returnValues" type="wstring" safearray="yes" dir="return">
15308 <desc>Values of returned properties.</desc>
15309 </param>
15310 </method>
15311
15312 </interface>
15313
15314
15315 <!--
15316 // ISerialPort
15317 /////////////////////////////////////////////////////////////////////////
15318 -->
15319
15320 <enum
15321 name="PortMode"
15322 uuid="533b5fe3-0185-4197-86a7-17e37dd39d76"
15323 >
15324 <desc>
15325 The PortMode enumeration represents possible communication modes for
15326 the virtual serial port device.
15327 </desc>
15328
15329 <const name="Disconnected" value="0">
15330 <desc>Virtual device is not attached to any real host device.</desc>
15331 </const>
15332 <const name="HostPipe" value="1">
15333 <desc>Virtual device is attached to a host pipe.</desc>
15334 </const>
15335 <const name="HostDevice" value="2">
15336 <desc>Virtual device is attached to a host device.</desc>
15337 </const>
15338 <const name="RawFile" value="3">
15339 <desc>Virtual device is attached to a raw file.</desc>
15340 </const>
15341 </enum>
15342
15343 <interface
15344 name="ISerialPort" extends="$unknown"
15345 uuid="937f6970-5103-4745-b78e-d28dcf1479a8"
15346 wsmap="managed"
15347 >
15348
15349 <desc>
15350 The ISerialPort interface represents the virtual serial port device.
15351
15352 The virtual serial port device acts like an ordinary serial port
15353 inside the virtual machine. This device communicates to the real
15354 serial port hardware in one of two modes: host pipe or host device.
15355
15356 In host pipe mode, the #path attribute specifies the path to the pipe on
15357 the host computer that represents a serial port. The #server attribute
15358 determines if this pipe is created by the virtual machine process at
15359 machine startup or it must already exist before starting machine
15360 execution.
15361
15362 In host device mode, the #path attribute specifies the name of the
15363 serial port device on the host computer.
15364
15365 There is also a third communication mode: the disconnected mode. In this
15366 mode, the guest OS running inside the virtual machine will be able to
15367 detect the serial port, but all port write operations will be discarded
15368 and all port read operations will return no data.
15369
15370 <see><link to="IMachine::getSerialPort"/></see>
15371 </desc>
15372
15373 <attribute name="slot" type="unsigned long" readonly="yes">
15374 <desc>
15375 Slot number this serial port is plugged into. Corresponds to
15376 the value you pass to <link to="IMachine::getSerialPort"/>
15377 to obtain this instance.
15378 </desc>
15379 </attribute>
15380
15381 <attribute name="enabled" type="boolean">
15382 <desc>
15383 Flag whether the serial port is enabled. If disabled,
15384 the serial port will not be reported to the guest OS.
15385 </desc>
15386 </attribute>
15387
15388 <attribute name="IOBase" type="unsigned long">
15389 <desc>Base I/O address of the serial port.</desc>
15390 </attribute>
15391
15392 <attribute name="IRQ" type="unsigned long">
15393 <desc>IRQ number of the serial port.</desc>
15394 </attribute>
15395
15396 <attribute name="hostMode" type="PortMode">
15397 <desc>
15398 How is this port connected to the host.
15399 <note>
15400 Changing this attribute may fail if the conditions for
15401 <link to="#path"/> are not met.
15402 </note>
15403 </desc>
15404 </attribute>
15405
15406 <attribute name="server" type="boolean">
15407 <desc>
15408 Flag whether this serial port acts as a server (creates a new pipe on
15409 the host) or as a client (uses the existing pipe). This attribute is
15410 used only when <link to="#hostMode"/> is PortMode_HostPipe.
15411 </desc>
15412 </attribute>
15413
15414 <attribute name="path" type="wstring">
15415 <desc>
15416 Path to the serial port's pipe on the host when <link to="ISerialPort::hostMode"/> is
15417 PortMode_HostPipe, or the host serial device name when
15418 <link to="ISerialPort::hostMode"/> is PortMode_HostDevice. For both
15419 cases, setting a @c null or empty string as the attribute's value
15420 is an error. Otherwise, the value of this property is ignored.
15421 </desc>
15422 </attribute>
15423
15424 </interface>
15425
15426 <!--
15427 // IParallelPort
15428 /////////////////////////////////////////////////////////////////////////
15429 -->
15430
15431 <interface
15432 name="IParallelPort" extends="$unknown"
15433 uuid="0c925f06-dd10-4b77-8de8-294d738c3214"
15434 wsmap="managed"
15435 >
15436
15437 <desc>
15438 The IParallelPort interface represents the virtual parallel port device.
15439
15440 The virtual parallel port device acts like an ordinary parallel port
15441 inside the virtual machine. This device communicates to the real
15442 parallel port hardware using the name of the parallel device on the host
15443 computer specified in the #path attribute.
15444
15445 Each virtual parallel port device is assigned a base I/O address and an
15446 IRQ number that will be reported to the guest operating system and used
15447 to operate the given parallel port from within the virtual machine.
15448
15449 <see><link to="IMachine::getParallelPort"/></see>
15450 </desc>
15451
15452 <attribute name="slot" type="unsigned long" readonly="yes">
15453 <desc>
15454 Slot number this parallel port is plugged into. Corresponds to
15455 the value you pass to <link to="IMachine::getParallelPort"/>
15456 to obtain this instance.
15457 </desc>
15458 </attribute>
15459
15460 <attribute name="enabled" type="boolean">
15461 <desc>
15462 Flag whether the parallel port is enabled. If disabled,
15463 the parallel port will not be reported to the guest OS.
15464 </desc>
15465 </attribute>
15466
15467 <attribute name="IOBase" type="unsigned long">
15468 <desc>Base I/O address of the parallel port.</desc>
15469 </attribute>
15470
15471 <attribute name="IRQ" type="unsigned long">
15472 <desc>IRQ number of the parallel port.</desc>
15473 </attribute>
15474
15475 <attribute name="path" type="wstring">
15476 <desc>
15477 Host parallel device name. If this parallel port is enabled, setting a
15478 @c null or an empty string as this attribute's value will result in
15479 an error.
15480 </desc>
15481 </attribute>
15482
15483 </interface>
15484
15485
15486 <!--
15487 // IMachineDebugger
15488 /////////////////////////////////////////////////////////////////////////
15489 -->
15490
15491 <interface
15492 name="IMachineDebugger" extends="$unknown"
15493 uuid="5e4534dc-21b8-4f6b-8a08-eef50e1a0aa1"
15494 wsmap="managed"
15495 >
15496 <method name="dumpGuestCore">
15497 <desc>
15498 Takes a core dump of the guest.
15499
15500 See include/VBox/dbgfcorefmt.h for details on the file format.
15501 </desc>
15502 <param name="filename" type="wstring" dir="in">
15503 <desc>
15504 The name of the output file. The file must not exist.
15505 </desc>
15506 </param>
15507 <param name="compression" type="wstring" dir="in">
15508 <desc>
15509 Reserved for future compression method indicator.
15510 </desc>
15511 </param>
15512 </method>
15513
15514 <method name="dumpHostProcessCore">
15515 <desc>
15516 Takes a core dump of the VM process on the host.
15517
15518 This feature is not implemented in the 4.0.0 release but it may show up
15519 in a dot release.
15520 </desc>
15521 <param name="filename" type="wstring" dir="in">
15522 <desc>
15523 The name of the output file. The file must not exist.
15524 </desc>
15525 </param>
15526 <param name="compression" type="wstring" dir="in">
15527 <desc>
15528 Reserved for future compression method indicator.
15529 </desc>
15530 </param>
15531 </method>
15532
15533 <method name="info">
15534 <desc>
15535 Interfaces with the info dumpers (DBGFInfo).
15536
15537 This feature is not implemented in the 4.0.0 release but it may show up
15538 in a dot release.
15539 </desc>
15540 <param name="name" type="wstring" dir="in">
15541 <desc>
15542 The name of the info item.
15543 </desc>
15544 </param>
15545 <param name="args" type="wstring" dir="in">
15546 <desc>
15547 Arguments to the info dumper.
15548 </desc>
15549 </param>
15550 <param name="info" type="wstring" dir="return">
15551 <desc>
15552 The into string.
15553 </desc>
15554 </param>
15555 </method>
15556
15557 <method name="injectNMI">
15558 <desc>
15559 Inject an NMI into a running VT-x/AMD-V VM.
15560 </desc>
15561 </method>
15562
15563 <method name="modifyLogGroups">
15564 <desc>
15565 Modifies the group settings of the debug or release logger.
15566 </desc>
15567 <param name="settings" type="wstring" dir="in">
15568 <desc>
15569 The group settings string. See iprt/log.h for details. To target the
15570 release logger, prefix the string with "release:".
15571 </desc>
15572 </param>
15573 </method>
15574
15575 <method name="modifyLogFlags">
15576 <desc>
15577 Modifies the debug or release logger flags.
15578 </desc>
15579 <param name="settings" type="wstring" dir="in">
15580 <desc>
15581 The flags settings string. See iprt/log.h for details. To target the
15582 release logger, prefix the string with "release:".
15583 </desc>
15584 </param>
15585 </method>
15586
15587 <method name="modifyLogDestinations">
15588 <desc>
15589 Modifies the debug or release logger destinations.
15590 </desc>
15591 <param name="settings" type="wstring" dir="in">
15592 <desc>
15593 The destination settings string. See iprt/log.h for details. To target the
15594 release logger, prefix the string with "release:".
15595 </desc>
15596 </param>
15597 </method>
15598
15599 <method name="readPhysicalMemory">
15600 <desc>
15601 Reads guest physical memory, no side effects (MMIO++).
15602
15603 This feature is not implemented in the 4.0.0 release but may show up
15604 in a dot release.
15605 </desc>
15606 <param name="address" type="long long" dir="in">
15607 <desc>The guest physical address.</desc>
15608 </param>
15609 <param name="size" type="unsigned long" dir="in">
15610 <desc>The number of bytes to read.</desc>
15611 </param>
15612 <param name="bytes" type="octet" safearray="yes" dir="return">
15613 <desc>The bytes read.</desc>
15614 </param>
15615 </method>
15616
15617 <method name="writePhysicalMemory">
15618 <desc>
15619 Writes guest physical memory, access handles (MMIO++) are ignored.
15620
15621 This feature is not implemented in the 4.0.0 release but may show up
15622 in a dot release.
15623 </desc>
15624 <param name="address" type="long long" dir="in">
15625 <desc>The guest physical address.</desc>
15626 </param>
15627 <param name="size" type="unsigned long" dir="in">
15628 <desc>The number of bytes to read.</desc>
15629 </param>
15630 <param name="bytes" type="octet" safearray="yes" dir="in">
15631 <desc>The bytes to write.</desc>
15632 </param>
15633 </method>
15634
15635 <method name="readVirtualMemory">
15636 <desc>
15637 Reads guest virtual memory, no side effects (MMIO++).
15638
15639 This feature is not implemented in the 4.0.0 release but may show up
15640 in a dot release.
15641 </desc>
15642 <param name="cpuId" type="unsigned long" dir="in">
15643 <desc>The identifier of the Virtual CPU.</desc>
15644 </param>
15645 <param name="address" type="long long" dir="in">
15646 <desc>The guest virtual address.</desc>
15647 </param>
15648 <param name="size" type="unsigned long" dir="in">
15649 <desc>The number of bytes to read.</desc>
15650 </param>
15651 <param name="bytes" type="octet" safearray="yes" dir="return">
15652 <desc>The bytes read.</desc>
15653 </param>
15654 </method>
15655
15656 <method name="writeVirtualMemory">
15657 <desc>
15658 Writes guest virtual memory, access handles (MMIO++) are ignored.
15659
15660 This feature is not implemented in the 4.0.0 release but may show up
15661 in a dot release.
15662 </desc>
15663 <param name="cpuId" type="unsigned long" dir="in">
15664 <desc>The identifier of the Virtual CPU.</desc>
15665 </param>
15666 <param name="address" type="long long" dir="in">
15667 <desc>The guest virtual address.</desc>
15668 </param>
15669 <param name="size" type="unsigned long" dir="in">
15670 <desc>The number of bytes to read.</desc>
15671 </param>
15672 <param name="bytes" type="octet" safearray="yes" dir="in">
15673 <desc>The bytes to write.</desc>
15674 </param>
15675 </method>
15676
15677 <method name="detectOS">
15678 <desc>
15679 Tries to (re-)detect the guest OS kernel.
15680
15681 This feature is not implemented in the 4.0.0 release but may show up
15682 in a dot release.
15683 </desc>
15684 <param name="os" type="wstring" dir="return">
15685 <desc>
15686 The detected OS kernel on success.
15687 </desc>
15688 </param>
15689 </method>
15690
15691 <method name="getRegister">
15692 <desc>
15693 Gets one register.
15694
15695 This feature is not implemented in the 4.0.0 release but may show up
15696 in a dot release.
15697 </desc>
15698 <param name="cpuId" type="unsigned long" dir="in">
15699 <desc>The identifier of the Virtual CPU.</desc>
15700 </param>
15701 <param name="name" type="wstring" dir="in">
15702 <desc>The register name, case is ignored.</desc>
15703 </param>
15704 <param name="value" type="wstring" dir="return">
15705 <desc>
15706 The register value. This is usually a hex value (always 0x prefixed)
15707 but other format may be used for floating point registers (TBD).
15708 </desc>
15709 </param>
15710 </method>
15711
15712 <method name="getRegisters">
15713 <desc>
15714 Gets all the registers for the given CPU.
15715
15716 This feature is not implemented in the 4.0.0 release but may show up
15717 in a dot release.
15718 </desc>
15719 <param name="cpuId" type="unsigned long" dir="in">
15720 <desc>The identifier of the Virtual CPU.</desc>
15721 </param>
15722 <param name="names" type="wstring" dir="out" safearray="yes">
15723 <desc>Array containing the lowercase register names.</desc>
15724 </param>
15725 <param name="values" type="wstring" dir="out" safearray="yes">
15726 <desc>
15727 Array paralell to the names holding the register values as if the
15728 register was returned by <link to="IMachineDebugger::getRegister"/>.
15729 </desc>
15730 </param>
15731 </method>
15732
15733 <method name="setRegister">
15734 <desc>
15735 Gets one register.
15736
15737 This feature is not implemented in the 4.0.0 release but may show up
15738 in a dot release.
15739 </desc>
15740 <param name="cpuId" type="unsigned long" dir="in">
15741 <desc>The identifier of the Virtual CPU.</desc>
15742 </param>
15743 <param name="name" type="wstring" dir="in">
15744 <desc>The register name, case is ignored.</desc>
15745 </param>
15746 <param name="value" type="wstring" dir="in">
15747 <desc>
15748 The new register value. Hexadecimal, decimal and octal formattings
15749 are supported in addition to any special formattings returned by
15750 the getters.
15751 </desc>
15752 </param>
15753 </method>
15754
15755 <method name="setRegisters">
15756 <desc>
15757 Sets zero or more registers atomically.
15758
15759 This feature is not implemented in the 4.0.0 release but may show up
15760 in a dot release.
15761 </desc>
15762 <param name="cpuId" type="unsigned long" dir="in">
15763 <desc>The identifier of the Virtual CPU.</desc>
15764 </param>
15765 <param name="names" type="wstring" dir="in" safearray="yes">
15766 <desc>Array containing the register names, case ignored.</desc>
15767 </param>
15768 <param name="values" type="wstring" dir="in" safearray="yes">
15769 <desc>
15770 Array paralell to the names holding the register values. See
15771 <link to="IMachineDebugger::setRegister"/> for formatting
15772 guidelines.
15773 </desc>
15774 </param>
15775 </method>
15776
15777 <method name="dumpGuestStack">
15778 <desc>
15779 Produce a simple stack dump using the current guest state.
15780
15781 This feature is not implemented in the 4.0.0 release but may show up
15782 in a dot release.
15783 </desc>
15784 <param name="cpuId" type="unsigned long" dir="in">
15785 <desc>The identifier of the Virtual CPU.</desc>
15786 </param>
15787 <param name="stack" type="wstring" dir="return">
15788 <desc>String containing the formatted stack dump.</desc>
15789 </param>
15790 </method>
15791
15792 <method name="resetStats">
15793 <desc>
15794 Reset VM statistics.
15795 </desc>
15796 <param name="pattern" type="wstring" dir="in">
15797 <desc>The selection pattern. A bit similar to filename globbing.</desc>
15798 </param>
15799 </method>
15800
15801 <method name="dumpStats">
15802 <desc>
15803 Dumps VM statistics.
15804 </desc>
15805 <param name="pattern" type="wstring" dir="in">
15806 <desc>The selection pattern. A bit similar to filename globbing.</desc>
15807 </param>
15808 </method>
15809
15810 <method name="getStats">
15811 <desc>
15812 Get the VM statistics in a XMLish format.
15813 </desc>
15814 <param name="pattern" type="wstring" dir="in">
15815 <desc>The selection pattern. A bit similar to filename globbing.</desc>
15816 </param>
15817 <param name="withDescriptions" type="boolean" dir="in">
15818 <desc>Whether to include the descriptions.</desc>
15819 </param>
15820 <param name="stats" type="wstring" dir="return">
15821 <desc>The XML document containing the statistics.</desc>
15822 </param>
15823 </method>
15824
15825 <attribute name="singleStep" type="boolean">
15826 <desc>Switch for enabling single-stepping.</desc>
15827 </attribute>
15828
15829 <attribute name="recompileUser" type="boolean">
15830 <desc>Switch for forcing code recompilation for user mode code.</desc>
15831 </attribute>
15832
15833 <attribute name="recompileSupervisor" type="boolean">
15834 <desc>Switch for forcing code recompilation for supervisor mode code.</desc>
15835 </attribute>
15836
15837 <attribute name="executeAllInIEM" type="boolean">
15838 <desc>
15839 Whether to execute all the code in the instruction interpreter. This
15840 is mainly for testing the interpreter and not an execution mode
15841 intended for general consumption.
15842 </desc>
15843 </attribute>
15844
15845 <attribute name="PATMEnabled" type="boolean">
15846 <desc>Switch for enabling and disabling the PATM component.</desc>
15847 </attribute>
15848
15849 <attribute name="CSAMEnabled" type="boolean">
15850 <desc>Switch for enabling and disabling the CSAM component.</desc>
15851 </attribute>
15852
15853 <attribute name="logEnabled" type="boolean">
15854 <desc>Switch for enabling and disabling the debug logger.</desc>
15855 </attribute>
15856
15857 <attribute name="logDbgFlags" type="wstring" readonly="yes">
15858 <desc>The debug logger flags.</desc>
15859 </attribute>
15860
15861 <attribute name="logDbgGroups" type="wstring" readonly="yes">
15862 <desc>The debug logger's group settings.</desc>
15863 </attribute>
15864
15865 <attribute name="logDbgDestinations" type="wstring" readonly="yes">
15866 <desc>The debug logger's destination settings.</desc>
15867 </attribute>
15868
15869 <attribute name="logRelFlags" type="wstring" readonly="yes">
15870 <desc>The release logger flags.</desc>
15871 </attribute>
15872
15873 <attribute name="logRelGroups" type="wstring" readonly="yes">
15874 <desc>The release logger's group settings.</desc>
15875 </attribute>
15876
15877 <attribute name="logRelDestinations" type="wstring" readonly="yes">
15878 <desc>The relase logger's destination settings.</desc>
15879 </attribute>
15880
15881 <attribute name="HWVirtExEnabled" type="boolean" readonly="yes">
15882 <desc>
15883 Flag indicating whether the VM is currently making use of CPU hardware
15884 virtualization extensions.
15885 </desc>
15886 </attribute>
15887
15888 <attribute name="HWVirtExNestedPagingEnabled" type="boolean" readonly="yes">
15889 <desc>
15890 Flag indicating whether the VM is currently making use of the nested paging
15891 CPU hardware virtualization extension.
15892 </desc>
15893 </attribute>
15894
15895 <attribute name="HWVirtExVPIDEnabled" type="boolean" readonly="yes">
15896 <desc>
15897 Flag indicating whether the VM is currently making use of the VPID
15898 VT-x extension.
15899 </desc>
15900 </attribute>
15901
15902 <attribute name="HWVirtExUXEnabled" type="boolean" readonly="yes">
15903 <desc>
15904 Flag indicating whether the VM is currently making use of the
15905 unrestricted execution feature of VT-x.
15906 </desc>
15907 </attribute>
15908
15909 <attribute name="OSName" type="wstring" readonly="yes">
15910 <desc>
15911 Query the guest OS kernel name as detected by the DBGF.
15912
15913 This feature is not implemented in the 4.0.0 release but may show up
15914 in a dot release.
15915 </desc>
15916 </attribute>
15917
15918 <attribute name="OSVersion" type="wstring" readonly="yes">
15919 <desc>
15920 Query the guest OS kernel version string as detected by the DBGF.
15921
15922 This feature is not implemented in the 4.0.0 release but may show up
15923 in a dot release.
15924 </desc>
15925 </attribute>
15926
15927 <attribute name="PAEEnabled" type="boolean" readonly="yes">
15928 <desc>
15929 Flag indicating whether the VM is currently making use of the Physical
15930 Address Extension CPU feature.
15931 </desc>
15932 </attribute>
15933
15934 <attribute name="virtualTimeRate" type="unsigned long">
15935 <desc>
15936 The rate at which the virtual time runs expressed as a percentage.
15937 The accepted range is 2% to 20000%.
15938 </desc>
15939 </attribute>
15940
15941 <attribute name="VM" type="long long" readonly="yes" wsmap="suppress">
15942 <desc>
15943 Gets the user-mode VM handle, with a reference. Must be passed to
15944 VMR3ReleaseUVM when done. This is only for internal use while we carve
15945 the details of this interface.
15946 </desc>
15947 </attribute>
15948
15949 </interface>
15950
15951 <!--
15952 // IUSBController
15953 /////////////////////////////////////////////////////////////////////////
15954 -->
15955
15956 <interface
15957 name="IUSBController" extends="$unknown"
15958 uuid="01e6f13a-0580-452f-a40f-74e32a5e4921"
15959 wsmap="managed"
15960 >
15961 <attribute name="enabled" type="boolean">
15962 <desc>
15963 Flag whether the USB controller is present in the
15964 guest system. If disabled, the virtual guest hardware will
15965 not contain any USB controller. Can only be changed when
15966 the VM is powered off.
15967 </desc>
15968 </attribute>
15969
15970 <attribute name="enabledEHCI" type="boolean">
15971 <desc>
15972 Flag whether the USB EHCI controller is present in the
15973 guest system. If disabled, the virtual guest hardware will
15974 not contain a USB EHCI controller. Can only be changed when
15975 the VM is powered off.
15976 </desc>
15977 </attribute>
15978
15979 <attribute name="proxyAvailable" type="boolean" readonly="yes">
15980 <desc>
15981 Flag whether there is an USB proxy available.
15982 </desc>
15983 </attribute>
15984
15985 <attribute name="USBStandard" type="unsigned short" readonly="yes">
15986 <desc>
15987 USB standard version which the controller implements.
15988 This is a BCD which means that the major version is in the
15989 high byte and minor version is in the low byte.
15990 </desc>
15991 </attribute>
15992
15993 <attribute name="deviceFilters" type="IUSBDeviceFilter" readonly="yes" safearray="yes">
15994 <desc>
15995 List of USB device filters associated with the machine.
15996
15997 If the machine is currently running, these filters are activated
15998 every time a new (supported) USB device is attached to the host
15999 computer that was not ignored by global filters
16000 (<link to="IHost::USBDeviceFilters"/>).
16001
16002 These filters are also activated when the machine is powered up.
16003 They are run against a list of all currently available USB
16004 devices (in states
16005 <link to="USBDeviceState_Available"/>,
16006 <link to="USBDeviceState_Busy"/>,
16007 <link to="USBDeviceState_Held"/>) that were not previously
16008 ignored by global filters.
16009
16010 If at least one filter matches the USB device in question, this
16011 device is automatically captured (attached to) the virtual USB
16012 controller of this machine.
16013
16014 <see><link to="IUSBDeviceFilter"/>, <link to="IUSBController"/></see>
16015 </desc>
16016 </attribute>
16017
16018 <method name="createDeviceFilter">
16019 <desc>
16020 Creates a new USB device filter. All attributes except
16021 the filter name are set to empty (any match),
16022 <i>active</i> is @c false (the filter is not active).
16023
16024 The created filter can then be added to the list of filters using
16025 <link to="#insertDeviceFilter"/>.
16026
16027 <result name="VBOX_E_INVALID_VM_STATE">
16028 The virtual machine is not mutable.
16029 </result>
16030
16031 <see><link to="#deviceFilters"/></see>
16032 </desc>
16033 <param name="name" type="wstring" dir="in">
16034 <desc>
16035 Filter name. See <link to="IUSBDeviceFilter::name"/>
16036 for more info.
16037 </desc>
16038 </param>
16039 <param name="filter" type="IUSBDeviceFilter" dir="return">
16040 <desc>Created filter object.</desc>
16041 </param>
16042 </method>
16043
16044 <method name="insertDeviceFilter">
16045 <desc>
16046 Inserts the given USB device to the specified position
16047 in the list of filters.
16048
16049 Positions are numbered starting from <tt>0</tt>. If the specified
16050 position is equal to or greater than the number of elements in
16051 the list, the filter is added to the end of the collection.
16052
16053 <note>
16054 Duplicates are not allowed, so an attempt to insert a
16055 filter that is already in the collection, will return an
16056 error.
16057 </note>
16058
16059 <result name="VBOX_E_INVALID_VM_STATE">
16060 Virtual machine is not mutable.
16061 </result>
16062 <result name="E_INVALIDARG">
16063 USB device filter not created within this VirtualBox instance.
16064 </result>
16065 <result name="VBOX_E_INVALID_OBJECT_STATE">
16066 USB device filter already in list.
16067 </result>
16068
16069 <see><link to="#deviceFilters"/></see>
16070 </desc>
16071 <param name="position" type="unsigned long" dir="in">
16072 <desc>Position to insert the filter to.</desc>
16073 </param>
16074 <param name="filter" type="IUSBDeviceFilter" dir="in">
16075 <desc>USB device filter to insert.</desc>
16076 </param>
16077 </method>
16078
16079 <method name="removeDeviceFilter">
16080 <desc>
16081 Removes a USB device filter from the specified position in the
16082 list of filters.
16083
16084 Positions are numbered starting from <tt>0</tt>. Specifying a
16085 position equal to or greater than the number of elements in
16086 the list will produce an error.
16087
16088 <see><link to="#deviceFilters"/></see>
16089
16090 <result name="VBOX_E_INVALID_VM_STATE">
16091 Virtual machine is not mutable.
16092 </result>
16093 <result name="E_INVALIDARG">
16094 USB device filter list empty or invalid @a position.
16095 </result>
16096
16097 </desc>
16098 <param name="position" type="unsigned long" dir="in">
16099 <desc>Position to remove the filter from.</desc>
16100 </param>
16101 <param name="filter" type="IUSBDeviceFilter" dir="return">
16102 <desc>Removed USB device filter.</desc>
16103 </param>
16104 </method>
16105
16106 </interface>
16107
16108
16109 <!--
16110 // IUSBDevice
16111 /////////////////////////////////////////////////////////////////////////
16112 -->
16113
16114 <interface
16115 name="IUSBDevice" extends="$unknown"
16116 uuid="f8967b0b-4483-400f-92b5-8b675d98a85b"
16117 wsmap="managed"
16118 >
16119 <desc>
16120 The IUSBDevice interface represents a virtual USB device attached to the
16121 virtual machine.
16122
16123 A collection of objects implementing this interface is stored in the
16124 <link to="IConsole::USBDevices"/> attribute which lists all USB devices
16125 attached to a running virtual machine's USB controller.
16126 </desc>
16127
16128 <attribute name="id" type="uuid" mod="string" readonly="yes">
16129 <desc>
16130 Unique USB device ID. This ID is built from #vendorId,
16131 #productId, #revision and #serialNumber.
16132 </desc>
16133 </attribute>
16134
16135 <attribute name="vendorId" type="unsigned short" readonly="yes">
16136 <desc>Vendor ID.</desc>
16137 </attribute>
16138
16139 <attribute name="productId" type="unsigned short" readonly="yes">
16140 <desc>Product ID.</desc>
16141 </attribute>
16142
16143 <attribute name="revision" type="unsigned short" readonly="yes">
16144 <desc>
16145 Product revision number. This is a packed BCD represented as
16146 unsigned short. The high byte is the integer part and the low
16147 byte is the decimal.
16148 </desc>
16149 </attribute>
16150
16151 <attribute name="manufacturer" type="wstring" readonly="yes">
16152 <desc>Manufacturer string.</desc>
16153 </attribute>
16154
16155 <attribute name="product" type="wstring" readonly="yes">
16156 <desc>Product string.</desc>
16157 </attribute>
16158
16159 <attribute name="serialNumber" type="wstring" readonly="yes">
16160 <desc>Serial number string.</desc>
16161 </attribute>
16162
16163 <attribute name="address" type="wstring" readonly="yes">
16164 <desc>Host specific address of the device.</desc>
16165 </attribute>
16166
16167 <attribute name="port" type="unsigned short" readonly="yes">
16168 <desc>
16169 Host USB port number the device is physically
16170 connected to.
16171 </desc>
16172 </attribute>
16173
16174 <attribute name="version" type="unsigned short" readonly="yes">
16175 <desc>
16176 The major USB version of the device - 1 or 2.
16177 </desc>
16178 </attribute>
16179
16180 <attribute name="portVersion" type="unsigned short" readonly="yes">
16181 <desc>
16182 The major USB version of the host USB port the device is
16183 physically connected to - 1 or 2. For devices not connected to
16184 anything this will have the same value as the version attribute.
16185 </desc>
16186 </attribute>
16187
16188 <attribute name="remote" type="boolean" readonly="yes">
16189 <desc>
16190 Whether the device is physically connected to a remote VRDE
16191 client or to a local host machine.
16192 </desc>
16193 </attribute>
16194
16195 </interface>
16196
16197
16198 <!--
16199 // IUSBDeviceFilter
16200 /////////////////////////////////////////////////////////////////////////
16201 -->
16202
16203 <interface
16204 name="IUSBDeviceFilter" extends="$unknown"
16205 uuid="d6831fb4-1a94-4c2c-96ef-8d0d6192066d"
16206 wsmap="managed"
16207 >
16208 <desc>
16209 The IUSBDeviceFilter interface represents an USB device filter used
16210 to perform actions on a group of USB devices.
16211
16212 This type of filters is used by running virtual machines to
16213 automatically capture selected USB devices once they are physically
16214 attached to the host computer.
16215
16216 A USB device is matched to the given device filter if and only if all
16217 attributes of the device match the corresponding attributes of the
16218 filter (that is, attributes are joined together using the logical AND
16219 operation). On the other hand, all together, filters in the list of
16220 filters carry the semantics of the logical OR operation. So if it is
16221 desirable to create a match like "this vendor id OR this product id",
16222 one needs to create two filters and specify "any match" (see below)
16223 for unused attributes.
16224
16225 All filter attributes used for matching are strings. Each string
16226 is an expression representing a set of values of the corresponding
16227 device attribute, that will match the given filter. Currently, the
16228 following filtering expressions are supported:
16229
16230 <ul>
16231 <li><i>Interval filters</i>. Used to specify valid intervals for
16232 integer device attributes (Vendor ID, Product ID and Revision).
16233 The format of the string is:
16234
16235 <tt>int:((m)|([m]-[n]))(,(m)|([m]-[n]))*</tt>
16236
16237 where <tt>m</tt> and <tt>n</tt> are integer numbers, either in octal
16238 (starting from <tt>0</tt>), hexadecimal (starting from <tt>0x</tt>)
16239 or decimal (otherwise) form, so that <tt>m &lt; n</tt>. If <tt>m</tt>
16240 is omitted before a dash (<tt>-</tt>), the minimum possible integer
16241 is assumed; if <tt>n</tt> is omitted after a dash, the maximum
16242 possible integer is assumed.
16243 </li>
16244 <li><i>Boolean filters</i>. Used to specify acceptable values for
16245 boolean device attributes. The format of the string is:
16246
16247 <tt>true|false|yes|no|0|1</tt>
16248
16249 </li>
16250 <li><i>Exact match</i>. Used to specify a single value for the given
16251 device attribute. Any string that doesn't start with <tt>int:</tt>
16252 represents the exact match. String device attributes are compared to
16253 this string including case of symbols. Integer attributes are first
16254 converted to a string (see individual filter attributes) and then
16255 compared ignoring case.
16256
16257 </li>
16258 <li><i>Any match</i>. Any value of the corresponding device attribute
16259 will match the given filter. An empty or @c null string is
16260 used to construct this type of filtering expressions.
16261
16262 </li>
16263 </ul>
16264
16265 <note>
16266 On the Windows host platform, interval filters are not currently
16267 available. Also all string filter attributes
16268 (<link to="#manufacturer"/>, <link to="#product"/>,
16269 <link to="#serialNumber"/>) are ignored, so they behave as
16270 <i>any match</i> no matter what string expression is specified.
16271 </note>
16272
16273 <see><link to="IUSBController::deviceFilters"/>,
16274 <link to="IHostUSBDeviceFilter"/></see>
16275 </desc>
16276
16277 <attribute name="name" type="wstring">
16278 <desc>
16279 Visible name for this filter.
16280 This name is used to visually distinguish one filter from another,
16281 so it can neither be @c null nor an empty string.
16282 </desc>
16283 </attribute>
16284
16285 <attribute name="active" type="boolean">
16286 <desc>Whether this filter active or has been temporarily disabled.</desc>
16287 </attribute>
16288
16289 <attribute name="vendorId" type="wstring">
16290 <desc>
16291 <link to="IUSBDevice::vendorId">Vendor ID</link> filter.
16292 The string representation for the <i>exact matching</i>
16293 has the form <tt>XXXX</tt>, where <tt>X</tt> is the hex digit
16294 (including leading zeroes).
16295 </desc>
16296 </attribute>
16297
16298 <attribute name="productId" type="wstring">
16299 <desc>
16300 <link to="IUSBDevice::productId">Product ID</link> filter.
16301 The string representation for the <i>exact matching</i>
16302 has the form <tt>XXXX</tt>, where <tt>X</tt> is the hex digit
16303 (including leading zeroes).
16304 </desc>
16305 </attribute>
16306
16307 <attribute name="revision" type="wstring">
16308 <desc>
16309 <link to="IUSBDevice::productId">Product revision number</link>
16310 filter. The string representation for the <i>exact matching</i>
16311 has the form <tt>IIFF</tt>, where <tt>I</tt> is the decimal digit
16312 of the integer part of the revision, and <tt>F</tt> is the
16313 decimal digit of its fractional part (including leading and
16314 trailing zeros).
16315 Note that for interval filters, it's best to use the hexadecimal
16316 form, because the revision is stored as a 16 bit packed BCD value;
16317 so the expression <tt>int:0x0100-0x0199</tt> will match any
16318 revision from <tt>1.0</tt> to <tt>1.99</tt>.
16319 </desc>
16320 </attribute>
16321
16322 <attribute name="manufacturer" type="wstring">
16323 <desc>
16324 <link to="IUSBDevice::manufacturer">Manufacturer</link> filter.
16325 </desc>
16326 </attribute>
16327
16328 <attribute name="product" type="wstring">
16329 <desc>
16330 <link to="IUSBDevice::product">Product</link> filter.
16331 </desc>
16332 </attribute>
16333
16334 <attribute name="serialNumber" type="wstring">
16335 <desc>
16336 <link to="IUSBDevice::serialNumber">Serial number</link> filter.
16337 </desc>
16338 </attribute>
16339
16340 <attribute name="port" type="wstring">
16341 <desc>
16342 <link to="IUSBDevice::port">Host USB port</link> filter.
16343 </desc>
16344 </attribute>
16345
16346 <attribute name="remote" type="wstring">
16347 <desc>
16348 <link to="IUSBDevice::remote">Remote state</link> filter.
16349 <note>
16350 This filter makes sense only for machine USB filters,
16351 i.e. it is ignored by IHostUSBDeviceFilter objects.
16352 </note>
16353 </desc>
16354 </attribute>
16355
16356 <attribute name="maskedInterfaces" type="unsigned long">
16357 <desc>
16358 This is an advanced option for hiding one or more USB interfaces
16359 from the guest. The value is a bit mask where the bits that are set
16360 means the corresponding USB interface should be hidden, masked off
16361 if you like.
16362 This feature only works on Linux hosts.
16363 </desc>
16364 </attribute>
16365
16366 </interface>
16367
16368
16369 <!--
16370 // IHostUSBDevice
16371 /////////////////////////////////////////////////////////////////////////
16372 -->
16373
16374 <enum
16375 name="USBDeviceState"
16376 uuid="b99a2e65-67fb-4882-82fd-f3e5e8193ab4"
16377 >
16378 <desc>
16379 USB device state. This enumeration represents all possible states
16380 of the USB device physically attached to the host computer regarding
16381 its state on the host computer and availability to guest computers
16382 (all currently running virtual machines).
16383
16384 Once a supported USB device is attached to the host, global USB
16385 filters (<link to="IHost::USBDeviceFilters"/>) are activated. They can
16386 either ignore the device, or put it to USBDeviceState_Held state, or do
16387 nothing. Unless the device is ignored by global filters, filters of all
16388 currently running guests (<link to="IUSBController::deviceFilters"/>) are
16389 activated that can put it to USBDeviceState_Captured state.
16390
16391 If the device was ignored by global filters, or didn't match
16392 any filters at all (including guest ones), it is handled by the host
16393 in a normal way. In this case, the device state is determined by
16394 the host and can be one of USBDeviceState_Unavailable, USBDeviceState_Busy
16395 or USBDeviceState_Available, depending on the current device usage.
16396
16397 Besides auto-capturing based on filters, the device can be manually
16398 captured by guests (<link to="IConsole::attachUSBDevice"/>) if its
16399 state is USBDeviceState_Busy, USBDeviceState_Available or
16400 USBDeviceState_Held.
16401
16402 <note>
16403 Due to differences in USB stack implementations in Linux and Win32,
16404 states USBDeviceState_Busy and USBDeviceState_Unavailable are applicable
16405 only to the Linux version of the product. This also means that (<link
16406 to="IConsole::attachUSBDevice"/>) can only succeed on Win32 if the
16407 device state is USBDeviceState_Held.
16408 </note>
16409
16410 <see><link to="IHostUSBDevice"/>, <link to="IHostUSBDeviceFilter"/></see>
16411 </desc>
16412
16413 <const name="NotSupported" value="0">
16414 <desc>
16415 Not supported by the VirtualBox server, not available to guests.
16416 </desc>
16417 </const>
16418 <const name="Unavailable" value="1">
16419 <desc>
16420 Being used by the host computer exclusively,
16421 not available to guests.
16422 </desc>
16423 </const>
16424 <const name="Busy" value="2">
16425 <desc>
16426 Being used by the host computer, potentially available to guests.
16427 </desc>
16428 </const>
16429 <const name="Available" value="3">
16430 <desc>
16431 Not used by the host computer, available to guests (the host computer
16432 can also start using the device at any time).
16433 </desc>
16434 </const>
16435 <const name="Held" value="4">
16436 <desc>
16437 Held by the VirtualBox server (ignored by the host computer),
16438 available to guests.
16439 </desc>
16440 </const>
16441 <const name="Captured" value="5">
16442 <desc>
16443 Captured by one of the guest computers, not available
16444 to anybody else.
16445 </desc>
16446 </const>
16447 </enum>
16448
16449 <interface
16450 name="IHostUSBDevice" extends="IUSBDevice"
16451 uuid="173b4b44-d268-4334-a00d-b6521c9a740a"
16452 wsmap="managed"
16453 >
16454 <desc>
16455 The IHostUSBDevice interface represents a physical USB device attached
16456 to the host computer.
16457
16458 Besides properties inherited from IUSBDevice, this interface adds the
16459 <link to="#state"/> property that holds the current state of the USB
16460 device.
16461
16462 <see><link to="IHost::USBDevices"/>,
16463 <link to="IHost::USBDeviceFilters"/></see>
16464 </desc>
16465
16466 <attribute name="state" type="USBDeviceState" readonly="yes">
16467 <desc>
16468 Current state of the device.
16469 </desc>
16470 </attribute>
16471
16472 <!-- @todo add class, subclass, bandwidth, configs, interfaces endpoints and such later. -->
16473
16474 </interface>
16475
16476
16477 <!--
16478 // IHostUSBDeviceFilter
16479 /////////////////////////////////////////////////////////////////////////
16480 -->
16481
16482 <enum
16483 name="USBDeviceFilterAction"
16484 uuid="cbc30a49-2f4e-43b5-9da6-121320475933"
16485 >
16486 <desc>
16487 Actions for host USB device filters.
16488 <see><link to="IHostUSBDeviceFilter"/>, <link to="USBDeviceState"/></see>
16489 </desc>
16490
16491 <const name="Null" value="0">
16492 <desc>Null value (never used by the API).</desc>
16493 </const>
16494 <const name="Ignore" value="1">
16495 <desc>Ignore the matched USB device.</desc>
16496 </const>
16497 <const name="Hold" value="2">
16498 <desc>Hold the matched USB device.</desc>
16499 </const>
16500 </enum>
16501
16502 <interface
16503 name="IHostUSBDeviceFilter" extends="IUSBDeviceFilter"
16504 uuid="4cc70246-d74a-400f-8222-3900489c0374"
16505 wsmap="managed"
16506 >
16507 <desc>
16508 The IHostUSBDeviceFilter interface represents a global filter for a
16509 physical USB device used by the host computer. Used indirectly in
16510 <link to="IHost::USBDeviceFilters"/>.
16511
16512 Using filters of this type, the host computer determines the initial
16513 state of the USB device after it is physically attached to the
16514 host's USB controller.
16515
16516 <note>
16517 The <link to="IUSBDeviceFilter::remote"/> attribute is ignored by this type of
16518 filters, because it makes sense only for
16519 <link to="IUSBController::deviceFilters">machine USB filters</link>.
16520 </note>
16521
16522 <see><link to="IHost::USBDeviceFilters"/></see>
16523 </desc>
16524
16525 <attribute name="action" type="USBDeviceFilterAction">
16526 <desc>
16527 Action performed by the host when an attached USB device
16528 matches this filter.
16529 </desc>
16530 </attribute>
16531
16532 </interface>
16533
16534 <!--
16535 // IAudioAdapter
16536 /////////////////////////////////////////////////////////////////////////
16537 -->
16538
16539 <enum
16540 name="AudioDriverType"
16541 uuid="4bcc3d73-c2fe-40db-b72f-0c2ca9d68496"
16542 >
16543 <desc>
16544 Host audio driver type.
16545 </desc>
16546
16547 <const name="Null" value="0">
16548 <desc>Null value, also means "dummy audio driver".</desc>
16549 </const>
16550 <const name="WinMM" value="1">
16551 <desc>Windows multimedia (Windows hosts only).</desc>
16552 </const>
16553 <const name="OSS" value="2">
16554 <desc>Open Sound System (Linux hosts only).</desc>
16555 </const>
16556 <const name="ALSA" value="3">
16557 <desc>Advanced Linux Sound Architecture (Linux hosts only).</desc>
16558 </const>
16559 <const name="DirectSound" value="4">
16560 <desc>DirectSound (Windows hosts only).</desc>
16561 </const>
16562 <const name="CoreAudio" value="5">
16563 <desc>CoreAudio (Mac hosts only).</desc>
16564 </const>
16565 <const name="MMPM" value="6">
16566 <desc>Reserved for historical reasons.</desc>
16567 </const>
16568 <const name="Pulse" value="7">
16569 <desc>PulseAudio (Linux hosts only).</desc>
16570 </const>
16571 <const name="SolAudio" value="8">
16572 <desc>Solaris audio (Solaris hosts only).</desc>
16573 </const>
16574 </enum>
16575
16576 <enum
16577 name="AudioControllerType"
16578 uuid="7afd395c-42c3-444e-8788-3ce80292f36c"
16579 >
16580 <desc>
16581 Virtual audio controller type.
16582 </desc>
16583
16584 <const name="AC97" value="0"/>
16585 <const name="SB16" value="1"/>
16586 <const name="HDA" value="2"/>
16587 </enum>
16588
16589 <interface
16590 name="IAudioAdapter" extends="$unknown"
16591 uuid="921873db-5f3f-4b69-91f9-7be9e535a2cb"
16592 wsmap="managed"
16593 >
16594 <desc>
16595 The IAudioAdapter interface represents the virtual audio adapter of
16596 the virtual machine. Used in <link to="IMachine::audioAdapter"/>.
16597 </desc>
16598 <attribute name="enabled" type="boolean">
16599 <desc>
16600 Flag whether the audio adapter is present in the
16601 guest system. If disabled, the virtual guest hardware will
16602 not contain any audio adapter. Can only be changed when
16603 the VM is not running.
16604 </desc>
16605 </attribute>
16606 <attribute name="audioController" type="AudioControllerType">
16607 <desc>
16608 The audio hardware we emulate.
16609 </desc>
16610 </attribute>
16611 <attribute name="audioDriver" type="AudioDriverType">
16612 <desc>
16613 Audio driver the adapter is connected to. This setting
16614 can only be changed when the VM is not running.
16615 </desc>
16616 </attribute>
16617 </interface>
16618
16619 <enum
16620 name="AuthType"
16621 uuid="7eef6ef6-98c2-4dc2-ab35-10d2b292028d"
16622 >
16623 <desc>
16624 VirtualBox authentication type.
16625 </desc>
16626
16627 <const name="Null" value="0">
16628 <desc>Null value, also means "no authentication".</desc>
16629 </const>
16630 <const name="External" value="1"/>
16631 <const name="Guest" value="2"/>
16632 </enum>
16633
16634 <!--
16635 // IVRDEServer
16636 /////////////////////////////////////////////////////////////////////////
16637 -->
16638
16639 <interface
16640 name="IVRDEServer" extends="$unknown"
16641 uuid="d38de40a-c2c1-4e95-b5a4-167b05f5694c"
16642 wsmap="managed"
16643 >
16644
16645 <attribute name="enabled" type="boolean">
16646 <desc>Flag if VRDE server is enabled.</desc>
16647 </attribute>
16648
16649 <attribute name="authType" type="AuthType">
16650 <desc>VRDE authentication method.</desc>
16651 </attribute>
16652
16653 <attribute name="authTimeout" type="unsigned long">
16654 <desc>Timeout for guest authentication. Milliseconds.</desc>
16655 </attribute>
16656
16657 <attribute name="allowMultiConnection" type="boolean">
16658 <desc>
16659 Flag whether multiple simultaneous connections to the VM are permitted.
16660 Note that this will be replaced by a more powerful mechanism in the future.
16661 </desc>
16662 </attribute>
16663
16664 <attribute name="reuseSingleConnection" type="boolean">
16665 <desc>
16666 Flag whether the existing connection must be dropped and a new connection
16667 must be established by the VRDE server, when a new client connects in single
16668 connection mode.
16669 </desc>
16670 </attribute>
16671
16672 <attribute name="VRDEExtPack" type="wstring">
16673 <desc>
16674 The name of Extension Pack providing VRDE for this VM. Overrides
16675 <link to="ISystemProperties::defaultVRDEExtPack"/>.
16676 </desc>
16677 </attribute>
16678
16679 <attribute name="authLibrary" type="wstring">
16680 <desc>
16681 Library used for authentication of RDP clients by this VM. Overrides
16682 <link to="ISystemProperties::VRDEAuthLibrary"/>.
16683 </desc>
16684 </attribute>
16685
16686 <attribute name="VRDEProperties" type="wstring" readonly="yes" safearray="yes">
16687 <desc>
16688 Array of names of properties, which are supported by this VRDE server.
16689 </desc>
16690 </attribute>
16691
16692 <method name="setVRDEProperty">
16693 <desc>
16694 Sets a VRDE specific property string.
16695
16696 If you pass @c null or empty string as a key @a value, the given @a key
16697 will be deleted.
16698
16699 </desc>
16700 <param name="key" type="wstring" dir="in">
16701 <desc>Name of the key to set.</desc>
16702 </param>
16703 <param name="value" type="wstring" dir="in">
16704 <desc>Value to assign to the key.</desc>
16705 </param>
16706 </method>
16707
16708 <method name="getVRDEProperty" const="yes">
16709 <desc>
16710 Returns a VRDE specific property string.
16711
16712 If the requested data @a key does not exist, this function will
16713 succeed and return an empty string in the @a value argument.
16714
16715 </desc>
16716 <param name="key" type="wstring" dir="in">
16717 <desc>Name of the key to get.</desc>
16718 </param>
16719 <param name="value" type="wstring" dir="return">
16720 <desc>Value of the requested key.</desc>
16721 </param>
16722 </method>
16723
16724 </interface>
16725
16726
16727 <!--
16728 // ISharedFolder
16729 /////////////////////////////////////////////////////////////////////////
16730 -->
16731
16732 <interface
16733 name="ISharedFolder" extends="$unknown"
16734 uuid="8388da11-b559-4574-a5b7-2bd7acd5cef8"
16735 wsmap="struct"
16736 >
16737 <desc>
16738 The ISharedFolder interface represents a folder in the host computer's
16739 file system accessible from the guest OS running inside a virtual
16740 machine using an associated logical name.
16741
16742 There are three types of shared folders:
16743 <ul>
16744 <li><i>Global</i> (<link to="IVirtualBox::sharedFolders"/>), shared
16745 folders available to all virtual machines.</li>
16746 <li><i>Permanent</i> (<link to="IMachine::sharedFolders"/>),
16747 VM-specific shared folders available to the given virtual machine at
16748 startup.</li>
16749 <li><i>Transient</i> (<link to="IConsole::sharedFolders"/>),
16750 VM-specific shared folders created in the session context (for
16751 example, when the virtual machine is running) and automatically
16752 discarded when the session is closed (the VM is powered off).</li>
16753 </ul>
16754
16755 Logical names of shared folders must be unique within the given scope
16756 (global, permanent or transient). However, they do not need to be unique
16757 across scopes. In this case, the definition of the shared folder in a
16758 more specific scope takes precedence over definitions in all other
16759 scopes. The order of precedence is (more specific to more general):
16760 <ol>
16761 <li>Transient definitions</li>
16762 <li>Permanent definitions</li>
16763 <li>Global definitions</li>
16764 </ol>
16765
16766 For example, if MyMachine has a shared folder named
16767 <tt>C_DRIVE</tt> (that points to <tt>C:\\</tt>), then creating a
16768 transient shared folder named <tt>C_DRIVE</tt> (that points
16769 to <tt>C:\\\\WINDOWS</tt>) will change the definition
16770 of <tt>C_DRIVE</tt> in the guest OS so
16771 that <tt>\\\\VBOXSVR\\C_DRIVE</tt> will give access
16772 to <tt>C:\\WINDOWS</tt> instead of <tt>C:\\</tt> on the host
16773 PC. Removing the transient shared folder <tt>C_DRIVE</tt> will restore
16774 the previous (permanent) definition of <tt>C_DRIVE</tt> that points
16775 to <tt>C:\\</tt> if it still exists.
16776
16777 Note that permanent and transient shared folders of different machines
16778 are in different name spaces, so they don't overlap and don't need to
16779 have unique logical names.
16780
16781 <note>
16782 Global shared folders are not implemented in the current version of the
16783 product.
16784 </note>
16785 </desc>
16786
16787 <attribute name="name" type="wstring" readonly="yes">
16788 <desc>Logical name of the shared folder.</desc>
16789 </attribute>
16790
16791 <attribute name="hostPath" type="wstring" readonly="yes">
16792 <desc>Full path to the shared folder in the host file system.</desc>
16793 </attribute>
16794
16795 <attribute name="accessible" type="boolean" readonly="yes">
16796 <desc>
16797 Whether the folder defined by the host path is currently
16798 accessible or not.
16799 For example, the folder can be inaccessible if it is placed
16800 on the network share that is not available by the time
16801 this property is read.
16802 </desc>
16803 </attribute>
16804
16805 <attribute name="writable" type="boolean" readonly="yes">
16806 <desc>
16807 Whether the folder defined by the host path is writable or
16808 not.
16809 </desc>
16810 </attribute>
16811
16812 <attribute name="autoMount" type="boolean" readonly="yes">
16813 <desc>
16814 Whether the folder gets automatically mounted by the guest or not.
16815 </desc>
16816 </attribute>
16817
16818 <attribute name="lastAccessError" type="wstring" readonly="yes">
16819 <desc>
16820 Text message that represents the result of the last accessibility
16821 check.
16822
16823 Accessibility checks are performed each time the <link to="#accessible"/>
16824 attribute is read. An empty string is returned if the last
16825 accessibility check was successful. A non-empty string indicates a
16826 failure and should normally describe a reason of the failure (for
16827 example, a file read error).
16828 </desc>
16829 </attribute>
16830
16831 </interface>
16832
16833 <!--
16834 // ISession
16835 /////////////////////////////////////////////////////////////////////////
16836 -->
16837
16838 <interface
16839 name="IInternalSessionControl" extends="$unknown"
16840 uuid="0ba8d8b3-204b-448e-99c2-242eaa666ea8"
16841 internal="yes"
16842 wsmap="suppress"
16843 >
16844 <method name="getPID">
16845 <desc>PID of the process that has created this Session object.
16846 </desc>
16847 <param name="pid" type="unsigned long" dir="return"/>
16848 </method>
16849
16850 <method name="getRemoteConsole">
16851 <desc>
16852 Returns the console object suitable for remote control.
16853
16854 <result name="VBOX_E_INVALID_VM_STATE">
16855 Session state prevents operation.
16856 </result>
16857 <result name="VBOX_E_INVALID_OBJECT_STATE">
16858 Session type prevents operation.
16859 </result>
16860
16861 </desc>
16862 <param name="console" type="IConsole" dir="return"/>
16863 </method>
16864
16865 <method name="assignMachine">
16866 <desc>
16867 Assigns the machine object associated with this direct-type
16868 session or informs the session that it will be a remote one
16869 (if @a machine == @c null).
16870
16871 <result name="VBOX_E_INVALID_VM_STATE">
16872 Session state prevents operation.
16873 </result>
16874 <result name="VBOX_E_INVALID_OBJECT_STATE">
16875 Session type prevents operation.
16876 </result>
16877
16878 </desc>
16879 <param name="machine" type="IMachine" dir="in"/>
16880 <param name="lockType" type="LockType" dir="in"/>
16881 </method>
16882
16883 <method name="assignRemoteMachine">
16884 <desc>
16885 Assigns the machine and the (remote) console object associated with
16886 this remote-type session.
16887
16888 <result name="VBOX_E_INVALID_VM_STATE">
16889 Session state prevents operation.
16890 </result>
16891
16892 </desc>
16893 <param name="machine" type="IMachine" dir="in"/>
16894 <param name="console" type="IConsole" dir="in"/>
16895 </method>
16896
16897 <method name="updateMachineState">
16898 <desc>
16899 Updates the machine state in the VM process.
16900 Must be called only in certain cases
16901 (see the method implementation).
16902
16903 <result name="VBOX_E_INVALID_VM_STATE">
16904 Session state prevents operation.
16905 </result>
16906 <result name="VBOX_E_INVALID_OBJECT_STATE">
16907 Session type prevents operation.
16908 </result>
16909
16910 </desc>
16911 <param name="machineState" type="MachineState" dir="in"/>
16912 </method>
16913
16914 <method name="uninitialize">
16915 <desc>
16916 Uninitializes (closes) this session. Used by VirtualBox to close
16917 the corresponding remote session when the direct session dies
16918 or gets closed.
16919
16920 <result name="VBOX_E_INVALID_VM_STATE">
16921 Session state prevents operation.
16922 </result>
16923
16924 </desc>
16925 </method>
16926
16927 <method name="onNetworkAdapterChange">
16928 <desc>
16929 Triggered when settings of a network adapter of the
16930 associated virtual machine have changed.
16931
16932 <result name="VBOX_E_INVALID_VM_STATE">
16933 Session state prevents operation.
16934 </result>
16935 <result name="VBOX_E_INVALID_OBJECT_STATE">
16936 Session type prevents operation.
16937 </result>
16938
16939 </desc>
16940 <param name="networkAdapter" type="INetworkAdapter" dir="in"/>
16941 <param name="changeAdapter" type="boolean" dir="in"/>
16942 </method>
16943
16944 <method name="onSerialPortChange">
16945 <desc>
16946 Triggered when settings of a serial port of the
16947 associated virtual machine have changed.
16948
16949 <result name="VBOX_E_INVALID_VM_STATE">
16950 Session state prevents operation.
16951 </result>
16952 <result name="VBOX_E_INVALID_OBJECT_STATE">
16953 Session type prevents operation.
16954 </result>
16955
16956 </desc>
16957 <param name="serialPort" type="ISerialPort" dir="in"/>
16958 </method>
16959
16960 <method name="onParallelPortChange">
16961 <desc>
16962 Triggered when settings of a parallel port of the
16963 associated virtual machine have changed.
16964
16965 <result name="VBOX_E_INVALID_VM_STATE">
16966 Session state prevents operation.
16967 </result>
16968 <result name="VBOX_E_INVALID_OBJECT_STATE">
16969 Session type prevents operation.
16970 </result>
16971
16972 </desc>
16973 <param name="parallelPort" type="IParallelPort" dir="in"/>
16974 </method>
16975
16976 <method name="onStorageControllerChange">
16977 <desc>
16978 Triggered when settings of a storage controller of the
16979 associated virtual machine have changed.
16980
16981 <result name="VBOX_E_INVALID_VM_STATE">
16982 Session state prevents operation.
16983 </result>
16984 <result name="VBOX_E_INVALID_OBJECT_STATE">
16985 Session type prevents operation.
16986 </result>
16987
16988 </desc>
16989 </method>
16990
16991 <method name="onMediumChange">
16992 <desc>
16993 Triggered when attached media of the
16994 associated virtual machine have changed.
16995
16996 <result name="VBOX_E_INVALID_VM_STATE">
16997 Session state prevents operation.
16998 </result>
16999 <result name="VBOX_E_INVALID_OBJECT_STATE">
17000 Session type prevents operation.
17001 </result>
17002
17003 </desc>
17004
17005 <param name="mediumAttachment" type="IMediumAttachment" dir="in">
17006 <desc>The medium attachment which changed.</desc>
17007 </param>
17008 <param name="force" type="boolean" dir="in">
17009 <desc>If the medium change was forced.</desc>
17010 </param>
17011 </method>
17012
17013 <method name="onStorageDeviceChange">
17014 <desc>
17015 Triggered when attached storage devices of the
17016 associated virtual machine have changed.
17017
17018 <result name="VBOX_E_INVALID_VM_STATE">
17019 Session state prevents operation.
17020 </result>
17021 <result name="VBOX_E_INVALID_OBJECT_STATE">
17022 Session type prevents operation.
17023 </result>
17024
17025 </desc>
17026
17027 <param name="mediumAttachment" type="IMediumAttachment" dir="in">
17028 <desc>The medium attachment which changed.</desc>
17029 </param>
17030 <param name="remove" type="boolean" dir="in">
17031 <desc>TRUE if the device is removed, FALSE if it was added.</desc>
17032 </param>
17033 <param name="silent" type="boolean" dir="in">
17034 <desc>TRUE if the device is is silently reconfigured without
17035 notifying the guest about it.</desc>
17036 </param>
17037 </method>
17038
17039 <method name="onClipboardModeChange">
17040 <desc>
17041 Notification when the shared clipboard mode changes.
17042 </desc>
17043 <param name="clipboardMode" type="ClipboardMode" dir="in">
17044 <desc>The new shared clipboard mode.</desc>
17045 </param>
17046 </method>
17047
17048 <method name="onDragAndDropModeChange">
17049 <desc>
17050 Notification when the drag'n'drop mode changes.
17051 </desc>
17052 <param name="dragAndDropMode" type="DragAndDropMode" dir="in">
17053 <desc>The new mode for drag'n'drop.</desc>
17054 </param>
17055 </method>
17056
17057 <method name="onCPUChange">
17058 <desc>
17059 Notification when a CPU changes.
17060 </desc>
17061 <param name="cpu" type="unsigned long" dir="in">
17062 <desc>The CPU which changed</desc>
17063 </param>
17064 <param name="add" type="boolean" dir="in">
17065 <desc>Flag whether the CPU was added or removed</desc>
17066 </param>
17067 </method>
17068
17069 <method name="onCPUExecutionCapChange">
17070 <desc>
17071 Notification when the CPU execution cap changes.
17072 </desc>
17073 <param name="executionCap" type="unsigned long" dir="in">
17074 <desc>The new CPU execution cap value. (1-100)</desc>
17075 </param>
17076 </method>
17077
17078 <method name="onVRDEServerChange">
17079 <desc>
17080 Triggered when settings of the VRDE server object of the
17081 associated virtual machine have changed.
17082
17083 <result name="VBOX_E_INVALID_VM_STATE">
17084 Session state prevents operation.
17085 </result>
17086 <result name="VBOX_E_INVALID_OBJECT_STATE">
17087 Session type prevents operation.
17088 </result>
17089
17090 </desc>
17091 <param name="restart" type="boolean" dir="in">
17092 <desc>Flag whether the server must be restarted</desc>
17093 </param>
17094 </method>
17095
17096 <method name="onVideoCaptureChange">
17097 <desc>
17098 Triggered when video capture settings have changed.
17099 </desc>
17100 </method>
17101
17102 <method name="onUSBControllerChange">
17103 <desc>
17104 Triggered when settings of the USB controller object of the
17105 associated virtual machine have changed.
17106
17107 <result name="VBOX_E_INVALID_VM_STATE">
17108 Session state prevents operation.
17109 </result>
17110 <result name="VBOX_E_INVALID_OBJECT_STATE">
17111 Session type prevents operation.
17112 </result>
17113
17114 </desc>
17115 </method>
17116
17117 <method name="onSharedFolderChange">
17118 <desc>
17119 Triggered when a permanent (global or machine) shared folder has been
17120 created or removed.
17121 <note>
17122 We don't pass shared folder parameters in this notification because
17123 the order in which parallel notifications are delivered is not defined,
17124 therefore it could happen that these parameters were outdated by the
17125 time of processing this notification.
17126 </note>
17127
17128 <result name="VBOX_E_INVALID_VM_STATE">
17129 Session state prevents operation.
17130 </result>
17131 <result name="VBOX_E_INVALID_OBJECT_STATE">
17132 Session type prevents operation.
17133 </result>
17134
17135 </desc>
17136 <param name="global" type="boolean" dir="in"/>
17137 </method>
17138
17139 <method name="onUSBDeviceAttach">
17140 <desc>
17141 Triggered when a request to capture a USB device (as a result
17142 of matched USB filters or direct call to
17143 <link to="IConsole::attachUSBDevice"/>) has completed.
17144 A @c null @a error object means success, otherwise it
17145 describes a failure.
17146
17147 <result name="VBOX_E_INVALID_VM_STATE">
17148 Session state prevents operation.
17149 </result>
17150 <result name="VBOX_E_INVALID_OBJECT_STATE">
17151 Session type prevents operation.
17152 </result>
17153
17154 </desc>
17155 <param name="device" type="IUSBDevice" dir="in"/>
17156 <param name="error" type="IVirtualBoxErrorInfo" dir="in"/>
17157 <param name="maskedInterfaces" type="unsigned long" dir="in"/>
17158 </method>
17159
17160 <method name="onUSBDeviceDetach">
17161 <desc>
17162 Triggered when a request to release the USB device (as a result
17163 of machine termination or direct call to
17164 <link to="IConsole::detachUSBDevice"/>) has completed.
17165 A @c null @a error object means success, otherwise it
17166 describes a failure.
17167
17168 <result name="VBOX_E_INVALID_VM_STATE">
17169 Session state prevents operation.
17170 </result>
17171 <result name="VBOX_E_INVALID_OBJECT_STATE">
17172 Session type prevents operation.
17173 </result>
17174
17175 </desc>
17176 <param name="id" type="uuid" mod="string" dir="in"/>
17177 <param name="error" type="IVirtualBoxErrorInfo" dir="in"/>
17178 </method>
17179
17180 <method name="onShowWindow">
17181 <desc>
17182 Called by <link to="IMachine::canShowConsoleWindow"/> and by
17183 <link to="IMachine::showConsoleWindow"/> in order to notify
17184 console listeners
17185 <link to="ICanShowWindowEvent"/>
17186 and <link to="IShowWindowEvent"/>.
17187
17188 <result name="VBOX_E_INVALID_OBJECT_STATE">
17189 Session type prevents operation.
17190 </result>
17191
17192 </desc>
17193 <param name="check" type="boolean" dir="in"/>
17194 <param name="canShow" type="boolean" dir="out"/>
17195 <param name="winId" type="long long" dir="out"/>
17196 </method>
17197
17198 <method name="onBandwidthGroupChange">
17199 <desc>
17200 Notification when one of the bandwidth groups change.
17201 </desc>
17202 <param name="bandwidthGroup" type="IBandwidthGroup" dir="in">
17203 <desc>The bandwidth group which changed.</desc>
17204 </param>
17205 </method>
17206
17207 <method name="accessGuestProperty">
17208 <desc>
17209 Called by <link to="IMachine::getGuestProperty"/> and by
17210 <link to="IMachine::setGuestProperty"/> in order to read and
17211 modify guest properties.
17212
17213 <result name="VBOX_E_INVALID_VM_STATE">
17214 Machine session is not open.
17215 </result>
17216 <result name="VBOX_E_INVALID_OBJECT_STATE">
17217 Session type is not direct.
17218 </result>
17219
17220 </desc>
17221 <param name="name" type="wstring" dir="in"/>
17222 <param name="value" type="wstring" dir="in"/>
17223 <param name="flags" type="wstring" dir="in"/>
17224 <param name="isSetter" type="boolean" dir="in"/>
17225 <param name="retValue" type="wstring" dir="out"/>
17226 <param name="retTimestamp" type="long long" dir="out"/>
17227 <param name="retFlags" type="wstring" dir="out"/>
17228 </method>
17229
17230 <method name="enumerateGuestProperties" const="yes">
17231 <desc>
17232 Return a list of the guest properties matching a set of patterns along
17233 with their values, time stamps and flags.
17234
17235 <result name="VBOX_E_INVALID_VM_STATE">
17236 Machine session is not open.
17237 </result>
17238 <result name="VBOX_E_INVALID_OBJECT_STATE">
17239 Session type is not direct.
17240 </result>
17241
17242 </desc>
17243 <param name="patterns" type="wstring" dir="in">
17244 <desc>
17245 The patterns to match the properties against as a comma-separated
17246 string. If this is empty, all properties currently set will be
17247 returned.
17248 </desc>
17249 </param>
17250 <param name="keys" type="wstring" dir="out" safearray="yes">
17251 <desc>
17252 The key names of the properties returned.
17253 </desc>
17254 </param>
17255 <param name="values" type="wstring" dir="out" safearray="yes">
17256 <desc>
17257 The values of the properties returned. The array entries match the
17258 corresponding entries in the @a key array.
17259 </desc>
17260 </param>
17261 <param name="timestamps" type="long long" dir="out" safearray="yes">
17262 <desc>
17263 The time stamps of the properties returned. The array entries match
17264 the corresponding entries in the @a key array.
17265 </desc>
17266 </param>
17267 <param name="flags" type="wstring" dir="out" safearray="yes">
17268 <desc>
17269 The flags of the properties returned. The array entries match the
17270 corresponding entries in the @a key array.
17271 </desc>
17272 </param>
17273 </method>
17274
17275 <method name="onlineMergeMedium">
17276 <desc>
17277 Triggers online merging of a hard disk. Used internally when deleting
17278 a snapshot while a VM referring to the same hard disk chain is running.
17279
17280 <result name="VBOX_E_INVALID_VM_STATE">
17281 Machine session is not open.
17282 </result>
17283 <result name="VBOX_E_INVALID_OBJECT_STATE">
17284 Session type is not direct.
17285 </result>
17286
17287 </desc>
17288 <param name="mediumAttachment" type="IMediumAttachment" dir="in">
17289 <desc>The medium attachment to identify the medium chain.</desc>
17290 </param>
17291 <param name="sourceIdx" type="unsigned long" dir="in">
17292 <desc>The index of the source image in the chain.
17293 Redundant, but drastically reduces IPC.</desc>
17294 </param>
17295 <param name="targetIdx" type="unsigned long" dir="in">
17296 <desc>The index of the target image in the chain.
17297 Redundant, but drastically reduces IPC.</desc>
17298 </param>
17299 <param name="source" type="IMedium" dir="in">
17300 <desc>Merge source medium.</desc>
17301 </param>
17302 <param name="target" type="IMedium" dir="in">
17303 <desc>Merge target medium.</desc>
17304 </param>
17305 <param name="mergeForward" type="boolean" dir="in">
17306 <desc>Merge direction.</desc>
17307 </param>
17308 <param name="parentForTarget" type="IMedium" dir="in">
17309 <desc>For forward merges: new parent for target medium.</desc>
17310 </param>
17311 <param name="childrenToReparent" type="IMedium" safearray="yes" dir="in">
17312 <desc>For backward merges: list of media which need their parent UUID
17313 updated.</desc>
17314 </param>
17315 <param name="progress" type="IProgress" dir="in">
17316 <desc>
17317 Progress object for this operation.
17318 </desc>
17319 </param>
17320 </method>
17321
17322 <method name="enableVMMStatistics">
17323 <desc>
17324 Enables or disables collection of VMM RAM statistics.
17325
17326 <result name="VBOX_E_INVALID_VM_STATE">
17327 Machine session is not open.
17328 </result>
17329 <result name="VBOX_E_INVALID_OBJECT_STATE">
17330 Session type is not direct.
17331 </result>
17332
17333 </desc>
17334 <param name="enable" type="boolean" dir="in">
17335 <desc>True enables statistics collection.</desc>
17336 </param>
17337 </method>
17338
17339 </interface>
17340
17341 <interface
17342 name="ISession" extends="$unknown"
17343 uuid="12F4DCDB-12B2-4EC1-B7CD-DDD9F6C5BF4D"
17344 wsmap="managed"
17345 >
17346 <desc>
17347 The ISession interface represents a client process and allows for locking
17348 virtual machines (represented by IMachine objects) to prevent conflicting
17349 changes to the machine.
17350
17351 Any caller wishing to manipulate a virtual machine needs to create a session
17352 object first, which lives in its own process space. Such session objects are
17353 then associated with <link to="IMachine" /> objects living in the VirtualBox
17354 server process to coordinate such changes.
17355
17356 There are two typical scenarios in which sessions are used:
17357
17358 <ul>
17359 <li>To alter machine settings or control a running virtual machine, one
17360 needs to lock a machine for a given session (client process) by calling
17361 <link to="IMachine::lockMachine"/>.
17362
17363 Whereas multiple sessions may control a running virtual machine, only
17364 one process can obtain a write lock on the machine to prevent conflicting
17365 changes. A write lock is also needed if a process wants to actually run a
17366 virtual machine in its own context, such as the VirtualBox GUI or
17367 VBoxHeadless front-ends. They must also lock a machine for their own
17368 sessions before they are allowed to power up the virtual machine.
17369
17370 As a result, no machine settings can be altered while another process is
17371 already using it, either because that process is modifying machine settings
17372 or because the machine is running.
17373 </li>
17374 <li>
17375 To start a VM using one of the existing VirtualBox front-ends (e.g. the
17376 VirtualBox GUI or VBoxHeadless), one would use
17377 <link to="IMachine::launchVMProcess"/>, which also takes a session object
17378 as its first parameter. This session then identifies the caller and lets the
17379 caller control the started machine (for example, pause machine execution or
17380 power it down) as well as be notified about machine execution state changes.
17381 </li>
17382 </ul>
17383
17384 How sessions objects are created in a client process depends on whether you use
17385 the Main API via COM or via the webservice:
17386
17387 <ul>
17388 <li>When using the COM API directly, an object of the Session class from the
17389 VirtualBox type library needs to be created. In regular COM C++ client code,
17390 this can be done by calling <tt>createLocalObject()</tt>, a standard COM API.
17391 This object will then act as a local session object in further calls to open
17392 a session.
17393 </li>
17394
17395 <li>In the webservice, the session manager (IWebsessionManager) instead creates
17396 a session object automatically whenever <link to="IWebsessionManager::logon" />
17397 is called. A managed object reference to that session object can be retrieved by
17398 calling <link to="IWebsessionManager::getSessionObject" />.
17399 </li>
17400 </ul>
17401 </desc>
17402
17403 <attribute name="state" type="SessionState" readonly="yes">
17404 <desc>Current state of this session.</desc>
17405 </attribute>
17406
17407 <attribute name="type" type="SessionType" readonly="yes">
17408 <desc>
17409 Type of this session. The value of this attribute is valid only
17410 if the session currently has a machine locked (i.e. its
17411 <link to="#state" /> is Locked), otherwise an error will be returned.
17412 </desc>
17413 </attribute>
17414
17415 <attribute name="machine" type="IMachine" readonly="yes">
17416 <desc>Machine object associated with this session.</desc>
17417 </attribute>
17418
17419 <attribute name="console" type="IConsole" readonly="yes">
17420 <desc>Console object associated with this session.</desc>
17421 </attribute>
17422
17423 <method name="unlockMachine">
17424 <desc>
17425 Unlocks a machine that was previously locked for the current session.
17426
17427 Calling this method is required every time a machine has been locked
17428 for a particular session using the <link to="IMachine::launchVMProcess" />
17429 or <link to="IMachine::lockMachine" /> calls. Otherwise the state of
17430 the machine will be set to <link to="MachineState_Aborted" /> on the
17431 server, and changes made to the machine settings will be lost.
17432
17433 Generally, it is recommended to unlock all machines explicitly
17434 before terminating the application (regardless of the reason for
17435 the termination).
17436
17437 <note>
17438 Do not expect the session state (<link to="ISession::state" />
17439 to return to "Unlocked" immediately after you invoke this method,
17440 particularly if you have started a new VM process. The session
17441 state will automatically return to "Unlocked" once the VM is no
17442 longer executing, which can of course take a very long time.
17443 </note>
17444
17445 <result name="E_UNEXPECTED">
17446 Session is not locked.
17447 </result>
17448
17449 </desc>
17450 </method>
17451
17452 </interface>
17453
17454 <!--
17455 // IStorageController
17456 /////////////////////////////////////////////////////////////////////////
17457 -->
17458
17459 <enum
17460 name="StorageBus"
17461 uuid="eee67ab3-668d-4ef5-91e0-7025fe4a0d7a"
17462 >
17463 <desc>
17464 The bus type of the storage controller (IDE, SATA, SCSI, SAS or Floppy);
17465 see <link to="IStorageController::bus" />.
17466 </desc>
17467 <const name="Null" value="0">
17468 <desc>@c null value. Never used by the API.</desc>
17469 </const>
17470 <const name="IDE" value="1"/>
17471 <const name="SATA" value="2"/>
17472 <const name="SCSI" value="3"/>
17473 <const name="Floppy" value="4"/>
17474 <const name="SAS" value="5"/>
17475 </enum>
17476
17477 <enum
17478 name="StorageControllerType"
17479 uuid="8a412b8a-f43e-4456-bd37-b474f0879a58"
17480 >
17481 <desc>
17482 The exact variant of storage controller hardware presented
17483 to the guest; see <link to="IStorageController::controllerType" />.
17484 </desc>
17485
17486 <const name="Null" value="0">
17487 <desc>@c null value. Never used by the API.</desc>
17488 </const>
17489 <const name="LsiLogic" value="1">
17490 <desc>A SCSI controller of the LsiLogic variant.</desc>
17491 </const>
17492 <const name="BusLogic" value="2">
17493 <desc>A SCSI controller of the BusLogic variant.</desc>
17494 </const>
17495 <const name="IntelAhci" value="3">
17496 <desc>An Intel AHCI SATA controller; this is the only variant for SATA.</desc>
17497 </const>
17498 <const name="PIIX3" value="4">
17499 <desc>An IDE controller of the PIIX3 variant.</desc>
17500 </const>
17501 <const name="PIIX4" value="5">
17502 <desc>An IDE controller of the PIIX4 variant.</desc>
17503 </const>
17504 <const name="ICH6" value="6">
17505 <desc>An IDE controller of the ICH6 variant.</desc>
17506 </const>
17507 <const name="I82078" value="7">
17508 <desc>A floppy disk controller; this is the only variant for floppy drives.</desc>
17509 </const>
17510 <const name="LsiLogicSas" value="8">
17511 <desc>A variant of the LsiLogic controller using SAS.</desc>
17512 </const>
17513 </enum>
17514
17515 <enum
17516 name="ChipsetType"
17517 uuid="8b4096a8-a7c3-4d3b-bbb1-05a0a51ec394"
17518 >
17519 <desc>
17520 Type of emulated chipset (mostly southbridge).
17521 </desc>
17522
17523 <const name="Null" value="0">
17524 <desc>@c null value. Never used by the API.</desc>
17525 </const>
17526 <const name="PIIX3" value="1">
17527 <desc>A PIIX3 (PCI IDE ISA Xcelerator) chipset.</desc>
17528 </const>
17529 <const name="ICH9" value="2">
17530 <desc>A ICH9 (I/O Controller Hub) chipset.</desc>
17531 </const>
17532 </enum>
17533
17534 <interface
17535 name="IStorageController" extends="$unknown"
17536 uuid="a1556333-09b6-46d9-bfb7-fc239b7fbe1e"
17537 wsmap="managed"
17538 >
17539 <desc>
17540 Represents a storage controller that is attached to a virtual machine
17541 (<link to="IMachine" />). Just as drives (hard disks, DVDs, FDs) are
17542 attached to storage controllers in a real computer, virtual drives
17543 (represented by <link to="IMediumAttachment" />) are attached to virtual
17544 storage controllers, represented by this interface.
17545
17546 As opposed to physical hardware, VirtualBox has a very generic concept
17547 of a storage controller, and for purposes of the Main API, all virtual
17548 storage is attached to virtual machines via instances of this interface.
17549 There are five types of such virtual storage controllers: IDE, SCSI, SATA,
17550 SAS and Floppy (see <link to="#bus" />). Depending on which of these four
17551 is used, certain sub-types may be available and can be selected in
17552 <link to="#controllerType" />.
17553
17554 Depending on these settings, the guest operating system might see
17555 significantly different virtual hardware.
17556 </desc>
17557
17558 <attribute name="name" type="wstring" readonly="yes">
17559 <desc>
17560 Name of the storage controller, as originally specified with
17561 <link to="IMachine::addStorageController" />. This then uniquely
17562 identifies this controller with other method calls such as
17563 <link to="IMachine::attachDevice" /> and <link to="IMachine::mountMedium" />.
17564 </desc>
17565 </attribute>
17566
17567 <attribute name="maxDevicesPerPortCount" type="unsigned long" readonly="yes">
17568 <desc>
17569 Maximum number of devices which can be attached to one port.
17570 </desc>
17571 </attribute>
17572
17573 <attribute name="minPortCount" type="unsigned long" readonly="yes">
17574 <desc>
17575 Minimum number of ports that <link to="IStorageController::portCount"/> can be set to.
17576 </desc>
17577 </attribute>
17578
17579 <attribute name="maxPortCount" type="unsigned long" readonly="yes">
17580 <desc>
17581 Maximum number of ports that <link to="IStorageController::portCount"/> can be set to.
17582 </desc>
17583 </attribute>
17584
17585 <attribute name="instance" type="unsigned long">
17586 <desc>
17587 The instance number of the device in the running VM.
17588 </desc>
17589 </attribute>
17590
17591 <attribute name="portCount" type="unsigned long">
17592 <desc>
17593 The number of currently usable ports on the controller.
17594 The minimum and maximum number of ports for one controller are
17595 stored in <link to="IStorageController::minPortCount"/>
17596 and <link to="IStorageController::maxPortCount"/>.
17597 </desc>
17598 </attribute>
17599
17600 <attribute name="bus" type="StorageBus" readonly="yes">
17601 <desc>
17602 The bus type of the storage controller (IDE, SATA, SCSI, SAS or Floppy).
17603 </desc>
17604 </attribute>
17605
17606 <attribute name="controllerType" type="StorageControllerType">
17607 <desc>
17608 The exact variant of storage controller hardware presented
17609 to the guest.
17610 Depending on this value, VirtualBox will provide a different
17611 virtual storage controller hardware to the guest.
17612 For SATA, SAS and floppy controllers, only one variant is
17613 available, but for IDE and SCSI, there are several.
17614
17615 For SCSI controllers, the default type is LsiLogic.
17616 </desc>
17617 </attribute>
17618
17619 <attribute name="useHostIOCache" type="boolean">
17620 <desc>
17621 If true, the storage controller emulation will use a dedicated I/O thread, enable the host I/O
17622 caches and use synchronous file APIs on the host. This was the only option in the API before
17623 VirtualBox 3.2 and is still the default for IDE controllers.
17624
17625 If false, the host I/O cache will be disabled for image files attached to this storage controller.
17626 Instead, the storage controller emulation will use asynchronous I/O APIs on the host. This makes
17627 it possible to turn off the host I/O caches because the emulation can handle unaligned access to
17628 the file. This should be used on OS X and Linux hosts if a high I/O load is expected or many
17629 virtual machines are running at the same time to prevent I/O cache related hangs.
17630 This option new with the API of VirtualBox 3.2 and is now the default for non-IDE storage controllers.
17631 </desc>
17632 </attribute>
17633
17634 <attribute name="bootable" type="boolean" readonly="yes">
17635 <desc>
17636 Returns whether it is possible to boot from disks attached to this controller.
17637 </desc>
17638 </attribute>
17639 </interface>
17640
17641<if target="wsdl">
17642
17643 <!--
17644 // IManagedObjectRef
17645 /////////////////////////////////////////////////////////////////////////
17646 -->
17647
17648 <interface
17649 name="IManagedObjectRef" extends="$unknown"
17650 uuid="9474d09d-2313-46de-b568-a42b8718e8ed"
17651 internal="yes"
17652 wsmap="managed"
17653 wscpp="hardcoded"
17654 >
17655 <desc>
17656 Managed object reference.
17657
17658 Only within the webservice, a managed object reference (which is really
17659 an opaque number) allows a webservice client to address an object
17660 that lives in the address space of the webservice server.
17661
17662 Behind each managed object reference, there is a COM object that lives
17663 in the webservice server's address space. The COM object is not freed
17664 until the managed object reference is released, either by an explicit
17665 call to <link to="IManagedObjectRef::release" /> or by logging off from
17666 the webservice (<link to="IWebsessionManager::logoff" />), which releases
17667 all objects created during the webservice session.
17668
17669 Whenever a method call of the VirtualBox API returns a COM object, the
17670 webservice representation of that method will instead return a
17671 managed object reference, which can then be used to invoke methods
17672 on that object.
17673 </desc>
17674
17675 <method name="getInterfaceName">
17676 <desc>
17677 Returns the name of the interface that this managed object represents,
17678 for example, "IMachine", as a string.
17679 </desc>
17680 <param name="return" type="wstring" dir="return"/>
17681 </method>
17682
17683 <method name="release">
17684 <desc>
17685 Releases this managed object reference and frees the resources that
17686 were allocated for it in the webservice server process. After calling
17687 this method, the identifier of the reference can no longer be used.
17688 </desc>
17689 </method>
17690
17691 </interface>
17692
17693 <!--
17694 // IWebsessionManager
17695 /////////////////////////////////////////////////////////////////////////
17696 -->
17697
17698 <interface
17699 name="IWebsessionManager" extends="$unknown"
17700 uuid="dea1b4c7-2de3-418a-850d-7868617f7733"
17701 internal="yes"
17702 wsmap="global"
17703 wscpp="hardcoded"
17704 >
17705 <desc>
17706 Websession manager. This provides essential services
17707 to webservice clients.
17708 </desc>
17709 <method name="logon">
17710 <desc>
17711 Logs a new client onto the webservice and returns a managed object reference to
17712 the IVirtualBox instance, which the client can then use as a basis to further
17713 queries, since all calls to the VirtualBox API are based on the IVirtualBox
17714 interface, in one way or the other.
17715 </desc>
17716 <param name="username" type="wstring" dir="in"/>
17717 <param name="password" type="wstring" dir="in"/>
17718 <param name="return" type="IVirtualBox" dir="return"/>
17719 </method>
17720
17721 <method name="getSessionObject">
17722 <desc>
17723 Returns a managed object reference to the internal ISession object that was created
17724 for this web service session when the client logged on.
17725
17726 <see><link to="ISession"/></see>
17727 </desc>
17728 <param name="refIVirtualBox" type="IVirtualBox" dir="in"/>
17729 <param name="return" type="ISession" dir="return"/>
17730 </method>
17731
17732 <method name="logoff">
17733 <desc>
17734 Logs off the client who has previously logged on with <link to="IWebsessionManager::logon" />
17735 and destroys all resources associated with the session (most importantly, all
17736 managed objects created in the server while the session was active).
17737 </desc>
17738 <param name="refIVirtualBox" type="IVirtualBox" dir="in"/>
17739 </method>
17740
17741 </interface>
17742
17743</if>
17744
17745 <!--
17746 // IPerformanceCollector & friends
17747 /////////////////////////////////////////////////////////////////////////
17748 -->
17749
17750 <interface
17751 name="IPerformanceMetric" extends="$unknown"
17752 uuid="2a1a60ae-9345-4019-ad53-d34ba41cbfe9" wsmap="managed"
17753 >
17754 <desc>
17755 The IPerformanceMetric interface represents parameters of the given
17756 performance metric.
17757 </desc>
17758
17759 <attribute name="metricName" type="wstring" readonly="yes">
17760 <desc>
17761 Name of the metric.
17762 </desc>
17763 </attribute>
17764
17765 <attribute name="object" type="$unknown" readonly="yes">
17766 <desc>
17767 Object this metric belongs to.
17768 </desc>
17769 </attribute>
17770
17771 <attribute name="description" type="wstring" readonly="yes">
17772 <desc>
17773 Textual description of the metric.
17774 </desc>
17775 </attribute>
17776
17777 <attribute name="period" type="unsigned long" readonly="yes">
17778 <desc>
17779 Time interval between samples, measured in seconds.
17780 </desc>
17781 </attribute>
17782
17783 <attribute name="count" type="unsigned long" readonly="yes">
17784 <desc>
17785 Number of recent samples retained by the performance collector for this
17786 metric.
17787
17788 When the collected sample count exceeds this number, older samples
17789 are discarded.
17790 </desc>
17791 </attribute>
17792
17793 <attribute name="unit" type="wstring" readonly="yes">
17794 <desc>
17795 Unit of measurement.
17796 </desc>
17797 </attribute>
17798
17799 <attribute name="minimumValue" type="long" readonly="yes">
17800 <desc>
17801 Minimum possible value of this metric.
17802 </desc>
17803 </attribute>
17804
17805 <attribute name="maximumValue" type="long" readonly="yes">
17806 <desc>
17807 Maximum possible value of this metric.
17808 </desc>
17809 </attribute>
17810 </interface>
17811
17812 <interface
17813 name="IPerformanceCollector" extends="$unknown"
17814 uuid="e22e1acb-ac4a-43bb-a31c-17321659b0c6"
17815 wsmap="managed"
17816 >
17817 <desc>
17818 The IPerformanceCollector interface represents a service that collects
17819 and stores performance metrics data.
17820
17821 Performance metrics are associated with objects of interfaces like IHost
17822 and IMachine. Each object has a distinct set of performance metrics. The
17823 set can be obtained with <link to="IPerformanceCollector::getMetrics"/>.
17824
17825 Metric data is collected at the specified intervals and is retained
17826 internally. The interval and the number of retained samples can be set
17827 with <link to="IPerformanceCollector::setupMetrics" />. Both metric data
17828 and collection settings are not persistent, they are discarded as soon as
17829 VBoxSVC process terminates. Moreover, metric settings and data associated
17830 with a particular VM only exist while VM is running. They disappear as
17831 soon as VM shuts down. It is not possible to set up metrics for machines
17832 that are powered off. One needs to start VM first, then set up metric
17833 collection parameters.
17834
17835 Metrics are organized hierarchically, with each level separated by a
17836 slash (/) character. Generally, the scheme for metric names is like this:
17837
17838 <tt>Category/Metric[/SubMetric][:aggregation]</tt>
17839
17840 "Category/Metric" together form the base metric name. A base metric is
17841 the smallest unit for which a sampling interval and the number of
17842 retained samples can be set. Only base metrics can be enabled and
17843 disabled. All sub-metrics are collected when their base metric is
17844 collected. Collected values for any set of sub-metrics can be queried
17845 with <link to="IPerformanceCollector::queryMetricsData" />.
17846
17847 For example "CPU/Load/User:avg" metric name stands for the "CPU"
17848 category, "Load" metric, "User" submetric, "average" aggregate. An
17849 aggregate function is computed over all retained data. Valid aggregate
17850 functions are:
17851
17852 <ul>
17853 <li>avg -- average</li>
17854 <li>min -- minimum</li>
17855 <li>max -- maximum</li>
17856 </ul>
17857
17858 When setting up metric parameters, querying metric data, enabling or
17859 disabling metrics wildcards can be used in metric names to specify a
17860 subset of metrics. For example, to select all CPU-related metrics
17861 use <tt>CPU/*</tt>, all averages can be queried using <tt>*:avg</tt> and
17862 so on. To query metric values without aggregates <tt>*:</tt> can be used.
17863
17864 The valid names for base metrics are:
17865
17866 <ul>
17867 <li>CPU/Load</li>
17868 <li>CPU/MHz</li>
17869 <li>RAM/Usage</li>
17870 <li>RAM/VMM</li>
17871 </ul>
17872
17873 The general sequence for collecting and retrieving the metrics is:
17874 <ul>
17875 <li>
17876 Obtain an instance of IPerformanceCollector with
17877 <link to="IVirtualBox::performanceCollector" />
17878 </li>
17879 <li>
17880 Allocate and populate an array with references to objects the metrics
17881 will be collected for. Use references to IHost and IMachine objects.
17882 </li>
17883 <li>
17884 Allocate and populate an array with base metric names the data will
17885 be collected for.
17886 </li>
17887 <li>
17888 Call <link to="IPerformanceCollector::setupMetrics" />. From now on
17889 the metric data will be collected and stored.
17890 </li>
17891 <li>
17892 Wait for the data to get collected.
17893 </li>
17894 <li>
17895 Allocate and populate an array with references to objects the metric
17896 values will be queried for. You can re-use the object array used for
17897 setting base metrics.
17898 </li>
17899 <li>
17900 Allocate and populate an array with metric names the data will be
17901 collected for. Note that metric names differ from base metric names.
17902 </li>
17903 <li>
17904 Call <link to="IPerformanceCollector::queryMetricsData" />. The data
17905 that have been collected so far are returned. Note that the values
17906 are still retained internally and data collection continues.
17907 </li>
17908 </ul>
17909
17910 For an example of usage refer to the following files in VirtualBox SDK:
17911 <ul>
17912 <li>
17913 Java: <tt>bindings/webservice/java/jax-ws/samples/metrictest.java</tt>
17914 </li>
17915 <li>
17916 Python: <tt>bindings/xpcom/python/sample/shellcommon.py</tt>
17917 </li>
17918 </ul>
17919 </desc>
17920
17921 <attribute name="metricNames" type="wstring" readonly="yes" safearray="yes">
17922 <desc>
17923 Array of unique names of metrics.
17924
17925 This array represents all metrics supported by the performance
17926 collector. Individual objects do not necessarily support all of them.
17927 <link to="IPerformanceCollector::getMetrics"/> can be used to get the
17928 list of supported metrics for a particular object.
17929 </desc>
17930 </attribute>
17931
17932 <method name="getMetrics">
17933 <desc>
17934 Returns parameters of specified metrics for a set of objects.
17935 <note>
17936 @c Null metrics array means all metrics. @c Null object array means
17937 all existing objects.
17938 </note>
17939 </desc>
17940 <param name="metricNames" type="wstring" dir="in" safearray="yes">
17941 <desc>
17942 Metric name filter. Currently, only a comma-separated list of metrics
17943 is supported.
17944 </desc>
17945 </param>
17946 <param name="objects" type="$unknown" dir="in" safearray="yes">
17947 <desc>
17948 Set of objects to return metric parameters for.
17949 </desc>
17950 </param>
17951 <param name="metrics" type="IPerformanceMetric" dir="return" safearray="yes">
17952 <desc>
17953 Array of returned metric parameters.
17954 </desc>
17955 </param>
17956 </method>
17957
17958 <method name="setupMetrics">
17959 <desc>
17960 Sets parameters of specified base metrics for a set of objects. Returns
17961 an array of <link to="IPerformanceMetric" /> describing the metrics
17962 have been affected.
17963 <note>
17964 @c Null or empty metric name array means all metrics. @c Null or
17965 empty object array means all existing objects. If metric name array
17966 contains a single element and object array contains many, the single
17967 metric name array element is applied to each object array element to
17968 form metric/object pairs.
17969 </note>
17970 </desc>
17971 <param name="metricNames" type="wstring" dir="in" safearray="yes">
17972 <desc>
17973 Metric name filter. Comma-separated list of metrics with wildcard
17974 support.
17975 </desc>
17976 </param>
17977 <param name="objects" type="$unknown" dir="in" safearray="yes">
17978 <desc>
17979 Set of objects to setup metric parameters for.
17980 </desc>
17981 </param>
17982 <param name="period" type="unsigned long" dir="in">
17983 <desc>
17984 Time interval in seconds between two consecutive samples of
17985 performance data.
17986 </desc>
17987 </param>
17988 <param name="count" type="unsigned long" dir="in">
17989 <desc>
17990 Number of samples to retain in performance data history. Older
17991 samples get discarded.
17992 </desc>
17993 </param>
17994 <param name="affectedMetrics" type="IPerformanceMetric" dir="return" safearray="yes">
17995 <desc>
17996 Array of metrics that have been modified by the call to this method.
17997 </desc>
17998 </param>
17999 </method>
18000
18001 <method name="enableMetrics">
18002 <desc>
18003 Turns on collecting specified base metrics. Returns an array of
18004 <link to="IPerformanceMetric" /> describing the metrics have been
18005 affected.
18006 <note>
18007 @c Null or empty metric name array means all metrics. @c Null or
18008 empty object array means all existing objects. If metric name array
18009 contains a single element and object array contains many, the single
18010 metric name array element is applied to each object array element to
18011 form metric/object pairs.
18012 </note>
18013 </desc>
18014 <param name="metricNames" type="wstring" dir="in" safearray="yes">
18015 <desc>
18016 Metric name filter. Comma-separated list of metrics with wildcard
18017 support.
18018 </desc>
18019 </param>
18020 <param name="objects" type="$unknown" dir="in" safearray="yes">
18021 <desc>
18022 Set of objects to enable metrics for.
18023 </desc>
18024 </param>
18025 <param name="affectedMetrics" type="IPerformanceMetric" dir="return" safearray="yes">
18026 <desc>
18027 Array of metrics that have been modified by the call to this method.
18028 </desc>
18029 </param>
18030 </method>
18031
18032 <method name="disableMetrics">
18033 <desc>
18034 Turns off collecting specified base metrics. Returns an array of
18035 <link to="IPerformanceMetric" /> describing the metrics have been
18036 affected.
18037 <note>
18038 @c Null or empty metric name array means all metrics. @c Null or
18039 empty object array means all existing objects. If metric name array
18040 contains a single element and object array contains many, the single
18041 metric name array element is applied to each object array element to
18042 form metric/object pairs.
18043 </note>
18044 </desc>
18045 <param name="metricNames" type="wstring" dir="in" safearray="yes">
18046 <desc>
18047 Metric name filter. Comma-separated list of metrics with wildcard
18048 support.
18049 </desc>
18050 </param>
18051 <param name="objects" type="$unknown" dir="in" safearray="yes">
18052 <desc>
18053 Set of objects to disable metrics for.
18054 </desc>
18055 </param>
18056 <param name="affectedMetrics" type="IPerformanceMetric" dir="return" safearray="yes">
18057 <desc>
18058 Array of metrics that have been modified by the call to this method.
18059 </desc>
18060 </param>
18061 </method>
18062
18063 <method name="queryMetricsData">
18064 <desc>
18065 Queries collected metrics data for a set of objects.
18066
18067 The data itself and related metric information are returned in seven
18068 parallel and one flattened array of arrays. Elements of
18069 <tt>returnMetricNames, returnObjects, returnUnits, returnScales,
18070 returnSequenceNumbers, returnDataIndices and returnDataLengths</tt> with
18071 the same index describe one set of values corresponding to a single
18072 metric.
18073
18074 The <tt>returnData</tt> parameter is a flattened array of arrays. Each
18075 start and length of a sub-array is indicated by
18076 <tt>returnDataIndices</tt> and <tt>returnDataLengths</tt>. The first
18077 value for metric <tt>metricNames[i]</tt> is at
18078 <tt>returnData[returnIndices[i]]</tt>.
18079
18080 <note>
18081 @c Null or empty metric name array means all metrics. @c Null or
18082 empty object array means all existing objects. If metric name array
18083 contains a single element and object array contains many, the single
18084 metric name array element is applied to each object array element to
18085 form metric/object pairs.
18086 </note>
18087 <note>
18088 Data collection continues behind the scenes after call to
18089 @c queryMetricsData. The return data can be seen as the snapshot of
18090 the current state at the time of @c queryMetricsData call. The
18091 internally kept metric values are not cleared by the call. This
18092 allows querying different subsets of metrics or aggregates with
18093 subsequent calls. If periodic querying is needed it is highly
18094 suggested to query the values with @c interval*count period to avoid
18095 confusion. This way a completely new set of data values will be
18096 provided by each query.
18097 </note>
18098 </desc>
18099 <param name="metricNames" type="wstring" dir="in" safearray="yes">
18100 <desc>
18101 Metric name filter. Comma-separated list of metrics with wildcard
18102 support.
18103 </desc>
18104 </param>
18105 <param name="objects" type="$unknown" dir="in" safearray="yes">
18106 <desc>
18107 Set of objects to query metrics for.
18108 </desc>
18109 </param>
18110 <param name="returnMetricNames" type="wstring" dir="out" safearray="yes">
18111 <desc>
18112 Names of metrics returned in @c returnData.
18113 </desc>
18114 </param>
18115 <param name="returnObjects" type="$unknown" dir="out" safearray="yes">
18116 <desc>
18117 Objects associated with metrics returned in @c returnData.
18118 </desc>
18119 </param>
18120 <param name="returnUnits" type="wstring" dir="out" safearray="yes">
18121 <desc>
18122 Units of measurement for each returned metric.
18123 </desc>
18124 </param>
18125 <param name="returnScales" type="unsigned long" dir="out" safearray="yes">
18126 <desc>
18127 Divisor that should be applied to return values in order to get
18128 floating point values. For example:
18129 <tt>(double)returnData[returnDataIndices[0]+i] / returnScales[0]</tt>
18130 will retrieve the floating point value of i-th sample of the first
18131 metric.
18132 </desc>
18133 </param>
18134 <param name="returnSequenceNumbers" type="unsigned long" dir="out" safearray="yes">
18135 <desc>
18136 Sequence numbers of the first elements of value sequences of
18137 particular metrics returned in @c returnData. For aggregate metrics
18138 it is the sequence number of the sample the aggregate started
18139 calculation from.
18140 </desc>
18141 </param>
18142 <param name="returnDataIndices" type="unsigned long" dir="out" safearray="yes">
18143 <desc>
18144 Indices of the first elements of value sequences of particular
18145 metrics returned in @c returnData.
18146 </desc>
18147 </param>
18148 <param name="returnDataLengths" type="unsigned long" dir="out" safearray="yes">
18149 <desc>
18150 Lengths of value sequences of particular metrics.
18151 </desc>
18152 </param>
18153 <param name="returnData" type="long" dir="return" safearray="yes">
18154 <desc>
18155 Flattened array of all metric data containing sequences of values for
18156 each metric.
18157 </desc>
18158 </param>
18159 </method>
18160
18161 </interface>
18162
18163 <enum
18164 name="NATAliasMode"
18165 uuid="67772168-50d9-11df-9669-7fb714ee4fa1"
18166 >
18167 <desc></desc>
18168 <const name="AliasLog" value="0x1">
18169 <desc></desc>
18170 </const>
18171 <const name="AliasProxyOnly" value="0x02">
18172 <desc></desc>
18173 </const>
18174 <const name="AliasUseSamePorts" value="0x04">
18175 <desc></desc>
18176 </const>
18177 </enum>
18178
18179 <enum
18180 name="NATProtocol"
18181 uuid="e90164be-eb03-11de-94af-fff9b1c1b19f"
18182 >
18183 <desc>Protocol definitions used with NAT port-forwarding rules.</desc>
18184 <const name="UDP" value="0">
18185 <desc>Port-forwarding uses UDP protocol.</desc>
18186 </const>
18187 <const name="TCP" value="1">
18188 <desc>Port-forwarding uses TCP protocol.</desc>
18189 </const>
18190 </enum>
18191
18192 <interface
18193 name="INATEngine" extends="$unknown"
18194 uuid="26451b99-3b2d-4dcb-8e4b-d63654218175"
18195 wsmap="managed"
18196 >
18197 <desc>Interface for managing a NAT engine which is used with a virtual machine. This
18198 allows for changing NAT behavior such as port-forwarding rules. This interface is
18199 used in the <link to="INetworkAdapter::NATEngine" /> attribute.</desc>
18200 <attribute name="network" type="wstring">
18201 <desc>The network attribute of the NAT engine (the same value is used with built-in
18202 DHCP server to fill corresponding fields of DHCP leases).</desc>
18203 </attribute>
18204 <attribute name="hostIP" type="wstring">
18205 <desc>IP of host interface to bind all opened sockets to.
18206 <note>Changing this does not change binding of port forwarding.</note>
18207 </desc>
18208 </attribute>
18209 <attribute name="TFTPPrefix" type="wstring">
18210 <desc>TFTP prefix attribute which is used with the built-in DHCP server to fill
18211 the corresponding fields of DHCP leases.</desc>
18212 </attribute>
18213 <attribute name="TFTPBootFile" type="wstring">
18214 <desc>TFTP boot file attribute which is used with the built-in DHCP server to fill
18215 the corresponding fields of DHCP leases.</desc>
18216 </attribute>
18217 <attribute name="TFTPNextServer" type="wstring">
18218 <desc>TFTP server attribute which is used with the built-in DHCP server to fill
18219 the corresponding fields of DHCP leases.
18220 <note>The preferred form is IPv4 addresses.</note>
18221 </desc>
18222 </attribute>
18223 <attribute name="aliasMode" type="unsigned long">
18224 <desc></desc>
18225 </attribute>
18226 <attribute name="DNSPassDomain" type="boolean">
18227 <desc>Whether the DHCP server should pass the DNS domain used by the host.</desc>
18228 </attribute>
18229 <attribute name="DNSProxy" type="boolean">
18230 <desc>Whether the DHCP server (and the DNS traffic by NAT) should pass the address
18231 of the DNS proxy and process traffic using DNS servers registered on the host.</desc>
18232 </attribute>
18233 <attribute name="DNSUseHostResolver" type="boolean">
18234 <desc>Whether the DHCP server (and the DNS traffic by NAT) should pass the address
18235 of the DNS proxy and process traffic using the host resolver mechanism.</desc>
18236 </attribute>
18237 <attribute name="redirects" type="wstring" readonly="yes" safearray="yes">
18238 <desc>Array of NAT port-forwarding rules in string representation, in the following
18239 format: "name,protocol id,host ip,host port,guest ip,guest port".</desc>
18240 </attribute>
18241 <method name="setNetworkSettings">
18242 <desc>Sets network configuration of the NAT engine.</desc>
18243 <param name="mtu" type="unsigned long" dir="in">
18244 <desc>MTU (maximum transmission unit) of the NAT engine in bytes.</desc>
18245 </param>
18246 <param name="sockSnd" type="unsigned long" dir="in">
18247 <desc>Capacity of the socket send buffer in bytes when creating a new socket.</desc>
18248 </param>
18249 <param name="sockRcv" type="unsigned long" dir="in">
18250 <desc>Capacity of the socket receive buffer in bytes when creating a new socket.</desc>
18251 </param>
18252 <param name="TcpWndSnd" type="unsigned long" dir="in">
18253 <desc>Initial size of the NAT engine's sending TCP window in bytes when
18254 establishing a new TCP connection.</desc>
18255 </param>
18256 <param name="TcpWndRcv" type="unsigned long" dir="in">
18257 <desc>Initial size of the NAT engine's receiving TCP window in bytes when
18258 establishing a new TCP connection.</desc>
18259 </param>
18260 </method>
18261 <method name="getNetworkSettings">
18262 <desc>Returns network configuration of NAT engine. See <link to="#setNetworkSettings" />
18263 for parameter descriptions.</desc>
18264 <param name="mtu" type="unsigned long" dir="out" />
18265 <param name="sockSnd" type="unsigned long" dir="out" />
18266 <param name="sockRcv" type="unsigned long" dir="out" />
18267 <param name="TcpWndSnd" type="unsigned long" dir="out" />
18268 <param name="TcpWndRcv" type="unsigned long" dir="out" />
18269 </method>
18270 <method name="addRedirect">
18271 <desc>Adds a new NAT port-forwarding rule.</desc>
18272 <param name="name" type="wstring" dir="in">
18273 <desc>The name of the rule. An empty name is acceptable, in which case the NAT engine
18274 auto-generates one using the other parameters.</desc>
18275 </param>
18276 <param name="proto" type="NATProtocol" dir="in">
18277 <desc>Protocol handled with the rule.</desc>
18278 </param>
18279 <param name="hostIP" type="wstring" dir="in">
18280 <desc>IP of the host interface to which the rule should apply. An empty ip address is
18281 acceptable, in which case the NAT engine binds the handling socket to any interface.</desc>
18282 </param>
18283 <param name="hostPort" type="unsigned short" dir="in">
18284 <desc>The port number to listen on.</desc>
18285 </param>
18286 <param name="guestIP" type="wstring" dir="in">
18287 <desc>The IP address of the guest which the NAT engine will forward matching packets
18288 to. An empty IP address is acceptable, in which case the NAT engine will forward
18289 packets to the first DHCP lease (x.x.x.15).</desc>
18290 </param>
18291 <param name="guestPort" type="unsigned short" dir="in">
18292 <desc>The port number to forward.</desc>
18293 </param>
18294 </method>
18295 <method name="removeRedirect">
18296 <desc>Removes a port-forwarding rule that was previously registered.</desc>
18297 <param name="name" type="wstring" dir="in">
18298 <desc>The name of the rule to delete.</desc>
18299 </param>
18300 </method>
18301 </interface>
18302
18303 <!--
18304 // IExtPackManager
18305 /////////////////////////////////////////////////////////////////////////
18306 -->
18307
18308 <interface
18309 name="IExtPackPlugIn" extends="$unknown"
18310 uuid="58000040-e718-4746-bbce-4b86d96da461"
18311 wsmap="suppress"
18312 >
18313 <desc>
18314 Interface for keeping information about a plug-in that ships with an
18315 extension pack.
18316 </desc>
18317 <attribute name="name" type="wstring" readonly="yes">
18318 <desc>The plug-in name.</desc>
18319 </attribute>
18320 <attribute name="description" type="wstring" readonly="yes">
18321 <desc>The plug-in description.</desc>
18322 </attribute>
18323 <attribute name="frontend" type="wstring" readonly="yes">
18324 <desc>
18325 The name of the frontend or component name this plug-in plugs into.
18326 </desc>
18327 </attribute>
18328 <attribute name="modulePath" type="wstring" readonly="yes">
18329 <desc> The module path. </desc>
18330 </attribute>
18331 </interface>
18332
18333 <interface
18334 name="IExtPackBase" extends="$unknown"
18335 uuid="f79b75d8-2890-4f34-ffff-ffffa144e82c"
18336 wsmap="suppress"
18337 >
18338 <desc>
18339 Interface for querying information about an extension pack as well as
18340 accessing COM objects within it.
18341 </desc>
18342 <attribute name="name" type="wstring" readonly="yes">
18343 <desc>The extension pack name. This is unique.</desc>
18344 </attribute>
18345 <attribute name="description" type="wstring" readonly="yes">
18346 <desc>The extension pack description.</desc>
18347 </attribute>
18348 <attribute name="version" type="wstring" readonly="yes">
18349 <desc>
18350 The extension pack version string. This is restricted to the dotted
18351 version number and optionally a build indicator. No tree revision or
18352 tag will be included in the string as those things are available as
18353 separate properties. An optional publisher tag may be present like for
18354 <link to="IVirtualBox::version"/>.
18355
18356 Examples: "1.2.3", "1.2.3_BETA1" and "1.2.3_RC2".
18357 </desc>
18358 </attribute>
18359 <attribute name="revision" type="unsigned long" readonly="yes">
18360 <desc>The extension pack internal revision number.</desc>
18361 </attribute>
18362 <attribute name="edition" type="wstring" readonly="yes">
18363 <desc>
18364 Edition indicator. This is usually empty.
18365
18366 Can for instance be used to help distinguishing between two editions
18367 of the same extension pack where only the license, service contract or
18368 something differs.
18369 </desc>
18370 </attribute>
18371 <attribute name="VRDEModule" type="wstring" readonly="yes">
18372 <desc>The name of the VRDE module if the extension pack sports one.</desc>
18373 </attribute>
18374 <attribute name="plugIns" type="IExtPackPlugIn" safearray="yes" readonly="yes">
18375 <desc>Plug-ins provided by this extension pack.</desc>
18376 </attribute>
18377 <attribute name="usable" type="boolean" readonly="yes">
18378 <desc>
18379 Indicates whether the extension pack is usable or not.
18380
18381 There are a number of reasons why an extension pack might be unusable,
18382 typical examples would be broken installation/file or that it is
18383 incompatible with the current VirtualBox version.
18384 </desc>
18385 </attribute>
18386 <attribute name="whyUnusable" type="wstring" readonly="yes">
18387 <desc>
18388 String indicating why the extension pack is not usable. This is an
18389 empty string if usable and always a non-empty string if not usable.
18390 </desc>
18391 </attribute>
18392 <attribute name="showLicense" type="boolean" readonly="yes">
18393 <desc>Whether to show the license before installation</desc>
18394 </attribute>
18395 <attribute name="license" type="wstring" readonly="yes">
18396 <desc>
18397 The default HTML license text for the extension pack. Same as
18398 calling <link to="#queryLicense">queryLicense</link> with
18399 preferredLocale and preferredLanguage as empty strings and format set
18400 to html.
18401 </desc>
18402 </attribute>
18403
18404 <method name="queryLicense">
18405 <desc>
18406 Full feature version of the license attribute.
18407 </desc>
18408 <param name="preferredLocale" type="wstring" dir="in">
18409 <desc>
18410 The preferred license locale. Pass an empty string to get the default
18411 license.
18412 </desc>
18413 </param>
18414 <param name="preferredLanguage" type="wstring" dir="in">
18415 <desc>
18416 The preferred license language. Pass an empty string to get the
18417 default language for the locale.
18418 </desc>
18419 </param>
18420 <param name="format" type="wstring" dir="in">
18421 <desc>
18422 The license format: html, rtf or txt. If a license is present there
18423 will always be an HTML of it, the rich text format (RTF) and plain
18424 text (txt) versions are optional. If
18425 </desc>
18426 </param>
18427 <param name="licenseText" type="wstring" dir="return">
18428 <desc>The license text.</desc>
18429 </param>
18430 </method>
18431
18432 </interface>
18433
18434 <interface
18435 name="IExtPack" extends="IExtPackBase"
18436 uuid="431685da-3618-4ebc-b038-833ba829b4b2"
18437 wsmap="suppress"
18438 >
18439 <desc>
18440 Interface for querying information about an extension pack as well as
18441 accessing COM objects within it.
18442 </desc>
18443 <method name="queryObject">
18444 <desc>
18445 Queries the IUnknown interface to an object in the extension pack
18446 main module. This allows plug-ins and others to talk directly to an
18447 extension pack.
18448 </desc>
18449 <param name="objUuid" type="wstring" dir="in">
18450 <desc>The object ID. What exactly this is </desc>
18451 </param>
18452 <param name="returnInterface" type="$unknown" dir="return">
18453 <desc>The queried interface.</desc>
18454 </param>
18455 </method>
18456 </interface>
18457
18458 <interface
18459 name="IExtPackFile" extends="IExtPackBase"
18460 uuid="b6b49f55-efcc-4f08-b486-56e8d8afb10b"
18461 wsmap="suppress"
18462 >
18463 <desc>
18464 Extension pack file (aka tarball, .vbox-extpack) representation returned
18465 by <link to="IExtPackManager::openExtPackFile"/>. This provides the base
18466 extension pack information with the addition of the file name.
18467 </desc>
18468 <attribute name="filePath" type="wstring" readonly="yes">
18469 <desc>
18470 The path to the extension pack file.
18471 </desc>
18472 </attribute>
18473
18474 <method name="install">
18475 <desc>
18476 Install the extension pack.
18477 </desc>
18478 <param name="replace" type="boolean" dir="in">
18479 <desc>
18480 Set this to automatically uninstall any existing extension pack with
18481 the same name as the one being installed.
18482 </desc>
18483 </param>
18484 <param name="displayInfo" type="wstring" dir="in">
18485 <desc>
18486 Platform specific display information. Reserved for future hacks.
18487 </desc>
18488 </param>
18489 <param name="progess" type="IProgress" dir="return">
18490 <desc>
18491 Progress object for the operation.
18492 </desc>
18493 </param>
18494 </method>
18495 </interface>
18496
18497 <interface
18498 name="IExtPackManager" extends="$unknown"
18499 uuid="3295e6ce-b051-47b2-9514-2c588bfe7554"
18500 wsmap="suppress"
18501 >
18502 <desc>
18503 Interface for managing VirtualBox Extension Packs.
18504
18505 TODO: Describe extension packs, how they are managed and how to create
18506 one.
18507 </desc>
18508
18509 <attribute name="installedExtPacks" type="IExtPack" safearray="yes" readonly="yes">
18510 <desc>
18511 List of the installed extension packs.
18512 </desc>
18513 </attribute>
18514
18515 <method name="find">
18516 <desc>
18517 Returns the extension pack with the specified name if found.
18518
18519 <result name="VBOX_E_OBJECT_NOT_FOUND">
18520 No extension pack matching @a name was found.
18521 </result>
18522 </desc>
18523 <param name="name" type="wstring" dir="in">
18524 <desc>The name of the extension pack to locate.</desc>
18525 </param>
18526 <param name="returnData" type="IExtPack" dir="return">
18527 <desc>The extension pack if found.</desc>
18528 </param>
18529 </method>
18530
18531 <method name="openExtPackFile">
18532 <desc>
18533 Attempts to open an extension pack file in preparation for
18534 installation.
18535 </desc>
18536 <param name="path" type="wstring" dir="in">
18537 <desc>The path of the extension pack tarball. This can optionally be
18538 followed by a "::SHA-256=hex-digit" of the tarball. </desc>
18539 </param>
18540 <param name="file" type="IExtPackFile" dir="return">
18541 <desc>The interface of the extension pack file object.</desc>
18542 </param>
18543 </method>
18544
18545 <method name="uninstall">
18546 <desc>Uninstalls an extension pack, removing all related files.</desc>
18547 <param name="name" type="wstring" dir="in">
18548 <desc>The name of the extension pack to uninstall.</desc>
18549 </param>
18550 <param name="forcedRemoval" type="boolean" dir="in">
18551 <desc>
18552 Forced removal of the extension pack. This means that the uninstall
18553 hook will not be called.
18554 </desc>
18555 </param>
18556 <param name="displayInfo" type="wstring" dir="in">
18557 <desc>
18558 Platform specific display information. Reserved for future hacks.
18559 </desc>
18560 </param>
18561 <param name="progess" type="IProgress" dir="return">
18562 <desc>
18563 Progress object for the operation.
18564 </desc>
18565 </param>
18566 </method>
18567
18568 <method name="cleanup">
18569 <desc>Cleans up failed installs and uninstalls</desc>
18570 </method>
18571
18572 <method name="queryAllPlugInsForFrontend">
18573 <desc>
18574 Gets the path to all the plug-in modules for a given frontend.
18575
18576 This is a convenience method that is intended to simplify the plug-in
18577 loading process for a frontend.
18578 </desc>
18579 <param name="frontendName" type="wstring" dir="in">
18580 <desc>The name of the frontend or component.</desc>
18581 </param>
18582 <param name="plugInModules" type="wstring" dir="return" safearray="yes">
18583 <desc>Array containing the plug-in modules (full paths).</desc>
18584 </param>
18585 </method>
18586
18587 <method name="isExtPackUsable">
18588 <desc>Check if the given extension pack is loaded and usable.</desc>
18589 <param name="name" type="wstring" dir="in">
18590 <desc>The name of the extension pack to check for.</desc>
18591 </param>
18592 <param name="usable" type="boolean" dir="return">
18593 <desc>Is the given extension pack loaded and usable.</desc>
18594 </param>
18595 </method>
18596
18597 </interface>
18598
18599 <!--
18600 // BandwidthGroupType
18601 /////////////////////////////////////////////////////////////////////////
18602 -->
18603 <enum
18604 name="BandwidthGroupType"
18605 uuid="1d92b67d-dc69-4be9-ad4c-93a01e1e0c8e">
18606
18607 <desc>
18608 Type of a bandwidth control group.
18609 </desc>
18610
18611 <const name="Null" value="0">
18612 <desc>
18613 Null type, must be first.
18614 </desc>
18615 </const>
18616
18617 <const name="Disk" value="1">
18618 <desc>
18619 The bandwidth group controls disk I/O.
18620 </desc>
18621 </const>
18622
18623 <const name="Network" value="2">
18624 <desc>
18625 The bandwidth group controls network I/O.
18626 </desc>
18627 </const>
18628
18629 </enum>
18630
18631 <!--
18632 // IBandwidthGroup
18633 /////////////////////////////////////////////////////////////////////////
18634 -->
18635 <interface
18636 name="IBandwidthGroup" extends="$unknown"
18637 uuid="badea2d7-0261-4146-89f0-6a57cc34833d"
18638 wsmap="managed"
18639 >
18640 <desc>Represents one bandwidth group.</desc>
18641
18642 <attribute name="name" type="wstring" readonly="yes">
18643 <desc>Name of the group.</desc>
18644 </attribute>
18645
18646 <attribute name="type" type="BandwidthGroupType" readonly="yes">
18647 <desc>Type of the group.</desc>
18648 </attribute>
18649
18650 <attribute name="reference" type="unsigned long" readonly="yes">
18651 <desc>How many devices/medium attachements use this group.</desc>
18652 </attribute>
18653
18654 <attribute name="maxBytesPerSec" type="long long">
18655 <desc>The maximum number of bytes which can be transfered by all
18656 entities attached to this group during one second.</desc>
18657 </attribute>
18658
18659 </interface>
18660
18661 <!--
18662 // IBandwidthControl
18663 /////////////////////////////////////////////////////////////////////////
18664 -->
18665 <interface
18666 name="IBandwidthControl" extends="$unknown"
18667 uuid="e2eb3930-d2f4-4f87-be17-0707e30f019f"
18668 wsmap="managed"
18669 >
18670 <desc>
18671 Controls the bandwidth groups of one machine used to cap I/O done by a VM.
18672 This includes network and disk I/O.
18673 </desc>
18674
18675 <attribute name="numGroups" type="unsigned long" readonly="yes">
18676 <desc>
18677 The current number of existing bandwidth groups managed.
18678 </desc>
18679 </attribute>
18680
18681 <method name="createBandwidthGroup">
18682 <desc>
18683 Creates a new bandwidth group.
18684 </desc>
18685
18686 <param name="name" type="wstring" dir="in">
18687 <desc>Name of the bandwidth group.</desc>
18688 </param>
18689 <param name="type" type="BandwidthGroupType" dir="in">
18690 <desc>The type of the bandwidth group (network or disk).</desc>
18691 </param>
18692 <param name="maxBytesPerSec" type="long long" dir="in">
18693 <desc>The maximum number of bytes which can be transfered by all
18694 entities attached to this group during one second.</desc>
18695 </param>
18696 </method>
18697
18698 <method name="deleteBandwidthGroup">
18699 <desc>
18700 Deletes a new bandwidth group.
18701 </desc>
18702
18703 <param name="name" type="wstring" dir="in">
18704 <desc>Name of the bandwidth group to delete.</desc>
18705 </param>
18706 </method>
18707
18708 <method name="getBandwidthGroup" const="yes">
18709 <desc>
18710 Get a bandwidth group by name.
18711 </desc>
18712
18713 <param name="name" type="wstring" dir="in">
18714 <desc>Name of the bandwidth group to get.</desc>
18715 </param>
18716 <param name="bandwidthGroup" type="IBandwidthGroup" dir="return">
18717 <desc>Where to store the bandwidth group on success.</desc>
18718 </param>
18719 </method>
18720
18721 <method name="getAllBandwidthGroups" const="yes">
18722 <desc>
18723 Get all managed bandwidth groups.
18724 </desc>
18725
18726 <param name="bandwidthGroups" type="IBandwidthGroup" dir="return" safearray="yes">
18727 <desc>The array of managed bandwidth groups.</desc>
18728 </param>
18729 </method>
18730 </interface>
18731
18732 <!--
18733 // IVirtualBoxClient
18734 /////////////////////////////////////////////////////////////////////////
18735 -->
18736
18737 <interface
18738 name="IVirtualBoxClient" extends="$unknown"
18739 uuid="d191281f-b0cb-4d83-a8fa-0d9fd6ba234c"
18740 wsmap="suppress"
18741 >
18742 <desc>
18743 Convenience interface for client applications. Treat this as a
18744 singleton, i.e. never create more than one instance of this interface.
18745
18746 At the moment only available for clients of the local API (not usable
18747 via the webservice). Once the session logic is redesigned this might
18748 change.
18749 </desc>
18750
18751 <attribute name="virtualBox" type="IVirtualBox" readonly="yes">
18752 <desc>
18753 Reference to the server-side API root object.
18754 </desc>
18755 </attribute>
18756
18757 <attribute name="session" type="ISession" readonly="yes">
18758 <desc>
18759 Create a new session object and return the reference to it.
18760 </desc>
18761 </attribute>
18762
18763 <attribute name="eventSource" type="IEventSource" readonly="yes">
18764 <desc>
18765 Event source for VirtualBoxClient events.
18766 </desc>
18767 </attribute>
18768
18769 <method name="checkMachineError">
18770 <desc>
18771 Perform error checking before using an <link to="IMachine"/> object.
18772 Generally useful before starting a VM and all other uses. If anything
18773 is not as it should be then this method will return an appropriate
18774 error.
18775 </desc>
18776
18777 <param name="machine" type="IMachine" dir="in">
18778 <desc>The machine object to check.</desc>
18779 </param>
18780 </method>
18781 </interface>
18782
18783 <!--
18784 // Events
18785 /////////////////////////////////////////////////////////////////////////
18786 -->
18787 <enum
18788 name="VBoxEventType"
18789 uuid="f019b8c7-22a6-468a-9f7c-3443b7b6c40a"
18790 >
18791
18792 <desc>
18793 Type of an event.
18794 See <link to="IEvent" /> for an introduction to VirtualBox event handling.
18795 </desc>
18796
18797 <const name="Invalid" value="0">
18798 <desc>
18799 Invalid event, must be first.
18800 </desc>
18801 </const>
18802
18803 <const name="Any" value="1">
18804 <desc>
18805 Wildcard for all events.
18806 Events of this type are never delivered, and only used in
18807 <link to="IEventSource::registerListener"/> call to simplify registration.
18808 </desc>
18809 </const>
18810
18811 <const name="Vetoable" value="2">
18812 <desc>
18813 Wildcard for all vetoable events. Events of this type are never delivered, and only
18814 used in <link to="IEventSource::registerListener"/> call to simplify registration.
18815 </desc>
18816 </const>
18817
18818 <const name="MachineEvent" value="3">
18819 <desc>
18820 Wildcard for all machine events. Events of this type are never delivered, and only used in
18821 <link to="IEventSource::registerListener"/> call to simplify registration.
18822 </desc>
18823 </const>
18824
18825 <const name="SnapshotEvent" value="4">
18826 <desc>
18827 Wildcard for all snapshot events. Events of this type are never delivered, and only used in
18828 <link to="IEventSource::registerListener"/> call to simplify registration.
18829 </desc>
18830 </const>
18831
18832 <const name="InputEvent" value="5">
18833 <desc>
18834 Wildcard for all input device (keyboard, mouse) events.
18835 Events of this type are never delivered, and only used in
18836 <link to="IEventSource::registerListener"/> call to simplify registration.
18837 </desc>
18838 </const>
18839
18840 <const name="LastWildcard" value="31">
18841 <desc>
18842 Last wildcard.
18843 </desc>
18844 </const>
18845
18846 <const name="OnMachineStateChanged" value="32">
18847 <desc>
18848 See <link to="IMachineStateChangedEvent">IMachineStateChangedEvent</link>.
18849 </desc>
18850 </const>
18851 <const name="OnMachineDataChanged" value="33">
18852 <desc>
18853 See <link to="IMachineDataChangedEvent">IMachineDataChangedEvent</link>.
18854 </desc>
18855 </const>
18856 <const name="OnExtraDataChanged" value="34">
18857 <desc>
18858 See <link to="IExtraDataChangedEvent">IExtraDataChangedEvent</link>.
18859 </desc>
18860 </const>
18861 <const name="OnExtraDataCanChange" value="35">
18862 <desc>
18863 See <link to="IExtraDataCanChangeEvent">IExtraDataCanChangeEvent</link>.
18864 </desc>
18865 </const>
18866 <const name="OnMediumRegistered" value="36">
18867 <desc>
18868 See <link to="IMediumRegisteredEvent">IMediumRegisteredEvent</link>.
18869 </desc>
18870 </const>
18871 <const name="OnMachineRegistered" value="37">
18872 <desc>
18873 See <link to="IMachineRegisteredEvent">IMachineRegisteredEvent</link>.
18874 </desc>
18875 </const>
18876 <const name="OnSessionStateChanged" value="38">
18877 <desc>
18878 See <link to="ISessionStateChangedEvent">ISessionStateChangedEvent</link>.
18879 </desc>
18880 </const>
18881 <const name="OnSnapshotTaken" value="39">
18882 <desc>
18883 See <link to="ISnapshotTakenEvent">ISnapshotTakenEvent</link>.
18884 </desc>
18885 </const>
18886 <const name="OnSnapshotDeleted" value="40">
18887 <desc>
18888 See <link to="ISnapshotDeletedEvent">ISnapshotDeletedEvent</link>.
18889 </desc>
18890 </const>
18891 <const name="OnSnapshotChanged" value="41">
18892 <desc>
18893 See <link to="ISnapshotChangedEvent">ISnapshotChangedEvent</link>.
18894 </desc>
18895 </const>
18896 <const name="OnGuestPropertyChanged" value="42">
18897 <desc>
18898 See <link to="IGuestPropertyChangedEvent">IGuestPropertyChangedEvent</link>.
18899 </desc>
18900 </const>
18901 <!-- Console events -->
18902 <const name="OnMousePointerShapeChanged" value="43">
18903 <desc>
18904 See <link to="IMousePointerShapeChangedEvent">IMousePointerShapeChangedEvent</link>.
18905 </desc>
18906 </const>
18907 <const name="OnMouseCapabilityChanged" value="44">
18908 <desc>
18909 See <link to="IMouseCapabilityChangedEvent">IMouseCapabilityChangedEvent</link>.
18910 </desc>
18911 </const>
18912 <const name="OnKeyboardLedsChanged" value="45">
18913 <desc>
18914 See <link to="IKeyboardLedsChangedEvent">IKeyboardLedsChangedEvent</link>.
18915 </desc>
18916 </const>
18917 <const name="OnStateChanged" value="46">
18918 <desc>
18919 See <link to="IStateChangedEvent">IStateChangedEvent</link>.
18920 </desc>
18921 </const>
18922 <const name="OnAdditionsStateChanged" value="47">
18923 <desc>
18924 See <link to="IAdditionsStateChangedEvent">IAdditionsStateChangedEvent</link>.
18925 </desc>
18926 </const>
18927 <const name="OnNetworkAdapterChanged" value="48">
18928 <desc>
18929 See <link to="INetworkAdapterChangedEvent">INetworkAdapterChangedEvent</link>.
18930 </desc>
18931 </const>
18932 <const name="OnSerialPortChanged" value="49">
18933 <desc>
18934 See <link to="ISerialPortChangedEvent">ISerialPortChangedEvent</link>.
18935 </desc>
18936 </const>
18937 <const name="OnParallelPortChanged" value="50">
18938 <desc>
18939 See <link to="IParallelPortChangedEvent">IParallelPortChangedEvent</link>.
18940 </desc>
18941 </const>
18942 <const name="OnStorageControllerChanged" value="51">
18943 <desc>
18944 See <link to="IStorageControllerChangedEvent">IStorageControllerChangedEvent</link>.
18945 </desc>
18946 </const>
18947 <const name="OnMediumChanged" value="52">
18948 <desc>
18949 See <link to="IMediumChangedEvent">IMediumChangedEvent</link>.
18950 </desc>
18951 </const>
18952 <const name="OnVRDEServerChanged" value="53">
18953 <desc>
18954 See <link to="IVRDEServerChangedEvent">IVRDEServerChangedEvent</link>.
18955 </desc>
18956 </const>
18957 <const name="OnUSBControllerChanged" value="54">
18958 <desc>
18959 See <link to="IUSBControllerChangedEvent">IUSBControllerChangedEvent</link>.
18960 </desc>
18961 </const>
18962 <const name="OnUSBDeviceStateChanged" value="55">
18963 <desc>
18964 See <link to="IUSBDeviceStateChangedEvent">IUSBDeviceStateChangedEvent</link>.
18965 </desc>
18966 </const>
18967 <const name="OnSharedFolderChanged" value="56">
18968 <desc>
18969 See <link to="ISharedFolderChangedEvent">ISharedFolderChangedEvent</link>.
18970 </desc>
18971 </const>
18972 <const name="OnRuntimeError" value="57">
18973 <desc>
18974 See <link to="IRuntimeErrorEvent">IRuntimeErrorEvent</link>.
18975 </desc>
18976 </const>
18977 <const name="OnCanShowWindow" value="58">
18978 <desc>
18979 See <link to="ICanShowWindowEvent">ICanShowWindowEvent</link>.
18980 </desc>
18981 </const>
18982 <const name="OnShowWindow" value="59">
18983 <desc>
18984 See <link to="IShowWindowEvent">IShowWindowEvent</link>.
18985 </desc>
18986 </const>
18987 <const name="OnCPUChanged" value="60">
18988 <desc>
18989 See <link to="ICPUChangedEvent">ICPUChangedEvent</link>.
18990 </desc>
18991 </const>
18992 <const name="OnVRDEServerInfoChanged" value="61">
18993 <desc>
18994 See <link to="IVRDEServerInfoChangedEvent">IVRDEServerInfoChangedEvent</link>.
18995 </desc>
18996 </const>
18997 <const name="OnEventSourceChanged" value="62">
18998 <desc>
18999 See <link to="IEventSourceChangedEvent">IEventSourceChangedEvent</link>.
19000 </desc>
19001 </const>
19002 <const name="OnCPUExecutionCapChanged" value="63">
19003 <desc>
19004 See <link to="ICPUExecutionCapChangedEvent">ICPUExecutionCapChangedEvent</link>.
19005 </desc>
19006 </const>
19007 <const name="OnGuestKeyboard" value="64">
19008 <desc>
19009 See <link to="IGuestKeyboardEvent">IGuestKeyboardEvent</link>.
19010 </desc>
19011 </const>
19012 <const name="OnGuestMouse" value="65">
19013 <desc>
19014 See <link to="IGuestMouseEvent">IGuestMouseEvent</link>.
19015 </desc>
19016 </const>
19017 <const name="OnNATRedirect" value="66">
19018 <desc>
19019 See <link to="INATRedirectEvent">INATRedirectEvent</link>.
19020 </desc>
19021 </const>
19022 <const name="OnHostPCIDevicePlug" value="67">
19023 <desc>
19024 See <link to="IHostPCIDevicePlugEvent">IHostPCIDevicePlugEvent</link>.
19025 </desc>
19026 </const>
19027 <const name="OnVBoxSVCAvailabilityChanged" value="68">
19028 <desc>
19029 See <link to="IVBoxSVCAvailabilityChangedEvent">IVBoxSVCAvailablityChangedEvent</link>.
19030 </desc>
19031 </const>
19032 <const name="OnBandwidthGroupChanged" value="69">
19033 <desc>
19034 See <link to="IBandwidthGroupChangedEvent">IBandwidthGroupChangedEvent</link>.
19035 </desc>
19036 </const>
19037 <const name="OnGuestMonitorChanged" value="70">
19038 <desc>
19039 See <link to="IGuestMonitorChangedEvent">IGuestMonitorChangedEvent</link>.
19040 </desc>
19041 </const>
19042 <const name="OnStorageDeviceChanged" value="71">
19043 <desc>
19044 See <link to="IStorageDeviceChangedEvent">IStorageDeviceChangedEvent</link>.
19045 </desc>
19046 </const>
19047 <const name="OnClipboardModeChanged" value="72">
19048 <desc>
19049 See <link to="IClipboardModeChangedEvent">IClipboardModeChangedEvent</link>.
19050 </desc>
19051 </const>
19052 <const name="OnDragAndDropModeChanged" value="73">
19053 <desc>
19054 See <link to="IDragAndDropModeChangedEvent">IDragAndDropModeChangedEvent</link>.
19055 </desc>
19056 </const>
19057 <const name="OnNATNetworkChanged" value="74">
19058 <desc>
19059 See <link to="INATNetworkChangedEvent">INATNetworkChangedEvent</link>.
19060 </desc>
19061 </const>
19062 <const name="OnNATNetworkStartStop" value="75">
19063 <desc>
19064 See <link to="INATNetworkStartStopEvent">INATNetworkStartStopEvent</link>.
19065 </desc>
19066 </const>
19067 <const name="OnNATNetworkAlter" value="76">
19068 <desc>
19069 See <link to="INATNetworkAlterEvent">INATNetworkAlterEvent</link>.
19070 </desc>
19071 </const>
19072 <const name="OnNATNetworkCreationDeletion" value="77">
19073 <desc>
19074 See <link to="INATNetworkCreationDeletionEvent">INATNetworkCreationDeletionEvent</link>.
19075 </desc>
19076 </const>
19077 <const name="OnNATNetworkSetting" value="78">
19078 <desc>
19079 See <link to="INATNetworkSettingEvent">INATNetworkSettingEvent</link>.
19080 </desc>
19081 </const>
19082 <const name="OnNATNetworkPortForward" value="79">
19083 <desc>
19084 See <link to="INATNetworkPortForwardEvent">INATNetworkPortForwardEvent</link>.
19085 </desc>
19086 </const>
19087 <const name="OnGuestSessionStateChanged" value="80">
19088 <desc>
19089 See <link to="IGuestSessionStateChangedEvent">IGuestSessionStateChangedEvent</link>.
19090 </desc>
19091 </const>
19092 <const name="OnGuestSessionRegistered" value="81">
19093 <desc>
19094 See <link to="IGuestSessionRegisteredEvent">IGuestSessionRegisteredEvent</link>.
19095 </desc>
19096 </const>
19097 <const name="OnGuestProcessRegistered" value="82">
19098 <desc>
19099 See <link to="IGuestProcessRegisteredEvent">IGuestProcessRegisteredEvent</link>.
19100 </desc>
19101 </const>
19102 <const name="OnGuestProcessStateChanged" value="83">
19103 <desc>
19104 See <link to="IGuestProcessStateChangedEvent">IGuestProcessStateChangedEvent</link>.
19105 </desc>
19106 </const>
19107 <const name="OnGuestProcessInputNotify" value="84">
19108 <desc>
19109 See <link to="IGuestProcessInputNotifyEvent">IGuestProcessInputNotifyEvent</link>.
19110 </desc>
19111 </const>
19112 <const name="OnGuestProcessOutput" value="85">
19113 <desc>
19114 See <link to="IGuestProcessOutputEvent">IGuestProcessOutputEvent</link>.
19115 </desc>
19116 </const>
19117 <const name="OnGuestFileRegistered" value="86">
19118 <desc>
19119 See <link to="IGuestFileRegisteredEvent">IGuestFileRegisteredEvent</link>.
19120 </desc>
19121 </const>
19122 <const name="OnGuestFileStateChanged" value="87">
19123 <desc>
19124 See <link to="IGuestFileStateChangedEvent">IGuestFileStateChangedEvent</link>.
19125 </desc>
19126 </const>
19127 <const name="OnGuestFileOffsetChanged" value="88">
19128 <desc>
19129 See <link to="IGuestFileOffsetChangedEvent">IGuestFileOffsetChangedEvent</link>.
19130 </desc>
19131 </const>
19132 <const name="OnGuestFileRead" value="89">
19133 <desc>
19134 See <link to="IGuestFileReadEvent">IGuestFileReadEvent</link>.
19135
19136 <note internal="yes">For performance reasons this is a separate event to
19137 not unnecessarily overflow the event queue.</note>
19138 </desc>
19139 </const>
19140 <const name="OnGuestFileWrite" value="90">
19141 <desc>
19142 See <link to="IGuestFileWriteEvent">IGuestFileWriteEvent</link>.
19143
19144 <note internal="yes">For performance reasons this is a separate event to
19145 not unnecessarily overflow the event queue.</note>
19146 </desc>
19147 </const>
19148 <const name="OnVideoCaptureChanged" value="91">
19149 <desc>
19150 See <link to="IVideoCaptureChangedEvent">IVideoCapturedChangeEvent</link>.
19151 </desc>
19152 </const>
19153 <!-- Last event marker -->
19154 <const name="Last" value="92">
19155 <desc>
19156 Must be last event, used for iterations and structures relying on numerical event values.
19157 </desc>
19158 </const>
19159
19160 </enum>
19161
19162 <interface
19163 name="IEventSource" extends="$unknown"
19164 uuid="9b6e1aee-35f3-4f4d-b5bb-ed0ecefd8538"
19165 wsmap="managed"
19166 >
19167 <desc>
19168 Event source. Generally, any object which could generate events can be an event source,
19169 or aggregate one. To simplify using one-way protocols such as webservices running on top of HTTP(S),
19170 an event source can work with listeners in either active or passive mode. In active mode it is up to
19171 the IEventSource implementation to call <link to="IEventListener::handleEvent" />, in passive mode the
19172 event source keeps track of pending events for each listener and returns available events on demand.
19173
19174 See <link to="IEvent" /> for an introduction to VirtualBox event handling.
19175 </desc>
19176
19177 <method name="createListener">
19178 <desc>
19179 Creates a new listener object, useful for passive mode.
19180 </desc>
19181 <param name="listener" type="IEventListener" dir="return"/>
19182 </method>
19183
19184 <method name="createAggregator">
19185 <desc>
19186 Creates an aggregator event source, collecting events from multiple sources.
19187 This way a single listener can listen for events coming from multiple sources,
19188 using a single blocking <link to="#getEvent"/> on the returned aggregator.
19189 </desc>
19190 <param name="subordinates" type="IEventSource" dir="in" safearray="yes">
19191 <desc>
19192 Subordinate event source this one aggregatres.
19193 </desc>
19194 </param>
19195 <param name="result" type="IEventSource" dir="return">
19196 <desc>
19197 Event source aggregating passed sources.
19198 </desc>
19199 </param>
19200 </method>
19201
19202 <method name="registerListener">
19203 <desc>
19204 Register an event listener.
19205
19206 <note>
19207 To avoid system overload, the VirtualBox server process checks if passive event
19208 listeners call <link to="IEventSource::getEvent"/> frequently enough. In the
19209 current implementation, if more than 500 pending events are detected for a passive
19210 event listener, it is forcefully unregistered by the system, and further
19211 <link to="#getEvent" /> calls will return @c VBOX_E_OBJECT_NOT_FOUND.
19212 </note>
19213 </desc>
19214 <param name="listener" type="IEventListener" dir="in">
19215 <desc>Listener to register.</desc>
19216 </param>
19217 <param name="interesting" type="VBoxEventType" dir="in" safearray="yes">
19218 <desc>
19219 Event types listener is interested in. One can use wildcards like -
19220 <link to="VBoxEventType_Any"/> to specify wildcards, matching more
19221 than one event.
19222 </desc>
19223 </param>
19224 <param name="active" type="boolean" dir="in">
19225 <desc>
19226 Which mode this listener is operating in.
19227 In active mode, <link to="IEventListener::handleEvent" /> is called directly.
19228 In passive mode, an internal event queue is created for this this IEventListener.
19229 For each event coming in, it is added to queues for all interested registered passive
19230 listeners. It is then up to the external code to call the listener's
19231 <link to="IEventListener::handleEvent" /> method. When done with an event, the
19232 external code must call <link to="#eventProcessed" />.
19233 </desc>
19234 </param>
19235 </method>
19236
19237 <method name="unregisterListener">
19238 <desc>
19239 Unregister an event listener. If listener is passive, and some waitable events are still
19240 in queue they are marked as processed automatically.
19241 </desc>
19242 <param name="listener" type="IEventListener" dir="in">
19243 <desc>Listener to unregister.</desc>
19244 </param>
19245 </method>
19246
19247 <method name="fireEvent">
19248 <desc>
19249 Fire an event for this source.
19250 </desc>
19251 <param name="event" type="IEvent" dir="in">
19252 <desc>Event to deliver.</desc>
19253 </param>
19254 <param name="timeout" type="long" dir="in">
19255 <desc>
19256 Maximum time to wait for event processing (if event is waitable), in ms;
19257 0 = no wait, -1 = indefinite wait.
19258 </desc>
19259 </param>
19260 <param name="result" type="boolean" dir="return">
19261 <desc>true if an event was delivered to all targets, or is non-waitable.</desc>
19262 </param>
19263 </method>
19264
19265 <method name="getEvent">
19266 <desc>
19267 Get events from this peer's event queue (for passive mode). Calling this method
19268 regularly is required for passive event listeners to avoid system overload;
19269 see <link to="IEventSource::registerListener" /> for details.
19270
19271 <result name="VBOX_E_OBJECT_NOT_FOUND">
19272 Listener is not registered, or autounregistered.
19273 </result>
19274 </desc>
19275 <param name="listener" type="IEventListener" dir="in">
19276 <desc>Which listener to get data for.</desc>
19277 </param>
19278 <param name="timeout" type="long" dir="in">
19279 <desc>
19280 Maximum time to wait for events, in ms;
19281 0 = no wait, -1 = indefinite wait.
19282 </desc>
19283 </param>
19284 <param name="event" type="IEvent" dir="return">
19285 <desc>Event retrieved, or null if none available.</desc>
19286 </param>
19287 </method>
19288
19289 <method name="eventProcessed">
19290 <desc>
19291 Must be called for waitable events after a particular listener finished its
19292 event processing. When all listeners of a particular event have called this
19293 method, the system will then call <link to="IEvent::setProcessed" />.
19294 </desc>
19295 <param name="listener" type="IEventListener" dir="in">
19296 <desc>Which listener processed event.</desc>
19297 </param>
19298 <param name="event" type="IEvent" dir="in">
19299 <desc>Which event.</desc>
19300 </param>
19301 </method>
19302
19303 </interface>
19304
19305 <interface
19306 name="IEventListener" extends="$unknown"
19307 uuid="67099191-32e7-4f6c-85ee-422304c71b90"
19308 wsmap="managed"
19309 >
19310 <desc>
19311 Event listener. An event listener can work in either active or passive mode, depending on the way
19312 it was registered.
19313 See <link to="IEvent" /> for an introduction to VirtualBox event handling.
19314 </desc>
19315
19316 <method name="handleEvent">
19317 <desc>
19318 Handle event callback for active listeners. It is not called for
19319 passive listeners. After calling <link to="#handleEvent"/> on all active listeners
19320 and having received acknowledgement from all passive listeners via
19321 <link to="IEventSource::eventProcessed"/>, the event is marked as
19322 processed and <link to="IEvent::waitProcessed"/> will return
19323 immediately.
19324 </desc>
19325 <param name="event" type="IEvent" dir="in">
19326 <desc>Event available.</desc>
19327 </param>
19328 </method>
19329
19330 </interface>
19331
19332 <interface
19333 name="IEvent" extends="$unknown"
19334 uuid="0ca2adba-8f30-401b-a8cd-fe31dbe839c0"
19335 wsmap="managed"
19336 >
19337 <desc>
19338 Abstract parent interface for VirtualBox events. Actual events will typically implement
19339 a more specific interface which derives from this (see below).
19340
19341 <b>Introduction to VirtualBox events</b>
19342
19343 Generally speaking, an event (represented by this interface) signals that something
19344 happened, while an event listener (see <link to="IEventListener" />) represents an
19345 entity that is interested in certain events. In order for this to work with
19346 unidirectional protocols (i.e. web services), the concepts of passive and active
19347 listener are used.
19348
19349 Event consumers can register themselves as listeners, providing an array of
19350 events they are interested in (see <link to="IEventSource::registerListener" />).
19351 When an event triggers, the listener is notified about the event. The exact
19352 mechanism of the notification depends on whether the listener was registered as
19353 an active or passive listener:
19354
19355 <ul>
19356 <li>An active listener is very similar to a callback: it is a function invoked
19357 by the API. As opposed to the callbacks that were used in the API before
19358 VirtualBox 4.0 however, events are now objects with an interface hierarchy.
19359 </li>
19360
19361 <li>Passive listeners are somewhat trickier to implement, but do not require
19362 a client function to be callable, which is not an option with scripting
19363 languages or web service clients. Internally the <link to="IEventSource" />
19364 implementation maintains an event queue for each passive listener, and
19365 newly arrived events are put in this queue. When the listener calls
19366 <link to="IEventSource::getEvent"/>, first element from its internal event
19367 queue is returned. When the client completes processing of an event,
19368 the <link to="IEventSource::eventProcessed" /> function must be called,
19369 acknowledging that the event was processed. It supports implementing
19370 waitable events. On passive listener unregistration, all events from its
19371 queue are auto-acknowledged.
19372 </li>
19373 </ul>
19374
19375 Waitable events are useful in situations where the event generator wants to track
19376 delivery or a party wants to wait until all listeners have completed the event. A
19377 typical example would be a vetoable event (see <link to="IVetoEvent" />) where a
19378 listeners might veto a certain action, and thus the event producer has to make
19379 sure that all listeners have processed the event and not vetoed before taking
19380 the action.
19381
19382 A given event may have both passive and active listeners at the same time.
19383
19384 <b>Using events</b>
19385
19386 Any VirtualBox object capable of producing externally visible events provides an
19387 @c eventSource read-only attribute, which is of the type <link to="IEventSource" />.
19388 This event source object is notified by VirtualBox once something has happened, so
19389 consumers may register event listeners with this event source. To register a listener,
19390 an object implementing the <link to="IEventListener" /> interface must be provided.
19391 For active listeners, such an object is typically created by the consumer, while for
19392 passive listeners <link to="IEventSource::createListener" /> should be used. Please
19393 note that a listener created with <link to="IEventSource::createListener"/> must not be used as an active listener.
19394
19395 Once created, the listener must be registered to listen for the desired events
19396 (see <link to="IEventSource::registerListener" />), providing an array of
19397 <link to="VBoxEventType" /> enums. Those elements can either be the individual
19398 event IDs or wildcards matching multiple event IDs.
19399
19400 After registration, the callback's <link to="IEventListener::handleEvent" /> method is
19401 called automatically when the event is triggered, while passive listeners have to call
19402 <link to="IEventSource::getEvent" /> and <link to="IEventSource::eventProcessed" /> in
19403 an event processing loop.
19404
19405 The IEvent interface is an abstract parent interface for all such VirtualBox events
19406 coming in. As a result, the standard use pattern inside <link to="IEventListener::handleEvent" />
19407 or the event processing loop is to check the <link to="#type" /> attribute of the event and
19408 then cast to the appropriate specific interface using @c QueryInterface().
19409 </desc>
19410
19411 <attribute name="type" readonly="yes" type="VBoxEventType">
19412 <desc>
19413 Event type.
19414 </desc>
19415 </attribute>
19416
19417 <attribute name="source" readonly="yes" type="IEventSource">
19418 <desc>
19419 Source of this event.
19420 </desc>
19421 </attribute>
19422
19423 <attribute name="waitable" readonly="yes" type="boolean">
19424 <desc>
19425 If we can wait for this event being processed. If false, <link to="#waitProcessed"/> returns immediately,
19426 and <link to="#setProcessed"/> doesn't make sense. Non-waitable events are generally better performing,
19427 as no additional overhead associated with waitability imposed.
19428 Waitable events are needed when one need to be able to wait for particular event processed,
19429 for example for vetoable changes, or if event refers to some resource which need to be kept immutable
19430 until all consumers confirmed events.
19431 </desc>
19432 </attribute>
19433
19434 <method name="setProcessed">
19435 <desc>
19436 Internal method called by the system when all listeners of a particular event have called
19437 <link to="IEventSource::eventProcessed" />. This should not be called by client code.
19438 </desc>
19439 </method>
19440
19441 <method name="waitProcessed">
19442 <desc>
19443 Wait until time outs, or this event is processed. Event must be waitable for this operation to have
19444 described semantics, for non-waitable returns true immediately.
19445 </desc>
19446 <param name="timeout" type="long" dir="in">
19447 <desc>
19448 Maximum time to wait for event processeing, in ms;
19449 0 = no wait, -1 = indefinite wait.
19450 </desc>
19451 </param>
19452 <param name="result" type="boolean" dir="return">
19453 <desc>If this event was processed before timeout.</desc>
19454 </param>
19455 </method>
19456 </interface>
19457
19458
19459 <interface
19460 name="IReusableEvent" extends="IEvent"
19461 uuid="69bfb134-80f6-4266-8e20-16371f68fa25"
19462 wsmap="managed"
19463 >
19464 <desc>Base abstract interface for all reusable events.</desc>
19465
19466 <attribute name="generation" readonly="yes" type="unsigned long">
19467 <desc>Current generation of event, incremented on reuse.</desc>
19468 </attribute>
19469
19470 <method name="reuse">
19471 <desc>
19472 Marks an event as reused, increments 'generation', fields shall no
19473 longer be considered valid.
19474 </desc>
19475 </method>
19476 </interface>
19477
19478 <interface
19479 name="IMachineEvent" extends="IEvent"
19480 uuid="92ed7b1a-0d96-40ed-ae46-a564d484325e"
19481 wsmap="managed" id="MachineEvent"
19482 >
19483 <desc>Base abstract interface for all machine events.</desc>
19484
19485 <attribute name="machineId" readonly="yes" type="uuid" mod="string">
19486 <desc>ID of the machine this event relates to.</desc>
19487 </attribute>
19488
19489 </interface>
19490
19491 <interface
19492 name="IMachineStateChangedEvent" extends="IMachineEvent"
19493 uuid="5748F794-48DF-438D-85EB-98FFD70D18C9"
19494 wsmap="managed" autogen="VBoxEvent" id="OnMachineStateChanged"
19495 >
19496 <desc>Machine state change event.</desc>
19497
19498 <attribute name="state" readonly="yes" type="MachineState">
19499 <desc>New execution state.</desc>
19500 </attribute>
19501 </interface>
19502
19503 <interface
19504 name="IMachineDataChangedEvent" extends="IMachineEvent"
19505 uuid="abe94809-2e88-4436-83d7-50f3e64d0503"
19506 wsmap="managed" autogen="VBoxEvent" id="OnMachineDataChanged"
19507 >
19508 <desc>
19509 Any of the settings of the given machine has changed.
19510 </desc>
19511
19512 <attribute name="temporary" readonly="yes" type="boolean">
19513 <desc>@c true if the settings change is temporary. All permanent
19514 settings changes will trigger an event, and only temporary settings
19515 changes for running VMs will trigger an event. Note: sending events
19516 for temporary changes is NOT IMPLEMENTED.</desc>
19517 </attribute>
19518 </interface>
19519
19520 <interface
19521 name="IMediumRegisteredEvent" extends="IEvent"
19522 uuid="53fac49a-b7f1-4a5a-a4ef-a11dd9c2a458"
19523 wsmap="managed" autogen="VBoxEvent" id="OnMediumRegistered"
19524 >
19525 <desc>
19526 The given medium was registered or unregistered
19527 within this VirtualBox installation.
19528 </desc>
19529
19530 <attribute name="mediumId" readonly="yes" type="uuid" mod="string">
19531 <desc>ID of the medium this event relates to.</desc>
19532 </attribute>
19533
19534 <attribute name="mediumType" readonly="yes" type="DeviceType">
19535 <desc>Type of the medium this event relates to.</desc>
19536 </attribute>
19537
19538 <attribute name="registered" type="boolean" readonly="yes">
19539 <desc>
19540 If @c true, the medium was registered, otherwise it was
19541 unregistered.
19542 </desc>
19543 </attribute>
19544 </interface>
19545
19546 <interface
19547 name="IMachineRegisteredEvent" extends="IMachineEvent"
19548 uuid="c354a762-3ff2-4f2e-8f09-07382ee25088"
19549 wsmap="managed" autogen="VBoxEvent" id="OnMachineRegistered"
19550 >
19551 <desc>
19552 The given machine was registered or unregistered
19553 within this VirtualBox installation.
19554 </desc>
19555
19556 <attribute name="registered" type="boolean" readonly="yes">
19557 <desc>
19558 If @c true, the machine was registered, otherwise it was
19559 unregistered.
19560 </desc>
19561 </attribute>
19562 </interface>
19563
19564 <interface
19565 name="ISessionStateChangedEvent" extends="IMachineEvent"
19566 uuid="714a3eef-799a-4489-86cd-fe8e45b2ff8e"
19567 wsmap="managed" autogen="VBoxEvent" id="OnSessionStateChanged"
19568 >
19569 <desc>
19570 The state of the session for the given machine was changed.
19571 <see><link to="IMachine::sessionState"/></see>
19572 </desc>
19573
19574 <attribute name="state" type="SessionState" readonly="yes">
19575 <desc>
19576 New session state.
19577 </desc>
19578 </attribute>
19579 </interface>
19580
19581 <interface
19582 name="IGuestPropertyChangedEvent" extends="IMachineEvent"
19583 uuid="3f63597a-26f1-4edb-8dd2-6bddd0912368"
19584 wsmap="managed" autogen="VBoxEvent" id="OnGuestPropertyChanged"
19585 >
19586 <desc>
19587 Notification when a guest property has changed.
19588 </desc>
19589
19590 <attribute name="name" readonly="yes" type="wstring">
19591 <desc>
19592 The name of the property that has changed.
19593 </desc>
19594 </attribute>
19595
19596 <attribute name="value" readonly="yes" type="wstring">
19597 <desc>
19598 The new property value.
19599 </desc>
19600 </attribute>
19601
19602 <attribute name="flags" readonly="yes" type="wstring">
19603 <desc>
19604 The new property flags.
19605 </desc>
19606 </attribute>
19607
19608 </interface>
19609
19610 <interface
19611 name="ISnapshotEvent" extends="IMachineEvent"
19612 uuid="21637b0e-34b8-42d3-acfb-7e96daf77c22"
19613 wsmap="managed" id="SnapshotEvent"
19614 >
19615 <desc>Base interface for all snapshot events.</desc>
19616
19617 <attribute name="snapshotId" readonly="yes" type="uuid" mod="string">
19618 <desc>ID of the snapshot this event relates to.</desc>
19619 </attribute>
19620
19621 </interface>
19622
19623 <interface
19624 name="ISnapshotTakenEvent" extends="ISnapshotEvent"
19625 uuid="d27c0b3d-6038-422c-b45e-6d4a0503d9f1"
19626 wsmap="managed" autogen="VBoxEvent" id="OnSnapshotTaken"
19627 >
19628 <desc>
19629 A new snapshot of the machine has been taken.
19630 <see><link to="ISnapshot"/></see>
19631 </desc>
19632 </interface>
19633
19634 <interface
19635 name="ISnapshotDeletedEvent" extends="ISnapshotEvent"
19636 uuid="c48f3401-4a9e-43f4-b7a7-54bd285e22f4"
19637 wsmap="managed" autogen="VBoxEvent" id="OnSnapshotDeleted"
19638 >
19639 <desc>
19640 Snapshot of the given machine has been deleted.
19641
19642 <note>
19643 This notification is delivered <b>after</b> the snapshot
19644 object has been uninitialized on the server (so that any
19645 attempt to call its methods will return an error).
19646 </note>
19647
19648 <see><link to="ISnapshot"/></see>
19649 </desc>
19650 </interface>
19651
19652 <interface
19653 name="ISnapshotChangedEvent" extends="ISnapshotEvent"
19654 uuid="07541941-8079-447a-a33e-47a69c7980db"
19655 wsmap="managed" autogen="VBoxEvent" id="OnSnapshotChanged"
19656 >
19657 <desc>
19658 Snapshot properties (name and/or description) have been changed.
19659 <see><link to="ISnapshot"/></see>
19660 </desc>
19661 </interface>
19662
19663 <interface
19664 name="IMousePointerShapeChangedEvent" extends="IEvent"
19665 uuid="a6dcf6e8-416b-4181-8c4a-45ec95177aef"
19666 wsmap="managed" autogen="VBoxEvent" id="OnMousePointerShapeChanged"
19667 >
19668 <desc>
19669 Notification when the guest mouse pointer shape has
19670 changed. The new shape data is given.
19671 </desc>
19672
19673 <attribute name="visible" type="boolean" readonly="yes">
19674 <desc>
19675 Flag whether the pointer is visible.
19676 </desc>
19677 </attribute>
19678 <attribute name="alpha" type="boolean" readonly="yes">
19679 <desc>
19680 Flag whether the pointer has an alpha channel.
19681 </desc>
19682 </attribute>
19683 <attribute name="xhot" type="unsigned long" readonly="yes">
19684 <desc>
19685 The pointer hot spot X coordinate.
19686 </desc>
19687 </attribute>
19688 <attribute name="yhot" type="unsigned long" readonly="yes">
19689 <desc>
19690 The pointer hot spot Y coordinate.
19691 </desc>
19692 </attribute>
19693 <attribute name="width" type="unsigned long" readonly="yes">
19694 <desc>
19695 Width of the pointer shape in pixels.
19696 </desc>
19697 </attribute>
19698 <attribute name="height" type="unsigned long" readonly="yes">
19699 <desc>
19700 Height of the pointer shape in pixels.
19701 </desc>
19702 </attribute>
19703 <attribute name="shape" type="octet" safearray="yes" readonly="yes">
19704 <desc>
19705 Shape buffer arrays.
19706
19707 The @a shape buffer contains a 1-bpp (bits per pixel) AND mask
19708 followed by a 32-bpp XOR (color) mask.
19709
19710 For pointers without alpha channel the XOR mask pixels are
19711 32-bit values: (lsb)BGR0(msb). For pointers with alpha channel
19712 the XOR mask consists of (lsb)BGRA(msb) 32-bit values.
19713
19714 An AND mask is used for pointers with alpha channel, so if the
19715 callback does not support alpha, the pointer could be
19716 displayed as a normal color pointer.
19717
19718 The AND mask is a 1-bpp bitmap with byte aligned scanlines. The
19719 size of the AND mask therefore is <tt>cbAnd = (width + 7) / 8 *
19720 height</tt>. The padding bits at the end of each scanline are
19721 undefined.
19722
19723 The XOR mask follows the AND mask on the next 4-byte aligned
19724 offset: <tt>uint8_t *pXor = pAnd + (cbAnd + 3) &amp; ~3</tt>.
19725 Bytes in the gap between the AND and the XOR mask are undefined.
19726 The XOR mask scanlines have no gap between them and the size of
19727 the XOR mask is: <tt>cXor = width * 4 * height</tt>.
19728
19729 <note>
19730 If @a shape is 0, only the pointer visibility is changed.
19731 </note>
19732 </desc>
19733 </attribute>
19734 </interface>
19735
19736 <interface
19737 name="IMouseCapabilityChangedEvent" extends="IEvent"
19738 uuid="d633ad48-820c-4207-b46c-6bd3596640d5"
19739 wsmap="managed" autogen="VBoxEvent" id="OnMouseCapabilityChanged"
19740 >
19741 <desc>
19742 Notification when the mouse capabilities reported by the
19743 guest have changed. The new capabilities are passed.
19744 </desc>
19745 <attribute name="supportsAbsolute" type="boolean" readonly="yes">
19746 <desc>
19747 Supports absolute coordinates.
19748 </desc>
19749 </attribute>
19750 <attribute name="supportsRelative" type="boolean" readonly="yes">
19751 <desc>
19752 Supports relative coordinates.
19753 </desc>
19754 </attribute>
19755 <attribute name="needsHostCursor" type="boolean" readonly="yes">
19756 <desc>
19757 If host cursor is needed.
19758 </desc>
19759 </attribute>
19760 </interface>
19761
19762 <interface
19763 name="IKeyboardLedsChangedEvent" extends="IEvent"
19764 uuid="6DDEF35E-4737-457B-99FC-BC52C851A44F"
19765 wsmap="managed" autogen="VBoxEvent" id="OnKeyboardLedsChanged"
19766 >
19767 <desc>
19768 Notification when the guest OS executes the KBD_CMD_SET_LEDS command
19769 to alter the state of the keyboard LEDs.
19770 </desc>
19771 <attribute name="numLock" type="boolean" readonly="yes">
19772 <desc>
19773 NumLock status.
19774 </desc>
19775 </attribute>
19776 <attribute name="capsLock" type="boolean" readonly="yes">
19777 <desc>
19778 CapsLock status.
19779 </desc>
19780 </attribute>
19781 <attribute name="scrollLock" type="boolean" readonly="yes">
19782 <desc>
19783 ScrollLock status.
19784 </desc>
19785 </attribute>
19786 </interface>
19787
19788 <interface
19789 name="IStateChangedEvent" extends="IEvent"
19790 uuid="4376693C-CF37-453B-9289-3B0F521CAF27"
19791 wsmap="managed" autogen="VBoxEvent" id="OnStateChanged"
19792 >
19793 <desc>
19794 Notification when the execution state of the machine has changed.
19795 The new state is given.
19796 </desc>
19797 <attribute name="state" type="MachineState" readonly="yes">
19798 <desc>
19799 New machine state.
19800 </desc>
19801 </attribute>
19802 </interface>
19803
19804 <interface
19805 name="IAdditionsStateChangedEvent" extends="IEvent"
19806 uuid="D70F7915-DA7C-44C8-A7AC-9F173490446A"
19807 wsmap="managed" autogen="VBoxEvent" id="OnAdditionsStateChanged"
19808 >
19809 <desc>
19810 Notification when a Guest Additions property changes.
19811 Interested callees should query IGuest attributes to
19812 find out what has changed.
19813 </desc>
19814 </interface>
19815
19816 <interface
19817 name="INetworkAdapterChangedEvent" extends="IEvent"
19818 uuid="08889892-1EC6-4883-801D-77F56CFD0103"
19819 wsmap="managed" autogen="VBoxEvent" id="OnNetworkAdapterChanged"
19820 >
19821 <desc>
19822 Notification when a property of one of the
19823 virtual <link to="IMachine::getNetworkAdapter">network adapters</link>
19824 changes. Interested callees should use INetworkAdapter methods and
19825 attributes to find out what has changed.
19826 </desc>
19827 <attribute name="networkAdapter" type="INetworkAdapter" readonly="yes">
19828 <desc>
19829 Network adapter that is subject to change.
19830 </desc>
19831 </attribute>
19832 </interface>
19833
19834 <interface
19835 name="ISerialPortChangedEvent" extends="IEvent"
19836 uuid="3BA329DC-659C-488B-835C-4ECA7AE71C6C"
19837 wsmap="managed" autogen="VBoxEvent" id="OnSerialPortChanged"
19838 >
19839 <desc>
19840 Notification when a property of one of the
19841 virtual <link to="IMachine::getSerialPort">serial ports</link> changes.
19842 Interested callees should use ISerialPort methods and attributes
19843 to find out what has changed.
19844 </desc>
19845 <attribute name="serialPort" type="ISerialPort" readonly="yes">
19846 <desc>
19847 Serial port that is subject to change.
19848 </desc>
19849 </attribute>
19850 </interface>
19851
19852 <interface
19853 name="IParallelPortChangedEvent" extends="IEvent"
19854 uuid="813C99FC-9849-4F47-813E-24A75DC85615"
19855 wsmap="managed" autogen="VBoxEvent" id="OnParallelPortChanged"
19856 >
19857 <desc>
19858 Notification when a property of one of the
19859 virtual <link to="IMachine::getParallelPort">parallel ports</link>
19860 changes. Interested callees should use ISerialPort methods and
19861 attributes to find out what has changed.
19862 </desc>
19863 <attribute name="parallelPort" type="IParallelPort" readonly="yes">
19864 <desc>
19865 Parallel port that is subject to change.
19866 </desc>
19867 </attribute>
19868 </interface>
19869
19870 <interface
19871 name="IStorageControllerChangedEvent" extends="IEvent"
19872 uuid="715212BF-DA59-426E-8230-3831FAA52C56"
19873 wsmap="managed" autogen="VBoxEvent" id="OnStorageControllerChanged"
19874 >
19875 <desc>
19876 Notification when a
19877 <link to="IMachine::mediumAttachments">medium attachment</link>
19878 changes.
19879 </desc>
19880 </interface>
19881
19882 <interface
19883 name="IMediumChangedEvent" extends="IEvent"
19884 uuid="0FE2DA40-5637-472A-9736-72019EABD7DE"
19885 wsmap="managed" autogen="VBoxEvent" id="OnMediumChanged"
19886 >
19887 <desc>
19888 Notification when a
19889 <link to="IMachine::mediumAttachments">medium attachment</link>
19890 changes.
19891 </desc>
19892 <attribute name="mediumAttachment" type="IMediumAttachment" readonly="yes">
19893 <desc>
19894 Medium attachment that is subject to change.
19895 </desc>
19896 </attribute>
19897 </interface>
19898
19899 <interface
19900 name="IClipboardModeChangedEvent" extends="IEvent"
19901 uuid="cac21692-7997-4595-a731-3a509db604e5"
19902 wsmap="managed" autogen="VBoxEvent" id="OnClipboardModeChanged"
19903 >
19904 <desc>
19905 Notification when the shared clipboard mode changes.
19906 </desc>
19907 <attribute name="clipboardMode" type="ClipboardMode" readonly="yes">
19908 <desc>
19909 The new clipboard mode.
19910 </desc>
19911 </attribute>
19912 </interface>
19913
19914 <interface
19915 name="IDragAndDropModeChangedEvent" extends="IEvent"
19916 uuid="e90b8850-ac8e-4dff-8059-4100ae2c3c3d"
19917 wsmap="managed" autogen="VBoxEvent" id="OnDragAndDropModeChanged"
19918 >
19919 <desc>
19920 Notification when the drag'n'drop mode changes.
19921 </desc>
19922 <attribute name="dragAndDropMode" type="DragAndDropMode" readonly="yes">
19923 <desc>
19924 The new drag'n'drop mode.
19925 </desc>
19926 </attribute>
19927 </interface>
19928
19929 <interface
19930 name="ICPUChangedEvent" extends="IEvent"
19931 uuid="4da2dec7-71b2-4817-9a64-4ed12c17388e"
19932 wsmap="managed" autogen="VBoxEvent" id="OnCPUChanged"
19933 >
19934 <desc>
19935 Notification when a CPU changes.
19936 </desc>
19937 <attribute name="CPU" type="unsigned long" readonly="yes">
19938 <desc>
19939 The CPU which changed.
19940 </desc>
19941 </attribute>
19942 <attribute name="add" type="boolean" readonly="yes">
19943 <desc>
19944 Flag whether the CPU was added or removed.
19945 </desc>
19946 </attribute>
19947 </interface>
19948
19949 <interface
19950 name="ICPUExecutionCapChangedEvent" extends="IEvent"
19951 uuid="dfa7e4f5-b4a4-44ce-85a8-127ac5eb59dc"
19952 wsmap="managed" autogen="VBoxEvent" id="OnCPUExecutionCapChanged"
19953 >
19954 <desc>
19955 Notification when the CPU execution cap changes.
19956 </desc>
19957 <attribute name="executionCap" type="unsigned long" readonly="yes">
19958 <desc>
19959 The new CPU execution cap value. (1-100)
19960 </desc>
19961 </attribute>
19962 </interface>
19963
19964 <interface
19965 name="IGuestKeyboardEvent" extends="IEvent"
19966 uuid="88394258-7006-40d4-b339-472ee3801844"
19967 wsmap="managed" autogen="VBoxEvent" id="OnGuestKeyboard"
19968 >
19969 <desc>
19970 Notification when guest keyboard event happens.
19971 </desc>
19972 <attribute name="scancodes" type="long" safearray="yes" readonly="yes">
19973 <desc>
19974 Array of scancodes.
19975 </desc>
19976 </attribute>
19977 </interface>
19978
19979 <interface
19980 name="IGuestMouseEvent" extends="IReusableEvent"
19981 uuid="1f85d35c-c524-40ff-8e98-307000df0992"
19982 wsmap="managed" autogen="VBoxEvent" id="OnGuestMouse"
19983 >
19984 <desc>
19985 Notification when guest mouse event happens.
19986 </desc>
19987
19988 <attribute name="absolute" type="boolean" readonly="yes">
19989 <desc>
19990 If this event is relative or absolute.
19991 </desc>
19992 </attribute>
19993
19994 <attribute name="x" type="long" readonly="yes">
19995 <desc>
19996 New X position, or X delta.
19997 </desc>
19998 </attribute>
19999
20000 <attribute name="y" type="long" readonly="yes">
20001 <desc>
20002 New Y position, or Y delta.
20003 </desc>
20004 </attribute>
20005
20006 <attribute name="z" type="long" readonly="yes">
20007 <desc>
20008 Z delta.
20009 </desc>
20010 </attribute>
20011
20012 <attribute name="w" type="long" readonly="yes">
20013 <desc>
20014 W delta.
20015 </desc>
20016 </attribute>
20017
20018 <attribute name="buttons" type="long" readonly="yes">
20019 <desc>
20020 Button state bitmask.
20021 </desc>
20022 </attribute>
20023
20024 </interface>
20025
20026 <interface
20027 name="IGuestSessionEvent" extends="IEvent"
20028 uuid="b9acd33f-647d-45ac-8fe9-f49b3183ba37"
20029 wsmap="managed"
20030 >
20031 <desc>Base abstract interface for all guest session events.</desc>
20032
20033 <attribute name="session" type="IGuestSession" readonly="yes">
20034 <desc>Guest session that is subject to change.</desc>
20035 </attribute>
20036
20037 </interface>
20038
20039 <interface
20040 name="IGuestSessionStateChangedEvent" extends="IGuestSessionEvent"
20041 uuid="327e3c00-ee61-462f-aed3-0dff6cbf9904"
20042 wsmap="managed" autogen="VBoxEvent" id="OnGuestSessionStateChanged"
20043 >
20044 <desc>
20045 Notification when a guest session changed its state.
20046 </desc>
20047
20048 <attribute name="id" type="unsigned long" readonly="yes">
20049 <desc>
20050 Session ID of guest session which was changed.
20051 </desc>
20052 </attribute>
20053 <attribute name="status" type="GuestSessionStatus" readonly="yes">
20054 <desc>
20055 New session status.
20056 </desc>
20057 </attribute>
20058 <attribute name="error" type="IVirtualBoxErrorInfo" readonly="yes">
20059 <desc>
20060 Error information in case of new session status is indicating an error.
20061
20062 The attribute <link to="IVirtualBoxErrorInfo::resultDetail"/> will contain
20063 the runtime (IPRT) error code from the guest. See include/iprt/err.h and
20064 include/VBox/err.h for details.
20065 </desc>
20066 </attribute>
20067
20068 </interface>
20069
20070 <interface
20071 name="IGuestSessionRegisteredEvent" extends="IGuestSessionEvent"
20072 uuid="b79de686-eabd-4fa6-960a-f1756c99ea1c"
20073 wsmap="managed" autogen="VBoxEvent" id="OnGuestSessionRegistered"
20074 >
20075 <desc>
20076 Notification when a guest session was registered or unregistered.
20077 </desc>
20078
20079 <attribute name="registered" type="boolean" readonly="yes">
20080 <desc>
20081 If @c true, the guest session was registered, otherwise it was
20082 unregistered.
20083 </desc>
20084 </attribute>
20085
20086 </interface>
20087
20088 <interface
20089 name="IGuestProcessEvent" extends="IGuestSessionEvent"
20090 uuid="2405f0e5-6588-40a3-9b0a-68c05ba52c4b"
20091 wsmap="managed"
20092 >
20093 <desc>Base abstract interface for all guest process events.</desc>
20094
20095 <attribute name="process" type="IGuestProcess" readonly="yes">
20096 <desc>
20097 Guest process object which is related to this event.
20098 </desc>
20099 </attribute>
20100 <attribute name="pid" type="unsigned long" readonly="yes">
20101 <desc>
20102 Guest process ID (PID).
20103 </desc>
20104 </attribute>
20105
20106 </interface>
20107
20108 <interface
20109 name="IGuestProcessRegisteredEvent" extends="IGuestProcessEvent"
20110 uuid="1d89e2b3-c6ea-45b6-9d43-dc6f70cc9f02"
20111 wsmap="managed" autogen="VBoxEvent" id="OnGuestProcessRegistered"
20112 >
20113 <desc>
20114 Notification when a guest process was registered or unregistered.
20115 </desc>
20116
20117 <attribute name="registered" type="boolean" readonly="yes">
20118 <desc>
20119 If @c true, the guest process was registered, otherwise it was
20120 unregistered.
20121 </desc>
20122 </attribute>
20123
20124 </interface>
20125
20126 <interface
20127 name="IGuestProcessStateChangedEvent" extends="IGuestProcessEvent"
20128 uuid="c365fb7b-4430-499f-92c8-8bed814a567a"
20129 wsmap="managed" autogen="VBoxEvent" id="OnGuestProcessStateChanged"
20130 >
20131 <desc>
20132 Notification when a guest process changed its state.
20133 </desc>
20134
20135 <attribute name="status" type="ProcessStatus" readonly="yes">
20136 <desc>
20137 New guest process status.
20138 </desc>
20139 </attribute>
20140 <attribute name="error" type="IVirtualBoxErrorInfo" readonly="yes">
20141 <desc>
20142 Error information in case of new session status is indicating an error.
20143
20144 The attribute <link to="IVirtualBoxErrorInfo::resultDetail"/> will contain
20145 the runtime (IPRT) error code from the guest. See include/iprt/err.h and
20146 include/VBox/err.h for details.
20147 </desc>
20148 </attribute>
20149
20150 </interface>
20151
20152 <interface
20153 name="IGuestProcessIOEvent" extends="IGuestProcessEvent"
20154 uuid="9ea9227c-e9bb-49b3-bfc7-c5171e93ef38"
20155 wsmap="managed"
20156 >
20157 <desc>
20158 Base abstract interface for all guest process input/output (IO) events.
20159 </desc>
20160
20161 <attribute name="handle" type="unsigned long" readonly="yes">
20162 <desc>
20163 Input/output (IO) handle involved in this event. Usually 0 is stdin,
20164 1 is stdout and 2 is stderr.
20165 </desc>
20166 </attribute>
20167
20168 <attribute name="processed" type="unsigned long" readonly="yes">
20169 <desc>
20170 Processed input or output (in bytes).
20171 </desc>
20172 </attribute>
20173
20174 </interface>
20175
20176 <interface
20177 name="IGuestProcessInputNotifyEvent" extends="IGuestProcessIOEvent"
20178 uuid="0de887f2-b7db-4616-aac6-cfb94d89ba78"
20179 wsmap="managed" autogen="VBoxEvent" id="OnGuestProcessInputNotify"
20180 >
20181 <desc>
20182 Notification when a guest process' stdin became available.
20183 <note>This event is right now not implemented!</note>
20184 </desc>
20185
20186 <attribute name="status" type="ProcessInputStatus" readonly="yes">
20187 <desc>
20188 Current process input status.
20189 </desc>
20190 </attribute>
20191
20192 </interface>
20193
20194 <interface
20195 name="IGuestProcessOutputEvent" extends="IGuestProcessIOEvent"
20196 uuid="d3d5f1ee-bcb2-4905-a7ab-cc85448a742b"
20197 wsmap="managed" autogen="VBoxEvent" id="OnGuestProcessOutput"
20198 >
20199 <desc>
20200 Notification when there is guest process output available for reading.
20201 </desc>
20202
20203 <attribute name="data" type="octet" safearray="yes" readonly="yes">
20204 <desc>
20205 Actual output data.
20206 </desc>
20207 </attribute>
20208
20209 </interface>
20210
20211 <interface
20212 name="IGuestFileEvent" extends="IGuestSessionEvent"
20213 uuid="c8adb7b0-057d-4391-b928-f14b06b710c5"
20214 wsmap="managed"
20215 >
20216 <desc>Base abstract interface for all guest file events.</desc>
20217
20218 <attribute name="file" type="IGuestFile" readonly="yes">
20219 <desc>
20220 Guest file object which is related to this event.
20221 </desc>
20222 </attribute>
20223
20224 </interface>
20225
20226 <interface
20227 name="IGuestFileRegisteredEvent" extends="IGuestFileEvent"
20228 uuid="d0d93830-70a2-487e-895e-d3fc9679f7b3"
20229 wsmap="managed" autogen="VBoxEvent" id="OnGuestFileRegistered"
20230 >
20231 <desc>
20232 Notification when a guest file was registered or unregistered.
20233 </desc>
20234
20235 <attribute name="registered" type="boolean" readonly="yes">
20236 <desc>
20237 If @c true, the guest file was registered, otherwise it was
20238 unregistered.
20239 </desc>
20240 </attribute>
20241
20242 </interface>
20243
20244 <interface
20245 name="IGuestFileStateChangedEvent" extends="IGuestFileEvent"
20246 uuid="d37fe88f-0979-486c-baa1-3abb144dc82d"
20247 wsmap="managed" autogen="VBoxEvent" id="OnGuestFileStateChanged"
20248 >
20249 <desc>
20250 Notification when a guest file changed its state.
20251 </desc>
20252
20253 <attribute name="status" type="FileStatus" readonly="yes">
20254 <desc>
20255 New guest file status.
20256 </desc>
20257 </attribute>
20258 <attribute name="error" type="IVirtualBoxErrorInfo" readonly="yes">
20259 <desc>
20260 Error information in case of new session status is indicating an error.
20261
20262 The attribute <link to="IVirtualBoxErrorInfo::resultDetail"/> will contain
20263 the runtime (IPRT) error code from the guest. See include/iprt/err.h and
20264 include/VBox/err.h for details.
20265 </desc>
20266 </attribute>
20267 <!-- Note: No events for reads/writes for performance reasons.
20268 See dedidcated events IGuestFileReadEvent and
20269 IGuestFileWriteEvent. -->
20270
20271 </interface>
20272
20273 <interface
20274 name="IGuestFileIOEvent" extends="IGuestFileEvent"
20275 uuid="b5191a7c-9536-4ef8-820e-3b0e17e5bbc8"
20276 wsmap="managed"
20277 >
20278 <desc>
20279 Base abstract interface for all guest file input/output (IO) events.
20280 </desc>
20281
20282 <attribute name="offset" type="long long" readonly="yes">
20283 <desc>
20284 Current offset (in bytes).
20285 </desc>
20286 </attribute>
20287 <attribute name="processed" type="unsigned long" readonly="yes">
20288 <desc>
20289 Processed input or output (in bytes).
20290 </desc>
20291 </attribute>
20292
20293 </interface>
20294
20295 <interface
20296 name="IGuestFileOffsetChangedEvent" extends="IGuestFileIOEvent"
20297 uuid="e8f79a21-1207-4179-94cf-ca250036308f"
20298 wsmap="managed" autogen="VBoxEvent" id="OnGuestFileOffsetChanged"
20299 >
20300 <desc>
20301 Notification when a guest file changed its current offset.
20302 </desc>
20303
20304 </interface>
20305
20306 <interface
20307 name="IGuestFileReadEvent" extends="IGuestFileIOEvent"
20308 uuid="4ee3cbcb-486f-40db-9150-deee3fd24189"
20309 wsmap="managed" autogen="VBoxEvent" id="OnGuestFileRead"
20310 >
20311 <desc>
20312 Notification when data has been read from a guest file.
20313 </desc>
20314
20315 <attribute name="data" type="octet" safearray="yes" readonly="yes">
20316 <desc>
20317 Actual data read.
20318 </desc>
20319 </attribute>
20320
20321 </interface>
20322
20323 <interface
20324 name="IGuestFileWriteEvent" extends="IGuestFileIOEvent"
20325 uuid="e062a915-3cf5-4c0a-bc90-9b8d4cc94d89"
20326 wsmap="managed" autogen="VBoxEvent" id="OnGuestFileWrite"
20327 >
20328 <desc>
20329 Notification when data has been written to a guest file.
20330 </desc>
20331
20332 </interface>
20333
20334 <interface
20335 name="IVRDEServerChangedEvent" extends="IEvent"
20336 uuid="a06fd66a-3188-4c8c-8756-1395e8cb691c"
20337 wsmap="managed" autogen="VBoxEvent" id="OnVRDEServerChanged"
20338 >
20339 <desc>
20340 Notification when a property of the
20341 <link to="IMachine::VRDEServer">VRDE server</link> changes.
20342 Interested callees should use IVRDEServer methods and attributes to
20343 find out what has changed.
20344 </desc>
20345 </interface>
20346
20347 <interface
20348 name="IVRDEServerInfoChangedEvent" extends="IEvent"
20349 uuid="dd6a1080-e1b7-4339-a549-f0878115596e"
20350 wsmap="managed" autogen="VBoxEvent" id="OnVRDEServerInfoChanged"
20351 >
20352 <desc>
20353 Notification when the status of the VRDE server changes. Interested callees
20354 should use <link to="IConsole::VRDEServerInfo">IVRDEServerInfo</link>
20355 attributes to find out what is the current status.
20356 </desc>
20357 </interface>
20358
20359 <interface
20360 name="IVideoCaptureChangedEvent" extends="IEvent"
20361 uuid="6215d169-25dd-4719-ab34-c908701efb58"
20362 wsmap="managed" autogen="VBoxEvent" id="OnVideoCaptureChanged"
20363 >
20364 <desc>
20365 Notification when video capture settings have changed.
20366 </desc>
20367 </interface>
20368
20369 <interface
20370 name="IUSBControllerChangedEvent" extends="IEvent"
20371 uuid="93BADC0C-61D9-4940-A084-E6BB29AF3D83"
20372 wsmap="managed" autogen="VBoxEvent" id="OnUSBControllerChanged"
20373 >
20374 <desc>
20375 Notification when a property of the virtual
20376 <link to="IMachine::USBController">USB controller</link> changes.
20377 Interested callees should use IUSBController methods and attributes to
20378 find out what has changed.
20379 </desc>
20380 </interface>
20381
20382 <interface
20383 name="IUSBDeviceStateChangedEvent" extends="IEvent"
20384 uuid="806da61b-6679-422a-b629-51b06b0c6d93"
20385 wsmap="managed" autogen="VBoxEvent" id="OnUSBDeviceStateChanged"
20386 >
20387 <desc>
20388 Notification when a USB device is attached to or detached from
20389 the virtual USB controller.
20390
20391 This notification is sent as a result of the indirect
20392 request to attach the device because it matches one of the
20393 machine USB filters, or as a result of the direct request
20394 issued by <link to="IConsole::attachUSBDevice"/> or
20395 <link to="IConsole::detachUSBDevice"/>.
20396
20397 This notification is sent in case of both a succeeded and a
20398 failed request completion. When the request succeeds, the
20399 @a error parameter is @c null, and the given device has been
20400 already added to (when @a attached is @c true) or removed from
20401 (when @a attached is @c false) the collection represented by
20402 <link to="IConsole::USBDevices"/>. On failure, the collection
20403 doesn't change and the @a error parameter represents the error
20404 message describing the failure.
20405 </desc>
20406 <attribute name="device" type="IUSBDevice" readonly="yes">
20407 <desc>
20408 Device that is subject to state change.
20409 </desc>
20410 </attribute>
20411 <attribute name="attached" type="boolean" readonly="yes">
20412 <desc>
20413 @c true if the device was attached and @c false otherwise.
20414 </desc>
20415 </attribute>
20416 <attribute name="error" type="IVirtualBoxErrorInfo" readonly="yes">
20417 <desc>
20418 @c null on success or an error message object on failure.
20419 </desc>
20420 </attribute>
20421 </interface>
20422
20423 <interface
20424 name="ISharedFolderChangedEvent" extends="IEvent"
20425 uuid="B66349B5-3534-4239-B2DE-8E1535D94C0B"
20426 wsmap="managed" autogen="VBoxEvent" id="OnSharedFolderChanged"
20427 >
20428 <desc>
20429 Notification when a shared folder is added or removed.
20430 The @a scope argument defines one of three scopes:
20431 <link to="IVirtualBox::sharedFolders">global shared folders</link>
20432 (<link to="Scope_Global">Global</link>),
20433 <link to="IMachine::sharedFolders">permanent shared folders</link> of
20434 the machine (<link to="Scope_Machine">Machine</link>) or <link
20435 to="IConsole::sharedFolders">transient shared folders</link> of the
20436 machine (<link to="Scope_Session">Session</link>). Interested callees
20437 should use query the corresponding collections to find out what has
20438 changed.
20439 </desc>
20440 <attribute name="scope" type="Scope" readonly="yes">
20441 <desc>
20442 Scope of the notification.
20443 </desc>
20444 </attribute>
20445 </interface>
20446
20447 <interface
20448 name="IRuntimeErrorEvent" extends="IEvent"
20449 uuid="883DD18B-0721-4CDE-867C-1A82ABAF914C"
20450 wsmap="managed" autogen="VBoxEvent" id="OnRuntimeError"
20451 >
20452 <desc>
20453 Notification when an error happens during the virtual
20454 machine execution.
20455
20456 There are three kinds of runtime errors:
20457 <ul>
20458 <li><i>fatal</i></li>
20459 <li><i>non-fatal with retry</i></li>
20460 <li><i>non-fatal warnings</i></li>
20461 </ul>
20462
20463 <b>Fatal</b> errors are indicated by the @a fatal parameter set
20464 to @c true. In case of fatal errors, the virtual machine
20465 execution is always paused before calling this notification, and
20466 the notification handler is supposed either to immediately save
20467 the virtual machine state using <link to="IConsole::saveState"/>
20468 or power it off using <link to="IConsole::powerDown"/>.
20469 Resuming the execution can lead to unpredictable results.
20470
20471 <b>Non-fatal</b> errors and warnings are indicated by the
20472 @a fatal parameter set to @c false. If the virtual machine
20473 is in the Paused state by the time the error notification is
20474 received, it means that the user can <i>try to resume</i> the machine
20475 execution after attempting to solve the problem that caused the
20476 error. In this case, the notification handler is supposed
20477 to show an appropriate message to the user (depending on the
20478 value of the @a id parameter) that offers several actions such
20479 as <i>Retry</i>, <i>Save</i> or <i>Power Off</i>. If the user
20480 wants to retry, the notification handler should continue
20481 the machine execution using the <link to="IConsole::resume"/>
20482 call. If the machine execution is not Paused during this
20483 notification, then it means this notification is a <i>warning</i>
20484 (for example, about a fatal condition that can happen very soon);
20485 no immediate action is required from the user, the machine
20486 continues its normal execution.
20487
20488 Note that in either case the notification handler
20489 <b>must not</b> perform any action directly on a thread
20490 where this notification is called. Everything it is allowed to
20491 do is to post a message to another thread that will then talk
20492 to the user and take the corresponding action.
20493
20494 Currently, the following error identifiers are known:
20495 <ul>
20496 <li><tt>"HostMemoryLow"</tt></li>
20497 <li><tt>"HostAudioNotResponding"</tt></li>
20498 <li><tt>"VDIStorageFull"</tt></li>
20499 <li><tt>"3DSupportIncompatibleAdditions"</tt></li>
20500 </ul>
20501 </desc>
20502 <attribute name="fatal" type="boolean" readonly="yes">
20503 <desc>
20504 Whether the error is fatal or not.
20505 </desc>
20506 </attribute>
20507 <attribute name="id" type="wstring" readonly="yes">
20508 <desc>
20509 Error identifier.
20510 </desc>
20511 </attribute>
20512 <attribute name="message" type="wstring" readonly="yes">
20513 <desc>
20514 Optional error message.
20515 </desc>
20516 </attribute>
20517 </interface>
20518
20519
20520 <interface
20521 name="IEventSourceChangedEvent" extends="IEvent"
20522 uuid="e7932cb8-f6d4-4ab6-9cbf-558eb8959a6a"
20523 waitable="yes"
20524 wsmap="managed" autogen="VBoxEvent" id="OnEventSourceChanged"
20525 >
20526 <desc>
20527 Notification when an event source state changes (listener added or removed).
20528 </desc>
20529
20530 <attribute name="listener" type="IEventListener" readonly="yes">
20531 <desc>
20532 Event listener which has changed.
20533 </desc>
20534 </attribute>
20535
20536 <attribute name="add" type="boolean" readonly="yes">
20537 <desc>
20538 Flag whether listener was added or removed.
20539 </desc>
20540 </attribute>
20541 </interface>
20542
20543 <interface
20544 name="IExtraDataChangedEvent" extends="IEvent"
20545 uuid="024F00CE-6E0B-492A-A8D0-968472A94DC7"
20546 wsmap="managed" autogen="VBoxEvent" id="OnExtraDataChanged"
20547 >
20548 <desc>
20549 Notification when machine specific or global extra data
20550 has changed.
20551 </desc>
20552 <attribute name="machineId" type="uuid" mod="string" readonly="yes">
20553 <desc>
20554 ID of the machine this event relates to.
20555 Null for global extra data changes.
20556 </desc>
20557 </attribute>
20558 <attribute name="key" type="wstring" readonly="yes">
20559 <desc>
20560 Extra data key that has changed.
20561 </desc>
20562 </attribute>
20563 <attribute name="value" type="wstring" readonly="yes">
20564 <desc>
20565 Extra data value for the given key.
20566 </desc>
20567 </attribute>
20568 </interface>
20569
20570 <interface
20571 name="IVetoEvent" extends="IEvent"
20572 uuid="9a1a4130-69fe-472f-ac10-c6fa25d75007"
20573 wsmap="managed"
20574 >
20575 <desc>Base abstract interface for veto events.</desc>
20576
20577 <method name="addVeto">
20578 <desc>
20579 Adds a veto on this event.
20580 </desc>
20581 <param name="reason" type="wstring" dir="in">
20582 <desc>
20583 Reason for veto, could be null or empty string.
20584 </desc>
20585 </param>
20586 </method>
20587
20588 <method name="isVetoed">
20589 <desc>
20590 If this event was vetoed.
20591 </desc>
20592 <param name="result" type="boolean" dir="return">
20593 <desc>
20594 Reason for veto.
20595 </desc>
20596 </param>
20597 </method>
20598
20599 <method name="getVetos">
20600 <desc>
20601 Current veto reason list, if size is 0 - no veto.
20602 </desc>
20603 <param name="result" type="wstring" dir="return" safearray="yes">
20604 <desc>
20605 Array of reasons for veto provided by different event handlers.
20606 </desc>
20607 </param>
20608 </method>
20609
20610 </interface>
20611
20612 <interface
20613 name="IExtraDataCanChangeEvent" extends="IVetoEvent"
20614 uuid="245d88bd-800a-40f8-87a6-170d02249a55"
20615 wsmap="managed" autogen="VBoxEvent" id="OnExtraDataCanChange"
20616 waitable="true"
20617 >
20618 <desc>
20619 Notification when someone tries to change extra data for
20620 either the given machine or (if @c null) global extra data.
20621 This gives the chance to veto against changes.
20622 </desc>
20623 <attribute name="machineId" type="uuid" mod="string" readonly="yes">
20624 <desc>
20625 ID of the machine this event relates to.
20626 Null for global extra data changes.
20627 </desc>
20628 </attribute>
20629 <attribute name="key" type="wstring" readonly="yes">
20630 <desc>
20631 Extra data key that has changed.
20632 </desc>
20633 </attribute>
20634 <attribute name="value" type="wstring" readonly="yes">
20635 <desc>
20636 Extra data value for the given key.
20637 </desc>
20638 </attribute>
20639 </interface>
20640
20641 <interface
20642 name="ICanShowWindowEvent" extends="IVetoEvent"
20643 uuid="adf292b0-92c9-4a77-9d35-e058b39fe0b9"
20644 wsmap="managed" autogen="VBoxEvent" id="OnCanShowWindow"
20645 waitable="true"
20646 >
20647 <desc>
20648 Notification when a call to
20649 <link to="IMachine::canShowConsoleWindow"/> is made by a
20650 front-end to check if a subsequent call to
20651 <link to="IMachine::showConsoleWindow"/> can succeed.
20652
20653 The callee should give an answer appropriate to the current
20654 machine state using event veto. This answer must
20655 remain valid at least until the next
20656 <link to="IConsole::state">machine state</link> change.
20657 </desc>
20658 </interface>
20659
20660 <interface
20661 name="IShowWindowEvent" extends="IEvent"
20662 uuid="B0A0904D-2F05-4D28-855F-488F96BAD2B2"
20663 wsmap="managed" autogen="VBoxEvent" id="OnShowWindow"
20664 waitable="true"
20665 >
20666 <desc>
20667 Notification when a call to
20668 <link to="IMachine::showConsoleWindow"/>
20669 requests the console window to be activated and brought to
20670 foreground on the desktop of the host PC.
20671
20672 This notification should cause the VM console process to
20673 perform the requested action as described above. If it is
20674 impossible to do it at a time of this notification, this
20675 method should return a failure.
20676
20677 Note that many modern window managers on many platforms
20678 implement some sort of focus stealing prevention logic, so
20679 that it may be impossible to activate a window without the
20680 help of the currently active application (which is supposedly
20681 an initiator of this notification). In this case, this method
20682 must return a non-zero identifier that represents the
20683 top-level window of the VM console process. The caller, if it
20684 represents a currently active process, is responsible to use
20685 this identifier (in a platform-dependent manner) to perform
20686 actual window activation.
20687
20688 This method must set @a winId to zero if it has performed all
20689 actions necessary to complete the request and the console
20690 window is now active and in foreground, to indicate that no
20691 further action is required on the caller's side.
20692 </desc>
20693 <attribute name="winId" type="long long">
20694 <desc>
20695 Platform-dependent identifier of the top-level VM console
20696 window, or zero if this method has performed all actions
20697 necessary to implement the <i>show window</i> semantics for
20698 the given platform and/or this VirtualBox front-end.
20699 </desc>
20700 </attribute>
20701 </interface>
20702
20703 <interface
20704 name="INATRedirectEvent" extends="IMachineEvent"
20705 uuid="24eef068-c380-4510-bc7c-19314a7352f1"
20706 wsmap="managed" autogen="VBoxEvent" id="OnNATRedirect"
20707 >
20708 <desc>
20709 Notification when NAT redirect rule added or removed.
20710 </desc>
20711 <attribute name="slot" type="unsigned long" readonly="yes">
20712 <desc>
20713 Adapter which NAT attached to.
20714 </desc>
20715 </attribute>
20716 <attribute name="remove" type="boolean" readonly="yes">
20717 <desc>
20718 Whether rule remove or add.
20719 </desc>
20720 </attribute>
20721 <attribute name="name" type="wstring" readonly="yes">
20722 <desc>
20723 Name of the rule.
20724 </desc>
20725 </attribute>
20726 <attribute name="proto" type="NATProtocol" readonly="yes">
20727 <desc>
20728 Protocol (TCP or UDP) of the redirect rule.
20729 </desc>
20730 </attribute>
20731 <attribute name="hostIP" type="wstring" readonly="yes">
20732 <desc>
20733 Host ip address to bind socket on.
20734 </desc>
20735 </attribute>
20736 <attribute name="hostPort" type="long" readonly="yes">
20737 <desc>
20738 Host port to bind socket on.
20739 </desc>
20740 </attribute>
20741 <attribute name="guestIP" type="wstring" readonly="yes">
20742 <desc>
20743 Guest ip address to redirect to.
20744 </desc>
20745 </attribute>
20746 <attribute name="guestPort" type="long" readonly="yes">
20747 <desc>
20748 Guest port to redirect to.
20749 </desc>
20750 </attribute>
20751 </interface>
20752
20753 <interface
20754 name="IHostPCIDevicePlugEvent" extends="IMachineEvent"
20755 waitable="yes"
20756 uuid="a0bad6df-d612-47d3-89d4-db3992533948"
20757 wsmap="managed" autogen="VBoxEvent" id="OnHostPCIDevicePlug"
20758 >
20759 <desc>
20760 Notification when host PCI device is plugged/unplugged. Plugging
20761 usually takes place on VM startup, unplug - when
20762 <link to="IMachine::detachHostPCIDevice"/> is called.
20763
20764 <see><link to="IMachine::detachHostPCIDevice"/></see>
20765
20766 </desc>
20767
20768 <attribute name="plugged" type="boolean" readonly="yes">
20769 <desc>
20770 If device successfully plugged or unplugged.
20771 </desc>
20772 </attribute>
20773
20774 <attribute name="success" type="boolean" readonly="yes">
20775 <desc>
20776 If operation was successful, if false - 'message' attribute
20777 may be of interest.
20778 </desc>
20779 </attribute>
20780
20781 <attribute name="attachment" type="IPCIDeviceAttachment" readonly="yes">
20782 <desc>
20783 Attachment info for this device.
20784 </desc>
20785 </attribute>
20786
20787 <attribute name="message" type="wstring" readonly="yes">
20788 <desc>
20789 Optional error message.
20790 </desc>
20791 </attribute>
20792
20793 </interface>
20794
20795 <interface
20796 name="IVBoxSVCAvailabilityChangedEvent" extends="IEvent"
20797 uuid="97c78fcd-d4fc-485f-8613-5af88bfcfcdc"
20798 wsmap="managed" autogen="VBoxEvent" id="OnVBoxSVCAvailabilityChanged"
20799 >
20800 <desc>
20801 Notification when VBoxSVC becomes unavailable (due to a crash or similar
20802 unexpected circumstances) or available again.
20803 </desc>
20804
20805 <attribute name="available" type="boolean" readonly="yes">
20806 <desc>
20807 Whether VBoxSVC is available now.
20808 </desc>
20809 </attribute>
20810 </interface>
20811
20812 <interface
20813 name="IBandwidthGroupChangedEvent" extends="IEvent"
20814 uuid="334df94a-7556-4cbc-8c04-043096b02d82"
20815 wsmap="managed" autogen="VBoxEvent" id="OnBandwidthGroupChanged"
20816 >
20817 <desc>
20818 Notification when one of the bandwidth groups changed
20819 </desc>
20820 <attribute name="bandwidthGroup" type="IBandwidthGroup" readonly="yes">
20821 <desc>
20822 The changed bandwidth group.
20823 </desc>
20824 </attribute>
20825 </interface>
20826
20827 <enum
20828 name="GuestMonitorChangedEventType"
20829 uuid="ef172985-7e36-4297-95be-e46396968d66"
20830 >
20831
20832 <desc>
20833 How the guest monitor has been changed.
20834 </desc>
20835
20836 <const name="Enabled" value="0">
20837 <desc>
20838 The guest monitor has been enabled by the guest.
20839 </desc>
20840 </const>
20841
20842 <const name="Disabled" value="1">
20843 <desc>
20844 The guest monitor has been disabled by the guest.
20845 </desc>
20846 </const>
20847
20848 <const name="NewOrigin" value="2">
20849 <desc>
20850 The guest monitor origin has changed in the guest.
20851 </desc>
20852 </const>
20853 </enum>
20854
20855 <interface
20856 name="IGuestMonitorChangedEvent" extends="IEvent"
20857 uuid="0f7b8a22-c71f-4a36-8e5f-a77d01d76090"
20858 wsmap="managed" autogen="VBoxEvent" id="OnGuestMonitorChanged"
20859 >
20860 <desc>
20861 Notification when the guest enables one of its monitors.
20862 </desc>
20863
20864 <attribute name="changeType" type="GuestMonitorChangedEventType" readonly="yes">
20865 <desc>
20866 What was changed for this guest monitor.
20867 </desc>
20868 </attribute>
20869
20870 <attribute name="screenId" type="unsigned long" readonly="yes">
20871 <desc>
20872 The monitor which was changed.
20873 </desc>
20874 </attribute>
20875
20876 <attribute name="originX" type="unsigned long" readonly="yes">
20877 <desc>
20878 Physical X origin relative to the primary screen.
20879 Valid for Enabled and NewOrigin.
20880 </desc>
20881 </attribute>
20882
20883 <attribute name="originY" type="unsigned long" readonly="yes">
20884 <desc>
20885 Physical Y origin relative to the primary screen.
20886 Valid for Enabled and NewOrigin.
20887 </desc>
20888 </attribute>
20889
20890 <attribute name="width" type="unsigned long" readonly="yes">
20891 <desc>
20892 Width of the screen.
20893 Valid for Enabled.
20894 </desc>
20895 </attribute>
20896
20897 <attribute name="height" type="unsigned long" readonly="yes">
20898 <desc>
20899 Height of the screen.
20900 Valid for Enabled.
20901 </desc>
20902 </attribute>
20903
20904 </interface>
20905
20906 <interface
20907 name="IStorageDeviceChangedEvent" extends="IEvent"
20908 uuid="232e9151-ae84-4b8e-b0f3-5c20c35caac9"
20909 wsmap="managed" autogen="VBoxEvent" id="OnStorageDeviceChanged"
20910 >
20911 <desc>
20912 Notification when a
20913 <link to="IMachine::mediumAttachments">storage device</link>
20914 is attached or removed.
20915 </desc>
20916 <attribute name="storageDevice" type="IMediumAttachment" readonly="yes">
20917 <desc>
20918 Storage device that is subject to change.
20919 </desc>
20920 </attribute>
20921 <attribute name="removed" type="boolean" readonly="yes">
20922 <desc>
20923 Flag whether the device was removed or added to the VM.
20924 </desc>
20925 </attribute>
20926 <attribute name="silent" type="boolean" readonly="yes">
20927 <desc>
20928 Flag whether the guest should be notified about the change.
20929 </desc>
20930 </attribute>
20931 </interface>
20932 <interface
20933 name="INATNetworkChangedEvent" extends="IEvent"
20934 uuid="101ae042-1a29-4a19-92cf-02285773f3b5"
20935 wsmap="managed" autogen="VBoxEvent" id="OnNATNetworkChanged"
20936 >
20937 <!-- network name is common setting for all event types -->
20938 <attribute name="NetworkName" type="wstring" readonly="yes"/>
20939 </interface>
20940 <!-- base class for start/stop events -->
20941 <interface name="INATNetworkStartStopEvent" extends="INATNetworkChangedEvent"
20942 uuid="269d8f6b-fa1e-4cee-91c7-6d8496bea3c1"
20943 wsmap="managed" autogen="VBoxEvent" id="OnNATNetworkStartStop">
20944 <attribute name="startEvent" type="boolean" readonly="yes">
20945 <desc>
20946 IsStartEvent is true when NAT network is started and false on stopping.
20947 </desc>
20948 </attribute>
20949 </interface>
20950
20951 <!-- base class for modification events -->
20952 <interface name="INATNetworkAlterEvent" extends="INATNetworkChangedEvent"
20953 uuid="3f5a0822-163a-43b1-ad16-8d58b0ef6e75"
20954 wsmap="managed" autogen="VBoxEvent" id="OnNATNetworkAlter"/>
20955
20956 <interface name="INATNetworkCreationDeletionEvent" extends="INATNetworkAlterEvent"
20957 uuid="8d984a7e-b855-40b8-ab0c-44d3515b4528"
20958 wsmap="managed" autogen="VBoxEvent" id="OnNATNetworkCreationDeletion">
20959 <attribute name="creationEvent" type="boolean" readonly="yes"/>
20960 </interface>
20961 <interface name="INATNetworkSettingEvent" extends="INATNetworkAlterEvent"
20962 uuid="9db3a9e6-7f29-4aae-a627-5a282c83092c"
20963 wsmap="managed" autogen="VBoxEvent" id="OnNATNetworkSetting">
20964 <attribute name="enabled" type="boolean" readonly="yes"/>
20965 <attribute name="network" type="wstring" readonly="yes"/>
20966 <attribute name="gateway" type="wstring" readonly="yes"/>
20967 <attribute name="advertiseDefaultIPv6RouteEnabled" type="boolean" readonly="yes"/>
20968 <attribute name="needDhcpServer" type="boolean" readonly="yes"/>
20969 </interface>
20970 <interface name="INATNetworkPortForwardEvent" extends="INATNetworkAlterEvent"
20971 uuid="2514881b-23d0-430a-a7ff-7ed7f05534bc"
20972 wsmap="managed" autogen="VBoxEvent" id="OnNATNetworkPortForward">
20973 <attribute name="create" type="boolean" readonly="yes"/>
20974 <attribute name="ipv6" type="boolean" readonly="yes"/>
20975 <attribute name="name" type="wstring" readonly="yes"/>
20976 <attribute name="proto" type="NATProtocol" readonly="yes"/>
20977 <attribute name="hostIp" type="wstring" readonly="yes"/>
20978 <attribute name="hostPort" type="long" readonly="yes"/>
20979 <attribute name="guestIp" type="wstring" readonly="yes"/>
20980 <attribute name="guestPort" type="long" readonly="yes"/>
20981 </interface>
20982
20983 <module name="VBoxSVC" context="LocalServer">
20984 <class name="VirtualBox" uuid="B1A7A4F2-47B9-4A1E-82B2-07CCD5323C3F"
20985 namespace="virtualbox.org">
20986 <interface name="IVirtualBox" default="yes"/>
20987 </class>
20988 </module>
20989
20990 <module name="VBoxC" context="InprocServer" threadingModel="Free">
20991 <class name="VirtualBoxClient" uuid="dd3fc71d-26c0-4fe1-bf6f-67f633265bba"
20992 namespace="virtualbox.org">
20993 <interface name="IVirtualBoxClient" default="yes"/>
20994 </class>
20995
20996 <class name="Session" uuid="3C02F46D-C9D2-4F11-A384-53F0CF917214"
20997 namespace="virtualbox.org">
20998 <interface name="ISession" default="yes"/>
20999 </class>
21000 </module>
21001
21002</library>
21003
21004</idl>
21005
21006<!-- vim: set shiftwidth=2 tabstop=2 expandtab: -->
Note: See TracBrowser for help on using the repository browser.

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