VirtualBox

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

Last change on this file since 20977 was 20977, checked in by vboxsync, 15 years ago

API: weed out NULL strings, as many clients cannot use them

  • Property svn:eol-style set to native
File size: 497.6 KB
Line 
1<?xml version="1.0" ?>
2
3<!--
4 * :tabSize=2:indentSize=2:noTabs=true:
5 * :folding=explicit:collapseFolds=1:
6 *
7 * Master declaration for VirtualBox's Main API, represented
8 * by COM/XPCOM and web service interfaces.
9 *
10 * From this document, the build system generates several files
11 * via XSLT that are then used during the build process.
12 *
13 * Below is the list of XSL templates that operate on this file and
14 * output files they generate. These XSL templates must be updated
15 * whenever the schema of this file changes:
16 *
17 * 1. src/VBox/Main/idl/midl.xsl =>
18 * out/<platform>/bin/sdk/idl/VirtualBox.idl
19 * (MS COM interface definition file for Main API)
20 *
21 * 2. src/VBox/Main/idl/xpidl.xsl =>
22 * out/<platform>/bin/sdk/idl/VirtualBox_XPCOM.idl
23 * (XPCOM interface definition file for Main API)
24 *
25 * 3. src/VBox/Main/idl/doxygen.xsl =>
26 * out/<platform>/obj/src/VBox/Main/VirtualBox.idl
27 * (pseudo-IDL for Doxygen to generate the official Main API
28 * documentation)
29 *
30 * 4. src/VBox/Main/webservice/*.xsl =>
31 * a bunch of WSDL and C++ files
32 * (VirtualBox web service sources and SOAP mappers;
33 * see src/VBox/Main/webservice/Makefile.kmk for details)
34 *
35 * 5. src/VBox/Frontends/VirtualBox/include/COMWrappers.xsl =>
36 * out/<platform>/obj/src/VBox/Frontends/VirtualBox/VirtualBox/include/COMWrappers.h
37 * (smart Qt-based C++ wrapper classes for COM interfaces
38 * of the Main API)
39 *
40 * 6. src/VBox/Installer/win32/VirtualBox_TypeLib.xsl =>
41 * out/<platform>/obj/src/VBox/Installer/win32/VirtualBox_TypeLib.wxi
42 * (Main API TypeLib block for the WiX installer)
43 *
44 * 7. src/VBox/Runtime/common/err/errmsgvboxcom.xsl =>
45 * out/<platform>/obj/Runtime/errmsgvboxcomdata.h
46 * (<result> extraction for the %Rhrc format specifier)
47 *
48 Copyright (C) 2006-2009 Sun Microsystems, Inc.
49
50 This file is part of VirtualBox Open Source Edition (OSE), as
51 available from http://www.virtualbox.org. This file is free software;
52 you can redistribute it and/or modify it under the terms of the GNU
53 General Public License (GPL) as published by the Free Software
54 Foundation, in version 2 as it comes in the "COPYING" file of the
55 VirtualBox OSE distribution. VirtualBox OSE is distributed in the
56 hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
57
58 Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
59 Clara, CA 95054 USA or visit http://www.sun.com if you need
60 additional information or have any questions.
61-->
62
63<idl>
64
65<desc>
66 Welcome to the <b>VirtualBox Main API documentation</b>. This documentation
67 describes the so-called <i>VirtualBox Main API</i> which comprises all public
68 COM interfaces and components provided by the VirtualBox server and by the
69 VirtualBox client library.
70
71 VirtualBox employs a client-server design, meaning that whenever any part of
72 VirtualBox is running -- be it the Qt GUI, the VBoxManage command-line
73 interface or any virtual machine --, a dedicated server process named
74 VBoxSVC runs in the background. This allows multiple processes working with
75 VirtualBox to cooperate without conflicts. These processes communicate to each
76 other using inter-process communication facilities provided by the COM
77 implementation of the host computer.
78
79 On Windows platforms, the VirtualBox Main API uses Microsoft COM, a native COM
80 implementation. On all other platforms, Mozilla XPCOM, an open-source COM
81 implementation, is used.
82
83 All the parts that a typical VirtualBox user interacts with (the Qt GUI,
84 the VBoxManage command-line interface and the VBoxVRDP server) are technically
85 front-ends to the Main API and only use the interfaces that are documented
86 in this Main API documentation. This ensures that, with any given release
87 version of VirtualBox, all capabilities of the product that could be useful
88 to an external client program are always exposed by way of this API.
89
90 The VirtualBox Main API (also called the <i>VirtualBox COM library</i>)
91 contains two public component classes:
92 <tt>%VirtualBox.VirtualBox</tt> and <tt>%VirtualBox.Session</tt>, which
93 implement IVirtualBox and ISession interfaces respectively. These two classes
94 are of supreme importance and will be needed in order for any front-end
95 program to do anything useful. It is recommended to read the documentation of
96 the mentioned interfaces first.
97
98 The <tt>%VirtualBox.VirtualBox</tt> class is a singleton. This means that
99 there can be only one object of this class on the local machine at any given
100 time. This object is a parent of many other objects in the VirtualBox COM
101 library and lives in the VBoxSVC process. In fact, when you create an instance
102 of the <tt>VirtualBox.VirtualBox</tt>, the COM subsystem checks if the VBoxSVC
103 process is already running, starts it if not, and returns you a reference to
104 the <tt>VirtualBox</tt> object created in this process. When the last reference
105 to this object is released, the VBoxSVC process ends (with a 5 second delay to
106 protect from too frequent restarts).
107
108 The <tt>%VirtualBox.Session</tt> class is a regular component. You can create
109 as many <tt>Session</tt> objects as you need but all of them will live in a
110 process which issues the object instantiation call. <tt>Session</tt> objects
111 represent virtual machine sessions which are used to configure virtual
112 machines and control their execution.
113</desc>
114
115<if target="midl">
116 <cpp line="enum {"/>
117 <cpp line=" kTypeLibraryMajorVersion = 1,"/>
118 <cpp line=" kTypeLibraryMinorVersion = 0"/>
119 <cpp line="};"/>
120</if>
121
122<if target="xpidl">
123 <!-- NS_IMPL_THREADSAFE_ISUPPORTSxx_CI macros are placed here, for convenience -->
124 <cpp>
125/* currently, nsISupportsImpl.h lacks the below-like macros */
126
127#define NS_IMPL_THREADSAFE_QUERY_INTERFACE1_CI NS_IMPL_QUERY_INTERFACE1_CI
128#define NS_IMPL_THREADSAFE_QUERY_INTERFACE2_CI NS_IMPL_QUERY_INTERFACE2_CI
129
130#ifndef NS_IMPL_THREADSAFE_ISUPPORTS1_CI
131# define NS_IMPL_THREADSAFE_ISUPPORTS1_CI(_class, _interface) \
132 NS_IMPL_THREADSAFE_ADDREF(_class) \
133 NS_IMPL_THREADSAFE_RELEASE(_class) \
134 NS_IMPL_THREADSAFE_QUERY_INTERFACE1_CI(_class, _interface) \
135 NS_IMPL_CI_INTERFACE_GETTER1(_class, _interface)
136#endif
137
138#ifndef NS_IMPL_THREADSAFE_ISUPPORTS2_CI
139# define NS_IMPL_THREADSAFE_ISUPPORTS2_CI(_class, _i1, _i2) \
140 NS_IMPL_THREADSAFE_ADDREF(_class) \
141 NS_IMPL_THREADSAFE_RELEASE(_class) \
142 NS_IMPL_THREADSAFE_QUERY_INTERFACE2_CI(_class, _i1, _i2) \
143 NS_IMPL_CI_INTERFACE_GETTER2(_class, _i1, _i2)
144#endif
145
146#ifndef NS_IMPL_QUERY_INTERFACE1_AMBIGUOUS_CI
147# define NS_IMPL_QUERY_INTERFACE1_AMBIGUOUS_CI(_class, _i1, _ic1) \
148 NS_INTERFACE_MAP_BEGIN(_class) \
149 NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(_i1, _ic1) \
150 NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(nsISupports, _ic1) \
151 NS_IMPL_QUERY_CLASSINFO(_class) \
152 NS_INTERFACE_MAP_END
153#endif
154
155#ifndef NS_IMPL_QUERY_INTERFACE2_AMBIGUOUS_CI
156# define NS_IMPL_QUERY_INTERFACE2_AMBIGUOUS_CI(_class, _i1, _ic1, \
157 _i2, _ic2) \
158 NS_INTERFACE_MAP_BEGIN(_class) \
159 NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(_i1, _ic1) \
160 NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(_i2, _ic2) \
161 NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(nsISupports, _ic1) \
162 NS_IMPL_QUERY_CLASSINFO(_class) \
163 NS_INTERFACE_MAP_END
164#endif
165
166#define NS_IMPL_THREADSAFE_QUERY_INTERFACE1_AMBIGUOUS_CI NS_IMPL_QUERY_INTERFACE1_AMBIGUOUS_CI
167#define NS_IMPL_THREADSAFE_QUERY_INTERFACE2_AMBIGUOUS_CI NS_IMPL_QUERY_INTERFACE2_AMBIGUOUS_CI
168
169#ifndef NS_IMPL_THREADSAFE_ISUPPORTS1_AMBIGUOUS_CI
170# define NS_IMPL_THREADSAFE_ISUPPORTS1_AMBIGUOUS_CI(_class, _i1, _ic1) \
171 NS_IMPL_THREADSAFE_ADDREF(_class) \
172 NS_IMPL_THREADSAFE_RELEASE(_class) \
173 NS_IMPL_THREADSAFE_QUERY_INTERFACE1_AMBIGUOUS_CI(_class, _i1, _ic1) \
174 NS_IMPL_CI_INTERFACE_GETTER1(_class, _i1)
175#endif
176
177#ifndef NS_IMPL_THREADSAFE_ISUPPORTS2_AMBIGUOUS_CI
178# define NS_IMPL_THREADSAFE_ISUPPORTS2_AMBIGUOUS_CI(_class, _i1, _ic1, \
179 _i2, _ic2) \
180 NS_IMPL_THREADSAFE_ADDREF(_class) \
181 NS_IMPL_THREADSAFE_RELEASE(_class) \
182 NS_IMPL_THREADSAFE_QUERY_INTERFACE2_AMBIGUOUS_CI(_class, _i1, _ic1, \
183 _i2, _ic2) \
184 NS_IMPL_CI_INTERFACE_GETTER2(_class, _i1, _i2)
185#endif
186 </cpp>
187</if>
188
189<library
190 name="VirtualBox"
191 uuid="46137EEC-703B-4fe5-AFD4-7C9BBBBA0259"
192 version="1.3"
193 desc="VirtualBox Type Library"
194 appUuid="819B4D85-9CEE-493C-B6FC-64FFE759B3C9"
195 supportsErrorInfo="yes"
196>
197
198
199 <!--
200 // COM result codes for VirtualBox
201 /////////////////////////////////////////////////////////////////////////
202 -->
203
204 <descGroup id="VirtualBox_COM_result_codes" title="VirtualBox COM result codes">
205 <desc>
206 This section describes all VirtualBox-specific COM result codes that may
207 be returned by methods of VirtualBox COM interfaces in addition to
208 standard COM result codes.
209
210 Note that along with the result code, every VirtualBox method returns
211 extended error information through the IVirtualBoxErrorInfo interface on
212 failure. This interface is a preferred way to present the error to the end
213 user because it contains a human readable description of the error. Raw
214 result codes, both standard and described in this section, are intended to
215 be used by programs to analyze the reason of a failure and select an
216 appropriate course of action without involving the end user (for example,
217 retry the operation later or make a different call).
218
219 The standard COM result codes that may originate from our methods include:
220
221 <table>
222 <tr><td>E_INVALIDARG</td>
223 <td>
224 Returned when the value of the method's argument is not within the range
225 of valid values. This should not be confused with situations when the
226 value is within the range but simply doesn't suit the current object
227 state and there is a possibility that it will be accepted later (in such
228 cases VirtualBox-specific codes are returned, for example,
229 <link to="VBOX_E_OBJECT_NOT_FOUND"/>).
230 </td>
231 </tr>
232 <tr><td>E_POINTER</td>
233 <td>
234 Returned if a memory pointer for the output argument is invalid (for
235 example, @c null). Note that when pointers representing input
236 arguments (such as strings) are invalid, E_INVALIDARG is returned.
237 </td>
238 </tr>
239 <tr><td>E_ACCESSDENIED</td>
240 <td>
241 Returned when the called object is not ready. Since the lifetime of a
242 public COM object cannot be fully controlled by the implementation,
243 VirtualBox maintains the readiness state for all objects it creates and
244 returns this code in response to any method call on the object that was
245 deactivated by VirtualBox and is not functioning any more.
246 </td>
247 </tr>
248 <tr><td>E_OUTOFMEMORY</td>
249 <td>
250 Returned when a memory allocation operation fails.
251 </td>
252 </tr>
253 </table>
254 </desc>
255 </descGroup>
256
257 <!--
258 Note that src/VBox/Runtime/common/err/errmsgvboxcom.xsl will ignore
259 everything in <result>/<desc> after (and including) the first dot, so express
260 the matter of the error code in the first sentence and keep it short.
261 -->
262
263 <result name="VBOX_E_OBJECT_NOT_FOUND" value="0x80BB0001">
264 <desc>
265 Object corresponding to the supplied arguments does not exist.
266 </desc>
267 </result>
268
269 <result name="VBOX_E_INVALID_VM_STATE" value="0x80BB0002">
270 <desc>
271 Current virtual machine state prevents the operation.
272 </desc>
273 </result>
274
275 <result name="VBOX_E_VM_ERROR" value="0x80BB0003">
276 <desc>
277 Virtual machine error occurred attempting the operation.
278 </desc>
279 </result>
280
281 <result name="VBOX_E_FILE_ERROR" value="0x80BB0004">
282 <desc>
283 File not accessible or erroneous file contents.
284 </desc>
285 </result>
286
287 <result name="VBOX_E_IPRT_ERROR" value="0x80BB0005">
288 <desc>
289 Runtime subsystem error.
290 </desc>
291 </result>
292
293 <result name="VBOX_E_PDM_ERROR" value="0x80BB0006">
294 <desc>
295 Pluggable Device Manager error.
296 </desc>
297 </result>
298
299 <result name="VBOX_E_INVALID_OBJECT_STATE" value="0x80BB0007">
300 <desc>
301 Current object state prohibits operation.
302 </desc>
303 </result>
304
305 <result name="VBOX_E_HOST_ERROR" value="0x80BB0008">
306 <desc>
307 Host operating system related error.
308 </desc>
309 </result>
310
311 <result name="VBOX_E_NOT_SUPPORTED" value="0x80BB0009">
312 <desc>
313 Requested operation is not supported.
314 </desc>
315 </result>
316
317 <result name="VBOX_E_XML_ERROR" value="0x80BB000A">
318 <desc>
319 Invalid XML found.
320 </desc>
321 </result>
322
323 <result name="VBOX_E_INVALID_SESSION_STATE" value="0x80BB000B">
324 <desc>
325 Current session state prohibits operation.
326 </desc>
327 </result>
328
329 <result name="VBOX_E_OBJECT_IN_USE" value="0x80BB000C">
330 <desc>
331 Object being in use prohibits operation.
332 </desc>
333 </result>
334
335 <!--
336 Note that src/VBox/Runtime/common/err/errmsgvboxcom.xsl will ignore
337 everything in <result>/<desc> after (and including) the first dot, so express
338 the matter of the error code in the first sentence and keep it short.
339 -->
340
341 <descGroup/>
342
343 <!--
344 // all common enums
345 /////////////////////////////////////////////////////////////////////////
346 -->
347
348 <enum
349 name="TSBool"
350 uuid="523ff64d-842a-4b1a-80e7-c311b028cb3a"
351 >
352 <desc>
353 Boolean variable having a third state, default.
354 </desc>
355
356 <const name="False" value="0"/>
357 <const name="True" value="1"/>
358 <const name="Default" value="2"/>
359 </enum>
360
361 <enum
362 name="AccessMode"
363 uuid="1da0007c-ddf7-4be8-bcac-d84a1558785f"
364 >
365 <desc>
366 Access mode for opening files.
367 </desc>
368
369 <const name="ReadOnly" value="1"/>
370 <const name="ReadWrite" value="2"/>
371 </enum>
372
373 <enum
374 name="MachineState"
375 uuid="73bf04d0-7c4f-4684-9abf-d65a9ad74343"
376 >
377 <desc>
378 Virtual machine execution state.
379
380 This enumeration represents possible values of the <link
381 to="IMachine::state"/> attribute.
382
383 Below is the basic virtual machine state diagram. It shows how the state
384 changes during virtual machine execution. The text in square braces shows
385 a method of the IConsole interface that performs the given state
386 transition.
387
388 <pre>
389 +---------[powerDown()] &lt;- Stuck &lt;--[failure]-+
390 V |
391 +-&gt; PoweredOff --+--&gt;[powerUp()]--&gt; Starting --+ | +-----[resume()]-----+
392 | | | | V |
393 | Aborted -----+ +--&gt; Running --[pause()]--&gt; Paused
394 | | ^ | ^ |
395 | Saved -----------[powerUp()]--&gt; Restoring -+ | | | |
396 | ^ | | | |
397 | | +-----------------------------------------+-|-------------------+ +
398 | | | | |
399 | | +-- Saving &lt;--------[takeSnapshot()]&lt;-------+---------------------+
400 | | | |
401 | +-------- Saving &lt;--------[saveState()]&lt;----------+---------------------+
402 | | |
403 +-------------- Stopping -------[powerDown()]&lt;----------+---------------------+
404 </pre>
405
406 Note that states to the right from PoweredOff, Aborted and Saved in the
407 above diagram are called <i>online VM states</i>. These states
408 represent the virtual machine which is being executed in a dedicated
409 process (usually with a GUI window attached to it where you can see the
410 activity of the virtual machine and interact with it). There are two
411 special pseudo-states, FirstOnline and LastOnline, that can be used in
412 relational expressions to detect if the given machine state is online or
413 not:
414
415 <pre>
416 if (machine.GetState() &gt;= MachineState_FirstOnline &amp;&amp;
417 machine.GetState() &lt;= MachineState_LastOnline)
418 {
419 ...the machine is being executed...
420 }
421 </pre>
422
423 When the virtual machine is in one of the online VM states (that is, being
424 executed), only a few machine settings can be modified. Methods working
425 with such settings contain an explicit note about that. An attempt to
426 change any oter setting or perform a modifying operation during this time
427 will result in the <link to="VBOX_E_INVALID_VM_STATE"/> error.
428
429 All online states except Running, Paused and Stuck are transitional: they
430 represent temporary conditions of the virtual machine that will last as
431 long as the operation that initiated such a condition.
432
433 The Stuck state is a special case. It means that execution of the machine
434 has reached the "Guru Meditation" condition. This condition indicates an
435 internal VMM (virtual machine manager) failure which may happen as a
436 result of either an unhandled low-level virtual hardware exception or one
437 of the recompiler exceptions (such as the <i>too-many-traps</i>
438 condition).
439
440 Note also that any online VM state may transit to the Aborted state. This
441 happens if the process that is executing the virtual machine terminates
442 unexpectedly (for example, crashes). Other than that, the Aborted state is
443 equivalent to PoweredOff.
444
445 There are also a few additional state diagrams that do not deal with
446 virtual machine execution and therefore are shown separately. The states
447 shown on these diagrams are called <i>offline VM states</i> (this includes
448 PoweredOff, Aborted and Saved too).
449
450 The first diagram shows what happens when a lengthy setup operation is
451 being executed (such as <link to="IMachine::attachHardDisk"/>).
452
453 <pre>
454 +----------------------------------(same state as before the call)------+
455 | |
456 +-&gt; PoweredOff --+ |
457 | | |
458 |-&gt; Aborted -----+--&gt;[lengthy VM configuration call] --&gt; SettingUp -----+
459 | |
460 +-&gt; Saved -------+
461 </pre>
462
463 The next two diagrams demonstrate the process of taking a snapshot of a
464 powered off virtual machine and performing one of the "discard..."
465 operations, respectively.
466
467 <pre>
468 +----------------------------------(same state as before the call)------+
469 | |
470 +-&gt; PoweredOff --+ |
471 | +--&gt;[takeSnapshot()] -------------------&gt; Saving ------+
472 +-&gt; Aborted -----+
473
474 +-&gt; PoweredOff --+
475 | |
476 | Aborted -----+--&gt;[discardSnapshot() ]-------------&gt; Discarding --+
477 | | [discardCurrentState()] |
478 +-&gt; Saved -------+ [discardCurrentSnapshotAndState()] |
479 | |
480 +---(Saved if restored from an online snapshot, PoweredOff otherwise)---+
481 </pre>
482
483 Note that the Saving state is present in both the offline state group and
484 online state group. Currently, the only way to determine what group is
485 assumed in a particular case is to remember the previous machine state: if
486 it was Running or Paused, then Saving is an online state, otherwise it is
487 an offline state. This inconsistency may be removed in one of the future
488 versions of VirtualBox by adding a new state.
489
490 <note internal="yes">
491 For whoever decides to touch this enum: In order to keep the
492 comparisons involving FirstOnline and LastOnline pseudo-states valid,
493 the numeric values of these states must be correspondingly updated if
494 needed: for any online VM state, the condition
495 <tt>FirstOnline &lt;= state &lt;= LastOnline</tt> must be
496 @c true. The same relates to transient states for which
497 the condition <tt>FirstOnline &lt;= state &lt;= LastOnline</tt> must be
498 @c true.
499 </note>
500 </desc>
501
502 <const name="Null" value="0">
503 <desc>Null value (never used by the API).</desc>
504 </const>
505 <const name="PoweredOff" value="1">
506 <desc>
507 The machine is not running.
508 </desc>
509 </const>
510 <const name="Saved" value="2">
511 <desc>
512 The machine is not currently running, but the execution state of the machine
513 has been saved to an external file when it was running.
514 </desc>
515 </const>
516 <const name="Aborted" value="3">
517 <desc>
518 The process running the machine has terminated abnormally.
519 </desc>
520 </const>
521 <const name="Running" value="4">
522 <desc>
523 The machine is currently being executed.
524 <note internal="yes">
525 For whoever decides to touch this enum: In order to keep the
526 comparisons in the old source code valid, this state must immediately
527 precede the Paused state.
528 </note>
529 </desc>
530 </const>
531 <const name="Paused" value="5">
532 <desc>
533 Execution of the machine has been paused.
534 <note internal="yes">
535 For whoever decides to touch this enum: In order to keep the
536 comparisons in the old source code valid, this state must immediately
537 follow the Running state.
538 </note>
539 </desc>
540 </const>
541 <const name="Stuck" value="6">
542 <desc>
543 Execution of the machine has reached the "Guru Meditation"
544 condition.
545 </desc>
546 </const>
547 <const name="Starting" value="7">
548 <desc>
549 Machine is being started after powering it on from a
550 zero execution state.
551 </desc>
552 </const>
553 <const name="Stopping" value="8">
554 <desc>
555 Machine is being normally stopped powering it off, or after the guest OS
556 has initiated a shutdown sequence.
557 </desc>
558 </const>
559 <const name="Saving" value="9">
560 <desc>
561 Machine is saving its execution state to a file or an online
562 snapshot of the machine is being taken.
563 </desc>
564 </const>
565 <const name="Restoring" value="10">
566 <desc>
567 Execution state of the machine is being restored from a file
568 after powering it on from the saved execution state.
569 </desc>
570 </const>
571 <const name="Discarding" value="11">
572 <desc>
573 Snapshot of the machine is being discarded.
574 </desc>
575 </const>
576 <const name="SettingUp" value="12">
577 <desc>
578 Lengthy setup operation is in progress.
579 </desc>
580 </const>
581
582 <const name="FirstOnline" value="4" wsmap="suppress"> <!-- Running -->
583 <desc>
584 Pseudo-state: first online state (for use in relational expressions).
585 </desc>
586 </const>
587 <const name="LastOnline" value="10" wsmap="suppress"> <!-- Restoring -->
588 <desc>
589 Pseudo-state: last online state (for use in relational expressions).
590 </desc>
591 </const>
592
593 <const name="FirstTransient" value="7" wsmap="suppress"> <!-- Starting -->
594 <desc>
595 Pseudo-state: first transient state (for use in relational expressions).
596 </desc>
597 </const>
598 <const name="LastTransient" value="12" wsmap="suppress"> <!-- SettingUp -->
599 <desc>
600 Pseudo-state: last transient state (for use in relational expressions).
601 </desc>
602 </const>
603
604 </enum>
605
606 <enum
607 name="SessionState"
608 uuid="CF2700C0-EA4B-47ae-9725-7810114B94D8"
609 >
610 <desc>
611 Session state. This enumeration represents possible values of
612 <link to="IMachine::sessionState"/> and <link to="ISession::state"/>
613 attributes. See individual enumerator descriptions for the meaning for
614 every value.
615 </desc>
616
617 <const name="Null" value="0">
618 <desc>Null value (never used by the API).</desc>
619 </const>
620 <const name="Closed" value="1">
621 <desc>
622 The machine has no open sessions (<link to="IMachine::sessionState"/>);
623 the session is closed (<link to="ISession::state"/>)
624 </desc>
625 </const>
626 <const name="Open" value="2">
627 <desc>
628 The machine has an open direct session (<link to="IMachine::sessionState"/>);
629 the session is open (<link to="ISession::state"/>)
630 </desc>
631 </const>
632 <const name="Spawning" value="3">
633 <desc>
634 A new (direct) session is being opened for the machine
635 as a result of <link to="IVirtualBox::openRemoteSession"/>
636 call (<link to="IMachine::sessionState"/>);
637 the session is currently being opened
638 as a result of <link to="IVirtualBox::openRemoteSession"/>
639 call (<link to="ISession::state"/>)
640 </desc>
641 </const>
642 <const name="Closing" value="4">
643 <desc>
644 The direct session is being closed (<link to="IMachine::sessionState"/>);
645 the session is being closed (<link to="ISession::state"/>)
646 </desc>
647 </const>
648 </enum>
649
650 <enum
651 name="SessionType"
652 uuid="A13C02CB-0C2C-421E-8317-AC0E8AAA153A"
653 >
654 <desc>
655 Session type. This enumeration represents possible values of the
656 <link to="ISession::type"/> attribute.
657 </desc>
658
659 <const name="Null" value="0">
660 <desc>Null value (never used by the API).</desc>
661 </const>
662 <const name="Direct" value="1">
663 <desc>
664 Direct session
665 (opened by <link to="IVirtualBox::openSession"/>)
666 </desc>
667 </const>
668 <const name="Remote" value="2">
669 <desc>
670 Remote session
671 (opened by <link to="IVirtualBox::openRemoteSession"/>)
672 </desc>
673 </const>
674 <const name="Existing" value="3">
675 <desc>
676 Existing session
677 (opened by <link to="IVirtualBox::openExistingSession"/>)
678 </desc>
679 </const>
680 </enum>
681
682 <enum
683 name="DeviceType"
684 uuid="6d9420f7-0b56-4636-99f9-7346f1b01e57"
685 >
686 <desc>
687 Device type.
688 </desc>
689 <const name="Null" value="0">
690 <desc>
691 Null value, may also mean "no device" (not allowed for
692 <link to="IConsole::getDeviceActivity"/>).
693 </desc>
694 </const>
695 <const name="Floppy" value="1">
696 <desc>Floppy device.</desc>
697 </const>
698 <const name="DVD" value="2">
699 <desc>CD/DVD-ROM device.</desc>
700 </const>
701 <const name="HardDisk" value="3">
702 <desc>Hard disk device.</desc>
703 </const>
704 <const name="Network" value="4">
705 <desc>Network device.</desc>
706 </const>
707 <const name="USB" value="5">
708 <desc>USB device.</desc>
709 </const>
710 <const name="SharedFolder" value="6">
711 <desc>Shared folder device.</desc>
712 </const>
713 </enum>
714
715 <enum
716 name="DeviceActivity"
717 uuid="6FC8AEAA-130A-4eb5-8954-3F921422D707"
718 >
719 <desc>
720 Device activity for <link to="IConsole::getDeviceActivity"/>.
721 </desc>
722
723 <const name="Null" value="0"/>
724 <const name="Idle" value="1"/>
725 <const name="Reading" value="2"/>
726 <const name="Writing" value="3"/>
727 </enum>
728
729 <enum
730 name="ClipboardMode"
731 uuid="33364716-4008-4701-8f14-be0fa3d62950"
732 >
733 <desc>
734 Host-Guest clipboard interchange mode.
735 </desc>
736
737 <const name="Disabled" value="0"/>
738 <const name="HostToGuest" value="1"/>
739 <const name="GuestToHost" value="2"/>
740 <const name="Bidirectional" value="3"/>
741 </enum>
742
743 <enum
744 name="Scope"
745 uuid="7c91096e-499e-4eca-9f9b-9001438d7855"
746 >
747 <desc>
748 Scope of the operation.
749
750 A generic enumeration used in various methods to define the action or
751 argument scope.
752 </desc>
753
754 <const name="Global" value="0"/>
755 <const name="Machine" value="1"/>
756 <const name="Session" value="2"/>
757 </enum>
758
759 <enum
760 name="GuestStatisticType"
761 uuid="aa7c1d71-aafe-47a8-9608-27d2d337cf55"
762 >
763 <desc>
764 Statistics type for <link to="IGuest::getStatistic"/>.
765 </desc>
766
767 <const name="CPULoad_Idle" value="0">
768 <desc>
769 Idle CPU load (0-100%) for last interval.
770 </desc>
771 </const>
772 <const name="CPULoad_Kernel" value="1">
773 <desc>
774 Kernel CPU load (0-100%) for last interval.
775 </desc>
776 </const>
777 <const name="CPULoad_User" value="2">
778 <desc>
779 User CPU load (0-100%) for last interval.
780 </desc>
781 </const>
782 <const name="Threads" value="3">
783 <desc>
784 Total number of threads in the system.
785 </desc>
786 </const>
787 <const name="Processes" value="4">
788 <desc>
789 Total number of processes in the system.
790 </desc>
791 </const>
792 <const name="Handles" value="5">
793 <desc>
794 Total number of handles in the system.
795 </desc>
796 </const>
797 <const name="MemoryLoad" value="6">
798 <desc>
799 Memory load (0-100%).
800 </desc>
801 </const>
802 <const name="PhysMemTotal" value="7">
803 <desc>
804 Total physical memory in megabytes.
805 </desc>
806 </const>
807 <const name="PhysMemAvailable" value="8">
808 <desc>
809 Free physical memory in megabytes.
810 </desc>
811 </const>
812 <const name="PhysMemBalloon" value="9">
813 <desc>
814 Ballooned physical memory in megabytes.
815 </desc>
816 </const>
817 <const name="MemCommitTotal" value="10">
818 <desc>
819 Total amount of memory in the committed state in megabytes.
820 </desc>
821 </const>
822 <const name="MemKernelTotal" value="11">
823 <desc>
824 Total amount of memory used by the guest OS's kernel in megabytes.
825 </desc>
826 </const>
827 <const name="MemKernelPaged" value="12">
828 <desc>
829 Total amount of paged memory used by the guest OS's kernel in megabytes.
830 </desc>
831 </const>
832 <const name="MemKernelNonpaged" value="13">
833 <desc>
834 Total amount of non-paged memory used by the guest OS's kernel in megabytes.
835 </desc>
836 </const>
837 <const name="MemSystemCache" value="14">
838 <desc>
839 Total amount of memory used by the guest OS's system cache in megabytes.
840 </desc>
841 </const>
842 <const name="PageFileSize" value="15">
843 <desc>
844 Pagefile size in megabytes.
845 </desc>
846 </const>
847 <const name="SampleNumber" value="16">
848 <desc>
849 Statistics sample number
850 </desc>
851 </const>
852 <const name="MaxVal" value="17"/>
853 </enum>
854
855 <enum
856 name="BIOSBootMenuMode"
857 uuid="ae4fb9f7-29d2-45b4-b2c7-d579603135d5"
858 >
859 <desc>
860 BIOS boot menu mode.
861 </desc>
862
863 <const name="Disabled" value="0"/>
864 <const name="MenuOnly" value="1"/>
865 <const name="MessageAndMenu" value="2"/>
866 </enum>
867
868 <enum
869 name="DriveState"
870 uuid="cb7233b7-c519-42a5-8310-1830953cacbc"
871 >
872 <const name="Null" value="0">
873 <desc>Null value (never used by the API).</desc>
874 </const>
875 <const name="NotMounted" value="1"/>
876 <const name="ImageMounted" value="2"/>
877 <const name="HostDriveCaptured" value="3"/>
878 </enum>
879
880 <enum
881 name="ProcessorFeature"
882 uuid="b8353b35-705d-4796-9967-ebfb7ba54af4"
883 >
884 <desc>
885 CPU features.
886 </desc>
887
888 <const name="HWVirtEx" value="0"/>
889 <const name="PAE" value="1"/>
890 <const name="LongMode" value="2"/>
891 </enum>
892
893
894 <!--
895 // IVirtualBoxErrorInfo
896 /////////////////////////////////////////////////////////////////////////
897 -->
898
899 <interface
900 name="IVirtualBoxErrorInfo" extends="$errorinfo"
901 uuid="bcae7fc3-3fd0-4bac-923c-ec1596c7bc83"
902 supportsErrorInfo="no"
903 wsmap="suppress"
904 >
905 <desc>
906 The IVirtualBoxErrorInfo interface represents extended error information.
907
908 Extended error information can be set by VirtualBox components after
909 unsuccessful or partially successful method invocation. This information
910 can be retrieved by the calling party as an IVirtualBoxErrorInfo object
911 and then shown to the client in addition to the plain 32-bit result code.
912
913 In MS COM, this interface extends the IErrorInfo interface,
914 in XPCOM, it extends the nsIException interface. In both cases,
915 it provides a set of common attributes to retrieve error
916 information.
917
918 Sometimes invocation of some component's method may involve methods of
919 other components that may also fail (independently of this method's
920 failure), or a series of non-fatal errors may precede a fatal error that
921 causes method failure. In cases like that, it may be desirable to preserve
922 information about all errors happened during method invocation and deliver
923 it to the caller. The <link to="#next"/> attribute is intended
924 specifically for this purpose and allows to represent a chain of errors
925 through a single IVirtualBoxErrorInfo object set after method invocation.
926
927 Note that errors are stored to a chain in the reverse order, i.e. the
928 initial error object you query right after method invocation is the last
929 error set by the callee, the object it points to in the @a next attribute
930 is the previous error and so on, up to the first error (which is the last
931 in the chain).
932 </desc>
933
934 <attribute name="resultCode" type="long" readonly="yes">
935 <desc>
936 Result code of the error.
937 Usually, it will be the same as the result code returned
938 by the method that provided this error information, but not
939 always. For example, on Win32, CoCreateInstance() will most
940 likely return E_NOINTERFACE upon unsuccessful component
941 instantiation attempt, but not the value the component factory
942 returned. Value is typed 'long', not 'result',
943 to make interface usable from scripting languages.
944 <note>
945 In MS COM, there is no equivalent.
946 In XPCOM, it is the same as nsIException::result.
947 </note>
948 </desc>
949 </attribute>
950
951 <attribute name="interfaceID" type="uuid" readonly="yes">
952 <desc>
953 UUID of the interface that defined the error.
954 <note>
955 In MS COM, it is the same as IErrorInfo::GetGUID.
956 In XPCOM, there is no equivalent.
957 </note>
958 </desc>
959 </attribute>
960
961 <attribute name="component" type="wstring" readonly="yes">
962 <desc>
963 Name of the component that generated the error.
964 <note>
965 In MS COM, it is the same as IErrorInfo::GetSource.
966 In XPCOM, there is no equivalent.
967 </note>
968 </desc>
969 </attribute>
970
971 <attribute name="text" type="wstring" readonly="yes">
972 <desc>
973 Text description of the error.
974 <note>
975 In MS COM, it is the same as IErrorInfo::GetDescription.
976 In XPCOM, it is the same as nsIException::message.
977 </note>
978 </desc>
979 </attribute>
980
981 <attribute name="next" type="IVirtualBoxErrorInfo" readonly="yes">
982 <desc>
983 Next error object if there is any, or @c null otherwise.
984 <note>
985 In MS COM, there is no equivalent.
986 In XPCOM, it is the same as nsIException::inner.
987 </note>
988 </desc>
989 </attribute>
990
991 </interface>
992
993
994 <!--
995 // IVirtualBox
996 /////////////////////////////////////////////////////////////////////////
997 -->
998
999 <interface
1000 name="IVirtualBoxCallback" extends="$unknown"
1001 uuid="2990059f-5bc8-4635-8415-658917cd3186"
1002 wsmap="suppress"
1003 >
1004 <method name="onMachineStateChange">
1005 <desc>
1006 The execution state of the given machine has changed.
1007 <see>IMachine::state</see>
1008 </desc>
1009 <param name="machineId" type="wstring" dir="in">
1010 <desc>ID of the machine this event relates to.</desc>
1011 </param>
1012 <param name="state" type="MachineState" dir="in">
1013 <desc>New execution state.</desc>
1014 </param>
1015 </method>
1016
1017 <method name="onMachineDataChange">
1018 <desc>
1019 Any of the settings of the given machine has changed.
1020 </desc>
1021 <param name="machineId" type="wstring" dir="in">
1022 <desc>ID of the machine this event relates to.</desc>
1023 </param>
1024 </method>
1025
1026 <method name="onExtraDataCanChange">
1027 <desc>
1028 Notification when someone tries to change extra data for
1029 either the given machine or (if @c null) global extra data.
1030 This gives the chance to veto against changes.
1031 </desc>
1032 <param name="machineId" type="wstring" dir="in">
1033 <desc>
1034 ID of the machine this event relates to
1035 (@c null ID for global extra data change requests).
1036 </desc>
1037 </param>
1038 <param name="key" type="wstring" dir="in">
1039 <desc>
1040 Extra data key for the attempted write.
1041 </desc>
1042 </param>
1043 <param name="value" type="wstring" dir="in">
1044 <desc>
1045 Extra data value for the given key.
1046 </desc>
1047 </param>
1048 <param name="error" type="wstring" dir="out">
1049 <desc>
1050 Optional error message describing the reason of the
1051 veto (ignored if this notification returns @c true).
1052 </desc>
1053 </param>
1054 <param name="allowChange" type="boolean" dir="return">
1055 <desc>
1056 Flag to indicate whether the callee agrees (@c true)
1057 or vetoes against the change (@c false).
1058 </desc>
1059 </param>
1060 </method>
1061
1062 <method name="onExtraDataChange">
1063 <desc>
1064 Notification when machine specific or global extra data
1065 has changed.
1066 </desc>
1067 <param name="machineId" type="wstring" dir="in">
1068 <desc>
1069 ID of the machine this event relates to.
1070 Null for global extra data changes.
1071 </desc>
1072 </param>
1073 <param name="key" type="wstring" dir="in">
1074 <desc>
1075 Extra data key that has changed.
1076 </desc>
1077 </param>
1078 <param name="value" type="wstring" dir="in">
1079 <desc>
1080 Extra data value for the given key.
1081 </desc>
1082 </param>
1083 </method>
1084
1085 <method name="onMediaRegistered">
1086 <desc>
1087 The given media was registered or unregistered
1088 within this VirtualBox installation.
1089
1090 The @a mediaType parameter describes what type of
1091 media the specified @a mediaId refers to. Possible
1092 values are:
1093
1094 <ul>
1095 <li><link to="DeviceType_HardDisk"/>: the media is a hard disk
1096 that, if registered, can be obtained using the
1097 <link to="IVirtualBox::getHardDisk"/> call.</li>
1098 <li><link to="DeviceType_DVD"/>: the media is a CD/DVD image
1099 that, if registered, can be obtained using the
1100 <link to="IVirtualBox::getDVDImage"/> call.</li>
1101 <li><link to="DeviceType_Floppy"/>: the media is a Floppy image
1102 that, if registered, can be obtained using the
1103 <link to="IVirtualBox::getFloppyImage"/> call.</li>
1104 </ul>
1105
1106 Note that if this is a deregistration notification,
1107 there is no way to access the object representing the
1108 unregistered media. It is supposed that the
1109 application will do required cleanup based on the
1110 @a mediaId value.
1111 </desc>
1112 <param name="mediaId" type="wstring" dir="in">
1113 <desc>ID of the media this event relates to.</desc>
1114 </param>
1115 <param name="mediaType" type="DeviceType" dir="in">
1116 <desc>Type of the media this event relates to.</desc>
1117 </param>
1118 <param name="registered" type="boolean" dir="in">
1119 <desc>
1120 If @c true, the media was registered, otherwise it was
1121 unregistered.
1122 </desc>
1123 </param>
1124 </method>
1125
1126 <method name="onMachineRegistered">
1127 <desc>
1128 The given machine was registered or unregistered
1129 within this VirtualBox installation.
1130 </desc>
1131 <param name="machineId" type="wstring" dir="in">
1132 <desc>ID of the machine this event relates to.</desc>
1133 </param>
1134 <param name="registered" type="boolean" dir="in">
1135 <desc>
1136 If @c true, the machine was registered, otherwise it was
1137 unregistered.
1138 </desc>
1139 </param>
1140 </method>
1141
1142 <method name="onSessionStateChange">
1143 <desc>
1144 The state of the session for the given machine was changed.
1145 <see>IMachine::sessionState</see>
1146 </desc>
1147 <param name="machineId" type="wstring" dir="in">
1148 <desc>ID of the machine this event relates to.</desc>
1149 </param>
1150 <param name="state" type="SessionState" dir="in">
1151 <desc>New session state.</desc>
1152 </param>
1153 </method>
1154
1155 <method name="onSnapshotTaken">
1156 <desc>
1157 A new snapshot of the machine has been taken.
1158 <see>ISnapshot</see>
1159 </desc>
1160 <param name="machineId" type="wstring" dir="in">
1161 <desc>ID of the machine this event relates to.</desc>
1162 </param>
1163 <param name="snapshotId" type="wstring" dir="in">
1164 <desc>ID of the new snapshot.</desc>
1165 </param>
1166 </method>
1167
1168 <method name="onSnapshotDiscarded">
1169 <desc>
1170 Snapshot of the given machine has been discarded.
1171
1172 <note>
1173 This notification is delivered <b>after</b> the snapshot
1174 object has been uninitialized on the server (so that any
1175 attempt to call its methods will return an error).
1176 </note>
1177
1178 <see>ISnapshot</see>
1179 </desc>
1180 <param name="machineId" type="wstring" dir="in">
1181 <desc>ID of the machine this event relates to.</desc>
1182 </param>
1183 <param name="snapshotId" type="wstring" dir="in">
1184 <desc>
1185 ID of the discarded snapshot. @c null means the current machine
1186 state has been discarded (restored from the current snapshot).
1187 </desc>
1188 </param>
1189 </method>
1190
1191 <method name="onSnapshotChange">
1192 <desc>
1193 Snapshot properties (name and/or description) have been changed.
1194 <see>ISnapshot</see>
1195 </desc>
1196 <param name="machineId" type="wstring" dir="in">
1197 <desc>ID of the machine this event relates to.</desc>
1198 </param>
1199 <param name="snapshotId" type="wstring" dir="in">
1200 <desc>ID of the changed snapshot.</desc>
1201 </param>
1202 </method>
1203
1204 <method name="onGuestPropertyChange">
1205 <desc>
1206 Notification when a guest property has changed.
1207 </desc>
1208 <param name="machineId" type="wstring" dir="in">
1209 <desc>
1210 ID of the machine this event relates to.
1211 </desc>
1212 </param>
1213 <param name="name" type="wstring" dir="in">
1214 <desc>
1215 The name of the property that has changed.
1216 </desc>
1217 </param>
1218 <param name="value" type="wstring" dir="in">
1219 <desc>
1220 The new property value.
1221 </desc>
1222 </param>
1223 <param name="flags" type="wstring" dir="in">
1224 <desc>
1225 The new property flags.
1226 </desc>
1227 </param>
1228 </method>
1229
1230 </interface>
1231
1232 <interface
1233 name="IDHCPServer" extends="$unknown"
1234 uuid="6cfe387c-74fb-4ca7-bff6-973bec8af7a3"
1235 wsmap="managed"
1236 >
1237 <desc>
1238 The IDHCPServer interface represents the vbox dhcp server configuration.
1239
1240 To enumerate all the dhcp servers on the host, use the
1241 <link to="IVirtualBox::DHCPServers"/> attribute.
1242 </desc>
1243
1244 <attribute name="enabled" type="boolean">
1245 <desc>
1246 specifies if the dhcp server is enabled
1247 </desc>
1248 </attribute>
1249
1250 <attribute name="IPAddress" type="wstring" readonly="yes">
1251 <desc>
1252 specifies server IP
1253 </desc>
1254 </attribute>
1255
1256 <attribute name="networkMask" type="wstring" readonly="yes">
1257 <desc>
1258 specifies server network mask
1259 </desc>
1260 </attribute>
1261
1262 <attribute name="networkName" type="wstring" readonly="yes">
1263 <desc>
1264 specifies internal network name the server is used for
1265 </desc>
1266 </attribute>
1267
1268 <attribute name="lowerIP" type="wstring" readonly="yes">
1269 <desc>
1270 specifies from IP adrres in server address range
1271 </desc>
1272 </attribute>
1273
1274 <attribute name="upperIP" type="wstring" readonly="yes">
1275 <desc>
1276 specifies to IP adrres in server address range
1277 </desc>
1278 </attribute>
1279
1280 <method name="setConfiguration">
1281 <desc>
1282 configures the server
1283 <result name="E_INVALIDARG">
1284 invalid configuration supplied
1285 </result>
1286 </desc>
1287 <param name="IPAddress" type="wstring" dir="in">
1288 <desc>
1289 server IP address
1290 </desc>
1291 </param>
1292 <param name="networkMask" type="wstring" dir="in">
1293 <desc>
1294 server network mask
1295 </desc>
1296 </param>
1297 <param name="FromIPAddress" type="wstring" dir="in">
1298 <desc>
1299 server From IP address for address range
1300 </desc>
1301 </param>
1302 <param name="ToIPAddress" type="wstring" dir="in">
1303 <desc>
1304 server To IP address for address range
1305 </desc>
1306 </param>
1307 </method>
1308
1309 <method name="start">
1310 <desc>
1311 Starts DHCP server process.
1312 <result name="E_FAIL">
1313 Failed to start the process.
1314 </result>
1315 </desc>
1316 <param name="networkName" type="wstring" dir="in">
1317 <desc>
1318 Name of internal network DHCP server should attach to.
1319 </desc>
1320 </param>
1321 <param name="trunkName" type="wstring" dir="in">
1322 <desc>
1323 Name of internal network trunk.
1324 </desc>
1325 </param>
1326 <param name="trunkType" type="wstring" dir="in">
1327 <desc>
1328 Type of internal network trunk.
1329 </desc>
1330 </param>
1331 </method>
1332
1333 <method name="stop">
1334 <desc>
1335 Stops DHCP server process.
1336 <result name="E_FAIL">
1337 Failed to stop the process.
1338 </result>
1339 </desc>
1340 </method>
1341 </interface>
1342
1343 <interface
1344 name="IVirtualBox" extends="$dispatched"
1345 uuid="3f4ab53a-199b-4526-a91a-93ff62e456b8"
1346 wsmap="managed"
1347 >
1348 <desc>
1349 The IVirtualBox interface represents the main interface exposed by the
1350 product that provides virtual machine management.
1351
1352 An instance of IVirtualBox is required for the product to do anything
1353 useful. Even though the interface does not expose this, internally,
1354 IVirtualBox is implemented as a singleton and actually lives in the
1355 process of the VirtualBox server (VBoxSVC.exe). This makes sure that
1356 IVirtualBox can track the state of all virtual machines on a particular
1357 host, regardless of which frontend started them.
1358
1359 To enumerate all the virtual machines on the host, use the
1360 <link to="IVirtualBox::machines"/> attribute.
1361 </desc>
1362
1363 <attribute name="version" type="wstring" readonly="yes">
1364 <desc>
1365 A string representing the version number of the product. The
1366 format is 3 integer numbers divided by dots (e.g. 1.0.1). The
1367 last number represents the build number and will frequently change.
1368 </desc>
1369 </attribute>
1370
1371 <attribute name="revision" type="unsigned long" readonly="yes">
1372 <desc>
1373 The internal build revision number of the product.
1374 </desc>
1375 </attribute>
1376
1377 <attribute name="packageType" type="wstring" readonly="yes">
1378 <desc>
1379 A string representing the package type of this product. The
1380 format is OS_ARCH_DIST where OS is either WINDOWS, LINUX,
1381 SOLARIS, DARWIN. ARCH is either 32BITS or 64BITS. DIST
1382 is either GENERIC, UBUNTU_606, UBUNTU_710, or something like
1383 this.
1384 </desc>
1385 </attribute>
1386
1387 <attribute name="homeFolder" type="wstring" readonly="yes">
1388 <desc>
1389 Full path to the directory where the global settings file,
1390 <tt>VirtualBox.xml</tt>, is stored.
1391
1392 In this version of VirtualBox, the value of this property is
1393 always <tt>&lt;user_dir&gt;/.VirtualBox</tt> (where
1394 <tt>&lt;user_dir&gt;</tt> is the path to the user directory,
1395 as determined by the host OS), and cannot be changed.
1396
1397 This path is also used as the base to resolve relative paths in
1398 places where relative paths are allowed (unless otherwise
1399 expressly indicated).
1400 </desc>
1401 </attribute>
1402
1403 <attribute name="settingsFilePath" type="wstring" readonly="yes">
1404 <desc>
1405 Full name of the global settings file.
1406 The value of this property corresponds to the value of
1407 <link to="#homeFolder"/> plus <tt>/VirtualBox.xml</tt>.
1408 </desc>
1409 </attribute>
1410
1411 <attribute name="settingsFileVersion" type="wstring" readonly="yes">
1412 <desc>
1413 Current version of the format of the global VirtualBox settings file
1414 (<tt>VirtualBox.xml</tt>).
1415
1416 The version string has the following format:
1417 <pre>
1418 x.y-platform
1419 </pre>
1420 where @c x and @c y are the major and the minor format
1421 versions, and @c platform is the platform identifier.
1422
1423 The current version usually matches the value of the
1424 <link to="#settingsFormatVersion"/> attribute unless the
1425 settings file was created by an older version of VirtualBox and there
1426 was a change of the settings file format since then.
1427
1428 Note that VirtualBox automatically converts settings files from older
1429 versions to the most recent version when reading them (usually at
1430 VirtualBox startup) but it doesn't save the changes back until
1431 you call a method that implicitly saves settings (such as
1432 <link to="#setExtraData"/>) or call <link to="#saveSettings"/>
1433 explicitly. Therefore, if the value of this attribute differs from the
1434 value of <link to="#settingsFormatVersion"/>, then it
1435 means that the settings file was converted but the result of the
1436 conversion is not yet saved to disk.
1437
1438 The above feature may be used by interactive front-ends to inform users
1439 about the settings file format change and offer them to explicitly save
1440 all converted settings files (the global and VM-specific ones),
1441 optionally create backup copies of the old settings files before saving,
1442 etc.
1443
1444 <see>settingsFormatVersion, saveSettingsWithBackup()</see>
1445 </desc>
1446 </attribute>
1447
1448 <attribute name="settingsFormatVersion" type="wstring" readonly="yes">
1449 <desc>
1450 Most recent version of the settings file format.
1451
1452 The version string has the following format:
1453 <pre>
1454 x.y-platform
1455 </pre>
1456 where @c x and @c y are the major and the minor format
1457 versions, and @c platform is the platform identifier.
1458
1459 VirtualBox uses this version of the format when saving settings files
1460 (either as a result of method calls that require to save settings or as
1461 a result of an explicit call to <link to="#saveSettings"/>).
1462
1463 <see>settingsFileVersion</see>
1464 </desc>
1465 </attribute>
1466
1467 <attribute name="host" type="IHost" readonly="yes">
1468 <desc>Associated host object.</desc>
1469 </attribute>
1470
1471 <attribute name="systemProperties" type="ISystemProperties" readonly="yes">
1472 <desc>Associated system information object.</desc>
1473 </attribute>
1474
1475 <attribute name="machines" type="IMachine" readonly="yes" safearray="yes">
1476 <desc>
1477 Array of machine objects registered within this VirtualBox instance.
1478 </desc>
1479 </attribute>
1480
1481 <attribute name="hardDisks" type="IHardDisk" readonly="yes" safearray="yes">
1482 <desc>
1483 Array of hard disk objects known to this VirtualBox installation.
1484
1485 This array contains only base (root) hard disks. All differencing
1486 hard disks of the given base hard disk can be enumerated using
1487 <link to="IHardDisk::children"/>.
1488 </desc>
1489 </attribute>
1490
1491 <attribute name="DVDImages" type="IDVDImage" readonly="yes" safearray="yes">
1492 <desc>
1493 Array of CD/DVD image objects registered with this VirtualBox instance.
1494 </desc>
1495 </attribute>
1496
1497 <attribute name="floppyImages" type="IFloppyImage" readonly="yes" safearray="yes">
1498 <desc>
1499 Array of floppy image objects registered with this VirtualBox instance.
1500 </desc>
1501 </attribute>
1502
1503 <attribute name="progressOperations" type="IProgress" readonly="yes" safearray="yes"/>
1504
1505 <attribute name="guestOSTypes" type="IGuestOSType" readonly="yes" safearray="yes"/>
1506
1507 <attribute name="sharedFolders" type="ISharedFolder" readonly="yes" safearray="yes">
1508 <desc>
1509 Collection of global shared folders. Global shared folders are
1510 available to all virtual machines.
1511
1512 New shared folders are added to the collection using
1513 <link to="#createSharedFolder"/>. Existing shared folders can be
1514 removed using <link to="#removeSharedFolder"/>.
1515
1516 <note>
1517 In the current version of the product, global shared folders are not
1518 implemented and therefore this collection is always empty.
1519 </note>
1520 </desc>
1521 </attribute>
1522
1523 <attribute name="performanceCollector" type="IPerformanceCollector" readonly="yes">
1524 <desc>
1525 Associated performance collector object.
1526 </desc>
1527 </attribute>
1528
1529 <attribute name="DHCPServers" type="IDHCPServer" safearray="yes" readonly="yes">
1530 <desc>
1531 dhcp server settings.
1532 </desc>
1533 </attribute>
1534
1535 <method name="createMachine">
1536 <desc>
1537 Creates a new virtual machine.
1538
1539 The new machine is created unregistered, with the initial configuration
1540 set according to the specified guest OS type. A typical sequence of
1541 actions to create a new virtual machine is as follows:
1542
1543 <ol>
1544 <li>
1545 Call this method to have a new machine created. The returned machine
1546 object will be "mutable" allowing to change any machine property.
1547 </li>
1548
1549 <li>
1550 Configure the machine using the appropriate attributes and methods.
1551 </li>
1552
1553 <li>
1554 Call <link to="IMachine::saveSettings" /> to write the settings
1555 to the machine's XML settings file. The configuration of the newly
1556 created machine will not be saved to disk until this method is
1557 called.
1558 </li>
1559
1560 <li>
1561 Call <link to="#registerMachine" /> to add the machine to the list
1562 of machines known to VirtualBox.
1563 </li>
1564 </ol>
1565
1566 You should specify valid name for the newly created machine when calling
1567 this method. See the <link to="IMachine::name"/> attribute description
1568 for more details about the machine name.
1569
1570 The specified guest OS type identifier must match an ID of one of known
1571 guest OS types listed in the <link to="IVirtualBox::guestOSTypes"/>
1572 array.
1573
1574 Every machine has a <i>settings file</i> that is used to store
1575 the machine configuration. This file is stored in a directory called the
1576 <i>machine settings subfolder</i>. Both the settings subfolder and file
1577 will have a name that corresponds to the name of the virtual machine.
1578 You can specify where to create the machine setting subfolder using the
1579 @a baseFolder argument. The base folder can be absolute (full path) or
1580 relative to the <link to="IVirtualBox::homeFolder">VirtualBox home
1581 directory</link>.
1582
1583 If @a baseFolder is a @c null or empty string (which is recommended), the
1584 <link to="ISystemProperties::defaultMachineFolder">default machine
1585 settings folder</link> will be used as a base folder for the created
1586 machine. Otherwise the given base folder will be used. In either case,
1587 the full path to the resulting settings file has the following
1588 structure:
1589 <pre>
1590 &lt;base_folder&gt;/&lt;machine_name&gt;/&lt;machine_name&gt;.xml
1591 </pre>
1592
1593 Note that if the resulting settings file already exists, this method
1594 will fail with <link to="VBOX_E_FILE_ERROR"/>.
1595
1596 Optionally, you may specify an UUID of to assign to the created machine.
1597 However, this is not recommended and you should normally pass an empty
1598 (@c null) UUID to this method so that a new UUID will be automatically
1599 generated for every created machine. You can use UUID
1600 00000000-0000-0000-0000-000000000000 as @c null value.
1601
1602 <note>
1603 There is no way to change the name of the settings file or
1604 subfolder of the created machine directly.
1605 </note>
1606
1607 <result name="VBOX_E_OBJECT_NOT_FOUND">
1608 @a osTypeId is invalid.
1609 </result>
1610 <result name="VBOX_E_FILE_ERROR">
1611 Resulting settings file name is invalid or the settings file already
1612 exists or could not be created due to an I/O error.
1613 </result>
1614 <result name="E_INVALIDARG">
1615 @a name is empty or @c null.
1616 </result>
1617 </desc>
1618
1619 <param name="name" type="wstring" dir="in">
1620 <desc>Machine name.</desc>
1621 </param>
1622 <param name="osTypeId" type="wstring" dir="in">
1623 <desc>Guest OS Type ID.</desc>
1624 </param>
1625 <param name="baseFolder" type="wstring" dir="in">
1626 <desc>Base machine folder (optional).</desc>
1627 </param>
1628 <param name="id" type="wstring" dir="in">
1629 <desc>Machine UUID (optional).</desc>
1630 </param>
1631 <param name="machine" type="IMachine" dir="return">
1632 <desc>Created machine object.</desc>
1633 </param>
1634 </method>
1635
1636 <method name="createLegacyMachine">
1637 <desc>
1638 Creates a new virtual machine in "legacy" mode, using the specified
1639 settings file to store machine settings.
1640
1641 As opposed to machines created by <link to="#createMachine"/>,
1642 the settings file of the machine created in "legacy" mode is not
1643 automatically renamed when the machine name is changed -- it will always
1644 remain the same as specified in this method call.
1645
1646 The specified settings file name can be absolute (full path) or relative
1647 to the <link to="IVirtualBox::homeFolder">VirtualBox home
1648 directory</link>. If the file name doesn't contain an extension, the
1649 default extension (.xml) will be appended.
1650
1651 Note that the configuration of the newly created machine is not
1652 saved to disk (and therefore no settings file is created)
1653 until <link to="IMachine::saveSettings"/> is called. If the
1654 specified settings file already exists, this method
1655 will fail with <link to="VBOX_E_FILE_ERROR"/>.
1656
1657 See <link to="#createMachine"/> for more information.
1658
1659 @deprecated This method may be removed later. Use <link
1660 to="IVirtualBox::createMachine"/> instead.
1661
1662 <note>
1663 There is no way to change the name of the settings file
1664 of the machine created in "legacy" mode.
1665 </note>
1666
1667 <result name="VBOX_E_OBJECT_NOT_FOUND">
1668 @a osTypeId is invalid.
1669 </result>
1670 <result name="VBOX_E_FILE_ERROR">
1671 @a settingsFile is invalid or the settings file already exists or
1672 could not be created due to an I/O error.
1673 </result>
1674 <result name="E_INVALIDARG">
1675 @a name or @a settingsFile is empty or @c null.
1676 </result>
1677 </desc>
1678
1679 <param name="name" type="wstring" dir="in">
1680 <desc>Machine name.</desc>
1681 </param>
1682 <param name="osTypeId" type="wstring" dir="in">
1683 <desc>Machine OS Type ID.</desc>
1684 </param>
1685 <param name="settingsFile" type="wstring" dir="in">
1686 <desc>Name of the machine settings file.</desc>
1687 </param>
1688 <param name="id" type="wstring" dir="in">
1689 <desc>Machine UUID (optional).</desc>
1690 </param>
1691 <param name="machine" type="IMachine" dir="return">
1692 <desc>Created machine object.</desc>
1693 </param>
1694 </method>
1695
1696 <method name="openMachine">
1697 <desc>
1698 Opens a virtual machine from the existing settings file.
1699 The opened machine remains unregistered until you call
1700 <link to="#registerMachine"/>.
1701
1702 The specified settings file name can be absolute
1703 (full path) or relative to the <link to="IVirtualBox::homeFolder">
1704 VirtualBox home directory</link>. This file must exist
1705 and must be a valid machine settings file whose contents
1706 will be used to construct the machine object.
1707
1708 @deprecated Will be removed soon.
1709 <result name="VBOX_E_FILE_ERROR">
1710 Settings file name invalid, not found or sharing violation.
1711 </result>
1712 </desc>
1713 <param name="settingsFile" type="wstring" dir="in">
1714 <desc>
1715 Name of the machine settings file.
1716 </desc>
1717 </param>
1718 <param name="machine" type="IMachine" dir="return">
1719 <desc>Opened machine object.</desc>
1720 </param>
1721 <note>
1722 <link to="IMachine::settingsModified"/> will return
1723 @c false for the created machine, until any of machine settings
1724 are changed.
1725 </note>
1726 </method>
1727
1728 <method name="registerMachine">
1729 <desc>
1730
1731 Registers the machine previously created using
1732 <link to="#createMachine"/> or opened using
1733 <link to="#openMachine"/> within this VirtualBox installation. After
1734 successful method invocation, the
1735 <link to="IVirtualBoxCallback::onMachineRegistered"/> signal is sent
1736 to all registered callbacks.
1737
1738 <note>
1739 This method implicitly calls <link to="IMachine::saveSettings"/>
1740 to save all current machine settings before registering it.
1741 </note>
1742
1743 <result name="VBOX_E_OBJECT_NOT_FOUND">
1744 No matching virtual machine found.
1745 </result>
1746 <result name="VBOX_E_INVALID_OBJECT_STATE">
1747 Virtual machine was not created within this VirtualBox instance.
1748 </result>
1749
1750 </desc>
1751 <param name="machine" type="IMachine" dir="in"/>
1752 </method>
1753
1754 <method name="getMachine">
1755 <desc>
1756 Attempts to find a virtual machine given its UUID.
1757 To look up a machine by name, use <link to="IVirtualBox::findMachine" />
1758 instead.
1759
1760 <result name="VBOX_E_OBJECT_NOT_FOUND">
1761 Could not find registered machine matching @a id.
1762 </result>
1763
1764 </desc>
1765 <param name="id" type="wstring" dir="in"/>
1766 <param name="machine" type="IMachine" dir="return"/>
1767 </method>
1768
1769 <method name="findMachine">
1770 <desc>
1771 Attempts to find a virtual machine given its name.
1772 To look up a machine by UUID, use <link to="IVirtualBox::getMachine" />
1773 instead.
1774
1775 <result name="VBOX_E_OBJECT_NOT_FOUND">
1776 Could not find registered machine matching @a name.
1777 </result>
1778
1779 </desc>
1780 <param name="name" type="wstring" dir="in"/>
1781 <param name="machine" type="IMachine" dir="return"/>
1782 </method>
1783
1784 <method name="unregisterMachine">
1785 <desc>
1786
1787 Unregisters the machine previously registered using
1788 <link to="#registerMachine"/>. After successful method invocation, the
1789 <link to="IVirtualBoxCallback::onMachineRegistered"/> signal is sent
1790 to all registered callbacks.
1791
1792 <note>
1793 The specified machine must not be in the Saved state, have an open
1794 (or a spawning) direct session associated with it, have snapshots or
1795 have hard disks attached.
1796 </note>
1797
1798 <note>
1799 This method implicitly calls <link to="IMachine::saveSettings"/> to
1800 save all current machine settings before unregistering it.
1801 </note>
1802
1803 <note>
1804 If the given machine is inaccessible (see
1805 <link to="IMachine::accessible"/>), it will be unregistered and
1806 fully uninitialized right afterwards. As a result, the returned
1807 machine object will be unusable and an attempt to call
1808 <b>any</b> method will return the "Object not ready" error.
1809 </note>
1810
1811 <result name="VBOX_E_OBJECT_NOT_FOUND">
1812 Could not find registered machine matching @a id.
1813 </result>
1814 <result name="VBOX_E_INVALID_VM_STATE">
1815 Machine is in Saved state.
1816 </result>
1817 <result name="VBOX_E_INVALID_OBJECT_STATE">
1818 Machine has snapshot or open session or hard disk attached.
1819 </result>
1820
1821 </desc>
1822 <param name="id" type="wstring" dir="in">
1823 <desc>UUID of the machine to unregister.</desc>
1824 </param>
1825 <param name="machine" type="IMachine" dir="return">
1826 <desc>Unregistered machine object.</desc>
1827 </param>
1828 </method>
1829
1830 <method name="createAppliance">
1831 <desc>
1832 Creates a new appliance object, which represents an appliance in the Open Virtual Machine
1833 Format (OVF). This can then be used to import an OVF appliance into VirtualBox or to export
1834 machines as an OVF appliance; see the documentation for <link to="IAppliance" /> for details.
1835 </desc>
1836 <param name="appliance" type="IAppliance" dir="return">
1837 <desc>New appliance.</desc>
1838 </param>
1839 </method>
1840
1841 <method name="createHardDisk">
1842 <desc>
1843 Creates a new base hard disk object that will use the given storage
1844 format and location for hard disk data.
1845
1846 Note that the actual storage unit is not created by this method. In
1847 order to do it, and before you are able to attach the created hard disk
1848 to virtual machines, you must call one of the following methods to
1849 allocate a format-specific storage unit at the specified location:
1850 <ul>
1851 <li><link to="IHardDisk::createBaseStorage"/></li>
1852 <li><link to="IHardDisk::createDiffStorage"/></li>
1853 </ul>
1854
1855 Some hard disk attributes, such as <link to="IHardDisk::id"/>, may
1856 remain uninitialized until the hard disk storage unit is successfully
1857 created by one of the above methods.
1858
1859 After the storage unit is successfully created, the hard disk gets
1860 remembered by this VirtualBox installation and will be accessible
1861 through <link to="#getHardDisk"/> and <link to="#findHardDisk"/>
1862 methods. Remembered root (base) hard disks are also returned as part of
1863 the <link to="#hardDisks"/> array. See IHardDisk for more details.
1864
1865 The list of all storage formats supported by this VirtualBox
1866 installation can be obtained using
1867 <link to="ISystemProperties::hardDiskFormats"/>. If the @a format
1868 attribute is empty or @c null then the default storage format
1869 specified by <link to="ISystemProperties::defaultHardDiskFormat"/> will
1870 be used for creating a storage unit of the hard disk.
1871
1872 Note that the format of the location string is storage format specific.
1873 See <link to="IMedium::location"/>, IHardDisk and
1874 <link to="ISystemProperties::defaultHardDiskFolder"/> for more details.
1875
1876 <result name="VBOX_E_OBJECT_NOT_FOUND">
1877 @a format identifier is invalid. See
1878 <link to="ISystemProperties::hardDiskFormats"/>.
1879 </result>
1880 <result name="VBOX_E_FILE_ERROR">
1881 @a location is a not valid file name (for file-based formats only).
1882 </result>
1883 </desc>
1884 <param name="format" type="wstring" dir="in">
1885 <desc>
1886 Identifier of the storage format to use for the new hard disk.
1887 </desc>
1888 </param>
1889 <param name="location" type="wstring" dir="in">
1890 <desc>
1891 Location of the storage unit for the new hard disk.
1892 </desc>
1893 </param>
1894 <param name="hardDisk" type="IHardDisk" dir="return">
1895 <desc>Created hard disk object.</desc>
1896 </param>
1897 </method>
1898
1899 <method name="openHardDisk">
1900 <desc>
1901 Opens a hard disk from an existing location, optionally replacing
1902 the image UUID and/or parent UUID.
1903
1904 After the hard disk is successfully opened by this method, it gets
1905 remembered by (known to) this VirtualBox installation and will be
1906 accessible through <link to="#getHardDisk"/> and
1907 <link to="#findHardDisk"/> methods. Remembered root (base) hard disks
1908 are also returned as part of the <link to="#hardDisks"/> array and can
1909 be attached to virtual machines. See IHardDisk for more details.
1910
1911 If a differencing hard disk is to be opened by this method, the
1912 operation will succeed only if its parent hard disk and all ancestors,
1913 if any, are already known to this VirtualBox installation (for example,
1914 were opened by this method before).
1915
1916 This method tries to guess the storage format of the specified hard disk
1917 by reading hard disk data at the specified location.
1918
1919 If @a write is ReadWrite (which it should be), the image is opened for
1920 read/write access and must have according permissions, as VirtualBox
1921 may actually write status information into the disk's metadata sections.
1922
1923 Note that write access is required for all typical image usage in VirtualBox,
1924 since VirtualBox may need to write metadata such as a UUID into the image.
1925 The only exception is opening a source image temporarily for copying and
1926 cloning when the image will quickly be closed again.
1927
1928 Note that the format of the location string is storage format specific.
1929 See <link to="IMedium::location"/>, IHardDisk and
1930 <link to="ISystemProperties::defaultHardDiskFolder"/> for more details.
1931
1932 <result name="VBOX_E_FILE_ERROR">
1933 Invalid hard disk storage file location or could not find the hard
1934 disk at the specified location.
1935 </result>
1936 <result name="VBOX_E_IPRT_ERROR">
1937 Could not get hard disk storage format.
1938 </result>
1939 <result name="E_INVALIDARG">
1940 Invalid hard disk storage format.
1941 </result>
1942
1943 </desc>
1944 <param name="location" type="wstring" dir="in">
1945 <desc>
1946 Location of the storage unit that contains hard disk data in one of
1947 the supported storage formats.
1948 </desc>
1949 </param>
1950 <param name="accessMode" type="AccessMode" dir="in">
1951 <desc>
1952 Determines whether to open the image in read/write or read-only mode.
1953 </desc>
1954 </param>
1955 <param name="setImageId" type="boolean" dir="in">
1956 <desc>
1957 Select whether a new image UUID is set or not.
1958 </desc>
1959 </param>
1960 <param name="imageId" type="wstring" dir="in">
1961 <desc>
1962 New UUID for the image. If an empty string is passed, then a new
1963 UUID is automatically created. Specifying a zero UUIDs is not valid.
1964 </desc>
1965 </param>
1966 <param name="setParentId" type="boolean" dir="in">
1967 <desc>
1968 Select whether a new parent UUID is set or not.
1969 </desc>
1970 </param>
1971 <param name="parentId" type="wstring" dir="in">
1972 <desc>
1973 New parent UUID for the image. If an empty string is passed, then a
1974 new UUID is automatically created, provided @a setParentId is
1975 @c true. A zero UUID is valid.
1976 </desc>
1977 </param>
1978 <param name="hardDisk" type="IHardDisk" dir="return">
1979 <desc>Opened hard disk object.</desc>
1980 </param>
1981 </method>
1982
1983 <method name="getHardDisk" const="yes">
1984 <desc>
1985 Returns a hard disk with the given UUID.
1986
1987 The hard disk with the given UUID must be known to this VirtualBox
1988 installation, i.e. it must be previously created by
1989 <link to="#createHardDisk"/> or opened by <link
1990 to="#openHardDisk"/>, or attached to some known virtual machine.
1991
1992 <result name="VBOX_E_OBJECT_NOT_FOUND">
1993 No hard disk object matching @a id found.
1994 </result>
1995
1996 </desc>
1997 <param name="id" type="wstring" dir="in">
1998 <desc>UUID of the hard disk to look for.</desc>
1999 </param>
2000 <param name="hardDisk" type="IHardDisk" dir="return">
2001 <desc>Found hard disk object.</desc>
2002 </param>
2003 </method>
2004
2005 <method name="findHardDisk">
2006 <desc>
2007 Returns a hard disk that uses the given location to store hard
2008 disk data.
2009
2010 The given hard disk must be known to this VirtualBox installation, i.e.
2011 it must be previously created by
2012 <link to="#createHardDisk"/> or opened by <link
2013 to="#openHardDisk"/>, or attached to some known virtual machine.
2014
2015 The search is done by comparing the value of the @a location argument to
2016 the <link to="IHardDisk::location"/> attribute of each known hard
2017 disk.
2018
2019 For locations represented by file names in the host's file system, the
2020 requested location can be a path relative to the
2021 <link to="IVirtualBox::homeFolder">VirtualBox home folder</link>. If
2022 only a file name without any path is given, the
2023 <link to="ISystemProperties::defaultHardDiskFolder"> default hard disk
2024 folder</link> will be prepended to the file name before searching. Note
2025 that on case sensitive file systems, a case sensitive comparison is
2026 performed, otherwise the case of symbols in the file path is ignored.
2027
2028 <result name="VBOX_E_OBJECT_NOT_FOUND">
2029 No hard disk object matching @a location found.
2030 </result>
2031
2032 </desc>
2033 <param name="location" type="wstring" dir="in">
2034 <desc>Location string to search for.</desc>
2035 </param>
2036 <param name="hardDisk" type="IHardDisk" dir="return">
2037 <desc>Found hard disk object.</desc>
2038 </param>
2039 </method>
2040
2041 <method name="openDVDImage">
2042 <desc>
2043 Opens a CD/DVD image contained in the specified file of the supported
2044 format and assigns it the given UUID.
2045
2046 After the image is successfully opened by this method, it gets
2047 remembered by (known to) this VirtualBox installation and will be
2048 accessible through <link to="#getDVDImage"/> and
2049 <link to="#findDVDImage"/> methods. Remembered images are also
2050 returned as part of the <link to="#DVDImages"/> array and can be mounted
2051 to virtual machines. See IMedium for more details.
2052
2053 See <link to="IMedium::location"/> to get more details about the format
2054 of the location string.
2055
2056 <note>
2057 Currently only ISO 9960 CD/DVD images are supported by VirtualBox.
2058 </note>
2059
2060 <result name="VBOX_E_FILE_ERROR">
2061 Invalid CD/DVD image file location or could not find the CD/DVD
2062 image at the specified location.
2063 </result>
2064 <result name="VBOX_E_INVALID_OBJECT_STATE">
2065 CD/DVD image already exists in the media registry.
2066 </result>
2067
2068 </desc>
2069 <param name="location" type="wstring" dir="in">
2070 <desc>
2071 Full path to the file that contains a valid CD/DVD image.
2072 </desc>
2073 </param>
2074 <param name="id" type="wstring" dir="in">
2075 <desc>
2076 UUID to assign to the given image within this VirtualBox installation.
2077 If an empty (@c null) UUID is specified, the system will randomly
2078 generate a new UUID.
2079 </desc>
2080 </param>
2081 <param name="image" type="IDVDImage" dir="return">
2082 <desc>Opened CD/DVD image object.</desc>
2083 </param>
2084 </method>
2085
2086 <method name="getDVDImage">
2087 <desc>
2088 Returns a CD/DVD image with the given UUID.
2089
2090 The image with the given UUID must be known to this VirtualBox
2091 installation, i.e. it must be previously opened by <link
2092 to="#openDVDImage"/>, or mounted to some known virtual machine.
2093
2094 <result name="VBOX_E_OBJECT_NOT_FOUND">
2095 No matching DVD image found in the media registry.
2096 </result>
2097
2098 </desc>
2099 <param name="id" type="wstring" dir="in">
2100 <desc>UUID of the image to look for.</desc>
2101 </param>
2102 <param name="image" type="IDVDImage" dir="return">
2103 <desc>Found CD/DVD image object.</desc>
2104 </param>
2105 </method>
2106
2107 <method name="findDVDImage">
2108 <desc>
2109 Returns a CD/DVD image with the given image location.
2110
2111 The image with the given UUID must be known to this VirtualBox
2112 installation, i.e. it must be previously opened by <link
2113 to="#openDVDImage"/>, or mounted to some known virtual machine.
2114
2115 The search is done by comparing the value of the @a location argument to
2116 the <link to="IMedium::location"/> attribute of each known CD/DVD image.
2117
2118 The requested location can be a path relative to the
2119 <link to="IVirtualBox::homeFolder">VirtualBox home folder</link>. If
2120 only a file name without any path is given, the
2121 <link to="ISystemProperties::defaultHardDiskFolder"> default hard disk
2122 folder</link> will be prepended to the file name before searching. Note
2123 that on case sensitive file systems, a case sensitive comparison is
2124 performed, otherwise the case in the file path is ignored.
2125
2126 <result name="VBOX_E_FILE_ERROR">
2127 Invalid image file location.
2128 </result>
2129 <result name="VBOX_E_OBJECT_NOT_FOUND">
2130 No matching DVD image found in the media registry.
2131 </result>
2132
2133 </desc>
2134 <param name="location" type="wstring" dir="in">
2135 <desc>CD/DVD image file path to look for.</desc>
2136 </param>
2137 <param name="image" type="IDVDImage" dir="return">
2138 <desc>Found CD/DVD image object.</desc>
2139 </param>
2140 </method>
2141
2142 <method name="openFloppyImage">
2143 <desc>
2144 Opens a floppy image contained in the specified file of the supported
2145 format and assigns it the given UUID.
2146
2147 After the image is successfully opened by this method, it gets
2148 remembered by (known to) this VirtualBox installation and will be
2149 accessible through <link to="#getFloppyImage"/> and
2150 <link to="#findFloppyImage"/> methods. Remembered images are also
2151 returned as part of the <link to="#floppyImages"/> array and can be
2152 mounted to virtual machines. See IMedium for more details.
2153
2154 See <link to="IMedium::location"/> to get more details about the format
2155 of the location string.
2156
2157 <result name="VBOX_E_FILE_ERROR">
2158 Invalid floppy image file location or could not find the floppy
2159 image at the specified location.
2160 </result>
2161 <result name="VBOX_E_INVALID_OBJECT_STATE">
2162 Floppy image already exists in the media registry.
2163 </result>
2164
2165 <note>
2166 Currently, only raw floppy images are supported by VirtualBox.
2167 </note>
2168 </desc>
2169 <param name="location" type="wstring" dir="in">
2170 <desc>
2171 Full path to the file that contains a valid floppy image.
2172 </desc>
2173 </param>
2174 <param name="id" type="wstring" dir="in">
2175 <desc>
2176 UUID to assign to the given image file within this VirtualBox
2177 installation. If an empty (@c null) UUID is specified, the system will
2178 randomly generate a new UUID.
2179 </desc>
2180 </param>
2181 <param name="image" type="IFloppyImage" dir="return">
2182 <desc>Opened floppy image object.</desc>
2183 </param>
2184 </method>
2185
2186 <method name="getFloppyImage">
2187 <desc>
2188 Returns a floppy image with the given UUID.
2189
2190 The image with the given UUID must be known to this VirtualBox
2191 installation, i.e. it must be previously opened by <link
2192 to="#openFloppyImage"/>, or mounted to some known virtual machine.
2193
2194 <result name="VBOX_E_OBJECT_NOT_FOUND">
2195 No matching floppy image found in the media registry.
2196 </result>
2197
2198 </desc>
2199 <param name="id" type="wstring" dir="in">
2200 <desc>UUID of the image to look for.</desc>
2201 </param>
2202 <param name="image" type="IFloppyImage" dir="return">
2203 <desc>Found floppy image object.</desc>
2204 </param>
2205 </method>
2206
2207 <method name="findFloppyImage">
2208 <desc>
2209 Returns a floppy image with the given image location.
2210
2211 The image with the given UUID must be known to this VirtualBox
2212 installation, i.e. it must be previously opened by <link
2213 to="#openFloppyImage"/>, or mounted to some known virtual machine.
2214
2215 The search is done by comparing the value of the @a location argument to
2216 the <link to="IMedium::location"/> attribute of each known floppy image.
2217
2218 The requested location can be a path relative to the
2219 <link to="IVirtualBox::homeFolder">VirtualBox home folder</link>. If
2220 only a file name without any path is given, the
2221 <link to="ISystemProperties::defaultHardDiskFolder"> default hard disk
2222 folder</link> will be prepended to the file name before searching. Note
2223 that on case sensitive file systems, a case sensitive comparison is
2224 performed, otherwise the case of symbols in the file path is ignored.
2225
2226 <result name="VBOX_E_FILE_ERROR">
2227 Invalid image file location.
2228 </result>
2229 <result name="VBOX_E_OBJECT_NOT_FOUND">
2230 No matching floppy image found in the media registry.
2231 </result>
2232
2233 </desc>
2234 <param name="location" type="wstring" dir="in">
2235 <desc>Floppy image file path to look for.</desc>
2236 </param>
2237 <param name="image" type="IFloppyImage" dir="return">
2238 <desc>Found floppy image object.</desc>
2239 </param>
2240 </method>
2241
2242 <method name="getGuestOSType">
2243 <desc>
2244 Returns an object describing the specified guest OS type.
2245
2246 The requested guest OS type is specified using a string which is a
2247 mnemonic identifier of the guest operating system, such as
2248 <tt>"win31"</tt> or <tt>"ubuntu"</tt>. The guest OS type ID of a
2249 particular virtual machine can be read or set using the
2250 <link to="IMachine::OSTypeId"/> attribute.
2251
2252 The <link to="IVirtualBox::guestOSTypes"/> collection contains all
2253 available guest OS type objects. Each object has an
2254 <link to="IGuestOSType::id"/> attribute which contains an identifier of
2255 the guest OS this object describes.
2256
2257 <result name="E_INVALIDARG">
2258 @a id is not a valid Guest OS type.
2259 </result>
2260
2261 </desc>
2262 <param name="id" type="wstring" dir="in">
2263 <desc>Guest OS type ID string.</desc>
2264 </param>
2265 <param name="type" type="IGuestOSType" dir="return">
2266 <desc>Guest OS type object.</desc>
2267 </param>
2268 </method>
2269
2270 <method name="createSharedFolder">
2271 <desc>
2272 Creates a new global shared folder by associating the given logical
2273 name with the given host path, adds it to the collection of shared
2274 folders and starts sharing it. Refer to the description of
2275 <link to="ISharedFolder"/> to read more about logical names.
2276 <note>
2277 In the current implementation, this operation is not
2278 implemented.
2279 </note>
2280 </desc>
2281 <param name="name" type="wstring" dir="in">
2282 <desc>Unique logical name of the shared folder.</desc>
2283 </param>
2284 <param name="hostPath" type="wstring" dir="in">
2285 <desc>Full path to the shared folder in the host file system.</desc>
2286 </param>
2287 <param name="writable" type="boolean" dir="in">
2288 <desc>Whether the share is writable or readonly</desc>
2289 </param>
2290 </method>
2291
2292 <method name="removeSharedFolder">
2293 <desc>
2294 Removes the global shared folder with the given name previously
2295 created by <link to="#createSharedFolder"/> from the collection of
2296 shared folders and stops sharing it.
2297 <note>
2298 In the current implementation, this operation is not
2299 implemented.
2300 </note>
2301 </desc>
2302 <param name="name" type="wstring" dir="in">
2303 <desc>Logical name of the shared folder to remove.</desc>
2304 </param>
2305 </method>
2306
2307 <method name="getNextExtraDataKey">
2308 <desc>
2309 Returns the global extra data key name following the supplied key.
2310
2311 An error is returned if the supplied @a key does not exist. An empty
2312 string is returned in @a nextKey if the supplied key is the last key. When
2313 supplying @c null or an empty string for the @a key, the first key item
2314 is returned in @a nextKey (if there is any). @a nextValue is an optional
2315 parameter and if supplied, the next key's value is returned in it.
2316
2317 <result name="VBOX_E_OBJECT_NOT_FOUND">
2318 Extra data @a key not found.
2319 </result>
2320
2321 </desc>
2322 <param name="key" type="wstring" dir="in">
2323 <desc>Name of the data key to follow.</desc>
2324 </param>
2325 <param name="nextKey" type="wstring" dir="out">
2326 <desc>Name of the next data key.</desc>
2327 </param>
2328 <param name="nextValue" type="wstring" dir="out">
2329 <desc>Value of the next data key.</desc>
2330 </param>
2331 </method>
2332
2333 <method name="getExtraData">
2334 <desc>
2335 Returns associated global extra data.
2336
2337 If the requested data @a key does not exist, this function will
2338 succeed and return an empty string in the @a value argument.
2339
2340 <result name="VBOX_E_FILE_ERROR">
2341 Settings file not accessible.
2342 </result>
2343 <result name="VBOX_E_XML_ERROR">
2344 Could not parse the settings file.
2345 </result>
2346
2347 </desc>
2348 <param name="key" type="wstring" dir="in">
2349 <desc>Name of the data key to get.</desc>
2350 </param>
2351 <param name="value" type="wstring" dir="return">
2352 <desc>Value of the requested data key.</desc>
2353 </param>
2354 </method>
2355
2356 <method name="setExtraData">
2357 <desc>
2358 Sets associated global extra data.
2359
2360 If you pass @c null or empty string as a key @a value, the given @a key
2361 will be deleted.
2362
2363 <note>
2364 Before performing the actual data change, this method will ask all
2365 registered callbacks using the
2366 <link to="IVirtualBoxCallback::onExtraDataCanChange"/>
2367 notification for a permission. If one of the callbacks refuses the
2368 new value, the change will not be performed.
2369 </note>
2370 <note>
2371 On success, the
2372 <link to="IVirtualBoxCallback::onExtraDataChange"/> notification
2373 is called to inform all registered callbacks about a successful data
2374 change.
2375 </note>
2376
2377 <result name="VBOX_E_FILE_ERROR">
2378 Settings file not accessible.
2379 </result>
2380 <result name="VBOX_E_XML_ERROR">
2381 Could not parse the settings file.
2382 </result>
2383 <result name="E_ACCESSDENIED">
2384 Modification request refused.
2385 </result>
2386
2387 </desc>
2388 <param name="key" type="wstring" dir="in">
2389 <desc>Name of the data key to set.</desc>
2390 </param>
2391 <param name="value" type="wstring" dir="in">
2392 <desc>Value to assign to the key.</desc>
2393 </param>
2394 </method>
2395
2396 <method name="openSession">
2397 <desc>
2398 Opens a new direct session with the given virtual machine.
2399
2400 A direct session acts as a local lock on the given VM.
2401 There can be only one direct session open at a time for every
2402 virtual machine, protecting the VM from being manipulated by
2403 conflicting actions from different processes. Only after a
2404 direct session has been opened, one can change all VM settings
2405 and execute the VM in the process space of the session object.
2406
2407 Sessions therefore can be compared to mutex semaphores that
2408 lock a given VM for modification and execution.
2409 See <link to="ISession">ISession</link> for details.
2410
2411 <note>Unless you are writing a new VM frontend, you will not
2412 want to execute a VM in the current process. To spawn a new
2413 process that executes a VM, use
2414 <link to="IVirtualBox::openRemoteSession" />
2415 instead.</note>
2416
2417 Upon successful return, the session object can be used to
2418 get access to the machine and to the VM console.
2419
2420 In VirtualBox terminology, the machine becomes "mutable" after
2421 a session has been opened. Note that the "mutable" machine
2422 object, on which you may invoke IMachine methods to change its
2423 settings, will be a different object from the immutable IMachine
2424 objects returned by various IVirtualBox methods. To obtain a
2425 mutable IMachine object (upon which you can invoke settings methods),
2426 use the <link to="ISession::machine" /> attribute.
2427
2428 One must always call <link to="ISession::close" /> to release the
2429 lock on the machine, or the machine's state will eventually be
2430 set to "Aborted".
2431
2432 In other words, to change settings on a machine, the following
2433 sequence is typically performed:
2434
2435 <ol>
2436 <li>Call this method (openSession) to have a machine locked for
2437 the current session.</li>
2438
2439 <li>Obtain a mutable IMachine object from <link to="ISession::machine" />.</li>
2440
2441 <li>Change the settings of the machine.</li>
2442
2443 <li>Call <link to="IMachine::saveSettings" />.</li>
2444
2445 <li>Close the session by calling <link to="ISession::close"/>.</li>
2446 </ol>
2447
2448 <result name="E_UNEXPECTED">
2449 Virtual machine not registered.
2450 </result>
2451 <result name="E_ACCESSDENIED">
2452 Process not started by OpenRemoteSession.
2453 </result>
2454 <result name="VBOX_E_OBJECT_NOT_FOUND">
2455 No matching virtual machine found.
2456 </result>
2457 <result name="VBOX_E_INVALID_OBJECT_STATE">
2458 Session already open or being opened.
2459 </result>
2460 <result name="VBOX_E_VM_ERROR">
2461 Failed to assign machine to session.
2462 </result>
2463
2464 </desc>
2465 <param name="session" type="ISession" dir="in">
2466 <desc>
2467 Session object that will represent the opened session after
2468 successful method invocation. This object must not represent
2469 the already open session.
2470 <note>
2471 This session will be automatically closed if the
2472 VirtualBox server is terminated for some reason.
2473 </note>
2474 </desc>
2475 </param>
2476 <param name="machineId" type="wstring" dir="in">
2477 <desc>ID of the virtual machine to open a session with.</desc>
2478 </param>
2479 </method>
2480
2481 <method name="openRemoteSession">
2482 <desc>
2483 Spawns a new process that executes a virtual machine (called a
2484 "remote session").
2485
2486 Opening a remote session causes the VirtualBox server to start a new
2487 process that opens a direct session with the given VM. As a result, the
2488 VM is locked by that direct session in the new process, preventing
2489 conflicting changes from other processes. Since sessions act as locks
2490 that prevent conflicting changes, one cannot open a remote session
2491 for a VM that already has another open session (direct or remote), or
2492 is currently in the process of opening one (see <link
2493 to="IMachine::sessionState"/>).
2494
2495 While the remote session still provides some level of control over the
2496 VM execution to the caller (using the <link to="IConsole" /> interface),
2497 not all VM settings are available for modification within the remote
2498 session context.
2499
2500 This operation can take some time (a new VM is started in a new process,
2501 for which memory and other resources need to be set up). Because of this,
2502 an <link to="IProgress" /> is returned to allow the caller to wait for this
2503 asynchronous operation to be completed. Until then, the remote session
2504 object remains in the closed state, and accessing the machine or its
2505 console through it is invalid. It is recommended to use
2506 <link to="IProgress::waitForCompletion" /> or similar calls to wait for
2507 completion.
2508
2509 As with all <link to="ISession" /> objects, it is recommended to call
2510 <link to="ISession::close" /> on the local session object once openRemoteSession()
2511 has been called. However, the session's state (see <link to="ISession::state" />)
2512 will not return to "Closed" until the remote session has also closed (i.e.
2513 until the VM is no longer running). In that case, however, the state of
2514 the session will automatically change back to "Closed".
2515
2516 Currently supported session types (values of the @a type
2517 argument) are:
2518 <ul>
2519 <li><tt>"gui"</tt>: VirtualBox Qt GUI session</li>
2520 <li><tt>"vrdp"</tt>: VirtualBox VRDP Server session</li>
2521 <li><tt>"sdl"</tt>: VirtualBox SDL GUI session</li>
2522 </ul>
2523
2524 The @a environment argument is a string containing definitions of
2525 environment variables in the following format:
2526 @code
2527 NAME[=VALUE]\n
2528 NAME[=VALUE]\n
2529 ...
2530 @endcode
2531 where <tt>\\n</tt> is the new line character. These environment
2532 variables will be appended to the environment of the VirtualBox server
2533 process. If an environment variable exists both in the server process
2534 and in this list, the value from this list takes precedence over the
2535 server's variable. If the value of the environment variable is
2536 omitted, this variable will be removed from the resulting environment.
2537 If the environment string is @c null or emprty, the server environment
2538 is inherited by the started process as is.
2539
2540 <see>openExistingSession</see>
2541
2542 <result name="E_UNEXPECTED">
2543 Virtual machine not registered.
2544 </result>
2545 <result name="E_INVALIDARG">
2546 Invalid session type @a type.
2547 </result>
2548 <result name="VBOX_E_OBJECT_NOT_FOUND">
2549 No machine matching @a machineId found.
2550 </result>
2551 <result name="VBOX_E_INVALID_OBJECT_STATE">
2552 Session already open or being opened.
2553 </result>
2554 <result name="VBOX_E_IPRT_ERROR">
2555 Launching process for machine failed.
2556 </result>
2557 <result name="VBOX_E_VM_ERROR">
2558 Failed to assign machine to session.
2559 </result>
2560
2561 </desc>
2562 <param name="session" type="ISession" dir="in">
2563 <desc>
2564 Session object that will represent the opened remote session
2565 after successful method invocation (this object must not
2566 represent an already open session).
2567 </desc>
2568 </param>
2569 <param name="machineId" type="wstring" dir="in">
2570 <desc>ID of the virtual machine to open a session with.</desc>
2571 </param>
2572 <param name="type" type="wstring" dir="in">
2573 <desc>
2574 Type of the remote session (case sensitive).
2575 </desc>
2576 </param>
2577 <param name="environment" type="wstring" dir="in">
2578 <desc>
2579 Environment to pass to the opened session (may be @c null).
2580 </desc>
2581 </param>
2582 <param name="progress" type="IProgress" dir="return">
2583 <desc>Progress object to track the operation completion.</desc>
2584 </param>
2585 </method>
2586
2587 <method name="openExistingSession">
2588 <desc>
2589 Opens a new remote session with the virtual machine for
2590 which a direct session is already open.
2591
2592 The remote session provides some level of control over the VM
2593 execution (using the IConsole interface) to the caller; however,
2594 within the remote session context, not all VM settings are available
2595 for modification.
2596
2597 As opposed to <link to="#openRemoteSession"/>, the number of
2598 remote sessions opened this way is not limited by the API
2599
2600 <note>
2601 It is an error to open a remote session with the machine that
2602 doesn't have an open direct session.
2603 </note>
2604
2605 <result name="E_UNEXPECTED">
2606 Virtual machine not registered.
2607 </result>
2608 <result name="VBOX_E_OBJECT_NOT_FOUND">
2609 No machine matching @a machineId found.
2610 </result>
2611 <result name="VBOX_E_INVALID_OBJECT_STATE">
2612 Session already open or being opened.
2613 </result>
2614 <result name="VBOX_E_INVALID_SESSION_STATE">
2615 Direct session state not Open.
2616 </result>
2617 <result name="VBOX_E_VM_ERROR">
2618 Failed to get console object from direct session or assign
2619 machine to session.
2620 </result>
2621
2622 <see>openRemoteSession</see>
2623 </desc>
2624 <param name="session" type="ISession" dir="in">
2625 <desc>
2626 Session object that will represent the open remote session
2627 after successful method invocation. This object must not
2628 represent an already open session.
2629 <note>
2630 This session will be automatically closed when the peer
2631 (direct) session dies or gets closed.
2632 </note>
2633 </desc>
2634 </param>
2635 <param name="machineId" type="wstring" dir="in">
2636 <desc>ID of the virtual machine to open a session with.</desc>
2637 </param>
2638 </method>
2639
2640 <method name="registerCallback">
2641 <desc>
2642 Registers a new global VirtualBox callback. The methods of the given
2643 callback object will be called by VirtualBox when an appropriate
2644 event occurs.
2645
2646 <result name="E_INVALIDARG">
2647 A @c null callback cannot be registered.
2648 </result>
2649
2650 </desc>
2651 <param name="callback" type="IVirtualBoxCallback" dir="in">
2652 <desc>Callback object to register.</desc>
2653 </param>
2654 </method>
2655
2656 <method name="unregisterCallback">
2657 <desc>
2658 Unregisters the previously registered global VirtualBox callback.
2659
2660 <result name="E_INVALIDARG">
2661 Specified @a callback not registered.
2662 </result>
2663
2664 </desc>
2665 <param name="callback" type="IVirtualBoxCallback" dir="in">
2666 <desc>Callback object to unregister.</desc>
2667 </param>
2668 </method>
2669
2670 <method name="waitForPropertyChange">
2671 <desc>
2672 Blocks the caller until any of the properties represented by the
2673 @a what argument changes the value or until the given timeout interval
2674 expires.
2675
2676 The @a what argument is a comma separated list of property masks that
2677 describe properties the caller is interested in. The property mask is
2678 a string in the following format:
2679
2680 <pre>
2681 [[group.]subgroup.]name
2682 </pre>
2683
2684 where @c name is the property name and @c group, @c subgroup are zero
2685 or more property group specifiers. Each element (group or name) in
2686 the property mask may be either a Latin string or an asterisk symbol
2687 (@c "*") which is used to match any string for the given element. A
2688 property mask that doesn't contain asterisk symbols represents a
2689 single fully qualified property name.
2690
2691 Groups in the fully qualified property name go from more generic (the
2692 left-most part) to more specific (the right-most part). The first
2693 element is usually a name of the object the property belongs to. The
2694 second element may be either a property name, or a child object name,
2695 or an index if the preceding element names an object which is one of
2696 many objects of the same type. This way, property names form a
2697 hierarchy of properties. Here are some examples of property names:
2698
2699 <table>
2700 <tr>
2701 <td><tt>VirtualBox.version</tt></td>
2702 <td><link to="IVirtualBox::version"/> property</td>
2703 </tr>
2704 <tr>
2705 <td><tt>Machine.&lt;UUID&gt;.name</tt></td>
2706 <td><link to="IMachine::name"/> property of the machine with the
2707 given UUID</td>
2708 </tr>
2709 </table>
2710
2711 Most property names directly correspond to the properties of objects
2712 (components) provided by the VirtualBox library and may be used to
2713 track changes to these properties. However, there may be
2714 pseudo-property names that don't correspond to any existing object's
2715 property directly, as well as there may be object properties that
2716 don't have a corresponding property name that is understood by this
2717 method, and therefore changes to such properties cannot be
2718 tracked. See individual object's property descriptions to get a
2719 fully qualified property name that can be used with this method (if
2720 any).
2721
2722 There is a special property mask @c "*" (i.e. a string consisting of a
2723 single asterisk symbol) that can be used to match all properties.
2724 Below are more examples of property masks:
2725
2726 <table>
2727 <tr>
2728 <td><tt>VirtualBox.*</tt></td>
2729 <td>Track all properties of the VirtualBox object</td>
2730 </tr>
2731 <tr>
2732 <td><tt>Machine.*.name</tt></td>
2733 <td>Track changes to the <link to="IMachine::name"/> property of
2734 all registered virtual machines</td>
2735 </tr>
2736 </table>
2737
2738 <note>
2739 This function is not implemented in the current version of the
2740 product.
2741 </note>
2742 </desc>
2743 <param name="what" type="wstring" dir="in">
2744 <desc>Comma separated list of property masks.</desc>
2745 </param>
2746 <param name="timeout" type="unsigned long" dir="in">
2747 <desc>
2748 Wait timeout in milliseconds.
2749 Specify -1 for an indefinite wait.
2750 </desc>
2751 </param>
2752 <param name="changed" type="wstring" dir="out">
2753 <desc>
2754 Comma separated list of properties that have been changed and caused
2755 this method to return to the caller.
2756 </desc>
2757 </param>
2758 <param name="values" type="wstring" dir="out">
2759 <desc>Reserved, not currently used.</desc>
2760 </param>
2761 </method>
2762
2763 <method name="saveSettings">
2764 <desc>
2765 Saves the global settings to the global settings file
2766 (<link to="#settingsFilePath"/>).
2767
2768 This method is only useful for explicitly saving the global settings
2769 file after it has been auto-converted from the old format to the most
2770 recent format (see <link to="#settingsFileVersion"/> for details).
2771 Normally, the global settings file is implicitly saved when a global
2772 setting is changed.
2773
2774 <result name="VBOX_E_FILE_ERROR">
2775 Settings file not accessible.
2776 </result>
2777 <result name="VBOX_E_XML_ERROR">
2778 Could not parse the settings file.
2779 </result>
2780
2781 </desc>
2782 </method>
2783
2784 <method name="saveSettingsWithBackup">
2785 <desc>
2786 Creates a backup copy of the global settings file
2787 (<link to="IVirtualBox::settingsFilePath"/>) in case of auto-conversion,
2788 and then calls <link to="IVirtualBox::saveSettings"/>.
2789
2790 Note that the backup copy is created <b>only</b> if the settings file
2791 auto-conversion took place (see <link to="#settingsFileVersion"/> for
2792 details). Otherwise, this call is fully equivalent to
2793 <link to="IVirtualBox::saveSettings"/> and no backup copying is done.
2794
2795 The backup copy is created in the same directory where the original
2796 settings file is located. It is given the following file name:
2797 <pre>
2798 original.xml.x.y-platform.bak
2799 </pre>
2800 where <tt>original.xml</tt> is the original settings file name
2801 (excluding path), and <tt>x.y-platform</tt> is the version of the old
2802 format of the settings file (before auto-conversion).
2803
2804 If the given backup file already exists, this method will try to add the
2805 <tt>.N</tt> suffix to the backup file name (where @c N counts from
2806 0 to 9) and copy it again until it succeeds. If all suffixes are
2807 occupied, or if any other copy error occurs, this method will return a
2808 failure.
2809
2810 If the copy operation succeeds, the @a bakFileName return argument will
2811 receive a full path to the created backup file (for informational
2812 purposes). Note that this will happen even if the subsequent
2813 <link to="#saveSettings"/> call performed by this method after the
2814 copy operation, fails.
2815
2816 <note>
2817 The VirtualBox API never calls this method. It is intended purely for
2818 the purposes of creating backup copies of the settings files by
2819 front-ends before saving the results of the automatically performed
2820 settings conversion to disk.
2821 </note>
2822
2823 <see>settingsFileVersion</see>
2824
2825 <result name="VBOX_E_FILE_ERROR">
2826 Settings file not accessible.
2827 </result>
2828 <result name="VBOX_E_XML_ERROR">
2829 Could not parse the settings file.
2830 </result>
2831 <result name="VBOX_E_IPRT_ERROR">
2832 Could not copy the settings file.
2833 </result>
2834
2835 </desc>
2836 <param name="bakFileName" type="wstring" dir="return">
2837 <desc>Full path to the created backup copy.</desc>
2838 </param>
2839 </method>
2840
2841 <!--method name="createDHCPServerForInterface">
2842 <desc>
2843 Creates a dhcp server settings to be used for the given interface
2844 <result name="E_INVALIDARG">
2845 Host network interface @a name already exists.
2846 </result>
2847 </desc>
2848 <param name="interface" type="IHostNetworkInterface" dir="in">
2849 <desc>Network Interface</desc>
2850 </param>
2851 <param name="server" type="IDHCPServer" dir="out">
2852 <desc>Dhcp server settings</desc>
2853 </param>
2854 </method-->
2855
2856 <method name="createDHCPServer">
2857 <desc>
2858 Creates a dhcp server settings to be used for the given internal network name
2859 <result name="E_INVALIDARG">
2860 Host network interface @a name already exists.
2861 </result>
2862 </desc>
2863 <param name="name" type="wstring" dir="in">
2864 <desc>server name</desc>
2865 </param>
2866 <param name="server" type="IDHCPServer" dir="return">
2867 <desc>Dhcp server settings</desc>
2868 </param>
2869 </method>
2870
2871 <method name="findDHCPServerByNetworkName">
2872 <desc>
2873 Searches a dhcp server settings to be used for the given internal network name
2874 <result name="E_INVALIDARG">
2875 Host network interface @a name already exists.
2876 </result>
2877
2878 </desc>
2879 <param name="name" type="wstring" dir="in">
2880 <desc>server name</desc>
2881 </param>
2882 <param name="server" type="IDHCPServer" dir="return">
2883 <desc>Dhcp server settings</desc>
2884 </param>
2885 </method>
2886
2887 <!--method name="findDHCPServerForInterface">
2888 <desc>
2889 Searches a dhcp server settings to be used for the given interface
2890 <result name="E_INVALIDARG">
2891 Host network interface @a name already exists.
2892 </result>
2893 </desc>
2894 <param name="interface" type="IHostNetworkInterface" dir="in">
2895 <desc>Network Interface</desc>
2896 </param>
2897 <param name="server" type="IDHCPServer" dir="out">
2898 <desc>Dhcp server settings</desc>
2899 </param>
2900 </method-->
2901
2902 <method name="removeDHCPServer">
2903 <desc>
2904 Removes the dhcp server settings
2905 <result name="E_INVALIDARG">
2906 Host network interface @a name already exists.
2907 </result>
2908 </desc>
2909 <param name="server" type="IDHCPServer" dir="in">
2910 <desc>Dhcp server settings to be removed</desc>
2911 </param>
2912 </method>
2913
2914 </interface>
2915
2916 <!--
2917 // IVFSExplorer
2918 /////////////////////////////////////////////////////////////////////////
2919 -->
2920
2921 <enum
2922 name="VFSType"
2923 uuid="813999ba-b949-48a8-9230-aadc6285e2f2"
2924 >
2925 <desc>
2926 Virtual file systems supported by VFSExplorer.
2927 </desc>
2928
2929 <const name="File" value="1" />
2930 <const name="Cloud" value="2" />
2931 <const name="S3" value="3" />
2932 <const name="WebDav" value="4" />
2933 </enum>
2934
2935 <enum
2936 name="VFSFileType"
2937 uuid="714333cd-44e2-415f-a245-d378fa9b1242"
2938 >
2939 <desc>
2940 File types known by VFSExplorer.
2941 </desc>
2942
2943 <const name="Unknown" value="1" />
2944 <const name="Fifo" value="2" />
2945 <const name="DevChar" value="3" />
2946 <const name="Directory" value="4" />
2947 <const name="DevBlock" value="5" />
2948 <const name="File" value="6" />
2949 <const name="SymLink" value="7" />
2950 <const name="Socket" value="8" />
2951 <const name="WhiteOut" value="9" />
2952 </enum>
2953
2954 <interface
2955 name="IVFSExplorer" extends="$unknown"
2956 uuid="2bb864a1-02a3-4474-a1d4-fb5f23b742e1"
2957 wsmap="managed"
2958 >
2959 <desc>
2960 The VFSExplorer interface unifies access to different file system
2961 types. This includes local file systems as well remote file systems like
2962 S3. For a list of supported types see <link to="VFSType" />.
2963 An instance of this is returned by <link to="IAppliance::createVFSExplorer" />.
2964 </desc>
2965
2966 <attribute name="path" type="wstring" readonly="yes">
2967 <desc>Returns the current path in the virtual file system.</desc>
2968 </attribute>
2969
2970 <attribute name="type" type="VFSType" readonly="yes">
2971 <desc>Returns the file system type which is currently in use.</desc>
2972 </attribute>
2973
2974 <method name="update">
2975 <desc>Updates the internal list of files/directories from the
2976 current directory level. Use <link to="#entryList" /> to get the full list
2977 after a call to this method.</desc>
2978
2979 <param name="aProgress" type="IProgress" dir="return">
2980 <desc>Progress object to track the operation completion.</desc>
2981 </param>
2982 </method>
2983
2984 <method name="cd">
2985 <desc>Change the current directory level.</desc>
2986
2987 <param name="aDir" type="wstring" dir="in">
2988 <desc>The name of the directory to go in.</desc>
2989 </param>
2990
2991 <param name="aProgress" type="IProgress" dir="return">
2992 <desc>Progress object to track the operation completion.</desc>
2993 </param>
2994 </method>
2995
2996 <method name="cdUp">
2997 <desc>Go one directory upwards from the current directory level.</desc>
2998
2999 <param name="aProgress" type="IProgress" dir="return">
3000 <desc>Progress object to track the operation completion.</desc>
3001 </param>
3002 </method>
3003
3004 <method name="entryList">
3005 <desc>Returns a list of files/directories after a call to <link
3006 to="#update" />. The user is responsible for keeping this internal
3007 list up do date.</desc>
3008
3009 <param name="aNames" type="wstring" safearray="yes" dir="out">
3010 <desc>The list of names for the entries.</desc>
3011 </param>
3012
3013 <param name="aTypes" type="unsigned long" safearray="yes" dir="out">
3014 <desc>The list of types for the entries.</desc>
3015 </param>
3016 </method>
3017
3018 <method name="exists">
3019 <desc>Checks if the given file list exists in the current directory
3020 level.</desc>
3021
3022 <param name="aNames" type="wstring" safearray="yes" dir="in">
3023 <desc>The names to check.</desc>
3024 </param>
3025
3026 <param name="aExists" type="wstring" safearray="yes" dir="return">
3027 <desc>The names which exist.</desc>
3028 </param>
3029 </method>
3030
3031 <method name="remove">
3032 <desc>Deletes the given files in the current directory level.</desc>
3033
3034 <param name="aNames" type="wstring" safearray="yes" dir="in">
3035 <desc>The names to remove.</desc>
3036 </param>
3037
3038 <param name="aProgress" type="IProgress" dir="return">
3039 <desc>Progress object to track the operation completion.</desc>
3040 </param>
3041 </method>
3042
3043 </interface>
3044
3045 <!--
3046 // IAppliance
3047 /////////////////////////////////////////////////////////////////////////
3048 -->
3049
3050 <enum
3051 name="CIMOSType"
3052 uuid="86ef5f8c-18b2-4db8-a314-33721b59f89b"
3053 >
3054 <desc>
3055 OVF operating system values according to CIM V2.20 (as of Nov 2008); http://www.dmtf.org/standards/cim/cim_schema_v220
3056 </desc>
3057
3058 <const name="CIMOS_Unknown" value="0" /> <!-- "Unknown" -->
3059 <const name="CIMOS_Other" value="1" /> <!-- "Other" -->
3060 <const name="CIMOS_MACOS" value="2" /> <!-- "MACOS" -->
3061 <const name="CIMOS_ATTUNIX" value="3" /> <!-- "ATTUNIX" -->
3062 <const name="CIMOS_DGUX" value="4" /> <!-- "DGUX" -->
3063 <const name="CIMOS_DECNT" value="5" /> <!-- "DECNT" -->
3064 <const name="CIMOS_Tru64UNIX" value="6" /> <!-- "Tru64 UNIX" -->
3065 <const name="CIMOS_OpenVMS" value="7" /> <!-- "OpenVMS" -->
3066 <const name="CIMOS_HPUX" value="8" /> <!-- "HPUX" -->
3067 <const name="CIMOS_AIX" value="9" /> <!-- "AIX" -->
3068 <const name="CIMOS_MVS" value="10" /> <!-- "MVS" -->
3069 <const name="CIMOS_OS400" value="11" /> <!-- "OS400" -->
3070 <const name="CIMOS_OS2" value="12" /> <!-- "OS/2" -->
3071 <const name="CIMOS_JavaVM" value="13" /> <!-- "JavaVM" -->
3072 <const name="CIMOS_MSDOS" value="14" /> <!-- "MSDOS" -->
3073 <const name="CIMOS_WIN3x" value="15" /> <!-- "WIN3x" -->
3074 <const name="CIMOS_WIN95" value="16" /> <!-- "WIN95" -->
3075 <const name="CIMOS_WIN98" value="17" /> <!-- "WIN98" -->
3076 <const name="CIMOS_WINNT" value="18" /> <!-- "WINNT" -->
3077 <const name="CIMOS_WINCE" value="19" /> <!-- "WINCE" -->
3078 <const name="CIMOS_NCR3000" value="20" /> <!-- "NCR3000" -->
3079 <const name="CIMOS_NetWare" value="21" /> <!-- "NetWare" -->
3080 <const name="CIMOS_OSF" value="22" /> <!-- "OSF" -->
3081 <const name="CIMOS_DCOS" value="23" /> <!-- "DC/OS" -->
3082 <const name="CIMOS_ReliantUNIX" value="24" /> <!-- "Reliant UNIX" -->
3083 <const name="CIMOS_SCOUnixWare" value="25" /> <!-- "SCO UnixWare" -->
3084 <const name="CIMOS_SCOOpenServer" value="26" /> <!-- "SCO OpenServer" -->
3085 <const name="CIMOS_Sequent" value="27" /> <!-- "Sequent" -->
3086 <const name="CIMOS_IRIX" value="28" /> <!-- "IRIX" -->
3087 <const name="CIMOS_Solaris" value="29" /> <!-- "Solaris" -->
3088 <const name="CIMOS_SunOS" value="30" /> <!-- "SunOS" -->
3089 <const name="CIMOS_U6000" value="31" /> <!-- "U6000" -->
3090 <const name="CIMOS_ASERIES" value="32" /> <!-- "ASERIES" -->
3091 <const name="CIMOS_HPNonStopOS" value="33" /> <!-- "HP NonStop OS" -->
3092 <const name="CIMOS_HPNonStopOSS" value="34" /> <!-- "HP NonStop OSS" -->
3093 <const name="CIMOS_BS2000" value="35" /> <!-- "BS2000" -->
3094 <const name="CIMOS_LINUX" value="36" /> <!-- "LINUX" -->
3095 <const name="CIMOS_Lynx" value="37" /> <!-- "Lynx" -->
3096 <const name="CIMOS_XENIX" value="38" /> <!-- "XENIX" -->
3097 <const name="CIMOS_VM" value="39" /> <!-- "VM" -->
3098 <const name="CIMOS_InteractiveUNIX" value="40" /> <!-- "Interactive UNIX" -->
3099 <const name="CIMOS_BSDUNIX" value="41" /> <!-- "BSDUNIX" -->
3100 <const name="CIMOS_FreeBSD" value="42" /> <!-- "FreeBSD" -->
3101 <const name="CIMOS_NetBSD" value="43" /> <!-- "NetBSD" -->
3102 <const name="CIMOS_GNUHurd" value="44" /> <!-- "GNU Hurd" -->
3103 <const name="CIMOS_OS9" value="45" /> <!-- "OS9" -->
3104 <const name="CIMOS_MACHKernel" value="46" /> <!-- "MACH Kernel" -->
3105 <const name="CIMOS_Inferno" value="47" /> <!-- "Inferno" -->
3106 <const name="CIMOS_QNX" value="48" /> <!-- "QNX" -->
3107 <const name="CIMOS_EPOC" value="49" /> <!-- "EPOC" -->
3108 <const name="CIMOS_IxWorks" value="50" /> <!-- "IxWorks" -->
3109 <const name="CIMOS_VxWorks" value="51" /> <!-- "VxWorks" -->
3110 <const name="CIMOS_MiNT" value="52" /> <!-- "MiNT" -->
3111 <const name="CIMOS_BeOS" value="53" /> <!-- "BeOS" -->
3112 <const name="CIMOS_HPMPE" value="54" /> <!-- "HP MPE" -->
3113 <const name="CIMOS_NextStep" value="55" /> <!-- "NextStep" -->
3114 <const name="CIMOS_PalmPilot" value="56" /> <!-- "PalmPilot" -->
3115 <const name="CIMOS_Rhapsody" value="57" /> <!-- "Rhapsody" -->
3116 <const name="CIMOS_Windows2000" value="58" /> <!-- "Windows 2000" -->
3117 <const name="CIMOS_Dedicated" value="59" /> <!-- "Dedicated" -->
3118 <const name="CIMOS_OS390" value="60" /> <!-- "OS/390" -->
3119 <const name="CIMOS_VSE" value="61" /> <!-- "VSE" -->
3120 <const name="CIMOS_TPF" value="62" /> <!-- "TPF" -->
3121 <const name="CIMOS_WindowsMe" value="63" /> <!-- "Windows (R) Me" -->
3122 <const name="CIMOS_CalderaOpenUNIX" value="64" /> <!-- "Caldera Open UNIX" -->
3123 <const name="CIMOS_OpenBSD" value="65" /> <!-- "OpenBSD" -->
3124 <const name="CIMOS_NotApplicable" value="66" /> <!-- "Not Applicable" -->
3125 <const name="CIMOS_WindowsXP" value="67" /> <!-- "Windows XP" -->
3126 <const name="CIMOS_zOS" value="68" /> <!-- "z/OS" -->
3127 <const name="CIMOS_MicrosoftWindowsServer2003" value="69" /> <!-- "Microsoft Windows Server 2003" -->
3128 <const name="CIMOS_MicrosoftWindowsServer2003_64" value="70" /> <!-- "Microsoft Windows Server 2003 64-Bit" -->
3129 <const name="CIMOS_WindowsXP_64" value="71" /> <!-- "Windows XP 64-Bit" -->
3130 <const name="CIMOS_WindowsXPEmbedded" value="72" /> <!-- "Windows XP Embedded" -->
3131 <const name="CIMOS_WindowsVista" value="73" /> <!-- "Windows Vista" -->
3132 <const name="CIMOS_WindowsVista_64" value="74" /> <!-- "Windows Vista 64-Bit" -->
3133 <const name="CIMOS_WindowsEmbeddedforPointofService" value="75" /> <!-- "Windows Embedded for Point of Service" -->
3134 <const name="CIMOS_MicrosoftWindowsServer2008" value="76" /> <!-- "Microsoft Windows Server 2008" -->
3135 <const name="CIMOS_MicrosoftWindowsServer2008_64" value="77" /> <!-- "Microsoft Windows Server 2008 64-Bit" -->
3136 <const name="CIMOS_FreeBSD_64" value="78" /> <!-- "FreeBSD 64-Bit" -->
3137 <const name="CIMOS_RedHatEnterpriseLinux" value="79" /> <!-- "RedHat Enterprise Linux" -->
3138 <const name="CIMOS_RedHatEnterpriseLinux_64" value="80" /> <!-- "RedHat Enterprise Linux 64-Bit" -->
3139 <const name="CIMOS_Solaris_64" value="81" /> <!-- "Solaris 64-Bit" -->
3140 <const name="CIMOS_SUSE" value="82" /> <!-- "SUSE" -->
3141 <const name="CIMOS_SUSE_64" value="83" /> <!-- "SUSE 64-Bit" -->
3142 <const name="CIMOS_SLES" value="84" /> <!-- "SLES" -->
3143 <const name="CIMOS_SLES_64" value="85" /> <!-- "SLES 64-Bit" -->
3144 <const name="CIMOS_NovellOES" value="86" /> <!-- "Novell OES" -->
3145 <const name="CIMOS_NovellLinuxDesktop" value="87" /> <!-- "Novell Linux Desktop" -->
3146 <const name="CIMOS_SunJavaDesktopSystem" value="88" /> <!-- "Sun Java Desktop System" -->
3147 <const name="CIMOS_Mandriva" value="89" /> <!-- "Mandriva" -->
3148 <const name="CIMOS_Mandriva_64" value="90" /> <!-- "Mandriva 64-Bit" -->
3149 <const name="CIMOS_TurboLinux" value="91" /> <!-- "TurboLinux" -->
3150 <const name="CIMOS_TurboLinux_64" value="92" /> <!-- "TurboLinux 64-Bit" -->
3151 <const name="CIMOS_Ubuntu" value="93" /> <!-- "Ubuntu" -->
3152 <const name="CIMOS_Ubuntu_64" value="94" /> <!-- "Ubuntu 64-Bit" -->
3153 <const name="CIMOS_Debian" value="95" /> <!-- "Debian" -->
3154 <const name="CIMOS_Debian_64" value="96" /> <!-- "Debian 64-Bit" -->
3155 <const name="CIMOS_Linux_2_4_x" value="97" /> <!-- "Linux 2.4.x" -->
3156 <const name="CIMOS_Linux_2_4_x_64" value="98" /> <!-- "Linux 2.4.x 64-Bit" -->
3157 <const name="CIMOS_Linux_2_6_x" value="99" /> <!-- "Linux 2.6.x" -->
3158 <const name="CIMOS_Linux_2_6_x_64" value="100" /> <!-- "Linux 2.6.x 64-Bit" -->
3159 <const name="CIMOS_Linux_64" value="101" /> <!-- "Linux 64-Bit" -->
3160 <const name="CIMOS_Other_64" value="102" /> <!-- "Other 64-Bit" -->
3161 </enum>
3162
3163 <enum
3164 name="OVFResourceType"
3165 uuid="646a78d7-6f04-49f4-82c4-75c28a75a4cd"
3166 >
3167 <desc>
3168 OVF resource type (as listed with CIM_ResourceAllocationSettingData; see for example
3169 http://msdn.microsoft.com/en-us/library/cc136877(VS.85).aspx).
3170 </desc>
3171
3172 <const name="Other" value="1" />
3173 <const name="ComputerSystem" value="2" />
3174 <const name="Processor" value="3" />
3175 <const name="Memory" value="4" />
3176 <const name="IDEController" value="5" />
3177 <const name="ParallelSCSIHBA" value="6" />
3178 <const name="FCHBA" value="7" />
3179 <const name="iSCSIHBA" value="8" />
3180 <const name="IBHCA" value="9" />
3181 <const name="EthernetAdapter" value="10" />
3182 <const name="OtherNetworkAdapter" value="11" />
3183 <const name="IOSlot" value="12" />
3184 <const name="IODevice" value="13" />
3185 <const name="FloppyDrive" value="14" />
3186 <const name="CDDrive" value="15" />
3187 <const name="DVDDrive" value="16" />
3188 <const name="HardDisk" value="17" />
3189 <const name="OtherStorageDevice" value="20" />
3190 <const name="USBController" value="23" />
3191 <const name="SoundCard" value="35" />
3192 </enum>
3193
3194 <interface
3195 name="IAppliance" extends="$unknown"
3196 uuid="07495095-d16c-4911-8964-5914341ced5d"
3197 wsmap="managed"
3198 >
3199 <desc>
3200 Represents a platform-independent appliance in OVF format. An instance of this is returned
3201 by <link to="IVirtualBox::createAppliance" />, which can then be used to import and export
3202 appliances with VirtualBox.
3203
3204 The OVF standard suggests two different physical file formats:
3205
3206 <ol>
3207 <li>If the OVF is distributed as a set of files, then @a file must be a fully qualified
3208 path name to an existing OVF descriptor file with an <tt>.ovf</tt> file extension. If
3209 this descriptor file references other files, as OVF appliances distributed as a set of
3210 files most likely do, those files must be in the same directory as the descriptor file.</li>
3211
3212 <li>If the OVF is distributed as a single file, it must be in TAR format and have the
3213 <tt>.ova</tt> file extension. This TAR file must then contain at least the OVF descriptor
3214 files and optionally other files.
3215
3216 At this time, VirtualBox does not not yet support the packed (TAR) variant; support will
3217 be added with a later version.</li>
3218 </ol>
3219
3220 <b>Importing</b> an OVF appliance into VirtualBox as instances of
3221 <link to="IMachine" /> involves the following sequence of API calls:
3222
3223 <ol>
3224 <li>Call <link to="IVirtualBox::createAppliance" />. This will create an empty IAppliance object.
3225 </li>
3226
3227 <li>On the new object, call <link to="#read" /> with the full path of the OVF file you
3228 would like to import. So long as this file is syntactically valid, this will succeed
3229 and return an instance of IAppliance that contains the parsed data from the OVF file.
3230 </li>
3231
3232 <li>Next, call <link to="#interpret" />, which analyzes the OVF data and sets up the
3233 contents of the IAppliance attributes accordingly. These can be inspected by a
3234 VirtualBox front-end such as the GUI, and the suggestions can be displayed to the
3235 user. In particular, the <link to="#virtualSystemDescriptions" /> array contains
3236 instances of <link to="IVirtualSystemDescription" /> which represent the virtual
3237 systems in the OVF, which in turn describe the virtual hardware prescribed by the
3238 OVF (network and hardware adapters, virtual disk images, memory size and so on).
3239 The GUI can then give the user the option to confirm and/or change these suggestions.
3240 </li>
3241
3242 <li>If desired, call <link to="IVirtualSystemDescription::setFinalValues" /> for each
3243 virtual system to override the suggestions made by the interpret() routine.
3244 </li>
3245
3246 <li>Finally, call <link to="#importMachines" /> to create virtual machines in
3247 VirtualBox as instances of <link to="IMachine" /> that match the information in the
3248 virtual system descriptions.
3249 </li>
3250 </ol>
3251
3252 <b>Exporting</b> VirtualBox machines into an OVF appliance involves the following steps:
3253
3254 <ol>
3255 <li>As with importing, first call <link to="IVirtualBox::createAppliance" /> to create
3256 an empty IAppliance object.
3257 </li>
3258
3259 <li>For each machine you would like to export, call <link to="IMachine::export" />
3260 with the IAppliance object you just created. This creates an instance of
3261 <link to="IVirtualSystemDescription" /> inside the appliance.
3262 </li>
3263
3264 <li>If desired, call <link to="IVirtualSystemDescription::setFinalValues" /> for each
3265 virtual system to override the suggestions made by the export() routine.
3266 </li>
3267
3268 <li>Finally, call <link to="#write" /> with a path specification to have the OVF
3269 file written.</li>
3270 </ol>
3271
3272 </desc>
3273
3274 <attribute name="path" type="wstring" readonly="yes">
3275 <desc>Path to the main file of the OVF appliance, which is either the <tt>.ovf</tt> or
3276 the <tt>.ova</tt> file passed to <link to="#read" /> (for import) or
3277 <link to="#write" /> (for export).
3278 This attribute is empty until one of these methods has been called.
3279 </desc>
3280 </attribute>
3281
3282 <attribute name="disks" type="wstring" readonly="yes" safearray="yes">
3283 <desc>
3284 Array of virtual disk definitions. One such description exists for each
3285 disk definition in the OVF; each string array item represents one such piece of
3286 disk information, with the information fields separated by tab (\\t) characters.
3287
3288 The caller should be prepared for additional fields being appended to
3289 this string in future versions of VirtualBox and therefore check for
3290 the number of tabs in the strings returned.
3291
3292 In the current version, the following eight fields are returned per string
3293 in the array:
3294
3295 <ol>
3296 <li>Disk ID (unique string identifier given to disk)</li>
3297
3298 <li>Capacity (unsigned integer indicating the maximum capacity of the disk)</li>
3299
3300 <li>Populated size (optional unsigned integer indicating the current size of the
3301 disk; can be approximate; -1 if unspecified)</li>
3302
3303 <li>Format (string identifying the disk format, typically
3304 "http://www.vmware.com/specifications/vmdk.html#sparse")</li>
3305
3306 <li>Reference (where to find the disk image, typically a file name; if empty,
3307 then the disk should be created on import)</li>
3308
3309 <li>Image size (optional unsigned integer indicating the size of the image,
3310 which need not necessarily be the same as the values specified above, since
3311 the image may be compressed or sparse; -1 if not specified)</li>
3312
3313 <li>Chunk size (optional unsigned integer if the image is split into chunks;
3314 presently unsupported and always -1)</li>
3315
3316 <li>Compression (optional string equalling "gzip" if the image is gzip-compressed)</li>
3317 </ol>
3318 </desc>
3319 </attribute>
3320
3321 <attribute name="virtualSystemDescriptions" type="IVirtualSystemDescription" readonly="yes" safearray="yes">
3322 <desc> Array of virtual system descriptions. One such description is created
3323 for each virtual system found in the OVF.
3324 This array is empty until either <link to="#interpret" /> (for import) or <link to="IMachine::export" />
3325 (for export) has been called.
3326 </desc>
3327 </attribute>
3328
3329 <method name="read">
3330 <desc>
3331 Reads an OVF file into the appliance object.
3332
3333 This method succeeds if the OVF is syntactically valid and, by itself, without errors. The
3334 mere fact that this method returns successfully does not mean that VirtualBox supports all
3335 features requested by the appliance; this can only be examined after a call to <link to="#interpret" />.
3336 </desc>
3337 <param name="file" type="wstring" dir="in">
3338 <desc>
3339 Name of appliance file to open (either with an <tt>.ovf</tt> or <tt>.ova</tt> extension, depending
3340 on whether the appliance is distributed as a set of files or as a single file, respectively).
3341 </desc>
3342 </param>
3343 </method>
3344
3345 <method name="interpret">
3346 <desc>
3347 Interprets the OVF data that was read when the appliance was constructed. After
3348 calling this method, one can inspect the
3349 <link to="#virtualSystemDescriptions" /> array attribute, which will then contain
3350 one <link to="IVirtualSystemDescription" /> for each virtual machine found in
3351 the appliance.
3352
3353 Calling this method is the second step of importing an appliance into VirtualBox;
3354 see <link to="IAppliance" /> for an overview.
3355
3356 After calling this method, one should call <link to="#getWarnings" /> to find out
3357 if problems were encountered during the processing which might later lead to
3358 errors.
3359 </desc>
3360 </method>
3361
3362 <method name="importMachines">
3363 <desc>
3364 Imports the appliance into VirtualBox by creating instances of <link to="IMachine" />
3365 and other interfaces that match the information contained in the appliance as
3366 closely as possible, as represented by the import instructions in the
3367 <link to="#virtualSystemDescriptions" /> array.
3368
3369 Calling this method is the final step of importing an appliance into VirtualBox;
3370 see <link to="IAppliance" /> for an overview.
3371
3372 Since importing the appliance will most probably involve copying and converting
3373 disk images, which can take a long time, this method operates asynchronously and
3374 returns an IProgress object to allow the caller to monitor the progress.
3375 </desc>
3376
3377 <param name="aProgress" type="IProgress" dir="return">
3378 <desc></desc>
3379 </param>
3380 </method>
3381
3382 <method name="createVFSExplorer">
3383 <desc>Returns a <link to="IVFSExplorer" /> object for the given URI.</desc>
3384
3385 <param name="aUri" type="wstring" dir="in">
3386 <desc>The URI describing the file system to use.</desc>
3387 </param>
3388
3389 <param name="aExplorer" type="IVFSExplorer" dir="return">
3390 <desc></desc>
3391 </param>
3392 </method>
3393
3394 <method name="write">
3395 <desc>
3396 Writes the contents of the appliance exports into a new OVF file.
3397
3398 Calling this method is the final step of exporting an appliance from VirtualBox;
3399 see <link to="IAppliance" /> for an overview.
3400
3401 Since exporting the appliance will most probably involve copying and converting
3402 disk images, which can take a long time, this method operates asynchronously and
3403 returns an IProgress object to allow the caller to monitor the progress.
3404 </desc>
3405 <param name="format" type="wstring" dir="in">
3406 <desc>
3407 Output format, as a string. Currently supported formats are "ovf-0.9" and "ovf-1.0";
3408 future versions of VirtualBox may support additional formats.
3409 </desc>
3410 </param>
3411 <param name="path" type="wstring" dir="in">
3412 <desc>
3413 Name of appliance file to open (either with an <tt>.ovf</tt> or <tt>.ova</tt> extension, depending
3414 on whether the appliance is distributed as a set of files or as a single file, respectively).
3415 </desc>
3416 </param>
3417 <param name="aProgress" type="IProgress" dir="return">
3418 <desc>Progress object to track the operation completion.</desc>
3419 </param>
3420 </method>
3421
3422 <method name="getWarnings">
3423 <desc>Returns textual warnings which occured during execution of <link to="#interpret" />.</desc>
3424
3425 <param name="aWarnings" type="wstring" dir="return" safearray="yes">
3426 <desc></desc>
3427 </param>
3428 </method>
3429
3430 </interface>
3431
3432 <enum
3433 name="VirtualSystemDescriptionType"
3434 uuid="aacc58de-5b45-4f82-ae2e-dd9a824fc3b5"
3435 >
3436 <desc>Used with <link to="IVirtualSystemDescription" /> to describe the type of
3437 a configuration value.</desc>
3438
3439 <const name="Ignore" value="1" />
3440 <const name="OS" value="2" />
3441 <const name="Name" value="3" />
3442 <const name="Product" value="4" />
3443 <const name="Vendor" value="5" />
3444 <const name="Version" value="6" />
3445 <const name="ProductUrl" value="7" />
3446 <const name="VendorUrl" value="8" />
3447 <const name="Description" value="9" />
3448 <const name="License" value="10" />
3449 <const name="Miscellaneous" value="11" />
3450 <const name="CPU" value="12" />
3451 <const name="Memory" value="13" />
3452 <const name="HardDiskControllerIDE" value="14" />
3453 <const name="HardDiskControllerSATA" value="15" />
3454 <const name="HardDiskControllerSCSI" value="16" />
3455 <const name="HardDiskImage" value="17" />
3456 <const name="Floppy" value="18" />
3457 <const name="CDROM" value="19" />
3458 <const name="NetworkAdapter" value="20" />
3459 <const name="USBController" value="21" />
3460 <const name="SoundCard" value="22" />
3461
3462 </enum>
3463
3464 <enum
3465 name="VirtualSystemDescriptionValueType"
3466 uuid="56d9403f-3425-4118-9919-36f2a9b8c77c"
3467 >
3468 <desc>Used with <link to="IVirtualSystemDescription::getValuesByType" /> to describe the value
3469 type to fetch.</desc>
3470
3471 <const name="Reference" value="1" />
3472 <const name="Original" value="2" />
3473 <const name="Auto" value="3" />
3474 <const name="ExtraConfig" value="4" />
3475
3476 </enum>
3477
3478 <interface
3479 name="IVirtualSystemDescription" extends="$unknown"
3480 uuid="d7525e6c-531a-4c51-8e04-41235083a3d8"
3481 wsmap="managed"
3482 >
3483
3484 <desc>This interface is used in the <link to="IAppliance::virtualSystemDescriptions" /> array.
3485 After <link to="IAppliance::interpret" /> has been called, that array contains
3486 information about how the virtual systems described in the OVF should best be imported into VirtualBox
3487 virtual machines. See <link to="IAppliance" /> for the steps required to import an OVF
3488 into VirtualBox.
3489 </desc>
3490
3491 <attribute name="count" type="unsigned long" readonly="yes">
3492 <desc>Return the number of virtual system description entries.</desc>
3493 </attribute>
3494
3495 <method name="getDescription">
3496 <desc>Returns information about the virtual system as arrays of instruction items. In each array, the
3497 items with the same indices correspond and jointly represent an import instruction for VirtualBox.
3498
3499 The list below identifies the value sets that are possible depending on the
3500 <link to="VirtualSystemDescriptionType" /> enum value in the array item in aTypes[]. In each case,
3501 the array item with the same index in aOvfValues[] will contain the original value as contained
3502 in the OVF file (just for informational purposes), and the corresponding item in aVBoxValues[]
3503 will contain a suggested value to be used for VirtualBox. Depending on the description type,
3504 the aExtraConfigValues[] array item may also be used.
3505
3506 <ul>
3507 <li>
3508 "OS": the guest operating system type. There must be exactly one such array item on import. The
3509 corresponding item in aVBoxValues[] contains the suggested guest operating system for VirtualBox.
3510 This will be one of the values listed in <link to="IVirtualBox::guestOSTypes" />. The corresponding
3511 item in aOvfValues[] will contain a numerical value that described the operating system in the OVF
3512 (see <link to="CIMOSType" />).
3513 </li>
3514 <li>
3515 "Name": the name to give to the new virtual machine. There can be at most one such array item;
3516 if none is present on import, then an automatic name will be created from the operating system
3517 type. The correponding item im aOvfValues[] will contain the suggested virtual machine name
3518 from the OVF file, and aVBoxValues[] will contain a suggestion for a unique VirtualBox
3519 <link to="IMachine" /> name that does not exist yet.
3520 </li>
3521 <li>
3522 "Description": an arbitrary description.
3523 </li>
3524 <li>
3525 "License": the EULA section from the OVF, if present. It is the responsibility of the calling
3526 code to display such a license for agreement; the Main API does not enforce any such policy.
3527 </li>
3528 <li>
3529 Miscellaneous: reserved for future use.
3530 </li>
3531 <li>
3532 "CPU": the number of CPUs. There can be at most one such item, which will presently be ignored.
3533 </li>
3534 <li>
3535 "Memory": the amount of guest RAM, in bytes. There can be at most one such array item; if none
3536 is present on import, then VirtualBox will set a meaningful default based on the operating system
3537 type.
3538 </li>
3539 <li>
3540 "HarddiskControllerIDE": an IDE hard disk controller. There can be at most one such item. This
3541 has no value in aOvfValues[] or aVBoxValues[].
3542 The matching item in the aRefs[] array will contain an integer that items of the "Harddisk"
3543 type can use to specify which hard disk controller a virtual disk should be connected to.
3544 </li>
3545 <li>
3546 "HarddiskControllerSATA": an SATA hard disk controller. There can be at most one such item. This
3547 has no value in aOvfValues[] or aVBoxValues[].
3548 The matching item in the aRefs[] array will be used as with IDE controllers (see above).
3549 </li>
3550 <li>
3551 "HarddiskControllerSCSI": a SCSI hard disk controller. There can be at most one such item.
3552 The items in aOvfValues[] and aVBoxValues[] will either be "LsiLogic" or "BusLogic".
3553 The matching item in the aRefs[] array will be used as with IDE controllers (see above).
3554 </li>
3555 <li>
3556 "HardDiskImage": a virtual hard disk, most probably as a reference to an image file. There can be an
3557 arbitrary number of these items, one for each virtual disk image that accompanies the OVF.
3558
3559 The array item in aOvfValues[] will contain the file specification from the OVF file (without
3560 a path since the image file should be in the same location as the OVF file itself), whereas the
3561 item in aVBoxValues[] will contain a qualified path specification to where VirtualBox uses the
3562 hard disk image. This means that on import the image will be copied and converted from the
3563 "ovf" location to the "vbox" location; on export, this will be handled the other way round.
3564 On import, the target image will also be registered with VirtualBox.
3565
3566 The matching item in the aExtraConfigValues[] array must contain a string of the following
3567 format: "controller=&lt;index&gt;;channel=&lt;c&gt;"
3568 In this string, &lt;index&gt; must be an integer specifying the hard disk controller to connect
3569 the image to. That number must be the index of an array item with one of the hard disk controller
3570 types (HarddiskControllerSCSI, HarddiskControllerSATA, HarddiskControllerIDE).
3571 In addition, &lt;c&gt; must specify the channel to use on that controller. For IDE controllers,
3572 this can range from 0-2 (which VirtualBox will interpret as primary master, primary slave,
3573 secondary slave; VirtualBox reserves the secondary master for the CD-ROM drive). For SATA and
3574 SCSI conrollers, the channel can range from 0-29.
3575 </li>
3576 <li>
3577 "NetworkAdapter": a network adapter. The array item in aVBoxValues[] will specify the hardware
3578 for the network adapter, whereas the array item in aExtraConfigValues[] will have a string
3579 of the "type=&lt;X&gt;" format, where &lt;X&gt; must be either "NAT" or "Bridged".
3580 </li>
3581 <li>
3582 "USBController": a USB controller. There can be at most one such item. If and only if such an
3583 item ispresent, USB support will be enabled for the new virtual machine.
3584 </li>
3585 <li>
3586 "SoundCard": a sound card. There can be at most one such item. If and only if such an item is
3587 present, sound support will be enabled for the new virtual machine. Note that the virtual
3588 machine in VirtualBox will always be presented with the standard VirtualBox soundcard, which
3589 may be different from the virtual soundcard expected by the appliance.
3590 </li>
3591 </ul>
3592
3593 </desc>
3594
3595 <param name="aTypes" type="VirtualSystemDescriptionType" dir="out" safearray="yes">
3596 <desc></desc>
3597 </param>
3598
3599 <param name="aRefs" type="wstring" dir="out" safearray="yes">
3600 <desc></desc>
3601 </param>
3602
3603 <param name="aOvfValues" type="wstring" dir="out" safearray="yes">
3604 <desc></desc>
3605 </param>
3606
3607 <param name="aVBoxValues" type="wstring" dir="out" safearray="yes">
3608 <desc></desc>
3609 </param>
3610
3611 <param name="aExtraConfigValues" type="wstring" dir="out" safearray="yes">
3612 <desc></desc>
3613 </param>
3614
3615 </method>
3616
3617 <method name="getDescriptionByType">
3618 <desc>This is the same as <link to="#getDescription" /> except that you can specify which types
3619 should be returned.</desc>
3620
3621 <param name="aType" type="VirtualSystemDescriptionType" dir="in">
3622 <desc></desc>
3623 </param>
3624
3625 <param name="aTypes" type="VirtualSystemDescriptionType" dir="out" safearray="yes">
3626 <desc></desc>
3627 </param>
3628
3629 <param name="aRefs" type="wstring" dir="out" safearray="yes">
3630 <desc></desc>
3631 </param>
3632
3633 <param name="aOvfValues" type="wstring" dir="out" safearray="yes">
3634 <desc></desc>
3635 </param>
3636
3637 <param name="aVBoxValues" type="wstring" dir="out" safearray="yes">
3638 <desc></desc>
3639 </param>
3640
3641 <param name="aExtraConfigValues" type="wstring" dir="out" safearray="yes">
3642 <desc></desc>
3643 </param>
3644
3645 </method>
3646
3647 <method name="getValuesByType">
3648 <desc>This is the same as <link to="#getDescriptionByType" /> except that you can specify which
3649 value types should be returned. See <link to="VirtualSystemDescriptionValueType" /> for possible
3650 values.</desc>
3651
3652 <param name="aType" type="VirtualSystemDescriptionType" dir="in">
3653 <desc></desc>
3654 </param>
3655
3656 <param name="aWhich" type="VirtualSystemDescriptionValueType" dir="in">
3657 <desc></desc>
3658 </param>
3659
3660 <param name="aValues" type="wstring" dir="return" safearray="yes">
3661 <desc></desc>
3662 </param>
3663
3664 </method>
3665
3666 <method name="setFinalValues">
3667 <desc>
3668 This method allows the appliance's user to change the configuration for the virtual
3669 system descriptions. For each array item returned from <link to="#getDescription" />,
3670 you must pass in one boolean value and one configuration value.
3671
3672 Each item in the boolean array determines whether the particular configuration item
3673 should be enabled.
3674 You can only disable items of the types HardDiskControllerIDE, HardDiskControllerSATA,
3675 HardDiskControllerSCSI, HardDiskImage, CDROM, Floppy, NetworkAdapter, USBController
3676 and SoundCard.
3677
3678 For the "vbox" and "extra configuration" values, if you pass in the same arrays
3679 as returned in the aVBoxValues and aExtraConfigValues arrays from getDescription(),
3680 the configuration remains unchanged. Please see the documentation for getDescription()
3681 for valid configuration values for the individual array item types. If the
3682 corresponding item in the aEnabled array is @c false, the configuration value is ignored.
3683 </desc>
3684
3685 <param name="aEnabled" type="boolean" dir="in" safearray="yes">
3686 <desc></desc>
3687 </param>
3688
3689 <param name="aVBoxValues" type="wstring" dir="in" safearray="yes">
3690 <desc></desc>
3691 </param>
3692
3693 <param name="aExtraConfigValues" type="wstring" dir="in" safearray="yes">
3694 <desc></desc>
3695 </param>
3696 </method>
3697
3698 <method name="addDescription">
3699 <desc>
3700 This method adds an additional description entry to the stack of already
3701 available descriptions for this virtual system. This is handy for writing
3702 values which aren't directly supported by VirtualBox. One example would
3703 be the License type of <link to="VirtualSystemDescriptionType" />.
3704 </desc>
3705
3706 <param name="aType" type="VirtualSystemDescriptionType" dir="in">
3707 <desc></desc>
3708 </param>
3709
3710 <param name="aVBoxValue" type="wstring" dir="in">
3711 <desc></desc>
3712 </param>
3713
3714 <param name="aExtraConfigValue" type="wstring" dir="in">
3715 <desc></desc>
3716 </param>
3717 </method>
3718 </interface>
3719
3720
3721 <!--
3722 // IMachine
3723 /////////////////////////////////////////////////////////////////////////
3724 -->
3725
3726 <interface
3727 name="IInternalMachineControl" extends="$unknown"
3728 uuid="ce8087d7-de92-4bbb-8140-a22fb07f37ba"
3729 internal="yes"
3730 wsmap="suppress"
3731 >
3732 <method name="setRemoveSavedState">
3733 <desc>
3734 Updates the flag whether saved state is removed on a machine state
3735 change from Saved to PoweredOff.
3736 </desc>
3737 <param name="aRemove" type="boolean" dir="in"/>
3738 </method>
3739
3740 <method name="updateState">
3741 <desc>
3742 Updates the VM state.
3743 <note>
3744 This operation will also update the settings file with
3745 the correct information about the saved state file
3746 and delete this file from disk when appropriate.
3747 </note>
3748 </desc>
3749 <param name="state" type="MachineState" dir="in"/>
3750 </method>
3751
3752 <method name="getIPCId">
3753 <param name="id" type="wstring" dir="return"/>
3754 </method>
3755
3756 <method name="runUSBDeviceFilters">
3757 <desc>
3758 Asks the server to run USB devices filters of the associated
3759 machine against the given USB device and tell if there is
3760 a match.
3761 <note>
3762 Intended to be used only for remote USB devices. Local
3763 ones don't require to call this method (this is done
3764 implicitly by the Host and USBProxyService).
3765 </note>
3766 </desc>
3767 <param name="device" type="IUSBDevice" dir="in"/>
3768 <param name="matched" type="boolean" dir="out"/>
3769 <param name="maskedInterfaces" type="unsigned long" dir="out"/>
3770 </method>
3771
3772 <method name="captureUSBDevice">
3773 <desc>
3774 Requests a capture of the given host USB device.
3775 When the request is completed, the VM process will
3776 get a <link to="IInternalSessionControl::onUSBDeviceAttach"/>
3777 notification.
3778 </desc>
3779 <param name="id" type="wstring" dir="in"/>
3780 </method>
3781
3782 <method name="detachUSBDevice">
3783 <desc>
3784 Notification that a VM is going to detach (@a done = @c false) or has
3785 already detached (@a done = @c true) the given USB device.
3786 When the @a done = @c true request is completed, the VM process will
3787 get a <link to="IInternalSessionControl::onUSBDeviceDetach"/>
3788 notification.
3789 <note>
3790 In the @a done = @c true case, the server must run its own filters
3791 and filters of all VMs but this one on the detached device
3792 as if it were just attached to the host computer.
3793 </note>
3794 </desc>
3795 <param name="id" type="wstring" dir="in"/>
3796 <param name="done" type="boolean" dir="in"/>
3797 </method>
3798
3799 <method name="autoCaptureUSBDevices">
3800 <desc>
3801 Requests a capture all matching USB devices attached to the host.
3802 When the request is completed, the VM process will
3803 get a <link to="IInternalSessionControl::onUSBDeviceAttach"/>
3804 notification per every captured device.
3805 </desc>
3806 </method>
3807
3808 <method name="detachAllUSBDevices">
3809 <desc>
3810 Notification that a VM that is being powered down. The done
3811 parameter indicates whether which stage of the power down
3812 we're at. When @a done = @c false the VM is announcing its
3813 intentions, while when @a done = @c true the VM is reporting
3814 what it has done.
3815 <note>
3816 In the @a done = @c true case, the server must run its own filters
3817 and filters of all VMs but this one on all detach devices as
3818 if they were just attached to the host computer.
3819 </note>
3820 </desc>
3821 <param name="done" type="boolean" dir="in"/>
3822 </method>
3823
3824 <method name="onSessionEnd">
3825 <desc>
3826 Triggered by the given session object when the session is about
3827 to close normally.
3828 </desc>
3829 <param name="session" type="ISession" dir="in">
3830 <desc>Session that is being closed</desc>
3831 </param>
3832 <param name="progress" type="IProgress" dir="return">
3833 <desc>
3834 Used to wait until the corresponding machine is actually
3835 dissociated from the given session on the server.
3836 Returned only when this session is a direct one.
3837 </desc>
3838 </param>
3839 </method>
3840
3841 <method name="beginSavingState">
3842 <desc>
3843 Called by the VM process to inform the server it wants to
3844 save the current state and stop the VM execution.
3845 </desc>
3846 <param name="progress" type="IProgress" dir="in">
3847 <desc>
3848 Progress object created by the VM process to wait until
3849 the state is saved.
3850 </desc>
3851 </param>
3852 <param name="stateFilePath" type="wstring" dir="out">
3853 <desc>
3854 File path the VM process must save the execution state to.
3855 </desc>
3856 </param>
3857 </method>
3858
3859 <method name="endSavingState">
3860 <desc>
3861 Called by the VM process to inform the server that saving
3862 the state previously requested by #beginSavingState is either
3863 successfully finished or there was a failure.
3864
3865 <result name="VBOX_E_FILE_ERROR">
3866 Settings file not accessible.
3867 </result>
3868 <result name="VBOX_E_XML_ERROR">
3869 Could not parse the settings file.
3870 </result>
3871
3872 </desc>
3873
3874 <param name="success" type="boolean" dir="in">
3875 <desc>@c true to indicate success and @c false otherwise.
3876 </desc>
3877 </param>
3878 </method>
3879
3880 <method name="adoptSavedState">
3881 <desc>
3882 Gets called by IConsole::adoptSavedState.
3883 <result name="VBOX_E_FILE_ERROR">
3884 Invalid saved state file path.
3885 </result>
3886 </desc>
3887 <param name="savedStateFile" type="wstring" dir="in">
3888 <desc>Path to the saved state file to adopt.</desc>
3889 </param>
3890 </method>
3891
3892 <method name="beginTakingSnapshot">
3893 <desc>
3894 Called by the VM process to inform the server it wants to
3895 take a snapshot.
3896
3897 <result name="VBOX_E_FILE_ERROR">
3898 Settings file not accessible.
3899 </result>
3900 <result name="VBOX_E_XML_ERROR">
3901 Could not parse the settings file.
3902 </result>
3903 </desc>
3904 <param name="initiator" type="IConsole" dir="in">
3905 <desc>The console object that initiated this call.</desc>
3906 </param>
3907 <param name="name" type="wstring" dir="in">
3908 <desc>Snapshot name.</desc>
3909 </param>
3910 <param name="description" type="wstring" dir="in">
3911 <desc>Snapshot description.</desc>
3912 </param>
3913 <param name="progress" type="IProgress" dir="in">
3914 <desc>
3915 Progress object created by the VM process to wait until
3916 the state is saved (only for online snapshots).
3917 </desc>
3918 </param>
3919 <param name="stateFilePath" type="wstring" dir="out">
3920 <desc>
3921 File path the VM process must save the execution state to.
3922 </desc>
3923 </param>
3924 <param name="serverProgress" type="IProgress" dir="out">
3925 <desc>
3926 Progress object created by the server process to wait until
3927 the snapshot is taken (VDI diff creation, etc.).
3928 </desc>
3929 </param>
3930 </method>
3931
3932 <method name="endTakingSnapshot">
3933 <desc>
3934 Called by the VM process to inform the server that the snapshot
3935 previously requested by #beginTakingSnapshot is either
3936 successfully taken or there was a failure.
3937 </desc>
3938
3939 <param name="success" type="boolean" dir="in">
3940 <desc>@c true to indicate success and @c false otherwise</desc>
3941 </param>
3942 </method>
3943
3944 <method name="discardSnapshot">
3945 <desc>
3946 Gets called by IConsole::discardSnapshot.
3947 <result name="VBOX_E_INVALID_OBJECT_STATE">
3948 Snapshot has more than one child snapshot.
3949 </result>
3950 </desc>
3951 <param name="initiator" type="IConsole" dir="in">
3952 <desc>The console object that initiated this call.</desc>
3953 </param>
3954 <param name="id" type="wstring" dir="in">
3955 <desc>UUID of the snapshot to discard.</desc>
3956 </param>
3957 <param name="machineState" type="MachineState" dir="out">
3958 <desc>New machine state after this operation is started.</desc>
3959 </param>
3960 <param name="progress" type="IProgress" dir="return">
3961 <desc>Progress object to track the operation completion.</desc>
3962 </param>
3963 </method>
3964
3965 <method name="discardCurrentState">
3966 <desc>
3967 Gets called by IConsole::discardCurrentState.
3968 <result name="VBOX_E_INVALID_OBJECT_STATE">
3969 Virtual machine does not have any snapshot.
3970 </result>
3971 </desc>
3972 <param name="initiator" type="IConsole" dir="in">
3973 <desc>The console object that initiated this call.</desc>
3974 </param>
3975 <param name="machineState" type="MachineState" dir="out">
3976 <desc>New machine state after this operation is started.</desc>
3977 </param>
3978 <param name="progress" type="IProgress" dir="return">
3979 <desc>Progress object to track the operation completion.</desc>
3980 </param>
3981 </method>
3982
3983 <method name="discardCurrentSnapshotAndState">
3984 <desc>
3985 Gets called by IConsole::discardCurrentSnapshotAndState.
3986 <result name="VBOX_E_INVALID_OBJECT_STATE">
3987 Virtual machine does not have any snapshot.
3988 </result>
3989 </desc>
3990 <param name="initiator" type="IConsole" dir="in">
3991 <desc>The console object that initiated this call.</desc>
3992 </param>
3993 <param name="machineState" type="MachineState" dir="out">
3994 <desc>New machine state after this operation is started.</desc>
3995 </param>
3996 <param name="progress" type="IProgress" dir="return">
3997 <desc>Progress object to track the operation completion.</desc>
3998 </param>
3999 </method>
4000
4001 <method name="pullGuestProperties">
4002 <desc>
4003 Get the list of the guest properties matching a set of patterns along
4004 with their values, time stamps and flags and give responsibility for
4005 managing properties to the console.
4006 </desc>
4007 <param name="name" type="wstring" dir="out" safearray="yes">
4008 <desc>
4009 The names of the properties returned.
4010 </desc>
4011 </param>
4012 <param name="value" type="wstring" dir="out" safearray="yes">
4013 <desc>
4014 The values of the properties returned. The array entries match the
4015 corresponding entries in the @a name array.
4016 </desc>
4017 </param>
4018 <param name="timestamp" type="unsigned long long" dir="out" safearray="yes">
4019 <desc>
4020 The time stamps of the properties returned. The array entries match
4021 the corresponding entries in the @a name array.
4022 </desc>
4023 </param>
4024 <param name="flags" type="wstring" dir="out" safearray="yes">
4025 <desc>
4026 The flags of the properties returned. The array entries match the
4027 corresponding entries in the @a name array.
4028 </desc>
4029 </param>
4030 </method>
4031
4032 <method name="pushGuestProperties">
4033 <desc>
4034 Set the list of the guest properties matching a set of patterns along
4035 with their values, time stamps and flags and return responsibility for
4036 managing properties to IMachine.
4037 </desc>
4038 <param name="name" type="wstring" dir="in" safearray="yes">
4039 <desc>
4040 The names of the properties.
4041 </desc>
4042 </param>
4043 <param name="value" type="wstring" dir="in" safearray="yes">
4044 <desc>
4045 The values of the properties. The array entries match the
4046 corresponding entries in the @a name array.
4047 </desc>
4048 </param>
4049 <param name="timestamp" type="unsigned long long" dir="in" safearray="yes">
4050 <desc>
4051 The time stamps of the properties. The array entries match
4052 the corresponding entries in the @a name array.
4053 </desc>
4054 </param>
4055 <param name="flags" type="wstring" dir="in" safearray="yes">
4056 <desc>
4057 The flags of the properties. The array entries match the
4058 corresponding entries in the @a name array.
4059 </desc>
4060 </param>
4061 </method>
4062 <method name="pushGuestProperty">
4063 <desc>
4064 Update a single guest property in IMachine.
4065 </desc>
4066 <param name="name" type="wstring" dir="in">
4067 <desc>
4068 The name of the property to be updated.
4069 </desc>
4070 </param>
4071 <param name="value" type="wstring" dir="in">
4072 <desc>
4073 The value of the property.
4074 </desc>
4075 </param>
4076 <param name="timestamp" type="unsigned long long" dir="in">
4077 <desc>
4078 The timestamp of the property.
4079 </desc>
4080 </param>
4081 <param name="flags" type="wstring" dir="in">
4082 <desc>
4083 The flags of the property.
4084 </desc>
4085 </param>
4086 </method>
4087
4088 <method name="lockMedia">
4089 <desc>
4090 Locks all media attached to the machine for writing and parents of
4091 attahced different hard disks (if any) for reading. This operation is
4092 atomic so that if it fails no media is actually locked.
4093
4094 This method is intended to be called when the machine is in Starting or
4095 Restoring state. The locked media will be automatically unlocked when
4096 the machine is powered off or crashed.
4097 </desc>
4098 </method>
4099 </interface>
4100
4101 <interface
4102 name="IBIOSSettings" extends="$unknown"
4103 uuid="38b54279-dc35-4f5e-a431-835b867c6b5e"
4104 wsmap="managed"
4105 >
4106 <desc>
4107 The IBIOSSettings interface represents BIOS settings of the virtual
4108 machine. This is used only in the <link to="IMachine::BIOSSettings" /> attribute.
4109 </desc>
4110 <attribute name="logoFadeIn" type="boolean">
4111 <desc>Fade in flag for BIOS logo animation.</desc>
4112 </attribute>
4113
4114 <attribute name="logoFadeOut" type="boolean">
4115 <desc>Fade out flag for BIOS logo animation.</desc>
4116 </attribute>
4117
4118 <attribute name="logoDisplayTime" type="unsigned long">
4119 <desc>BIOS logo display time in milliseconds (0 = default).</desc>
4120 </attribute>
4121
4122 <attribute name="logoImagePath" type="wstring">
4123 <desc>Local file system path for external BIOS image.</desc>
4124 </attribute>
4125
4126 <attribute name="bootMenuMode" type="BIOSBootMenuMode">
4127 <desc>Mode of the BIOS boot device menu.</desc>
4128 </attribute>
4129
4130 <attribute name="ACPIEnabled" type="boolean">
4131 <desc>ACPI support flag.</desc>
4132 </attribute>
4133
4134 <attribute name="IOAPICEnabled" type="boolean">
4135 <desc>
4136 IO APIC support flag. If set, VirtualBox will provide an IO APIC
4137 and support IRQs above 15.
4138 </desc>
4139 </attribute>
4140
4141 <attribute name="timeOffset" type="long long">
4142 <desc>
4143 Offset in milliseconds from the host system time. This allows for
4144 guests running with a different system date/time than the host.
4145 It is equivalent to setting the system date/time in the BIOS except
4146 it is not an absolute value but a relative one. Guest Additions
4147 time synchronization honors this offset.
4148 </desc>
4149 </attribute>
4150
4151 <attribute name="PXEDebugEnabled" type="boolean">
4152 <desc>
4153 PXE debug logging flag. If set, VirtualBox will write extensive
4154 PXE trace information to the release log.
4155 </desc>
4156 </attribute>
4157
4158 </interface>
4159
4160 <interface
4161 name="IMachine" extends="$unknown"
4162 uuid="4d1df26d-d9c1-4c7e-b689-15e85ecf8ffc"
4163 wsmap="managed"
4164 >
4165 <desc>
4166 The IMachine interface represents a virtual machine, or guest, created
4167 in VirtualBox.
4168
4169 This interface is used in two contexts. First of all, a collection of
4170 objects implementing this interface is stored in the
4171 <link to="IVirtualBox::machines"/> attribute which lists all the virtual
4172 machines that are currently registered with this VirtualBox
4173 installation. Also, once a session has been opened for the given virtual
4174 machine (e.g. the virtual machine is running), the machine object
4175 associated with the open session can be queried from the session object;
4176 see <link to="ISession"/> for details.
4177
4178 The main role of this interface is to expose the settings of the virtual
4179 machine and provide methods to change various aspects of the virtual
4180 machine's configuration. For machine objects stored in the
4181 <link to="IVirtualBox::machines"/> collection, all attributes are
4182 read-only unless explicitly stated otherwise in individual attribute
4183 and method descriptions. In order to change a machine setting, a session
4184 for this machine must be opened using one of
4185 <link to="IVirtualBox::openSession"/>,
4186 <link to="IVirtualBox::openRemoteSession"/> or
4187 <link to="IVirtualBox::openExistingSession"/> methods. After the
4188 session has been successfully opened, a mutable machine object needs to
4189 be queried from the session object and then the desired settings changes
4190 can be applied to the returned object using IMachine attributes and
4191 methods. See the ISession interface description for more information
4192 about sessions.
4193
4194 Note that the IMachine interface does not provide methods to control
4195 virtual machine execution (such as start the machine, or power it
4196 down) -- these methods are grouped in a separate IConsole
4197 interface. Refer to the IConsole interface description to get more
4198 information about this topic.
4199
4200 <see>ISession, IConsole</see>
4201 </desc>
4202
4203 <attribute name="parent" type="IVirtualBox" readonly="yes">
4204 <desc>Associated parent object.</desc>
4205 </attribute>
4206
4207 <attribute name="accessible" type="boolean" readonly="yes">
4208 <desc>
4209 Whether this virtual machine is currently accessible or not.
4210
4211 The machine is considered to be inaccessible when:
4212 <ul>
4213 <li>It is a registered virtual machine, and
4214 </li>
4215 <li>Its settings file is inaccessible (for example, it is
4216 located on a network share that is not accessible during
4217 VirtualBox startup, or becomes inaccessible later, or if
4218 the settings file can be read but is invalid).
4219 </li>
4220 </ul>
4221
4222 Otherwise, the value of this property is always @c true.
4223
4224 Every time this property is read, the accessibility state of
4225 this machine is re-evaluated. If the returned value is @c false,
4226 the <link to="#accessError"/> property may be used to get the
4227 detailed error information describing the reason of
4228 inaccessibility.
4229
4230 When the machine is inaccessible, only the following properties
4231 can be used on it:
4232 <ul>
4233 <li><link to="#parent"/></li>
4234 <li><link to="#id"/></li>
4235 <li><link to="#settingsFilePath"/></li>
4236 <li><link to="#accessible"/></li>
4237 <li><link to="#accessError"/></li>
4238 </ul>
4239
4240 An attempt to access any other property or method will return
4241 an error.
4242
4243 The only possible action you can perform on an inaccessible
4244 machine is to unregister it using the
4245 <link to="IVirtualBox::unregisterMachine"/> call (or, to check
4246 for the accessibility state once more by querying this
4247 property).
4248
4249 <note>
4250 In the current implementation, once this property returns
4251 @c true, the machine will never become inaccessible
4252 later, even if its settings file cannot be successfully
4253 read/written any more (at least, until the VirtualBox
4254 server is restarted). This limitation may be removed in
4255 future releases.
4256 </note>
4257 </desc>
4258 </attribute>
4259
4260 <attribute name="accessError" type="IVirtualBoxErrorInfo" readonly="yes">
4261 <desc>
4262 Error information describing the reason of machine
4263 inaccessibility.
4264
4265 Reading this property is only valid after the last call to
4266 <link to="#accessible"/> returned @c false (i.e. the
4267 machine is currently unaccessible). Otherwise, a @c null
4268 IVirtualBoxErrorInfo object will be returned.
4269 </desc>
4270 </attribute>
4271
4272 <attribute name="name" type="wstring">
4273 <desc>
4274 Name of the virtual machine.
4275
4276 Besides being used for human-readable identification purposes
4277 everywhere in VirtualBox, the virtual machine name is also used
4278 as a name of the machine's settings file and as a name of the
4279 subdirectory this settings file resides in. Thus, every time you
4280 change the value of this property, the settings file will be
4281 renamed once you call <link to="#saveSettings"/> to confirm the
4282 change. The containing subdirectory will be also renamed, but
4283 only if it has exactly the same name as the settings file
4284 itself prior to changing this property (for backward compatibility
4285 with previous API releases). The above implies the following
4286 limitations:
4287 <ul>
4288 <li>The machine name cannot be empty.</li>
4289 <li>The machine name can contain only characters that are valid
4290 file name characters according to the rules of the file
4291 system used to store VirtualBox configuration.</li>
4292 <li>You cannot have two or more machines with the same name
4293 if they use the same subdirectory for storing the machine
4294 settings files.</li>
4295 <li>You cannot change the name of the machine if it is running,
4296 or if any file in the directory containing the settings file
4297 is being used by another running machine or by any other
4298 process in the host operating system at a time when
4299 <link to="#saveSettings"/> is called.
4300 </li>
4301 </ul>
4302 If any of the above limitations are hit, <link to="#saveSettings"/>
4303 will return an appropriate error message explaining the exact
4304 reason and the changes you made to this machine will not be
4305 saved.
4306 <note>
4307 For "legacy" machines created using the
4308 <link to="IVirtualBox::createLegacyMachine"/> call,
4309 the above naming limitations do not apply because the
4310 machine name does not affect the settings file name.
4311 The settings file name remains the same as it was specified
4312 during machine creation and never changes.
4313 </note>
4314 </desc>
4315 </attribute>
4316
4317 <attribute name="description" type="wstring">
4318 <desc>
4319 Description of the virtual machine.
4320
4321 The description attribute can contain any text and is
4322 typically used to describe the hardware and software
4323 configuration of the virtual machine in detail (i.e. network
4324 settings, versions of the installed software and so on).
4325 </desc>
4326 </attribute>
4327
4328 <attribute name="id" type="wstring" readonly="yes">
4329 <desc>UUID of the virtual machine.</desc>
4330 </attribute>
4331
4332 <attribute name="OSTypeId" type="wstring">
4333 <desc>
4334 User-defined identifier of the Guest OS type.
4335 You may use <link to="IVirtualBox::getGuestOSType"/> to obtain
4336 an IGuestOSType object representing details about the given
4337 Guest OS type.
4338 <note>
4339 This value may differ from the value returned by
4340 <link to="IGuest::OSTypeId"/> if Guest Additions are
4341 installed to the guest OS.
4342 </note>
4343 </desc>
4344 </attribute>
4345
4346 <attribute name="HardwareVersion" type="wstring">
4347 <desc>Hardware version identifier. Internal use only for now.</desc>
4348 </attribute>
4349
4350 <attribute name="CPUCount" type="unsigned long">
4351 <desc>Number of virtual CPUs in the VM.</desc>
4352 </attribute>
4353
4354 <attribute name="memorySize" type="unsigned long">
4355 <desc>System memory size in megabytes.</desc>
4356 </attribute>
4357
4358 <attribute name="memoryBalloonSize" type="unsigned long">
4359 <desc>Initial memory balloon size in megabytes.</desc>
4360 </attribute>
4361
4362 <attribute name="statisticsUpdateInterval" type="unsigned long">
4363 <desc>Initial interval to update guest statistics in seconds.</desc>
4364 </attribute>
4365
4366 <attribute name="VRAMSize" type="unsigned long">
4367 <desc>Video memory size in megabytes.</desc>
4368 </attribute>
4369
4370 <attribute name="accelerate3DEnabled" type="boolean" default="false">
4371 <desc>
4372 This setting determines whether VirtualBox allows guests to make use
4373 of the 3D graphics support available on the host. Currently limited
4374 to OpenGL only. </desc>
4375 </attribute>
4376
4377 <attribute name="monitorCount" type="unsigned long">
4378 <desc>
4379 Number of virtual monitors.
4380 <note>
4381 Only effective on Windows XP and later guests with
4382 Guest Additions installed.
4383 </note>
4384 </desc>
4385 </attribute>
4386
4387 <attribute name="BIOSSettings" type="IBIOSSettings" readonly="yes">
4388 <desc>Object containing all BIOS settings.</desc>
4389 </attribute>
4390
4391 <attribute name="HWVirtExEnabled" type="TSBool">
4392 <desc>
4393 This setting determines whether VirtualBox will try to make use of
4394 the host CPU's hardware virtualization extensions such as Intel VT-x
4395 and AMD-V. Note that in case such extensions are not available,
4396 they will not be used.
4397 </desc>
4398 </attribute>
4399
4400 <attribute name="HWVirtExNestedPagingEnabled" type="boolean" default="false">
4401 <desc>
4402 This setting determines whether VirtualBox will try to make use of
4403 the nested paging extension of Intel VT-x and AMD-V. Note that in case
4404 such extensions are not available, they will not be used.
4405 </desc>
4406 </attribute>
4407
4408 <attribute name="HWVirtExVPIDEnabled" type="boolean" default="false">
4409 <desc>
4410 This setting determines whether VirtualBox will try to make use of
4411 the VPID extension of Intel VT-x. Note that in case such extensions are
4412 not available, they will not be used.
4413 </desc>
4414 </attribute>
4415
4416 <attribute name="PAEEnabled" type="boolean" default="false">
4417 <desc>
4418 This setting determines whether VirtualBox will expose the Physical Address
4419 Extension (PAE) feature of the host CPU to the guest. Note that in case PAE
4420 is not available, it will not be reported.
4421 </desc>
4422 </attribute>
4423
4424 <attribute name="snapshotFolder" type="wstring">
4425 <desc>
4426 Full path to the directory used to store snapshot data
4427 (differencing hard disks and saved state files) of this machine.
4428
4429 The initial value of this property is
4430 <tt>&lt;</tt><link to="#settingsFilePath">
4431 path_to_settings_file</link><tt>&gt;/&lt;</tt>
4432 <link to="#id">machine_uuid</link>
4433 <tt>&gt;</tt>.
4434
4435 Currently, it is an error to try to change this property on
4436 a machine that has snapshots (because this would require to
4437 move possibly large files to a different location).
4438 A separate method will be available for this purpose later.
4439
4440 <note>
4441 Setting this property to @c null or to an empty string will restore
4442 the initial value.
4443 </note>
4444 <note>
4445 When setting this property, the specified path can be
4446 absolute (full path) or relative to the directory where the
4447 <link to="#settingsFilePath">machine settings file</link>
4448 is located. When reading this property, a full path is
4449 always returned.
4450 </note>
4451 <note>
4452 The specified path may not exist, it will be created
4453 when necessary.
4454 </note>
4455 </desc>
4456 </attribute>
4457
4458 <attribute name="VRDPServer" type="IVRDPServer" readonly="yes">
4459 <desc>VRDP server object.</desc>
4460 </attribute>
4461
4462 <attribute name="hardDiskAttachments" type="IHardDiskAttachment" readonly="yes" safearray="yes">
4463 <desc>Array of hard disks attached to this machine.</desc>
4464 </attribute>
4465
4466 <attribute name="DVDDrive" type="IDVDDrive" readonly="yes">
4467 <desc>Associated DVD drive object.</desc>
4468 </attribute>
4469
4470 <attribute name="floppyDrive" type="IFloppyDrive" readonly="yes">
4471 <desc>Associated floppy drive object.</desc>
4472 </attribute>
4473
4474 <attribute name="USBController" type="IUSBController" readonly="yes">
4475 <desc>
4476 Associated USB controller object.
4477
4478 <note>
4479 If USB functionality is not available in the given edition of
4480 VirtualBox, this method will set the result code to @c E_NOTIMPL.
4481 </note>
4482 </desc>
4483 </attribute>
4484
4485 <attribute name="audioAdapter" type="IAudioAdapter" readonly="yes">
4486 <desc>Associated audio adapter, always present.</desc>
4487 </attribute>
4488
4489 <attribute name="storageControllers" type="IStorageController" readonly="yes" safearray="yes">
4490 <desc>Array of storage controllers attached to this machine.</desc>
4491 </attribute>
4492
4493 <attribute name="settingsFilePath" type="wstring" readonly="yes">
4494 <desc>
4495 Full name of the file containing machine settings data.
4496 </desc>
4497 </attribute>
4498
4499 <attribute name="settingsFileVersion" type="wstring" readonly="yes">
4500 <desc>
4501 Current version of the format of the settings file of this machine
4502 (<link to="IMachine::settingsFilePath"/>).
4503
4504 The version string has the following format:
4505 <pre>
4506 x.y-platform
4507 </pre>
4508 where @c x and @c y are the major and the minor format
4509 versions, and @c platform is the platform identifier.
4510
4511 The current version usually matches the value of the
4512 <link to="IVirtualBox::settingsFormatVersion"/> attribute unless the
4513 settings file was created by an older version of VirtualBox and there
4514 was a change of the settings file format since then.
4515
4516 Note that VirtualBox automatically converts settings files from older
4517 versions to the most recent version when reading them (usually at
4518 VirtualBox startup) but it doesn't save the changes back until
4519 you call a method that implicitly saves settings (such as
4520 <link to="#setExtraData"/>) or call <link to="#saveSettings"/>
4521 explicitly. Therefore, if the value of this attribute differs from the
4522 value of <link to="IVirtualBox::settingsFormatVersion"/>, then it
4523 means that the settings file was converted but the result of the
4524 conversion is not yet saved to disk.
4525
4526 The above feature may be used by interactive front-ends to inform users
4527 about the settings file format change and offer them to explicitly save
4528 all converted settings files (the global and VM-specific ones),
4529 optionally create backup copies of the old settings files before saving,
4530 etc.
4531
4532 <see>IVirtualBox::settingsFormatVersion, saveSettingsWithBackup()</see>
4533 </desc>
4534 </attribute>
4535
4536 <attribute name="settingsModified" type="boolean" readonly="yes">
4537 <desc>
4538 Whether the settings of this machine have been modified
4539 (but neither yet saved nor discarded).
4540 <note>
4541 Reading this property is only valid on instances returned
4542 by <link to="ISession::machine"/> and on new machines
4543 created by <link to="IVirtualBox::createMachine"/> or opened
4544 by <link to="IVirtualBox::openMachine"/> but not
4545 yet registered, or on unregistered machines after calling
4546 <link to="IVirtualBox::unregisterMachine"/>. For all other
4547 cases, the settings can never be modified.
4548 </note>
4549 <note>
4550 For newly created unregistered machines, the value of this
4551 property is always @c true until <link to="#saveSettings"/>
4552 is called (no matter if any machine settings have been
4553 changed after the creation or not). For opened machines
4554 the value is set to @c false (and then follows to normal rules).
4555 </note>
4556 </desc>
4557 </attribute>
4558
4559 <attribute name="sessionState" type="SessionState" readonly="yes">
4560 <desc>Current session state for this machine.</desc>
4561 </attribute>
4562
4563 <attribute name="sessionType" type="wstring" readonly="yes">
4564 <desc>
4565 Type of the session. If <link to="#sessionState"/> is
4566 SessionSpawning or SessionOpen, this attribute contains the
4567 same value as passed to the
4568 <link to="IVirtualBox::openRemoteSession"/> method in the
4569 @a type parameter. If the session was opened directly using
4570 <link to="IVirtualBox::openSession"/>, or if
4571 <link to="#sessionState"/> is SessionClosed, the value of this
4572 attribute is an empty string.
4573 </desc>
4574 </attribute>
4575
4576 <attribute name="sessionPid" type="unsigned long" readonly="yes">
4577 <desc>
4578 Identifier of the session process. This attribute contains the
4579 platform-dependent identifier of the process that has opened a
4580 direct session for this machine using the
4581 <link to="IVirtualBox::openSession"/> call. The returned value
4582 is only valid if <link to="#sessionState"/> is SessionOpen or
4583 SessionClosing (i.e. a session is currently open or being
4584 closed) by the time this property is read.
4585 </desc>
4586 </attribute>
4587
4588 <attribute name="state" type="MachineState" readonly="yes">
4589 <desc>Current execution state of this machine.</desc>
4590 </attribute>
4591
4592 <attribute name="lastStateChange" type="long long" readonly="yes">
4593 <desc>
4594 Time stamp of the last execution state change,
4595 in milliseconds since 1970-01-01 UTC.
4596 </desc>
4597 </attribute>
4598
4599 <attribute name="stateFilePath" type="wstring" readonly="yes">
4600 <desc>
4601 Full path to the file that stores the execution state of
4602 the machine when it is in the <link to="MachineState_Saved"/> state.
4603 <note>
4604 When the machine is not in the Saved state, this attribute is
4605 an empty string.
4606 </note>
4607 </desc>
4608 </attribute>
4609
4610 <attribute name="logFolder" type="wstring" readonly="yes">
4611 <desc>
4612 Full path to the folder that stores a set of rotated log files
4613 recorded during machine execution. The most recent log file is
4614 named <tt>VBox.log</tt>, the previous log file is
4615 named <tt>VBox.log.1</tt> and so on (up to <tt>VBox.log.3</tt>
4616 in the current version).
4617 </desc>
4618 </attribute>
4619
4620 <attribute name="currentSnapshot" type="ISnapshot" readonly="yes">
4621 <desc>
4622 Current snapshot of this machine.
4623 <note>
4624 A @c null object is returned if the machine doesn't
4625 have snapshots.
4626 </note>
4627 <see><link to="ISnapshot"/></see>
4628 </desc>
4629 </attribute>
4630
4631 <attribute name="snapshotCount" type="unsigned long" readonly="yes">
4632 <desc>
4633 Number of snapshots taken on this machine. Zero means the
4634 machine doesn't have any snapshots.
4635 </desc>
4636 </attribute>
4637
4638 <attribute name="currentStateModified" type="boolean" readonly="yes">
4639 <desc>
4640 Returns @c true if the current state of the machine is not
4641 identical to the state stored in the current snapshot.
4642
4643 The current state is identical to the current snapshot right
4644 after one of the following calls are made:
4645 <ul>
4646 <li><link to="IConsole::discardCurrentState"/> or
4647 <link to="IConsole::discardCurrentSnapshotAndState"/>
4648 </li>
4649 <li><link to="IConsole::takeSnapshot"/> (issued on a
4650 powered off or saved machine, for which
4651 <link to="#settingsModified"/> returns @c false)
4652 </li>
4653 <li><link to="IMachine::setCurrentSnapshot"/>
4654 </li>
4655 </ul>
4656
4657 The current state remains identical until one of the following
4658 happens:
4659 <ul>
4660 <li>settings of the machine are changed</li>
4661 <li>the saved state is discarded</li>
4662 <li>the current snapshot is discarded</li>
4663 <li>an attempt to execute the machine is made</li>
4664 </ul>
4665
4666 <note>
4667 For machines that don't have snapshots, this property is
4668 always @c false.
4669 </note>
4670 </desc>
4671 </attribute>
4672
4673 <attribute name="sharedFolders" type="ISharedFolder" readonly="yes" safearray="yes">
4674 <desc>
4675 Collection of shared folders for this machine (permanent shared
4676 folders). These folders are shared automatically at machine startup
4677 and available only to the guest OS installed within this machine.
4678
4679 New shared folders are added to the collection using
4680 <link to="#createSharedFolder"/>. Existing shared folders can be
4681 removed using <link to="#removeSharedFolder"/>.
4682 </desc>
4683 </attribute>
4684
4685 <attribute name="clipboardMode" type="ClipboardMode">
4686 <desc>
4687 Synchronization mode between the host OS clipboard
4688 and the guest OS clipboard.
4689 </desc>
4690 </attribute>
4691
4692 <attribute name="guestPropertyNotificationPatterns" type="wstring">
4693 <desc>
4694 A comma-separated list of simple glob patterns. Changes to guest
4695 properties whose name matches one of the patterns will generate an
4696 <link to="IVirtualBoxCallback::onGuestPropertyChange"/> signal.
4697 </desc>
4698 </attribute>
4699
4700 <method name="setBootOrder">
4701 <desc>
4702 Puts the given device to the specified position in
4703 the boot order.
4704
4705 To indicate that no device is associated with the given position,
4706 <link to="DeviceType_Null"/> should be used.
4707
4708 @todo setHardDiskBootOrder(), setNetworkBootOrder()
4709
4710 <result name="E_INVALIDARG">
4711 Boot @a position out of range.
4712 </result>
4713 <result name="E_NOTIMPL">
4714 Booting from USB @a device currently not supported.
4715 </result>
4716
4717 </desc>
4718 <param name="position" type="unsigned long" dir="in">
4719 <desc>
4720 Position in the boot order (@c 1 to the total number of
4721 devices the machine can boot from, as returned by
4722 <link to="ISystemProperties::maxBootPosition"/>).
4723 </desc>
4724 </param>
4725 <param name="device" type="DeviceType" dir="in">
4726 <desc>
4727 The type of the device used to boot at the given position.
4728 </desc>
4729 </param>
4730 </method>
4731
4732 <method name="getBootOrder" const="yes">
4733 <desc>
4734 Returns the device type that occupies the specified
4735 position in the boot order.
4736
4737 @todo [remove?]
4738 If the machine can have more than one device of the returned type
4739 (such as hard disks), then a separate method should be used to
4740 retrieve the individual device that occupies the given position.
4741
4742 If here are no devices at the given position, then
4743 <link to="DeviceType_Null"/> is returned.
4744
4745 @todo getHardDiskBootOrder(), getNetworkBootOrder()
4746
4747 <result name="E_INVALIDARG">
4748 Boot @a position out of range.
4749 </result>
4750
4751 </desc>
4752 <param name="position" type="unsigned long" dir="in">
4753 <desc>
4754 Position in the boot order (@c 1 to the total number of
4755 devices the machine can boot from, as returned by
4756 <link to="ISystemProperties::maxBootPosition"/>).
4757 </desc>
4758 </param>
4759 <param name="device" type="DeviceType" dir="return">
4760 <desc>
4761 Device at the given position.
4762 </desc>
4763 </param>
4764 </method>
4765
4766 <method name="attachHardDisk">
4767 <desc>
4768 Attaches a virtual hard disk (<link to="IHardDisk" />, identified
4769 by the given UUID @a id) to the given hard disk controller
4770 (<link to="IStorageController" />, identified by @a name),
4771 at the indicated port and device.
4772
4773 For the IDE bus, the @a controllerPort parameter can be either
4774 @c 0 or @c 1, to specify the primary or secondary IDE controller,
4775 respectively. For the primary controller of the IDE bus,
4776 @a device can be either @c 0 or @c 1, to specify the master or the
4777 slave device, respectively. For the secondary IDE controller, the
4778 device number must be @c 1 because VirtualBox reserves the
4779 secondary master for the CD-ROM drive.
4780
4781 For an SATA controller, @a controllerPort must be a number ranging
4782 from @c 0 to @c 29. For a SCSI controller, @a controllerPort must
4783 be a number ranging from @c 0 to @c 15.
4784
4785 For both SCSI and SATA, the @a device parameter is unused and must
4786 be @c 0.
4787
4788 The specified device slot must not have another disk attached to it, or
4789 this method will fail.
4790
4791 See <link to="IHardDisk"/> for more detailed information about
4792 attaching hard disks.
4793
4794 <note>
4795 You cannot attach a hard disk to a running machine. Also, you cannot
4796 attach a hard disk to a newly created machine until this machine's
4797 settings are saved to disk using <link to="#saveSettings"/>.
4798 </note>
4799 <note>
4800 If the hard disk is being attached indirectly, a new differencing hard
4801 disk will implicitly be created for it and attached instead. If the
4802 changes made to the machine settings (including this indirect
4803 attachment) are later cancelled using <link to="#discardSettings"/>,
4804 this implicitly created differencing hard disk will implicitly
4805 be deleted.
4806 </note>
4807
4808 <result name="E_INVALIDARG">
4809 SATA device, SATA port, IDE port or IDE slot out of range.
4810 </result>
4811 <result name="VBOX_E_INVALID_OBJECT_STATE">
4812 Attempt to attach hard disk to an unregistered virtual machine.
4813 </result>
4814 <result name="VBOX_E_INVALID_VM_STATE">
4815 Invalid machine state.
4816 </result>
4817 <result name="VBOX_E_OBJECT_IN_USE">
4818 Hard disk already attached to this or another virtual machine.
4819 </result>
4820
4821 </desc>
4822 <param name="id" type="wstring" dir="in">
4823 <desc>UUID of the hard disk to attach.</desc>
4824 </param>
4825 <param name="name" type="wstring" dir="in">
4826 <desc>Name of the storage controller to attach the hard disk to.</desc>
4827 </param>
4828 <param name="controllerPort" type="long" dir="in">
4829 <desc>Port to attach the hard disk to.</desc>
4830 </param>
4831 <param name="device" type="long" dir="in">
4832 <desc>
4833 Device slot in the given port to attach the hard disk to.
4834 </desc>
4835 </param>
4836 </method>
4837
4838 <method name="getHardDisk" const="yes">
4839 <desc>
4840 Returns the virtual hard disk attached to a device slot of the specified
4841 bus.
4842
4843 Note that if the hard disk was indirectly attached by
4844 <link to="#attachHardDisk"/> to the given device slot then this
4845 method will return not the same object as passed to the
4846 <link to="#attachHardDisk"/> call. See <link to="IHardDisk"/> for
4847 more detailed information about attaching hard disks.
4848
4849 <result name="VBOX_E_OBJECT_NOT_FOUND">
4850 No hard disk attached to given slot/bus.
4851 </result>
4852
4853 </desc>
4854 <param name="name" type="wstring" dir="in">
4855 <desc>Name of the storage controller the hard disk is attached to.</desc>
4856 </param>
4857 <param name="controllerPort" type="long" dir="in">
4858 <desc>Port to query.</desc>
4859 </param>
4860 <param name="device" type="long" dir="in">
4861 <desc>Device slot in the given port to query.</desc>
4862 </param>
4863 <param name="hardDisk" type="IHardDisk" dir="return">
4864 <desc>Attached hard disk object.</desc>
4865 </param>
4866 </method>
4867
4868 <method name="detachHardDisk">
4869 <desc>
4870 Detaches the virtual hard disk attached to a device slot of the
4871 specified bus.
4872
4873 Detaching the hard disk from the virtual machine is deferred. This means
4874 that the hard disk remains associated with the machine when this method
4875 returns and gets actually de-associated only after a successful
4876 <link to="#saveSettings"/> call. See <link to="IHardDisk"/>
4877 for more detailed information about attaching hard disks.
4878
4879 <note>
4880 You cannot detach the hard disk from a running machine.
4881 </note>
4882 <note>
4883 Detaching differencing hard disks implicitly created by <link
4884 to="#attachHardDisk"/> for the indirect attachment using this
4885 method will <b>not</b> implicitly delete them. The
4886 <link to="IHardDisk::deleteStorage"/> operation should be
4887 explicitly performed by the caller after the hard disk is successfully
4888 detached and the settings are saved with
4889 <link to="#saveSettings"/>, if it is the desired action.
4890 </note>
4891
4892 <result name="VBOX_E_INVALID_VM_STATE">
4893 Attempt to detach hard disk from a running virtual machine.
4894 </result>
4895 <result name="VBOX_E_OBJECT_NOT_FOUND">
4896 No hard disk attached to given slot/bus.
4897 </result>
4898 <result name="VBOX_E_NOT_SUPPORTED">
4899 Hard disk format does not support storage deletion.
4900 </result>
4901
4902 </desc>
4903 <param name="name" type="wstring" dir="in">
4904 <desc>name of the storage controller to detach the hard disk from.</desc>
4905 </param>
4906 <param name="controllerPort" type="long" dir="in">
4907 <desc>Port number to detach the hard disk from.</desc>
4908 </param>
4909 <param name="device" type="long" dir="in">
4910 <desc>Device slot number to detach the hard disk from.</desc>
4911 </param>
4912 </method>
4913
4914 <method name="getHardDiskAttachmentsOfController" const="yes">
4915 <desc>
4916 Returns an array of hard disk attachments which are attached to the
4917 the controller with the given name.
4918
4919 <result name="VBOX_E_OBJECT_NOT_FOUND">
4920 A storage controller with given name doesn't exist.
4921 </result>
4922 </desc>
4923 <param name="name" type="wstring" dir="in"/>
4924 <param name="hardDiskAttachments" type="IHardDiskAttachment" safearray="yes" dir="return"/>
4925 </method>
4926
4927 <method name="getNetworkAdapter" const="yes">
4928 <desc>
4929 Returns the network adapter associated with the given slot.
4930 Slots are numbered sequentially, starting with zero. The total
4931 number of adapters per machine is defined by the
4932 <link to="ISystemProperties::networkAdapterCount"/> property,
4933 so the maximum slot number is one less than that property's value.
4934
4935 <result name="E_INVALIDARG">
4936 Invalid @a slot number.
4937 </result>
4938
4939 </desc>
4940 <param name="slot" type="unsigned long" dir="in"/>
4941 <param name="adapter" type="INetworkAdapter" dir="return"/>
4942 </method>
4943
4944 <method name="addStorageController">
4945 <desc>
4946 Adds a new storage controller (SCSI or SATA controller) to the
4947 machine and returns it as an instance of
4948 <link to="IStorageController" />.
4949
4950 @a name identifies the controller for subsequent calls such as
4951 <link to="#getStorageControllerByName" /> or
4952 <link to="#removeStorageController" /> or
4953 <link to="#attachHardDisk" />.
4954
4955 After the controller has been added, you can set its exact
4956 type by setting the <link to="IStorageController::controllerType" />.
4957
4958 <result name="VBOX_E_OBJECT_IN_USE">
4959 A storage controller with given name exists already.
4960 </result>
4961 <result name="E_INVALIDARG">
4962 Invalid @a controllerType.
4963 </result>
4964 </desc>
4965 <param name="name" type="wstring" dir="in"/>
4966 <param name="connectionType" type="StorageBus" dir="in"/>
4967 <param name="controller" type="IStorageController" dir="return"/>
4968 </method>
4969
4970 <method name="getStorageControllerByName" const="yes">
4971 <desc>
4972 Returns a storage controller with the given name.
4973
4974 <result name="VBOX_E_OBJECT_NOT_FOUND">
4975 A storage controller with given name doesn't exist.
4976 </result>
4977 </desc>
4978 <param name="name" type="wstring" dir="in"/>
4979 <param name="storageController" type="IStorageController" dir="return"/>
4980 </method>
4981
4982 <method name="removeStorageController">
4983 <desc>
4984 Removes a storage controller from the machine.
4985
4986 <result name="VBOX_E_OBJECT_NOT_FOUND">
4987 A storage controller with given name doesn't exist.
4988 </result>
4989 </desc>
4990 <param name="name" type="wstring" dir="in"/>
4991 </method>
4992
4993 <method name="getSerialPort" const="yes">
4994 <desc>
4995 Returns the serial port associated with the given slot.
4996 Slots are numbered sequentially, starting with zero. The total
4997 number of serial ports per machine is defined by the
4998 <link to="ISystemProperties::serialPortCount"/> property,
4999 so the maximum slot number is one less than that property's value.
5000
5001 <result name="E_INVALIDARG">
5002 Invalid @a slot number.
5003 </result>
5004
5005 </desc>
5006 <param name="slot" type="unsigned long" dir="in"/>
5007 <param name="port" type="ISerialPort" dir="return"/>
5008 </method>
5009
5010 <method name="getParallelPort" const="yes">
5011 <desc>
5012 Returns the parallel port associated with the given slot.
5013 Slots are numbered sequentially, starting with zero. The total
5014 number of parallel ports per machine is defined by the
5015 <link to="ISystemProperties::parallelPortCount"/> property,
5016 so the maximum slot number is one less than that property's value.
5017
5018 <result name="E_INVALIDARG">
5019 Invalid @a slot number.
5020 </result>
5021
5022 </desc>
5023 <param name="slot" type="unsigned long" dir="in"/>
5024 <param name="port" type="IParallelPort" dir="return"/>
5025 </method>
5026
5027 <method name="getNextExtraDataKey">
5028 <desc>
5029 Returns the machine-specific extra data key name following the
5030 supplied key.
5031
5032 An error is returned if the supplied @a key does not exist. An empty
5033 string is returned in @a nextKey if the supplied key is the last key.
5034 When supplying @c null or an empty string for the @a key, the first key
5035 item is returned in @a nextKey (if there is any). @a nextValue is an
5036 optional parameter and if supplied, the next key's value is returned in
5037 it.
5038
5039 <result name="VBOX_E_OBJECT_NOT_FOUND">
5040 Extra data @a key not found.
5041 </result>
5042
5043 </desc>
5044 <param name="key" type="wstring" dir="in">
5045 <desc>Name of the data key to follow.</desc>
5046 </param>
5047 <param name="nextKey" type="wstring" dir="out">
5048 <desc>Name of the next data key.</desc>
5049 </param>
5050 <param name="nextValue" type="wstring" dir="out">
5051 <desc>Value of the next data key.</desc>
5052 </param>
5053 </method>
5054
5055 <method name="getExtraData">
5056 <desc>
5057 Returns associated machine-specific extra data.
5058
5059 If the requested data @a key does not exist, this function will
5060 succeed and return an empty string in the @a value argument.
5061
5062 <result name="VBOX_E_FILE_ERROR">
5063 Settings file not accessible.
5064 </result>
5065 <result name="VBOX_E_XML_ERROR">
5066 Could not parse the settings file.
5067 </result>
5068
5069 </desc>
5070 <param name="key" type="wstring" dir="in">
5071 <desc>Name of the data key to get.</desc>
5072 </param>
5073 <param name="value" type="wstring" dir="return">
5074 <desc>Value of the requested data key.</desc>
5075 </param>
5076 </method>
5077
5078 <method name="setExtraData">
5079 <desc>
5080 Sets associated machine-specific extra data.
5081
5082 If you pass @c null or an empty string as a key @a value, the given
5083 @a key will be deleted.
5084
5085 <note>
5086 Before performing the actual data change, this method will ask all
5087 registered callbacks using the
5088 <link to="IVirtualBoxCallback::onExtraDataCanChange"/>
5089 notification for a permission. If one of the callbacks refuses the
5090 new value, the change will not be performed.
5091 </note>
5092 <note>
5093 On success, the
5094 <link to="IVirtualBoxCallback::onExtraDataChange"/> notification
5095 is called to inform all registered callbacks about a successful data
5096 change.
5097 </note>
5098 <note>
5099 This method can be called outside the machine session and therefore
5100 it's a caller's responsibility to handle possible race conditions
5101 when several clients change the same key at the same time.
5102 </note>
5103
5104 <result name="VBOX_E_FILE_ERROR">
5105 Settings file not accessible.
5106 </result>
5107 <result name="VBOX_E_XML_ERROR">
5108 Could not parse the settings file.
5109 </result>
5110
5111 </desc>
5112 <param name="key" type="wstring" dir="in">
5113 <desc>Name of the data key to set.</desc>
5114 </param>
5115 <param name="value" type="wstring" dir="in">
5116 <desc>Value to assign to the key.</desc>
5117 </param>
5118 </method>
5119
5120 <method name="saveSettings">
5121 <desc>
5122 Saves any changes to machine settings made since the session
5123 has been opened or a new machine has been created, or since the
5124 last call to <link to="#saveSettings"/> or <link to="#discardSettings"/>.
5125 For registered machines, new settings become visible to all
5126 other VirtualBox clients after successful invocation of this
5127 method.
5128 <note>
5129 The method sends <link to="IVirtualBoxCallback::onMachineDataChange"/>
5130 notification event after the configuration has been successfully
5131 saved (only for registered machines).
5132 </note>
5133 <note>
5134 Calling this method is only valid on instances returned
5135 by <link to="ISession::machine"/> and on new machines
5136 created by <link to="IVirtualBox::createMachine"/> but not
5137 yet registered, or on unregistered machines after calling
5138 <link to="IVirtualBox::unregisterMachine"/>.
5139 </note>
5140
5141 <result name="VBOX_E_FILE_ERROR">
5142 Settings file not accessible.
5143 </result>
5144 <result name="VBOX_E_XML_ERROR">
5145 Could not parse the settings file.
5146 </result>
5147 <result name="E_ACCESSDENIED">
5148 Modification request refused.
5149 </result>
5150
5151 </desc>
5152 </method>
5153
5154 <method name="saveSettingsWithBackup">
5155 <desc>
5156 Creates a backup copy of the machine settings file (<link
5157 to="IMachine::settingsFilePath"/>) in case of auto-conversion, and then calls
5158 <link to="IMachine::saveSettings"/>.
5159
5160 Note that the backup copy is created <b>only</b> if the settings file
5161 auto-conversion took place (see <link to="#settingsFileVersion"/> for
5162 details). Otherwise, this call is fully equivalent to
5163 <link to="IMachine::saveSettings"/> and no backup copying is done.
5164
5165 The backup copy is created in the same directory where the original
5166 settings file is located. It is given the following file name:
5167 <pre>
5168 original.xml.x.y-platform.bak
5169 </pre>
5170 where <tt>original.xml</tt> is the original settings file name
5171 (excluding path), and <tt>x.y-platform</tt> is the version of the old
5172 format of the settings file (before auto-conversion).
5173
5174 If the given backup file already exists, this method will try to add the
5175 <tt>.N</tt> suffix to the backup file name (where @c N counts from
5176 0 to 9) and copy it again until it succeeds. If all suffixes are
5177 occupied, or if any other copy error occurs, this method will return a
5178 failure.
5179
5180 If the copy operation succeeds, the @a bakFileName return argument will
5181 receive a full path to the created backup file (for informational
5182 purposes). Note that this will happen even if the subsequent
5183 <link to="#saveSettings"/> call performed by this method after the
5184 copy operation, fails.
5185
5186 <note>
5187 The VirtualBox API never calls this method. It is intended purely for
5188 the purposes of creating backup copies of the settings files by
5189 front-ends before saving the results of the automatically performed
5190 settings conversion to disk.
5191 </note>
5192
5193 <see>settingsFileVersion</see>
5194
5195 <result name="VBOX_E_FILE_ERROR">
5196 Settings file not accessible.
5197 </result>
5198 <result name="VBOX_E_XML_ERROR">
5199 Could not parse the settings file.
5200 </result>
5201 <result name="VBOX_E_INVALID_VM_STATE">
5202 Virtual machine is not mutable.
5203 </result>
5204 <result name="E_ACCESSDENIED">
5205 Modification request refused.
5206 </result>
5207
5208 </desc>
5209 <param name="bakFileName" type="wstring" dir="return">
5210 <desc>Full path to the created backup copy.</desc>
5211 </param>
5212 </method>
5213
5214 <method name="discardSettings">
5215 <desc>
5216 Discards any changes to the machine settings made since the session
5217 has been opened or since the last call to <link to="#saveSettings"/>
5218 or <link to="#discardSettings"/>.
5219 <note>
5220 Calling this method is only valid on instances returned
5221 by <link to="ISession::machine"/> and on new machines
5222 created by <link to="IVirtualBox::createMachine"/> or
5223 opened by <link to="IVirtualBox::openMachine"/> but not
5224 yet registered, or on unregistered machines after calling
5225 <link to="IVirtualBox::unregisterMachine"/>.
5226 </note>
5227
5228 <result name="VBOX_E_INVALID_VM_STATE">
5229 Virtual machine is not mutable.
5230 </result>
5231
5232 </desc>
5233 </method>
5234
5235 <method name="deleteSettings">
5236 <desc>
5237 Deletes the settings file of this machine from disk.
5238 The machine must not be registered in order for this operation
5239 to succeed.
5240 <note>
5241 <link to="#settingsModified"/> will return @c true after this
5242 method successfully returns.
5243 </note>
5244 <note>
5245 Calling this method is only valid on instances returned
5246 by <link to="ISession::machine"/> and on new machines
5247 created by <link to="IVirtualBox::createMachine"/> or
5248 opened by <link to="IVirtualBox::openMachine"/> but not
5249 yet registered, or on unregistered machines after calling
5250 <link to="IVirtualBox::unregisterMachine"/>.
5251 </note>
5252 <note>
5253 The deleted machine settings file can be restored (saved again)
5254 by calling <link to="#saveSettings"/>.
5255 </note>
5256
5257 <result name="VBOX_E_INVALID_VM_STATE">
5258 Cannot delete settings of a registered machine or
5259 machine not mutable.
5260 </result>
5261 <result name="VBOX_E_IPRT_ERROR">
5262 Could not delete the settings file.
5263 </result>
5264
5265 </desc>
5266 </method>
5267
5268 <method name="export">
5269 <desc>Exports the machine to an OVF appliance. See <link to="IAppliance" /> for the
5270 steps required to export VirtualBox machines to OVF.
5271 </desc>
5272
5273 <param name="aAppliance" type="IAppliance" dir="in">
5274 <desc>Appliance to export this machine to.</desc>
5275 </param>
5276 <param name="aDescription" type="IVirtualSystemDescription" dir="return">
5277 <desc>VirtualSystemDescription object which is created for this machine.</desc>
5278 </param>
5279 </method >
5280
5281 <method name="getSnapshot">
5282 <desc>
5283 Returns a snapshot of this machine with the given UUID.
5284 A @c null UUID can be used to obtain the first snapshot
5285 taken on this machine. This is useful if you want to traverse
5286 the whole tree of snapshots starting from the root.
5287
5288 <result name="VBOX_E_OBJECT_NOT_FOUND">
5289 Virtual machine has no snapshots or snapshot not found.
5290 </result>
5291
5292 </desc>
5293 <param name="id" type="wstring" dir="in">
5294 <desc>UUID of the snapshot to get</desc>
5295 </param>
5296 <param name="snapshot" type="ISnapshot" dir="return">
5297 <desc>Snapshot object with the given UUID.</desc>
5298 </param>
5299 </method>
5300
5301 <method name="findSnapshot">
5302 <desc>
5303 Returns a snapshot of this machine with the given name.
5304
5305 <result name="VBOX_E_OBJECT_NOT_FOUND">
5306 Virtual machine has no snapshots or snapshot not found.
5307 </result>
5308
5309 </desc>
5310 <param name="name" type="wstring" dir="in">
5311 <desc>Name of the snapshot to find</desc>
5312 </param>
5313 <param name="snapshot" type="ISnapshot" dir="return">
5314 <desc>Snapshot object with the given name.</desc>
5315 </param>
5316 </method>
5317
5318 <method name="setCurrentSnapshot">
5319 <desc>
5320 Sets the current snapshot of this machine.
5321 <note>
5322 In the current implementation, this operation is not
5323 implemented.
5324 </note>
5325 </desc>
5326 <param name="id" type="wstring" dir="in">
5327 <desc>UUID of the snapshot to set as the current snapshot.</desc>
5328 </param>
5329 </method>
5330
5331 <method name="createSharedFolder">
5332 <desc>
5333 Creates a new permanent shared folder by associating the given logical
5334 name with the given host path, adds it to the collection of shared
5335 folders and starts sharing it. Refer to the description of
5336 <link to="ISharedFolder"/> to read more about logical names.
5337
5338 <result name="VBOX_E_OBJECT_IN_USE">
5339 Shared folder already exists.
5340 </result>
5341 <result name="VBOX_E_FILE_ERROR">
5342 Shared folder @a hostPath not accessible.
5343 </result>
5344
5345 </desc>
5346 <param name="name" type="wstring" dir="in">
5347 <desc>Unique logical name of the shared folder.</desc>
5348 </param>
5349 <param name="hostPath" type="wstring" dir="in">
5350 <desc>Full path to the shared folder in the host file system.</desc>
5351 </param>
5352 <param name="writable" type="boolean" dir="in">
5353 <desc>Whether the share is writable or readonly</desc>
5354 </param>
5355 </method>
5356
5357 <method name="removeSharedFolder">
5358 <desc>
5359 Removes the permanent shared folder with the given name previously
5360 created by <link to="#createSharedFolder"/> from the collection of
5361 shared folders and stops sharing it.
5362
5363 <result name="VBOX_E_INVALID_VM_STATE">
5364 Virtual machine is not mutable.
5365 </result>
5366 <result name="VBOX_E_OBJECT_NOT_FOUND">
5367 Shared folder @a name does not exist.
5368 </result>
5369
5370 </desc>
5371 <param name="name" type="wstring" dir="in">
5372 <desc>Logical name of the shared folder to remove.</desc>
5373 </param>
5374 </method>
5375
5376 <method name="canShowConsoleWindow">
5377 <desc>
5378 Returns @c true if the VM console process can activate the
5379 console window and bring it to foreground on the desktop of
5380 the host PC.
5381 <note>
5382 This method will fail if a session for this machine is not
5383 currently open.
5384 </note>
5385
5386 <result name="VBOX_E_INVALID_VM_STATE">
5387 Machine session is not open.
5388 </result>
5389
5390 </desc>
5391 <param name="canShow" type="boolean" dir="return">
5392 <desc>
5393 @c true if the console window can be shown and @c false otherwise.
5394 </desc>
5395 </param>
5396 </method>
5397
5398 <method name="showConsoleWindow">
5399 <desc>
5400 Activates the console window and brings it to foreground on
5401 the desktop of the host PC. Many modern window managers on
5402 many platforms implement some sort of focus stealing
5403 prevention logic, so that it may be impossible to activate
5404 a window without the help of the currently active
5405 application. In this case, this method will return a non-zero
5406 identifier that represents the top-level window of the VM
5407 console process. The caller, if it represents a currently
5408 active process, is responsible to use this identifier (in a
5409 platform-dependent manner) to perform actual window
5410 activation.
5411 <note>
5412 This method will fail if a session for this machine is not
5413 currently open.
5414 </note>
5415
5416 <result name="VBOX_E_INVALID_VM_STATE">
5417 Machine session is not open.
5418 </result>
5419
5420 </desc>
5421 <param name="winId" type="unsigned long long" dir="return">
5422 <desc>
5423 Platform-dependent identifier of the top-level VM console
5424 window, or zero if this method has performed all actions
5425 necessary to implement the <i>show window</i> semantics for
5426 the given platform and/or VirtualBox front-end.
5427 </desc>
5428 </param>
5429 </method>
5430
5431 <method name="getGuestProperty">
5432 <desc>
5433 Reads an entry from the machine's guest property store.
5434
5435 <result name="VBOX_E_INVALID_VM_STATE">
5436 Machine session is not open.
5437 </result>
5438
5439 </desc>
5440 <param name="name" type="wstring" dir="in">
5441 <desc>
5442 The name of the property to read.
5443 </desc>
5444 </param>
5445 <param name="value" type="wstring" dir="out">
5446 <desc>
5447 The value of the property. If the property does not exist then this
5448 will be empty.
5449 </desc>
5450 </param>
5451 <param name="timestamp" type="unsigned long long" dir="out">
5452 <desc>
5453 The time at which the property was last modified, as seen by the
5454 server process.
5455 </desc>
5456 </param>
5457 <param name="flags" type="wstring" dir="out">
5458 <desc>
5459 Additional property parameters, passed as a comma-separated list of
5460 "name=value" type entries.
5461 </desc>
5462 </param>
5463 </method>
5464
5465 <method name="getGuestPropertyValue">
5466 <desc>
5467 Reads a value from the machine's guest property store.
5468
5469 <result name="VBOX_E_INVALID_VM_STATE">
5470 Machine session is not open.
5471 </result>
5472
5473 </desc>
5474 <param name="property" type="wstring" dir="in">
5475 <desc>
5476 The name of the property to read.
5477 </desc>
5478 </param>
5479 <param name="value" type="wstring" dir="return">
5480 <desc>
5481 The value of the property. If the property does not exist then this
5482 will be empty.
5483 </desc>
5484 </param>
5485 </method>
5486
5487 <method name="getGuestPropertyTimestamp">
5488 <desc>
5489 Reads a property timestamp from the machine's guest property store.
5490
5491 <result name="VBOX_E_INVALID_VM_STATE">
5492 Machine session is not open.
5493 </result>
5494
5495 </desc>
5496 <param name="property" type="wstring" dir="in">
5497 <desc>
5498 The name of the property to read.
5499 </desc>
5500 </param>
5501 <param name="value" type="unsigned long long" dir="return">
5502 <desc>
5503 The timestamp. If the property does not exist then this will be
5504 empty.
5505 </desc>
5506 </param>
5507 </method>
5508
5509 <method name="setGuestProperty">
5510 <desc>
5511 Sets, changes or deletes an entry in the machine's guest property
5512 store.
5513
5514 <result name="E_ACCESSDENIED">
5515 Property cannot be changed.
5516 </result>
5517 <result name="E_INVALIDARG">
5518 Invalid @a flags.
5519 </result>
5520 <result name="VBOX_E_INVALID_VM_STATE">
5521 Virtual machine is not mutable or session not open.
5522 </result>
5523 <result name="VBOX_E_INVALID_OBJECT_STATE">
5524 Cannot set transient property when machine not running.
5525 </result>
5526
5527 </desc>
5528 <param name="property" type="wstring" dir="in">
5529 <desc>
5530 The name of the property to set, change or delete.
5531 </desc>
5532 </param>
5533 <param name="value" type="wstring" dir="in">
5534 <desc>
5535 The new value of the property to set, change or delete. If the
5536 property does not yet exist and value is non-empty, it will be
5537 created. If the value is @null or empty, the property will be
5538 deleted if it exists.
5539 </desc>
5540 </param>
5541 <param name="flags" type="wstring" dir="in">
5542 <desc>
5543 Additional property parameters, passed as a comma-separated list of
5544 "name=value" type entries.
5545 </desc>
5546 </param>
5547 </method>
5548
5549 <method name="setGuestPropertyValue">
5550 <desc>
5551 Sets, changes or deletes a value in the machine's guest property
5552 store. The flags field will be left unchanged or created empty for a
5553 new property.
5554
5555 <result name="E_ACCESSDENIED">
5556 Property cannot be changed.
5557 </result>
5558 <result name="VBOX_E_INVALID_VM_STATE">
5559 Virtual machine is not mutable or session not open.
5560 </result>
5561 <result name="VBOX_E_INVALID_OBJECT_STATE">
5562 Cannot set transient property when machine not running.
5563 </result>
5564 </desc>
5565
5566 <param name="property" type="wstring" dir="in">
5567 <desc>
5568 The name of the property to set, change or delete.
5569 </desc>
5570 </param>
5571 <param name="value" type="wstring" dir="in">
5572 <desc>
5573 The new value of the property to set, change or delete. If the
5574 property does not yet exist and value is non-empty, it will be
5575 created. If the value is @null or empty, the property will be
5576 deleted if it exists.
5577 </desc>
5578 </param>
5579 </method>
5580
5581 <method name="enumerateGuestProperties">
5582 <desc>
5583 Return a list of the guest properties matching a set of patterns along
5584 with their values, time stamps and flags.
5585 </desc>
5586 <param name="patterns" type="wstring" dir="in">
5587 <desc>
5588 The patterns to match the properties against, separated by '|'
5589 characters. If this is empty or @c null, all properties will match.
5590 </desc>
5591 </param>
5592 <param name="name" type="wstring" dir="out" safearray="yes">
5593 <desc>
5594 The names of the properties returned.
5595 </desc>
5596 </param>
5597 <param name="value" type="wstring" dir="out" safearray="yes">
5598 <desc>
5599 The values of the properties returned. The array entries match the
5600 corresponding entries in the @a name array.
5601 </desc>
5602 </param>
5603 <param name="timestamp" type="unsigned long long" dir="out" safearray="yes">
5604 <desc>
5605 The time stamps of the properties returned. The array entries match
5606 the corresponding entries in the @a name array.
5607 </desc>
5608 </param>
5609 <param name="flags" type="wstring" dir="out" safearray="yes">
5610 <desc>
5611 The flags of the properties returned. The array entries match the
5612 corresponding entries in the @a name array.
5613 </desc>
5614 </param>
5615 </method>
5616</interface>
5617
5618 <!--
5619 // IConsole
5620 /////////////////////////////////////////////////////////////////////////
5621 -->
5622
5623 <interface
5624 name="IConsoleCallback" extends="$unknown"
5625 uuid="13dfbef3-b74d-487d-bada-2304529aefa6"
5626 wsmap="suppress"
5627 >
5628
5629 <desc>
5630 This interface is used by a client of the Main API that need to
5631 be notified of events. For example, a graphical user interface
5632 can use this to learn about machine state changes so they can
5633 update the list of virtual machines without having to rely
5634 on polling.
5635
5636 Whenever relevant events occur in VirtualBox, the callbacks in
5637 objects of this interface are called. In order for this to be
5638 useful, a client needs to create its own subclass that implements
5639 this interface in which the methods for the relevant callbacks
5640 are overridden. An instance of this subclass interface can then
5641 be passed to <link to="IConsole::registerCallback" />.
5642 </desc>
5643
5644 <method name="onMousePointerShapeChange">
5645 <desc>
5646 Notification when the guest mouse pointer shape has
5647 changed. The new shape data is given.
5648 </desc>
5649 <param name="visible" type="boolean" dir="in">
5650 <desc>
5651 Flag whether the pointer is visible.
5652 </desc>
5653 </param>
5654 <param name="alpha" type="boolean" dir="in">
5655 <desc>
5656 Flag whether the pointer has an alpha channel.
5657 </desc>
5658 </param>
5659 <param name="xHot" type="unsigned long" dir="in">
5660 <desc>
5661 The pointer hot spot x coordinate.
5662 </desc>
5663 </param>
5664 <param name="yHot" type="unsigned long" dir="in">
5665 <desc>
5666 The pointer hot spot y coordinate.
5667 </desc>
5668 </param>
5669 <param name="width" type="unsigned long" dir="in">
5670 <desc>
5671 Width of the pointer shape in pixels.
5672 </desc>
5673 </param>
5674 <param name="height" type="unsigned long" dir="in">
5675 <desc>
5676 Height of the pointer shape in pixels.
5677 </desc>
5678 </param>
5679 <param name="shape" type="octet" mod="ptr" dir="in">
5680 <desc>
5681 Address of the shape buffer.
5682
5683 The @a shape buffer contains a 1-bpp (bits per pixel) AND mask
5684 followed by a 32-bpp XOR (color) mask.
5685
5686 For pointers without alpha channel the XOR mask pixels are 32
5687 bit values: (lsb)BGR0(msb). For pointers with alpha channel
5688 the XOR mask consists of (lsb)BGRA(msb) 32 bit values.
5689
5690 An AND mask is used for pointers with alpha channel, so if the
5691 callback does not support alpha, the pointer could be
5692 displayed as a normal color pointer.
5693
5694 The AND mask is a 1-bpp bitmap with byte aligned scanlines. The
5695 size of the AND mask therefore is <tt>cbAnd = (width + 7) / 8 *
5696 height</tt>. The padding bits at the end of each scanline are
5697 undefined.
5698
5699 The XOR mask follows the AND mask on the next 4-byte aligned
5700 offset: <tt>uint8_t *pXor = pAnd + (cbAnd + 3) &amp; ~3</tt>.
5701 Bytes in the gap between the AND and the XOR mask are undefined.
5702 The XOR mask scanlines have no gap between them and the size of
5703 the XOR mask is: <tt>cXor = width * 4 * height</tt>.
5704
5705 <note>
5706 If @a shape is 0, only the pointer visibility is changed.
5707 </note>
5708 </desc>
5709 </param>
5710 </method>
5711
5712 <method name="onMouseCapabilityChange">
5713 <desc>
5714 Notification when the mouse capabilities reported by the
5715 guest have changed. The new capabilities are passed.
5716 </desc>
5717 <param name="supportsAbsolute" type="boolean" dir="in"/>
5718 <param name="needsHostCursor" type="boolean" dir="in"/>
5719 </method>
5720
5721 <method name="onKeyboardLedsChange">
5722 <desc>
5723 Notification when the guest OS executes the KBD_CMD_SET_LEDS command
5724 to alter the state of the keyboard LEDs.
5725 </desc>
5726 <param name="numLock" type="boolean" dir="in"/>
5727 <param name="capsLock" type="boolean" dir="in"/>
5728 <param name="scrollLock" type="boolean" dir="in"/>
5729 </method>
5730
5731 <method name="onStateChange">
5732 <desc>
5733 Notification when the execution state of the machine has changed.
5734 The new state will be given.
5735 </desc>
5736 <param name="state" type="MachineState" dir="in"/>
5737 </method>
5738
5739 <method name="onAdditionsStateChange">
5740 <desc>
5741 Notification when a Guest Additions property changes.
5742 Interested callees should query IGuest attributes to
5743 find out what has changed.
5744 </desc>
5745 </method>
5746
5747 <method name="onDVDDriveChange">
5748 <desc>
5749 Notification when a property of the
5750 virtual <link to="IMachine::DVDDrive">DVD drive</link> changes.
5751 Interested callees should use IDVDDrive methods to find out what has
5752 changed.
5753 </desc>
5754 </method>
5755
5756 <method name="onFloppyDriveChange">
5757 <desc>
5758 Notification when a property of the
5759 virtual <link to="IMachine::floppyDrive">floppy drive</link> changes.
5760 Interested callees should use IFloppyDrive methods to find out what
5761 has changed.
5762 </desc>
5763 </method>
5764
5765 <method name="onNetworkAdapterChange">
5766 <desc>
5767 Notification when a property of one of the
5768 virtual <link to="IMachine::getNetworkAdapter">network adapters</link>
5769 changes. Interested callees should use INetworkAdapter methods and
5770 attributes to find out what has changed.
5771 </desc>
5772 <param name="networkAdapter" type="INetworkAdapter" dir="in">
5773 <desc>Network adapter that is subject to change.</desc>
5774 </param>
5775 </method>
5776
5777 <method name="onSerialPortChange">
5778 <desc>
5779 Notification when a property of one of the
5780 virtual <link to="IMachine::getSerialPort">serial ports</link> changes.
5781 Interested callees should use ISerialPort methods and attributes
5782 to find out what has changed.
5783 </desc>
5784 <param name="serialPort" type="ISerialPort" dir="in">
5785 <desc>Serial port that is subject to change.</desc>
5786 </param>
5787 </method>
5788
5789 <method name="onParallelPortChange">
5790 <desc>
5791 Notification when a property of one of the
5792 virtual <link to="IMachine::getParallelPort">parallel ports</link>
5793 changes. Interested callees should use ISerialPort methods and
5794 attributes to find out what has changed.
5795 </desc>
5796 <param name="parallelPort" type="IParallelPort" dir="in">
5797 <desc>Parallel port that is subject to change.</desc>
5798 </param>
5799 </method>
5800
5801 <method name="onStorageControllerChange">
5802 <desc>
5803 Notification when a property of one of the
5804 virtual <link to="IMachine::storageControllers">storage controllers</link>
5805 changes. Interested callees should query the corresponding collections
5806 to find out what has changed.
5807 </desc>
5808 </method>
5809
5810 <method name="onVRDPServerChange">
5811 <desc>
5812 Notification when a property of the
5813 <link to="IMachine::VRDPServer">VRDP server</link> changes.
5814 Interested callees should use IVRDPServer methods and attributes to
5815 find out what has changed.
5816 </desc>
5817 </method>
5818
5819 <method name="onUSBControllerChange">
5820 <desc>
5821 Notification when a property of the virtual
5822 <link to="IMachine::USBController">USB controller</link> changes.
5823 Interested callees should use IUSBController methods and attributes to
5824 find out what has changed.
5825 </desc>
5826 </method>
5827
5828 <method name="onUSBDeviceStateChange">
5829 <desc>
5830 Notification when a USB device is attached to or detached from
5831 the virtual USB controller.
5832
5833 This notification is sent as a result of the indirect
5834 request to attach the device because it matches one of the
5835 machine USB filters, or as a result of the direct request
5836 issued by <link to="IConsole::attachUSBDevice"/> or
5837 <link to="IConsole::detachUSBDevice"/>.
5838
5839 This notification is sent in case of both a succeeded and a
5840 failed request completion. When the request succeeds, the
5841 @a error parameter is @c null, and the given device has been
5842 already added to (when @a attached is @c true) or removed from
5843 (when @a attached is @c false) the collection represented by
5844 <link to="IConsole::USBDevices"/>. On failure, the collection
5845 doesn't change and the @a error parameter represents the error
5846 message describing the failure.
5847
5848 </desc>
5849 <param name="device" type="IUSBDevice" dir="in">
5850 <desc>Device that is subject to state change.</desc>
5851 </param>
5852 <param name="attached" type="boolean" dir="in">
5853 <desc>
5854 @c true if the device was attached and @c false otherwise.
5855 </desc>
5856 </param>
5857 <param name="error" type="IVirtualBoxErrorInfo" dir="in">
5858 <desc>
5859 @c null on success or an error message object on failure.
5860 </desc>
5861 </param>
5862 </method>
5863
5864 <method name="onSharedFolderChange">
5865 <desc>
5866 Notification when a shared folder is added or removed.
5867 The @a scope argument defines one of three scopes:
5868 <link to="IVirtualBox::sharedFolders">global shared folders</link>
5869 (<link to="Scope_Global">Global</link>),
5870 <link to="IMachine::sharedFolders">permanent shared folders</link> of
5871 the machine (<link to="Scope_Machine">Machine</link>) or <link
5872 to="IConsole::sharedFolders">transient shared folders</link> of the
5873 machine (<link to="Scope_Session">Session</link>). Interested callees
5874 should use query the corresponding collections to find out what has
5875 changed.
5876 </desc>
5877 <param name="scope" type="Scope" dir="in">
5878 <desc>Scope of the notification.</desc>
5879 </param>
5880 </method>
5881
5882 <method name="onRuntimeError">
5883 <desc>
5884 Notification when an error happens during the virtual
5885 machine execution.
5886
5887 There are three kinds of runtime errors:
5888 <ul>
5889 <li><i>fatal</i></li>
5890 <li><i>non-fatal with retry</i></li>
5891 <li><i>non-fatal warnings</i></li>
5892 </ul>
5893
5894 <b>Fatal</b> errors are indicated by the @a fatal parameter set
5895 to @c true. In case of fatal errors, the virtual machine
5896 execution is always paused before calling this notification, and
5897 the notification handler is supposed either to immediately save
5898 the virtual machine state using <link to="IConsole::saveState"/>
5899 or power it off using <link to="IConsole::powerDown"/>.
5900 Resuming the execution can lead to unpredictable results.
5901
5902 <b>Non-fatal</b> errors and warnings are indicated by the
5903 @a fatal parameter set to @c false. If the virtual machine
5904 is in the Paused state by the time the error notification is
5905 received, it means that the user can <i>try to resume</i> the machine
5906 execution after attempting to solve the problem that caused the
5907 error. In this case, the notification handler is supposed
5908 to show an appropriate message to the user (depending on the
5909 value of the @a id parameter) that offers several actions such
5910 as <i>Retry</i>, <i>Save</i> or <i>Power Off</i>. If the user
5911 wants to retry, the notification handler should continue
5912 the machine execution using the <link to="IConsole::resume"/>
5913 call. If the machine execution is not Paused during this
5914 notification, then it means this notification is a <i>warning</i>
5915 (for example, about a fatal condition that can happen very soon);
5916 no immediate action is required from the user, the machine
5917 continues its normal execution.
5918
5919 Note that in either case the notification handler
5920 <b>must not</b> perform any action directly on a thread
5921 where this notification is called. Everything it is allowed to
5922 do is to post a message to another thread that will then talk
5923 to the user and take the corresponding action.
5924
5925 Currently, the following error identifiers are known:
5926 <ul>
5927 <li><tt>"HostMemoryLow"</tt></li>
5928 <li><tt>"HostAudioNotResponding"</tt></li>
5929 <li><tt>"VDIStorageFull"</tt></li>
5930 </ul>
5931
5932 <note>
5933 This notification is not designed to be implemented by
5934 more than one callback at a time. If you have multiple
5935 IConsoleCallback instances registered on the given
5936 IConsole object, make sure you simply do nothing but
5937 return @c S_OK from all but one of them that does actual
5938 user notification and performs necessary actions.
5939 </note>
5940
5941 </desc>
5942 <param name="fatal" type="boolean" dir="in">
5943 <desc>Whether the error is fatal or not</desc>
5944 </param>
5945 <param name="id" type="wstring" dir="in">
5946 <desc>Error identifier</desc>
5947 </param>
5948 <param name="message" type="wstring" dir="in">
5949 <desc>Optional error message</desc>
5950 </param>
5951 </method>
5952
5953 <method name="onCanShowWindow">
5954 <desc>
5955 Notification when a call to
5956 <link to="IMachine::canShowConsoleWindow"/> is made by a
5957 front-end to check if a subsequent call to
5958 <link to="IMachine::showConsoleWindow"/> can succeed.
5959
5960 The callee should give an answer appropriate to the current
5961 machine state in the @a canShow argument. This answer must
5962 remain valid at least until the next
5963 <link to="IConsole::state">machine state</link> change.
5964
5965 <note>
5966 This notification is not designed to be implemented by
5967 more than one callback at a time. If you have multiple
5968 IConsoleCallback instances registered on the given
5969 IConsole object, make sure you simply do nothing but
5970 return @c true and @c S_OK from all but one of them that
5971 actually manages console window activation.
5972 </note>
5973 </desc>
5974 <param name="canShow" type="boolean" dir="return">
5975 <desc>
5976 @c true if the console window can be shown and @c false otherwise.
5977 </desc>
5978 </param>
5979 </method>
5980
5981 <method name="onShowWindow">
5982 <desc>
5983 Notification when a call to
5984 <link to="IMachine::showConsoleWindow"/>
5985 requests the console window to be activated and brought to
5986 foreground on the desktop of the host PC.
5987
5988 This notification should cause the VM console process to
5989 perform the requested action as described above. If it is
5990 impossible to do it at a time of this notification, this
5991 method should return a failure.
5992
5993 Note that many modern window managers on many platforms
5994 implement some sort of focus stealing prevention logic, so
5995 that it may be impossible to activate a window without the
5996 help of the currently active application (which is supposedly
5997 an initiator of this notification). In this case, this method
5998 must return a non-zero identifier that represents the
5999 top-level window of the VM console process. The caller, if it
6000 represents a currently active process, is responsible to use
6001 this identifier (in a platform-dependent manner) to perform
6002 actual window activation.
6003
6004 This method must set @a winId to zero if it has performed all
6005 actions necessary to complete the request and the console
6006 window is now active and in foreground, to indicate that no
6007 further action is required on the caller's side.
6008
6009 <note>
6010 This notification is not designed to be implemented by
6011 more than one callback at a time. If you have multiple
6012 IConsoleCallback instances registered on the given
6013 IConsole object, make sure you simply do nothing but
6014 return @c S_OK from all but one of them that actually
6015 manages console window activation.
6016 </note>
6017 </desc>
6018 <param name="winId" type="unsigned long long" dir="return">
6019 <desc>
6020 Platform-dependent identifier of the top-level VM console
6021 window, or zero if this method has performed all actions
6022 necessary to implement the <i>show window</i> semantics for
6023 the given platform and/or this VirtualBox front-end.
6024 </desc>
6025 </param>
6026 </method>
6027
6028 </interface>
6029
6030 <interface
6031 name="IRemoteDisplayInfo" extends="$unknown"
6032 uuid="550104cd-2dfd-4a6c-857d-f6f8e088e62c"
6033 wsmap="struct"
6034 >
6035 <desc>
6036 Contains information about the remote display (VRDP) capabilities and status.
6037 This is used in the <link to="IConsole::remoteDisplayInfo" /> attribute.
6038 </desc>
6039
6040 <attribute name="active" type="boolean" readonly="yes">
6041 <desc>
6042 Whether the remote display connection is active.
6043 </desc>
6044 </attribute>
6045
6046 <attribute name="numberOfClients" type="unsigned long" readonly="yes">
6047 <desc>
6048 How many times a client connected.
6049 </desc>
6050 </attribute>
6051
6052 <attribute name="beginTime" type="long long" readonly="yes">
6053 <desc>
6054 When the last connection was established, in milliseconds since 1970-01-01 UTC.
6055 </desc>
6056 </attribute>
6057
6058 <attribute name="endTime" type="long long" readonly="yes">
6059 <desc>
6060 When the last connection was terminated or the current time, if
6061 connection is still active, in milliseconds since 1970-01-01 UTC.
6062 </desc>
6063 </attribute>
6064
6065 <attribute name="bytesSent" type="unsigned long long" readonly="yes">
6066 <desc>
6067 How many bytes were sent in last or current, if still active, connection.
6068 </desc>
6069 </attribute>
6070
6071 <attribute name="bytesSentTotal" type="unsigned long long" readonly="yes">
6072 <desc>
6073 How many bytes were sent in all connections.
6074 </desc>
6075 </attribute>
6076
6077 <attribute name="bytesReceived" type="unsigned long long" readonly="yes">
6078 <desc>
6079 How many bytes were received in last or current, if still active, connection.
6080 </desc>
6081 </attribute>
6082
6083 <attribute name="bytesReceivedTotal" type="unsigned long long" readonly="yes">
6084 <desc>
6085 How many bytes were received in all connections.
6086 </desc>
6087 </attribute>
6088
6089 <attribute name="user" type="wstring" readonly="yes">
6090 <desc>
6091 Login user name supplied by the client.
6092 </desc>
6093 </attribute>
6094
6095 <attribute name="domain" type="wstring" readonly="yes">
6096 <desc>
6097 Login domain name supplied by the client.
6098 </desc>
6099 </attribute>
6100
6101 <attribute name="clientName" type="wstring" readonly="yes">
6102 <desc>
6103 The client name supplied by the client.
6104 </desc>
6105 </attribute>
6106
6107 <attribute name="clientIP" type="wstring" readonly="yes">
6108 <desc>
6109 The IP address of the client.
6110 </desc>
6111 </attribute>
6112
6113 <attribute name="clientVersion" type="unsigned long" readonly="yes">
6114 <desc>
6115 The client software version number.
6116 </desc>
6117 </attribute>
6118
6119 <attribute name="encryptionStyle" type="unsigned long" readonly="yes">
6120 <desc>
6121 Public key exchange method used when connection was established.
6122 Values: 0 - RDP4 public key exchange scheme.
6123 1 - X509 certificates were sent to client.
6124 </desc>
6125 </attribute>
6126
6127 </interface>
6128
6129 <interface
6130 name="IConsole" extends="$unknown"
6131 uuid="0a51994b-cbc6-4686-94eb-d4e4023280e2"
6132 wsmap="managed"
6133 >
6134 <desc>
6135 The IConsole interface represents an interface to control virtual
6136 machine execution.
6137
6138 The console object that implements the IConsole interface is obtained
6139 from a session object after the session for the given machine has been
6140 opened using one of <link to="IVirtualBox::openSession"/>,
6141 <link to="IVirtualBox::openRemoteSession"/> or
6142 <link to="IVirtualBox::openExistingSession"/> methods.
6143
6144 Methods of the IConsole interface allow the caller to query the current
6145 virtual machine execution state, pause the machine or power it down, save
6146 the machine state or take a snapshot, attach and detach removable media
6147 and so on.
6148
6149 <see>ISession</see>
6150 </desc>
6151
6152 <attribute name="machine" type="IMachine" readonly="yes">
6153 <desc>
6154 Machine object this console is sessioned with.
6155 <note>
6156 This is a convenience property, it has the same value as
6157 <link to="ISession::machine"/> of the corresponding session
6158 object.
6159 </note>
6160 </desc>
6161 </attribute>
6162
6163 <attribute name="state" type="MachineState" readonly="yes">
6164 <desc>
6165 Current execution state of the machine.
6166 <note>
6167 This property always returns the same value as the corresponding
6168 property of the IMachine object this console is sessioned with.
6169 For the process that owns (executes) the VM, this is the
6170 preferable way of querying the VM state, because no IPC
6171 calls are made.
6172 </note>
6173 </desc>
6174 </attribute>
6175
6176 <attribute name="guest" type="IGuest" readonly="yes">
6177 <desc>Guest object.</desc>
6178 </attribute>
6179
6180 <attribute name="keyboard" type="IKeyboard" readonly="yes">
6181 <desc>
6182 Virtual keyboard object.
6183 <note>
6184 If the machine is not running, any attempt to use
6185 the returned object will result in an error.
6186 </note>
6187 </desc>
6188 </attribute>
6189
6190 <attribute name="mouse" type="IMouse" readonly="yes">
6191 <desc>
6192 Virtual mouse object.
6193 <note>
6194 If the machine is not running, any attempt to use
6195 the returned object will result in an error.
6196 </note>
6197 </desc>
6198 </attribute>
6199
6200 <attribute name="display" type="IDisplay" readonly="yes">
6201 <desc>Virtual display object.
6202 <note>
6203 If the machine is not running, any attempt to use
6204 the returned object will result in an error.
6205 </note>
6206 </desc>
6207 </attribute>
6208
6209 <attribute name="debugger" type="IMachineDebugger" readonly="yes">
6210 <desc>Debugging interface.</desc>
6211 </attribute>
6212
6213 <attribute name="USBDevices" type="IUSBDevice" readonly="yes" safearray="yes">
6214 <desc>
6215 Collection of USB devices currently attached to the virtual
6216 USB controller.
6217 <note>
6218 The collection is empty if the machine is not running.
6219 </note>
6220 </desc>
6221 </attribute>
6222
6223 <attribute name="remoteUSBDevices" type="IHostUSBDevice" readonly="yes" safearray="yes">
6224 <desc>
6225 List of USB devices currently attached to the remote VRDP client.
6226 Once a new device is physically attached to the remote host computer,
6227 it appears in this list and remains there until detached.
6228 </desc>
6229 </attribute>
6230
6231 <attribute name="sharedFolders" type="ISharedFolder" readonly="yes" safearray="yes">
6232 <desc>
6233 Collection of shared folders for the current session. These folders
6234 are called transient shared folders because they are available to the
6235 guest OS running inside the associated virtual machine only for the
6236 duration of the session (as opposed to
6237 <link to="IMachine::sharedFolders"/> which represent permanent shared
6238 folders). When the session is closed (e.g. the machine is powered down),
6239 these folders are automatically discarded.
6240
6241 New shared folders are added to the collection using
6242 <link to="#createSharedFolder"/>. Existing shared folders can be
6243 removed using <link to="#removeSharedFolder"/>.
6244 </desc>
6245 </attribute>
6246
6247 <attribute name="remoteDisplayInfo" type="IRemoteDisplayInfo" readonly="yes">
6248 <desc>
6249 Interface that provides information on Remote Display (VRDP) connection.
6250 </desc>
6251 </attribute>
6252
6253 <method name="powerUp">
6254 <desc>
6255 Starts the virtual machine execution using the current machine
6256 state (that is, its current execution state, current settings and
6257 current hard disks).
6258
6259 If the machine is powered off or aborted, the execution will
6260 start from the beginning (as if the real hardware were just
6261 powered on).
6262
6263 If the machine is in the <link to="MachineState_Saved"/> state,
6264 it will continue its execution the point where the state has
6265 been saved.
6266
6267 <note>
6268 Unless you are trying to write a new VirtualBox front-end that
6269 performs direct machine execution (like the VirtualBox or VBoxSDL
6270 front-ends), don't call <link to="IConsole::powerUp"/> in a direct
6271 session opened by <link to="IVirtualBox::openSession"/> and use this
6272 session only to change virtual machine settings. If you simply want to
6273 start virtual machine execution using one of the existing front-ends
6274 (for example the VirtualBox GUI or headless server), simply use
6275 <link to="IVirtualBox::openRemoteSession"/>; these front-ends will
6276 power up the machine automatically for you.
6277 </note>
6278
6279 <see>#saveState</see>
6280 <result name="VBOX_E_INVALID_VM_STATE">
6281 Virtual machine already running.
6282 </result>
6283 <result name="VBOX_E_HOST_ERROR">
6284 Host interface does not exist or name not set.
6285 </result>
6286 <result name="VBOX_E_FILE_ERROR">
6287 Invalid saved state file.
6288 </result>
6289 </desc>
6290 <param name="progress" type="IProgress" dir="return">
6291 <desc>Progress object to track the operation completion.</desc>
6292 </param>
6293 </method>
6294
6295 <method name="powerUpPaused">
6296 <desc>
6297 Identical to powerUp except that the VM will enter the
6298 <link to="MachineState_Paused"/> state, instead of
6299 <link to="MachineState_Running"/>.
6300
6301 <see>#powerUp</see>
6302 <result name="VBOX_E_INVALID_VM_STATE">
6303 Virtual machine already running.
6304 </result>
6305 <result name="VBOX_E_HOST_ERROR">
6306 Host interface does not exist or name not set.
6307 </result>
6308 <result name="VBOX_E_FILE_ERROR">
6309 Invalid saved state file.
6310 </result>
6311 </desc>
6312 <param name="progress" type="IProgress" dir="return">
6313 <desc>Progress object to track the operation completion.</desc>
6314 </param>
6315 </method>
6316
6317 <method name="powerDown">
6318 <desc>
6319 Initiates the power down procedure to stop the virtual machine
6320 execution.
6321
6322 The completion of the power down procedure is tracked using the returned
6323 IProgress object. After the operation is complete, the machine will go
6324 to the PoweredOff state.
6325 <result name="VBOX_E_INVALID_VM_STATE">
6326 Virtual machine must be Running, Paused or Stuck to be powered down.
6327 </result>
6328 </desc>
6329 <param name="progress" type="IProgress" dir="return">
6330 <desc>Progress object to track the operation completion.</desc>
6331 </param>
6332 </method>
6333
6334 <method name="reset">
6335 <desc>Resets the virtual machine.
6336 <result name="VBOX_E_INVALID_VM_STATE">
6337 Virtual machine not in Running state.
6338 </result>
6339 <result name="VBOX_E_VM_ERROR">
6340 Virtual machine error in reset operation.
6341 </result>
6342 </desc>
6343 </method>
6344
6345 <method name="pause">
6346 <desc>Pauses the virtual machine execution.
6347 <result name="VBOX_E_INVALID_VM_STATE">
6348 Virtual machine not in Running state.
6349 </result>
6350 <result name="VBOX_E_VM_ERROR">
6351 Virtual machine error in suspend operation.
6352 </result>
6353 </desc>
6354 </method>
6355
6356 <method name="resume">
6357 <desc>Resumes the virtual machine execution.
6358 <result name="VBOX_E_INVALID_VM_STATE">
6359 Virtual machine not in Paused state.
6360 </result>
6361 <result name="VBOX_E_VM_ERROR">
6362 Virtual machine error in resume operation.
6363 </result>
6364 </desc>
6365 </method>
6366
6367 <method name="powerButton">
6368 <desc>Sends the ACPI power button event to the guest.
6369 <result name="VBOX_E_INVALID_VM_STATE">
6370 Virtual machine not in Running state.
6371 </result>
6372 <result name="VBOX_E_PDM_ERROR">
6373 Controlled power off failed.
6374 </result>
6375 </desc>
6376 </method>
6377
6378 <method name="sleepButton">
6379 <desc>Sends the ACPI sleep button event to the guest.
6380 <result name="VBOX_E_INVALID_VM_STATE">
6381 Virtual machine not in Running state.
6382 </result>
6383 <result name="VBOX_E_PDM_ERROR">
6384 Sending sleep button event failed.
6385 </result>
6386 </desc>
6387 </method>
6388
6389 <method name="getPowerButtonHandled">
6390 <desc>Checks if the last power button event was handled by guest.
6391 <result name="VBOX_E_PDM_ERROR">
6392 Checking if the event was handled by the guest OS failed.
6393 </result>
6394 </desc>
6395 <param name="handled" type="boolean" dir="return"/>
6396 </method>
6397
6398 <method name="getGuestEnteredACPIMode">
6399 <desc>Checks if the guest entered the ACPI mode G0 (working) or
6400 G1 (sleeping). If this method returns @c false, the guest will
6401 most likely not respond to external ACPI events.
6402 <result name="VBOX_E_INVALID_VM_STATE">
6403 Virtual machine not in Running state.
6404 </result>
6405 </desc>
6406 <param name="entered" type="boolean" dir="return"/>
6407 </method>
6408
6409 <method name="saveState">
6410 <desc>
6411 Saves the current execution state of a running virtual machine
6412 and stops its execution.
6413
6414 After this operation completes, the machine will go to the
6415 Saved state. Next time it is powered up, this state will
6416 be restored and the machine will continue its execution from
6417 the place where it was saved.
6418
6419 This operation differs from taking a snapshot to the effect
6420 that it doesn't create new differencing hard disks. Also, once
6421 the machine is powered up from the state saved using this method,
6422 the saved state is deleted, so it will be impossible to return
6423 to this state later.
6424
6425 <note>
6426 On success, this method implicitly calls
6427 <link to="IMachine::saveSettings"/> to save all current machine
6428 settings (including runtime changes to the DVD drive, etc.).
6429 Together with the impossibility to change any VM settings when it is
6430 in the Saved state, this guarantees adequate hardware
6431 configuration of the machine when it is restored from the saved
6432 state file.
6433 </note>
6434
6435 <note>
6436 The machine must be in the Running or Paused state, otherwise
6437 the operation will fail.
6438 </note>
6439 <result name="VBOX_E_INVALID_VM_STATE">
6440 Virtual machine state neither Running nor Paused.
6441 </result>
6442 <result name="VBOX_E_FILE_ERROR">
6443 Failed to create directory for saved state file.
6444 </result>
6445
6446 <see><link to="#takeSnapshot"/></see>
6447 </desc>
6448 <param name="progress" type="IProgress" dir="return">
6449 <desc>Progress object to track the operation completion.</desc>
6450 </param>
6451 </method>
6452
6453 <method name="adoptSavedState">
6454 <desc>
6455 Associates the given saved state file to the virtual machine.
6456
6457 On success, the machine will go to the Saved state. Next time it is
6458 powered up, it will be restored from the adopted saved state and
6459 continue execution from the place where the saved state file was
6460 created.
6461
6462 The specified saved state file path may be absolute or relative to the
6463 folder the VM normally saves the state to (usually,
6464 <link to="IMachine::snapshotFolder"/>).
6465
6466 <note>
6467 It's a caller's responsibility to make sure the given saved state
6468 file is compatible with the settings of this virtual machine that
6469 represent its virtual hardware (memory size, hard disk configuration
6470 etc.). If there is a mismatch, the behavior of the virtual machine
6471 is undefined.
6472 </note>
6473 <result name="VBOX_E_INVALID_VM_STATE">
6474 Virtual machine state neither PoweredOff nor Aborted.
6475 </result>
6476 </desc>
6477 <param name="savedStateFile" type="wstring" dir="in">
6478 <desc>Path to the saved state file to adopt.</desc>
6479 </param>
6480 </method>
6481
6482 <method name="forgetSavedState">
6483 <desc>
6484 Forgets the saved state of the virtual machine previously created
6485 by <link to="#saveState"/>. Next time the machine is powered up, a
6486 clean boot will occur. If @a remove is @c true the saved state file
6487 is deleted.
6488 <note>
6489 This operation is equivalent to resetting or powering off
6490 the machine without doing a proper shutdown in the guest OS.
6491 </note>
6492 <result name="VBOX_E_INVALID_VM_STATE">
6493 Virtual machine not in state Saved.
6494 </result>
6495 </desc>
6496 <param name="remove" type="boolean" dir="in">
6497 <desc>If @c true remove the saved state file.</desc>
6498 </param>
6499 </method>
6500
6501 <method name="getDeviceActivity">
6502 <desc>
6503 Gets the current activity type of a given device or device group.
6504 <result name="E_INVALIDARG">
6505 Invalid device type.
6506 </result>
6507 </desc>
6508 <param name="type" type="DeviceType" dir="in"/>
6509 <param name="activity" type="DeviceActivity" dir="return"/>
6510 </method>
6511
6512 <method name="attachUSBDevice">
6513 <desc>
6514 Attaches a host USB device with the given UUID to the
6515 USB controller of the virtual machine.
6516
6517 The device needs to be in one of the following states:
6518 <link to="USBDeviceState_Busy"/>,
6519 <link to="USBDeviceState_Available"/> or
6520 <link to="USBDeviceState_Held"/>,
6521 otherwise an error is immediately returned.
6522
6523 When the device state is
6524 <link to="USBDeviceState_Busy">Busy</link>, an error may also
6525 be returned if the host computer refuses to release it for some reason.
6526
6527 <see>IUSBController::deviceFilters, USBDeviceState</see>
6528 <result name="VBOX_E_INVALID_VM_STATE">
6529 Virtual machine state neither Running nor Paused.
6530 </result>
6531 <result name="VBOX_E_PDM_ERROR">
6532 Virtual machine does not have a USB controller.
6533 </result>
6534 </desc>
6535 <param name="id" type="wstring" dir="in">
6536 <desc>UUID of the host USB device to attach.</desc>
6537 </param>
6538 </method>
6539
6540 <method name="detachUSBDevice">
6541 <desc>
6542 Detaches an USB device with the given UUID from the USB controller
6543 of the virtual machine.
6544
6545 After this method succeeds, the VirtualBox server re-initiates
6546 all USB filters as if the device were just physically attached
6547 to the host, but filters of this machine are ignored to avoid
6548 a possible automatic re-attachment.
6549
6550 <see>IUSBController::deviceFilters, USBDeviceState</see>
6551
6552 <result name="VBOX_E_PDM_ERROR">
6553 Virtual machine does not have a USB controller.
6554 </result>
6555 <result name="E_INVALIDARG">
6556 USB device not attached to this virtual machine.
6557 </result>
6558 </desc>
6559 <param name="id" type="wstring" dir="in">
6560 <desc>UUID of the USB device to detach.</desc>
6561 </param>
6562 <param name="device" type="IUSBDevice" dir="return">
6563 <desc>Detached USB device.</desc>
6564 </param>
6565 </method>
6566
6567 <method name="findUSBDeviceByAddress">
6568 <desc>
6569 Searches for a USB device with the given host address.
6570
6571 <result name="VBOX_E_OBJECT_NOT_FOUND">
6572 Given @c name does not correspond to any USB device.
6573 </result>
6574
6575 <see>IUSBDevice::address</see>
6576 </desc>
6577 <param name="name" type="wstring" dir="in">
6578 <desc>
6579 Address of the USB device (as assigned by the host) to
6580 search for.
6581 </desc>
6582 </param>
6583 <param name="device" type="IUSBDevice" dir="return">
6584 <desc>Found USB device object.</desc>
6585 </param>
6586 </method>
6587
6588 <method name="findUSBDeviceById">
6589 <desc>
6590 Searches for a USB device with the given UUID.
6591
6592 <result name="VBOX_E_OBJECT_NOT_FOUND">
6593 Given @c id does not correspond to any USB device.
6594 </result>
6595
6596 <see>IUSBDevice::id</see>
6597 </desc>
6598 <param name="id" type="wstring" dir="in">
6599 <desc>UUID of the USB device to search for.</desc>
6600 </param>
6601 <param name="device" type="IUSBDevice" dir="return">
6602 <desc>Found USB device object.</desc>
6603 </param>
6604 </method>
6605
6606 <method name="createSharedFolder">
6607 <desc>
6608 Creates a transient new shared folder by associating the given logical
6609 name with the given host path, adds it to the collection of shared
6610 folders and starts sharing it. Refer to the description of
6611 <link to="ISharedFolder"/> to read more about logical names.
6612
6613 <result name="VBOX_E_INVALID_VM_STATE">
6614 Virtual machine in Saved state or currently changing state.
6615 </result>
6616 <result name="VBOX_E_FILE_ERROR">
6617 Shared folder already exists or not accessible.
6618 </result>
6619 </desc>
6620 <param name="name" type="wstring" dir="in">
6621 <desc>Unique logical name of the shared folder.</desc>
6622 </param>
6623 <param name="hostPath" type="wstring" dir="in">
6624 <desc>Full path to the shared folder in the host file system.</desc>
6625 </param>
6626 <param name="writable" type="boolean" dir="in">
6627 <desc>Whether the share is writable or readonly</desc>
6628 </param>
6629 </method>
6630
6631 <method name="removeSharedFolder">
6632 <desc>
6633 Removes a transient shared folder with the given name previously
6634 created by <link to="#createSharedFolder"/> from the collection of
6635 shared folders and stops sharing it.
6636 <result name="VBOX_E_INVALID_VM_STATE">
6637 Virtual machine in Saved state or currently changing state.
6638 </result>
6639 <result name="VBOX_E_FILE_ERROR">
6640 Shared folder does not exists.
6641 </result>
6642 </desc>
6643 <param name="name" type="wstring" dir="in">
6644 <desc>Logical name of the shared folder to remove.</desc>
6645 </param>
6646 </method>
6647
6648 <method name="takeSnapshot">
6649 <desc>
6650 Saves the current execution state and all settings of the
6651 machine and creates differencing images for all
6652 normal (non-independent) hard disks.
6653
6654 This method can be called for a PoweredOff, Saved, Running or
6655 Paused virtual machine. When the machine is PoweredOff, an
6656 offline <link to="ISnapshot">snapshot</link> is created,
6657 in all other cases -- an online snapshot.
6658
6659 The taken snapshot is always based on the
6660 <link to="IMachine::currentSnapshot">current
6661 snapshot</link> of the associated virtual machine and becomes
6662 a new current snapshot.
6663
6664 <note>
6665 This method implicitly calls <link to="IMachine::saveSettings"/> to
6666 save all current machine settings before taking an offline snapshot.
6667 </note>
6668
6669 <see>ISnapshot, <link to="#saveState"/></see>
6670 <result name="VBOX_E_INVALID_VM_STATE">
6671 Virtual machine currently changing state.
6672 </result>
6673 </desc>
6674 <param name="name" type="wstring" dir="in">
6675 <desc>Short name for the snapshot.</desc>
6676 </param>
6677 <param name="description" type="wstring" dir="in">
6678 <desc>Optional description of the snapshot.</desc>
6679 </param>
6680 <param name="progress" type="IProgress" dir="return">
6681 <desc>Progress object to track the operation completion.</desc>
6682 </param>
6683 </method>
6684
6685 <method name="discardSnapshot">
6686 <desc>
6687
6688 Starts discarding the specified snapshot. The execution state
6689 and settings of the associated machine stored in the snapshot
6690 will be deleted. The contents of all differencing hard disks of
6691 this snapshot will be merged with the contents of their
6692 dependent child hard disks to keep the, disks valid (in other
6693 words, all changes represented by hard disks being discarded
6694 will be propagated to their child hard disks). After that, this
6695 snapshot's differencing hard disks will be deleted. The parent
6696 of this snapshot will become a new parent for all its child
6697 snapshots.
6698
6699 If the discarded snapshot is the current one, its parent
6700 snapshot will become a new current snapshot. The current machine
6701 state is not directly affected in this case, except that
6702 currently attached differencing hard disks based on hard disks
6703 of the discarded snapshot will be also merged as described
6704 above.
6705
6706 If the discarded snapshot is the first one (the root snapshot)
6707 and it has exactly one child snapshot, this child snapshot will
6708 become the first snapshot after discarding. If there are no
6709 children at all (i.e. the first snapshot is the only snapshot of
6710 the machine), both the current and the first snapshot of the
6711 machine will be set to @c null. In all other cases, the first
6712 snapshot cannot be discarded.
6713
6714 You cannot discard the snapshot if it
6715 stores <link to="HardDiskType_Normal">normal</link> (non-differencing)
6716 hard disks that have differencing hard disks based on them. Snapshots of
6717 such kind can be discarded only when every normal hard disk has either
6718 no children at all or exactly one child. In the former case, the normal
6719 hard disk simply becomes unused (i.e. not attached to any VM). In the
6720 latter case, it receives all the changes stored in the child hard disk,
6721 and then it replaces the child hard disk in the configuration of the
6722 corresponding snapshot or machine.
6723
6724 Also, you cannot discard the snapshot if it stores hard disks
6725 (of any type) having differencing child hard disks that belong
6726 to other machines. Such snapshots can be only discarded after
6727 you discard all snapshots of other machines containing "foreign"
6728 child disks, or detach these "foreign" child disks from machines
6729 they are attached to.
6730
6731 One particular example of the snapshot storing normal hard disks
6732 is the first snapshot of a virtual machine that had normal hard
6733 disks attached when taking the snapshot. Be careful when
6734 discarding such snapshots because this implicitly commits
6735 changes (made since the snapshot being discarded has been taken)
6736 to normal hard disks (as described above), which may be not what
6737 you want.
6738
6739 The virtual machine is put to
6740 the <link to="MachineState_Discarding">Discarding</link> state until
6741 the discard operation is completed.
6742
6743 <note>
6744 The machine must not be running, otherwise the operation
6745 will fail.
6746 </note>
6747
6748 <note>
6749 Child hard disks of all normal hard disks of the discarded snapshot
6750 must be accessible (see <link to="IMedium::state"/>) for this
6751 operation to succeed. In particular, this means that all virtual
6752 machines, whose hard disks are directly or indirectly based on the
6753 hard disks of discarded snapshot, must be powered off.
6754 </note>
6755 <note>
6756 Merging hard disk contents can be very time and disk space
6757 consuming, if these disks are big in size and have many
6758 children. However, if the snapshot being discarded is the last
6759 (head) snapshot on the branch, the operation will be rather
6760 quick.
6761 </note>
6762 <note>
6763 Note that discarding the current snapshot
6764 will implicitly call <link to="IMachine::saveSettings"/> to
6765 make all current machine settings permanent.
6766 </note>
6767 <result name="VBOX_E_INVALID_VM_STATE">
6768 Virtual machine is running.
6769 </result>
6770 </desc>
6771 <param name="id" type="wstring" dir="in">
6772 <desc>UUID of the snapshot to discard.</desc>
6773 </param>
6774 <param name="progress" type="IProgress" dir="return">
6775 <desc>Progress object to track the operation completion.</desc>
6776 </param>
6777 </method>
6778
6779 <method name="discardCurrentState">
6780 <desc>
6781 This operation is similar to <link to="IConsole::discardSnapshot"/> but
6782 affects the current machine state. This means that the state stored in
6783 the current snapshot will become a new current state, and all current
6784 settings of the machine and changes stored in differencing hard disks
6785 will be lost.
6786
6787 After this operation is successfully completed, new empty differencing
6788 hard disks are created for all normal hard disks of the machine.
6789
6790 If the current snapshot of the machine is an online snapshot, the
6791 machine will go to the <link to="MachineState_Saved"> saved
6792 state</link>, so that the next time it is powered on, the execution
6793 state will be restored from the current snapshot.
6794
6795 <note>
6796 The machine must not be running, otherwise the operation will fail.
6797 </note>
6798
6799 <note>
6800 If the machine state is <link to="MachineState_Saved">Saved</link>
6801 prior to this operation, the saved state file will be implicitly
6802 discarded (as if <link to="IConsole::forgetSavedState"/> were
6803 called).
6804 </note>
6805
6806 <result name="VBOX_E_INVALID_VM_STATE">
6807 Virtual machine is running.
6808 </result>
6809 </desc>
6810 <param name="progress" type="IProgress" dir="return">
6811 <desc>Progress object to track the operation completion.</desc>
6812 </param>
6813 </method>
6814
6815 <method name="discardCurrentSnapshotAndState">
6816 <desc>
6817
6818 This method is equivalent to
6819 doing <link to="IConsole::discardSnapshot">discardSnapshot</link>
6820 (currentSnapshot.id(), progress) followed by
6821 <link to="IConsole::discardCurrentState"/>.
6822
6823 As a result, the machine will be fully restored from the
6824 snapshot preceding the current snapshot, while both the current
6825 snapshot and the current machine state will be discarded.
6826
6827 If the current snapshot is the first snapshot of the machine (i.e. it
6828 has the only snapshot), the current machine state will be
6829 discarded <b>before</b> discarding the snapshot. In other words, the
6830 machine will be restored from its last snapshot, before discarding
6831 it. This differs from performing a single
6832 <link to="IConsole::discardSnapshot"/> call (note that no
6833 <link to="IConsole::discardCurrentState"/> will be possible after it)
6834 to the effect that the latter will preserve the current state instead of
6835 discarding it.
6836
6837 Unless explicitly mentioned otherwise, all remarks and
6838 limitations of the above two methods also apply to this method.
6839
6840 <note>
6841 The machine must not be running, otherwise the operation
6842 will fail.
6843 </note>
6844
6845 <note>
6846 If the machine state is <link to="MachineState_Saved">Saved</link>
6847 prior to this operation, the saved state file will be implicitly
6848 discarded (as if <link to="#forgetSavedState"/> were
6849 called).
6850 </note>
6851
6852 <note>
6853 This method is more efficient than calling both of the above
6854 methods separately: it requires less IPC calls and provides
6855 a single progress object.
6856 </note>
6857
6858 <result name="VBOX_E_INVALID_VM_STATE">
6859 Virtual machine is running.
6860 </result>
6861 </desc>
6862 <param name="progress" type="IProgress" dir="return">
6863 <desc>Progress object to track the operation completion.</desc>
6864 </param>
6865 </method>
6866
6867 <method name="registerCallback">
6868 <desc>
6869 Registers a new console callback on this instance. The methods of the
6870 callback interface will be called by this instance when the appropriate
6871 event occurs.
6872 </desc>
6873 <param name="callback" type="IConsoleCallback" dir="in"/>
6874 </method>
6875
6876 <method name="unregisterCallback">
6877 <desc>
6878 Unregisters the console callback previously registered using
6879 <link to="#registerCallback"/>.
6880 <result name="E_INVALIDARG">
6881 Given @a callback handler is not registered.
6882 </result>
6883 </desc>
6884 <param name="callback" type="IConsoleCallback" dir="in"/>
6885 </method>
6886 </interface>
6887
6888 <!--
6889 // IHost
6890 /////////////////////////////////////////////////////////////////////////
6891 -->
6892
6893 <interface
6894 name="IHostDVDDrive" extends="$unknown"
6895 uuid="21f86694-202d-4ce4-8b05-a63ff82dbf4c"
6896 wsmap="managed"
6897 >
6898 <desc>
6899 The IHostDVDDrive interface represents the physical CD/DVD drive
6900 hardware on the host. Used indirectly in <link to="IHost::DVDDrives"/>.
6901 </desc>
6902
6903 <attribute name="name" type="wstring" readonly="yes">
6904 <desc>
6905 Returns the platform-specific device identifier.
6906 On DOS-like platforms, it is a drive name (e.g. R:).
6907 On Unix-like platforms, it is a device name (e.g. /dev/hdc).
6908 </desc>
6909 </attribute>
6910 <attribute name="description" type="wstring" readonly="yes">
6911 <desc>
6912 Returns a human readable description for the drive. This
6913 description usually contains the product and vendor name. An
6914 empty string is returned if the description is not available.
6915 </desc>
6916 </attribute>
6917 <attribute name="udi" type="wstring" readonly="yes">
6918 <desc>
6919 Returns the unique device identifier for the drive. This
6920 attribute is reserved for future use instead of
6921 <link to="#name"/>. Currently it is not used and may return
6922 an empty string on some platforms.
6923 </desc>
6924 </attribute>
6925
6926 </interface>
6927
6928 <interface
6929 name="IHostFloppyDrive" extends="$unknown"
6930 uuid="3f02d604-e908-4919-9fd1-8a4afd68fc63"
6931 wsmap="managed"
6932 >
6933 <desc>
6934 The IHostFloppyDrive interface represents the physical floppy drive
6935 hardware on the host. Used indirectly in <link to="IHost::floppyDrives"/>.
6936 </desc>
6937 <attribute name="name" type="wstring" readonly="yes">
6938 <desc>
6939 Returns the platform-specific device identifier.
6940 On DOS-like platforms, it is a drive name (e.g. A:).
6941 On Unix-like platforms, it is a device name (e.g. /dev/fd0).
6942 </desc>
6943 </attribute>
6944 <attribute name="description" type="wstring" readonly="yes">
6945 <desc>
6946 Returns a human readable description for the drive. This
6947 description usually contains the product and vendor name. An
6948 empty string is returned if the description is not available.
6949 </desc>
6950 </attribute>
6951 <attribute name="udi" type="wstring" readonly="yes">
6952 <desc>
6953 Returns the unique device identifier for the drive. This
6954 attribute is reserved for future use instead of
6955 <link to="#name"/>. Currently it is not used and may return
6956 an empty string on some platforms.
6957 </desc>
6958 </attribute>
6959 </interface>
6960
6961 <enum
6962 name="HostNetworkInterfaceMediumType"
6963 uuid="1aa54aaf-2497-45a2-bfb1-8eb225e93d5b"
6964 >
6965 <desc>
6966 Type of encapsulation. Ethernet encapsulation includes both wired and
6967 wireless Ethernet connections.
6968 <see>IHostNetworkInterface</see>
6969 </desc>
6970
6971 <const name="Unknown" value="0">
6972 <desc>
6973 The type of interface cannot be determined.
6974 </desc>
6975 </const>
6976 <const name="Ethernet" value="1">
6977 <desc>
6978 Ethernet frame encapsulation.
6979 </desc>
6980 </const>
6981 <const name="PPP" value="2">
6982 <desc>
6983 Point-to-point protocol encapsulation.
6984 </desc>
6985 </const>
6986 <const name="SLIP" value="3">
6987 <desc>
6988 Serial line IP encapsulation.
6989 </desc>
6990 </const>
6991 </enum>
6992
6993 <enum
6994 name="HostNetworkInterfaceStatus"
6995 uuid="CC474A69-2710-434B-8D99-C38E5D5A6F41"
6996 >
6997 <desc>
6998 Current status of the interface.
6999 <see>IHostNetworkInterface</see>
7000 </desc>
7001
7002 <const name="Unknown" value="0">
7003 <desc>
7004 The state of interface cannot be determined.
7005 </desc>
7006 </const>
7007 <const name="Up" value="1">
7008 <desc>
7009 The interface is fully operational.
7010 </desc>
7011 </const>
7012 <const name="Down" value="2">
7013 <desc>
7014 The interface is not functioning.
7015 </desc>
7016 </const>
7017 </enum>
7018
7019 <enum
7020 name="HostNetworkInterfaceType"
7021 uuid="67431b00-9946-48a2-bc02-b25c5919f4f3"
7022 >
7023 <desc>
7024 Network interface type.
7025 </desc>
7026 <const name="Bridged" value="1"/>
7027 <const name="HostOnly" value="2"/>
7028 </enum>
7029
7030 <interface
7031 name="IHostNetworkInterface" extends="$unknown"
7032 uuid="ce6fae58-7642-4102-b5db-c9005c2320a8"
7033 wsmap="managed"
7034 >
7035 <desc>
7036 Represents one of host's network interfaces. IP V6 address and network
7037 mask are strings of 32 hexdecimal digits grouped by four. Groups are
7038 separated by colons.
7039 For example, fe80:0000:0000:0000:021e:c2ff:fed2:b030.
7040 </desc>
7041 <attribute name="name" type="wstring" readonly="yes">
7042 <desc>Returns the host network interface name.</desc>
7043 </attribute>
7044
7045 <attribute name="id" type="wstring" readonly="yes">
7046 <desc>Returns the interface UUID.</desc>
7047 </attribute>
7048
7049 <attribute name="networkName" type="wstring" readonly="yes">
7050 <desc>Returns the name of a virtual network the interface gets attached to.</desc>
7051 </attribute>
7052
7053 <attribute name="dhcpEnabled" type="boolean" readonly="yes">
7054 <desc>Specifies whether the DHCP is enabled for the interface.</desc>
7055 </attribute>
7056
7057 <attribute name="IPAddress" type="wstring" readonly="yes">
7058 <desc>Returns the IP V4 address of the interface.</desc>
7059 </attribute>
7060
7061 <attribute name="networkMask" type="wstring" readonly="yes">
7062 <desc>Returns the network mask of the interface.</desc>
7063 </attribute>
7064
7065 <attribute name="IPV6Supported" type="boolean" readonly="yes">
7066 <desc>Specifies whether the IP V6 is supported/enabled for the interface.</desc>
7067 </attribute>
7068
7069 <attribute name="IPV6Address" type="wstring" readonly="yes">
7070 <desc>Returns the IP V6 address of the interface.</desc>
7071 </attribute>
7072
7073 <attribute name="IPV6NetworkMaskPrefixLength" type="unsigned long" readonly="yes">
7074 <desc>Returns the length IP V6 network mask prefix of the interface.</desc>
7075 </attribute>
7076
7077 <attribute name="hardwareAddress" type="wstring" readonly="yes">
7078 <desc>Returns the hardware address. For Ethernet it is MAC address.</desc>
7079 </attribute>
7080
7081 <attribute name="mediumType" type="HostNetworkInterfaceMediumType" readonly="yes">
7082 <desc>Type of protocol encapsulation used.</desc>
7083 </attribute>
7084
7085 <attribute name="status" type="HostNetworkInterfaceStatus" readonly="yes">
7086 <desc>Status of the interface.</desc>
7087 </attribute>
7088
7089 <attribute name="interfaceType" type="HostNetworkInterfaceType" readonly="yes">
7090 <desc>specifies the host interface type.</desc>
7091 </attribute>
7092
7093 <method name="enableStaticIpConfig">
7094 <desc>sets and enables the static IP V4 configuration for the given interface.</desc>
7095 <param name="IPAddress" type="wstring" dir="in">
7096 <desc>
7097 IP address.
7098 </desc>
7099 </param>
7100 <param name="networkMask" type="wstring" dir="in">
7101 <desc>
7102 network mask.
7103 </desc>
7104 </param>
7105 </method>
7106
7107 <method name="enableStaticIpConfigV6">
7108 <desc>sets and enables the static IP V6 configuration for the given interface.</desc>
7109 <param name="IPV6Address" type="wstring" dir="in">
7110 <desc>
7111 IP address.
7112 </desc>
7113 </param>
7114 <param name="IPV6NetworkMaskPrefixLength" type="unsigned long" dir="in">
7115 <desc>
7116 network mask.
7117 </desc>
7118 </param>
7119 </method>
7120
7121 <method name="enableDynamicIpConfig">
7122 <desc>enables the dynamic IP configuration.</desc>
7123 </method>
7124
7125 <method name="dhcpRediscover">
7126 <desc>refreshes the IP configuration for dhcp-enabled interface.</desc>
7127 </method>
7128
7129 </interface>
7130
7131 <interface
7132 name="IHost" extends="$unknown"
7133 uuid="a13b5556-5c0b-4f80-9df6-6f804f3336a1"
7134 wsmap="managed"
7135 >
7136 <desc>
7137 The IHost interface represents the physical machine that this VirtualBox
7138 installation runs on.
7139
7140 An object implementing this interface is returned by the
7141 <link to="IVirtualBox::host" /> attribute. This interface contains
7142 read-only information about the host's physical hardware (such as what
7143 processors and disks are available, what the host operating system is,
7144 and so on) and also allows for manipulating some of the host's hardware,
7145 such as global USB device filters and host interface networking.
7146
7147 </desc>
7148 <attribute name="DVDDrives" type="IHostDVDDrive" readonly="yes" safearray="yes">
7149 <desc>List of DVD drives available on the host.</desc>
7150 </attribute>
7151
7152 <attribute name="floppyDrives" type="IHostFloppyDrive" readonly="yes" safearray="yes">
7153 <desc>List of floppy drives available on the host.</desc>
7154 </attribute>
7155
7156 <attribute name="USBDevices" type="IHostUSBDevice" readonly="yes" safearray="yes">
7157 <desc>
7158 List of USB devices currently attached to the host.
7159 Once a new device is physically attached to the host computer,
7160 it appears in this list and remains there until detached.
7161
7162 <note>
7163 If USB functionality is not available in the given edition of
7164 VirtualBox, this method will set the result code to @c E_NOTIMPL.
7165 </note>
7166 </desc>
7167 </attribute>
7168
7169 <attribute name="USBDeviceFilters" type="IHostUSBDeviceFilter" readonly="yes" safearray="yes">
7170 <desc>
7171 List of USB device filters in action.
7172 When a new device is physically attached to the host computer,
7173 filters from this list are applied to it (in order they are stored
7174 in the list). The first matched filter will determine the
7175 <link to="IHostUSBDeviceFilter::action">action</link>
7176 performed on the device.
7177
7178 Unless the device is ignored by these filters, filters of all
7179 currently running virtual machines
7180 (<link to="IUSBController::deviceFilters"/>) are applied to it.
7181
7182 <note>
7183 If USB functionality is not available in the given edition of
7184 VirtualBox, this method will set the result code to @c E_NOTIMPL.
7185 </note>
7186
7187 <see>IHostUSBDeviceFilter, USBDeviceState</see>
7188 </desc>
7189 </attribute>
7190
7191 <attribute name="networkInterfaces" type="IHostNetworkInterface" safearray="yes" readonly="yes">
7192 <desc>List of host network interfaces currently defined on the host.</desc>
7193 </attribute>
7194
7195 <attribute name="processorCount" type="unsigned long" readonly="yes">
7196 <desc>Number of (logical) CPUs installed in the host system.</desc>
7197 </attribute>
7198
7199 <attribute name="processorOnlineCount" type="unsigned long" readonly="yes">
7200 <desc>Number of (logical) CPUs online in the host system.</desc>
7201 </attribute>
7202
7203 <method name="getProcessorSpeed">
7204 <desc>Query the (approximate) maximum speed of a specified host CPU in
7205 Megahertz.
7206 </desc>
7207 <param name="cpuId" type="unsigned long" dir="in">
7208 <desc>
7209 Identifier of the CPU.
7210 </desc>
7211 </param>
7212 <param name="speed" type="unsigned long" dir="return">
7213 <desc>
7214 Speed value. 0 is returned if value is not known or @a cpuId is
7215 invalid.
7216 </desc>
7217 </param>
7218 </method>
7219
7220 <method name="getProcessorFeature">
7221 <desc>Query whether a CPU feature is supported or not.</desc>
7222 <param name="feature" type="ProcessorFeature" dir="in">
7223 <desc>
7224 CPU Feature identifier.
7225 </desc>
7226 </param>
7227 <param name="supported" type="boolean" dir="return">
7228 <desc>
7229 Feature is supported or not.
7230 </desc>
7231 </param>
7232 </method>
7233
7234 <method name="getProcessorDescription">
7235 <desc>Query the model string of a specified host CPU.
7236 <note>
7237 This function is not implemented in the current version of the
7238 product.
7239 </note>
7240 </desc>
7241 <param name="cpuId" type="unsigned long" dir="in">
7242 <desc>
7243 Identifier of the CPU.
7244 </desc>
7245 </param>
7246 <param name="description" type="wstring" dir="return">
7247 <desc>
7248 Model string. An empty string is returned if value is not known or
7249 @a cpuId is invalid.
7250 </desc>
7251 </param>
7252 </method>
7253
7254 <attribute name="memorySize" type="unsigned long" readonly="yes">
7255 <desc>Amount of system memory in megabytes installed in the host system.</desc>
7256 </attribute>
7257
7258 <attribute name="memoryAvailable" type="unsigned long" readonly="yes">
7259 <desc>Available system memory in the host system.</desc>
7260 </attribute>
7261
7262 <attribute name="operatingSystem" type="wstring" readonly="yes">
7263 <desc>Name of the host system's operating system.</desc>
7264 </attribute>
7265
7266 <attribute name="OSVersion" type="wstring" readonly="yes">
7267 <desc>Host operating system's version string.</desc>
7268 </attribute>
7269
7270 <attribute name="UTCTime" type="long long" readonly="yes">
7271 <desc>Returns the current host time in milliseconds since 1970-01-01 UTC.</desc>
7272 </attribute>
7273
7274 <attribute name="Acceleration3DAvailable" type="boolean" readonly="yes">
7275 <desc>Returns @c true when the host supports 3D hardware acceleration.</desc>
7276 </attribute>
7277
7278 <method name="createHostOnlyNetworkInterface">
7279 <desc>
7280 Creates a new adapter for Host Only Networking.
7281 <result name="E_INVALIDARG">
7282 Host network interface @a name already exists.
7283 </result>
7284 </desc>
7285 <param name="hostInterface" type="IHostNetworkInterface" dir="out">
7286 <desc>
7287 Created host interface object.
7288 </desc>
7289 </param>
7290 <param name="progress" type="IProgress" dir="return">
7291 <desc>
7292 Progress object to track the operation completion.
7293 </desc>
7294 </param>
7295 </method>
7296
7297 <method name="removeHostOnlyNetworkInterface">
7298 <desc>
7299 Removes the given Host Only Networking interface.
7300 <result name="VBOX_E_OBJECT_NOT_FOUND">
7301 No host network interface matching @a id found.
7302 </result>
7303 </desc>
7304 <param name="id" type="wstring" dir="in">
7305 <desc>
7306 Adapter GUID.
7307 </desc>
7308 </param>
7309 <param name="hostInterface" type="IHostNetworkInterface" dir="out">
7310 <desc>
7311 Removed host interface object.
7312 </desc>
7313 </param>
7314 <param name="progress" type="IProgress" dir="return">
7315 <desc>
7316 Progress object to track the operation completion.
7317 </desc>
7318 </param>
7319 </method>
7320
7321 <method name="createUSBDeviceFilter">
7322 <desc>
7323 Creates a new USB device filter. All attributes except
7324 the filter name are set to empty (any match),
7325 <i>active</i> is @c false (the filter is not active).
7326
7327 The created filter can be added to the list of filters using
7328 <link to="#insertUSBDeviceFilter"/>.
7329
7330 <see>#USBDeviceFilters</see>
7331 </desc>
7332 <param name="name" type="wstring" dir="in">
7333 <desc>
7334 Filter name. See <link to="IHostUSBDeviceFilter::name"/>
7335 for more info.
7336 </desc>
7337 </param>
7338 <param name="filter" type="IHostUSBDeviceFilter" dir="return">
7339 <desc>Created filter object.</desc>
7340 </param>
7341 </method>
7342
7343 <method name="insertUSBDeviceFilter">
7344 <desc>
7345 Inserts the given USB device to the specified position
7346 in the list of filters.
7347
7348 Positions are numbered starting from @c 0. If the specified
7349 position is equal to or greater than the number of elements in
7350 the list, the filter is added at the end of the collection.
7351
7352 <note>
7353 Duplicates are not allowed, so an attempt to insert a
7354 filter already in the list is an error.
7355 </note>
7356 <note>
7357 If USB functionality is not available in the given edition of
7358 VirtualBox, this method will set the result code to @c E_NOTIMPL.
7359 </note>
7360
7361 <see>#USBDeviceFilters</see>
7362
7363 <result name="VBOX_E_INVALID_OBJECT_STATE">
7364 USB device filter is not created within this VirtualBox instance.
7365 </result>
7366 <result name="E_INVALIDARG">
7367 USB device filter already in list.
7368 </result>
7369
7370 </desc>
7371 <param name="position" type="unsigned long" dir="in">
7372 <desc>Position to insert the filter to.</desc>
7373 </param>
7374 <param name="filter" type="IHostUSBDeviceFilter" dir="in">
7375 <desc>USB device filter to insert.</desc>
7376 </param>
7377 </method>
7378
7379 <method name="removeUSBDeviceFilter">
7380 <desc>
7381 Removes a USB device filter from the specified position in the
7382 list of filters.
7383
7384 Positions are numbered starting from @c 0. Specifying a
7385 position equal to or greater than the number of elements in
7386 the list will produce an error.
7387
7388 <note>
7389 If USB functionality is not available in the given edition of
7390 VirtualBox, this method will set the result code to @c E_NOTIMPL.
7391 </note>
7392
7393 <see>#USBDeviceFilters</see>
7394
7395 <result name="E_INVALIDARG">
7396 USB device filter list empty or invalid @a position.
7397 </result>
7398
7399 </desc>
7400 <param name="position" type="unsigned long" dir="in">
7401 <desc>Position to remove the filter from.</desc>
7402 </param>
7403 <param name="filter" type="IHostUSBDeviceFilter" dir="return">
7404 <desc>Removed USB device filter.</desc>
7405 </param>
7406 </method>
7407
7408 <method name="findHostDVDDrive">
7409 <desc>
7410 Searches for a host DVD drive with the given @c name.
7411
7412 <result name="VBOX_E_OBJECT_NOT_FOUND">
7413 Given @c name does not correspond to any host drive.
7414 </result>
7415
7416 </desc>
7417 <param name="name" type="wstring" dir="in">
7418 <desc>Name of the host drive to search for</desc>
7419 </param>
7420 <param name="drive" type="IHostDVDDrive" dir="return">
7421 <desc>Found host drive object</desc>
7422 </param>
7423 </method>
7424
7425 <method name="findHostFloppyDrive">
7426 <desc>
7427 Searches for a host floppy drive with the given @c name.
7428
7429 <result name="VBOX_E_OBJECT_NOT_FOUND">
7430 Given @c name does not correspond to any host floppy drive.
7431 </result>
7432
7433 </desc>
7434 <param name="name" type="wstring" dir="in">
7435 <desc>Name of the host floppy drive to search for</desc>
7436 </param>
7437 <param name="drive" type="IHostFloppyDrive" dir="return">
7438 <desc>Found host floppy drive object</desc>
7439 </param>
7440 </method>
7441
7442 <method name="findHostNetworkInterfaceByName">
7443 <desc>
7444 Searches through all host network interfaces for an interface with
7445 the given @c name.
7446 <note>
7447 The method returns an error if the given @c name does not
7448 correspond to any host network interface.
7449 </note>
7450 </desc>
7451 <param name="name" type="wstring" dir="in">
7452 <desc>Name of the host network interface to search for.</desc>
7453 </param>
7454 <param name="networkInterface" type="IHostNetworkInterface" dir="return">
7455 <desc>Found host network interface object.</desc>
7456 </param>
7457 </method>
7458 <method name="findHostNetworkInterfaceById">
7459 <desc>
7460 Searches through all host network interfaces for an interface with
7461 the given GUID.
7462 <note>
7463 The method returns an error if the given GUID does not
7464 correspond to any host network interface.
7465 </note>
7466 </desc>
7467 <param name="id" type="wstring" dir="in">
7468 <desc>GUID of the host network interface to search for.</desc>
7469 </param>
7470 <param name="networkInterface" type="IHostNetworkInterface" dir="return">
7471 <desc>Found host network interface object.</desc>
7472 </param>
7473 </method>
7474 <method name="findHostNetworkInterfacesOfType">
7475 <desc>
7476 Searches through all host network interfaces and returns a list of interfaces of the specified type
7477 </desc>
7478 <param name="type" type="HostNetworkInterfaceType" dir="in">
7479 <desc>type of the host network interfaces to search for.</desc>
7480 </param>
7481 <param name="networkInterfaces" type="IHostNetworkInterface" safearray="yes" dir="return">
7482 <desc>Found host network interface objects.</desc>
7483 </param>
7484 </method>
7485
7486 <method name="findUSBDeviceById">
7487 <desc>
7488 Searches for a USB device with the given UUID.
7489
7490 <result name="VBOX_E_OBJECT_NOT_FOUND">
7491 Given @c id does not correspond to any USB device.
7492 </result>
7493
7494 <see>IHostUSBDevice::id</see>
7495 </desc>
7496 <param name="id" type="wstring" dir="in">
7497 <desc>UUID of the USB device to search for.</desc>
7498 </param>
7499 <param name="device" type="IHostUSBDevice" dir="return">
7500 <desc>Found USB device object.</desc>
7501 </param>
7502 </method>
7503
7504 <method name="findUSBDeviceByAddress">
7505 <desc>
7506 Searches for a USB device with the given host address.
7507
7508 <result name="VBOX_E_OBJECT_NOT_FOUND">
7509 Given @c name does not correspond to any USB device.
7510 </result>
7511
7512 <see>IHostUSBDevice::address</see>
7513 </desc>
7514 <param name="name" type="wstring" dir="in">
7515 <desc>
7516 Address of the USB device (as assigned by the host) to
7517 search for.
7518 </desc>
7519 </param>
7520 <param name="device" type="IHostUSBDevice" dir="return">
7521 <desc>Found USB device object.</desc>
7522 </param>
7523 </method>
7524
7525 </interface>
7526
7527 <!--
7528 // ISystemProperties
7529 /////////////////////////////////////////////////////////////////////////
7530 -->
7531
7532 <interface
7533 name="ISystemProperties"
7534 extends="$unknown"
7535 uuid="63bfd184-df69-4949-9159-a923cf7b1207"
7536 wsmap="managed"
7537 >
7538 <desc>
7539 The ISystemProperties interface represents global properties of the given
7540 VirtualBox installation.
7541
7542 These properties define limits and default values for various attributes
7543 and parameters. Most of the properties are read-only, but some can be
7544 changed by a user.
7545 </desc>
7546
7547 <attribute name="minGuestRAM" type="unsigned long" readonly="yes">
7548 <desc>Minimum guest system memory in Megabytes.</desc>
7549 </attribute>
7550
7551 <attribute name="maxGuestRAM" type="unsigned long" readonly="yes">
7552 <desc>Maximum guest system memory in Megabytes.</desc>
7553 </attribute>
7554
7555 <attribute name="minGuestVRAM" type="unsigned long" readonly="yes">
7556 <desc>Minimum guest video memory in Megabytes.</desc>
7557 </attribute>
7558
7559 <attribute name="maxGuestVRAM" type="unsigned long" readonly="yes">
7560 <desc>Maximum guest video memory in Megabytes.</desc>
7561 </attribute>
7562
7563 <attribute name="minGuestCPUCount" type="unsigned long" readonly="yes">
7564 <desc>Minimum CPU count.</desc>
7565 </attribute>
7566
7567 <attribute name="maxGuestCPUCount" type="unsigned long" readonly="yes">
7568 <desc>Maximum CPU count.</desc>
7569 </attribute>
7570
7571 <attribute name="maxVDISize" type="unsigned long long" readonly="yes">
7572 <desc>Maximum size of a virtual disk image in Megabytes.</desc>
7573 </attribute>
7574
7575 <attribute name="networkAdapterCount" type="unsigned long" readonly="yes">
7576 <desc>
7577 Number of network adapters associated with every
7578 <link to="IMachine"/> instance.
7579 </desc>
7580 </attribute>
7581
7582 <attribute name="serialPortCount" type="unsigned long" readonly="yes">
7583 <desc>
7584 Number of serial ports associated with every
7585 <link to="IMachine"/> instance.
7586 </desc>
7587 </attribute>
7588
7589 <attribute name="parallelPortCount" type="unsigned long" readonly="yes">
7590 <desc>
7591 Number of parallel ports associated with every
7592 <link to="IMachine"/> instance.
7593 </desc>
7594 </attribute>
7595
7596 <attribute name="maxBootPosition" type="unsigned long" readonly="yes">
7597 <desc>
7598 Maximum device position in the boot order. This value corresponds
7599 to the total number of devices a machine can boot from, to make it
7600 possible to include all possible devices to the boot list.
7601 <see><link to="IMachine::setBootOrder"/></see>
7602 </desc>
7603 </attribute>
7604
7605 <attribute name="defaultMachineFolder" type="wstring">
7606 <desc>
7607 Full path to the default directory used to create new or open
7608 existing machines when a settings file name contains no
7609 path.
7610
7611 The initial value of this property is
7612 <tt>&lt;</tt><link to="IVirtualBox::homeFolder">
7613 VirtualBox_home</link><tt>&gt;/Machines</tt>.
7614
7615 <note>
7616 Setting this property to @c null or an empty string will restore the
7617 initial value.
7618 </note>
7619 <note>
7620 When settings this property, the specified path can be
7621 absolute (full path) or relative
7622 to the <link to="IVirtualBox::homeFolder">
7623 VirtualBox home directory</link>.
7624 When reading this property, a full path is
7625 always returned.
7626 </note>
7627 <note>
7628 The specified path may not exist, it will be created
7629 when necessary.
7630 </note>
7631
7632 <see>
7633 <link to="IVirtualBox::createMachine"/>,
7634 <link to="IVirtualBox::openMachine"/>
7635 </see>
7636 </desc>
7637 </attribute>
7638
7639 <attribute name="defaultHardDiskFolder" type="wstring">
7640 <desc>
7641 Full path to the default directory used to create new or open existing
7642 virtual disks.
7643
7644 This path is used when the storage unit of a hard disk is a regular file
7645 in the host's file system and only a file name that contains no path is
7646 given.
7647
7648 The initial value of this property is
7649 <tt>&lt;</tt>
7650 <link to="IVirtualBox::homeFolder">VirtualBox_home</link>
7651 <tt>&gt;/HardDisks</tt>.
7652
7653 <note>
7654 Setting this property to @c null or empty string will restore the
7655 initial value.
7656 </note>
7657 <note>
7658 When settings this property, the specified path can be relative
7659 to the
7660 <link to="IVirtualBox::homeFolder">VirtualBox home directory</link> or
7661 absolute. When reading this property, a full path is
7662 always returned.
7663 </note>
7664 <note>
7665 The specified path may not exist, it will be created
7666 when necessary.
7667 </note>
7668
7669 <see>
7670 IHardDisk,
7671 <link to="IVirtualBox::createHardDisk"/>,
7672 <link to="IVirtualBox::openHardDisk"/>,
7673 <link to="IMedium::location"/>
7674 </see>
7675 </desc>
7676 </attribute>
7677
7678 <attribute name="hardDiskFormats" type="IHardDiskFormat" safearray="yes" readonly="yes">
7679 <desc>
7680 List of all hard disk storage formats supported by this VirtualBox
7681 installation.
7682
7683 Keep in mind that the hard disk format identifier
7684 (<link to="IHardDiskFormat::id"/>) used in other API calls like
7685 <link to="IVirtualBox::createHardDisk"/> to refer to a particular
7686 hard disk format is a case-insensitive string. This means that, for
7687 example, all of the following strings:
7688 <pre>
7689 "VDI"
7690 "vdi"
7691 "VdI"</pre>
7692 refer to the same hard disk format.
7693
7694 Note that the virtual hard disk framework is backend-based, therefore
7695 the list of supported formats depends on what backends are currently
7696 installed.
7697
7698 <see>
7699 <link to="IHardDiskFormat"/>,
7700 </see>
7701 </desc>
7702 </attribute>
7703
7704 <attribute name="defaultHardDiskFormat" type="wstring">
7705 <desc>
7706 Identifier of the default hard disk format used by VirtualBox.
7707
7708 The hard disk format set by this attribute is used by VirtualBox
7709 when the hard disk format was not specified explicitly. One example is
7710 <link to="IVirtualBox::createHardDisk"/> with the @c null
7711 format argument. A more complex example is implicit creation of
7712 differencing hard disks when taking a snapshot of a virtual machine:
7713 this operation will try to use a format of the parent hard disk first
7714 and if this format does not support differencing hard disks the default
7715 format specified by this argument will be used.
7716
7717 The list of supported hard disk formats may be obtained by the
7718 <link to="#hardDiskFormats"/> call. Note that the default hard disk
7719 format must have a capability to create differencing hard disks;
7720 otherwise opeartions that create hard disks implicitly may fail
7721 unexpectedly.
7722
7723 The initial value of this property is <tt>"VDI"</tt> in the current
7724 version of the VirtualBox product, but may change in the future.
7725
7726 <note>
7727 Setting this property to @c null or empty string will restore the
7728 initial value.
7729 </note>
7730
7731 <see>
7732 <link to="#hardDiskFormats"/>,
7733 <link to="IHardDiskFormat::id"/>,
7734 <link to="IVirtualBox::createHardDisk"/>
7735 </see>
7736 </desc>
7737 </attribute>
7738
7739 <attribute name="remoteDisplayAuthLibrary" type="wstring">
7740 <desc>
7741 Library that provides authentication for VRDP clients. The library
7742 is used if a virtual machine's authentication type is set to "external"
7743 in the VM RemoteDisplay configuration.
7744
7745 The system library extension (".DLL" or ".so") must be omitted.
7746 A full path can be specified; if not, then the library must reside on the
7747 system's default library path.
7748
7749 The default value of this property is <tt>"VRDPAuth"</tt>. There is a library
7750 of that name in one of the default VirtualBox library directories.
7751
7752 For details about VirtualBox authentication libraries and how to implement
7753 them, please refer to the VirtualBox manual.
7754
7755 <note>
7756 Setting this property to @c null or empty string will restore the
7757 initial value.
7758 </note>
7759 </desc>
7760 </attribute>
7761
7762 <attribute name="webServiceAuthLibrary" type="wstring">
7763 <desc>
7764 Library that provides authentication for webservice clients. The library
7765 is used if a virtual machine's authentication type is set to "external"
7766 in the VM RemoteDisplay configuration and will be called from
7767 within the <link to="IWebsessionManager::logon" /> implementation.
7768
7769 As opposed to <link to="ISystemProperties::remoteDisplayAuthLibrary" />,
7770 there is no per-VM setting for this, as the webservice is a global
7771 resource (if it is running). Only for this setting (for the webservice),
7772 setting this value to a literal <tt>"null"</tt> string disables authentication,
7773 meaning that <link to="IWebsessionManager::logon" /> will always succeed,
7774 no matter what user name and password are supplied.
7775
7776 The initial value of this property is <tt>"VRDPAuth"</tt>,
7777 meaning that the webservice will use the same authentication
7778 library that is used by default for VBoxVRDP (again, see
7779 <link to="ISystemProperties::remoteDisplayAuthLibrary" />).
7780 The format and calling convention of authentication libraries
7781 is the same for the webservice as it is for VBoxVRDP.
7782
7783 <note>
7784 Setting this property to @c null or empty string will restore the
7785 initial value.
7786 </note>
7787 </desc>
7788 </attribute>
7789
7790 <attribute name="HWVirtExEnabled" type="boolean">
7791 <desc>
7792 This specifies the default value for hardware virtualization
7793 extensions. If enabled, virtual machines will make use of
7794 hardware virtualization extensions such as Intel VT-x and
7795 AMD-V by default. This value can be overridden by each VM
7796 using their <link to="IMachine::HWVirtExEnabled" /> property.
7797 </desc>
7798 </attribute>
7799
7800 <attribute name="LogHistoryCount" type="unsigned long">
7801 <desc>
7802 This value specifies how many old release log files are kept.
7803 </desc>
7804 </attribute>
7805
7806 <attribute name="defaultAudioDriver" type="AudioDriverType" readonly="yes">
7807 <desc>This value hold the default audio driver for the current
7808 system.</desc>
7809 </attribute>
7810 </interface>
7811
7812 <!--
7813 // IGuest
7814 /////////////////////////////////////////////////////////////////////////
7815 -->
7816
7817 <interface
7818 name="IGuestOSType" extends="$unknown"
7819 uuid="cfe9e64c-4430-435b-9e7c-e3d8e417bd58"
7820 wsmap="struct"
7821 >
7822 <desc>
7823 </desc>
7824
7825 <attribute name="familyId" type="wstring" readonly="yes">
7826 <desc>Guest OS family identifier string.</desc>
7827 </attribute>
7828
7829 <attribute name="familyDescription" type="wstring" readonly="yes">
7830 <desc>Human readable description of the guest OS family.</desc>
7831 </attribute>
7832
7833 <attribute name="id" type="wstring" readonly="yes">
7834 <desc>Guest OS identifier string.</desc>
7835 </attribute>
7836
7837 <attribute name="description" type="wstring" readonly="yes">
7838 <desc>Human readable description of the guest OS.</desc>
7839 </attribute>
7840
7841 <attribute name="is64Bit" type="boolean" readonly="yes">
7842 <desc>Returns @c true if the given OS is 64-bit</desc>
7843 </attribute>
7844
7845 <attribute name="recommendedIOAPIC" type="boolean" readonly="yes">
7846 <desc>Returns @c true if IO APIC recommended for this OS type.</desc>
7847 </attribute>
7848
7849 <attribute name="recommendedVirtEx" type="boolean" readonly="yes">
7850 <desc>Returns @c true if VT-x or AMD-V recommended for this OS type.</desc>
7851 </attribute>
7852
7853 <attribute name="recommendedRAM" type="unsigned long" readonly="yes">
7854 <desc>Recommended RAM size in Megabytes.</desc>
7855 </attribute>
7856
7857 <attribute name="recommendedVRAM" type="unsigned long" readonly="yes">
7858 <desc>Recommended video RAM size in Megabytes.</desc>
7859 </attribute>
7860
7861 <attribute name="recommendedHDD" type="unsigned long" readonly="yes">
7862 <desc>Recommended hard disk size in Megabytes.</desc>
7863 </attribute>
7864
7865 <attribute name="adapterType" type="NetworkAdapterType" readonly="yes">
7866 <desc>Returns recommended network adapter for this OS type.</desc>
7867 </attribute>
7868 </interface>
7869
7870 <interface
7871 name="IGuest" extends="$unknown"
7872 uuid="d8556fca-81bc-12af-fca3-365528fa38ca"
7873 wsmap="managed"
7874 >
7875 <desc>
7876 The IGuest interface represents information about the operating system
7877 running inside the virtual machine. Used in
7878 <link to="IConsole::guest"/>.
7879
7880 IGuest provides information about the guest operating system, whether
7881 Guest Additions are installed and other OS-specific virtual machine
7882 properties.
7883 </desc>
7884
7885 <attribute name="OSTypeId" type="wstring" readonly="yes">
7886 <desc>
7887 Identifier of the Guest OS type as reported by the Guest
7888 Additions.
7889 You may use <link to="IVirtualBox::getGuestOSType"/> to obtain
7890 an IGuestOSType object representing details about the given
7891 Guest OS type.
7892 <note>
7893 If Guest Additions are not installed, this value will be
7894 the same as <link to="IMachine::OSTypeId"/>.
7895 </note>
7896 </desc>
7897 </attribute>
7898
7899 <attribute name="additionsActive" type="boolean" readonly="yes">
7900 <desc>
7901 Flag whether the Guest Additions are installed and active
7902 in which case their version will be returned by the
7903 <link to="#additionsVersion"/> property.
7904 </desc>
7905 </attribute>
7906
7907 <attribute name="additionsVersion" type="wstring" readonly="yes">
7908 <desc>
7909 Version of the Guest Additions (3 decimal numbers separated
7910 by dots) or empty when the Additions are not installed. The
7911 Additions may also report a version but yet not be active as
7912 the version might be refused by VirtualBox (incompatible) or
7913 other failures occurred.
7914 </desc>
7915 </attribute>
7916
7917 <attribute name="supportsSeamless" type="boolean" readonly="yes">
7918 <desc>
7919 Flag whether seamless guest display rendering (seamless desktop
7920 integration) is supported.
7921 </desc>
7922 </attribute>
7923
7924 <attribute name="supportsGraphics" type="boolean" readonly="yes">
7925 <desc>
7926 Flag whether the guest is in graphics mode. If it is not, then
7927 seamless rendering will not work, resize hints are not immediately
7928 acted on and guest display resizes are probably not initiated by
7929 the guest additions.
7930 </desc>
7931 </attribute>
7932
7933 <attribute name="memoryBalloonSize" type="unsigned long">
7934 <desc>Guest system memory balloon size in megabytes.</desc>
7935 </attribute>
7936
7937 <attribute name="statisticsUpdateInterval" type="unsigned long">
7938 <desc>Interval to update guest statistics in seconds.</desc>
7939 </attribute>
7940
7941 <method name="setCredentials">
7942 <desc>
7943 Store login credentials that can be queried by guest operating
7944 systems with Additions installed. The credentials are transient
7945 to the session and the guest may also choose to erase them. Note
7946 that the caller cannot determine whether the guest operating system
7947 has queried or made use of the credentials.
7948
7949 <result name="VBOX_E_VM_ERROR">
7950 VMM device is not available.
7951 </result>
7952
7953 </desc>
7954 <param name="userName" type="wstring" dir="in">
7955 <desc>User name string, can be empty</desc>
7956 </param>
7957 <param name="password" type="wstring" dir="in">
7958 <desc>Password string, can be empty</desc>
7959 </param>
7960 <param name="domain" type="wstring" dir="in">
7961 <desc>Domain name (guest logon scheme specific), can be empty</desc>
7962 </param>
7963 <param name="allowInteractiveLogon" type="boolean" dir="in">
7964 <desc>
7965 Flag whether the guest should alternatively allow the user to
7966 interactively specify different credentials. This flag might
7967 not be supported by all versions of the Additions.
7968 </desc>
7969 </param>
7970 </method>
7971
7972 <method name="getStatistic">
7973 <desc>
7974 Query specified guest statistics as reported by the VirtualBox Additions.
7975 </desc>
7976 <param name="cpuId" type="unsigned long" dir="in">
7977 <desc>Virtual CPU id; not relevant for all statistic types</desc>
7978 </param>
7979 <param name="statistic" type="GuestStatisticType" dir="in">
7980 <desc>Statistic type.</desc>
7981 </param>
7982 <param name="statVal" type="unsigned long" dir="return">
7983 <desc>Statistics value</desc>
7984 </param>
7985 </method>
7986
7987 </interface>
7988
7989
7990 <!--
7991 // IProgress
7992 /////////////////////////////////////////////////////////////////////////
7993 -->
7994
7995 <interface
7996 name="IProgress" extends="$unknown"
7997 uuid="6fcd0198-7fc5-4c53-8c37-653ac76854b5"
7998 wsmap="managed"
7999 >
8000 <desc>
8001 The IProgress interface is used to track and control
8002 asynchronous tasks within VirtualBox.
8003
8004 An instance of this is returned every time VirtualBox starts
8005 an asynchronous task (in other words, a separate thread) which
8006 continues to run after a method call returns. For example,
8007 <link to="IConsole::saveState" />, which saves the state of
8008 a running virtual machine, can take a long time to complete.
8009 To be able to display a progress bar, a user interface such as
8010 the VirtualBox graphical user interface can use the IProgress
8011 object returned by that method.
8012
8013 Note that IProgress is a "read-only" interface in the sense
8014 that only the VirtualBox internals behind the Main API can
8015 create and manipulate progress objects, whereas client code
8016 can only use the IProgress object to monitor a task's
8017 progress and, if <link to="#cancelable" /> is @c true,
8018 cancel the task by calling <link to="#cancel" />.
8019
8020 A task represented by IProgress consists of either one or
8021 several sub-operations that run sequentially, one by one (see
8022 <link to="#operation" /> and <link to="#operationCount" />).
8023 Every operation is identified by a number (starting from 0)
8024 and has a separate description.
8025
8026 You can find the individual percentage of completion of the current
8027 operation in <link to="#operationPercent" /> and the
8028 percentage of completion of the task as a whole
8029 in <link to="#percent" />.
8030
8031 Similarly, you can wait for the completion of a particular
8032 operation via <link to="#waitForOperationCompletion" /> or
8033 for the completion of the whole task via
8034 <link to="#waitForCompletion" />.
8035 </desc>
8036
8037 <attribute name="id" type="wstring" readonly="yes">
8038 <desc>ID of the task.</desc>
8039 </attribute>
8040
8041 <attribute name="description" type="wstring" readonly="yes">
8042 <desc>Description of the task.</desc>
8043 </attribute>
8044
8045 <attribute name="initiator" type="$unknown" readonly="yes">
8046 <desc>Initiator of the task.</desc>
8047 </attribute>
8048
8049 <attribute name="cancelable" type="boolean" readonly="yes">
8050 <desc>Whether the task can be interrupted.</desc>
8051 </attribute>
8052
8053 <attribute name="percent" type="unsigned long" readonly="yes">
8054 <desc>
8055 Current progress value of the task as a whole, in percent.
8056 This value depends on how many operations are already complete.
8057 Returns 100 if <link to="#completed" /> is @c true.
8058 </desc>
8059 </attribute>
8060
8061 <attribute name="timeRemaining" type="long" readonly="yes">
8062 <desc>
8063 Estimated remaining time until the task completes, in
8064 seconds. Returns 0 once the task has completed; returns -1
8065 if the remaining time cannot be computed, in particular if
8066 the current progress is 0.
8067
8068 Even if a value is returned, the estimate will be unreliable
8069 for low progress values. It will become more reliable as the
8070 task progresses; it is not recommended to display an ETA
8071 before at least 20% of a task have completed.
8072 </desc>
8073 </attribute>
8074
8075 <attribute name="completed" type="boolean" readonly="yes">
8076 <desc>Whether the task has been completed.</desc>
8077 </attribute>
8078
8079 <attribute name="canceled" type="boolean" readonly="yes">
8080 <desc>Whether the task has been canceled.</desc>
8081 </attribute>
8082
8083 <attribute name="resultCode" type="long" readonly="yes">
8084 <desc>
8085 Result code of the progress task.
8086 Valid only if <link to="#completed"/> is @c true.
8087 </desc>
8088 </attribute>
8089
8090 <attribute name="errorInfo" type="IVirtualBoxErrorInfo" readonly="yes">
8091 <desc>
8092 Extended information about the unsuccessful result of the
8093 progress operation. May be @c null if no extended information
8094 is available.
8095 Valid only if <link to="#completed"/> is @c true and
8096 <link to="#resultCode"/> indicates a failure.
8097 </desc>
8098 </attribute>
8099
8100 <attribute name="operationCount" type="unsigned long" readonly="yes">
8101 <desc>
8102 Number of sub-operations this task is divided into.
8103 Every task consists of at least one suboperation.
8104 </desc>
8105 </attribute>
8106
8107 <attribute name="operation" type="unsigned long" readonly="yes">
8108 <desc>Number of the sub-operation being currently executed.</desc>
8109 </attribute>
8110
8111 <attribute name="operationDescription" type="wstring" readonly="yes">
8112 <desc>
8113 Description of the sub-operation being currently executed.
8114 </desc>
8115 </attribute>
8116
8117 <attribute name="operationPercent" type="unsigned long" readonly="yes">
8118 <desc>Progress value of the current sub-operation only, in percent.</desc>
8119 </attribute>
8120
8121 <method name="waitForCompletion">
8122 <desc>
8123 Waits until the task is done (including all sub-operations)
8124 with a given timeout in milliseconds; specify -1 for an indefinite wait.
8125
8126 <result name="VBOX_E_IPRT_ERROR">
8127 Failed to wait for task completion.
8128 </result>
8129 </desc>
8130
8131 <param name="timeout" type="long" dir="in">
8132 <desc>
8133 Maximum time in milliseconds to wait or -1 to wait indefinitely.
8134 </desc>
8135 </param>
8136 </method>
8137
8138 <method name="waitForOperationCompletion">
8139 <desc>
8140 Waits until the given operation is done with a given timeout in
8141 milliseconds; specify -1 for an indefinite wait.
8142
8143 <result name="VBOX_E_IPRT_ERROR">
8144 Failed to wait for operation completion.
8145 </result>
8146
8147 </desc>
8148 <param name="operation" type="unsigned long" dir="in">
8149 <desc>
8150 Number of the operation to wait for.
8151 Must be less than <link to="#operationCount"/>.
8152 </desc>
8153 </param>
8154 <param name="timeout" type="long" dir="in">
8155 <desc>
8156 Maximum time in milliseconds to wait or -1 to wait indefinitely.
8157 </desc>
8158 </param>
8159 </method>
8160
8161 <method name="cancel">
8162 <desc>
8163 Cancels the task.
8164 <note>
8165 If <link to="#cancelable"/> is @c false, then this method will fail.
8166 </note>
8167
8168 <result name="VBOX_E_INVALID_OBJECT_STATE">
8169 Operation cannot be canceled.
8170 </result>
8171
8172 </desc>
8173 </method>
8174
8175 </interface>
8176
8177
8178 <!--
8179 // ISnapshot
8180 /////////////////////////////////////////////////////////////////////////
8181 -->
8182
8183 <interface
8184 name="ISnapshot" extends="$unknown"
8185 uuid="1a2d0551-58a4-4107-857e-ef414fc42ffc"
8186 wsmap="managed"
8187 >
8188 <desc>
8189 The ISnapshot interface represents a snapshot of the virtual
8190 machine.
8191
8192 The <i>snapshot</i> stores all the information about a virtual
8193 machine necessary to bring it to exactly the same state as it was at
8194 the time of taking the snapshot. The snapshot includes:
8195
8196 <ul>
8197 <li>all settings of the virtual machine (i.e. its hardware
8198 configuration: RAM size, attached hard disks, etc.)
8199 </li>
8200 <li>the execution state of the virtual machine (memory contents,
8201 CPU state, etc.).
8202 </li>
8203 </ul>
8204
8205 Snapshots can be <i>offline</i> (taken when the VM is powered off)
8206 or <i>online</i> (taken when the VM is running). The execution
8207 state of the offline snapshot is called a <i>zero execution state</i>
8208 (it doesn't actually contain any information about memory contents
8209 or the CPU state, assuming that all hardware is just powered off).
8210
8211 <h3>Snapshot branches</h3>
8212
8213 Snapshots can be chained. Chained snapshots form a branch where
8214 every next snapshot is based on the previous one. This chaining is
8215 mostly related to hard disk branching (see <link to="IHardDisk"/>
8216 description). This means that every time a new snapshot is created,
8217 a new differencing hard disk is implicitly created for all normal
8218 hard disks attached to the given virtual machine. This allows to
8219 fully restore hard disk contents when the machine is later reverted
8220 to a particular snapshot.
8221
8222 In the current implementation, multiple snapshot branches within one
8223 virtual machine are not allowed. Every machine has a single branch,
8224 and <link to="IConsole::takeSnapshot"/> operation adds a new
8225 snapshot to the top of that branch.
8226
8227 Existing snapshots can be discarded using
8228 <link to="IConsole::discardSnapshot"/>.
8229
8230 <h3>Current snapshot</h3>
8231
8232 Every virtual machine has a current snapshot, identified by
8233 <link to="IMachine::currentSnapshot"/>. This snapshot is used as
8234 a base for the <i>current machine state</i> (see below), to the effect
8235 that all normal hard disks of the machine and its execution
8236 state are based on this snapshot.
8237
8238 In the current implementation, the current snapshot is always the
8239 last taken snapshot (i.e. the head snapshot on the branch) and it
8240 cannot be changed.
8241
8242 The current snapshot is @c null if the machine doesn't have
8243 snapshots at all; in this case the current machine state is just
8244 current settings of this machine plus its current execution state.
8245
8246 <h3>Current machine state</h3>
8247
8248 The current machine state is what represented by IMachine instances got
8249 directly from IVirtualBox
8250 using <link
8251 to="IVirtualBox::getMachine">getMachine()</link>, <link
8252 to="IVirtualBox::findMachine">findMachine()</link>, etc. (as opposed
8253 to instances returned by <link to="ISnapshot::machine"/>). This state
8254 is always used when the machine is <link to="IConsole::powerUp"> powered
8255 on</link>.
8256
8257 The current machine state also includes the current execution state.
8258 If the machine is being currently executed
8259 (<link to="IMachine::state"/> is <link to="MachineState_Running"/>
8260 and above), its execution state is just what's happening now.
8261 If it is powered off (<link to="MachineState_PoweredOff"/> or
8262 <link to="MachineState_Aborted"/>), it has a zero execution state.
8263 If the machine is saved (<link to="MachineState_Saved"/>), its
8264 execution state is what saved in the execution state file
8265 (<link to="IMachine::stateFilePath"/>).
8266
8267 If the machine is in the saved state, then, next time it is powered
8268 on, its execution state will be fully restored from the saved state
8269 file and the execution will continue from the point where the state
8270 was saved.
8271
8272 Similarly to snapshots, the current machine state can be discarded
8273 using <link to="IConsole::discardCurrentState"/>.
8274
8275 <h3>Taking and discarding snapshots</h3>
8276
8277 The table below briefly explains the meaning of every snapshot
8278 operation:
8279
8280 <table>
8281 <tr><th>Operation</th><th>Meaning</th><th>Remarks</th></tr>
8282
8283 <tr><td><link to="IConsole::takeSnapshot"/></td>
8284
8285 <td>Save the current state of the virtual machine, including all
8286 settings, contents of normal hard disks and the current modifications
8287 to immutable hard disks (for online snapshots)</td>
8288
8289 <td>The current state is not changed (the machine will continue
8290 execution if it is being executed when the snapshot is
8291 taken)</td></tr>
8292
8293 <tr><td><link to="IConsole::discardSnapshot"/></td>
8294
8295 <td>Forget the state of the virtual machine stored in the snapshot:
8296 dismiss all saved settings and delete the saved execution state (for
8297 online snapshots)</td>
8298
8299 <td>Other snapshots (including child snapshots, if any) and the
8300 current state are not directly affected</td></tr>
8301
8302 <tr><td><link to="IConsole::discardCurrentState"/></td>
8303
8304 <td>Restore the current state of the virtual machine from the state
8305 stored in the current snapshot, including all settings and hard disk
8306 contents</td>
8307
8308 <td>The current state of the machine existed prior to this operation
8309 is lost</td></tr>
8310
8311 <tr><td><link to="IConsole::discardCurrentSnapshotAndState"/></td>
8312
8313 <td>Completely revert the virtual machine to the state it was in
8314 before the current snapshot has been taken</td>
8315
8316 <td>The current state, as well as the current snapshot, are
8317 lost</td></tr>
8318
8319 </table>
8320
8321 </desc>
8322
8323 <attribute name="id" type="wstring" readonly="yes">
8324 <desc>UUID of the snapshot.</desc>
8325 </attribute>
8326
8327 <attribute name="name" type="wstring">
8328 <desc>Short name of the snapshot.</desc>
8329 </attribute>
8330
8331 <attribute name="description" type="wstring">
8332 <desc>Optional description of the snapshot.</desc>
8333 </attribute>
8334
8335 <attribute name="timeStamp" type="long long" readonly="yes">
8336 <desc>
8337 Time stamp of the snapshot, in milliseconds since 1970-01-01 UTC.
8338 </desc>
8339 </attribute>
8340
8341 <attribute name="online" type="boolean" readonly="yes">
8342 <desc>
8343 @c true if this snapshot is an online snapshot and @c false otherwise.
8344
8345 <note>
8346 When this attribute is @c true, the
8347 <link to="IMachine::stateFilePath"/> attribute of the
8348 <link to="#machine"/> object associated with this snapshot
8349 will point to the saved state file. Otherwise, it will be
8350 @c null.
8351 </note>
8352 </desc>
8353 </attribute>
8354
8355 <attribute name="machine" type="IMachine" readonly="yes">
8356 <desc>
8357 Virtual machine this snapshot is taken on. This object
8358 stores all settings the machine had when taking this snapshot.
8359 <note>
8360 The returned machine object is immutable, i.e. no
8361 any settings can be changed.
8362 </note>
8363 </desc>
8364 </attribute>
8365
8366 <attribute name="parent" type="ISnapshot" readonly="yes">
8367 <desc>
8368 Parent snapshot (a snapshot this one is based on).
8369 <note>
8370 It's not an error to read this attribute on a snapshot
8371 that doesn't have a parent -- a @c null object will be
8372 returned to indicate this.
8373 </note>
8374 </desc>
8375 </attribute>
8376
8377 <attribute name="children" type="ISnapshot" readonly="yes" safearray="yes">
8378 <desc>
8379 Child snapshots (all snapshots having this one as a parent).
8380 <note>
8381 In the current implementation, there can be only one
8382 child snapshot, or no children at all, meaning this is the
8383 last (head) snapshot.
8384 </note>
8385 </desc>
8386 </attribute>
8387
8388 </interface>
8389
8390
8391 <!--
8392 // IMedia
8393 /////////////////////////////////////////////////////////////////////////
8394 -->
8395
8396 <enum
8397 name="MediaState"
8398 uuid="8b86e03c-2f1c-412a-8fbd-326f62701200"
8399 >
8400 <desc>
8401 Virtual media state.
8402 <see>IMedia</see>
8403 </desc>
8404
8405 <const name="NotCreated" value="0">
8406 <desc>
8407 Associated media storage does not exist (either was not created yet or
8408 was deleted).
8409 </desc>
8410 </const>
8411 <const name="Created" value="1">
8412 <desc>
8413 Associated storage exists and accessible.
8414 </desc>
8415 </const>
8416 <const name="LockedRead" value="2">
8417 <desc>
8418 Media is locked for reading, no data modification is possible.
8419 </desc>
8420 </const>
8421 <const name="LockedWrite" value="3">
8422 <desc>
8423 Media is locked for writing, no concurrent data reading or modification
8424 is possible.
8425 </desc>
8426 </const>
8427 <const name="Inaccessible" value="4">
8428 <desc>
8429 Associated media storage is not accessible.
8430 </desc>
8431 </const>
8432 <const name="Creating" value="5">
8433 <desc>
8434 Associated media storage is being created.
8435 </desc>
8436 </const>
8437 <const name="Deleting" value="6">
8438 <desc>
8439 Associated media storage is being deleted.
8440 </desc>
8441 </const>
8442 </enum>
8443
8444 <interface
8445 name="IMedium" extends="$unknown"
8446 uuid="f585787c-7728-40f6-853a-13705426e936"
8447 wsmap="managed"
8448 >
8449 <desc>
8450 The IMedium interface is a common interface for all objects representing
8451 virtual media such as hard disks, CD/DVD images and floppy images.
8452
8453 Each medium is associated with a storage unit (such as a file on the host
8454 computer or a network resource) that holds actual data. The location of
8455 the storage unit is represented by the #location attribute. The value of
8456 this attribute is media type dependent.
8457
8458 The exact media type may be determined by querying the appropriate
8459 interface such as:
8460 <ul>
8461 <li><link to="IHardDisk" /> (virtual hard disks)</li>
8462 <li><link to="IDVDImage" /> (standard CD/DVD ISO image files)</li>
8463 <li><link to="IFloppyImage" /> (raw floppy image files)</li>
8464 </ul>
8465
8466 Existing media are opened using the following methods, depending on the
8467 media type:
8468 <ul>
8469 <li><link to="IVirtualBox::openHardDisk"/></li>
8470 <li><link to="IVirtualBox::openDVDImage"/></li>
8471 <li><link to="IVirtualBox::openFloppyImage"/></li>
8472 </ul>
8473
8474 New hard disk media are created using the
8475 <link to="IVirtualBox::createHardDisk"/> method. CD/DVD and floppy
8476 images are created outside VirtualBox, usually by storing a copy
8477 of the real medium of the corresponding type in a regular file.
8478
8479 <h3>Known Media</h3>
8480
8481 When an existing medium gets opened for the first time, it gets
8482 automatically remembered by the given VirtualBox installation or, in other
8483 words, becomes a <i>known medium</i>. Known media are stored in the media
8484 registry transparently maintained by VirtualBox and stored in settings
8485 files so that this registry is preserved when VirtualBox is not running.
8486
8487 Newly created virtual hard disks get remembered only when the associated
8488 storage unit is actually created (see IHardDisk for more details).
8489
8490 All known media can be enumerated using
8491 <link to="IVirtualBox::hardDisks"/>,
8492 <link to="IVirtualBox::DVDImages"/> and
8493 <link to="IVirtualBox::floppyImages"/> attributes. Individual media can be
8494 quickly found by UUID using <link to="IVirtualBox::getHardDisk"/>
8495 and similar methods or by location using
8496 <link to="IVirtualBox::findHardDisk"/> and similar methods.
8497
8498 Only known media can be attached to virtual machines.
8499
8500 Removing known media from the media registry is performed when the given
8501 medium is closed using the <link to="#close"/> method or when its
8502 associated storage unit is deleted (only for hard disks).
8503
8504 <h3>Accessibility Checks</h3>
8505
8506 The given medium (with the created storage unit) is considered to be
8507 <i>accessible</i> when its storage unit can be read.
8508 Accessible media are indicated by the <link to="MediaState_Created"/>
8509 value of the <link to="#state"/> attribute. When the storage unit cannot
8510 be read (for example, because it is located on a disconnected network
8511 resource, or was accidentally deleted outside VirtualBox), the medium is
8512 considered to be <i>inaccessible</i> which is indicated by the
8513 <link to="MediaState_Inaccessible"/> state. The details about the reason
8514 of being inaccessible can be obtained using the
8515 <link to="#lastAccessError"/> attribute.
8516
8517 A new accessibility check is performed each time the <link to="#state"/>
8518 attribute is read. Please note that this check may take long time (several
8519 seconds or even minutes, depending on the storage unit location and
8520 format), and will block the calling thread until finished. For this
8521 reason, it is recommended to never read this attribute on the main UI
8522 thread to avoid making the UI unresponsive.
8523
8524 Note that when VirtualBox starts up (e.g. the VirtualBox object gets
8525 created for the first time), all known media are in the
8526 <link to="MediaState_Inaccessible"/> state but the value of the <link
8527 to="#lastAccessError"/> attribute is @c null because no actual
8528 accessibility check is made on startup. This is done to make the
8529 VirtualBox object ready for serving requests as
8530 fast as possible and let the end-user application decide if it needs to
8531 check media accessibility right away or not.
8532 </desc>
8533
8534 <attribute name="id" type="wstring" readonly="yes">
8535 <desc>
8536 UUID of the medium. For a newly created medium, this value is a randomly
8537 generated UUID.
8538
8539 <note>
8540 For media in one of MediaState_NotCreated, MediaState_Creating or
8541 MediaState_Deleting states, the value of this property is undefined
8542 and will most likely be an empty UUID.
8543 </note>
8544 </desc>
8545 </attribute>
8546
8547 <attribute name="description" type="wstring">
8548 <desc>
8549 Optional description of the medium. For newly created media, the value
8550 of this attribute value is an empty string.
8551
8552 Media types that don't support this attribute will return E_NOTIMPL in
8553 attempt to get or set this attribute's value.
8554
8555 <note>
8556 For some storage types, reading this attribute may return an outdated
8557 (last known) value when <link to="#state"/> is <link
8558 to="MediaState_Inaccessible"/> or <link
8559 to="MediaState_LockedWrite"/> because the value of this attribute is
8560 stored within the storage unit itself. Also note that changing the
8561 attribute value is not possible in such case, as well as when the
8562 medium is the <link to="MediaState_LockedRead"/> state.
8563 </note>
8564 </desc>
8565 </attribute>
8566
8567 <attribute name="state" type="MediaState" readonly="yes">
8568 <desc>
8569 Current media state. Inspect <link to="MediaState"/> values for details.
8570
8571 Reading this attribute may take a long time because an accessibility
8572 check of the storage unit is performed each time the attribute is read.
8573 This check may cause a significant delay if the storage unit of the
8574 given medium is, for example, a file located on a network share which is
8575 not currently accessible due to connectivity problems -- the call will
8576 not return until a timeout interval defined by the host OS for this
8577 operation expires.
8578
8579 If the last known state of the medium is <link to="MediaState_Created"/>
8580 and the accessibility check fails then the state would be set to
8581 <link to="MediaState_Inaccessible"/> and <link to="#lastAccessError"/>
8582 may be used to get more details about the failure. If the state of the
8583 medium is <link to="MediaState_LockedRead"/> or
8584 <link to="MediaState_LockedWrite"/> then it remains the same, and a
8585 non-@c null value of <link to="#lastAccessError"/> will indicate a failed
8586 accessibility check in this case.
8587
8588 Note that not all media states are applicable to all media types.
8589 For example, states <link to="MediaState_NotCreated"/>,
8590 <link to="MediaState_LockedWrite"/>, <link to="MediaState_Creating"/>,
8591 <link to="MediaState_Deleting"/> are meaningless for IDVDImage and
8592 IFloppyImage media.
8593 </desc>
8594 </attribute>
8595
8596 <attribute name="location" type="wstring">
8597 <desc>
8598 Location of the storage unit holding media data.
8599
8600 The format of the location string is media type specific. For media
8601 types using regular files in a host's file system, the location
8602 string is the full file name.
8603
8604 Some media types may support changing the storage unit location by
8605 simply changing the value of this property. If this operation is not
8606 supported, the implementation will return E_NOTIMPL in attempt to set
8607 this attribute's value.
8608
8609 When setting a value of the location attribute which is a regular file
8610 in the host's file system, the given file name may be either relative to
8611 the <link to="IVirtualBox::homeFolder">VirtualBox home folder</link> or
8612 absolute. Note that if the given location specification does not contain
8613 the file extension part then a proper default extension will be
8614 automatically appended by the implementation depending on the media type.
8615 </desc>
8616 </attribute>
8617
8618 <attribute name="name" type="wstring" readonly="yes">
8619 <desc>
8620 Name of the storage unit holding media data.
8621
8622 The returned string is a short version of the <link to="#location"/>
8623 attribute that is suitable for representing the medium in situations
8624 where the full location specification is too long (such as lists
8625 and comboboxes in GUI frontends). This string is also used by frontends
8626 to sort the media list alphabetically when needed.
8627
8628 For example, for locations that are regular files in the host's file
8629 system, the value of this attribute is just the file name (+ extension),
8630 without the path specification.
8631
8632 Note that as opposed to the <link to="#location"/> attribute, the name
8633 attribute will not necessary be unique for a list of media of the
8634 given type and format.
8635 </desc>
8636 </attribute>
8637
8638 <attribute name="size" type="unsigned long long" readonly="yes">
8639 <desc>
8640 Physical size of the storage unit used to hold media data (in bytes).
8641
8642 <note>
8643 For media whose <link to="#state"/> is <link
8644 to="MediaState_Inaccessible"/>, the value of this property is the
8645 last known size. For <link to="MediaState_NotCreated"/> media,
8646 the returned value is zero.
8647 </note>
8648 </desc>
8649 </attribute>
8650
8651 <attribute name="lastAccessError" type="wstring" readonly="yes">
8652 <desc>
8653 Text message that represents the result of the last accessibility
8654 check.
8655
8656 Accessibility checks are performed each time the <link to="#state"/>
8657 attribute is read. An empty string is returned if the last
8658 accessibility check was successful. A non-empty string indicates a
8659 failure and should normally describe a reason of the failure (for
8660 example, a file read error).
8661 </desc>
8662 </attribute>
8663
8664 <attribute name="machineIds" type="wstring" safearray="yes" readonly="yes">
8665 <desc>
8666 Array of UUIDs of all machines this medium is attached to.
8667
8668 A @c null array is returned if this medium is not attached to any
8669 machine or to any machine's snapshot.
8670
8671 <note>
8672 The returned array will include a machine even if this medium is not
8673 attached to that machine in the current state but attached to it in
8674 one of the machine's snapshots. See <link to="#getSnapshotIds"/> for
8675 details.
8676 </note>
8677 </desc>
8678 </attribute>
8679
8680 <method name="getSnapshotIds">
8681 <desc>
8682 Returns an array of UUIDs of all snapshots of the given machine where
8683 this medium is attached to.
8684
8685 If the medium is attached to the machine in the current state, then the
8686 first element in the array will always be the ID of the queried machine
8687 (i.e. the value equal to the @c machineId argument), followed by
8688 snapshot IDs (if any).
8689
8690 If the medium is not attached to the machine in the current state, then
8691 the array will contain only snapshot IDs.
8692
8693 The returned array may be @c null if this medium is not attached
8694 to the given machine at all, neither in the current state nor in one of
8695 the snapshots.
8696 </desc>
8697 <param name="machineId" type="wstring" dir="in">
8698 <desc>
8699 UUID of the machine to query.
8700 </desc>
8701 </param>
8702 <param name="snapshotIds" type="wstring" safearray="yes" dir="return">
8703 <desc>
8704 Array of snapshot UUIDs of the given machine using this medium.
8705 </desc>
8706 </param>
8707 </method>
8708
8709 <method name="lockRead">
8710 <desc>
8711 Locks this medium for reading.
8712
8713 The read lock is shared: many clients can simultaneously lock the
8714 same media for reading unless it is already locked for writing (see
8715 <link to="#lockWrite"/>) in which case an error is returned.
8716
8717 When the medium is locked for reading, it cannot be modified
8718 from within VirtualBox. This means that any method that changes
8719 the properties of this medium or contents of the storage unit
8720 will return an error (unless explicitly stated otherwise) and
8721 that an attempt to start a virtual machine that wants to modify
8722 the medium will also fail.
8723
8724 When the virtual machine is started up, it locks for reading all
8725 media it uses in read-only mode. If some media cannot be locked
8726 for reading, the startup procedure will fail.
8727
8728 The medium locked for reading must be unlocked using the <link
8729 to="#unlockRead"/> method. Calls to <link to="#lockRead"/>
8730 can be nested and must be followed by the same number of paired
8731 <link to="#unlockRead"/> calls.
8732
8733 This method sets the media state to <link
8734 to="MediaState_LockedRead" /> on success. The state prior to
8735 this call must be <link to="MediaState_Created" />,
8736 <link to="MediaState_Inaccessible" /> or
8737 <link to="MediaState_LockedRead" />.
8738 As you can see, inaccessible media can be locked too. This is
8739 not an error; this method performs a logical lock that prevents
8740 modifications of this media through the VirtualBox API, not a
8741 physical lock of the underlying storage unit.
8742
8743 This method returns the current state of the medium
8744 <b>before</b> the operation.
8745
8746 <result name="VBOX_E_INVALID_OBJECT_STATE">
8747 Invalid media state (e.g. not created, locked, inaccessible,
8748 creating, deleting).
8749 </result>
8750
8751 </desc>
8752 <param name="state" type="MediaState" dir="return">
8753 <desc>
8754 State of the medium after the operation.
8755 </desc>
8756 </param>
8757 </method>
8758
8759 <method name="unlockRead">
8760 <desc>
8761 Cancels the read lock previously set by <link to="#lockRead"/>.
8762
8763 For both, success and failure, this method returns the current state
8764 of the medium <b>after</b> the operation.
8765
8766 See <link to="#lockRead"/> for more details.
8767
8768 <result name="VBOX_E_INVALID_OBJECT_STATE">
8769 Medium not locked for reading.
8770 </result>
8771
8772 </desc>
8773 <param name="state" type="MediaState" dir="return">
8774 <desc>
8775 State of the medium after the operation.
8776 </desc>
8777 </param>
8778 </method>
8779
8780 <method name="lockWrite">
8781 <desc>
8782 Locks this medium for writing.
8783
8784 The write lock, as opposed to <link to="#lockRead"/>, is
8785 exclusive: there may be only one client holding a write lock
8786 and there may be no read locks while the write lock is held.
8787
8788 When the medium is locked for writing, it cannot be modified
8789 from within VirtualBox and it is not guaranteed that the values
8790 of its properties are up-to-date. Any method that changes the
8791 properties of this medium or contents of the storage unit will
8792 return an error (unless explicitly stated otherwise) and an
8793 attempt to start a virtual machine wanting to modify or to
8794 read the medium will fail.
8795
8796 When the virtual machine is started up, it locks for writing all
8797 media it uses to write data to. If any medium could not be locked
8798 for writing, the startup procedure will fail.
8799
8800 The medium locked for writing must be unlocked using the <link
8801 to="#unlockWrite"/> method. Calls to <link to="#lockWrite"/>
8802 can <b>not</b> be nested and must be followed by a<link
8803 to="#unlockWrite"/> call before the next lockWrite call.
8804
8805 This method sets the media state to <link to="MediaState_LockedWrite" />
8806 on success. The state prior to this call must be <link to="MediaState_Created"/>
8807 or <link to="MediaState_Inaccessible"/>. As you can see, inaccessible
8808 media can be locked too. This is not an error; this method
8809 performs a logical lock preventing modifications of this
8810 media through the VirtualBox API, not a physical lock of the
8811 underlying storage unit.
8812
8813 For both, success and failure, this method returns the current
8814 state of the medium <b>before</b> the operation.
8815
8816 <result name="VBOX_E_INVALID_OBJECT_STATE">
8817 Invalid media state (e.g. not created, locked, inaccessible,
8818 creating, deleting).
8819 </result>
8820
8821 </desc>
8822 <param name="state" type="MediaState" dir="return">
8823 <desc>
8824 State of the medium after the operation.
8825 </desc>
8826 </param>
8827 </method>
8828
8829 <method name="unlockWrite">
8830 <desc>
8831 Cancels the write lock previously set by <link to="#lockWrite"/>.
8832
8833 For both, success and failure, this method returns the current
8834 state of the medium <b>after</b> the operation.
8835
8836 See <link to="#lockWrite"/> for more details.
8837
8838 <result name="VBOX_E_INVALID_OBJECT_STATE">
8839 Medium not locked for writing.
8840 </result>
8841
8842 </desc>
8843 <param name="state" type="MediaState" dir="return">
8844 <desc>
8845 State of the medium after the operation.
8846 </desc>
8847 </param>
8848 </method>
8849
8850 <method name="close">
8851 <desc>
8852 Closes this medium.
8853
8854 The hard disk must not be attached to any known virtual machine
8855 and must not have any known child hard disks, otherwise the
8856 operation will fail.
8857
8858 When the hard disk is successfully closed, it gets removed from
8859 the list of remembered hard disks, but its storage unit is not
8860 deleted. In particular, this means that this hard disk can be
8861 later opened again using the <link
8862 to="IVirtualBox::openHardDisk"/> call.
8863
8864 Note that after this method successfully returns, the given hard
8865 disk object becomes uninitialized. This means that any attempt
8866 to call any of its methods or attributes will fail with the
8867 <tt>"Object not ready" (E_ACCESSDENIED)</tt> error.
8868
8869 <result name="VBOX_E_INVALID_OBJECT_STATE">
8870 Invalid media state (other than not created, created or
8871 inaccessible).
8872 </result>
8873 <result name="VBOX_E_OBJECT_IN_USE">
8874 Medium attached to virtual machine.
8875 </result>
8876 <result name="VBOX_E_FILE_ERROR">
8877 Settings file not accessible.
8878 </result>
8879 <result name="VBOX_E_XML_ERROR">
8880 Could not parse the settings file.
8881 </result>
8882
8883 </desc>
8884 </method>
8885
8886 </interface>
8887
8888
8889 <!--
8890 // IHardDisk
8891 /////////////////////////////////////////////////////////////////////////
8892 -->
8893
8894 <enum
8895 name="HardDiskType"
8896 uuid="a348fafd-a64e-4643-ba65-eb3896bd7e0a"
8897 >
8898 <desc>
8899 Virtual hard disk type.
8900 <see>IHardDisk</see>
8901 </desc>
8902
8903 <const name="Normal" value="0">
8904 <desc>
8905 Normal hard disk (attached directly or indirectly, preserved
8906 when taking snapshots).
8907 </desc>
8908 </const>
8909 <const name="Immutable" value="1">
8910 <desc>
8911 Immutable hard disk (attached indirectly, changes are wiped out
8912 after powering off the virtual machine).
8913 </desc>
8914 </const>
8915 <const name="Writethrough" value="2">
8916 <desc>
8917 Write through hard disk (attached directly, ignored when
8918 taking snapshots).
8919 </desc>
8920 </const>
8921 </enum>
8922
8923 <enum
8924 name="HardDiskVariant"
8925 uuid="eb7fc6b3-ae23-4c5d-a1f6-e3522dd1efb0"
8926 >
8927 <desc>
8928 Virtual hard disk image variant. More than one flag may be set.
8929 <see>IHardDisk</see>
8930 </desc>
8931
8932 <const name="Standard" value="0">
8933 <desc>
8934 No particular variant requested, results in using the backend default.
8935 </desc>
8936 </const>
8937 <const name="VmdkSplit2G" value="0x01">
8938 <desc>
8939 VMDK image split in chunks of less than 2GByte.
8940 </desc>
8941 </const>
8942 <const name="VmdkStreamOptimized" value="0x04">
8943 <desc>
8944 VMDK streamOptimized image. Special import/export format which is
8945 read-only/append-only.
8946 </desc>
8947 </const>
8948 <const name="VmdkESX" value="0x08">
8949 <desc>
8950 VMDK format variant used on ESX products.
8951 </desc>
8952 </const>
8953 <const name="Fixed" value="0x10000">
8954 <desc>
8955 Fixed image. Only allowed for base images.
8956 </desc>
8957 </const>
8958 <const name="Diff" value="0x20000">
8959 <desc>
8960 Fixed image. Only allowed for base images.
8961 </desc>
8962 </const>
8963 </enum>
8964
8965 <interface
8966 name="IHardDiskAttachment" extends="$unknown"
8967 uuid="b1dd04bb-93c0-4ad3-a9cf-82316e595836"
8968 wsmap="struct"
8969 >
8970 <desc>
8971 The IHardDiskAttachment interface represents a hard disk attachment of a
8972 virtual machine.
8973
8974 Every hard disk attachment specifies a slot of the virtual hard disk
8975 controller and a virtual hard disk attached to this slot.
8976
8977 The array of hard disk attachments is returned by
8978 <link to="IMachine::hardDiskAttachments"/>.
8979 </desc>
8980 <attribute name="hardDisk" type="IHardDisk" readonly="yes">
8981 <desc>Hard disk object associated with this attachment.</desc>
8982 </attribute>
8983
8984 <attribute name="controller" type="wstring" readonly="yes">
8985 <desc>Interface bus of this attachment.</desc>
8986 </attribute>
8987
8988 <attribute name="port" type="long" readonly="yes">
8989 <desc>Port number of this attachment.</desc>
8990 </attribute>
8991
8992 <attribute name="device" type="long" readonly="yes">
8993 <desc>Device slot number of this attachment.</desc>
8994 </attribute>
8995
8996 </interface>
8997
8998 <interface
8999 name="IHardDisk" extends="IMedium"
9000 uuid="62551115-83b8-4d20-925f-79e9d3c00f96"
9001 wsmap="managed"
9002 >
9003 <desc>
9004 The IHardDisk interface represents a virtual hard disk drive
9005 used by a virtual machine. This is a subclass of <link to="IMedium" />; see remarks there.
9006
9007 <h3>Hard Disk Types</h3>
9008
9009 There are three types of hard disks:
9010 <link to="HardDiskType_Normal">Normal</link>,
9011 <link to="HardDiskType_Immutable">Immutable</link> and
9012 <link to="HardDiskType_Writethrough">Writethrough</link>. The type of the
9013 hard disk defines how the hard disk is attached to a virtual machine and
9014 what happens when a <link to="ISnapshot">snapshot</link> of the virtual
9015 machine with the attached hard disk is taken. The type of the hard disk is
9016 defined by the <link to="#type"/> attribute.
9017
9018 All hard disks can be also divided in two groups: <i>base</i> hard
9019 disks and <i>differencing</i> hard disks. A base hard disk contains all
9020 sectors of the hard disk data in its own storage and therefore can be
9021 used independently. On the contrary, a differencing hard disk is a
9022 "delta" to some other disk and contains only those sectors which differ
9023 from that other disk, which is then called a <i>parent</i>. The differencing
9024 hard disk is said to be <i>linked to</i> that parent.
9025 The parent may be itself a differencing image, thus forming a chain of
9026 linked hard disks. The last element in that chain (sometimes referred to as
9027 the root hard disk) must always be a base. Note that several differencing
9028 hard disks may be linked to the same parent hard disk.
9029
9030 Differencing hard disks can be distinguished from base hard disks by
9031 querying the <link to="#parent"/> attribute: base hard disks do not have
9032 parents they would depend on, so the value of this attribute is always
9033 @c null for them. Using this attribute, it is possible to walk up
9034 the hard disk tree (from the child hard disk to its parent). It is also
9035 possible to walk down the tree using the <link to="#children"/>
9036 attribute.
9037
9038 Note that the type of all differencing hard disks is
9039 <link to="HardDiskType_Normal" />; all other values are
9040 meaningless for them. Base hard disks may be of any type.
9041
9042 <h3>Creating Hard Disks</h3>
9043
9044 New base hard disks are created using
9045 <link to="IVirtualBox::createHardDisk"/>. Existing hard disks are
9046 opened using <link to="IVirtualBox::openHardDisk"/>. Differencing hard
9047 disks are usually implicitly created by VirtualBox when needed but may
9048 also be created explicitly using <link to="#createDiffStorage"/>.
9049
9050 After the hard disk is successfully created (including the storage unit)
9051 or opened, it becomes a known hard disk (remembered in the internal media
9052 registry). Known hard disks can be attached to a virtual machine, accessed
9053 through <link to="IVirtualBox::getHardDisk"/> and
9054 <link to="IVirtualBox::findHardDisk"/> methods or enumerated using the
9055 <link to="IVirtualBox::hardDisks"/> array (only for base hard disks).
9056
9057 The following methods, besides <link to="IMedium::close"/>,
9058 automatically remove the hard disk from the media registry:
9059 <ul>
9060 <li><link to="#deleteStorage"/></li>
9061 <li><link to="#mergeTo"/></li>
9062 </ul>
9063
9064 If the storage unit of the hard disk is a regular file in the host's
9065 file system then the rules stated in the description of the
9066 <link to="IMedium::location"/> attribute apply when setting its value. In
9067 addition, a plain file name without any path may be given, in which case
9068 the <link to="ISystemProperties::defaultHardDiskFolder"> default hard disk
9069 folder</link> will be prepended to it.
9070
9071 <h4>Automatic composition of the file name part</h4>
9072
9073 Another extension to the <link to="IMedium::location"/> attribute is that
9074 there is a possibility to cause VirtualBox to compose a unique value for
9075 the file name part of the location using the UUID of the hard disk. This
9076 applies only to hard disks in <link to="MediaState_NotCreated"/> state,
9077 e.g. before the storage unit is created, and works as follows. You set the
9078 value of the <link to="IMedium::location"/> attribute to a location
9079 specification which only contains the path specification but not the file
9080 name part and ends with either a forward slash or a backslash character.
9081 In response, VirtualBox will generate a new UUID for the hard disk and
9082 compose the file name using the following pattern:
9083 <pre>
9084 &lt;path&gt;/{&lt;uuid&gt;}.&lt;ext&gt;
9085 </pre>
9086 where <tt>&lt;path&gt;</tt> is the supplied path specification,
9087 <tt>&lt;uuid&gt;</tt> is the newly generated UUID and <tt>&lt;ext&gt;</tt>
9088 is the default extension for the storage format of this hard disk. After
9089 that, you may call any of the methods that create a new hard disk storage
9090 unit and they will use the generated UUID and file name.
9091
9092 <h3>Attaching Hard Disks</h3>
9093
9094 Hard disks are attached to virtual machines using the
9095 <link to="IMachine::attachHardDisk"/> method and detached using the
9096 <link to="IMachine::detachHardDisk"/> method. Depending on their
9097 <link to="#type"/>, hard disks are attached either
9098 <i>directly</i> or <i>indirectly</i>.
9099
9100 When a hard disk is being attached directly, it is associated with the
9101 virtual machine and used for hard disk operations when the machine is
9102 running. When a hard disk is being attached indirectly, a new differencing
9103 hard disk linked to it is implicitly created and this differencing hard
9104 disk is associated with the machine and used for hard disk operations.
9105 This also means that if <link to="IMachine::attachHardDisk"/> performs
9106 a direct attachment then the same hard disk will be returned in response
9107 to the subsequent <link to="IMachine::getHardDisk"/> call; however if
9108 an indirect attachment is performed then
9109 <link to="IMachine::getHardDisk"/> will return the implicitly created
9110 differencing hard disk, not the original one passed to <link
9111 to="IMachine::attachHardDisk"/>. The following table shows the
9112 dependency of the attachment type on the hard disk type:
9113
9114 <table>
9115 <tr>
9116 <th>Hard Disk Type</th>
9117 <th>Direct or Indirect?</th>
9118 </tr>
9119 <tr>
9120 <td>Normal (Base)</td>
9121 <td>
9122 Normal base hard disks that do not have children (i.e. differencing
9123 hard disks linked to them) and that are not already attached to
9124 virtual machines in snapshots are attached <b>directly</b>.
9125 Otherwise, they are attached <b>indirectly</b> because having
9126 dependent children or being part of the snapshot makes it impossible
9127 to modify hard disk contents without breaking the integrity of the
9128 dependent party. The <link to="#readOnly"/> attribute allows to
9129 quickly determine the kind of the attachment for the given hard
9130 disk. Note that if a normal base hard disk is to be indirectly
9131 attached to a virtual machine with snapshots then a special
9132 procedure called <i>smart attachment</i> is performed (see below).
9133 </td>
9134 </tr>
9135 <tr>
9136 <td>Normal (Differencing)</td>
9137 <td>
9138 Differencing hard disks are like normal base hard disks: attached
9139 <b>directly</b> if they do not have children and are not attached to
9140 virtual machines in snapshots, and <b>indirectly</b> otherwise. Note
9141 that the smart attachment procedure is never performed for
9142 differencing hard disks.
9143 </td>
9144 </tr>
9145 <tr>
9146 <td>Immutable</td>
9147 <td>
9148 Immutable hard disks are always attached <b>indirectly</b> because
9149 they are designed to be non-writable. If an immutable hard disk is
9150 attached to a virtual machine with snapshots then a special
9151 procedure called smart attachment is performed (see below).
9152 </td>
9153 </tr>
9154 <tr>
9155 <td>Writethrough</td>
9156 <td>
9157 Writethrough hard disks are always attached <b>directly</b>, also as
9158 designed. This also means that writethrough hard disks cannot have
9159 other hard disks linked to them at all.
9160 </td>
9161 </tr>
9162 </table>
9163
9164 Note that the same hard disk, regardless of its type, may be attached to
9165 more than one virtual machine at a time. In this case, the machine that is
9166 started first gains exclusive access to the hard disk and attempts to
9167 start other machines having this hard disk attached will fail until the
9168 first machine is powered down.
9169
9170 Detaching hard disks is performed in a <i>deferred</i> fashion. This means
9171 that the given hard disk remains associated with the given machine after a
9172 successful <link to="IMachine::detachHardDisk"/> call until
9173 <link to="IMachine::saveSettings"/> is called to save all changes to
9174 machine settings to disk. This deferring is necessary to guarantee that
9175 the hard disk configuration may be restored at any time by a call to
9176 <link to="IMachine::discardSettings"/> before the settings
9177 are saved (committed).
9178
9179 Note that if <link to="IMachine::discardSettings"/> is called after
9180 indirectly attaching some hard disks to the machine but before a call to
9181 <link to="IMachine::saveSettings"/> is made, it will implicitly delete
9182 all differencing hard disks implicitly created by
9183 <link to="IMachine::attachHardDisk"/> for these indirect attachments.
9184 Such implicitly created hard disks will also be immediately deleted when
9185 detached explicitly using the <link to="IMachine::detachHardDisk"/>
9186 call if it is made before <link to="IMachine::saveSettings"/>. This
9187 implicit deletion is safe because newly created differencing hard
9188 disks do not contain any user data.
9189
9190 However, keep in mind that detaching differencing hard disks that were
9191 implicitly created by <link to="IMachine::attachHardDisk"/>
9192 before the last <link to="IMachine::saveSettings"/> call will
9193 <b>not</b> implicitly delete them as they may already contain some data
9194 (for example, as a result of virtual machine execution). If these hard
9195 disks are no more necessary, the caller can always delete them explicitly
9196 using <link to="#deleteStorage"/> after they are actually de-associated
9197 from this machine by the <link to="IMachine::saveSettings"/> call.
9198
9199 <h3>Smart Attachment</h3>
9200
9201 When normal base or immutable hard disks are indirectly attached to a
9202 virtual machine then some additional steps are performed to make sure the
9203 virtual machine will have the most recent "view" of the hard disk being
9204 attached. These steps include walking through the machine's snapshots
9205 starting from the current one and going through ancestors up to the first
9206 snapshot. Hard disks attached to the virtual machine in all
9207 of the encountered snapshots are checked whether they are descendants of
9208 the given normal base or immutable hard disk. The first found child (which
9209 is the differencing hard disk) will be used instead of the normal base or
9210 immutable hard disk as a parent for creating a new differencing hard disk
9211 that will be actually attached to the machine. And only if no descendants
9212 are found or if the virtual machine does not have any snapshots then the
9213 normal base or immutable hard disk will be used itself as a parent for
9214 this differencing hard disk.
9215
9216 It is easier to explain what smart attachment does using the
9217 following example:
9218 <pre>
9219BEFORE attaching B.vdi: AFTER attaching B.vdi:
9220
9221Snapshot 1 (B.vdi) Snapshot 1 (B.vdi)
9222 Snapshot 2 (D1->B.vdi) Snapshot 2 (D1->B.vdi)
9223 Snapshot 3 (D2->D1.vdi) Snapshot 3 (D2->D1.vdi)
9224 Snapshot 4 (none) Snapshot 4 (none)
9225 CurState (none) CurState (D3->D2.vdi)
9226
9227 NOT
9228 ...
9229 CurState (D3->B.vdi)
9230 </pre>
9231 The first column is the virtual machine configuration before the base hard
9232 disk <tt>B.vdi</tt> is attached, the second column shows the machine after
9233 this hard disk is attached. Constructs like <tt>D1->B.vdi</tt> and similar
9234 mean that the hard disk that is actually attached to the machine is a
9235 differencing hard disk, <tt>D1.vdi</tt>, which is linked to (based on)
9236 another hard disk, <tt>B.vdi</tt>.
9237
9238 As we can see from the example, the hard disk <tt>B.vdi</tt> was detached
9239 from the machine before taking Snapshot 4. Later, after Snapshot 4 was
9240 taken, the user decides to attach <tt>B.vdi</tt> again. <tt>B.vdi</tt> has
9241 dependent child hard disks (<tt>D1.vdi</tt>, <tt>D2.vdi</tt>), therefore
9242 it cannot be attached directly and needs an indirect attachment (i.e.
9243 implicit creation of a new differencing hard disk). Due to the smart
9244 attachment procedure, the new differencing hard disk
9245 (<tt>D3.vdi</tt>) will be based on <tt>D2.vdi</tt>, not on
9246 <tt>B.vdi</tt> itself, since <tt>D2.vdi</tt> is the most recent view of
9247 <tt>B.vdi</tt> existing for this snapshot branch of the given virtual
9248 machine.
9249
9250 Note that if there is more than one descendant hard disk of the given base
9251 hard disk found in a snapshot, and there is an exact device, channel and
9252 bus match, then this exact match will be used. Otherwise, the youngest
9253 descendant will be picked up.
9254
9255 There is one more important aspect of the smart attachment procedure which
9256 is not related to snapshots at all. Before walking through the snapshots
9257 as described above, the backup copy of the current list of hard disk
9258 attachment is searched for descendants. This backup copy is created when
9259 the hard disk configuration is changed for the first time after the last
9260 <link to="IMachine::saveSettings"/> call and used by
9261 <link to="IMachine::discardSettings"/> to undo the recent hard disk
9262 changes. When such a descendant is found in this backup copy, it will be
9263 simply re-attached back, without creating a new differencing hard disk for
9264 it. This optimization is necessary to make it possible to re-attach the
9265 base or immutable hard disk to a different bus, channel or device slot
9266 without losing the contents of the differencing hard disk actually
9267 attached to the machine in place of it.
9268 </desc>
9269
9270 <attribute name="format" type="wstring" readonly="yes">
9271 <desc>
9272 Storage format of this hard disk.
9273
9274 The value of this attribute is a string that specifies a backend used to
9275 store hard disk data. The storage format is defined when you create a
9276 new hard disk or automatically detected when you open an existing hard
9277 disk medium, and cannot be changed later.
9278
9279 The list of all storage formats supported by this VirtualBox
9280 installation can be obtained using
9281 <link to="ISystemProperties::hardDiskFormats"/>.
9282 </desc>
9283 </attribute>
9284
9285 <attribute name="type" type="HardDiskType">
9286 <desc>
9287 Type (role) of this hard disk.
9288
9289 The following constraints apply when changing the value of this
9290 attribute:
9291 <ul>
9292 <li>If a hard disk is attached to a virtual machine (either in the
9293 current state or in one of the snapshots), its type cannot be
9294 changed.
9295 </li>
9296 <li>As long as the hard disk has children, its type cannot be set
9297 to <link to="HardDiskType_Writethrough"/>.
9298 </li>
9299 <li>The type of all differencing hard disks is
9300 <link to="HardDiskType_Normal"/> and cannot be changed.
9301 </li>
9302 </ul>
9303
9304 The type of a newly created or opened hard disk is set to
9305 <link to="HardDiskType_Normal"/>.
9306 </desc>
9307 </attribute>
9308
9309 <attribute name="parent" type="IHardDisk" readonly="yes">
9310 <desc>
9311 Parent of this hard disk (a hard disk this hard disk is directly based
9312 on).
9313
9314 Only differencing hard disks have parents. For base (non-differencing)
9315 hard disks, @c null is returned.
9316 </desc>
9317 </attribute>
9318
9319 <attribute name="children" type="IHardDisk" safearray="yes" readonly="yes">
9320 <desc>
9321 Children of this hard disk (all differencing hard disks directly based
9322 on this hard disk). A @c null array is returned if this hard disk
9323 does not have any children.
9324 </desc>
9325 </attribute>
9326
9327 <attribute name="root" type="IHardDisk" readonly="yes">
9328 <desc>
9329 Root hard disk of this hard disk.
9330
9331 If this is a differencing hard disk, its root hard disk is the base hard
9332 disk the given hard disk branch starts from. For all other types of hard
9333 disks, this property returns the hard disk object itself (i.e. the same
9334 object this property is read on).
9335 </desc>
9336 </attribute>
9337
9338 <attribute name="readOnly" type="boolean" readonly="yes">
9339 <desc>
9340 Returns @c true if this hard disk is read-only and @c false otherwise.
9341
9342 A hard disk is considered to be read-only when its contents cannot be
9343 modified without breaking the integrity of other parties that depend on
9344 this hard disk such as its child hard disks or snapshots of virtual
9345 machines where this hard disk is attached to these machines. If there
9346 are no children and no such snapshots then there is no dependency and
9347 the hard disk is not read-only.
9348
9349 The value of this attribute can be used to determine the kind of the
9350 attachment that will take place when attaching this hard disk to a
9351 virtual machine. If the value is @c false then the hard disk will
9352 be attached directly. If the value is @c true then the hard disk
9353 will be attached indirectly by creating a new differencing child hard
9354 disk for that. See the interface description for more information.
9355
9356 Note that all <link to="HardDiskType_Immutable">Immutable</link> hard
9357 disks are always read-only while all
9358 <link to="HardDiskType_Writethrough">Writethrough</link> hard disks are
9359 always not.
9360
9361 <note>
9362 The read-only condition represented by this attribute is related to
9363 the hard disk type and usage, not to the current
9364 <link to="IMedium::state">media state</link> and not to the read-only
9365 state of the storage unit.
9366 </note>
9367 </desc>
9368 </attribute>
9369
9370 <attribute name="logicalSize" type="unsigned long long" readonly="yes">
9371 <desc>
9372 Logical size of this hard disk (in megabytes), as reported to the
9373 guest OS running inside the virtual machine this disk is
9374 attached to. The logical size is defined when the hard disk is created
9375 and cannot be changed later.
9376
9377 <note>
9378 Reading this property on a differencing hard disk will return the size
9379 of its <link to="#root"/> hard disk.
9380 </note>
9381 <note>
9382 For hard disks whose state is <link to="#state"/> is <link
9383 to="MediaState_Inaccessible"/>, the value of this property is the
9384 last known logical size. For <link to="MediaState_NotCreated"/> hard
9385 disks, the returned value is zero.
9386 </note>
9387 </desc>
9388 </attribute>
9389
9390 <attribute name="autoReset" type="boolean">
9391 <desc>
9392 Whether this differencing hard disk will be automatically reset each
9393 time a virtual machine it is attached to is powered up.
9394
9395 See <link to="#reset()"/> for more information about resetting
9396 differencing hard disks.
9397
9398 <note>
9399 Reading this property on a base (non-differencing) hard disk will
9400 always @c false. Changing the value of this property in this
9401 case is not supported.
9402 </note>
9403
9404 <result name="VBOX_E_NOT_SUPPORTED">
9405 This is not a differencing hard disk (when changing the attribute
9406 value).
9407 </result>
9408 </desc>
9409 </attribute>
9410
9411 <!-- storage methods -->
9412
9413 <method name="getProperty">
9414 <desc>
9415 Returns the value of the custom hard disk property with the given name.
9416
9417 The list of all properties supported by the given hard disk format can
9418 be obtained with <link to="IHardDiskFormat::describeProperties"/>.
9419
9420 Note that if this method returns an empty string in @a value, the
9421 requested property is supported but currently not assigned any value.
9422
9423 <result name="VBOX_E_OBJECT_NOT_FOUND">
9424 Requested property does not exist (not supported by the format).
9425 </result>
9426 <result name="E_INVALIDARG">@a name is @c null or empty.</result>
9427 </desc>
9428 <param name="name" type="wstring" dir="in">
9429 <desc>Name of the property to get.</desc>
9430 </param>
9431 <param name="value" type="wstring" dir="return">
9432 <desc>Current property value.</desc>
9433 </param>
9434 </method>
9435
9436 <method name="setProperty">
9437 <desc>
9438 Sets the value of the custom hard disk property with the given name.
9439
9440 The list of all properties supported by the given hard disk format can
9441 be obtained with <link to="IHardDiskFormat::describeProperties"/>.
9442
9443 Note that setting the property value to @c null or an empty string is
9444 equivalent to deleting the existing value. A default value (if it is
9445 defined for this property) will be used by the format backend in this
9446 case.
9447
9448 <result name="VBOX_E_OBJECT_NOT_FOUND">
9449 Requested property does not exist (not supported by the format).
9450 </result>
9451 <result name="E_INVALIDARG">@a name is @c null or empty.</result>
9452 </desc>
9453 <param name="name" type="wstring" dir="in">
9454 <desc>Name of the property to set.</desc>
9455 </param>
9456 <param name="value" type="wstring" dir="in">
9457 <desc>Property value to set.</desc>
9458 </param>
9459 </method>
9460
9461 <method name="getProperties">
9462 <desc>
9463 Returns values for a group of properties in one call.
9464
9465 The names of the properties to get are specified using the @a names
9466 argument which is a list of comma-separated property names or
9467 an empty string if all properties are to be returned. Note that currently
9468 the value of this argument is ignored and the method always returns all
9469 existing properties.
9470
9471 The list of all properties supported by the given hard disk format can
9472 be obtained with <link to="IHardDiskFormat::describeProperties"/>.
9473
9474 The method returns two arrays, the array of property names corresponding
9475 to the @a names argument and the current values of these properties.
9476 Both arrays have the same number of elements with each elemend at the
9477 given index in the first array corresponds to an element at the same
9478 index in the second array.
9479
9480 Note that for properties that do not have assigned values,
9481 an empty string is returned at the appropriate index in the
9482 @a returnValues array.
9483
9484 </desc>
9485 <param name="names" type="wstring" dir="in">
9486 <desc>
9487 Names of properties to get.
9488 </desc>
9489 </param>
9490 <param name="returnNames" type="wstring" safearray="yes" dir="out">
9491 <desc>Names of returned properties.</desc>
9492 </param>
9493 <param name="returnValues" type="wstring" safearray="yes" dir="return">
9494 <desc>Values of returned properties.</desc>
9495 </param>
9496 </method>
9497
9498 <method name="setProperties">
9499 <desc>
9500 Sets values for a group of properties in one call.
9501
9502 The names of the properties to set are passed in the @a names
9503 array along with the new values for them in the @a values array. Both
9504 arrays have the same number of elements with each elemend at the given
9505 index in the first array corresponding to an element at the same index
9506 in the second array.
9507
9508 If there is at least one property name in @a names that is not valid,
9509 the method will fail before changing the values of any other properties
9510 from the @a names array.
9511
9512 Using this method over <link to="#setProperty"/> is preferred if you
9513 need to set several properties at once since it will result into less
9514 IPC calls.
9515
9516 The list of all properties supported by the given hard disk format can
9517 be obtained with <link to="IHardDiskFormat::describeProperties"/>.
9518
9519 Note that setting the property value to @c null or an empty string is
9520 equivalent to deleting the existing value. A default value (if it is
9521 defined for this property) will be used by the format backend in this
9522 case.
9523 </desc>
9524 <param name="names" type="wstring" safearray="yes" dir="in">
9525 <desc>Names of properties to set.</desc>
9526 </param>
9527 <param name="values" type="wstring" safearray="yes" dir="in">
9528 <desc>Values of properties to set.</desc>
9529 </param>
9530 </method>
9531
9532 <!-- storage methods -->
9533
9534 <method name="createBaseStorage">
9535 <desc>
9536 Starts creating a hard disk storage unit (fixed/dynamic, according
9537 to the variant flags) in in the background. The previous storage unit
9538 created for this object, if any, must first be deleted using
9539 <link to="#deleteStorage"/>, otherwise the operation will fail.
9540
9541 Before the operation starts, the hard disk is placed in
9542 <link to="MediaState_Creating"/> state. If the create operation
9543 fails, the media will be placed back in <link to="MediaState_NotCreated"/>
9544 state.
9545
9546 After the returned progress object reports that the operation has
9547 successfully completed, the media state will be set to <link
9548 to="MediaState_Created"/>, the hard disk will be remembered by this
9549 VirtualBox installation and may be attached to virtual machines.
9550
9551 <result name="VBOX_E_NOT_SUPPORTED">
9552 The variant of storage creation operation is not supported. See <link
9553 to="IHardDiskFormat::capabilities"/>.
9554 </result>
9555 </desc>
9556 <param name="logicalSize" type="unsigned long long" dir="in">
9557 <desc>Maximum logical size of the hard disk in megabytes.</desc>
9558 </param>
9559 <param name="variant" type="HardDiskVariant" dir="in">
9560 <desc>Exact image variant which should be created.</desc>
9561 </param>
9562 <param name="progress" type="IProgress" dir="return">
9563 <desc>Progress object to track the operation completion.</desc>
9564 </param>
9565 </method>
9566
9567 <method name="deleteStorage">
9568 <desc>
9569 Starts deleting the storage unit of this hard disk.
9570
9571 The hard disk must not be attached to any known virtual machine and must
9572 not have any known child hard disks, otherwise the operation will fail.
9573 It will also fail if there is no storage unit to delete or if deletion
9574 is already in progress, or if the hard disk is being in use (locked for
9575 read or for write) or inaccessible. Therefore, the only valid state for
9576 this operation to succeed is <link to="MediaState_Created"/>.
9577
9578 Before the operation starts, the hard disk is placed to
9579 <link to="MediaState_Deleting"/> state and gets removed from the list
9580 of remembered hard disks (media registry). If the delete operation
9581 fails, the media will be remembered again and placed back to
9582 <link to="MediaState_Created"/> state.
9583
9584 After the returned progress object reports that the operation is
9585 complete, the media state will be set to
9586 <link to="MediaState_NotCreated"/> and you will be able to use one of
9587 the storage creation methods to create it again.
9588
9589 <see>#close()</see>
9590
9591 <result name="VBOX_E_OBJECT_IN_USE">
9592 Hard disk is attached to a virtual machine.
9593 </result>
9594 <result name="VBOX_E_NOT_SUPPORTED">
9595 Storage deletion is not allowed because neither of storage creation
9596 operations are supported. See
9597 <link to="IHardDiskFormat::capabilities"/>.
9598 </result>
9599
9600 <note>
9601 If the deletion operation fails, it is not guaranteed that the storage
9602 unit still exists. You may check the <link to="IMedium::state"/> value
9603 to answer this question.
9604 </note>
9605 </desc>
9606 <param name="progress" type="IProgress" dir="return">
9607 <desc>Progress object to track the operation completion.</desc>
9608 </param>
9609 </method>
9610
9611 <!-- diff methods -->
9612
9613 <method name="createDiffStorage">
9614 <desc>
9615 Starts creating an empty differencing storage unit based on this hard
9616 disk in the format and at the location defined by the @a target
9617 argument.
9618
9619 The target hard disk must be in <link to="MediaState_NotCreated"/>
9620 state (i.e. must not have an existing storage unit). Upon successful
9621 completion, this operation will set the type of the target hard disk to
9622 <link to="HardDiskType_Normal"/> and create a storage unit necessary to
9623 represent the differencing hard disk data in the given format (according
9624 to the storage format of the target object).
9625
9626 After the returned progress object reports that the operation is
9627 successfully complete, the target hard disk gets remembered by this
9628 VirtualBox installation and may be attached to virtual machines.
9629
9630 <note>
9631 The hard disk will be set to <link to="MediaState_LockedRead"/>
9632 state for the duration of this operation.
9633 </note>
9634 <result name="VBOX_E_OBJECT_IN_USE">
9635 Hard disk not in @c NotCreated state.
9636 </result>
9637 </desc>
9638 <param name="target" type="IHardDisk" dir="in">
9639 <desc>Target hard disk.</desc>
9640 </param>
9641 <param name="variant" type="HardDiskVariant" dir="in">
9642 <desc>Exact image variant which should be created.</desc>
9643 </param>
9644 <param name="progress" type="IProgress" dir="return">
9645 <desc>Progress object to track the operation completion.</desc>
9646 </param>
9647 </method>
9648
9649 <method name="mergeTo">
9650 <desc>
9651 Starts merging the contents of this hard disk and all intermediate
9652 differencing hard disks in the chain to the given target hard disk.
9653
9654 The target hard disk must be either a descendant of this hard disk or
9655 its ancestor (otherwise this method will immediately return a failure).
9656 It follows that there are two logical directions of the merge operation:
9657 from ancestor to descendant (<i>forward merge</i>) and from descendant to
9658 ancestor (<i>backward merge</i>). Let us consider the following hard disk
9659 chain:
9660
9661 <pre>Base &lt;- Diff_1 &lt;- Diff_2</pre>
9662
9663 Here, calling this method on the <tt>Base</tt> hard disk object with
9664 <tt>Diff_2</tt> as an argument will be a forward merge; calling it on
9665 <tt>Diff_2</tt> with <tt>Base</tt> as an argument will be a backward
9666 merge. Note that in both cases the contents of the resulting hard disk
9667 will be the same, the only difference is the hard disk object that takes
9668 the result of the merge operation. In case of the forward merge in the
9669 above example, the result will be written to <tt>Diff_2</tt>; in case of
9670 the backward merge, the result will be written to <tt>Base</tt>. In
9671 other words, the result of the operation is always stored in the target
9672 hard disk.
9673
9674 Upon successful operation completion, the storage units of all hard
9675 disks in the chain between this (source) hard disk and the target hard
9676 disk, including the source hard disk itself, will be automatically
9677 deleted and the relevant hard disk objects (including this hard disk)
9678 will become uninitialized. This means that any attempt to call any of
9679 their methods or attributes will fail with the
9680 <tt>"Object not ready" (E_ACCESSDENIED)</tt> error. Applied to the above
9681 example, the forward merge of <tt>Base</tt> to <tt>Diff_2</tt> will
9682 delete and uninitialize both <tt>Base</tt> and <tt>Diff_1</tt> hard
9683 disks. Note that <tt>Diff_2</tt> in this case will become a base hard
9684 disk itself since it will no longer be based on any other hard disk.
9685
9686 Considering the above, all of the following conditions must be met in
9687 order for the merge operation to succeed:
9688 <ul>
9689 <li>
9690 Neither this (source) hard disk nor any intermediate
9691 differencing hard disk in the chain between it and the target
9692 hard disk is attached to any virtual machine.
9693 </li>
9694 <li>
9695 Neither the source hard disk nor the target hard disk is an
9696 <link to="HardDiskType_Immutable"/> hard disk.
9697 </li>
9698 <li>
9699 The part of the hard disk tree from the source hard disk to the
9700 target hard disk is a linear chain, i.e. all hard disks in this
9701 chain have exactly one child which is the next hard disk in this
9702 chain. The only exception from this rule is the target hard disk in
9703 the forward merge operation; it is allowed to have any number of
9704 child hard disks because the merge operation will hot change its
9705 logical contents (as it is seen by the guest OS or by children).
9706 </li>
9707 <li>
9708 None of the involved hard disks are in
9709 <link to="MediaState_LockedRead"/> or
9710 <link to="MediaState_LockedWrite"/> state.
9711 </li>
9712 </ul>
9713
9714 <note>
9715 This (source) hard disk and all intermediates will be placed to <link
9716 to="MediaState_Deleting"/> state and the target hard disk will be
9717 placed to <link to="MediaState_LockedWrite"/> state and for the
9718 duration of this operation.
9719 </note>
9720 </desc>
9721 <param name="targetId" type="wstring" dir="in">
9722 <desc>UUID of the target ancestor or descendant hard disk.</desc>
9723 </param>
9724 <param name="progress" type="IProgress" dir="return">
9725 <desc>Progress object to track the operation completion.</desc>
9726 </param>
9727 </method>
9728
9729 <!-- clone method -->
9730
9731 <method name="cloneTo">
9732 <desc>
9733 Starts creating a clone of this hard disk in the format and at the
9734 location defined by the @a target argument.
9735
9736 The target hard disk must be either in <link to="MediaState_NotCreated"/>
9737 state (i.e. must not have an existing storage unit) or in
9738 <link to="MediaState_Created"/> state (i.e. created and not locked, and
9739 big enough to hold the data or else the copy will be partial). Upon
9740 successful completion, the cloned hard disk will contain exactly the
9741 same sector data as the hard disk being cloned, except that in the
9742 first case a new UUID for the clone will be randomly generated, and in
9743 the second case the UUID will remain unchanged.
9744
9745 The @a parent argument defines which hard disk will be the parent
9746 of the clone. Passing a @c null reference indicates that the clone will
9747 be a base image, i.e. completely independent. It is possible to specify
9748 an arbitrary hard disk for this parameter, including the parent of the
9749 hard disk which is being cloned. Even cloning to a child of the source
9750 hard disk is possible.
9751
9752 After the returned progress object reports that the operation is
9753 successfully complete, the target hard disk gets remembered by this
9754 VirtualBox installation and may be attached to virtual machines.
9755
9756 <note>
9757 This hard disk will be placed to <link to="MediaState_LockedRead"/>
9758 state for the duration of this operation.
9759 </note>
9760 <result name="E_NOTIMPL">
9761 The specified cloning variant is not supported at the moment.
9762 </result>
9763 </desc>
9764 <param name="target" type="IHardDisk" dir="in">
9765 <desc>Target hard disk.</desc>
9766 </param>
9767 <param name="variant" type="HardDiskVariant" dir="in">
9768 <desc>Exact image variant which should be created.</desc>
9769 </param>
9770 <param name="parent" type="IHardDisk" dir="in">
9771 <desc>Parent of the cloned hard disk.</desc>
9772 </param>
9773 <param name="progress" type="IProgress" dir="return">
9774 <desc>Progress object to track the operation completion.</desc>
9775 </param>
9776 </method>
9777
9778 <!-- other methods -->
9779
9780 <method name="compact">
9781 <desc>
9782 Starts compacting of this hard disk. This means that the disk is
9783 transformed into a possibly more compact storage representation.
9784 This potentially creates temporary images, which can require a
9785 substantial amount of additional disk space.
9786
9787 This hard disk will be placed to <link to="MediaState_LockedWrite"/>
9788 state and all its parent hard disks (if any) will be placed to
9789 <link to="MediaState_LockedRead"/> state for the duration of this
9790 operation.
9791
9792 Please note that the results can be either returned straight away,
9793 or later as the result of the background operation via the object
9794 returned via the @a progress parameter.
9795
9796 <result name="VBOX_E_NOT_SUPPORTED">
9797 Hard disk format does not support compacting (but potentially
9798 needs it).
9799 </result>
9800 </desc>
9801 <param name="progress" type="IProgress" dir="return">
9802 <desc>Progress object to track the operation completion.</desc>
9803 </param>
9804 </method>
9805
9806 <method name="reset">
9807 <desc>
9808 Starts erasing the contents of this differencing hard disk.
9809
9810 This operation will reset the differencing hard disk to its initial
9811 state when it does not contain any sector data and any read operation is
9812 redirected to its parent hard disk.
9813
9814 This hard disk will be placed to <link to="MediaState_LockedWrite"/>
9815 for the duration of this operation.
9816
9817 <result name="VBOX_E_NOT_SUPPORTED">
9818 This is not a differencing hard disk.
9819 </result>
9820 <result name="VBOX_E_INVALID_OBJECT_STATE">
9821 Hard disk is not in <link to="MediaState_Created"/> or
9822 <link to="MediaState_Inaccessible"/> state.
9823 </result>
9824 </desc>
9825 <param name="progress" type="IProgress" dir="return">
9826 <desc>Progress object to track the operation completion.</desc>
9827 </param>
9828 </method>
9829
9830 </interface>
9831
9832
9833 <!--
9834 // IHardDiskFormat
9835 /////////////////////////////////////////////////////////////////////////
9836 -->
9837
9838 <enum
9839 name="DataType"
9840 uuid="d90ea51e-a3f1-4a01-beb1-c1723c0d3ba7"
9841 >
9842 <const name="Int32" value="0"/>
9843 <const name="Int8" value="1"/>
9844 <const name="String" value="2"/>
9845 </enum>
9846
9847 <enum
9848 name="DataFlags"
9849 uuid="86884dcf-1d6b-4f1b-b4bf-f5aa44959d60"
9850 >
9851 <const name="None" value="0x00"/>
9852 <const name="Mandatory" value="0x01"/>
9853 <const name="Expert" value="0x02"/>
9854 <const name="Array" value="0x04"/>
9855 <const name="FlagMask" value="0x07"/>
9856 </enum>
9857
9858 <enum
9859 name="HardDiskFormatCapabilities"
9860 uuid="1df1e4aa-d25a-4ba6-b2a2-02f60eb5903b"
9861 >
9862 <desc>
9863 Hard disk format capability flags.
9864 </desc>
9865
9866 <const name="Uuid" value="0x01">
9867 <desc>
9868 Supports UUIDs as expected by VirtualBox code.
9869 </desc>
9870 </const>
9871
9872 <const name="CreateFixed" value="0x02">
9873 <desc>
9874 Supports creating fixed size images, allocating all space instantly.
9875 </desc>
9876 </const>
9877
9878 <const name="CreateDynamic" value="0x04">
9879 <desc>
9880 Supports creating dynamically growing images, allocating space on
9881 demand.
9882 </desc>
9883 </const>
9884
9885 <const name="CreateSplit2G" value="0x08">
9886 <desc>
9887 Supports creating images split in chunks of a bit less than 2 GBytes.
9888 </desc>
9889 </const>
9890
9891 <const name="Differencing" value="0x10">
9892 <desc>
9893 Supports being used as a format for differencing hard disks (see <link
9894 to="IHardDisk::createDiffStorage"/>).
9895 </desc>
9896 </const>
9897
9898 <const name="Asynchronous" value="0x20">
9899 <desc>
9900 Supports asynchronous I/O operations for at least some configurations.
9901 </desc>
9902 </const>
9903
9904 <const name="File" value="0x40">
9905 <desc>
9906 The format backend operates on files (the <link to="IMedium::location"/>
9907 attribute of the hard disk specifies a file used to store hard disk
9908 data; for a list of supported file extensions see
9909 <link to="IHardDiskFormat::fileExtensions"/>).
9910 </desc>
9911 </const>
9912
9913 <const name="Properties" value="0x80">
9914 <desc>
9915 The format backend uses the property interface to configure the storage
9916 location and properties (the <link to="IHardDiskFormat::describeProperties"/>
9917 method is used to get access to properties supported by the given hard
9918 disk format).
9919 </desc>
9920 </const>
9921
9922 <const name="CapabilityMask" value="0xFF"/>
9923 </enum>
9924
9925 <interface
9926 name="IHardDiskFormat" extends="$unknown"
9927 uuid="7f3ba790-3a0b-4a8a-bac2-bb50150123c5"
9928 wsmap="managed"
9929 >
9930 <desc>
9931 The IHardDiskFormat interface represents a virtual hard disk format.
9932
9933 Each hard disk format has an associated backend which is used to handle
9934 hard disks stored in this format. This interface provides information
9935 about the properties of the associated backend.
9936
9937 Each hard disk format is identified by a string represented by the
9938 <link to="#id"/> attribute. This string is used in calls like
9939 <link to="IVirtualBox::createHardDisk"/> to specify the desired
9940 format.
9941
9942 The list of all supported hard disk formats can be obtained using
9943 <link to="ISystemProperties::hardDiskFormats"/>.
9944
9945 <see>IHardDisk</see>
9946 </desc>
9947
9948 <attribute name="id" type="wstring" readonly="yes">
9949 <desc>
9950 Identifier of this format.
9951
9952 The format identifier is a non-@c null non-empty ASCII string. Note that
9953 this string is case-insensitive. This means that, for example, all of
9954 the following strings:
9955 <pre>
9956 "VDI"
9957 "vdi"
9958 "VdI"</pre>
9959 refer to the same hard disk format.
9960
9961 This string is used in methods of other interfaces where it is necessary
9962 to specify a hard disk format, such as
9963 <link to="IVirtualBox::createHardDisk"/>.
9964 </desc>
9965 </attribute>
9966
9967 <attribute name="name" type="wstring" readonly="yes">
9968 <desc>
9969 Human readable description of this format.
9970
9971 Mainly for use in file open dialogs.
9972 </desc>
9973 </attribute>
9974
9975 <attribute name="fileExtensions" type="wstring" safearray="yes" readonly="yes">
9976 <desc>
9977 Array of strings containing the supported file extensions.
9978
9979 The first extension in the array is the extension preferred by the
9980 backend. It is recommended to use this extension when specifying a
9981 location of the storage unit for a new hard disk.
9982
9983 Note that some backends do not work on files, so this array may be
9984 empty.
9985
9986 <see>IHardDiskFormat::capabilities</see>
9987 </desc>
9988 </attribute>
9989
9990 <attribute name="capabilities" type="unsigned long" readonly="yes">
9991 <desc>
9992 Capabilities of the format as a set of bit flags.
9993
9994 For the meaning of individual capability flags see
9995 <link to="HardDiskFormatCapabilities"/>.
9996 </desc>
9997 </attribute>
9998
9999 <method name="describeProperties">
10000 <desc>
10001 Returns several arrays describing the properties supported by this
10002 format.
10003
10004 An element with the given index in each array describes one
10005 property. Thus, the number of elements in each returned array is the
10006 same and corresponds to the number of supported properties.
10007
10008 The returned arrays are filled in only if the
10009 <link to="HardDiskFormatCapabilities_Properties"/> flag is set.
10010 All arguments must be non-@c null.
10011
10012 <see>DataType</see>
10013 <see>DataFlags</see>
10014 </desc>
10015
10016 <param name="names" type="wstring" safearray="yes" dir="out">
10017 <desc>Array of property names.</desc>
10018 </param>
10019 <param name="description" type="wstring" safearray="yes" dir="out">
10020 <desc>Array of property descriptions.</desc>
10021 </param>
10022 <param name="types" type="DataType" safearray="yes" dir="out">
10023 <desc>Array of property types.</desc>
10024 </param>
10025 <param name="flags" type="unsigned long" safearray="yes" dir="out">
10026 <desc>Array of property flags.</desc>
10027 </param>
10028 <param name="defaults" type="wstring" safearray="yes" dir="out">
10029 <desc>Array of default property values.</desc>
10030 </param>
10031 </method>
10032
10033 </interface>
10034
10035
10036 <!--
10037 // IFloppyImage
10038 /////////////////////////////////////////////////////////////////////////
10039 -->
10040
10041 <interface
10042 name="IFloppyImage" extends="IMedium"
10043 uuid="faa6101f-078c-4b3a-ab75-75670c8170b3"
10044 wsmap="managed"
10045 >
10046 <desc>
10047 The IFloppyImage interface represents a medium containing the image
10048 of a floppy disk. This is a subclass of <link to="IMedium" />; see remarks there.
10049 </desc>
10050
10051 </interface>
10052
10053
10054 <!--
10055 // IDVDImage
10056 /////////////////////////////////////////////////////////////////////////
10057 -->
10058
10059 <interface
10060 name="IDVDImage" extends="IMedium"
10061 uuid="b1f90bbb-e8a9-4484-9af1-3638e943f763"
10062 wsmap="managed"
10063 >
10064 <desc>
10065 The IDVDImage interface represents a medium containing the image
10066 of a CD or DVD disk in the ISO format.
10067
10068 This is a subclass of <link to="IMedium" />; see remarks there.
10069 </desc>
10070
10071 </interface>
10072
10073
10074 <!--
10075 // IDVDDrive
10076 /////////////////////////////////////////////////////////////////////////
10077 -->
10078
10079 <interface
10080 name="IDVDDrive" extends="$unknown"
10081 uuid="156944d1-4c6d-4812-8f12-ab3890767ab4"
10082 wsmap="managed"
10083 >
10084 <desc>
10085 The IDVDDrive interface represents the virtual CD/DVD drive of the
10086 virtual machine. An object of this type is returned by
10087 <link to="IMachine::DVDDrive"/>.
10088 </desc>
10089
10090 <attribute name="state" type="DriveState" readonly="yes">
10091 <desc>Current drive state.</desc>
10092 </attribute>
10093
10094 <attribute name="passthrough" type="boolean">
10095 <desc>
10096 When a host drive is mounted and passthrough is enabled
10097 the guest OS will be able to directly send SCSI commands to
10098 the host drive. This enables the guest OS to use CD/DVD writers
10099 but is potentially dangerous.
10100 </desc>
10101 </attribute>
10102
10103 <method name="mountImage">
10104 <desc>Mounts a CD/DVD image with the specified UUID.
10105
10106 <result name="VBOX_E_FILE_ERROR">
10107 Invalid image file location.
10108 </result>
10109 <result name="VBOX_E_OBJECT_NOT_FOUND">
10110 Could not find a CD/DVD image matching @a imageId.
10111 </result>
10112 <result name="VBOX_E_INVALID_OBJECT_STATE">
10113 Invalid media state.
10114 </result>
10115
10116 </desc>
10117 <param name="imageId" type="wstring" dir="in"/>
10118 </method>
10119
10120 <method name="captureHostDrive">
10121 <desc>Captures the specified host CD/DVD drive.</desc>
10122 <param name="drive" type="IHostDVDDrive" dir="in"/>
10123 </method>
10124
10125 <method name="unmount">
10126 <desc>Unmounts the currently mounted image or host drive.</desc>
10127 </method>
10128
10129 <method name="getImage">
10130 <desc>Returns the currently mounted CD/DVD image.</desc>
10131 <param name="image" type="IDVDImage" dir="return"/>
10132 </method>
10133
10134 <method name="getHostDrive">
10135 <desc>Returns the currently mounted host CD/DVD drive.</desc>
10136 <param name="drive" type="IHostDVDDrive" dir="return"/>
10137 </method>
10138
10139 </interface>
10140
10141
10142 <!--
10143 // IFloppyDrive
10144 /////////////////////////////////////////////////////////////////////////
10145 -->
10146
10147 <interface
10148 name="IFloppyDrive" extends="$unknown"
10149 uuid="a8676d38-5cf0-4b53-85b1-aa693611ab86"
10150 wsmap="managed"
10151 >
10152 <desc>
10153 The IFloppyDrive interface represents the virtual floppy drive of the
10154 virtual machine. An object of this type is returned by
10155 <link to="IMachine::floppyDrive" />.
10156 </desc>
10157
10158 <attribute name="enabled" type="boolean">
10159 <desc>
10160 Flag whether the floppy drive is enabled. If it is disabled,
10161 the floppy drive will not be reported to the guest OS.
10162 </desc>
10163 </attribute>
10164
10165 <attribute name="state" type="DriveState" readonly="yes">
10166 <desc>Current drive state.</desc>
10167 </attribute>
10168
10169 <method name="mountImage">
10170 <desc>Mounts a floppy image with the specified UUID.
10171
10172 <result name="VBOX_E_FILE_ERROR">
10173 Invalid image file location.
10174 </result>
10175 <result name="VBOX_E_OBJECT_NOT_FOUND">
10176 Could not find a floppy image matching @a imageID.
10177 </result>
10178 <result name="VBOX_E_INVALID_OBJECT_STATE">
10179 Invalid media state.
10180 </result>
10181
10182 </desc>
10183 <param name="imageId" type="wstring" dir="in"/>
10184 </method>
10185
10186 <method name="captureHostDrive">
10187 <desc>Captures the specified host floppy drive.</desc>
10188 <param name="drive" type="IHostFloppyDrive" dir="in"/>
10189 </method>
10190
10191 <method name="unmount">
10192 <desc>Unmounts the currently mounted image or host drive.</desc>
10193 </method>
10194
10195 <method name="getImage">
10196 <desc>Returns the currently mounted floppy image.</desc>
10197 <param name="image" type="IFloppyImage" dir="return"/>
10198 </method>
10199
10200 <method name="getHostDrive">
10201 <desc>Returns the currently mounted host floppy drive.</desc>
10202 <param name="drive" type="IHostFloppyDrive" dir="return"/>
10203 </method>
10204
10205 </interface>
10206
10207
10208 <!--
10209 // IKeyboard
10210 /////////////////////////////////////////////////////////////////////////
10211 -->
10212
10213 <interface
10214 name="IKeyboard" extends="$unknown"
10215 uuid="2d1a531b-4c6e-49cc-8af6-5c857b78b5d7"
10216 wsmap="managed"
10217 >
10218 <desc>
10219 The IKeyboard interface represents the virtual machine's keyboard. Used
10220 in <link to="IConsole::keyboard"/>.
10221
10222 Use this interface to send keystrokes or the Ctrl-Alt-Del sequence
10223 to the virtual machine.
10224
10225 </desc>
10226 <method name="putScancode">
10227 <desc>Sends a scancode to the keyboard.
10228
10229 <result name="VBOX_E_IPRT_ERROR">
10230 Could not send scan code to virtual keyboard.
10231 </result>
10232
10233 </desc>
10234 <param name="scancode" type="long" dir="in"/>
10235 </method>
10236
10237 <method name="putScancodes">
10238 <desc>Sends an array of scancodes to the keyboard.
10239
10240 <result name="VBOX_E_IPRT_ERROR">
10241 Could not send all scan codes to virtual keyboard.
10242 </result>
10243
10244 </desc>
10245 <param name="scancodes" type="long" dir="in" safearray="yes"/>
10246 <param name="codesStored" type="unsigned long" dir="return"/>
10247 </method>
10248
10249 <method name="putCAD">
10250 <desc>Sends the Ctrl-Alt-Del sequence to the keyboard. This
10251 function is nothing special, it is just a convenience function
10252 calling <link to="IKeyboard::putScancodes"/> with the proper scancodes.
10253
10254 <result name="VBOX_E_IPRT_ERROR">
10255 Could not send all scan codes to virtual keyboard.
10256 </result>
10257
10258 </desc>
10259 </method>
10260
10261 </interface>
10262
10263
10264 <!--
10265 // IMouse
10266 /////////////////////////////////////////////////////////////////////////
10267 -->
10268
10269 <enum
10270 name="MouseButtonState"
10271 uuid="03131722-2EC5-4173-9794-0DACA46673EF"
10272 >
10273 <desc>
10274 Mouse button state.
10275 </desc>
10276
10277 <const name="LeftButton" value="0x01"/>
10278 <const name="RightButton" value="0x02"/>
10279 <const name="MiddleButton" value="0x04"/>
10280 <const name="WheelUp" value="0x08"/>
10281 <const name="WheelDown" value="0x10"/>
10282 <const name="MouseStateMask" value="0x1F"/>
10283 </enum>
10284
10285 <interface
10286 name="IMouse" extends="$unknown"
10287 uuid="FD443EC1-0006-4F5B-9282-D72760A66916"
10288 wsmap="managed"
10289 >
10290 <desc>
10291 The IMouse interface represents the virtual machine's mouse. Used in
10292 <link to="IConsole::mouse"/>.
10293
10294 Through this interface, the virtual machine's virtual mouse can be
10295 controlled.
10296 </desc>
10297
10298 <attribute name="absoluteSupported" type="boolean" readonly="yes">
10299 <desc>
10300 Whether the guest OS supports absolute mouse pointer positioning
10301 or not.
10302 <note>
10303 VirtualBox Guest Tools need to be installed to the guest OS
10304 in order to enable absolute mouse positioning support.
10305 You can use the <link to="IConsoleCallback::onMouseCapabilityChange"/>
10306 callback to be instantly informed about changes of this attribute
10307 during virtual machine execution.
10308 </note>
10309 <see><link to="#putMouseEventAbsolute"/></see>
10310 </desc>
10311 </attribute>
10312
10313 <method name="putMouseEvent">
10314 <desc>
10315 Initiates a mouse event using relative pointer movements
10316 along x and y axis.
10317
10318 <result name="E_ACCESSDENIED">
10319 Console not powered up.
10320 </result>
10321 <result name="VBOX_E_IPRT_ERROR">
10322 Could not send mouse event to virtual mouse.
10323 </result>
10324
10325 </desc>
10326
10327 <param name="dx" type="long" dir="in">
10328 <desc>
10329 Amount of pixels the mouse should move to the right.
10330 Negative values move the mouse to the left.
10331 </desc>
10332 </param>
10333 <param name="dy" type="long" dir="in">
10334 <desc>
10335 Amount of pixels the mouse should move downwards.
10336 Negative values move the mouse upwards.
10337 </desc>
10338 </param>
10339 <param name="dz" type="long" dir="in">
10340 <desc>
10341 Amount of mouse wheel moves.
10342 Positive values describe clockwise wheel rotations,
10343 negative values describe counterclockwise rotations.
10344 </desc>
10345 </param>
10346 <param name="buttonState" type="long" dir="in">
10347 <desc>
10348 The current state of mouse buttons. Every bit represents
10349 a mouse button as follows:
10350 <table>
10351 <tr><td>Bit 0 (<tt>0x01</tt>)</td><td>left mouse button</td></tr>
10352 <tr><td>Bit 1 (<tt>0x02</tt>)</td><td>right mouse button</td></tr>
10353 <tr><td>Bit 2 (<tt>0x04</tt>)</td><td>middle mouse button</td></tr>
10354 </table>
10355 A value of <tt>1</tt> means the corresponding button is pressed.
10356 otherwise it is released.
10357 </desc>
10358 </param>
10359 </method>
10360
10361 <method name="putMouseEventAbsolute">
10362 <desc>
10363 Positions the mouse pointer using absolute x and y coordinates.
10364 These coordinates are expressed in pixels and
10365 start from <tt>[1,1]</tt> which corresponds to the top left
10366 corner of the virtual display.
10367
10368 <result name="E_ACCESSDENIED">
10369 Console not powered up.
10370 </result>
10371 <result name="VBOX_E_IPRT_ERROR">
10372 Could not send mouse event to virtual mouse.
10373 </result>
10374
10375 <note>
10376 This method will have effect only if absolute mouse
10377 positioning is supported by the guest OS.
10378 </note>
10379
10380 <see><link to="#absoluteSupported"/></see>
10381 </desc>
10382
10383 <param name="x" type="long" dir="in">
10384 <desc>
10385 X coordinate of the pointer in pixels, starting from @c 1.
10386 </desc>
10387 </param>
10388 <param name="y" type="long" dir="in">
10389 <desc>
10390 Y coordinate of the pointer in pixels, starting from @c 1.
10391 </desc>
10392 </param>
10393 <param name="dz" type="long" dir="in">
10394 <desc>
10395 Amount of mouse wheel moves.
10396 Positive values describe clockwise wheel rotations,
10397 negative values describe counterclockwise rotations.
10398 </desc>
10399 </param>
10400 <param name="buttonState" type="long" dir="in">
10401 <desc>
10402 The current state of mouse buttons. Every bit represents
10403 a mouse button as follows:
10404 <table>
10405 <tr><td>Bit 0 (<tt>0x01</tt>)</td><td>left mouse button</td></tr>
10406 <tr><td>Bit 1 (<tt>0x02</tt>)</td><td>right mouse button</td></tr>
10407 <tr><td>Bit 2 (<tt>0x04</tt>)</td><td>middle mouse button</td></tr>
10408 </table>
10409 A value of @c 1 means the corresponding button is pressed.
10410 otherwise it is released.
10411 </desc>
10412 </param>
10413 </method>
10414
10415 </interface>
10416
10417 <!--
10418 // IDisplay
10419 /////////////////////////////////////////////////////////////////////////
10420 -->
10421
10422 <enum
10423 name="FramebufferPixelFormat"
10424 uuid="7acfd5ed-29e3-45e3-8136-73c9224f3d2d"
10425 >
10426 <desc>
10427 Format of the video memory buffer. Constants represented by this enum can
10428 be used to test for particular values of <link
10429 to="IFramebuffer::pixelFormat"/>. See also <link
10430 to="IFramebuffer::requestResize"/>.
10431
10432 See also www.fourcc.org for more information about FOURCC pixel formats.
10433 </desc>
10434
10435 <const name="Opaque" value="0">
10436 <desc>
10437 Unknown buffer format (the user may not assume any particular format of
10438 the buffer).
10439 </desc>
10440 </const>
10441 <const name="FOURCC_RGB" value="0x32424752">
10442 <desc>
10443 Basic RGB format (<link to="IFramebuffer::bitsPerPixel"/> determines the
10444 bit layout).
10445 </desc>
10446 </const>
10447 </enum>
10448
10449 <interface
10450 name="IFramebuffer" extends="$unknown"
10451 uuid="b7ed347a-5765-40a0-ae1c-f543eb4ddeaf"
10452 wsmap="suppress"
10453 >
10454 <attribute name="address" type="octet" mod="ptr" readonly="yes">
10455 <desc>Address of the start byte of the frame buffer.</desc>
10456 </attribute>
10457
10458 <attribute name="width" type="unsigned long" readonly="yes">
10459 <desc>Frame buffer width, in pixels.</desc>
10460 </attribute>
10461
10462 <attribute name="height" type="unsigned long" readonly="yes">
10463 <desc>Frame buffer height, in pixels.</desc>
10464 </attribute>
10465
10466 <attribute name="bitsPerPixel" type="unsigned long" readonly="yes">
10467 <desc>
10468 Color depth, in bits per pixel. When <link to="#pixelFormat"/> is <link
10469 to="FramebufferPixelFormat_FOURCC_RGB">FOURCC_RGB</link>, valid values
10470 are: 8, 15, 16, 24 and 32.
10471 </desc>
10472 </attribute>
10473
10474 <attribute name="bytesPerLine" type="unsigned long" readonly="yes">
10475 <desc>
10476 Scan line size, in bytes. When <link to="#pixelFormat"/> is <link
10477 to="FramebufferPixelFormat_FOURCC_RGB">FOURCC_RGB</link>, the
10478 size of the scan line must be aligned to 32 bits.
10479 </desc>
10480 </attribute>
10481
10482 <attribute name="pixelFormat" type="unsigned long" readonly="yes">
10483 <desc>
10484 Frame buffer pixel format. It's either one of the values defined by <link
10485 to="FramebufferPixelFormat"/> or a raw FOURCC code.
10486 <note>
10487 This attribute must never return <link
10488 to="FramebufferPixelFormat_Opaque"/> -- the format of the buffer
10489 <link to="#address"/> points to must be always known.
10490 </note>
10491 </desc>
10492 </attribute>
10493
10494 <attribute name="usesGuestVRAM" type="boolean" readonly="yes">
10495 <desc>
10496 Defines whether this frame buffer uses the virtual video card's memory
10497 buffer (guest VRAM) directly or not. See <link
10498 to="IFramebuffer::requestResize"/> for more information.
10499 </desc>
10500 </attribute>
10501
10502 <attribute name="heightReduction" type="unsigned long" readonly="yes">
10503 <desc>
10504 Hint from the frame buffer about how much of the standard
10505 screen height it wants to use for itself. This information is
10506 exposed to the guest through the VESA BIOS and VMMDev interface
10507 so that it can use it for determining its video mode table. It
10508 is not guaranteed that the guest respects the value.
10509 </desc>
10510 </attribute>
10511
10512 <attribute name="overlay" type="IFramebufferOverlay" readonly="yes">
10513 <desc>
10514 An alpha-blended overlay which is superposed over the frame buffer.
10515 The initial purpose is to allow the display of icons providing
10516 information about the VM state, including disk activity, in front
10517 ends which do not have other means of doing that. The overlay is
10518 designed to controlled exclusively by IDisplay. It has no locking
10519 of its own, and any changes made to it are not guaranteed to be
10520 visible until the affected portion of IFramebuffer is updated. The
10521 overlay can be created lazily the first time it is requested. This
10522 attribute can also return @c null to signal that the overlay is not
10523 implemented.
10524 </desc>
10525 </attribute>
10526
10527 <attribute name="winId" type="unsigned long long" readonly="yes">
10528 <desc>
10529 Platform-dependent identifier of the window where context of this
10530 frame buffer is drawn, or zero if there's no such window.
10531 </desc>
10532 </attribute>
10533
10534 <method name="lock">
10535 <desc>
10536 Locks the frame buffer.
10537 Gets called by the IDisplay object where this frame buffer is
10538 bound to.
10539 </desc>
10540 </method>
10541
10542 <method name="unlock">
10543 <desc>
10544 Unlocks the frame buffer.
10545 Gets called by the IDisplay object where this frame buffer is
10546 bound to.
10547 </desc>
10548 </method>
10549
10550 <method name="notifyUpdate">
10551 <desc>
10552 Informs about an update.
10553 Gets called by the display object where this buffer is
10554 registered.
10555 </desc>
10556 <param name="x" type="unsigned long" dir="in"/>
10557 <param name="y" type="unsigned long" dir="in"/>
10558 <param name="width" type="unsigned long" dir="in"/>
10559 <param name="height" type="unsigned long" dir="in"/>
10560 </method>
10561
10562 <method name="requestResize">
10563 <desc>
10564 Requests a size and pixel format change.
10565
10566 There are two modes of working with the video buffer of the virtual
10567 machine. The <i>indirect</i> mode implies that the IFramebuffer
10568 implementation allocates a memory buffer for the requested display mode
10569 and provides it to the virtual machine. In <i>direct</i> mode, the
10570 IFramebuffer implementation uses the memory buffer allocated and owned
10571 by the virtual machine. This buffer represents the video memory of the
10572 emulated video adapter (so called <i>guest VRAM</i>). The direct mode is
10573 usually faster because the implementation gets a raw pointer to the
10574 guest VRAM buffer which it can directly use for visualizing the contents
10575 of the virtual display, as opposed to the indirect mode where the
10576 contents of guest VRAM are copied to the memory buffer provided by
10577 the implementation every time a display update occurs.
10578
10579 It is important to note that the direct mode is really fast only when
10580 the implementation uses the given guest VRAM buffer directly, for
10581 example, by blitting it to the window representing the virtual machine's
10582 display, which saves at least one copy operation comparing to the
10583 indirect mode. However, using the guest VRAM buffer directly is not
10584 always possible: the format and the color depth of this buffer may be
10585 not supported by the target window, or it may be unknown (opaque) as in
10586 case of text or non-linear multi-plane VGA video modes. In this case,
10587 the indirect mode (that is always available) should be used as a
10588 fallback: when the guest VRAM contents are copied to the
10589 implementation-provided memory buffer, color and format conversion is
10590 done automatically by the underlying code.
10591
10592 The @a pixelFormat parameter defines whether the direct mode is
10593 available or not. If @a pixelFormat is <link
10594 to="FramebufferPixelFormat_Opaque"/> then direct access to the guest
10595 VRAM buffer is not available -- the @a VRAM, @a bitsPerPixel and
10596 @a bytesPerLine parameters must be ignored and the implementation must use
10597 the indirect mode (where it provides its own buffer in one of the
10598 supported formats). In all other cases, @a pixelFormat together with
10599 @a bitsPerPixel and @a bytesPerLine define the format of the video memory
10600 buffer pointed to by the @a VRAM parameter and the implementation is
10601 free to choose which mode to use. To indicate that this frame buffer uses
10602 the direct mode, the implementation of the <link to="#usesGuestVRAM"/>
10603 attribute must return @c true and <link to="#address"/> must
10604 return exactly the same address that is passed in the @a VRAM parameter
10605 of this method; otherwise it is assumed that the indirect strategy is
10606 chosen.
10607
10608 The @a width and @a height parameters represent the size of the
10609 requested display mode in both modes. In case of indirect mode, the
10610 provided memory buffer should be big enough to store data of the given
10611 display mode. In case of direct mode, it is guaranteed that the given
10612 @a VRAM buffer contains enough space to represent the display mode of the
10613 given size. Note that this frame buffer's <link to="#width"/> and <link
10614 to="#height"/> attributes must return exactly the same values as
10615 passed to this method after the resize is completed (see below).
10616
10617 The @a finished output parameter determines if the implementation has
10618 finished resizing the frame buffer or not. If, for some reason, the
10619 resize cannot be finished immediately during this call, @a finished
10620 must be set to @c false, and the implementation must call
10621 <link to="IDisplay::resizeCompleted"/> after it has returned from
10622 this method as soon as possible. If @a finished is @c false, the
10623 machine will not call any frame buffer methods until
10624 <link to="IDisplay::resizeCompleted"/> is called.
10625
10626 Note that if the direct mode is chosen, the <link to="#bitsPerPixel"/>,
10627 <link to="#bytesPerLine"/> and <link to="#pixelFormat"/> attributes of
10628 this frame buffer must return exactly the same values as specified in the
10629 parameters of this method, after the resize is completed. If the
10630 indirect mode is chosen, these attributes must return values describing
10631 the format of the implementation's own memory buffer <link
10632 to="#address"/> points to. Note also that the <link to="#bitsPerPixel"/>
10633 value must always correlate with <link to="#pixelFormat"/>. Note that
10634 the <link to="#pixelFormat"/> attribute must never return <link
10635 to="FramebufferPixelFormat_Opaque"/> regardless of the selected mode.
10636
10637 <note>
10638 This method is called by the IDisplay object under the
10639 <link to="#lock"/> provided by this IFramebuffer
10640 implementation. If this method returns @c false in @a finished, then
10641 this lock is not released until
10642 <link to="IDisplay::resizeCompleted"/> is called.
10643 </note>
10644 </desc>
10645 <param name="screenId" type="unsigned long" dir="in">
10646 <desc>
10647 Logical screen number. Must be used in the corresponding call to
10648 <link to="IDisplay::resizeCompleted"/> if this call is made.
10649 </desc>
10650 </param>
10651 <param name="pixelFormat" type="unsigned long" dir="in">
10652 <desc>
10653 Pixel format of the memory buffer pointed to by @a VRAM.
10654 See also <link to="FramebufferPixelFormat"/>.
10655 </desc>
10656 </param>
10657 <param name="VRAM" type="octet" mod="ptr" dir="in">
10658 <desc>Pointer to the virtual video card's VRAM (may be @c null).</desc>
10659 </param>
10660 <param name="bitsPerPixel" type="unsigned long" dir="in">
10661 <desc>Color depth, bits per pixel.</desc>
10662 </param>
10663 <param name="bytesPerLine" type="unsigned long" dir="in">
10664 <desc>Size of one scan line, in bytes.</desc>
10665 </param>
10666 <param name="width" type="unsigned long" dir="in">
10667 <desc>Width of the guest display, in pixels.</desc>
10668 </param>
10669 <param name="height" type="unsigned long" dir="in">
10670 <desc>Height of the guest display, in pixels.</desc>
10671 </param>
10672 <param name="finished" type="boolean" dir="return">
10673 <desc>
10674 Can the VM start using the new frame buffer immediately
10675 after this method returns or it should wait for
10676 <link to="IDisplay::resizeCompleted"/>.
10677 </desc>
10678 </param>
10679 </method>
10680
10681 <method name="videoModeSupported">
10682 <desc>
10683 Returns whether the frame buffer implementation is willing to
10684 support a given video mode. In case it is not able to render
10685 the video mode (or for some reason not willing), it should
10686 return @c false. Usually this method is called when the guest
10687 asks the VMM device whether a given video mode is supported
10688 so the information returned is directly exposed to the guest.
10689 It is important that this method returns very quickly.
10690 </desc>
10691 <param name="width" type="unsigned long" dir="in"/>
10692 <param name="height" type="unsigned long" dir="in"/>
10693 <param name="bpp" type="unsigned long" dir="in"/>
10694 <param name="supported" type="boolean" dir="return"/>
10695 </method>
10696
10697 <method name="getVisibleRegion">
10698 <desc>
10699 Returns the visible region of this frame buffer.
10700
10701 If the @a rectangles parameter is @c null then the value of the
10702 @a count parameter is ignored and the number of elements necessary to
10703 describe the current visible region is returned in @a countCopied.
10704
10705 If @a rectangles is not @c null but @a count is less
10706 than the required number of elements to store region data, the method
10707 will report a failure. If @a count is equal or greater than the
10708 required number of elements, then the actual number of elements copied
10709 to the provided array will be returned in @a countCopied.
10710
10711 <note>
10712 The address of the provided array must be in the process space of
10713 this IFramebuffer object.
10714 </note>
10715 <note>
10716 Method not yet implemented.
10717 </note>
10718 </desc>
10719 <param name="rectangles" type="octet" mod="ptr" dir="in">
10720 <desc>Pointer to the @c RTRECT array to receive region data.</desc>
10721 </param>
10722 <param name="count" type="unsigned long" dir="in">
10723 <desc>Number of @c RTRECT elements in the @a rectangles array.</desc>
10724 </param>
10725 <param name="countCopied" type="unsigned long" dir="return">
10726 <desc>Number of elements copied to the @a rectangles array.</desc>
10727 </param>
10728 </method>
10729
10730 <method name="setVisibleRegion">
10731 <desc>
10732 Suggests a new visible region to this frame buffer. This region
10733 represents the area of the VM display which is a union of regions of
10734 all top-level windows of the guest operating system running inside the
10735 VM (if the Guest Additions for this system support this
10736 functionality). This information may be used by the frontends to
10737 implement the seamless desktop integration feature.
10738
10739 <note>
10740 The address of the provided array must be in the process space of
10741 this IFramebuffer object.
10742 </note>
10743 <note>
10744 The IFramebuffer implementation must make a copy of the provided
10745 array of rectangles.
10746 </note>
10747 <note>
10748 Method not yet implemented.
10749 </note>
10750 </desc>
10751 <param name="rectangles" type="octet" mod="ptr" dir="in">
10752 <desc>Pointer to the @c RTRECT array.</desc>
10753 </param>
10754 <param name="count" type="unsigned long" dir="in">
10755 <desc>Number of @c RTRECT elements in the @a rectangles array.</desc>
10756 </param>
10757 </method>
10758
10759 <method name="processVHWACommand">
10760 <desc>
10761 Posts a Video HW Acceleration Command to the frame buffer for processing.
10762 The commands used for 2D video acceleration (DDraw surface creation/destroying, blitting, scaling, color covnersion, overlaying, etc.)
10763 are posted from quest to the host to be processed by the host hardware.
10764
10765 <note>
10766 The address of the provided command must be in the process space of
10767 this IFramebuffer object.
10768 </note>
10769 </desc>
10770
10771 <param name="command" type="octet" mod="ptr" dir="in">
10772 <desc>Pointer to VBOXVHWACMD containing the command to execute.</desc>
10773 </param>
10774 </method>
10775
10776 </interface>
10777
10778 <interface
10779 name="IFramebufferOverlay" extends="IFramebuffer"
10780 uuid="0bcc1c7e-e415-47d2-bfdb-e4c705fb0f47"
10781 wsmap="suppress"
10782 >
10783 <desc>
10784 The IFramebufferOverlay interface represents an alpha blended overlay
10785 for displaying status icons above an IFramebuffer. It is always created
10786 not visible, so that it must be explicitly shown. It only covers a
10787 portion of the IFramebuffer, determined by its width, height and
10788 co-ordinates. It is always in packed pixel little-endian 32bit ARGB (in
10789 that order) format, and may be written to directly. Do re-read the
10790 width though, after setting it, as it may be adjusted (increased) to
10791 make it more suitable for the front end.
10792 </desc>
10793 <attribute name="x" type="unsigned long" readonly="yes">
10794 <desc>X position of the overlay, relative to the frame buffer.</desc>
10795 </attribute>
10796
10797 <attribute name="y" type="unsigned long" readonly="yes">
10798 <desc>Y position of the overlay, relative to the frame buffer.</desc>
10799 </attribute>
10800
10801 <attribute name="visible" type="boolean" readonly="no">
10802 <desc>
10803 Whether the overlay is currently visible.
10804 </desc>
10805 </attribute>
10806
10807 <attribute name="alpha" type="unsigned long" readonly="no">
10808 <desc>
10809 The global alpha value for the overlay. This may or may not be
10810 supported by a given front end.
10811 </desc>
10812 </attribute>
10813
10814 <method name="move">
10815 <desc>
10816 Changes the overlay's position relative to the IFramebuffer.
10817 </desc>
10818 <param name="x" type="unsigned long" dir="in"/>
10819 <param name="y" type="unsigned long" dir="in"/>
10820 </method>
10821
10822 </interface>
10823
10824 <interface
10825 name="IDisplay" extends="$unknown"
10826 uuid="26881797-bc98-444d-ac69-820633b93ec7"
10827 wsmap="managed"
10828 >
10829 <desc>
10830 The IDisplay interface represents the virtual machine's display.
10831
10832 The object implementing this interface is contained in each
10833 <link to="IConsole::display"/> attribute and represents the visual
10834 output of the virtual machine.
10835
10836 The virtual display supports pluggable output targets represented by the
10837 IFramebuffer interface. Examples of the output target are a window on
10838 the host computer or an RDP session's display on a remote computer.
10839 </desc>
10840 <attribute name="width" type="unsigned long" readonly="yes">
10841 <desc>Current display width.</desc>
10842 </attribute>
10843
10844 <attribute name="height" type="unsigned long" readonly="yes">
10845 <desc>Current display height.</desc>
10846 </attribute>
10847
10848 <attribute name="bitsPerPixel" type="unsigned long" readonly="yes">
10849 <desc>
10850 Current guest display color depth. Note that this may differ
10851 from <link to="IFramebuffer::bitsPerPixel"/>.
10852 </desc>
10853 </attribute>
10854
10855 <method name="setFramebuffer">
10856 <desc>
10857 Sets the framebuffer for given screen.
10858 </desc>
10859 <param name="screenId" type="unsigned long" dir="in"/>
10860 <param name="framebuffer" type="IFramebuffer" dir="in"/>
10861 </method>
10862
10863 <method name="getFramebuffer">
10864 <desc>
10865 Queries the framebuffer for given screen.
10866 </desc>
10867 <param name="screenId" type="unsigned long" dir="in"/>
10868 <param name="framebuffer" type="IFramebuffer" dir="out"/>
10869 <param name="xOrigin" type="long" dir="out"/>
10870 <param name="yOrigin" type="long" dir="out"/>
10871 </method>
10872
10873 <method name="setVideoModeHint">
10874 <desc>
10875 Asks VirtualBox to request the given video mode from
10876 the guest. This is just a hint and it cannot be guaranteed
10877 that the requested resolution will be used. Guest Additions
10878 are required for the request to be seen by guests. The caller
10879 should issue the request and wait for a resolution change and
10880 after a timeout retry.
10881
10882 Specifying @c 0 for either @a width, @a height or @a bitsPerPixel
10883 parameters means that the corresponding values should be taken from the
10884 current video mode (i.e. left unchanged).
10885
10886 If the guest OS supports multi-monitor configuration then the @a display
10887 parameter specifies the number of the guest display to send the hint to:
10888 @c 0 is the primary display, @c 1 is the first secondary and
10889 so on. If the multi-monitor configuration is not supported, @a display
10890 must be @c 0.
10891
10892 <result name="E_INVALIDARG">
10893 The @a display is not associated with any monitor.
10894 </result>
10895
10896 </desc>
10897 <param name="width" type="unsigned long" dir="in"/>
10898 <param name="height" type="unsigned long" dir="in"/>
10899 <param name="bitsPerPixel" type="unsigned long" dir="in"/>
10900 <param name="display" type="unsigned long" dir="in"/>
10901 </method>
10902
10903 <method name="setSeamlessMode">
10904 <desc>
10905 Enables or disables seamless guest display rendering (seamless desktop
10906 integration) mode.
10907 <note>
10908 Calling this method has no effect if <link
10909 to="IGuest::supportsSeamless"/> returns @c false.
10910 </note>
10911 </desc>
10912 <param name="enabled" type="boolean" dir="in"/>
10913 </method>
10914
10915 <method name="takeScreenShot">
10916 <desc>
10917 Takes a screen shot of the requested size and copies it to the
10918 32-bpp buffer allocated by the caller and pointed to by @a address.
10919
10920 <note>This API can be used only by the COM/XPCOM C++ API as it
10921 requires pointer support. Use <link to="#takeScreenShotSlow" />
10922 with other language bindings.
10923 </note>
10924
10925 <result name="E_NOTIMPL">
10926 Feature not implemented.
10927 </result>
10928 <result name="VBOX_E_IPRT_ERROR">
10929 Could not take a screenshot.
10930 </result>
10931
10932 </desc>
10933 <param name="address" type="octet" mod="ptr" dir="in"/>
10934 <param name="width" type="unsigned long" dir="in"/>
10935 <param name="height" type="unsigned long" dir="in"/>
10936 </method>
10937
10938 <method name="takeScreenShotSlow">
10939 <desc>
10940 Takes a guest screen shot of the requested size and returns it as
10941 an array of bytes in uncompressed 32-bit ARGB format.
10942 This API is slow, but could be the only option to get guest screenshot
10943 for scriptable languages not allowed to manipulate with addresses
10944 directly.
10945
10946 <result name="E_NOTIMPL">
10947 Feature not implemented.
10948 </result>
10949 <result name="VBOX_E_IPRT_ERROR">
10950 Could not take a screenshot.
10951 </result>
10952 </desc>
10953 <param name="width" type="unsigned long" dir="in">
10954 <desc>
10955 Desired image width.
10956 </desc>
10957 </param>
10958 <param name="height" type="unsigned long" dir="in">
10959 <desc>
10960 Desired image height.
10961 </desc>
10962 </param>
10963 <param name="screenData" type="octet" dir="return" safearray="yes">
10964 <desc>
10965 Array with resulting screen data.
10966 </desc>
10967 </param>
10968 </method>
10969
10970 <method name="drawToScreen">
10971 <desc>
10972 Draws a 32-bpp image of the specified size from the given buffer
10973 to the given point on the VM display.
10974
10975 <result name="E_NOTIMPL">
10976 Feature not implemented.
10977 </result>
10978 <result name="VBOX_E_IPRT_ERROR">
10979 Could not draw to screen.
10980 </result>
10981
10982 </desc>
10983 <param name="address" type="octet" mod="ptr" dir="in"/>
10984 <param name="x" type="unsigned long" dir="in"/>
10985 <param name="y" type="unsigned long" dir="in"/>
10986 <param name="width" type="unsigned long" dir="in"/>
10987 <param name="height" type="unsigned long" dir="in"/>
10988 </method>
10989
10990 <method name="invalidateAndUpdate">
10991 <desc>
10992 Does a full invalidation of the VM display and instructs the VM
10993 to update it.
10994
10995 <result name="VBOX_E_IPRT_ERROR">
10996 Could not invalidate and update screen.
10997 </result>
10998
10999 </desc>
11000 </method>
11001
11002 <method name="resizeCompleted">
11003 <desc>
11004 Signals that a framebuffer has completed the resize operation.
11005
11006 <result name="VBOX_E_NOT_SUPPORTED">
11007 Operation only valid for external frame buffers.
11008 </result>
11009
11010 </desc>
11011 <param name="screenId" type="unsigned long" dir="in"/>
11012 </method>
11013
11014 <method name="updateCompleted">
11015 <desc>
11016 Signals that a framebuffer has completed the update operation.
11017
11018 <result name="VBOX_E_NOT_SUPPORTED">
11019 Operation only valid for external frame buffers.
11020 </result>
11021
11022 </desc>
11023 </method>
11024
11025 <method name="completeVHWACommand">
11026 <desc>
11027 Signals that the Video HW Acceleration command has completed.
11028 </desc>
11029
11030 <param name="command" type="octet" mod="ptr" dir="in">
11031 <desc>Pointer to VBOXVHWACMD containing the completed command.</desc>
11032 </param>
11033 </method>
11034
11035 </interface>
11036
11037 <!--
11038 // INetworkAdapter
11039 /////////////////////////////////////////////////////////////////////////
11040 -->
11041
11042 <enum
11043 name="NetworkAttachmentType"
11044 uuid="44bce1ee-99f7-4e8e-89fc-80597fd9eeaf"
11045 >
11046 <desc>
11047 Network attachment type.
11048 </desc>
11049
11050 <const name="Null" value="0">
11051 <desc>Null value, also means "not attached".</desc>
11052 </const>
11053 <const name="NAT" value="1"/>
11054 <const name="Bridged" value="2"/>
11055 <const name="Internal" value="3"/>
11056 <const name="HostOnly" value="4"/>
11057 </enum>
11058
11059 <enum
11060 name="NetworkAdapterType"
11061 uuid="50c3dfd8-07ac-4a31-baac-519c828fbf97"
11062 >
11063 <desc>
11064 Network adapter type.
11065 </desc>
11066
11067 <const name="Null" value="0">
11068 <desc>Null value (never used by the API).</desc>
11069 </const>
11070 <const name="Am79C970A" value="1">
11071 <desc>AMD PCNet-PCI II network card (Am79C970A).</desc>
11072 </const>
11073 <const name="Am79C973" value="2">
11074 <desc>AMD PCNet-FAST III network card (Am79C973).</desc>
11075 </const>
11076 <const name="I82540EM" value="3">
11077 <desc>Intel PRO/1000 MT Desktop network card (82540EM).</desc>
11078 </const>
11079 <const name="I82543GC" value="4">
11080 <desc>Intel PRO/1000 T Server network card (82543GC).</desc>
11081 </const>
11082 <const name="I82545EM" value="5">
11083 <desc>Intel PRO/1000 MT Server network card (82545EM).</desc>
11084 </const>
11085 </enum>
11086
11087 <interface
11088 name="INetworkAdapter" extends="$unknown"
11089 uuid="65607a27-2b73-4d43-b4cc-0ba2c817fbde"
11090 wsmap="managed"
11091 >
11092 <desc>
11093 Represents a virtual network adapter that is attached to a virtual machine.
11094 Each virtual machine has a fixed number of network adapter slots with one
11095 instance of this attached to each of them. Call
11096 <link to="IMachine::getNetworkAdapter" /> to get the network adapter that
11097 is attached to a given slot in a given machine.
11098
11099 Each network adapter can be in one of five attachment modes, which are
11100 represented by the <link to="NetworkAttachmentType" /> enumeration;
11101 see the <link to="#attachmentType" /> attribute.
11102 </desc>
11103
11104 <attribute name="adapterType" type="NetworkAdapterType">
11105 <desc>
11106 Type of the virtual network adapter. Depending on this value,
11107 VirtualBox will provide a different virtual network hardware
11108 to the guest.
11109 </desc>
11110 </attribute>
11111
11112 <attribute name="slot" type="unsigned long" readonly="yes">
11113 <desc>
11114 Slot number this adapter is plugged into. Corresponds to
11115 the value you pass to <link to="IMachine::getNetworkAdapter"/>
11116 to obtain this instance.
11117 </desc>
11118 </attribute>
11119
11120 <attribute name="enabled" type="boolean">
11121 <desc>
11122 Flag whether the network adapter is present in the
11123 guest system. If disabled, the virtual guest hardware will
11124 not contain this network adapter. Can only be changed when
11125 the VM is not running.
11126 </desc>
11127 </attribute>
11128
11129 <attribute name="MACAddress" type="wstring">
11130 <desc>
11131 Ethernet MAC address of the adapter, 12 hexadecimal characters. When setting
11132 it to @c null or an empty string, VirtualBox will generate a unique MAC address.
11133 </desc>
11134 </attribute>
11135
11136 <attribute name="attachmentType" type="NetworkAttachmentType" readonly="yes"/>
11137
11138 <attribute name="hostInterface" type="wstring">
11139 <desc>
11140 Name of the host network interface the VM is attached to.
11141 </desc>
11142 </attribute>
11143
11144 <attribute name="internalNetwork" type="wstring">
11145 <desc>
11146 Name of the internal network the VM is attached to.
11147 </desc>
11148 </attribute>
11149
11150 <attribute name="NATNetwork" type="wstring">
11151 <desc>
11152 Name of the NAT network the VM is attached to.
11153 </desc>
11154 </attribute>
11155
11156 <attribute name="cableConnected" type="boolean">
11157 <desc>
11158 Flag whether the adapter reports the cable as connected or not.
11159 It can be used to report offline situations to a VM.
11160 </desc>
11161 </attribute>
11162
11163 <attribute name="lineSpeed" type="unsigned long">
11164 <desc>
11165 Line speed reported by custom drivers, in units of 1 kbps.
11166 </desc>
11167 </attribute>
11168
11169 <attribute name="traceEnabled" type="boolean">
11170 <desc>
11171 Flag whether network traffic from/to the network card should be traced.
11172 Can only be toggled when the VM is turned off.
11173 </desc>
11174 </attribute>
11175
11176 <attribute name="traceFile" type="wstring">
11177 <desc>
11178 Filename where a network trace will be stored. If not set, VBox-pid.pcap
11179 will be used.
11180 </desc>
11181 </attribute>
11182
11183 <method name="attachToNAT">
11184 <desc>
11185 Attach the network adapter to the Network Address Translation (NAT) interface.
11186 </desc>
11187 </method>
11188
11189 <method name="attachToBridgedInterface">
11190 <desc>
11191 Attach the network adapter to a bridged host interface.
11192 </desc>
11193 </method>
11194
11195 <method name="attachToInternalNetwork">
11196 <desc>
11197 Attach the network adapter to an internal network.
11198 </desc>
11199 </method>
11200
11201 <method name="attachToHostOnlyInterface">
11202 <desc>
11203 Attach the network adapter to the host-only network.
11204 </desc>
11205 </method>
11206
11207 <method name="detach">
11208 <desc>
11209 Detach the network adapter
11210 </desc>
11211 </method>
11212 </interface>
11213
11214
11215 <!--
11216 // ISerialPort
11217 /////////////////////////////////////////////////////////////////////////
11218 -->
11219
11220 <enum
11221 name="PortMode"
11222 uuid="533b5fe3-0185-4197-86a7-17e37dd39d76"
11223 >
11224 <desc>
11225 The PortMode enumeration represents possible communication modes for
11226 the virtual serial port device.
11227 </desc>
11228
11229 <const name="Disconnected" value="0">
11230 <desc>Virtual device is not attached to any real host device.</desc>
11231 </const>
11232 <const name="HostPipe" value="1">
11233 <desc>Virtual device is attached to a host pipe.</desc>
11234 </const>
11235 <const name="HostDevice" value="2">
11236 <desc>Virtual device is attached to a host device.</desc>
11237 </const>
11238 <const name="RawFile" value="3">
11239 <desc>Virtual device is attached to a raw file.</desc>
11240 </const>
11241 </enum>
11242
11243 <interface
11244 name="ISerialPort" extends="$unknown"
11245 uuid="937f6970-5103-4745-b78e-d28dcf1479a8"
11246 wsmap="managed"
11247 >
11248
11249 <desc>
11250 The ISerialPort interface represents the virtual serial port device.
11251
11252 The virtual serial port device acts like an ordinary serial port
11253 inside the virtual machine. This device communicates to the real
11254 serial port hardware in one of two modes: host pipe or host device.
11255
11256 In host pipe mode, the #path attribute specifies the path to the pipe on
11257 the host computer that represents a serial port. The #server attribute
11258 determines if this pipe is created by the virtual machine process at
11259 machine startup or it must already exist before starting machine
11260 execution.
11261
11262 In host device mode, the #path attribute specifies the name of the
11263 serial port device on the host computer.
11264
11265 There is also a third communication mode: the disconnected mode. In this
11266 mode, the guest OS running inside the virtual machine will be able to
11267 detect the serial port, but all port write operations will be discarded
11268 and all port read operations will return no data.
11269
11270 <see>IMachine::getSerialPort</see>
11271 </desc>
11272
11273 <attribute name="slot" type="unsigned long" readonly="yes">
11274 <desc>
11275 Slot number this serial port is plugged into. Corresponds to
11276 the value you pass to <link to="IMachine::getSerialPort"/>
11277 to obtain this instance.
11278 </desc>
11279 </attribute>
11280
11281 <attribute name="enabled" type="boolean">
11282 <desc>
11283 Flag whether the serial port is enabled. If disabled,
11284 the serial port will not be reported to the guest OS.
11285 </desc>
11286 </attribute>
11287
11288 <attribute name="IOBase" type="unsigned long">
11289 <desc>Base I/O address of the serial port.</desc>
11290 </attribute>
11291
11292 <attribute name="IRQ" type="unsigned long">
11293 <desc>IRQ number of the serial port.</desc>
11294 </attribute>
11295
11296 <attribute name="hostMode" type="PortMode">
11297 <desc>
11298 How is this port connected to the host.
11299 <note>
11300 Changing this attribute may fail if the conditions for
11301 <link to="#path"/> are not met.
11302 </note>
11303 </desc>
11304 </attribute>
11305
11306 <attribute name="server" type="boolean">
11307 <desc>
11308 Flag whether this serial port acts as a server (creates a new pipe on
11309 the host) or as a client (uses the existing pipe). This attribute is
11310 used only when <link to="#hostMode"/> is PortMode_HostPipe.
11311 </desc>
11312 </attribute>
11313
11314 <attribute name="path" type="wstring">
11315 <desc>
11316 Path to the serial port's pipe on the host when <link to="ISerialPort::hostMode"/> is
11317 PortMode_HostPipe, or the host serial device name when
11318 <link to="ISerialPort::hostMode"/> is PortMode_HostDevice. For both
11319 cases, setting a @c null or empty string as the attribute's value
11320 is an error. Otherwise, the value of this property is ignored.
11321 </desc>
11322 </attribute>
11323
11324 </interface>
11325
11326 <!--
11327 // IParallelPort
11328 /////////////////////////////////////////////////////////////////////////
11329 -->
11330
11331 <interface
11332 name="IParallelPort" extends="$unknown"
11333 uuid="0c925f06-dd10-4b77-8de8-294d738c3214"
11334 wsmap="managed"
11335 >
11336
11337 <desc>
11338 The IParallelPort interface represents the virtual parallel port device.
11339
11340 The virtual parallel port device acts like an ordinary parallel port
11341 inside the virtual machine. This device communicates to the real
11342 parallel port hardware using the name of the parallel device on the host
11343 computer specified in the #path attribute.
11344
11345 Each virtual parallel port device is assigned a base I/O address and an
11346 IRQ number that will be reported to the guest operating system and used
11347 to operate the given parallel port from within the virtual machine.
11348
11349 <see>IMachine::getParallelPort</see>
11350 </desc>
11351
11352 <attribute name="slot" type="unsigned long" readonly="yes">
11353 <desc>
11354 Slot number this parallel port is plugged into. Corresponds to
11355 the value you pass to <link to="IMachine::getParallelPort"/>
11356 to obtain this instance.
11357 </desc>
11358 </attribute>
11359
11360 <attribute name="enabled" type="boolean">
11361 <desc>
11362 Flag whether the parallel port is enabled. If disabled,
11363 the parallel port will not be reported to the guest OS.
11364 </desc>
11365 </attribute>
11366
11367 <attribute name="IOBase" type="unsigned long">
11368 <desc>Base I/O address of the parallel port.</desc>
11369 </attribute>
11370
11371 <attribute name="IRQ" type="unsigned long">
11372 <desc>IRQ number of the parallel port.</desc>
11373 </attribute>
11374
11375 <attribute name="path" type="wstring">
11376 <desc>
11377 Host parallel device name. If this parallel port is enabled, setting a
11378 @c null or an empty string as this attribute's value will result into
11379 an error.
11380 </desc>
11381 </attribute>
11382
11383 </interface>
11384
11385
11386 <!--
11387 // IMachineDebugger
11388 /////////////////////////////////////////////////////////////////////////
11389 -->
11390
11391 <interface
11392 name="IMachineDebugger" extends="$unknown"
11393 uuid="b0b2a2dd-0627-4502-91c2-ddc5e77609e0"
11394 wsmap="suppress"
11395 >
11396 <method name="resetStats">
11397 <desc>
11398 Reset VM statistics.
11399 </desc>
11400 <param name="pattern" type="wstring" dir="in">
11401 <desc>The selection pattern. A bit similar to filename globbing.</desc>
11402 </param>
11403 </method>
11404
11405 <method name="dumpStats">
11406 <desc>
11407 Dumps VM statistics.
11408 </desc>
11409 <param name="pattern" type="wstring" dir="in">
11410 <desc>The selection pattern. A bit similar to filename globbing.</desc>
11411 </param>
11412 </method>
11413
11414 <method name="getStats">
11415 <desc>
11416 Get the VM statistics in a XMLish format.
11417 </desc>
11418 <param name="pattern" type="wstring" dir="in">
11419 <desc>The selection pattern. A bit similar to filename globbing.</desc>
11420 </param>
11421 <param name="withDescriptions" type="boolean" dir="in">
11422 <desc>Whether to include the descriptions.</desc>
11423 </param>
11424 <param name="stats" type="wstring" dir="out">
11425 <desc>The XML document containing the statistics.</desc>
11426 </param>
11427 </method>
11428
11429 <method name="injectNMI">
11430 <desc>
11431 Inject an NMI into a running VT-x/AMD-V VM.
11432 </desc>
11433 </method>
11434
11435 <attribute name="singlestep" type="boolean">
11436 <desc>Switch for enabling singlestepping.</desc>
11437 </attribute>
11438
11439 <attribute name="recompileUser" type="boolean">
11440 <desc>Switch for forcing code recompilation for user mode code.</desc>
11441 </attribute>
11442
11443 <attribute name="recompileSupervisor" type="boolean">
11444 <desc>Switch for forcing code recompilation for supervisor mode code.</desc>
11445 </attribute>
11446
11447 <attribute name="PATMEnabled" type="boolean">
11448 <desc>Switch for enabling and disabling the PATM component.</desc>
11449 </attribute>
11450
11451 <attribute name="CSAMEnabled" type="boolean">
11452 <desc>Switch for enabling and disabling the CSAM component.</desc>
11453 </attribute>
11454
11455 <attribute name="logEnabled" type="boolean">
11456 <desc>Switch for enabling and disabling logging.</desc>
11457 </attribute>
11458
11459 <attribute name="HWVirtExEnabled" type="boolean" readonly="yes">
11460 <desc>
11461 Flag indicating whether the VM is currently making use of CPU hardware
11462 virtualization extensions.
11463 </desc>
11464 </attribute>
11465
11466 <attribute name="HWVirtExNestedPagingEnabled" type="boolean" readonly="yes">
11467 <desc>
11468 Flag indicating whether the VM is currently making use of the nested paging
11469 CPU hardware virtualization extension.
11470 </desc>
11471 </attribute>
11472
11473 <attribute name="HWVirtExVPIDEnabled" type="boolean" readonly="yes">
11474 <desc>
11475 Flag indicating whether the VM is currently making use of the VPID
11476 VT-x extension.
11477 </desc>
11478 </attribute>
11479
11480 <attribute name="PAEEnabled" type="boolean" readonly="yes">
11481 <desc>
11482 Flag indicating whether the VM is currently making use of the Physical
11483 Address Extension CPU feature.
11484 </desc>
11485 </attribute>
11486
11487 <attribute name="virtualTimeRate" type="unsigned long">
11488 <desc>
11489 The rate at which the virtual time runs expressed as a percentage.
11490 The accepted range is 2% to 20000%.
11491 </desc>
11492 </attribute>
11493
11494 <!-- @todo method for setting log flags, groups and destination! -->
11495
11496 <attribute name="VM" type="unsigned long long" readonly="yes">
11497 <desc>
11498 Gets the VM handle. This is only for internal use while
11499 we carve the details of this interface.
11500 </desc>
11501 </attribute>
11502
11503 </interface>
11504
11505 <!--
11506 // IUSBController
11507 /////////////////////////////////////////////////////////////////////////
11508 -->
11509
11510 <interface
11511 name="IUSBController" extends="$unknown"
11512 uuid="238540fa-4b73-435a-a38e-4e1d9eab5c17"
11513 wsmap="managed"
11514 >
11515 <attribute name="enabled" type="boolean">
11516 <desc>
11517 Flag whether the USB controller is present in the
11518 guest system. If disabled, the virtual guest hardware will
11519 not contain any USB controller. Can only be changed when
11520 the VM is powered off.
11521 </desc>
11522 </attribute>
11523
11524 <attribute name="enabledEhci" type="boolean">
11525 <desc>
11526 Flag whether the USB EHCI controller is present in the
11527 guest system. If disabled, the virtual guest hardware will
11528 not contain a USB EHCI controller. Can only be changed when
11529 the VM is powered off.
11530 </desc>
11531 </attribute>
11532
11533 <attribute name="USBStandard" type="unsigned short" readonly="yes">
11534 <desc>
11535 USB standard version which the controller implements.
11536 This is a BCD which means that the major version is in the
11537 high byte and minor version is in the low byte.
11538 </desc>
11539 </attribute>
11540
11541 <attribute name="deviceFilters" type="IUSBDeviceFilter" readonly="yes" safearray="yes">
11542 <desc>
11543 List of USB device filters associated with the machine.
11544
11545 If the machine is currently running, these filters are activated
11546 every time a new (supported) USB device is attached to the host
11547 computer that was not ignored by global filters
11548 (<link to="IHost::USBDeviceFilters"/>).
11549
11550 These filters are also activated when the machine is powered up.
11551 They are run against a list of all currently available USB
11552 devices (in states
11553 <link to="USBDeviceState_Available"/>,
11554 <link to="USBDeviceState_Busy"/>,
11555 <link to="USBDeviceState_Held"/>) that were not previously
11556 ignored by global filters.
11557
11558 If at least one filter matches the USB device in question, this
11559 device is automatically captured (attached to) the virtual USB
11560 controller of this machine.
11561
11562 <see>IUSBDeviceFilter, ::IUSBController</see>
11563 </desc>
11564 </attribute>
11565
11566 <method name="createDeviceFilter">
11567 <desc>
11568 Creates a new USB device filter. All attributes except
11569 the filter name are set to empty (any match),
11570 <i>active</i> is @c false (the filter is not active).
11571
11572 The created filter can then be added to the list of filters using
11573 <link to="#insertDeviceFilter"/>.
11574
11575 <result name="VBOX_E_INVALID_VM_STATE">
11576 The virtual machine is not mutable.
11577 </result>
11578
11579 <see>#deviceFilters</see>
11580 </desc>
11581 <param name="name" type="wstring" dir="in">
11582 <desc>
11583 Filter name. See <link to="IUSBDeviceFilter::name"/>
11584 for more info.
11585 </desc>
11586 </param>
11587 <param name="filter" type="IUSBDeviceFilter" dir="return">
11588 <desc>Created filter object.</desc>
11589 </param>
11590 </method>
11591
11592 <method name="insertDeviceFilter">
11593 <desc>
11594 Inserts the given USB device to the specified position
11595 in the list of filters.
11596
11597 Positions are numbered starting from <tt>0</tt>. If the specified
11598 position is equal to or greater than the number of elements in
11599 the list, the filter is added to the end of the collection.
11600
11601 <note>
11602 Duplicates are not allowed, so an attempt to insert a
11603 filter that is already in the collection, will return an
11604 error.
11605 </note>
11606
11607 <result name="VBOX_E_INVALID_VM_STATE">
11608 Virtual machine is not mutable.
11609 </result>
11610 <result name="E_INVALIDARG">
11611 USB device filter not created within this VirtualBox instance.
11612 </result>
11613 <result name="VBOX_E_INVALID_OBJECT_STATE">
11614 USB device filter already in list.
11615 </result>
11616
11617 <see>#deviceFilters</see>
11618 </desc>
11619 <param name="position" type="unsigned long" dir="in">
11620 <desc>Position to insert the filter to.</desc>
11621 </param>
11622 <param name="filter" type="IUSBDeviceFilter" dir="in">
11623 <desc>USB device filter to insert.</desc>
11624 </param>
11625 </method>
11626
11627 <method name="removeDeviceFilter">
11628 <desc>
11629 Removes a USB device filter from the specified position in the
11630 list of filters.
11631
11632 Positions are numbered starting from <tt>0</tt>. Specifying a
11633 position equal to or greater than the number of elements in
11634 the list will produce an error.
11635
11636 <see>#deviceFilters</see>
11637
11638 <result name="VBOX_E_INVALID_VM_STATE">
11639 Virtual machine is not mutable.
11640 </result>
11641 <result name="E_INVALIDARG">
11642 USB device filter list empty or invalid @a position.
11643 </result>
11644
11645 </desc>
11646 <param name="position" type="unsigned long" dir="in">
11647 <desc>Position to remove the filter from.</desc>
11648 </param>
11649 <param name="filter" type="IUSBDeviceFilter" dir="return">
11650 <desc>Removed USB device filter.</desc>
11651 </param>
11652 </method>
11653
11654 </interface>
11655
11656
11657 <!--
11658 // IUSBDevice
11659 /////////////////////////////////////////////////////////////////////////
11660 -->
11661
11662 <interface
11663 name="IUSBDevice" extends="$unknown"
11664 uuid="f8967b0b-4483-400f-92b5-8b675d98a85b"
11665 wsmap="managed"
11666 >
11667 <desc>
11668 The IUSBDevice interface represents a virtual USB device attached to the
11669 virtual machine.
11670
11671 A collection of objects implementing this interface is stored in the
11672 <link to="IConsole::USBDevices"/> attribute which lists all USB devices
11673 attached to a running virtual machine's USB controller.
11674 </desc>
11675
11676 <attribute name="id" type="wstring" readonly="yes">
11677 <desc>
11678 Unique USB device ID. This ID is built from #vendorId,
11679 #productId, #revision and #serialNumber.
11680 </desc>
11681 </attribute>
11682
11683 <attribute name="vendorId" type="unsigned short" readonly="yes">
11684 <desc>Vendor ID.</desc>
11685 </attribute>
11686
11687 <attribute name="productId" type="unsigned short" readonly="yes">
11688 <desc>Product ID.</desc>
11689 </attribute>
11690
11691 <attribute name="revision" type="unsigned short" readonly="yes">
11692 <desc>
11693 Product revision number. This is a packed BCD represented as
11694 unsigned short. The high byte is the integer part and the low
11695 byte is the decimal.
11696 </desc>
11697 </attribute>
11698
11699 <attribute name="manufacturer" type="wstring" readonly="yes">
11700 <desc>Manufacturer string.</desc>
11701 </attribute>
11702
11703 <attribute name="product" type="wstring" readonly="yes">
11704 <desc>Product string.</desc>
11705 </attribute>
11706
11707 <attribute name="serialNumber" type="wstring" readonly="yes">
11708 <desc>Serial number string.</desc>
11709 </attribute>
11710
11711 <attribute name="address" type="wstring" readonly="yes">
11712 <desc>Host specific address of the device.</desc>
11713 </attribute>
11714
11715 <attribute name="port" type="unsigned short" readonly="yes">
11716 <desc>
11717 Host USB port number the device is physically
11718 connected to.
11719 </desc>
11720 </attribute>
11721
11722 <attribute name="version" type="unsigned short" readonly="yes">
11723 <desc>
11724 The major USB version of the device - 1 or 2.
11725 </desc>
11726 </attribute>
11727
11728 <attribute name="portVersion" type="unsigned short" readonly="yes">
11729 <desc>
11730 The major USB version of the host USB port the device is
11731 physically connected to - 1 or 2. For devices not connected to
11732 anything this will have the same value as the version attribute.
11733 </desc>
11734 </attribute>
11735
11736 <attribute name="remote" type="boolean" readonly="yes">
11737 <desc>
11738 Whether the device is physically connected to a remote VRDP
11739 client or to a local host machine.
11740 </desc>
11741 </attribute>
11742
11743 </interface>
11744
11745
11746 <!--
11747 // IUSBDeviceFilter
11748 /////////////////////////////////////////////////////////////////////////
11749 -->
11750
11751 <interface
11752 name="IUSBDeviceFilter" extends="$unknown"
11753 uuid="d6831fb4-1a94-4c2c-96ef-8d0d6192066d"
11754 wsmap="managed"
11755 >
11756 <desc>
11757 The IUSBDeviceFilter interface represents an USB device filter used
11758 to perform actions on a group of USB devices.
11759
11760 This type of filters is used by running virtual machines to
11761 automatically capture selected USB devices once they are physically
11762 attached to the host computer.
11763
11764 A USB device is matched to the given device filter if and only if all
11765 attributes of the device match the corresponding attributes of the
11766 filter (that is, attributes are joined together using the logical AND
11767 operation). On the other hand, all together, filters in the list of
11768 filters carry the semantics of the logical OR operation. So if it is
11769 desirable to create a match like "this vendor id OR this product id",
11770 one needs to create two filters and specify "any match" (see below)
11771 for unused attributes.
11772
11773 All filter attributes used for matching are strings. Each string
11774 is an expression representing a set of values of the corresponding
11775 device attribute, that will match the given filter. Currently, the
11776 following filtering expressions are supported:
11777
11778 <ul>
11779 <li><i>Interval filters</i>. Used to specify valid intervals for
11780 integer device attributes (Vendor ID, Product ID and Revision).
11781 The format of the string is:
11782
11783 <tt>int:((m)|([m]-[n]))(,(m)|([m]-[n]))*</tt>
11784
11785 where <tt>m</tt> and <tt>n</tt> are integer numbers, either in octal
11786 (starting from <tt>0</tt>), hexadecimal (starting from <tt>0x</tt>)
11787 or decimal (otherwise) form, so that <tt>m &lt; n</tt>. If <tt>m</tt>
11788 is omitted before a dash (<tt>-</tt>), the minimum possible integer
11789 is assumed; if <tt>n</tt> is omitted after a dash, the maximum
11790 possible integer is assumed.
11791 </li>
11792 <li><i>Boolean filters</i>. Used to specify acceptable values for
11793 boolean device attributes. The format of the string is:
11794
11795 <tt>true|false|yes|no|0|1</tt>
11796
11797 </li>
11798 <li><i>Exact match</i>. Used to specify a single value for the given
11799 device attribute. Any string that doesn't start with <tt>int:</tt>
11800 represents the exact match. String device attributes are compared to
11801 this string including case of symbols. Integer attributes are first
11802 converted to a string (see individual filter attributes) and then
11803 compared ignoring case.
11804
11805 </li>
11806 <li><i>Any match</i>. Any value of the corresponding device attribute
11807 will match the given filter. An empty or @c null string is
11808 used to construct this type of filtering expressions.
11809
11810 </li>
11811 </ul>
11812
11813 <note>
11814 On the Windows host platform, interval filters are not currently
11815 available. Also all string filter attributes
11816 (<link to="#manufacturer"/>, <link to="#product"/>,
11817 <link to="#serialNumber"/>) are ignored, so they behave as
11818 <i>any match</i> no matter what string expression is specified.
11819 </note>
11820
11821 <see>IUSBController::deviceFilters, IHostUSBDeviceFilter</see>
11822 </desc>
11823
11824 <attribute name="name" type="wstring">
11825 <desc>
11826 Visible name for this filter.
11827 This name is used to visually distinguish one filter from another,
11828 so it can neither be @c null nor an empty string.
11829 </desc>
11830 </attribute>
11831
11832 <attribute name="active" type="boolean">
11833 <desc>Whether this filter active or has been temporarily disabled.</desc>
11834 </attribute>
11835
11836 <attribute name="vendorId" type="wstring">
11837 <desc>
11838 <link to="IUSBDevice::vendorId">Vendor ID</link> filter.
11839 The string representation for the <i>exact matching</i>
11840 has the form <tt>XXXX</tt>, where <tt>X</tt> is the hex digit
11841 (including leading zeroes).
11842 </desc>
11843 </attribute>
11844
11845 <attribute name="productId" type="wstring">
11846 <desc>
11847 <link to="IUSBDevice::productId">Product ID</link> filter.
11848 The string representation for the <i>exact matching</i>
11849 has the form <tt>XXXX</tt>, where <tt>X</tt> is the hex digit
11850 (including leading zeroes).
11851 </desc>
11852 </attribute>
11853
11854 <attribute name="revision" type="wstring">
11855 <desc>
11856 <link to="IUSBDevice::productId">Product revision number</link>
11857 filter. The string representation for the <i>exact matching</i>
11858 has the form <tt>IIFF</tt>, where <tt>I</tt> is the decimal digit
11859 of the integer part of the revision, and <tt>F</tt> is the
11860 decimal digit of its fractional part (including leading and
11861 trailing zeros).
11862 Note that for interval filters, it's best to use the hexadecimal
11863 form, because the revision is stored as a 16 bit packed BCD value;
11864 so the expression <tt>int:0x0100-0x0199</tt> will match any
11865 revision from <tt>1.0</tt> to <tt>1.99</tt>.
11866 </desc>
11867 </attribute>
11868
11869 <attribute name="manufacturer" type="wstring">
11870 <desc>
11871 <link to="IUSBDevice::manufacturer">Manufacturer</link> filter.
11872 </desc>
11873 </attribute>
11874
11875 <attribute name="product" type="wstring">
11876 <desc>
11877 <link to="IUSBDevice::product">Product</link> filter.
11878 </desc>
11879 </attribute>
11880
11881 <attribute name="serialNumber" type="wstring">
11882 <desc>
11883 <link to="IUSBDevice::serialNumber">Serial number</link> filter.
11884 </desc>
11885 </attribute>
11886
11887 <attribute name="port" type="wstring">
11888 <desc>
11889 <link to="IUSBDevice::port">Host USB port</link> filter.
11890 </desc>
11891 </attribute>
11892
11893 <attribute name="remote" type="wstring">
11894 <desc>
11895 <link to="IUSBDevice::remote">Remote state</link> filter.
11896 <note>
11897 This filter makes sense only for machine USB filters,
11898 i.e. it is ignored by IHostUSBDeviceFilter objects.
11899 </note>
11900 </desc>
11901 </attribute>
11902
11903 <attribute name="maskedInterfaces" type="unsigned long">
11904 <desc>
11905 This is an advanced option for hiding one or more USB interfaces
11906 from the guest. The value is a bit mask where the bits that are set
11907 means the corresponding USB interface should be hidden, masked off
11908 if you like.
11909 This feature only works on Linux hosts.
11910 </desc>
11911 </attribute>
11912
11913 </interface>
11914
11915
11916 <!--
11917 // IHostUSBDevice
11918 /////////////////////////////////////////////////////////////////////////
11919 -->
11920
11921 <enum
11922 name="USBDeviceState"
11923 uuid="b99a2e65-67fb-4882-82fd-f3e5e8193ab4"
11924 >
11925 <desc>
11926 USB device state. This enumeration represents all possible states
11927 of the USB device physically attached to the host computer regarding
11928 its state on the host computer and availability to guest computers
11929 (all currently running virtual machines).
11930
11931 Once a supported USB device is attached to the host, global USB
11932 filters (<link to="IHost::USBDeviceFilters"/>) are activated. They can
11933 either ignore the device, or put it to USBDeviceState_Held state, or do
11934 nothing. Unless the device is ignored by global filters, filters of all
11935 currently running guests (<link to="IUSBController::deviceFilters"/>) are
11936 activated that can put it to USBDeviceState_Captured state.
11937
11938 If the device was ignored by global filters, or didn't match
11939 any filters at all (including guest ones), it is handled by the host
11940 in a normal way. In this case, the device state is determined by
11941 the host and can be one of USBDeviceState_Unavailable, USBDeviceState_Busy
11942 or USBDeviceState_Available, depending on the current device usage.
11943
11944 Besides auto-capturing based on filters, the device can be manually
11945 captured by guests (<link to="IConsole::attachUSBDevice"/>) if its
11946 state is USBDeviceState_Busy, USBDeviceState_Available or
11947 USBDeviceState_Held.
11948
11949 <note>
11950 Due to differences in USB stack implementations in Linux and Win32,
11951 states USBDeviceState_Busy and USBDeviceState_vailable are applicable
11952 only to the Linux version of the product. This also means that (<link
11953 to="IConsole::attachUSBDevice"/>) can only succeed on Win32 if the
11954 device state is USBDeviceState_Held.
11955 </note>
11956
11957 <see>IHostUSBDevice, IHostUSBDeviceFilter</see>
11958 </desc>
11959
11960 <const name="NotSupported" value="0">
11961 <desc>
11962 Not supported by the VirtualBox server, not available to guests.
11963 </desc>
11964 </const>
11965 <const name="Unavailable" value="1">
11966 <desc>
11967 Being used by the host computer exclusively,
11968 not available to guests.
11969 </desc>
11970 </const>
11971 <const name="Busy" value="2">
11972 <desc>
11973 Being used by the host computer, potentially available to guests.
11974 </desc>
11975 </const>
11976 <const name="Available" value="3">
11977 <desc>
11978 Not used by the host computer, available to guests (the host computer
11979 can also start using the device at any time).
11980 </desc>
11981 </const>
11982 <const name="Held" value="4">
11983 <desc>
11984 Held by the VirtualBox server (ignored by the host computer),
11985 available to guests.
11986 </desc>
11987 </const>
11988 <const name="Captured" value="5">
11989 <desc>
11990 Captured by one of the guest computers, not available
11991 to anybody else.
11992 </desc>
11993 </const>
11994 </enum>
11995
11996 <interface
11997 name="IHostUSBDevice" extends="IUSBDevice"
11998 uuid="173b4b44-d268-4334-a00d-b6521c9a740a"
11999 wsmap="managed"
12000 >
12001 <desc>
12002 The IHostUSBDevice interface represents a physical USB device attached
12003 to the host computer.
12004
12005 Besides properties inherited from IUSBDevice, this interface adds the
12006 <link to="#state"/> property that holds the current state of the USB
12007 device.
12008
12009 <see>IHost::USBDevices, IHost::USBDeviceFilters</see>
12010 </desc>
12011
12012 <attribute name="state" type="USBDeviceState" readonly="yes">
12013 <desc>
12014 Current state of the device.
12015 </desc>
12016 </attribute>
12017
12018 <!-- @todo add class, subclass, bandwidth, configs, interfaces endpoints and such later. -->
12019
12020 </interface>
12021
12022
12023 <!--
12024 // IHostUSBDeviceFilter
12025 /////////////////////////////////////////////////////////////////////////
12026 -->
12027
12028 <enum
12029 name="USBDeviceFilterAction"
12030 uuid="cbc30a49-2f4e-43b5-9da6-121320475933"
12031 >
12032 <desc>
12033 Actions for host USB device filters.
12034 <see>IHostUSBDeviceFilter, USBDeviceState</see>
12035 </desc>
12036
12037 <const name="Null" value="0">
12038 <desc>Null value (never used by the API).</desc>
12039 </const>
12040 <const name="Ignore" value="1">
12041 <desc>Ignore the matched USB device.</desc>
12042 </const>
12043 <const name="Hold" value="2">
12044 <desc>Hold the matched USB device.</desc>
12045 </const>
12046 </enum>
12047
12048 <interface
12049 name="IHostUSBDeviceFilter" extends="IUSBDeviceFilter"
12050 uuid="4cc70246-d74a-400f-8222-3900489c0374"
12051 wsmap="managed"
12052 >
12053 <desc>
12054 The IHostUSBDeviceFilter interface represents a global filter for a
12055 physical USB device used by the host computer. Used indirectly in
12056 <link to="IHost::USBDeviceFilters"/>.
12057
12058 Using filters of this type, the host computer determines the initial
12059 state of the USB device after it is physically attached to the
12060 host's USB controller.
12061
12062 <note>
12063 The <link to="#remote"/> attribute is ignored by this type of
12064 filters, because it makes sense only for
12065 <link to="IUSBController::deviceFilters">machine USB filters</link>.
12066 </note>
12067
12068 <see>IHost::USBDeviceFilters</see>
12069 </desc>
12070
12071 <attribute name="action" type="USBDeviceFilterAction">
12072 <desc>
12073 Action performed by the host when an attached USB device
12074 matches this filter.
12075 </desc>
12076 </attribute>
12077
12078 </interface>
12079
12080 <!--
12081 // IAudioAdapter
12082 /////////////////////////////////////////////////////////////////////////
12083 -->
12084
12085 <enum
12086 name="AudioDriverType"
12087 uuid="4bcc3d73-c2fe-40db-b72f-0c2ca9d68496"
12088 >
12089 <desc>
12090 Host audio driver type.
12091 </desc>
12092
12093 <const name="Null" value="0">
12094 <desc>Null value, also means "dummy audio driver".</desc>
12095 </const>
12096 <const name="WinMM" value="1"/>
12097 <const name="OSS" value="2"/>
12098 <const name="ALSA" value="3"/>
12099 <const name="DirectSound" value="4"/>
12100 <const name="CoreAudio" value="5"/>
12101 <const name="MMPM" value="6"/>
12102 <const name="Pulse" value="7"/>
12103 <const name="SolAudio" value="8"/>
12104 </enum>
12105
12106 <enum
12107 name="AudioControllerType"
12108 uuid="7afd395c-42c3-444e-8788-3ce80292f36c"
12109 >
12110 <desc>
12111 Virtual audio controller type.
12112 </desc>
12113
12114 <const name="AC97" value="0"/>
12115 <const name="SB16" value="1"/>
12116 </enum>
12117
12118 <interface
12119 name="IAudioAdapter" extends="$unknown"
12120 uuid="921873db-5f3f-4b69-91f9-7be9e535a2cb"
12121 wsmap="managed"
12122 >
12123 <desc>
12124 The IAudioAdapter interface represents the virtual audio adapter of
12125 the virtual machine. Used in <link to="IMachine::audioAdapter"/>.
12126 </desc>
12127 <attribute name="enabled" type="boolean">
12128 <desc>
12129 Flag whether the audio adapter is present in the
12130 guest system. If disabled, the virtual guest hardware will
12131 not contain any audio adapter. Can only be changed when
12132 the VM is not running.
12133 </desc>
12134 </attribute>
12135 <attribute name="audioController" type="AudioControllerType">
12136 <desc>
12137 The audio hardware we emulate.
12138 </desc>
12139 </attribute>
12140 <attribute name="audioDriver" type="AudioDriverType">
12141 <desc>
12142 Audio driver the adapter is connected to. This setting
12143 can only be changed when the VM is not running.
12144 </desc>
12145 </attribute>
12146 </interface>
12147
12148 <!--
12149 // IVRDPServer
12150 /////////////////////////////////////////////////////////////////////////
12151 -->
12152
12153 <enum
12154 name="VRDPAuthType"
12155 uuid="3d91887a-b67f-4b33-85bf-2da7ab1ea83a"
12156 >
12157 <desc>
12158 VRDP authentication type.
12159 </desc>
12160
12161 <const name="Null" value="0">
12162 <desc>Null value, also means "no authentication".</desc>
12163 </const>
12164 <const name="External" value="1"/>
12165 <const name="Guest" value="2"/>
12166 </enum>
12167
12168 <interface
12169 name="IVRDPServer" extends="$unknown"
12170 uuid="f4584ae7-6bce-474b-83d6-17d235e6aa89"
12171 wsmap="managed"
12172 >
12173 <attribute name="enabled" type="boolean">
12174 <desc>VRDP server status.</desc>
12175 </attribute>
12176
12177 <attribute name="port" type="unsigned long">
12178 <desc>
12179 VRDP server port number.
12180 <note>
12181 Setting the value of this property to <tt>0</tt> will reset the port
12182 number to the default value which is
12183 currently <tt>3389</tt>. Reading this property will always return a
12184 real port number, even after it has been set to <tt>0</tt> (in which
12185 case the default port is returned).
12186 </note>
12187 </desc>
12188 </attribute>
12189
12190 <attribute name="netAddress" type="wstring">
12191 <desc>VRDP server address.</desc>
12192 </attribute>
12193
12194 <attribute name="authType" type="VRDPAuthType">
12195 <desc>VRDP authentication method.</desc>
12196 </attribute>
12197
12198 <attribute name="authTimeout" type="unsigned long">
12199 <desc>Timeout for guest authentication. Milliseconds.</desc>
12200 </attribute>
12201
12202 <attribute name="allowMultiConnection" type="boolean">
12203 <desc>
12204 Flag whether multiple simultaneous connections to the VM are permitted.
12205 Note that this will be replaced by a more powerful mechanism in the future.
12206 </desc>
12207 </attribute>
12208
12209 <attribute name="reuseSingleConnection" type="boolean">
12210 <desc>
12211 Flag whether the existing connection must be dropped and a new connection
12212 must be established by the VRDP server, when a new client connects in single
12213 connection mode.
12214 </desc>
12215 </attribute>
12216
12217 </interface>
12218
12219
12220 <!--
12221 // ISharedFolder
12222 /////////////////////////////////////////////////////////////////////////
12223 -->
12224
12225 <interface
12226 name="ISharedFolder" extends="$unknown"
12227 uuid="64637bb2-9e17-471c-b8f3-f8968dd9884e"
12228 wsmap="struct"
12229 >
12230 <desc>
12231 The ISharedFolder interface represents a folder in the host computer's
12232 file system accessible from the guest OS running inside a virtual
12233 machine using an associated logical name.
12234
12235 There are three types of shared folders:
12236 <ul>
12237 <li><i>Global</i> (<link to="IVirtualBox::sharedFolders"/>), shared
12238 folders available to all virtual machines.</li>
12239 <li><i>Permanent</i> (<link to="IMachine::sharedFolders"/>),
12240 VM-specific shared folders available to the given virtual machine at
12241 startup.</li>
12242 <li><i>Transient</i> (<link to="IConsole::sharedFolders"/>),
12243 VM-specific shared folders created in the session context (for
12244 example, when the virtual machine is running) and automatically
12245 discarded when the session is closed (the VM is powered off).</li>
12246 </ul>
12247
12248 Logical names of shared folders must be unique within the given scope
12249 (global, permanent or transient). However, they do not need to be unique
12250 across scopes. In this case, the definition of the shared folder in a
12251 more specific scope takes precedence over definitions in all other
12252 scopes. The order of precedence is (more specific to more general):
12253 <ol>
12254 <li>Transient definitions</li>
12255 <li>Permanent definitions</li>
12256 <li>Global definitions</li>
12257 </ol>
12258
12259 For example, if MyMachine has a shared folder named
12260 <tt>C_DRIVE</tt> (that points to <tt>C:\\</tt>), then creating a
12261 transient shared folder named <tt>C_DRIVE</tt> (that points
12262 to <tt>C:\\\\WINDOWS</tt>) will change the definition
12263 of <tt>C_DRIVE</tt> in the guest OS so
12264 that <tt>\\\\VBOXSVR\\C_DRIVE</tt> will give access
12265 to <tt>C:\\WINDOWS</tt> instead of <tt>C:\\</tt> on the host
12266 PC. Removing the transient shared folder <tt>C_DRIVE</tt> will restore
12267 the previous (permanent) definition of <tt>C_DRIVE</tt> that points
12268 to <tt>C:\\</tt> if it still exists.
12269
12270 Note that permanent and transient shared folders of different machines
12271 are in different name spaces, so they don't overlap and don't need to
12272 have unique logical names.
12273
12274 <note>
12275 Global shared folders are not implemented in the current version of the
12276 product.
12277 </note>
12278 </desc>
12279
12280 <attribute name="name" type="wstring" readonly="yes">
12281 <desc>Logical name of the shared folder.</desc>
12282 </attribute>
12283
12284 <attribute name="hostPath" type="wstring" readonly="yes">
12285 <desc>Full path to the shared folder in the host file system.</desc>
12286 </attribute>
12287
12288 <attribute name="accessible" type="boolean" readonly="yes">
12289 <desc>
12290 Whether the folder defined by the host path is currently
12291 accessible or not.
12292 For example, the folder can be unaccessible if it is placed
12293 on the network share that is not available by the time
12294 this property is read.
12295 </desc>
12296 </attribute>
12297
12298 <attribute name="writable" type="boolean" readonly="yes">
12299 <desc>
12300 Whether the folder defined by the host path is writable or
12301 not.
12302 </desc>
12303 </attribute>
12304
12305 <attribute name="lastAccessError" type="wstring" readonly="yes">
12306 <desc>
12307 Text message that represents the result of the last accessibility
12308 check.
12309
12310 Accessibility checks are performed each time the <link to="#accessible"/>
12311 attribute is read. An empty string is returned if the last
12312 accessibility check was successful. A non-empty string indicates a
12313 failure and should normally describe a reason of the failure (for
12314 example, a file read error).
12315 </desc>
12316 </attribute>
12317
12318 </interface>
12319
12320 <!--
12321 // ISession
12322 /////////////////////////////////////////////////////////////////////////
12323 -->
12324
12325 <interface
12326 name="IInternalSessionControl" extends="$unknown"
12327 uuid="b26552e7-9534-4f47-b766-98eac648a90d"
12328 internal="yes"
12329 wsmap="suppress"
12330 >
12331 <method name="getPID">
12332 <desc>PID of the process that has created this Session object.
12333 </desc>
12334 <param name="pid" type="unsigned long" dir="return"/>
12335 </method>
12336
12337 <method name="getRemoteConsole">
12338 <desc>
12339 Returns the console object suitable for remote control.
12340
12341 <result name="VBOX_E_INVALID_VM_STATE">
12342 Session state prevents operation.
12343 </result>
12344 <result name="VBOX_E_INVALID_OBJECT_STATE">
12345 Session type prevents operation.
12346 </result>
12347
12348 </desc>
12349 <param name="console" type="IConsole" dir="return"/>
12350 </method>
12351
12352 <method name="assignMachine">
12353 <desc>
12354 Assigns the machine object associated with this direct-type
12355 session or informs the session that it will be a remote one
12356 (if @a machine == @c null).
12357
12358 <result name="VBOX_E_INVALID_VM_STATE">
12359 Session state prevents operation.
12360 </result>
12361 <result name="VBOX_E_INVALID_OBJECT_STATE">
12362 Session type prevents operation.
12363 </result>
12364
12365 </desc>
12366 <param name="machine" type="IMachine" dir="in"/>
12367 </method>
12368
12369 <method name="assignRemoteMachine">
12370 <desc>
12371 Assigns the machine and the (remote) console object associated with
12372 this remote-type session.
12373
12374 <result name="VBOX_E_INVALID_VM_STATE">
12375 Session state prevents operation.
12376 </result>
12377
12378 </desc>
12379 <param name="machine" type="IMachine" dir="in"/>
12380 <param name="console" type="IConsole" dir="in"/>
12381 </method>
12382
12383 <method name="updateMachineState">
12384 <desc>
12385 Updates the machine state in the VM process.
12386 Must be called only in certain cases
12387 (see the method implementation).
12388
12389 <result name="VBOX_E_INVALID_VM_STATE">
12390 Session state prevents operation.
12391 </result>
12392 <result name="VBOX_E_INVALID_OBJECT_STATE">
12393 Session type prevents operation.
12394 </result>
12395
12396 </desc>
12397 <param name="aMachineState" type="MachineState" dir="in"/>
12398 </method>
12399
12400 <method name="uninitialize">
12401 <desc>
12402 Uninitializes (closes) this session. Used by VirtualBox to close
12403 the corresponding remote session when the direct session dies
12404 or gets closed.
12405
12406 <result name="VBOX_E_INVALID_VM_STATE">
12407 Session state prevents operation.
12408 </result>
12409
12410 </desc>
12411 </method>
12412
12413 <method name="onDVDDriveChange">
12414 <desc>
12415 Triggered when settings of the DVD drive object of the
12416 associated virtual machine have changed.
12417
12418 <result name="VBOX_E_INVALID_VM_STATE">
12419 Session state prevents operation.
12420 </result>
12421 <result name="VBOX_E_INVALID_OBJECT_STATE">
12422 Session type prevents operation.
12423 </result>
12424
12425 </desc>
12426 </method>
12427
12428 <method name="onFloppyDriveChange">
12429 <desc>
12430 Triggered when settings of the floppy drive object of the
12431 associated virtual machine have changed.
12432
12433 <result name="VBOX_E_INVALID_VM_STATE">
12434 Session state prevents operation.
12435 </result>
12436 <result name="VBOX_E_INVALID_OBJECT_STATE">
12437 Session type prevents operation.
12438 </result>
12439
12440 </desc>
12441 </method>
12442
12443 <method name="onNetworkAdapterChange">
12444 <desc>
12445 Triggered when settings of a network adapter of the
12446 associated virtual machine have changed.
12447
12448 <result name="VBOX_E_INVALID_VM_STATE">
12449 Session state prevents operation.
12450 </result>
12451 <result name="VBOX_E_INVALID_OBJECT_STATE">
12452 Session type prevents operation.
12453 </result>
12454
12455 </desc>
12456 <param name="networkAdapter" type="INetworkAdapter" dir="in"/>
12457 </method>
12458
12459 <method name="onSerialPortChange">
12460 <desc>
12461 Triggered when settings of a serial port of the
12462 associated virtual machine have changed.
12463
12464 <result name="VBOX_E_INVALID_VM_STATE">
12465 Session state prevents operation.
12466 </result>
12467 <result name="VBOX_E_INVALID_OBJECT_STATE">
12468 Session type prevents operation.
12469 </result>
12470
12471 </desc>
12472 <param name="serialPort" type="ISerialPort" dir="in"/>
12473 </method>
12474
12475 <method name="onParallelPortChange">
12476 <desc>
12477 Triggered when settings of a parallel port of the
12478 associated virtual machine have changed.
12479
12480 <result name="VBOX_E_INVALID_VM_STATE">
12481 Session state prevents operation.
12482 </result>
12483 <result name="VBOX_E_INVALID_OBJECT_STATE">
12484 Session type prevents operation.
12485 </result>
12486
12487 </desc>
12488 <param name="parallelPort" type="IParallelPort" dir="in"/>
12489 </method>
12490
12491 <method name="onStorageControllerChange">
12492 <desc>
12493 Triggered when settings of a storage controller of the
12494 associated virtual machine have changed.
12495
12496 <result name="VBOX_E_INVALID_VM_STATE">
12497 Session state prevents operation.
12498 </result>
12499 <result name="VBOX_E_INVALID_OBJECT_STATE">
12500 Session type prevents operation.
12501 </result>
12502
12503 </desc>
12504 </method>
12505
12506 <method name="onVRDPServerChange">
12507 <desc>
12508 Triggered when settings of the VRDP server object of the
12509 associated virtual machine have changed.
12510
12511 <result name="VBOX_E_INVALID_VM_STATE">
12512 Session state prevents operation.
12513 </result>
12514 <result name="VBOX_E_INVALID_OBJECT_STATE">
12515 Session type prevents operation.
12516 </result>
12517
12518 </desc>
12519 </method>
12520
12521 <method name="onUSBControllerChange">
12522 <desc>
12523 Triggered when settings of the USB controller object of the
12524 associated virtual machine have changed.
12525
12526 <result name="VBOX_E_INVALID_VM_STATE">
12527 Session state prevents operation.
12528 </result>
12529 <result name="VBOX_E_INVALID_OBJECT_STATE">
12530 Session type prevents operation.
12531 </result>
12532
12533 </desc>
12534 </method>
12535
12536 <method name="onSharedFolderChange">
12537 <desc>
12538 Triggered when a permanent (global or machine) shared folder has been
12539 created or removed.
12540 <note>
12541 We don't pass shared folder parameters in this notification because
12542 the order in which parallel notifications are delivered is not defined,
12543 therefore it could happen that these parameters were outdated by the
12544 time of processing this notification.
12545 </note>
12546
12547 <result name="VBOX_E_INVALID_VM_STATE">
12548 Session state prevents operation.
12549 </result>
12550 <result name="VBOX_E_INVALID_OBJECT_STATE">
12551 Session type prevents operation.
12552 </result>
12553
12554 </desc>
12555 <param name="global" type="boolean" dir="in"/>
12556 </method>
12557
12558 <method name="onUSBDeviceAttach">
12559 <desc>
12560 Triggered when a request to capture a USB device (as a result
12561 of matched USB filters or direct call to
12562 <link to="IConsole::attachUSBDevice"/>) has completed.
12563 A @c null @a error object means success, otherwise it
12564 describes a failure.
12565
12566 <result name="VBOX_E_INVALID_VM_STATE">
12567 Session state prevents operation.
12568 </result>
12569 <result name="VBOX_E_INVALID_OBJECT_STATE">
12570 Session type prevents operation.
12571 </result>
12572
12573 </desc>
12574 <param name="device" type="IUSBDevice" dir="in"/>
12575 <param name="error" type="IVirtualBoxErrorInfo" dir="in"/>
12576 <param name="maskedInterfaces" type="unsigned long" dir="in"/>
12577 </method>
12578
12579 <method name="onUSBDeviceDetach">
12580 <desc>
12581 Triggered when a request to release the USB device (as a result
12582 of machine termination or direct call to
12583 <link to="IConsole::detachUSBDevice"/>) has completed.
12584 A @c null @a error object means success, otherwise it
12585 describes a failure.
12586
12587 <result name="VBOX_E_INVALID_VM_STATE">
12588 Session state prevents operation.
12589 </result>
12590 <result name="VBOX_E_INVALID_OBJECT_STATE">
12591 Session type prevents operation.
12592 </result>
12593
12594 </desc>
12595 <param name="id" type="wstring" dir="in"/>
12596 <param name="error" type="IVirtualBoxErrorInfo" dir="in"/>
12597 </method>
12598
12599 <method name="onShowWindow">
12600 <desc>
12601 Called by <link to="IMachine::canShowConsoleWindow"/> and by
12602 <link to="IMachine::showConsoleWindow"/> in order to notify
12603 console callbacks
12604 <link to="IConsoleCallback::onCanShowWindow"/>
12605 and <link to="IConsoleCallback::onShowWindow"/>.
12606
12607 <result name="VBOX_E_INVALID_OBJECT_STATE">
12608 Session type prevents operation.
12609 </result>
12610
12611 </desc>
12612 <param name="check" type="boolean" dir="in"/>
12613 <param name="canShow" type="boolean" dir="out"/>
12614 <param name="winId" type="unsigned long long" dir="out"/>
12615 </method>
12616
12617 <method name="accessGuestProperty">
12618 <desc>
12619 Called by <link to="IMachine::getGuestProperty"/> and by
12620 <link to="IMachine::setGuestProperty"/> in order to read and
12621 modify guest properties.
12622
12623 <result name="VBOX_E_INVALID_VM_STATE">
12624 Machine session is not open.
12625 </result>
12626 <result name="VBOX_E_INVALID_OBJECT_STATE">
12627 Session type is not direct.
12628 </result>
12629
12630 </desc>
12631 <param name="name" type="wstring" dir="in"/>
12632 <param name="value" type="wstring" dir="in"/>
12633 <param name="flags" type="wstring" dir="in"/>
12634 <param name="isSetter" type="boolean" dir="in"/>
12635 <param name="retValue" type="wstring" dir="out"/>
12636 <param name="retTimestamp" type="unsigned long long" dir="out"/>
12637 <param name="retFlags" type="wstring" dir="out"/>
12638 </method>
12639
12640 <method name="enumerateGuestProperties">
12641 <desc>
12642 Return a list of the guest properties matching a set of patterns along
12643 with their values, time stamps and flags.
12644
12645 <result name="VBOX_E_INVALID_VM_STATE">
12646 Machine session is not open.
12647 </result>
12648 <result name="VBOX_E_INVALID_OBJECT_STATE">
12649 Session type is not direct.
12650 </result>
12651
12652 </desc>
12653 <param name="patterns" type="wstring" dir="in">
12654 <desc>
12655 The patterns to match the properties against as a comma-separated
12656 string. If this is empty, all properties currently set will be
12657 returned.
12658 </desc>
12659 </param>
12660 <param name="key" type="wstring" dir="out" safearray="yes">
12661 <desc>
12662 The key names of the properties returned.
12663 </desc>
12664 </param>
12665 <param name="value" type="wstring" dir="out" safearray="yes">
12666 <desc>
12667 The values of the properties returned. The array entries match the
12668 corresponding entries in the @a key array.
12669 </desc>
12670 </param>
12671 <param name="timestamp" type="unsigned long long" dir="out" safearray="yes">
12672 <desc>
12673 The time stamps of the properties returned. The array entries match
12674 the corresponding entries in the @a key array.
12675 </desc>
12676 </param>
12677 <param name="flags" type="wstring" dir="out" safearray="yes">
12678 <desc>
12679 The flags of the properties returned. The array entries match the
12680 corresponding entries in the @a key array.
12681 </desc>
12682 </param>
12683 </method>
12684
12685 </interface>
12686
12687 <interface
12688 name="ISession" extends="$dispatched"
12689 uuid="12F4DCDB-12B2-4ec1-B7CD-DDD9F6C5BF4D"
12690 wsmap="managed"
12691 >
12692 <desc>
12693 The ISession interface represents a serialization primitive for virtual
12694 machines.
12695
12696 With VirtualBox, every time one wishes to manipulate a virtual machine
12697 (e.g. change its settings or start execution), a session object is
12698 required. Such an object must be passed to one of the session methods
12699 that open the given session, which then initiates the machine manipulation.
12700
12701 A session serves several purposes: it identifies to the inter-process VirtualBox
12702 code which process is currently working with the virtual machine, and it ensures
12703 that there are no incompatible requests from several processes for the
12704 same virtual machine. Session objects can therefore be thought of as mutex
12705 semaphores that lock virtual machines to prevent conflicting accesses from
12706 several processes.
12707
12708 How sessions objects are used depends on whether you use the Main API
12709 via COM or via the webservice:
12710
12711 <ul>
12712 <li>When using the COM API directly, an object of the Session class from the
12713 VirtualBox type library needs to be created. In regular COM C++ client code,
12714 this can be done by calling <tt>createLocalObject()</tt>, a standard COM API.
12715 This object will then act as a local session object in further calls to open
12716 a session.
12717 </li>
12718
12719 <li>In the webservice, the session manager (IWebsessionManager) instead creates
12720 one session object automatically when <link to="IWebsessionManager::logon" />
12721 is called. A managed object reference to that session object can be retrieved by
12722 calling <link to="IWebsessionManager::getSessionObject" />. This session object
12723 reference can then be used to open sessions.
12724 </li>
12725 </ul>
12726
12727 Sessions are mainly used in two variations:
12728
12729 <ul>
12730 <li>
12731 To start a virtual machine in a separate process, one would call
12732 <link to="IVirtualBox::openRemoteSession"/>, which requires a session
12733 object as its first parameter. This session then identifies the caller
12734 and lets him control the started machine (for example, pause machine
12735 execution or power it down) as well as be notified about machine
12736 execution state changes.
12737 </li>
12738
12739 <li>To alter machine settings, or to start machine execution within the
12740 current process, one needs to open a direct session for the machine first by
12741 calling <link to="IVirtualBox::openSession"/>. While a direct session
12742 is open within one process, no any other process may open another direct
12743 session for the same machine. This prevents the machine from being changed
12744 by other processes while it is running or while the machine is being configured.
12745 </li>
12746 </ul>
12747
12748 One also can attach to an existing direct session already opened by
12749 another process (for example, in order to send a control request to the
12750 virtual machine such as the pause or the reset request). This is done by
12751 calling <link to="IVirtualBox::openExistingSession"/>.
12752
12753 <note>
12754 Unless you are trying to write a new VirtualBox front-end that
12755 performs direct machine execution (like the VirtualBox or VBoxSDL
12756 front-ends), don't call <link to="IConsole::powerUp"/> in a direct
12757 session opened by <link to="IVirtualBox::openSession"/> and use this
12758 session only to change virtual machine settings. If you simply want to
12759 start virtual machine execution using one of the existing front-ends
12760 (for example the VirtualBox GUI or headless server), simply use
12761 <link to="IVirtualBox::openRemoteSession"/>; these front-ends
12762 will power up the machine automatically for you.
12763 </note>
12764 </desc>
12765
12766 <attribute name="state" type="SessionState" readonly="yes">
12767 <desc>Current state of this session.</desc>
12768 </attribute>
12769
12770 <attribute name="type" type="SessionType" readonly="yes">
12771 <desc>
12772 Type of this session. The value of this attribute is valid only
12773 if the session is currently open (i.e. its #state is
12774 SessionType_SessionOpen), otherwise an error will be returned.
12775 </desc>
12776 </attribute>
12777
12778 <attribute name="machine" type="IMachine" readonly="yes">
12779 <desc>Machine object associated with this session.</desc>
12780 </attribute>
12781
12782 <attribute name="console" type="IConsole" readonly="yes">
12783 <desc>Console object associated with this session.</desc>
12784 </attribute>
12785
12786 <method name="close">
12787 <desc>
12788 Closes a session that was previously opened.
12789
12790 It is recommended that every time an "open session" method (such as
12791 <link to="IVirtualBox::openRemoteSession" /> or
12792 <link to="IVirtualBox::openSession" />) has been called to
12793 manipulate a virtual machine, the caller invoke
12794 ISession::close() when it's done doing so. Since sessions are
12795 serialization primitives much like ordinary mutexes, they are
12796 best used the same way: for each "open" call, there should be
12797 a matching "close" call, even when errors occur.
12798
12799 Otherwise, if a direct session for a machine opened with
12800 <link to="IVirtualBox::openSession"/> is not explicitly closed
12801 when the application terminates, the state of the machine will
12802 be set to <link to="MachineState_Aborted" /> on the server.
12803
12804 Generally, it is recommended to close all open sessions explicitly
12805 before terminating the application (regardless of the reason for
12806 the termination).
12807
12808 <note>
12809 Do not expect the session state (<link to="ISession::state" />
12810 to return to "Closed" immediately after you invoke
12811 ISession::close(), particularly if you have started a remote
12812 session to execute the VM in a new process. The session state will
12813 automatically return to "Closed" once the VM is no longer executing,
12814 which can of course take a very long time.
12815 </note>
12816
12817 <result name="E_UNEXPECTED">
12818 Session is not open.
12819 </result>
12820
12821 </desc>
12822 </method>
12823
12824 </interface>
12825
12826 <!--
12827 // IStorageController
12828 /////////////////////////////////////////////////////////////////////////
12829 -->
12830
12831 <enum
12832 name="StorageBus"
12833 uuid="f381fdca-5953-41d0-b2bd-0542b012698d"
12834 >
12835 <desc>
12836 The connection type of the storage controller.
12837 </desc>
12838 <const name="Null" value="0">
12839 <desc>@c null value. Never used by the API.</desc>
12840 </const>
12841 <const name="IDE" value="1"/>
12842 <const name="SATA" value="2"/>
12843 <const name="SCSI" value="3"/>
12844 </enum>
12845
12846 <enum
12847 name="StorageControllerType"
12848 uuid="685387db-a837-4320-a258-08f46a22f62a"
12849 >
12850 <desc>
12851 Storage controller type.
12852 </desc>
12853
12854 <const name="Null" value="0">
12855 <desc>@c null value. Never used by the API.</desc>
12856 </const>
12857 <const name="LsiLogic" value="1"/>
12858 <const name="BusLogic" value="2"/>
12859 <const name="IntelAhci" value="3"/>
12860 <const name="PIIX3" value="4"/>
12861 <const name="PIIX4" value="5"/>
12862 <const name="ICH6" value="6"/>
12863 </enum>
12864
12865 <interface
12866 name="IStorageController" extends="$unknown"
12867 uuid="6bf8335b-d14a-44a5-9b45-ddc49ce7d5b2"
12868 wsmap="managed"
12869 >
12870 <desc>
12871 Represents a storage controller that is attached to a virtual machine
12872 (<link to="IMachine" />). Just as hard disks are attached to storage
12873 controllers in a real computer, virtual hard disks (represented by
12874 <link to="IHardDisk" />) are attached to virtual storage controllers,
12875 represented by this interface.
12876
12877 VirtualBox supports three types of virtual storage controller hardware:
12878 IDE, SCSI, and SATA (see <link to="#bus" />). Depending on which of
12879 these three is used, certain sub-types are available and can be
12880 selected in <link to="#controllerType" />.
12881 </desc>
12882
12883 <attribute name="name" type="wstring" readonly="yes">
12884 <desc>
12885 Name of the storage controller, as originally specified with
12886 <link to="IMachine::addStorageController" />. This then uniquely
12887 identifies this controller with other method calls such as
12888 <link to="IMachine::attachHardDisk" />.
12889 </desc>
12890 </attribute>
12891
12892 <attribute name="maxDevicesPerPortCount" type="unsigned long" readonly="yes">
12893 <desc>
12894 Maximum number of devices which can be attached to one port.
12895 </desc>
12896 </attribute>
12897
12898 <attribute name="minPortCount" type="unsigned long" readonly="yes">
12899 <desc>
12900 Minimum number of ports that <link to="IStorageController::portCount"/> can be set to.
12901 </desc>
12902 </attribute>
12903
12904 <attribute name="maxPortCount" type="unsigned long" readonly="yes">
12905 <desc>
12906 Maximum number of ports that <link to="IStorageController::portCount"/> can be set to.
12907 </desc>
12908 </attribute>
12909
12910 <attribute name="instance" type="unsigned long">
12911 <desc>
12912 The instance number of the device in the running VM.
12913 </desc>
12914 </attribute>
12915
12916 <attribute name="portCount" type="unsigned long">
12917 <desc>
12918 The number of currently usable ports on the controller.
12919 The minimum and maximum number of ports for one controller are
12920 stored in <link to="IStorageController::minPortCount"/>
12921 and <link to="IStorageController::maxPortCount"/>.
12922 </desc>
12923 </attribute>
12924
12925 <attribute name="bus" type="StorageBus" readonly="yes">
12926 <desc>
12927 The connection type of the storage controller.
12928 </desc>
12929 </attribute>
12930
12931 <attribute name="controllerType" type="StorageControllerType">
12932 <desc>
12933 Type of the virtual storage controller. Depending on this value,
12934 VirtualBox will provide a different virtual storage controller hardware
12935 to the guest.
12936
12937 For SCSI controllers, the default type is LsiLogic.
12938 </desc>
12939 </attribute>
12940
12941 <method name="GetIDEEmulationPort">
12942 <desc>
12943 Gets the corresponding port number which is emulated as an IDE device.
12944
12945 <result name="E_INVALIDARG">
12946 The @a devicePosition is not in the range 0 to 3.
12947 </result>
12948 <result name="E_NOTIMPL">
12949 The storage controller type is not SATAIntelAhci.
12950 </result>
12951
12952 </desc>
12953 <param name="devicePosition" type="long" dir="in"/>
12954 <param name="portNumber" type="long" dir="return"/>
12955 </method>
12956
12957 <method name="SetIDEEmulationPort">
12958 <desc>
12959 Sets the port number which is emulated as an IDE device.
12960
12961 <result name="E_INVALIDARG">
12962 The @a devicePosition is not in the range 0 to 3 or the
12963 @a portNumber is not in the range 0 to 29.
12964 </result>
12965 <result name="E_NOTIMPL">
12966 The storage controller type is not SATAIntelAhci.
12967 </result>
12968
12969 </desc>
12970 <param name="devicePosition" type="long" dir="in"/>
12971 <param name="portNumber" type="long" dir="in"/>
12972 </method>
12973
12974 </interface>
12975
12976<if target="wsdl">
12977
12978 <!--
12979 // IManagedObjectRef
12980 /////////////////////////////////////////////////////////////////////////
12981 -->
12982
12983 <interface
12984 name="IManagedObjectRef" extends="$unknown"
12985 uuid="9474d09d-2313-46de-b568-a42b8718e8ed"
12986 internal="yes"
12987 wsmap="managed"
12988 wscpp="hardcoded"
12989 >
12990 <desc>
12991 Managed object reference.
12992
12993 Only within the webservice, a managed object reference (which is really
12994 an opaque number) allows a webservice client to address an object
12995 that lives in the address space of the webservice server.
12996
12997 Behind each managed object reference, there is a COM object that lives
12998 in the webservice server's address space. The COM object is not freed
12999 until the managed object reference is released, either by an explicit
13000 call to <link to="IManagedObjectRef::release" /> or by logging off from
13001 the webservice (<link to="IWebsessionManager::logoff" />), which releases
13002 all objects created during the webservice session.
13003
13004 Whenever a method call of the VirtualBox API returns a COM object, the
13005 webservice representation of that method will instead return a
13006 managed object reference, which can then be used to invoke methods
13007 on that object.
13008 </desc>
13009
13010 <method name="getInterfaceName">
13011 <desc>
13012 Returns the name of the interface that this managed object represents,
13013 for example, "IMachine", as a string.
13014 </desc>
13015 <param name="return" type="wstring" dir="return"/>
13016 </method>
13017
13018 <method name="release">
13019 <desc>
13020 Releases this managed object reference and frees the resources that
13021 were allocated for it in the webservice server process. After calling
13022 this method, the identifier of the reference can no longer be used.
13023 </desc>
13024 </method>
13025
13026 </interface>
13027
13028 <!--
13029 // IWebsessionManager
13030 /////////////////////////////////////////////////////////////////////////
13031 -->
13032
13033 <interface
13034 name="IWebsessionManager" extends="$unknown"
13035 uuid="dea1b4c7-2de3-418a-850d-7868617f7733"
13036 internal="yes"
13037 wsmap="global"
13038 wscpp="hardcoded"
13039 >
13040 <desc>
13041 Websession manager. This provides essential services
13042 to webservice clients.
13043 </desc>
13044 <method name="logon">
13045 <desc>
13046 Logs a new client onto the webservice and returns a managed object reference to
13047 the IVirtualBox instance, which the client can then use as a basis to further
13048 queries, since all calls to the VirtualBox API are based on the IVirtualBox
13049 interface, in one way or the other.
13050 </desc>
13051 <param name="username" type="wstring" dir="in"/>
13052 <param name="password" type="wstring" dir="in"/>
13053 <param name="return" type="IVirtualBox" dir="return"/>
13054 </method>
13055
13056 <method name="getSessionObject">
13057 <desc>
13058 Returns a managed object reference to the internal ISession object that was created
13059 for this web service session when the client logged on.
13060
13061 <see>ISession</see>
13062 </desc>
13063 <param name="refIVirtualBox" type="IVirtualBox" dir="in"/>
13064 <param name="return" type="ISession" dir="return"/>
13065 </method>
13066
13067 <method name="logoff">
13068 <desc>
13069 Logs off the client who has previously logged on with <link to="IWebsessionManager::logoff" />
13070 and destroys all resources associated with the session (most importantly, all
13071 managed objects created in the server while the session was active).
13072 </desc>
13073 <param name="refIVirtualBox" type="IVirtualBox" dir="in"/>
13074 </method>
13075
13076 </interface>
13077
13078</if>
13079
13080 <!--
13081 // IPerformanceCollector & friends
13082 /////////////////////////////////////////////////////////////////////////
13083 -->
13084
13085 <interface
13086 name="IPerformanceMetric" extends="$unknown"
13087 uuid="2a1a60ae-9345-4019-ad53-d34ba41cbfe9" wsmap="managed"
13088 >
13089 <desc>
13090 The IPerformanceMetric interface represents parameters of the given
13091 performance metric.
13092 </desc>
13093
13094 <attribute name="metricName" type="wstring" readonly="yes">
13095 <desc>
13096 Name of the metric.
13097 </desc>
13098 </attribute>
13099
13100 <attribute name="object" type="$unknown" readonly="yes">
13101 <desc>
13102 Object this metric belongs to.
13103 </desc>
13104 </attribute>
13105
13106 <attribute name="description" type="wstring" readonly="yes">
13107 <desc>
13108 Textual description of the metric.
13109 </desc>
13110 </attribute>
13111
13112 <attribute name="period" type="unsigned long" readonly="yes">
13113 <desc>
13114 Time interval between samples, measured in seconds.
13115 </desc>
13116 </attribute>
13117
13118 <attribute name="count" type="unsigned long" readonly="yes">
13119 <desc>
13120 Number of recent samples retained by the performance collector for this
13121 metric.
13122
13123 When the collected sample count exceeds this number, older samples
13124 are discarded.
13125 </desc>
13126 </attribute>
13127
13128 <attribute name="unit" type="wstring" readonly="yes">
13129 <desc>
13130 Unit of measurement.
13131 </desc>
13132 </attribute>
13133
13134 <attribute name="minimumValue" type="long" readonly="yes">
13135 <desc>
13136 Minimum possible value of this metric.
13137 </desc>
13138 </attribute>
13139
13140 <attribute name="maximumValue" type="long" readonly="yes">
13141 <desc>
13142 Maximum possible value of this metric.
13143 </desc>
13144 </attribute>
13145 </interface>
13146
13147 <interface
13148 name="IPerformanceCollector" extends="$unknown"
13149 uuid="e22e1acb-ac4a-43bb-a31c-17321659b0c6"
13150 wsmap="managed"
13151 >
13152 <desc>
13153 The IPerformanceCollector interface represents a service that collects and
13154 stores performance metrics data.
13155
13156 Performance metrics are associated with objects of interfaces like IHost and
13157 IMachine. Each object has a distinct set of performance metrics.
13158 The set can be obtained with <link to="IPerformanceCollector::getMetrics"/>.
13159
13160 Metric data is collected at the specified intervals and is retained
13161 internally. The interval and the number of retained samples can be set
13162 with <link to="IPerformanceCollector::setupMetrics" />.
13163
13164 Metrics are organized hierarchically, with each level separated by a
13165 slash (/) character. Generally, the scheme for metric names is like this:
13166
13167 <tt>Category/Metric[/SubMetric][:aggregation]</tt>
13168
13169 "Category/Metric" together form the base metric name. A base metric is the
13170 smallest unit for which a sampling interval and the number of retained
13171 samples can be set. Only base metrics can be enabled and disabled. All
13172 sub-metrics are collected when their base metric is collected.
13173 Collected values for any set of sub-metrics can be queried with
13174 <link to="IPerformanceCollector::queryMetricsData" />.
13175
13176 For example "CPU/Load/User:avg"
13177 metric name stands for the "CPU" category, "Load" metric, "User" submetric,
13178 "average" aggregate. An aggregate function is computed over all retained
13179 data. Valid aggregate functions are:
13180
13181 <ul>
13182 <li>avg -- average</li>
13183 <li>min -- minimum</li>
13184 <li>max -- maximum</li>
13185 </ul>
13186
13187 When setting up
13188 metric parameters, querying metric data, enabling or disabling metrics
13189 wildcards can be used in metric names to specify a subset of metrics. For
13190 example, to select all CPU-related metrics use <tt>CPU/*</tt>, all
13191 averages can be queried using <tt>*:avg</tt> and so on. To query metric
13192 values without aggregates <tt>*:</tt> can be used.
13193
13194 The valid names for base metrics are:
13195
13196 <ul>
13197 <li>CPU/Load</li>
13198 <li>CPU/MHz</li>
13199 <li>RAM/Usage</li>
13200 </ul>
13201
13202 The general sequence for collecting and retrieving the metrics is:
13203 <ul>
13204 <li>
13205 Obtain an instance of IPerformanceCollector with
13206 <link to="IVirtualBox::performanceCollector" />
13207 </li>
13208 <li>
13209 Allocate and populate an array with references to objects the metrics
13210 will be collected for. Use references to IHost and IMachine objects.
13211 </li>
13212 <li>
13213 Allocate and populate an array with base metric names the data will be
13214 collected for.
13215 </li>
13216 <li>
13217 Call <link to="IPerformanceCollector::setupMetrics" />. From now on the
13218 metric data will be collected and stored.
13219 </li>
13220 <li>
13221 Wait for the data to get collected.
13222 </li>
13223 <li>
13224 Allocate and populate an array with references to objects the metric
13225 values will be queried for. You can re-use the object array used for
13226 setting base metrics.
13227 </li>
13228 <li>
13229 Allocate and populate an array with metric names the data will be
13230 collected for. Note that metric names differ from base metric names.
13231 </li>
13232 <li>
13233 Call <link to="IPerformanceCollector::queryMetricsData" />. The data that
13234 have been collected so far are returned. Note that the values are still
13235 retained internally and data collection continues.
13236 </li>
13237 </ul>
13238
13239 For an example of usage refer to the following files in VirtualBox SDK:
13240 <ul>
13241 <li>
13242 Java: <tt>bindings/webservice/java/jax-ws/samples/metrictest.java</tt>
13243 </li>
13244 <li>
13245 Python: <tt>bindings/xpcom/python/sample/shellcommon.py</tt>
13246 </li>
13247 </ul>
13248 </desc>
13249
13250 <attribute name="metricNames" type="wstring" readonly="yes" safearray="yes">
13251 <desc>
13252 Array of unique names of metrics.
13253
13254 This array represents all metrics supported by the performance
13255 collector. Individual objects do not necessarily support all of them.
13256 <link to="IPerformanceCollector::getMetrics"/> can be used to get the
13257 list of supported metrics for a particular object.
13258 </desc>
13259 </attribute>
13260
13261 <method name="getMetrics">
13262 <desc>
13263 Returns parameters of specified metrics for a set of objects.
13264 <note>
13265 @c Null metrics array means all metrics. @c Null object array means
13266 all existing objects.
13267 </note>
13268 </desc>
13269 <param name="metricNames" type="wstring" dir="in" safearray="yes">
13270 <desc>
13271 Metric name filter. Currently, only a comma-separated list of metrics
13272 is supported.
13273 </desc>
13274 </param>
13275 <param name="objects" type="$unknown" dir="in" safearray="yes">
13276 <desc>
13277 Set of objects to return metric parameters for.
13278 </desc>
13279 </param>
13280 <param name="metrics" type="IPerformanceMetric" dir="return" safearray="yes">
13281 <desc>
13282 Array of returned metric parameters.
13283 </desc>
13284 </param>
13285 </method>
13286
13287 <method name="setupMetrics">
13288 <desc>
13289 Sets parameters of specified base metrics for a set of objects. Returns
13290 an array of <link to="IPerformanceMetric" /> describing the metrics have
13291 been affected.
13292 <note>
13293 @c Null or empty metric name array means all metrics. @c Null or empty
13294 object array means all existing objects. If metric name array contains
13295 a single element and object array contains many, the single metric
13296 name array element is applied to each object array element to form
13297 metric/object pairs.
13298 </note>
13299 </desc>
13300 <param name="metricNames" type="wstring" dir="in" safearray="yes">
13301 <desc>
13302 Metric name filter. Comma-separated list of metrics with wildcard
13303 support.
13304 </desc>
13305 </param>
13306 <param name="objects" type="$unknown" dir="in" safearray="yes">
13307 <desc>
13308 Set of objects to setup metric parameters for.
13309 </desc>
13310 </param>
13311 <param name="period" type="unsigned long" dir="in">
13312 <desc>
13313 Time interval in seconds between two consecutive samples of performance
13314 data.
13315 </desc>
13316 </param>
13317 <param name="count" type="unsigned long" dir="in">
13318 <desc>
13319 Number of samples to retain in performance data history. Older samples
13320 get discarded.
13321 </desc>
13322 </param>
13323 <param name="affectedMetrics" type="IPerformanceMetric" dir="return" safearray="yes">
13324 <desc>
13325 Array of metrics that have been modified by the call to this method.
13326 </desc>
13327 </param>
13328 </method>
13329
13330 <method name="enableMetrics">
13331 <desc>
13332 Turns on collecting specified base metrics. Returns an array of
13333 <link to="IPerformanceMetric" /> describing the metrics have been
13334 affected.
13335 <note>
13336 @c Null or empty metric name array means all metrics. @c Null or empty
13337 object array means all existing objects. If metric name array contains
13338 a single element and object array contains many, the single metric
13339 name array element is applied to each object array element to form
13340 metric/object pairs.
13341 </note>
13342 </desc>
13343 <param name="metricNames" type="wstring" dir="in" safearray="yes">
13344 <desc>
13345 Metric name filter. Comma-separated list of metrics with wildcard
13346 support.
13347 </desc>
13348 </param>
13349 <param name="objects" type="$unknown" dir="in" safearray="yes">
13350 <desc>
13351 Set of objects to enable metrics for.
13352 </desc>
13353 </param>
13354 <param name="affectedMetrics" type="IPerformanceMetric" dir="return" safearray="yes">
13355 <desc>
13356 Array of metrics that have been modified by the call to this method.
13357 </desc>
13358 </param>
13359 </method>
13360
13361 <method name="disableMetrics">
13362 <desc>
13363 Turns off collecting specified base metrics. Returns an array of
13364 <link to="IPerformanceMetric" /> describing the metrics have been
13365 affected.
13366 <note>
13367 @c Null or empty metric name array means all metrics. @c Null or empty
13368 object array means all existing objects. If metric name array contains
13369 a single element and object array contains many, the single metric
13370 name array element is applied to each object array element to form
13371 metric/object pairs.
13372 </note>
13373 </desc>
13374 <param name="metricNames" type="wstring" dir="in" safearray="yes">
13375 <desc>
13376 Metric name filter. Comma-separated list of metrics with wildcard
13377 support.
13378 </desc>
13379 </param>
13380 <param name="objects" type="$unknown" dir="in" safearray="yes">
13381 <desc>
13382 Set of objects to disable metrics for.
13383 </desc>
13384 </param>
13385 <param name="affectedMetrics" type="IPerformanceMetric" dir="return" safearray="yes">
13386 <desc>
13387 Array of metrics that have been modified by the call to this method.
13388 </desc>
13389 </param>
13390 </method>
13391
13392 <method name="queryMetricsData">
13393 <desc>
13394 Queries collected metrics data for a set of objects.
13395
13396 The data itself and related metric information are returned in seven
13397 parallel and one flattened array of arrays. Elements of
13398 <tt>returnMetricNames, returnObjects, returnUnits, returnScales,
13399 returnSequenceNumbers, returnDataIndices and returnDataLengths</tt> with
13400 the same index describe one set of values corresponding to a single
13401 metric.
13402
13403 The <tt>returnData</tt> parameter is a flattened array of arrays. Each
13404 start and length of a sub-array is indicated by
13405 <tt>returnDataIndices</tt> and <tt>returnDataLengths</tt>. The first
13406 value for metric <tt>metricNames[i]</tt> is at
13407 <tt>returnData[returnIndices[i]]</tt>.
13408
13409 <note>
13410 @c Null or empty metric name array means all metrics. @c Null or empty
13411 object array means all existing objects. If metric name array contains
13412 a single element and object array contains many, the single metric
13413 name array element is applied to each object array element to form
13414 metric/object pairs.
13415 </note>
13416 <note>
13417 Data collection continues behind the scenes after call to
13418 @c queryMetricsData. The return data can be seen as the snapshot of
13419 the current state at the time of @c queryMetricsData call. The
13420 internally kept metric values are not cleared by the call. This makes
13421 possible querying different subsets of metrics or aggregates with
13422 subsequent calls. If periodic querying is needed it is highly
13423 suggested to query the values with @c interval*count period to avoid
13424 confusion. This way a completely new set of data values will be
13425 provided by each query.
13426 </note>
13427 </desc>
13428 <param name="metricNames" type="wstring" dir="in" safearray="yes">
13429 <desc>
13430 Metric name filter. Comma-separated list of metrics with wildcard
13431 support.
13432 </desc>
13433 </param>
13434 <param name="objects" type="$unknown" dir="in" safearray="yes">
13435 <desc>
13436 Set of objects to query metrics for.
13437 </desc>
13438 </param>
13439 <param name="returnMetricNames" type="wstring" dir="out" safearray="yes">
13440 <desc>
13441 Names of metrics returned in @c returnData.
13442 </desc>
13443 </param>
13444 <param name="returnObjects" type="$unknown" dir="out" safearray="yes">
13445 <desc>
13446 Objects associated with metrics returned in @c returnData.
13447 </desc>
13448 </param>
13449 <param name="returnUnits" type="wstring" dir="out" safearray="yes">
13450 <desc>
13451 Units of measurement for each returned metric.
13452 </desc>
13453 </param>
13454 <param name="returnScales" type="unsigned long" dir="out" safearray="yes">
13455 <desc>
13456 Divisor that should be applied to return values in order to get
13457 floating point values. For example:
13458 <tt>(double)returnData[returnDataIndices[0]+i] / returnScales[0]</tt>
13459 will retrieve the floating point value of i-th sample of the first
13460 metric.
13461 </desc>
13462 </param>
13463 <param name="returnSequenceNumbers" type="unsigned long" dir="out" safearray="yes">
13464 <desc>
13465 Sequence numbers of the first elements of value sequences of particular metrics
13466 returned in @c returnData. For aggregate metrics it is the sequence number of
13467 the sample the aggregate started calculation from.
13468 </desc>
13469 </param>
13470 <param name="returnDataIndices" type="unsigned long" dir="out" safearray="yes">
13471 <desc>
13472 Indices of the first elements of value sequences of particular metrics
13473 returned in @c returnData.
13474 </desc>
13475 </param>
13476 <param name="returnDataLengths" type="unsigned long" dir="out" safearray="yes">
13477 <desc>
13478 Lengths of value sequences of particular metrics.
13479 </desc>
13480 </param>
13481 <param name="returnData" type="long" dir="return" safearray="yes">
13482 <desc>
13483 Flattened array of all metric data containing sequences of values for
13484 each metric.
13485 </desc>
13486 </param>
13487 </method>
13488
13489 </interface>
13490
13491 <module name="VBoxSVC" context="LocalServer">
13492 <class name="VirtualBox" uuid="B1A7A4F2-47B9-4A1E-82B2-07CCD5323C3F"
13493 namespace="virtualbox.org">
13494 <interface name="IVirtualBox" default="yes"/>
13495 </class>
13496 </module>
13497
13498 <module name="VBoxC" context="InprocServer" threadingModel="Free">
13499 <class name="Session" uuid="3C02F46D-C9D2-4f11-A384-53F0CF917214"
13500 namespace="virtualbox.org">
13501 <interface name="ISession" default="yes"/>
13502 </class>
13503 </module>
13504
13505</library>
13506
13507</idl>
13508
13509<!-- vim: set shiftwidth=2 tabstop=2 expandtab: -->
Note: See TracBrowser for help on using the repository browser.

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