VirtualBox

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

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

Main: refined docs on takeScreenShotSlow()

  • Property svn:eol-style set to native
File size: 496.3 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, <tt>NULL</tt>). 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 <tt>true</tt>. The same relates to transient states for which
497 the condition <tt>FirstOnline &lt;= state &lt;= LastOnline</tt> must be
498 <tt>true</tt>.
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 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 (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 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 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. <tt>null</tt> means the
1186 current machine state has been discarded (restored from
1187 the current snapshot).
1188 </desc>
1189 </param>
1190 </method>
1191
1192 <method name="onSnapshotChange">
1193 <desc>
1194 Snapshot properties (name and/or description) have been changed.
1195 <see>ISnapshot</see>
1196 </desc>
1197 <param name="machineId" type="wstring" dir="in">
1198 <desc>ID of the machine this event relates to.</desc>
1199 </param>
1200 <param name="snapshotId" type="wstring" dir="in">
1201 <desc>ID of the changed snapshot.</desc>
1202 </param>
1203 </method>
1204
1205 <method name="onGuestPropertyChange">
1206 <desc>
1207 Notification when a guest property has changed.
1208 </desc>
1209 <param name="machineId" type="wstring" dir="in">
1210 <desc>
1211 ID of the machine this event relates to.
1212 </desc>
1213 </param>
1214 <param name="name" type="wstring" dir="in">
1215 <desc>
1216 The name of the property that has changed.
1217 </desc>
1218 </param>
1219 <param name="value" type="wstring" dir="in">
1220 <desc>
1221 The new property value.
1222 </desc>
1223 </param>
1224 <param name="flags" type="wstring" dir="in">
1225 <desc>
1226 The new property flags.
1227 </desc>
1228 </param>
1229 </method>
1230
1231 </interface>
1232
1233 <interface
1234 name="IDHCPServer" extends="$unknown"
1235 uuid="6cfe387c-74fb-4ca7-bff6-973bec8af7a3"
1236 wsmap="managed"
1237 >
1238 <desc>
1239 The IDHCPServer interface represents the vbox dhcp server configuration.
1240
1241 To enumerate all the dhcp servers on the host, use the
1242 <link to="IVirtualBox::DHCPServers"/> attribute.
1243 </desc>
1244
1245 <attribute name="enabled" type="boolean">
1246 <desc>
1247 specifies if the dhcp server is enabled
1248 </desc>
1249 </attribute>
1250
1251 <attribute name="IPAddress" type="wstring" readonly="yes">
1252 <desc>
1253 specifies server IP
1254 </desc>
1255 </attribute>
1256
1257 <attribute name="networkMask" type="wstring" readonly="yes">
1258 <desc>
1259 specifies server network mask
1260 </desc>
1261 </attribute>
1262
1263 <attribute name="networkName" type="wstring" readonly="yes">
1264 <desc>
1265 specifies internal network name the server is used for
1266 </desc>
1267 </attribute>
1268
1269 <attribute name="lowerIP" type="wstring" readonly="yes">
1270 <desc>
1271 specifies from IP adrres in server address range
1272 </desc>
1273 </attribute>
1274
1275 <attribute name="upperIP" type="wstring" readonly="yes">
1276 <desc>
1277 specifies to IP adrres in server address range
1278 </desc>
1279 </attribute>
1280
1281 <method name="setConfiguration">
1282 <desc>
1283 configures the server
1284 <result name="E_INVALIDARG">
1285 invalid configuration supplied
1286 </result>
1287 </desc>
1288 <param name="IPAddress" type="wstring" dir="in">
1289 <desc>
1290 server IP address
1291 </desc>
1292 </param>
1293 <param name="networkMask" type="wstring" dir="in">
1294 <desc>
1295 server network mask
1296 </desc>
1297 </param>
1298 <param name="FromIPAddress" type="wstring" dir="in">
1299 <desc>
1300 server From IP address for address range
1301 </desc>
1302 </param>
1303 <param name="ToIPAddress" type="wstring" dir="in">
1304 <desc>
1305 server To IP address for address range
1306 </desc>
1307 </param>
1308 </method>
1309
1310 <method name="start">
1311 <desc>
1312 Starts DHCP server process.
1313 <result name="E_FAIL">
1314 Failed to start the process.
1315 </result>
1316 </desc>
1317 <param name="networkName" type="wstring" dir="in">
1318 <desc>
1319 Name of internal network DHCP server should attach to.
1320 </desc>
1321 </param>
1322 <param name="trunkName" type="wstring" dir="in">
1323 <desc>
1324 Name of internal network trunk.
1325 </desc>
1326 </param>
1327 <param name="trunkType" type="wstring" dir="in">
1328 <desc>
1329 Type of internal network trunk.
1330 </desc>
1331 </param>
1332 </method>
1333
1334 <method name="stop">
1335 <desc>
1336 Stops DHCP server process.
1337 <result name="E_FAIL">
1338 Failed to stop the process.
1339 </result>
1340 </desc>
1341 </method>
1342 </interface>
1343
1344 <interface
1345 name="IVirtualBox" extends="$dispatched"
1346 uuid="54bf05ec-3fa9-4735-b92e-76e7c6c7e2be"
1347 wsmap="managed"
1348 >
1349 <desc>
1350 The IVirtualBox interface represents the main interface exposed by the
1351 product that provides virtual machine management.
1352
1353 An instance of IVirtualBox is required for the product to do anything
1354 useful. Even though the interface does not expose this, internally,
1355 IVirtualBox is implemented as a singleton and actually lives in the
1356 process of the VirtualBox server (VBoxSVC.exe). This makes sure that
1357 IVirtualBox can track the state of all virtual machines on a particular
1358 host, regardless of which frontend started them.
1359
1360 To enumerate all the virtual machines on the host, use the
1361 <link to="IVirtualBox::machines"/> attribute.
1362 </desc>
1363
1364 <attribute name="version" type="wstring" readonly="yes">
1365 <desc>
1366 A string representing the version number of the product. The
1367 format is 3 integer numbers divided by dots (e.g. 1.0.1). The
1368 last number represents the build number and will frequently change.
1369 </desc>
1370 </attribute>
1371
1372 <attribute name="revision" type="unsigned long" readonly="yes">
1373 <desc>
1374 The internal build revision number of the product.
1375 </desc>
1376 </attribute>
1377
1378 <attribute name="packageType" type="wstring" readonly="yes">
1379 <desc>
1380 A string representing the package type of this product. The
1381 format is OS_ARCH_DIST where OS is either WINDOWS, LINUX,
1382 SOLARIS, DARWIN. ARCH is either 32BITS or 64BITS. DIST
1383 is either GENERIC, UBUNTU_606, UBUNTU_710, or something like
1384 this.
1385 </desc>
1386 </attribute>
1387
1388 <attribute name="homeFolder" type="wstring" readonly="yes">
1389 <desc>
1390 Full path to the directory where the global settings file,
1391 <tt>VirtualBox.xml</tt>, is stored.
1392
1393 In this version of VirtualBox, the value of this property is
1394 always <tt>&lt;user_dir&gt;/.VirtualBox</tt> (where
1395 <tt>&lt;user_dir&gt;</tt> is the path to the user directory,
1396 as determined by the host OS), and cannot be changed.
1397
1398 This path is also used as the base to resolve relative paths in
1399 places where relative paths are allowed (unless otherwise
1400 expressly indicated).
1401 </desc>
1402 </attribute>
1403
1404 <attribute name="settingsFilePath" type="wstring" readonly="yes">
1405 <desc>
1406 Full name of the global settings file.
1407 The value of this property corresponds to the value of
1408 <link to="#homeFolder"/> plus <tt>/VirtualBox.xml</tt>.
1409 </desc>
1410 </attribute>
1411
1412 <attribute name="settingsFileVersion" type="wstring" readonly="yes">
1413 <desc>
1414 Current version of the format of the global VirtualBox settings file
1415 (<tt>VirtualBox.xml</tt>).
1416
1417 The version string has the following format:
1418 <pre>
1419 x.y-platform
1420 </pre>
1421 where <tt>x</tt> and <tt>y</tt> are the major and the minor format
1422 versions, and <tt>platform</tt> is the platform identifier.
1423
1424 The current version usually matches the value of the
1425 <link to="#settingsFormatVersion"/> attribute unless the
1426 settings file was created by an older version of VirtualBox and there
1427 was a change of the settings file format since then.
1428
1429 Note that VirtualBox automatically converts settings files from older
1430 versions to the most recent version when reading them (usually at
1431 VirtualBox startup) but it doesn't save the changes back until
1432 you call a method that implicitly saves settings (such as
1433 <link to="#setExtraData"/>) or call <link to="#saveSettings"/>
1434 explicitly. Therefore, if the value of this attribute differs from the
1435 value of <link to="#settingsFormatVersion"/>, then it
1436 means that the settings file was converted but the result of the
1437 conversion is not yet saved to disk.
1438
1439 The above feature may be used by interactive front-ends to inform users
1440 about the settings file format change and offer them to explicitly save
1441 all converted settings files (the global and VM-specific ones),
1442 optionally create backup copies of the old settings files before saving,
1443 etc.
1444
1445 <see>settingsFormatVersion, saveSettingsWithBackup()</see>
1446 </desc>
1447 </attribute>
1448
1449 <attribute name="settingsFormatVersion" type="wstring" readonly="yes">
1450 <desc>
1451 Most recent version of the settings file format.
1452
1453 The version string has the following format:
1454 <pre>
1455 x.y-platform
1456 </pre>
1457 where <tt>x</tt> and <tt>y</tt> are the major and the minor format
1458 versions, and <tt>platform</tt> is the platform identifier.
1459
1460 VirtualBox uses this version of the format when saving settings files
1461 (either as a result of method calls that require to save settings or as
1462 a result of an explicit call to <link to="#saveSettings"/>).
1463
1464 <see>settingsFileVersion</see>
1465 </desc>
1466 </attribute>
1467
1468 <attribute name="host" type="IHost" readonly="yes">
1469 <desc>Associated host object.</desc>
1470 </attribute>
1471
1472 <attribute name="systemProperties" type="ISystemProperties" readonly="yes">
1473 <desc>Associated system information object.</desc>
1474 </attribute>
1475
1476 <attribute name="machines" type="IMachine" readonly="yes" safearray="yes">
1477 <desc>
1478 Array of machine objects registered within this VirtualBox instance.
1479 </desc>
1480 </attribute>
1481
1482 <attribute name="hardDisks" type="IHardDisk" readonly="yes" safearray="yes">
1483 <desc>
1484 Array of hard disk objects known to this VirtualBox installation.
1485
1486 This array contains only base (root) hard disks. All differencing
1487 hard disks of the given base hard disk can be enumerated using
1488 <link to="IHardDisk::children"/>.
1489 </desc>
1490 </attribute>
1491
1492 <attribute name="DVDImages" type="IDVDImage" readonly="yes" safearray="yes">
1493 <desc>
1494 Array of CD/DVD image objects registered with this VirtualBox instance.
1495 </desc>
1496 </attribute>
1497
1498 <attribute name="floppyImages" type="IFloppyImage" readonly="yes" safearray="yes">
1499 <desc>
1500 Array of floppy image objects registered with this VirtualBox instance.
1501 </desc>
1502 </attribute>
1503
1504 <attribute name="progressOperations" type="IProgress" readonly="yes" safearray="yes"/>
1505
1506 <attribute name="guestOSTypes" type="IGuestOSType" readonly="yes" safearray="yes"/>
1507
1508 <attribute name="sharedFolders" type="ISharedFolder" readonly="yes" safearray="yes">
1509 <desc>
1510 Collection of global shared folders. Global shared folders are
1511 available to all virtual machines.
1512
1513 New shared folders are added to the collection using
1514 <link to="#createSharedFolder"/>. Existing shared folders can be
1515 removed using <link to="#removeSharedFolder"/>.
1516
1517 <note>
1518 In the current version of the product, global shared folders are not
1519 implemented and therefore this collection is always empty.
1520 </note>
1521 </desc>
1522 </attribute>
1523
1524 <attribute name="performanceCollector" type="IPerformanceCollector" readonly="yes">
1525 <desc>
1526 Associated performance collector object.
1527 </desc>
1528 </attribute>
1529
1530 <attribute name="DHCPServers" type="IDHCPServer" safearray="yes" readonly="yes">
1531 <desc>
1532 dhcp server settings.
1533 </desc>
1534 </attribute>
1535
1536 <method name="createMachine">
1537 <desc>
1538 Creates a new virtual machine.
1539
1540 The new machine is created unregistered, with the initial configuration
1541 set according to the specified guest OS type. A typical sequence of
1542 actions to create a new virtual machine is as follows:
1543
1544 <ol>
1545 <li>
1546 Call this method to have a new machine created. The returned machine
1547 object will be "mutable" allowing to change any machine property.
1548 </li>
1549
1550 <li>
1551 Configure the machine using the appropriate attributes and methods.
1552 </li>
1553
1554 <li>
1555 Call <link to="IMachine::saveSettings" /> to write the settings
1556 to the machine's XML settings file. The configuration of the newly
1557 created machine will not be saved to disk until this method is
1558 called.
1559 </li>
1560
1561 <li>
1562 Call <link to="#registerMachine" /> to add the machine to the list
1563 of machines known to VirtualBox.
1564 </li>
1565 </ol>
1566
1567 You should specify valid name for the newly created machine when calling
1568 this method. See the <link to="IMachine::name"/> attribute description
1569 for more details about the machine name.
1570
1571 The specified guest OS type identifier must match an ID of one of known
1572 guest OS types listed in the <link to="IVirtualBox::guestOSTypes"/>
1573 array.
1574
1575 Every machine has a <i>settings file</i> that is used to store
1576 the machine configuration. This file is stored in a directory called the
1577 <i>machine settings subfolder</i>. Both the settings subfolder and file
1578 will have a name that corresponds to the name of the virtual machine.
1579 You can specify where to create the machine setting subfolder using the
1580 @a baseFolder argument. The base folder can be absolute (full path) or
1581 relative to the <link to="IVirtualBox::homeFolder">VirtualBox home
1582 directory</link>.
1583
1584 If @a baseFolder is a null or empty string (which is recommended), the
1585 <link to="ISystemProperties::defaultMachineFolder">default machine
1586 settings folder</link> will be used as a base folder for the created
1587 machine. Otherwise the given base folder will be used. In either case,
1588 the full path to the resulting settings file has the following
1589 structure:
1590 <pre>
1591 &lt;base_folder&gt;/&lt;machine_name&gt;/&lt;machine_name&gt;.xml
1592 </pre>
1593
1594 Note that if the resulting settings file already exists, this method
1595 will fail with <link to="VBOX_E_FILE_ERROR"/>.
1596
1597 Optionally, you may specify an UUID of to assign to the created machine.
1598 However, this is not recommended and you should normally pass an empty
1599 (null) UUID to this method so that a new UUID will be automatically
1600 generated for every created machine. You can use UUID
1601 00000000-0000-0000-0000-000000000000 as null value.
1602
1603 <note>
1604 There is no way to change the name of the settings file or
1605 subfolder of the created machine directly.
1606 </note>
1607
1608 <result name="VBOX_E_OBJECT_NOT_FOUND">
1609 @a osTypeId is invalid.
1610 </result>
1611 <result name="VBOX_E_FILE_ERROR">
1612 Resulting settings file name is invalid or the settings file already
1613 exists or could not be created due to an I/O error.
1614 </result>
1615 <result name="E_INVALIDARG">
1616 @a name is empty or null.
1617 </result>
1618 </desc>
1619
1620 <param name="name" type="wstring" dir="in">
1621 <desc>Machine name.</desc>
1622 </param>
1623 <param name="osTypeId" type="wstring" dir="in">
1624 <desc>Guest OS Type ID.</desc>
1625 </param>
1626 <param name="baseFolder" type="wstring" dir="in">
1627 <desc>Base machine folder (optional).</desc>
1628 </param>
1629 <param name="id" type="wstring" dir="in">
1630 <desc>Machine UUID (optional).</desc>
1631 </param>
1632 <param name="machine" type="IMachine" dir="return">
1633 <desc>Created machine object.</desc>
1634 </param>
1635 </method>
1636
1637 <method name="createLegacyMachine">
1638 <desc>
1639 Creates a new virtual machine in "legacy" mode, using the specified
1640 settings file to store machine settings.
1641
1642 As opposed to machines created by <link to="#createMachine"/>,
1643 the settings file of the machine created in "legacy" mode is not
1644 automatically renamed when the machine name is changed -- it will always
1645 remain the same as specified in this method call.
1646
1647 The specified settings file name can be absolute (full path) or relative
1648 to the <link to="IVirtualBox::homeFolder">VirtualBox home
1649 directory</link>. If the file name doesn't contain an extension, the
1650 default extension (.xml) will be appended.
1651
1652 Note that the configuration of the newly created machine is not
1653 saved to disk (and therefore no settings file is created)
1654 until <link to="IMachine::saveSettings"/> is called. If the
1655 specified settings file already exists, this method
1656 will fail with <link to="VBOX_E_FILE_ERROR"/>.
1657
1658 See <link to="#createMachine"/> for more information.
1659
1660 @deprecated This method may be removed later. Use <link
1661 to="IVirtualBox::createMachine"/> instead.
1662
1663 <note>
1664 There is no way to change the name of the settings file
1665 of the machine created in "legacy" mode.
1666 </note>
1667
1668 <result name="VBOX_E_OBJECT_NOT_FOUND">
1669 @a osTypeId is invalid.
1670 </result>
1671 <result name="VBOX_E_FILE_ERROR">
1672 @a settingsFile is invalid or the settings file already exists or
1673 could not be created due to an I/O error.
1674 </result>
1675 <result name="E_INVALIDARG">
1676 @a name or @a settingsFile is empty or null.
1677 </result>
1678 </desc>
1679
1680 <param name="name" type="wstring" dir="in">
1681 <desc>Machine name.</desc>
1682 </param>
1683 <param name="osTypeId" type="wstring" dir="in">
1684 <desc>Machine OS Type ID.</desc>
1685 </param>
1686 <param name="settingsFile" type="wstring" dir="in">
1687 <desc>Name of the machine settings file.</desc>
1688 </param>
1689 <param name="id" type="wstring" dir="in">
1690 <desc>Machine UUID (optional).</desc>
1691 </param>
1692 <param name="machine" type="IMachine" dir="return">
1693 <desc>Created machine object.</desc>
1694 </param>
1695 </method>
1696
1697 <method name="openMachine">
1698 <desc>
1699 Opens a virtual machine from the existing settings file.
1700 The opened machine remains unregistered until you call
1701 <link to="#registerMachine"/>.
1702
1703 The specified settings file name can be absolute
1704 (full path) or relative to the <link to="IVirtualBox::homeFolder">
1705 VirtualBox home directory</link>. This file must exist
1706 and must be a valid machine settings file whose contents
1707 will be used to construct the machine object.
1708
1709 @deprecated Will be removed soon.
1710 <result name="VBOX_E_FILE_ERROR">
1711 Settings file name invalid, not found or sharing violation.
1712 </result>
1713 </desc>
1714 <param name="settingsFile" type="wstring" dir="in">
1715 <desc>
1716 Name of the machine settings file.
1717 </desc>
1718 </param>
1719 <param name="machine" type="IMachine" dir="return">
1720 <desc>Opened machine object.</desc>
1721 </param>
1722 <note>
1723 <link to="IMachine::settingsModified"/> will return
1724 false for the created machine, until any of machine settings
1725 are changed.
1726 </note>
1727 </method>
1728
1729 <method name="registerMachine">
1730 <desc>
1731
1732 Registers the machine previously created using
1733 <link to="#createMachine"/> or opened using
1734 <link to="#openMachine"/> within this VirtualBox installation. After
1735 successful method invocation, the
1736 <link to="IVirtualBoxCallback::onMachineRegistered"/> signal is sent
1737 to all registered callbacks.
1738
1739 <note>
1740 This method implicitly calls <link to="IMachine::saveSettings"/>
1741 to save all current machine settings before registering it.
1742 </note>
1743
1744 <result name="VBOX_E_OBJECT_NOT_FOUND">
1745 No matching virtual machine found.
1746 </result>
1747 <result name="VBOX_E_INVALID_OBJECT_STATE">
1748 Virtual machine was not created within this VirtualBox instance.
1749 </result>
1750
1751 </desc>
1752 <param name="machine" type="IMachine" dir="in"/>
1753 </method>
1754
1755 <method name="getMachine">
1756 <desc>
1757 Attempts to find a virtual machine given its UUID.
1758 To look up a machine by name, use <link to="IVirtualBox::findMachine" />
1759 instead.
1760
1761 <result name="VBOX_E_OBJECT_NOT_FOUND">
1762 Could not find registered machine matching @a id.
1763 </result>
1764
1765 </desc>
1766 <param name="id" type="wstring" dir="in"/>
1767 <param name="machine" type="IMachine" dir="return"/>
1768 </method>
1769
1770 <method name="findMachine">
1771 <desc>
1772 Attempts to find a virtual machine given its name.
1773 To look up a machine by UUID, use <link to="IVirtualBox::getMachine" />
1774 instead.
1775
1776 <result name="VBOX_E_OBJECT_NOT_FOUND">
1777 Could not find registered machine matching @a name.
1778 </result>
1779
1780 </desc>
1781 <param name="name" type="wstring" dir="in"/>
1782 <param name="machine" type="IMachine" dir="return"/>
1783 </method>
1784
1785 <method name="unregisterMachine">
1786 <desc>
1787
1788 Unregisters the machine previously registered using
1789 <link to="#registerMachine"/>. After successful method invocation, the
1790 <link to="IVirtualBoxCallback::onMachineRegistered"/> signal is sent
1791 to all registered callbacks.
1792
1793 <note>
1794 The specified machine must not be in the Saved state, have an open
1795 (or a spawning) direct session associated with it, have snapshots or
1796 have hard disks attached.
1797 </note>
1798
1799 <note>
1800 This method implicitly calls <link to="IMachine::saveSettings"/> to
1801 save all current machine settings before unregistering it.
1802 </note>
1803
1804 <note>
1805 If the given machine is inaccessible (see
1806 <link to="IMachine::accessible"/>), it will be unregistered and
1807 fully uninitialized right afterwards. As a result, the returned
1808 machine object will be unusable and an attempt to call
1809 <b>any</b> method will return the "Object not ready" error.
1810 </note>
1811
1812 <result name="VBOX_E_OBJECT_NOT_FOUND">
1813 Could not find registered machine matching @a id.
1814 </result>
1815 <result name="VBOX_E_INVALID_VM_STATE">
1816 Machine is in Saved state.
1817 </result>
1818 <result name="VBOX_E_INVALID_OBJECT_STATE">
1819 Machine has snapshot or open session or hard disk attached.
1820 </result>
1821
1822 </desc>
1823 <param name="id" type="wstring" dir="in">
1824 <desc>UUID of the machine to unregister.</desc>
1825 </param>
1826 <param name="machine" type="IMachine" dir="return">
1827 <desc>Unregistered machine object.</desc>
1828 </param>
1829 </method>
1830
1831 <method name="createAppliance">
1832 <desc>
1833 Creates a new appliance object, which represents an appliance in the Open Virtual Machine
1834 Format (OVF). This can then be used to import an OVF appliance into VirtualBox or to export
1835 machines as an OVF appliance; see the documentation for <link to="IAppliance" /> for details.
1836 </desc>
1837 <param name="appliance" type="IAppliance" dir="return">
1838 <desc>New appliance.</desc>
1839 </param>
1840 </method>
1841
1842 <method name="createHardDisk">
1843 <desc>
1844 Creates a new base hard disk object that will use the given storage
1845 format and location for hard disk data.
1846
1847 Note that the actual storage unit is not created by this method. In
1848 order to do it, and before you are able to attach the created hard disk
1849 to virtual machines, you must call one of the following methods to
1850 allocate a format-specific storage unit at the specified location:
1851 <ul>
1852 <li><link to="IHardDisk::createBaseStorage"/></li>
1853 <li><link to="IHardDisk::createDiffStorage"/></li>
1854 </ul>
1855
1856 Some hard disk attributes, such as <link to="IHardDisk::id"/>, may
1857 remain uninitialized until the hard disk storage unit is successfully
1858 created by one of the above methods.
1859
1860 After the storage unit is successfully created, the hard disk gets
1861 remembered by this VirtualBox installation and will be accessible
1862 through <link to="#getHardDisk"/> and <link to="#findHardDisk"/>
1863 methods. Remembered root (base) hard disks are also returned as part of
1864 the <link to="#hardDisks"/> array. See IHardDisk for more details.
1865
1866 The list of all storage formats supported by this VirtualBox
1867 installation can be obtained using
1868 <link to="ISystemProperties::hardDiskFormats"/>. If the @a format
1869 attribute is empty or <tt>null</tt> then the default storage format
1870 specified by <link to="ISystemProperties::defaultHardDiskFormat"/> will
1871 be used for creating a storage unit of the hard disk.
1872
1873 Note that the format of the location string is storage format specific.
1874 See <link to="IMedium::location"/>, IHardDisk and
1875 <link to="ISystemProperties::defaultHardDiskFolder"/> for more details.
1876
1877 <result name="VBOX_E_OBJECT_NOT_FOUND">
1878 @a format identifier is invalid. See
1879 <link to="ISystemProperties::hardDiskFormats"/>.
1880 </result>
1881 <result name="VBOX_E_FILE_ERROR">
1882 @a location is a not valid file name (for file-based formats only).
1883 </result>
1884 <result name="E_INVALIDARG">
1885 @a format is a null or empty string.
1886 </result>
1887 </desc>
1888 <param name="format" type="wstring" dir="in">
1889 <desc>
1890 Identifier of the storage format to use for the new hard disk.
1891 </desc>
1892 </param>
1893 <param name="location" type="wstring" dir="in">
1894 <desc>
1895 Location of the storage unit for the new hard disk.
1896 </desc>
1897 </param>
1898 <param name="hardDisk" type="IHardDisk" dir="return">
1899 <desc>Created hard disk object.</desc>
1900 </param>
1901 </method>
1902
1903 <method name="openHardDisk">
1904 <desc>
1905 Opens a hard disk from an existing location.
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="hardDisk" type="IHardDisk" dir="return">
1959 <desc>Opened hard disk object.</desc>
1960 </param>
1961 </method>
1962
1963 <method name="getHardDisk" const="yes">
1964 <desc>
1965 Returns a hard disk with the given UUID.
1966
1967 The hard disk with the given UUID must be known to this VirtualBox
1968 installation, i.e. it must be previously created by
1969 <link to="#createHardDisk"/> or opened by <link
1970 to="#openHardDisk"/>, or attached to some known virtual machine.
1971
1972 <result name="VBOX_E_OBJECT_NOT_FOUND">
1973 No hard disk object matching @a id found.
1974 </result>
1975
1976 </desc>
1977 <param name="id" type="wstring" dir="in">
1978 <desc>UUID of the hard disk to look for.</desc>
1979 </param>
1980 <param name="hardDisk" type="IHardDisk" dir="return">
1981 <desc>Found hard disk object.</desc>
1982 </param>
1983 </method>
1984
1985 <method name="findHardDisk">
1986 <desc>
1987 Returns a hard disk that uses the given location to store hard
1988 disk data.
1989
1990 The given hard disk must be known to this VirtualBox installation, i.e.
1991 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 The search is done by comparing the value of the @a location argument to
1996 the <link to="IHardDisk::location"/> attribute of each known hard
1997 disk.
1998
1999 For locations represented by file names in the host's file system, the
2000 requested location can be a path relative to the
2001 <link to="IVirtualBox::homeFolder">VirtualBox home folder</link>. If
2002 only a file name without any path is given, the
2003 <link to="ISystemProperties::defaultHardDiskFolder"> default hard disk
2004 folder</link> will be prepended to the file name before searching. Note
2005 that on case sensitive file systems, a case sensitive comparison is
2006 performed, otherwise the case of symbols in the file path is ignored.
2007
2008 <result name="VBOX_E_OBJECT_NOT_FOUND">
2009 No hard disk object matching @a location found.
2010 </result>
2011
2012 </desc>
2013 <param name="location" type="wstring" dir="in">
2014 <desc>Location string to search for.</desc>
2015 </param>
2016 <param name="hardDisk" type="IHardDisk" dir="return">
2017 <desc>Found hard disk object.</desc>
2018 </param>
2019 </method>
2020
2021 <method name="openDVDImage">
2022 <desc>
2023 Opens a CD/DVD image contained in the specified file of the supported
2024 format and assigns it the given UUID.
2025
2026 After the image is successfully opened by this method, it gets
2027 remembered by (known to) this VirtualBox installation and will be
2028 accessible through <link to="#getDVDImage"/> and
2029 <link to="#findDVDImage"/> methods. Remembered images are also
2030 returned as part of the <link to="#DVDImages"/> array and can be mounted
2031 to virtual machines. See IMedium for more details.
2032
2033 See <link to="IMedium::location"/> to get more details about the format
2034 of the location string.
2035
2036 <note>
2037 Currently only ISO 9960 CD/DVD images are supported by VirtualBox.
2038 </note>
2039
2040 <result name="VBOX_E_FILE_ERROR">
2041 Invalid CD/DVD image file location or could not find the CD/DVD
2042 image at the specified location.
2043 </result>
2044 <result name="VBOX_E_INVALID_OBJECT_STATE">
2045 CD/DVD image already exists in the media registry.
2046 </result>
2047
2048 </desc>
2049 <param name="location" type="wstring" dir="in">
2050 <desc>
2051 Full path to the file that contains a valid CD/DVD image.
2052 </desc>
2053 </param>
2054 <param name="id" type="wstring" dir="in">
2055 <desc>
2056 UUID to assign to the given image within this VirtualBox installation.
2057 If an empty (null) UUID is specified, the system will randomly
2058 generate a new UUID.
2059 </desc>
2060 </param>
2061 <param name="image" type="IDVDImage" dir="return">
2062 <desc>Opened CD/DVD image object.</desc>
2063 </param>
2064 </method>
2065
2066 <method name="getDVDImage">
2067 <desc>
2068 Returns a CD/DVD image with the given UUID.
2069
2070 The image with the given UUID must be known to this VirtualBox
2071 installation, i.e. it must be previously opened by <link
2072 to="#openDVDImage"/>, or mounted to some known virtual machine.
2073
2074 <result name="VBOX_E_OBJECT_NOT_FOUND">
2075 No matching DVD image found in the media registry.
2076 </result>
2077
2078 </desc>
2079 <param name="id" type="wstring" dir="in">
2080 <desc>UUID of the image to look for.</desc>
2081 </param>
2082 <param name="image" type="IDVDImage" dir="return">
2083 <desc>Found CD/DVD image object.</desc>
2084 </param>
2085 </method>
2086
2087 <method name="findDVDImage">
2088 <desc>
2089 Returns a CD/DVD image with the given image location.
2090
2091 The image with the given UUID must be known to this VirtualBox
2092 installation, i.e. it must be previously opened by <link
2093 to="#openDVDImage"/>, or mounted to some known virtual machine.
2094
2095 The search is done by comparing the value of the @a location argument to
2096 the <link to="IMedium::location"/> attribute of each known CD/DVD image.
2097
2098 The requested location can be a path relative to the
2099 <link to="IVirtualBox::homeFolder">VirtualBox home folder</link>. If
2100 only a file name without any path is given, the
2101 <link to="ISystemProperties::defaultHardDiskFolder"> default hard disk
2102 folder</link> will be prepended to the file name before searching. Note
2103 that on case sensitive file systems, a case sensitive comparison is
2104 performed, otherwise the case in the file path is ignored.
2105
2106 <result name="VBOX_E_FILE_ERROR">
2107 Invalid image file location.
2108 </result>
2109 <result name="VBOX_E_OBJECT_NOT_FOUND">
2110 No matching DVD image found in the media registry.
2111 </result>
2112
2113 </desc>
2114 <param name="location" type="wstring" dir="in">
2115 <desc>CD/DVD image file path to look for.</desc>
2116 </param>
2117 <param name="image" type="IDVDImage" dir="return">
2118 <desc>Found CD/DVD image object.</desc>
2119 </param>
2120 </method>
2121
2122 <method name="openFloppyImage">
2123 <desc>
2124 Opens a floppy image contained in the specified file of the supported
2125 format and assigns it the given UUID.
2126
2127 After the image is successfully opened by this method, it gets
2128 remembered by (known to) this VirtualBox installation and will be
2129 accessible through <link to="#getFloppyImage"/> and
2130 <link to="#findFloppyImage"/> methods. Remembered images are also
2131 returned as part of the <link to="#floppyImages"/> array and can be
2132 mounted to virtual machines. See IMedium for more details.
2133
2134 See <link to="IMedium::location"/> to get more details about the format
2135 of the location string.
2136
2137 <result name="VBOX_E_FILE_ERROR">
2138 Invalid floppy image file location or could not find the floppy
2139 image at the specified location.
2140 </result>
2141 <result name="VBOX_E_INVALID_OBJECT_STATE">
2142 Floppy image already exists in the media registry.
2143 </result>
2144
2145 <note>
2146 Currently, only raw floppy images are supported by VirtualBox.
2147 </note>
2148 </desc>
2149 <param name="location" type="wstring" dir="in">
2150 <desc>
2151 Full path to the file that contains a valid floppy image.
2152 </desc>
2153 </param>
2154 <param name="id" type="wstring" dir="in">
2155 <desc>
2156 UUID to assign to the given image file within this VirtualBox
2157 installation. If an empty (null) UUID is specified, the system will
2158 randomly generate a new UUID.
2159 </desc>
2160 </param>
2161 <param name="image" type="IFloppyImage" dir="return">
2162 <desc>Opened floppy image object.</desc>
2163 </param>
2164 </method>
2165
2166 <method name="getFloppyImage">
2167 <desc>
2168 Returns a floppy image with the given UUID.
2169
2170 The image with the given UUID must be known to this VirtualBox
2171 installation, i.e. it must be previously opened by <link
2172 to="#openFloppyImage"/>, or mounted to some known virtual machine.
2173
2174 <result name="VBOX_E_OBJECT_NOT_FOUND">
2175 No matching floppy image found in the media registry.
2176 </result>
2177
2178 </desc>
2179 <param name="id" type="wstring" dir="in">
2180 <desc>UUID of the image to look for.</desc>
2181 </param>
2182 <param name="image" type="IFloppyImage" dir="return">
2183 <desc>Found floppy image object.</desc>
2184 </param>
2185 </method>
2186
2187 <method name="findFloppyImage">
2188 <desc>
2189 Returns a floppy image with the given image location.
2190
2191 The image with the given UUID must be known to this VirtualBox
2192 installation, i.e. it must be previously opened by <link
2193 to="#openFloppyImage"/>, or mounted to some known virtual machine.
2194
2195 The search is done by comparing the value of the @a location argument to
2196 the <link to="IMedium::location"/> attribute of each known floppy image.
2197
2198 The requested location can be a path relative to the
2199 <link to="IVirtualBox::homeFolder">VirtualBox home folder</link>. If
2200 only a file name without any path is given, the
2201 <link to="ISystemProperties::defaultHardDiskFolder"> default hard disk
2202 folder</link> will be prepended to the file name before searching. Note
2203 that on case sensitive file systems, a case sensitive comparison is
2204 performed, otherwise the case of symbols in the file path is ignored.
2205
2206 <result name="VBOX_E_FILE_ERROR">
2207 Invalid image file location.
2208 </result>
2209 <result name="VBOX_E_OBJECT_NOT_FOUND">
2210 No matching floppy image found in the media registry.
2211 </result>
2212
2213 </desc>
2214 <param name="location" type="wstring" dir="in">
2215 <desc>Floppy image file path to look for.</desc>
2216 </param>
2217 <param name="image" type="IFloppyImage" dir="return">
2218 <desc>Found floppy image object.</desc>
2219 </param>
2220 </method>
2221
2222 <method name="getGuestOSType">
2223 <desc>
2224 Returns an object describing the specified guest OS type.
2225
2226 The requested guest OS type is specified using a string which is a
2227 mnemonic identifier of the guest operating system, such as
2228 <tt>"win31"</tt> or <tt>"ubuntu"</tt>. The guest OS type ID of a
2229 particular virtual machine can be read or set using the
2230 <link to="IMachine::OSTypeId"/> attribute.
2231
2232 The <link to="IVirtualBox::guestOSTypes"/> collection contains all
2233 available guest OS type objects. Each object has an
2234 <link to="IGuestOSType::id"/> attribute which contains an identifier of
2235 the guest OS this object describes.
2236
2237 <result name="E_INVALIDARG">
2238 @a id is not a valid Guest OS type.
2239 </result>
2240
2241 </desc>
2242 <param name="id" type="wstring" dir="in">
2243 <desc>Guest OS type ID string.</desc>
2244 </param>
2245 <param name="type" type="IGuestOSType" dir="return">
2246 <desc>Guest OS type object.</desc>
2247 </param>
2248 </method>
2249
2250 <method name="createSharedFolder">
2251 <desc>
2252 Creates a new global shared folder by associating the given logical
2253 name with the given host path, adds it to the collection of shared
2254 folders and starts sharing it. Refer to the description of
2255 <link to="ISharedFolder"/> to read more about logical names.
2256 <note>
2257 In the current implementation, this operation is not
2258 implemented.
2259 </note>
2260 </desc>
2261 <param name="name" type="wstring" dir="in">
2262 <desc>Unique logical name of the shared folder.</desc>
2263 </param>
2264 <param name="hostPath" type="wstring" dir="in">
2265 <desc>Full path to the shared folder in the host file system.</desc>
2266 </param>
2267 <param name="writable" type="boolean" dir="in">
2268 <desc>Whether the share is writable or readonly</desc>
2269 </param>
2270 </method>
2271
2272 <method name="removeSharedFolder">
2273 <desc>
2274 Removes the global shared folder with the given name previously
2275 created by <link to="#createSharedFolder"/> from the collection of
2276 shared folders and stops sharing it.
2277 <note>
2278 In the current implementation, this operation is not
2279 implemented.
2280 </note>
2281 </desc>
2282 <param name="name" type="wstring" dir="in">
2283 <desc>Logical name of the shared folder to remove.</desc>
2284 </param>
2285 </method>
2286
2287 <method name="getNextExtraDataKey">
2288 <desc>
2289 Returns the global extra data key name following the supplied key.
2290
2291 An error is returned if the supplied @a key does not exist. @c NULL is
2292 returned in @a nextKey if the supplied key is the last key. When
2293 supplying @c NULL or an empty string for the @a key, the first key item
2294 is returned in @a nextKey (if there is any). @a nextValue is an optional
2295 parameter and if supplied, the next key's value is returned in it.
2296
2297 <result name="VBOX_E_OBJECT_NOT_FOUND">
2298 Extra data @a key not found.
2299 </result>
2300
2301 </desc>
2302 <param name="key" type="wstring" dir="in">
2303 <desc>Name of the data key to follow.</desc>
2304 </param>
2305 <param name="nextKey" type="wstring" dir="out">
2306 <desc>Name of the next data key.</desc>
2307 </param>
2308 <param name="nextValue" type="wstring" dir="out">
2309 <desc>Value of the next data key.</desc>
2310 </param>
2311 </method>
2312
2313 <method name="getExtraData">
2314 <desc>
2315 Returns associated global extra data.
2316
2317 If the requested data @a key does not exist, this function will
2318 succeed and return @c NULL in the @a value argument.
2319
2320 <result name="VBOX_E_FILE_ERROR">
2321 Settings file not accessible.
2322 </result>
2323 <result name="VBOX_E_XML_ERROR">
2324 Could not parse the settings file.
2325 </result>
2326
2327 </desc>
2328 <param name="key" type="wstring" dir="in">
2329 <desc>Name of the data key to get.</desc>
2330 </param>
2331 <param name="value" type="wstring" dir="return">
2332 <desc>Value of the requested data key.</desc>
2333 </param>
2334 </method>
2335
2336 <method name="setExtraData">
2337 <desc>
2338 Sets associated global extra data.
2339
2340 If you pass @c NULL as a key @a value, the given @a key will be
2341 deleted.
2342
2343 <note>
2344 Before performing the actual data change, this method will ask all
2345 registered callbacks using the
2346 <link to="IVirtualBoxCallback::onExtraDataCanChange"/>
2347 notification for a permission. If one of the callbacks refuses the
2348 new value, the change will not be performed.
2349 </note>
2350 <note>
2351 On success, the
2352 <link to="IVirtualBoxCallback::onExtraDataChange"/> notification
2353 is called to inform all registered callbacks about a successful data
2354 change.
2355 </note>
2356
2357 <result name="VBOX_E_FILE_ERROR">
2358 Settings file not accessible.
2359 </result>
2360 <result name="VBOX_E_XML_ERROR">
2361 Could not parse the settings file.
2362 </result>
2363 <result name="E_ACCESSDENIED">
2364 Modification request refused.
2365 </result>
2366
2367 </desc>
2368 <param name="key" type="wstring" dir="in">
2369 <desc>Name of the data key to set.</desc>
2370 </param>
2371 <param name="value" type="wstring" dir="in">
2372 <desc>Value to assign to the key.</desc>
2373 </param>
2374 </method>
2375
2376 <method name="openSession">
2377 <desc>
2378 Opens a new direct session with the given virtual machine.
2379
2380 A direct session acts as a local lock on the given VM.
2381 There can be only one direct session open at a time for every
2382 virtual machine, protecting the VM from being manipulated by
2383 conflicting actions from different processes. Only after a
2384 direct session has been opened, one can change all VM settings
2385 and execute the VM in the process space of the session object.
2386
2387 Sessions therefore can be compared to mutex semaphores that
2388 lock a given VM for modification and execution.
2389 See <link to="ISession">ISession</link> for details.
2390
2391 <note>Unless you are writing a new VM frontend, you will not
2392 want to execute a VM in the current process. To spawn a new
2393 process that executes a VM, use
2394 <link to="IVirtualBox::openRemoteSession" />
2395 instead.</note>
2396
2397 Upon successful return, the session object can be used to
2398 get access to the machine and to the VM console.
2399
2400 In VirtualBox terminology, the machine becomes "mutable" after
2401 a session has been opened. Note that the "mutable" machine
2402 object, on which you may invoke IMachine methods to change its
2403 settings, will be a different object from the immutable IMachine
2404 objects returned by various IVirtualBox methods. To obtain a
2405 mutable IMachine object (upon which you can invoke settings methods),
2406 use the <link to="ISession::machine" /> attribute.
2407
2408 One must always call <link to="ISession::close" /> to release the
2409 lock on the machine, or the machine's state will eventually be
2410 set to "Aborted".
2411
2412 In other words, to change settings on a machine, the following
2413 sequence is typically performed:
2414
2415 <ol>
2416 <li>Call this method (openSession) to have a machine locked for
2417 the current session.</li>
2418
2419 <li>Obtain a mutable IMachine object from <link to="ISession::machine" />.</li>
2420
2421 <li>Change the settings of the machine.</li>
2422
2423 <li>Call <link to="IMachine::saveSettings" />.</li>
2424
2425 <li>Close the session by calling <link to="ISession::close"/>.</li>
2426 </ol>
2427
2428 <result name="E_UNEXPECTED">
2429 Virtual machine not registered.
2430 </result>
2431 <result name="E_ACCESSDENIED">
2432 Process not started by OpenRemoteSession.
2433 </result>
2434 <result name="VBOX_E_OBJECT_NOT_FOUND">
2435 No matching virtual machine found.
2436 </result>
2437 <result name="VBOX_E_INVALID_OBJECT_STATE">
2438 Session already open or being opened.
2439 </result>
2440 <result name="VBOX_E_VM_ERROR">
2441 Failed to assign machine to session.
2442 </result>
2443
2444 </desc>
2445 <param name="session" type="ISession" dir="in">
2446 <desc>
2447 Session object that will represent the opened session after
2448 successful method invocation. This object must not represent
2449 the already open session.
2450 <note>
2451 This session will be automatically closed if the
2452 VirtualBox server is terminated for some reason.
2453 </note>
2454 </desc>
2455 </param>
2456 <param name="machineId" type="wstring" dir="in">
2457 <desc>ID of the virtual machine to open a session with.</desc>
2458 </param>
2459 </method>
2460
2461 <method name="openRemoteSession">
2462 <desc>
2463 Spawns a new process that executes a virtual machine (called a
2464 "remote session").
2465
2466 Opening a remote session causes the VirtualBox server to start a new
2467 process that opens a direct session with the given VM. As a result, the
2468 VM is locked by that direct session in the new process, preventing
2469 conflicting changes from other processes. Since sessions act as locks
2470 that prevent conflicting changes, one cannot open a remote session
2471 for a VM that already has another open session (direct or remote), or
2472 is currently in the process of opening one (see <link
2473 to="IMachine::sessionState"/>).
2474
2475 While the remote session still provides some level of control over the
2476 VM execution to the caller (using the <link to="IConsole" /> interface),
2477 not all VM settings are available for modification within the remote
2478 session context.
2479
2480 This operation can take some time (a new VM is started in a new process,
2481 for which memory and other resources need to be set up). Because of this,
2482 an <link to="IProgress" /> is returned to allow the caller to wait for this
2483 asynchronous operation to be completed. Until then, the remote session
2484 object remains in the closed state, and accessing the machine or its
2485 console through it is invalid. It is recommended to use
2486 <link to="IProgress::waitForCompletion" /> or similar calls to wait for
2487 completion.
2488
2489 As with all <link to="ISession" /> objects, it is recommended to call
2490 <link to="ISession::close" /> on the local session object once openRemoteSession()
2491 has been called. However, the session's state (see <link to="ISession::state" />)
2492 will not return to "Closed" until the remote session has also closed (i.e.
2493 until the VM is no longer running). In that case, however, the state of
2494 the session will automatically change back to "Closed".
2495
2496 Currently supported session types (values of the @a type
2497 argument) are:
2498 <ul>
2499 <li><tt>gui</tt>: VirtualBox Qt GUI session</li>
2500 <li><tt>vrdp</tt>: VirtualBox VRDP Server session</li>
2501 </ul>
2502
2503 The @a environment argument is a string containing definitions of
2504 environment variables in the following format:
2505 @code
2506 NAME[=VALUE]\n
2507 NAME[=VALUE]\n
2508 ...
2509 @endcode
2510 where <tt>\\n</tt> is the new line character. These environment
2511 variables will be appended to the environment of the VirtualBox server
2512 process. If an environment variable exists both in the server process
2513 and in this list, the value from this list takes precedence over the
2514 server's variable. If the value of the environment variable is
2515 omitted, this variable will be removed from the resulting environment.
2516 If the environment string is @c null, the server environment is
2517 inherited by the started process as is.
2518
2519 <see>openExistingSession</see>
2520
2521 <result name="E_UNEXPECTED">
2522 Virtual machine not registered.
2523 </result>
2524 <result name="E_INVALIDARG">
2525 Invalid session type @a type.
2526 </result>
2527 <result name="VBOX_E_OBJECT_NOT_FOUND">
2528 No machine matching @a machineId found.
2529 </result>
2530 <result name="VBOX_E_INVALID_OBJECT_STATE">
2531 Session already open or being opened.
2532 </result>
2533 <result name="VBOX_E_IPRT_ERROR">
2534 Launching process for machine failed.
2535 </result>
2536 <result name="VBOX_E_VM_ERROR">
2537 Failed to assign machine to session.
2538 </result>
2539
2540 </desc>
2541 <param name="session" type="ISession" dir="in">
2542 <desc>
2543 Session object that will represent the opened remote session
2544 after successful method invocation (this object must not
2545 represent an already open session).
2546 </desc>
2547 </param>
2548 <param name="machineId" type="wstring" dir="in">
2549 <desc>ID of the virtual machine to open a session with.</desc>
2550 </param>
2551 <param name="type" type="wstring" dir="in">
2552 <desc>
2553 Type of the remote session (case sensitive).
2554 </desc>
2555 </param>
2556 <param name="environment" type="wstring" dir="in">
2557 <desc>
2558 Environment to pass to the opened session (may be @c null).
2559 </desc>
2560 </param>
2561 <param name="progress" type="IProgress" dir="return">
2562 <desc>Progress object to track the operation completion.</desc>
2563 </param>
2564 </method>
2565
2566 <method name="openExistingSession">
2567 <desc>
2568 Opens a new remote session with the virtual machine for
2569 which a direct session is already open.
2570
2571 The remote session provides some level of control over the VM
2572 execution (using the IConsole interface) to the caller; however,
2573 within the remote session context, not all VM settings are available
2574 for modification.
2575
2576 As opposed to <link to="#openRemoteSession"/>, the number of
2577 remote sessions opened this way is not limited by the API
2578
2579 <note>
2580 It is an error to open a remote session with the machine that
2581 doesn't have an open direct session.
2582 </note>
2583
2584 <result name="E_UNEXPECTED">
2585 Virtual machine not registered.
2586 </result>
2587 <result name="VBOX_E_OBJECT_NOT_FOUND">
2588 No machine matching @a machineId found.
2589 </result>
2590 <result name="VBOX_E_INVALID_OBJECT_STATE">
2591 Session already open or being opened.
2592 </result>
2593 <result name="VBOX_E_INVALID_SESSION_STATE">
2594 Direct session state not Open.
2595 </result>
2596 <result name="VBOX_E_VM_ERROR">
2597 Failed to get console object from direct session or assign
2598 machine to session.
2599 </result>
2600
2601 <see>openRemoteSession</see>
2602 </desc>
2603 <param name="session" type="ISession" dir="in">
2604 <desc>
2605 Session object that will represent the open remote session
2606 after successful method invocation. This object must not
2607 represent an already open session.
2608 <note>
2609 This session will be automatically closed when the peer
2610 (direct) session dies or gets closed.
2611 </note>
2612 </desc>
2613 </param>
2614 <param name="machineId" type="wstring" dir="in">
2615 <desc>ID of the virtual machine to open a session with.</desc>
2616 </param>
2617 </method>
2618
2619 <method name="registerCallback">
2620 <desc>
2621 Registers a new global VirtualBox callback. The methods of the given
2622 callback object will be called by VirtualBox when an appropriate
2623 event occurs.
2624
2625 <result name="E_INVALIDARG">
2626 A @c NULL callback cannot be registered.
2627 </result>
2628
2629 </desc>
2630 <param name="callback" type="IVirtualBoxCallback" dir="in">
2631 <desc>Callback object to register.</desc>
2632 </param>
2633 </method>
2634
2635 <method name="unregisterCallback">
2636 <desc>
2637 Unregisters the previously registered global VirtualBox callback.
2638
2639 <result name="E_INVALIDARG">
2640 Specified @a callback not registered.
2641 </result>
2642
2643 </desc>
2644 <param name="callback" type="IVirtualBoxCallback" dir="in">
2645 <desc>Callback object to unregister.</desc>
2646 </param>
2647 </method>
2648
2649 <method name="waitForPropertyChange">
2650 <desc>
2651 Blocks the caller until any of the properties represented by the
2652 @a what argument changes the value or until the given timeout interval
2653 expires.
2654
2655 The @a what argument is a comma separated list of property masks that
2656 describe properties the caller is interested in. The property mask is
2657 a string in the following format:
2658
2659 <pre>
2660 [[group.]subgroup.]name
2661 </pre>
2662
2663 where @c name is the property name and @c group, @c subgroup are zero
2664 or more property group specifiers. Each element (group or name) in
2665 the property mask may be either a Latin string or an asterisk symbol
2666 (@c "*") which is used to match any string for the given element. A
2667 property mask that doesn't contain asterisk symbols represents a
2668 single fully qualified property name.
2669
2670 Groups in the fully qualified property name go from more generic (the
2671 left-most part) to more specific (the right-most part). The first
2672 element is usually a name of the object the property belongs to. The
2673 second element may be either a property name, or a child object name,
2674 or an index if the preceding element names an object which is one of
2675 many objects of the same type. This way, property names form a
2676 hierarchy of properties. Here are some examples of property names:
2677
2678 <table>
2679 <tr>
2680 <td><tt>VirtualBox.version</tt></td>
2681 <td><link to="IVirtualBox::version"/> property</td>
2682 </tr>
2683 <tr>
2684 <td><tt>Machine.&lt;UUID&gt;.name</tt></td>
2685 <td><link to="IMachine::name"/> property of the machine with the
2686 given UUID</td>
2687 </tr>
2688 </table>
2689
2690 Most property names directly correspond to the properties of objects
2691 (components) provided by the VirtualBox library and may be used to
2692 track changes to these properties. However, there may be
2693 pseudo-property names that don't correspond to any existing object's
2694 property directly, as well as there may be object properties that
2695 don't have a corresponding property name that is understood by this
2696 method, and therefore changes to such properties cannot be
2697 tracked. See individual object's property descriptions to get a
2698 fully qualified property name that can be used with this method (if
2699 any).
2700
2701 There is a special property mask @c "*" (i.e. a string consisting of a
2702 single asterisk symbol) that can be used to match all properties.
2703 Below are more examples of property masks:
2704
2705 <table>
2706 <tr>
2707 <td><tt>VirtualBox.*</tt></td>
2708 <td>Track all properties of the VirtualBox object</td>
2709 </tr>
2710 <tr>
2711 <td><tt>Machine.*.name</tt></td>
2712 <td>Track changes to the <link to="IMachine::name"/> property of
2713 all registered virtual machines</td>
2714 </tr>
2715 </table>
2716
2717 <note>
2718 This function is not implemented in the current version of the
2719 product.
2720 </note>
2721 </desc>
2722 <param name="what" type="wstring" dir="in">
2723 <desc>Comma separated list of property masks.</desc>
2724 </param>
2725 <param name="timeout" type="unsigned long" dir="in">
2726 <desc>
2727 Wait timeout in milliseconds.
2728 Specify -1 for an indefinite wait.
2729 </desc>
2730 </param>
2731 <param name="changed" type="wstring" dir="out">
2732 <desc>
2733 Comma separated list of properties that have been changed and caused
2734 this method to return to the caller.
2735 </desc>
2736 </param>
2737 <param name="values" type="wstring" dir="out">
2738 <desc>Reserved, not currently used.</desc>
2739 </param>
2740 </method>
2741
2742 <method name="saveSettings">
2743 <desc>
2744 Saves the global settings to the global settings file
2745 (<link to="#settingsFilePath"/>).
2746
2747 This method is only useful for explicitly saving the global settings
2748 file after it has been auto-converted from the old format to the most
2749 recent format (see <link to="#settingsFileVersion"/> for details).
2750 Normally, the global settings file is implicitly saved when a global
2751 setting is changed.
2752
2753 <result name="VBOX_E_FILE_ERROR">
2754 Settings file not accessible.
2755 </result>
2756 <result name="VBOX_E_XML_ERROR">
2757 Could not parse the settings file.
2758 </result>
2759
2760 </desc>
2761 </method>
2762
2763 <method name="saveSettingsWithBackup">
2764 <desc>
2765 Creates a backup copy of the global settings file
2766 (<link to="IVirtualBox::settingsFilePath"/>) in case of auto-conversion,
2767 and then calls <link to="IVirtualBox::saveSettings"/>.
2768
2769 Note that the backup copy is created <b>only</b> if the settings file
2770 auto-conversion took place (see <link to="#settingsFileVersion"/> for
2771 details). Otherwise, this call is fully equivalent to
2772 <link to="IVirtualBox::saveSettings"/> and no backup copying is done.
2773
2774 The backup copy is created in the same directory where the original
2775 settings file is located. It is given the following file name:
2776 <pre>
2777 original.xml.x.y-platform.bak
2778 </pre>
2779 where <tt>original.xml</tt> is the original settings file name
2780 (excluding path), and <tt>x.y-platform</tt> is the version of the old
2781 format of the settings file (before auto-conversion).
2782
2783 If the given backup file already exists, this method will try to add the
2784 <tt>.N</tt> suffix to the backup file name (where <tt>N</tt> counts from
2785 0 to 9) and copy it again until it succeeds. If all suffixes are
2786 occupied, or if any other copy error occurs, this method will return a
2787 failure.
2788
2789 If the copy operation succeeds, the @a bakFileName return argument will
2790 receive a full path to the created backup file (for informational
2791 purposes). Note that this will happen even if the subsequent
2792 <link to="#saveSettings"/> call performed by this method after the
2793 copy operation, fails.
2794
2795 <note>
2796 The VirtualBox API never calls this method. It is intended purely for
2797 the purposes of creating backup copies of the settings files by
2798 front-ends before saving the results of the automatically performed
2799 settings conversion to disk.
2800 </note>
2801
2802 <see>settingsFileVersion</see>
2803
2804 <result name="VBOX_E_FILE_ERROR">
2805 Settings file not accessible.
2806 </result>
2807 <result name="VBOX_E_XML_ERROR">
2808 Could not parse the settings file.
2809 </result>
2810 <result name="VBOX_E_IPRT_ERROR">
2811 Could not copy the settings file.
2812 </result>
2813
2814 </desc>
2815 <param name="bakFileName" type="wstring" dir="return">
2816 <desc>Full path to the created backup copy.</desc>
2817 </param>
2818 </method>
2819
2820 <!--method name="createDHCPServerForInterface">
2821 <desc>
2822 Creates a dhcp server settings to be used for the given interface
2823 <result name="E_INVALIDARG">
2824 Host network interface @a name already exists.
2825 </result>
2826 </desc>
2827 <param name="interface" type="IHostNetworkInterface" dir="in">
2828 <desc>Network Interface</desc>
2829 </param>
2830 <param name="server" type="IDHCPServer" dir="out">
2831 <desc>Dhcp server settings</desc>
2832 </param>
2833 </method-->
2834
2835 <method name="createDHCPServer">
2836 <desc>
2837 Creates a dhcp server settings to be used for the given internal network name
2838 <result name="E_INVALIDARG">
2839 Host network interface @a name already exists.
2840 </result>
2841 </desc>
2842 <param name="name" type="wstring" dir="in">
2843 <desc>server name</desc>
2844 </param>
2845 <param name="server" type="IDHCPServer" dir="return">
2846 <desc>Dhcp server settings</desc>
2847 </param>
2848 </method>
2849
2850 <method name="findDHCPServerByNetworkName">
2851 <desc>
2852 Searches a dhcp server settings to be used for the given internal network name
2853 <result name="E_INVALIDARG">
2854 Host network interface @a name already exists.
2855 </result>
2856
2857 </desc>
2858 <param name="name" type="wstring" dir="in">
2859 <desc>server name</desc>
2860 </param>
2861 <param name="server" type="IDHCPServer" dir="return">
2862 <desc>Dhcp server settings</desc>
2863 </param>
2864 </method>
2865
2866 <!--method name="findDHCPServerForInterface">
2867 <desc>
2868 Searches a dhcp server settings to be used for the given interface
2869 <result name="E_INVALIDARG">
2870 Host network interface @a name already exists.
2871 </result>
2872 </desc>
2873 <param name="interface" type="IHostNetworkInterface" dir="in">
2874 <desc>Network Interface</desc>
2875 </param>
2876 <param name="server" type="IDHCPServer" dir="out">
2877 <desc>Dhcp server settings</desc>
2878 </param>
2879 </method-->
2880
2881 <method name="removeDHCPServer">
2882 <desc>
2883 Removes the dhcp server settings
2884 <result name="E_INVALIDARG">
2885 Host network interface @a name already exists.
2886 </result>
2887 </desc>
2888 <param name="server" type="IDHCPServer" dir="in">
2889 <desc>Dhcp server settings to be removed</desc>
2890 </param>
2891 </method>
2892
2893 </interface>
2894
2895 <!--
2896 // IVFSExplorer
2897 /////////////////////////////////////////////////////////////////////////
2898 -->
2899
2900 <enum
2901 name="VFSType"
2902 uuid="813999ba-b949-48a8-9230-aadc6285e2f2"
2903 >
2904 <desc>
2905 Supported virtual file systems of VFSExplorer.
2906 </desc>
2907
2908 <const name="File" value="1" />
2909 <const name="Cloud" value="2" />
2910 <const name="S3" value="3" />
2911 <const name="WebDav" value="4" />
2912 </enum>
2913
2914 <enum
2915 name="VFSFileType"
2916 uuid="714333cd-44e2-415f-a245-d378fa9b1242"
2917 >
2918 <desc>
2919 File types known by VFSExplorer.
2920 </desc>
2921
2922 <const name="Unknown" value="1" />
2923 <const name="Fifo" value="2" />
2924 <const name="DevChar" value="3" />
2925 <const name="Directory" value="4" />
2926 <const name="DevBlock" value="5" />
2927 <const name="File" value="6" />
2928 <const name="SymLink" value="7" />
2929 <const name="Socket" value="8" />
2930 <const name="WhiteOut" value="9" />
2931 </enum>
2932
2933 <interface
2934 name="IVFSExplorer" extends="$unknown"
2935 uuid="fd7da337-80ef-4a5c-9122-918435e33003"
2936 wsmap="managed"
2937 >
2938 <desc>
2939 The VFSExplorer interface unify the access to different file system
2940 types. This includes local file systems as well remote file systems like
2941 the S3 one. For a list of supported types see <link to="VFSType" />.
2942 </desc>
2943
2944 <attribute name="path" type="wstring" readonly="yes">
2945 <desc>Return the current path in the virtual file system.</desc>
2946 </attribute>
2947
2948 <attribute name="type" type="VFSType" readonly="yes">
2949 <desc>Return the file system type which is currently in use.</desc>
2950 </attribute>
2951
2952 <method name="update">
2953 <desc>This method updates the internal list of files/directories from the
2954 current directory level. Use <link to="entryList" /> to get the full list
2955 after a call to this method.</desc>
2956
2957 <param name="aProgress" type="IProgress" dir="return">
2958 <desc>Progress object to track the operation completion.</desc>
2959 </param>
2960 </method>
2961
2962 <method name="entryList">
2963 <desc>Fetch the list of files/directories after a call to <link
2964 to="update" />. The user is responcible for keeping this internal list up
2965 do date.</desc>
2966
2967 <param name="aNames" type="wstring" safearray="yes" dir="out">
2968 <desc>The list of names for the entries.</desc>
2969 </param>
2970
2971 <param name="aTypes" type="unsigned long" safearray="yes" dir="out">
2972 <desc>The list of types for the entries.</desc>
2973 </param>
2974 </method>
2975
2976 <method name="exists">
2977 <desc>Check if the given file list exists in the current directory
2978 level.</desc>
2979
2980 <param name="aNames" type="wstring" safearray="yes" dir="in">
2981 <desc>The names to check.</desc>
2982 </param>
2983
2984 <param name="aExists" type="wstring" safearray="yes" dir="return">
2985 <desc>The names which exists.</desc>
2986 </param>
2987 </method>
2988
2989 <method name="remove">
2990 <desc>Remove the given file names from the current directory
2991 level.</desc>
2992
2993 <param name="aNames" type="wstring" safearray="yes" dir="in">
2994 <desc>The names to remove.</desc>
2995 </param>
2996
2997 <param name="aProgress" type="IProgress" dir="return">
2998 <desc>Progress object to track the operation completion.</desc>
2999 </param>
3000 </method>
3001
3002 </interface>
3003
3004 <!--
3005 // IAppliance
3006 /////////////////////////////////////////////////////////////////////////
3007 -->
3008
3009 <enum
3010 name="CIMOSType"
3011 uuid="86ef5f8c-18b2-4db8-a314-33721b59f89b"
3012 >
3013 <desc>
3014 OVF operating system values according to CIM V2.20 (as of Nov 2008); http://www.dmtf.org/standards/cim/cim_schema_v220
3015 </desc>
3016
3017 <const name="CIMOS_Unknown" value="0" /> <!-- "Unknown" -->
3018 <const name="CIMOS_Other" value="1" /> <!-- "Other" -->
3019 <const name="CIMOS_MACOS" value="2" /> <!-- "MACOS" -->
3020 <const name="CIMOS_ATTUNIX" value="3" /> <!-- "ATTUNIX" -->
3021 <const name="CIMOS_DGUX" value="4" /> <!-- "DGUX" -->
3022 <const name="CIMOS_DECNT" value="5" /> <!-- "DECNT" -->
3023 <const name="CIMOS_Tru64UNIX" value="6" /> <!-- "Tru64 UNIX" -->
3024 <const name="CIMOS_OpenVMS" value="7" /> <!-- "OpenVMS" -->
3025 <const name="CIMOS_HPUX" value="8" /> <!-- "HPUX" -->
3026 <const name="CIMOS_AIX" value="9" /> <!-- "AIX" -->
3027 <const name="CIMOS_MVS" value="10" /> <!-- "MVS" -->
3028 <const name="CIMOS_OS400" value="11" /> <!-- "OS400" -->
3029 <const name="CIMOS_OS2" value="12" /> <!-- "OS/2" -->
3030 <const name="CIMOS_JavaVM" value="13" /> <!-- "JavaVM" -->
3031 <const name="CIMOS_MSDOS" value="14" /> <!-- "MSDOS" -->
3032 <const name="CIMOS_WIN3x" value="15" /> <!-- "WIN3x" -->
3033 <const name="CIMOS_WIN95" value="16" /> <!-- "WIN95" -->
3034 <const name="CIMOS_WIN98" value="17" /> <!-- "WIN98" -->
3035 <const name="CIMOS_WINNT" value="18" /> <!-- "WINNT" -->
3036 <const name="CIMOS_WINCE" value="19" /> <!-- "WINCE" -->
3037 <const name="CIMOS_NCR3000" value="20" /> <!-- "NCR3000" -->
3038 <const name="CIMOS_NetWare" value="21" /> <!-- "NetWare" -->
3039 <const name="CIMOS_OSF" value="22" /> <!-- "OSF" -->
3040 <const name="CIMOS_DCOS" value="23" /> <!-- "DC/OS" -->
3041 <const name="CIMOS_ReliantUNIX" value="24" /> <!-- "Reliant UNIX" -->
3042 <const name="CIMOS_SCOUnixWare" value="25" /> <!-- "SCO UnixWare" -->
3043 <const name="CIMOS_SCOOpenServer" value="26" /> <!-- "SCO OpenServer" -->
3044 <const name="CIMOS_Sequent" value="27" /> <!-- "Sequent" -->
3045 <const name="CIMOS_IRIX" value="28" /> <!-- "IRIX" -->
3046 <const name="CIMOS_Solaris" value="29" /> <!-- "Solaris" -->
3047 <const name="CIMOS_SunOS" value="30" /> <!-- "SunOS" -->
3048 <const name="CIMOS_U6000" value="31" /> <!-- "U6000" -->
3049 <const name="CIMOS_ASERIES" value="32" /> <!-- "ASERIES" -->
3050 <const name="CIMOS_HPNonStopOS" value="33" /> <!-- "HP NonStop OS" -->
3051 <const name="CIMOS_HPNonStopOSS" value="34" /> <!-- "HP NonStop OSS" -->
3052 <const name="CIMOS_BS2000" value="35" /> <!-- "BS2000" -->
3053 <const name="CIMOS_LINUX" value="36" /> <!-- "LINUX" -->
3054 <const name="CIMOS_Lynx" value="37" /> <!-- "Lynx" -->
3055 <const name="CIMOS_XENIX" value="38" /> <!-- "XENIX" -->
3056 <const name="CIMOS_VM" value="39" /> <!-- "VM" -->
3057 <const name="CIMOS_InteractiveUNIX" value="40" /> <!-- "Interactive UNIX" -->
3058 <const name="CIMOS_BSDUNIX" value="41" /> <!-- "BSDUNIX" -->
3059 <const name="CIMOS_FreeBSD" value="42" /> <!-- "FreeBSD" -->
3060 <const name="CIMOS_NetBSD" value="43" /> <!-- "NetBSD" -->
3061 <const name="CIMOS_GNUHurd" value="44" /> <!-- "GNU Hurd" -->
3062 <const name="CIMOS_OS9" value="45" /> <!-- "OS9" -->
3063 <const name="CIMOS_MACHKernel" value="46" /> <!-- "MACH Kernel" -->
3064 <const name="CIMOS_Inferno" value="47" /> <!-- "Inferno" -->
3065 <const name="CIMOS_QNX" value="48" /> <!-- "QNX" -->
3066 <const name="CIMOS_EPOC" value="49" /> <!-- "EPOC" -->
3067 <const name="CIMOS_IxWorks" value="50" /> <!-- "IxWorks" -->
3068 <const name="CIMOS_VxWorks" value="51" /> <!-- "VxWorks" -->
3069 <const name="CIMOS_MiNT" value="52" /> <!-- "MiNT" -->
3070 <const name="CIMOS_BeOS" value="53" /> <!-- "BeOS" -->
3071 <const name="CIMOS_HPMPE" value="54" /> <!-- "HP MPE" -->
3072 <const name="CIMOS_NextStep" value="55" /> <!-- "NextStep" -->
3073 <const name="CIMOS_PalmPilot" value="56" /> <!-- "PalmPilot" -->
3074 <const name="CIMOS_Rhapsody" value="57" /> <!-- "Rhapsody" -->
3075 <const name="CIMOS_Windows2000" value="58" /> <!-- "Windows 2000" -->
3076 <const name="CIMOS_Dedicated" value="59" /> <!-- "Dedicated" -->
3077 <const name="CIMOS_OS390" value="60" /> <!-- "OS/390" -->
3078 <const name="CIMOS_VSE" value="61" /> <!-- "VSE" -->
3079 <const name="CIMOS_TPF" value="62" /> <!-- "TPF" -->
3080 <const name="CIMOS_WindowsMe" value="63" /> <!-- "Windows (R) Me" -->
3081 <const name="CIMOS_CalderaOpenUNIX" value="64" /> <!-- "Caldera Open UNIX" -->
3082 <const name="CIMOS_OpenBSD" value="65" /> <!-- "OpenBSD" -->
3083 <const name="CIMOS_NotApplicable" value="66" /> <!-- "Not Applicable" -->
3084 <const name="CIMOS_WindowsXP" value="67" /> <!-- "Windows XP" -->
3085 <const name="CIMOS_zOS" value="68" /> <!-- "z/OS" -->
3086 <const name="CIMOS_MicrosoftWindowsServer2003" value="69" /> <!-- "Microsoft Windows Server 2003" -->
3087 <const name="CIMOS_MicrosoftWindowsServer2003_64" value="70" /> <!-- "Microsoft Windows Server 2003 64-Bit" -->
3088 <const name="CIMOS_WindowsXP_64" value="71" /> <!-- "Windows XP 64-Bit" -->
3089 <const name="CIMOS_WindowsXPEmbedded" value="72" /> <!-- "Windows XP Embedded" -->
3090 <const name="CIMOS_WindowsVista" value="73" /> <!-- "Windows Vista" -->
3091 <const name="CIMOS_WindowsVista_64" value="74" /> <!-- "Windows Vista 64-Bit" -->
3092 <const name="CIMOS_WindowsEmbeddedforPointofService" value="75" /> <!-- "Windows Embedded for Point of Service" -->
3093 <const name="CIMOS_MicrosoftWindowsServer2008" value="76" /> <!-- "Microsoft Windows Server 2008" -->
3094 <const name="CIMOS_MicrosoftWindowsServer2008_64" value="77" /> <!-- "Microsoft Windows Server 2008 64-Bit" -->
3095 <const name="CIMOS_FreeBSD_64" value="78" /> <!-- "FreeBSD 64-Bit" -->
3096 <const name="CIMOS_RedHatEnterpriseLinux" value="79" /> <!-- "RedHat Enterprise Linux" -->
3097 <const name="CIMOS_RedHatEnterpriseLinux_64" value="80" /> <!-- "RedHat Enterprise Linux 64-Bit" -->
3098 <const name="CIMOS_Solaris_64" value="81" /> <!-- "Solaris 64-Bit" -->
3099 <const name="CIMOS_SUSE" value="82" /> <!-- "SUSE" -->
3100 <const name="CIMOS_SUSE_64" value="83" /> <!-- "SUSE 64-Bit" -->
3101 <const name="CIMOS_SLES" value="84" /> <!-- "SLES" -->
3102 <const name="CIMOS_SLES_64" value="85" /> <!-- "SLES 64-Bit" -->
3103 <const name="CIMOS_NovellOES" value="86" /> <!-- "Novell OES" -->
3104 <const name="CIMOS_NovellLinuxDesktop" value="87" /> <!-- "Novell Linux Desktop" -->
3105 <const name="CIMOS_SunJavaDesktopSystem" value="88" /> <!-- "Sun Java Desktop System" -->
3106 <const name="CIMOS_Mandriva" value="89" /> <!-- "Mandriva" -->
3107 <const name="CIMOS_Mandriva_64" value="90" /> <!-- "Mandriva 64-Bit" -->
3108 <const name="CIMOS_TurboLinux" value="91" /> <!-- "TurboLinux" -->
3109 <const name="CIMOS_TurboLinux_64" value="92" /> <!-- "TurboLinux 64-Bit" -->
3110 <const name="CIMOS_Ubuntu" value="93" /> <!-- "Ubuntu" -->
3111 <const name="CIMOS_Ubuntu_64" value="94" /> <!-- "Ubuntu 64-Bit" -->
3112 <const name="CIMOS_Debian" value="95" /> <!-- "Debian" -->
3113 <const name="CIMOS_Debian_64" value="96" /> <!-- "Debian 64-Bit" -->
3114 <const name="CIMOS_Linux_2_4_x" value="97" /> <!-- "Linux 2.4.x" -->
3115 <const name="CIMOS_Linux_2_4_x_64" value="98" /> <!-- "Linux 2.4.x 64-Bit" -->
3116 <const name="CIMOS_Linux_2_6_x" value="99" /> <!-- "Linux 2.6.x" -->
3117 <const name="CIMOS_Linux_2_6_x_64" value="100" /> <!-- "Linux 2.6.x 64-Bit" -->
3118 <const name="CIMOS_Linux_64" value="101" /> <!-- "Linux 64-Bit" -->
3119 <const name="CIMOS_Other_64" value="102" /> <!-- "Other 64-Bit" -->
3120 </enum>
3121
3122 <enum
3123 name="OVFResourceType"
3124 uuid="646a78d7-6f04-49f4-82c4-75c28a75a4cd"
3125 >
3126 <desc>
3127 OVF resource type (as listed with CIM_ResourceAllocationSettingData; see for example
3128 http://msdn.microsoft.com/en-us/library/cc136877(VS.85).aspx).
3129 </desc>
3130
3131 <const name="Other" value="1" />
3132 <const name="ComputerSystem" value="2" />
3133 <const name="Processor" value="3" />
3134 <const name="Memory" value="4" />
3135 <const name="IDEController" value="5" />
3136 <const name="ParallelSCSIHBA" value="6" />
3137 <const name="FCHBA" value="7" />
3138 <const name="iSCSIHBA" value="8" />
3139 <const name="IBHCA" value="9" />
3140 <const name="EthernetAdapter" value="10" />
3141 <const name="OtherNetworkAdapter" value="11" />
3142 <const name="IOSlot" value="12" />
3143 <const name="IODevice" value="13" />
3144 <const name="FloppyDrive" value="14" />
3145 <const name="CDDrive" value="15" />
3146 <const name="DVDDrive" value="16" />
3147 <const name="HardDisk" value="17" />
3148 <const name="OtherStorageDevice" value="20" />
3149 <const name="USBController" value="23" />
3150 <const name="SoundCard" value="35" />
3151 </enum>
3152
3153 <interface
3154 name="IAppliance" extends="$unknown"
3155 uuid="07495095-d16c-4911-8964-5914341ced5d"
3156 wsmap="managed"
3157 >
3158 <desc>
3159 Represents a platform-independent appliance in OVF format. An instance of this is returned
3160 by <link to="IVirtualBox::createAppliance" />, which can then be used to import and export
3161 appliances with VirtualBox.
3162
3163 The OVF standard suggests two different physical file formats:
3164
3165 <ol>
3166 <li>If the OVF is distributed as a set of files, then @a file must be a fully qualified
3167 path name to an existing OVF descriptor file with an <tt>.ovf</tt> file extension. If
3168 this descriptor file references other files, as OVF appliances distributed as a set of
3169 files most likely do, those files must be in the same directory as the descriptor file.</li>
3170
3171 <li>If the OVF is distributed as a single file, it must be in TAR format and have the
3172 <tt>.ova</tt> file extension. This TAR file must then contain at least the OVF descriptor
3173 files and optionally other files.
3174
3175 At this time, VirtualBox does not not yet support the packed (TAR) variant; support will
3176 be added with a later version.</li>
3177 </ol>
3178
3179 <b>Importing</b> an OVF appliance into VirtualBox as instances of
3180 <link to="IMachine" /> involves the following sequence of API calls:
3181
3182 <ol>
3183 <li>Call <link to="IVirtualBox::createAppliance" />. This will create an empty IAppliance object.
3184 </li>
3185
3186 <li>On the new object, call <link to="#read" /> with the full path of the OVF file you
3187 would like to import. So long as this file is syntactically valid, this will succeed
3188 and return an instance of IAppliance that contains the parsed data from the OVF file.
3189 </li>
3190
3191 <li>Next, call <link to="#interpret" />, which analyzes the OVF data and sets up the
3192 contents of the IAppliance attributes accordingly. These can be inspected by a
3193 VirtualBox front-end such as the GUI, and the suggestions can be displayed to the
3194 user. In particular, the <link to="#virtualSystemDescriptions" /> array contains
3195 instances of <link to="IVirtualSystemDescription" /> which represent the virtual
3196 systems in the OVF, which in turn describe the virtual hardware prescribed by the
3197 OVF (network and hardware adapters, virtual disk images, memory size and so on).
3198 The GUI can then give the user the option to confirm and/or change these suggestions.
3199 </li>
3200
3201 <li>If desired, call <link to="IVirtualSystemDescription::setFinalValues" /> for each
3202 virtual system to override the suggestions made by the interpret() routine.
3203 </li>
3204
3205 <li>Finally, call <link to="#importMachines" /> to create virtual machines in
3206 VirtualBox as instances of <link to="IMachine" /> that match the information in the
3207 virtual system descriptions.
3208 </li>
3209 </ol>
3210
3211 <b>Exporting</b> VirtualBox machines into an OVF appliance involves the following steps:
3212
3213 <ol>
3214 <li>As with importing, first call <link to="IVirtualBox::createAppliance" /> to create
3215 an empty IAppliance object.
3216 </li>
3217
3218 <li>For each machine you would like to export, call <link to="IMachine::export" />
3219 with the IAppliance object you just created. This creates an instance of
3220 <link to="IVirtualSystemDescription" /> inside the appliance.
3221 </li>
3222
3223 <li>If desired, call <link to="IVirtualSystemDescription::setFinalValues" /> for each
3224 virtual system to override the suggestions made by the export() routine.
3225 </li>
3226
3227 <li>Finally, call <link to="#write" /> with a path specification to have the OVF
3228 file written.</li>
3229 </ol>
3230
3231 </desc>
3232
3233 <attribute name="path" type="wstring" readonly="yes">
3234 <desc>Path to the main file of the OVF appliance, which is either the <tt>.ovf</tt> or
3235 the <tt>.ova</tt> file passed to <link to="#read" /> (for import) or
3236 <link to="#write" /> (for export).
3237 This attribute is empty until one of these methods has been called.
3238 </desc>
3239 </attribute>
3240
3241 <attribute name="disks" type="wstring" readonly="yes" safearray="yes">
3242 <desc>
3243 Array of virtual disk definitions. One such description exists for each
3244 disk definition in the OVF; each string array item represents one such piece of
3245 disk information, with the information fields separated by tab (\\t) characters.
3246
3247 The caller should be prepared for additional fields being appended to
3248 this string in future versions of VirtualBox and therefore check for
3249 the number of tabs in the strings returned.
3250
3251 In the current version, the following eight fields are returned per string
3252 in the array:
3253
3254 <ol>
3255 <li>Disk ID (unique string identifier given to disk)</li>
3256
3257 <li>Capacity (unsigned integer indicating the maximum capacity of the disk)</li>
3258
3259 <li>Populated size (optional unsigned integer indicating the current size of the
3260 disk; can be approximate; -1 if unspecified)</li>
3261
3262 <li>Format (string identifying the disk format, typically
3263 "http://www.vmware.com/specifications/vmdk.html#sparse")</li>
3264
3265 <li>Reference (where to find the disk image, typically a file name; if empty,
3266 then the disk should be created on import)</li>
3267
3268 <li>Image size (optional unsigned integer indicating the size of the image,
3269 which need not necessarily be the same as the values specified above, since
3270 the image may be compressed or sparse; -1 if not specified)</li>
3271
3272 <li>Chunk size (optional unsigned integer if the image is split into chunks;
3273 presently unsupported and always -1)</li>
3274
3275 <li>Compression (optional string equalling "gzip" if the image is gzip-compressed)</li>
3276 </ol>
3277 </desc>
3278 </attribute>
3279
3280 <attribute name="virtualSystemDescriptions" type="IVirtualSystemDescription" readonly="yes" safearray="yes">
3281 <desc> Array of virtual system descriptions. One such description is created
3282 for each virtual system found in the OVF.
3283 This array is empty until either <link to="#interpret" /> (for import) or <link to="IMachine::export" />
3284 (for export) has been called.
3285 </desc>
3286 </attribute>
3287
3288 <method name="read">
3289 <desc>
3290 Reads an OVF file into the appliance object.
3291
3292 This method succeeds if the OVF is syntactically valid and, by itself, without errors. The
3293 mere fact that this method returns successfully does not mean that VirtualBox supports all
3294 features requested by the appliance; this can only be examined after a call to <link to="#interpret" />.
3295 </desc>
3296 <param name="file" type="wstring" dir="in">
3297 <desc>
3298 Name of appliance file to open (either with an <tt>.ovf</tt> or <tt>.ova</tt> extension, depending
3299 on whether the appliance is distributed as a set of files or as a single file, respectively).
3300 </desc>
3301 </param>
3302 </method>
3303
3304 <method name="interpret">
3305 <desc>
3306 Interprets the OVF data that was read when the appliance was constructed. After
3307 calling this method, one can inspect the
3308 <link to="#virtualSystemDescriptions" /> array attribute, which will then contain
3309 one <link to="IVirtualSystemDescription" /> for each virtual machine found in
3310 the appliance.
3311
3312 Calling this method is the second step of importing an appliance into VirtualBox;
3313 see <link to="IAppliance" /> for an overview.
3314
3315 After calling this method, one should call <link to="#getWarnings" /> to find out
3316 if problems were encountered during the processing which might later lead to
3317 errors.
3318 </desc>
3319 </method>
3320
3321 <method name="importMachines">
3322 <desc>
3323 Imports the appliance into VirtualBox by creating instances of <link to="IMachine" />
3324 and other interfaces that match the information contained in the appliance as
3325 closely as possible, as represented by the import instructions in the
3326 <link to="#virtualSystemDescriptions" /> array.
3327
3328 Calling this method is the final step of importing an appliance into VirtualBox;
3329 see <link to="IAppliance" /> for an overview.
3330
3331 Since importing the appliance will most probably involve copying and converting
3332 disk images, which can take a long time, this method operates asynchronously and
3333 returns an IProgress object to allow the caller to monitor the progress.
3334 </desc>
3335
3336 <param name="aProgress" type="IProgress" dir="return">
3337 <desc></desc>
3338 </param>
3339 </method>
3340
3341 <method name="createVFSExplorer">
3342 <desc>Returns a <link to="IVFSExplorer" /> object for the given URI.</desc>
3343
3344 <param name="aUri" type="wstring" dir="in">
3345 <desc>The URI describing the file system to use.</desc>
3346 </param>
3347
3348 <param name="aExplorer" type="IVFSExplorer" dir="return">
3349 <desc></desc>
3350 </param>
3351 </method>
3352
3353 <method name="write">
3354 <desc>
3355 Writes the contents of the appliance exports into a new OVF file.
3356
3357 Calling this method is the final step of exporting an appliance from VirtualBox;
3358 see <link to="IAppliance" /> for an overview.
3359
3360 Since exporting the appliance will most probably involve copying and converting
3361 disk images, which can take a long time, this method operates asynchronously and
3362 returns an IProgress object to allow the caller to monitor the progress.
3363 </desc>
3364 <param name="format" type="wstring" dir="in">
3365 <desc>
3366 Output format, as a string. Currently supported formats are "ovf-0.9" and "ovf-1.0";
3367 future versions of VirtualBox may support additional formats.
3368 </desc>
3369 </param>
3370 <param name="path" type="wstring" dir="in">
3371 <desc>
3372 Name of appliance file to open (either with an <tt>.ovf</tt> or <tt>.ova</tt> extension, depending
3373 on whether the appliance is distributed as a set of files or as a single file, respectively).
3374 </desc>
3375 </param>
3376 <param name="aProgress" type="IProgress" dir="return">
3377 <desc>Progress object to track the operation completion.</desc>
3378 </param>
3379 </method>
3380
3381 <method name="getWarnings">
3382 <desc>Returns textual warnings which occured during execution of <link to="#interpret" />.</desc>
3383
3384 <param name="aWarnings" type="wstring" dir="return" safearray="yes">
3385 <desc></desc>
3386 </param>
3387 </method>
3388
3389 </interface>
3390
3391 <enum
3392 name="VirtualSystemDescriptionType"
3393 uuid="aacc58de-5b45-4f82-ae2e-dd9a824fc3b5"
3394 >
3395 <desc>Used with <link to="IVirtualSystemDescription" /> to describe the type of
3396 a configuration value.</desc>
3397
3398 <const name="Ignore" value="1" />
3399 <const name="OS" value="2" />
3400 <const name="Name" value="3" />
3401 <const name="Product" value="4" />
3402 <const name="Vendor" value="5" />
3403 <const name="Version" value="6" />
3404 <const name="ProductUrl" value="7" />
3405 <const name="VendorUrl" value="8" />
3406 <const name="Description" value="9" />
3407 <const name="License" value="10" />
3408 <const name="Miscellaneous" value="11" />
3409 <const name="CPU" value="12" />
3410 <const name="Memory" value="13" />
3411 <const name="HardDiskControllerIDE" value="14" />
3412 <const name="HardDiskControllerSATA" value="15" />
3413 <const name="HardDiskControllerSCSI" value="16" />
3414 <const name="HardDiskImage" value="17" />
3415 <const name="Floppy" value="18" />
3416 <const name="CDROM" value="19" />
3417 <const name="NetworkAdapter" value="20" />
3418 <const name="USBController" value="21" />
3419 <const name="SoundCard" value="22" />
3420
3421 </enum>
3422
3423 <enum
3424 name="VirtualSystemDescriptionValueType"
3425 uuid="56d9403f-3425-4118-9919-36f2a9b8c77c"
3426 >
3427 <desc>Used with <link to="IVirtualSystemDescription::getValuesByType" /> to describe the value
3428 type to fetch.</desc>
3429
3430 <const name="Reference" value="1" />
3431 <const name="Original" value="2" />
3432 <const name="Auto" value="3" />
3433 <const name="ExtraConfig" value="4" />
3434
3435 </enum>
3436
3437 <interface
3438 name="IVirtualSystemDescription" extends="$unknown"
3439 uuid="d7525e6c-531a-4c51-8e04-41235083a3d8"
3440 wsmap="managed"
3441 >
3442
3443 <desc>This interface is used in the <link to="IAppliance::virtualSystemDescriptions" /> array.
3444 After <link to="IAppliance::interpret" /> has been called, that array contains
3445 information about how the virtual systems described in the OVF should best be imported into VirtualBox
3446 virtual machines. See <link to="IAppliance" /> for the steps required to import an OVF
3447 into VirtualBox.
3448 </desc>
3449
3450 <attribute name="count" type="unsigned long" readonly="yes">
3451 <desc>Return the number of virtual system description entries.</desc>
3452 </attribute>
3453
3454 <method name="getDescription">
3455 <desc>Returns information about the virtual system as arrays of instruction items. In each array, the
3456 items with the same indices correspond and jointly represent an import instruction for VirtualBox.
3457
3458 The list below identifies the value sets that are possible depending on the
3459 <link to="VirtualSystemDescriptionType" /> enum value in the array item in aTypes[]. In each case,
3460 the array item with the same index in aOvfValues[] will contain the original value as contained
3461 in the OVF file (just for informational purposes), and the corresponding item in aVBoxValues[]
3462 will contain a suggested value to be used for VirtualBox. Depending on the description type,
3463 the aExtraConfigValues[] array item may also be used.
3464
3465 <ul>
3466 <li>
3467 "OS": the guest operating system type. There must be exactly one such array item on import. The
3468 corresponding item in aVBoxValues[] contains the suggested guest operating system for VirtualBox.
3469 This will be one of the values listed in <link to="IVirtualBox::guestOSTypes" />. The corresponding
3470 item in aOvfValues[] will contain a numerical value that described the operating system in the OVF
3471 (see <link to="CIMOSType" />).
3472 </li>
3473 <li>
3474 "Name": the name to give to the new virtual machine. There can be at most one such array item;
3475 if none is present on import, then an automatic name will be created from the operating system
3476 type. The correponding item im aOvfValues[] will contain the suggested virtual machine name
3477 from the OVF file, and aVBoxValues[] will contain a suggestion for a unique VirtualBox
3478 <link to="IMachine" /> name that does not exist yet.
3479 </li>
3480 <li>
3481 "Description": an arbitrary description.
3482 </li>
3483 <li>
3484 "License": the EULA section from the OVF, if present. It is the responsibility of the calling
3485 code to display such a license for agreement; the Main API does not enforce any such policy.
3486 </li>
3487 <li>
3488 Miscellaneous: reserved for future use.
3489 </li>
3490 <li>
3491 "CPU": the number of CPUs. There can be at most one such item, which will presently be ignored.
3492 </li>
3493 <li>
3494 "Memory": the amount of guest RAM, in bytes. There can be at most one such array item; if none
3495 is present on import, then VirtualBox will set a meaningful default based on the operating system
3496 type.
3497 </li>
3498 <li>
3499 "HarddiskControllerIDE": an IDE hard disk controller. There can be at most one such item. This
3500 has no value in aOvfValues[] or aVBoxValues[].
3501 The matching item in the aRefs[] array will contain an integer that items of the "Harddisk"
3502 type can use to specify which hard disk controller a virtual disk should be connected to.
3503 </li>
3504 <li>
3505 "HarddiskControllerSATA": an SATA hard disk controller. There can be at most one such item. This
3506 has no value in aOvfValues[] or aVBoxValues[].
3507 The matching item in the aRefs[] array will be used as with IDE controllers (see above).
3508 </li>
3509 <li>
3510 "HarddiskControllerSCSI": a SCSI hard disk controller. There can be at most one such item.
3511 The items in aOvfValues[] and aVBoxValues[] will either be "LsiLogic" or "BusLogic".
3512 The matching item in the aRefs[] array will be used as with IDE controllers (see above).
3513 </li>
3514 <li>
3515 "HardDiskImage": a virtual hard disk, most probably as a reference to an image file. There can be an
3516 arbitrary number of these items, one for each virtual disk image that accompanies the OVF.
3517
3518 The array item in aOvfValues[] will contain the file specification from the OVF file (without
3519 a path since the image file should be in the same location as the OVF file itself), whereas the
3520 item in aVBoxValues[] will contain a qualified path specification to where VirtualBox uses the
3521 hard disk image. This means that on import the image will be copied and converted from the
3522 "ovf" location to the "vbox" location; on export, this will be handled the other way round.
3523 On import, the target image will also be registered with VirtualBox.
3524
3525 The matching item in the aExtraConfigValues[] array must contain a string of the following
3526 format: "controller=&lt;index&gt;;channel=&lt;c&gt;"
3527 In this string, &lt;index&gt; must be an integer specifying the hard disk controller to connect
3528 the image to. That number must be the index of an array item with one of the hard disk controller
3529 types (HarddiskControllerSCSI, HarddiskControllerSATA, HarddiskControllerIDE).
3530 In addition, &lt;c&gt; must specify the channel to use on that controller. For IDE controllers,
3531 this can range from 0-2 (which VirtualBox will interpret as primary master, primary slave,
3532 secondary slave; VirtualBox reserves the secondary master for the CD-ROM drive). For SATA and
3533 SCSI conrollers, the channel can range from 0-29.
3534 </li>
3535 <li>
3536 "NetworkAdapter": a network adapter. The array item in aVBoxValues[] will specify the hardware
3537 for the network adapter, whereas the array item in aExtraConfigValues[] will have a string
3538 of the "type=&lt;X&gt;" format, where &lt;X&gt; must be either "NAT" or "Bridged".
3539 </li>
3540 <li>
3541 "USBController": a USB controller. There can be at most one such item. If and only if such an
3542 item ispresent, USB support will be enabled for the new virtual machine.
3543 </li>
3544 <li>
3545 "SoundCard": a sound card. There can be at most one such item. If and only if such an item is
3546 present, sound support will be enabled for the new virtual machine. Note that the virtual
3547 machine in VirtualBox will always be presented with the standard VirtualBox soundcard, which
3548 may be different from the virtual soundcard expected by the appliance.
3549 </li>
3550 </ul>
3551
3552 </desc>
3553
3554 <param name="aTypes" type="VirtualSystemDescriptionType" dir="out" safearray="yes">
3555 <desc></desc>
3556 </param>
3557
3558 <param name="aRefs" type="wstring" dir="out" safearray="yes">
3559 <desc></desc>
3560 </param>
3561
3562 <param name="aOvfValues" type="wstring" dir="out" safearray="yes">
3563 <desc></desc>
3564 </param>
3565
3566 <param name="aVBoxValues" type="wstring" dir="out" safearray="yes">
3567 <desc></desc>
3568 </param>
3569
3570 <param name="aExtraConfigValues" type="wstring" dir="out" safearray="yes">
3571 <desc></desc>
3572 </param>
3573
3574 </method>
3575
3576 <method name="getDescriptionByType">
3577 <desc>This is the same as <link to="#getDescription" /> except that you can specify which types
3578 should be returned.</desc>
3579
3580 <param name="aType" type="VirtualSystemDescriptionType" dir="in">
3581 <desc></desc>
3582 </param>
3583
3584 <param name="aTypes" type="VirtualSystemDescriptionType" dir="out" safearray="yes">
3585 <desc></desc>
3586 </param>
3587
3588 <param name="aRefs" type="wstring" dir="out" safearray="yes">
3589 <desc></desc>
3590 </param>
3591
3592 <param name="aOvfValues" type="wstring" dir="out" safearray="yes">
3593 <desc></desc>
3594 </param>
3595
3596 <param name="aVBoxValues" type="wstring" dir="out" safearray="yes">
3597 <desc></desc>
3598 </param>
3599
3600 <param name="aExtraConfigValues" type="wstring" dir="out" safearray="yes">
3601 <desc></desc>
3602 </param>
3603
3604 </method>
3605
3606 <method name="getValuesByType">
3607 <desc>This is the same as <link to="#getDescriptionByType" /> except that you can specify which
3608 value types should be returned. See <link to="VirtualSystemDescriptionValueType" /> for possible
3609 values.</desc>
3610
3611 <param name="aType" type="VirtualSystemDescriptionType" dir="in">
3612 <desc></desc>
3613 </param>
3614
3615 <param name="aWhich" type="VirtualSystemDescriptionValueType" dir="in">
3616 <desc></desc>
3617 </param>
3618
3619 <param name="aValues" type="wstring" dir="return" safearray="yes">
3620 <desc></desc>
3621 </param>
3622
3623 </method>
3624
3625 <method name="setFinalValues">
3626 <desc>
3627 This method allows the appliance's user to change the configuration for the virtual
3628 system descriptions. For each array item returned from <link to="#getDescription" />,
3629 you must pass in one boolean value and one configuration value.
3630
3631 Each item in the boolean array determines whether the particular configuration item
3632 should be enabled.
3633 You can only disable items of the types HardDiskControllerIDE, HardDiskControllerSATA,
3634 HardDiskControllerSCSI, HardDiskImage, CDROM, Floppy, NetworkAdapter, USBController
3635 and SoundCard.
3636
3637 For the "vbox" and "extra configuration" values, if you pass in the same arrays
3638 as returned in the aVBoxValues and aExtraConfigValues arrays from getDescription(),
3639 the configuration remains unchanged. Please see the documentation for getDescription()
3640 for valid configuration values for the individual array item types. If the
3641 corresponding item in the aEnabled array is false, the configuration value is ignored.
3642 </desc>
3643
3644 <param name="aEnabled" type="boolean" dir="in" safearray="yes">
3645 <desc></desc>
3646 </param>
3647
3648 <param name="aVBoxValues" type="wstring" dir="in" safearray="yes">
3649 <desc></desc>
3650 </param>
3651
3652 <param name="aExtraConfigValues" type="wstring" dir="in" safearray="yes">
3653 <desc></desc>
3654 </param>
3655 </method>
3656
3657 <method name="addDescription">
3658 <desc>
3659 This method adds an additional description entry to the stack of already
3660 available descriptions for this virtual system. This is handy for writing
3661 values which aren't directly supported by VirtualBox. One example would
3662 be the License type of <link to="VirtualSystemDescriptionType" />.
3663 </desc>
3664
3665 <param name="aType" type="VirtualSystemDescriptionType" dir="in">
3666 <desc></desc>
3667 </param>
3668
3669 <param name="aVBoxValue" type="wstring" dir="in">
3670 <desc></desc>
3671 </param>
3672
3673 <param name="aExtraConfigValue" type="wstring" dir="in">
3674 <desc></desc>
3675 </param>
3676 </method>
3677 </interface>
3678
3679
3680 <!--
3681 // IMachine
3682 /////////////////////////////////////////////////////////////////////////
3683 -->
3684
3685 <interface
3686 name="IInternalMachineControl" extends="$unknown"
3687 uuid="5595cae1-6b18-42c1-b416-bc7493a87618"
3688 internal="yes"
3689 wsmap="suppress"
3690 >
3691 <method name="updateState">
3692 <desc>
3693 Updates the VM state.
3694 <note>
3695 This operation will also update the settings file with
3696 the correct information about the saved state file
3697 and delete this file from disk when appropriate.
3698 </note>
3699 </desc>
3700 <param name="state" type="MachineState" dir="in"/>
3701 </method>
3702
3703 <method name="getIPCId">
3704 <param name="id" type="wstring" dir="return"/>
3705 </method>
3706
3707 <method name="runUSBDeviceFilters">
3708 <desc>
3709 Asks the server to run USB devices filters of the associated
3710 machine against the given USB device and tell if there is
3711 a match.
3712 <note>
3713 Intended to be used only for remote USB devices. Local
3714 ones don't require to call this method (this is done
3715 implicitly by the Host and USBProxyService).
3716 </note>
3717 </desc>
3718 <param name="device" type="IUSBDevice" dir="in"/>
3719 <param name="matched" type="boolean" dir="out"/>
3720 <param name="maskedInterfaces" type="unsigned long" dir="out"/>
3721 </method>
3722
3723 <method name="captureUSBDevice">
3724 <desc>
3725 Requests a capture of the given host USB device.
3726 When the request is completed, the VM process will
3727 get a <link to="IInternalSessionControl::onUSBDeviceAttach"/>
3728 notification.
3729 </desc>
3730 <param name="id" type="wstring" dir="in"/>
3731 </method>
3732
3733 <method name="detachUSBDevice">
3734 <desc>
3735 Notification that a VM is going to detach (done = false) or has
3736 already detached (done = true) the given USB device.
3737 When the done = true request is completed, the VM process will
3738 get a <link to="IInternalSessionControl::onUSBDeviceDetach"/>
3739 notification.
3740 <note>
3741 In the done = true case, the server must run its own filters
3742 and filters of all VMs but this one on the detached device
3743 as if it were just attached to the host computer.
3744 </note>
3745 </desc>
3746 <param name="id" type="wstring" dir="in"/>
3747 <param name="done" type="boolean" dir="in"/>
3748 </method>
3749
3750 <method name="autoCaptureUSBDevices">
3751 <desc>
3752 Requests a capture all matching USB devices attached to the host.
3753 When the request is completed, the VM process will
3754 get a <link to="IInternalSessionControl::onUSBDeviceAttach"/>
3755 notification per every captured device.
3756 </desc>
3757 </method>
3758
3759 <method name="detachAllUSBDevices">
3760 <desc>
3761 Notification that a VM that is being powered down. The done
3762 parameter indicates whether which stage of the power down
3763 we're at. When done = false the VM is announcing its
3764 intentions, while when done = true the VM is reporting
3765 what it has done.
3766 <note>
3767 In the done = true case, the server must run its own filters
3768 and filters of all VMs but this one on all detach devices as
3769 if they were just attached to the host computer.
3770 </note>
3771 </desc>
3772 <param name="done" type="boolean" dir="in"/>
3773 </method>
3774
3775 <method name="onSessionEnd">
3776 <desc>
3777 Triggered by the given session object when the session is about
3778 to close normally.
3779 </desc>
3780 <param name="session" type="ISession" dir="in">
3781 <desc>Session that is being closed</desc>
3782 </param>
3783 <param name="progress" type="IProgress" dir="return">
3784 <desc>
3785 Used to wait until the corresponding machine is actually
3786 dissociated from the given session on the server.
3787 Returned only when this session is a direct one.
3788 </desc>
3789 </param>
3790 </method>
3791
3792 <method name="beginSavingState">
3793 <desc>
3794 Called by the VM process to inform the server it wants to
3795 save the current state and stop the VM execution.
3796 </desc>
3797 <param name="progress" type="IProgress" dir="in">
3798 <desc>
3799 Progress object created by the VM process to wait until
3800 the state is saved.
3801 </desc>
3802 </param>
3803 <param name="stateFilePath" type="wstring" dir="out">
3804 <desc>
3805 File path the VM process must save the execution state to.
3806 </desc>
3807 </param>
3808 </method>
3809
3810 <method name="endSavingState">
3811 <desc>
3812 Called by the VM process to inform the server that saving
3813 the state previously requested by #beginSavingState is either
3814 successfully finished or there was a failure.
3815
3816 <result name="VBOX_E_FILE_ERROR">
3817 Settings file not accessible.
3818 </result>
3819 <result name="VBOX_E_XML_ERROR">
3820 Could not parse the settings file.
3821 </result>
3822
3823 </desc>
3824
3825 <param name="success" type="boolean" dir="in">
3826 <desc><tt>true</tt> to indicate success and <tt>false</tt>
3827 otherwise.
3828 </desc>
3829 </param>
3830 </method>
3831
3832 <method name="adoptSavedState">
3833 <desc>
3834 Gets called by IConsole::adoptSavedState.
3835 <result name="VBOX_E_FILE_ERROR">
3836 Invalid saved state file path.
3837 </result>
3838 </desc>
3839 <param name="savedStateFile" type="wstring" dir="in">
3840 <desc>Path to the saved state file to adopt.</desc>
3841 </param>
3842 </method>
3843
3844 <method name="beginTakingSnapshot">
3845 <desc>
3846 Called by the VM process to inform the server it wants to
3847 take a snapshot.
3848
3849 <result name="VBOX_E_FILE_ERROR">
3850 Settings file not accessible.
3851 </result>
3852 <result name="VBOX_E_XML_ERROR">
3853 Could not parse the settings file.
3854 </result>
3855 </desc>
3856 <param name="initiator" type="IConsole" dir="in">
3857 <desc>The console object that initiated this call.</desc>
3858 </param>
3859 <param name="name" type="wstring" dir="in">
3860 <desc>Snapshot name.</desc>
3861 </param>
3862 <param name="description" type="wstring" dir="in">
3863 <desc>Snapshot description.</desc>
3864 </param>
3865 <param name="progress" type="IProgress" dir="in">
3866 <desc>
3867 Progress object created by the VM process to wait until
3868 the state is saved (only for online snapshots).
3869 </desc>
3870 </param>
3871 <param name="stateFilePath" type="wstring" dir="out">
3872 <desc>
3873 File path the VM process must save the execution state to.
3874 </desc>
3875 </param>
3876 <param name="serverProgress" type="IProgress" dir="out">
3877 <desc>
3878 Progress object created by the server process to wait until
3879 the snapshot is taken (VDI diff creation, etc.).
3880 </desc>
3881 </param>
3882 </method>
3883
3884 <method name="endTakingSnapshot">
3885 <desc>
3886 Called by the VM process to inform the server that the snapshot
3887 previously requested by #beginTakingSnapshot is either
3888 successfully taken or there was a failure.
3889 </desc>
3890
3891 <param name="success" type="boolean" dir="in">
3892 <desc><tt>true</tt> to indicate success and <tt>false</tt> otherwise</desc>
3893 </param>
3894 </method>
3895
3896 <method name="discardSnapshot">
3897 <desc>
3898 Gets called by IConsole::discardSnapshot.
3899 <result name="VBOX_E_INVALID_OBJECT_STATE">
3900 Snapshot has more than one child snapshot.
3901 </result>
3902 </desc>
3903 <param name="initiator" type="IConsole" dir="in">
3904 <desc>The console object that initiated this call.</desc>
3905 </param>
3906 <param name="id" type="wstring" dir="in">
3907 <desc>UUID of the snapshot to discard.</desc>
3908 </param>
3909 <param name="machineState" type="MachineState" dir="out">
3910 <desc>New machine state after this operation is started.</desc>
3911 </param>
3912 <param name="progress" type="IProgress" dir="return">
3913 <desc>Progress object to track the operation completion.</desc>
3914 </param>
3915 </method>
3916
3917 <method name="discardCurrentState">
3918 <desc>
3919 Gets called by IConsole::discardCurrentState.
3920 <result name="VBOX_E_INVALID_OBJECT_STATE">
3921 Virtual machine does not have any snapshot.
3922 </result>
3923 </desc>
3924 <param name="initiator" type="IConsole" dir="in">
3925 <desc>The console object that initiated this call.</desc>
3926 </param>
3927 <param name="machineState" type="MachineState" dir="out">
3928 <desc>New machine state after this operation is started.</desc>
3929 </param>
3930 <param name="progress" type="IProgress" dir="return">
3931 <desc>Progress object to track the operation completion.</desc>
3932 </param>
3933 </method>
3934
3935 <method name="discardCurrentSnapshotAndState">
3936 <desc>
3937 Gets called by IConsole::discardCurrentSnapshotAndState.
3938 <result name="VBOX_E_INVALID_OBJECT_STATE">
3939 Virtual machine does not have any snapshot.
3940 </result>
3941 </desc>
3942 <param name="initiator" type="IConsole" dir="in">
3943 <desc>The console object that initiated this call.</desc>
3944 </param>
3945 <param name="machineState" type="MachineState" dir="out">
3946 <desc>New machine state after this operation is started.</desc>
3947 </param>
3948 <param name="progress" type="IProgress" dir="return">
3949 <desc>Progress object to track the operation completion.</desc>
3950 </param>
3951 </method>
3952
3953 <method name="pullGuestProperties">
3954 <desc>
3955 Get the list of the guest properties matching a set of patterns along
3956 with their values, time stamps and flags and give responsibility for
3957 managing properties to the console.
3958 </desc>
3959 <param name="name" type="wstring" dir="out" safearray="yes">
3960 <desc>
3961 The names of the properties returned.
3962 </desc>
3963 </param>
3964 <param name="value" type="wstring" dir="out" safearray="yes">
3965 <desc>
3966 The values of the properties returned. The array entries match the
3967 corresponding entries in the @a name array.
3968 </desc>
3969 </param>
3970 <param name="timestamp" type="unsigned long long" dir="out" safearray="yes">
3971 <desc>
3972 The time stamps of the properties returned. The array entries match
3973 the corresponding entries in the @a name array.
3974 </desc>
3975 </param>
3976 <param name="flags" type="wstring" dir="out" safearray="yes">
3977 <desc>
3978 The flags of the properties returned. The array entries match the
3979 corresponding entries in the @a name array.
3980 </desc>
3981 </param>
3982 </method>
3983
3984 <method name="pushGuestProperties">
3985 <desc>
3986 Set the list of the guest properties matching a set of patterns along
3987 with their values, time stamps and flags and return responsibility for
3988 managing properties to IMachine.
3989 </desc>
3990 <param name="name" type="wstring" dir="in" safearray="yes">
3991 <desc>
3992 The names of the properties.
3993 </desc>
3994 </param>
3995 <param name="value" type="wstring" dir="in" safearray="yes">
3996 <desc>
3997 The values of the properties. 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="in" safearray="yes">
4002 <desc>
4003 The time stamps of the properties. The array entries match
4004 the corresponding entries in the @a name array.
4005 </desc>
4006 </param>
4007 <param name="flags" type="wstring" dir="in" safearray="yes">
4008 <desc>
4009 The flags of the properties. The array entries match the
4010 corresponding entries in the @a name array.
4011 </desc>
4012 </param>
4013 </method>
4014 <method name="pushGuestProperty">
4015 <desc>
4016 Update a single guest property in IMachine.
4017 </desc>
4018 <param name="name" type="wstring" dir="in">
4019 <desc>
4020 The name of the property to be updated.
4021 </desc>
4022 </param>
4023 <param name="value" type="wstring" dir="in">
4024 <desc>
4025 The value of the property.
4026 </desc>
4027 </param>
4028 <param name="timestamp" type="unsigned long long" dir="in">
4029 <desc>
4030 The timestamp of the property.
4031 </desc>
4032 </param>
4033 <param name="flags" type="wstring" dir="in">
4034 <desc>
4035 The flags of the property.
4036 </desc>
4037 </param>
4038 </method>
4039
4040 <method name="lockMedia">
4041 <desc>
4042 Locks all media attached to the machine for writing and parents of
4043 attahced different hard disks (if any) for reading. This operation is
4044 atomic so that if it fails no media is actually locked.
4045
4046 This method is intended to be called when the machine is in Starting or
4047 Restoring state. The locked media will be automatically unlocked when
4048 the machine is powered off or crashed.
4049 </desc>
4050 </method>
4051 </interface>
4052
4053 <interface
4054 name="IBIOSSettings" extends="$unknown"
4055 uuid="38b54279-dc35-4f5e-a431-835b867c6b5e"
4056 wsmap="managed"
4057 >
4058 <desc>
4059 The IBIOSSettings interface represents BIOS settings of the virtual
4060 machine. This is used only in the <link to="IMachine::BIOSSettings" /> attribute.
4061 </desc>
4062 <attribute name="logoFadeIn" type="boolean">
4063 <desc>Fade in flag for BIOS logo animation.</desc>
4064 </attribute>
4065
4066 <attribute name="logoFadeOut" type="boolean">
4067 <desc>Fade out flag for BIOS logo animation.</desc>
4068 </attribute>
4069
4070 <attribute name="logoDisplayTime" type="unsigned long">
4071 <desc>BIOS logo display time in milliseconds (0 = default).</desc>
4072 </attribute>
4073
4074 <attribute name="logoImagePath" type="wstring">
4075 <desc>Local file system path for external BIOS image.</desc>
4076 </attribute>
4077
4078 <attribute name="bootMenuMode" type="BIOSBootMenuMode">
4079 <desc>Mode of the BIOS boot device menu.</desc>
4080 </attribute>
4081
4082 <attribute name="ACPIEnabled" type="boolean">
4083 <desc>ACPI support flag.</desc>
4084 </attribute>
4085
4086 <attribute name="IOAPICEnabled" type="boolean">
4087 <desc>
4088 IO APIC support flag. If set, VirtualBox will provide an IO APIC
4089 and support IRQs above 15.
4090 </desc>
4091 </attribute>
4092
4093 <attribute name="timeOffset" type="long long">
4094 <desc>
4095 Offset in milliseconds from the host system time. This allows for
4096 guests running with a different system date/time than the host.
4097 It is equivalent to setting the system date/time in the BIOS except
4098 it is not an absolute value but a relative one. Guest Additions
4099 time synchronization honors this offset.
4100 </desc>
4101 </attribute>
4102
4103 <attribute name="PXEDebugEnabled" type="boolean">
4104 <desc>
4105 PXE debug logging flag. If set, VirtualBox will write extensive
4106 PXE trace information to the release log.
4107 </desc>
4108 </attribute>
4109
4110 </interface>
4111
4112 <interface
4113 name="IMachine" extends="$unknown"
4114 uuid="4d1df26d-d9c1-4c7e-b689-15e85ecf8ffc"
4115 wsmap="managed"
4116 >
4117 <desc>
4118 The IMachine interface represents a virtual machine, or guest, created
4119 in VirtualBox.
4120
4121 This interface is used in two contexts. First of all, a collection of
4122 objects implementing this interface is stored in the
4123 <link to="IVirtualBox::machines"/> attribute which lists all the virtual
4124 machines that are currently registered with this VirtualBox
4125 installation. Also, once a session has been opened for the given virtual
4126 machine (e.g. the virtual machine is running), the machine object
4127 associated with the open session can be queried from the session object;
4128 see <link to="ISession"/> for details.
4129
4130 The main role of this interface is to expose the settings of the virtual
4131 machine and provide methods to change various aspects of the virtual
4132 machine's configuration. For machine objects stored in the
4133 <link to="IVirtualBox::machines"/> collection, all attributes are
4134 read-only unless explicitly stated otherwise in individual attribute
4135 and method descriptions. In order to change a machine setting, a session
4136 for this machine must be opened using one of
4137 <link to="IVirtualBox::openSession"/>,
4138 <link to="IVirtualBox::openRemoteSession"/> or
4139 <link to="IVirtualBox::openExistingSession"/> methods. After the
4140 session has been successfully opened, a mutable machine object needs to
4141 be queried from the session object and then the desired settings changes
4142 can be applied to the returned object using IMachine attributes and
4143 methods. See the ISession interface description for more information
4144 about sessions.
4145
4146 Note that the IMachine interface does not provide methods to control
4147 virtual machine execution (such as start the machine, or power it
4148 down) -- these methods are grouped in a separate IConsole
4149 interface. Refer to the IConsole interface description to get more
4150 information about this topic.
4151
4152 <see>ISession, IConsole</see>
4153 </desc>
4154
4155 <attribute name="parent" type="IVirtualBox" readonly="yes">
4156 <desc>Associated parent object.</desc>
4157 </attribute>
4158
4159 <attribute name="accessible" type="boolean" readonly="yes">
4160 <desc>
4161 Whether this virtual machine is currently accessible or not.
4162
4163 The machine is considered to be inaccessible when:
4164 <ul>
4165 <li>It is a registered virtual machine, and
4166 </li>
4167 <li>Its settings file is inaccessible (for example, it is
4168 located on a network share that is not accessible during
4169 VirtualBox startup, or becomes inaccessible later, or if
4170 the settings file can be read but is invalid).
4171 </li>
4172 </ul>
4173
4174 Otherwise, the value of this property is always <tt>true</tt>.
4175
4176 Every time this property is read, the accessibility state of
4177 this machine is re-evaluated. If the returned value is |false|,
4178 the <link to="#accessError"/> property may be used to get the
4179 detailed error information describing the reason of
4180 inaccessibility.
4181
4182 When the machine is inaccessible, only the following properties
4183 can be used on it:
4184 <ul>
4185 <li><link to="#parent"/></li>
4186 <li><link to="#id"/></li>
4187 <li><link to="#settingsFilePath"/></li>
4188 <li><link to="#accessible"/></li>
4189 <li><link to="#accessError"/></li>
4190 </ul>
4191
4192 An attempt to access any other property or method will return
4193 an error.
4194
4195 The only possible action you can perform on an inaccessible
4196 machine is to unregister it using the
4197 <link to="IVirtualBox::unregisterMachine"/> call (or, to check
4198 for the accessibility state once more by querying this
4199 property).
4200
4201 <note>
4202 In the current implementation, once this property returns
4203 <tt>true</tt>, the machine will never become inaccessible
4204 later, even if its settings file cannot be successfully
4205 read/written any more (at least, until the VirtualBox
4206 server is restarted). This limitation may be removed in
4207 future releases.
4208 </note>
4209 </desc>
4210 </attribute>
4211
4212 <attribute name="accessError" type="IVirtualBoxErrorInfo" readonly="yes">
4213 <desc>
4214 Error information describing the reason of machine
4215 inaccessibility.
4216
4217 Reading this property is only valid after the last call to
4218 <link to="#accessible"/> returned <tt>false</tt> (i.e. the
4219 machine is currently unaccessible). Otherwise, a null
4220 IVirtualBoxErrorInfo object will be returned.
4221 </desc>
4222 </attribute>
4223
4224 <attribute name="name" type="wstring">
4225 <desc>
4226 Name of the virtual machine.
4227
4228 Besides being used for human-readable identification purposes
4229 everywhere in VirtualBox, the virtual machine name is also used
4230 as a name of the machine's settings file and as a name of the
4231 subdirectory this settings file resides in. Thus, every time you
4232 change the value of this property, the settings file will be
4233 renamed once you call <link to="#saveSettings"/> to confirm the
4234 change. The containing subdirectory will be also renamed, but
4235 only if it has exactly the same name as the settings file
4236 itself prior to changing this property (for backward compatibility
4237 with previous API releases). The above implies the following
4238 limitations:
4239 <ul>
4240 <li>The machine name cannot be empty.</li>
4241 <li>The machine name can contain only characters that are valid
4242 file name characters according to the rules of the file
4243 system used to store VirtualBox configuration.</li>
4244 <li>You cannot have two or more machines with the same name
4245 if they use the same subdirectory for storing the machine
4246 settings files.</li>
4247 <li>You cannot change the name of the machine if it is running,
4248 or if any file in the directory containing the settings file
4249 is being used by another running machine or by any other
4250 process in the host operating system at a time when
4251 <link to="#saveSettings"/> is called.
4252 </li>
4253 </ul>
4254 If any of the above limitations are hit, <link to="#saveSettings"/>
4255 will return an appropriate error message explaining the exact
4256 reason and the changes you made to this machine will not be
4257 saved.
4258 <note>
4259 For "legacy" machines created using the
4260 <link to="IVirtualBox::createLegacyMachine"/> call,
4261 the above naming limitations do not apply because the
4262 machine name does not affect the settings file name.
4263 The settings file name remains the same as it was specified
4264 during machine creation and never changes.
4265 </note>
4266 </desc>
4267 </attribute>
4268
4269 <attribute name="description" type="wstring">
4270 <desc>
4271 Description of the virtual machine.
4272
4273 The description attribute can contain any text and is
4274 typically used to describe the hardware and software
4275 configuration of the virtual machine in detail (i.e. network
4276 settings, versions of the installed software and so on).
4277 </desc>
4278 </attribute>
4279
4280 <attribute name="id" type="wstring" readonly="yes">
4281 <desc>UUID of the virtual machine.</desc>
4282 </attribute>
4283
4284 <attribute name="OSTypeId" type="wstring">
4285 <desc>
4286 User-defined identifier of the Guest OS type.
4287 You may use <link to="IVirtualBox::getGuestOSType"/> to obtain
4288 an IGuestOSType object representing details about the given
4289 Guest OS type.
4290 <note>
4291 This value may differ from the value returned by
4292 <link to="IGuest::OSTypeId"/> if Guest Additions are
4293 installed to the guest OS.
4294 </note>
4295 </desc>
4296 </attribute>
4297
4298 <attribute name="HardwareVersion" type="wstring">
4299 <desc>Hardware version identifier. Internal use only for now.</desc>
4300 </attribute>
4301
4302 <attribute name="CPUCount" type="unsigned long">
4303 <desc>Number of virtual CPUs in the VM. In the current version of the product, this is always 1.</desc>
4304 </attribute>
4305
4306 <attribute name="memorySize" type="unsigned long">
4307 <desc>System memory size in megabytes.</desc>
4308 </attribute>
4309
4310 <attribute name="memoryBalloonSize" type="unsigned long">
4311 <desc>Initial memory balloon size in megabytes.</desc>
4312 </attribute>
4313
4314 <attribute name="statisticsUpdateInterval" type="unsigned long">
4315 <desc>Initial interval to update guest statistics in seconds.</desc>
4316 </attribute>
4317
4318 <attribute name="VRAMSize" type="unsigned long">
4319 <desc>Video memory size in megabytes.</desc>
4320 </attribute>
4321
4322 <attribute name="accelerate3DEnabled" type="boolean" default="false">
4323 <desc>
4324 This setting determines whether VirtualBox allows guests to make use
4325 of the 3D graphics support available on the host. Currently limited
4326 to OpenGL only. </desc>
4327 </attribute>
4328
4329 <attribute name="monitorCount" type="unsigned long">
4330 <desc>
4331 Number of virtual monitors.
4332 <note>
4333 Only effective on Windows XP and later guests with
4334 Guest Additions installed.
4335 </note>
4336 </desc>
4337 </attribute>
4338
4339 <attribute name="BIOSSettings" type="IBIOSSettings" readonly="yes">
4340 <desc>Object containing all BIOS settings.</desc>
4341 </attribute>
4342
4343 <attribute name="HWVirtExEnabled" type="TSBool">
4344 <desc>
4345 This setting determines whether VirtualBox will try to make use of
4346 the host CPU's hardware virtualization extensions such as Intel VT-x
4347 and AMD-V. Note that in case such extensions are not available,
4348 they will not be used.
4349 </desc>
4350 </attribute>
4351
4352 <attribute name="HWVirtExNestedPagingEnabled" type="boolean" default="false">
4353 <desc>
4354 This setting determines whether VirtualBox will try to make use of
4355 the nested paging extension of Intel VT-x and AMD-V. Note that in case
4356 such extensions are not available, they will not be used.
4357 </desc>
4358 </attribute>
4359
4360 <attribute name="HWVirtExVPIDEnabled" type="boolean" default="false">
4361 <desc>
4362 This setting determines whether VirtualBox will try to make use of
4363 the VPID extension of Intel VT-x. Note that in case such extensions are
4364 not available, they will not be used.
4365 </desc>
4366 </attribute>
4367
4368 <attribute name="PAEEnabled" type="boolean" default="false">
4369 <desc>
4370 This setting determines whether VirtualBox will expose the Physical Address
4371 Extension (PAE) feature of the host CPU to the guest. Note that in case PAE
4372 is not available, it will not be reported.
4373 </desc>
4374 </attribute>
4375
4376 <attribute name="snapshotFolder" type="wstring">
4377 <desc>
4378 Full path to the directory used to store snapshot data
4379 (differencing hard disks and saved state files) of this machine.
4380
4381 The initial value of this property is
4382 <tt>&lt;</tt><link to="#settingsFilePath">
4383 path_to_settings_file</link><tt>&gt;/&lt;</tt>
4384 <link to="#id">machine_uuid</link>
4385 <tt>&gt;</tt>.
4386
4387 Currently, it is an error to try to change this property on
4388 a machine that has snapshots (because this would require to
4389 move possibly large files to a different location).
4390 A separate method will be available for this purpose later.
4391
4392 <note>
4393 Setting this property to <tt>null</tt> will restore the
4394 initial value.
4395 </note>
4396 <note>
4397 When setting this property, the specified path can be
4398 absolute (full path) or relative to the directory where the
4399 <link to="#settingsFilePath">machine settings file</link>
4400 is located. When reading this property, a full path is
4401 always returned.
4402 </note>
4403 <note>
4404 The specified path may not exist, it will be created
4405 when necessary.
4406 </note>
4407 </desc>
4408 </attribute>
4409
4410 <attribute name="VRDPServer" type="IVRDPServer" readonly="yes">
4411 <desc>VRDP server object.</desc>
4412 </attribute>
4413
4414 <attribute name="hardDiskAttachments" type="IHardDiskAttachment" readonly="yes" safearray="yes">
4415 <desc>Array of hard disks attached to this machine.</desc>
4416 </attribute>
4417
4418 <attribute name="DVDDrive" type="IDVDDrive" readonly="yes">
4419 <desc>Associated DVD drive object.</desc>
4420 </attribute>
4421
4422 <attribute name="floppyDrive" type="IFloppyDrive" readonly="yes">
4423 <desc>Associated floppy drive object.</desc>
4424 </attribute>
4425
4426 <attribute name="USBController" type="IUSBController" readonly="yes">
4427 <desc>
4428 Associated USB controller object.
4429
4430 <note>
4431 If USB functionality is not available in the given edition of
4432 VirtualBox, this method will set the result code to @c E_NOTIMPL.
4433 </note>
4434 </desc>
4435 </attribute>
4436
4437 <attribute name="audioAdapter" type="IAudioAdapter" readonly="yes">
4438 <desc>Associated audio adapter, always present.</desc>
4439 </attribute>
4440
4441 <attribute name="storageControllers" type="IStorageController" readonly="yes" safearray="yes">
4442 <desc>Array of storage controllers attached to this machine.</desc>
4443 </attribute>
4444
4445 <attribute name="settingsFilePath" type="wstring" readonly="yes">
4446 <desc>
4447 Full name of the file containing machine settings data.
4448 </desc>
4449 </attribute>
4450
4451 <attribute name="settingsFileVersion" type="wstring" readonly="yes">
4452 <desc>
4453 Current version of the format of the settings file of this machine
4454 (<link to="IMachine::settingsFilePath"/>).
4455
4456 The version string has the following format:
4457 <pre>
4458 x.y-platform
4459 </pre>
4460 where <tt>x</tt> and <tt>y</tt> are the major and the minor format
4461 versions, and <tt>platform</tt> is the platform identifier.
4462
4463 The current version usually matches the value of the
4464 <link to="IVirtualBox::settingsFormatVersion"/> attribute unless the
4465 settings file was created by an older version of VirtualBox and there
4466 was a change of the settings file format since then.
4467
4468 Note that VirtualBox automatically converts settings files from older
4469 versions to the most recent version when reading them (usually at
4470 VirtualBox startup) but it doesn't save the changes back until
4471 you call a method that implicitly saves settings (such as
4472 <link to="#setExtraData"/>) or call <link to="#saveSettings"/>
4473 explicitly. Therefore, if the value of this attribute differs from the
4474 value of <link to="IVirtualBox::settingsFormatVersion"/>, then it
4475 means that the settings file was converted but the result of the
4476 conversion is not yet saved to disk.
4477
4478 The above feature may be used by interactive front-ends to inform users
4479 about the settings file format change and offer them to explicitly save
4480 all converted settings files (the global and VM-specific ones),
4481 optionally create backup copies of the old settings files before saving,
4482 etc.
4483
4484 <see>IVirtualBox::settingsFormatVersion, saveSettingsWithBackup()</see>
4485 </desc>
4486 </attribute>
4487
4488 <attribute name="settingsModified" type="boolean" readonly="yes">
4489 <desc>
4490 Whether the settings of this machine have been modified
4491 (but neither yet saved nor discarded).
4492 <note>
4493 Reading this property is only valid on instances returned
4494 by <link to="ISession::machine"/> and on new machines
4495 created by <link to="IVirtualBox::createMachine"/> or opened
4496 by <link to="IVirtualBox::openMachine"/> but not
4497 yet registered, or on unregistered machines after calling
4498 <link to="IVirtualBox::unregisterMachine"/>. For all other
4499 cases, the settings can never be modified.
4500 </note>
4501 <note>
4502 For newly created unregistered machines, the value of this
4503 property is always TRUE until <link to="#saveSettings"/>
4504 is called (no matter if any machine settings have been
4505 changed after the creation or not). For opened machines
4506 the value is set to FALSE (and then follows to normal rules).
4507 </note>
4508 </desc>
4509 </attribute>
4510
4511 <attribute name="sessionState" type="SessionState" readonly="yes">
4512 <desc>Current session state for this machine.</desc>
4513 </attribute>
4514
4515 <attribute name="sessionType" type="wstring" readonly="yes">
4516 <desc>
4517 Type of the session. If <link to="#sessionState"/> is
4518 SessionSpawning or SessionOpen, this attribute contains the
4519 same value as passed to the
4520 <link to="IVirtualBox::openRemoteSession"/> method in the
4521 @a type parameter. If the session was opened directly using
4522 <link to="IVirtualBox::openSession"/>, or if
4523 <link to="#sessionState"/> is SessionClosed, the value of this
4524 attribute is @c null.
4525 </desc>
4526 </attribute>
4527
4528 <attribute name="sessionPid" type="unsigned long" readonly="yes">
4529 <desc>
4530 Identifier of the session process. This attribute contains the
4531 platform-dependent identifier of the process that has opened a
4532 direct session for this machine using the
4533 <link to="IVirtualBox::openSession"/> call. The returned value
4534 is only valid if <link to="#sessionState"/> is SessionOpen or
4535 SessionClosing (i.e. a session is currently open or being
4536 closed) by the time this property is read.
4537 </desc>
4538 </attribute>
4539
4540 <attribute name="state" type="MachineState" readonly="yes">
4541 <desc>Current execution state of this machine.</desc>
4542 </attribute>
4543
4544 <attribute name="lastStateChange" type="long long" readonly="yes">
4545 <desc>
4546 Time stamp of the last execution state change,
4547 in milliseconds since 1970-01-01 UTC.
4548 </desc>
4549 </attribute>
4550
4551 <attribute name="stateFilePath" type="wstring" readonly="yes">
4552 <desc>
4553 Full path to the file that stores the execution state of
4554 the machine when it is in the <link to="MachineState_Saved"/> state.
4555 <note>
4556 When the machine is not in the Saved state, this attribute
4557 <tt>null</tt>.
4558 </note>
4559 </desc>
4560 </attribute>
4561
4562 <attribute name="logFolder" type="wstring" readonly="yes">
4563 <desc>
4564 Full path to the folder that stores a set of rotated log files
4565 recorded during machine execution. The most recent log file is
4566 named <tt>VBox.log</tt>, the previous log file is
4567 named <tt>VBox.log.1</tt> and so on (up to <tt>VBox.log.3</tt>
4568 in the current version).
4569 </desc>
4570 </attribute>
4571
4572 <attribute name="currentSnapshot" type="ISnapshot" readonly="yes">
4573 <desc>
4574 Current snapshot of this machine.
4575 <note>
4576 A <tt>null</tt> object is returned if the machine doesn't
4577 have snapshots.
4578 </note>
4579 <see><link to="ISnapshot"/></see>
4580 </desc>
4581 </attribute>
4582
4583 <attribute name="snapshotCount" type="unsigned long" readonly="yes">
4584 <desc>
4585 Number of snapshots taken on this machine. Zero means the
4586 machine doesn't have any snapshots.
4587 </desc>
4588 </attribute>
4589
4590 <attribute name="currentStateModified" type="boolean" readonly="yes">
4591 <desc>
4592 Returns <tt>true</tt> if the current state of the machine is not
4593 identical to the state stored in the current snapshot.
4594
4595 The current state is identical to the current snapshot right
4596 after one of the following calls are made:
4597 <ul>
4598 <li><link to="IConsole::discardCurrentState"/> or
4599 <link to="IConsole::discardCurrentSnapshotAndState"/>
4600 </li>
4601 <li><link to="IConsole::takeSnapshot"/> (issued on a
4602 powered off or saved machine, for which
4603 <link to="#settingsModified"/> returns <tt>false</tt>)
4604 </li>
4605 <li><link to="IMachine::setCurrentSnapshot"/>
4606 </li>
4607 </ul>
4608
4609 The current state remains identical until one of the following
4610 happens:
4611 <ul>
4612 <li>settings of the machine are changed</li>
4613 <li>the saved state is discarded</li>
4614 <li>the current snapshot is discarded</li>
4615 <li>an attempt to execute the machine is made</li>
4616 </ul>
4617
4618 <note>
4619 For machines that don't have snapshots, this property is
4620 always <tt>false</tt>.
4621 </note>
4622 </desc>
4623 </attribute>
4624
4625 <attribute name="sharedFolders" type="ISharedFolder" readonly="yes" safearray="yes">
4626 <desc>
4627 Collection of shared folders for this machine (permanent shared
4628 folders). These folders are shared automatically at machine startup
4629 and available only to the guest OS installed within this machine.
4630
4631 New shared folders are added to the collection using
4632 <link to="#createSharedFolder"/>. Existing shared folders can be
4633 removed using <link to="#removeSharedFolder"/>.
4634 </desc>
4635 </attribute>
4636
4637 <attribute name="clipboardMode" type="ClipboardMode">
4638 <desc>
4639 Synchronization mode between the host OS clipboard
4640 and the guest OS clipboard.
4641 </desc>
4642 </attribute>
4643
4644 <attribute name="guestPropertyNotificationPatterns" type="wstring">
4645 <desc>
4646 A comma-separated list of simple glob patterns. Changes to guest
4647 properties whose name matches one of the patterns will generate an
4648 <link to="IVirtualBoxCallback::onGuestPropertyChange"/> signal.
4649 </desc>
4650 </attribute>
4651
4652 <method name="setBootOrder">
4653 <desc>
4654 Puts the given device to the specified position in
4655 the boot order.
4656
4657 To indicate that no device is associated with the given position,
4658 <link to="DeviceType_Null"/> should be used.
4659
4660 @todo setHardDiskBootOrder(), setNetworkBootOrder()
4661
4662 <result name="E_INVALIDARG">
4663 Boot @a position out of range.
4664 </result>
4665 <result name="E_NOTIMPL">
4666 Booting from USB @a device currently not supported.
4667 </result>
4668
4669 </desc>
4670 <param name="position" type="unsigned long" dir="in">
4671 <desc>
4672 Position in the boot order (<tt>1</tt> to the total number of
4673 devices the machine can boot from, as returned by
4674 <link to="ISystemProperties::maxBootPosition"/>).
4675 </desc>
4676 </param>
4677 <param name="device" type="DeviceType" dir="in">
4678 <desc>
4679 The type of the device used to boot at the given position.
4680 </desc>
4681 </param>
4682 </method>
4683
4684 <method name="getBootOrder" const="yes">
4685 <desc>
4686 Returns the device type that occupies the specified
4687 position in the boot order.
4688
4689 @todo [remove?]
4690 If the machine can have more than one device of the returned type
4691 (such as hard disks), then a separate method should be used to
4692 retrieve the individual device that occupies the given position.
4693
4694 If here are no devices at the given position, then
4695 <link to="DeviceType_Null"/> is returned.
4696
4697 @todo getHardDiskBootOrder(), getNetworkBootOrder()
4698
4699 <result name="E_INVALIDARG">
4700 Boot @a position out of range.
4701 </result>
4702
4703 </desc>
4704 <param name="position" type="unsigned long" dir="in">
4705 <desc>
4706 Position in the boot order (<tt>1</tt> to the total number of
4707 devices the machine can boot from, as returned by
4708 <link to="ISystemProperties::maxBootPosition"/>).
4709 </desc>
4710 </param>
4711 <param name="device" type="DeviceType" dir="return">
4712 <desc>
4713 Device at the given position.
4714 </desc>
4715 </param>
4716 </method>
4717
4718 <method name="attachHardDisk">
4719 <desc>
4720 Attaches a virtual hard disk (<link to="IHardDisk" />, identified
4721 by the given UUID @a id) to the given hard disk controller
4722 (<link to="IStorageController" />, identified by @a name),
4723 at the indicated port and device.
4724
4725 For the IDE bus, the @a controllerPort parameter can be either
4726 @c 0 or @c 1, to specify the primary or secondary IDE controller,
4727 respectively. For the primary controller of the IDE bus,
4728 @a device can be either @c 0 or @c 1, to specify the master or the
4729 slave device, respectively. For the secondary IDE controller, the
4730 device number must be @c 1 because VirtualBox reserves the
4731 secondary master for the CD-ROM drive.
4732
4733 For an SATA controller, @a controllerPort must be a number ranging
4734 from @c 0 to @c 29. For a SCSI controller, @a controllerPort must
4735 be a number ranging from @c 0 to @c 15.
4736
4737 For both SCSI and SATA, the @a device parameter is unused and must
4738 be @c 0.
4739
4740 The specified device slot must not have another disk attached to it, or
4741 this method will fail.
4742
4743 See <link to="IHardDisk"/> for more detailed information about
4744 attaching hard disks.
4745
4746 <note>
4747 You cannot attach a hard disk to a running machine. Also, you cannot
4748 attach a hard disk to a newly created machine until this machine's
4749 settings are saved to disk using <link to="#saveSettings"/>.
4750 </note>
4751 <note>
4752 If the hard disk is being attached indirectly, a new differencing hard
4753 disk will implicitly be created for it and attached instead. If the
4754 changes made to the machine settings (including this indirect
4755 attachment) are later cancelled using <link to="#discardSettings"/>,
4756 this implicitly created differencing hard disk will implicitly
4757 be deleted.
4758 </note>
4759
4760 <result name="E_INVALIDARG">
4761 SATA device, SATA port, IDE port or IDE slot out of range.
4762 </result>
4763 <result name="VBOX_E_INVALID_OBJECT_STATE">
4764 Attempt to attach hard disk to an unregistered virtual machine.
4765 </result>
4766 <result name="VBOX_E_INVALID_VM_STATE">
4767 Invalid machine state.
4768 </result>
4769 <result name="VBOX_E_OBJECT_IN_USE">
4770 Hard disk already attached to this or another virtual machine.
4771 </result>
4772
4773 </desc>
4774 <param name="id" type="wstring" dir="in">
4775 <desc>UUID of the hard disk to attach.</desc>
4776 </param>
4777 <param name="name" type="wstring" dir="in">
4778 <desc>Name of the storage controller to attach the hard disk to.</desc>
4779 </param>
4780 <param name="controllerPort" type="long" dir="in">
4781 <desc>Port to attach the hard disk to.</desc>
4782 </param>
4783 <param name="device" type="long" dir="in">
4784 <desc>
4785 Device slot in the given port to attach the hard disk to.
4786 </desc>
4787 </param>
4788 </method>
4789
4790 <method name="getHardDisk" const="yes">
4791 <desc>
4792 Returns the virtual hard disk attached to a device slot of the specified
4793 bus.
4794
4795 Note that if the hard disk was indirectly attached by
4796 <link to="#attachHardDisk"/> to the given device slot then this
4797 method will return not the same object as passed to the
4798 <link to="#attachHardDisk"/> call. See <link to="IHardDisk"/> for
4799 more detailed information about attaching hard disks.
4800
4801 <result name="VBOX_E_OBJECT_NOT_FOUND">
4802 No hard disk attached to given slot/bus.
4803 </result>
4804
4805 </desc>
4806 <param name="name" type="wstring" dir="in">
4807 <desc>Name of the storage controller the hard disk is attached to.</desc>
4808 </param>
4809 <param name="controllerPort" type="long" dir="in">
4810 <desc>Port to query.</desc>
4811 </param>
4812 <param name="device" type="long" dir="in">
4813 <desc>Device slot in the given port to query.</desc>
4814 </param>
4815 <param name="hardDisk" type="IHardDisk" dir="return">
4816 <desc>Attached hard disk object.</desc>
4817 </param>
4818 </method>
4819
4820 <method name="detachHardDisk">
4821 <desc>
4822 Detaches the virtual hard disk attached to a device slot of the
4823 specified bus.
4824
4825 Detaching the hard disk from the virtual machine is deferred. This means
4826 that the hard disk remains associated with the machine when this method
4827 returns and gets actually de-associated only after a successful
4828 <link to="#saveSettings"/> call. See <link to="IHardDisk"/>
4829 for more detailed information about attaching hard disks.
4830
4831 <note>
4832 You cannot detach the hard disk from a running machine.
4833 </note>
4834 <note>
4835 Detaching differencing hard disks implicitly created by <link
4836 to="#attachHardDisk"/> for the indirect attachment using this
4837 method will <b>not</b> implicitly delete them. The
4838 <link to="IHardDisk::deleteStorage"/> operation should be
4839 explicitly performed by the caller after the hard disk is successfully
4840 detached and the settings are saved with
4841 <link to="#saveSettings"/>, if it is the desired action.
4842 </note>
4843
4844 <result name="VBOX_E_INVALID_VM_STATE">
4845 Attempt to detach hard disk from a running virtual machine.
4846 </result>
4847 <result name="VBOX_E_OBJECT_NOT_FOUND">
4848 No hard disk attached to given slot/bus.
4849 </result>
4850 <result name="VBOX_E_NOT_SUPPORTED">
4851 Hard disk format does not support storage deletion.
4852 </result>
4853
4854 </desc>
4855 <param name="name" type="wstring" dir="in">
4856 <desc>name of the storage controller to detach the hard disk from.</desc>
4857 </param>
4858 <param name="controllerPort" type="long" dir="in">
4859 <desc>Port number to detach the hard disk from.</desc>
4860 </param>
4861 <param name="device" type="long" dir="in">
4862 <desc>Device slot number to detach the hard disk from.</desc>
4863 </param>
4864 </method>
4865
4866 <method name="getHardDiskAttachmentsOfController" const="yes">
4867 <desc>
4868 Returns an array of hard disk attachments which are attached to the
4869 the controller with the given name.
4870
4871 <result name="VBOX_E_OBJECT_NOT_FOUND">
4872 A storage controller with given name doesn't exist.
4873 </result>
4874 </desc>
4875 <param name="name" type="wstring" dir="in"/>
4876 <param name="hardDiskAttachments" type="IHardDiskAttachment" safearray="yes" dir="return"/>
4877 </method>
4878
4879 <method name="getNetworkAdapter" const="yes">
4880 <desc>
4881 Returns the network adapter associated with the given slot.
4882 Slots are numbered sequentially, starting with zero. The total
4883 number of adapters per machine is defined by the
4884 <link to="ISystemProperties::networkAdapterCount"/> property,
4885 so the maximum slot number is one less than that property's value.
4886
4887 <result name="E_INVALIDARG">
4888 Invalid @a slot number.
4889 </result>
4890
4891 </desc>
4892 <param name="slot" type="unsigned long" dir="in"/>
4893 <param name="adapter" type="INetworkAdapter" dir="return"/>
4894 </method>
4895
4896 <method name="addStorageController">
4897 <desc>
4898 Adds a new storage controller (SCSI or SATA controller) to the
4899 machine and returns it as an instance of
4900 <link to="IStorageController" />.
4901
4902 @a name identifies the controller for subsequent calls such as
4903 <link to="#getStorageControllerByName" /> or
4904 <link to="#removeStorageController" /> or
4905 <link to="#attachHardDisk" />.
4906
4907 After the controller has been added, you can set its exact
4908 type by setting the <link to="IStorageController::controllerType" />.
4909
4910 <result name="VBOX_E_OBJECT_IN_USE">
4911 A storage controller with given name exists already.
4912 </result>
4913 <result name="E_INVALIDARG">
4914 Invalid @a controllerType.
4915 </result>
4916 </desc>
4917 <param name="name" type="wstring" dir="in"/>
4918 <param name="connectionType" type="StorageBus" dir="in"/>
4919 <param name="controller" type="IStorageController" dir="return"/>
4920 </method>
4921
4922 <method name="getStorageControllerByName" const="yes">
4923 <desc>
4924 Returns a storage controller with the given name.
4925
4926 <result name="VBOX_E_OBJECT_NOT_FOUND">
4927 A storage controller with given name doesn't exist.
4928 </result>
4929 </desc>
4930 <param name="name" type="wstring" dir="in"/>
4931 <param name="storageController" type="IStorageController" dir="return"/>
4932 </method>
4933
4934 <method name="removeStorageController">
4935 <desc>
4936 Removes a storage controller from the machine.
4937
4938 <result name="VBOX_E_OBJECT_NOT_FOUND">
4939 A storage controller with given name doesn't exist.
4940 </result>
4941 </desc>
4942 <param name="name" type="wstring" dir="in"/>
4943 </method>
4944
4945 <method name="getSerialPort" const="yes">
4946 <desc>
4947 Returns the serial port associated with the given slot.
4948 Slots are numbered sequentially, starting with zero. The total
4949 number of serial ports per machine is defined by the
4950 <link to="ISystemProperties::serialPortCount"/> property,
4951 so the maximum slot number is one less than that property's value.
4952
4953 <result name="E_INVALIDARG">
4954 Invalid @a slot number.
4955 </result>
4956
4957 </desc>
4958 <param name="slot" type="unsigned long" dir="in"/>
4959 <param name="port" type="ISerialPort" dir="return"/>
4960 </method>
4961
4962 <method name="getParallelPort" const="yes">
4963 <desc>
4964 Returns the parallel port associated with the given slot.
4965 Slots are numbered sequentially, starting with zero. The total
4966 number of parallel ports per machine is defined by the
4967 <link to="ISystemProperties::parallelPortCount"/> property,
4968 so the maximum slot number is one less than that property's value.
4969
4970 <result name="E_INVALIDARG">
4971 Invalid @a slot number.
4972 </result>
4973
4974 </desc>
4975 <param name="slot" type="unsigned long" dir="in"/>
4976 <param name="port" type="IParallelPort" dir="return"/>
4977 </method>
4978
4979 <method name="getNextExtraDataKey">
4980 <desc>
4981 Returns the machine-specific extra data key name following the
4982 supplied key.
4983
4984 An error is returned if the supplied @a key does not exist. @c NULL is
4985 returned in @a nextKey if the supplied key is the last key. When
4986 supplying @c NULL for the @a key, the first key item is returned in
4987 @a nextKey (if there is any). @a nextValue is an optional parameter and
4988 if supplied, the next key's value is returned in it.
4989
4990 <result name="VBOX_E_OBJECT_NOT_FOUND">
4991 Extra data @a key not found.
4992 </result>
4993
4994 </desc>
4995 <param name="key" type="wstring" dir="in">
4996 <desc>Name of the data key to follow.</desc>
4997 </param>
4998 <param name="nextKey" type="wstring" dir="out">
4999 <desc>Name of the next data key.</desc>
5000 </param>
5001 <param name="nextValue" type="wstring" dir="out">
5002 <desc>Value of the next data key.</desc>
5003 </param>
5004 </method>
5005
5006 <method name="getExtraData">
5007 <desc>
5008 Returns associated machine-specific extra data.
5009
5010 If the requested data @a key does not exist, this function will
5011 succeed and return @c NULL in the @a value argument.
5012
5013 <result name="VBOX_E_FILE_ERROR">
5014 Settings file not accessible.
5015 </result>
5016 <result name="VBOX_E_XML_ERROR">
5017 Could not parse the settings file.
5018 </result>
5019
5020 </desc>
5021 <param name="key" type="wstring" dir="in">
5022 <desc>Name of the data key to get.</desc>
5023 </param>
5024 <param name="value" type="wstring" dir="return">
5025 <desc>Value of the requested data key.</desc>
5026 </param>
5027 </method>
5028
5029 <method name="setExtraData">
5030 <desc>
5031 Sets associated machine-specific extra data.
5032
5033 If you pass @c NULL as a key @a value, the given @a key will be
5034 deleted.
5035
5036 <note>
5037 Before performing the actual data change, this method will ask all
5038 registered callbacks using the
5039 <link to="IVirtualBoxCallback::onExtraDataCanChange"/>
5040 notification for a permission. If one of the callbacks refuses the
5041 new value, the change will not be performed.
5042 </note>
5043 <note>
5044 On success, the
5045 <link to="IVirtualBoxCallback::onExtraDataChange"/> notification
5046 is called to inform all registered callbacks about a successful data
5047 change.
5048 </note>
5049 <note>
5050 This method can be called outside the machine session and therefore
5051 it's a caller's responsibility to handle possible race conditions
5052 when several clients change the same key at the same time.
5053 </note>
5054
5055 <result name="VBOX_E_FILE_ERROR">
5056 Settings file not accessible.
5057 </result>
5058 <result name="VBOX_E_XML_ERROR">
5059 Could not parse the settings file.
5060 </result>
5061
5062 </desc>
5063 <param name="key" type="wstring" dir="in">
5064 <desc>Name of the data key to set.</desc>
5065 </param>
5066 <param name="value" type="wstring" dir="in">
5067 <desc>Value to assign to the key.</desc>
5068 </param>
5069 </method>
5070
5071 <method name="saveSettings">
5072 <desc>
5073 Saves any changes to machine settings made since the session
5074 has been opened or a new machine has been created, or since the
5075 last call to <link to="#saveSettings"/> or <link to="#discardSettings"/>.
5076 For registered machines, new settings become visible to all
5077 other VirtualBox clients after successful invocation of this
5078 method.
5079 <note>
5080 The method sends <link to="IVirtualBoxCallback::onMachineDataChange"/>
5081 notification event after the configuration has been successfully
5082 saved (only for registered machines).
5083 </note>
5084 <note>
5085 Calling this method is only valid on instances returned
5086 by <link to="ISession::machine"/> and on new machines
5087 created by <link to="IVirtualBox::createMachine"/> but not
5088 yet registered, or on unregistered machines after calling
5089 <link to="IVirtualBox::unregisterMachine"/>.
5090 </note>
5091
5092 <result name="VBOX_E_FILE_ERROR">
5093 Settings file not accessible.
5094 </result>
5095 <result name="VBOX_E_XML_ERROR">
5096 Could not parse the settings file.
5097 </result>
5098 <result name="E_ACCESSDENIED">
5099 Modification request refused.
5100 </result>
5101
5102 </desc>
5103 </method>
5104
5105 <method name="saveSettingsWithBackup">
5106 <desc>
5107 Creates a backup copy of the machine settings file (<link
5108 to="IMachine::settingsFilePath"/>) in case of auto-conversion, and then calls
5109 <link to="IMachine::saveSettings"/>.
5110
5111 Note that the backup copy is created <b>only</b> if the settings file
5112 auto-conversion took place (see <link to="#settingsFileVersion"/> for
5113 details). Otherwise, this call is fully equivalent to
5114 <link to="IMachine::saveSettings"/> and no backup copying is done.
5115
5116 The backup copy is created in the same directory where the original
5117 settings file is located. It is given the following file name:
5118 <pre>
5119 original.xml.x.y-platform.bak
5120 </pre>
5121 where <tt>original.xml</tt> is the original settings file name
5122 (excluding path), and <tt>x.y-platform</tt> is the version of the old
5123 format of the settings file (before auto-conversion).
5124
5125 If the given backup file already exists, this method will try to add the
5126 <tt>.N</tt> suffix to the backup file name (where <tt>N</tt> counts from
5127 0 to 9) and copy it again until it succeeds. If all suffixes are
5128 occupied, or if any other copy error occurs, this method will return a
5129 failure.
5130
5131 If the copy operation succeeds, the @a bakFileName return argument will
5132 receive a full path to the created backup file (for informational
5133 purposes). Note that this will happen even if the subsequent
5134 <link to="#saveSettings"/> call performed by this method after the
5135 copy operation, fails.
5136
5137 <note>
5138 The VirtualBox API never calls this method. It is intended purely for
5139 the purposes of creating backup copies of the settings files by
5140 front-ends before saving the results of the automatically performed
5141 settings conversion to disk.
5142 </note>
5143
5144 <see>settingsFileVersion</see>
5145
5146 <result name="VBOX_E_FILE_ERROR">
5147 Settings file not accessible.
5148 </result>
5149 <result name="VBOX_E_XML_ERROR">
5150 Could not parse the settings file.
5151 </result>
5152 <result name="VBOX_E_INVALID_VM_STATE">
5153 Virtual machine is not mutable.
5154 </result>
5155 <result name="E_ACCESSDENIED">
5156 Modification request refused.
5157 </result>
5158
5159 </desc>
5160 <param name="bakFileName" type="wstring" dir="return">
5161 <desc>Full path to the created backup copy.</desc>
5162 </param>
5163 </method>
5164
5165 <method name="discardSettings">
5166 <desc>
5167 Discards any changes to the machine settings made since the session
5168 has been opened or since the last call to <link to="#saveSettings"/>
5169 or <link to="#discardSettings"/>.
5170 <note>
5171 Calling this method is only valid on instances returned
5172 by <link to="ISession::machine"/> and on new machines
5173 created by <link to="IVirtualBox::createMachine"/> or
5174 opened by <link to="IVirtualBox::openMachine"/> but not
5175 yet registered, or on unregistered machines after calling
5176 <link to="IVirtualBox::unregisterMachine"/>.
5177 </note>
5178
5179 <result name="VBOX_E_INVALID_VM_STATE">
5180 Virtual machine is not mutable.
5181 </result>
5182
5183 </desc>
5184 </method>
5185
5186 <method name="deleteSettings">
5187 <desc>
5188 Deletes the settings file of this machine from disk.
5189 The machine must not be registered in order for this operation
5190 to succeed.
5191 <note>
5192 <link to="#settingsModified"/> will return TRUE after this
5193 method successfully returns.
5194 </note>
5195 <note>
5196 Calling this method is only valid on instances returned
5197 by <link to="ISession::machine"/> and on new machines
5198 created by <link to="IVirtualBox::createMachine"/> or
5199 opened by <link to="IVirtualBox::openMachine"/> but not
5200 yet registered, or on unregistered machines after calling
5201 <link to="IVirtualBox::unregisterMachine"/>.
5202 </note>
5203 <note>
5204 The deleted machine settings file can be restored (saved again)
5205 by calling <link to="#saveSettings"/>.
5206 </note>
5207
5208 <result name="VBOX_E_INVALID_VM_STATE">
5209 Cannot delete settings of a registered machine or
5210 machine not mutable.
5211 </result>
5212 <result name="VBOX_E_IPRT_ERROR">
5213 Could not delete the settings file.
5214 </result>
5215
5216 </desc>
5217 </method>
5218
5219 <method name="export">
5220 <desc>Exports the machine to an OVF appliance. See <link to="IAppliance" /> for the
5221 steps required to export VirtualBox machines to OVF.
5222 </desc>
5223
5224 <param name="aAppliance" type="IAppliance" dir="in">
5225 <desc>Appliance to export this machine to.</desc>
5226 </param>
5227 <param name="aDescription" type="IVirtualSystemDescription" dir="return">
5228 <desc>VirtualSystemDescription object which is created for this machine.</desc>
5229 </param>
5230 </method >
5231
5232 <method name="getSnapshot">
5233 <desc>
5234 Returns a snapshot of this machine with the given UUID.
5235 A <tt>null</tt> UUID can be used to obtain the first snapshot
5236 taken on this machine. This is useful if you want to traverse
5237 the whole tree of snapshots starting from the root.
5238
5239 <result name="VBOX_E_OBJECT_NOT_FOUND">
5240 Virtual machine has no snapshots or snapshot not found.
5241 </result>
5242
5243 </desc>
5244 <param name="id" type="wstring" dir="in">
5245 <desc>UUID of the snapshot to get</desc>
5246 </param>
5247 <param name="snapshot" type="ISnapshot" dir="return">
5248 <desc>Snapshot object with the given UUID.</desc>
5249 </param>
5250 </method>
5251
5252 <method name="findSnapshot">
5253 <desc>
5254 Returns a snapshot of this machine with the given name.
5255
5256 <result name="VBOX_E_OBJECT_NOT_FOUND">
5257 Virtual machine has no snapshots or snapshot not found.
5258 </result>
5259
5260 </desc>
5261 <param name="name" type="wstring" dir="in">
5262 <desc>Name of the snapshot to find</desc>
5263 </param>
5264 <param name="snapshot" type="ISnapshot" dir="return">
5265 <desc>Snapshot object with the given name.</desc>
5266 </param>
5267 </method>
5268
5269 <method name="setCurrentSnapshot">
5270 <desc>
5271 Sets the current snapshot of this machine.
5272 <note>
5273 In the current implementation, this operation is not
5274 implemented.
5275 </note>
5276 </desc>
5277 <param name="id" type="wstring" dir="in">
5278 <desc>UUID of the snapshot to set as the current snapshot.</desc>
5279 </param>
5280 </method>
5281
5282 <method name="createSharedFolder">
5283 <desc>
5284 Creates a new permanent shared folder by associating the given logical
5285 name with the given host path, adds it to the collection of shared
5286 folders and starts sharing it. Refer to the description of
5287 <link to="ISharedFolder"/> to read more about logical names.
5288
5289 <result name="VBOX_E_OBJECT_IN_USE">
5290 Shared folder already exists.
5291 </result>
5292 <result name="VBOX_E_FILE_ERROR">
5293 Shared folder @a hostPath not accessible.
5294 </result>
5295
5296 </desc>
5297 <param name="name" type="wstring" dir="in">
5298 <desc>Unique logical name of the shared folder.</desc>
5299 </param>
5300 <param name="hostPath" type="wstring" dir="in">
5301 <desc>Full path to the shared folder in the host file system.</desc>
5302 </param>
5303 <param name="writable" type="boolean" dir="in">
5304 <desc>Whether the share is writable or readonly</desc>
5305 </param>
5306 </method>
5307
5308 <method name="removeSharedFolder">
5309 <desc>
5310 Removes the permanent shared folder with the given name previously
5311 created by <link to="#createSharedFolder"/> from the collection of
5312 shared folders and stops sharing it.
5313
5314 <result name="VBOX_E_INVALID_VM_STATE">
5315 Virtual machine is not mutable.
5316 </result>
5317 <result name="VBOX_E_OBJECT_NOT_FOUND">
5318 Shared folder @a name does not exist.
5319 </result>
5320
5321 </desc>
5322 <param name="name" type="wstring" dir="in">
5323 <desc>Logical name of the shared folder to remove.</desc>
5324 </param>
5325 </method>
5326
5327 <method name="canShowConsoleWindow">
5328 <desc>
5329 Returns @c true if the VM console process can activate the
5330 console window and bring it to foreground on the desktop of
5331 the host PC.
5332 <note>
5333 This method will fail if a session for this machine is not
5334 currently open.
5335 </note>
5336
5337 <result name="VBOX_E_INVALID_VM_STATE">
5338 Machine session is not open.
5339 </result>
5340
5341 </desc>
5342 <param name="canShow" type="boolean" dir="return">
5343 <desc>
5344 @c true if the console window can be shown and @c
5345 false otherwise.
5346 </desc>
5347 </param>
5348 </method>
5349
5350 <method name="showConsoleWindow">
5351 <desc>
5352 Activates the console window and brings it to foreground on
5353 the desktop of the host PC. Many modern window managers on
5354 many platforms implement some sort of focus stealing
5355 prevention logic, so that it may be impossible to activate
5356 a window without the help of the currently active
5357 application. In this case, this method will return a non-zero
5358 identifier that represents the top-level window of the VM
5359 console process. The caller, if it represents a currently
5360 active process, is responsible to use this identifier (in a
5361 platform-dependent manner) to perform actual window
5362 activation.
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="winId" type="unsigned long long" dir="return">
5374 <desc>
5375 Platform-dependent identifier of the top-level VM console
5376 window, or zero if this method has performed all actions
5377 necessary to implement the <i>show window</i> semantics for
5378 the given platform and/or VirtualBox front-end.
5379 </desc>
5380 </param>
5381 </method>
5382
5383 <method name="getGuestProperty">
5384 <desc>
5385 Reads an entry from the machine's guest property store.
5386
5387 <result name="VBOX_E_INVALID_VM_STATE">
5388 Machine session is not open.
5389 </result>
5390
5391 </desc>
5392 <param name="name" type="wstring" dir="in">
5393 <desc>
5394 The name of the property to read.
5395 </desc>
5396 </param>
5397 <param name="value" type="wstring" dir="out">
5398 <desc>
5399 The value of the property. If the property does not exist then this
5400 will be empty.
5401 </desc>
5402 </param>
5403 <param name="timestamp" type="unsigned long long" dir="out">
5404 <desc>
5405 The time at which the property was last modified, as seen by the
5406 server process.
5407 </desc>
5408 </param>
5409 <param name="flags" type="wstring" dir="out">
5410 <desc>
5411 Additional property parameters, passed as a comma-separated list of
5412 "name=value" type entries.
5413 </desc>
5414 </param>
5415 </method>
5416
5417 <method name="getGuestPropertyValue">
5418 <desc>
5419 Reads a value from the machine's guest property store.
5420
5421 <result name="VBOX_E_INVALID_VM_STATE">
5422 Machine session is not open.
5423 </result>
5424
5425 </desc>
5426 <param name="property" type="wstring" dir="in">
5427 <desc>
5428 The name of the property to read.
5429 </desc>
5430 </param>
5431 <param name="value" type="wstring" dir="return">
5432 <desc>
5433 The value of the property. If the property does not exist then this
5434 will be empty.
5435 </desc>
5436 </param>
5437 </method>
5438
5439 <method name="getGuestPropertyTimestamp">
5440 <desc>
5441 Reads a property timestamp from the machine's guest property store.
5442
5443 <result name="VBOX_E_INVALID_VM_STATE">
5444 Machine session is not open.
5445 </result>
5446
5447 </desc>
5448 <param name="property" type="wstring" dir="in">
5449 <desc>
5450 The name of the property to read.
5451 </desc>
5452 </param>
5453 <param name="value" type="unsigned long long" dir="return">
5454 <desc>
5455 The timestamp. If the property does not exist then this will be
5456 empty.
5457 </desc>
5458 </param>
5459 </method>
5460
5461 <method name="setGuestProperty">
5462 <desc>
5463 Sets, changes or deletes an entry in the machine's guest property
5464 store.
5465
5466 <result name="E_ACCESSDENIED">
5467 Property cannot be changed.
5468 </result>
5469 <result name="E_INVALIDARG">
5470 Invalid @a flags.
5471 </result>
5472 <result name="VBOX_E_INVALID_VM_STATE">
5473 Virtual machine is not mutable or session not open.
5474 </result>
5475 <result name="VBOX_E_INVALID_OBJECT_STATE">
5476 Cannot set transient property when machine not running.
5477 </result>
5478
5479 </desc>
5480 <param name="property" type="wstring" dir="in">
5481 <desc>
5482 The name of the property to set, change or delete.
5483 </desc>
5484 </param>
5485 <param name="value" type="wstring" dir="in">
5486 <desc>
5487 The new value of the property to set, change or delete. If the
5488 property does not yet exist and value is non-empty, it will be
5489 created. If the value is empty, the key will be deleted if it
5490 exists.
5491 </desc>
5492 </param>
5493 <param name="flags" type="wstring" dir="in">
5494 <desc>
5495 Additional property parameters, passed as a comma-separated list of
5496 "name=value" type entries.
5497 </desc>
5498 </param>
5499 </method>
5500
5501 <method name="setGuestPropertyValue">
5502 <desc>
5503 Sets, changes or deletes a value in the machine's guest property
5504 store. The flags field will be left unchanged or created empty for a
5505 new property.
5506
5507 <result name="E_ACCESSDENIED">
5508 Property cannot be changed.
5509 </result>
5510 <result name="VBOX_E_INVALID_VM_STATE">
5511 Virtual machine is not mutable or session not open.
5512 </result>
5513 <result name="VBOX_E_INVALID_OBJECT_STATE">
5514 Cannot set transient property when machine not running.
5515 </result>
5516 </desc>
5517
5518 <param name="property" type="wstring" dir="in">
5519 <desc>
5520 The name of the property to set, change or delete.
5521 </desc>
5522 </param>
5523 <param name="value" type="wstring" dir="in">
5524 <desc>
5525 The new value of the property to set, change or delete. If the
5526 property does not yet exist and value is non-empty, it will be
5527 created. If value is empty, the property will be deleted if it
5528 exists.
5529 </desc>
5530 </param>
5531 </method>
5532
5533 <method name="enumerateGuestProperties">
5534 <desc>
5535 Return a list of the guest properties matching a set of patterns along
5536 with their values, time stamps and flags.
5537 </desc>
5538 <param name="patterns" type="wstring" dir="in">
5539 <desc>
5540 The patterns to match the properties against, separated by '|'
5541 characters. If this is empty or NULL, all properties will match.
5542 </desc>
5543 </param>
5544 <param name="name" type="wstring" dir="out" safearray="yes">
5545 <desc>
5546 The names of the properties returned.
5547 </desc>
5548 </param>
5549 <param name="value" type="wstring" dir="out" safearray="yes">
5550 <desc>
5551 The values of the properties returned. The array entries match the
5552 corresponding entries in the @a name array.
5553 </desc>
5554 </param>
5555 <param name="timestamp" type="unsigned long long" dir="out" safearray="yes">
5556 <desc>
5557 The time stamps of the properties returned. The array entries match
5558 the corresponding entries in the @a name array.
5559 </desc>
5560 </param>
5561 <param name="flags" type="wstring" dir="out" safearray="yes">
5562 <desc>
5563 The flags of the properties returned. The array entries match the
5564 corresponding entries in the @a name array.
5565 </desc>
5566 </param>
5567 </method>
5568</interface>
5569
5570 <!--
5571 // IConsole
5572 /////////////////////////////////////////////////////////////////////////
5573 -->
5574
5575 <interface
5576 name="IConsoleCallback" extends="$unknown"
5577 uuid="13dfbef3-b74d-487d-bada-2304529aefa6"
5578 wsmap="suppress"
5579 >
5580
5581 <desc>
5582 This interface is used by a client of the Main API that need to
5583 be notified of events. For example, a graphical user interface
5584 can use this to learn about machine state changes so they can
5585 update the list of virtual machines without having to rely
5586 on polling.
5587
5588 Whenever relevant events occur in VirtualBox, the callbacks in
5589 objects of this interface are called. In order for this to be
5590 useful, a client needs to create its own subclass that implements
5591 this interface in which the methods for the relevant callbacks
5592 are overridden. An instance of this subclass interface can then
5593 be passed to <link to="IConsole::registerCallback" />.
5594 </desc>
5595
5596 <method name="onMousePointerShapeChange">
5597 <desc>
5598 Notification when the guest mouse pointer shape has
5599 changed. The new shape data is given.
5600 </desc>
5601 <param name="visible" type="boolean" dir="in">
5602 <desc>
5603 Flag whether the pointer is visible.
5604 </desc>
5605 </param>
5606 <param name="alpha" type="boolean" dir="in">
5607 <desc>
5608 Flag whether the pointer has an alpha channel.
5609 </desc>
5610 </param>
5611 <param name="xHot" type="unsigned long" dir="in">
5612 <desc>
5613 The pointer hot spot x coordinate.
5614 </desc>
5615 </param>
5616 <param name="yHot" type="unsigned long" dir="in">
5617 <desc>
5618 The pointer hot spot y coordinate.
5619 </desc>
5620 </param>
5621 <param name="width" type="unsigned long" dir="in">
5622 <desc>
5623 Width of the pointer shape in pixels.
5624 </desc>
5625 </param>
5626 <param name="height" type="unsigned long" dir="in">
5627 <desc>
5628 Height of the pointer shape in pixels.
5629 </desc>
5630 </param>
5631 <param name="shape" type="octet" mod="ptr" dir="in">
5632 <desc>
5633 Address of the shape buffer.
5634
5635 The @a shape buffer contains a 1-bpp (bits per pixel) AND mask
5636 followed by a 32-bpp XOR (color) mask.
5637
5638 For pointers without alpha channel the XOR mask pixels are 32
5639 bit values: (lsb)BGR0(msb). For pointers with alpha channel
5640 the XOR mask consists of (lsb)BGRA(msb) 32 bit values.
5641
5642 An AND mask is used for pointers with alpha channel, so if the
5643 callback does not support alpha, the pointer could be
5644 displayed as a normal color pointer.
5645
5646 The AND mask is a 1-bpp bitmap with byte aligned scanlines. The
5647 size of the AND mask therefore is <tt>cbAnd = (width + 7) / 8 *
5648 height</tt>. The padding bits at the end of each scanline are
5649 undefined.
5650
5651 The XOR mask follows the AND mask on the next 4-byte aligned
5652 offset: <tt>uint8_t *pXor = pAnd + (cbAnd + 3) &amp; ~3</tt>.
5653 Bytes in the gap between the AND and the XOR mask are undefined.
5654 The XOR mask scanlines have no gap between them and the size of
5655 the XOR mask is: <tt>cXor = width * 4 * height</tt>.
5656
5657 <note>
5658 If @a shape is 0, only the pointer visibility is changed.
5659 </note>
5660 </desc>
5661 </param>
5662 </method>
5663
5664 <method name="onMouseCapabilityChange">
5665 <desc>
5666 Notification when the mouse capabilities reported by the
5667 guest have changed. The new capabilities are passed.
5668 </desc>
5669 <param name="supportsAbsolute" type="boolean" dir="in"/>
5670 <param name="needsHostCursor" type="boolean" dir="in"/>
5671 </method>
5672
5673 <method name="onKeyboardLedsChange">
5674 <desc>
5675 Notification when the guest OS executes the KBD_CMD_SET_LEDS command
5676 to alter the state of the keyboard LEDs.
5677 </desc>
5678 <param name="numLock" type="boolean" dir="in"/>
5679 <param name="capsLock" type="boolean" dir="in"/>
5680 <param name="scrollLock" type="boolean" dir="in"/>
5681 </method>
5682
5683 <method name="onStateChange">
5684 <desc>
5685 Notification when the execution state of the machine has changed.
5686 The new state will be given.
5687 </desc>
5688 <param name="state" type="MachineState" dir="in"/>
5689 </method>
5690
5691 <method name="onAdditionsStateChange">
5692 <desc>
5693 Notification when a Guest Additions property changes.
5694 Interested callees should query IGuest attributes to
5695 find out what has changed.
5696 </desc>
5697 </method>
5698
5699 <method name="onDVDDriveChange">
5700 <desc>
5701 Notification when a property of the
5702 virtual <link to="IMachine::DVDDrive">DVD drive</link> changes.
5703 Interested callees should use IDVDDrive methods to find out what has
5704 changed.
5705 </desc>
5706 </method>
5707
5708 <method name="onFloppyDriveChange">
5709 <desc>
5710 Notification when a property of the
5711 virtual <link to="IMachine::floppyDrive">floppy drive</link> changes.
5712 Interested callees should use IFloppyDrive methods to find out what
5713 has changed.
5714 </desc>
5715 </method>
5716
5717 <method name="onNetworkAdapterChange">
5718 <desc>
5719 Notification when a property of one of the
5720 virtual <link to="IMachine::getNetworkAdapter">network adapters</link>
5721 changes. Interested callees should use INetworkAdapter methods and
5722 attributes to find out what has changed.
5723 </desc>
5724 <param name="networkAdapter" type="INetworkAdapter" dir="in">
5725 <desc>Network adapter that is subject to change.</desc>
5726 </param>
5727 </method>
5728
5729 <method name="onSerialPortChange">
5730 <desc>
5731 Notification when a property of one of the
5732 virtual <link to="IMachine::getSerialPort">serial ports</link> changes.
5733 Interested callees should use ISerialPort methods and attributes
5734 to find out what has changed.
5735 </desc>
5736 <param name="serialPort" type="ISerialPort" dir="in">
5737 <desc>Serial port that is subject to change.</desc>
5738 </param>
5739 </method>
5740
5741 <method name="onParallelPortChange">
5742 <desc>
5743 Notification when a property of one of the
5744 virtual <link to="IMachine::getParallelPort">parallel ports</link>
5745 changes. Interested callees should use ISerialPort methods and
5746 attributes to find out what has changed.
5747 </desc>
5748 <param name="parallelPort" type="IParallelPort" dir="in">
5749 <desc>Parallel port that is subject to change.</desc>
5750 </param>
5751 </method>
5752
5753 <method name="onStorageControllerChange">
5754 <desc>
5755 Notification when a property of one of the
5756 virtual <link to="IMachine::storageControllers">storage controllers</link>
5757 changes. Interested callees should query the corresponding collections
5758 to find out what has changed.
5759 </desc>
5760 </method>
5761
5762 <method name="onVRDPServerChange">
5763 <desc>
5764 Notification when a property of the
5765 <link to="IMachine::VRDPServer">VRDP server</link> changes.
5766 Interested callees should use IVRDPServer methods and attributes to
5767 find out what has changed.
5768 </desc>
5769 </method>
5770
5771 <method name="onUSBControllerChange">
5772 <desc>
5773 Notification when a property of the virtual
5774 <link to="IMachine::USBController">USB controller</link> changes.
5775 Interested callees should use IUSBController methods and attributes to
5776 find out what has changed.
5777 </desc>
5778 </method>
5779
5780 <method name="onUSBDeviceStateChange">
5781 <desc>
5782 Notification when a USB device is attached to or detached from
5783 the virtual USB controller.
5784
5785 This notification is sent as a result of the indirect
5786 request to attach the device because it matches one of the
5787 machine USB filters, or as a result of the direct request
5788 issued by <link to="IConsole::attachUSBDevice"/> or
5789 <link to="IConsole::detachUSBDevice"/>.
5790
5791 This notification is sent in case of both a succeeded and a
5792 failed request completion. When the request succeeds, the
5793 @a error parameter is @c null, and the given device has been
5794 already added to (when @a attached is @c true) or removed from
5795 (when @a attached is @c false) the collection represented by
5796 <link to="IConsole::USBDevices"/>. On failure, the collection
5797 doesn't change and the @a error parameter represents the error
5798 message describing the failure.
5799
5800 </desc>
5801 <param name="device" type="IUSBDevice" dir="in">
5802 <desc>Device that is subject to state change.</desc>
5803 </param>
5804 <param name="attached" type="boolean" dir="in">
5805 <desc>
5806 <tt>true</tt> if the device was attached
5807 and <tt>false</tt> otherwise.
5808 </desc>
5809 </param>
5810 <param name="error" type="IVirtualBoxErrorInfo" dir="in">
5811 <desc>
5812 <tt>null</tt> on success or an error message object on
5813 failure.
5814 </desc>
5815 </param>
5816 </method>
5817
5818 <method name="onSharedFolderChange">
5819 <desc>
5820 Notification when a shared folder is added or removed.
5821 The @a scope argument defines one of three scopes:
5822 <link to="IVirtualBox::sharedFolders">global shared folders</link>
5823 (<link to="Scope_Global">Global</link>),
5824 <link to="IMachine::sharedFolders">permanent shared folders</link> of
5825 the machine (<link to="Scope_Machine">Machine</link>) or <link
5826 to="IConsole::sharedFolders">transient shared folders</link> of the
5827 machine (<link to="Scope_Session">Session</link>). Interested callees
5828 should use query the corresponding collections to find out what has
5829 changed.
5830 </desc>
5831 <param name="scope" type="Scope" dir="in">
5832 <desc>Scope of the notification.</desc>
5833 </param>
5834 </method>
5835
5836 <method name="onRuntimeError">
5837 <desc>
5838 Notification when an error happens during the virtual
5839 machine execution.
5840
5841 There are three kinds of runtime errors:
5842 <ul>
5843 <li><i>fatal</i></li>
5844 <li><i>non-fatal with retry</i></li>
5845 <li><i>non-fatal warnings</i></li>
5846 </ul>
5847
5848 <b>Fatal</b> errors are indicated by the @a fatal parameter set
5849 to <tt>true</tt>. In case of fatal errors, the virtual machine
5850 execution is always paused before calling this notification, and
5851 the notification handler is supposed either to immediately save
5852 the virtual machine state using <link to="IConsole::saveState"/>
5853 or power it off using <link to="IConsole::powerDown"/>.
5854 Resuming the execution can lead to unpredictable results.
5855
5856 <b>Non-fatal</b> errors and warnings are indicated by the
5857 @a fatal parameter set to <tt>false</tt>. If the virtual machine
5858 is in the Paused state by the time the error notification is
5859 received, it means that the user can <i>try to resume</i> the machine
5860 execution after attempting to solve the problem that caused the
5861 error. In this case, the notification handler is supposed
5862 to show an appropriate message to the user (depending on the
5863 value of the @a id parameter) that offers several actions such
5864 as <i>Retry</i>, <i>Save</i> or <i>Power Off</i>. If the user
5865 wants to retry, the notification handler should continue
5866 the machine execution using the <link to="IConsole::resume"/>
5867 call. If the machine execution is not Paused during this
5868 notification, then it means this notification is a <i>warning</i>
5869 (for example, about a fatal condition that can happen very soon);
5870 no immediate action is required from the user, the machine
5871 continues its normal execution.
5872
5873 Note that in either case the notification handler
5874 <b>must not</b> perform any action directly on a thread
5875 where this notification is called. Everything it is allowed to
5876 do is to post a message to another thread that will then talk
5877 to the user and take the corresponding action.
5878
5879 Currently, the following error identifiers are known:
5880 <ul>
5881 <li><tt>"HostMemoryLow"</tt></li>
5882 <li><tt>"HostAudioNotResponding"</tt></li>
5883 <li><tt>"VDIStorageFull"</tt></li>
5884 </ul>
5885
5886 <note>
5887 This notification is not designed to be implemented by
5888 more than one callback at a time. If you have multiple
5889 IConsoleCallback instances registered on the given
5890 IConsole object, make sure you simply do nothing but
5891 return @c S_OK from all but one of them that does actual
5892 user notification and performs necessary actions.
5893 </note>
5894
5895 </desc>
5896 <param name="fatal" type="boolean" dir="in">
5897 <desc>Whether the error is fatal or not</desc>
5898 </param>
5899 <param name="id" type="wstring" dir="in">
5900 <desc>Error identifier</desc>
5901 </param>
5902 <param name="message" type="wstring" dir="in">
5903 <desc>Optional error message</desc>
5904 </param>
5905 </method>
5906
5907 <method name="onCanShowWindow">
5908 <desc>
5909 Notification when a call to
5910 <link to="IMachine::canShowConsoleWindow"/> is made by a
5911 front-end to check if a subsequent call to
5912 <link to="IMachine::showConsoleWindow"/> can succeed.
5913
5914 The callee should give an answer appropriate to the current
5915 machine state in the @a canShow argument. This answer must
5916 remain valid at least until the next
5917 <link to="IConsole::state">machine state</link> change.
5918
5919 <note>
5920 This notification is not designed to be implemented by
5921 more than one callback at a time. If you have multiple
5922 IConsoleCallback instances registered on the given
5923 IConsole object, make sure you simply do nothing but
5924 return @c true and @c S_OK from all but one of them that
5925 actually manages console window activation.
5926 </note>
5927 </desc>
5928 <param name="canShow" type="boolean" dir="return">
5929 <desc>
5930 @c true if the console window can be shown and @c
5931 false otherwise.
5932 </desc>
5933 </param>
5934 </method>
5935
5936 <method name="onShowWindow">
5937 <desc>
5938 Notification when a call to
5939 <link to="IMachine::showConsoleWindow"/>
5940 requests the console window to be activated and brought to
5941 foreground on the desktop of the host PC.
5942
5943 This notification should cause the VM console process to
5944 perform the requested action as described above. If it is
5945 impossible to do it at a time of this notification, this
5946 method should return a failure.
5947
5948 Note that many modern window managers on many platforms
5949 implement some sort of focus stealing prevention logic, so
5950 that it may be impossible to activate a window without the
5951 help of the currently active application (which is supposedly
5952 an initiator of this notification). In this case, this method
5953 must return a non-zero identifier that represents the
5954 top-level window of the VM console process. The caller, if it
5955 represents a currently active process, is responsible to use
5956 this identifier (in a platform-dependent manner) to perform
5957 actual window activation.
5958
5959 This method must set @a winId to zero if it has performed all
5960 actions necessary to complete the request and the console
5961 window is now active and in foreground, to indicate that no
5962 further action is required on the caller's side.
5963
5964 <note>
5965 This notification is not designed to be implemented by
5966 more than one callback at a time. If you have multiple
5967 IConsoleCallback instances registered on the given
5968 IConsole object, make sure you simply do nothing but
5969 return @c S_OK from all but one of them that actually
5970 manages console window activation.
5971 </note>
5972 </desc>
5973 <param name="winId" type="unsigned long long" dir="return">
5974 <desc>
5975 Platform-dependent identifier of the top-level VM console
5976 window, or zero if this method has performed all actions
5977 necessary to implement the <i>show window</i> semantics for
5978 the given platform and/or this VirtualBox front-end.
5979 </desc>
5980 </param>
5981 </method>
5982
5983 </interface>
5984
5985 <interface
5986 name="IRemoteDisplayInfo" extends="$unknown"
5987 uuid="550104cd-2dfd-4a6c-857d-f6f8e088e62c"
5988 wsmap="struct"
5989 >
5990 <desc>
5991 Contains information about the remote display (VRDP) capabilities and status.
5992 This is used in the <link to="IConsole::remoteDisplayInfo" /> attribute.
5993 </desc>
5994
5995 <attribute name="active" type="boolean" readonly="yes">
5996 <desc>
5997 Whether the remote display connection is active.
5998 </desc>
5999 </attribute>
6000
6001 <attribute name="numberOfClients" type="unsigned long" readonly="yes">
6002 <desc>
6003 How many times a client connected.
6004 </desc>
6005 </attribute>
6006
6007 <attribute name="beginTime" type="long long" readonly="yes">
6008 <desc>
6009 When the last connection was established, in milliseconds since 1970-01-01 UTC.
6010 </desc>
6011 </attribute>
6012
6013 <attribute name="endTime" type="long long" readonly="yes">
6014 <desc>
6015 When the last connection was terminated or the current time, if
6016 connection is still active, in milliseconds since 1970-01-01 UTC.
6017 </desc>
6018 </attribute>
6019
6020 <attribute name="bytesSent" type="unsigned long long" readonly="yes">
6021 <desc>
6022 How many bytes were sent in last or current, if still active, connection.
6023 </desc>
6024 </attribute>
6025
6026 <attribute name="bytesSentTotal" type="unsigned long long" readonly="yes">
6027 <desc>
6028 How many bytes were sent in all connections.
6029 </desc>
6030 </attribute>
6031
6032 <attribute name="bytesReceived" type="unsigned long long" readonly="yes">
6033 <desc>
6034 How many bytes were received in last or current, if still active, connection.
6035 </desc>
6036 </attribute>
6037
6038 <attribute name="bytesReceivedTotal" type="unsigned long long" readonly="yes">
6039 <desc>
6040 How many bytes were received in all connections.
6041 </desc>
6042 </attribute>
6043
6044 <attribute name="user" type="wstring" readonly="yes">
6045 <desc>
6046 Login user name supplied by the client.
6047 </desc>
6048 </attribute>
6049
6050 <attribute name="domain" type="wstring" readonly="yes">
6051 <desc>
6052 Login domain name supplied by the client.
6053 </desc>
6054 </attribute>
6055
6056 <attribute name="clientName" type="wstring" readonly="yes">
6057 <desc>
6058 The client name supplied by the client.
6059 </desc>
6060 </attribute>
6061
6062 <attribute name="clientIP" type="wstring" readonly="yes">
6063 <desc>
6064 The IP address of the client.
6065 </desc>
6066 </attribute>
6067
6068 <attribute name="clientVersion" type="unsigned long" readonly="yes">
6069 <desc>
6070 The client software version number.
6071 </desc>
6072 </attribute>
6073
6074 <attribute name="encryptionStyle" type="unsigned long" readonly="yes">
6075 <desc>
6076 Public key exchange method used when connection was established.
6077 Values: 0 - RDP4 public key exchange scheme.
6078 1 - X509 certificates were sent to client.
6079 </desc>
6080 </attribute>
6081
6082 </interface>
6083
6084 <interface
6085 name="IConsole" extends="$unknown"
6086 uuid="a7f17a42-5b64-488d-977b-4b2c639ada27"
6087 wsmap="managed"
6088 >
6089 <desc>
6090 The IConsole interface represents an interface to control virtual
6091 machine execution.
6092
6093 The console object that implements the IConsole interface is obtained
6094 from a session object after the session for the given machine has been
6095 opened using one of <link to="IVirtualBox::openSession"/>,
6096 <link to="IVirtualBox::openRemoteSession"/> or
6097 <link to="IVirtualBox::openExistingSession"/> methods.
6098
6099 Methods of the IConsole interface allow the caller to query the current
6100 virtual machine execution state, pause the machine or power it down, save
6101 the machine state or take a snapshot, attach and detach removable media
6102 and so on.
6103
6104 <see>ISession</see>
6105 </desc>
6106
6107 <attribute name="machine" type="IMachine" readonly="yes">
6108 <desc>
6109 Machine object this console is sessioned with.
6110 <note>
6111 This is a convenience property, it has the same value as
6112 <link to="ISession::machine"/> of the corresponding session
6113 object.
6114 </note>
6115 </desc>
6116 </attribute>
6117
6118 <attribute name="state" type="MachineState" readonly="yes">
6119 <desc>
6120 Current execution state of the machine.
6121 <note>
6122 This property always returns the same value as the corresponding
6123 property of the IMachine object this console is sessioned with.
6124 For the process that owns (executes) the VM, this is the
6125 preferable way of querying the VM state, because no IPC
6126 calls are made.
6127 </note>
6128 </desc>
6129 </attribute>
6130
6131 <attribute name="guest" type="IGuest" readonly="yes">
6132 <desc>Guest object.</desc>
6133 </attribute>
6134
6135 <attribute name="keyboard" type="IKeyboard" readonly="yes">
6136 <desc>
6137 Virtual keyboard object.
6138 <note>
6139 If the machine is not running, any attempt to use
6140 the returned object will result in an error.
6141 </note>
6142 </desc>
6143 </attribute>
6144
6145 <attribute name="mouse" type="IMouse" readonly="yes">
6146 <desc>
6147 Virtual mouse object.
6148 <note>
6149 If the machine is not running, any attempt to use
6150 the returned object will result in an error.
6151 </note>
6152 </desc>
6153 </attribute>
6154
6155 <attribute name="display" type="IDisplay" readonly="yes">
6156 <desc>Virtual display object.
6157 <note>
6158 If the machine is not running, any attempt to use
6159 the returned object will result in an error.
6160 </note>
6161 </desc>
6162 </attribute>
6163
6164 <attribute name="debugger" type="IMachineDebugger" readonly="yes">
6165 <desc>Debugging interface.</desc>
6166 </attribute>
6167
6168 <attribute name="USBDevices" type="IUSBDevice" readonly="yes" safearray="yes">
6169 <desc>
6170 Collection of USB devices currently attached to the virtual
6171 USB controller.
6172 <note>
6173 The collection is empty if the machine is not running.
6174 </note>
6175 </desc>
6176 </attribute>
6177
6178 <attribute name="remoteUSBDevices" type="IHostUSBDevice" readonly="yes" safearray="yes">
6179 <desc>
6180 List of USB devices currently attached to the remote VRDP client.
6181 Once a new device is physically attached to the remote host computer,
6182 it appears in this list and remains there until detached.
6183 </desc>
6184 </attribute>
6185
6186 <attribute name="sharedFolders" type="ISharedFolder" readonly="yes" safearray="yes">
6187 <desc>
6188 Collection of shared folders for the current session. These folders
6189 are called transient shared folders because they are available to the
6190 guest OS running inside the associated virtual machine only for the
6191 duration of the session (as opposed to
6192 <link to="IMachine::sharedFolders"/> which represent permanent shared
6193 folders). When the session is closed (e.g. the machine is powered down),
6194 these folders are automatically discarded.
6195
6196 New shared folders are added to the collection using
6197 <link to="#createSharedFolder"/>. Existing shared folders can be
6198 removed using <link to="#removeSharedFolder"/>.
6199 </desc>
6200 </attribute>
6201
6202 <attribute name="remoteDisplayInfo" type="IRemoteDisplayInfo" readonly="yes">
6203 <desc>
6204 Interface that provides information on Remote Display (VRDP) connection.
6205 </desc>
6206 </attribute>
6207
6208 <method name="powerUp">
6209 <desc>
6210 Starts the virtual machine execution using the current machine
6211 state (that is, its current execution state, current settings and
6212 current hard disks).
6213
6214 If the machine is powered off or aborted, the execution will
6215 start from the beginning (as if the real hardware were just
6216 powered on).
6217
6218 If the machine is in the <link to="MachineState_Saved"/> state,
6219 it will continue its execution the point where the state has
6220 been saved.
6221
6222 <note>
6223 Unless you are trying to write a new VirtualBox front-end that
6224 performs direct machine execution (like the VirtualBox or VBoxSDL
6225 front-ends), don't call <link to="IConsole::powerUp"/> in a direct
6226 session opened by <link to="IVirtualBox::openSession"/> and use this
6227 session only to change virtual machine settings. If you simply want to
6228 start virtual machine execution using one of the existing front-ends
6229 (for example the VirtualBox GUI or headless server), simply use
6230 <link to="IVirtualBox::openRemoteSession"/>; these front-ends will
6231 power up the machine automatically for you.
6232 </note>
6233
6234 <see>#saveState</see>
6235 <result name="VBOX_E_INVALID_VM_STATE">
6236 Virtual machine already running.
6237 </result>
6238 <result name="VBOX_E_HOST_ERROR">
6239 Host interface does not exist or name not set.
6240 </result>
6241 <result name="VBOX_E_FILE_ERROR">
6242 Invalid saved state file.
6243 </result>
6244 </desc>
6245 <param name="progress" type="IProgress" dir="return">
6246 <desc>Progress object to track the operation completion.</desc>
6247 </param>
6248 </method>
6249
6250 <method name="powerUpPaused">
6251 <desc>
6252 Identical to powerUp except that the VM will enter the
6253 <link to="MachineState_Paused"/> state, instead of
6254 <link to="MachineState_Running"/>.
6255
6256 <see>#powerUp</see>
6257 <result name="VBOX_E_INVALID_VM_STATE">
6258 Virtual machine already running.
6259 </result>
6260 <result name="VBOX_E_HOST_ERROR">
6261 Host interface does not exist or name not set.
6262 </result>
6263 <result name="VBOX_E_FILE_ERROR">
6264 Invalid saved state file.
6265 </result>
6266 </desc>
6267 <param name="progress" type="IProgress" dir="return">
6268 <desc>Progress object to track the operation completion.</desc>
6269 </param>
6270 </method>
6271
6272 <method name="powerDown">
6273 <desc>
6274 Stops the virtual machine execution.
6275 After this operation completes, the machine will go to the
6276 PoweredOff state.
6277
6278 @deprecated This method will be removed in VirtualBox 2.1 where the
6279 powerDownAsync() method will take its name. Do not use this method in
6280 the code.
6281 <result name="VBOX_E_INVALID_VM_STATE">
6282 Virtual machine must be Running, Paused or Stuck to be powered down.
6283 </result>
6284 <result name="VBOX_E_VM_ERROR">
6285 Unable to power off or destroy virtual machine.
6286 </result>
6287 </desc>
6288 </method>
6289
6290 <method name="powerDownAsync">
6291 <desc>
6292 Initiates the power down procedure to stop the virtual machine
6293 execution.
6294
6295 The completion of the power down procedure is tracked using the returned
6296 IProgress object. After the operation is complete, the machine will go
6297 to the PoweredOff state.
6298
6299 @warning This method will be renamed to "powerDown" in VirtualBox 2.1
6300 where the original powerDown() method will be removed. You will need to
6301 rename "powerDownAsync" to "powerDown" in your sources to make them
6302 build with version 2.1.
6303 <result name="VBOX_E_INVALID_VM_STATE">
6304 Virtual machine must be Running, Paused or Stuck to be powered down.
6305 </result>
6306 </desc>
6307 <param name="progress" type="IProgress" dir="return">
6308 <desc>Progress object to track the operation completion.</desc>
6309 </param>
6310 </method>
6311
6312 <method name="reset">
6313 <desc>Resets the virtual machine.
6314 <result name="VBOX_E_INVALID_VM_STATE">
6315 Virtual machine not in Running state.
6316 </result>
6317 <result name="VBOX_E_VM_ERROR">
6318 Virtual machine error in reset operation.
6319 </result>
6320 </desc>
6321 </method>
6322
6323 <method name="pause">
6324 <desc>Pauses the virtual machine execution.
6325 <result name="VBOX_E_INVALID_VM_STATE">
6326 Virtual machine not in Running state.
6327 </result>
6328 <result name="VBOX_E_VM_ERROR">
6329 Virtual machine error in suspend operation.
6330 </result>
6331 </desc>
6332 </method>
6333
6334 <method name="resume">
6335 <desc>Resumes the virtual machine execution.
6336 <result name="VBOX_E_INVALID_VM_STATE">
6337 Virtual machine not in Paused state.
6338 </result>
6339 <result name="VBOX_E_VM_ERROR">
6340 Virtual machine error in resume operation.
6341 </result>
6342 </desc>
6343 </method>
6344
6345 <method name="powerButton">
6346 <desc>Sends the ACPI power button event to the guest.
6347 <result name="VBOX_E_INVALID_VM_STATE">
6348 Virtual machine not in Running state.
6349 </result>
6350 <result name="VBOX_E_PDM_ERROR">
6351 Controlled power off failed.
6352 </result>
6353 </desc>
6354 </method>
6355
6356 <method name="sleepButton">
6357 <desc>Sends the ACPI sleep button event to the guest.
6358 <result name="VBOX_E_INVALID_VM_STATE">
6359 Virtual machine not in Running state.
6360 </result>
6361 <result name="VBOX_E_PDM_ERROR">
6362 Sending sleep button event failed.
6363 </result>
6364 </desc>
6365 </method>
6366
6367 <method name="getPowerButtonHandled">
6368 <desc>Checks if the last power button event was handled by guest.
6369 <result name="VBOX_E_PDM_ERROR">
6370 Checking if the event was handled by the guest OS failed.
6371 </result>
6372 </desc>
6373 <param name="handled" type="boolean" dir="return"/>
6374 </method>
6375
6376 <method name="getGuestEnteredACPIMode">
6377 <desc>Checks if the guest entered the ACPI mode G0 (working) or
6378 G1 (sleeping). If this method returns false, the guest will
6379 most likely not respond to external ACPI events.
6380 <result name="VBOX_E_INVALID_VM_STATE">
6381 Virtual machine not in Running state.
6382 </result>
6383 </desc>
6384 <param name="entered" type="boolean" dir="return"/>
6385 </method>
6386
6387 <method name="saveState">
6388 <desc>
6389 Saves the current execution state of a running virtual machine
6390 and stops its execution.
6391
6392 After this operation completes, the machine will go to the
6393 Saved state. Next time it is powered up, this state will
6394 be restored and the machine will continue its execution from
6395 the place where it was saved.
6396
6397 This operation differs from taking a snapshot to the effect
6398 that it doesn't create new differencing hard disks. Also, once
6399 the machine is powered up from the state saved using this method,
6400 the saved state is deleted, so it will be impossible to return
6401 to this state later.
6402
6403 <note>
6404 On success, this method implicitly calls
6405 <link to="IMachine::saveSettings"/> to save all current machine
6406 settings (including runtime changes to the DVD drive, etc.).
6407 Together with the impossibility to change any VM settings when it is
6408 in the Saved state, this guarantees adequate hardware
6409 configuration of the machine when it is restored from the saved
6410 state file.
6411 </note>
6412
6413 <note>
6414 The machine must be in the Running or Paused state, otherwise
6415 the operation will fail.
6416 </note>
6417 <result name="VBOX_E_INVALID_VM_STATE">
6418 Virtual machine state neither Running nor Paused.
6419 </result>
6420 <result name="VBOX_E_FILE_ERROR">
6421 Failed to create directory for saved state file.
6422 </result>
6423
6424 <see><link to="#takeSnapshot"/></see>
6425 </desc>
6426 <param name="progress" type="IProgress" dir="return">
6427 <desc>Progress object to track the operation completion.</desc>
6428 </param>
6429 </method>
6430
6431 <method name="adoptSavedState">
6432 <desc>
6433 Associates the given saved state file to the virtual machine.
6434
6435 On success, the machine will go to the Saved state. Next time it is
6436 powered up, it will be restored from the adopted saved state and
6437 continue execution from the place where the saved state file was
6438 created.
6439
6440 The specified saved state file path may be absolute or relative to the
6441 folder the VM normally saves the state to (usually,
6442 <link to="IMachine::snapshotFolder"/>).
6443
6444 <note>
6445 It's a caller's responsibility to make sure the given saved state
6446 file is compatible with the settings of this virtual machine that
6447 represent its virtual hardware (memory size, hard disk configuration
6448 etc.). If there is a mismatch, the behavior of the virtual machine
6449 is undefined.
6450 </note>
6451 <result name="VBOX_E_INVALID_VM_STATE">
6452 Virtual machine state neither PoweredOff nor Aborted.
6453 </result>
6454 </desc>
6455 <param name="savedStateFile" type="wstring" dir="in">
6456 <desc>Path to the saved state file to adopt.</desc>
6457 </param>
6458 </method>
6459
6460 <method name="discardSavedState">
6461 <desc>
6462 Discards (deletes) the saved state of the virtual machine
6463 previously created by <link to="#saveState"/>. Next time the
6464 machine is powered up, a clean boot will occur.
6465 <note>
6466 This operation is equivalent to resetting or powering off
6467 the machine without doing a proper shutdown in the guest OS.
6468 </note>
6469 <result name="VBOX_E_INVALID_VM_STATE">
6470 Virtual machine not in state Saved.
6471 </result>
6472 </desc>
6473 </method>
6474
6475 <method name="getDeviceActivity">
6476 <desc>
6477 Gets the current activity type of a given device or device group.
6478 <result name="E_INVALIDARG">
6479 Invalid device type.
6480 </result>
6481 </desc>
6482 <param name="type" type="DeviceType" dir="in"/>
6483 <param name="activity" type="DeviceActivity" dir="return"/>
6484 </method>
6485
6486 <method name="attachUSBDevice">
6487 <desc>
6488 Attaches a host USB device with the given UUID to the
6489 USB controller of the virtual machine.
6490
6491 The device needs to be in one of the following states:
6492 <link to="USBDeviceState_Busy"/>,
6493 <link to="USBDeviceState_Available"/> or
6494 <link to="USBDeviceState_Held"/>,
6495 otherwise an error is immediately returned.
6496
6497 When the device state is
6498 <link to="USBDeviceState_Busy">Busy</link>, an error may also
6499 be returned if the host computer refuses to release it for some reason.
6500
6501 <see>IUSBController::deviceFilters, USBDeviceState</see>
6502 <result name="VBOX_E_INVALID_VM_STATE">
6503 Virtual machine state neither Running nor Paused.
6504 </result>
6505 <result name="VBOX_E_PDM_ERROR">
6506 Virtual machine does not have a USB controller.
6507 </result>
6508 </desc>
6509 <param name="id" type="wstring" dir="in">
6510 <desc>UUID of the host USB device to attach.</desc>
6511 </param>
6512 </method>
6513
6514 <method name="detachUSBDevice">
6515 <desc>
6516 Detaches an USB device with the given UUID from the USB controller
6517 of the virtual machine.
6518
6519 After this method succeeds, the VirtualBox server re-initiates
6520 all USB filters as if the device were just physically attached
6521 to the host, but filters of this machine are ignored to avoid
6522 a possible automatic re-attachment.
6523
6524 <see>IUSBController::deviceFilters, USBDeviceState</see>
6525
6526 <result name="VBOX_E_PDM_ERROR">
6527 Virtual machine does not have a USB controller.
6528 </result>
6529 <result name="E_INVALIDARG">
6530 USB device not attached to this virtual machine.
6531 </result>
6532 </desc>
6533 <param name="id" type="wstring" dir="in">
6534 <desc>UUID of the USB device to detach.</desc>
6535 </param>
6536 <param name="device" type="IUSBDevice" dir="return">
6537 <desc>Detached USB device.</desc>
6538 </param>
6539 </method>
6540
6541 <method name="findUSBDeviceByAddress">
6542 <desc>
6543 Searches for a USB device with the given host address.
6544
6545 <result name="VBOX_E_OBJECT_NOT_FOUND">
6546 Given @c name does not correspond to any USB device.
6547 </result>
6548
6549 <see>IUSBDevice::address</see>
6550 </desc>
6551 <param name="name" type="wstring" dir="in">
6552 <desc>
6553 Address of the USB device (as assigned by the host) to
6554 search for.
6555 </desc>
6556 </param>
6557 <param name="device" type="IUSBDevice" dir="return">
6558 <desc>Found USB device object.</desc>
6559 </param>
6560 </method>
6561
6562 <method name="findUSBDeviceById">
6563 <desc>
6564 Searches for a USB device with the given UUID.
6565
6566 <result name="VBOX_E_OBJECT_NOT_FOUND">
6567 Given @c id does not correspond to any USB device.
6568 </result>
6569
6570 <see>IUSBDevice::id</see>
6571 </desc>
6572 <param name="id" type="wstring" dir="in">
6573 <desc>UUID of the USB device to search for.</desc>
6574 </param>
6575 <param name="device" type="IUSBDevice" dir="return">
6576 <desc>Found USB device object.</desc>
6577 </param>
6578 </method>
6579
6580 <method name="createSharedFolder">
6581 <desc>
6582 Creates a transient new shared folder by associating the given logical
6583 name with the given host path, adds it to the collection of shared
6584 folders and starts sharing it. Refer to the description of
6585 <link to="ISharedFolder"/> to read more about logical names.
6586
6587 <result name="VBOX_E_INVALID_VM_STATE">
6588 Virtual machine in Saved state or currently changing state.
6589 </result>
6590 <result name="VBOX_E_FILE_ERROR">
6591 Shared folder already exists or not accessible.
6592 </result>
6593 </desc>
6594 <param name="name" type="wstring" dir="in">
6595 <desc>Unique logical name of the shared folder.</desc>
6596 </param>
6597 <param name="hostPath" type="wstring" dir="in">
6598 <desc>Full path to the shared folder in the host file system.</desc>
6599 </param>
6600 <param name="writable" type="boolean" dir="in">
6601 <desc>Whether the share is writable or readonly</desc>
6602 </param>
6603 </method>
6604
6605 <method name="removeSharedFolder">
6606 <desc>
6607 Removes a transient shared folder with the given name previously
6608 created by <link to="#createSharedFolder"/> from the collection of
6609 shared folders and stops sharing it.
6610 <result name="VBOX_E_INVALID_VM_STATE">
6611 Virtual machine in Saved state or currently changing state.
6612 </result>
6613 <result name="VBOX_E_FILE_ERROR">
6614 Shared folder does not exists.
6615 </result>
6616 </desc>
6617 <param name="name" type="wstring" dir="in">
6618 <desc>Logical name of the shared folder to remove.</desc>
6619 </param>
6620 </method>
6621
6622 <method name="takeSnapshot">
6623 <desc>
6624 Saves the current execution state and all settings of the
6625 machine and creates differencing images for all
6626 normal (non-independent) hard disks.
6627
6628 This method can be called for a PoweredOff, Saved, Running or
6629 Paused virtual machine. When the machine is PoweredOff, an
6630 offline <link to="ISnapshot">snapshot</link> is created,
6631 in all other cases -- an online snapshot.
6632
6633 The taken snapshot is always based on the
6634 <link to="IMachine::currentSnapshot">current
6635 snapshot</link> of the associated virtual machine and becomes
6636 a new current snapshot.
6637
6638 <note>
6639 This method implicitly calls <link to="IMachine::saveSettings"/> to
6640 save all current machine settings before taking an offline snapshot.
6641 </note>
6642
6643 <see>ISnapshot, <link to="#saveState"/></see>
6644 <result name="VBOX_E_INVALID_VM_STATE">
6645 Virtual machine currently changing state.
6646 </result>
6647 </desc>
6648 <param name="name" type="wstring" dir="in">
6649 <desc>Short name for the snapshot.</desc>
6650 </param>
6651 <param name="description" type="wstring" dir="in">
6652 <desc>Optional description of the snapshot.</desc>
6653 </param>
6654 <param name="progress" type="IProgress" dir="return">
6655 <desc>Progress object to track the operation completion.</desc>
6656 </param>
6657 </method>
6658
6659 <method name="discardSnapshot">
6660 <desc>
6661
6662 Starts discarding the specified snapshot. The execution state
6663 and settings of the associated machine stored in the snapshot
6664 will be deleted. The contents of all differencing hard disks of
6665 this snapshot will be merged with the contents of their
6666 dependent child hard disks to keep the, disks valid (in other
6667 words, all changes represented by hard disks being discarded
6668 will be propagated to their child hard disks). After that, this
6669 snapshot's differencing hard disks will be deleted. The parent
6670 of this snapshot will become a new parent for all its child
6671 snapshots.
6672
6673 If the discarded snapshot is the current one, its parent
6674 snapshot will become a new current snapshot. The current machine
6675 state is not directly affected in this case, except that
6676 currently attached differencing hard disks based on hard disks
6677 of the discarded snapshot will be also merged as described
6678 above.
6679
6680 If the discarded snapshot is the first one (the root snapshot)
6681 and it has exactly one child snapshot, this child snapshot will
6682 become the first snapshot after discarding. If there are no
6683 children at all (i.e. the first snapshot is the only snapshot of
6684 the machine), both the current and the first snapshot of the
6685 machine will be set to null. In all other cases, the first
6686 snapshot cannot be discarded.
6687
6688 You cannot discard the snapshot if it
6689 stores <link to="HardDiskType_Normal">normal</link> (non-differencing)
6690 hard disks that have differencing hard disks based on them. Snapshots of
6691 such kind can be discarded only when every normal hard disk has either
6692 no children at all or exactly one child. In the former case, the normal
6693 hard disk simply becomes unused (i.e. not attached to any VM). In the
6694 latter case, it receives all the changes stored in the child hard disk,
6695 and then it replaces the child hard disk in the configuration of the
6696 corresponding snapshot or machine.
6697
6698 Also, you cannot discard the snapshot if it stores hard disks
6699 (of any type) having differencing child hard disks that belong
6700 to other machines. Such snapshots can be only discarded after
6701 you discard all snapshots of other machines containing "foreign"
6702 child disks, or detach these "foreign" child disks from machines
6703 they are attached to.
6704
6705 One particular example of the snapshot storing normal hard disks
6706 is the first snapshot of a virtual machine that had normal hard
6707 disks attached when taking the snapshot. Be careful when
6708 discarding such snapshots because this implicitly commits
6709 changes (made since the snapshot being discarded has been taken)
6710 to normal hard disks (as described above), which may be not what
6711 you want.
6712
6713 The virtual machine is put to
6714 the <link to="MachineState_Discarding">Discarding</link> state until
6715 the discard operation is completed.
6716
6717 <note>
6718 The machine must not be running, otherwise the operation
6719 will fail.
6720 </note>
6721
6722 <note>
6723 Child hard disks of all normal hard disks of the discarded snapshot
6724 must be accessible (see <link to="IMedium::state"/>) for this
6725 operation to succeed. In particular, this means that all virtual
6726 machines, whose hard disks are directly or indirectly based on the
6727 hard disks of discarded snapshot, must be powered off.
6728 </note>
6729 <note>
6730 Merging hard disk contents can be very time and disk space
6731 consuming, if these disks are big in size and have many
6732 children. However, if the snapshot being discarded is the last
6733 (head) snapshot on the branch, the operation will be rather
6734 quick.
6735 </note>
6736 <note>
6737 Note that discarding the current snapshot
6738 will implicitly call <link to="IMachine::saveSettings"/> to
6739 make all current machine settings permanent.
6740 </note>
6741 <result name="VBOX_E_INVALID_VM_STATE">
6742 Virtual machine is running.
6743 </result>
6744 </desc>
6745 <param name="id" type="wstring" dir="in">
6746 <desc>UUID of the snapshot to discard.</desc>
6747 </param>
6748 <param name="progress" type="IProgress" dir="return">
6749 <desc>Progress object to track the operation completion.</desc>
6750 </param>
6751 </method>
6752
6753 <method name="discardCurrentState">
6754 <desc>
6755 This operation is similar to <link to="IConsole::discardSnapshot"/> but
6756 affects the current machine state. This means that the state stored in
6757 the current snapshot will become a new current state, and all current
6758 settings of the machine and changes stored in differencing hard disks
6759 will be lost.
6760
6761 After this operation is successfully completed, new empty differencing
6762 hard disks are created for all normal hard disks of the machine.
6763
6764 If the current snapshot of the machine is an online snapshot, the
6765 machine will go to the <link to="MachineState_Saved"> saved
6766 state</link>, so that the next time it is powered on, the execution
6767 state will be restored from the current snapshot.
6768
6769 <note>
6770 The machine must not be running, otherwise the operation will fail.
6771 </note>
6772
6773 <note>
6774 If the machine state is <link to="MachineState_Saved">Saved</link>
6775 prior to this operation, the saved state file will be implicitly
6776 discarded (as if <link to="IConsole::discardSavedState"/> were
6777 called).
6778 </note>
6779
6780 <result name="VBOX_E_INVALID_VM_STATE">
6781 Virtual machine is running.
6782 </result>
6783 </desc>
6784 <param name="progress" type="IProgress" dir="return">
6785 <desc>Progress object to track the operation completion.</desc>
6786 </param>
6787 </method>
6788
6789 <method name="discardCurrentSnapshotAndState">
6790 <desc>
6791
6792 This method is equivalent to
6793 doing <link to="IConsole::discardSnapshot">discardSnapshot</link>
6794 (currentSnapshot.id(), progress) followed by
6795 <link to="IConsole::discardCurrentState"/>.
6796
6797 As a result, the machine will be fully restored from the
6798 snapshot preceding the current snapshot, while both the current
6799 snapshot and the current machine state will be discarded.
6800
6801 If the current snapshot is the first snapshot of the machine (i.e. it
6802 has the only snapshot), the current machine state will be
6803 discarded <b>before</b> discarding the snapshot. In other words, the
6804 machine will be restored from its last snapshot, before discarding
6805 it. This differs from performing a single
6806 <link to="IConsole::discardSnapshot"/> call (note that no
6807 <link to="IConsole::discardCurrentState"/> will be possible after it)
6808 to the effect that the latter will preserve the current state instead of
6809 discarding it.
6810
6811 Unless explicitly mentioned otherwise, all remarks and
6812 limitations of the above two methods also apply to this method.
6813
6814 <note>
6815 The machine must not be running, otherwise the operation
6816 will fail.
6817 </note>
6818
6819 <note>
6820 If the machine state is <link to="MachineState_Saved">Saved</link>
6821 prior to this operation, the saved state file will be implicitly
6822 discarded (as if <link to="#discardSavedState"/> were
6823 called).
6824 </note>
6825
6826 <note>
6827 This method is more efficient than calling both of the above
6828 methods separately: it requires less IPC calls and provides
6829 a single progress object.
6830 </note>
6831
6832 <result name="VBOX_E_INVALID_VM_STATE">
6833 Virtual machine is running.
6834 </result>
6835 </desc>
6836 <param name="progress" type="IProgress" dir="return">
6837 <desc>Progress object to track the operation completion.</desc>
6838 </param>
6839 </method>
6840
6841 <method name="registerCallback">
6842 <desc>
6843 Registers a new console callback on this instance. The methods of the
6844 callback interface will be called by this instance when the appropriate
6845 event occurs.
6846 </desc>
6847 <param name="callback" type="IConsoleCallback" dir="in"/>
6848 </method>
6849
6850 <method name="unregisterCallback">
6851 <desc>
6852 Unregisters the console callback previously registered using
6853 <link to="#registerCallback"/>.
6854 <result name="E_INVALIDARG">
6855 Given @a callback handler is not registered.
6856 </result>
6857 </desc>
6858 <param name="callback" type="IConsoleCallback" dir="in"/>
6859 </method>
6860 </interface>
6861
6862 <!--
6863 // IHost
6864 /////////////////////////////////////////////////////////////////////////
6865 -->
6866
6867 <interface
6868 name="IHostDVDDrive" extends="$unknown"
6869 uuid="21f86694-202d-4ce4-8b05-a63ff82dbf4c"
6870 wsmap="managed"
6871 >
6872 <desc>
6873 The IHostDVDDrive interface represents the physical CD/DVD drive
6874 hardware on the host. Used indirectly in <link to="IHost::DVDDrives"/>.
6875 </desc>
6876
6877 <attribute name="name" type="wstring" readonly="yes">
6878 <desc>
6879 Returns the platform-specific device identifier.
6880 On DOS-like platforms, it is a drive name (e.g. R:).
6881 On Unix-like platforms, it is a device name (e.g. /dev/hdc).
6882 </desc>
6883 </attribute>
6884 <attribute name="description" type="wstring" readonly="yes">
6885 <desc>
6886 Returns a human readable description for the drive. This
6887 description usually contains the product and vendor name. A
6888 @c null string is returned if the description is not available.
6889 </desc>
6890 </attribute>
6891 <attribute name="udi" type="wstring" readonly="yes">
6892 <desc>
6893 Returns the unique device identifier for the drive. This
6894 attribute is reserved for future use instead of
6895 <link to="#name"/>. Currently it is not used and may return
6896 @c null on some platforms.
6897 </desc>
6898 </attribute>
6899
6900 </interface>
6901
6902 <interface
6903 name="IHostFloppyDrive" extends="$unknown"
6904 uuid="3f02d604-e908-4919-9fd1-8a4afd68fc63"
6905 wsmap="managed"
6906 >
6907 <desc>
6908 The IHostFloppyDrive interface represents the physical floppy drive
6909 hardware on the host. Used indirectly in <link to="IHost::floppyDrives"/>.
6910 </desc>
6911 <attribute name="name" type="wstring" readonly="yes">
6912 <desc>
6913 Returns the platform-specific device identifier.
6914 On DOS-like platforms, it is a drive name (e.g. A:).
6915 On Unix-like platforms, it is a device name (e.g. /dev/fd0).
6916 </desc>
6917 </attribute>
6918 <attribute name="description" type="wstring" readonly="yes">
6919 <desc>
6920 Returns a human readable description for the drive. This
6921 description usually contains the product and vendor name. A
6922 @c null string is returned if the description is not available.
6923 </desc>
6924 </attribute>
6925 <attribute name="udi" type="wstring" readonly="yes">
6926 <desc>
6927 Returns the unique device identifier for the drive. This
6928 attribute is reserved for future use instead of
6929 <link to="#name"/>. Currently it is not used and may return
6930 @c null on some platforms.
6931 </desc>
6932 </attribute>
6933 </interface>
6934
6935 <enum
6936 name="HostNetworkInterfaceMediumType"
6937 uuid="1aa54aaf-2497-45a2-bfb1-8eb225e93d5b"
6938 >
6939 <desc>
6940 Type of encapsulation. Ethernet encapsulation includes both wired and
6941 wireless Ethernet connections.
6942 <see>IHostNetworkInterface</see>
6943 </desc>
6944
6945 <const name="Unknown" value="0">
6946 <desc>
6947 The type of interface cannot be determined.
6948 </desc>
6949 </const>
6950 <const name="Ethernet" value="1">
6951 <desc>
6952 Ethernet frame encapsulation.
6953 </desc>
6954 </const>
6955 <const name="PPP" value="2">
6956 <desc>
6957 Point-to-point protocol encapsulation.
6958 </desc>
6959 </const>
6960 <const name="SLIP" value="3">
6961 <desc>
6962 Serial line IP encapsulation.
6963 </desc>
6964 </const>
6965 </enum>
6966
6967 <enum
6968 name="HostNetworkInterfaceStatus"
6969 uuid="CC474A69-2710-434B-8D99-C38E5D5A6F41"
6970 >
6971 <desc>
6972 Current status of the interface.
6973 <see>IHostNetworkInterface</see>
6974 </desc>
6975
6976 <const name="Unknown" value="0">
6977 <desc>
6978 The state of interface cannot be determined.
6979 </desc>
6980 </const>
6981 <const name="Up" value="1">
6982 <desc>
6983 The interface is fully operational.
6984 </desc>
6985 </const>
6986 <const name="Down" value="2">
6987 <desc>
6988 The interface is not functioning.
6989 </desc>
6990 </const>
6991 </enum>
6992
6993 <enum
6994 name="HostNetworkInterfaceType"
6995 uuid="67431b00-9946-48a2-bc02-b25c5919f4f3"
6996 >
6997 <desc>
6998 Network interface type.
6999 </desc>
7000 <const name="Bridged" value="1"/>
7001 <const name="HostOnly" value="2"/>
7002 </enum>
7003
7004 <interface
7005 name="IHostNetworkInterface" extends="$unknown"
7006 uuid="ce6fae58-7642-4102-b5db-c9005c2320a8"
7007 wsmap="managed"
7008 >
7009 <desc>
7010 Reprents one of host's network interfaces. IP V6 address and network
7011 mask are strings of 32 hexdecimal digits grouped by four. Groups are
7012 separated by colons.
7013 For example, fe80:0000:0000:0000:021e:c2ff:fed2:b030.
7014 </desc>
7015 <attribute name="name" type="wstring" readonly="yes">
7016 <desc>Returns the host network interface name.</desc>
7017 </attribute>
7018
7019 <attribute name="id" type="wstring" readonly="yes">
7020 <desc>Returns the interface UUID.</desc>
7021 </attribute>
7022
7023 <attribute name="networkName" type="wstring" readonly="yes">
7024 <desc>Returns the name of a virtual network the interface gets attached to.</desc>
7025 </attribute>
7026
7027 <attribute name="dhcpEnabled" type="boolean" readonly="yes">
7028 <desc>Specifies whether the DHCP is enabled for the interface.</desc>
7029 </attribute>
7030
7031 <attribute name="IPAddress" type="wstring" readonly="yes">
7032 <desc>Returns the IP V4 address of the interface.</desc>
7033 </attribute>
7034
7035 <attribute name="networkMask" type="wstring" readonly="yes">
7036 <desc>Returns the network mask of the interface.</desc>
7037 </attribute>
7038
7039 <attribute name="IPV6Supported" type="boolean" readonly="yes">
7040 <desc>Specifies whether the IP V6 is supported/enabled for the interface.</desc>
7041 </attribute>
7042
7043 <attribute name="IPV6Address" type="wstring" readonly="yes">
7044 <desc>Returns the IP V6 address of the interface.</desc>
7045 </attribute>
7046
7047 <attribute name="IPV6NetworkMaskPrefixLength" type="unsigned long" readonly="yes">
7048 <desc>Returns the length IP V6 network mask prefix of the interface.</desc>
7049 </attribute>
7050
7051 <attribute name="hardwareAddress" type="wstring" readonly="yes">
7052 <desc>Returns the hardware address. For Ethernet it is MAC address.</desc>
7053 </attribute>
7054
7055 <attribute name="mediumType" type="HostNetworkInterfaceMediumType" readonly="yes">
7056 <desc>Type of protocol encapsulation used.</desc>
7057 </attribute>
7058
7059 <attribute name="status" type="HostNetworkInterfaceStatus" readonly="yes">
7060 <desc>Status of the interface.</desc>
7061 </attribute>
7062
7063 <attribute name="interfaceType" type="HostNetworkInterfaceType" readonly="yes">
7064 <desc>specifies the host interface type.</desc>
7065 </attribute>
7066
7067 <method name="enableStaticIpConfig">
7068 <desc>sets and enables the static IP V4 configuration for the given interface.</desc>
7069 <param name="IPAddress" type="wstring" dir="in">
7070 <desc>
7071 IP address.
7072 </desc>
7073 </param>
7074 <param name="networkMask" type="wstring" dir="in">
7075 <desc>
7076 network mask.
7077 </desc>
7078 </param>
7079 </method>
7080
7081 <method name="enableStaticIpConfigV6">
7082 <desc>sets and enables the static IP V6 configuration for the given interface.</desc>
7083 <param name="IPV6Address" type="wstring" dir="in">
7084 <desc>
7085 IP address.
7086 </desc>
7087 </param>
7088 <param name="IPV6NetworkMaskPrefixLength" type="unsigned long" dir="in">
7089 <desc>
7090 network mask.
7091 </desc>
7092 </param>
7093 </method>
7094
7095 <method name="enableDynamicIpConfig">
7096 <desc>enables the dynamic IP configuration.</desc>
7097 </method>
7098
7099 <method name="dhcpRediscover">
7100 <desc>refreshes the IP configuration for dhcp-enabled interface.</desc>
7101 </method>
7102
7103 </interface>
7104
7105 <interface
7106 name="IHost" extends="$unknown"
7107 uuid="a13b5556-5c0b-4f80-9df6-6f804f3336a1"
7108 wsmap="managed"
7109 >
7110 <desc>
7111 The IHost interface represents the physical machine that this VirtualBox
7112 installation runs on.
7113
7114 An object implementing this interface is returned by the
7115 <link to="IVirtualBox::host" /> attribute. This interface contains
7116 read-only information about the host's physical hardware (such as what
7117 processors and disks are available, what the host operating system is,
7118 and so on) and also allows for manipulating some of the host's hardware,
7119 such as global USB device filters and host interface networking.
7120
7121 </desc>
7122 <attribute name="DVDDrives" type="IHostDVDDrive" readonly="yes" safearray="yes">
7123 <desc>List of DVD drives available on the host.</desc>
7124 </attribute>
7125
7126 <attribute name="floppyDrives" type="IHostFloppyDrive" readonly="yes" safearray="yes">
7127 <desc>List of floppy drives available on the host.</desc>
7128 </attribute>
7129
7130 <attribute name="USBDevices" type="IHostUSBDevice" readonly="yes" safearray="yes">
7131 <desc>
7132 List of USB devices currently attached to the host.
7133 Once a new device is physically attached to the host computer,
7134 it appears in this list and remains there until detached.
7135
7136 <note>
7137 If USB functionality is not available in the given edition of
7138 VirtualBox, this method will set the result code to @c E_NOTIMPL.
7139 </note>
7140 </desc>
7141 </attribute>
7142
7143 <attribute name="USBDeviceFilters" type="IHostUSBDeviceFilter" readonly="yes" safearray="yes">
7144 <desc>
7145 List of USB device filters in action.
7146 When a new device is physically attached to the host computer,
7147 filters from this list are applied to it (in order they are stored
7148 in the list). The first matched filter will determine the
7149 <link to="IHostUSBDeviceFilter::action">action</link>
7150 performed on the device.
7151
7152 Unless the device is ignored by these filters, filters of all
7153 currently running virtual machines
7154 (<link to="IUSBController::deviceFilters"/>) are applied to it.
7155
7156 <note>
7157 If USB functionality is not available in the given edition of
7158 VirtualBox, this method will set the result code to @c E_NOTIMPL.
7159 </note>
7160
7161 <see>IHostUSBDeviceFilter, USBDeviceState</see>
7162 </desc>
7163 </attribute>
7164
7165 <attribute name="networkInterfaces" type="IHostNetworkInterface" safearray="yes" readonly="yes">
7166 <desc>List of host network interfaces currently defined on the host.</desc>
7167 </attribute>
7168
7169 <attribute name="processorCount" type="unsigned long" readonly="yes">
7170 <desc>Number of (logical) CPUs installed in the host system.</desc>
7171 </attribute>
7172
7173 <attribute name="processorOnlineCount" type="unsigned long" readonly="yes">
7174 <desc>Number of (logical) CPUs online in the host system.</desc>
7175 </attribute>
7176
7177 <method name="getProcessorSpeed">
7178 <desc>Query the (approximate) maximum speed of a specified host CPU in
7179 Megahertz.
7180 </desc>
7181 <param name="cpuId" type="unsigned long" dir="in">
7182 <desc>
7183 Identifier of the CPU.
7184 </desc>
7185 </param>
7186 <param name="speed" type="unsigned long" dir="return">
7187 <desc>
7188 Speed value. 0 is returned if value is not known or @a cpuId is
7189 invalid.
7190 </desc>
7191 </param>
7192 </method>
7193
7194 <method name="getProcessorFeature">
7195 <desc>Query whether a CPU feature is supported or not.</desc>
7196 <param name="feature" type="ProcessorFeature" dir="in">
7197 <desc>
7198 CPU Feature identifier.
7199 </desc>
7200 </param>
7201 <param name="supported" type="boolean" dir="return">
7202 <desc>
7203 Feature is supported or not.
7204 </desc>
7205 </param>
7206 </method>
7207
7208 <method name="getProcessorDescription">
7209 <desc>Query the model string of a specified host CPU.
7210 <note>
7211 This function is not implemented in the current version of the
7212 product.
7213 </note>
7214 </desc>
7215 <param name="cpuId" type="unsigned long" dir="in">
7216 <desc>
7217 Identifier of the CPU.
7218 </desc>
7219 </param>
7220 <param name="description" type="wstring" dir="return">
7221 <desc>
7222 Model string. A NULL string is returned if value is not known or
7223 @a cpuId is invalid.
7224 </desc>
7225 </param>
7226 </method>
7227
7228 <attribute name="memorySize" type="unsigned long" readonly="yes">
7229 <desc>Amount of system memory in megabytes installed in the host system.</desc>
7230 </attribute>
7231
7232 <attribute name="memoryAvailable" type="unsigned long" readonly="yes">
7233 <desc>Available system memory in the host system.</desc>
7234 </attribute>
7235
7236 <attribute name="operatingSystem" type="wstring" readonly="yes">
7237 <desc>Name of the host system's operating system.</desc>
7238 </attribute>
7239
7240 <attribute name="OSVersion" type="wstring" readonly="yes">
7241 <desc>Host operating system's version string.</desc>
7242 </attribute>
7243
7244 <attribute name="UTCTime" type="long long" readonly="yes">
7245 <desc>Returns the current host time in milliseconds since 1970-01-01 UTC.</desc>
7246 </attribute>
7247
7248 <attribute name="Acceleration3DAvailable" type="boolean" readonly="yes">
7249 <desc>Returns true when the host supports 3D hardware acceleration.</desc>
7250 </attribute>
7251
7252 <method name="createHostOnlyNetworkInterface">
7253 <desc>
7254 Creates a new adapter for Host Only Networking.
7255 <result name="E_INVALIDARG">
7256 Host network interface @a name already exists.
7257 </result>
7258 </desc>
7259 <param name="hostInterface" type="IHostNetworkInterface" dir="out">
7260 <desc>
7261 Created host interface object.
7262 </desc>
7263 </param>
7264 <param name="progress" type="IProgress" dir="return">
7265 <desc>
7266 Progress object to track the operation completion.
7267 </desc>
7268 </param>
7269 </method>
7270
7271 <method name="removeHostOnlyNetworkInterface">
7272 <desc>
7273 Removes the given Host Only Networking interface.
7274 <result name="VBOX_E_OBJECT_NOT_FOUND">
7275 No host network interface matching @a id found.
7276 </result>
7277 </desc>
7278 <param name="id" type="wstring" dir="in">
7279 <desc>
7280 Adapter GUID.
7281 </desc>
7282 </param>
7283 <param name="hostInterface" type="IHostNetworkInterface" dir="out">
7284 <desc>
7285 Removed host interface object.
7286 </desc>
7287 </param>
7288 <param name="progress" type="IProgress" dir="return">
7289 <desc>
7290 Progress object to track the operation completion.
7291 </desc>
7292 </param>
7293 </method>
7294
7295 <method name="createUSBDeviceFilter">
7296 <desc>
7297 Creates a new USB device filter. All attributes except
7298 the filter name are set to <tt>null</tt> (any match),
7299 <i>active</i> is <tt>false</tt> (the filter is not active).
7300
7301 The created filter can be added to the list of filters using
7302 <link to="#insertUSBDeviceFilter"/>.
7303
7304 <see>#USBDeviceFilters</see>
7305 </desc>
7306 <param name="name" type="wstring" dir="in">
7307 <desc>
7308 Filter name. See <link to="IHostUSBDeviceFilter::name"/>
7309 for more info.
7310 </desc>
7311 </param>
7312 <param name="filter" type="IHostUSBDeviceFilter" dir="return">
7313 <desc>Created filter object.</desc>
7314 </param>
7315 </method>
7316
7317 <method name="insertUSBDeviceFilter">
7318 <desc>
7319 Inserts the given USB device to the specified position
7320 in the list of filters.
7321
7322 Positions are numbered starting from <tt>0</tt>. If the specified
7323 position is equal to or greater than the number of elements in
7324 the list, the filter is added at the end of the collection.
7325
7326 <note>
7327 Duplicates are not allowed, so an attempt to insert a
7328 filter already in the list is an error.
7329 </note>
7330 <note>
7331 If USB functionality is not available in the given edition of
7332 VirtualBox, this method will set the result code to @c E_NOTIMPL.
7333 </note>
7334
7335 <see>#USBDeviceFilters</see>
7336
7337 <result name="VBOX_E_INVALID_OBJECT_STATE">
7338 USB device filter is not created within this VirtualBox instance.
7339 </result>
7340 <result name="E_INVALIDARG">
7341 USB device filter already in list.
7342 </result>
7343
7344 </desc>
7345 <param name="position" type="unsigned long" dir="in">
7346 <desc>Position to insert the filter to.</desc>
7347 </param>
7348 <param name="filter" type="IHostUSBDeviceFilter" dir="in">
7349 <desc>USB device filter to insert.</desc>
7350 </param>
7351 </method>
7352
7353 <method name="removeUSBDeviceFilter">
7354 <desc>
7355 Removes a USB device filter from the specified position in the
7356 list of filters.
7357
7358 Positions are numbered starting from <tt>0</tt>. Specifying a
7359 position equal to or greater than the number of elements in
7360 the list will produce an error.
7361
7362 <note>
7363 If USB functionality is not available in the given edition of
7364 VirtualBox, this method will set the result code to @c E_NOTIMPL.
7365 </note>
7366
7367 <see>#USBDeviceFilters</see>
7368
7369 <result name="E_INVALIDARG">
7370 USB device filter list empty or invalid @a position.
7371 </result>
7372
7373 </desc>
7374 <param name="position" type="unsigned long" dir="in">
7375 <desc>Position to remove the filter from.</desc>
7376 </param>
7377 <param name="filter" type="IHostUSBDeviceFilter" dir="return">
7378 <desc>Removed USB device filter.</desc>
7379 </param>
7380 </method>
7381
7382 <method name="findHostDVDDrive">
7383 <desc>
7384 Searches for a host DVD drive with the given @c name.
7385
7386 <result name="VBOX_E_OBJECT_NOT_FOUND">
7387 Given @c name does not correspond to any host drive.
7388 </result>
7389
7390 </desc>
7391 <param name="name" type="wstring" dir="in">
7392 <desc>Name of the host drive to search for</desc>
7393 </param>
7394 <param name="drive" type="IHostDVDDrive" dir="return">
7395 <desc>Found host drive object</desc>
7396 </param>
7397 </method>
7398
7399 <method name="findHostFloppyDrive">
7400 <desc>
7401 Searches for a host floppy drive with the given @c name.
7402
7403 <result name="VBOX_E_OBJECT_NOT_FOUND">
7404 Given @c name does not correspond to any host floppy drive.
7405 </result>
7406
7407 </desc>
7408 <param name="name" type="wstring" dir="in">
7409 <desc>Name of the host floppy drive to search for</desc>
7410 </param>
7411 <param name="drive" type="IHostFloppyDrive" dir="return">
7412 <desc>Found host floppy drive object</desc>
7413 </param>
7414 </method>
7415
7416 <method name="findHostNetworkInterfaceByName">
7417 <desc>
7418 Searches through all host network interfaces for an interface with
7419 the given @c name.
7420 <note>
7421 The method returns an error if the given @c name does not
7422 correspond to any host network interface.
7423 </note>
7424 </desc>
7425 <param name="name" type="wstring" dir="in">
7426 <desc>Name of the host network interface to search for.</desc>
7427 </param>
7428 <param name="networkInterface" type="IHostNetworkInterface" dir="return">
7429 <desc>Found host network interface object.</desc>
7430 </param>
7431 </method>
7432 <method name="findHostNetworkInterfaceById">
7433 <desc>
7434 Searches through all host network interfaces for an interface with
7435 the given GUID.
7436 <note>
7437 The method returns an error if the given GUID does not
7438 correspond to any host network interface.
7439 </note>
7440 </desc>
7441 <param name="id" type="wstring" dir="in">
7442 <desc>GUID of the host network interface to search for.</desc>
7443 </param>
7444 <param name="networkInterface" type="IHostNetworkInterface" dir="return">
7445 <desc>Found host network interface object.</desc>
7446 </param>
7447 </method>
7448 <method name="findHostNetworkInterfacesOfType">
7449 <desc>
7450 Searches through all host network interfaces and returns a list of interfaces of the specified type
7451 </desc>
7452 <param name="type" type="HostNetworkInterfaceType" dir="in">
7453 <desc>type of the host network interfaces to search for.</desc>
7454 </param>
7455 <param name="networkInterfaces" type="IHostNetworkInterface" safearray="yes" dir="return">
7456 <desc>Found host network interface objects.</desc>
7457 </param>
7458 </method>
7459
7460 <method name="findUSBDeviceById">
7461 <desc>
7462 Searches for a USB device with the given UUID.
7463
7464 <result name="VBOX_E_OBJECT_NOT_FOUND">
7465 Given @c id does not correspond to any USB device.
7466 </result>
7467
7468 <see>IHostUSBDevice::id</see>
7469 </desc>
7470 <param name="id" type="wstring" dir="in">
7471 <desc>UUID of the USB device to search for.</desc>
7472 </param>
7473 <param name="device" type="IHostUSBDevice" dir="return">
7474 <desc>Found USB device object.</desc>
7475 </param>
7476 </method>
7477
7478 <method name="findUSBDeviceByAddress">
7479 <desc>
7480 Searches for a USB device with the given host address.
7481
7482 <result name="VBOX_E_OBJECT_NOT_FOUND">
7483 Given @c name does not correspond to any USB device.
7484 </result>
7485
7486 <see>IHostUSBDevice::address</see>
7487 </desc>
7488 <param name="name" type="wstring" dir="in">
7489 <desc>
7490 Address of the USB device (as assigned by the host) to
7491 search for.
7492 </desc>
7493 </param>
7494 <param name="device" type="IHostUSBDevice" dir="return">
7495 <desc>Found USB device object.</desc>
7496 </param>
7497 </method>
7498
7499 </interface>
7500
7501 <!--
7502 // ISystemProperties
7503 /////////////////////////////////////////////////////////////////////////
7504 -->
7505
7506 <interface
7507 name="ISystemProperties"
7508 extends="$unknown"
7509 uuid="63bfd184-df69-4949-9159-a923cf7b1207"
7510 wsmap="managed"
7511 >
7512 <desc>
7513 The ISystemProperties interface represents global properties of the given
7514 VirtualBox installation.
7515
7516 These properties define limits and default values for various attributes
7517 and parameters. Most of the properties are read-only, but some can be
7518 changed by a user.
7519 </desc>
7520
7521 <attribute name="minGuestRAM" type="unsigned long" readonly="yes">
7522 <desc>Minimum guest system memory in Megabytes.</desc>
7523 </attribute>
7524
7525 <attribute name="maxGuestRAM" type="unsigned long" readonly="yes">
7526 <desc>Maximum guest system memory in Megabytes.</desc>
7527 </attribute>
7528
7529 <attribute name="minGuestVRAM" type="unsigned long" readonly="yes">
7530 <desc>Minimum guest video memory in Megabytes.</desc>
7531 </attribute>
7532
7533 <attribute name="maxGuestVRAM" type="unsigned long" readonly="yes">
7534 <desc>Maximum guest video memory in Megabytes.</desc>
7535 </attribute>
7536
7537 <attribute name="minGuestCPUCount" type="unsigned long" readonly="yes">
7538 <desc>Minimum CPU count.</desc>
7539 </attribute>
7540
7541 <attribute name="maxGuestCPUCount" type="unsigned long" readonly="yes">
7542 <desc>Maximum CPU count.</desc>
7543 </attribute>
7544
7545 <attribute name="maxVDISize" type="unsigned long long" readonly="yes">
7546 <desc>Maximum size of a virtual disk image in Megabytes.</desc>
7547 </attribute>
7548
7549 <attribute name="networkAdapterCount" type="unsigned long" readonly="yes">
7550 <desc>
7551 Number of network adapters associated with every
7552 <link to="IMachine"/> instance.
7553 </desc>
7554 </attribute>
7555
7556 <attribute name="serialPortCount" type="unsigned long" readonly="yes">
7557 <desc>
7558 Number of serial ports associated with every
7559 <link to="IMachine"/> instance.
7560 </desc>
7561 </attribute>
7562
7563 <attribute name="parallelPortCount" type="unsigned long" readonly="yes">
7564 <desc>
7565 Number of parallel ports associated with every
7566 <link to="IMachine"/> instance.
7567 </desc>
7568 </attribute>
7569
7570 <attribute name="maxBootPosition" type="unsigned long" readonly="yes">
7571 <desc>
7572 Maximum device position in the boot order. This value corresponds
7573 to the total number of devices a machine can boot from, to make it
7574 possible to include all possible devices to the boot list.
7575 <see><link to="IMachine::setBootOrder"/></see>
7576 </desc>
7577 </attribute>
7578
7579 <attribute name="defaultMachineFolder" type="wstring">
7580 <desc>
7581 Full path to the default directory used to create new or open
7582 existing machines when a settings file name contains no
7583 path.
7584
7585 The initial value of this property is
7586 <tt>&lt;</tt><link to="IVirtualBox::homeFolder">
7587 VirtualBox_home</link><tt>&gt;/Machines</tt>.
7588
7589 <note>
7590 Setting this property to <tt>null</tt> will restore the
7591 initial value.
7592 </note>
7593 <note>
7594 When settings this property, the specified path can be
7595 absolute (full path) or relative
7596 to the <link to="IVirtualBox::homeFolder">
7597 VirtualBox home directory</link>.
7598 When reading this property, a full path is
7599 always returned.
7600 </note>
7601 <note>
7602 The specified path may not exist, it will be created
7603 when necessary.
7604 </note>
7605
7606 <see>
7607 <link to="IVirtualBox::createMachine"/>,
7608 <link to="IVirtualBox::openMachine"/>
7609 </see>
7610 </desc>
7611 </attribute>
7612
7613 <attribute name="defaultHardDiskFolder" type="wstring">
7614 <desc>
7615 Full path to the default directory used to create new or open existing
7616 virtual disks.
7617
7618 This path is used when the storage unit of a hard disk is a regular file
7619 in the host's file system and only a file name that contains no path is
7620 given.
7621
7622 The initial value of this property is
7623 <tt>&lt;</tt>
7624 <link to="IVirtualBox::homeFolder">VirtualBox_home</link>
7625 <tt>&gt;/HardDisks</tt>.
7626
7627 <note>
7628 Setting this property to <tt>null</tt> will restore the
7629 initial value.
7630 </note>
7631 <note>
7632 When settings this property, the specified path can be relative
7633 to the
7634 <link to="IVirtualBox::homeFolder">VirtualBox home directory</link> or
7635 absolute. When reading this property, a full path is
7636 always returned.
7637 </note>
7638 <note>
7639 The specified path may not exist, it will be created
7640 when necessary.
7641 </note>
7642
7643 <see>
7644 IHardDisk,
7645 <link to="IVirtualBox::createHardDisk"/>,
7646 <link to="IVirtualBox::openHardDisk"/>,
7647 <link to="IMedium::location"/>
7648 </see>
7649 </desc>
7650 </attribute>
7651
7652 <attribute name="hardDiskFormats" type="IHardDiskFormat" safearray="yes" readonly="yes">
7653 <desc>
7654 List of all hard disk storage formats supported by this VirtualBox
7655 installation.
7656
7657 Keep in mind that the hard disk format identifier
7658 (<link to="IHardDiskFormat::id"/>) used in other API calls like
7659 <link to="IVirtualBox::createHardDisk"/> to refer to a particular
7660 hard disk format is a case-insensitive string. This means that, for
7661 example, all of the following strings:
7662 <pre>
7663 "VDI"
7664 "vdi"
7665 "VdI"</pre>
7666 refer to the same hard disk format.
7667
7668 Note that the virtual hard disk framework is backend-based, therefore
7669 the list of supported formats depends on what backends are currently
7670 installed.
7671
7672 <see>
7673 <link to="IHardDiskFormat"/>,
7674 </see>
7675 </desc>
7676 </attribute>
7677
7678 <attribute name="defaultHardDiskFormat" type="wstring">
7679 <desc>
7680 Identifier of the default hard disk format used by VirtualBox.
7681
7682 The hard disk format set by this attribute is used by VirtualBox
7683 when the hard disk format was not specified explicitly. One example is
7684 <link to="IVirtualBox::createHardDisk"/> with the <tt>null</tt>
7685 format argument. A more complex example is implicit creation of
7686 differencing hard disks when taking a snapshot of a virtual machine:
7687 this operation will try to use a format of the parent hard disk first
7688 and if this format does not support differencing hard disks the default
7689 format specified by this argument will be used.
7690
7691 The list of supported hard disk formats may be obtained by the
7692 <link to="#hardDiskFormats"/> call. Note that the default hard disk
7693 format must have a capability to create differencing hard disks;
7694 otherwise opeartions that create hard disks implicitly may fail
7695 unexpectedly.
7696
7697 The initial value of this property is <tt>VDI</tt> in the current
7698 version of the VirtualBox product, but may change in the future.
7699
7700 <note>
7701 Setting this property to <tt>null</tt> will restore the
7702 initial value.
7703 </note>
7704
7705 <see>
7706 <link to="#hardDiskFormats"/>,
7707 <link to="IHardDiskFormat::id"/>,
7708 <link to="IVirtualBox::createHardDisk"/>
7709 </see>
7710 </desc>
7711 </attribute>
7712
7713 <attribute name="remoteDisplayAuthLibrary" type="wstring">
7714 <desc>
7715 Library that provides authentication for VRDP clients. The library
7716 is used if a virtual machine's authentication type is set to "external"
7717 in the VM RemoteDisplay configuration.
7718
7719 The system library extension (".DLL" or ".so") must be omitted.
7720 A full path can be specified; if not, then the library must reside on the
7721 system's default library path.
7722
7723 The default value of this property is <tt>VRDPAuth</tt>. There is a library
7724 of that name in one of the default VirtualBox library directories.
7725
7726 For details about VirtualBox authentication libraries and how to implement
7727 them, please refer to the VirtualBox manual.
7728
7729 <note>
7730 Setting this property to <tt>null</tt> will restore the
7731 initial value.
7732 </note>
7733 </desc>
7734 </attribute>
7735
7736 <attribute name="webServiceAuthLibrary" type="wstring">
7737 <desc>
7738 Library that provides authentication for webservice clients. The library
7739 is used if a virtual machine's authentication type is set to "external"
7740 in the VM RemoteDisplay configuration and will be called from
7741 within the <link to="IWebsessionManager::logon" /> implementation.
7742
7743 As opposed to <link to="ISystemProperties::remoteDisplayAuthLibrary" />,
7744 there is no per-VM setting for this, as the webservice is a global
7745 resource (if it is running). Only for this setting (for the webservice),
7746 setting this value to a literal "null" string disables authentication,
7747 meaning that <link to="IWebsessionManager::logon" /> will always succeed,
7748 no matter what user name and password are supplied.
7749
7750 The initial value of this property is <tt>VRDPAuth</tt>,
7751 meaning that the webservice will use the same authentication
7752 library that is used by default for VBoxVRDP (again, see
7753 <link to="ISystemProperties::remoteDisplayAuthLibrary" />).
7754 The format and calling convention of authentication libraries
7755 is the same for the webservice as it is for VBoxVRDP.
7756
7757 </desc>
7758 </attribute>
7759
7760 <attribute name="HWVirtExEnabled" type="boolean">
7761 <desc>
7762 This specifies the default value for hardware virtualization
7763 extensions. If enabled, virtual machines will make use of
7764 hardware virtualization extensions such as Intel VT-x and
7765 AMD-V by default. This value can be overridden by each VM
7766 using their <link to="IMachine::HWVirtExEnabled" /> property.
7767 </desc>
7768 </attribute>
7769
7770 <attribute name="LogHistoryCount" type="unsigned long">
7771 <desc>
7772 This value specifies how many old release log files are kept.
7773 </desc>
7774 </attribute>
7775
7776 <attribute name="defaultAudioDriver" type="AudioDriverType" readonly="yes">
7777 <desc>This value hold the default audio driver for the current
7778 system.</desc>
7779 </attribute>
7780 </interface>
7781
7782 <!--
7783 // IGuest
7784 /////////////////////////////////////////////////////////////////////////
7785 -->
7786
7787 <interface
7788 name="IGuestOSType" extends="$unknown"
7789 uuid="cfe9e64c-4430-435b-9e7c-e3d8e417bd58"
7790 wsmap="struct"
7791 >
7792 <desc>
7793 </desc>
7794
7795 <attribute name="familyId" type="wstring" readonly="yes">
7796 <desc>Guest OS family identifier string.</desc>
7797 </attribute>
7798
7799 <attribute name="familyDescription" type="wstring" readonly="yes">
7800 <desc>Human readable description of the guest OS family.</desc>
7801 </attribute>
7802
7803 <attribute name="id" type="wstring" readonly="yes">
7804 <desc>Guest OS identifier string.</desc>
7805 </attribute>
7806
7807 <attribute name="description" type="wstring" readonly="yes">
7808 <desc>Human readable description of the guest OS.</desc>
7809 </attribute>
7810
7811 <attribute name="is64Bit" type="boolean" readonly="yes">
7812 <desc>Returns @c true if the given OS is 64-bit</desc>
7813 </attribute>
7814
7815 <attribute name="recommendedIOAPIC" type="boolean" readonly="yes">
7816 <desc>Returns @c true if IO APIC recommended for this OS type.</desc>
7817 </attribute>
7818
7819 <attribute name="recommendedVirtEx" type="boolean" readonly="yes">
7820 <desc>Returns @c true if VT-x or AMD-V recommended for this OS type.</desc>
7821 </attribute>
7822
7823 <attribute name="recommendedRAM" type="unsigned long" readonly="yes">
7824 <desc>Recommended RAM size in Megabytes.</desc>
7825 </attribute>
7826
7827 <attribute name="recommendedVRAM" type="unsigned long" readonly="yes">
7828 <desc>Recommended video RAM size in Megabytes.</desc>
7829 </attribute>
7830
7831 <attribute name="recommendedHDD" type="unsigned long" readonly="yes">
7832 <desc>Recommended hard disk size in Megabytes.</desc>
7833 </attribute>
7834
7835 <attribute name="adapterType" type="NetworkAdapterType" readonly="yes">
7836 <desc>Returns recommended network adapter for this OS type.</desc>
7837 </attribute>
7838 </interface>
7839
7840 <interface
7841 name="IGuest" extends="$unknown"
7842 uuid="d8556fca-81bc-12af-fca3-365528fa38ca"
7843
7844 wsmap="suppress"
7845 >
7846 <desc>
7847 The IGuest interface represents information about the operating system
7848 running inside the virtual machine. Used in
7849 <link to="IConsole::guest"/>.
7850
7851 IGuest provides information about the guest operating system, whether
7852 Guest Additions are installed and other OS-specific virtual machine
7853 properties.
7854 </desc>
7855
7856 <attribute name="OSTypeId" type="wstring" readonly="yes">
7857 <desc>
7858 Identifier of the Guest OS type as reported by the Guest
7859 Additions.
7860 You may use <link to="IVirtualBox::getGuestOSType"/> to obtain
7861 an IGuestOSType object representing details about the given
7862 Guest OS type.
7863 <note>
7864 If Guest Additions are not installed, this value will be
7865 the same as <link to="IMachine::OSTypeId"/>.
7866 </note>
7867 </desc>
7868 </attribute>
7869
7870 <attribute name="additionsActive" type="boolean" readonly="yes">
7871 <desc>
7872 Flag whether the Guest Additions are installed and active
7873 in which case their version will be returned by the
7874 <link to="#additionsVersion"/> property.
7875 </desc>
7876 </attribute>
7877
7878 <attribute name="additionsVersion" type="wstring" readonly="yes">
7879 <desc>
7880 Version of the Guest Additions (3 decimal numbers separated
7881 by dots) or empty when the Additions are not installed. The
7882 Additions may also report a version but yet not be active as
7883 the version might be refused by VirtualBox (incompatible) or
7884 other failures occurred.
7885 </desc>
7886 </attribute>
7887
7888 <attribute name="supportsSeamless" type="boolean" readonly="yes">
7889 <desc>
7890 Flag whether seamless guest display rendering (seamless desktop
7891 integration) is supported.
7892 </desc>
7893 </attribute>
7894
7895 <attribute name="supportsGraphics" type="boolean" readonly="yes">
7896 <desc>
7897 Flag whether the guest is in graphics mode. If it is not, then
7898 seamless rendering will not work, resize hints are not immediately
7899 acted on and guest display resizes are probably not initiated by
7900 the guest additions.
7901 </desc>
7902 </attribute>
7903
7904 <attribute name="memoryBalloonSize" type="unsigned long">
7905 <desc>Guest system memory balloon size in megabytes.</desc>
7906 </attribute>
7907
7908 <attribute name="statisticsUpdateInterval" type="unsigned long">
7909 <desc>Interval to update guest statistics in seconds.</desc>
7910 </attribute>
7911
7912 <method name="setCredentials">
7913 <desc>
7914 Store login credentials that can be queried by guest operating
7915 systems with Additions installed. The credentials are transient
7916 to the session and the guest may also choose to erase them. Note
7917 that the caller cannot determine whether the guest operating system
7918 has queried or made use of the credentials.
7919
7920 <result name="VBOX_E_VM_ERROR">
7921 VMM device is not available.
7922 </result>
7923
7924 </desc>
7925 <param name="userName" type="wstring" dir="in">
7926 <desc>User name string, can be empty</desc>
7927 </param>
7928 <param name="password" type="wstring" dir="in">
7929 <desc>Password string, can be empty</desc>
7930 </param>
7931 <param name="domain" type="wstring" dir="in">
7932 <desc>Domain name (guest logon scheme specific), can be empty</desc>
7933 </param>
7934 <param name="allowInteractiveLogon" type="boolean" dir="in">
7935 <desc>
7936 Flag whether the guest should alternatively allow the user to
7937 interactively specify different credentials. This flag might
7938 not be supported by all versions of the Additions.
7939 </desc>
7940 </param>
7941 </method>
7942
7943 <method name="getStatistic">
7944 <desc>
7945 Query specified guest statistics as reported by the VirtualBox Additions.
7946 </desc>
7947 <param name="cpuId" type="unsigned long" dir="in">
7948 <desc>Virtual CPU id; not relevant for all statistic types</desc>
7949 </param>
7950 <param name="statistic" type="GuestStatisticType" dir="in">
7951 <desc>Statistic type.</desc>
7952 </param>
7953 <param name="statVal" type="unsigned long" dir="out">
7954 <desc>Statistics value</desc>
7955 </param>
7956 </method>
7957
7958 </interface>
7959
7960
7961 <!--
7962 // IProgress
7963 /////////////////////////////////////////////////////////////////////////
7964 -->
7965
7966 <interface
7967 name="IProgress" extends="$unknown"
7968 uuid="6fcd0198-7fc5-4c53-8c37-653ac76854b5"
7969 wsmap="managed"
7970 >
7971 <desc>
7972 The IProgress interface is used to track and control
7973 asynchronous tasks within VirtualBox.
7974
7975 An instance of this is returned every time VirtualBox starts
7976 an asynchronous task (in other words, a separate thread) which
7977 continues to run after a method call returns. For example,
7978 <link to="IConsole::saveState" />, which saves the state of
7979 a running virtual machine, can take a long time to complete.
7980 To be able to display a progress bar, a user interface such as
7981 the VirtualBox graphical user interface can use the IProgress
7982 object returned by that method.
7983
7984 Note that IProgress is a "read-only" interface in the sense
7985 that only the VirtualBox internals behind the Main API can
7986 create and manipulate progress objects, whereas client code
7987 can only use the IProgress object to monitor a task's
7988 progress and, if <link to="#cancelable" /> is true,
7989 cancel the task by calling <link to="#cancel" />.
7990
7991 A task represented by IProgress consists of either one or
7992 several sub-operations that run sequentially, one by one (see
7993 <link to="#operation" /> and <link to="#operationCount" />).
7994 Every operation is identified by a number (starting from 0)
7995 and has a separate description.
7996
7997 You can find the individual percentage of completion of the current
7998 operation in <link to="#operationPercent" /> and the
7999 percentage of completion of the task as a whole
8000 in <link to="#percent" />.
8001
8002 Similarly, you can wait for the completion of a particular
8003 operation via <link to="#waitForOperationCompletion" /> or
8004 for the completion of the whole task via
8005 <link to="#waitForCompletion" />.
8006 </desc>
8007
8008 <attribute name="id" type="wstring" readonly="yes">
8009 <desc>ID of the task.</desc>
8010 </attribute>
8011
8012 <attribute name="description" type="wstring" readonly="yes">
8013 <desc>Description of the task.</desc>
8014 </attribute>
8015
8016 <attribute name="initiator" type="$unknown" readonly="yes">
8017 <desc>Initiator of the task.</desc>
8018 </attribute>
8019
8020 <attribute name="cancelable" type="boolean" readonly="yes">
8021 <desc>Whether the task can be interrupted.</desc>
8022 </attribute>
8023
8024 <attribute name="percent" type="unsigned long" readonly="yes">
8025 <desc>
8026 Current progress value of the task as a whole, in percent.
8027 This value depends on how many operations are already complete.
8028 Returns 100 if <link to="#completed" /> is true.
8029 </desc>
8030 </attribute>
8031
8032 <attribute name="timeRemaining" type="long" readonly="yes">
8033 <desc>
8034 Estimated remaining time until the task completes, in
8035 seconds. Returns 0 once the task has completed; returns -1
8036 if the remaining time cannot be computed, in particular if
8037 the current progress is 0.
8038
8039 Even if a value is returned, the estimate will be unreliable
8040 for low progress values. It will become more reliable as the
8041 task progresses; it is not recommended to display an ETA
8042 before at least 20% of a task have completed.
8043 </desc>
8044 </attribute>
8045
8046 <attribute name="completed" type="boolean" readonly="yes">
8047 <desc>Whether the task has been completed.</desc>
8048 </attribute>
8049
8050 <attribute name="canceled" type="boolean" readonly="yes">
8051 <desc>Whether the task has been canceled.</desc>
8052 </attribute>
8053
8054 <attribute name="resultCode" type="long" readonly="yes">
8055 <desc>
8056 Result code of the progress task.
8057 Valid only if <link to="#completed"/> is true.
8058 </desc>
8059 </attribute>
8060
8061 <attribute name="errorInfo" type="IVirtualBoxErrorInfo" readonly="yes">
8062 <desc>
8063 Extended information about the unsuccessful result of the
8064 progress operation. May be NULL if no extended information
8065 is available.
8066 Valid only if <link to="#completed"/> is true and
8067 <link to="#resultCode"/> indicates a failure.
8068 </desc>
8069 </attribute>
8070
8071 <attribute name="operationCount" type="unsigned long" readonly="yes">
8072 <desc>
8073 Number of sub-operations this task is divided into.
8074 Every task consists of at least one suboperation.
8075 </desc>
8076 </attribute>
8077
8078 <attribute name="operation" type="unsigned long" readonly="yes">
8079 <desc>Number of the sub-operation being currently executed.</desc>
8080 </attribute>
8081
8082 <attribute name="operationDescription" type="wstring" readonly="yes">
8083 <desc>
8084 Description of the sub-operation being currently executed.
8085 </desc>
8086 </attribute>
8087
8088 <attribute name="operationPercent" type="unsigned long" readonly="yes">
8089 <desc>Progress value of the current sub-operation only, in percent.</desc>
8090 </attribute>
8091
8092 <method name="waitForCompletion">
8093 <desc>
8094 Waits until the task is done (including all sub-operations)
8095 with a given timeout in milliseconds; specify -1 for an indefinite wait.
8096
8097 <result name="VBOX_E_IPRT_ERROR">
8098 Failed to wait for task completion.
8099 </result>
8100 </desc>
8101
8102 <param name="timeout" type="long" dir="in">
8103 <desc>
8104 Maximum time in milliseconds to wait or -1 to wait indefinitely.
8105 </desc>
8106 </param>
8107 </method>
8108
8109 <method name="waitForOperationCompletion">
8110 <desc>
8111 Waits until the given operation is done with a given timeout in
8112 milliseconds; specify -1 for an indefinite wait.
8113
8114 <result name="VBOX_E_IPRT_ERROR">
8115 Failed to wait for operation completion.
8116 </result>
8117
8118 </desc>
8119 <param name="operation" type="unsigned long" dir="in">
8120 <desc>
8121 Number of the operation to wait for.
8122 Must be less than <link to="#operationCount"/>.
8123 </desc>
8124 </param>
8125 <param name="timeout" type="long" dir="in">
8126 <desc>
8127 Maximum time in milliseconds to wait or -1 to wait indefinitely.
8128 </desc>
8129 </param>
8130 </method>
8131
8132 <method name="cancel">
8133 <desc>
8134 Cancels the task.
8135 <note>
8136 If <link to="#cancelable"/> is <tt>false</tt>, then
8137 this method will fail.
8138 </note>
8139
8140 <result name="VBOX_E_INVALID_OBJECT_STATE">
8141 Operation cannot be canceled.
8142 </result>
8143
8144 </desc>
8145 </method>
8146
8147 </interface>
8148
8149
8150 <!--
8151 // ISnapshot
8152 /////////////////////////////////////////////////////////////////////////
8153 -->
8154
8155 <interface
8156 name="ISnapshot" extends="$unknown"
8157 uuid="1a2d0551-58a4-4107-857e-ef414fc42ffc"
8158 wsmap="managed"
8159 >
8160 <desc>
8161 The ISnapshot interface represents a snapshot of the virtual
8162 machine.
8163
8164 The <i>snapshot</i> stores all the information about a virtual
8165 machine necessary to bring it to exactly the same state as it was at
8166 the time of taking the snapshot. The snapshot includes:
8167
8168 <ul>
8169 <li>all settings of the virtual machine (i.e. its hardware
8170 configuration: RAM size, attached hard disks, etc.)
8171 </li>
8172 <li>the execution state of the virtual machine (memory contents,
8173 CPU state, etc.).
8174 </li>
8175 </ul>
8176
8177 Snapshots can be <i>offline</i> (taken when the VM is powered off)
8178 or <i>online</i> (taken when the VM is running). The execution
8179 state of the offline snapshot is called a <i>zero execution state</i>
8180 (it doesn't actually contain any information about memory contents
8181 or the CPU state, assuming that all hardware is just powered off).
8182
8183 <h3>Snapshot branches</h3>
8184
8185 Snapshots can be chained. Chained snapshots form a branch where
8186 every next snapshot is based on the previous one. This chaining is
8187 mostly related to hard disk branching (see <link to="IHardDisk"/>
8188 description). This means that every time a new snapshot is created,
8189 a new differencing hard disk is implicitly created for all normal
8190 hard disks attached to the given virtual machine. This allows to
8191 fully restore hard disk contents when the machine is later reverted
8192 to a particular snapshot.
8193
8194 In the current implementation, multiple snapshot branches within one
8195 virtual machine are not allowed. Every machine has a single branch,
8196 and <link to="IConsole::takeSnapshot"/> operation adds a new
8197 snapshot to the top of that branch.
8198
8199 Existing snapshots can be discarded using
8200 <link to="IConsole::discardSnapshot"/>.
8201
8202 <h3>Current snapshot</h3>
8203
8204 Every virtual machine has a current snapshot, identified by
8205 <link to="IMachine::currentSnapshot"/>. This snapshot is used as
8206 a base for the <i>current machine state</i> (see below), to the effect
8207 that all normal hard disks of the machine and its execution
8208 state are based on this snapshot.
8209
8210 In the current implementation, the current snapshot is always the
8211 last taken snapshot (i.e. the head snapshot on the branch) and it
8212 cannot be changed.
8213
8214 The current snapshot is <tt>null</tt> if the machine doesn't have
8215 snapshots at all; in this case the current machine state is just
8216 current settings of this machine plus its current execution state.
8217
8218 <h3>Current machine state</h3>
8219
8220 The current machine state is what represented by IMachine instances got
8221 directly from IVirtualBox
8222 using <link
8223 to="IVirtualBox::getMachine">getMachine()</link>, <link
8224 to="IVirtualBox::findMachine">findMachine()</link>, etc. (as opposed
8225 to instances returned by <link to="ISnapshot::machine"/>). This state
8226 is always used when the machine is <link to="IConsole::powerUp"> powered
8227 on</link>.
8228
8229 The current machine state also includes the current execution state.
8230 If the machine is being currently executed
8231 (<link to="IMachine::state"/> is <link to="MachineState_Running"/>
8232 and above), its execution state is just what's happening now.
8233 If it is powered off (<link to="MachineState_PoweredOff"/> or
8234 <link to="MachineState_Aborted"/>), it has a zero execution state.
8235 If the machine is saved (<link to="MachineState_Saved"/>), its
8236 execution state is what saved in the execution state file
8237 (<link to="IMachine::stateFilePath"/>).
8238
8239 If the machine is in the saved state, then, next time it is powered
8240 on, its execution state will be fully restored from the saved state
8241 file and the execution will continue from the point where the state
8242 was saved.
8243
8244 Similarly to snapshots, the current machine state can be discarded
8245 using <link to="IConsole::discardCurrentState"/>.
8246
8247 <h3>Taking and discarding snapshots</h3>
8248
8249 The table below briefly explains the meaning of every snapshot
8250 operation:
8251
8252 <table>
8253 <tr><th>Operation</th><th>Meaning</th><th>Remarks</th></tr>
8254
8255 <tr><td><link to="IConsole::takeSnapshot"/></td>
8256
8257 <td>Save the current state of the virtual machine, including all
8258 settings, contents of normal hard disks and the current modifications
8259 to immutable hard disks (for online snapshots)</td>
8260
8261 <td>The current state is not changed (the machine will continue
8262 execution if it is being executed when the snapshot is
8263 taken)</td></tr>
8264
8265 <tr><td><link to="IConsole::discardSnapshot"/></td>
8266
8267 <td>Forget the state of the virtual machine stored in the snapshot:
8268 dismiss all saved settings and delete the saved execution state (for
8269 online snapshots)</td>
8270
8271 <td>Other snapshots (including child snapshots, if any) and the
8272 current state are not directly affected</td></tr>
8273
8274 <tr><td><link to="IConsole::discardCurrentState"/></td>
8275
8276 <td>Restore the current state of the virtual machine from the state
8277 stored in the current snapshot, including all settings and hard disk
8278 contents</td>
8279
8280 <td>The current state of the machine existed prior to this operation
8281 is lost</td></tr>
8282
8283 <tr><td><link to="IConsole::discardCurrentSnapshotAndState"/></td>
8284
8285 <td>Completely revert the virtual machine to the state it was in
8286 before the current snapshot has been taken</td>
8287
8288 <td>The current state, as well as the current snapshot, are
8289 lost</td></tr>
8290
8291 </table>
8292
8293 </desc>
8294
8295 <attribute name="id" type="wstring" readonly="yes">
8296 <desc>UUID of the snapshot.</desc>
8297 </attribute>
8298
8299 <attribute name="name" type="wstring">
8300 <desc>Short name of the snapshot.</desc>
8301 </attribute>
8302
8303 <attribute name="description" type="wstring">
8304 <desc>Optional description of the snapshot.</desc>
8305 </attribute>
8306
8307 <attribute name="timeStamp" type="long long" readonly="yes">
8308 <desc>
8309 Time stamp of the snapshot, in milliseconds since 1970-01-01 UTC.
8310 </desc>
8311 </attribute>
8312
8313 <attribute name="online" type="boolean" readonly="yes">
8314 <desc>
8315 <tt>true</tt> if this snapshot is an online snapshot and
8316 <tt>false</tt> otherwise.
8317
8318 <note>
8319 When this attribute is <tt>true</tt>, the
8320 <link to="IMachine::stateFilePath"/> attribute of the
8321 <link to="#machine"/> object associated with this snapshot
8322 will point to the saved state file. Otherwise, it will be
8323 <tt>null</tt>.
8324 </note>
8325 </desc>
8326 </attribute>
8327
8328 <attribute name="machine" type="IMachine" readonly="yes">
8329 <desc>
8330 Virtual machine this snapshot is taken on. This object
8331 stores all settings the machine had when taking this snapshot.
8332 <note>
8333 The returned machine object is immutable, i.e. no
8334 any settings can be changed.
8335 </note>
8336 </desc>
8337 </attribute>
8338
8339 <attribute name="parent" type="ISnapshot" readonly="yes">
8340 <desc>
8341 Parent snapshot (a snapshot this one is based on).
8342 <note>
8343 It's not an error to read this attribute on a snapshot
8344 that doesn't have a parent -- a null object will be
8345 returned to indicate this.
8346 </note>
8347 </desc>
8348 </attribute>
8349
8350 <attribute name="children" type="ISnapshot" readonly="yes" safearray="yes">
8351 <desc>
8352 Child snapshots (all snapshots having this one as a parent).
8353 <note>
8354 In the current implementation, there can be only one
8355 child snapshot, or no children at all, meaning this is the
8356 last (head) snapshot.
8357 </note>
8358 </desc>
8359 </attribute>
8360
8361 </interface>
8362
8363
8364 <!--
8365 // IMedia
8366 /////////////////////////////////////////////////////////////////////////
8367 -->
8368
8369 <enum
8370 name="MediaState"
8371 uuid="8b86e03c-2f1c-412a-8fbd-326f62701200"
8372 >
8373 <desc>
8374 Virtual media state.
8375 <see>IMedia</see>
8376 </desc>
8377
8378 <const name="NotCreated" value="0">
8379 <desc>
8380 Associated media storage does not exist (either was not created yet or
8381 was deleted).
8382 </desc>
8383 </const>
8384 <const name="Created" value="1">
8385 <desc>
8386 Associated storage exists and accessible.
8387 </desc>
8388 </const>
8389 <const name="LockedRead" value="2">
8390 <desc>
8391 Media is locked for reading, no data modification is possible.
8392 </desc>
8393 </const>
8394 <const name="LockedWrite" value="3">
8395 <desc>
8396 Media is locked for writing, no concurrent data reading or modification
8397 is possible.
8398 </desc>
8399 </const>
8400 <const name="Inaccessible" value="4">
8401 <desc>
8402 Associated media storage is not accessible.
8403 </desc>
8404 </const>
8405 <const name="Creating" value="5">
8406 <desc>
8407 Associated media storage is being created.
8408 </desc>
8409 </const>
8410 <const name="Deleting" value="6">
8411 <desc>
8412 Associated media storage is being deleted.
8413 </desc>
8414 </const>
8415 </enum>
8416
8417 <interface
8418 name="IMedium" extends="$unknown"
8419 uuid="f585787c-7728-40f6-853a-13705426e936"
8420 wsmap="managed"
8421 >
8422 <desc>
8423 The IMedium interface is a common interface for all objects representing
8424 virtual media such as hard disks, CD/DVD images and floppy images.
8425
8426 Each medium is associated with a storage unit (such as a file on the host
8427 computer or a network resource) that holds actual data. The location of
8428 the storage unit is represented by the #location attribute. The value of
8429 this attribute is media type dependent.
8430
8431 The exact media type may be determined by querying the appropriate
8432 interface such as:
8433 <ul>
8434 <li><link to="IHardDisk" /> (virtual hard disks)</li>
8435 <li><link to="IDVDImage" /> (standard CD/DVD ISO image files)</li>
8436 <li><link to="IFloppyImage" /> (raw floppy image files)</li>
8437 </ul>
8438
8439 Existing media are opened using the following methods, depending on the
8440 media type:
8441 <ul>
8442 <li><link to="IVirtualBox::openHardDisk"/></li>
8443 <li><link to="IVirtualBox::openDVDImage"/></li>
8444 <li><link to="IVirtualBox::openFloppyImage"/></li>
8445 </ul>
8446
8447 New hard disk media are created using the
8448 <link to="IVirtualBox::createHardDisk"/> method. CD/DVD and floppy
8449 images are created outside VirtualBox, usually by storing a copy
8450 of the real medium of the corresponding type in a regular file.
8451
8452 <h3>Known Media</h3>
8453
8454 When an existing medium gets opened for the first time, it gets
8455 automatically remembered by the given VirtualBox installation or, in other
8456 words, becomes a <i>known medium</i>. Known media are stored in the media
8457 registry transparently maintained by VirtualBox and stored in settings
8458 files so that this registry is preserved when VirtualBox is not running.
8459
8460 Newly created virtual hard disks get remembered only when the associated
8461 storage unit is actually created (see IHardDisk for more details).
8462
8463 All known media can be enumerated using
8464 <link to="IVirtualBox::hardDisks"/>,
8465 <link to="IVirtualBox::DVDImages"/> and
8466 <link to="IVirtualBox::floppyImages"/> attributes. Individual media can be
8467 quickly found by UUID using <link to="IVirtualBox::getHardDisk"/>
8468 and similar methods or by location using
8469 <link to="IVirtualBox::findHardDisk"/> and similar methods.
8470
8471 Only known media can be attached to virtual machines.
8472
8473 Removing known media from the media registry is performed when the given
8474 medium is closed using the <link to="#close"/> method or when its
8475 associated storage unit is deleted (only for hard disks).
8476
8477 <h3>Accessibility Checks</h3>
8478
8479 The given medium (with the created storage unit) is considered to be
8480 <i>accessible</i> when its storage unit can be read.
8481 Accessible media are indicated by the <link to="MediaState_Created"/>
8482 value of the <link to="#state"/> attribute. When the storage unit cannot
8483 be read (for example, because it is located on a disconnected network
8484 resource, or was accidentally deleted outside VirtualBox), the medium is
8485 considered to be <i>inaccessible</i> which is indicated by the
8486 <link to="MediaState_Inaccessible"/> state. The details about the reason
8487 of being inaccessible can be obtained using the
8488 <link to="#lastAccessError"/> attribute.
8489
8490 A new accessibility check is performed each time the <link to="#state"/>
8491 attribute is read. Please note that this check may take long time (several
8492 seconds or even minutes, depending on the storage unit location and
8493 format), and will block the calling thread until finished. For this
8494 reason, it is recommended to never read this attribute on the main UI
8495 thread to avoid making the UI unresponsive.
8496
8497 Note that when VirtualBox starts up (e.g. the VirtualBox object gets
8498 created for the first time), all known media are in the
8499 <link to="MediaState_Inaccessible"/> state but the value of the <link
8500 to="#lastAccessError"/> attribute is <tt>null</tt> because no actual
8501 accessibility check is made on startup. This is done to make the
8502 VirtualBox object ready for serving requests as
8503 fast as possible and let the end-user application decide if it needs to
8504 check media accessibility right away or not.
8505 </desc>
8506
8507 <attribute name="id" type="wstring" readonly="yes">
8508 <desc>
8509 UUID of the medium. For a newly created medium, this value is a randomly
8510 generated UUID.
8511
8512 <note>
8513 For media in one of MediaState_NotCreated, MediaState_Creating or
8514 MediaState_Deleting states, the value of this property is undefined
8515 and will most likely be an empty UUID.
8516 </note>
8517 </desc>
8518 </attribute>
8519
8520 <attribute name="description" type="wstring">
8521 <desc>
8522 Optional description of the medium. For newly created media, the value
8523 of this attribute value is <tt>null</tt>.
8524
8525 Media types that don't support this attribute will return E_NOTIMPL in
8526 attempt to get or set this attribute's value.
8527
8528 <note>
8529 For some storage types, reading this attribute may return an outdated
8530 (last known) value when <link to="#state"/> is <link
8531 to="MediaState_Inaccessible"/> or <link
8532 to="MediaState_LockedWrite"/> because the value of this attribute is
8533 stored within the storage unit itself. Also note that changing the
8534 attribute value is not possible in such case, as well as when the
8535 medium is the <link to="MediaState_LockedRead"/> state.
8536 </note>
8537 </desc>
8538 </attribute>
8539
8540 <attribute name="state" type="MediaState" readonly="yes">
8541 <desc>
8542 Current media state. Inspect <link to="MediaState"/> values for details.
8543
8544 Reading this attribute may take a long time because an accessibility
8545 check of the storage unit is performed each time the attribute is read.
8546 This check may cause a significant delay if the storage unit of the
8547 given medium is, for example, a file located on a network share which is
8548 not currently accessible due to connectivity problems -- the call will
8549 not return until a timeout interval defined by the host OS for this
8550 operation expires.
8551
8552 If the last known state of the medium is <link to="MediaState_Created"/>
8553 and the accessibility check fails then the state would be set to
8554 <link to="MediaState_Inaccessible"/> and <link to="#lastAccessError"/>
8555 may be used to get more details about the failure. If the state of the
8556 medium is <link to="MediaState_LockedRead"/> or
8557 <link to="MediaState_LockedWrite"/> then it remains the same, and a
8558 non-null value of <link to="#lastAccessError"/> will indicate a failed
8559 accessibility check in this case.
8560
8561 Note that not all media states are applicable to all media types.
8562 For example, states <link to="MediaState_NotCreated"/>,
8563 <link to="MediaState_LockedWrite"/>, <link to="MediaState_Creating"/>,
8564 <link to="MediaState_Deleting"/> are meaningless for IDVDImage and
8565 IFloppyImage media.
8566 </desc>
8567 </attribute>
8568
8569 <attribute name="location" type="wstring">
8570 <desc>
8571 Location of the storage unit holding media data.
8572
8573 The format of the location string is media type specific. For media
8574 types using regular files in a host's file system, the location
8575 string is the full file name.
8576
8577 Some media types may support changing the storage unit location by
8578 simply changing the value of this property. If this operation is not
8579 supported, the implementation will return E_NOTIMPL in attempt to set
8580 this attribute's value.
8581
8582 When setting a value of the location attribute which is a regular file
8583 in the host's file system, the given file name may be either relative to
8584 the <link to="IVirtualBox::homeFolder">VirtualBox home folder</link> or
8585 absolute. Note that if the given location specification does not contain
8586 the file extension part then a proper default extension will be
8587 automatically appended by the implementation depending on the media type.
8588 </desc>
8589 </attribute>
8590
8591 <attribute name="name" type="wstring" readonly="yes">
8592 <desc>
8593 Name of the storage unit holding media data.
8594
8595 The returned string is a short version of the <link to="#location"/>
8596 attribute that is suitable for representing the medium in situations
8597 where the full location specification is too long (such as lists
8598 and comboboxes in GUI frontends). This string is also used by frontends
8599 to sort the media list alphabetically when needed.
8600
8601 For example, for locations that are regular files in the host's file
8602 system, the value of this attribute is just the file name (+ extension),
8603 without the path specification.
8604
8605 Note that as opposed to the <link to="#location"/> attribute, the name
8606 attribute will not necessary be unique for a list of media of the
8607 given type and format.
8608 </desc>
8609 </attribute>
8610
8611 <attribute name="size" type="unsigned long long" readonly="yes">
8612 <desc>
8613 Physical size of the storage unit used to hold media data (in bytes).
8614
8615 <note>
8616 For media whose <link to="#state"/> is <link
8617 to="MediaState_Inaccessible"/>, the value of this property is the
8618 last known size. For <link to="MediaState_NotCreated"/> media,
8619 the returned value is zero.
8620 </note>
8621 </desc>
8622 </attribute>
8623
8624 <attribute name="lastAccessError" type="wstring" readonly="yes">
8625 <desc>
8626 Text message that represents the result of the last accessibility
8627 check.
8628
8629 Accessibility checks are performed each time the <link to="#state"/>
8630 attribute is read. A @c null string is returned if the last
8631 accessibility check was successful. A non-null string indicates a
8632 failure and should normally describe a reason of the failure (for
8633 example, a file read error).
8634 </desc>
8635 </attribute>
8636
8637 <attribute name="machineIds" type="wstring" safearray="yes" readonly="yes">
8638 <desc>
8639 Array of UUIDs of all machines this medium is attached to.
8640
8641 A <tt>null</tt> array is returned if this medium is not attached to any
8642 machine or to any machine's snapshot.
8643
8644 <note>
8645 The returned array will include a machine even if this medium is not
8646 attached to that machine in the current state but attached to it in
8647 one of the machine's snapshots. See <link to="#getSnapshotIds"/> for
8648 details.
8649 </note>
8650 </desc>
8651 </attribute>
8652
8653 <method name="getSnapshotIds">
8654 <desc>
8655 Returns an array of UUIDs of all snapshots of the given machine where
8656 this medium is attached to.
8657
8658 If the medium is attached to the machine in the current state, then the
8659 first element in the array will always be the ID of the queried machine
8660 (i.e. the value equal to the @c machineId argument), followed by
8661 snapshot IDs (if any).
8662
8663 If the medium is not attached to the machine in the current state, then
8664 the array will contain only snapshot IDs.
8665
8666 The returned array may be <tt>null</tt> if this medium is not attached
8667 to the given machine at all, neither in the current state nor in one of
8668 the snapshots.
8669 </desc>
8670 <param name="machineId" type="wstring" dir="in">
8671 <desc>
8672 UUID of the machine to query.
8673 </desc>
8674 </param>
8675 <param name="snapshotIds" type="wstring" safearray="yes" dir="return">
8676 <desc>
8677 Array of snapshot UUIDs of the given machine using this medium.
8678 </desc>
8679 </param>
8680 </method>
8681
8682 <method name="lockRead">
8683 <desc>
8684 Locks this medium for reading.
8685
8686 The read lock is shared: many clients can simultaneously lock the
8687 same media for reading unless it is already locked for writing (see
8688 <link to="#lockWrite"/>) in which case an error is returned.
8689
8690 When the medium is locked for reading, it cannot be modified
8691 from within VirtualBox. This means that any method that changes
8692 the properties of this medium or contents of the storage unit
8693 will return an error (unless explicitly stated otherwise) and
8694 that an attempt to start a virtual machine that wants to modify
8695 the medium will also fail.
8696
8697 When the virtual machine is started up, it locks for reading all
8698 media it uses in read-only mode. If some media cannot be locked
8699 for reading, the startup procedure will fail.
8700
8701 The medium locked for reading must be unlocked using the <link
8702 to="#unlockRead"/> method. Calls to <link to="#lockRead"/>
8703 can be nested and must be followed by the same number of paired
8704 <link to="#unlockRead"/> calls.
8705
8706 This method sets the media state to <link
8707 to="MediaState_LockedRead" /> on success. The state prior to
8708 this call must be <link to="MediaState_Created" />,
8709 <link to="MediaState_Inaccessible" /> or
8710 <link to="MediaState_LockedRead" />.
8711 As you can see, inaccessible media can be locked too. This is
8712 not an error; this method performs a logical lock that prevents
8713 modifications of this media through the VirtualBox API, not a
8714 physical lock of the underlying storage unit.
8715
8716 This method returns the current state of the medium
8717 <b>before</b> the operation.
8718
8719 <result name="VBOX_E_INVALID_OBJECT_STATE">
8720 Invalid media state (e.g. not created, locked, inaccessible,
8721 creating, deleting).
8722 </result>
8723
8724 </desc>
8725 <param name="state" type="MediaState" dir="return">
8726 <desc>
8727 State of the medium after the operation.
8728 </desc>
8729 </param>
8730 </method>
8731
8732 <method name="unlockRead">
8733 <desc>
8734 Cancels the read lock previously set by <link to="#lockRead"/>.
8735
8736 For both, success and failure, this method returns the current state
8737 of the medium <b>after</b> the operation.
8738
8739 See <link to="#lockRead"/> for more details.
8740
8741 <result name="VBOX_E_INVALID_OBJECT_STATE">
8742 Medium not locked for reading.
8743 </result>
8744
8745 </desc>
8746 <param name="state" type="MediaState" dir="return">
8747 <desc>
8748 State of the medium after the operation.
8749 </desc>
8750 </param>
8751 </method>
8752
8753 <method name="lockWrite">
8754 <desc>
8755 Locks this medium for writing.
8756
8757 The write lock, as opposed to <link to="#lockRead"/>, is
8758 exclusive: there may be only one client holding a write lock
8759 and there may be no read locks while the write lock is held.
8760
8761 When the medium is locked for writing, it cannot be modified
8762 from within VirtualBox and it is not guaranteed that the values
8763 of its properties are up-to-date. Any method that changes the
8764 properties of this medium or contents of the storage unit will
8765 return an error (unless explicitly stated otherwise) and an
8766 attempt to start a virtual machine wanting to modify or to
8767 read the medium will fail.
8768
8769 When the virtual machine is started up, it locks for writing all
8770 media it uses to write data to. If any medium could not be locked
8771 for writing, the startup procedure will fail.
8772
8773 The medium locked for writing must be unlocked using the <link
8774 to="#unlockWrite"/> method. Calls to <link to="#lockWrite"/>
8775 can <b>not</b> be nested and must be followed by a<link
8776 to="#unlockWrite"/> call before the next lockWrite call.
8777
8778 This method sets the media state to <link to="MediaState_LockedWrite" />
8779 on success. The state prior to this call must be <link to="MediaState_Created"/>
8780 or <link to="MediaState_Inaccessible"/>. As you can see, inaccessible
8781 media can be locked too. This is not an error; this method
8782 performs a logical lock preventing modifications of this
8783 media through the VirtualBox API, not a physical lock of the
8784 underlying storage unit.
8785
8786 For both, success and failure, this method returns the current
8787 state of the medium <b>before</b> the operation.
8788
8789 <result name="VBOX_E_INVALID_OBJECT_STATE">
8790 Invalid media state (e.g. not created, locked, inaccessible,
8791 creating, deleting).
8792 </result>
8793
8794 </desc>
8795 <param name="state" type="MediaState" dir="return">
8796 <desc>
8797 State of the medium after the operation.
8798 </desc>
8799 </param>
8800 </method>
8801
8802 <method name="unlockWrite">
8803 <desc>
8804 Cancels the write lock previously set by <link to="#lockWrite"/>.
8805
8806 For both, success and failure, this method returns the current
8807 state of the medium <b>after</b> the operation.
8808
8809 See <link to="#lockWrite"/> for more details.
8810
8811 <result name="VBOX_E_INVALID_OBJECT_STATE">
8812 Medium not locked for writing.
8813 </result>
8814
8815 </desc>
8816 <param name="state" type="MediaState" dir="return">
8817 <desc>
8818 State of the medium after the operation.
8819 </desc>
8820 </param>
8821 </method>
8822
8823 <method name="close">
8824 <desc>
8825 Closes this medium.
8826
8827 The hard disk must not be attached to any known virtual machine
8828 and must not have any known child hard disks, otherwise the
8829 operation will fail.
8830
8831 When the hard disk is successfully closed, it gets removed from
8832 the list of remembered hard disks, but its storage unit is not
8833 deleted. In particular, this means that this hard disk can be
8834 later opened again using the <link
8835 to="IVirtualBox::openHardDisk"/> call.
8836
8837 Note that after this method successfully returns, the given hard
8838 disk object becomes uninitialized. This means that any attempt
8839 to call any of its methods or attributes will fail with the
8840 <tt>"Object not ready" (E_ACCESSDENIED)</tt> error.
8841
8842 <result name="VBOX_E_INVALID_OBJECT_STATE">
8843 Invalid media state (other than not created, created or
8844 inaccessible).
8845 </result>
8846 <result name="VBOX_E_OBJECT_IN_USE">
8847 Medium attached to virtual machine.
8848 </result>
8849 <result name="VBOX_E_FILE_ERROR">
8850 Settings file not accessible.
8851 </result>
8852 <result name="VBOX_E_XML_ERROR">
8853 Could not parse the settings file.
8854 </result>
8855
8856 </desc>
8857 </method>
8858
8859 </interface>
8860
8861
8862 <!--
8863 // IHardDisk
8864 /////////////////////////////////////////////////////////////////////////
8865 -->
8866
8867 <enum
8868 name="HardDiskType"
8869 uuid="a348fafd-a64e-4643-ba65-eb3896bd7e0a"
8870 >
8871 <desc>
8872 Virtual hard disk type.
8873 <see>IHardDisk</see>
8874 </desc>
8875
8876 <const name="Normal" value="0">
8877 <desc>
8878 Normal hard disk (attached directly or indirectly, preserved
8879 when taking snapshots).
8880 </desc>
8881 </const>
8882 <const name="Immutable" value="1">
8883 <desc>
8884 Immutable hard disk (attached indirectly, changes are wiped out
8885 after powering off the virtual machine).
8886 </desc>
8887 </const>
8888 <const name="Writethrough" value="2">
8889 <desc>
8890 Write through hard disk (attached directly, ignored when
8891 taking snapshots).
8892 </desc>
8893 </const>
8894 </enum>
8895
8896 <enum
8897 name="HardDiskVariant"
8898 uuid="eb7fc6b3-ae23-4c5d-a1f6-e3522dd1efb0"
8899 >
8900 <desc>
8901 Virtual hard disk image variant. More than one flag may be set.
8902 <see>IHardDisk</see>
8903 </desc>
8904
8905 <const name="Standard" value="0">
8906 <desc>
8907 No particular variant requested, results in using the backend default.
8908 </desc>
8909 </const>
8910 <const name="VmdkSplit2G" value="0x01">
8911 <desc>
8912 VMDK image split in chunks of less than 2GByte.
8913 </desc>
8914 </const>
8915 <const name="VmdkStreamOptimized" value="0x04">
8916 <desc>
8917 VMDK streamOptimized image. Special import/export format which is
8918 read-only/append-only.
8919 </desc>
8920 </const>
8921 <const name="VmdkESX" value="0x08">
8922 <desc>
8923 VMDK format variant used on ESX products.
8924 </desc>
8925 </const>
8926 <const name="Fixed" value="0x10000">
8927 <desc>
8928 Fixed image. Only allowed for base images.
8929 </desc>
8930 </const>
8931 <const name="Diff" value="0x20000">
8932 <desc>
8933 Fixed image. Only allowed for base images.
8934 </desc>
8935 </const>
8936 </enum>
8937
8938 <interface
8939 name="IHardDiskAttachment" extends="$unknown"
8940 uuid="b1dd04bb-93c0-4ad3-a9cf-82316e595836"
8941 wsmap="struct"
8942 >
8943 <desc>
8944 The IHardDiskAttachment interface represents a hard disk attachment of a
8945 virtual machine.
8946
8947 Every hard disk attachment specifies a slot of the virtual hard disk
8948 controller and a virtual hard disk attached to this slot.
8949
8950 The array of hard disk attachments is returned by
8951 <link to="IMachine::hardDiskAttachments"/>.
8952 </desc>
8953 <attribute name="hardDisk" type="IHardDisk" readonly="yes">
8954 <desc>Hard disk object associated with this attachment.</desc>
8955 </attribute>
8956
8957 <attribute name="controller" type="wstring" readonly="yes">
8958 <desc>Interface bus of this attachment.</desc>
8959 </attribute>
8960
8961 <attribute name="port" type="long" readonly="yes">
8962 <desc>Port number of this attachment.</desc>
8963 </attribute>
8964
8965 <attribute name="device" type="long" readonly="yes">
8966 <desc>Device slot number of this attachment.</desc>
8967 </attribute>
8968
8969 </interface>
8970
8971 <interface
8972 name="IHardDisk" extends="IMedium"
8973 uuid="62551115-83b8-4d20-925f-79e9d3c00f96"
8974 wsmap="managed"
8975 >
8976 <desc>
8977 The IHardDisk interface represents a virtual hard disk drive
8978 used by a virtual machine. This is a subclass of <link to="IMedium" />; see remarks there.
8979
8980 Virtual hard disk objects virtualize the hard disk hardware and look like
8981 regular hard disks for the guest OS running inside the virtual machine.
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 big 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 storage unit and therefore can be
8997 used independently. On the contrary, a differencing hard disk contains
8998 only some part of the hard disk data (a subset of sectors) and needs
8999 another hard disk to get access to the missing sectors of data. This
9000 another hard disk is called a <i>parent</i> hard disk and defines a hard
9001 disk to which this differencing hard disk is known to be <i>linked to</i>.
9002 The parent hard disk may be itself a differencing hard disk. This
9003 way, differencing hard disks form a linked hard disk chain. This chain
9004 always ends with the base hard disk which is sometimes referred to as the
9005 root hard disk of this chain. Note that several differencing hard disks
9006 may be linked to the same parent hard disk. This way, all known hard disks
9007 form a hard disk tree which is based on their parent-child relationship.
9008
9009 Differencing hard disks can be distinguished from base hard disks by
9010 querying the <link to="#parent"/> attribute: base hard disks do not have
9011 parents they would depend on, so the value of this attribute is always
9012 <tt>null</tt> for them. Using this attribute, it is possible to walk up
9013 the hard disk tree (from the child hard disk to its parent). It is also
9014 possible to walk down the tree using the <link to="#children"/>
9015 attribute.
9016
9017 Note that the type of all differencing hard disks is
9018 <link to="HardDiskType_Normal">Normal</link>; all other values are
9019 meaningless for them. Base hard disks may be of any type.
9020
9021 <h3>Creating Hard Disks</h3>
9022
9023 New base hard disks are created using
9024 <link to="IVirtualBox::createHardDisk"/>. Existing hard disks are
9025 opened using <link to="IVirtualBox::openHardDisk"/>. Differencing hard
9026 disks are usually implicitly created by VirtualBox when needed but may
9027 also be created explicitly using <link to="#createDiffStorage"/>.
9028
9029 After the hard disk is successfully created (including the storage unit)
9030 or opened, it becomes a known hard disk (remembered in the internal media
9031 registry). Known hard disks can be attached to a virtual machine, accessed
9032 through <link to="IVirtualBox::getHardDisk"/> and
9033 <link to="IVirtualBox::findHardDisk"/> methods or enumerated using the
9034 <link to="IVirtualBox::hardDisks"/> array (only for base hard disks).
9035
9036 The following methods, besides <link to="IMedium::close"/>,
9037 automatically remove the hard disk from the media registry:
9038 <ul>
9039 <li><link to="#deleteStorage"/></li>
9040 <li><link to="#mergeTo"/></li>
9041 </ul>
9042
9043 If the storage unit of the hard disk is a regular file in the host's
9044 file system then the rules stated in the description of the
9045 <link to="IMedium::location"/> attribute apply when setting its value. In
9046 addition, a plain file name without any path may be given, in which case
9047 the <link to="ISystemProperties::defaultHardDiskFolder"> default hard disk
9048 folder</link> will be prepended to it.
9049
9050 <h4>Automatic composition of the file name part</h4>
9051
9052 Another extension to the <link to="IMedium::location"/> attribute is that
9053 there is a possibility to cause VirtualBox to compose a unique value for
9054 the file name part of the location using the UUID of the hard disk. This
9055 applies only to hard disks in <link to="MediaState_NotCreated"/> state,
9056 e.g. before the storage unit is created, and works as follows. You set the
9057 value of the <link to="IMedium::location"/> attribute to a location
9058 specification which only contains the path specification but not the file
9059 name part and ends with either a forward slash or a backslash character.
9060 In response, VirtualBox will generate a new UUID for the hard disk and
9061 compose the file name using the following pattern:
9062 <pre>
9063 &lt;path&gt;/{&lt;uuid&gt;}.&lt;ext&gt;
9064 </pre>
9065 where <tt>&lt;path&gt;</tt> is the supplied path specification,
9066 <tt>&lt;uuid&gt;</tt> is the newly generated UUID and <tt>&lt;ext&gt;</tt>
9067 is the default extension for the storage format of this hard disk. After
9068 that, you may call any of the methods that create a new hard disk storage
9069 unit and they will use the generated UUID and file name.
9070
9071 <h3>Attaching Hard Disks</h3>
9072
9073 Hard disks are attached to virtual machines using the
9074 <link to="IMachine::attachHardDisk"/> method and detached using the
9075 <link to="IMachine::detachHardDisk"/> method. Depending on their
9076 <link to="#type"/>, hard disks are attached either
9077 <i>directly</i> or <i>indirectly</i>.
9078
9079 When a hard disk is being attached directly, it is associated with the
9080 virtual machine and used for hard disk operations when the machine is
9081 running. When a hard disk is being attached indirectly, a new differencing
9082 hard disk linked to it is implicitly created and this differencing hard
9083 disk is associated with the machine and used for hard disk operations.
9084 This also means that if <link to="IMachine::attachHardDisk"/> performs
9085 a direct attachment then the same hard disk will be returned in response
9086 to the subsequent <link to="IMachine::getHardDisk"/> call; however if
9087 an indirect attachment is performed then
9088 <link to="IMachine::getHardDisk"/> will return the implicitly created
9089 differencing hard disk, not the original one passed to <link
9090 to="IMachine::attachHardDisk"/>. The following table shows the
9091 dependency of the attachment type on the hard disk type:
9092
9093 <table>
9094 <tr>
9095 <th>Hard Disk Type</th>
9096 <th>Direct or Indirect?</th>
9097 </tr>
9098 <tr>
9099 <td>Normal (Base)</td>
9100 <td>
9101 Normal base hard disks that do not have children (i.e. differencing
9102 hard disks linked to them) and that are not already attached to
9103 virtual machines in snapshots are attached <b>directly</b>.
9104 Otherwise, they are attached <b>indirectly</b> because having
9105 dependent children or being part of the snapshot makes it impossible
9106 to modify hard disk contents without breaking the integrity of the
9107 dependent party. The <link to="#readOnly"/> attribute allows to
9108 quickly determine the kind of the attachment for the given hard
9109 disk. Note that if a normal base hard disk is to be indirectly
9110 attached to a virtual machine with snapshots then a special
9111 procedure called <i>smart attachment</i> is performed (see below).
9112 </td>
9113 </tr>
9114 <tr>
9115 <td>Normal (Differencing)</td>
9116 <td>
9117 Differencing hard disks are like normal base hard disks: attached
9118 <b>directly</b> if they do not have children and are not attached to
9119 virtual machines in snapshots, and <b>indirectly</b> otherwise. Note
9120 that the smart attachment procedure is never performed for
9121 differencing hard disks.
9122 </td>
9123 </tr>
9124 <tr>
9125 <td>Immutable</td>
9126 <td>
9127 Immutable hard disks are always attached <b>indirectly</b> because
9128 they are designed to be non-writable. If an immutable hard disk is
9129 attached to a virtual machine with snapshots then a special
9130 procedure called smart attachment is performed (see below).
9131 </td>
9132 </tr>
9133 <tr>
9134 <td>Writethrough</td>
9135 <td>
9136 Writethrough hard disks are always attached <b>directly</b>, also as
9137 designed. This also means that writethrough hard disks cannot have
9138 other hard disks linked to them at all.
9139 </td>
9140 </tr>
9141 </table>
9142
9143 Note that the same hard disk, regardless of its type, may be attached to
9144 more than one virtual machine at a time. In this case, the machine that is
9145 started first gains exclusive access to the hard disk and attempts to
9146 start other machines having this hard disk attached will fail until the
9147 first machine is powered down.
9148
9149 Detaching hard disks is performed in a <i>deferred</i> fashion. This means
9150 that the given hard disk remains associated with the given machine after a
9151 successful <link to="IMachine::detachHardDisk"/> call until
9152 <link to="IMachine::saveSettings"/> is called to save all changes to
9153 machine settings to disk. This deferring is necessary to guarantee that
9154 the hard disk configuration may be restored at any time by a call to
9155 <link to="IMachine::discardSettings"/> before the settings
9156 are saved (committed).
9157
9158 Note that if <link to="IMachine::discardSettings"/> is called after
9159 indirectly attaching some hard disks to the machine but before a call to
9160 <link to="IMachine::saveSettings"/> is made, it will implicitly delete
9161 all differencing hard disks implicitly created by
9162 <link to="IMachine::attachHardDisk"/> for these indirect attachments.
9163 Such implicitly created hard disks will also be immediately deleted when
9164 detached explicitly using the <link to="IMachine::detachHardDisk"/>
9165 call if it is made before <link to="IMachine::saveSettings"/>. This
9166 implicit deletion is safe because newly created differencing hard
9167 disks do not contain any user data.
9168
9169 However, keep in mind that detaching differencing hard disks that were
9170 implicitly created by <link to="IMachine::attachHardDisk"/>
9171 before the last <link to="IMachine::saveSettings"/> call will
9172 <b>not</b> implicitly delete them as they may already contain some data
9173 (for example, as a result of virtual machine execution). If these hard
9174 disks are no more necessary, the caller can always delete them explicitly
9175 using <link to="#deleteStorage"/> after they are actually de-associated
9176 from this machine by the <link to="IMachine::saveSettings"/> call.
9177
9178 <h3>Smart Attachment</h3>
9179
9180 When normal base or immutable hard disks are indirectly attached to a
9181 virtual machine then some additional steps are performed to make sure the
9182 virtual machine will have the most recent "view" of the hard disk being
9183 attached. These steps include walking through the machine's snapshots
9184 starting from the current one and going through ancestors up to the first
9185 snapshot. Hard disks attached to the virtual machine in all
9186 of the encountered snapshots are checked whether they are descendants of
9187 the given normal base or immutable hard disk. The first found child (which
9188 is the differencing hard disk) will be used instead of the normal base or
9189 immutable hard disk as a parent for creating a new differencing hard disk
9190 that will be actually attached to the machine. And only if no descendants
9191 are found or if the virtual machine does not have any snapshots then the
9192 normal base or immutable hard disk will be used itself as a parent for
9193 this differencing hard disk.
9194
9195 It is easier to explain what smart attachment does using the
9196 following example:
9197 <pre>
9198BEFORE attaching B.vdi: AFTER attaching B.vdi:
9199
9200Snapshot 1 (B.vdi) Snapshot 1 (B.vdi)
9201 Snapshot 2 (D1->B.vdi) Snapshot 2 (D1->B.vdi)
9202 Snapshot 3 (D2->D1.vdi) Snapshot 3 (D2->D1.vdi)
9203 Snapshot 4 (none) Snapshot 4 (none)
9204 CurState (none) CurState (D3->D2.vdi)
9205
9206 NOT
9207 ...
9208 CurState (D3->B.vdi)
9209 </pre>
9210 The first column is the virtual machine configuration before the base hard
9211 disk <tt>B.vdi</tt> is attached, the second column shows the machine after
9212 this hard disk is attached. Constructs like <tt>D1->B.vdi</tt> and similar
9213 mean that the hard disk that is actually attached to the machine is a
9214 differencing hard disk, <tt>D1.vdi</tt>, which is linked to (based on)
9215 another hard disk, <tt>B.vdi</tt>.
9216
9217 As we can see from the example, the hard disk <tt>B.vdi</tt> was detached
9218 from the machine before taking Snapshot 4. Later, after Snapshot 4 was
9219 taken, the user decides to attach <tt>B.vdi</tt> again. <tt>B.vdi</tt> has
9220 dependent child hard disks (<tt>D1.vdi</tt>, <tt>D2.vdi</tt>), therefore
9221 it cannot be attached directly and needs an indirect attachment (i.e.
9222 implicit creation of a new differencing hard disk). Due to the smart
9223 attachment procedure, the new differencing hard disk
9224 (<tt>D3.vdi</tt>) will be based on <tt>D2.vdi</tt>, not on
9225 <tt>B.vdi</tt> itself, since <tt>D2.vdi</tt> is the most recent view of
9226 <tt>B.vdi</tt> existing for this snapshot branch of the given virtual
9227 machine.
9228
9229 Note that if there is more than one descendant hard disk of the given base
9230 hard disk found in a snapshot, and there is an exact device, channel and
9231 bus match, then this exact match will be used. Otherwise, the youngest
9232 descendant will be picked up.
9233
9234 There is one more important aspect of the smart attachment procedure which
9235 is not related to snapshots at all. Before walking through the snapshots
9236 as described above, the backup copy of the current list of hard disk
9237 attachment is searched for descendants. This backup copy is created when
9238 the hard disk configuration is changed for the first time after the last
9239 <link to="IMachine::saveSettings"/> call and used by
9240 <link to="IMachine::discardSettings"/> to undo the recent hard disk
9241 changes. When such a descendant is found in this backup copy, it will be
9242 simply re-attached back, without creating a new differencing hard disk for
9243 it. This optimization is necessary to make it possible to re-attach the
9244 base or immutable hard disk to a different bus, channel or device slot
9245 without losing the contents of the differencing hard disk actually
9246 attached to the machine in place of it.
9247 </desc>
9248
9249 <attribute name="format" type="wstring" readonly="yes">
9250 <desc>
9251 Storage format of this hard disk.
9252
9253 The value of this attribute is a string that specifies a backend used to
9254 store hard disk data. The storage format is defined when you create a
9255 new hard disk or automatically detected when you open an existing hard
9256 disk medium, and cannot be changed later.
9257
9258 The list of all storage formats supported by this VirtualBox
9259 installation can be obtained using
9260 <link to="ISystemProperties::hardDiskFormats"/>.
9261 </desc>
9262 </attribute>
9263
9264 <attribute name="type" type="HardDiskType">
9265 <desc>
9266 Type (role) of this hard disk.
9267
9268 The following constraints apply when changing the value of this
9269 attribute:
9270 <ul>
9271 <li>If a hard disk is attached to a virtual machine (either in the
9272 current state or in one of the snapshots), its type cannot be
9273 changed.
9274 </li>
9275 <li>As long as the hard disk has children, its type cannot be set
9276 to <link to="HardDiskType_Writethrough"/>.
9277 </li>
9278 <li>The type of all differencing hard disks is
9279 <link to="HardDiskType_Normal"/> and cannot be changed.
9280 </li>
9281 </ul>
9282
9283 The type of a newly created or opened hard disk is set to
9284 <link to="HardDiskType_Normal"/>.
9285 </desc>
9286 </attribute>
9287
9288 <attribute name="parent" type="IHardDisk" readonly="yes">
9289 <desc>
9290 Parent of this hard disk (a hard disk this hard disk is directly based
9291 on).
9292
9293 Only differencing hard disks have parents. For base (non-differencing)
9294 hard disks, <tt>null</tt> is returned.
9295 </desc>
9296 </attribute>
9297
9298 <attribute name="children" type="IHardDisk" safearray="yes" readonly="yes">
9299 <desc>
9300 Children of this hard disk (all differencing hard disks directly based
9301 on this hard disk). A <tt>null</tt> array is returned if this hard disk
9302 does not have any children.
9303 </desc>
9304 </attribute>
9305
9306 <attribute name="root" type="IHardDisk" readonly="yes">
9307 <desc>
9308 Root hard disk of this hard disk.
9309
9310 If this is a differencing hard disk, its root hard disk is the base hard
9311 disk the given hard disk branch starts from. For all other types of hard
9312 disks, this property returns the hard disk object itself (i.e. the same
9313 object this property is read on).
9314 </desc>
9315 </attribute>
9316
9317 <attribute name="readOnly" type="boolean" readonly="yes">
9318 <desc>
9319 Returns <tt>true</tt> if this hard disk is read-only and <tt>false</tt>
9320 otherwise.
9321
9322 A hard disk is considered to be read-only when its contents cannot be
9323 modified without breaking the integrity of other parties that depend on
9324 this hard disk such as its child hard disks or snapshots of virtual
9325 machines where this hard disk is attached to these machines. If there
9326 are no children and no such snapshots then there is no dependency and
9327 the hard disk is not read-only.
9328
9329 The value of this attribute can be used to determine the kind of the
9330 attachment that will take place when attaching this hard disk to a
9331 virtual machine. If the value is <tt>false</tt> then the hard disk will
9332 be attached directly. If the value is <tt>true</tt> then the hard disk
9333 will be attached indirectly by creating a new differencing child hard
9334 disk for that. See the interface description for more information.
9335
9336 Note that all <link to="HardDiskType_Immutable">Immutable</link> hard
9337 disks are always read-only while all
9338 <link to="HardDiskType_Writethrough">Writethrough</link> hard disks are
9339 always not.
9340
9341 <note>
9342 The read-only condition represented by this attribute is related to
9343 the hard disk type and usage, not to the current
9344 <link to="IMedium::state">media state</link> and not to the read-only
9345 state of the storage unit.
9346 </note>
9347 </desc>
9348 </attribute>
9349
9350 <attribute name="logicalSize" type="unsigned long long" readonly="yes">
9351 <desc>
9352 Logical size of this hard disk (in megabytes), as reported to the
9353 guest OS running inside the virtual machine this disk is
9354 attached to. The logical size is defined when the hard disk is created
9355 and cannot be changed later.
9356
9357 <note>
9358 Reading this property on a differencing hard disk will return the size
9359 of its <link to="#root"/> hard disk.
9360 </note>
9361 <note>
9362 For hard disks whose state is <link to="#state"/> is <link
9363 to="MediaState_Inaccessible"/>, the value of this property is the
9364 last known logical size. For <link to="MediaState_NotCreated"/> hard
9365 disks, the returned value is zero.
9366 </note>
9367 </desc>
9368 </attribute>
9369
9370 <attribute name="autoReset" type="boolean">
9371 <desc>
9372 Whether this differencing hard disk will be automatically reset each
9373 time a virtual machine it is attached to is powered up.
9374
9375 See <link to="#reset()"/> for more information about resetting
9376 differencing hard disks.
9377
9378 <note>
9379 Reading this property on a base (non-differencing) hard disk will
9380 always <tt>false</tt>. Changing the value of this property in this
9381 case is not supported.
9382 </note>
9383
9384 <result name="VBOX_E_NOT_SUPPORTED">
9385 This is not a differencing hard disk (when changing the attribute
9386 value).
9387 </result>
9388 </desc>
9389 </attribute>
9390
9391 <!-- storage methods -->
9392
9393 <method name="getProperty">
9394 <desc>
9395 Returns the value of the custom hard disk property with the given name.
9396
9397 The list of all properties supported by the given hard disk format can
9398 be obtained with <link to="IHardDiskFormat::describeProperties"/>.
9399
9400 Note that if this method returns a <tt>null</tt> @a value, the requested
9401 property is supported but currently not assigned any value.
9402
9403 <result name="VBOX_E_OBJECT_NOT_FOUND">
9404 Requested property does not exist (not supported by the format).
9405 </result>
9406 <result name="E_INVALIDARG">@a name is NULL or empty.</result>
9407 </desc>
9408 <param name="name" type="wstring" dir="in">
9409 <desc>Name of the property to get.</desc>
9410 </param>
9411 <param name="value" type="wstring" dir="return">
9412 <desc>Current property value.</desc>
9413 </param>
9414 </method>
9415
9416 <method name="setProperty">
9417 <desc>
9418 Sets the value of the custom hard disk property with the given name.
9419
9420 The list of all properties supported by the given hard disk format can
9421 be obtained with <link to="IHardDiskFormat::describeProperties"/>.
9422
9423 Note that setting the property value to <tt>null</tt> is equivalent to
9424 deleting the existing value. A default value (if it is defined for this
9425 property) will be used by the format backend in this case.
9426
9427 <result name="VBOX_E_OBJECT_NOT_FOUND">
9428 Requested property does not exist (not supported by the format).
9429 </result>
9430 <result name="E_INVALIDARG">@a name is NULL or empty.</result>
9431 </desc>
9432 <param name="name" type="wstring" dir="in">
9433 <desc>Name of the property to set.</desc>
9434 </param>
9435 <param name="value" type="wstring" dir="in">
9436 <desc>Property value to set.</desc>
9437 </param>
9438 </method>
9439
9440 <method name="getProperties">
9441 <desc>
9442 Returns values for a group of properties in one call.
9443
9444 The names of the properties to get are specified using the @a names
9445 argument which is a list of comma-separated property names or
9446 <tt>null</tt> if all properties are to be returned. Note that currently
9447 the value of this argument is ignored and the method always returns all
9448 existing properties.
9449
9450 The list of all properties supported by the given hard disk format can
9451 be obtained with <link to="IHardDiskFormat::describeProperties"/>.
9452
9453 The method returns two arrays, the array of property names corresponding
9454 to the @a names argument and the current values of these properties.
9455 Both arrays have the same number of elements with each elemend at the
9456 given index in the first array corresponds to an element at the same
9457 index in the second array.
9458
9459 Note that for properties that do not have assigned values,
9460 <tt>null</tt> is returned at the appropriate index in the
9461 @a returnValues array.
9462
9463 </desc>
9464 <param name="names" type="wstring" dir="in">
9465 <desc>
9466 Names of properties to get.
9467 </desc>
9468 </param>
9469 <param name="returnNames" type="wstring" safearray="yes" dir="out">
9470 <desc>Names of returned properties.</desc>
9471 </param>
9472 <param name="returnValues" type="wstring" safearray="yes" dir="return">
9473 <desc>Values of returned properties.</desc>
9474 </param>
9475 </method>
9476
9477 <method name="setProperties">
9478 <desc>
9479 Sets values for a group of properties in one call.
9480
9481 The names of the properties to set are passed in the @a names
9482 array along with the new values for them in the @a values array. Both
9483 arrays have the same number of elements with each elemend at the given
9484 index in the first array corresponding to an element at the same index
9485 in the second array.
9486
9487 If there is at least one property name in @a names that is not valid,
9488 the method will fail before changing the values of any other properties
9489 from the @a names array.
9490
9491 Using this method over <link to="#setProperty"/> is preferred if you
9492 need to set several properties at once since it will result into less
9493 IPC calls.
9494
9495 The list of all properties supported by the given hard disk format can
9496 be obtained with <link to="IHardDiskFormat::describeProperties"/>.
9497
9498 Note that setting the property value to <tt>null</tt> is equivalent to
9499 deleting the existing value. A default value (if it is defined for this
9500 property) will be used by the format backend in this case.
9501 </desc>
9502 <param name="names" type="wstring" safearray="yes" dir="in">
9503 <desc>Names of properties to set.</desc>
9504 </param>
9505 <param name="values" type="wstring" safearray="yes" dir="in">
9506 <desc>Values of properties to set.</desc>
9507 </param>
9508 </method>
9509
9510 <!-- storage methods -->
9511
9512 <method name="createBaseStorage">
9513 <desc>
9514 Starts creating a hard disk storage unit (fixed/dynamic, according
9515 to the variant flags) in in the background. The previous storage unit
9516 created for this object, if any, must first be deleted using
9517 <link to="#deleteStorage"/>, otherwise the operation will fail.
9518
9519 Before the operation starts, the hard disk is placed in
9520 <link to="MediaState_Creating"/> state. If the create operation
9521 fails, the media will be placed back in <link to="MediaState_NotCreated"/>
9522 state.
9523
9524 After the returned progress object reports that the operation has
9525 successfully completed, the media state will be set to <link
9526 to="MediaState_Created"/>, the hard disk will be remembered by this
9527 VirtualBox installation and may be attached to virtual machines.
9528
9529 <result name="VBOX_E_NOT_SUPPORTED">
9530 The variant of storage creation operation is not supported. See <link
9531 to="IHardDiskFormat::capabilities"/>.
9532 </result>
9533 </desc>
9534 <param name="logicalSize" type="unsigned long long" dir="in">
9535 <desc>Maximum logical size of the hard disk in megabytes.</desc>
9536 </param>
9537 <param name="variant" type="HardDiskVariant" dir="in">
9538 <desc>Exact image variant which should be created.</desc>
9539 </param>
9540 <param name="progress" type="IProgress" dir="return">
9541 <desc>Progress object to track the operation completion.</desc>
9542 </param>
9543 </method>
9544
9545 <method name="deleteStorage">
9546 <desc>
9547 Starts deleting the storage unit of this hard disk.
9548
9549 The hard disk must not be attached to any known virtual machine and must
9550 not have any known child hard disks, otherwise the operation will fail.
9551 It will also fail if there is no storage unit to delete or if deletion
9552 is already in progress, or if the hard disk is being in use (locked for
9553 read or for write) or inaccessible. Therefore, the only valid state for
9554 this operation to succeed is <link to="MediaState_Created"/>.
9555
9556 Before the operation starts, the hard disk is placed to
9557 <link to="MediaState_Deleting"/> state and gets removed from the list
9558 of remembered hard disks (media registry). If the delete operation
9559 fails, the media will be remembered again and placed back to
9560 <link to="MediaState_Created"/> state.
9561
9562 After the returned progress object reports that the operation is
9563 complete, the media state will be set to
9564 <link to="MediaState_NotCreated"/> and you will be able to use one of
9565 the storage creation methods to create it again.
9566
9567 <see>#close()</see>
9568
9569 <result name="VBOX_E_OBJECT_IN_USE">
9570 Hard disk is attached to a virtual machine.
9571 </result>
9572 <result name="VBOX_E_NOT_SUPPORTED">
9573 Storage deletion is not allowed because neither of storage creation
9574 operations are supported. See
9575 <link to="IHardDiskFormat::capabilities"/>.
9576 </result>
9577
9578 <note>
9579 If the deletion operation fails, it is not guaranteed that the storage
9580 unit still exists. You may check the <link to="IMedium::state"/> value
9581 to answer this question.
9582 </note>
9583 </desc>
9584 <param name="progress" type="IProgress" dir="return">
9585 <desc>Progress object to track the operation completion.</desc>
9586 </param>
9587 </method>
9588
9589 <!-- diff methods -->
9590
9591 <method name="createDiffStorage">
9592 <desc>
9593 Starts creating an empty differencing storage unit based on this hard
9594 disk in the format and at the location defined by the @a target
9595 argument.
9596
9597 The target hard disk must be in <link to="MediaState_NotCreated"/>
9598 state (i.e. must not have an existing storage unit). Upon successful
9599 completion, this operation will set the type of the target hard disk to
9600 <link to="HardDiskType_Normal"/> and create a storage unit necessary to
9601 represent the differencing hard disk data in the given format (according
9602 to the storage format of the target object).
9603
9604 After the returned progress object reports that the operation is
9605 successfully complete, the target hard disk gets remembered by this
9606 VirtualBox installation and may be attached to virtual machines.
9607
9608 <note>
9609 The hard disk will be set to <link to="MediaState_LockedRead"/>
9610 state for the duration of this operation.
9611 </note>
9612 <result name="VBOX_E_OBJECT_IN_USE">
9613 Hard disk not in NotCreated state.
9614 </result>
9615 </desc>
9616 <param name="target" type="IHardDisk" dir="in">
9617 <desc>Target hard disk.</desc>
9618 </param>
9619 <param name="variant" type="HardDiskVariant" dir="in">
9620 <desc>Exact image variant which should be created.</desc>
9621 </param>
9622 <param name="progress" type="IProgress" dir="return">
9623 <desc>Progress object to track the operation completion.</desc>
9624 </param>
9625 </method>
9626
9627 <method name="mergeTo">
9628 <desc>
9629 Starts merging the contents of this hard disk and all intermediate
9630 differencing hard disks in the chain to the given target hard disk.
9631
9632 The target hard disk must be either a descendant of this hard disk or
9633 its ancestor (otherwise this method will immediately return a failure).
9634 It follows that there are two logical directions of the merge operation:
9635 from ancestor to descendant (<i>forward merge</i>) and from descendant to
9636 ancestor (<i>backward merge</i>). Let us consider the following hard disk
9637 chain:
9638
9639 <pre>Base &lt;- Diff_1 &lt;- Diff_2</pre>
9640
9641 Here, calling this method on the <tt>Base</tt> hard disk object with
9642 <tt>Diff_2</tt> as an argument will be a forward merge; calling it on
9643 <tt>Diff_2</tt> with <tt>Base</tt> as an argument will be a backward
9644 merge. Note that in both cases the contents of the resulting hard disk
9645 will be the same, the only difference is the hard disk object that takes
9646 the result of the merge operation. In case of the forward merge in the
9647 above example, the result will be written to <tt>Diff_2</tt>; in case of
9648 the backward merge, the result will be written to <tt>Base</tt>. In
9649 other words, the result of the operation is always stored in the target
9650 hard disk.
9651
9652 Upon successful operation completion, the storage units of all hard
9653 disks in the chain between this (source) hard disk and the target hard
9654 disk, including the source hard disk itself, will be automatically
9655 deleted and the relevant hard disk objects (including this hard disk)
9656 will become uninitialized. This means that any attempt to call any of
9657 their methods or attributes will fail with the
9658 <tt>"Object not ready" (E_ACCESSDENIED)</tt> error. Applied to the above
9659 example, the forward merge of <tt>Base</tt> to <tt>Diff_2</tt> will
9660 delete and uninitialize both <tt>Base</tt> and <tt>Diff_1</tt> hard
9661 disks. Note that <tt>Diff_2</tt> in this case will become a base hard
9662 disk itself since it will no longer be based on any other hard disk.
9663
9664 Considering the above, all of the following conditions must be met in
9665 order for the merge operation to succeed:
9666 <ul>
9667 <li>
9668 Neither this (source) hard disk nor any intermediate
9669 differencing hard disk in the chain between it and the target
9670 hard disk is attached to any virtual machine.
9671 </li>
9672 <li>
9673 Neither the source hard disk nor the target hard disk is an
9674 <link to="HardDiskType_Immutable"/> hard disk.
9675 </li>
9676 <li>
9677 The part of the hard disk tree from the source hard disk to the
9678 target hard disk is a linear chain, i.e. all hard disks in this
9679 chain have exactly one child which is the next hard disk in this
9680 chain. The only exception from this rule is the target hard disk in
9681 the forward merge operation; it is allowed to have any number of
9682 child hard disks because the merge operation will hot change its
9683 logical contents (as it is seen by the guest OS or by children).
9684 </li>
9685 <li>
9686 None of the involved hard disks are in
9687 <link to="MediaState_LockedRead"/> or
9688 <link to="MediaState_LockedWrite"/> state.
9689 </li>
9690 </ul>
9691
9692 <note>
9693 This (source) hard disk and all intermediates will be placed to <link
9694 to="MediaState_Deleting"/> state and the target hard disk will be
9695 placed to <link to="MediaState_LockedWrite"/> state and for the
9696 duration of this operation.
9697 </note>
9698 </desc>
9699 <param name="targetId" type="wstring" dir="in">
9700 <desc>UUID of the target ancestor or descendant hard disk.</desc>
9701 </param>
9702 <param name="progress" type="IProgress" dir="return">
9703 <desc>Progress object to track the operation completion.</desc>
9704 </param>
9705 </method>
9706
9707 <!-- clone method -->
9708
9709 <method name="cloneTo">
9710 <desc>
9711 Starts creating a clone of this hard disk in the format and at the
9712 location defined by the @a target argument.
9713
9714 The target hard disk must be in <link to="MediaState_NotCreated"/>
9715 state (i.e. must not have an existing storage unit). Upon successful
9716 completion, the cloned hard disk will contain exactly the same sector
9717 data as the hard disk being cloned, except that a new UUID for the
9718 clone will be randomly generated.
9719
9720 The @a parent argument defines which hard disk will be the parent
9721 of the clone. Passing a NULL reference indicates that the clone will
9722 be a base image, i.e. completely independent. It is possible to specify
9723 an arbitrary hard disk for this parameter, including the parent of the
9724 hard disk which is being cloned. Even cloning to a child of the source
9725 hard disk is possible.
9726
9727 After the returned progress object reports that the operation is
9728 successfully complete, the target hard disk gets remembered by this
9729 VirtualBox installation and may be attached to virtual machines.
9730
9731 <note>
9732 This hard disk will be placed to <link to="MediaState_LockedRead"/>
9733 state for the duration of this operation.
9734 </note>
9735 </desc>
9736 <param name="target" type="IHardDisk" dir="in">
9737 <desc>Target hard disk.</desc>
9738 </param>
9739 <param name="variant" type="HardDiskVariant" dir="in">
9740 <desc>Exact image variant which should be created.</desc>
9741 </param>
9742 <param name="parent" type="IHardDisk" dir="in">
9743 <desc>Parent of the cloned hard disk.</desc>
9744 </param>
9745 <param name="progress" type="IProgress" dir="return">
9746 <desc>Progress object to track the operation completion.</desc>
9747 </param>
9748 </method>
9749
9750 <!-- other methods -->
9751
9752 <method name="compact">
9753 <desc>
9754 Starts compacting of this hard disk. This means that the disk is
9755 transformed into a possibly more compact storage representation.
9756 This potentially creates temporary images, which can require a
9757 substantial amount of additional disk space.
9758
9759 This hard disk will be placed to <link to="MediaState_LockedWrite"/>
9760 state and all its parent hard disks (if any) will be placed to
9761 <link to="MediaState_LockedRead"/> state for the duration of this
9762 operation.
9763
9764 Please note that the results can be either returned straight away,
9765 or later as the result of the background operation via the object
9766 returned via the @a progress parameter.
9767
9768 <result name="VBOX_E_NOT_SUPPORTED">
9769 Hard disk format does not support compacting (but potentially
9770 needs it).
9771 </result>
9772 </desc>
9773 <param name="progress" type="IProgress" dir="return">
9774 <desc>Progress object to track the operation completion.</desc>
9775 </param>
9776 </method>
9777
9778 <method name="reset">
9779 <desc>
9780 Starts erasing the contents of this differencing hard disk.
9781
9782 This operation will reset the differencing hard disk to its initial
9783 state when it does not contain any sector data and any read operation is
9784 redirected to its parent hard disk.
9785
9786 This hard disk will be placed to <link to="MediaState_LockedWrite"/>
9787 for the duration of this operation.
9788
9789 <result name="VBOX_E_NOT_SUPPORTED">
9790 This is not a differencing hard disk.
9791 </result>
9792 <result name="VBOX_E_INVALID_OBJECT_STATE">
9793 Hard disk is not in <link to="MediaState_Created"/> or
9794 <link to="MediaState_Inaccessible"/> state.
9795 </result>
9796 </desc>
9797 <param name="progress" type="IProgress" dir="return">
9798 <desc>Progress object to track the operation completion.</desc>
9799 </param>
9800 </method>
9801
9802 </interface>
9803
9804
9805 <!--
9806 // IHardDiskFormat
9807 /////////////////////////////////////////////////////////////////////////
9808 -->
9809
9810 <enum
9811 name="DataType"
9812 uuid="d90ea51e-a3f1-4a01-beb1-c1723c0d3ba7"
9813 >
9814 <const name="Int32" value="0"/>
9815 <const name="Int8" value="1"/>
9816 <const name="String" value="2"/>
9817 </enum>
9818
9819 <enum
9820 name="DataFlags"
9821 uuid="86884dcf-1d6b-4f1b-b4bf-f5aa44959d60"
9822 >
9823 <const name="None" value="0x00"/>
9824 <const name="Mandatory" value="0x01"/>
9825 <const name="Expert" value="0x02"/>
9826 <const name="Array" value="0x04"/>
9827 <const name="FlagMask" value="0x07"/>
9828 </enum>
9829
9830 <enum
9831 name="HardDiskFormatCapabilities"
9832 uuid="1df1e4aa-d25a-4ba6-b2a2-02f60eb5903b"
9833 >
9834 <desc>
9835 Hard disk format capability flags.
9836 </desc>
9837
9838 <const name="Uuid" value="0x01">
9839 <desc>
9840 Supports UUIDs as expected by VirtualBox code.
9841 </desc>
9842 </const>
9843
9844 <const name="CreateFixed" value="0x02">
9845 <desc>
9846 Supports creating fixed size images, allocating all space instantly.
9847 </desc>
9848 </const>
9849
9850 <const name="CreateDynamic" value="0x04">
9851 <desc>
9852 Supports creating dynamically growing images, allocating space on
9853 demand.
9854 </desc>
9855 </const>
9856
9857 <const name="CreateSplit2G" value="0x08">
9858 <desc>
9859 Supports creating images split in chunks of a bit less than 2 GBytes.
9860 </desc>
9861 </const>
9862
9863 <const name="Differencing" value="0x10">
9864 <desc>
9865 Supports being used as a format for differencing hard disks (see <link
9866 to="IHardDisk::createDiffStorage"/>).
9867 </desc>
9868 </const>
9869
9870 <const name="Asynchronous" value="0x20">
9871 <desc>
9872 Supports asynchronous I/O operations for at least some configurations.
9873 </desc>
9874 </const>
9875
9876 <const name="File" value="0x40">
9877 <desc>
9878 The format backend operates on files (the <link to="IMedium::location"/>
9879 attribute of the hard disk specifies a file used to store hard disk
9880 data; for a list of supported file extensions see
9881 <link to="IHardDiskFormat::fileExtensions"/>).
9882 </desc>
9883 </const>
9884
9885 <const name="Properties" value="0x80">
9886 <desc>
9887 The format backend uses the property interface to configure the storage
9888 location and properties (the <link to="IHardDiskFormat::describeProperties"/>
9889 method is used to get access to properties supported by the given hard
9890 disk format).
9891 </desc>
9892 </const>
9893
9894 <const name="CapabilityMask" value="0xFF"/>
9895 </enum>
9896
9897 <interface
9898 name="IHardDiskFormat" extends="$unknown"
9899 uuid="7f3ba790-3a0b-4a8a-bac2-bb50150123c5"
9900 wsmap="managed"
9901 >
9902 <desc>
9903 The IHardDiskFormat interface represents a virtual hard disk format.
9904
9905 Each hard disk format has an associated backend which is used to handle
9906 hard disks stored in this format. This interface provides information
9907 about the properties of the associated backend.
9908
9909 Each hard disk format is identified by a string represented by the
9910 <link to="#id"/> attribute. This string is used in calls like
9911 <link to="IVirtualBox::createHardDisk"/> to specify the desired
9912 format.
9913
9914 The list of all supported hard disk formats can be obtained using
9915 <link to="ISystemProperties::hardDiskFormats"/>.
9916
9917 <see>IHardDisk</see>
9918 </desc>
9919
9920 <attribute name="id" type="wstring" readonly="yes">
9921 <desc>
9922 Identifier of this format.
9923
9924 The format identifier is a non-null non-empty ASCII string. Note that
9925 this string is case-insensitive. This means that, for example, all of
9926 the following strings:
9927 <pre>
9928 "VDI"
9929 "vdi"
9930 "VdI"</pre>
9931 refer to the same hard disk format.
9932
9933 This string is used in methods of other interfaces where it is necessary
9934 to specify a hard disk format, such as
9935 <link to="IVirtualBox::createHardDisk"/>.
9936 </desc>
9937 </attribute>
9938
9939 <attribute name="name" type="wstring" readonly="yes">
9940 <desc>
9941 Human readable description of this format.
9942
9943 Mainly for use in file open dialogs.
9944 </desc>
9945 </attribute>
9946
9947 <attribute name="fileExtensions" type="wstring" safearray="yes" readonly="yes">
9948 <desc>
9949 Array of strings containing the supported file extensions.
9950
9951 The first extension in the array is the extension preferred by the
9952 backend. It is recommended to use this extension when specifying a
9953 location of the storage unit for a new hard disk.
9954
9955 Note that some backends do not work on files, so this array may be
9956 empty.
9957
9958 <see>IHardDiskFormat::capabilities</see>
9959 </desc>
9960 </attribute>
9961
9962 <attribute name="capabilities" type="unsigned long" readonly="yes">
9963 <desc>
9964 Capabilities of the format as a set of bit flags.
9965
9966 For the meaning of individual capability flags see
9967 <link to="HardDiskFormatCapabilities"/>.
9968 </desc>
9969 </attribute>
9970
9971 <method name="describeProperties">
9972 <desc>
9973 Returns several arrays describing the properties supported by this
9974 format.
9975
9976 An element with the given index in each array describes one
9977 property. Thus, the number of elements in each returned array is the
9978 same and corresponds to the number of supported properties.
9979
9980 The returned arrays are filled in only if the
9981 <link to="HardDiskFormatCapabilities_Properties"/> flag is set.
9982 All arguments must be non-NULL.
9983
9984 <see>DataType</see>
9985 <see>DataFlags</see>
9986 </desc>
9987
9988 <param name="names" type="wstring" safearray="yes" dir="out">
9989 <desc>Array of property names.</desc>
9990 </param>
9991 <param name="description" type="wstring" safearray="yes" dir="out">
9992 <desc>Array of property descriptions.</desc>
9993 </param>
9994 <param name="types" type="DataType" safearray="yes" dir="out">
9995 <desc>Array of property types.</desc>
9996 </param>
9997 <param name="flags" type="unsigned long" safearray="yes" dir="out">
9998 <desc>Array of property flags.</desc>
9999 </param>
10000 <param name="defaults" type="wstring" safearray="yes" dir="out">
10001 <desc>Array of default property values.</desc>
10002 </param>
10003 </method>
10004
10005 </interface>
10006
10007
10008 <!--
10009 // IFloppyImage
10010 /////////////////////////////////////////////////////////////////////////
10011 -->
10012
10013 <interface
10014 name="IFloppyImage" extends="IMedium"
10015 uuid="faa6101f-078c-4b3a-ab75-75670c8170b3"
10016 wsmap="managed"
10017 >
10018 <desc>
10019 The IFloppyImage interface represents a medium containing the image
10020 of a floppy disk. This is a subclass of <link to="IMedium" />; see remarks there.
10021 </desc>
10022
10023 </interface>
10024
10025
10026 <!--
10027 // IDVDImage
10028 /////////////////////////////////////////////////////////////////////////
10029 -->
10030
10031 <interface
10032 name="IDVDImage" extends="IMedium"
10033 uuid="b1f90bbb-e8a9-4484-9af1-3638e943f763"
10034 wsmap="managed"
10035 >
10036 <desc>
10037 The IDVDImage interface represents a medium containing the image
10038 of a CD or DVD disk in the ISO format.
10039
10040 This is a subclass of <link to="IMedium" />; see remarks there.
10041 </desc>
10042
10043 </interface>
10044
10045
10046 <!--
10047 // IDVDDrive
10048 /////////////////////////////////////////////////////////////////////////
10049 -->
10050
10051 <interface
10052 name="IDVDDrive" extends="$unknown"
10053 uuid="156944d1-4c6d-4812-8f12-ab3890767ab4"
10054 wsmap="managed"
10055 >
10056 <desc>
10057 The IDVDDrive interface represents the virtual CD/DVD drive of the
10058 virtual machine. An object of this type is returned by
10059 <link to="IMachine::DVDDrive"/>.
10060 </desc>
10061
10062 <attribute name="state" type="DriveState" readonly="yes">
10063 <desc>Current drive state.</desc>
10064 </attribute>
10065
10066 <attribute name="passthrough" type="boolean">
10067 <desc>
10068 When a host drive is mounted and passthrough is enabled
10069 the guest OS will be able to directly send SCSI commands to
10070 the host drive. This enables the guest OS to use CD/DVD writers
10071 but is potentially dangerous.
10072 </desc>
10073 </attribute>
10074
10075 <method name="mountImage">
10076 <desc>Mounts a CD/DVD image with the specified UUID.
10077
10078 <result name="VBOX_E_FILE_ERROR">
10079 Invalid image file location.
10080 </result>
10081 <result name="VBOX_E_OBJECT_NOT_FOUND">
10082 Could not find a CD/DVD image matching @a imageId.
10083 </result>
10084 <result name="VBOX_E_INVALID_OBJECT_STATE">
10085 Invalid media state.
10086 </result>
10087
10088 </desc>
10089 <param name="imageId" type="wstring" dir="in"/>
10090 </method>
10091
10092 <method name="captureHostDrive">
10093 <desc>Captures the specified host CD/DVD drive.</desc>
10094 <param name="drive" type="IHostDVDDrive" dir="in"/>
10095 </method>
10096
10097 <method name="unmount">
10098 <desc>Unmounts the currently mounted image or host drive.</desc>
10099 </method>
10100
10101 <method name="getImage">
10102 <desc>Returns the currently mounted CD/DVD image.</desc>
10103 <param name="image" type="IDVDImage" dir="return"/>
10104 </method>
10105
10106 <method name="getHostDrive">
10107 <desc>Returns the currently mounted host CD/DVD drive.</desc>
10108 <param name="drive" type="IHostDVDDrive" dir="return"/>
10109 </method>
10110
10111 </interface>
10112
10113
10114 <!--
10115 // IFloppyDrive
10116 /////////////////////////////////////////////////////////////////////////
10117 -->
10118
10119 <interface
10120 name="IFloppyDrive" extends="$unknown"
10121 uuid="a8676d38-5cf0-4b53-85b1-aa693611ab86"
10122 wsmap="managed"
10123 >
10124 <desc>
10125 The IFloppyDrive interface represents the virtual floppy drive of the
10126 virtual machine. An object of this type is returned by
10127 <link to="IMachine::floppyDrive" />.
10128 </desc>
10129
10130 <attribute name="enabled" type="boolean">
10131 <desc>
10132 Flag whether the floppy drive is enabled. If it is disabled,
10133 the floppy drive will not be reported to the guest OS.
10134 </desc>
10135 </attribute>
10136
10137 <attribute name="state" type="DriveState" readonly="yes">
10138 <desc>Current drive state.</desc>
10139 </attribute>
10140
10141 <method name="mountImage">
10142 <desc>Mounts a floppy image with the specified UUID.
10143
10144 <result name="VBOX_E_FILE_ERROR">
10145 Invalid image file location.
10146 </result>
10147 <result name="VBOX_E_OBJECT_NOT_FOUND">
10148 Could not find a floppy image matching @a imageID.
10149 </result>
10150 <result name="VBOX_E_INVALID_OBJECT_STATE">
10151 Invalid media state.
10152 </result>
10153
10154 </desc>
10155 <param name="imageId" type="wstring" dir="in"/>
10156 </method>
10157
10158 <method name="captureHostDrive">
10159 <desc>Captures the specified host floppy drive.</desc>
10160 <param name="drive" type="IHostFloppyDrive" dir="in"/>
10161 </method>
10162
10163 <method name="unmount">
10164 <desc>Unmounts the currently mounted image or host drive.</desc>
10165 </method>
10166
10167 <method name="getImage">
10168 <desc>Returns the currently mounted floppy image.</desc>
10169 <param name="image" type="IFloppyImage" dir="return"/>
10170 </method>
10171
10172 <method name="getHostDrive">
10173 <desc>Returns the currently mounted host floppy drive.</desc>
10174 <param name="drive" type="IHostFloppyDrive" dir="return"/>
10175 </method>
10176
10177 </interface>
10178
10179
10180 <!--
10181 // IKeyboard
10182 /////////////////////////////////////////////////////////////////////////
10183 -->
10184
10185 <interface
10186 name="IKeyboard" extends="$unknown"
10187 uuid="2d1a531b-4c6e-49cc-8af6-5c857b78b5d7"
10188 wsmap="managed"
10189 >
10190 <desc>
10191 The IKeyboard interface represents the virtual machine's keyboard. Used
10192 in <link to="IConsole::keyboard"/>.
10193
10194 Use this interface to send keystrokes or the Ctrl-Alt-Del sequence
10195 to the virtual machine.
10196
10197 </desc>
10198 <method name="putScancode">
10199 <desc>Sends a scancode to the keyboard.
10200
10201 <result name="VBOX_E_IPRT_ERROR">
10202 Could not send scan code to virtual keyboard.
10203 </result>
10204
10205 </desc>
10206 <param name="scancode" type="long" dir="in"/>
10207 </method>
10208
10209 <method name="putScancodes">
10210 <desc>Sends an array of scancodes to the keyboard.
10211
10212 <result name="VBOX_E_IPRT_ERROR">
10213 Could not send all scan codes to virtual keyboard.
10214 </result>
10215
10216 </desc>
10217 <param name="scancodes" type="long" dir="in" safearray="yes"/>
10218 <param name="codesStored" type="unsigned long" dir="return"/>
10219 </method>
10220
10221 <method name="putCAD">
10222 <desc>Sends the Ctrl-Alt-Del sequence to the keyboard. This
10223 function is nothing special, it is just a convenience function
10224 calling <link to="IKeyboard::putScancodes"/> with the proper scancodes.
10225
10226 <result name="VBOX_E_IPRT_ERROR">
10227 Could not send all scan codes to virtual keyboard.
10228 </result>
10229
10230 </desc>
10231 </method>
10232
10233 </interface>
10234
10235
10236 <!--
10237 // IMouse
10238 /////////////////////////////////////////////////////////////////////////
10239 -->
10240
10241 <enum
10242 name="MouseButtonState"
10243 uuid="03131722-2EC5-4173-9794-0DACA46673EF"
10244 >
10245 <desc>
10246 Mouse button state.
10247 </desc>
10248
10249 <const name="LeftButton" value="0x01"/>
10250 <const name="RightButton" value="0x02"/>
10251 <const name="MiddleButton" value="0x04"/>
10252 <const name="WheelUp" value="0x08"/>
10253 <const name="WheelDown" value="0x10"/>
10254 <const name="MouseStateMask" value="0x1F"/>
10255 </enum>
10256
10257 <interface
10258 name="IMouse" extends="$unknown"
10259 uuid="FD443EC1-0006-4F5B-9282-D72760A66916"
10260 wsmap="managed"
10261 >
10262 <desc>
10263 The IMouse interface represents the virtual machine's mouse. Used in
10264 <link to="IConsole::mouse"/>.
10265
10266 Through this interface, the virtual machine's virtual mouse can be
10267 controlled.
10268 </desc>
10269
10270 <attribute name="absoluteSupported" type="boolean" readonly="yes">
10271 <desc>
10272 Whether the guest OS supports absolute mouse pointer positioning
10273 or not.
10274 <note>
10275 VirtualBox Guest Tools need to be installed to the guest OS
10276 in order to enable absolute mouse positioning support.
10277 You can use the <link to="IConsoleCallback::onMouseCapabilityChange"/>
10278 callback to be instantly informed about changes of this attribute
10279 during virtual machine execution.
10280 </note>
10281 <see><link to="#putMouseEventAbsolute"/></see>
10282 </desc>
10283 </attribute>
10284
10285 <method name="putMouseEvent">
10286 <desc>
10287 Initiates a mouse event using relative pointer movements
10288 along x and y axis.
10289
10290 <result name="E_ACCESSDENIED">
10291 Console not powered up.
10292 </result>
10293 <result name="VBOX_E_IPRT_ERROR">
10294 Could not send mouse event to virtual mouse.
10295 </result>
10296
10297 </desc>
10298
10299 <param name="dx" type="long" dir="in">
10300 <desc>
10301 Amount of pixels the mouse should move to the right.
10302 Negative values move the mouse to the left.
10303 </desc>
10304 </param>
10305 <param name="dy" type="long" dir="in">
10306 <desc>
10307 Amount of pixels the mouse should move downwards.
10308 Negative values move the mouse upwards.
10309 </desc>
10310 </param>
10311 <param name="dz" type="long" dir="in">
10312 <desc>
10313 Amount of mouse wheel moves.
10314 Positive values describe clockwise wheel rotations,
10315 negative values describe counterclockwise rotations.
10316 </desc>
10317 </param>
10318 <param name="buttonState" type="long" dir="in">
10319 <desc>
10320 The current state of mouse buttons. Every bit represents
10321 a mouse button as follows:
10322 <table>
10323 <tr><td>Bit 0 (<tt>0x01</tt>)</td><td>left mouse button</td></tr>
10324 <tr><td>Bit 1 (<tt>0x02</tt>)</td><td>right mouse button</td></tr>
10325 <tr><td>Bit 2 (<tt>0x04</tt>)</td><td>middle mouse button</td></tr>
10326 </table>
10327 A value of <tt>1</tt> means the corresponding button is pressed.
10328 otherwise it is released.
10329 </desc>
10330 </param>
10331 </method>
10332
10333 <method name="putMouseEventAbsolute">
10334 <desc>
10335 Positions the mouse pointer using absolute x and y coordinates.
10336 These coordinates are expressed in pixels and
10337 start from <tt>[1,1]</tt> which corresponds to the top left
10338 corner of the virtual display.
10339
10340 <result name="E_ACCESSDENIED">
10341 Console not powered up.
10342 </result>
10343 <result name="VBOX_E_IPRT_ERROR">
10344 Could not send mouse event to virtual mouse.
10345 </result>
10346
10347 <note>
10348 This method will have effect only if absolute mouse
10349 positioning is supported by the guest OS.
10350 </note>
10351
10352 <see><link to="#absoluteSupported"/></see>
10353 </desc>
10354
10355 <param name="x" type="long" dir="in">
10356 <desc>
10357 X coordinate of the pointer in pixels, starting from <tt>1</tt>.
10358 </desc>
10359 </param>
10360 <param name="y" type="long" dir="in">
10361 <desc>
10362 Y coordinate of the pointer in pixels, starting from <tt>1</tt>.
10363 </desc>
10364 </param>
10365 <param name="dz" type="long" dir="in">
10366 <desc>
10367 Amount of mouse wheel moves.
10368 Positive values describe clockwise wheel rotations,
10369 negative values describe counterclockwise rotations.
10370 </desc>
10371 </param>
10372 <param name="buttonState" type="long" dir="in">
10373 <desc>
10374 The current state of mouse buttons. Every bit represents
10375 a mouse button as follows:
10376 <table>
10377 <tr><td>Bit 0 (<tt>0x01</tt>)</td><td>left mouse button</td></tr>
10378 <tr><td>Bit 1 (<tt>0x02</tt>)</td><td>right mouse button</td></tr>
10379 <tr><td>Bit 2 (<tt>0x04</tt>)</td><td>middle mouse button</td></tr>
10380 </table>
10381 A value of <tt>1</tt> means the corresponding button is pressed.
10382 otherwise it is released.
10383 </desc>
10384 </param>
10385 </method>
10386
10387 </interface>
10388
10389 <!--
10390 // IDisplay
10391 /////////////////////////////////////////////////////////////////////////
10392 -->
10393
10394 <enum
10395 name="FramebufferPixelFormat"
10396 uuid="7acfd5ed-29e3-45e3-8136-73c9224f3d2d"
10397 >
10398 <desc>
10399 Format of the video memory buffer. Constants represented by this enum can
10400 be used to test for particular values of <link
10401 to="IFramebuffer::pixelFormat"/>. See also <link
10402 to="IFramebuffer::requestResize"/>.
10403
10404 See also www.fourcc.org for more information about FOURCC pixel formats.
10405 </desc>
10406
10407 <const name="Opaque" value="0">
10408 <desc>
10409 Unknown buffer format (the user may not assume any particular format of
10410 the buffer).
10411 </desc>
10412 </const>
10413 <const name="FOURCC_RGB" value="0x32424752">
10414 <desc>
10415 Basic RGB format (<link to="IFramebuffer::bitsPerPixel"/> determines the
10416 bit layout).
10417 </desc>
10418 </const>
10419 </enum>
10420
10421 <interface
10422 name="IFramebuffer" extends="$unknown"
10423 uuid="b7ed347a-5765-40a0-ae1c-f543eb4ddeaf"
10424 wsmap="suppress"
10425 >
10426 <attribute name="address" type="octet" mod="ptr" readonly="yes">
10427 <desc>Address of the start byte of the frame buffer.</desc>
10428 </attribute>
10429
10430 <attribute name="width" type="unsigned long" readonly="yes">
10431 <desc>Frame buffer width, in pixels.</desc>
10432 </attribute>
10433
10434 <attribute name="height" type="unsigned long" readonly="yes">
10435 <desc>Frame buffer height, in pixels.</desc>
10436 </attribute>
10437
10438 <attribute name="bitsPerPixel" type="unsigned long" readonly="yes">
10439 <desc>
10440 Color depth, in bits per pixel. When <link to="#pixelFormat"/> is <link
10441 to="FramebufferPixelFormat_FOURCC_RGB">FOURCC_RGB</link>, valid values
10442 are: 8, 15, 16, 24 and 32.
10443 </desc>
10444 </attribute>
10445
10446 <attribute name="bytesPerLine" type="unsigned long" readonly="yes">
10447 <desc>
10448 Scan line size, in bytes. When <link to="#pixelFormat"/> is <link
10449 to="FramebufferPixelFormat_FOURCC_RGB">FOURCC_RGB</link>, the
10450 size of the scan line must be aligned to 32 bits.
10451 </desc>
10452 </attribute>
10453
10454 <attribute name="pixelFormat" type="unsigned long" readonly="yes">
10455 <desc>
10456 Frame buffer pixel format. It's either one of the values defined by <link
10457 to="FramebufferPixelFormat"/> or a raw FOURCC code.
10458 <note>
10459 This attribute must never return <link
10460 to="FramebufferPixelFormat_Opaque"/> -- the format of the buffer
10461 <link to="#address"/> points to must be always known.
10462 </note>
10463 </desc>
10464 </attribute>
10465
10466 <attribute name="usesGuestVRAM" type="boolean" readonly="yes">
10467 <desc>
10468 Defines whether this frame buffer uses the virtual video card's memory
10469 buffer (guest VRAM) directly or not. See <link
10470 to="IFramebuffer::requestResize"/> for more information.
10471 </desc>
10472 </attribute>
10473
10474 <attribute name="heightReduction" type="unsigned long" readonly="yes">
10475 <desc>
10476 Hint from the frame buffer about how much of the standard
10477 screen height it wants to use for itself. This information is
10478 exposed to the guest through the VESA BIOS and VMMDev interface
10479 so that it can use it for determining its video mode table. It
10480 is not guaranteed that the guest respects the value.
10481 </desc>
10482 </attribute>
10483
10484 <attribute name="overlay" type="IFramebufferOverlay" readonly="yes">
10485 <desc>
10486 An alpha-blended overlay which is superposed over the frame buffer.
10487 The initial purpose is to allow the display of icons providing
10488 information about the VM state, including disk activity, in front
10489 ends which do not have other means of doing that. The overlay is
10490 designed to controlled exclusively by IDisplay. It has no locking
10491 of its own, and any changes made to it are not guaranteed to be
10492 visible until the affected portion of IFramebuffer is updated. The
10493 overlay can be created lazily the first time it is requested. This
10494 attribute can also return NULL to signal that the overlay is not
10495 implemented.
10496 </desc>
10497 </attribute>
10498
10499 <attribute name="winId" type="unsigned long long" readonly="yes">
10500 <desc>
10501 Platform-dependent identifier of the window where context of this
10502 frame buffer is drawn, or zero if there's no such window.
10503 </desc>
10504 </attribute>
10505
10506 <method name="lock">
10507 <desc>
10508 Locks the frame buffer.
10509 Gets called by the IDisplay object where this frame buffer is
10510 bound to.
10511 </desc>
10512 </method>
10513
10514 <method name="unlock">
10515 <desc>
10516 Unlocks the frame buffer.
10517 Gets called by the IDisplay object where this frame buffer is
10518 bound to.
10519 </desc>
10520 </method>
10521
10522 <method name="notifyUpdate">
10523 <desc>
10524 Informs about an update.
10525 Gets called by the display object where this buffer is
10526 registered.
10527 </desc>
10528 <param name="x" type="unsigned long" dir="in"/>
10529 <param name="y" type="unsigned long" dir="in"/>
10530 <param name="width" type="unsigned long" dir="in"/>
10531 <param name="height" type="unsigned long" dir="in"/>
10532 </method>
10533
10534 <method name="requestResize">
10535 <desc>
10536 Requests a size and pixel format change.
10537
10538 There are two modes of working with the video buffer of the virtual
10539 machine. The <i>indirect</i> mode implies that the IFramebuffer
10540 implementation allocates a memory buffer for the requested display mode
10541 and provides it to the virtual machine. In <i>direct</i> mode, the
10542 IFramebuffer implementation uses the memory buffer allocated and owned
10543 by the virtual machine. This buffer represents the video memory of the
10544 emulated video adapter (so called <i>guest VRAM</i>). The direct mode is
10545 usually faster because the implementation gets a raw pointer to the
10546 guest VRAM buffer which it can directly use for visualizing the contents
10547 of the virtual display, as opposed to the indirect mode where the
10548 contents of guest VRAM are copied to the memory buffer provided by
10549 the implementation every time a display update occurs.
10550
10551 It is important to note that the direct mode is really fast only when
10552 the implementation uses the given guest VRAM buffer directly, for
10553 example, by blitting it to the window representing the virtual machine's
10554 display, which saves at least one copy operation comparing to the
10555 indirect mode. However, using the guest VRAM buffer directly is not
10556 always possible: the format and the color depth of this buffer may be
10557 not supported by the target window, or it may be unknown (opaque) as in
10558 case of text or non-linear multi-plane VGA video modes. In this case,
10559 the indirect mode (that is always available) should be used as a
10560 fallback: when the guest VRAM contents are copied to the
10561 implementation-provided memory buffer, color and format conversion is
10562 done automatically by the underlying code.
10563
10564 The @a pixelFormat parameter defines whether the direct mode is
10565 available or not. If @a pixelFormat is <link
10566 to="FramebufferPixelFormat_Opaque"/> then direct access to the guest
10567 VRAM buffer is not available -- the @a VRAM, @a bitsPerPixel and
10568 @a bytesPerLine parameters must be ignored and the implementation must use
10569 the indirect mode (where it provides its own buffer in one of the
10570 supported formats). In all other cases, @a pixelFormat together with
10571 @a bitsPerPixel and @a bytesPerLine define the format of the video memory
10572 buffer pointed to by the @a VRAM parameter and the implementation is
10573 free to choose which mode to use. To indicate that this frame buffer uses
10574 the direct mode, the implementation of the <link to="#usesGuestVRAM"/>
10575 attribute must return <tt>true</tt> and <link to="#address"/> must
10576 return exactly the same address that is passed in the @a VRAM parameter
10577 of this method; otherwise it is assumed that the indirect strategy is
10578 chosen.
10579
10580 The @a width and @a height parameters represent the size of the
10581 requested display mode in both modes. In case of indirect mode, the
10582 provided memory buffer should be big enough to store data of the given
10583 display mode. In case of direct mode, it is guaranteed that the given
10584 @a VRAM buffer contains enough space to represent the display mode of the
10585 given size. Note that this frame buffer's <link to="#width"/> and <link
10586 to="#height"/> attributes must return exactly the same values as
10587 passed to this method after the resize is completed (see below).
10588
10589 The @a finished output parameter determines if the implementation has
10590 finished resizing the frame buffer or not. If, for some reason, the
10591 resize cannot be finished immediately during this call, @a finished
10592 must be set to @c false, and the implementation must call
10593 <link to="IDisplay::resizeCompleted"/> after it has returned from
10594 this method as soon as possible. If @a finished is @c false, the
10595 machine will not call any frame buffer methods until
10596 <link to="IDisplay::resizeCompleted"/> is called.
10597
10598 Note that if the direct mode is chosen, the <link to="#bitsPerPixel"/>,
10599 <link to="#bytesPerLine"/> and <link to="#pixelFormat"/> attributes of
10600 this frame buffer must return exactly the same values as specified in the
10601 parameters of this method, after the resize is completed. If the
10602 indirect mode is chosen, these attributes must return values describing
10603 the format of the implementation's own memory buffer <link
10604 to="#address"/> points to. Note also that the <link to="#bitsPerPixel"/>
10605 value must always correlate with <link to="#pixelFormat"/>. Note that
10606 the <link to="#pixelFormat"/> attribute must never return <link
10607 to="FramebufferPixelFormat_Opaque"/> regardless of the selected mode.
10608
10609 <note>
10610 This method is called by the IDisplay object under the
10611 <link to="#lock"/> provided by this IFramebuffer
10612 implementation. If this method returns @c false in @a finished, then
10613 this lock is not released until
10614 <link to="IDisplay::resizeCompleted"/> is called.
10615 </note>
10616 </desc>
10617 <param name="screenId" type="unsigned long" dir="in">
10618 <desc>
10619 Logical screen number. Must be used in the corresponding call to
10620 <link to="IDisplay::resizeCompleted"/> if this call is made.
10621 </desc>
10622 </param>
10623 <param name="pixelFormat" type="unsigned long" dir="in">
10624 <desc>
10625 Pixel format of the memory buffer pointed to by @a VRAM.
10626 See also <link to="FramebufferPixelFormat"/>.
10627 </desc>
10628 </param>
10629 <param name="VRAM" type="octet" mod="ptr" dir="in">
10630 <desc>Pointer to the virtual video card's VRAM (may be @c null).</desc>
10631 </param>
10632 <param name="bitsPerPixel" type="unsigned long" dir="in">
10633 <desc>Color depth, bits per pixel.</desc>
10634 </param>
10635 <param name="bytesPerLine" type="unsigned long" dir="in">
10636 <desc>Size of one scan line, in bytes.</desc>
10637 </param>
10638 <param name="width" type="unsigned long" dir="in">
10639 <desc>Width of the guest display, in pixels.</desc>
10640 </param>
10641 <param name="height" type="unsigned long" dir="in">
10642 <desc>Height of the guest display, in pixels.</desc>
10643 </param>
10644 <param name="finished" type="boolean" dir="return">
10645 <desc>
10646 Can the VM start using the new frame buffer immediately
10647 after this method returns or it should wait for
10648 <link to="IDisplay::resizeCompleted"/>.
10649 </desc>
10650 </param>
10651 </method>
10652
10653 <method name="videoModeSupported">
10654 <desc>
10655 Returns whether the frame buffer implementation is willing to
10656 support a given video mode. In case it is not able to render
10657 the video mode (or for some reason not willing), it should
10658 return false. Usually this method is called when the guest
10659 asks the VMM device whether a given video mode is supported
10660 so the information returned is directly exposed to the guest.
10661 It is important that this method returns very quickly.
10662 </desc>
10663 <param name="width" type="unsigned long" dir="in"/>
10664 <param name="height" type="unsigned long" dir="in"/>
10665 <param name="bpp" type="unsigned long" dir="in"/>
10666 <param name="supported" type="boolean" dir="return"/>
10667 </method>
10668
10669 <method name="getVisibleRegion">
10670 <desc>
10671 Returns the visible region of this frame buffer.
10672
10673 If the @a rectangles parameter is <tt>NULL</tt> then the value of the
10674 @a count parameter is ignored and the number of elements necessary to
10675 describe the current visible region is returned in @a countCopied.
10676
10677 If @a rectangles is not <tt>NULL</tt> but @a count is less
10678 than the required number of elements to store region data, the method
10679 will report a failure. If @a count is equal or greater than the
10680 required number of elements, then the actual number of elements copied
10681 to the provided array will be returned in @a countCopied.
10682
10683 <note>
10684 The address of the provided array must be in the process space of
10685 this IFramebuffer object.
10686 </note>
10687 <note>
10688 Method not yet implemented.
10689 </note>
10690 </desc>
10691 <param name="rectangles" type="octet" mod="ptr" dir="in">
10692 <desc>Pointer to the <tt>RTRECT</tt> array to receive region data.</desc>
10693 </param>
10694 <param name="count" type="unsigned long" dir="in">
10695 <desc>Number of <tt>RTRECT</tt> elements in the @a rectangles array.</desc>
10696 </param>
10697 <param name="countCopied" type="unsigned long" dir="return">
10698 <desc>Number of elements copied to the @a rectangles array.</desc>
10699 </param>
10700 </method>
10701
10702 <method name="setVisibleRegion">
10703 <desc>
10704 Suggests a new visible region to this frame buffer. This region
10705 represents the area of the VM display which is a union of regions of
10706 all top-level windows of the guest operating system running inside the
10707 VM (if the Guest Additions for this system support this
10708 functionality). This information may be used by the frontends to
10709 implement the seamless desktop integration feature.
10710
10711 <note>
10712 The address of the provided array must be in the process space of
10713 this IFramebuffer object.
10714 </note>
10715 <note>
10716 The IFramebuffer implementation must make a copy of the provided
10717 array of rectangles.
10718 </note>
10719 <note>
10720 Method not yet implemented.
10721 </note>
10722 </desc>
10723 <param name="rectangles" type="octet" mod="ptr" dir="in">
10724 <desc>Pointer to the <tt>RTRECT</tt> array.</desc>
10725 </param>
10726 <param name="count" type="unsigned long" dir="in">
10727 <desc>Number of <tt>RTRECT</tt> elements in the @a rectangles array.</desc>
10728 </param>
10729 </method>
10730
10731 <method name="processVHWACommand">
10732 <desc>
10733 Posts a Video HW Acceleration Command to the frame buffer for processing.
10734 The commands used for 2D video acceleration (DDraw surface creation/destroying, blitting, scaling, color covnersion, overlaying, etc.)
10735 are posted from quest to the host to be processed by the host hardware.
10736
10737 <note>
10738 The address of the provided command must be in the process space of
10739 this IFramebuffer object.
10740 </note>
10741 </desc>
10742
10743 <param name="command" type="octet" mod="ptr" dir="in">
10744 <desc>Pointer to VBOXVHWACMD containing the command to execute.</desc>
10745 </param>
10746 </method>
10747
10748 </interface>
10749
10750 <interface
10751 name="IFramebufferOverlay" extends="IFramebuffer"
10752 uuid="0bcc1c7e-e415-47d2-bfdb-e4c705fb0f47"
10753 wsmap="suppress"
10754 >
10755 <desc>
10756 The IFramebufferOverlay interface represents an alpha blended overlay
10757 for displaying status icons above an IFramebuffer. It is always created
10758 not visible, so that it must be explicitly shown. It only covers a
10759 portion of the IFramebuffer, determined by its width, height and
10760 co-ordinates. It is always in packed pixel little-endian 32bit ARGB (in
10761 that order) format, and may be written to directly. Do re-read the
10762 width though, after setting it, as it may be adjusted (increased) to
10763 make it more suitable for the front end.
10764 </desc>
10765 <attribute name="x" type="unsigned long" readonly="yes">
10766 <desc>X position of the overlay, relative to the frame buffer.</desc>
10767 </attribute>
10768
10769 <attribute name="y" type="unsigned long" readonly="yes">
10770 <desc>Y position of the overlay, relative to the frame buffer.</desc>
10771 </attribute>
10772
10773 <attribute name="visible" type="boolean" readonly="no">
10774 <desc>
10775 Whether the overlay is currently visible.
10776 </desc>
10777 </attribute>
10778
10779 <attribute name="alpha" type="unsigned long" readonly="no">
10780 <desc>
10781 The global alpha value for the overlay. This may or may not be
10782 supported by a given front end.
10783 </desc>
10784 </attribute>
10785
10786 <method name="move">
10787 <desc>
10788 Changes the overlay's position relative to the IFramebuffer.
10789 </desc>
10790 <param name="x" type="unsigned long" dir="in"/>
10791 <param name="y" type="unsigned long" dir="in"/>
10792 </method>
10793
10794 </interface>
10795
10796 <interface
10797 name="IDisplay" extends="$unknown"
10798 uuid="26881797-bc98-444d-ac69-820633b93ec7"
10799 wsmap="suppress"
10800 >
10801 <desc>
10802 The IDisplay interface represents the virtual machine's display.
10803
10804 The object implementing this interface is contained in each
10805 <link to="IConsole::display"/> attribute and represents the visual
10806 output of the virtual machine.
10807
10808 The virtual display supports pluggable output targets represented by the
10809 IFramebuffer interface. Examples of the output target are a window on
10810 the host computer or an RDP session's display on a remote computer.
10811 </desc>
10812 <attribute name="width" type="unsigned long" readonly="yes">
10813 <desc>Current display width.</desc>
10814 </attribute>
10815
10816 <attribute name="height" type="unsigned long" readonly="yes">
10817 <desc>Current display height.</desc>
10818 </attribute>
10819
10820 <attribute name="bitsPerPixel" type="unsigned long" readonly="yes">
10821 <desc>
10822 Current guest display color depth. Note that this may differ
10823 from <link to="IFramebuffer::bitsPerPixel"/>.
10824 </desc>
10825 </attribute>
10826
10827 <method name="setFramebuffer">
10828 <desc>
10829 Sets the framebuffer for given screen.
10830 </desc>
10831 <param name="screenId" type="unsigned long" dir="in"/>
10832 <param name="framebuffer" type="IFramebuffer" dir="in"/>
10833 </method>
10834
10835 <method name="getFramebuffer">
10836 <desc>
10837 Queries the framebuffer for given screen.
10838 </desc>
10839 <param name="screenId" type="unsigned long" dir="in"/>
10840 <param name="framebuffer" type="IFramebuffer" dir="out"/>
10841 <param name="xOrigin" type="long" dir="out"/>
10842 <param name="yOrigin" type="long" dir="out"/>
10843 </method>
10844
10845 <method name="setVideoModeHint">
10846 <desc>
10847 Asks VirtualBox to request the given video mode from
10848 the guest. This is just a hint and it cannot be guaranteed
10849 that the requested resolution will be used. Guest Additions
10850 are required for the request to be seen by guests. The caller
10851 should issue the request and wait for a resolution change and
10852 after a timeout retry.
10853
10854 Specifying <tt>0</tt> for either @a width, @a height or @a bitsPerPixel
10855 parameters means that the corresponding values should be taken from the
10856 current video mode (i.e. left unchanged).
10857
10858 If the guest OS supports multi-monitor configuration then the @a display
10859 parameter specifies the number of the guest display to send the hint to:
10860 <tt>0</tt> is the primary display, <tt>1</tt> is the first secondary and
10861 so on. If the multi-monitor configuration is not supported, @a display
10862 must be <tt>0</tt>.
10863
10864 <result name="E_INVALIDARG">
10865 The @a display is not associated with any monitor.
10866 </result>
10867
10868 </desc>
10869 <param name="width" type="unsigned long" dir="in"/>
10870 <param name="height" type="unsigned long" dir="in"/>
10871 <param name="bitsPerPixel" type="unsigned long" dir="in"/>
10872 <param name="display" type="unsigned long" dir="in"/>
10873 </method>
10874
10875 <method name="setSeamlessMode">
10876 <desc>
10877 Enables or disables seamless guest display rendering (seamless desktop
10878 integration) mode.
10879 <note>
10880 Calling this method has no effect if <link
10881 to="IGuest::supportsSeamless"/> returns <tt>false</tt>.
10882 </note>
10883 </desc>
10884 <param name="enabled" type="boolean" dir="in"/>
10885 </method>
10886
10887 <method name="takeScreenShot">
10888 <desc>
10889 Takes a screen shot of the requested size and copies it to the
10890 32-bpp buffer allocated by the caller.
10891
10892 <result name="E_NOTIMPL">
10893 Feature not implemented.
10894 </result>
10895 <result name="VBOX_E_IPRT_ERROR">
10896 Could not take a screenshot.
10897 </result>
10898
10899 </desc>
10900 <param name="address" type="octet" mod="ptr" dir="in"/>
10901 <param name="width" type="unsigned long" dir="in"/>
10902 <param name="height" type="unsigned long" dir="in"/>
10903 </method>
10904
10905 <method name="takeScreenShotSlow">
10906 <desc>
10907 Takes guest screen shot of the requested size and returns it as
10908 an array of bytes in uncompressed 32-bit ARGB format.
10909 This API is slow, but could be the only option to get guest screenshot
10910 for scriptable languages not allowed to manipulate with addresses
10911 directly.
10912
10913 <result name="E_NOTIMPL">
10914 Feature not implemented.
10915 </result>
10916 <result name="VBOX_E_IPRT_ERROR">
10917 Could not take a screenshot.
10918 </result>
10919 </desc>
10920 <param name="width" type="unsigned long" dir="in">
10921 <desc>
10922 Desired image width.
10923 </desc>
10924 </param>
10925 <param name="height" type="unsigned long" dir="in">
10926 <desc>
10927 Desired image height.
10928 </desc>
10929 </param>
10930 <param name="screenData" type="octet" dir="out" safearray="yes">
10931 <desc>
10932 Array with resulting screen data.
10933 </desc>
10934 </param>
10935 </method>
10936
10937 <method name="drawToScreen">
10938 <desc>
10939 Draws a 32-bpp image of the specified size from the given buffer
10940 to the given point on the VM display.
10941
10942 <result name="E_NOTIMPL">
10943 Feature not implemented.
10944 </result>
10945 <result name="VBOX_E_IPRT_ERROR">
10946 Could not draw to screen.
10947 </result>
10948
10949 </desc>
10950 <param name="address" type="octet" mod="ptr" dir="in"/>
10951 <param name="x" type="unsigned long" dir="in"/>
10952 <param name="y" type="unsigned long" dir="in"/>
10953 <param name="width" type="unsigned long" dir="in"/>
10954 <param name="height" type="unsigned long" dir="in"/>
10955 </method>
10956
10957 <method name="invalidateAndUpdate">
10958 <desc>
10959 Does a full invalidation of the VM display and instructs the VM
10960 to update it.
10961
10962 <result name="VBOX_E_IPRT_ERROR">
10963 Could not invalidate and update screen.
10964 </result>
10965
10966 </desc>
10967 </method>
10968
10969 <method name="resizeCompleted">
10970 <desc>
10971 Signals that a framebuffer has completed the resize operation.
10972
10973 <result name="VBOX_E_NOT_SUPPORTED">
10974 Operation only valid for external frame buffers.
10975 </result>
10976
10977 </desc>
10978 <param name="screenId" type="unsigned long" dir="in"/>
10979 </method>
10980
10981 <method name="updateCompleted">
10982 <desc>
10983 Signals that a framebuffer has completed the update operation.
10984
10985 <result name="VBOX_E_NOT_SUPPORTED">
10986 Operation only valid for external frame buffers.
10987 </result>
10988
10989 </desc>
10990 </method>
10991
10992 <method name="completeVHWACommand">
10993 <desc>
10994 Signals that the Video HW Acceleration command has completed.
10995 </desc>
10996
10997 <param name="command" type="octet" mod="ptr" dir="in">
10998 <desc>Pointer to VBOXVHWACMD containing the completed command.</desc>
10999 </param>
11000 </method>
11001
11002 </interface>
11003
11004 <!--
11005 // INetworkAdapter
11006 /////////////////////////////////////////////////////////////////////////
11007 -->
11008
11009 <enum
11010 name="NetworkAttachmentType"
11011 uuid="44bce1ee-99f7-4e8e-89fc-80597fd9eeaf"
11012 >
11013 <desc>
11014 Network attachment type.
11015 </desc>
11016
11017 <const name="Null" value="0">
11018 <desc>Null value, also means "not attached".</desc>
11019 </const>
11020 <const name="NAT" value="1"/>
11021 <const name="Bridged" value="2"/>
11022 <const name="Internal" value="3"/>
11023 <const name="HostOnly" value="4"/>
11024 </enum>
11025
11026 <enum
11027 name="NetworkAdapterType"
11028 uuid="50c3dfd8-07ac-4a31-baac-519c828fbf97"
11029 >
11030 <desc>
11031 Network adapter type.
11032 </desc>
11033
11034 <const name="Null" value="0">
11035 <desc>Null value (never used by the API).</desc>
11036 </const>
11037 <const name="Am79C970A" value="1">
11038 <desc>AMD PCNet-PCI II network card (Am79C970A).</desc>
11039 </const>
11040 <const name="Am79C973" value="2">
11041 <desc>AMD PCNet-FAST III network card (Am79C973).</desc>
11042 </const>
11043 <const name="I82540EM" value="3">
11044 <desc>Intel PRO/1000 MT Desktop network card (82540EM).</desc>
11045 </const>
11046 <const name="I82543GC" value="4">
11047 <desc>Intel PRO/1000 T Server network card (82543GC).</desc>
11048 </const>
11049 <const name="I82545EM" value="5">
11050 <desc>Intel PRO/1000 MT Server network card (82545EM).</desc>
11051 </const>
11052 </enum>
11053
11054 <interface
11055 name="INetworkAdapter" extends="$unknown"
11056 uuid="65607a27-2b73-4d43-b4cc-0ba2c817fbde"
11057 wsmap="managed"
11058 >
11059 <desc>
11060 Represents a virtual network adapter that is attached to a virtual machine.
11061 Each virtual machine has a fixed number of network adapter slots with one
11062 instance of this attached to each of them. Call
11063 <link to="IMachine::getNetworkAdapter" /> to get the network adapter that
11064 is attached to a given slot in a given machine.
11065
11066 Each network adapter can be in one of five attachment modes, which are
11067 represented by the <link to="NetworkAttachmentType" /> enumeration;
11068 see the <link to="#attachmentType" /> attribute.
11069 </desc>
11070
11071 <attribute name="adapterType" type="NetworkAdapterType">
11072 <desc>
11073 Type of the virtual network adapter. Depending on this value,
11074 VirtualBox will provide a different virtual network hardware
11075 to the guest.
11076 </desc>
11077 </attribute>
11078
11079 <attribute name="slot" type="unsigned long" readonly="yes">
11080 <desc>
11081 Slot number this adapter is plugged into. Corresponds to
11082 the value you pass to <link to="IMachine::getNetworkAdapter"/>
11083 to obtain this instance.
11084 </desc>
11085 </attribute>
11086
11087 <attribute name="enabled" type="boolean">
11088 <desc>
11089 Flag whether the network adapter is present in the
11090 guest system. If disabled, the virtual guest hardware will
11091 not contain this network adapter. Can only be changed when
11092 the VM is not running.
11093 </desc>
11094 </attribute>
11095
11096 <attribute name="MACAddress" type="wstring">
11097 <desc>
11098 Ethernet MAC address of the adapter, 12 hexadecimal characters. When setting
11099 it to NULL, VirtualBox will generate a unique MAC address.
11100 </desc>
11101 </attribute>
11102
11103 <attribute name="attachmentType" type="NetworkAttachmentType" readonly="yes"/>
11104
11105 <attribute name="hostInterface" type="wstring">
11106 <desc>
11107 Name of the host network interface the VM is attached to.
11108 </desc>
11109 </attribute>
11110
11111 <attribute name="internalNetwork" type="wstring">
11112 <desc>
11113 Name of the internal network the VM is attached to.
11114 </desc>
11115 </attribute>
11116
11117 <attribute name="NATNetwork" type="wstring">
11118 <desc>
11119 Name of the NAT network the VM is attached to.
11120 </desc>
11121 </attribute>
11122
11123 <attribute name="cableConnected" type="boolean">
11124 <desc>
11125 Flag whether the adapter reports the cable as connected or not.
11126 It can be used to report offline situations to a VM.
11127 </desc>
11128 </attribute>
11129
11130 <attribute name="lineSpeed" type="unsigned long">
11131 <desc>
11132 Line speed reported by custom drivers, in units of 1 kbps.
11133 </desc>
11134 </attribute>
11135
11136 <attribute name="traceEnabled" type="boolean">
11137 <desc>
11138 Flag whether network traffic from/to the network card should be traced.
11139 Can only be toggled when the VM is turned off.
11140 </desc>
11141 </attribute>
11142
11143 <attribute name="traceFile" type="wstring">
11144 <desc>
11145 Filename where a network trace will be stored. If not set, VBox-pid.pcap
11146 will be used.
11147 </desc>
11148 </attribute>
11149
11150 <method name="attachToNAT">
11151 <desc>
11152 Attach the network adapter to the Network Address Translation (NAT) interface.
11153 </desc>
11154 </method>
11155
11156 <method name="attachToBridgedInterface">
11157 <desc>
11158 Attach the network adapter to a bridged host interface.
11159 </desc>
11160 </method>
11161
11162 <method name="attachToInternalNetwork">
11163 <desc>
11164 Attach the network adapter to an internal network.
11165 </desc>
11166 </method>
11167
11168 <method name="attachToHostOnlyInterface">
11169 <desc>
11170 Attach the network adapter to the host-only network.
11171 </desc>
11172 </method>
11173
11174 <method name="detach">
11175 <desc>
11176 Detach the network adapter
11177 </desc>
11178 </method>
11179 </interface>
11180
11181
11182 <!--
11183 // ISerialPort
11184 /////////////////////////////////////////////////////////////////////////
11185 -->
11186
11187 <enum
11188 name="PortMode"
11189 uuid="533b5fe3-0185-4197-86a7-17e37dd39d76"
11190 >
11191 <desc>
11192 The PortMode enumeration represents possible communication modes for
11193 the virtual serial port device.
11194 </desc>
11195
11196 <const name="Disconnected" value="0">
11197 <desc>Virtual device is not attached to any real host device.</desc>
11198 </const>
11199 <const name="HostPipe" value="1">
11200 <desc>Virtual device is attached to a host pipe.</desc>
11201 </const>
11202 <const name="HostDevice" value="2">
11203 <desc>Virtual device is attached to a host device.</desc>
11204 </const>
11205 <const name="RawFile" value="3">
11206 <desc>Virtual device is attached to a raw file.</desc>
11207 </const>
11208 </enum>
11209
11210 <interface
11211 name="ISerialPort" extends="$unknown"
11212 uuid="937f6970-5103-4745-b78e-d28dcf1479a8"
11213 wsmap="managed"
11214 >
11215
11216 <desc>
11217 The ISerialPort interface represents the virtual serial port device.
11218
11219 The virtual serial port device acts like an ordinary serial port
11220 inside the virtual machine. This device communicates to the real
11221 serial port hardware in one of two modes: host pipe or host device.
11222
11223 In host pipe mode, the #path attribute specifies the path to the pipe on
11224 the host computer that represents a serial port. The #server attribute
11225 determines if this pipe is created by the virtual machine process at
11226 machine startup or it must already exist before starting machine
11227 execution.
11228
11229 In host device mode, the #path attribute specifies the name of the
11230 serial port device on the host computer.
11231
11232 There is also a third communication mode: the disconnected mode. In this
11233 mode, the guest OS running inside the virtual machine will be able to
11234 detect the serial port, but all port write operations will be discarded
11235 and all port read operations will return no data.
11236
11237 <see>IMachine::getSerialPort</see>
11238 </desc>
11239
11240 <attribute name="slot" type="unsigned long" readonly="yes">
11241 <desc>
11242 Slot number this serial port is plugged into. Corresponds to
11243 the value you pass to <link to="IMachine::getSerialPort"/>
11244 to obtain this instance.
11245 </desc>
11246 </attribute>
11247
11248 <attribute name="enabled" type="boolean">
11249 <desc>
11250 Flag whether the serial port is enabled. If disabled,
11251 the serial port will not be reported to the guest OS.
11252 </desc>
11253 </attribute>
11254
11255 <attribute name="IOBase" type="unsigned long">
11256 <desc>Base I/O address of the serial port.</desc>
11257 </attribute>
11258
11259 <attribute name="IRQ" type="unsigned long">
11260 <desc>IRQ number of the serial port.</desc>
11261 </attribute>
11262
11263 <attribute name="hostMode" type="PortMode">
11264 <desc>
11265 How is this port connected to the host.
11266 <note>
11267 Changing this attribute may fail if the conditions for
11268 <link to="#path"/> are not met.
11269 </note>
11270 </desc>
11271 </attribute>
11272
11273 <attribute name="server" type="boolean">
11274 <desc>
11275 Flag whether this serial port acts as a server (creates a new pipe on
11276 the host) or as a client (uses the existing pipe). This attribute is
11277 used only when <link to="#hostMode"/> is PortMode_HostPipe.
11278 </desc>
11279 </attribute>
11280
11281 <attribute name="path" type="wstring">
11282 <desc>
11283 Path to the serial port's pipe on the host when <link to="ISerialPort::hostMode"/> is
11284 PortMode_HostPipe, or the host serial device name when
11285 <link to="ISerialPort::hostMode"/> is PortMode_HostDevice. For both
11286 cases, setting a @c null or empty string as the attribute's value
11287 is an error. Otherwise, the value of this property is ignored.
11288 </desc>
11289 </attribute>
11290
11291 </interface>
11292
11293 <!--
11294 // IParallelPort
11295 /////////////////////////////////////////////////////////////////////////
11296 -->
11297
11298 <interface
11299 name="IParallelPort" extends="$unknown"
11300 uuid="0c925f06-dd10-4b77-8de8-294d738c3214"
11301 wsmap="managed"
11302 >
11303
11304 <desc>
11305 The IParallelPort interface represents the virtual parallel port device.
11306
11307 The virtual parallel port device acts like an ordinary parallel port
11308 inside the virtual machine. This device communicates to the real
11309 parallel port hardware using the name of the parallel device on the host
11310 computer specified in the #path attribute.
11311
11312 Each virtual parallel port device is assigned a base I/O address and an
11313 IRQ number that will be reported to the guest operating system and used
11314 to operate the given parallel port from within the virtual machine.
11315
11316 <see>IMachine::getParallelPort</see>
11317 </desc>
11318
11319 <attribute name="slot" type="unsigned long" readonly="yes">
11320 <desc>
11321 Slot number this parallel port is plugged into. Corresponds to
11322 the value you pass to <link to="IMachine::getParallelPort"/>
11323 to obtain this instance.
11324 </desc>
11325 </attribute>
11326
11327 <attribute name="enabled" type="boolean">
11328 <desc>
11329 Flag whether the parallel port is enabled. If disabled,
11330 the parallel port will not be reported to the guest OS.
11331 </desc>
11332 </attribute>
11333
11334 <attribute name="IOBase" type="unsigned long">
11335 <desc>Base I/O address of the parallel port.</desc>
11336 </attribute>
11337
11338 <attribute name="IRQ" type="unsigned long">
11339 <desc>IRQ number of the parallel port.</desc>
11340 </attribute>
11341
11342 <attribute name="path" type="wstring">
11343 <desc>
11344 Host parallel device name. If this parallel port is enabled, setting a
11345 @c null or an empty string as this attribute's value will result into
11346 an error.
11347 </desc>
11348 </attribute>
11349
11350 </interface>
11351
11352
11353 <!--
11354 // IMachineDebugger
11355 /////////////////////////////////////////////////////////////////////////
11356 -->
11357
11358 <interface
11359 name="IMachineDebugger" extends="$unknown"
11360 uuid="b0b2a2dd-0627-4502-91c2-ddc5e77609e0"
11361 wsmap="suppress"
11362 >
11363 <method name="resetStats">
11364 <desc>
11365 Reset VM statistics.
11366 </desc>
11367 <param name="pattern" type="wstring" dir="in">
11368 <desc>The selection pattern. A bit similar to filename globbing.</desc>
11369 </param>
11370 </method>
11371
11372 <method name="dumpStats">
11373 <desc>
11374 Dumps VM statistics.
11375 </desc>
11376 <param name="pattern" type="wstring" dir="in">
11377 <desc>The selection pattern. A bit similar to filename globbing.</desc>
11378 </param>
11379 </method>
11380
11381 <method name="getStats">
11382 <desc>
11383 Get the VM statistics in a XMLish format.
11384 </desc>
11385 <param name="pattern" type="wstring" dir="in">
11386 <desc>The selection pattern. A bit similar to filename globbing.</desc>
11387 </param>
11388 <param name="withDescriptions" type="boolean" dir="in">
11389 <desc>Whether to include the descriptions.</desc>
11390 </param>
11391 <param name="stats" type="wstring" dir="out">
11392 <desc>The XML document containing the statistics.</desc>
11393 </param>
11394 </method>
11395
11396 <method name="injectNMI">
11397 <desc>
11398 Inject an NMI into a running VT-x/AMD-V VM.
11399 </desc>
11400 </method>
11401
11402 <attribute name="singlestep" type="boolean">
11403 <desc>Switch for enabling singlestepping.</desc>
11404 </attribute>
11405
11406 <attribute name="recompileUser" type="boolean">
11407 <desc>Switch for forcing code recompilation for user mode code.</desc>
11408 </attribute>
11409
11410 <attribute name="recompileSupervisor" type="boolean">
11411 <desc>Switch for forcing code recompilation for supervisor mode code.</desc>
11412 </attribute>
11413
11414 <attribute name="PATMEnabled" type="boolean">
11415 <desc>Switch for enabling and disabling the PATM component.</desc>
11416 </attribute>
11417
11418 <attribute name="CSAMEnabled" type="boolean">
11419 <desc>Switch for enabling and disabling the CSAM component.</desc>
11420 </attribute>
11421
11422 <attribute name="logEnabled" type="boolean">
11423 <desc>Switch for enabling and disabling logging.</desc>
11424 </attribute>
11425
11426 <attribute name="HWVirtExEnabled" type="boolean" readonly="yes">
11427 <desc>
11428 Flag indicating whether the VM is currently making use of CPU hardware
11429 virtualization extensions.
11430 </desc>
11431 </attribute>
11432
11433 <attribute name="HWVirtExNestedPagingEnabled" type="boolean" readonly="yes">
11434 <desc>
11435 Flag indicating whether the VM is currently making use of the nested paging
11436 CPU hardware virtualization extension.
11437 </desc>
11438 </attribute>
11439
11440 <attribute name="HWVirtExVPIDEnabled" type="boolean" readonly="yes">
11441 <desc>
11442 Flag indicating whether the VM is currently making use of the VPID
11443 VT-x extension.
11444 </desc>
11445 </attribute>
11446
11447 <attribute name="PAEEnabled" type="boolean" readonly="yes">
11448 <desc>
11449 Flag indicating whether the VM is currently making use of the Physical
11450 Address Extension CPU feature.
11451 </desc>
11452 </attribute>
11453
11454 <attribute name="virtualTimeRate" type="unsigned long">
11455 <desc>
11456 The rate at which the virtual time runs expressed as a percentage.
11457 The accepted range is 2% to 20000%.
11458 </desc>
11459 </attribute>
11460
11461 <!-- @todo method for setting log flags, groups and destination! -->
11462
11463 <attribute name="VM" type="unsigned long long" readonly="yes">
11464 <desc>
11465 Gets the VM handle. This is only for internal use while
11466 we carve the details of this interface.
11467 </desc>
11468 </attribute>
11469
11470 </interface>
11471
11472 <!--
11473 // IUSBController
11474 /////////////////////////////////////////////////////////////////////////
11475 -->
11476
11477 <interface
11478 name="IUSBController" extends="$unknown"
11479 uuid="238540fa-4b73-435a-a38e-4e1d9eab5c17"
11480 wsmap="managed"
11481 >
11482 <attribute name="enabled" type="boolean">
11483 <desc>
11484 Flag whether the USB controller is present in the
11485 guest system. If disabled, the virtual guest hardware will
11486 not contain any USB controller. Can only be changed when
11487 the VM is powered off.
11488 </desc>
11489 </attribute>
11490
11491 <attribute name="enabledEhci" type="boolean">
11492 <desc>
11493 Flag whether the USB EHCI controller is present in the
11494 guest system. If disabled, the virtual guest hardware will
11495 not contain a USB EHCI controller. Can only be changed when
11496 the VM is powered off.
11497 </desc>
11498 </attribute>
11499
11500 <attribute name="USBStandard" type="unsigned short" readonly="yes">
11501 <desc>
11502 USB standard version which the controller implements.
11503 This is a BCD which means that the major version is in the
11504 high byte and minor version is in the low byte.
11505 </desc>
11506 </attribute>
11507
11508 <attribute name="deviceFilters" type="IUSBDeviceFilter" readonly="yes" safearray="yes">
11509 <desc>
11510 List of USB device filters associated with the machine.
11511
11512 If the machine is currently running, these filters are activated
11513 every time a new (supported) USB device is attached to the host
11514 computer that was not ignored by global filters
11515 (<link to="IHost::USBDeviceFilters"/>).
11516
11517 These filters are also activated when the machine is powered up.
11518 They are run against a list of all currently available USB
11519 devices (in states
11520 <link to="USBDeviceState_Available"/>,
11521 <link to="USBDeviceState_Busy"/>,
11522 <link to="USBDeviceState_Held"/>) that were not previously
11523 ignored by global filters.
11524
11525 If at least one filter matches the USB device in question, this
11526 device is automatically captured (attached to) the virtual USB
11527 controller of this machine.
11528
11529 <see>IUSBDeviceFilter, ::IUSBController</see>
11530 </desc>
11531 </attribute>
11532
11533 <method name="createDeviceFilter">
11534 <desc>
11535 Creates a new USB device filter. All attributes except
11536 the filter name are set to <tt>null</tt> (any match),
11537 <i>active</i> is <tt>false</tt> (the filter is not active).
11538
11539 The created filter can then be added to the list of filters using
11540 <link to="#insertDeviceFilter"/>.
11541
11542 <result name="VBOX_E_INVALID_VM_STATE">
11543 The virtual machine is not mutable.
11544 </result>
11545
11546 <see>#deviceFilters</see>
11547 </desc>
11548 <param name="name" type="wstring" dir="in">
11549 <desc>
11550 Filter name. See <link to="IUSBDeviceFilter::name"/>
11551 for more info.
11552 </desc>
11553 </param>
11554 <param name="filter" type="IUSBDeviceFilter" dir="return">
11555 <desc>Created filter object.</desc>
11556 </param>
11557 </method>
11558
11559 <method name="insertDeviceFilter">
11560 <desc>
11561 Inserts the given USB device to the specified position
11562 in the list of filters.
11563
11564 Positions are numbered starting from <tt>0</tt>. If the specified
11565 position is equal to or greater than the number of elements in
11566 the list, the filter is added to the end of the collection.
11567
11568 <note>
11569 Duplicates are not allowed, so an attempt to insert a
11570 filter that is already in the collection, will return an
11571 error.
11572 </note>
11573
11574 <result name="VBOX_E_INVALID_VM_STATE">
11575 Virtual machine is not mutable.
11576 </result>
11577 <result name="E_INVALIDARG">
11578 USB device filter not created within this VirtualBox instance.
11579 </result>
11580 <result name="VBOX_E_INVALID_OBJECT_STATE">
11581 USB device filter already in list.
11582 </result>
11583
11584 <see>#deviceFilters</see>
11585 </desc>
11586 <param name="position" type="unsigned long" dir="in">
11587 <desc>Position to insert the filter to.</desc>
11588 </param>
11589 <param name="filter" type="IUSBDeviceFilter" dir="in">
11590 <desc>USB device filter to insert.</desc>
11591 </param>
11592 </method>
11593
11594 <method name="removeDeviceFilter">
11595 <desc>
11596 Removes a USB device filter from the specified position in the
11597 list of filters.
11598
11599 Positions are numbered starting from <tt>0</tt>. Specifying a
11600 position equal to or greater than the number of elements in
11601 the list will produce an error.
11602
11603 <see>#deviceFilters</see>
11604
11605 <result name="VBOX_E_INVALID_VM_STATE">
11606 Virtual machine is not mutable.
11607 </result>
11608 <result name="E_INVALIDARG">
11609 USB device filter list empty or invalid @a position.
11610 </result>
11611
11612 </desc>
11613 <param name="position" type="unsigned long" dir="in">
11614 <desc>Position to remove the filter from.</desc>
11615 </param>
11616 <param name="filter" type="IUSBDeviceFilter" dir="return">
11617 <desc>Removed USB device filter.</desc>
11618 </param>
11619 </method>
11620
11621 </interface>
11622
11623
11624 <!--
11625 // IUSBDevice
11626 /////////////////////////////////////////////////////////////////////////
11627 -->
11628
11629 <interface
11630 name="IUSBDevice" extends="$unknown"
11631 uuid="f8967b0b-4483-400f-92b5-8b675d98a85b"
11632 wsmap="managed"
11633 >
11634 <desc>
11635 The IUSBDevice interface represents a virtual USB device attached to the
11636 virtual machine.
11637
11638 A collection of objects implementing this interface is stored in the
11639 <link to="IConsole::USBDevices"/> attribute which lists all USB devices
11640 attached to a running virtual machine's USB controller.
11641 </desc>
11642
11643 <attribute name="id" type="wstring" readonly="yes">
11644 <desc>
11645 Unique USB device ID. This ID is built from #vendorId,
11646 #productId, #revision and #serialNumber.
11647 </desc>
11648 </attribute>
11649
11650 <attribute name="vendorId" type="unsigned short" readonly="yes">
11651 <desc>Vendor ID.</desc>
11652 </attribute>
11653
11654 <attribute name="productId" type="unsigned short" readonly="yes">
11655 <desc>Product ID.</desc>
11656 </attribute>
11657
11658 <attribute name="revision" type="unsigned short" readonly="yes">
11659 <desc>
11660 Product revision number. This is a packed BCD represented as
11661 unsigned short. The high byte is the integer part and the low
11662 byte is the decimal.
11663 </desc>
11664 </attribute>
11665
11666 <attribute name="manufacturer" type="wstring" readonly="yes">
11667 <desc>Manufacturer string.</desc>
11668 </attribute>
11669
11670 <attribute name="product" type="wstring" readonly="yes">
11671 <desc>Product string.</desc>
11672 </attribute>
11673
11674 <attribute name="serialNumber" type="wstring" readonly="yes">
11675 <desc>Serial number string.</desc>
11676 </attribute>
11677
11678 <attribute name="address" type="wstring" readonly="yes">
11679 <desc>Host specific address of the device.</desc>
11680 </attribute>
11681
11682 <attribute name="port" type="unsigned short" readonly="yes">
11683 <desc>
11684 Host USB port number the device is physically
11685 connected to.
11686 </desc>
11687 </attribute>
11688
11689 <attribute name="version" type="unsigned short" readonly="yes">
11690 <desc>
11691 The major USB version of the device - 1 or 2.
11692 </desc>
11693 </attribute>
11694
11695 <attribute name="portVersion" type="unsigned short" readonly="yes">
11696 <desc>
11697 The major USB version of the host USB port the device is
11698 physically connected to - 1 or 2. For devices not connected to
11699 anything this will have the same value as the version attribute.
11700 </desc>
11701 </attribute>
11702
11703 <attribute name="remote" type="boolean" readonly="yes">
11704 <desc>
11705 Whether the device is physically connected to a remote VRDP
11706 client or to a local host machine.
11707 </desc>
11708 </attribute>
11709
11710 </interface>
11711
11712
11713 <!--
11714 // IUSBDeviceFilter
11715 /////////////////////////////////////////////////////////////////////////
11716 -->
11717
11718 <interface
11719 name="IUSBDeviceFilter" extends="$unknown"
11720 uuid="d6831fb4-1a94-4c2c-96ef-8d0d6192066d"
11721 wsmap="managed"
11722 >
11723 <desc>
11724 The IUSBDeviceFilter interface represents an USB device filter used
11725 to perform actions on a group of USB devices.
11726
11727 This type of filters is used by running virtual machines to
11728 automatically capture selected USB devices once they are physically
11729 attached to the host computer.
11730
11731 A USB device is matched to the given device filter if and only if all
11732 attributes of the device match the corresponding attributes of the
11733 filter (that is, attributes are joined together using the logical AND
11734 operation). On the other hand, all together, filters in the list of
11735 filters carry the semantics of the logical OR operation. So if it is
11736 desirable to create a match like "this vendor id OR this product id",
11737 one needs to create two filters and specify "any match" (see below)
11738 for unused attributes.
11739
11740 All filter attributes used for matching are strings. Each string
11741 is an expression representing a set of values of the corresponding
11742 device attribute, that will match the given filter. Currently, the
11743 following filtering expressions are supported:
11744
11745 <ul>
11746 <li><i>Interval filters</i>. Used to specify valid intervals for
11747 integer device attributes (Vendor ID, Product ID and Revision).
11748 The format of the string is:
11749
11750 <tt>int:((m)|([m]-[n]))(,(m)|([m]-[n]))*</tt>
11751
11752 where <tt>m</tt> and <tt>n</tt> are integer numbers, either in octal
11753 (starting from <tt>0</tt>), hexadecimal (starting from <tt>0x</tt>)
11754 or decimal (otherwise) form, so that <tt>m &lt; n</tt>. If <tt>m</tt>
11755 is omitted before a dash (<tt>-</tt>), the minimum possible integer
11756 is assumed; if <tt>n</tt> is omitted after a dash, the maximum
11757 possible integer is assumed.
11758 </li>
11759 <li><i>Boolean filters</i>. Used to specify acceptable values for
11760 boolean device attributes. The format of the string is:
11761
11762 <tt>true|false|yes|no|0|1</tt>
11763
11764 </li>
11765 <li><i>Exact match</i>. Used to specify a single value for the given
11766 device attribute. Any string that doesn't start with <tt>int:</tt>
11767 represents the exact match. String device attributes are compared to
11768 this string including case of symbols. Integer attributes are first
11769 converted to a string (see individual filter attributes) and then
11770 compared ignoring case.
11771
11772 </li>
11773 <li><i>Any match</i>. Any value of the corresponding device attribute
11774 will match the given filter. An empty or <tt>null</tt> string is
11775 used to construct this type of filtering expressions.
11776
11777 </li>
11778 </ul>
11779
11780 <note>
11781 On the Windows host platform, interval filters are not currently
11782 available. Also all string filter attributes
11783 (<link to="#manufacturer"/>, <link to="#product"/>,
11784 <link to="#serialNumber"/>) are ignored, so they behave as
11785 <i>any match</i> no matter what string expression is specified.
11786 </note>
11787
11788 <see>IUSBController::deviceFilters, IHostUSBDeviceFilter</see>
11789 </desc>
11790
11791 <attribute name="name" type="wstring">
11792 <desc>
11793 Visible name for this filter.
11794 This name is used to visually distinguish one filter from another,
11795 so it can neither be <tt>null</tt> nor an empty string.
11796 </desc>
11797 </attribute>
11798
11799 <attribute name="active" type="boolean">
11800 <desc>Whether this filter active or has been temporarily disabled.</desc>
11801 </attribute>
11802
11803 <attribute name="vendorId" type="wstring">
11804 <desc>
11805 <link to="IUSBDevice::vendorId">Vendor ID</link> filter.
11806 The string representation for the <i>exact matching</i>
11807 has the form <tt>XXXX</tt>, where <tt>X</tt> is the hex digit
11808 (including leading zeroes).
11809 </desc>
11810 </attribute>
11811
11812 <attribute name="productId" type="wstring">
11813 <desc>
11814 <link to="IUSBDevice::productId">Product ID</link> filter.
11815 The string representation for the <i>exact matching</i>
11816 has the form <tt>XXXX</tt>, where <tt>X</tt> is the hex digit
11817 (including leading zeroes).
11818 </desc>
11819 </attribute>
11820
11821 <attribute name="revision" type="wstring">
11822 <desc>
11823 <link to="IUSBDevice::productId">Product revision number</link>
11824 filter. The string representation for the <i>exact matching</i>
11825 has the form <tt>IIFF</tt>, where <tt>I</tt> is the decimal digit
11826 of the integer part of the revision, and <tt>F</tt> is the
11827 decimal digit of its fractional part (including leading and
11828 trailing zeros).
11829 Note that for interval filters, it's best to use the hexadecimal
11830 form, because the revision is stored as a 16 bit packed BCD value;
11831 so the expression <tt>int:0x0100-0x0199</tt> will match any
11832 revision from <tt>1.0</tt> to <tt>1.99</tt>.
11833 </desc>
11834 </attribute>
11835
11836 <attribute name="manufacturer" type="wstring">
11837 <desc>
11838 <link to="IUSBDevice::manufacturer">Manufacturer</link> filter.
11839 </desc>
11840 </attribute>
11841
11842 <attribute name="product" type="wstring">
11843 <desc>
11844 <link to="IUSBDevice::product">Product</link> filter.
11845 </desc>
11846 </attribute>
11847
11848 <attribute name="serialNumber" type="wstring">
11849 <desc>
11850 <link to="IUSBDevice::serialNumber">Serial number</link> filter.
11851 </desc>
11852 </attribute>
11853
11854 <attribute name="port" type="wstring">
11855 <desc>
11856 <link to="IUSBDevice::port">Host USB port</link> filter.
11857 </desc>
11858 </attribute>
11859
11860 <attribute name="remote" type="wstring">
11861 <desc>
11862 <link to="IUSBDevice::remote">Remote state</link> filter.
11863 <note>
11864 This filter makes sense only for machine USB filters,
11865 i.e. it is ignored by IHostUSBDeviceFilter objects.
11866 </note>
11867 </desc>
11868 </attribute>
11869
11870 <attribute name="maskedInterfaces" type="unsigned long">
11871 <desc>
11872 This is an advanced option for hiding one or more USB interfaces
11873 from the guest. The value is a bit mask where the bits that are set
11874 means the corresponding USB interface should be hidden, masked off
11875 if you like.
11876 This feature only works on Linux hosts.
11877 </desc>
11878 </attribute>
11879
11880 </interface>
11881
11882
11883 <!--
11884 // IHostUSBDevice
11885 /////////////////////////////////////////////////////////////////////////
11886 -->
11887
11888 <enum
11889 name="USBDeviceState"
11890 uuid="b99a2e65-67fb-4882-82fd-f3e5e8193ab4"
11891 >
11892 <desc>
11893 USB device state. This enumeration represents all possible states
11894 of the USB device physically attached to the host computer regarding
11895 its state on the host computer and availability to guest computers
11896 (all currently running virtual machines).
11897
11898 Once a supported USB device is attached to the host, global USB
11899 filters (<link to="IHost::USBDeviceFilters"/>) are activated. They can
11900 either ignore the device, or put it to USBDeviceState_Held state, or do
11901 nothing. Unless the device is ignored by global filters, filters of all
11902 currently running guests (<link to="IUSBController::deviceFilters"/>) are
11903 activated that can put it to USBDeviceState_Captured state.
11904
11905 If the device was ignored by global filters, or didn't match
11906 any filters at all (including guest ones), it is handled by the host
11907 in a normal way. In this case, the device state is determined by
11908 the host and can be one of USBDeviceState_Unavailable, USBDeviceState_Busy
11909 or USBDeviceState_Available, depending on the current device usage.
11910
11911 Besides auto-capturing based on filters, the device can be manually
11912 captured by guests (<link to="IConsole::attachUSBDevice"/>) if its
11913 state is USBDeviceState_Busy, USBDeviceState_Available or
11914 USBDeviceState_Held.
11915
11916 <note>
11917 Due to differences in USB stack implementations in Linux and Win32,
11918 states USBDeviceState_Busy and USBDeviceState_vailable are applicable
11919 only to the Linux version of the product. This also means that (<link
11920 to="IConsole::attachUSBDevice"/>) can only succeed on Win32 if the
11921 device state is USBDeviceState_Held.
11922 </note>
11923
11924 <see>IHostUSBDevice, IHostUSBDeviceFilter</see>
11925 </desc>
11926
11927 <const name="NotSupported" value="0">
11928 <desc>
11929 Not supported by the VirtualBox server, not available to guests.
11930 </desc>
11931 </const>
11932 <const name="Unavailable" value="1">
11933 <desc>
11934 Being used by the host computer exclusively,
11935 not available to guests.
11936 </desc>
11937 </const>
11938 <const name="Busy" value="2">
11939 <desc>
11940 Being used by the host computer, potentially available to guests.
11941 </desc>
11942 </const>
11943 <const name="Available" value="3">
11944 <desc>
11945 Not used by the host computer, available to guests (the host computer
11946 can also start using the device at any time).
11947 </desc>
11948 </const>
11949 <const name="Held" value="4">
11950 <desc>
11951 Held by the VirtualBox server (ignored by the host computer),
11952 available to guests.
11953 </desc>
11954 </const>
11955 <const name="Captured" value="5">
11956 <desc>
11957 Captured by one of the guest computers, not available
11958 to anybody else.
11959 </desc>
11960 </const>
11961 </enum>
11962
11963 <interface
11964 name="IHostUSBDevice" extends="IUSBDevice"
11965 uuid="173b4b44-d268-4334-a00d-b6521c9a740a"
11966 wsmap="managed"
11967 >
11968 <desc>
11969 The IHostUSBDevice interface represents a physical USB device attached
11970 to the host computer.
11971
11972 Besides properties inherited from IUSBDevice, this interface adds the
11973 <link to="#state"/> property that holds the current state of the USB
11974 device.
11975
11976 <see>IHost::USBDevices, IHost::USBDeviceFilters</see>
11977 </desc>
11978
11979 <attribute name="state" type="USBDeviceState" readonly="yes">
11980 <desc>
11981 Current state of the device.
11982 </desc>
11983 </attribute>
11984
11985 <!-- @todo add class, subclass, bandwidth, configs, interfaces endpoints and such later. -->
11986
11987 </interface>
11988
11989
11990 <!--
11991 // IHostUSBDeviceFilter
11992 /////////////////////////////////////////////////////////////////////////
11993 -->
11994
11995 <enum
11996 name="USBDeviceFilterAction"
11997 uuid="cbc30a49-2f4e-43b5-9da6-121320475933"
11998 >
11999 <desc>
12000 Actions for host USB device filters.
12001 <see>IHostUSBDeviceFilter, USBDeviceState</see>
12002 </desc>
12003
12004 <const name="Null" value="0">
12005 <desc>Null value (never used by the API).</desc>
12006 </const>
12007 <const name="Ignore" value="1">
12008 <desc>Ignore the matched USB device.</desc>
12009 </const>
12010 <const name="Hold" value="2">
12011 <desc>Hold the matched USB device.</desc>
12012 </const>
12013 </enum>
12014
12015 <interface
12016 name="IHostUSBDeviceFilter" extends="IUSBDeviceFilter"
12017 uuid="4cc70246-d74a-400f-8222-3900489c0374"
12018 wsmap="managed"
12019 >
12020 <desc>
12021 The IHostUSBDeviceFilter interface represents a global filter for a
12022 physical USB device used by the host computer. Used indirectly in
12023 <link to="IHost::USBDeviceFilters"/>.
12024
12025 Using filters of this type, the host computer determines the initial
12026 state of the USB device after it is physically attached to the
12027 host's USB controller.
12028
12029 <note>
12030 The <link to="#remote"/> attribute is ignored by this type of
12031 filters, because it makes sense only for
12032 <link to="IUSBController::deviceFilters">machine USB filters</link>.
12033 </note>
12034
12035 <see>IHost::USBDeviceFilters</see>
12036 </desc>
12037
12038 <attribute name="action" type="USBDeviceFilterAction">
12039 <desc>
12040 Action performed by the host when an attached USB device
12041 matches this filter.
12042 </desc>
12043 </attribute>
12044
12045 </interface>
12046
12047 <!--
12048 // IAudioAdapter
12049 /////////////////////////////////////////////////////////////////////////
12050 -->
12051
12052 <enum
12053 name="AudioDriverType"
12054 uuid="4bcc3d73-c2fe-40db-b72f-0c2ca9d68496"
12055 >
12056 <desc>
12057 Host audio driver type.
12058 </desc>
12059
12060 <const name="Null" value="0">
12061 <desc>Null value, also means "dummy audio driver".</desc>
12062 </const>
12063 <const name="WinMM" value="1"/>
12064 <const name="OSS" value="2"/>
12065 <const name="ALSA" value="3"/>
12066 <const name="DirectSound" value="4"/>
12067 <const name="CoreAudio" value="5"/>
12068 <const name="MMPM" value="6"/>
12069 <const name="Pulse" value="7"/>
12070 <const name="SolAudio" value="8"/>
12071 </enum>
12072
12073 <enum
12074 name="AudioControllerType"
12075 uuid="7afd395c-42c3-444e-8788-3ce80292f36c"
12076 >
12077 <desc>
12078 Virtual audio controller type.
12079 </desc>
12080
12081 <const name="AC97" value="0"/>
12082 <const name="SB16" value="1"/>
12083 </enum>
12084
12085 <interface
12086 name="IAudioAdapter" extends="$unknown"
12087 uuid="921873db-5f3f-4b69-91f9-7be9e535a2cb"
12088 wsmap="managed"
12089 >
12090 <desc>
12091 The IAudioAdapter interface represents the virtual audio adapter of
12092 the virtual machine. Used in <link to="IMachine::audioAdapter"/>.
12093 </desc>
12094 <attribute name="enabled" type="boolean">
12095 <desc>
12096 Flag whether the audio adapter is present in the
12097 guest system. If disabled, the virtual guest hardware will
12098 not contain any audio adapter. Can only be changed when
12099 the VM is not running.
12100 </desc>
12101 </attribute>
12102 <attribute name="audioController" type="AudioControllerType">
12103 <desc>
12104 The audio hardware we emulate.
12105 </desc>
12106 </attribute>
12107 <attribute name="audioDriver" type="AudioDriverType">
12108 <desc>
12109 Audio driver the adapter is connected to. This setting
12110 can only be changed when the VM is not running.
12111 </desc>
12112 </attribute>
12113 </interface>
12114
12115 <!--
12116 // IVRDPServer
12117 /////////////////////////////////////////////////////////////////////////
12118 -->
12119
12120 <enum
12121 name="VRDPAuthType"
12122 uuid="3d91887a-b67f-4b33-85bf-2da7ab1ea83a"
12123 >
12124 <desc>
12125 VRDP authentication type.
12126 </desc>
12127
12128 <const name="Null" value="0">
12129 <desc>Null value, also means "no authentication".</desc>
12130 </const>
12131 <const name="External" value="1"/>
12132 <const name="Guest" value="2"/>
12133 </enum>
12134
12135 <interface
12136 name="IVRDPServer" extends="$unknown"
12137 uuid="f4584ae7-6bce-474b-83d6-17d235e6aa89"
12138 wsmap="managed"
12139 >
12140 <attribute name="enabled" type="boolean">
12141 <desc>VRDP server status.</desc>
12142 </attribute>
12143
12144 <attribute name="port" type="unsigned long">
12145 <desc>
12146 VRDP server port number.
12147 <note>
12148 Setting the value of this property to <tt>0</tt> will reset the port
12149 number to the default value which is
12150 currently <tt>3389</tt>. Reading this property will always return a
12151 real port number, even after it has been set to <tt>0</tt> (in which
12152 case the default port is returned).
12153 </note>
12154 </desc>
12155 </attribute>
12156
12157 <attribute name="netAddress" type="wstring">
12158 <desc>VRDP server address.</desc>
12159 </attribute>
12160
12161 <attribute name="authType" type="VRDPAuthType">
12162 <desc>VRDP authentication method.</desc>
12163 </attribute>
12164
12165 <attribute name="authTimeout" type="unsigned long">
12166 <desc>Timeout for guest authentication. Milliseconds.</desc>
12167 </attribute>
12168
12169 <attribute name="allowMultiConnection" type="boolean">
12170 <desc>
12171 Flag whether multiple simultaneous connections to the VM are permitted.
12172 Note that this will be replaced by a more powerful mechanism in the future.
12173 </desc>
12174 </attribute>
12175
12176 <attribute name="reuseSingleConnection" type="boolean">
12177 <desc>
12178 Flag whether the existing connection must be dropped and a new connection
12179 must be established by the VRDP server, when a new client connects in single
12180 connection mode.
12181 </desc>
12182 </attribute>
12183
12184 </interface>
12185
12186
12187 <!--
12188 // ISharedFolder
12189 /////////////////////////////////////////////////////////////////////////
12190 -->
12191
12192 <interface
12193 name="ISharedFolder" extends="$unknown"
12194 uuid="64637bb2-9e17-471c-b8f3-f8968dd9884e"
12195 wsmap="struct"
12196 >
12197 <desc>
12198 The ISharedFolder interface represents a folder in the host computer's
12199 file system accessible from the guest OS running inside a virtual
12200 machine using an associated logical name.
12201
12202 There are three types of shared folders:
12203 <ul>
12204 <li><i>Global</i> (<link to="IVirtualBox::sharedFolders"/>), shared
12205 folders available to all virtual machines.</li>
12206 <li><i>Permanent</i> (<link to="IMachine::sharedFolders"/>),
12207 VM-specific shared folders available to the given virtual machine at
12208 startup.</li>
12209 <li><i>Transient</i> (<link to="IConsole::sharedFolders"/>),
12210 VM-specific shared folders created in the session context (for
12211 example, when the virtual machine is running) and automatically
12212 discarded when the session is closed (the VM is powered off).</li>
12213 </ul>
12214
12215 Logical names of shared folders must be unique within the given scope
12216 (global, permanent or transient). However, they do not need to be unique
12217 across scopes. In this case, the definition of the shared folder in a
12218 more specific scope takes precedence over definitions in all other
12219 scopes. The order of precedence is (more specific to more general):
12220 <ol>
12221 <li>Transient definitions</li>
12222 <li>Permanent definitions</li>
12223 <li>Global definitions</li>
12224 </ol>
12225
12226 For example, if MyMachine has a shared folder named
12227 <tt>C_DRIVE</tt> (that points to <tt>C:\\</tt>), then creating a
12228 transient shared folder named <tt>C_DRIVE</tt> (that points
12229 to <tt>C:\\\\WINDOWS</tt>) will change the definition
12230 of <tt>C_DRIVE</tt> in the guest OS so
12231 that <tt>\\\\VBOXSVR\\C_DRIVE</tt> will give access
12232 to <tt>C:\\WINDOWS</tt> instead of <tt>C:\\</tt> on the host
12233 PC. Removing the transient shared folder <tt>C_DRIVE</tt> will restore
12234 the previous (permanent) definition of <tt>C_DRIVE</tt> that points
12235 to <tt>C:\\</tt> if it still exists.
12236
12237 Note that permanent and transient shared folders of different machines
12238 are in different name spaces, so they don't overlap and don't need to
12239 have unique logical names.
12240
12241 <note>
12242 Global shared folders are not implemented in the current version of the
12243 product.
12244 </note>
12245 </desc>
12246
12247 <attribute name="name" type="wstring" readonly="yes">
12248 <desc>Logical name of the shared folder.</desc>
12249 </attribute>
12250
12251 <attribute name="hostPath" type="wstring" readonly="yes">
12252 <desc>Full path to the shared folder in the host file system.</desc>
12253 </attribute>
12254
12255 <attribute name="accessible" type="boolean" readonly="yes">
12256 <desc>
12257 Whether the folder defined by the host path is currently
12258 accessible or not.
12259 For example, the folder can be unaccessible if it is placed
12260 on the network share that is not available by the time
12261 this property is read.
12262 </desc>
12263 </attribute>
12264
12265 <attribute name="writable" type="boolean" readonly="yes">
12266 <desc>
12267 Whether the folder defined by the host path is writable or
12268 not.
12269 </desc>
12270 </attribute>
12271
12272 <attribute name="lastAccessError" type="wstring" readonly="yes">
12273 <desc>
12274 Text message that represents the result of the last accessibility
12275 check.
12276
12277 Accessibility checks are performed each time the <link to="#accessible"/>
12278 attribute is read. A @c null string is returned if the last
12279 accessibility check was successful. A non-null string indicates a
12280 failure and should normally describe a reason of the failure (for
12281 example, a file read error).
12282 </desc>
12283 </attribute>
12284
12285 </interface>
12286
12287 <!--
12288 // ISession
12289 /////////////////////////////////////////////////////////////////////////
12290 -->
12291
12292 <interface
12293 name="IInternalSessionControl" extends="$unknown"
12294 uuid="b26552e7-9534-4f47-b766-98eac648a90d"
12295 internal="yes"
12296 wsmap="suppress"
12297 >
12298 <method name="getPID">
12299 <desc>PID of the process that has created this Session object.
12300 </desc>
12301 <param name="pid" type="unsigned long" dir="return"/>
12302 </method>
12303
12304 <method name="getRemoteConsole">
12305 <desc>
12306 Returns the console object suitable for remote control.
12307
12308 <result name="VBOX_E_INVALID_VM_STATE">
12309 Session state prevents operation.
12310 </result>
12311 <result name="VBOX_E_INVALID_OBJECT_STATE">
12312 Session type prevents operation.
12313 </result>
12314
12315 </desc>
12316 <param name="console" type="IConsole" dir="return"/>
12317 </method>
12318
12319 <method name="assignMachine">
12320 <desc>
12321 Assigns the machine object associated with this direct-type
12322 session or informs the session that it will be a remote one
12323 (if @a machine == NULL).
12324
12325 <result name="VBOX_E_INVALID_VM_STATE">
12326 Session state prevents operation.
12327 </result>
12328 <result name="VBOX_E_INVALID_OBJECT_STATE">
12329 Session type prevents operation.
12330 </result>
12331
12332 </desc>
12333 <param name="machine" type="IMachine" dir="in"/>
12334 </method>
12335
12336 <method name="assignRemoteMachine">
12337 <desc>
12338 Assigns the machine and the (remote) console object associated with
12339 this remote-type session.
12340
12341 <result name="VBOX_E_INVALID_VM_STATE">
12342 Session state prevents operation.
12343 </result>
12344
12345 </desc>
12346 <param name="machine" type="IMachine" dir="in"/>
12347 <param name="console" type="IConsole" dir="in"/>
12348 </method>
12349
12350 <method name="updateMachineState">
12351 <desc>
12352 Updates the machine state in the VM process.
12353 Must be called only in certain cases
12354 (see the method implementation).
12355
12356 <result name="VBOX_E_INVALID_VM_STATE">
12357 Session state prevents operation.
12358 </result>
12359 <result name="VBOX_E_INVALID_OBJECT_STATE">
12360 Session type prevents operation.
12361 </result>
12362
12363 </desc>
12364 <param name="aMachineState" type="MachineState" dir="in"/>
12365 </method>
12366
12367 <method name="uninitialize">
12368 <desc>
12369 Uninitializes (closes) this session. Used by VirtualBox to close
12370 the corresponding remote session when the direct session dies
12371 or gets closed.
12372
12373 <result name="VBOX_E_INVALID_VM_STATE">
12374 Session state prevents operation.
12375 </result>
12376
12377 </desc>
12378 </method>
12379
12380 <method name="onDVDDriveChange">
12381 <desc>
12382 Triggered when settings of the DVD drive object of the
12383 associated virtual machine have changed.
12384
12385 <result name="VBOX_E_INVALID_VM_STATE">
12386 Session state prevents operation.
12387 </result>
12388 <result name="VBOX_E_INVALID_OBJECT_STATE">
12389 Session type prevents operation.
12390 </result>
12391
12392 </desc>
12393 </method>
12394
12395 <method name="onFloppyDriveChange">
12396 <desc>
12397 Triggered when settings of the floppy drive object of the
12398 associated virtual machine have changed.
12399
12400 <result name="VBOX_E_INVALID_VM_STATE">
12401 Session state prevents operation.
12402 </result>
12403 <result name="VBOX_E_INVALID_OBJECT_STATE">
12404 Session type prevents operation.
12405 </result>
12406
12407 </desc>
12408 </method>
12409
12410 <method name="onNetworkAdapterChange">
12411 <desc>
12412 Triggered when settings of a network adapter of the
12413 associated virtual machine have changed.
12414
12415 <result name="VBOX_E_INVALID_VM_STATE">
12416 Session state prevents operation.
12417 </result>
12418 <result name="VBOX_E_INVALID_OBJECT_STATE">
12419 Session type prevents operation.
12420 </result>
12421
12422 </desc>
12423 <param name="networkAdapter" type="INetworkAdapter" dir="in"/>
12424 </method>
12425
12426 <method name="onSerialPortChange">
12427 <desc>
12428 Triggered when settings of a serial port of the
12429 associated virtual machine have changed.
12430
12431 <result name="VBOX_E_INVALID_VM_STATE">
12432 Session state prevents operation.
12433 </result>
12434 <result name="VBOX_E_INVALID_OBJECT_STATE">
12435 Session type prevents operation.
12436 </result>
12437
12438 </desc>
12439 <param name="serialPort" type="ISerialPort" dir="in"/>
12440 </method>
12441
12442 <method name="onParallelPortChange">
12443 <desc>
12444 Triggered when settings of a parallel port of the
12445 associated virtual machine have changed.
12446
12447 <result name="VBOX_E_INVALID_VM_STATE">
12448 Session state prevents operation.
12449 </result>
12450 <result name="VBOX_E_INVALID_OBJECT_STATE">
12451 Session type prevents operation.
12452 </result>
12453
12454 </desc>
12455 <param name="parallelPort" type="IParallelPort" dir="in"/>
12456 </method>
12457
12458 <method name="onStorageControllerChange">
12459 <desc>
12460 Triggered when settings of a storage controller of the
12461 associated virtual machine have changed.
12462
12463 <result name="VBOX_E_INVALID_VM_STATE">
12464 Session state prevents operation.
12465 </result>
12466 <result name="VBOX_E_INVALID_OBJECT_STATE">
12467 Session type prevents operation.
12468 </result>
12469
12470 </desc>
12471 </method>
12472
12473 <method name="onVRDPServerChange">
12474 <desc>
12475 Triggered when settings of the VRDP server object of the
12476 associated virtual machine have changed.
12477
12478 <result name="VBOX_E_INVALID_VM_STATE">
12479 Session state prevents operation.
12480 </result>
12481 <result name="VBOX_E_INVALID_OBJECT_STATE">
12482 Session type prevents operation.
12483 </result>
12484
12485 </desc>
12486 </method>
12487
12488 <method name="onUSBControllerChange">
12489 <desc>
12490 Triggered when settings of the USB controller object of the
12491 associated virtual machine have changed.
12492
12493 <result name="VBOX_E_INVALID_VM_STATE">
12494 Session state prevents operation.
12495 </result>
12496 <result name="VBOX_E_INVALID_OBJECT_STATE">
12497 Session type prevents operation.
12498 </result>
12499
12500 </desc>
12501 </method>
12502
12503 <method name="onSharedFolderChange">
12504 <desc>
12505 Triggered when a permanent (global or machine) shared folder has been
12506 created or removed.
12507 <note>
12508 We don't pass shared folder parameters in this notification because
12509 the order in which parallel notifications are delivered is not defined,
12510 therefore it could happen that these parameters were outdated by the
12511 time of processing this notification.
12512 </note>
12513
12514 <result name="VBOX_E_INVALID_VM_STATE">
12515 Session state prevents operation.
12516 </result>
12517 <result name="VBOX_E_INVALID_OBJECT_STATE">
12518 Session type prevents operation.
12519 </result>
12520
12521 </desc>
12522 <param name="global" type="boolean" dir="in"/>
12523 </method>
12524
12525 <method name="onUSBDeviceAttach">
12526 <desc>
12527 Triggered when a request to capture a USB device (as a result
12528 of matched USB filters or direct call to
12529 <link to="IConsole::attachUSBDevice"/>) has completed.
12530 A @c null @a error object means success, otherwise it
12531 describes a failure.
12532
12533 <result name="VBOX_E_INVALID_VM_STATE">
12534 Session state prevents operation.
12535 </result>
12536 <result name="VBOX_E_INVALID_OBJECT_STATE">
12537 Session type prevents operation.
12538 </result>
12539
12540 </desc>
12541 <param name="device" type="IUSBDevice" dir="in"/>
12542 <param name="error" type="IVirtualBoxErrorInfo" dir="in"/>
12543 <param name="maskedInterfaces" type="unsigned long" dir="in"/>
12544 </method>
12545
12546 <method name="onUSBDeviceDetach">
12547 <desc>
12548 Triggered when a request to release the USB device (as a result
12549 of machine termination or direct call to
12550 <link to="IConsole::detachUSBDevice"/>) has completed.
12551 A @c null @a error object means success, otherwise it
12552
12553 <result name="VBOX_E_INVALID_VM_STATE">
12554 Session state prevents operation.
12555 </result>
12556 <result name="VBOX_E_INVALID_OBJECT_STATE">
12557 Session type prevents operation.
12558 </result>
12559
12560 </desc>
12561 <param name="id" type="wstring" dir="in"/>
12562 <param name="error" type="IVirtualBoxErrorInfo" dir="in"/>
12563 </method>
12564
12565 <method name="onShowWindow">
12566 <desc>
12567 Called by <link to="IMachine::canShowConsoleWindow"/> and by
12568 <link to="IMachine::showConsoleWindow"/> in order to notify
12569 console callbacks
12570 <link to="IConsoleCallback::onCanShowWindow"/>
12571 and <link to="IConsoleCallback::onShowWindow"/>.
12572
12573 <result name="VBOX_E_INVALID_OBJECT_STATE">
12574 Session type prevents operation.
12575 </result>
12576
12577 </desc>
12578 <param name="check" type="boolean" dir="in"/>
12579 <param name="canShow" type="boolean" dir="out"/>
12580 <param name="winId" type="unsigned long long" dir="out"/>
12581 </method>
12582
12583 <method name="accessGuestProperty">
12584 <desc>
12585 Called by <link to="IMachine::getGuestProperty"/> and by
12586 <link to="IMachine::setGuestProperty"/> in order to read and
12587 modify guest properties.
12588
12589 <result name="VBOX_E_INVALID_VM_STATE">
12590 Machine session is not open.
12591 </result>
12592 <result name="VBOX_E_INVALID_OBJECT_STATE">
12593 Session type is not direct.
12594 </result>
12595
12596 </desc>
12597 <param name="name" type="wstring" dir="in"/>
12598 <param name="value" type="wstring" dir="in"/>
12599 <param name="flags" type="wstring" dir="in"/>
12600 <param name="isSetter" type="boolean" dir="in"/>
12601 <param name="retValue" type="wstring" dir="out"/>
12602 <param name="retTimestamp" type="unsigned long long" dir="out"/>
12603 <param name="retFlags" type="wstring" dir="out"/>
12604 </method>
12605
12606 <method name="enumerateGuestProperties">
12607 <desc>
12608 Return a list of the guest properties matching a set of patterns along
12609 with their values, time stamps and flags.
12610
12611 <result name="VBOX_E_INVALID_VM_STATE">
12612 Machine session is not open.
12613 </result>
12614 <result name="VBOX_E_INVALID_OBJECT_STATE">
12615 Session type is not direct.
12616 </result>
12617
12618 </desc>
12619 <param name="patterns" type="wstring" dir="in">
12620 <desc>
12621 The patterns to match the properties against as a comma-separated
12622 string. If this is empty, all properties currently set will be
12623 returned.
12624 </desc>
12625 </param>
12626 <param name="key" type="wstring" dir="out" safearray="yes">
12627 <desc>
12628 The key names of the properties returned.
12629 </desc>
12630 </param>
12631 <param name="value" type="wstring" dir="out" safearray="yes">
12632 <desc>
12633 The values of the properties returned. The array entries match the
12634 corresponding entries in the @a key array.
12635 </desc>
12636 </param>
12637 <param name="timestamp" type="unsigned long long" dir="out" safearray="yes">
12638 <desc>
12639 The time stamps of the properties returned. The array entries match
12640 the corresponding entries in the @a key array.
12641 </desc>
12642 </param>
12643 <param name="flags" type="wstring" dir="out" safearray="yes">
12644 <desc>
12645 The flags of the properties returned. The array entries match the
12646 corresponding entries in the @a key array.
12647 </desc>
12648 </param>
12649 </method>
12650
12651 </interface>
12652
12653 <interface
12654 name="ISession" extends="$dispatched"
12655 uuid="12F4DCDB-12B2-4ec1-B7CD-DDD9F6C5BF4D"
12656 wsmap="managed"
12657 >
12658 <desc>
12659 The ISession interface represents a serialization primitive for virtual
12660 machines.
12661
12662 With VirtualBox, every time one wishes to manipulate a virtual machine
12663 (e.g. change its settings or start execution), a session object is
12664 required. Such an object must be passed to one of the session methods
12665 that open the given session, which then initiates the machine manipulation.
12666
12667 A session serves several purposes: it identifies to the inter-process VirtualBox
12668 code which process is currently working with the virtual machine, and it ensures
12669 that there are no incompatible requests from several processes for the
12670 same virtual machine. Session objects can therefore be thought of as mutex
12671 semaphores that lock virtual machines to prevent conflicting accesses from
12672 several processes.
12673
12674 How sessions objects are used depends on whether you use the Main API
12675 via COM or via the webservice:
12676
12677 <ul>
12678 <li>When using the COM API directly, an object of the Session class from the
12679 VirtualBox type library needs to be created. In regular COM C++ client code,
12680 this can be done by calling <tt>createLocalObject()</tt>, a standard COM API.
12681 This object will then act as a local session object in further calls to open
12682 a session.
12683 </li>
12684
12685 <li>In the webservice, the session manager (IWebsessionManager) instead creates
12686 one session object automatically when <link to="IWebsessionManager::logon" />
12687 is called. A managed object reference to that session object can be retrieved by
12688 calling <link to="IWebsessionManager::getSessionObject" />. This session object
12689 reference can then be used to open sessions.
12690 </li>
12691 </ul>
12692
12693 Sessions are mainly used in two variations:
12694
12695 <ul>
12696 <li>
12697 To start a virtual machine in a separate process, one would call
12698 <link to="IVirtualBox::openRemoteSession"/>, which requires a session
12699 object as its first parameter. This session then identifies the caller
12700 and lets him control the started machine (for example, pause machine
12701 execution or power it down) as well as be notified about machine
12702 execution state changes.
12703 </li>
12704
12705 <li>To alter machine settings, or to start machine execution within the
12706 current process, one needs to open a direct session for the machine first by
12707 calling <link to="IVirtualBox::openSession"/>. While a direct session
12708 is open within one process, no any other process may open another direct
12709 session for the same machine. This prevents the machine from being changed
12710 by other processes while it is running or while the machine is being configured.
12711 </li>
12712 </ul>
12713
12714 One also can attach to an existing direct session already opened by
12715 another process (for example, in order to send a control request to the
12716 virtual machine such as the pause or the reset request). This is done by
12717 calling <link to="IVirtualBox::openExistingSession"/>.
12718
12719 <note>
12720 Unless you are trying to write a new VirtualBox front-end that
12721 performs direct machine execution (like the VirtualBox or VBoxSDL
12722 front-ends), don't call <link to="IConsole::powerUp"/> in a direct
12723 session opened by <link to="IVirtualBox::openSession"/> and use this
12724 session only to change virtual machine settings. If you simply want to
12725 start virtual machine execution using one of the existing front-ends
12726 (for example the VirtualBox GUI or headless server), simply use
12727 <link to="IVirtualBox::openRemoteSession"/>; these front-ends
12728 will power up the machine automatically for you.
12729 </note>
12730 </desc>
12731
12732 <attribute name="state" type="SessionState" readonly="yes">
12733 <desc>Current state of this session.</desc>
12734 </attribute>
12735
12736 <attribute name="type" type="SessionType" readonly="yes">
12737 <desc>
12738 Type of this session. The value of this attribute is valid only
12739 if the session is currently open (i.e. its #state is
12740 SessionType_SessionOpen), otherwise an error will be returned.
12741 </desc>
12742 </attribute>
12743
12744 <attribute name="machine" type="IMachine" readonly="yes">
12745 <desc>Machine object associated with this session.</desc>
12746 </attribute>
12747
12748 <attribute name="console" type="IConsole" readonly="yes">
12749 <desc>Console object associated with this session.</desc>
12750 </attribute>
12751
12752 <method name="close">
12753 <desc>
12754 Closes a session that was previously opened.
12755
12756 It is recommended that every time an "open session" method (such as
12757 <link to="IVirtualBox::openRemoteSession" /> or
12758 <link to="IVirtualBox::openSession" />) has been called to
12759 manipulate a virtual machine, the caller invoke
12760 ISession::close() when it's done doing so. Since sessions are
12761 serialization primitives much like ordinary mutexes, they are
12762 best used the same way: for each "open" call, there should be
12763 a matching "close" call, even when errors occur.
12764
12765 Otherwise, if a direct session for a machine opened with
12766 <link to="IVirtualBox::openSession"/> is not explicitly closed
12767 when the application terminates, the state of the machine will
12768 be set to <link to="MachineState_Aborted" /> on the server.
12769
12770 Generally, it is recommended to close all open sessions explicitly
12771 before terminating the application (regardless of the reason for
12772 the termination).
12773
12774 <note>
12775 Do not expect the session state (<link to="ISession::state" />
12776 to return to "Closed" immediately after you invoke
12777 ISession::close(), particularly if you have started a remote
12778 session to execute the VM in a new process. The session state will
12779 automatically return to "Closed" once the VM is no longer executing,
12780 which can of course take a very long time.
12781 </note>
12782
12783 <result name="E_UNEXPECTED">
12784 Session is not open.
12785 </result>
12786
12787 </desc>
12788 </method>
12789
12790 </interface>
12791
12792 <!--
12793 // IStorageController
12794 /////////////////////////////////////////////////////////////////////////
12795 -->
12796
12797 <enum
12798 name="StorageBus"
12799 uuid="f381fdca-5953-41d0-b2bd-0542b012698d"
12800 >
12801 <desc>
12802 The connection type of the storage controller.
12803 </desc>
12804 <const name="Null" value="0">
12805 <desc><tt>null</tt> value. Never used by the API.</desc>
12806 </const>
12807 <const name="IDE" value="1"/>
12808 <const name="SATA" value="2"/>
12809 <const name="SCSI" value="3"/>
12810 </enum>
12811
12812 <enum
12813 name="StorageControllerType"
12814 uuid="685387db-a837-4320-a258-08f46a22f62a"
12815 >
12816 <desc>
12817 Storage controller type.
12818 </desc>
12819
12820 <const name="Null" value="0">
12821 <desc><tt>null</tt> value. Never used by the API.</desc>
12822 </const>
12823 <const name="LsiLogic" value="1"/>
12824 <const name="BusLogic" value="2"/>
12825 <const name="IntelAhci" value="3"/>
12826 <const name="PIIX3" value="4"/>
12827 <const name="PIIX4" value="5"/>
12828 <const name="ICH6" value="6"/>
12829 </enum>
12830
12831 <interface
12832 name="IStorageController" extends="$unknown"
12833 uuid="6bf8335b-d14a-44a5-9b45-ddc49ce7d5b2"
12834 wsmap="managed"
12835 >
12836 <desc>
12837 Represents a storage controller that is attached to a virtual machine
12838 (<link to="IMachine" />). Just as hard disks are attached to storage
12839 controllers in a real computer, virtual hard disks (represented by
12840 <link to="IHardDisk" />) are attached to virtual storage controllers,
12841 represented by this interface.
12842
12843 VirtualBox supports three types of virtual storage controller hardware:
12844 IDE, SCSI, and SATA (see <link to="#bus" />). Depending on which of
12845 these three is used, certain sub-types are available and can be
12846 selected in <link to="#controllerType" />.
12847 </desc>
12848
12849 <attribute name="name" type="wstring" readonly="yes">
12850 <desc>
12851 Name of the storage controller, as originally specified with
12852 <link to="IMachine::addStorageController" />. This then uniquely
12853 identifies this controller with other method calls such as
12854 <link to="IMachine::attachHardDisk" />.
12855 </desc>
12856 </attribute>
12857
12858 <attribute name="maxDevicesPerPortCount" type="unsigned long" readonly="yes">
12859 <desc>
12860 Maximum number of devices which can be attached to one port.
12861 </desc>
12862 </attribute>
12863
12864 <attribute name="minPortCount" type="unsigned long" readonly="yes">
12865 <desc>
12866 Minimum number of ports that <link to="IStorageController::portCount"/> can be set to.
12867 </desc>
12868 </attribute>
12869
12870 <attribute name="maxPortCount" type="unsigned long" readonly="yes">
12871 <desc>
12872 Maximum number of ports that <link to="IStorageController::portCount"/> can be set to.
12873 </desc>
12874 </attribute>
12875
12876 <attribute name="instance" type="unsigned long">
12877 <desc>
12878 The instance number of the device in the running VM.
12879 </desc>
12880 </attribute>
12881
12882 <attribute name="portCount" type="unsigned long">
12883 <desc>
12884 The number of currently usable ports on the controller.
12885 The minimum and maximum number of ports for one controller are
12886 stored in <link to="IStorageController::minPortCount"/>
12887 and <link to="IStorageController::maxPortCount"/>.
12888 </desc>
12889 </attribute>
12890
12891 <attribute name="bus" type="StorageBus" readonly="yes">
12892 <desc>
12893 The connection type of the storage controller.
12894 </desc>
12895 </attribute>
12896
12897 <attribute name="controllerType" type="StorageControllerType">
12898 <desc>
12899 Type of the virtual storage controller. Depending on this value,
12900 VirtualBox will provide a different virtual storage controller hardware
12901 to the guest.
12902
12903 For SCSI controllers, the default type is LsiLogic.
12904 </desc>
12905 </attribute>
12906
12907 <method name="GetIDEEmulationPort">
12908 <desc>
12909 Gets the corresponding port number which is emulated as an IDE device.
12910
12911 <result name="E_INVALIDARG">
12912 The @a devicePosition is not in the range 0 to 3.
12913 </result>
12914 <result name="E_NOTIMPL">
12915 The storage controller type is not SATAIntelAhci.
12916 </result>
12917
12918 </desc>
12919 <param name="devicePosition" type="long" dir="in"/>
12920 <param name="portNumber" type="long" dir="return"/>
12921 </method>
12922
12923 <method name="SetIDEEmulationPort">
12924 <desc>
12925 Sets the port number which is emulated as an IDE device.
12926
12927 <result name="E_INVALIDARG">
12928 The @a devicePosition is not in the range 0 to 3 or the
12929 @a portNumber is not in the range 0 to 29.
12930 </result>
12931 <result name="E_NOTIMPL">
12932 The storage controller type is not SATAIntelAhci.
12933 </result>
12934
12935 </desc>
12936 <param name="devicePosition" type="long" dir="in"/>
12937 <param name="portNumber" type="long" dir="in"/>
12938 </method>
12939
12940 </interface>
12941
12942<if target="wsdl">
12943
12944 <!--
12945 // IManagedObjectRef
12946 /////////////////////////////////////////////////////////////////////////
12947 -->
12948
12949 <interface
12950 name="IManagedObjectRef" extends="$unknown"
12951 uuid="9474d09d-2313-46de-b568-a42b8718e8ed"
12952 internal="yes"
12953 wsmap="managed"
12954 wscpp="hardcoded"
12955 >
12956 <desc>
12957 Managed object reference.
12958
12959 Only within the webservice, a managed object reference (which is really
12960 an opaque number) allows a webservice client to address an object
12961 that lives in the address space of the webservice server.
12962
12963 Behind each managed object reference, there is a COM object that lives
12964 in the webservice server's address space. The COM object is not freed
12965 until the managed object reference is released, either by an explicit
12966 call to <link to="IManagedObjectRef::release" /> or by logging off from
12967 the webservice (<link to="IWebsessionManager::logoff" />), which releases
12968 all objects created during the webservice session.
12969
12970 Whenever a method call of the VirtualBox API returns a COM object, the
12971 webservice representation of that method will instead return a
12972 managed object reference, which can then be used to invoke methods
12973 on that object.
12974 </desc>
12975
12976 <method name="getInterfaceName">
12977 <desc>
12978 Returns the name of the interface that this managed object represents,
12979 for example, "IMachine", as a string.
12980 </desc>
12981 <param name="return" type="wstring" dir="return"/>
12982 </method>
12983
12984 <method name="release">
12985 <desc>
12986 Releases this managed object reference and frees the resources that
12987 were allocated for it in the webservice server process. After calling
12988 this method, the identifier of the reference can no longer be used.
12989 </desc>
12990 </method>
12991
12992 </interface>
12993
12994 <!--
12995 // IWebsessionManager
12996 /////////////////////////////////////////////////////////////////////////
12997 -->
12998
12999 <interface
13000 name="IWebsessionManager" extends="$unknown"
13001 uuid="dea1b4c7-2de3-418a-850d-7868617f7733"
13002 internal="yes"
13003 wsmap="global"
13004 wscpp="hardcoded"
13005 >
13006 <desc>
13007 Websession manager. This provides essential services
13008 to webservice clients.
13009 </desc>
13010 <method name="logon">
13011 <desc>
13012 Logs a new client onto the webservice and returns a managed object reference to
13013 the IVirtualBox instance, which the client can then use as a basis to further
13014 queries, since all calls to the VirtualBox API are based on the IVirtualBox
13015 interface, in one way or the other.
13016 </desc>
13017 <param name="username" type="wstring" dir="in"/>
13018 <param name="password" type="wstring" dir="in"/>
13019 <param name="return" type="IVirtualBox" dir="return"/>
13020 </method>
13021
13022 <method name="getSessionObject">
13023 <desc>
13024 Returns a managed object reference to the internal ISession object that was created
13025 for this web service session when the client logged on.
13026
13027 <see>ISession</see>
13028 </desc>
13029 <param name="refIVirtualBox" type="IVirtualBox" dir="in"/>
13030 <param name="return" type="ISession" dir="return"/>
13031 </method>
13032
13033 <method name="logoff">
13034 <desc>
13035 Logs off the client who has previously logged on with <link to="IWebsessionManager::logoff" />
13036 and destroys all resources associated with the session (most importantly, all
13037 managed objects created in the server while the session was active).
13038 </desc>
13039 <param name="refIVirtualBox" type="IVirtualBox" dir="in"/>
13040 </method>
13041
13042 </interface>
13043
13044</if>
13045
13046 <!--
13047 // IPerformanceCollector & friends
13048 /////////////////////////////////////////////////////////////////////////
13049 -->
13050
13051 <interface
13052 name="IPerformanceMetric" extends="$unknown"
13053 uuid="2a1a60ae-9345-4019-ad53-d34ba41cbfe9" wsmap="managed"
13054 >
13055 <desc>
13056 The IPerformanceMetric interface represents parameters of the given
13057 performance metric.
13058 </desc>
13059
13060 <attribute name="metricName" type="wstring" readonly="yes">
13061 <desc>
13062 Name of the metric.
13063 </desc>
13064 </attribute>
13065
13066 <attribute name="object" type="$unknown" readonly="yes">
13067 <desc>
13068 Object this metric belongs to.
13069 </desc>
13070 </attribute>
13071
13072 <attribute name="description" type="wstring" readonly="yes">
13073 <desc>
13074 Textual description of the metric.
13075 </desc>
13076 </attribute>
13077
13078 <attribute name="period" type="unsigned long" readonly="yes">
13079 <desc>
13080 Time interval between samples, measured in seconds.
13081 </desc>
13082 </attribute>
13083
13084 <attribute name="count" type="unsigned long" readonly="yes">
13085 <desc>
13086 Number of recent samples retained by the performance collector for this
13087 metric.
13088
13089 When the collected sample count exceeds this number, older samples
13090 are discarded.
13091 </desc>
13092 </attribute>
13093
13094 <attribute name="unit" type="wstring" readonly="yes">
13095 <desc>
13096 Unit of measurement.
13097 </desc>
13098 </attribute>
13099
13100 <attribute name="minimumValue" type="long" readonly="yes">
13101 <desc>
13102 Minimum possible value of this metric.
13103 </desc>
13104 </attribute>
13105
13106 <attribute name="maximumValue" type="long" readonly="yes">
13107 <desc>
13108 Maximum possible value of this metric.
13109 </desc>
13110 </attribute>
13111 </interface>
13112
13113 <interface
13114 name="IPerformanceCollector" extends="$unknown"
13115 uuid="e22e1acb-ac4a-43bb-a31c-17321659b0c6"
13116 wsmap="managed"
13117 >
13118 <desc>
13119 The IPerformanceCollector interface represents a service that collects and
13120 stores performance metrics data.
13121
13122 Performance metrics are associated with objects of interfaces like IHost and
13123 IMachine. Each object has a distinct set of performance metrics.
13124 The set can be obtained with <link to="IPerformanceCollector::getMetrics"/>.
13125
13126 Metric data is collected at the specified intervals and is retained
13127 internally. The interval and the number of retained samples can be set
13128 with <link to="IPerformanceCollector::setupMetrics" />.
13129
13130 Metrics are organized hierarchically, with each level separated by a
13131 slash (/) character. Generally, the scheme for metric names is like this:
13132
13133 <tt>Category/Metric[/SubMetric][:aggregation]</tt>
13134
13135 "Category/Metric" together form the base metric name. A base metric is the
13136 smallest unit for which a sampling interval and the number of retained
13137 samples can be set. Only base metrics can be enabled and disabled. All
13138 sub-metrics are collected when their base metric is collected.
13139 Collected values for any set of sub-metrics can be queried with
13140 <link to="IPerformanceCollector::queryMetricsData" />.
13141
13142 For example "CPU/Load/User:avg"
13143 metric name stands for the "CPU" category, "Load" metric, "User" submetric,
13144 "average" aggregate. An aggregate function is computed over all retained
13145 data. Valid aggregate functions are:
13146
13147 <ul>
13148 <li>avg -- average</li>
13149 <li>min -- minimum</li>
13150 <li>max -- maximum</li>
13151 </ul>
13152
13153 When setting up
13154 metric parameters, querying metric data, enabling or disabling metrics
13155 wildcards can be used in metric names to specify a subset of metrics. For
13156 example, to select all CPU-related metrics use <tt>CPU/*</tt>, all
13157 averages can be queried using <tt>*:avg</tt> and so on. To query metric
13158 values without aggregates <tt>*:</tt> can be used.
13159
13160 The valid names for base metrics are:
13161
13162 <ul>
13163 <li>CPU/Load</li>
13164 <li>CPU/MHz</li>
13165 <li>RAM/Usage</li>
13166 </ul>
13167
13168 The general sequence for collecting and retrieving the metrics is:
13169 <ul>
13170 <li>
13171 Obtain an instance of IPerformanceCollector with
13172 <link to="IVirtualBox::performanceCollector" />
13173 </li>
13174 <li>
13175 Allocate and populate an array with references to objects the metrics
13176 will be collected for. Use references to IHost and IMachine objects.
13177 </li>
13178 <li>
13179 Allocate and populate an array with base metric names the data will be
13180 collected for.
13181 </li>
13182 <li>
13183 Call <link to="IPerformanceCollector::setupMetrics" />. From now on the
13184 metric data will be collected and stored.
13185 </li>
13186 <li>
13187 Wait for the data to get collected.
13188 </li>
13189 <li>
13190 Allocate and populate an array with references to objects the metric
13191 values will be queried for. You can re-use the object array used for
13192 setting base metrics.
13193 </li>
13194 <li>
13195 Allocate and populate an array with metric names the data will be
13196 collected for. Note that metric names differ from base metric names.
13197 </li>
13198 <li>
13199 Call <link to="IPerformanceCollector::queryMetricsData" />. The data that
13200 have been collected so far are returned. Note that the values are still
13201 retained internally and data collection continues.
13202 </li>
13203 </ul>
13204
13205 For an example of usage refer to the following files in VirtualBox SDK:
13206 <ul>
13207 <li>
13208 Java: <tt>bindings/webservice/java/jax-ws/samples/metrictest.java</tt>
13209 </li>
13210 <li>
13211 Python: <tt>bindings/xpcom/python/sample/shellcommon.py</tt>
13212 </li>
13213 </ul>
13214 </desc>
13215
13216 <attribute name="metricNames" type="wstring" readonly="yes" safearray="yes">
13217 <desc>
13218 Array of unique names of metrics.
13219
13220 This array represents all metrics supported by the performance
13221 collector. Individual objects do not necessarily support all of them.
13222 <link to="IPerformanceCollector::getMetrics"/> can be used to get the
13223 list of supported metrics for a particular object.
13224 </desc>
13225 </attribute>
13226
13227 <method name="getMetrics">
13228 <desc>
13229 Returns parameters of specified metrics for a set of objects.
13230 <note>
13231 @c Null metrics array means all metrics. @c Null object array means
13232 all existing objects.
13233 </note>
13234 </desc>
13235 <param name="metricNames" type="wstring" dir="in" safearray="yes">
13236 <desc>
13237 Metric name filter. Currently, only a comma-separated list of metrics
13238 is supported.
13239 </desc>
13240 </param>
13241 <param name="objects" type="$unknown" dir="in" safearray="yes">
13242 <desc>
13243 Set of objects to return metric parameters for.
13244 </desc>
13245 </param>
13246 <param name="metrics" type="IPerformanceMetric" dir="return" safearray="yes">
13247 <desc>
13248 Array of returned metric parameters.
13249 </desc>
13250 </param>
13251 </method>
13252
13253 <method name="setupMetrics">
13254 <desc>
13255 Sets parameters of specified base metrics for a set of objects. Returns
13256 an array of <link to="IPerformanceMetric" /> describing the metrics have
13257 been affected.
13258 <note>
13259 @c Null or empty metric name array means all metrics. @c Null or empty
13260 object array means all existing objects. If metric name array contains
13261 a single element and object array contains many, the single metric
13262 name array element is applied to each object array element to form
13263 metric/object pairs.
13264 </note>
13265 </desc>
13266 <param name="metricNames" type="wstring" dir="in" safearray="yes">
13267 <desc>
13268 Metric name filter. Comma-separated list of metrics with wildcard
13269 support.
13270 </desc>
13271 </param>
13272 <param name="objects" type="$unknown" dir="in" safearray="yes">
13273 <desc>
13274 Set of objects to setup metric parameters for.
13275 </desc>
13276 </param>
13277 <param name="period" type="unsigned long" dir="in">
13278 <desc>
13279 Time interval in seconds between two consecutive samples of performance
13280 data.
13281 </desc>
13282 </param>
13283 <param name="count" type="unsigned long" dir="in">
13284 <desc>
13285 Number of samples to retain in performance data history. Older samples
13286 get discarded.
13287 </desc>
13288 </param>
13289 <param name="affectedMetrics" type="IPerformanceMetric" dir="return" safearray="yes">
13290 <desc>
13291 Array of metrics that have been modified by the call to this method.
13292 </desc>
13293 </param>
13294 </method>
13295
13296 <method name="enableMetrics">
13297 <desc>
13298 Turns on collecting specified base metrics. Returns an array of
13299 <link to="IPerformanceMetric" /> describing the metrics have been
13300 affected.
13301 <note>
13302 @c Null or empty metric name array means all metrics. @c Null or empty
13303 object array means all existing objects. If metric name array contains
13304 a single element and object array contains many, the single metric
13305 name array element is applied to each object array element to form
13306 metric/object pairs.
13307 </note>
13308 </desc>
13309 <param name="metricNames" type="wstring" dir="in" safearray="yes">
13310 <desc>
13311 Metric name filter. Comma-separated list of metrics with wildcard
13312 support.
13313 </desc>
13314 </param>
13315 <param name="objects" type="$unknown" dir="in" safearray="yes">
13316 <desc>
13317 Set of objects to enable metrics for.
13318 </desc>
13319 </param>
13320 <param name="affectedMetrics" type="IPerformanceMetric" dir="return" safearray="yes">
13321 <desc>
13322 Array of metrics that have been modified by the call to this method.
13323 </desc>
13324 </param>
13325 </method>
13326
13327 <method name="disableMetrics">
13328 <desc>
13329 Turns off collecting specified base metrics. Returns an array of
13330 <link to="IPerformanceMetric" /> describing the metrics have been
13331 affected.
13332 <note>
13333 @c Null or empty metric name array means all metrics. @c Null or empty
13334 object array means all existing objects. If metric name array contains
13335 a single element and object array contains many, the single metric
13336 name array element is applied to each object array element to form
13337 metric/object pairs.
13338 </note>
13339 </desc>
13340 <param name="metricNames" type="wstring" dir="in" safearray="yes">
13341 <desc>
13342 Metric name filter. Comma-separated list of metrics with wildcard
13343 support.
13344 </desc>
13345 </param>
13346 <param name="objects" type="$unknown" dir="in" safearray="yes">
13347 <desc>
13348 Set of objects to disable metrics for.
13349 </desc>
13350 </param>
13351 <param name="affectedMetrics" type="IPerformanceMetric" dir="return" safearray="yes">
13352 <desc>
13353 Array of metrics that have been modified by the call to this method.
13354 </desc>
13355 </param>
13356 </method>
13357
13358 <method name="queryMetricsData">
13359 <desc>
13360 Queries collected metrics data for a set of objects.
13361
13362 The data itself and related metric information are returned in seven
13363 parallel and one flattened array of arrays. Elements of
13364 <tt>returnMetricNames, returnObjects, returnUnits, returnScales,
13365 returnSequenceNumbers, returnDataIndices and returnDataLengths</tt> with
13366 the same index describe one set of values corresponding to a single
13367 metric.
13368
13369 The <tt>returnData</tt> parameter is a flattened array of arrays. Each
13370 start and length of a sub-array is indicated by
13371 <tt>returnDataIndices</tt> and <tt>returnDataLengths</tt>. The first
13372 value for metric <tt>metricNames[i]</tt> is at
13373 <tt>returnData[returnIndices[i]]</tt>.
13374
13375 <note>
13376 @c Null or empty metric name array means all metrics. @c Null or empty
13377 object array means all existing objects. If metric name array contains
13378 a single element and object array contains many, the single metric
13379 name array element is applied to each object array element to form
13380 metric/object pairs.
13381 </note>
13382 <note>
13383 Data collection continues behind the scenes after call to
13384 @c queryMetricsData. The return data can be seen as the snapshot of
13385 the current state at the time of @c queryMetricsData call. The
13386 internally kept metric values are not cleared by the call. This makes
13387 possible querying different subsets of metrics or aggregates with
13388 subsequent calls. If periodic querying is needed it is highly
13389 suggested to query the values with @c interval*count period to avoid
13390 confusion. This way a completely new set of data values will be
13391 provided by each query.
13392 </note>
13393 </desc>
13394 <param name="metricNames" type="wstring" dir="in" safearray="yes">
13395 <desc>
13396 Metric name filter. Comma-separated list of metrics with wildcard
13397 support.
13398 </desc>
13399 </param>
13400 <param name="objects" type="$unknown" dir="in" safearray="yes">
13401 <desc>
13402 Set of objects to query metrics for.
13403 </desc>
13404 </param>
13405 <param name="returnMetricNames" type="wstring" dir="out" safearray="yes">
13406 <desc>
13407 Names of metrics returned in @c returnData.
13408 </desc>
13409 </param>
13410 <param name="returnObjects" type="$unknown" dir="out" safearray="yes">
13411 <desc>
13412 Objects associated with metrics returned in @c returnData.
13413 </desc>
13414 </param>
13415 <param name="returnUnits" type="wstring" dir="out" safearray="yes">
13416 <desc>
13417 Units of measurement for each returned metric.
13418 </desc>
13419 </param>
13420 <param name="returnScales" type="unsigned long" dir="out" safearray="yes">
13421 <desc>
13422 Divisor that should be applied to return values in order to get
13423 floating point values. For example:
13424 <tt>(double)returnData[returnDataIndices[0]+i] / returnScales[0]</tt>
13425 will retrieve the floating point value of i-th sample of the first
13426 metric.
13427 </desc>
13428 </param>
13429 <param name="returnSequenceNumbers" type="unsigned long" dir="out" safearray="yes">
13430 <desc>
13431 Sequence numbers of the first elements of value sequences of particular metrics
13432 returned in @c returnData. For aggregate metrics it is the sequence number of
13433 the sample the aggregate started calculation from.
13434 </desc>
13435 </param>
13436 <param name="returnDataIndices" type="unsigned long" dir="out" safearray="yes">
13437 <desc>
13438 Indices of the first elements of value sequences of particular metrics
13439 returned in @c returnData.
13440 </desc>
13441 </param>
13442 <param name="returnDataLengths" type="unsigned long" dir="out" safearray="yes">
13443 <desc>
13444 Lengths of value sequences of particular metrics.
13445 </desc>
13446 </param>
13447 <param name="returnData" type="long" dir="return" safearray="yes">
13448 <desc>
13449 Flattened array of all metric data containing sequences of values for
13450 each metric.
13451 </desc>
13452 </param>
13453 </method>
13454
13455 </interface>
13456
13457 <module name="VBoxSVC" context="LocalServer">
13458 <class name="VirtualBox" uuid="B1A7A4F2-47B9-4A1E-82B2-07CCD5323C3F"
13459 namespace="virtualbox.org">
13460 <interface name="IVirtualBox" default="yes"/>
13461 </class>
13462 </module>
13463
13464 <module name="VBoxC" context="InprocServer" threadingModel="Free">
13465 <class name="Session" uuid="3C02F46D-C9D2-4f11-A384-53F0CF917214"
13466 namespace="virtualbox.org">
13467 <interface name="ISession" default="yes"/>
13468 </class>
13469 </module>
13470
13471</library>
13472
13473</idl>
13474
13475<!-- 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