VirtualBox

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

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

GuestCtrl: More code for guest session infrastructure handling (untested, work in progress).

  • Property svn:eol-style set to native
File size: 731.8 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
135
136#ifndef NS_IMPL_THREADSAFE_ISUPPORTS1_CI
137# define NS_IMPL_THREADSAFE_ISUPPORTS1_CI(_class, _interface) \
138 NS_IMPL_THREADSAFE_ADDREF(_class) \
139 NS_IMPL_THREADSAFE_RELEASE(_class) \
140 NS_IMPL_THREADSAFE_QUERY_INTERFACE1_CI(_class, _interface) \
141 NS_IMPL_CI_INTERFACE_GETTER1(_class, _interface)
142#endif
143
144#ifndef NS_IMPL_THREADSAFE_ISUPPORTS2_CI
145# define NS_IMPL_THREADSAFE_ISUPPORTS2_CI(_class, _i1, _i2) \
146 NS_IMPL_THREADSAFE_ADDREF(_class) \
147 NS_IMPL_THREADSAFE_RELEASE(_class) \
148 NS_IMPL_THREADSAFE_QUERY_INTERFACE2_CI(_class, _i1, _i2) \
149 NS_IMPL_CI_INTERFACE_GETTER2(_class, _i1, _i2)
150#endif
151
152#ifndef NS_IMPL_THREADSAFE_ISUPPORTS3_CI
153# define NS_IMPL_THREADSAFE_ISUPPORTS3_CI(_class, _i1, _i2, _i3) \
154 NS_IMPL_THREADSAFE_ADDREF(_class) \
155 NS_IMPL_THREADSAFE_RELEASE(_class) \
156 NS_IMPL_THREADSAFE_QUERY_INTERFACE3_CI(_class, _i1, _i2, _i3) \
157 NS_IMPL_CI_INTERFACE_GETTER3(_class, _i1, _i2, _i3)
158#endif
159
160#ifndef NS_IMPL_THREADSAFE_ISUPPORTS4_CI
161# define NS_IMPL_THREADSAFE_ISUPPORTS4_CI(_class, _i1, _i2, _i3, _i4) \
162 NS_IMPL_THREADSAFE_ADDREF(_class) \
163 NS_IMPL_THREADSAFE_RELEASE(_class) \
164 NS_IMPL_THREADSAFE_QUERY_INTERFACE4_CI(_class, _i1, _i2, _i3, _i4) \
165 NS_IMPL_CI_INTERFACE_GETTER4(_class, _i1, _i2, _i3, _i4)
166#endif
167
168#ifndef NS_IMPL_QUERY_INTERFACE1_AMBIGUOUS_CI
169# define NS_IMPL_QUERY_INTERFACE1_AMBIGUOUS_CI(_class, _i1, _ic1) \
170 NS_INTERFACE_MAP_BEGIN(_class) \
171 NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(_i1, _ic1) \
172 NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(nsISupports, _ic1) \
173 NS_IMPL_QUERY_CLASSINFO(_class) \
174 NS_INTERFACE_MAP_END
175#endif
176
177#ifndef NS_IMPL_QUERY_INTERFACE2_AMBIGUOUS_CI
178# define NS_IMPL_QUERY_INTERFACE2_AMBIGUOUS_CI(_class, _i1, _ic1, \
179 _i2, _ic2) \
180 NS_INTERFACE_MAP_BEGIN(_class) \
181 NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(_i1, _ic1) \
182 NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(_i2, _ic2) \
183 NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(nsISupports, _ic1) \
184 NS_IMPL_QUERY_CLASSINFO(_class) \
185 NS_INTERFACE_MAP_END
186#endif
187
188#ifndef NS_IMPL_QUERY_INTERFACE3_AMBIGUOUS_CI
189# define NS_IMPL_QUERY_INTERFACE3_AMBIGUOUS_CI(_class, _i1, _ic1, \
190 _i2, _ic2, _i3, _ic3) \
191 NS_INTERFACE_MAP_BEGIN(_class) \
192 NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(_i1, _ic1) \
193 NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(_i2, _ic2) \
194 NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(_i3, _ic3) \
195 NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(nsISupports, _ic1) \
196 NS_IMPL_QUERY_CLASSINFO(_class) \
197 NS_INTERFACE_MAP_END
198#endif
199
200#define NS_IMPL_THREADSAFE_QUERY_INTERFACE1_AMBIGUOUS_CI NS_IMPL_QUERY_INTERFACE1_AMBIGUOUS_CI
201#define NS_IMPL_THREADSAFE_QUERY_INTERFACE2_AMBIGUOUS_CI NS_IMPL_QUERY_INTERFACE2_AMBIGUOUS_CI
202#define NS_IMPL_THREADSAFE_QUERY_INTERFACE3_AMBIGUOUS_CI NS_IMPL_QUERY_INTERFACE3_AMBIGUOUS_CI
203
204#ifndef NS_IMPL_THREADSAFE_ISUPPORTS1_AMBIGUOUS_CI
205# define NS_IMPL_THREADSAFE_ISUPPORTS1_AMBIGUOUS_CI(_class, _i1, _ic1) \
206 NS_IMPL_THREADSAFE_ADDREF(_class) \
207 NS_IMPL_THREADSAFE_RELEASE(_class) \
208 NS_IMPL_THREADSAFE_QUERY_INTERFACE1_AMBIGUOUS_CI(_class, _i1, _ic1) \
209 NS_IMPL_CI_INTERFACE_GETTER1(_class, _i1)
210#endif
211
212#ifndef NS_IMPL_THREADSAFE_ISUPPORTS2_AMBIGUOUS_CI
213# define NS_IMPL_THREADSAFE_ISUPPORTS2_AMBIGUOUS_CI(_class, _i1, _ic1, \
214 _i2, _ic2) \
215 NS_IMPL_THREADSAFE_ADDREF(_class) \
216 NS_IMPL_THREADSAFE_RELEASE(_class) \
217 NS_IMPL_THREADSAFE_QUERY_INTERFACE2_AMBIGUOUS_CI(_class, _i1, _ic1, \
218 _i2, _ic2) \
219 NS_IMPL_CI_INTERFACE_GETTER2(_class, _i1, _i2)
220#endif
221
222#ifndef NS_IMPL_THREADSAFE_ISUPPORTS3_AMBIGUOUS_CI
223# define NS_IMPL_THREADSAFE_ISUPPORTS3_AMBIGUOUS_CI(_class, _i1, _ic1, \
224 _i2, _ic2, _i3, _ic3) \
225 NS_IMPL_THREADSAFE_ADDREF(_class) \
226 NS_IMPL_THREADSAFE_RELEASE(_class) \
227 NS_IMPL_THREADSAFE_QUERY_INTERFACE3_AMBIGUOUS_CI(_class, _i1, _ic1, \
228 _i2, _ic2, _i3, _ic3) \
229 NS_IMPL_CI_INTERFACE_GETTER3(_class, _i1, _i2, _i3)
230#endif
231
232 </cpp>
233</if>
234
235<library
236 name="VirtualBox"
237 uuid="46137EEC-703B-4fe5-AFD4-7C9BBBBA0259"
238 version="1.3"
239 desc="VirtualBox Type Library"
240 appUuid="819B4D85-9CEE-493C-B6FC-64FFE759B3C9"
241 supportsErrorInfo="yes"
242>
243
244
245 <!--
246 // COM result codes for VirtualBox
247 /////////////////////////////////////////////////////////////////////////
248 -->
249
250 <descGroup id="VirtualBox_COM_result_codes" title="VirtualBox COM result codes">
251 <desc>
252 This section describes all VirtualBox-specific COM result codes that may
253 be returned by methods of VirtualBox COM interfaces in addition to
254 standard COM result codes.
255
256 Note that along with the result code, every VirtualBox method returns
257 extended error information through the IVirtualBoxErrorInfo interface on
258 failure. This interface is a preferred way to present the error to the end
259 user because it contains a human readable description of the error. Raw
260 result codes, both standard and described in this section, are intended to
261 be used by programs to analyze the reason of a failure and select an
262 appropriate course of action without involving the end user (for example,
263 retry the operation later or make a different call).
264
265 The standard COM result codes that may originate from our methods include:
266
267 <table>
268 <tr><td>E_INVALIDARG</td>
269 <td>
270 Returned when the value of the method's argument is not within the range
271 of valid values. This should not be confused with situations when the
272 value is within the range but simply doesn't suit the current object
273 state and there is a possibility that it will be accepted later (in such
274 cases VirtualBox-specific codes are returned, for example,
275 <link to="VBOX_E_OBJECT_NOT_FOUND"/>).
276 </td>
277 </tr>
278 <tr><td>E_POINTER</td>
279 <td>
280 Returned if a memory pointer for the output argument is invalid (for
281 example, @c null). When pointers representing input arguments (such
282 as strings) are invalid, E_INVALIDARG is returned.
283 </td>
284 </tr>
285 <tr><td>E_ACCESSDENIED</td>
286 <td>
287 Returned when the called object is not ready. Since the lifetime of a
288 public COM object cannot be fully controlled by the implementation,
289 VirtualBox maintains the readiness state for all objects it creates and
290 returns this code in response to any method call on the object that was
291 deactivated by VirtualBox and is not functioning any more.
292 </td>
293 </tr>
294 <tr><td>E_OUTOFMEMORY</td>
295 <td>
296 Returned when a memory allocation operation fails.
297 </td>
298 </tr>
299 </table>
300 </desc>
301 </descGroup>
302
303 <!--
304 Note that src/VBox/Runtime/common/err/errmsgvboxcom.xsl will ignore
305 everything in <result>/<desc> after (and including) the first dot, so express
306 the matter of the error code in the first sentence and keep it short.
307 -->
308
309 <result name="VBOX_E_OBJECT_NOT_FOUND" value="0x80BB0001">
310 <desc>
311 Object corresponding to the supplied arguments does not exist.
312 </desc>
313 </result>
314
315 <result name="VBOX_E_INVALID_VM_STATE" value="0x80BB0002">
316 <desc>
317 Current virtual machine state prevents the operation.
318 </desc>
319 </result>
320
321 <result name="VBOX_E_VM_ERROR" value="0x80BB0003">
322 <desc>
323 Virtual machine error occurred attempting the operation.
324 </desc>
325 </result>
326
327 <result name="VBOX_E_FILE_ERROR" value="0x80BB0004">
328 <desc>
329 File not accessible or erroneous file contents.
330 </desc>
331 </result>
332
333 <result name="VBOX_E_IPRT_ERROR" value="0x80BB0005">
334 <desc>
335 Runtime subsystem error.
336 </desc>
337 </result>
338
339 <result name="VBOX_E_PDM_ERROR" value="0x80BB0006">
340 <desc>
341 Pluggable Device Manager error.
342 </desc>
343 </result>
344
345 <result name="VBOX_E_INVALID_OBJECT_STATE" value="0x80BB0007">
346 <desc>
347 Current object state prohibits operation.
348 </desc>
349 </result>
350
351 <result name="VBOX_E_HOST_ERROR" value="0x80BB0008">
352 <desc>
353 Host operating system related error.
354 </desc>
355 </result>
356
357 <result name="VBOX_E_NOT_SUPPORTED" value="0x80BB0009">
358 <desc>
359 Requested operation is not supported.
360 </desc>
361 </result>
362
363 <result name="VBOX_E_XML_ERROR" value="0x80BB000A">
364 <desc>
365 Invalid XML found.
366 </desc>
367 </result>
368
369 <result name="VBOX_E_INVALID_SESSION_STATE" value="0x80BB000B">
370 <desc>
371 Current session state prohibits operation.
372 </desc>
373 </result>
374
375 <result name="VBOX_E_OBJECT_IN_USE" value="0x80BB000C">
376 <desc>
377 Object being in use prohibits operation.
378 </desc>
379 </result>
380
381 <!--
382 Note that src/VBox/Runtime/common/err/errmsgvboxcom.xsl will ignore
383 everything in <result>/<desc> after (and including) the first dot, so express
384 the matter of the error code in the first sentence and keep it short.
385 -->
386
387 <descGroup/>
388
389 <!--
390 // all common enums
391 /////////////////////////////////////////////////////////////////////////
392 -->
393
394 <enum
395 name="SettingsVersion"
396 uuid="d5b15ca7-3de7-46b2-a63a-ddcce42bfa3f"
397 >
398 <desc>
399 Settings version of VirtualBox settings files. This is written to
400 the "version" attribute of the root "VirtualBox" element in the settings
401 file XML and indicates which VirtualBox version wrote the file.
402 </desc>
403
404 <const name="Null" value="0">
405 <desc>Null value, indicates invalid version.</desc>
406 </const>
407 <const name="v1_0" value="1">
408 <desc>Legacy settings version, not currently supported.</desc>
409 </const>
410 <const name="v1_1" value="2">
411 <desc>Legacy settings version, not currently supported.</desc>
412 </const>
413 <const name="v1_2" value="3">
414 <desc>Legacy settings version, not currently supported.</desc>
415 </const>
416 <const name="v1_3pre" value="4">
417 <desc>Legacy settings version, not currently supported.</desc>
418 </const>
419 <const name="v1_3" value="5">
420 <desc>Settings version "1.3", written by VirtualBox 2.0.12.</desc>
421 <!--
422 Machine XML: Capitalization of Uart, Lpt elements and many attributes changed.
423 -->
424 </const>
425 <const name="v1_4" value="6">
426 <desc>Intermediate settings version, understood by VirtualBox 2.1.x.</desc>
427 <!--
428 VirtualBox.xml: big DiskRegistry -> MediaRegistry revamp, various HardDisk types merged
429 (was VirtualDiskImage, VMDKImage, VHDImage, ISCSIHardDisk, CustomHardDisk, DiffHardDisk)
430 -->
431 </const>
432 <const name="v1_5" value="7">
433 <desc>Intermediate settings version, understood by VirtualBox 2.1.x.</desc>
434 <!--
435 2008-09-04: 2.0.0 released
436 2008-11-20: settings version 1.5 introduced
437 2008-12-17: 2.1.0 released
438 Machine changes:
439 guest OS identifiers changed;
440 Machine/Hardware/Display/MonitorCount renamed to monitorCount;
441 Machine/Hardware/Display/Accelerate3D renamed to accelerate3D;
442 Machine/Hardware/CPU/CPUCount/@count changed to CPU/@count
443 -->
444 </const>
445 <const name="v1_6" value="8">
446 <desc>Settings version "1.6", written by VirtualBox 2.1.4 (at least).</desc>
447 <!--
448 2008-12-17: 2.1.0 released
449 2008-12-19: settings version 1.6 introduced (is in 2.1 branch)
450 2009-04-08: 2.2.0 released
451 Machine changes: remove all Machine/Hardware/Network/Adapter/HostInterface[@TAPSetup or @TAPTerminate]/ attributes (done)
452 -->
453 </const>
454 <const name="v1_7" value="9">
455 <desc>Settings version "1.7", written by VirtualBox 2.2.x and 3.0.x.</desc>
456 <!--
457 2008-12-17: 2.1.0 released
458 2009-03-11: settings version 1.7 introduced (is in 2.2 branch)
459 2009-04-08: 2.2.0 released
460 VirtualBox.xml additions: NetserviceRegistry with DHCPServers (done)
461 Machine changes: HardDiskAttachments is now StorageControllers (done)
462 -->
463 </const>
464 <const name="v1_8" value="10">
465 <desc>Intermediate settings version "1.8", understood by VirtualBox 3.1.x.</desc>
466 <!--
467 Machine additions: Display/@accelerate2DVideo (done)
468 -->
469 </const>
470 <const name="v1_9" value="11">
471 <desc>Settings version "1.9", written by VirtualBox 3.1.x.</desc>
472 <!--
473 The big storage controller / DVD / Floppy rework (done)
474 -->
475 </const>
476 <const name="v1_10" value="12">
477 <desc>Settings version "1.10", written by VirtualBox 3.2.x.</desc>
478 <!--
479 Machine changes: RTC localOrUTC (done)
480 CPU hot-plug support
481 -->
482 </const>
483 <const name="v1_11" value="13">
484 <desc>Settings version "1.11", written by VirtualBox 4.0.x.</desc>
485 <!--
486 Machine changes: HD Audio controller, per-machine disk registries,
487 /@format attribute for DVD and floppy images.
488 -->
489 </const>
490 <const name="v1_12" value="14">
491 <desc>Settings version "1.12", written by VirtualBox 4.1.x.</desc>
492 <!--
493 Machine changes: raw PCI device attachment;
494 NetworkAdapter changes: bandwidth group.
495 -->
496 </const>
497 <const name="v1_13" value="15">
498 <desc>Settings version "1.13", written by VirtualBox 4.2.x.</desc>
499 <!--
500 Machine changes: tracing config, groups, autostart;
501 NetworkAdapter changes: unit for bandwidth group limits.
502 -->
503 </const>
504 <const name="v1_14" value="16">
505 <desc>Settings version "1.14", written by VirtualBox 4.3.x.</desc>
506 <!--
507 Machine changes: default frontend.
508 -->
509 </const>
510
511 <const name="Future" value="99999">
512 <desc>Settings version greater than "1.13", written by a future VirtualBox version.</desc>
513 </const>
514 </enum>
515
516 <enum
517 name="AccessMode"
518 uuid="1da0007c-ddf7-4be8-bcac-d84a1558785f"
519 >
520 <desc>
521 Access mode for opening files.
522 </desc>
523
524 <const name="ReadOnly" value="1"/>
525 <const name="ReadWrite" value="2"/>
526 </enum>
527
528 <enum
529 name="MachineState"
530 uuid="ec6c6a9e-113d-4ff4-b44f-0b69f21c97fe"
531 >
532 <desc>
533 Virtual machine execution state.
534
535 This enumeration represents possible values of the <link
536 to="IMachine::state"/> attribute.
537
538 Below is the basic virtual machine state diagram. It shows how the state
539 changes during virtual machine execution. The text in square braces shows
540 a method of the IConsole interface that performs the given state
541 transition.
542
543 <pre>
544 +---------[powerDown()] &lt;- Stuck &lt;--[failure]-+
545 V |
546 +-&gt; PoweredOff --+--&gt;[powerUp()]--&gt; Starting --+ | +-----[resume()]-----+
547 | | | | V |
548 | Aborted -----+ +--&gt; Running --[pause()]--&gt; Paused
549 | | ^ | ^ |
550 | Saved -----------[powerUp()]--&gt; Restoring -+ | | | |
551 | ^ | | | |
552 | | +-----------------------------------------+-|-------------------+ +
553 | | | | |
554 | | +-- Saving &lt;--------[takeSnapshot()]&lt;-------+---------------------+
555 | | | |
556 | +-------- Saving &lt;--------[saveState()]&lt;----------+---------------------+
557 | | |
558 +-------------- Stopping -------[powerDown()]&lt;----------+---------------------+
559 </pre>
560
561 Note that states to the right from PoweredOff, Aborted and Saved in the
562 above diagram are called <i>online VM states</i>. These states
563 represent the virtual machine which is being executed in a dedicated
564 process (usually with a GUI window attached to it where you can see the
565 activity of the virtual machine and interact with it). There are two
566 special pseudo-states, FirstOnline and LastOnline, that can be used in
567 relational expressions to detect if the given machine state is online or
568 not:
569
570 <pre>
571 if (machine.GetState() &gt;= MachineState_FirstOnline &amp;&amp;
572 machine.GetState() &lt;= MachineState_LastOnline)
573 {
574 ...the machine is being executed...
575 }
576 </pre>
577
578 When the virtual machine is in one of the online VM states (that is, being
579 executed), only a few machine settings can be modified. Methods working
580 with such settings contain an explicit note about that. An attempt to
581 change any other setting or perform a modifying operation during this time
582 will result in the @c VBOX_E_INVALID_VM_STATE error.
583
584 All online states except Running, Paused and Stuck are transitional: they
585 represent temporary conditions of the virtual machine that will last as
586 long as the operation that initiated such a condition.
587
588 The Stuck state is a special case. It means that execution of the machine
589 has reached the "Guru Meditation" condition. This condition indicates an
590 internal VMM (virtual machine manager) failure which may happen as a
591 result of either an unhandled low-level virtual hardware exception or one
592 of the recompiler exceptions (such as the <i>too-many-traps</i>
593 condition).
594
595 Note also that any online VM state may transit to the Aborted state. This
596 happens if the process that is executing the virtual machine terminates
597 unexpectedly (for example, crashes). Other than that, the Aborted state is
598 equivalent to PoweredOff.
599
600 There are also a few additional state diagrams that do not deal with
601 virtual machine execution and therefore are shown separately. The states
602 shown on these diagrams are called <i>offline VM states</i> (this includes
603 PoweredOff, Aborted and Saved too).
604
605 The first diagram shows what happens when a lengthy setup operation is
606 being executed (such as <link to="IMachine::attachDevice"/>).
607
608 <pre>
609 +----------------------------------(same state as before the call)------+
610 | |
611 +-&gt; PoweredOff --+ |
612 | | |
613 |-&gt; Aborted -----+--&gt;[lengthy VM configuration call] --&gt; SettingUp -----+
614 | |
615 +-&gt; Saved -------+
616 </pre>
617
618 The next two diagrams demonstrate the process of taking a snapshot of a
619 powered off virtual machine, restoring the state to that as of a snapshot
620 or deleting a snapshot, respectively.
621
622 <pre>
623 +----------------------------------(same state as before the call)------+
624 | |
625 +-&gt; PoweredOff --+ |
626 | +--&gt;[takeSnapshot()] -------------------&gt; Saving ------+
627 +-&gt; Aborted -----+
628
629 +-&gt; PoweredOff --+
630 | |
631 | Aborted -----+--&gt;[restoreSnapshot() ]-------&gt; RestoringSnapshot -+
632 | | [deleteSnapshot() ]-------&gt; DeletingSnapshot --+
633 +-&gt; Saved -------+ |
634 | |
635 +---(Saved if restored from an online snapshot, PoweredOff otherwise)---+
636 </pre>
637
638 Note that the Saving state is present in both the offline state group and
639 online state group. Currently, the only way to determine what group is
640 assumed in a particular case is to remember the previous machine state: if
641 it was Running or Paused, then Saving is an online state, otherwise it is
642 an offline state. This inconsistency may be removed in one of the future
643 versions of VirtualBox by adding a new state.
644
645 <note internal="yes">
646 For whoever decides to touch this enum: In order to keep the
647 comparisons involving FirstOnline and LastOnline pseudo-states valid,
648 the numeric values of these states must be correspondingly updated if
649 needed: for any online VM state, the condition
650 <tt>FirstOnline &lt;= state &lt;= LastOnline</tt> must be
651 @c true. The same relates to transient states for which
652 the condition <tt>FirstOnline &lt;= state &lt;= LastOnline</tt> must be
653 @c true.
654 </note>
655 </desc>
656
657 <const name="Null" value="0">
658 <desc>Null value (never used by the API).</desc>
659 </const>
660 <const name="PoweredOff" value="1">
661 <desc>
662 The machine is not running and has no saved execution state; it has
663 either never been started or been shut down successfully.
664 </desc>
665 </const>
666 <const name="Saved" value="2">
667 <desc>
668 The machine is not currently running, but the execution state of the machine
669 has been saved to an external file when it was running, from where
670 it can be resumed.
671 </desc>
672 </const>
673 <const name="Teleported" value="3">
674 <desc>
675 The machine was teleported to a different host (or process) and then
676 powered off. Take care when powering it on again may corrupt resources
677 it shares with the teleportation target (e.g. disk and network).
678 </desc>
679 </const>
680 <const name="Aborted" value="4">
681 <desc>
682 The process running the machine has terminated abnormally. This may
683 indicate a crash of the VM process in host execution context, or
684 the VM process has been terminated externally.
685 </desc>
686 </const>
687 <const name="Running" value="5">
688 <desc>
689 The machine is currently being executed.
690 <note internal="yes">
691 For whoever decides to touch this enum: In order to keep the
692 comparisons in the old source code valid, this state must immediately
693 precede the Paused state.
694 TODO: Lift this spectacularly wonderful restriction.
695 </note>
696 </desc>
697 </const>
698 <const name="Paused" value="6">
699 <desc>
700 Execution of the machine has been paused.
701 <note internal="yes">
702 For whoever decides to touch this enum: In order to keep the
703 comparisons in the old source code valid, this state must immediately
704 follow the Running state.
705 TODO: Lift this spectacularly wonderful restriction.
706 </note>
707 </desc>
708 </const>
709 <const name="Stuck" value="7">
710 <desc>
711 Execution of the machine has reached the "Guru Meditation"
712 condition. This indicates a severe error in the hypervisor itself.
713 <note internal="yes">
714 bird: Why this uncool name? Could we rename it to "GuruMeditation" or
715 "Guru", perhaps? Or are there some other VMM states that are
716 intended to be lumped in here as well?
717 </note>
718 </desc>
719 </const>
720 <const name="Teleporting" value="8">
721 <desc>
722 The machine is about to be teleported to a different host or process.
723 It is possible to pause a machine in this state, but it will go to the
724 @c TeleportingPausedVM state and it will not be
725 possible to resume it again unless the teleportation fails.
726 </desc>
727 </const>
728 <const name="LiveSnapshotting" value="9">
729 <desc>
730 A live snapshot is being taken. The machine is running normally, but
731 some of the runtime configuration options are inaccessible. Also, if
732 paused while in this state it will transition to
733 @c Saving and it will not be resume the
734 execution until the snapshot operation has completed.
735 </desc>
736 </const>
737 <const name="Starting" value="10">
738 <desc>
739 Machine is being started after powering it on from a
740 zero execution state.
741 </desc>
742 </const>
743 <const name="Stopping" value="11">
744 <desc>
745 Machine is being normally stopped powering it off, or after the guest OS
746 has initiated a shutdown sequence.
747 </desc>
748 </const>
749 <const name="Saving" value="12">
750 <desc>
751 Machine is saving its execution state to a file, or an online
752 snapshot of the machine is being taken.
753 </desc>
754 </const>
755 <const name="Restoring" value="13">
756 <desc>
757 Execution state of the machine is being restored from a file
758 after powering it on from the saved execution state.
759 </desc>
760 </const>
761 <const name="TeleportingPausedVM" value="14">
762 <desc>
763 The machine is being teleported to another host or process, but it is
764 not running. This is the paused variant of the
765 @c state.
766 </desc>
767 </const>
768 <const name="TeleportingIn" value="15">
769 <desc>
770 Teleporting the machine state in from another host or process.
771 </desc>
772 </const>
773 <const name="FaultTolerantSyncing" value="16">
774 <desc>
775 The machine is being synced with a fault tolerant VM running elsewhere.
776 </desc>
777 </const>
778 <const name="DeletingSnapshotOnline" value="17">
779 <desc>
780 Like @c DeletingSnapshot, but the merging of media is ongoing in
781 the background while the machine is running.
782 </desc>
783 </const>
784 <const name="DeletingSnapshotPaused" value="18">
785 <desc>
786 Like @c DeletingSnapshotOnline, but the machine was paused when the
787 merging of differencing media was started.
788 </desc>
789 </const>
790 <const name="RestoringSnapshot" value="19">
791 <desc>
792 A machine snapshot is being restored; this typically does not take long.
793 </desc>
794 </const>
795 <const name="DeletingSnapshot" value="20">
796 <desc>
797 A machine snapshot is being deleted; this can take a long time since this
798 may require merging differencing media. This value indicates that the
799 machine is not running while the snapshot is being deleted.
800 </desc>
801 </const>
802 <const name="SettingUp" value="21">
803 <desc>
804 Lengthy setup operation is in progress.
805 </desc>
806 </const>
807
808 <const name="FirstOnline" value="5" wsmap="suppress"> <!-- Running -->
809 <desc>
810 Pseudo-state: first online state (for use in relational expressions).
811 </desc>
812 </const>
813 <const name="LastOnline" value="18" wsmap="suppress"> <!-- DeletingSnapshotPaused -->
814 <desc>
815 Pseudo-state: last online state (for use in relational expressions).
816 </desc>
817 </const>
818
819 <const name="FirstTransient" value="8" wsmap="suppress"> <!-- Teleporting -->
820 <desc>
821 Pseudo-state: first transient state (for use in relational expressions).
822 </desc>
823 </const>
824 <const name="LastTransient" value="21" wsmap="suppress"> <!-- SettingUp -->
825 <desc>
826 Pseudo-state: last transient state (for use in relational expressions).
827 </desc>
828 </const>
829
830 </enum>
831
832 <enum
833 name="SessionState"
834 uuid="cf2700c0-ea4b-47ae-9725-7810114b94d8"
835 >
836 <desc>
837 Session state. This enumeration represents possible values of
838 <link to="IMachine::sessionState"/> and <link to="ISession::state"/>
839 attributes.
840 </desc>
841
842 <const name="Null" value="0">
843 <desc>Null value (never used by the API).</desc>
844 </const>
845 <const name="Unlocked" value="1">
846 <desc>
847 In <link to="IMachine::sessionState"/>, this means that the machine
848 is not locked for any sessions.
849
850 In <link to="ISession::state"/>, this means that no machine is
851 currently locked for this session.
852 </desc>
853 </const>
854 <const name="Locked" value="2">
855 <desc>
856 In <link to="IMachine::sessionState"/>, this means that the machine
857 is currently locked for a session, whose process identifier can
858 then be found in the <link to="IMachine::sessionPID" /> attribute.
859
860 In <link to="ISession::state"/>, this means that a machine is
861 currently locked for this session, and the mutable machine object
862 can be found in the <link to="ISession::machine"/> attribute
863 (see <link to="IMachine::lockMachine" /> for details).
864 </desc>
865 </const>
866 <const name="Spawning" value="3">
867 <desc>
868 A new process is being spawned for the machine as a result of
869 <link to="IMachine::launchVMProcess"/> call. This state also occurs
870 as a short transient state during an <link to="IMachine::lockMachine"/>
871 call.
872 </desc>
873 </const>
874 <const name="Unlocking" value="4">
875 <desc>
876 The session is being unlocked.
877 </desc>
878 </const>
879 </enum>
880
881 <enum
882 name="CPUPropertyType"
883 uuid="24d356a6-2f45-4abd-b977-1cbe9c4701f5"
884 >
885 <desc>
886 Virtual CPU property type. This enumeration represents possible values of the
887 IMachine get- and setCPUProperty methods.
888 </desc>
889 <const name="Null" value="0">
890 <desc>Null value (never used by the API).</desc>
891 </const>
892 <const name="PAE" value="1">
893 <desc>
894 This setting determines whether VirtualBox will expose the Physical Address
895 Extension (PAE) feature of the host CPU to the guest. Note that in case PAE
896 is not available, it will not be reported.
897 </desc>
898 </const>
899 <const name="Synthetic" value="2">
900 <desc>
901 This setting determines whether VirtualBox will expose a synthetic CPU to the guest to allow
902 teleporting between host systems that differ significantly.
903 </desc>
904 </const>
905 </enum>
906
907
908 <enum
909 name="HWVirtExPropertyType"
910 uuid="ce81dfdd-d2b8-4a90-bbea-40ee8b7ffcee"
911 >
912 <desc>
913 Hardware virtualization property type. This enumeration represents possible values
914 for the <link to="IMachine::getHWVirtExProperty"/> and
915 <link to="IMachine::setHWVirtExProperty"/> methods.
916 </desc>
917 <const name="Null" value="0">
918 <desc>Null value (never used by the API).</desc>
919 </const>
920 <const name="Enabled" value="1">
921 <desc>
922 Whether hardware virtualization (VT-x/AMD-V) is enabled at all. If
923 such extensions are not available, they will not be used.
924 </desc>
925 </const>
926 <const name="Exclusive" value="2">
927 <desc>
928 Whether hardware virtualization is used exclusively by VirtualBox. When enabled,
929 VirtualBox assumes it can acquire full and exclusive access to the VT-x or AMD-V
930 feature of the host. To share these with other hypervisors, you must disable this property.
931 </desc>
932 </const>
933 <const name="VPID" value="3">
934 <desc>
935 Whether VT-x VPID is enabled. If this extension is not available, it will not be used.
936 </desc>
937 </const>
938 <const name="NestedPaging" value="4">
939 <desc>
940 Whether Nested Paging is enabled. If this extension is not available, it will not be used.
941 </desc>
942 </const>
943 <const name="LargePages" value="5">
944 <desc>
945 Whether large page allocation is enabled; requires nested paging and a 64 bits host.
946 </desc>
947 </const>
948 <const name="Force" value="6">
949 <desc>
950 Whether the VM should fail to start if hardware virtualization (VT-x/AMD-V) cannot be used. If
951 not set, there will be an automatic fallback to software virtualization.
952 </desc>
953 </const>
954 </enum>
955
956 <enum
957 name="FaultToleranceState"
958 uuid="5124f7ec-6b67-493c-9dee-ee45a44114e1"
959 >
960 <desc>
961 Used with <link to="IMachine::faultToleranceState" />.
962 </desc>
963 <const name="Inactive" value="1">
964 <desc>No fault tolerance enabled.</desc>
965 </const>
966 <const name="Master" value="2">
967 <desc>Fault tolerant master VM.</desc>
968 </const>
969 <const name="Standby" value="3">
970 <desc>Fault tolerant standby VM.</desc>
971 </const>
972 </enum>
973
974 <enum
975 name="LockType"
976 uuid="168a6a8e-12fd-4878-a1f9-38a750a56089"
977 >
978 <desc>
979 Used with <link to="IMachine::lockMachine" />.
980 </desc>
981 <const name="Write" value="2">
982 <desc>Lock the machine for writing.</desc>
983 </const>
984 <const name="Shared" value="1">
985 <desc>Request only a shared read lock for remote-controlling the machine.</desc>
986 </const>
987 <const name="VM" value="3">
988 <desc>Lock the machine for writing, and create objects necessary for
989 running a VM in this process.</desc>
990 </const>
991 </enum>
992
993 <enum
994 name="SessionType"
995 uuid="A13C02CB-0C2C-421E-8317-AC0E8AAA153A"
996 >
997 <desc>
998 Session type. This enumeration represents possible values of the
999 <link to="ISession::type"/> attribute.
1000 </desc>
1001
1002 <const name="Null" value="0">
1003 <desc>Null value (never used by the API).</desc>
1004 </const>
1005 <const name="WriteLock" value="1">
1006 <desc>
1007 Session has acquired an exclusive write lock on a machine
1008 using <link to="IMachine::lockMachine"/>.
1009 </desc>
1010 </const>
1011 <const name="Remote" value="2">
1012 <desc>
1013 Session has launched a VM process using
1014 <link to="IMachine::launchVMProcess"/>
1015 </desc>
1016 </const>
1017 <const name="Shared" value="3">
1018 <desc>
1019 Session has obtained a link to another session using
1020 <link to="IMachine::lockMachine"/>
1021 </desc>
1022 </const>
1023 </enum>
1024
1025 <enum
1026 name="DeviceType"
1027 uuid="6d9420f7-0b56-4636-99f9-7346f1b01e57"
1028 >
1029 <desc>
1030 Device type.
1031 </desc>
1032 <const name="Null" value="0">
1033 <desc>
1034 Null value, may also mean "no device" (not allowed for
1035 <link to="IConsole::getDeviceActivity"/>).
1036 </desc>
1037 </const>
1038 <const name="Floppy" value="1">
1039 <desc>Floppy device.</desc>
1040 </const>
1041 <const name="DVD" value="2">
1042 <desc>CD/DVD-ROM device.</desc>
1043 </const>
1044 <const name="HardDisk" value="3">
1045 <desc>Hard disk device.</desc>
1046 </const>
1047 <const name="Network" value="4">
1048 <desc>Network device.</desc>
1049 </const>
1050 <const name="USB" value="5">
1051 <desc>USB device.</desc>
1052 </const>
1053 <const name="SharedFolder" value="6">
1054 <desc>Shared folder device.</desc>
1055 </const>
1056 </enum>
1057
1058 <enum
1059 name="DeviceActivity"
1060 uuid="6FC8AEAA-130A-4eb5-8954-3F921422D707"
1061 >
1062 <desc>
1063 Device activity for <link to="IConsole::getDeviceActivity"/>.
1064 </desc>
1065
1066 <const name="Null" value="0"/>
1067 <const name="Idle" value="1"/>
1068 <const name="Reading" value="2"/>
1069 <const name="Writing" value="3"/>
1070 </enum>
1071
1072 <enum
1073 name="ClipboardMode"
1074 uuid="33364716-4008-4701-8f14-be0fa3d62950"
1075 >
1076 <desc>
1077 Host-Guest clipboard interchange mode.
1078 </desc>
1079
1080 <const name="Disabled" value="0"/>
1081 <const name="HostToGuest" value="1"/>
1082 <const name="GuestToHost" value="2"/>
1083 <const name="Bidirectional" value="3"/>
1084 </enum>
1085
1086 <enum
1087 name="DragAndDropMode"
1088 uuid="b618ea0e-b6fb-4f8d-97f7-5e237e49b547"
1089 >
1090 <desc>
1091 Drag'n'Drop interchange mode.
1092 </desc>
1093
1094 <const name="Disabled" value="0"/>
1095 <const name="HostToGuest" value="1"/>
1096 <const name="GuestToHost" value="2"/>
1097 <const name="Bidirectional" value="3"/>
1098 </enum>
1099
1100 <enum
1101 name="Scope"
1102 uuid="7c91096e-499e-4eca-9f9b-9001438d7855"
1103 >
1104 <desc>
1105 Scope of the operation.
1106
1107 A generic enumeration used in various methods to define the action or
1108 argument scope.
1109 </desc>
1110
1111 <const name="Global" value="0"/>
1112 <const name="Machine" value="1"/>
1113 <const name="Session" value="2"/>
1114 </enum>
1115
1116 <enum
1117 name="BIOSBootMenuMode"
1118 uuid="ae4fb9f7-29d2-45b4-b2c7-d579603135d5"
1119 >
1120 <desc>
1121 BIOS boot menu mode.
1122 </desc>
1123
1124 <const name="Disabled" value="0"/>
1125 <const name="MenuOnly" value="1"/>
1126 <const name="MessageAndMenu" value="2"/>
1127 </enum>
1128
1129 <enum
1130 name="ProcessorFeature"
1131 uuid="64c38e6b-8bcf-45ad-ac03-9b406287c5bf"
1132 >
1133 <desc>
1134 CPU features.
1135 </desc>
1136
1137 <const name="HWVirtEx" value="0"/>
1138 <const name="PAE" value="1"/>
1139 <const name="LongMode" value="2"/>
1140 <const name="NestedPaging" value="3"/>
1141 </enum>
1142
1143 <enum
1144 name="FirmwareType"
1145 uuid="b903f264-c230-483e-ac74-2b37ce60d371"
1146 >
1147 <desc>
1148 Firmware type.
1149 </desc>
1150 <const name="BIOS" value="1">
1151 <desc>BIOS Firmware.</desc>
1152 </const>
1153 <const name="EFI" value="2">
1154 <desc>EFI Firmware, bitness detected basing on OS type.</desc>
1155 </const>
1156 <const name="EFI32" value="3">
1157 <desc>Efi firmware, 32-bit.</desc>
1158 </const>
1159 <const name="EFI64" value="4">
1160 <desc>Efi firmware, 64-bit.</desc>
1161 </const>
1162 <const name="EFIDUAL" value="5">
1163 <desc>Efi firmware, combined 32 and 64-bit.</desc>
1164 </const>
1165 </enum>
1166
1167 <enum
1168 name="PointingHIDType"
1169 uuid="e44b2f7b-72ba-44fb-9e53-2186014f0d17"
1170 >
1171 <desc>
1172 Type of pointing device used in a virtual machine.
1173 </desc>
1174 <const name="None" value="1">
1175 <desc>No mouse.</desc>
1176 </const>
1177 <const name="PS2Mouse" value="2">
1178 <desc>PS/2 auxiliary device, a.k.a. mouse.</desc>
1179 </const>
1180 <const name="USBMouse" value="3">
1181 <desc>USB mouse (relative pointer).</desc>
1182 </const>
1183 <const name="USBTablet" value="4">
1184 <desc>USB tablet (absolute pointer).</desc>
1185 </const>
1186 <const name="ComboMouse" value="5">
1187 <desc>Combined device, working as PS/2 or USB mouse, depending on guest behavior.
1188 Using of such device can have negative performance implications. </desc>
1189 </const>
1190 </enum>
1191
1192 <enum
1193 name="KeyboardHIDType"
1194 uuid="383e43d7-5c7c-4ec8-9cb8-eda1bccd6699"
1195 >
1196 <desc>
1197 Type of keyboard device used in a virtual machine.
1198 </desc>
1199 <const name="None" value="1">
1200 <desc>No keyboard.</desc>
1201 </const>
1202 <const name="PS2Keyboard" value="2">
1203 <desc>PS/2 keyboard.</desc>
1204 </const>
1205 <const name="USBKeyboard" value="3">
1206 <desc>USB keyboard.</desc>
1207 </const>
1208 <const name="ComboKeyboard" value="4">
1209 <desc>Combined device, working as PS/2 or USB keyboard, depending on guest behavior.
1210 Using of such device can have negative performance implications. </desc>
1211 </const>
1212 </enum>
1213
1214 <!--
1215 // IVirtualBoxErrorInfo
1216 /////////////////////////////////////////////////////////////////////////
1217 -->
1218
1219 <interface
1220 name="IVirtualBoxErrorInfo" extends="$errorinfo"
1221 uuid="f91e6e91-49e1-4fd2-b21e-269003350d06"
1222 supportsErrorInfo="no"
1223 wsmap="managed"
1224 >
1225 <desc>
1226 The IVirtualBoxErrorInfo interface represents extended error information.
1227
1228 Extended error information can be set by VirtualBox components after
1229 unsuccessful or partially successful method invocation. This information
1230 can be retrieved by the calling party as an IVirtualBoxErrorInfo object
1231 and then shown to the client in addition to the plain 32-bit result code.
1232
1233 In MS COM, this interface extends the IErrorInfo interface,
1234 in XPCOM, it extends the nsIException interface. In both cases,
1235 it provides a set of common attributes to retrieve error
1236 information.
1237
1238 Sometimes invocation of some component's method may involve methods of
1239 other components that may also fail (independently of this method's
1240 failure), or a series of non-fatal errors may precede a fatal error that
1241 causes method failure. In cases like that, it may be desirable to preserve
1242 information about all errors happened during method invocation and deliver
1243 it to the caller. The <link to="#next"/> attribute is intended
1244 specifically for this purpose and allows to represent a chain of errors
1245 through a single IVirtualBoxErrorInfo object set after method invocation.
1246
1247 <note>errors are stored to a chain in the reverse order, i.e. the
1248 initial error object you query right after method invocation is the last
1249 error set by the callee, the object it points to in the @a next attribute
1250 is the previous error and so on, up to the first error (which is the last
1251 in the chain).</note>
1252 </desc>
1253
1254 <attribute name="resultCode" type="long" readonly="yes">
1255 <desc>
1256 Result code of the error.
1257 Usually, it will be the same as the result code returned
1258 by the method that provided this error information, but not
1259 always. For example, on Win32, CoCreateInstance() will most
1260 likely return E_NOINTERFACE upon unsuccessful component
1261 instantiation attempt, but not the value the component factory
1262 returned. Value is typed 'long', not 'result',
1263 to make interface usable from scripting languages.
1264 <note>
1265 In MS COM, there is no equivalent.
1266 In XPCOM, it is the same as nsIException::result.
1267 </note>
1268 </desc>
1269 </attribute>
1270
1271 <attribute name="interfaceID" type="uuid" mod="string" readonly="yes">
1272 <desc>
1273 UUID of the interface that defined the error.
1274 <note>
1275 In MS COM, it is the same as IErrorInfo::GetGUID, except for the
1276 data type.
1277 In XPCOM, there is no equivalent.
1278 </note>
1279 </desc>
1280 </attribute>
1281
1282 <attribute name="component" type="wstring" readonly="yes">
1283 <desc>
1284 Name of the component that generated the error.
1285 <note>
1286 In MS COM, it is the same as IErrorInfo::GetSource.
1287 In XPCOM, there is no equivalent.
1288 </note>
1289 </desc>
1290 </attribute>
1291
1292 <attribute name="text" type="wstring" readonly="yes">
1293 <desc>
1294 Text description of the error.
1295 <note>
1296 In MS COM, it is the same as IErrorInfo::GetDescription.
1297 In XPCOM, it is the same as nsIException::message.
1298 </note>
1299 </desc>
1300 </attribute>
1301
1302 <attribute name="next" type="IVirtualBoxErrorInfo" readonly="yes">
1303 <desc>
1304 Next error object if there is any, or @c null otherwise.
1305 <note>
1306 In MS COM, there is no equivalent.
1307 In XPCOM, it is the same as nsIException::inner.
1308 </note>
1309 </desc>
1310 </attribute>
1311
1312 </interface>
1313
1314 <!--
1315 // IVirtualBox
1316 /////////////////////////////////////////////////////////////////////////
1317 -->
1318
1319 <interface
1320 name="IDHCPServer" extends="$unknown"
1321 uuid="6cfe387c-74fb-4ca7-bff6-973bec8af7a3"
1322 wsmap="managed"
1323 >
1324 <desc>
1325 The IDHCPServer interface represents the vbox DHCP server configuration.
1326
1327 To enumerate all the DHCP servers on the host, use the
1328 <link to="IVirtualBox::DHCPServers"/> attribute.
1329 </desc>
1330
1331 <attribute name="enabled" type="boolean">
1332 <desc>
1333 specifies if the DHCP server is enabled
1334 </desc>
1335 </attribute>
1336
1337 <attribute name="IPAddress" type="wstring" readonly="yes">
1338 <desc>
1339 specifies server IP
1340 </desc>
1341 </attribute>
1342
1343 <attribute name="networkMask" type="wstring" readonly="yes">
1344 <desc>
1345 specifies server network mask
1346 </desc>
1347 </attribute>
1348
1349 <attribute name="networkName" type="wstring" readonly="yes">
1350 <desc>
1351 specifies internal network name the server is used for
1352 </desc>
1353 </attribute>
1354
1355 <attribute name="lowerIP" type="wstring" readonly="yes">
1356 <desc>
1357 specifies from IP address in server address range
1358 </desc>
1359 </attribute>
1360
1361 <attribute name="upperIP" type="wstring" readonly="yes">
1362 <desc>
1363 specifies to IP address in server address range
1364 </desc>
1365 </attribute>
1366
1367 <method name="setConfiguration">
1368 <desc>
1369 configures the server
1370 <result name="E_INVALIDARG">
1371 invalid configuration supplied
1372 </result>
1373 </desc>
1374 <param name="IPAddress" type="wstring" dir="in">
1375 <desc>
1376 server IP address
1377 </desc>
1378 </param>
1379 <param name="networkMask" type="wstring" dir="in">
1380 <desc>
1381 server network mask
1382 </desc>
1383 </param>
1384 <param name="FromIPAddress" type="wstring" dir="in">
1385 <desc>
1386 server From IP address for address range
1387 </desc>
1388 </param>
1389 <param name="ToIPAddress" type="wstring" dir="in">
1390 <desc>
1391 server To IP address for address range
1392 </desc>
1393 </param>
1394 </method>
1395
1396 <method name="start">
1397 <desc>
1398 Starts DHCP server process.
1399 <result name="E_FAIL">
1400 Failed to start the process.
1401 </result>
1402 </desc>
1403 <param name="networkName" type="wstring" dir="in">
1404 <desc>
1405 Name of internal network DHCP server should attach to.
1406 </desc>
1407 </param>
1408 <param name="trunkName" type="wstring" dir="in">
1409 <desc>
1410 Name of internal network trunk.
1411 </desc>
1412 </param>
1413 <param name="trunkType" type="wstring" dir="in">
1414 <desc>
1415 Type of internal network trunk.
1416 </desc>
1417 </param>
1418 </method>
1419
1420 <method name="stop">
1421 <desc>
1422 Stops DHCP server process.
1423 <result name="E_FAIL">
1424 Failed to stop the process.
1425 </result>
1426 </desc>
1427 </method>
1428 </interface>
1429
1430 <interface
1431 name="IVirtualBox" extends="$unknown"
1432 uuid="3b2f08eb-b810-4715-bee0-bb06b9880ad2"
1433 wsmap="managed"
1434 >
1435 <desc>
1436 The IVirtualBox interface represents the main interface exposed by the
1437 product that provides virtual machine management.
1438
1439 An instance of IVirtualBox is required for the product to do anything
1440 useful. Even though the interface does not expose this, internally,
1441 IVirtualBox is implemented as a singleton and actually lives in the
1442 process of the VirtualBox server (VBoxSVC.exe). This makes sure that
1443 IVirtualBox can track the state of all virtual machines on a particular
1444 host, regardless of which frontend started them.
1445
1446 To enumerate all the virtual machines on the host, use the
1447 <link to="IVirtualBox::machines"/> attribute.
1448 </desc>
1449
1450 <attribute name="version" type="wstring" readonly="yes">
1451 <desc>
1452 A string representing the version number of the product. The
1453 format is 3 integer numbers divided by dots (e.g. 1.0.1). The
1454 last number represents the build number and will frequently change.
1455
1456 This may be followed by a _ALPHA[0-9]*, _BETA[0-9]* or _RC[0-9]* tag
1457 in prerelease builds. Non-Oracle builds may (/shall) also have a
1458 publisher tag, at the end. The publisher tag starts with an underscore
1459 just like the prerelease build type tag.
1460 </desc>
1461 </attribute>
1462
1463 <attribute name="versionNormalized" type="wstring" readonly="yes">
1464 <desc>
1465 A string representing the version number of the product,
1466 without the publisher information (but still with other tags).
1467 See <link to="#version" />.
1468 </desc>
1469 </attribute>
1470
1471 <attribute name="revision" type="unsigned long" readonly="yes">
1472 <desc>
1473 The internal build revision number of the product.
1474 </desc>
1475 </attribute>
1476
1477 <attribute name="packageType" type="wstring" readonly="yes">
1478 <desc>
1479 A string representing the package type of this product. The
1480 format is OS_ARCH_DIST where OS is either WINDOWS, LINUX,
1481 SOLARIS, DARWIN. ARCH is either 32BITS or 64BITS. DIST
1482 is either GENERIC, UBUNTU_606, UBUNTU_710, or something like
1483 this.
1484 </desc>
1485 </attribute>
1486
1487 <attribute name="APIVersion" type="wstring" readonly="yes">
1488 <desc>
1489 A string representing the VirtualBox API version number. The format is
1490 2 integer numbers divided by an underscore (e.g. 1_0). After the
1491 first public release of packages with a particular API version the
1492 API will not be changed in an incompatible way. Note that this
1493 guarantee does not apply to development builds, and also there is no
1494 guarantee that this version is identical to the first two integer
1495 numbers of the package version.
1496 </desc>
1497 </attribute>
1498
1499 <attribute name="homeFolder" type="wstring" readonly="yes">
1500 <desc>
1501 Full path to the directory where the global settings file,
1502 <tt>VirtualBox.xml</tt>, is stored.
1503
1504 In this version of VirtualBox, the value of this property is
1505 always <tt>&lt;user_dir&gt;/.VirtualBox</tt> (where
1506 <tt>&lt;user_dir&gt;</tt> is the path to the user directory,
1507 as determined by the host OS), and cannot be changed.
1508
1509 This path is also used as the base to resolve relative paths in
1510 places where relative paths are allowed (unless otherwise
1511 expressly indicated).
1512 </desc>
1513 </attribute>
1514
1515 <attribute name="settingsFilePath" type="wstring" readonly="yes">
1516 <desc>
1517 Full name of the global settings file.
1518 The value of this property corresponds to the value of
1519 <link to="#homeFolder"/> plus <tt>/VirtualBox.xml</tt>.
1520 </desc>
1521 </attribute>
1522
1523 <attribute name="host" type="IHost" readonly="yes">
1524 <desc>Associated host object.</desc>
1525 </attribute>
1526
1527 <attribute name="systemProperties" type="ISystemProperties" readonly="yes">
1528 <desc>Associated system information object.</desc>
1529 </attribute>
1530
1531 <attribute name="machines" type="IMachine" readonly="yes" safearray="yes">
1532 <desc>
1533 Array of machine objects registered within this VirtualBox instance.
1534 </desc>
1535 </attribute>
1536
1537 <attribute name="machineGroups" type="wstring" readonly="yes" safearray="yes">
1538 <desc>
1539 Array of all machine group names which are used by the machines which
1540 are accessible. Each group is only listed once, however they are listed
1541 in no particular order and there is no guarantee that there are no gaps
1542 in the group hierarchy (i.e. <tt>"/"</tt>, <tt>"/group/subgroup"</tt>
1543 is a valid result).
1544 </desc>
1545 </attribute>
1546
1547 <attribute name="hardDisks" type="IMedium" readonly="yes" safearray="yes">
1548 <desc>
1549 Array of medium objects known to this VirtualBox installation.
1550
1551 This array contains only base media. All differencing
1552 media of the given base medium can be enumerated using
1553 <link to="IMedium::children"/>.
1554 </desc>
1555 </attribute>
1556
1557 <attribute name="DVDImages" type="IMedium" readonly="yes" safearray="yes">
1558 <desc>
1559 Array of CD/DVD image objects currently in use by this VirtualBox instance.
1560 </desc>
1561 </attribute>
1562
1563 <attribute name="floppyImages" type="IMedium" readonly="yes" safearray="yes">
1564 <desc>
1565 Array of floppy image objects currently in use by this VirtualBox instance.
1566 </desc>
1567 </attribute>
1568
1569 <attribute name="progressOperations" type="IProgress" readonly="yes" safearray="yes"/>
1570
1571 <attribute name="guestOSTypes" type="IGuestOSType" readonly="yes" safearray="yes"/>
1572
1573 <attribute name="sharedFolders" type="ISharedFolder" readonly="yes" safearray="yes">
1574 <desc>
1575 Collection of global shared folders. Global shared folders are
1576 available to all virtual machines.
1577
1578 New shared folders are added to the collection using
1579 <link to="#createSharedFolder"/>. Existing shared folders can be
1580 removed using <link to="#removeSharedFolder"/>.
1581
1582 <note>
1583 In the current version of the product, global shared folders are not
1584 implemented and therefore this collection is always empty.
1585 </note>
1586 </desc>
1587 </attribute>
1588
1589 <attribute name="performanceCollector" type="IPerformanceCollector" readonly="yes">
1590 <desc>
1591 Associated performance collector object.
1592 </desc>
1593 </attribute>
1594
1595 <attribute name="DHCPServers" type="IDHCPServer" safearray="yes" readonly="yes">
1596 <desc>
1597 DHCP servers.
1598 </desc>
1599 </attribute>
1600
1601 <attribute name="eventSource" type="IEventSource" readonly="yes">
1602 <desc>
1603 Event source for VirtualBox events.
1604 </desc>
1605 </attribute>
1606
1607 <attribute name="extensionPackManager" type="IExtPackManager" readonly="yes">
1608 <desc>
1609 The extension pack manager.
1610 </desc>
1611 </attribute>
1612
1613
1614 <attribute name="internalNetworks" type="wstring" safearray="yes" readonly="yes">
1615 <desc>
1616 Names of all internal networks.
1617 </desc>
1618 </attribute>
1619
1620 <attribute name="genericNetworkDrivers" type="wstring" safearray="yes" readonly="yes">
1621 <desc>
1622 Names of all generic network drivers.
1623 </desc>
1624 </attribute>
1625
1626 <method name="composeMachineFilename">
1627 <desc>
1628 Returns a recommended full path of the settings file name for a new virtual
1629 machine.
1630
1631 This API serves two purposes:
1632
1633 <ul>
1634 <li>It gets called by <link to="#createMachine" /> if @c null or
1635 empty string (which is recommended) is specified for the
1636 @a settingsFile argument there, which means that API should use
1637 a recommended default file name.</li>
1638
1639 <li>It can be called manually by a client software before creating a machine,
1640 e.g. if that client wants to pre-create the machine directory to create
1641 virtual hard disks in that directory together with the new machine
1642 settings file. In that case, the file name should be stripped from the
1643 full settings file path returned by this function to obtain the
1644 machine directory.</li>
1645 </ul>
1646
1647 See <link to="IMachine::name"/> and <link to="#createMachine"/> for more
1648 details about the machine name.
1649
1650 @a groupName defines which additional subdirectory levels should be
1651 included. It must be either a valid group name or @c null or empty
1652 string which designates that the machine will not be related to a
1653 machine group.
1654
1655 If @a baseFolder is a @c null or empty string (which is recommended), the
1656 default machine settings folder
1657 (see <link to="ISystemProperties::defaultMachineFolder" />) will be used as
1658 a base folder for the created machine, resulting in a file name like
1659 "/home/user/VirtualBox VMs/name/name.vbox". Otherwise the given base folder
1660 will be used.
1661
1662 This method does not access the host disks. In particular, it does not check
1663 for whether a machine with this name already exists.
1664 </desc>
1665 <param name="name" type="wstring" dir="in">
1666 <desc>Suggested machine name.</desc>
1667 </param>
1668 <param name="group" type="wstring" dir="in">
1669 <desc>Machine group name for the new machine or machine group. It is
1670 used to determine the right subdirectory.</desc>
1671 </param>
1672 <param name="createFlags" type="wstring" dir="in">
1673 <desc>Machine creation flags, see <link to="#createMachine" /> (optional).</desc>
1674 </param>
1675 <param name="baseFolder" type="wstring" dir="in">
1676 <desc>Base machine folder (optional).</desc>
1677 </param>
1678 <param name="file" type="wstring" dir="return">
1679 <desc>Fully qualified path where the machine would be created.</desc>
1680 </param>
1681 </method>
1682
1683 <method name="createMachine">
1684 <desc>
1685 Creates a new virtual machine by creating a machine settings file at
1686 the given location.
1687
1688 VirtualBox machine settings files use a custom XML dialect. Starting
1689 with VirtualBox 4.0, a ".vbox" extension is recommended, but not enforced,
1690 and machine files can be created at arbitrary locations.
1691
1692 However, it is recommended that machines are created in the default
1693 machine folder (e.g. "/home/user/VirtualBox VMs/name/name.vbox"; see
1694 <link to="ISystemProperties::defaultMachineFolder" />). If you specify
1695 @c null or empty string (which is recommended) for the @a settingsFile
1696 argument, <link to="#composeMachineFilename" /> is called automatically
1697 to have such a recommended name composed based on the machine name
1698 given in the @a name argument and the primary group.
1699
1700 If the resulting settings file already exists, this method will fail,
1701 unless the forceOverwrite flag is set.
1702
1703 The new machine is created unregistered, with the initial configuration
1704 set according to the specified guest OS type. A typical sequence of
1705 actions to create a new virtual machine is as follows:
1706
1707 <ol>
1708 <li>
1709 Call this method to have a new machine created. The returned machine
1710 object will be "mutable" allowing to change any machine property.
1711 </li>
1712
1713 <li>
1714 Configure the machine using the appropriate attributes and methods.
1715 </li>
1716
1717 <li>
1718 Call <link to="IMachine::saveSettings" /> to write the settings
1719 to the machine's XML settings file. The configuration of the newly
1720 created machine will not be saved to disk until this method is
1721 called.
1722 </li>
1723
1724 <li>
1725 Call <link to="#registerMachine" /> to add the machine to the list
1726 of machines known to VirtualBox.
1727 </li>
1728 </ol>
1729
1730 The specified guest OS type identifier must match an ID of one of known
1731 guest OS types listed in the <link to="IVirtualBox::guestOSTypes"/>
1732 array.
1733
1734 <note>
1735 There is no way to change the name of the settings file or
1736 subfolder of the created machine directly.
1737 </note>
1738
1739 <result name="VBOX_E_OBJECT_NOT_FOUND">
1740 @a osTypeId is invalid.
1741 </result>
1742 <result name="VBOX_E_FILE_ERROR">
1743 Resulting settings file name is invalid or the settings file already
1744 exists or could not be created due to an I/O error.
1745 </result>
1746 <result name="E_INVALIDARG">
1747 @a name is empty or @c null.
1748 </result>
1749 </desc>
1750
1751 <param name="settingsFile" type="wstring" dir="in">
1752 <desc>Fully qualified path where the settings file should be created,
1753 empty string or @c null for a default folder and file based on the
1754 @a name argument and the primary group.
1755 (see <link to="#composeMachineFilename" />).</desc>
1756 </param>
1757 <param name="name" type="wstring" dir="in">
1758 <desc>Machine name.</desc>
1759 </param>
1760 <param name="groups" type="wstring" safearray="yes" dir="in">
1761 <desc>Array of group names. @c null or an empty array have the same
1762 meaning as an array with just the empty string or <tt>"/"</tt>, i.e.
1763 create a machine without group association.</desc>
1764 </param>
1765 <param name="osTypeId" type="wstring" dir="in">
1766 <desc>Guest OS Type ID.</desc>
1767 </param>
1768 <param name="flags" type="wstring" dir="in">
1769 <desc>
1770 Additional property parameters, passed as a comma-separated list of
1771 "name=value" type entries. The following ones are recognized:
1772 <tt>forceOverwrite=1</tt> to overwrite an existing machine settings
1773 file, <tt>UUID=&lt;uuid&gt;</tt> to specify a machine UUID and
1774 <tt>directoryIncludesUUID=1</tt> to switch to a special VM directory
1775 naming scheme which should not be used unless necessary.
1776 </desc>
1777 </param>
1778 <param name="machine" type="IMachine" dir="return">
1779 <desc>Created machine object.</desc>
1780 </param>
1781 </method>
1782
1783 <method name="openMachine">
1784 <desc>
1785 Opens a virtual machine from the existing settings file.
1786 The opened machine remains unregistered until you call
1787 <link to="#registerMachine"/>.
1788
1789 The specified settings file name must be fully qualified.
1790 The file must exist and be a valid machine XML settings file
1791 whose contents will be used to construct the machine object.
1792
1793 <result name="VBOX_E_FILE_ERROR">
1794 Settings file name invalid, not found or sharing violation.
1795 </result>
1796 </desc>
1797 <param name="settingsFile" type="wstring" dir="in">
1798 <desc>
1799 Name of the machine settings file.
1800 </desc>
1801 </param>
1802 <param name="machine" type="IMachine" dir="return">
1803 <desc>Opened machine object.</desc>
1804 </param>
1805 <note>
1806 <link to="IMachine::settingsModified"/> will return
1807 @c false for the created machine, until any of machine settings
1808 are changed.
1809 </note>
1810 </method>
1811
1812 <method name="registerMachine">
1813 <desc>
1814
1815 Registers the machine previously created using
1816 <link to="#createMachine"/> or opened using
1817 <link to="#openMachine"/> within this VirtualBox installation. After
1818 successful method invocation, the
1819 <link to="IMachineRegisteredEvent"/> event is fired.
1820
1821 <note>
1822 This method implicitly calls <link to="IMachine::saveSettings"/>
1823 to save all current machine settings before registering it.
1824 </note>
1825
1826 <result name="VBOX_E_OBJECT_NOT_FOUND">
1827 No matching virtual machine found.
1828 </result>
1829 <result name="VBOX_E_INVALID_OBJECT_STATE">
1830 Virtual machine was not created within this VirtualBox instance.
1831 </result>
1832
1833 </desc>
1834 <param name="machine" type="IMachine" dir="in"/>
1835 </method>
1836
1837 <method name="findMachine">
1838 <desc>
1839 Attempts to find a virtual machine given its name or UUID.
1840
1841 <note>Inaccessible machines cannot be found by name, only by UUID, because their name
1842 cannot safely be determined.</note>
1843
1844 <result name="VBOX_E_OBJECT_NOT_FOUND">
1845 Could not find registered machine matching @a nameOrId.
1846 </result>
1847
1848 </desc>
1849 <param name="nameOrId" type="wstring" dir="in">
1850 <desc>What to search for. This can either be the UUID or the name of a virtual machine.</desc>
1851 </param>
1852 <param name="machine" type="IMachine" dir="return">
1853 <desc>Machine object, if found.</desc>
1854 </param>
1855 </method>
1856
1857 <method name="getMachinesByGroups">
1858 <desc>
1859 Gets all machine references which are in one of the specified groups.
1860 </desc>
1861 <param name="groups" type="wstring" dir="in" safearray="yes">
1862 <desc>What groups to match. The usual group list rules apply, i.e.
1863 passing an empty list will match VMs in the toplevel group, likewise
1864 the empty string.</desc>
1865 </param>
1866 <param name="machines" type="IMachine" dir="return" safearray="yes">
1867 <desc>All machines which matched.</desc>
1868 </param>
1869 </method>
1870
1871 <method name="getMachineStates">
1872 <desc>
1873 Gets the state of several machines in a single operation.
1874 </desc>
1875 <param name="machines" type="IMachine" dir="in" safearray="yes">
1876 <desc>Array with the machine references.</desc>
1877 </param>
1878 <param name="states" type="MachineState" dir="return" safearray="yes">
1879 <desc>Machine states, corresponding to the machines.</desc>
1880 </param>
1881 </method>
1882
1883 <method name="createAppliance">
1884 <desc>
1885 Creates a new appliance object, which represents an appliance in the Open Virtual Machine
1886 Format (OVF). This can then be used to import an OVF appliance into VirtualBox or to export
1887 machines as an OVF appliance; see the documentation for <link to="IAppliance" /> for details.
1888 </desc>
1889 <param name="appliance" type="IAppliance" dir="return">
1890 <desc>New appliance.</desc>
1891 </param>
1892 </method>
1893
1894 <method name="createHardDisk">
1895 <desc>
1896 Creates a new base medium object that will use the given storage
1897 format and location for medium data.
1898
1899 The actual storage unit is not created by this method. In order to
1900 do it, and before you are able to attach the created medium to
1901 virtual machines, you must call one of the following methods to
1902 allocate a format-specific storage unit at the specified location:
1903 <ul>
1904 <li><link to="IMedium::createBaseStorage"/></li>
1905 <li><link to="IMedium::createDiffStorage"/></li>
1906 </ul>
1907
1908 Some medium attributes, such as <link to="IMedium::id"/>, may
1909 remain uninitialized until the medium storage unit is successfully
1910 created by one of the above methods.
1911
1912 After the storage unit is successfully created, it will be
1913 accessible through the <link to="#openMedium"/> method and can
1914 be found in the <link to="#hardDisks"/> array.
1915
1916 The list of all storage formats supported by this VirtualBox
1917 installation can be obtained using
1918 <link to="ISystemProperties::mediumFormats"/>. If the @a format
1919 attribute is empty or @c null then the default storage format
1920 specified by <link to="ISystemProperties::defaultHardDiskFormat"/> will
1921 be used for creating a storage unit of the medium.
1922
1923 Note that the format of the location string is storage format specific.
1924 See <link to="IMedium::location"/> and IMedium for more details.
1925
1926 <result name="VBOX_E_OBJECT_NOT_FOUND">
1927 @a format identifier is invalid. See
1928 <link to="ISystemProperties::mediumFormats"/>.
1929 </result>
1930 <result name="VBOX_E_FILE_ERROR">
1931 @a location is a not valid file name (for file-based formats only).
1932 </result>
1933 </desc>
1934 <param name="format" type="wstring" dir="in">
1935 <desc>
1936 Identifier of the storage format to use for the new medium.
1937 </desc>
1938 </param>
1939 <param name="location" type="wstring" dir="in">
1940 <desc>
1941 Location of the storage unit for the new medium.
1942 </desc>
1943 </param>
1944 <param name="medium" type="IMedium" dir="return">
1945 <desc>Created medium object.</desc>
1946 </param>
1947 </method>
1948
1949 <method name="openMedium">
1950 <desc>
1951 Finds existing media or opens a medium from an existing storage location.
1952
1953 Once a medium has been opened, it can be passed to other VirtualBox
1954 methods, in particular to <link to="IMachine::attachDevice" />.
1955
1956 Depending on the given device type, the file at the storage location
1957 must be in one of the media formats understood by VirtualBox:
1958
1959 <ul>
1960 <li>With a "HardDisk" device type, the file must be a hard disk image
1961 in one of the formats supported by VirtualBox (see
1962 <link to="ISystemProperties::mediumFormats" />).
1963 After this method succeeds, if the medium is a base medium, it
1964 will be added to the <link to="#hardDisks"/> array attribute. </li>
1965 <li>With a "DVD" device type, the file must be an ISO 9960 CD/DVD image.
1966 After this method succeeds, the medium will be added to the
1967 <link to="#DVDImages"/> array attribute.</li>
1968 <li>With a "Floppy" device type, the file must be an RAW floppy image.
1969 After this method succeeds, the medium will be added to the
1970 <link to="#floppyImages"/> array attribute.</li>
1971 </ul>
1972
1973 After having been opened, the medium can be re-found by this method
1974 and can be attached to virtual machines. See <link to="IMedium" /> for
1975 more details.
1976
1977 The UUID of the newly opened medium will either be retrieved from the
1978 storage location, if the format supports it (e.g. for hard disk images),
1979 or a new UUID will be randomly generated (e.g. for ISO and RAW files).
1980 If for some reason you need to change the medium's UUID, use
1981 <link to="IMedium::setIds" />.
1982
1983 If a differencing hard disk medium is to be opened by this method, the
1984 operation will succeed only if its parent medium and all ancestors,
1985 if any, are already known to this VirtualBox installation (for example,
1986 were opened by this method before).
1987
1988 This method attempts to guess the storage format of the specified medium
1989 by reading medium data at the specified location.
1990
1991 If @a accessMode is ReadWrite (which it should be for hard disks and floppies),
1992 the image is opened for read/write access and must have according permissions,
1993 as VirtualBox may actually write status information into the disk's metadata
1994 sections.
1995
1996 Note that write access is required for all typical hard disk usage in VirtualBox,
1997 since VirtualBox may need to write metadata such as a UUID into the image.
1998 The only exception is opening a source image temporarily for copying and
1999 cloning (see <link to="IMedium::cloneTo" /> when the image will be closed
2000 again soon.
2001
2002 The format of the location string is storage format specific. See
2003 <link to="IMedium::location"/> and IMedium for more details.
2004
2005 <result name="VBOX_E_FILE_ERROR">
2006 Invalid medium storage file location or could not find the medium
2007 at the specified location.
2008 </result>
2009 <result name="VBOX_E_IPRT_ERROR">
2010 Could not get medium storage format.
2011 </result>
2012 <result name="E_INVALIDARG">
2013 Invalid medium storage format.
2014 </result>
2015 <result name="VBOX_E_INVALID_OBJECT_STATE">
2016 Medium has already been added to a media registry.
2017 </result>
2018 </desc>
2019 <param name="location" type="wstring" dir="in">
2020 <desc>
2021 Location of the storage unit that contains medium data in one of
2022 the supported storage formats.
2023 </desc>
2024 </param>
2025 <param name="deviceType" type="DeviceType" dir="in">
2026 <desc>
2027 Must be one of "HardDisk", "DVD" or "Floppy".
2028 </desc>
2029 </param>
2030 <param name="accessMode" type="AccessMode" dir="in">
2031 <desc>Whether to open the image in read/write or read-only mode. For
2032 a "DVD" device type, this is ignored and read-only mode is always assumed.</desc>
2033 </param>
2034 <param name="forceNewUuid" type="boolean" dir="in">
2035 <desc>Allows the caller to request a completely new medium UUID for
2036 the image which is to be opened. Useful if one intends to open an exact
2037 copy of a previously opened image, as this would normally fail due to
2038 the duplicate UUID.</desc>
2039 </param>
2040 <param name="medium" type="IMedium" dir="return">
2041 <desc>Opened medium object.</desc>
2042 </param>
2043 </method>
2044
2045 <method name="getGuestOSType">
2046 <desc>
2047 Returns an object describing the specified guest OS type.
2048
2049 The requested guest OS type is specified using a string which is a
2050 mnemonic identifier of the guest operating system, such as
2051 <tt>"win31"</tt> or <tt>"ubuntu"</tt>. The guest OS type ID of a
2052 particular virtual machine can be read or set using the
2053 <link to="IMachine::OSTypeId"/> attribute.
2054
2055 The <link to="IVirtualBox::guestOSTypes"/> collection contains all
2056 available guest OS type objects. Each object has an
2057 <link to="IGuestOSType::id"/> attribute which contains an identifier of
2058 the guest OS this object describes.
2059
2060 <result name="E_INVALIDARG">
2061 @a id is not a valid Guest OS type.
2062 </result>
2063
2064 </desc>
2065 <param name="id" type="uuid" mod="string" dir="in">
2066 <desc>Guest OS type ID string.</desc>
2067 </param>
2068 <param name="type" type="IGuestOSType" dir="return">
2069 <desc>Guest OS type object.</desc>
2070 </param>
2071 </method>
2072
2073 <method name="createSharedFolder">
2074 <desc>
2075 Creates a new global shared folder by associating the given logical
2076 name with the given host path, adds it to the collection of shared
2077 folders and starts sharing it. Refer to the description of
2078 <link to="ISharedFolder"/> to read more about logical names.
2079 <note>
2080 In the current implementation, this operation is not
2081 implemented.
2082 </note>
2083 </desc>
2084 <param name="name" type="wstring" dir="in">
2085 <desc>Unique logical name of the shared folder.</desc>
2086 </param>
2087 <param name="hostPath" type="wstring" dir="in">
2088 <desc>Full path to the shared folder in the host file system.</desc>
2089 </param>
2090 <param name="writable" type="boolean" dir="in">
2091 <desc>Whether the share is writable or readonly</desc>
2092 </param>
2093 <param name="automount" type="boolean" dir="in">
2094 <desc>Whether the share gets automatically mounted by the guest
2095 or not.</desc>
2096 </param>
2097 </method>
2098
2099 <method name="removeSharedFolder">
2100 <desc>
2101 Removes the global shared folder with the given name previously
2102 created by <link to="#createSharedFolder"/> from the collection of
2103 shared folders and stops sharing it.
2104 <note>
2105 In the current implementation, this operation is not
2106 implemented.
2107 </note>
2108 </desc>
2109 <param name="name" type="wstring" dir="in">
2110 <desc>Logical name of the shared folder to remove.</desc>
2111 </param>
2112 </method>
2113
2114 <method name="getExtraDataKeys">
2115 <desc>
2116 Returns an array representing the global extra data keys which currently
2117 have values defined.
2118 </desc>
2119 <param name="value" type="wstring" dir="return" safearray="yes">
2120 <desc>Array of extra data keys.</desc>
2121 </param>
2122 </method>
2123
2124 <method name="getExtraData">
2125 <desc>
2126 Returns associated global extra data.
2127
2128 If the requested data @a key does not exist, this function will
2129 succeed and return an empty string in the @a value argument.
2130
2131 <result name="VBOX_E_FILE_ERROR">
2132 Settings file not accessible.
2133 </result>
2134 <result name="VBOX_E_XML_ERROR">
2135 Could not parse the settings file.
2136 </result>
2137
2138 </desc>
2139 <param name="key" type="wstring" dir="in">
2140 <desc>Name of the data key to get.</desc>
2141 </param>
2142 <param name="value" type="wstring" dir="return">
2143 <desc>Value of the requested data key.</desc>
2144 </param>
2145 </method>
2146
2147 <method name="setExtraData">
2148 <desc>
2149 Sets associated global extra data.
2150
2151 If you pass @c null or empty string as a key @a value, the given @a key
2152 will be deleted.
2153
2154 <note>
2155 Before performing the actual data change, this method will ask all
2156 registered event listener using the
2157 <link to="IExtraDataCanChangeEvent"/>
2158 notification for a permission. If one of the listeners refuses the
2159 new value, the change will not be performed.
2160 </note>
2161 <note>
2162 On success, the
2163 <link to="IExtraDataChangedEvent"/> notification
2164 is called to inform all registered listeners about a successful data
2165 change.
2166 </note>
2167
2168 <result name="VBOX_E_FILE_ERROR">
2169 Settings file not accessible.
2170 </result>
2171 <result name="VBOX_E_XML_ERROR">
2172 Could not parse the settings file.
2173 </result>
2174 <result name="E_ACCESSDENIED">
2175 Modification request refused.
2176 </result>
2177
2178 </desc>
2179 <param name="key" type="wstring" dir="in">
2180 <desc>Name of the data key to set.</desc>
2181 </param>
2182 <param name="value" type="wstring" dir="in">
2183 <desc>Value to assign to the key.</desc>
2184 </param>
2185 </method>
2186
2187 <method name="setSettingsSecret">
2188 <desc>
2189 Unlocks the secret data by passing the unlock password to the
2190 server. The server will cache the password for that machine.
2191
2192 <result name="VBOX_E_INVALID_VM_STATE">
2193 Virtual machine is not mutable.
2194 </result>
2195
2196 </desc>
2197 <param name="password" type="wstring" dir="in">
2198 <desc>
2199 The cipher key.
2200 </desc>
2201 </param>
2202 </method>
2203
2204 <!--method name="createDHCPServerForInterface">
2205 <desc>
2206 Creates a DHCP server settings to be used for the given interface
2207 <result name="E_INVALIDARG">
2208 Host network interface @a name already exists.
2209 </result>
2210 </desc>
2211 <param name="interface" type="IHostNetworkInterface" dir="in">
2212 <desc>Network Interface</desc>
2213 </param>
2214 <param name="server" type="IDHCPServer" dir="out">
2215 <desc>DHCP server settings</desc>
2216 </param>
2217 </method-->
2218
2219 <method name="createDHCPServer">
2220 <desc>
2221 Creates a DHCP server settings to be used for the given internal network name
2222 <result name="E_INVALIDARG">
2223 Host network interface @a name already exists.
2224 </result>
2225 </desc>
2226 <param name="name" type="wstring" dir="in">
2227 <desc>server name</desc>
2228 </param>
2229 <param name="server" type="IDHCPServer" dir="return">
2230 <desc>DHCP server settings</desc>
2231 </param>
2232 </method>
2233
2234 <method name="findDHCPServerByNetworkName">
2235 <desc>
2236 Searches a DHCP server settings to be used for the given internal network name
2237 <result name="E_INVALIDARG">
2238 Host network interface @a name already exists.
2239 </result>
2240
2241 </desc>
2242 <param name="name" type="wstring" dir="in">
2243 <desc>server name</desc>
2244 </param>
2245 <param name="server" type="IDHCPServer" dir="return">
2246 <desc>DHCP server settings</desc>
2247 </param>
2248 </method>
2249
2250 <!--method name="findDHCPServerForInterface">
2251 <desc>
2252 Searches a DHCP server settings to be used for the given interface
2253 <result name="E_INVALIDARG">
2254 Host network interface @a name already exists.
2255 </result>
2256 </desc>
2257 <param name="interface" type="IHostNetworkInterface" dir="in">
2258 <desc>Network Interface</desc>
2259 </param>
2260 <param name="server" type="IDHCPServer" dir="out">
2261 <desc>DHCP server settings</desc>
2262 </param>
2263 </method-->
2264
2265 <method name="removeDHCPServer">
2266 <desc>
2267 Removes the DHCP server settings
2268 <result name="E_INVALIDARG">
2269 Host network interface @a name already exists.
2270 </result>
2271 </desc>
2272 <param name="server" type="IDHCPServer" dir="in">
2273 <desc>DHCP server settings to be removed</desc>
2274 </param>
2275 </method>
2276
2277
2278 <method name="checkFirmwarePresent">
2279 <desc>
2280 Check if this VirtualBox installation has a firmware
2281 of the given type available, either system-wide or per-user.
2282 Optionally, this may return a hint where this firmware can be
2283 downloaded from.
2284 </desc>
2285 <param name="firmwareType" type="FirmwareType" dir="in">
2286 <desc>
2287 Type of firmware to check.
2288 </desc>
2289 </param>
2290 <param name="version" type="wstring" dir="in">
2291 <desc>Expected version number, usually empty string (presently ignored).</desc>
2292 </param>
2293
2294 <param name="url" type="wstring" dir="out">
2295 <desc>
2296 Suggested URL to download this firmware from.
2297 </desc>
2298 </param>
2299
2300 <param name="file" type="wstring" dir="out">
2301 <desc>
2302 Filename of firmware, only valid if result == TRUE.
2303 </desc>
2304 </param>
2305
2306 <param name="result" type="boolean" dir="return">
2307 <desc>If firmware of this type and version is available.</desc>
2308 </param>
2309 </method>
2310
2311 </interface>
2312
2313 <!--
2314 // IVFSExplorer
2315 /////////////////////////////////////////////////////////////////////////
2316 -->
2317
2318 <enum
2319 name="VFSType"
2320 uuid="813999ba-b949-48a8-9230-aadc6285e2f2"
2321 >
2322 <desc>
2323 Virtual file systems supported by VFSExplorer.
2324 </desc>
2325
2326 <const name="File" value="1" />
2327 <const name="Cloud" value="2" />
2328 <const name="S3" value="3" />
2329 <const name="WebDav" value="4" />
2330 </enum>
2331
2332 <enum
2333 name="VFSFileType"
2334 uuid="714333cd-44e2-415f-a245-d378fa9b1242"
2335 >
2336 <desc>
2337 File types known by VFSExplorer.
2338 </desc>
2339
2340 <const name="Unknown" value="1" />
2341 <const name="Fifo" value="2" />
2342 <const name="DevChar" value="3" />
2343 <const name="Directory" value="4" />
2344 <const name="DevBlock" value="5" />
2345 <const name="File" value="6" />
2346 <const name="SymLink" value="7" />
2347 <const name="Socket" value="8" />
2348 <const name="WhiteOut" value="9" />
2349 </enum>
2350
2351 <interface
2352 name="IVFSExplorer" extends="$unknown"
2353 uuid="003d7f92-d38e-487f-b790-8c5e8631cb2f"
2354 wsmap="managed"
2355 >
2356 <desc>
2357 The VFSExplorer interface unifies access to different file system
2358 types. This includes local file systems as well remote file systems like
2359 S3. For a list of supported types see <link to="VFSType" />.
2360 An instance of this is returned by <link to="IAppliance::createVFSExplorer" />.
2361 </desc>
2362
2363 <attribute name="path" type="wstring" readonly="yes">
2364 <desc>Returns the current path in the virtual file system.</desc>
2365 </attribute>
2366
2367 <attribute name="type" type="VFSType" readonly="yes">
2368 <desc>Returns the file system type which is currently in use.</desc>
2369 </attribute>
2370
2371 <method name="update">
2372 <desc>Updates the internal list of files/directories from the
2373 current directory level. Use <link to="#entryList" /> to get the full list
2374 after a call to this method.</desc>
2375
2376 <param name="aProgress" type="IProgress" dir="return">
2377 <desc>Progress object to track the operation completion.</desc>
2378 </param>
2379 </method>
2380
2381 <method name="cd">
2382 <desc>Change the current directory level.</desc>
2383
2384 <param name="aDir" type="wstring" dir="in">
2385 <desc>The name of the directory to go in.</desc>
2386 </param>
2387
2388 <param name="aProgress" type="IProgress" dir="return">
2389 <desc>Progress object to track the operation completion.</desc>
2390 </param>
2391 </method>
2392
2393 <method name="cdUp">
2394 <desc>Go one directory upwards from the current directory level.</desc>
2395
2396 <param name="aProgress" type="IProgress" dir="return">
2397 <desc>Progress object to track the operation completion.</desc>
2398 </param>
2399 </method>
2400
2401 <method name="entryList">
2402 <desc>Returns a list of files/directories after a call to <link
2403 to="#update" />. The user is responsible for keeping this internal
2404 list up do date.</desc>
2405
2406 <param name="aNames" type="wstring" safearray="yes" dir="out">
2407 <desc>The list of names for the entries.</desc>
2408 </param>
2409
2410 <param name="aTypes" type="unsigned long" safearray="yes" dir="out">
2411 <desc>The list of types for the entries.</desc>
2412 </param>
2413
2414 <param name="aSizes" type="unsigned long" safearray="yes" dir="out">
2415 <desc>The list of sizes (in bytes) for the entries.</desc>
2416 </param>
2417
2418 <param name="aModes" type="unsigned long" safearray="yes" dir="out">
2419 <desc>The list of file modes (in octal form) for the entries.</desc>
2420 </param>
2421 </method>
2422
2423 <method name="exists">
2424 <desc>Checks if the given file list exists in the current directory
2425 level.</desc>
2426
2427 <param name="aNames" type="wstring" safearray="yes" dir="in">
2428 <desc>The names to check.</desc>
2429 </param>
2430
2431 <param name="aExists" type="wstring" safearray="yes" dir="return">
2432 <desc>The names which exist.</desc>
2433 </param>
2434 </method>
2435
2436 <method name="remove">
2437 <desc>Deletes the given files in the current directory level.</desc>
2438
2439 <param name="aNames" type="wstring" safearray="yes" dir="in">
2440 <desc>The names to remove.</desc>
2441 </param>
2442
2443 <param name="aProgress" type="IProgress" dir="return">
2444 <desc>Progress object to track the operation completion.</desc>
2445 </param>
2446 </method>
2447
2448 </interface>
2449
2450 <enum
2451 name="ImportOptions" extends="$unknown"
2452 uuid="0a981523-3b20-4004-8ee3-dfd322202ace"
2453 >
2454
2455 <desc>
2456 Import options, used with <link to="IAppliance::importMachines" />.
2457 </desc>
2458
2459 <const name="KeepAllMACs" value="1">
2460 <desc>Don't generate new MAC addresses of the attached network adapters.</desc>
2461 </const>
2462 <const name="KeepNATMACs" value="2">
2463 <desc>Don't generate new MAC addresses of the attached network adapters when they are using NAT.</desc>
2464 </const>
2465
2466 </enum>
2467
2468
2469 <!--
2470 // IAppliance
2471 /////////////////////////////////////////////////////////////////////////
2472 -->
2473
2474 <interface
2475 name="IAppliance" extends="$unknown"
2476 uuid="3059cf9e-25c7-4f0b-9fa5-3c42e441670b"
2477 wsmap="managed"
2478 >
2479 <desc>
2480 Represents a platform-independent appliance in OVF format. An instance of this is returned
2481 by <link to="IVirtualBox::createAppliance" />, which can then be used to import and export
2482 virtual machines within an appliance with VirtualBox.
2483
2484 The OVF standard suggests two different physical file formats:
2485
2486 <ol>
2487 <li>If the appliance is distributed as a set of files, there must be at least one XML descriptor
2488 file that conforms to the OVF standard and carries an <tt>.ovf</tt> file extension. If
2489 this descriptor file references other files such as disk images, as OVF appliances typically
2490 do, those additional files must be in the same directory as the descriptor file.</li>
2491
2492 <li>If the appliance is distributed as a single file, it must be in TAR format and have the
2493 <tt>.ova</tt> file extension. This TAR file must then contain at least the OVF descriptor
2494 files and optionally other files.
2495
2496 At this time, VirtualBox does not not yet support the packed (TAR) variant; support will
2497 be added with a later version.</li>
2498 </ol>
2499
2500 <b>Importing</b> an OVF appliance into VirtualBox as instances of
2501 <link to="IMachine" /> involves the following sequence of API calls:
2502
2503 <ol>
2504 <li>Call <link to="IVirtualBox::createAppliance" />. This will create an empty IAppliance object.
2505 </li>
2506
2507 <li>On the new object, call <link to="#read" /> with the full path of the OVF file you
2508 would like to import. So long as this file is syntactically valid, this will succeed
2509 and fill the appliance object with the parsed data from the OVF file.
2510 </li>
2511
2512 <li>Next, call <link to="#interpret" />, which analyzes the OVF data and sets up the
2513 contents of the IAppliance attributes accordingly. These can be inspected by a
2514 VirtualBox front-end such as the GUI, and the suggestions can be displayed to the
2515 user. In particular, the <link to="#virtualSystemDescriptions" /> array contains
2516 instances of <link to="IVirtualSystemDescription" /> which represent the virtual
2517 systems (machines) in the OVF, which in turn describe the virtual hardware prescribed
2518 by the OVF (network and hardware adapters, virtual disk images, memory size and so on).
2519 The GUI can then give the user the option to confirm and/or change these suggestions.
2520 </li>
2521
2522 <li>If desired, call <link to="IVirtualSystemDescription::setFinalValues" /> for each
2523 virtual system (machine) to override the suggestions made by the <link to="#interpret" /> routine.
2524 </li>
2525
2526 <li>Finally, call <link to="#importMachines" /> to create virtual machines in
2527 VirtualBox as instances of <link to="IMachine" /> that match the information in the
2528 virtual system descriptions. After this call succeeded, the UUIDs of the machines created
2529 can be found in the <link to="#machines" /> array attribute.
2530 </li>
2531 </ol>
2532
2533 <b>Exporting</b> VirtualBox machines into an OVF appliance involves the following steps:
2534
2535 <ol>
2536 <li>As with importing, first call <link to="IVirtualBox::createAppliance" /> to create
2537 an empty IAppliance object.
2538 </li>
2539
2540 <li>For each machine you would like to export, call <link to="IMachine::export" />
2541 with the IAppliance object you just created. Each such call creates one instance of
2542 <link to="IVirtualSystemDescription" /> inside the appliance.
2543 </li>
2544
2545 <li>If desired, call <link to="IVirtualSystemDescription::setFinalValues" /> for each
2546 virtual system (machine) to override the suggestions made by the <link to="IMachine::export"/> routine.
2547 </li>
2548
2549 <li>Finally, call <link to="#write" /> with a path specification to have the OVF
2550 file written.</li>
2551 </ol>
2552
2553 </desc>
2554
2555 <attribute name="path" type="wstring" readonly="yes">
2556 <desc>Path to the main file of the OVF appliance, which is either the <tt>.ovf</tt> or
2557 the <tt>.ova</tt> file passed to <link to="#read" /> (for import) or
2558 <link to="#write" /> (for export).
2559 This attribute is empty until one of these methods has been called.
2560 </desc>
2561 </attribute>
2562
2563 <attribute name="disks" type="wstring" readonly="yes" safearray="yes">
2564 <desc>
2565 Array of virtual disk definitions. One such description exists for each
2566 disk definition in the OVF; each string array item represents one such piece of
2567 disk information, with the information fields separated by tab (\\t) characters.
2568
2569 The caller should be prepared for additional fields being appended to
2570 this string in future versions of VirtualBox and therefore check for
2571 the number of tabs in the strings returned.
2572
2573 In the current version, the following eight fields are returned per string
2574 in the array:
2575
2576 <ol>
2577 <li>Disk ID (unique string identifier given to disk)</li>
2578
2579 <li>Capacity (unsigned integer indicating the maximum capacity of the disk)</li>
2580
2581 <li>Populated size (optional unsigned integer indicating the current size of the
2582 disk; can be approximate; -1 if unspecified)</li>
2583
2584 <li>Format (string identifying the disk format, typically
2585 "http://www.vmware.com/specifications/vmdk.html#sparse")</li>
2586
2587 <li>Reference (where to find the disk image, typically a file name; if empty,
2588 then the disk should be created on import)</li>
2589
2590 <li>Image size (optional unsigned integer indicating the size of the image,
2591 which need not necessarily be the same as the values specified above, since
2592 the image may be compressed or sparse; -1 if not specified)</li>
2593
2594 <li>Chunk size (optional unsigned integer if the image is split into chunks;
2595 presently unsupported and always -1)</li>
2596
2597 <li>Compression (optional string equalling "gzip" if the image is gzip-compressed)</li>
2598 </ol>
2599 </desc>
2600 </attribute>
2601
2602 <attribute name="virtualSystemDescriptions" type="IVirtualSystemDescription" readonly="yes" safearray="yes">
2603 <desc> Array of virtual system descriptions. One such description is created
2604 for each virtual system (machine) found in the OVF.
2605 This array is empty until either <link to="#interpret" /> (for import) or <link to="IMachine::export" />
2606 (for export) has been called.
2607 </desc>
2608 </attribute>
2609
2610 <attribute name="machines" type="wstring" readonly="yes" safearray="yes">
2611 <desc>
2612 Contains the UUIDs of the machines created from the information in this appliances. This is only
2613 relevant for the import case, and will only contain data after a call to <link to="#importMachines" />
2614 succeeded.
2615 </desc>
2616 </attribute>
2617
2618 <method name="read">
2619 <desc>
2620 Reads an OVF file into the appliance object.
2621
2622 This method succeeds if the OVF is syntactically valid and, by itself, without errors. The
2623 mere fact that this method returns successfully does not mean that VirtualBox supports all
2624 features requested by the appliance; this can only be examined after a call to <link to="#interpret" />.
2625 </desc>
2626 <param name="file" type="wstring" dir="in">
2627 <desc>
2628 Name of appliance file to open (either with an <tt>.ovf</tt> or <tt>.ova</tt> extension, depending
2629 on whether the appliance is distributed as a set of files or as a single file, respectively).
2630 </desc>
2631 </param>
2632 <param name="aProgress" type="IProgress" dir="return">
2633 <desc>Progress object to track the operation completion.</desc>
2634 </param>
2635 </method>
2636
2637 <method name="interpret">
2638 <desc>
2639 Interprets the OVF data that was read when the appliance was constructed. After
2640 calling this method, one can inspect the
2641 <link to="#virtualSystemDescriptions" /> array attribute, which will then contain
2642 one <link to="IVirtualSystemDescription" /> for each virtual machine found in
2643 the appliance.
2644
2645 Calling this method is the second step of importing an appliance into VirtualBox;
2646 see <link to="IAppliance" /> for an overview.
2647
2648 After calling this method, one should call <link to="#getWarnings" /> to find out
2649 if problems were encountered during the processing which might later lead to
2650 errors.
2651 </desc>
2652 </method>
2653
2654 <method name="importMachines">
2655 <desc>
2656 Imports the appliance into VirtualBox by creating instances of <link to="IMachine" />
2657 and other interfaces that match the information contained in the appliance as
2658 closely as possible, as represented by the import instructions in the
2659 <link to="#virtualSystemDescriptions" /> array.
2660
2661 Calling this method is the final step of importing an appliance into VirtualBox;
2662 see <link to="IAppliance" /> for an overview.
2663
2664 Since importing the appliance will most probably involve copying and converting
2665 disk images, which can take a long time, this method operates asynchronously and
2666 returns an IProgress object to allow the caller to monitor the progress.
2667
2668 After the import succeeded, the UUIDs of the IMachine instances created can be
2669 retrieved from the <link to="#machines" /> array attribute.
2670 </desc>
2671
2672 <param name="options" type="ImportOptions" dir="in" safearray="yes">
2673 <desc>Options for the importing operation.</desc>
2674 </param>
2675
2676 <param name="aProgress" type="IProgress" dir="return">
2677 <desc>Progress object to track the operation completion.</desc>
2678 </param>
2679 </method>
2680
2681 <method name="createVFSExplorer">
2682 <desc>Returns a <link to="IVFSExplorer" /> object for the given URI.</desc>
2683
2684 <param name="aUri" type="wstring" dir="in">
2685 <desc>The URI describing the file system to use.</desc>
2686 </param>
2687
2688 <param name="aExplorer" type="IVFSExplorer" dir="return">
2689 <desc></desc>
2690 </param>
2691 </method>
2692
2693 <method name="write">
2694 <desc>
2695 Writes the contents of the appliance exports into a new OVF file.
2696
2697 Calling this method is the final step of exporting an appliance from VirtualBox;
2698 see <link to="IAppliance" /> for an overview.
2699
2700 Since exporting the appliance will most probably involve copying and converting
2701 disk images, which can take a long time, this method operates asynchronously and
2702 returns an IProgress object to allow the caller to monitor the progress.
2703 </desc>
2704 <param name="format" type="wstring" dir="in">
2705 <desc>
2706 Output format, as a string. Currently supported formats are "ovf-0.9", "ovf-1.0"
2707 and "ovf-2.0"; future versions of VirtualBox may support additional formats.
2708 </desc>
2709 </param>
2710 <param name="manifest" type="boolean" dir="in">
2711 <desc>
2712 Indicate if the optional manifest file (.mf) should be written. The manifest file
2713 is used for integrity checks prior import.
2714 </desc>
2715 </param>
2716 <param name="path" type="wstring" dir="in">
2717 <desc>
2718 Name of appliance file to open (either with an <tt>.ovf</tt> or <tt>.ova</tt> extension, depending
2719 on whether the appliance is distributed as a set of files or as a single file, respectively).
2720 </desc>
2721 </param>
2722 <param name="progress" type="IProgress" dir="return">
2723 <desc>Progress object to track the operation completion.</desc>
2724 </param>
2725 </method>
2726
2727 <method name="getWarnings">
2728 <desc>Returns textual warnings which occurred during execution of <link to="#interpret" />.</desc>
2729
2730 <param name="aWarnings" type="wstring" dir="return" safearray="yes">
2731 <desc></desc>
2732 </param>
2733 </method>
2734
2735 </interface>
2736
2737 <enum
2738 name="VirtualSystemDescriptionType"
2739 uuid="303c0900-a746-4612-8c67-79003e91f459"
2740 >
2741 <desc>Used with <link to="IVirtualSystemDescription" /> to describe the type of
2742 a configuration value.</desc>
2743
2744 <const name="Ignore" value="1" />
2745 <const name="OS" value="2" />
2746 <const name="Name" value="3" />
2747 <const name="Product" value="4" />
2748 <const name="Vendor" value="5" />
2749 <const name="Version" value="6" />
2750 <const name="ProductUrl" value="7" />
2751 <const name="VendorUrl" value="8" />
2752 <const name="Description" value="9" />
2753 <const name="License" value="10" />
2754 <const name="Miscellaneous" value="11" />
2755 <const name="CPU" value="12" />
2756 <const name="Memory" value="13" />
2757 <const name="HardDiskControllerIDE" value="14" />
2758 <const name="HardDiskControllerSATA" value="15" />
2759 <const name="HardDiskControllerSCSI" value="16" />
2760 <const name="HardDiskControllerSAS" value="17" />
2761 <const name="HardDiskImage" value="18" />
2762 <const name="Floppy" value="19" />
2763 <const name="CDROM" value="20" />
2764 <const name="NetworkAdapter" value="21" />
2765 <const name="USBController" value="22" />
2766 <const name="SoundCard" value="23" />
2767 <const name="SettingsFile" value="24">
2768 <desc>Not used/implemented right now, will be added later in 4.1.x.</desc>
2769 </const>
2770 </enum>
2771
2772 <enum
2773 name="VirtualSystemDescriptionValueType"
2774 uuid="56d9403f-3425-4118-9919-36f2a9b8c77c"
2775 >
2776 <desc>Used with <link to="IVirtualSystemDescription::getValuesByType" /> to describe the value
2777 type to fetch.</desc>
2778
2779 <const name="Reference" value="1" />
2780 <const name="Original" value="2" />
2781 <const name="Auto" value="3" />
2782 <const name="ExtraConfig" value="4" />
2783
2784 </enum>
2785
2786 <interface
2787 name="IVirtualSystemDescription" extends="$unknown"
2788 uuid="d7525e6c-531a-4c51-8e04-41235083a3d8"
2789 wsmap="managed"
2790 >
2791
2792 <desc>Represents one virtual system (machine) in an appliance. This interface is used in
2793 the <link to="IAppliance::virtualSystemDescriptions" /> array. After
2794 <link to="IAppliance::interpret" /> has been called, that array contains information
2795 about how the virtual systems described in the OVF should best be imported into
2796 VirtualBox virtual machines. See <link to="IAppliance" /> for the steps required to
2797 import an OVF into VirtualBox.
2798 </desc>
2799
2800 <attribute name="count" type="unsigned long" readonly="yes">
2801 <desc>Return the number of virtual system description entries.</desc>
2802 </attribute>
2803
2804 <method name="getDescription">
2805 <desc>Returns information about the virtual system as arrays of instruction items. In each array, the
2806 items with the same indices correspond and jointly represent an import instruction for VirtualBox.
2807
2808 The list below identifies the value sets that are possible depending on the
2809 <link to="VirtualSystemDescriptionType" /> enum value in the array item in @a aTypes[]. In each case,
2810 the array item with the same index in @a aOvfValues[] will contain the original value as contained
2811 in the OVF file (just for informational purposes), and the corresponding item in @a aVBoxValues[]
2812 will contain a suggested value to be used for VirtualBox. Depending on the description type,
2813 the @a aExtraConfigValues[] array item may also be used.
2814
2815 <ul>
2816 <li>
2817 "OS": the guest operating system type. There must be exactly one such array item on import. The
2818 corresponding item in @a aVBoxValues[] contains the suggested guest operating system for VirtualBox.
2819 This will be one of the values listed in <link to="IVirtualBox::guestOSTypes" />. The corresponding
2820 item in @a aOvfValues[] will contain a numerical value that described the operating system in the OVF.
2821 </li>
2822 <li>
2823 "Name": the name to give to the new virtual machine. There can be at most one such array item;
2824 if none is present on import, then an automatic name will be created from the operating system
2825 type. The corresponding item im @a aOvfValues[] will contain the suggested virtual machine name
2826 from the OVF file, and @a aVBoxValues[] will contain a suggestion for a unique VirtualBox
2827 <link to="IMachine" /> name that does not exist yet.
2828 </li>
2829 <li>
2830 "Description": an arbitrary description.
2831 </li>
2832 <li>
2833 "License": the EULA section from the OVF, if present. It is the responsibility of the calling
2834 code to display such a license for agreement; the Main API does not enforce any such policy.
2835 </li>
2836 <li>
2837 Miscellaneous: reserved for future use.
2838 </li>
2839 <li>
2840 "CPU": the number of CPUs. There can be at most one such item, which will presently be ignored.
2841 </li>
2842 <li>
2843 "Memory": the amount of guest RAM, in bytes. There can be at most one such array item; if none
2844 is present on import, then VirtualBox will set a meaningful default based on the operating system
2845 type.
2846 </li>
2847 <li>
2848 "HardDiskControllerIDE": an IDE hard disk controller. There can be at most two such items.
2849 An optional value in @a aOvfValues[] and @a aVBoxValues[] can be "PIIX3" or "PIIX4" to specify
2850 the type of IDE controller; this corresponds to the ResourceSubType element which VirtualBox
2851 writes into the OVF.
2852 The matching item in the @a aRefs[] array will contain an integer that items of the "Harddisk"
2853 type can use to specify which hard disk controller a virtual disk should be connected to.
2854 Note that in OVF, an IDE controller has two channels, corresponding to "master" and "slave"
2855 in traditional terminology, whereas the IDE storage controller that VirtualBox supports in
2856 its virtual machines supports four channels (primary master, primary slave, secondary master,
2857 secondary slave) and thus maps to two IDE controllers in the OVF sense.
2858 </li>
2859 <li>
2860 "HardDiskControllerSATA": an SATA hard disk controller. There can be at most one such item. This
2861 has no value in @a aOvfValues[] or @a aVBoxValues[].
2862 The matching item in the @a aRefs[] array will be used as with IDE controllers (see above).
2863 </li>
2864 <li>
2865 "HardDiskControllerSCSI": a SCSI hard disk controller. There can be at most one such item.
2866 The items in @a aOvfValues[] and @a aVBoxValues[] will either be "LsiLogic", "BusLogic" or
2867 "LsiLogicSas". (Note that in OVF, the LsiLogicSas controller is treated as a SCSI controller
2868 whereas VirtualBox considers it a class of storage controllers of its own; see
2869 <link to="StorageControllerType" />).
2870 The matching item in the @a aRefs[] array will be used as with IDE controllers (see above).
2871 </li>
2872 <li>
2873 "HardDiskImage": a virtual hard disk, most probably as a reference to an image file. There can be an
2874 arbitrary number of these items, one for each virtual disk image that accompanies the OVF.
2875
2876 The array item in @a aOvfValues[] will contain the file specification from the OVF file (without
2877 a path since the image file should be in the same location as the OVF file itself), whereas the
2878 item in @a aVBoxValues[] will contain a qualified path specification to where VirtualBox uses the
2879 hard disk image. This means that on import the image will be copied and converted from the
2880 "ovf" location to the "vbox" location; on export, this will be handled the other way round.
2881
2882 The matching item in the @a aExtraConfigValues[] array must contain a string of the following
2883 format: "controller=&lt;index&gt;;channel=&lt;c&gt;"
2884 In this string, &lt;index&gt; must be an integer specifying the hard disk controller to connect
2885 the image to. That number must be the index of an array item with one of the hard disk controller
2886 types (HardDiskControllerSCSI, HardDiskControllerSATA, HardDiskControllerIDE).
2887 In addition, &lt;c&gt; must specify the channel to use on that controller. For IDE controllers,
2888 this can be 0 or 1 for master or slave, respectively. For compatibility with VirtualBox versions
2889 before 3.2, the values 2 and 3 (for secondary master and secondary slave) are also supported, but
2890 no longer exported. For SATA and SCSI controllers, the channel can range from 0-29.
2891 </li>
2892 <li>
2893 "CDROM": a virtual CD-ROM drive. The matching item in @a aExtraConfigValue[] contains the same
2894 attachment information as with "HardDiskImage" items.
2895 </li>
2896 <li>
2897 "CDROM": a virtual floppy drive. The matching item in @a aExtraConfigValue[] contains the same
2898 attachment information as with "HardDiskImage" items.
2899 </li>
2900 <li>
2901 "NetworkAdapter": a network adapter. The array item in @a aVBoxValues[] will specify the hardware
2902 for the network adapter, whereas the array item in @a aExtraConfigValues[] will have a string
2903 of the "type=&lt;X&gt;" format, where &lt;X&gt; must be either "NAT" or "Bridged".
2904 </li>
2905 <li>
2906 "USBController": a USB controller. There can be at most one such item. If and only if such an
2907 item ispresent, USB support will be enabled for the new virtual machine.
2908 </li>
2909 <li>
2910 "SoundCard": a sound card. There can be at most one such item. If and only if such an item is
2911 present, sound support will be enabled for the new virtual machine. Note that the virtual
2912 machine in VirtualBox will always be presented with the standard VirtualBox soundcard, which
2913 may be different from the virtual soundcard expected by the appliance.
2914 </li>
2915 </ul>
2916
2917 </desc>
2918
2919 <param name="aTypes" type="VirtualSystemDescriptionType" dir="out" safearray="yes">
2920 <desc></desc>
2921 </param>
2922
2923 <param name="aRefs" type="wstring" dir="out" safearray="yes">
2924 <desc></desc>
2925 </param>
2926
2927 <param name="aOvfValues" type="wstring" dir="out" safearray="yes">
2928 <desc></desc>
2929 </param>
2930
2931 <param name="aVBoxValues" type="wstring" dir="out" safearray="yes">
2932 <desc></desc>
2933 </param>
2934
2935 <param name="aExtraConfigValues" type="wstring" dir="out" safearray="yes">
2936 <desc></desc>
2937 </param>
2938
2939 </method>
2940
2941 <method name="getDescriptionByType">
2942 <desc>This is the same as <link to="#getDescription" /> except that you can specify which types
2943 should be returned.</desc>
2944
2945 <param name="aType" type="VirtualSystemDescriptionType" dir="in">
2946 <desc></desc>
2947 </param>
2948
2949 <param name="aTypes" type="VirtualSystemDescriptionType" dir="out" safearray="yes">
2950 <desc></desc>
2951 </param>
2952
2953 <param name="aRefs" type="wstring" dir="out" safearray="yes">
2954 <desc></desc>
2955 </param>
2956
2957 <param name="aOvfValues" type="wstring" dir="out" safearray="yes">
2958 <desc></desc>
2959 </param>
2960
2961 <param name="aVBoxValues" type="wstring" dir="out" safearray="yes">
2962 <desc></desc>
2963 </param>
2964
2965 <param name="aExtraConfigValues" type="wstring" dir="out" safearray="yes">
2966 <desc></desc>
2967 </param>
2968
2969 </method>
2970
2971 <method name="getValuesByType">
2972 <desc>This is the same as <link to="#getDescriptionByType" /> except that you can specify which
2973 value types should be returned. See <link to="VirtualSystemDescriptionValueType" /> for possible
2974 values.</desc>
2975
2976 <param name="aType" type="VirtualSystemDescriptionType" dir="in">
2977 <desc></desc>
2978 </param>
2979
2980 <param name="aWhich" type="VirtualSystemDescriptionValueType" dir="in">
2981 <desc></desc>
2982 </param>
2983
2984 <param name="aValues" type="wstring" dir="return" safearray="yes">
2985 <desc></desc>
2986 </param>
2987
2988 </method>
2989
2990 <method name="setFinalValues">
2991 <desc>
2992 This method allows the appliance's user to change the configuration for the virtual
2993 system descriptions. For each array item returned from <link to="#getDescription" />,
2994 you must pass in one boolean value and one configuration value.
2995
2996 Each item in the boolean array determines whether the particular configuration item
2997 should be enabled.
2998 You can only disable items of the types HardDiskControllerIDE, HardDiskControllerSATA,
2999 HardDiskControllerSCSI, HardDiskImage, CDROM, Floppy, NetworkAdapter, USBController
3000 and SoundCard.
3001
3002 For the "vbox" and "extra configuration" values, if you pass in the same arrays
3003 as returned in the aVBoxValues and aExtraConfigValues arrays from <link to="#getDescription"/>,
3004 the configuration remains unchanged. Please see the documentation for <link to="#getDescription"/>
3005 for valid configuration values for the individual array item types. If the
3006 corresponding item in the aEnabled array is @c false, the configuration value is ignored.
3007 </desc>
3008
3009 <param name="aEnabled" type="boolean" dir="in" safearray="yes">
3010 <desc></desc>
3011 </param>
3012
3013 <param name="aVBoxValues" type="wstring" dir="in" safearray="yes">
3014 <desc></desc>
3015 </param>
3016
3017 <param name="aExtraConfigValues" type="wstring" dir="in" safearray="yes">
3018 <desc></desc>
3019 </param>
3020 </method>
3021
3022 <method name="addDescription">
3023 <desc>
3024 This method adds an additional description entry to the stack of already
3025 available descriptions for this virtual system. This is handy for writing
3026 values which aren't directly supported by VirtualBox. One example would
3027 be the License type of <link to="VirtualSystemDescriptionType" />.
3028 </desc>
3029
3030 <param name="aType" type="VirtualSystemDescriptionType" dir="in">
3031 <desc></desc>
3032 </param>
3033
3034 <param name="aVBoxValue" type="wstring" dir="in">
3035 <desc></desc>
3036 </param>
3037
3038 <param name="aExtraConfigValue" type="wstring" dir="in">
3039 <desc></desc>
3040 </param>
3041 </method>
3042 </interface>
3043
3044
3045 <!--
3046 // IMachine
3047 /////////////////////////////////////////////////////////////////////////
3048 -->
3049
3050 <interface
3051 name="IInternalMachineControl" extends="$unknown"
3052 uuid="dca36a92-703c-4649-98a4-f40c1ef0c336"
3053 internal="yes"
3054 wsmap="suppress"
3055 >
3056 <method name="setRemoveSavedStateFile">
3057 <desc>
3058 Updates the flag whether the saved state file is removed on a
3059 machine state change from Saved to PoweredOff.
3060 </desc>
3061 <param name="aRemove" type="boolean" dir="in"/>
3062 </method>
3063
3064 <method name="updateState">
3065 <desc>
3066 Updates the VM state.
3067 <note>
3068 This operation will also update the settings file with the correct
3069 information about the saved state file and delete this file from disk
3070 when appropriate.
3071 </note>
3072 </desc>
3073 <param name="state" type="MachineState" dir="in"/>
3074 </method>
3075
3076 <method name="getIPCId">
3077 <param name="id" type="wstring" dir="return"/>
3078 </method>
3079
3080 <method name="beginPowerUp">
3081 <desc>
3082 Tells VBoxSVC that <link to="IConsole::powerUp"/> is under ways and
3083 gives it the progress object that should be part of any pending
3084 <link to="IMachine::launchVMProcess"/> operations. The progress
3085 object may be called back to reflect an early cancelation, so some care
3086 have to be taken with respect to any cancelation callbacks. The console
3087 object will call <link to="IInternalMachineControl::endPowerUp"/>
3088 to signal the completion of the progress object.
3089 </desc>
3090 <param name="aProgress" type="IProgress" dir="in" />
3091 </method>
3092
3093 <method name="endPowerUp">
3094 <desc>
3095 Tells VBoxSVC that <link to="IConsole::powerUp"/> has completed.
3096 This method may query status information from the progress object it
3097 received in <link to="IInternalMachineControl::beginPowerUp"/> and copy
3098 it over to any in-progress <link to="IMachine::launchVMProcess"/>
3099 call in order to complete that progress object.
3100 </desc>
3101 <param name="result" type="long" dir="in"/>
3102 </method>
3103
3104 <method name="beginPoweringDown">
3105 <desc>
3106 Called by the VM process to inform the server it wants to
3107 stop the VM execution and power down.
3108 </desc>
3109 <param name="progress" type="IProgress" dir="out">
3110 <desc>
3111 Progress object created by VBoxSVC to wait until
3112 the VM is powered down.
3113 </desc>
3114 </param>
3115 </method>
3116
3117 <method name="endPoweringDown">
3118 <desc>
3119 Called by the VM process to inform the server that powering
3120 down previously requested by #beginPoweringDown is either
3121 successfully finished or there was a failure.
3122
3123 <result name="VBOX_E_FILE_ERROR">
3124 Settings file not accessible.
3125 </result>
3126 <result name="VBOX_E_XML_ERROR">
3127 Could not parse the settings file.
3128 </result>
3129
3130 </desc>
3131
3132 <param name="result" type="long" dir="in">
3133 <desc>@c S_OK to indicate success.
3134 </desc>
3135 </param>
3136 <param name="errMsg" type="wstring" dir="in">
3137 <desc>@c human readable error message in case of failure.
3138 </desc>
3139 </param>
3140 </method>
3141
3142 <method name="runUSBDeviceFilters">
3143 <desc>
3144 Asks the server to run USB devices filters of the associated
3145 machine against the given USB device and tell if there is
3146 a match.
3147 <note>
3148 Intended to be used only for remote USB devices. Local
3149 ones don't require to call this method (this is done
3150 implicitly by the Host and USBProxyService).
3151 </note>
3152 </desc>
3153 <param name="device" type="IUSBDevice" dir="in"/>
3154 <param name="matched" type="boolean" dir="out"/>
3155 <param name="maskedInterfaces" type="unsigned long" dir="out"/>
3156 </method>
3157
3158 <method name="captureUSBDevice">
3159 <desc>
3160 Requests a capture of the given host USB device.
3161 When the request is completed, the VM process will
3162 get a <link to="IInternalSessionControl::onUSBDeviceAttach"/>
3163 notification.
3164 </desc>
3165 <param name="id" type="uuid" mod="string" dir="in"/>
3166 </method>
3167
3168 <method name="detachUSBDevice">
3169 <desc>
3170 Notification that a VM is going to detach (@a done = @c false) or has
3171 already detached (@a done = @c true) the given USB device.
3172 When the @a done = @c true request is completed, the VM process will
3173 get a <link to="IInternalSessionControl::onUSBDeviceDetach"/>
3174 notification.
3175 <note>
3176 In the @a done = @c true case, the server must run its own filters
3177 and filters of all VMs but this one on the detached device
3178 as if it were just attached to the host computer.
3179 </note>
3180 </desc>
3181 <param name="id" type="uuid" mod="string" dir="in"/>
3182 <param name="done" type="boolean" dir="in"/>
3183 </method>
3184
3185 <method name="autoCaptureUSBDevices">
3186 <desc>
3187 Requests a capture all matching USB devices attached to the host.
3188 When the request is completed, the VM process will
3189 get a <link to="IInternalSessionControl::onUSBDeviceAttach"/>
3190 notification per every captured device.
3191 </desc>
3192 </method>
3193
3194 <method name="detachAllUSBDevices">
3195 <desc>
3196 Notification that a VM that is being powered down. The done
3197 parameter indicates whether which stage of the power down
3198 we're at. When @a done = @c false the VM is announcing its
3199 intentions, while when @a done = @c true the VM is reporting
3200 what it has done.
3201 <note>
3202 In the @a done = @c true case, the server must run its own filters
3203 and filters of all VMs but this one on all detach devices as
3204 if they were just attached to the host computer.
3205 </note>
3206 </desc>
3207 <param name="done" type="boolean" dir="in"/>
3208 </method>
3209
3210 <method name="onSessionEnd">
3211 <desc>
3212 Triggered by the given session object when the session is about
3213 to close normally.
3214 </desc>
3215 <param name="session" type="ISession" dir="in">
3216 <desc>Session that is being closed</desc>
3217 </param>
3218 <param name="progress" type="IProgress" dir="return">
3219 <desc>
3220 Used to wait until the corresponding machine is actually
3221 dissociated from the given session on the server.
3222 Returned only when this session is a direct one.
3223 </desc>
3224 </param>
3225 </method>
3226
3227 <method name="beginSavingState">
3228 <desc>
3229 Called by the VM process to inform the server it wants to
3230 save the current state and stop the VM execution.
3231 </desc>
3232 <param name="progress" type="IProgress" dir="out">
3233 <desc>
3234 Progress object created by VBoxSVC to wait until
3235 the state is saved.
3236 </desc>
3237 </param>
3238 <param name="stateFilePath" type="wstring" dir="out">
3239 <desc>
3240 File path the VM process must save the execution state to.
3241 </desc>
3242 </param>
3243 </method>
3244
3245 <method name="endSavingState">
3246 <desc>
3247 Called by the VM process to inform the server that saving
3248 the state previously requested by #beginSavingState is either
3249 successfully finished or there was a failure.
3250
3251 <result name="VBOX_E_FILE_ERROR">
3252 Settings file not accessible.
3253 </result>
3254 <result name="VBOX_E_XML_ERROR">
3255 Could not parse the settings file.
3256 </result>
3257
3258 </desc>
3259
3260 <param name="result" type="long" dir="in">
3261 <desc>@c S_OK to indicate success.
3262 </desc>
3263 </param>
3264 <param name="errMsg" type="wstring" dir="in">
3265 <desc>@c human readable error message in case of failure.
3266 </desc>
3267 </param>
3268 </method>
3269
3270 <method name="adoptSavedState">
3271 <desc>
3272 Gets called by <link to="IConsole::adoptSavedState"/>.
3273 <result name="VBOX_E_FILE_ERROR">
3274 Invalid saved state file path.
3275 </result>
3276 </desc>
3277 <param name="savedStateFile" type="wstring" dir="in">
3278 <desc>Path to the saved state file to adopt.</desc>
3279 </param>
3280 </method>
3281
3282 <method name="beginTakingSnapshot">
3283 <desc>
3284 Called from the VM process to request from the server to perform the
3285 server-side actions of creating a snapshot (creating differencing images
3286 and the snapshot object).
3287
3288 <result name="VBOX_E_FILE_ERROR">
3289 Settings file not accessible.
3290 </result>
3291 <result name="VBOX_E_XML_ERROR">
3292 Could not parse the settings file.
3293 </result>
3294 </desc>
3295 <param name="initiator" type="IConsole" dir="in">
3296 <desc>The console object that initiated this call.</desc>
3297 </param>
3298 <param name="name" type="wstring" dir="in">
3299 <desc>Snapshot name.</desc>
3300 </param>
3301 <param name="description" type="wstring" dir="in">
3302 <desc>Snapshot description.</desc>
3303 </param>
3304 <param name="consoleProgress" type="IProgress" dir="in">
3305 <desc>
3306 Progress object created by the VM process tracking the
3307 snapshot's progress. This has the following sub-operations:
3308 <ul>
3309 <li>setting up (weight 1);</li>
3310 <li>one for each medium attachment that needs a differencing image (weight 1 each);</li>
3311 <li>another one to copy the VM state (if offline with saved state, weight is VM memory size in MB);</li>
3312 <li>another one to save the VM state (if online, weight is VM memory size in MB);</li>
3313 <li>finishing up (weight 1)</li>
3314 </ul>
3315 </desc>
3316 </param>
3317 <param name="fTakingSnapshotOnline" type="boolean" dir="in">
3318 <desc>
3319 Whether this is an online snapshot (i.e. the machine is running).
3320 </desc>
3321 </param>
3322 <param name="stateFilePath" type="wstring" dir="out">
3323 <desc>
3324 File path the VM process must save the execution state to.
3325 </desc>
3326 </param>
3327 </method>
3328
3329 <method name="endTakingSnapshot">
3330 <desc>
3331 Called by the VM process to inform the server that the snapshot
3332 previously requested by #beginTakingSnapshot is either
3333 successfully taken or there was a failure.
3334 </desc>
3335
3336 <param name="success" type="boolean" dir="in">
3337 <desc>@c true to indicate success and @c false otherwise</desc>
3338 </param>
3339 </method>
3340
3341 <method name="deleteSnapshot">
3342 <desc>
3343 Gets called by <link to="IConsole::deleteSnapshot"/>,
3344 <link to="IConsole::deleteSnapshotAndAllChildren"/> and
3345 <link to="IConsole::deleteSnapshotRange"/>.
3346 <result name="VBOX_E_INVALID_OBJECT_STATE">
3347 Snapshot has more than one child snapshot. Only possible if the
3348 delete operation does not delete all children or the range does
3349 not meet the linearity condition.
3350 </result>
3351 </desc>
3352 <param name="initiator" type="IConsole" dir="in">
3353 <desc>The console object that initiated this call.</desc>
3354 </param>
3355 <param name="startId" type="uuid" mod="string" dir="in">
3356 <desc>UUID of the first snapshot to delete.</desc>
3357 </param>
3358 <param name="endId" type="uuid" mod="string" dir="in">
3359 <desc>UUID of the last snapshot to delete.</desc>
3360 </param>
3361 <param name="deleteAllChildren" type="boolean" dir="in">
3362 <desc>Whether all children should be deleted.</desc>
3363 </param>
3364 <param name="machineState" type="MachineState" dir="out">
3365 <desc>New machine state after this operation is started.</desc>
3366 </param>
3367 <param name="progress" type="IProgress" dir="return">
3368 <desc>Progress object to track the operation completion.</desc>
3369 </param>
3370 </method>
3371
3372 <method name="finishOnlineMergeMedium">
3373 <desc>
3374 Gets called by <link to="IInternalSessionControl::onlineMergeMedium"/>.
3375 </desc>
3376 <param name="mediumAttachment" type="IMediumAttachment" dir="in">
3377 <desc>The medium attachment which needs to be cleaned up.</desc>
3378 </param>
3379 <param name="source" type="IMedium" dir="in">
3380 <desc>Merge source medium.</desc>
3381 </param>
3382 <param name="target" type="IMedium" dir="in">
3383 <desc>Merge target medium.</desc>
3384 </param>
3385 <param name="mergeForward" type="boolean" dir="in">
3386 <desc>Merge direction.</desc>
3387 </param>
3388 <param name="parentForTarget" type="IMedium" dir="in">
3389 <desc>For forward merges: new parent for target medium.</desc>
3390 </param>
3391 <param name="childrenToReparent" type="IMedium" safearray="yes" dir="in">
3392 <desc>For backward merges: list of media which need their parent UUID
3393 updated.</desc>
3394 </param>
3395 </method>
3396
3397 <method name="restoreSnapshot">
3398 <desc>
3399 Gets called by <link to="IConsole::restoreSnapshot"/>.
3400 </desc>
3401 <param name="initiator" type="IConsole" dir="in">
3402 <desc>The console object that initiated this call.</desc>
3403 </param>
3404 <param name="snapshot" type="ISnapshot" dir="in">
3405 <desc>The snapshot to restore the VM state from.</desc>
3406 </param>
3407 <param name="machineState" type="MachineState" dir="out">
3408 <desc>New machine state after this operation is started.</desc>
3409 </param>
3410 <param name="progress" type="IProgress" dir="return">
3411 <desc>Progress object to track the operation completion.</desc>
3412 </param>
3413 </method>
3414
3415 <method name="pullGuestProperties">
3416 <desc>
3417 Get the list of the guest properties matching a set of patterns along
3418 with their values, time stamps and flags and give responsibility for
3419 managing properties to the console.
3420 </desc>
3421 <param name="name" type="wstring" dir="out" safearray="yes">
3422 <desc>
3423 The names of the properties returned.
3424 </desc>
3425 </param>
3426 <param name="value" type="wstring" dir="out" safearray="yes">
3427 <desc>
3428 The values of the properties returned. The array entries match the
3429 corresponding entries in the @a name array.
3430 </desc>
3431 </param>
3432 <param name="timestamp" type="long long" dir="out" safearray="yes">
3433 <desc>
3434 The time stamps of the properties returned. The array entries match
3435 the corresponding entries in the @a name array.
3436 </desc>
3437 </param>
3438 <param name="flags" type="wstring" dir="out" safearray="yes">
3439 <desc>
3440 The flags of the properties returned. The array entries match the
3441 corresponding entries in the @a name array.
3442 </desc>
3443 </param>
3444 </method>
3445
3446 <method name="pushGuestProperty">
3447 <desc>
3448 Update a single guest property in IMachine.
3449 </desc>
3450 <param name="name" type="wstring" dir="in">
3451 <desc>
3452 The name of the property to be updated.
3453 </desc>
3454 </param>
3455 <param name="value" type="wstring" dir="in">
3456 <desc>
3457 The value of the property.
3458 </desc>
3459 </param>
3460 <param name="timestamp" type="long long" dir="in">
3461 <desc>
3462 The timestamp of the property.
3463 </desc>
3464 </param>
3465 <param name="flags" type="wstring" dir="in">
3466 <desc>
3467 The flags of the property.
3468 </desc>
3469 </param>
3470 </method>
3471
3472 <method name="lockMedia">
3473 <desc>
3474 Locks all media attached to the machine for writing and parents of
3475 attached differencing media (if any) for reading. This operation is
3476 atomic so that if it fails no media is actually locked.
3477
3478 This method is intended to be called when the machine is in Starting or
3479 Restoring state. The locked media will be automatically unlocked when
3480 the machine is powered off or crashed.
3481 </desc>
3482 </method>
3483 <method name="unlockMedia">
3484 <desc>
3485 Unlocks all media previously locked using
3486 <link to="IInternalMachineControl::lockMedia"/>.
3487
3488 This method is intended to be used with teleportation so that it is
3489 possible to teleport between processes on the same machine.
3490 </desc>
3491 </method>
3492
3493 <method name="ejectMedium">
3494 <desc>
3495 Tells VBoxSVC that the guest has ejected the medium associated with
3496 the medium attachment.
3497 </desc>
3498 <param name="attachment" type="IMediumAttachment" dir="in">
3499 <desc>
3500 The medium attachment where the eject happened.
3501 </desc>
3502 </param>
3503 <param name="newAttachment" type="IMediumAttachment" dir="return">
3504 <desc>
3505 A new reference to the medium attachment, as the config change can
3506 result in the creation of a new instance.
3507 </desc>
3508 </param>
3509 </method>
3510
3511 <method name="reportVmStatistics">
3512 <desc>
3513 Passes statistics collected by VM (including guest statistics) to VBoxSVC.
3514 </desc>
3515 <param name="validStats" type="unsigned long" dir="in">
3516 <desc>
3517 Mask defining which parameters are valid. For example: 0x11 means
3518 that cpuIdle and XXX are valid. Other parameters should be ignored.
3519 </desc>
3520 </param>
3521 <param name="cpuUser" type="unsigned long" dir="in">
3522 <desc>Percentage of processor time spent in user mode as seen by the guest.</desc>
3523 </param>
3524 <param name="cpuKernel" type="unsigned long" dir="in">
3525 <desc>Percentage of processor time spent in kernel mode as seen by the guest.</desc>
3526 </param>
3527 <param name="cpuIdle" type="unsigned long" dir="in">
3528 <desc>Percentage of processor time spent idling as seen by the guest.</desc>
3529 </param>
3530 <param name="memTotal" type="unsigned long" dir="in">
3531 <desc>Total amount of physical guest RAM.</desc>
3532 </param>
3533 <param name="memFree" type="unsigned long" dir="in">
3534 <desc>Free amount of physical guest RAM.</desc>
3535 </param>
3536 <param name="memBalloon" type="unsigned long" dir="in">
3537 <desc>Amount of ballooned physical guest RAM.</desc>
3538 </param>
3539 <param name="memShared" type="unsigned long" dir="in">
3540 <desc>Amount of shared physical guest RAM.</desc>
3541 </param>
3542 <param name="memCache" type="unsigned long" dir="in">
3543 <desc>Total amount of guest (disk) cache memory.</desc>
3544 </param>
3545 <param name="pagedTotal" type="unsigned long" dir="in">
3546 <desc>Total amount of space in the page file.</desc>
3547 </param>
3548 <param name="memAllocTotal" type="unsigned long" dir="in">
3549 <desc>Total amount of memory allocated by the hypervisor.</desc>
3550 </param>
3551 <param name="memFreeTotal" type="unsigned long" dir="in">
3552 <desc>Total amount of free memory available in the hypervisor.</desc>
3553 </param>
3554 <param name="memBalloonTotal" type="unsigned long" dir="in">
3555 <desc>Total amount of memory ballooned by the hypervisor.</desc>
3556 </param>
3557 <param name="memSharedTotal" type="unsigned long" dir="in">
3558 <desc>Total amount of shared memory in the hypervisor.</desc>
3559 </param>
3560 <param name="vmNetRx" type="unsigned long" dir="in">
3561 <desc>Network receive rate for VM.</desc>
3562 </param>
3563 <param name="vmNetTx" type="unsigned long" dir="in">
3564 <desc>Network transmit rate for VM.</desc>
3565 </param>
3566 </method>
3567 </interface>
3568
3569 <interface
3570 name="IBIOSSettings" extends="$unknown"
3571 uuid="38b54279-dc35-4f5e-a431-835b867c6b5e"
3572 wsmap="managed"
3573 >
3574 <desc>
3575 The IBIOSSettings interface represents BIOS settings of the virtual
3576 machine. This is used only in the <link to="IMachine::BIOSSettings" /> attribute.
3577 </desc>
3578 <attribute name="logoFadeIn" type="boolean">
3579 <desc>Fade in flag for BIOS logo animation.</desc>
3580 </attribute>
3581
3582 <attribute name="logoFadeOut" type="boolean">
3583 <desc>Fade out flag for BIOS logo animation.</desc>
3584 </attribute>
3585
3586 <attribute name="logoDisplayTime" type="unsigned long">
3587 <desc>BIOS logo display time in milliseconds (0 = default).</desc>
3588 </attribute>
3589
3590 <attribute name="logoImagePath" type="wstring">
3591 <desc>
3592 Local file system path for external BIOS splash image. Empty string
3593 means the default image is shown on boot.
3594 </desc>
3595 </attribute>
3596
3597 <attribute name="bootMenuMode" type="BIOSBootMenuMode">
3598 <desc>Mode of the BIOS boot device menu.</desc>
3599 </attribute>
3600
3601 <attribute name="ACPIEnabled" type="boolean">
3602 <desc>ACPI support flag.</desc>
3603 </attribute>
3604
3605 <attribute name="IOAPICEnabled" type="boolean">
3606 <desc>
3607 IO APIC support flag. If set, VirtualBox will provide an IO APIC
3608 and support IRQs above 15.
3609 </desc>
3610 </attribute>
3611
3612 <attribute name="timeOffset" type="long long">
3613 <desc>
3614 Offset in milliseconds from the host system time. This allows for
3615 guests running with a different system date/time than the host.
3616 It is equivalent to setting the system date/time in the BIOS except
3617 it is not an absolute value but a relative one. Guest Additions
3618 time synchronization honors this offset.
3619 </desc>
3620 </attribute>
3621
3622 <attribute name="PXEDebugEnabled" type="boolean">
3623 <desc>
3624 PXE debug logging flag. If set, VirtualBox will write extensive
3625 PXE trace information to the release log.
3626 </desc>
3627 </attribute>
3628 </interface>
3629
3630 <enum
3631 name="CleanupMode"
3632 uuid="67897c50-7cca-47a9-83f6-ce8fd8eb5441"
3633 >
3634 <desc>Cleanup mode, used with <link to="IMachine::unregister" />.
3635 </desc>
3636 <const name="UnregisterOnly" value="1">
3637 <desc>Unregister only the machine, but neither delete snapshots nor detach media.</desc>
3638 </const>
3639 <const name="DetachAllReturnNone" value="2">
3640 <desc>Delete all snapshots and detach all media but return none; this will keep all media registered.</desc>
3641 </const>
3642 <const name="DetachAllReturnHardDisksOnly" value="3">
3643 <desc>Delete all snapshots, detach all media and return hard disks for closing, but not removable media.</desc>
3644 </const>
3645 <const name="Full" value="4">
3646 <desc>Delete all snapshots, detach all media and return all media for closing.</desc>
3647 </const>
3648 </enum>
3649
3650 <interface
3651 name="IPCIAddress" extends="$unknown"
3652 uuid="D88B324F-DB19-4D3B-A1A9-BF5B127199A8"
3653 wsmap="struct"
3654 >
3655
3656 <desc>
3657 Address on the PCI bus.
3658 </desc>
3659
3660 <attribute name="bus" type="short">
3661 <desc>
3662 Bus number.
3663 </desc>
3664 </attribute>
3665
3666 <attribute name="device" type="short">
3667 <desc>
3668 Device number.
3669 </desc>
3670 </attribute>
3671
3672 <attribute name="devFunction" type="short">
3673 <desc>
3674 Device function number.
3675 </desc>
3676 </attribute>
3677
3678 <method name="asLong">
3679 <desc>
3680 Convert PCI address into long.
3681 </desc>
3682 <param name="result" type="long" dir="return" />
3683 </method>
3684
3685 <method name="fromLong">
3686 <desc>
3687 Make PCI address from long.
3688 </desc>
3689 <param name="number" type="long" dir="in" />
3690 </method>
3691 </interface>
3692
3693 <interface
3694 name="IPCIDeviceAttachment" extends="$unknown"
3695 uuid="91f33d6f-e621-4f70-a77e-15f0e3c714d5"
3696 wsmap="struct"
3697 >
3698
3699 <desc>
3700 Information about PCI attachments.
3701 </desc>
3702
3703 <attribute name="name" type="wstring" readonly="yes">
3704 <desc>
3705 Device name.
3706 </desc>
3707 </attribute>
3708
3709 <attribute name="isPhysicalDevice" type="boolean" readonly="yes">
3710 <desc>
3711 If this is physical or virtual device.
3712 </desc>
3713 </attribute>
3714
3715 <attribute name="hostAddress" type="long" readonly="yes">
3716 <desc>
3717 Address of device on the host, applicable only to host devices.
3718 </desc>
3719 </attribute>
3720
3721 <attribute name="guestAddress" type="long" readonly="yes">
3722 <desc>
3723 Address of device on the guest.
3724 </desc>
3725 </attribute>
3726
3727 </interface>
3728
3729 <enum
3730 name="CloneMode" extends="$unknown"
3731 uuid="A7A159FE-5096-4B8D-8C3C-D033CB0B35A8"
3732 >
3733
3734 <desc>
3735 Clone mode, used with <link to="IMachine::cloneTo" />.
3736 </desc>
3737
3738 <const name="MachineState" value="1">
3739 <desc>Clone the state of the selected machine.</desc>
3740 </const>
3741 <const name="MachineAndChildStates" value="2">
3742 <desc>Clone the state of the selected machine and its child snapshots if present.</desc>
3743 </const>
3744 <const name="AllStates" value="3">
3745 <desc>Clone all states (including all snapshots) of the machine, regardless of the machine object used.</desc>
3746 </const>
3747
3748 </enum>
3749
3750 <enum
3751 name="CloneOptions" extends="$unknown"
3752 uuid="22243f8e-96ab-497c-8cf0-f40a566c630b"
3753 >
3754
3755 <desc>
3756 Clone options, used with <link to="IMachine::cloneTo" />.
3757 </desc>
3758
3759 <const name="Link" value="1">
3760 <desc>Create a clone VM where all virtual disks are linked to the original VM.</desc>
3761 </const>
3762 <const name="KeepAllMACs" value="2">
3763 <desc>Don't generate new MAC addresses of the attached network adapters.</desc>
3764 </const>
3765 <const name="KeepNATMACs" value="3">
3766 <desc>Don't generate new MAC addresses of the attached network adapters when they are using NAT.</desc>
3767 </const>
3768 <const name="KeepDiskNames" value="4">
3769 <desc>Don't change the disk names.</desc>
3770 </const>
3771
3772 </enum>
3773
3774 <enum
3775 name="AutostopType" extends="$unknown"
3776 uuid="6bb96740-cf34-470d-aab2-2cd48ea2e10e"
3777 >
3778
3779 <desc>
3780 Autostop types, used with <link to="IMachine::autostopType" />.
3781 </desc>
3782
3783 <const name="Disabled" value="1">
3784 <desc>Stopping the VM during system shutdown is disabled.</desc>
3785 </const>
3786 <const name="SaveState" value="2">
3787 <desc>The state of the VM will be saved when the system shuts down.</desc>
3788 </const>
3789 <const name="PowerOff" value="3">
3790 <desc>The VM is powered off when the system shuts down.</desc>
3791 </const>
3792 <const name="AcpiShutdown" value="4">
3793 <desc>An ACPI shutdown event is generated.</desc>
3794 </const>
3795
3796 </enum>
3797
3798
3799 <interface
3800 name="IMachine" extends="$unknown"
3801 uuid="381e3f31-2b27-45b7-818a-30609ade86b3"
3802 wsmap="managed"
3803 >
3804 <desc>
3805 The IMachine interface represents a virtual machine, or guest, created
3806 in VirtualBox.
3807
3808 This interface is used in two contexts. First of all, a collection of
3809 objects implementing this interface is stored in the
3810 <link to="IVirtualBox::machines"/> attribute which lists all the virtual
3811 machines that are currently registered with this VirtualBox
3812 installation. Also, once a session has been opened for the given virtual
3813 machine (e.g. the virtual machine is running), the machine object
3814 associated with the open session can be queried from the session object;
3815 see <link to="ISession"/> for details.
3816
3817 The main role of this interface is to expose the settings of the virtual
3818 machine and provide methods to change various aspects of the virtual
3819 machine's configuration. For machine objects stored in the
3820 <link to="IVirtualBox::machines"/> collection, all attributes are
3821 read-only unless explicitly stated otherwise in individual attribute
3822 and method descriptions.
3823
3824 In order to change a machine setting, a session for this machine must be
3825 opened using one of the <link to="IMachine::lockMachine" /> or
3826 <link to="IMachine::launchVMProcess"/> methods. After the
3827 machine has been successfully locked for a session, a mutable machine object
3828 needs to be queried from the session object and then the desired settings
3829 changes can be applied to the returned object using IMachine attributes and
3830 methods. See the <link to="ISession"/> interface description for more
3831 information about sessions.
3832
3833 Note that IMachine does not provide methods to control virtual machine
3834 execution (such as start the machine, or power it down) -- these methods
3835 are grouped in a separate interface called <link to="IConsole" />.
3836
3837 <see><link to="ISession"/>, <link to="IConsole"/></see>
3838 </desc>
3839
3840 <attribute name="parent" type="IVirtualBox" readonly="yes">
3841 <desc>Associated parent object.</desc>
3842 </attribute>
3843
3844 <attribute name="accessible" type="boolean" readonly="yes">
3845 <desc>
3846 Whether this virtual machine is currently accessible or not.
3847
3848 A machine is always deemed accessible unless it is registered <i>and</i>
3849 its settings file cannot be read or parsed (either because the file itself
3850 is unavailable or has invalid XML contents).
3851
3852 Every time this property is read, the accessibility state of
3853 this machine is re-evaluated. If the returned value is @c false,
3854 the <link to="#accessError"/> property may be used to get the
3855 detailed error information describing the reason of
3856 inaccessibility, including XML error messages.
3857
3858 When the machine is inaccessible, only the following properties
3859 can be used on it:
3860 <ul>
3861 <li><link to="#parent"/></li>
3862 <li><link to="#id"/></li>
3863 <li><link to="#settingsFilePath"/></li>
3864 <li><link to="#accessible"/></li>
3865 <li><link to="#accessError"/></li>
3866 </ul>
3867
3868 An attempt to access any other property or method will return
3869 an error.
3870
3871 The only possible action you can perform on an inaccessible
3872 machine is to unregister it using the
3873 <link to="IMachine::unregister"/> call (or, to check
3874 for the accessibility state once more by querying this
3875 property).
3876
3877 <note>
3878 In the current implementation, once this property returns
3879 @c true, the machine will never become inaccessible
3880 later, even if its settings file cannot be successfully
3881 read/written any more (at least, until the VirtualBox
3882 server is restarted). This limitation may be removed in
3883 future releases.
3884 </note>
3885 </desc>
3886 </attribute>
3887
3888 <attribute name="accessError" type="IVirtualBoxErrorInfo" readonly="yes">
3889 <desc>
3890 Error information describing the reason of machine
3891 inaccessibility.
3892
3893 Reading this property is only valid after the last call to
3894 <link to="#accessible"/> returned @c false (i.e. the
3895 machine is currently inaccessible). Otherwise, a @c null
3896 IVirtualBoxErrorInfo object will be returned.
3897 </desc>
3898 </attribute>
3899
3900 <attribute name="name" type="wstring">
3901 <desc>
3902 Name of the virtual machine.
3903
3904 Besides being used for human-readable identification purposes
3905 everywhere in VirtualBox, the virtual machine name is also used
3906 as a name of the machine's settings file and as a name of the
3907 subdirectory this settings file resides in. Thus, every time you
3908 change the value of this property, the settings file will be
3909 renamed once you call <link to="#saveSettings"/> to confirm the
3910 change. The containing subdirectory will be also renamed, but
3911 only if it has exactly the same name as the settings file
3912 itself prior to changing this property (for backward compatibility
3913 with previous API releases). The above implies the following
3914 limitations:
3915 <ul>
3916 <li>The machine name cannot be empty.</li>
3917 <li>The machine name can contain only characters that are valid
3918 file name characters according to the rules of the file
3919 system used to store VirtualBox configuration.</li>
3920 <li>You cannot have two or more machines with the same name
3921 if they use the same subdirectory for storing the machine
3922 settings files.</li>
3923 <li>You cannot change the name of the machine if it is running,
3924 or if any file in the directory containing the settings file
3925 is being used by another running machine or by any other
3926 process in the host operating system at a time when
3927 <link to="#saveSettings"/> is called.
3928 </li>
3929 </ul>
3930 If any of the above limitations are hit, <link to="#saveSettings"/>
3931 will return an appropriate error message explaining the exact
3932 reason and the changes you made to this machine will not be saved.
3933
3934 Starting with VirtualBox 4.0, a ".vbox" extension of the settings
3935 file is recommended, but not enforced. (Previous versions always
3936 used a generic ".xml" extension.)
3937 </desc>
3938 </attribute>
3939
3940 <attribute name="description" type="wstring">
3941 <desc>
3942 Description of the virtual machine.
3943
3944 The description attribute can contain any text and is
3945 typically used to describe the hardware and software
3946 configuration of the virtual machine in detail (i.e. network
3947 settings, versions of the installed software and so on).
3948 </desc>
3949 </attribute>
3950
3951 <attribute name="id" type="uuid" mod="string" readonly="yes">
3952 <desc>UUID of the virtual machine.</desc>
3953 </attribute>
3954
3955 <attribute name="groups" type="wstring" safearray="yes">
3956 <desc>
3957 Array of machine group names of which this machine is a member.
3958 <tt>""</tt> and <tt>"/"</tt> are synonyms for the toplevel group. Each
3959 group is only listed once, however they are listed in no particular
3960 order and there is no guarantee that there are no gaps in the group
3961 hierarchy (i.e. <tt>"/group"</tt>,
3962 <tt>"/group/subgroup/subsubgroup"</tt> is a valid result).
3963 </desc>
3964 </attribute>
3965
3966 <attribute name="OSTypeId" type="wstring">
3967 <desc>
3968 User-defined identifier of the Guest OS type.
3969 You may use <link to="IVirtualBox::getGuestOSType"/> to obtain
3970 an IGuestOSType object representing details about the given
3971 Guest OS type.
3972 <note>
3973 This value may differ from the value returned by
3974 <link to="IGuest::OSTypeId"/> if Guest Additions are
3975 installed to the guest OS.
3976 </note>
3977 </desc>
3978 </attribute>
3979
3980 <attribute name="hardwareVersion" type="wstring">
3981 <desc>Hardware version identifier. Internal use only for now.</desc>
3982 </attribute>
3983
3984 <attribute name="hardwareUUID" type="uuid" mod="string">
3985 <desc>
3986 The UUID presented to the guest via memory tables, hardware and guest
3987 properties. For most VMs this is the same as the @a id, but for VMs
3988 which have been cloned or teleported it may be the same as the source
3989 VM. The latter is because the guest shouldn't notice that it was
3990 cloned or teleported.
3991 </desc>
3992 </attribute>
3993
3994 <attribute name="CPUCount" type="unsigned long">
3995 <desc>Number of virtual CPUs in the VM.</desc>
3996 </attribute>
3997
3998 <attribute name="CPUHotPlugEnabled" type="boolean">
3999 <desc>
4000 This setting determines whether VirtualBox allows CPU
4001 hotplugging for this machine.</desc>
4002 </attribute>
4003
4004 <attribute name="CPUExecutionCap" type="unsigned long">
4005 <desc>
4006 Means to limit the number of CPU cycles a guest can use. The unit
4007 is percentage of host CPU cycles per second. The valid range
4008 is 1 - 100. 100 (the default) implies no limit.
4009 </desc>
4010 </attribute>
4011
4012 <attribute name="memorySize" type="unsigned long">
4013 <desc>System memory size in megabytes.</desc>
4014 </attribute>
4015
4016 <attribute name="memoryBalloonSize" type="unsigned long">
4017 <desc>Memory balloon size in megabytes.</desc>
4018 </attribute>
4019
4020 <attribute name="pageFusionEnabled" type="boolean">
4021 <desc>
4022 This setting determines whether VirtualBox allows page
4023 fusion for this machine (64 bits host only).
4024 </desc>
4025 </attribute>
4026
4027 <attribute name="VRAMSize" type="unsigned long">
4028 <desc>Video memory size in megabytes.</desc>
4029 </attribute>
4030
4031 <attribute name="accelerate3DEnabled" type="boolean" default="false">
4032 <desc>
4033 This setting determines whether VirtualBox allows this machine to make
4034 use of the 3D graphics support available on the host.</desc>
4035 </attribute>
4036
4037 <attribute name="accelerate2DVideoEnabled" type="boolean" default="false">
4038 <desc>
4039 This setting determines whether VirtualBox allows this machine to make
4040 use of the 2D video acceleration support available on the host.</desc>
4041 </attribute>
4042
4043 <attribute name="monitorCount" type="unsigned long">
4044 <desc>
4045 Number of virtual monitors.
4046 <note>
4047 Only effective on Windows XP and later guests with
4048 Guest Additions installed.
4049 </note>
4050 </desc>
4051 </attribute>
4052
4053 <attribute name="VideoCaptureEnabled" type="boolean" default="false">
4054 <desc>
4055 This setting determines whether VirtualBox uses video recording to
4056 record VM session.</desc>
4057 </attribute>
4058
4059 <attribute name="VideoCaptureFile" type="wstring" default="Test.webm">
4060 <desc>
4061 This setting determines what filename VirtualBox uses to save
4062 the recorded content.</desc>
4063 </attribute>
4064
4065 <attribute name="VideoCaptureWidth" type="unsigned long" default="640">
4066 <desc>
4067 This setting determines what should be the horizontal resolution of
4068 recorded video.</desc>
4069 </attribute>
4070
4071 <attribute name="VideoCaptureHeight" type="unsigned long" default="480">
4072 <desc>
4073 This setting determines what should be the vertical resolution
4074 of recorded video.</desc>
4075 </attribute>
4076
4077 <attribute name="BIOSSettings" type="IBIOSSettings" readonly="yes">
4078 <desc>Object containing all BIOS settings.</desc>
4079 </attribute>
4080
4081 <attribute name="firmwareType" type="FirmwareType">
4082 <desc>Type of firmware (such as legacy BIOS or EFI), used for initial
4083 bootstrap in this VM.</desc>
4084 </attribute>
4085
4086 <attribute name="pointingHIDType" type="PointingHIDType">
4087 <desc>Type of pointing HID (such as mouse or tablet) used in this VM.
4088 The default is typically "PS2Mouse" but can vary depending on the
4089 requirements of the guest operating system.</desc>
4090 </attribute>
4091
4092 <attribute name="keyboardHIDType" type="KeyboardHIDType">
4093 <desc>Type of keyboard HID used in this VM.
4094 The default is typically "PS2Keyboard" but can vary depending on the
4095 requirements of the guest operating system.</desc>
4096 </attribute>
4097
4098 <attribute name="HPETEnabled" type="boolean">
4099 <desc>This attribute controls if High Precision Event Timer (HPET) is
4100 enabled in this VM. Use this property if you want to provide guests
4101 with additional time source, or if guest requires HPET to function correctly.
4102 Default is false.</desc>
4103 </attribute>
4104
4105 <attribute name="chipsetType" type="ChipsetType">
4106 <desc>Chipset type used in this VM.</desc>
4107 </attribute>
4108
4109 <attribute name="snapshotFolder" type="wstring">
4110 <desc>
4111 Full path to the directory used to store snapshot data
4112 (differencing media and saved state files) of this machine.
4113
4114 The initial value of this property is
4115 <tt>&lt;</tt><link to="#settingsFilePath">
4116 path_to_settings_file</link><tt>&gt;/&lt;</tt>
4117 <link to="#id">machine_uuid</link>
4118 <tt>&gt;</tt>.
4119
4120 Currently, it is an error to try to change this property on
4121 a machine that has snapshots (because this would require to
4122 move possibly large files to a different location).
4123 A separate method will be available for this purpose later.
4124
4125 <note>
4126 Setting this property to @c null or to an empty string will restore
4127 the initial value.
4128 </note>
4129 <note>
4130 When setting this property, the specified path can be
4131 absolute (full path) or relative to the directory where the
4132 <link to="#settingsFilePath">machine settings file</link>
4133 is located. When reading this property, a full path is
4134 always returned.
4135 </note>
4136 <note>
4137 The specified path may not exist, it will be created
4138 when necessary.
4139 </note>
4140 </desc>
4141 </attribute>
4142
4143 <attribute name="VRDEServer" type="IVRDEServer" readonly="yes">
4144 <desc>VirtualBox Remote Desktop Extension (VRDE) server object.</desc>
4145 </attribute>
4146
4147 <attribute name="emulatedUSBWebcameraEnabled" type="boolean" default="false"/>
4148 <attribute name="emulatedUSBCardReaderEnabled" type="boolean" default="false"/>
4149
4150 <attribute name="mediumAttachments" type="IMediumAttachment" readonly="yes" safearray="yes">
4151 <desc>Array of media attached to this machine.</desc>
4152 </attribute>
4153
4154 <attribute name="USBController" type="IUSBController" readonly="yes">
4155 <desc>
4156 Associated USB controller object.
4157
4158 <note>
4159 If USB functionality is not available in the given edition of
4160 VirtualBox, this method will set the result code to @c E_NOTIMPL.
4161 </note>
4162 </desc>
4163 </attribute>
4164
4165 <attribute name="audioAdapter" type="IAudioAdapter" readonly="yes">
4166 <desc>Associated audio adapter, always present.</desc>
4167 </attribute>
4168
4169 <attribute name="storageControllers" type="IStorageController" readonly="yes" safearray="yes">
4170 <desc>Array of storage controllers attached to this machine.</desc>
4171 </attribute>
4172
4173 <attribute name="settingsFilePath" type="wstring" readonly="yes">
4174 <desc>
4175 Full name of the file containing machine settings data.
4176 </desc>
4177 </attribute>
4178
4179 <attribute name="settingsModified" type="boolean" readonly="yes">
4180 <desc>
4181 Whether the settings of this machine have been modified
4182 (but neither yet saved nor discarded).
4183 <note>
4184 Reading this property is only valid on instances returned
4185 by <link to="ISession::machine"/> and on new machines
4186 created by <link to="IVirtualBox::createMachine"/> or opened
4187 by <link to="IVirtualBox::openMachine"/> but not
4188 yet registered, or on unregistered machines after calling
4189 <link to="IMachine::unregister"/>. For all other
4190 cases, the settings can never be modified.
4191 </note>
4192 <note>
4193 For newly created unregistered machines, the value of this
4194 property is always @c true until <link to="#saveSettings"/>
4195 is called (no matter if any machine settings have been
4196 changed after the creation or not). For opened machines
4197 the value is set to @c false (and then follows to normal rules).
4198 </note>
4199 </desc>
4200 </attribute>
4201
4202 <attribute name="sessionState" type="SessionState" readonly="yes">
4203 <desc>Current session state for this machine.</desc>
4204 </attribute>
4205
4206 <attribute name="sessionType" type="wstring" readonly="yes">
4207 <desc>
4208 Type of the session. If <link to="#sessionState"/> is
4209 Spawning or Locked, this attribute contains the
4210 same value as passed to the
4211 <link to="IMachine::launchVMProcess"/> method in the
4212 @a type parameter. If the session was used with
4213 <link to="IMachine::lockMachine" />, or if
4214 <link to="#sessionState"/> is SessionClosed, the value of this
4215 attribute is an empty string.
4216 </desc>
4217 </attribute>
4218
4219 <attribute name="sessionPID" type="unsigned long" readonly="yes">
4220 <desc>
4221 Identifier of the session process. This attribute contains the
4222 platform-dependent identifier of the process whose session was
4223 used with <link to="IMachine::lockMachine" /> call. The returned
4224 value is only valid if <link to="#sessionState"/> is Locked or
4225 Unlocking by the time this property is read.
4226 </desc>
4227 </attribute>
4228
4229 <attribute name="state" type="MachineState" readonly="yes">
4230 <desc>Current execution state of this machine.</desc>
4231 </attribute>
4232
4233 <attribute name="lastStateChange" type="long long" readonly="yes">
4234 <desc>
4235 Time stamp of the last execution state change,
4236 in milliseconds since 1970-01-01 UTC.
4237 </desc>
4238 </attribute>
4239
4240 <attribute name="stateFilePath" type="wstring" readonly="yes">
4241 <desc>
4242 Full path to the file that stores the execution state of
4243 the machine when it is in the <link to="MachineState_Saved"/> state.
4244 <note>
4245 When the machine is not in the Saved state, this attribute is
4246 an empty string.
4247 </note>
4248 </desc>
4249 </attribute>
4250
4251 <attribute name="logFolder" type="wstring" readonly="yes">
4252 <desc>
4253 Full path to the folder that stores a set of rotated log files
4254 recorded during machine execution. The most recent log file is
4255 named <tt>VBox.log</tt>, the previous log file is
4256 named <tt>VBox.log.1</tt> and so on (up to <tt>VBox.log.3</tt>
4257 in the current version).
4258 </desc>
4259 </attribute>
4260
4261 <attribute name="currentSnapshot" type="ISnapshot" readonly="yes">
4262 <desc>
4263 Current snapshot of this machine. This is @c null if the machine
4264 currently has no snapshots. If it is not @c null, then it was
4265 set by one of <link to="IConsole::takeSnapshot" />,
4266 <link to="IConsole::deleteSnapshot" />
4267 or <link to="IConsole::restoreSnapshot" />, depending on which
4268 was called last. See <link to="ISnapshot"/> for details.
4269 </desc>
4270 </attribute>
4271
4272 <attribute name="snapshotCount" type="unsigned long" readonly="yes">
4273 <desc>
4274 Number of snapshots taken on this machine. Zero means the
4275 machine doesn't have any snapshots.
4276 </desc>
4277 </attribute>
4278
4279 <attribute name="currentStateModified" type="boolean" readonly="yes">
4280 <desc>
4281 Returns @c true if the current state of the machine is not
4282 identical to the state stored in the current snapshot.
4283
4284 The current state is identical to the current snapshot only
4285 directly after one of the following calls are made:
4286
4287 <ul>
4288 <li><link to="IConsole::restoreSnapshot"/>
4289 </li>
4290 <li><link to="IConsole::takeSnapshot"/> (issued on a
4291 "powered off" or "saved" machine, for which
4292 <link to="#settingsModified"/> returns @c false)
4293 </li>
4294 </ul>
4295
4296 The current state remains identical until one of the following
4297 happens:
4298 <ul>
4299 <li>settings of the machine are changed</li>
4300 <li>the saved state is deleted</li>
4301 <li>the current snapshot is deleted</li>
4302 <li>an attempt to execute the machine is made</li>
4303 </ul>
4304
4305 <note>
4306 For machines that don't have snapshots, this property is
4307 always @c false.
4308 </note>
4309 </desc>
4310 </attribute>
4311
4312 <attribute name="sharedFolders" type="ISharedFolder" readonly="yes" safearray="yes">
4313 <desc>
4314 Collection of shared folders for this machine (permanent shared
4315 folders). These folders are shared automatically at machine startup
4316 and available only to the guest OS installed within this machine.
4317
4318 New shared folders are added to the collection using
4319 <link to="#createSharedFolder"/>. Existing shared folders can be
4320 removed using <link to="#removeSharedFolder"/>.
4321 </desc>
4322 </attribute>
4323
4324 <attribute name="clipboardMode" type="ClipboardMode">
4325 <desc>
4326 Synchronization mode between the host OS clipboard
4327 and the guest OS clipboard.
4328 </desc>
4329 </attribute>
4330
4331 <attribute name="dragAndDropMode" type="DragAndDropMode">
4332 <desc>
4333 Which mode is allowed for drag'n'drop.
4334 </desc>
4335 </attribute>
4336
4337 <attribute name="guestPropertyNotificationPatterns" type="wstring">
4338 <desc>
4339 A comma-separated list of simple glob patterns. Changes to guest
4340 properties whose name matches one of the patterns will generate an
4341 <link to="IGuestPropertyChangedEvent"/> signal.
4342 </desc>
4343 </attribute>
4344
4345 <attribute name="teleporterEnabled" type="boolean">
4346 <desc>
4347 When set to @a true, the virtual machine becomes a target teleporter
4348 the next time it is powered on. This can only set to @a true when the
4349 VM is in the @a PoweredOff or @a Aborted state.
4350
4351 <!-- This property is automatically set to @a false when the VM is powered
4352 on. (bird: This doesn't work yet ) -->
4353 </desc>
4354 </attribute>
4355
4356 <attribute name="teleporterPort" type="unsigned long">
4357 <desc>
4358 The TCP port the target teleporter will listen for incoming
4359 teleportations on.
4360
4361 0 means the port is automatically selected upon power on. The actual
4362 value can be read from this property while the machine is waiting for
4363 incoming teleportations.
4364 </desc>
4365 </attribute>
4366
4367 <attribute name="teleporterAddress" type="wstring">
4368 <desc>
4369 The address the target teleporter will listen on. If set to an empty
4370 string, it will listen on all addresses.
4371 </desc>
4372 </attribute>
4373
4374 <attribute name="teleporterPassword" type="wstring">
4375 <desc>
4376 The password to check for on the target teleporter. This is just a
4377 very basic measure to prevent simple hacks and operators accidentally
4378 beaming a virtual machine to the wrong place.
4379
4380 Note that you SET a plain text password while reading back a HASHED
4381 password. Setting a hashed password is currently not supported.
4382 </desc>
4383 </attribute>
4384
4385 <attribute name="faultToleranceState" type="FaultToleranceState">
4386 <desc>
4387 Fault tolerance state; disabled, source or target.
4388 This property can be changed at any time. If you change it for a running
4389 VM, then the fault tolerance address and port must be set beforehand.
4390 </desc>
4391 </attribute>
4392
4393 <attribute name="faultTolerancePort" type="unsigned long">
4394 <desc>
4395 The TCP port the fault tolerance source or target will use for
4396 communication.
4397 </desc>
4398 </attribute>
4399
4400 <attribute name="faultToleranceAddress" type="wstring">
4401 <desc>
4402 The address the fault tolerance source or target.
4403 </desc>
4404 </attribute>
4405
4406 <attribute name="faultTolerancePassword" type="wstring">
4407 <desc>
4408 The password to check for on the standby VM. This is just a
4409 very basic measure to prevent simple hacks and operators accidentally
4410 choosing the wrong standby VM.
4411 </desc>
4412 </attribute>
4413
4414 <attribute name="faultToleranceSyncInterval" type="unsigned long">
4415 <desc>
4416 The interval in ms used for syncing the state between source and target.
4417 </desc>
4418 </attribute>
4419
4420 <attribute name="RTCUseUTC" type="boolean">
4421 <desc>
4422 When set to @a true, the RTC device of the virtual machine will run
4423 in UTC time, otherwise in local time. Especially Unix guests prefer
4424 the time in UTC.
4425 </desc>
4426 </attribute>
4427
4428 <attribute name="IOCacheEnabled" type="boolean">
4429 <desc>
4430 When set to @a true, the builtin I/O cache of the virtual machine
4431 will be enabled.
4432 </desc>
4433 </attribute>
4434
4435 <attribute name="IOCacheSize" type="unsigned long">
4436 <desc>
4437 Maximum size of the I/O cache in MB.
4438 </desc>
4439 </attribute>
4440
4441 <attribute name="PCIDeviceAssignments" type="IPCIDeviceAttachment" readonly="yes" safearray="yes">
4442 <desc>Array of PCI devices assigned to this machine, to get list of all
4443 PCI devices attached to the machine use
4444 <link to="IConsole::attachedPCIDevices"/> attribute, as this attribute
4445 is intended to list only devices additional to what described in
4446 virtual hardware config. Usually, this list keeps host's physical
4447 devices assigned to the particular machine.
4448 </desc>
4449 </attribute>
4450
4451 <attribute name="bandwidthControl" type="IBandwidthControl" readonly="yes">
4452 <desc>
4453 Bandwidth control manager.
4454 </desc>
4455 </attribute>
4456
4457 <attribute name="tracingEnabled" type="boolean">
4458 <desc>
4459 Enables the tracing facility in the VMM (including PDM devices +
4460 drivers). The VMM will consume about 0.5MB of more memory when
4461 enabled and there may be some extra overhead from tracepoints that are
4462 always enabled.
4463 </desc>
4464 </attribute>
4465
4466 <attribute name="tracingConfig" type="wstring">
4467 <desc>
4468 Tracepoint configuration to apply at startup when
4469 <link to="IMachine::tracingEnabled" /> is true. The string specifies
4470 a space separated of tracepoint group names to enable. The special
4471 group 'all' enables all tracepoints. Check DBGFR3TracingConfig for
4472 more details on available tracepoint groups and such.
4473
4474 Note that on hosts supporting DTrace (or similar), a lot of the
4475 tracepoints may be implemented exclusivly as DTrace probes. So, the
4476 effect of the same config may differ between Solaris and Windows for
4477 example.
4478 </desc>
4479 </attribute>
4480
4481 <attribute name="allowTracingToAccessVM" type="boolean">
4482 <desc>
4483 Enables tracepoints in PDM devices and drivers to use the VMCPU or VM
4484 structures when firing off trace points. This is especially useful
4485 with DTrace tracepoints, as it allows you to use the VMCPU or VM
4486 pointer to obtain useful information such as guest register state.
4487
4488 This is disabled by default because devices and drivers normally has no
4489 business accessing the VMCPU or VM structures, and are therefore unable
4490 to get any pointers to these.
4491 </desc>
4492 </attribute>
4493
4494 <attribute name="autostartEnabled" type="boolean">
4495 <desc>
4496 Enables autostart of the VM during system boot.
4497 </desc>
4498 </attribute>
4499
4500 <attribute name="autostartDelay" type="unsigned long">
4501 <desc>
4502 Number of seconds to wait until the VM should be started during system boot.
4503 </desc>
4504 </attribute>
4505
4506 <attribute name="autostopType" type="AutostopType">
4507 <desc>
4508 Action type to do when the system is shutting down.
4509 </desc>
4510 </attribute>
4511
4512 <attribute name="defaultFrontend" type="wstring">
4513 <desc>
4514 Selects which VM frontend should be used by default when launching
4515 this VM through the <link to="IMachine::launchVMProcess" /> method.
4516 Empty or @c null strings do not define a particular default, it is up
4517 to <link to="IMachine::launchVMProcess" /> to select one. See the
4518 description of <link to="IMachine::launchVMProcess" /> for the valid
4519 frontend types.
4520
4521 This per-VM setting overrides the default defined by
4522 <link to="ISystemProperties::defaultFrontend" /> attribute, and is
4523 overridden by a frontend type passed to
4524 <link to="IMachine::launchVMProcess" />.
4525 </desc>
4526 </attribute>
4527
4528 <method name="lockMachine">
4529 <desc>
4530 Locks the machine for the given session to enable the caller
4531 to make changes to the machine or start the VM or control
4532 VM execution.
4533
4534 There are two ways to lock a machine for such uses:
4535
4536 <ul>
4537 <li>If you want to make changes to the machine settings,
4538 you must obtain an exclusive write lock on the machine
4539 by setting @a lockType to @c Write.
4540
4541 This will only succeed if no other process has locked
4542 the machine to prevent conflicting changes. Only after
4543 an exclusive write lock has been obtained using this method, one
4544 can change all VM settings or execute the VM in the process
4545 space of the session object. (Note that the latter is only of
4546 interest if you actually want to write a new front-end for
4547 virtual machines; but this API gets called internally by
4548 the existing front-ends such as VBoxHeadless and the VirtualBox
4549 GUI to acquire a write lock on the machine that they are running.)
4550
4551 On success, write-locking the machine for a session creates
4552 a second copy of the IMachine object. It is this second object
4553 upon which changes can be made; in VirtualBox terminology, the
4554 second copy is "mutable". It is only this second, mutable machine
4555 object upon which you can call methods that change the
4556 machine state. After having called this method, you can
4557 obtain this second, mutable machine object using the
4558 <link to="ISession::machine" /> attribute.
4559 </li>
4560 <li>If you only want to check the machine state or control
4561 machine execution without actually changing machine
4562 settings (e.g. to get access to VM statistics or take
4563 a snapshot or save the machine state), then set the
4564 @a lockType argument to @c Shared.
4565
4566 If no other session has obtained a lock, you will obtain an
4567 exclusive write lock as described above. However, if another
4568 session has already obtained such a lock, then a link to that
4569 existing session will be established which allows you
4570 to control that existing session.
4571
4572 To find out which type of lock was obtained, you can
4573 inspect <link to="ISession::type" />, which will have been
4574 set to either @c WriteLock or @c Shared.
4575 </li>
4576 </ul>
4577
4578 In either case, you can get access to the <link to="IConsole" />
4579 object which controls VM execution.
4580
4581 Also in all of the above cases, one must always call
4582 <link to="ISession::unlockMachine" /> to release the lock on the machine, or
4583 the machine's state will eventually be set to "Aborted".
4584
4585 To change settings on a machine, the following sequence is typically
4586 performed:
4587
4588 <ol>
4589 <li>Call this method to obtain an exclusive write lock for the current session.</li>
4590
4591 <li>Obtain a mutable IMachine object from <link to="ISession::machine" />.</li>
4592
4593 <li>Change the settings of the machine by invoking IMachine methods.</li>
4594
4595 <li>Call <link to="IMachine::saveSettings" />.</li>
4596
4597 <li>Release the write lock by calling <link to="ISession::unlockMachine"/>.</li>
4598 </ol>
4599
4600 <result name="E_UNEXPECTED">
4601 Virtual machine not registered.
4602 </result>
4603 <result name="E_ACCESSDENIED">
4604 Process not started by OpenRemoteSession.
4605 </result>
4606 <result name="VBOX_E_INVALID_OBJECT_STATE">
4607 Session already open or being opened.
4608 </result>
4609 <result name="VBOX_E_VM_ERROR">
4610 Failed to assign machine to session.
4611 </result>
4612 </desc>
4613 <param name="session" type="ISession" dir="in">
4614 <desc>
4615 Session object for which the machine will be locked.
4616 </desc>
4617 </param>
4618 <param name="lockType" type="LockType" dir="in">
4619 <desc>
4620 If set to @c Write, then attempt to acquire an exclusive write lock or fail.
4621 If set to @c Shared, then either acquire an exclusive write lock or establish
4622 a link to an existing session.
4623 </desc>
4624 </param>
4625 </method>
4626
4627 <method name="launchVMProcess">
4628 <desc>
4629 Spawns a new process that will execute the virtual machine and obtains a shared
4630 lock on the machine for the calling session.
4631
4632 If launching the VM succeeds, the new VM process will create its own session
4633 and write-lock the machine for it, preventing conflicting changes from other
4634 processes. If the machine is already locked (because it is already running or
4635 because another session has a write lock), launching the VM process will therefore
4636 fail. Reversely, future attempts to obtain a write lock will also fail while the
4637 machine is running.
4638
4639 The caller's session object remains separate from the session opened by the new
4640 VM process. It receives its own <link to="IConsole" /> object which can be used
4641 to control machine execution, but it cannot be used to change all VM settings
4642 which would be available after a <link to="#lockMachine" /> call.
4643
4644 The caller must eventually release the session's shared lock by calling
4645 <link to="ISession::unlockMachine" /> on the local session object once this call
4646 has returned. However, the session's state (see <link to="ISession::state" />)
4647 will not return to "Unlocked" until the remote session has also unlocked
4648 the machine (i.e. the machine has stopped running).
4649
4650 Launching a VM process can take some time (a new VM is started in a new process,
4651 for which memory and other resources need to be set up). Because of this,
4652 an <link to="IProgress" /> object is returned to allow the caller to wait
4653 for this asynchronous operation to be completed. Until then, the caller's
4654 session object remains in the "Unlocked" state, and its <link to="ISession::machine" />
4655 and <link to="ISession::console" /> attributes cannot be accessed.
4656 It is recommended to use <link to="IProgress::waitForCompletion" /> or
4657 similar calls to wait for completion. Completion is signalled when the VM
4658 is powered on. If launching the VM fails, error messages can be queried
4659 via the progress object, if available.
4660
4661 The progress object will have at least 2 sub-operations. The first
4662 operation covers the period up to the new VM process calls powerUp.
4663 The subsequent operations mirror the <link to="IConsole::powerUp"/>
4664 progress object. Because <link to="IConsole::powerUp"/> may require
4665 some extra sub-operations, the <link to="IProgress::operationCount"/>
4666 may change at the completion of operation.
4667
4668 For details on the teleportation progress operation, see
4669 <link to="IConsole::powerUp"/>.
4670
4671 The @a environment argument is a string containing definitions of
4672 environment variables in the following format:
4673 <pre>
4674 NAME[=VALUE]\n
4675 NAME[=VALUE]\n
4676 ...
4677 </pre>
4678 where <tt>\\n</tt> is the new line character. These environment
4679 variables will be appended to the environment of the VirtualBox server
4680 process. If an environment variable exists both in the server process
4681 and in this list, the value from this list takes precedence over the
4682 server's variable. If the value of the environment variable is
4683 omitted, this variable will be removed from the resulting environment.
4684 If the environment string is @c null or empty, the server environment
4685 is inherited by the started process as is.
4686
4687 <result name="E_UNEXPECTED">
4688 Virtual machine not registered.
4689 </result>
4690 <result name="E_INVALIDARG">
4691 Invalid session type @a type.
4692 </result>
4693 <result name="VBOX_E_OBJECT_NOT_FOUND">
4694 No machine matching @a machineId found.
4695 </result>
4696 <result name="VBOX_E_INVALID_OBJECT_STATE">
4697 Session already open or being opened.
4698 </result>
4699 <result name="VBOX_E_IPRT_ERROR">
4700 Launching process for machine failed.
4701 </result>
4702 <result name="VBOX_E_VM_ERROR">
4703 Failed to assign machine to session.
4704 </result>
4705 </desc>
4706 <param name="session" type="ISession" dir="in">
4707 <desc>
4708 Client session object to which the VM process will be connected (this
4709 must be in "Unlocked" state).
4710 </desc>
4711 </param>
4712 <param name="type" type="wstring" dir="in">
4713 <desc>
4714 Front-end to use for the new VM process. The following are currently supported:
4715 <ul>
4716 <li><tt>"gui"</tt>: VirtualBox Qt GUI front-end</li>
4717 <li><tt>"headless"</tt>: VBoxHeadless (VRDE Server) front-end</li>
4718 <li><tt>"sdl"</tt>: VirtualBox SDL front-end</li>
4719 <li><tt>"emergencystop"</tt>: reserved value, used for aborting
4720 the currently running VM or session owner. In this case the
4721 @a session parameter may be @c null (if it is non-null it isn't
4722 used in any way), and the @a progress return value will be always
4723 @c null. The operation completes immediately.</li>
4724 <li><tt>""</tt>: use the per-VM default frontend if set, otherwise
4725 the global default defined in the system properties. If neither
4726 are set, the API will launch a <tt>"gui"</tt> session, which may
4727 fail if there is no windowing environment available. See
4728 <link to="IMachine::defaultFrontend"/> and
4729 <link to="ISystemProperties::defaultFrontend"/>.</li>
4730 </ul>
4731 </desc>
4732 </param>
4733 <param name="environment" type="wstring" dir="in">
4734 <desc>
4735 Environment to pass to the VM process.
4736 </desc>
4737 </param>
4738 <param name="progress" type="IProgress" dir="return">
4739 <desc>Progress object to track the operation completion.</desc>
4740 </param>
4741 </method>
4742
4743 <method name="setBootOrder">
4744 <desc>
4745 Puts the given device to the specified position in
4746 the boot order.
4747
4748 To indicate that no device is associated with the given position,
4749 <link to="DeviceType_Null"/> should be used.
4750
4751 @todo setHardDiskBootOrder(), setNetworkBootOrder()
4752
4753 <result name="E_INVALIDARG">
4754 Boot @a position out of range.
4755 </result>
4756 <result name="E_NOTIMPL">
4757 Booting from USB @a device currently not supported.
4758 </result>
4759
4760 </desc>
4761 <param name="position" type="unsigned long" dir="in">
4762 <desc>
4763 Position in the boot order (@c 1 to the total number of
4764 devices the machine can boot from, as returned by
4765 <link to="ISystemProperties::maxBootPosition"/>).
4766 </desc>
4767 </param>
4768 <param name="device" type="DeviceType" dir="in">
4769 <desc>
4770 The type of the device used to boot at the given position.
4771 </desc>
4772 </param>
4773 </method>
4774
4775 <method name="getBootOrder" const="yes">
4776 <desc>
4777 Returns the device type that occupies the specified
4778 position in the boot order.
4779
4780 @todo [remove?]
4781 If the machine can have more than one device of the returned type
4782 (such as hard disks), then a separate method should be used to
4783 retrieve the individual device that occupies the given position.
4784
4785 If here are no devices at the given position, then
4786 <link to="DeviceType_Null"/> is returned.
4787
4788 @todo getHardDiskBootOrder(), getNetworkBootOrder()
4789
4790 <result name="E_INVALIDARG">
4791 Boot @a position out of range.
4792 </result>
4793
4794 </desc>
4795 <param name="position" type="unsigned long" dir="in">
4796 <desc>
4797 Position in the boot order (@c 1 to the total number of
4798 devices the machine can boot from, as returned by
4799 <link to="ISystemProperties::maxBootPosition"/>).
4800 </desc>
4801 </param>
4802 <param name="device" type="DeviceType" dir="return">
4803 <desc>
4804 Device at the given position.
4805 </desc>
4806 </param>
4807 </method>
4808
4809 <method name="attachDevice">
4810 <desc>
4811 Attaches a device and optionally mounts a medium to the given storage
4812 controller (<link to="IStorageController" />, identified by @a name),
4813 at the indicated port and device.
4814
4815 This method is intended for managing storage devices in general while a
4816 machine is powered off. It can be used to attach and detach fixed
4817 and removable media. The following kind of media can be attached
4818 to a machine:
4819
4820 <ul>
4821 <li>For fixed and removable media, you can pass in a medium that was
4822 previously opened using <link to="IVirtualBox::openMedium" />.
4823 </li>
4824
4825 <li>Only for storage devices supporting removable media (such as
4826 DVDs and floppies), you can also specify a null pointer to
4827 indicate an empty drive or one of the medium objects listed
4828 in the <link to="IHost::DVDDrives" /> and <link to="IHost::floppyDrives"/>
4829 arrays to indicate a host drive.
4830 For removable devices, you can also use <link to="IMachine::mountMedium"/>
4831 to change the media while the machine is running.
4832 </li>
4833 </ul>
4834
4835 In a VM's default configuration of virtual machines, the secondary
4836 master of the IDE controller is used for a CD/DVD drive.
4837
4838 After calling this returns successfully, a new instance of
4839 <link to="IMediumAttachment"/> will appear in the machine's list of medium
4840 attachments (see <link to="IMachine::mediumAttachments"/>).
4841
4842 See <link to="IMedium"/> and <link to="IMediumAttachment"/> for more
4843 information about attaching media.
4844
4845 The specified device slot must not have a device attached to it,
4846 or this method will fail.
4847
4848 <note>
4849 You cannot attach a device to a newly created machine until
4850 this machine's settings are saved to disk using
4851 <link to="#saveSettings"/>.
4852 </note>
4853 <note>
4854 If the medium is being attached indirectly, a new differencing medium
4855 will implicitly be created for it and attached instead. If the
4856 changes made to the machine settings (including this indirect
4857 attachment) are later cancelled using <link to="#discardSettings"/>,
4858 this implicitly created differencing medium will implicitly
4859 be deleted.
4860 </note>
4861
4862 <result name="E_INVALIDARG">
4863 SATA device, SATA port, IDE port or IDE slot out of range, or
4864 file or UUID not found.
4865 </result>
4866 <result name="VBOX_E_INVALID_OBJECT_STATE">
4867 Machine must be registered before media can be attached.
4868 </result>
4869 <result name="VBOX_E_INVALID_VM_STATE">
4870 Invalid machine state.
4871 </result>
4872 <result name="VBOX_E_OBJECT_IN_USE">
4873 A medium is already attached to this or another virtual machine.
4874 </result>
4875
4876 </desc>
4877 <param name="name" type="wstring" dir="in">
4878 <desc>Name of the storage controller to attach the device to.</desc>
4879 </param>
4880 <param name="controllerPort" type="long" dir="in">
4881 <desc>Port to attach the device to. For an IDE controller, 0 specifies
4882 the primary controller and 1 specifies the secondary controller.
4883 For a SCSI controller, this must range from 0 to 15; for a SATA controller,
4884 from 0 to 29; for an SAS controller, from 0 to 7.</desc>
4885 </param>
4886 <param name="device" type="long" dir="in">
4887 <desc>Device slot in the given port to attach the device to. This is only
4888 relevant for IDE controllers, for which 0 specifies the master device and
4889 1 specifies the slave device. For all other controller types, this must
4890 be 0.</desc>
4891 </param>
4892 <param name="type" type="DeviceType" dir="in">
4893 <desc>Device type of the attached device. For media opened by
4894 <link to="IVirtualBox::openMedium" />, this must match the device type
4895 specified there.</desc>
4896 </param>
4897 <param name="medium" type="IMedium" dir="in">
4898 <desc>Medium to mount or @c null for an empty drive.</desc>
4899 </param>
4900 </method>
4901
4902 <method name="attachDeviceWithoutMedium">
4903 <desc>
4904 Attaches a device and optionally mounts a medium to the given storage
4905 controller (<link to="IStorageController" />, identified by @a name),
4906 at the indicated port and device.
4907
4908 This method is intended for managing storage devices in general while a
4909 machine is powered off. It can be used to attach and detach fixed
4910 and removable media. The following kind of media can be attached
4911 to a machine:
4912 <ul>
4913 <li>
4914 For fixed and removable media, you can pass in a medium that was
4915 previously opened using <link to="IVirtualBox::openMedium" />.
4916 </li>
4917
4918 <li>Only for storage devices supporting removable media (such as
4919 DVDs and floppies) with an empty drive or one of the medium objects listed
4920 in the <link to="IHost::DVDDrives" /> and <link to="IHost::floppyDrives"/>
4921 arrays to indicate a host drive.
4922 For removable devices, you can also use <link to="IMachine::mountMedium"/>
4923 to change the media while the machine is running.
4924 </li>
4925 </ul>
4926
4927 In a VM's default configuration of virtual machines, the secondary
4928 master of the IDE controller is used for a CD/DVD drive.
4929 <link to="IMediumAttachment"/> will appear in the machine's list of medium
4930 attachments (see <link to="IMachine::mediumAttachments"/>).
4931
4932 See <link to="IMedium"/> and <link to="IMediumAttachment"/> for more
4933 information about attaching media.
4934
4935 The specified device slot must not have a device attached to it,
4936 or this method will fail.
4937 <note>
4938 You cannot attach a device to a newly created machine until
4939 this machine's settings are saved to disk using
4940 <link to="#saveSettings"/>.
4941 </note>
4942 <note>
4943 If the medium is being attached indirectly, a new differencing medium
4944 will implicitly be created for it and attached instead. If the
4945 changes made to the machine settings (including this indirect
4946 attachment) are later cancelled using <link to="#discardSettings"/>,
4947 this implicitly created differencing medium will implicitly
4948 be deleted.
4949 </note>
4950
4951 <result name="E_INVALIDARG">
4952 SATA device, SATA port, IDE port or IDE slot out of range, or
4953 file or UUID not found.
4954 </result>
4955 <result name="VBOX_E_INVALID_OBJECT_STATE">
4956 Machine must be registered before media can be attached.
4957 </result>
4958 <result name="VBOX_E_INVALID_VM_STATE">
4959 Invalid machine state.
4960 </result>
4961 <result name="VBOX_E_OBJECT_IN_USE">
4962 A medium is already attached to this or another virtual machine.
4963 </result>
4964 </desc>
4965 <param name="name" type="wstring" dir="in">
4966 <desc>Name of the storage controller to attach the device to.</desc>
4967 </param>
4968 <param name="controllerPort" type="long" dir="in">
4969 <desc>Port to attach the device to. For an IDE controller, 0 specifies
4970 the primary controller and 1 specifies the secondary controller.
4971 For a SCSI controller, this must range from 0 to 15; for a SATA controller,
4972 from 0 to 29; for an SAS controller, from 0 to 7.</desc>
4973 </param>
4974 <param name="device" type="long" dir="in">
4975 <desc>Device slot in the given port to attach the device to. This is only
4976 relevant for IDE controllers, for which 0 specifies the master device and
4977 1 specifies the slave device. For all other controller types, this must
4978 be 0.</desc>
4979 </param>
4980 <param name="type" type="DeviceType" dir="in">
4981 <desc>Device type of the attached device. For media opened by
4982 <link to="IVirtualBox::openMedium" />, this must match the device type
4983 specified there.</desc>
4984 </param>
4985 </method>
4986
4987 <method name="detachDevice">
4988 <desc>
4989 Detaches the device attached to a device slot of the specified bus.
4990
4991 Detaching the device from the virtual machine is deferred. This means
4992 that the medium remains associated with the machine when this method
4993 returns and gets actually de-associated only after a successful
4994 <link to="#saveSettings"/> call. See <link to="IMedium"/>
4995 for more detailed information about attaching media.
4996
4997 <note>
4998 You cannot detach a device from a running machine.
4999 </note>
5000 <note>
5001 Detaching differencing media implicitly created by <link
5002 to="#attachDevice"/> for the indirect attachment using this
5003 method will <b>not</b> implicitly delete them. The
5004 <link to="IMedium::deleteStorage"/> operation should be
5005 explicitly performed by the caller after the medium is successfully
5006 detached and the settings are saved with
5007 <link to="#saveSettings"/>, if it is the desired action.
5008 </note>
5009
5010 <result name="VBOX_E_INVALID_VM_STATE">
5011 Attempt to detach medium from a running virtual machine.
5012 </result>
5013 <result name="VBOX_E_OBJECT_NOT_FOUND">
5014 No medium attached to given slot/bus.
5015 </result>
5016 <result name="VBOX_E_NOT_SUPPORTED">
5017 Medium format does not support storage deletion (only for implicitly
5018 created differencing media, should not happen).
5019 </result>
5020
5021 </desc>
5022 <param name="name" type="wstring" dir="in">
5023 <desc>Name of the storage controller to detach the medium from.</desc>
5024 </param>
5025 <param name="controllerPort" type="long" dir="in">
5026 <desc>Port number to detach the medium from.</desc>
5027 </param>
5028 <param name="device" type="long" dir="in">
5029 <desc>Device slot number to detach the medium from.</desc>
5030 </param>
5031 </method>
5032
5033 <method name="passthroughDevice">
5034 <desc>
5035 Sets the passthrough mode of an existing DVD device. Changing the
5036 setting while the VM is running is forbidden. The setting is only used
5037 if at VM start the device is configured as a host DVD drive, in all
5038 other cases it is ignored. The device must already exist; see
5039 <link to="IMachine::attachDevice"/> for how to attach a new device.
5040
5041 The @a controllerPort and @a device parameters specify the device slot and
5042 have have the same meaning as with <link to="IMachine::attachDevice" />.
5043
5044 <result name="E_INVALIDARG">
5045 SATA device, SATA port, IDE port or IDE slot out of range.
5046 </result>
5047 <result name="VBOX_E_INVALID_OBJECT_STATE">
5048 Attempt to modify an unregistered virtual machine.
5049 </result>
5050 <result name="VBOX_E_INVALID_VM_STATE">
5051 Invalid machine state.
5052 </result>
5053
5054 </desc>
5055 <param name="name" type="wstring" dir="in">
5056 <desc>Name of the storage controller.</desc>
5057 </param>
5058 <param name="controllerPort" type="long" dir="in">
5059 <desc>Storage controller port.</desc>
5060 </param>
5061 <param name="device" type="long" dir="in">
5062 <desc>Device slot in the given port.</desc>
5063 </param>
5064 <param name="passthrough" type="boolean" dir="in">
5065 <desc>New value for the passthrough setting.</desc>
5066 </param>
5067 </method>
5068
5069 <method name="temporaryEjectDevice">
5070 <desc>
5071 Sets the behavior for guest-triggered medium eject. In some situations
5072 it is desirable that such ejects update the VM configuration, and in
5073 others the eject should keep the VM configuration. The device must
5074 already exist; see <link to="IMachine::attachDevice"/> for how to
5075 attach a new device.
5076
5077 The @a controllerPort and @a device parameters specify the device slot and
5078 have have the same meaning as with <link to="IMachine::attachDevice" />.
5079
5080 <result name="E_INVALIDARG">
5081 SATA device, SATA port, IDE port or IDE slot out of range.
5082 </result>
5083 <result name="VBOX_E_INVALID_OBJECT_STATE">
5084 Attempt to modify an unregistered virtual machine.
5085 </result>
5086 <result name="VBOX_E_INVALID_VM_STATE">
5087 Invalid machine state.
5088 </result>
5089
5090 </desc>
5091 <param name="name" type="wstring" dir="in">
5092 <desc>Name of the storage controller.</desc>
5093 </param>
5094 <param name="controllerPort" type="long" dir="in">
5095 <desc>Storage controller port.</desc>
5096 </param>
5097 <param name="device" type="long" dir="in">
5098 <desc>Device slot in the given port.</desc>
5099 </param>
5100 <param name="temporaryEject" type="boolean" dir="in">
5101 <desc>New value for the eject behavior.</desc>
5102 </param>
5103 </method>
5104
5105 <method name="nonRotationalDevice">
5106 <desc>
5107 Sets a flag in the device information which indicates that the medium
5108 is not based on rotational technology, i.e. that the access times are
5109 more or less independent of the position on the medium. This may or may
5110 not be supported by a particular drive, and is silently ignored in the
5111 latter case. At the moment only hard disks (which is a misnomer in this
5112 context) accept this setting. Changing the setting while the VM is
5113 running is forbidden. The device must already exist; see
5114 <link to="IMachine::attachDevice"/> for how to attach a new device.
5115
5116 The @a controllerPort and @a device parameters specify the device slot and
5117 have have the same meaning as with <link to="IMachine::attachDevice" />.
5118
5119 <result name="E_INVALIDARG">
5120 SATA device, SATA port, IDE port or IDE slot out of range.
5121 </result>
5122 <result name="VBOX_E_INVALID_OBJECT_STATE">
5123 Attempt to modify an unregistered virtual machine.
5124 </result>
5125 <result name="VBOX_E_INVALID_VM_STATE">
5126 Invalid machine state.
5127 </result>
5128
5129 </desc>
5130 <param name="name" type="wstring" dir="in">
5131 <desc>Name of the storage controller.</desc>
5132 </param>
5133 <param name="controllerPort" type="long" dir="in">
5134 <desc>Storage controller port.</desc>
5135 </param>
5136 <param name="device" type="long" dir="in">
5137 <desc>Device slot in the given port.</desc>
5138 </param>
5139 <param name="nonRotational" type="boolean" dir="in">
5140 <desc>New value for the non-rotational device flag.</desc>
5141 </param>
5142 </method>
5143
5144 <method name="setAutoDiscardForDevice">
5145 <desc>
5146 Sets a flag in the device information which indicates that the medium
5147 supports discarding unsused blocks (called trimming for SATA or unmap
5148 for SCSI devices) .This may or may not be supported by a particular drive,
5149 and is silently ignored in the latter case. At the moment only hard disks
5150 (which is a misnomer in this context) accept this setting. Changing the
5151 setting while the VM is running is forbidden. The device must already
5152 exist; see <link to="IMachine::attachDevice"/> for how to attach a new
5153 device.
5154
5155 The @a controllerPort and @a device parameters specify the device slot and
5156 have have the same meaning as with <link to="IMachine::attachDevice" />.
5157
5158 <result name="E_INVALIDARG">
5159 SATA device, SATA port, SCSI port out of range.
5160 </result>
5161 <result name="VBOX_E_INVALID_OBJECT_STATE">
5162 Attempt to modify an unregistered virtual machine.
5163 </result>
5164 <result name="VBOX_E_INVALID_VM_STATE">
5165 Invalid machine state.
5166 </result>
5167
5168 </desc>
5169 <param name="name" type="wstring" dir="in">
5170 <desc>Name of the storage controller.</desc>
5171 </param>
5172 <param name="controllerPort" type="long" dir="in">
5173 <desc>Storage controller port.</desc>
5174 </param>
5175 <param name="device" type="long" dir="in">
5176 <desc>Device slot in the given port.</desc>
5177 </param>
5178 <param name="discard" type="boolean" dir="in">
5179 <desc>New value for the discard device flag.</desc>
5180 </param>
5181 </method>
5182
5183 <method name="setBandwidthGroupForDevice">
5184 <desc>
5185 Sets the bandwidth group of an existing storage device.
5186 The device must already exist; see <link to="IMachine::attachDevice"/>
5187 for how to attach a new device.
5188
5189 The @a controllerPort and @a device parameters specify the device slot and
5190 have have the same meaning as with <link to="IMachine::attachDevice" />.
5191
5192 <result name="E_INVALIDARG">
5193 SATA device, SATA port, IDE port or IDE slot out of range.
5194 </result>
5195 <result name="VBOX_E_INVALID_OBJECT_STATE">
5196 Attempt to modify an unregistered virtual machine.
5197 </result>
5198 <result name="VBOX_E_INVALID_VM_STATE">
5199 Invalid machine state.
5200 </result>
5201
5202 </desc>
5203 <param name="name" type="wstring" dir="in">
5204 <desc>Name of the storage controller.</desc>
5205 </param>
5206 <param name="controllerPort" type="long" dir="in">
5207 <desc>Storage controller port.</desc>
5208 </param>
5209 <param name="device" type="long" dir="in">
5210 <desc>Device slot in the given port.</desc>
5211 </param>
5212 <param name="bandwidthGroup" type="IBandwidthGroup" dir="in">
5213 <desc>New value for the bandwidth group or @c null for no group.</desc>
5214 </param>
5215 </method>
5216
5217 <method name="setNoBandwidthGroupForDevice">
5218 <desc>
5219 Sets no bandwidth group for an existing storage device.
5220 The device must already exist; see <link to="IMachine::attachDevice"/>
5221 for how to attach a new device.
5222 The @a controllerPort and @a device parameters specify the device slot and
5223 have have the same meaning as with <link to="IMachine::attachDevice" />.
5224 <result name="E_INVALIDARG">
5225 SATA device, SATA port, IDE port or IDE slot out of range.
5226 </result>
5227 <result name="VBOX_E_INVALID_OBJECT_STATE">
5228 Attempt to modify an unregistered virtual machine.
5229 </result>
5230 <result name="VBOX_E_INVALID_VM_STATE">
5231 Invalid machine state.
5232 </result>
5233
5234 </desc>
5235 <param name="name" type="wstring" dir="in">
5236 <desc>Name of the storage controller.</desc>
5237 </param>
5238 <param name="controllerPort" type="long" dir="in">
5239 <desc>Storage controller port.</desc>
5240 </param>
5241 <param name="device" type="long" dir="in">
5242 <desc>Device slot in the given port.</desc>
5243 </param>
5244 </method>
5245
5246
5247 <method name="unmountMedium">
5248 <desc>
5249 Unmounts any currently mounted medium (<link to="IMedium" />,
5250 identified by the given UUID @a id) to the given storage controller
5251 (<link to="IStorageController" />, identified by @a name),
5252 at the indicated port and device. The device must already exist;
5253
5254 This method is intended only for managing removable media, where the
5255 device is fixed but media is changeable at runtime (such as DVDs
5256 and floppies). It cannot be used for fixed media such as hard disks.
5257
5258 The @a controllerPort and @a device parameters specify the device slot
5259 and have have the same meaning as with
5260 <link to="IMachine::attachDevice" />.
5261
5262 The specified device slot must have a medium mounted, which will be
5263 unmounted. If there is no mounted medium it will do nothing.
5264 See <link to="IMedium"/> for more detailed information about
5265 attaching/unmounting media.
5266
5267 <result name="E_INVALIDARG">
5268 SATA device, SATA port, IDE port or IDE slot out of range.
5269 </result>
5270 <result name="VBOX_E_INVALID_OBJECT_STATE">
5271 Attempt to unmount medium that is not removeable - not dvd or floppy.
5272 </result>
5273 <result name="VBOX_E_INVALID_VM_STATE">
5274 Invalid machine state.
5275 </result>
5276 <result name="VBOX_E_OBJECT_IN_USE">
5277 Medium already attached to this or another virtual machine.
5278 </result>
5279 <result name="VBOX_E_OBJECT_NOT_FOUND">
5280 Medium not attached to specified port, device, controller.
5281 </result>
5282
5283 </desc>
5284 <param name="name" type="wstring" dir="in">
5285 <desc>Name of the storage controller to unmount the medium from.</desc>
5286 </param>
5287 <param name="controllerPort" type="long" dir="in">
5288 <desc>Port to unmount the medium from.</desc>
5289 </param>
5290 <param name="device" type="long" dir="in">
5291 <desc>Device slot in the given port to unmount the medium from.</desc>
5292 </param>
5293 <param name="force" type="boolean" dir="in">
5294 <desc>Allows to force unmount of a medium which is locked by
5295 the device slot in the given port medium is attached to.</desc>
5296 </param>
5297 </method>
5298
5299 <method name="mountMedium">
5300 <desc>
5301 Mounts a medium (<link to="IMedium" />, identified
5302 by the given UUID @a id) to the given storage controller
5303 (<link to="IStorageController" />, identified by @a name),
5304 at the indicated port and device. The device must already exist;
5305 see <link to="IMachine::attachDevice"/> for how to attach a new device.
5306
5307 This method is intended only for managing removable media, where the
5308 device is fixed but media is changeable at runtime (such as DVDs
5309 and floppies). It cannot be used for fixed media such as hard disks.
5310
5311 The @a controllerPort and @a device parameters specify the device slot and
5312 have have the same meaning as with <link to="IMachine::attachDevice" />.
5313
5314 The specified device slot can have a medium mounted, which will be
5315 unmounted first. Specifying a zero UUID (or an empty string) for
5316 @a medium does just an unmount.
5317
5318 See <link to="IMedium"/> for more detailed information about
5319 attaching media.
5320
5321 <result name="E_INVALIDARG">
5322 SATA device, SATA port, IDE port or IDE slot out of range.
5323 </result>
5324 <result name="VBOX_E_INVALID_OBJECT_STATE">
5325 Attempt to attach medium to an unregistered virtual machine.
5326 </result>
5327 <result name="VBOX_E_INVALID_VM_STATE">
5328 Invalid machine state.
5329 </result>
5330 <result name="VBOX_E_OBJECT_IN_USE">
5331 Medium already attached to this or another virtual machine.
5332 </result>
5333
5334 </desc>
5335 <param name="name" type="wstring" dir="in">
5336 <desc>Name of the storage controller to attach the medium to.</desc>
5337 </param>
5338 <param name="controllerPort" type="long" dir="in">
5339 <desc>Port to attach the medium to.</desc>
5340 </param>
5341 <param name="device" type="long" dir="in">
5342 <desc>Device slot in the given port to attach the medium to.</desc>
5343 </param>
5344 <param name="medium" type="IMedium" dir="in">
5345 <desc>Medium to mount or @c null for an empty drive.</desc>
5346 </param>
5347 <param name="force" type="boolean" dir="in">
5348 <desc>Allows to force unmount/mount of a medium which is locked by
5349 the device slot in the given port to attach the medium to.</desc>
5350 </param>
5351 </method>
5352
5353 <method name="getMedium" const="yes">
5354 <desc>
5355 Returns the virtual medium attached to a device slot of the specified
5356 bus.
5357
5358 Note that if the medium was indirectly attached by
5359 <link to="#mountMedium"/> to the given device slot then this
5360 method will return not the same object as passed to the
5361 <link to="#mountMedium"/> call. See <link to="IMedium"/> for
5362 more detailed information about mounting a medium.
5363
5364 <result name="VBOX_E_OBJECT_NOT_FOUND">
5365 No medium attached to given slot/bus.
5366 </result>
5367
5368 </desc>
5369 <param name="name" type="wstring" dir="in">
5370 <desc>Name of the storage controller the medium is attached to.</desc>
5371 </param>
5372 <param name="controllerPort" type="long" dir="in">
5373 <desc>Port to query.</desc>
5374 </param>
5375 <param name="device" type="long" dir="in">
5376 <desc>Device slot in the given port to query.</desc>
5377 </param>
5378 <param name="medium" type="IMedium" dir="return">
5379 <desc>Attached medium object.</desc>
5380 </param>
5381 </method>
5382
5383 <method name="getMediumAttachmentsOfController" const="yes">
5384 <desc>
5385 Returns an array of medium attachments which are attached to the
5386 the controller with the given name.
5387
5388 <result name="VBOX_E_OBJECT_NOT_FOUND">
5389 A storage controller with given name doesn't exist.
5390 </result>
5391 </desc>
5392 <param name="name" type="wstring" dir="in"/>
5393 <param name="mediumAttachments" type="IMediumAttachment" safearray="yes" dir="return"/>
5394 </method>
5395
5396 <method name="getMediumAttachment" const="yes">
5397 <desc>
5398 Returns a medium attachment which corresponds to the controller with
5399 the given name, on the given port and device slot.
5400
5401 <result name="VBOX_E_OBJECT_NOT_FOUND">
5402 No attachment exists for the given controller/port/device combination.
5403 </result>
5404 </desc>
5405 <param name="name" type="wstring" dir="in"/>
5406 <param name="controllerPort" type="long" dir="in"/>
5407 <param name="device" type="long" dir="in"/>
5408 <param name="attachment" type="IMediumAttachment" dir="return"/>
5409 </method>
5410
5411 <method name="attachHostPCIDevice">
5412 <desc>
5413 Attaches host PCI device with the given (host) PCI address to the
5414 PCI bus of the virtual machine. Please note, that this operation
5415 is two phase, as real attachment will happen when VM will start,
5416 and most information will be delivered as IHostPCIDevicePlugEvent
5417 on IVirtualBox event source.
5418
5419 <see><link to="IHostPCIDevicePlugEvent"/></see>
5420
5421 <result name="VBOX_E_INVALID_VM_STATE">
5422 Virtual machine state is not stopped (PCI hotplug not yet implemented).
5423 </result>
5424 <result name="VBOX_E_PDM_ERROR">
5425 Virtual machine does not have a PCI controller allowing attachment of physical devices.
5426 </result>
5427 <result name="VBOX_E_NOT_SUPPORTED">
5428 Hardware or host OS doesn't allow PCI device passthrought.
5429 </result>
5430 </desc>
5431 <param name="hostAddress" type="long" dir="in">
5432 <desc>Address of the host PCI device.</desc>
5433 </param>
5434 <param name="desiredGuestAddress" type="long" dir="in">
5435 <desc>Desired position of this device on guest PCI bus.</desc>
5436 </param>
5437 <param name="tryToUnbind" type="boolean" dir="in">
5438 <desc>If VMM shall try to unbind existing drivers from the
5439 device before attaching it to the guest.</desc>
5440 </param>
5441 </method>
5442
5443 <method name="detachHostPCIDevice">
5444 <desc>
5445 Detach host PCI device from the virtual machine.
5446 Also HostPCIDevicePlugEvent on IVirtualBox event source
5447 will be delivered. As currently we don't support hot device
5448 unplug, IHostPCIDevicePlugEvent event is delivered immediately.
5449
5450 <see><link to="IHostPCIDevicePlugEvent"/></see>
5451
5452 <result name="VBOX_E_INVALID_VM_STATE">
5453 Virtual machine state is not stopped (PCI hotplug not yet implemented).
5454 </result>
5455 <result name="VBOX_E_OBJECT_NOT_FOUND">
5456 This host device is not attached to this machine.
5457 </result>
5458 <result name="VBOX_E_PDM_ERROR">
5459 Virtual machine does not have a PCI controller allowing attachment of physical devices.
5460 </result>
5461 <result name="VBOX_E_NOT_SUPPORTED">
5462 Hardware or host OS doesn't allow PCI device passthrought.
5463 </result>
5464 </desc>
5465 <param name="hostAddress" type="long" dir="in">
5466 <desc>Address of the host PCI device.</desc>
5467 </param>
5468 </method>
5469
5470 <method name="getNetworkAdapter" const="yes">
5471 <desc>
5472 Returns the network adapter associated with the given slot.
5473 Slots are numbered sequentially, starting with zero. The total
5474 number of adapters per machine is defined by the
5475 <link to="ISystemProperties::getMaxNetworkAdapters"/> property,
5476 so the maximum slot number is one less than that property's value.
5477
5478 <result name="E_INVALIDARG">
5479 Invalid @a slot number.
5480 </result>
5481
5482 </desc>
5483 <param name="slot" type="unsigned long" dir="in"/>
5484 <param name="adapter" type="INetworkAdapter" dir="return"/>
5485 </method>
5486
5487 <method name="addStorageController">
5488 <desc>
5489 Adds a new storage controller (SCSI, SAS or SATA controller) to the
5490 machine and returns it as an instance of
5491 <link to="IStorageController" />.
5492
5493 @a name identifies the controller for subsequent calls such as
5494 <link to="#getStorageControllerByName" />,
5495 <link to="#getStorageControllerByInstance" />,
5496 <link to="#removeStorageController" />,
5497 <link to="#attachDevice" /> or <link to="#mountMedium" />.
5498
5499 After the controller has been added, you can set its exact
5500 type by setting the <link to="IStorageController::controllerType" />.
5501
5502 <result name="VBOX_E_OBJECT_IN_USE">
5503 A storage controller with given name exists already.
5504 </result>
5505 <result name="E_INVALIDARG">
5506 Invalid @a controllerType.
5507 </result>
5508 </desc>
5509 <param name="name" type="wstring" dir="in"/>
5510 <param name="connectionType" type="StorageBus" dir="in"/>
5511 <param name="controller" type="IStorageController" dir="return"/>
5512 </method>
5513
5514 <method name="getStorageControllerByName" const="yes">
5515 <desc>
5516 Returns a storage controller with the given name.
5517
5518 <result name="VBOX_E_OBJECT_NOT_FOUND">
5519 A storage controller with given name doesn't exist.
5520 </result>
5521 </desc>
5522 <param name="name" type="wstring" dir="in"/>
5523 <param name="storageController" type="IStorageController" dir="return"/>
5524 </method>
5525
5526 <method name="getStorageControllerByInstance" const="yes">
5527 <desc>
5528 Returns a storage controller with the given instance number.
5529
5530 <result name="VBOX_E_OBJECT_NOT_FOUND">
5531 A storage controller with given instance number doesn't exist.
5532 </result>
5533 </desc>
5534 <param name="instance" type="unsigned long" dir="in"/>
5535 <param name="storageController" type="IStorageController" dir="return"/>
5536 </method>
5537
5538 <method name="removeStorageController">
5539 <desc>
5540 Removes a storage controller from the machine with all devices attached to it.
5541
5542 <result name="VBOX_E_OBJECT_NOT_FOUND">
5543 A storage controller with given name doesn't exist.
5544 </result>
5545 <result name="VBOX_E_NOT_SUPPORTED">
5546 Medium format does not support storage deletion (only for implicitly
5547 created differencing media, should not happen).
5548 </result>
5549 </desc>
5550 <param name="name" type="wstring" dir="in"/>
5551 </method>
5552
5553 <method name="setStorageControllerBootable">
5554 <desc>
5555 Sets the bootable flag of the storage controller with the given name.
5556
5557 <result name="VBOX_E_OBJECT_NOT_FOUND">
5558 A storage controller with given name doesn't exist.
5559 </result>
5560 <result name="VBOX_E_OBJECT_IN_USE">
5561 Another storage controller is marked as bootable already.
5562 </result>
5563 </desc>
5564 <param name="name" type="wstring" dir="in"/>
5565 <param name="bootable" type="boolean" dir="in"/>
5566 </method>
5567
5568 <method name="getSerialPort" const="yes">
5569 <desc>
5570 Returns the serial port associated with the given slot.
5571 Slots are numbered sequentially, starting with zero. The total
5572 number of serial ports per machine is defined by the
5573 <link to="ISystemProperties::serialPortCount"/> property,
5574 so the maximum slot number is one less than that property's value.
5575
5576 <result name="E_INVALIDARG">
5577 Invalid @a slot number.
5578 </result>
5579
5580 </desc>
5581 <param name="slot" type="unsigned long" dir="in"/>
5582 <param name="port" type="ISerialPort" dir="return"/>
5583 </method>
5584
5585 <method name="getParallelPort" const="yes">
5586 <desc>
5587 Returns the parallel port associated with the given slot.
5588 Slots are numbered sequentially, starting with zero. The total
5589 number of parallel ports per machine is defined by the
5590 <link to="ISystemProperties::parallelPortCount"/> property,
5591 so the maximum slot number is one less than that property's value.
5592
5593 <result name="E_INVALIDARG">
5594 Invalid @a slot number.
5595 </result>
5596
5597 </desc>
5598 <param name="slot" type="unsigned long" dir="in"/>
5599 <param name="port" type="IParallelPort" dir="return"/>
5600 </method>
5601
5602 <method name="getExtraDataKeys">
5603 <desc>
5604 Returns an array representing the machine-specific extra data keys
5605 which currently have values defined.
5606 </desc>
5607 <param name="value" type="wstring" dir="return" safearray="yes">
5608 <desc>Array of extra data keys.</desc>
5609 </param>
5610 </method>
5611
5612 <method name="getExtraData">
5613 <desc>
5614 Returns associated machine-specific extra data.
5615
5616 If the requested data @a key does not exist, this function will
5617 succeed and return an empty string in the @a value argument.
5618
5619 <result name="VBOX_E_FILE_ERROR">
5620 Settings file not accessible.
5621 </result>
5622 <result name="VBOX_E_XML_ERROR">
5623 Could not parse the settings file.
5624 </result>
5625
5626 </desc>
5627 <param name="key" type="wstring" dir="in">
5628 <desc>Name of the data key to get.</desc>
5629 </param>
5630 <param name="value" type="wstring" dir="return">
5631 <desc>Value of the requested data key.</desc>
5632 </param>
5633 </method>
5634
5635 <method name="setExtraData">
5636 <desc>
5637 Sets associated machine-specific extra data.
5638
5639 If you pass @c null or an empty string as a key @a value, the given
5640 @a key will be deleted.
5641
5642 <note>
5643 Before performing the actual data change, this method will ask all
5644 registered listeners using the
5645 <link to="IExtraDataCanChangeEvent"/>
5646 notification for a permission. If one of the listeners refuses the
5647 new value, the change will not be performed.
5648 </note>
5649 <note>
5650 On success, the
5651 <link to="IExtraDataChangedEvent"/> notification
5652 is called to inform all registered listeners about a successful data
5653 change.
5654 </note>
5655 <note>
5656 This method can be called outside the machine session and therefore
5657 it's a caller's responsibility to handle possible race conditions
5658 when several clients change the same key at the same time.
5659 </note>
5660
5661 <result name="VBOX_E_FILE_ERROR">
5662 Settings file not accessible.
5663 </result>
5664 <result name="VBOX_E_XML_ERROR">
5665 Could not parse the settings file.
5666 </result>
5667
5668 </desc>
5669 <param name="key" type="wstring" dir="in">
5670 <desc>Name of the data key to set.</desc>
5671 </param>
5672 <param name="value" type="wstring" dir="in">
5673 <desc>Value to assign to the key.</desc>
5674 </param>
5675 </method>
5676
5677 <method name="getCPUProperty" const="yes">
5678 <desc>
5679 Returns the virtual CPU boolean value of the specified property.
5680
5681 <result name="E_INVALIDARG">
5682 Invalid property.
5683 </result>
5684
5685 </desc>
5686 <param name="property" type="CPUPropertyType" dir="in">
5687 <desc>
5688 Property type to query.
5689 </desc>
5690 </param>
5691 <param name="value" type="boolean" dir="return">
5692 <desc>
5693 Property value.
5694 </desc>
5695 </param>
5696 </method>
5697
5698 <method name="setCPUProperty">
5699 <desc>
5700 Sets the virtual CPU boolean value of the specified property.
5701
5702 <result name="E_INVALIDARG">
5703 Invalid property.
5704 </result>
5705
5706 </desc>
5707 <param name="property" type="CPUPropertyType" dir="in">
5708 <desc>
5709 Property type to query.
5710 </desc>
5711 </param>
5712 <param name="value" type="boolean" dir="in">
5713 <desc>
5714 Property value.
5715 </desc>
5716 </param>
5717 </method>
5718
5719 <method name="getCPUIDLeaf" const="yes">
5720 <desc>
5721 Returns the virtual CPU cpuid information for the specified leaf.
5722
5723 Currently supported index values for cpuid:
5724 Standard CPUID leafs: 0 - 0xA
5725 Extended CPUID leafs: 0x80000000 - 0x8000000A
5726
5727 See the Intel and AMD programmer's manuals for detailed information
5728 about the cpuid instruction and its leafs.
5729 <result name="E_INVALIDARG">
5730 Invalid id.
5731 </result>
5732
5733 </desc>
5734 <param name="id" type="unsigned long" dir="in">
5735 <desc>
5736 CPUID leaf index.
5737 </desc>
5738 </param>
5739 <param name="valEax" type="unsigned long" dir="out">
5740 <desc>
5741 CPUID leaf value for register eax.
5742 </desc>
5743 </param>
5744 <param name="valEbx" type="unsigned long" dir="out">
5745 <desc>
5746 CPUID leaf value for register ebx.
5747 </desc>
5748 </param>
5749 <param name="valEcx" type="unsigned long" dir="out">
5750 <desc>
5751 CPUID leaf value for register ecx.
5752 </desc>
5753 </param>
5754 <param name="valEdx" type="unsigned long" dir="out">
5755 <desc>
5756 CPUID leaf value for register edx.
5757 </desc>
5758 </param>
5759 </method>
5760
5761 <method name="setCPUIDLeaf">
5762 <desc>
5763 Sets the virtual CPU cpuid information for the specified leaf. Note that these values
5764 are not passed unmodified. VirtualBox clears features that it doesn't support.
5765
5766 Currently supported index values for cpuid:
5767 Standard CPUID leafs: 0 - 0xA
5768 Extended CPUID leafs: 0x80000000 - 0x8000000A
5769
5770 See the Intel and AMD programmer's manuals for detailed information
5771 about the cpuid instruction and its leafs.
5772
5773 Do not use this method unless you know exactly what you're doing. Misuse can lead to
5774 random crashes inside VMs.
5775 <result name="E_INVALIDARG">
5776 Invalid id.
5777 </result>
5778
5779 </desc>
5780 <param name="id" type="unsigned long" dir="in">
5781 <desc>
5782 CPUID leaf index.
5783 </desc>
5784 </param>
5785 <param name="valEax" type="unsigned long" dir="in">
5786 <desc>
5787 CPUID leaf value for register eax.
5788 </desc>
5789 </param>
5790 <param name="valEbx" type="unsigned long" dir="in">
5791 <desc>
5792 CPUID leaf value for register ebx.
5793 </desc>
5794 </param>
5795 <param name="valEcx" type="unsigned long" dir="in">
5796 <desc>
5797 CPUID leaf value for register ecx.
5798 </desc>
5799 </param>
5800 <param name="valEdx" type="unsigned long" dir="in">
5801 <desc>
5802 CPUID leaf value for register edx.
5803 </desc>
5804 </param>
5805 </method>
5806
5807 <method name="removeCPUIDLeaf">
5808 <desc>
5809 Removes the virtual CPU cpuid leaf for the specified index
5810
5811 <result name="E_INVALIDARG">
5812 Invalid id.
5813 </result>
5814
5815 </desc>
5816 <param name="id" type="unsigned long" dir="in">
5817 <desc>
5818 CPUID leaf index.
5819 </desc>
5820 </param>
5821 </method>
5822
5823 <method name="removeAllCPUIDLeaves">
5824 <desc>
5825 Removes all the virtual CPU cpuid leaves
5826 </desc>
5827 </method>
5828
5829 <method name="getHWVirtExProperty" const="yes">
5830 <desc>
5831 Returns the value of the specified hardware virtualization boolean property.
5832
5833 <result name="E_INVALIDARG">
5834 Invalid property.
5835 </result>
5836
5837 </desc>
5838 <param name="property" type="HWVirtExPropertyType" dir="in">
5839 <desc>
5840 Property type to query.
5841 </desc>
5842 </param>
5843 <param name="value" type="boolean" dir="return">
5844 <desc>
5845 Property value.
5846 </desc>
5847 </param>
5848 </method>
5849
5850 <method name="setHWVirtExProperty">
5851 <desc>
5852 Sets a new value for the specified hardware virtualization boolean property.
5853
5854 <result name="E_INVALIDARG">
5855 Invalid property.
5856 </result>
5857
5858 </desc>
5859 <param name="property" type="HWVirtExPropertyType" dir="in">
5860 <desc>
5861 Property type to set.
5862 </desc>
5863 </param>
5864 <param name="value" type="boolean" dir="in">
5865 <desc>
5866 New property value.
5867 </desc>
5868 </param>
5869 </method>
5870
5871 <method name="saveSettings">
5872 <desc>
5873 Saves any changes to machine settings made since the session
5874 has been opened or a new machine has been created, or since the
5875 last call to <link to="#saveSettings"/> or <link to="#discardSettings"/>.
5876 For registered machines, new settings become visible to all
5877 other VirtualBox clients after successful invocation of this
5878 method.
5879 <note>
5880 The method sends <link to="IMachineDataChangedEvent"/>
5881 notification event after the configuration has been successfully
5882 saved (only for registered machines).
5883 </note>
5884 <note>
5885 Calling this method is only valid on instances returned
5886 by <link to="ISession::machine"/> and on new machines
5887 created by <link to="IVirtualBox::createMachine"/> but not
5888 yet registered, or on unregistered machines after calling
5889 <link to="IMachine::unregister"/>.
5890 </note>
5891
5892 <result name="VBOX_E_FILE_ERROR">
5893 Settings file not accessible.
5894 </result>
5895 <result name="VBOX_E_XML_ERROR">
5896 Could not parse the settings file.
5897 </result>
5898 <result name="E_ACCESSDENIED">
5899 Modification request refused.
5900 </result>
5901
5902 </desc>
5903 </method>
5904
5905 <method name="discardSettings">
5906 <desc>
5907 Discards any changes to the machine settings made since the session
5908 has been opened or since the last call to <link to="#saveSettings"/>
5909 or <link to="#discardSettings"/>.
5910 <note>
5911 Calling this method is only valid on instances returned
5912 by <link to="ISession::machine"/> and on new machines
5913 created by <link to="IVirtualBox::createMachine"/> or
5914 opened by <link to="IVirtualBox::openMachine"/> but not
5915 yet registered, or on unregistered machines after calling
5916 <link to="IMachine::unregister"/>.
5917 </note>
5918
5919 <result name="VBOX_E_INVALID_VM_STATE">
5920 Virtual machine is not mutable.
5921 </result>
5922
5923 </desc>
5924 </method>
5925
5926 <method name="unregister">
5927 <desc>
5928 Unregisters a machine previously registered with
5929 <link to="IVirtualBox::registerMachine"/> and optionally do additional
5930 cleanup before the machine is unregistered.
5931
5932 This method does not delete any files. It only changes the machine configuration and
5933 the list of registered machines in the VirtualBox object. To delete the files which
5934 belonged to the machine, including the XML file of the machine itself, call
5935 <link to="#delete"/>, optionally with the array of IMedium objects which was returned
5936 from this method.
5937
5938 How thoroughly this method cleans up the machine configuration before unregistering
5939 the machine depends on the @a cleanupMode argument.
5940
5941 <ul>
5942 <li>With "UnregisterOnly", the machine will only be unregistered, but no additional
5943 cleanup will be performed. The call will fail if the machine is in "Saved" state
5944 or has any snapshots or any media attached (see <link to="IMediumAttachment" />).
5945 It is the responsibility of the caller to delete all such configuration in this mode.
5946 In this mode, the API behaves like the former @c IVirtualBox::unregisterMachine() API
5947 which it replaces.</li>
5948 <li>With "DetachAllReturnNone", the call will succeed even if the machine is in "Saved"
5949 state or if it has snapshots or media attached. All media attached to the current machine
5950 state or in snapshots will be detached. No medium objects will be returned;
5951 all of the machine's media will remain open.</li>
5952 <li>With "DetachAllReturnHardDisksOnly", the call will behave like with "DetachAllReturnNone",
5953 except that all the hard disk medium objects which were detached from the machine will
5954 be returned as an array. This allows for quickly passing them to the <link to="#delete" />
5955 API for closing and deletion.</li>
5956 <li>With "Full", the call will behave like with "DetachAllReturnHardDisksOnly", except
5957 that all media will be returned in the array, including removable media like DVDs and
5958 floppies. This might be useful if the user wants to inspect in detail which media were
5959 attached to the machine. Be careful when passing the media array to <link to="#delete" />
5960 in that case because users will typically want to preserve ISO and RAW image files.</li>
5961 </ul>
5962
5963 A typical implementation will use "DetachAllReturnHardDisksOnly" and then pass the
5964 resulting IMedium array to <link to="#delete"/>. This way, the machine is completely
5965 deleted with all its saved states and hard disk images, but images for removable
5966 drives (such as ISO and RAW files) will remain on disk.
5967
5968 This API does not verify whether the media files returned in the array are still
5969 attached to other machines (i.e. shared between several machines). If such a shared
5970 image is passed to <link to="#delete" /> however, closing the image will fail there
5971 and the image will be silently skipped.
5972
5973 This API may, however, move media from this machine's media registry to other media
5974 registries (see <link to="IMedium" /> for details on media registries). For machines
5975 created with VirtualBox 4.0 or later, if media from this machine's media registry
5976 are also attached to another machine (shared attachments), each such medium will be
5977 moved to another machine's registry. This is because without this machine's media
5978 registry, the other machine cannot find its media any more and would become inaccessible.
5979
5980 This API implicitly calls <link to="#saveSettings"/> to save all current machine settings
5981 before unregistering it. It may also silently call <link to="#saveSettings"/> on other machines
5982 if media are moved to other machines' media registries.
5983
5984 After successful method invocation, the <link to="IMachineRegisteredEvent"/> event
5985 is fired.
5986
5987 The call will fail if the machine is currently locked (see <link to="ISession" />).
5988
5989 <note>
5990 If the given machine is inaccessible (see <link to="#accessible"/>), it
5991 will be unregistered and fully uninitialized right afterwards. As a result,
5992 the returned machine object will be unusable and an attempt to call
5993 <b>any</b> method will return the "Object not ready" error.
5994 </note>
5995
5996 <result name="VBOX_E_INVALID_OBJECT_STATE">
5997 Machine is currently locked for a session.
5998 </result>
5999 </desc>
6000
6001 <param name="cleanupMode" type="CleanupMode" dir="in">
6002 <desc>How to clean up after the machine has been unregistered.</desc>
6003 </param>
6004 <param name="aMedia" type="IMedium" safearray="yes" dir="return">
6005 <desc>List of media detached from the machine, depending on the @a cleanupMode parameter.</desc>
6006 </param>
6007 </method>
6008
6009 <method name="delete">
6010 <desc>
6011 Deletes the files associated with this machine from disk. If medium objects are passed
6012 in with the @a aMedia argument, they are closed and, if closing was successful, their
6013 storage files are deleted as well. For convenience, this array of media files can be
6014 the same as the one returned from a previous <link to="#unregister" /> call.
6015
6016 This method must only be called on machines which are either write-locked (i.e. on instances
6017 returned by <link to="ISession::machine"/>) or on unregistered machines (i.e. not yet
6018 registered machines created by <link to="IVirtualBox::createMachine"/> or opened by
6019 <link to="IVirtualBox::openMachine"/>, or after having called <link to="#unregister"/>).
6020
6021 The following files will be deleted by this method:
6022 <ul>
6023 <li>If <link to="#unregister" /> had been previously called with a @a cleanupMode
6024 argument other than "UnregisterOnly", this will delete all saved state files that
6025 the machine had in use; possibly one if the machine was in "Saved" state and one
6026 for each online snapshot that the machine had.</li>
6027 <li>On each medium object passed in the @a aMedia array, this will call
6028 <link to="IMedium::close" />. If that succeeds, this will attempt to delete the
6029 medium's storage on disk. Since the <link to="IMedium::close"/> call will fail if the medium is still
6030 in use, e.g. because it is still attached to a second machine; in that case the
6031 storage will not be deleted.</li>
6032 <li>Finally, the machine's own XML file will be deleted.</li>
6033 </ul>
6034
6035 Since deleting large disk image files can be a time-consuming I/O operation, this
6036 method operates asynchronously and returns an IProgress object to allow the caller
6037 to monitor the progress. There will be one sub-operation for each file that is
6038 being deleted (saved state or medium storage file).
6039
6040 <note>
6041 <link to="#settingsModified"/> will return @c true after this
6042 method successfully returns.
6043 </note>
6044
6045 <result name="VBOX_E_INVALID_VM_STATE">
6046 Machine is registered but not write-locked.
6047 </result>
6048 <result name="VBOX_E_IPRT_ERROR">
6049 Could not delete the settings file.
6050 </result>
6051 </desc>
6052 <param name="aMedia" type="IMedium" safearray="yes" dir="in">
6053 <desc>List of media to be closed and whose storage files will be deleted.</desc>
6054 </param>
6055 <param name="aProgress" type="IProgress" dir="return">
6056 <desc>Progress object to track the operation completion.</desc>
6057 </param>
6058 </method>
6059
6060 <method name="export">
6061 <desc>Exports the machine to an OVF appliance. See <link to="IAppliance" /> for the
6062 steps required to export VirtualBox machines to OVF.
6063 </desc>
6064
6065 <param name="aAppliance" type="IAppliance" dir="in">
6066 <desc>Appliance to export this machine to.</desc>
6067 </param>
6068 <param name="location" type="wstring" dir="in">
6069 <desc>The target location.</desc>
6070 </param>
6071 <param name="aDescription" type="IVirtualSystemDescription" dir="return">
6072 <desc>VirtualSystemDescription object which is created for this machine.</desc>
6073 </param>
6074 </method >
6075
6076 <method name="findSnapshot">
6077 <desc>
6078 Returns a snapshot of this machine with the given name or UUID.
6079
6080 Returns a snapshot of this machine with the given UUID.
6081 A @c null argument can be used to obtain the first snapshot
6082 taken on this machine. To traverse the whole tree of snapshots
6083 starting from the root, inspect the root snapshot's
6084 <link to="ISnapshot::children" /> attribute and recurse over those children.
6085
6086 <result name="VBOX_E_OBJECT_NOT_FOUND">
6087 Virtual machine has no snapshots or snapshot not found.
6088 </result>
6089
6090 </desc>
6091 <param name="nameOrId" type="wstring" dir="in">
6092 <desc>What to search for. Name or UUID of the snapshot to find</desc>
6093 </param>
6094 <param name="snapshot" type="ISnapshot" dir="return">
6095 <desc>Snapshot object with the given name.</desc>
6096 </param>
6097 </method>
6098
6099 <method name="createSharedFolder">
6100 <desc>
6101 Creates a new permanent shared folder by associating the given logical
6102 name with the given host path, adds it to the collection of shared
6103 folders and starts sharing it. Refer to the description of
6104 <link to="ISharedFolder"/> to read more about logical names.
6105
6106 <result name="VBOX_E_OBJECT_IN_USE">
6107 Shared folder already exists.
6108 </result>
6109 <result name="VBOX_E_FILE_ERROR">
6110 Shared folder @a hostPath not accessible.
6111 </result>
6112
6113 </desc>
6114 <param name="name" type="wstring" dir="in">
6115 <desc>Unique logical name of the shared folder.</desc>
6116 </param>
6117 <param name="hostPath" type="wstring" dir="in">
6118 <desc>Full path to the shared folder in the host file system.</desc>
6119 </param>
6120 <param name="writable" type="boolean" dir="in">
6121 <desc>Whether the share is writable or readonly.</desc>
6122 </param>
6123 <param name="automount" type="boolean" dir="in">
6124 <desc>Whether the share gets automatically mounted by the guest
6125 or not.</desc>
6126 </param>
6127 </method>
6128
6129 <method name="removeSharedFolder">
6130 <desc>
6131 Removes the permanent shared folder with the given name previously
6132 created by <link to="#createSharedFolder"/> from the collection of
6133 shared folders and stops sharing it.
6134
6135 <result name="VBOX_E_INVALID_VM_STATE">
6136 Virtual machine is not mutable.
6137 </result>
6138 <result name="VBOX_E_OBJECT_NOT_FOUND">
6139 Shared folder @a name does not exist.
6140 </result>
6141
6142 </desc>
6143 <param name="name" type="wstring" dir="in">
6144 <desc>Logical name of the shared folder to remove.</desc>
6145 </param>
6146 </method>
6147
6148 <method name="canShowConsoleWindow">
6149 <desc>
6150 Returns @c true if the VM console process can activate the
6151 console window and bring it to foreground on the desktop of
6152 the host PC.
6153 <note>
6154 This method will fail if a session for this machine is not
6155 currently open.
6156 </note>
6157
6158 <result name="VBOX_E_INVALID_VM_STATE">
6159 Machine session is not open.
6160 </result>
6161
6162 </desc>
6163 <param name="canShow" type="boolean" dir="return">
6164 <desc>
6165 @c true if the console window can be shown and @c false otherwise.
6166 </desc>
6167 </param>
6168 </method>
6169
6170 <method name="showConsoleWindow">
6171 <desc>
6172 Activates the console window and brings it to foreground on
6173 the desktop of the host PC. Many modern window managers on
6174 many platforms implement some sort of focus stealing
6175 prevention logic, so that it may be impossible to activate
6176 a window without the help of the currently active
6177 application. In this case, this method will return a non-zero
6178 identifier that represents the top-level window of the VM
6179 console process. The caller, if it represents a currently
6180 active process, is responsible to use this identifier (in a
6181 platform-dependent manner) to perform actual window
6182 activation.
6183 <note>
6184 This method will fail if a session for this machine is not
6185 currently open.
6186 </note>
6187
6188 <result name="VBOX_E_INVALID_VM_STATE">
6189 Machine session is not open.
6190 </result>
6191
6192 </desc>
6193 <param name="winId" type="long long" dir="return">
6194 <desc>
6195 Platform-dependent identifier of the top-level VM console
6196 window, or zero if this method has performed all actions
6197 necessary to implement the <i>show window</i> semantics for
6198 the given platform and/or VirtualBox front-end.
6199 </desc>
6200 </param>
6201 </method>
6202
6203 <method name="getGuestProperty" const="yes">
6204 <desc>
6205 Reads an entry from the machine's guest property store.
6206
6207 <result name="VBOX_E_INVALID_VM_STATE">
6208 Machine session is not open.
6209 </result>
6210
6211 </desc>
6212 <param name="name" type="wstring" dir="in">
6213 <desc>
6214 The name of the property to read.
6215 </desc>
6216 </param>
6217 <param name="value" type="wstring" dir="out">
6218 <desc>
6219 The value of the property. If the property does not exist then this
6220 will be empty.
6221 </desc>
6222 </param>
6223 <param name="timestamp" type="long long" dir="out">
6224 <desc>
6225 The time at which the property was last modified, as seen by the
6226 server process.
6227 </desc>
6228 </param>
6229 <param name="flags" type="wstring" dir="out">
6230 <desc>
6231 Additional property parameters, passed as a comma-separated list of
6232 "name=value" type entries.
6233 </desc>
6234 </param>
6235 </method>
6236
6237 <method name="getGuestPropertyValue" const="yes">
6238 <desc>
6239 Reads a value from the machine's guest property store.
6240
6241 <result name="VBOX_E_INVALID_VM_STATE">
6242 Machine session is not open.
6243 </result>
6244
6245 </desc>
6246 <param name="property" type="wstring" dir="in">
6247 <desc>
6248 The name of the property to read.
6249 </desc>
6250 </param>
6251 <param name="value" type="wstring" dir="return">
6252 <desc>
6253 The value of the property. If the property does not exist then this
6254 will be empty.
6255 </desc>
6256 </param>
6257 </method>
6258
6259 <method name="getGuestPropertyTimestamp" const="yes">
6260 <desc>
6261 Reads a property timestamp from the machine's guest property store.
6262
6263 <result name="VBOX_E_INVALID_VM_STATE">
6264 Machine session is not open.
6265 </result>
6266
6267 </desc>
6268 <param name="property" type="wstring" dir="in">
6269 <desc>
6270 The name of the property to read.
6271 </desc>
6272 </param>
6273 <param name="value" type="long long" dir="return">
6274 <desc>
6275 The timestamp. If the property does not exist then this will be
6276 empty.
6277 </desc>
6278 </param>
6279 </method>
6280
6281 <method name="setGuestProperty">
6282 <desc>
6283 Sets, changes or deletes an entry in the machine's guest property
6284 store.
6285
6286 <result name="E_ACCESSDENIED">
6287 Property cannot be changed.
6288 </result>
6289 <result name="E_INVALIDARG">
6290 Invalid @a flags.
6291 </result>
6292 <result name="VBOX_E_INVALID_VM_STATE">
6293 Virtual machine is not mutable or session not open.
6294 </result>
6295 <result name="VBOX_E_INVALID_OBJECT_STATE">
6296 Cannot set transient property when machine not running.
6297 </result>
6298
6299 </desc>
6300 <param name="property" type="wstring" dir="in">
6301 <desc>
6302 The name of the property to set, change or delete.
6303 </desc>
6304 </param>
6305 <param name="value" type="wstring" dir="in">
6306 <desc>
6307 The new value of the property to set, change or delete. If the
6308 property does not yet exist and value is non-empty, it will be
6309 created. If the value is @c null or empty, the property will be
6310 deleted if it exists.
6311 </desc>
6312 </param>
6313 <param name="flags" type="wstring" dir="in">
6314 <desc>
6315 Additional property parameters, passed as a comma-separated list of
6316 "name=value" type entries.
6317 </desc>
6318 </param>
6319 </method>
6320
6321 <method name="setGuestPropertyValue">
6322 <desc>
6323 Sets or changes a value in the machine's guest property
6324 store. The flags field will be left unchanged or created empty for a
6325 new property.
6326
6327 <result name="E_ACCESSDENIED">
6328 Property cannot be changed.
6329 </result>
6330 <result name="VBOX_E_INVALID_VM_STATE">
6331 Virtual machine is not mutable or session not open.
6332 </result>
6333 <result name="VBOX_E_INVALID_OBJECT_STATE">
6334 Cannot set transient property when machine not running.
6335 </result>
6336 </desc>
6337
6338 <param name="property" type="wstring" dir="in">
6339 <desc>
6340 The name of the property to set or change.
6341 </desc>
6342 </param>
6343 <param name="value" type="wstring" dir="in">
6344 <desc>
6345 The new value of the property to set or change. If the
6346 property does not yet exist and value is non-empty, it will be
6347 created.
6348 </desc>
6349 </param>
6350 </method>
6351
6352 <method name="deleteGuestProperty" const="yes">
6353 <desc>
6354 Deletes an entry from the machine's guest property store.
6355
6356 <result name="VBOX_E_INVALID_VM_STATE">
6357 Machine session is not open.
6358 </result>
6359
6360 </desc>
6361 <param name="name" type="wstring" dir="in">
6362 <desc>
6363 The name of the property to delete.
6364 </desc>
6365 </param>
6366 </method>
6367
6368 <method name="enumerateGuestProperties" const="yes">
6369 <desc>
6370 Return a list of the guest properties matching a set of patterns along
6371 with their values, time stamps and flags.
6372 </desc>
6373 <param name="patterns" type="wstring" dir="in">
6374 <desc>
6375 The patterns to match the properties against, separated by '|'
6376 characters. If this is empty or @c null, all properties will match.
6377 </desc>
6378 </param>
6379 <param name="name" type="wstring" dir="out" safearray="yes">
6380 <desc>
6381 The names of the properties returned.
6382 </desc>
6383 </param>
6384 <param name="value" type="wstring" dir="out" safearray="yes">
6385 <desc>
6386 The values of the properties returned. The array entries match the
6387 corresponding entries in the @a name array.
6388 </desc>
6389 </param>
6390 <param name="timestamp" type="long long" dir="out" safearray="yes">
6391 <desc>
6392 The time stamps of the properties returned. The array entries match
6393 the corresponding entries in the @a name array.
6394 </desc>
6395 </param>
6396 <param name="flags" type="wstring" dir="out" safearray="yes">
6397 <desc>
6398 The flags of the properties returned. The array entries match the
6399 corresponding entries in the @a name array.
6400 </desc>
6401 </param>
6402 </method>
6403
6404 <method name="querySavedGuestScreenInfo" const="yes">
6405 <desc>
6406 Returns the guest dimensions from the saved state.
6407 </desc>
6408 <param name="screenId" type="unsigned long" dir="in">
6409 <desc>
6410 Saved guest screen to query info from.
6411 </desc>
6412 </param>
6413 <param name="originX" type="unsigned long" dir="out">
6414 <desc>
6415 The X position of the guest monitor top left corner.
6416 </desc>
6417 </param>
6418 <param name="originY" type="unsigned long" dir="out">
6419 <desc>
6420 The Y position of the guest monitor top left corner.
6421 </desc>
6422 </param>
6423 <param name="width" type="unsigned long" dir="out">
6424 <desc>
6425 Guest width at the time of the saved state was taken.
6426 </desc>
6427 </param>
6428 <param name="height" type="unsigned long" dir="out">
6429 <desc>
6430 Guest height at the time of the saved state was taken.
6431 </desc>
6432 </param>
6433 <param name="enabled" type="boolean" dir="out">
6434 <desc>
6435 Whether the monitor is enabled in the guest.
6436 </desc>
6437 </param>
6438 </method>
6439
6440 <method name="querySavedThumbnailSize">
6441 <desc>
6442 Returns size in bytes and dimensions in pixels of a saved thumbnail bitmap from saved state.
6443 </desc>
6444 <param name="screenId" type="unsigned long" dir="in">
6445 <desc>
6446 Saved guest screen to query info from.
6447 </desc>
6448 </param>
6449 <param name="size" type="unsigned long" dir="out">
6450 <desc>
6451 Size of buffer required to store the bitmap.
6452 </desc>
6453 </param>
6454 <param name="width" type="unsigned long" dir="out">
6455 <desc>
6456 Bitmap width.
6457 </desc>
6458 </param>
6459 <param name="height" type="unsigned long" dir="out">
6460 <desc>
6461 Bitmap height.
6462 </desc>
6463 </param>
6464 </method>
6465
6466 <method name="readSavedThumbnailToArray">
6467 <desc>
6468 Thumbnail is retrieved to an array of bytes in uncompressed 32-bit BGRA or RGBA format.
6469 </desc>
6470 <param name="screenId" type="unsigned long" dir="in">
6471 <desc>
6472 Saved guest screen to read from.
6473 </desc>
6474 </param>
6475 <param name="BGR" type="boolean" dir="in">
6476 <desc>
6477 How to order bytes in the pixel. A pixel consists of 4 bytes. If this parameter is true, then
6478 bytes order is: B, G, R, 0xFF. If this parameter is false, then bytes order is: R, G, B, 0xFF.
6479 </desc>
6480 </param>
6481 <param name="width" type="unsigned long" dir="out">
6482 <desc>
6483 Bitmap width.
6484 </desc>
6485 </param>
6486 <param name="height" type="unsigned long" dir="out">
6487 <desc>
6488 Bitmap height.
6489 </desc>
6490 </param>
6491 <param name="data" type="octet" safearray="yes" dir="return">
6492 <desc>
6493 Array with resulting bitmap data.
6494 </desc>
6495 </param>
6496 </method>
6497
6498 <method name="readSavedThumbnailPNGToArray">
6499 <desc>
6500 Thumbnail in PNG format is retrieved to an array of bytes.
6501 </desc>
6502 <param name="screenId" type="unsigned long" dir="in">
6503 <desc>
6504 Saved guest screen to read from.
6505 </desc>
6506 </param>
6507 <param name="width" type="unsigned long" dir="out">
6508 <desc>
6509 Image width.
6510 </desc>
6511 </param>
6512 <param name="height" type="unsigned long" dir="out">
6513 <desc>
6514 Image height.
6515 </desc>
6516 </param>
6517 <param name="data" type="octet" dir="return" safearray="yes">
6518 <desc>
6519 Array with resulting PNG data.
6520 </desc>
6521 </param>
6522 </method>
6523
6524 <method name="querySavedScreenshotPNGSize">
6525 <desc>
6526 Returns size in bytes and dimensions of a saved PNG image of screenshot from saved state.
6527 </desc>
6528 <param name="screenId" type="unsigned long" dir="in">
6529 <desc>
6530 Saved guest screen to query info from.
6531 </desc>
6532 </param>
6533 <param name="size" type="unsigned long" dir="out">
6534 <desc>
6535 Size of buffer required to store the PNG binary data.
6536 </desc>
6537 </param>
6538 <param name="width" type="unsigned long" dir="out">
6539 <desc>
6540 Image width.
6541 </desc>
6542 </param>
6543 <param name="height" type="unsigned long" dir="out">
6544 <desc>
6545 Image height.
6546 </desc>
6547 </param>
6548 </method>
6549
6550 <method name="readSavedScreenshotPNGToArray">
6551 <desc>
6552 Screenshot in PNG format is retrieved to an array of bytes.
6553 </desc>
6554 <param name="screenId" type="unsigned long" dir="in">
6555 <desc>
6556 Saved guest screen to read from.
6557 </desc>
6558 </param>
6559 <param name="width" type="unsigned long" dir="out">
6560 <desc>
6561 Image width.
6562 </desc>
6563 </param>
6564 <param name="height" type="unsigned long" dir="out">
6565 <desc>
6566 Image height.
6567 </desc>
6568 </param>
6569 <param name="data" type="octet" dir="return" safearray="yes">
6570 <desc>
6571 Array with resulting PNG data.
6572 </desc>
6573 </param>
6574 </method>
6575
6576 <method name="hotPlugCPU">
6577 <desc>
6578 Plugs a CPU into the machine.
6579 </desc>
6580 <param name="cpu" type="unsigned long" dir="in">
6581 <desc>
6582 The CPU id to insert.
6583 </desc>
6584 </param>
6585 </method>
6586
6587 <method name="hotUnplugCPU">
6588 <desc>
6589 Removes a CPU from the machine.
6590 </desc>
6591 <param name="cpu" type="unsigned long" dir="in">
6592 <desc>
6593 The CPU id to remove.
6594 </desc>
6595 </param>
6596 </method>
6597
6598 <method name="getCPUStatus">
6599 <desc>
6600 Returns the current status of the given CPU.
6601 </desc>
6602 <param name="cpu" type="unsigned long" dir="in">
6603 <desc>
6604 The CPU id to check for.
6605 </desc>
6606 </param>
6607 <param name="attached" type="boolean" dir="return">
6608 <desc>
6609 Status of the CPU.
6610 </desc>
6611 </param>
6612 </method>
6613
6614 <method name="queryLogFilename">
6615 <desc>
6616 Queries for the VM log file name of an given index. Returns an empty
6617 string if a log file with that index doesn't exists.
6618 </desc>
6619 <param name="idx" type="unsigned long" dir="in">
6620 <desc>
6621 Which log file name to query. 0=current log file.
6622 </desc>
6623 </param>
6624 <param name="filename" type="wstring" dir="return">
6625 <desc>
6626 On return the full path to the log file or an empty string on error.
6627 </desc>
6628 </param>
6629 </method>
6630
6631 <method name="readLog">
6632 <desc>
6633 Reads the VM log file. The chunk size is limited, so even if you
6634 ask for a big piece there might be less data returned.
6635 </desc>
6636 <param name="idx" type="unsigned long" dir="in">
6637 <desc>
6638 Which log file to read. 0=current log file.
6639 </desc>
6640 </param>
6641 <param name="offset" type="long long" dir="in">
6642 <desc>
6643 Offset in the log file.
6644 </desc>
6645 </param>
6646 <param name="size" type="long long" dir="in">
6647 <desc>
6648 Chunk size to read in the log file.
6649 </desc>
6650 </param>
6651 <param name="data" type="octet" dir="return" safearray="yes">
6652 <desc>
6653 Data read from the log file. A data size of 0 means end of file
6654 if the requested chunk size was not 0. This is the unprocessed
6655 file data, i.e. the line ending style depends on the platform of
6656 the system the server is running on.
6657 </desc>
6658 </param>
6659 </method>
6660
6661 <method name="cloneTo">
6662 <desc>
6663 Creates a clone of this machine, either as a full clone (which means
6664 creating independent copies of the hard disk media, save states and so
6665 on), or as a linked clone (which uses its own differencing media,
6666 sharing the parent media with the source machine).
6667
6668 The target machine object must have been created previously with <link
6669 to="IVirtualBox::createMachine"/>, and all the settings will be
6670 transferred except the VM name and the hardware UUID. You can set the
6671 VM name and the new hardware UUID when creating the target machine. The
6672 network MAC addresses are newly created for all newtwork adapters. You
6673 can change that behaviour with the options parameter. The operation is
6674 performed asynchronously, so the machine object will be not be usable
6675 until the @a progress object signals completion.
6676
6677 <result name="E_INVALIDARG">
6678 @a target is @c null.
6679 </result>
6680 </desc>
6681
6682 <param name="target" type="IMachine" dir="in">
6683 <desc>Target machine object.</desc>
6684 </param>
6685 <param name="mode" type="CloneMode" dir="in">
6686 <desc>Which states should be cloned.</desc>
6687 </param>
6688 <param name="options" type="CloneOptions" dir="in" safearray="yes">
6689 <desc>Options for the cloning operation.</desc>
6690 </param>
6691 <param name="progress" type="IProgress" dir="return">
6692 <desc>Progress object to track the operation completion.</desc>
6693 </param>
6694 </method>
6695
6696 </interface>
6697
6698 <!--
6699 // IConsole
6700 /////////////////////////////////////////////////////////////////////////
6701 -->
6702
6703 <interface
6704 name="IVRDEServerInfo" extends="$unknown"
6705 uuid="714434a1-58c3-4aab-9049-7652c5df113b"
6706 wsmap="struct"
6707 >
6708 <desc>
6709 Contains information about the remote desktop (VRDE) server capabilities and status.
6710 This is used in the <link to="IConsole::VRDEServerInfo" /> attribute.
6711 </desc>
6712
6713 <attribute name="active" type="boolean" readonly="yes">
6714 <desc>
6715 Whether the remote desktop connection is active.
6716 </desc>
6717 </attribute>
6718
6719 <attribute name="port" type="long" readonly="yes">
6720 <desc>
6721 VRDE server port number. If this property is equal to <tt>0</tt>, then
6722 the VRDE server failed to start, usually because there are no free IP
6723 ports to bind to. If this property is equal to <tt>-1</tt>, then the VRDE
6724 server has not yet been started.
6725 </desc>
6726 </attribute>
6727
6728 <attribute name="numberOfClients" type="unsigned long" readonly="yes">
6729 <desc>
6730 How many times a client connected.
6731 </desc>
6732 </attribute>
6733
6734 <attribute name="beginTime" type="long long" readonly="yes">
6735 <desc>
6736 When the last connection was established, in milliseconds since 1970-01-01 UTC.
6737 </desc>
6738 </attribute>
6739
6740 <attribute name="endTime" type="long long" readonly="yes">
6741 <desc>
6742 When the last connection was terminated or the current time, if
6743 connection is still active, in milliseconds since 1970-01-01 UTC.
6744 </desc>
6745 </attribute>
6746
6747 <attribute name="bytesSent" type="long long" readonly="yes">
6748 <desc>
6749 How many bytes were sent in last or current, if still active, connection.
6750 </desc>
6751 </attribute>
6752
6753 <attribute name="bytesSentTotal" type="long long" readonly="yes">
6754 <desc>
6755 How many bytes were sent in all connections.
6756 </desc>
6757 </attribute>
6758
6759 <attribute name="bytesReceived" type="long long" readonly="yes">
6760 <desc>
6761 How many bytes were received in last or current, if still active, connection.
6762 </desc>
6763 </attribute>
6764
6765 <attribute name="bytesReceivedTotal" type="long long" readonly="yes">
6766 <desc>
6767 How many bytes were received in all connections.
6768 </desc>
6769 </attribute>
6770
6771 <attribute name="user" type="wstring" readonly="yes">
6772 <desc>
6773 Login user name supplied by the client.
6774 </desc>
6775 </attribute>
6776
6777 <attribute name="domain" type="wstring" readonly="yes">
6778 <desc>
6779 Login domain name supplied by the client.
6780 </desc>
6781 </attribute>
6782
6783 <attribute name="clientName" type="wstring" readonly="yes">
6784 <desc>
6785 The client name supplied by the client.
6786 </desc>
6787 </attribute>
6788
6789 <attribute name="clientIP" type="wstring" readonly="yes">
6790 <desc>
6791 The IP address of the client.
6792 </desc>
6793 </attribute>
6794
6795 <attribute name="clientVersion" type="unsigned long" readonly="yes">
6796 <desc>
6797 The client software version number.
6798 </desc>
6799 </attribute>
6800
6801 <attribute name="encryptionStyle" type="unsigned long" readonly="yes">
6802 <desc>
6803 Public key exchange method used when connection was established.
6804 Values: 0 - RDP4 public key exchange scheme.
6805 1 - X509 certificates were sent to client.
6806 </desc>
6807 </attribute>
6808
6809 </interface>
6810
6811 <interface
6812 name="IConsole" extends="$unknown"
6813 uuid="db7ab4ca-2a3f-4183-9243-c1208da92392"
6814 wsmap="managed"
6815 >
6816 <desc>
6817 The IConsole interface represents an interface to control virtual
6818 machine execution.
6819
6820 A console object gets created when a machine has been locked for a
6821 particular session (client process) using <link to="IMachine::lockMachine" />
6822 or <link to="IMachine::launchVMProcess"/>. The console object can
6823 then be found in the session's <link to="ISession::console" /> attribute.
6824
6825 Methods of the IConsole interface allow the caller to query the current
6826 virtual machine execution state, pause the machine or power it down, save
6827 the machine state or take a snapshot, attach and detach removable media
6828 and so on.
6829
6830 <see><link to="ISession"/></see>
6831 </desc>
6832
6833 <attribute name="machine" type="IMachine" readonly="yes">
6834 <desc>
6835 Machine object for this console session.
6836 <note>
6837 This is a convenience property, it has the same value as
6838 <link to="ISession::machine"/> of the corresponding session
6839 object.
6840 </note>
6841 </desc>
6842 </attribute>
6843
6844 <attribute name="state" type="MachineState" readonly="yes">
6845 <desc>
6846 Current execution state of the machine.
6847 <note>
6848 This property always returns the same value as the corresponding
6849 property of the IMachine object for this console session.
6850 For the process that owns (executes) the VM, this is the
6851 preferable way of querying the VM state, because no IPC
6852 calls are made.
6853 </note>
6854 </desc>
6855 </attribute>
6856
6857 <attribute name="guest" type="IGuest" readonly="yes">
6858 <desc>Guest object.</desc>
6859 </attribute>
6860
6861 <attribute name="keyboard" type="IKeyboard" readonly="yes">
6862 <desc>
6863 Virtual keyboard object.
6864 <note>
6865 If the machine is not running, any attempt to use
6866 the returned object will result in an error.
6867 </note>
6868 </desc>
6869 </attribute>
6870
6871 <attribute name="mouse" type="IMouse" readonly="yes">
6872 <desc>
6873 Virtual mouse object.
6874 <note>
6875 If the machine is not running, any attempt to use
6876 the returned object will result in an error.
6877 </note>
6878 </desc>
6879 </attribute>
6880
6881 <attribute name="display" type="IDisplay" readonly="yes">
6882 <desc>Virtual display object.
6883 <note>
6884 If the machine is not running, any attempt to use
6885 the returned object will result in an error.
6886 </note>
6887 </desc>
6888 </attribute>
6889
6890 <attribute name="debugger" type="IMachineDebugger" readonly="yes">
6891 <desc>Debugging interface.</desc>
6892 </attribute>
6893
6894 <attribute name="USBDevices" type="IUSBDevice" readonly="yes" safearray="yes">
6895 <desc>
6896 Collection of USB devices currently attached to the virtual
6897 USB controller.
6898 <note>
6899 The collection is empty if the machine is not running.
6900 </note>
6901 </desc>
6902 </attribute>
6903
6904 <attribute name="remoteUSBDevices" type="IHostUSBDevice" readonly="yes" safearray="yes">
6905 <desc>
6906 List of USB devices currently attached to the remote VRDE client.
6907 Once a new device is physically attached to the remote host computer,
6908 it appears in this list and remains there until detached.
6909 </desc>
6910 </attribute>
6911
6912 <attribute name="sharedFolders" type="ISharedFolder" readonly="yes" safearray="yes">
6913 <desc>
6914 Collection of shared folders for the current session. These folders
6915 are called transient shared folders because they are available to the
6916 guest OS running inside the associated virtual machine only for the
6917 duration of the session (as opposed to
6918 <link to="IMachine::sharedFolders"/> which represent permanent shared
6919 folders). When the session is closed (e.g. the machine is powered down),
6920 these folders are automatically discarded.
6921
6922 New shared folders are added to the collection using
6923 <link to="#createSharedFolder"/>. Existing shared folders can be
6924 removed using <link to="#removeSharedFolder"/>.
6925 </desc>
6926 </attribute>
6927
6928 <attribute name="VRDEServerInfo" type="IVRDEServerInfo" readonly="yes">
6929 <desc>
6930 Interface that provides information on Remote Desktop Extension (VRDE) connection.
6931 </desc>
6932 </attribute>
6933
6934 <attribute name="eventSource" type="IEventSource" readonly="yes">
6935 <desc>
6936 Event source for console events.
6937 </desc>
6938 </attribute>
6939
6940 <attribute name="attachedPCIDevices" type="IPCIDeviceAttachment" readonly="yes" safearray="yes">
6941 <desc>Array of PCI devices attached to this machine.</desc>
6942 </attribute>
6943
6944 <attribute name="useHostClipboard" type="boolean">
6945 <desc>
6946 Whether the guest clipboard should be connected to the host one or
6947 whether it should only be allowed access to the VRDE clipboard. This
6948 setting may not affect existing guest clipboard connections which
6949 are already connected to the host clipboard.
6950 </desc>
6951 </attribute>
6952
6953 <method name="powerUp">
6954 <desc>
6955 Starts the virtual machine execution using the current machine
6956 state (that is, its current execution state, current settings and
6957 current storage devices).
6958
6959 <note>
6960 This method is only useful for front-ends that want to actually
6961 execute virtual machines in their own process (like the VirtualBox
6962 or VBoxSDL front-ends). Unless you are intending to write such a
6963 front-end, do not call this method. If you simply want to
6964 start virtual machine execution using one of the existing front-ends
6965 (for example the VirtualBox GUI or headless server), use
6966 <link to="IMachine::launchVMProcess"/> instead; these
6967 front-ends will power up the machine automatically for you.
6968 </note>
6969
6970 If the machine is powered off or aborted, the execution will
6971 start from the beginning (as if the real hardware were just
6972 powered on).
6973
6974 If the machine is in the <link to="MachineState_Saved"/> state,
6975 it will continue its execution the point where the state has
6976 been saved.
6977
6978 If the machine <link to="IMachine::teleporterEnabled"/> property is
6979 enabled on the machine being powered up, the machine will wait for an
6980 incoming teleportation in the <link to="MachineState_TeleportingIn"/>
6981 state. The returned progress object will have at least three
6982 operations where the last three are defined as: (1) powering up and
6983 starting TCP server, (2) waiting for incoming teleportations, and
6984 (3) perform teleportation. These operations will be reflected as the
6985 last three operations of the progress objected returned by
6986 <link to="IMachine::launchVMProcess"/> as well.
6987
6988 <see><link to="#saveState"/></see>
6989
6990 <result name="VBOX_E_INVALID_VM_STATE">
6991 Virtual machine already running.
6992 </result>
6993 <result name="VBOX_E_HOST_ERROR">
6994 Host interface does not exist or name not set.
6995 </result>
6996 <result name="VBOX_E_FILE_ERROR">
6997 Invalid saved state file.
6998 </result>
6999 </desc>
7000 <param name="progress" type="IProgress" dir="return">
7001 <desc>Progress object to track the operation completion.</desc>
7002 </param>
7003 </method>
7004
7005 <method name="powerUpPaused">
7006 <desc>
7007 Identical to powerUp except that the VM will enter the
7008 <link to="MachineState_Paused"/> state, instead of
7009 <link to="MachineState_Running"/>.
7010
7011 <see><link to="#powerUp"/></see>
7012 <result name="VBOX_E_INVALID_VM_STATE">
7013 Virtual machine already running.
7014 </result>
7015 <result name="VBOX_E_HOST_ERROR">
7016 Host interface does not exist or name not set.
7017 </result>
7018 <result name="VBOX_E_FILE_ERROR">
7019 Invalid saved state file.
7020 </result>
7021 </desc>
7022 <param name="progress" type="IProgress" dir="return">
7023 <desc>Progress object to track the operation completion.</desc>
7024 </param>
7025 </method>
7026
7027 <method name="powerDown">
7028 <desc>
7029 Initiates the power down procedure to stop the virtual machine
7030 execution.
7031
7032 The completion of the power down procedure is tracked using the returned
7033 IProgress object. After the operation is complete, the machine will go
7034 to the PoweredOff state.
7035 <result name="VBOX_E_INVALID_VM_STATE">
7036 Virtual machine must be Running, Paused or Stuck to be powered down.
7037 </result>
7038 </desc>
7039 <param name="progress" type="IProgress" dir="return">
7040 <desc>Progress object to track the operation completion.</desc>
7041 </param>
7042 </method>
7043
7044 <method name="reset">
7045 <desc>Resets the virtual machine.
7046 <result name="VBOX_E_INVALID_VM_STATE">
7047 Virtual machine not in Running state.
7048 </result>
7049 <result name="VBOX_E_VM_ERROR">
7050 Virtual machine error in reset operation.
7051 </result>
7052 </desc>
7053 </method>
7054
7055 <method name="pause">
7056 <desc>Pauses the virtual machine execution.
7057 <result name="VBOX_E_INVALID_VM_STATE">
7058 Virtual machine not in Running state.
7059 </result>
7060 <result name="VBOX_E_VM_ERROR">
7061 Virtual machine error in suspend operation.
7062 </result>
7063 </desc>
7064 </method>
7065
7066 <method name="resume">
7067 <desc>Resumes the virtual machine execution.
7068 <result name="VBOX_E_INVALID_VM_STATE">
7069 Virtual machine not in Paused state.
7070 </result>
7071 <result name="VBOX_E_VM_ERROR">
7072 Virtual machine error in resume operation.
7073 </result>
7074 </desc>
7075 </method>
7076
7077 <method name="powerButton">
7078 <desc>Sends the ACPI power button event to the guest.
7079 <result name="VBOX_E_INVALID_VM_STATE">
7080 Virtual machine not in Running state.
7081 </result>
7082 <result name="VBOX_E_PDM_ERROR">
7083 Controlled power off failed.
7084 </result>
7085 </desc>
7086 </method>
7087
7088 <method name="sleepButton">
7089 <desc>Sends the ACPI sleep button event to the guest.
7090 <result name="VBOX_E_INVALID_VM_STATE">
7091 Virtual machine not in Running state.
7092 </result>
7093 <result name="VBOX_E_PDM_ERROR">
7094 Sending sleep button event failed.
7095 </result>
7096 </desc>
7097 </method>
7098
7099 <method name="getPowerButtonHandled">
7100 <desc>Checks if the last power button event was handled by guest.
7101 <result name="VBOX_E_PDM_ERROR">
7102 Checking if the event was handled by the guest OS failed.
7103 </result>
7104 </desc>
7105 <param name="handled" type="boolean" dir="return"/>
7106 </method>
7107
7108 <method name="getGuestEnteredACPIMode">
7109 <desc>Checks if the guest entered the ACPI mode G0 (working) or
7110 G1 (sleeping). If this method returns @c false, the guest will
7111 most likely not respond to external ACPI events.
7112 <result name="VBOX_E_INVALID_VM_STATE">
7113 Virtual machine not in Running state.
7114 </result>
7115 </desc>
7116 <param name="entered" type="boolean" dir="return"/>
7117 </method>
7118
7119 <method name="saveState">
7120 <desc>
7121 Saves the current execution state of a running virtual machine
7122 and stops its execution.
7123
7124 After this operation completes, the machine will go to the
7125 Saved state. Next time it is powered up, this state will
7126 be restored and the machine will continue its execution from
7127 the place where it was saved.
7128
7129 This operation differs from taking a snapshot to the effect
7130 that it doesn't create new differencing media. Also, once
7131 the machine is powered up from the state saved using this method,
7132 the saved state is deleted, so it will be impossible to return
7133 to this state later.
7134
7135 <note>
7136 On success, this method implicitly calls
7137 <link to="IMachine::saveSettings"/> to save all current machine
7138 settings (including runtime changes to the DVD medium, etc.).
7139 Together with the impossibility to change any VM settings when it is
7140 in the Saved state, this guarantees adequate hardware
7141 configuration of the machine when it is restored from the saved
7142 state file.
7143 </note>
7144
7145 <note>
7146 The machine must be in the Running or Paused state, otherwise
7147 the operation will fail.
7148 </note>
7149 <result name="VBOX_E_INVALID_VM_STATE">
7150 Virtual machine state neither Running nor Paused.
7151 </result>
7152 <result name="VBOX_E_FILE_ERROR">
7153 Failed to create directory for saved state file.
7154 </result>
7155
7156 <see><link to="#takeSnapshot"/></see>
7157 </desc>
7158 <param name="progress" type="IProgress" dir="return">
7159 <desc>Progress object to track the operation completion.</desc>
7160 </param>
7161 </method>
7162
7163 <method name="adoptSavedState">
7164 <desc>
7165 Associates the given saved state file to the virtual machine.
7166
7167 On success, the machine will go to the Saved state. Next time it is
7168 powered up, it will be restored from the adopted saved state and
7169 continue execution from the place where the saved state file was
7170 created.
7171
7172 The specified saved state file path may be absolute or relative to the
7173 folder the VM normally saves the state to (usually,
7174 <link to="IMachine::snapshotFolder"/>).
7175
7176 <note>
7177 It's a caller's responsibility to make sure the given saved state
7178 file is compatible with the settings of this virtual machine that
7179 represent its virtual hardware (memory size, storage disk configuration
7180 etc.). If there is a mismatch, the behavior of the virtual machine
7181 is undefined.
7182 </note>
7183 <result name="VBOX_E_INVALID_VM_STATE">
7184 Virtual machine state neither PoweredOff nor Aborted.
7185 </result>
7186 </desc>
7187 <param name="savedStateFile" type="wstring" dir="in">
7188 <desc>Path to the saved state file to adopt.</desc>
7189 </param>
7190 </method>
7191
7192 <method name="discardSavedState">
7193 <desc>
7194 Forcibly resets the machine to "Powered Off" state if it is
7195 currently in the "Saved" state (previously created by <link to="#saveState"/>).
7196 Next time the machine is powered up, a clean boot will occur.
7197 <note>
7198 This operation is equivalent to resetting or powering off
7199 the machine without doing a proper shutdown of the guest
7200 operating system; as with resetting a running phyiscal
7201 computer, it can can lead to data loss.
7202 </note>
7203 If @a fRemoveFile is @c true, the file in the machine directory
7204 into which the machine state was saved is also deleted. If
7205 this is @c false, then the state can be recovered and later
7206 re-inserted into a machine using <link to="#adoptSavedState" />.
7207 The location of the file can be found in the
7208 <link to="IMachine::stateFilePath" /> attribute.
7209 <result name="VBOX_E_INVALID_VM_STATE">
7210 Virtual machine not in state Saved.
7211 </result>
7212 </desc>
7213 <param name="fRemoveFile" type="boolean" dir="in" >
7214 <desc>Whether to also remove the saved state file.</desc>
7215 </param>
7216 </method>
7217
7218 <method name="getDeviceActivity">
7219 <desc>
7220 Gets the current activity type of a given device or device group.
7221 <result name="E_INVALIDARG">
7222 Invalid device type.
7223 </result>
7224 </desc>
7225 <param name="type" type="DeviceType" dir="in"/>
7226 <param name="activity" type="DeviceActivity" dir="return"/>
7227 </method>
7228
7229 <method name="attachUSBDevice">
7230 <desc>
7231 Attaches a host USB device with the given UUID to the
7232 USB controller of the virtual machine.
7233
7234 The device needs to be in one of the following states:
7235 <link to="USBDeviceState_Busy"/>,
7236 <link to="USBDeviceState_Available"/> or
7237 <link to="USBDeviceState_Held"/>,
7238 otherwise an error is immediately returned.
7239
7240 When the device state is
7241 <link to="USBDeviceState_Busy">Busy</link>, an error may also
7242 be returned if the host computer refuses to release it for some reason.
7243
7244 <see><link to="IUSBController::deviceFilters"/>,
7245 <link to="USBDeviceState"/></see>
7246 <result name="VBOX_E_INVALID_VM_STATE">
7247 Virtual machine state neither Running nor Paused.
7248 </result>
7249 <result name="VBOX_E_PDM_ERROR">
7250 Virtual machine does not have a USB controller.
7251 </result>
7252 </desc>
7253 <param name="id" type="uuid" mod="string" dir="in">
7254 <desc>UUID of the host USB device to attach.</desc>
7255 </param>
7256 </method>
7257
7258 <method name="detachUSBDevice">
7259 <desc>
7260 Detaches an USB device with the given UUID from the USB controller
7261 of the virtual machine.
7262
7263 After this method succeeds, the VirtualBox server re-initiates
7264 all USB filters as if the device were just physically attached
7265 to the host, but filters of this machine are ignored to avoid
7266 a possible automatic re-attachment.
7267
7268 <see><link to="IUSBController::deviceFilters"/>,
7269 <link to="USBDeviceState"/></see>
7270
7271 <result name="VBOX_E_PDM_ERROR">
7272 Virtual machine does not have a USB controller.
7273 </result>
7274 <result name="E_INVALIDARG">
7275 USB device not attached to this virtual machine.
7276 </result>
7277 </desc>
7278 <param name="id" type="uuid" mod="string" dir="in">
7279 <desc>UUID of the USB device to detach.</desc>
7280 </param>
7281 <param name="device" type="IUSBDevice" dir="return">
7282 <desc>Detached USB device.</desc>
7283 </param>
7284 </method>
7285
7286 <method name="findUSBDeviceByAddress">
7287 <desc>
7288 Searches for a USB device with the given host address.
7289
7290 <result name="VBOX_E_OBJECT_NOT_FOUND">
7291 Given @c name does not correspond to any USB device.
7292 </result>
7293
7294 <see><link to="IUSBDevice::address"/></see>
7295 </desc>
7296 <param name="name" type="wstring" dir="in">
7297 <desc>
7298 Address of the USB device (as assigned by the host) to
7299 search for.
7300 </desc>
7301 </param>
7302 <param name="device" type="IUSBDevice" dir="return">
7303 <desc>Found USB device object.</desc>
7304 </param>
7305 </method>
7306
7307 <method name="findUSBDeviceById">
7308 <desc>
7309 Searches for a USB device with the given UUID.
7310
7311 <result name="VBOX_E_OBJECT_NOT_FOUND">
7312 Given @c id does not correspond to any USB device.
7313 </result>
7314
7315 <see><link to="IUSBDevice::id"/></see>
7316 </desc>
7317 <param name="id" type="uuid" mod="string" dir="in">
7318 <desc>UUID of the USB device to search for.</desc>
7319 </param>
7320 <param name="device" type="IUSBDevice" dir="return">
7321 <desc>Found USB device object.</desc>
7322 </param>
7323 </method>
7324
7325 <method name="createSharedFolder">
7326 <desc>
7327 Creates a transient new shared folder by associating the given logical
7328 name with the given host path, adds it to the collection of shared
7329 folders and starts sharing it. Refer to the description of
7330 <link to="ISharedFolder"/> to read more about logical names.
7331
7332 <result name="VBOX_E_INVALID_VM_STATE">
7333 Virtual machine in Saved state or currently changing state.
7334 </result>
7335 <result name="VBOX_E_FILE_ERROR">
7336 Shared folder already exists or not accessible.
7337 </result>
7338 </desc>
7339 <param name="name" type="wstring" dir="in">
7340 <desc>Unique logical name of the shared folder.</desc>
7341 </param>
7342 <param name="hostPath" type="wstring" dir="in">
7343 <desc>Full path to the shared folder in the host file system.</desc>
7344 </param>
7345 <param name="writable" type="boolean" dir="in">
7346 <desc>Whether the share is writable or readonly</desc>
7347 </param>
7348 <param name="automount" type="boolean" dir="in">
7349 <desc>Whether the share gets automatically mounted by the guest
7350 or not.</desc>
7351 </param>
7352 </method>
7353
7354 <method name="removeSharedFolder">
7355 <desc>
7356 Removes a transient shared folder with the given name previously
7357 created by <link to="#createSharedFolder"/> from the collection of
7358 shared folders and stops sharing it.
7359 <result name="VBOX_E_INVALID_VM_STATE">
7360 Virtual machine in Saved state or currently changing state.
7361 </result>
7362 <result name="VBOX_E_FILE_ERROR">
7363 Shared folder does not exists.
7364 </result>
7365 </desc>
7366 <param name="name" type="wstring" dir="in">
7367 <desc>Logical name of the shared folder to remove.</desc>
7368 </param>
7369 </method>
7370
7371 <method name="takeSnapshot">
7372 <desc>
7373 Saves the current execution state
7374 and all settings of the machine and creates differencing images
7375 for all normal (non-independent) media.
7376 See <link to="ISnapshot" /> for an introduction to snapshots.
7377
7378 This method can be called for a PoweredOff, Saved (see
7379 <link to="#saveState"/>), Running or
7380 Paused virtual machine. When the machine is PoweredOff, an
7381 offline snapshot is created. When the machine is Running a live
7382 snapshot is created, and an online snapshot is created when Paused.
7383
7384 The taken snapshot is always based on the
7385 <link to="IMachine::currentSnapshot">current snapshot</link>
7386 of the associated virtual machine and becomes a new current snapshot.
7387
7388 <note>
7389 This method implicitly calls <link to="IMachine::saveSettings"/> to
7390 save all current machine settings before taking an offline snapshot.
7391 </note>
7392
7393 <result name="VBOX_E_INVALID_VM_STATE">
7394 Virtual machine currently changing state.
7395 </result>
7396 </desc>
7397 <param name="name" type="wstring" dir="in">
7398 <desc>Short name for the snapshot.</desc>
7399 </param>
7400 <param name="description" type="wstring" dir="in">
7401 <desc>Optional description of the snapshot.</desc>
7402 </param>
7403 <param name="progress" type="IProgress" dir="return">
7404 <desc>Progress object to track the operation completion.</desc>
7405 </param>
7406 </method>
7407
7408 <method name="deleteSnapshot">
7409 <desc>
7410 Starts deleting the specified snapshot asynchronously.
7411 See <link to="ISnapshot" /> for an introduction to snapshots.
7412
7413 The execution state and settings of the associated machine stored in
7414 the snapshot will be deleted. The contents of all differencing media of
7415 this snapshot will be merged with the contents of their dependent child
7416 media to keep the medium chain valid (in other words, all changes
7417 represented by media being deleted will be propagated to their child
7418 medium). After that, this snapshot's differencing medium will be
7419 deleted. The parent of this snapshot will become a new parent for all
7420 its child snapshots.
7421
7422 If the deleted snapshot is the current one, its parent snapshot will
7423 become a new current snapshot. The current machine state is not directly
7424 affected in this case, except that currently attached differencing
7425 media based on media of the deleted snapshot will be also merged as
7426 described above.
7427
7428 If the deleted snapshot is the first or current snapshot, then the
7429 respective IMachine attributes will be adjusted. Deleting the current
7430 snapshot will also implicitly call <link to="IMachine::saveSettings"/>
7431 to make all current machine settings permanent.
7432
7433 Deleting a snapshot has the following preconditions:
7434
7435 <ul>
7436 <li>Child media of all normal media of the deleted snapshot
7437 must be accessible (see <link to="IMedium::state"/>) for this
7438 operation to succeed. If only one running VM refers to all images
7439 which participates in merging the operation can be performed while
7440 the VM is running. Otherwise all virtual machines whose media are
7441 directly or indirectly based on the media of deleted snapshot must
7442 be powered off. In any case, online snapshot deleting usually is
7443 slower than the same operation without any running VM.</li>
7444
7445 <li>You cannot delete the snapshot if a medium attached to it has
7446 more than one child medium (differencing images) because otherwise
7447 merging would be impossible. This might be the case if there is
7448 more than one child snapshot or differencing images were created
7449 for other reason (e.g. implicitly because of multiple machine
7450 attachments).</li>
7451 </ul>
7452
7453 The virtual machine's <link to="IMachine::state">state</link> is
7454 changed to "DeletingSnapshot", "DeletingSnapshotOnline" or
7455 "DeletingSnapshotPaused" while this operation is in progress.
7456
7457 <note>
7458 Merging medium contents can be very time and disk space
7459 consuming, if these media are big in size and have many
7460 children. However, if the snapshot being deleted is the last
7461 (head) snapshot on the branch, the operation will be rather
7462 quick.
7463 </note>
7464 <result name="VBOX_E_INVALID_VM_STATE">
7465 The running virtual machine prevents deleting this snapshot. This
7466 happens only in very specific situations, usually snapshots can be
7467 deleted without trouble while a VM is running. The error message
7468 text explains the reason for the failure.
7469 </result>
7470 </desc>
7471 <param name="id" type="uuid" mod="string" dir="in">
7472 <desc>UUID of the snapshot to delete.</desc>
7473 </param>
7474 <param name="progress" type="IProgress" dir="return">
7475 <desc>Progress object to track the operation completion.</desc>
7476 </param>
7477 </method>
7478
7479 <method name="deleteSnapshotAndAllChildren">
7480 <desc>
7481 Starts deleting the specified snapshot and all its children
7482 asynchronously. See <link to="ISnapshot" /> for an introduction to
7483 snapshots. The conditions and many details are the same as with
7484 <link to="#deleteSnapshot"/>.
7485
7486 This operation is very fast if the snapshot subtree does not include
7487 the current state. It is still significantly faster than deleting the
7488 snapshots one by one if the current state is in the subtree and there
7489 are more than one snapshots from current state to the snapshot which
7490 marks the subtree, since it eliminates the incremental image merging.
7491
7492 <note>This API method is right now not implemented!</note>
7493
7494 <result name="VBOX_E_INVALID_VM_STATE">
7495 The running virtual machine prevents deleting this snapshot. This
7496 happens only in very specific situations, usually snapshots can be
7497 deleted without trouble while a VM is running. The error message
7498 text explains the reason for the failure.
7499 </result>
7500 <result name="E_NOTIMPL">
7501 The method is not implemented yet.
7502 </result>
7503 </desc>
7504 <param name="id" type="uuid" mod="string" dir="in">
7505 <desc>UUID of the snapshot to delete, including all its children.</desc>
7506 </param>
7507 <param name="progress" type="IProgress" dir="return">
7508 <desc>Progress object to track the operation completion.</desc>
7509 </param>
7510 </method>
7511
7512 <method name="deleteSnapshotRange">
7513 <desc>
7514 Starts deleting the specified snapshot range. This is limited to
7515 linear snapshot lists, which means there may not be any other child
7516 snapshots other than the direct sequence between the start and end
7517 snapshot. If the start and end snapshot point to the same snapshot this
7518 method is completely equivalent to <link to="#deleteSnapshot"/>. See
7519 <link to="ISnapshot" /> for an introduction to snapshots. The
7520 conditions and many details are the same as with
7521 <link to="#deleteSnapshot"/>.
7522
7523 This operation is generally faster than deleting snapshots one by one
7524 and often also needs less extra disk space before freeing up disk space
7525 by deleting the removed disk images corresponding to the snapshot.
7526
7527 <note>This API method is right now not implemented!</note>
7528
7529 <result name="VBOX_E_INVALID_VM_STATE">
7530 The running virtual machine prevents deleting this snapshot. This
7531 happens only in very specific situations, usually snapshots can be
7532 deleted without trouble while a VM is running. The error message
7533 text explains the reason for the failure.
7534 </result>
7535 <result name="E_NOTIMPL">
7536 The method is not implemented yet.
7537 </result>
7538 </desc>
7539 <param name="startId" type="uuid" mod="string" dir="in">
7540 <desc>UUID of the first snapshot to delete.</desc>
7541 </param>
7542 <param name="endId" type="uuid" mod="string" dir="in">
7543 <desc>UUID of the last snapshot to delete.</desc>
7544 </param>
7545 <param name="progress" type="IProgress" dir="return">
7546 <desc>Progress object to track the operation completion.</desc>
7547 </param>
7548 </method>
7549
7550 <method name="restoreSnapshot">
7551 <desc>
7552 Starts resetting the machine's current state to the state contained
7553 in the given snapshot, asynchronously. All current settings of the
7554 machine will be reset and changes stored in differencing media
7555 will be lost.
7556 See <link to="ISnapshot" /> for an introduction to snapshots.
7557
7558 After this operation is successfully completed, new empty differencing
7559 media are created for all normal media of the machine.
7560
7561 If the given snapshot is an online snapshot, the machine will go to
7562 the <link to="MachineState_Saved"> saved state</link>, so that the
7563 next time it is powered on, the execution state will be restored
7564 from the state of the snapshot.
7565
7566 <note>
7567 The machine must not be running, otherwise the operation will fail.
7568 </note>
7569
7570 <note>
7571 If the machine state is <link to="MachineState_Saved">Saved</link>
7572 prior to this operation, the saved state file will be implicitly
7573 deleted (as if <link to="IConsole::discardSavedState"/> were
7574 called).
7575 </note>
7576
7577 <result name="VBOX_E_INVALID_VM_STATE">
7578 Virtual machine is running.
7579 </result>
7580 </desc>
7581 <param name="snapshot" type="ISnapshot" dir="in">
7582 <desc>The snapshot to restore the VM state from.</desc>
7583 </param>
7584 <param name="progress" type="IProgress" dir="return">
7585 <desc>Progress object to track the operation completion.</desc>
7586 </param>
7587 </method>
7588
7589 <method name="teleport">
7590 <desc>
7591 Teleport the VM to a different host machine or process.
7592
7593 TODO explain the details.
7594
7595 <result name="VBOX_E_INVALID_VM_STATE">
7596 Virtual machine not running or paused.
7597 </result>
7598 </desc>
7599 <param name="hostname" type="wstring" dir="in">
7600 <desc>The name or IP of the host to teleport to.</desc>
7601 </param>
7602 <param name="tcpport" type="unsigned long" dir="in">
7603 <desc>The TCP port to connect to (1..65535).</desc>
7604 </param>
7605 <param name="password" type="wstring" dir="in">
7606 <desc>The password.</desc>
7607 </param>
7608 <param name="maxDowntime" type="unsigned long" dir="in">
7609 <desc>
7610 The maximum allowed downtime given as milliseconds. 0 is not a valid
7611 value. Recommended value: 250 ms.
7612
7613 The higher the value is, the greater the chance for a successful
7614 teleportation. A small value may easily result in the teleportation
7615 process taking hours and eventually fail.
7616
7617 <note>
7618 The current implementation treats this a guideline, not as an
7619 absolute rule.
7620 </note>
7621 </desc>
7622 </param>
7623 <param name="progress" type="IProgress" dir="return">
7624 <desc>Progress object to track the operation completion.</desc>
7625 </param>
7626 </method>
7627
7628 </interface>
7629
7630 <!--
7631 // IHost
7632 /////////////////////////////////////////////////////////////////////////
7633 -->
7634
7635 <enum
7636 name="HostNetworkInterfaceMediumType"
7637 uuid="1aa54aaf-2497-45a2-bfb1-8eb225e93d5b"
7638 >
7639 <desc>
7640 Type of encapsulation. Ethernet encapsulation includes both wired and
7641 wireless Ethernet connections.
7642 <see><link to="IHostNetworkInterface"/></see>
7643 </desc>
7644
7645 <const name="Unknown" value="0">
7646 <desc>
7647 The type of interface cannot be determined.
7648 </desc>
7649 </const>
7650 <const name="Ethernet" value="1">
7651 <desc>
7652 Ethernet frame encapsulation.
7653 </desc>
7654 </const>
7655 <const name="PPP" value="2">
7656 <desc>
7657 Point-to-point protocol encapsulation.
7658 </desc>
7659 </const>
7660 <const name="SLIP" value="3">
7661 <desc>
7662 Serial line IP encapsulation.
7663 </desc>
7664 </const>
7665 </enum>
7666
7667 <enum
7668 name="HostNetworkInterfaceStatus"
7669 uuid="CC474A69-2710-434B-8D99-C38E5D5A6F41"
7670 >
7671 <desc>
7672 Current status of the interface.
7673 <see><link to="IHostNetworkInterface"/></see>
7674 </desc>
7675
7676 <const name="Unknown" value="0">
7677 <desc>
7678 The state of interface cannot be determined.
7679 </desc>
7680 </const>
7681 <const name="Up" value="1">
7682 <desc>
7683 The interface is fully operational.
7684 </desc>
7685 </const>
7686 <const name="Down" value="2">
7687 <desc>
7688 The interface is not functioning.
7689 </desc>
7690 </const>
7691 </enum>
7692
7693 <enum
7694 name="HostNetworkInterfaceType"
7695 uuid="67431b00-9946-48a2-bc02-b25c5919f4f3"
7696 >
7697 <desc>
7698 Network interface type.
7699 </desc>
7700 <const name="Bridged" value="1"/>
7701 <const name="HostOnly" value="2"/>
7702 </enum>
7703
7704 <interface
7705 name="IHostNetworkInterface" extends="$unknown"
7706 uuid="87a4153d-6889-4dd6-9654-2e9ff0ae8dec"
7707 wsmap="managed"
7708 >
7709 <desc>
7710 Represents one of host's network interfaces. IP V6 address and network
7711 mask are strings of 32 hexdecimal digits grouped by four. Groups are
7712 separated by colons.
7713 For example, fe80:0000:0000:0000:021e:c2ff:fed2:b030.
7714 </desc>
7715 <attribute name="name" type="wstring" readonly="yes">
7716 <desc>Returns the host network interface name.</desc>
7717 </attribute>
7718
7719 <attribute name="id" type="uuid" mod="string" readonly="yes">
7720 <desc>Returns the interface UUID.</desc>
7721 </attribute>
7722
7723 <attribute name="networkName" type="wstring" readonly="yes">
7724 <desc>Returns the name of a virtual network the interface gets attached to.</desc>
7725 </attribute>
7726
7727 <attribute name="DHCPEnabled" type="boolean" readonly="yes">
7728 <desc>Specifies whether the DHCP is enabled for the interface.</desc>
7729 </attribute>
7730
7731 <attribute name="IPAddress" type="wstring" readonly="yes">
7732 <desc>Returns the IP V4 address of the interface.</desc>
7733 </attribute>
7734
7735 <attribute name="networkMask" type="wstring" readonly="yes">
7736 <desc>Returns the network mask of the interface.</desc>
7737 </attribute>
7738
7739 <attribute name="IPV6Supported" type="boolean" readonly="yes">
7740 <desc>Specifies whether the IP V6 is supported/enabled for the interface.</desc>
7741 </attribute>
7742
7743 <attribute name="IPV6Address" type="wstring" readonly="yes">
7744 <desc>Returns the IP V6 address of the interface.</desc>
7745 </attribute>
7746
7747 <attribute name="IPV6NetworkMaskPrefixLength" type="unsigned long" readonly="yes">
7748 <desc>Returns the length IP V6 network mask prefix of the interface.</desc>
7749 </attribute>
7750
7751 <attribute name="hardwareAddress" type="wstring" readonly="yes">
7752 <desc>Returns the hardware address. For Ethernet it is MAC address.</desc>
7753 </attribute>
7754
7755 <attribute name="mediumType" type="HostNetworkInterfaceMediumType" readonly="yes">
7756 <desc>Type of protocol encapsulation used.</desc>
7757 </attribute>
7758
7759 <attribute name="status" type="HostNetworkInterfaceStatus" readonly="yes">
7760 <desc>Status of the interface.</desc>
7761 </attribute>
7762
7763 <attribute name="interfaceType" type="HostNetworkInterfaceType" readonly="yes">
7764 <desc>specifies the host interface type.</desc>
7765 </attribute>
7766
7767 <method name="enableStaticIPConfig">
7768 <desc>sets and enables the static IP V4 configuration for the given interface.</desc>
7769 <param name="IPAddress" type="wstring" dir="in">
7770 <desc>
7771 IP address.
7772 </desc>
7773 </param>
7774 <param name="networkMask" type="wstring" dir="in">
7775 <desc>
7776 network mask.
7777 </desc>
7778 </param>
7779 </method>
7780
7781 <method name="enableStaticIPConfigV6">
7782 <desc>sets and enables the static IP V6 configuration for the given interface.</desc>
7783 <param name="IPV6Address" type="wstring" dir="in">
7784 <desc>
7785 IP address.
7786 </desc>
7787 </param>
7788 <param name="IPV6NetworkMaskPrefixLength" type="unsigned long" dir="in">
7789 <desc>
7790 network mask.
7791 </desc>
7792 </param>
7793 </method>
7794
7795 <method name="enableDynamicIPConfig">
7796 <desc>enables the dynamic IP configuration.</desc>
7797 </method>
7798
7799 <method name="DHCPRediscover">
7800 <desc>refreshes the IP configuration for DHCP-enabled interface.</desc>
7801 </method>
7802
7803 </interface>
7804
7805 <interface
7806 name="IHost" extends="$unknown"
7807 uuid="30678943-32df-4830-b413-931b25ac86a0"
7808 wsmap="managed"
7809 >
7810 <desc>
7811 The IHost interface represents the physical machine that this VirtualBox
7812 installation runs on.
7813
7814 An object implementing this interface is returned by the
7815 <link to="IVirtualBox::host" /> attribute. This interface contains
7816 read-only information about the host's physical hardware (such as what
7817 processors and disks are available, what the host operating system is,
7818 and so on) and also allows for manipulating some of the host's hardware,
7819 such as global USB device filters and host interface networking.
7820
7821 </desc>
7822 <attribute name="DVDDrives" type="IMedium" readonly="yes" safearray="yes">
7823 <desc>List of DVD drives available on the host.</desc>
7824 </attribute>
7825
7826 <attribute name="floppyDrives" type="IMedium" readonly="yes" safearray="yes">
7827 <desc>List of floppy drives available on the host.</desc>
7828 </attribute>
7829
7830 <attribute name="USBDevices" type="IHostUSBDevice" readonly="yes" safearray="yes">
7831 <desc>
7832 List of USB devices currently attached to the host.
7833 Once a new device is physically attached to the host computer,
7834 it appears in this list and remains there until detached.
7835
7836 <note>
7837 If USB functionality is not available in the given edition of
7838 VirtualBox, this method will set the result code to @c E_NOTIMPL.
7839 </note>
7840 </desc>
7841 </attribute>
7842
7843 <attribute name="USBDeviceFilters" type="IHostUSBDeviceFilter" readonly="yes" safearray="yes">
7844 <desc>
7845 List of USB device filters in action.
7846 When a new device is physically attached to the host computer,
7847 filters from this list are applied to it (in order they are stored
7848 in the list). The first matched filter will determine the
7849 <link to="IHostUSBDeviceFilter::action">action</link>
7850 performed on the device.
7851
7852 Unless the device is ignored by these filters, filters of all
7853 currently running virtual machines
7854 (<link to="IUSBController::deviceFilters"/>) are applied to it.
7855
7856 <note>
7857 If USB functionality is not available in the given edition of
7858 VirtualBox, this method will set the result code to @c E_NOTIMPL.
7859 </note>
7860
7861 <see><link to="IHostUSBDeviceFilter"/>,
7862 <link to="USBDeviceState"/></see>
7863 </desc>
7864 </attribute>
7865
7866 <attribute name="networkInterfaces" type="IHostNetworkInterface" safearray="yes" readonly="yes">
7867 <desc>List of host network interfaces currently defined on the host.</desc>
7868 </attribute>
7869
7870 <attribute name="processorCount" type="unsigned long" readonly="yes">
7871 <desc>Number of (logical) CPUs installed in the host system.</desc>
7872 </attribute>
7873
7874 <attribute name="processorOnlineCount" type="unsigned long" readonly="yes">
7875 <desc>Number of (logical) CPUs online in the host system.</desc>
7876 </attribute>
7877
7878 <attribute name="processorCoreCount" type="unsigned long" readonly="yes">
7879 <desc>Number of physical processor cores installed in the host system.</desc>
7880 </attribute>
7881
7882 <method name="getProcessorSpeed">
7883 <desc>Query the (approximate) maximum speed of a specified host CPU in
7884 Megahertz.
7885 </desc>
7886 <param name="cpuId" type="unsigned long" dir="in">
7887 <desc>
7888 Identifier of the CPU.
7889 </desc>
7890 </param>
7891 <param name="speed" type="unsigned long" dir="return">
7892 <desc>
7893 Speed value. 0 is returned if value is not known or @a cpuId is
7894 invalid.
7895 </desc>
7896 </param>
7897 </method>
7898
7899 <method name="getProcessorFeature">
7900 <desc>Query whether a CPU feature is supported or not.</desc>
7901 <param name="feature" type="ProcessorFeature" dir="in">
7902 <desc>
7903 CPU Feature identifier.
7904 </desc>
7905 </param>
7906 <param name="supported" type="boolean" dir="return">
7907 <desc>
7908 Feature is supported or not.
7909 </desc>
7910 </param>
7911 </method>
7912
7913 <method name="getProcessorDescription">
7914 <desc>Query the model string of a specified host CPU.
7915 </desc>
7916 <param name="cpuId" type="unsigned long" dir="in">
7917 <desc>
7918 Identifier of the CPU.
7919 <note>
7920 The current implementation might not necessarily return the
7921 description for this exact CPU.
7922 </note>
7923 </desc>
7924 </param>
7925 <param name="description" type="wstring" dir="return">
7926 <desc>
7927 Model string. An empty string is returned if value is not known or
7928 @a cpuId is invalid.
7929 </desc>
7930 </param>
7931 </method>
7932
7933 <method name="getProcessorCPUIDLeaf">
7934 <desc>
7935 Returns the CPU cpuid information for the specified leaf.
7936 </desc>
7937 <param name="cpuId" type="unsigned long" dir="in">
7938 <desc>
7939 Identifier of the CPU. The CPU most be online.
7940 <note>
7941 The current implementation might not necessarily return the
7942 description for this exact CPU.
7943 </note>
7944 </desc>
7945 </param>
7946 <param name="leaf" type="unsigned long" dir="in">
7947 <desc>
7948 CPUID leaf index (eax).
7949 </desc>
7950 </param>
7951 <param name="subLeaf" type="unsigned long" dir="in">
7952 <desc>
7953 CPUID leaf sub index (ecx). This currently only applies to cache
7954 information on Intel CPUs. Use 0 if retrieving values for
7955 <link to="IMachine::setCPUIDLeaf"/>.
7956 </desc>
7957 </param>
7958 <param name="valEax" type="unsigned long" dir="out">
7959 <desc>
7960 CPUID leaf value for register eax.
7961 </desc>
7962 </param>
7963 <param name="valEbx" type="unsigned long" dir="out">
7964 <desc>
7965 CPUID leaf value for register ebx.
7966 </desc>
7967 </param>
7968 <param name="valEcx" type="unsigned long" dir="out">
7969 <desc>
7970 CPUID leaf value for register ecx.
7971 </desc>
7972 </param>
7973 <param name="valEdx" type="unsigned long" dir="out">
7974 <desc>
7975 CPUID leaf value for register edx.
7976 </desc>
7977 </param>
7978 </method>
7979
7980 <attribute name="memorySize" type="unsigned long" readonly="yes">
7981 <desc>Amount of system memory in megabytes installed in the host system.</desc>
7982 </attribute>
7983
7984 <attribute name="memoryAvailable" type="unsigned long" readonly="yes">
7985 <desc>Available system memory in the host system.</desc>
7986 </attribute>
7987
7988 <attribute name="operatingSystem" type="wstring" readonly="yes">
7989 <desc>Name of the host system's operating system.</desc>
7990 </attribute>
7991
7992 <attribute name="OSVersion" type="wstring" readonly="yes">
7993 <desc>Host operating system's version string.</desc>
7994 </attribute>
7995
7996 <attribute name="UTCTime" type="long long" readonly="yes">
7997 <desc>Returns the current host time in milliseconds since 1970-01-01 UTC.</desc>
7998 </attribute>
7999
8000 <attribute name="acceleration3DAvailable" type="boolean" readonly="yes">
8001 <desc>Returns @c true when the host supports 3D hardware acceleration.</desc>
8002 </attribute>
8003
8004 <method name="createHostOnlyNetworkInterface">
8005 <desc>
8006 Creates a new adapter for Host Only Networking.
8007 <result name="E_INVALIDARG">
8008 Host network interface @a name already exists.
8009 </result>
8010 </desc>
8011 <param name="hostInterface" type="IHostNetworkInterface" dir="out">
8012 <desc>
8013 Created host interface object.
8014 </desc>
8015 </param>
8016 <param name="progress" type="IProgress" dir="return">
8017 <desc>
8018 Progress object to track the operation completion.
8019 </desc>
8020 </param>
8021 </method>
8022
8023 <method name="removeHostOnlyNetworkInterface">
8024 <desc>
8025 Removes the given Host Only Networking interface.
8026 <result name="VBOX_E_OBJECT_NOT_FOUND">
8027 No host network interface matching @a id found.
8028 </result>
8029 </desc>
8030 <param name="id" type="uuid" mod="string" dir="in">
8031 <desc>
8032 Adapter GUID.
8033 </desc>
8034 </param>
8035 <param name="progress" type="IProgress" dir="return">
8036 <desc>
8037 Progress object to track the operation completion.
8038 </desc>
8039 </param>
8040 </method>
8041
8042 <method name="createUSBDeviceFilter">
8043 <desc>
8044 Creates a new USB device filter. All attributes except
8045 the filter name are set to empty (any match),
8046 <i>active</i> is @c false (the filter is not active).
8047
8048 The created filter can be added to the list of filters using
8049 <link to="#insertUSBDeviceFilter"/>.
8050
8051 <see><link to="#USBDeviceFilters"/></see>
8052 </desc>
8053 <param name="name" type="wstring" dir="in">
8054 <desc>
8055 Filter name. See <link to="IUSBDeviceFilter::name"/> for more information.
8056 </desc>
8057 </param>
8058 <param name="filter" type="IHostUSBDeviceFilter" dir="return">
8059 <desc>Created filter object.</desc>
8060 </param>
8061 </method>
8062
8063 <method name="insertUSBDeviceFilter">
8064 <desc>
8065 Inserts the given USB device to the specified position
8066 in the list of filters.
8067
8068 Positions are numbered starting from @c 0. If the specified
8069 position is equal to or greater than the number of elements in
8070 the list, the filter is added at the end of the collection.
8071
8072 <note>
8073 Duplicates are not allowed, so an attempt to insert a
8074 filter already in the list is an error.
8075 </note>
8076 <note>
8077 If USB functionality is not available in the given edition of
8078 VirtualBox, this method will set the result code to @c E_NOTIMPL.
8079 </note>
8080
8081 <see><link to="#USBDeviceFilters"/></see>
8082
8083 <result name="VBOX_E_INVALID_OBJECT_STATE">
8084 USB device filter is not created within this VirtualBox instance.
8085 </result>
8086 <result name="E_INVALIDARG">
8087 USB device filter already in list.
8088 </result>
8089
8090 </desc>
8091 <param name="position" type="unsigned long" dir="in">
8092 <desc>Position to insert the filter to.</desc>
8093 </param>
8094 <param name="filter" type="IHostUSBDeviceFilter" dir="in">
8095 <desc>USB device filter to insert.</desc>
8096 </param>
8097 </method>
8098
8099 <method name="removeUSBDeviceFilter">
8100 <desc>
8101 Removes a USB device filter from the specified position in the
8102 list of filters.
8103
8104 Positions are numbered starting from @c 0. Specifying a
8105 position equal to or greater than the number of elements in
8106 the list will produce an error.
8107
8108 <note>
8109 If USB functionality is not available in the given edition of
8110 VirtualBox, this method will set the result code to @c E_NOTIMPL.
8111 </note>
8112
8113 <see><link to="#USBDeviceFilters"/></see>
8114
8115 <result name="E_INVALIDARG">
8116 USB device filter list empty or invalid @a position.
8117 </result>
8118
8119 </desc>
8120 <param name="position" type="unsigned long" dir="in">
8121 <desc>Position to remove the filter from.</desc>
8122 </param>
8123 </method>
8124
8125 <method name="findHostDVDDrive">
8126 <desc>
8127 Searches for a host DVD drive with the given @c name.
8128
8129 <result name="VBOX_E_OBJECT_NOT_FOUND">
8130 Given @c name does not correspond to any host drive.
8131 </result>
8132
8133 </desc>
8134 <param name="name" type="wstring" dir="in">
8135 <desc>Name of the host drive to search for</desc>
8136 </param>
8137 <param name="drive" type="IMedium" dir="return">
8138 <desc>Found host drive object</desc>
8139 </param>
8140 </method>
8141
8142 <method name="findHostFloppyDrive">
8143 <desc>
8144 Searches for a host floppy drive with the given @c name.
8145
8146 <result name="VBOX_E_OBJECT_NOT_FOUND">
8147 Given @c name does not correspond to any host floppy drive.
8148 </result>
8149
8150 </desc>
8151 <param name="name" type="wstring" dir="in">
8152 <desc>Name of the host floppy drive to search for</desc>
8153 </param>
8154 <param name="drive" type="IMedium" dir="return">
8155 <desc>Found host floppy drive object</desc>
8156 </param>
8157 </method>
8158
8159 <method name="findHostNetworkInterfaceByName">
8160 <desc>
8161 Searches through all host network interfaces for an interface with
8162 the given @c name.
8163 <note>
8164 The method returns an error if the given @c name does not
8165 correspond to any host network interface.
8166 </note>
8167 </desc>
8168 <param name="name" type="wstring" dir="in">
8169 <desc>Name of the host network interface to search for.</desc>
8170 </param>
8171 <param name="networkInterface" type="IHostNetworkInterface" dir="return">
8172 <desc>Found host network interface object.</desc>
8173 </param>
8174 </method>
8175 <method name="findHostNetworkInterfaceById">
8176 <desc>
8177 Searches through all host network interfaces for an interface with
8178 the given GUID.
8179 <note>
8180 The method returns an error if the given GUID does not
8181 correspond to any host network interface.
8182 </note>
8183 </desc>
8184 <param name="id" type="uuid" mod="string" dir="in">
8185 <desc>GUID of the host network interface to search for.</desc>
8186 </param>
8187 <param name="networkInterface" type="IHostNetworkInterface" dir="return">
8188 <desc>Found host network interface object.</desc>
8189 </param>
8190 </method>
8191 <method name="findHostNetworkInterfacesOfType">
8192 <desc>
8193 Searches through all host network interfaces and returns a list of interfaces of the specified type
8194 </desc>
8195 <param name="type" type="HostNetworkInterfaceType" dir="in">
8196 <desc>type of the host network interfaces to search for.</desc>
8197 </param>
8198 <param name="networkInterfaces" type="IHostNetworkInterface" safearray="yes" dir="return">
8199 <desc>Found host network interface objects.</desc>
8200 </param>
8201 </method>
8202
8203 <method name="findUSBDeviceById">
8204 <desc>
8205 Searches for a USB device with the given UUID.
8206
8207 <result name="VBOX_E_OBJECT_NOT_FOUND">
8208 Given @c id does not correspond to any USB device.
8209 </result>
8210
8211 <see><link to="IUSBDevice::id"/></see>
8212 </desc>
8213 <param name="id" type="uuid" mod="string" dir="in">
8214 <desc>UUID of the USB device to search for.</desc>
8215 </param>
8216 <param name="device" type="IHostUSBDevice" dir="return">
8217 <desc>Found USB device object.</desc>
8218 </param>
8219 </method>
8220
8221 <method name="findUSBDeviceByAddress">
8222 <desc>
8223 Searches for a USB device with the given host address.
8224
8225 <result name="VBOX_E_OBJECT_NOT_FOUND">
8226 Given @c name does not correspond to any USB device.
8227 </result>
8228
8229 <see><link to="IUSBDevice::address"/></see>
8230 </desc>
8231 <param name="name" type="wstring" dir="in">
8232 <desc>
8233 Address of the USB device (as assigned by the host) to
8234 search for.
8235 </desc>
8236 </param>
8237 <param name="device" type="IHostUSBDevice" dir="return">
8238 <desc>Found USB device object.</desc>
8239 </param>
8240 </method>
8241
8242 <method name="generateMACAddress">
8243 <desc>
8244 Generates a valid Ethernet MAC address, 12 hexadecimal characters.
8245 </desc>
8246 <param name="address" type="wstring" dir="return">
8247 <desc>New Ethernet MAC address.</desc>
8248 </param>
8249 </method>
8250
8251 </interface>
8252
8253 <!--
8254 // ISystemProperties
8255 /////////////////////////////////////////////////////////////////////////
8256 -->
8257
8258 <interface
8259 name="ISystemProperties"
8260 extends="$unknown"
8261 uuid="413ea94c-efd9-491e-81fc-5df0c4d864bb"
8262 wsmap="managed"
8263 >
8264 <desc>
8265 The ISystemProperties interface represents global properties of the given
8266 VirtualBox installation.
8267
8268 These properties define limits and default values for various attributes
8269 and parameters. Most of the properties are read-only, but some can be
8270 changed by a user.
8271 </desc>
8272
8273 <attribute name="minGuestRAM" type="unsigned long" readonly="yes">
8274 <desc>Minimum guest system memory in Megabytes.</desc>
8275 </attribute>
8276
8277 <attribute name="maxGuestRAM" type="unsigned long" readonly="yes">
8278 <desc>Maximum guest system memory in Megabytes.</desc>
8279 </attribute>
8280
8281 <attribute name="minGuestVRAM" type="unsigned long" readonly="yes">
8282 <desc>Minimum guest video memory in Megabytes.</desc>
8283 </attribute>
8284
8285 <attribute name="maxGuestVRAM" type="unsigned long" readonly="yes">
8286 <desc>Maximum guest video memory in Megabytes.</desc>
8287 </attribute>
8288
8289 <attribute name="minGuestCPUCount" type="unsigned long" readonly="yes">
8290 <desc>Minimum CPU count.</desc>
8291 </attribute>
8292
8293 <attribute name="maxGuestCPUCount" type="unsigned long" readonly="yes">
8294 <desc>Maximum CPU count.</desc>
8295 </attribute>
8296
8297 <attribute name="maxGuestMonitors" type="unsigned long" readonly="yes">
8298 <desc>Maximum of monitors which could be connected.</desc>
8299 </attribute>
8300
8301 <attribute name="infoVDSize" type="long long" readonly="yes">
8302 <desc>Maximum size of a virtual disk image in bytes. Informational value,
8303 does not reflect the limits of any virtual disk image format.</desc>
8304 </attribute>
8305
8306 <attribute name="serialPortCount" type="unsigned long" readonly="yes">
8307 <desc>
8308 Maximum number of serial ports associated with every
8309 <link to="IMachine"/> instance.
8310 </desc>
8311 </attribute>
8312
8313 <attribute name="parallelPortCount" type="unsigned long" readonly="yes">
8314 <desc>
8315 Maximum number of parallel ports associated with every
8316 <link to="IMachine"/> instance.
8317 </desc>
8318 </attribute>
8319
8320 <attribute name="maxBootPosition" type="unsigned long" readonly="yes">
8321 <desc>
8322 Maximum device position in the boot order. This value corresponds
8323 to the total number of devices a machine can boot from, to make it
8324 possible to include all possible devices to the boot list.
8325 <see><link to="IMachine::setBootOrder"/></see>
8326 </desc>
8327 </attribute>
8328
8329 <attribute name="defaultMachineFolder" type="wstring">
8330 <desc>
8331 Full path to the default directory used to create new or open
8332 existing machines when a machine settings file name contains no
8333 path.
8334
8335 Starting with VirtualBox 4.0, by default, this attribute contains
8336 the full path of folder named "VirtualBox VMs" in the user's
8337 home directory, which depends on the host platform.
8338
8339 When setting this attribute, a full path must be specified.
8340 Setting this property to @c null or an empty string or the
8341 special value "Machines" (for compatibility reasons) will restore
8342 that default value.
8343
8344 If the folder specified herein does not exist, it will be created
8345 automatically as needed.
8346
8347 <see>
8348 <link to="IVirtualBox::createMachine"/>,
8349 <link to="IVirtualBox::openMachine"/>
8350 </see>
8351 </desc>
8352 </attribute>
8353
8354 <attribute name="mediumFormats" type="IMediumFormat" safearray="yes" readonly="yes">
8355 <desc>
8356 List of all medium storage formats supported by this VirtualBox
8357 installation.
8358
8359 Keep in mind that the medium format identifier
8360 (<link to="IMediumFormat::id"/>) used in other API calls like
8361 <link to="IVirtualBox::createHardDisk"/> to refer to a particular
8362 medium format is a case-insensitive string. This means that, for
8363 example, all of the following strings:
8364 <pre>
8365 "VDI"
8366 "vdi"
8367 "VdI"</pre>
8368 refer to the same medium format.
8369
8370 Note that the virtual medium framework is backend-based, therefore
8371 the list of supported formats depends on what backends are currently
8372 installed.
8373
8374 <see><link to="IMediumFormat"/></see>
8375 </desc>
8376 </attribute>
8377
8378 <attribute name="defaultHardDiskFormat" type="wstring">
8379 <desc>
8380 Identifier of the default medium format used by VirtualBox.
8381
8382 The medium format set by this attribute is used by VirtualBox
8383 when the medium format was not specified explicitly. One example is
8384 <link to="IVirtualBox::createHardDisk"/> with the empty
8385 format argument. A more complex example is implicit creation of
8386 differencing media when taking a snapshot of a virtual machine:
8387 this operation will try to use a format of the parent medium first
8388 and if this format does not support differencing media the default
8389 format specified by this argument will be used.
8390
8391 The list of supported medium formats may be obtained by the
8392 <link to="#mediumFormats"/> call. Note that the default medium
8393 format must have a capability to create differencing media;
8394 otherwise operations that create media implicitly may fail
8395 unexpectedly.
8396
8397 The initial value of this property is <tt>"VDI"</tt> in the current
8398 version of the VirtualBox product, but may change in the future.
8399
8400 <note>
8401 Setting this property to @c null or empty string will restore the
8402 initial value.
8403 </note>
8404
8405 <see>
8406 <link to="#mediumFormats"/>,
8407 <link to="IMediumFormat::id"/>,
8408 <link to="IVirtualBox::createHardDisk"/>
8409 </see>
8410 </desc>
8411 </attribute>
8412
8413 <attribute name="freeDiskSpaceWarning" type="long long">
8414 <desc>Issue a warning if the free disk space is below (or in some disk
8415 intensive operation is expected to go below) the given size in
8416 bytes.</desc>
8417 </attribute>
8418
8419 <attribute name="freeDiskSpacePercentWarning" type="unsigned long">
8420 <desc>Issue a warning if the free disk space is below (or in some disk
8421 intensive operation is expected to go below) the given percentage.</desc>
8422 </attribute>
8423
8424 <attribute name="freeDiskSpaceError" type="long long">
8425 <desc>Issue an error if the free disk space is below (or in some disk
8426 intensive operation is expected to go below) the given size in
8427 bytes.</desc>
8428 </attribute>
8429
8430 <attribute name="freeDiskSpacePercentError" type="unsigned long">
8431 <desc>Issue an error if the free disk space is below (or in some disk
8432 intensive operation is expected to go below) the given percentage.</desc>
8433 </attribute>
8434
8435 <attribute name="VRDEAuthLibrary" type="wstring">
8436 <desc>
8437 Library that provides authentication for Remote Desktop clients. The library
8438 is used if a virtual machine's authentication type is set to "external"
8439 in the VM RemoteDisplay configuration.
8440
8441 The system library extension (".DLL" or ".so") must be omitted.
8442 A full path can be specified; if not, then the library must reside on the
8443 system's default library path.
8444
8445 The default value of this property is <tt>"VBoxAuth"</tt>. There is a library
8446 of that name in one of the default VirtualBox library directories.
8447
8448 For details about VirtualBox authentication libraries and how to implement
8449 them, please refer to the VirtualBox manual.
8450
8451 <note>
8452 Setting this property to @c null or empty string will restore the
8453 initial value.
8454 </note>
8455 </desc>
8456 </attribute>
8457
8458 <attribute name="webServiceAuthLibrary" type="wstring">
8459 <desc>
8460 Library that provides authentication for webservice clients. The library
8461 is used if a virtual machine's authentication type is set to "external"
8462 in the VM RemoteDisplay configuration and will be called from
8463 within the <link to="IWebsessionManager::logon" /> implementation.
8464
8465 As opposed to <link to="ISystemProperties::VRDEAuthLibrary" />,
8466 there is no per-VM setting for this, as the webservice is a global
8467 resource (if it is running). Only for this setting (for the webservice),
8468 setting this value to a literal <tt>"null"</tt> string disables authentication,
8469 meaning that <link to="IWebsessionManager::logon" /> will always succeed,
8470 no matter what user name and password are supplied.
8471
8472 The initial value of this property is <tt>"VBoxAuth"</tt>,
8473 meaning that the webservice will use the same authentication
8474 library that is used by default for VRDE (again, see
8475 <link to="ISystemProperties::VRDEAuthLibrary" />).
8476 The format and calling convention of authentication libraries
8477 is the same for the webservice as it is for VRDE.
8478
8479 <note>
8480 Setting this property to @c null or empty string will restore the
8481 initial value.
8482 </note>
8483 </desc>
8484 </attribute>
8485
8486 <attribute name="defaultVRDEExtPack" type="wstring">
8487 <desc>
8488 The name of the extension pack providing the default VRDE.
8489
8490 This attribute is for choosing between multiple extension packs
8491 providing VRDE. If only one is installed, it will automatically be the
8492 default one. The attribute value can be empty if no VRDE extension
8493 pack is installed.
8494
8495 For details about VirtualBox Remote Desktop Extension and how to
8496 implement one, please refer to the VirtualBox SDK.
8497 </desc>
8498 </attribute>
8499
8500 <attribute name="logHistoryCount" type="unsigned long">
8501 <desc>
8502 This value specifies how many old release log files are kept.
8503 </desc>
8504 </attribute>
8505
8506 <attribute name="defaultAudioDriver" type="AudioDriverType" readonly="yes">
8507 <desc>This value hold the default audio driver for the current
8508 system.</desc>
8509 </attribute>
8510
8511 <attribute name="autostartDatabasePath" type="wstring">
8512 <desc>
8513 The path to the autostart database. Depending on the host this might
8514 be a filesystem path or something else.
8515 </desc>
8516 </attribute>
8517
8518 <attribute name="defaultAdditionsISO" type="wstring">
8519 <desc>
8520 The path to the default Guest Additions ISO image. Can be empty if
8521 the location is not known in this installation.
8522 </desc>
8523 </attribute>
8524
8525 <attribute name="defaultFrontend" type="wstring">
8526 <desc>
8527 Selects which VM frontend should be used by default when launching
8528 a VM through the <link to="IMachine::launchVMProcess" /> method.
8529 Empty or @c null strings do not define a particular default, it is up
8530 to <link to="IMachine::launchVMProcess" /> to select one. See the
8531 description of <link to="IMachine::launchVMProcess" /> for the valid
8532 frontend types.
8533
8534 This global setting is overridden by the per-VM attribute
8535 <link to="IMachine::defaultFrontend" /> or a frontend type
8536 passed to <link to="IMachine::launchVMProcess" />.
8537 </desc>
8538 </attribute>
8539
8540 <method name="getMaxNetworkAdapters">
8541 <desc>
8542 Maximum total number of network adapters associated with every
8543 <link to="IMachine"/> instance.
8544 </desc>
8545
8546 <param name="chipset" type="ChipsetType" dir="in">
8547 <desc>The chipset type to get the value for.</desc>
8548 </param>
8549
8550
8551 <param name="maxNetworkAdapters" type="unsigned long" dir="return">
8552 <desc>The maximum total number of network adapters allowed.</desc>
8553 </param>
8554
8555 </method>
8556
8557 <method name="getMaxNetworkAdaptersOfType">
8558 <desc>
8559 Maximum number of network adapters of a given attachment type,
8560 associated with every <link to="IMachine"/> instance.
8561 </desc>
8562
8563 <param name="chipset" type="ChipsetType" dir="in">
8564 <desc>The chipset type to get the value for.</desc>
8565 </param>
8566
8567 <param name="type" type="NetworkAttachmentType" dir="in">
8568 <desc>Type of attachment.</desc>
8569 </param>
8570
8571 <param name="maxNetworkAdapters" type="unsigned long" dir="return">
8572 <desc>The maximum number of network adapters allowed for
8573 particular chipset and attachment type.</desc>
8574 </param>
8575
8576 </method>
8577
8578
8579 <method name="getMaxDevicesPerPortForStorageBus">
8580 <desc>Returns the maximum number of devices which can be attached to a port
8581 for the given storage bus.</desc>
8582
8583 <param name="bus" type="StorageBus" dir="in">
8584 <desc>The storage bus type to get the value for.</desc>
8585 </param>
8586
8587 <param name="maxDevicesPerPort" type="unsigned long" dir="return">
8588 <desc>The maximum number of devices which can be attached to the port for the given
8589 storage bus.</desc>
8590 </param>
8591 </method>
8592
8593 <method name="getMinPortCountForStorageBus">
8594 <desc>Returns the minimum number of ports the given storage bus supports.</desc>
8595
8596 <param name="bus" type="StorageBus" dir="in">
8597 <desc>The storage bus type to get the value for.</desc>
8598 </param>
8599
8600 <param name="minPortCount" type="unsigned long" dir="return">
8601 <desc>The minimum number of ports for the given storage bus.</desc>
8602 </param>
8603 </method>
8604
8605 <method name="getMaxPortCountForStorageBus">
8606 <desc>Returns the maximum number of ports the given storage bus supports.</desc>
8607
8608 <param name="bus" type="StorageBus" dir="in">
8609 <desc>The storage bus type to get the value for.</desc>
8610 </param>
8611
8612 <param name="maxPortCount" type="unsigned long" dir="return">
8613 <desc>The maximum number of ports for the given storage bus.</desc>
8614 </param>
8615 </method>
8616
8617 <method name="getMaxInstancesOfStorageBus">
8618 <desc>Returns the maximum number of storage bus instances which
8619 can be configured for each VM. This corresponds to the number of
8620 storage controllers one can have. Value may depend on chipset type
8621 used.</desc>
8622
8623 <param name="chipset" type="ChipsetType" dir="in">
8624 <desc>The chipset type to get the value for.</desc>
8625 </param>
8626
8627 <param name="bus" type="StorageBus" dir="in">
8628 <desc>The storage bus type to get the value for.</desc>
8629 </param>
8630
8631 <param name="maxInstances" type="unsigned long" dir="return">
8632 <desc>The maximum number of instances for the given storage bus.</desc>
8633 </param>
8634 </method>
8635
8636 <method name="getDeviceTypesForStorageBus">
8637 <desc>Returns list of all the supported device types
8638 (<link to="DeviceType"/>) for the given type of storage
8639 bus.</desc>
8640
8641 <param name="bus" type="StorageBus" dir="in">
8642 <desc>The storage bus type to get the value for.</desc>
8643 </param>
8644
8645 <param name="deviceTypes" type="DeviceType" safearray="yes" dir="return">
8646 <desc>The list of all supported device types for the given storage bus.</desc>
8647 </param>
8648 </method>
8649
8650 <method name="getDefaultIoCacheSettingForStorageController">
8651 <desc>Returns the default I/O cache setting for the
8652 given storage controller</desc>
8653
8654 <param name="controllerType" type="StorageControllerType" dir="in">
8655 <desc>The storage controller to the setting for.</desc>
8656 </param>
8657
8658 <param name="enabled" type="boolean" dir="return">
8659 <desc>Returned flag indicating the default value</desc>
8660 </param>
8661 </method>
8662 </interface>
8663
8664 <!--
8665 // IGuest
8666 /////////////////////////////////////////////////////////////////////////
8667 -->
8668
8669 <interface
8670 name="IGuestOSType" extends="$unknown"
8671 uuid="6d968f9a-858b-4c50-bf17-241f069e94c2"
8672 wsmap="struct"
8673 >
8674 <desc>
8675 </desc>
8676
8677 <attribute name="familyId" type="wstring" readonly="yes">
8678 <desc>Guest OS family identifier string.</desc>
8679 </attribute>
8680
8681 <attribute name="familyDescription" type="wstring" readonly="yes">
8682 <desc>Human readable description of the guest OS family.</desc>
8683 </attribute>
8684
8685 <attribute name="id" type="wstring" readonly="yes">
8686 <desc>Guest OS identifier string.</desc>
8687 </attribute>
8688
8689 <attribute name="description" type="wstring" readonly="yes">
8690 <desc>Human readable description of the guest OS.</desc>
8691 </attribute>
8692
8693 <attribute name="is64Bit" type="boolean" readonly="yes">
8694 <desc>Returns @c true if the given OS is 64-bit</desc>
8695 </attribute>
8696
8697 <attribute name="recommendedIOAPIC" type="boolean" readonly="yes">
8698 <desc>Returns @c true if IO APIC recommended for this OS type.</desc>
8699 </attribute>
8700
8701 <attribute name="recommendedVirtEx" type="boolean" readonly="yes">
8702 <desc>Returns @c true if VT-x or AMD-V recommended for this OS type.</desc>
8703 </attribute>
8704
8705 <attribute name="recommendedRAM" type="unsigned long" readonly="yes">
8706 <desc>Recommended RAM size in Megabytes.</desc>
8707 </attribute>
8708
8709 <attribute name="recommendedVRAM" type="unsigned long" readonly="yes">
8710 <desc>Recommended video RAM size in Megabytes.</desc>
8711 </attribute>
8712
8713 <attribute name="recommended2DVideoAcceleration" type="boolean" readonly="yes">
8714 <desc>Returns @c true if 2D video acceleration is recommended for this OS type.</desc>
8715 </attribute>
8716
8717 <attribute name="recommended3DAcceleration" type="boolean" readonly="yes">
8718 <desc>Returns @c true if 3D acceleration is recommended for this OS type.</desc>
8719 </attribute>
8720
8721 <attribute name="recommendedHDD" type="long long" readonly="yes">
8722 <desc>Recommended hard disk size in bytes.</desc>
8723 </attribute>
8724
8725 <attribute name="adapterType" type="NetworkAdapterType" readonly="yes">
8726 <desc>Returns recommended network adapter for this OS type.</desc>
8727 </attribute>
8728
8729 <attribute name="recommendedPAE" type="boolean" readonly="yes">
8730 <desc>Returns @c true if using PAE is recommended for this OS type.</desc>
8731 </attribute>
8732
8733 <attribute name="recommendedDVDStorageController" type="StorageControllerType" readonly="yes">
8734 <desc>Recommended storage controller type for DVD/CD drives.</desc>
8735 </attribute>
8736
8737 <attribute name="recommendedDVDStorageBus" type="StorageBus" readonly="yes">
8738 <desc>Recommended storage bus type for DVD/CD drives.</desc>
8739 </attribute>
8740
8741 <attribute name="recommendedHDStorageController" type="StorageControllerType" readonly="yes">
8742 <desc>Recommended storage controller type for HD drives.</desc>
8743 </attribute>
8744
8745 <attribute name="recommendedHDStorageBus" type="StorageBus" readonly="yes">
8746 <desc>Recommended storage bus type for HD drives.</desc>
8747 </attribute>
8748
8749 <attribute name="recommendedFirmware" type="FirmwareType" readonly="yes">
8750 <desc>Recommended firmware type.</desc>
8751 </attribute>
8752
8753 <attribute name="recommendedUSBHID" type="boolean" readonly="yes">
8754 <desc>Returns @c true if using USB Human Interface Devices, such as keyboard and mouse recommended.</desc>
8755 </attribute>
8756
8757 <attribute name="recommendedHPET" type="boolean" readonly="yes">
8758 <desc>Returns @c true if using HPET is recommended for this OS type.</desc>
8759 </attribute>
8760
8761 <attribute name="recommendedUSBTablet" type="boolean" readonly="yes">
8762 <desc>Returns @c true if using a USB Tablet is recommended.</desc>
8763 </attribute>
8764
8765 <attribute name="recommendedRTCUseUTC" type="boolean" readonly="yes">
8766 <desc>Returns @c true if the RTC of this VM should be set to UTC</desc>
8767 </attribute>
8768
8769 <attribute name="recommendedChipset" type="ChipsetType" readonly="yes">
8770 <desc>Recommended chipset type.</desc>
8771 </attribute>
8772
8773 <attribute name="recommendedAudioController" type="AudioControllerType" readonly="yes">
8774 <desc>Recommended audio type.</desc>
8775 </attribute>
8776
8777 <attribute name="recommendedFloppy" type="boolean" readonly="yes">
8778 <desc>Returns @c true a floppy drive is recommended for this OS type.</desc>
8779 </attribute>
8780
8781 <attribute name="recommendedUSB" type="boolean" readonly="yes">
8782 <desc>Returns @c true a USB controller is recommended for this OS type.</desc>
8783 </attribute>
8784
8785 </interface>
8786
8787 <enum
8788 name="AdditionsFacilityType"
8789 uuid="98f7f957-89fb-49b6-a3b1-31e3285eb1d8"
8790 >
8791 <desc>
8792 Guest Additions facility IDs.
8793 </desc>
8794
8795 <const name="None" value="0">
8796 <desc>No/invalid facility.</desc>
8797 </const>
8798 <const name="VBoxGuestDriver" value="20">
8799 <desc>VirtualBox base driver (VBoxGuest).</desc>
8800 </const>
8801 <const name="AutoLogon" value="90">
8802 <desc>Auto-logon modules (VBoxGINA, VBoxCredProv, pam_vbox).</desc>
8803 </const>
8804 <const name="VBoxService" value="100">
8805 <desc>VirtualBox system service (VBoxService).</desc>
8806 </const>
8807 <const name="VBoxTrayClient" value="101">
8808 <desc>VirtualBox desktop integration (VBoxTray on Windows, VBoxClient on non-Windows).</desc>
8809 </const>
8810 <const name="Seamless" value="1000">
8811 <desc>Seamless guest desktop integration.</desc>
8812 </const>
8813 <const name="Graphics" value="1100">
8814 <desc>Guest graphics mode. If not enabled, seamless rendering will not work, resize hints
8815 are not immediately acted on and guest display resizes are probably not initiated by
8816 the guest additions.
8817 </desc>
8818 </const>
8819 <const name="All" value="2147483646">
8820 <desc>All facilities selected.</desc>
8821 </const>
8822 </enum>
8823
8824 <enum
8825 name="AdditionsFacilityClass"
8826 uuid="446451b2-c88d-4e5d-84c9-91bc7f533f5f"
8827 >
8828 <desc>
8829 Guest Additions facility classes.
8830 </desc>
8831
8832 <const name="None" value="0">
8833 <desc>No/invalid class.</desc>
8834 </const>
8835 <const name="Driver" value="10">
8836 <desc>Driver.</desc>
8837 </const>
8838 <const name="Service" value="30">
8839 <desc>System service.</desc>
8840 </const>
8841 <const name="Program" value="50">
8842 <desc>Program.</desc>
8843 </const>
8844 <const name="Feature" value="100">
8845 <desc>Feature.</desc>
8846 </const>
8847 <const name="ThirdParty" value="999">
8848 <desc>Third party.</desc>
8849 </const>
8850 <const name="All" value="2147483646">
8851 <desc>All facility classes selected.</desc>
8852 </const>
8853 </enum>
8854
8855 <enum
8856 name="AdditionsFacilityStatus"
8857 uuid="ce06f9e1-394e-4fe9-9368-5a88c567dbde"
8858 >
8859 <desc>
8860 Guest Additions facility states.
8861 </desc>
8862
8863 <const name="Inactive" value="0">
8864 <desc>Facility is not active.</desc>
8865 </const>
8866 <const name="Paused" value="1">
8867 <desc>Facility has been paused.</desc>
8868 </const>
8869 <const name="PreInit" value="20">
8870 <desc>Facility is preparing to initialize.</desc>
8871 </const>
8872 <const name="Init" value="30">
8873 <desc>Facility is initializing.</desc>
8874 </const>
8875 <const name="Active" value="50">
8876 <desc>Facility is up and running.</desc>
8877 </const>
8878 <const name="Terminating" value="100">
8879 <desc>Facility is shutting down.</desc>
8880 </const>
8881 <const name="Terminated" value="101">
8882 <desc>Facility successfully shut down.</desc>
8883 </const>
8884 <const name="Failed" value="800">
8885 <desc>Facility failed to start.</desc>
8886 </const>
8887 <const name="Unknown" value="999">
8888 <desc>Facility status is unknown.</desc>
8889 </const>
8890 </enum>
8891
8892 <interface
8893 name="IAdditionsFacility" extends="$unknown"
8894 uuid="54992946-6af1-4e49-98ec-58b558b7291e"
8895 wsmap="struct"
8896 >
8897 <desc>
8898 Structure representing a Guest Additions facility.
8899 </desc>
8900
8901 <attribute name="classType" type="AdditionsFacilityClass" readonly="yes">
8902 <desc>The class this facility is part of.</desc>
8903 </attribute>
8904
8905 <attribute name="lastUpdated" type="long long" readonly="yes">
8906 <desc>
8907 Time stamp of the last status update,
8908 in milliseconds since 1970-01-01 UTC.
8909 </desc>
8910 </attribute>
8911
8912 <attribute name="name" type="wstring" readonly="yes">
8913 <desc>The facility's friendly name.</desc>
8914 </attribute>
8915
8916 <attribute name="status" type="AdditionsFacilityStatus" readonly="yes">
8917 <desc>The current status.</desc>
8918 </attribute>
8919
8920 <attribute name="type" type="AdditionsFacilityType" readonly="yes">
8921 <desc>The facility's type ID.</desc>
8922 </attribute>
8923 </interface>
8924
8925 <enum
8926 name="AdditionsRunLevelType"
8927 uuid="a25417ee-a9dd-4f5b-b0dc-377860087754"
8928 >
8929 <desc>
8930 Guest Additions run level type.
8931 </desc>
8932
8933 <const name="None" value="0">
8934 <desc>Guest Additions are not loaded.</desc>
8935 </const>
8936 <const name="System" value="1">
8937 <desc>Guest drivers are loaded.</desc>
8938 </const>
8939 <const name="Userland" value="2">
8940 <desc>Common components (such as application services) are loaded.</desc>
8941 </const>
8942 <const name="Desktop" value="3">
8943 <desc>Per-user desktop components are loaded.</desc>
8944 </const>
8945 </enum>
8946
8947 <enum
8948 name="AdditionsUpdateFlag"
8949 uuid="726a818d-18d6-4389-94e8-3e9e6826171a"
8950 >
8951 <desc>
8952 Guest Additions update flags.
8953 </desc>
8954
8955 <const name="None" value="0">
8956 <desc>No flag set.</desc>
8957 </const>
8958 <const name="WaitForUpdateStartOnly" value="1">
8959 <desc>Starts the regular updating process and waits until the
8960 actual Guest Additions update inside the guest was started.
8961 This can be necessary due to needed interaction with the guest
8962 OS during the installation phase.</desc>
8963 </const>
8964 </enum>
8965
8966 <enum
8967 name="GuestSessionStatus"
8968 uuid="ac2669da-4624-44f2-85b5-0b0bfb8d8673"
8969 >
8970 <desc>
8971 Guest session status. This enumeration represents possible values of
8972 the <link to="IGuestSession::status"/> attribute.
8973 </desc>
8974 <const name="Undefined" value="0">
8975 <desc>Guest session is in an undefined state.</desc>
8976 </const>
8977 <const name="Starting" value="10">
8978 <desc>Guest session is being started.</desc>
8979 </const>
8980 <const name="Started" value="100">
8981 <desc>Guest session has been started.</desc>
8982 </const>
8983 <const name="Terminating" value="480">
8984 <desc>Guest session is being terminated.</desc>
8985 </const>
8986 <const name="Terminated" value="500">
8987 <desc>Guest session terminated normally.</desc>
8988 </const>
8989 <const name="TimedOutKilled" value="512">
8990 <desc>Guest session timed out and was killed.</desc>
8991 </const>
8992 <const name="TimedOutAbnormally" value="513">
8993 <desc>Guest session timed out and was not killed successfully.</desc>
8994 </const>
8995 <const name="Down" value="600">
8996 <desc>Service/OS is stopping, guest session was killed.</desc>
8997 </const>
8998 <const name="Error" value="800">
8999 <desc>Something went wrong.</desc>
9000 </const>
9001 </enum>
9002
9003 <enum
9004 name="GuestSessionWaitForFlag"
9005 uuid="bb7a372a-f635-4e11-a81a-e707f3a52ef5"
9006 >
9007 <desc>
9008 Guest session waiting flags. Multiple flags can be combined.
9009 </desc>
9010
9011 <const name="None" value="0">
9012 <desc>No waiting flags specified. Do not use this.</desc>
9013 </const>
9014 <const name="Start" value="1">
9015 <desc>Wait for the guest session being started.</desc>
9016 </const>
9017 <const name="Terminate" value="2">
9018 <desc>Wait for the guest session being terminated.</desc>
9019 </const>
9020 <const name="Status" value="4">
9021 <desc>Wait for the next guest session status change.</desc>
9022 </const>
9023 </enum>
9024
9025 <enum
9026 name="GuestSessionWaitResult"
9027 uuid="c0f6a8a5-fdb6-42bf-a582-56c6f82bcd2d"
9028 >
9029 <desc>
9030 Guest session waiting results. Depending on the session waiting flags (for
9031 more information see <link to="GuestSessionWaitForFlag"/>) the waiting result
9032 can vary based on the session's current status.
9033
9034 To wait for a guest session to terminate after it has been
9035 created by <link to="IGuest::createSession"/> one would specify
9036 GuestSessionWaitResult_Terminate.
9037 </desc>
9038
9039 <const name="None" value="0">
9040 <desc>No result was returned. Not being used.</desc>
9041 </const>
9042 <const name="Start" value="1">
9043 <desc>The guest session has been started.</desc>
9044 </const>
9045 <const name="Terminate" value="2">
9046 <desc>The guest session has been terminated.</desc>
9047 </const>
9048 <const name="Status" value="3">
9049 <desc>
9050 The guest session has changed its status. The status then can
9051 be retrieved via <link to="IGuestSession::status"/>.
9052 </desc>
9053 </const>
9054 <const name="Error" value="4">
9055 <desc>Error while executing the process.</desc>
9056 </const>
9057 <const name="Timeout" value="5">
9058 <desc>
9059 The waiting operation timed out. This also will happen
9060 when no event has been occured matching the
9061 current waiting flags in a <link to="IGuestSession::waitFor"/> call.
9062 </desc>
9063 </const>
9064 <const name="WaitFlagNotSupported" value="6">
9065 <desc>
9066 A waiting flag specified in the <link to="IGuestSession::waitFor"/> call
9067 is not supported by the guest.
9068 </desc>
9069 </const>
9070 </enum>
9071
9072 <enum
9073 name="FileSeekType"
9074 uuid="1b73f4f3-3515-4073-a506-76878d9e2541"
9075 >
9076 <desc>
9077 File seeking types.
9078 </desc>
9079
9080 <const name="Set" value="0">
9081 <desc>Seek from the start of the file.</desc>
9082 </const>
9083 <const name="Current" value="1">
9084 <desc>Seek from the current file position.</desc>
9085 </const>
9086 </enum>
9087
9088 <enum
9089 name="ProcessInputFlag"
9090 uuid="5d38c1dd-2604-4ddf-92e5-0c0cdd3bdbd5"
9091 >
9092 <desc>
9093 Guest process input flags.
9094 </desc>
9095 <const name="None" value="0">
9096 <desc>No flag set.</desc>
9097 </const>
9098 <const name="EndOfFile" value="1">
9099 <desc>End of file (input) reached.</desc>
9100 </const>
9101 </enum>
9102
9103 <enum
9104 name="ProcessOutputFlag"
9105 uuid="9979e85a-52bb-40b7-870c-57115e27e0f1"
9106 >
9107 <desc>
9108 Guest process output flags for specifying which
9109 type of output to retrieve.
9110 </desc>
9111 <const name="None" value="0">
9112 <desc>No flags set. Get output from stdout.</desc>
9113 </const>
9114 <const name="StdErr" value="1">
9115 <desc>Get output from stderr.</desc>
9116 </const>
9117 </enum>
9118
9119 <enum
9120 name="ProcessWaitForFlag"
9121 uuid="23b550c7-78e1-437e-98f0-65fd9757bcd2"
9122 >
9123 <desc>
9124 Process waiting flags. Multiple flags can be combined.
9125 </desc>
9126
9127 <const name="None" value="0">
9128 <desc>No waiting flags specified. Do not use this.</desc>
9129 </const>
9130 <const name="Start" value="1">
9131 <desc>Wait for the process being started.</desc>
9132 </const>
9133 <const name="Terminate" value="2">
9134 <desc>Wait for the process being terminated.</desc>
9135 </const>
9136 <const name="StdIn" value="4">
9137 <desc>Wait for stdin becoming available.</desc>
9138 </const>
9139 <const name="StdOut" value="8">
9140 <desc>Wait for data becoming available on stdout.</desc>
9141 </const>
9142 <const name="StdErr" value="16">
9143 <desc>Wait for data becoming available on stderr.</desc>
9144 </const>
9145 </enum>
9146
9147 <enum
9148 name="ProcessWaitResult"
9149 uuid="40719cbe-f192-4fe9-a231-6697b3c8e2b4"
9150 >
9151 <desc>
9152 Process waiting results. Depending on the process waiting flags (for
9153 more information see <link to="ProcessWaitForFlag"/>) the waiting result
9154 can vary based on the processes' current status.
9155
9156 To wait for a guest process to terminate after it has been
9157 created by <link to="IGuestSession::processCreate"/> or <link to="IGuestSession::processCreateEx"/>
9158 one would specify ProcessWaitResult_Terminate.
9159
9160 If a guest process has been started with ProcessCreateFlag_WaitForStdOut
9161 a client can wait with ProcessWaitResult_StdOut for new data to arrive on
9162 stdout; same applies for ProcessCreateFlag_WaitForStdErr and
9163 ProcessWaitResult_StdErr.
9164 </desc>
9165
9166 <const name="None" value="0">
9167 <desc>No result was returned. Not being used.</desc>
9168 </const>
9169 <const name="Start" value="1">
9170 <desc>The process has been started.</desc>
9171 </const>
9172 <const name="Terminate" value="2">
9173 <desc>The process has been terminated.</desc>
9174 </const>
9175 <const name="Status" value="3">
9176 <desc>
9177 The process has changed its status. The status then can
9178 be retrieved via <link to="IProcess::status"/>.
9179 </desc>
9180 </const>
9181 <const name="Error" value="4">
9182 <desc>Error while executing the process.</desc>
9183 </const>
9184 <const name="Timeout" value="5">
9185 <desc>
9186 The waiting operation timed out. This also will happen
9187 when no event has been occured matching the
9188 current waiting flags in a <link to="IProcess::waitFor"/> call.
9189 </desc>
9190 </const>
9191 <const name="StdIn" value="6">
9192 <desc>
9193 The process signalled that stdin became available for writing
9194 and that the process awaits input now.</desc>
9195 </const>
9196 <const name="StdOut" value="7">
9197 <desc>Data on stdout became available for reading.</desc>
9198 </const>
9199 <const name="StdErr" value="8">
9200 <desc>Data on stderr became available for reading.</desc>
9201 </const>
9202 <const name="WaitFlagNotSupported" value="9">
9203 <desc>
9204 A waiting flag specified in the <link to="IProcess::waitFor"/> call
9205 is not supported by the guest.
9206 </desc>
9207 </const>
9208 </enum>
9209
9210 <enum
9211 name="CopyFileFlag"
9212 uuid="23f79fdf-738a-493d-b80b-42d607c9b916"
9213 >
9214 <desc>
9215 File copying flags.
9216 </desc>
9217 <const name="None" value="0">
9218 <desc>No flag set.</desc>
9219 </const>
9220 <const name="Recursive" value="1">
9221 <desc>Copy directories recursively.</desc>
9222 </const>
9223 <const name="Update" value="2">
9224 <desc>Only copy when the source file is newer than the destination file or when the destination file is missing.</desc>
9225 </const>
9226 <const name="FollowLinks" value="4">
9227 <desc>Follow symbolic links.</desc>
9228 </const>
9229 </enum>
9230
9231 <enum
9232 name="DirectoryCreateFlag"
9233 uuid="bd721b0e-ced5-4f79-b368-249897c32a36"
9234 >
9235 <desc>
9236 Directory creation flags.
9237 </desc>
9238 <const name="None" value="0">
9239 <desc>No flag set.</desc>
9240 </const>
9241 <const name="Parents" value="1">
9242 <desc>No error if existing, make parent directories as needed.</desc>
9243 </const>
9244 </enum>
9245
9246 <enum
9247 name="DirectoryRemoveRecFlag"
9248 uuid="455aabf0-7692-48f6-9061-f21579b65769"
9249 >
9250 <desc>
9251 Directory recursive removement flags.
9252 </desc>
9253
9254 <const name="None" value="0">
9255 <desc>No flag set.</desc>
9256 </const>
9257 <const name="ContentAndDir" value="1">
9258 <desc>Delete the content of the directory and the directory itself.</desc>
9259 </const>
9260 <const name="ContentOnly" value="2">
9261 <desc>Only delete the content of the directory, omit the directory it self.</desc>
9262 </const>
9263 </enum>
9264
9265 <enum
9266 name="PathRenameFlag"
9267 uuid="f3baa09f-c758-453d-b91c-c7787d76351d"
9268 >
9269 <desc>
9270 Path renaming flags.
9271 </desc>
9272
9273 <const name="None" value="0">
9274 <desc>No flag set.</desc>
9275 </const>
9276 <const name="NoReplace" value="1">
9277 <desc>Do not replace anything.</desc>
9278 </const>
9279 <const name="Replace" value="2">
9280 <desc>This will replace attempt any target which isn't a directory.</desc>
9281 </const>
9282 <const name="NoSymlinks" value="4">
9283 <desc>Don't allow symbolic links as part of the path.</desc>
9284 </const>
9285 </enum>
9286
9287 <enum
9288 name="ProcessCreateFlag"
9289 uuid="35192799-bfde-405d-9bea-c735ab9998e4"
9290 >
9291 <desc>
9292 Guest process execution flags.
9293 </desc>
9294
9295 <const name="None" value="0">
9296 <desc>No flag set.</desc>
9297 </const>
9298 <const name="WaitForProcessStartOnly" value="1">
9299 <desc>Only use the specified timeout value to wait for starting the guest process - the guest
9300 process itself then uses an infinite timeout.</desc>
9301 </const>
9302 <const name="IgnoreOrphanedProcesses" value="2">
9303 <desc>Do not report an error when executed processes are still alive when VBoxService or the guest OS is shutting down.</desc>
9304 </const>
9305 <const name="Hidden" value="4">
9306 <desc>Do not show the started process according to the guest OS guidelines.</desc>
9307 </const>
9308 <const name="NoProfile" value="8">
9309 <desc>Do not use the user's profile data when exeuting a process. Only available for Windows guests.</desc>
9310 </const>
9311 <const name="WaitForStdOut" value="16">
9312 <desc>The guest process waits until all data from stdout is read out.</desc>
9313 </const>
9314 <const name="WaitForStdErr" value="32">
9315 <desc>The guest process waits until all data from stderr is read out.</desc>
9316 </const>
9317 <const name="ExpandArguments" value="64">
9318 <desc>Expands environment variables in process arguments.</desc>
9319 </const>
9320 </enum>
9321
9322 <enum
9323 name="ProcessPriority"
9324 uuid="ee8cac50-e232-49fe-806b-d1214d9c2e49"
9325 >
9326 <desc>
9327 Process priorities.
9328 </desc>
9329
9330 <const name="Invalid" value="0">
9331 <desc>Invalid priority, do not use.</desc>
9332 </const>
9333 <const name="Default" value="1">
9334 <desc>Default process priority determined by the OS.</desc>
9335 </const>
9336 </enum>
9337
9338 <enum
9339 name="SymlinkType"
9340 uuid="37794668-f8f1-4714-98a5-6f8fa2ed0118"
9341 >
9342 <desc>
9343 Symbolic link types.
9344 </desc>
9345
9346 <const name="Unknown" value="0">
9347 <desc>It is not known what is being targeted.</desc>
9348 </const>
9349 <const name="Directory" value="1">
9350 <desc>The link targets a directory.</desc>
9351 </const>
9352 <const name="File" value="2">
9353 <desc>The link targets a file (or whatever else).</desc>
9354 </const>
9355 </enum>
9356
9357 <enum
9358 name="SymlinkReadFlag"
9359 uuid="b7fe2b9d-790e-4b25-8adf-1ca33026931f"
9360 >
9361 <desc>
9362 Symbolic link reading flags.
9363 </desc>
9364
9365 <const name="None" value="0">
9366 <desc>No flags set.</desc>
9367 </const>
9368 <const name="NoSymlinks" value="1">
9369 <desc>Don't allow symbolic links as part of the path.</desc>
9370 </const>
9371 </enum>
9372
9373 <enum
9374 name="ProcessStatus"
9375 uuid="4d52368f-5b48-4bfe-b486-acf89139b52f"
9376 >
9377 <desc>
9378 Process execution statuses.
9379 </desc>
9380 <const name="Undefined" value="0">
9381 <desc>Process is in an undefined state.</desc>
9382 </const>
9383 <const name="Starting" value="10">
9384 <desc>Process is being started.</desc>
9385 </const>
9386 <const name="Started" value="100">
9387 <desc>Process has been started.</desc>
9388 </const>
9389 <const name="Paused" value="110">
9390 <desc>Process has been paused.</desc>
9391 </const>
9392 <const name="Terminating" value="480">
9393 <desc>Process is being terminated.</desc>
9394 </const>
9395 <const name="TerminatedNormally" value="500">
9396 <desc>Process terminated normally.</desc>
9397 </const>
9398 <const name="TerminatedSignal" value="510">
9399 <desc>Process terminated via signal.</desc>
9400 </const>
9401 <const name="TerminatedAbnormally" value="511">
9402 <desc>Process terminated abnormally.</desc>
9403 </const>
9404 <const name="TimedOutKilled" value="512">
9405 <desc>Process timed out and was killed.</desc>
9406 </const>
9407 <const name="TimedOutAbnormally" value="513">
9408 <desc>Process timed out and was not killed successfully.</desc>
9409 </const>
9410 <const name="Down" value="600">
9411 <desc>Service/OS is stopping, process was killed.</desc>
9412 </const>
9413 <const name="Error" value="800">
9414 <desc>Something went wrong.</desc>
9415 </const>
9416 </enum>
9417
9418 <enum
9419 name="FsObjType"
9420 uuid="a1ed437c-b3c3-4ca2-b19c-4239d658d5e8"
9421 >
9422 <desc>
9423 File system object type.
9424 </desc>
9425
9426 <const name="Undefined" value="0">
9427 <desc>Type is undefined / unknown.</desc>
9428 </const>
9429 <const name="FIFO" value="1">
9430 <desc>Named pipe.</desc>
9431 </const>
9432 <const name="DevChar" value="10">
9433 <desc>Character device.</desc>
9434 </const>
9435 <const name="DevBlock" value="11">
9436 <desc>Block device.</desc>
9437 </const>
9438 <const name="Directory" value="50">
9439 <desc>Directory.</desc>
9440 </const>
9441 <const name="File" value="80">
9442 <desc>File.</desc>
9443 </const>
9444 <const name="Symlink" value="100">
9445 <desc>Symlink.</desc>
9446 </const>
9447 <const name="Socket" value="200">
9448 <desc>Socket.</desc>
9449 </const>
9450 <const name="Whiteout" value="400">
9451 <desc>Whiteout.</desc>
9452 </const>
9453 </enum>
9454
9455 <enum
9456 name="DragAndDropAction"
9457 uuid="47f3b162-c107-4fcd-bfa7-54b8135c441e"
9458 >
9459 <desc>
9460 Possible actions within an Drag and Drop operation.
9461 </desc>
9462
9463 <const name="Ignore" value="0">
9464 <desc>Do nothing.</desc>
9465 </const>
9466
9467 <const name="Copy" value="1">
9468 <desc>Copy the item to the target.</desc>
9469 </const>
9470
9471 <const name="Move" value="2">
9472 <desc>Move the item to the target.</desc>
9473 </const>
9474
9475 <const name="Link" value="3">
9476 <desc>Link the item from within the target.</desc>
9477 </const>
9478 </enum>
9479
9480 <enum
9481 name="DirectoryOpenFlag"
9482 uuid="5138837a-8fd2-4194-a1b0-08f7bc3949d0"
9483 >
9484 <desc>
9485 Directory open flags.
9486 </desc>
9487 <const name="None" value="0">
9488 <desc>No flag set.</desc>
9489 </const>
9490 <const name="NoSymlinks" value="1">
9491 <desc>Don't allow symbolic links as part of the path.</desc>
9492 </const>
9493 </enum>
9494
9495 <interface
9496 name="IGuestSession" extends="$unknown"
9497 uuid="56f551a2-f924-43ab-8a69-a954109db878"
9498 wsmap="managed"
9499 >
9500 <desc>
9501 A guest session represents one impersonated user account on the guest, so
9502 every operation will use the same credentials specified when creating
9503 the session object via <link to="IGuest::createSession"/>.
9504
9505 There can be a maximum of 32 sessions at once per VM. Each session keeps
9506 track of its started guest processes, opened guest files or guest directories.
9507 To work on guest files or directories a guest session offers methods to open
9508 or create such objects (see <link to="IGuestSession::fileOpen"/> or
9509 <link to="IGuestSession::directoryOpen"/> for example).
9510
9511 When done with either of these objects, including the guest session itself,
9512 use the appropriate close() method to let the object do its cleanup work.
9513
9514 Every guest session has its own environment variable block which gets
9515 automatically applied when starting a new guest process via
9516 <link to="IGuestSession::processCreate"/> or <link to="IGuestSession::processCreateEx"/>.
9517 To override (or unset) certain environment variables already set by the
9518 guest session, one can specify a per-process environment block when using
9519 one of the both above mentioned process creation calls.
9520 </desc>
9521
9522 <attribute name="user" type="wstring" readonly="yes">
9523 <desc>Returns the user name used by this session to impersonate
9524 users on the guest.
9525 </desc>
9526 </attribute>
9527
9528 <attribute name="domain" type="wstring" readonly="yes">
9529 <desc>Returns the domain name used by this session to impersonate
9530 users on the guest.
9531 </desc>
9532 </attribute>
9533
9534 <attribute name="name" type="wstring" readonly="yes">
9535 <desc>Returns the session's friendly name.</desc>
9536 </attribute>
9537
9538 <attribute name="id" type="unsigned long" readonly="yes">
9539 <desc>Returns the internal session ID.</desc>
9540 </attribute>
9541
9542 <attribute name="timeout" type="unsigned long" readonly="no">
9543 <desc>
9544 Returns the session timeout (in ms).
9545 <result name="E_NOTIMPL">
9546 The method is not implemented yet.
9547 </result>
9548 </desc>
9549 </attribute>
9550
9551 <attribute name="status" type="GuestSessionStatus" readonly="yes">
9552 <desc>Returns the current session status.</desc>
9553 </attribute>
9554
9555 <attribute name="environment" type="wstring" safearray="yes">
9556 <desc>
9557 Returns the current session environment.
9558 </desc>
9559 </attribute>
9560
9561 <attribute name="processes" type="IGuestProcess" readonly="yes" safearray="yes">
9562 <desc>
9563 Returns all current guest processes.
9564 </desc>
9565 </attribute>
9566
9567 <attribute name="directories" type="IGuestDirectory" readonly="yes" safearray="yes">
9568 <desc>
9569 Returns all currently opened guest directories.
9570 </desc>
9571 </attribute>
9572
9573 <attribute name="files" type="IGuestFile" readonly="yes" safearray="yes">
9574 <desc>
9575 Returns all currently opened guest files.
9576 </desc>
9577 </attribute>
9578
9579 <method name="close">
9580 <desc>
9581 Closes this session. All opened guest directories, files and
9582 processes which are not referenced by clients anymore will be
9583 uninitialized.
9584 </desc>
9585 </method>
9586
9587 <method name="copyFrom">
9588 <desc>
9589 Copies a file from guest to the host.
9590
9591 <result name="VBOX_E_IPRT_ERROR">
9592 Error starting the copy operation.
9593 </result>
9594 </desc>
9595 <param name="source" type="wstring" dir="in">
9596 <desc>Source file on the guest to copy to the host.</desc>
9597 </param>
9598 <param name="dest" type="wstring" dir="in">
9599 <desc>Destination file name on the host.</desc>
9600 </param>
9601 <param name="flags" type="CopyFileFlag" dir="in" safearray="yes">
9602 <desc>Copy flags; see <link to="CopyFileFlag"/> for more information.</desc>
9603 </param>
9604 <param name="progress" type="IProgress" dir="return">
9605 <desc>Progress object to track the operation completion.</desc>
9606 </param>
9607 </method>
9608
9609 <method name="copyTo">
9610 <desc>
9611 Copies a file from host to the guest.
9612
9613 <result name="VBOX_E_IPRT_ERROR">
9614 Error starting the copy operation.
9615 </result>
9616 </desc>
9617 <param name="source" type="wstring" dir="in">
9618 <desc>Source file on the host to copy to the guest.</desc>
9619 </param>
9620 <param name="dest" type="wstring" dir="in">
9621 <desc>Destination file name on the guest.</desc>
9622 </param>
9623 <param name="flags" type="CopyFileFlag" dir="in" safearray="yes">
9624 <desc>Copy flags; see <link to="CopyFileFlag"/> for more information.</desc>
9625 </param>
9626 <param name="progress" type="IProgress" dir="return">
9627 <desc>Progress object to track the operation completion.</desc>
9628 </param>
9629 </method>
9630
9631 <method name="directoryCreate">
9632 <desc>
9633 Create a directory on the guest.
9634
9635 <result name="VBOX_E_IPRT_ERROR">
9636 Error while creating the directory.
9637 </result>
9638 </desc>
9639 <param name="path" type="wstring" dir="in">
9640 <desc>Full path of directory to create.</desc>
9641 </param>
9642 <param name="mode" type="unsigned long" dir="in">
9643 <desc>File creation mode.</desc>
9644 </param>
9645 <param name="flags" type="DirectoryCreateFlag" dir="in" safearray="yes">
9646 <desc>Creation flags; see <link to="DirectoryCreateFlag"/> for more information.</desc>
9647 </param>
9648 </method>
9649
9650 <method name="directoryCreateTemp">
9651 <desc>
9652 Create a temporary directory on the guest.
9653
9654 <result name="VBOX_E_NOT_SUPPORTED">
9655 The operation is not possible as requested on this particular
9656 guest type.
9657 </result>
9658 <result name="E_INVALIDARG">
9659 Invalid argument. This includes an incorrectly formatted template,
9660 or a non-absolute path.
9661 </result>
9662 <result name="VBOX_E_IPRT_ERROR">
9663 The temporary directory could not be created. Possible reasons
9664 include a non-existing path or an insecure path when the secure
9665 option was requested.
9666 </result>
9667 </desc>
9668 <param name="templateName" type="wstring" dir="in">
9669 <desc>Template for the name of the directory to create. This must
9670 contain at least one 'X' character. The first group of consecutive
9671 'X' characters in the template will be replaced by a random
9672 alphanumeric string to produce a unique name.</desc>
9673 </param>
9674 <param name="mode" type="unsigned long" dir="in">
9675 <desc>The mode of the directory to create. Use 0700 unless there are
9676 reasons not to. This parameter is ignored if "secure" is specified.
9677 </desc>
9678 </param>
9679 <param name="path" type="wstring" dir="in">
9680 <desc>The absolute path to create the temporary directory in.</desc>
9681 </param>
9682 <param name="secure" type="boolean" dir="in">
9683 <desc>Whether to fail if the directory can not be securely created.
9684 Currently this means that another unprivileged user cannot
9685 manipulate the path specified or remove the temporary directory
9686 after it has been created. Also causes the mode specified to be
9687 ignored. May not be supported on all guest types.</desc>
9688 </param>
9689 <param name="directory" type="wstring" dir="return">
9690 <desc>On success this will contain the name of the directory created
9691 with full path.</desc>
9692 </param>
9693 </method>
9694
9695 <method name="directoryExists">
9696 <desc>
9697 Checks whether a directory exists on the guest or not.
9698
9699 <result name="VBOX_E_IPRT_ERROR">
9700 Error while checking existence of the directory specified.
9701 </result>
9702 </desc>
9703 <param name="path" type="wstring" dir="in">
9704 <desc>Directory to check existence for.</desc>
9705 </param>
9706 <param name="exists" type="boolean" dir="return">
9707 <desc>Returns @c true if the directory exists, @c false if not.</desc>
9708 </param>
9709 </method>
9710
9711 <method name="directoryOpen">
9712 <desc>
9713 Opens a directory and creates a <link to="IGuestDirectory"/> object that
9714 can be used for further operations.
9715
9716 <result name="VBOX_E_OBJECT_NOT_FOUND">
9717 Directory to open was not found.
9718 </result>
9719 <result name="VBOX_E_IPRT_ERROR">
9720 Error while opening the directory.
9721 </result>
9722 </desc>
9723 <param name="path" type="wstring" dir="in">
9724 <desc>Full path to file to open.</desc>
9725 </param>
9726 <param name="filter" type="wstring" dir="in">
9727 <desc>Open filter to apply. This can include wildcards like ? and *.</desc>
9728 </param>
9729 <param name="flags" type="DirectoryOpenFlag" dir="in" safearray="yes">
9730 <desc>Open flags; see <link to="DirectoryOpenFlag"/> for more information.</desc>
9731 </param>
9732 <param name="directory" type="IGuestDirectory" dir="return">
9733 <desc><link to="IGuestDirectory"/> object containing the opened directory.</desc>
9734 </param>
9735 </method>
9736
9737 <method name="directoryQueryInfo">
9738 <desc>
9739 Queries information of a directory on the guest.
9740
9741 <result name="VBOX_E_OBJECT_NOT_FOUND">
9742 Directory to query information for was not found.
9743 </result>
9744 <result name="VBOX_E_IPRT_ERROR">
9745 Error querying information.
9746 </result>
9747 </desc>
9748 <param name="path" type="wstring" dir="in">
9749 <desc>Directory to query information for.</desc>
9750 </param>
9751 <param name="info" type="IGuestFsObjInfo" dir="return">
9752 <desc><link to="IGuestFsObjInfo"/> object containing the queried information.</desc>
9753 </param>
9754 </method>
9755
9756 <method name="directoryRemove">
9757 <desc>
9758 Removes a guest directory if not empty.
9759
9760 <result name="E_NOTIMPL">
9761 The method is not implemented yet.
9762 </result>
9763 </desc>
9764 <param name="path" type="wstring" dir="in">
9765 <desc>Full path of directory to remove.</desc>
9766 </param>
9767 </method>
9768
9769 <method name="directoryRemoveRecursive">
9770 <desc>
9771 Removes a guest directory recursively.
9772
9773 <result name="E_NOTIMPL">
9774 The method is not implemented yet.
9775 </result>
9776 </desc>
9777 <param name="path" type="wstring" dir="in">
9778 <desc>Full path of directory to remove recursively.</desc>
9779 </param>
9780 <param name="flags" type="DirectoryRemoveRecFlag" dir="in" safearray="yes">
9781 <desc>Remove flags; see <link to="DirectoryRemoveRecFlag"/> for more information.</desc>
9782 </param>
9783 <param name="progress" type="IProgress" dir="return">
9784 <desc>Progress object to track the operation completion.</desc>
9785 </param>
9786 </method>
9787
9788 <method name="directoryRename">
9789 <desc>
9790 Renames a directory on the guest.
9791
9792 <result name="E_NOTIMPL">
9793 The method is not implemented yet.
9794 </result>
9795 </desc>
9796 <param name="source" type="wstring" dir="in">
9797 <desc>Source directory to rename.</desc>
9798 </param>
9799 <param name="dest" type="wstring" dir="in">
9800 <desc>Destination directory to rename the source to.</desc>
9801 </param>
9802 <param name="flags" type="PathRenameFlag" dir="in" safearray="yes">
9803 <desc>Rename flags; see <link to="PathRenameFlag"/> for more information.</desc>
9804 </param>
9805 </method>
9806
9807 <method name="directorySetACL">
9808 <desc>
9809 Sets the ACL (Access Control List) of a guest directory.
9810
9811 <result name="E_NOTIMPL">
9812 The method is not implemented yet.
9813 </result>
9814 </desc>
9815 <param name="path" type="wstring" dir="in">
9816 <desc>Full path of directory to set the ACL for.</desc>
9817 </param>
9818 <param name="acl" type="wstring" dir="in">
9819 <desc>Actual ACL string to set. Must comply with the guest OS.</desc>
9820 </param>
9821 </method>
9822
9823 <method name="environmentClear">
9824 <desc>
9825 Clears (deletes) all session environment variables.
9826
9827 <result name="VBOX_E_IPRT_ERROR">
9828 Error while clearing the session environment variables.
9829 </result>
9830 </desc>
9831 </method>
9832
9833 <method name="environmentGet">
9834 <desc>
9835 Gets the value of a session environment variable.
9836
9837 <result name="VBOX_E_IPRT_ERROR">
9838 Error while getting the value of the session environment variable.
9839 </result>
9840 </desc>
9841 <param name="name" type="wstring" dir="in">
9842 <desc>Name of session environment variable to get the value for.</desc>
9843 </param>
9844 <param name="value" type="wstring" dir="return">
9845 <desc>
9846 Value of the session environment variable specified. If this variable
9847 does not exist and empty value will be returned.
9848 </desc>
9849 </param>
9850 </method>
9851
9852 <method name="environmentSet">
9853 <desc>
9854 Sets a session environment variable.
9855
9856 <result name="VBOX_E_IPRT_ERROR">
9857 Error while setting the session environment variable.
9858 </result>
9859 </desc>
9860 <param name="name" type="wstring" dir="in">
9861 <desc>Name of session environment variable to set.</desc>
9862 </param>
9863 <param name="value" type="wstring" dir="in">
9864 <desc>Value to set the session environment variable to.</desc>
9865 </param>
9866 </method>
9867
9868 <method name="environmentUnset">
9869 <desc>
9870 Unsets session environment variable.
9871
9872 <result name="VBOX_E_IPRT_ERROR">
9873 Error while unsetting the session environment variable.
9874 </result>
9875 </desc>
9876 <param name="name" type="wstring" dir="in">
9877 <desc>Name of session environment variable to unset (clear).</desc>
9878 </param>
9879 </method>
9880
9881 <method name="fileCreateTemp">
9882 <desc>
9883 Creates a temporary file on the guest.
9884
9885 <result name="VBOX_E_NOT_SUPPORTED">
9886 The operation is not possible as requested on this particular
9887 guest type.
9888 </result>
9889 <result name="E_INVALIDARG">
9890 Invalid argument. This includes an incorrectly formatted template,
9891 or a non-absolute path.
9892 </result>
9893 <result name="VBOX_E_IPRT_ERROR">
9894 The temporary file could not be created. Possible reasons include
9895 a non-existing path or an insecure path when the secure
9896 option was requested.
9897 </result>
9898 </desc>
9899 <param name="templateName" type="wstring" dir="in">
9900 <desc>Template for the name of the file to create. This must contain
9901 at least one 'X' character. The first group of consecutive 'X'
9902 characters in the template will be replaced by a random
9903 alphanumeric string to produce a unique name.
9904 </desc>
9905 </param>
9906 <param name="mode" type="unsigned long" dir="in">
9907 <desc>The mode of the file to create. Use 0700 unless there are
9908 reasons not to. This parameter is ignored if "secure" is specified.
9909 </desc>
9910 </param>
9911 <param name="path" type="wstring" dir="in">
9912 <desc>The absolute path to create the temporary file in.</desc>
9913 </param>
9914 <param name="secure" type="boolean" dir="in">
9915 <desc>Whether to fail if the file can not be securely created.
9916 Currently this means that another unprivileged user cannot
9917 manipulate the path specified or remove the temporary file after
9918 it has been created. Also causes the mode specified to be ignored.
9919 May not be supported on all guest types.</desc>
9920 </param>
9921 <param name="file" type="IGuestFile" dir="return">
9922 <desc>On success this will contain an open file object for the new
9923 temporary file.
9924 </desc>
9925 </param>
9926 </method>
9927
9928 <method name="fileExists">
9929 <desc>
9930 Checks whether a file exists on the guest or not.
9931
9932 <result name="VBOX_E_IPRT_ERROR">
9933 Error while checking existence of the file specified.
9934 </result>
9935 </desc>
9936 <param name="path" type="wstring" dir="in">
9937 <desc>File to check existence for.</desc>
9938 </param>
9939 <param name="exists" type="boolean" dir="return">
9940 <desc>Returns @c true if the file exists, @c false if not.</desc>
9941 </param>
9942 </method>
9943
9944 <method name="fileRemove">
9945 <desc>
9946 Removes a single file on the guest.
9947
9948 <result name="VBOX_E_OBJECT_NOT_FOUND">
9949 File to remove was not found.
9950 </result>
9951 <result name="VBOX_E_IPRT_ERROR">
9952 Error while removing the file.
9953 </result>
9954 </desc>
9955 <param name="path" type="wstring" dir="in">
9956 <desc>Path to the file to remove.</desc>
9957 </param>
9958 </method>
9959
9960 <method name="fileOpen">
9961 <desc>
9962 Opens a file and creates a <link to="IGuestFile"/> object that
9963 can be used for further operations.
9964
9965 <result name="VBOX_E_OBJECT_NOT_FOUND">
9966 File to open was not found.
9967 </result>
9968 <result name="VBOX_E_IPRT_ERROR">
9969 Error while opening the file.
9970 </result>
9971 </desc>
9972 <param name="path" type="wstring" dir="in">
9973 <desc>Full path to file to open.</desc>
9974 </param>
9975 <param name="openMode" type="wstring" dir="in">
9976 <desc>The file open mode.</desc>
9977 </param>
9978 <param name="disposition" type="wstring" dir="in">
9979 <desc>The file disposition.</desc>
9980 </param>
9981 <param name="creationMode" type="unsigned long" dir="in">
9982 <desc>The file creation mode.</desc>
9983 </param>
9984 <param name="offset" type="long long" dir="in">
9985 <desc>The initial read/write offset.</desc>
9986 </param>
9987 <param name="file" type="IGuestFile" dir="return">
9988 <desc><link to="IGuestFile"/> object representing the opened file.</desc>
9989 </param>
9990 </method>
9991
9992 <method name="fileQueryInfo">
9993 <desc>
9994 Queries information of a file on the guest.
9995
9996 <result name="VBOX_E_OBJECT_NOT_FOUND">
9997 File to query information for was not found.
9998 </result>
9999 <result name="VBOX_E_IPRT_ERROR">
10000 Error querying information.
10001 </result>
10002 </desc>
10003 <param name="path" type="wstring" dir="in">
10004 <desc>File to query information for.</desc>
10005 </param>
10006 <param name="info" type="IGuestFsObjInfo" dir="return">
10007 <desc><link to="IGuestFsObjInfo"/> object containing the queried information.</desc>
10008 </param>
10009 </method>
10010
10011 <method name="fileQuerySize">
10012 <desc>
10013 Queries the size of a file on the guest.
10014
10015 <result name="VBOX_E_OBJECT_NOT_FOUND">
10016 File to rename was not found.
10017 </result>
10018 <result name="VBOX_E_IPRT_ERROR">
10019 Error querying file size.
10020 </result>
10021 </desc>
10022 <param name="path" type="wstring" dir="in">
10023 <desc>File to query the size for.</desc>
10024 </param>
10025 <param name="size" type="long long" dir="return">
10026 <desc>Queried file size.</desc>
10027 </param>
10028 </method>
10029
10030 <method name="fileRename">
10031 <desc>
10032 Renames a file on the guest.
10033
10034 <result name="E_NOTIMPL">
10035 The method is not implemented yet.
10036 </result>
10037 </desc>
10038 <param name="source" type="wstring" dir="in">
10039 <desc>Source file to rename.</desc>
10040 </param>
10041 <param name="dest" type="wstring" dir="in">
10042 <desc>Destination file to rename the source to.</desc>
10043 </param>
10044 <param name="flags" type="PathRenameFlag" dir="in" safearray="yes">
10045 <desc>Rename flags; see <link to="PathRenameFlag"/> for more information.</desc>
10046 </param>
10047 </method>
10048
10049 <method name="fileSetACL">
10050 <desc>
10051 Sets the ACL (Access Control List) of a file on the guest.
10052
10053 <result name="E_NOTIMPL">
10054 The method is not implemented yet.
10055 </result>
10056 </desc>
10057 <param name="file" type="wstring" dir="in">
10058 <desc>Full path of file to set the ACL for.</desc>
10059 </param>
10060 <param name="acl" type="wstring" dir="in">
10061 <desc>Actual ACL string to set. Must comply with the guest OS.</desc>
10062 </param>
10063 </method>
10064
10065 <method name="processCreate">
10066 <desc>
10067 Executes an existing program inside the guest VM.
10068
10069 <note>
10070 Starting at VirtualBox 4.2 guest process execution by default is limited
10071 to serve up to 255 guest processes at a time. If all 255 guest processes
10072 are still active and running, starting a new guest process will result in an
10073 appropriate error message.
10074
10075 If ProcessCreateFlag_WaitForStdOut and / or respectively ProcessCreateFlag_WaitForStdErr
10076 is / are set, the guest process will not exit until all data from the specified
10077 stream(s) is / are read out.
10078
10079 To raise or lower the guest process execution limit, either the guest property
10080 "/VirtualBox/GuestAdd/VBoxService/--control-procs-max-kept" or VBoxService'
10081 command line by specifying "--control-procs-max-kept" needs to be modified.
10082 A restart of the guest OS is required afterwards. To serve unlimited guest
10083 processes, a value of "0" needs to be set (not recommended).
10084 </note>
10085
10086 <result name="VBOX_E_IPRT_ERROR">
10087 Could not create process.
10088 </result>
10089 </desc>
10090 <param name="command" type="wstring" dir="in">
10091 <desc>
10092 Full path name of the command to execute on the guest; the
10093 commands has to exists in the guest VM in order to be executed.
10094 </desc>
10095 </param>
10096 <param name="arguments" type="wstring" dir="in" safearray="yes">
10097 <desc>Array of arguments passed to the execution command.</desc>
10098 </param>
10099 <param name="environment" type="wstring" dir="in" safearray="yes">
10100 <desc>
10101 Environment variables that can be set while the command is being
10102 executed, in form of "NAME=VALUE"; one pair per entry. To unset a
10103 variable just set its name ("NAME") without a value.
10104
10105 This parameter can be used to override environment variables set by
10106 the guest session, which will be applied to the newly started process
10107 in any case.
10108 </desc>
10109 </param>
10110 <param name="flags" type="ProcessCreateFlag" dir="in" safearray="yes">
10111 <desc>
10112 Process creation flags;
10113 see <link to="ProcessCreateFlag"/> for more information.
10114 </desc>
10115 </param>
10116 <param name="timeoutMS" type="unsigned long" dir="in">
10117 <desc>
10118 Timeout (in ms) to wait for the operation to complete.
10119 Pass 0 for an infinite timeout.
10120 </desc>
10121 </param>
10122 <param name="guestProcess" type="IGuestProcess" dir="return">
10123 <desc>Guest process object of the newly created process.</desc>
10124 </param>
10125 </method>
10126
10127 <method name="processCreateEx">
10128 <desc>
10129 Executes an existing program inside the guest VM. Extended version for
10130 also setting the process priority and affinity.
10131
10132 <note>
10133 Starting at VirtualBox 4.2 guest process execution by default is limited
10134 to serve up to 255 guest processes at a time. If all 255 guest processes
10135 are still active and running, starting a new guest process will result in an
10136 appropriate error message.
10137
10138 If ProcessCreateFlag_WaitForStdOut and / or respectively ProcessCreateFlag_WaitForStdErr
10139 is / are set, the guest process will not exit until all data from the specified
10140 stream(s) is / are read out.
10141
10142 To raise or lower the guest process execution limit, either the guest property
10143 "/VirtualBox/GuestAdd/VBoxService/--control-procs-max-kept" or VBoxService'
10144 command line by specifying "--control-procs-max-kept" needs to be modified.
10145 A restart of the guest OS is required afterwards. To serve unlimited guest
10146 processes, a value of "0" needs to be set (not recommended).
10147 </note>
10148
10149 <result name="VBOX_E_IPRT_ERROR">
10150 Could not create process.
10151 </result>
10152 </desc>
10153 <param name="command" type="wstring" dir="in">
10154 <desc>
10155 Full path name of the command to execute on the guest; the
10156 commands has to exists in the guest VM in order to be executed.
10157 </desc>
10158 </param>
10159 <param name="arguments" type="wstring" dir="in" safearray="yes">
10160 <desc>Array of arguments passed to the execution command.</desc>
10161 </param>
10162 <param name="environment" type="wstring" dir="in" safearray="yes">
10163 <desc>
10164 Environment variables that can be set while the command is being
10165 executed, in form of "NAME=VALUE"; one pair per entry. To unset a
10166 variable just set its name ("NAME") without a value.
10167
10168 This parameter can be used to override environment variables set by
10169 the guest session, which will be applied to the newly started process
10170 in any case.
10171 </desc>
10172 </param>
10173 <param name="flags" type="ProcessCreateFlag" dir="in" safearray="yes">
10174 <desc>
10175 Process creation flags;
10176 see <link to="ProcessCreateFlag"/> for more information.
10177 </desc>
10178 </param>
10179 <param name="timeoutMS" type="unsigned long" dir="in">
10180 <desc>
10181 Timeout (in ms) to wait for the operation to complete.
10182 Pass 0 for an infinite timeout.
10183 </desc>
10184 </param>
10185 <param name="priority" type="ProcessPriority" dir="in">
10186 <desc>
10187 Process priority to use for execution;
10188 see see <link to="ProcessPriority"/> for more information.</desc>
10189 </param>
10190 <param name="affinity" type="long" dir="in" safearray="yes">
10191 <desc>
10192 Process affinity to use for execution. This parameter
10193 is not implemented yet.
10194 </desc>
10195 </param>
10196 <param name="guestProcess" type="IGuestProcess" dir="return">
10197 <desc>Guest process object of the newly created process.</desc>
10198 </param>
10199 </method>
10200
10201 <method name="processGet">
10202 <desc>
10203 Gets a certain guest process by its process ID (PID).
10204 </desc>
10205 <param name="pid" type="unsigned long" dir="in">
10206 <desc>Process ID (PID) to get guest process for.</desc>
10207 </param>
10208 <param name="guestProcess" type="IGuestProcess" dir="return">
10209 <desc>Guest process of specified process ID (PID).</desc>
10210 </param>
10211 </method>
10212
10213 <method name="symlinkCreate">
10214 <desc>
10215 Creates a symbolic link on the guest.
10216
10217 <result name="E_NOTIMPL">
10218 The method is not implemented yet.
10219 </result>
10220 </desc>
10221 <param name="source" type="wstring" dir="in">
10222 <desc>The name of the symbolic link.</desc>
10223 </param>
10224 <param name="target" type="wstring" dir="in">
10225 <desc>The path to the symbolic link target.</desc>
10226 </param>
10227 <param name="type" type="SymlinkType" dir="in">
10228 <desc>
10229 The symbolic link type;
10230 see <link to="SymlinkReadFlag"/> for more information.
10231 </desc>
10232 </param>
10233 </method>
10234
10235 <method name="symlinkExists">
10236 <desc>
10237 Checks whether a symbolic link exists on the guest or not.
10238
10239 <result name="E_NOTIMPL">
10240 The method is not implemented yet.
10241 </result>
10242 </desc>
10243 <param name="symlink" type="wstring" dir="in">
10244 <desc>Symbolic link to check existence for.</desc>
10245 </param>
10246 <param name="exists" type="boolean" dir="return">
10247 <desc>Returns @c true if the symbolic link exists, @c false if not.</desc>
10248 </param>
10249 </method>
10250
10251 <method name="symlinkRead">
10252 <desc>
10253 Reads a symbolic link on the guest.
10254
10255 <result name="E_NOTIMPL">
10256 The method is not implemented yet.
10257 </result>
10258 </desc>
10259 <param name="symlink" type="wstring" dir="in">
10260 <desc>Full path to symbolic link to read.</desc>
10261 </param>
10262 <param name="flags" type="SymlinkReadFlag" dir="in" safearray="yes">
10263 <desc>
10264 Read flags; see <link to="SymlinkReadFlag"/> for more information.
10265 </desc>
10266 </param>
10267 <param name="target" type="wstring" dir="return">
10268 <desc>
10269 Target of the symbolic link pointing to, if found.
10270 </desc>
10271 </param>
10272 </method>
10273
10274 <method name="symlinkRemoveDirectory">
10275 <desc>
10276 Removes a symbolic link on the guest if it's a directory.
10277
10278 <result name="E_NOTIMPL">
10279 The method is not implemented yet.
10280 </result>
10281 </desc>
10282 <param name="path" type="wstring" dir="in">
10283 <desc>Symbolic link to remove.</desc>
10284 </param>
10285 </method>
10286
10287 <method name="symlinkRemoveFile">
10288 <desc>
10289 Removes a symbolic link on the guest if it's a file.
10290
10291 <result name="E_NOTIMPL">
10292 The method is not implemented yet.
10293 </result>
10294 </desc>
10295 <param name="file" type="wstring" dir="in">
10296 <desc>Symbolic link to remove.</desc>
10297 </param>
10298 </method>
10299
10300 <method name="waitFor">
10301 <desc>
10302 Waits for one more events to happen.
10303 </desc>
10304 <param name="waitFor" type="unsigned long" dir="in">
10305 <desc>
10306 Specifies what to wait for;
10307 see <link to="GuestSessionWaitForFlag"/> for more information.
10308 </desc>
10309 </param>
10310 <param name="timeoutMS" type="unsigned long" dir="in">
10311 <desc>
10312 Timeout (in ms) to wait for the operation to complete.
10313 Pass 0 for an infinite timeout.
10314 </desc>
10315 </param>
10316 <param name="reason" type="GuestSessionWaitResult" dir="return">
10317 <desc>
10318 The overall wait result;
10319 see <link to="GuestSessionWaitResult"/> for more information.
10320 </desc>
10321 </param>
10322 </method>
10323
10324 <method name="waitForArray">
10325 <desc>
10326 Waits for one more events to happen.
10327 Scriptable version of <link to="#waitFor" />.
10328 </desc>
10329 <param name="waitFor" type="GuestSessionWaitForFlag" dir="in" safearray="yes">
10330 <desc>
10331 Specifies what to wait for;
10332 see <link to="GuestSessionWaitForFlag"/> for more information.
10333 </desc>
10334 </param>
10335 <param name="timeoutMS" type="unsigned long" dir="in">
10336 <desc>
10337 Timeout (in ms) to wait for the operation to complete.
10338 Pass 0 for an infinite timeout.
10339 </desc>
10340 </param>
10341 <param name="reason" type="GuestSessionWaitResult" dir="return">
10342 <desc>
10343 The overall wait result;
10344 see <link to="GuestSessionWaitResult"/> for more information.
10345 </desc>
10346 </param>
10347 </method>
10348
10349 </interface>
10350
10351 <interface
10352 name="IProcess" extends="$unknown"
10353 uuid="08864d56-96ab-418b-adbc-5a679532aeb0"
10354 wsmap="managed"
10355 >
10356 <desc>
10357 Abstract parent interface for processes handled by VirtualBox.
10358 </desc>
10359 <attribute name="PID" type="unsigned long" readonly="yes">
10360 <desc>
10361 The process ID (PID).
10362 </desc>
10363 </attribute>
10364 <attribute name="status" type="ProcessStatus" readonly="yes">
10365 <desc>
10366 The current process status; see <link to="ProcessStatus"/>
10367 for more information.
10368 </desc>
10369 </attribute>
10370 <attribute name="exitCode" type="long" readonly="yes">
10371 <desc>
10372 The exit code. Only available when the process has been
10373 terminated normally.
10374 </desc>
10375 </attribute>
10376 <attribute name="environment" type="wstring" readonly="yes" safearray="yes">
10377 <desc>
10378 The environment block this process is using during execution.
10379 </desc>
10380 </attribute>
10381 <attribute name="arguments" type="wstring" readonly="yes" safearray="yes">
10382 <desc>
10383 The arguments this process is using for execution.
10384 </desc>
10385 </attribute>
10386 <attribute name="executablePath" type="wstring" readonly="yes">
10387 <desc>Full path of the actual executable image.</desc>
10388 </attribute>
10389 <attribute name="name" type="wstring" readonly="yes">
10390 <desc>The friendly name of this process.</desc>
10391 </attribute>
10392
10393 <method name="waitFor">
10394 <desc>
10395 Waits for one more events to happen.
10396 </desc>
10397 <param name="waitFor" type="unsigned long" dir="in">
10398 <desc>
10399 Specifies what to wait for;
10400 see <link to="ProcessWaitForFlag"/> for more information.
10401 </desc>
10402 </param>
10403 <param name="timeoutMS" type="unsigned long" dir="in">
10404 <desc>
10405 Timeout (in ms) to wait for the operation to complete.
10406 Pass 0 for an infinite timeout.
10407 </desc>
10408 </param>
10409 <param name="reason" type="ProcessWaitResult" dir="return">
10410 <desc>
10411 The overall wait result;
10412 see <link to="ProcessWaitResult"/> for more information.
10413 </desc>
10414 </param>
10415 </method>
10416
10417 <method name="waitForArray">
10418 <desc>
10419 Waits for one more events to happen.
10420 Scriptable version of <link to="#waitFor" />.
10421 </desc>
10422 <param name="waitFor" type="ProcessWaitForFlag" dir="in" safearray="yes">
10423 <desc>
10424 Specifies what to wait for;
10425 see <link to="ProcessWaitForFlag"/> for more information.
10426 </desc>
10427 </param>
10428 <param name="timeoutMS" type="unsigned long" dir="in">
10429 <desc>
10430 Timeout (in ms) to wait for the operation to complete.
10431 Pass 0 for an infinite timeout.
10432 </desc>
10433 </param>
10434 <param name="reason" type="ProcessWaitResult" dir="return">
10435 <desc>
10436 The overall wait result;
10437 see <link to="ProcessWaitResult"/> for more information.
10438 </desc>
10439 </param>
10440 </method>
10441
10442 <method name="read">
10443 <desc>
10444 Reads data from a running process.
10445 </desc>
10446 <param name="handle" type="unsigned long" dir="in">
10447 <desc>Handle to read from. Usually 0 is stdin.</desc>
10448 </param>
10449 <param name="toRead" type="unsigned long" dir="in">
10450 <desc>Number of bytes to read.</desc>
10451 </param>
10452 <param name="timeoutMS" type="unsigned long" dir="in">
10453 <desc>
10454 Timeout (in ms) to wait for the operation to complete.
10455 Pass 0 for an infinite timeout.
10456 </desc>
10457 </param>
10458 <param name="data" type="octet" dir="return" safearray="yes">
10459 <desc>Array of data read.</desc>
10460 </param>
10461 </method>
10462
10463 <method name="write">
10464 <desc>
10465 Writes data to a running process.
10466 </desc>
10467 <param name="handle" type="unsigned long" dir="in">
10468 <desc>Handle to write to. Usually 0 is stdin, 1 is stdout and 2 is stderr.</desc>
10469 </param>
10470 <param name="flags" type="unsigned long" dir="in">
10471 <desc>
10472 A combination of <link to="ProcessInputFlag"/> flags.
10473 </desc>
10474 </param>
10475 <param name="data" type="octet" dir="in" safearray="yes">
10476 <desc>
10477 Array of bytes to write. The size of the array also specifies
10478 how much to write.
10479 </desc>
10480 </param>
10481 <param name="timeoutMS" type="unsigned long" dir="in">
10482 <desc>
10483 Timeout (in ms) to wait for the operation to complete.
10484 Pass 0 for an infinite timeout.
10485 </desc>
10486 </param>
10487 <param name="written" type="unsigned long" dir="return">
10488 <desc>How much bytes were written.</desc>
10489 </param>
10490 </method>
10491
10492 <method name="writeArray">
10493 <desc>
10494 Writes data to a running process.
10495 Scriptable version of <link to="#write" />.
10496 </desc>
10497 <param name="handle" type="unsigned long" dir="in">
10498 <desc>Handle to write to. Usually 0 is stdin, 1 is stdout and 2 is stderr.</desc>
10499 </param>
10500 <param name="flags" type="ProcessInputFlag" dir="in" safearray="yes">
10501 <desc>
10502 A combination of <link to="ProcessInputFlag"/> flags.
10503 </desc>
10504 </param>
10505 <param name="data" type="octet" dir="in" safearray="yes">
10506 <desc>
10507 Array of bytes to write. The size of the array also specifies
10508 how much to write.
10509 </desc>
10510 </param>
10511 <param name="timeoutMS" type="unsigned long" dir="in">
10512 <desc>
10513 Timeout (in ms) to wait for the operation to complete.
10514 Pass 0 for an infinite timeout.
10515 </desc>
10516 </param>
10517 <param name="written" type="unsigned long" dir="return">
10518 <desc>How much bytes were written.</desc>
10519 </param>
10520 </method>
10521
10522 <method name="terminate">
10523 <desc>
10524 Terminates (kills) a running process.
10525 </desc>
10526 </method>
10527 </interface>
10528
10529 <interface
10530 name="IGuestProcess" extends="IProcess"
10531 uuid="dfa39a36-5d43-4840-a025-67ea956b3111"
10532 wsmap="managed"
10533 >
10534 <desc>
10535 Implementation of the <link to="IProcess" /> object
10536 for processes on the guest.
10537 </desc>
10538 </interface>
10539
10540 <interface
10541 name="IDirectory" extends="$unknown"
10542 uuid="1b70dd03-26d7-483a-8877-89bbb0f87b70"
10543 wsmap="managed"
10544 >
10545 <desc>
10546 Abstract parent interface for directories handled by VirtualBox.
10547 </desc>
10548
10549 <attribute name="directoryName" type="wstring" readonly="yes">
10550 <desc>
10551 Full path of directory.
10552 </desc>
10553 </attribute>
10554
10555 <attribute name="filter" type="wstring" readonly="yes">
10556 <desc>
10557 The open filter.
10558 </desc>
10559 </attribute>
10560
10561 <method name="close">
10562 <desc>
10563 Closes this directory. After closing operations like reading the next
10564 directory entry will not be possible anymore.
10565 </desc>
10566 </method>
10567
10568 <method name="read">
10569 <desc>
10570 Reads the next directory entry of this directory.
10571 <result name="VBOX_E_OBJECT_NOT_FOUND">
10572 No more directory entries to read.
10573 </result>
10574 </desc>
10575 <param name="objInfo" type="IFsObjInfo" dir="return">
10576 <desc>Object information of the current directory entry read. Also see <link to="IFsObjInfo"/>.</desc>
10577 </param>
10578 </method>
10579 </interface>
10580
10581 <interface
10582 name="IGuestDirectory" extends="IDirectory"
10583 uuid="af4a8ce0-0725-42b7-8826-46e3c7ba7357"
10584 wsmap="managed"
10585 >
10586 <desc>
10587 Implementation of the <link to="IDirectory" /> object
10588 for directories on the guest.
10589 </desc>
10590 </interface>
10591
10592 <interface
10593 name="IFile" extends="$unknown"
10594 uuid="b702a560-6139-4a8e-a892-bbf14b97bf97"
10595 wsmap="managed"
10596 >
10597 <desc>
10598 Abstract parent interface for files handled by VirtualBox.
10599 </desc>
10600 <attribute name="creationMode" type="unsigned long" readonly="yes">
10601 <desc>
10602 The creation mode.
10603 </desc>
10604 </attribute>
10605 <attribute name="disposition" type="unsigned long" readonly="yes">
10606 <desc>
10607 The disposition mode.
10608 </desc>
10609 </attribute>
10610 <attribute name="fileName" type="wstring" readonly="yes">
10611 <desc>
10612 Full path of the actual file name of this file.
10613 </desc>
10614 </attribute>
10615 <attribute name="initialSize" type="long long" readonly="yes">
10616 <desc>
10617 The initial size in bytes when opened.
10618 </desc>
10619 </attribute>
10620 <attribute name="openMode" type="unsigned long" readonly="yes">
10621 <desc>
10622 The open mode.
10623 </desc>
10624 </attribute>
10625 <attribute name="offset" type="long long" readonly="yes">
10626 <desc>
10627 Current read/write offset in bytes.
10628 </desc>
10629 </attribute>
10630
10631 <method name="close">
10632 <desc>
10633 Closes this file. After closing operations like reading data,
10634 writing data or querying information will not be possible anymore.
10635 </desc>
10636 </method>
10637
10638 <method name="queryInfo">
10639 <desc>
10640 Queries information about this file.
10641
10642 <result name="E_NOTIMPL">
10643 The method is not implemented yet.
10644 </result>
10645 </desc>
10646 <param name="objInfo" type="IFsObjInfo" dir="return">
10647 <desc>Object information of this file. Also see <link to="IFsObjInfo"/>.</desc>
10648 </param>
10649 </method>
10650
10651 <method name="read">
10652 <desc>
10653 Reads data from this file.
10654
10655 <result name="E_NOTIMPL">
10656 The method is not implemented yet.
10657 </result>
10658 </desc>
10659 <param name="toRead" type="unsigned long" dir="in">
10660 <desc>Number of bytes to read.</desc>
10661 </param>
10662 <param name="timeoutMS" type="unsigned long" dir="in">
10663 <desc>
10664 Timeout (in ms) to wait for the operation to complete.
10665 Pass 0 for an infinite timeout.
10666 </desc>
10667 </param>
10668 <param name="data" type="octet" dir="return" safearray="yes">
10669 <desc>Array of data read.</desc>
10670 </param>
10671 </method>
10672
10673 <method name="readAt">
10674 <desc>
10675 Reads data from an offset of this file.
10676
10677 <result name="E_NOTIMPL">
10678 The method is not implemented yet.
10679 </result>
10680 </desc>
10681 <param name="offset" type="long long" dir="in">
10682 <desc>Offset in bytes to start reading.</desc>
10683 </param>
10684 <param name="toRead" type="unsigned long" dir="in">
10685 <desc>Number of bytes to read.</desc>
10686 </param>
10687 <param name="timeoutMS" type="unsigned long" dir="in">
10688 <desc>
10689 Timeout (in ms) to wait for the operation to complete.
10690 Pass 0 for an infinite timeout.
10691 </desc>
10692 </param>
10693 <param name="data" type="octet" dir="return" safearray="yes">
10694 <desc>Array of data read.</desc>
10695 </param>
10696 </method>
10697
10698 <method name="seek">
10699 <desc>
10700 Changes the read and write position of this file.
10701
10702 <result name="E_NOTIMPL">
10703 The method is not implemented yet.
10704 </result>
10705 </desc>
10706 <param name="offset" type="long long" dir="in">
10707 <desc>Offset to seek.</desc>
10708 </param>
10709 <param name="whence" type="FileSeekType" dir="in">
10710 <desc>
10711 Seek mode; see <link to="FileSeekType"/> for more information.
10712 </desc>
10713 </param>
10714 </method>
10715
10716 <method name="setACL">
10717 <desc>
10718 Sets the ACL of this file.
10719
10720 <result name="E_NOTIMPL">
10721 The method is not implemented yet.
10722 </result>
10723 </desc>
10724 <param name="acl" type="wstring" dir="in">
10725 <desc>ACL string to set.</desc>
10726 </param>
10727 </method>
10728
10729 <method name="write">
10730 <desc>
10731 Writes bytes to this file.
10732 </desc>
10733 <param name="data" type="octet" dir="in" safearray="yes">
10734 <desc>
10735 Array of bytes to write. The size of the array also specifies
10736 how much to write.
10737 </desc>
10738 </param>
10739 <param name="timeoutMS" type="unsigned long" dir="in">
10740 <desc>
10741 Timeout (in ms) to wait for the operation to complete.
10742 Pass 0 for an infinite timeout.
10743 </desc>
10744 </param>
10745 <param name="written" type="unsigned long" dir="return">
10746 <desc>How much bytes were written.</desc>
10747 </param>
10748 </method>
10749
10750 <method name="writeAt">
10751 <desc>
10752 Writes bytes at a certain offset to this file.
10753
10754 <result name="E_NOTIMPL">
10755 The method is not implemented yet.
10756 </result>
10757 </desc>
10758 <param name="offset" type="long long" dir="in">
10759 <desc>Offset in bytes to start writing.</desc>
10760 </param>
10761 <param name="data" type="octet" dir="in" safearray="yes">
10762 <desc>
10763 Array of bytes to write. The size of the array also specifies
10764 how much to write.
10765 </desc>
10766 </param>
10767 <param name="timeoutMS" type="unsigned long" dir="in">
10768 <desc>
10769 Timeout (in ms) to wait for the operation to complete.
10770 Pass 0 for an infinite timeout.
10771 </desc>
10772 </param>
10773 <param name="written" type="unsigned long" dir="return">
10774 <desc>How much bytes were written.</desc>
10775 </param>
10776 </method>
10777
10778 </interface>
10779
10780 <interface
10781 name="IGuestFile" extends="IFile"
10782 uuid="60661aec-145f-4d11-b80e-8ea151598093"
10783 wsmap="managed"
10784 >
10785 <desc>
10786 Implementation of the <link to="IFile" /> object
10787 for files on the guest.
10788 </desc>
10789 </interface>
10790
10791 <interface
10792 name="IFsObjInfo" extends="$unknown"
10793 uuid="4047ba30-7006-4966-ae86-94164e5e20eb"
10794 wsmap="managed"
10795 >
10796 <desc>
10797 Abstract parent interface for VirtualBox file system object information.
10798 This can be information about a file or a directory, for example.
10799 </desc>
10800
10801 <attribute name="accessTime" type="long long" readonly="yes">
10802 <desc>
10803 Time of last access (st_atime).
10804 </desc>
10805 </attribute>
10806 <attribute name="allocatedSize" type="long long" readonly="yes">
10807 <desc>
10808 Disk allocation size (st_blocks * DEV_BSIZE).
10809 </desc>
10810 </attribute>
10811 <attribute name="birthTime" type="long long" readonly="yes">
10812 <desc>
10813 Time of file birth (st_birthtime).
10814 </desc>
10815 </attribute>
10816 <attribute name="changeTime" type="long long" readonly="yes">
10817 <desc>
10818 Time of last status change (st_ctime).
10819 </desc>
10820 </attribute>
10821 <attribute name="deviceNumber" type="unsigned long" readonly="yes">
10822 <desc>
10823 The device number of a character or block device type object (st_rdev).
10824 </desc>
10825 </attribute>
10826 <attribute name="fileAttributes" type="wstring" readonly="yes">
10827 <desc>
10828 File attributes. Not implemented yet.
10829 </desc>
10830 </attribute>
10831 <attribute name="generationId" type="unsigned long" readonly="yes">
10832 <desc>
10833 The current generation number (st_gen).
10834 </desc>
10835 </attribute>
10836 <attribute name="GID" type="unsigned long" readonly="yes">
10837 <desc>
10838 The group the filesystem object is assigned (st_gid).
10839 </desc>
10840 </attribute>
10841 <attribute name="groupName" type="wstring" readonly="yes">
10842 <desc>
10843 The group name.
10844 </desc>
10845 </attribute>
10846 <attribute name="hardLinks" type="unsigned long" readonly="yes">
10847 <desc>
10848 Number of hard links to this filesystem object (st_nlink).
10849 </desc>
10850 </attribute>
10851 <attribute name="modificationTime" type="long long" readonly="yes">
10852 <desc>
10853 Time of last data modification (st_mtime).
10854 </desc>
10855 </attribute>
10856 <attribute name="name" type="wstring" readonly="yes">
10857 <desc>
10858 The object's name.
10859 </desc>
10860 </attribute>
10861 <attribute name="nodeId" type="long long" readonly="yes">
10862 <desc>
10863 The unique identifier (within the filesystem) of this filesystem object (st_ino).
10864 </desc>
10865 </attribute>
10866 <attribute name="nodeIdDevice" type="unsigned long" readonly="yes">
10867 <desc>
10868 The device number of the device which this filesystem object resides on (st_dev).
10869 </desc>
10870 </attribute>
10871 <attribute name="objectSize" type="long long" readonly="yes">
10872 <desc>
10873 The logical size (st_size). For normal files this is the size of the file.
10874 For symbolic links, this is the length of the path name contained in the
10875 symbolic link. For other objects this fields needs to be specified.
10876 </desc>
10877 </attribute>
10878 <attribute name="type" type="FsObjType" readonly="yes">
10879 <desc>
10880 The object type. See <link to="FsObjType" /> for more.
10881 </desc>
10882 </attribute>
10883 <attribute name="UID" type="unsigned long" readonly="yes">
10884 <desc>
10885 The user owning the filesystem object (st_uid).
10886 </desc>
10887 </attribute>
10888 <attribute name="userFlags" type="unsigned long" readonly="yes">
10889 <desc>
10890 User flags (st_flags).
10891 </desc>
10892 </attribute>
10893 <attribute name="userName" type="wstring" readonly="yes">
10894 <desc>
10895 The user name.
10896 </desc>
10897 </attribute>
10898
10899 </interface>
10900
10901 <interface
10902 name="IGuestFsObjInfo" extends="IFsObjInfo"
10903 uuid="d5cf678e-3484-4e4a-ac55-329e15462e18"
10904 wsmap="managed"
10905 >
10906 <desc>
10907 Represents the guest implementation of the
10908 <link to="IFsObjInfo" /> object.
10909 </desc>
10910 </interface>
10911
10912 <interface
10913 name="IGuest" extends="$unknown"
10914 uuid="19c32350-0618-4ede-b0c3-2b4311bf0d9b"
10915 wsmap="managed"
10916 >
10917 <desc>
10918 The IGuest interface represents information about the operating system
10919 running inside the virtual machine. Used in
10920 <link to="IConsole::guest"/>.
10921
10922 IGuest provides information about the guest operating system, whether
10923 Guest Additions are installed and other OS-specific virtual machine
10924 properties.
10925 </desc>
10926
10927 <attribute name="OSTypeId" type="wstring" readonly="yes">
10928 <desc>
10929 Identifier of the Guest OS type as reported by the Guest
10930 Additions.
10931 You may use <link to="IVirtualBox::getGuestOSType"/> to obtain
10932 an IGuestOSType object representing details about the given
10933 Guest OS type.
10934 <note>
10935 If Guest Additions are not installed, this value will be
10936 the same as <link to="IMachine::OSTypeId"/>.
10937 </note>
10938 </desc>
10939 </attribute>
10940
10941 <attribute name="additionsRunLevel" type="AdditionsRunLevelType" readonly="yes">
10942 <desc>
10943 Current run level of the Guest Additions.
10944 </desc>
10945 </attribute>
10946
10947 <attribute name="additionsVersion" type="wstring" readonly="yes">
10948 <desc>
10949 Version of the Guest Additions in the same format as
10950 <link to="IVirtualBox::version"/>.
10951 </desc>
10952 </attribute>
10953
10954 <attribute name="additionsRevision" type="unsigned long" readonly="yes">
10955 <desc>
10956 The internal build revision number of the additions.
10957
10958 See also <link to="IVirtualBox::revision"/>.
10959 </desc>
10960 </attribute>
10961
10962 <attribute name="facilities" type="IAdditionsFacility" readonly="yes" safearray="yes">
10963 <desc>
10964 Array of current known facilities. Only returns facilities where a status is known,
10965 e.g. facilities with an unknown status will not be returned.
10966 </desc>
10967 </attribute>
10968
10969 <attribute name="sessions" type="IGuestSession" readonly="yes" safearray="yes">
10970 <desc>Returns a collection of all opened guest sessions.</desc>
10971 </attribute>
10972
10973 <attribute name="memoryBalloonSize" type="unsigned long">
10974 <desc>Guest system memory balloon size in megabytes (transient property).</desc>
10975 </attribute>
10976
10977 <attribute name="statisticsUpdateInterval" type="unsigned long">
10978 <desc>Interval to update guest statistics in seconds.</desc>
10979 </attribute>
10980
10981 <method name="internalGetStatistics">
10982 <desc>
10983 Internal method; do not use as it might change at any time.
10984 </desc>
10985 <param name="cpuUser" type="unsigned long" dir="out">
10986 <desc>Percentage of processor time spent in user mode as seen by the guest.</desc>
10987 </param>
10988 <param name="cpuKernel" type="unsigned long" dir="out">
10989 <desc>Percentage of processor time spent in kernel mode as seen by the guest.</desc>
10990 </param>
10991 <param name="cpuIdle" type="unsigned long" dir="out">
10992 <desc>Percentage of processor time spent idling as seen by the guest.</desc>
10993 </param>
10994 <param name="memTotal" type="unsigned long" dir="out">
10995 <desc>Total amount of physical guest RAM.</desc>
10996 </param>
10997 <param name="memFree" type="unsigned long" dir="out">
10998 <desc>Free amount of physical guest RAM.</desc>
10999 </param>
11000 <param name="memBalloon" type="unsigned long" dir="out">
11001 <desc>Amount of ballooned physical guest RAM.</desc>
11002 </param>
11003 <param name="memShared" type="unsigned long" dir="out">
11004 <desc>Amount of shared physical guest RAM.</desc>
11005 </param>
11006 <param name="memCache" type="unsigned long" dir="out">
11007 <desc>Total amount of guest (disk) cache memory.</desc>
11008 </param>
11009 <param name="pagedTotal" type="unsigned long" dir="out">
11010 <desc>Total amount of space in the page file.</desc>
11011 </param>
11012 <param name="memAllocTotal" type="unsigned long" dir="out">
11013 <desc>Total amount of memory allocated by the hypervisor.</desc>
11014 </param>
11015 <param name="memFreeTotal" type="unsigned long" dir="out">
11016 <desc>Total amount of free memory available in the hypervisor.</desc>
11017 </param>
11018 <param name="memBalloonTotal" type="unsigned long" dir="out">
11019 <desc>Total amount of memory ballooned by the hypervisor.</desc>
11020 </param>
11021 <param name="memSharedTotal" type="unsigned long" dir="out">
11022 <desc>Total amount of shared memory in the hypervisor.</desc>
11023 </param>
11024 </method>
11025
11026 <method name="getFacilityStatus">
11027 <desc>
11028 Get the current status of a Guest Additions facility.
11029 </desc>
11030 <param name="facility" type="AdditionsFacilityType" dir="in">
11031 <desc>Facility to check status for.</desc>
11032 </param>
11033 <param name="timestamp" type="long long" dir="out">
11034 <desc>Timestamp (in ms) of last status update seen by the host.</desc>
11035 </param>
11036 <param name="status" type="AdditionsFacilityStatus" dir="return">
11037 <desc>The current (latest) facility status.</desc>
11038 </param>
11039 </method>
11040
11041 <method name="getAdditionsStatus">
11042 <desc>
11043 Retrieve the current status of a certain Guest Additions run level.
11044
11045 <result name="VBOX_E_NOT_SUPPORTED">
11046 Wrong status level specified.
11047 </result>
11048
11049 </desc>
11050 <param name="level" type="AdditionsRunLevelType" dir="in">
11051 <desc>Status level to check</desc>
11052 </param>
11053 <param name="active" type="boolean" dir="return">
11054 <desc>Flag whether the status level has been reached or not</desc>
11055 </param>
11056 </method>
11057
11058 <method name="setCredentials">
11059 <desc>
11060 Store login credentials that can be queried by guest operating
11061 systems with Additions installed. The credentials are transient
11062 to the session and the guest may also choose to erase them. Note
11063 that the caller cannot determine whether the guest operating system
11064 has queried or made use of the credentials.
11065
11066 <result name="VBOX_E_VM_ERROR">
11067 VMM device is not available.
11068 </result>
11069
11070 </desc>
11071 <param name="userName" type="wstring" dir="in">
11072 <desc>User name string, can be empty</desc>
11073 </param>
11074 <param name="password" type="wstring" dir="in">
11075 <desc>Password string, can be empty</desc>
11076 </param>
11077 <param name="domain" type="wstring" dir="in">
11078 <desc>Domain name (guest logon scheme specific), can be empty</desc>
11079 </param>
11080 <param name="allowInteractiveLogon" type="boolean" dir="in">
11081 <desc>
11082 Flag whether the guest should alternatively allow the user to
11083 interactively specify different credentials. This flag might
11084 not be supported by all versions of the Additions.
11085 </desc>
11086 </param>
11087 </method>
11088
11089 <method name="dragHGEnter">
11090 <desc>
11091 Informs the guest about a Drag and Drop enter event.
11092
11093 This is used in Host - Guest direction.
11094
11095 <result name="VBOX_E_VM_ERROR">
11096 VMM device is not available.
11097 </result>
11098
11099 </desc>
11100 <param name="screenId" type="unsigned long" dir="in">
11101 <desc>The screen id where the Drag and Drop event occured.</desc>
11102 </param>
11103 <param name="y" type="unsigned long" dir="in">
11104 <desc>y-position of the event.</desc>
11105 </param>
11106 <param name="x" type="unsigned long" dir="in">
11107 <desc>x-position of the event.</desc>
11108 </param>
11109 <param name="defaultAction" type="DragAndDropAction" dir="in">
11110 <desc>The default action to use.</desc>
11111 </param>
11112 <param name="allowedActions" type="DragAndDropAction" dir="in" safearray="yes">
11113 <desc>The actions which are allowed.</desc>
11114 </param>
11115 <param name="formats" type="wstring" dir="in" safearray="yes">
11116 <desc>The supported mime types.</desc>
11117 </param>
11118 <param name="resultAction" type="DragAndDropAction" dir="return">
11119 <desc>The resulting action of this event.</desc>
11120 </param>
11121 </method>
11122
11123 <method name="dragHGMove">
11124 <desc>
11125 Informs the guest about a Drag and Drop move event.
11126
11127 This is used in Host - Guest direction.
11128
11129 <result name="VBOX_E_VM_ERROR">
11130 VMM device is not available.
11131 </result>
11132
11133 </desc>
11134 <param name="screenId" type="unsigned long" dir="in">
11135 <desc>The screen id where the Drag and Drop event occured.</desc>
11136 </param>
11137 <param name="x" type="unsigned long" dir="in">
11138 <desc>x-position of the event.</desc>
11139 </param>
11140 <param name="y" type="unsigned long" dir="in">
11141 <desc>y-position of the event.</desc>
11142 </param>
11143 <param name="defaultAction" type="DragAndDropAction" dir="in">
11144 <desc>The default action to use.</desc>
11145 </param>
11146 <param name="allowedActions" type="DragAndDropAction" dir="in" safearray="yes">
11147 <desc>The actions which are allowed.</desc>
11148 </param>
11149 <param name="formats" type="wstring" dir="in" safearray="yes">
11150 <desc>The supported mime types.</desc>
11151 </param>
11152 <param name="resultAction" type="DragAndDropAction" dir="return">
11153 <desc>The resulting action of this event.</desc>
11154 </param>
11155 </method>
11156
11157 <method name="dragHGLeave">
11158 <desc>
11159 Informs the guest about a Drag and Drop leave event.
11160
11161 This is used in Host - Guest direction.
11162
11163 <result name="VBOX_E_VM_ERROR">
11164 VMM device is not available.
11165 </result>
11166
11167 </desc>
11168 <param name="screenId" type="unsigned long" dir="in">
11169 <desc>The screen id where the Drag and Drop event occured.</desc>
11170 </param>
11171 </method>
11172
11173 <method name="dragHGDrop">
11174 <desc>
11175 Informs the guest about a drop event.
11176
11177 This is used in Host - Guest direction.
11178
11179 <result name="VBOX_E_VM_ERROR">
11180 VMM device is not available.
11181 </result>
11182
11183 </desc>
11184 <param name="screenId" type="unsigned long" dir="in">
11185 <desc>The screen id where the Drag and Drop event occured.</desc>
11186 </param>
11187 <param name="x" type="unsigned long" dir="in">
11188 <desc>x-position of the event.</desc>
11189 </param>
11190 <param name="y" type="unsigned long" dir="in">
11191 <desc>y-position of the event.</desc>
11192 </param>
11193 <param name="defaultAction" type="DragAndDropAction" dir="in">
11194 <desc>The default action to use.</desc>
11195 </param>
11196 <param name="allowedActions" type="DragAndDropAction" dir="in" safearray="yes">
11197 <desc>The actions which are allowed.</desc>
11198 </param>
11199 <param name="formats" type="wstring" dir="in" safearray="yes">
11200 <desc>The supported mime types.</desc>
11201 </param>
11202 <param name="format" type="wstring" dir="out">
11203 <desc>The resulting format of this event.</desc>
11204 </param>
11205 <param name="resultAction" type="DragAndDropAction" dir="return">
11206 <desc>The resulting action of this event.</desc>
11207 </param>
11208 </method>
11209
11210 <method name="dragHGPutData">
11211 <desc>
11212 Informs the guest about a drop data event.
11213
11214 This is used in Host - Guest direction.
11215
11216 <result name="VBOX_E_VM_ERROR">
11217 VMM device is not available.
11218 </result>
11219
11220 </desc>
11221 <param name="screenId" type="unsigned long" dir="in">
11222 <desc>The screen id where the Drag and Drop event occured.</desc>
11223 </param>
11224 <param name="format" type="wstring" dir="in">
11225 <desc>The mime type the data is in.</desc>
11226 </param>
11227 <param name="data" type="octet" dir="in" safearray="yes">
11228 <desc>The actual data.</desc>
11229 </param>
11230 <param name="progress" type="IProgress" dir="return">
11231 <desc>Progress object to track the operation completion.</desc>
11232 </param>
11233 </method>
11234
11235 <method name="dragGHPending">
11236 <desc>
11237 Ask the guest if there is any Drag and Drop operation pending in the guest.
11238
11239 If no Drag and Drop operation is pending currently, Ignore is returned.
11240
11241 This is used in Guest - Host direction.
11242
11243 <result name="VBOX_E_VM_ERROR">
11244 VMM device is not available.
11245 </result>
11246
11247 </desc>
11248 <param name="screenId" type="unsigned long" dir="in">
11249 <desc>The screen id where the Drag and Drop event occured.</desc>
11250 </param>
11251 <param name="format" type="wstring" dir="out" safearray="yes">
11252 <desc>On return the supported mime types.</desc>
11253 </param>
11254 <param name="allowedActions" type="DragAndDropAction" dir="out" safearray="yes">
11255 <desc>On return the actions which are allowed.</desc>
11256 </param>
11257 <param name="defaultAction" type="DragAndDropAction" dir="return">
11258 <desc>On return the default action to use.</desc>
11259 </param>
11260 </method>
11261
11262 <method name="dragGHDropped">
11263 <desc>
11264 Informs the guest that a drop event occured for a pending Drag and Drop event.
11265
11266 This is used in Guest - Host direction.
11267
11268 <result name="VBOX_E_VM_ERROR">
11269 VMM device is not available.
11270 </result>
11271
11272 </desc>
11273
11274 <param name="format" type="wstring" dir="in">
11275 <desc>The mime type the data must be in.</desc>
11276 </param>
11277 <param name="action" type="DragAndDropAction" dir="in">
11278 <desc>The action to use.</desc>
11279 </param>
11280 <param name="progress" type="IProgress" dir="return">
11281 <desc>Progress object to track the operation completion.</desc>
11282 </param>
11283 </method>
11284
11285 <method name="dragGHGetData">
11286 <desc>
11287 Fetch the data of a previously Drag and Drop event from the guest.
11288
11289 This is used in Guest - Host direction.
11290
11291 <result name="VBOX_E_VM_ERROR">
11292 VMM device is not available.
11293 </result>
11294
11295 </desc>
11296
11297 <param name="data" type="octet" safearray="yes" dir="return">
11298 <desc>The actual data.</desc>
11299 </param>
11300 </method>
11301
11302 <method name="createSession">
11303 <desc>
11304 Creates a new guest session for controlling the guest.
11305
11306 A guest session represents one impersonated user account on the guest, so
11307 every operation will use the same credentials specified when creating
11308 the session object via <link to="IGuest::createSession"/>. Anonymous
11309 sessions, that is, sessions without specifying a valid
11310 user account on the guest are not allowed due to security reasons.
11311
11312 There can be a maximum of 32 sessions at once per VM. Each session keeps
11313 track of its started guest processes, opened guest files or guest directories.
11314 To work on guest files or directories a guest session offers methods to open
11315 or create such objects (see <link to="IGuestSession::fileOpen"/> or
11316 <link to="IGuestSession::directoryOpen"/> for example).
11317
11318 When done with either of these objects, including the guest session itself,
11319 use the appropriate close() method to let the object do its cleanup work.
11320
11321 Every guest session has its own environment variable block which gets
11322 automatically applied when starting a new guest process via
11323 <link to="IGuestSession::processCreate"/> or <link to="IGuestSession::processCreateEx"/>.
11324 To override (or unset) certain environment variables already set by the
11325 guest session, one can specify a per-process environment block when using
11326 one of the both above mentioned process creation calls.
11327
11328 Closing a session via <link to="IGuestSession::close" /> will try to close
11329 all the mentioned objects above unless these objects are still used by
11330 a client.
11331 </desc>
11332 <param name="user" type="wstring" dir="in">
11333 <desc>
11334 User name this session will be using to control the guest; has to exist
11335 and have the appropriate rights to execute programs in the VM. Must not
11336 be empty.
11337 </desc>
11338 </param>
11339 <param name="password" type="wstring" dir="in">
11340 <desc>
11341 Password of the user account to be used. Empty passwords are allowed.
11342 </desc>
11343 </param>
11344 <param name="domain" type="wstring" dir="in">
11345 <desc>
11346 Domain name of the user account to be used if the guest is part of
11347 a domain. Optional. This feature is not implemented yet.
11348 </desc>
11349 </param>
11350 <param name="sessionName" type="wstring" dir="in">
11351 <desc>
11352 The session's friendly name. Optional, can be empty.
11353 </desc>
11354 </param>
11355 <param name="guestSession" type="IGuestSession" dir="return">
11356 <desc>
11357 The newly created session object.
11358 </desc>
11359 </param>
11360 </method>
11361
11362 <method name="findSession">
11363 <desc>
11364 Finds guest sessions by their friendly name and returns an interface
11365 array with all found guest sessions.
11366 </desc>
11367 <param name="sessionName" type="wstring" dir="in">
11368 <desc>
11369 The session's friendly name to find. Wildcards like ? and * are allowed.
11370 </desc>
11371 </param>
11372 <param name="sessions" type="IGuestSession" safearray="yes" dir="return">
11373 <desc>
11374 Array with all guest sessions found matching the name specified.
11375 </desc>
11376 </param>
11377 </method>
11378
11379 <method name="updateGuestAdditions">
11380 <desc>
11381 Automatically updates already installed Guest Additions in a VM.
11382
11383 At the moment only Windows guests are supported.
11384
11385 Because the VirtualBox Guest Additions drivers are not WHQL-certified
11386 yet there might be warning dialogs during the actual Guest Additions
11387 update. These need to be confirmed manually in order to continue the
11388 installation process. This applies to Windows 2000 and Windows XP guests
11389 and therefore these guests can't be updated in a fully automated fashion
11390 without user interaction. However, to start a Guest Additions update for
11391 the mentioned Windows versions anyway, the flag
11392 AdditionsUpdateFlag_WaitForUpdateStartOnly can be specified. See
11393 <link to="AdditionsUpdateFlag"/> for more information.
11394
11395 <result name="VBOX_E_NOT_SUPPORTED">
11396 Guest OS is not supported for automated Guest Additions updates or the
11397 already installed Guest Additions are not ready yet.
11398 </result>
11399
11400 <result name="VBOX_E_IPRT_ERROR">
11401 Error while updating.
11402 </result>
11403
11404 </desc>
11405 <param name="source" type="wstring" dir="in">
11406 <desc>
11407 Path to the Guest Additions .ISO file to use for the upate.
11408 </desc>
11409 </param>
11410 <param name="flags" type="AdditionsUpdateFlag" dir="in" safearray="yes">
11411 <desc>
11412 <link to="AdditionsUpdateFlag"/> flags.
11413 </desc>
11414 </param>
11415 <param name="progress" type="IProgress" dir="return">
11416 <desc>Progress object to track the operation completion.</desc>
11417 </param>
11418 </method>
11419
11420 </interface>
11421
11422
11423 <!--
11424 // IProgress
11425 /////////////////////////////////////////////////////////////////////////
11426 -->
11427
11428 <interface
11429 name="IProgress" extends="$unknown"
11430 uuid="c20238e4-3221-4d3f-8891-81ce92d9f913"
11431 wsmap="managed"
11432 >
11433 <desc>
11434 The IProgress interface is used to track and control
11435 asynchronous tasks within VirtualBox.
11436
11437 An instance of this is returned every time VirtualBox starts
11438 an asynchronous task (in other words, a separate thread) which
11439 continues to run after a method call returns. For example,
11440 <link to="IConsole::saveState" />, which saves the state of
11441 a running virtual machine, can take a long time to complete.
11442 To be able to display a progress bar, a user interface such as
11443 the VirtualBox graphical user interface can use the IProgress
11444 object returned by that method.
11445
11446 Note that IProgress is a "read-only" interface in the sense
11447 that only the VirtualBox internals behind the Main API can
11448 create and manipulate progress objects, whereas client code
11449 can only use the IProgress object to monitor a task's
11450 progress and, if <link to="#cancelable" /> is @c true,
11451 cancel the task by calling <link to="#cancel" />.
11452
11453 A task represented by IProgress consists of either one or
11454 several sub-operations that run sequentially, one by one (see
11455 <link to="#operation" /> and <link to="#operationCount" />).
11456 Every operation is identified by a number (starting from 0)
11457 and has a separate description.
11458
11459 You can find the individual percentage of completion of the current
11460 operation in <link to="#operationPercent" /> and the
11461 percentage of completion of the task as a whole
11462 in <link to="#percent" />.
11463
11464 Similarly, you can wait for the completion of a particular
11465 operation via <link to="#waitForOperationCompletion" /> or
11466 for the completion of the whole task via
11467 <link to="#waitForCompletion" />.
11468 </desc>
11469
11470 <attribute name="id" type="uuid" mod="string" readonly="yes">
11471 <desc>ID of the task.</desc>
11472 </attribute>
11473
11474 <attribute name="description" type="wstring" readonly="yes">
11475 <desc>Description of the task.</desc>
11476 </attribute>
11477
11478 <attribute name="initiator" type="$unknown" readonly="yes">
11479 <desc>Initiator of the task.</desc>
11480 </attribute>
11481
11482 <attribute name="cancelable" type="boolean" readonly="yes">
11483 <desc>Whether the task can be interrupted.</desc>
11484 </attribute>
11485
11486 <attribute name="percent" type="unsigned long" readonly="yes">
11487 <desc>
11488 Current progress value of the task as a whole, in percent.
11489 This value depends on how many operations are already complete.
11490 Returns 100 if <link to="#completed" /> is @c true.
11491 </desc>
11492 </attribute>
11493
11494 <attribute name="timeRemaining" type="long" readonly="yes">
11495 <desc>
11496 Estimated remaining time until the task completes, in
11497 seconds. Returns 0 once the task has completed; returns -1
11498 if the remaining time cannot be computed, in particular if
11499 the current progress is 0.
11500
11501 Even if a value is returned, the estimate will be unreliable
11502 for low progress values. It will become more reliable as the
11503 task progresses; it is not recommended to display an ETA
11504 before at least 20% of a task have completed.
11505 </desc>
11506 </attribute>
11507
11508 <attribute name="completed" type="boolean" readonly="yes">
11509 <desc>Whether the task has been completed.</desc>
11510 </attribute>
11511
11512 <attribute name="canceled" type="boolean" readonly="yes">
11513 <desc>Whether the task has been canceled.</desc>
11514 </attribute>
11515
11516 <attribute name="resultCode" type="long" readonly="yes">
11517 <desc>
11518 Result code of the progress task.
11519 Valid only if <link to="#completed"/> is @c true.
11520 </desc>
11521 </attribute>
11522
11523 <attribute name="errorInfo" type="IVirtualBoxErrorInfo" readonly="yes">
11524 <desc>
11525 Extended information about the unsuccessful result of the
11526 progress operation. May be @c null if no extended information
11527 is available.
11528 Valid only if <link to="#completed"/> is @c true and
11529 <link to="#resultCode"/> indicates a failure.
11530 </desc>
11531 </attribute>
11532
11533 <attribute name="operationCount" type="unsigned long" readonly="yes">
11534 <desc>
11535 Number of sub-operations this task is divided into.
11536 Every task consists of at least one suboperation.
11537 </desc>
11538 </attribute>
11539
11540 <attribute name="operation" type="unsigned long" readonly="yes">
11541 <desc>Number of the sub-operation being currently executed.</desc>
11542 </attribute>
11543
11544 <attribute name="operationDescription" type="wstring" readonly="yes">
11545 <desc>
11546 Description of the sub-operation being currently executed.
11547 </desc>
11548 </attribute>
11549
11550 <attribute name="operationPercent" type="unsigned long" readonly="yes">
11551 <desc>Progress value of the current sub-operation only, in percent.</desc>
11552 </attribute>
11553
11554 <attribute name="operationWeight" type="unsigned long" readonly="yes">
11555 <desc>Weight value of the current sub-operation only.</desc>
11556 </attribute>
11557
11558 <attribute name="timeout" type="unsigned long">
11559 <desc>
11560 When non-zero, this specifies the number of milliseconds after which
11561 the operation will automatically be canceled. This can only be set on
11562 cancelable objects.
11563 </desc>
11564 </attribute>
11565
11566 <method name="setCurrentOperationProgress">
11567 <desc>Internal method, not to be called externally.</desc>
11568 <param name="percent" type="unsigned long" dir="in" />
11569 </method>
11570 <method name="setNextOperation">
11571 <desc>Internal method, not to be called externally.</desc>
11572 <param name="nextOperationDescription" type="wstring" dir="in" />
11573 <param name="nextOperationsWeight" type="unsigned long" dir="in" />
11574 </method>
11575
11576 <method name="waitForCompletion">
11577 <desc>
11578 Waits until the task is done (including all sub-operations)
11579 with a given timeout in milliseconds; specify -1 for an indefinite wait.
11580
11581 Note that the VirtualBox/XPCOM/COM/native event queues of the calling
11582 thread are not processed while waiting. Neglecting event queues may
11583 have dire consequences (degrade performance, resource hogs,
11584 deadlocks, etc.), this is specially so for the main thread on
11585 platforms using XPCOM. Callers are adviced wait for short periods
11586 and service their event queues between calls, or to create a worker
11587 thread to do the waiting.
11588
11589 <result name="VBOX_E_IPRT_ERROR">
11590 Failed to wait for task completion.
11591 </result>
11592 </desc>
11593
11594 <param name="timeout" type="long" dir="in">
11595 <desc>
11596 Maximum time in milliseconds to wait or -1 to wait indefinitely.
11597 </desc>
11598 </param>
11599 </method>
11600
11601 <method name="waitForOperationCompletion">
11602 <desc>
11603 Waits until the given operation is done with a given timeout in
11604 milliseconds; specify -1 for an indefinite wait.
11605
11606 See <link to="#waitForCompletion"> for event queue considerations.</link>
11607
11608 <result name="VBOX_E_IPRT_ERROR">
11609 Failed to wait for operation completion.
11610 </result>
11611
11612 </desc>
11613 <param name="operation" type="unsigned long" dir="in">
11614 <desc>
11615 Number of the operation to wait for.
11616 Must be less than <link to="#operationCount"/>.
11617 </desc>
11618 </param>
11619 <param name="timeout" type="long" dir="in">
11620 <desc>
11621 Maximum time in milliseconds to wait or -1 to wait indefinitely.
11622 </desc>
11623 </param>
11624 </method>
11625
11626 <method name="waitForAsyncProgressCompletion">
11627 <desc>
11628 Waits until the other task is completed (including all
11629 sub-operations) and forward all changes from the other progress to
11630 this progress. This means sub-operation number, description, percent
11631 and so on.
11632
11633 You have to take care on setting up at least the same count on
11634 sub-operations in this progress object like there are in the other
11635 progress object.
11636
11637 If the other progress object supports cancel and this object gets any
11638 cancel request (when here enabled as well), it will be forwarded to
11639 the other progress object.
11640
11641 If there is an error in the other progress, this error isn't
11642 automatically transfered to this progress object. So you have to
11643 check any operation error within the other progress object, after
11644 this method returns.
11645 </desc>
11646
11647 <param name="pProgressAsync" type="IProgress" dir="in">
11648 <desc>
11649 The progress object of the asynchrony process.
11650 </desc>
11651 </param>
11652 </method>
11653
11654 <method name="cancel">
11655 <desc>
11656 Cancels the task.
11657 <note>
11658 If <link to="#cancelable"/> is @c false, then this method will fail.
11659 </note>
11660
11661 <result name="VBOX_E_INVALID_OBJECT_STATE">
11662 Operation cannot be canceled.
11663 </result>
11664
11665 </desc>
11666 </method>
11667
11668 </interface>
11669
11670 <!--
11671 // ISnapshot
11672 /////////////////////////////////////////////////////////////////////////
11673 -->
11674
11675 <interface
11676 name="ISnapshot" extends="$unknown"
11677 uuid="0472823b-c6e7-472a-8e9f-d732e86b8463"
11678 wsmap="managed"
11679 >
11680 <desc>
11681 The ISnapshot interface represents a snapshot of the virtual
11682 machine.
11683
11684 Together with the differencing media that are created
11685 when a snapshot is taken, a machine can be brought back to
11686 the exact state it was in when the snapshot was taken.
11687
11688 The ISnapshot interface has no methods, only attributes; snapshots
11689 are controlled through methods of the <link to="IConsole" /> interface
11690 which also manage the media associated with the snapshot.
11691 The following operations exist:
11692
11693 <ul>
11694 <li><link to="IConsole::takeSnapshot"/> creates a new snapshot
11695 by creating new, empty differencing images for the machine's
11696 media and saving the VM settings and (if the VM is running)
11697 the current VM state in the snapshot.
11698
11699 The differencing images will then receive all data written to
11700 the machine's media, while their parent (base) images
11701 remain unmodified after the snapshot has been taken (see
11702 <link to="IMedium" /> for details about differencing images).
11703 This simplifies restoring a machine to the state of a snapshot:
11704 only the differencing images need to be deleted.
11705
11706 The current machine state is not changed by taking a snapshot
11707 except that <link to="IMachine::currentSnapshot" /> is set to
11708 the newly created snapshot, which is also added to the machine's
11709 snapshots tree.
11710 </li>
11711
11712 <li><link to="IConsole::restoreSnapshot"/> resets a machine to
11713 the state of a previous snapshot by deleting the differencing
11714 image of each of the machine's media and setting the machine's
11715 settings and state to the state that was saved in the snapshot (if any).
11716
11717 This destroys the machine's current state. After calling this,
11718 <link to="IMachine::currentSnapshot" /> points to the snapshot
11719 that was restored.
11720 </li>
11721
11722 <li><link to="IConsole::deleteSnapshot"/> deletes a snapshot
11723 without affecting the current machine state.
11724
11725 This does not change the current machine state, but instead frees the
11726 resources allocated when the snapshot was taken: the settings and machine
11727 state file are deleted (if any), and the snapshot's differencing image for
11728 each of the machine's media gets merged with its parent image.
11729
11730 Neither the current machine state nor other snapshots are affected
11731 by this operation, except that parent media will be modified
11732 to contain the disk data associated with the snapshot being deleted.
11733
11734 When deleting the current snapshot, the <link to="IMachine::currentSnapshot" />
11735 attribute is set to the current snapshot's parent or @c null if it
11736 has no parent. Otherwise the attribute is unchanged.
11737 </li>
11738 </ul>
11739
11740 Each snapshot contains a copy of virtual machine's settings (hardware
11741 configuration etc.). This copy is contained in an immutable (read-only)
11742 instance of <link to="IMachine" /> which is available from the snapshot's
11743 <link to="#machine" /> attribute. When restoring the snapshot, these
11744 settings are copied back to the original machine.
11745
11746 In addition, if the machine was running when the
11747 snapshot was taken (<link to="IMachine::state"/> is <link to="MachineState_Running"/>),
11748 the current VM state is saved in the snapshot (similarly to what happens
11749 when a VM's state is saved). The snapshot is then said to be <i>online</i>
11750 because when restoring it, the VM will be running.
11751
11752 If the machine was in <link to="MachineState_Saved">saved</link> saved,
11753 the snapshot receives a copy of the execution state file
11754 (<link to="IMachine::stateFilePath"/>).
11755
11756 Otherwise, if the machine was not running (<link to="MachineState_PoweredOff"/>
11757 or <link to="MachineState_Aborted"/>), the snapshot is <i>offline</i>;
11758 it then contains a so-called "zero execution state", representing a
11759 machine that is powered off.
11760 </desc>
11761
11762 <attribute name="id" type="uuid" mod="string" readonly="yes">
11763 <desc>UUID of the snapshot.</desc>
11764 </attribute>
11765
11766 <attribute name="name" type="wstring">
11767 <desc>Short name of the snapshot.
11768 <note>Setting this attribute causes <link to="IMachine::saveSettings" /> to
11769 be called implicitly.</note>
11770 </desc>
11771 </attribute>
11772
11773 <attribute name="description" type="wstring">
11774 <desc>Optional description of the snapshot.
11775 <note>Setting this attribute causes <link to="IMachine::saveSettings" /> to
11776 be called implicitly.</note>
11777 </desc>
11778 </attribute>
11779
11780 <attribute name="timeStamp" type="long long" readonly="yes">
11781 <desc>
11782 Time stamp of the snapshot, in milliseconds since 1970-01-01 UTC.
11783 </desc>
11784 </attribute>
11785
11786 <attribute name="online" type="boolean" readonly="yes">
11787 <desc>
11788 @c true if this snapshot is an online snapshot and @c false otherwise.
11789
11790 When this attribute is @c true, the
11791 <link to="IMachine::stateFilePath"/> attribute of the
11792 <link to="#machine"/> object associated with this snapshot
11793 will point to the saved state file. Otherwise, it will be
11794 an empty string.
11795 </desc>
11796 </attribute>
11797
11798 <attribute name="machine" type="IMachine" readonly="yes">
11799 <desc>
11800 Virtual machine this snapshot is taken on. This object
11801 stores all settings the machine had when taking this snapshot.
11802 <note>
11803 The returned machine object is immutable, i.e. no
11804 any settings can be changed.
11805 </note>
11806 </desc>
11807 </attribute>
11808
11809 <attribute name="parent" type="ISnapshot" readonly="yes">
11810 <desc>
11811 Parent snapshot (a snapshot this one is based on), or
11812 @c null if the snapshot has no parent (i.e. is the first snapshot).
11813 </desc>
11814 </attribute>
11815
11816 <attribute name="children" type="ISnapshot" readonly="yes" safearray="yes">
11817 <desc>
11818 Child snapshots (all snapshots having this one as a parent).
11819 By inspecting this attribute starting with a machine's root snapshot
11820 (which can be obtained by calling <link to="IMachine::findSnapshot" />
11821 with a @c null UUID), a machine's snapshots tree can be iterated over.
11822 </desc>
11823 </attribute>
11824
11825 <method name="getChildrenCount" const="yes">
11826 <desc>
11827 Returns the number of direct childrens of this snapshot.
11828 </desc>
11829 <param name="childrenCount" type="unsigned long" dir="return">
11830 <desc>
11831 </desc>
11832 </param>
11833 </method>
11834
11835 </interface>
11836
11837
11838 <!--
11839 // IMedium
11840 /////////////////////////////////////////////////////////////////////////
11841 -->
11842
11843 <enum
11844 name="MediumState"
11845 uuid="ef41e980-e012-43cd-9dea-479d4ef14d13"
11846 >
11847 <desc>
11848 Virtual medium state.
11849 <see><link to="IMedium"/></see>
11850 </desc>
11851
11852 <const name="NotCreated" value="0">
11853 <desc>
11854 Associated medium storage does not exist (either was not created yet or
11855 was deleted).
11856 </desc>
11857 </const>
11858 <const name="Created" value="1">
11859 <desc>
11860 Associated storage exists and accessible; this gets set if the
11861 accessibility check performed by <link to="IMedium::refreshState" />
11862 was successful.
11863 </desc>
11864 </const>
11865 <const name="LockedRead" value="2">
11866 <desc>
11867 Medium is locked for reading (see <link to="IMedium::lockRead"/>),
11868 no data modification is possible.
11869 </desc>
11870 </const>
11871 <const name="LockedWrite" value="3">
11872 <desc>
11873 Medium is locked for writing (see <link to="IMedium::lockWrite"/>),
11874 no concurrent data reading or modification is possible.
11875 </desc>
11876 </const>
11877 <const name="Inaccessible" value="4">
11878 <desc>
11879 Medium accessibility check (see <link to="IMedium::refreshState" />) has
11880 not yet been performed, or else, associated medium storage is not
11881 accessible. In the first case, <link to="IMedium::lastAccessError"/>
11882 is empty, in the second case, it describes the error that occurred.
11883 </desc>
11884 </const>
11885 <const name="Creating" value="5">
11886 <desc>
11887 Associated medium storage is being created.
11888 </desc>
11889 </const>
11890 <const name="Deleting" value="6">
11891 <desc>
11892 Associated medium storage is being deleted.
11893 </desc>
11894 </const>
11895 </enum>
11896
11897 <enum
11898 name="MediumType"
11899 uuid="fe663fb5-c244-4e1b-9d81-c628b417dd04"
11900 >
11901 <desc>
11902 Virtual medium type. For each <link to="IMedium" />, this defines how the medium is
11903 attached to a virtual machine (see <link to="IMediumAttachment" />) and what happens
11904 when a snapshot (see <link to="ISnapshot" />) is taken of a virtual machine which has
11905 the medium attached. At the moment DVD and floppy media are always of type "writethrough".
11906 </desc>
11907
11908 <const name="Normal" value="0">
11909 <desc>
11910 Normal medium (attached directly or indirectly, preserved
11911 when taking snapshots).
11912 </desc>
11913 </const>
11914 <const name="Immutable" value="1">
11915 <desc>
11916 Immutable medium (attached indirectly, changes are wiped out
11917 the next time the virtual machine is started).
11918 </desc>
11919 </const>
11920 <const name="Writethrough" value="2">
11921 <desc>
11922 Write through medium (attached directly, ignored when
11923 taking snapshots).
11924 </desc>
11925 </const>
11926 <const name="Shareable" value="3">
11927 <desc>
11928 Allow using this medium concurrently by several machines.
11929 <note>Present since VirtualBox 3.2.0, and accepted since 3.2.8.</note>
11930 </desc>
11931 </const>
11932 <const name="Readonly" value="4">
11933 <desc>
11934 A readonly medium, which can of course be used by several machines.
11935 <note>Present and accepted since VirtualBox 4.0.</note>
11936 </desc>
11937 </const>
11938 <const name="MultiAttach" value="5">
11939 <desc>
11940 A medium which is indirectly attached, so that one base medium can
11941 be used for several VMs which have their own differencing medium to
11942 store their modifications. In some sense a variant of Immutable
11943 with unset AutoReset flag in each differencing medium.
11944 <note>Present and accepted since VirtualBox 4.0.</note>
11945 </desc>
11946 </const>
11947 </enum>
11948
11949 <enum
11950 name="MediumVariant"
11951 uuid="80685b6b-e42f-497d-8271-e77bf3c61ada"
11952 >
11953 <desc>
11954 Virtual medium image variant. More than one flag may be set.
11955 <see><link to="IMedium"/></see>
11956 </desc>
11957
11958 <const name="Standard" value="0">
11959 <desc>
11960 No particular variant requested, results in using the backend default.
11961 </desc>
11962 </const>
11963 <const name="VmdkSplit2G" value="0x01">
11964 <desc>
11965 VMDK image split in chunks of less than 2GByte.
11966 </desc>
11967 </const>
11968 <const name="VmdkRawDisk" value="0x02">
11969 <desc>
11970 VMDK image representing a raw disk.
11971 </desc>
11972 </const>
11973 <const name="VmdkStreamOptimized" value="0x04">
11974 <desc>
11975 VMDK streamOptimized image. Special import/export format which is
11976 read-only/append-only.
11977 </desc>
11978 </const>
11979 <const name="VmdkESX" value="0x08">
11980 <desc>
11981 VMDK format variant used on ESX products.
11982 </desc>
11983 </const>
11984 <const name="Fixed" value="0x10000">
11985 <desc>
11986 Fixed image. Only allowed for base images.
11987 </desc>
11988 </const>
11989 <const name="Diff" value="0x20000">
11990 <desc>
11991 Differencing image. Only allowed for child images.
11992 </desc>
11993 </const>
11994 <const name="NoCreateDir" value="0x40000000">
11995 <desc>
11996 Special flag which suppresses automatic creation of the subdirectory.
11997 Only used when passing the medium variant as an input parameter.
11998 </desc>
11999 </const>
12000 </enum>
12001
12002 <interface
12003 name="IMediumAttachment" extends="$unknown"
12004 uuid="5ee464d6-0613-4331-b154-7ce12170ef9f"
12005 wsmap="struct"
12006 >
12007 <desc>
12008 The IMediumAttachment interface links storage media to virtual machines.
12009 For each medium (<link to="IMedium"/>) which has been attached to a
12010 storage controller (<link to="IStorageController"/>) of a machine
12011 (<link to="IMachine"/>) via the <link to="IMachine::attachDevice" />
12012 method, one instance of IMediumAttachment is added to the machine's
12013 <link to="IMachine::mediumAttachments"/> array attribute.
12014
12015 Each medium attachment specifies the storage controller as well as a
12016 port and device number and the IMedium instance representing a virtual
12017 hard disk or floppy or DVD image.
12018
12019 For removable media (DVDs or floppies), there are two additional
12020 options. For one, the IMedium instance can be @c null to represent
12021 an empty drive with no media inserted (see <link to="IMachine::mountMedium" />);
12022 secondly, the medium can be one of the pseudo-media for host drives
12023 listed in <link to="IHost::DVDDrives"/> or <link to="IHost::floppyDrives"/>.
12024
12025 <h3>Attaching Hard Disks</h3>
12026
12027 Hard disks are attached to virtual machines using the
12028 <link to="IMachine::attachDevice"/> method and detached using the
12029 <link to="IMachine::detachDevice"/> method. Depending on a medium's
12030 type (see <link to="IMedium::type" />), hard disks are attached either
12031 <i>directly</i> or <i>indirectly</i>.
12032
12033 When a hard disk is being attached directly, it is associated with the
12034 virtual machine and used for hard disk operations when the machine is
12035 running. When a hard disk is being attached indirectly, a new differencing
12036 hard disk linked to it is implicitly created and this differencing hard
12037 disk is associated with the machine and used for hard disk operations.
12038 This also means that if <link to="IMachine::attachDevice"/> performs
12039 a direct attachment then the same hard disk will be returned in response
12040 to the subsequent <link to="IMachine::getMedium"/> call; however if
12041 an indirect attachment is performed then
12042 <link to="IMachine::getMedium"/> will return the implicitly created
12043 differencing hard disk, not the original one passed to <link
12044 to="IMachine::attachDevice"/>. In detail:
12045
12046 <ul>
12047 <li><b>Normal base</b> hard disks that do not have children (i.e.
12048 differencing hard disks linked to them) and that are not already
12049 attached to virtual machines in snapshots are attached <b>directly</b>.
12050 Otherwise, they are attached <b>indirectly</b> because having
12051 dependent children or being part of the snapshot makes it impossible
12052 to modify hard disk contents without breaking the integrity of the
12053 dependent party. The <link to="IMedium::readOnly"/> attribute allows to
12054 quickly determine the kind of the attachment for the given hard
12055 disk. Note that if a normal base hard disk is to be indirectly
12056 attached to a virtual machine with snapshots then a special
12057 procedure called <i>smart attachment</i> is performed (see below).</li>
12058 <li><b>Normal differencing</b> hard disks are like normal base hard disks:
12059 they are attached <b>directly</b> if they do not have children and are
12060 not attached to virtual machines in snapshots, and <b>indirectly</b>
12061 otherwise. Note that the smart attachment procedure is never performed
12062 for differencing hard disks.</li>
12063 <li><b>Immutable</b> hard disks are always attached <b>indirectly</b> because
12064 they are designed to be non-writable. If an immutable hard disk is
12065 attached to a virtual machine with snapshots then a special
12066 procedure called smart attachment is performed (see below).</li>
12067 <li><b>Writethrough</b> hard disks are always attached <b>directly</b>,
12068 also as designed. This also means that writethrough hard disks cannot
12069 have other hard disks linked to them at all.</li>
12070 <li><b>Shareable</b> hard disks are always attached <b>directly</b>,
12071 also as designed. This also means that shareable hard disks cannot
12072 have other hard disks linked to them at all. They behave almost
12073 like writethrough hard disks, except that shareable hard disks can
12074 be attached to several virtual machines which are running, allowing
12075 concurrent accesses. You need special cluster software running in
12076 the virtual machines to make use of such disks.</li>
12077 </ul>
12078
12079 Note that the same hard disk, regardless of its type, may be attached to
12080 more than one virtual machine at a time. In this case, the machine that is
12081 started first gains exclusive access to the hard disk and attempts to
12082 start other machines having this hard disk attached will fail until the
12083 first machine is powered down.
12084
12085 Detaching hard disks is performed in a <i>deferred</i> fashion. This means
12086 that the given hard disk remains associated with the given machine after a
12087 successful <link to="IMachine::detachDevice"/> call until
12088 <link to="IMachine::saveSettings"/> is called to save all changes to
12089 machine settings to disk. This deferring is necessary to guarantee that
12090 the hard disk configuration may be restored at any time by a call to
12091 <link to="IMachine::discardSettings"/> before the settings
12092 are saved (committed).
12093
12094 Note that if <link to="IMachine::discardSettings"/> is called after
12095 indirectly attaching some hard disks to the machine but before a call to
12096 <link to="IMachine::saveSettings"/> is made, it will implicitly delete
12097 all differencing hard disks implicitly created by
12098 <link to="IMachine::attachDevice"/> for these indirect attachments.
12099 Such implicitly created hard disks will also be immediately deleted when
12100 detached explicitly using the <link to="IMachine::detachDevice"/>
12101 call if it is made before <link to="IMachine::saveSettings"/>. This
12102 implicit deletion is safe because newly created differencing hard
12103 disks do not contain any user data.
12104
12105 However, keep in mind that detaching differencing hard disks that were
12106 implicitly created by <link to="IMachine::attachDevice"/>
12107 before the last <link to="IMachine::saveSettings"/> call will
12108 <b>not</b> implicitly delete them as they may already contain some data
12109 (for example, as a result of virtual machine execution). If these hard
12110 disks are no more necessary, the caller can always delete them explicitly
12111 using <link to="IMedium::deleteStorage"/> after they are actually de-associated
12112 from this machine by the <link to="IMachine::saveSettings"/> call.
12113
12114 <h3>Smart Attachment</h3>
12115
12116 When normal base or immutable hard disks are indirectly attached to a
12117 virtual machine then some additional steps are performed to make sure the
12118 virtual machine will have the most recent "view" of the hard disk being
12119 attached. These steps include walking through the machine's snapshots
12120 starting from the current one and going through ancestors up to the first
12121 snapshot. Hard disks attached to the virtual machine in all
12122 of the encountered snapshots are checked whether they are descendants of
12123 the given normal base or immutable hard disk. The first found child (which
12124 is the differencing hard disk) will be used instead of the normal base or
12125 immutable hard disk as a parent for creating a new differencing hard disk
12126 that will be actually attached to the machine. And only if no descendants
12127 are found or if the virtual machine does not have any snapshots then the
12128 normal base or immutable hard disk will be used itself as a parent for
12129 this differencing hard disk.
12130
12131 It is easier to explain what smart attachment does using the
12132 following example:
12133 <pre>
12134BEFORE attaching B.vdi: AFTER attaching B.vdi:
12135
12136Snapshot 1 (B.vdi) Snapshot 1 (B.vdi)
12137 Snapshot 2 (D1->B.vdi) Snapshot 2 (D1->B.vdi)
12138 Snapshot 3 (D2->D1.vdi) Snapshot 3 (D2->D1.vdi)
12139 Snapshot 4 (none) Snapshot 4 (none)
12140 CurState (none) CurState (D3->D2.vdi)
12141
12142 NOT
12143 ...
12144 CurState (D3->B.vdi)
12145 </pre>
12146 The first column is the virtual machine configuration before the base hard
12147 disk <tt>B.vdi</tt> is attached, the second column shows the machine after
12148 this hard disk is attached. Constructs like <tt>D1->B.vdi</tt> and similar
12149 mean that the hard disk that is actually attached to the machine is a
12150 differencing hard disk, <tt>D1.vdi</tt>, which is linked to (based on)
12151 another hard disk, <tt>B.vdi</tt>.
12152
12153 As we can see from the example, the hard disk <tt>B.vdi</tt> was detached
12154 from the machine before taking Snapshot 4. Later, after Snapshot 4 was
12155 taken, the user decides to attach <tt>B.vdi</tt> again. <tt>B.vdi</tt> has
12156 dependent child hard disks (<tt>D1.vdi</tt>, <tt>D2.vdi</tt>), therefore
12157 it cannot be attached directly and needs an indirect attachment (i.e.
12158 implicit creation of a new differencing hard disk). Due to the smart
12159 attachment procedure, the new differencing hard disk
12160 (<tt>D3.vdi</tt>) will be based on <tt>D2.vdi</tt>, not on
12161 <tt>B.vdi</tt> itself, since <tt>D2.vdi</tt> is the most recent view of
12162 <tt>B.vdi</tt> existing for this snapshot branch of the given virtual
12163 machine.
12164
12165 Note that if there is more than one descendant hard disk of the given base
12166 hard disk found in a snapshot, and there is an exact device, channel and
12167 bus match, then this exact match will be used. Otherwise, the youngest
12168 descendant will be picked up.
12169
12170 There is one more important aspect of the smart attachment procedure which
12171 is not related to snapshots at all. Before walking through the snapshots
12172 as described above, the backup copy of the current list of hard disk
12173 attachment is searched for descendants. This backup copy is created when
12174 the hard disk configuration is changed for the first time after the last
12175 <link to="IMachine::saveSettings"/> call and used by
12176 <link to="IMachine::discardSettings"/> to undo the recent hard disk
12177 changes. When such a descendant is found in this backup copy, it will be
12178 simply re-attached back, without creating a new differencing hard disk for
12179 it. This optimization is necessary to make it possible to re-attach the
12180 base or immutable hard disk to a different bus, channel or device slot
12181 without losing the contents of the differencing hard disk actually
12182 attached to the machine in place of it.
12183
12184 </desc>
12185
12186 <attribute name="medium" type="IMedium" readonly="yes">
12187 <desc>Medium object associated with this attachment; it
12188 can be @c null for removable devices.</desc>
12189 </attribute>
12190
12191 <attribute name="controller" type="wstring" readonly="yes">
12192 <desc>Name of the storage controller of this attachment; this
12193 refers to one of the controllers in <link to="IMachine::storageControllers" />
12194 by name.</desc>
12195 </attribute>
12196
12197 <attribute name="port" type="long" readonly="yes">
12198 <desc>Port number of this attachment.
12199 See <link to="IMachine::attachDevice" /> for the meaning of this value for the different controller types.
12200 </desc>
12201 </attribute>
12202
12203 <attribute name="device" type="long" readonly="yes">
12204 <desc>Device slot number of this attachment.
12205 See <link to="IMachine::attachDevice" /> for the meaning of this value for the different controller types.
12206 </desc>
12207 </attribute>
12208
12209 <attribute name="type" type="DeviceType" readonly="yes">
12210 <desc>Device type of this attachment.</desc>
12211 </attribute>
12212
12213 <attribute name="passthrough" type="boolean" readonly="yes">
12214 <desc>Pass I/O requests through to a device on the host.</desc>
12215 </attribute>
12216
12217 <attribute name="temporaryEject" type="boolean" readonly="yes">
12218 <desc>Whether guest-triggered eject results in unmounting the medium.</desc>
12219 </attribute>
12220
12221 <attribute name="isEjected" type="boolean" readonly="yes">
12222 <desc>Signals that the removable medium has been ejected. This is not
12223 necessarily equivalent to having a @c null medium association.</desc>
12224 </attribute>
12225
12226 <attribute name="nonRotational" type="boolean" readonly="yes">
12227 <desc>Whether the associated medium is non-rotational.</desc>
12228 </attribute>
12229
12230 <attribute name="discard" type="boolean" readonly="yes">
12231 <desc>Whether the associated medium supports discarding unused blocks.</desc>
12232 </attribute>
12233
12234 <attribute name="bandwidthGroup" type="IBandwidthGroup" readonly="yes">
12235 <desc>The bandwidth group this medium attachment is assigned to.</desc>
12236 </attribute>
12237
12238 </interface>
12239
12240 <interface
12241 name="IMedium" extends="$unknown"
12242 uuid="86fd6208-4c8c-40c2-a4e3-f6b47ac6ef07"
12243 wsmap="managed"
12244 >
12245 <desc>
12246 The IMedium interface represents virtual storage for a machine's
12247 hard disks, CD/DVD or floppy drives. It will typically represent
12248 a disk image on the host, for example a VDI or VMDK file representing
12249 a virtual hard disk, or an ISO or RAW file representing virtual
12250 removable media, but can also point to a network location (e.g.
12251 for iSCSI targets).
12252
12253 Instances of IMedium are connected to virtual machines by way of medium
12254 attachments, which link the storage medium to a particular device slot
12255 of a storage controller of the virtual machine.
12256 In the VirtualBox API, virtual storage is therefore always represented
12257 by the following chain of object links:
12258
12259 <ul>
12260 <li><link to="IMachine::storageControllers"/> contains an array of
12261 storage controllers (IDE, SATA, SCSI, SAS or a floppy controller;
12262 these are instances of <link to="IStorageController"/>).</li>
12263 <li><link to="IMachine::mediumAttachments"/> contains an array of
12264 medium attachments (instances of <link to="IMediumAttachment"/>
12265 created by <link to="IMachine::attachDevice" />),
12266 each containing a storage controller from the above array, a
12267 port/device specification, and an instance of IMedium representing
12268 the medium storage (image file).
12269
12270 For removable media, the storage medium is optional; a medium
12271 attachment with no medium represents a CD/DVD or floppy drive
12272 with no medium inserted. By contrast, hard disk attachments
12273 will always have an IMedium object attached.</li>
12274 <li>Each IMedium in turn points to a storage unit (such as a file
12275 on the host computer or a network resource) that holds actual
12276 data. This location is represented by the <link to="#location"/>
12277 attribute.</li>
12278 </ul>
12279
12280 Existing media are opened using <link to="IVirtualBox::openMedium"/>;
12281 new hard disk media can be created with the VirtualBox API using the
12282 <link to="IVirtualBox::createHardDisk"/> method. Differencing hard
12283 disks (see below) are usually implicitly created by VirtualBox as
12284 needed, but may also be created explicitly using <link to="#createDiffStorage"/>.
12285 VirtualBox cannot create CD/DVD or floppy images (ISO and RAW files); these
12286 should be created with external tools and then opened from within VirtualBox.
12287
12288 Only for CD/DVDs and floppies, an IMedium instance can also represent a host
12289 drive. In that case the <link to="#id" /> attribute contains the UUID of
12290 one of the drives in <link to="IHost::DVDDrives" /> or <link to="IHost::floppyDrives" />.
12291
12292 <h3>Media registries</h3>
12293
12294 When a medium has been opened or created using one of the aforementioned
12295 APIs, it becomes "known" to VirtualBox. Known media can be attached
12296 to virtual machines and re-found through <link to="IVirtualBox::openMedium"/>.
12297 They also appear in the global
12298 <link to="IVirtualBox::hardDisks" />,
12299 <link to="IVirtualBox::DVDImages" /> and
12300 <link to="IVirtualBox::floppyImages" /> arrays.
12301
12302 Prior to VirtualBox 4.0, opening a medium added it to a global media registry
12303 in the VirtualBox.xml file, which was shared between all machines and made
12304 transporting machines and their media from one host to another difficult.
12305
12306 Starting with VirtualBox 4.0, media are only added to a registry when they are
12307 <i>attached</i> to a machine using <link to="IMachine::attachDevice" />. For
12308 backwards compatibility, which registry a medium is added to depends on which
12309 VirtualBox version created a machine:
12310
12311 <ul>
12312 <li>If the medium has first been attached to a machine which was created by
12313 VirtualBox 4.0 or later, it is added to that machine's media registry in
12314 the machine XML settings file. This way all information about a machine's
12315 media attachments is contained in a single file and can be transported
12316 easily.</li>
12317 <li>For older media attachments (i.e. if the medium was first attached to a
12318 machine which was created with a VirtualBox version before 4.0), media
12319 continue to be registered in the global VirtualBox settings file, for
12320 backwards compatibility.</li>
12321 </ul>
12322
12323 See <link to="IVirtualBox::openMedium" /> for more information.
12324
12325 Media are removed from media registries by the <link to="IMedium::close"/>,
12326 <link to="#deleteStorage"/> and <link to="#mergeTo"/> methods.
12327
12328 <h3>Accessibility checks</h3>
12329
12330 VirtualBox defers media accessibility checks until the <link to="#refreshState" />
12331 method is called explicitly on a medium. This is done to make the VirtualBox object
12332 ready for serving requests as fast as possible and let the end-user
12333 application decide if it needs to check media accessibility right away or not.
12334
12335 As a result, when VirtualBox starts up (e.g. the VirtualBox
12336 object gets created for the first time), all known media are in the
12337 "Inaccessible" state, but the value of the <link to="#lastAccessError"/>
12338 attribute is an empty string because no actual accessibility check has
12339 been made yet.
12340
12341 After calling <link to="#refreshState" />, a medium is considered
12342 <i>accessible</i> if its storage unit can be read. In that case, the
12343 <link to="#state"/> attribute has a value of "Created". If the storage
12344 unit cannot be read (for example, because it is located on a disconnected
12345 network resource, or was accidentally deleted outside VirtualBox),
12346 the medium is considered <i>inaccessible</i>, which is indicated by the
12347 "Inaccessible" state. The exact reason why the medium is inaccessible can be
12348 obtained by reading the <link to="#lastAccessError"/> attribute.
12349
12350 <h3>Medium types</h3>
12351
12352 There are five types of medium behavior which are stored in the
12353 <link to="#type"/> attribute (see <link to="MediumType" />) and
12354 which define the medium's behavior with attachments and snapshots.
12355
12356 All media can be also divided in two groups: <i>base</i> media and
12357 <i>differencing</i> media. A base medium contains all sectors of the
12358 medium data in its own storage and therefore can be used independently.
12359 In contrast, a differencing medium is a "delta" to some other medium and
12360 contains only those sectors which differ from that other medium, which is
12361 then called a <i>parent</i>. The differencing medium is said to be
12362 <i>linked to</i> that parent. The parent may be itself a differencing
12363 medium, thus forming a chain of linked media. The last element in that
12364 chain must always be a base medium. Note that several differencing
12365 media may be linked to the same parent medium.
12366
12367 Differencing media can be distinguished from base media by querying the
12368 <link to="#parent"/> attribute: base media do not have parents they would
12369 depend on, so the value of this attribute is always @c null for them.
12370 Using this attribute, it is possible to walk up the medium tree (from the
12371 child medium to its parent). It is also possible to walk down the tree
12372 using the <link to="#children"/> attribute.
12373
12374 Note that the type of all differencing media is "normal"; all other
12375 values are meaningless for them. Base media may be of any type.
12376
12377 <h3>Automatic composition of the file name part</h3>
12378
12379 Another extension to the <link to="IMedium::location"/> attribute is that
12380 there is a possibility to cause VirtualBox to compose a unique value for
12381 the file name part of the location using the UUID of the hard disk. This
12382 applies only to hard disks in <link to="MediumState_NotCreated"/> state,
12383 e.g. before the storage unit is created, and works as follows. You set the
12384 value of the <link to="IMedium::location"/> attribute to a location
12385 specification which only contains the path specification but not the file
12386 name part and ends with either a forward slash or a backslash character.
12387 In response, VirtualBox will generate a new UUID for the hard disk and
12388 compose the file name using the following pattern:
12389 <pre>
12390 &lt;path&gt;/{&lt;uuid&gt;}.&lt;ext&gt;
12391 </pre>
12392 where <tt>&lt;path&gt;</tt> is the supplied path specification,
12393 <tt>&lt;uuid&gt;</tt> is the newly generated UUID and <tt>&lt;ext&gt;</tt>
12394 is the default extension for the storage format of this hard disk. After
12395 that, you may call any of the methods that create a new hard disk storage
12396 unit and they will use the generated UUID and file name.
12397 </desc>
12398
12399 <attribute name="id" type="uuid" mod="string" readonly="yes">
12400 <desc>
12401 UUID of the medium. For a newly created medium, this value is a randomly
12402 generated UUID.
12403
12404 <note>
12405 For media in one of MediumState_NotCreated, MediumState_Creating or
12406 MediumState_Deleting states, the value of this property is undefined
12407 and will most likely be an empty UUID.
12408 </note>
12409 </desc>
12410 </attribute>
12411
12412 <attribute name="description" type="wstring">
12413 <desc>
12414 Optional description of the medium. For a newly created medium the value
12415 of this attribute is an empty string.
12416
12417 Medium types that don't support this attribute will return E_NOTIMPL in
12418 attempt to get or set this attribute's value.
12419
12420 <note>
12421 For some storage types, reading this attribute may return an outdated
12422 (last known) value when <link to="#state"/> is <link
12423 to="MediumState_Inaccessible"/> or <link
12424 to="MediumState_LockedWrite"/> because the value of this attribute is
12425 stored within the storage unit itself. Also note that changing the
12426 attribute value is not possible in such case, as well as when the
12427 medium is the <link to="MediumState_LockedRead"/> state.
12428 </note>
12429 </desc>
12430 </attribute>
12431
12432 <attribute name="state" type="MediumState" readonly="yes">
12433 <desc>
12434 Returns the current medium state, which is the last state set by
12435 the accessibility check performed by <link to="#refreshState"/>.
12436 If that method has not yet been called on the medium, the state
12437 is "Inaccessible"; as opposed to truly inaccessible media, the
12438 value of <link to="#lastAccessError"/> will be an empty string in
12439 that case.
12440
12441 <note>As of version 3.1, this no longer performs an accessibility check
12442 automatically; call <link to="#refreshState"/> for that.
12443 </note>
12444 </desc>
12445 </attribute>
12446
12447 <attribute name="variant" type="MediumVariant" safearray="yes" readonly="yes">
12448 <desc>
12449 Returns the storage format variant information for this medium
12450 as an aaray of the flags described at <link to="MediumVariant" />.
12451 Before <link to="#refreshState"/> is called this method returns
12452 an undefined value.
12453 </desc>
12454 </attribute>
12455
12456 <attribute name="location" type="wstring">
12457 <desc>
12458 Location of the storage unit holding medium data.
12459
12460 The format of the location string is medium type specific. For medium
12461 types using regular files in a host's file system, the location
12462 string is the full file name.
12463
12464 Some medium types may support changing the storage unit location by
12465 simply changing the value of this property. If this operation is not
12466 supported, the implementation will return E_NOTIMPL in attempt to set
12467 this attribute's value.
12468
12469 When setting a value of the location attribute which is a regular file
12470 in the host's file system, the given file name may be either relative to
12471 the <link to="IVirtualBox::homeFolder">VirtualBox home folder</link> or
12472 absolute. Note that if the given location specification does not contain
12473 the file extension part then a proper default extension will be
12474 automatically appended by the implementation depending on the medium type.
12475 </desc>
12476 </attribute>
12477
12478 <attribute name="name" type="wstring" readonly="yes">
12479 <desc>
12480 Name of the storage unit holding medium data.
12481
12482 The returned string is a short version of the <link to="#location"/>
12483 attribute that is suitable for representing the medium in situations
12484 where the full location specification is too long (such as lists
12485 and comboboxes in GUI frontends). This string is also used by frontends
12486 to sort the media list alphabetically when needed.
12487
12488 For example, for locations that are regular files in the host's file
12489 system, the value of this attribute is just the file name (+ extension),
12490 without the path specification.
12491
12492 Note that as opposed to the <link to="#location"/> attribute, the name
12493 attribute will not necessary be unique for a list of media of the
12494 given type and format.
12495 </desc>
12496 </attribute>
12497
12498 <attribute name="deviceType" type="DeviceType" readonly="yes">
12499 <desc>Kind of device (DVD/Floppy/HardDisk) which is applicable to this
12500 medium.</desc>
12501 </attribute>
12502
12503 <attribute name="hostDrive" type="boolean" readonly="yes">
12504 <desc>True if this corresponds to a drive on the host.</desc>
12505 </attribute>
12506
12507 <attribute name="size" type="long long" readonly="yes">
12508 <desc>
12509 Physical size of the storage unit used to hold medium data (in bytes).
12510
12511 <note>
12512 For media whose <link to="#state"/> is <link
12513 to="MediumState_Inaccessible"/>, the value of this property is the
12514 last known size. For <link to="MediumState_NotCreated"/> media,
12515 the returned value is zero.
12516 </note>
12517 </desc>
12518 </attribute>
12519
12520 <attribute name="format" type="wstring" readonly="yes">
12521 <desc>
12522 Storage format of this medium.
12523
12524 The value of this attribute is a string that specifies a backend used
12525 to store medium data. The storage format is defined when you create a
12526 new medium or automatically detected when you open an existing medium,
12527 and cannot be changed later.
12528
12529 The list of all storage formats supported by this VirtualBox
12530 installation can be obtained using
12531 <link to="ISystemProperties::mediumFormats"/>.
12532 </desc>
12533 </attribute>
12534
12535 <attribute name="mediumFormat" type="IMediumFormat" readonly="yes">
12536 <desc>
12537 Storage medium format object corresponding to this medium.
12538
12539 The value of this attribute is a reference to the medium format object
12540 that specifies the backend properties used to store medium data. The
12541 storage format is defined when you create a new medium or automatically
12542 detected when you open an existing medium, and cannot be changed later.
12543
12544 <note>@c null is returned if there is no associated medium format
12545 object. This can e.g. happen for medium objects representing host
12546 drives and other special medium objects.</note>
12547 </desc>
12548 </attribute>
12549
12550 <attribute name="type" type="MediumType">
12551 <desc>
12552 Type (role) of this medium.
12553
12554 The following constraints apply when changing the value of this
12555 attribute:
12556 <ul>
12557 <li>If a medium is attached to a virtual machine (either in the
12558 current state or in one of the snapshots), its type cannot be
12559 changed.
12560 </li>
12561 <li>As long as the medium has children, its type cannot be set
12562 to <link to="MediumType_Writethrough"/>.
12563 </li>
12564 <li>The type of all differencing media is
12565 <link to="MediumType_Normal"/> and cannot be changed.
12566 </li>
12567 </ul>
12568
12569 The type of a newly created or opened medium is set to
12570 <link to="MediumType_Normal"/>, except for DVD and floppy media,
12571 which have a type of <link to="MediumType_Writethrough"/>.
12572 </desc>
12573 </attribute>
12574
12575 <attribute name="allowedTypes" type="MediumType" safearray="yes" readonly="yes">
12576 <desc>
12577 Returns which medium types can selected for this medium.
12578
12579 <result name="E_NOTIMPL">
12580 This attribute is not implemented at the moment.
12581 </result>
12582 </desc>
12583 </attribute>
12584
12585 <attribute name="parent" type="IMedium" readonly="yes">
12586 <desc>
12587 Parent of this medium (the medium this medium is directly based
12588 on).
12589
12590 Only differencing media have parents. For base (non-differencing)
12591 media, @c null is returned.
12592 </desc>
12593 </attribute>
12594
12595 <attribute name="children" type="IMedium" safearray="yes" readonly="yes">
12596 <desc>
12597 Children of this medium (all differencing media directly based
12598 on this medium). A @c null array is returned if this medium
12599 does not have any children.
12600 </desc>
12601 </attribute>
12602
12603 <attribute name="base" type="IMedium" readonly="yes">
12604 <desc>
12605 Base medium of this medium.
12606
12607 If this is a differencing medium, its base medium is the medium
12608 the given medium branch starts from. For all other types of media, this
12609 property returns the medium object itself (i.e. the same object this
12610 property is read on).
12611 </desc>
12612 </attribute>
12613
12614 <attribute name="readOnly" type="boolean" readonly="yes">
12615 <desc>
12616 Returns @c true if this medium is read-only and @c false otherwise.
12617
12618 A medium is considered to be read-only when its contents cannot be
12619 modified without breaking the integrity of other parties that depend on
12620 this medium such as its child media or snapshots of virtual machines
12621 where this medium is attached to these machines. If there are no
12622 children and no such snapshots then there is no dependency and the
12623 medium is not read-only.
12624
12625 The value of this attribute can be used to determine the kind of the
12626 attachment that will take place when attaching this medium to a
12627 virtual machine. If the value is @c false then the medium will
12628 be attached directly. If the value is @c true then the medium
12629 will be attached indirectly by creating a new differencing child
12630 medium for that. See the interface description for more information.
12631
12632 Note that all <link to="MediumType_Immutable">Immutable</link> media
12633 are always read-only while all
12634 <link to="MediumType_Writethrough">Writethrough</link> media are
12635 always not.
12636
12637 <note>
12638 The read-only condition represented by this attribute is related to
12639 the medium type and usage, not to the current
12640 <link to="IMedium::state">medium state</link> and not to the read-only
12641 state of the storage unit.
12642 </note>
12643 </desc>
12644 </attribute>
12645
12646 <attribute name="logicalSize" type="long long" readonly="yes">
12647 <desc>
12648 Logical size of this medium (in bytes), as reported to the
12649 guest OS running inside the virtual machine this medium is
12650 attached to. The logical size is defined when the medium is created
12651 and cannot be changed later.
12652
12653 <note>
12654 For media whose state is <link to="#state"/> is <link
12655 to="MediumState_Inaccessible"/>, the value of this property is the
12656 last known logical size. For <link to="MediumState_NotCreated"/>
12657 media, the returned value is zero.
12658 </note>
12659 </desc>
12660 </attribute>
12661
12662 <attribute name="autoReset" type="boolean">
12663 <desc>
12664 Whether this differencing medium will be automatically reset each
12665 time a virtual machine it is attached to is powered up. This
12666 attribute is automatically set to @c true for the last
12667 differencing image of an "immutable" medium (see
12668 <link to="MediumType" />).
12669
12670 See <link to="#reset"/> for more information about resetting
12671 differencing media.
12672
12673 <note>
12674 Reading this property on a base (non-differencing) medium will
12675 always @c false. Changing the value of this property in this
12676 case is not supported.
12677 </note>
12678
12679 <result name="VBOX_E_NOT_SUPPORTED">
12680 This is not a differencing medium (when changing the attribute
12681 value).
12682 </result>
12683 </desc>
12684 </attribute>
12685
12686 <attribute name="lastAccessError" type="wstring" readonly="yes">
12687 <desc>
12688 Text message that represents the result of the last accessibility
12689 check performed by <link to="#refreshState"/>.
12690
12691 An empty string is returned if the last accessibility check
12692 was successful or has not yet been called. As a result, if
12693 <link to="#state" /> is "Inaccessible" and this attribute is empty,
12694 then <link to="#refreshState"/> has yet to be called; this is the
12695 default value of media after VirtualBox initialization.
12696 A non-empty string indicates a failure and should normally describe
12697 a reason of the failure (for example, a file read error).
12698 </desc>
12699 </attribute>
12700
12701 <attribute name="machineIds" type="uuid" mod="string" safearray="yes" readonly="yes">
12702 <desc>
12703 Array of UUIDs of all machines this medium is attached to.
12704
12705 A @c null array is returned if this medium is not attached to any
12706 machine or to any machine's snapshot.
12707
12708 <note>
12709 The returned array will include a machine even if this medium is not
12710 attached to that machine in the current state but attached to it in
12711 one of the machine's snapshots. See <link to="#getSnapshotIds"/> for
12712 details.
12713 </note>
12714 </desc>
12715 </attribute>
12716
12717 <method name="setIds">
12718 <desc>
12719 Changes the UUID and parent UUID for a hard disk medium.
12720 </desc>
12721 <param name="setImageId" type="boolean" dir="in">
12722 <desc>
12723 Select whether a new image UUID is set or not.
12724 </desc>
12725 </param>
12726 <param name="imageId" type="uuid" mod="string" dir="in">
12727 <desc>
12728 New UUID for the image. If an empty string is passed, then a new
12729 UUID is automatically created, provided that @a setImageId is @c true.
12730 Specifying a zero UUID is not allowed.
12731 </desc>
12732 </param>
12733 <param name="setParentId" type="boolean" dir="in">
12734 <desc>
12735 Select whether a new parent UUID is set or not.
12736 </desc>
12737 </param>
12738 <param name="parentId" type="uuid" mod="string" dir="in">
12739 <desc>
12740 New parent UUID for the image. If an empty string is passed, then a
12741 new UUID is automatically created, provided @a setParentId is
12742 @c true. A zero UUID is valid.
12743 </desc>
12744 </param>
12745 <result name="E_INVALIDARG">
12746 Invalid parameter combination.
12747 </result>
12748 <result name="VBOX_E_NOT_SUPPORTED">
12749 Medium is not a hard disk medium.
12750 </result>
12751 </method>
12752
12753 <method name="refreshState">
12754 <desc>
12755 If the current medium state (see <link to="MediumState"/>) is one of
12756 "Created", "Inaccessible" or "LockedRead", then this performs an
12757 accessibility check on the medium and sets the value of the <link to="#state"/>
12758 attribute accordingly; that value is also returned for convenience.
12759
12760 For all other state values, this does not perform a refresh but returns
12761 the state only.
12762
12763 The refresh, if performed, may take a long time (several seconds or even
12764 minutes, depending on the storage unit location and format) because it performs an
12765 accessibility check of the storage unit. This check may cause a significant
12766 delay if the storage unit of the given medium is, for example, a file located
12767 on a network share which is not currently accessible due to connectivity
12768 problems. In that case, the call will not return until a timeout
12769 interval defined by the host OS for this operation expires. For this reason,
12770 it is recommended to never read this attribute on the main UI thread to avoid
12771 making the UI unresponsive.
12772
12773 If the last known state of the medium is "Created" and the accessibility
12774 check fails, then the state would be set to "Inaccessible", and
12775 <link to="#lastAccessError"/> may be used to get more details about the
12776 failure. If the state of the medium is "LockedRead", then it remains the
12777 same, and a non-empty value of <link to="#lastAccessError"/> will
12778 indicate a failed accessibility check in this case.
12779
12780 Note that not all medium states are applicable to all medium types.
12781 </desc>
12782 <param name="state" type="MediumState" dir="return">
12783 <desc>
12784 New medium state.
12785 </desc>
12786 </param>
12787 </method>
12788
12789 <method name="getSnapshotIds">
12790 <desc>
12791 Returns an array of UUIDs of all snapshots of the given machine where
12792 this medium is attached to.
12793
12794 If the medium is attached to the machine in the current state, then the
12795 first element in the array will always be the ID of the queried machine
12796 (i.e. the value equal to the @c machineId argument), followed by
12797 snapshot IDs (if any).
12798
12799 If the medium is not attached to the machine in the current state, then
12800 the array will contain only snapshot IDs.
12801
12802 The returned array may be @c null if this medium is not attached
12803 to the given machine at all, neither in the current state nor in one of
12804 the snapshots.
12805 </desc>
12806 <param name="machineId" type="uuid" mod="string" dir="in">
12807 <desc>
12808 UUID of the machine to query.
12809 </desc>
12810 </param>
12811 <param name="snapshotIds" type="uuid" mod="string" safearray="yes" dir="return">
12812 <desc>
12813 Array of snapshot UUIDs of the given machine using this medium.
12814 </desc>
12815 </param>
12816 </method>
12817
12818 <method name="lockRead">
12819 <desc>
12820 Locks this medium for reading.
12821
12822 A read lock is shared: many clients can simultaneously lock the
12823 same medium for reading unless it is already locked for writing (see
12824 <link to="#lockWrite"/>) in which case an error is returned.
12825
12826 When the medium is locked for reading, it cannot be modified
12827 from within VirtualBox. This means that any method that changes
12828 the properties of this medium or contents of the storage unit
12829 will return an error (unless explicitly stated otherwise). That
12830 includes an attempt to start a virtual machine that wants to
12831 write to the the medium.
12832
12833 When the virtual machine is started up, it locks for reading all
12834 media it uses in read-only mode. If some medium cannot be locked
12835 for reading, the startup procedure will fail.
12836 A medium is typically locked for reading while it is used by a running
12837 virtual machine but has a depending differencing image that receives
12838 the actual write operations. This way one base medium can have
12839 multiple child differencing images which can be written to
12840 simultaneously. Read-only media such as DVD and floppy images are
12841 also locked for reading only (so they can be in use by multiple
12842 machines simultaneously).
12843
12844 A medium is also locked for reading when it is the source of a
12845 write operation such as <link to="#cloneTo"/> or <link to="#mergeTo"/>.
12846
12847 The medium locked for reading must be unlocked using the <link
12848 to="#unlockRead"/> method. Calls to <link to="#lockRead"/>
12849 can be nested and must be followed by the same number of paired
12850 <link to="#unlockRead"/> calls.
12851
12852 This method sets the medium state (see <link to="#state"/>) to
12853 "LockedRead" on success. The medium's previous state must be
12854 one of "Created", "Inaccessible" or "LockedRead".
12855
12856 Locking an inaccessible medium is not an error; this method performs
12857 a logical lock that prevents modifications of this medium through
12858 the VirtualBox API, not a physical file-system lock of the underlying
12859 storage unit.
12860
12861 This method returns the current state of the medium
12862 <i>before</i> the operation.
12863
12864 <result name="VBOX_E_INVALID_OBJECT_STATE">
12865 Invalid medium state (e.g. not created, locked, inaccessible,
12866 creating, deleting).
12867 </result>
12868
12869 </desc>
12870 <param name="state" type="MediumState" dir="return">
12871 <desc>
12872 State of the medium after the operation.
12873 </desc>
12874 </param>
12875 </method>
12876
12877 <method name="unlockRead">
12878 <desc>
12879 Cancels the read lock previously set by <link to="#lockRead"/>.
12880
12881 For both success and failure, this method returns the current state
12882 of the medium <i>after</i> the operation.
12883
12884 See <link to="#lockRead"/> for more details.
12885
12886 <result name="VBOX_E_INVALID_OBJECT_STATE">
12887 Medium not locked for reading.
12888 </result>
12889
12890 </desc>
12891 <param name="state" type="MediumState" dir="return">
12892 <desc>
12893 State of the medium after the operation.
12894 </desc>
12895 </param>
12896 </method>
12897
12898 <method name="lockWrite">
12899 <desc>
12900 Locks this medium for writing.
12901
12902 A write lock, as opposed to <link to="#lockRead"/>, is
12903 exclusive: there may be only one client holding a write lock,
12904 and there may be no read locks while the write lock is held.
12905 As a result, read-locking fails if a write lock is held, and
12906 write-locking fails if either a read or another write lock is held.
12907
12908 When a medium is locked for writing, it cannot be modified
12909 from within VirtualBox, and it is not guaranteed that the values
12910 of its properties are up-to-date. Any method that changes the
12911 properties of this medium or contents of the storage unit will
12912 return an error (unless explicitly stated otherwise).
12913
12914 When a virtual machine is started up, it locks for writing all
12915 media it uses to write data to. If any medium could not be locked
12916 for writing, the startup procedure will fail. If a medium has
12917 differencing images, then while the machine is running, only
12918 the last ("leaf") differencing image is locked for writing,
12919 whereas its parents are locked for reading only.
12920
12921 A medium is also locked for writing when it is the target of a
12922 write operation such as <link to="#cloneTo"/> or <link to="#mergeTo"/>.
12923
12924 The medium locked for writing must be unlocked using the <link
12925 to="#unlockWrite"/> method. Write locks <i>cannot</i> be nested.
12926
12927 This method sets the medium state (see <link to="#state"/>) to
12928 "LockedWrite" on success. The medium's previous state must be
12929 either "Created" or "Inaccessible".
12930
12931 Locking an inaccessible medium is not an error; this method performs
12932 a logical lock that prevents modifications of this medium through
12933 the VirtualBox API, not a physical file-system lock of the underlying
12934 storage unit.
12935
12936 For both, success and failure, this method returns the current
12937 state of the medium <i>before</i> the operation.
12938
12939 <result name="VBOX_E_INVALID_OBJECT_STATE">
12940 Invalid medium state (e.g. not created, locked, inaccessible,
12941 creating, deleting).
12942 </result>
12943
12944 </desc>
12945 <param name="state" type="MediumState" dir="return">
12946 <desc>
12947 State of the medium after the operation.
12948 </desc>
12949 </param>
12950 </method>
12951
12952 <method name="unlockWrite">
12953 <desc>
12954 Cancels the write lock previously set by <link to="#lockWrite"/>.
12955
12956 For both success and failure, this method returns the current
12957 state of the medium <i>after</i> the operation.
12958
12959 See <link to="#lockWrite"/> for more details.
12960
12961 <result name="VBOX_E_INVALID_OBJECT_STATE">
12962 Medium not locked for writing.
12963 </result>
12964
12965 </desc>
12966 <param name="state" type="MediumState" dir="return">
12967 <desc>
12968 State of the medium after the operation.
12969 </desc>
12970 </param>
12971 </method>
12972
12973 <method name="close">
12974 <desc>
12975 Closes this medium.
12976
12977 The medium must not be attached to any known virtual machine
12978 and must not have any known child media, otherwise the
12979 operation will fail.
12980
12981 When the medium is successfully closed, it is removed from
12982 the list of registered media, but its storage unit is not
12983 deleted. In particular, this means that this medium can
12984 later be opened again using the <link to="IVirtualBox::openMedium"/>
12985 call.
12986
12987 Note that after this method successfully returns, the given medium
12988 object becomes uninitialized. This means that any attempt
12989 to call any of its methods or attributes will fail with the
12990 <tt>"Object not ready" (E_ACCESSDENIED)</tt> error.
12991
12992 <result name="VBOX_E_INVALID_OBJECT_STATE">
12993 Invalid medium state (other than not created, created or
12994 inaccessible).
12995 </result>
12996 <result name="VBOX_E_OBJECT_IN_USE">
12997 Medium attached to virtual machine.
12998 </result>
12999 <result name="VBOX_E_FILE_ERROR">
13000 Settings file not accessible.
13001 </result>
13002 <result name="VBOX_E_XML_ERROR">
13003 Could not parse the settings file.
13004 </result>
13005
13006 </desc>
13007 </method>
13008
13009 <!-- property methods -->
13010
13011 <method name="getProperty" const="yes">
13012 <desc>
13013 Returns the value of the custom medium property with the given name.
13014
13015 The list of all properties supported by the given medium format can
13016 be obtained with <link to="IMediumFormat::describeProperties"/>.
13017
13018 <note>If this method returns an empty string in @a value, the requested
13019 property is supported but currently not assigned any value.</note>
13020
13021 <result name="VBOX_E_OBJECT_NOT_FOUND">
13022 Requested property does not exist (not supported by the format).
13023 </result>
13024 <result name="E_INVALIDARG">@a name is @c null or empty.</result>
13025 </desc>
13026 <param name="name" type="wstring" dir="in">
13027 <desc>Name of the property to get.</desc>
13028 </param>
13029 <param name="value" type="wstring" dir="return">
13030 <desc>Current property value.</desc>
13031 </param>
13032 </method>
13033
13034 <method name="setProperty">
13035 <desc>
13036 Sets the value of the custom medium property with the given name.
13037
13038 The list of all properties supported by the given medium format can
13039 be obtained with <link to="IMediumFormat::describeProperties"/>.
13040
13041 <note>Setting the property value to @c null or an empty string is
13042 equivalent to deleting the existing value. A default value (if it is
13043 defined for this property) will be used by the format backend in this
13044 case.</note>
13045
13046 <result name="VBOX_E_OBJECT_NOT_FOUND">
13047 Requested property does not exist (not supported by the format).
13048 </result>
13049 <result name="E_INVALIDARG">@a name is @c null or empty.</result>
13050 </desc>
13051 <param name="name" type="wstring" dir="in">
13052 <desc>Name of the property to set.</desc>
13053 </param>
13054 <param name="value" type="wstring" dir="in">
13055 <desc>Property value to set.</desc>
13056 </param>
13057 </method>
13058
13059 <method name="getProperties" const="yes">
13060 <desc>
13061 Returns values for a group of properties in one call.
13062
13063 The names of the properties to get are specified using the @a names
13064 argument which is a list of comma-separated property names or
13065 an empty string if all properties are to be returned.
13066 <note>Currently the value of this argument is ignored and the method
13067 always returns all existing properties.</note>
13068
13069 The list of all properties supported by the given medium format can
13070 be obtained with <link to="IMediumFormat::describeProperties"/>.
13071
13072 The method returns two arrays, the array of property names corresponding
13073 to the @a names argument and the current values of these properties.
13074 Both arrays have the same number of elements with each element at the
13075 given index in the first array corresponds to an element at the same
13076 index in the second array.
13077
13078 For properties that do not have assigned values, an empty string is
13079 returned at the appropriate index in the @a returnValues array.
13080
13081 </desc>
13082 <param name="names" type="wstring" dir="in">
13083 <desc>
13084 Names of properties to get.
13085 </desc>
13086 </param>
13087 <param name="returnNames" type="wstring" safearray="yes" dir="out">
13088 <desc>Names of returned properties.</desc>
13089 </param>
13090 <param name="returnValues" type="wstring" safearray="yes" dir="return">
13091 <desc>Values of returned properties.</desc>
13092 </param>
13093 </method>
13094
13095 <method name="setProperties">
13096 <desc>
13097 Sets values for a group of properties in one call.
13098
13099 The names of the properties to set are passed in the @a names
13100 array along with the new values for them in the @a values array. Both
13101 arrays have the same number of elements with each element at the given
13102 index in the first array corresponding to an element at the same index
13103 in the second array.
13104
13105 If there is at least one property name in @a names that is not valid,
13106 the method will fail before changing the values of any other properties
13107 from the @a names array.
13108
13109 Using this method over <link to="#setProperty"/> is preferred if you
13110 need to set several properties at once since it is more efficient.
13111
13112 The list of all properties supported by the given medium format can
13113 be obtained with <link to="IMediumFormat::describeProperties"/>.
13114
13115 Setting the property value to @c null or an empty string is equivalent
13116 to deleting the existing value. A default value (if it is defined for
13117 this property) will be used by the format backend in this case.
13118 </desc>
13119 <param name="names" type="wstring" safearray="yes" dir="in">
13120 <desc>Names of properties to set.</desc>
13121 </param>
13122 <param name="values" type="wstring" safearray="yes" dir="in">
13123 <desc>Values of properties to set.</desc>
13124 </param>
13125 </method>
13126
13127 <!-- storage methods -->
13128
13129 <method name="createBaseStorage">
13130 <desc>
13131 Starts creating a hard disk storage unit (fixed/dynamic, according
13132 to the variant flags) in in the background. The previous storage unit
13133 created for this object, if any, must first be deleted using
13134 <link to="#deleteStorage"/>, otherwise the operation will fail.
13135
13136 Before the operation starts, the medium is placed in
13137 <link to="MediumState_Creating"/> state. If the create operation
13138 fails, the medium will be placed back in <link to="MediumState_NotCreated"/>
13139 state.
13140
13141 After the returned progress object reports that the operation has
13142 successfully completed, the medium state will be set to <link
13143 to="MediumState_Created"/>, the medium will be remembered by this
13144 VirtualBox installation and may be attached to virtual machines.
13145
13146 <result name="VBOX_E_NOT_SUPPORTED">
13147 The variant of storage creation operation is not supported. See <link
13148 to="IMediumFormat::capabilities"/>.
13149 </result>
13150 </desc>
13151 <param name="logicalSize" type="long long" dir="in">
13152 <desc>Maximum logical size of the medium in bytes.</desc>
13153 </param>
13154 <param name="variant" type="MediumVariant" safearray="yes" dir="in">
13155 <desc>Exact image variant which should be created (as a combination of
13156 <link to="MediumVariant" /> flags).</desc>
13157 </param>
13158 <param name="progress" type="IProgress" dir="return">
13159 <desc>Progress object to track the operation completion.</desc>
13160 </param>
13161 </method>
13162
13163 <method name="deleteStorage">
13164 <desc>
13165 Starts deleting the storage unit of this medium.
13166
13167 The medium must not be attached to any known virtual machine and must
13168 not have any known child media, otherwise the operation will fail.
13169 It will also fail if there is no storage unit to delete or if deletion
13170 is already in progress, or if the medium is being in use (locked for
13171 read or for write) or inaccessible. Therefore, the only valid state for
13172 this operation to succeed is <link to="MediumState_Created"/>.
13173
13174 Before the operation starts, the medium is placed in
13175 <link to="MediumState_Deleting"/> state and gets removed from the list
13176 of remembered hard disks (media registry). If the delete operation
13177 fails, the medium will be remembered again and placed back to
13178 <link to="MediumState_Created"/> state.
13179
13180 After the returned progress object reports that the operation is
13181 complete, the medium state will be set to
13182 <link to="MediumState_NotCreated"/> and you will be able to use one of
13183 the storage creation methods to create it again.
13184
13185 <see><link to="#close"/></see>
13186
13187 <result name="VBOX_E_OBJECT_IN_USE">
13188 Medium is attached to a virtual machine.
13189 </result>
13190 <result name="VBOX_E_NOT_SUPPORTED">
13191 Storage deletion is not allowed because neither of storage creation
13192 operations are supported. See
13193 <link to="IMediumFormat::capabilities"/>.
13194 </result>
13195
13196 <note>
13197 If the deletion operation fails, it is not guaranteed that the storage
13198 unit still exists. You may check the <link to="IMedium::state"/> value
13199 to answer this question.
13200 </note>
13201 </desc>
13202 <param name="progress" type="IProgress" dir="return">
13203 <desc>Progress object to track the operation completion.</desc>
13204 </param>
13205 </method>
13206
13207 <!-- diff methods -->
13208
13209 <method name="createDiffStorage">
13210 <desc>
13211 Starts creating an empty differencing storage unit based on this
13212 medium in the format and at the location defined by the @a target
13213 argument.
13214
13215 The target medium must be in <link to="MediumState_NotCreated"/>
13216 state (i.e. must not have an existing storage unit). Upon successful
13217 completion, this operation will set the type of the target medium to
13218 <link to="MediumType_Normal"/> and create a storage unit necessary to
13219 represent the differencing medium data in the given format (according
13220 to the storage format of the target object).
13221
13222 After the returned progress object reports that the operation is
13223 successfully complete, the target medium gets remembered by this
13224 VirtualBox installation and may be attached to virtual machines.
13225
13226 <note>
13227 The medium will be set to <link to="MediumState_LockedRead"/>
13228 state for the duration of this operation.
13229 </note>
13230 <result name="VBOX_E_OBJECT_IN_USE">
13231 Medium not in @c NotCreated state.
13232 </result>
13233 </desc>
13234 <param name="target" type="IMedium" dir="in">
13235 <desc>Target medium.</desc>
13236 </param>
13237 <param name="variant" type="MediumVariant" safearray="yes" dir="in">
13238 <desc>Exact image variant which should be created (as a combination of
13239 <link to="MediumVariant" /> flags).</desc>
13240 </param>
13241 <param name="progress" type="IProgress" dir="return">
13242 <desc>Progress object to track the operation completion.</desc>
13243 </param>
13244 </method>
13245
13246 <method name="mergeTo">
13247 <desc>
13248 Starts merging the contents of this medium and all intermediate
13249 differencing media in the chain to the given target medium.
13250
13251 The target medium must be either a descendant of this medium or
13252 its ancestor (otherwise this method will immediately return a failure).
13253 It follows that there are two logical directions of the merge operation:
13254 from ancestor to descendant (<i>forward merge</i>) and from descendant to
13255 ancestor (<i>backward merge</i>). Let us consider the following medium
13256 chain:
13257
13258 <pre>Base &lt;- Diff_1 &lt;- Diff_2</pre>
13259
13260 Here, calling this method on the <tt>Base</tt> medium object with
13261 <tt>Diff_2</tt> as an argument will be a forward merge; calling it on
13262 <tt>Diff_2</tt> with <tt>Base</tt> as an argument will be a backward
13263 merge. Note that in both cases the contents of the resulting medium
13264 will be the same, the only difference is the medium object that takes
13265 the result of the merge operation. In case of the forward merge in the
13266 above example, the result will be written to <tt>Diff_2</tt>; in case of
13267 the backward merge, the result will be written to <tt>Base</tt>. In
13268 other words, the result of the operation is always stored in the target
13269 medium.
13270
13271 Upon successful operation completion, the storage units of all media in
13272 the chain between this (source) medium and the target medium, including
13273 the source medium itself, will be automatically deleted and the
13274 relevant medium objects (including this medium) will become
13275 uninitialized. This means that any attempt to call any of
13276 their methods or attributes will fail with the
13277 <tt>"Object not ready" (E_ACCESSDENIED)</tt> error. Applied to the above
13278 example, the forward merge of <tt>Base</tt> to <tt>Diff_2</tt> will
13279 delete and uninitialize both <tt>Base</tt> and <tt>Diff_1</tt> media.
13280 Note that <tt>Diff_2</tt> in this case will become a base medium
13281 itself since it will no longer be based on any other medium.
13282
13283 Considering the above, all of the following conditions must be met in
13284 order for the merge operation to succeed:
13285 <ul>
13286 <li>
13287 Neither this (source) medium nor any intermediate
13288 differencing medium in the chain between it and the target
13289 medium is attached to any virtual machine.
13290 </li>
13291 <li>
13292 Neither the source medium nor the target medium is an
13293 <link to="MediumType_Immutable"/> medium.
13294 </li>
13295 <li>
13296 The part of the medium tree from the source medium to the
13297 target medium is a linear chain, i.e. all medium in this
13298 chain have exactly one child which is the next medium in this
13299 chain. The only exception from this rule is the target medium in
13300 the forward merge operation; it is allowed to have any number of
13301 child media because the merge operation will not change its
13302 logical contents (as it is seen by the guest OS or by children).
13303 </li>
13304 <li>
13305 None of the involved media are in
13306 <link to="MediumState_LockedRead"/> or
13307 <link to="MediumState_LockedWrite"/> state.
13308 </li>
13309 </ul>
13310
13311 <note>
13312 This (source) medium and all intermediates will be placed to <link
13313 to="MediumState_Deleting"/> state and the target medium will be
13314 placed to <link to="MediumState_LockedWrite"/> state and for the
13315 duration of this operation.
13316 </note>
13317 </desc>
13318 <param name="target" type="IMedium" dir="in">
13319 <desc>Target medium.</desc>
13320 </param>
13321 <param name="progress" type="IProgress" dir="return">
13322 <desc>Progress object to track the operation completion.</desc>
13323 </param>
13324 </method>
13325
13326 <!-- clone method -->
13327
13328 <method name="cloneTo">
13329 <desc>
13330 Starts creating a clone of this medium in the format and at the
13331 location defined by the @a target argument.
13332
13333 The target medium must be either in <link to="MediumState_NotCreated"/>
13334 state (i.e. must not have an existing storage unit) or in
13335 <link to="MediumState_Created"/> state (i.e. created and not locked, and
13336 big enough to hold the data or else the copy will be partial). Upon
13337 successful completion, the cloned medium will contain exactly the
13338 same sector data as the medium being cloned, except that in the
13339 first case a new UUID for the clone will be randomly generated, and in
13340 the second case the UUID will remain unchanged.
13341
13342 The @a parent argument defines which medium will be the parent
13343 of the clone. Passing a @c null reference indicates that the clone will
13344 be a base image, i.e. completely independent. It is possible to specify
13345 an arbitrary medium for this parameter, including the parent of the
13346 medium which is being cloned. Even cloning to a child of the source
13347 medium is possible. Note that when cloning to an existing image, the
13348 @a parent argument is ignored.
13349
13350 After the returned progress object reports that the operation is
13351 successfully complete, the target medium gets remembered by this
13352 VirtualBox installation and may be attached to virtual machines.
13353
13354 <note>
13355 This medium will be placed to <link to="MediumState_LockedRead"/>
13356 state for the duration of this operation.
13357 </note>
13358 <result name="E_NOTIMPL">
13359 The specified cloning variant is not supported at the moment.
13360 </result>
13361 </desc>
13362 <param name="target" type="IMedium" dir="in">
13363 <desc>Target medium.</desc>
13364 </param>
13365 <param name="variant" type="MediumVariant" safearray="yes" dir="in">
13366 <desc>Exact image variant which should be created (as a combination of
13367 <link to="MediumVariant" /> flags).</desc>
13368 </param>
13369 <param name="parent" type="IMedium" dir="in">
13370 <desc>Parent of the cloned medium.</desc>
13371 </param>
13372 <param name="progress" type="IProgress" dir="return">
13373 <desc>Progress object to track the operation completion.</desc>
13374 </param>
13375 </method>
13376
13377 <method name="cloneToBase">
13378 <desc>
13379 Starts creating a clone of this medium in the format and at the
13380 location defined by the @a target argument.
13381
13382 The target medium must be either in <link to="MediumState_NotCreated"/>
13383 state (i.e. must not have an existing storage unit) or in
13384 <link to="MediumState_Created"/> state (i.e. created and not locked, and
13385 big enough to hold the data or else the copy will be partial). Upon
13386 successful completion, the cloned medium will contain exactly the
13387 same sector data as the medium being cloned, except that in the
13388 first case a new UUID for the clone will be randomly generated, and in
13389 the second case the UUID will remain unchanged.
13390
13391 The @a parent argument defines which medium will be the parent
13392 of the clone. In this case the clone will be a base image, i.e.
13393 completely independent. It is possible to specify an arbitrary
13394 medium for this parameter, including the parent of the
13395 medium which is being cloned. Even cloning to a child of the source
13396 medium is possible. Note that when cloning to an existing image, the
13397 @a parent argument is ignored.
13398
13399 After the returned progress object reports that the operation is
13400 successfully complete, the target medium gets remembered by this
13401 VirtualBox installation and may be attached to virtual machines.
13402
13403 <note>
13404 This medium will be placed to <link to="MediumState_LockedRead"/>
13405 state for the duration of this operation.
13406 </note>
13407 <result name="E_NOTIMPL">
13408 The specified cloning variant is not supported at the moment.
13409 </result>
13410 </desc>
13411 <param name="target" type="IMedium" dir="in">
13412 <desc>Target medium.</desc>
13413 </param>
13414 <param name="variant" type="MediumVariant" safearray="yes" dir="in">
13415 <desc><link to="MediumVariant" /> flags).</desc>
13416 </param>
13417 <param name="progress" type="IProgress" dir="return">
13418 <desc>Progress object to track the operation completion.</desc>
13419 </param>
13420 </method>
13421
13422 <!-- other methods -->
13423
13424 <method name="compact">
13425 <desc>
13426 Starts compacting of this medium. This means that the medium is
13427 transformed into a possibly more compact storage representation.
13428 This potentially creates temporary images, which can require a
13429 substantial amount of additional disk space.
13430
13431 This medium will be placed to <link to="MediumState_LockedWrite"/>
13432 state and all its parent media (if any) will be placed to
13433 <link to="MediumState_LockedRead"/> state for the duration of this
13434 operation.
13435
13436 Please note that the results can be either returned straight away,
13437 or later as the result of the background operation via the object
13438 returned via the @a progress parameter.
13439
13440 <result name="VBOX_E_NOT_SUPPORTED">
13441 Medium format does not support compacting (but potentially
13442 needs it).
13443 </result>
13444 </desc>
13445 <param name="progress" type="IProgress" dir="return">
13446 <desc>Progress object to track the operation completion.</desc>
13447 </param>
13448 </method>
13449
13450 <method name="resize">
13451 <desc>
13452 Starts resizing this medium. This means that the nominal size of the
13453 medium is set to the new value. Both increasing and decreasing the
13454 size is possible, and there are no safety checks, since VirtualBox
13455 does not make any assumptions about the medium contents.
13456
13457 Resizing usually needs additional disk space, and possibly also
13458 some temporary disk space. Note that resize does not create a full
13459 temporary copy of the medium, so the additional disk space requirement
13460 is usually much lower than using the clone operation.
13461
13462 This medium will be placed to <link to="MediumState_LockedWrite"/>
13463 state for the duration of this operation.
13464
13465 Please note that the results can be either returned straight away,
13466 or later as the result of the background operation via the object
13467 returned via the @a progress parameter.
13468
13469 <result name="VBOX_E_NOT_SUPPORTED">
13470 Medium format does not support resizing.
13471 </result>
13472 </desc>
13473 <param name="logicalSize" type="long long" dir="in">
13474 <desc>New nominal capacity of the medium in bytes.</desc>
13475 </param>
13476 <param name="progress" type="IProgress" dir="return">
13477 <desc>Progress object to track the operation completion.</desc>
13478 </param>
13479 </method>
13480
13481 <method name="reset">
13482 <desc>
13483 Starts erasing the contents of this differencing medium.
13484
13485 This operation will reset the differencing medium to its initial
13486 state when it does not contain any sector data and any read operation is
13487 redirected to its parent medium. This automatically gets called
13488 during VM power-up for every medium whose <link to="#autoReset" />
13489 attribute is @c true.
13490
13491 The medium will be write-locked for the duration of this operation (see
13492 <link to="#lockWrite" />).
13493
13494 <result name="VBOX_E_NOT_SUPPORTED">
13495 This is not a differencing medium.
13496 </result>
13497 <result name="VBOX_E_INVALID_OBJECT_STATE">
13498 Medium is not in <link to="MediumState_Created"/> or
13499 <link to="MediumState_Inaccessible"/> state.
13500 </result>
13501 </desc>
13502 <param name="progress" type="IProgress" dir="return">
13503 <desc>Progress object to track the operation completion.</desc>
13504 </param>
13505 </method>
13506
13507 </interface>
13508
13509
13510 <!--
13511 // IMediumFormat
13512 /////////////////////////////////////////////////////////////////////////
13513 -->
13514
13515 <enum
13516 name="DataType"
13517 uuid="d90ea51e-a3f1-4a01-beb1-c1723c0d3ba7"
13518 >
13519 <const name="Int32" value="0"/>
13520 <const name="Int8" value="1"/>
13521 <const name="String" value="2"/>
13522 </enum>
13523
13524 <enum
13525 name="DataFlags"
13526 uuid="86884dcf-1d6b-4f1b-b4bf-f5aa44959d60"
13527 >
13528 <const name="None" value="0x00"/>
13529 <const name="Mandatory" value="0x01"/>
13530 <const name="Expert" value="0x02"/>
13531 <const name="Array" value="0x04"/>
13532 <const name="FlagMask" value="0x07"/>
13533 </enum>
13534
13535 <enum
13536 name="MediumFormatCapabilities"
13537 uuid="7342ba79-7ce0-4d94-8f86-5ed5a185d9bd"
13538 >
13539 <desc>
13540 Medium format capability flags.
13541 </desc>
13542
13543 <const name="Uuid" value="0x01">
13544 <desc>
13545 Supports UUIDs as expected by VirtualBox code.
13546 </desc>
13547 </const>
13548
13549 <const name="CreateFixed" value="0x02">
13550 <desc>
13551 Supports creating fixed size images, allocating all space instantly.
13552 </desc>
13553 </const>
13554
13555 <const name="CreateDynamic" value="0x04">
13556 <desc>
13557 Supports creating dynamically growing images, allocating space on
13558 demand.
13559 </desc>
13560 </const>
13561
13562 <const name="CreateSplit2G" value="0x08">
13563 <desc>
13564 Supports creating images split in chunks of a bit less than 2 GBytes.
13565 </desc>
13566 </const>
13567
13568 <const name="Differencing" value="0x10">
13569 <desc>
13570 Supports being used as a format for differencing media (see <link
13571 to="IMedium::createDiffStorage"/>).
13572 </desc>
13573 </const>
13574
13575 <const name="Asynchronous" value="0x20">
13576 <desc>
13577 Supports asynchronous I/O operations for at least some configurations.
13578 </desc>
13579 </const>
13580
13581 <const name="File" value="0x40">
13582 <desc>
13583 The format backend operates on files (the <link to="IMedium::location"/>
13584 attribute of the medium specifies a file used to store medium
13585 data; for a list of supported file extensions see
13586 <link to="IMediumFormat::describeFileExtensions"/>).
13587 </desc>
13588 </const>
13589
13590 <const name="Properties" value="0x80">
13591 <desc>
13592 The format backend uses the property interface to configure the storage
13593 location and properties (the <link to="IMediumFormat::describeProperties"/>
13594 method is used to get access to properties supported by the given medium format).
13595 </desc>
13596 </const>
13597
13598 <const name="TcpNetworking" value="0x100">
13599 <desc>
13600 The format backend uses the TCP networking interface for network access.
13601 </desc>
13602 </const>
13603
13604 <const name="VFS" value="0x200">
13605 <desc>
13606 The format backend supports virtual filesystem functionality.
13607 </desc>
13608 </const>
13609
13610 <const name="CapabilityMask" value="0x3FF"/>
13611 </enum>
13612
13613 <interface
13614 name="IMediumFormat" extends="$unknown"
13615 uuid="6238e1cf-a17d-4ec1-8172-418bfb22b93a"
13616 wsmap="managed"
13617 >
13618 <desc>
13619 The IMediumFormat interface represents a medium format.
13620
13621 Each medium format has an associated backend which is used to handle
13622 media stored in this format. This interface provides information
13623 about the properties of the associated backend.
13624
13625 Each medium format is identified by a string represented by the
13626 <link to="#id"/> attribute. This string is used in calls like
13627 <link to="IVirtualBox::createHardDisk"/> to specify the desired
13628 format.
13629
13630 The list of all supported medium formats can be obtained using
13631 <link to="ISystemProperties::mediumFormats"/>.
13632
13633 <see><link to="IMedium"/></see>
13634 </desc>
13635
13636 <attribute name="id" type="wstring" readonly="yes">
13637 <desc>
13638 Identifier of this format.
13639
13640 The format identifier is a non-@c null non-empty ASCII string. Note that
13641 this string is case-insensitive. This means that, for example, all of
13642 the following strings:
13643 <pre>
13644 "VDI"
13645 "vdi"
13646 "VdI"</pre>
13647 refer to the same medium format.
13648
13649 This string is used in methods of other interfaces where it is necessary
13650 to specify a medium format, such as
13651 <link to="IVirtualBox::createHardDisk"/>.
13652 </desc>
13653 </attribute>
13654
13655 <attribute name="name" type="wstring" readonly="yes">
13656 <desc>
13657 Human readable description of this format.
13658
13659 Mainly for use in file open dialogs.
13660 </desc>
13661 </attribute>
13662
13663 <attribute name="capabilities" type="MediumFormatCapabilities" safearray="yes" readonly="yes">
13664 <desc>
13665 Capabilities of the format as an array of the flags.
13666
13667 For the meaning of individual capability flags see
13668 <link to="MediumFormatCapabilities"/>.
13669 </desc>
13670 </attribute>
13671
13672 <method name="describeFileExtensions">
13673 <desc>
13674 Returns two arrays describing the supported file extensions.
13675
13676 The first array contains the supported extensions and the seconds one
13677 the type each extension supports. Both have the same size.
13678
13679 Note that some backends do not work on files, so this array may be
13680 empty.
13681
13682 <see><link to="IMediumFormat::capabilities"/></see>
13683 </desc>
13684 <param name="extensions" type="wstring" safearray="yes" dir="out">
13685 <desc>The array of supported extensions.</desc>
13686 </param>
13687 <param name="type" type="DeviceType" safearray="yes" dir="out">
13688 <desc>The array which indicates the device type for every given extension.</desc>
13689 </param>
13690 </method>
13691
13692 <method name="describeProperties" const="yes">
13693 <desc>
13694 Returns several arrays describing the properties supported by this
13695 format.
13696
13697 An element with the given index in each array describes one
13698 property. Thus, the number of elements in each returned array is the
13699 same and corresponds to the number of supported properties.
13700
13701 The returned arrays are filled in only if the
13702 <link to="MediumFormatCapabilities_Properties"/> flag is set.
13703 All arguments must be non-@c null.
13704
13705 <see><link to="DataType"/>, <link to="DataFlags"/></see>
13706 </desc>
13707
13708 <param name="names" type="wstring" safearray="yes" dir="out">
13709 <desc>Array of property names.</desc>
13710 </param>
13711 <param name="description" type="wstring" safearray="yes" dir="out">
13712 <desc>Array of property descriptions.</desc>
13713 </param>
13714 <param name="types" type="DataType" safearray="yes" dir="out">
13715 <desc>Array of property types.</desc>
13716 </param>
13717 <param name="flags" type="unsigned long" safearray="yes" dir="out">
13718 <desc>Array of property flags.</desc>
13719 </param>
13720 <param name="defaults" type="wstring" safearray="yes" dir="out">
13721 <desc>Array of default property values.</desc>
13722 </param>
13723 </method>
13724
13725 </interface>
13726
13727
13728 <!--
13729 // IKeyboard
13730 /////////////////////////////////////////////////////////////////////////
13731 -->
13732
13733 <interface
13734 name="IKeyboard" extends="$unknown"
13735 uuid="f6916ec5-a881-4237-898f-7de58cf88672"
13736 wsmap="managed"
13737 >
13738 <desc>
13739 The IKeyboard interface represents the virtual machine's keyboard. Used
13740 in <link to="IConsole::keyboard"/>.
13741
13742 Use this interface to send keystrokes or the Ctrl-Alt-Del sequence
13743 to the virtual machine.
13744
13745 </desc>
13746 <method name="putScancode">
13747 <desc>Sends a scancode to the keyboard.
13748
13749 <result name="VBOX_E_IPRT_ERROR">
13750 Could not send scan code to virtual keyboard.
13751 </result>
13752
13753 </desc>
13754 <param name="scancode" type="long" dir="in"/>
13755 </method>
13756
13757 <method name="putScancodes">
13758 <desc>Sends an array of scancodes to the keyboard.
13759
13760 <result name="VBOX_E_IPRT_ERROR">
13761 Could not send all scan codes to virtual keyboard.
13762 </result>
13763
13764 </desc>
13765 <param name="scancodes" type="long" dir="in" safearray="yes"/>
13766 <param name="codesStored" type="unsigned long" dir="return"/>
13767 </method>
13768
13769 <method name="putCAD">
13770 <desc>Sends the Ctrl-Alt-Del sequence to the keyboard. This
13771 function is nothing special, it is just a convenience function
13772 calling <link to="IKeyboard::putScancodes"/> with the proper scancodes.
13773
13774 <result name="VBOX_E_IPRT_ERROR">
13775 Could not send all scan codes to virtual keyboard.
13776 </result>
13777
13778 </desc>
13779 </method>
13780
13781 <attribute name="eventSource" type="IEventSource" readonly="yes">
13782 <desc>
13783 Event source for keyboard events.
13784 </desc>
13785 </attribute>
13786
13787 </interface>
13788
13789
13790 <!--
13791 // IMouse
13792 /////////////////////////////////////////////////////////////////////////
13793 -->
13794
13795 <enum
13796 name="MouseButtonState"
13797 uuid="9ee094b8-b28a-4d56-a166-973cb588d7f8"
13798 >
13799 <desc>
13800 Mouse button state.
13801 </desc>
13802
13803 <const name="LeftButton" value="0x01"/>
13804 <const name="RightButton" value="0x02"/>
13805 <const name="MiddleButton" value="0x04"/>
13806 <const name="WheelUp" value="0x08"/>
13807 <const name="WheelDown" value="0x10"/>
13808 <const name="XButton1" value="0x20"/>
13809 <const name="XButton2" value="0x40"/>
13810 <const name="MouseStateMask" value="0x7F"/>
13811 </enum>
13812
13813 <interface
13814 name="IMouse" extends="$unknown"
13815 uuid="05044a52-7811-4f00-ae3a-0ab7ff707b10"
13816 wsmap="managed"
13817 >
13818 <desc>
13819 The IMouse interface represents the virtual machine's mouse. Used in
13820 <link to="IConsole::mouse"/>.
13821
13822 Through this interface, the virtual machine's virtual mouse can be
13823 controlled.
13824 </desc>
13825
13826 <attribute name="absoluteSupported" type="boolean" readonly="yes">
13827 <desc>
13828 Whether the guest OS supports absolute mouse pointer positioning
13829 or not.
13830 <note>
13831 You can use the <link to="IMouseCapabilityChangedEvent"/>
13832 event to be instantly informed about changes of this attribute
13833 during virtual machine execution.
13834 </note>
13835 <see><link to="#putMouseEventAbsolute"/></see>
13836 </desc>
13837 </attribute>
13838
13839 <attribute name="relativeSupported" type="boolean" readonly="yes">
13840 <desc>
13841 Whether the guest OS supports relative mouse pointer positioning
13842 or not.
13843 <note>
13844 You can use the <link to="IMouseCapabilityChangedEvent"/>
13845 event to be instantly informed about changes of this attribute
13846 during virtual machine execution.
13847 </note>
13848 <see><link to="#putMouseEvent"/></see>
13849 </desc>
13850 </attribute>
13851
13852 <attribute name="needsHostCursor" type="boolean" readonly="yes">
13853 <desc>
13854 Whether the guest OS can currently switch to drawing it's own mouse
13855 cursor on demand.
13856 <note>
13857 You can use the <link to="IMouseCapabilityChangedEvent"/>
13858 event to be instantly informed about changes of this attribute
13859 during virtual machine execution.
13860 </note>
13861 <see><link to="#putMouseEvent"/></see>
13862 </desc>
13863 </attribute>
13864
13865 <method name="putMouseEvent">
13866 <desc>
13867 Initiates a mouse event using relative pointer movements
13868 along x and y axis.
13869
13870 <result name="E_ACCESSDENIED">
13871 Console not powered up.
13872 </result>
13873 <result name="VBOX_E_IPRT_ERROR">
13874 Could not send mouse event to virtual mouse.
13875 </result>
13876
13877 </desc>
13878
13879 <param name="dx" type="long" dir="in">
13880 <desc>
13881 Amount of pixels the mouse should move to the right.
13882 Negative values move the mouse to the left.
13883 </desc>
13884 </param>
13885 <param name="dy" type="long" dir="in">
13886 <desc>
13887 Amount of pixels the mouse should move downwards.
13888 Negative values move the mouse upwards.
13889 </desc>
13890 </param>
13891 <param name="dz" type="long" dir="in">
13892 <desc>
13893 Amount of mouse wheel moves.
13894 Positive values describe clockwise wheel rotations,
13895 negative values describe counterclockwise rotations.
13896 </desc>
13897 </param>
13898 <param name="dw" type="long" dir="in">
13899 <desc>
13900 Amount of horizontal mouse wheel moves.
13901 Positive values describe a movement to the left,
13902 negative values describe a movement to the right.
13903 </desc>
13904 </param>
13905 <param name="buttonState" type="long" dir="in">
13906 <desc>
13907 The current state of mouse buttons. Every bit represents
13908 a mouse button as follows:
13909 <table>
13910 <tr><td>Bit 0 (<tt>0x01</tt>)</td><td>left mouse button</td></tr>
13911 <tr><td>Bit 1 (<tt>0x02</tt>)</td><td>right mouse button</td></tr>
13912 <tr><td>Bit 2 (<tt>0x04</tt>)</td><td>middle mouse button</td></tr>
13913 </table>
13914 A value of <tt>1</tt> means the corresponding button is pressed.
13915 otherwise it is released.
13916 </desc>
13917 </param>
13918 </method>
13919
13920 <method name="putMouseEventAbsolute">
13921 <desc>
13922 Positions the mouse pointer using absolute x and y coordinates.
13923 These coordinates are expressed in pixels and
13924 start from <tt>[1,1]</tt> which corresponds to the top left
13925 corner of the virtual display.
13926
13927 <result name="E_ACCESSDENIED">
13928 Console not powered up.
13929 </result>
13930 <result name="VBOX_E_IPRT_ERROR">
13931 Could not send mouse event to virtual mouse.
13932 </result>
13933
13934 <note>
13935 This method will have effect only if absolute mouse
13936 positioning is supported by the guest OS.
13937 </note>
13938
13939 <see><link to="#absoluteSupported"/></see>
13940 </desc>
13941
13942 <param name="x" type="long" dir="in">
13943 <desc>
13944 X coordinate of the pointer in pixels, starting from @c 1.
13945 </desc>
13946 </param>
13947 <param name="y" type="long" dir="in">
13948 <desc>
13949 Y coordinate of the pointer in pixels, starting from @c 1.
13950 </desc>
13951 </param>
13952 <param name="dz" type="long" dir="in">
13953 <desc>
13954 Amount of mouse wheel moves.
13955 Positive values describe clockwise wheel rotations,
13956 negative values describe counterclockwise rotations.
13957 </desc>
13958 </param>
13959 <param name="dw" type="long" dir="in">
13960 <desc>
13961 Amount of horizontal mouse wheel moves.
13962 Positive values describe a movement to the left,
13963 negative values describe a movement to the right.
13964 </desc>
13965 </param>
13966 <param name="buttonState" type="long" dir="in">
13967 <desc>
13968 The current state of mouse buttons. Every bit represents
13969 a mouse button as follows:
13970 <table>
13971 <tr><td>Bit 0 (<tt>0x01</tt>)</td><td>left mouse button</td></tr>
13972 <tr><td>Bit 1 (<tt>0x02</tt>)</td><td>right mouse button</td></tr>
13973 <tr><td>Bit 2 (<tt>0x04</tt>)</td><td>middle mouse button</td></tr>
13974 </table>
13975 A value of @c 1 means the corresponding button is pressed.
13976 otherwise it is released.
13977 </desc>
13978 </param>
13979 </method>
13980
13981 <attribute name="eventSource" type="IEventSource" readonly="yes">
13982 <desc>
13983 Event source for mouse events.
13984 </desc>
13985 </attribute>
13986
13987 </interface>
13988
13989 <!--
13990 // IDisplay
13991 /////////////////////////////////////////////////////////////////////////
13992 -->
13993
13994 <enum
13995 name="FramebufferPixelFormat"
13996 uuid="7acfd5ed-29e3-45e3-8136-73c9224f3d2d"
13997 >
13998 <desc>
13999 Format of the video memory buffer. Constants represented by this enum can
14000 be used to test for particular values of <link
14001 to="IFramebuffer::pixelFormat"/>. See also <link
14002 to="IFramebuffer::requestResize"/>.
14003
14004 See also www.fourcc.org for more information about FOURCC pixel formats.
14005 </desc>
14006
14007 <const name="Opaque" value="0">
14008 <desc>
14009 Unknown buffer format (the user may not assume any particular format of
14010 the buffer).
14011 </desc>
14012 </const>
14013 <const name="FOURCC_RGB" value="0x32424752">
14014 <desc>
14015 Basic RGB format (<link to="IFramebuffer::bitsPerPixel"/> determines the
14016 bit layout).
14017 </desc>
14018 </const>
14019 </enum>
14020
14021 <interface
14022 name="IFramebuffer" extends="$unknown"
14023 uuid="b7ed347a-5765-40a0-ae1c-f543eb4ddeaf"
14024 wsmap="suppress"
14025 >
14026 <attribute name="address" type="octet" mod="ptr" readonly="yes">
14027 <desc>Address of the start byte of the frame buffer.</desc>
14028 </attribute>
14029
14030 <attribute name="width" type="unsigned long" readonly="yes">
14031 <desc>Frame buffer width, in pixels.</desc>
14032 </attribute>
14033
14034 <attribute name="height" type="unsigned long" readonly="yes">
14035 <desc>Frame buffer height, in pixels.</desc>
14036 </attribute>
14037
14038 <attribute name="bitsPerPixel" type="unsigned long" readonly="yes">
14039 <desc>
14040 Color depth, in bits per pixel. When <link to="#pixelFormat"/> is <link
14041 to="FramebufferPixelFormat_FOURCC_RGB">FOURCC_RGB</link>, valid values
14042 are: 8, 15, 16, 24 and 32.
14043 </desc>
14044 </attribute>
14045
14046 <attribute name="bytesPerLine" type="unsigned long" readonly="yes">
14047 <desc>
14048 Scan line size, in bytes. When <link to="#pixelFormat"/> is <link
14049 to="FramebufferPixelFormat_FOURCC_RGB">FOURCC_RGB</link>, the
14050 size of the scan line must be aligned to 32 bits.
14051 </desc>
14052 </attribute>
14053
14054 <attribute name="pixelFormat" type="unsigned long" readonly="yes">
14055 <desc>
14056 Frame buffer pixel format. It's either one of the values defined by <link
14057 to="FramebufferPixelFormat"/> or a raw FOURCC code.
14058 <note>
14059 This attribute must never return <link
14060 to="FramebufferPixelFormat_Opaque"/> -- the format of the buffer
14061 <link to="#address"/> points to must be always known.
14062 </note>
14063 </desc>
14064 </attribute>
14065
14066 <attribute name="usesGuestVRAM" type="boolean" readonly="yes">
14067 <desc>
14068 Defines whether this frame buffer uses the virtual video card's memory
14069 buffer (guest VRAM) directly or not. See <link
14070 to="IFramebuffer::requestResize"/> for more information.
14071 </desc>
14072 </attribute>
14073
14074 <attribute name="heightReduction" type="unsigned long" readonly="yes">
14075 <desc>
14076 Hint from the frame buffer about how much of the standard
14077 screen height it wants to use for itself. This information is
14078 exposed to the guest through the VESA BIOS and VMMDev interface
14079 so that it can use it for determining its video mode table. It
14080 is not guaranteed that the guest respects the value.
14081 </desc>
14082 </attribute>
14083
14084 <attribute name="overlay" type="IFramebufferOverlay" readonly="yes">
14085 <desc>
14086 An alpha-blended overlay which is superposed over the frame buffer.
14087 The initial purpose is to allow the display of icons providing
14088 information about the VM state, including disk activity, in front
14089 ends which do not have other means of doing that. The overlay is
14090 designed to controlled exclusively by IDisplay. It has no locking
14091 of its own, and any changes made to it are not guaranteed to be
14092 visible until the affected portion of IFramebuffer is updated. The
14093 overlay can be created lazily the first time it is requested. This
14094 attribute can also return @c null to signal that the overlay is not
14095 implemented.
14096 </desc>
14097 </attribute>
14098
14099 <attribute name="winId" type="long long" readonly="yes">
14100 <desc>
14101 Platform-dependent identifier of the window where context of this
14102 frame buffer is drawn, or zero if there's no such window.
14103 </desc>
14104 </attribute>
14105
14106 <method name="lock">
14107 <desc>
14108 Locks the frame buffer.
14109 Gets called by the IDisplay object where this frame buffer is
14110 bound to.
14111 </desc>
14112 </method>
14113
14114 <method name="unlock">
14115 <desc>
14116 Unlocks the frame buffer.
14117 Gets called by the IDisplay object where this frame buffer is
14118 bound to.
14119 </desc>
14120 </method>
14121
14122 <method name="notifyUpdate">
14123 <desc>
14124 Informs about an update.
14125 Gets called by the display object where this buffer is
14126 registered.
14127 </desc>
14128 <param name="x" type="unsigned long" dir="in"/>
14129 <param name="y" type="unsigned long" dir="in"/>
14130 <param name="width" type="unsigned long" dir="in"/>
14131 <param name="height" type="unsigned long" dir="in"/>
14132 </method>
14133
14134 <method name="requestResize">
14135 <desc>
14136 Requests a size and pixel format change.
14137
14138 There are two modes of working with the video buffer of the virtual
14139 machine. The <i>indirect</i> mode implies that the IFramebuffer
14140 implementation allocates a memory buffer for the requested display mode
14141 and provides it to the virtual machine. In <i>direct</i> mode, the
14142 IFramebuffer implementation uses the memory buffer allocated and owned
14143 by the virtual machine. This buffer represents the video memory of the
14144 emulated video adapter (so called <i>guest VRAM</i>). The direct mode is
14145 usually faster because the implementation gets a raw pointer to the
14146 guest VRAM buffer which it can directly use for visualizing the contents
14147 of the virtual display, as opposed to the indirect mode where the
14148 contents of guest VRAM are copied to the memory buffer provided by
14149 the implementation every time a display update occurs.
14150
14151 It is important to note that the direct mode is really fast only when
14152 the implementation uses the given guest VRAM buffer directly, for
14153 example, by blitting it to the window representing the virtual machine's
14154 display, which saves at least one copy operation comparing to the
14155 indirect mode. However, using the guest VRAM buffer directly is not
14156 always possible: the format and the color depth of this buffer may be
14157 not supported by the target window, or it may be unknown (opaque) as in
14158 case of text or non-linear multi-plane VGA video modes. In this case,
14159 the indirect mode (that is always available) should be used as a
14160 fallback: when the guest VRAM contents are copied to the
14161 implementation-provided memory buffer, color and format conversion is
14162 done automatically by the underlying code.
14163
14164 The @a pixelFormat parameter defines whether the direct mode is
14165 available or not. If @a pixelFormat is <link
14166 to="FramebufferPixelFormat_Opaque"/> then direct access to the guest
14167 VRAM buffer is not available -- the @a VRAM, @a bitsPerPixel and
14168 @a bytesPerLine parameters must be ignored and the implementation must use
14169 the indirect mode (where it provides its own buffer in one of the
14170 supported formats). In all other cases, @a pixelFormat together with
14171 @a bitsPerPixel and @a bytesPerLine define the format of the video memory
14172 buffer pointed to by the @a VRAM parameter and the implementation is
14173 free to choose which mode to use. To indicate that this frame buffer uses
14174 the direct mode, the implementation of the <link to="#usesGuestVRAM"/>
14175 attribute must return @c true and <link to="#address"/> must
14176 return exactly the same address that is passed in the @a VRAM parameter
14177 of this method; otherwise it is assumed that the indirect strategy is
14178 chosen.
14179
14180 The @a width and @a height parameters represent the size of the
14181 requested display mode in both modes. In case of indirect mode, the
14182 provided memory buffer should be big enough to store data of the given
14183 display mode. In case of direct mode, it is guaranteed that the given
14184 @a VRAM buffer contains enough space to represent the display mode of the
14185 given size. Note that this frame buffer's <link to="#width"/> and <link
14186 to="#height"/> attributes must return exactly the same values as
14187 passed to this method after the resize is completed (see below).
14188
14189 The @a finished output parameter determines if the implementation has
14190 finished resizing the frame buffer or not. If, for some reason, the
14191 resize cannot be finished immediately during this call, @a finished
14192 must be set to @c false, and the implementation must call
14193 <link to="IDisplay::resizeCompleted"/> after it has returned from
14194 this method as soon as possible. If @a finished is @c false, the
14195 machine will not call any frame buffer methods until
14196 <link to="IDisplay::resizeCompleted"/> is called.
14197
14198 Note that if the direct mode is chosen, the <link to="#bitsPerPixel"/>,
14199 <link to="#bytesPerLine"/> and <link to="#pixelFormat"/> attributes of
14200 this frame buffer must return exactly the same values as specified in the
14201 parameters of this method, after the resize is completed. If the
14202 indirect mode is chosen, these attributes must return values describing
14203 the format of the implementation's own memory buffer <link
14204 to="#address"/> points to. Note also that the <link to="#bitsPerPixel"/>
14205 value must always correlate with <link to="#pixelFormat"/>. Note that
14206 the <link to="#pixelFormat"/> attribute must never return <link
14207 to="FramebufferPixelFormat_Opaque"/> regardless of the selected mode.
14208
14209 <note>
14210 This method is called by the IDisplay object under the
14211 <link to="#lock"/> provided by this IFramebuffer
14212 implementation. If this method returns @c false in @a finished, then
14213 this lock is not released until
14214 <link to="IDisplay::resizeCompleted"/> is called.
14215 </note>
14216 </desc>
14217 <param name="screenId" type="unsigned long" dir="in">
14218 <desc>
14219 Logical screen number. Must be used in the corresponding call to
14220 <link to="IDisplay::resizeCompleted"/> if this call is made.
14221 </desc>
14222 </param>
14223 <param name="pixelFormat" type="unsigned long" dir="in">
14224 <desc>
14225 Pixel format of the memory buffer pointed to by @a VRAM.
14226 See also <link to="FramebufferPixelFormat"/>.
14227 </desc>
14228 </param>
14229 <param name="VRAM" type="octet" mod="ptr" dir="in">
14230 <desc>Pointer to the virtual video card's VRAM (may be @c null).</desc>
14231 </param>
14232 <param name="bitsPerPixel" type="unsigned long" dir="in">
14233 <desc>Color depth, bits per pixel.</desc>
14234 </param>
14235 <param name="bytesPerLine" type="unsigned long" dir="in">
14236 <desc>Size of one scan line, in bytes.</desc>
14237 </param>
14238 <param name="width" type="unsigned long" dir="in">
14239 <desc>Width of the guest display, in pixels.</desc>
14240 </param>
14241 <param name="height" type="unsigned long" dir="in">
14242 <desc>Height of the guest display, in pixels.</desc>
14243 </param>
14244 <param name="finished" type="boolean" dir="return">
14245 <desc>
14246 Can the VM start using the new frame buffer immediately
14247 after this method returns or it should wait for
14248 <link to="IDisplay::resizeCompleted"/>.
14249 </desc>
14250 </param>
14251 </method>
14252
14253 <method name="videoModeSupported">
14254 <desc>
14255 Returns whether the frame buffer implementation is willing to
14256 support a given video mode. In case it is not able to render
14257 the video mode (or for some reason not willing), it should
14258 return @c false. Usually this method is called when the guest
14259 asks the VMM device whether a given video mode is supported
14260 so the information returned is directly exposed to the guest.
14261 It is important that this method returns very quickly.
14262 </desc>
14263 <param name="width" type="unsigned long" dir="in"/>
14264 <param name="height" type="unsigned long" dir="in"/>
14265 <param name="bpp" type="unsigned long" dir="in"/>
14266 <param name="supported" type="boolean" dir="return"/>
14267 </method>
14268
14269 <method name="getVisibleRegion">
14270 <desc>
14271 Returns the visible region of this frame buffer.
14272
14273 If the @a rectangles parameter is @c null then the value of the
14274 @a count parameter is ignored and the number of elements necessary to
14275 describe the current visible region is returned in @a countCopied.
14276
14277 If @a rectangles is not @c null but @a count is less
14278 than the required number of elements to store region data, the method
14279 will report a failure. If @a count is equal or greater than the
14280 required number of elements, then the actual number of elements copied
14281 to the provided array will be returned in @a countCopied.
14282
14283 <note>
14284 The address of the provided array must be in the process space of
14285 this IFramebuffer object.
14286 </note>
14287 <note>
14288 Method not yet implemented.
14289 </note>
14290 </desc>
14291 <param name="rectangles" type="octet" mod="ptr" dir="in">
14292 <desc>Pointer to the @c RTRECT array to receive region data.</desc>
14293 </param>
14294 <param name="count" type="unsigned long" dir="in">
14295 <desc>Number of @c RTRECT elements in the @a rectangles array.</desc>
14296 </param>
14297 <param name="countCopied" type="unsigned long" dir="return">
14298 <desc>Number of elements copied to the @a rectangles array.</desc>
14299 </param>
14300 </method>
14301
14302 <method name="setVisibleRegion">
14303 <desc>
14304 Suggests a new visible region to this frame buffer. This region
14305 represents the area of the VM display which is a union of regions of
14306 all top-level windows of the guest operating system running inside the
14307 VM (if the Guest Additions for this system support this
14308 functionality). This information may be used by the frontends to
14309 implement the seamless desktop integration feature.
14310
14311 <note>
14312 The address of the provided array must be in the process space of
14313 this IFramebuffer object.
14314 </note>
14315 <note>
14316 The IFramebuffer implementation must make a copy of the provided
14317 array of rectangles.
14318 </note>
14319 <note>
14320 Method not yet implemented.
14321 </note>
14322 </desc>
14323 <param name="rectangles" type="octet" mod="ptr" dir="in">
14324 <desc>Pointer to the @c RTRECT array.</desc>
14325 </param>
14326 <param name="count" type="unsigned long" dir="in">
14327 <desc>Number of @c RTRECT elements in the @a rectangles array.</desc>
14328 </param>
14329 </method>
14330
14331 <method name="processVHWACommand">
14332 <desc>
14333 Posts a Video HW Acceleration Command to the frame buffer for processing.
14334 The commands used for 2D video acceleration (DDraw surface creation/destroying, blitting, scaling, color conversion, overlaying, etc.)
14335 are posted from quest to the host to be processed by the host hardware.
14336
14337 <note>
14338 The address of the provided command must be in the process space of
14339 this IFramebuffer object.
14340 </note>
14341 </desc>
14342
14343 <param name="command" type="octet" mod="ptr" dir="in">
14344 <desc>Pointer to VBOXVHWACMD containing the command to execute.</desc>
14345 </param>
14346 </method>
14347
14348 </interface>
14349
14350 <interface
14351 name="IFramebufferOverlay" extends="IFramebuffer"
14352 uuid="0bcc1c7e-e415-47d2-bfdb-e4c705fb0f47"
14353 wsmap="suppress"
14354 >
14355 <desc>
14356 The IFramebufferOverlay interface represents an alpha blended overlay
14357 for displaying status icons above an IFramebuffer. It is always created
14358 not visible, so that it must be explicitly shown. It only covers a
14359 portion of the IFramebuffer, determined by its width, height and
14360 co-ordinates. It is always in packed pixel little-endian 32bit ARGB (in
14361 that order) format, and may be written to directly. Do re-read the
14362 width though, after setting it, as it may be adjusted (increased) to
14363 make it more suitable for the front end.
14364 </desc>
14365 <attribute name="x" type="unsigned long" readonly="yes">
14366 <desc>X position of the overlay, relative to the frame buffer.</desc>
14367 </attribute>
14368
14369 <attribute name="y" type="unsigned long" readonly="yes">
14370 <desc>Y position of the overlay, relative to the frame buffer.</desc>
14371 </attribute>
14372
14373 <attribute name="visible" type="boolean" readonly="no">
14374 <desc>
14375 Whether the overlay is currently visible.
14376 </desc>
14377 </attribute>
14378
14379 <attribute name="alpha" type="unsigned long" readonly="no">
14380 <desc>
14381 The global alpha value for the overlay. This may or may not be
14382 supported by a given front end.
14383 </desc>
14384 </attribute>
14385
14386 <method name="move">
14387 <desc>
14388 Changes the overlay's position relative to the IFramebuffer.
14389 </desc>
14390 <param name="x" type="unsigned long" dir="in"/>
14391 <param name="y" type="unsigned long" dir="in"/>
14392 </method>
14393
14394 </interface>
14395
14396 <interface
14397 name="IDisplay" extends="$unknown"
14398 uuid="b83ee395-8679-40ca-8d60-1a0cbe724930"
14399 wsmap="managed"
14400 >
14401 <desc>
14402 The IDisplay interface represents the virtual machine's display.
14403
14404 The object implementing this interface is contained in each
14405 <link to="IConsole::display"/> attribute and represents the visual
14406 output of the virtual machine.
14407
14408 The virtual display supports pluggable output targets represented by the
14409 IFramebuffer interface. Examples of the output target are a window on
14410 the host computer or an RDP session's display on a remote computer.
14411 </desc>
14412 <method name="getScreenResolution">
14413 <desc>Queries display width, height and color depth for given screen.</desc>
14414 <param name="screenId" type="unsigned long" dir="in"/>
14415 <param name="width" type="unsigned long" dir="out"/>
14416 <param name="height" type="unsigned long" dir="out"/>
14417 <param name="bitsPerPixel" type="unsigned long" dir="out"/>
14418 </method>
14419
14420 <method name="setFramebuffer">
14421 <desc>
14422 Sets the framebuffer for given screen.
14423 </desc>
14424 <param name="screenId" type="unsigned long" dir="in"/>
14425 <param name="framebuffer" type="IFramebuffer" dir="in"/>
14426 </method>
14427
14428 <method name="getFramebuffer">
14429 <desc>
14430 Queries the framebuffer for given screen.
14431 </desc>
14432 <param name="screenId" type="unsigned long" dir="in"/>
14433 <param name="framebuffer" type="IFramebuffer" dir="out"/>
14434 <param name="xOrigin" type="long" dir="out"/>
14435 <param name="yOrigin" type="long" dir="out"/>
14436 </method>
14437
14438 <method name="setVideoModeHint">
14439 <desc>
14440 Asks VirtualBox to request the given video mode from
14441 the guest. This is just a hint and it cannot be guaranteed
14442 that the requested resolution will be used. Guest Additions
14443 are required for the request to be seen by guests. The caller
14444 should issue the request and wait for a resolution change and
14445 after a timeout retry.
14446
14447 Specifying @c 0 for either @a width, @a height or @a bitsPerPixel
14448 parameters means that the corresponding values should be taken from the
14449 current video mode (i.e. left unchanged).
14450
14451 If the guest OS supports multi-monitor configuration then the @a display
14452 parameter specifies the number of the guest display to send the hint to:
14453 @c 0 is the primary display, @c 1 is the first secondary and
14454 so on. If the multi-monitor configuration is not supported, @a display
14455 must be @c 0.
14456
14457 <result name="E_INVALIDARG">
14458 The @a display is not associated with any monitor.
14459 </result>
14460
14461 </desc>
14462 <param name="display" type="unsigned long" dir="in">
14463 <desc>
14464 The number of the guest display to send the hint to.
14465 </desc>
14466 </param>
14467 <param name="enabled" type="boolean" dir="in">
14468 <desc>
14469 @c True, if this guest screen is enabled,
14470 @c False otherwise.
14471 </desc>
14472 </param>
14473 <param name="changeOrigin" type="boolean" dir="in">
14474 <desc>
14475 @c True, if the origin of the guest screen should be changed,
14476 @c False otherwise.
14477 </desc>
14478 </param>
14479 <param name="originX" type="long" dir="in">
14480 <desc>
14481 The X origin of the guest screen.
14482 </desc>
14483 </param>
14484 <param name="originY" type="long" dir="in">
14485 <desc>
14486 The Y origin of the guest screen.
14487 </desc>
14488 </param>
14489 <param name="width" type="unsigned long" dir="in"/>
14490 <param name="height" type="unsigned long" dir="in"/>
14491 <param name="bitsPerPixel" type="unsigned long" dir="in"/>
14492 </method>
14493
14494 <method name="setSeamlessMode">
14495 <desc>
14496 Enables or disables seamless guest display rendering (seamless desktop
14497 integration) mode.
14498 <note>
14499 Calling this method has no effect if <link
14500 to="IGuest::getFacilityStatus"/> with facility @c Seamless
14501 does not return @c Active.
14502 </note>
14503 </desc>
14504 <param name="enabled" type="boolean" dir="in"/>
14505 </method>
14506
14507 <method name="takeScreenShot">
14508 <desc>
14509 Takes a screen shot of the requested size and copies it to the
14510 32-bpp buffer allocated by the caller and pointed to by @a address.
14511 A pixel consists of 4 bytes in order: B, G, R, 0.
14512
14513 <note>This API can be used only locally by a VM process through the
14514 COM/XPCOM C++ API as it requires pointer support. It is not
14515 available for scripting langages, Java or any webservice clients.
14516 Unless you are writing a new VM frontend use
14517 <link to="#takeScreenShotToArray" />.
14518 </note>
14519
14520 <result name="E_NOTIMPL">
14521 Feature not implemented.
14522 </result>
14523 <result name="VBOX_E_IPRT_ERROR">
14524 Could not take a screenshot.
14525 </result>
14526
14527 </desc>
14528 <param name="screenId" type="unsigned long" dir="in"/>
14529 <param name="address" type="octet" mod="ptr" dir="in"/>
14530 <param name="width" type="unsigned long" dir="in"/>
14531 <param name="height" type="unsigned long" dir="in"/>
14532 </method>
14533
14534 <method name="takeScreenShotToArray">
14535 <desc>
14536 Takes a guest screen shot of the requested size and returns it as
14537 an array of bytes in uncompressed 32-bit RGBA format.
14538 A pixel consists of 4 bytes in order: R, G, B, 0xFF.
14539
14540 This API is slow, but could be the only option to get guest screenshot
14541 for scriptable languages not allowed to manipulate with addresses
14542 directly.
14543
14544 <result name="E_NOTIMPL">
14545 Feature not implemented.
14546 </result>
14547 <result name="VBOX_E_IPRT_ERROR">
14548 Could not take a screenshot.
14549 </result>
14550 </desc>
14551 <param name="screenId" type="unsigned long" dir="in">
14552 <desc>
14553 Monitor to take screenshot from.
14554 </desc>
14555 </param>
14556 <param name="width" type="unsigned long" dir="in">
14557 <desc>
14558 Desired image width.
14559 </desc>
14560 </param>
14561 <param name="height" type="unsigned long" dir="in">
14562 <desc>
14563 Desired image height.
14564 </desc>
14565 </param>
14566 <param name="screenData" type="octet" dir="return" safearray="yes">
14567 <desc>
14568 Array with resulting screen data.
14569 </desc>
14570 </param>
14571 </method>
14572
14573 <method name="takeScreenShotPNGToArray">
14574 <desc>
14575 Takes a guest screen shot of the requested size and returns it as
14576 PNG image in array.
14577
14578 <result name="E_NOTIMPL">
14579 Feature not implemented.
14580 </result>
14581 <result name="VBOX_E_IPRT_ERROR">
14582 Could not take a screenshot.
14583 </result>
14584 </desc>
14585 <param name="screenId" type="unsigned long" dir="in">
14586 <desc>
14587 Monitor to take the screenshot from.
14588 </desc>
14589 </param>
14590 <param name="width" type="unsigned long" dir="in">
14591 <desc>
14592 Desired image width.
14593 </desc>
14594 </param>
14595 <param name="height" type="unsigned long" dir="in">
14596 <desc>
14597 Desired image height.
14598 </desc>
14599 </param>
14600 <param name="screenData" type="octet" dir="return" safearray="yes">
14601 <desc>
14602 Array with resulting screen data.
14603 </desc>
14604 </param>
14605 </method>
14606
14607 <method name="drawToScreen">
14608 <desc>
14609 Draws a 32-bpp image of the specified size from the given buffer
14610 to the given point on the VM display.
14611
14612 <result name="E_NOTIMPL">
14613 Feature not implemented.
14614 </result>
14615 <result name="VBOX_E_IPRT_ERROR">
14616 Could not draw to screen.
14617 </result>
14618
14619 </desc>
14620 <param name="screenId" type="unsigned long" dir="in">
14621 <desc>
14622 Monitor to take the screenshot from.
14623 </desc>
14624 </param>
14625 <param name="address" type="octet" mod="ptr" dir="in">
14626 <desc>
14627 Address to store the screenshot to
14628 </desc>
14629 </param>
14630 <param name="x" type="unsigned long" dir="in">
14631 <desc>
14632 Relative to the screen top left corner.
14633 </desc>
14634 </param>
14635 <param name="y" type="unsigned long" dir="in">
14636 <desc>
14637 Relative to the screen top left corner.
14638 </desc>
14639 </param>
14640 <param name="width" type="unsigned long" dir="in">
14641 <desc>
14642 Desired image width.
14643 </desc>
14644 </param>
14645 <param name="height" type="unsigned long" dir="in">
14646 <desc>
14647 Desired image height.
14648 </desc>
14649 </param>
14650 </method>
14651
14652 <method name="invalidateAndUpdate">
14653 <desc>
14654 Does a full invalidation of the VM display and instructs the VM
14655 to update it.
14656
14657 <result name="VBOX_E_IPRT_ERROR">
14658 Could not invalidate and update screen.
14659 </result>
14660
14661 </desc>
14662 </method>
14663
14664 <method name="resizeCompleted">
14665 <desc>
14666 Signals that a framebuffer has completed the resize operation.
14667
14668 <result name="VBOX_E_NOT_SUPPORTED">
14669 Operation only valid for external frame buffers.
14670 </result>
14671
14672 </desc>
14673 <param name="screenId" type="unsigned long" dir="in"/>
14674 </method>
14675
14676 <method name="completeVHWACommand">
14677 <desc>
14678 Signals that the Video HW Acceleration command has completed.
14679 </desc>
14680
14681 <param name="command" type="octet" mod="ptr" dir="in">
14682 <desc>Pointer to VBOXVHWACMD containing the completed command.</desc>
14683 </param>
14684 </method>
14685
14686 <method name="viewportChanged">
14687 <desc>
14688 Signals that framebuffer window viewport has changed.
14689
14690 <result name="E_INVALIDARG">
14691 The specified viewport data is invalid.
14692 </result>
14693
14694 </desc>
14695
14696 <param name="screenId" type="unsigned long" dir="in">
14697 <desc>
14698 Monitor to take the screenshot from.
14699 </desc>
14700 </param>
14701 <param name="x" type="unsigned long" dir="in">
14702 <desc>
14703 Framebuffer x offset.
14704 </desc>
14705 </param>
14706 <param name="y" type="unsigned long" dir="in">
14707 <desc>
14708 Framebuffer y offset.
14709 </desc>
14710 </param>
14711 <param name="width" type="unsigned long" dir="in">
14712 <desc>
14713 Viewport width.
14714 </desc>
14715 </param>
14716 <param name="height" type="unsigned long" dir="in">
14717 <desc>
14718 Viewport height.
14719 </desc>
14720 </param>
14721 </method>
14722 </interface>
14723
14724 <!--
14725 // INetworkAdapter
14726 /////////////////////////////////////////////////////////////////////////
14727 -->
14728
14729 <enum
14730 name="NetworkAttachmentType"
14731 uuid="2ac4bc71-6b82-417a-acd1-f7426d2570d6"
14732 >
14733 <desc>
14734 Network attachment type.
14735 </desc>
14736
14737 <const name="Null" value="0">
14738 <desc>Null value, also means "not attached".</desc>
14739 </const>
14740 <const name="NAT" value="1"/>
14741 <const name="Bridged" value="2"/>
14742 <const name="Internal" value="3"/>
14743 <const name="HostOnly" value="4"/>
14744 <const name="Generic" value="5"/>
14745 </enum>
14746
14747 <enum
14748 name="NetworkAdapterType"
14749 uuid="3c2281e4-d952-4e87-8c7d-24379cb6a81c"
14750 >
14751 <desc>
14752 Network adapter type.
14753 </desc>
14754
14755 <const name="Null" value="0">
14756 <desc>Null value (never used by the API).</desc>
14757 </const>
14758 <const name="Am79C970A" value="1">
14759 <desc>AMD PCNet-PCI II network card (Am79C970A).</desc>
14760 </const>
14761 <const name="Am79C973" value="2">
14762 <desc>AMD PCNet-FAST III network card (Am79C973).</desc>
14763 </const>
14764 <const name="I82540EM" value="3">
14765 <desc>Intel PRO/1000 MT Desktop network card (82540EM).</desc>
14766 </const>
14767 <const name="I82543GC" value="4">
14768 <desc>Intel PRO/1000 T Server network card (82543GC).</desc>
14769 </const>
14770 <const name="I82545EM" value="5">
14771 <desc>Intel PRO/1000 MT Server network card (82545EM).</desc>
14772 </const>
14773 <const name="Virtio" value="6">
14774 <desc>Virtio network device.</desc>
14775 </const>
14776 </enum>
14777
14778 <enum
14779 name="NetworkAdapterPromiscModePolicy"
14780 uuid="c963768a-376f-4c85-8d84-d8ced4b7269e"
14781 >
14782 <desc>
14783 The promiscuous mode policy of an interface.
14784 </desc>
14785
14786 <const name="Deny" value="1">
14787 <desc>Deny promiscuous mode requests.</desc>
14788 </const>
14789 <const name="AllowNetwork" value="2">
14790 <desc>
14791 Allow promicuous mode, but restrict the scope it to the internal
14792 network so that it only applies to other VMs.
14793 </desc>
14794 </const>
14795 <const name="AllowAll" value="3">
14796 <desc>
14797 Allow promicuous mode, include unrelated traffic going over the wire
14798 and internally on the host.
14799 </desc>
14800 </const>
14801 </enum>
14802
14803 <interface
14804 name="INetworkAdapter" extends="$unknown"
14805 uuid="efa0f965-63c7-4c60-afdf-b1cc9943b9c0"
14806 wsmap="managed"
14807 >
14808 <desc>
14809 Represents a virtual network adapter that is attached to a virtual machine.
14810 Each virtual machine has a fixed number of network adapter slots with one
14811 instance of this attached to each of them. Call
14812 <link to="IMachine::getNetworkAdapter" /> to get the network adapter that
14813 is attached to a given slot in a given machine.
14814
14815 Each network adapter can be in one of five attachment modes, which are
14816 represented by the <link to="NetworkAttachmentType" /> enumeration;
14817 see the <link to="#attachmentType" /> attribute.
14818 </desc>
14819
14820 <attribute name="adapterType" type="NetworkAdapterType">
14821 <desc>
14822 Type of the virtual network adapter. Depending on this value,
14823 VirtualBox will provide a different virtual network hardware
14824 to the guest.
14825 </desc>
14826 </attribute>
14827
14828 <attribute name="slot" type="unsigned long" readonly="yes">
14829 <desc>
14830 Slot number this adapter is plugged into. Corresponds to
14831 the value you pass to <link to="IMachine::getNetworkAdapter"/>
14832 to obtain this instance.
14833 </desc>
14834 </attribute>
14835
14836 <attribute name="enabled" type="boolean">
14837 <desc>
14838 Flag whether the network adapter is present in the
14839 guest system. If disabled, the virtual guest hardware will
14840 not contain this network adapter. Can only be changed when
14841 the VM is not running.
14842 </desc>
14843 </attribute>
14844
14845 <attribute name="MACAddress" type="wstring">
14846 <desc>
14847 Ethernet MAC address of the adapter, 12 hexadecimal characters. When setting
14848 it to @c null or an empty string, VirtualBox will generate a unique MAC address.
14849 </desc>
14850 </attribute>
14851
14852 <attribute name="attachmentType" type="NetworkAttachmentType">
14853 <desc>
14854 Sets/Gets network attachment type of this network adapter.
14855 </desc>
14856 </attribute>
14857
14858 <attribute name="bridgedInterface" type="wstring">
14859 <desc>
14860 Name of the network interface the VM should be bridged to.
14861 </desc>
14862 </attribute>
14863
14864 <attribute name="hostOnlyInterface" type="wstring">
14865 <desc>
14866 Name of the host only network interface the VM is attached to.
14867 </desc>
14868 </attribute>
14869
14870 <attribute name="internalNetwork" type="wstring">
14871 <desc>
14872 Name of the internal network the VM is attached to.
14873 </desc>
14874 </attribute>
14875
14876 <attribute name="NATNetwork" type="wstring">
14877 <desc>
14878 Name of the NAT network the VM is attached to.
14879 </desc>
14880 </attribute>
14881
14882 <attribute name="genericDriver" type="wstring">
14883 <desc>
14884 Name of the driver to use for the "Generic" network attachment type.
14885 </desc>
14886 </attribute>
14887
14888 <attribute name="cableConnected" type="boolean">
14889 <desc>
14890 Flag whether the adapter reports the cable as connected or not.
14891 It can be used to report offline situations to a VM.
14892 </desc>
14893 </attribute>
14894
14895 <attribute name="lineSpeed" type="unsigned long">
14896 <desc>
14897 Line speed reported by custom drivers, in units of 1 kbps.
14898 </desc>
14899 </attribute>
14900
14901 <attribute name="promiscModePolicy" type="NetworkAdapterPromiscModePolicy">
14902 <desc>
14903 The promiscuous mode policy of the network adapter when attached to an
14904 internal network, host only network or a bridge.
14905 </desc>
14906 </attribute>
14907
14908 <attribute name="traceEnabled" type="boolean">
14909 <desc>
14910 Flag whether network traffic from/to the network card should be traced.
14911 Can only be toggled when the VM is turned off.
14912 </desc>
14913 </attribute>
14914
14915 <attribute name="traceFile" type="wstring">
14916 <desc>
14917 Filename where a network trace will be stored. If not set, VBox-pid.pcap
14918 will be used.
14919 </desc>
14920 </attribute>
14921
14922 <attribute name="NATEngine" type="INATEngine" readonly="yes">
14923 <desc>
14924 Points to the NAT engine which handles the network address translation
14925 for this interface. This is active only when the interface actually uses
14926 NAT.
14927 </desc>
14928 </attribute>
14929
14930 <attribute name="bootPriority" type="unsigned long">
14931 <desc>
14932 Network boot priority of the adapter. Priority 1 is highest. If not set,
14933 the priority is considered to be at the lowest possible setting.
14934 </desc>
14935 </attribute>
14936
14937 <attribute name="bandwidthGroup" type="IBandwidthGroup">
14938 <desc>The bandwidth group this network adapter is assigned to.</desc>
14939 </attribute>
14940
14941 <!-- property methods -->
14942
14943 <method name="getProperty" const="yes">
14944 <desc>
14945 Returns the value of the network attachment property with the given name.
14946
14947 If the requested data @a key does not exist, this function will
14948 succeed and return an empty string in the @a value argument.
14949
14950 <result name="E_INVALIDARG">@a name is @c null or empty.</result>
14951 </desc>
14952 <param name="key" type="wstring" dir="in">
14953 <desc>Name of the property to get.</desc>
14954 </param>
14955 <param name="value" type="wstring" dir="return">
14956 <desc>Current property value.</desc>
14957 </param>
14958 </method>
14959
14960 <method name="setProperty">
14961 <desc>
14962 Sets the value of the network attachment property with the given name.
14963
14964 Setting the property value to @c null or an empty string is equivalent
14965 to deleting the existing value.
14966
14967 <result name="E_INVALIDARG">@a name is @c null or empty.</result>
14968 </desc>
14969 <param name="key" type="wstring" dir="in">
14970 <desc>Name of the property to set.</desc>
14971 </param>
14972 <param name="value" type="wstring" dir="in">
14973 <desc>Property value to set.</desc>
14974 </param>
14975 </method>
14976
14977 <method name="getProperties" const="yes">
14978 <desc>
14979 Returns values for a group of properties in one call.
14980
14981 The names of the properties to get are specified using the @a names
14982 argument which is a list of comma-separated property names or
14983 an empty string if all properties are to be returned.
14984 <note>Currently the value of this argument is ignored and the method
14985 always returns all existing properties.</note>
14986
14987 The method returns two arrays, the array of property names corresponding
14988 to the @a names argument and the current values of these properties.
14989 Both arrays have the same number of elements with each element at the
14990 given index in the first array corresponds to an element at the same
14991 index in the second array.
14992 </desc>
14993 <param name="names" type="wstring" dir="in">
14994 <desc>
14995 Names of properties to get.
14996 </desc>
14997 </param>
14998 <param name="returnNames" type="wstring" safearray="yes" dir="out">
14999 <desc>Names of returned properties.</desc>
15000 </param>
15001 <param name="returnValues" type="wstring" safearray="yes" dir="return">
15002 <desc>Values of returned properties.</desc>
15003 </param>
15004 </method>
15005
15006 </interface>
15007
15008
15009 <!--
15010 // ISerialPort
15011 /////////////////////////////////////////////////////////////////////////
15012 -->
15013
15014 <enum
15015 name="PortMode"
15016 uuid="533b5fe3-0185-4197-86a7-17e37dd39d76"
15017 >
15018 <desc>
15019 The PortMode enumeration represents possible communication modes for
15020 the virtual serial port device.
15021 </desc>
15022
15023 <const name="Disconnected" value="0">
15024 <desc>Virtual device is not attached to any real host device.</desc>
15025 </const>
15026 <const name="HostPipe" value="1">
15027 <desc>Virtual device is attached to a host pipe.</desc>
15028 </const>
15029 <const name="HostDevice" value="2">
15030 <desc>Virtual device is attached to a host device.</desc>
15031 </const>
15032 <const name="RawFile" value="3">
15033 <desc>Virtual device is attached to a raw file.</desc>
15034 </const>
15035 </enum>
15036
15037 <interface
15038 name="ISerialPort" extends="$unknown"
15039 uuid="937f6970-5103-4745-b78e-d28dcf1479a8"
15040 wsmap="managed"
15041 >
15042
15043 <desc>
15044 The ISerialPort interface represents the virtual serial port device.
15045
15046 The virtual serial port device acts like an ordinary serial port
15047 inside the virtual machine. This device communicates to the real
15048 serial port hardware in one of two modes: host pipe or host device.
15049
15050 In host pipe mode, the #path attribute specifies the path to the pipe on
15051 the host computer that represents a serial port. The #server attribute
15052 determines if this pipe is created by the virtual machine process at
15053 machine startup or it must already exist before starting machine
15054 execution.
15055
15056 In host device mode, the #path attribute specifies the name of the
15057 serial port device on the host computer.
15058
15059 There is also a third communication mode: the disconnected mode. In this
15060 mode, the guest OS running inside the virtual machine will be able to
15061 detect the serial port, but all port write operations will be discarded
15062 and all port read operations will return no data.
15063
15064 <see><link to="IMachine::getSerialPort"/></see>
15065 </desc>
15066
15067 <attribute name="slot" type="unsigned long" readonly="yes">
15068 <desc>
15069 Slot number this serial port is plugged into. Corresponds to
15070 the value you pass to <link to="IMachine::getSerialPort"/>
15071 to obtain this instance.
15072 </desc>
15073 </attribute>
15074
15075 <attribute name="enabled" type="boolean">
15076 <desc>
15077 Flag whether the serial port is enabled. If disabled,
15078 the serial port will not be reported to the guest OS.
15079 </desc>
15080 </attribute>
15081
15082 <attribute name="IOBase" type="unsigned long">
15083 <desc>Base I/O address of the serial port.</desc>
15084 </attribute>
15085
15086 <attribute name="IRQ" type="unsigned long">
15087 <desc>IRQ number of the serial port.</desc>
15088 </attribute>
15089
15090 <attribute name="hostMode" type="PortMode">
15091 <desc>
15092 How is this port connected to the host.
15093 <note>
15094 Changing this attribute may fail if the conditions for
15095 <link to="#path"/> are not met.
15096 </note>
15097 </desc>
15098 </attribute>
15099
15100 <attribute name="server" type="boolean">
15101 <desc>
15102 Flag whether this serial port acts as a server (creates a new pipe on
15103 the host) or as a client (uses the existing pipe). This attribute is
15104 used only when <link to="#hostMode"/> is PortMode_HostPipe.
15105 </desc>
15106 </attribute>
15107
15108 <attribute name="path" type="wstring">
15109 <desc>
15110 Path to the serial port's pipe on the host when <link to="ISerialPort::hostMode"/> is
15111 PortMode_HostPipe, or the host serial device name when
15112 <link to="ISerialPort::hostMode"/> is PortMode_HostDevice. For both
15113 cases, setting a @c null or empty string as the attribute's value
15114 is an error. Otherwise, the value of this property is ignored.
15115 </desc>
15116 </attribute>
15117
15118 </interface>
15119
15120 <!--
15121 // IParallelPort
15122 /////////////////////////////////////////////////////////////////////////
15123 -->
15124
15125 <interface
15126 name="IParallelPort" extends="$unknown"
15127 uuid="0c925f06-dd10-4b77-8de8-294d738c3214"
15128 wsmap="managed"
15129 >
15130
15131 <desc>
15132 The IParallelPort interface represents the virtual parallel port device.
15133
15134 The virtual parallel port device acts like an ordinary parallel port
15135 inside the virtual machine. This device communicates to the real
15136 parallel port hardware using the name of the parallel device on the host
15137 computer specified in the #path attribute.
15138
15139 Each virtual parallel port device is assigned a base I/O address and an
15140 IRQ number that will be reported to the guest operating system and used
15141 to operate the given parallel port from within the virtual machine.
15142
15143 <see><link to="IMachine::getParallelPort"/></see>
15144 </desc>
15145
15146 <attribute name="slot" type="unsigned long" readonly="yes">
15147 <desc>
15148 Slot number this parallel port is plugged into. Corresponds to
15149 the value you pass to <link to="IMachine::getParallelPort"/>
15150 to obtain this instance.
15151 </desc>
15152 </attribute>
15153
15154 <attribute name="enabled" type="boolean">
15155 <desc>
15156 Flag whether the parallel port is enabled. If disabled,
15157 the parallel port will not be reported to the guest OS.
15158 </desc>
15159 </attribute>
15160
15161 <attribute name="IOBase" type="unsigned long">
15162 <desc>Base I/O address of the parallel port.</desc>
15163 </attribute>
15164
15165 <attribute name="IRQ" type="unsigned long">
15166 <desc>IRQ number of the parallel port.</desc>
15167 </attribute>
15168
15169 <attribute name="path" type="wstring">
15170 <desc>
15171 Host parallel device name. If this parallel port is enabled, setting a
15172 @c null or an empty string as this attribute's value will result in
15173 an error.
15174 </desc>
15175 </attribute>
15176
15177 </interface>
15178
15179
15180 <!--
15181 // IMachineDebugger
15182 /////////////////////////////////////////////////////////////////////////
15183 -->
15184
15185 <interface
15186 name="IMachineDebugger" extends="$unknown"
15187 uuid="a80bb82c-37c5-4155-a524-9c1d0a1689ba"
15188 wsmap="managed"
15189 >
15190 <method name="dumpGuestCore">
15191 <desc>
15192 Takes a core dump of the guest.
15193
15194 See include/VBox/dbgfcorefmt.h for details on the file format.
15195 </desc>
15196 <param name="filename" type="wstring" dir="in">
15197 <desc>
15198 The name of the output file. The file must not exist.
15199 </desc>
15200 </param>
15201 <param name="compression" type="wstring" dir="in">
15202 <desc>
15203 Reserved for future compression method indicator.
15204 </desc>
15205 </param>
15206 </method>
15207
15208 <method name="dumpHostProcessCore">
15209 <desc>
15210 Takes a core dump of the VM process on the host.
15211
15212 This feature is not implemented in the 4.0.0 release but it may show up
15213 in a dot release.
15214 </desc>
15215 <param name="filename" type="wstring" dir="in">
15216 <desc>
15217 The name of the output file. The file must not exist.
15218 </desc>
15219 </param>
15220 <param name="compression" type="wstring" dir="in">
15221 <desc>
15222 Reserved for future compression method indicator.
15223 </desc>
15224 </param>
15225 </method>
15226
15227 <method name="info">
15228 <desc>
15229 Interfaces with the info dumpers (DBGFInfo).
15230
15231 This feature is not implemented in the 4.0.0 release but it may show up
15232 in a dot release.
15233 </desc>
15234 <param name="name" type="wstring" dir="in">
15235 <desc>
15236 The name of the info item.
15237 </desc>
15238 </param>
15239 <param name="args" type="wstring" dir="in">
15240 <desc>
15241 Arguments to the info dumper.
15242 </desc>
15243 </param>
15244 <param name="info" type="wstring" dir="return">
15245 <desc>
15246 The into string.
15247 </desc>
15248 </param>
15249 </method>
15250
15251 <method name="injectNMI">
15252 <desc>
15253 Inject an NMI into a running VT-x/AMD-V VM.
15254 </desc>
15255 </method>
15256
15257 <method name="modifyLogGroups">
15258 <desc>
15259 Modifies the group settings of the debug or release logger.
15260 </desc>
15261 <param name="settings" type="wstring" dir="in">
15262 <desc>
15263 The group settings string. See iprt/log.h for details. To target the
15264 release logger, prefix the string with "release:".
15265 </desc>
15266 </param>
15267 </method>
15268
15269 <method name="modifyLogFlags">
15270 <desc>
15271 Modifies the debug or release logger flags.
15272 </desc>
15273 <param name="settings" type="wstring" dir="in">
15274 <desc>
15275 The flags settings string. See iprt/log.h for details. To target the
15276 release logger, prefix the string with "release:".
15277 </desc>
15278 </param>
15279 </method>
15280
15281 <method name="modifyLogDestinations">
15282 <desc>
15283 Modifies the debug or release logger destinations.
15284 </desc>
15285 <param name="settings" type="wstring" dir="in">
15286 <desc>
15287 The destination settings string. See iprt/log.h for details. To target the
15288 release logger, prefix the string with "release:".
15289 </desc>
15290 </param>
15291 </method>
15292
15293 <method name="readPhysicalMemory">
15294 <desc>
15295 Reads guest physical memory, no side effects (MMIO++).
15296
15297 This feature is not implemented in the 4.0.0 release but may show up
15298 in a dot release.
15299 </desc>
15300 <param name="address" type="long long" dir="in">
15301 <desc>The guest physical address.</desc>
15302 </param>
15303 <param name="size" type="unsigned long" dir="in">
15304 <desc>The number of bytes to read.</desc>
15305 </param>
15306 <param name="bytes" type="octet" safearray="yes" dir="return">
15307 <desc>The bytes read.</desc>
15308 </param>
15309 </method>
15310
15311 <method name="writePhysicalMemory">
15312 <desc>
15313 Writes guest physical memory, access handles (MMIO++) are ignored.
15314
15315 This feature is not implemented in the 4.0.0 release but may show up
15316 in a dot release.
15317 </desc>
15318 <param name="address" type="long long" dir="in">
15319 <desc>The guest physical address.</desc>
15320 </param>
15321 <param name="size" type="unsigned long" dir="in">
15322 <desc>The number of bytes to read.</desc>
15323 </param>
15324 <param name="bytes" type="octet" safearray="yes" dir="in">
15325 <desc>The bytes to write.</desc>
15326 </param>
15327 </method>
15328
15329 <method name="readVirtualMemory">
15330 <desc>
15331 Reads guest virtual memory, no side effects (MMIO++).
15332
15333 This feature is not implemented in the 4.0.0 release but may show up
15334 in a dot release.
15335 </desc>
15336 <param name="cpuId" type="unsigned long" dir="in">
15337 <desc>The identifier of the Virtual CPU.</desc>
15338 </param>
15339 <param name="address" type="long long" dir="in">
15340 <desc>The guest virtual address.</desc>
15341 </param>
15342 <param name="size" type="unsigned long" dir="in">
15343 <desc>The number of bytes to read.</desc>
15344 </param>
15345 <param name="bytes" type="octet" safearray="yes" dir="return">
15346 <desc>The bytes read.</desc>
15347 </param>
15348 </method>
15349
15350 <method name="writeVirtualMemory">
15351 <desc>
15352 Writes guest virtual memory, access handles (MMIO++) are ignored.
15353
15354 This feature is not implemented in the 4.0.0 release but may show up
15355 in a dot release.
15356 </desc>
15357 <param name="cpuId" type="unsigned long" dir="in">
15358 <desc>The identifier of the Virtual CPU.</desc>
15359 </param>
15360 <param name="address" type="long long" dir="in">
15361 <desc>The guest virtual address.</desc>
15362 </param>
15363 <param name="size" type="unsigned long" dir="in">
15364 <desc>The number of bytes to read.</desc>
15365 </param>
15366 <param name="bytes" type="octet" safearray="yes" dir="in">
15367 <desc>The bytes to write.</desc>
15368 </param>
15369 </method>
15370
15371 <method name="detectOS">
15372 <desc>
15373 Tries to (re-)detect the guest OS kernel.
15374
15375 This feature is not implemented in the 4.0.0 release but may show up
15376 in a dot release.
15377 </desc>
15378 <param name="os" type="wstring" dir="return">
15379 <desc>
15380 The detected OS kernel on success.
15381 </desc>
15382 </param>
15383 </method>
15384
15385 <method name="getRegister">
15386 <desc>
15387 Gets one register.
15388
15389 This feature is not implemented in the 4.0.0 release but may show up
15390 in a dot release.
15391 </desc>
15392 <param name="cpuId" type="unsigned long" dir="in">
15393 <desc>The identifier of the Virtual CPU.</desc>
15394 </param>
15395 <param name="name" type="wstring" dir="in">
15396 <desc>The register name, case is ignored.</desc>
15397 </param>
15398 <param name="value" type="wstring" dir="return">
15399 <desc>
15400 The register value. This is usually a hex value (always 0x prefixed)
15401 but other format may be used for floating point registers (TBD).
15402 </desc>
15403 </param>
15404 </method>
15405
15406 <method name="getRegisters">
15407 <desc>
15408 Gets all the registers for the given CPU.
15409
15410 This feature is not implemented in the 4.0.0 release but may show up
15411 in a dot release.
15412 </desc>
15413 <param name="cpuId" type="unsigned long" dir="in">
15414 <desc>The identifier of the Virtual CPU.</desc>
15415 </param>
15416 <param name="names" type="wstring" dir="out" safearray="yes">
15417 <desc>Array containing the lowercase register names.</desc>
15418 </param>
15419 <param name="values" type="wstring" dir="out" safearray="yes">
15420 <desc>
15421 Array paralell to the names holding the register values as if the
15422 register was returned by <link to="IMachineDebugger::getRegister"/>.
15423 </desc>
15424 </param>
15425 </method>
15426
15427 <method name="setRegister">
15428 <desc>
15429 Gets one register.
15430
15431 This feature is not implemented in the 4.0.0 release but may show up
15432 in a dot release.
15433 </desc>
15434 <param name="cpuId" type="unsigned long" dir="in">
15435 <desc>The identifier of the Virtual CPU.</desc>
15436 </param>
15437 <param name="name" type="wstring" dir="in">
15438 <desc>The register name, case is ignored.</desc>
15439 </param>
15440 <param name="value" type="wstring" dir="in">
15441 <desc>
15442 The new register value. Hexadecimal, decimal and octal formattings
15443 are supported in addition to any special formattings returned by
15444 the getters.
15445 </desc>
15446 </param>
15447 </method>
15448
15449 <method name="setRegisters">
15450 <desc>
15451 Sets zero or more registers atomically.
15452
15453 This feature is not implemented in the 4.0.0 release but may show up
15454 in a dot release.
15455 </desc>
15456 <param name="cpuId" type="unsigned long" dir="in">
15457 <desc>The identifier of the Virtual CPU.</desc>
15458 </param>
15459 <param name="names" type="wstring" dir="in" safearray="yes">
15460 <desc>Array containing the register names, case ignored.</desc>
15461 </param>
15462 <param name="values" type="wstring" dir="in" safearray="yes">
15463 <desc>
15464 Array paralell to the names holding the register values. See
15465 <link to="IMachineDebugger::setRegister"/> for formatting
15466 guidelines.
15467 </desc>
15468 </param>
15469 </method>
15470
15471 <method name="dumpGuestStack">
15472 <desc>
15473 Produce a simple stack dump using the current guest state.
15474
15475 This feature is not implemented in the 4.0.0 release but may show up
15476 in a dot release.
15477 </desc>
15478 <param name="cpuId" type="unsigned long" dir="in">
15479 <desc>The identifier of the Virtual CPU.</desc>
15480 </param>
15481 <param name="stack" type="wstring" dir="return">
15482 <desc>String containing the formatted stack dump.</desc>
15483 </param>
15484 </method>
15485
15486 <method name="resetStats">
15487 <desc>
15488 Reset VM statistics.
15489 </desc>
15490 <param name="pattern" type="wstring" dir="in">
15491 <desc>The selection pattern. A bit similar to filename globbing.</desc>
15492 </param>
15493 </method>
15494
15495 <method name="dumpStats">
15496 <desc>
15497 Dumps VM statistics.
15498 </desc>
15499 <param name="pattern" type="wstring" dir="in">
15500 <desc>The selection pattern. A bit similar to filename globbing.</desc>
15501 </param>
15502 </method>
15503
15504 <method name="getStats">
15505 <desc>
15506 Get the VM statistics in a XMLish format.
15507 </desc>
15508 <param name="pattern" type="wstring" dir="in">
15509 <desc>The selection pattern. A bit similar to filename globbing.</desc>
15510 </param>
15511 <param name="withDescriptions" type="boolean" dir="in">
15512 <desc>Whether to include the descriptions.</desc>
15513 </param>
15514 <param name="stats" type="wstring" dir="return">
15515 <desc>The XML document containing the statistics.</desc>
15516 </param>
15517 </method>
15518
15519 <attribute name="singleStep" type="boolean">
15520 <desc>Switch for enabling single-stepping.</desc>
15521 </attribute>
15522
15523 <attribute name="recompileUser" type="boolean">
15524 <desc>Switch for forcing code recompilation for user mode code.</desc>
15525 </attribute>
15526
15527 <attribute name="recompileSupervisor" type="boolean">
15528 <desc>Switch for forcing code recompilation for supervisor mode code.</desc>
15529 </attribute>
15530
15531 <attribute name="PATMEnabled" type="boolean">
15532 <desc>Switch for enabling and disabling the PATM component.</desc>
15533 </attribute>
15534
15535 <attribute name="CSAMEnabled" type="boolean">
15536 <desc>Switch for enabling and disabling the CSAM component.</desc>
15537 </attribute>
15538
15539 <attribute name="logEnabled" type="boolean">
15540 <desc>Switch for enabling and disabling the debug logger.</desc>
15541 </attribute>
15542
15543 <attribute name="logDbgFlags" type="wstring" readonly="yes">
15544 <desc>The debug logger flags.</desc>
15545 </attribute>
15546
15547 <attribute name="logDbgGroups" type="wstring" readonly="yes">
15548 <desc>The debug logger's group settings.</desc>
15549 </attribute>
15550
15551 <attribute name="logDbgDestinations" type="wstring" readonly="yes">
15552 <desc>The debug logger's destination settings.</desc>
15553 </attribute>
15554
15555 <attribute name="logRelFlags" type="wstring" readonly="yes">
15556 <desc>The release logger flags.</desc>
15557 </attribute>
15558
15559 <attribute name="logRelGroups" type="wstring" readonly="yes">
15560 <desc>The release logger's group settings.</desc>
15561 </attribute>
15562
15563 <attribute name="logRelDestinations" type="wstring" readonly="yes">
15564 <desc>The relase logger's destination settings.</desc>
15565 </attribute>
15566
15567 <attribute name="HWVirtExEnabled" type="boolean" readonly="yes">
15568 <desc>
15569 Flag indicating whether the VM is currently making use of CPU hardware
15570 virtualization extensions.
15571 </desc>
15572 </attribute>
15573
15574 <attribute name="HWVirtExNestedPagingEnabled" type="boolean" readonly="yes">
15575 <desc>
15576 Flag indicating whether the VM is currently making use of the nested paging
15577 CPU hardware virtualization extension.
15578 </desc>
15579 </attribute>
15580
15581 <attribute name="HWVirtExVPIDEnabled" type="boolean" readonly="yes">
15582 <desc>
15583 Flag indicating whether the VM is currently making use of the VPID
15584 VT-x extension.
15585 </desc>
15586 </attribute>
15587
15588 <attribute name="OSName" type="wstring" readonly="yes">
15589 <desc>
15590 Query the guest OS kernel name as detected by the DBGF.
15591
15592 This feature is not implemented in the 4.0.0 release but may show up
15593 in a dot release.
15594 </desc>
15595 </attribute>
15596
15597 <attribute name="OSVersion" type="wstring" readonly="yes">
15598 <desc>
15599 Query the guest OS kernel version string as detected by the DBGF.
15600
15601 This feature is not implemented in the 4.0.0 release but may show up
15602 in a dot release.
15603 </desc>
15604 </attribute>
15605
15606 <attribute name="PAEEnabled" type="boolean" readonly="yes">
15607 <desc>
15608 Flag indicating whether the VM is currently making use of the Physical
15609 Address Extension CPU feature.
15610 </desc>
15611 </attribute>
15612
15613 <attribute name="virtualTimeRate" type="unsigned long">
15614 <desc>
15615 The rate at which the virtual time runs expressed as a percentage.
15616 The accepted range is 2% to 20000%.
15617 </desc>
15618 </attribute>
15619
15620 <attribute name="VM" type="long long" readonly="yes" wsmap="suppress">
15621 <desc>
15622 Gets the user-mode VM handle, with a reference. Must be passed to
15623 VMR3ReleaseUVM when done. This is only for internal use while we carve
15624 the details of this interface.
15625 </desc>
15626 </attribute>
15627
15628 </interface>
15629
15630 <!--
15631 // IUSBController
15632 /////////////////////////////////////////////////////////////////////////
15633 -->
15634
15635 <interface
15636 name="IUSBController" extends="$unknown"
15637 uuid="01e6f13a-0580-452f-a40f-74e32a5e4921"
15638 wsmap="managed"
15639 >
15640 <attribute name="enabled" type="boolean">
15641 <desc>
15642 Flag whether the USB controller is present in the
15643 guest system. If disabled, the virtual guest hardware will
15644 not contain any USB controller. Can only be changed when
15645 the VM is powered off.
15646 </desc>
15647 </attribute>
15648
15649 <attribute name="enabledEHCI" type="boolean">
15650 <desc>
15651 Flag whether the USB EHCI controller is present in the
15652 guest system. If disabled, the virtual guest hardware will
15653 not contain a USB EHCI controller. Can only be changed when
15654 the VM is powered off.
15655 </desc>
15656 </attribute>
15657
15658 <attribute name="proxyAvailable" type="boolean" readonly="yes">
15659 <desc>
15660 Flag whether there is an USB proxy available.
15661 </desc>
15662 </attribute>
15663
15664 <attribute name="USBStandard" type="unsigned short" readonly="yes">
15665 <desc>
15666 USB standard version which the controller implements.
15667 This is a BCD which means that the major version is in the
15668 high byte and minor version is in the low byte.
15669 </desc>
15670 </attribute>
15671
15672 <attribute name="deviceFilters" type="IUSBDeviceFilter" readonly="yes" safearray="yes">
15673 <desc>
15674 List of USB device filters associated with the machine.
15675
15676 If the machine is currently running, these filters are activated
15677 every time a new (supported) USB device is attached to the host
15678 computer that was not ignored by global filters
15679 (<link to="IHost::USBDeviceFilters"/>).
15680
15681 These filters are also activated when the machine is powered up.
15682 They are run against a list of all currently available USB
15683 devices (in states
15684 <link to="USBDeviceState_Available"/>,
15685 <link to="USBDeviceState_Busy"/>,
15686 <link to="USBDeviceState_Held"/>) that were not previously
15687 ignored by global filters.
15688
15689 If at least one filter matches the USB device in question, this
15690 device is automatically captured (attached to) the virtual USB
15691 controller of this machine.
15692
15693 <see><link to="IUSBDeviceFilter"/>, <link to="IUSBController"/></see>
15694 </desc>
15695 </attribute>
15696
15697 <method name="createDeviceFilter">
15698 <desc>
15699 Creates a new USB device filter. All attributes except
15700 the filter name are set to empty (any match),
15701 <i>active</i> is @c false (the filter is not active).
15702
15703 The created filter can then be added to the list of filters using
15704 <link to="#insertDeviceFilter"/>.
15705
15706 <result name="VBOX_E_INVALID_VM_STATE">
15707 The virtual machine is not mutable.
15708 </result>
15709
15710 <see><link to="#deviceFilters"/></see>
15711 </desc>
15712 <param name="name" type="wstring" dir="in">
15713 <desc>
15714 Filter name. See <link to="IUSBDeviceFilter::name"/>
15715 for more info.
15716 </desc>
15717 </param>
15718 <param name="filter" type="IUSBDeviceFilter" dir="return">
15719 <desc>Created filter object.</desc>
15720 </param>
15721 </method>
15722
15723 <method name="insertDeviceFilter">
15724 <desc>
15725 Inserts the given USB device to the specified position
15726 in the list of filters.
15727
15728 Positions are numbered starting from <tt>0</tt>. If the specified
15729 position is equal to or greater than the number of elements in
15730 the list, the filter is added to the end of the collection.
15731
15732 <note>
15733 Duplicates are not allowed, so an attempt to insert a
15734 filter that is already in the collection, will return an
15735 error.
15736 </note>
15737
15738 <result name="VBOX_E_INVALID_VM_STATE">
15739 Virtual machine is not mutable.
15740 </result>
15741 <result name="E_INVALIDARG">
15742 USB device filter not created within this VirtualBox instance.
15743 </result>
15744 <result name="VBOX_E_INVALID_OBJECT_STATE">
15745 USB device filter already in list.
15746 </result>
15747
15748 <see><link to="#deviceFilters"/></see>
15749 </desc>
15750 <param name="position" type="unsigned long" dir="in">
15751 <desc>Position to insert the filter to.</desc>
15752 </param>
15753 <param name="filter" type="IUSBDeviceFilter" dir="in">
15754 <desc>USB device filter to insert.</desc>
15755 </param>
15756 </method>
15757
15758 <method name="removeDeviceFilter">
15759 <desc>
15760 Removes a USB device filter from the specified position in the
15761 list of filters.
15762
15763 Positions are numbered starting from <tt>0</tt>. Specifying a
15764 position equal to or greater than the number of elements in
15765 the list will produce an error.
15766
15767 <see><link to="#deviceFilters"/></see>
15768
15769 <result name="VBOX_E_INVALID_VM_STATE">
15770 Virtual machine is not mutable.
15771 </result>
15772 <result name="E_INVALIDARG">
15773 USB device filter list empty or invalid @a position.
15774 </result>
15775
15776 </desc>
15777 <param name="position" type="unsigned long" dir="in">
15778 <desc>Position to remove the filter from.</desc>
15779 </param>
15780 <param name="filter" type="IUSBDeviceFilter" dir="return">
15781 <desc>Removed USB device filter.</desc>
15782 </param>
15783 </method>
15784
15785 </interface>
15786
15787
15788 <!--
15789 // IUSBDevice
15790 /////////////////////////////////////////////////////////////////////////
15791 -->
15792
15793 <interface
15794 name="IUSBDevice" extends="$unknown"
15795 uuid="f8967b0b-4483-400f-92b5-8b675d98a85b"
15796 wsmap="managed"
15797 >
15798 <desc>
15799 The IUSBDevice interface represents a virtual USB device attached to the
15800 virtual machine.
15801
15802 A collection of objects implementing this interface is stored in the
15803 <link to="IConsole::USBDevices"/> attribute which lists all USB devices
15804 attached to a running virtual machine's USB controller.
15805 </desc>
15806
15807 <attribute name="id" type="uuid" mod="string" readonly="yes">
15808 <desc>
15809 Unique USB device ID. This ID is built from #vendorId,
15810 #productId, #revision and #serialNumber.
15811 </desc>
15812 </attribute>
15813
15814 <attribute name="vendorId" type="unsigned short" readonly="yes">
15815 <desc>Vendor ID.</desc>
15816 </attribute>
15817
15818 <attribute name="productId" type="unsigned short" readonly="yes">
15819 <desc>Product ID.</desc>
15820 </attribute>
15821
15822 <attribute name="revision" type="unsigned short" readonly="yes">
15823 <desc>
15824 Product revision number. This is a packed BCD represented as
15825 unsigned short. The high byte is the integer part and the low
15826 byte is the decimal.
15827 </desc>
15828 </attribute>
15829
15830 <attribute name="manufacturer" type="wstring" readonly="yes">
15831 <desc>Manufacturer string.</desc>
15832 </attribute>
15833
15834 <attribute name="product" type="wstring" readonly="yes">
15835 <desc>Product string.</desc>
15836 </attribute>
15837
15838 <attribute name="serialNumber" type="wstring" readonly="yes">
15839 <desc>Serial number string.</desc>
15840 </attribute>
15841
15842 <attribute name="address" type="wstring" readonly="yes">
15843 <desc>Host specific address of the device.</desc>
15844 </attribute>
15845
15846 <attribute name="port" type="unsigned short" readonly="yes">
15847 <desc>
15848 Host USB port number the device is physically
15849 connected to.
15850 </desc>
15851 </attribute>
15852
15853 <attribute name="version" type="unsigned short" readonly="yes">
15854 <desc>
15855 The major USB version of the device - 1 or 2.
15856 </desc>
15857 </attribute>
15858
15859 <attribute name="portVersion" type="unsigned short" readonly="yes">
15860 <desc>
15861 The major USB version of the host USB port the device is
15862 physically connected to - 1 or 2. For devices not connected to
15863 anything this will have the same value as the version attribute.
15864 </desc>
15865 </attribute>
15866
15867 <attribute name="remote" type="boolean" readonly="yes">
15868 <desc>
15869 Whether the device is physically connected to a remote VRDE
15870 client or to a local host machine.
15871 </desc>
15872 </attribute>
15873
15874 </interface>
15875
15876
15877 <!--
15878 // IUSBDeviceFilter
15879 /////////////////////////////////////////////////////////////////////////
15880 -->
15881
15882 <interface
15883 name="IUSBDeviceFilter" extends="$unknown"
15884 uuid="d6831fb4-1a94-4c2c-96ef-8d0d6192066d"
15885 wsmap="managed"
15886 >
15887 <desc>
15888 The IUSBDeviceFilter interface represents an USB device filter used
15889 to perform actions on a group of USB devices.
15890
15891 This type of filters is used by running virtual machines to
15892 automatically capture selected USB devices once they are physically
15893 attached to the host computer.
15894
15895 A USB device is matched to the given device filter if and only if all
15896 attributes of the device match the corresponding attributes of the
15897 filter (that is, attributes are joined together using the logical AND
15898 operation). On the other hand, all together, filters in the list of
15899 filters carry the semantics of the logical OR operation. So if it is
15900 desirable to create a match like "this vendor id OR this product id",
15901 one needs to create two filters and specify "any match" (see below)
15902 for unused attributes.
15903
15904 All filter attributes used for matching are strings. Each string
15905 is an expression representing a set of values of the corresponding
15906 device attribute, that will match the given filter. Currently, the
15907 following filtering expressions are supported:
15908
15909 <ul>
15910 <li><i>Interval filters</i>. Used to specify valid intervals for
15911 integer device attributes (Vendor ID, Product ID and Revision).
15912 The format of the string is:
15913
15914 <tt>int:((m)|([m]-[n]))(,(m)|([m]-[n]))*</tt>
15915
15916 where <tt>m</tt> and <tt>n</tt> are integer numbers, either in octal
15917 (starting from <tt>0</tt>), hexadecimal (starting from <tt>0x</tt>)
15918 or decimal (otherwise) form, so that <tt>m &lt; n</tt>. If <tt>m</tt>
15919 is omitted before a dash (<tt>-</tt>), the minimum possible integer
15920 is assumed; if <tt>n</tt> is omitted after a dash, the maximum
15921 possible integer is assumed.
15922 </li>
15923 <li><i>Boolean filters</i>. Used to specify acceptable values for
15924 boolean device attributes. The format of the string is:
15925
15926 <tt>true|false|yes|no|0|1</tt>
15927
15928 </li>
15929 <li><i>Exact match</i>. Used to specify a single value for the given
15930 device attribute. Any string that doesn't start with <tt>int:</tt>
15931 represents the exact match. String device attributes are compared to
15932 this string including case of symbols. Integer attributes are first
15933 converted to a string (see individual filter attributes) and then
15934 compared ignoring case.
15935
15936 </li>
15937 <li><i>Any match</i>. Any value of the corresponding device attribute
15938 will match the given filter. An empty or @c null string is
15939 used to construct this type of filtering expressions.
15940
15941 </li>
15942 </ul>
15943
15944 <note>
15945 On the Windows host platform, interval filters are not currently
15946 available. Also all string filter attributes
15947 (<link to="#manufacturer"/>, <link to="#product"/>,
15948 <link to="#serialNumber"/>) are ignored, so they behave as
15949 <i>any match</i> no matter what string expression is specified.
15950 </note>
15951
15952 <see><link to="IUSBController::deviceFilters"/>,
15953 <link to="IHostUSBDeviceFilter"/></see>
15954 </desc>
15955
15956 <attribute name="name" type="wstring">
15957 <desc>
15958 Visible name for this filter.
15959 This name is used to visually distinguish one filter from another,
15960 so it can neither be @c null nor an empty string.
15961 </desc>
15962 </attribute>
15963
15964 <attribute name="active" type="boolean">
15965 <desc>Whether this filter active or has been temporarily disabled.</desc>
15966 </attribute>
15967
15968 <attribute name="vendorId" type="wstring">
15969 <desc>
15970 <link to="IUSBDevice::vendorId">Vendor ID</link> filter.
15971 The string representation for the <i>exact matching</i>
15972 has the form <tt>XXXX</tt>, where <tt>X</tt> is the hex digit
15973 (including leading zeroes).
15974 </desc>
15975 </attribute>
15976
15977 <attribute name="productId" type="wstring">
15978 <desc>
15979 <link to="IUSBDevice::productId">Product ID</link> filter.
15980 The string representation for the <i>exact matching</i>
15981 has the form <tt>XXXX</tt>, where <tt>X</tt> is the hex digit
15982 (including leading zeroes).
15983 </desc>
15984 </attribute>
15985
15986 <attribute name="revision" type="wstring">
15987 <desc>
15988 <link to="IUSBDevice::productId">Product revision number</link>
15989 filter. The string representation for the <i>exact matching</i>
15990 has the form <tt>IIFF</tt>, where <tt>I</tt> is the decimal digit
15991 of the integer part of the revision, and <tt>F</tt> is the
15992 decimal digit of its fractional part (including leading and
15993 trailing zeros).
15994 Note that for interval filters, it's best to use the hexadecimal
15995 form, because the revision is stored as a 16 bit packed BCD value;
15996 so the expression <tt>int:0x0100-0x0199</tt> will match any
15997 revision from <tt>1.0</tt> to <tt>1.99</tt>.
15998 </desc>
15999 </attribute>
16000
16001 <attribute name="manufacturer" type="wstring">
16002 <desc>
16003 <link to="IUSBDevice::manufacturer">Manufacturer</link> filter.
16004 </desc>
16005 </attribute>
16006
16007 <attribute name="product" type="wstring">
16008 <desc>
16009 <link to="IUSBDevice::product">Product</link> filter.
16010 </desc>
16011 </attribute>
16012
16013 <attribute name="serialNumber" type="wstring">
16014 <desc>
16015 <link to="IUSBDevice::serialNumber">Serial number</link> filter.
16016 </desc>
16017 </attribute>
16018
16019 <attribute name="port" type="wstring">
16020 <desc>
16021 <link to="IUSBDevice::port">Host USB port</link> filter.
16022 </desc>
16023 </attribute>
16024
16025 <attribute name="remote" type="wstring">
16026 <desc>
16027 <link to="IUSBDevice::remote">Remote state</link> filter.
16028 <note>
16029 This filter makes sense only for machine USB filters,
16030 i.e. it is ignored by IHostUSBDeviceFilter objects.
16031 </note>
16032 </desc>
16033 </attribute>
16034
16035 <attribute name="maskedInterfaces" type="unsigned long">
16036 <desc>
16037 This is an advanced option for hiding one or more USB interfaces
16038 from the guest. The value is a bit mask where the bits that are set
16039 means the corresponding USB interface should be hidden, masked off
16040 if you like.
16041 This feature only works on Linux hosts.
16042 </desc>
16043 </attribute>
16044
16045 </interface>
16046
16047
16048 <!--
16049 // IHostUSBDevice
16050 /////////////////////////////////////////////////////////////////////////
16051 -->
16052
16053 <enum
16054 name="USBDeviceState"
16055 uuid="b99a2e65-67fb-4882-82fd-f3e5e8193ab4"
16056 >
16057 <desc>
16058 USB device state. This enumeration represents all possible states
16059 of the USB device physically attached to the host computer regarding
16060 its state on the host computer and availability to guest computers
16061 (all currently running virtual machines).
16062
16063 Once a supported USB device is attached to the host, global USB
16064 filters (<link to="IHost::USBDeviceFilters"/>) are activated. They can
16065 either ignore the device, or put it to USBDeviceState_Held state, or do
16066 nothing. Unless the device is ignored by global filters, filters of all
16067 currently running guests (<link to="IUSBController::deviceFilters"/>) are
16068 activated that can put it to USBDeviceState_Captured state.
16069
16070 If the device was ignored by global filters, or didn't match
16071 any filters at all (including guest ones), it is handled by the host
16072 in a normal way. In this case, the device state is determined by
16073 the host and can be one of USBDeviceState_Unavailable, USBDeviceState_Busy
16074 or USBDeviceState_Available, depending on the current device usage.
16075
16076 Besides auto-capturing based on filters, the device can be manually
16077 captured by guests (<link to="IConsole::attachUSBDevice"/>) if its
16078 state is USBDeviceState_Busy, USBDeviceState_Available or
16079 USBDeviceState_Held.
16080
16081 <note>
16082 Due to differences in USB stack implementations in Linux and Win32,
16083 states USBDeviceState_Busy and USBDeviceState_Unavailable are applicable
16084 only to the Linux version of the product. This also means that (<link
16085 to="IConsole::attachUSBDevice"/>) can only succeed on Win32 if the
16086 device state is USBDeviceState_Held.
16087 </note>
16088
16089 <see><link to="IHostUSBDevice"/>, <link to="IHostUSBDeviceFilter"/></see>
16090 </desc>
16091
16092 <const name="NotSupported" value="0">
16093 <desc>
16094 Not supported by the VirtualBox server, not available to guests.
16095 </desc>
16096 </const>
16097 <const name="Unavailable" value="1">
16098 <desc>
16099 Being used by the host computer exclusively,
16100 not available to guests.
16101 </desc>
16102 </const>
16103 <const name="Busy" value="2">
16104 <desc>
16105 Being used by the host computer, potentially available to guests.
16106 </desc>
16107 </const>
16108 <const name="Available" value="3">
16109 <desc>
16110 Not used by the host computer, available to guests (the host computer
16111 can also start using the device at any time).
16112 </desc>
16113 </const>
16114 <const name="Held" value="4">
16115 <desc>
16116 Held by the VirtualBox server (ignored by the host computer),
16117 available to guests.
16118 </desc>
16119 </const>
16120 <const name="Captured" value="5">
16121 <desc>
16122 Captured by one of the guest computers, not available
16123 to anybody else.
16124 </desc>
16125 </const>
16126 </enum>
16127
16128 <interface
16129 name="IHostUSBDevice" extends="IUSBDevice"
16130 uuid="173b4b44-d268-4334-a00d-b6521c9a740a"
16131 wsmap="managed"
16132 >
16133 <desc>
16134 The IHostUSBDevice interface represents a physical USB device attached
16135 to the host computer.
16136
16137 Besides properties inherited from IUSBDevice, this interface adds the
16138 <link to="#state"/> property that holds the current state of the USB
16139 device.
16140
16141 <see><link to="IHost::USBDevices"/>,
16142 <link to="IHost::USBDeviceFilters"/></see>
16143 </desc>
16144
16145 <attribute name="state" type="USBDeviceState" readonly="yes">
16146 <desc>
16147 Current state of the device.
16148 </desc>
16149 </attribute>
16150
16151 <!-- @todo add class, subclass, bandwidth, configs, interfaces endpoints and such later. -->
16152
16153 </interface>
16154
16155
16156 <!--
16157 // IHostUSBDeviceFilter
16158 /////////////////////////////////////////////////////////////////////////
16159 -->
16160
16161 <enum
16162 name="USBDeviceFilterAction"
16163 uuid="cbc30a49-2f4e-43b5-9da6-121320475933"
16164 >
16165 <desc>
16166 Actions for host USB device filters.
16167 <see><link to="IHostUSBDeviceFilter"/>, <link to="USBDeviceState"/></see>
16168 </desc>
16169
16170 <const name="Null" value="0">
16171 <desc>Null value (never used by the API).</desc>
16172 </const>
16173 <const name="Ignore" value="1">
16174 <desc>Ignore the matched USB device.</desc>
16175 </const>
16176 <const name="Hold" value="2">
16177 <desc>Hold the matched USB device.</desc>
16178 </const>
16179 </enum>
16180
16181 <interface
16182 name="IHostUSBDeviceFilter" extends="IUSBDeviceFilter"
16183 uuid="4cc70246-d74a-400f-8222-3900489c0374"
16184 wsmap="managed"
16185 >
16186 <desc>
16187 The IHostUSBDeviceFilter interface represents a global filter for a
16188 physical USB device used by the host computer. Used indirectly in
16189 <link to="IHost::USBDeviceFilters"/>.
16190
16191 Using filters of this type, the host computer determines the initial
16192 state of the USB device after it is physically attached to the
16193 host's USB controller.
16194
16195 <note>
16196 The <link to="IUSBDeviceFilter::remote"/> attribute is ignored by this type of
16197 filters, because it makes sense only for
16198 <link to="IUSBController::deviceFilters">machine USB filters</link>.
16199 </note>
16200
16201 <see><link to="IHost::USBDeviceFilters"/></see>
16202 </desc>
16203
16204 <attribute name="action" type="USBDeviceFilterAction">
16205 <desc>
16206 Action performed by the host when an attached USB device
16207 matches this filter.
16208 </desc>
16209 </attribute>
16210
16211 </interface>
16212
16213 <!--
16214 // IAudioAdapter
16215 /////////////////////////////////////////////////////////////////////////
16216 -->
16217
16218 <enum
16219 name="AudioDriverType"
16220 uuid="4bcc3d73-c2fe-40db-b72f-0c2ca9d68496"
16221 >
16222 <desc>
16223 Host audio driver type.
16224 </desc>
16225
16226 <const name="Null" value="0">
16227 <desc>Null value, also means "dummy audio driver".</desc>
16228 </const>
16229 <const name="WinMM" value="1">
16230 <desc>Windows multimedia (Windows hosts only).</desc>
16231 </const>
16232 <const name="OSS" value="2">
16233 <desc>Open Sound System (Linux hosts only).</desc>
16234 </const>
16235 <const name="ALSA" value="3">
16236 <desc>Advanced Linux Sound Architecture (Linux hosts only).</desc>
16237 </const>
16238 <const name="DirectSound" value="4">
16239 <desc>DirectSound (Windows hosts only).</desc>
16240 </const>
16241 <const name="CoreAudio" value="5">
16242 <desc>CoreAudio (Mac hosts only).</desc>
16243 </const>
16244 <const name="MMPM" value="6">
16245 <desc>Reserved for historical reasons.</desc>
16246 </const>
16247 <const name="Pulse" value="7">
16248 <desc>PulseAudio (Linux hosts only).</desc>
16249 </const>
16250 <const name="SolAudio" value="8">
16251 <desc>Solaris audio (Solaris hosts only).</desc>
16252 </const>
16253 </enum>
16254
16255 <enum
16256 name="AudioControllerType"
16257 uuid="7afd395c-42c3-444e-8788-3ce80292f36c"
16258 >
16259 <desc>
16260 Virtual audio controller type.
16261 </desc>
16262
16263 <const name="AC97" value="0"/>
16264 <const name="SB16" value="1"/>
16265 <const name="HDA" value="2"/>
16266 </enum>
16267
16268 <interface
16269 name="IAudioAdapter" extends="$unknown"
16270 uuid="921873db-5f3f-4b69-91f9-7be9e535a2cb"
16271 wsmap="managed"
16272 >
16273 <desc>
16274 The IAudioAdapter interface represents the virtual audio adapter of
16275 the virtual machine. Used in <link to="IMachine::audioAdapter"/>.
16276 </desc>
16277 <attribute name="enabled" type="boolean">
16278 <desc>
16279 Flag whether the audio adapter is present in the
16280 guest system. If disabled, the virtual guest hardware will
16281 not contain any audio adapter. Can only be changed when
16282 the VM is not running.
16283 </desc>
16284 </attribute>
16285 <attribute name="audioController" type="AudioControllerType">
16286 <desc>
16287 The audio hardware we emulate.
16288 </desc>
16289 </attribute>
16290 <attribute name="audioDriver" type="AudioDriverType">
16291 <desc>
16292 Audio driver the adapter is connected to. This setting
16293 can only be changed when the VM is not running.
16294 </desc>
16295 </attribute>
16296 </interface>
16297
16298 <enum
16299 name="AuthType"
16300 uuid="7eef6ef6-98c2-4dc2-ab35-10d2b292028d"
16301 >
16302 <desc>
16303 VirtualBox authentication type.
16304 </desc>
16305
16306 <const name="Null" value="0">
16307 <desc>Null value, also means "no authentication".</desc>
16308 </const>
16309 <const name="External" value="1"/>
16310 <const name="Guest" value="2"/>
16311 </enum>
16312
16313 <!--
16314 // IVRDEServer
16315 /////////////////////////////////////////////////////////////////////////
16316 -->
16317
16318 <interface
16319 name="IVRDEServer" extends="$unknown"
16320 uuid="d38de40a-c2c1-4e95-b5a4-167b05f5694c"
16321 wsmap="managed"
16322 >
16323 <attribute name="enabled" type="boolean">
16324 <desc>VRDE server status.</desc>
16325 </attribute>
16326
16327 <attribute name="authType" type="AuthType">
16328 <desc>VRDE authentication method.</desc>
16329 </attribute>
16330
16331 <attribute name="authTimeout" type="unsigned long">
16332 <desc>Timeout for guest authentication. Milliseconds.</desc>
16333 </attribute>
16334
16335 <attribute name="allowMultiConnection" type="boolean">
16336 <desc>
16337 Flag whether multiple simultaneous connections to the VM are permitted.
16338 Note that this will be replaced by a more powerful mechanism in the future.
16339 </desc>
16340 </attribute>
16341
16342 <attribute name="reuseSingleConnection" type="boolean">
16343 <desc>
16344 Flag whether the existing connection must be dropped and a new connection
16345 must be established by the VRDE server, when a new client connects in single
16346 connection mode.
16347 </desc>
16348 </attribute>
16349
16350 <attribute name="VRDEExtPack" type="wstring">
16351 <desc>
16352 The name of Extension Pack providing VRDE for this VM. Overrides
16353 <link to="ISystemProperties::defaultVRDEExtPack"/>.
16354 </desc>
16355 </attribute>
16356
16357 <attribute name="authLibrary" type="wstring">
16358 <desc>
16359 Library used for authentication of RDP clients by this VM. Overrides
16360 <link to="ISystemProperties::VRDEAuthLibrary"/>.
16361 </desc>
16362 </attribute>
16363
16364 <attribute name="VRDEProperties" type="wstring" readonly="yes" safearray="yes">
16365 <desc>
16366 Array of names of properties, which are supported by this VRDE server.
16367 </desc>
16368 </attribute>
16369
16370 <method name="setVRDEProperty">
16371 <desc>
16372 Sets a VRDE specific property string.
16373
16374 If you pass @c null or empty string as a key @a value, the given @a key
16375 will be deleted.
16376
16377 </desc>
16378 <param name="key" type="wstring" dir="in">
16379 <desc>Name of the key to set.</desc>
16380 </param>
16381 <param name="value" type="wstring" dir="in">
16382 <desc>Value to assign to the key.</desc>
16383 </param>
16384 </method>
16385
16386 <method name="getVRDEProperty" const="yes">
16387 <desc>
16388 Returns a VRDE specific property string.
16389
16390 If the requested data @a key does not exist, this function will
16391 succeed and return an empty string in the @a value argument.
16392
16393 </desc>
16394 <param name="key" type="wstring" dir="in">
16395 <desc>Name of the key to get.</desc>
16396 </param>
16397 <param name="value" type="wstring" dir="return">
16398 <desc>Value of the requested key.</desc>
16399 </param>
16400 </method>
16401
16402 </interface>
16403
16404
16405 <!--
16406 // ISharedFolder
16407 /////////////////////////////////////////////////////////////////////////
16408 -->
16409
16410 <interface
16411 name="ISharedFolder" extends="$unknown"
16412 uuid="8388da11-b559-4574-a5b7-2bd7acd5cef8"
16413 wsmap="struct"
16414 >
16415 <desc>
16416 The ISharedFolder interface represents a folder in the host computer's
16417 file system accessible from the guest OS running inside a virtual
16418 machine using an associated logical name.
16419
16420 There are three types of shared folders:
16421 <ul>
16422 <li><i>Global</i> (<link to="IVirtualBox::sharedFolders"/>), shared
16423 folders available to all virtual machines.</li>
16424 <li><i>Permanent</i> (<link to="IMachine::sharedFolders"/>),
16425 VM-specific shared folders available to the given virtual machine at
16426 startup.</li>
16427 <li><i>Transient</i> (<link to="IConsole::sharedFolders"/>),
16428 VM-specific shared folders created in the session context (for
16429 example, when the virtual machine is running) and automatically
16430 discarded when the session is closed (the VM is powered off).</li>
16431 </ul>
16432
16433 Logical names of shared folders must be unique within the given scope
16434 (global, permanent or transient). However, they do not need to be unique
16435 across scopes. In this case, the definition of the shared folder in a
16436 more specific scope takes precedence over definitions in all other
16437 scopes. The order of precedence is (more specific to more general):
16438 <ol>
16439 <li>Transient definitions</li>
16440 <li>Permanent definitions</li>
16441 <li>Global definitions</li>
16442 </ol>
16443
16444 For example, if MyMachine has a shared folder named
16445 <tt>C_DRIVE</tt> (that points to <tt>C:\\</tt>), then creating a
16446 transient shared folder named <tt>C_DRIVE</tt> (that points
16447 to <tt>C:\\\\WINDOWS</tt>) will change the definition
16448 of <tt>C_DRIVE</tt> in the guest OS so
16449 that <tt>\\\\VBOXSVR\\C_DRIVE</tt> will give access
16450 to <tt>C:\\WINDOWS</tt> instead of <tt>C:\\</tt> on the host
16451 PC. Removing the transient shared folder <tt>C_DRIVE</tt> will restore
16452 the previous (permanent) definition of <tt>C_DRIVE</tt> that points
16453 to <tt>C:\\</tt> if it still exists.
16454
16455 Note that permanent and transient shared folders of different machines
16456 are in different name spaces, so they don't overlap and don't need to
16457 have unique logical names.
16458
16459 <note>
16460 Global shared folders are not implemented in the current version of the
16461 product.
16462 </note>
16463 </desc>
16464
16465 <attribute name="name" type="wstring" readonly="yes">
16466 <desc>Logical name of the shared folder.</desc>
16467 </attribute>
16468
16469 <attribute name="hostPath" type="wstring" readonly="yes">
16470 <desc>Full path to the shared folder in the host file system.</desc>
16471 </attribute>
16472
16473 <attribute name="accessible" type="boolean" readonly="yes">
16474 <desc>
16475 Whether the folder defined by the host path is currently
16476 accessible or not.
16477 For example, the folder can be inaccessible if it is placed
16478 on the network share that is not available by the time
16479 this property is read.
16480 </desc>
16481 </attribute>
16482
16483 <attribute name="writable" type="boolean" readonly="yes">
16484 <desc>
16485 Whether the folder defined by the host path is writable or
16486 not.
16487 </desc>
16488 </attribute>
16489
16490 <attribute name="autoMount" type="boolean" readonly="yes">
16491 <desc>
16492 Whether the folder gets automatically mounted by the guest or not.
16493 </desc>
16494 </attribute>
16495
16496 <attribute name="lastAccessError" type="wstring" readonly="yes">
16497 <desc>
16498 Text message that represents the result of the last accessibility
16499 check.
16500
16501 Accessibility checks are performed each time the <link to="#accessible"/>
16502 attribute is read. An empty string is returned if the last
16503 accessibility check was successful. A non-empty string indicates a
16504 failure and should normally describe a reason of the failure (for
16505 example, a file read error).
16506 </desc>
16507 </attribute>
16508
16509 </interface>
16510
16511 <!--
16512 // ISession
16513 /////////////////////////////////////////////////////////////////////////
16514 -->
16515
16516 <interface
16517 name="IInternalSessionControl" extends="$unknown"
16518 uuid="3e83963a-1c3b-400d-8c5f-f2d077b0a597"
16519 internal="yes"
16520 wsmap="suppress"
16521 >
16522 <method name="getPID">
16523 <desc>PID of the process that has created this Session object.
16524 </desc>
16525 <param name="pid" type="unsigned long" dir="return"/>
16526 </method>
16527
16528 <method name="getRemoteConsole">
16529 <desc>
16530 Returns the console object suitable for remote control.
16531
16532 <result name="VBOX_E_INVALID_VM_STATE">
16533 Session state prevents operation.
16534 </result>
16535 <result name="VBOX_E_INVALID_OBJECT_STATE">
16536 Session type prevents operation.
16537 </result>
16538
16539 </desc>
16540 <param name="console" type="IConsole" dir="return"/>
16541 </method>
16542
16543 <method name="assignMachine">
16544 <desc>
16545 Assigns the machine object associated with this direct-type
16546 session or informs the session that it will be a remote one
16547 (if @a machine == @c null).
16548
16549 <result name="VBOX_E_INVALID_VM_STATE">
16550 Session state prevents operation.
16551 </result>
16552 <result name="VBOX_E_INVALID_OBJECT_STATE">
16553 Session type prevents operation.
16554 </result>
16555
16556 </desc>
16557 <param name="machine" type="IMachine" dir="in"/>
16558 <param name="lockType" type="LockType" dir="in"/>
16559 </method>
16560
16561 <method name="assignRemoteMachine">
16562 <desc>
16563 Assigns the machine and the (remote) console object associated with
16564 this remote-type session.
16565
16566 <result name="VBOX_E_INVALID_VM_STATE">
16567 Session state prevents operation.
16568 </result>
16569
16570 </desc>
16571 <param name="machine" type="IMachine" dir="in"/>
16572 <param name="console" type="IConsole" dir="in"/>
16573 </method>
16574
16575 <method name="updateMachineState">
16576 <desc>
16577 Updates the machine state in the VM process.
16578 Must be called only in certain cases
16579 (see the method implementation).
16580
16581 <result name="VBOX_E_INVALID_VM_STATE">
16582 Session state prevents operation.
16583 </result>
16584 <result name="VBOX_E_INVALID_OBJECT_STATE">
16585 Session type prevents operation.
16586 </result>
16587
16588 </desc>
16589 <param name="aMachineState" type="MachineState" dir="in"/>
16590 </method>
16591
16592 <method name="uninitialize">
16593 <desc>
16594 Uninitializes (closes) this session. Used by VirtualBox to close
16595 the corresponding remote session when the direct session dies
16596 or gets closed.
16597
16598 <result name="VBOX_E_INVALID_VM_STATE">
16599 Session state prevents operation.
16600 </result>
16601
16602 </desc>
16603 </method>
16604
16605 <method name="onNetworkAdapterChange">
16606 <desc>
16607 Triggered when settings of a network adapter of the
16608 associated virtual machine have changed.
16609
16610 <result name="VBOX_E_INVALID_VM_STATE">
16611 Session state prevents operation.
16612 </result>
16613 <result name="VBOX_E_INVALID_OBJECT_STATE">
16614 Session type prevents operation.
16615 </result>
16616
16617 </desc>
16618 <param name="networkAdapter" type="INetworkAdapter" dir="in"/>
16619 <param name="changeAdapter" type="boolean" dir="in"/>
16620 </method>
16621
16622 <method name="onSerialPortChange">
16623 <desc>
16624 Triggered when settings of a serial port of the
16625 associated virtual machine have changed.
16626
16627 <result name="VBOX_E_INVALID_VM_STATE">
16628 Session state prevents operation.
16629 </result>
16630 <result name="VBOX_E_INVALID_OBJECT_STATE">
16631 Session type prevents operation.
16632 </result>
16633
16634 </desc>
16635 <param name="serialPort" type="ISerialPort" dir="in"/>
16636 </method>
16637
16638 <method name="onParallelPortChange">
16639 <desc>
16640 Triggered when settings of a parallel port of the
16641 associated virtual machine have changed.
16642
16643 <result name="VBOX_E_INVALID_VM_STATE">
16644 Session state prevents operation.
16645 </result>
16646 <result name="VBOX_E_INVALID_OBJECT_STATE">
16647 Session type prevents operation.
16648 </result>
16649
16650 </desc>
16651 <param name="parallelPort" type="IParallelPort" dir="in"/>
16652 </method>
16653
16654 <method name="onStorageControllerChange">
16655 <desc>
16656 Triggered when settings of a storage controller of the
16657 associated virtual machine have changed.
16658
16659 <result name="VBOX_E_INVALID_VM_STATE">
16660 Session state prevents operation.
16661 </result>
16662 <result name="VBOX_E_INVALID_OBJECT_STATE">
16663 Session type prevents operation.
16664 </result>
16665
16666 </desc>
16667 </method>
16668
16669 <method name="onMediumChange">
16670 <desc>
16671 Triggered when attached media of the
16672 associated virtual machine have changed.
16673
16674 <result name="VBOX_E_INVALID_VM_STATE">
16675 Session state prevents operation.
16676 </result>
16677 <result name="VBOX_E_INVALID_OBJECT_STATE">
16678 Session type prevents operation.
16679 </result>
16680
16681 </desc>
16682
16683 <param name="mediumAttachment" type="IMediumAttachment" dir="in">
16684 <desc>The medium attachment which changed.</desc>
16685 </param>
16686 <param name="force" type="boolean" dir="in">
16687 <desc>If the medium change was forced.</desc>
16688 </param>
16689 </method>
16690
16691 <method name="onStorageDeviceChange">
16692 <desc>
16693 Triggered when attached storage devices of the
16694 associated virtual machine have changed.
16695
16696 <result name="VBOX_E_INVALID_VM_STATE">
16697 Session state prevents operation.
16698 </result>
16699 <result name="VBOX_E_INVALID_OBJECT_STATE">
16700 Session type prevents operation.
16701 </result>
16702
16703 </desc>
16704
16705 <param name="mediumAttachment" type="IMediumAttachment" dir="in">
16706 <desc>The medium attachment which changed.</desc>
16707 </param>
16708 <param name="remove" type="boolean" dir="in">
16709 <desc>TRUE if the device is removed, FALSE if it was added.</desc>
16710 </param>
16711 </method>
16712
16713 <method name="onClipboardModeChange">
16714 <desc>
16715 Notification when the shared clipboard mode changes.
16716 </desc>
16717 <param name="clipboardMode" type="ClipboardMode" dir="in">
16718 <desc>The new shared clipboard mode.</desc>
16719 </param>
16720 </method>
16721
16722 <method name="onDragAndDropModeChange">
16723 <desc>
16724 Notification when the drag'n'drop mode changes.
16725 </desc>
16726 <param name="dragAndDropMode" type="DragAndDropMode" dir="in">
16727 <desc>The new mode for drag'n'drop.</desc>
16728 </param>
16729 </method>
16730
16731 <method name="onCPUChange">
16732 <desc>
16733 Notification when a CPU changes.
16734 </desc>
16735 <param name="cpu" type="unsigned long" dir="in">
16736 <desc>The CPU which changed</desc>
16737 </param>
16738 <param name="add" type="boolean" dir="in">
16739 <desc>Flag whether the CPU was added or removed</desc>
16740 </param>
16741 </method>
16742
16743 <method name="onCPUExecutionCapChange">
16744 <desc>
16745 Notification when the CPU execution cap changes.
16746 </desc>
16747 <param name="executionCap" type="unsigned long" dir="in">
16748 <desc>The new CPU execution cap value. (1-100)</desc>
16749 </param>
16750 </method>
16751
16752 <method name="onVRDEServerChange">
16753 <desc>
16754 Triggered when settings of the VRDE server object of the
16755 associated virtual machine have changed.
16756
16757 <result name="VBOX_E_INVALID_VM_STATE">
16758 Session state prevents operation.
16759 </result>
16760 <result name="VBOX_E_INVALID_OBJECT_STATE">
16761 Session type prevents operation.
16762 </result>
16763
16764 </desc>
16765 <param name="restart" type="boolean" dir="in">
16766 <desc>Flag whether the server must be restarted</desc>
16767 </param>
16768 </method>
16769
16770 <method name="onUSBControllerChange">
16771 <desc>
16772 Triggered when settings of the USB controller object of the
16773 associated virtual machine have changed.
16774
16775 <result name="VBOX_E_INVALID_VM_STATE">
16776 Session state prevents operation.
16777 </result>
16778 <result name="VBOX_E_INVALID_OBJECT_STATE">
16779 Session type prevents operation.
16780 </result>
16781
16782 </desc>
16783 </method>
16784
16785 <method name="onSharedFolderChange">
16786 <desc>
16787 Triggered when a permanent (global or machine) shared folder has been
16788 created or removed.
16789 <note>
16790 We don't pass shared folder parameters in this notification because
16791 the order in which parallel notifications are delivered is not defined,
16792 therefore it could happen that these parameters were outdated by the
16793 time of processing this notification.
16794 </note>
16795
16796 <result name="VBOX_E_INVALID_VM_STATE">
16797 Session state prevents operation.
16798 </result>
16799 <result name="VBOX_E_INVALID_OBJECT_STATE">
16800 Session type prevents operation.
16801 </result>
16802
16803 </desc>
16804 <param name="global" type="boolean" dir="in"/>
16805 </method>
16806
16807 <method name="onUSBDeviceAttach">
16808 <desc>
16809 Triggered when a request to capture a USB device (as a result
16810 of matched USB filters or direct call to
16811 <link to="IConsole::attachUSBDevice"/>) has completed.
16812 A @c null @a error object means success, otherwise it
16813 describes a failure.
16814
16815 <result name="VBOX_E_INVALID_VM_STATE">
16816 Session state prevents operation.
16817 </result>
16818 <result name="VBOX_E_INVALID_OBJECT_STATE">
16819 Session type prevents operation.
16820 </result>
16821
16822 </desc>
16823 <param name="device" type="IUSBDevice" dir="in"/>
16824 <param name="error" type="IVirtualBoxErrorInfo" dir="in"/>
16825 <param name="maskedInterfaces" type="unsigned long" dir="in"/>
16826 </method>
16827
16828 <method name="onUSBDeviceDetach">
16829 <desc>
16830 Triggered when a request to release the USB device (as a result
16831 of machine termination or direct call to
16832 <link to="IConsole::detachUSBDevice"/>) has completed.
16833 A @c null @a error object means success, otherwise it
16834 describes a failure.
16835
16836 <result name="VBOX_E_INVALID_VM_STATE">
16837 Session state prevents operation.
16838 </result>
16839 <result name="VBOX_E_INVALID_OBJECT_STATE">
16840 Session type prevents operation.
16841 </result>
16842
16843 </desc>
16844 <param name="id" type="uuid" mod="string" dir="in"/>
16845 <param name="error" type="IVirtualBoxErrorInfo" dir="in"/>
16846 </method>
16847
16848 <method name="onShowWindow">
16849 <desc>
16850 Called by <link to="IMachine::canShowConsoleWindow"/> and by
16851 <link to="IMachine::showConsoleWindow"/> in order to notify
16852 console listeners
16853 <link to="ICanShowWindowEvent"/>
16854 and <link to="IShowWindowEvent"/>.
16855
16856 <result name="VBOX_E_INVALID_OBJECT_STATE">
16857 Session type prevents operation.
16858 </result>
16859
16860 </desc>
16861 <param name="check" type="boolean" dir="in"/>
16862 <param name="canShow" type="boolean" dir="out"/>
16863 <param name="winId" type="long long" dir="out"/>
16864 </method>
16865
16866 <method name="onBandwidthGroupChange">
16867 <desc>
16868 Notification when one of the bandwidth groups change.
16869 </desc>
16870 <param name="bandwidthGroup" type="IBandwidthGroup" dir="in">
16871 <desc>The bandwidth group which changed.</desc>
16872 </param>
16873 </method>
16874
16875 <method name="accessGuestProperty">
16876 <desc>
16877 Called by <link to="IMachine::getGuestProperty"/> and by
16878 <link to="IMachine::setGuestProperty"/> in order to read and
16879 modify guest properties.
16880
16881 <result name="VBOX_E_INVALID_VM_STATE">
16882 Machine session is not open.
16883 </result>
16884 <result name="VBOX_E_INVALID_OBJECT_STATE">
16885 Session type is not direct.
16886 </result>
16887
16888 </desc>
16889 <param name="name" type="wstring" dir="in"/>
16890 <param name="value" type="wstring" dir="in"/>
16891 <param name="flags" type="wstring" dir="in"/>
16892 <param name="isSetter" type="boolean" dir="in"/>
16893 <param name="retValue" type="wstring" dir="out"/>
16894 <param name="retTimestamp" type="long long" dir="out"/>
16895 <param name="retFlags" type="wstring" dir="out"/>
16896 </method>
16897
16898 <method name="enumerateGuestProperties" const="yes">
16899 <desc>
16900 Return a list of the guest properties matching a set of patterns along
16901 with their values, time stamps and flags.
16902
16903 <result name="VBOX_E_INVALID_VM_STATE">
16904 Machine session is not open.
16905 </result>
16906 <result name="VBOX_E_INVALID_OBJECT_STATE">
16907 Session type is not direct.
16908 </result>
16909
16910 </desc>
16911 <param name="patterns" type="wstring" dir="in">
16912 <desc>
16913 The patterns to match the properties against as a comma-separated
16914 string. If this is empty, all properties currently set will be
16915 returned.
16916 </desc>
16917 </param>
16918 <param name="key" type="wstring" dir="out" safearray="yes">
16919 <desc>
16920 The key names of the properties returned.
16921 </desc>
16922 </param>
16923 <param name="value" type="wstring" dir="out" safearray="yes">
16924 <desc>
16925 The values of the properties returned. The array entries match the
16926 corresponding entries in the @a key array.
16927 </desc>
16928 </param>
16929 <param name="timestamp" type="long long" dir="out" safearray="yes">
16930 <desc>
16931 The time stamps of the properties returned. The array entries match
16932 the corresponding entries in the @a key array.
16933 </desc>
16934 </param>
16935 <param name="flags" type="wstring" dir="out" safearray="yes">
16936 <desc>
16937 The flags of the properties returned. The array entries match the
16938 corresponding entries in the @a key array.
16939 </desc>
16940 </param>
16941 </method>
16942
16943 <method name="onlineMergeMedium">
16944 <desc>
16945 Triggers online merging of a hard disk. Used internally when deleting
16946 a snapshot while a VM referring to the same hard disk chain is running.
16947
16948 <result name="VBOX_E_INVALID_VM_STATE">
16949 Machine session is not open.
16950 </result>
16951 <result name="VBOX_E_INVALID_OBJECT_STATE">
16952 Session type is not direct.
16953 </result>
16954
16955 </desc>
16956 <param name="mediumAttachment" type="IMediumAttachment" dir="in">
16957 <desc>The medium attachment to identify the medium chain.</desc>
16958 </param>
16959 <param name="sourceIdx" type="unsigned long" dir="in">
16960 <desc>The index of the source image in the chain.
16961 Redundant, but drastically reduces IPC.</desc>
16962 </param>
16963 <param name="targetIdx" type="unsigned long" dir="in">
16964 <desc>The index of the target image in the chain.
16965 Redundant, but drastically reduces IPC.</desc>
16966 </param>
16967 <param name="source" type="IMedium" dir="in">
16968 <desc>Merge source medium.</desc>
16969 </param>
16970 <param name="target" type="IMedium" dir="in">
16971 <desc>Merge target medium.</desc>
16972 </param>
16973 <param name="mergeForward" type="boolean" dir="in">
16974 <desc>Merge direction.</desc>
16975 </param>
16976 <param name="parentForTarget" type="IMedium" dir="in">
16977 <desc>For forward merges: new parent for target medium.</desc>
16978 </param>
16979 <param name="childrenToReparent" type="IMedium" safearray="yes" dir="in">
16980 <desc>For backward merges: list of media which need their parent UUID
16981 updated.</desc>
16982 </param>
16983 <param name="progress" type="IProgress" dir="in">
16984 <desc>
16985 Progress object for this operation.
16986 </desc>
16987 </param>
16988 </method>
16989
16990 <method name="enableVMMStatistics">
16991 <desc>
16992 Enables or disables collection of VMM RAM statistics.
16993
16994 <result name="VBOX_E_INVALID_VM_STATE">
16995 Machine session is not open.
16996 </result>
16997 <result name="VBOX_E_INVALID_OBJECT_STATE">
16998 Session type is not direct.
16999 </result>
17000
17001 </desc>
17002 <param name="enable" type="boolean" dir="in">
17003 <desc>True enables statistics collection.</desc>
17004 </param>
17005 </method>
17006
17007 </interface>
17008
17009 <interface
17010 name="ISession" extends="$unknown"
17011 uuid="12F4DCDB-12B2-4EC1-B7CD-DDD9F6C5BF4D"
17012 wsmap="managed"
17013 >
17014 <desc>
17015 The ISession interface represents a client process and allows for locking
17016 virtual machines (represented by IMachine objects) to prevent conflicting
17017 changes to the machine.
17018
17019 Any caller wishing to manipulate a virtual machine needs to create a session
17020 object first, which lives in its own process space. Such session objects are
17021 then associated with <link to="IMachine" /> objects living in the VirtualBox
17022 server process to coordinate such changes.
17023
17024 There are two typical scenarios in which sessions are used:
17025
17026 <ul>
17027 <li>To alter machine settings or control a running virtual machine, one
17028 needs to lock a machine for a given session (client process) by calling
17029 <link to="IMachine::lockMachine"/>.
17030
17031 Whereas multiple sessions may control a running virtual machine, only
17032 one process can obtain a write lock on the machine to prevent conflicting
17033 changes. A write lock is also needed if a process wants to actually run a
17034 virtual machine in its own context, such as the VirtualBox GUI or
17035 VBoxHeadless front-ends. They must also lock a machine for their own
17036 sessions before they are allowed to power up the virtual machine.
17037
17038 As a result, no machine settings can be altered while another process is
17039 already using it, either because that process is modifying machine settings
17040 or because the machine is running.
17041 </li>
17042 <li>
17043 To start a VM using one of the existing VirtualBox front-ends (e.g. the
17044 VirtualBox GUI or VBoxHeadless), one would use
17045 <link to="IMachine::launchVMProcess"/>, which also takes a session object
17046 as its first parameter. This session then identifies the caller and lets the
17047 caller control the started machine (for example, pause machine execution or
17048 power it down) as well as be notified about machine execution state changes.
17049 </li>
17050 </ul>
17051
17052 How sessions objects are created in a client process depends on whether you use
17053 the Main API via COM or via the webservice:
17054
17055 <ul>
17056 <li>When using the COM API directly, an object of the Session class from the
17057 VirtualBox type library needs to be created. In regular COM C++ client code,
17058 this can be done by calling <tt>createLocalObject()</tt>, a standard COM API.
17059 This object will then act as a local session object in further calls to open
17060 a session.
17061 </li>
17062
17063 <li>In the webservice, the session manager (IWebsessionManager) instead creates
17064 a session object automatically whenever <link to="IWebsessionManager::logon" />
17065 is called. A managed object reference to that session object can be retrieved by
17066 calling <link to="IWebsessionManager::getSessionObject" />.
17067 </li>
17068 </ul>
17069 </desc>
17070
17071 <attribute name="state" type="SessionState" readonly="yes">
17072 <desc>Current state of this session.</desc>
17073 </attribute>
17074
17075 <attribute name="type" type="SessionType" readonly="yes">
17076 <desc>
17077 Type of this session. The value of this attribute is valid only
17078 if the session currently has a machine locked (i.e. its
17079 <link to="#state" /> is Locked), otherwise an error will be returned.
17080 </desc>
17081 </attribute>
17082
17083 <attribute name="machine" type="IMachine" readonly="yes">
17084 <desc>Machine object associated with this session.</desc>
17085 </attribute>
17086
17087 <attribute name="console" type="IConsole" readonly="yes">
17088 <desc>Console object associated with this session.</desc>
17089 </attribute>
17090
17091 <method name="unlockMachine">
17092 <desc>
17093 Unlocks a machine that was previously locked for the current session.
17094
17095 Calling this method is required every time a machine has been locked
17096 for a particular session using the <link to="IMachine::launchVMProcess" />
17097 or <link to="IMachine::lockMachine" /> calls. Otherwise the state of
17098 the machine will be set to <link to="MachineState_Aborted" /> on the
17099 server, and changes made to the machine settings will be lost.
17100
17101 Generally, it is recommended to unlock all machines explicitly
17102 before terminating the application (regardless of the reason for
17103 the termination).
17104
17105 <note>
17106 Do not expect the session state (<link to="ISession::state" />
17107 to return to "Unlocked" immediately after you invoke this method,
17108 particularly if you have started a new VM process. The session
17109 state will automatically return to "Unlocked" once the VM is no
17110 longer executing, which can of course take a very long time.
17111 </note>
17112
17113 <result name="E_UNEXPECTED">
17114 Session is not locked.
17115 </result>
17116
17117 </desc>
17118 </method>
17119
17120 </interface>
17121
17122 <!--
17123 // IStorageController
17124 /////////////////////////////////////////////////////////////////////////
17125 -->
17126
17127 <enum
17128 name="StorageBus"
17129 uuid="eee67ab3-668d-4ef5-91e0-7025fe4a0d7a"
17130 >
17131 <desc>
17132 The bus type of the storage controller (IDE, SATA, SCSI, SAS or Floppy);
17133 see <link to="IStorageController::bus" />.
17134 </desc>
17135 <const name="Null" value="0">
17136 <desc>@c null value. Never used by the API.</desc>
17137 </const>
17138 <const name="IDE" value="1"/>
17139 <const name="SATA" value="2"/>
17140 <const name="SCSI" value="3"/>
17141 <const name="Floppy" value="4"/>
17142 <const name="SAS" value="5"/>
17143 </enum>
17144
17145 <enum
17146 name="StorageControllerType"
17147 uuid="8a412b8a-f43e-4456-bd37-b474f0879a58"
17148 >
17149 <desc>
17150 The exact variant of storage controller hardware presented
17151 to the guest; see <link to="IStorageController::controllerType" />.
17152 </desc>
17153
17154 <const name="Null" value="0">
17155 <desc>@c null value. Never used by the API.</desc>
17156 </const>
17157 <const name="LsiLogic" value="1">
17158 <desc>A SCSI controller of the LsiLogic variant.</desc>
17159 </const>
17160 <const name="BusLogic" value="2">
17161 <desc>A SCSI controller of the BusLogic variant.</desc>
17162 </const>
17163 <const name="IntelAhci" value="3">
17164 <desc>An Intel AHCI SATA controller; this is the only variant for SATA.</desc>
17165 </const>
17166 <const name="PIIX3" value="4">
17167 <desc>An IDE controller of the PIIX3 variant.</desc>
17168 </const>
17169 <const name="PIIX4" value="5">
17170 <desc>An IDE controller of the PIIX4 variant.</desc>
17171 </const>
17172 <const name="ICH6" value="6">
17173 <desc>An IDE controller of the ICH6 variant.</desc>
17174 </const>
17175 <const name="I82078" value="7">
17176 <desc>A floppy disk controller; this is the only variant for floppy drives.</desc>
17177 </const>
17178 <const name="LsiLogicSas" value="8">
17179 <desc>A variant of the LsiLogic controller using SAS.</desc>
17180 </const>
17181 </enum>
17182
17183 <enum
17184 name="ChipsetType"
17185 uuid="8b4096a8-a7c3-4d3b-bbb1-05a0a51ec394"
17186 >
17187 <desc>
17188 Type of emulated chipset (mostly southbridge).
17189 </desc>
17190
17191 <const name="Null" value="0">
17192 <desc>@c null value. Never used by the API.</desc>
17193 </const>
17194 <const name="PIIX3" value="1">
17195 <desc>A PIIX3 (PCI IDE ISA Xcelerator) chipset.</desc>
17196 </const>
17197 <const name="ICH9" value="2">
17198 <desc>A ICH9 (I/O Controller Hub) chipset.</desc>
17199 </const>
17200 </enum>
17201
17202 <interface
17203 name="IStorageController" extends="$unknown"
17204 uuid="a1556333-09b6-46d9-bfb7-fc239b7fbe1e"
17205 wsmap="managed"
17206 >
17207 <desc>
17208 Represents a storage controller that is attached to a virtual machine
17209 (<link to="IMachine" />). Just as drives (hard disks, DVDs, FDs) are
17210 attached to storage controllers in a real computer, virtual drives
17211 (represented by <link to="IMediumAttachment" />) are attached to virtual
17212 storage controllers, represented by this interface.
17213
17214 As opposed to physical hardware, VirtualBox has a very generic concept
17215 of a storage controller, and for purposes of the Main API, all virtual
17216 storage is attached to virtual machines via instances of this interface.
17217 There are five types of such virtual storage controllers: IDE, SCSI, SATA,
17218 SAS and Floppy (see <link to="#bus" />). Depending on which of these four
17219 is used, certain sub-types may be available and can be selected in
17220 <link to="#controllerType" />.
17221
17222 Depending on these settings, the guest operating system might see
17223 significantly different virtual hardware.
17224 </desc>
17225
17226 <attribute name="name" type="wstring" readonly="yes">
17227 <desc>
17228 Name of the storage controller, as originally specified with
17229 <link to="IMachine::addStorageController" />. This then uniquely
17230 identifies this controller with other method calls such as
17231 <link to="IMachine::attachDevice" /> and <link to="IMachine::mountMedium" />.
17232 </desc>
17233 </attribute>
17234
17235 <attribute name="maxDevicesPerPortCount" type="unsigned long" readonly="yes">
17236 <desc>
17237 Maximum number of devices which can be attached to one port.
17238 </desc>
17239 </attribute>
17240
17241 <attribute name="minPortCount" type="unsigned long" readonly="yes">
17242 <desc>
17243 Minimum number of ports that <link to="IStorageController::portCount"/> can be set to.
17244 </desc>
17245 </attribute>
17246
17247 <attribute name="maxPortCount" type="unsigned long" readonly="yes">
17248 <desc>
17249 Maximum number of ports that <link to="IStorageController::portCount"/> can be set to.
17250 </desc>
17251 </attribute>
17252
17253 <attribute name="instance" type="unsigned long">
17254 <desc>
17255 The instance number of the device in the running VM.
17256 </desc>
17257 </attribute>
17258
17259 <attribute name="portCount" type="unsigned long">
17260 <desc>
17261 The number of currently usable ports on the controller.
17262 The minimum and maximum number of ports for one controller are
17263 stored in <link to="IStorageController::minPortCount"/>
17264 and <link to="IStorageController::maxPortCount"/>.
17265 </desc>
17266 </attribute>
17267
17268 <attribute name="bus" type="StorageBus" readonly="yes">
17269 <desc>
17270 The bus type of the storage controller (IDE, SATA, SCSI, SAS or Floppy).
17271 </desc>
17272 </attribute>
17273
17274 <attribute name="controllerType" type="StorageControllerType">
17275 <desc>
17276 The exact variant of storage controller hardware presented
17277 to the guest.
17278 Depending on this value, VirtualBox will provide a different
17279 virtual storage controller hardware to the guest.
17280 For SATA, SAS and floppy controllers, only one variant is
17281 available, but for IDE and SCSI, there are several.
17282
17283 For SCSI controllers, the default type is LsiLogic.
17284 </desc>
17285 </attribute>
17286
17287 <attribute name="useHostIOCache" type="boolean">
17288 <desc>
17289 If true, the storage controller emulation will use a dedicated I/O thread, enable the host I/O
17290 caches and use synchronous file APIs on the host. This was the only option in the API before
17291 VirtualBox 3.2 and is still the default for IDE controllers.
17292
17293 If false, the host I/O cache will be disabled for image files attached to this storage controller.
17294 Instead, the storage controller emulation will use asynchronous I/O APIs on the host. This makes
17295 it possible to turn off the host I/O caches because the emulation can handle unaligned access to
17296 the file. This should be used on OS X and Linux hosts if a high I/O load is expected or many
17297 virtual machines are running at the same time to prevent I/O cache related hangs.
17298 This option new with the API of VirtualBox 3.2 and is now the default for non-IDE storage controllers.
17299 </desc>
17300 </attribute>
17301
17302 <attribute name="bootable" type="boolean" readonly="yes">
17303 <desc>
17304 Returns whether it is possible to boot from disks attached to this controller.
17305 </desc>
17306 </attribute>
17307 </interface>
17308
17309<if target="wsdl">
17310
17311 <!--
17312 // IManagedObjectRef
17313 /////////////////////////////////////////////////////////////////////////
17314 -->
17315
17316 <interface
17317 name="IManagedObjectRef" extends="$unknown"
17318 uuid="9474d09d-2313-46de-b568-a42b8718e8ed"
17319 internal="yes"
17320 wsmap="managed"
17321 wscpp="hardcoded"
17322 >
17323 <desc>
17324 Managed object reference.
17325
17326 Only within the webservice, a managed object reference (which is really
17327 an opaque number) allows a webservice client to address an object
17328 that lives in the address space of the webservice server.
17329
17330 Behind each managed object reference, there is a COM object that lives
17331 in the webservice server's address space. The COM object is not freed
17332 until the managed object reference is released, either by an explicit
17333 call to <link to="IManagedObjectRef::release" /> or by logging off from
17334 the webservice (<link to="IWebsessionManager::logoff" />), which releases
17335 all objects created during the webservice session.
17336
17337 Whenever a method call of the VirtualBox API returns a COM object, the
17338 webservice representation of that method will instead return a
17339 managed object reference, which can then be used to invoke methods
17340 on that object.
17341 </desc>
17342
17343 <method name="getInterfaceName">
17344 <desc>
17345 Returns the name of the interface that this managed object represents,
17346 for example, "IMachine", as a string.
17347 </desc>
17348 <param name="return" type="wstring" dir="return"/>
17349 </method>
17350
17351 <method name="release">
17352 <desc>
17353 Releases this managed object reference and frees the resources that
17354 were allocated for it in the webservice server process. After calling
17355 this method, the identifier of the reference can no longer be used.
17356 </desc>
17357 </method>
17358
17359 </interface>
17360
17361 <!--
17362 // IWebsessionManager
17363 /////////////////////////////////////////////////////////////////////////
17364 -->
17365
17366 <interface
17367 name="IWebsessionManager" extends="$unknown"
17368 uuid="dea1b4c7-2de3-418a-850d-7868617f7733"
17369 internal="yes"
17370 wsmap="global"
17371 wscpp="hardcoded"
17372 >
17373 <desc>
17374 Websession manager. This provides essential services
17375 to webservice clients.
17376 </desc>
17377 <method name="logon">
17378 <desc>
17379 Logs a new client onto the webservice and returns a managed object reference to
17380 the IVirtualBox instance, which the client can then use as a basis to further
17381 queries, since all calls to the VirtualBox API are based on the IVirtualBox
17382 interface, in one way or the other.
17383 </desc>
17384 <param name="username" type="wstring" dir="in"/>
17385 <param name="password" type="wstring" dir="in"/>
17386 <param name="return" type="IVirtualBox" dir="return"/>
17387 </method>
17388
17389 <method name="getSessionObject">
17390 <desc>
17391 Returns a managed object reference to the internal ISession object that was created
17392 for this web service session when the client logged on.
17393
17394 <see><link to="ISession"/></see>
17395 </desc>
17396 <param name="refIVirtualBox" type="IVirtualBox" dir="in"/>
17397 <param name="return" type="ISession" dir="return"/>
17398 </method>
17399
17400 <method name="logoff">
17401 <desc>
17402 Logs off the client who has previously logged on with <link to="IWebsessionManager::logon" />
17403 and destroys all resources associated with the session (most importantly, all
17404 managed objects created in the server while the session was active).
17405 </desc>
17406 <param name="refIVirtualBox" type="IVirtualBox" dir="in"/>
17407 </method>
17408
17409 </interface>
17410
17411</if>
17412
17413 <!--
17414 // IPerformanceCollector & friends
17415 /////////////////////////////////////////////////////////////////////////
17416 -->
17417
17418 <interface
17419 name="IPerformanceMetric" extends="$unknown"
17420 uuid="2a1a60ae-9345-4019-ad53-d34ba41cbfe9" wsmap="managed"
17421 >
17422 <desc>
17423 The IPerformanceMetric interface represents parameters of the given
17424 performance metric.
17425 </desc>
17426
17427 <attribute name="metricName" type="wstring" readonly="yes">
17428 <desc>
17429 Name of the metric.
17430 </desc>
17431 </attribute>
17432
17433 <attribute name="object" type="$unknown" readonly="yes">
17434 <desc>
17435 Object this metric belongs to.
17436 </desc>
17437 </attribute>
17438
17439 <attribute name="description" type="wstring" readonly="yes">
17440 <desc>
17441 Textual description of the metric.
17442 </desc>
17443 </attribute>
17444
17445 <attribute name="period" type="unsigned long" readonly="yes">
17446 <desc>
17447 Time interval between samples, measured in seconds.
17448 </desc>
17449 </attribute>
17450
17451 <attribute name="count" type="unsigned long" readonly="yes">
17452 <desc>
17453 Number of recent samples retained by the performance collector for this
17454 metric.
17455
17456 When the collected sample count exceeds this number, older samples
17457 are discarded.
17458 </desc>
17459 </attribute>
17460
17461 <attribute name="unit" type="wstring" readonly="yes">
17462 <desc>
17463 Unit of measurement.
17464 </desc>
17465 </attribute>
17466
17467 <attribute name="minimumValue" type="long" readonly="yes">
17468 <desc>
17469 Minimum possible value of this metric.
17470 </desc>
17471 </attribute>
17472
17473 <attribute name="maximumValue" type="long" readonly="yes">
17474 <desc>
17475 Maximum possible value of this metric.
17476 </desc>
17477 </attribute>
17478 </interface>
17479
17480 <interface
17481 name="IPerformanceCollector" extends="$unknown"
17482 uuid="e22e1acb-ac4a-43bb-a31c-17321659b0c6"
17483 wsmap="managed"
17484 >
17485 <desc>
17486 The IPerformanceCollector interface represents a service that collects
17487 and stores performance metrics data.
17488
17489 Performance metrics are associated with objects of interfaces like IHost
17490 and IMachine. Each object has a distinct set of performance metrics. The
17491 set can be obtained with <link to="IPerformanceCollector::getMetrics"/>.
17492
17493 Metric data is collected at the specified intervals and is retained
17494 internally. The interval and the number of retained samples can be set
17495 with <link to="IPerformanceCollector::setupMetrics" />. Both metric data
17496 and collection settings are not persistent, they are discarded as soon as
17497 VBoxSVC process terminates. Moreover, metric settings and data associated
17498 with a particular VM only exist while VM is running. They disappear as
17499 soon as VM shuts down. It is not possible to set up metrics for machines
17500 that are powered off. One needs to start VM first, then set up metric
17501 collection parameters.
17502
17503 Metrics are organized hierarchically, with each level separated by a
17504 slash (/) character. Generally, the scheme for metric names is like this:
17505
17506 <tt>Category/Metric[/SubMetric][:aggregation]</tt>
17507
17508 "Category/Metric" together form the base metric name. A base metric is
17509 the smallest unit for which a sampling interval and the number of
17510 retained samples can be set. Only base metrics can be enabled and
17511 disabled. All sub-metrics are collected when their base metric is
17512 collected. Collected values for any set of sub-metrics can be queried
17513 with <link to="IPerformanceCollector::queryMetricsData" />.
17514
17515 For example "CPU/Load/User:avg" metric name stands for the "CPU"
17516 category, "Load" metric, "User" submetric, "average" aggregate. An
17517 aggregate function is computed over all retained data. Valid aggregate
17518 functions are:
17519
17520 <ul>
17521 <li>avg -- average</li>
17522 <li>min -- minimum</li>
17523 <li>max -- maximum</li>
17524 </ul>
17525
17526 When setting up metric parameters, querying metric data, enabling or
17527 disabling metrics wildcards can be used in metric names to specify a
17528 subset of metrics. For example, to select all CPU-related metrics
17529 use <tt>CPU/*</tt>, all averages can be queried using <tt>*:avg</tt> and
17530 so on. To query metric values without aggregates <tt>*:</tt> can be used.
17531
17532 The valid names for base metrics are:
17533
17534 <ul>
17535 <li>CPU/Load</li>
17536 <li>CPU/MHz</li>
17537 <li>RAM/Usage</li>
17538 <li>RAM/VMM</li>
17539 </ul>
17540
17541 The general sequence for collecting and retrieving the metrics is:
17542 <ul>
17543 <li>
17544 Obtain an instance of IPerformanceCollector with
17545 <link to="IVirtualBox::performanceCollector" />
17546 </li>
17547 <li>
17548 Allocate and populate an array with references to objects the metrics
17549 will be collected for. Use references to IHost and IMachine objects.
17550 </li>
17551 <li>
17552 Allocate and populate an array with base metric names the data will
17553 be collected for.
17554 </li>
17555 <li>
17556 Call <link to="IPerformanceCollector::setupMetrics" />. From now on
17557 the metric data will be collected and stored.
17558 </li>
17559 <li>
17560 Wait for the data to get collected.
17561 </li>
17562 <li>
17563 Allocate and populate an array with references to objects the metric
17564 values will be queried for. You can re-use the object array used for
17565 setting base metrics.
17566 </li>
17567 <li>
17568 Allocate and populate an array with metric names the data will be
17569 collected for. Note that metric names differ from base metric names.
17570 </li>
17571 <li>
17572 Call <link to="IPerformanceCollector::queryMetricsData" />. The data
17573 that have been collected so far are returned. Note that the values
17574 are still retained internally and data collection continues.
17575 </li>
17576 </ul>
17577
17578 For an example of usage refer to the following files in VirtualBox SDK:
17579 <ul>
17580 <li>
17581 Java: <tt>bindings/webservice/java/jax-ws/samples/metrictest.java</tt>
17582 </li>
17583 <li>
17584 Python: <tt>bindings/xpcom/python/sample/shellcommon.py</tt>
17585 </li>
17586 </ul>
17587 </desc>
17588
17589 <attribute name="metricNames" type="wstring" readonly="yes" safearray="yes">
17590 <desc>
17591 Array of unique names of metrics.
17592
17593 This array represents all metrics supported by the performance
17594 collector. Individual objects do not necessarily support all of them.
17595 <link to="IPerformanceCollector::getMetrics"/> can be used to get the
17596 list of supported metrics for a particular object.
17597 </desc>
17598 </attribute>
17599
17600 <method name="getMetrics">
17601 <desc>
17602 Returns parameters of specified metrics for a set of objects.
17603 <note>
17604 @c Null metrics array means all metrics. @c Null object array means
17605 all existing objects.
17606 </note>
17607 </desc>
17608 <param name="metricNames" type="wstring" dir="in" safearray="yes">
17609 <desc>
17610 Metric name filter. Currently, only a comma-separated list of metrics
17611 is supported.
17612 </desc>
17613 </param>
17614 <param name="objects" type="$unknown" dir="in" safearray="yes">
17615 <desc>
17616 Set of objects to return metric parameters for.
17617 </desc>
17618 </param>
17619 <param name="metrics" type="IPerformanceMetric" dir="return" safearray="yes">
17620 <desc>
17621 Array of returned metric parameters.
17622 </desc>
17623 </param>
17624 </method>
17625
17626 <method name="setupMetrics">
17627 <desc>
17628 Sets parameters of specified base metrics for a set of objects. Returns
17629 an array of <link to="IPerformanceMetric" /> describing the metrics
17630 have been affected.
17631 <note>
17632 @c Null or empty metric name array means all metrics. @c Null or
17633 empty object array means all existing objects. If metric name array
17634 contains a single element and object array contains many, the single
17635 metric name array element is applied to each object array element to
17636 form metric/object pairs.
17637 </note>
17638 </desc>
17639 <param name="metricNames" type="wstring" dir="in" safearray="yes">
17640 <desc>
17641 Metric name filter. Comma-separated list of metrics with wildcard
17642 support.
17643 </desc>
17644 </param>
17645 <param name="objects" type="$unknown" dir="in" safearray="yes">
17646 <desc>
17647 Set of objects to setup metric parameters for.
17648 </desc>
17649 </param>
17650 <param name="period" type="unsigned long" dir="in">
17651 <desc>
17652 Time interval in seconds between two consecutive samples of
17653 performance data.
17654 </desc>
17655 </param>
17656 <param name="count" type="unsigned long" dir="in">
17657 <desc>
17658 Number of samples to retain in performance data history. Older
17659 samples get discarded.
17660 </desc>
17661 </param>
17662 <param name="affectedMetrics" type="IPerformanceMetric" dir="return" safearray="yes">
17663 <desc>
17664 Array of metrics that have been modified by the call to this method.
17665 </desc>
17666 </param>
17667 </method>
17668
17669 <method name="enableMetrics">
17670 <desc>
17671 Turns on collecting specified base metrics. Returns an array of
17672 <link to="IPerformanceMetric" /> describing the metrics have been
17673 affected.
17674 <note>
17675 @c Null or empty metric name array means all metrics. @c Null or
17676 empty object array means all existing objects. If metric name array
17677 contains a single element and object array contains many, the single
17678 metric name array element is applied to each object array element to
17679 form metric/object pairs.
17680 </note>
17681 </desc>
17682 <param name="metricNames" type="wstring" dir="in" safearray="yes">
17683 <desc>
17684 Metric name filter. Comma-separated list of metrics with wildcard
17685 support.
17686 </desc>
17687 </param>
17688 <param name="objects" type="$unknown" dir="in" safearray="yes">
17689 <desc>
17690 Set of objects to enable metrics for.
17691 </desc>
17692 </param>
17693 <param name="affectedMetrics" type="IPerformanceMetric" dir="return" safearray="yes">
17694 <desc>
17695 Array of metrics that have been modified by the call to this method.
17696 </desc>
17697 </param>
17698 </method>
17699
17700 <method name="disableMetrics">
17701 <desc>
17702 Turns off collecting specified base metrics. Returns an array of
17703 <link to="IPerformanceMetric" /> describing the metrics have been
17704 affected.
17705 <note>
17706 @c Null or empty metric name array means all metrics. @c Null or
17707 empty object array means all existing objects. If metric name array
17708 contains a single element and object array contains many, the single
17709 metric name array element is applied to each object array element to
17710 form metric/object pairs.
17711 </note>
17712 </desc>
17713 <param name="metricNames" type="wstring" dir="in" safearray="yes">
17714 <desc>
17715 Metric name filter. Comma-separated list of metrics with wildcard
17716 support.
17717 </desc>
17718 </param>
17719 <param name="objects" type="$unknown" dir="in" safearray="yes">
17720 <desc>
17721 Set of objects to disable metrics for.
17722 </desc>
17723 </param>
17724 <param name="affectedMetrics" type="IPerformanceMetric" dir="return" safearray="yes">
17725 <desc>
17726 Array of metrics that have been modified by the call to this method.
17727 </desc>
17728 </param>
17729 </method>
17730
17731 <method name="queryMetricsData">
17732 <desc>
17733 Queries collected metrics data for a set of objects.
17734
17735 The data itself and related metric information are returned in seven
17736 parallel and one flattened array of arrays. Elements of
17737 <tt>returnMetricNames, returnObjects, returnUnits, returnScales,
17738 returnSequenceNumbers, returnDataIndices and returnDataLengths</tt> with
17739 the same index describe one set of values corresponding to a single
17740 metric.
17741
17742 The <tt>returnData</tt> parameter is a flattened array of arrays. Each
17743 start and length of a sub-array is indicated by
17744 <tt>returnDataIndices</tt> and <tt>returnDataLengths</tt>. The first
17745 value for metric <tt>metricNames[i]</tt> is at
17746 <tt>returnData[returnIndices[i]]</tt>.
17747
17748 <note>
17749 @c Null or empty metric name array means all metrics. @c Null or
17750 empty object array means all existing objects. If metric name array
17751 contains a single element and object array contains many, the single
17752 metric name array element is applied to each object array element to
17753 form metric/object pairs.
17754 </note>
17755 <note>
17756 Data collection continues behind the scenes after call to @c
17757 queryMetricsData. The return data can be seen as the snapshot of the
17758 current state at the time of @c queryMetricsData call. The internally
17759 kept metric values are not cleared by the call. This makes possible
17760 querying different subsets of metrics or aggregates with subsequent
17761 calls. If periodic querying is needed it is highly suggested to query
17762 the values with @c interval*count period to avoid confusion. This way
17763 a completely new set of data values will be provided by each query.
17764 </note>
17765 </desc>
17766 <param name="metricNames" type="wstring" dir="in" safearray="yes">
17767 <desc>
17768 Metric name filter. Comma-separated list of metrics with wildcard
17769 support.
17770 </desc>
17771 </param>
17772 <param name="objects" type="$unknown" dir="in" safearray="yes">
17773 <desc>
17774 Set of objects to query metrics for.
17775 </desc>
17776 </param>
17777 <param name="returnMetricNames" type="wstring" dir="out" safearray="yes">
17778 <desc>
17779 Names of metrics returned in @c returnData.
17780 </desc>
17781 </param>
17782 <param name="returnObjects" type="$unknown" dir="out" safearray="yes">
17783 <desc>
17784 Objects associated with metrics returned in @c returnData.
17785 </desc>
17786 </param>
17787 <param name="returnUnits" type="wstring" dir="out" safearray="yes">
17788 <desc>
17789 Units of measurement for each returned metric.
17790 </desc>
17791 </param>
17792 <param name="returnScales" type="unsigned long" dir="out" safearray="yes">
17793 <desc>
17794 Divisor that should be applied to return values in order to get
17795 floating point values. For example:
17796 <tt>(double)returnData[returnDataIndices[0]+i] / returnScales[0]</tt>
17797 will retrieve the floating point value of i-th sample of the first
17798 metric.
17799 </desc>
17800 </param>
17801 <param name="returnSequenceNumbers" type="unsigned long" dir="out" safearray="yes">
17802 <desc>
17803 Sequence numbers of the first elements of value sequences of
17804 particular metrics returned in @c returnData. For aggregate metrics
17805 it is the sequence number of the sample the aggregate started
17806 calculation from.
17807 </desc>
17808 </param>
17809 <param name="returnDataIndices" type="unsigned long" dir="out" safearray="yes">
17810 <desc>
17811 Indices of the first elements of value sequences of particular
17812 metrics returned in @c returnData.
17813 </desc>
17814 </param>
17815 <param name="returnDataLengths" type="unsigned long" dir="out" safearray="yes">
17816 <desc>
17817 Lengths of value sequences of particular metrics.
17818 </desc>
17819 </param>
17820 <param name="returnData" type="long" dir="return" safearray="yes">
17821 <desc>
17822 Flattened array of all metric data containing sequences of values for
17823 each metric.
17824 </desc>
17825 </param>
17826 </method>
17827
17828 </interface>
17829
17830 <enum
17831 name="NATAliasMode"
17832 uuid="67772168-50d9-11df-9669-7fb714ee4fa1"
17833 >
17834 <desc></desc>
17835 <const name="AliasLog" value="0x1">
17836 <desc></desc>
17837 </const>
17838 <const name="AliasProxyOnly" value="0x02">
17839 <desc></desc>
17840 </const>
17841 <const name="AliasUseSamePorts" value="0x04">
17842 <desc></desc>
17843 </const>
17844 </enum>
17845
17846 <enum
17847 name="NATProtocol"
17848 uuid="e90164be-eb03-11de-94af-fff9b1c1b19f"
17849 >
17850 <desc>Protocol definitions used with NAT port-forwarding rules.</desc>
17851 <const name="UDP" value="0">
17852 <desc>Port-forwarding uses UDP protocol.</desc>
17853 </const>
17854 <const name="TCP" value="1">
17855 <desc>Port-forwarding uses TCP protocol.</desc>
17856 </const>
17857 </enum>
17858
17859 <interface
17860 name="INATEngine" extends="$unknown"
17861 uuid="26451b99-3b2d-4dcb-8e4b-d63654218175"
17862 wsmap="managed"
17863 >
17864 <desc>Interface for managing a NAT engine which is used with a virtual machine. This
17865 allows for changing NAT behavior such as port-forwarding rules. This interface is
17866 used in the <link to="INetworkAdapter::NATEngine" /> attribute.</desc>
17867 <attribute name="network" type="wstring">
17868 <desc>The network attribute of the NAT engine (the same value is used with built-in
17869 DHCP server to fill corresponding fields of DHCP leases).</desc>
17870 </attribute>
17871 <attribute name="hostIP" type="wstring">
17872 <desc>IP of host interface to bind all opened sockets to.
17873 <note>Changing this does not change binding of port forwarding.</note>
17874 </desc>
17875 </attribute>
17876 <attribute name="TFTPPrefix" type="wstring">
17877 <desc>TFTP prefix attribute which is used with the built-in DHCP server to fill
17878 the corresponding fields of DHCP leases.</desc>
17879 </attribute>
17880 <attribute name="TFTPBootFile" type="wstring">
17881 <desc>TFTP boot file attribute which is used with the built-in DHCP server to fill
17882 the corresponding fields of DHCP leases.</desc>
17883 </attribute>
17884 <attribute name="TFTPNextServer" type="wstring">
17885 <desc>TFTP server attribute which is used with the built-in DHCP server to fill
17886 the corresponding fields of DHCP leases.
17887 <note>The preferred form is IPv4 addresses.</note>
17888 </desc>
17889 </attribute>
17890 <attribute name="aliasMode" type="unsigned long">
17891 <desc></desc>
17892 </attribute>
17893 <attribute name="DNSPassDomain" type="boolean">
17894 <desc>Whether the DHCP server should pass the DNS domain used by the host.</desc>
17895 </attribute>
17896 <attribute name="DNSProxy" type="boolean">
17897 <desc>Whether the DHCP server (and the DNS traffic by NAT) should pass the address
17898 of the DNS proxy and process traffic using DNS servers registered on the host.</desc>
17899 </attribute>
17900 <attribute name="DNSUseHostResolver" type="boolean">
17901 <desc>Whether the DHCP server (and the DNS traffic by NAT) should pass the address
17902 of the DNS proxy and process traffic using the host resolver mechanism.</desc>
17903 </attribute>
17904 <attribute name="redirects" type="wstring" readonly="yes" safearray="yes">
17905 <desc>Array of NAT port-forwarding rules in string representation, in the following
17906 format: "name,protocol id,host ip,host port,guest ip,guest port".</desc>
17907 </attribute>
17908 <method name="setNetworkSettings">
17909 <desc>Sets network configuration of the NAT engine.</desc>
17910 <param name="mtu" type="unsigned long" dir="in">
17911 <desc>MTU (maximum transmission unit) of the NAT engine in bytes.</desc>
17912 </param>
17913 <param name="sockSnd" type="unsigned long" dir="in">
17914 <desc>Capacity of the socket send buffer in bytes when creating a new socket.</desc>
17915 </param>
17916 <param name="sockRcv" type="unsigned long" dir="in">
17917 <desc>Capacity of the socket receive buffer in bytes when creating a new socket.</desc>
17918 </param>
17919 <param name="TcpWndSnd" type="unsigned long" dir="in">
17920 <desc>Initial size of the NAT engine's sending TCP window in bytes when
17921 establishing a new TCP connection.</desc>
17922 </param>
17923 <param name="TcpWndRcv" type="unsigned long" dir="in">
17924 <desc>Initial size of the NAT engine's receiving TCP window in bytes when
17925 establishing a new TCP connection.</desc>
17926 </param>
17927 </method>
17928 <method name="getNetworkSettings">
17929 <desc>Returns network configuration of NAT engine. See <link to="#setNetworkSettings" />
17930 for parameter descriptions.</desc>
17931 <param name="mtu" type="unsigned long" dir="out" />
17932 <param name="sockSnd" type="unsigned long" dir="out" />
17933 <param name="sockRcv" type="unsigned long" dir="out" />
17934 <param name="TcpWndSnd" type="unsigned long" dir="out" />
17935 <param name="TcpWndRcv" type="unsigned long" dir="out" />
17936 </method>
17937 <method name="addRedirect">
17938 <desc>Adds a new NAT port-forwarding rule.</desc>
17939 <param name="name" type="wstring" dir="in">
17940 <desc>The name of the rule. An empty name is acceptable, in which case the NAT engine
17941 auto-generates one using the other parameters.</desc>
17942 </param>
17943 <param name="proto" type="NATProtocol" dir="in">
17944 <desc>Protocol handled with the rule.</desc>
17945 </param>
17946 <param name="hostIP" type="wstring" dir="in">
17947 <desc>IP of the host interface to which the rule should apply. An empty ip address is
17948 acceptable, in which case the NAT engine binds the handling socket to any interface.</desc>
17949 </param>
17950 <param name="hostPort" type="unsigned short" dir="in">
17951 <desc>The port number to listen on.</desc>
17952 </param>
17953 <param name="guestIP" type="wstring" dir="in">
17954 <desc>The IP address of the guest which the NAT engine will forward matching packets
17955 to. An empty IP address is acceptable, in which case the NAT engine will forward
17956 packets to the first DHCP lease (x.x.x.15).</desc>
17957 </param>
17958 <param name="guestPort" type="unsigned short" dir="in">
17959 <desc>The port number to forward.</desc>
17960 </param>
17961 </method>
17962 <method name="removeRedirect">
17963 <desc>Removes a port-forwarding rule that was previously registered.</desc>
17964 <param name="name" type="wstring" dir="in">
17965 <desc>The name of the rule to delete.</desc>
17966 </param>
17967 </method>
17968 </interface>
17969
17970 <!--
17971 // IExtPackManager
17972 /////////////////////////////////////////////////////////////////////////
17973 -->
17974
17975 <interface
17976 name="IExtPackPlugIn" extends="$unknown"
17977 uuid="58000040-e718-4746-bbce-4b86d96da461"
17978 wsmap="suppress"
17979 >
17980 <desc>
17981 Interface for keeping information about a plug-in that ships with an
17982 extension pack.
17983 </desc>
17984 <attribute name="name" type="wstring" readonly="yes">
17985 <desc>The plug-in name.</desc>
17986 </attribute>
17987 <attribute name="description" type="wstring" readonly="yes">
17988 <desc>The plug-in description.</desc>
17989 </attribute>
17990 <attribute name="frontend" type="wstring" readonly="yes">
17991 <desc>
17992 The name of the frontend or component name this plug-in plugs into.
17993 </desc>
17994 </attribute>
17995 <attribute name="modulePath" type="wstring" readonly="yes">
17996 <desc> The module path. </desc>
17997 </attribute>
17998 </interface>
17999
18000 <interface
18001 name="IExtPackBase" extends="$unknown"
18002 uuid="f79b75d8-2890-4f34-ffff-ffffa144e82c"
18003 wsmap="suppress"
18004 >
18005 <desc>
18006 Interface for querying information about an extension pack as well as
18007 accessing COM objects within it.
18008 </desc>
18009 <attribute name="name" type="wstring" readonly="yes">
18010 <desc>The extension pack name. This is unique.</desc>
18011 </attribute>
18012 <attribute name="description" type="wstring" readonly="yes">
18013 <desc>The extension pack description.</desc>
18014 </attribute>
18015 <attribute name="version" type="wstring" readonly="yes">
18016 <desc>
18017 The extension pack version string. This is restricted to the dotted
18018 version number and optionally a build indicator. No tree revision or
18019 tag will be included in the string as those things are available as
18020 separate properties. An optional publisher tag may be present like for
18021 <link to="IVirtualBox::version"/>.
18022
18023 Examples: "1.2.3", "1.2.3_BETA1" and "1.2.3_RC2".
18024 </desc>
18025 </attribute>
18026 <attribute name="revision" type="unsigned long" readonly="yes">
18027 <desc>The extension pack internal revision number.</desc>
18028 </attribute>
18029 <attribute name="edition" type="wstring" readonly="yes">
18030 <desc>
18031 Edition indicator. This is usually empty.
18032
18033 Can for instance be used to help distinguishing between two editions
18034 of the same extension pack where only the license, service contract or
18035 something differs.
18036 </desc>
18037 </attribute>
18038 <attribute name="VRDEModule" type="wstring" readonly="yes">
18039 <desc>The name of the VRDE module if the extension pack sports one.</desc>
18040 </attribute>
18041 <attribute name="plugIns" type="IExtPackPlugIn" safearray="yes" readonly="yes">
18042 <desc>Plug-ins provided by this extension pack.</desc>
18043 </attribute>
18044 <attribute name="usable" type="boolean" readonly="yes">
18045 <desc>
18046 Indicates whether the extension pack is usable or not.
18047
18048 There are a number of reasons why an extension pack might be unusable,
18049 typical examples would be broken installation/file or that it is
18050 incompatible with the current VirtualBox version.
18051 </desc>
18052 </attribute>
18053 <attribute name="whyUnusable" type="wstring" readonly="yes">
18054 <desc>
18055 String indicating why the extension pack is not usable. This is an
18056 empty string if usable and always a non-empty string if not usable.
18057 </desc>
18058 </attribute>
18059 <attribute name="showLicense" type="boolean" readonly="yes">
18060 <desc>Whether to show the license before installation</desc>
18061 </attribute>
18062 <attribute name="license" type="wstring" readonly="yes">
18063 <desc>
18064 The default HTML license text for the extension pack. Same as
18065 calling <link to="#queryLicense">queryLicense</link> with
18066 preferredLocale and preferredLanguage as empty strings and format set
18067 to html.
18068 </desc>
18069 </attribute>
18070
18071 <method name="queryLicense">
18072 <desc>
18073 Full feature version of the license attribute.
18074 </desc>
18075 <param name="preferredLocale" type="wstring" dir="in">
18076 <desc>
18077 The preferred license locale. Pass an empty string to get the default
18078 license.
18079 </desc>
18080 </param>
18081 <param name="preferredLanguage" type="wstring" dir="in">
18082 <desc>
18083 The preferred license language. Pass an empty string to get the
18084 default language for the locale.
18085 </desc>
18086 </param>
18087 <param name="format" type="wstring" dir="in">
18088 <desc>
18089 The license format: html, rtf or txt. If a license is present there
18090 will always be an HTML of it, the rich text format (RTF) and plain
18091 text (txt) versions are optional. If
18092 </desc>
18093 </param>
18094 <param name="licenseText" type="wstring" dir="return">
18095 <desc>The license text.</desc>
18096 </param>
18097 </method>
18098
18099 </interface>
18100
18101 <interface
18102 name="IExtPack" extends="IExtPackBase"
18103 uuid="431685da-3618-4ebc-b038-833ba829b4b2"
18104 wsmap="suppress"
18105 >
18106 <desc>
18107 Interface for querying information about an extension pack as well as
18108 accessing COM objects within it.
18109 </desc>
18110 <method name="queryObject">
18111 <desc>
18112 Queries the IUnknown interface to an object in the extension pack
18113 main module. This allows plug-ins and others to talk directly to an
18114 extension pack.
18115 </desc>
18116 <param name="objUuid" type="wstring" dir="in">
18117 <desc>The object ID. What exactly this is </desc>
18118 </param>
18119 <param name="returnInterface" type="$unknown" dir="return">
18120 <desc>The queried interface.</desc>
18121 </param>
18122 </method>
18123 </interface>
18124
18125 <interface
18126 name="IExtPackFile" extends="IExtPackBase"
18127 uuid="b6b49f55-efcc-4f08-b486-56e8d8afb10b"
18128 wsmap="suppress"
18129 >
18130 <desc>
18131 Extension pack file (aka tarball, .vbox-extpack) representation returned
18132 by <link to="IExtPackManager::openExtPackFile"/>. This provides the base
18133 extension pack information with the addition of the file name.
18134 </desc>
18135 <attribute name="filePath" type="wstring" readonly="yes">
18136 <desc>
18137 The path to the extension pack file.
18138 </desc>
18139 </attribute>
18140
18141 <method name="install">
18142 <desc>
18143 Install the extension pack.
18144 </desc>
18145 <param name="replace" type="boolean" dir="in">
18146 <desc>
18147 Set this to automatically uninstall any existing extension pack with
18148 the same name as the one being installed.
18149 </desc>
18150 </param>
18151 <param name="displayInfo" type="wstring" dir="in">
18152 <desc>
18153 Platform specific display information. Reserved for future hacks.
18154 </desc>
18155 </param>
18156 <param name="progess" type="IProgress" dir="return">
18157 <desc>
18158 Progress object for the operation.
18159 </desc>
18160 </param>
18161 </method>
18162 </interface>
18163
18164 <interface
18165 name="IExtPackManager" extends="$unknown"
18166 uuid="3295e6ce-b051-47b2-9514-2c588bfe7554"
18167 wsmap="suppress"
18168 >
18169 <desc>
18170 Interface for managing VirtualBox Extension Packs.
18171
18172 TODO: Describe extension packs, how they are managed and how to create
18173 one.
18174 </desc>
18175
18176 <attribute name="installedExtPacks" type="IExtPack" safearray="yes" readonly="yes">
18177 <desc>
18178 List of the installed extension packs.
18179 </desc>
18180 </attribute>
18181
18182 <method name="find">
18183 <desc>
18184 Returns the extension pack with the specified name if found.
18185
18186 <result name="VBOX_E_OBJECT_NOT_FOUND">
18187 No extension pack matching @a name was found.
18188 </result>
18189 </desc>
18190 <param name="name" type="wstring" dir="in">
18191 <desc>The name of the extension pack to locate.</desc>
18192 </param>
18193 <param name="returnData" type="IExtPack" dir="return">
18194 <desc>The extension pack if found.</desc>
18195 </param>
18196 </method>
18197
18198 <method name="openExtPackFile">
18199 <desc>
18200 Attempts to open an extension pack file in preparation for
18201 installation.
18202 </desc>
18203 <param name="path" type="wstring" dir="in">
18204 <desc>The path of the extension pack tarball. This can optionally be
18205 followed by a "::SHA-256=hex-digit" of the tarball. </desc>
18206 </param>
18207 <param name="file" type="IExtPackFile" dir="return">
18208 <desc>The interface of the extension pack file object.</desc>
18209 </param>
18210 </method>
18211
18212 <method name="uninstall">
18213 <desc>Uninstalls an extension pack, removing all related files.</desc>
18214 <param name="name" type="wstring" dir="in">
18215 <desc>The name of the extension pack to uninstall.</desc>
18216 </param>
18217 <param name="forcedRemoval" type="boolean" dir="in">
18218 <desc>
18219 Forced removal of the extension pack. This means that the uninstall
18220 hook will not be called.
18221 </desc>
18222 </param>
18223 <param name="displayInfo" type="wstring" dir="in">
18224 <desc>
18225 Platform specific display information. Reserved for future hacks.
18226 </desc>
18227 </param>
18228 <param name="progess" type="IProgress" dir="return">
18229 <desc>
18230 Progress object for the operation.
18231 </desc>
18232 </param>
18233 </method>
18234
18235 <method name="cleanup">
18236 <desc>Cleans up failed installs and uninstalls</desc>
18237 </method>
18238
18239 <method name="queryAllPlugInsForFrontend">
18240 <desc>
18241 Gets the path to all the plug-in modules for a given frontend.
18242
18243 This is a convenience method that is intended to simplify the plug-in
18244 loading process for a frontend.
18245 </desc>
18246 <param name="frontendName" type="wstring" dir="in">
18247 <desc>The name of the frontend or component.</desc>
18248 </param>
18249 <param name="plugInModules" type="wstring" dir="return" safearray="yes">
18250 <desc>Array containing the plug-in modules (full paths).</desc>
18251 </param>
18252 </method>
18253
18254 <method name="isExtPackUsable">
18255 <desc>Check if the given extension pack is loaded and usable.</desc>
18256 <param name="name" type="wstring" dir="in">
18257 <desc>The name of the extension pack to check for.</desc>
18258 </param>
18259 <param name="usable" type="boolean" dir="return">
18260 <desc>Is the given extension pack loaded and usable.</desc>
18261 </param>
18262 </method>
18263
18264 </interface>
18265
18266 <!--
18267 // BandwidthGroupType
18268 /////////////////////////////////////////////////////////////////////////
18269 -->
18270 <enum
18271 name="BandwidthGroupType"
18272 uuid="1d92b67d-dc69-4be9-ad4c-93a01e1e0c8e">
18273
18274 <desc>
18275 Type of a bandwidth control group.
18276 </desc>
18277
18278 <const name="Null" value="0">
18279 <desc>
18280 Null type, must be first.
18281 </desc>
18282 </const>
18283
18284 <const name="Disk" value="1">
18285 <desc>
18286 The bandwidth group controls disk I/O.
18287 </desc>
18288 </const>
18289
18290 <const name="Network" value="2">
18291 <desc>
18292 The bandwidth group controls network I/O.
18293 </desc>
18294 </const>
18295
18296 </enum>
18297
18298 <!--
18299 // IBandwidthGroup
18300 /////////////////////////////////////////////////////////////////////////
18301 -->
18302 <interface
18303 name="IBandwidthGroup" extends="$unknown"
18304 uuid="badea2d7-0261-4146-89f0-6a57cc34833d"
18305 wsmap="managed"
18306 >
18307 <desc>Represents one bandwidth group.</desc>
18308
18309 <attribute name="name" type="wstring" readonly="yes">
18310 <desc>Name of the group.</desc>
18311 </attribute>
18312
18313 <attribute name="type" type="BandwidthGroupType" readonly="yes">
18314 <desc>Type of the group.</desc>
18315 </attribute>
18316
18317 <attribute name="reference" type="unsigned long" readonly="yes">
18318 <desc>How many devices/medium attachements use this group.</desc>
18319 </attribute>
18320
18321 <attribute name="maxBytesPerSec" type="long long">
18322 <desc>The maximum number of bytes which can be transfered by all
18323 entities attached to this group during one second.</desc>
18324 </attribute>
18325
18326 </interface>
18327
18328 <!--
18329 // IBandwidthControl
18330 /////////////////////////////////////////////////////////////////////////
18331 -->
18332 <interface
18333 name="IBandwidthControl" extends="$unknown"
18334 uuid="e2eb3930-d2f4-4f87-be17-0707e30f019f"
18335 wsmap="managed"
18336 >
18337 <desc>
18338 Controls the bandwidth groups of one machine used to cap I/O done by a VM.
18339 This includes network and disk I/O.
18340 </desc>
18341
18342 <attribute name="numGroups" type="unsigned long" readonly="yes">
18343 <desc>
18344 The current number of existing bandwidth groups managed.
18345 </desc>
18346 </attribute>
18347
18348 <method name="createBandwidthGroup">
18349 <desc>
18350 Creates a new bandwidth group.
18351 </desc>
18352
18353 <param name="name" type="wstring" dir="in">
18354 <desc>Name of the bandwidth group.</desc>
18355 </param>
18356 <param name="type" type="BandwidthGroupType" dir="in">
18357 <desc>The type of the bandwidth group (network or disk).</desc>
18358 </param>
18359 <param name="maxBytesPerSec" type="long long" dir="in">
18360 <desc>The maximum number of bytes which can be transfered by all
18361 entities attached to this group during one second.</desc>
18362 </param>
18363 </method>
18364
18365 <method name="deleteBandwidthGroup">
18366 <desc>
18367 Deletes a new bandwidth group.
18368 </desc>
18369
18370 <param name="name" type="wstring" dir="in">
18371 <desc>Name of the bandwidth group to delete.</desc>
18372 </param>
18373 </method>
18374
18375 <method name="getBandwidthGroup" const="yes">
18376 <desc>
18377 Get a bandwidth group by name.
18378 </desc>
18379
18380 <param name="name" type="wstring" dir="in">
18381 <desc>Name of the bandwidth group to get.</desc>
18382 </param>
18383 <param name="bandwidthGroup" type="IBandwidthGroup" dir="return">
18384 <desc>Where to store the bandwidth group on success.</desc>
18385 </param>
18386 </method>
18387
18388 <method name="getAllBandwidthGroups" const="yes">
18389 <desc>
18390 Get all managed bandwidth groups.
18391 </desc>
18392
18393 <param name="bandwidthGroups" type="IBandwidthGroup" dir="return" safearray="yes">
18394 <desc>The array of managed bandwidth groups.</desc>
18395 </param>
18396 </method>
18397 </interface>
18398
18399 <!--
18400 // IVirtualBoxClient
18401 /////////////////////////////////////////////////////////////////////////
18402 -->
18403
18404 <interface
18405 name="IVirtualBoxClient" extends="$unknown"
18406 uuid="d191281f-b0cb-4d83-a8fa-0d9fd6ba234c"
18407 wsmap="suppress"
18408 >
18409 <desc>
18410 Convenience interface for client applications. Treat this as a
18411 singleton, i.e. never create more than one instance of this interface.
18412
18413 At the moment only available for clients of the local API (not usable
18414 via the webservice). Once the session logic is redesigned this might
18415 change.
18416 </desc>
18417
18418 <attribute name="virtualBox" type="IVirtualBox" readonly="yes">
18419 <desc>
18420 Reference to the server-side API root object.
18421 </desc>
18422 </attribute>
18423
18424 <attribute name="session" type="ISession" readonly="yes">
18425 <desc>
18426 Create a new session object and return the reference to it.
18427 </desc>
18428 </attribute>
18429
18430 <attribute name="eventSource" type="IEventSource" readonly="yes">
18431 <desc>
18432 Event source for VirtualBoxClient events.
18433 </desc>
18434 </attribute>
18435
18436 <method name="checkMachineError">
18437 <desc>
18438 Perform error checking before using an <link to="IMachine"/> object.
18439 Generally useful before starting a VM and all other uses. If anything
18440 is not as it should be then this method will return an appropriate
18441 error.
18442 </desc>
18443
18444 <param name="machine" type="IMachine" dir="in">
18445 <desc>The machine object to check.</desc>
18446 </param>
18447 </method>
18448 </interface>
18449
18450 <!--
18451 // Events
18452 /////////////////////////////////////////////////////////////////////////
18453 -->
18454 <enum
18455 name="VBoxEventType"
18456 uuid="0d67e79e-b7b1-4919-aab3-b36866075515"
18457 >
18458
18459 <desc>
18460 Type of an event.
18461 See <link to="IEvent" /> for an introduction to VirtualBox event handling.
18462 </desc>
18463
18464 <const name="Invalid" value="0">
18465 <desc>
18466 Invalid event, must be first.
18467 </desc>
18468 </const>
18469
18470 <const name="Any" value="1">
18471 <desc>
18472 Wildcard for all events.
18473 Events of this type are never delivered, and only used in
18474 <link to="IEventSource::registerListener"/> call to simplify registration.
18475 </desc>
18476 </const>
18477
18478 <const name="Vetoable" value="2">
18479 <desc>
18480 Wildcard for all vetoable events. Events of this type are never delivered, and only
18481 used in <link to="IEventSource::registerListener"/> call to simplify registration.
18482 </desc>
18483 </const>
18484
18485 <const name="MachineEvent" value="3">
18486 <desc>
18487 Wildcard for all machine events. Events of this type are never delivered, and only used in
18488 <link to="IEventSource::registerListener"/> call to simplify registration.
18489 </desc>
18490 </const>
18491
18492 <const name="SnapshotEvent" value="4">
18493 <desc>
18494 Wildcard for all snapshot events. Events of this type are never delivered, and only used in
18495 <link to="IEventSource::registerListener"/> call to simplify registration.
18496 </desc>
18497 </const>
18498
18499 <const name="InputEvent" value="5">
18500 <desc>
18501 Wildcard for all input device (keyboard, mouse) events.
18502 Events of this type are never delivered, and only used in
18503 <link to="IEventSource::registerListener"/> call to simplify registration.
18504 </desc>
18505 </const>
18506
18507 <const name="LastWildcard" value="31">
18508 <desc>
18509 Last wildcard.
18510 </desc>
18511 </const>
18512
18513 <const name="OnMachineStateChanged" value="32">
18514 <desc>
18515 See <link to="IMachineStateChangedEvent">IMachineStateChangedEvent</link>.
18516 </desc>
18517 </const>
18518 <const name="OnMachineDataChanged" value="33">
18519 <desc>
18520 See <link to="IMachineDataChangedEvent">IMachineDataChangedEvent</link>.
18521 </desc>
18522 </const>
18523 <const name="OnExtraDataChanged" value="34">
18524 <desc>
18525 See <link to="IExtraDataChangedEvent">IExtraDataChangedEvent</link>.
18526 </desc>
18527 </const>
18528 <const name="OnExtraDataCanChange" value="35">
18529 <desc>
18530 See <link to="IExtraDataCanChangeEvent">IExtraDataCanChangeEvent</link>.
18531 </desc>
18532 </const>
18533 <const name="OnMediumRegistered" value="36">
18534 <desc>
18535 See <link to="IMediumRegisteredEvent">IMediumRegisteredEvent</link>.
18536 </desc>
18537 </const>
18538 <const name="OnMachineRegistered" value="37">
18539 <desc>
18540 See <link to="IMachineRegisteredEvent">IMachineRegisteredEvent</link>.
18541 </desc>
18542 </const>
18543 <const name="OnSessionStateChanged" value="38">
18544 <desc>
18545 See <link to="ISessionStateChangedEvent">ISessionStateChangedEvent</link>.
18546 </desc>
18547 </const>
18548 <const name="OnSnapshotTaken" value="39">
18549 <desc>
18550 See <link to="ISnapshotTakenEvent">ISnapshotTakenEvent</link>.
18551 </desc>
18552 </const>
18553 <const name="OnSnapshotDeleted" value="40">
18554 <desc>
18555 See <link to="ISnapshotDeletedEvent">ISnapshotDeletedEvent</link>.
18556 </desc>
18557 </const>
18558 <const name="OnSnapshotChanged" value="41">
18559 <desc>
18560 See <link to="ISnapshotChangedEvent">ISnapshotChangedEvent</link>.
18561 </desc>
18562 </const>
18563 <const name="OnGuestPropertyChanged" value="42">
18564 <desc>
18565 See <link to="IGuestPropertyChangedEvent">IGuestPropertyChangedEvent</link>.
18566 </desc>
18567 </const>
18568 <!-- Console events -->
18569 <const name="OnMousePointerShapeChanged" value="43">
18570 <desc>
18571 See <link to="IMousePointerShapeChangedEvent">IMousePointerShapeChangedEvent</link>.
18572 </desc>
18573 </const>
18574 <const name="OnMouseCapabilityChanged" value="44">
18575 <desc>
18576 See <link to="IMouseCapabilityChangedEvent">IMouseCapabilityChangedEvent</link>.
18577 </desc>
18578 </const>
18579 <const name="OnKeyboardLedsChanged" value="45">
18580 <desc>
18581 See <link to="IKeyboardLedsChangedEvent">IKeyboardLedsChangedEvent</link>.
18582 </desc>
18583 </const>
18584 <const name="OnStateChanged" value="46">
18585 <desc>
18586 See <link to="IStateChangedEvent">IStateChangedEvent</link>.
18587 </desc>
18588 </const>
18589 <const name="OnAdditionsStateChanged" value="47">
18590 <desc>
18591 See <link to="IAdditionsStateChangedEvent">IAdditionsStateChangedEvent</link>.
18592 </desc>
18593 </const>
18594 <const name="OnNetworkAdapterChanged" value="48">
18595 <desc>
18596 See <link to="INetworkAdapterChangedEvent">INetworkAdapterChangedEvent</link>.
18597 </desc>
18598 </const>
18599 <const name="OnSerialPortChanged" value="49">
18600 <desc>
18601 See <link to="ISerialPortChangedEvent">ISerialPortChangedEvent</link>.
18602 </desc>
18603 </const>
18604 <const name="OnParallelPortChanged" value="50">
18605 <desc>
18606 See <link to="IParallelPortChangedEvent">IParallelPortChangedEvent</link>.
18607 </desc>
18608 </const>
18609 <const name="OnStorageControllerChanged" value="51">
18610 <desc>
18611 See <link to="IStorageControllerChangedEvent">IStorageControllerChangedEvent</link>.
18612 </desc>
18613 </const>
18614 <const name="OnMediumChanged" value="52">
18615 <desc>
18616 See <link to="IMediumChangedEvent">IMediumChangedEvent</link>.
18617 </desc>
18618 </const>
18619 <const name="OnVRDEServerChanged" value="53">
18620 <desc>
18621 See <link to="IVRDEServerChangedEvent">IVRDEServerChangedEvent</link>.
18622 </desc>
18623 </const>
18624 <const name="OnUSBControllerChanged" value="54">
18625 <desc>
18626 See <link to="IUSBControllerChangedEvent">IUSBControllerChangedEvent</link>.
18627 </desc>
18628 </const>
18629 <const name="OnUSBDeviceStateChanged" value="55">
18630 <desc>
18631 See <link to="IUSBDeviceStateChangedEvent">IUSBDeviceStateChangedEvent</link>.
18632 </desc>
18633 </const>
18634 <const name="OnSharedFolderChanged" value="56">
18635 <desc>
18636 See <link to="ISharedFolderChangedEvent">ISharedFolderChangedEvent</link>.
18637 </desc>
18638 </const>
18639 <const name="OnRuntimeError" value="57">
18640 <desc>
18641 See <link to="IRuntimeErrorEvent">IRuntimeErrorEvent</link>.
18642 </desc>
18643 </const>
18644 <const name="OnCanShowWindow" value="58">
18645 <desc>
18646 See <link to="ICanShowWindowEvent">ICanShowWindowEvent</link>.
18647 </desc>
18648 </const>
18649 <const name="OnShowWindow" value="59">
18650 <desc>
18651 See <link to="IShowWindowEvent">IShowWindowEvent</link>.
18652 </desc>
18653 </const>
18654 <const name="OnCPUChanged" value="60">
18655 <desc>
18656 See <link to="ICPUChangedEvent">ICPUChangedEvent</link>.
18657 </desc>
18658 </const>
18659 <const name="OnVRDEServerInfoChanged" value="61">
18660 <desc>
18661 See <link to="IVRDEServerInfoChangedEvent">IVRDEServerInfoChangedEvent</link>.
18662 </desc>
18663 </const>
18664 <const name="OnEventSourceChanged" value="62">
18665 <desc>
18666 See <link to="IEventSourceChangedEvent">IEventSourceChangedEvent</link>.
18667 </desc>
18668 </const>
18669 <const name="OnCPUExecutionCapChanged" value="63">
18670 <desc>
18671 See <link to="ICPUExecutionCapChangedEvent">ICPUExecutionCapChangedEvent</link>.
18672 </desc>
18673 </const>
18674 <const name="OnGuestKeyboard" value="64">
18675 <desc>
18676 See <link to="IGuestKeyboardEvent">IGuestKeyboardEvent</link>.
18677 </desc>
18678 </const>
18679 <const name="OnGuestMouse" value="65">
18680 <desc>
18681 See <link to="IGuestMouseEvent">IGuestMouseEvent</link>.
18682 </desc>
18683 </const>
18684 <const name="OnNATRedirect" value="66">
18685 <desc>
18686 See <link to="INATRedirectEvent">INATRedirectEvent</link>.
18687 </desc>
18688 </const>
18689 <const name="OnHostPCIDevicePlug" value="67">
18690 <desc>
18691 See <link to="IHostPCIDevicePlugEvent">IHostPCIDevicePlugEvent</link>.
18692 </desc>
18693 </const>
18694 <const name="OnVBoxSVCAvailabilityChanged" value="68">
18695 <desc>
18696 See <link to="IVBoxSVCAvailabilityChangedEvent">IVBoxSVCAvailablityChangedEvent</link>.
18697 </desc>
18698 </const>
18699 <const name="OnBandwidthGroupChanged" value="69">
18700 <desc>
18701 See <link to="IBandwidthGroupChangedEvent">IBandwidthGroupChangedEvent</link>.
18702 </desc>
18703 </const>
18704 <const name="OnGuestMonitorChanged" value="70">
18705 <desc>
18706 See <link to="IGuestMonitorChangedEvent">IGuestMonitorChangedEvent</link>.
18707 </desc>
18708 </const>
18709 <const name="OnStorageDeviceChanged" value="71">
18710 <desc>
18711 See <link to="IStorageDeviceChangedEvent">IStorageDeviceChangedEvent</link>.
18712 </desc>
18713 </const>
18714 <const name="OnClipboardModeChanged" value="72">
18715 <desc>
18716 See <link to="IClipboardModeChangedEvent">IClipboardModeChangedEvent</link>.
18717 </desc>
18718 </const>
18719 <const name="OnDragAndDropModeChanged" value="73">
18720 <desc>
18721 See <link to="IDragAndDropModeChangedEvent">IDragAndDropModeChangedEvent</link>.
18722 </desc>
18723 </const>
18724
18725 <!-- Last event marker -->
18726 <const name="Last" value="74">
18727 <desc>
18728 Must be last event, used for iterations and structures relying on numerical event values.
18729 </desc>
18730 </const>
18731
18732 </enum>
18733
18734 <interface
18735 name="IEventSource" extends="$unknown"
18736 uuid="9b6e1aee-35f3-4f4d-b5bb-ed0ecefd8538"
18737 wsmap="managed"
18738 >
18739 <desc>
18740 Event source. Generally, any object which could generate events can be an event source,
18741 or aggregate one. To simplify using one-way protocols such as webservices running on top of HTTP(S),
18742 an event source can work with listeners in either active or passive mode. In active mode it is up to
18743 the IEventSource implementation to call <link to="IEventListener::handleEvent" />, in passive mode the
18744 event source keeps track of pending events for each listener and returns available events on demand.
18745
18746 See <link to="IEvent" /> for an introduction to VirtualBox event handling.
18747 </desc>
18748
18749 <method name="createListener">
18750 <desc>
18751 Creates a new listener object, useful for passive mode.
18752 </desc>
18753 <param name="listener" type="IEventListener" dir="return"/>
18754 </method>
18755
18756 <method name="createAggregator">
18757 <desc>
18758 Creates an aggregator event source, collecting events from multiple sources.
18759 This way a single listener can listen for events coming from multiple sources,
18760 using a single blocking <link to="#getEvent"/> on the returned aggregator.
18761 </desc>
18762 <param name="subordinates" type="IEventSource" dir="in" safearray="yes">
18763 <desc>
18764 Subordinate event source this one aggregatres.
18765 </desc>
18766 </param>
18767 <param name="result" type="IEventSource" dir="return">
18768 <desc>
18769 Event source aggregating passed sources.
18770 </desc>
18771 </param>
18772 </method>
18773
18774 <method name="registerListener">
18775 <desc>
18776 Register an event listener.
18777
18778 <note>
18779 To avoid system overload, the VirtualBox server process checks if passive event
18780 listeners call <link to="IEventSource::getEvent"/> frequently enough. In the
18781 current implementation, if more than 500 pending events are detected for a passive
18782 event listener, it is forcefully unregistered by the system, and further
18783 <link to="#getEvent" /> calls will return @c VBOX_E_OBJECT_NOT_FOUND.
18784 </note>
18785 </desc>
18786 <param name="listener" type="IEventListener" dir="in">
18787 <desc>Listener to register.</desc>
18788 </param>
18789 <param name="interesting" type="VBoxEventType" dir="in" safearray="yes">
18790 <desc>
18791 Event types listener is interested in. One can use wildcards like -
18792 <link to="VBoxEventType_Any"/> to specify wildcards, matching more
18793 than one event.
18794 </desc>
18795 </param>
18796 <param name="active" type="boolean" dir="in">
18797 <desc>
18798 Which mode this listener is operating in.
18799 In active mode, <link to="IEventListener::handleEvent" /> is called directly.
18800 In passive mode, an internal event queue is created for this this IEventListener.
18801 For each event coming in, it is added to queues for all interested registered passive
18802 listeners. It is then up to the external code to call the listener's
18803 <link to="IEventListener::handleEvent" /> method. When done with an event, the
18804 external code must call <link to="#eventProcessed" />.
18805 </desc>
18806 </param>
18807 </method>
18808
18809 <method name="unregisterListener">
18810 <desc>
18811 Unregister an event listener. If listener is passive, and some waitable events are still
18812 in queue they are marked as processed automatically.
18813 </desc>
18814 <param name="listener" type="IEventListener" dir="in">
18815 <desc>Listener to unregister.</desc>
18816 </param>
18817 </method>
18818
18819 <method name="fireEvent">
18820 <desc>
18821 Fire an event for this source.
18822 </desc>
18823 <param name="event" type="IEvent" dir="in">
18824 <desc>Event to deliver.</desc>
18825 </param>
18826 <param name="timeout" type="long" dir="in">
18827 <desc>
18828 Maximum time to wait for event processing (if event is waitable), in ms;
18829 0 = no wait, -1 = indefinite wait.
18830 </desc>
18831 </param>
18832 <param name="result" type="boolean" dir="return">
18833 <desc>true if an event was delivered to all targets, or is non-waitable.</desc>
18834 </param>
18835 </method>
18836
18837 <method name="getEvent">
18838 <desc>
18839 Get events from this peer's event queue (for passive mode). Calling this method
18840 regularly is required for passive event listeners to avoid system overload;
18841 see <link to="IEventSource::registerListener" /> for details.
18842
18843 <result name="VBOX_E_OBJECT_NOT_FOUND">
18844 Listener is not registered, or autounregistered.
18845 </result>
18846 </desc>
18847 <param name="listener" type="IEventListener" dir="in">
18848 <desc>Which listener to get data for.</desc>
18849 </param>
18850 <param name="timeout" type="long" dir="in">
18851 <desc>
18852 Maximum time to wait for events, in ms;
18853 0 = no wait, -1 = indefinite wait.
18854 </desc>
18855 </param>
18856 <param name="event" type="IEvent" dir="return">
18857 <desc>Event retrieved, or null if none available.</desc>
18858 </param>
18859 </method>
18860
18861 <method name="eventProcessed">
18862 <desc>
18863 Must be called for waitable events after a particular listener finished its
18864 event processing. When all listeners of a particular event have called this
18865 method, the system will then call <link to="IEvent::setProcessed" />.
18866 </desc>
18867 <param name="listener" type="IEventListener" dir="in">
18868 <desc>Which listener processed event.</desc>
18869 </param>
18870 <param name="event" type="IEvent" dir="in">
18871 <desc>Which event.</desc>
18872 </param>
18873 </method>
18874
18875 </interface>
18876
18877 <interface
18878 name="IEventListener" extends="$unknown"
18879 uuid="67099191-32e7-4f6c-85ee-422304c71b90"
18880 wsmap="managed"
18881 >
18882 <desc>
18883 Event listener. An event listener can work in either active or passive mode, depending on the way
18884 it was registered.
18885 See <link to="IEvent" /> for an introduction to VirtualBox event handling.
18886 </desc>
18887
18888 <method name="handleEvent">
18889 <desc>
18890 Handle event callback for active listeners. It is not called for
18891 passive listeners. After calling <link to="#handleEvent"/> on all active listeners
18892 and having received acknowledgement from all passive listeners via
18893 <link to="IEventSource::eventProcessed"/>, the event is marked as
18894 processed and <link to="IEvent::waitProcessed"/> will return
18895 immediately.
18896 </desc>
18897 <param name="event" type="IEvent" dir="in">
18898 <desc>Event available.</desc>
18899 </param>
18900 </method>
18901
18902 </interface>
18903
18904 <interface
18905 name="IEvent" extends="$unknown"
18906 uuid="0ca2adba-8f30-401b-a8cd-fe31dbe839c0"
18907 wsmap="managed"
18908 >
18909 <desc>
18910 Abstract parent interface for VirtualBox events. Actual events will typically implement
18911 a more specific interface which derives from this (see below).
18912
18913 <b>Introduction to VirtualBox events</b>
18914
18915 Generally speaking, an event (represented by this interface) signals that something
18916 happened, while an event listener (see <link to="IEventListener" />) represents an
18917 entity that is interested in certain events. In order for this to work with
18918 unidirectional protocols (i.e. web services), the concepts of passive and active
18919 listener are used.
18920
18921 Event consumers can register themselves as listeners, providing an array of
18922 events they are interested in (see <link to="IEventSource::registerListener" />).
18923 When an event triggers, the listener is notified about the event. The exact
18924 mechanism of the notification depends on whether the listener was registered as
18925 an active or passive listener:
18926
18927 <ul>
18928 <li>An active listener is very similar to a callback: it is a function invoked
18929 by the API. As opposed to the callbacks that were used in the API before
18930 VirtualBox 4.0 however, events are now objects with an interface hierarchy.
18931 </li>
18932
18933 <li>Passive listeners are somewhat trickier to implement, but do not require
18934 a client function to be callable, which is not an option with scripting
18935 languages or web service clients. Internally the <link to="IEventSource" />
18936 implementation maintains an event queue for each passive listener, and
18937 newly arrived events are put in this queue. When the listener calls
18938 <link to="IEventSource::getEvent"/>, first element from its internal event
18939 queue is returned. When the client completes processing of an event,
18940 the <link to="IEventSource::eventProcessed" /> function must be called,
18941 acknowledging that the event was processed. It supports implementing
18942 waitable events. On passive listener unregistration, all events from its
18943 queue are auto-acknowledged.
18944 </li>
18945 </ul>
18946
18947 Waitable events are useful in situations where the event generator wants to track
18948 delivery or a party wants to wait until all listeners have completed the event. A
18949 typical example would be a vetoable event (see <link to="IVetoEvent" />) where a
18950 listeners might veto a certain action, and thus the event producer has to make
18951 sure that all listeners have processed the event and not vetoed before taking
18952 the action.
18953
18954 A given event may have both passive and active listeners at the same time.
18955
18956 <b>Using events</b>
18957
18958 Any VirtualBox object capable of producing externally visible events provides an
18959 @c eventSource read-only attribute, which is of the type <link to="IEventSource" />.
18960 This event source object is notified by VirtualBox once something has happened, so
18961 consumers may register event listeners with this event source. To register a listener,
18962 an object implementing the <link to="IEventListener" /> interface must be provided.
18963 For active listeners, such an object is typically created by the consumer, while for
18964 passive listeners <link to="IEventSource::createListener" /> should be used. Please
18965 note that a listener created with <link to="IEventSource::createListener"/> must not be used as an active listener.
18966
18967 Once created, the listener must be registered to listen for the desired events
18968 (see <link to="IEventSource::registerListener" />), providing an array of
18969 <link to="VBoxEventType" /> enums. Those elements can either be the individual
18970 event IDs or wildcards matching multiple event IDs.
18971
18972 After registration, the callback's <link to="IEventListener::handleEvent" /> method is
18973 called automatically when the event is triggered, while passive listeners have to call
18974 <link to="IEventSource::getEvent" /> and <link to="IEventSource::eventProcessed" /> in
18975 an event processing loop.
18976
18977 The IEvent interface is an abstract parent interface for all such VirtualBox events
18978 coming in. As a result, the standard use pattern inside <link to="IEventListener::handleEvent" />
18979 or the event processing loop is to check the <link to="#type" /> attribute of the event and
18980 then cast to the appropriate specific interface using @c QueryInterface().
18981 </desc>
18982
18983 <attribute name="type" readonly="yes" type="VBoxEventType">
18984 <desc>
18985 Event type.
18986 </desc>
18987 </attribute>
18988
18989 <attribute name="source" readonly="yes" type="IEventSource">
18990 <desc>
18991 Source of this event.
18992 </desc>
18993 </attribute>
18994
18995 <attribute name="waitable" readonly="yes" type="boolean">
18996 <desc>
18997 If we can wait for this event being processed. If false, <link to="#waitProcessed"/> returns immediately,
18998 and <link to="#setProcessed"/> doesn't make sense. Non-waitable events are generally better performing,
18999 as no additional overhead associated with waitability imposed.
19000 Waitable events are needed when one need to be able to wait for particular event processed,
19001 for example for vetoable changes, or if event refers to some resource which need to be kept immutable
19002 until all consumers confirmed events.
19003 </desc>
19004 </attribute>
19005
19006 <method name="setProcessed">
19007 <desc>
19008 Internal method called by the system when all listeners of a particular event have called
19009 <link to="IEventSource::eventProcessed" />. This should not be called by client code.
19010 </desc>
19011 </method>
19012
19013 <method name="waitProcessed">
19014 <desc>
19015 Wait until time outs, or this event is processed. Event must be waitable for this operation to have
19016 described semantics, for non-waitable returns true immediately.
19017 </desc>
19018 <param name="timeout" type="long" dir="in">
19019 <desc>
19020 Maximum time to wait for event processeing, in ms;
19021 0 = no wait, -1 = indefinite wait.
19022 </desc>
19023 </param>
19024 <param name="result" type="boolean" dir="return">
19025 <desc>If this event was processed before timeout.</desc>
19026 </param>
19027 </method>
19028 </interface>
19029
19030
19031 <interface
19032 name="IReusableEvent" extends="IEvent"
19033 uuid="69bfb134-80f6-4266-8e20-16371f68fa25"
19034 wsmap="managed"
19035 >
19036 <desc>Base abstract interface for all reusable events.</desc>
19037
19038 <attribute name="generation" readonly="yes" type="unsigned long">
19039 <desc>Current generation of event, incremented on reuse.</desc>
19040 </attribute>
19041
19042 <method name="reuse">
19043 <desc>
19044 Marks an event as reused, increments 'generation', fields shall no
19045 longer be considered valid.
19046 </desc>
19047 </method>
19048 </interface>
19049
19050 <interface
19051 name="IMachineEvent" extends="IEvent"
19052 uuid="92ed7b1a-0d96-40ed-ae46-a564d484325e"
19053 wsmap="managed" id="MachineEvent"
19054 >
19055 <desc>Base abstract interface for all machine events.</desc>
19056
19057 <attribute name="machineId" readonly="yes" type="uuid" mod="string">
19058 <desc>ID of the machine this event relates to.</desc>
19059 </attribute>
19060
19061 </interface>
19062
19063 <interface
19064 name="IMachineStateChangedEvent" extends="IMachineEvent"
19065 uuid="5748F794-48DF-438D-85EB-98FFD70D18C9"
19066 wsmap="managed" autogen="VBoxEvent" id="OnMachineStateChanged"
19067 >
19068 <desc>Machine state change event.</desc>
19069
19070 <attribute name="state" readonly="yes" type="MachineState">
19071 <desc>New execution state.</desc>
19072 </attribute>
19073 </interface>
19074
19075 <interface
19076 name="IMachineDataChangedEvent" extends="IMachineEvent"
19077 uuid="abe94809-2e88-4436-83d7-50f3e64d0503"
19078 wsmap="managed" autogen="VBoxEvent" id="OnMachineDataChanged"
19079 >
19080 <desc>
19081 Any of the settings of the given machine has changed.
19082 </desc>
19083
19084 <attribute name="temporary" readonly="yes" type="boolean">
19085 <desc>@c true if the settings change is temporary. All permanent
19086 settings changes will trigger an event, and only temporary settings
19087 changes for running VMs will trigger an event. Note: sending events
19088 for temporary changes is NOT IMPLEMENTED.</desc>
19089 </attribute>
19090 </interface>
19091
19092 <interface
19093 name="IMediumRegisteredEvent" extends="IEvent"
19094 uuid="53fac49a-b7f1-4a5a-a4ef-a11dd9c2a458"
19095 wsmap="managed" autogen="VBoxEvent" id="OnMediumRegistered"
19096 >
19097 <desc>
19098 The given medium was registered or unregistered
19099 within this VirtualBox installation.
19100 </desc>
19101
19102 <attribute name="mediumId" readonly="yes" type="uuid" mod="string">
19103 <desc>ID of the medium this event relates to.</desc>
19104 </attribute>
19105
19106 <attribute name="mediumType" readonly="yes" type="DeviceType">
19107 <desc>Type of the medium this event relates to.</desc>
19108 </attribute>
19109
19110 <attribute name="registered" type="boolean" readonly="yes">
19111 <desc>
19112 If @c true, the medium was registered, otherwise it was
19113 unregistered.
19114 </desc>
19115 </attribute>
19116 </interface>
19117
19118 <interface
19119 name="IMachineRegisteredEvent" extends="IMachineEvent"
19120 uuid="c354a762-3ff2-4f2e-8f09-07382ee25088"
19121 wsmap="managed" autogen="VBoxEvent" id="OnMachineRegistered"
19122 >
19123 <desc>
19124 The given machine was registered or unregistered
19125 within this VirtualBox installation.
19126 </desc>
19127
19128 <attribute name="registered" type="boolean" readonly="yes">
19129 <desc>
19130 If @c true, the machine was registered, otherwise it was
19131 unregistered.
19132 </desc>
19133 </attribute>
19134 </interface>
19135
19136 <interface
19137 name="ISessionStateChangedEvent" extends="IMachineEvent"
19138 uuid="714a3eef-799a-4489-86cd-fe8e45b2ff8e"
19139 wsmap="managed" autogen="VBoxEvent" id="OnSessionStateChanged"
19140 >
19141 <desc>
19142 The state of the session for the given machine was changed.
19143 <see><link to="IMachine::sessionState"/></see>
19144 </desc>
19145
19146 <attribute name="state" type="SessionState" readonly="yes">
19147 <desc>
19148 New session state.
19149 </desc>
19150 </attribute>
19151 </interface>
19152
19153 <interface
19154 name="IGuestPropertyChangedEvent" extends="IMachineEvent"
19155 uuid="3f63597a-26f1-4edb-8dd2-6bddd0912368"
19156 wsmap="managed" autogen="VBoxEvent" id="OnGuestPropertyChanged"
19157 >
19158 <desc>
19159 Notification when a guest property has changed.
19160 </desc>
19161
19162 <attribute name="name" readonly="yes" type="wstring">
19163 <desc>
19164 The name of the property that has changed.
19165 </desc>
19166 </attribute>
19167
19168 <attribute name="value" readonly="yes" type="wstring">
19169 <desc>
19170 The new property value.
19171 </desc>
19172 </attribute>
19173
19174 <attribute name="flags" readonly="yes" type="wstring">
19175 <desc>
19176 The new property flags.
19177 </desc>
19178 </attribute>
19179
19180 </interface>
19181
19182 <interface
19183 name="ISnapshotEvent" extends="IMachineEvent"
19184 uuid="21637b0e-34b8-42d3-acfb-7e96daf77c22"
19185 wsmap="managed" id="SnapshotEvent"
19186 >
19187 <desc>Base interface for all snapshot events.</desc>
19188
19189 <attribute name="snapshotId" readonly="yes" type="uuid" mod="string">
19190 <desc>ID of the snapshot this event relates to.</desc>
19191 </attribute>
19192
19193 </interface>
19194
19195 <interface
19196 name="ISnapshotTakenEvent" extends="ISnapshotEvent"
19197 uuid="d27c0b3d-6038-422c-b45e-6d4a0503d9f1"
19198 wsmap="managed" autogen="VBoxEvent" id="OnSnapshotTaken"
19199 >
19200 <desc>
19201 A new snapshot of the machine has been taken.
19202 <see><link to="ISnapshot"/></see>
19203 </desc>
19204 </interface>
19205
19206 <interface
19207 name="ISnapshotDeletedEvent" extends="ISnapshotEvent"
19208 uuid="c48f3401-4a9e-43f4-b7a7-54bd285e22f4"
19209 wsmap="managed" autogen="VBoxEvent" id="OnSnapshotDeleted"
19210 >
19211 <desc>
19212 Snapshot of the given machine has been deleted.
19213
19214 <note>
19215 This notification is delivered <b>after</b> the snapshot
19216 object has been uninitialized on the server (so that any
19217 attempt to call its methods will return an error).
19218 </note>
19219
19220 <see><link to="ISnapshot"/></see>
19221 </desc>
19222 </interface>
19223
19224 <interface
19225 name="ISnapshotChangedEvent" extends="ISnapshotEvent"
19226 uuid="07541941-8079-447a-a33e-47a69c7980db"
19227 wsmap="managed" autogen="VBoxEvent" id="OnSnapshotChanged"
19228 >
19229 <desc>
19230 Snapshot properties (name and/or description) have been changed.
19231 <see><link to="ISnapshot"/></see>
19232 </desc>
19233 </interface>
19234
19235 <interface
19236 name="IMousePointerShapeChangedEvent" extends="IEvent"
19237 uuid="a6dcf6e8-416b-4181-8c4a-45ec95177aef"
19238 wsmap="managed" autogen="VBoxEvent" id="OnMousePointerShapeChanged"
19239 >
19240 <desc>
19241 Notification when the guest mouse pointer shape has
19242 changed. The new shape data is given.
19243 </desc>
19244
19245 <attribute name="visible" type="boolean" readonly="yes">
19246 <desc>
19247 Flag whether the pointer is visible.
19248 </desc>
19249 </attribute>
19250 <attribute name="alpha" type="boolean" readonly="yes">
19251 <desc>
19252 Flag whether the pointer has an alpha channel.
19253 </desc>
19254 </attribute>
19255 <attribute name="xhot" type="unsigned long" readonly="yes">
19256 <desc>
19257 The pointer hot spot X coordinate.
19258 </desc>
19259 </attribute>
19260 <attribute name="yhot" type="unsigned long" readonly="yes">
19261 <desc>
19262 The pointer hot spot Y coordinate.
19263 </desc>
19264 </attribute>
19265 <attribute name="width" type="unsigned long" readonly="yes">
19266 <desc>
19267 Width of the pointer shape in pixels.
19268 </desc>
19269 </attribute>
19270 <attribute name="height" type="unsigned long" readonly="yes">
19271 <desc>
19272 Height of the pointer shape in pixels.
19273 </desc>
19274 </attribute>
19275 <attribute name="shape" type="octet" safearray="yes" readonly="yes">
19276 <desc>
19277 Shape buffer arrays.
19278
19279 The @a shape buffer contains a 1-bpp (bits per pixel) AND mask
19280 followed by a 32-bpp XOR (color) mask.
19281
19282 For pointers without alpha channel the XOR mask pixels are 32
19283 bit values: (lsb)BGR0(msb). For pointers with alpha channel
19284 the XOR mask consists of (lsb)BGRA(msb) 32 bit values.
19285
19286 An AND mask is used for pointers with alpha channel, so if the
19287 callback does not support alpha, the pointer could be
19288 displayed as a normal color pointer.
19289
19290 The AND mask is a 1-bpp bitmap with byte aligned scanlines. The
19291 size of the AND mask therefore is <tt>cbAnd = (width + 7) / 8 *
19292 height</tt>. The padding bits at the end of each scanline are
19293 undefined.
19294
19295 The XOR mask follows the AND mask on the next 4-byte aligned
19296 offset: <tt>uint8_t *pXor = pAnd + (cbAnd + 3) &amp; ~3</tt>.
19297 Bytes in the gap between the AND and the XOR mask are undefined.
19298 The XOR mask scanlines have no gap between them and the size of
19299 the XOR mask is: <tt>cXor = width * 4 * height</tt>.
19300
19301 <note>
19302 If @a shape is 0, only the pointer visibility is changed.
19303 </note>
19304 </desc>
19305 </attribute>
19306 </interface>
19307
19308 <interface
19309 name="IMouseCapabilityChangedEvent" extends="IEvent"
19310 uuid="d633ad48-820c-4207-b46c-6bd3596640d5"
19311 wsmap="managed" autogen="VBoxEvent" id="OnMouseCapabilityChanged"
19312 >
19313 <desc>
19314 Notification when the mouse capabilities reported by the
19315 guest have changed. The new capabilities are passed.
19316 </desc>
19317 <attribute name="supportsAbsolute" type="boolean" readonly="yes">
19318 <desc>
19319 Supports absolute coordinates.
19320 </desc>
19321 </attribute>
19322 <attribute name="supportsRelative" type="boolean" readonly="yes">
19323 <desc>
19324 Supports relative coordinates.
19325 </desc>
19326 </attribute>
19327 <attribute name="needsHostCursor" type="boolean" readonly="yes">
19328 <desc>
19329 If host cursor is needed.
19330 </desc>
19331 </attribute>
19332 </interface>
19333
19334 <interface
19335 name="IKeyboardLedsChangedEvent" extends="IEvent"
19336 uuid="6DDEF35E-4737-457B-99FC-BC52C851A44F"
19337 wsmap="managed" autogen="VBoxEvent" id="OnKeyboardLedsChanged"
19338 >
19339 <desc>
19340 Notification when the guest OS executes the KBD_CMD_SET_LEDS command
19341 to alter the state of the keyboard LEDs.
19342 </desc>
19343 <attribute name="numLock" type="boolean" readonly="yes">
19344 <desc>
19345 NumLock status.
19346 </desc>
19347 </attribute>
19348 <attribute name="capsLock" type="boolean" readonly="yes">
19349 <desc>
19350 CapsLock status.
19351 </desc>
19352 </attribute>
19353 <attribute name="scrollLock" type="boolean" readonly="yes">
19354 <desc>
19355 ScrollLock status.
19356 </desc>
19357 </attribute>
19358 </interface>
19359
19360 <interface
19361 name="IStateChangedEvent" extends="IEvent"
19362 uuid="4376693C-CF37-453B-9289-3B0F521CAF27"
19363 wsmap="managed" autogen="VBoxEvent" id="OnStateChanged"
19364 >
19365 <desc>
19366 Notification when the execution state of the machine has changed.
19367 The new state is given.
19368 </desc>
19369 <attribute name="state" type="MachineState" readonly="yes">
19370 <desc>
19371 New machine state.
19372 </desc>
19373 </attribute>
19374 </interface>
19375
19376 <interface
19377 name="IAdditionsStateChangedEvent" extends="IEvent"
19378 uuid="D70F7915-DA7C-44C8-A7AC-9F173490446A"
19379 wsmap="managed" autogen="VBoxEvent" id="OnAdditionsStateChanged"
19380 >
19381 <desc>
19382 Notification when a Guest Additions property changes.
19383 Interested callees should query IGuest attributes to
19384 find out what has changed.
19385 </desc>
19386 </interface>
19387
19388 <interface
19389 name="INetworkAdapterChangedEvent" extends="IEvent"
19390 uuid="08889892-1EC6-4883-801D-77F56CFD0103"
19391 wsmap="managed" autogen="VBoxEvent" id="OnNetworkAdapterChanged"
19392 >
19393 <desc>
19394 Notification when a property of one of the
19395 virtual <link to="IMachine::getNetworkAdapter">network adapters</link>
19396 changes. Interested callees should use INetworkAdapter methods and
19397 attributes to find out what has changed.
19398 </desc>
19399 <attribute name="networkAdapter" type="INetworkAdapter" readonly="yes">
19400 <desc>
19401 Network adapter that is subject to change.
19402 </desc>
19403 </attribute>
19404 </interface>
19405
19406 <interface
19407 name="ISerialPortChangedEvent" extends="IEvent"
19408 uuid="3BA329DC-659C-488B-835C-4ECA7AE71C6C"
19409 wsmap="managed" autogen="VBoxEvent" id="OnSerialPortChanged"
19410 >
19411 <desc>
19412 Notification when a property of one of the
19413 virtual <link to="IMachine::getSerialPort">serial ports</link> changes.
19414 Interested callees should use ISerialPort methods and attributes
19415 to find out what has changed.
19416 </desc>
19417 <attribute name="serialPort" type="ISerialPort" readonly="yes">
19418 <desc>
19419 Serial port that is subject to change.
19420 </desc>
19421 </attribute>
19422 </interface>
19423
19424 <interface
19425 name="IParallelPortChangedEvent" extends="IEvent"
19426 uuid="813C99FC-9849-4F47-813E-24A75DC85615"
19427 wsmap="managed" autogen="VBoxEvent" id="OnParallelPortChanged"
19428 >
19429 <desc>
19430 Notification when a property of one of the
19431 virtual <link to="IMachine::getParallelPort">parallel ports</link>
19432 changes. Interested callees should use ISerialPort methods and
19433 attributes to find out what has changed.
19434 </desc>
19435 <attribute name="parallelPort" type="IParallelPort" readonly="yes">
19436 <desc>
19437 Parallel port that is subject to change.
19438 </desc>
19439 </attribute>
19440 </interface>
19441
19442 <interface
19443 name="IStorageControllerChangedEvent" extends="IEvent"
19444 uuid="715212BF-DA59-426E-8230-3831FAA52C56"
19445 wsmap="managed" autogen="VBoxEvent" id="OnStorageControllerChanged"
19446 >
19447 <desc>
19448 Notification when a
19449 <link to="IMachine::mediumAttachments">medium attachment</link>
19450 changes.
19451 </desc>
19452 </interface>
19453
19454 <interface
19455 name="IMediumChangedEvent" extends="IEvent"
19456 uuid="0FE2DA40-5637-472A-9736-72019EABD7DE"
19457 wsmap="managed" autogen="VBoxEvent" id="OnMediumChanged"
19458 >
19459 <desc>
19460 Notification when a
19461 <link to="IMachine::mediumAttachments">medium attachment</link>
19462 changes.
19463 </desc>
19464 <attribute name="mediumAttachment" type="IMediumAttachment" readonly="yes">
19465 <desc>
19466 Medium attachment that is subject to change.
19467 </desc>
19468 </attribute>
19469 </interface>
19470
19471 <interface
19472 name="IClipboardModeChangedEvent" extends="IEvent"
19473 uuid="cac21692-7997-4595-a731-3a509db604e5"
19474 wsmap="managed" autogen="VBoxEvent" id="OnClipboardModeChanged"
19475 >
19476 <desc>
19477 Notification when the shared clipboard mode changes.
19478 </desc>
19479 <attribute name="clipboardMode" type="ClipboardMode" readonly="yes">
19480 <desc>
19481 The new clipboard mode.
19482 </desc>
19483 </attribute>
19484 </interface>
19485
19486 <interface
19487 name="IDragAndDropModeChangedEvent" extends="IEvent"
19488 uuid="e90b8850-ac8e-4dff-8059-4100ae2c3c3d"
19489 wsmap="managed" autogen="VBoxEvent" id="OnDragAndDropModeChanged"
19490 >
19491 <desc>
19492 Notification when the drag'n'drop mode changes.
19493 </desc>
19494 <attribute name="dragAndDropMode" type="DragAndDropMode" readonly="yes">
19495 <desc>
19496 The new drag'n'drop mode.
19497 </desc>
19498 </attribute>
19499 </interface>
19500
19501 <interface
19502 name="ICPUChangedEvent" extends="IEvent"
19503 uuid="4da2dec7-71b2-4817-9a64-4ed12c17388e"
19504 wsmap="managed" autogen="VBoxEvent" id="OnCPUChanged"
19505 >
19506 <desc>
19507 Notification when a CPU changes.
19508 </desc>
19509 <attribute name="CPU" type="unsigned long" readonly="yes">
19510 <desc>
19511 The CPU which changed.
19512 </desc>
19513 </attribute>
19514 <attribute name="add" type="boolean" readonly="yes">
19515 <desc>
19516 Flag whether the CPU was added or removed.
19517 </desc>
19518 </attribute>
19519 </interface>
19520
19521 <interface
19522 name="ICPUExecutionCapChangedEvent" extends="IEvent"
19523 uuid="dfa7e4f5-b4a4-44ce-85a8-127ac5eb59dc"
19524 wsmap="managed" autogen="VBoxEvent" id="OnCPUExecutionCapChanged"
19525 >
19526 <desc>
19527 Notification when the CPU execution cap changes.
19528 </desc>
19529 <attribute name="executionCap" type="unsigned long" readonly="yes">
19530 <desc>
19531 The new CPU execution cap value. (1-100)
19532 </desc>
19533 </attribute>
19534 </interface>
19535
19536 <interface
19537 name="IGuestKeyboardEvent" extends="IEvent"
19538 uuid="88394258-7006-40d4-b339-472ee3801844"
19539 wsmap="managed" autogen="VBoxEvent" id="OnGuestKeyboard"
19540 >
19541 <desc>
19542 Notification when guest keyboard event happens.
19543 </desc>
19544 <attribute name="scancodes" type="long" safearray="yes" readonly="yes">
19545 <desc>
19546 Array of scancodes.
19547 </desc>
19548 </attribute>
19549 </interface>
19550
19551 <interface
19552 name="IGuestMouseEvent" extends="IReusableEvent"
19553 uuid="1f85d35c-c524-40ff-8e98-307000df0992"
19554 wsmap="managed" autogen="VBoxEvent" id="OnGuestMouse"
19555 >
19556 <desc>
19557 Notification when guest mouse event happens.
19558 </desc>
19559
19560 <attribute name="absolute" type="boolean" readonly="yes">
19561 <desc>
19562 If this event is relative or absolute.
19563 </desc>
19564 </attribute>
19565
19566 <attribute name="x" type="long" readonly="yes">
19567 <desc>
19568 New X position, or X delta.
19569 </desc>
19570 </attribute>
19571
19572 <attribute name="y" type="long" readonly="yes">
19573 <desc>
19574 New Y position, or Y delta.
19575 </desc>
19576 </attribute>
19577
19578 <attribute name="z" type="long" readonly="yes">
19579 <desc>
19580 Z delta.
19581 </desc>
19582 </attribute>
19583
19584 <attribute name="w" type="long" readonly="yes">
19585 <desc>
19586 W delta.
19587 </desc>
19588 </attribute>
19589
19590 <attribute name="buttons" type="long" readonly="yes">
19591 <desc>
19592 Button state bitmask.
19593 </desc>
19594 </attribute>
19595
19596 </interface>
19597
19598
19599 <interface
19600 name="IVRDEServerChangedEvent" extends="IEvent"
19601 uuid="a06fd66a-3188-4c8c-8756-1395e8cb691c"
19602 wsmap="managed" autogen="VBoxEvent" id="OnVRDEServerChanged"
19603 >
19604 <desc>
19605 Notification when a property of the
19606 <link to="IMachine::VRDEServer">VRDE server</link> changes.
19607 Interested callees should use IVRDEServer methods and attributes to
19608 find out what has changed.
19609 </desc>
19610 </interface>
19611
19612 <interface
19613 name="IVRDEServerInfoChangedEvent" extends="IEvent"
19614 uuid="dd6a1080-e1b7-4339-a549-f0878115596e"
19615 wsmap="managed" autogen="VBoxEvent" id="OnVRDEServerInfoChanged"
19616 >
19617 <desc>
19618 Notification when the status of the VRDE server changes. Interested callees
19619 should use <link to="IConsole::VRDEServerInfo">IVRDEServerInfo</link>
19620 attributes to find out what is the current status.
19621 </desc>
19622 </interface>
19623
19624 <interface
19625 name="IUSBControllerChangedEvent" extends="IEvent"
19626 uuid="93BADC0C-61D9-4940-A084-E6BB29AF3D83"
19627 wsmap="managed" autogen="VBoxEvent" id="OnUSBControllerChanged"
19628 >
19629 <desc>
19630 Notification when a property of the virtual
19631 <link to="IMachine::USBController">USB controller</link> changes.
19632 Interested callees should use IUSBController methods and attributes to
19633 find out what has changed.
19634 </desc>
19635 </interface>
19636
19637 <interface
19638 name="IUSBDeviceStateChangedEvent" extends="IEvent"
19639 uuid="806da61b-6679-422a-b629-51b06b0c6d93"
19640 wsmap="managed" autogen="VBoxEvent" id="OnUSBDeviceStateChanged"
19641 >
19642 <desc>
19643 Notification when a USB device is attached to or detached from
19644 the virtual USB controller.
19645
19646 This notification is sent as a result of the indirect
19647 request to attach the device because it matches one of the
19648 machine USB filters, or as a result of the direct request
19649 issued by <link to="IConsole::attachUSBDevice"/> or
19650 <link to="IConsole::detachUSBDevice"/>.
19651
19652 This notification is sent in case of both a succeeded and a
19653 failed request completion. When the request succeeds, the
19654 @a error parameter is @c null, and the given device has been
19655 already added to (when @a attached is @c true) or removed from
19656 (when @a attached is @c false) the collection represented by
19657 <link to="IConsole::USBDevices"/>. On failure, the collection
19658 doesn't change and the @a error parameter represents the error
19659 message describing the failure.
19660 </desc>
19661 <attribute name="device" type="IUSBDevice" readonly="yes">
19662 <desc>
19663 Device that is subject to state change.
19664 </desc>
19665 </attribute>
19666 <attribute name="attached" type="boolean" readonly="yes">
19667 <desc>
19668 @c true if the device was attached and @c false otherwise.
19669 </desc>
19670 </attribute>
19671 <attribute name="error" type="IVirtualBoxErrorInfo" readonly="yes">
19672 <desc>
19673 @c null on success or an error message object on failure.
19674 </desc>
19675 </attribute>
19676 </interface>
19677
19678 <interface
19679 name="ISharedFolderChangedEvent" extends="IEvent"
19680 uuid="B66349B5-3534-4239-B2DE-8E1535D94C0B"
19681 wsmap="managed" autogen="VBoxEvent" id="OnSharedFolderChanged"
19682 >
19683 <desc>
19684 Notification when a shared folder is added or removed.
19685 The @a scope argument defines one of three scopes:
19686 <link to="IVirtualBox::sharedFolders">global shared folders</link>
19687 (<link to="Scope_Global">Global</link>),
19688 <link to="IMachine::sharedFolders">permanent shared folders</link> of
19689 the machine (<link to="Scope_Machine">Machine</link>) or <link
19690 to="IConsole::sharedFolders">transient shared folders</link> of the
19691 machine (<link to="Scope_Session">Session</link>). Interested callees
19692 should use query the corresponding collections to find out what has
19693 changed.
19694 </desc>
19695 <attribute name="scope" type="Scope" readonly="yes">
19696 <desc>
19697 Scope of the notification.
19698 </desc>
19699 </attribute>
19700 </interface>
19701
19702 <interface
19703 name="IRuntimeErrorEvent" extends="IEvent"
19704 uuid="883DD18B-0721-4CDE-867C-1A82ABAF914C"
19705 wsmap="managed" autogen="VBoxEvent" id="OnRuntimeError"
19706 >
19707 <desc>
19708 Notification when an error happens during the virtual
19709 machine execution.
19710
19711 There are three kinds of runtime errors:
19712 <ul>
19713 <li><i>fatal</i></li>
19714 <li><i>non-fatal with retry</i></li>
19715 <li><i>non-fatal warnings</i></li>
19716 </ul>
19717
19718 <b>Fatal</b> errors are indicated by the @a fatal parameter set
19719 to @c true. In case of fatal errors, the virtual machine
19720 execution is always paused before calling this notification, and
19721 the notification handler is supposed either to immediately save
19722 the virtual machine state using <link to="IConsole::saveState"/>
19723 or power it off using <link to="IConsole::powerDown"/>.
19724 Resuming the execution can lead to unpredictable results.
19725
19726 <b>Non-fatal</b> errors and warnings are indicated by the
19727 @a fatal parameter set to @c false. If the virtual machine
19728 is in the Paused state by the time the error notification is
19729 received, it means that the user can <i>try to resume</i> the machine
19730 execution after attempting to solve the problem that caused the
19731 error. In this case, the notification handler is supposed
19732 to show an appropriate message to the user (depending on the
19733 value of the @a id parameter) that offers several actions such
19734 as <i>Retry</i>, <i>Save</i> or <i>Power Off</i>. If the user
19735 wants to retry, the notification handler should continue
19736 the machine execution using the <link to="IConsole::resume"/>
19737 call. If the machine execution is not Paused during this
19738 notification, then it means this notification is a <i>warning</i>
19739 (for example, about a fatal condition that can happen very soon);
19740 no immediate action is required from the user, the machine
19741 continues its normal execution.
19742
19743 Note that in either case the notification handler
19744 <b>must not</b> perform any action directly on a thread
19745 where this notification is called. Everything it is allowed to
19746 do is to post a message to another thread that will then talk
19747 to the user and take the corresponding action.
19748
19749 Currently, the following error identifiers are known:
19750 <ul>
19751 <li><tt>"HostMemoryLow"</tt></li>
19752 <li><tt>"HostAudioNotResponding"</tt></li>
19753 <li><tt>"VDIStorageFull"</tt></li>
19754 <li><tt>"3DSupportIncompatibleAdditions"</tt></li>
19755 </ul>
19756 </desc>
19757 <attribute name="fatal" type="boolean" readonly="yes">
19758 <desc>
19759 Whether the error is fatal or not.
19760 </desc>
19761 </attribute>
19762 <attribute name="id" type="wstring" readonly="yes">
19763 <desc>
19764 Error identifier.
19765 </desc>
19766 </attribute>
19767 <attribute name="message" type="wstring" readonly="yes">
19768 <desc>
19769 Optional error message.
19770 </desc>
19771 </attribute>
19772 </interface>
19773
19774
19775 <interface
19776 name="IEventSourceChangedEvent" extends="IEvent"
19777 uuid="e7932cb8-f6d4-4ab6-9cbf-558eb8959a6a"
19778 waitable="yes"
19779 wsmap="managed" autogen="VBoxEvent" id="OnEventSourceChanged"
19780 >
19781 <desc>
19782 Notification when an event source state changes (listener added or removed).
19783 </desc>
19784
19785 <attribute name="listener" type="IEventListener" readonly="yes">
19786 <desc>
19787 Event listener which has changed.
19788 </desc>
19789 </attribute>
19790
19791 <attribute name="add" type="boolean" readonly="yes">
19792 <desc>
19793 Flag whether listener was added or removed.
19794 </desc>
19795 </attribute>
19796 </interface>
19797
19798 <interface
19799 name="IExtraDataChangedEvent" extends="IEvent"
19800 uuid="024F00CE-6E0B-492A-A8D0-968472A94DC7"
19801 wsmap="managed" autogen="VBoxEvent" id="OnExtraDataChanged"
19802 >
19803 <desc>
19804 Notification when machine specific or global extra data
19805 has changed.
19806 </desc>
19807 <attribute name="machineId" type="uuid" mod="string" readonly="yes">
19808 <desc>
19809 ID of the machine this event relates to.
19810 Null for global extra data changes.
19811 </desc>
19812 </attribute>
19813 <attribute name="key" type="wstring" readonly="yes">
19814 <desc>
19815 Extra data key that has changed.
19816 </desc>
19817 </attribute>
19818 <attribute name="value" type="wstring" readonly="yes">
19819 <desc>
19820 Extra data value for the given key.
19821 </desc>
19822 </attribute>
19823 </interface>
19824
19825 <interface
19826 name="IVetoEvent" extends="IEvent"
19827 uuid="9a1a4130-69fe-472f-ac10-c6fa25d75007"
19828 wsmap="managed"
19829 >
19830 <desc>Base abstract interface for veto events.</desc>
19831
19832 <method name="addVeto">
19833 <desc>
19834 Adds a veto on this event.
19835 </desc>
19836 <param name="reason" type="wstring" dir="in">
19837 <desc>
19838 Reason for veto, could be null or empty string.
19839 </desc>
19840 </param>
19841 </method>
19842
19843 <method name="isVetoed">
19844 <desc>
19845 If this event was vetoed.
19846 </desc>
19847 <param name="result" type="boolean" dir="return">
19848 <desc>
19849 Reason for veto.
19850 </desc>
19851 </param>
19852 </method>
19853
19854 <method name="getVetos">
19855 <desc>
19856 Current veto reason list, if size is 0 - no veto.
19857 </desc>
19858 <param name="result" type="wstring" dir="return" safearray="yes">
19859 <desc>
19860 Array of reasons for veto provided by different event handlers.
19861 </desc>
19862 </param>
19863 </method>
19864
19865 </interface>
19866
19867 <interface
19868 name="IExtraDataCanChangeEvent" extends="IVetoEvent"
19869 uuid="245d88bd-800a-40f8-87a6-170d02249a55"
19870 wsmap="managed" autogen="VBoxEvent" id="OnExtraDataCanChange"
19871 waitable="true"
19872 >
19873 <desc>
19874 Notification when someone tries to change extra data for
19875 either the given machine or (if @c null) global extra data.
19876 This gives the chance to veto against changes.
19877 </desc>
19878 <attribute name="machineId" type="uuid" mod="string" readonly="yes">
19879 <desc>
19880 ID of the machine this event relates to.
19881 Null for global extra data changes.
19882 </desc>
19883 </attribute>
19884 <attribute name="key" type="wstring" readonly="yes">
19885 <desc>
19886 Extra data key that has changed.
19887 </desc>
19888 </attribute>
19889 <attribute name="value" type="wstring" readonly="yes">
19890 <desc>
19891 Extra data value for the given key.
19892 </desc>
19893 </attribute>
19894 </interface>
19895
19896 <interface
19897 name="ICanShowWindowEvent" extends="IVetoEvent"
19898 uuid="adf292b0-92c9-4a77-9d35-e058b39fe0b9"
19899 wsmap="managed" autogen="VBoxEvent" id="OnCanShowWindow"
19900 waitable="true"
19901 >
19902 <desc>
19903 Notification when a call to
19904 <link to="IMachine::canShowConsoleWindow"/> is made by a
19905 front-end to check if a subsequent call to
19906 <link to="IMachine::showConsoleWindow"/> can succeed.
19907
19908 The callee should give an answer appropriate to the current
19909 machine state using event veto. This answer must
19910 remain valid at least until the next
19911 <link to="IConsole::state">machine state</link> change.
19912 </desc>
19913 </interface>
19914
19915 <interface
19916 name="IShowWindowEvent" extends="IEvent"
19917 uuid="B0A0904D-2F05-4D28-855F-488F96BAD2B2"
19918 wsmap="managed" autogen="VBoxEvent" id="OnShowWindow"
19919 waitable="true"
19920 >
19921 <desc>
19922 Notification when a call to
19923 <link to="IMachine::showConsoleWindow"/>
19924 requests the console window to be activated and brought to
19925 foreground on the desktop of the host PC.
19926
19927 This notification should cause the VM console process to
19928 perform the requested action as described above. If it is
19929 impossible to do it at a time of this notification, this
19930 method should return a failure.
19931
19932 Note that many modern window managers on many platforms
19933 implement some sort of focus stealing prevention logic, so
19934 that it may be impossible to activate a window without the
19935 help of the currently active application (which is supposedly
19936 an initiator of this notification). In this case, this method
19937 must return a non-zero identifier that represents the
19938 top-level window of the VM console process. The caller, if it
19939 represents a currently active process, is responsible to use
19940 this identifier (in a platform-dependent manner) to perform
19941 actual window activation.
19942
19943 This method must set @a winId to zero if it has performed all
19944 actions necessary to complete the request and the console
19945 window is now active and in foreground, to indicate that no
19946 further action is required on the caller's side.
19947 </desc>
19948 <attribute name="winId" type="long long">
19949 <desc>
19950 Platform-dependent identifier of the top-level VM console
19951 window, or zero if this method has performed all actions
19952 necessary to implement the <i>show window</i> semantics for
19953 the given platform and/or this VirtualBox front-end.
19954 </desc>
19955 </attribute>
19956 </interface>
19957
19958 <interface
19959 name="INATRedirectEvent" extends="IMachineEvent"
19960 uuid="24eef068-c380-4510-bc7c-19314a7352f1"
19961 wsmap="managed" autogen="VBoxEvent" id="OnNATRedirect"
19962 >
19963 <desc>
19964 Notification when NAT redirect rule added or removed.
19965 </desc>
19966 <attribute name="slot" type="unsigned long" readonly="yes">
19967 <desc>
19968 Adapter which NAT attached to.
19969 </desc>
19970 </attribute>
19971 <attribute name="remove" type="boolean" readonly="yes">
19972 <desc>
19973 Whether rule remove or add.
19974 </desc>
19975 </attribute>
19976 <attribute name="name" type="wstring" readonly="yes">
19977 <desc>
19978 Name of the rule.
19979 </desc>
19980 </attribute>
19981 <attribute name="proto" type="NATProtocol" readonly="yes">
19982 <desc>
19983 Protocol (TCP or UDP) of the redirect rule.
19984 </desc>
19985 </attribute>
19986 <attribute name="hostIP" type="wstring" readonly="yes">
19987 <desc>
19988 Host ip address to bind socket on.
19989 </desc>
19990 </attribute>
19991 <attribute name="hostPort" type="long" readonly="yes">
19992 <desc>
19993 Host port to bind socket on.
19994 </desc>
19995 </attribute>
19996 <attribute name="guestIP" type="wstring" readonly="yes">
19997 <desc>
19998 Guest ip address to redirect to.
19999 </desc>
20000 </attribute>
20001 <attribute name="guestPort" type="long" readonly="yes">
20002 <desc>
20003 Guest port to redirect to.
20004 </desc>
20005 </attribute>
20006 </interface>
20007
20008 <interface
20009 name="IHostPCIDevicePlugEvent" extends="IMachineEvent"
20010 waitable="yes"
20011 uuid="a0bad6df-d612-47d3-89d4-db3992533948"
20012 wsmap="managed" autogen="VBoxEvent" id="OnHostPCIDevicePlug"
20013 >
20014 <desc>
20015 Notification when host PCI device is plugged/unplugged. Plugging
20016 usually takes place on VM startup, unplug - when
20017 <link to="IMachine::detachHostPCIDevice"/> is called.
20018
20019 <see><link to="IMachine::detachHostPCIDevice"/></see>
20020
20021 </desc>
20022
20023 <attribute name="plugged" type="boolean" readonly="yes">
20024 <desc>
20025 If device successfully plugged or unplugged.
20026 </desc>
20027 </attribute>
20028
20029 <attribute name="success" type="boolean" readonly="yes">
20030 <desc>
20031 If operation was successful, if false - 'message' attribute
20032 may be of interest.
20033 </desc>
20034 </attribute>
20035
20036 <attribute name="attachment" type="IPCIDeviceAttachment" readonly="yes">
20037 <desc>
20038 Attachment info for this device.
20039 </desc>
20040 </attribute>
20041
20042 <attribute name="message" type="wstring" readonly="yes">
20043 <desc>
20044 Optional error message.
20045 </desc>
20046 </attribute>
20047
20048 </interface>
20049
20050 <interface
20051 name="IVBoxSVCAvailabilityChangedEvent" extends="IEvent"
20052 uuid="97c78fcd-d4fc-485f-8613-5af88bfcfcdc"
20053 wsmap="managed" autogen="VBoxEvent" id="OnVBoxSVCAvailabilityChanged"
20054 >
20055 <desc>
20056 Notification when VBoxSVC becomes unavailable (due to a crash or similar
20057 unexpected circumstances) or available again.
20058 </desc>
20059
20060 <attribute name="available" type="boolean" readonly="yes">
20061 <desc>
20062 Whether VBoxSVC is available now.
20063 </desc>
20064 </attribute>
20065 </interface>
20066
20067 <interface
20068 name="IBandwidthGroupChangedEvent" extends="IEvent"
20069 uuid="334df94a-7556-4cbc-8c04-043096b02d82"
20070 wsmap="managed" autogen="VBoxEvent" id="OnBandwidthGroupChanged"
20071 >
20072 <desc>
20073 Notification when one of the bandwidth groups changed
20074 </desc>
20075 <attribute name="bandwidthGroup" type="IBandwidthGroup" readonly="yes">
20076 <desc>
20077 The changed bandwidth group.
20078 </desc>
20079 </attribute>
20080 </interface>
20081
20082 <enum
20083 name="GuestMonitorChangedEventType"
20084 uuid="ef172985-7e36-4297-95be-e46396968d66"
20085 >
20086
20087 <desc>
20088 How the guest monitor has been changed.
20089 </desc>
20090
20091 <const name="Enabled" value="0">
20092 <desc>
20093 The guest monitor has been enabled by the guest.
20094 </desc>
20095 </const>
20096
20097 <const name="Disabled" value="1">
20098 <desc>
20099 The guest monitor has been disabled by the guest.
20100 </desc>
20101 </const>
20102
20103 <const name="NewOrigin" value="2">
20104 <desc>
20105 The guest monitor origin has changed in the guest.
20106 </desc>
20107 </const>
20108 </enum>
20109
20110 <interface
20111 name="IGuestMonitorChangedEvent" extends="IEvent"
20112 uuid="0f7b8a22-c71f-4a36-8e5f-a77d01d76090"
20113 wsmap="managed" autogen="VBoxEvent" id="OnGuestMonitorChanged"
20114 >
20115 <desc>
20116 Notification when the guest enables one of its monitors.
20117 </desc>
20118
20119 <attribute name="changeType" type="GuestMonitorChangedEventType" readonly="yes">
20120 <desc>
20121 What was changed for this guest monitor.
20122 </desc>
20123 </attribute>
20124
20125 <attribute name="screenId" type="unsigned long" readonly="yes">
20126 <desc>
20127 The monitor which was changed.
20128 </desc>
20129 </attribute>
20130
20131 <attribute name="originX" type="unsigned long" readonly="yes">
20132 <desc>
20133 Physical X origin relative to the primary screen.
20134 Valid for Enabled and NewOrigin.
20135 </desc>
20136 </attribute>
20137
20138 <attribute name="originY" type="unsigned long" readonly="yes">
20139 <desc>
20140 Physical Y origin relative to the primary screen.
20141 Valid for Enabled and NewOrigin.
20142 </desc>
20143 </attribute>
20144
20145 <attribute name="width" type="unsigned long" readonly="yes">
20146 <desc>
20147 Width of the screen.
20148 Valid for Enabled.
20149 </desc>
20150 </attribute>
20151
20152 <attribute name="height" type="unsigned long" readonly="yes">
20153 <desc>
20154 Height of the screen.
20155 Valid for Enabled.
20156 </desc>
20157 </attribute>
20158
20159 </interface>
20160
20161 <interface
20162 name="IStorageDeviceChangedEvent" extends="IEvent"
20163 uuid="8a5c2dce-e341-49d4-afce-c95979f7d70c"
20164 wsmap="managed" autogen="VBoxEvent" id="OnStorageDeviceChanged"
20165 >
20166 <desc>
20167 Notification when a
20168 <link to="IMachine::mediumAttachments">storage device</link>
20169 is attached or removed.
20170 </desc>
20171 <attribute name="storageDevice" type="IMediumAttachment" readonly="yes">
20172 <desc>
20173 Storage device that is subject to change.
20174 </desc>
20175 </attribute>
20176 <attribute name="removed" type="boolean" readonly="yes">
20177 <desc>
20178 Flag whether the device was removed or added to the VM.
20179 </desc>
20180 </attribute>
20181 </interface>
20182
20183 <module name="VBoxSVC" context="LocalServer">
20184 <class name="VirtualBox" uuid="B1A7A4F2-47B9-4A1E-82B2-07CCD5323C3F"
20185 namespace="virtualbox.org">
20186 <interface name="IVirtualBox" default="yes"/>
20187 </class>
20188 </module>
20189
20190 <module name="VBoxC" context="InprocServer" threadingModel="Free">
20191 <class name="VirtualBoxClient" uuid="dd3fc71d-26c0-4fe1-bf6f-67f633265bba"
20192 namespace="virtualbox.org">
20193 <interface name="IVirtualBoxClient" default="yes"/>
20194 </class>
20195
20196 <class name="Session" uuid="3C02F46D-C9D2-4F11-A384-53F0CF917214"
20197 namespace="virtualbox.org">
20198 <interface name="ISession" default="yes"/>
20199 </class>
20200 </module>
20201
20202</library>
20203
20204</idl>
20205
20206<!-- vim: set shiftwidth=2 tabstop=2 expandtab: -->
Note: See TracBrowser for help on using the repository browser.

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