VirtualBox

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

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

API/HardDisk: allow cloning to existing images. just a stub for now.

  • Property svn:eol-style set to native
File size: 496.5 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 <result name="E_INVALIDARG">
1884 @a format is a @c null or empty string.
1885 </result>
1886 </desc>
1887 <param name="format" type="wstring" dir="in">
1888 <desc>
1889 Identifier of the storage format to use for the new hard disk.
1890 </desc>
1891 </param>
1892 <param name="location" type="wstring" dir="in">
1893 <desc>
1894 Location of the storage unit for the new hard disk.
1895 </desc>
1896 </param>
1897 <param name="hardDisk" type="IHardDisk" dir="return">
1898 <desc>Created hard disk object.</desc>
1899 </param>
1900 </method>
1901
1902 <method name="openHardDisk">
1903 <desc>
1904 Opens a hard disk from an existing location, optionally replacing
1905 the image UUID and/or parent UUID.
1906
1907 After the hard disk is successfully opened by this method, it gets
1908 remembered by (known to) this VirtualBox installation and will be
1909 accessible through <link to="#getHardDisk"/> and
1910 <link to="#findHardDisk"/> methods. Remembered root (base) hard disks
1911 are also returned as part of the <link to="#hardDisks"/> array and can
1912 be attached to virtual machines. See IHardDisk for more details.
1913
1914 If a differencing hard disk is to be opened by this method, the
1915 operation will succeed only if its parent hard disk and all ancestors,
1916 if any, are already known to this VirtualBox installation (for example,
1917 were opened by this method before).
1918
1919 This method tries to guess the storage format of the specified hard disk
1920 by reading hard disk data at the specified location.
1921
1922 If @a write is ReadWrite (which it should be), the image is opened for
1923 read/write access and must have according permissions, as VirtualBox
1924 may actually write status information into the disk's metadata sections.
1925
1926 Note that write access is required for all typical image usage in VirtualBox,
1927 since VirtualBox may need to write metadata such as a UUID into the image.
1928 The only exception is opening a source image temporarily for copying and
1929 cloning when the image will quickly be closed again.
1930
1931 Note that the format of the location string is storage format specific.
1932 See <link to="IMedium::location"/>, IHardDisk and
1933 <link to="ISystemProperties::defaultHardDiskFolder"/> for more details.
1934
1935 <result name="VBOX_E_FILE_ERROR">
1936 Invalid hard disk storage file location or could not find the hard
1937 disk at the specified location.
1938 </result>
1939 <result name="VBOX_E_IPRT_ERROR">
1940 Could not get hard disk storage format.
1941 </result>
1942 <result name="E_INVALIDARG">
1943 Invalid hard disk storage format.
1944 </result>
1945
1946 </desc>
1947 <param name="location" type="wstring" dir="in">
1948 <desc>
1949 Location of the storage unit that contains hard disk data in one of
1950 the supported storage formats.
1951 </desc>
1952 </param>
1953 <param name="accessMode" type="AccessMode" dir="in">
1954 <desc>
1955 Determines whether to open the image in read/write or read-only mode.
1956 </desc>
1957 </param>
1958 <param name="setImageId" type="boolean" dir="in">
1959 <desc>
1960 Select whether a new image UUID is set or not.
1961 </desc>
1962 </param>
1963 <param name="imageId" type="wstring" dir="in">
1964 <desc>
1965 New UUID for the image. If an empty string is passed, then a new
1966 UUID is automatically created. Specifying a zero UUIDs is not valid.
1967 </desc>
1968 </param>
1969 <param name="setParentId" type="boolean" dir="in">
1970 <desc>
1971 Select whether a new parent UUID is set or not.
1972 </desc>
1973 </param>
1974 <param name="parentId" type="wstring" dir="in">
1975 <desc>
1976 New parent UUID for the image. If an empty string is passed, then a
1977 new UUID is automatically created, provided @a setParentId is
1978 @c true. A zero UUID is valid.
1979 </desc>
1980 </param>
1981 <param name="hardDisk" type="IHardDisk" dir="return">
1982 <desc>Opened hard disk object.</desc>
1983 </param>
1984 </method>
1985
1986 <method name="getHardDisk" const="yes">
1987 <desc>
1988 Returns a hard disk with the given UUID.
1989
1990 The hard disk with the given UUID must be known to this VirtualBox
1991 installation, i.e. it must be previously created by
1992 <link to="#createHardDisk"/> or opened by <link
1993 to="#openHardDisk"/>, or attached to some known virtual machine.
1994
1995 <result name="VBOX_E_OBJECT_NOT_FOUND">
1996 No hard disk object matching @a id found.
1997 </result>
1998
1999 </desc>
2000 <param name="id" type="wstring" dir="in">
2001 <desc>UUID of the hard disk to look for.</desc>
2002 </param>
2003 <param name="hardDisk" type="IHardDisk" dir="return">
2004 <desc>Found hard disk object.</desc>
2005 </param>
2006 </method>
2007
2008 <method name="findHardDisk">
2009 <desc>
2010 Returns a hard disk that uses the given location to store hard
2011 disk data.
2012
2013 The given hard disk must be known to this VirtualBox installation, i.e.
2014 it must be previously created by
2015 <link to="#createHardDisk"/> or opened by <link
2016 to="#openHardDisk"/>, or attached to some known virtual machine.
2017
2018 The search is done by comparing the value of the @a location argument to
2019 the <link to="IHardDisk::location"/> attribute of each known hard
2020 disk.
2021
2022 For locations represented by file names in the host's file system, the
2023 requested location can be a path relative to the
2024 <link to="IVirtualBox::homeFolder">VirtualBox home folder</link>. If
2025 only a file name without any path is given, the
2026 <link to="ISystemProperties::defaultHardDiskFolder"> default hard disk
2027 folder</link> will be prepended to the file name before searching. Note
2028 that on case sensitive file systems, a case sensitive comparison is
2029 performed, otherwise the case of symbols in the file path is ignored.
2030
2031 <result name="VBOX_E_OBJECT_NOT_FOUND">
2032 No hard disk object matching @a location found.
2033 </result>
2034
2035 </desc>
2036 <param name="location" type="wstring" dir="in">
2037 <desc>Location string to search for.</desc>
2038 </param>
2039 <param name="hardDisk" type="IHardDisk" dir="return">
2040 <desc>Found hard disk object.</desc>
2041 </param>
2042 </method>
2043
2044 <method name="openDVDImage">
2045 <desc>
2046 Opens a CD/DVD image contained in the specified file of the supported
2047 format and assigns it the given UUID.
2048
2049 After the image is successfully opened by this method, it gets
2050 remembered by (known to) this VirtualBox installation and will be
2051 accessible through <link to="#getDVDImage"/> and
2052 <link to="#findDVDImage"/> methods. Remembered images are also
2053 returned as part of the <link to="#DVDImages"/> array and can be mounted
2054 to virtual machines. See IMedium for more details.
2055
2056 See <link to="IMedium::location"/> to get more details about the format
2057 of the location string.
2058
2059 <note>
2060 Currently only ISO 9960 CD/DVD images are supported by VirtualBox.
2061 </note>
2062
2063 <result name="VBOX_E_FILE_ERROR">
2064 Invalid CD/DVD image file location or could not find the CD/DVD
2065 image at the specified location.
2066 </result>
2067 <result name="VBOX_E_INVALID_OBJECT_STATE">
2068 CD/DVD image already exists in the media registry.
2069 </result>
2070
2071 </desc>
2072 <param name="location" type="wstring" dir="in">
2073 <desc>
2074 Full path to the file that contains a valid CD/DVD image.
2075 </desc>
2076 </param>
2077 <param name="id" type="wstring" dir="in">
2078 <desc>
2079 UUID to assign to the given image within this VirtualBox installation.
2080 If an empty (@c null) UUID is specified, the system will randomly
2081 generate a new UUID.
2082 </desc>
2083 </param>
2084 <param name="image" type="IDVDImage" dir="return">
2085 <desc>Opened CD/DVD image object.</desc>
2086 </param>
2087 </method>
2088
2089 <method name="getDVDImage">
2090 <desc>
2091 Returns a CD/DVD image with the given UUID.
2092
2093 The image with the given UUID must be known to this VirtualBox
2094 installation, i.e. it must be previously opened by <link
2095 to="#openDVDImage"/>, or mounted to some known virtual machine.
2096
2097 <result name="VBOX_E_OBJECT_NOT_FOUND">
2098 No matching DVD image found in the media registry.
2099 </result>
2100
2101 </desc>
2102 <param name="id" type="wstring" dir="in">
2103 <desc>UUID of the image to look for.</desc>
2104 </param>
2105 <param name="image" type="IDVDImage" dir="return">
2106 <desc>Found CD/DVD image object.</desc>
2107 </param>
2108 </method>
2109
2110 <method name="findDVDImage">
2111 <desc>
2112 Returns a CD/DVD image with the given image location.
2113
2114 The image with the given UUID must be known to this VirtualBox
2115 installation, i.e. it must be previously opened by <link
2116 to="#openDVDImage"/>, or mounted to some known virtual machine.
2117
2118 The search is done by comparing the value of the @a location argument to
2119 the <link to="IMedium::location"/> attribute of each known CD/DVD image.
2120
2121 The requested location can be a path relative to the
2122 <link to="IVirtualBox::homeFolder">VirtualBox home folder</link>. If
2123 only a file name without any path is given, the
2124 <link to="ISystemProperties::defaultHardDiskFolder"> default hard disk
2125 folder</link> will be prepended to the file name before searching. Note
2126 that on case sensitive file systems, a case sensitive comparison is
2127 performed, otherwise the case in the file path is ignored.
2128
2129 <result name="VBOX_E_FILE_ERROR">
2130 Invalid image file location.
2131 </result>
2132 <result name="VBOX_E_OBJECT_NOT_FOUND">
2133 No matching DVD image found in the media registry.
2134 </result>
2135
2136 </desc>
2137 <param name="location" type="wstring" dir="in">
2138 <desc>CD/DVD image file path to look for.</desc>
2139 </param>
2140 <param name="image" type="IDVDImage" dir="return">
2141 <desc>Found CD/DVD image object.</desc>
2142 </param>
2143 </method>
2144
2145 <method name="openFloppyImage">
2146 <desc>
2147 Opens a floppy image contained in the specified file of the supported
2148 format and assigns it the given UUID.
2149
2150 After the image is successfully opened by this method, it gets
2151 remembered by (known to) this VirtualBox installation and will be
2152 accessible through <link to="#getFloppyImage"/> and
2153 <link to="#findFloppyImage"/> methods. Remembered images are also
2154 returned as part of the <link to="#floppyImages"/> array and can be
2155 mounted to virtual machines. See IMedium for more details.
2156
2157 See <link to="IMedium::location"/> to get more details about the format
2158 of the location string.
2159
2160 <result name="VBOX_E_FILE_ERROR">
2161 Invalid floppy image file location or could not find the floppy
2162 image at the specified location.
2163 </result>
2164 <result name="VBOX_E_INVALID_OBJECT_STATE">
2165 Floppy image already exists in the media registry.
2166 </result>
2167
2168 <note>
2169 Currently, only raw floppy images are supported by VirtualBox.
2170 </note>
2171 </desc>
2172 <param name="location" type="wstring" dir="in">
2173 <desc>
2174 Full path to the file that contains a valid floppy image.
2175 </desc>
2176 </param>
2177 <param name="id" type="wstring" dir="in">
2178 <desc>
2179 UUID to assign to the given image file within this VirtualBox
2180 installation. If an empty (@c null) UUID is specified, the system will
2181 randomly generate a new UUID.
2182 </desc>
2183 </param>
2184 <param name="image" type="IFloppyImage" dir="return">
2185 <desc>Opened floppy image object.</desc>
2186 </param>
2187 </method>
2188
2189 <method name="getFloppyImage">
2190 <desc>
2191 Returns a floppy image with the given UUID.
2192
2193 The image with the given UUID must be known to this VirtualBox
2194 installation, i.e. it must be previously opened by <link
2195 to="#openFloppyImage"/>, or mounted to some known virtual machine.
2196
2197 <result name="VBOX_E_OBJECT_NOT_FOUND">
2198 No matching floppy image found in the media registry.
2199 </result>
2200
2201 </desc>
2202 <param name="id" type="wstring" dir="in">
2203 <desc>UUID of the image to look for.</desc>
2204 </param>
2205 <param name="image" type="IFloppyImage" dir="return">
2206 <desc>Found floppy image object.</desc>
2207 </param>
2208 </method>
2209
2210 <method name="findFloppyImage">
2211 <desc>
2212 Returns a floppy image with the given image location.
2213
2214 The image with the given UUID must be known to this VirtualBox
2215 installation, i.e. it must be previously opened by <link
2216 to="#openFloppyImage"/>, or mounted to some known virtual machine.
2217
2218 The search is done by comparing the value of the @a location argument to
2219 the <link to="IMedium::location"/> attribute of each known floppy image.
2220
2221 The requested location can be a path relative to the
2222 <link to="IVirtualBox::homeFolder">VirtualBox home folder</link>. If
2223 only a file name without any path is given, the
2224 <link to="ISystemProperties::defaultHardDiskFolder"> default hard disk
2225 folder</link> will be prepended to the file name before searching. Note
2226 that on case sensitive file systems, a case sensitive comparison is
2227 performed, otherwise the case of symbols in the file path is ignored.
2228
2229 <result name="VBOX_E_FILE_ERROR">
2230 Invalid image file location.
2231 </result>
2232 <result name="VBOX_E_OBJECT_NOT_FOUND">
2233 No matching floppy image found in the media registry.
2234 </result>
2235
2236 </desc>
2237 <param name="location" type="wstring" dir="in">
2238 <desc>Floppy image file path to look for.</desc>
2239 </param>
2240 <param name="image" type="IFloppyImage" dir="return">
2241 <desc>Found floppy image object.</desc>
2242 </param>
2243 </method>
2244
2245 <method name="getGuestOSType">
2246 <desc>
2247 Returns an object describing the specified guest OS type.
2248
2249 The requested guest OS type is specified using a string which is a
2250 mnemonic identifier of the guest operating system, such as
2251 <tt>"win31"</tt> or <tt>"ubuntu"</tt>. The guest OS type ID of a
2252 particular virtual machine can be read or set using the
2253 <link to="IMachine::OSTypeId"/> attribute.
2254
2255 The <link to="IVirtualBox::guestOSTypes"/> collection contains all
2256 available guest OS type objects. Each object has an
2257 <link to="IGuestOSType::id"/> attribute which contains an identifier of
2258 the guest OS this object describes.
2259
2260 <result name="E_INVALIDARG">
2261 @a id is not a valid Guest OS type.
2262 </result>
2263
2264 </desc>
2265 <param name="id" type="wstring" dir="in">
2266 <desc>Guest OS type ID string.</desc>
2267 </param>
2268 <param name="type" type="IGuestOSType" dir="return">
2269 <desc>Guest OS type object.</desc>
2270 </param>
2271 </method>
2272
2273 <method name="createSharedFolder">
2274 <desc>
2275 Creates a new global shared folder by associating the given logical
2276 name with the given host path, adds it to the collection of shared
2277 folders and starts sharing it. Refer to the description of
2278 <link to="ISharedFolder"/> to read more about logical names.
2279 <note>
2280 In the current implementation, this operation is not
2281 implemented.
2282 </note>
2283 </desc>
2284 <param name="name" type="wstring" dir="in">
2285 <desc>Unique logical name of the shared folder.</desc>
2286 </param>
2287 <param name="hostPath" type="wstring" dir="in">
2288 <desc>Full path to the shared folder in the host file system.</desc>
2289 </param>
2290 <param name="writable" type="boolean" dir="in">
2291 <desc>Whether the share is writable or readonly</desc>
2292 </param>
2293 </method>
2294
2295 <method name="removeSharedFolder">
2296 <desc>
2297 Removes the global shared folder with the given name previously
2298 created by <link to="#createSharedFolder"/> from the collection of
2299 shared folders and stops sharing it.
2300 <note>
2301 In the current implementation, this operation is not
2302 implemented.
2303 </note>
2304 </desc>
2305 <param name="name" type="wstring" dir="in">
2306 <desc>Logical name of the shared folder to remove.</desc>
2307 </param>
2308 </method>
2309
2310 <method name="getNextExtraDataKey">
2311 <desc>
2312 Returns the global extra data key name following the supplied key.
2313
2314 An error is returned if the supplied @a key does not exist. @c null is
2315 returned in @a nextKey if the supplied key is the last key. When
2316 supplying @c null or an empty string for the @a key, the first key item
2317 is returned in @a nextKey (if there is any). @a nextValue is an optional
2318 parameter and if supplied, the next key's value is returned in it.
2319
2320 <result name="VBOX_E_OBJECT_NOT_FOUND">
2321 Extra data @a key not found.
2322 </result>
2323
2324 </desc>
2325 <param name="key" type="wstring" dir="in">
2326 <desc>Name of the data key to follow.</desc>
2327 </param>
2328 <param name="nextKey" type="wstring" dir="out">
2329 <desc>Name of the next data key.</desc>
2330 </param>
2331 <param name="nextValue" type="wstring" dir="out">
2332 <desc>Value of the next data key.</desc>
2333 </param>
2334 </method>
2335
2336 <method name="getExtraData">
2337 <desc>
2338 Returns associated global extra data.
2339
2340 If the requested data @a key does not exist, this function will
2341 succeed and return @c null in the @a value argument.
2342
2343 <result name="VBOX_E_FILE_ERROR">
2344 Settings file not accessible.
2345 </result>
2346 <result name="VBOX_E_XML_ERROR">
2347 Could not parse the settings file.
2348 </result>
2349
2350 </desc>
2351 <param name="key" type="wstring" dir="in">
2352 <desc>Name of the data key to get.</desc>
2353 </param>
2354 <param name="value" type="wstring" dir="return">
2355 <desc>Value of the requested data key.</desc>
2356 </param>
2357 </method>
2358
2359 <method name="setExtraData">
2360 <desc>
2361 Sets associated global extra data.
2362
2363 If you pass @c null as a key @a value, the given @a key will be
2364 deleted.
2365
2366 <note>
2367 Before performing the actual data change, this method will ask all
2368 registered callbacks using the
2369 <link to="IVirtualBoxCallback::onExtraDataCanChange"/>
2370 notification for a permission. If one of the callbacks refuses the
2371 new value, the change will not be performed.
2372 </note>
2373 <note>
2374 On success, the
2375 <link to="IVirtualBoxCallback::onExtraDataChange"/> notification
2376 is called to inform all registered callbacks about a successful data
2377 change.
2378 </note>
2379
2380 <result name="VBOX_E_FILE_ERROR">
2381 Settings file not accessible.
2382 </result>
2383 <result name="VBOX_E_XML_ERROR">
2384 Could not parse the settings file.
2385 </result>
2386 <result name="E_ACCESSDENIED">
2387 Modification request refused.
2388 </result>
2389
2390 </desc>
2391 <param name="key" type="wstring" dir="in">
2392 <desc>Name of the data key to set.</desc>
2393 </param>
2394 <param name="value" type="wstring" dir="in">
2395 <desc>Value to assign to the key.</desc>
2396 </param>
2397 </method>
2398
2399 <method name="openSession">
2400 <desc>
2401 Opens a new direct session with the given virtual machine.
2402
2403 A direct session acts as a local lock on the given VM.
2404 There can be only one direct session open at a time for every
2405 virtual machine, protecting the VM from being manipulated by
2406 conflicting actions from different processes. Only after a
2407 direct session has been opened, one can change all VM settings
2408 and execute the VM in the process space of the session object.
2409
2410 Sessions therefore can be compared to mutex semaphores that
2411 lock a given VM for modification and execution.
2412 See <link to="ISession">ISession</link> for details.
2413
2414 <note>Unless you are writing a new VM frontend, you will not
2415 want to execute a VM in the current process. To spawn a new
2416 process that executes a VM, use
2417 <link to="IVirtualBox::openRemoteSession" />
2418 instead.</note>
2419
2420 Upon successful return, the session object can be used to
2421 get access to the machine and to the VM console.
2422
2423 In VirtualBox terminology, the machine becomes "mutable" after
2424 a session has been opened. Note that the "mutable" machine
2425 object, on which you may invoke IMachine methods to change its
2426 settings, will be a different object from the immutable IMachine
2427 objects returned by various IVirtualBox methods. To obtain a
2428 mutable IMachine object (upon which you can invoke settings methods),
2429 use the <link to="ISession::machine" /> attribute.
2430
2431 One must always call <link to="ISession::close" /> to release the
2432 lock on the machine, or the machine's state will eventually be
2433 set to "Aborted".
2434
2435 In other words, to change settings on a machine, the following
2436 sequence is typically performed:
2437
2438 <ol>
2439 <li>Call this method (openSession) to have a machine locked for
2440 the current session.</li>
2441
2442 <li>Obtain a mutable IMachine object from <link to="ISession::machine" />.</li>
2443
2444 <li>Change the settings of the machine.</li>
2445
2446 <li>Call <link to="IMachine::saveSettings" />.</li>
2447
2448 <li>Close the session by calling <link to="ISession::close"/>.</li>
2449 </ol>
2450
2451 <result name="E_UNEXPECTED">
2452 Virtual machine not registered.
2453 </result>
2454 <result name="E_ACCESSDENIED">
2455 Process not started by OpenRemoteSession.
2456 </result>
2457 <result name="VBOX_E_OBJECT_NOT_FOUND">
2458 No matching virtual machine found.
2459 </result>
2460 <result name="VBOX_E_INVALID_OBJECT_STATE">
2461 Session already open or being opened.
2462 </result>
2463 <result name="VBOX_E_VM_ERROR">
2464 Failed to assign machine to session.
2465 </result>
2466
2467 </desc>
2468 <param name="session" type="ISession" dir="in">
2469 <desc>
2470 Session object that will represent the opened session after
2471 successful method invocation. This object must not represent
2472 the already open session.
2473 <note>
2474 This session will be automatically closed if the
2475 VirtualBox server is terminated for some reason.
2476 </note>
2477 </desc>
2478 </param>
2479 <param name="machineId" type="wstring" dir="in">
2480 <desc>ID of the virtual machine to open a session with.</desc>
2481 </param>
2482 </method>
2483
2484 <method name="openRemoteSession">
2485 <desc>
2486 Spawns a new process that executes a virtual machine (called a
2487 "remote session").
2488
2489 Opening a remote session causes the VirtualBox server to start a new
2490 process that opens a direct session with the given VM. As a result, the
2491 VM is locked by that direct session in the new process, preventing
2492 conflicting changes from other processes. Since sessions act as locks
2493 that prevent conflicting changes, one cannot open a remote session
2494 for a VM that already has another open session (direct or remote), or
2495 is currently in the process of opening one (see <link
2496 to="IMachine::sessionState"/>).
2497
2498 While the remote session still provides some level of control over the
2499 VM execution to the caller (using the <link to="IConsole" /> interface),
2500 not all VM settings are available for modification within the remote
2501 session context.
2502
2503 This operation can take some time (a new VM is started in a new process,
2504 for which memory and other resources need to be set up). Because of this,
2505 an <link to="IProgress" /> is returned to allow the caller to wait for this
2506 asynchronous operation to be completed. Until then, the remote session
2507 object remains in the closed state, and accessing the machine or its
2508 console through it is invalid. It is recommended to use
2509 <link to="IProgress::waitForCompletion" /> or similar calls to wait for
2510 completion.
2511
2512 As with all <link to="ISession" /> objects, it is recommended to call
2513 <link to="ISession::close" /> on the local session object once openRemoteSession()
2514 has been called. However, the session's state (see <link to="ISession::state" />)
2515 will not return to "Closed" until the remote session has also closed (i.e.
2516 until the VM is no longer running). In that case, however, the state of
2517 the session will automatically change back to "Closed".
2518
2519 Currently supported session types (values of the @a type
2520 argument) are:
2521 <ul>
2522 <li><tt>"gui"</tt>: VirtualBox Qt GUI session</li>
2523 <li><tt>"vrdp"</tt>: VirtualBox VRDP Server session</li>
2524 <li><tt>"sdl"</tt>: VirtualBox SDL GUI session</li>
2525 </ul>
2526
2527 The @a environment argument is a string containing definitions of
2528 environment variables in the following format:
2529 @code
2530 NAME[=VALUE]\n
2531 NAME[=VALUE]\n
2532 ...
2533 @endcode
2534 where <tt>\\n</tt> is the new line character. These environment
2535 variables will be appended to the environment of the VirtualBox server
2536 process. If an environment variable exists both in the server process
2537 and in this list, the value from this list takes precedence over the
2538 server's variable. If the value of the environment variable is
2539 omitted, this variable will be removed from the resulting environment.
2540 If the environment string is @c null, the server environment is
2541 inherited by the started process as is.
2542
2543 <see>openExistingSession</see>
2544
2545 <result name="E_UNEXPECTED">
2546 Virtual machine not registered.
2547 </result>
2548 <result name="E_INVALIDARG">
2549 Invalid session type @a type.
2550 </result>
2551 <result name="VBOX_E_OBJECT_NOT_FOUND">
2552 No machine matching @a machineId found.
2553 </result>
2554 <result name="VBOX_E_INVALID_OBJECT_STATE">
2555 Session already open or being opened.
2556 </result>
2557 <result name="VBOX_E_IPRT_ERROR">
2558 Launching process for machine failed.
2559 </result>
2560 <result name="VBOX_E_VM_ERROR">
2561 Failed to assign machine to session.
2562 </result>
2563
2564 </desc>
2565 <param name="session" type="ISession" dir="in">
2566 <desc>
2567 Session object that will represent the opened remote session
2568 after successful method invocation (this object must not
2569 represent an already open session).
2570 </desc>
2571 </param>
2572 <param name="machineId" type="wstring" dir="in">
2573 <desc>ID of the virtual machine to open a session with.</desc>
2574 </param>
2575 <param name="type" type="wstring" dir="in">
2576 <desc>
2577 Type of the remote session (case sensitive).
2578 </desc>
2579 </param>
2580 <param name="environment" type="wstring" dir="in">
2581 <desc>
2582 Environment to pass to the opened session (may be @c null).
2583 </desc>
2584 </param>
2585 <param name="progress" type="IProgress" dir="return">
2586 <desc>Progress object to track the operation completion.</desc>
2587 </param>
2588 </method>
2589
2590 <method name="openExistingSession">
2591 <desc>
2592 Opens a new remote session with the virtual machine for
2593 which a direct session is already open.
2594
2595 The remote session provides some level of control over the VM
2596 execution (using the IConsole interface) to the caller; however,
2597 within the remote session context, not all VM settings are available
2598 for modification.
2599
2600 As opposed to <link to="#openRemoteSession"/>, the number of
2601 remote sessions opened this way is not limited by the API
2602
2603 <note>
2604 It is an error to open a remote session with the machine that
2605 doesn't have an open direct session.
2606 </note>
2607
2608 <result name="E_UNEXPECTED">
2609 Virtual machine not registered.
2610 </result>
2611 <result name="VBOX_E_OBJECT_NOT_FOUND">
2612 No machine matching @a machineId found.
2613 </result>
2614 <result name="VBOX_E_INVALID_OBJECT_STATE">
2615 Session already open or being opened.
2616 </result>
2617 <result name="VBOX_E_INVALID_SESSION_STATE">
2618 Direct session state not Open.
2619 </result>
2620 <result name="VBOX_E_VM_ERROR">
2621 Failed to get console object from direct session or assign
2622 machine to session.
2623 </result>
2624
2625 <see>openRemoteSession</see>
2626 </desc>
2627 <param name="session" type="ISession" dir="in">
2628 <desc>
2629 Session object that will represent the open remote session
2630 after successful method invocation. This object must not
2631 represent an already open session.
2632 <note>
2633 This session will be automatically closed when the peer
2634 (direct) session dies or gets closed.
2635 </note>
2636 </desc>
2637 </param>
2638 <param name="machineId" type="wstring" dir="in">
2639 <desc>ID of the virtual machine to open a session with.</desc>
2640 </param>
2641 </method>
2642
2643 <method name="registerCallback">
2644 <desc>
2645 Registers a new global VirtualBox callback. The methods of the given
2646 callback object will be called by VirtualBox when an appropriate
2647 event occurs.
2648
2649 <result name="E_INVALIDARG">
2650 A @c null callback cannot be registered.
2651 </result>
2652
2653 </desc>
2654 <param name="callback" type="IVirtualBoxCallback" dir="in">
2655 <desc>Callback object to register.</desc>
2656 </param>
2657 </method>
2658
2659 <method name="unregisterCallback">
2660 <desc>
2661 Unregisters the previously registered global VirtualBox callback.
2662
2663 <result name="E_INVALIDARG">
2664 Specified @a callback not registered.
2665 </result>
2666
2667 </desc>
2668 <param name="callback" type="IVirtualBoxCallback" dir="in">
2669 <desc>Callback object to unregister.</desc>
2670 </param>
2671 </method>
2672
2673 <method name="waitForPropertyChange">
2674 <desc>
2675 Blocks the caller until any of the properties represented by the
2676 @a what argument changes the value or until the given timeout interval
2677 expires.
2678
2679 The @a what argument is a comma separated list of property masks that
2680 describe properties the caller is interested in. The property mask is
2681 a string in the following format:
2682
2683 <pre>
2684 [[group.]subgroup.]name
2685 </pre>
2686
2687 where @c name is the property name and @c group, @c subgroup are zero
2688 or more property group specifiers. Each element (group or name) in
2689 the property mask may be either a Latin string or an asterisk symbol
2690 (@c "*") which is used to match any string for the given element. A
2691 property mask that doesn't contain asterisk symbols represents a
2692 single fully qualified property name.
2693
2694 Groups in the fully qualified property name go from more generic (the
2695 left-most part) to more specific (the right-most part). The first
2696 element is usually a name of the object the property belongs to. The
2697 second element may be either a property name, or a child object name,
2698 or an index if the preceding element names an object which is one of
2699 many objects of the same type. This way, property names form a
2700 hierarchy of properties. Here are some examples of property names:
2701
2702 <table>
2703 <tr>
2704 <td><tt>VirtualBox.version</tt></td>
2705 <td><link to="IVirtualBox::version"/> property</td>
2706 </tr>
2707 <tr>
2708 <td><tt>Machine.&lt;UUID&gt;.name</tt></td>
2709 <td><link to="IMachine::name"/> property of the machine with the
2710 given UUID</td>
2711 </tr>
2712 </table>
2713
2714 Most property names directly correspond to the properties of objects
2715 (components) provided by the VirtualBox library and may be used to
2716 track changes to these properties. However, there may be
2717 pseudo-property names that don't correspond to any existing object's
2718 property directly, as well as there may be object properties that
2719 don't have a corresponding property name that is understood by this
2720 method, and therefore changes to such properties cannot be
2721 tracked. See individual object's property descriptions to get a
2722 fully qualified property name that can be used with this method (if
2723 any).
2724
2725 There is a special property mask @c "*" (i.e. a string consisting of a
2726 single asterisk symbol) that can be used to match all properties.
2727 Below are more examples of property masks:
2728
2729 <table>
2730 <tr>
2731 <td><tt>VirtualBox.*</tt></td>
2732 <td>Track all properties of the VirtualBox object</td>
2733 </tr>
2734 <tr>
2735 <td><tt>Machine.*.name</tt></td>
2736 <td>Track changes to the <link to="IMachine::name"/> property of
2737 all registered virtual machines</td>
2738 </tr>
2739 </table>
2740
2741 <note>
2742 This function is not implemented in the current version of the
2743 product.
2744 </note>
2745 </desc>
2746 <param name="what" type="wstring" dir="in">
2747 <desc>Comma separated list of property masks.</desc>
2748 </param>
2749 <param name="timeout" type="unsigned long" dir="in">
2750 <desc>
2751 Wait timeout in milliseconds.
2752 Specify -1 for an indefinite wait.
2753 </desc>
2754 </param>
2755 <param name="changed" type="wstring" dir="out">
2756 <desc>
2757 Comma separated list of properties that have been changed and caused
2758 this method to return to the caller.
2759 </desc>
2760 </param>
2761 <param name="values" type="wstring" dir="out">
2762 <desc>Reserved, not currently used.</desc>
2763 </param>
2764 </method>
2765
2766 <method name="saveSettings">
2767 <desc>
2768 Saves the global settings to the global settings file
2769 (<link to="#settingsFilePath"/>).
2770
2771 This method is only useful for explicitly saving the global settings
2772 file after it has been auto-converted from the old format to the most
2773 recent format (see <link to="#settingsFileVersion"/> for details).
2774 Normally, the global settings file is implicitly saved when a global
2775 setting is changed.
2776
2777 <result name="VBOX_E_FILE_ERROR">
2778 Settings file not accessible.
2779 </result>
2780 <result name="VBOX_E_XML_ERROR">
2781 Could not parse the settings file.
2782 </result>
2783
2784 </desc>
2785 </method>
2786
2787 <method name="saveSettingsWithBackup">
2788 <desc>
2789 Creates a backup copy of the global settings file
2790 (<link to="IVirtualBox::settingsFilePath"/>) in case of auto-conversion,
2791 and then calls <link to="IVirtualBox::saveSettings"/>.
2792
2793 Note that the backup copy is created <b>only</b> if the settings file
2794 auto-conversion took place (see <link to="#settingsFileVersion"/> for
2795 details). Otherwise, this call is fully equivalent to
2796 <link to="IVirtualBox::saveSettings"/> and no backup copying is done.
2797
2798 The backup copy is created in the same directory where the original
2799 settings file is located. It is given the following file name:
2800 <pre>
2801 original.xml.x.y-platform.bak
2802 </pre>
2803 where <tt>original.xml</tt> is the original settings file name
2804 (excluding path), and <tt>x.y-platform</tt> is the version of the old
2805 format of the settings file (before auto-conversion).
2806
2807 If the given backup file already exists, this method will try to add the
2808 <tt>.N</tt> suffix to the backup file name (where @c N counts from
2809 0 to 9) and copy it again until it succeeds. If all suffixes are
2810 occupied, or if any other copy error occurs, this method will return a
2811 failure.
2812
2813 If the copy operation succeeds, the @a bakFileName return argument will
2814 receive a full path to the created backup file (for informational
2815 purposes). Note that this will happen even if the subsequent
2816 <link to="#saveSettings"/> call performed by this method after the
2817 copy operation, fails.
2818
2819 <note>
2820 The VirtualBox API never calls this method. It is intended purely for
2821 the purposes of creating backup copies of the settings files by
2822 front-ends before saving the results of the automatically performed
2823 settings conversion to disk.
2824 </note>
2825
2826 <see>settingsFileVersion</see>
2827
2828 <result name="VBOX_E_FILE_ERROR">
2829 Settings file not accessible.
2830 </result>
2831 <result name="VBOX_E_XML_ERROR">
2832 Could not parse the settings file.
2833 </result>
2834 <result name="VBOX_E_IPRT_ERROR">
2835 Could not copy the settings file.
2836 </result>
2837
2838 </desc>
2839 <param name="bakFileName" type="wstring" dir="return">
2840 <desc>Full path to the created backup copy.</desc>
2841 </param>
2842 </method>
2843
2844 <!--method name="createDHCPServerForInterface">
2845 <desc>
2846 Creates a dhcp server settings to be used for the given interface
2847 <result name="E_INVALIDARG">
2848 Host network interface @a name already exists.
2849 </result>
2850 </desc>
2851 <param name="interface" type="IHostNetworkInterface" dir="in">
2852 <desc>Network Interface</desc>
2853 </param>
2854 <param name="server" type="IDHCPServer" dir="out">
2855 <desc>Dhcp server settings</desc>
2856 </param>
2857 </method-->
2858
2859 <method name="createDHCPServer">
2860 <desc>
2861 Creates a dhcp server settings to be used for the given internal network name
2862 <result name="E_INVALIDARG">
2863 Host network interface @a name already exists.
2864 </result>
2865 </desc>
2866 <param name="name" type="wstring" dir="in">
2867 <desc>server name</desc>
2868 </param>
2869 <param name="server" type="IDHCPServer" dir="return">
2870 <desc>Dhcp server settings</desc>
2871 </param>
2872 </method>
2873
2874 <method name="findDHCPServerByNetworkName">
2875 <desc>
2876 Searches a dhcp server settings to be used for the given internal network name
2877 <result name="E_INVALIDARG">
2878 Host network interface @a name already exists.
2879 </result>
2880
2881 </desc>
2882 <param name="name" type="wstring" dir="in">
2883 <desc>server name</desc>
2884 </param>
2885 <param name="server" type="IDHCPServer" dir="return">
2886 <desc>Dhcp server settings</desc>
2887 </param>
2888 </method>
2889
2890 <!--method name="findDHCPServerForInterface">
2891 <desc>
2892 Searches a dhcp server settings to be used for the given interface
2893 <result name="E_INVALIDARG">
2894 Host network interface @a name already exists.
2895 </result>
2896 </desc>
2897 <param name="interface" type="IHostNetworkInterface" dir="in">
2898 <desc>Network Interface</desc>
2899 </param>
2900 <param name="server" type="IDHCPServer" dir="out">
2901 <desc>Dhcp server settings</desc>
2902 </param>
2903 </method-->
2904
2905 <method name="removeDHCPServer">
2906 <desc>
2907 Removes the dhcp server settings
2908 <result name="E_INVALIDARG">
2909 Host network interface @a name already exists.
2910 </result>
2911 </desc>
2912 <param name="server" type="IDHCPServer" dir="in">
2913 <desc>Dhcp server settings to be removed</desc>
2914 </param>
2915 </method>
2916
2917 </interface>
2918
2919 <!--
2920 // IVFSExplorer
2921 /////////////////////////////////////////////////////////////////////////
2922 -->
2923
2924 <enum
2925 name="VFSType"
2926 uuid="813999ba-b949-48a8-9230-aadc6285e2f2"
2927 >
2928 <desc>
2929 Virtual file systems supported by VFSExplorer.
2930 </desc>
2931
2932 <const name="File" value="1" />
2933 <const name="Cloud" value="2" />
2934 <const name="S3" value="3" />
2935 <const name="WebDav" value="4" />
2936 </enum>
2937
2938 <enum
2939 name="VFSFileType"
2940 uuid="714333cd-44e2-415f-a245-d378fa9b1242"
2941 >
2942 <desc>
2943 File types known by VFSExplorer.
2944 </desc>
2945
2946 <const name="Unknown" value="1" />
2947 <const name="Fifo" value="2" />
2948 <const name="DevChar" value="3" />
2949 <const name="Directory" value="4" />
2950 <const name="DevBlock" value="5" />
2951 <const name="File" value="6" />
2952 <const name="SymLink" value="7" />
2953 <const name="Socket" value="8" />
2954 <const name="WhiteOut" value="9" />
2955 </enum>
2956
2957 <interface
2958 name="IVFSExplorer" extends="$unknown"
2959 uuid="fd7da337-80ef-4a5c-9122-918435e33003"
2960 wsmap="managed"
2961 >
2962 <desc>
2963 The VFSExplorer interface unifies access to different file system
2964 types. This includes local file systems as well remote file systems like
2965 S3. For a list of supported types see <link to="VFSType" />.
2966 An instance of this is returned by <link to="IAppliance::createVFSExplorer" />.
2967 </desc>
2968
2969 <attribute name="path" type="wstring" readonly="yes">
2970 <desc>Returns the current path in the virtual file system.</desc>
2971 </attribute>
2972
2973 <attribute name="type" type="VFSType" readonly="yes">
2974 <desc>Returns the file system type which is currently in use.</desc>
2975 </attribute>
2976
2977 <method name="update">
2978 <desc>Updates the internal list of files/directories from the
2979 current directory level. Use <link to="#entryList" /> to get the full list
2980 after a call to this method.</desc>
2981
2982 <param name="aProgress" type="IProgress" dir="return">
2983 <desc>Progress object to track the operation completion.</desc>
2984 </param>
2985 </method>
2986
2987 <method name="entryList">
2988 <desc>Returns a list of files/directories after a call to <link
2989 to="#update" />. The user is responsible for keeping this internal
2990 list up do date.</desc>
2991
2992 <param name="aNames" type="wstring" safearray="yes" dir="out">
2993 <desc>The list of names for the entries.</desc>
2994 </param>
2995
2996 <param name="aTypes" type="unsigned long" safearray="yes" dir="out">
2997 <desc>The list of types for the entries.</desc>
2998 </param>
2999 </method>
3000
3001 <method name="exists">
3002 <desc>Checks if the given file list exists in the current directory
3003 level.</desc>
3004
3005 <param name="aNames" type="wstring" safearray="yes" dir="in">
3006 <desc>The names to check.</desc>
3007 </param>
3008
3009 <param name="aExists" type="wstring" safearray="yes" dir="return">
3010 <desc>The names which exist.</desc>
3011 </param>
3012 </method>
3013
3014 <method name="remove">
3015 <desc>Deletes the given files in the current directory level.</desc>
3016
3017 <param name="aNames" type="wstring" safearray="yes" dir="in">
3018 <desc>The names to remove.</desc>
3019 </param>
3020
3021 <param name="aProgress" type="IProgress" dir="return">
3022 <desc>Progress object to track the operation completion.</desc>
3023 </param>
3024 </method>
3025
3026 </interface>
3027
3028 <!--
3029 // IAppliance
3030 /////////////////////////////////////////////////////////////////////////
3031 -->
3032
3033 <enum
3034 name="CIMOSType"
3035 uuid="86ef5f8c-18b2-4db8-a314-33721b59f89b"
3036 >
3037 <desc>
3038 OVF operating system values according to CIM V2.20 (as of Nov 2008); http://www.dmtf.org/standards/cim/cim_schema_v220
3039 </desc>
3040
3041 <const name="CIMOS_Unknown" value="0" /> <!-- "Unknown" -->
3042 <const name="CIMOS_Other" value="1" /> <!-- "Other" -->
3043 <const name="CIMOS_MACOS" value="2" /> <!-- "MACOS" -->
3044 <const name="CIMOS_ATTUNIX" value="3" /> <!-- "ATTUNIX" -->
3045 <const name="CIMOS_DGUX" value="4" /> <!-- "DGUX" -->
3046 <const name="CIMOS_DECNT" value="5" /> <!-- "DECNT" -->
3047 <const name="CIMOS_Tru64UNIX" value="6" /> <!-- "Tru64 UNIX" -->
3048 <const name="CIMOS_OpenVMS" value="7" /> <!-- "OpenVMS" -->
3049 <const name="CIMOS_HPUX" value="8" /> <!-- "HPUX" -->
3050 <const name="CIMOS_AIX" value="9" /> <!-- "AIX" -->
3051 <const name="CIMOS_MVS" value="10" /> <!-- "MVS" -->
3052 <const name="CIMOS_OS400" value="11" /> <!-- "OS400" -->
3053 <const name="CIMOS_OS2" value="12" /> <!-- "OS/2" -->
3054 <const name="CIMOS_JavaVM" value="13" /> <!-- "JavaVM" -->
3055 <const name="CIMOS_MSDOS" value="14" /> <!-- "MSDOS" -->
3056 <const name="CIMOS_WIN3x" value="15" /> <!-- "WIN3x" -->
3057 <const name="CIMOS_WIN95" value="16" /> <!-- "WIN95" -->
3058 <const name="CIMOS_WIN98" value="17" /> <!-- "WIN98" -->
3059 <const name="CIMOS_WINNT" value="18" /> <!-- "WINNT" -->
3060 <const name="CIMOS_WINCE" value="19" /> <!-- "WINCE" -->
3061 <const name="CIMOS_NCR3000" value="20" /> <!-- "NCR3000" -->
3062 <const name="CIMOS_NetWare" value="21" /> <!-- "NetWare" -->
3063 <const name="CIMOS_OSF" value="22" /> <!-- "OSF" -->
3064 <const name="CIMOS_DCOS" value="23" /> <!-- "DC/OS" -->
3065 <const name="CIMOS_ReliantUNIX" value="24" /> <!-- "Reliant UNIX" -->
3066 <const name="CIMOS_SCOUnixWare" value="25" /> <!-- "SCO UnixWare" -->
3067 <const name="CIMOS_SCOOpenServer" value="26" /> <!-- "SCO OpenServer" -->
3068 <const name="CIMOS_Sequent" value="27" /> <!-- "Sequent" -->
3069 <const name="CIMOS_IRIX" value="28" /> <!-- "IRIX" -->
3070 <const name="CIMOS_Solaris" value="29" /> <!-- "Solaris" -->
3071 <const name="CIMOS_SunOS" value="30" /> <!-- "SunOS" -->
3072 <const name="CIMOS_U6000" value="31" /> <!-- "U6000" -->
3073 <const name="CIMOS_ASERIES" value="32" /> <!-- "ASERIES" -->
3074 <const name="CIMOS_HPNonStopOS" value="33" /> <!-- "HP NonStop OS" -->
3075 <const name="CIMOS_HPNonStopOSS" value="34" /> <!-- "HP NonStop OSS" -->
3076 <const name="CIMOS_BS2000" value="35" /> <!-- "BS2000" -->
3077 <const name="CIMOS_LINUX" value="36" /> <!-- "LINUX" -->
3078 <const name="CIMOS_Lynx" value="37" /> <!-- "Lynx" -->
3079 <const name="CIMOS_XENIX" value="38" /> <!-- "XENIX" -->
3080 <const name="CIMOS_VM" value="39" /> <!-- "VM" -->
3081 <const name="CIMOS_InteractiveUNIX" value="40" /> <!-- "Interactive UNIX" -->
3082 <const name="CIMOS_BSDUNIX" value="41" /> <!-- "BSDUNIX" -->
3083 <const name="CIMOS_FreeBSD" value="42" /> <!-- "FreeBSD" -->
3084 <const name="CIMOS_NetBSD" value="43" /> <!-- "NetBSD" -->
3085 <const name="CIMOS_GNUHurd" value="44" /> <!-- "GNU Hurd" -->
3086 <const name="CIMOS_OS9" value="45" /> <!-- "OS9" -->
3087 <const name="CIMOS_MACHKernel" value="46" /> <!-- "MACH Kernel" -->
3088 <const name="CIMOS_Inferno" value="47" /> <!-- "Inferno" -->
3089 <const name="CIMOS_QNX" value="48" /> <!-- "QNX" -->
3090 <const name="CIMOS_EPOC" value="49" /> <!-- "EPOC" -->
3091 <const name="CIMOS_IxWorks" value="50" /> <!-- "IxWorks" -->
3092 <const name="CIMOS_VxWorks" value="51" /> <!-- "VxWorks" -->
3093 <const name="CIMOS_MiNT" value="52" /> <!-- "MiNT" -->
3094 <const name="CIMOS_BeOS" value="53" /> <!-- "BeOS" -->
3095 <const name="CIMOS_HPMPE" value="54" /> <!-- "HP MPE" -->
3096 <const name="CIMOS_NextStep" value="55" /> <!-- "NextStep" -->
3097 <const name="CIMOS_PalmPilot" value="56" /> <!-- "PalmPilot" -->
3098 <const name="CIMOS_Rhapsody" value="57" /> <!-- "Rhapsody" -->
3099 <const name="CIMOS_Windows2000" value="58" /> <!-- "Windows 2000" -->
3100 <const name="CIMOS_Dedicated" value="59" /> <!-- "Dedicated" -->
3101 <const name="CIMOS_OS390" value="60" /> <!-- "OS/390" -->
3102 <const name="CIMOS_VSE" value="61" /> <!-- "VSE" -->
3103 <const name="CIMOS_TPF" value="62" /> <!-- "TPF" -->
3104 <const name="CIMOS_WindowsMe" value="63" /> <!-- "Windows (R) Me" -->
3105 <const name="CIMOS_CalderaOpenUNIX" value="64" /> <!-- "Caldera Open UNIX" -->
3106 <const name="CIMOS_OpenBSD" value="65" /> <!-- "OpenBSD" -->
3107 <const name="CIMOS_NotApplicable" value="66" /> <!-- "Not Applicable" -->
3108 <const name="CIMOS_WindowsXP" value="67" /> <!-- "Windows XP" -->
3109 <const name="CIMOS_zOS" value="68" /> <!-- "z/OS" -->
3110 <const name="CIMOS_MicrosoftWindowsServer2003" value="69" /> <!-- "Microsoft Windows Server 2003" -->
3111 <const name="CIMOS_MicrosoftWindowsServer2003_64" value="70" /> <!-- "Microsoft Windows Server 2003 64-Bit" -->
3112 <const name="CIMOS_WindowsXP_64" value="71" /> <!-- "Windows XP 64-Bit" -->
3113 <const name="CIMOS_WindowsXPEmbedded" value="72" /> <!-- "Windows XP Embedded" -->
3114 <const name="CIMOS_WindowsVista" value="73" /> <!-- "Windows Vista" -->
3115 <const name="CIMOS_WindowsVista_64" value="74" /> <!-- "Windows Vista 64-Bit" -->
3116 <const name="CIMOS_WindowsEmbeddedforPointofService" value="75" /> <!-- "Windows Embedded for Point of Service" -->
3117 <const name="CIMOS_MicrosoftWindowsServer2008" value="76" /> <!-- "Microsoft Windows Server 2008" -->
3118 <const name="CIMOS_MicrosoftWindowsServer2008_64" value="77" /> <!-- "Microsoft Windows Server 2008 64-Bit" -->
3119 <const name="CIMOS_FreeBSD_64" value="78" /> <!-- "FreeBSD 64-Bit" -->
3120 <const name="CIMOS_RedHatEnterpriseLinux" value="79" /> <!-- "RedHat Enterprise Linux" -->
3121 <const name="CIMOS_RedHatEnterpriseLinux_64" value="80" /> <!-- "RedHat Enterprise Linux 64-Bit" -->
3122 <const name="CIMOS_Solaris_64" value="81" /> <!-- "Solaris 64-Bit" -->
3123 <const name="CIMOS_SUSE" value="82" /> <!-- "SUSE" -->
3124 <const name="CIMOS_SUSE_64" value="83" /> <!-- "SUSE 64-Bit" -->
3125 <const name="CIMOS_SLES" value="84" /> <!-- "SLES" -->
3126 <const name="CIMOS_SLES_64" value="85" /> <!-- "SLES 64-Bit" -->
3127 <const name="CIMOS_NovellOES" value="86" /> <!-- "Novell OES" -->
3128 <const name="CIMOS_NovellLinuxDesktop" value="87" /> <!-- "Novell Linux Desktop" -->
3129 <const name="CIMOS_SunJavaDesktopSystem" value="88" /> <!-- "Sun Java Desktop System" -->
3130 <const name="CIMOS_Mandriva" value="89" /> <!-- "Mandriva" -->
3131 <const name="CIMOS_Mandriva_64" value="90" /> <!-- "Mandriva 64-Bit" -->
3132 <const name="CIMOS_TurboLinux" value="91" /> <!-- "TurboLinux" -->
3133 <const name="CIMOS_TurboLinux_64" value="92" /> <!-- "TurboLinux 64-Bit" -->
3134 <const name="CIMOS_Ubuntu" value="93" /> <!-- "Ubuntu" -->
3135 <const name="CIMOS_Ubuntu_64" value="94" /> <!-- "Ubuntu 64-Bit" -->
3136 <const name="CIMOS_Debian" value="95" /> <!-- "Debian" -->
3137 <const name="CIMOS_Debian_64" value="96" /> <!-- "Debian 64-Bit" -->
3138 <const name="CIMOS_Linux_2_4_x" value="97" /> <!-- "Linux 2.4.x" -->
3139 <const name="CIMOS_Linux_2_4_x_64" value="98" /> <!-- "Linux 2.4.x 64-Bit" -->
3140 <const name="CIMOS_Linux_2_6_x" value="99" /> <!-- "Linux 2.6.x" -->
3141 <const name="CIMOS_Linux_2_6_x_64" value="100" /> <!-- "Linux 2.6.x 64-Bit" -->
3142 <const name="CIMOS_Linux_64" value="101" /> <!-- "Linux 64-Bit" -->
3143 <const name="CIMOS_Other_64" value="102" /> <!-- "Other 64-Bit" -->
3144 </enum>
3145
3146 <enum
3147 name="OVFResourceType"
3148 uuid="646a78d7-6f04-49f4-82c4-75c28a75a4cd"
3149 >
3150 <desc>
3151 OVF resource type (as listed with CIM_ResourceAllocationSettingData; see for example
3152 http://msdn.microsoft.com/en-us/library/cc136877(VS.85).aspx).
3153 </desc>
3154
3155 <const name="Other" value="1" />
3156 <const name="ComputerSystem" value="2" />
3157 <const name="Processor" value="3" />
3158 <const name="Memory" value="4" />
3159 <const name="IDEController" value="5" />
3160 <const name="ParallelSCSIHBA" value="6" />
3161 <const name="FCHBA" value="7" />
3162 <const name="iSCSIHBA" value="8" />
3163 <const name="IBHCA" value="9" />
3164 <const name="EthernetAdapter" value="10" />
3165 <const name="OtherNetworkAdapter" value="11" />
3166 <const name="IOSlot" value="12" />
3167 <const name="IODevice" value="13" />
3168 <const name="FloppyDrive" value="14" />
3169 <const name="CDDrive" value="15" />
3170 <const name="DVDDrive" value="16" />
3171 <const name="HardDisk" value="17" />
3172 <const name="OtherStorageDevice" value="20" />
3173 <const name="USBController" value="23" />
3174 <const name="SoundCard" value="35" />
3175 </enum>
3176
3177 <interface
3178 name="IAppliance" extends="$unknown"
3179 uuid="07495095-d16c-4911-8964-5914341ced5d"
3180 wsmap="managed"
3181 >
3182 <desc>
3183 Represents a platform-independent appliance in OVF format. An instance of this is returned
3184 by <link to="IVirtualBox::createAppliance" />, which can then be used to import and export
3185 appliances with VirtualBox.
3186
3187 The OVF standard suggests two different physical file formats:
3188
3189 <ol>
3190 <li>If the OVF is distributed as a set of files, then @a file must be a fully qualified
3191 path name to an existing OVF descriptor file with an <tt>.ovf</tt> file extension. If
3192 this descriptor file references other files, as OVF appliances distributed as a set of
3193 files most likely do, those files must be in the same directory as the descriptor file.</li>
3194
3195 <li>If the OVF is distributed as a single file, it must be in TAR format and have the
3196 <tt>.ova</tt> file extension. This TAR file must then contain at least the OVF descriptor
3197 files and optionally other files.
3198
3199 At this time, VirtualBox does not not yet support the packed (TAR) variant; support will
3200 be added with a later version.</li>
3201 </ol>
3202
3203 <b>Importing</b> an OVF appliance into VirtualBox as instances of
3204 <link to="IMachine" /> involves the following sequence of API calls:
3205
3206 <ol>
3207 <li>Call <link to="IVirtualBox::createAppliance" />. This will create an empty IAppliance object.
3208 </li>
3209
3210 <li>On the new object, call <link to="#read" /> with the full path of the OVF file you
3211 would like to import. So long as this file is syntactically valid, this will succeed
3212 and return an instance of IAppliance that contains the parsed data from the OVF file.
3213 </li>
3214
3215 <li>Next, call <link to="#interpret" />, which analyzes the OVF data and sets up the
3216 contents of the IAppliance attributes accordingly. These can be inspected by a
3217 VirtualBox front-end such as the GUI, and the suggestions can be displayed to the
3218 user. In particular, the <link to="#virtualSystemDescriptions" /> array contains
3219 instances of <link to="IVirtualSystemDescription" /> which represent the virtual
3220 systems in the OVF, which in turn describe the virtual hardware prescribed by the
3221 OVF (network and hardware adapters, virtual disk images, memory size and so on).
3222 The GUI can then give the user the option to confirm and/or change these suggestions.
3223 </li>
3224
3225 <li>If desired, call <link to="IVirtualSystemDescription::setFinalValues" /> for each
3226 virtual system to override the suggestions made by the interpret() routine.
3227 </li>
3228
3229 <li>Finally, call <link to="#importMachines" /> to create virtual machines in
3230 VirtualBox as instances of <link to="IMachine" /> that match the information in the
3231 virtual system descriptions.
3232 </li>
3233 </ol>
3234
3235 <b>Exporting</b> VirtualBox machines into an OVF appliance involves the following steps:
3236
3237 <ol>
3238 <li>As with importing, first call <link to="IVirtualBox::createAppliance" /> to create
3239 an empty IAppliance object.
3240 </li>
3241
3242 <li>For each machine you would like to export, call <link to="IMachine::export" />
3243 with the IAppliance object you just created. This creates an instance of
3244 <link to="IVirtualSystemDescription" /> inside the appliance.
3245 </li>
3246
3247 <li>If desired, call <link to="IVirtualSystemDescription::setFinalValues" /> for each
3248 virtual system to override the suggestions made by the export() routine.
3249 </li>
3250
3251 <li>Finally, call <link to="#write" /> with a path specification to have the OVF
3252 file written.</li>
3253 </ol>
3254
3255 </desc>
3256
3257 <attribute name="path" type="wstring" readonly="yes">
3258 <desc>Path to the main file of the OVF appliance, which is either the <tt>.ovf</tt> or
3259 the <tt>.ova</tt> file passed to <link to="#read" /> (for import) or
3260 <link to="#write" /> (for export).
3261 This attribute is empty until one of these methods has been called.
3262 </desc>
3263 </attribute>
3264
3265 <attribute name="disks" type="wstring" readonly="yes" safearray="yes">
3266 <desc>
3267 Array of virtual disk definitions. One such description exists for each
3268 disk definition in the OVF; each string array item represents one such piece of
3269 disk information, with the information fields separated by tab (\\t) characters.
3270
3271 The caller should be prepared for additional fields being appended to
3272 this string in future versions of VirtualBox and therefore check for
3273 the number of tabs in the strings returned.
3274
3275 In the current version, the following eight fields are returned per string
3276 in the array:
3277
3278 <ol>
3279 <li>Disk ID (unique string identifier given to disk)</li>
3280
3281 <li>Capacity (unsigned integer indicating the maximum capacity of the disk)</li>
3282
3283 <li>Populated size (optional unsigned integer indicating the current size of the
3284 disk; can be approximate; -1 if unspecified)</li>
3285
3286 <li>Format (string identifying the disk format, typically
3287 "http://www.vmware.com/specifications/vmdk.html#sparse")</li>
3288
3289 <li>Reference (where to find the disk image, typically a file name; if empty,
3290 then the disk should be created on import)</li>
3291
3292 <li>Image size (optional unsigned integer indicating the size of the image,
3293 which need not necessarily be the same as the values specified above, since
3294 the image may be compressed or sparse; -1 if not specified)</li>
3295
3296 <li>Chunk size (optional unsigned integer if the image is split into chunks;
3297 presently unsupported and always -1)</li>
3298
3299 <li>Compression (optional string equalling "gzip" if the image is gzip-compressed)</li>
3300 </ol>
3301 </desc>
3302 </attribute>
3303
3304 <attribute name="virtualSystemDescriptions" type="IVirtualSystemDescription" readonly="yes" safearray="yes">
3305 <desc> Array of virtual system descriptions. One such description is created
3306 for each virtual system found in the OVF.
3307 This array is empty until either <link to="#interpret" /> (for import) or <link to="IMachine::export" />
3308 (for export) has been called.
3309 </desc>
3310 </attribute>
3311
3312 <method name="read">
3313 <desc>
3314 Reads an OVF file into the appliance object.
3315
3316 This method succeeds if the OVF is syntactically valid and, by itself, without errors. The
3317 mere fact that this method returns successfully does not mean that VirtualBox supports all
3318 features requested by the appliance; this can only be examined after a call to <link to="#interpret" />.
3319 </desc>
3320 <param name="file" type="wstring" dir="in">
3321 <desc>
3322 Name of appliance file to open (either with an <tt>.ovf</tt> or <tt>.ova</tt> extension, depending
3323 on whether the appliance is distributed as a set of files or as a single file, respectively).
3324 </desc>
3325 </param>
3326 </method>
3327
3328 <method name="interpret">
3329 <desc>
3330 Interprets the OVF data that was read when the appliance was constructed. After
3331 calling this method, one can inspect the
3332 <link to="#virtualSystemDescriptions" /> array attribute, which will then contain
3333 one <link to="IVirtualSystemDescription" /> for each virtual machine found in
3334 the appliance.
3335
3336 Calling this method is the second step of importing an appliance into VirtualBox;
3337 see <link to="IAppliance" /> for an overview.
3338
3339 After calling this method, one should call <link to="#getWarnings" /> to find out
3340 if problems were encountered during the processing which might later lead to
3341 errors.
3342 </desc>
3343 </method>
3344
3345 <method name="importMachines">
3346 <desc>
3347 Imports the appliance into VirtualBox by creating instances of <link to="IMachine" />
3348 and other interfaces that match the information contained in the appliance as
3349 closely as possible, as represented by the import instructions in the
3350 <link to="#virtualSystemDescriptions" /> array.
3351
3352 Calling this method is the final step of importing an appliance into VirtualBox;
3353 see <link to="IAppliance" /> for an overview.
3354
3355 Since importing the appliance will most probably involve copying and converting
3356 disk images, which can take a long time, this method operates asynchronously and
3357 returns an IProgress object to allow the caller to monitor the progress.
3358 </desc>
3359
3360 <param name="aProgress" type="IProgress" dir="return">
3361 <desc></desc>
3362 </param>
3363 </method>
3364
3365 <method name="createVFSExplorer">
3366 <desc>Returns a <link to="IVFSExplorer" /> object for the given URI.</desc>
3367
3368 <param name="aUri" type="wstring" dir="in">
3369 <desc>The URI describing the file system to use.</desc>
3370 </param>
3371
3372 <param name="aExplorer" type="IVFSExplorer" dir="return">
3373 <desc></desc>
3374 </param>
3375 </method>
3376
3377 <method name="write">
3378 <desc>
3379 Writes the contents of the appliance exports into a new OVF file.
3380
3381 Calling this method is the final step of exporting an appliance from VirtualBox;
3382 see <link to="IAppliance" /> for an overview.
3383
3384 Since exporting the appliance will most probably involve copying and converting
3385 disk images, which can take a long time, this method operates asynchronously and
3386 returns an IProgress object to allow the caller to monitor the progress.
3387 </desc>
3388 <param name="format" type="wstring" dir="in">
3389 <desc>
3390 Output format, as a string. Currently supported formats are "ovf-0.9" and "ovf-1.0";
3391 future versions of VirtualBox may support additional formats.
3392 </desc>
3393 </param>
3394 <param name="path" type="wstring" dir="in">
3395 <desc>
3396 Name of appliance file to open (either with an <tt>.ovf</tt> or <tt>.ova</tt> extension, depending
3397 on whether the appliance is distributed as a set of files or as a single file, respectively).
3398 </desc>
3399 </param>
3400 <param name="aProgress" type="IProgress" dir="return">
3401 <desc>Progress object to track the operation completion.</desc>
3402 </param>
3403 </method>
3404
3405 <method name="getWarnings">
3406 <desc>Returns textual warnings which occured during execution of <link to="#interpret" />.</desc>
3407
3408 <param name="aWarnings" type="wstring" dir="return" safearray="yes">
3409 <desc></desc>
3410 </param>
3411 </method>
3412
3413 </interface>
3414
3415 <enum
3416 name="VirtualSystemDescriptionType"
3417 uuid="aacc58de-5b45-4f82-ae2e-dd9a824fc3b5"
3418 >
3419 <desc>Used with <link to="IVirtualSystemDescription" /> to describe the type of
3420 a configuration value.</desc>
3421
3422 <const name="Ignore" value="1" />
3423 <const name="OS" value="2" />
3424 <const name="Name" value="3" />
3425 <const name="Product" value="4" />
3426 <const name="Vendor" value="5" />
3427 <const name="Version" value="6" />
3428 <const name="ProductUrl" value="7" />
3429 <const name="VendorUrl" value="8" />
3430 <const name="Description" value="9" />
3431 <const name="License" value="10" />
3432 <const name="Miscellaneous" value="11" />
3433 <const name="CPU" value="12" />
3434 <const name="Memory" value="13" />
3435 <const name="HardDiskControllerIDE" value="14" />
3436 <const name="HardDiskControllerSATA" value="15" />
3437 <const name="HardDiskControllerSCSI" value="16" />
3438 <const name="HardDiskImage" value="17" />
3439 <const name="Floppy" value="18" />
3440 <const name="CDROM" value="19" />
3441 <const name="NetworkAdapter" value="20" />
3442 <const name="USBController" value="21" />
3443 <const name="SoundCard" value="22" />
3444
3445 </enum>
3446
3447 <enum
3448 name="VirtualSystemDescriptionValueType"
3449 uuid="56d9403f-3425-4118-9919-36f2a9b8c77c"
3450 >
3451 <desc>Used with <link to="IVirtualSystemDescription::getValuesByType" /> to describe the value
3452 type to fetch.</desc>
3453
3454 <const name="Reference" value="1" />
3455 <const name="Original" value="2" />
3456 <const name="Auto" value="3" />
3457 <const name="ExtraConfig" value="4" />
3458
3459 </enum>
3460
3461 <interface
3462 name="IVirtualSystemDescription" extends="$unknown"
3463 uuid="d7525e6c-531a-4c51-8e04-41235083a3d8"
3464 wsmap="managed"
3465 >
3466
3467 <desc>This interface is used in the <link to="IAppliance::virtualSystemDescriptions" /> array.
3468 After <link to="IAppliance::interpret" /> has been called, that array contains
3469 information about how the virtual systems described in the OVF should best be imported into VirtualBox
3470 virtual machines. See <link to="IAppliance" /> for the steps required to import an OVF
3471 into VirtualBox.
3472 </desc>
3473
3474 <attribute name="count" type="unsigned long" readonly="yes">
3475 <desc>Return the number of virtual system description entries.</desc>
3476 </attribute>
3477
3478 <method name="getDescription">
3479 <desc>Returns information about the virtual system as arrays of instruction items. In each array, the
3480 items with the same indices correspond and jointly represent an import instruction for VirtualBox.
3481
3482 The list below identifies the value sets that are possible depending on the
3483 <link to="VirtualSystemDescriptionType" /> enum value in the array item in aTypes[]. In each case,
3484 the array item with the same index in aOvfValues[] will contain the original value as contained
3485 in the OVF file (just for informational purposes), and the corresponding item in aVBoxValues[]
3486 will contain a suggested value to be used for VirtualBox. Depending on the description type,
3487 the aExtraConfigValues[] array item may also be used.
3488
3489 <ul>
3490 <li>
3491 "OS": the guest operating system type. There must be exactly one such array item on import. The
3492 corresponding item in aVBoxValues[] contains the suggested guest operating system for VirtualBox.
3493 This will be one of the values listed in <link to="IVirtualBox::guestOSTypes" />. The corresponding
3494 item in aOvfValues[] will contain a numerical value that described the operating system in the OVF
3495 (see <link to="CIMOSType" />).
3496 </li>
3497 <li>
3498 "Name": the name to give to the new virtual machine. There can be at most one such array item;
3499 if none is present on import, then an automatic name will be created from the operating system
3500 type. The correponding item im aOvfValues[] will contain the suggested virtual machine name
3501 from the OVF file, and aVBoxValues[] will contain a suggestion for a unique VirtualBox
3502 <link to="IMachine" /> name that does not exist yet.
3503 </li>
3504 <li>
3505 "Description": an arbitrary description.
3506 </li>
3507 <li>
3508 "License": the EULA section from the OVF, if present. It is the responsibility of the calling
3509 code to display such a license for agreement; the Main API does not enforce any such policy.
3510 </li>
3511 <li>
3512 Miscellaneous: reserved for future use.
3513 </li>
3514 <li>
3515 "CPU": the number of CPUs. There can be at most one such item, which will presently be ignored.
3516 </li>
3517 <li>
3518 "Memory": the amount of guest RAM, in bytes. There can be at most one such array item; if none
3519 is present on import, then VirtualBox will set a meaningful default based on the operating system
3520 type.
3521 </li>
3522 <li>
3523 "HarddiskControllerIDE": an IDE hard disk controller. There can be at most one such item. This
3524 has no value in aOvfValues[] or aVBoxValues[].
3525 The matching item in the aRefs[] array will contain an integer that items of the "Harddisk"
3526 type can use to specify which hard disk controller a virtual disk should be connected to.
3527 </li>
3528 <li>
3529 "HarddiskControllerSATA": an SATA hard disk controller. There can be at most one such item. This
3530 has no value in aOvfValues[] or aVBoxValues[].
3531 The matching item in the aRefs[] array will be used as with IDE controllers (see above).
3532 </li>
3533 <li>
3534 "HarddiskControllerSCSI": a SCSI hard disk controller. There can be at most one such item.
3535 The items in aOvfValues[] and aVBoxValues[] will either be "LsiLogic" or "BusLogic".
3536 The matching item in the aRefs[] array will be used as with IDE controllers (see above).
3537 </li>
3538 <li>
3539 "HardDiskImage": a virtual hard disk, most probably as a reference to an image file. There can be an
3540 arbitrary number of these items, one for each virtual disk image that accompanies the OVF.
3541
3542 The array item in aOvfValues[] will contain the file specification from the OVF file (without
3543 a path since the image file should be in the same location as the OVF file itself), whereas the
3544 item in aVBoxValues[] will contain a qualified path specification to where VirtualBox uses the
3545 hard disk image. This means that on import the image will be copied and converted from the
3546 "ovf" location to the "vbox" location; on export, this will be handled the other way round.
3547 On import, the target image will also be registered with VirtualBox.
3548
3549 The matching item in the aExtraConfigValues[] array must contain a string of the following
3550 format: "controller=&lt;index&gt;;channel=&lt;c&gt;"
3551 In this string, &lt;index&gt; must be an integer specifying the hard disk controller to connect
3552 the image to. That number must be the index of an array item with one of the hard disk controller
3553 types (HarddiskControllerSCSI, HarddiskControllerSATA, HarddiskControllerIDE).
3554 In addition, &lt;c&gt; must specify the channel to use on that controller. For IDE controllers,
3555 this can range from 0-2 (which VirtualBox will interpret as primary master, primary slave,
3556 secondary slave; VirtualBox reserves the secondary master for the CD-ROM drive). For SATA and
3557 SCSI conrollers, the channel can range from 0-29.
3558 </li>
3559 <li>
3560 "NetworkAdapter": a network adapter. The array item in aVBoxValues[] will specify the hardware
3561 for the network adapter, whereas the array item in aExtraConfigValues[] will have a string
3562 of the "type=&lt;X&gt;" format, where &lt;X&gt; must be either "NAT" or "Bridged".
3563 </li>
3564 <li>
3565 "USBController": a USB controller. There can be at most one such item. If and only if such an
3566 item ispresent, USB support will be enabled for the new virtual machine.
3567 </li>
3568 <li>
3569 "SoundCard": a sound card. There can be at most one such item. If and only if such an item is
3570 present, sound support will be enabled for the new virtual machine. Note that the virtual
3571 machine in VirtualBox will always be presented with the standard VirtualBox soundcard, which
3572 may be different from the virtual soundcard expected by the appliance.
3573 </li>
3574 </ul>
3575
3576 </desc>
3577
3578 <param name="aTypes" type="VirtualSystemDescriptionType" dir="out" safearray="yes">
3579 <desc></desc>
3580 </param>
3581
3582 <param name="aRefs" type="wstring" dir="out" safearray="yes">
3583 <desc></desc>
3584 </param>
3585
3586 <param name="aOvfValues" type="wstring" dir="out" safearray="yes">
3587 <desc></desc>
3588 </param>
3589
3590 <param name="aVBoxValues" type="wstring" dir="out" safearray="yes">
3591 <desc></desc>
3592 </param>
3593
3594 <param name="aExtraConfigValues" type="wstring" dir="out" safearray="yes">
3595 <desc></desc>
3596 </param>
3597
3598 </method>
3599
3600 <method name="getDescriptionByType">
3601 <desc>This is the same as <link to="#getDescription" /> except that you can specify which types
3602 should be returned.</desc>
3603
3604 <param name="aType" type="VirtualSystemDescriptionType" dir="in">
3605 <desc></desc>
3606 </param>
3607
3608 <param name="aTypes" type="VirtualSystemDescriptionType" dir="out" safearray="yes">
3609 <desc></desc>
3610 </param>
3611
3612 <param name="aRefs" type="wstring" dir="out" safearray="yes">
3613 <desc></desc>
3614 </param>
3615
3616 <param name="aOvfValues" type="wstring" dir="out" safearray="yes">
3617 <desc></desc>
3618 </param>
3619
3620 <param name="aVBoxValues" type="wstring" dir="out" safearray="yes">
3621 <desc></desc>
3622 </param>
3623
3624 <param name="aExtraConfigValues" type="wstring" dir="out" safearray="yes">
3625 <desc></desc>
3626 </param>
3627
3628 </method>
3629
3630 <method name="getValuesByType">
3631 <desc>This is the same as <link to="#getDescriptionByType" /> except that you can specify which
3632 value types should be returned. See <link to="VirtualSystemDescriptionValueType" /> for possible
3633 values.</desc>
3634
3635 <param name="aType" type="VirtualSystemDescriptionType" dir="in">
3636 <desc></desc>
3637 </param>
3638
3639 <param name="aWhich" type="VirtualSystemDescriptionValueType" dir="in">
3640 <desc></desc>
3641 </param>
3642
3643 <param name="aValues" type="wstring" dir="return" safearray="yes">
3644 <desc></desc>
3645 </param>
3646
3647 </method>
3648
3649 <method name="setFinalValues">
3650 <desc>
3651 This method allows the appliance's user to change the configuration for the virtual
3652 system descriptions. For each array item returned from <link to="#getDescription" />,
3653 you must pass in one boolean value and one configuration value.
3654
3655 Each item in the boolean array determines whether the particular configuration item
3656 should be enabled.
3657 You can only disable items of the types HardDiskControllerIDE, HardDiskControllerSATA,
3658 HardDiskControllerSCSI, HardDiskImage, CDROM, Floppy, NetworkAdapter, USBController
3659 and SoundCard.
3660
3661 For the "vbox" and "extra configuration" values, if you pass in the same arrays
3662 as returned in the aVBoxValues and aExtraConfigValues arrays from getDescription(),
3663 the configuration remains unchanged. Please see the documentation for getDescription()
3664 for valid configuration values for the individual array item types. If the
3665 corresponding item in the aEnabled array is @c false, the configuration value is ignored.
3666 </desc>
3667
3668 <param name="aEnabled" type="boolean" dir="in" safearray="yes">
3669 <desc></desc>
3670 </param>
3671
3672 <param name="aVBoxValues" type="wstring" dir="in" safearray="yes">
3673 <desc></desc>
3674 </param>
3675
3676 <param name="aExtraConfigValues" type="wstring" dir="in" safearray="yes">
3677 <desc></desc>
3678 </param>
3679 </method>
3680
3681 <method name="addDescription">
3682 <desc>
3683 This method adds an additional description entry to the stack of already
3684 available descriptions for this virtual system. This is handy for writing
3685 values which aren't directly supported by VirtualBox. One example would
3686 be the License type of <link to="VirtualSystemDescriptionType" />.
3687 </desc>
3688
3689 <param name="aType" type="VirtualSystemDescriptionType" dir="in">
3690 <desc></desc>
3691 </param>
3692
3693 <param name="aVBoxValue" type="wstring" dir="in">
3694 <desc></desc>
3695 </param>
3696
3697 <param name="aExtraConfigValue" type="wstring" dir="in">
3698 <desc></desc>
3699 </param>
3700 </method>
3701 </interface>
3702
3703
3704 <!--
3705 // IMachine
3706 /////////////////////////////////////////////////////////////////////////
3707 -->
3708
3709 <interface
3710 name="IInternalMachineControl" extends="$unknown"
3711 uuid="ce8087d7-de92-4bbb-8140-a22fb07f37ba"
3712 internal="yes"
3713 wsmap="suppress"
3714 >
3715 <method name="setRemoveSavedState">
3716 <desc>
3717 Updates the flag whether saved state is removed on a machine state
3718 change from Saved to PowerOff.
3719 </desc>
3720 <param name="aRemove" type="boolean" dir="in"/>
3721 </method>
3722
3723 <method name="updateState">
3724 <desc>
3725 Updates the VM state.
3726 <note>
3727 This operation will also update the settings file with
3728 the correct information about the saved state file
3729 and delete this file from disk when appropriate.
3730 </note>
3731 </desc>
3732 <param name="state" type="MachineState" dir="in"/>
3733 </method>
3734
3735 <method name="getIPCId">
3736 <param name="id" type="wstring" dir="return"/>
3737 </method>
3738
3739 <method name="runUSBDeviceFilters">
3740 <desc>
3741 Asks the server to run USB devices filters of the associated
3742 machine against the given USB device and tell if there is
3743 a match.
3744 <note>
3745 Intended to be used only for remote USB devices. Local
3746 ones don't require to call this method (this is done
3747 implicitly by the Host and USBProxyService).
3748 </note>
3749 </desc>
3750 <param name="device" type="IUSBDevice" dir="in"/>
3751 <param name="matched" type="boolean" dir="out"/>
3752 <param name="maskedInterfaces" type="unsigned long" dir="out"/>
3753 </method>
3754
3755 <method name="captureUSBDevice">
3756 <desc>
3757 Requests a capture of the given host USB device.
3758 When the request is completed, the VM process will
3759 get a <link to="IInternalSessionControl::onUSBDeviceAttach"/>
3760 notification.
3761 </desc>
3762 <param name="id" type="wstring" dir="in"/>
3763 </method>
3764
3765 <method name="detachUSBDevice">
3766 <desc>
3767 Notification that a VM is going to detach (@a done = @c false) or has
3768 already detached (@a done = @c true) the given USB device.
3769 When the @a done = @c true request is completed, the VM process will
3770 get a <link to="IInternalSessionControl::onUSBDeviceDetach"/>
3771 notification.
3772 <note>
3773 In the @a done = @c true case, the server must run its own filters
3774 and filters of all VMs but this one on the detached device
3775 as if it were just attached to the host computer.
3776 </note>
3777 </desc>
3778 <param name="id" type="wstring" dir="in"/>
3779 <param name="done" type="boolean" dir="in"/>
3780 </method>
3781
3782 <method name="autoCaptureUSBDevices">
3783 <desc>
3784 Requests a capture all matching USB devices attached to the host.
3785 When the request is completed, the VM process will
3786 get a <link to="IInternalSessionControl::onUSBDeviceAttach"/>
3787 notification per every captured device.
3788 </desc>
3789 </method>
3790
3791 <method name="detachAllUSBDevices">
3792 <desc>
3793 Notification that a VM that is being powered down. The done
3794 parameter indicates whether which stage of the power down
3795 we're at. When @a done = @c false the VM is announcing its
3796 intentions, while when @a done = @c true the VM is reporting
3797 what it has done.
3798 <note>
3799 In the @a done = @c true case, the server must run its own filters
3800 and filters of all VMs but this one on all detach devices as
3801 if they were just attached to the host computer.
3802 </note>
3803 </desc>
3804 <param name="done" type="boolean" dir="in"/>
3805 </method>
3806
3807 <method name="onSessionEnd">
3808 <desc>
3809 Triggered by the given session object when the session is about
3810 to close normally.
3811 </desc>
3812 <param name="session" type="ISession" dir="in">
3813 <desc>Session that is being closed</desc>
3814 </param>
3815 <param name="progress" type="IProgress" dir="return">
3816 <desc>
3817 Used to wait until the corresponding machine is actually
3818 dissociated from the given session on the server.
3819 Returned only when this session is a direct one.
3820 </desc>
3821 </param>
3822 </method>
3823
3824 <method name="beginSavingState">
3825 <desc>
3826 Called by the VM process to inform the server it wants to
3827 save the current state and stop the VM execution.
3828 </desc>
3829 <param name="progress" type="IProgress" dir="in">
3830 <desc>
3831 Progress object created by the VM process to wait until
3832 the state is saved.
3833 </desc>
3834 </param>
3835 <param name="stateFilePath" type="wstring" dir="out">
3836 <desc>
3837 File path the VM process must save the execution state to.
3838 </desc>
3839 </param>
3840 </method>
3841
3842 <method name="endSavingState">
3843 <desc>
3844 Called by the VM process to inform the server that saving
3845 the state previously requested by #beginSavingState is either
3846 successfully finished or there was a failure.
3847
3848 <result name="VBOX_E_FILE_ERROR">
3849 Settings file not accessible.
3850 </result>
3851 <result name="VBOX_E_XML_ERROR">
3852 Could not parse the settings file.
3853 </result>
3854
3855 </desc>
3856
3857 <param name="success" type="boolean" dir="in">
3858 <desc>@c true to indicate success and @c false otherwise.
3859 </desc>
3860 </param>
3861 </method>
3862
3863 <method name="adoptSavedState">
3864 <desc>
3865 Gets called by IConsole::adoptSavedState.
3866 <result name="VBOX_E_FILE_ERROR">
3867 Invalid saved state file path.
3868 </result>
3869 </desc>
3870 <param name="savedStateFile" type="wstring" dir="in">
3871 <desc>Path to the saved state file to adopt.</desc>
3872 </param>
3873 </method>
3874
3875 <method name="beginTakingSnapshot">
3876 <desc>
3877 Called by the VM process to inform the server it wants to
3878 take a snapshot.
3879
3880 <result name="VBOX_E_FILE_ERROR">
3881 Settings file not accessible.
3882 </result>
3883 <result name="VBOX_E_XML_ERROR">
3884 Could not parse the settings file.
3885 </result>
3886 </desc>
3887 <param name="initiator" type="IConsole" dir="in">
3888 <desc>The console object that initiated this call.</desc>
3889 </param>
3890 <param name="name" type="wstring" dir="in">
3891 <desc>Snapshot name.</desc>
3892 </param>
3893 <param name="description" type="wstring" dir="in">
3894 <desc>Snapshot description.</desc>
3895 </param>
3896 <param name="progress" type="IProgress" dir="in">
3897 <desc>
3898 Progress object created by the VM process to wait until
3899 the state is saved (only for online snapshots).
3900 </desc>
3901 </param>
3902 <param name="stateFilePath" type="wstring" dir="out">
3903 <desc>
3904 File path the VM process must save the execution state to.
3905 </desc>
3906 </param>
3907 <param name="serverProgress" type="IProgress" dir="out">
3908 <desc>
3909 Progress object created by the server process to wait until
3910 the snapshot is taken (VDI diff creation, etc.).
3911 </desc>
3912 </param>
3913 </method>
3914
3915 <method name="endTakingSnapshot">
3916 <desc>
3917 Called by the VM process to inform the server that the snapshot
3918 previously requested by #beginTakingSnapshot is either
3919 successfully taken or there was a failure.
3920 </desc>
3921
3922 <param name="success" type="boolean" dir="in">
3923 <desc>@c true to indicate success and @c false otherwise</desc>
3924 </param>
3925 </method>
3926
3927 <method name="discardSnapshot">
3928 <desc>
3929 Gets called by IConsole::discardSnapshot.
3930 <result name="VBOX_E_INVALID_OBJECT_STATE">
3931 Snapshot has more than one child snapshot.
3932 </result>
3933 </desc>
3934 <param name="initiator" type="IConsole" dir="in">
3935 <desc>The console object that initiated this call.</desc>
3936 </param>
3937 <param name="id" type="wstring" dir="in">
3938 <desc>UUID of the snapshot to discard.</desc>
3939 </param>
3940 <param name="machineState" type="MachineState" dir="out">
3941 <desc>New machine state after this operation is started.</desc>
3942 </param>
3943 <param name="progress" type="IProgress" dir="return">
3944 <desc>Progress object to track the operation completion.</desc>
3945 </param>
3946 </method>
3947
3948 <method name="discardCurrentState">
3949 <desc>
3950 Gets called by IConsole::discardCurrentState.
3951 <result name="VBOX_E_INVALID_OBJECT_STATE">
3952 Virtual machine does not have any snapshot.
3953 </result>
3954 </desc>
3955 <param name="initiator" type="IConsole" dir="in">
3956 <desc>The console object that initiated this call.</desc>
3957 </param>
3958 <param name="machineState" type="MachineState" dir="out">
3959 <desc>New machine state after this operation is started.</desc>
3960 </param>
3961 <param name="progress" type="IProgress" dir="return">
3962 <desc>Progress object to track the operation completion.</desc>
3963 </param>
3964 </method>
3965
3966 <method name="discardCurrentSnapshotAndState">
3967 <desc>
3968 Gets called by IConsole::discardCurrentSnapshotAndState.
3969 <result name="VBOX_E_INVALID_OBJECT_STATE">
3970 Virtual machine does not have any snapshot.
3971 </result>
3972 </desc>
3973 <param name="initiator" type="IConsole" dir="in">
3974 <desc>The console object that initiated this call.</desc>
3975 </param>
3976 <param name="machineState" type="MachineState" dir="out">
3977 <desc>New machine state after this operation is started.</desc>
3978 </param>
3979 <param name="progress" type="IProgress" dir="return">
3980 <desc>Progress object to track the operation completion.</desc>
3981 </param>
3982 </method>
3983
3984 <method name="pullGuestProperties">
3985 <desc>
3986 Get the list of the guest properties matching a set of patterns along
3987 with their values, time stamps and flags and give responsibility for
3988 managing properties to the console.
3989 </desc>
3990 <param name="name" type="wstring" dir="out" safearray="yes">
3991 <desc>
3992 The names of the properties returned.
3993 </desc>
3994 </param>
3995 <param name="value" type="wstring" dir="out" safearray="yes">
3996 <desc>
3997 The values of the properties returned. The array entries match the
3998 corresponding entries in the @a name array.
3999 </desc>
4000 </param>
4001 <param name="timestamp" type="unsigned long long" dir="out" safearray="yes">
4002 <desc>
4003 The time stamps of the properties returned. The array entries match
4004 the corresponding entries in the @a name array.
4005 </desc>
4006 </param>
4007 <param name="flags" type="wstring" dir="out" safearray="yes">
4008 <desc>
4009 The flags of the properties returned. The array entries match the
4010 corresponding entries in the @a name array.
4011 </desc>
4012 </param>
4013 </method>
4014
4015 <method name="pushGuestProperties">
4016 <desc>
4017 Set the list of the guest properties matching a set of patterns along
4018 with their values, time stamps and flags and return responsibility for
4019 managing properties to IMachine.
4020 </desc>
4021 <param name="name" type="wstring" dir="in" safearray="yes">
4022 <desc>
4023 The names of the properties.
4024 </desc>
4025 </param>
4026 <param name="value" type="wstring" dir="in" safearray="yes">
4027 <desc>
4028 The values of the properties. The array entries match the
4029 corresponding entries in the @a name array.
4030 </desc>
4031 </param>
4032 <param name="timestamp" type="unsigned long long" dir="in" safearray="yes">
4033 <desc>
4034 The time stamps of the properties. The array entries match
4035 the corresponding entries in the @a name array.
4036 </desc>
4037 </param>
4038 <param name="flags" type="wstring" dir="in" safearray="yes">
4039 <desc>
4040 The flags of the properties. The array entries match the
4041 corresponding entries in the @a name array.
4042 </desc>
4043 </param>
4044 </method>
4045 <method name="pushGuestProperty">
4046 <desc>
4047 Update a single guest property in IMachine.
4048 </desc>
4049 <param name="name" type="wstring" dir="in">
4050 <desc>
4051 The name of the property to be updated.
4052 </desc>
4053 </param>
4054 <param name="value" type="wstring" dir="in">
4055 <desc>
4056 The value of the property.
4057 </desc>
4058 </param>
4059 <param name="timestamp" type="unsigned long long" dir="in">
4060 <desc>
4061 The timestamp of the property.
4062 </desc>
4063 </param>
4064 <param name="flags" type="wstring" dir="in">
4065 <desc>
4066 The flags of the property.
4067 </desc>
4068 </param>
4069 </method>
4070
4071 <method name="lockMedia">
4072 <desc>
4073 Locks all media attached to the machine for writing and parents of
4074 attahced different hard disks (if any) for reading. This operation is
4075 atomic so that if it fails no media is actually locked.
4076
4077 This method is intended to be called when the machine is in Starting or
4078 Restoring state. The locked media will be automatically unlocked when
4079 the machine is powered off or crashed.
4080 </desc>
4081 </method>
4082 </interface>
4083
4084 <interface
4085 name="IBIOSSettings" extends="$unknown"
4086 uuid="38b54279-dc35-4f5e-a431-835b867c6b5e"
4087 wsmap="managed"
4088 >
4089 <desc>
4090 The IBIOSSettings interface represents BIOS settings of the virtual
4091 machine. This is used only in the <link to="IMachine::BIOSSettings" /> attribute.
4092 </desc>
4093 <attribute name="logoFadeIn" type="boolean">
4094 <desc>Fade in flag for BIOS logo animation.</desc>
4095 </attribute>
4096
4097 <attribute name="logoFadeOut" type="boolean">
4098 <desc>Fade out flag for BIOS logo animation.</desc>
4099 </attribute>
4100
4101 <attribute name="logoDisplayTime" type="unsigned long">
4102 <desc>BIOS logo display time in milliseconds (0 = default).</desc>
4103 </attribute>
4104
4105 <attribute name="logoImagePath" type="wstring">
4106 <desc>Local file system path for external BIOS image.</desc>
4107 </attribute>
4108
4109 <attribute name="bootMenuMode" type="BIOSBootMenuMode">
4110 <desc>Mode of the BIOS boot device menu.</desc>
4111 </attribute>
4112
4113 <attribute name="ACPIEnabled" type="boolean">
4114 <desc>ACPI support flag.</desc>
4115 </attribute>
4116
4117 <attribute name="IOAPICEnabled" type="boolean">
4118 <desc>
4119 IO APIC support flag. If set, VirtualBox will provide an IO APIC
4120 and support IRQs above 15.
4121 </desc>
4122 </attribute>
4123
4124 <attribute name="timeOffset" type="long long">
4125 <desc>
4126 Offset in milliseconds from the host system time. This allows for
4127 guests running with a different system date/time than the host.
4128 It is equivalent to setting the system date/time in the BIOS except
4129 it is not an absolute value but a relative one. Guest Additions
4130 time synchronization honors this offset.
4131 </desc>
4132 </attribute>
4133
4134 <attribute name="PXEDebugEnabled" type="boolean">
4135 <desc>
4136 PXE debug logging flag. If set, VirtualBox will write extensive
4137 PXE trace information to the release log.
4138 </desc>
4139 </attribute>
4140
4141 </interface>
4142
4143 <interface
4144 name="IMachine" extends="$unknown"
4145 uuid="4d1df26d-d9c1-4c7e-b689-15e85ecf8ffc"
4146 wsmap="managed"
4147 >
4148 <desc>
4149 The IMachine interface represents a virtual machine, or guest, created
4150 in VirtualBox.
4151
4152 This interface is used in two contexts. First of all, a collection of
4153 objects implementing this interface is stored in the
4154 <link to="IVirtualBox::machines"/> attribute which lists all the virtual
4155 machines that are currently registered with this VirtualBox
4156 installation. Also, once a session has been opened for the given virtual
4157 machine (e.g. the virtual machine is running), the machine object
4158 associated with the open session can be queried from the session object;
4159 see <link to="ISession"/> for details.
4160
4161 The main role of this interface is to expose the settings of the virtual
4162 machine and provide methods to change various aspects of the virtual
4163 machine's configuration. For machine objects stored in the
4164 <link to="IVirtualBox::machines"/> collection, all attributes are
4165 read-only unless explicitly stated otherwise in individual attribute
4166 and method descriptions. In order to change a machine setting, a session
4167 for this machine must be opened using one of
4168 <link to="IVirtualBox::openSession"/>,
4169 <link to="IVirtualBox::openRemoteSession"/> or
4170 <link to="IVirtualBox::openExistingSession"/> methods. After the
4171 session has been successfully opened, a mutable machine object needs to
4172 be queried from the session object and then the desired settings changes
4173 can be applied to the returned object using IMachine attributes and
4174 methods. See the ISession interface description for more information
4175 about sessions.
4176
4177 Note that the IMachine interface does not provide methods to control
4178 virtual machine execution (such as start the machine, or power it
4179 down) -- these methods are grouped in a separate IConsole
4180 interface. Refer to the IConsole interface description to get more
4181 information about this topic.
4182
4183 <see>ISession, IConsole</see>
4184 </desc>
4185
4186 <attribute name="parent" type="IVirtualBox" readonly="yes">
4187 <desc>Associated parent object.</desc>
4188 </attribute>
4189
4190 <attribute name="accessible" type="boolean" readonly="yes">
4191 <desc>
4192 Whether this virtual machine is currently accessible or not.
4193
4194 The machine is considered to be inaccessible when:
4195 <ul>
4196 <li>It is a registered virtual machine, and
4197 </li>
4198 <li>Its settings file is inaccessible (for example, it is
4199 located on a network share that is not accessible during
4200 VirtualBox startup, or becomes inaccessible later, or if
4201 the settings file can be read but is invalid).
4202 </li>
4203 </ul>
4204
4205 Otherwise, the value of this property is always @c true.
4206
4207 Every time this property is read, the accessibility state of
4208 this machine is re-evaluated. If the returned value is @c false,
4209 the <link to="#accessError"/> property may be used to get the
4210 detailed error information describing the reason of
4211 inaccessibility.
4212
4213 When the machine is inaccessible, only the following properties
4214 can be used on it:
4215 <ul>
4216 <li><link to="#parent"/></li>
4217 <li><link to="#id"/></li>
4218 <li><link to="#settingsFilePath"/></li>
4219 <li><link to="#accessible"/></li>
4220 <li><link to="#accessError"/></li>
4221 </ul>
4222
4223 An attempt to access any other property or method will return
4224 an error.
4225
4226 The only possible action you can perform on an inaccessible
4227 machine is to unregister it using the
4228 <link to="IVirtualBox::unregisterMachine"/> call (or, to check
4229 for the accessibility state once more by querying this
4230 property).
4231
4232 <note>
4233 In the current implementation, once this property returns
4234 @c true, the machine will never become inaccessible
4235 later, even if its settings file cannot be successfully
4236 read/written any more (at least, until the VirtualBox
4237 server is restarted). This limitation may be removed in
4238 future releases.
4239 </note>
4240 </desc>
4241 </attribute>
4242
4243 <attribute name="accessError" type="IVirtualBoxErrorInfo" readonly="yes">
4244 <desc>
4245 Error information describing the reason of machine
4246 inaccessibility.
4247
4248 Reading this property is only valid after the last call to
4249 <link to="#accessible"/> returned @c false (i.e. the
4250 machine is currently unaccessible). Otherwise, a @c null
4251 IVirtualBoxErrorInfo object will be returned.
4252 </desc>
4253 </attribute>
4254
4255 <attribute name="name" type="wstring">
4256 <desc>
4257 Name of the virtual machine.
4258
4259 Besides being used for human-readable identification purposes
4260 everywhere in VirtualBox, the virtual machine name is also used
4261 as a name of the machine's settings file and as a name of the
4262 subdirectory this settings file resides in. Thus, every time you
4263 change the value of this property, the settings file will be
4264 renamed once you call <link to="#saveSettings"/> to confirm the
4265 change. The containing subdirectory will be also renamed, but
4266 only if it has exactly the same name as the settings file
4267 itself prior to changing this property (for backward compatibility
4268 with previous API releases). The above implies the following
4269 limitations:
4270 <ul>
4271 <li>The machine name cannot be empty.</li>
4272 <li>The machine name can contain only characters that are valid
4273 file name characters according to the rules of the file
4274 system used to store VirtualBox configuration.</li>
4275 <li>You cannot have two or more machines with the same name
4276 if they use the same subdirectory for storing the machine
4277 settings files.</li>
4278 <li>You cannot change the name of the machine if it is running,
4279 or if any file in the directory containing the settings file
4280 is being used by another running machine or by any other
4281 process in the host operating system at a time when
4282 <link to="#saveSettings"/> is called.
4283 </li>
4284 </ul>
4285 If any of the above limitations are hit, <link to="#saveSettings"/>
4286 will return an appropriate error message explaining the exact
4287 reason and the changes you made to this machine will not be
4288 saved.
4289 <note>
4290 For "legacy" machines created using the
4291 <link to="IVirtualBox::createLegacyMachine"/> call,
4292 the above naming limitations do not apply because the
4293 machine name does not affect the settings file name.
4294 The settings file name remains the same as it was specified
4295 during machine creation and never changes.
4296 </note>
4297 </desc>
4298 </attribute>
4299
4300 <attribute name="description" type="wstring">
4301 <desc>
4302 Description of the virtual machine.
4303
4304 The description attribute can contain any text and is
4305 typically used to describe the hardware and software
4306 configuration of the virtual machine in detail (i.e. network
4307 settings, versions of the installed software and so on).
4308 </desc>
4309 </attribute>
4310
4311 <attribute name="id" type="wstring" readonly="yes">
4312 <desc>UUID of the virtual machine.</desc>
4313 </attribute>
4314
4315 <attribute name="OSTypeId" type="wstring">
4316 <desc>
4317 User-defined identifier of the Guest OS type.
4318 You may use <link to="IVirtualBox::getGuestOSType"/> to obtain
4319 an IGuestOSType object representing details about the given
4320 Guest OS type.
4321 <note>
4322 This value may differ from the value returned by
4323 <link to="IGuest::OSTypeId"/> if Guest Additions are
4324 installed to the guest OS.
4325 </note>
4326 </desc>
4327 </attribute>
4328
4329 <attribute name="HardwareVersion" type="wstring">
4330 <desc>Hardware version identifier. Internal use only for now.</desc>
4331 </attribute>
4332
4333 <attribute name="CPUCount" type="unsigned long">
4334 <desc>Number of virtual CPUs in the VM.</desc>
4335 </attribute>
4336
4337 <attribute name="memorySize" type="unsigned long">
4338 <desc>System memory size in megabytes.</desc>
4339 </attribute>
4340
4341 <attribute name="memoryBalloonSize" type="unsigned long">
4342 <desc>Initial memory balloon size in megabytes.</desc>
4343 </attribute>
4344
4345 <attribute name="statisticsUpdateInterval" type="unsigned long">
4346 <desc>Initial interval to update guest statistics in seconds.</desc>
4347 </attribute>
4348
4349 <attribute name="VRAMSize" type="unsigned long">
4350 <desc>Video memory size in megabytes.</desc>
4351 </attribute>
4352
4353 <attribute name="accelerate3DEnabled" type="boolean" default="false">
4354 <desc>
4355 This setting determines whether VirtualBox allows guests to make use
4356 of the 3D graphics support available on the host. Currently limited
4357 to OpenGL only. </desc>
4358 </attribute>
4359
4360 <attribute name="monitorCount" type="unsigned long">
4361 <desc>
4362 Number of virtual monitors.
4363 <note>
4364 Only effective on Windows XP and later guests with
4365 Guest Additions installed.
4366 </note>
4367 </desc>
4368 </attribute>
4369
4370 <attribute name="BIOSSettings" type="IBIOSSettings" readonly="yes">
4371 <desc>Object containing all BIOS settings.</desc>
4372 </attribute>
4373
4374 <attribute name="HWVirtExEnabled" type="TSBool">
4375 <desc>
4376 This setting determines whether VirtualBox will try to make use of
4377 the host CPU's hardware virtualization extensions such as Intel VT-x
4378 and AMD-V. Note that in case such extensions are not available,
4379 they will not be used.
4380 </desc>
4381 </attribute>
4382
4383 <attribute name="HWVirtExNestedPagingEnabled" type="boolean" default="false">
4384 <desc>
4385 This setting determines whether VirtualBox will try to make use of
4386 the nested paging extension of Intel VT-x and AMD-V. Note that in case
4387 such extensions are not available, they will not be used.
4388 </desc>
4389 </attribute>
4390
4391 <attribute name="HWVirtExVPIDEnabled" type="boolean" default="false">
4392 <desc>
4393 This setting determines whether VirtualBox will try to make use of
4394 the VPID extension of Intel VT-x. Note that in case such extensions are
4395 not available, they will not be used.
4396 </desc>
4397 </attribute>
4398
4399 <attribute name="PAEEnabled" type="boolean" default="false">
4400 <desc>
4401 This setting determines whether VirtualBox will expose the Physical Address
4402 Extension (PAE) feature of the host CPU to the guest. Note that in case PAE
4403 is not available, it will not be reported.
4404 </desc>
4405 </attribute>
4406
4407 <attribute name="snapshotFolder" type="wstring">
4408 <desc>
4409 Full path to the directory used to store snapshot data
4410 (differencing hard disks and saved state files) of this machine.
4411
4412 The initial value of this property is
4413 <tt>&lt;</tt><link to="#settingsFilePath">
4414 path_to_settings_file</link><tt>&gt;/&lt;</tt>
4415 <link to="#id">machine_uuid</link>
4416 <tt>&gt;</tt>.
4417
4418 Currently, it is an error to try to change this property on
4419 a machine that has snapshots (because this would require to
4420 move possibly large files to a different location).
4421 A separate method will be available for this purpose later.
4422
4423 <note>
4424 Setting this property to @c null will restore the
4425 initial value.
4426 </note>
4427 <note>
4428 When setting this property, the specified path can be
4429 absolute (full path) or relative to the directory where the
4430 <link to="#settingsFilePath">machine settings file</link>
4431 is located. When reading this property, a full path is
4432 always returned.
4433 </note>
4434 <note>
4435 The specified path may not exist, it will be created
4436 when necessary.
4437 </note>
4438 </desc>
4439 </attribute>
4440
4441 <attribute name="VRDPServer" type="IVRDPServer" readonly="yes">
4442 <desc>VRDP server object.</desc>
4443 </attribute>
4444
4445 <attribute name="hardDiskAttachments" type="IHardDiskAttachment" readonly="yes" safearray="yes">
4446 <desc>Array of hard disks attached to this machine.</desc>
4447 </attribute>
4448
4449 <attribute name="DVDDrive" type="IDVDDrive" readonly="yes">
4450 <desc>Associated DVD drive object.</desc>
4451 </attribute>
4452
4453 <attribute name="floppyDrive" type="IFloppyDrive" readonly="yes">
4454 <desc>Associated floppy drive object.</desc>
4455 </attribute>
4456
4457 <attribute name="USBController" type="IUSBController" readonly="yes">
4458 <desc>
4459 Associated USB controller object.
4460
4461 <note>
4462 If USB functionality is not available in the given edition of
4463 VirtualBox, this method will set the result code to @c E_NOTIMPL.
4464 </note>
4465 </desc>
4466 </attribute>
4467
4468 <attribute name="audioAdapter" type="IAudioAdapter" readonly="yes">
4469 <desc>Associated audio adapter, always present.</desc>
4470 </attribute>
4471
4472 <attribute name="storageControllers" type="IStorageController" readonly="yes" safearray="yes">
4473 <desc>Array of storage controllers attached to this machine.</desc>
4474 </attribute>
4475
4476 <attribute name="settingsFilePath" type="wstring" readonly="yes">
4477 <desc>
4478 Full name of the file containing machine settings data.
4479 </desc>
4480 </attribute>
4481
4482 <attribute name="settingsFileVersion" type="wstring" readonly="yes">
4483 <desc>
4484 Current version of the format of the settings file of this machine
4485 (<link to="IMachine::settingsFilePath"/>).
4486
4487 The version string has the following format:
4488 <pre>
4489 x.y-platform
4490 </pre>
4491 where @c x and @c y are the major and the minor format
4492 versions, and @c platform is the platform identifier.
4493
4494 The current version usually matches the value of the
4495 <link to="IVirtualBox::settingsFormatVersion"/> attribute unless the
4496 settings file was created by an older version of VirtualBox and there
4497 was a change of the settings file format since then.
4498
4499 Note that VirtualBox automatically converts settings files from older
4500 versions to the most recent version when reading them (usually at
4501 VirtualBox startup) but it doesn't save the changes back until
4502 you call a method that implicitly saves settings (such as
4503 <link to="#setExtraData"/>) or call <link to="#saveSettings"/>
4504 explicitly. Therefore, if the value of this attribute differs from the
4505 value of <link to="IVirtualBox::settingsFormatVersion"/>, then it
4506 means that the settings file was converted but the result of the
4507 conversion is not yet saved to disk.
4508
4509 The above feature may be used by interactive front-ends to inform users
4510 about the settings file format change and offer them to explicitly save
4511 all converted settings files (the global and VM-specific ones),
4512 optionally create backup copies of the old settings files before saving,
4513 etc.
4514
4515 <see>IVirtualBox::settingsFormatVersion, saveSettingsWithBackup()</see>
4516 </desc>
4517 </attribute>
4518
4519 <attribute name="settingsModified" type="boolean" readonly="yes">
4520 <desc>
4521 Whether the settings of this machine have been modified
4522 (but neither yet saved nor discarded).
4523 <note>
4524 Reading this property is only valid on instances returned
4525 by <link to="ISession::machine"/> and on new machines
4526 created by <link to="IVirtualBox::createMachine"/> or opened
4527 by <link to="IVirtualBox::openMachine"/> but not
4528 yet registered, or on unregistered machines after calling
4529 <link to="IVirtualBox::unregisterMachine"/>. For all other
4530 cases, the settings can never be modified.
4531 </note>
4532 <note>
4533 For newly created unregistered machines, the value of this
4534 property is always @c true until <link to="#saveSettings"/>
4535 is called (no matter if any machine settings have been
4536 changed after the creation or not). For opened machines
4537 the value is set to @c false (and then follows to normal rules).
4538 </note>
4539 </desc>
4540 </attribute>
4541
4542 <attribute name="sessionState" type="SessionState" readonly="yes">
4543 <desc>Current session state for this machine.</desc>
4544 </attribute>
4545
4546 <attribute name="sessionType" type="wstring" readonly="yes">
4547 <desc>
4548 Type of the session. If <link to="#sessionState"/> is
4549 SessionSpawning or SessionOpen, this attribute contains the
4550 same value as passed to the
4551 <link to="IVirtualBox::openRemoteSession"/> method in the
4552 @a type parameter. If the session was opened directly using
4553 <link to="IVirtualBox::openSession"/>, or if
4554 <link to="#sessionState"/> is SessionClosed, the value of this
4555 attribute is @c null.
4556 </desc>
4557 </attribute>
4558
4559 <attribute name="sessionPid" type="unsigned long" readonly="yes">
4560 <desc>
4561 Identifier of the session process. This attribute contains the
4562 platform-dependent identifier of the process that has opened a
4563 direct session for this machine using the
4564 <link to="IVirtualBox::openSession"/> call. The returned value
4565 is only valid if <link to="#sessionState"/> is SessionOpen or
4566 SessionClosing (i.e. a session is currently open or being
4567 closed) by the time this property is read.
4568 </desc>
4569 </attribute>
4570
4571 <attribute name="state" type="MachineState" readonly="yes">
4572 <desc>Current execution state of this machine.</desc>
4573 </attribute>
4574
4575 <attribute name="lastStateChange" type="long long" readonly="yes">
4576 <desc>
4577 Time stamp of the last execution state change,
4578 in milliseconds since 1970-01-01 UTC.
4579 </desc>
4580 </attribute>
4581
4582 <attribute name="stateFilePath" type="wstring" readonly="yes">
4583 <desc>
4584 Full path to the file that stores the execution state of
4585 the machine when it is in the <link to="MachineState_Saved"/> state.
4586 <note>
4587 When the machine is not in the Saved state, this attribute is
4588 @c null.
4589 </note>
4590 </desc>
4591 </attribute>
4592
4593 <attribute name="logFolder" type="wstring" readonly="yes">
4594 <desc>
4595 Full path to the folder that stores a set of rotated log files
4596 recorded during machine execution. The most recent log file is
4597 named <tt>VBox.log</tt>, the previous log file is
4598 named <tt>VBox.log.1</tt> and so on (up to <tt>VBox.log.3</tt>
4599 in the current version).
4600 </desc>
4601 </attribute>
4602
4603 <attribute name="currentSnapshot" type="ISnapshot" readonly="yes">
4604 <desc>
4605 Current snapshot of this machine.
4606 <note>
4607 A @c null object is returned if the machine doesn't
4608 have snapshots.
4609 </note>
4610 <see><link to="ISnapshot"/></see>
4611 </desc>
4612 </attribute>
4613
4614 <attribute name="snapshotCount" type="unsigned long" readonly="yes">
4615 <desc>
4616 Number of snapshots taken on this machine. Zero means the
4617 machine doesn't have any snapshots.
4618 </desc>
4619 </attribute>
4620
4621 <attribute name="currentStateModified" type="boolean" readonly="yes">
4622 <desc>
4623 Returns @c true if the current state of the machine is not
4624 identical to the state stored in the current snapshot.
4625
4626 The current state is identical to the current snapshot right
4627 after one of the following calls are made:
4628 <ul>
4629 <li><link to="IConsole::discardCurrentState"/> or
4630 <link to="IConsole::discardCurrentSnapshotAndState"/>
4631 </li>
4632 <li><link to="IConsole::takeSnapshot"/> (issued on a
4633 powered off or saved machine, for which
4634 <link to="#settingsModified"/> returns @c false)
4635 </li>
4636 <li><link to="IMachine::setCurrentSnapshot"/>
4637 </li>
4638 </ul>
4639
4640 The current state remains identical until one of the following
4641 happens:
4642 <ul>
4643 <li>settings of the machine are changed</li>
4644 <li>the saved state is discarded</li>
4645 <li>the current snapshot is discarded</li>
4646 <li>an attempt to execute the machine is made</li>
4647 </ul>
4648
4649 <note>
4650 For machines that don't have snapshots, this property is
4651 always @c false.
4652 </note>
4653 </desc>
4654 </attribute>
4655
4656 <attribute name="sharedFolders" type="ISharedFolder" readonly="yes" safearray="yes">
4657 <desc>
4658 Collection of shared folders for this machine (permanent shared
4659 folders). These folders are shared automatically at machine startup
4660 and available only to the guest OS installed within this machine.
4661
4662 New shared folders are added to the collection using
4663 <link to="#createSharedFolder"/>. Existing shared folders can be
4664 removed using <link to="#removeSharedFolder"/>.
4665 </desc>
4666 </attribute>
4667
4668 <attribute name="clipboardMode" type="ClipboardMode">
4669 <desc>
4670 Synchronization mode between the host OS clipboard
4671 and the guest OS clipboard.
4672 </desc>
4673 </attribute>
4674
4675 <attribute name="guestPropertyNotificationPatterns" type="wstring">
4676 <desc>
4677 A comma-separated list of simple glob patterns. Changes to guest
4678 properties whose name matches one of the patterns will generate an
4679 <link to="IVirtualBoxCallback::onGuestPropertyChange"/> signal.
4680 </desc>
4681 </attribute>
4682
4683 <method name="setBootOrder">
4684 <desc>
4685 Puts the given device to the specified position in
4686 the boot order.
4687
4688 To indicate that no device is associated with the given position,
4689 <link to="DeviceType_Null"/> should be used.
4690
4691 @todo setHardDiskBootOrder(), setNetworkBootOrder()
4692
4693 <result name="E_INVALIDARG">
4694 Boot @a position out of range.
4695 </result>
4696 <result name="E_NOTIMPL">
4697 Booting from USB @a device currently not supported.
4698 </result>
4699
4700 </desc>
4701 <param name="position" type="unsigned long" dir="in">
4702 <desc>
4703 Position in the boot order (@c 1 to the total number of
4704 devices the machine can boot from, as returned by
4705 <link to="ISystemProperties::maxBootPosition"/>).
4706 </desc>
4707 </param>
4708 <param name="device" type="DeviceType" dir="in">
4709 <desc>
4710 The type of the device used to boot at the given position.
4711 </desc>
4712 </param>
4713 </method>
4714
4715 <method name="getBootOrder" const="yes">
4716 <desc>
4717 Returns the device type that occupies the specified
4718 position in the boot order.
4719
4720 @todo [remove?]
4721 If the machine can have more than one device of the returned type
4722 (such as hard disks), then a separate method should be used to
4723 retrieve the individual device that occupies the given position.
4724
4725 If here are no devices at the given position, then
4726 <link to="DeviceType_Null"/> is returned.
4727
4728 @todo getHardDiskBootOrder(), getNetworkBootOrder()
4729
4730 <result name="E_INVALIDARG">
4731 Boot @a position out of range.
4732 </result>
4733
4734 </desc>
4735 <param name="position" type="unsigned long" dir="in">
4736 <desc>
4737 Position in the boot order (@c 1 to the total number of
4738 devices the machine can boot from, as returned by
4739 <link to="ISystemProperties::maxBootPosition"/>).
4740 </desc>
4741 </param>
4742 <param name="device" type="DeviceType" dir="return">
4743 <desc>
4744 Device at the given position.
4745 </desc>
4746 </param>
4747 </method>
4748
4749 <method name="attachHardDisk">
4750 <desc>
4751 Attaches a virtual hard disk (<link to="IHardDisk" />, identified
4752 by the given UUID @a id) to the given hard disk controller
4753 (<link to="IStorageController" />, identified by @a name),
4754 at the indicated port and device.
4755
4756 For the IDE bus, the @a controllerPort parameter can be either
4757 @c 0 or @c 1, to specify the primary or secondary IDE controller,
4758 respectively. For the primary controller of the IDE bus,
4759 @a device can be either @c 0 or @c 1, to specify the master or the
4760 slave device, respectively. For the secondary IDE controller, the
4761 device number must be @c 1 because VirtualBox reserves the
4762 secondary master for the CD-ROM drive.
4763
4764 For an SATA controller, @a controllerPort must be a number ranging
4765 from @c 0 to @c 29. For a SCSI controller, @a controllerPort must
4766 be a number ranging from @c 0 to @c 15.
4767
4768 For both SCSI and SATA, the @a device parameter is unused and must
4769 be @c 0.
4770
4771 The specified device slot must not have another disk attached to it, or
4772 this method will fail.
4773
4774 See <link to="IHardDisk"/> for more detailed information about
4775 attaching hard disks.
4776
4777 <note>
4778 You cannot attach a hard disk to a running machine. Also, you cannot
4779 attach a hard disk to a newly created machine until this machine's
4780 settings are saved to disk using <link to="#saveSettings"/>.
4781 </note>
4782 <note>
4783 If the hard disk is being attached indirectly, a new differencing hard
4784 disk will implicitly be created for it and attached instead. If the
4785 changes made to the machine settings (including this indirect
4786 attachment) are later cancelled using <link to="#discardSettings"/>,
4787 this implicitly created differencing hard disk will implicitly
4788 be deleted.
4789 </note>
4790
4791 <result name="E_INVALIDARG">
4792 SATA device, SATA port, IDE port or IDE slot out of range.
4793 </result>
4794 <result name="VBOX_E_INVALID_OBJECT_STATE">
4795 Attempt to attach hard disk to an unregistered virtual machine.
4796 </result>
4797 <result name="VBOX_E_INVALID_VM_STATE">
4798 Invalid machine state.
4799 </result>
4800 <result name="VBOX_E_OBJECT_IN_USE">
4801 Hard disk already attached to this or another virtual machine.
4802 </result>
4803
4804 </desc>
4805 <param name="id" type="wstring" dir="in">
4806 <desc>UUID of the hard disk to attach.</desc>
4807 </param>
4808 <param name="name" type="wstring" dir="in">
4809 <desc>Name of the storage controller to attach the hard disk to.</desc>
4810 </param>
4811 <param name="controllerPort" type="long" dir="in">
4812 <desc>Port to attach the hard disk to.</desc>
4813 </param>
4814 <param name="device" type="long" dir="in">
4815 <desc>
4816 Device slot in the given port to attach the hard disk to.
4817 </desc>
4818 </param>
4819 </method>
4820
4821 <method name="getHardDisk" const="yes">
4822 <desc>
4823 Returns the virtual hard disk attached to a device slot of the specified
4824 bus.
4825
4826 Note that if the hard disk was indirectly attached by
4827 <link to="#attachHardDisk"/> to the given device slot then this
4828 method will return not the same object as passed to the
4829 <link to="#attachHardDisk"/> call. See <link to="IHardDisk"/> for
4830 more detailed information about attaching hard disks.
4831
4832 <result name="VBOX_E_OBJECT_NOT_FOUND">
4833 No hard disk attached to given slot/bus.
4834 </result>
4835
4836 </desc>
4837 <param name="name" type="wstring" dir="in">
4838 <desc>Name of the storage controller the hard disk is attached to.</desc>
4839 </param>
4840 <param name="controllerPort" type="long" dir="in">
4841 <desc>Port to query.</desc>
4842 </param>
4843 <param name="device" type="long" dir="in">
4844 <desc>Device slot in the given port to query.</desc>
4845 </param>
4846 <param name="hardDisk" type="IHardDisk" dir="return">
4847 <desc>Attached hard disk object.</desc>
4848 </param>
4849 </method>
4850
4851 <method name="detachHardDisk">
4852 <desc>
4853 Detaches the virtual hard disk attached to a device slot of the
4854 specified bus.
4855
4856 Detaching the hard disk from the virtual machine is deferred. This means
4857 that the hard disk remains associated with the machine when this method
4858 returns and gets actually de-associated only after a successful
4859 <link to="#saveSettings"/> call. See <link to="IHardDisk"/>
4860 for more detailed information about attaching hard disks.
4861
4862 <note>
4863 You cannot detach the hard disk from a running machine.
4864 </note>
4865 <note>
4866 Detaching differencing hard disks implicitly created by <link
4867 to="#attachHardDisk"/> for the indirect attachment using this
4868 method will <b>not</b> implicitly delete them. The
4869 <link to="IHardDisk::deleteStorage"/> operation should be
4870 explicitly performed by the caller after the hard disk is successfully
4871 detached and the settings are saved with
4872 <link to="#saveSettings"/>, if it is the desired action.
4873 </note>
4874
4875 <result name="VBOX_E_INVALID_VM_STATE">
4876 Attempt to detach hard disk from a running virtual machine.
4877 </result>
4878 <result name="VBOX_E_OBJECT_NOT_FOUND">
4879 No hard disk attached to given slot/bus.
4880 </result>
4881 <result name="VBOX_E_NOT_SUPPORTED">
4882 Hard disk format does not support storage deletion.
4883 </result>
4884
4885 </desc>
4886 <param name="name" type="wstring" dir="in">
4887 <desc>name of the storage controller to detach the hard disk from.</desc>
4888 </param>
4889 <param name="controllerPort" type="long" dir="in">
4890 <desc>Port number to detach the hard disk from.</desc>
4891 </param>
4892 <param name="device" type="long" dir="in">
4893 <desc>Device slot number to detach the hard disk from.</desc>
4894 </param>
4895 </method>
4896
4897 <method name="getHardDiskAttachmentsOfController" const="yes">
4898 <desc>
4899 Returns an array of hard disk attachments which are attached to the
4900 the controller with the given name.
4901
4902 <result name="VBOX_E_OBJECT_NOT_FOUND">
4903 A storage controller with given name doesn't exist.
4904 </result>
4905 </desc>
4906 <param name="name" type="wstring" dir="in"/>
4907 <param name="hardDiskAttachments" type="IHardDiskAttachment" safearray="yes" dir="return"/>
4908 </method>
4909
4910 <method name="getNetworkAdapter" const="yes">
4911 <desc>
4912 Returns the network adapter associated with the given slot.
4913 Slots are numbered sequentially, starting with zero. The total
4914 number of adapters per machine is defined by the
4915 <link to="ISystemProperties::networkAdapterCount"/> property,
4916 so the maximum slot number is one less than that property's value.
4917
4918 <result name="E_INVALIDARG">
4919 Invalid @a slot number.
4920 </result>
4921
4922 </desc>
4923 <param name="slot" type="unsigned long" dir="in"/>
4924 <param name="adapter" type="INetworkAdapter" dir="return"/>
4925 </method>
4926
4927 <method name="addStorageController">
4928 <desc>
4929 Adds a new storage controller (SCSI or SATA controller) to the
4930 machine and returns it as an instance of
4931 <link to="IStorageController" />.
4932
4933 @a name identifies the controller for subsequent calls such as
4934 <link to="#getStorageControllerByName" /> or
4935 <link to="#removeStorageController" /> or
4936 <link to="#attachHardDisk" />.
4937
4938 After the controller has been added, you can set its exact
4939 type by setting the <link to="IStorageController::controllerType" />.
4940
4941 <result name="VBOX_E_OBJECT_IN_USE">
4942 A storage controller with given name exists already.
4943 </result>
4944 <result name="E_INVALIDARG">
4945 Invalid @a controllerType.
4946 </result>
4947 </desc>
4948 <param name="name" type="wstring" dir="in"/>
4949 <param name="connectionType" type="StorageBus" dir="in"/>
4950 <param name="controller" type="IStorageController" dir="return"/>
4951 </method>
4952
4953 <method name="getStorageControllerByName" const="yes">
4954 <desc>
4955 Returns a storage controller with the given name.
4956
4957 <result name="VBOX_E_OBJECT_NOT_FOUND">
4958 A storage controller with given name doesn't exist.
4959 </result>
4960 </desc>
4961 <param name="name" type="wstring" dir="in"/>
4962 <param name="storageController" type="IStorageController" dir="return"/>
4963 </method>
4964
4965 <method name="removeStorageController">
4966 <desc>
4967 Removes a storage controller from the machine.
4968
4969 <result name="VBOX_E_OBJECT_NOT_FOUND">
4970 A storage controller with given name doesn't exist.
4971 </result>
4972 </desc>
4973 <param name="name" type="wstring" dir="in"/>
4974 </method>
4975
4976 <method name="getSerialPort" const="yes">
4977 <desc>
4978 Returns the serial port associated with the given slot.
4979 Slots are numbered sequentially, starting with zero. The total
4980 number of serial ports per machine is defined by the
4981 <link to="ISystemProperties::serialPortCount"/> property,
4982 so the maximum slot number is one less than that property's value.
4983
4984 <result name="E_INVALIDARG">
4985 Invalid @a slot number.
4986 </result>
4987
4988 </desc>
4989 <param name="slot" type="unsigned long" dir="in"/>
4990 <param name="port" type="ISerialPort" dir="return"/>
4991 </method>
4992
4993 <method name="getParallelPort" const="yes">
4994 <desc>
4995 Returns the parallel port associated with the given slot.
4996 Slots are numbered sequentially, starting with zero. The total
4997 number of parallel ports per machine is defined by the
4998 <link to="ISystemProperties::parallelPortCount"/> 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="IParallelPort" dir="return"/>
5008 </method>
5009
5010 <method name="getNextExtraDataKey">
5011 <desc>
5012 Returns the machine-specific extra data key name following the
5013 supplied key.
5014
5015 An error is returned if the supplied @a key does not exist. @c null is
5016 returned in @a nextKey if the supplied key is the last key. When
5017 supplying @c null for the @a key, the first key item is returned in
5018 @a nextKey (if there is any). @a nextValue is an optional parameter and
5019 if supplied, the next key's value is returned in it.
5020
5021 <result name="VBOX_E_OBJECT_NOT_FOUND">
5022 Extra data @a key not found.
5023 </result>
5024
5025 </desc>
5026 <param name="key" type="wstring" dir="in">
5027 <desc>Name of the data key to follow.</desc>
5028 </param>
5029 <param name="nextKey" type="wstring" dir="out">
5030 <desc>Name of the next data key.</desc>
5031 </param>
5032 <param name="nextValue" type="wstring" dir="out">
5033 <desc>Value of the next data key.</desc>
5034 </param>
5035 </method>
5036
5037 <method name="getExtraData">
5038 <desc>
5039 Returns associated machine-specific extra data.
5040
5041 If the requested data @a key does not exist, this function will
5042 succeed and return @c null in the @a value argument.
5043
5044 <result name="VBOX_E_FILE_ERROR">
5045 Settings file not accessible.
5046 </result>
5047 <result name="VBOX_E_XML_ERROR">
5048 Could not parse the settings file.
5049 </result>
5050
5051 </desc>
5052 <param name="key" type="wstring" dir="in">
5053 <desc>Name of the data key to get.</desc>
5054 </param>
5055 <param name="value" type="wstring" dir="return">
5056 <desc>Value of the requested data key.</desc>
5057 </param>
5058 </method>
5059
5060 <method name="setExtraData">
5061 <desc>
5062 Sets associated machine-specific extra data.
5063
5064 If you pass @c null as a key @a value, the given @a key will be
5065 deleted.
5066
5067 <note>
5068 Before performing the actual data change, this method will ask all
5069 registered callbacks using the
5070 <link to="IVirtualBoxCallback::onExtraDataCanChange"/>
5071 notification for a permission. If one of the callbacks refuses the
5072 new value, the change will not be performed.
5073 </note>
5074 <note>
5075 On success, the
5076 <link to="IVirtualBoxCallback::onExtraDataChange"/> notification
5077 is called to inform all registered callbacks about a successful data
5078 change.
5079 </note>
5080 <note>
5081 This method can be called outside the machine session and therefore
5082 it's a caller's responsibility to handle possible race conditions
5083 when several clients change the same key at the same time.
5084 </note>
5085
5086 <result name="VBOX_E_FILE_ERROR">
5087 Settings file not accessible.
5088 </result>
5089 <result name="VBOX_E_XML_ERROR">
5090 Could not parse the settings file.
5091 </result>
5092
5093 </desc>
5094 <param name="key" type="wstring" dir="in">
5095 <desc>Name of the data key to set.</desc>
5096 </param>
5097 <param name="value" type="wstring" dir="in">
5098 <desc>Value to assign to the key.</desc>
5099 </param>
5100 </method>
5101
5102 <method name="saveSettings">
5103 <desc>
5104 Saves any changes to machine settings made since the session
5105 has been opened or a new machine has been created, or since the
5106 last call to <link to="#saveSettings"/> or <link to="#discardSettings"/>.
5107 For registered machines, new settings become visible to all
5108 other VirtualBox clients after successful invocation of this
5109 method.
5110 <note>
5111 The method sends <link to="IVirtualBoxCallback::onMachineDataChange"/>
5112 notification event after the configuration has been successfully
5113 saved (only for registered machines).
5114 </note>
5115 <note>
5116 Calling this method is only valid on instances returned
5117 by <link to="ISession::machine"/> and on new machines
5118 created by <link to="IVirtualBox::createMachine"/> but not
5119 yet registered, or on unregistered machines after calling
5120 <link to="IVirtualBox::unregisterMachine"/>.
5121 </note>
5122
5123 <result name="VBOX_E_FILE_ERROR">
5124 Settings file not accessible.
5125 </result>
5126 <result name="VBOX_E_XML_ERROR">
5127 Could not parse the settings file.
5128 </result>
5129 <result name="E_ACCESSDENIED">
5130 Modification request refused.
5131 </result>
5132
5133 </desc>
5134 </method>
5135
5136 <method name="saveSettingsWithBackup">
5137 <desc>
5138 Creates a backup copy of the machine settings file (<link
5139 to="IMachine::settingsFilePath"/>) in case of auto-conversion, and then calls
5140 <link to="IMachine::saveSettings"/>.
5141
5142 Note that the backup copy is created <b>only</b> if the settings file
5143 auto-conversion took place (see <link to="#settingsFileVersion"/> for
5144 details). Otherwise, this call is fully equivalent to
5145 <link to="IMachine::saveSettings"/> and no backup copying is done.
5146
5147 The backup copy is created in the same directory where the original
5148 settings file is located. It is given the following file name:
5149 <pre>
5150 original.xml.x.y-platform.bak
5151 </pre>
5152 where <tt>original.xml</tt> is the original settings file name
5153 (excluding path), and <tt>x.y-platform</tt> is the version of the old
5154 format of the settings file (before auto-conversion).
5155
5156 If the given backup file already exists, this method will try to add the
5157 <tt>.N</tt> suffix to the backup file name (where @c N counts from
5158 0 to 9) and copy it again until it succeeds. If all suffixes are
5159 occupied, or if any other copy error occurs, this method will return a
5160 failure.
5161
5162 If the copy operation succeeds, the @a bakFileName return argument will
5163 receive a full path to the created backup file (for informational
5164 purposes). Note that this will happen even if the subsequent
5165 <link to="#saveSettings"/> call performed by this method after the
5166 copy operation, fails.
5167
5168 <note>
5169 The VirtualBox API never calls this method. It is intended purely for
5170 the purposes of creating backup copies of the settings files by
5171 front-ends before saving the results of the automatically performed
5172 settings conversion to disk.
5173 </note>
5174
5175 <see>settingsFileVersion</see>
5176
5177 <result name="VBOX_E_FILE_ERROR">
5178 Settings file not accessible.
5179 </result>
5180 <result name="VBOX_E_XML_ERROR">
5181 Could not parse the settings file.
5182 </result>
5183 <result name="VBOX_E_INVALID_VM_STATE">
5184 Virtual machine is not mutable.
5185 </result>
5186 <result name="E_ACCESSDENIED">
5187 Modification request refused.
5188 </result>
5189
5190 </desc>
5191 <param name="bakFileName" type="wstring" dir="return">
5192 <desc>Full path to the created backup copy.</desc>
5193 </param>
5194 </method>
5195
5196 <method name="discardSettings">
5197 <desc>
5198 Discards any changes to the machine settings made since the session
5199 has been opened or since the last call to <link to="#saveSettings"/>
5200 or <link to="#discardSettings"/>.
5201 <note>
5202 Calling this method is only valid on instances returned
5203 by <link to="ISession::machine"/> and on new machines
5204 created by <link to="IVirtualBox::createMachine"/> or
5205 opened by <link to="IVirtualBox::openMachine"/> but not
5206 yet registered, or on unregistered machines after calling
5207 <link to="IVirtualBox::unregisterMachine"/>.
5208 </note>
5209
5210 <result name="VBOX_E_INVALID_VM_STATE">
5211 Virtual machine is not mutable.
5212 </result>
5213
5214 </desc>
5215 </method>
5216
5217 <method name="deleteSettings">
5218 <desc>
5219 Deletes the settings file of this machine from disk.
5220 The machine must not be registered in order for this operation
5221 to succeed.
5222 <note>
5223 <link to="#settingsModified"/> will return @c true after this
5224 method successfully returns.
5225 </note>
5226 <note>
5227 Calling this method is only valid on instances returned
5228 by <link to="ISession::machine"/> and on new machines
5229 created by <link to="IVirtualBox::createMachine"/> or
5230 opened by <link to="IVirtualBox::openMachine"/> but not
5231 yet registered, or on unregistered machines after calling
5232 <link to="IVirtualBox::unregisterMachine"/>.
5233 </note>
5234 <note>
5235 The deleted machine settings file can be restored (saved again)
5236 by calling <link to="#saveSettings"/>.
5237 </note>
5238
5239 <result name="VBOX_E_INVALID_VM_STATE">
5240 Cannot delete settings of a registered machine or
5241 machine not mutable.
5242 </result>
5243 <result name="VBOX_E_IPRT_ERROR">
5244 Could not delete the settings file.
5245 </result>
5246
5247 </desc>
5248 </method>
5249
5250 <method name="export">
5251 <desc>Exports the machine to an OVF appliance. See <link to="IAppliance" /> for the
5252 steps required to export VirtualBox machines to OVF.
5253 </desc>
5254
5255 <param name="aAppliance" type="IAppliance" dir="in">
5256 <desc>Appliance to export this machine to.</desc>
5257 </param>
5258 <param name="aDescription" type="IVirtualSystemDescription" dir="return">
5259 <desc>VirtualSystemDescription object which is created for this machine.</desc>
5260 </param>
5261 </method >
5262
5263 <method name="getSnapshot">
5264 <desc>
5265 Returns a snapshot of this machine with the given UUID.
5266 A @c null UUID can be used to obtain the first snapshot
5267 taken on this machine. This is useful if you want to traverse
5268 the whole tree of snapshots starting from the root.
5269
5270 <result name="VBOX_E_OBJECT_NOT_FOUND">
5271 Virtual machine has no snapshots or snapshot not found.
5272 </result>
5273
5274 </desc>
5275 <param name="id" type="wstring" dir="in">
5276 <desc>UUID of the snapshot to get</desc>
5277 </param>
5278 <param name="snapshot" type="ISnapshot" dir="return">
5279 <desc>Snapshot object with the given UUID.</desc>
5280 </param>
5281 </method>
5282
5283 <method name="findSnapshot">
5284 <desc>
5285 Returns a snapshot of this machine with the given name.
5286
5287 <result name="VBOX_E_OBJECT_NOT_FOUND">
5288 Virtual machine has no snapshots or snapshot not found.
5289 </result>
5290
5291 </desc>
5292 <param name="name" type="wstring" dir="in">
5293 <desc>Name of the snapshot to find</desc>
5294 </param>
5295 <param name="snapshot" type="ISnapshot" dir="return">
5296 <desc>Snapshot object with the given name.</desc>
5297 </param>
5298 </method>
5299
5300 <method name="setCurrentSnapshot">
5301 <desc>
5302 Sets the current snapshot of this machine.
5303 <note>
5304 In the current implementation, this operation is not
5305 implemented.
5306 </note>
5307 </desc>
5308 <param name="id" type="wstring" dir="in">
5309 <desc>UUID of the snapshot to set as the current snapshot.</desc>
5310 </param>
5311 </method>
5312
5313 <method name="createSharedFolder">
5314 <desc>
5315 Creates a new permanent shared folder by associating the given logical
5316 name with the given host path, adds it to the collection of shared
5317 folders and starts sharing it. Refer to the description of
5318 <link to="ISharedFolder"/> to read more about logical names.
5319
5320 <result name="VBOX_E_OBJECT_IN_USE">
5321 Shared folder already exists.
5322 </result>
5323 <result name="VBOX_E_FILE_ERROR">
5324 Shared folder @a hostPath not accessible.
5325 </result>
5326
5327 </desc>
5328 <param name="name" type="wstring" dir="in">
5329 <desc>Unique logical name of the shared folder.</desc>
5330 </param>
5331 <param name="hostPath" type="wstring" dir="in">
5332 <desc>Full path to the shared folder in the host file system.</desc>
5333 </param>
5334 <param name="writable" type="boolean" dir="in">
5335 <desc>Whether the share is writable or readonly</desc>
5336 </param>
5337 </method>
5338
5339 <method name="removeSharedFolder">
5340 <desc>
5341 Removes the permanent shared folder with the given name previously
5342 created by <link to="#createSharedFolder"/> from the collection of
5343 shared folders and stops sharing it.
5344
5345 <result name="VBOX_E_INVALID_VM_STATE">
5346 Virtual machine is not mutable.
5347 </result>
5348 <result name="VBOX_E_OBJECT_NOT_FOUND">
5349 Shared folder @a name does not exist.
5350 </result>
5351
5352 </desc>
5353 <param name="name" type="wstring" dir="in">
5354 <desc>Logical name of the shared folder to remove.</desc>
5355 </param>
5356 </method>
5357
5358 <method name="canShowConsoleWindow">
5359 <desc>
5360 Returns @c true if the VM console process can activate the
5361 console window and bring it to foreground on the desktop of
5362 the host PC.
5363 <note>
5364 This method will fail if a session for this machine is not
5365 currently open.
5366 </note>
5367
5368 <result name="VBOX_E_INVALID_VM_STATE">
5369 Machine session is not open.
5370 </result>
5371
5372 </desc>
5373 <param name="canShow" type="boolean" dir="return">
5374 <desc>
5375 @c true if the console window can be shown and @c false otherwise.
5376 </desc>
5377 </param>
5378 </method>
5379
5380 <method name="showConsoleWindow">
5381 <desc>
5382 Activates the console window and brings it to foreground on
5383 the desktop of the host PC. Many modern window managers on
5384 many platforms implement some sort of focus stealing
5385 prevention logic, so that it may be impossible to activate
5386 a window without the help of the currently active
5387 application. In this case, this method will return a non-zero
5388 identifier that represents the top-level window of the VM
5389 console process. The caller, if it represents a currently
5390 active process, is responsible to use this identifier (in a
5391 platform-dependent manner) to perform actual window
5392 activation.
5393 <note>
5394 This method will fail if a session for this machine is not
5395 currently open.
5396 </note>
5397
5398 <result name="VBOX_E_INVALID_VM_STATE">
5399 Machine session is not open.
5400 </result>
5401
5402 </desc>
5403 <param name="winId" type="unsigned long long" dir="return">
5404 <desc>
5405 Platform-dependent identifier of the top-level VM console
5406 window, or zero if this method has performed all actions
5407 necessary to implement the <i>show window</i> semantics for
5408 the given platform and/or VirtualBox front-end.
5409 </desc>
5410 </param>
5411 </method>
5412
5413 <method name="getGuestProperty">
5414 <desc>
5415 Reads an entry from the machine's guest property store.
5416
5417 <result name="VBOX_E_INVALID_VM_STATE">
5418 Machine session is not open.
5419 </result>
5420
5421 </desc>
5422 <param name="name" type="wstring" dir="in">
5423 <desc>
5424 The name of the property to read.
5425 </desc>
5426 </param>
5427 <param name="value" type="wstring" dir="out">
5428 <desc>
5429 The value of the property. If the property does not exist then this
5430 will be empty.
5431 </desc>
5432 </param>
5433 <param name="timestamp" type="unsigned long long" dir="out">
5434 <desc>
5435 The time at which the property was last modified, as seen by the
5436 server process.
5437 </desc>
5438 </param>
5439 <param name="flags" type="wstring" dir="out">
5440 <desc>
5441 Additional property parameters, passed as a comma-separated list of
5442 "name=value" type entries.
5443 </desc>
5444 </param>
5445 </method>
5446
5447 <method name="getGuestPropertyValue">
5448 <desc>
5449 Reads a value from the machine's guest property store.
5450
5451 <result name="VBOX_E_INVALID_VM_STATE">
5452 Machine session is not open.
5453 </result>
5454
5455 </desc>
5456 <param name="property" type="wstring" dir="in">
5457 <desc>
5458 The name of the property to read.
5459 </desc>
5460 </param>
5461 <param name="value" type="wstring" dir="return">
5462 <desc>
5463 The value of the property. If the property does not exist then this
5464 will be empty.
5465 </desc>
5466 </param>
5467 </method>
5468
5469 <method name="getGuestPropertyTimestamp">
5470 <desc>
5471 Reads a property timestamp from the machine's guest property store.
5472
5473 <result name="VBOX_E_INVALID_VM_STATE">
5474 Machine session is not open.
5475 </result>
5476
5477 </desc>
5478 <param name="property" type="wstring" dir="in">
5479 <desc>
5480 The name of the property to read.
5481 </desc>
5482 </param>
5483 <param name="value" type="unsigned long long" dir="return">
5484 <desc>
5485 The timestamp. If the property does not exist then this will be
5486 empty.
5487 </desc>
5488 </param>
5489 </method>
5490
5491 <method name="setGuestProperty">
5492 <desc>
5493 Sets, changes or deletes an entry in the machine's guest property
5494 store.
5495
5496 <result name="E_ACCESSDENIED">
5497 Property cannot be changed.
5498 </result>
5499 <result name="E_INVALIDARG">
5500 Invalid @a flags.
5501 </result>
5502 <result name="VBOX_E_INVALID_VM_STATE">
5503 Virtual machine is not mutable or session not open.
5504 </result>
5505 <result name="VBOX_E_INVALID_OBJECT_STATE">
5506 Cannot set transient property when machine not running.
5507 </result>
5508
5509 </desc>
5510 <param name="property" type="wstring" dir="in">
5511 <desc>
5512 The name of the property to set, change or delete.
5513 </desc>
5514 </param>
5515 <param name="value" type="wstring" dir="in">
5516 <desc>
5517 The new value of the property to set, change or delete. If the
5518 property does not yet exist and value is non-empty, it will be
5519 created. If the value is empty, the key will be deleted if it
5520 exists.
5521 </desc>
5522 </param>
5523 <param name="flags" type="wstring" dir="in">
5524 <desc>
5525 Additional property parameters, passed as a comma-separated list of
5526 "name=value" type entries.
5527 </desc>
5528 </param>
5529 </method>
5530
5531 <method name="setGuestPropertyValue">
5532 <desc>
5533 Sets, changes or deletes a value in the machine's guest property
5534 store. The flags field will be left unchanged or created empty for a
5535 new property.
5536
5537 <result name="E_ACCESSDENIED">
5538 Property cannot be changed.
5539 </result>
5540 <result name="VBOX_E_INVALID_VM_STATE">
5541 Virtual machine is not mutable or session not open.
5542 </result>
5543 <result name="VBOX_E_INVALID_OBJECT_STATE">
5544 Cannot set transient property when machine not running.
5545 </result>
5546 </desc>
5547
5548 <param name="property" type="wstring" dir="in">
5549 <desc>
5550 The name of the property to set, change or delete.
5551 </desc>
5552 </param>
5553 <param name="value" type="wstring" dir="in">
5554 <desc>
5555 The new value of the property to set, change or delete. If the
5556 property does not yet exist and value is non-empty, it will be
5557 created. If value is empty, the property will be deleted if it
5558 exists.
5559 </desc>
5560 </param>
5561 </method>
5562
5563 <method name="enumerateGuestProperties">
5564 <desc>
5565 Return a list of the guest properties matching a set of patterns along
5566 with their values, time stamps and flags.
5567 </desc>
5568 <param name="patterns" type="wstring" dir="in">
5569 <desc>
5570 The patterns to match the properties against, separated by '|'
5571 characters. If this is empty or @c null, all properties will match.
5572 </desc>
5573 </param>
5574 <param name="name" type="wstring" dir="out" safearray="yes">
5575 <desc>
5576 The names of the properties returned.
5577 </desc>
5578 </param>
5579 <param name="value" type="wstring" dir="out" safearray="yes">
5580 <desc>
5581 The values of the properties returned. The array entries match the
5582 corresponding entries in the @a name array.
5583 </desc>
5584 </param>
5585 <param name="timestamp" type="unsigned long long" dir="out" safearray="yes">
5586 <desc>
5587 The time stamps of the properties returned. The array entries match
5588 the corresponding entries in the @a name array.
5589 </desc>
5590 </param>
5591 <param name="flags" type="wstring" dir="out" safearray="yes">
5592 <desc>
5593 The flags of the properties returned. The array entries match the
5594 corresponding entries in the @a name array.
5595 </desc>
5596 </param>
5597 </method>
5598</interface>
5599
5600 <!--
5601 // IConsole
5602 /////////////////////////////////////////////////////////////////////////
5603 -->
5604
5605 <interface
5606 name="IConsoleCallback" extends="$unknown"
5607 uuid="13dfbef3-b74d-487d-bada-2304529aefa6"
5608 wsmap="suppress"
5609 >
5610
5611 <desc>
5612 This interface is used by a client of the Main API that need to
5613 be notified of events. For example, a graphical user interface
5614 can use this to learn about machine state changes so they can
5615 update the list of virtual machines without having to rely
5616 on polling.
5617
5618 Whenever relevant events occur in VirtualBox, the callbacks in
5619 objects of this interface are called. In order for this to be
5620 useful, a client needs to create its own subclass that implements
5621 this interface in which the methods for the relevant callbacks
5622 are overridden. An instance of this subclass interface can then
5623 be passed to <link to="IConsole::registerCallback" />.
5624 </desc>
5625
5626 <method name="onMousePointerShapeChange">
5627 <desc>
5628 Notification when the guest mouse pointer shape has
5629 changed. The new shape data is given.
5630 </desc>
5631 <param name="visible" type="boolean" dir="in">
5632 <desc>
5633 Flag whether the pointer is visible.
5634 </desc>
5635 </param>
5636 <param name="alpha" type="boolean" dir="in">
5637 <desc>
5638 Flag whether the pointer has an alpha channel.
5639 </desc>
5640 </param>
5641 <param name="xHot" type="unsigned long" dir="in">
5642 <desc>
5643 The pointer hot spot x coordinate.
5644 </desc>
5645 </param>
5646 <param name="yHot" type="unsigned long" dir="in">
5647 <desc>
5648 The pointer hot spot y coordinate.
5649 </desc>
5650 </param>
5651 <param name="width" type="unsigned long" dir="in">
5652 <desc>
5653 Width of the pointer shape in pixels.
5654 </desc>
5655 </param>
5656 <param name="height" type="unsigned long" dir="in">
5657 <desc>
5658 Height of the pointer shape in pixels.
5659 </desc>
5660 </param>
5661 <param name="shape" type="octet" mod="ptr" dir="in">
5662 <desc>
5663 Address of the shape buffer.
5664
5665 The @a shape buffer contains a 1-bpp (bits per pixel) AND mask
5666 followed by a 32-bpp XOR (color) mask.
5667
5668 For pointers without alpha channel the XOR mask pixels are 32
5669 bit values: (lsb)BGR0(msb). For pointers with alpha channel
5670 the XOR mask consists of (lsb)BGRA(msb) 32 bit values.
5671
5672 An AND mask is used for pointers with alpha channel, so if the
5673 callback does not support alpha, the pointer could be
5674 displayed as a normal color pointer.
5675
5676 The AND mask is a 1-bpp bitmap with byte aligned scanlines. The
5677 size of the AND mask therefore is <tt>cbAnd = (width + 7) / 8 *
5678 height</tt>. The padding bits at the end of each scanline are
5679 undefined.
5680
5681 The XOR mask follows the AND mask on the next 4-byte aligned
5682 offset: <tt>uint8_t *pXor = pAnd + (cbAnd + 3) &amp; ~3</tt>.
5683 Bytes in the gap between the AND and the XOR mask are undefined.
5684 The XOR mask scanlines have no gap between them and the size of
5685 the XOR mask is: <tt>cXor = width * 4 * height</tt>.
5686
5687 <note>
5688 If @a shape is 0, only the pointer visibility is changed.
5689 </note>
5690 </desc>
5691 </param>
5692 </method>
5693
5694 <method name="onMouseCapabilityChange">
5695 <desc>
5696 Notification when the mouse capabilities reported by the
5697 guest have changed. The new capabilities are passed.
5698 </desc>
5699 <param name="supportsAbsolute" type="boolean" dir="in"/>
5700 <param name="needsHostCursor" type="boolean" dir="in"/>
5701 </method>
5702
5703 <method name="onKeyboardLedsChange">
5704 <desc>
5705 Notification when the guest OS executes the KBD_CMD_SET_LEDS command
5706 to alter the state of the keyboard LEDs.
5707 </desc>
5708 <param name="numLock" type="boolean" dir="in"/>
5709 <param name="capsLock" type="boolean" dir="in"/>
5710 <param name="scrollLock" type="boolean" dir="in"/>
5711 </method>
5712
5713 <method name="onStateChange">
5714 <desc>
5715 Notification when the execution state of the machine has changed.
5716 The new state will be given.
5717 </desc>
5718 <param name="state" type="MachineState" dir="in"/>
5719 </method>
5720
5721 <method name="onAdditionsStateChange">
5722 <desc>
5723 Notification when a Guest Additions property changes.
5724 Interested callees should query IGuest attributes to
5725 find out what has changed.
5726 </desc>
5727 </method>
5728
5729 <method name="onDVDDriveChange">
5730 <desc>
5731 Notification when a property of the
5732 virtual <link to="IMachine::DVDDrive">DVD drive</link> changes.
5733 Interested callees should use IDVDDrive methods to find out what has
5734 changed.
5735 </desc>
5736 </method>
5737
5738 <method name="onFloppyDriveChange">
5739 <desc>
5740 Notification when a property of the
5741 virtual <link to="IMachine::floppyDrive">floppy drive</link> changes.
5742 Interested callees should use IFloppyDrive methods to find out what
5743 has changed.
5744 </desc>
5745 </method>
5746
5747 <method name="onNetworkAdapterChange">
5748 <desc>
5749 Notification when a property of one of the
5750 virtual <link to="IMachine::getNetworkAdapter">network adapters</link>
5751 changes. Interested callees should use INetworkAdapter methods and
5752 attributes to find out what has changed.
5753 </desc>
5754 <param name="networkAdapter" type="INetworkAdapter" dir="in">
5755 <desc>Network adapter that is subject to change.</desc>
5756 </param>
5757 </method>
5758
5759 <method name="onSerialPortChange">
5760 <desc>
5761 Notification when a property of one of the
5762 virtual <link to="IMachine::getSerialPort">serial ports</link> changes.
5763 Interested callees should use ISerialPort methods and attributes
5764 to find out what has changed.
5765 </desc>
5766 <param name="serialPort" type="ISerialPort" dir="in">
5767 <desc>Serial port that is subject to change.</desc>
5768 </param>
5769 </method>
5770
5771 <method name="onParallelPortChange">
5772 <desc>
5773 Notification when a property of one of the
5774 virtual <link to="IMachine::getParallelPort">parallel ports</link>
5775 changes. Interested callees should use ISerialPort methods and
5776 attributes to find out what has changed.
5777 </desc>
5778 <param name="parallelPort" type="IParallelPort" dir="in">
5779 <desc>Parallel port that is subject to change.</desc>
5780 </param>
5781 </method>
5782
5783 <method name="onStorageControllerChange">
5784 <desc>
5785 Notification when a property of one of the
5786 virtual <link to="IMachine::storageControllers">storage controllers</link>
5787 changes. Interested callees should query the corresponding collections
5788 to find out what has changed.
5789 </desc>
5790 </method>
5791
5792 <method name="onVRDPServerChange">
5793 <desc>
5794 Notification when a property of the
5795 <link to="IMachine::VRDPServer">VRDP server</link> changes.
5796 Interested callees should use IVRDPServer methods and attributes to
5797 find out what has changed.
5798 </desc>
5799 </method>
5800
5801 <method name="onUSBControllerChange">
5802 <desc>
5803 Notification when a property of the virtual
5804 <link to="IMachine::USBController">USB controller</link> changes.
5805 Interested callees should use IUSBController methods and attributes to
5806 find out what has changed.
5807 </desc>
5808 </method>
5809
5810 <method name="onUSBDeviceStateChange">
5811 <desc>
5812 Notification when a USB device is attached to or detached from
5813 the virtual USB controller.
5814
5815 This notification is sent as a result of the indirect
5816 request to attach the device because it matches one of the
5817 machine USB filters, or as a result of the direct request
5818 issued by <link to="IConsole::attachUSBDevice"/> or
5819 <link to="IConsole::detachUSBDevice"/>.
5820
5821 This notification is sent in case of both a succeeded and a
5822 failed request completion. When the request succeeds, the
5823 @a error parameter is @c null, and the given device has been
5824 already added to (when @a attached is @c true) or removed from
5825 (when @a attached is @c false) the collection represented by
5826 <link to="IConsole::USBDevices"/>. On failure, the collection
5827 doesn't change and the @a error parameter represents the error
5828 message describing the failure.
5829
5830 </desc>
5831 <param name="device" type="IUSBDevice" dir="in">
5832 <desc>Device that is subject to state change.</desc>
5833 </param>
5834 <param name="attached" type="boolean" dir="in">
5835 <desc>
5836 @c true if the device was attached and @c false otherwise.
5837 </desc>
5838 </param>
5839 <param name="error" type="IVirtualBoxErrorInfo" dir="in">
5840 <desc>
5841 @c null on success or an error message object on failure.
5842 </desc>
5843 </param>
5844 </method>
5845
5846 <method name="onSharedFolderChange">
5847 <desc>
5848 Notification when a shared folder is added or removed.
5849 The @a scope argument defines one of three scopes:
5850 <link to="IVirtualBox::sharedFolders">global shared folders</link>
5851 (<link to="Scope_Global">Global</link>),
5852 <link to="IMachine::sharedFolders">permanent shared folders</link> of
5853 the machine (<link to="Scope_Machine">Machine</link>) or <link
5854 to="IConsole::sharedFolders">transient shared folders</link> of the
5855 machine (<link to="Scope_Session">Session</link>). Interested callees
5856 should use query the corresponding collections to find out what has
5857 changed.
5858 </desc>
5859 <param name="scope" type="Scope" dir="in">
5860 <desc>Scope of the notification.</desc>
5861 </param>
5862 </method>
5863
5864 <method name="onRuntimeError">
5865 <desc>
5866 Notification when an error happens during the virtual
5867 machine execution.
5868
5869 There are three kinds of runtime errors:
5870 <ul>
5871 <li><i>fatal</i></li>
5872 <li><i>non-fatal with retry</i></li>
5873 <li><i>non-fatal warnings</i></li>
5874 </ul>
5875
5876 <b>Fatal</b> errors are indicated by the @a fatal parameter set
5877 to @c true. In case of fatal errors, the virtual machine
5878 execution is always paused before calling this notification, and
5879 the notification handler is supposed either to immediately save
5880 the virtual machine state using <link to="IConsole::saveState"/>
5881 or power it off using <link to="IConsole::powerDown"/>.
5882 Resuming the execution can lead to unpredictable results.
5883
5884 <b>Non-fatal</b> errors and warnings are indicated by the
5885 @a fatal parameter set to @c false. If the virtual machine
5886 is in the Paused state by the time the error notification is
5887 received, it means that the user can <i>try to resume</i> the machine
5888 execution after attempting to solve the problem that caused the
5889 error. In this case, the notification handler is supposed
5890 to show an appropriate message to the user (depending on the
5891 value of the @a id parameter) that offers several actions such
5892 as <i>Retry</i>, <i>Save</i> or <i>Power Off</i>. If the user
5893 wants to retry, the notification handler should continue
5894 the machine execution using the <link to="IConsole::resume"/>
5895 call. If the machine execution is not Paused during this
5896 notification, then it means this notification is a <i>warning</i>
5897 (for example, about a fatal condition that can happen very soon);
5898 no immediate action is required from the user, the machine
5899 continues its normal execution.
5900
5901 Note that in either case the notification handler
5902 <b>must not</b> perform any action directly on a thread
5903 where this notification is called. Everything it is allowed to
5904 do is to post a message to another thread that will then talk
5905 to the user and take the corresponding action.
5906
5907 Currently, the following error identifiers are known:
5908 <ul>
5909 <li><tt>"HostMemoryLow"</tt></li>
5910 <li><tt>"HostAudioNotResponding"</tt></li>
5911 <li><tt>"VDIStorageFull"</tt></li>
5912 </ul>
5913
5914 <note>
5915 This notification is not designed to be implemented by
5916 more than one callback at a time. If you have multiple
5917 IConsoleCallback instances registered on the given
5918 IConsole object, make sure you simply do nothing but
5919 return @c S_OK from all but one of them that does actual
5920 user notification and performs necessary actions.
5921 </note>
5922
5923 </desc>
5924 <param name="fatal" type="boolean" dir="in">
5925 <desc>Whether the error is fatal or not</desc>
5926 </param>
5927 <param name="id" type="wstring" dir="in">
5928 <desc>Error identifier</desc>
5929 </param>
5930 <param name="message" type="wstring" dir="in">
5931 <desc>Optional error message</desc>
5932 </param>
5933 </method>
5934
5935 <method name="onCanShowWindow">
5936 <desc>
5937 Notification when a call to
5938 <link to="IMachine::canShowConsoleWindow"/> is made by a
5939 front-end to check if a subsequent call to
5940 <link to="IMachine::showConsoleWindow"/> can succeed.
5941
5942 The callee should give an answer appropriate to the current
5943 machine state in the @a canShow argument. This answer must
5944 remain valid at least until the next
5945 <link to="IConsole::state">machine state</link> change.
5946
5947 <note>
5948 This notification is not designed to be implemented by
5949 more than one callback at a time. If you have multiple
5950 IConsoleCallback instances registered on the given
5951 IConsole object, make sure you simply do nothing but
5952 return @c true and @c S_OK from all but one of them that
5953 actually manages console window activation.
5954 </note>
5955 </desc>
5956 <param name="canShow" type="boolean" dir="return">
5957 <desc>
5958 @c true if the console window can be shown and @c false otherwise.
5959 </desc>
5960 </param>
5961 </method>
5962
5963 <method name="onShowWindow">
5964 <desc>
5965 Notification when a call to
5966 <link to="IMachine::showConsoleWindow"/>
5967 requests the console window to be activated and brought to
5968 foreground on the desktop of the host PC.
5969
5970 This notification should cause the VM console process to
5971 perform the requested action as described above. If it is
5972 impossible to do it at a time of this notification, this
5973 method should return a failure.
5974
5975 Note that many modern window managers on many platforms
5976 implement some sort of focus stealing prevention logic, so
5977 that it may be impossible to activate a window without the
5978 help of the currently active application (which is supposedly
5979 an initiator of this notification). In this case, this method
5980 must return a non-zero identifier that represents the
5981 top-level window of the VM console process. The caller, if it
5982 represents a currently active process, is responsible to use
5983 this identifier (in a platform-dependent manner) to perform
5984 actual window activation.
5985
5986 This method must set @a winId to zero if it has performed all
5987 actions necessary to complete the request and the console
5988 window is now active and in foreground, to indicate that no
5989 further action is required on the caller's side.
5990
5991 <note>
5992 This notification is not designed to be implemented by
5993 more than one callback at a time. If you have multiple
5994 IConsoleCallback instances registered on the given
5995 IConsole object, make sure you simply do nothing but
5996 return @c S_OK from all but one of them that actually
5997 manages console window activation.
5998 </note>
5999 </desc>
6000 <param name="winId" type="unsigned long long" dir="return">
6001 <desc>
6002 Platform-dependent identifier of the top-level VM console
6003 window, or zero if this method has performed all actions
6004 necessary to implement the <i>show window</i> semantics for
6005 the given platform and/or this VirtualBox front-end.
6006 </desc>
6007 </param>
6008 </method>
6009
6010 </interface>
6011
6012 <interface
6013 name="IRemoteDisplayInfo" extends="$unknown"
6014 uuid="550104cd-2dfd-4a6c-857d-f6f8e088e62c"
6015 wsmap="struct"
6016 >
6017 <desc>
6018 Contains information about the remote display (VRDP) capabilities and status.
6019 This is used in the <link to="IConsole::remoteDisplayInfo" /> attribute.
6020 </desc>
6021
6022 <attribute name="active" type="boolean" readonly="yes">
6023 <desc>
6024 Whether the remote display connection is active.
6025 </desc>
6026 </attribute>
6027
6028 <attribute name="numberOfClients" type="unsigned long" readonly="yes">
6029 <desc>
6030 How many times a client connected.
6031 </desc>
6032 </attribute>
6033
6034 <attribute name="beginTime" type="long long" readonly="yes">
6035 <desc>
6036 When the last connection was established, in milliseconds since 1970-01-01 UTC.
6037 </desc>
6038 </attribute>
6039
6040 <attribute name="endTime" type="long long" readonly="yes">
6041 <desc>
6042 When the last connection was terminated or the current time, if
6043 connection is still active, in milliseconds since 1970-01-01 UTC.
6044 </desc>
6045 </attribute>
6046
6047 <attribute name="bytesSent" type="unsigned long long" readonly="yes">
6048 <desc>
6049 How many bytes were sent in last or current, if still active, connection.
6050 </desc>
6051 </attribute>
6052
6053 <attribute name="bytesSentTotal" type="unsigned long long" readonly="yes">
6054 <desc>
6055 How many bytes were sent in all connections.
6056 </desc>
6057 </attribute>
6058
6059 <attribute name="bytesReceived" type="unsigned long long" readonly="yes">
6060 <desc>
6061 How many bytes were received in last or current, if still active, connection.
6062 </desc>
6063 </attribute>
6064
6065 <attribute name="bytesReceivedTotal" type="unsigned long long" readonly="yes">
6066 <desc>
6067 How many bytes were received in all connections.
6068 </desc>
6069 </attribute>
6070
6071 <attribute name="user" type="wstring" readonly="yes">
6072 <desc>
6073 Login user name supplied by the client.
6074 </desc>
6075 </attribute>
6076
6077 <attribute name="domain" type="wstring" readonly="yes">
6078 <desc>
6079 Login domain name supplied by the client.
6080 </desc>
6081 </attribute>
6082
6083 <attribute name="clientName" type="wstring" readonly="yes">
6084 <desc>
6085 The client name supplied by the client.
6086 </desc>
6087 </attribute>
6088
6089 <attribute name="clientIP" type="wstring" readonly="yes">
6090 <desc>
6091 The IP address of the client.
6092 </desc>
6093 </attribute>
6094
6095 <attribute name="clientVersion" type="unsigned long" readonly="yes">
6096 <desc>
6097 The client software version number.
6098 </desc>
6099 </attribute>
6100
6101 <attribute name="encryptionStyle" type="unsigned long" readonly="yes">
6102 <desc>
6103 Public key exchange method used when connection was established.
6104 Values: 0 - RDP4 public key exchange scheme.
6105 1 - X509 certificates were sent to client.
6106 </desc>
6107 </attribute>
6108
6109 </interface>
6110
6111 <interface
6112 name="IConsole" extends="$unknown"
6113 uuid="0a51994b-cbc6-4686-94eb-d4e4023280e2"
6114 wsmap="managed"
6115 >
6116 <desc>
6117 The IConsole interface represents an interface to control virtual
6118 machine execution.
6119
6120 The console object that implements the IConsole interface is obtained
6121 from a session object after the session for the given machine has been
6122 opened using one of <link to="IVirtualBox::openSession"/>,
6123 <link to="IVirtualBox::openRemoteSession"/> or
6124 <link to="IVirtualBox::openExistingSession"/> methods.
6125
6126 Methods of the IConsole interface allow the caller to query the current
6127 virtual machine execution state, pause the machine or power it down, save
6128 the machine state or take a snapshot, attach and detach removable media
6129 and so on.
6130
6131 <see>ISession</see>
6132 </desc>
6133
6134 <attribute name="machine" type="IMachine" readonly="yes">
6135 <desc>
6136 Machine object this console is sessioned with.
6137 <note>
6138 This is a convenience property, it has the same value as
6139 <link to="ISession::machine"/> of the corresponding session
6140 object.
6141 </note>
6142 </desc>
6143 </attribute>
6144
6145 <attribute name="state" type="MachineState" readonly="yes">
6146 <desc>
6147 Current execution state of the machine.
6148 <note>
6149 This property always returns the same value as the corresponding
6150 property of the IMachine object this console is sessioned with.
6151 For the process that owns (executes) the VM, this is the
6152 preferable way of querying the VM state, because no IPC
6153 calls are made.
6154 </note>
6155 </desc>
6156 </attribute>
6157
6158 <attribute name="guest" type="IGuest" readonly="yes">
6159 <desc>Guest object.</desc>
6160 </attribute>
6161
6162 <attribute name="keyboard" type="IKeyboard" readonly="yes">
6163 <desc>
6164 Virtual keyboard object.
6165 <note>
6166 If the machine is not running, any attempt to use
6167 the returned object will result in an error.
6168 </note>
6169 </desc>
6170 </attribute>
6171
6172 <attribute name="mouse" type="IMouse" readonly="yes">
6173 <desc>
6174 Virtual mouse object.
6175 <note>
6176 If the machine is not running, any attempt to use
6177 the returned object will result in an error.
6178 </note>
6179 </desc>
6180 </attribute>
6181
6182 <attribute name="display" type="IDisplay" readonly="yes">
6183 <desc>Virtual display object.
6184 <note>
6185 If the machine is not running, any attempt to use
6186 the returned object will result in an error.
6187 </note>
6188 </desc>
6189 </attribute>
6190
6191 <attribute name="debugger" type="IMachineDebugger" readonly="yes">
6192 <desc>Debugging interface.</desc>
6193 </attribute>
6194
6195 <attribute name="USBDevices" type="IUSBDevice" readonly="yes" safearray="yes">
6196 <desc>
6197 Collection of USB devices currently attached to the virtual
6198 USB controller.
6199 <note>
6200 The collection is empty if the machine is not running.
6201 </note>
6202 </desc>
6203 </attribute>
6204
6205 <attribute name="remoteUSBDevices" type="IHostUSBDevice" readonly="yes" safearray="yes">
6206 <desc>
6207 List of USB devices currently attached to the remote VRDP client.
6208 Once a new device is physically attached to the remote host computer,
6209 it appears in this list and remains there until detached.
6210 </desc>
6211 </attribute>
6212
6213 <attribute name="sharedFolders" type="ISharedFolder" readonly="yes" safearray="yes">
6214 <desc>
6215 Collection of shared folders for the current session. These folders
6216 are called transient shared folders because they are available to the
6217 guest OS running inside the associated virtual machine only for the
6218 duration of the session (as opposed to
6219 <link to="IMachine::sharedFolders"/> which represent permanent shared
6220 folders). When the session is closed (e.g. the machine is powered down),
6221 these folders are automatically discarded.
6222
6223 New shared folders are added to the collection using
6224 <link to="#createSharedFolder"/>. Existing shared folders can be
6225 removed using <link to="#removeSharedFolder"/>.
6226 </desc>
6227 </attribute>
6228
6229 <attribute name="remoteDisplayInfo" type="IRemoteDisplayInfo" readonly="yes">
6230 <desc>
6231 Interface that provides information on Remote Display (VRDP) connection.
6232 </desc>
6233 </attribute>
6234
6235 <method name="powerUp">
6236 <desc>
6237 Starts the virtual machine execution using the current machine
6238 state (that is, its current execution state, current settings and
6239 current hard disks).
6240
6241 If the machine is powered off or aborted, the execution will
6242 start from the beginning (as if the real hardware were just
6243 powered on).
6244
6245 If the machine is in the <link to="MachineState_Saved"/> state,
6246 it will continue its execution the point where the state has
6247 been saved.
6248
6249 <note>
6250 Unless you are trying to write a new VirtualBox front-end that
6251 performs direct machine execution (like the VirtualBox or VBoxSDL
6252 front-ends), don't call <link to="IConsole::powerUp"/> in a direct
6253 session opened by <link to="IVirtualBox::openSession"/> and use this
6254 session only to change virtual machine settings. If you simply want to
6255 start virtual machine execution using one of the existing front-ends
6256 (for example the VirtualBox GUI or headless server), simply use
6257 <link to="IVirtualBox::openRemoteSession"/>; these front-ends will
6258 power up the machine automatically for you.
6259 </note>
6260
6261 <see>#saveState</see>
6262 <result name="VBOX_E_INVALID_VM_STATE">
6263 Virtual machine already running.
6264 </result>
6265 <result name="VBOX_E_HOST_ERROR">
6266 Host interface does not exist or name not set.
6267 </result>
6268 <result name="VBOX_E_FILE_ERROR">
6269 Invalid saved state file.
6270 </result>
6271 </desc>
6272 <param name="progress" type="IProgress" dir="return">
6273 <desc>Progress object to track the operation completion.</desc>
6274 </param>
6275 </method>
6276
6277 <method name="powerUpPaused">
6278 <desc>
6279 Identical to powerUp except that the VM will enter the
6280 <link to="MachineState_Paused"/> state, instead of
6281 <link to="MachineState_Running"/>.
6282
6283 <see>#powerUp</see>
6284 <result name="VBOX_E_INVALID_VM_STATE">
6285 Virtual machine already running.
6286 </result>
6287 <result name="VBOX_E_HOST_ERROR">
6288 Host interface does not exist or name not set.
6289 </result>
6290 <result name="VBOX_E_FILE_ERROR">
6291 Invalid saved state file.
6292 </result>
6293 </desc>
6294 <param name="progress" type="IProgress" dir="return">
6295 <desc>Progress object to track the operation completion.</desc>
6296 </param>
6297 </method>
6298
6299 <method name="powerDown">
6300 <desc>
6301 Initiates the power down procedure to stop the virtual machine
6302 execution.
6303
6304 The completion of the power down procedure is tracked using the returned
6305 IProgress object. After the operation is complete, the machine will go
6306 to the PoweredOff state.
6307 <result name="VBOX_E_INVALID_VM_STATE">
6308 Virtual machine must be Running, Paused or Stuck to be powered down.
6309 </result>
6310 </desc>
6311 <param name="progress" type="IProgress" dir="return">
6312 <desc>Progress object to track the operation completion.</desc>
6313 </param>
6314 </method>
6315
6316 <method name="reset">
6317 <desc>Resets the virtual machine.
6318 <result name="VBOX_E_INVALID_VM_STATE">
6319 Virtual machine not in Running state.
6320 </result>
6321 <result name="VBOX_E_VM_ERROR">
6322 Virtual machine error in reset operation.
6323 </result>
6324 </desc>
6325 </method>
6326
6327 <method name="pause">
6328 <desc>Pauses the virtual machine execution.
6329 <result name="VBOX_E_INVALID_VM_STATE">
6330 Virtual machine not in Running state.
6331 </result>
6332 <result name="VBOX_E_VM_ERROR">
6333 Virtual machine error in suspend operation.
6334 </result>
6335 </desc>
6336 </method>
6337
6338 <method name="resume">
6339 <desc>Resumes the virtual machine execution.
6340 <result name="VBOX_E_INVALID_VM_STATE">
6341 Virtual machine not in Paused state.
6342 </result>
6343 <result name="VBOX_E_VM_ERROR">
6344 Virtual machine error in resume operation.
6345 </result>
6346 </desc>
6347 </method>
6348
6349 <method name="powerButton">
6350 <desc>Sends the ACPI power button event to the guest.
6351 <result name="VBOX_E_INVALID_VM_STATE">
6352 Virtual machine not in Running state.
6353 </result>
6354 <result name="VBOX_E_PDM_ERROR">
6355 Controlled power off failed.
6356 </result>
6357 </desc>
6358 </method>
6359
6360 <method name="sleepButton">
6361 <desc>Sends the ACPI sleep button event to the guest.
6362 <result name="VBOX_E_INVALID_VM_STATE">
6363 Virtual machine not in Running state.
6364 </result>
6365 <result name="VBOX_E_PDM_ERROR">
6366 Sending sleep button event failed.
6367 </result>
6368 </desc>
6369 </method>
6370
6371 <method name="getPowerButtonHandled">
6372 <desc>Checks if the last power button event was handled by guest.
6373 <result name="VBOX_E_PDM_ERROR">
6374 Checking if the event was handled by the guest OS failed.
6375 </result>
6376 </desc>
6377 <param name="handled" type="boolean" dir="return"/>
6378 </method>
6379
6380 <method name="getGuestEnteredACPIMode">
6381 <desc>Checks if the guest entered the ACPI mode G0 (working) or
6382 G1 (sleeping). If this method returns @c false, the guest will
6383 most likely not respond to external ACPI events.
6384 <result name="VBOX_E_INVALID_VM_STATE">
6385 Virtual machine not in Running state.
6386 </result>
6387 </desc>
6388 <param name="entered" type="boolean" dir="return"/>
6389 </method>
6390
6391 <method name="saveState">
6392 <desc>
6393 Saves the current execution state of a running virtual machine
6394 and stops its execution.
6395
6396 After this operation completes, the machine will go to the
6397 Saved state. Next time it is powered up, this state will
6398 be restored and the machine will continue its execution from
6399 the place where it was saved.
6400
6401 This operation differs from taking a snapshot to the effect
6402 that it doesn't create new differencing hard disks. Also, once
6403 the machine is powered up from the state saved using this method,
6404 the saved state is deleted, so it will be impossible to return
6405 to this state later.
6406
6407 <note>
6408 On success, this method implicitly calls
6409 <link to="IMachine::saveSettings"/> to save all current machine
6410 settings (including runtime changes to the DVD drive, etc.).
6411 Together with the impossibility to change any VM settings when it is
6412 in the Saved state, this guarantees adequate hardware
6413 configuration of the machine when it is restored from the saved
6414 state file.
6415 </note>
6416
6417 <note>
6418 The machine must be in the Running or Paused state, otherwise
6419 the operation will fail.
6420 </note>
6421 <result name="VBOX_E_INVALID_VM_STATE">
6422 Virtual machine state neither Running nor Paused.
6423 </result>
6424 <result name="VBOX_E_FILE_ERROR">
6425 Failed to create directory for saved state file.
6426 </result>
6427
6428 <see><link to="#takeSnapshot"/></see>
6429 </desc>
6430 <param name="progress" type="IProgress" dir="return">
6431 <desc>Progress object to track the operation completion.</desc>
6432 </param>
6433 </method>
6434
6435 <method name="adoptSavedState">
6436 <desc>
6437 Associates the given saved state file to the virtual machine.
6438
6439 On success, the machine will go to the Saved state. Next time it is
6440 powered up, it will be restored from the adopted saved state and
6441 continue execution from the place where the saved state file was
6442 created.
6443
6444 The specified saved state file path may be absolute or relative to the
6445 folder the VM normally saves the state to (usually,
6446 <link to="IMachine::snapshotFolder"/>).
6447
6448 <note>
6449 It's a caller's responsibility to make sure the given saved state
6450 file is compatible with the settings of this virtual machine that
6451 represent its virtual hardware (memory size, hard disk configuration
6452 etc.). If there is a mismatch, the behavior of the virtual machine
6453 is undefined.
6454 </note>
6455 <result name="VBOX_E_INVALID_VM_STATE">
6456 Virtual machine state neither PoweredOff nor Aborted.
6457 </result>
6458 </desc>
6459 <param name="savedStateFile" type="wstring" dir="in">
6460 <desc>Path to the saved state file to adopt.</desc>
6461 </param>
6462 </method>
6463
6464 <method name="forgetSavedState">
6465 <desc>
6466 Forgets the saved state of the virtual machine previously created
6467 by <link to="#saveState"/>. Next time the machine is powered up, a
6468 clean boot will occur. If @a remove is @c true the saved state file
6469 is deleted.
6470 <note>
6471 This operation is equivalent to resetting or powering off
6472 the machine without doing a proper shutdown in the guest OS.
6473 </note>
6474 <result name="VBOX_E_INVALID_VM_STATE">
6475 Virtual machine not in state Saved.
6476 </result>
6477 </desc>
6478 <param name="remove" type="boolean" dir="in">
6479 <desc>If @c true remove the saved state file.</desc>
6480 </param>
6481 </method>
6482
6483 <method name="getDeviceActivity">
6484 <desc>
6485 Gets the current activity type of a given device or device group.
6486 <result name="E_INVALIDARG">
6487 Invalid device type.
6488 </result>
6489 </desc>
6490 <param name="type" type="DeviceType" dir="in"/>
6491 <param name="activity" type="DeviceActivity" dir="return"/>
6492 </method>
6493
6494 <method name="attachUSBDevice">
6495 <desc>
6496 Attaches a host USB device with the given UUID to the
6497 USB controller of the virtual machine.
6498
6499 The device needs to be in one of the following states:
6500 <link to="USBDeviceState_Busy"/>,
6501 <link to="USBDeviceState_Available"/> or
6502 <link to="USBDeviceState_Held"/>,
6503 otherwise an error is immediately returned.
6504
6505 When the device state is
6506 <link to="USBDeviceState_Busy">Busy</link>, an error may also
6507 be returned if the host computer refuses to release it for some reason.
6508
6509 <see>IUSBController::deviceFilters, USBDeviceState</see>
6510 <result name="VBOX_E_INVALID_VM_STATE">
6511 Virtual machine state neither Running nor Paused.
6512 </result>
6513 <result name="VBOX_E_PDM_ERROR">
6514 Virtual machine does not have a USB controller.
6515 </result>
6516 </desc>
6517 <param name="id" type="wstring" dir="in">
6518 <desc>UUID of the host USB device to attach.</desc>
6519 </param>
6520 </method>
6521
6522 <method name="detachUSBDevice">
6523 <desc>
6524 Detaches an USB device with the given UUID from the USB controller
6525 of the virtual machine.
6526
6527 After this method succeeds, the VirtualBox server re-initiates
6528 all USB filters as if the device were just physically attached
6529 to the host, but filters of this machine are ignored to avoid
6530 a possible automatic re-attachment.
6531
6532 <see>IUSBController::deviceFilters, USBDeviceState</see>
6533
6534 <result name="VBOX_E_PDM_ERROR">
6535 Virtual machine does not have a USB controller.
6536 </result>
6537 <result name="E_INVALIDARG">
6538 USB device not attached to this virtual machine.
6539 </result>
6540 </desc>
6541 <param name="id" type="wstring" dir="in">
6542 <desc>UUID of the USB device to detach.</desc>
6543 </param>
6544 <param name="device" type="IUSBDevice" dir="return">
6545 <desc>Detached USB device.</desc>
6546 </param>
6547 </method>
6548
6549 <method name="findUSBDeviceByAddress">
6550 <desc>
6551 Searches for a USB device with the given host address.
6552
6553 <result name="VBOX_E_OBJECT_NOT_FOUND">
6554 Given @c name does not correspond to any USB device.
6555 </result>
6556
6557 <see>IUSBDevice::address</see>
6558 </desc>
6559 <param name="name" type="wstring" dir="in">
6560 <desc>
6561 Address of the USB device (as assigned by the host) to
6562 search for.
6563 </desc>
6564 </param>
6565 <param name="device" type="IUSBDevice" dir="return">
6566 <desc>Found USB device object.</desc>
6567 </param>
6568 </method>
6569
6570 <method name="findUSBDeviceById">
6571 <desc>
6572 Searches for a USB device with the given UUID.
6573
6574 <result name="VBOX_E_OBJECT_NOT_FOUND">
6575 Given @c id does not correspond to any USB device.
6576 </result>
6577
6578 <see>IUSBDevice::id</see>
6579 </desc>
6580 <param name="id" type="wstring" dir="in">
6581 <desc>UUID of the USB device to search for.</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="createSharedFolder">
6589 <desc>
6590 Creates a transient new shared folder by associating the given logical
6591 name with the given host path, adds it to the collection of shared
6592 folders and starts sharing it. Refer to the description of
6593 <link to="ISharedFolder"/> to read more about logical names.
6594
6595 <result name="VBOX_E_INVALID_VM_STATE">
6596 Virtual machine in Saved state or currently changing state.
6597 </result>
6598 <result name="VBOX_E_FILE_ERROR">
6599 Shared folder already exists or not accessible.
6600 </result>
6601 </desc>
6602 <param name="name" type="wstring" dir="in">
6603 <desc>Unique logical name of the shared folder.</desc>
6604 </param>
6605 <param name="hostPath" type="wstring" dir="in">
6606 <desc>Full path to the shared folder in the host file system.</desc>
6607 </param>
6608 <param name="writable" type="boolean" dir="in">
6609 <desc>Whether the share is writable or readonly</desc>
6610 </param>
6611 </method>
6612
6613 <method name="removeSharedFolder">
6614 <desc>
6615 Removes a transient shared folder with the given name previously
6616 created by <link to="#createSharedFolder"/> from the collection of
6617 shared folders and stops sharing it.
6618 <result name="VBOX_E_INVALID_VM_STATE">
6619 Virtual machine in Saved state or currently changing state.
6620 </result>
6621 <result name="VBOX_E_FILE_ERROR">
6622 Shared folder does not exists.
6623 </result>
6624 </desc>
6625 <param name="name" type="wstring" dir="in">
6626 <desc>Logical name of the shared folder to remove.</desc>
6627 </param>
6628 </method>
6629
6630 <method name="takeSnapshot">
6631 <desc>
6632 Saves the current execution state and all settings of the
6633 machine and creates differencing images for all
6634 normal (non-independent) hard disks.
6635
6636 This method can be called for a PoweredOff, Saved, Running or
6637 Paused virtual machine. When the machine is PoweredOff, an
6638 offline <link to="ISnapshot">snapshot</link> is created,
6639 in all other cases -- an online snapshot.
6640
6641 The taken snapshot is always based on the
6642 <link to="IMachine::currentSnapshot">current
6643 snapshot</link> of the associated virtual machine and becomes
6644 a new current snapshot.
6645
6646 <note>
6647 This method implicitly calls <link to="IMachine::saveSettings"/> to
6648 save all current machine settings before taking an offline snapshot.
6649 </note>
6650
6651 <see>ISnapshot, <link to="#saveState"/></see>
6652 <result name="VBOX_E_INVALID_VM_STATE">
6653 Virtual machine currently changing state.
6654 </result>
6655 </desc>
6656 <param name="name" type="wstring" dir="in">
6657 <desc>Short name for the snapshot.</desc>
6658 </param>
6659 <param name="description" type="wstring" dir="in">
6660 <desc>Optional description of the snapshot.</desc>
6661 </param>
6662 <param name="progress" type="IProgress" dir="return">
6663 <desc>Progress object to track the operation completion.</desc>
6664 </param>
6665 </method>
6666
6667 <method name="discardSnapshot">
6668 <desc>
6669
6670 Starts discarding the specified snapshot. The execution state
6671 and settings of the associated machine stored in the snapshot
6672 will be deleted. The contents of all differencing hard disks of
6673 this snapshot will be merged with the contents of their
6674 dependent child hard disks to keep the, disks valid (in other
6675 words, all changes represented by hard disks being discarded
6676 will be propagated to their child hard disks). After that, this
6677 snapshot's differencing hard disks will be deleted. The parent
6678 of this snapshot will become a new parent for all its child
6679 snapshots.
6680
6681 If the discarded snapshot is the current one, its parent
6682 snapshot will become a new current snapshot. The current machine
6683 state is not directly affected in this case, except that
6684 currently attached differencing hard disks based on hard disks
6685 of the discarded snapshot will be also merged as described
6686 above.
6687
6688 If the discarded snapshot is the first one (the root snapshot)
6689 and it has exactly one child snapshot, this child snapshot will
6690 become the first snapshot after discarding. If there are no
6691 children at all (i.e. the first snapshot is the only snapshot of
6692 the machine), both the current and the first snapshot of the
6693 machine will be set to @c null. In all other cases, the first
6694 snapshot cannot be discarded.
6695
6696 You cannot discard the snapshot if it
6697 stores <link to="HardDiskType_Normal">normal</link> (non-differencing)
6698 hard disks that have differencing hard disks based on them. Snapshots of
6699 such kind can be discarded only when every normal hard disk has either
6700 no children at all or exactly one child. In the former case, the normal
6701 hard disk simply becomes unused (i.e. not attached to any VM). In the
6702 latter case, it receives all the changes stored in the child hard disk,
6703 and then it replaces the child hard disk in the configuration of the
6704 corresponding snapshot or machine.
6705
6706 Also, you cannot discard the snapshot if it stores hard disks
6707 (of any type) having differencing child hard disks that belong
6708 to other machines. Such snapshots can be only discarded after
6709 you discard all snapshots of other machines containing "foreign"
6710 child disks, or detach these "foreign" child disks from machines
6711 they are attached to.
6712
6713 One particular example of the snapshot storing normal hard disks
6714 is the first snapshot of a virtual machine that had normal hard
6715 disks attached when taking the snapshot. Be careful when
6716 discarding such snapshots because this implicitly commits
6717 changes (made since the snapshot being discarded has been taken)
6718 to normal hard disks (as described above), which may be not what
6719 you want.
6720
6721 The virtual machine is put to
6722 the <link to="MachineState_Discarding">Discarding</link> state until
6723 the discard operation is completed.
6724
6725 <note>
6726 The machine must not be running, otherwise the operation
6727 will fail.
6728 </note>
6729
6730 <note>
6731 Child hard disks of all normal hard disks of the discarded snapshot
6732 must be accessible (see <link to="IMedium::state"/>) for this
6733 operation to succeed. In particular, this means that all virtual
6734 machines, whose hard disks are directly or indirectly based on the
6735 hard disks of discarded snapshot, must be powered off.
6736 </note>
6737 <note>
6738 Merging hard disk contents can be very time and disk space
6739 consuming, if these disks are big in size and have many
6740 children. However, if the snapshot being discarded is the last
6741 (head) snapshot on the branch, the operation will be rather
6742 quick.
6743 </note>
6744 <note>
6745 Note that discarding the current snapshot
6746 will implicitly call <link to="IMachine::saveSettings"/> to
6747 make all current machine settings permanent.
6748 </note>
6749 <result name="VBOX_E_INVALID_VM_STATE">
6750 Virtual machine is running.
6751 </result>
6752 </desc>
6753 <param name="id" type="wstring" dir="in">
6754 <desc>UUID of the snapshot to discard.</desc>
6755 </param>
6756 <param name="progress" type="IProgress" dir="return">
6757 <desc>Progress object to track the operation completion.</desc>
6758 </param>
6759 </method>
6760
6761 <method name="discardCurrentState">
6762 <desc>
6763 This operation is similar to <link to="IConsole::discardSnapshot"/> but
6764 affects the current machine state. This means that the state stored in
6765 the current snapshot will become a new current state, and all current
6766 settings of the machine and changes stored in differencing hard disks
6767 will be lost.
6768
6769 After this operation is successfully completed, new empty differencing
6770 hard disks are created for all normal hard disks of the machine.
6771
6772 If the current snapshot of the machine is an online snapshot, the
6773 machine will go to the <link to="MachineState_Saved"> saved
6774 state</link>, so that the next time it is powered on, the execution
6775 state will be restored from the current snapshot.
6776
6777 <note>
6778 The machine must not be running, otherwise the operation will fail.
6779 </note>
6780
6781 <note>
6782 If the machine state is <link to="MachineState_Saved">Saved</link>
6783 prior to this operation, the saved state file will be implicitly
6784 discarded (as if <link to="IConsole::forgetSavedState"/> were
6785 called).
6786 </note>
6787
6788 <result name="VBOX_E_INVALID_VM_STATE">
6789 Virtual machine is running.
6790 </result>
6791 </desc>
6792 <param name="progress" type="IProgress" dir="return">
6793 <desc>Progress object to track the operation completion.</desc>
6794 </param>
6795 </method>
6796
6797 <method name="discardCurrentSnapshotAndState">
6798 <desc>
6799
6800 This method is equivalent to
6801 doing <link to="IConsole::discardSnapshot">discardSnapshot</link>
6802 (currentSnapshot.id(), progress) followed by
6803 <link to="IConsole::discardCurrentState"/>.
6804
6805 As a result, the machine will be fully restored from the
6806 snapshot preceding the current snapshot, while both the current
6807 snapshot and the current machine state will be discarded.
6808
6809 If the current snapshot is the first snapshot of the machine (i.e. it
6810 has the only snapshot), the current machine state will be
6811 discarded <b>before</b> discarding the snapshot. In other words, the
6812 machine will be restored from its last snapshot, before discarding
6813 it. This differs from performing a single
6814 <link to="IConsole::discardSnapshot"/> call (note that no
6815 <link to="IConsole::discardCurrentState"/> will be possible after it)
6816 to the effect that the latter will preserve the current state instead of
6817 discarding it.
6818
6819 Unless explicitly mentioned otherwise, all remarks and
6820 limitations of the above two methods also apply to this method.
6821
6822 <note>
6823 The machine must not be running, otherwise the operation
6824 will fail.
6825 </note>
6826
6827 <note>
6828 If the machine state is <link to="MachineState_Saved">Saved</link>
6829 prior to this operation, the saved state file will be implicitly
6830 discarded (as if <link to="#forgetSavedState"/> were
6831 called).
6832 </note>
6833
6834 <note>
6835 This method is more efficient than calling both of the above
6836 methods separately: it requires less IPC calls and provides
6837 a single progress object.
6838 </note>
6839
6840 <result name="VBOX_E_INVALID_VM_STATE">
6841 Virtual machine is running.
6842 </result>
6843 </desc>
6844 <param name="progress" type="IProgress" dir="return">
6845 <desc>Progress object to track the operation completion.</desc>
6846 </param>
6847 </method>
6848
6849 <method name="registerCallback">
6850 <desc>
6851 Registers a new console callback on this instance. The methods of the
6852 callback interface will be called by this instance when the appropriate
6853 event occurs.
6854 </desc>
6855 <param name="callback" type="IConsoleCallback" dir="in"/>
6856 </method>
6857
6858 <method name="unregisterCallback">
6859 <desc>
6860 Unregisters the console callback previously registered using
6861 <link to="#registerCallback"/>.
6862 <result name="E_INVALIDARG">
6863 Given @a callback handler is not registered.
6864 </result>
6865 </desc>
6866 <param name="callback" type="IConsoleCallback" dir="in"/>
6867 </method>
6868 </interface>
6869
6870 <!--
6871 // IHost
6872 /////////////////////////////////////////////////////////////////////////
6873 -->
6874
6875 <interface
6876 name="IHostDVDDrive" extends="$unknown"
6877 uuid="21f86694-202d-4ce4-8b05-a63ff82dbf4c"
6878 wsmap="managed"
6879 >
6880 <desc>
6881 The IHostDVDDrive interface represents the physical CD/DVD drive
6882 hardware on the host. Used indirectly in <link to="IHost::DVDDrives"/>.
6883 </desc>
6884
6885 <attribute name="name" type="wstring" readonly="yes">
6886 <desc>
6887 Returns the platform-specific device identifier.
6888 On DOS-like platforms, it is a drive name (e.g. R:).
6889 On Unix-like platforms, it is a device name (e.g. /dev/hdc).
6890 </desc>
6891 </attribute>
6892 <attribute name="description" type="wstring" readonly="yes">
6893 <desc>
6894 Returns a human readable description for the drive. This
6895 description usually contains the product and vendor name. A
6896 @c null string is returned if the description is not available.
6897 </desc>
6898 </attribute>
6899 <attribute name="udi" type="wstring" readonly="yes">
6900 <desc>
6901 Returns the unique device identifier for the drive. This
6902 attribute is reserved for future use instead of
6903 <link to="#name"/>. Currently it is not used and may return
6904 @c null on some platforms.
6905 </desc>
6906 </attribute>
6907
6908 </interface>
6909
6910 <interface
6911 name="IHostFloppyDrive" extends="$unknown"
6912 uuid="3f02d604-e908-4919-9fd1-8a4afd68fc63"
6913 wsmap="managed"
6914 >
6915 <desc>
6916 The IHostFloppyDrive interface represents the physical floppy drive
6917 hardware on the host. Used indirectly in <link to="IHost::floppyDrives"/>.
6918 </desc>
6919 <attribute name="name" type="wstring" readonly="yes">
6920 <desc>
6921 Returns the platform-specific device identifier.
6922 On DOS-like platforms, it is a drive name (e.g. A:).
6923 On Unix-like platforms, it is a device name (e.g. /dev/fd0).
6924 </desc>
6925 </attribute>
6926 <attribute name="description" type="wstring" readonly="yes">
6927 <desc>
6928 Returns a human readable description for the drive. This
6929 description usually contains the product and vendor name. A
6930 @c null string is returned if the description is not available.
6931 </desc>
6932 </attribute>
6933 <attribute name="udi" type="wstring" readonly="yes">
6934 <desc>
6935 Returns the unique device identifier for the drive. This
6936 attribute is reserved for future use instead of
6937 <link to="#name"/>. Currently it is not used and may return
6938 @c null on some platforms.
6939 </desc>
6940 </attribute>
6941 </interface>
6942
6943 <enum
6944 name="HostNetworkInterfaceMediumType"
6945 uuid="1aa54aaf-2497-45a2-bfb1-8eb225e93d5b"
6946 >
6947 <desc>
6948 Type of encapsulation. Ethernet encapsulation includes both wired and
6949 wireless Ethernet connections.
6950 <see>IHostNetworkInterface</see>
6951 </desc>
6952
6953 <const name="Unknown" value="0">
6954 <desc>
6955 The type of interface cannot be determined.
6956 </desc>
6957 </const>
6958 <const name="Ethernet" value="1">
6959 <desc>
6960 Ethernet frame encapsulation.
6961 </desc>
6962 </const>
6963 <const name="PPP" value="2">
6964 <desc>
6965 Point-to-point protocol encapsulation.
6966 </desc>
6967 </const>
6968 <const name="SLIP" value="3">
6969 <desc>
6970 Serial line IP encapsulation.
6971 </desc>
6972 </const>
6973 </enum>
6974
6975 <enum
6976 name="HostNetworkInterfaceStatus"
6977 uuid="CC474A69-2710-434B-8D99-C38E5D5A6F41"
6978 >
6979 <desc>
6980 Current status of the interface.
6981 <see>IHostNetworkInterface</see>
6982 </desc>
6983
6984 <const name="Unknown" value="0">
6985 <desc>
6986 The state of interface cannot be determined.
6987 </desc>
6988 </const>
6989 <const name="Up" value="1">
6990 <desc>
6991 The interface is fully operational.
6992 </desc>
6993 </const>
6994 <const name="Down" value="2">
6995 <desc>
6996 The interface is not functioning.
6997 </desc>
6998 </const>
6999 </enum>
7000
7001 <enum
7002 name="HostNetworkInterfaceType"
7003 uuid="67431b00-9946-48a2-bc02-b25c5919f4f3"
7004 >
7005 <desc>
7006 Network interface type.
7007 </desc>
7008 <const name="Bridged" value="1"/>
7009 <const name="HostOnly" value="2"/>
7010 </enum>
7011
7012 <interface
7013 name="IHostNetworkInterface" extends="$unknown"
7014 uuid="ce6fae58-7642-4102-b5db-c9005c2320a8"
7015 wsmap="managed"
7016 >
7017 <desc>
7018 Represents one of host's network interfaces. IP V6 address and network
7019 mask are strings of 32 hexdecimal digits grouped by four. Groups are
7020 separated by colons.
7021 For example, fe80:0000:0000:0000:021e:c2ff:fed2:b030.
7022 </desc>
7023 <attribute name="name" type="wstring" readonly="yes">
7024 <desc>Returns the host network interface name.</desc>
7025 </attribute>
7026
7027 <attribute name="id" type="wstring" readonly="yes">
7028 <desc>Returns the interface UUID.</desc>
7029 </attribute>
7030
7031 <attribute name="networkName" type="wstring" readonly="yes">
7032 <desc>Returns the name of a virtual network the interface gets attached to.</desc>
7033 </attribute>
7034
7035 <attribute name="dhcpEnabled" type="boolean" readonly="yes">
7036 <desc>Specifies whether the DHCP is enabled for the interface.</desc>
7037 </attribute>
7038
7039 <attribute name="IPAddress" type="wstring" readonly="yes">
7040 <desc>Returns the IP V4 address of the interface.</desc>
7041 </attribute>
7042
7043 <attribute name="networkMask" type="wstring" readonly="yes">
7044 <desc>Returns the network mask of the interface.</desc>
7045 </attribute>
7046
7047 <attribute name="IPV6Supported" type="boolean" readonly="yes">
7048 <desc>Specifies whether the IP V6 is supported/enabled for the interface.</desc>
7049 </attribute>
7050
7051 <attribute name="IPV6Address" type="wstring" readonly="yes">
7052 <desc>Returns the IP V6 address of the interface.</desc>
7053 </attribute>
7054
7055 <attribute name="IPV6NetworkMaskPrefixLength" type="unsigned long" readonly="yes">
7056 <desc>Returns the length IP V6 network mask prefix of the interface.</desc>
7057 </attribute>
7058
7059 <attribute name="hardwareAddress" type="wstring" readonly="yes">
7060 <desc>Returns the hardware address. For Ethernet it is MAC address.</desc>
7061 </attribute>
7062
7063 <attribute name="mediumType" type="HostNetworkInterfaceMediumType" readonly="yes">
7064 <desc>Type of protocol encapsulation used.</desc>
7065 </attribute>
7066
7067 <attribute name="status" type="HostNetworkInterfaceStatus" readonly="yes">
7068 <desc>Status of the interface.</desc>
7069 </attribute>
7070
7071 <attribute name="interfaceType" type="HostNetworkInterfaceType" readonly="yes">
7072 <desc>specifies the host interface type.</desc>
7073 </attribute>
7074
7075 <method name="enableStaticIpConfig">
7076 <desc>sets and enables the static IP V4 configuration for the given interface.</desc>
7077 <param name="IPAddress" type="wstring" dir="in">
7078 <desc>
7079 IP address.
7080 </desc>
7081 </param>
7082 <param name="networkMask" type="wstring" dir="in">
7083 <desc>
7084 network mask.
7085 </desc>
7086 </param>
7087 </method>
7088
7089 <method name="enableStaticIpConfigV6">
7090 <desc>sets and enables the static IP V6 configuration for the given interface.</desc>
7091 <param name="IPV6Address" type="wstring" dir="in">
7092 <desc>
7093 IP address.
7094 </desc>
7095 </param>
7096 <param name="IPV6NetworkMaskPrefixLength" type="unsigned long" dir="in">
7097 <desc>
7098 network mask.
7099 </desc>
7100 </param>
7101 </method>
7102
7103 <method name="enableDynamicIpConfig">
7104 <desc>enables the dynamic IP configuration.</desc>
7105 </method>
7106
7107 <method name="dhcpRediscover">
7108 <desc>refreshes the IP configuration for dhcp-enabled interface.</desc>
7109 </method>
7110
7111 </interface>
7112
7113 <interface
7114 name="IHost" extends="$unknown"
7115 uuid="a13b5556-5c0b-4f80-9df6-6f804f3336a1"
7116 wsmap="managed"
7117 >
7118 <desc>
7119 The IHost interface represents the physical machine that this VirtualBox
7120 installation runs on.
7121
7122 An object implementing this interface is returned by the
7123 <link to="IVirtualBox::host" /> attribute. This interface contains
7124 read-only information about the host's physical hardware (such as what
7125 processors and disks are available, what the host operating system is,
7126 and so on) and also allows for manipulating some of the host's hardware,
7127 such as global USB device filters and host interface networking.
7128
7129 </desc>
7130 <attribute name="DVDDrives" type="IHostDVDDrive" readonly="yes" safearray="yes">
7131 <desc>List of DVD drives available on the host.</desc>
7132 </attribute>
7133
7134 <attribute name="floppyDrives" type="IHostFloppyDrive" readonly="yes" safearray="yes">
7135 <desc>List of floppy drives available on the host.</desc>
7136 </attribute>
7137
7138 <attribute name="USBDevices" type="IHostUSBDevice" readonly="yes" safearray="yes">
7139 <desc>
7140 List of USB devices currently attached to the host.
7141 Once a new device is physically attached to the host computer,
7142 it appears in this list and remains there until detached.
7143
7144 <note>
7145 If USB functionality is not available in the given edition of
7146 VirtualBox, this method will set the result code to @c E_NOTIMPL.
7147 </note>
7148 </desc>
7149 </attribute>
7150
7151 <attribute name="USBDeviceFilters" type="IHostUSBDeviceFilter" readonly="yes" safearray="yes">
7152 <desc>
7153 List of USB device filters in action.
7154 When a new device is physically attached to the host computer,
7155 filters from this list are applied to it (in order they are stored
7156 in the list). The first matched filter will determine the
7157 <link to="IHostUSBDeviceFilter::action">action</link>
7158 performed on the device.
7159
7160 Unless the device is ignored by these filters, filters of all
7161 currently running virtual machines
7162 (<link to="IUSBController::deviceFilters"/>) are applied to it.
7163
7164 <note>
7165 If USB functionality is not available in the given edition of
7166 VirtualBox, this method will set the result code to @c E_NOTIMPL.
7167 </note>
7168
7169 <see>IHostUSBDeviceFilter, USBDeviceState</see>
7170 </desc>
7171 </attribute>
7172
7173 <attribute name="networkInterfaces" type="IHostNetworkInterface" safearray="yes" readonly="yes">
7174 <desc>List of host network interfaces currently defined on the host.</desc>
7175 </attribute>
7176
7177 <attribute name="processorCount" type="unsigned long" readonly="yes">
7178 <desc>Number of (logical) CPUs installed in the host system.</desc>
7179 </attribute>
7180
7181 <attribute name="processorOnlineCount" type="unsigned long" readonly="yes">
7182 <desc>Number of (logical) CPUs online in the host system.</desc>
7183 </attribute>
7184
7185 <method name="getProcessorSpeed">
7186 <desc>Query the (approximate) maximum speed of a specified host CPU in
7187 Megahertz.
7188 </desc>
7189 <param name="cpuId" type="unsigned long" dir="in">
7190 <desc>
7191 Identifier of the CPU.
7192 </desc>
7193 </param>
7194 <param name="speed" type="unsigned long" dir="return">
7195 <desc>
7196 Speed value. 0 is returned if value is not known or @a cpuId is
7197 invalid.
7198 </desc>
7199 </param>
7200 </method>
7201
7202 <method name="getProcessorFeature">
7203 <desc>Query whether a CPU feature is supported or not.</desc>
7204 <param name="feature" type="ProcessorFeature" dir="in">
7205 <desc>
7206 CPU Feature identifier.
7207 </desc>
7208 </param>
7209 <param name="supported" type="boolean" dir="return">
7210 <desc>
7211 Feature is supported or not.
7212 </desc>
7213 </param>
7214 </method>
7215
7216 <method name="getProcessorDescription">
7217 <desc>Query the model string of a specified host CPU.
7218 <note>
7219 This function is not implemented in the current version of the
7220 product.
7221 </note>
7222 </desc>
7223 <param name="cpuId" type="unsigned long" dir="in">
7224 <desc>
7225 Identifier of the CPU.
7226 </desc>
7227 </param>
7228 <param name="description" type="wstring" dir="return">
7229 <desc>
7230 Model string. A @c null string is returned if value is not known or
7231 @a cpuId is invalid.
7232 </desc>
7233 </param>
7234 </method>
7235
7236 <attribute name="memorySize" type="unsigned long" readonly="yes">
7237 <desc>Amount of system memory in megabytes installed in the host system.</desc>
7238 </attribute>
7239
7240 <attribute name="memoryAvailable" type="unsigned long" readonly="yes">
7241 <desc>Available system memory in the host system.</desc>
7242 </attribute>
7243
7244 <attribute name="operatingSystem" type="wstring" readonly="yes">
7245 <desc>Name of the host system's operating system.</desc>
7246 </attribute>
7247
7248 <attribute name="OSVersion" type="wstring" readonly="yes">
7249 <desc>Host operating system's version string.</desc>
7250 </attribute>
7251
7252 <attribute name="UTCTime" type="long long" readonly="yes">
7253 <desc>Returns the current host time in milliseconds since 1970-01-01 UTC.</desc>
7254 </attribute>
7255
7256 <attribute name="Acceleration3DAvailable" type="boolean" readonly="yes">
7257 <desc>Returns @c true when the host supports 3D hardware acceleration.</desc>
7258 </attribute>
7259
7260 <method name="createHostOnlyNetworkInterface">
7261 <desc>
7262 Creates a new adapter for Host Only Networking.
7263 <result name="E_INVALIDARG">
7264 Host network interface @a name already exists.
7265 </result>
7266 </desc>
7267 <param name="hostInterface" type="IHostNetworkInterface" dir="out">
7268 <desc>
7269 Created host interface object.
7270 </desc>
7271 </param>
7272 <param name="progress" type="IProgress" dir="return">
7273 <desc>
7274 Progress object to track the operation completion.
7275 </desc>
7276 </param>
7277 </method>
7278
7279 <method name="removeHostOnlyNetworkInterface">
7280 <desc>
7281 Removes the given Host Only Networking interface.
7282 <result name="VBOX_E_OBJECT_NOT_FOUND">
7283 No host network interface matching @a id found.
7284 </result>
7285 </desc>
7286 <param name="id" type="wstring" dir="in">
7287 <desc>
7288 Adapter GUID.
7289 </desc>
7290 </param>
7291 <param name="hostInterface" type="IHostNetworkInterface" dir="out">
7292 <desc>
7293 Removed host interface object.
7294 </desc>
7295 </param>
7296 <param name="progress" type="IProgress" dir="return">
7297 <desc>
7298 Progress object to track the operation completion.
7299 </desc>
7300 </param>
7301 </method>
7302
7303 <method name="createUSBDeviceFilter">
7304 <desc>
7305 Creates a new USB device filter. All attributes except
7306 the filter name are set to @c null (any match),
7307 <i>active</i> is @c false (the filter is not active).
7308
7309 The created filter can be added to the list of filters using
7310 <link to="#insertUSBDeviceFilter"/>.
7311
7312 <see>#USBDeviceFilters</see>
7313 </desc>
7314 <param name="name" type="wstring" dir="in">
7315 <desc>
7316 Filter name. See <link to="IHostUSBDeviceFilter::name"/>
7317 for more info.
7318 </desc>
7319 </param>
7320 <param name="filter" type="IHostUSBDeviceFilter" dir="return">
7321 <desc>Created filter object.</desc>
7322 </param>
7323 </method>
7324
7325 <method name="insertUSBDeviceFilter">
7326 <desc>
7327 Inserts the given USB device to the specified position
7328 in the list of filters.
7329
7330 Positions are numbered starting from @c 0. If the specified
7331 position is equal to or greater than the number of elements in
7332 the list, the filter is added at the end of the collection.
7333
7334 <note>
7335 Duplicates are not allowed, so an attempt to insert a
7336 filter already in the list is an error.
7337 </note>
7338 <note>
7339 If USB functionality is not available in the given edition of
7340 VirtualBox, this method will set the result code to @c E_NOTIMPL.
7341 </note>
7342
7343 <see>#USBDeviceFilters</see>
7344
7345 <result name="VBOX_E_INVALID_OBJECT_STATE">
7346 USB device filter is not created within this VirtualBox instance.
7347 </result>
7348 <result name="E_INVALIDARG">
7349 USB device filter already in list.
7350 </result>
7351
7352 </desc>
7353 <param name="position" type="unsigned long" dir="in">
7354 <desc>Position to insert the filter to.</desc>
7355 </param>
7356 <param name="filter" type="IHostUSBDeviceFilter" dir="in">
7357 <desc>USB device filter to insert.</desc>
7358 </param>
7359 </method>
7360
7361 <method name="removeUSBDeviceFilter">
7362 <desc>
7363 Removes a USB device filter from the specified position in the
7364 list of filters.
7365
7366 Positions are numbered starting from @c 0. Specifying a
7367 position equal to or greater than the number of elements in
7368 the list will produce an error.
7369
7370 <note>
7371 If USB functionality is not available in the given edition of
7372 VirtualBox, this method will set the result code to @c E_NOTIMPL.
7373 </note>
7374
7375 <see>#USBDeviceFilters</see>
7376
7377 <result name="E_INVALIDARG">
7378 USB device filter list empty or invalid @a position.
7379 </result>
7380
7381 </desc>
7382 <param name="position" type="unsigned long" dir="in">
7383 <desc>Position to remove the filter from.</desc>
7384 </param>
7385 <param name="filter" type="IHostUSBDeviceFilter" dir="return">
7386 <desc>Removed USB device filter.</desc>
7387 </param>
7388 </method>
7389
7390 <method name="findHostDVDDrive">
7391 <desc>
7392 Searches for a host DVD drive with the given @c name.
7393
7394 <result name="VBOX_E_OBJECT_NOT_FOUND">
7395 Given @c name does not correspond to any host drive.
7396 </result>
7397
7398 </desc>
7399 <param name="name" type="wstring" dir="in">
7400 <desc>Name of the host drive to search for</desc>
7401 </param>
7402 <param name="drive" type="IHostDVDDrive" dir="return">
7403 <desc>Found host drive object</desc>
7404 </param>
7405 </method>
7406
7407 <method name="findHostFloppyDrive">
7408 <desc>
7409 Searches for a host floppy drive with the given @c name.
7410
7411 <result name="VBOX_E_OBJECT_NOT_FOUND">
7412 Given @c name does not correspond to any host floppy drive.
7413 </result>
7414
7415 </desc>
7416 <param name="name" type="wstring" dir="in">
7417 <desc>Name of the host floppy drive to search for</desc>
7418 </param>
7419 <param name="drive" type="IHostFloppyDrive" dir="return">
7420 <desc>Found host floppy drive object</desc>
7421 </param>
7422 </method>
7423
7424 <method name="findHostNetworkInterfaceByName">
7425 <desc>
7426 Searches through all host network interfaces for an interface with
7427 the given @c name.
7428 <note>
7429 The method returns an error if the given @c name does not
7430 correspond to any host network interface.
7431 </note>
7432 </desc>
7433 <param name="name" type="wstring" dir="in">
7434 <desc>Name of the host network interface to search for.</desc>
7435 </param>
7436 <param name="networkInterface" type="IHostNetworkInterface" dir="return">
7437 <desc>Found host network interface object.</desc>
7438 </param>
7439 </method>
7440 <method name="findHostNetworkInterfaceById">
7441 <desc>
7442 Searches through all host network interfaces for an interface with
7443 the given GUID.
7444 <note>
7445 The method returns an error if the given GUID does not
7446 correspond to any host network interface.
7447 </note>
7448 </desc>
7449 <param name="id" type="wstring" dir="in">
7450 <desc>GUID of the host network interface to search for.</desc>
7451 </param>
7452 <param name="networkInterface" type="IHostNetworkInterface" dir="return">
7453 <desc>Found host network interface object.</desc>
7454 </param>
7455 </method>
7456 <method name="findHostNetworkInterfacesOfType">
7457 <desc>
7458 Searches through all host network interfaces and returns a list of interfaces of the specified type
7459 </desc>
7460 <param name="type" type="HostNetworkInterfaceType" dir="in">
7461 <desc>type of the host network interfaces to search for.</desc>
7462 </param>
7463 <param name="networkInterfaces" type="IHostNetworkInterface" safearray="yes" dir="return">
7464 <desc>Found host network interface objects.</desc>
7465 </param>
7466 </method>
7467
7468 <method name="findUSBDeviceById">
7469 <desc>
7470 Searches for a USB device with the given UUID.
7471
7472 <result name="VBOX_E_OBJECT_NOT_FOUND">
7473 Given @c id does not correspond to any USB device.
7474 </result>
7475
7476 <see>IHostUSBDevice::id</see>
7477 </desc>
7478 <param name="id" type="wstring" dir="in">
7479 <desc>UUID of the USB device to search for.</desc>
7480 </param>
7481 <param name="device" type="IHostUSBDevice" dir="return">
7482 <desc>Found USB device object.</desc>
7483 </param>
7484 </method>
7485
7486 <method name="findUSBDeviceByAddress">
7487 <desc>
7488 Searches for a USB device with the given host address.
7489
7490 <result name="VBOX_E_OBJECT_NOT_FOUND">
7491 Given @c name does not correspond to any USB device.
7492 </result>
7493
7494 <see>IHostUSBDevice::address</see>
7495 </desc>
7496 <param name="name" type="wstring" dir="in">
7497 <desc>
7498 Address of the USB device (as assigned by the host) to
7499 search for.
7500 </desc>
7501 </param>
7502 <param name="device" type="IHostUSBDevice" dir="return">
7503 <desc>Found USB device object.</desc>
7504 </param>
7505 </method>
7506
7507 </interface>
7508
7509 <!--
7510 // ISystemProperties
7511 /////////////////////////////////////////////////////////////////////////
7512 -->
7513
7514 <interface
7515 name="ISystemProperties"
7516 extends="$unknown"
7517 uuid="63bfd184-df69-4949-9159-a923cf7b1207"
7518 wsmap="managed"
7519 >
7520 <desc>
7521 The ISystemProperties interface represents global properties of the given
7522 VirtualBox installation.
7523
7524 These properties define limits and default values for various attributes
7525 and parameters. Most of the properties are read-only, but some can be
7526 changed by a user.
7527 </desc>
7528
7529 <attribute name="minGuestRAM" type="unsigned long" readonly="yes">
7530 <desc>Minimum guest system memory in Megabytes.</desc>
7531 </attribute>
7532
7533 <attribute name="maxGuestRAM" type="unsigned long" readonly="yes">
7534 <desc>Maximum guest system memory in Megabytes.</desc>
7535 </attribute>
7536
7537 <attribute name="minGuestVRAM" type="unsigned long" readonly="yes">
7538 <desc>Minimum guest video memory in Megabytes.</desc>
7539 </attribute>
7540
7541 <attribute name="maxGuestVRAM" type="unsigned long" readonly="yes">
7542 <desc>Maximum guest video memory in Megabytes.</desc>
7543 </attribute>
7544
7545 <attribute name="minGuestCPUCount" type="unsigned long" readonly="yes">
7546 <desc>Minimum CPU count.</desc>
7547 </attribute>
7548
7549 <attribute name="maxGuestCPUCount" type="unsigned long" readonly="yes">
7550 <desc>Maximum CPU count.</desc>
7551 </attribute>
7552
7553 <attribute name="maxVDISize" type="unsigned long long" readonly="yes">
7554 <desc>Maximum size of a virtual disk image in Megabytes.</desc>
7555 </attribute>
7556
7557 <attribute name="networkAdapterCount" type="unsigned long" readonly="yes">
7558 <desc>
7559 Number of network adapters associated with every
7560 <link to="IMachine"/> instance.
7561 </desc>
7562 </attribute>
7563
7564 <attribute name="serialPortCount" type="unsigned long" readonly="yes">
7565 <desc>
7566 Number of serial ports associated with every
7567 <link to="IMachine"/> instance.
7568 </desc>
7569 </attribute>
7570
7571 <attribute name="parallelPortCount" type="unsigned long" readonly="yes">
7572 <desc>
7573 Number of parallel ports associated with every
7574 <link to="IMachine"/> instance.
7575 </desc>
7576 </attribute>
7577
7578 <attribute name="maxBootPosition" type="unsigned long" readonly="yes">
7579 <desc>
7580 Maximum device position in the boot order. This value corresponds
7581 to the total number of devices a machine can boot from, to make it
7582 possible to include all possible devices to the boot list.
7583 <see><link to="IMachine::setBootOrder"/></see>
7584 </desc>
7585 </attribute>
7586
7587 <attribute name="defaultMachineFolder" type="wstring">
7588 <desc>
7589 Full path to the default directory used to create new or open
7590 existing machines when a settings file name contains no
7591 path.
7592
7593 The initial value of this property is
7594 <tt>&lt;</tt><link to="IVirtualBox::homeFolder">
7595 VirtualBox_home</link><tt>&gt;/Machines</tt>.
7596
7597 <note>
7598 Setting this property to @c null will restore the
7599 initial value.
7600 </note>
7601 <note>
7602 When settings this property, the specified path can be
7603 absolute (full path) or relative
7604 to the <link to="IVirtualBox::homeFolder">
7605 VirtualBox home directory</link>.
7606 When reading this property, a full path is
7607 always returned.
7608 </note>
7609 <note>
7610 The specified path may not exist, it will be created
7611 when necessary.
7612 </note>
7613
7614 <see>
7615 <link to="IVirtualBox::createMachine"/>,
7616 <link to="IVirtualBox::openMachine"/>
7617 </see>
7618 </desc>
7619 </attribute>
7620
7621 <attribute name="defaultHardDiskFolder" type="wstring">
7622 <desc>
7623 Full path to the default directory used to create new or open existing
7624 virtual disks.
7625
7626 This path is used when the storage unit of a hard disk is a regular file
7627 in the host's file system and only a file name that contains no path is
7628 given.
7629
7630 The initial value of this property is
7631 <tt>&lt;</tt>
7632 <link to="IVirtualBox::homeFolder">VirtualBox_home</link>
7633 <tt>&gt;/HardDisks</tt>.
7634
7635 <note>
7636 Setting this property to @c null will restore the initial value.
7637 </note>
7638 <note>
7639 When settings this property, the specified path can be relative
7640 to the
7641 <link to="IVirtualBox::homeFolder">VirtualBox home directory</link> or
7642 absolute. When reading this property, a full path is
7643 always returned.
7644 </note>
7645 <note>
7646 The specified path may not exist, it will be created
7647 when necessary.
7648 </note>
7649
7650 <see>
7651 IHardDisk,
7652 <link to="IVirtualBox::createHardDisk"/>,
7653 <link to="IVirtualBox::openHardDisk"/>,
7654 <link to="IMedium::location"/>
7655 </see>
7656 </desc>
7657 </attribute>
7658
7659 <attribute name="hardDiskFormats" type="IHardDiskFormat" safearray="yes" readonly="yes">
7660 <desc>
7661 List of all hard disk storage formats supported by this VirtualBox
7662 installation.
7663
7664 Keep in mind that the hard disk format identifier
7665 (<link to="IHardDiskFormat::id"/>) used in other API calls like
7666 <link to="IVirtualBox::createHardDisk"/> to refer to a particular
7667 hard disk format is a case-insensitive string. This means that, for
7668 example, all of the following strings:
7669 <pre>
7670 "VDI"
7671 "vdi"
7672 "VdI"</pre>
7673 refer to the same hard disk format.
7674
7675 Note that the virtual hard disk framework is backend-based, therefore
7676 the list of supported formats depends on what backends are currently
7677 installed.
7678
7679 <see>
7680 <link to="IHardDiskFormat"/>,
7681 </see>
7682 </desc>
7683 </attribute>
7684
7685 <attribute name="defaultHardDiskFormat" type="wstring">
7686 <desc>
7687 Identifier of the default hard disk format used by VirtualBox.
7688
7689 The hard disk format set by this attribute is used by VirtualBox
7690 when the hard disk format was not specified explicitly. One example is
7691 <link to="IVirtualBox::createHardDisk"/> with the @c null
7692 format argument. A more complex example is implicit creation of
7693 differencing hard disks when taking a snapshot of a virtual machine:
7694 this operation will try to use a format of the parent hard disk first
7695 and if this format does not support differencing hard disks the default
7696 format specified by this argument will be used.
7697
7698 The list of supported hard disk formats may be obtained by the
7699 <link to="#hardDiskFormats"/> call. Note that the default hard disk
7700 format must have a capability to create differencing hard disks;
7701 otherwise opeartions that create hard disks implicitly may fail
7702 unexpectedly.
7703
7704 The initial value of this property is <tt>"VDI"</tt> in the current
7705 version of the VirtualBox product, but may change in the future.
7706
7707 <note>
7708 Setting this property to @c null will restore the initial value.
7709 </note>
7710
7711 <see>
7712 <link to="#hardDiskFormats"/>,
7713 <link to="IHardDiskFormat::id"/>,
7714 <link to="IVirtualBox::createHardDisk"/>
7715 </see>
7716 </desc>
7717 </attribute>
7718
7719 <attribute name="remoteDisplayAuthLibrary" type="wstring">
7720 <desc>
7721 Library that provides authentication for VRDP clients. The library
7722 is used if a virtual machine's authentication type is set to "external"
7723 in the VM RemoteDisplay configuration.
7724
7725 The system library extension (".DLL" or ".so") must be omitted.
7726 A full path can be specified; if not, then the library must reside on the
7727 system's default library path.
7728
7729 The default value of this property is <tt>"VRDPAuth"</tt>. There is a library
7730 of that name in one of the default VirtualBox library directories.
7731
7732 For details about VirtualBox authentication libraries and how to implement
7733 them, please refer to the VirtualBox manual.
7734
7735 <note>
7736 Setting this property to @c null will restore the
7737 initial value.
7738 </note>
7739 </desc>
7740 </attribute>
7741
7742 <attribute name="webServiceAuthLibrary" type="wstring">
7743 <desc>
7744 Library that provides authentication for webservice clients. The library
7745 is used if a virtual machine's authentication type is set to "external"
7746 in the VM RemoteDisplay configuration and will be called from
7747 within the <link to="IWebsessionManager::logon" /> implementation.
7748
7749 As opposed to <link to="ISystemProperties::remoteDisplayAuthLibrary" />,
7750 there is no per-VM setting for this, as the webservice is a global
7751 resource (if it is running). Only for this setting (for the webservice),
7752 setting this value to a literal <tt>"null"</tt> string disables authentication,
7753 meaning that <link to="IWebsessionManager::logon" /> will always succeed,
7754 no matter what user name and password are supplied.
7755
7756 The initial value of this property is <tt>"VRDPAuth"</tt>,
7757 meaning that the webservice will use the same authentication
7758 library that is used by default for VBoxVRDP (again, see
7759 <link to="ISystemProperties::remoteDisplayAuthLibrary" />).
7760 The format and calling convention of authentication libraries
7761 is the same for the webservice as it is for VBoxVRDP.
7762
7763 </desc>
7764 </attribute>
7765
7766 <attribute name="HWVirtExEnabled" type="boolean">
7767 <desc>
7768 This specifies the default value for hardware virtualization
7769 extensions. If enabled, virtual machines will make use of
7770 hardware virtualization extensions such as Intel VT-x and
7771 AMD-V by default. This value can be overridden by each VM
7772 using their <link to="IMachine::HWVirtExEnabled" /> property.
7773 </desc>
7774 </attribute>
7775
7776 <attribute name="LogHistoryCount" type="unsigned long">
7777 <desc>
7778 This value specifies how many old release log files are kept.
7779 </desc>
7780 </attribute>
7781
7782 <attribute name="defaultAudioDriver" type="AudioDriverType" readonly="yes">
7783 <desc>This value hold the default audio driver for the current
7784 system.</desc>
7785 </attribute>
7786 </interface>
7787
7788 <!--
7789 // IGuest
7790 /////////////////////////////////////////////////////////////////////////
7791 -->
7792
7793 <interface
7794 name="IGuestOSType" extends="$unknown"
7795 uuid="cfe9e64c-4430-435b-9e7c-e3d8e417bd58"
7796 wsmap="struct"
7797 >
7798 <desc>
7799 </desc>
7800
7801 <attribute name="familyId" type="wstring" readonly="yes">
7802 <desc>Guest OS family identifier string.</desc>
7803 </attribute>
7804
7805 <attribute name="familyDescription" type="wstring" readonly="yes">
7806 <desc>Human readable description of the guest OS family.</desc>
7807 </attribute>
7808
7809 <attribute name="id" type="wstring" readonly="yes">
7810 <desc>Guest OS identifier string.</desc>
7811 </attribute>
7812
7813 <attribute name="description" type="wstring" readonly="yes">
7814 <desc>Human readable description of the guest OS.</desc>
7815 </attribute>
7816
7817 <attribute name="is64Bit" type="boolean" readonly="yes">
7818 <desc>Returns @c true if the given OS is 64-bit</desc>
7819 </attribute>
7820
7821 <attribute name="recommendedIOAPIC" type="boolean" readonly="yes">
7822 <desc>Returns @c true if IO APIC recommended for this OS type.</desc>
7823 </attribute>
7824
7825 <attribute name="recommendedVirtEx" type="boolean" readonly="yes">
7826 <desc>Returns @c true if VT-x or AMD-V recommended for this OS type.</desc>
7827 </attribute>
7828
7829 <attribute name="recommendedRAM" type="unsigned long" readonly="yes">
7830 <desc>Recommended RAM size in Megabytes.</desc>
7831 </attribute>
7832
7833 <attribute name="recommendedVRAM" type="unsigned long" readonly="yes">
7834 <desc>Recommended video RAM size in Megabytes.</desc>
7835 </attribute>
7836
7837 <attribute name="recommendedHDD" type="unsigned long" readonly="yes">
7838 <desc>Recommended hard disk size in Megabytes.</desc>
7839 </attribute>
7840
7841 <attribute name="adapterType" type="NetworkAdapterType" readonly="yes">
7842 <desc>Returns recommended network adapter for this OS type.</desc>
7843 </attribute>
7844 </interface>
7845
7846 <interface
7847 name="IGuest" extends="$unknown"
7848 uuid="d8556fca-81bc-12af-fca3-365528fa38ca"
7849 wsmap="managed"
7850 >
7851 <desc>
7852 The IGuest interface represents information about the operating system
7853 running inside the virtual machine. Used in
7854 <link to="IConsole::guest"/>.
7855
7856 IGuest provides information about the guest operating system, whether
7857 Guest Additions are installed and other OS-specific virtual machine
7858 properties.
7859 </desc>
7860
7861 <attribute name="OSTypeId" type="wstring" readonly="yes">
7862 <desc>
7863 Identifier of the Guest OS type as reported by the Guest
7864 Additions.
7865 You may use <link to="IVirtualBox::getGuestOSType"/> to obtain
7866 an IGuestOSType object representing details about the given
7867 Guest OS type.
7868 <note>
7869 If Guest Additions are not installed, this value will be
7870 the same as <link to="IMachine::OSTypeId"/>.
7871 </note>
7872 </desc>
7873 </attribute>
7874
7875 <attribute name="additionsActive" type="boolean" readonly="yes">
7876 <desc>
7877 Flag whether the Guest Additions are installed and active
7878 in which case their version will be returned by the
7879 <link to="#additionsVersion"/> property.
7880 </desc>
7881 </attribute>
7882
7883 <attribute name="additionsVersion" type="wstring" readonly="yes">
7884 <desc>
7885 Version of the Guest Additions (3 decimal numbers separated
7886 by dots) or empty when the Additions are not installed. The
7887 Additions may also report a version but yet not be active as
7888 the version might be refused by VirtualBox (incompatible) or
7889 other failures occurred.
7890 </desc>
7891 </attribute>
7892
7893 <attribute name="supportsSeamless" type="boolean" readonly="yes">
7894 <desc>
7895 Flag whether seamless guest display rendering (seamless desktop
7896 integration) is supported.
7897 </desc>
7898 </attribute>
7899
7900 <attribute name="supportsGraphics" type="boolean" readonly="yes">
7901 <desc>
7902 Flag whether the guest is in graphics mode. If it is not, then
7903 seamless rendering will not work, resize hints are not immediately
7904 acted on and guest display resizes are probably not initiated by
7905 the guest additions.
7906 </desc>
7907 </attribute>
7908
7909 <attribute name="memoryBalloonSize" type="unsigned long">
7910 <desc>Guest system memory balloon size in megabytes.</desc>
7911 </attribute>
7912
7913 <attribute name="statisticsUpdateInterval" type="unsigned long">
7914 <desc>Interval to update guest statistics in seconds.</desc>
7915 </attribute>
7916
7917 <method name="setCredentials">
7918 <desc>
7919 Store login credentials that can be queried by guest operating
7920 systems with Additions installed. The credentials are transient
7921 to the session and the guest may also choose to erase them. Note
7922 that the caller cannot determine whether the guest operating system
7923 has queried or made use of the credentials.
7924
7925 <result name="VBOX_E_VM_ERROR">
7926 VMM device is not available.
7927 </result>
7928
7929 </desc>
7930 <param name="userName" type="wstring" dir="in">
7931 <desc>User name string, can be empty</desc>
7932 </param>
7933 <param name="password" type="wstring" dir="in">
7934 <desc>Password string, can be empty</desc>
7935 </param>
7936 <param name="domain" type="wstring" dir="in">
7937 <desc>Domain name (guest logon scheme specific), can be empty</desc>
7938 </param>
7939 <param name="allowInteractiveLogon" type="boolean" dir="in">
7940 <desc>
7941 Flag whether the guest should alternatively allow the user to
7942 interactively specify different credentials. This flag might
7943 not be supported by all versions of the Additions.
7944 </desc>
7945 </param>
7946 </method>
7947
7948 <method name="getStatistic">
7949 <desc>
7950 Query specified guest statistics as reported by the VirtualBox Additions.
7951 </desc>
7952 <param name="cpuId" type="unsigned long" dir="in">
7953 <desc>Virtual CPU id; not relevant for all statistic types</desc>
7954 </param>
7955 <param name="statistic" type="GuestStatisticType" dir="in">
7956 <desc>Statistic type.</desc>
7957 </param>
7958 <param name="statVal" type="unsigned long" dir="return">
7959 <desc>Statistics value</desc>
7960 </param>
7961 </method>
7962
7963 </interface>
7964
7965
7966 <!--
7967 // IProgress
7968 /////////////////////////////////////////////////////////////////////////
7969 -->
7970
7971 <interface
7972 name="IProgress" extends="$unknown"
7973 uuid="6fcd0198-7fc5-4c53-8c37-653ac76854b5"
7974 wsmap="managed"
7975 >
7976 <desc>
7977 The IProgress interface is used to track and control
7978 asynchronous tasks within VirtualBox.
7979
7980 An instance of this is returned every time VirtualBox starts
7981 an asynchronous task (in other words, a separate thread) which
7982 continues to run after a method call returns. For example,
7983 <link to="IConsole::saveState" />, which saves the state of
7984 a running virtual machine, can take a long time to complete.
7985 To be able to display a progress bar, a user interface such as
7986 the VirtualBox graphical user interface can use the IProgress
7987 object returned by that method.
7988
7989 Note that IProgress is a "read-only" interface in the sense
7990 that only the VirtualBox internals behind the Main API can
7991 create and manipulate progress objects, whereas client code
7992 can only use the IProgress object to monitor a task's
7993 progress and, if <link to="#cancelable" /> is @c true,
7994 cancel the task by calling <link to="#cancel" />.
7995
7996 A task represented by IProgress consists of either one or
7997 several sub-operations that run sequentially, one by one (see
7998 <link to="#operation" /> and <link to="#operationCount" />).
7999 Every operation is identified by a number (starting from 0)
8000 and has a separate description.
8001
8002 You can find the individual percentage of completion of the current
8003 operation in <link to="#operationPercent" /> and the
8004 percentage of completion of the task as a whole
8005 in <link to="#percent" />.
8006
8007 Similarly, you can wait for the completion of a particular
8008 operation via <link to="#waitForOperationCompletion" /> or
8009 for the completion of the whole task via
8010 <link to="#waitForCompletion" />.
8011 </desc>
8012
8013 <attribute name="id" type="wstring" readonly="yes">
8014 <desc>ID of the task.</desc>
8015 </attribute>
8016
8017 <attribute name="description" type="wstring" readonly="yes">
8018 <desc>Description of the task.</desc>
8019 </attribute>
8020
8021 <attribute name="initiator" type="$unknown" readonly="yes">
8022 <desc>Initiator of the task.</desc>
8023 </attribute>
8024
8025 <attribute name="cancelable" type="boolean" readonly="yes">
8026 <desc>Whether the task can be interrupted.</desc>
8027 </attribute>
8028
8029 <attribute name="percent" type="unsigned long" readonly="yes">
8030 <desc>
8031 Current progress value of the task as a whole, in percent.
8032 This value depends on how many operations are already complete.
8033 Returns 100 if <link to="#completed" /> is @c true.
8034 </desc>
8035 </attribute>
8036
8037 <attribute name="timeRemaining" type="long" readonly="yes">
8038 <desc>
8039 Estimated remaining time until the task completes, in
8040 seconds. Returns 0 once the task has completed; returns -1
8041 if the remaining time cannot be computed, in particular if
8042 the current progress is 0.
8043
8044 Even if a value is returned, the estimate will be unreliable
8045 for low progress values. It will become more reliable as the
8046 task progresses; it is not recommended to display an ETA
8047 before at least 20% of a task have completed.
8048 </desc>
8049 </attribute>
8050
8051 <attribute name="completed" type="boolean" readonly="yes">
8052 <desc>Whether the task has been completed.</desc>
8053 </attribute>
8054
8055 <attribute name="canceled" type="boolean" readonly="yes">
8056 <desc>Whether the task has been canceled.</desc>
8057 </attribute>
8058
8059 <attribute name="resultCode" type="long" readonly="yes">
8060 <desc>
8061 Result code of the progress task.
8062 Valid only if <link to="#completed"/> is @c true.
8063 </desc>
8064 </attribute>
8065
8066 <attribute name="errorInfo" type="IVirtualBoxErrorInfo" readonly="yes">
8067 <desc>
8068 Extended information about the unsuccessful result of the
8069 progress operation. May be @c null if no extended information
8070 is available.
8071 Valid only if <link to="#completed"/> is @c true and
8072 <link to="#resultCode"/> indicates a failure.
8073 </desc>
8074 </attribute>
8075
8076 <attribute name="operationCount" type="unsigned long" readonly="yes">
8077 <desc>
8078 Number of sub-operations this task is divided into.
8079 Every task consists of at least one suboperation.
8080 </desc>
8081 </attribute>
8082
8083 <attribute name="operation" type="unsigned long" readonly="yes">
8084 <desc>Number of the sub-operation being currently executed.</desc>
8085 </attribute>
8086
8087 <attribute name="operationDescription" type="wstring" readonly="yes">
8088 <desc>
8089 Description of the sub-operation being currently executed.
8090 </desc>
8091 </attribute>
8092
8093 <attribute name="operationPercent" type="unsigned long" readonly="yes">
8094 <desc>Progress value of the current sub-operation only, in percent.</desc>
8095 </attribute>
8096
8097 <method name="waitForCompletion">
8098 <desc>
8099 Waits until the task is done (including all sub-operations)
8100 with a given timeout in milliseconds; specify -1 for an indefinite wait.
8101
8102 <result name="VBOX_E_IPRT_ERROR">
8103 Failed to wait for task completion.
8104 </result>
8105 </desc>
8106
8107 <param name="timeout" type="long" dir="in">
8108 <desc>
8109 Maximum time in milliseconds to wait or -1 to wait indefinitely.
8110 </desc>
8111 </param>
8112 </method>
8113
8114 <method name="waitForOperationCompletion">
8115 <desc>
8116 Waits until the given operation is done with a given timeout in
8117 milliseconds; specify -1 for an indefinite wait.
8118
8119 <result name="VBOX_E_IPRT_ERROR">
8120 Failed to wait for operation completion.
8121 </result>
8122
8123 </desc>
8124 <param name="operation" type="unsigned long" dir="in">
8125 <desc>
8126 Number of the operation to wait for.
8127 Must be less than <link to="#operationCount"/>.
8128 </desc>
8129 </param>
8130 <param name="timeout" type="long" dir="in">
8131 <desc>
8132 Maximum time in milliseconds to wait or -1 to wait indefinitely.
8133 </desc>
8134 </param>
8135 </method>
8136
8137 <method name="cancel">
8138 <desc>
8139 Cancels the task.
8140 <note>
8141 If <link to="#cancelable"/> is @c false, then this method will fail.
8142 </note>
8143
8144 <result name="VBOX_E_INVALID_OBJECT_STATE">
8145 Operation cannot be canceled.
8146 </result>
8147
8148 </desc>
8149 </method>
8150
8151 </interface>
8152
8153
8154 <!--
8155 // ISnapshot
8156 /////////////////////////////////////////////////////////////////////////
8157 -->
8158
8159 <interface
8160 name="ISnapshot" extends="$unknown"
8161 uuid="1a2d0551-58a4-4107-857e-ef414fc42ffc"
8162 wsmap="managed"
8163 >
8164 <desc>
8165 The ISnapshot interface represents a snapshot of the virtual
8166 machine.
8167
8168 The <i>snapshot</i> stores all the information about a virtual
8169 machine necessary to bring it to exactly the same state as it was at
8170 the time of taking the snapshot. The snapshot includes:
8171
8172 <ul>
8173 <li>all settings of the virtual machine (i.e. its hardware
8174 configuration: RAM size, attached hard disks, etc.)
8175 </li>
8176 <li>the execution state of the virtual machine (memory contents,
8177 CPU state, etc.).
8178 </li>
8179 </ul>
8180
8181 Snapshots can be <i>offline</i> (taken when the VM is powered off)
8182 or <i>online</i> (taken when the VM is running). The execution
8183 state of the offline snapshot is called a <i>zero execution state</i>
8184 (it doesn't actually contain any information about memory contents
8185 or the CPU state, assuming that all hardware is just powered off).
8186
8187 <h3>Snapshot branches</h3>
8188
8189 Snapshots can be chained. Chained snapshots form a branch where
8190 every next snapshot is based on the previous one. This chaining is
8191 mostly related to hard disk branching (see <link to="IHardDisk"/>
8192 description). This means that every time a new snapshot is created,
8193 a new differencing hard disk is implicitly created for all normal
8194 hard disks attached to the given virtual machine. This allows to
8195 fully restore hard disk contents when the machine is later reverted
8196 to a particular snapshot.
8197
8198 In the current implementation, multiple snapshot branches within one
8199 virtual machine are not allowed. Every machine has a single branch,
8200 and <link to="IConsole::takeSnapshot"/> operation adds a new
8201 snapshot to the top of that branch.
8202
8203 Existing snapshots can be discarded using
8204 <link to="IConsole::discardSnapshot"/>.
8205
8206 <h3>Current snapshot</h3>
8207
8208 Every virtual machine has a current snapshot, identified by
8209 <link to="IMachine::currentSnapshot"/>. This snapshot is used as
8210 a base for the <i>current machine state</i> (see below), to the effect
8211 that all normal hard disks of the machine and its execution
8212 state are based on this snapshot.
8213
8214 In the current implementation, the current snapshot is always the
8215 last taken snapshot (i.e. the head snapshot on the branch) and it
8216 cannot be changed.
8217
8218 The current snapshot is @c null if the machine doesn't have
8219 snapshots at all; in this case the current machine state is just
8220 current settings of this machine plus its current execution state.
8221
8222 <h3>Current machine state</h3>
8223
8224 The current machine state is what represented by IMachine instances got
8225 directly from IVirtualBox
8226 using <link
8227 to="IVirtualBox::getMachine">getMachine()</link>, <link
8228 to="IVirtualBox::findMachine">findMachine()</link>, etc. (as opposed
8229 to instances returned by <link to="ISnapshot::machine"/>). This state
8230 is always used when the machine is <link to="IConsole::powerUp"> powered
8231 on</link>.
8232
8233 The current machine state also includes the current execution state.
8234 If the machine is being currently executed
8235 (<link to="IMachine::state"/> is <link to="MachineState_Running"/>
8236 and above), its execution state is just what's happening now.
8237 If it is powered off (<link to="MachineState_PoweredOff"/> or
8238 <link to="MachineState_Aborted"/>), it has a zero execution state.
8239 If the machine is saved (<link to="MachineState_Saved"/>), its
8240 execution state is what saved in the execution state file
8241 (<link to="IMachine::stateFilePath"/>).
8242
8243 If the machine is in the saved state, then, next time it is powered
8244 on, its execution state will be fully restored from the saved state
8245 file and the execution will continue from the point where the state
8246 was saved.
8247
8248 Similarly to snapshots, the current machine state can be discarded
8249 using <link to="IConsole::discardCurrentState"/>.
8250
8251 <h3>Taking and discarding snapshots</h3>
8252
8253 The table below briefly explains the meaning of every snapshot
8254 operation:
8255
8256 <table>
8257 <tr><th>Operation</th><th>Meaning</th><th>Remarks</th></tr>
8258
8259 <tr><td><link to="IConsole::takeSnapshot"/></td>
8260
8261 <td>Save the current state of the virtual machine, including all
8262 settings, contents of normal hard disks and the current modifications
8263 to immutable hard disks (for online snapshots)</td>
8264
8265 <td>The current state is not changed (the machine will continue
8266 execution if it is being executed when the snapshot is
8267 taken)</td></tr>
8268
8269 <tr><td><link to="IConsole::discardSnapshot"/></td>
8270
8271 <td>Forget the state of the virtual machine stored in the snapshot:
8272 dismiss all saved settings and delete the saved execution state (for
8273 online snapshots)</td>
8274
8275 <td>Other snapshots (including child snapshots, if any) and the
8276 current state are not directly affected</td></tr>
8277
8278 <tr><td><link to="IConsole::discardCurrentState"/></td>
8279
8280 <td>Restore the current state of the virtual machine from the state
8281 stored in the current snapshot, including all settings and hard disk
8282 contents</td>
8283
8284 <td>The current state of the machine existed prior to this operation
8285 is lost</td></tr>
8286
8287 <tr><td><link to="IConsole::discardCurrentSnapshotAndState"/></td>
8288
8289 <td>Completely revert the virtual machine to the state it was in
8290 before the current snapshot has been taken</td>
8291
8292 <td>The current state, as well as the current snapshot, are
8293 lost</td></tr>
8294
8295 </table>
8296
8297 </desc>
8298
8299 <attribute name="id" type="wstring" readonly="yes">
8300 <desc>UUID of the snapshot.</desc>
8301 </attribute>
8302
8303 <attribute name="name" type="wstring">
8304 <desc>Short name of the snapshot.</desc>
8305 </attribute>
8306
8307 <attribute name="description" type="wstring">
8308 <desc>Optional description of the snapshot.</desc>
8309 </attribute>
8310
8311 <attribute name="timeStamp" type="long long" readonly="yes">
8312 <desc>
8313 Time stamp of the snapshot, in milliseconds since 1970-01-01 UTC.
8314 </desc>
8315 </attribute>
8316
8317 <attribute name="online" type="boolean" readonly="yes">
8318 <desc>
8319 @c true if this snapshot is an online snapshot and @c false otherwise.
8320
8321 <note>
8322 When this attribute is @c true, the
8323 <link to="IMachine::stateFilePath"/> attribute of the
8324 <link to="#machine"/> object associated with this snapshot
8325 will point to the saved state file. Otherwise, it will be
8326 @c null.
8327 </note>
8328 </desc>
8329 </attribute>
8330
8331 <attribute name="machine" type="IMachine" readonly="yes">
8332 <desc>
8333 Virtual machine this snapshot is taken on. This object
8334 stores all settings the machine had when taking this snapshot.
8335 <note>
8336 The returned machine object is immutable, i.e. no
8337 any settings can be changed.
8338 </note>
8339 </desc>
8340 </attribute>
8341
8342 <attribute name="parent" type="ISnapshot" readonly="yes">
8343 <desc>
8344 Parent snapshot (a snapshot this one is based on).
8345 <note>
8346 It's not an error to read this attribute on a snapshot
8347 that doesn't have a parent -- a @c null object will be
8348 returned to indicate this.
8349 </note>
8350 </desc>
8351 </attribute>
8352
8353 <attribute name="children" type="ISnapshot" readonly="yes" safearray="yes">
8354 <desc>
8355 Child snapshots (all snapshots having this one as a parent).
8356 <note>
8357 In the current implementation, there can be only one
8358 child snapshot, or no children at all, meaning this is the
8359 last (head) snapshot.
8360 </note>
8361 </desc>
8362 </attribute>
8363
8364 </interface>
8365
8366
8367 <!--
8368 // IMedia
8369 /////////////////////////////////////////////////////////////////////////
8370 -->
8371
8372 <enum
8373 name="MediaState"
8374 uuid="8b86e03c-2f1c-412a-8fbd-326f62701200"
8375 >
8376 <desc>
8377 Virtual media state.
8378 <see>IMedia</see>
8379 </desc>
8380
8381 <const name="NotCreated" value="0">
8382 <desc>
8383 Associated media storage does not exist (either was not created yet or
8384 was deleted).
8385 </desc>
8386 </const>
8387 <const name="Created" value="1">
8388 <desc>
8389 Associated storage exists and accessible.
8390 </desc>
8391 </const>
8392 <const name="LockedRead" value="2">
8393 <desc>
8394 Media is locked for reading, no data modification is possible.
8395 </desc>
8396 </const>
8397 <const name="LockedWrite" value="3">
8398 <desc>
8399 Media is locked for writing, no concurrent data reading or modification
8400 is possible.
8401 </desc>
8402 </const>
8403 <const name="Inaccessible" value="4">
8404 <desc>
8405 Associated media storage is not accessible.
8406 </desc>
8407 </const>
8408 <const name="Creating" value="5">
8409 <desc>
8410 Associated media storage is being created.
8411 </desc>
8412 </const>
8413 <const name="Deleting" value="6">
8414 <desc>
8415 Associated media storage is being deleted.
8416 </desc>
8417 </const>
8418 </enum>
8419
8420 <interface
8421 name="IMedium" extends="$unknown"
8422 uuid="f585787c-7728-40f6-853a-13705426e936"
8423 wsmap="managed"
8424 >
8425 <desc>
8426 The IMedium interface is a common interface for all objects representing
8427 virtual media such as hard disks, CD/DVD images and floppy images.
8428
8429 Each medium is associated with a storage unit (such as a file on the host
8430 computer or a network resource) that holds actual data. The location of
8431 the storage unit is represented by the #location attribute. The value of
8432 this attribute is media type dependent.
8433
8434 The exact media type may be determined by querying the appropriate
8435 interface such as:
8436 <ul>
8437 <li><link to="IHardDisk" /> (virtual hard disks)</li>
8438 <li><link to="IDVDImage" /> (standard CD/DVD ISO image files)</li>
8439 <li><link to="IFloppyImage" /> (raw floppy image files)</li>
8440 </ul>
8441
8442 Existing media are opened using the following methods, depending on the
8443 media type:
8444 <ul>
8445 <li><link to="IVirtualBox::openHardDisk"/></li>
8446 <li><link to="IVirtualBox::openDVDImage"/></li>
8447 <li><link to="IVirtualBox::openFloppyImage"/></li>
8448 </ul>
8449
8450 New hard disk media are created using the
8451 <link to="IVirtualBox::createHardDisk"/> method. CD/DVD and floppy
8452 images are created outside VirtualBox, usually by storing a copy
8453 of the real medium of the corresponding type in a regular file.
8454
8455 <h3>Known Media</h3>
8456
8457 When an existing medium gets opened for the first time, it gets
8458 automatically remembered by the given VirtualBox installation or, in other
8459 words, becomes a <i>known medium</i>. Known media are stored in the media
8460 registry transparently maintained by VirtualBox and stored in settings
8461 files so that this registry is preserved when VirtualBox is not running.
8462
8463 Newly created virtual hard disks get remembered only when the associated
8464 storage unit is actually created (see IHardDisk for more details).
8465
8466 All known media can be enumerated using
8467 <link to="IVirtualBox::hardDisks"/>,
8468 <link to="IVirtualBox::DVDImages"/> and
8469 <link to="IVirtualBox::floppyImages"/> attributes. Individual media can be
8470 quickly found by UUID using <link to="IVirtualBox::getHardDisk"/>
8471 and similar methods or by location using
8472 <link to="IVirtualBox::findHardDisk"/> and similar methods.
8473
8474 Only known media can be attached to virtual machines.
8475
8476 Removing known media from the media registry is performed when the given
8477 medium is closed using the <link to="#close"/> method or when its
8478 associated storage unit is deleted (only for hard disks).
8479
8480 <h3>Accessibility Checks</h3>
8481
8482 The given medium (with the created storage unit) is considered to be
8483 <i>accessible</i> when its storage unit can be read.
8484 Accessible media are indicated by the <link to="MediaState_Created"/>
8485 value of the <link to="#state"/> attribute. When the storage unit cannot
8486 be read (for example, because it is located on a disconnected network
8487 resource, or was accidentally deleted outside VirtualBox), the medium is
8488 considered to be <i>inaccessible</i> which is indicated by the
8489 <link to="MediaState_Inaccessible"/> state. The details about the reason
8490 of being inaccessible can be obtained using the
8491 <link to="#lastAccessError"/> attribute.
8492
8493 A new accessibility check is performed each time the <link to="#state"/>
8494 attribute is read. Please note that this check may take long time (several
8495 seconds or even minutes, depending on the storage unit location and
8496 format), and will block the calling thread until finished. For this
8497 reason, it is recommended to never read this attribute on the main UI
8498 thread to avoid making the UI unresponsive.
8499
8500 Note that when VirtualBox starts up (e.g. the VirtualBox object gets
8501 created for the first time), all known media are in the
8502 <link to="MediaState_Inaccessible"/> state but the value of the <link
8503 to="#lastAccessError"/> attribute is @c null because no actual
8504 accessibility check is made on startup. This is done to make the
8505 VirtualBox object ready for serving requests as
8506 fast as possible and let the end-user application decide if it needs to
8507 check media accessibility right away or not.
8508 </desc>
8509
8510 <attribute name="id" type="wstring" readonly="yes">
8511 <desc>
8512 UUID of the medium. For a newly created medium, this value is a randomly
8513 generated UUID.
8514
8515 <note>
8516 For media in one of MediaState_NotCreated, MediaState_Creating or
8517 MediaState_Deleting states, the value of this property is undefined
8518 and will most likely be an empty UUID.
8519 </note>
8520 </desc>
8521 </attribute>
8522
8523 <attribute name="description" type="wstring">
8524 <desc>
8525 Optional description of the medium. For newly created media, the value
8526 of this attribute value is @c null.
8527
8528 Media types that don't support this attribute will return E_NOTIMPL in
8529 attempt to get or set this attribute's value.
8530
8531 <note>
8532 For some storage types, reading this attribute may return an outdated
8533 (last known) value when <link to="#state"/> is <link
8534 to="MediaState_Inaccessible"/> or <link
8535 to="MediaState_LockedWrite"/> because the value of this attribute is
8536 stored within the storage unit itself. Also note that changing the
8537 attribute value is not possible in such case, as well as when the
8538 medium is the <link to="MediaState_LockedRead"/> state.
8539 </note>
8540 </desc>
8541 </attribute>
8542
8543 <attribute name="state" type="MediaState" readonly="yes">
8544 <desc>
8545 Current media state. Inspect <link to="MediaState"/> values for details.
8546
8547 Reading this attribute may take a long time because an accessibility
8548 check of the storage unit is performed each time the attribute is read.
8549 This check may cause a significant delay if the storage unit of the
8550 given medium is, for example, a file located on a network share which is
8551 not currently accessible due to connectivity problems -- the call will
8552 not return until a timeout interval defined by the host OS for this
8553 operation expires.
8554
8555 If the last known state of the medium is <link to="MediaState_Created"/>
8556 and the accessibility check fails then the state would be set to
8557 <link to="MediaState_Inaccessible"/> and <link to="#lastAccessError"/>
8558 may be used to get more details about the failure. If the state of the
8559 medium is <link to="MediaState_LockedRead"/> or
8560 <link to="MediaState_LockedWrite"/> then it remains the same, and a
8561 non-@c null value of <link to="#lastAccessError"/> will indicate a failed
8562 accessibility check in this case.
8563
8564 Note that not all media states are applicable to all media types.
8565 For example, states <link to="MediaState_NotCreated"/>,
8566 <link to="MediaState_LockedWrite"/>, <link to="MediaState_Creating"/>,
8567 <link to="MediaState_Deleting"/> are meaningless for IDVDImage and
8568 IFloppyImage media.
8569 </desc>
8570 </attribute>
8571
8572 <attribute name="location" type="wstring">
8573 <desc>
8574 Location of the storage unit holding media data.
8575
8576 The format of the location string is media type specific. For media
8577 types using regular files in a host's file system, the location
8578 string is the full file name.
8579
8580 Some media types may support changing the storage unit location by
8581 simply changing the value of this property. If this operation is not
8582 supported, the implementation will return E_NOTIMPL in attempt to set
8583 this attribute's value.
8584
8585 When setting a value of the location attribute which is a regular file
8586 in the host's file system, the given file name may be either relative to
8587 the <link to="IVirtualBox::homeFolder">VirtualBox home folder</link> or
8588 absolute. Note that if the given location specification does not contain
8589 the file extension part then a proper default extension will be
8590 automatically appended by the implementation depending on the media type.
8591 </desc>
8592 </attribute>
8593
8594 <attribute name="name" type="wstring" readonly="yes">
8595 <desc>
8596 Name of the storage unit holding media data.
8597
8598 The returned string is a short version of the <link to="#location"/>
8599 attribute that is suitable for representing the medium in situations
8600 where the full location specification is too long (such as lists
8601 and comboboxes in GUI frontends). This string is also used by frontends
8602 to sort the media list alphabetically when needed.
8603
8604 For example, for locations that are regular files in the host's file
8605 system, the value of this attribute is just the file name (+ extension),
8606 without the path specification.
8607
8608 Note that as opposed to the <link to="#location"/> attribute, the name
8609 attribute will not necessary be unique for a list of media of the
8610 given type and format.
8611 </desc>
8612 </attribute>
8613
8614 <attribute name="size" type="unsigned long long" readonly="yes">
8615 <desc>
8616 Physical size of the storage unit used to hold media data (in bytes).
8617
8618 <note>
8619 For media whose <link to="#state"/> is <link
8620 to="MediaState_Inaccessible"/>, the value of this property is the
8621 last known size. For <link to="MediaState_NotCreated"/> media,
8622 the returned value is zero.
8623 </note>
8624 </desc>
8625 </attribute>
8626
8627 <attribute name="lastAccessError" type="wstring" readonly="yes">
8628 <desc>
8629 Text message that represents the result of the last accessibility
8630 check.
8631
8632 Accessibility checks are performed each time the <link to="#state"/>
8633 attribute is read. A @c null string is returned if the last
8634 accessibility check was successful. A non-@c null string indicates a
8635 failure and should normally describe a reason of the failure (for
8636 example, a file read error).
8637 </desc>
8638 </attribute>
8639
8640 <attribute name="machineIds" type="wstring" safearray="yes" readonly="yes">
8641 <desc>
8642 Array of UUIDs of all machines this medium is attached to.
8643
8644 A @c null array is returned if this medium is not attached to any
8645 machine or to any machine's snapshot.
8646
8647 <note>
8648 The returned array will include a machine even if this medium is not
8649 attached to that machine in the current state but attached to it in
8650 one of the machine's snapshots. See <link to="#getSnapshotIds"/> for
8651 details.
8652 </note>
8653 </desc>
8654 </attribute>
8655
8656 <method name="getSnapshotIds">
8657 <desc>
8658 Returns an array of UUIDs of all snapshots of the given machine where
8659 this medium is attached to.
8660
8661 If the medium is attached to the machine in the current state, then the
8662 first element in the array will always be the ID of the queried machine
8663 (i.e. the value equal to the @c machineId argument), followed by
8664 snapshot IDs (if any).
8665
8666 If the medium is not attached to the machine in the current state, then
8667 the array will contain only snapshot IDs.
8668
8669 The returned array may be @c null if this medium is not attached
8670 to the given machine at all, neither in the current state nor in one of
8671 the snapshots.
8672 </desc>
8673 <param name="machineId" type="wstring" dir="in">
8674 <desc>
8675 UUID of the machine to query.
8676 </desc>
8677 </param>
8678 <param name="snapshotIds" type="wstring" safearray="yes" dir="return">
8679 <desc>
8680 Array of snapshot UUIDs of the given machine using this medium.
8681 </desc>
8682 </param>
8683 </method>
8684
8685 <method name="lockRead">
8686 <desc>
8687 Locks this medium for reading.
8688
8689 The read lock is shared: many clients can simultaneously lock the
8690 same media for reading unless it is already locked for writing (see
8691 <link to="#lockWrite"/>) in which case an error is returned.
8692
8693 When the medium is locked for reading, it cannot be modified
8694 from within VirtualBox. This means that any method that changes
8695 the properties of this medium or contents of the storage unit
8696 will return an error (unless explicitly stated otherwise) and
8697 that an attempt to start a virtual machine that wants to modify
8698 the medium will also fail.
8699
8700 When the virtual machine is started up, it locks for reading all
8701 media it uses in read-only mode. If some media cannot be locked
8702 for reading, the startup procedure will fail.
8703
8704 The medium locked for reading must be unlocked using the <link
8705 to="#unlockRead"/> method. Calls to <link to="#lockRead"/>
8706 can be nested and must be followed by the same number of paired
8707 <link to="#unlockRead"/> calls.
8708
8709 This method sets the media state to <link
8710 to="MediaState_LockedRead" /> on success. The state prior to
8711 this call must be <link to="MediaState_Created" />,
8712 <link to="MediaState_Inaccessible" /> or
8713 <link to="MediaState_LockedRead" />.
8714 As you can see, inaccessible media can be locked too. This is
8715 not an error; this method performs a logical lock that prevents
8716 modifications of this media through the VirtualBox API, not a
8717 physical lock of the underlying storage unit.
8718
8719 This method returns the current state of the medium
8720 <b>before</b> the operation.
8721
8722 <result name="VBOX_E_INVALID_OBJECT_STATE">
8723 Invalid media state (e.g. not created, locked, inaccessible,
8724 creating, deleting).
8725 </result>
8726
8727 </desc>
8728 <param name="state" type="MediaState" dir="return">
8729 <desc>
8730 State of the medium after the operation.
8731 </desc>
8732 </param>
8733 </method>
8734
8735 <method name="unlockRead">
8736 <desc>
8737 Cancels the read lock previously set by <link to="#lockRead"/>.
8738
8739 For both, success and failure, this method returns the current state
8740 of the medium <b>after</b> the operation.
8741
8742 See <link to="#lockRead"/> for more details.
8743
8744 <result name="VBOX_E_INVALID_OBJECT_STATE">
8745 Medium not locked for reading.
8746 </result>
8747
8748 </desc>
8749 <param name="state" type="MediaState" dir="return">
8750 <desc>
8751 State of the medium after the operation.
8752 </desc>
8753 </param>
8754 </method>
8755
8756 <method name="lockWrite">
8757 <desc>
8758 Locks this medium for writing.
8759
8760 The write lock, as opposed to <link to="#lockRead"/>, is
8761 exclusive: there may be only one client holding a write lock
8762 and there may be no read locks while the write lock is held.
8763
8764 When the medium is locked for writing, it cannot be modified
8765 from within VirtualBox and it is not guaranteed that the values
8766 of its properties are up-to-date. Any method that changes the
8767 properties of this medium or contents of the storage unit will
8768 return an error (unless explicitly stated otherwise) and an
8769 attempt to start a virtual machine wanting to modify or to
8770 read the medium will fail.
8771
8772 When the virtual machine is started up, it locks for writing all
8773 media it uses to write data to. If any medium could not be locked
8774 for writing, the startup procedure will fail.
8775
8776 The medium locked for writing must be unlocked using the <link
8777 to="#unlockWrite"/> method. Calls to <link to="#lockWrite"/>
8778 can <b>not</b> be nested and must be followed by a<link
8779 to="#unlockWrite"/> call before the next lockWrite call.
8780
8781 This method sets the media state to <link to="MediaState_LockedWrite" />
8782 on success. The state prior to this call must be <link to="MediaState_Created"/>
8783 or <link to="MediaState_Inaccessible"/>. As you can see, inaccessible
8784 media can be locked too. This is not an error; this method
8785 performs a logical lock preventing modifications of this
8786 media through the VirtualBox API, not a physical lock of the
8787 underlying storage unit.
8788
8789 For both, success and failure, this method returns the current
8790 state of the medium <b>before</b> the operation.
8791
8792 <result name="VBOX_E_INVALID_OBJECT_STATE">
8793 Invalid media state (e.g. not created, locked, inaccessible,
8794 creating, deleting).
8795 </result>
8796
8797 </desc>
8798 <param name="state" type="MediaState" dir="return">
8799 <desc>
8800 State of the medium after the operation.
8801 </desc>
8802 </param>
8803 </method>
8804
8805 <method name="unlockWrite">
8806 <desc>
8807 Cancels the write lock previously set by <link to="#lockWrite"/>.
8808
8809 For both, success and failure, this method returns the current
8810 state of the medium <b>after</b> the operation.
8811
8812 See <link to="#lockWrite"/> for more details.
8813
8814 <result name="VBOX_E_INVALID_OBJECT_STATE">
8815 Medium not locked for writing.
8816 </result>
8817
8818 </desc>
8819 <param name="state" type="MediaState" dir="return">
8820 <desc>
8821 State of the medium after the operation.
8822 </desc>
8823 </param>
8824 </method>
8825
8826 <method name="close">
8827 <desc>
8828 Closes this medium.
8829
8830 The hard disk must not be attached to any known virtual machine
8831 and must not have any known child hard disks, otherwise the
8832 operation will fail.
8833
8834 When the hard disk is successfully closed, it gets removed from
8835 the list of remembered hard disks, but its storage unit is not
8836 deleted. In particular, this means that this hard disk can be
8837 later opened again using the <link
8838 to="IVirtualBox::openHardDisk"/> call.
8839
8840 Note that after this method successfully returns, the given hard
8841 disk object becomes uninitialized. This means that any attempt
8842 to call any of its methods or attributes will fail with the
8843 <tt>"Object not ready" (E_ACCESSDENIED)</tt> error.
8844
8845 <result name="VBOX_E_INVALID_OBJECT_STATE">
8846 Invalid media state (other than not created, created or
8847 inaccessible).
8848 </result>
8849 <result name="VBOX_E_OBJECT_IN_USE">
8850 Medium attached to virtual machine.
8851 </result>
8852 <result name="VBOX_E_FILE_ERROR">
8853 Settings file not accessible.
8854 </result>
8855 <result name="VBOX_E_XML_ERROR">
8856 Could not parse the settings file.
8857 </result>
8858
8859 </desc>
8860 </method>
8861
8862 </interface>
8863
8864
8865 <!--
8866 // IHardDisk
8867 /////////////////////////////////////////////////////////////////////////
8868 -->
8869
8870 <enum
8871 name="HardDiskType"
8872 uuid="a348fafd-a64e-4643-ba65-eb3896bd7e0a"
8873 >
8874 <desc>
8875 Virtual hard disk type.
8876 <see>IHardDisk</see>
8877 </desc>
8878
8879 <const name="Normal" value="0">
8880 <desc>
8881 Normal hard disk (attached directly or indirectly, preserved
8882 when taking snapshots).
8883 </desc>
8884 </const>
8885 <const name="Immutable" value="1">
8886 <desc>
8887 Immutable hard disk (attached indirectly, changes are wiped out
8888 after powering off the virtual machine).
8889 </desc>
8890 </const>
8891 <const name="Writethrough" value="2">
8892 <desc>
8893 Write through hard disk (attached directly, ignored when
8894 taking snapshots).
8895 </desc>
8896 </const>
8897 </enum>
8898
8899 <enum
8900 name="HardDiskVariant"
8901 uuid="eb7fc6b3-ae23-4c5d-a1f6-e3522dd1efb0"
8902 >
8903 <desc>
8904 Virtual hard disk image variant. More than one flag may be set.
8905 <see>IHardDisk</see>
8906 </desc>
8907
8908 <const name="Standard" value="0">
8909 <desc>
8910 No particular variant requested, results in using the backend default.
8911 </desc>
8912 </const>
8913 <const name="VmdkSplit2G" value="0x01">
8914 <desc>
8915 VMDK image split in chunks of less than 2GByte.
8916 </desc>
8917 </const>
8918 <const name="VmdkStreamOptimized" value="0x04">
8919 <desc>
8920 VMDK streamOptimized image. Special import/export format which is
8921 read-only/append-only.
8922 </desc>
8923 </const>
8924 <const name="VmdkESX" value="0x08">
8925 <desc>
8926 VMDK format variant used on ESX products.
8927 </desc>
8928 </const>
8929 <const name="Fixed" value="0x10000">
8930 <desc>
8931 Fixed image. Only allowed for base images.
8932 </desc>
8933 </const>
8934 <const name="Diff" value="0x20000">
8935 <desc>
8936 Fixed image. Only allowed for base images.
8937 </desc>
8938 </const>
8939 </enum>
8940
8941 <interface
8942 name="IHardDiskAttachment" extends="$unknown"
8943 uuid="b1dd04bb-93c0-4ad3-a9cf-82316e595836"
8944 wsmap="struct"
8945 >
8946 <desc>
8947 The IHardDiskAttachment interface represents a hard disk attachment of a
8948 virtual machine.
8949
8950 Every hard disk attachment specifies a slot of the virtual hard disk
8951 controller and a virtual hard disk attached to this slot.
8952
8953 The array of hard disk attachments is returned by
8954 <link to="IMachine::hardDiskAttachments"/>.
8955 </desc>
8956 <attribute name="hardDisk" type="IHardDisk" readonly="yes">
8957 <desc>Hard disk object associated with this attachment.</desc>
8958 </attribute>
8959
8960 <attribute name="controller" type="wstring" readonly="yes">
8961 <desc>Interface bus of this attachment.</desc>
8962 </attribute>
8963
8964 <attribute name="port" type="long" readonly="yes">
8965 <desc>Port number of this attachment.</desc>
8966 </attribute>
8967
8968 <attribute name="device" type="long" readonly="yes">
8969 <desc>Device slot number of this attachment.</desc>
8970 </attribute>
8971
8972 </interface>
8973
8974 <interface
8975 name="IHardDisk" extends="IMedium"
8976 uuid="62551115-83b8-4d20-925f-79e9d3c00f96"
8977 wsmap="managed"
8978 >
8979 <desc>
8980 The IHardDisk interface represents a virtual hard disk drive
8981 used by a virtual machine. This is a subclass of <link to="IMedium" />; see remarks there.
8982
8983 <h3>Hard Disk Types</h3>
8984
8985 There are three types of hard disks:
8986 <link to="HardDiskType_Normal">Normal</link>,
8987 <link to="HardDiskType_Immutable">Immutable</link> and
8988 <link to="HardDiskType_Writethrough">Writethrough</link>. The type of the
8989 hard disk defines how the hard disk is attached to a virtual machine and
8990 what happens when a <link to="ISnapshot">snapshot</link> of the virtual
8991 machine with the attached hard disk is taken. The type of the hard disk is
8992 defined by the <link to="#type"/> attribute.
8993
8994 All hard disks can be also divided in two groups: <i>base</i> hard
8995 disks and <i>differencing</i> hard disks. A base hard disk contains all
8996 sectors of the hard disk data in its own storage and therefore can be
8997 used independently. On the contrary, a differencing hard disk is a
8998 "delta" to some other disk and contains only those sectors which differ
8999 from that other disk, which is then called a <i>parent</i>. The differencing
9000 hard disk is said to be <i>linked to</i> that parent.
9001 The parent may be itself a differencing image, thus forming a chain of
9002 linked hard disks. The last element in that chain (sometimes referred to as
9003 the root hard disk) must always be a base. Note that several differencing
9004 hard disks may be linked to the same parent hard disk.
9005
9006 Differencing hard disks can be distinguished from base hard disks by
9007 querying the <link to="#parent"/> attribute: base hard disks do not have
9008 parents they would depend on, so the value of this attribute is always
9009 @c null for them. Using this attribute, it is possible to walk up
9010 the hard disk tree (from the child hard disk to its parent). It is also
9011 possible to walk down the tree using the <link to="#children"/>
9012 attribute.
9013
9014 Note that the type of all differencing hard disks is
9015 <link to="HardDiskType_Normal" />; all other values are
9016 meaningless for them. Base hard disks may be of any type.
9017
9018 <h3>Creating Hard Disks</h3>
9019
9020 New base hard disks are created using
9021 <link to="IVirtualBox::createHardDisk"/>. Existing hard disks are
9022 opened using <link to="IVirtualBox::openHardDisk"/>. Differencing hard
9023 disks are usually implicitly created by VirtualBox when needed but may
9024 also be created explicitly using <link to="#createDiffStorage"/>.
9025
9026 After the hard disk is successfully created (including the storage unit)
9027 or opened, it becomes a known hard disk (remembered in the internal media
9028 registry). Known hard disks can be attached to a virtual machine, accessed
9029 through <link to="IVirtualBox::getHardDisk"/> and
9030 <link to="IVirtualBox::findHardDisk"/> methods or enumerated using the
9031 <link to="IVirtualBox::hardDisks"/> array (only for base hard disks).
9032
9033 The following methods, besides <link to="IMedium::close"/>,
9034 automatically remove the hard disk from the media registry:
9035 <ul>
9036 <li><link to="#deleteStorage"/></li>
9037 <li><link to="#mergeTo"/></li>
9038 </ul>
9039
9040 If the storage unit of the hard disk is a regular file in the host's
9041 file system then the rules stated in the description of the
9042 <link to="IMedium::location"/> attribute apply when setting its value. In
9043 addition, a plain file name without any path may be given, in which case
9044 the <link to="ISystemProperties::defaultHardDiskFolder"> default hard disk
9045 folder</link> will be prepended to it.
9046
9047 <h4>Automatic composition of the file name part</h4>
9048
9049 Another extension to the <link to="IMedium::location"/> attribute is that
9050 there is a possibility to cause VirtualBox to compose a unique value for
9051 the file name part of the location using the UUID of the hard disk. This
9052 applies only to hard disks in <link to="MediaState_NotCreated"/> state,
9053 e.g. before the storage unit is created, and works as follows. You set the
9054 value of the <link to="IMedium::location"/> attribute to a location
9055 specification which only contains the path specification but not the file
9056 name part and ends with either a forward slash or a backslash character.
9057 In response, VirtualBox will generate a new UUID for the hard disk and
9058 compose the file name using the following pattern:
9059 <pre>
9060 &lt;path&gt;/{&lt;uuid&gt;}.&lt;ext&gt;
9061 </pre>
9062 where <tt>&lt;path&gt;</tt> is the supplied path specification,
9063 <tt>&lt;uuid&gt;</tt> is the newly generated UUID and <tt>&lt;ext&gt;</tt>
9064 is the default extension for the storage format of this hard disk. After
9065 that, you may call any of the methods that create a new hard disk storage
9066 unit and they will use the generated UUID and file name.
9067
9068 <h3>Attaching Hard Disks</h3>
9069
9070 Hard disks are attached to virtual machines using the
9071 <link to="IMachine::attachHardDisk"/> method and detached using the
9072 <link to="IMachine::detachHardDisk"/> method. Depending on their
9073 <link to="#type"/>, hard disks are attached either
9074 <i>directly</i> or <i>indirectly</i>.
9075
9076 When a hard disk is being attached directly, it is associated with the
9077 virtual machine and used for hard disk operations when the machine is
9078 running. When a hard disk is being attached indirectly, a new differencing
9079 hard disk linked to it is implicitly created and this differencing hard
9080 disk is associated with the machine and used for hard disk operations.
9081 This also means that if <link to="IMachine::attachHardDisk"/> performs
9082 a direct attachment then the same hard disk will be returned in response
9083 to the subsequent <link to="IMachine::getHardDisk"/> call; however if
9084 an indirect attachment is performed then
9085 <link to="IMachine::getHardDisk"/> will return the implicitly created
9086 differencing hard disk, not the original one passed to <link
9087 to="IMachine::attachHardDisk"/>. The following table shows the
9088 dependency of the attachment type on the hard disk type:
9089
9090 <table>
9091 <tr>
9092 <th>Hard Disk Type</th>
9093 <th>Direct or Indirect?</th>
9094 </tr>
9095 <tr>
9096 <td>Normal (Base)</td>
9097 <td>
9098 Normal base hard disks that do not have children (i.e. differencing
9099 hard disks linked to them) and that are not already attached to
9100 virtual machines in snapshots are attached <b>directly</b>.
9101 Otherwise, they are attached <b>indirectly</b> because having
9102 dependent children or being part of the snapshot makes it impossible
9103 to modify hard disk contents without breaking the integrity of the
9104 dependent party. The <link to="#readOnly"/> attribute allows to
9105 quickly determine the kind of the attachment for the given hard
9106 disk. Note that if a normal base hard disk is to be indirectly
9107 attached to a virtual machine with snapshots then a special
9108 procedure called <i>smart attachment</i> is performed (see below).
9109 </td>
9110 </tr>
9111 <tr>
9112 <td>Normal (Differencing)</td>
9113 <td>
9114 Differencing hard disks are like normal base hard disks: attached
9115 <b>directly</b> if they do not have children and are not attached to
9116 virtual machines in snapshots, and <b>indirectly</b> otherwise. Note
9117 that the smart attachment procedure is never performed for
9118 differencing hard disks.
9119 </td>
9120 </tr>
9121 <tr>
9122 <td>Immutable</td>
9123 <td>
9124 Immutable hard disks are always attached <b>indirectly</b> because
9125 they are designed to be non-writable. If an immutable hard disk is
9126 attached to a virtual machine with snapshots then a special
9127 procedure called smart attachment is performed (see below).
9128 </td>
9129 </tr>
9130 <tr>
9131 <td>Writethrough</td>
9132 <td>
9133 Writethrough hard disks are always attached <b>directly</b>, also as
9134 designed. This also means that writethrough hard disks cannot have
9135 other hard disks linked to them at all.
9136 </td>
9137 </tr>
9138 </table>
9139
9140 Note that the same hard disk, regardless of its type, may be attached to
9141 more than one virtual machine at a time. In this case, the machine that is
9142 started first gains exclusive access to the hard disk and attempts to
9143 start other machines having this hard disk attached will fail until the
9144 first machine is powered down.
9145
9146 Detaching hard disks is performed in a <i>deferred</i> fashion. This means
9147 that the given hard disk remains associated with the given machine after a
9148 successful <link to="IMachine::detachHardDisk"/> call until
9149 <link to="IMachine::saveSettings"/> is called to save all changes to
9150 machine settings to disk. This deferring is necessary to guarantee that
9151 the hard disk configuration may be restored at any time by a call to
9152 <link to="IMachine::discardSettings"/> before the settings
9153 are saved (committed).
9154
9155 Note that if <link to="IMachine::discardSettings"/> is called after
9156 indirectly attaching some hard disks to the machine but before a call to
9157 <link to="IMachine::saveSettings"/> is made, it will implicitly delete
9158 all differencing hard disks implicitly created by
9159 <link to="IMachine::attachHardDisk"/> for these indirect attachments.
9160 Such implicitly created hard disks will also be immediately deleted when
9161 detached explicitly using the <link to="IMachine::detachHardDisk"/>
9162 call if it is made before <link to="IMachine::saveSettings"/>. This
9163 implicit deletion is safe because newly created differencing hard
9164 disks do not contain any user data.
9165
9166 However, keep in mind that detaching differencing hard disks that were
9167 implicitly created by <link to="IMachine::attachHardDisk"/>
9168 before the last <link to="IMachine::saveSettings"/> call will
9169 <b>not</b> implicitly delete them as they may already contain some data
9170 (for example, as a result of virtual machine execution). If these hard
9171 disks are no more necessary, the caller can always delete them explicitly
9172 using <link to="#deleteStorage"/> after they are actually de-associated
9173 from this machine by the <link to="IMachine::saveSettings"/> call.
9174
9175 <h3>Smart Attachment</h3>
9176
9177 When normal base or immutable hard disks are indirectly attached to a
9178 virtual machine then some additional steps are performed to make sure the
9179 virtual machine will have the most recent "view" of the hard disk being
9180 attached. These steps include walking through the machine's snapshots
9181 starting from the current one and going through ancestors up to the first
9182 snapshot. Hard disks attached to the virtual machine in all
9183 of the encountered snapshots are checked whether they are descendants of
9184 the given normal base or immutable hard disk. The first found child (which
9185 is the differencing hard disk) will be used instead of the normal base or
9186 immutable hard disk as a parent for creating a new differencing hard disk
9187 that will be actually attached to the machine. And only if no descendants
9188 are found or if the virtual machine does not have any snapshots then the
9189 normal base or immutable hard disk will be used itself as a parent for
9190 this differencing hard disk.
9191
9192 It is easier to explain what smart attachment does using the
9193 following example:
9194 <pre>
9195BEFORE attaching B.vdi: AFTER attaching B.vdi:
9196
9197Snapshot 1 (B.vdi) Snapshot 1 (B.vdi)
9198 Snapshot 2 (D1->B.vdi) Snapshot 2 (D1->B.vdi)
9199 Snapshot 3 (D2->D1.vdi) Snapshot 3 (D2->D1.vdi)
9200 Snapshot 4 (none) Snapshot 4 (none)
9201 CurState (none) CurState (D3->D2.vdi)
9202
9203 NOT
9204 ...
9205 CurState (D3->B.vdi)
9206 </pre>
9207 The first column is the virtual machine configuration before the base hard
9208 disk <tt>B.vdi</tt> is attached, the second column shows the machine after
9209 this hard disk is attached. Constructs like <tt>D1->B.vdi</tt> and similar
9210 mean that the hard disk that is actually attached to the machine is a
9211 differencing hard disk, <tt>D1.vdi</tt>, which is linked to (based on)
9212 another hard disk, <tt>B.vdi</tt>.
9213
9214 As we can see from the example, the hard disk <tt>B.vdi</tt> was detached
9215 from the machine before taking Snapshot 4. Later, after Snapshot 4 was
9216 taken, the user decides to attach <tt>B.vdi</tt> again. <tt>B.vdi</tt> has
9217 dependent child hard disks (<tt>D1.vdi</tt>, <tt>D2.vdi</tt>), therefore
9218 it cannot be attached directly and needs an indirect attachment (i.e.
9219 implicit creation of a new differencing hard disk). Due to the smart
9220 attachment procedure, the new differencing hard disk
9221 (<tt>D3.vdi</tt>) will be based on <tt>D2.vdi</tt>, not on
9222 <tt>B.vdi</tt> itself, since <tt>D2.vdi</tt> is the most recent view of
9223 <tt>B.vdi</tt> existing for this snapshot branch of the given virtual
9224 machine.
9225
9226 Note that if there is more than one descendant hard disk of the given base
9227 hard disk found in a snapshot, and there is an exact device, channel and
9228 bus match, then this exact match will be used. Otherwise, the youngest
9229 descendant will be picked up.
9230
9231 There is one more important aspect of the smart attachment procedure which
9232 is not related to snapshots at all. Before walking through the snapshots
9233 as described above, the backup copy of the current list of hard disk
9234 attachment is searched for descendants. This backup copy is created when
9235 the hard disk configuration is changed for the first time after the last
9236 <link to="IMachine::saveSettings"/> call and used by
9237 <link to="IMachine::discardSettings"/> to undo the recent hard disk
9238 changes. When such a descendant is found in this backup copy, it will be
9239 simply re-attached back, without creating a new differencing hard disk for
9240 it. This optimization is necessary to make it possible to re-attach the
9241 base or immutable hard disk to a different bus, channel or device slot
9242 without losing the contents of the differencing hard disk actually
9243 attached to the machine in place of it.
9244 </desc>
9245
9246 <attribute name="format" type="wstring" readonly="yes">
9247 <desc>
9248 Storage format of this hard disk.
9249
9250 The value of this attribute is a string that specifies a backend used to
9251 store hard disk data. The storage format is defined when you create a
9252 new hard disk or automatically detected when you open an existing hard
9253 disk medium, and cannot be changed later.
9254
9255 The list of all storage formats supported by this VirtualBox
9256 installation can be obtained using
9257 <link to="ISystemProperties::hardDiskFormats"/>.
9258 </desc>
9259 </attribute>
9260
9261 <attribute name="type" type="HardDiskType">
9262 <desc>
9263 Type (role) of this hard disk.
9264
9265 The following constraints apply when changing the value of this
9266 attribute:
9267 <ul>
9268 <li>If a hard disk is attached to a virtual machine (either in the
9269 current state or in one of the snapshots), its type cannot be
9270 changed.
9271 </li>
9272 <li>As long as the hard disk has children, its type cannot be set
9273 to <link to="HardDiskType_Writethrough"/>.
9274 </li>
9275 <li>The type of all differencing hard disks is
9276 <link to="HardDiskType_Normal"/> and cannot be changed.
9277 </li>
9278 </ul>
9279
9280 The type of a newly created or opened hard disk is set to
9281 <link to="HardDiskType_Normal"/>.
9282 </desc>
9283 </attribute>
9284
9285 <attribute name="parent" type="IHardDisk" readonly="yes">
9286 <desc>
9287 Parent of this hard disk (a hard disk this hard disk is directly based
9288 on).
9289
9290 Only differencing hard disks have parents. For base (non-differencing)
9291 hard disks, @c null is returned.
9292 </desc>
9293 </attribute>
9294
9295 <attribute name="children" type="IHardDisk" safearray="yes" readonly="yes">
9296 <desc>
9297 Children of this hard disk (all differencing hard disks directly based
9298 on this hard disk). A @c null array is returned if this hard disk
9299 does not have any children.
9300 </desc>
9301 </attribute>
9302
9303 <attribute name="root" type="IHardDisk" readonly="yes">
9304 <desc>
9305 Root hard disk of this hard disk.
9306
9307 If this is a differencing hard disk, its root hard disk is the base hard
9308 disk the given hard disk branch starts from. For all other types of hard
9309 disks, this property returns the hard disk object itself (i.e. the same
9310 object this property is read on).
9311 </desc>
9312 </attribute>
9313
9314 <attribute name="readOnly" type="boolean" readonly="yes">
9315 <desc>
9316 Returns @c true if this hard disk is read-only and @c false otherwise.
9317
9318 A hard disk is considered to be read-only when its contents cannot be
9319 modified without breaking the integrity of other parties that depend on
9320 this hard disk such as its child hard disks or snapshots of virtual
9321 machines where this hard disk is attached to these machines. If there
9322 are no children and no such snapshots then there is no dependency and
9323 the hard disk is not read-only.
9324
9325 The value of this attribute can be used to determine the kind of the
9326 attachment that will take place when attaching this hard disk to a
9327 virtual machine. If the value is @c false then the hard disk will
9328 be attached directly. If the value is @c true then the hard disk
9329 will be attached indirectly by creating a new differencing child hard
9330 disk for that. See the interface description for more information.
9331
9332 Note that all <link to="HardDiskType_Immutable">Immutable</link> hard
9333 disks are always read-only while all
9334 <link to="HardDiskType_Writethrough">Writethrough</link> hard disks are
9335 always not.
9336
9337 <note>
9338 The read-only condition represented by this attribute is related to
9339 the hard disk type and usage, not to the current
9340 <link to="IMedium::state">media state</link> and not to the read-only
9341 state of the storage unit.
9342 </note>
9343 </desc>
9344 </attribute>
9345
9346 <attribute name="logicalSize" type="unsigned long long" readonly="yes">
9347 <desc>
9348 Logical size of this hard disk (in megabytes), as reported to the
9349 guest OS running inside the virtual machine this disk is
9350 attached to. The logical size is defined when the hard disk is created
9351 and cannot be changed later.
9352
9353 <note>
9354 Reading this property on a differencing hard disk will return the size
9355 of its <link to="#root"/> hard disk.
9356 </note>
9357 <note>
9358 For hard disks whose state is <link to="#state"/> is <link
9359 to="MediaState_Inaccessible"/>, the value of this property is the
9360 last known logical size. For <link to="MediaState_NotCreated"/> hard
9361 disks, the returned value is zero.
9362 </note>
9363 </desc>
9364 </attribute>
9365
9366 <attribute name="autoReset" type="boolean">
9367 <desc>
9368 Whether this differencing hard disk will be automatically reset each
9369 time a virtual machine it is attached to is powered up.
9370
9371 See <link to="#reset()"/> for more information about resetting
9372 differencing hard disks.
9373
9374 <note>
9375 Reading this property on a base (non-differencing) hard disk will
9376 always @c false. Changing the value of this property in this
9377 case is not supported.
9378 </note>
9379
9380 <result name="VBOX_E_NOT_SUPPORTED">
9381 This is not a differencing hard disk (when changing the attribute
9382 value).
9383 </result>
9384 </desc>
9385 </attribute>
9386
9387 <!-- storage methods -->
9388
9389 <method name="getProperty">
9390 <desc>
9391 Returns the value of the custom hard disk property with the given name.
9392
9393 The list of all properties supported by the given hard disk format can
9394 be obtained with <link to="IHardDiskFormat::describeProperties"/>.
9395
9396 Note that if this method returns a @c null @a value, the requested
9397 property is supported but currently not assigned any value.
9398
9399 <result name="VBOX_E_OBJECT_NOT_FOUND">
9400 Requested property does not exist (not supported by the format).
9401 </result>
9402 <result name="E_INVALIDARG">@a name is @c null or empty.</result>
9403 </desc>
9404 <param name="name" type="wstring" dir="in">
9405 <desc>Name of the property to get.</desc>
9406 </param>
9407 <param name="value" type="wstring" dir="return">
9408 <desc>Current property value.</desc>
9409 </param>
9410 </method>
9411
9412 <method name="setProperty">
9413 <desc>
9414 Sets the value of the custom hard disk property with the given name.
9415
9416 The list of all properties supported by the given hard disk format can
9417 be obtained with <link to="IHardDiskFormat::describeProperties"/>.
9418
9419 Note that setting the property value to @c null is equivalent to
9420 deleting the existing value. A default value (if it is defined for this
9421 property) will be used by the format backend in this case.
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 set.</desc>
9430 </param>
9431 <param name="value" type="wstring" dir="in">
9432 <desc>Property value to set.</desc>
9433 </param>
9434 </method>
9435
9436 <method name="getProperties">
9437 <desc>
9438 Returns values for a group of properties in one call.
9439
9440 The names of the properties to get are specified using the @a names
9441 argument which is a list of comma-separated property names or
9442 @c null if all properties are to be returned. Note that currently
9443 the value of this argument is ignored and the method always returns all
9444 existing properties.
9445
9446 The list of all properties supported by the given hard disk format can
9447 be obtained with <link to="IHardDiskFormat::describeProperties"/>.
9448
9449 The method returns two arrays, the array of property names corresponding
9450 to the @a names argument and the current values of these properties.
9451 Both arrays have the same number of elements with each elemend at the
9452 given index in the first array corresponds to an element at the same
9453 index in the second array.
9454
9455 Note that for properties that do not have assigned values,
9456 @c null is returned at the appropriate index in the
9457 @a returnValues array.
9458
9459 </desc>
9460 <param name="names" type="wstring" dir="in">
9461 <desc>
9462 Names of properties to get.
9463 </desc>
9464 </param>
9465 <param name="returnNames" type="wstring" safearray="yes" dir="out">
9466 <desc>Names of returned properties.</desc>
9467 </param>
9468 <param name="returnValues" type="wstring" safearray="yes" dir="return">
9469 <desc>Values of returned properties.</desc>
9470 </param>
9471 </method>
9472
9473 <method name="setProperties">
9474 <desc>
9475 Sets values for a group of properties in one call.
9476
9477 The names of the properties to set are passed in the @a names
9478 array along with the new values for them in the @a values array. Both
9479 arrays have the same number of elements with each elemend at the given
9480 index in the first array corresponding to an element at the same index
9481 in the second array.
9482
9483 If there is at least one property name in @a names that is not valid,
9484 the method will fail before changing the values of any other properties
9485 from the @a names array.
9486
9487 Using this method over <link to="#setProperty"/> is preferred if you
9488 need to set several properties at once since it will result into less
9489 IPC calls.
9490
9491 The list of all properties supported by the given hard disk format can
9492 be obtained with <link to="IHardDiskFormat::describeProperties"/>.
9493
9494 Note that setting the property value to @c null is equivalent to
9495 deleting the existing value. A default value (if it is defined for this
9496 property) will be used by the format backend in this case.
9497 </desc>
9498 <param name="names" type="wstring" safearray="yes" dir="in">
9499 <desc>Names of properties to set.</desc>
9500 </param>
9501 <param name="values" type="wstring" safearray="yes" dir="in">
9502 <desc>Values of properties to set.</desc>
9503 </param>
9504 </method>
9505
9506 <!-- storage methods -->
9507
9508 <method name="createBaseStorage">
9509 <desc>
9510 Starts creating a hard disk storage unit (fixed/dynamic, according
9511 to the variant flags) in in the background. The previous storage unit
9512 created for this object, if any, must first be deleted using
9513 <link to="#deleteStorage"/>, otherwise the operation will fail.
9514
9515 Before the operation starts, the hard disk is placed in
9516 <link to="MediaState_Creating"/> state. If the create operation
9517 fails, the media will be placed back in <link to="MediaState_NotCreated"/>
9518 state.
9519
9520 After the returned progress object reports that the operation has
9521 successfully completed, the media state will be set to <link
9522 to="MediaState_Created"/>, the hard disk will be remembered by this
9523 VirtualBox installation and may be attached to virtual machines.
9524
9525 <result name="VBOX_E_NOT_SUPPORTED">
9526 The variant of storage creation operation is not supported. See <link
9527 to="IHardDiskFormat::capabilities"/>.
9528 </result>
9529 </desc>
9530 <param name="logicalSize" type="unsigned long long" dir="in">
9531 <desc>Maximum logical size of the hard disk in megabytes.</desc>
9532 </param>
9533 <param name="variant" type="HardDiskVariant" dir="in">
9534 <desc>Exact image variant which should be created.</desc>
9535 </param>
9536 <param name="progress" type="IProgress" dir="return">
9537 <desc>Progress object to track the operation completion.</desc>
9538 </param>
9539 </method>
9540
9541 <method name="deleteStorage">
9542 <desc>
9543 Starts deleting the storage unit of this hard disk.
9544
9545 The hard disk must not be attached to any known virtual machine and must
9546 not have any known child hard disks, otherwise the operation will fail.
9547 It will also fail if there is no storage unit to delete or if deletion
9548 is already in progress, or if the hard disk is being in use (locked for
9549 read or for write) or inaccessible. Therefore, the only valid state for
9550 this operation to succeed is <link to="MediaState_Created"/>.
9551
9552 Before the operation starts, the hard disk is placed to
9553 <link to="MediaState_Deleting"/> state and gets removed from the list
9554 of remembered hard disks (media registry). If the delete operation
9555 fails, the media will be remembered again and placed back to
9556 <link to="MediaState_Created"/> state.
9557
9558 After the returned progress object reports that the operation is
9559 complete, the media state will be set to
9560 <link to="MediaState_NotCreated"/> and you will be able to use one of
9561 the storage creation methods to create it again.
9562
9563 <see>#close()</see>
9564
9565 <result name="VBOX_E_OBJECT_IN_USE">
9566 Hard disk is attached to a virtual machine.
9567 </result>
9568 <result name="VBOX_E_NOT_SUPPORTED">
9569 Storage deletion is not allowed because neither of storage creation
9570 operations are supported. See
9571 <link to="IHardDiskFormat::capabilities"/>.
9572 </result>
9573
9574 <note>
9575 If the deletion operation fails, it is not guaranteed that the storage
9576 unit still exists. You may check the <link to="IMedium::state"/> value
9577 to answer this question.
9578 </note>
9579 </desc>
9580 <param name="progress" type="IProgress" dir="return">
9581 <desc>Progress object to track the operation completion.</desc>
9582 </param>
9583 </method>
9584
9585 <!-- diff methods -->
9586
9587 <method name="createDiffStorage">
9588 <desc>
9589 Starts creating an empty differencing storage unit based on this hard
9590 disk in the format and at the location defined by the @a target
9591 argument.
9592
9593 The target hard disk must be in <link to="MediaState_NotCreated"/>
9594 state (i.e. must not have an existing storage unit). Upon successful
9595 completion, this operation will set the type of the target hard disk to
9596 <link to="HardDiskType_Normal"/> and create a storage unit necessary to
9597 represent the differencing hard disk data in the given format (according
9598 to the storage format of the target object).
9599
9600 After the returned progress object reports that the operation is
9601 successfully complete, the target hard disk gets remembered by this
9602 VirtualBox installation and may be attached to virtual machines.
9603
9604 <note>
9605 The hard disk will be set to <link to="MediaState_LockedRead"/>
9606 state for the duration of this operation.
9607 </note>
9608 <result name="VBOX_E_OBJECT_IN_USE">
9609 Hard disk not in @c NotCreated state.
9610 </result>
9611 </desc>
9612 <param name="target" type="IHardDisk" dir="in">
9613 <desc>Target hard disk.</desc>
9614 </param>
9615 <param name="variant" type="HardDiskVariant" dir="in">
9616 <desc>Exact image variant which should be created.</desc>
9617 </param>
9618 <param name="progress" type="IProgress" dir="return">
9619 <desc>Progress object to track the operation completion.</desc>
9620 </param>
9621 </method>
9622
9623 <method name="mergeTo">
9624 <desc>
9625 Starts merging the contents of this hard disk and all intermediate
9626 differencing hard disks in the chain to the given target hard disk.
9627
9628 The target hard disk must be either a descendant of this hard disk or
9629 its ancestor (otherwise this method will immediately return a failure).
9630 It follows that there are two logical directions of the merge operation:
9631 from ancestor to descendant (<i>forward merge</i>) and from descendant to
9632 ancestor (<i>backward merge</i>). Let us consider the following hard disk
9633 chain:
9634
9635 <pre>Base &lt;- Diff_1 &lt;- Diff_2</pre>
9636
9637 Here, calling this method on the <tt>Base</tt> hard disk object with
9638 <tt>Diff_2</tt> as an argument will be a forward merge; calling it on
9639 <tt>Diff_2</tt> with <tt>Base</tt> as an argument will be a backward
9640 merge. Note that in both cases the contents of the resulting hard disk
9641 will be the same, the only difference is the hard disk object that takes
9642 the result of the merge operation. In case of the forward merge in the
9643 above example, the result will be written to <tt>Diff_2</tt>; in case of
9644 the backward merge, the result will be written to <tt>Base</tt>. In
9645 other words, the result of the operation is always stored in the target
9646 hard disk.
9647
9648 Upon successful operation completion, the storage units of all hard
9649 disks in the chain between this (source) hard disk and the target hard
9650 disk, including the source hard disk itself, will be automatically
9651 deleted and the relevant hard disk objects (including this hard disk)
9652 will become uninitialized. This means that any attempt to call any of
9653 their methods or attributes will fail with the
9654 <tt>"Object not ready" (E_ACCESSDENIED)</tt> error. Applied to the above
9655 example, the forward merge of <tt>Base</tt> to <tt>Diff_2</tt> will
9656 delete and uninitialize both <tt>Base</tt> and <tt>Diff_1</tt> hard
9657 disks. Note that <tt>Diff_2</tt> in this case will become a base hard
9658 disk itself since it will no longer be based on any other hard disk.
9659
9660 Considering the above, all of the following conditions must be met in
9661 order for the merge operation to succeed:
9662 <ul>
9663 <li>
9664 Neither this (source) hard disk nor any intermediate
9665 differencing hard disk in the chain between it and the target
9666 hard disk is attached to any virtual machine.
9667 </li>
9668 <li>
9669 Neither the source hard disk nor the target hard disk is an
9670 <link to="HardDiskType_Immutable"/> hard disk.
9671 </li>
9672 <li>
9673 The part of the hard disk tree from the source hard disk to the
9674 target hard disk is a linear chain, i.e. all hard disks in this
9675 chain have exactly one child which is the next hard disk in this
9676 chain. The only exception from this rule is the target hard disk in
9677 the forward merge operation; it is allowed to have any number of
9678 child hard disks because the merge operation will hot change its
9679 logical contents (as it is seen by the guest OS or by children).
9680 </li>
9681 <li>
9682 None of the involved hard disks are in
9683 <link to="MediaState_LockedRead"/> or
9684 <link to="MediaState_LockedWrite"/> state.
9685 </li>
9686 </ul>
9687
9688 <note>
9689 This (source) hard disk and all intermediates will be placed to <link
9690 to="MediaState_Deleting"/> state and the target hard disk will be
9691 placed to <link to="MediaState_LockedWrite"/> state and for the
9692 duration of this operation.
9693 </note>
9694 </desc>
9695 <param name="targetId" type="wstring" dir="in">
9696 <desc>UUID of the target ancestor or descendant hard disk.</desc>
9697 </param>
9698 <param name="progress" type="IProgress" dir="return">
9699 <desc>Progress object to track the operation completion.</desc>
9700 </param>
9701 </method>
9702
9703 <!-- clone method -->
9704
9705 <method name="cloneTo">
9706 <desc>
9707 Starts creating a clone of this hard disk in the format and at the
9708 location defined by the @a target argument.
9709
9710 The target hard disk must be either in <link to="MediaState_NotCreated"/>
9711 state (i.e. must not have an existing storage unit) or in
9712 <link to="MediaState_Created"/> state (i.e. created and not locked, and
9713 big enough to hold the data or else the copy will be partial). Upon
9714 successful completion, the cloned hard disk will contain exactly the
9715 same sector data as the hard disk being cloned, except that in the
9716 first case a new UUID for the clone will be randomly generated, and in
9717 the second case the UUID will remain unchanged.
9718
9719 The @a parent argument defines which hard disk will be the parent
9720 of the clone. Passing a @c null reference indicates that the clone will
9721 be a base image, i.e. completely independent. It is possible to specify
9722 an arbitrary hard disk for this parameter, including the parent of the
9723 hard disk which is being cloned. Even cloning to a child of the source
9724 hard disk is possible.
9725
9726 After the returned progress object reports that the operation is
9727 successfully complete, the target hard disk gets remembered by this
9728 VirtualBox installation and may be attached to virtual machines.
9729
9730 <note>
9731 This hard disk will be placed to <link to="MediaState_LockedRead"/>
9732 state for the duration of this operation.
9733 </note>
9734 <result name="E_NOTIMPL">
9735 The specified cloning variant is not supported at the moment.
9736 </result>
9737 </desc>
9738 <param name="target" type="IHardDisk" dir="in">
9739 <desc>Target hard disk.</desc>
9740 </param>
9741 <param name="variant" type="HardDiskVariant" dir="in">
9742 <desc>Exact image variant which should be created.</desc>
9743 </param>
9744 <param name="parent" type="IHardDisk" dir="in">
9745 <desc>Parent of the cloned hard disk.</desc>
9746 </param>
9747 <param name="progress" type="IProgress" dir="return">
9748 <desc>Progress object to track the operation completion.</desc>
9749 </param>
9750 </method>
9751
9752 <!-- other methods -->
9753
9754 <method name="compact">
9755 <desc>
9756 Starts compacting of this hard disk. This means that the disk is
9757 transformed into a possibly more compact storage representation.
9758 This potentially creates temporary images, which can require a
9759 substantial amount of additional disk space.
9760
9761 This hard disk will be placed to <link to="MediaState_LockedWrite"/>
9762 state and all its parent hard disks (if any) will be placed to
9763 <link to="MediaState_LockedRead"/> state for the duration of this
9764 operation.
9765
9766 Please note that the results can be either returned straight away,
9767 or later as the result of the background operation via the object
9768 returned via the @a progress parameter.
9769
9770 <result name="VBOX_E_NOT_SUPPORTED">
9771 Hard disk format does not support compacting (but potentially
9772 needs it).
9773 </result>
9774 </desc>
9775 <param name="progress" type="IProgress" dir="return">
9776 <desc>Progress object to track the operation completion.</desc>
9777 </param>
9778 </method>
9779
9780 <method name="reset">
9781 <desc>
9782 Starts erasing the contents of this differencing hard disk.
9783
9784 This operation will reset the differencing hard disk to its initial
9785 state when it does not contain any sector data and any read operation is
9786 redirected to its parent hard disk.
9787
9788 This hard disk will be placed to <link to="MediaState_LockedWrite"/>
9789 for the duration of this operation.
9790
9791 <result name="VBOX_E_NOT_SUPPORTED">
9792 This is not a differencing hard disk.
9793 </result>
9794 <result name="VBOX_E_INVALID_OBJECT_STATE">
9795 Hard disk is not in <link to="MediaState_Created"/> or
9796 <link to="MediaState_Inaccessible"/> state.
9797 </result>
9798 </desc>
9799 <param name="progress" type="IProgress" dir="return">
9800 <desc>Progress object to track the operation completion.</desc>
9801 </param>
9802 </method>
9803
9804 </interface>
9805
9806
9807 <!--
9808 // IHardDiskFormat
9809 /////////////////////////////////////////////////////////////////////////
9810 -->
9811
9812 <enum
9813 name="DataType"
9814 uuid="d90ea51e-a3f1-4a01-beb1-c1723c0d3ba7"
9815 >
9816 <const name="Int32" value="0"/>
9817 <const name="Int8" value="1"/>
9818 <const name="String" value="2"/>
9819 </enum>
9820
9821 <enum
9822 name="DataFlags"
9823 uuid="86884dcf-1d6b-4f1b-b4bf-f5aa44959d60"
9824 >
9825 <const name="None" value="0x00"/>
9826 <const name="Mandatory" value="0x01"/>
9827 <const name="Expert" value="0x02"/>
9828 <const name="Array" value="0x04"/>
9829 <const name="FlagMask" value="0x07"/>
9830 </enum>
9831
9832 <enum
9833 name="HardDiskFormatCapabilities"
9834 uuid="1df1e4aa-d25a-4ba6-b2a2-02f60eb5903b"
9835 >
9836 <desc>
9837 Hard disk format capability flags.
9838 </desc>
9839
9840 <const name="Uuid" value="0x01">
9841 <desc>
9842 Supports UUIDs as expected by VirtualBox code.
9843 </desc>
9844 </const>
9845
9846 <const name="CreateFixed" value="0x02">
9847 <desc>
9848 Supports creating fixed size images, allocating all space instantly.
9849 </desc>
9850 </const>
9851
9852 <const name="CreateDynamic" value="0x04">
9853 <desc>
9854 Supports creating dynamically growing images, allocating space on
9855 demand.
9856 </desc>
9857 </const>
9858
9859 <const name="CreateSplit2G" value="0x08">
9860 <desc>
9861 Supports creating images split in chunks of a bit less than 2 GBytes.
9862 </desc>
9863 </const>
9864
9865 <const name="Differencing" value="0x10">
9866 <desc>
9867 Supports being used as a format for differencing hard disks (see <link
9868 to="IHardDisk::createDiffStorage"/>).
9869 </desc>
9870 </const>
9871
9872 <const name="Asynchronous" value="0x20">
9873 <desc>
9874 Supports asynchronous I/O operations for at least some configurations.
9875 </desc>
9876 </const>
9877
9878 <const name="File" value="0x40">
9879 <desc>
9880 The format backend operates on files (the <link to="IMedium::location"/>
9881 attribute of the hard disk specifies a file used to store hard disk
9882 data; for a list of supported file extensions see
9883 <link to="IHardDiskFormat::fileExtensions"/>).
9884 </desc>
9885 </const>
9886
9887 <const name="Properties" value="0x80">
9888 <desc>
9889 The format backend uses the property interface to configure the storage
9890 location and properties (the <link to="IHardDiskFormat::describeProperties"/>
9891 method is used to get access to properties supported by the given hard
9892 disk format).
9893 </desc>
9894 </const>
9895
9896 <const name="CapabilityMask" value="0xFF"/>
9897 </enum>
9898
9899 <interface
9900 name="IHardDiskFormat" extends="$unknown"
9901 uuid="7f3ba790-3a0b-4a8a-bac2-bb50150123c5"
9902 wsmap="managed"
9903 >
9904 <desc>
9905 The IHardDiskFormat interface represents a virtual hard disk format.
9906
9907 Each hard disk format has an associated backend which is used to handle
9908 hard disks stored in this format. This interface provides information
9909 about the properties of the associated backend.
9910
9911 Each hard disk format is identified by a string represented by the
9912 <link to="#id"/> attribute. This string is used in calls like
9913 <link to="IVirtualBox::createHardDisk"/> to specify the desired
9914 format.
9915
9916 The list of all supported hard disk formats can be obtained using
9917 <link to="ISystemProperties::hardDiskFormats"/>.
9918
9919 <see>IHardDisk</see>
9920 </desc>
9921
9922 <attribute name="id" type="wstring" readonly="yes">
9923 <desc>
9924 Identifier of this format.
9925
9926 The format identifier is a non-@c null non-empty ASCII string. Note that
9927 this string is case-insensitive. This means that, for example, all of
9928 the following strings:
9929 <pre>
9930 "VDI"
9931 "vdi"
9932 "VdI"</pre>
9933 refer to the same hard disk format.
9934
9935 This string is used in methods of other interfaces where it is necessary
9936 to specify a hard disk format, such as
9937 <link to="IVirtualBox::createHardDisk"/>.
9938 </desc>
9939 </attribute>
9940
9941 <attribute name="name" type="wstring" readonly="yes">
9942 <desc>
9943 Human readable description of this format.
9944
9945 Mainly for use in file open dialogs.
9946 </desc>
9947 </attribute>
9948
9949 <attribute name="fileExtensions" type="wstring" safearray="yes" readonly="yes">
9950 <desc>
9951 Array of strings containing the supported file extensions.
9952
9953 The first extension in the array is the extension preferred by the
9954 backend. It is recommended to use this extension when specifying a
9955 location of the storage unit for a new hard disk.
9956
9957 Note that some backends do not work on files, so this array may be
9958 empty.
9959
9960 <see>IHardDiskFormat::capabilities</see>
9961 </desc>
9962 </attribute>
9963
9964 <attribute name="capabilities" type="unsigned long" readonly="yes">
9965 <desc>
9966 Capabilities of the format as a set of bit flags.
9967
9968 For the meaning of individual capability flags see
9969 <link to="HardDiskFormatCapabilities"/>.
9970 </desc>
9971 </attribute>
9972
9973 <method name="describeProperties">
9974 <desc>
9975 Returns several arrays describing the properties supported by this
9976 format.
9977
9978 An element with the given index in each array describes one
9979 property. Thus, the number of elements in each returned array is the
9980 same and corresponds to the number of supported properties.
9981
9982 The returned arrays are filled in only if the
9983 <link to="HardDiskFormatCapabilities_Properties"/> flag is set.
9984 All arguments must be non-@c null.
9985
9986 <see>DataType</see>
9987 <see>DataFlags</see>
9988 </desc>
9989
9990 <param name="names" type="wstring" safearray="yes" dir="out">
9991 <desc>Array of property names.</desc>
9992 </param>
9993 <param name="description" type="wstring" safearray="yes" dir="out">
9994 <desc>Array of property descriptions.</desc>
9995 </param>
9996 <param name="types" type="DataType" safearray="yes" dir="out">
9997 <desc>Array of property types.</desc>
9998 </param>
9999 <param name="flags" type="unsigned long" safearray="yes" dir="out">
10000 <desc>Array of property flags.</desc>
10001 </param>
10002 <param name="defaults" type="wstring" safearray="yes" dir="out">
10003 <desc>Array of default property values.</desc>
10004 </param>
10005 </method>
10006
10007 </interface>
10008
10009
10010 <!--
10011 // IFloppyImage
10012 /////////////////////////////////////////////////////////////////////////
10013 -->
10014
10015 <interface
10016 name="IFloppyImage" extends="IMedium"
10017 uuid="faa6101f-078c-4b3a-ab75-75670c8170b3"
10018 wsmap="managed"
10019 >
10020 <desc>
10021 The IFloppyImage interface represents a medium containing the image
10022 of a floppy disk. This is a subclass of <link to="IMedium" />; see remarks there.
10023 </desc>
10024
10025 </interface>
10026
10027
10028 <!--
10029 // IDVDImage
10030 /////////////////////////////////////////////////////////////////////////
10031 -->
10032
10033 <interface
10034 name="IDVDImage" extends="IMedium"
10035 uuid="b1f90bbb-e8a9-4484-9af1-3638e943f763"
10036 wsmap="managed"
10037 >
10038 <desc>
10039 The IDVDImage interface represents a medium containing the image
10040 of a CD or DVD disk in the ISO format.
10041
10042 This is a subclass of <link to="IMedium" />; see remarks there.
10043 </desc>
10044
10045 </interface>
10046
10047
10048 <!--
10049 // IDVDDrive
10050 /////////////////////////////////////////////////////////////////////////
10051 -->
10052
10053 <interface
10054 name="IDVDDrive" extends="$unknown"
10055 uuid="156944d1-4c6d-4812-8f12-ab3890767ab4"
10056 wsmap="managed"
10057 >
10058 <desc>
10059 The IDVDDrive interface represents the virtual CD/DVD drive of the
10060 virtual machine. An object of this type is returned by
10061 <link to="IMachine::DVDDrive"/>.
10062 </desc>
10063
10064 <attribute name="state" type="DriveState" readonly="yes">
10065 <desc>Current drive state.</desc>
10066 </attribute>
10067
10068 <attribute name="passthrough" type="boolean">
10069 <desc>
10070 When a host drive is mounted and passthrough is enabled
10071 the guest OS will be able to directly send SCSI commands to
10072 the host drive. This enables the guest OS to use CD/DVD writers
10073 but is potentially dangerous.
10074 </desc>
10075 </attribute>
10076
10077 <method name="mountImage">
10078 <desc>Mounts a CD/DVD image with the specified UUID.
10079
10080 <result name="VBOX_E_FILE_ERROR">
10081 Invalid image file location.
10082 </result>
10083 <result name="VBOX_E_OBJECT_NOT_FOUND">
10084 Could not find a CD/DVD image matching @a imageId.
10085 </result>
10086 <result name="VBOX_E_INVALID_OBJECT_STATE">
10087 Invalid media state.
10088 </result>
10089
10090 </desc>
10091 <param name="imageId" type="wstring" dir="in"/>
10092 </method>
10093
10094 <method name="captureHostDrive">
10095 <desc>Captures the specified host CD/DVD drive.</desc>
10096 <param name="drive" type="IHostDVDDrive" dir="in"/>
10097 </method>
10098
10099 <method name="unmount">
10100 <desc>Unmounts the currently mounted image or host drive.</desc>
10101 </method>
10102
10103 <method name="getImage">
10104 <desc>Returns the currently mounted CD/DVD image.</desc>
10105 <param name="image" type="IDVDImage" dir="return"/>
10106 </method>
10107
10108 <method name="getHostDrive">
10109 <desc>Returns the currently mounted host CD/DVD drive.</desc>
10110 <param name="drive" type="IHostDVDDrive" dir="return"/>
10111 </method>
10112
10113 </interface>
10114
10115
10116 <!--
10117 // IFloppyDrive
10118 /////////////////////////////////////////////////////////////////////////
10119 -->
10120
10121 <interface
10122 name="IFloppyDrive" extends="$unknown"
10123 uuid="a8676d38-5cf0-4b53-85b1-aa693611ab86"
10124 wsmap="managed"
10125 >
10126 <desc>
10127 The IFloppyDrive interface represents the virtual floppy drive of the
10128 virtual machine. An object of this type is returned by
10129 <link to="IMachine::floppyDrive" />.
10130 </desc>
10131
10132 <attribute name="enabled" type="boolean">
10133 <desc>
10134 Flag whether the floppy drive is enabled. If it is disabled,
10135 the floppy drive will not be reported to the guest OS.
10136 </desc>
10137 </attribute>
10138
10139 <attribute name="state" type="DriveState" readonly="yes">
10140 <desc>Current drive state.</desc>
10141 </attribute>
10142
10143 <method name="mountImage">
10144 <desc>Mounts a floppy image with the specified UUID.
10145
10146 <result name="VBOX_E_FILE_ERROR">
10147 Invalid image file location.
10148 </result>
10149 <result name="VBOX_E_OBJECT_NOT_FOUND">
10150 Could not find a floppy image matching @a imageID.
10151 </result>
10152 <result name="VBOX_E_INVALID_OBJECT_STATE">
10153 Invalid media state.
10154 </result>
10155
10156 </desc>
10157 <param name="imageId" type="wstring" dir="in"/>
10158 </method>
10159
10160 <method name="captureHostDrive">
10161 <desc>Captures the specified host floppy drive.</desc>
10162 <param name="drive" type="IHostFloppyDrive" dir="in"/>
10163 </method>
10164
10165 <method name="unmount">
10166 <desc>Unmounts the currently mounted image or host drive.</desc>
10167 </method>
10168
10169 <method name="getImage">
10170 <desc>Returns the currently mounted floppy image.</desc>
10171 <param name="image" type="IFloppyImage" dir="return"/>
10172 </method>
10173
10174 <method name="getHostDrive">
10175 <desc>Returns the currently mounted host floppy drive.</desc>
10176 <param name="drive" type="IHostFloppyDrive" dir="return"/>
10177 </method>
10178
10179 </interface>
10180
10181
10182 <!--
10183 // IKeyboard
10184 /////////////////////////////////////////////////////////////////////////
10185 -->
10186
10187 <interface
10188 name="IKeyboard" extends="$unknown"
10189 uuid="2d1a531b-4c6e-49cc-8af6-5c857b78b5d7"
10190 wsmap="managed"
10191 >
10192 <desc>
10193 The IKeyboard interface represents the virtual machine's keyboard. Used
10194 in <link to="IConsole::keyboard"/>.
10195
10196 Use this interface to send keystrokes or the Ctrl-Alt-Del sequence
10197 to the virtual machine.
10198
10199 </desc>
10200 <method name="putScancode">
10201 <desc>Sends a scancode to the keyboard.
10202
10203 <result name="VBOX_E_IPRT_ERROR">
10204 Could not send scan code to virtual keyboard.
10205 </result>
10206
10207 </desc>
10208 <param name="scancode" type="long" dir="in"/>
10209 </method>
10210
10211 <method name="putScancodes">
10212 <desc>Sends an array of scancodes to the keyboard.
10213
10214 <result name="VBOX_E_IPRT_ERROR">
10215 Could not send all scan codes to virtual keyboard.
10216 </result>
10217
10218 </desc>
10219 <param name="scancodes" type="long" dir="in" safearray="yes"/>
10220 <param name="codesStored" type="unsigned long" dir="return"/>
10221 </method>
10222
10223 <method name="putCAD">
10224 <desc>Sends the Ctrl-Alt-Del sequence to the keyboard. This
10225 function is nothing special, it is just a convenience function
10226 calling <link to="IKeyboard::putScancodes"/> with the proper scancodes.
10227
10228 <result name="VBOX_E_IPRT_ERROR">
10229 Could not send all scan codes to virtual keyboard.
10230 </result>
10231
10232 </desc>
10233 </method>
10234
10235 </interface>
10236
10237
10238 <!--
10239 // IMouse
10240 /////////////////////////////////////////////////////////////////////////
10241 -->
10242
10243 <enum
10244 name="MouseButtonState"
10245 uuid="03131722-2EC5-4173-9794-0DACA46673EF"
10246 >
10247 <desc>
10248 Mouse button state.
10249 </desc>
10250
10251 <const name="LeftButton" value="0x01"/>
10252 <const name="RightButton" value="0x02"/>
10253 <const name="MiddleButton" value="0x04"/>
10254 <const name="WheelUp" value="0x08"/>
10255 <const name="WheelDown" value="0x10"/>
10256 <const name="MouseStateMask" value="0x1F"/>
10257 </enum>
10258
10259 <interface
10260 name="IMouse" extends="$unknown"
10261 uuid="FD443EC1-0006-4F5B-9282-D72760A66916"
10262 wsmap="managed"
10263 >
10264 <desc>
10265 The IMouse interface represents the virtual machine's mouse. Used in
10266 <link to="IConsole::mouse"/>.
10267
10268 Through this interface, the virtual machine's virtual mouse can be
10269 controlled.
10270 </desc>
10271
10272 <attribute name="absoluteSupported" type="boolean" readonly="yes">
10273 <desc>
10274 Whether the guest OS supports absolute mouse pointer positioning
10275 or not.
10276 <note>
10277 VirtualBox Guest Tools need to be installed to the guest OS
10278 in order to enable absolute mouse positioning support.
10279 You can use the <link to="IConsoleCallback::onMouseCapabilityChange"/>
10280 callback to be instantly informed about changes of this attribute
10281 during virtual machine execution.
10282 </note>
10283 <see><link to="#putMouseEventAbsolute"/></see>
10284 </desc>
10285 </attribute>
10286
10287 <method name="putMouseEvent">
10288 <desc>
10289 Initiates a mouse event using relative pointer movements
10290 along x and y axis.
10291
10292 <result name="E_ACCESSDENIED">
10293 Console not powered up.
10294 </result>
10295 <result name="VBOX_E_IPRT_ERROR">
10296 Could not send mouse event to virtual mouse.
10297 </result>
10298
10299 </desc>
10300
10301 <param name="dx" type="long" dir="in">
10302 <desc>
10303 Amount of pixels the mouse should move to the right.
10304 Negative values move the mouse to the left.
10305 </desc>
10306 </param>
10307 <param name="dy" type="long" dir="in">
10308 <desc>
10309 Amount of pixels the mouse should move downwards.
10310 Negative values move the mouse upwards.
10311 </desc>
10312 </param>
10313 <param name="dz" type="long" dir="in">
10314 <desc>
10315 Amount of mouse wheel moves.
10316 Positive values describe clockwise wheel rotations,
10317 negative values describe counterclockwise rotations.
10318 </desc>
10319 </param>
10320 <param name="buttonState" type="long" dir="in">
10321 <desc>
10322 The current state of mouse buttons. Every bit represents
10323 a mouse button as follows:
10324 <table>
10325 <tr><td>Bit 0 (<tt>0x01</tt>)</td><td>left mouse button</td></tr>
10326 <tr><td>Bit 1 (<tt>0x02</tt>)</td><td>right mouse button</td></tr>
10327 <tr><td>Bit 2 (<tt>0x04</tt>)</td><td>middle mouse button</td></tr>
10328 </table>
10329 A value of <tt>1</tt> means the corresponding button is pressed.
10330 otherwise it is released.
10331 </desc>
10332 </param>
10333 </method>
10334
10335 <method name="putMouseEventAbsolute">
10336 <desc>
10337 Positions the mouse pointer using absolute x and y coordinates.
10338 These coordinates are expressed in pixels and
10339 start from <tt>[1,1]</tt> which corresponds to the top left
10340 corner of the virtual display.
10341
10342 <result name="E_ACCESSDENIED">
10343 Console not powered up.
10344 </result>
10345 <result name="VBOX_E_IPRT_ERROR">
10346 Could not send mouse event to virtual mouse.
10347 </result>
10348
10349 <note>
10350 This method will have effect only if absolute mouse
10351 positioning is supported by the guest OS.
10352 </note>
10353
10354 <see><link to="#absoluteSupported"/></see>
10355 </desc>
10356
10357 <param name="x" type="long" dir="in">
10358 <desc>
10359 X coordinate of the pointer in pixels, starting from @c 1.
10360 </desc>
10361 </param>
10362 <param name="y" type="long" dir="in">
10363 <desc>
10364 Y coordinate of the pointer in pixels, starting from @c 1.
10365 </desc>
10366 </param>
10367 <param name="dz" type="long" dir="in">
10368 <desc>
10369 Amount of mouse wheel moves.
10370 Positive values describe clockwise wheel rotations,
10371 negative values describe counterclockwise rotations.
10372 </desc>
10373 </param>
10374 <param name="buttonState" type="long" dir="in">
10375 <desc>
10376 The current state of mouse buttons. Every bit represents
10377 a mouse button as follows:
10378 <table>
10379 <tr><td>Bit 0 (<tt>0x01</tt>)</td><td>left mouse button</td></tr>
10380 <tr><td>Bit 1 (<tt>0x02</tt>)</td><td>right mouse button</td></tr>
10381 <tr><td>Bit 2 (<tt>0x04</tt>)</td><td>middle mouse button</td></tr>
10382 </table>
10383 A value of @c 1 means the corresponding button is pressed.
10384 otherwise it is released.
10385 </desc>
10386 </param>
10387 </method>
10388
10389 </interface>
10390
10391 <!--
10392 // IDisplay
10393 /////////////////////////////////////////////////////////////////////////
10394 -->
10395
10396 <enum
10397 name="FramebufferPixelFormat"
10398 uuid="7acfd5ed-29e3-45e3-8136-73c9224f3d2d"
10399 >
10400 <desc>
10401 Format of the video memory buffer. Constants represented by this enum can
10402 be used to test for particular values of <link
10403 to="IFramebuffer::pixelFormat"/>. See also <link
10404 to="IFramebuffer::requestResize"/>.
10405
10406 See also www.fourcc.org for more information about FOURCC pixel formats.
10407 </desc>
10408
10409 <const name="Opaque" value="0">
10410 <desc>
10411 Unknown buffer format (the user may not assume any particular format of
10412 the buffer).
10413 </desc>
10414 </const>
10415 <const name="FOURCC_RGB" value="0x32424752">
10416 <desc>
10417 Basic RGB format (<link to="IFramebuffer::bitsPerPixel"/> determines the
10418 bit layout).
10419 </desc>
10420 </const>
10421 </enum>
10422
10423 <interface
10424 name="IFramebuffer" extends="$unknown"
10425 uuid="b7ed347a-5765-40a0-ae1c-f543eb4ddeaf"
10426 wsmap="suppress"
10427 >
10428 <attribute name="address" type="octet" mod="ptr" readonly="yes">
10429 <desc>Address of the start byte of the frame buffer.</desc>
10430 </attribute>
10431
10432 <attribute name="width" type="unsigned long" readonly="yes">
10433 <desc>Frame buffer width, in pixels.</desc>
10434 </attribute>
10435
10436 <attribute name="height" type="unsigned long" readonly="yes">
10437 <desc>Frame buffer height, in pixels.</desc>
10438 </attribute>
10439
10440 <attribute name="bitsPerPixel" type="unsigned long" readonly="yes">
10441 <desc>
10442 Color depth, in bits per pixel. When <link to="#pixelFormat"/> is <link
10443 to="FramebufferPixelFormat_FOURCC_RGB">FOURCC_RGB</link>, valid values
10444 are: 8, 15, 16, 24 and 32.
10445 </desc>
10446 </attribute>
10447
10448 <attribute name="bytesPerLine" type="unsigned long" readonly="yes">
10449 <desc>
10450 Scan line size, in bytes. When <link to="#pixelFormat"/> is <link
10451 to="FramebufferPixelFormat_FOURCC_RGB">FOURCC_RGB</link>, the
10452 size of the scan line must be aligned to 32 bits.
10453 </desc>
10454 </attribute>
10455
10456 <attribute name="pixelFormat" type="unsigned long" readonly="yes">
10457 <desc>
10458 Frame buffer pixel format. It's either one of the values defined by <link
10459 to="FramebufferPixelFormat"/> or a raw FOURCC code.
10460 <note>
10461 This attribute must never return <link
10462 to="FramebufferPixelFormat_Opaque"/> -- the format of the buffer
10463 <link to="#address"/> points to must be always known.
10464 </note>
10465 </desc>
10466 </attribute>
10467
10468 <attribute name="usesGuestVRAM" type="boolean" readonly="yes">
10469 <desc>
10470 Defines whether this frame buffer uses the virtual video card's memory
10471 buffer (guest VRAM) directly or not. See <link
10472 to="IFramebuffer::requestResize"/> for more information.
10473 </desc>
10474 </attribute>
10475
10476 <attribute name="heightReduction" type="unsigned long" readonly="yes">
10477 <desc>
10478 Hint from the frame buffer about how much of the standard
10479 screen height it wants to use for itself. This information is
10480 exposed to the guest through the VESA BIOS and VMMDev interface
10481 so that it can use it for determining its video mode table. It
10482 is not guaranteed that the guest respects the value.
10483 </desc>
10484 </attribute>
10485
10486 <attribute name="overlay" type="IFramebufferOverlay" readonly="yes">
10487 <desc>
10488 An alpha-blended overlay which is superposed over the frame buffer.
10489 The initial purpose is to allow the display of icons providing
10490 information about the VM state, including disk activity, in front
10491 ends which do not have other means of doing that. The overlay is
10492 designed to controlled exclusively by IDisplay. It has no locking
10493 of its own, and any changes made to it are not guaranteed to be
10494 visible until the affected portion of IFramebuffer is updated. The
10495 overlay can be created lazily the first time it is requested. This
10496 attribute can also return @c null to signal that the overlay is not
10497 implemented.
10498 </desc>
10499 </attribute>
10500
10501 <attribute name="winId" type="unsigned long long" readonly="yes">
10502 <desc>
10503 Platform-dependent identifier of the window where context of this
10504 frame buffer is drawn, or zero if there's no such window.
10505 </desc>
10506 </attribute>
10507
10508 <method name="lock">
10509 <desc>
10510 Locks the frame buffer.
10511 Gets called by the IDisplay object where this frame buffer is
10512 bound to.
10513 </desc>
10514 </method>
10515
10516 <method name="unlock">
10517 <desc>
10518 Unlocks the frame buffer.
10519 Gets called by the IDisplay object where this frame buffer is
10520 bound to.
10521 </desc>
10522 </method>
10523
10524 <method name="notifyUpdate">
10525 <desc>
10526 Informs about an update.
10527 Gets called by the display object where this buffer is
10528 registered.
10529 </desc>
10530 <param name="x" type="unsigned long" dir="in"/>
10531 <param name="y" type="unsigned long" dir="in"/>
10532 <param name="width" type="unsigned long" dir="in"/>
10533 <param name="height" type="unsigned long" dir="in"/>
10534 </method>
10535
10536 <method name="requestResize">
10537 <desc>
10538 Requests a size and pixel format change.
10539
10540 There are two modes of working with the video buffer of the virtual
10541 machine. The <i>indirect</i> mode implies that the IFramebuffer
10542 implementation allocates a memory buffer for the requested display mode
10543 and provides it to the virtual machine. In <i>direct</i> mode, the
10544 IFramebuffer implementation uses the memory buffer allocated and owned
10545 by the virtual machine. This buffer represents the video memory of the
10546 emulated video adapter (so called <i>guest VRAM</i>). The direct mode is
10547 usually faster because the implementation gets a raw pointer to the
10548 guest VRAM buffer which it can directly use for visualizing the contents
10549 of the virtual display, as opposed to the indirect mode where the
10550 contents of guest VRAM are copied to the memory buffer provided by
10551 the implementation every time a display update occurs.
10552
10553 It is important to note that the direct mode is really fast only when
10554 the implementation uses the given guest VRAM buffer directly, for
10555 example, by blitting it to the window representing the virtual machine's
10556 display, which saves at least one copy operation comparing to the
10557 indirect mode. However, using the guest VRAM buffer directly is not
10558 always possible: the format and the color depth of this buffer may be
10559 not supported by the target window, or it may be unknown (opaque) as in
10560 case of text or non-linear multi-plane VGA video modes. In this case,
10561 the indirect mode (that is always available) should be used as a
10562 fallback: when the guest VRAM contents are copied to the
10563 implementation-provided memory buffer, color and format conversion is
10564 done automatically by the underlying code.
10565
10566 The @a pixelFormat parameter defines whether the direct mode is
10567 available or not. If @a pixelFormat is <link
10568 to="FramebufferPixelFormat_Opaque"/> then direct access to the guest
10569 VRAM buffer is not available -- the @a VRAM, @a bitsPerPixel and
10570 @a bytesPerLine parameters must be ignored and the implementation must use
10571 the indirect mode (where it provides its own buffer in one of the
10572 supported formats). In all other cases, @a pixelFormat together with
10573 @a bitsPerPixel and @a bytesPerLine define the format of the video memory
10574 buffer pointed to by the @a VRAM parameter and the implementation is
10575 free to choose which mode to use. To indicate that this frame buffer uses
10576 the direct mode, the implementation of the <link to="#usesGuestVRAM"/>
10577 attribute must return @c true and <link to="#address"/> must
10578 return exactly the same address that is passed in the @a VRAM parameter
10579 of this method; otherwise it is assumed that the indirect strategy is
10580 chosen.
10581
10582 The @a width and @a height parameters represent the size of the
10583 requested display mode in both modes. In case of indirect mode, the
10584 provided memory buffer should be big enough to store data of the given
10585 display mode. In case of direct mode, it is guaranteed that the given
10586 @a VRAM buffer contains enough space to represent the display mode of the
10587 given size. Note that this frame buffer's <link to="#width"/> and <link
10588 to="#height"/> attributes must return exactly the same values as
10589 passed to this method after the resize is completed (see below).
10590
10591 The @a finished output parameter determines if the implementation has
10592 finished resizing the frame buffer or not. If, for some reason, the
10593 resize cannot be finished immediately during this call, @a finished
10594 must be set to @c false, and the implementation must call
10595 <link to="IDisplay::resizeCompleted"/> after it has returned from
10596 this method as soon as possible. If @a finished is @c false, the
10597 machine will not call any frame buffer methods until
10598 <link to="IDisplay::resizeCompleted"/> is called.
10599
10600 Note that if the direct mode is chosen, the <link to="#bitsPerPixel"/>,
10601 <link to="#bytesPerLine"/> and <link to="#pixelFormat"/> attributes of
10602 this frame buffer must return exactly the same values as specified in the
10603 parameters of this method, after the resize is completed. If the
10604 indirect mode is chosen, these attributes must return values describing
10605 the format of the implementation's own memory buffer <link
10606 to="#address"/> points to. Note also that the <link to="#bitsPerPixel"/>
10607 value must always correlate with <link to="#pixelFormat"/>. Note that
10608 the <link to="#pixelFormat"/> attribute must never return <link
10609 to="FramebufferPixelFormat_Opaque"/> regardless of the selected mode.
10610
10611 <note>
10612 This method is called by the IDisplay object under the
10613 <link to="#lock"/> provided by this IFramebuffer
10614 implementation. If this method returns @c false in @a finished, then
10615 this lock is not released until
10616 <link to="IDisplay::resizeCompleted"/> is called.
10617 </note>
10618 </desc>
10619 <param name="screenId" type="unsigned long" dir="in">
10620 <desc>
10621 Logical screen number. Must be used in the corresponding call to
10622 <link to="IDisplay::resizeCompleted"/> if this call is made.
10623 </desc>
10624 </param>
10625 <param name="pixelFormat" type="unsigned long" dir="in">
10626 <desc>
10627 Pixel format of the memory buffer pointed to by @a VRAM.
10628 See also <link to="FramebufferPixelFormat"/>.
10629 </desc>
10630 </param>
10631 <param name="VRAM" type="octet" mod="ptr" dir="in">
10632 <desc>Pointer to the virtual video card's VRAM (may be @c null).</desc>
10633 </param>
10634 <param name="bitsPerPixel" type="unsigned long" dir="in">
10635 <desc>Color depth, bits per pixel.</desc>
10636 </param>
10637 <param name="bytesPerLine" type="unsigned long" dir="in">
10638 <desc>Size of one scan line, in bytes.</desc>
10639 </param>
10640 <param name="width" type="unsigned long" dir="in">
10641 <desc>Width of the guest display, in pixels.</desc>
10642 </param>
10643 <param name="height" type="unsigned long" dir="in">
10644 <desc>Height of the guest display, in pixels.</desc>
10645 </param>
10646 <param name="finished" type="boolean" dir="return">
10647 <desc>
10648 Can the VM start using the new frame buffer immediately
10649 after this method returns or it should wait for
10650 <link to="IDisplay::resizeCompleted"/>.
10651 </desc>
10652 </param>
10653 </method>
10654
10655 <method name="videoModeSupported">
10656 <desc>
10657 Returns whether the frame buffer implementation is willing to
10658 support a given video mode. In case it is not able to render
10659 the video mode (or for some reason not willing), it should
10660 return @c false. Usually this method is called when the guest
10661 asks the VMM device whether a given video mode is supported
10662 so the information returned is directly exposed to the guest.
10663 It is important that this method returns very quickly.
10664 </desc>
10665 <param name="width" type="unsigned long" dir="in"/>
10666 <param name="height" type="unsigned long" dir="in"/>
10667 <param name="bpp" type="unsigned long" dir="in"/>
10668 <param name="supported" type="boolean" dir="return"/>
10669 </method>
10670
10671 <method name="getVisibleRegion">
10672 <desc>
10673 Returns the visible region of this frame buffer.
10674
10675 If the @a rectangles parameter is @c null then the value of the
10676 @a count parameter is ignored and the number of elements necessary to
10677 describe the current visible region is returned in @a countCopied.
10678
10679 If @a rectangles is not @c null but @a count is less
10680 than the required number of elements to store region data, the method
10681 will report a failure. If @a count is equal or greater than the
10682 required number of elements, then the actual number of elements copied
10683 to the provided array will be returned in @a countCopied.
10684
10685 <note>
10686 The address of the provided array must be in the process space of
10687 this IFramebuffer object.
10688 </note>
10689 <note>
10690 Method not yet implemented.
10691 </note>
10692 </desc>
10693 <param name="rectangles" type="octet" mod="ptr" dir="in">
10694 <desc>Pointer to the @c RTRECT array to receive region data.</desc>
10695 </param>
10696 <param name="count" type="unsigned long" dir="in">
10697 <desc>Number of @c RTRECT elements in the @a rectangles array.</desc>
10698 </param>
10699 <param name="countCopied" type="unsigned long" dir="return">
10700 <desc>Number of elements copied to the @a rectangles array.</desc>
10701 </param>
10702 </method>
10703
10704 <method name="setVisibleRegion">
10705 <desc>
10706 Suggests a new visible region to this frame buffer. This region
10707 represents the area of the VM display which is a union of regions of
10708 all top-level windows of the guest operating system running inside the
10709 VM (if the Guest Additions for this system support this
10710 functionality). This information may be used by the frontends to
10711 implement the seamless desktop integration feature.
10712
10713 <note>
10714 The address of the provided array must be in the process space of
10715 this IFramebuffer object.
10716 </note>
10717 <note>
10718 The IFramebuffer implementation must make a copy of the provided
10719 array of rectangles.
10720 </note>
10721 <note>
10722 Method not yet implemented.
10723 </note>
10724 </desc>
10725 <param name="rectangles" type="octet" mod="ptr" dir="in">
10726 <desc>Pointer to the @c RTRECT array.</desc>
10727 </param>
10728 <param name="count" type="unsigned long" dir="in">
10729 <desc>Number of @c RTRECT elements in the @a rectangles array.</desc>
10730 </param>
10731 </method>
10732
10733 <method name="processVHWACommand">
10734 <desc>
10735 Posts a Video HW Acceleration Command to the frame buffer for processing.
10736 The commands used for 2D video acceleration (DDraw surface creation/destroying, blitting, scaling, color covnersion, overlaying, etc.)
10737 are posted from quest to the host to be processed by the host hardware.
10738
10739 <note>
10740 The address of the provided command must be in the process space of
10741 this IFramebuffer object.
10742 </note>
10743 </desc>
10744
10745 <param name="command" type="octet" mod="ptr" dir="in">
10746 <desc>Pointer to VBOXVHWACMD containing the command to execute.</desc>
10747 </param>
10748 </method>
10749
10750 </interface>
10751
10752 <interface
10753 name="IFramebufferOverlay" extends="IFramebuffer"
10754 uuid="0bcc1c7e-e415-47d2-bfdb-e4c705fb0f47"
10755 wsmap="suppress"
10756 >
10757 <desc>
10758 The IFramebufferOverlay interface represents an alpha blended overlay
10759 for displaying status icons above an IFramebuffer. It is always created
10760 not visible, so that it must be explicitly shown. It only covers a
10761 portion of the IFramebuffer, determined by its width, height and
10762 co-ordinates. It is always in packed pixel little-endian 32bit ARGB (in
10763 that order) format, and may be written to directly. Do re-read the
10764 width though, after setting it, as it may be adjusted (increased) to
10765 make it more suitable for the front end.
10766 </desc>
10767 <attribute name="x" type="unsigned long" readonly="yes">
10768 <desc>X position of the overlay, relative to the frame buffer.</desc>
10769 </attribute>
10770
10771 <attribute name="y" type="unsigned long" readonly="yes">
10772 <desc>Y position of the overlay, relative to the frame buffer.</desc>
10773 </attribute>
10774
10775 <attribute name="visible" type="boolean" readonly="no">
10776 <desc>
10777 Whether the overlay is currently visible.
10778 </desc>
10779 </attribute>
10780
10781 <attribute name="alpha" type="unsigned long" readonly="no">
10782 <desc>
10783 The global alpha value for the overlay. This may or may not be
10784 supported by a given front end.
10785 </desc>
10786 </attribute>
10787
10788 <method name="move">
10789 <desc>
10790 Changes the overlay's position relative to the IFramebuffer.
10791 </desc>
10792 <param name="x" type="unsigned long" dir="in"/>
10793 <param name="y" type="unsigned long" dir="in"/>
10794 </method>
10795
10796 </interface>
10797
10798 <interface
10799 name="IDisplay" extends="$unknown"
10800 uuid="26881797-bc98-444d-ac69-820633b93ec7"
10801 wsmap="managed"
10802 >
10803 <desc>
10804 The IDisplay interface represents the virtual machine's display.
10805
10806 The object implementing this interface is contained in each
10807 <link to="IConsole::display"/> attribute and represents the visual
10808 output of the virtual machine.
10809
10810 The virtual display supports pluggable output targets represented by the
10811 IFramebuffer interface. Examples of the output target are a window on
10812 the host computer or an RDP session's display on a remote computer.
10813 </desc>
10814 <attribute name="width" type="unsigned long" readonly="yes">
10815 <desc>Current display width.</desc>
10816 </attribute>
10817
10818 <attribute name="height" type="unsigned long" readonly="yes">
10819 <desc>Current display height.</desc>
10820 </attribute>
10821
10822 <attribute name="bitsPerPixel" type="unsigned long" readonly="yes">
10823 <desc>
10824 Current guest display color depth. Note that this may differ
10825 from <link to="IFramebuffer::bitsPerPixel"/>.
10826 </desc>
10827 </attribute>
10828
10829 <method name="setFramebuffer">
10830 <desc>
10831 Sets the framebuffer for given screen.
10832 </desc>
10833 <param name="screenId" type="unsigned long" dir="in"/>
10834 <param name="framebuffer" type="IFramebuffer" dir="in"/>
10835 </method>
10836
10837 <method name="getFramebuffer">
10838 <desc>
10839 Queries the framebuffer for given screen.
10840 </desc>
10841 <param name="screenId" type="unsigned long" dir="in"/>
10842 <param name="framebuffer" type="IFramebuffer" dir="out"/>
10843 <param name="xOrigin" type="long" dir="out"/>
10844 <param name="yOrigin" type="long" dir="out"/>
10845 </method>
10846
10847 <method name="setVideoModeHint">
10848 <desc>
10849 Asks VirtualBox to request the given video mode from
10850 the guest. This is just a hint and it cannot be guaranteed
10851 that the requested resolution will be used. Guest Additions
10852 are required for the request to be seen by guests. The caller
10853 should issue the request and wait for a resolution change and
10854 after a timeout retry.
10855
10856 Specifying @c 0 for either @a width, @a height or @a bitsPerPixel
10857 parameters means that the corresponding values should be taken from the
10858 current video mode (i.e. left unchanged).
10859
10860 If the guest OS supports multi-monitor configuration then the @a display
10861 parameter specifies the number of the guest display to send the hint to:
10862 @c 0 is the primary display, @c 1 is the first secondary and
10863 so on. If the multi-monitor configuration is not supported, @a display
10864 must be @c 0.
10865
10866 <result name="E_INVALIDARG">
10867 The @a display is not associated with any monitor.
10868 </result>
10869
10870 </desc>
10871 <param name="width" type="unsigned long" dir="in"/>
10872 <param name="height" type="unsigned long" dir="in"/>
10873 <param name="bitsPerPixel" type="unsigned long" dir="in"/>
10874 <param name="display" type="unsigned long" dir="in"/>
10875 </method>
10876
10877 <method name="setSeamlessMode">
10878 <desc>
10879 Enables or disables seamless guest display rendering (seamless desktop
10880 integration) mode.
10881 <note>
10882 Calling this method has no effect if <link
10883 to="IGuest::supportsSeamless"/> returns @c false.
10884 </note>
10885 </desc>
10886 <param name="enabled" type="boolean" dir="in"/>
10887 </method>
10888
10889 <method name="takeScreenShot">
10890 <desc>
10891 Takes a screen shot of the requested size and copies it to the
10892 32-bpp buffer allocated by the caller and pointed to by @a address.
10893
10894 <note>This API can be used only by the COM/XPCOM C++ API as it
10895 requires pointer support. Use <link to="#takeScreenShotSlow" />
10896 with other language bindings.
10897 </note>
10898
10899 <result name="E_NOTIMPL">
10900 Feature not implemented.
10901 </result>
10902 <result name="VBOX_E_IPRT_ERROR">
10903 Could not take a screenshot.
10904 </result>
10905
10906 </desc>
10907 <param name="address" type="octet" mod="ptr" dir="in"/>
10908 <param name="width" type="unsigned long" dir="in"/>
10909 <param name="height" type="unsigned long" dir="in"/>
10910 </method>
10911
10912 <method name="takeScreenShotSlow">
10913 <desc>
10914 Takes a guest screen shot of the requested size and returns it as
10915 an array of bytes in uncompressed 32-bit ARGB format.
10916 This API is slow, but could be the only option to get guest screenshot
10917 for scriptable languages not allowed to manipulate with addresses
10918 directly.
10919
10920 <result name="E_NOTIMPL">
10921 Feature not implemented.
10922 </result>
10923 <result name="VBOX_E_IPRT_ERROR">
10924 Could not take a screenshot.
10925 </result>
10926 </desc>
10927 <param name="width" type="unsigned long" dir="in">
10928 <desc>
10929 Desired image width.
10930 </desc>
10931 </param>
10932 <param name="height" type="unsigned long" dir="in">
10933 <desc>
10934 Desired image height.
10935 </desc>
10936 </param>
10937 <param name="screenData" type="octet" dir="return" safearray="yes">
10938 <desc>
10939 Array with resulting screen data.
10940 </desc>
10941 </param>
10942 </method>
10943
10944 <method name="drawToScreen">
10945 <desc>
10946 Draws a 32-bpp image of the specified size from the given buffer
10947 to the given point on the VM display.
10948
10949 <result name="E_NOTIMPL">
10950 Feature not implemented.
10951 </result>
10952 <result name="VBOX_E_IPRT_ERROR">
10953 Could not draw to screen.
10954 </result>
10955
10956 </desc>
10957 <param name="address" type="octet" mod="ptr" dir="in"/>
10958 <param name="x" type="unsigned long" dir="in"/>
10959 <param name="y" type="unsigned long" dir="in"/>
10960 <param name="width" type="unsigned long" dir="in"/>
10961 <param name="height" type="unsigned long" dir="in"/>
10962 </method>
10963
10964 <method name="invalidateAndUpdate">
10965 <desc>
10966 Does a full invalidation of the VM display and instructs the VM
10967 to update it.
10968
10969 <result name="VBOX_E_IPRT_ERROR">
10970 Could not invalidate and update screen.
10971 </result>
10972
10973 </desc>
10974 </method>
10975
10976 <method name="resizeCompleted">
10977 <desc>
10978 Signals that a framebuffer has completed the resize operation.
10979
10980 <result name="VBOX_E_NOT_SUPPORTED">
10981 Operation only valid for external frame buffers.
10982 </result>
10983
10984 </desc>
10985 <param name="screenId" type="unsigned long" dir="in"/>
10986 </method>
10987
10988 <method name="updateCompleted">
10989 <desc>
10990 Signals that a framebuffer has completed the update operation.
10991
10992 <result name="VBOX_E_NOT_SUPPORTED">
10993 Operation only valid for external frame buffers.
10994 </result>
10995
10996 </desc>
10997 </method>
10998
10999 <method name="completeVHWACommand">
11000 <desc>
11001 Signals that the Video HW Acceleration command has completed.
11002 </desc>
11003
11004 <param name="command" type="octet" mod="ptr" dir="in">
11005 <desc>Pointer to VBOXVHWACMD containing the completed command.</desc>
11006 </param>
11007 </method>
11008
11009 </interface>
11010
11011 <!--
11012 // INetworkAdapter
11013 /////////////////////////////////////////////////////////////////////////
11014 -->
11015
11016 <enum
11017 name="NetworkAttachmentType"
11018 uuid="44bce1ee-99f7-4e8e-89fc-80597fd9eeaf"
11019 >
11020 <desc>
11021 Network attachment type.
11022 </desc>
11023
11024 <const name="Null" value="0">
11025 <desc>Null value, also means "not attached".</desc>
11026 </const>
11027 <const name="NAT" value="1"/>
11028 <const name="Bridged" value="2"/>
11029 <const name="Internal" value="3"/>
11030 <const name="HostOnly" value="4"/>
11031 </enum>
11032
11033 <enum
11034 name="NetworkAdapterType"
11035 uuid="50c3dfd8-07ac-4a31-baac-519c828fbf97"
11036 >
11037 <desc>
11038 Network adapter type.
11039 </desc>
11040
11041 <const name="Null" value="0">
11042 <desc>Null value (never used by the API).</desc>
11043 </const>
11044 <const name="Am79C970A" value="1">
11045 <desc>AMD PCNet-PCI II network card (Am79C970A).</desc>
11046 </const>
11047 <const name="Am79C973" value="2">
11048 <desc>AMD PCNet-FAST III network card (Am79C973).</desc>
11049 </const>
11050 <const name="I82540EM" value="3">
11051 <desc>Intel PRO/1000 MT Desktop network card (82540EM).</desc>
11052 </const>
11053 <const name="I82543GC" value="4">
11054 <desc>Intel PRO/1000 T Server network card (82543GC).</desc>
11055 </const>
11056 <const name="I82545EM" value="5">
11057 <desc>Intel PRO/1000 MT Server network card (82545EM).</desc>
11058 </const>
11059 </enum>
11060
11061 <interface
11062 name="INetworkAdapter" extends="$unknown"
11063 uuid="65607a27-2b73-4d43-b4cc-0ba2c817fbde"
11064 wsmap="managed"
11065 >
11066 <desc>
11067 Represents a virtual network adapter that is attached to a virtual machine.
11068 Each virtual machine has a fixed number of network adapter slots with one
11069 instance of this attached to each of them. Call
11070 <link to="IMachine::getNetworkAdapter" /> to get the network adapter that
11071 is attached to a given slot in a given machine.
11072
11073 Each network adapter can be in one of five attachment modes, which are
11074 represented by the <link to="NetworkAttachmentType" /> enumeration;
11075 see the <link to="#attachmentType" /> attribute.
11076 </desc>
11077
11078 <attribute name="adapterType" type="NetworkAdapterType">
11079 <desc>
11080 Type of the virtual network adapter. Depending on this value,
11081 VirtualBox will provide a different virtual network hardware
11082 to the guest.
11083 </desc>
11084 </attribute>
11085
11086 <attribute name="slot" type="unsigned long" readonly="yes">
11087 <desc>
11088 Slot number this adapter is plugged into. Corresponds to
11089 the value you pass to <link to="IMachine::getNetworkAdapter"/>
11090 to obtain this instance.
11091 </desc>
11092 </attribute>
11093
11094 <attribute name="enabled" type="boolean">
11095 <desc>
11096 Flag whether the network adapter is present in the
11097 guest system. If disabled, the virtual guest hardware will
11098 not contain this network adapter. Can only be changed when
11099 the VM is not running.
11100 </desc>
11101 </attribute>
11102
11103 <attribute name="MACAddress" type="wstring">
11104 <desc>
11105 Ethernet MAC address of the adapter, 12 hexadecimal characters. When setting
11106 it to @c null, VirtualBox will generate a unique MAC address.
11107 </desc>
11108 </attribute>
11109
11110 <attribute name="attachmentType" type="NetworkAttachmentType" readonly="yes"/>
11111
11112 <attribute name="hostInterface" type="wstring">
11113 <desc>
11114 Name of the host network interface the VM is attached to.
11115 </desc>
11116 </attribute>
11117
11118 <attribute name="internalNetwork" type="wstring">
11119 <desc>
11120 Name of the internal network the VM is attached to.
11121 </desc>
11122 </attribute>
11123
11124 <attribute name="NATNetwork" type="wstring">
11125 <desc>
11126 Name of the NAT network the VM is attached to.
11127 </desc>
11128 </attribute>
11129
11130 <attribute name="cableConnected" type="boolean">
11131 <desc>
11132 Flag whether the adapter reports the cable as connected or not.
11133 It can be used to report offline situations to a VM.
11134 </desc>
11135 </attribute>
11136
11137 <attribute name="lineSpeed" type="unsigned long">
11138 <desc>
11139 Line speed reported by custom drivers, in units of 1 kbps.
11140 </desc>
11141 </attribute>
11142
11143 <attribute name="traceEnabled" type="boolean">
11144 <desc>
11145 Flag whether network traffic from/to the network card should be traced.
11146 Can only be toggled when the VM is turned off.
11147 </desc>
11148 </attribute>
11149
11150 <attribute name="traceFile" type="wstring">
11151 <desc>
11152 Filename where a network trace will be stored. If not set, VBox-pid.pcap
11153 will be used.
11154 </desc>
11155 </attribute>
11156
11157 <method name="attachToNAT">
11158 <desc>
11159 Attach the network adapter to the Network Address Translation (NAT) interface.
11160 </desc>
11161 </method>
11162
11163 <method name="attachToBridgedInterface">
11164 <desc>
11165 Attach the network adapter to a bridged host interface.
11166 </desc>
11167 </method>
11168
11169 <method name="attachToInternalNetwork">
11170 <desc>
11171 Attach the network adapter to an internal network.
11172 </desc>
11173 </method>
11174
11175 <method name="attachToHostOnlyInterface">
11176 <desc>
11177 Attach the network adapter to the host-only network.
11178 </desc>
11179 </method>
11180
11181 <method name="detach">
11182 <desc>
11183 Detach the network adapter
11184 </desc>
11185 </method>
11186 </interface>
11187
11188
11189 <!--
11190 // ISerialPort
11191 /////////////////////////////////////////////////////////////////////////
11192 -->
11193
11194 <enum
11195 name="PortMode"
11196 uuid="533b5fe3-0185-4197-86a7-17e37dd39d76"
11197 >
11198 <desc>
11199 The PortMode enumeration represents possible communication modes for
11200 the virtual serial port device.
11201 </desc>
11202
11203 <const name="Disconnected" value="0">
11204 <desc>Virtual device is not attached to any real host device.</desc>
11205 </const>
11206 <const name="HostPipe" value="1">
11207 <desc>Virtual device is attached to a host pipe.</desc>
11208 </const>
11209 <const name="HostDevice" value="2">
11210 <desc>Virtual device is attached to a host device.</desc>
11211 </const>
11212 <const name="RawFile" value="3">
11213 <desc>Virtual device is attached to a raw file.</desc>
11214 </const>
11215 </enum>
11216
11217 <interface
11218 name="ISerialPort" extends="$unknown"
11219 uuid="937f6970-5103-4745-b78e-d28dcf1479a8"
11220 wsmap="managed"
11221 >
11222
11223 <desc>
11224 The ISerialPort interface represents the virtual serial port device.
11225
11226 The virtual serial port device acts like an ordinary serial port
11227 inside the virtual machine. This device communicates to the real
11228 serial port hardware in one of two modes: host pipe or host device.
11229
11230 In host pipe mode, the #path attribute specifies the path to the pipe on
11231 the host computer that represents a serial port. The #server attribute
11232 determines if this pipe is created by the virtual machine process at
11233 machine startup or it must already exist before starting machine
11234 execution.
11235
11236 In host device mode, the #path attribute specifies the name of the
11237 serial port device on the host computer.
11238
11239 There is also a third communication mode: the disconnected mode. In this
11240 mode, the guest OS running inside the virtual machine will be able to
11241 detect the serial port, but all port write operations will be discarded
11242 and all port read operations will return no data.
11243
11244 <see>IMachine::getSerialPort</see>
11245 </desc>
11246
11247 <attribute name="slot" type="unsigned long" readonly="yes">
11248 <desc>
11249 Slot number this serial port is plugged into. Corresponds to
11250 the value you pass to <link to="IMachine::getSerialPort"/>
11251 to obtain this instance.
11252 </desc>
11253 </attribute>
11254
11255 <attribute name="enabled" type="boolean">
11256 <desc>
11257 Flag whether the serial port is enabled. If disabled,
11258 the serial port will not be reported to the guest OS.
11259 </desc>
11260 </attribute>
11261
11262 <attribute name="IOBase" type="unsigned long">
11263 <desc>Base I/O address of the serial port.</desc>
11264 </attribute>
11265
11266 <attribute name="IRQ" type="unsigned long">
11267 <desc>IRQ number of the serial port.</desc>
11268 </attribute>
11269
11270 <attribute name="hostMode" type="PortMode">
11271 <desc>
11272 How is this port connected to the host.
11273 <note>
11274 Changing this attribute may fail if the conditions for
11275 <link to="#path"/> are not met.
11276 </note>
11277 </desc>
11278 </attribute>
11279
11280 <attribute name="server" type="boolean">
11281 <desc>
11282 Flag whether this serial port acts as a server (creates a new pipe on
11283 the host) or as a client (uses the existing pipe). This attribute is
11284 used only when <link to="#hostMode"/> is PortMode_HostPipe.
11285 </desc>
11286 </attribute>
11287
11288 <attribute name="path" type="wstring">
11289 <desc>
11290 Path to the serial port's pipe on the host when <link to="ISerialPort::hostMode"/> is
11291 PortMode_HostPipe, or the host serial device name when
11292 <link to="ISerialPort::hostMode"/> is PortMode_HostDevice. For both
11293 cases, setting a @c null or empty string as the attribute's value
11294 is an error. Otherwise, the value of this property is ignored.
11295 </desc>
11296 </attribute>
11297
11298 </interface>
11299
11300 <!--
11301 // IParallelPort
11302 /////////////////////////////////////////////////////////////////////////
11303 -->
11304
11305 <interface
11306 name="IParallelPort" extends="$unknown"
11307 uuid="0c925f06-dd10-4b77-8de8-294d738c3214"
11308 wsmap="managed"
11309 >
11310
11311 <desc>
11312 The IParallelPort interface represents the virtual parallel port device.
11313
11314 The virtual parallel port device acts like an ordinary parallel port
11315 inside the virtual machine. This device communicates to the real
11316 parallel port hardware using the name of the parallel device on the host
11317 computer specified in the #path attribute.
11318
11319 Each virtual parallel port device is assigned a base I/O address and an
11320 IRQ number that will be reported to the guest operating system and used
11321 to operate the given parallel port from within the virtual machine.
11322
11323 <see>IMachine::getParallelPort</see>
11324 </desc>
11325
11326 <attribute name="slot" type="unsigned long" readonly="yes">
11327 <desc>
11328 Slot number this parallel port is plugged into. Corresponds to
11329 the value you pass to <link to="IMachine::getParallelPort"/>
11330 to obtain this instance.
11331 </desc>
11332 </attribute>
11333
11334 <attribute name="enabled" type="boolean">
11335 <desc>
11336 Flag whether the parallel port is enabled. If disabled,
11337 the parallel port will not be reported to the guest OS.
11338 </desc>
11339 </attribute>
11340
11341 <attribute name="IOBase" type="unsigned long">
11342 <desc>Base I/O address of the parallel port.</desc>
11343 </attribute>
11344
11345 <attribute name="IRQ" type="unsigned long">
11346 <desc>IRQ number of the parallel port.</desc>
11347 </attribute>
11348
11349 <attribute name="path" type="wstring">
11350 <desc>
11351 Host parallel device name. If this parallel port is enabled, setting a
11352 @c null or an empty string as this attribute's value will result into
11353 an error.
11354 </desc>
11355 </attribute>
11356
11357 </interface>
11358
11359
11360 <!--
11361 // IMachineDebugger
11362 /////////////////////////////////////////////////////////////////////////
11363 -->
11364
11365 <interface
11366 name="IMachineDebugger" extends="$unknown"
11367 uuid="b0b2a2dd-0627-4502-91c2-ddc5e77609e0"
11368 wsmap="suppress"
11369 >
11370 <method name="resetStats">
11371 <desc>
11372 Reset VM statistics.
11373 </desc>
11374 <param name="pattern" type="wstring" dir="in">
11375 <desc>The selection pattern. A bit similar to filename globbing.</desc>
11376 </param>
11377 </method>
11378
11379 <method name="dumpStats">
11380 <desc>
11381 Dumps VM statistics.
11382 </desc>
11383 <param name="pattern" type="wstring" dir="in">
11384 <desc>The selection pattern. A bit similar to filename globbing.</desc>
11385 </param>
11386 </method>
11387
11388 <method name="getStats">
11389 <desc>
11390 Get the VM statistics in a XMLish format.
11391 </desc>
11392 <param name="pattern" type="wstring" dir="in">
11393 <desc>The selection pattern. A bit similar to filename globbing.</desc>
11394 </param>
11395 <param name="withDescriptions" type="boolean" dir="in">
11396 <desc>Whether to include the descriptions.</desc>
11397 </param>
11398 <param name="stats" type="wstring" dir="out">
11399 <desc>The XML document containing the statistics.</desc>
11400 </param>
11401 </method>
11402
11403 <method name="injectNMI">
11404 <desc>
11405 Inject an NMI into a running VT-x/AMD-V VM.
11406 </desc>
11407 </method>
11408
11409 <attribute name="singlestep" type="boolean">
11410 <desc>Switch for enabling singlestepping.</desc>
11411 </attribute>
11412
11413 <attribute name="recompileUser" type="boolean">
11414 <desc>Switch for forcing code recompilation for user mode code.</desc>
11415 </attribute>
11416
11417 <attribute name="recompileSupervisor" type="boolean">
11418 <desc>Switch for forcing code recompilation for supervisor mode code.</desc>
11419 </attribute>
11420
11421 <attribute name="PATMEnabled" type="boolean">
11422 <desc>Switch for enabling and disabling the PATM component.</desc>
11423 </attribute>
11424
11425 <attribute name="CSAMEnabled" type="boolean">
11426 <desc>Switch for enabling and disabling the CSAM component.</desc>
11427 </attribute>
11428
11429 <attribute name="logEnabled" type="boolean">
11430 <desc>Switch for enabling and disabling logging.</desc>
11431 </attribute>
11432
11433 <attribute name="HWVirtExEnabled" type="boolean" readonly="yes">
11434 <desc>
11435 Flag indicating whether the VM is currently making use of CPU hardware
11436 virtualization extensions.
11437 </desc>
11438 </attribute>
11439
11440 <attribute name="HWVirtExNestedPagingEnabled" type="boolean" readonly="yes">
11441 <desc>
11442 Flag indicating whether the VM is currently making use of the nested paging
11443 CPU hardware virtualization extension.
11444 </desc>
11445 </attribute>
11446
11447 <attribute name="HWVirtExVPIDEnabled" type="boolean" readonly="yes">
11448 <desc>
11449 Flag indicating whether the VM is currently making use of the VPID
11450 VT-x extension.
11451 </desc>
11452 </attribute>
11453
11454 <attribute name="PAEEnabled" type="boolean" readonly="yes">
11455 <desc>
11456 Flag indicating whether the VM is currently making use of the Physical
11457 Address Extension CPU feature.
11458 </desc>
11459 </attribute>
11460
11461 <attribute name="virtualTimeRate" type="unsigned long">
11462 <desc>
11463 The rate at which the virtual time runs expressed as a percentage.
11464 The accepted range is 2% to 20000%.
11465 </desc>
11466 </attribute>
11467
11468 <!-- @todo method for setting log flags, groups and destination! -->
11469
11470 <attribute name="VM" type="unsigned long long" readonly="yes">
11471 <desc>
11472 Gets the VM handle. This is only for internal use while
11473 we carve the details of this interface.
11474 </desc>
11475 </attribute>
11476
11477 </interface>
11478
11479 <!--
11480 // IUSBController
11481 /////////////////////////////////////////////////////////////////////////
11482 -->
11483
11484 <interface
11485 name="IUSBController" extends="$unknown"
11486 uuid="238540fa-4b73-435a-a38e-4e1d9eab5c17"
11487 wsmap="managed"
11488 >
11489 <attribute name="enabled" type="boolean">
11490 <desc>
11491 Flag whether the USB controller is present in the
11492 guest system. If disabled, the virtual guest hardware will
11493 not contain any USB controller. Can only be changed when
11494 the VM is powered off.
11495 </desc>
11496 </attribute>
11497
11498 <attribute name="enabledEhci" type="boolean">
11499 <desc>
11500 Flag whether the USB EHCI controller is present in the
11501 guest system. If disabled, the virtual guest hardware will
11502 not contain a USB EHCI controller. Can only be changed when
11503 the VM is powered off.
11504 </desc>
11505 </attribute>
11506
11507 <attribute name="USBStandard" type="unsigned short" readonly="yes">
11508 <desc>
11509 USB standard version which the controller implements.
11510 This is a BCD which means that the major version is in the
11511 high byte and minor version is in the low byte.
11512 </desc>
11513 </attribute>
11514
11515 <attribute name="deviceFilters" type="IUSBDeviceFilter" readonly="yes" safearray="yes">
11516 <desc>
11517 List of USB device filters associated with the machine.
11518
11519 If the machine is currently running, these filters are activated
11520 every time a new (supported) USB device is attached to the host
11521 computer that was not ignored by global filters
11522 (<link to="IHost::USBDeviceFilters"/>).
11523
11524 These filters are also activated when the machine is powered up.
11525 They are run against a list of all currently available USB
11526 devices (in states
11527 <link to="USBDeviceState_Available"/>,
11528 <link to="USBDeviceState_Busy"/>,
11529 <link to="USBDeviceState_Held"/>) that were not previously
11530 ignored by global filters.
11531
11532 If at least one filter matches the USB device in question, this
11533 device is automatically captured (attached to) the virtual USB
11534 controller of this machine.
11535
11536 <see>IUSBDeviceFilter, ::IUSBController</see>
11537 </desc>
11538 </attribute>
11539
11540 <method name="createDeviceFilter">
11541 <desc>
11542 Creates a new USB device filter. All attributes except
11543 the filter name are set to @c null (any match),
11544 <i>active</i> is @c false (the filter is not active).
11545
11546 The created filter can then be added to the list of filters using
11547 <link to="#insertDeviceFilter"/>.
11548
11549 <result name="VBOX_E_INVALID_VM_STATE">
11550 The virtual machine is not mutable.
11551 </result>
11552
11553 <see>#deviceFilters</see>
11554 </desc>
11555 <param name="name" type="wstring" dir="in">
11556 <desc>
11557 Filter name. See <link to="IUSBDeviceFilter::name"/>
11558 for more info.
11559 </desc>
11560 </param>
11561 <param name="filter" type="IUSBDeviceFilter" dir="return">
11562 <desc>Created filter object.</desc>
11563 </param>
11564 </method>
11565
11566 <method name="insertDeviceFilter">
11567 <desc>
11568 Inserts the given USB device to the specified position
11569 in the list of filters.
11570
11571 Positions are numbered starting from <tt>0</tt>. If the specified
11572 position is equal to or greater than the number of elements in
11573 the list, the filter is added to the end of the collection.
11574
11575 <note>
11576 Duplicates are not allowed, so an attempt to insert a
11577 filter that is already in the collection, will return an
11578 error.
11579 </note>
11580
11581 <result name="VBOX_E_INVALID_VM_STATE">
11582 Virtual machine is not mutable.
11583 </result>
11584 <result name="E_INVALIDARG">
11585 USB device filter not created within this VirtualBox instance.
11586 </result>
11587 <result name="VBOX_E_INVALID_OBJECT_STATE">
11588 USB device filter already in list.
11589 </result>
11590
11591 <see>#deviceFilters</see>
11592 </desc>
11593 <param name="position" type="unsigned long" dir="in">
11594 <desc>Position to insert the filter to.</desc>
11595 </param>
11596 <param name="filter" type="IUSBDeviceFilter" dir="in">
11597 <desc>USB device filter to insert.</desc>
11598 </param>
11599 </method>
11600
11601 <method name="removeDeviceFilter">
11602 <desc>
11603 Removes a USB device filter from the specified position in the
11604 list of filters.
11605
11606 Positions are numbered starting from <tt>0</tt>. Specifying a
11607 position equal to or greater than the number of elements in
11608 the list will produce an error.
11609
11610 <see>#deviceFilters</see>
11611
11612 <result name="VBOX_E_INVALID_VM_STATE">
11613 Virtual machine is not mutable.
11614 </result>
11615 <result name="E_INVALIDARG">
11616 USB device filter list empty or invalid @a position.
11617 </result>
11618
11619 </desc>
11620 <param name="position" type="unsigned long" dir="in">
11621 <desc>Position to remove the filter from.</desc>
11622 </param>
11623 <param name="filter" type="IUSBDeviceFilter" dir="return">
11624 <desc>Removed USB device filter.</desc>
11625 </param>
11626 </method>
11627
11628 </interface>
11629
11630
11631 <!--
11632 // IUSBDevice
11633 /////////////////////////////////////////////////////////////////////////
11634 -->
11635
11636 <interface
11637 name="IUSBDevice" extends="$unknown"
11638 uuid="f8967b0b-4483-400f-92b5-8b675d98a85b"
11639 wsmap="managed"
11640 >
11641 <desc>
11642 The IUSBDevice interface represents a virtual USB device attached to the
11643 virtual machine.
11644
11645 A collection of objects implementing this interface is stored in the
11646 <link to="IConsole::USBDevices"/> attribute which lists all USB devices
11647 attached to a running virtual machine's USB controller.
11648 </desc>
11649
11650 <attribute name="id" type="wstring" readonly="yes">
11651 <desc>
11652 Unique USB device ID. This ID is built from #vendorId,
11653 #productId, #revision and #serialNumber.
11654 </desc>
11655 </attribute>
11656
11657 <attribute name="vendorId" type="unsigned short" readonly="yes">
11658 <desc>Vendor ID.</desc>
11659 </attribute>
11660
11661 <attribute name="productId" type="unsigned short" readonly="yes">
11662 <desc>Product ID.</desc>
11663 </attribute>
11664
11665 <attribute name="revision" type="unsigned short" readonly="yes">
11666 <desc>
11667 Product revision number. This is a packed BCD represented as
11668 unsigned short. The high byte is the integer part and the low
11669 byte is the decimal.
11670 </desc>
11671 </attribute>
11672
11673 <attribute name="manufacturer" type="wstring" readonly="yes">
11674 <desc>Manufacturer string.</desc>
11675 </attribute>
11676
11677 <attribute name="product" type="wstring" readonly="yes">
11678 <desc>Product string.</desc>
11679 </attribute>
11680
11681 <attribute name="serialNumber" type="wstring" readonly="yes">
11682 <desc>Serial number string.</desc>
11683 </attribute>
11684
11685 <attribute name="address" type="wstring" readonly="yes">
11686 <desc>Host specific address of the device.</desc>
11687 </attribute>
11688
11689 <attribute name="port" type="unsigned short" readonly="yes">
11690 <desc>
11691 Host USB port number the device is physically
11692 connected to.
11693 </desc>
11694 </attribute>
11695
11696 <attribute name="version" type="unsigned short" readonly="yes">
11697 <desc>
11698 The major USB version of the device - 1 or 2.
11699 </desc>
11700 </attribute>
11701
11702 <attribute name="portVersion" type="unsigned short" readonly="yes">
11703 <desc>
11704 The major USB version of the host USB port the device is
11705 physically connected to - 1 or 2. For devices not connected to
11706 anything this will have the same value as the version attribute.
11707 </desc>
11708 </attribute>
11709
11710 <attribute name="remote" type="boolean" readonly="yes">
11711 <desc>
11712 Whether the device is physically connected to a remote VRDP
11713 client or to a local host machine.
11714 </desc>
11715 </attribute>
11716
11717 </interface>
11718
11719
11720 <!--
11721 // IUSBDeviceFilter
11722 /////////////////////////////////////////////////////////////////////////
11723 -->
11724
11725 <interface
11726 name="IUSBDeviceFilter" extends="$unknown"
11727 uuid="d6831fb4-1a94-4c2c-96ef-8d0d6192066d"
11728 wsmap="managed"
11729 >
11730 <desc>
11731 The IUSBDeviceFilter interface represents an USB device filter used
11732 to perform actions on a group of USB devices.
11733
11734 This type of filters is used by running virtual machines to
11735 automatically capture selected USB devices once they are physically
11736 attached to the host computer.
11737
11738 A USB device is matched to the given device filter if and only if all
11739 attributes of the device match the corresponding attributes of the
11740 filter (that is, attributes are joined together using the logical AND
11741 operation). On the other hand, all together, filters in the list of
11742 filters carry the semantics of the logical OR operation. So if it is
11743 desirable to create a match like "this vendor id OR this product id",
11744 one needs to create two filters and specify "any match" (see below)
11745 for unused attributes.
11746
11747 All filter attributes used for matching are strings. Each string
11748 is an expression representing a set of values of the corresponding
11749 device attribute, that will match the given filter. Currently, the
11750 following filtering expressions are supported:
11751
11752 <ul>
11753 <li><i>Interval filters</i>. Used to specify valid intervals for
11754 integer device attributes (Vendor ID, Product ID and Revision).
11755 The format of the string is:
11756
11757 <tt>int:((m)|([m]-[n]))(,(m)|([m]-[n]))*</tt>
11758
11759 where <tt>m</tt> and <tt>n</tt> are integer numbers, either in octal
11760 (starting from <tt>0</tt>), hexadecimal (starting from <tt>0x</tt>)
11761 or decimal (otherwise) form, so that <tt>m &lt; n</tt>. If <tt>m</tt>
11762 is omitted before a dash (<tt>-</tt>), the minimum possible integer
11763 is assumed; if <tt>n</tt> is omitted after a dash, the maximum
11764 possible integer is assumed.
11765 </li>
11766 <li><i>Boolean filters</i>. Used to specify acceptable values for
11767 boolean device attributes. The format of the string is:
11768
11769 <tt>true|false|yes|no|0|1</tt>
11770
11771 </li>
11772 <li><i>Exact match</i>. Used to specify a single value for the given
11773 device attribute. Any string that doesn't start with <tt>int:</tt>
11774 represents the exact match. String device attributes are compared to
11775 this string including case of symbols. Integer attributes are first
11776 converted to a string (see individual filter attributes) and then
11777 compared ignoring case.
11778
11779 </li>
11780 <li><i>Any match</i>. Any value of the corresponding device attribute
11781 will match the given filter. An empty or @c null string is
11782 used to construct this type of filtering expressions.
11783
11784 </li>
11785 </ul>
11786
11787 <note>
11788 On the Windows host platform, interval filters are not currently
11789 available. Also all string filter attributes
11790 (<link to="#manufacturer"/>, <link to="#product"/>,
11791 <link to="#serialNumber"/>) are ignored, so they behave as
11792 <i>any match</i> no matter what string expression is specified.
11793 </note>
11794
11795 <see>IUSBController::deviceFilters, IHostUSBDeviceFilter</see>
11796 </desc>
11797
11798 <attribute name="name" type="wstring">
11799 <desc>
11800 Visible name for this filter.
11801 This name is used to visually distinguish one filter from another,
11802 so it can neither be @c null nor an empty string.
11803 </desc>
11804 </attribute>
11805
11806 <attribute name="active" type="boolean">
11807 <desc>Whether this filter active or has been temporarily disabled.</desc>
11808 </attribute>
11809
11810 <attribute name="vendorId" type="wstring">
11811 <desc>
11812 <link to="IUSBDevice::vendorId">Vendor ID</link> filter.
11813 The string representation for the <i>exact matching</i>
11814 has the form <tt>XXXX</tt>, where <tt>X</tt> is the hex digit
11815 (including leading zeroes).
11816 </desc>
11817 </attribute>
11818
11819 <attribute name="productId" type="wstring">
11820 <desc>
11821 <link to="IUSBDevice::productId">Product ID</link> filter.
11822 The string representation for the <i>exact matching</i>
11823 has the form <tt>XXXX</tt>, where <tt>X</tt> is the hex digit
11824 (including leading zeroes).
11825 </desc>
11826 </attribute>
11827
11828 <attribute name="revision" type="wstring">
11829 <desc>
11830 <link to="IUSBDevice::productId">Product revision number</link>
11831 filter. The string representation for the <i>exact matching</i>
11832 has the form <tt>IIFF</tt>, where <tt>I</tt> is the decimal digit
11833 of the integer part of the revision, and <tt>F</tt> is the
11834 decimal digit of its fractional part (including leading and
11835 trailing zeros).
11836 Note that for interval filters, it's best to use the hexadecimal
11837 form, because the revision is stored as a 16 bit packed BCD value;
11838 so the expression <tt>int:0x0100-0x0199</tt> will match any
11839 revision from <tt>1.0</tt> to <tt>1.99</tt>.
11840 </desc>
11841 </attribute>
11842
11843 <attribute name="manufacturer" type="wstring">
11844 <desc>
11845 <link to="IUSBDevice::manufacturer">Manufacturer</link> filter.
11846 </desc>
11847 </attribute>
11848
11849 <attribute name="product" type="wstring">
11850 <desc>
11851 <link to="IUSBDevice::product">Product</link> filter.
11852 </desc>
11853 </attribute>
11854
11855 <attribute name="serialNumber" type="wstring">
11856 <desc>
11857 <link to="IUSBDevice::serialNumber">Serial number</link> filter.
11858 </desc>
11859 </attribute>
11860
11861 <attribute name="port" type="wstring">
11862 <desc>
11863 <link to="IUSBDevice::port">Host USB port</link> filter.
11864 </desc>
11865 </attribute>
11866
11867 <attribute name="remote" type="wstring">
11868 <desc>
11869 <link to="IUSBDevice::remote">Remote state</link> filter.
11870 <note>
11871 This filter makes sense only for machine USB filters,
11872 i.e. it is ignored by IHostUSBDeviceFilter objects.
11873 </note>
11874 </desc>
11875 </attribute>
11876
11877 <attribute name="maskedInterfaces" type="unsigned long">
11878 <desc>
11879 This is an advanced option for hiding one or more USB interfaces
11880 from the guest. The value is a bit mask where the bits that are set
11881 means the corresponding USB interface should be hidden, masked off
11882 if you like.
11883 This feature only works on Linux hosts.
11884 </desc>
11885 </attribute>
11886
11887 </interface>
11888
11889
11890 <!--
11891 // IHostUSBDevice
11892 /////////////////////////////////////////////////////////////////////////
11893 -->
11894
11895 <enum
11896 name="USBDeviceState"
11897 uuid="b99a2e65-67fb-4882-82fd-f3e5e8193ab4"
11898 >
11899 <desc>
11900 USB device state. This enumeration represents all possible states
11901 of the USB device physically attached to the host computer regarding
11902 its state on the host computer and availability to guest computers
11903 (all currently running virtual machines).
11904
11905 Once a supported USB device is attached to the host, global USB
11906 filters (<link to="IHost::USBDeviceFilters"/>) are activated. They can
11907 either ignore the device, or put it to USBDeviceState_Held state, or do
11908 nothing. Unless the device is ignored by global filters, filters of all
11909 currently running guests (<link to="IUSBController::deviceFilters"/>) are
11910 activated that can put it to USBDeviceState_Captured state.
11911
11912 If the device was ignored by global filters, or didn't match
11913 any filters at all (including guest ones), it is handled by the host
11914 in a normal way. In this case, the device state is determined by
11915 the host and can be one of USBDeviceState_Unavailable, USBDeviceState_Busy
11916 or USBDeviceState_Available, depending on the current device usage.
11917
11918 Besides auto-capturing based on filters, the device can be manually
11919 captured by guests (<link to="IConsole::attachUSBDevice"/>) if its
11920 state is USBDeviceState_Busy, USBDeviceState_Available or
11921 USBDeviceState_Held.
11922
11923 <note>
11924 Due to differences in USB stack implementations in Linux and Win32,
11925 states USBDeviceState_Busy and USBDeviceState_vailable are applicable
11926 only to the Linux version of the product. This also means that (<link
11927 to="IConsole::attachUSBDevice"/>) can only succeed on Win32 if the
11928 device state is USBDeviceState_Held.
11929 </note>
11930
11931 <see>IHostUSBDevice, IHostUSBDeviceFilter</see>
11932 </desc>
11933
11934 <const name="NotSupported" value="0">
11935 <desc>
11936 Not supported by the VirtualBox server, not available to guests.
11937 </desc>
11938 </const>
11939 <const name="Unavailable" value="1">
11940 <desc>
11941 Being used by the host computer exclusively,
11942 not available to guests.
11943 </desc>
11944 </const>
11945 <const name="Busy" value="2">
11946 <desc>
11947 Being used by the host computer, potentially available to guests.
11948 </desc>
11949 </const>
11950 <const name="Available" value="3">
11951 <desc>
11952 Not used by the host computer, available to guests (the host computer
11953 can also start using the device at any time).
11954 </desc>
11955 </const>
11956 <const name="Held" value="4">
11957 <desc>
11958 Held by the VirtualBox server (ignored by the host computer),
11959 available to guests.
11960 </desc>
11961 </const>
11962 <const name="Captured" value="5">
11963 <desc>
11964 Captured by one of the guest computers, not available
11965 to anybody else.
11966 </desc>
11967 </const>
11968 </enum>
11969
11970 <interface
11971 name="IHostUSBDevice" extends="IUSBDevice"
11972 uuid="173b4b44-d268-4334-a00d-b6521c9a740a"
11973 wsmap="managed"
11974 >
11975 <desc>
11976 The IHostUSBDevice interface represents a physical USB device attached
11977 to the host computer.
11978
11979 Besides properties inherited from IUSBDevice, this interface adds the
11980 <link to="#state"/> property that holds the current state of the USB
11981 device.
11982
11983 <see>IHost::USBDevices, IHost::USBDeviceFilters</see>
11984 </desc>
11985
11986 <attribute name="state" type="USBDeviceState" readonly="yes">
11987 <desc>
11988 Current state of the device.
11989 </desc>
11990 </attribute>
11991
11992 <!-- @todo add class, subclass, bandwidth, configs, interfaces endpoints and such later. -->
11993
11994 </interface>
11995
11996
11997 <!--
11998 // IHostUSBDeviceFilter
11999 /////////////////////////////////////////////////////////////////////////
12000 -->
12001
12002 <enum
12003 name="USBDeviceFilterAction"
12004 uuid="cbc30a49-2f4e-43b5-9da6-121320475933"
12005 >
12006 <desc>
12007 Actions for host USB device filters.
12008 <see>IHostUSBDeviceFilter, USBDeviceState</see>
12009 </desc>
12010
12011 <const name="Null" value="0">
12012 <desc>Null value (never used by the API).</desc>
12013 </const>
12014 <const name="Ignore" value="1">
12015 <desc>Ignore the matched USB device.</desc>
12016 </const>
12017 <const name="Hold" value="2">
12018 <desc>Hold the matched USB device.</desc>
12019 </const>
12020 </enum>
12021
12022 <interface
12023 name="IHostUSBDeviceFilter" extends="IUSBDeviceFilter"
12024 uuid="4cc70246-d74a-400f-8222-3900489c0374"
12025 wsmap="managed"
12026 >
12027 <desc>
12028 The IHostUSBDeviceFilter interface represents a global filter for a
12029 physical USB device used by the host computer. Used indirectly in
12030 <link to="IHost::USBDeviceFilters"/>.
12031
12032 Using filters of this type, the host computer determines the initial
12033 state of the USB device after it is physically attached to the
12034 host's USB controller.
12035
12036 <note>
12037 The <link to="#remote"/> attribute is ignored by this type of
12038 filters, because it makes sense only for
12039 <link to="IUSBController::deviceFilters">machine USB filters</link>.
12040 </note>
12041
12042 <see>IHost::USBDeviceFilters</see>
12043 </desc>
12044
12045 <attribute name="action" type="USBDeviceFilterAction">
12046 <desc>
12047 Action performed by the host when an attached USB device
12048 matches this filter.
12049 </desc>
12050 </attribute>
12051
12052 </interface>
12053
12054 <!--
12055 // IAudioAdapter
12056 /////////////////////////////////////////////////////////////////////////
12057 -->
12058
12059 <enum
12060 name="AudioDriverType"
12061 uuid="4bcc3d73-c2fe-40db-b72f-0c2ca9d68496"
12062 >
12063 <desc>
12064 Host audio driver type.
12065 </desc>
12066
12067 <const name="Null" value="0">
12068 <desc>Null value, also means "dummy audio driver".</desc>
12069 </const>
12070 <const name="WinMM" value="1"/>
12071 <const name="OSS" value="2"/>
12072 <const name="ALSA" value="3"/>
12073 <const name="DirectSound" value="4"/>
12074 <const name="CoreAudio" value="5"/>
12075 <const name="MMPM" value="6"/>
12076 <const name="Pulse" value="7"/>
12077 <const name="SolAudio" value="8"/>
12078 </enum>
12079
12080 <enum
12081 name="AudioControllerType"
12082 uuid="7afd395c-42c3-444e-8788-3ce80292f36c"
12083 >
12084 <desc>
12085 Virtual audio controller type.
12086 </desc>
12087
12088 <const name="AC97" value="0"/>
12089 <const name="SB16" value="1"/>
12090 </enum>
12091
12092 <interface
12093 name="IAudioAdapter" extends="$unknown"
12094 uuid="921873db-5f3f-4b69-91f9-7be9e535a2cb"
12095 wsmap="managed"
12096 >
12097 <desc>
12098 The IAudioAdapter interface represents the virtual audio adapter of
12099 the virtual machine. Used in <link to="IMachine::audioAdapter"/>.
12100 </desc>
12101 <attribute name="enabled" type="boolean">
12102 <desc>
12103 Flag whether the audio adapter is present in the
12104 guest system. If disabled, the virtual guest hardware will
12105 not contain any audio adapter. Can only be changed when
12106 the VM is not running.
12107 </desc>
12108 </attribute>
12109 <attribute name="audioController" type="AudioControllerType">
12110 <desc>
12111 The audio hardware we emulate.
12112 </desc>
12113 </attribute>
12114 <attribute name="audioDriver" type="AudioDriverType">
12115 <desc>
12116 Audio driver the adapter is connected to. This setting
12117 can only be changed when the VM is not running.
12118 </desc>
12119 </attribute>
12120 </interface>
12121
12122 <!--
12123 // IVRDPServer
12124 /////////////////////////////////////////////////////////////////////////
12125 -->
12126
12127 <enum
12128 name="VRDPAuthType"
12129 uuid="3d91887a-b67f-4b33-85bf-2da7ab1ea83a"
12130 >
12131 <desc>
12132 VRDP authentication type.
12133 </desc>
12134
12135 <const name="Null" value="0">
12136 <desc>Null value, also means "no authentication".</desc>
12137 </const>
12138 <const name="External" value="1"/>
12139 <const name="Guest" value="2"/>
12140 </enum>
12141
12142 <interface
12143 name="IVRDPServer" extends="$unknown"
12144 uuid="f4584ae7-6bce-474b-83d6-17d235e6aa89"
12145 wsmap="managed"
12146 >
12147 <attribute name="enabled" type="boolean">
12148 <desc>VRDP server status.</desc>
12149 </attribute>
12150
12151 <attribute name="port" type="unsigned long">
12152 <desc>
12153 VRDP server port number.
12154 <note>
12155 Setting the value of this property to <tt>0</tt> will reset the port
12156 number to the default value which is
12157 currently <tt>3389</tt>. Reading this property will always return a
12158 real port number, even after it has been set to <tt>0</tt> (in which
12159 case the default port is returned).
12160 </note>
12161 </desc>
12162 </attribute>
12163
12164 <attribute name="netAddress" type="wstring">
12165 <desc>VRDP server address.</desc>
12166 </attribute>
12167
12168 <attribute name="authType" type="VRDPAuthType">
12169 <desc>VRDP authentication method.</desc>
12170 </attribute>
12171
12172 <attribute name="authTimeout" type="unsigned long">
12173 <desc>Timeout for guest authentication. Milliseconds.</desc>
12174 </attribute>
12175
12176 <attribute name="allowMultiConnection" type="boolean">
12177 <desc>
12178 Flag whether multiple simultaneous connections to the VM are permitted.
12179 Note that this will be replaced by a more powerful mechanism in the future.
12180 </desc>
12181 </attribute>
12182
12183 <attribute name="reuseSingleConnection" type="boolean">
12184 <desc>
12185 Flag whether the existing connection must be dropped and a new connection
12186 must be established by the VRDP server, when a new client connects in single
12187 connection mode.
12188 </desc>
12189 </attribute>
12190
12191 </interface>
12192
12193
12194 <!--
12195 // ISharedFolder
12196 /////////////////////////////////////////////////////////////////////////
12197 -->
12198
12199 <interface
12200 name="ISharedFolder" extends="$unknown"
12201 uuid="64637bb2-9e17-471c-b8f3-f8968dd9884e"
12202 wsmap="struct"
12203 >
12204 <desc>
12205 The ISharedFolder interface represents a folder in the host computer's
12206 file system accessible from the guest OS running inside a virtual
12207 machine using an associated logical name.
12208
12209 There are three types of shared folders:
12210 <ul>
12211 <li><i>Global</i> (<link to="IVirtualBox::sharedFolders"/>), shared
12212 folders available to all virtual machines.</li>
12213 <li><i>Permanent</i> (<link to="IMachine::sharedFolders"/>),
12214 VM-specific shared folders available to the given virtual machine at
12215 startup.</li>
12216 <li><i>Transient</i> (<link to="IConsole::sharedFolders"/>),
12217 VM-specific shared folders created in the session context (for
12218 example, when the virtual machine is running) and automatically
12219 discarded when the session is closed (the VM is powered off).</li>
12220 </ul>
12221
12222 Logical names of shared folders must be unique within the given scope
12223 (global, permanent or transient). However, they do not need to be unique
12224 across scopes. In this case, the definition of the shared folder in a
12225 more specific scope takes precedence over definitions in all other
12226 scopes. The order of precedence is (more specific to more general):
12227 <ol>
12228 <li>Transient definitions</li>
12229 <li>Permanent definitions</li>
12230 <li>Global definitions</li>
12231 </ol>
12232
12233 For example, if MyMachine has a shared folder named
12234 <tt>C_DRIVE</tt> (that points to <tt>C:\\</tt>), then creating a
12235 transient shared folder named <tt>C_DRIVE</tt> (that points
12236 to <tt>C:\\\\WINDOWS</tt>) will change the definition
12237 of <tt>C_DRIVE</tt> in the guest OS so
12238 that <tt>\\\\VBOXSVR\\C_DRIVE</tt> will give access
12239 to <tt>C:\\WINDOWS</tt> instead of <tt>C:\\</tt> on the host
12240 PC. Removing the transient shared folder <tt>C_DRIVE</tt> will restore
12241 the previous (permanent) definition of <tt>C_DRIVE</tt> that points
12242 to <tt>C:\\</tt> if it still exists.
12243
12244 Note that permanent and transient shared folders of different machines
12245 are in different name spaces, so they don't overlap and don't need to
12246 have unique logical names.
12247
12248 <note>
12249 Global shared folders are not implemented in the current version of the
12250 product.
12251 </note>
12252 </desc>
12253
12254 <attribute name="name" type="wstring" readonly="yes">
12255 <desc>Logical name of the shared folder.</desc>
12256 </attribute>
12257
12258 <attribute name="hostPath" type="wstring" readonly="yes">
12259 <desc>Full path to the shared folder in the host file system.</desc>
12260 </attribute>
12261
12262 <attribute name="accessible" type="boolean" readonly="yes">
12263 <desc>
12264 Whether the folder defined by the host path is currently
12265 accessible or not.
12266 For example, the folder can be unaccessible if it is placed
12267 on the network share that is not available by the time
12268 this property is read.
12269 </desc>
12270 </attribute>
12271
12272 <attribute name="writable" type="boolean" readonly="yes">
12273 <desc>
12274 Whether the folder defined by the host path is writable or
12275 not.
12276 </desc>
12277 </attribute>
12278
12279 <attribute name="lastAccessError" type="wstring" readonly="yes">
12280 <desc>
12281 Text message that represents the result of the last accessibility
12282 check.
12283
12284 Accessibility checks are performed each time the <link to="#accessible"/>
12285 attribute is read. A @c null string is returned if the last
12286 accessibility check was successful. A non-@c null string indicates a
12287 failure and should normally describe a reason of the failure (for
12288 example, a file read error).
12289 </desc>
12290 </attribute>
12291
12292 </interface>
12293
12294 <!--
12295 // ISession
12296 /////////////////////////////////////////////////////////////////////////
12297 -->
12298
12299 <interface
12300 name="IInternalSessionControl" extends="$unknown"
12301 uuid="b26552e7-9534-4f47-b766-98eac648a90d"
12302 internal="yes"
12303 wsmap="suppress"
12304 >
12305 <method name="getPID">
12306 <desc>PID of the process that has created this Session object.
12307 </desc>
12308 <param name="pid" type="unsigned long" dir="return"/>
12309 </method>
12310
12311 <method name="getRemoteConsole">
12312 <desc>
12313 Returns the console object suitable for remote control.
12314
12315 <result name="VBOX_E_INVALID_VM_STATE">
12316 Session state prevents operation.
12317 </result>
12318 <result name="VBOX_E_INVALID_OBJECT_STATE">
12319 Session type prevents operation.
12320 </result>
12321
12322 </desc>
12323 <param name="console" type="IConsole" dir="return"/>
12324 </method>
12325
12326 <method name="assignMachine">
12327 <desc>
12328 Assigns the machine object associated with this direct-type
12329 session or informs the session that it will be a remote one
12330 (if @a machine == @c null).
12331
12332 <result name="VBOX_E_INVALID_VM_STATE">
12333 Session state prevents operation.
12334 </result>
12335 <result name="VBOX_E_INVALID_OBJECT_STATE">
12336 Session type prevents operation.
12337 </result>
12338
12339 </desc>
12340 <param name="machine" type="IMachine" dir="in"/>
12341 </method>
12342
12343 <method name="assignRemoteMachine">
12344 <desc>
12345 Assigns the machine and the (remote) console object associated with
12346 this remote-type session.
12347
12348 <result name="VBOX_E_INVALID_VM_STATE">
12349 Session state prevents operation.
12350 </result>
12351
12352 </desc>
12353 <param name="machine" type="IMachine" dir="in"/>
12354 <param name="console" type="IConsole" dir="in"/>
12355 </method>
12356
12357 <method name="updateMachineState">
12358 <desc>
12359 Updates the machine state in the VM process.
12360 Must be called only in certain cases
12361 (see the method implementation).
12362
12363 <result name="VBOX_E_INVALID_VM_STATE">
12364 Session state prevents operation.
12365 </result>
12366 <result name="VBOX_E_INVALID_OBJECT_STATE">
12367 Session type prevents operation.
12368 </result>
12369
12370 </desc>
12371 <param name="aMachineState" type="MachineState" dir="in"/>
12372 </method>
12373
12374 <method name="uninitialize">
12375 <desc>
12376 Uninitializes (closes) this session. Used by VirtualBox to close
12377 the corresponding remote session when the direct session dies
12378 or gets closed.
12379
12380 <result name="VBOX_E_INVALID_VM_STATE">
12381 Session state prevents operation.
12382 </result>
12383
12384 </desc>
12385 </method>
12386
12387 <method name="onDVDDriveChange">
12388 <desc>
12389 Triggered when settings of the DVD drive object of the
12390 associated virtual machine have changed.
12391
12392 <result name="VBOX_E_INVALID_VM_STATE">
12393 Session state prevents operation.
12394 </result>
12395 <result name="VBOX_E_INVALID_OBJECT_STATE">
12396 Session type prevents operation.
12397 </result>
12398
12399 </desc>
12400 </method>
12401
12402 <method name="onFloppyDriveChange">
12403 <desc>
12404 Triggered when settings of the floppy drive object of the
12405 associated virtual machine have changed.
12406
12407 <result name="VBOX_E_INVALID_VM_STATE">
12408 Session state prevents operation.
12409 </result>
12410 <result name="VBOX_E_INVALID_OBJECT_STATE">
12411 Session type prevents operation.
12412 </result>
12413
12414 </desc>
12415 </method>
12416
12417 <method name="onNetworkAdapterChange">
12418 <desc>
12419 Triggered when settings of a network adapter of the
12420 associated virtual machine have changed.
12421
12422 <result name="VBOX_E_INVALID_VM_STATE">
12423 Session state prevents operation.
12424 </result>
12425 <result name="VBOX_E_INVALID_OBJECT_STATE">
12426 Session type prevents operation.
12427 </result>
12428
12429 </desc>
12430 <param name="networkAdapter" type="INetworkAdapter" dir="in"/>
12431 </method>
12432
12433 <method name="onSerialPortChange">
12434 <desc>
12435 Triggered when settings of a serial port of the
12436 associated virtual machine have changed.
12437
12438 <result name="VBOX_E_INVALID_VM_STATE">
12439 Session state prevents operation.
12440 </result>
12441 <result name="VBOX_E_INVALID_OBJECT_STATE">
12442 Session type prevents operation.
12443 </result>
12444
12445 </desc>
12446 <param name="serialPort" type="ISerialPort" dir="in"/>
12447 </method>
12448
12449 <method name="onParallelPortChange">
12450 <desc>
12451 Triggered when settings of a parallel port of the
12452 associated virtual machine have changed.
12453
12454 <result name="VBOX_E_INVALID_VM_STATE">
12455 Session state prevents operation.
12456 </result>
12457 <result name="VBOX_E_INVALID_OBJECT_STATE">
12458 Session type prevents operation.
12459 </result>
12460
12461 </desc>
12462 <param name="parallelPort" type="IParallelPort" dir="in"/>
12463 </method>
12464
12465 <method name="onStorageControllerChange">
12466 <desc>
12467 Triggered when settings of a storage controller of the
12468 associated virtual machine have changed.
12469
12470 <result name="VBOX_E_INVALID_VM_STATE">
12471 Session state prevents operation.
12472 </result>
12473 <result name="VBOX_E_INVALID_OBJECT_STATE">
12474 Session type prevents operation.
12475 </result>
12476
12477 </desc>
12478 </method>
12479
12480 <method name="onVRDPServerChange">
12481 <desc>
12482 Triggered when settings of the VRDP server object of the
12483 associated virtual machine have changed.
12484
12485 <result name="VBOX_E_INVALID_VM_STATE">
12486 Session state prevents operation.
12487 </result>
12488 <result name="VBOX_E_INVALID_OBJECT_STATE">
12489 Session type prevents operation.
12490 </result>
12491
12492 </desc>
12493 </method>
12494
12495 <method name="onUSBControllerChange">
12496 <desc>
12497 Triggered when settings of the USB controller object of the
12498 associated virtual machine have changed.
12499
12500 <result name="VBOX_E_INVALID_VM_STATE">
12501 Session state prevents operation.
12502 </result>
12503 <result name="VBOX_E_INVALID_OBJECT_STATE">
12504 Session type prevents operation.
12505 </result>
12506
12507 </desc>
12508 </method>
12509
12510 <method name="onSharedFolderChange">
12511 <desc>
12512 Triggered when a permanent (global or machine) shared folder has been
12513 created or removed.
12514 <note>
12515 We don't pass shared folder parameters in this notification because
12516 the order in which parallel notifications are delivered is not defined,
12517 therefore it could happen that these parameters were outdated by the
12518 time of processing this notification.
12519 </note>
12520
12521 <result name="VBOX_E_INVALID_VM_STATE">
12522 Session state prevents operation.
12523 </result>
12524 <result name="VBOX_E_INVALID_OBJECT_STATE">
12525 Session type prevents operation.
12526 </result>
12527
12528 </desc>
12529 <param name="global" type="boolean" dir="in"/>
12530 </method>
12531
12532 <method name="onUSBDeviceAttach">
12533 <desc>
12534 Triggered when a request to capture a USB device (as a result
12535 of matched USB filters or direct call to
12536 <link to="IConsole::attachUSBDevice"/>) has completed.
12537 A @c null @a error object means success, otherwise it
12538 describes a failure.
12539
12540 <result name="VBOX_E_INVALID_VM_STATE">
12541 Session state prevents operation.
12542 </result>
12543 <result name="VBOX_E_INVALID_OBJECT_STATE">
12544 Session type prevents operation.
12545 </result>
12546
12547 </desc>
12548 <param name="device" type="IUSBDevice" dir="in"/>
12549 <param name="error" type="IVirtualBoxErrorInfo" dir="in"/>
12550 <param name="maskedInterfaces" type="unsigned long" dir="in"/>
12551 </method>
12552
12553 <method name="onUSBDeviceDetach">
12554 <desc>
12555 Triggered when a request to release the USB device (as a result
12556 of machine termination or direct call to
12557 <link to="IConsole::detachUSBDevice"/>) has completed.
12558 A @c null @a error object means success, otherwise it
12559
12560 <result name="VBOX_E_INVALID_VM_STATE">
12561 Session state prevents operation.
12562 </result>
12563 <result name="VBOX_E_INVALID_OBJECT_STATE">
12564 Session type prevents operation.
12565 </result>
12566
12567 </desc>
12568 <param name="id" type="wstring" dir="in"/>
12569 <param name="error" type="IVirtualBoxErrorInfo" dir="in"/>
12570 </method>
12571
12572 <method name="onShowWindow">
12573 <desc>
12574 Called by <link to="IMachine::canShowConsoleWindow"/> and by
12575 <link to="IMachine::showConsoleWindow"/> in order to notify
12576 console callbacks
12577 <link to="IConsoleCallback::onCanShowWindow"/>
12578 and <link to="IConsoleCallback::onShowWindow"/>.
12579
12580 <result name="VBOX_E_INVALID_OBJECT_STATE">
12581 Session type prevents operation.
12582 </result>
12583
12584 </desc>
12585 <param name="check" type="boolean" dir="in"/>
12586 <param name="canShow" type="boolean" dir="out"/>
12587 <param name="winId" type="unsigned long long" dir="out"/>
12588 </method>
12589
12590 <method name="accessGuestProperty">
12591 <desc>
12592 Called by <link to="IMachine::getGuestProperty"/> and by
12593 <link to="IMachine::setGuestProperty"/> in order to read and
12594 modify guest properties.
12595
12596 <result name="VBOX_E_INVALID_VM_STATE">
12597 Machine session is not open.
12598 </result>
12599 <result name="VBOX_E_INVALID_OBJECT_STATE">
12600 Session type is not direct.
12601 </result>
12602
12603 </desc>
12604 <param name="name" type="wstring" dir="in"/>
12605 <param name="value" type="wstring" dir="in"/>
12606 <param name="flags" type="wstring" dir="in"/>
12607 <param name="isSetter" type="boolean" dir="in"/>
12608 <param name="retValue" type="wstring" dir="out"/>
12609 <param name="retTimestamp" type="unsigned long long" dir="out"/>
12610 <param name="retFlags" type="wstring" dir="out"/>
12611 </method>
12612
12613 <method name="enumerateGuestProperties">
12614 <desc>
12615 Return a list of the guest properties matching a set of patterns along
12616 with their values, time stamps and flags.
12617
12618 <result name="VBOX_E_INVALID_VM_STATE">
12619 Machine session is not open.
12620 </result>
12621 <result name="VBOX_E_INVALID_OBJECT_STATE">
12622 Session type is not direct.
12623 </result>
12624
12625 </desc>
12626 <param name="patterns" type="wstring" dir="in">
12627 <desc>
12628 The patterns to match the properties against as a comma-separated
12629 string. If this is empty, all properties currently set will be
12630 returned.
12631 </desc>
12632 </param>
12633 <param name="key" type="wstring" dir="out" safearray="yes">
12634 <desc>
12635 The key names of the properties returned.
12636 </desc>
12637 </param>
12638 <param name="value" type="wstring" dir="out" safearray="yes">
12639 <desc>
12640 The values of the properties returned. The array entries match the
12641 corresponding entries in the @a key array.
12642 </desc>
12643 </param>
12644 <param name="timestamp" type="unsigned long long" dir="out" safearray="yes">
12645 <desc>
12646 The time stamps of the properties returned. The array entries match
12647 the corresponding entries in the @a key array.
12648 </desc>
12649 </param>
12650 <param name="flags" type="wstring" dir="out" safearray="yes">
12651 <desc>
12652 The flags of the properties returned. The array entries match the
12653 corresponding entries in the @a key array.
12654 </desc>
12655 </param>
12656 </method>
12657
12658 </interface>
12659
12660 <interface
12661 name="ISession" extends="$dispatched"
12662 uuid="12F4DCDB-12B2-4ec1-B7CD-DDD9F6C5BF4D"
12663 wsmap="managed"
12664 >
12665 <desc>
12666 The ISession interface represents a serialization primitive for virtual
12667 machines.
12668
12669 With VirtualBox, every time one wishes to manipulate a virtual machine
12670 (e.g. change its settings or start execution), a session object is
12671 required. Such an object must be passed to one of the session methods
12672 that open the given session, which then initiates the machine manipulation.
12673
12674 A session serves several purposes: it identifies to the inter-process VirtualBox
12675 code which process is currently working with the virtual machine, and it ensures
12676 that there are no incompatible requests from several processes for the
12677 same virtual machine. Session objects can therefore be thought of as mutex
12678 semaphores that lock virtual machines to prevent conflicting accesses from
12679 several processes.
12680
12681 How sessions objects are used depends on whether you use the Main API
12682 via COM or via the webservice:
12683
12684 <ul>
12685 <li>When using the COM API directly, an object of the Session class from the
12686 VirtualBox type library needs to be created. In regular COM C++ client code,
12687 this can be done by calling <tt>createLocalObject()</tt>, a standard COM API.
12688 This object will then act as a local session object in further calls to open
12689 a session.
12690 </li>
12691
12692 <li>In the webservice, the session manager (IWebsessionManager) instead creates
12693 one session object automatically when <link to="IWebsessionManager::logon" />
12694 is called. A managed object reference to that session object can be retrieved by
12695 calling <link to="IWebsessionManager::getSessionObject" />. This session object
12696 reference can then be used to open sessions.
12697 </li>
12698 </ul>
12699
12700 Sessions are mainly used in two variations:
12701
12702 <ul>
12703 <li>
12704 To start a virtual machine in a separate process, one would call
12705 <link to="IVirtualBox::openRemoteSession"/>, which requires a session
12706 object as its first parameter. This session then identifies the caller
12707 and lets him control the started machine (for example, pause machine
12708 execution or power it down) as well as be notified about machine
12709 execution state changes.
12710 </li>
12711
12712 <li>To alter machine settings, or to start machine execution within the
12713 current process, one needs to open a direct session for the machine first by
12714 calling <link to="IVirtualBox::openSession"/>. While a direct session
12715 is open within one process, no any other process may open another direct
12716 session for the same machine. This prevents the machine from being changed
12717 by other processes while it is running or while the machine is being configured.
12718 </li>
12719 </ul>
12720
12721 One also can attach to an existing direct session already opened by
12722 another process (for example, in order to send a control request to the
12723 virtual machine such as the pause or the reset request). This is done by
12724 calling <link to="IVirtualBox::openExistingSession"/>.
12725
12726 <note>
12727 Unless you are trying to write a new VirtualBox front-end that
12728 performs direct machine execution (like the VirtualBox or VBoxSDL
12729 front-ends), don't call <link to="IConsole::powerUp"/> in a direct
12730 session opened by <link to="IVirtualBox::openSession"/> and use this
12731 session only to change virtual machine settings. If you simply want to
12732 start virtual machine execution using one of the existing front-ends
12733 (for example the VirtualBox GUI or headless server), simply use
12734 <link to="IVirtualBox::openRemoteSession"/>; these front-ends
12735 will power up the machine automatically for you.
12736 </note>
12737 </desc>
12738
12739 <attribute name="state" type="SessionState" readonly="yes">
12740 <desc>Current state of this session.</desc>
12741 </attribute>
12742
12743 <attribute name="type" type="SessionType" readonly="yes">
12744 <desc>
12745 Type of this session. The value of this attribute is valid only
12746 if the session is currently open (i.e. its #state is
12747 SessionType_SessionOpen), otherwise an error will be returned.
12748 </desc>
12749 </attribute>
12750
12751 <attribute name="machine" type="IMachine" readonly="yes">
12752 <desc>Machine object associated with this session.</desc>
12753 </attribute>
12754
12755 <attribute name="console" type="IConsole" readonly="yes">
12756 <desc>Console object associated with this session.</desc>
12757 </attribute>
12758
12759 <method name="close">
12760 <desc>
12761 Closes a session that was previously opened.
12762
12763 It is recommended that every time an "open session" method (such as
12764 <link to="IVirtualBox::openRemoteSession" /> or
12765 <link to="IVirtualBox::openSession" />) has been called to
12766 manipulate a virtual machine, the caller invoke
12767 ISession::close() when it's done doing so. Since sessions are
12768 serialization primitives much like ordinary mutexes, they are
12769 best used the same way: for each "open" call, there should be
12770 a matching "close" call, even when errors occur.
12771
12772 Otherwise, if a direct session for a machine opened with
12773 <link to="IVirtualBox::openSession"/> is not explicitly closed
12774 when the application terminates, the state of the machine will
12775 be set to <link to="MachineState_Aborted" /> on the server.
12776
12777 Generally, it is recommended to close all open sessions explicitly
12778 before terminating the application (regardless of the reason for
12779 the termination).
12780
12781 <note>
12782 Do not expect the session state (<link to="ISession::state" />
12783 to return to "Closed" immediately after you invoke
12784 ISession::close(), particularly if you have started a remote
12785 session to execute the VM in a new process. The session state will
12786 automatically return to "Closed" once the VM is no longer executing,
12787 which can of course take a very long time.
12788 </note>
12789
12790 <result name="E_UNEXPECTED">
12791 Session is not open.
12792 </result>
12793
12794 </desc>
12795 </method>
12796
12797 </interface>
12798
12799 <!--
12800 // IStorageController
12801 /////////////////////////////////////////////////////////////////////////
12802 -->
12803
12804 <enum
12805 name="StorageBus"
12806 uuid="f381fdca-5953-41d0-b2bd-0542b012698d"
12807 >
12808 <desc>
12809 The connection type of the storage controller.
12810 </desc>
12811 <const name="Null" value="0">
12812 <desc>@c null value. Never used by the API.</desc>
12813 </const>
12814 <const name="IDE" value="1"/>
12815 <const name="SATA" value="2"/>
12816 <const name="SCSI" value="3"/>
12817 </enum>
12818
12819 <enum
12820 name="StorageControllerType"
12821 uuid="685387db-a837-4320-a258-08f46a22f62a"
12822 >
12823 <desc>
12824 Storage controller type.
12825 </desc>
12826
12827 <const name="Null" value="0">
12828 <desc>@c null value. Never used by the API.</desc>
12829 </const>
12830 <const name="LsiLogic" value="1"/>
12831 <const name="BusLogic" value="2"/>
12832 <const name="IntelAhci" value="3"/>
12833 <const name="PIIX3" value="4"/>
12834 <const name="PIIX4" value="5"/>
12835 <const name="ICH6" value="6"/>
12836 </enum>
12837
12838 <interface
12839 name="IStorageController" extends="$unknown"
12840 uuid="6bf8335b-d14a-44a5-9b45-ddc49ce7d5b2"
12841 wsmap="managed"
12842 >
12843 <desc>
12844 Represents a storage controller that is attached to a virtual machine
12845 (<link to="IMachine" />). Just as hard disks are attached to storage
12846 controllers in a real computer, virtual hard disks (represented by
12847 <link to="IHardDisk" />) are attached to virtual storage controllers,
12848 represented by this interface.
12849
12850 VirtualBox supports three types of virtual storage controller hardware:
12851 IDE, SCSI, and SATA (see <link to="#bus" />). Depending on which of
12852 these three is used, certain sub-types are available and can be
12853 selected in <link to="#controllerType" />.
12854 </desc>
12855
12856 <attribute name="name" type="wstring" readonly="yes">
12857 <desc>
12858 Name of the storage controller, as originally specified with
12859 <link to="IMachine::addStorageController" />. This then uniquely
12860 identifies this controller with other method calls such as
12861 <link to="IMachine::attachHardDisk" />.
12862 </desc>
12863 </attribute>
12864
12865 <attribute name="maxDevicesPerPortCount" type="unsigned long" readonly="yes">
12866 <desc>
12867 Maximum number of devices which can be attached to one port.
12868 </desc>
12869 </attribute>
12870
12871 <attribute name="minPortCount" type="unsigned long" readonly="yes">
12872 <desc>
12873 Minimum number of ports that <link to="IStorageController::portCount"/> can be set to.
12874 </desc>
12875 </attribute>
12876
12877 <attribute name="maxPortCount" type="unsigned long" readonly="yes">
12878 <desc>
12879 Maximum number of ports that <link to="IStorageController::portCount"/> can be set to.
12880 </desc>
12881 </attribute>
12882
12883 <attribute name="instance" type="unsigned long">
12884 <desc>
12885 The instance number of the device in the running VM.
12886 </desc>
12887 </attribute>
12888
12889 <attribute name="portCount" type="unsigned long">
12890 <desc>
12891 The number of currently usable ports on the controller.
12892 The minimum and maximum number of ports for one controller are
12893 stored in <link to="IStorageController::minPortCount"/>
12894 and <link to="IStorageController::maxPortCount"/>.
12895 </desc>
12896 </attribute>
12897
12898 <attribute name="bus" type="StorageBus" readonly="yes">
12899 <desc>
12900 The connection type of the storage controller.
12901 </desc>
12902 </attribute>
12903
12904 <attribute name="controllerType" type="StorageControllerType">
12905 <desc>
12906 Type of the virtual storage controller. Depending on this value,
12907 VirtualBox will provide a different virtual storage controller hardware
12908 to the guest.
12909
12910 For SCSI controllers, the default type is LsiLogic.
12911 </desc>
12912 </attribute>
12913
12914 <method name="GetIDEEmulationPort">
12915 <desc>
12916 Gets the corresponding port number which is emulated as an IDE device.
12917
12918 <result name="E_INVALIDARG">
12919 The @a devicePosition is not in the range 0 to 3.
12920 </result>
12921 <result name="E_NOTIMPL">
12922 The storage controller type is not SATAIntelAhci.
12923 </result>
12924
12925 </desc>
12926 <param name="devicePosition" type="long" dir="in"/>
12927 <param name="portNumber" type="long" dir="return"/>
12928 </method>
12929
12930 <method name="SetIDEEmulationPort">
12931 <desc>
12932 Sets the port number which is emulated as an IDE device.
12933
12934 <result name="E_INVALIDARG">
12935 The @a devicePosition is not in the range 0 to 3 or the
12936 @a portNumber is not in the range 0 to 29.
12937 </result>
12938 <result name="E_NOTIMPL">
12939 The storage controller type is not SATAIntelAhci.
12940 </result>
12941
12942 </desc>
12943 <param name="devicePosition" type="long" dir="in"/>
12944 <param name="portNumber" type="long" dir="in"/>
12945 </method>
12946
12947 </interface>
12948
12949<if target="wsdl">
12950
12951 <!--
12952 // IManagedObjectRef
12953 /////////////////////////////////////////////////////////////////////////
12954 -->
12955
12956 <interface
12957 name="IManagedObjectRef" extends="$unknown"
12958 uuid="9474d09d-2313-46de-b568-a42b8718e8ed"
12959 internal="yes"
12960 wsmap="managed"
12961 wscpp="hardcoded"
12962 >
12963 <desc>
12964 Managed object reference.
12965
12966 Only within the webservice, a managed object reference (which is really
12967 an opaque number) allows a webservice client to address an object
12968 that lives in the address space of the webservice server.
12969
12970 Behind each managed object reference, there is a COM object that lives
12971 in the webservice server's address space. The COM object is not freed
12972 until the managed object reference is released, either by an explicit
12973 call to <link to="IManagedObjectRef::release" /> or by logging off from
12974 the webservice (<link to="IWebsessionManager::logoff" />), which releases
12975 all objects created during the webservice session.
12976
12977 Whenever a method call of the VirtualBox API returns a COM object, the
12978 webservice representation of that method will instead return a
12979 managed object reference, which can then be used to invoke methods
12980 on that object.
12981 </desc>
12982
12983 <method name="getInterfaceName">
12984 <desc>
12985 Returns the name of the interface that this managed object represents,
12986 for example, "IMachine", as a string.
12987 </desc>
12988 <param name="return" type="wstring" dir="return"/>
12989 </method>
12990
12991 <method name="release">
12992 <desc>
12993 Releases this managed object reference and frees the resources that
12994 were allocated for it in the webservice server process. After calling
12995 this method, the identifier of the reference can no longer be used.
12996 </desc>
12997 </method>
12998
12999 </interface>
13000
13001 <!--
13002 // IWebsessionManager
13003 /////////////////////////////////////////////////////////////////////////
13004 -->
13005
13006 <interface
13007 name="IWebsessionManager" extends="$unknown"
13008 uuid="dea1b4c7-2de3-418a-850d-7868617f7733"
13009 internal="yes"
13010 wsmap="global"
13011 wscpp="hardcoded"
13012 >
13013 <desc>
13014 Websession manager. This provides essential services
13015 to webservice clients.
13016 </desc>
13017 <method name="logon">
13018 <desc>
13019 Logs a new client onto the webservice and returns a managed object reference to
13020 the IVirtualBox instance, which the client can then use as a basis to further
13021 queries, since all calls to the VirtualBox API are based on the IVirtualBox
13022 interface, in one way or the other.
13023 </desc>
13024 <param name="username" type="wstring" dir="in"/>
13025 <param name="password" type="wstring" dir="in"/>
13026 <param name="return" type="IVirtualBox" dir="return"/>
13027 </method>
13028
13029 <method name="getSessionObject">
13030 <desc>
13031 Returns a managed object reference to the internal ISession object that was created
13032 for this web service session when the client logged on.
13033
13034 <see>ISession</see>
13035 </desc>
13036 <param name="refIVirtualBox" type="IVirtualBox" dir="in"/>
13037 <param name="return" type="ISession" dir="return"/>
13038 </method>
13039
13040 <method name="logoff">
13041 <desc>
13042 Logs off the client who has previously logged on with <link to="IWebsessionManager::logoff" />
13043 and destroys all resources associated with the session (most importantly, all
13044 managed objects created in the server while the session was active).
13045 </desc>
13046 <param name="refIVirtualBox" type="IVirtualBox" dir="in"/>
13047 </method>
13048
13049 </interface>
13050
13051</if>
13052
13053 <!--
13054 // IPerformanceCollector & friends
13055 /////////////////////////////////////////////////////////////////////////
13056 -->
13057
13058 <interface
13059 name="IPerformanceMetric" extends="$unknown"
13060 uuid="2a1a60ae-9345-4019-ad53-d34ba41cbfe9" wsmap="managed"
13061 >
13062 <desc>
13063 The IPerformanceMetric interface represents parameters of the given
13064 performance metric.
13065 </desc>
13066
13067 <attribute name="metricName" type="wstring" readonly="yes">
13068 <desc>
13069 Name of the metric.
13070 </desc>
13071 </attribute>
13072
13073 <attribute name="object" type="$unknown" readonly="yes">
13074 <desc>
13075 Object this metric belongs to.
13076 </desc>
13077 </attribute>
13078
13079 <attribute name="description" type="wstring" readonly="yes">
13080 <desc>
13081 Textual description of the metric.
13082 </desc>
13083 </attribute>
13084
13085 <attribute name="period" type="unsigned long" readonly="yes">
13086 <desc>
13087 Time interval between samples, measured in seconds.
13088 </desc>
13089 </attribute>
13090
13091 <attribute name="count" type="unsigned long" readonly="yes">
13092 <desc>
13093 Number of recent samples retained by the performance collector for this
13094 metric.
13095
13096 When the collected sample count exceeds this number, older samples
13097 are discarded.
13098 </desc>
13099 </attribute>
13100
13101 <attribute name="unit" type="wstring" readonly="yes">
13102 <desc>
13103 Unit of measurement.
13104 </desc>
13105 </attribute>
13106
13107 <attribute name="minimumValue" type="long" readonly="yes">
13108 <desc>
13109 Minimum possible value of this metric.
13110 </desc>
13111 </attribute>
13112
13113 <attribute name="maximumValue" type="long" readonly="yes">
13114 <desc>
13115 Maximum possible value of this metric.
13116 </desc>
13117 </attribute>
13118 </interface>
13119
13120 <interface
13121 name="IPerformanceCollector" extends="$unknown"
13122 uuid="e22e1acb-ac4a-43bb-a31c-17321659b0c6"
13123 wsmap="managed"
13124 >
13125 <desc>
13126 The IPerformanceCollector interface represents a service that collects and
13127 stores performance metrics data.
13128
13129 Performance metrics are associated with objects of interfaces like IHost and
13130 IMachine. Each object has a distinct set of performance metrics.
13131 The set can be obtained with <link to="IPerformanceCollector::getMetrics"/>.
13132
13133 Metric data is collected at the specified intervals and is retained
13134 internally. The interval and the number of retained samples can be set
13135 with <link to="IPerformanceCollector::setupMetrics" />.
13136
13137 Metrics are organized hierarchically, with each level separated by a
13138 slash (/) character. Generally, the scheme for metric names is like this:
13139
13140 <tt>Category/Metric[/SubMetric][:aggregation]</tt>
13141
13142 "Category/Metric" together form the base metric name. A base metric is the
13143 smallest unit for which a sampling interval and the number of retained
13144 samples can be set. Only base metrics can be enabled and disabled. All
13145 sub-metrics are collected when their base metric is collected.
13146 Collected values for any set of sub-metrics can be queried with
13147 <link to="IPerformanceCollector::queryMetricsData" />.
13148
13149 For example "CPU/Load/User:avg"
13150 metric name stands for the "CPU" category, "Load" metric, "User" submetric,
13151 "average" aggregate. An aggregate function is computed over all retained
13152 data. Valid aggregate functions are:
13153
13154 <ul>
13155 <li>avg -- average</li>
13156 <li>min -- minimum</li>
13157 <li>max -- maximum</li>
13158 </ul>
13159
13160 When setting up
13161 metric parameters, querying metric data, enabling or disabling metrics
13162 wildcards can be used in metric names to specify a subset of metrics. For
13163 example, to select all CPU-related metrics use <tt>CPU/*</tt>, all
13164 averages can be queried using <tt>*:avg</tt> and so on. To query metric
13165 values without aggregates <tt>*:</tt> can be used.
13166
13167 The valid names for base metrics are:
13168
13169 <ul>
13170 <li>CPU/Load</li>
13171 <li>CPU/MHz</li>
13172 <li>RAM/Usage</li>
13173 </ul>
13174
13175 The general sequence for collecting and retrieving the metrics is:
13176 <ul>
13177 <li>
13178 Obtain an instance of IPerformanceCollector with
13179 <link to="IVirtualBox::performanceCollector" />
13180 </li>
13181 <li>
13182 Allocate and populate an array with references to objects the metrics
13183 will be collected for. Use references to IHost and IMachine objects.
13184 </li>
13185 <li>
13186 Allocate and populate an array with base metric names the data will be
13187 collected for.
13188 </li>
13189 <li>
13190 Call <link to="IPerformanceCollector::setupMetrics" />. From now on the
13191 metric data will be collected and stored.
13192 </li>
13193 <li>
13194 Wait for the data to get collected.
13195 </li>
13196 <li>
13197 Allocate and populate an array with references to objects the metric
13198 values will be queried for. You can re-use the object array used for
13199 setting base metrics.
13200 </li>
13201 <li>
13202 Allocate and populate an array with metric names the data will be
13203 collected for. Note that metric names differ from base metric names.
13204 </li>
13205 <li>
13206 Call <link to="IPerformanceCollector::queryMetricsData" />. The data that
13207 have been collected so far are returned. Note that the values are still
13208 retained internally and data collection continues.
13209 </li>
13210 </ul>
13211
13212 For an example of usage refer to the following files in VirtualBox SDK:
13213 <ul>
13214 <li>
13215 Java: <tt>bindings/webservice/java/jax-ws/samples/metrictest.java</tt>
13216 </li>
13217 <li>
13218 Python: <tt>bindings/xpcom/python/sample/shellcommon.py</tt>
13219 </li>
13220 </ul>
13221 </desc>
13222
13223 <attribute name="metricNames" type="wstring" readonly="yes" safearray="yes">
13224 <desc>
13225 Array of unique names of metrics.
13226
13227 This array represents all metrics supported by the performance
13228 collector. Individual objects do not necessarily support all of them.
13229 <link to="IPerformanceCollector::getMetrics"/> can be used to get the
13230 list of supported metrics for a particular object.
13231 </desc>
13232 </attribute>
13233
13234 <method name="getMetrics">
13235 <desc>
13236 Returns parameters of specified metrics for a set of objects.
13237 <note>
13238 @c Null metrics array means all metrics. @c Null object array means
13239 all existing objects.
13240 </note>
13241 </desc>
13242 <param name="metricNames" type="wstring" dir="in" safearray="yes">
13243 <desc>
13244 Metric name filter. Currently, only a comma-separated list of metrics
13245 is supported.
13246 </desc>
13247 </param>
13248 <param name="objects" type="$unknown" dir="in" safearray="yes">
13249 <desc>
13250 Set of objects to return metric parameters for.
13251 </desc>
13252 </param>
13253 <param name="metrics" type="IPerformanceMetric" dir="return" safearray="yes">
13254 <desc>
13255 Array of returned metric parameters.
13256 </desc>
13257 </param>
13258 </method>
13259
13260 <method name="setupMetrics">
13261 <desc>
13262 Sets parameters of specified base metrics for a set of objects. Returns
13263 an array of <link to="IPerformanceMetric" /> describing the metrics have
13264 been affected.
13265 <note>
13266 @c Null or empty metric name array means all metrics. @c Null or empty
13267 object array means all existing objects. If metric name array contains
13268 a single element and object array contains many, the single metric
13269 name array element is applied to each object array element to form
13270 metric/object pairs.
13271 </note>
13272 </desc>
13273 <param name="metricNames" type="wstring" dir="in" safearray="yes">
13274 <desc>
13275 Metric name filter. Comma-separated list of metrics with wildcard
13276 support.
13277 </desc>
13278 </param>
13279 <param name="objects" type="$unknown" dir="in" safearray="yes">
13280 <desc>
13281 Set of objects to setup metric parameters for.
13282 </desc>
13283 </param>
13284 <param name="period" type="unsigned long" dir="in">
13285 <desc>
13286 Time interval in seconds between two consecutive samples of performance
13287 data.
13288 </desc>
13289 </param>
13290 <param name="count" type="unsigned long" dir="in">
13291 <desc>
13292 Number of samples to retain in performance data history. Older samples
13293 get discarded.
13294 </desc>
13295 </param>
13296 <param name="affectedMetrics" type="IPerformanceMetric" dir="return" safearray="yes">
13297 <desc>
13298 Array of metrics that have been modified by the call to this method.
13299 </desc>
13300 </param>
13301 </method>
13302
13303 <method name="enableMetrics">
13304 <desc>
13305 Turns on collecting specified base metrics. Returns an array of
13306 <link to="IPerformanceMetric" /> describing the metrics have been
13307 affected.
13308 <note>
13309 @c Null or empty metric name array means all metrics. @c Null or empty
13310 object array means all existing objects. If metric name array contains
13311 a single element and object array contains many, the single metric
13312 name array element is applied to each object array element to form
13313 metric/object pairs.
13314 </note>
13315 </desc>
13316 <param name="metricNames" type="wstring" dir="in" safearray="yes">
13317 <desc>
13318 Metric name filter. Comma-separated list of metrics with wildcard
13319 support.
13320 </desc>
13321 </param>
13322 <param name="objects" type="$unknown" dir="in" safearray="yes">
13323 <desc>
13324 Set of objects to enable metrics for.
13325 </desc>
13326 </param>
13327 <param name="affectedMetrics" type="IPerformanceMetric" dir="return" safearray="yes">
13328 <desc>
13329 Array of metrics that have been modified by the call to this method.
13330 </desc>
13331 </param>
13332 </method>
13333
13334 <method name="disableMetrics">
13335 <desc>
13336 Turns off collecting specified base metrics. Returns an array of
13337 <link to="IPerformanceMetric" /> describing the metrics have been
13338 affected.
13339 <note>
13340 @c Null or empty metric name array means all metrics. @c Null or empty
13341 object array means all existing objects. If metric name array contains
13342 a single element and object array contains many, the single metric
13343 name array element is applied to each object array element to form
13344 metric/object pairs.
13345 </note>
13346 </desc>
13347 <param name="metricNames" type="wstring" dir="in" safearray="yes">
13348 <desc>
13349 Metric name filter. Comma-separated list of metrics with wildcard
13350 support.
13351 </desc>
13352 </param>
13353 <param name="objects" type="$unknown" dir="in" safearray="yes">
13354 <desc>
13355 Set of objects to disable metrics for.
13356 </desc>
13357 </param>
13358 <param name="affectedMetrics" type="IPerformanceMetric" dir="return" safearray="yes">
13359 <desc>
13360 Array of metrics that have been modified by the call to this method.
13361 </desc>
13362 </param>
13363 </method>
13364
13365 <method name="queryMetricsData">
13366 <desc>
13367 Queries collected metrics data for a set of objects.
13368
13369 The data itself and related metric information are returned in seven
13370 parallel and one flattened array of arrays. Elements of
13371 <tt>returnMetricNames, returnObjects, returnUnits, returnScales,
13372 returnSequenceNumbers, returnDataIndices and returnDataLengths</tt> with
13373 the same index describe one set of values corresponding to a single
13374 metric.
13375
13376 The <tt>returnData</tt> parameter is a flattened array of arrays. Each
13377 start and length of a sub-array is indicated by
13378 <tt>returnDataIndices</tt> and <tt>returnDataLengths</tt>. The first
13379 value for metric <tt>metricNames[i]</tt> is at
13380 <tt>returnData[returnIndices[i]]</tt>.
13381
13382 <note>
13383 @c Null or empty metric name array means all metrics. @c Null or empty
13384 object array means all existing objects. If metric name array contains
13385 a single element and object array contains many, the single metric
13386 name array element is applied to each object array element to form
13387 metric/object pairs.
13388 </note>
13389 <note>
13390 Data collection continues behind the scenes after call to
13391 @c queryMetricsData. The return data can be seen as the snapshot of
13392 the current state at the time of @c queryMetricsData call. The
13393 internally kept metric values are not cleared by the call. This makes
13394 possible querying different subsets of metrics or aggregates with
13395 subsequent calls. If periodic querying is needed it is highly
13396 suggested to query the values with @c interval*count period to avoid
13397 confusion. This way a completely new set of data values will be
13398 provided by each query.
13399 </note>
13400 </desc>
13401 <param name="metricNames" type="wstring" dir="in" safearray="yes">
13402 <desc>
13403 Metric name filter. Comma-separated list of metrics with wildcard
13404 support.
13405 </desc>
13406 </param>
13407 <param name="objects" type="$unknown" dir="in" safearray="yes">
13408 <desc>
13409 Set of objects to query metrics for.
13410 </desc>
13411 </param>
13412 <param name="returnMetricNames" type="wstring" dir="out" safearray="yes">
13413 <desc>
13414 Names of metrics returned in @c returnData.
13415 </desc>
13416 </param>
13417 <param name="returnObjects" type="$unknown" dir="out" safearray="yes">
13418 <desc>
13419 Objects associated with metrics returned in @c returnData.
13420 </desc>
13421 </param>
13422 <param name="returnUnits" type="wstring" dir="out" safearray="yes">
13423 <desc>
13424 Units of measurement for each returned metric.
13425 </desc>
13426 </param>
13427 <param name="returnScales" type="unsigned long" dir="out" safearray="yes">
13428 <desc>
13429 Divisor that should be applied to return values in order to get
13430 floating point values. For example:
13431 <tt>(double)returnData[returnDataIndices[0]+i] / returnScales[0]</tt>
13432 will retrieve the floating point value of i-th sample of the first
13433 metric.
13434 </desc>
13435 </param>
13436 <param name="returnSequenceNumbers" type="unsigned long" dir="out" safearray="yes">
13437 <desc>
13438 Sequence numbers of the first elements of value sequences of particular metrics
13439 returned in @c returnData. For aggregate metrics it is the sequence number of
13440 the sample the aggregate started calculation from.
13441 </desc>
13442 </param>
13443 <param name="returnDataIndices" type="unsigned long" dir="out" safearray="yes">
13444 <desc>
13445 Indices of the first elements of value sequences of particular metrics
13446 returned in @c returnData.
13447 </desc>
13448 </param>
13449 <param name="returnDataLengths" type="unsigned long" dir="out" safearray="yes">
13450 <desc>
13451 Lengths of value sequences of particular metrics.
13452 </desc>
13453 </param>
13454 <param name="returnData" type="long" dir="return" safearray="yes">
13455 <desc>
13456 Flattened array of all metric data containing sequences of values for
13457 each metric.
13458 </desc>
13459 </param>
13460 </method>
13461
13462 </interface>
13463
13464 <module name="VBoxSVC" context="LocalServer">
13465 <class name="VirtualBox" uuid="B1A7A4F2-47B9-4A1E-82B2-07CCD5323C3F"
13466 namespace="virtualbox.org">
13467 <interface name="IVirtualBox" default="yes"/>
13468 </class>
13469 </module>
13470
13471 <module name="VBoxC" context="InprocServer" threadingModel="Free">
13472 <class name="Session" uuid="3C02F46D-C9D2-4f11-A384-53F0CF917214"
13473 namespace="virtualbox.org">
13474 <interface name="ISession" default="yes"/>
13475 </class>
13476 </module>
13477
13478</library>
13479
13480</idl>
13481
13482<!-- 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