VirtualBox

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

Last change on this file since 20963 was 20963, checked in by vboxsync, 16 years ago

Main: Added stubs for Cd & CdUp.

  • Property svn:eol-style set to native
File size: 497.2 KB
Line 
1<?xml version="1.0" ?>
2
3<!--
4 * :tabSize=2:indentSize=2:noTabs=true:
5 * :folding=explicit:collapseFolds=1:
6 *
7 * Master declaration for VirtualBox's Main API, represented
8 * by COM/XPCOM and web service interfaces.
9 *
10 * From this document, the build system generates several files
11 * via XSLT that are then used during the build process.
12 *
13 * Below is the list of XSL templates that operate on this file and
14 * output files they generate. These XSL templates must be updated
15 * whenever the schema of this file changes:
16 *
17 * 1. src/VBox/Main/idl/midl.xsl =>
18 * out/<platform>/bin/sdk/idl/VirtualBox.idl
19 * (MS COM interface definition file for Main API)
20 *
21 * 2. src/VBox/Main/idl/xpidl.xsl =>
22 * out/<platform>/bin/sdk/idl/VirtualBox_XPCOM.idl
23 * (XPCOM interface definition file for Main API)
24 *
25 * 3. src/VBox/Main/idl/doxygen.xsl =>
26 * out/<platform>/obj/src/VBox/Main/VirtualBox.idl
27 * (pseudo-IDL for Doxygen to generate the official Main API
28 * documentation)
29 *
30 * 4. src/VBox/Main/webservice/*.xsl =>
31 * a bunch of WSDL and C++ files
32 * (VirtualBox web service sources and SOAP mappers;
33 * see src/VBox/Main/webservice/Makefile.kmk for details)
34 *
35 * 5. src/VBox/Frontends/VirtualBox/include/COMWrappers.xsl =>
36 * out/<platform>/obj/src/VBox/Frontends/VirtualBox/VirtualBox/include/COMWrappers.h
37 * (smart Qt-based C++ wrapper classes for COM interfaces
38 * of the Main API)
39 *
40 * 6. src/VBox/Installer/win32/VirtualBox_TypeLib.xsl =>
41 * out/<platform>/obj/src/VBox/Installer/win32/VirtualBox_TypeLib.wxi
42 * (Main API TypeLib block for the WiX installer)
43 *
44 * 7. src/VBox/Runtime/common/err/errmsgvboxcom.xsl =>
45 * out/<platform>/obj/Runtime/errmsgvboxcomdata.h
46 * (<result> extraction for the %Rhrc format specifier)
47 *
48 Copyright (C) 2006-2009 Sun Microsystems, Inc.
49
50 This file is part of VirtualBox Open Source Edition (OSE), as
51 available from http://www.virtualbox.org. This file is free software;
52 you can redistribute it and/or modify it under the terms of the GNU
53 General Public License (GPL) as published by the Free Software
54 Foundation, in version 2 as it comes in the "COPYING" file of the
55 VirtualBox OSE distribution. VirtualBox OSE is distributed in the
56 hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
57
58 Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
59 Clara, CA 95054 USA or visit http://www.sun.com if you need
60 additional information or have any questions.
61-->
62
63<idl>
64
65<desc>
66 Welcome to the <b>VirtualBox Main API documentation</b>. This documentation
67 describes the so-called <i>VirtualBox Main API</i> which comprises all public
68 COM interfaces and components provided by the VirtualBox server and by the
69 VirtualBox client library.
70
71 VirtualBox employs a client-server design, meaning that whenever any part of
72 VirtualBox is running -- be it the Qt GUI, the VBoxManage command-line
73 interface or any virtual machine --, a dedicated server process named
74 VBoxSVC runs in the background. This allows multiple processes working with
75 VirtualBox to cooperate without conflicts. These processes communicate to each
76 other using inter-process communication facilities provided by the COM
77 implementation of the host computer.
78
79 On Windows platforms, the VirtualBox Main API uses Microsoft COM, a native COM
80 implementation. On all other platforms, Mozilla XPCOM, an open-source COM
81 implementation, is used.
82
83 All the parts that a typical VirtualBox user interacts with (the Qt GUI,
84 the VBoxManage command-line interface and the VBoxVRDP server) are technically
85 front-ends to the Main API and only use the interfaces that are documented
86 in this Main API documentation. This ensures that, with any given release
87 version of VirtualBox, all capabilities of the product that could be useful
88 to an external client program are always exposed by way of this API.
89
90 The VirtualBox Main API (also called the <i>VirtualBox COM library</i>)
91 contains two public component classes:
92 <tt>%VirtualBox.VirtualBox</tt> and <tt>%VirtualBox.Session</tt>, which
93 implement IVirtualBox and ISession interfaces respectively. These two classes
94 are of supreme importance and will be needed in order for any front-end
95 program to do anything useful. It is recommended to read the documentation of
96 the mentioned interfaces first.
97
98 The <tt>%VirtualBox.VirtualBox</tt> class is a singleton. This means that
99 there can be only one object of this class on the local machine at any given
100 time. This object is a parent of many other objects in the VirtualBox COM
101 library and lives in the VBoxSVC process. In fact, when you create an instance
102 of the <tt>VirtualBox.VirtualBox</tt>, the COM subsystem checks if the VBoxSVC
103 process is already running, starts it if not, and returns you a reference to
104 the <tt>VirtualBox</tt> object created in this process. When the last reference
105 to this object is released, the VBoxSVC process ends (with a 5 second delay to
106 protect from too frequent restarts).
107
108 The <tt>%VirtualBox.Session</tt> class is a regular component. You can create
109 as many <tt>Session</tt> objects as you need but all of them will live in a
110 process which issues the object instantiation call. <tt>Session</tt> objects
111 represent virtual machine sessions which are used to configure virtual
112 machines and control their execution.
113</desc>
114
115<if target="midl">
116 <cpp line="enum {"/>
117 <cpp line=" kTypeLibraryMajorVersion = 1,"/>
118 <cpp line=" kTypeLibraryMinorVersion = 0"/>
119 <cpp line="};"/>
120</if>
121
122<if target="xpidl">
123 <!-- NS_IMPL_THREADSAFE_ISUPPORTSxx_CI macros are placed here, for convenience -->
124 <cpp>
125/* currently, nsISupportsImpl.h lacks the below-like macros */
126
127#define NS_IMPL_THREADSAFE_QUERY_INTERFACE1_CI NS_IMPL_QUERY_INTERFACE1_CI
128#define NS_IMPL_THREADSAFE_QUERY_INTERFACE2_CI NS_IMPL_QUERY_INTERFACE2_CI
129
130#ifndef NS_IMPL_THREADSAFE_ISUPPORTS1_CI
131# define NS_IMPL_THREADSAFE_ISUPPORTS1_CI(_class, _interface) \
132 NS_IMPL_THREADSAFE_ADDREF(_class) \
133 NS_IMPL_THREADSAFE_RELEASE(_class) \
134 NS_IMPL_THREADSAFE_QUERY_INTERFACE1_CI(_class, _interface) \
135 NS_IMPL_CI_INTERFACE_GETTER1(_class, _interface)
136#endif
137
138#ifndef NS_IMPL_THREADSAFE_ISUPPORTS2_CI
139# define NS_IMPL_THREADSAFE_ISUPPORTS2_CI(_class, _i1, _i2) \
140 NS_IMPL_THREADSAFE_ADDREF(_class) \
141 NS_IMPL_THREADSAFE_RELEASE(_class) \
142 NS_IMPL_THREADSAFE_QUERY_INTERFACE2_CI(_class, _i1, _i2) \
143 NS_IMPL_CI_INTERFACE_GETTER2(_class, _i1, _i2)
144#endif
145
146#ifndef NS_IMPL_QUERY_INTERFACE1_AMBIGUOUS_CI
147# define NS_IMPL_QUERY_INTERFACE1_AMBIGUOUS_CI(_class, _i1, _ic1) \
148 NS_INTERFACE_MAP_BEGIN(_class) \
149 NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(_i1, _ic1) \
150 NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(nsISupports, _ic1) \
151 NS_IMPL_QUERY_CLASSINFO(_class) \
152 NS_INTERFACE_MAP_END
153#endif
154
155#ifndef NS_IMPL_QUERY_INTERFACE2_AMBIGUOUS_CI
156# define NS_IMPL_QUERY_INTERFACE2_AMBIGUOUS_CI(_class, _i1, _ic1, \
157 _i2, _ic2) \
158 NS_INTERFACE_MAP_BEGIN(_class) \
159 NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(_i1, _ic1) \
160 NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(_i2, _ic2) \
161 NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(nsISupports, _ic1) \
162 NS_IMPL_QUERY_CLASSINFO(_class) \
163 NS_INTERFACE_MAP_END
164#endif
165
166#define NS_IMPL_THREADSAFE_QUERY_INTERFACE1_AMBIGUOUS_CI NS_IMPL_QUERY_INTERFACE1_AMBIGUOUS_CI
167#define NS_IMPL_THREADSAFE_QUERY_INTERFACE2_AMBIGUOUS_CI NS_IMPL_QUERY_INTERFACE2_AMBIGUOUS_CI
168
169#ifndef NS_IMPL_THREADSAFE_ISUPPORTS1_AMBIGUOUS_CI
170# define NS_IMPL_THREADSAFE_ISUPPORTS1_AMBIGUOUS_CI(_class, _i1, _ic1) \
171 NS_IMPL_THREADSAFE_ADDREF(_class) \
172 NS_IMPL_THREADSAFE_RELEASE(_class) \
173 NS_IMPL_THREADSAFE_QUERY_INTERFACE1_AMBIGUOUS_CI(_class, _i1, _ic1) \
174 NS_IMPL_CI_INTERFACE_GETTER1(_class, _i1)
175#endif
176
177#ifndef NS_IMPL_THREADSAFE_ISUPPORTS2_AMBIGUOUS_CI
178# define NS_IMPL_THREADSAFE_ISUPPORTS2_AMBIGUOUS_CI(_class, _i1, _ic1, \
179 _i2, _ic2) \
180 NS_IMPL_THREADSAFE_ADDREF(_class) \
181 NS_IMPL_THREADSAFE_RELEASE(_class) \
182 NS_IMPL_THREADSAFE_QUERY_INTERFACE2_AMBIGUOUS_CI(_class, _i1, _ic1, \
183 _i2, _ic2) \
184 NS_IMPL_CI_INTERFACE_GETTER2(_class, _i1, _i2)
185#endif
186 </cpp>
187</if>
188
189<library
190 name="VirtualBox"
191 uuid="46137EEC-703B-4fe5-AFD4-7C9BBBBA0259"
192 version="1.3"
193 desc="VirtualBox Type Library"
194 appUuid="819B4D85-9CEE-493C-B6FC-64FFE759B3C9"
195 supportsErrorInfo="yes"
196>
197
198
199 <!--
200 // COM result codes for VirtualBox
201 /////////////////////////////////////////////////////////////////////////
202 -->
203
204 <descGroup id="VirtualBox_COM_result_codes" title="VirtualBox COM result codes">
205 <desc>
206 This section describes all VirtualBox-specific COM result codes that may
207 be returned by methods of VirtualBox COM interfaces in addition to
208 standard COM result codes.
209
210 Note that along with the result code, every VirtualBox method returns
211 extended error information through the IVirtualBoxErrorInfo interface on
212 failure. This interface is a preferred way to present the error to the end
213 user because it contains a human readable description of the error. Raw
214 result codes, both standard and described in this section, are intended to
215 be used by programs to analyze the reason of a failure and select an
216 appropriate course of action without involving the end user (for example,
217 retry the operation later or make a different call).
218
219 The standard COM result codes that may originate from our methods include:
220
221 <table>
222 <tr><td>E_INVALIDARG</td>
223 <td>
224 Returned when the value of the method's argument is not within the range
225 of valid values. This should not be confused with situations when the
226 value is within the range but simply doesn't suit the current object
227 state and there is a possibility that it will be accepted later (in such
228 cases VirtualBox-specific codes are returned, for example,
229 <link to="VBOX_E_OBJECT_NOT_FOUND"/>).
230 </td>
231 </tr>
232 <tr><td>E_POINTER</td>
233 <td>
234 Returned if a memory pointer for the output argument is invalid (for
235 example, @c null). Note that when pointers representing input
236 arguments (such as strings) are invalid, E_INVALIDARG is returned.
237 </td>
238 </tr>
239 <tr><td>E_ACCESSDENIED</td>
240 <td>
241 Returned when the called object is not ready. Since the lifetime of a
242 public COM object cannot be fully controlled by the implementation,
243 VirtualBox maintains the readiness state for all objects it creates and
244 returns this code in response to any method call on the object that was
245 deactivated by VirtualBox and is not functioning any more.
246 </td>
247 </tr>
248 <tr><td>E_OUTOFMEMORY</td>
249 <td>
250 Returned when a memory allocation operation fails.
251 </td>
252 </tr>
253 </table>
254 </desc>
255 </descGroup>
256
257 <!--
258 Note that src/VBox/Runtime/common/err/errmsgvboxcom.xsl will ignore
259 everything in <result>/<desc> after (and including) the first dot, so express
260 the matter of the error code in the first sentence and keep it short.
261 -->
262
263 <result name="VBOX_E_OBJECT_NOT_FOUND" value="0x80BB0001">
264 <desc>
265 Object corresponding to the supplied arguments does not exist.
266 </desc>
267 </result>
268
269 <result name="VBOX_E_INVALID_VM_STATE" value="0x80BB0002">
270 <desc>
271 Current virtual machine state prevents the operation.
272 </desc>
273 </result>
274
275 <result name="VBOX_E_VM_ERROR" value="0x80BB0003">
276 <desc>
277 Virtual machine error occurred attempting the operation.
278 </desc>
279 </result>
280
281 <result name="VBOX_E_FILE_ERROR" value="0x80BB0004">
282 <desc>
283 File not accessible or erroneous file contents.
284 </desc>
285 </result>
286
287 <result name="VBOX_E_IPRT_ERROR" value="0x80BB0005">
288 <desc>
289 Runtime subsystem error.
290 </desc>
291 </result>
292
293 <result name="VBOX_E_PDM_ERROR" value="0x80BB0006">
294 <desc>
295 Pluggable Device Manager error.
296 </desc>
297 </result>
298
299 <result name="VBOX_E_INVALID_OBJECT_STATE" value="0x80BB0007">
300 <desc>
301 Current object state prohibits operation.
302 </desc>
303 </result>
304
305 <result name="VBOX_E_HOST_ERROR" value="0x80BB0008">
306 <desc>
307 Host operating system related error.
308 </desc>
309 </result>
310
311 <result name="VBOX_E_NOT_SUPPORTED" value="0x80BB0009">
312 <desc>
313 Requested operation is not supported.
314 </desc>
315 </result>
316
317 <result name="VBOX_E_XML_ERROR" value="0x80BB000A">
318 <desc>
319 Invalid XML found.
320 </desc>
321 </result>
322
323 <result name="VBOX_E_INVALID_SESSION_STATE" value="0x80BB000B">
324 <desc>
325 Current session state prohibits operation.
326 </desc>
327 </result>
328
329 <result name="VBOX_E_OBJECT_IN_USE" value="0x80BB000C">
330 <desc>
331 Object being in use prohibits operation.
332 </desc>
333 </result>
334
335 <!--
336 Note that src/VBox/Runtime/common/err/errmsgvboxcom.xsl will ignore
337 everything in <result>/<desc> after (and including) the first dot, so express
338 the matter of the error code in the first sentence and keep it short.
339 -->
340
341 <descGroup/>
342
343 <!--
344 // all common enums
345 /////////////////////////////////////////////////////////////////////////
346 -->
347
348 <enum
349 name="TSBool"
350 uuid="523ff64d-842a-4b1a-80e7-c311b028cb3a"
351 >
352 <desc>
353 Boolean variable having a third state, default.
354 </desc>
355
356 <const name="False" value="0"/>
357 <const name="True" value="1"/>
358 <const name="Default" value="2"/>
359 </enum>
360
361 <enum
362 name="AccessMode"
363 uuid="1da0007c-ddf7-4be8-bcac-d84a1558785f"
364 >
365 <desc>
366 Access mode for opening files.
367 </desc>
368
369 <const name="ReadOnly" value="1"/>
370 <const name="ReadWrite" value="2"/>
371 </enum>
372
373 <enum
374 name="MachineState"
375 uuid="73bf04d0-7c4f-4684-9abf-d65a9ad74343"
376 >
377 <desc>
378 Virtual machine execution state.
379
380 This enumeration represents possible values of the <link
381 to="IMachine::state"/> attribute.
382
383 Below is the basic virtual machine state diagram. It shows how the state
384 changes during virtual machine execution. The text in square braces shows
385 a method of the IConsole interface that performs the given state
386 transition.
387
388 <pre>
389 +---------[powerDown()] &lt;- Stuck &lt;--[failure]-+
390 V |
391 +-&gt; PoweredOff --+--&gt;[powerUp()]--&gt; Starting --+ | +-----[resume()]-----+
392 | | | | V |
393 | Aborted -----+ +--&gt; Running --[pause()]--&gt; Paused
394 | | ^ | ^ |
395 | Saved -----------[powerUp()]--&gt; Restoring -+ | | | |
396 | ^ | | | |
397 | | +-----------------------------------------+-|-------------------+ +
398 | | | | |
399 | | +-- Saving &lt;--------[takeSnapshot()]&lt;-------+---------------------+
400 | | | |
401 | +-------- Saving &lt;--------[saveState()]&lt;----------+---------------------+
402 | | |
403 +-------------- Stopping -------[powerDown()]&lt;----------+---------------------+
404 </pre>
405
406 Note that states to the right from PoweredOff, Aborted and Saved in the
407 above diagram are called <i>online VM states</i>. These states
408 represent the virtual machine which is being executed in a dedicated
409 process (usually with a GUI window attached to it where you can see the
410 activity of the virtual machine and interact with it). There are two
411 special pseudo-states, FirstOnline and LastOnline, that can be used in
412 relational expressions to detect if the given machine state is online or
413 not:
414
415 <pre>
416 if (machine.GetState() &gt;= MachineState_FirstOnline &amp;&amp;
417 machine.GetState() &lt;= MachineState_LastOnline)
418 {
419 ...the machine is being executed...
420 }
421 </pre>
422
423 When the virtual machine is in one of the online VM states (that is, being
424 executed), only a few machine settings can be modified. Methods working
425 with such settings contain an explicit note about that. An attempt to
426 change any oter setting or perform a modifying operation during this time
427 will result in the <link to="VBOX_E_INVALID_VM_STATE"/> error.
428
429 All online states except Running, Paused and Stuck are transitional: they
430 represent temporary conditions of the virtual machine that will last as
431 long as the operation that initiated such a condition.
432
433 The Stuck state is a special case. It means that execution of the machine
434 has reached the "Guru Meditation" condition. This condition indicates an
435 internal VMM (virtual machine manager) failure which may happen as a
436 result of either an unhandled low-level virtual hardware exception or one
437 of the recompiler exceptions (such as the <i>too-many-traps</i>
438 condition).
439
440 Note also that any online VM state may transit to the Aborted state. This
441 happens if the process that is executing the virtual machine terminates
442 unexpectedly (for example, crashes). Other than that, the Aborted state is
443 equivalent to PoweredOff.
444
445 There are also a few additional state diagrams that do not deal with
446 virtual machine execution and therefore are shown separately. The states
447 shown on these diagrams are called <i>offline VM states</i> (this includes
448 PoweredOff, Aborted and Saved too).
449
450 The first diagram shows what happens when a lengthy setup operation is
451 being executed (such as <link to="IMachine::attachHardDisk"/>).
452
453 <pre>
454 +----------------------------------(same state as before the call)------+
455 | |
456 +-&gt; PoweredOff --+ |
457 | | |
458 |-&gt; Aborted -----+--&gt;[lengthy VM configuration call] --&gt; SettingUp -----+
459 | |
460 +-&gt; Saved -------+
461 </pre>
462
463 The next two diagrams demonstrate the process of taking a snapshot of a
464 powered off virtual machine and performing one of the "discard..."
465 operations, respectively.
466
467 <pre>
468 +----------------------------------(same state as before the call)------+
469 | |
470 +-&gt; PoweredOff --+ |
471 | +--&gt;[takeSnapshot()] -------------------&gt; Saving ------+
472 +-&gt; Aborted -----+
473
474 +-&gt; PoweredOff --+
475 | |
476 | Aborted -----+--&gt;[discardSnapshot() ]-------------&gt; Discarding --+
477 | | [discardCurrentState()] |
478 +-&gt; Saved -------+ [discardCurrentSnapshotAndState()] |
479 | |
480 +---(Saved if restored from an online snapshot, PoweredOff otherwise)---+
481 </pre>
482
483 Note that the Saving state is present in both the offline state group and
484 online state group. Currently, the only way to determine what group is
485 assumed in a particular case is to remember the previous machine state: if
486 it was Running or Paused, then Saving is an online state, otherwise it is
487 an offline state. This inconsistency may be removed in one of the future
488 versions of VirtualBox by adding a new state.
489
490 <note internal="yes">
491 For whoever decides to touch this enum: In order to keep the
492 comparisons involving FirstOnline and LastOnline pseudo-states valid,
493 the numeric values of these states must be correspondingly updated if
494 needed: for any online VM state, the condition
495 <tt>FirstOnline &lt;= state &lt;= LastOnline</tt> must be
496 @c true. The same relates to transient states for which
497 the condition <tt>FirstOnline &lt;= state &lt;= LastOnline</tt> must be
498 @c true.
499 </note>
500 </desc>
501
502 <const name="Null" value="0">
503 <desc>Null value (never used by the API).</desc>
504 </const>
505 <const name="PoweredOff" value="1">
506 <desc>
507 The machine is not running.
508 </desc>
509 </const>
510 <const name="Saved" value="2">
511 <desc>
512 The machine is not currently running, but the execution state of the machine
513 has been saved to an external file when it was running.
514 </desc>
515 </const>
516 <const name="Aborted" value="3">
517 <desc>
518 The process running the machine has terminated abnormally.
519 </desc>
520 </const>
521 <const name="Running" value="4">
522 <desc>
523 The machine is currently being executed.
524 <note internal="yes">
525 For whoever decides to touch this enum: In order to keep the
526 comparisons in the old source code valid, this state must immediately
527 precede the Paused state.
528 </note>
529 </desc>
530 </const>
531 <const name="Paused" value="5">
532 <desc>
533 Execution of the machine has been paused.
534 <note internal="yes">
535 For whoever decides to touch this enum: In order to keep the
536 comparisons in the old source code valid, this state must immediately
537 follow the Running state.
538 </note>
539 </desc>
540 </const>
541 <const name="Stuck" value="6">
542 <desc>
543 Execution of the machine has reached the "Guru Meditation"
544 condition.
545 </desc>
546 </const>
547 <const name="Starting" value="7">
548 <desc>
549 Machine is being started after powering it on from a
550 zero execution state.
551 </desc>
552 </const>
553 <const name="Stopping" value="8">
554 <desc>
555 Machine is being normally stopped powering it off, or after the guest OS
556 has initiated a shutdown sequence.
557 </desc>
558 </const>
559 <const name="Saving" value="9">
560 <desc>
561 Machine is saving its execution state to a file or an online
562 snapshot of the machine is being taken.
563 </desc>
564 </const>
565 <const name="Restoring" value="10">
566 <desc>
567 Execution state of the machine is being restored from a file
568 after powering it on from the saved execution state.
569 </desc>
570 </const>
571 <const name="Discarding" value="11">
572 <desc>
573 Snapshot of the machine is being discarded.
574 </desc>
575 </const>
576 <const name="SettingUp" value="12">
577 <desc>
578 Lengthy setup operation is in progress.
579 </desc>
580 </const>
581
582 <const name="FirstOnline" value="4" wsmap="suppress"> <!-- Running -->
583 <desc>
584 Pseudo-state: first online state (for use in relational expressions).
585 </desc>
586 </const>
587 <const name="LastOnline" value="10" wsmap="suppress"> <!-- Restoring -->
588 <desc>
589 Pseudo-state: last online state (for use in relational expressions).
590 </desc>
591 </const>
592
593 <const name="FirstTransient" value="7" wsmap="suppress"> <!-- Starting -->
594 <desc>
595 Pseudo-state: first transient state (for use in relational expressions).
596 </desc>
597 </const>
598 <const name="LastTransient" value="12" wsmap="suppress"> <!-- SettingUp -->
599 <desc>
600 Pseudo-state: last transient state (for use in relational expressions).
601 </desc>
602 </const>
603
604 </enum>
605
606 <enum
607 name="SessionState"
608 uuid="CF2700C0-EA4B-47ae-9725-7810114B94D8"
609 >
610 <desc>
611 Session state. This enumeration represents possible values of
612 <link to="IMachine::sessionState"/> and <link to="ISession::state"/>
613 attributes. See individual enumerator descriptions for the meaning for
614 every value.
615 </desc>
616
617 <const name="Null" value="0">
618 <desc>Null value (never used by the API).</desc>
619 </const>
620 <const name="Closed" value="1">
621 <desc>
622 The machine has no open sessions (<link to="IMachine::sessionState"/>);
623 the session is closed (<link to="ISession::state"/>)
624 </desc>
625 </const>
626 <const name="Open" value="2">
627 <desc>
628 The machine has an open direct session (<link to="IMachine::sessionState"/>);
629 the session is open (<link to="ISession::state"/>)
630 </desc>
631 </const>
632 <const name="Spawning" value="3">
633 <desc>
634 A new (direct) session is being opened for the machine
635 as a result of <link to="IVirtualBox::openRemoteSession"/>
636 call (<link to="IMachine::sessionState"/>);
637 the session is currently being opened
638 as a result of <link to="IVirtualBox::openRemoteSession"/>
639 call (<link to="ISession::state"/>)
640 </desc>
641 </const>
642 <const name="Closing" value="4">
643 <desc>
644 The direct session is being closed (<link to="IMachine::sessionState"/>);
645 the session is being closed (<link to="ISession::state"/>)
646 </desc>
647 </const>
648 </enum>
649
650 <enum
651 name="SessionType"
652 uuid="A13C02CB-0C2C-421E-8317-AC0E8AAA153A"
653 >
654 <desc>
655 Session type. This enumeration represents possible values of the
656 <link to="ISession::type"/> attribute.
657 </desc>
658
659 <const name="Null" value="0">
660 <desc>Null value (never used by the API).</desc>
661 </const>
662 <const name="Direct" value="1">
663 <desc>
664 Direct session
665 (opened by <link to="IVirtualBox::openSession"/>)
666 </desc>
667 </const>
668 <const name="Remote" value="2">
669 <desc>
670 Remote session
671 (opened by <link to="IVirtualBox::openRemoteSession"/>)
672 </desc>
673 </const>
674 <const name="Existing" value="3">
675 <desc>
676 Existing session
677 (opened by <link to="IVirtualBox::openExistingSession"/>)
678 </desc>
679 </const>
680 </enum>
681
682 <enum
683 name="DeviceType"
684 uuid="6d9420f7-0b56-4636-99f9-7346f1b01e57"
685 >
686 <desc>
687 Device type.
688 </desc>
689 <const name="Null" value="0">
690 <desc>
691 Null value, may also mean "no device" (not allowed for
692 <link to="IConsole::getDeviceActivity"/>).
693 </desc>
694 </const>
695 <const name="Floppy" value="1">
696 <desc>Floppy device.</desc>
697 </const>
698 <const name="DVD" value="2">
699 <desc>CD/DVD-ROM device.</desc>
700 </const>
701 <const name="HardDisk" value="3">
702 <desc>Hard disk device.</desc>
703 </const>
704 <const name="Network" value="4">
705 <desc>Network device.</desc>
706 </const>
707 <const name="USB" value="5">
708 <desc>USB device.</desc>
709 </const>
710 <const name="SharedFolder" value="6">
711 <desc>Shared folder device.</desc>
712 </const>
713 </enum>
714
715 <enum
716 name="DeviceActivity"
717 uuid="6FC8AEAA-130A-4eb5-8954-3F921422D707"
718 >
719 <desc>
720 Device activity for <link to="IConsole::getDeviceActivity"/>.
721 </desc>
722
723 <const name="Null" value="0"/>
724 <const name="Idle" value="1"/>
725 <const name="Reading" value="2"/>
726 <const name="Writing" value="3"/>
727 </enum>
728
729 <enum
730 name="ClipboardMode"
731 uuid="33364716-4008-4701-8f14-be0fa3d62950"
732 >
733 <desc>
734 Host-Guest clipboard interchange mode.
735 </desc>
736
737 <const name="Disabled" value="0"/>
738 <const name="HostToGuest" value="1"/>
739 <const name="GuestToHost" value="2"/>
740 <const name="Bidirectional" value="3"/>
741 </enum>
742
743 <enum
744 name="Scope"
745 uuid="7c91096e-499e-4eca-9f9b-9001438d7855"
746 >
747 <desc>
748 Scope of the operation.
749
750 A generic enumeration used in various methods to define the action or
751 argument scope.
752 </desc>
753
754 <const name="Global" value="0"/>
755 <const name="Machine" value="1"/>
756 <const name="Session" value="2"/>
757 </enum>
758
759 <enum
760 name="GuestStatisticType"
761 uuid="aa7c1d71-aafe-47a8-9608-27d2d337cf55"
762 >
763 <desc>
764 Statistics type for <link to="IGuest::getStatistic"/>.
765 </desc>
766
767 <const name="CPULoad_Idle" value="0">
768 <desc>
769 Idle CPU load (0-100%) for last interval.
770 </desc>
771 </const>
772 <const name="CPULoad_Kernel" value="1">
773 <desc>
774 Kernel CPU load (0-100%) for last interval.
775 </desc>
776 </const>
777 <const name="CPULoad_User" value="2">
778 <desc>
779 User CPU load (0-100%) for last interval.
780 </desc>
781 </const>
782 <const name="Threads" value="3">
783 <desc>
784 Total number of threads in the system.
785 </desc>
786 </const>
787 <const name="Processes" value="4">
788 <desc>
789 Total number of processes in the system.
790 </desc>
791 </const>
792 <const name="Handles" value="5">
793 <desc>
794 Total number of handles in the system.
795 </desc>
796 </const>
797 <const name="MemoryLoad" value="6">
798 <desc>
799 Memory load (0-100%).
800 </desc>
801 </const>
802 <const name="PhysMemTotal" value="7">
803 <desc>
804 Total physical memory in megabytes.
805 </desc>
806 </const>
807 <const name="PhysMemAvailable" value="8">
808 <desc>
809 Free physical memory in megabytes.
810 </desc>
811 </const>
812 <const name="PhysMemBalloon" value="9">
813 <desc>
814 Ballooned physical memory in megabytes.
815 </desc>
816 </const>
817 <const name="MemCommitTotal" value="10">
818 <desc>
819 Total amount of memory in the committed state in megabytes.
820 </desc>
821 </const>
822 <const name="MemKernelTotal" value="11">
823 <desc>
824 Total amount of memory used by the guest OS's kernel in megabytes.
825 </desc>
826 </const>
827 <const name="MemKernelPaged" value="12">
828 <desc>
829 Total amount of paged memory used by the guest OS's kernel in megabytes.
830 </desc>
831 </const>
832 <const name="MemKernelNonpaged" value="13">
833 <desc>
834 Total amount of non-paged memory used by the guest OS's kernel in megabytes.
835 </desc>
836 </const>
837 <const name="MemSystemCache" value="14">
838 <desc>
839 Total amount of memory used by the guest OS's system cache in megabytes.
840 </desc>
841 </const>
842 <const name="PageFileSize" value="15">
843 <desc>
844 Pagefile size in megabytes.
845 </desc>
846 </const>
847 <const name="SampleNumber" value="16">
848 <desc>
849 Statistics sample number
850 </desc>
851 </const>
852 <const name="MaxVal" value="17"/>
853 </enum>
854
855 <enum
856 name="BIOSBootMenuMode"
857 uuid="ae4fb9f7-29d2-45b4-b2c7-d579603135d5"
858 >
859 <desc>
860 BIOS boot menu mode.
861 </desc>
862
863 <const name="Disabled" value="0"/>
864 <const name="MenuOnly" value="1"/>
865 <const name="MessageAndMenu" value="2"/>
866 </enum>
867
868 <enum
869 name="DriveState"
870 uuid="cb7233b7-c519-42a5-8310-1830953cacbc"
871 >
872 <const name="Null" value="0">
873 <desc>Null value (never used by the API).</desc>
874 </const>
875 <const name="NotMounted" value="1"/>
876 <const name="ImageMounted" value="2"/>
877 <const name="HostDriveCaptured" value="3"/>
878 </enum>
879
880 <enum
881 name="ProcessorFeature"
882 uuid="b8353b35-705d-4796-9967-ebfb7ba54af4"
883 >
884 <desc>
885 CPU features.
886 </desc>
887
888 <const name="HWVirtEx" value="0"/>
889 <const name="PAE" value="1"/>
890 <const name="LongMode" value="2"/>
891 </enum>
892
893
894 <!--
895 // IVirtualBoxErrorInfo
896 /////////////////////////////////////////////////////////////////////////
897 -->
898
899 <interface
900 name="IVirtualBoxErrorInfo" extends="$errorinfo"
901 uuid="bcae7fc3-3fd0-4bac-923c-ec1596c7bc83"
902 supportsErrorInfo="no"
903 wsmap="suppress"
904 >
905 <desc>
906 The IVirtualBoxErrorInfo interface represents extended error information.
907
908 Extended error information can be set by VirtualBox components after
909 unsuccessful or partially successful method invocation. This information
910 can be retrieved by the calling party as an IVirtualBoxErrorInfo object
911 and then shown to the client in addition to the plain 32-bit result code.
912
913 In MS COM, this interface extends the IErrorInfo interface,
914 in XPCOM, it extends the nsIException interface. In both cases,
915 it provides a set of common attributes to retrieve error
916 information.
917
918 Sometimes invocation of some component's method may involve methods of
919 other components that may also fail (independently of this method's
920 failure), or a series of non-fatal errors may precede a fatal error that
921 causes method failure. In cases like that, it may be desirable to preserve
922 information about all errors happened during method invocation and deliver
923 it to the caller. The <link to="#next"/> attribute is intended
924 specifically for this purpose and allows to represent a chain of errors
925 through a single IVirtualBoxErrorInfo object set after method invocation.
926
927 Note that errors are stored to a chain in the reverse order, i.e. the
928 initial error object you query right after method invocation is the last
929 error set by the callee, the object it points to in the @a next attribute
930 is the previous error and so on, up to the first error (which is the last
931 in the chain).
932 </desc>
933
934 <attribute name="resultCode" type="long" readonly="yes">
935 <desc>
936 Result code of the error.
937 Usually, it will be the same as the result code returned
938 by the method that provided this error information, but not
939 always. For example, on Win32, CoCreateInstance() will most
940 likely return E_NOINTERFACE upon unsuccessful component
941 instantiation attempt, but not the value the component factory
942 returned. Value is typed 'long', not 'result',
943 to make interface usable from scripting languages.
944 <note>
945 In MS COM, there is no equivalent.
946 In XPCOM, it is the same as nsIException::result.
947 </note>
948 </desc>
949 </attribute>
950
951 <attribute name="interfaceID" type="uuid" readonly="yes">
952 <desc>
953 UUID of the interface that defined the error.
954 <note>
955 In MS COM, it is the same as IErrorInfo::GetGUID.
956 In XPCOM, there is no equivalent.
957 </note>
958 </desc>
959 </attribute>
960
961 <attribute name="component" type="wstring" readonly="yes">
962 <desc>
963 Name of the component that generated the error.
964 <note>
965 In MS COM, it is the same as IErrorInfo::GetSource.
966 In XPCOM, there is no equivalent.
967 </note>
968 </desc>
969 </attribute>
970
971 <attribute name="text" type="wstring" readonly="yes">
972 <desc>
973 Text description of the error.
974 <note>
975 In MS COM, it is the same as IErrorInfo::GetDescription.
976 In XPCOM, it is the same as nsIException::message.
977 </note>
978 </desc>
979 </attribute>
980
981 <attribute name="next" type="IVirtualBoxErrorInfo" readonly="yes">
982 <desc>
983 Next error object if there is any, or @c null otherwise.
984 <note>
985 In MS COM, there is no equivalent.
986 In XPCOM, it is the same as nsIException::inner.
987 </note>
988 </desc>
989 </attribute>
990
991 </interface>
992
993
994 <!--
995 // IVirtualBox
996 /////////////////////////////////////////////////////////////////////////
997 -->
998
999 <interface
1000 name="IVirtualBoxCallback" extends="$unknown"
1001 uuid="2990059f-5bc8-4635-8415-658917cd3186"
1002 wsmap="suppress"
1003 >
1004 <method name="onMachineStateChange">
1005 <desc>
1006 The execution state of the given machine has changed.
1007 <see>IMachine::state</see>
1008 </desc>
1009 <param name="machineId" type="wstring" dir="in">
1010 <desc>ID of the machine this event relates to.</desc>
1011 </param>
1012 <param name="state" type="MachineState" dir="in">
1013 <desc>New execution state.</desc>
1014 </param>
1015 </method>
1016
1017 <method name="onMachineDataChange">
1018 <desc>
1019 Any of the settings of the given machine has changed.
1020 </desc>
1021 <param name="machineId" type="wstring" dir="in">
1022 <desc>ID of the machine this event relates to.</desc>
1023 </param>
1024 </method>
1025
1026 <method name="onExtraDataCanChange">
1027 <desc>
1028 Notification when someone tries to change extra data for
1029 either the given machine or (if @c null) global extra data.
1030 This gives the chance to veto against changes.
1031 </desc>
1032 <param name="machineId" type="wstring" dir="in">
1033 <desc>
1034 ID of the machine this event relates to
1035 (@c null ID for global extra data change requests).
1036 </desc>
1037 </param>
1038 <param name="key" type="wstring" dir="in">
1039 <desc>
1040 Extra data key for the attempted write.
1041 </desc>
1042 </param>
1043 <param name="value" type="wstring" dir="in">
1044 <desc>
1045 Extra data value for the given key.
1046 </desc>
1047 </param>
1048 <param name="error" type="wstring" dir="out">
1049 <desc>
1050 Optional error message describing the reason of the
1051 veto (ignored if this notification returns @c true).
1052 </desc>
1053 </param>
1054 <param name="allowChange" type="boolean" dir="return">
1055 <desc>
1056 Flag to indicate whether the callee agrees (@c true)
1057 or vetoes against the change (@c false).
1058 </desc>
1059 </param>
1060 </method>
1061
1062 <method name="onExtraDataChange">
1063 <desc>
1064 Notification when machine specific or global extra data
1065 has changed.
1066 </desc>
1067 <param name="machineId" type="wstring" dir="in">
1068 <desc>
1069 ID of the machine this event relates to.
1070 Null for global extra data changes.
1071 </desc>
1072 </param>
1073 <param name="key" type="wstring" dir="in">
1074 <desc>
1075 Extra data key that has changed.
1076 </desc>
1077 </param>
1078 <param name="value" type="wstring" dir="in">
1079 <desc>
1080 Extra data value for the given key.
1081 </desc>
1082 </param>
1083 </method>
1084
1085 <method name="onMediaRegistered">
1086 <desc>
1087 The given media was registered or unregistered
1088 within this VirtualBox installation.
1089
1090 The @a mediaType parameter describes what type of
1091 media the specified @a mediaId refers to. Possible
1092 values are:
1093
1094 <ul>
1095 <li><link to="DeviceType_HardDisk"/>: the media is a hard disk
1096 that, if registered, can be obtained using the
1097 <link to="IVirtualBox::getHardDisk"/> call.</li>
1098 <li><link to="DeviceType_DVD"/>: the media is a CD/DVD image
1099 that, if registered, can be obtained using the
1100 <link to="IVirtualBox::getDVDImage"/> call.</li>
1101 <li><link to="DeviceType_Floppy"/>: the media is a Floppy image
1102 that, if registered, can be obtained using the
1103 <link to="IVirtualBox::getFloppyImage"/> call.</li>
1104 </ul>
1105
1106 Note that if this is a deregistration notification,
1107 there is no way to access the object representing the
1108 unregistered media. It is supposed that the
1109 application will do required cleanup based on the
1110 @a mediaId value.
1111 </desc>
1112 <param name="mediaId" type="wstring" dir="in">
1113 <desc>ID of the media this event relates to.</desc>
1114 </param>
1115 <param name="mediaType" type="DeviceType" dir="in">
1116 <desc>Type of the media this event relates to.</desc>
1117 </param>
1118 <param name="registered" type="boolean" dir="in">
1119 <desc>
1120 If @c true, the media was registered, otherwise it was
1121 unregistered.
1122 </desc>
1123 </param>
1124 </method>
1125
1126 <method name="onMachineRegistered">
1127 <desc>
1128 The given machine was registered or unregistered
1129 within this VirtualBox installation.
1130 </desc>
1131 <param name="machineId" type="wstring" dir="in">
1132 <desc>ID of the machine this event relates to.</desc>
1133 </param>
1134 <param name="registered" type="boolean" dir="in">
1135 <desc>
1136 If @c true, the machine was registered, otherwise it was
1137 unregistered.
1138 </desc>
1139 </param>
1140 </method>
1141
1142 <method name="onSessionStateChange">
1143 <desc>
1144 The state of the session for the given machine was changed.
1145 <see>IMachine::sessionState</see>
1146 </desc>
1147 <param name="machineId" type="wstring" dir="in">
1148 <desc>ID of the machine this event relates to.</desc>
1149 </param>
1150 <param name="state" type="SessionState" dir="in">
1151 <desc>New session state.</desc>
1152 </param>
1153 </method>
1154
1155 <method name="onSnapshotTaken">
1156 <desc>
1157 A new snapshot of the machine has been taken.
1158 <see>ISnapshot</see>
1159 </desc>
1160 <param name="machineId" type="wstring" dir="in">
1161 <desc>ID of the machine this event relates to.</desc>
1162 </param>
1163 <param name="snapshotId" type="wstring" dir="in">
1164 <desc>ID of the new snapshot.</desc>
1165 </param>
1166 </method>
1167
1168 <method name="onSnapshotDiscarded">
1169 <desc>
1170 Snapshot of the given machine has been discarded.
1171
1172 <note>
1173 This notification is delivered <b>after</b> the snapshot
1174 object has been uninitialized on the server (so that any
1175 attempt to call its methods will return an error).
1176 </note>
1177
1178 <see>ISnapshot</see>
1179 </desc>
1180 <param name="machineId" type="wstring" dir="in">
1181 <desc>ID of the machine this event relates to.</desc>
1182 </param>
1183 <param name="snapshotId" type="wstring" dir="in">
1184 <desc>
1185 ID of the discarded snapshot. @c null means the current machine
1186 state has been discarded (restored from the current snapshot).
1187 </desc>
1188 </param>
1189 </method>
1190
1191 <method name="onSnapshotChange">
1192 <desc>
1193 Snapshot properties (name and/or description) have been changed.
1194 <see>ISnapshot</see>
1195 </desc>
1196 <param name="machineId" type="wstring" dir="in">
1197 <desc>ID of the machine this event relates to.</desc>
1198 </param>
1199 <param name="snapshotId" type="wstring" dir="in">
1200 <desc>ID of the changed snapshot.</desc>
1201 </param>
1202 </method>
1203
1204 <method name="onGuestPropertyChange">
1205 <desc>
1206 Notification when a guest property has changed.
1207 </desc>
1208 <param name="machineId" type="wstring" dir="in">
1209 <desc>
1210 ID of the machine this event relates to.
1211 </desc>
1212 </param>
1213 <param name="name" type="wstring" dir="in">
1214 <desc>
1215 The name of the property that has changed.
1216 </desc>
1217 </param>
1218 <param name="value" type="wstring" dir="in">
1219 <desc>
1220 The new property value.
1221 </desc>
1222 </param>
1223 <param name="flags" type="wstring" dir="in">
1224 <desc>
1225 The new property flags.
1226 </desc>
1227 </param>
1228 </method>
1229
1230 </interface>
1231
1232 <interface
1233 name="IDHCPServer" extends="$unknown"
1234 uuid="6cfe387c-74fb-4ca7-bff6-973bec8af7a3"
1235 wsmap="managed"
1236 >
1237 <desc>
1238 The IDHCPServer interface represents the vbox dhcp server configuration.
1239
1240 To enumerate all the dhcp servers on the host, use the
1241 <link to="IVirtualBox::DHCPServers"/> attribute.
1242 </desc>
1243
1244 <attribute name="enabled" type="boolean">
1245 <desc>
1246 specifies if the dhcp server is enabled
1247 </desc>
1248 </attribute>
1249
1250 <attribute name="IPAddress" type="wstring" readonly="yes">
1251 <desc>
1252 specifies server IP
1253 </desc>
1254 </attribute>
1255
1256 <attribute name="networkMask" type="wstring" readonly="yes">
1257 <desc>
1258 specifies server network mask
1259 </desc>
1260 </attribute>
1261
1262 <attribute name="networkName" type="wstring" readonly="yes">
1263 <desc>
1264 specifies internal network name the server is used for
1265 </desc>
1266 </attribute>
1267
1268 <attribute name="lowerIP" type="wstring" readonly="yes">
1269 <desc>
1270 specifies from IP adrres in server address range
1271 </desc>
1272 </attribute>
1273
1274 <attribute name="upperIP" type="wstring" readonly="yes">
1275 <desc>
1276 specifies to IP adrres in server address range
1277 </desc>
1278 </attribute>
1279
1280 <method name="setConfiguration">
1281 <desc>
1282 configures the server
1283 <result name="E_INVALIDARG">
1284 invalid configuration supplied
1285 </result>
1286 </desc>
1287 <param name="IPAddress" type="wstring" dir="in">
1288 <desc>
1289 server IP address
1290 </desc>
1291 </param>
1292 <param name="networkMask" type="wstring" dir="in">
1293 <desc>
1294 server network mask
1295 </desc>
1296 </param>
1297 <param name="FromIPAddress" type="wstring" dir="in">
1298 <desc>
1299 server From IP address for address range
1300 </desc>
1301 </param>
1302 <param name="ToIPAddress" type="wstring" dir="in">
1303 <desc>
1304 server To IP address for address range
1305 </desc>
1306 </param>
1307 </method>
1308
1309 <method name="start">
1310 <desc>
1311 Starts DHCP server process.
1312 <result name="E_FAIL">
1313 Failed to start the process.
1314 </result>
1315 </desc>
1316 <param name="networkName" type="wstring" dir="in">
1317 <desc>
1318 Name of internal network DHCP server should attach to.
1319 </desc>
1320 </param>
1321 <param name="trunkName" type="wstring" dir="in">
1322 <desc>
1323 Name of internal network trunk.
1324 </desc>
1325 </param>
1326 <param name="trunkType" type="wstring" dir="in">
1327 <desc>
1328 Type of internal network trunk.
1329 </desc>
1330 </param>
1331 </method>
1332
1333 <method name="stop">
1334 <desc>
1335 Stops DHCP server process.
1336 <result name="E_FAIL">
1337 Failed to stop the process.
1338 </result>
1339 </desc>
1340 </method>
1341 </interface>
1342
1343 <interface
1344 name="IVirtualBox" extends="$dispatched"
1345 uuid="3f4ab53a-199b-4526-a91a-93ff62e456b8"
1346 wsmap="managed"
1347 >
1348 <desc>
1349 The IVirtualBox interface represents the main interface exposed by the
1350 product that provides virtual machine management.
1351
1352 An instance of IVirtualBox is required for the product to do anything
1353 useful. Even though the interface does not expose this, internally,
1354 IVirtualBox is implemented as a singleton and actually lives in the
1355 process of the VirtualBox server (VBoxSVC.exe). This makes sure that
1356 IVirtualBox can track the state of all virtual machines on a particular
1357 host, regardless of which frontend started them.
1358
1359 To enumerate all the virtual machines on the host, use the
1360 <link to="IVirtualBox::machines"/> attribute.
1361 </desc>
1362
1363 <attribute name="version" type="wstring" readonly="yes">
1364 <desc>
1365 A string representing the version number of the product. The
1366 format is 3 integer numbers divided by dots (e.g. 1.0.1). The
1367 last number represents the build number and will frequently change.
1368 </desc>
1369 </attribute>
1370
1371 <attribute name="revision" type="unsigned long" readonly="yes">
1372 <desc>
1373 The internal build revision number of the product.
1374 </desc>
1375 </attribute>
1376
1377 <attribute name="packageType" type="wstring" readonly="yes">
1378 <desc>
1379 A string representing the package type of this product. The
1380 format is OS_ARCH_DIST where OS is either WINDOWS, LINUX,
1381 SOLARIS, DARWIN. ARCH is either 32BITS or 64BITS. DIST
1382 is either GENERIC, UBUNTU_606, UBUNTU_710, or something like
1383 this.
1384 </desc>
1385 </attribute>
1386
1387 <attribute name="homeFolder" type="wstring" readonly="yes">
1388 <desc>
1389 Full path to the directory where the global settings file,
1390 <tt>VirtualBox.xml</tt>, is stored.
1391
1392 In this version of VirtualBox, the value of this property is
1393 always <tt>&lt;user_dir&gt;/.VirtualBox</tt> (where
1394 <tt>&lt;user_dir&gt;</tt> is the path to the user directory,
1395 as determined by the host OS), and cannot be changed.
1396
1397 This path is also used as the base to resolve relative paths in
1398 places where relative paths are allowed (unless otherwise
1399 expressly indicated).
1400 </desc>
1401 </attribute>
1402
1403 <attribute name="settingsFilePath" type="wstring" readonly="yes">
1404 <desc>
1405 Full name of the global settings file.
1406 The value of this property corresponds to the value of
1407 <link to="#homeFolder"/> plus <tt>/VirtualBox.xml</tt>.
1408 </desc>
1409 </attribute>
1410
1411 <attribute name="settingsFileVersion" type="wstring" readonly="yes">
1412 <desc>
1413 Current version of the format of the global VirtualBox settings file
1414 (<tt>VirtualBox.xml</tt>).
1415
1416 The version string has the following format:
1417 <pre>
1418 x.y-platform
1419 </pre>
1420 where @c x and @c y are the major and the minor format
1421 versions, and @c platform is the platform identifier.
1422
1423 The current version usually matches the value of the
1424 <link to="#settingsFormatVersion"/> attribute unless the
1425 settings file was created by an older version of VirtualBox and there
1426 was a change of the settings file format since then.
1427
1428 Note that VirtualBox automatically converts settings files from older
1429 versions to the most recent version when reading them (usually at
1430 VirtualBox startup) but it doesn't save the changes back until
1431 you call a method that implicitly saves settings (such as
1432 <link to="#setExtraData"/>) or call <link to="#saveSettings"/>
1433 explicitly. Therefore, if the value of this attribute differs from the
1434 value of <link to="#settingsFormatVersion"/>, then it
1435 means that the settings file was converted but the result of the
1436 conversion is not yet saved to disk.
1437
1438 The above feature may be used by interactive front-ends to inform users
1439 about the settings file format change and offer them to explicitly save
1440 all converted settings files (the global and VM-specific ones),
1441 optionally create backup copies of the old settings files before saving,
1442 etc.
1443
1444 <see>settingsFormatVersion, saveSettingsWithBackup()</see>
1445 </desc>
1446 </attribute>
1447
1448 <attribute name="settingsFormatVersion" type="wstring" readonly="yes">
1449 <desc>
1450 Most recent version of the settings file format.
1451
1452 The version string has the following format:
1453 <pre>
1454 x.y-platform
1455 </pre>
1456 where @c x and @c y are the major and the minor format
1457 versions, and @c platform is the platform identifier.
1458
1459 VirtualBox uses this version of the format when saving settings files
1460 (either as a result of method calls that require to save settings or as
1461 a result of an explicit call to <link to="#saveSettings"/>).
1462
1463 <see>settingsFileVersion</see>
1464 </desc>
1465 </attribute>
1466
1467 <attribute name="host" type="IHost" readonly="yes">
1468 <desc>Associated host object.</desc>
1469 </attribute>
1470
1471 <attribute name="systemProperties" type="ISystemProperties" readonly="yes">
1472 <desc>Associated system information object.</desc>
1473 </attribute>
1474
1475 <attribute name="machines" type="IMachine" readonly="yes" safearray="yes">
1476 <desc>
1477 Array of machine objects registered within this VirtualBox instance.
1478 </desc>
1479 </attribute>
1480
1481 <attribute name="hardDisks" type="IHardDisk" readonly="yes" safearray="yes">
1482 <desc>
1483 Array of hard disk objects known to this VirtualBox installation.
1484
1485 This array contains only base (root) hard disks. All differencing
1486 hard disks of the given base hard disk can be enumerated using
1487 <link to="IHardDisk::children"/>.
1488 </desc>
1489 </attribute>
1490
1491 <attribute name="DVDImages" type="IDVDImage" readonly="yes" safearray="yes">
1492 <desc>
1493 Array of CD/DVD image objects registered with this VirtualBox instance.
1494 </desc>
1495 </attribute>
1496
1497 <attribute name="floppyImages" type="IFloppyImage" readonly="yes" safearray="yes">
1498 <desc>
1499 Array of floppy image objects registered with this VirtualBox instance.
1500 </desc>
1501 </attribute>
1502
1503 <attribute name="progressOperations" type="IProgress" readonly="yes" safearray="yes"/>
1504
1505 <attribute name="guestOSTypes" type="IGuestOSType" readonly="yes" safearray="yes"/>
1506
1507 <attribute name="sharedFolders" type="ISharedFolder" readonly="yes" safearray="yes">
1508 <desc>
1509 Collection of global shared folders. Global shared folders are
1510 available to all virtual machines.
1511
1512 New shared folders are added to the collection using
1513 <link to="#createSharedFolder"/>. Existing shared folders can be
1514 removed using <link to="#removeSharedFolder"/>.
1515
1516 <note>
1517 In the current version of the product, global shared folders are not
1518 implemented and therefore this collection is always empty.
1519 </note>
1520 </desc>
1521 </attribute>
1522
1523 <attribute name="performanceCollector" type="IPerformanceCollector" readonly="yes">
1524 <desc>
1525 Associated performance collector object.
1526 </desc>
1527 </attribute>
1528
1529 <attribute name="DHCPServers" type="IDHCPServer" safearray="yes" readonly="yes">
1530 <desc>
1531 dhcp server settings.
1532 </desc>
1533 </attribute>
1534
1535 <method name="createMachine">
1536 <desc>
1537 Creates a new virtual machine.
1538
1539 The new machine is created unregistered, with the initial configuration
1540 set according to the specified guest OS type. A typical sequence of
1541 actions to create a new virtual machine is as follows:
1542
1543 <ol>
1544 <li>
1545 Call this method to have a new machine created. The returned machine
1546 object will be "mutable" allowing to change any machine property.
1547 </li>
1548
1549 <li>
1550 Configure the machine using the appropriate attributes and methods.
1551 </li>
1552
1553 <li>
1554 Call <link to="IMachine::saveSettings" /> to write the settings
1555 to the machine's XML settings file. The configuration of the newly
1556 created machine will not be saved to disk until this method is
1557 called.
1558 </li>
1559
1560 <li>
1561 Call <link to="#registerMachine" /> to add the machine to the list
1562 of machines known to VirtualBox.
1563 </li>
1564 </ol>
1565
1566 You should specify valid name for the newly created machine when calling
1567 this method. See the <link to="IMachine::name"/> attribute description
1568 for more details about the machine name.
1569
1570 The specified guest OS type identifier must match an ID of one of known
1571 guest OS types listed in the <link to="IVirtualBox::guestOSTypes"/>
1572 array.
1573
1574 Every machine has a <i>settings file</i> that is used to store
1575 the machine configuration. This file is stored in a directory called the
1576 <i>machine settings subfolder</i>. Both the settings subfolder and file
1577 will have a name that corresponds to the name of the virtual machine.
1578 You can specify where to create the machine setting subfolder using the
1579 @a baseFolder argument. The base folder can be absolute (full path) or
1580 relative to the <link to="IVirtualBox::homeFolder">VirtualBox home
1581 directory</link>.
1582
1583 If @a baseFolder is a @c null or empty string (which is recommended), the
1584 <link to="ISystemProperties::defaultMachineFolder">default machine
1585 settings folder</link> will be used as a base folder for the created
1586 machine. Otherwise the given base folder will be used. In either case,
1587 the full path to the resulting settings file has the following
1588 structure:
1589 <pre>
1590 &lt;base_folder&gt;/&lt;machine_name&gt;/&lt;machine_name&gt;.xml
1591 </pre>
1592
1593 Note that if the resulting settings file already exists, this method
1594 will fail with <link to="VBOX_E_FILE_ERROR"/>.
1595
1596 Optionally, you may specify an UUID of to assign to the created machine.
1597 However, this is not recommended and you should normally pass an empty
1598 (@c null) UUID to this method so that a new UUID will be automatically
1599 generated for every created machine. You can use UUID
1600 00000000-0000-0000-0000-000000000000 as @c null value.
1601
1602 <note>
1603 There is no way to change the name of the settings file or
1604 subfolder of the created machine directly.
1605 </note>
1606
1607 <result name="VBOX_E_OBJECT_NOT_FOUND">
1608 @a osTypeId is invalid.
1609 </result>
1610 <result name="VBOX_E_FILE_ERROR">
1611 Resulting settings file name is invalid or the settings file already
1612 exists or could not be created due to an I/O error.
1613 </result>
1614 <result name="E_INVALIDARG">
1615 @a name is empty or @c null.
1616 </result>
1617 </desc>
1618
1619 <param name="name" type="wstring" dir="in">
1620 <desc>Machine name.</desc>
1621 </param>
1622 <param name="osTypeId" type="wstring" dir="in">
1623 <desc>Guest OS Type ID.</desc>
1624 </param>
1625 <param name="baseFolder" type="wstring" dir="in">
1626 <desc>Base machine folder (optional).</desc>
1627 </param>
1628 <param name="id" type="wstring" dir="in">
1629 <desc>Machine UUID (optional).</desc>
1630 </param>
1631 <param name="machine" type="IMachine" dir="return">
1632 <desc>Created machine object.</desc>
1633 </param>
1634 </method>
1635
1636 <method name="createLegacyMachine">
1637 <desc>
1638 Creates a new virtual machine in "legacy" mode, using the specified
1639 settings file to store machine settings.
1640
1641 As opposed to machines created by <link to="#createMachine"/>,
1642 the settings file of the machine created in "legacy" mode is not
1643 automatically renamed when the machine name is changed -- it will always
1644 remain the same as specified in this method call.
1645
1646 The specified settings file name can be absolute (full path) or relative
1647 to the <link to="IVirtualBox::homeFolder">VirtualBox home
1648 directory</link>. If the file name doesn't contain an extension, the
1649 default extension (.xml) will be appended.
1650
1651 Note that the configuration of the newly created machine is not
1652 saved to disk (and therefore no settings file is created)
1653 until <link to="IMachine::saveSettings"/> is called. If the
1654 specified settings file already exists, this method
1655 will fail with <link to="VBOX_E_FILE_ERROR"/>.
1656
1657 See <link to="#createMachine"/> for more information.
1658
1659 @deprecated This method may be removed later. Use <link
1660 to="IVirtualBox::createMachine"/> instead.
1661
1662 <note>
1663 There is no way to change the name of the settings file
1664 of the machine created in "legacy" mode.
1665 </note>
1666
1667 <result name="VBOX_E_OBJECT_NOT_FOUND">
1668 @a osTypeId is invalid.
1669 </result>
1670 <result name="VBOX_E_FILE_ERROR">
1671 @a settingsFile is invalid or the settings file already exists or
1672 could not be created due to an I/O error.
1673 </result>
1674 <result name="E_INVALIDARG">
1675 @a name or @a settingsFile is empty or @c null.
1676 </result>
1677 </desc>
1678
1679 <param name="name" type="wstring" dir="in">
1680 <desc>Machine name.</desc>
1681 </param>
1682 <param name="osTypeId" type="wstring" dir="in">
1683 <desc>Machine OS Type ID.</desc>
1684 </param>
1685 <param name="settingsFile" type="wstring" dir="in">
1686 <desc>Name of the machine settings file.</desc>
1687 </param>
1688 <param name="id" type="wstring" dir="in">
1689 <desc>Machine UUID (optional).</desc>
1690 </param>
1691 <param name="machine" type="IMachine" dir="return">
1692 <desc>Created machine object.</desc>
1693 </param>
1694 </method>
1695
1696 <method name="openMachine">
1697 <desc>
1698 Opens a virtual machine from the existing settings file.
1699 The opened machine remains unregistered until you call
1700 <link to="#registerMachine"/>.
1701
1702 The specified settings file name can be absolute
1703 (full path) or relative to the <link to="IVirtualBox::homeFolder">
1704 VirtualBox home directory</link>. This file must exist
1705 and must be a valid machine settings file whose contents
1706 will be used to construct the machine object.
1707
1708 @deprecated Will be removed soon.
1709 <result name="VBOX_E_FILE_ERROR">
1710 Settings file name invalid, not found or sharing violation.
1711 </result>
1712 </desc>
1713 <param name="settingsFile" type="wstring" dir="in">
1714 <desc>
1715 Name of the machine settings file.
1716 </desc>
1717 </param>
1718 <param name="machine" type="IMachine" dir="return">
1719 <desc>Opened machine object.</desc>
1720 </param>
1721 <note>
1722 <link to="IMachine::settingsModified"/> will return
1723 @c false for the created machine, until any of machine settings
1724 are changed.
1725 </note>
1726 </method>
1727
1728 <method name="registerMachine">
1729 <desc>
1730
1731 Registers the machine previously created using
1732 <link to="#createMachine"/> or opened using
1733 <link to="#openMachine"/> within this VirtualBox installation. After
1734 successful method invocation, the
1735 <link to="IVirtualBoxCallback::onMachineRegistered"/> signal is sent
1736 to all registered callbacks.
1737
1738 <note>
1739 This method implicitly calls <link to="IMachine::saveSettings"/>
1740 to save all current machine settings before registering it.
1741 </note>
1742
1743 <result name="VBOX_E_OBJECT_NOT_FOUND">
1744 No matching virtual machine found.
1745 </result>
1746 <result name="VBOX_E_INVALID_OBJECT_STATE">
1747 Virtual machine was not created within this VirtualBox instance.
1748 </result>
1749
1750 </desc>
1751 <param name="machine" type="IMachine" dir="in"/>
1752 </method>
1753
1754 <method name="getMachine">
1755 <desc>
1756 Attempts to find a virtual machine given its UUID.
1757 To look up a machine by name, use <link to="IVirtualBox::findMachine" />
1758 instead.
1759
1760 <result name="VBOX_E_OBJECT_NOT_FOUND">
1761 Could not find registered machine matching @a id.
1762 </result>
1763
1764 </desc>
1765 <param name="id" type="wstring" dir="in"/>
1766 <param name="machine" type="IMachine" dir="return"/>
1767 </method>
1768
1769 <method name="findMachine">
1770 <desc>
1771 Attempts to find a virtual machine given its name.
1772 To look up a machine by UUID, use <link to="IVirtualBox::getMachine" />
1773 instead.
1774
1775 <result name="VBOX_E_OBJECT_NOT_FOUND">
1776 Could not find registered machine matching @a name.
1777 </result>
1778
1779 </desc>
1780 <param name="name" type="wstring" dir="in"/>
1781 <param name="machine" type="IMachine" dir="return"/>
1782 </method>
1783
1784 <method name="unregisterMachine">
1785 <desc>
1786
1787 Unregisters the machine previously registered using
1788 <link to="#registerMachine"/>. After successful method invocation, the
1789 <link to="IVirtualBoxCallback::onMachineRegistered"/> signal is sent
1790 to all registered callbacks.
1791
1792 <note>
1793 The specified machine must not be in the Saved state, have an open
1794 (or a spawning) direct session associated with it, have snapshots or
1795 have hard disks attached.
1796 </note>
1797
1798 <note>
1799 This method implicitly calls <link to="IMachine::saveSettings"/> to
1800 save all current machine settings before unregistering it.
1801 </note>
1802
1803 <note>
1804 If the given machine is inaccessible (see
1805 <link to="IMachine::accessible"/>), it will be unregistered and
1806 fully uninitialized right afterwards. As a result, the returned
1807 machine object will be unusable and an attempt to call
1808 <b>any</b> method will return the "Object not ready" error.
1809 </note>
1810
1811 <result name="VBOX_E_OBJECT_NOT_FOUND">
1812 Could not find registered machine matching @a id.
1813 </result>
1814 <result name="VBOX_E_INVALID_VM_STATE">
1815 Machine is in Saved state.
1816 </result>
1817 <result name="VBOX_E_INVALID_OBJECT_STATE">
1818 Machine has snapshot or open session or hard disk attached.
1819 </result>
1820
1821 </desc>
1822 <param name="id" type="wstring" dir="in">
1823 <desc>UUID of the machine to unregister.</desc>
1824 </param>
1825 <param name="machine" type="IMachine" dir="return">
1826 <desc>Unregistered machine object.</desc>
1827 </param>
1828 </method>
1829
1830 <method name="createAppliance">
1831 <desc>
1832 Creates a new appliance object, which represents an appliance in the Open Virtual Machine
1833 Format (OVF). This can then be used to import an OVF appliance into VirtualBox or to export
1834 machines as an OVF appliance; see the documentation for <link to="IAppliance" /> for details.
1835 </desc>
1836 <param name="appliance" type="IAppliance" dir="return">
1837 <desc>New appliance.</desc>
1838 </param>
1839 </method>
1840
1841 <method name="createHardDisk">
1842 <desc>
1843 Creates a new base hard disk object that will use the given storage
1844 format and location for hard disk data.
1845
1846 Note that the actual storage unit is not created by this method. In
1847 order to do it, and before you are able to attach the created hard disk
1848 to virtual machines, you must call one of the following methods to
1849 allocate a format-specific storage unit at the specified location:
1850 <ul>
1851 <li><link to="IHardDisk::createBaseStorage"/></li>
1852 <li><link to="IHardDisk::createDiffStorage"/></li>
1853 </ul>
1854
1855 Some hard disk attributes, such as <link to="IHardDisk::id"/>, may
1856 remain uninitialized until the hard disk storage unit is successfully
1857 created by one of the above methods.
1858
1859 After the storage unit is successfully created, the hard disk gets
1860 remembered by this VirtualBox installation and will be accessible
1861 through <link to="#getHardDisk"/> and <link to="#findHardDisk"/>
1862 methods. Remembered root (base) hard disks are also returned as part of
1863 the <link to="#hardDisks"/> array. See IHardDisk for more details.
1864
1865 The list of all storage formats supported by this VirtualBox
1866 installation can be obtained using
1867 <link to="ISystemProperties::hardDiskFormats"/>. If the @a format
1868 attribute is empty or @c null then the default storage format
1869 specified by <link to="ISystemProperties::defaultHardDiskFormat"/> will
1870 be used for creating a storage unit of the hard disk.
1871
1872 Note that the format of the location string is storage format specific.
1873 See <link to="IMedium::location"/>, IHardDisk and
1874 <link to="ISystemProperties::defaultHardDiskFolder"/> for more details.
1875
1876 <result name="VBOX_E_OBJECT_NOT_FOUND">
1877 @a format identifier is invalid. See
1878 <link to="ISystemProperties::hardDiskFormats"/>.
1879 </result>
1880 <result name="VBOX_E_FILE_ERROR">
1881 @a location is a not valid file name (for file-based formats only).
1882 </result>
1883 <result name="E_INVALIDARG">
1884 @a format is a @c null or empty string.
1885 </result>
1886 </desc>
1887 <param name="format" type="wstring" dir="in">
1888 <desc>
1889 Identifier of the storage format to use for the new hard disk.
1890 </desc>
1891 </param>
1892 <param name="location" type="wstring" dir="in">
1893 <desc>
1894 Location of the storage unit for the new hard disk.
1895 </desc>
1896 </param>
1897 <param name="hardDisk" type="IHardDisk" dir="return">
1898 <desc>Created hard disk object.</desc>
1899 </param>
1900 </method>
1901
1902 <method name="openHardDisk">
1903 <desc>
1904 Opens a hard disk from an existing location, optionally replacing
1905 the image UUID and/or parent UUID.
1906
1907 After the hard disk is successfully opened by this method, it gets
1908 remembered by (known to) this VirtualBox installation and will be
1909 accessible through <link to="#getHardDisk"/> and
1910 <link to="#findHardDisk"/> methods. Remembered root (base) hard disks
1911 are also returned as part of the <link to="#hardDisks"/> array and can
1912 be attached to virtual machines. See IHardDisk for more details.
1913
1914 If a differencing hard disk is to be opened by this method, the
1915 operation will succeed only if its parent hard disk and all ancestors,
1916 if any, are already known to this VirtualBox installation (for example,
1917 were opened by this method before).
1918
1919 This method tries to guess the storage format of the specified hard disk
1920 by reading hard disk data at the specified location.
1921
1922 If @a write is ReadWrite (which it should be), the image is opened for
1923 read/write access and must have according permissions, as VirtualBox
1924 may actually write status information into the disk's metadata sections.
1925
1926 Note that write access is required for all typical image usage in VirtualBox,
1927 since VirtualBox may need to write metadata such as a UUID into the image.
1928 The only exception is opening a source image temporarily for copying and
1929 cloning when the image will quickly be closed again.
1930
1931 Note that the format of the location string is storage format specific.
1932 See <link to="IMedium::location"/>, IHardDisk and
1933 <link to="ISystemProperties::defaultHardDiskFolder"/> for more details.
1934
1935 <result name="VBOX_E_FILE_ERROR">
1936 Invalid hard disk storage file location or could not find the hard
1937 disk at the specified location.
1938 </result>
1939 <result name="VBOX_E_IPRT_ERROR">
1940 Could not get hard disk storage format.
1941 </result>
1942 <result name="E_INVALIDARG">
1943 Invalid hard disk storage format.
1944 </result>
1945
1946 </desc>
1947 <param name="location" type="wstring" dir="in">
1948 <desc>
1949 Location of the storage unit that contains hard disk data in one of
1950 the supported storage formats.
1951 </desc>
1952 </param>
1953 <param name="accessMode" type="AccessMode" dir="in">
1954 <desc>
1955 Determines whether to open the image in read/write or read-only mode.
1956 </desc>
1957 </param>
1958 <param name="setImageId" type="boolean" dir="in">
1959 <desc>
1960 Select whether a new image UUID is set or not.
1961 </desc>
1962 </param>
1963 <param name="imageId" type="wstring" dir="in">
1964 <desc>
1965 New UUID for the image. If an empty string is passed, then a new
1966 UUID is automatically created. Specifying a zero UUIDs is not valid.
1967 </desc>
1968 </param>
1969 <param name="setParentId" type="boolean" dir="in">
1970 <desc>
1971 Select whether a new parent UUID is set or not.
1972 </desc>
1973 </param>
1974 <param name="parentId" type="wstring" dir="in">
1975 <desc>
1976 New parent UUID for the image. If an empty string is passed, then a
1977 new UUID is automatically created, provided @a setParentId is
1978 @c true. A zero UUID is valid.
1979 </desc>
1980 </param>
1981 <param name="hardDisk" type="IHardDisk" dir="return">
1982 <desc>Opened hard disk object.</desc>
1983 </param>
1984 </method>
1985
1986 <method name="getHardDisk" const="yes">
1987 <desc>
1988 Returns a hard disk with the given UUID.
1989
1990 The hard disk with the given UUID must be known to this VirtualBox
1991 installation, i.e. it must be previously created by
1992 <link to="#createHardDisk"/> or opened by <link
1993 to="#openHardDisk"/>, or attached to some known virtual machine.
1994
1995 <result name="VBOX_E_OBJECT_NOT_FOUND">
1996 No hard disk object matching @a id found.
1997 </result>
1998
1999 </desc>
2000 <param name="id" type="wstring" dir="in">
2001 <desc>UUID of the hard disk to look for.</desc>
2002 </param>
2003 <param name="hardDisk" type="IHardDisk" dir="return">
2004 <desc>Found hard disk object.</desc>
2005 </param>
2006 </method>
2007
2008 <method name="findHardDisk">
2009 <desc>
2010 Returns a hard disk that uses the given location to store hard
2011 disk data.
2012
2013 The given hard disk must be known to this VirtualBox installation, i.e.
2014 it must be previously created by
2015 <link to="#createHardDisk"/> or opened by <link
2016 to="#openHardDisk"/>, or attached to some known virtual machine.
2017
2018 The search is done by comparing the value of the @a location argument to
2019 the <link to="IHardDisk::location"/> attribute of each known hard
2020 disk.
2021
2022 For locations represented by file names in the host's file system, the
2023 requested location can be a path relative to the
2024 <link to="IVirtualBox::homeFolder">VirtualBox home folder</link>. If
2025 only a file name without any path is given, the
2026 <link to="ISystemProperties::defaultHardDiskFolder"> default hard disk
2027 folder</link> will be prepended to the file name before searching. Note
2028 that on case sensitive file systems, a case sensitive comparison is
2029 performed, otherwise the case of symbols in the file path is ignored.
2030
2031 <result name="VBOX_E_OBJECT_NOT_FOUND">
2032 No hard disk object matching @a location found.
2033 </result>
2034
2035 </desc>
2036 <param name="location" type="wstring" dir="in">
2037 <desc>Location string to search for.</desc>
2038 </param>
2039 <param name="hardDisk" type="IHardDisk" dir="return">
2040 <desc>Found hard disk object.</desc>
2041 </param>
2042 </method>
2043
2044 <method name="openDVDImage">
2045 <desc>
2046 Opens a CD/DVD image contained in the specified file of the supported
2047 format and assigns it the given UUID.
2048
2049 After the image is successfully opened by this method, it gets
2050 remembered by (known to) this VirtualBox installation and will be
2051 accessible through <link to="#getDVDImage"/> and
2052 <link to="#findDVDImage"/> methods. Remembered images are also
2053 returned as part of the <link to="#DVDImages"/> array and can be mounted
2054 to virtual machines. See IMedium for more details.
2055
2056 See <link to="IMedium::location"/> to get more details about the format
2057 of the location string.
2058
2059 <note>
2060 Currently only ISO 9960 CD/DVD images are supported by VirtualBox.
2061 </note>
2062
2063 <result name="VBOX_E_FILE_ERROR">
2064 Invalid CD/DVD image file location or could not find the CD/DVD
2065 image at the specified location.
2066 </result>
2067 <result name="VBOX_E_INVALID_OBJECT_STATE">
2068 CD/DVD image already exists in the media registry.
2069 </result>
2070
2071 </desc>
2072 <param name="location" type="wstring" dir="in">
2073 <desc>
2074 Full path to the file that contains a valid CD/DVD image.
2075 </desc>
2076 </param>
2077 <param name="id" type="wstring" dir="in">
2078 <desc>
2079 UUID to assign to the given image within this VirtualBox installation.
2080 If an empty (@c null) UUID is specified, the system will randomly
2081 generate a new UUID.
2082 </desc>
2083 </param>
2084 <param name="image" type="IDVDImage" dir="return">
2085 <desc>Opened CD/DVD image object.</desc>
2086 </param>
2087 </method>
2088
2089 <method name="getDVDImage">
2090 <desc>
2091 Returns a CD/DVD image with the given UUID.
2092
2093 The image with the given UUID must be known to this VirtualBox
2094 installation, i.e. it must be previously opened by <link
2095 to="#openDVDImage"/>, or mounted to some known virtual machine.
2096
2097 <result name="VBOX_E_OBJECT_NOT_FOUND">
2098 No matching DVD image found in the media registry.
2099 </result>
2100
2101 </desc>
2102 <param name="id" type="wstring" dir="in">
2103 <desc>UUID of the image to look for.</desc>
2104 </param>
2105 <param name="image" type="IDVDImage" dir="return">
2106 <desc>Found CD/DVD image object.</desc>
2107 </param>
2108 </method>
2109
2110 <method name="findDVDImage">
2111 <desc>
2112 Returns a CD/DVD image with the given image location.
2113
2114 The image with the given UUID must be known to this VirtualBox
2115 installation, i.e. it must be previously opened by <link
2116 to="#openDVDImage"/>, or mounted to some known virtual machine.
2117
2118 The search is done by comparing the value of the @a location argument to
2119 the <link to="IMedium::location"/> attribute of each known CD/DVD image.
2120
2121 The requested location can be a path relative to the
2122 <link to="IVirtualBox::homeFolder">VirtualBox home folder</link>. If
2123 only a file name without any path is given, the
2124 <link to="ISystemProperties::defaultHardDiskFolder"> default hard disk
2125 folder</link> will be prepended to the file name before searching. Note
2126 that on case sensitive file systems, a case sensitive comparison is
2127 performed, otherwise the case in the file path is ignored.
2128
2129 <result name="VBOX_E_FILE_ERROR">
2130 Invalid image file location.
2131 </result>
2132 <result name="VBOX_E_OBJECT_NOT_FOUND">
2133 No matching DVD image found in the media registry.
2134 </result>
2135
2136 </desc>
2137 <param name="location" type="wstring" dir="in">
2138 <desc>CD/DVD image file path to look for.</desc>
2139 </param>
2140 <param name="image" type="IDVDImage" dir="return">
2141 <desc>Found CD/DVD image object.</desc>
2142 </param>
2143 </method>
2144
2145 <method name="openFloppyImage">
2146 <desc>
2147 Opens a floppy image contained in the specified file of the supported
2148 format and assigns it the given UUID.
2149
2150 After the image is successfully opened by this method, it gets
2151 remembered by (known to) this VirtualBox installation and will be
2152 accessible through <link to="#getFloppyImage"/> and
2153 <link to="#findFloppyImage"/> methods. Remembered images are also
2154 returned as part of the <link to="#floppyImages"/> array and can be
2155 mounted to virtual machines. See IMedium for more details.
2156
2157 See <link to="IMedium::location"/> to get more details about the format
2158 of the location string.
2159
2160 <result name="VBOX_E_FILE_ERROR">
2161 Invalid floppy image file location or could not find the floppy
2162 image at the specified location.
2163 </result>
2164 <result name="VBOX_E_INVALID_OBJECT_STATE">
2165 Floppy image already exists in the media registry.
2166 </result>
2167
2168 <note>
2169 Currently, only raw floppy images are supported by VirtualBox.
2170 </note>
2171 </desc>
2172 <param name="location" type="wstring" dir="in">
2173 <desc>
2174 Full path to the file that contains a valid floppy image.
2175 </desc>
2176 </param>
2177 <param name="id" type="wstring" dir="in">
2178 <desc>
2179 UUID to assign to the given image file within this VirtualBox
2180 installation. If an empty (@c null) UUID is specified, the system will
2181 randomly generate a new UUID.
2182 </desc>
2183 </param>
2184 <param name="image" type="IFloppyImage" dir="return">
2185 <desc>Opened floppy image object.</desc>
2186 </param>
2187 </method>
2188
2189 <method name="getFloppyImage">
2190 <desc>
2191 Returns a floppy image with the given UUID.
2192
2193 The image with the given UUID must be known to this VirtualBox
2194 installation, i.e. it must be previously opened by <link
2195 to="#openFloppyImage"/>, or mounted to some known virtual machine.
2196
2197 <result name="VBOX_E_OBJECT_NOT_FOUND">
2198 No matching floppy image found in the media registry.
2199 </result>
2200
2201 </desc>
2202 <param name="id" type="wstring" dir="in">
2203 <desc>UUID of the image to look for.</desc>
2204 </param>
2205 <param name="image" type="IFloppyImage" dir="return">
2206 <desc>Found floppy image object.</desc>
2207 </param>
2208 </method>
2209
2210 <method name="findFloppyImage">
2211 <desc>
2212 Returns a floppy image with the given image location.
2213
2214 The image with the given UUID must be known to this VirtualBox
2215 installation, i.e. it must be previously opened by <link
2216 to="#openFloppyImage"/>, or mounted to some known virtual machine.
2217
2218 The search is done by comparing the value of the @a location argument to
2219 the <link to="IMedium::location"/> attribute of each known floppy image.
2220
2221 The requested location can be a path relative to the
2222 <link to="IVirtualBox::homeFolder">VirtualBox home folder</link>. If
2223 only a file name without any path is given, the
2224 <link to="ISystemProperties::defaultHardDiskFolder"> default hard disk
2225 folder</link> will be prepended to the file name before searching. Note
2226 that on case sensitive file systems, a case sensitive comparison is
2227 performed, otherwise the case of symbols in the file path is ignored.
2228
2229 <result name="VBOX_E_FILE_ERROR">
2230 Invalid image file location.
2231 </result>
2232 <result name="VBOX_E_OBJECT_NOT_FOUND">
2233 No matching floppy image found in the media registry.
2234 </result>
2235
2236 </desc>
2237 <param name="location" type="wstring" dir="in">
2238 <desc>Floppy image file path to look for.</desc>
2239 </param>
2240 <param name="image" type="IFloppyImage" dir="return">
2241 <desc>Found floppy image object.</desc>
2242 </param>
2243 </method>
2244
2245 <method name="getGuestOSType">
2246 <desc>
2247 Returns an object describing the specified guest OS type.
2248
2249 The requested guest OS type is specified using a string which is a
2250 mnemonic identifier of the guest operating system, such as
2251 <tt>"win31"</tt> or <tt>"ubuntu"</tt>. The guest OS type ID of a
2252 particular virtual machine can be read or set using the
2253 <link to="IMachine::OSTypeId"/> attribute.
2254
2255 The <link to="IVirtualBox::guestOSTypes"/> collection contains all
2256 available guest OS type objects. Each object has an
2257 <link to="IGuestOSType::id"/> attribute which contains an identifier of
2258 the guest OS this object describes.
2259
2260 <result name="E_INVALIDARG">
2261 @a id is not a valid Guest OS type.
2262 </result>
2263
2264 </desc>
2265 <param name="id" type="wstring" dir="in">
2266 <desc>Guest OS type ID string.</desc>
2267 </param>
2268 <param name="type" type="IGuestOSType" dir="return">
2269 <desc>Guest OS type object.</desc>
2270 </param>
2271 </method>
2272
2273 <method name="createSharedFolder">
2274 <desc>
2275 Creates a new global shared folder by associating the given logical
2276 name with the given host path, adds it to the collection of shared
2277 folders and starts sharing it. Refer to the description of
2278 <link to="ISharedFolder"/> to read more about logical names.
2279 <note>
2280 In the current implementation, this operation is not
2281 implemented.
2282 </note>
2283 </desc>
2284 <param name="name" type="wstring" dir="in">
2285 <desc>Unique logical name of the shared folder.</desc>
2286 </param>
2287 <param name="hostPath" type="wstring" dir="in">
2288 <desc>Full path to the shared folder in the host file system.</desc>
2289 </param>
2290 <param name="writable" type="boolean" dir="in">
2291 <desc>Whether the share is writable or readonly</desc>
2292 </param>
2293 </method>
2294
2295 <method name="removeSharedFolder">
2296 <desc>
2297 Removes the global shared folder with the given name previously
2298 created by <link to="#createSharedFolder"/> from the collection of
2299 shared folders and stops sharing it.
2300 <note>
2301 In the current implementation, this operation is not
2302 implemented.
2303 </note>
2304 </desc>
2305 <param name="name" type="wstring" dir="in">
2306 <desc>Logical name of the shared folder to remove.</desc>
2307 </param>
2308 </method>
2309
2310 <method name="getNextExtraDataKey">
2311 <desc>
2312 Returns the global extra data key name following the supplied key.
2313
2314 An error is returned if the supplied @a key does not exist. @c null is
2315 returned in @a nextKey if the supplied key is the last key. When
2316 supplying @c null or an empty string for the @a key, the first key item
2317 is returned in @a nextKey (if there is any). @a nextValue is an optional
2318 parameter and if supplied, the next key's value is returned in it.
2319
2320 <result name="VBOX_E_OBJECT_NOT_FOUND">
2321 Extra data @a key not found.
2322 </result>
2323
2324 </desc>
2325 <param name="key" type="wstring" dir="in">
2326 <desc>Name of the data key to follow.</desc>
2327 </param>
2328 <param name="nextKey" type="wstring" dir="out">
2329 <desc>Name of the next data key.</desc>
2330 </param>
2331 <param name="nextValue" type="wstring" dir="out">
2332 <desc>Value of the next data key.</desc>
2333 </param>
2334 </method>
2335
2336 <method name="getExtraData">
2337 <desc>
2338 Returns associated global extra data.
2339
2340 If the requested data @a key does not exist, this function will
2341 succeed and return @c null in the @a value argument.
2342
2343 <result name="VBOX_E_FILE_ERROR">
2344 Settings file not accessible.
2345 </result>
2346 <result name="VBOX_E_XML_ERROR">
2347 Could not parse the settings file.
2348 </result>
2349
2350 </desc>
2351 <param name="key" type="wstring" dir="in">
2352 <desc>Name of the data key to get.</desc>
2353 </param>
2354 <param name="value" type="wstring" dir="return">
2355 <desc>Value of the requested data key.</desc>
2356 </param>
2357 </method>
2358
2359 <method name="setExtraData">
2360 <desc>
2361 Sets associated global extra data.
2362
2363 If you pass @c null as a key @a value, the given @a key will be
2364 deleted.
2365
2366 <note>
2367 Before performing the actual data change, this method will ask all
2368 registered callbacks using the
2369 <link to="IVirtualBoxCallback::onExtraDataCanChange"/>
2370 notification for a permission. If one of the callbacks refuses the
2371 new value, the change will not be performed.
2372 </note>
2373 <note>
2374 On success, the
2375 <link to="IVirtualBoxCallback::onExtraDataChange"/> notification
2376 is called to inform all registered callbacks about a successful data
2377 change.
2378 </note>
2379
2380 <result name="VBOX_E_FILE_ERROR">
2381 Settings file not accessible.
2382 </result>
2383 <result name="VBOX_E_XML_ERROR">
2384 Could not parse the settings file.
2385 </result>
2386 <result name="E_ACCESSDENIED">
2387 Modification request refused.
2388 </result>
2389
2390 </desc>
2391 <param name="key" type="wstring" dir="in">
2392 <desc>Name of the data key to set.</desc>
2393 </param>
2394 <param name="value" type="wstring" dir="in">
2395 <desc>Value to assign to the key.</desc>
2396 </param>
2397 </method>
2398
2399 <method name="openSession">
2400 <desc>
2401 Opens a new direct session with the given virtual machine.
2402
2403 A direct session acts as a local lock on the given VM.
2404 There can be only one direct session open at a time for every
2405 virtual machine, protecting the VM from being manipulated by
2406 conflicting actions from different processes. Only after a
2407 direct session has been opened, one can change all VM settings
2408 and execute the VM in the process space of the session object.
2409
2410 Sessions therefore can be compared to mutex semaphores that
2411 lock a given VM for modification and execution.
2412 See <link to="ISession">ISession</link> for details.
2413
2414 <note>Unless you are writing a new VM frontend, you will not
2415 want to execute a VM in the current process. To spawn a new
2416 process that executes a VM, use
2417 <link to="IVirtualBox::openRemoteSession" />
2418 instead.</note>
2419
2420 Upon successful return, the session object can be used to
2421 get access to the machine and to the VM console.
2422
2423 In VirtualBox terminology, the machine becomes "mutable" after
2424 a session has been opened. Note that the "mutable" machine
2425 object, on which you may invoke IMachine methods to change its
2426 settings, will be a different object from the immutable IMachine
2427 objects returned by various IVirtualBox methods. To obtain a
2428 mutable IMachine object (upon which you can invoke settings methods),
2429 use the <link to="ISession::machine" /> attribute.
2430
2431 One must always call <link to="ISession::close" /> to release the
2432 lock on the machine, or the machine's state will eventually be
2433 set to "Aborted".
2434
2435 In other words, to change settings on a machine, the following
2436 sequence is typically performed:
2437
2438 <ol>
2439 <li>Call this method (openSession) to have a machine locked for
2440 the current session.</li>
2441
2442 <li>Obtain a mutable IMachine object from <link to="ISession::machine" />.</li>
2443
2444 <li>Change the settings of the machine.</li>
2445
2446 <li>Call <link to="IMachine::saveSettings" />.</li>
2447
2448 <li>Close the session by calling <link to="ISession::close"/>.</li>
2449 </ol>
2450
2451 <result name="E_UNEXPECTED">
2452 Virtual machine not registered.
2453 </result>
2454 <result name="E_ACCESSDENIED">
2455 Process not started by OpenRemoteSession.
2456 </result>
2457 <result name="VBOX_E_OBJECT_NOT_FOUND">
2458 No matching virtual machine found.
2459 </result>
2460 <result name="VBOX_E_INVALID_OBJECT_STATE">
2461 Session already open or being opened.
2462 </result>
2463 <result name="VBOX_E_VM_ERROR">
2464 Failed to assign machine to session.
2465 </result>
2466
2467 </desc>
2468 <param name="session" type="ISession" dir="in">
2469 <desc>
2470 Session object that will represent the opened session after
2471 successful method invocation. This object must not represent
2472 the already open session.
2473 <note>
2474 This session will be automatically closed if the
2475 VirtualBox server is terminated for some reason.
2476 </note>
2477 </desc>
2478 </param>
2479 <param name="machineId" type="wstring" dir="in">
2480 <desc>ID of the virtual machine to open a session with.</desc>
2481 </param>
2482 </method>
2483
2484 <method name="openRemoteSession">
2485 <desc>
2486 Spawns a new process that executes a virtual machine (called a
2487 "remote session").
2488
2489 Opening a remote session causes the VirtualBox server to start a new
2490 process that opens a direct session with the given VM. As a result, the
2491 VM is locked by that direct session in the new process, preventing
2492 conflicting changes from other processes. Since sessions act as locks
2493 that prevent conflicting changes, one cannot open a remote session
2494 for a VM that already has another open session (direct or remote), or
2495 is currently in the process of opening one (see <link
2496 to="IMachine::sessionState"/>).
2497
2498 While the remote session still provides some level of control over the
2499 VM execution to the caller (using the <link to="IConsole" /> interface),
2500 not all VM settings are available for modification within the remote
2501 session context.
2502
2503 This operation can take some time (a new VM is started in a new process,
2504 for which memory and other resources need to be set up). Because of this,
2505 an <link to="IProgress" /> is returned to allow the caller to wait for this
2506 asynchronous operation to be completed. Until then, the remote session
2507 object remains in the closed state, and accessing the machine or its
2508 console through it is invalid. It is recommended to use
2509 <link to="IProgress::waitForCompletion" /> or similar calls to wait for
2510 completion.
2511
2512 As with all <link to="ISession" /> objects, it is recommended to call
2513 <link to="ISession::close" /> on the local session object once openRemoteSession()
2514 has been called. However, the session's state (see <link to="ISession::state" />)
2515 will not return to "Closed" until the remote session has also closed (i.e.
2516 until the VM is no longer running). In that case, however, the state of
2517 the session will automatically change back to "Closed".
2518
2519 Currently supported session types (values of the @a type
2520 argument) are:
2521 <ul>
2522 <li><tt>"gui"</tt>: VirtualBox Qt GUI session</li>
2523 <li><tt>"vrdp"</tt>: VirtualBox VRDP Server session</li>
2524 <li><tt>"sdl"</tt>: VirtualBox SDL GUI session</li>
2525 </ul>
2526
2527 The @a environment argument is a string containing definitions of
2528 environment variables in the following format:
2529 @code
2530 NAME[=VALUE]\n
2531 NAME[=VALUE]\n
2532 ...
2533 @endcode
2534 where <tt>\\n</tt> is the new line character. These environment
2535 variables will be appended to the environment of the VirtualBox server
2536 process. If an environment variable exists both in the server process
2537 and in this list, the value from this list takes precedence over the
2538 server's variable. If the value of the environment variable is
2539 omitted, this variable will be removed from the resulting environment.
2540 If the environment string is @c null, the server environment is
2541 inherited by the started process as is.
2542
2543 <see>openExistingSession</see>
2544
2545 <result name="E_UNEXPECTED">
2546 Virtual machine not registered.
2547 </result>
2548 <result name="E_INVALIDARG">
2549 Invalid session type @a type.
2550 </result>
2551 <result name="VBOX_E_OBJECT_NOT_FOUND">
2552 No machine matching @a machineId found.
2553 </result>
2554 <result name="VBOX_E_INVALID_OBJECT_STATE">
2555 Session already open or being opened.
2556 </result>
2557 <result name="VBOX_E_IPRT_ERROR">
2558 Launching process for machine failed.
2559 </result>
2560 <result name="VBOX_E_VM_ERROR">
2561 Failed to assign machine to session.
2562 </result>
2563
2564 </desc>
2565 <param name="session" type="ISession" dir="in">
2566 <desc>
2567 Session object that will represent the opened remote session
2568 after successful method invocation (this object must not
2569 represent an already open session).
2570 </desc>
2571 </param>
2572 <param name="machineId" type="wstring" dir="in">
2573 <desc>ID of the virtual machine to open a session with.</desc>
2574 </param>
2575 <param name="type" type="wstring" dir="in">
2576 <desc>
2577 Type of the remote session (case sensitive).
2578 </desc>
2579 </param>
2580 <param name="environment" type="wstring" dir="in">
2581 <desc>
2582 Environment to pass to the opened session (may be @c null).
2583 </desc>
2584 </param>
2585 <param name="progress" type="IProgress" dir="return">
2586 <desc>Progress object to track the operation completion.</desc>
2587 </param>
2588 </method>
2589
2590 <method name="openExistingSession">
2591 <desc>
2592 Opens a new remote session with the virtual machine for
2593 which a direct session is already open.
2594
2595 The remote session provides some level of control over the VM
2596 execution (using the IConsole interface) to the caller; however,
2597 within the remote session context, not all VM settings are available
2598 for modification.
2599
2600 As opposed to <link to="#openRemoteSession"/>, the number of
2601 remote sessions opened this way is not limited by the API
2602
2603 <note>
2604 It is an error to open a remote session with the machine that
2605 doesn't have an open direct session.
2606 </note>
2607
2608 <result name="E_UNEXPECTED">
2609 Virtual machine not registered.
2610 </result>
2611 <result name="VBOX_E_OBJECT_NOT_FOUND">
2612 No machine matching @a machineId found.
2613 </result>
2614 <result name="VBOX_E_INVALID_OBJECT_STATE">
2615 Session already open or being opened.
2616 </result>
2617 <result name="VBOX_E_INVALID_SESSION_STATE">
2618 Direct session state not Open.
2619 </result>
2620 <result name="VBOX_E_VM_ERROR">
2621 Failed to get console object from direct session or assign
2622 machine to session.
2623 </result>
2624
2625 <see>openRemoteSession</see>
2626 </desc>
2627 <param name="session" type="ISession" dir="in">
2628 <desc>
2629 Session object that will represent the open remote session
2630 after successful method invocation. This object must not
2631 represent an already open session.
2632 <note>
2633 This session will be automatically closed when the peer
2634 (direct) session dies or gets closed.
2635 </note>
2636 </desc>
2637 </param>
2638 <param name="machineId" type="wstring" dir="in">
2639 <desc>ID of the virtual machine to open a session with.</desc>
2640 </param>
2641 </method>
2642
2643 <method name="registerCallback">
2644 <desc>
2645 Registers a new global VirtualBox callback. The methods of the given
2646 callback object will be called by VirtualBox when an appropriate
2647 event occurs.
2648
2649 <result name="E_INVALIDARG">
2650 A @c null callback cannot be registered.
2651 </result>
2652
2653 </desc>
2654 <param name="callback" type="IVirtualBoxCallback" dir="in">
2655 <desc>Callback object to register.</desc>
2656 </param>
2657 </method>
2658
2659 <method name="unregisterCallback">
2660 <desc>
2661 Unregisters the previously registered global VirtualBox callback.
2662
2663 <result name="E_INVALIDARG">
2664 Specified @a callback not registered.
2665 </result>
2666
2667 </desc>
2668 <param name="callback" type="IVirtualBoxCallback" dir="in">
2669 <desc>Callback object to unregister.</desc>
2670 </param>
2671 </method>
2672
2673 <method name="waitForPropertyChange">
2674 <desc>
2675 Blocks the caller until any of the properties represented by the
2676 @a what argument changes the value or until the given timeout interval
2677 expires.
2678
2679 The @a what argument is a comma separated list of property masks that
2680 describe properties the caller is interested in. The property mask is
2681 a string in the following format:
2682
2683 <pre>
2684 [[group.]subgroup.]name
2685 </pre>
2686
2687 where @c name is the property name and @c group, @c subgroup are zero
2688 or more property group specifiers. Each element (group or name) in
2689 the property mask may be either a Latin string or an asterisk symbol
2690 (@c "*") which is used to match any string for the given element. A
2691 property mask that doesn't contain asterisk symbols represents a
2692 single fully qualified property name.
2693
2694 Groups in the fully qualified property name go from more generic (the
2695 left-most part) to more specific (the right-most part). The first
2696 element is usually a name of the object the property belongs to. The
2697 second element may be either a property name, or a child object name,
2698 or an index if the preceding element names an object which is one of
2699 many objects of the same type. This way, property names form a
2700 hierarchy of properties. Here are some examples of property names:
2701
2702 <table>
2703 <tr>
2704 <td><tt>VirtualBox.version</tt></td>
2705 <td><link to="IVirtualBox::version"/> property</td>
2706 </tr>
2707 <tr>
2708 <td><tt>Machine.&lt;UUID&gt;.name</tt></td>
2709 <td><link to="IMachine::name"/> property of the machine with the
2710 given UUID</td>
2711 </tr>
2712 </table>
2713
2714 Most property names directly correspond to the properties of objects
2715 (components) provided by the VirtualBox library and may be used to
2716 track changes to these properties. However, there may be
2717 pseudo-property names that don't correspond to any existing object's
2718 property directly, as well as there may be object properties that
2719 don't have a corresponding property name that is understood by this
2720 method, and therefore changes to such properties cannot be
2721 tracked. See individual object's property descriptions to get a
2722 fully qualified property name that can be used with this method (if
2723 any).
2724
2725 There is a special property mask @c "*" (i.e. a string consisting of a
2726 single asterisk symbol) that can be used to match all properties.
2727 Below are more examples of property masks:
2728
2729 <table>
2730 <tr>
2731 <td><tt>VirtualBox.*</tt></td>
2732 <td>Track all properties of the VirtualBox object</td>
2733 </tr>
2734 <tr>
2735 <td><tt>Machine.*.name</tt></td>
2736 <td>Track changes to the <link to="IMachine::name"/> property of
2737 all registered virtual machines</td>
2738 </tr>
2739 </table>
2740
2741 <note>
2742 This function is not implemented in the current version of the
2743 product.
2744 </note>
2745 </desc>
2746 <param name="what" type="wstring" dir="in">
2747 <desc>Comma separated list of property masks.</desc>
2748 </param>
2749 <param name="timeout" type="unsigned long" dir="in">
2750 <desc>
2751 Wait timeout in milliseconds.
2752 Specify -1 for an indefinite wait.
2753 </desc>
2754 </param>
2755 <param name="changed" type="wstring" dir="out">
2756 <desc>
2757 Comma separated list of properties that have been changed and caused
2758 this method to return to the caller.
2759 </desc>
2760 </param>
2761 <param name="values" type="wstring" dir="out">
2762 <desc>Reserved, not currently used.</desc>
2763 </param>
2764 </method>
2765
2766 <method name="saveSettings">
2767 <desc>
2768 Saves the global settings to the global settings file
2769 (<link to="#settingsFilePath"/>).
2770
2771 This method is only useful for explicitly saving the global settings
2772 file after it has been auto-converted from the old format to the most
2773 recent format (see <link to="#settingsFileVersion"/> for details).
2774 Normally, the global settings file is implicitly saved when a global
2775 setting is changed.
2776
2777 <result name="VBOX_E_FILE_ERROR">
2778 Settings file not accessible.
2779 </result>
2780 <result name="VBOX_E_XML_ERROR">
2781 Could not parse the settings file.
2782 </result>
2783
2784 </desc>
2785 </method>
2786
2787 <method name="saveSettingsWithBackup">
2788 <desc>
2789 Creates a backup copy of the global settings file
2790 (<link to="IVirtualBox::settingsFilePath"/>) in case of auto-conversion,
2791 and then calls <link to="IVirtualBox::saveSettings"/>.
2792
2793 Note that the backup copy is created <b>only</b> if the settings file
2794 auto-conversion took place (see <link to="#settingsFileVersion"/> for
2795 details). Otherwise, this call is fully equivalent to
2796 <link to="IVirtualBox::saveSettings"/> and no backup copying is done.
2797
2798 The backup copy is created in the same directory where the original
2799 settings file is located. It is given the following file name:
2800 <pre>
2801 original.xml.x.y-platform.bak
2802 </pre>
2803 where <tt>original.xml</tt> is the original settings file name
2804 (excluding path), and <tt>x.y-platform</tt> is the version of the old
2805 format of the settings file (before auto-conversion).
2806
2807 If the given backup file already exists, this method will try to add the
2808 <tt>.N</tt> suffix to the backup file name (where @c N counts from
2809 0 to 9) and copy it again until it succeeds. If all suffixes are
2810 occupied, or if any other copy error occurs, this method will return a
2811 failure.
2812
2813 If the copy operation succeeds, the @a bakFileName return argument will
2814 receive a full path to the created backup file (for informational
2815 purposes). Note that this will happen even if the subsequent
2816 <link to="#saveSettings"/> call performed by this method after the
2817 copy operation, fails.
2818
2819 <note>
2820 The VirtualBox API never calls this method. It is intended purely for
2821 the purposes of creating backup copies of the settings files by
2822 front-ends before saving the results of the automatically performed
2823 settings conversion to disk.
2824 </note>
2825
2826 <see>settingsFileVersion</see>
2827
2828 <result name="VBOX_E_FILE_ERROR">
2829 Settings file not accessible.
2830 </result>
2831 <result name="VBOX_E_XML_ERROR">
2832 Could not parse the settings file.
2833 </result>
2834 <result name="VBOX_E_IPRT_ERROR">
2835 Could not copy the settings file.
2836 </result>
2837
2838 </desc>
2839 <param name="bakFileName" type="wstring" dir="return">
2840 <desc>Full path to the created backup copy.</desc>
2841 </param>
2842 </method>
2843
2844 <!--method name="createDHCPServerForInterface">
2845 <desc>
2846 Creates a dhcp server settings to be used for the given interface
2847 <result name="E_INVALIDARG">
2848 Host network interface @a name already exists.
2849 </result>
2850 </desc>
2851 <param name="interface" type="IHostNetworkInterface" dir="in">
2852 <desc>Network Interface</desc>
2853 </param>
2854 <param name="server" type="IDHCPServer" dir="out">
2855 <desc>Dhcp server settings</desc>
2856 </param>
2857 </method-->
2858
2859 <method name="createDHCPServer">
2860 <desc>
2861 Creates a dhcp server settings to be used for the given internal network name
2862 <result name="E_INVALIDARG">
2863 Host network interface @a name already exists.
2864 </result>
2865 </desc>
2866 <param name="name" type="wstring" dir="in">
2867 <desc>server name</desc>
2868 </param>
2869 <param name="server" type="IDHCPServer" dir="return">
2870 <desc>Dhcp server settings</desc>
2871 </param>
2872 </method>
2873
2874 <method name="findDHCPServerByNetworkName">
2875 <desc>
2876 Searches a dhcp server settings to be used for the given internal network name
2877 <result name="E_INVALIDARG">
2878 Host network interface @a name already exists.
2879 </result>
2880
2881 </desc>
2882 <param name="name" type="wstring" dir="in">
2883 <desc>server name</desc>
2884 </param>
2885 <param name="server" type="IDHCPServer" dir="return">
2886 <desc>Dhcp server settings</desc>
2887 </param>
2888 </method>
2889
2890 <!--method name="findDHCPServerForInterface">
2891 <desc>
2892 Searches a dhcp server settings to be used for the given interface
2893 <result name="E_INVALIDARG">
2894 Host network interface @a name already exists.
2895 </result>
2896 </desc>
2897 <param name="interface" type="IHostNetworkInterface" dir="in">
2898 <desc>Network Interface</desc>
2899 </param>
2900 <param name="server" type="IDHCPServer" dir="out">
2901 <desc>Dhcp server settings</desc>
2902 </param>
2903 </method-->
2904
2905 <method name="removeDHCPServer">
2906 <desc>
2907 Removes the dhcp server settings
2908 <result name="E_INVALIDARG">
2909 Host network interface @a name already exists.
2910 </result>
2911 </desc>
2912 <param name="server" type="IDHCPServer" dir="in">
2913 <desc>Dhcp server settings to be removed</desc>
2914 </param>
2915 </method>
2916
2917 </interface>
2918
2919 <!--
2920 // IVFSExplorer
2921 /////////////////////////////////////////////////////////////////////////
2922 -->
2923
2924 <enum
2925 name="VFSType"
2926 uuid="813999ba-b949-48a8-9230-aadc6285e2f2"
2927 >
2928 <desc>
2929 Virtual file systems supported by VFSExplorer.
2930 </desc>
2931
2932 <const name="File" value="1" />
2933 <const name="Cloud" value="2" />
2934 <const name="S3" value="3" />
2935 <const name="WebDav" value="4" />
2936 </enum>
2937
2938 <enum
2939 name="VFSFileType"
2940 uuid="714333cd-44e2-415f-a245-d378fa9b1242"
2941 >
2942 <desc>
2943 File types known by VFSExplorer.
2944 </desc>
2945
2946 <const name="Unknown" value="1" />
2947 <const name="Fifo" value="2" />
2948 <const name="DevChar" value="3" />
2949 <const name="Directory" value="4" />
2950 <const name="DevBlock" value="5" />
2951 <const name="File" value="6" />
2952 <const name="SymLink" value="7" />
2953 <const name="Socket" value="8" />
2954 <const name="WhiteOut" value="9" />
2955 </enum>
2956
2957 <interface
2958 name="IVFSExplorer" extends="$unknown"
2959 uuid="2bb864a1-02a3-4474-a1d4-fb5f23b742e1"
2960 wsmap="managed"
2961 >
2962 <desc>
2963 The VFSExplorer interface unifies access to different file system
2964 types. This includes local file systems as well remote file systems like
2965 S3. For a list of supported types see <link to="VFSType" />.
2966 An instance of this is returned by <link to="IAppliance::createVFSExplorer" />.
2967 </desc>
2968
2969 <attribute name="path" type="wstring" readonly="yes">
2970 <desc>Returns the current path in the virtual file system.</desc>
2971 </attribute>
2972
2973 <attribute name="type" type="VFSType" readonly="yes">
2974 <desc>Returns the file system type which is currently in use.</desc>
2975 </attribute>
2976
2977 <method name="update">
2978 <desc>Updates the internal list of files/directories from the
2979 current directory level. Use <link to="#entryList" /> to get the full list
2980 after a call to this method.</desc>
2981
2982 <param name="aProgress" type="IProgress" dir="return">
2983 <desc>Progress object to track the operation completion.</desc>
2984 </param>
2985 </method>
2986
2987 <method name="cd">
2988 <desc>Change the current directory level.</desc>
2989
2990 <param name="aDir" type="wstring" dir="in">
2991 <desc>The name of the directory to go in.</desc>
2992 </param>
2993
2994 <param name="aProgress" type="IProgress" dir="return">
2995 <desc>Progress object to track the operation completion.</desc>
2996 </param>
2997 </method>
2998
2999 <method name="cdUp">
3000 <desc>Go one directory upwards from the current directory level.</desc>
3001
3002 <param name="aProgress" type="IProgress" dir="return">
3003 <desc>Progress object to track the operation completion.</desc>
3004 </param>
3005 </method>
3006
3007 <method name="entryList">
3008 <desc>Returns a list of files/directories after a call to <link
3009 to="#update" />. The user is responsible for keeping this internal
3010 list up do date.</desc>
3011
3012 <param name="aNames" type="wstring" safearray="yes" dir="out">
3013 <desc>The list of names for the entries.</desc>
3014 </param>
3015
3016 <param name="aTypes" type="unsigned long" safearray="yes" dir="out">
3017 <desc>The list of types for the entries.</desc>
3018 </param>
3019 </method>
3020
3021 <method name="exists">
3022 <desc>Checks if the given file list exists in the current directory
3023 level.</desc>
3024
3025 <param name="aNames" type="wstring" safearray="yes" dir="in">
3026 <desc>The names to check.</desc>
3027 </param>
3028
3029 <param name="aExists" type="wstring" safearray="yes" dir="return">
3030 <desc>The names which exist.</desc>
3031 </param>
3032 </method>
3033
3034 <method name="remove">
3035 <desc>Deletes the given files in the current directory level.</desc>
3036
3037 <param name="aNames" type="wstring" safearray="yes" dir="in">
3038 <desc>The names to remove.</desc>
3039 </param>
3040
3041 <param name="aProgress" type="IProgress" dir="return">
3042 <desc>Progress object to track the operation completion.</desc>
3043 </param>
3044 </method>
3045
3046 </interface>
3047
3048 <!--
3049 // IAppliance
3050 /////////////////////////////////////////////////////////////////////////
3051 -->
3052
3053 <enum
3054 name="CIMOSType"
3055 uuid="86ef5f8c-18b2-4db8-a314-33721b59f89b"
3056 >
3057 <desc>
3058 OVF operating system values according to CIM V2.20 (as of Nov 2008); http://www.dmtf.org/standards/cim/cim_schema_v220
3059 </desc>
3060
3061 <const name="CIMOS_Unknown" value="0" /> <!-- "Unknown" -->
3062 <const name="CIMOS_Other" value="1" /> <!-- "Other" -->
3063 <const name="CIMOS_MACOS" value="2" /> <!-- "MACOS" -->
3064 <const name="CIMOS_ATTUNIX" value="3" /> <!-- "ATTUNIX" -->
3065 <const name="CIMOS_DGUX" value="4" /> <!-- "DGUX" -->
3066 <const name="CIMOS_DECNT" value="5" /> <!-- "DECNT" -->
3067 <const name="CIMOS_Tru64UNIX" value="6" /> <!-- "Tru64 UNIX" -->
3068 <const name="CIMOS_OpenVMS" value="7" /> <!-- "OpenVMS" -->
3069 <const name="CIMOS_HPUX" value="8" /> <!-- "HPUX" -->
3070 <const name="CIMOS_AIX" value="9" /> <!-- "AIX" -->
3071 <const name="CIMOS_MVS" value="10" /> <!-- "MVS" -->
3072 <const name="CIMOS_OS400" value="11" /> <!-- "OS400" -->
3073 <const name="CIMOS_OS2" value="12" /> <!-- "OS/2" -->
3074 <const name="CIMOS_JavaVM" value="13" /> <!-- "JavaVM" -->
3075 <const name="CIMOS_MSDOS" value="14" /> <!-- "MSDOS" -->
3076 <const name="CIMOS_WIN3x" value="15" /> <!-- "WIN3x" -->
3077 <const name="CIMOS_WIN95" value="16" /> <!-- "WIN95" -->
3078 <const name="CIMOS_WIN98" value="17" /> <!-- "WIN98" -->
3079 <const name="CIMOS_WINNT" value="18" /> <!-- "WINNT" -->
3080 <const name="CIMOS_WINCE" value="19" /> <!-- "WINCE" -->
3081 <const name="CIMOS_NCR3000" value="20" /> <!-- "NCR3000" -->
3082 <const name="CIMOS_NetWare" value="21" /> <!-- "NetWare" -->
3083 <const name="CIMOS_OSF" value="22" /> <!-- "OSF" -->
3084 <const name="CIMOS_DCOS" value="23" /> <!-- "DC/OS" -->
3085 <const name="CIMOS_ReliantUNIX" value="24" /> <!-- "Reliant UNIX" -->
3086 <const name="CIMOS_SCOUnixWare" value="25" /> <!-- "SCO UnixWare" -->
3087 <const name="CIMOS_SCOOpenServer" value="26" /> <!-- "SCO OpenServer" -->
3088 <const name="CIMOS_Sequent" value="27" /> <!-- "Sequent" -->
3089 <const name="CIMOS_IRIX" value="28" /> <!-- "IRIX" -->
3090 <const name="CIMOS_Solaris" value="29" /> <!-- "Solaris" -->
3091 <const name="CIMOS_SunOS" value="30" /> <!-- "SunOS" -->
3092 <const name="CIMOS_U6000" value="31" /> <!-- "U6000" -->
3093 <const name="CIMOS_ASERIES" value="32" /> <!-- "ASERIES" -->
3094 <const name="CIMOS_HPNonStopOS" value="33" /> <!-- "HP NonStop OS" -->
3095 <const name="CIMOS_HPNonStopOSS" value="34" /> <!-- "HP NonStop OSS" -->
3096 <const name="CIMOS_BS2000" value="35" /> <!-- "BS2000" -->
3097 <const name="CIMOS_LINUX" value="36" /> <!-- "LINUX" -->
3098 <const name="CIMOS_Lynx" value="37" /> <!-- "Lynx" -->
3099 <const name="CIMOS_XENIX" value="38" /> <!-- "XENIX" -->
3100 <const name="CIMOS_VM" value="39" /> <!-- "VM" -->
3101 <const name="CIMOS_InteractiveUNIX" value="40" /> <!-- "Interactive UNIX" -->
3102 <const name="CIMOS_BSDUNIX" value="41" /> <!-- "BSDUNIX" -->
3103 <const name="CIMOS_FreeBSD" value="42" /> <!-- "FreeBSD" -->
3104 <const name="CIMOS_NetBSD" value="43" /> <!-- "NetBSD" -->
3105 <const name="CIMOS_GNUHurd" value="44" /> <!-- "GNU Hurd" -->
3106 <const name="CIMOS_OS9" value="45" /> <!-- "OS9" -->
3107 <const name="CIMOS_MACHKernel" value="46" /> <!-- "MACH Kernel" -->
3108 <const name="CIMOS_Inferno" value="47" /> <!-- "Inferno" -->
3109 <const name="CIMOS_QNX" value="48" /> <!-- "QNX" -->
3110 <const name="CIMOS_EPOC" value="49" /> <!-- "EPOC" -->
3111 <const name="CIMOS_IxWorks" value="50" /> <!-- "IxWorks" -->
3112 <const name="CIMOS_VxWorks" value="51" /> <!-- "VxWorks" -->
3113 <const name="CIMOS_MiNT" value="52" /> <!-- "MiNT" -->
3114 <const name="CIMOS_BeOS" value="53" /> <!-- "BeOS" -->
3115 <const name="CIMOS_HPMPE" value="54" /> <!-- "HP MPE" -->
3116 <const name="CIMOS_NextStep" value="55" /> <!-- "NextStep" -->
3117 <const name="CIMOS_PalmPilot" value="56" /> <!-- "PalmPilot" -->
3118 <const name="CIMOS_Rhapsody" value="57" /> <!-- "Rhapsody" -->
3119 <const name="CIMOS_Windows2000" value="58" /> <!-- "Windows 2000" -->
3120 <const name="CIMOS_Dedicated" value="59" /> <!-- "Dedicated" -->
3121 <const name="CIMOS_OS390" value="60" /> <!-- "OS/390" -->
3122 <const name="CIMOS_VSE" value="61" /> <!-- "VSE" -->
3123 <const name="CIMOS_TPF" value="62" /> <!-- "TPF" -->
3124 <const name="CIMOS_WindowsMe" value="63" /> <!-- "Windows (R) Me" -->
3125 <const name="CIMOS_CalderaOpenUNIX" value="64" /> <!-- "Caldera Open UNIX" -->
3126 <const name="CIMOS_OpenBSD" value="65" /> <!-- "OpenBSD" -->
3127 <const name="CIMOS_NotApplicable" value="66" /> <!-- "Not Applicable" -->
3128 <const name="CIMOS_WindowsXP" value="67" /> <!-- "Windows XP" -->
3129 <const name="CIMOS_zOS" value="68" /> <!-- "z/OS" -->
3130 <const name="CIMOS_MicrosoftWindowsServer2003" value="69" /> <!-- "Microsoft Windows Server 2003" -->
3131 <const name="CIMOS_MicrosoftWindowsServer2003_64" value="70" /> <!-- "Microsoft Windows Server 2003 64-Bit" -->
3132 <const name="CIMOS_WindowsXP_64" value="71" /> <!-- "Windows XP 64-Bit" -->
3133 <const name="CIMOS_WindowsXPEmbedded" value="72" /> <!-- "Windows XP Embedded" -->
3134 <const name="CIMOS_WindowsVista" value="73" /> <!-- "Windows Vista" -->
3135 <const name="CIMOS_WindowsVista_64" value="74" /> <!-- "Windows Vista 64-Bit" -->
3136 <const name="CIMOS_WindowsEmbeddedforPointofService" value="75" /> <!-- "Windows Embedded for Point of Service" -->
3137 <const name="CIMOS_MicrosoftWindowsServer2008" value="76" /> <!-- "Microsoft Windows Server 2008" -->
3138 <const name="CIMOS_MicrosoftWindowsServer2008_64" value="77" /> <!-- "Microsoft Windows Server 2008 64-Bit" -->
3139 <const name="CIMOS_FreeBSD_64" value="78" /> <!-- "FreeBSD 64-Bit" -->
3140 <const name="CIMOS_RedHatEnterpriseLinux" value="79" /> <!-- "RedHat Enterprise Linux" -->
3141 <const name="CIMOS_RedHatEnterpriseLinux_64" value="80" /> <!-- "RedHat Enterprise Linux 64-Bit" -->
3142 <const name="CIMOS_Solaris_64" value="81" /> <!-- "Solaris 64-Bit" -->
3143 <const name="CIMOS_SUSE" value="82" /> <!-- "SUSE" -->
3144 <const name="CIMOS_SUSE_64" value="83" /> <!-- "SUSE 64-Bit" -->
3145 <const name="CIMOS_SLES" value="84" /> <!-- "SLES" -->
3146 <const name="CIMOS_SLES_64" value="85" /> <!-- "SLES 64-Bit" -->
3147 <const name="CIMOS_NovellOES" value="86" /> <!-- "Novell OES" -->
3148 <const name="CIMOS_NovellLinuxDesktop" value="87" /> <!-- "Novell Linux Desktop" -->
3149 <const name="CIMOS_SunJavaDesktopSystem" value="88" /> <!-- "Sun Java Desktop System" -->
3150 <const name="CIMOS_Mandriva" value="89" /> <!-- "Mandriva" -->
3151 <const name="CIMOS_Mandriva_64" value="90" /> <!-- "Mandriva 64-Bit" -->
3152 <const name="CIMOS_TurboLinux" value="91" /> <!-- "TurboLinux" -->
3153 <const name="CIMOS_TurboLinux_64" value="92" /> <!-- "TurboLinux 64-Bit" -->
3154 <const name="CIMOS_Ubuntu" value="93" /> <!-- "Ubuntu" -->
3155 <const name="CIMOS_Ubuntu_64" value="94" /> <!-- "Ubuntu 64-Bit" -->
3156 <const name="CIMOS_Debian" value="95" /> <!-- "Debian" -->
3157 <const name="CIMOS_Debian_64" value="96" /> <!-- "Debian 64-Bit" -->
3158 <const name="CIMOS_Linux_2_4_x" value="97" /> <!-- "Linux 2.4.x" -->
3159 <const name="CIMOS_Linux_2_4_x_64" value="98" /> <!-- "Linux 2.4.x 64-Bit" -->
3160 <const name="CIMOS_Linux_2_6_x" value="99" /> <!-- "Linux 2.6.x" -->
3161 <const name="CIMOS_Linux_2_6_x_64" value="100" /> <!-- "Linux 2.6.x 64-Bit" -->
3162 <const name="CIMOS_Linux_64" value="101" /> <!-- "Linux 64-Bit" -->
3163 <const name="CIMOS_Other_64" value="102" /> <!-- "Other 64-Bit" -->
3164 </enum>
3165
3166 <enum
3167 name="OVFResourceType"
3168 uuid="646a78d7-6f04-49f4-82c4-75c28a75a4cd"
3169 >
3170 <desc>
3171 OVF resource type (as listed with CIM_ResourceAllocationSettingData; see for example
3172 http://msdn.microsoft.com/en-us/library/cc136877(VS.85).aspx).
3173 </desc>
3174
3175 <const name="Other" value="1" />
3176 <const name="ComputerSystem" value="2" />
3177 <const name="Processor" value="3" />
3178 <const name="Memory" value="4" />
3179 <const name="IDEController" value="5" />
3180 <const name="ParallelSCSIHBA" value="6" />
3181 <const name="FCHBA" value="7" />
3182 <const name="iSCSIHBA" value="8" />
3183 <const name="IBHCA" value="9" />
3184 <const name="EthernetAdapter" value="10" />
3185 <const name="OtherNetworkAdapter" value="11" />
3186 <const name="IOSlot" value="12" />
3187 <const name="IODevice" value="13" />
3188 <const name="FloppyDrive" value="14" />
3189 <const name="CDDrive" value="15" />
3190 <const name="DVDDrive" value="16" />
3191 <const name="HardDisk" value="17" />
3192 <const name="OtherStorageDevice" value="20" />
3193 <const name="USBController" value="23" />
3194 <const name="SoundCard" value="35" />
3195 </enum>
3196
3197 <interface
3198 name="IAppliance" extends="$unknown"
3199 uuid="07495095-d16c-4911-8964-5914341ced5d"
3200 wsmap="managed"
3201 >
3202 <desc>
3203 Represents a platform-independent appliance in OVF format. An instance of this is returned
3204 by <link to="IVirtualBox::createAppliance" />, which can then be used to import and export
3205 appliances with VirtualBox.
3206
3207 The OVF standard suggests two different physical file formats:
3208
3209 <ol>
3210 <li>If the OVF is distributed as a set of files, then @a file must be a fully qualified
3211 path name to an existing OVF descriptor file with an <tt>.ovf</tt> file extension. If
3212 this descriptor file references other files, as OVF appliances distributed as a set of
3213 files most likely do, those files must be in the same directory as the descriptor file.</li>
3214
3215 <li>If the OVF is distributed as a single file, it must be in TAR format and have the
3216 <tt>.ova</tt> file extension. This TAR file must then contain at least the OVF descriptor
3217 files and optionally other files.
3218
3219 At this time, VirtualBox does not not yet support the packed (TAR) variant; support will
3220 be added with a later version.</li>
3221 </ol>
3222
3223 <b>Importing</b> an OVF appliance into VirtualBox as instances of
3224 <link to="IMachine" /> involves the following sequence of API calls:
3225
3226 <ol>
3227 <li>Call <link to="IVirtualBox::createAppliance" />. This will create an empty IAppliance object.
3228 </li>
3229
3230 <li>On the new object, call <link to="#read" /> with the full path of the OVF file you
3231 would like to import. So long as this file is syntactically valid, this will succeed
3232 and return an instance of IAppliance that contains the parsed data from the OVF file.
3233 </li>
3234
3235 <li>Next, call <link to="#interpret" />, which analyzes the OVF data and sets up the
3236 contents of the IAppliance attributes accordingly. These can be inspected by a
3237 VirtualBox front-end such as the GUI, and the suggestions can be displayed to the
3238 user. In particular, the <link to="#virtualSystemDescriptions" /> array contains
3239 instances of <link to="IVirtualSystemDescription" /> which represent the virtual
3240 systems in the OVF, which in turn describe the virtual hardware prescribed by the
3241 OVF (network and hardware adapters, virtual disk images, memory size and so on).
3242 The GUI can then give the user the option to confirm and/or change these suggestions.
3243 </li>
3244
3245 <li>If desired, call <link to="IVirtualSystemDescription::setFinalValues" /> for each
3246 virtual system to override the suggestions made by the interpret() routine.
3247 </li>
3248
3249 <li>Finally, call <link to="#importMachines" /> to create virtual machines in
3250 VirtualBox as instances of <link to="IMachine" /> that match the information in the
3251 virtual system descriptions.
3252 </li>
3253 </ol>
3254
3255 <b>Exporting</b> VirtualBox machines into an OVF appliance involves the following steps:
3256
3257 <ol>
3258 <li>As with importing, first call <link to="IVirtualBox::createAppliance" /> to create
3259 an empty IAppliance object.
3260 </li>
3261
3262 <li>For each machine you would like to export, call <link to="IMachine::export" />
3263 with the IAppliance object you just created. This creates an instance of
3264 <link to="IVirtualSystemDescription" /> inside the appliance.
3265 </li>
3266
3267 <li>If desired, call <link to="IVirtualSystemDescription::setFinalValues" /> for each
3268 virtual system to override the suggestions made by the export() routine.
3269 </li>
3270
3271 <li>Finally, call <link to="#write" /> with a path specification to have the OVF
3272 file written.</li>
3273 </ol>
3274
3275 </desc>
3276
3277 <attribute name="path" type="wstring" readonly="yes">
3278 <desc>Path to the main file of the OVF appliance, which is either the <tt>.ovf</tt> or
3279 the <tt>.ova</tt> file passed to <link to="#read" /> (for import) or
3280 <link to="#write" /> (for export).
3281 This attribute is empty until one of these methods has been called.
3282 </desc>
3283 </attribute>
3284
3285 <attribute name="disks" type="wstring" readonly="yes" safearray="yes">
3286 <desc>
3287 Array of virtual disk definitions. One such description exists for each
3288 disk definition in the OVF; each string array item represents one such piece of
3289 disk information, with the information fields separated by tab (\\t) characters.
3290
3291 The caller should be prepared for additional fields being appended to
3292 this string in future versions of VirtualBox and therefore check for
3293 the number of tabs in the strings returned.
3294
3295 In the current version, the following eight fields are returned per string
3296 in the array:
3297
3298 <ol>
3299 <li>Disk ID (unique string identifier given to disk)</li>
3300
3301 <li>Capacity (unsigned integer indicating the maximum capacity of the disk)</li>
3302
3303 <li>Populated size (optional unsigned integer indicating the current size of the
3304 disk; can be approximate; -1 if unspecified)</li>
3305
3306 <li>Format (string identifying the disk format, typically
3307 "http://www.vmware.com/specifications/vmdk.html#sparse")</li>
3308
3309 <li>Reference (where to find the disk image, typically a file name; if empty,
3310 then the disk should be created on import)</li>
3311
3312 <li>Image size (optional unsigned integer indicating the size of the image,
3313 which need not necessarily be the same as the values specified above, since
3314 the image may be compressed or sparse; -1 if not specified)</li>
3315
3316 <li>Chunk size (optional unsigned integer if the image is split into chunks;
3317 presently unsupported and always -1)</li>
3318
3319 <li>Compression (optional string equalling "gzip" if the image is gzip-compressed)</li>
3320 </ol>
3321 </desc>
3322 </attribute>
3323
3324 <attribute name="virtualSystemDescriptions" type="IVirtualSystemDescription" readonly="yes" safearray="yes">
3325 <desc> Array of virtual system descriptions. One such description is created
3326 for each virtual system found in the OVF.
3327 This array is empty until either <link to="#interpret" /> (for import) or <link to="IMachine::export" />
3328 (for export) has been called.
3329 </desc>
3330 </attribute>
3331
3332 <method name="read">
3333 <desc>
3334 Reads an OVF file into the appliance object.
3335
3336 This method succeeds if the OVF is syntactically valid and, by itself, without errors. The
3337 mere fact that this method returns successfully does not mean that VirtualBox supports all
3338 features requested by the appliance; this can only be examined after a call to <link to="#interpret" />.
3339 </desc>
3340 <param name="file" type="wstring" dir="in">
3341 <desc>
3342 Name of appliance file to open (either with an <tt>.ovf</tt> or <tt>.ova</tt> extension, depending
3343 on whether the appliance is distributed as a set of files or as a single file, respectively).
3344 </desc>
3345 </param>
3346 </method>
3347
3348 <method name="interpret">
3349 <desc>
3350 Interprets the OVF data that was read when the appliance was constructed. After
3351 calling this method, one can inspect the
3352 <link to="#virtualSystemDescriptions" /> array attribute, which will then contain
3353 one <link to="IVirtualSystemDescription" /> for each virtual machine found in
3354 the appliance.
3355
3356 Calling this method is the second step of importing an appliance into VirtualBox;
3357 see <link to="IAppliance" /> for an overview.
3358
3359 After calling this method, one should call <link to="#getWarnings" /> to find out
3360 if problems were encountered during the processing which might later lead to
3361 errors.
3362 </desc>
3363 </method>
3364
3365 <method name="importMachines">
3366 <desc>
3367 Imports the appliance into VirtualBox by creating instances of <link to="IMachine" />
3368 and other interfaces that match the information contained in the appliance as
3369 closely as possible, as represented by the import instructions in the
3370 <link to="#virtualSystemDescriptions" /> array.
3371
3372 Calling this method is the final step of importing an appliance into VirtualBox;
3373 see <link to="IAppliance" /> for an overview.
3374
3375 Since importing the appliance will most probably involve copying and converting
3376 disk images, which can take a long time, this method operates asynchronously and
3377 returns an IProgress object to allow the caller to monitor the progress.
3378 </desc>
3379
3380 <param name="aProgress" type="IProgress" dir="return">
3381 <desc></desc>
3382 </param>
3383 </method>
3384
3385 <method name="createVFSExplorer">
3386 <desc>Returns a <link to="IVFSExplorer" /> object for the given URI.</desc>
3387
3388 <param name="aUri" type="wstring" dir="in">
3389 <desc>The URI describing the file system to use.</desc>
3390 </param>
3391
3392 <param name="aExplorer" type="IVFSExplorer" dir="return">
3393 <desc></desc>
3394 </param>
3395 </method>
3396
3397 <method name="write">
3398 <desc>
3399 Writes the contents of the appliance exports into a new OVF file.
3400
3401 Calling this method is the final step of exporting an appliance from VirtualBox;
3402 see <link to="IAppliance" /> for an overview.
3403
3404 Since exporting the appliance will most probably involve copying and converting
3405 disk images, which can take a long time, this method operates asynchronously and
3406 returns an IProgress object to allow the caller to monitor the progress.
3407 </desc>
3408 <param name="format" type="wstring" dir="in">
3409 <desc>
3410 Output format, as a string. Currently supported formats are "ovf-0.9" and "ovf-1.0";
3411 future versions of VirtualBox may support additional formats.
3412 </desc>
3413 </param>
3414 <param name="path" type="wstring" dir="in">
3415 <desc>
3416 Name of appliance file to open (either with an <tt>.ovf</tt> or <tt>.ova</tt> extension, depending
3417 on whether the appliance is distributed as a set of files or as a single file, respectively).
3418 </desc>
3419 </param>
3420 <param name="aProgress" type="IProgress" dir="return">
3421 <desc>Progress object to track the operation completion.</desc>
3422 </param>
3423 </method>
3424
3425 <method name="getWarnings">
3426 <desc>Returns textual warnings which occured during execution of <link to="#interpret" />.</desc>
3427
3428 <param name="aWarnings" type="wstring" dir="return" safearray="yes">
3429 <desc></desc>
3430 </param>
3431 </method>
3432
3433 </interface>
3434
3435 <enum
3436 name="VirtualSystemDescriptionType"
3437 uuid="aacc58de-5b45-4f82-ae2e-dd9a824fc3b5"
3438 >
3439 <desc>Used with <link to="IVirtualSystemDescription" /> to describe the type of
3440 a configuration value.</desc>
3441
3442 <const name="Ignore" value="1" />
3443 <const name="OS" value="2" />
3444 <const name="Name" value="3" />
3445 <const name="Product" value="4" />
3446 <const name="Vendor" value="5" />
3447 <const name="Version" value="6" />
3448 <const name="ProductUrl" value="7" />
3449 <const name="VendorUrl" value="8" />
3450 <const name="Description" value="9" />
3451 <const name="License" value="10" />
3452 <const name="Miscellaneous" value="11" />
3453 <const name="CPU" value="12" />
3454 <const name="Memory" value="13" />
3455 <const name="HardDiskControllerIDE" value="14" />
3456 <const name="HardDiskControllerSATA" value="15" />
3457 <const name="HardDiskControllerSCSI" value="16" />
3458 <const name="HardDiskImage" value="17" />
3459 <const name="Floppy" value="18" />
3460 <const name="CDROM" value="19" />
3461 <const name="NetworkAdapter" value="20" />
3462 <const name="USBController" value="21" />
3463 <const name="SoundCard" value="22" />
3464
3465 </enum>
3466
3467 <enum
3468 name="VirtualSystemDescriptionValueType"
3469 uuid="56d9403f-3425-4118-9919-36f2a9b8c77c"
3470 >
3471 <desc>Used with <link to="IVirtualSystemDescription::getValuesByType" /> to describe the value
3472 type to fetch.</desc>
3473
3474 <const name="Reference" value="1" />
3475 <const name="Original" value="2" />
3476 <const name="Auto" value="3" />
3477 <const name="ExtraConfig" value="4" />
3478
3479 </enum>
3480
3481 <interface
3482 name="IVirtualSystemDescription" extends="$unknown"
3483 uuid="d7525e6c-531a-4c51-8e04-41235083a3d8"
3484 wsmap="managed"
3485 >
3486
3487 <desc>This interface is used in the <link to="IAppliance::virtualSystemDescriptions" /> array.
3488 After <link to="IAppliance::interpret" /> has been called, that array contains
3489 information about how the virtual systems described in the OVF should best be imported into VirtualBox
3490 virtual machines. See <link to="IAppliance" /> for the steps required to import an OVF
3491 into VirtualBox.
3492 </desc>
3493
3494 <attribute name="count" type="unsigned long" readonly="yes">
3495 <desc>Return the number of virtual system description entries.</desc>
3496 </attribute>
3497
3498 <method name="getDescription">
3499 <desc>Returns information about the virtual system as arrays of instruction items. In each array, the
3500 items with the same indices correspond and jointly represent an import instruction for VirtualBox.
3501
3502 The list below identifies the value sets that are possible depending on the
3503 <link to="VirtualSystemDescriptionType" /> enum value in the array item in aTypes[]. In each case,
3504 the array item with the same index in aOvfValues[] will contain the original value as contained
3505 in the OVF file (just for informational purposes), and the corresponding item in aVBoxValues[]
3506 will contain a suggested value to be used for VirtualBox. Depending on the description type,
3507 the aExtraConfigValues[] array item may also be used.
3508
3509 <ul>
3510 <li>
3511 "OS": the guest operating system type. There must be exactly one such array item on import. The
3512 corresponding item in aVBoxValues[] contains the suggested guest operating system for VirtualBox.
3513 This will be one of the values listed in <link to="IVirtualBox::guestOSTypes" />. The corresponding
3514 item in aOvfValues[] will contain a numerical value that described the operating system in the OVF
3515 (see <link to="CIMOSType" />).
3516 </li>
3517 <li>
3518 "Name": the name to give to the new virtual machine. There can be at most one such array item;
3519 if none is present on import, then an automatic name will be created from the operating system
3520 type. The correponding item im aOvfValues[] will contain the suggested virtual machine name
3521 from the OVF file, and aVBoxValues[] will contain a suggestion for a unique VirtualBox
3522 <link to="IMachine" /> name that does not exist yet.
3523 </li>
3524 <li>
3525 "Description": an arbitrary description.
3526 </li>
3527 <li>
3528 "License": the EULA section from the OVF, if present. It is the responsibility of the calling
3529 code to display such a license for agreement; the Main API does not enforce any such policy.
3530 </li>
3531 <li>
3532 Miscellaneous: reserved for future use.
3533 </li>
3534 <li>
3535 "CPU": the number of CPUs. There can be at most one such item, which will presently be ignored.
3536 </li>
3537 <li>
3538 "Memory": the amount of guest RAM, in bytes. There can be at most one such array item; if none
3539 is present on import, then VirtualBox will set a meaningful default based on the operating system
3540 type.
3541 </li>
3542 <li>
3543 "HarddiskControllerIDE": an IDE hard disk controller. There can be at most one such item. This
3544 has no value in aOvfValues[] or aVBoxValues[].
3545 The matching item in the aRefs[] array will contain an integer that items of the "Harddisk"
3546 type can use to specify which hard disk controller a virtual disk should be connected to.
3547 </li>
3548 <li>
3549 "HarddiskControllerSATA": an SATA hard disk controller. There can be at most one such item. This
3550 has no value in aOvfValues[] or aVBoxValues[].
3551 The matching item in the aRefs[] array will be used as with IDE controllers (see above).
3552 </li>
3553 <li>
3554 "HarddiskControllerSCSI": a SCSI hard disk controller. There can be at most one such item.
3555 The items in aOvfValues[] and aVBoxValues[] will either be "LsiLogic" or "BusLogic".
3556 The matching item in the aRefs[] array will be used as with IDE controllers (see above).
3557 </li>
3558 <li>
3559 "HardDiskImage": a virtual hard disk, most probably as a reference to an image file. There can be an
3560 arbitrary number of these items, one for each virtual disk image that accompanies the OVF.
3561
3562 The array item in aOvfValues[] will contain the file specification from the OVF file (without
3563 a path since the image file should be in the same location as the OVF file itself), whereas the
3564 item in aVBoxValues[] will contain a qualified path specification to where VirtualBox uses the
3565 hard disk image. This means that on import the image will be copied and converted from the
3566 "ovf" location to the "vbox" location; on export, this will be handled the other way round.
3567 On import, the target image will also be registered with VirtualBox.
3568
3569 The matching item in the aExtraConfigValues[] array must contain a string of the following
3570 format: "controller=&lt;index&gt;;channel=&lt;c&gt;"
3571 In this string, &lt;index&gt; must be an integer specifying the hard disk controller to connect
3572 the image to. That number must be the index of an array item with one of the hard disk controller
3573 types (HarddiskControllerSCSI, HarddiskControllerSATA, HarddiskControllerIDE).
3574 In addition, &lt;c&gt; must specify the channel to use on that controller. For IDE controllers,
3575 this can range from 0-2 (which VirtualBox will interpret as primary master, primary slave,
3576 secondary slave; VirtualBox reserves the secondary master for the CD-ROM drive). For SATA and
3577 SCSI conrollers, the channel can range from 0-29.
3578 </li>
3579 <li>
3580 "NetworkAdapter": a network adapter. The array item in aVBoxValues[] will specify the hardware
3581 for the network adapter, whereas the array item in aExtraConfigValues[] will have a string
3582 of the "type=&lt;X&gt;" format, where &lt;X&gt; must be either "NAT" or "Bridged".
3583 </li>
3584 <li>
3585 "USBController": a USB controller. There can be at most one such item. If and only if such an
3586 item ispresent, USB support will be enabled for the new virtual machine.
3587 </li>
3588 <li>
3589 "SoundCard": a sound card. There can be at most one such item. If and only if such an item is
3590 present, sound support will be enabled for the new virtual machine. Note that the virtual
3591 machine in VirtualBox will always be presented with the standard VirtualBox soundcard, which
3592 may be different from the virtual soundcard expected by the appliance.
3593 </li>
3594 </ul>
3595
3596 </desc>
3597
3598 <param name="aTypes" type="VirtualSystemDescriptionType" dir="out" safearray="yes">
3599 <desc></desc>
3600 </param>
3601
3602 <param name="aRefs" type="wstring" dir="out" safearray="yes">
3603 <desc></desc>
3604 </param>
3605
3606 <param name="aOvfValues" type="wstring" dir="out" safearray="yes">
3607 <desc></desc>
3608 </param>
3609
3610 <param name="aVBoxValues" type="wstring" dir="out" safearray="yes">
3611 <desc></desc>
3612 </param>
3613
3614 <param name="aExtraConfigValues" type="wstring" dir="out" safearray="yes">
3615 <desc></desc>
3616 </param>
3617
3618 </method>
3619
3620 <method name="getDescriptionByType">
3621 <desc>This is the same as <link to="#getDescription" /> except that you can specify which types
3622 should be returned.</desc>
3623
3624 <param name="aType" type="VirtualSystemDescriptionType" dir="in">
3625 <desc></desc>
3626 </param>
3627
3628 <param name="aTypes" type="VirtualSystemDescriptionType" dir="out" safearray="yes">
3629 <desc></desc>
3630 </param>
3631
3632 <param name="aRefs" type="wstring" dir="out" safearray="yes">
3633 <desc></desc>
3634 </param>
3635
3636 <param name="aOvfValues" type="wstring" dir="out" safearray="yes">
3637 <desc></desc>
3638 </param>
3639
3640 <param name="aVBoxValues" type="wstring" dir="out" safearray="yes">
3641 <desc></desc>
3642 </param>
3643
3644 <param name="aExtraConfigValues" type="wstring" dir="out" safearray="yes">
3645 <desc></desc>
3646 </param>
3647
3648 </method>
3649
3650 <method name="getValuesByType">
3651 <desc>This is the same as <link to="#getDescriptionByType" /> except that you can specify which
3652 value types should be returned. See <link to="VirtualSystemDescriptionValueType" /> for possible
3653 values.</desc>
3654
3655 <param name="aType" type="VirtualSystemDescriptionType" dir="in">
3656 <desc></desc>
3657 </param>
3658
3659 <param name="aWhich" type="VirtualSystemDescriptionValueType" dir="in">
3660 <desc></desc>
3661 </param>
3662
3663 <param name="aValues" type="wstring" dir="return" safearray="yes">
3664 <desc></desc>
3665 </param>
3666
3667 </method>
3668
3669 <method name="setFinalValues">
3670 <desc>
3671 This method allows the appliance's user to change the configuration for the virtual
3672 system descriptions. For each array item returned from <link to="#getDescription" />,
3673 you must pass in one boolean value and one configuration value.
3674
3675 Each item in the boolean array determines whether the particular configuration item
3676 should be enabled.
3677 You can only disable items of the types HardDiskControllerIDE, HardDiskControllerSATA,
3678 HardDiskControllerSCSI, HardDiskImage, CDROM, Floppy, NetworkAdapter, USBController
3679 and SoundCard.
3680
3681 For the "vbox" and "extra configuration" values, if you pass in the same arrays
3682 as returned in the aVBoxValues and aExtraConfigValues arrays from getDescription(),
3683 the configuration remains unchanged. Please see the documentation for getDescription()
3684 for valid configuration values for the individual array item types. If the
3685 corresponding item in the aEnabled array is @c false, the configuration value is ignored.
3686 </desc>
3687
3688 <param name="aEnabled" type="boolean" dir="in" safearray="yes">
3689 <desc></desc>
3690 </param>
3691
3692 <param name="aVBoxValues" type="wstring" dir="in" safearray="yes">
3693 <desc></desc>
3694 </param>
3695
3696 <param name="aExtraConfigValues" type="wstring" dir="in" safearray="yes">
3697 <desc></desc>
3698 </param>
3699 </method>
3700
3701 <method name="addDescription">
3702 <desc>
3703 This method adds an additional description entry to the stack of already
3704 available descriptions for this virtual system. This is handy for writing
3705 values which aren't directly supported by VirtualBox. One example would
3706 be the License type of <link to="VirtualSystemDescriptionType" />.
3707 </desc>
3708
3709 <param name="aType" type="VirtualSystemDescriptionType" dir="in">
3710 <desc></desc>
3711 </param>
3712
3713 <param name="aVBoxValue" type="wstring" dir="in">
3714 <desc></desc>
3715 </param>
3716
3717 <param name="aExtraConfigValue" type="wstring" dir="in">
3718 <desc></desc>
3719 </param>
3720 </method>
3721 </interface>
3722
3723
3724 <!--
3725 // IMachine
3726 /////////////////////////////////////////////////////////////////////////
3727 -->
3728
3729 <interface
3730 name="IInternalMachineControl" extends="$unknown"
3731 uuid="ce8087d7-de92-4bbb-8140-a22fb07f37ba"
3732 internal="yes"
3733 wsmap="suppress"
3734 >
3735 <method name="setRemoveSavedState">
3736 <desc>
3737 Updates the flag whether saved state is removed on a machine state
3738 change from Saved to PowerOff.
3739 </desc>
3740 <param name="aRemove" type="boolean" dir="in"/>
3741 </method>
3742
3743 <method name="updateState">
3744 <desc>
3745 Updates the VM state.
3746 <note>
3747 This operation will also update the settings file with
3748 the correct information about the saved state file
3749 and delete this file from disk when appropriate.
3750 </note>
3751 </desc>
3752 <param name="state" type="MachineState" dir="in"/>
3753 </method>
3754
3755 <method name="getIPCId">
3756 <param name="id" type="wstring" dir="return"/>
3757 </method>
3758
3759 <method name="runUSBDeviceFilters">
3760 <desc>
3761 Asks the server to run USB devices filters of the associated
3762 machine against the given USB device and tell if there is
3763 a match.
3764 <note>
3765 Intended to be used only for remote USB devices. Local
3766 ones don't require to call this method (this is done
3767 implicitly by the Host and USBProxyService).
3768 </note>
3769 </desc>
3770 <param name="device" type="IUSBDevice" dir="in"/>
3771 <param name="matched" type="boolean" dir="out"/>
3772 <param name="maskedInterfaces" type="unsigned long" dir="out"/>
3773 </method>
3774
3775 <method name="captureUSBDevice">
3776 <desc>
3777 Requests a capture of the given host USB device.
3778 When the request is completed, the VM process will
3779 get a <link to="IInternalSessionControl::onUSBDeviceAttach"/>
3780 notification.
3781 </desc>
3782 <param name="id" type="wstring" dir="in"/>
3783 </method>
3784
3785 <method name="detachUSBDevice">
3786 <desc>
3787 Notification that a VM is going to detach (@a done = @c false) or has
3788 already detached (@a done = @c true) the given USB device.
3789 When the @a done = @c true request is completed, the VM process will
3790 get a <link to="IInternalSessionControl::onUSBDeviceDetach"/>
3791 notification.
3792 <note>
3793 In the @a done = @c true case, the server must run its own filters
3794 and filters of all VMs but this one on the detached device
3795 as if it were just attached to the host computer.
3796 </note>
3797 </desc>
3798 <param name="id" type="wstring" dir="in"/>
3799 <param name="done" type="boolean" dir="in"/>
3800 </method>
3801
3802 <method name="autoCaptureUSBDevices">
3803 <desc>
3804 Requests a capture all matching USB devices attached to the host.
3805 When the request is completed, the VM process will
3806 get a <link to="IInternalSessionControl::onUSBDeviceAttach"/>
3807 notification per every captured device.
3808 </desc>
3809 </method>
3810
3811 <method name="detachAllUSBDevices">
3812 <desc>
3813 Notification that a VM that is being powered down. The done
3814 parameter indicates whether which stage of the power down
3815 we're at. When @a done = @c false the VM is announcing its
3816 intentions, while when @a done = @c true the VM is reporting
3817 what it has done.
3818 <note>
3819 In the @a done = @c true case, the server must run its own filters
3820 and filters of all VMs but this one on all detach devices as
3821 if they were just attached to the host computer.
3822 </note>
3823 </desc>
3824 <param name="done" type="boolean" dir="in"/>
3825 </method>
3826
3827 <method name="onSessionEnd">
3828 <desc>
3829 Triggered by the given session object when the session is about
3830 to close normally.
3831 </desc>
3832 <param name="session" type="ISession" dir="in">
3833 <desc>Session that is being closed</desc>
3834 </param>
3835 <param name="progress" type="IProgress" dir="return">
3836 <desc>
3837 Used to wait until the corresponding machine is actually
3838 dissociated from the given session on the server.
3839 Returned only when this session is a direct one.
3840 </desc>
3841 </param>
3842 </method>
3843
3844 <method name="beginSavingState">
3845 <desc>
3846 Called by the VM process to inform the server it wants to
3847 save the current state and stop the VM execution.
3848 </desc>
3849 <param name="progress" type="IProgress" dir="in">
3850 <desc>
3851 Progress object created by the VM process to wait until
3852 the state is saved.
3853 </desc>
3854 </param>
3855 <param name="stateFilePath" type="wstring" dir="out">
3856 <desc>
3857 File path the VM process must save the execution state to.
3858 </desc>
3859 </param>
3860 </method>
3861
3862 <method name="endSavingState">
3863 <desc>
3864 Called by the VM process to inform the server that saving
3865 the state previously requested by #beginSavingState is either
3866 successfully finished or there was a failure.
3867
3868 <result name="VBOX_E_FILE_ERROR">
3869 Settings file not accessible.
3870 </result>
3871 <result name="VBOX_E_XML_ERROR">
3872 Could not parse the settings file.
3873 </result>
3874
3875 </desc>
3876
3877 <param name="success" type="boolean" dir="in">
3878 <desc>@c true to indicate success and @c false otherwise.
3879 </desc>
3880 </param>
3881 </method>
3882
3883 <method name="adoptSavedState">
3884 <desc>
3885 Gets called by IConsole::adoptSavedState.
3886 <result name="VBOX_E_FILE_ERROR">
3887 Invalid saved state file path.
3888 </result>
3889 </desc>
3890 <param name="savedStateFile" type="wstring" dir="in">
3891 <desc>Path to the saved state file to adopt.</desc>
3892 </param>
3893 </method>
3894
3895 <method name="beginTakingSnapshot">
3896 <desc>
3897 Called by the VM process to inform the server it wants to
3898 take a snapshot.
3899
3900 <result name="VBOX_E_FILE_ERROR">
3901 Settings file not accessible.
3902 </result>
3903 <result name="VBOX_E_XML_ERROR">
3904 Could not parse the settings file.
3905 </result>
3906 </desc>
3907 <param name="initiator" type="IConsole" dir="in">
3908 <desc>The console object that initiated this call.</desc>
3909 </param>
3910 <param name="name" type="wstring" dir="in">
3911 <desc>Snapshot name.</desc>
3912 </param>
3913 <param name="description" type="wstring" dir="in">
3914 <desc>Snapshot description.</desc>
3915 </param>
3916 <param name="progress" type="IProgress" dir="in">
3917 <desc>
3918 Progress object created by the VM process to wait until
3919 the state is saved (only for online snapshots).
3920 </desc>
3921 </param>
3922 <param name="stateFilePath" type="wstring" dir="out">
3923 <desc>
3924 File path the VM process must save the execution state to.
3925 </desc>
3926 </param>
3927 <param name="serverProgress" type="IProgress" dir="out">
3928 <desc>
3929 Progress object created by the server process to wait until
3930 the snapshot is taken (VDI diff creation, etc.).
3931 </desc>
3932 </param>
3933 </method>
3934
3935 <method name="endTakingSnapshot">
3936 <desc>
3937 Called by the VM process to inform the server that the snapshot
3938 previously requested by #beginTakingSnapshot is either
3939 successfully taken or there was a failure.
3940 </desc>
3941
3942 <param name="success" type="boolean" dir="in">
3943 <desc>@c true to indicate success and @c false otherwise</desc>
3944 </param>
3945 </method>
3946
3947 <method name="discardSnapshot">
3948 <desc>
3949 Gets called by IConsole::discardSnapshot.
3950 <result name="VBOX_E_INVALID_OBJECT_STATE">
3951 Snapshot has more than one child snapshot.
3952 </result>
3953 </desc>
3954 <param name="initiator" type="IConsole" dir="in">
3955 <desc>The console object that initiated this call.</desc>
3956 </param>
3957 <param name="id" type="wstring" dir="in">
3958 <desc>UUID of the snapshot to discard.</desc>
3959 </param>
3960 <param name="machineState" type="MachineState" dir="out">
3961 <desc>New machine state after this operation is started.</desc>
3962 </param>
3963 <param name="progress" type="IProgress" dir="return">
3964 <desc>Progress object to track the operation completion.</desc>
3965 </param>
3966 </method>
3967
3968 <method name="discardCurrentState">
3969 <desc>
3970 Gets called by IConsole::discardCurrentState.
3971 <result name="VBOX_E_INVALID_OBJECT_STATE">
3972 Virtual machine does not have any snapshot.
3973 </result>
3974 </desc>
3975 <param name="initiator" type="IConsole" dir="in">
3976 <desc>The console object that initiated this call.</desc>
3977 </param>
3978 <param name="machineState" type="MachineState" dir="out">
3979 <desc>New machine state after this operation is started.</desc>
3980 </param>
3981 <param name="progress" type="IProgress" dir="return">
3982 <desc>Progress object to track the operation completion.</desc>
3983 </param>
3984 </method>
3985
3986 <method name="discardCurrentSnapshotAndState">
3987 <desc>
3988 Gets called by IConsole::discardCurrentSnapshotAndState.
3989 <result name="VBOX_E_INVALID_OBJECT_STATE">
3990 Virtual machine does not have any snapshot.
3991 </result>
3992 </desc>
3993 <param name="initiator" type="IConsole" dir="in">
3994 <desc>The console object that initiated this call.</desc>
3995 </param>
3996 <param name="machineState" type="MachineState" dir="out">
3997 <desc>New machine state after this operation is started.</desc>
3998 </param>
3999 <param name="progress" type="IProgress" dir="return">
4000 <desc>Progress object to track the operation completion.</desc>
4001 </param>
4002 </method>
4003
4004 <method name="pullGuestProperties">
4005 <desc>
4006 Get the list of the guest properties matching a set of patterns along
4007 with their values, time stamps and flags and give responsibility for
4008 managing properties to the console.
4009 </desc>
4010 <param name="name" type="wstring" dir="out" safearray="yes">
4011 <desc>
4012 The names of the properties returned.
4013 </desc>
4014 </param>
4015 <param name="value" type="wstring" dir="out" safearray="yes">
4016 <desc>
4017 The values of the properties returned. The array entries match the
4018 corresponding entries in the @a name array.
4019 </desc>
4020 </param>
4021 <param name="timestamp" type="unsigned long long" dir="out" safearray="yes">
4022 <desc>
4023 The time stamps of the properties returned. The array entries match
4024 the corresponding entries in the @a name array.
4025 </desc>
4026 </param>
4027 <param name="flags" type="wstring" dir="out" safearray="yes">
4028 <desc>
4029 The flags of the properties returned. The array entries match the
4030 corresponding entries in the @a name array.
4031 </desc>
4032 </param>
4033 </method>
4034
4035 <method name="pushGuestProperties">
4036 <desc>
4037 Set the list of the guest properties matching a set of patterns along
4038 with their values, time stamps and flags and return responsibility for
4039 managing properties to IMachine.
4040 </desc>
4041 <param name="name" type="wstring" dir="in" safearray="yes">
4042 <desc>
4043 The names of the properties.
4044 </desc>
4045 </param>
4046 <param name="value" type="wstring" dir="in" safearray="yes">
4047 <desc>
4048 The values of the properties. The array entries match the
4049 corresponding entries in the @a name array.
4050 </desc>
4051 </param>
4052 <param name="timestamp" type="unsigned long long" dir="in" safearray="yes">
4053 <desc>
4054 The time stamps of the properties. The array entries match
4055 the corresponding entries in the @a name array.
4056 </desc>
4057 </param>
4058 <param name="flags" type="wstring" dir="in" safearray="yes">
4059 <desc>
4060 The flags of the properties. The array entries match the
4061 corresponding entries in the @a name array.
4062 </desc>
4063 </param>
4064 </method>
4065 <method name="pushGuestProperty">
4066 <desc>
4067 Update a single guest property in IMachine.
4068 </desc>
4069 <param name="name" type="wstring" dir="in">
4070 <desc>
4071 The name of the property to be updated.
4072 </desc>
4073 </param>
4074 <param name="value" type="wstring" dir="in">
4075 <desc>
4076 The value of the property.
4077 </desc>
4078 </param>
4079 <param name="timestamp" type="unsigned long long" dir="in">
4080 <desc>
4081 The timestamp of the property.
4082 </desc>
4083 </param>
4084 <param name="flags" type="wstring" dir="in">
4085 <desc>
4086 The flags of the property.
4087 </desc>
4088 </param>
4089 </method>
4090
4091 <method name="lockMedia">
4092 <desc>
4093 Locks all media attached to the machine for writing and parents of
4094 attahced different hard disks (if any) for reading. This operation is
4095 atomic so that if it fails no media is actually locked.
4096
4097 This method is intended to be called when the machine is in Starting or
4098 Restoring state. The locked media will be automatically unlocked when
4099 the machine is powered off or crashed.
4100 </desc>
4101 </method>
4102 </interface>
4103
4104 <interface
4105 name="IBIOSSettings" extends="$unknown"
4106 uuid="38b54279-dc35-4f5e-a431-835b867c6b5e"
4107 wsmap="managed"
4108 >
4109 <desc>
4110 The IBIOSSettings interface represents BIOS settings of the virtual
4111 machine. This is used only in the <link to="IMachine::BIOSSettings" /> attribute.
4112 </desc>
4113 <attribute name="logoFadeIn" type="boolean">
4114 <desc>Fade in flag for BIOS logo animation.</desc>
4115 </attribute>
4116
4117 <attribute name="logoFadeOut" type="boolean">
4118 <desc>Fade out flag for BIOS logo animation.</desc>
4119 </attribute>
4120
4121 <attribute name="logoDisplayTime" type="unsigned long">
4122 <desc>BIOS logo display time in milliseconds (0 = default).</desc>
4123 </attribute>
4124
4125 <attribute name="logoImagePath" type="wstring">
4126 <desc>Local file system path for external BIOS image.</desc>
4127 </attribute>
4128
4129 <attribute name="bootMenuMode" type="BIOSBootMenuMode">
4130 <desc>Mode of the BIOS boot device menu.</desc>
4131 </attribute>
4132
4133 <attribute name="ACPIEnabled" type="boolean">
4134 <desc>ACPI support flag.</desc>
4135 </attribute>
4136
4137 <attribute name="IOAPICEnabled" type="boolean">
4138 <desc>
4139 IO APIC support flag. If set, VirtualBox will provide an IO APIC
4140 and support IRQs above 15.
4141 </desc>
4142 </attribute>
4143
4144 <attribute name="timeOffset" type="long long">
4145 <desc>
4146 Offset in milliseconds from the host system time. This allows for
4147 guests running with a different system date/time than the host.
4148 It is equivalent to setting the system date/time in the BIOS except
4149 it is not an absolute value but a relative one. Guest Additions
4150 time synchronization honors this offset.
4151 </desc>
4152 </attribute>
4153
4154 <attribute name="PXEDebugEnabled" type="boolean">
4155 <desc>
4156 PXE debug logging flag. If set, VirtualBox will write extensive
4157 PXE trace information to the release log.
4158 </desc>
4159 </attribute>
4160
4161 </interface>
4162
4163 <interface
4164 name="IMachine" extends="$unknown"
4165 uuid="4d1df26d-d9c1-4c7e-b689-15e85ecf8ffc"
4166 wsmap="managed"
4167 >
4168 <desc>
4169 The IMachine interface represents a virtual machine, or guest, created
4170 in VirtualBox.
4171
4172 This interface is used in two contexts. First of all, a collection of
4173 objects implementing this interface is stored in the
4174 <link to="IVirtualBox::machines"/> attribute which lists all the virtual
4175 machines that are currently registered with this VirtualBox
4176 installation. Also, once a session has been opened for the given virtual
4177 machine (e.g. the virtual machine is running), the machine object
4178 associated with the open session can be queried from the session object;
4179 see <link to="ISession"/> for details.
4180
4181 The main role of this interface is to expose the settings of the virtual
4182 machine and provide methods to change various aspects of the virtual
4183 machine's configuration. For machine objects stored in the
4184 <link to="IVirtualBox::machines"/> collection, all attributes are
4185 read-only unless explicitly stated otherwise in individual attribute
4186 and method descriptions. In order to change a machine setting, a session
4187 for this machine must be opened using one of
4188 <link to="IVirtualBox::openSession"/>,
4189 <link to="IVirtualBox::openRemoteSession"/> or
4190 <link to="IVirtualBox::openExistingSession"/> methods. After the
4191 session has been successfully opened, a mutable machine object needs to
4192 be queried from the session object and then the desired settings changes
4193 can be applied to the returned object using IMachine attributes and
4194 methods. See the ISession interface description for more information
4195 about sessions.
4196
4197 Note that the IMachine interface does not provide methods to control
4198 virtual machine execution (such as start the machine, or power it
4199 down) -- these methods are grouped in a separate IConsole
4200 interface. Refer to the IConsole interface description to get more
4201 information about this topic.
4202
4203 <see>ISession, IConsole</see>
4204 </desc>
4205
4206 <attribute name="parent" type="IVirtualBox" readonly="yes">
4207 <desc>Associated parent object.</desc>
4208 </attribute>
4209
4210 <attribute name="accessible" type="boolean" readonly="yes">
4211 <desc>
4212 Whether this virtual machine is currently accessible or not.
4213
4214 The machine is considered to be inaccessible when:
4215 <ul>
4216 <li>It is a registered virtual machine, and
4217 </li>
4218 <li>Its settings file is inaccessible (for example, it is
4219 located on a network share that is not accessible during
4220 VirtualBox startup, or becomes inaccessible later, or if
4221 the settings file can be read but is invalid).
4222 </li>
4223 </ul>
4224
4225 Otherwise, the value of this property is always @c true.
4226
4227 Every time this property is read, the accessibility state of
4228 this machine is re-evaluated. If the returned value is @c false,
4229 the <link to="#accessError"/> property may be used to get the
4230 detailed error information describing the reason of
4231 inaccessibility.
4232
4233 When the machine is inaccessible, only the following properties
4234 can be used on it:
4235 <ul>
4236 <li><link to="#parent"/></li>
4237 <li><link to="#id"/></li>
4238 <li><link to="#settingsFilePath"/></li>
4239 <li><link to="#accessible"/></li>
4240 <li><link to="#accessError"/></li>
4241 </ul>
4242
4243 An attempt to access any other property or method will return
4244 an error.
4245
4246 The only possible action you can perform on an inaccessible
4247 machine is to unregister it using the
4248 <link to="IVirtualBox::unregisterMachine"/> call (or, to check
4249 for the accessibility state once more by querying this
4250 property).
4251
4252 <note>
4253 In the current implementation, once this property returns
4254 @c true, the machine will never become inaccessible
4255 later, even if its settings file cannot be successfully
4256 read/written any more (at least, until the VirtualBox
4257 server is restarted). This limitation may be removed in
4258 future releases.
4259 </note>
4260 </desc>
4261 </attribute>
4262
4263 <attribute name="accessError" type="IVirtualBoxErrorInfo" readonly="yes">
4264 <desc>
4265 Error information describing the reason of machine
4266 inaccessibility.
4267
4268 Reading this property is only valid after the last call to
4269 <link to="#accessible"/> returned @c false (i.e. the
4270 machine is currently unaccessible). Otherwise, a @c null
4271 IVirtualBoxErrorInfo object will be returned.
4272 </desc>
4273 </attribute>
4274
4275 <attribute name="name" type="wstring">
4276 <desc>
4277 Name of the virtual machine.
4278
4279 Besides being used for human-readable identification purposes
4280 everywhere in VirtualBox, the virtual machine name is also used
4281 as a name of the machine's settings file and as a name of the
4282 subdirectory this settings file resides in. Thus, every time you
4283 change the value of this property, the settings file will be
4284 renamed once you call <link to="#saveSettings"/> to confirm the
4285 change. The containing subdirectory will be also renamed, but
4286 only if it has exactly the same name as the settings file
4287 itself prior to changing this property (for backward compatibility
4288 with previous API releases). The above implies the following
4289 limitations:
4290 <ul>
4291 <li>The machine name cannot be empty.</li>
4292 <li>The machine name can contain only characters that are valid
4293 file name characters according to the rules of the file
4294 system used to store VirtualBox configuration.</li>
4295 <li>You cannot have two or more machines with the same name
4296 if they use the same subdirectory for storing the machine
4297 settings files.</li>
4298 <li>You cannot change the name of the machine if it is running,
4299 or if any file in the directory containing the settings file
4300 is being used by another running machine or by any other
4301 process in the host operating system at a time when
4302 <link to="#saveSettings"/> is called.
4303 </li>
4304 </ul>
4305 If any of the above limitations are hit, <link to="#saveSettings"/>
4306 will return an appropriate error message explaining the exact
4307 reason and the changes you made to this machine will not be
4308 saved.
4309 <note>
4310 For "legacy" machines created using the
4311 <link to="IVirtualBox::createLegacyMachine"/> call,
4312 the above naming limitations do not apply because the
4313 machine name does not affect the settings file name.
4314 The settings file name remains the same as it was specified
4315 during machine creation and never changes.
4316 </note>
4317 </desc>
4318 </attribute>
4319
4320 <attribute name="description" type="wstring">
4321 <desc>
4322 Description of the virtual machine.
4323
4324 The description attribute can contain any text and is
4325 typically used to describe the hardware and software
4326 configuration of the virtual machine in detail (i.e. network
4327 settings, versions of the installed software and so on).
4328 </desc>
4329 </attribute>
4330
4331 <attribute name="id" type="wstring" readonly="yes">
4332 <desc>UUID of the virtual machine.</desc>
4333 </attribute>
4334
4335 <attribute name="OSTypeId" type="wstring">
4336 <desc>
4337 User-defined identifier of the Guest OS type.
4338 You may use <link to="IVirtualBox::getGuestOSType"/> to obtain
4339 an IGuestOSType object representing details about the given
4340 Guest OS type.
4341 <note>
4342 This value may differ from the value returned by
4343 <link to="IGuest::OSTypeId"/> if Guest Additions are
4344 installed to the guest OS.
4345 </note>
4346 </desc>
4347 </attribute>
4348
4349 <attribute name="HardwareVersion" type="wstring">
4350 <desc>Hardware version identifier. Internal use only for now.</desc>
4351 </attribute>
4352
4353 <attribute name="CPUCount" type="unsigned long">
4354 <desc>Number of virtual CPUs in the VM.</desc>
4355 </attribute>
4356
4357 <attribute name="memorySize" type="unsigned long">
4358 <desc>System memory size in megabytes.</desc>
4359 </attribute>
4360
4361 <attribute name="memoryBalloonSize" type="unsigned long">
4362 <desc>Initial memory balloon size in megabytes.</desc>
4363 </attribute>
4364
4365 <attribute name="statisticsUpdateInterval" type="unsigned long">
4366 <desc>Initial interval to update guest statistics in seconds.</desc>
4367 </attribute>
4368
4369 <attribute name="VRAMSize" type="unsigned long">
4370 <desc>Video memory size in megabytes.</desc>
4371 </attribute>
4372
4373 <attribute name="accelerate3DEnabled" type="boolean" default="false">
4374 <desc>
4375 This setting determines whether VirtualBox allows guests to make use
4376 of the 3D graphics support available on the host. Currently limited
4377 to OpenGL only. </desc>
4378 </attribute>
4379
4380 <attribute name="monitorCount" type="unsigned long">
4381 <desc>
4382 Number of virtual monitors.
4383 <note>
4384 Only effective on Windows XP and later guests with
4385 Guest Additions installed.
4386 </note>
4387 </desc>
4388 </attribute>
4389
4390 <attribute name="BIOSSettings" type="IBIOSSettings" readonly="yes">
4391 <desc>Object containing all BIOS settings.</desc>
4392 </attribute>
4393
4394 <attribute name="HWVirtExEnabled" type="TSBool">
4395 <desc>
4396 This setting determines whether VirtualBox will try to make use of
4397 the host CPU's hardware virtualization extensions such as Intel VT-x
4398 and AMD-V. Note that in case such extensions are not available,
4399 they will not be used.
4400 </desc>
4401 </attribute>
4402
4403 <attribute name="HWVirtExNestedPagingEnabled" type="boolean" default="false">
4404 <desc>
4405 This setting determines whether VirtualBox will try to make use of
4406 the nested paging extension of Intel VT-x and AMD-V. Note that in case
4407 such extensions are not available, they will not be used.
4408 </desc>
4409 </attribute>
4410
4411 <attribute name="HWVirtExVPIDEnabled" type="boolean" default="false">
4412 <desc>
4413 This setting determines whether VirtualBox will try to make use of
4414 the VPID extension of Intel VT-x. Note that in case such extensions are
4415 not available, they will not be used.
4416 </desc>
4417 </attribute>
4418
4419 <attribute name="PAEEnabled" type="boolean" default="false">
4420 <desc>
4421 This setting determines whether VirtualBox will expose the Physical Address
4422 Extension (PAE) feature of the host CPU to the guest. Note that in case PAE
4423 is not available, it will not be reported.
4424 </desc>
4425 </attribute>
4426
4427 <attribute name="snapshotFolder" type="wstring">
4428 <desc>
4429 Full path to the directory used to store snapshot data
4430 (differencing hard disks and saved state files) of this machine.
4431
4432 The initial value of this property is
4433 <tt>&lt;</tt><link to="#settingsFilePath">
4434 path_to_settings_file</link><tt>&gt;/&lt;</tt>
4435 <link to="#id">machine_uuid</link>
4436 <tt>&gt;</tt>.
4437
4438 Currently, it is an error to try to change this property on
4439 a machine that has snapshots (because this would require to
4440 move possibly large files to a different location).
4441 A separate method will be available for this purpose later.
4442
4443 <note>
4444 Setting this property to @c null will restore the
4445 initial value.
4446 </note>
4447 <note>
4448 When setting this property, the specified path can be
4449 absolute (full path) or relative to the directory where the
4450 <link to="#settingsFilePath">machine settings file</link>
4451 is located. When reading this property, a full path is
4452 always returned.
4453 </note>
4454 <note>
4455 The specified path may not exist, it will be created
4456 when necessary.
4457 </note>
4458 </desc>
4459 </attribute>
4460
4461 <attribute name="VRDPServer" type="IVRDPServer" readonly="yes">
4462 <desc>VRDP server object.</desc>
4463 </attribute>
4464
4465 <attribute name="hardDiskAttachments" type="IHardDiskAttachment" readonly="yes" safearray="yes">
4466 <desc>Array of hard disks attached to this machine.</desc>
4467 </attribute>
4468
4469 <attribute name="DVDDrive" type="IDVDDrive" readonly="yes">
4470 <desc>Associated DVD drive object.</desc>
4471 </attribute>
4472
4473 <attribute name="floppyDrive" type="IFloppyDrive" readonly="yes">
4474 <desc>Associated floppy drive object.</desc>
4475 </attribute>
4476
4477 <attribute name="USBController" type="IUSBController" readonly="yes">
4478 <desc>
4479 Associated USB controller object.
4480
4481 <note>
4482 If USB functionality is not available in the given edition of
4483 VirtualBox, this method will set the result code to @c E_NOTIMPL.
4484 </note>
4485 </desc>
4486 </attribute>
4487
4488 <attribute name="audioAdapter" type="IAudioAdapter" readonly="yes">
4489 <desc>Associated audio adapter, always present.</desc>
4490 </attribute>
4491
4492 <attribute name="storageControllers" type="IStorageController" readonly="yes" safearray="yes">
4493 <desc>Array of storage controllers attached to this machine.</desc>
4494 </attribute>
4495
4496 <attribute name="settingsFilePath" type="wstring" readonly="yes">
4497 <desc>
4498 Full name of the file containing machine settings data.
4499 </desc>
4500 </attribute>
4501
4502 <attribute name="settingsFileVersion" type="wstring" readonly="yes">
4503 <desc>
4504 Current version of the format of the settings file of this machine
4505 (<link to="IMachine::settingsFilePath"/>).
4506
4507 The version string has the following format:
4508 <pre>
4509 x.y-platform
4510 </pre>
4511 where @c x and @c y are the major and the minor format
4512 versions, and @c platform is the platform identifier.
4513
4514 The current version usually matches the value of the
4515 <link to="IVirtualBox::settingsFormatVersion"/> attribute unless the
4516 settings file was created by an older version of VirtualBox and there
4517 was a change of the settings file format since then.
4518
4519 Note that VirtualBox automatically converts settings files from older
4520 versions to the most recent version when reading them (usually at
4521 VirtualBox startup) but it doesn't save the changes back until
4522 you call a method that implicitly saves settings (such as
4523 <link to="#setExtraData"/>) or call <link to="#saveSettings"/>
4524 explicitly. Therefore, if the value of this attribute differs from the
4525 value of <link to="IVirtualBox::settingsFormatVersion"/>, then it
4526 means that the settings file was converted but the result of the
4527 conversion is not yet saved to disk.
4528
4529 The above feature may be used by interactive front-ends to inform users
4530 about the settings file format change and offer them to explicitly save
4531 all converted settings files (the global and VM-specific ones),
4532 optionally create backup copies of the old settings files before saving,
4533 etc.
4534
4535 <see>IVirtualBox::settingsFormatVersion, saveSettingsWithBackup()</see>
4536 </desc>
4537 </attribute>
4538
4539 <attribute name="settingsModified" type="boolean" readonly="yes">
4540 <desc>
4541 Whether the settings of this machine have been modified
4542 (but neither yet saved nor discarded).
4543 <note>
4544 Reading this property is only valid on instances returned
4545 by <link to="ISession::machine"/> and on new machines
4546 created by <link to="IVirtualBox::createMachine"/> or opened
4547 by <link to="IVirtualBox::openMachine"/> but not
4548 yet registered, or on unregistered machines after calling
4549 <link to="IVirtualBox::unregisterMachine"/>. For all other
4550 cases, the settings can never be modified.
4551 </note>
4552 <note>
4553 For newly created unregistered machines, the value of this
4554 property is always @c true until <link to="#saveSettings"/>
4555 is called (no matter if any machine settings have been
4556 changed after the creation or not). For opened machines
4557 the value is set to @c false (and then follows to normal rules).
4558 </note>
4559 </desc>
4560 </attribute>
4561
4562 <attribute name="sessionState" type="SessionState" readonly="yes">
4563 <desc>Current session state for this machine.</desc>
4564 </attribute>
4565
4566 <attribute name="sessionType" type="wstring" readonly="yes">
4567 <desc>
4568 Type of the session. If <link to="#sessionState"/> is
4569 SessionSpawning or SessionOpen, this attribute contains the
4570 same value as passed to the
4571 <link to="IVirtualBox::openRemoteSession"/> method in the
4572 @a type parameter. If the session was opened directly using
4573 <link to="IVirtualBox::openSession"/>, or if
4574 <link to="#sessionState"/> is SessionClosed, the value of this
4575 attribute is @c null.
4576 </desc>
4577 </attribute>
4578
4579 <attribute name="sessionPid" type="unsigned long" readonly="yes">
4580 <desc>
4581 Identifier of the session process. This attribute contains the
4582 platform-dependent identifier of the process that has opened a
4583 direct session for this machine using the
4584 <link to="IVirtualBox::openSession"/> call. The returned value
4585 is only valid if <link to="#sessionState"/> is SessionOpen or
4586 SessionClosing (i.e. a session is currently open or being
4587 closed) by the time this property is read.
4588 </desc>
4589 </attribute>
4590
4591 <attribute name="state" type="MachineState" readonly="yes">
4592 <desc>Current execution state of this machine.</desc>
4593 </attribute>
4594
4595 <attribute name="lastStateChange" type="long long" readonly="yes">
4596 <desc>
4597 Time stamp of the last execution state change,
4598 in milliseconds since 1970-01-01 UTC.
4599 </desc>
4600 </attribute>
4601
4602 <attribute name="stateFilePath" type="wstring" readonly="yes">
4603 <desc>
4604 Full path to the file that stores the execution state of
4605 the machine when it is in the <link to="MachineState_Saved"/> state.
4606 <note>
4607 When the machine is not in the Saved state, this attribute is
4608 @c null.
4609 </note>
4610 </desc>
4611 </attribute>
4612
4613 <attribute name="logFolder" type="wstring" readonly="yes">
4614 <desc>
4615 Full path to the folder that stores a set of rotated log files
4616 recorded during machine execution. The most recent log file is
4617 named <tt>VBox.log</tt>, the previous log file is
4618 named <tt>VBox.log.1</tt> and so on (up to <tt>VBox.log.3</tt>
4619 in the current version).
4620 </desc>
4621 </attribute>
4622
4623 <attribute name="currentSnapshot" type="ISnapshot" readonly="yes">
4624 <desc>
4625 Current snapshot of this machine.
4626 <note>
4627 A @c null object is returned if the machine doesn't
4628 have snapshots.
4629 </note>
4630 <see><link to="ISnapshot"/></see>
4631 </desc>
4632 </attribute>
4633
4634 <attribute name="snapshotCount" type="unsigned long" readonly="yes">
4635 <desc>
4636 Number of snapshots taken on this machine. Zero means the
4637 machine doesn't have any snapshots.
4638 </desc>
4639 </attribute>
4640
4641 <attribute name="currentStateModified" type="boolean" readonly="yes">
4642 <desc>
4643 Returns @c true if the current state of the machine is not
4644 identical to the state stored in the current snapshot.
4645
4646 The current state is identical to the current snapshot right
4647 after one of the following calls are made:
4648 <ul>
4649 <li><link to="IConsole::discardCurrentState"/> or
4650 <link to="IConsole::discardCurrentSnapshotAndState"/>
4651 </li>
4652 <li><link to="IConsole::takeSnapshot"/> (issued on a
4653 powered off or saved machine, for which
4654 <link to="#settingsModified"/> returns @c false)
4655 </li>
4656 <li><link to="IMachine::setCurrentSnapshot"/>
4657 </li>
4658 </ul>
4659
4660 The current state remains identical until one of the following
4661 happens:
4662 <ul>
4663 <li>settings of the machine are changed</li>
4664 <li>the saved state is discarded</li>
4665 <li>the current snapshot is discarded</li>
4666 <li>an attempt to execute the machine is made</li>
4667 </ul>
4668
4669 <note>
4670 For machines that don't have snapshots, this property is
4671 always @c false.
4672 </note>
4673 </desc>
4674 </attribute>
4675
4676 <attribute name="sharedFolders" type="ISharedFolder" readonly="yes" safearray="yes">
4677 <desc>
4678 Collection of shared folders for this machine (permanent shared
4679 folders). These folders are shared automatically at machine startup
4680 and available only to the guest OS installed within this machine.
4681
4682 New shared folders are added to the collection using
4683 <link to="#createSharedFolder"/>. Existing shared folders can be
4684 removed using <link to="#removeSharedFolder"/>.
4685 </desc>
4686 </attribute>
4687
4688 <attribute name="clipboardMode" type="ClipboardMode">
4689 <desc>
4690 Synchronization mode between the host OS clipboard
4691 and the guest OS clipboard.
4692 </desc>
4693 </attribute>
4694
4695 <attribute name="guestPropertyNotificationPatterns" type="wstring">
4696 <desc>
4697 A comma-separated list of simple glob patterns. Changes to guest
4698 properties whose name matches one of the patterns will generate an
4699 <link to="IVirtualBoxCallback::onGuestPropertyChange"/> signal.
4700 </desc>
4701 </attribute>
4702
4703 <method name="setBootOrder">
4704 <desc>
4705 Puts the given device to the specified position in
4706 the boot order.
4707
4708 To indicate that no device is associated with the given position,
4709 <link to="DeviceType_Null"/> should be used.
4710
4711 @todo setHardDiskBootOrder(), setNetworkBootOrder()
4712
4713 <result name="E_INVALIDARG">
4714 Boot @a position out of range.
4715 </result>
4716 <result name="E_NOTIMPL">
4717 Booting from USB @a device currently not supported.
4718 </result>
4719
4720 </desc>
4721 <param name="position" type="unsigned long" dir="in">
4722 <desc>
4723 Position in the boot order (@c 1 to the total number of
4724 devices the machine can boot from, as returned by
4725 <link to="ISystemProperties::maxBootPosition"/>).
4726 </desc>
4727 </param>
4728 <param name="device" type="DeviceType" dir="in">
4729 <desc>
4730 The type of the device used to boot at the given position.
4731 </desc>
4732 </param>
4733 </method>
4734
4735 <method name="getBootOrder" const="yes">
4736 <desc>
4737 Returns the device type that occupies the specified
4738 position in the boot order.
4739
4740 @todo [remove?]
4741 If the machine can have more than one device of the returned type
4742 (such as hard disks), then a separate method should be used to
4743 retrieve the individual device that occupies the given position.
4744
4745 If here are no devices at the given position, then
4746 <link to="DeviceType_Null"/> is returned.
4747
4748 @todo getHardDiskBootOrder(), getNetworkBootOrder()
4749
4750 <result name="E_INVALIDARG">
4751 Boot @a position out of range.
4752 </result>
4753
4754 </desc>
4755 <param name="position" type="unsigned long" dir="in">
4756 <desc>
4757 Position in the boot order (@c 1 to the total number of
4758 devices the machine can boot from, as returned by
4759 <link to="ISystemProperties::maxBootPosition"/>).
4760 </desc>
4761 </param>
4762 <param name="device" type="DeviceType" dir="return">
4763 <desc>
4764 Device at the given position.
4765 </desc>
4766 </param>
4767 </method>
4768
4769 <method name="attachHardDisk">
4770 <desc>
4771 Attaches a virtual hard disk (<link to="IHardDisk" />, identified
4772 by the given UUID @a id) to the given hard disk controller
4773 (<link to="IStorageController" />, identified by @a name),
4774 at the indicated port and device.
4775
4776 For the IDE bus, the @a controllerPort parameter can be either
4777 @c 0 or @c 1, to specify the primary or secondary IDE controller,
4778 respectively. For the primary controller of the IDE bus,
4779 @a device can be either @c 0 or @c 1, to specify the master or the
4780 slave device, respectively. For the secondary IDE controller, the
4781 device number must be @c 1 because VirtualBox reserves the
4782 secondary master for the CD-ROM drive.
4783
4784 For an SATA controller, @a controllerPort must be a number ranging
4785 from @c 0 to @c 29. For a SCSI controller, @a controllerPort must
4786 be a number ranging from @c 0 to @c 15.
4787
4788 For both SCSI and SATA, the @a device parameter is unused and must
4789 be @c 0.
4790
4791 The specified device slot must not have another disk attached to it, or
4792 this method will fail.
4793
4794 See <link to="IHardDisk"/> for more detailed information about
4795 attaching hard disks.
4796
4797 <note>
4798 You cannot attach a hard disk to a running machine. Also, you cannot
4799 attach a hard disk to a newly created machine until this machine's
4800 settings are saved to disk using <link to="#saveSettings"/>.
4801 </note>
4802 <note>
4803 If the hard disk is being attached indirectly, a new differencing hard
4804 disk will implicitly be created for it and attached instead. If the
4805 changes made to the machine settings (including this indirect
4806 attachment) are later cancelled using <link to="#discardSettings"/>,
4807 this implicitly created differencing hard disk will implicitly
4808 be deleted.
4809 </note>
4810
4811 <result name="E_INVALIDARG">
4812 SATA device, SATA port, IDE port or IDE slot out of range.
4813 </result>
4814 <result name="VBOX_E_INVALID_OBJECT_STATE">
4815 Attempt to attach hard disk to an unregistered virtual machine.
4816 </result>
4817 <result name="VBOX_E_INVALID_VM_STATE">
4818 Invalid machine state.
4819 </result>
4820 <result name="VBOX_E_OBJECT_IN_USE">
4821 Hard disk already attached to this or another virtual machine.
4822 </result>
4823
4824 </desc>
4825 <param name="id" type="wstring" dir="in">
4826 <desc>UUID of the hard disk to attach.</desc>
4827 </param>
4828 <param name="name" type="wstring" dir="in">
4829 <desc>Name of the storage controller to attach the hard disk to.</desc>
4830 </param>
4831 <param name="controllerPort" type="long" dir="in">
4832 <desc>Port to attach the hard disk to.</desc>
4833 </param>
4834 <param name="device" type="long" dir="in">
4835 <desc>
4836 Device slot in the given port to attach the hard disk to.
4837 </desc>
4838 </param>
4839 </method>
4840
4841 <method name="getHardDisk" const="yes">
4842 <desc>
4843 Returns the virtual hard disk attached to a device slot of the specified
4844 bus.
4845
4846 Note that if the hard disk was indirectly attached by
4847 <link to="#attachHardDisk"/> to the given device slot then this
4848 method will return not the same object as passed to the
4849 <link to="#attachHardDisk"/> call. See <link to="IHardDisk"/> for
4850 more detailed information about attaching hard disks.
4851
4852 <result name="VBOX_E_OBJECT_NOT_FOUND">
4853 No hard disk attached to given slot/bus.
4854 </result>
4855
4856 </desc>
4857 <param name="name" type="wstring" dir="in">
4858 <desc>Name of the storage controller the hard disk is attached to.</desc>
4859 </param>
4860 <param name="controllerPort" type="long" dir="in">
4861 <desc>Port to query.</desc>
4862 </param>
4863 <param name="device" type="long" dir="in">
4864 <desc>Device slot in the given port to query.</desc>
4865 </param>
4866 <param name="hardDisk" type="IHardDisk" dir="return">
4867 <desc>Attached hard disk object.</desc>
4868 </param>
4869 </method>
4870
4871 <method name="detachHardDisk">
4872 <desc>
4873 Detaches the virtual hard disk attached to a device slot of the
4874 specified bus.
4875
4876 Detaching the hard disk from the virtual machine is deferred. This means
4877 that the hard disk remains associated with the machine when this method
4878 returns and gets actually de-associated only after a successful
4879 <link to="#saveSettings"/> call. See <link to="IHardDisk"/>
4880 for more detailed information about attaching hard disks.
4881
4882 <note>
4883 You cannot detach the hard disk from a running machine.
4884 </note>
4885 <note>
4886 Detaching differencing hard disks implicitly created by <link
4887 to="#attachHardDisk"/> for the indirect attachment using this
4888 method will <b>not</b> implicitly delete them. The
4889 <link to="IHardDisk::deleteStorage"/> operation should be
4890 explicitly performed by the caller after the hard disk is successfully
4891 detached and the settings are saved with
4892 <link to="#saveSettings"/>, if it is the desired action.
4893 </note>
4894
4895 <result name="VBOX_E_INVALID_VM_STATE">
4896 Attempt to detach hard disk from a running virtual machine.
4897 </result>
4898 <result name="VBOX_E_OBJECT_NOT_FOUND">
4899 No hard disk attached to given slot/bus.
4900 </result>
4901 <result name="VBOX_E_NOT_SUPPORTED">
4902 Hard disk format does not support storage deletion.
4903 </result>
4904
4905 </desc>
4906 <param name="name" type="wstring" dir="in">
4907 <desc>name of the storage controller to detach the hard disk from.</desc>
4908 </param>
4909 <param name="controllerPort" type="long" dir="in">
4910 <desc>Port number to detach the hard disk from.</desc>
4911 </param>
4912 <param name="device" type="long" dir="in">
4913 <desc>Device slot number to detach the hard disk from.</desc>
4914 </param>
4915 </method>
4916
4917 <method name="getHardDiskAttachmentsOfController" const="yes">
4918 <desc>
4919 Returns an array of hard disk attachments which are attached to the
4920 the controller with the given name.
4921
4922 <result name="VBOX_E_OBJECT_NOT_FOUND">
4923 A storage controller with given name doesn't exist.
4924 </result>
4925 </desc>
4926 <param name="name" type="wstring" dir="in"/>
4927 <param name="hardDiskAttachments" type="IHardDiskAttachment" safearray="yes" dir="return"/>
4928 </method>
4929
4930 <method name="getNetworkAdapter" const="yes">
4931 <desc>
4932 Returns the network adapter associated with the given slot.
4933 Slots are numbered sequentially, starting with zero. The total
4934 number of adapters per machine is defined by the
4935 <link to="ISystemProperties::networkAdapterCount"/> property,
4936 so the maximum slot number is one less than that property's value.
4937
4938 <result name="E_INVALIDARG">
4939 Invalid @a slot number.
4940 </result>
4941
4942 </desc>
4943 <param name="slot" type="unsigned long" dir="in"/>
4944 <param name="adapter" type="INetworkAdapter" dir="return"/>
4945 </method>
4946
4947 <method name="addStorageController">
4948 <desc>
4949 Adds a new storage controller (SCSI or SATA controller) to the
4950 machine and returns it as an instance of
4951 <link to="IStorageController" />.
4952
4953 @a name identifies the controller for subsequent calls such as
4954 <link to="#getStorageControllerByName" /> or
4955 <link to="#removeStorageController" /> or
4956 <link to="#attachHardDisk" />.
4957
4958 After the controller has been added, you can set its exact
4959 type by setting the <link to="IStorageController::controllerType" />.
4960
4961 <result name="VBOX_E_OBJECT_IN_USE">
4962 A storage controller with given name exists already.
4963 </result>
4964 <result name="E_INVALIDARG">
4965 Invalid @a controllerType.
4966 </result>
4967 </desc>
4968 <param name="name" type="wstring" dir="in"/>
4969 <param name="connectionType" type="StorageBus" dir="in"/>
4970 <param name="controller" type="IStorageController" dir="return"/>
4971 </method>
4972
4973 <method name="getStorageControllerByName" const="yes">
4974 <desc>
4975 Returns a storage controller with the given name.
4976
4977 <result name="VBOX_E_OBJECT_NOT_FOUND">
4978 A storage controller with given name doesn't exist.
4979 </result>
4980 </desc>
4981 <param name="name" type="wstring" dir="in"/>
4982 <param name="storageController" type="IStorageController" dir="return"/>
4983 </method>
4984
4985 <method name="removeStorageController">
4986 <desc>
4987 Removes a storage controller from the machine.
4988
4989 <result name="VBOX_E_OBJECT_NOT_FOUND">
4990 A storage controller with given name doesn't exist.
4991 </result>
4992 </desc>
4993 <param name="name" type="wstring" dir="in"/>
4994 </method>
4995
4996 <method name="getSerialPort" const="yes">
4997 <desc>
4998 Returns the serial port associated with the given slot.
4999 Slots are numbered sequentially, starting with zero. The total
5000 number of serial ports per machine is defined by the
5001 <link to="ISystemProperties::serialPortCount"/> property,
5002 so the maximum slot number is one less than that property's value.
5003
5004 <result name="E_INVALIDARG">
5005 Invalid @a slot number.
5006 </result>
5007
5008 </desc>
5009 <param name="slot" type="unsigned long" dir="in"/>
5010 <param name="port" type="ISerialPort" dir="return"/>
5011 </method>
5012
5013 <method name="getParallelPort" const="yes">
5014 <desc>
5015 Returns the parallel port associated with the given slot.
5016 Slots are numbered sequentially, starting with zero. The total
5017 number of parallel ports per machine is defined by the
5018 <link to="ISystemProperties::parallelPortCount"/> property,
5019 so the maximum slot number is one less than that property's value.
5020
5021 <result name="E_INVALIDARG">
5022 Invalid @a slot number.
5023 </result>
5024
5025 </desc>
5026 <param name="slot" type="unsigned long" dir="in"/>
5027 <param name="port" type="IParallelPort" dir="return"/>
5028 </method>
5029
5030 <method name="getNextExtraDataKey">
5031 <desc>
5032 Returns the machine-specific extra data key name following the
5033 supplied key.
5034
5035 An error is returned if the supplied @a key does not exist. @c null is
5036 returned in @a nextKey if the supplied key is the last key. When
5037 supplying @c null for the @a key, the first key item is returned in
5038 @a nextKey (if there is any). @a nextValue is an optional parameter and
5039 if supplied, the next key's value is returned in it.
5040
5041 <result name="VBOX_E_OBJECT_NOT_FOUND">
5042 Extra data @a key not found.
5043 </result>
5044
5045 </desc>
5046 <param name="key" type="wstring" dir="in">
5047 <desc>Name of the data key to follow.</desc>
5048 </param>
5049 <param name="nextKey" type="wstring" dir="out">
5050 <desc>Name of the next data key.</desc>
5051 </param>
5052 <param name="nextValue" type="wstring" dir="out">
5053 <desc>Value of the next data key.</desc>
5054 </param>
5055 </method>
5056
5057 <method name="getExtraData">
5058 <desc>
5059 Returns associated machine-specific extra data.
5060
5061 If the requested data @a key does not exist, this function will
5062 succeed and return @c null in the @a value argument.
5063
5064 <result name="VBOX_E_FILE_ERROR">
5065 Settings file not accessible.
5066 </result>
5067 <result name="VBOX_E_XML_ERROR">
5068 Could not parse the settings file.
5069 </result>
5070
5071 </desc>
5072 <param name="key" type="wstring" dir="in">
5073 <desc>Name of the data key to get.</desc>
5074 </param>
5075 <param name="value" type="wstring" dir="return">
5076 <desc>Value of the requested data key.</desc>
5077 </param>
5078 </method>
5079
5080 <method name="setExtraData">
5081 <desc>
5082 Sets associated machine-specific extra data.
5083
5084 If you pass @c null as a key @a value, the given @a key will be
5085 deleted.
5086
5087 <note>
5088 Before performing the actual data change, this method will ask all
5089 registered callbacks using the
5090 <link to="IVirtualBoxCallback::onExtraDataCanChange"/>
5091 notification for a permission. If one of the callbacks refuses the
5092 new value, the change will not be performed.
5093 </note>
5094 <note>
5095 On success, the
5096 <link to="IVirtualBoxCallback::onExtraDataChange"/> notification
5097 is called to inform all registered callbacks about a successful data
5098 change.
5099 </note>
5100 <note>
5101 This method can be called outside the machine session and therefore
5102 it's a caller's responsibility to handle possible race conditions
5103 when several clients change the same key at the same time.
5104 </note>
5105
5106 <result name="VBOX_E_FILE_ERROR">
5107 Settings file not accessible.
5108 </result>
5109 <result name="VBOX_E_XML_ERROR">
5110 Could not parse the settings file.
5111 </result>
5112
5113 </desc>
5114 <param name="key" type="wstring" dir="in">
5115 <desc>Name of the data key to set.</desc>
5116 </param>
5117 <param name="value" type="wstring" dir="in">
5118 <desc>Value to assign to the key.</desc>
5119 </param>
5120 </method>
5121
5122 <method name="saveSettings">
5123 <desc>
5124 Saves any changes to machine settings made since the session
5125 has been opened or a new machine has been created, or since the
5126 last call to <link to="#saveSettings"/> or <link to="#discardSettings"/>.
5127 For registered machines, new settings become visible to all
5128 other VirtualBox clients after successful invocation of this
5129 method.
5130 <note>
5131 The method sends <link to="IVirtualBoxCallback::onMachineDataChange"/>
5132 notification event after the configuration has been successfully
5133 saved (only for registered machines).
5134 </note>
5135 <note>
5136 Calling this method is only valid on instances returned
5137 by <link to="ISession::machine"/> and on new machines
5138 created by <link to="IVirtualBox::createMachine"/> but not
5139 yet registered, or on unregistered machines after calling
5140 <link to="IVirtualBox::unregisterMachine"/>.
5141 </note>
5142
5143 <result name="VBOX_E_FILE_ERROR">
5144 Settings file not accessible.
5145 </result>
5146 <result name="VBOX_E_XML_ERROR">
5147 Could not parse the settings file.
5148 </result>
5149 <result name="E_ACCESSDENIED">
5150 Modification request refused.
5151 </result>
5152
5153 </desc>
5154 </method>
5155
5156 <method name="saveSettingsWithBackup">
5157 <desc>
5158 Creates a backup copy of the machine settings file (<link
5159 to="IMachine::settingsFilePath"/>) in case of auto-conversion, and then calls
5160 <link to="IMachine::saveSettings"/>.
5161
5162 Note that the backup copy is created <b>only</b> if the settings file
5163 auto-conversion took place (see <link to="#settingsFileVersion"/> for
5164 details). Otherwise, this call is fully equivalent to
5165 <link to="IMachine::saveSettings"/> and no backup copying is done.
5166
5167 The backup copy is created in the same directory where the original
5168 settings file is located. It is given the following file name:
5169 <pre>
5170 original.xml.x.y-platform.bak
5171 </pre>
5172 where <tt>original.xml</tt> is the original settings file name
5173 (excluding path), and <tt>x.y-platform</tt> is the version of the old
5174 format of the settings file (before auto-conversion).
5175
5176 If the given backup file already exists, this method will try to add the
5177 <tt>.N</tt> suffix to the backup file name (where @c N counts from
5178 0 to 9) and copy it again until it succeeds. If all suffixes are
5179 occupied, or if any other copy error occurs, this method will return a
5180 failure.
5181
5182 If the copy operation succeeds, the @a bakFileName return argument will
5183 receive a full path to the created backup file (for informational
5184 purposes). Note that this will happen even if the subsequent
5185 <link to="#saveSettings"/> call performed by this method after the
5186 copy operation, fails.
5187
5188 <note>
5189 The VirtualBox API never calls this method. It is intended purely for
5190 the purposes of creating backup copies of the settings files by
5191 front-ends before saving the results of the automatically performed
5192 settings conversion to disk.
5193 </note>
5194
5195 <see>settingsFileVersion</see>
5196
5197 <result name="VBOX_E_FILE_ERROR">
5198 Settings file not accessible.
5199 </result>
5200 <result name="VBOX_E_XML_ERROR">
5201 Could not parse the settings file.
5202 </result>
5203 <result name="VBOX_E_INVALID_VM_STATE">
5204 Virtual machine is not mutable.
5205 </result>
5206 <result name="E_ACCESSDENIED">
5207 Modification request refused.
5208 </result>
5209
5210 </desc>
5211 <param name="bakFileName" type="wstring" dir="return">
5212 <desc>Full path to the created backup copy.</desc>
5213 </param>
5214 </method>
5215
5216 <method name="discardSettings">
5217 <desc>
5218 Discards any changes to the machine settings made since the session
5219 has been opened or since the last call to <link to="#saveSettings"/>
5220 or <link to="#discardSettings"/>.
5221 <note>
5222 Calling this method is only valid on instances returned
5223 by <link to="ISession::machine"/> and on new machines
5224 created by <link to="IVirtualBox::createMachine"/> or
5225 opened by <link to="IVirtualBox::openMachine"/> but not
5226 yet registered, or on unregistered machines after calling
5227 <link to="IVirtualBox::unregisterMachine"/>.
5228 </note>
5229
5230 <result name="VBOX_E_INVALID_VM_STATE">
5231 Virtual machine is not mutable.
5232 </result>
5233
5234 </desc>
5235 </method>
5236
5237 <method name="deleteSettings">
5238 <desc>
5239 Deletes the settings file of this machine from disk.
5240 The machine must not be registered in order for this operation
5241 to succeed.
5242 <note>
5243 <link to="#settingsModified"/> will return @c true after this
5244 method successfully returns.
5245 </note>
5246 <note>
5247 Calling this method is only valid on instances returned
5248 by <link to="ISession::machine"/> and on new machines
5249 created by <link to="IVirtualBox::createMachine"/> or
5250 opened by <link to="IVirtualBox::openMachine"/> but not
5251 yet registered, or on unregistered machines after calling
5252 <link to="IVirtualBox::unregisterMachine"/>.
5253 </note>
5254 <note>
5255 The deleted machine settings file can be restored (saved again)
5256 by calling <link to="#saveSettings"/>.
5257 </note>
5258
5259 <result name="VBOX_E_INVALID_VM_STATE">
5260 Cannot delete settings of a registered machine or
5261 machine not mutable.
5262 </result>
5263 <result name="VBOX_E_IPRT_ERROR">
5264 Could not delete the settings file.
5265 </result>
5266
5267 </desc>
5268 </method>
5269
5270 <method name="export">
5271 <desc>Exports the machine to an OVF appliance. See <link to="IAppliance" /> for the
5272 steps required to export VirtualBox machines to OVF.
5273 </desc>
5274
5275 <param name="aAppliance" type="IAppliance" dir="in">
5276 <desc>Appliance to export this machine to.</desc>
5277 </param>
5278 <param name="aDescription" type="IVirtualSystemDescription" dir="return">
5279 <desc>VirtualSystemDescription object which is created for this machine.</desc>
5280 </param>
5281 </method >
5282
5283 <method name="getSnapshot">
5284 <desc>
5285 Returns a snapshot of this machine with the given UUID.
5286 A @c null UUID can be used to obtain the first snapshot
5287 taken on this machine. This is useful if you want to traverse
5288 the whole tree of snapshots starting from the root.
5289
5290 <result name="VBOX_E_OBJECT_NOT_FOUND">
5291 Virtual machine has no snapshots or snapshot not found.
5292 </result>
5293
5294 </desc>
5295 <param name="id" type="wstring" dir="in">
5296 <desc>UUID of the snapshot to get</desc>
5297 </param>
5298 <param name="snapshot" type="ISnapshot" dir="return">
5299 <desc>Snapshot object with the given UUID.</desc>
5300 </param>
5301 </method>
5302
5303 <method name="findSnapshot">
5304 <desc>
5305 Returns a snapshot of this machine with the given name.
5306
5307 <result name="VBOX_E_OBJECT_NOT_FOUND">
5308 Virtual machine has no snapshots or snapshot not found.
5309 </result>
5310
5311 </desc>
5312 <param name="name" type="wstring" dir="in">
5313 <desc>Name of the snapshot to find</desc>
5314 </param>
5315 <param name="snapshot" type="ISnapshot" dir="return">
5316 <desc>Snapshot object with the given name.</desc>
5317 </param>
5318 </method>
5319
5320 <method name="setCurrentSnapshot">
5321 <desc>
5322 Sets the current snapshot of this machine.
5323 <note>
5324 In the current implementation, this operation is not
5325 implemented.
5326 </note>
5327 </desc>
5328 <param name="id" type="wstring" dir="in">
5329 <desc>UUID of the snapshot to set as the current snapshot.</desc>
5330 </param>
5331 </method>
5332
5333 <method name="createSharedFolder">
5334 <desc>
5335 Creates a new permanent shared folder by associating the given logical
5336 name with the given host path, adds it to the collection of shared
5337 folders and starts sharing it. Refer to the description of
5338 <link to="ISharedFolder"/> to read more about logical names.
5339
5340 <result name="VBOX_E_OBJECT_IN_USE">
5341 Shared folder already exists.
5342 </result>
5343 <result name="VBOX_E_FILE_ERROR">
5344 Shared folder @a hostPath not accessible.
5345 </result>
5346
5347 </desc>
5348 <param name="name" type="wstring" dir="in">
5349 <desc>Unique logical name of the shared folder.</desc>
5350 </param>
5351 <param name="hostPath" type="wstring" dir="in">
5352 <desc>Full path to the shared folder in the host file system.</desc>
5353 </param>
5354 <param name="writable" type="boolean" dir="in">
5355 <desc>Whether the share is writable or readonly</desc>
5356 </param>
5357 </method>
5358
5359 <method name="removeSharedFolder">
5360 <desc>
5361 Removes the permanent shared folder with the given name previously
5362 created by <link to="#createSharedFolder"/> from the collection of
5363 shared folders and stops sharing it.
5364
5365 <result name="VBOX_E_INVALID_VM_STATE">
5366 Virtual machine is not mutable.
5367 </result>
5368 <result name="VBOX_E_OBJECT_NOT_FOUND">
5369 Shared folder @a name does not exist.
5370 </result>
5371
5372 </desc>
5373 <param name="name" type="wstring" dir="in">
5374 <desc>Logical name of the shared folder to remove.</desc>
5375 </param>
5376 </method>
5377
5378 <method name="canShowConsoleWindow">
5379 <desc>
5380 Returns @c true if the VM console process can activate the
5381 console window and bring it to foreground on the desktop of
5382 the host PC.
5383 <note>
5384 This method will fail if a session for this machine is not
5385 currently open.
5386 </note>
5387
5388 <result name="VBOX_E_INVALID_VM_STATE">
5389 Machine session is not open.
5390 </result>
5391
5392 </desc>
5393 <param name="canShow" type="boolean" dir="return">
5394 <desc>
5395 @c true if the console window can be shown and @c false otherwise.
5396 </desc>
5397 </param>
5398 </method>
5399
5400 <method name="showConsoleWindow">
5401 <desc>
5402 Activates the console window and brings it to foreground on
5403 the desktop of the host PC. Many modern window managers on
5404 many platforms implement some sort of focus stealing
5405 prevention logic, so that it may be impossible to activate
5406 a window without the help of the currently active
5407 application. In this case, this method will return a non-zero
5408 identifier that represents the top-level window of the VM
5409 console process. The caller, if it represents a currently
5410 active process, is responsible to use this identifier (in a
5411 platform-dependent manner) to perform actual window
5412 activation.
5413 <note>
5414 This method will fail if a session for this machine is not
5415 currently open.
5416 </note>
5417
5418 <result name="VBOX_E_INVALID_VM_STATE">
5419 Machine session is not open.
5420 </result>
5421
5422 </desc>
5423 <param name="winId" type="unsigned long long" dir="return">
5424 <desc>
5425 Platform-dependent identifier of the top-level VM console
5426 window, or zero if this method has performed all actions
5427 necessary to implement the <i>show window</i> semantics for
5428 the given platform and/or VirtualBox front-end.
5429 </desc>
5430 </param>
5431 </method>
5432
5433 <method name="getGuestProperty">
5434 <desc>
5435 Reads an entry from the machine's guest property store.
5436
5437 <result name="VBOX_E_INVALID_VM_STATE">
5438 Machine session is not open.
5439 </result>
5440
5441 </desc>
5442 <param name="name" type="wstring" dir="in">
5443 <desc>
5444 The name of the property to read.
5445 </desc>
5446 </param>
5447 <param name="value" type="wstring" dir="out">
5448 <desc>
5449 The value of the property. If the property does not exist then this
5450 will be empty.
5451 </desc>
5452 </param>
5453 <param name="timestamp" type="unsigned long long" dir="out">
5454 <desc>
5455 The time at which the property was last modified, as seen by the
5456 server process.
5457 </desc>
5458 </param>
5459 <param name="flags" type="wstring" dir="out">
5460 <desc>
5461 Additional property parameters, passed as a comma-separated list of
5462 "name=value" type entries.
5463 </desc>
5464 </param>
5465 </method>
5466
5467 <method name="getGuestPropertyValue">
5468 <desc>
5469 Reads a value from the machine's guest property store.
5470
5471 <result name="VBOX_E_INVALID_VM_STATE">
5472 Machine session is not open.
5473 </result>
5474
5475 </desc>
5476 <param name="property" type="wstring" dir="in">
5477 <desc>
5478 The name of the property to read.
5479 </desc>
5480 </param>
5481 <param name="value" type="wstring" dir="return">
5482 <desc>
5483 The value of the property. If the property does not exist then this
5484 will be empty.
5485 </desc>
5486 </param>
5487 </method>
5488
5489 <method name="getGuestPropertyTimestamp">
5490 <desc>
5491 Reads a property timestamp from the machine's guest property store.
5492
5493 <result name="VBOX_E_INVALID_VM_STATE">
5494 Machine session is not open.
5495 </result>
5496
5497 </desc>
5498 <param name="property" type="wstring" dir="in">
5499 <desc>
5500 The name of the property to read.
5501 </desc>
5502 </param>
5503 <param name="value" type="unsigned long long" dir="return">
5504 <desc>
5505 The timestamp. If the property does not exist then this will be
5506 empty.
5507 </desc>
5508 </param>
5509 </method>
5510
5511 <method name="setGuestProperty">
5512 <desc>
5513 Sets, changes or deletes an entry in the machine's guest property
5514 store.
5515
5516 <result name="E_ACCESSDENIED">
5517 Property cannot be changed.
5518 </result>
5519 <result name="E_INVALIDARG">
5520 Invalid @a flags.
5521 </result>
5522 <result name="VBOX_E_INVALID_VM_STATE">
5523 Virtual machine is not mutable or session not open.
5524 </result>
5525 <result name="VBOX_E_INVALID_OBJECT_STATE">
5526 Cannot set transient property when machine not running.
5527 </result>
5528
5529 </desc>
5530 <param name="property" type="wstring" dir="in">
5531 <desc>
5532 The name of the property to set, change or delete.
5533 </desc>
5534 </param>
5535 <param name="value" type="wstring" dir="in">
5536 <desc>
5537 The new value of the property to set, change or delete. If the
5538 property does not yet exist and value is non-empty, it will be
5539 created. If the value is empty, the key will be deleted if it
5540 exists.
5541 </desc>
5542 </param>
5543 <param name="flags" type="wstring" dir="in">
5544 <desc>
5545 Additional property parameters, passed as a comma-separated list of
5546 "name=value" type entries.
5547 </desc>
5548 </param>
5549 </method>
5550
5551 <method name="setGuestPropertyValue">
5552 <desc>
5553 Sets, changes or deletes a value in the machine's guest property
5554 store. The flags field will be left unchanged or created empty for a
5555 new property.
5556
5557 <result name="E_ACCESSDENIED">
5558 Property cannot be changed.
5559 </result>
5560 <result name="VBOX_E_INVALID_VM_STATE">
5561 Virtual machine is not mutable or session not open.
5562 </result>
5563 <result name="VBOX_E_INVALID_OBJECT_STATE">
5564 Cannot set transient property when machine not running.
5565 </result>
5566 </desc>
5567
5568 <param name="property" type="wstring" dir="in">
5569 <desc>
5570 The name of the property to set, change or delete.
5571 </desc>
5572 </param>
5573 <param name="value" type="wstring" dir="in">
5574 <desc>
5575 The new value of the property to set, change or delete. If the
5576 property does not yet exist and value is non-empty, it will be
5577 created. If value is empty, the property will be deleted if it
5578 exists.
5579 </desc>
5580 </param>
5581 </method>
5582
5583 <method name="enumerateGuestProperties">
5584 <desc>
5585 Return a list of the guest properties matching a set of patterns along
5586 with their values, time stamps and flags.
5587 </desc>
5588 <param name="patterns" type="wstring" dir="in">
5589 <desc>
5590 The patterns to match the properties against, separated by '|'
5591 characters. If this is empty or @c null, all properties will match.
5592 </desc>
5593 </param>
5594 <param name="name" type="wstring" dir="out" safearray="yes">
5595 <desc>
5596 The names of the properties returned.
5597 </desc>
5598 </param>
5599 <param name="value" type="wstring" dir="out" safearray="yes">
5600 <desc>
5601 The values of the properties returned. The array entries match the
5602 corresponding entries in the @a name array.
5603 </desc>
5604 </param>
5605 <param name="timestamp" type="unsigned long long" dir="out" safearray="yes">
5606 <desc>
5607 The time stamps of the properties returned. The array entries match
5608 the corresponding entries in the @a name array.
5609 </desc>
5610 </param>
5611 <param name="flags" type="wstring" dir="out" safearray="yes">
5612 <desc>
5613 The flags of the properties returned. The array entries match the
5614 corresponding entries in the @a name array.
5615 </desc>
5616 </param>
5617 </method>
5618</interface>
5619
5620 <!--
5621 // IConsole
5622 /////////////////////////////////////////////////////////////////////////
5623 -->
5624
5625 <interface
5626 name="IConsoleCallback" extends="$unknown"
5627 uuid="13dfbef3-b74d-487d-bada-2304529aefa6"
5628 wsmap="suppress"
5629 >
5630
5631 <desc>
5632 This interface is used by a client of the Main API that need to
5633 be notified of events. For example, a graphical user interface
5634 can use this to learn about machine state changes so they can
5635 update the list of virtual machines without having to rely
5636 on polling.
5637
5638 Whenever relevant events occur in VirtualBox, the callbacks in
5639 objects of this interface are called. In order for this to be
5640 useful, a client needs to create its own subclass that implements
5641 this interface in which the methods for the relevant callbacks
5642 are overridden. An instance of this subclass interface can then
5643 be passed to <link to="IConsole::registerCallback" />.
5644 </desc>
5645
5646 <method name="onMousePointerShapeChange">
5647 <desc>
5648 Notification when the guest mouse pointer shape has
5649 changed. The new shape data is given.
5650 </desc>
5651 <param name="visible" type="boolean" dir="in">
5652 <desc>
5653 Flag whether the pointer is visible.
5654 </desc>
5655 </param>
5656 <param name="alpha" type="boolean" dir="in">
5657 <desc>
5658 Flag whether the pointer has an alpha channel.
5659 </desc>
5660 </param>
5661 <param name="xHot" type="unsigned long" dir="in">
5662 <desc>
5663 The pointer hot spot x coordinate.
5664 </desc>
5665 </param>
5666 <param name="yHot" type="unsigned long" dir="in">
5667 <desc>
5668 The pointer hot spot y coordinate.
5669 </desc>
5670 </param>
5671 <param name="width" type="unsigned long" dir="in">
5672 <desc>
5673 Width of the pointer shape in pixels.
5674 </desc>
5675 </param>
5676 <param name="height" type="unsigned long" dir="in">
5677 <desc>
5678 Height of the pointer shape in pixels.
5679 </desc>
5680 </param>
5681 <param name="shape" type="octet" mod="ptr" dir="in">
5682 <desc>
5683 Address of the shape buffer.
5684
5685 The @a shape buffer contains a 1-bpp (bits per pixel) AND mask
5686 followed by a 32-bpp XOR (color) mask.
5687
5688 For pointers without alpha channel the XOR mask pixels are 32
5689 bit values: (lsb)BGR0(msb). For pointers with alpha channel
5690 the XOR mask consists of (lsb)BGRA(msb) 32 bit values.
5691
5692 An AND mask is used for pointers with alpha channel, so if the
5693 callback does not support alpha, the pointer could be
5694 displayed as a normal color pointer.
5695
5696 The AND mask is a 1-bpp bitmap with byte aligned scanlines. The
5697 size of the AND mask therefore is <tt>cbAnd = (width + 7) / 8 *
5698 height</tt>. The padding bits at the end of each scanline are
5699 undefined.
5700
5701 The XOR mask follows the AND mask on the next 4-byte aligned
5702 offset: <tt>uint8_t *pXor = pAnd + (cbAnd + 3) &amp; ~3</tt>.
5703 Bytes in the gap between the AND and the XOR mask are undefined.
5704 The XOR mask scanlines have no gap between them and the size of
5705 the XOR mask is: <tt>cXor = width * 4 * height</tt>.
5706
5707 <note>
5708 If @a shape is 0, only the pointer visibility is changed.
5709 </note>
5710 </desc>
5711 </param>
5712 </method>
5713
5714 <method name="onMouseCapabilityChange">
5715 <desc>
5716 Notification when the mouse capabilities reported by the
5717 guest have changed. The new capabilities are passed.
5718 </desc>
5719 <param name="supportsAbsolute" type="boolean" dir="in"/>
5720 <param name="needsHostCursor" type="boolean" dir="in"/>
5721 </method>
5722
5723 <method name="onKeyboardLedsChange">
5724 <desc>
5725 Notification when the guest OS executes the KBD_CMD_SET_LEDS command
5726 to alter the state of the keyboard LEDs.
5727 </desc>
5728 <param name="numLock" type="boolean" dir="in"/>
5729 <param name="capsLock" type="boolean" dir="in"/>
5730 <param name="scrollLock" type="boolean" dir="in"/>
5731 </method>
5732
5733 <method name="onStateChange">
5734 <desc>
5735 Notification when the execution state of the machine has changed.
5736 The new state will be given.
5737 </desc>
5738 <param name="state" type="MachineState" dir="in"/>
5739 </method>
5740
5741 <method name="onAdditionsStateChange">
5742 <desc>
5743 Notification when a Guest Additions property changes.
5744 Interested callees should query IGuest attributes to
5745 find out what has changed.
5746 </desc>
5747 </method>
5748
5749 <method name="onDVDDriveChange">
5750 <desc>
5751 Notification when a property of the
5752 virtual <link to="IMachine::DVDDrive">DVD drive</link> changes.
5753 Interested callees should use IDVDDrive methods to find out what has
5754 changed.
5755 </desc>
5756 </method>
5757
5758 <method name="onFloppyDriveChange">
5759 <desc>
5760 Notification when a property of the
5761 virtual <link to="IMachine::floppyDrive">floppy drive</link> changes.
5762 Interested callees should use IFloppyDrive methods to find out what
5763 has changed.
5764 </desc>
5765 </method>
5766
5767 <method name="onNetworkAdapterChange">
5768 <desc>
5769 Notification when a property of one of the
5770 virtual <link to="IMachine::getNetworkAdapter">network adapters</link>
5771 changes. Interested callees should use INetworkAdapter methods and
5772 attributes to find out what has changed.
5773 </desc>
5774 <param name="networkAdapter" type="INetworkAdapter" dir="in">
5775 <desc>Network adapter that is subject to change.</desc>
5776 </param>
5777 </method>
5778
5779 <method name="onSerialPortChange">
5780 <desc>
5781 Notification when a property of one of the
5782 virtual <link to="IMachine::getSerialPort">serial ports</link> changes.
5783 Interested callees should use ISerialPort methods and attributes
5784 to find out what has changed.
5785 </desc>
5786 <param name="serialPort" type="ISerialPort" dir="in">
5787 <desc>Serial port that is subject to change.</desc>
5788 </param>
5789 </method>
5790
5791 <method name="onParallelPortChange">
5792 <desc>
5793 Notification when a property of one of the
5794 virtual <link to="IMachine::getParallelPort">parallel ports</link>
5795 changes. Interested callees should use ISerialPort methods and
5796 attributes to find out what has changed.
5797 </desc>
5798 <param name="parallelPort" type="IParallelPort" dir="in">
5799 <desc>Parallel port that is subject to change.</desc>
5800 </param>
5801 </method>
5802
5803 <method name="onStorageControllerChange">
5804 <desc>
5805 Notification when a property of one of the
5806 virtual <link to="IMachine::storageControllers">storage controllers</link>
5807 changes. Interested callees should query the corresponding collections
5808 to find out what has changed.
5809 </desc>
5810 </method>
5811
5812 <method name="onVRDPServerChange">
5813 <desc>
5814 Notification when a property of the
5815 <link to="IMachine::VRDPServer">VRDP server</link> changes.
5816 Interested callees should use IVRDPServer methods and attributes to
5817 find out what has changed.
5818 </desc>
5819 </method>
5820
5821 <method name="onUSBControllerChange">
5822 <desc>
5823 Notification when a property of the virtual
5824 <link to="IMachine::USBController">USB controller</link> changes.
5825 Interested callees should use IUSBController methods and attributes to
5826 find out what has changed.
5827 </desc>
5828 </method>
5829
5830 <method name="onUSBDeviceStateChange">
5831 <desc>
5832 Notification when a USB device is attached to or detached from
5833 the virtual USB controller.
5834
5835 This notification is sent as a result of the indirect
5836 request to attach the device because it matches one of the
5837 machine USB filters, or as a result of the direct request
5838 issued by <link to="IConsole::attachUSBDevice"/> or
5839 <link to="IConsole::detachUSBDevice"/>.
5840
5841 This notification is sent in case of both a succeeded and a
5842 failed request completion. When the request succeeds, the
5843 @a error parameter is @c null, and the given device has been
5844 already added to (when @a attached is @c true) or removed from
5845 (when @a attached is @c false) the collection represented by
5846 <link to="IConsole::USBDevices"/>. On failure, the collection
5847 doesn't change and the @a error parameter represents the error
5848 message describing the failure.
5849
5850 </desc>
5851 <param name="device" type="IUSBDevice" dir="in">
5852 <desc>Device that is subject to state change.</desc>
5853 </param>
5854 <param name="attached" type="boolean" dir="in">
5855 <desc>
5856 @c true if the device was attached and @c false otherwise.
5857 </desc>
5858 </param>
5859 <param name="error" type="IVirtualBoxErrorInfo" dir="in">
5860 <desc>
5861 @c null on success or an error message object on failure.
5862 </desc>
5863 </param>
5864 </method>
5865
5866 <method name="onSharedFolderChange">
5867 <desc>
5868 Notification when a shared folder is added or removed.
5869 The @a scope argument defines one of three scopes:
5870 <link to="IVirtualBox::sharedFolders">global shared folders</link>
5871 (<link to="Scope_Global">Global</link>),
5872 <link to="IMachine::sharedFolders">permanent shared folders</link> of
5873 the machine (<link to="Scope_Machine">Machine</link>) or <link
5874 to="IConsole::sharedFolders">transient shared folders</link> of the
5875 machine (<link to="Scope_Session">Session</link>). Interested callees
5876 should use query the corresponding collections to find out what has
5877 changed.
5878 </desc>
5879 <param name="scope" type="Scope" dir="in">
5880 <desc>Scope of the notification.</desc>
5881 </param>
5882 </method>
5883
5884 <method name="onRuntimeError">
5885 <desc>
5886 Notification when an error happens during the virtual
5887 machine execution.
5888
5889 There are three kinds of runtime errors:
5890 <ul>
5891 <li><i>fatal</i></li>
5892 <li><i>non-fatal with retry</i></li>
5893 <li><i>non-fatal warnings</i></li>
5894 </ul>
5895
5896 <b>Fatal</b> errors are indicated by the @a fatal parameter set
5897 to @c true. In case of fatal errors, the virtual machine
5898 execution is always paused before calling this notification, and
5899 the notification handler is supposed either to immediately save
5900 the virtual machine state using <link to="IConsole::saveState"/>
5901 or power it off using <link to="IConsole::powerDown"/>.
5902 Resuming the execution can lead to unpredictable results.
5903
5904 <b>Non-fatal</b> errors and warnings are indicated by the
5905 @a fatal parameter set to @c false. If the virtual machine
5906 is in the Paused state by the time the error notification is
5907 received, it means that the user can <i>try to resume</i> the machine
5908 execution after attempting to solve the problem that caused the
5909 error. In this case, the notification handler is supposed
5910 to show an appropriate message to the user (depending on the
5911 value of the @a id parameter) that offers several actions such
5912 as <i>Retry</i>, <i>Save</i> or <i>Power Off</i>. If the user
5913 wants to retry, the notification handler should continue
5914 the machine execution using the <link to="IConsole::resume"/>
5915 call. If the machine execution is not Paused during this
5916 notification, then it means this notification is a <i>warning</i>
5917 (for example, about a fatal condition that can happen very soon);
5918 no immediate action is required from the user, the machine
5919 continues its normal execution.
5920
5921 Note that in either case the notification handler
5922 <b>must not</b> perform any action directly on a thread
5923 where this notification is called. Everything it is allowed to
5924 do is to post a message to another thread that will then talk
5925 to the user and take the corresponding action.
5926
5927 Currently, the following error identifiers are known:
5928 <ul>
5929 <li><tt>"HostMemoryLow"</tt></li>
5930 <li><tt>"HostAudioNotResponding"</tt></li>
5931 <li><tt>"VDIStorageFull"</tt></li>
5932 </ul>
5933
5934 <note>
5935 This notification is not designed to be implemented by
5936 more than one callback at a time. If you have multiple
5937 IConsoleCallback instances registered on the given
5938 IConsole object, make sure you simply do nothing but
5939 return @c S_OK from all but one of them that does actual
5940 user notification and performs necessary actions.
5941 </note>
5942
5943 </desc>
5944 <param name="fatal" type="boolean" dir="in">
5945 <desc>Whether the error is fatal or not</desc>
5946 </param>
5947 <param name="id" type="wstring" dir="in">
5948 <desc>Error identifier</desc>
5949 </param>
5950 <param name="message" type="wstring" dir="in">
5951 <desc>Optional error message</desc>
5952 </param>
5953 </method>
5954
5955 <method name="onCanShowWindow">
5956 <desc>
5957 Notification when a call to
5958 <link to="IMachine::canShowConsoleWindow"/> is made by a
5959 front-end to check if a subsequent call to
5960 <link to="IMachine::showConsoleWindow"/> can succeed.
5961
5962 The callee should give an answer appropriate to the current
5963 machine state in the @a canShow argument. This answer must
5964 remain valid at least until the next
5965 <link to="IConsole::state">machine state</link> change.
5966
5967 <note>
5968 This notification is not designed to be implemented by
5969 more than one callback at a time. If you have multiple
5970 IConsoleCallback instances registered on the given
5971 IConsole object, make sure you simply do nothing but
5972 return @c true and @c S_OK from all but one of them that
5973 actually manages console window activation.
5974 </note>
5975 </desc>
5976 <param name="canShow" type="boolean" dir="return">
5977 <desc>
5978 @c true if the console window can be shown and @c false otherwise.
5979 </desc>
5980 </param>
5981 </method>
5982
5983 <method name="onShowWindow">
5984 <desc>
5985 Notification when a call to
5986 <link to="IMachine::showConsoleWindow"/>
5987 requests the console window to be activated and brought to
5988 foreground on the desktop of the host PC.
5989
5990 This notification should cause the VM console process to
5991 perform the requested action as described above. If it is
5992 impossible to do it at a time of this notification, this
5993 method should return a failure.
5994
5995 Note that many modern window managers on many platforms
5996 implement some sort of focus stealing prevention logic, so
5997 that it may be impossible to activate a window without the
5998 help of the currently active application (which is supposedly
5999 an initiator of this notification). In this case, this method
6000 must return a non-zero identifier that represents the
6001 top-level window of the VM console process. The caller, if it
6002 represents a currently active process, is responsible to use
6003 this identifier (in a platform-dependent manner) to perform
6004 actual window activation.
6005
6006 This method must set @a winId to zero if it has performed all
6007 actions necessary to complete the request and the console
6008 window is now active and in foreground, to indicate that no
6009 further action is required on the caller's side.
6010
6011 <note>
6012 This notification is not designed to be implemented by
6013 more than one callback at a time. If you have multiple
6014 IConsoleCallback instances registered on the given
6015 IConsole object, make sure you simply do nothing but
6016 return @c S_OK from all but one of them that actually
6017 manages console window activation.
6018 </note>
6019 </desc>
6020 <param name="winId" type="unsigned long long" dir="return">
6021 <desc>
6022 Platform-dependent identifier of the top-level VM console
6023 window, or zero if this method has performed all actions
6024 necessary to implement the <i>show window</i> semantics for
6025 the given platform and/or this VirtualBox front-end.
6026 </desc>
6027 </param>
6028 </method>
6029
6030 </interface>
6031
6032 <interface
6033 name="IRemoteDisplayInfo" extends="$unknown"
6034 uuid="550104cd-2dfd-4a6c-857d-f6f8e088e62c"
6035 wsmap="struct"
6036 >
6037 <desc>
6038 Contains information about the remote display (VRDP) capabilities and status.
6039 This is used in the <link to="IConsole::remoteDisplayInfo" /> attribute.
6040 </desc>
6041
6042 <attribute name="active" type="boolean" readonly="yes">
6043 <desc>
6044 Whether the remote display connection is active.
6045 </desc>
6046 </attribute>
6047
6048 <attribute name="numberOfClients" type="unsigned long" readonly="yes">
6049 <desc>
6050 How many times a client connected.
6051 </desc>
6052 </attribute>
6053
6054 <attribute name="beginTime" type="long long" readonly="yes">
6055 <desc>
6056 When the last connection was established, in milliseconds since 1970-01-01 UTC.
6057 </desc>
6058 </attribute>
6059
6060 <attribute name="endTime" type="long long" readonly="yes">
6061 <desc>
6062 When the last connection was terminated or the current time, if
6063 connection is still active, in milliseconds since 1970-01-01 UTC.
6064 </desc>
6065 </attribute>
6066
6067 <attribute name="bytesSent" type="unsigned long long" readonly="yes">
6068 <desc>
6069 How many bytes were sent in last or current, if still active, connection.
6070 </desc>
6071 </attribute>
6072
6073 <attribute name="bytesSentTotal" type="unsigned long long" readonly="yes">
6074 <desc>
6075 How many bytes were sent in all connections.
6076 </desc>
6077 </attribute>
6078
6079 <attribute name="bytesReceived" type="unsigned long long" readonly="yes">
6080 <desc>
6081 How many bytes were received in last or current, if still active, connection.
6082 </desc>
6083 </attribute>
6084
6085 <attribute name="bytesReceivedTotal" type="unsigned long long" readonly="yes">
6086 <desc>
6087 How many bytes were received in all connections.
6088 </desc>
6089 </attribute>
6090
6091 <attribute name="user" type="wstring" readonly="yes">
6092 <desc>
6093 Login user name supplied by the client.
6094 </desc>
6095 </attribute>
6096
6097 <attribute name="domain" type="wstring" readonly="yes">
6098 <desc>
6099 Login domain name supplied by the client.
6100 </desc>
6101 </attribute>
6102
6103 <attribute name="clientName" type="wstring" readonly="yes">
6104 <desc>
6105 The client name supplied by the client.
6106 </desc>
6107 </attribute>
6108
6109 <attribute name="clientIP" type="wstring" readonly="yes">
6110 <desc>
6111 The IP address of the client.
6112 </desc>
6113 </attribute>
6114
6115 <attribute name="clientVersion" type="unsigned long" readonly="yes">
6116 <desc>
6117 The client software version number.
6118 </desc>
6119 </attribute>
6120
6121 <attribute name="encryptionStyle" type="unsigned long" readonly="yes">
6122 <desc>
6123 Public key exchange method used when connection was established.
6124 Values: 0 - RDP4 public key exchange scheme.
6125 1 - X509 certificates were sent to client.
6126 </desc>
6127 </attribute>
6128
6129 </interface>
6130
6131 <interface
6132 name="IConsole" extends="$unknown"
6133 uuid="0a51994b-cbc6-4686-94eb-d4e4023280e2"
6134 wsmap="managed"
6135 >
6136 <desc>
6137 The IConsole interface represents an interface to control virtual
6138 machine execution.
6139
6140 The console object that implements the IConsole interface is obtained
6141 from a session object after the session for the given machine has been
6142 opened using one of <link to="IVirtualBox::openSession"/>,
6143 <link to="IVirtualBox::openRemoteSession"/> or
6144 <link to="IVirtualBox::openExistingSession"/> methods.
6145
6146 Methods of the IConsole interface allow the caller to query the current
6147 virtual machine execution state, pause the machine or power it down, save
6148 the machine state or take a snapshot, attach and detach removable media
6149 and so on.
6150
6151 <see>ISession</see>
6152 </desc>
6153
6154 <attribute name="machine" type="IMachine" readonly="yes">
6155 <desc>
6156 Machine object this console is sessioned with.
6157 <note>
6158 This is a convenience property, it has the same value as
6159 <link to="ISession::machine"/> of the corresponding session
6160 object.
6161 </note>
6162 </desc>
6163 </attribute>
6164
6165 <attribute name="state" type="MachineState" readonly="yes">
6166 <desc>
6167 Current execution state of the machine.
6168 <note>
6169 This property always returns the same value as the corresponding
6170 property of the IMachine object this console is sessioned with.
6171 For the process that owns (executes) the VM, this is the
6172 preferable way of querying the VM state, because no IPC
6173 calls are made.
6174 </note>
6175 </desc>
6176 </attribute>
6177
6178 <attribute name="guest" type="IGuest" readonly="yes">
6179 <desc>Guest object.</desc>
6180 </attribute>
6181
6182 <attribute name="keyboard" type="IKeyboard" readonly="yes">
6183 <desc>
6184 Virtual keyboard object.
6185 <note>
6186 If the machine is not running, any attempt to use
6187 the returned object will result in an error.
6188 </note>
6189 </desc>
6190 </attribute>
6191
6192 <attribute name="mouse" type="IMouse" readonly="yes">
6193 <desc>
6194 Virtual mouse object.
6195 <note>
6196 If the machine is not running, any attempt to use
6197 the returned object will result in an error.
6198 </note>
6199 </desc>
6200 </attribute>
6201
6202 <attribute name="display" type="IDisplay" readonly="yes">
6203 <desc>Virtual display object.
6204 <note>
6205 If the machine is not running, any attempt to use
6206 the returned object will result in an error.
6207 </note>
6208 </desc>
6209 </attribute>
6210
6211 <attribute name="debugger" type="IMachineDebugger" readonly="yes">
6212 <desc>Debugging interface.</desc>
6213 </attribute>
6214
6215 <attribute name="USBDevices" type="IUSBDevice" readonly="yes" safearray="yes">
6216 <desc>
6217 Collection of USB devices currently attached to the virtual
6218 USB controller.
6219 <note>
6220 The collection is empty if the machine is not running.
6221 </note>
6222 </desc>
6223 </attribute>
6224
6225 <attribute name="remoteUSBDevices" type="IHostUSBDevice" readonly="yes" safearray="yes">
6226 <desc>
6227 List of USB devices currently attached to the remote VRDP client.
6228 Once a new device is physically attached to the remote host computer,
6229 it appears in this list and remains there until detached.
6230 </desc>
6231 </attribute>
6232
6233 <attribute name="sharedFolders" type="ISharedFolder" readonly="yes" safearray="yes">
6234 <desc>
6235 Collection of shared folders for the current session. These folders
6236 are called transient shared folders because they are available to the
6237 guest OS running inside the associated virtual machine only for the
6238 duration of the session (as opposed to
6239 <link to="IMachine::sharedFolders"/> which represent permanent shared
6240 folders). When the session is closed (e.g. the machine is powered down),
6241 these folders are automatically discarded.
6242
6243 New shared folders are added to the collection using
6244 <link to="#createSharedFolder"/>. Existing shared folders can be
6245 removed using <link to="#removeSharedFolder"/>.
6246 </desc>
6247 </attribute>
6248
6249 <attribute name="remoteDisplayInfo" type="IRemoteDisplayInfo" readonly="yes">
6250 <desc>
6251 Interface that provides information on Remote Display (VRDP) connection.
6252 </desc>
6253 </attribute>
6254
6255 <method name="powerUp">
6256 <desc>
6257 Starts the virtual machine execution using the current machine
6258 state (that is, its current execution state, current settings and
6259 current hard disks).
6260
6261 If the machine is powered off or aborted, the execution will
6262 start from the beginning (as if the real hardware were just
6263 powered on).
6264
6265 If the machine is in the <link to="MachineState_Saved"/> state,
6266 it will continue its execution the point where the state has
6267 been saved.
6268
6269 <note>
6270 Unless you are trying to write a new VirtualBox front-end that
6271 performs direct machine execution (like the VirtualBox or VBoxSDL
6272 front-ends), don't call <link to="IConsole::powerUp"/> in a direct
6273 session opened by <link to="IVirtualBox::openSession"/> and use this
6274 session only to change virtual machine settings. If you simply want to
6275 start virtual machine execution using one of the existing front-ends
6276 (for example the VirtualBox GUI or headless server), simply use
6277 <link to="IVirtualBox::openRemoteSession"/>; these front-ends will
6278 power up the machine automatically for you.
6279 </note>
6280
6281 <see>#saveState</see>
6282 <result name="VBOX_E_INVALID_VM_STATE">
6283 Virtual machine already running.
6284 </result>
6285 <result name="VBOX_E_HOST_ERROR">
6286 Host interface does not exist or name not set.
6287 </result>
6288 <result name="VBOX_E_FILE_ERROR">
6289 Invalid saved state file.
6290 </result>
6291 </desc>
6292 <param name="progress" type="IProgress" dir="return">
6293 <desc>Progress object to track the operation completion.</desc>
6294 </param>
6295 </method>
6296
6297 <method name="powerUpPaused">
6298 <desc>
6299 Identical to powerUp except that the VM will enter the
6300 <link to="MachineState_Paused"/> state, instead of
6301 <link to="MachineState_Running"/>.
6302
6303 <see>#powerUp</see>
6304 <result name="VBOX_E_INVALID_VM_STATE">
6305 Virtual machine already running.
6306 </result>
6307 <result name="VBOX_E_HOST_ERROR">
6308 Host interface does not exist or name not set.
6309 </result>
6310 <result name="VBOX_E_FILE_ERROR">
6311 Invalid saved state file.
6312 </result>
6313 </desc>
6314 <param name="progress" type="IProgress" dir="return">
6315 <desc>Progress object to track the operation completion.</desc>
6316 </param>
6317 </method>
6318
6319 <method name="powerDown">
6320 <desc>
6321 Initiates the power down procedure to stop the virtual machine
6322 execution.
6323
6324 The completion of the power down procedure is tracked using the returned
6325 IProgress object. After the operation is complete, the machine will go
6326 to the PoweredOff state.
6327 <result name="VBOX_E_INVALID_VM_STATE">
6328 Virtual machine must be Running, Paused or Stuck to be powered down.
6329 </result>
6330 </desc>
6331 <param name="progress" type="IProgress" dir="return">
6332 <desc>Progress object to track the operation completion.</desc>
6333 </param>
6334 </method>
6335
6336 <method name="reset">
6337 <desc>Resets the virtual machine.
6338 <result name="VBOX_E_INVALID_VM_STATE">
6339 Virtual machine not in Running state.
6340 </result>
6341 <result name="VBOX_E_VM_ERROR">
6342 Virtual machine error in reset operation.
6343 </result>
6344 </desc>
6345 </method>
6346
6347 <method name="pause">
6348 <desc>Pauses the virtual machine execution.
6349 <result name="VBOX_E_INVALID_VM_STATE">
6350 Virtual machine not in Running state.
6351 </result>
6352 <result name="VBOX_E_VM_ERROR">
6353 Virtual machine error in suspend operation.
6354 </result>
6355 </desc>
6356 </method>
6357
6358 <method name="resume">
6359 <desc>Resumes the virtual machine execution.
6360 <result name="VBOX_E_INVALID_VM_STATE">
6361 Virtual machine not in Paused state.
6362 </result>
6363 <result name="VBOX_E_VM_ERROR">
6364 Virtual machine error in resume operation.
6365 </result>
6366 </desc>
6367 </method>
6368
6369 <method name="powerButton">
6370 <desc>Sends the ACPI power button event to the guest.
6371 <result name="VBOX_E_INVALID_VM_STATE">
6372 Virtual machine not in Running state.
6373 </result>
6374 <result name="VBOX_E_PDM_ERROR">
6375 Controlled power off failed.
6376 </result>
6377 </desc>
6378 </method>
6379
6380 <method name="sleepButton">
6381 <desc>Sends the ACPI sleep button event to the guest.
6382 <result name="VBOX_E_INVALID_VM_STATE">
6383 Virtual machine not in Running state.
6384 </result>
6385 <result name="VBOX_E_PDM_ERROR">
6386 Sending sleep button event failed.
6387 </result>
6388 </desc>
6389 </method>
6390
6391 <method name="getPowerButtonHandled">
6392 <desc>Checks if the last power button event was handled by guest.
6393 <result name="VBOX_E_PDM_ERROR">
6394 Checking if the event was handled by the guest OS failed.
6395 </result>
6396 </desc>
6397 <param name="handled" type="boolean" dir="return"/>
6398 </method>
6399
6400 <method name="getGuestEnteredACPIMode">
6401 <desc>Checks if the guest entered the ACPI mode G0 (working) or
6402 G1 (sleeping). If this method returns @c false, the guest will
6403 most likely not respond to external ACPI events.
6404 <result name="VBOX_E_INVALID_VM_STATE">
6405 Virtual machine not in Running state.
6406 </result>
6407 </desc>
6408 <param name="entered" type="boolean" dir="return"/>
6409 </method>
6410
6411 <method name="saveState">
6412 <desc>
6413 Saves the current execution state of a running virtual machine
6414 and stops its execution.
6415
6416 After this operation completes, the machine will go to the
6417 Saved state. Next time it is powered up, this state will
6418 be restored and the machine will continue its execution from
6419 the place where it was saved.
6420
6421 This operation differs from taking a snapshot to the effect
6422 that it doesn't create new differencing hard disks. Also, once
6423 the machine is powered up from the state saved using this method,
6424 the saved state is deleted, so it will be impossible to return
6425 to this state later.
6426
6427 <note>
6428 On success, this method implicitly calls
6429 <link to="IMachine::saveSettings"/> to save all current machine
6430 settings (including runtime changes to the DVD drive, etc.).
6431 Together with the impossibility to change any VM settings when it is
6432 in the Saved state, this guarantees adequate hardware
6433 configuration of the machine when it is restored from the saved
6434 state file.
6435 </note>
6436
6437 <note>
6438 The machine must be in the Running or Paused state, otherwise
6439 the operation will fail.
6440 </note>
6441 <result name="VBOX_E_INVALID_VM_STATE">
6442 Virtual machine state neither Running nor Paused.
6443 </result>
6444 <result name="VBOX_E_FILE_ERROR">
6445 Failed to create directory for saved state file.
6446 </result>
6447
6448 <see><link to="#takeSnapshot"/></see>
6449 </desc>
6450 <param name="progress" type="IProgress" dir="return">
6451 <desc>Progress object to track the operation completion.</desc>
6452 </param>
6453 </method>
6454
6455 <method name="adoptSavedState">
6456 <desc>
6457 Associates the given saved state file to the virtual machine.
6458
6459 On success, the machine will go to the Saved state. Next time it is
6460 powered up, it will be restored from the adopted saved state and
6461 continue execution from the place where the saved state file was
6462 created.
6463
6464 The specified saved state file path may be absolute or relative to the
6465 folder the VM normally saves the state to (usually,
6466 <link to="IMachine::snapshotFolder"/>).
6467
6468 <note>
6469 It's a caller's responsibility to make sure the given saved state
6470 file is compatible with the settings of this virtual machine that
6471 represent its virtual hardware (memory size, hard disk configuration
6472 etc.). If there is a mismatch, the behavior of the virtual machine
6473 is undefined.
6474 </note>
6475 <result name="VBOX_E_INVALID_VM_STATE">
6476 Virtual machine state neither PoweredOff nor Aborted.
6477 </result>
6478 </desc>
6479 <param name="savedStateFile" type="wstring" dir="in">
6480 <desc>Path to the saved state file to adopt.</desc>
6481 </param>
6482 </method>
6483
6484 <method name="forgetSavedState">
6485 <desc>
6486 Forgets the saved state of the virtual machine previously created
6487 by <link to="#saveState"/>. Next time the machine is powered up, a
6488 clean boot will occur. If @a remove is @c true the saved state file
6489 is deleted.
6490 <note>
6491 This operation is equivalent to resetting or powering off
6492 the machine without doing a proper shutdown in the guest OS.
6493 </note>
6494 <result name="VBOX_E_INVALID_VM_STATE">
6495 Virtual machine not in state Saved.
6496 </result>
6497 </desc>
6498 <param name="remove" type="boolean" dir="in">
6499 <desc>If @c true remove the saved state file.</desc>
6500 </param>
6501 </method>
6502
6503 <method name="getDeviceActivity">
6504 <desc>
6505 Gets the current activity type of a given device or device group.
6506 <result name="E_INVALIDARG">
6507 Invalid device type.
6508 </result>
6509 </desc>
6510 <param name="type" type="DeviceType" dir="in"/>
6511 <param name="activity" type="DeviceActivity" dir="return"/>
6512 </method>
6513
6514 <method name="attachUSBDevice">
6515 <desc>
6516 Attaches a host USB device with the given UUID to the
6517 USB controller of the virtual machine.
6518
6519 The device needs to be in one of the following states:
6520 <link to="USBDeviceState_Busy"/>,
6521 <link to="USBDeviceState_Available"/> or
6522 <link to="USBDeviceState_Held"/>,
6523 otherwise an error is immediately returned.
6524
6525 When the device state is
6526 <link to="USBDeviceState_Busy">Busy</link>, an error may also
6527 be returned if the host computer refuses to release it for some reason.
6528
6529 <see>IUSBController::deviceFilters, USBDeviceState</see>
6530 <result name="VBOX_E_INVALID_VM_STATE">
6531 Virtual machine state neither Running nor Paused.
6532 </result>
6533 <result name="VBOX_E_PDM_ERROR">
6534 Virtual machine does not have a USB controller.
6535 </result>
6536 </desc>
6537 <param name="id" type="wstring" dir="in">
6538 <desc>UUID of the host USB device to attach.</desc>
6539 </param>
6540 </method>
6541
6542 <method name="detachUSBDevice">
6543 <desc>
6544 Detaches an USB device with the given UUID from the USB controller
6545 of the virtual machine.
6546
6547 After this method succeeds, the VirtualBox server re-initiates
6548 all USB filters as if the device were just physically attached
6549 to the host, but filters of this machine are ignored to avoid
6550 a possible automatic re-attachment.
6551
6552 <see>IUSBController::deviceFilters, USBDeviceState</see>
6553
6554 <result name="VBOX_E_PDM_ERROR">
6555 Virtual machine does not have a USB controller.
6556 </result>
6557 <result name="E_INVALIDARG">
6558 USB device not attached to this virtual machine.
6559 </result>
6560 </desc>
6561 <param name="id" type="wstring" dir="in">
6562 <desc>UUID of the USB device to detach.</desc>
6563 </param>
6564 <param name="device" type="IUSBDevice" dir="return">
6565 <desc>Detached USB device.</desc>
6566 </param>
6567 </method>
6568
6569 <method name="findUSBDeviceByAddress">
6570 <desc>
6571 Searches for a USB device with the given host address.
6572
6573 <result name="VBOX_E_OBJECT_NOT_FOUND">
6574 Given @c name does not correspond to any USB device.
6575 </result>
6576
6577 <see>IUSBDevice::address</see>
6578 </desc>
6579 <param name="name" type="wstring" dir="in">
6580 <desc>
6581 Address of the USB device (as assigned by the host) to
6582 search for.
6583 </desc>
6584 </param>
6585 <param name="device" type="IUSBDevice" dir="return">
6586 <desc>Found USB device object.</desc>
6587 </param>
6588 </method>
6589
6590 <method name="findUSBDeviceById">
6591 <desc>
6592 Searches for a USB device with the given UUID.
6593
6594 <result name="VBOX_E_OBJECT_NOT_FOUND">
6595 Given @c id does not correspond to any USB device.
6596 </result>
6597
6598 <see>IUSBDevice::id</see>
6599 </desc>
6600 <param name="id" type="wstring" dir="in">
6601 <desc>UUID of the USB device to search for.</desc>
6602 </param>
6603 <param name="device" type="IUSBDevice" dir="return">
6604 <desc>Found USB device object.</desc>
6605 </param>
6606 </method>
6607
6608 <method name="createSharedFolder">
6609 <desc>
6610 Creates a transient new shared folder by associating the given logical
6611 name with the given host path, adds it to the collection of shared
6612 folders and starts sharing it. Refer to the description of
6613 <link to="ISharedFolder"/> to read more about logical names.
6614
6615 <result name="VBOX_E_INVALID_VM_STATE">
6616 Virtual machine in Saved state or currently changing state.
6617 </result>
6618 <result name="VBOX_E_FILE_ERROR">
6619 Shared folder already exists or not accessible.
6620 </result>
6621 </desc>
6622 <param name="name" type="wstring" dir="in">
6623 <desc>Unique logical name of the shared folder.</desc>
6624 </param>
6625 <param name="hostPath" type="wstring" dir="in">
6626 <desc>Full path to the shared folder in the host file system.</desc>
6627 </param>
6628 <param name="writable" type="boolean" dir="in">
6629 <desc>Whether the share is writable or readonly</desc>
6630 </param>
6631 </method>
6632
6633 <method name="removeSharedFolder">
6634 <desc>
6635 Removes a transient shared folder with the given name previously
6636 created by <link to="#createSharedFolder"/> from the collection of
6637 shared folders and stops sharing it.
6638 <result name="VBOX_E_INVALID_VM_STATE">
6639 Virtual machine in Saved state or currently changing state.
6640 </result>
6641 <result name="VBOX_E_FILE_ERROR">
6642 Shared folder does not exists.
6643 </result>
6644 </desc>
6645 <param name="name" type="wstring" dir="in">
6646 <desc>Logical name of the shared folder to remove.</desc>
6647 </param>
6648 </method>
6649
6650 <method name="takeSnapshot">
6651 <desc>
6652 Saves the current execution state and all settings of the
6653 machine and creates differencing images for all
6654 normal (non-independent) hard disks.
6655
6656 This method can be called for a PoweredOff, Saved, Running or
6657 Paused virtual machine. When the machine is PoweredOff, an
6658 offline <link to="ISnapshot">snapshot</link> is created,
6659 in all other cases -- an online snapshot.
6660
6661 The taken snapshot is always based on the
6662 <link to="IMachine::currentSnapshot">current
6663 snapshot</link> of the associated virtual machine and becomes
6664 a new current snapshot.
6665
6666 <note>
6667 This method implicitly calls <link to="IMachine::saveSettings"/> to
6668 save all current machine settings before taking an offline snapshot.
6669 </note>
6670
6671 <see>ISnapshot, <link to="#saveState"/></see>
6672 <result name="VBOX_E_INVALID_VM_STATE">
6673 Virtual machine currently changing state.
6674 </result>
6675 </desc>
6676 <param name="name" type="wstring" dir="in">
6677 <desc>Short name for the snapshot.</desc>
6678 </param>
6679 <param name="description" type="wstring" dir="in">
6680 <desc>Optional description of the snapshot.</desc>
6681 </param>
6682 <param name="progress" type="IProgress" dir="return">
6683 <desc>Progress object to track the operation completion.</desc>
6684 </param>
6685 </method>
6686
6687 <method name="discardSnapshot">
6688 <desc>
6689
6690 Starts discarding the specified snapshot. The execution state
6691 and settings of the associated machine stored in the snapshot
6692 will be deleted. The contents of all differencing hard disks of
6693 this snapshot will be merged with the contents of their
6694 dependent child hard disks to keep the, disks valid (in other
6695 words, all changes represented by hard disks being discarded
6696 will be propagated to their child hard disks). After that, this
6697 snapshot's differencing hard disks will be deleted. The parent
6698 of this snapshot will become a new parent for all its child
6699 snapshots.
6700
6701 If the discarded snapshot is the current one, its parent
6702 snapshot will become a new current snapshot. The current machine
6703 state is not directly affected in this case, except that
6704 currently attached differencing hard disks based on hard disks
6705 of the discarded snapshot will be also merged as described
6706 above.
6707
6708 If the discarded snapshot is the first one (the root snapshot)
6709 and it has exactly one child snapshot, this child snapshot will
6710 become the first snapshot after discarding. If there are no
6711 children at all (i.e. the first snapshot is the only snapshot of
6712 the machine), both the current and the first snapshot of the
6713 machine will be set to @c null. In all other cases, the first
6714 snapshot cannot be discarded.
6715
6716 You cannot discard the snapshot if it
6717 stores <link to="HardDiskType_Normal">normal</link> (non-differencing)
6718 hard disks that have differencing hard disks based on them. Snapshots of
6719 such kind can be discarded only when every normal hard disk has either
6720 no children at all or exactly one child. In the former case, the normal
6721 hard disk simply becomes unused (i.e. not attached to any VM). In the
6722 latter case, it receives all the changes stored in the child hard disk,
6723 and then it replaces the child hard disk in the configuration of the
6724 corresponding snapshot or machine.
6725
6726 Also, you cannot discard the snapshot if it stores hard disks
6727 (of any type) having differencing child hard disks that belong
6728 to other machines. Such snapshots can be only discarded after
6729 you discard all snapshots of other machines containing "foreign"
6730 child disks, or detach these "foreign" child disks from machines
6731 they are attached to.
6732
6733 One particular example of the snapshot storing normal hard disks
6734 is the first snapshot of a virtual machine that had normal hard
6735 disks attached when taking the snapshot. Be careful when
6736 discarding such snapshots because this implicitly commits
6737 changes (made since the snapshot being discarded has been taken)
6738 to normal hard disks (as described above), which may be not what
6739 you want.
6740
6741 The virtual machine is put to
6742 the <link to="MachineState_Discarding">Discarding</link> state until
6743 the discard operation is completed.
6744
6745 <note>
6746 The machine must not be running, otherwise the operation
6747 will fail.
6748 </note>
6749
6750 <note>
6751 Child hard disks of all normal hard disks of the discarded snapshot
6752 must be accessible (see <link to="IMedium::state"/>) for this
6753 operation to succeed. In particular, this means that all virtual
6754 machines, whose hard disks are directly or indirectly based on the
6755 hard disks of discarded snapshot, must be powered off.
6756 </note>
6757 <note>
6758 Merging hard disk contents can be very time and disk space
6759 consuming, if these disks are big in size and have many
6760 children. However, if the snapshot being discarded is the last
6761 (head) snapshot on the branch, the operation will be rather
6762 quick.
6763 </note>
6764 <note>
6765 Note that discarding the current snapshot
6766 will implicitly call <link to="IMachine::saveSettings"/> to
6767 make all current machine settings permanent.
6768 </note>
6769 <result name="VBOX_E_INVALID_VM_STATE">
6770 Virtual machine is running.
6771 </result>
6772 </desc>
6773 <param name="id" type="wstring" dir="in">
6774 <desc>UUID of the snapshot to discard.</desc>
6775 </param>
6776 <param name="progress" type="IProgress" dir="return">
6777 <desc>Progress object to track the operation completion.</desc>
6778 </param>
6779 </method>
6780
6781 <method name="discardCurrentState">
6782 <desc>
6783 This operation is similar to <link to="IConsole::discardSnapshot"/> but
6784 affects the current machine state. This means that the state stored in
6785 the current snapshot will become a new current state, and all current
6786 settings of the machine and changes stored in differencing hard disks
6787 will be lost.
6788
6789 After this operation is successfully completed, new empty differencing
6790 hard disks are created for all normal hard disks of the machine.
6791
6792 If the current snapshot of the machine is an online snapshot, the
6793 machine will go to the <link to="MachineState_Saved"> saved
6794 state</link>, so that the next time it is powered on, the execution
6795 state will be restored from the current snapshot.
6796
6797 <note>
6798 The machine must not be running, otherwise the operation will fail.
6799 </note>
6800
6801 <note>
6802 If the machine state is <link to="MachineState_Saved">Saved</link>
6803 prior to this operation, the saved state file will be implicitly
6804 discarded (as if <link to="IConsole::forgetSavedState"/> were
6805 called).
6806 </note>
6807
6808 <result name="VBOX_E_INVALID_VM_STATE">
6809 Virtual machine is running.
6810 </result>
6811 </desc>
6812 <param name="progress" type="IProgress" dir="return">
6813 <desc>Progress object to track the operation completion.</desc>
6814 </param>
6815 </method>
6816
6817 <method name="discardCurrentSnapshotAndState">
6818 <desc>
6819
6820 This method is equivalent to
6821 doing <link to="IConsole::discardSnapshot">discardSnapshot</link>
6822 (currentSnapshot.id(), progress) followed by
6823 <link to="IConsole::discardCurrentState"/>.
6824
6825 As a result, the machine will be fully restored from the
6826 snapshot preceding the current snapshot, while both the current
6827 snapshot and the current machine state will be discarded.
6828
6829 If the current snapshot is the first snapshot of the machine (i.e. it
6830 has the only snapshot), the current machine state will be
6831 discarded <b>before</b> discarding the snapshot. In other words, the
6832 machine will be restored from its last snapshot, before discarding
6833 it. This differs from performing a single
6834 <link to="IConsole::discardSnapshot"/> call (note that no
6835 <link to="IConsole::discardCurrentState"/> will be possible after it)
6836 to the effect that the latter will preserve the current state instead of
6837 discarding it.
6838
6839 Unless explicitly mentioned otherwise, all remarks and
6840 limitations of the above two methods also apply to this method.
6841
6842 <note>
6843 The machine must not be running, otherwise the operation
6844 will fail.
6845 </note>
6846
6847 <note>
6848 If the machine state is <link to="MachineState_Saved">Saved</link>
6849 prior to this operation, the saved state file will be implicitly
6850 discarded (as if <link to="#forgetSavedState"/> were
6851 called).
6852 </note>
6853
6854 <note>
6855 This method is more efficient than calling both of the above
6856 methods separately: it requires less IPC calls and provides
6857 a single progress object.
6858 </note>
6859
6860 <result name="VBOX_E_INVALID_VM_STATE">
6861 Virtual machine is running.
6862 </result>
6863 </desc>
6864 <param name="progress" type="IProgress" dir="return">
6865 <desc>Progress object to track the operation completion.</desc>
6866 </param>
6867 </method>
6868
6869 <method name="registerCallback">
6870 <desc>
6871 Registers a new console callback on this instance. The methods of the
6872 callback interface will be called by this instance when the appropriate
6873 event occurs.
6874 </desc>
6875 <param name="callback" type="IConsoleCallback" dir="in"/>
6876 </method>
6877
6878 <method name="unregisterCallback">
6879 <desc>
6880 Unregisters the console callback previously registered using
6881 <link to="#registerCallback"/>.
6882 <result name="E_INVALIDARG">
6883 Given @a callback handler is not registered.
6884 </result>
6885 </desc>
6886 <param name="callback" type="IConsoleCallback" dir="in"/>
6887 </method>
6888 </interface>
6889
6890 <!--
6891 // IHost
6892 /////////////////////////////////////////////////////////////////////////
6893 -->
6894
6895 <interface
6896 name="IHostDVDDrive" extends="$unknown"
6897 uuid="21f86694-202d-4ce4-8b05-a63ff82dbf4c"
6898 wsmap="managed"
6899 >
6900 <desc>
6901 The IHostDVDDrive interface represents the physical CD/DVD drive
6902 hardware on the host. Used indirectly in <link to="IHost::DVDDrives"/>.
6903 </desc>
6904
6905 <attribute name="name" type="wstring" readonly="yes">
6906 <desc>
6907 Returns the platform-specific device identifier.
6908 On DOS-like platforms, it is a drive name (e.g. R:).
6909 On Unix-like platforms, it is a device name (e.g. /dev/hdc).
6910 </desc>
6911 </attribute>
6912 <attribute name="description" type="wstring" readonly="yes">
6913 <desc>
6914 Returns a human readable description for the drive. This
6915 description usually contains the product and vendor name. A
6916 @c null string is returned if the description is not available.
6917 </desc>
6918 </attribute>
6919 <attribute name="udi" type="wstring" readonly="yes">
6920 <desc>
6921 Returns the unique device identifier for the drive. This
6922 attribute is reserved for future use instead of
6923 <link to="#name"/>. Currently it is not used and may return
6924 @c null on some platforms.
6925 </desc>
6926 </attribute>
6927
6928 </interface>
6929
6930 <interface
6931 name="IHostFloppyDrive" extends="$unknown"
6932 uuid="3f02d604-e908-4919-9fd1-8a4afd68fc63"
6933 wsmap="managed"
6934 >
6935 <desc>
6936 The IHostFloppyDrive interface represents the physical floppy drive
6937 hardware on the host. Used indirectly in <link to="IHost::floppyDrives"/>.
6938 </desc>
6939 <attribute name="name" type="wstring" readonly="yes">
6940 <desc>
6941 Returns the platform-specific device identifier.
6942 On DOS-like platforms, it is a drive name (e.g. A:).
6943 On Unix-like platforms, it is a device name (e.g. /dev/fd0).
6944 </desc>
6945 </attribute>
6946 <attribute name="description" type="wstring" readonly="yes">
6947 <desc>
6948 Returns a human readable description for the drive. This
6949 description usually contains the product and vendor name. A
6950 @c null string is returned if the description is not available.
6951 </desc>
6952 </attribute>
6953 <attribute name="udi" type="wstring" readonly="yes">
6954 <desc>
6955 Returns the unique device identifier for the drive. This
6956 attribute is reserved for future use instead of
6957 <link to="#name"/>. Currently it is not used and may return
6958 @c null on some platforms.
6959 </desc>
6960 </attribute>
6961 </interface>
6962
6963 <enum
6964 name="HostNetworkInterfaceMediumType"
6965 uuid="1aa54aaf-2497-45a2-bfb1-8eb225e93d5b"
6966 >
6967 <desc>
6968 Type of encapsulation. Ethernet encapsulation includes both wired and
6969 wireless Ethernet connections.
6970 <see>IHostNetworkInterface</see>
6971 </desc>
6972
6973 <const name="Unknown" value="0">
6974 <desc>
6975 The type of interface cannot be determined.
6976 </desc>
6977 </const>
6978 <const name="Ethernet" value="1">
6979 <desc>
6980 Ethernet frame encapsulation.
6981 </desc>
6982 </const>
6983 <const name="PPP" value="2">
6984 <desc>
6985 Point-to-point protocol encapsulation.
6986 </desc>
6987 </const>
6988 <const name="SLIP" value="3">
6989 <desc>
6990 Serial line IP encapsulation.
6991 </desc>
6992 </const>
6993 </enum>
6994
6995 <enum
6996 name="HostNetworkInterfaceStatus"
6997 uuid="CC474A69-2710-434B-8D99-C38E5D5A6F41"
6998 >
6999 <desc>
7000 Current status of the interface.
7001 <see>IHostNetworkInterface</see>
7002 </desc>
7003
7004 <const name="Unknown" value="0">
7005 <desc>
7006 The state of interface cannot be determined.
7007 </desc>
7008 </const>
7009 <const name="Up" value="1">
7010 <desc>
7011 The interface is fully operational.
7012 </desc>
7013 </const>
7014 <const name="Down" value="2">
7015 <desc>
7016 The interface is not functioning.
7017 </desc>
7018 </const>
7019 </enum>
7020
7021 <enum
7022 name="HostNetworkInterfaceType"
7023 uuid="67431b00-9946-48a2-bc02-b25c5919f4f3"
7024 >
7025 <desc>
7026 Network interface type.
7027 </desc>
7028 <const name="Bridged" value="1"/>
7029 <const name="HostOnly" value="2"/>
7030 </enum>
7031
7032 <interface
7033 name="IHostNetworkInterface" extends="$unknown"
7034 uuid="ce6fae58-7642-4102-b5db-c9005c2320a8"
7035 wsmap="managed"
7036 >
7037 <desc>
7038 Represents one of host's network interfaces. IP V6 address and network
7039 mask are strings of 32 hexdecimal digits grouped by four. Groups are
7040 separated by colons.
7041 For example, fe80:0000:0000:0000:021e:c2ff:fed2:b030.
7042 </desc>
7043 <attribute name="name" type="wstring" readonly="yes">
7044 <desc>Returns the host network interface name.</desc>
7045 </attribute>
7046
7047 <attribute name="id" type="wstring" readonly="yes">
7048 <desc>Returns the interface UUID.</desc>
7049 </attribute>
7050
7051 <attribute name="networkName" type="wstring" readonly="yes">
7052 <desc>Returns the name of a virtual network the interface gets attached to.</desc>
7053 </attribute>
7054
7055 <attribute name="dhcpEnabled" type="boolean" readonly="yes">
7056 <desc>Specifies whether the DHCP is enabled for the interface.</desc>
7057 </attribute>
7058
7059 <attribute name="IPAddress" type="wstring" readonly="yes">
7060 <desc>Returns the IP V4 address of the interface.</desc>
7061 </attribute>
7062
7063 <attribute name="networkMask" type="wstring" readonly="yes">
7064 <desc>Returns the network mask of the interface.</desc>
7065 </attribute>
7066
7067 <attribute name="IPV6Supported" type="boolean" readonly="yes">
7068 <desc>Specifies whether the IP V6 is supported/enabled for the interface.</desc>
7069 </attribute>
7070
7071 <attribute name="IPV6Address" type="wstring" readonly="yes">
7072 <desc>Returns the IP V6 address of the interface.</desc>
7073 </attribute>
7074
7075 <attribute name="IPV6NetworkMaskPrefixLength" type="unsigned long" readonly="yes">
7076 <desc>Returns the length IP V6 network mask prefix of the interface.</desc>
7077 </attribute>
7078
7079 <attribute name="hardwareAddress" type="wstring" readonly="yes">
7080 <desc>Returns the hardware address. For Ethernet it is MAC address.</desc>
7081 </attribute>
7082
7083 <attribute name="mediumType" type="HostNetworkInterfaceMediumType" readonly="yes">
7084 <desc>Type of protocol encapsulation used.</desc>
7085 </attribute>
7086
7087 <attribute name="status" type="HostNetworkInterfaceStatus" readonly="yes">
7088 <desc>Status of the interface.</desc>
7089 </attribute>
7090
7091 <attribute name="interfaceType" type="HostNetworkInterfaceType" readonly="yes">
7092 <desc>specifies the host interface type.</desc>
7093 </attribute>
7094
7095 <method name="enableStaticIpConfig">
7096 <desc>sets and enables the static IP V4 configuration for the given interface.</desc>
7097 <param name="IPAddress" type="wstring" dir="in">
7098 <desc>
7099 IP address.
7100 </desc>
7101 </param>
7102 <param name="networkMask" type="wstring" dir="in">
7103 <desc>
7104 network mask.
7105 </desc>
7106 </param>
7107 </method>
7108
7109 <method name="enableStaticIpConfigV6">
7110 <desc>sets and enables the static IP V6 configuration for the given interface.</desc>
7111 <param name="IPV6Address" type="wstring" dir="in">
7112 <desc>
7113 IP address.
7114 </desc>
7115 </param>
7116 <param name="IPV6NetworkMaskPrefixLength" type="unsigned long" dir="in">
7117 <desc>
7118 network mask.
7119 </desc>
7120 </param>
7121 </method>
7122
7123 <method name="enableDynamicIpConfig">
7124 <desc>enables the dynamic IP configuration.</desc>
7125 </method>
7126
7127 <method name="dhcpRediscover">
7128 <desc>refreshes the IP configuration for dhcp-enabled interface.</desc>
7129 </method>
7130
7131 </interface>
7132
7133 <interface
7134 name="IHost" extends="$unknown"
7135 uuid="a13b5556-5c0b-4f80-9df6-6f804f3336a1"
7136 wsmap="managed"
7137 >
7138 <desc>
7139 The IHost interface represents the physical machine that this VirtualBox
7140 installation runs on.
7141
7142 An object implementing this interface is returned by the
7143 <link to="IVirtualBox::host" /> attribute. This interface contains
7144 read-only information about the host's physical hardware (such as what
7145 processors and disks are available, what the host operating system is,
7146 and so on) and also allows for manipulating some of the host's hardware,
7147 such as global USB device filters and host interface networking.
7148
7149 </desc>
7150 <attribute name="DVDDrives" type="IHostDVDDrive" readonly="yes" safearray="yes">
7151 <desc>List of DVD drives available on the host.</desc>
7152 </attribute>
7153
7154 <attribute name="floppyDrives" type="IHostFloppyDrive" readonly="yes" safearray="yes">
7155 <desc>List of floppy drives available on the host.</desc>
7156 </attribute>
7157
7158 <attribute name="USBDevices" type="IHostUSBDevice" readonly="yes" safearray="yes">
7159 <desc>
7160 List of USB devices currently attached to the host.
7161 Once a new device is physically attached to the host computer,
7162 it appears in this list and remains there until detached.
7163
7164 <note>
7165 If USB functionality is not available in the given edition of
7166 VirtualBox, this method will set the result code to @c E_NOTIMPL.
7167 </note>
7168 </desc>
7169 </attribute>
7170
7171 <attribute name="USBDeviceFilters" type="IHostUSBDeviceFilter" readonly="yes" safearray="yes">
7172 <desc>
7173 List of USB device filters in action.
7174 When a new device is physically attached to the host computer,
7175 filters from this list are applied to it (in order they are stored
7176 in the list). The first matched filter will determine the
7177 <link to="IHostUSBDeviceFilter::action">action</link>
7178 performed on the device.
7179
7180 Unless the device is ignored by these filters, filters of all
7181 currently running virtual machines
7182 (<link to="IUSBController::deviceFilters"/>) are applied to it.
7183
7184 <note>
7185 If USB functionality is not available in the given edition of
7186 VirtualBox, this method will set the result code to @c E_NOTIMPL.
7187 </note>
7188
7189 <see>IHostUSBDeviceFilter, USBDeviceState</see>
7190 </desc>
7191 </attribute>
7192
7193 <attribute name="networkInterfaces" type="IHostNetworkInterface" safearray="yes" readonly="yes">
7194 <desc>List of host network interfaces currently defined on the host.</desc>
7195 </attribute>
7196
7197 <attribute name="processorCount" type="unsigned long" readonly="yes">
7198 <desc>Number of (logical) CPUs installed in the host system.</desc>
7199 </attribute>
7200
7201 <attribute name="processorOnlineCount" type="unsigned long" readonly="yes">
7202 <desc>Number of (logical) CPUs online in the host system.</desc>
7203 </attribute>
7204
7205 <method name="getProcessorSpeed">
7206 <desc>Query the (approximate) maximum speed of a specified host CPU in
7207 Megahertz.
7208 </desc>
7209 <param name="cpuId" type="unsigned long" dir="in">
7210 <desc>
7211 Identifier of the CPU.
7212 </desc>
7213 </param>
7214 <param name="speed" type="unsigned long" dir="return">
7215 <desc>
7216 Speed value. 0 is returned if value is not known or @a cpuId is
7217 invalid.
7218 </desc>
7219 </param>
7220 </method>
7221
7222 <method name="getProcessorFeature">
7223 <desc>Query whether a CPU feature is supported or not.</desc>
7224 <param name="feature" type="ProcessorFeature" dir="in">
7225 <desc>
7226 CPU Feature identifier.
7227 </desc>
7228 </param>
7229 <param name="supported" type="boolean" dir="return">
7230 <desc>
7231 Feature is supported or not.
7232 </desc>
7233 </param>
7234 </method>
7235
7236 <method name="getProcessorDescription">
7237 <desc>Query the model string of a specified host CPU.
7238 <note>
7239 This function is not implemented in the current version of the
7240 product.
7241 </note>
7242 </desc>
7243 <param name="cpuId" type="unsigned long" dir="in">
7244 <desc>
7245 Identifier of the CPU.
7246 </desc>
7247 </param>
7248 <param name="description" type="wstring" dir="return">
7249 <desc>
7250 Model string. A @c null string is returned if value is not known or
7251 @a cpuId is invalid.
7252 </desc>
7253 </param>
7254 </method>
7255
7256 <attribute name="memorySize" type="unsigned long" readonly="yes">
7257 <desc>Amount of system memory in megabytes installed in the host system.</desc>
7258 </attribute>
7259
7260 <attribute name="memoryAvailable" type="unsigned long" readonly="yes">
7261 <desc>Available system memory in the host system.</desc>
7262 </attribute>
7263
7264 <attribute name="operatingSystem" type="wstring" readonly="yes">
7265 <desc>Name of the host system's operating system.</desc>
7266 </attribute>
7267
7268 <attribute name="OSVersion" type="wstring" readonly="yes">
7269 <desc>Host operating system's version string.</desc>
7270 </attribute>
7271
7272 <attribute name="UTCTime" type="long long" readonly="yes">
7273 <desc>Returns the current host time in milliseconds since 1970-01-01 UTC.</desc>
7274 </attribute>
7275
7276 <attribute name="Acceleration3DAvailable" type="boolean" readonly="yes">
7277 <desc>Returns @c true when the host supports 3D hardware acceleration.</desc>
7278 </attribute>
7279
7280 <method name="createHostOnlyNetworkInterface">
7281 <desc>
7282 Creates a new adapter for Host Only Networking.
7283 <result name="E_INVALIDARG">
7284 Host network interface @a name already exists.
7285 </result>
7286 </desc>
7287 <param name="hostInterface" type="IHostNetworkInterface" dir="out">
7288 <desc>
7289 Created host interface object.
7290 </desc>
7291 </param>
7292 <param name="progress" type="IProgress" dir="return">
7293 <desc>
7294 Progress object to track the operation completion.
7295 </desc>
7296 </param>
7297 </method>
7298
7299 <method name="removeHostOnlyNetworkInterface">
7300 <desc>
7301 Removes the given Host Only Networking interface.
7302 <result name="VBOX_E_OBJECT_NOT_FOUND">
7303 No host network interface matching @a id found.
7304 </result>
7305 </desc>
7306 <param name="id" type="wstring" dir="in">
7307 <desc>
7308 Adapter GUID.
7309 </desc>
7310 </param>
7311 <param name="hostInterface" type="IHostNetworkInterface" dir="out">
7312 <desc>
7313 Removed host interface object.
7314 </desc>
7315 </param>
7316 <param name="progress" type="IProgress" dir="return">
7317 <desc>
7318 Progress object to track the operation completion.
7319 </desc>
7320 </param>
7321 </method>
7322
7323 <method name="createUSBDeviceFilter">
7324 <desc>
7325 Creates a new USB device filter. All attributes except
7326 the filter name are set to @c null (any match),
7327 <i>active</i> is @c false (the filter is not active).
7328
7329 The created filter can be added to the list of filters using
7330 <link to="#insertUSBDeviceFilter"/>.
7331
7332 <see>#USBDeviceFilters</see>
7333 </desc>
7334 <param name="name" type="wstring" dir="in">
7335 <desc>
7336 Filter name. See <link to="IHostUSBDeviceFilter::name"/>
7337 for more info.
7338 </desc>
7339 </param>
7340 <param name="filter" type="IHostUSBDeviceFilter" dir="return">
7341 <desc>Created filter object.</desc>
7342 </param>
7343 </method>
7344
7345 <method name="insertUSBDeviceFilter">
7346 <desc>
7347 Inserts the given USB device to the specified position
7348 in the list of filters.
7349
7350 Positions are numbered starting from @c 0. If the specified
7351 position is equal to or greater than the number of elements in
7352 the list, the filter is added at the end of the collection.
7353
7354 <note>
7355 Duplicates are not allowed, so an attempt to insert a
7356 filter already in the list is an error.
7357 </note>
7358 <note>
7359 If USB functionality is not available in the given edition of
7360 VirtualBox, this method will set the result code to @c E_NOTIMPL.
7361 </note>
7362
7363 <see>#USBDeviceFilters</see>
7364
7365 <result name="VBOX_E_INVALID_OBJECT_STATE">
7366 USB device filter is not created within this VirtualBox instance.
7367 </result>
7368 <result name="E_INVALIDARG">
7369 USB device filter already in list.
7370 </result>
7371
7372 </desc>
7373 <param name="position" type="unsigned long" dir="in">
7374 <desc>Position to insert the filter to.</desc>
7375 </param>
7376 <param name="filter" type="IHostUSBDeviceFilter" dir="in">
7377 <desc>USB device filter to insert.</desc>
7378 </param>
7379 </method>
7380
7381 <method name="removeUSBDeviceFilter">
7382 <desc>
7383 Removes a USB device filter from the specified position in the
7384 list of filters.
7385
7386 Positions are numbered starting from @c 0. Specifying a
7387 position equal to or greater than the number of elements in
7388 the list will produce an error.
7389
7390 <note>
7391 If USB functionality is not available in the given edition of
7392 VirtualBox, this method will set the result code to @c E_NOTIMPL.
7393 </note>
7394
7395 <see>#USBDeviceFilters</see>
7396
7397 <result name="E_INVALIDARG">
7398 USB device filter list empty or invalid @a position.
7399 </result>
7400
7401 </desc>
7402 <param name="position" type="unsigned long" dir="in">
7403 <desc>Position to remove the filter from.</desc>
7404 </param>
7405 <param name="filter" type="IHostUSBDeviceFilter" dir="return">
7406 <desc>Removed USB device filter.</desc>
7407 </param>
7408 </method>
7409
7410 <method name="findHostDVDDrive">
7411 <desc>
7412 Searches for a host DVD drive with the given @c name.
7413
7414 <result name="VBOX_E_OBJECT_NOT_FOUND">
7415 Given @c name does not correspond to any host drive.
7416 </result>
7417
7418 </desc>
7419 <param name="name" type="wstring" dir="in">
7420 <desc>Name of the host drive to search for</desc>
7421 </param>
7422 <param name="drive" type="IHostDVDDrive" dir="return">
7423 <desc>Found host drive object</desc>
7424 </param>
7425 </method>
7426
7427 <method name="findHostFloppyDrive">
7428 <desc>
7429 Searches for a host floppy drive with the given @c name.
7430
7431 <result name="VBOX_E_OBJECT_NOT_FOUND">
7432 Given @c name does not correspond to any host floppy drive.
7433 </result>
7434
7435 </desc>
7436 <param name="name" type="wstring" dir="in">
7437 <desc>Name of the host floppy drive to search for</desc>
7438 </param>
7439 <param name="drive" type="IHostFloppyDrive" dir="return">
7440 <desc>Found host floppy drive object</desc>
7441 </param>
7442 </method>
7443
7444 <method name="findHostNetworkInterfaceByName">
7445 <desc>
7446 Searches through all host network interfaces for an interface with
7447 the given @c name.
7448 <note>
7449 The method returns an error if the given @c name does not
7450 correspond to any host network interface.
7451 </note>
7452 </desc>
7453 <param name="name" type="wstring" dir="in">
7454 <desc>Name of the host network interface to search for.</desc>
7455 </param>
7456 <param name="networkInterface" type="IHostNetworkInterface" dir="return">
7457 <desc>Found host network interface object.</desc>
7458 </param>
7459 </method>
7460 <method name="findHostNetworkInterfaceById">
7461 <desc>
7462 Searches through all host network interfaces for an interface with
7463 the given GUID.
7464 <note>
7465 The method returns an error if the given GUID does not
7466 correspond to any host network interface.
7467 </note>
7468 </desc>
7469 <param name="id" type="wstring" dir="in">
7470 <desc>GUID of the host network interface to search for.</desc>
7471 </param>
7472 <param name="networkInterface" type="IHostNetworkInterface" dir="return">
7473 <desc>Found host network interface object.</desc>
7474 </param>
7475 </method>
7476 <method name="findHostNetworkInterfacesOfType">
7477 <desc>
7478 Searches through all host network interfaces and returns a list of interfaces of the specified type
7479 </desc>
7480 <param name="type" type="HostNetworkInterfaceType" dir="in">
7481 <desc>type of the host network interfaces to search for.</desc>
7482 </param>
7483 <param name="networkInterfaces" type="IHostNetworkInterface" safearray="yes" dir="return">
7484 <desc>Found host network interface objects.</desc>
7485 </param>
7486 </method>
7487
7488 <method name="findUSBDeviceById">
7489 <desc>
7490 Searches for a USB device with the given UUID.
7491
7492 <result name="VBOX_E_OBJECT_NOT_FOUND">
7493 Given @c id does not correspond to any USB device.
7494 </result>
7495
7496 <see>IHostUSBDevice::id</see>
7497 </desc>
7498 <param name="id" type="wstring" dir="in">
7499 <desc>UUID of the USB device to search for.</desc>
7500 </param>
7501 <param name="device" type="IHostUSBDevice" dir="return">
7502 <desc>Found USB device object.</desc>
7503 </param>
7504 </method>
7505
7506 <method name="findUSBDeviceByAddress">
7507 <desc>
7508 Searches for a USB device with the given host address.
7509
7510 <result name="VBOX_E_OBJECT_NOT_FOUND">
7511 Given @c name does not correspond to any USB device.
7512 </result>
7513
7514 <see>IHostUSBDevice::address</see>
7515 </desc>
7516 <param name="name" type="wstring" dir="in">
7517 <desc>
7518 Address of the USB device (as assigned by the host) to
7519 search for.
7520 </desc>
7521 </param>
7522 <param name="device" type="IHostUSBDevice" dir="return">
7523 <desc>Found USB device object.</desc>
7524 </param>
7525 </method>
7526
7527 </interface>
7528
7529 <!--
7530 // ISystemProperties
7531 /////////////////////////////////////////////////////////////////////////
7532 -->
7533
7534 <interface
7535 name="ISystemProperties"
7536 extends="$unknown"
7537 uuid="63bfd184-df69-4949-9159-a923cf7b1207"
7538 wsmap="managed"
7539 >
7540 <desc>
7541 The ISystemProperties interface represents global properties of the given
7542 VirtualBox installation.
7543
7544 These properties define limits and default values for various attributes
7545 and parameters. Most of the properties are read-only, but some can be
7546 changed by a user.
7547 </desc>
7548
7549 <attribute name="minGuestRAM" type="unsigned long" readonly="yes">
7550 <desc>Minimum guest system memory in Megabytes.</desc>
7551 </attribute>
7552
7553 <attribute name="maxGuestRAM" type="unsigned long" readonly="yes">
7554 <desc>Maximum guest system memory in Megabytes.</desc>
7555 </attribute>
7556
7557 <attribute name="minGuestVRAM" type="unsigned long" readonly="yes">
7558 <desc>Minimum guest video memory in Megabytes.</desc>
7559 </attribute>
7560
7561 <attribute name="maxGuestVRAM" type="unsigned long" readonly="yes">
7562 <desc>Maximum guest video memory in Megabytes.</desc>
7563 </attribute>
7564
7565 <attribute name="minGuestCPUCount" type="unsigned long" readonly="yes">
7566 <desc>Minimum CPU count.</desc>
7567 </attribute>
7568
7569 <attribute name="maxGuestCPUCount" type="unsigned long" readonly="yes">
7570 <desc>Maximum CPU count.</desc>
7571 </attribute>
7572
7573 <attribute name="maxVDISize" type="unsigned long long" readonly="yes">
7574 <desc>Maximum size of a virtual disk image in Megabytes.</desc>
7575 </attribute>
7576
7577 <attribute name="networkAdapterCount" type="unsigned long" readonly="yes">
7578 <desc>
7579 Number of network adapters associated with every
7580 <link to="IMachine"/> instance.
7581 </desc>
7582 </attribute>
7583
7584 <attribute name="serialPortCount" type="unsigned long" readonly="yes">
7585 <desc>
7586 Number of serial ports associated with every
7587 <link to="IMachine"/> instance.
7588 </desc>
7589 </attribute>
7590
7591 <attribute name="parallelPortCount" type="unsigned long" readonly="yes">
7592 <desc>
7593 Number of parallel ports associated with every
7594 <link to="IMachine"/> instance.
7595 </desc>
7596 </attribute>
7597
7598 <attribute name="maxBootPosition" type="unsigned long" readonly="yes">
7599 <desc>
7600 Maximum device position in the boot order. This value corresponds
7601 to the total number of devices a machine can boot from, to make it
7602 possible to include all possible devices to the boot list.
7603 <see><link to="IMachine::setBootOrder"/></see>
7604 </desc>
7605 </attribute>
7606
7607 <attribute name="defaultMachineFolder" type="wstring">
7608 <desc>
7609 Full path to the default directory used to create new or open
7610 existing machines when a settings file name contains no
7611 path.
7612
7613 The initial value of this property is
7614 <tt>&lt;</tt><link to="IVirtualBox::homeFolder">
7615 VirtualBox_home</link><tt>&gt;/Machines</tt>.
7616
7617 <note>
7618 Setting this property to @c null will restore the
7619 initial value.
7620 </note>
7621 <note>
7622 When settings this property, the specified path can be
7623 absolute (full path) or relative
7624 to the <link to="IVirtualBox::homeFolder">
7625 VirtualBox home directory</link>.
7626 When reading this property, a full path is
7627 always returned.
7628 </note>
7629 <note>
7630 The specified path may not exist, it will be created
7631 when necessary.
7632 </note>
7633
7634 <see>
7635 <link to="IVirtualBox::createMachine"/>,
7636 <link to="IVirtualBox::openMachine"/>
7637 </see>
7638 </desc>
7639 </attribute>
7640
7641 <attribute name="defaultHardDiskFolder" type="wstring">
7642 <desc>
7643 Full path to the default directory used to create new or open existing
7644 virtual disks.
7645
7646 This path is used when the storage unit of a hard disk is a regular file
7647 in the host's file system and only a file name that contains no path is
7648 given.
7649
7650 The initial value of this property is
7651 <tt>&lt;</tt>
7652 <link to="IVirtualBox::homeFolder">VirtualBox_home</link>
7653 <tt>&gt;/HardDisks</tt>.
7654
7655 <note>
7656 Setting this property to @c null will restore the initial value.
7657 </note>
7658 <note>
7659 When settings this property, the specified path can be relative
7660 to the
7661 <link to="IVirtualBox::homeFolder">VirtualBox home directory</link> or
7662 absolute. When reading this property, a full path is
7663 always returned.
7664 </note>
7665 <note>
7666 The specified path may not exist, it will be created
7667 when necessary.
7668 </note>
7669
7670 <see>
7671 IHardDisk,
7672 <link to="IVirtualBox::createHardDisk"/>,
7673 <link to="IVirtualBox::openHardDisk"/>,
7674 <link to="IMedium::location"/>
7675 </see>
7676 </desc>
7677 </attribute>
7678
7679 <attribute name="hardDiskFormats" type="IHardDiskFormat" safearray="yes" readonly="yes">
7680 <desc>
7681 List of all hard disk storage formats supported by this VirtualBox
7682 installation.
7683
7684 Keep in mind that the hard disk format identifier
7685 (<link to="IHardDiskFormat::id"/>) used in other API calls like
7686 <link to="IVirtualBox::createHardDisk"/> to refer to a particular
7687 hard disk format is a case-insensitive string. This means that, for
7688 example, all of the following strings:
7689 <pre>
7690 "VDI"
7691 "vdi"
7692 "VdI"</pre>
7693 refer to the same hard disk format.
7694
7695 Note that the virtual hard disk framework is backend-based, therefore
7696 the list of supported formats depends on what backends are currently
7697 installed.
7698
7699 <see>
7700 <link to="IHardDiskFormat"/>,
7701 </see>
7702 </desc>
7703 </attribute>
7704
7705 <attribute name="defaultHardDiskFormat" type="wstring">
7706 <desc>
7707 Identifier of the default hard disk format used by VirtualBox.
7708
7709 The hard disk format set by this attribute is used by VirtualBox
7710 when the hard disk format was not specified explicitly. One example is
7711 <link to="IVirtualBox::createHardDisk"/> with the @c null
7712 format argument. A more complex example is implicit creation of
7713 differencing hard disks when taking a snapshot of a virtual machine:
7714 this operation will try to use a format of the parent hard disk first
7715 and if this format does not support differencing hard disks the default
7716 format specified by this argument will be used.
7717
7718 The list of supported hard disk formats may be obtained by the
7719 <link to="#hardDiskFormats"/> call. Note that the default hard disk
7720 format must have a capability to create differencing hard disks;
7721 otherwise opeartions that create hard disks implicitly may fail
7722 unexpectedly.
7723
7724 The initial value of this property is <tt>"VDI"</tt> in the current
7725 version of the VirtualBox product, but may change in the future.
7726
7727 <note>
7728 Setting this property to @c null will restore the initial value.
7729 </note>
7730
7731 <see>
7732 <link to="#hardDiskFormats"/>,
7733 <link to="IHardDiskFormat::id"/>,
7734 <link to="IVirtualBox::createHardDisk"/>
7735 </see>
7736 </desc>
7737 </attribute>
7738
7739 <attribute name="remoteDisplayAuthLibrary" type="wstring">
7740 <desc>
7741 Library that provides authentication for VRDP clients. The library
7742 is used if a virtual machine's authentication type is set to "external"
7743 in the VM RemoteDisplay configuration.
7744
7745 The system library extension (".DLL" or ".so") must be omitted.
7746 A full path can be specified; if not, then the library must reside on the
7747 system's default library path.
7748
7749 The default value of this property is <tt>"VRDPAuth"</tt>. There is a library
7750 of that name in one of the default VirtualBox library directories.
7751
7752 For details about VirtualBox authentication libraries and how to implement
7753 them, please refer to the VirtualBox manual.
7754
7755 <note>
7756 Setting this property to @c null will restore the
7757 initial value.
7758 </note>
7759 </desc>
7760 </attribute>
7761
7762 <attribute name="webServiceAuthLibrary" type="wstring">
7763 <desc>
7764 Library that provides authentication for webservice clients. The library
7765 is used if a virtual machine's authentication type is set to "external"
7766 in the VM RemoteDisplay configuration and will be called from
7767 within the <link to="IWebsessionManager::logon" /> implementation.
7768
7769 As opposed to <link to="ISystemProperties::remoteDisplayAuthLibrary" />,
7770 there is no per-VM setting for this, as the webservice is a global
7771 resource (if it is running). Only for this setting (for the webservice),
7772 setting this value to a literal <tt>"null"</tt> string disables authentication,
7773 meaning that <link to="IWebsessionManager::logon" /> will always succeed,
7774 no matter what user name and password are supplied.
7775
7776 The initial value of this property is <tt>"VRDPAuth"</tt>,
7777 meaning that the webservice will use the same authentication
7778 library that is used by default for VBoxVRDP (again, see
7779 <link to="ISystemProperties::remoteDisplayAuthLibrary" />).
7780 The format and calling convention of authentication libraries
7781 is the same for the webservice as it is for VBoxVRDP.
7782
7783 </desc>
7784 </attribute>
7785
7786 <attribute name="HWVirtExEnabled" type="boolean">
7787 <desc>
7788 This specifies the default value for hardware virtualization
7789 extensions. If enabled, virtual machines will make use of
7790 hardware virtualization extensions such as Intel VT-x and
7791 AMD-V by default. This value can be overridden by each VM
7792 using their <link to="IMachine::HWVirtExEnabled" /> property.
7793 </desc>
7794 </attribute>
7795
7796 <attribute name="LogHistoryCount" type="unsigned long">
7797 <desc>
7798 This value specifies how many old release log files are kept.
7799 </desc>
7800 </attribute>
7801
7802 <attribute name="defaultAudioDriver" type="AudioDriverType" readonly="yes">
7803 <desc>This value hold the default audio driver for the current
7804 system.</desc>
7805 </attribute>
7806 </interface>
7807
7808 <!--
7809 // IGuest
7810 /////////////////////////////////////////////////////////////////////////
7811 -->
7812
7813 <interface
7814 name="IGuestOSType" extends="$unknown"
7815 uuid="cfe9e64c-4430-435b-9e7c-e3d8e417bd58"
7816 wsmap="struct"
7817 >
7818 <desc>
7819 </desc>
7820
7821 <attribute name="familyId" type="wstring" readonly="yes">
7822 <desc>Guest OS family identifier string.</desc>
7823 </attribute>
7824
7825 <attribute name="familyDescription" type="wstring" readonly="yes">
7826 <desc>Human readable description of the guest OS family.</desc>
7827 </attribute>
7828
7829 <attribute name="id" type="wstring" readonly="yes">
7830 <desc>Guest OS identifier string.</desc>
7831 </attribute>
7832
7833 <attribute name="description" type="wstring" readonly="yes">
7834 <desc>Human readable description of the guest OS.</desc>
7835 </attribute>
7836
7837 <attribute name="is64Bit" type="boolean" readonly="yes">
7838 <desc>Returns @c true if the given OS is 64-bit</desc>
7839 </attribute>
7840
7841 <attribute name="recommendedIOAPIC" type="boolean" readonly="yes">
7842 <desc>Returns @c true if IO APIC recommended for this OS type.</desc>
7843 </attribute>
7844
7845 <attribute name="recommendedVirtEx" type="boolean" readonly="yes">
7846 <desc>Returns @c true if VT-x or AMD-V recommended for this OS type.</desc>
7847 </attribute>
7848
7849 <attribute name="recommendedRAM" type="unsigned long" readonly="yes">
7850 <desc>Recommended RAM size in Megabytes.</desc>
7851 </attribute>
7852
7853 <attribute name="recommendedVRAM" type="unsigned long" readonly="yes">
7854 <desc>Recommended video RAM size in Megabytes.</desc>
7855 </attribute>
7856
7857 <attribute name="recommendedHDD" type="unsigned long" readonly="yes">
7858 <desc>Recommended hard disk size in Megabytes.</desc>
7859 </attribute>
7860
7861 <attribute name="adapterType" type="NetworkAdapterType" readonly="yes">
7862 <desc>Returns recommended network adapter for this OS type.</desc>
7863 </attribute>
7864 </interface>
7865
7866 <interface
7867 name="IGuest" extends="$unknown"
7868 uuid="d8556fca-81bc-12af-fca3-365528fa38ca"
7869 wsmap="managed"
7870 >
7871 <desc>
7872 The IGuest interface represents information about the operating system
7873 running inside the virtual machine. Used in
7874 <link to="IConsole::guest"/>.
7875
7876 IGuest provides information about the guest operating system, whether
7877 Guest Additions are installed and other OS-specific virtual machine
7878 properties.
7879 </desc>
7880
7881 <attribute name="OSTypeId" type="wstring" readonly="yes">
7882 <desc>
7883 Identifier of the Guest OS type as reported by the Guest
7884 Additions.
7885 You may use <link to="IVirtualBox::getGuestOSType"/> to obtain
7886 an IGuestOSType object representing details about the given
7887 Guest OS type.
7888 <note>
7889 If Guest Additions are not installed, this value will be
7890 the same as <link to="IMachine::OSTypeId"/>.
7891 </note>
7892 </desc>
7893 </attribute>
7894
7895 <attribute name="additionsActive" type="boolean" readonly="yes">
7896 <desc>
7897 Flag whether the Guest Additions are installed and active
7898 in which case their version will be returned by the
7899 <link to="#additionsVersion"/> property.
7900 </desc>
7901 </attribute>
7902
7903 <attribute name="additionsVersion" type="wstring" readonly="yes">
7904 <desc>
7905 Version of the Guest Additions (3 decimal numbers separated
7906 by dots) or empty when the Additions are not installed. The
7907 Additions may also report a version but yet not be active as
7908 the version might be refused by VirtualBox (incompatible) or
7909 other failures occurred.
7910 </desc>
7911 </attribute>
7912
7913 <attribute name="supportsSeamless" type="boolean" readonly="yes">
7914 <desc>
7915 Flag whether seamless guest display rendering (seamless desktop
7916 integration) is supported.
7917 </desc>
7918 </attribute>
7919
7920 <attribute name="supportsGraphics" type="boolean" readonly="yes">
7921 <desc>
7922 Flag whether the guest is in graphics mode. If it is not, then
7923 seamless rendering will not work, resize hints are not immediately
7924 acted on and guest display resizes are probably not initiated by
7925 the guest additions.
7926 </desc>
7927 </attribute>
7928
7929 <attribute name="memoryBalloonSize" type="unsigned long">
7930 <desc>Guest system memory balloon size in megabytes.</desc>
7931 </attribute>
7932
7933 <attribute name="statisticsUpdateInterval" type="unsigned long">
7934 <desc>Interval to update guest statistics in seconds.</desc>
7935 </attribute>
7936
7937 <method name="setCredentials">
7938 <desc>
7939 Store login credentials that can be queried by guest operating
7940 systems with Additions installed. The credentials are transient
7941 to the session and the guest may also choose to erase them. Note
7942 that the caller cannot determine whether the guest operating system
7943 has queried or made use of the credentials.
7944
7945 <result name="VBOX_E_VM_ERROR">
7946 VMM device is not available.
7947 </result>
7948
7949 </desc>
7950 <param name="userName" type="wstring" dir="in">
7951 <desc>User name string, can be empty</desc>
7952 </param>
7953 <param name="password" type="wstring" dir="in">
7954 <desc>Password string, can be empty</desc>
7955 </param>
7956 <param name="domain" type="wstring" dir="in">
7957 <desc>Domain name (guest logon scheme specific), can be empty</desc>
7958 </param>
7959 <param name="allowInteractiveLogon" type="boolean" dir="in">
7960 <desc>
7961 Flag whether the guest should alternatively allow the user to
7962 interactively specify different credentials. This flag might
7963 not be supported by all versions of the Additions.
7964 </desc>
7965 </param>
7966 </method>
7967
7968 <method name="getStatistic">
7969 <desc>
7970 Query specified guest statistics as reported by the VirtualBox Additions.
7971 </desc>
7972 <param name="cpuId" type="unsigned long" dir="in">
7973 <desc>Virtual CPU id; not relevant for all statistic types</desc>
7974 </param>
7975 <param name="statistic" type="GuestStatisticType" dir="in">
7976 <desc>Statistic type.</desc>
7977 </param>
7978 <param name="statVal" type="unsigned long" dir="return">
7979 <desc>Statistics value</desc>
7980 </param>
7981 </method>
7982
7983 </interface>
7984
7985
7986 <!--
7987 // IProgress
7988 /////////////////////////////////////////////////////////////////////////
7989 -->
7990
7991 <interface
7992 name="IProgress" extends="$unknown"
7993 uuid="6fcd0198-7fc5-4c53-8c37-653ac76854b5"
7994 wsmap="managed"
7995 >
7996 <desc>
7997 The IProgress interface is used to track and control
7998 asynchronous tasks within VirtualBox.
7999
8000 An instance of this is returned every time VirtualBox starts
8001 an asynchronous task (in other words, a separate thread) which
8002 continues to run after a method call returns. For example,
8003 <link to="IConsole::saveState" />, which saves the state of
8004 a running virtual machine, can take a long time to complete.
8005 To be able to display a progress bar, a user interface such as
8006 the VirtualBox graphical user interface can use the IProgress
8007 object returned by that method.
8008
8009 Note that IProgress is a "read-only" interface in the sense
8010 that only the VirtualBox internals behind the Main API can
8011 create and manipulate progress objects, whereas client code
8012 can only use the IProgress object to monitor a task's
8013 progress and, if <link to="#cancelable" /> is @c true,
8014 cancel the task by calling <link to="#cancel" />.
8015
8016 A task represented by IProgress consists of either one or
8017 several sub-operations that run sequentially, one by one (see
8018 <link to="#operation" /> and <link to="#operationCount" />).
8019 Every operation is identified by a number (starting from 0)
8020 and has a separate description.
8021
8022 You can find the individual percentage of completion of the current
8023 operation in <link to="#operationPercent" /> and the
8024 percentage of completion of the task as a whole
8025 in <link to="#percent" />.
8026
8027 Similarly, you can wait for the completion of a particular
8028 operation via <link to="#waitForOperationCompletion" /> or
8029 for the completion of the whole task via
8030 <link to="#waitForCompletion" />.
8031 </desc>
8032
8033 <attribute name="id" type="wstring" readonly="yes">
8034 <desc>ID of the task.</desc>
8035 </attribute>
8036
8037 <attribute name="description" type="wstring" readonly="yes">
8038 <desc>Description of the task.</desc>
8039 </attribute>
8040
8041 <attribute name="initiator" type="$unknown" readonly="yes">
8042 <desc>Initiator of the task.</desc>
8043 </attribute>
8044
8045 <attribute name="cancelable" type="boolean" readonly="yes">
8046 <desc>Whether the task can be interrupted.</desc>
8047 </attribute>
8048
8049 <attribute name="percent" type="unsigned long" readonly="yes">
8050 <desc>
8051 Current progress value of the task as a whole, in percent.
8052 This value depends on how many operations are already complete.
8053 Returns 100 if <link to="#completed" /> is @c true.
8054 </desc>
8055 </attribute>
8056
8057 <attribute name="timeRemaining" type="long" readonly="yes">
8058 <desc>
8059 Estimated remaining time until the task completes, in
8060 seconds. Returns 0 once the task has completed; returns -1
8061 if the remaining time cannot be computed, in particular if
8062 the current progress is 0.
8063
8064 Even if a value is returned, the estimate will be unreliable
8065 for low progress values. It will become more reliable as the
8066 task progresses; it is not recommended to display an ETA
8067 before at least 20% of a task have completed.
8068 </desc>
8069 </attribute>
8070
8071 <attribute name="completed" type="boolean" readonly="yes">
8072 <desc>Whether the task has been completed.</desc>
8073 </attribute>
8074
8075 <attribute name="canceled" type="boolean" readonly="yes">
8076 <desc>Whether the task has been canceled.</desc>
8077 </attribute>
8078
8079 <attribute name="resultCode" type="long" readonly="yes">
8080 <desc>
8081 Result code of the progress task.
8082 Valid only if <link to="#completed"/> is @c true.
8083 </desc>
8084 </attribute>
8085
8086 <attribute name="errorInfo" type="IVirtualBoxErrorInfo" readonly="yes">
8087 <desc>
8088 Extended information about the unsuccessful result of the
8089 progress operation. May be @c null if no extended information
8090 is available.
8091 Valid only if <link to="#completed"/> is @c true and
8092 <link to="#resultCode"/> indicates a failure.
8093 </desc>
8094 </attribute>
8095
8096 <attribute name="operationCount" type="unsigned long" readonly="yes">
8097 <desc>
8098 Number of sub-operations this task is divided into.
8099 Every task consists of at least one suboperation.
8100 </desc>
8101 </attribute>
8102
8103 <attribute name="operation" type="unsigned long" readonly="yes">
8104 <desc>Number of the sub-operation being currently executed.</desc>
8105 </attribute>
8106
8107 <attribute name="operationDescription" type="wstring" readonly="yes">
8108 <desc>
8109 Description of the sub-operation being currently executed.
8110 </desc>
8111 </attribute>
8112
8113 <attribute name="operationPercent" type="unsigned long" readonly="yes">
8114 <desc>Progress value of the current sub-operation only, in percent.</desc>
8115 </attribute>
8116
8117 <method name="waitForCompletion">
8118 <desc>
8119 Waits until the task is done (including all sub-operations)
8120 with a given timeout in milliseconds; specify -1 for an indefinite wait.
8121
8122 <result name="VBOX_E_IPRT_ERROR">
8123 Failed to wait for task completion.
8124 </result>
8125 </desc>
8126
8127 <param name="timeout" type="long" dir="in">
8128 <desc>
8129 Maximum time in milliseconds to wait or -1 to wait indefinitely.
8130 </desc>
8131 </param>
8132 </method>
8133
8134 <method name="waitForOperationCompletion">
8135 <desc>
8136 Waits until the given operation is done with a given timeout in
8137 milliseconds; specify -1 for an indefinite wait.
8138
8139 <result name="VBOX_E_IPRT_ERROR">
8140 Failed to wait for operation completion.
8141 </result>
8142
8143 </desc>
8144 <param name="operation" type="unsigned long" dir="in">
8145 <desc>
8146 Number of the operation to wait for.
8147 Must be less than <link to="#operationCount"/>.
8148 </desc>
8149 </param>
8150 <param name="timeout" type="long" dir="in">
8151 <desc>
8152 Maximum time in milliseconds to wait or -1 to wait indefinitely.
8153 </desc>
8154 </param>
8155 </method>
8156
8157 <method name="cancel">
8158 <desc>
8159 Cancels the task.
8160 <note>
8161 If <link to="#cancelable"/> is @c false, then this method will fail.
8162 </note>
8163
8164 <result name="VBOX_E_INVALID_OBJECT_STATE">
8165 Operation cannot be canceled.
8166 </result>
8167
8168 </desc>
8169 </method>
8170
8171 </interface>
8172
8173
8174 <!--
8175 // ISnapshot
8176 /////////////////////////////////////////////////////////////////////////
8177 -->
8178
8179 <interface
8180 name="ISnapshot" extends="$unknown"
8181 uuid="1a2d0551-58a4-4107-857e-ef414fc42ffc"
8182 wsmap="managed"
8183 >
8184 <desc>
8185 The ISnapshot interface represents a snapshot of the virtual
8186 machine.
8187
8188 The <i>snapshot</i> stores all the information about a virtual
8189 machine necessary to bring it to exactly the same state as it was at
8190 the time of taking the snapshot. The snapshot includes:
8191
8192 <ul>
8193 <li>all settings of the virtual machine (i.e. its hardware
8194 configuration: RAM size, attached hard disks, etc.)
8195 </li>
8196 <li>the execution state of the virtual machine (memory contents,
8197 CPU state, etc.).
8198 </li>
8199 </ul>
8200
8201 Snapshots can be <i>offline</i> (taken when the VM is powered off)
8202 or <i>online</i> (taken when the VM is running). The execution
8203 state of the offline snapshot is called a <i>zero execution state</i>
8204 (it doesn't actually contain any information about memory contents
8205 or the CPU state, assuming that all hardware is just powered off).
8206
8207 <h3>Snapshot branches</h3>
8208
8209 Snapshots can be chained. Chained snapshots form a branch where
8210 every next snapshot is based on the previous one. This chaining is
8211 mostly related to hard disk branching (see <link to="IHardDisk"/>
8212 description). This means that every time a new snapshot is created,
8213 a new differencing hard disk is implicitly created for all normal
8214 hard disks attached to the given virtual machine. This allows to
8215 fully restore hard disk contents when the machine is later reverted
8216 to a particular snapshot.
8217
8218 In the current implementation, multiple snapshot branches within one
8219 virtual machine are not allowed. Every machine has a single branch,
8220 and <link to="IConsole::takeSnapshot"/> operation adds a new
8221 snapshot to the top of that branch.
8222
8223 Existing snapshots can be discarded using
8224 <link to="IConsole::discardSnapshot"/>.
8225
8226 <h3>Current snapshot</h3>
8227
8228 Every virtual machine has a current snapshot, identified by
8229 <link to="IMachine::currentSnapshot"/>. This snapshot is used as
8230 a base for the <i>current machine state</i> (see below), to the effect
8231 that all normal hard disks of the machine and its execution
8232 state are based on this snapshot.
8233
8234 In the current implementation, the current snapshot is always the
8235 last taken snapshot (i.e. the head snapshot on the branch) and it
8236 cannot be changed.
8237
8238 The current snapshot is @c null if the machine doesn't have
8239 snapshots at all; in this case the current machine state is just
8240 current settings of this machine plus its current execution state.
8241
8242 <h3>Current machine state</h3>
8243
8244 The current machine state is what represented by IMachine instances got
8245 directly from IVirtualBox
8246 using <link
8247 to="IVirtualBox::getMachine">getMachine()</link>, <link
8248 to="IVirtualBox::findMachine">findMachine()</link>, etc. (as opposed
8249 to instances returned by <link to="ISnapshot::machine"/>). This state
8250 is always used when the machine is <link to="IConsole::powerUp"> powered
8251 on</link>.
8252
8253 The current machine state also includes the current execution state.
8254 If the machine is being currently executed
8255 (<link to="IMachine::state"/> is <link to="MachineState_Running"/>
8256 and above), its execution state is just what's happening now.
8257 If it is powered off (<link to="MachineState_PoweredOff"/> or
8258 <link to="MachineState_Aborted"/>), it has a zero execution state.
8259 If the machine is saved (<link to="MachineState_Saved"/>), its
8260 execution state is what saved in the execution state file
8261 (<link to="IMachine::stateFilePath"/>).
8262
8263 If the machine is in the saved state, then, next time it is powered
8264 on, its execution state will be fully restored from the saved state
8265 file and the execution will continue from the point where the state
8266 was saved.
8267
8268 Similarly to snapshots, the current machine state can be discarded
8269 using <link to="IConsole::discardCurrentState"/>.
8270
8271 <h3>Taking and discarding snapshots</h3>
8272
8273 The table below briefly explains the meaning of every snapshot
8274 operation:
8275
8276 <table>
8277 <tr><th>Operation</th><th>Meaning</th><th>Remarks</th></tr>
8278
8279 <tr><td><link to="IConsole::takeSnapshot"/></td>
8280
8281 <td>Save the current state of the virtual machine, including all
8282 settings, contents of normal hard disks and the current modifications
8283 to immutable hard disks (for online snapshots)</td>
8284
8285 <td>The current state is not changed (the machine will continue
8286 execution if it is being executed when the snapshot is
8287 taken)</td></tr>
8288
8289 <tr><td><link to="IConsole::discardSnapshot"/></td>
8290
8291 <td>Forget the state of the virtual machine stored in the snapshot:
8292 dismiss all saved settings and delete the saved execution state (for
8293 online snapshots)</td>
8294
8295 <td>Other snapshots (including child snapshots, if any) and the
8296 current state are not directly affected</td></tr>
8297
8298 <tr><td><link to="IConsole::discardCurrentState"/></td>
8299
8300 <td>Restore the current state of the virtual machine from the state
8301 stored in the current snapshot, including all settings and hard disk
8302 contents</td>
8303
8304 <td>The current state of the machine existed prior to this operation
8305 is lost</td></tr>
8306
8307 <tr><td><link to="IConsole::discardCurrentSnapshotAndState"/></td>
8308
8309 <td>Completely revert the virtual machine to the state it was in
8310 before the current snapshot has been taken</td>
8311
8312 <td>The current state, as well as the current snapshot, are
8313 lost</td></tr>
8314
8315 </table>
8316
8317 </desc>
8318
8319 <attribute name="id" type="wstring" readonly="yes">
8320 <desc>UUID of the snapshot.</desc>
8321 </attribute>
8322
8323 <attribute name="name" type="wstring">
8324 <desc>Short name of the snapshot.</desc>
8325 </attribute>
8326
8327 <attribute name="description" type="wstring">
8328 <desc>Optional description of the snapshot.</desc>
8329 </attribute>
8330
8331 <attribute name="timeStamp" type="long long" readonly="yes">
8332 <desc>
8333 Time stamp of the snapshot, in milliseconds since 1970-01-01 UTC.
8334 </desc>
8335 </attribute>
8336
8337 <attribute name="online" type="boolean" readonly="yes">
8338 <desc>
8339 @c true if this snapshot is an online snapshot and @c false otherwise.
8340
8341 <note>
8342 When this attribute is @c true, the
8343 <link to="IMachine::stateFilePath"/> attribute of the
8344 <link to="#machine"/> object associated with this snapshot
8345 will point to the saved state file. Otherwise, it will be
8346 @c null.
8347 </note>
8348 </desc>
8349 </attribute>
8350
8351 <attribute name="machine" type="IMachine" readonly="yes">
8352 <desc>
8353 Virtual machine this snapshot is taken on. This object
8354 stores all settings the machine had when taking this snapshot.
8355 <note>
8356 The returned machine object is immutable, i.e. no
8357 any settings can be changed.
8358 </note>
8359 </desc>
8360 </attribute>
8361
8362 <attribute name="parent" type="ISnapshot" readonly="yes">
8363 <desc>
8364 Parent snapshot (a snapshot this one is based on).
8365 <note>
8366 It's not an error to read this attribute on a snapshot
8367 that doesn't have a parent -- a @c null object will be
8368 returned to indicate this.
8369 </note>
8370 </desc>
8371 </attribute>
8372
8373 <attribute name="children" type="ISnapshot" readonly="yes" safearray="yes">
8374 <desc>
8375 Child snapshots (all snapshots having this one as a parent).
8376 <note>
8377 In the current implementation, there can be only one
8378 child snapshot, or no children at all, meaning this is the
8379 last (head) snapshot.
8380 </note>
8381 </desc>
8382 </attribute>
8383
8384 </interface>
8385
8386
8387 <!--
8388 // IMedia
8389 /////////////////////////////////////////////////////////////////////////
8390 -->
8391
8392 <enum
8393 name="MediaState"
8394 uuid="8b86e03c-2f1c-412a-8fbd-326f62701200"
8395 >
8396 <desc>
8397 Virtual media state.
8398 <see>IMedia</see>
8399 </desc>
8400
8401 <const name="NotCreated" value="0">
8402 <desc>
8403 Associated media storage does not exist (either was not created yet or
8404 was deleted).
8405 </desc>
8406 </const>
8407 <const name="Created" value="1">
8408 <desc>
8409 Associated storage exists and accessible.
8410 </desc>
8411 </const>
8412 <const name="LockedRead" value="2">
8413 <desc>
8414 Media is locked for reading, no data modification is possible.
8415 </desc>
8416 </const>
8417 <const name="LockedWrite" value="3">
8418 <desc>
8419 Media is locked for writing, no concurrent data reading or modification
8420 is possible.
8421 </desc>
8422 </const>
8423 <const name="Inaccessible" value="4">
8424 <desc>
8425 Associated media storage is not accessible.
8426 </desc>
8427 </const>
8428 <const name="Creating" value="5">
8429 <desc>
8430 Associated media storage is being created.
8431 </desc>
8432 </const>
8433 <const name="Deleting" value="6">
8434 <desc>
8435 Associated media storage is being deleted.
8436 </desc>
8437 </const>
8438 </enum>
8439
8440 <interface
8441 name="IMedium" extends="$unknown"
8442 uuid="f585787c-7728-40f6-853a-13705426e936"
8443 wsmap="managed"
8444 >
8445 <desc>
8446 The IMedium interface is a common interface for all objects representing
8447 virtual media such as hard disks, CD/DVD images and floppy images.
8448
8449 Each medium is associated with a storage unit (such as a file on the host
8450 computer or a network resource) that holds actual data. The location of
8451 the storage unit is represented by the #location attribute. The value of
8452 this attribute is media type dependent.
8453
8454 The exact media type may be determined by querying the appropriate
8455 interface such as:
8456 <ul>
8457 <li><link to="IHardDisk" /> (virtual hard disks)</li>
8458 <li><link to="IDVDImage" /> (standard CD/DVD ISO image files)</li>
8459 <li><link to="IFloppyImage" /> (raw floppy image files)</li>
8460 </ul>
8461
8462 Existing media are opened using the following methods, depending on the
8463 media type:
8464 <ul>
8465 <li><link to="IVirtualBox::openHardDisk"/></li>
8466 <li><link to="IVirtualBox::openDVDImage"/></li>
8467 <li><link to="IVirtualBox::openFloppyImage"/></li>
8468 </ul>
8469
8470 New hard disk media are created using the
8471 <link to="IVirtualBox::createHardDisk"/> method. CD/DVD and floppy
8472 images are created outside VirtualBox, usually by storing a copy
8473 of the real medium of the corresponding type in a regular file.
8474
8475 <h3>Known Media</h3>
8476
8477 When an existing medium gets opened for the first time, it gets
8478 automatically remembered by the given VirtualBox installation or, in other
8479 words, becomes a <i>known medium</i>. Known media are stored in the media
8480 registry transparently maintained by VirtualBox and stored in settings
8481 files so that this registry is preserved when VirtualBox is not running.
8482
8483 Newly created virtual hard disks get remembered only when the associated
8484 storage unit is actually created (see IHardDisk for more details).
8485
8486 All known media can be enumerated using
8487 <link to="IVirtualBox::hardDisks"/>,
8488 <link to="IVirtualBox::DVDImages"/> and
8489 <link to="IVirtualBox::floppyImages"/> attributes. Individual media can be
8490 quickly found by UUID using <link to="IVirtualBox::getHardDisk"/>
8491 and similar methods or by location using
8492 <link to="IVirtualBox::findHardDisk"/> and similar methods.
8493
8494 Only known media can be attached to virtual machines.
8495
8496 Removing known media from the media registry is performed when the given
8497 medium is closed using the <link to="#close"/> method or when its
8498 associated storage unit is deleted (only for hard disks).
8499
8500 <h3>Accessibility Checks</h3>
8501
8502 The given medium (with the created storage unit) is considered to be
8503 <i>accessible</i> when its storage unit can be read.
8504 Accessible media are indicated by the <link to="MediaState_Created"/>
8505 value of the <link to="#state"/> attribute. When the storage unit cannot
8506 be read (for example, because it is located on a disconnected network
8507 resource, or was accidentally deleted outside VirtualBox), the medium is
8508 considered to be <i>inaccessible</i> which is indicated by the
8509 <link to="MediaState_Inaccessible"/> state. The details about the reason
8510 of being inaccessible can be obtained using the
8511 <link to="#lastAccessError"/> attribute.
8512
8513 A new accessibility check is performed each time the <link to="#state"/>
8514 attribute is read. Please note that this check may take long time (several
8515 seconds or even minutes, depending on the storage unit location and
8516 format), and will block the calling thread until finished. For this
8517 reason, it is recommended to never read this attribute on the main UI
8518 thread to avoid making the UI unresponsive.
8519
8520 Note that when VirtualBox starts up (e.g. the VirtualBox object gets
8521 created for the first time), all known media are in the
8522 <link to="MediaState_Inaccessible"/> state but the value of the <link
8523 to="#lastAccessError"/> attribute is @c null because no actual
8524 accessibility check is made on startup. This is done to make the
8525 VirtualBox object ready for serving requests as
8526 fast as possible and let the end-user application decide if it needs to
8527 check media accessibility right away or not.
8528 </desc>
8529
8530 <attribute name="id" type="wstring" readonly="yes">
8531 <desc>
8532 UUID of the medium. For a newly created medium, this value is a randomly
8533 generated UUID.
8534
8535 <note>
8536 For media in one of MediaState_NotCreated, MediaState_Creating or
8537 MediaState_Deleting states, the value of this property is undefined
8538 and will most likely be an empty UUID.
8539 </note>
8540 </desc>
8541 </attribute>
8542
8543 <attribute name="description" type="wstring">
8544 <desc>
8545 Optional description of the medium. For newly created media, the value
8546 of this attribute value is @c null.
8547
8548 Media types that don't support this attribute will return E_NOTIMPL in
8549 attempt to get or set this attribute's value.
8550
8551 <note>
8552 For some storage types, reading this attribute may return an outdated
8553 (last known) value when <link to="#state"/> is <link
8554 to="MediaState_Inaccessible"/> or <link
8555 to="MediaState_LockedWrite"/> because the value of this attribute is
8556 stored within the storage unit itself. Also note that changing the
8557 attribute value is not possible in such case, as well as when the
8558 medium is the <link to="MediaState_LockedRead"/> state.
8559 </note>
8560 </desc>
8561 </attribute>
8562
8563 <attribute name="state" type="MediaState" readonly="yes">
8564 <desc>
8565 Current media state. Inspect <link to="MediaState"/> values for details.
8566
8567 Reading this attribute may take a long time because an accessibility
8568 check of the storage unit is performed each time the attribute is read.
8569 This check may cause a significant delay if the storage unit of the
8570 given medium is, for example, a file located on a network share which is
8571 not currently accessible due to connectivity problems -- the call will
8572 not return until a timeout interval defined by the host OS for this
8573 operation expires.
8574
8575 If the last known state of the medium is <link to="MediaState_Created"/>
8576 and the accessibility check fails then the state would be set to
8577 <link to="MediaState_Inaccessible"/> and <link to="#lastAccessError"/>
8578 may be used to get more details about the failure. If the state of the
8579 medium is <link to="MediaState_LockedRead"/> or
8580 <link to="MediaState_LockedWrite"/> then it remains the same, and a
8581 non-@c null value of <link to="#lastAccessError"/> will indicate a failed
8582 accessibility check in this case.
8583
8584 Note that not all media states are applicable to all media types.
8585 For example, states <link to="MediaState_NotCreated"/>,
8586 <link to="MediaState_LockedWrite"/>, <link to="MediaState_Creating"/>,
8587 <link to="MediaState_Deleting"/> are meaningless for IDVDImage and
8588 IFloppyImage media.
8589 </desc>
8590 </attribute>
8591
8592 <attribute name="location" type="wstring">
8593 <desc>
8594 Location of the storage unit holding media data.
8595
8596 The format of the location string is media type specific. For media
8597 types using regular files in a host's file system, the location
8598 string is the full file name.
8599
8600 Some media types may support changing the storage unit location by
8601 simply changing the value of this property. If this operation is not
8602 supported, the implementation will return E_NOTIMPL in attempt to set
8603 this attribute's value.
8604
8605 When setting a value of the location attribute which is a regular file
8606 in the host's file system, the given file name may be either relative to
8607 the <link to="IVirtualBox::homeFolder">VirtualBox home folder</link> or
8608 absolute. Note that if the given location specification does not contain
8609 the file extension part then a proper default extension will be
8610 automatically appended by the implementation depending on the media type.
8611 </desc>
8612 </attribute>
8613
8614 <attribute name="name" type="wstring" readonly="yes">
8615 <desc>
8616 Name of the storage unit holding media data.
8617
8618 The returned string is a short version of the <link to="#location"/>
8619 attribute that is suitable for representing the medium in situations
8620 where the full location specification is too long (such as lists
8621 and comboboxes in GUI frontends). This string is also used by frontends
8622 to sort the media list alphabetically when needed.
8623
8624 For example, for locations that are regular files in the host's file
8625 system, the value of this attribute is just the file name (+ extension),
8626 without the path specification.
8627
8628 Note that as opposed to the <link to="#location"/> attribute, the name
8629 attribute will not necessary be unique for a list of media of the
8630 given type and format.
8631 </desc>
8632 </attribute>
8633
8634 <attribute name="size" type="unsigned long long" readonly="yes">
8635 <desc>
8636 Physical size of the storage unit used to hold media data (in bytes).
8637
8638 <note>
8639 For media whose <link to="#state"/> is <link
8640 to="MediaState_Inaccessible"/>, the value of this property is the
8641 last known size. For <link to="MediaState_NotCreated"/> media,
8642 the returned value is zero.
8643 </note>
8644 </desc>
8645 </attribute>
8646
8647 <attribute name="lastAccessError" type="wstring" readonly="yes">
8648 <desc>
8649 Text message that represents the result of the last accessibility
8650 check.
8651
8652 Accessibility checks are performed each time the <link to="#state"/>
8653 attribute is read. A @c null string is returned if the last
8654 accessibility check was successful. A non-@c null string indicates a
8655 failure and should normally describe a reason of the failure (for
8656 example, a file read error).
8657 </desc>
8658 </attribute>
8659
8660 <attribute name="machineIds" type="wstring" safearray="yes" readonly="yes">
8661 <desc>
8662 Array of UUIDs of all machines this medium is attached to.
8663
8664 A @c null array is returned if this medium is not attached to any
8665 machine or to any machine's snapshot.
8666
8667 <note>
8668 The returned array will include a machine even if this medium is not
8669 attached to that machine in the current state but attached to it in
8670 one of the machine's snapshots. See <link to="#getSnapshotIds"/> for
8671 details.
8672 </note>
8673 </desc>
8674 </attribute>
8675
8676 <method name="getSnapshotIds">
8677 <desc>
8678 Returns an array of UUIDs of all snapshots of the given machine where
8679 this medium is attached to.
8680
8681 If the medium is attached to the machine in the current state, then the
8682 first element in the array will always be the ID of the queried machine
8683 (i.e. the value equal to the @c machineId argument), followed by
8684 snapshot IDs (if any).
8685
8686 If the medium is not attached to the machine in the current state, then
8687 the array will contain only snapshot IDs.
8688
8689 The returned array may be @c null if this medium is not attached
8690 to the given machine at all, neither in the current state nor in one of
8691 the snapshots.
8692 </desc>
8693 <param name="machineId" type="wstring" dir="in">
8694 <desc>
8695 UUID of the machine to query.
8696 </desc>
8697 </param>
8698 <param name="snapshotIds" type="wstring" safearray="yes" dir="return">
8699 <desc>
8700 Array of snapshot UUIDs of the given machine using this medium.
8701 </desc>
8702 </param>
8703 </method>
8704
8705 <method name="lockRead">
8706 <desc>
8707 Locks this medium for reading.
8708
8709 The read lock is shared: many clients can simultaneously lock the
8710 same media for reading unless it is already locked for writing (see
8711 <link to="#lockWrite"/>) in which case an error is returned.
8712
8713 When the medium is locked for reading, it cannot be modified
8714 from within VirtualBox. This means that any method that changes
8715 the properties of this medium or contents of the storage unit
8716 will return an error (unless explicitly stated otherwise) and
8717 that an attempt to start a virtual machine that wants to modify
8718 the medium will also fail.
8719
8720 When the virtual machine is started up, it locks for reading all
8721 media it uses in read-only mode. If some media cannot be locked
8722 for reading, the startup procedure will fail.
8723
8724 The medium locked for reading must be unlocked using the <link
8725 to="#unlockRead"/> method. Calls to <link to="#lockRead"/>
8726 can be nested and must be followed by the same number of paired
8727 <link to="#unlockRead"/> calls.
8728
8729 This method sets the media state to <link
8730 to="MediaState_LockedRead" /> on success. The state prior to
8731 this call must be <link to="MediaState_Created" />,
8732 <link to="MediaState_Inaccessible" /> or
8733 <link to="MediaState_LockedRead" />.
8734 As you can see, inaccessible media can be locked too. This is
8735 not an error; this method performs a logical lock that prevents
8736 modifications of this media through the VirtualBox API, not a
8737 physical lock of the underlying storage unit.
8738
8739 This method returns the current state of the medium
8740 <b>before</b> the operation.
8741
8742 <result name="VBOX_E_INVALID_OBJECT_STATE">
8743 Invalid media state (e.g. not created, locked, inaccessible,
8744 creating, deleting).
8745 </result>
8746
8747 </desc>
8748 <param name="state" type="MediaState" dir="return">
8749 <desc>
8750 State of the medium after the operation.
8751 </desc>
8752 </param>
8753 </method>
8754
8755 <method name="unlockRead">
8756 <desc>
8757 Cancels the read lock previously set by <link to="#lockRead"/>.
8758
8759 For both, success and failure, this method returns the current state
8760 of the medium <b>after</b> the operation.
8761
8762 See <link to="#lockRead"/> for more details.
8763
8764 <result name="VBOX_E_INVALID_OBJECT_STATE">
8765 Medium not locked for reading.
8766 </result>
8767
8768 </desc>
8769 <param name="state" type="MediaState" dir="return">
8770 <desc>
8771 State of the medium after the operation.
8772 </desc>
8773 </param>
8774 </method>
8775
8776 <method name="lockWrite">
8777 <desc>
8778 Locks this medium for writing.
8779
8780 The write lock, as opposed to <link to="#lockRead"/>, is
8781 exclusive: there may be only one client holding a write lock
8782 and there may be no read locks while the write lock is held.
8783
8784 When the medium is locked for writing, it cannot be modified
8785 from within VirtualBox and it is not guaranteed that the values
8786 of its properties are up-to-date. Any method that changes the
8787 properties of this medium or contents of the storage unit will
8788 return an error (unless explicitly stated otherwise) and an
8789 attempt to start a virtual machine wanting to modify or to
8790 read the medium will fail.
8791
8792 When the virtual machine is started up, it locks for writing all
8793 media it uses to write data to. If any medium could not be locked
8794 for writing, the startup procedure will fail.
8795
8796 The medium locked for writing must be unlocked using the <link
8797 to="#unlockWrite"/> method. Calls to <link to="#lockWrite"/>
8798 can <b>not</b> be nested and must be followed by a<link
8799 to="#unlockWrite"/> call before the next lockWrite call.
8800
8801 This method sets the media state to <link to="MediaState_LockedWrite" />
8802 on success. The state prior to this call must be <link to="MediaState_Created"/>
8803 or <link to="MediaState_Inaccessible"/>. As you can see, inaccessible
8804 media can be locked too. This is not an error; this method
8805 performs a logical lock preventing modifications of this
8806 media through the VirtualBox API, not a physical lock of the
8807 underlying storage unit.
8808
8809 For both, success and failure, this method returns the current
8810 state of the medium <b>before</b> the operation.
8811
8812 <result name="VBOX_E_INVALID_OBJECT_STATE">
8813 Invalid media state (e.g. not created, locked, inaccessible,
8814 creating, deleting).
8815 </result>
8816
8817 </desc>
8818 <param name="state" type="MediaState" dir="return">
8819 <desc>
8820 State of the medium after the operation.
8821 </desc>
8822 </param>
8823 </method>
8824
8825 <method name="unlockWrite">
8826 <desc>
8827 Cancels the write lock previously set by <link to="#lockWrite"/>.
8828
8829 For both, success and failure, this method returns the current
8830 state of the medium <b>after</b> the operation.
8831
8832 See <link to="#lockWrite"/> for more details.
8833
8834 <result name="VBOX_E_INVALID_OBJECT_STATE">
8835 Medium not locked for writing.
8836 </result>
8837
8838 </desc>
8839 <param name="state" type="MediaState" dir="return">
8840 <desc>
8841 State of the medium after the operation.
8842 </desc>
8843 </param>
8844 </method>
8845
8846 <method name="close">
8847 <desc>
8848 Closes this medium.
8849
8850 The hard disk must not be attached to any known virtual machine
8851 and must not have any known child hard disks, otherwise the
8852 operation will fail.
8853
8854 When the hard disk is successfully closed, it gets removed from
8855 the list of remembered hard disks, but its storage unit is not
8856 deleted. In particular, this means that this hard disk can be
8857 later opened again using the <link
8858 to="IVirtualBox::openHardDisk"/> call.
8859
8860 Note that after this method successfully returns, the given hard
8861 disk object becomes uninitialized. This means that any attempt
8862 to call any of its methods or attributes will fail with the
8863 <tt>"Object not ready" (E_ACCESSDENIED)</tt> error.
8864
8865 <result name="VBOX_E_INVALID_OBJECT_STATE">
8866 Invalid media state (other than not created, created or
8867 inaccessible).
8868 </result>
8869 <result name="VBOX_E_OBJECT_IN_USE">
8870 Medium attached to virtual machine.
8871 </result>
8872 <result name="VBOX_E_FILE_ERROR">
8873 Settings file not accessible.
8874 </result>
8875 <result name="VBOX_E_XML_ERROR">
8876 Could not parse the settings file.
8877 </result>
8878
8879 </desc>
8880 </method>
8881
8882 </interface>
8883
8884
8885 <!--
8886 // IHardDisk
8887 /////////////////////////////////////////////////////////////////////////
8888 -->
8889
8890 <enum
8891 name="HardDiskType"
8892 uuid="a348fafd-a64e-4643-ba65-eb3896bd7e0a"
8893 >
8894 <desc>
8895 Virtual hard disk type.
8896 <see>IHardDisk</see>
8897 </desc>
8898
8899 <const name="Normal" value="0">
8900 <desc>
8901 Normal hard disk (attached directly or indirectly, preserved
8902 when taking snapshots).
8903 </desc>
8904 </const>
8905 <const name="Immutable" value="1">
8906 <desc>
8907 Immutable hard disk (attached indirectly, changes are wiped out
8908 after powering off the virtual machine).
8909 </desc>
8910 </const>
8911 <const name="Writethrough" value="2">
8912 <desc>
8913 Write through hard disk (attached directly, ignored when
8914 taking snapshots).
8915 </desc>
8916 </const>
8917 </enum>
8918
8919 <enum
8920 name="HardDiskVariant"
8921 uuid="eb7fc6b3-ae23-4c5d-a1f6-e3522dd1efb0"
8922 >
8923 <desc>
8924 Virtual hard disk image variant. More than one flag may be set.
8925 <see>IHardDisk</see>
8926 </desc>
8927
8928 <const name="Standard" value="0">
8929 <desc>
8930 No particular variant requested, results in using the backend default.
8931 </desc>
8932 </const>
8933 <const name="VmdkSplit2G" value="0x01">
8934 <desc>
8935 VMDK image split in chunks of less than 2GByte.
8936 </desc>
8937 </const>
8938 <const name="VmdkStreamOptimized" value="0x04">
8939 <desc>
8940 VMDK streamOptimized image. Special import/export format which is
8941 read-only/append-only.
8942 </desc>
8943 </const>
8944 <const name="VmdkESX" value="0x08">
8945 <desc>
8946 VMDK format variant used on ESX products.
8947 </desc>
8948 </const>
8949 <const name="Fixed" value="0x10000">
8950 <desc>
8951 Fixed image. Only allowed for base images.
8952 </desc>
8953 </const>
8954 <const name="Diff" value="0x20000">
8955 <desc>
8956 Fixed image. Only allowed for base images.
8957 </desc>
8958 </const>
8959 </enum>
8960
8961 <interface
8962 name="IHardDiskAttachment" extends="$unknown"
8963 uuid="b1dd04bb-93c0-4ad3-a9cf-82316e595836"
8964 wsmap="struct"
8965 >
8966 <desc>
8967 The IHardDiskAttachment interface represents a hard disk attachment of a
8968 virtual machine.
8969
8970 Every hard disk attachment specifies a slot of the virtual hard disk
8971 controller and a virtual hard disk attached to this slot.
8972
8973 The array of hard disk attachments is returned by
8974 <link to="IMachine::hardDiskAttachments"/>.
8975 </desc>
8976 <attribute name="hardDisk" type="IHardDisk" readonly="yes">
8977 <desc>Hard disk object associated with this attachment.</desc>
8978 </attribute>
8979
8980 <attribute name="controller" type="wstring" readonly="yes">
8981 <desc>Interface bus of this attachment.</desc>
8982 </attribute>
8983
8984 <attribute name="port" type="long" readonly="yes">
8985 <desc>Port number of this attachment.</desc>
8986 </attribute>
8987
8988 <attribute name="device" type="long" readonly="yes">
8989 <desc>Device slot number of this attachment.</desc>
8990 </attribute>
8991
8992 </interface>
8993
8994 <interface
8995 name="IHardDisk" extends="IMedium"
8996 uuid="62551115-83b8-4d20-925f-79e9d3c00f96"
8997 wsmap="managed"
8998 >
8999 <desc>
9000 The IHardDisk interface represents a virtual hard disk drive
9001 used by a virtual machine. This is a subclass of <link to="IMedium" />; see remarks there.
9002
9003 <h3>Hard Disk Types</h3>
9004
9005 There are three types of hard disks:
9006 <link to="HardDiskType_Normal">Normal</link>,
9007 <link to="HardDiskType_Immutable">Immutable</link> and
9008 <link to="HardDiskType_Writethrough">Writethrough</link>. The type of the
9009 hard disk defines how the hard disk is attached to a virtual machine and
9010 what happens when a <link to="ISnapshot">snapshot</link> of the virtual
9011 machine with the attached hard disk is taken. The type of the hard disk is
9012 defined by the <link to="#type"/> attribute.
9013
9014 All hard disks can be also divided in two groups: <i>base</i> hard
9015 disks and <i>differencing</i> hard disks. A base hard disk contains all
9016 sectors of the hard disk data in its own storage and therefore can be
9017 used independently. On the contrary, a differencing hard disk is a
9018 "delta" to some other disk and contains only those sectors which differ
9019 from that other disk, which is then called a <i>parent</i>. The differencing
9020 hard disk is said to be <i>linked to</i> that parent.
9021 The parent may be itself a differencing image, thus forming a chain of
9022 linked hard disks. The last element in that chain (sometimes referred to as
9023 the root hard disk) must always be a base. Note that several differencing
9024 hard disks may be linked to the same parent hard disk.
9025
9026 Differencing hard disks can be distinguished from base hard disks by
9027 querying the <link to="#parent"/> attribute: base hard disks do not have
9028 parents they would depend on, so the value of this attribute is always
9029 @c null for them. Using this attribute, it is possible to walk up
9030 the hard disk tree (from the child hard disk to its parent). It is also
9031 possible to walk down the tree using the <link to="#children"/>
9032 attribute.
9033
9034 Note that the type of all differencing hard disks is
9035 <link to="HardDiskType_Normal" />; all other values are
9036 meaningless for them. Base hard disks may be of any type.
9037
9038 <h3>Creating Hard Disks</h3>
9039
9040 New base hard disks are created using
9041 <link to="IVirtualBox::createHardDisk"/>. Existing hard disks are
9042 opened using <link to="IVirtualBox::openHardDisk"/>. Differencing hard
9043 disks are usually implicitly created by VirtualBox when needed but may
9044 also be created explicitly using <link to="#createDiffStorage"/>.
9045
9046 After the hard disk is successfully created (including the storage unit)
9047 or opened, it becomes a known hard disk (remembered in the internal media
9048 registry). Known hard disks can be attached to a virtual machine, accessed
9049 through <link to="IVirtualBox::getHardDisk"/> and
9050 <link to="IVirtualBox::findHardDisk"/> methods or enumerated using the
9051 <link to="IVirtualBox::hardDisks"/> array (only for base hard disks).
9052
9053 The following methods, besides <link to="IMedium::close"/>,
9054 automatically remove the hard disk from the media registry:
9055 <ul>
9056 <li><link to="#deleteStorage"/></li>
9057 <li><link to="#mergeTo"/></li>
9058 </ul>
9059
9060 If the storage unit of the hard disk is a regular file in the host's
9061 file system then the rules stated in the description of the
9062 <link to="IMedium::location"/> attribute apply when setting its value. In
9063 addition, a plain file name without any path may be given, in which case
9064 the <link to="ISystemProperties::defaultHardDiskFolder"> default hard disk
9065 folder</link> will be prepended to it.
9066
9067 <h4>Automatic composition of the file name part</h4>
9068
9069 Another extension to the <link to="IMedium::location"/> attribute is that
9070 there is a possibility to cause VirtualBox to compose a unique value for
9071 the file name part of the location using the UUID of the hard disk. This
9072 applies only to hard disks in <link to="MediaState_NotCreated"/> state,
9073 e.g. before the storage unit is created, and works as follows. You set the
9074 value of the <link to="IMedium::location"/> attribute to a location
9075 specification which only contains the path specification but not the file
9076 name part and ends with either a forward slash or a backslash character.
9077 In response, VirtualBox will generate a new UUID for the hard disk and
9078 compose the file name using the following pattern:
9079 <pre>
9080 &lt;path&gt;/{&lt;uuid&gt;}.&lt;ext&gt;
9081 </pre>
9082 where <tt>&lt;path&gt;</tt> is the supplied path specification,
9083 <tt>&lt;uuid&gt;</tt> is the newly generated UUID and <tt>&lt;ext&gt;</tt>
9084 is the default extension for the storage format of this hard disk. After
9085 that, you may call any of the methods that create a new hard disk storage
9086 unit and they will use the generated UUID and file name.
9087
9088 <h3>Attaching Hard Disks</h3>
9089
9090 Hard disks are attached to virtual machines using the
9091 <link to="IMachine::attachHardDisk"/> method and detached using the
9092 <link to="IMachine::detachHardDisk"/> method. Depending on their
9093 <link to="#type"/>, hard disks are attached either
9094 <i>directly</i> or <i>indirectly</i>.
9095
9096 When a hard disk is being attached directly, it is associated with the
9097 virtual machine and used for hard disk operations when the machine is
9098 running. When a hard disk is being attached indirectly, a new differencing
9099 hard disk linked to it is implicitly created and this differencing hard
9100 disk is associated with the machine and used for hard disk operations.
9101 This also means that if <link to="IMachine::attachHardDisk"/> performs
9102 a direct attachment then the same hard disk will be returned in response
9103 to the subsequent <link to="IMachine::getHardDisk"/> call; however if
9104 an indirect attachment is performed then
9105 <link to="IMachine::getHardDisk"/> will return the implicitly created
9106 differencing hard disk, not the original one passed to <link
9107 to="IMachine::attachHardDisk"/>. The following table shows the
9108 dependency of the attachment type on the hard disk type:
9109
9110 <table>
9111 <tr>
9112 <th>Hard Disk Type</th>
9113 <th>Direct or Indirect?</th>
9114 </tr>
9115 <tr>
9116 <td>Normal (Base)</td>
9117 <td>
9118 Normal base hard disks that do not have children (i.e. differencing
9119 hard disks linked to them) and that are not already attached to
9120 virtual machines in snapshots are attached <b>directly</b>.
9121 Otherwise, they are attached <b>indirectly</b> because having
9122 dependent children or being part of the snapshot makes it impossible
9123 to modify hard disk contents without breaking the integrity of the
9124 dependent party. The <link to="#readOnly"/> attribute allows to
9125 quickly determine the kind of the attachment for the given hard
9126 disk. Note that if a normal base hard disk is to be indirectly
9127 attached to a virtual machine with snapshots then a special
9128 procedure called <i>smart attachment</i> is performed (see below).
9129 </td>
9130 </tr>
9131 <tr>
9132 <td>Normal (Differencing)</td>
9133 <td>
9134 Differencing hard disks are like normal base hard disks: attached
9135 <b>directly</b> if they do not have children and are not attached to
9136 virtual machines in snapshots, and <b>indirectly</b> otherwise. Note
9137 that the smart attachment procedure is never performed for
9138 differencing hard disks.
9139 </td>
9140 </tr>
9141 <tr>
9142 <td>Immutable</td>
9143 <td>
9144 Immutable hard disks are always attached <b>indirectly</b> because
9145 they are designed to be non-writable. If an immutable hard disk is
9146 attached to a virtual machine with snapshots then a special
9147 procedure called smart attachment is performed (see below).
9148 </td>
9149 </tr>
9150 <tr>
9151 <td>Writethrough</td>
9152 <td>
9153 Writethrough hard disks are always attached <b>directly</b>, also as
9154 designed. This also means that writethrough hard disks cannot have
9155 other hard disks linked to them at all.
9156 </td>
9157 </tr>
9158 </table>
9159
9160 Note that the same hard disk, regardless of its type, may be attached to
9161 more than one virtual machine at a time. In this case, the machine that is
9162 started first gains exclusive access to the hard disk and attempts to
9163 start other machines having this hard disk attached will fail until the
9164 first machine is powered down.
9165
9166 Detaching hard disks is performed in a <i>deferred</i> fashion. This means
9167 that the given hard disk remains associated with the given machine after a
9168 successful <link to="IMachine::detachHardDisk"/> call until
9169 <link to="IMachine::saveSettings"/> is called to save all changes to
9170 machine settings to disk. This deferring is necessary to guarantee that
9171 the hard disk configuration may be restored at any time by a call to
9172 <link to="IMachine::discardSettings"/> before the settings
9173 are saved (committed).
9174
9175 Note that if <link to="IMachine::discardSettings"/> is called after
9176 indirectly attaching some hard disks to the machine but before a call to
9177 <link to="IMachine::saveSettings"/> is made, it will implicitly delete
9178 all differencing hard disks implicitly created by
9179 <link to="IMachine::attachHardDisk"/> for these indirect attachments.
9180 Such implicitly created hard disks will also be immediately deleted when
9181 detached explicitly using the <link to="IMachine::detachHardDisk"/>
9182 call if it is made before <link to="IMachine::saveSettings"/>. This
9183 implicit deletion is safe because newly created differencing hard
9184 disks do not contain any user data.
9185
9186 However, keep in mind that detaching differencing hard disks that were
9187 implicitly created by <link to="IMachine::attachHardDisk"/>
9188 before the last <link to="IMachine::saveSettings"/> call will
9189 <b>not</b> implicitly delete them as they may already contain some data
9190 (for example, as a result of virtual machine execution). If these hard
9191 disks are no more necessary, the caller can always delete them explicitly
9192 using <link to="#deleteStorage"/> after they are actually de-associated
9193 from this machine by the <link to="IMachine::saveSettings"/> call.
9194
9195 <h3>Smart Attachment</h3>
9196
9197 When normal base or immutable hard disks are indirectly attached to a
9198 virtual machine then some additional steps are performed to make sure the
9199 virtual machine will have the most recent "view" of the hard disk being
9200 attached. These steps include walking through the machine's snapshots
9201 starting from the current one and going through ancestors up to the first
9202 snapshot. Hard disks attached to the virtual machine in all
9203 of the encountered snapshots are checked whether they are descendants of
9204 the given normal base or immutable hard disk. The first found child (which
9205 is the differencing hard disk) will be used instead of the normal base or
9206 immutable hard disk as a parent for creating a new differencing hard disk
9207 that will be actually attached to the machine. And only if no descendants
9208 are found or if the virtual machine does not have any snapshots then the
9209 normal base or immutable hard disk will be used itself as a parent for
9210 this differencing hard disk.
9211
9212 It is easier to explain what smart attachment does using the
9213 following example:
9214 <pre>
9215BEFORE attaching B.vdi: AFTER attaching B.vdi:
9216
9217Snapshot 1 (B.vdi) Snapshot 1 (B.vdi)
9218 Snapshot 2 (D1->B.vdi) Snapshot 2 (D1->B.vdi)
9219 Snapshot 3 (D2->D1.vdi) Snapshot 3 (D2->D1.vdi)
9220 Snapshot 4 (none) Snapshot 4 (none)
9221 CurState (none) CurState (D3->D2.vdi)
9222
9223 NOT
9224 ...
9225 CurState (D3->B.vdi)
9226 </pre>
9227 The first column is the virtual machine configuration before the base hard
9228 disk <tt>B.vdi</tt> is attached, the second column shows the machine after
9229 this hard disk is attached. Constructs like <tt>D1->B.vdi</tt> and similar
9230 mean that the hard disk that is actually attached to the machine is a
9231 differencing hard disk, <tt>D1.vdi</tt>, which is linked to (based on)
9232 another hard disk, <tt>B.vdi</tt>.
9233
9234 As we can see from the example, the hard disk <tt>B.vdi</tt> was detached
9235 from the machine before taking Snapshot 4. Later, after Snapshot 4 was
9236 taken, the user decides to attach <tt>B.vdi</tt> again. <tt>B.vdi</tt> has
9237 dependent child hard disks (<tt>D1.vdi</tt>, <tt>D2.vdi</tt>), therefore
9238 it cannot be attached directly and needs an indirect attachment (i.e.
9239 implicit creation of a new differencing hard disk). Due to the smart
9240 attachment procedure, the new differencing hard disk
9241 (<tt>D3.vdi</tt>) will be based on <tt>D2.vdi</tt>, not on
9242 <tt>B.vdi</tt> itself, since <tt>D2.vdi</tt> is the most recent view of
9243 <tt>B.vdi</tt> existing for this snapshot branch of the given virtual
9244 machine.
9245
9246 Note that if there is more than one descendant hard disk of the given base
9247 hard disk found in a snapshot, and there is an exact device, channel and
9248 bus match, then this exact match will be used. Otherwise, the youngest
9249 descendant will be picked up.
9250
9251 There is one more important aspect of the smart attachment procedure which
9252 is not related to snapshots at all. Before walking through the snapshots
9253 as described above, the backup copy of the current list of hard disk
9254 attachment is searched for descendants. This backup copy is created when
9255 the hard disk configuration is changed for the first time after the last
9256 <link to="IMachine::saveSettings"/> call and used by
9257 <link to="IMachine::discardSettings"/> to undo the recent hard disk
9258 changes. When such a descendant is found in this backup copy, it will be
9259 simply re-attached back, without creating a new differencing hard disk for
9260 it. This optimization is necessary to make it possible to re-attach the
9261 base or immutable hard disk to a different bus, channel or device slot
9262 without losing the contents of the differencing hard disk actually
9263 attached to the machine in place of it.
9264 </desc>
9265
9266 <attribute name="format" type="wstring" readonly="yes">
9267 <desc>
9268 Storage format of this hard disk.
9269
9270 The value of this attribute is a string that specifies a backend used to
9271 store hard disk data. The storage format is defined when you create a
9272 new hard disk or automatically detected when you open an existing hard
9273 disk medium, and cannot be changed later.
9274
9275 The list of all storage formats supported by this VirtualBox
9276 installation can be obtained using
9277 <link to="ISystemProperties::hardDiskFormats"/>.
9278 </desc>
9279 </attribute>
9280
9281 <attribute name="type" type="HardDiskType">
9282 <desc>
9283 Type (role) of this hard disk.
9284
9285 The following constraints apply when changing the value of this
9286 attribute:
9287 <ul>
9288 <li>If a hard disk is attached to a virtual machine (either in the
9289 current state or in one of the snapshots), its type cannot be
9290 changed.
9291 </li>
9292 <li>As long as the hard disk has children, its type cannot be set
9293 to <link to="HardDiskType_Writethrough"/>.
9294 </li>
9295 <li>The type of all differencing hard disks is
9296 <link to="HardDiskType_Normal"/> and cannot be changed.
9297 </li>
9298 </ul>
9299
9300 The type of a newly created or opened hard disk is set to
9301 <link to="HardDiskType_Normal"/>.
9302 </desc>
9303 </attribute>
9304
9305 <attribute name="parent" type="IHardDisk" readonly="yes">
9306 <desc>
9307 Parent of this hard disk (a hard disk this hard disk is directly based
9308 on).
9309
9310 Only differencing hard disks have parents. For base (non-differencing)
9311 hard disks, @c null is returned.
9312 </desc>
9313 </attribute>
9314
9315 <attribute name="children" type="IHardDisk" safearray="yes" readonly="yes">
9316 <desc>
9317 Children of this hard disk (all differencing hard disks directly based
9318 on this hard disk). A @c null array is returned if this hard disk
9319 does not have any children.
9320 </desc>
9321 </attribute>
9322
9323 <attribute name="root" type="IHardDisk" readonly="yes">
9324 <desc>
9325 Root hard disk of this hard disk.
9326
9327 If this is a differencing hard disk, its root hard disk is the base hard
9328 disk the given hard disk branch starts from. For all other types of hard
9329 disks, this property returns the hard disk object itself (i.e. the same
9330 object this property is read on).
9331 </desc>
9332 </attribute>
9333
9334 <attribute name="readOnly" type="boolean" readonly="yes">
9335 <desc>
9336 Returns @c true if this hard disk is read-only and @c false otherwise.
9337
9338 A hard disk is considered to be read-only when its contents cannot be
9339 modified without breaking the integrity of other parties that depend on
9340 this hard disk such as its child hard disks or snapshots of virtual
9341 machines where this hard disk is attached to these machines. If there
9342 are no children and no such snapshots then there is no dependency and
9343 the hard disk is not read-only.
9344
9345 The value of this attribute can be used to determine the kind of the
9346 attachment that will take place when attaching this hard disk to a
9347 virtual machine. If the value is @c false then the hard disk will
9348 be attached directly. If the value is @c true then the hard disk
9349 will be attached indirectly by creating a new differencing child hard
9350 disk for that. See the interface description for more information.
9351
9352 Note that all <link to="HardDiskType_Immutable">Immutable</link> hard
9353 disks are always read-only while all
9354 <link to="HardDiskType_Writethrough">Writethrough</link> hard disks are
9355 always not.
9356
9357 <note>
9358 The read-only condition represented by this attribute is related to
9359 the hard disk type and usage, not to the current
9360 <link to="IMedium::state">media state</link> and not to the read-only
9361 state of the storage unit.
9362 </note>
9363 </desc>
9364 </attribute>
9365
9366 <attribute name="logicalSize" type="unsigned long long" readonly="yes">
9367 <desc>
9368 Logical size of this hard disk (in megabytes), as reported to the
9369 guest OS running inside the virtual machine this disk is
9370 attached to. The logical size is defined when the hard disk is created
9371 and cannot be changed later.
9372
9373 <note>
9374 Reading this property on a differencing hard disk will return the size
9375 of its <link to="#root"/> hard disk.
9376 </note>
9377 <note>
9378 For hard disks whose state is <link to="#state"/> is <link
9379 to="MediaState_Inaccessible"/>, the value of this property is the
9380 last known logical size. For <link to="MediaState_NotCreated"/> hard
9381 disks, the returned value is zero.
9382 </note>
9383 </desc>
9384 </attribute>
9385
9386 <attribute name="autoReset" type="boolean">
9387 <desc>
9388 Whether this differencing hard disk will be automatically reset each
9389 time a virtual machine it is attached to is powered up.
9390
9391 See <link to="#reset()"/> for more information about resetting
9392 differencing hard disks.
9393
9394 <note>
9395 Reading this property on a base (non-differencing) hard disk will
9396 always @c false. Changing the value of this property in this
9397 case is not supported.
9398 </note>
9399
9400 <result name="VBOX_E_NOT_SUPPORTED">
9401 This is not a differencing hard disk (when changing the attribute
9402 value).
9403 </result>
9404 </desc>
9405 </attribute>
9406
9407 <!-- storage methods -->
9408
9409 <method name="getProperty">
9410 <desc>
9411 Returns the value of the custom hard disk property with the given name.
9412
9413 The list of all properties supported by the given hard disk format can
9414 be obtained with <link to="IHardDiskFormat::describeProperties"/>.
9415
9416 Note that if this method returns a @c null @a value, the requested
9417 property is supported but currently not assigned any value.
9418
9419 <result name="VBOX_E_OBJECT_NOT_FOUND">
9420 Requested property does not exist (not supported by the format).
9421 </result>
9422 <result name="E_INVALIDARG">@a name is @c null or empty.</result>
9423 </desc>
9424 <param name="name" type="wstring" dir="in">
9425 <desc>Name of the property to get.</desc>
9426 </param>
9427 <param name="value" type="wstring" dir="return">
9428 <desc>Current property value.</desc>
9429 </param>
9430 </method>
9431
9432 <method name="setProperty">
9433 <desc>
9434 Sets the value of the custom hard disk property with the given name.
9435
9436 The list of all properties supported by the given hard disk format can
9437 be obtained with <link to="IHardDiskFormat::describeProperties"/>.
9438
9439 Note that setting the property value to @c null is equivalent to
9440 deleting the existing value. A default value (if it is defined for this
9441 property) will be used by the format backend in this case.
9442
9443 <result name="VBOX_E_OBJECT_NOT_FOUND">
9444 Requested property does not exist (not supported by the format).
9445 </result>
9446 <result name="E_INVALIDARG">@a name is @c null or empty.</result>
9447 </desc>
9448 <param name="name" type="wstring" dir="in">
9449 <desc>Name of the property to set.</desc>
9450 </param>
9451 <param name="value" type="wstring" dir="in">
9452 <desc>Property value to set.</desc>
9453 </param>
9454 </method>
9455
9456 <method name="getProperties">
9457 <desc>
9458 Returns values for a group of properties in one call.
9459
9460 The names of the properties to get are specified using the @a names
9461 argument which is a list of comma-separated property names or
9462 @c null if all properties are to be returned. Note that currently
9463 the value of this argument is ignored and the method always returns all
9464 existing properties.
9465
9466 The list of all properties supported by the given hard disk format can
9467 be obtained with <link to="IHardDiskFormat::describeProperties"/>.
9468
9469 The method returns two arrays, the array of property names corresponding
9470 to the @a names argument and the current values of these properties.
9471 Both arrays have the same number of elements with each elemend at the
9472 given index in the first array corresponds to an element at the same
9473 index in the second array.
9474
9475 Note that for properties that do not have assigned values,
9476 @c null is returned at the appropriate index in the
9477 @a returnValues array.
9478
9479 </desc>
9480 <param name="names" type="wstring" dir="in">
9481 <desc>
9482 Names of properties to get.
9483 </desc>
9484 </param>
9485 <param name="returnNames" type="wstring" safearray="yes" dir="out">
9486 <desc>Names of returned properties.</desc>
9487 </param>
9488 <param name="returnValues" type="wstring" safearray="yes" dir="return">
9489 <desc>Values of returned properties.</desc>
9490 </param>
9491 </method>
9492
9493 <method name="setProperties">
9494 <desc>
9495 Sets values for a group of properties in one call.
9496
9497 The names of the properties to set are passed in the @a names
9498 array along with the new values for them in the @a values array. Both
9499 arrays have the same number of elements with each elemend at the given
9500 index in the first array corresponding to an element at the same index
9501 in the second array.
9502
9503 If there is at least one property name in @a names that is not valid,
9504 the method will fail before changing the values of any other properties
9505 from the @a names array.
9506
9507 Using this method over <link to="#setProperty"/> is preferred if you
9508 need to set several properties at once since it will result into less
9509 IPC calls.
9510
9511 The list of all properties supported by the given hard disk format can
9512 be obtained with <link to="IHardDiskFormat::describeProperties"/>.
9513
9514 Note that setting the property value to @c null is equivalent to
9515 deleting the existing value. A default value (if it is defined for this
9516 property) will be used by the format backend in this case.
9517 </desc>
9518 <param name="names" type="wstring" safearray="yes" dir="in">
9519 <desc>Names of properties to set.</desc>
9520 </param>
9521 <param name="values" type="wstring" safearray="yes" dir="in">
9522 <desc>Values of properties to set.</desc>
9523 </param>
9524 </method>
9525
9526 <!-- storage methods -->
9527
9528 <method name="createBaseStorage">
9529 <desc>
9530 Starts creating a hard disk storage unit (fixed/dynamic, according
9531 to the variant flags) in in the background. The previous storage unit
9532 created for this object, if any, must first be deleted using
9533 <link to="#deleteStorage"/>, otherwise the operation will fail.
9534
9535 Before the operation starts, the hard disk is placed in
9536 <link to="MediaState_Creating"/> state. If the create operation
9537 fails, the media will be placed back in <link to="MediaState_NotCreated"/>
9538 state.
9539
9540 After the returned progress object reports that the operation has
9541 successfully completed, the media state will be set to <link
9542 to="MediaState_Created"/>, the hard disk will be remembered by this
9543 VirtualBox installation and may be attached to virtual machines.
9544
9545 <result name="VBOX_E_NOT_SUPPORTED">
9546 The variant of storage creation operation is not supported. See <link
9547 to="IHardDiskFormat::capabilities"/>.
9548 </result>
9549 </desc>
9550 <param name="logicalSize" type="unsigned long long" dir="in">
9551 <desc>Maximum logical size of the hard disk in megabytes.</desc>
9552 </param>
9553 <param name="variant" type="HardDiskVariant" dir="in">
9554 <desc>Exact image variant which should be created.</desc>
9555 </param>
9556 <param name="progress" type="IProgress" dir="return">
9557 <desc>Progress object to track the operation completion.</desc>
9558 </param>
9559 </method>
9560
9561 <method name="deleteStorage">
9562 <desc>
9563 Starts deleting the storage unit of this hard disk.
9564
9565 The hard disk must not be attached to any known virtual machine and must
9566 not have any known child hard disks, otherwise the operation will fail.
9567 It will also fail if there is no storage unit to delete or if deletion
9568 is already in progress, or if the hard disk is being in use (locked for
9569 read or for write) or inaccessible. Therefore, the only valid state for
9570 this operation to succeed is <link to="MediaState_Created"/>.
9571
9572 Before the operation starts, the hard disk is placed to
9573 <link to="MediaState_Deleting"/> state and gets removed from the list
9574 of remembered hard disks (media registry). If the delete operation
9575 fails, the media will be remembered again and placed back to
9576 <link to="MediaState_Created"/> state.
9577
9578 After the returned progress object reports that the operation is
9579 complete, the media state will be set to
9580 <link to="MediaState_NotCreated"/> and you will be able to use one of
9581 the storage creation methods to create it again.
9582
9583 <see>#close()</see>
9584
9585 <result name="VBOX_E_OBJECT_IN_USE">
9586 Hard disk is attached to a virtual machine.
9587 </result>
9588 <result name="VBOX_E_NOT_SUPPORTED">
9589 Storage deletion is not allowed because neither of storage creation
9590 operations are supported. See
9591 <link to="IHardDiskFormat::capabilities"/>.
9592 </result>
9593
9594 <note>
9595 If the deletion operation fails, it is not guaranteed that the storage
9596 unit still exists. You may check the <link to="IMedium::state"/> value
9597 to answer this question.
9598 </note>
9599 </desc>
9600 <param name="progress" type="IProgress" dir="return">
9601 <desc>Progress object to track the operation completion.</desc>
9602 </param>
9603 </method>
9604
9605 <!-- diff methods -->
9606
9607 <method name="createDiffStorage">
9608 <desc>
9609 Starts creating an empty differencing storage unit based on this hard
9610 disk in the format and at the location defined by the @a target
9611 argument.
9612
9613 The target hard disk must be in <link to="MediaState_NotCreated"/>
9614 state (i.e. must not have an existing storage unit). Upon successful
9615 completion, this operation will set the type of the target hard disk to
9616 <link to="HardDiskType_Normal"/> and create a storage unit necessary to
9617 represent the differencing hard disk data in the given format (according
9618 to the storage format of the target object).
9619
9620 After the returned progress object reports that the operation is
9621 successfully complete, the target hard disk gets remembered by this
9622 VirtualBox installation and may be attached to virtual machines.
9623
9624 <note>
9625 The hard disk will be set to <link to="MediaState_LockedRead"/>
9626 state for the duration of this operation.
9627 </note>
9628 <result name="VBOX_E_OBJECT_IN_USE">
9629 Hard disk not in @c NotCreated state.
9630 </result>
9631 </desc>
9632 <param name="target" type="IHardDisk" dir="in">
9633 <desc>Target hard disk.</desc>
9634 </param>
9635 <param name="variant" type="HardDiskVariant" dir="in">
9636 <desc>Exact image variant which should be created.</desc>
9637 </param>
9638 <param name="progress" type="IProgress" dir="return">
9639 <desc>Progress object to track the operation completion.</desc>
9640 </param>
9641 </method>
9642
9643 <method name="mergeTo">
9644 <desc>
9645 Starts merging the contents of this hard disk and all intermediate
9646 differencing hard disks in the chain to the given target hard disk.
9647
9648 The target hard disk must be either a descendant of this hard disk or
9649 its ancestor (otherwise this method will immediately return a failure).
9650 It follows that there are two logical directions of the merge operation:
9651 from ancestor to descendant (<i>forward merge</i>) and from descendant to
9652 ancestor (<i>backward merge</i>). Let us consider the following hard disk
9653 chain:
9654
9655 <pre>Base &lt;- Diff_1 &lt;- Diff_2</pre>
9656
9657 Here, calling this method on the <tt>Base</tt> hard disk object with
9658 <tt>Diff_2</tt> as an argument will be a forward merge; calling it on
9659 <tt>Diff_2</tt> with <tt>Base</tt> as an argument will be a backward
9660 merge. Note that in both cases the contents of the resulting hard disk
9661 will be the same, the only difference is the hard disk object that takes
9662 the result of the merge operation. In case of the forward merge in the
9663 above example, the result will be written to <tt>Diff_2</tt>; in case of
9664 the backward merge, the result will be written to <tt>Base</tt>. In
9665 other words, the result of the operation is always stored in the target
9666 hard disk.
9667
9668 Upon successful operation completion, the storage units of all hard
9669 disks in the chain between this (source) hard disk and the target hard
9670 disk, including the source hard disk itself, will be automatically
9671 deleted and the relevant hard disk objects (including this hard disk)
9672 will become uninitialized. This means that any attempt to call any of
9673 their methods or attributes will fail with the
9674 <tt>"Object not ready" (E_ACCESSDENIED)</tt> error. Applied to the above
9675 example, the forward merge of <tt>Base</tt> to <tt>Diff_2</tt> will
9676 delete and uninitialize both <tt>Base</tt> and <tt>Diff_1</tt> hard
9677 disks. Note that <tt>Diff_2</tt> in this case will become a base hard
9678 disk itself since it will no longer be based on any other hard disk.
9679
9680 Considering the above, all of the following conditions must be met in
9681 order for the merge operation to succeed:
9682 <ul>
9683 <li>
9684 Neither this (source) hard disk nor any intermediate
9685 differencing hard disk in the chain between it and the target
9686 hard disk is attached to any virtual machine.
9687 </li>
9688 <li>
9689 Neither the source hard disk nor the target hard disk is an
9690 <link to="HardDiskType_Immutable"/> hard disk.
9691 </li>
9692 <li>
9693 The part of the hard disk tree from the source hard disk to the
9694 target hard disk is a linear chain, i.e. all hard disks in this
9695 chain have exactly one child which is the next hard disk in this
9696 chain. The only exception from this rule is the target hard disk in
9697 the forward merge operation; it is allowed to have any number of
9698 child hard disks because the merge operation will hot change its
9699 logical contents (as it is seen by the guest OS or by children).
9700 </li>
9701 <li>
9702 None of the involved hard disks are in
9703 <link to="MediaState_LockedRead"/> or
9704 <link to="MediaState_LockedWrite"/> state.
9705 </li>
9706 </ul>
9707
9708 <note>
9709 This (source) hard disk and all intermediates will be placed to <link
9710 to="MediaState_Deleting"/> state and the target hard disk will be
9711 placed to <link to="MediaState_LockedWrite"/> state and for the
9712 duration of this operation.
9713 </note>
9714 </desc>
9715 <param name="targetId" type="wstring" dir="in">
9716 <desc>UUID of the target ancestor or descendant hard disk.</desc>
9717 </param>
9718 <param name="progress" type="IProgress" dir="return">
9719 <desc>Progress object to track the operation completion.</desc>
9720 </param>
9721 </method>
9722
9723 <!-- clone method -->
9724
9725 <method name="cloneTo">
9726 <desc>
9727 Starts creating a clone of this hard disk in the format and at the
9728 location defined by the @a target argument.
9729
9730 The target hard disk must be either in <link to="MediaState_NotCreated"/>
9731 state (i.e. must not have an existing storage unit) or in
9732 <link to="MediaState_Created"/> state (i.e. created and not locked, and
9733 big enough to hold the data or else the copy will be partial). Upon
9734 successful completion, the cloned hard disk will contain exactly the
9735 same sector data as the hard disk being cloned, except that in the
9736 first case a new UUID for the clone will be randomly generated, and in
9737 the second case the UUID will remain unchanged.
9738
9739 The @a parent argument defines which hard disk will be the parent
9740 of the clone. Passing a @c null reference indicates that the clone will
9741 be a base image, i.e. completely independent. It is possible to specify
9742 an arbitrary hard disk for this parameter, including the parent of the
9743 hard disk which is being cloned. Even cloning to a child of the source
9744 hard disk is possible.
9745
9746 After the returned progress object reports that the operation is
9747 successfully complete, the target hard disk gets remembered by this
9748 VirtualBox installation and may be attached to virtual machines.
9749
9750 <note>
9751 This hard disk will be placed to <link to="MediaState_LockedRead"/>
9752 state for the duration of this operation.
9753 </note>
9754 <result name="E_NOTIMPL">
9755 The specified cloning variant is not supported at the moment.
9756 </result>
9757 </desc>
9758 <param name="target" type="IHardDisk" dir="in">
9759 <desc>Target hard disk.</desc>
9760 </param>
9761 <param name="variant" type="HardDiskVariant" dir="in">
9762 <desc>Exact image variant which should be created.</desc>
9763 </param>
9764 <param name="parent" type="IHardDisk" dir="in">
9765 <desc>Parent of the cloned hard disk.</desc>
9766 </param>
9767 <param name="progress" type="IProgress" dir="return">
9768 <desc>Progress object to track the operation completion.</desc>
9769 </param>
9770 </method>
9771
9772 <!-- other methods -->
9773
9774 <method name="compact">
9775 <desc>
9776 Starts compacting of this hard disk. This means that the disk is
9777 transformed into a possibly more compact storage representation.
9778 This potentially creates temporary images, which can require a
9779 substantial amount of additional disk space.
9780
9781 This hard disk will be placed to <link to="MediaState_LockedWrite"/>
9782 state and all its parent hard disks (if any) will be placed to
9783 <link to="MediaState_LockedRead"/> state for the duration of this
9784 operation.
9785
9786 Please note that the results can be either returned straight away,
9787 or later as the result of the background operation via the object
9788 returned via the @a progress parameter.
9789
9790 <result name="VBOX_E_NOT_SUPPORTED">
9791 Hard disk format does not support compacting (but potentially
9792 needs it).
9793 </result>
9794 </desc>
9795 <param name="progress" type="IProgress" dir="return">
9796 <desc>Progress object to track the operation completion.</desc>
9797 </param>
9798 </method>
9799
9800 <method name="reset">
9801 <desc>
9802 Starts erasing the contents of this differencing hard disk.
9803
9804 This operation will reset the differencing hard disk to its initial
9805 state when it does not contain any sector data and any read operation is
9806 redirected to its parent hard disk.
9807
9808 This hard disk will be placed to <link to="MediaState_LockedWrite"/>
9809 for the duration of this operation.
9810
9811 <result name="VBOX_E_NOT_SUPPORTED">
9812 This is not a differencing hard disk.
9813 </result>
9814 <result name="VBOX_E_INVALID_OBJECT_STATE">
9815 Hard disk is not in <link to="MediaState_Created"/> or
9816 <link to="MediaState_Inaccessible"/> state.
9817 </result>
9818 </desc>
9819 <param name="progress" type="IProgress" dir="return">
9820 <desc>Progress object to track the operation completion.</desc>
9821 </param>
9822 </method>
9823
9824 </interface>
9825
9826
9827 <!--
9828 // IHardDiskFormat
9829 /////////////////////////////////////////////////////////////////////////
9830 -->
9831
9832 <enum
9833 name="DataType"
9834 uuid="d90ea51e-a3f1-4a01-beb1-c1723c0d3ba7"
9835 >
9836 <const name="Int32" value="0"/>
9837 <const name="Int8" value="1"/>
9838 <const name="String" value="2"/>
9839 </enum>
9840
9841 <enum
9842 name="DataFlags"
9843 uuid="86884dcf-1d6b-4f1b-b4bf-f5aa44959d60"
9844 >
9845 <const name="None" value="0x00"/>
9846 <const name="Mandatory" value="0x01"/>
9847 <const name="Expert" value="0x02"/>
9848 <const name="Array" value="0x04"/>
9849 <const name="FlagMask" value="0x07"/>
9850 </enum>
9851
9852 <enum
9853 name="HardDiskFormatCapabilities"
9854 uuid="1df1e4aa-d25a-4ba6-b2a2-02f60eb5903b"
9855 >
9856 <desc>
9857 Hard disk format capability flags.
9858 </desc>
9859
9860 <const name="Uuid" value="0x01">
9861 <desc>
9862 Supports UUIDs as expected by VirtualBox code.
9863 </desc>
9864 </const>
9865
9866 <const name="CreateFixed" value="0x02">
9867 <desc>
9868 Supports creating fixed size images, allocating all space instantly.
9869 </desc>
9870 </const>
9871
9872 <const name="CreateDynamic" value="0x04">
9873 <desc>
9874 Supports creating dynamically growing images, allocating space on
9875 demand.
9876 </desc>
9877 </const>
9878
9879 <const name="CreateSplit2G" value="0x08">
9880 <desc>
9881 Supports creating images split in chunks of a bit less than 2 GBytes.
9882 </desc>
9883 </const>
9884
9885 <const name="Differencing" value="0x10">
9886 <desc>
9887 Supports being used as a format for differencing hard disks (see <link
9888 to="IHardDisk::createDiffStorage"/>).
9889 </desc>
9890 </const>
9891
9892 <const name="Asynchronous" value="0x20">
9893 <desc>
9894 Supports asynchronous I/O operations for at least some configurations.
9895 </desc>
9896 </const>
9897
9898 <const name="File" value="0x40">
9899 <desc>
9900 The format backend operates on files (the <link to="IMedium::location"/>
9901 attribute of the hard disk specifies a file used to store hard disk
9902 data; for a list of supported file extensions see
9903 <link to="IHardDiskFormat::fileExtensions"/>).
9904 </desc>
9905 </const>
9906
9907 <const name="Properties" value="0x80">
9908 <desc>
9909 The format backend uses the property interface to configure the storage
9910 location and properties (the <link to="IHardDiskFormat::describeProperties"/>
9911 method is used to get access to properties supported by the given hard
9912 disk format).
9913 </desc>
9914 </const>
9915
9916 <const name="CapabilityMask" value="0xFF"/>
9917 </enum>
9918
9919 <interface
9920 name="IHardDiskFormat" extends="$unknown"
9921 uuid="7f3ba790-3a0b-4a8a-bac2-bb50150123c5"
9922 wsmap="managed"
9923 >
9924 <desc>
9925 The IHardDiskFormat interface represents a virtual hard disk format.
9926
9927 Each hard disk format has an associated backend which is used to handle
9928 hard disks stored in this format. This interface provides information
9929 about the properties of the associated backend.
9930
9931 Each hard disk format is identified by a string represented by the
9932 <link to="#id"/> attribute. This string is used in calls like
9933 <link to="IVirtualBox::createHardDisk"/> to specify the desired
9934 format.
9935
9936 The list of all supported hard disk formats can be obtained using
9937 <link to="ISystemProperties::hardDiskFormats"/>.
9938
9939 <see>IHardDisk</see>
9940 </desc>
9941
9942 <attribute name="id" type="wstring" readonly="yes">
9943 <desc>
9944 Identifier of this format.
9945
9946 The format identifier is a non-@c null non-empty ASCII string. Note that
9947 this string is case-insensitive. This means that, for example, all of
9948 the following strings:
9949 <pre>
9950 "VDI"
9951 "vdi"
9952 "VdI"</pre>
9953 refer to the same hard disk format.
9954
9955 This string is used in methods of other interfaces where it is necessary
9956 to specify a hard disk format, such as
9957 <link to="IVirtualBox::createHardDisk"/>.
9958 </desc>
9959 </attribute>
9960
9961 <attribute name="name" type="wstring" readonly="yes">
9962 <desc>
9963 Human readable description of this format.
9964
9965 Mainly for use in file open dialogs.
9966 </desc>
9967 </attribute>
9968
9969 <attribute name="fileExtensions" type="wstring" safearray="yes" readonly="yes">
9970 <desc>
9971 Array of strings containing the supported file extensions.
9972
9973 The first extension in the array is the extension preferred by the
9974 backend. It is recommended to use this extension when specifying a
9975 location of the storage unit for a new hard disk.
9976
9977 Note that some backends do not work on files, so this array may be
9978 empty.
9979
9980 <see>IHardDiskFormat::capabilities</see>
9981 </desc>
9982 </attribute>
9983
9984 <attribute name="capabilities" type="unsigned long" readonly="yes">
9985 <desc>
9986 Capabilities of the format as a set of bit flags.
9987
9988 For the meaning of individual capability flags see
9989 <link to="HardDiskFormatCapabilities"/>.
9990 </desc>
9991 </attribute>
9992
9993 <method name="describeProperties">
9994 <desc>
9995 Returns several arrays describing the properties supported by this
9996 format.
9997
9998 An element with the given index in each array describes one
9999 property. Thus, the number of elements in each returned array is the
10000 same and corresponds to the number of supported properties.
10001
10002 The returned arrays are filled in only if the
10003 <link to="HardDiskFormatCapabilities_Properties"/> flag is set.
10004 All arguments must be non-@c null.
10005
10006 <see>DataType</see>
10007 <see>DataFlags</see>
10008 </desc>
10009
10010 <param name="names" type="wstring" safearray="yes" dir="out">
10011 <desc>Array of property names.</desc>
10012 </param>
10013 <param name="description" type="wstring" safearray="yes" dir="out">
10014 <desc>Array of property descriptions.</desc>
10015 </param>
10016 <param name="types" type="DataType" safearray="yes" dir="out">
10017 <desc>Array of property types.</desc>
10018 </param>
10019 <param name="flags" type="unsigned long" safearray="yes" dir="out">
10020 <desc>Array of property flags.</desc>
10021 </param>
10022 <param name="defaults" type="wstring" safearray="yes" dir="out">
10023 <desc>Array of default property values.</desc>
10024 </param>
10025 </method>
10026
10027 </interface>
10028
10029
10030 <!--
10031 // IFloppyImage
10032 /////////////////////////////////////////////////////////////////////////
10033 -->
10034
10035 <interface
10036 name="IFloppyImage" extends="IMedium"
10037 uuid="faa6101f-078c-4b3a-ab75-75670c8170b3"
10038 wsmap="managed"
10039 >
10040 <desc>
10041 The IFloppyImage interface represents a medium containing the image
10042 of a floppy disk. This is a subclass of <link to="IMedium" />; see remarks there.
10043 </desc>
10044
10045 </interface>
10046
10047
10048 <!--
10049 // IDVDImage
10050 /////////////////////////////////////////////////////////////////////////
10051 -->
10052
10053 <interface
10054 name="IDVDImage" extends="IMedium"
10055 uuid="b1f90bbb-e8a9-4484-9af1-3638e943f763"
10056 wsmap="managed"
10057 >
10058 <desc>
10059 The IDVDImage interface represents a medium containing the image
10060 of a CD or DVD disk in the ISO format.
10061
10062 This is a subclass of <link to="IMedium" />; see remarks there.
10063 </desc>
10064
10065 </interface>
10066
10067
10068 <!--
10069 // IDVDDrive
10070 /////////////////////////////////////////////////////////////////////////
10071 -->
10072
10073 <interface
10074 name="IDVDDrive" extends="$unknown"
10075 uuid="156944d1-4c6d-4812-8f12-ab3890767ab4"
10076 wsmap="managed"
10077 >
10078 <desc>
10079 The IDVDDrive interface represents the virtual CD/DVD drive of the
10080 virtual machine. An object of this type is returned by
10081 <link to="IMachine::DVDDrive"/>.
10082 </desc>
10083
10084 <attribute name="state" type="DriveState" readonly="yes">
10085 <desc>Current drive state.</desc>
10086 </attribute>
10087
10088 <attribute name="passthrough" type="boolean">
10089 <desc>
10090 When a host drive is mounted and passthrough is enabled
10091 the guest OS will be able to directly send SCSI commands to
10092 the host drive. This enables the guest OS to use CD/DVD writers
10093 but is potentially dangerous.
10094 </desc>
10095 </attribute>
10096
10097 <method name="mountImage">
10098 <desc>Mounts a CD/DVD image with the specified UUID.
10099
10100 <result name="VBOX_E_FILE_ERROR">
10101 Invalid image file location.
10102 </result>
10103 <result name="VBOX_E_OBJECT_NOT_FOUND">
10104 Could not find a CD/DVD image matching @a imageId.
10105 </result>
10106 <result name="VBOX_E_INVALID_OBJECT_STATE">
10107 Invalid media state.
10108 </result>
10109
10110 </desc>
10111 <param name="imageId" type="wstring" dir="in"/>
10112 </method>
10113
10114 <method name="captureHostDrive">
10115 <desc>Captures the specified host CD/DVD drive.</desc>
10116 <param name="drive" type="IHostDVDDrive" dir="in"/>
10117 </method>
10118
10119 <method name="unmount">
10120 <desc>Unmounts the currently mounted image or host drive.</desc>
10121 </method>
10122
10123 <method name="getImage">
10124 <desc>Returns the currently mounted CD/DVD image.</desc>
10125 <param name="image" type="IDVDImage" dir="return"/>
10126 </method>
10127
10128 <method name="getHostDrive">
10129 <desc>Returns the currently mounted host CD/DVD drive.</desc>
10130 <param name="drive" type="IHostDVDDrive" dir="return"/>
10131 </method>
10132
10133 </interface>
10134
10135
10136 <!--
10137 // IFloppyDrive
10138 /////////////////////////////////////////////////////////////////////////
10139 -->
10140
10141 <interface
10142 name="IFloppyDrive" extends="$unknown"
10143 uuid="a8676d38-5cf0-4b53-85b1-aa693611ab86"
10144 wsmap="managed"
10145 >
10146 <desc>
10147 The IFloppyDrive interface represents the virtual floppy drive of the
10148 virtual machine. An object of this type is returned by
10149 <link to="IMachine::floppyDrive" />.
10150 </desc>
10151
10152 <attribute name="enabled" type="boolean">
10153 <desc>
10154 Flag whether the floppy drive is enabled. If it is disabled,
10155 the floppy drive will not be reported to the guest OS.
10156 </desc>
10157 </attribute>
10158
10159 <attribute name="state" type="DriveState" readonly="yes">
10160 <desc>Current drive state.</desc>
10161 </attribute>
10162
10163 <method name="mountImage">
10164 <desc>Mounts a floppy image with the specified UUID.
10165
10166 <result name="VBOX_E_FILE_ERROR">
10167 Invalid image file location.
10168 </result>
10169 <result name="VBOX_E_OBJECT_NOT_FOUND">
10170 Could not find a floppy image matching @a imageID.
10171 </result>
10172 <result name="VBOX_E_INVALID_OBJECT_STATE">
10173 Invalid media state.
10174 </result>
10175
10176 </desc>
10177 <param name="imageId" type="wstring" dir="in"/>
10178 </method>
10179
10180 <method name="captureHostDrive">
10181 <desc>Captures the specified host floppy drive.</desc>
10182 <param name="drive" type="IHostFloppyDrive" dir="in"/>
10183 </method>
10184
10185 <method name="unmount">
10186 <desc>Unmounts the currently mounted image or host drive.</desc>
10187 </method>
10188
10189 <method name="getImage">
10190 <desc>Returns the currently mounted floppy image.</desc>
10191 <param name="image" type="IFloppyImage" dir="return"/>
10192 </method>
10193
10194 <method name="getHostDrive">
10195 <desc>Returns the currently mounted host floppy drive.</desc>
10196 <param name="drive" type="IHostFloppyDrive" dir="return"/>
10197 </method>
10198
10199 </interface>
10200
10201
10202 <!--
10203 // IKeyboard
10204 /////////////////////////////////////////////////////////////////////////
10205 -->
10206
10207 <interface
10208 name="IKeyboard" extends="$unknown"
10209 uuid="2d1a531b-4c6e-49cc-8af6-5c857b78b5d7"
10210 wsmap="managed"
10211 >
10212 <desc>
10213 The IKeyboard interface represents the virtual machine's keyboard. Used
10214 in <link to="IConsole::keyboard"/>.
10215
10216 Use this interface to send keystrokes or the Ctrl-Alt-Del sequence
10217 to the virtual machine.
10218
10219 </desc>
10220 <method name="putScancode">
10221 <desc>Sends a scancode to the keyboard.
10222
10223 <result name="VBOX_E_IPRT_ERROR">
10224 Could not send scan code to virtual keyboard.
10225 </result>
10226
10227 </desc>
10228 <param name="scancode" type="long" dir="in"/>
10229 </method>
10230
10231 <method name="putScancodes">
10232 <desc>Sends an array of scancodes to the keyboard.
10233
10234 <result name="VBOX_E_IPRT_ERROR">
10235 Could not send all scan codes to virtual keyboard.
10236 </result>
10237
10238 </desc>
10239 <param name="scancodes" type="long" dir="in" safearray="yes"/>
10240 <param name="codesStored" type="unsigned long" dir="return"/>
10241 </method>
10242
10243 <method name="putCAD">
10244 <desc>Sends the Ctrl-Alt-Del sequence to the keyboard. This
10245 function is nothing special, it is just a convenience function
10246 calling <link to="IKeyboard::putScancodes"/> with the proper scancodes.
10247
10248 <result name="VBOX_E_IPRT_ERROR">
10249 Could not send all scan codes to virtual keyboard.
10250 </result>
10251
10252 </desc>
10253 </method>
10254
10255 </interface>
10256
10257
10258 <!--
10259 // IMouse
10260 /////////////////////////////////////////////////////////////////////////
10261 -->
10262
10263 <enum
10264 name="MouseButtonState"
10265 uuid="03131722-2EC5-4173-9794-0DACA46673EF"
10266 >
10267 <desc>
10268 Mouse button state.
10269 </desc>
10270
10271 <const name="LeftButton" value="0x01"/>
10272 <const name="RightButton" value="0x02"/>
10273 <const name="MiddleButton" value="0x04"/>
10274 <const name="WheelUp" value="0x08"/>
10275 <const name="WheelDown" value="0x10"/>
10276 <const name="MouseStateMask" value="0x1F"/>
10277 </enum>
10278
10279 <interface
10280 name="IMouse" extends="$unknown"
10281 uuid="FD443EC1-0006-4F5B-9282-D72760A66916"
10282 wsmap="managed"
10283 >
10284 <desc>
10285 The IMouse interface represents the virtual machine's mouse. Used in
10286 <link to="IConsole::mouse"/>.
10287
10288 Through this interface, the virtual machine's virtual mouse can be
10289 controlled.
10290 </desc>
10291
10292 <attribute name="absoluteSupported" type="boolean" readonly="yes">
10293 <desc>
10294 Whether the guest OS supports absolute mouse pointer positioning
10295 or not.
10296 <note>
10297 VirtualBox Guest Tools need to be installed to the guest OS
10298 in order to enable absolute mouse positioning support.
10299 You can use the <link to="IConsoleCallback::onMouseCapabilityChange"/>
10300 callback to be instantly informed about changes of this attribute
10301 during virtual machine execution.
10302 </note>
10303 <see><link to="#putMouseEventAbsolute"/></see>
10304 </desc>
10305 </attribute>
10306
10307 <method name="putMouseEvent">
10308 <desc>
10309 Initiates a mouse event using relative pointer movements
10310 along x and y axis.
10311
10312 <result name="E_ACCESSDENIED">
10313 Console not powered up.
10314 </result>
10315 <result name="VBOX_E_IPRT_ERROR">
10316 Could not send mouse event to virtual mouse.
10317 </result>
10318
10319 </desc>
10320
10321 <param name="dx" type="long" dir="in">
10322 <desc>
10323 Amount of pixels the mouse should move to the right.
10324 Negative values move the mouse to the left.
10325 </desc>
10326 </param>
10327 <param name="dy" type="long" dir="in">
10328 <desc>
10329 Amount of pixels the mouse should move downwards.
10330 Negative values move the mouse upwards.
10331 </desc>
10332 </param>
10333 <param name="dz" type="long" dir="in">
10334 <desc>
10335 Amount of mouse wheel moves.
10336 Positive values describe clockwise wheel rotations,
10337 negative values describe counterclockwise rotations.
10338 </desc>
10339 </param>
10340 <param name="buttonState" type="long" dir="in">
10341 <desc>
10342 The current state of mouse buttons. Every bit represents
10343 a mouse button as follows:
10344 <table>
10345 <tr><td>Bit 0 (<tt>0x01</tt>)</td><td>left mouse button</td></tr>
10346 <tr><td>Bit 1 (<tt>0x02</tt>)</td><td>right mouse button</td></tr>
10347 <tr><td>Bit 2 (<tt>0x04</tt>)</td><td>middle mouse button</td></tr>
10348 </table>
10349 A value of <tt>1</tt> means the corresponding button is pressed.
10350 otherwise it is released.
10351 </desc>
10352 </param>
10353 </method>
10354
10355 <method name="putMouseEventAbsolute">
10356 <desc>
10357 Positions the mouse pointer using absolute x and y coordinates.
10358 These coordinates are expressed in pixels and
10359 start from <tt>[1,1]</tt> which corresponds to the top left
10360 corner of the virtual display.
10361
10362 <result name="E_ACCESSDENIED">
10363 Console not powered up.
10364 </result>
10365 <result name="VBOX_E_IPRT_ERROR">
10366 Could not send mouse event to virtual mouse.
10367 </result>
10368
10369 <note>
10370 This method will have effect only if absolute mouse
10371 positioning is supported by the guest OS.
10372 </note>
10373
10374 <see><link to="#absoluteSupported"/></see>
10375 </desc>
10376
10377 <param name="x" type="long" dir="in">
10378 <desc>
10379 X coordinate of the pointer in pixels, starting from @c 1.
10380 </desc>
10381 </param>
10382 <param name="y" type="long" dir="in">
10383 <desc>
10384 Y coordinate of the pointer in pixels, starting from @c 1.
10385 </desc>
10386 </param>
10387 <param name="dz" type="long" dir="in">
10388 <desc>
10389 Amount of mouse wheel moves.
10390 Positive values describe clockwise wheel rotations,
10391 negative values describe counterclockwise rotations.
10392 </desc>
10393 </param>
10394 <param name="buttonState" type="long" dir="in">
10395 <desc>
10396 The current state of mouse buttons. Every bit represents
10397 a mouse button as follows:
10398 <table>
10399 <tr><td>Bit 0 (<tt>0x01</tt>)</td><td>left mouse button</td></tr>
10400 <tr><td>Bit 1 (<tt>0x02</tt>)</td><td>right mouse button</td></tr>
10401 <tr><td>Bit 2 (<tt>0x04</tt>)</td><td>middle mouse button</td></tr>
10402 </table>
10403 A value of @c 1 means the corresponding button is pressed.
10404 otherwise it is released.
10405 </desc>
10406 </param>
10407 </method>
10408
10409 </interface>
10410
10411 <!--
10412 // IDisplay
10413 /////////////////////////////////////////////////////////////////////////
10414 -->
10415
10416 <enum
10417 name="FramebufferPixelFormat"
10418 uuid="7acfd5ed-29e3-45e3-8136-73c9224f3d2d"
10419 >
10420 <desc>
10421 Format of the video memory buffer. Constants represented by this enum can
10422 be used to test for particular values of <link
10423 to="IFramebuffer::pixelFormat"/>. See also <link
10424 to="IFramebuffer::requestResize"/>.
10425
10426 See also www.fourcc.org for more information about FOURCC pixel formats.
10427 </desc>
10428
10429 <const name="Opaque" value="0">
10430 <desc>
10431 Unknown buffer format (the user may not assume any particular format of
10432 the buffer).
10433 </desc>
10434 </const>
10435 <const name="FOURCC_RGB" value="0x32424752">
10436 <desc>
10437 Basic RGB format (<link to="IFramebuffer::bitsPerPixel"/> determines the
10438 bit layout).
10439 </desc>
10440 </const>
10441 </enum>
10442
10443 <interface
10444 name="IFramebuffer" extends="$unknown"
10445 uuid="b7ed347a-5765-40a0-ae1c-f543eb4ddeaf"
10446 wsmap="suppress"
10447 >
10448 <attribute name="address" type="octet" mod="ptr" readonly="yes">
10449 <desc>Address of the start byte of the frame buffer.</desc>
10450 </attribute>
10451
10452 <attribute name="width" type="unsigned long" readonly="yes">
10453 <desc>Frame buffer width, in pixels.</desc>
10454 </attribute>
10455
10456 <attribute name="height" type="unsigned long" readonly="yes">
10457 <desc>Frame buffer height, in pixels.</desc>
10458 </attribute>
10459
10460 <attribute name="bitsPerPixel" type="unsigned long" readonly="yes">
10461 <desc>
10462 Color depth, in bits per pixel. When <link to="#pixelFormat"/> is <link
10463 to="FramebufferPixelFormat_FOURCC_RGB">FOURCC_RGB</link>, valid values
10464 are: 8, 15, 16, 24 and 32.
10465 </desc>
10466 </attribute>
10467
10468 <attribute name="bytesPerLine" type="unsigned long" readonly="yes">
10469 <desc>
10470 Scan line size, in bytes. When <link to="#pixelFormat"/> is <link
10471 to="FramebufferPixelFormat_FOURCC_RGB">FOURCC_RGB</link>, the
10472 size of the scan line must be aligned to 32 bits.
10473 </desc>
10474 </attribute>
10475
10476 <attribute name="pixelFormat" type="unsigned long" readonly="yes">
10477 <desc>
10478 Frame buffer pixel format. It's either one of the values defined by <link
10479 to="FramebufferPixelFormat"/> or a raw FOURCC code.
10480 <note>
10481 This attribute must never return <link
10482 to="FramebufferPixelFormat_Opaque"/> -- the format of the buffer
10483 <link to="#address"/> points to must be always known.
10484 </note>
10485 </desc>
10486 </attribute>
10487
10488 <attribute name="usesGuestVRAM" type="boolean" readonly="yes">
10489 <desc>
10490 Defines whether this frame buffer uses the virtual video card's memory
10491 buffer (guest VRAM) directly or not. See <link
10492 to="IFramebuffer::requestResize"/> for more information.
10493 </desc>
10494 </attribute>
10495
10496 <attribute name="heightReduction" type="unsigned long" readonly="yes">
10497 <desc>
10498 Hint from the frame buffer about how much of the standard
10499 screen height it wants to use for itself. This information is
10500 exposed to the guest through the VESA BIOS and VMMDev interface
10501 so that it can use it for determining its video mode table. It
10502 is not guaranteed that the guest respects the value.
10503 </desc>
10504 </attribute>
10505
10506 <attribute name="overlay" type="IFramebufferOverlay" readonly="yes">
10507 <desc>
10508 An alpha-blended overlay which is superposed over the frame buffer.
10509 The initial purpose is to allow the display of icons providing
10510 information about the VM state, including disk activity, in front
10511 ends which do not have other means of doing that. The overlay is
10512 designed to controlled exclusively by IDisplay. It has no locking
10513 of its own, and any changes made to it are not guaranteed to be
10514 visible until the affected portion of IFramebuffer is updated. The
10515 overlay can be created lazily the first time it is requested. This
10516 attribute can also return @c null to signal that the overlay is not
10517 implemented.
10518 </desc>
10519 </attribute>
10520
10521 <attribute name="winId" type="unsigned long long" readonly="yes">
10522 <desc>
10523 Platform-dependent identifier of the window where context of this
10524 frame buffer is drawn, or zero if there's no such window.
10525 </desc>
10526 </attribute>
10527
10528 <method name="lock">
10529 <desc>
10530 Locks the frame buffer.
10531 Gets called by the IDisplay object where this frame buffer is
10532 bound to.
10533 </desc>
10534 </method>
10535
10536 <method name="unlock">
10537 <desc>
10538 Unlocks the frame buffer.
10539 Gets called by the IDisplay object where this frame buffer is
10540 bound to.
10541 </desc>
10542 </method>
10543
10544 <method name="notifyUpdate">
10545 <desc>
10546 Informs about an update.
10547 Gets called by the display object where this buffer is
10548 registered.
10549 </desc>
10550 <param name="x" type="unsigned long" dir="in"/>
10551 <param name="y" type="unsigned long" dir="in"/>
10552 <param name="width" type="unsigned long" dir="in"/>
10553 <param name="height" type="unsigned long" dir="in"/>
10554 </method>
10555
10556 <method name="requestResize">
10557 <desc>
10558 Requests a size and pixel format change.
10559
10560 There are two modes of working with the video buffer of the virtual
10561 machine. The <i>indirect</i> mode implies that the IFramebuffer
10562 implementation allocates a memory buffer for the requested display mode
10563 and provides it to the virtual machine. In <i>direct</i> mode, the
10564 IFramebuffer implementation uses the memory buffer allocated and owned
10565 by the virtual machine. This buffer represents the video memory of the
10566 emulated video adapter (so called <i>guest VRAM</i>). The direct mode is
10567 usually faster because the implementation gets a raw pointer to the
10568 guest VRAM buffer which it can directly use for visualizing the contents
10569 of the virtual display, as opposed to the indirect mode where the
10570 contents of guest VRAM are copied to the memory buffer provided by
10571 the implementation every time a display update occurs.
10572
10573 It is important to note that the direct mode is really fast only when
10574 the implementation uses the given guest VRAM buffer directly, for
10575 example, by blitting it to the window representing the virtual machine's
10576 display, which saves at least one copy operation comparing to the
10577 indirect mode. However, using the guest VRAM buffer directly is not
10578 always possible: the format and the color depth of this buffer may be
10579 not supported by the target window, or it may be unknown (opaque) as in
10580 case of text or non-linear multi-plane VGA video modes. In this case,
10581 the indirect mode (that is always available) should be used as a
10582 fallback: when the guest VRAM contents are copied to the
10583 implementation-provided memory buffer, color and format conversion is
10584 done automatically by the underlying code.
10585
10586 The @a pixelFormat parameter defines whether the direct mode is
10587 available or not. If @a pixelFormat is <link
10588 to="FramebufferPixelFormat_Opaque"/> then direct access to the guest
10589 VRAM buffer is not available -- the @a VRAM, @a bitsPerPixel and
10590 @a bytesPerLine parameters must be ignored and the implementation must use
10591 the indirect mode (where it provides its own buffer in one of the
10592 supported formats). In all other cases, @a pixelFormat together with
10593 @a bitsPerPixel and @a bytesPerLine define the format of the video memory
10594 buffer pointed to by the @a VRAM parameter and the implementation is
10595 free to choose which mode to use. To indicate that this frame buffer uses
10596 the direct mode, the implementation of the <link to="#usesGuestVRAM"/>
10597 attribute must return @c true and <link to="#address"/> must
10598 return exactly the same address that is passed in the @a VRAM parameter
10599 of this method; otherwise it is assumed that the indirect strategy is
10600 chosen.
10601
10602 The @a width and @a height parameters represent the size of the
10603 requested display mode in both modes. In case of indirect mode, the
10604 provided memory buffer should be big enough to store data of the given
10605 display mode. In case of direct mode, it is guaranteed that the given
10606 @a VRAM buffer contains enough space to represent the display mode of the
10607 given size. Note that this frame buffer's <link to="#width"/> and <link
10608 to="#height"/> attributes must return exactly the same values as
10609 passed to this method after the resize is completed (see below).
10610
10611 The @a finished output parameter determines if the implementation has
10612 finished resizing the frame buffer or not. If, for some reason, the
10613 resize cannot be finished immediately during this call, @a finished
10614 must be set to @c false, and the implementation must call
10615 <link to="IDisplay::resizeCompleted"/> after it has returned from
10616 this method as soon as possible. If @a finished is @c false, the
10617 machine will not call any frame buffer methods until
10618 <link to="IDisplay::resizeCompleted"/> is called.
10619
10620 Note that if the direct mode is chosen, the <link to="#bitsPerPixel"/>,
10621 <link to="#bytesPerLine"/> and <link to="#pixelFormat"/> attributes of
10622 this frame buffer must return exactly the same values as specified in the
10623 parameters of this method, after the resize is completed. If the
10624 indirect mode is chosen, these attributes must return values describing
10625 the format of the implementation's own memory buffer <link
10626 to="#address"/> points to. Note also that the <link to="#bitsPerPixel"/>
10627 value must always correlate with <link to="#pixelFormat"/>. Note that
10628 the <link to="#pixelFormat"/> attribute must never return <link
10629 to="FramebufferPixelFormat_Opaque"/> regardless of the selected mode.
10630
10631 <note>
10632 This method is called by the IDisplay object under the
10633 <link to="#lock"/> provided by this IFramebuffer
10634 implementation. If this method returns @c false in @a finished, then
10635 this lock is not released until
10636 <link to="IDisplay::resizeCompleted"/> is called.
10637 </note>
10638 </desc>
10639 <param name="screenId" type="unsigned long" dir="in">
10640 <desc>
10641 Logical screen number. Must be used in the corresponding call to
10642 <link to="IDisplay::resizeCompleted"/> if this call is made.
10643 </desc>
10644 </param>
10645 <param name="pixelFormat" type="unsigned long" dir="in">
10646 <desc>
10647 Pixel format of the memory buffer pointed to by @a VRAM.
10648 See also <link to="FramebufferPixelFormat"/>.
10649 </desc>
10650 </param>
10651 <param name="VRAM" type="octet" mod="ptr" dir="in">
10652 <desc>Pointer to the virtual video card's VRAM (may be @c null).</desc>
10653 </param>
10654 <param name="bitsPerPixel" type="unsigned long" dir="in">
10655 <desc>Color depth, bits per pixel.</desc>
10656 </param>
10657 <param name="bytesPerLine" type="unsigned long" dir="in">
10658 <desc>Size of one scan line, in bytes.</desc>
10659 </param>
10660 <param name="width" type="unsigned long" dir="in">
10661 <desc>Width of the guest display, in pixels.</desc>
10662 </param>
10663 <param name="height" type="unsigned long" dir="in">
10664 <desc>Height of the guest display, in pixels.</desc>
10665 </param>
10666 <param name="finished" type="boolean" dir="return">
10667 <desc>
10668 Can the VM start using the new frame buffer immediately
10669 after this method returns or it should wait for
10670 <link to="IDisplay::resizeCompleted"/>.
10671 </desc>
10672 </param>
10673 </method>
10674
10675 <method name="videoModeSupported">
10676 <desc>
10677 Returns whether the frame buffer implementation is willing to
10678 support a given video mode. In case it is not able to render
10679 the video mode (or for some reason not willing), it should
10680 return @c false. Usually this method is called when the guest
10681 asks the VMM device whether a given video mode is supported
10682 so the information returned is directly exposed to the guest.
10683 It is important that this method returns very quickly.
10684 </desc>
10685 <param name="width" type="unsigned long" dir="in"/>
10686 <param name="height" type="unsigned long" dir="in"/>
10687 <param name="bpp" type="unsigned long" dir="in"/>
10688 <param name="supported" type="boolean" dir="return"/>
10689 </method>
10690
10691 <method name="getVisibleRegion">
10692 <desc>
10693 Returns the visible region of this frame buffer.
10694
10695 If the @a rectangles parameter is @c null then the value of the
10696 @a count parameter is ignored and the number of elements necessary to
10697 describe the current visible region is returned in @a countCopied.
10698
10699 If @a rectangles is not @c null but @a count is less
10700 than the required number of elements to store region data, the method
10701 will report a failure. If @a count is equal or greater than the
10702 required number of elements, then the actual number of elements copied
10703 to the provided array will be returned in @a countCopied.
10704
10705 <note>
10706 The address of the provided array must be in the process space of
10707 this IFramebuffer object.
10708 </note>
10709 <note>
10710 Method not yet implemented.
10711 </note>
10712 </desc>
10713 <param name="rectangles" type="octet" mod="ptr" dir="in">
10714 <desc>Pointer to the @c RTRECT array to receive region data.</desc>
10715 </param>
10716 <param name="count" type="unsigned long" dir="in">
10717 <desc>Number of @c RTRECT elements in the @a rectangles array.</desc>
10718 </param>
10719 <param name="countCopied" type="unsigned long" dir="return">
10720 <desc>Number of elements copied to the @a rectangles array.</desc>
10721 </param>
10722 </method>
10723
10724 <method name="setVisibleRegion">
10725 <desc>
10726 Suggests a new visible region to this frame buffer. This region
10727 represents the area of the VM display which is a union of regions of
10728 all top-level windows of the guest operating system running inside the
10729 VM (if the Guest Additions for this system support this
10730 functionality). This information may be used by the frontends to
10731 implement the seamless desktop integration feature.
10732
10733 <note>
10734 The address of the provided array must be in the process space of
10735 this IFramebuffer object.
10736 </note>
10737 <note>
10738 The IFramebuffer implementation must make a copy of the provided
10739 array of rectangles.
10740 </note>
10741 <note>
10742 Method not yet implemented.
10743 </note>
10744 </desc>
10745 <param name="rectangles" type="octet" mod="ptr" dir="in">
10746 <desc>Pointer to the @c RTRECT array.</desc>
10747 </param>
10748 <param name="count" type="unsigned long" dir="in">
10749 <desc>Number of @c RTRECT elements in the @a rectangles array.</desc>
10750 </param>
10751 </method>
10752
10753 <method name="processVHWACommand">
10754 <desc>
10755 Posts a Video HW Acceleration Command to the frame buffer for processing.
10756 The commands used for 2D video acceleration (DDraw surface creation/destroying, blitting, scaling, color covnersion, overlaying, etc.)
10757 are posted from quest to the host to be processed by the host hardware.
10758
10759 <note>
10760 The address of the provided command must be in the process space of
10761 this IFramebuffer object.
10762 </note>
10763 </desc>
10764
10765 <param name="command" type="octet" mod="ptr" dir="in">
10766 <desc>Pointer to VBOXVHWACMD containing the command to execute.</desc>
10767 </param>
10768 </method>
10769
10770 </interface>
10771
10772 <interface
10773 name="IFramebufferOverlay" extends="IFramebuffer"
10774 uuid="0bcc1c7e-e415-47d2-bfdb-e4c705fb0f47"
10775 wsmap="suppress"
10776 >
10777 <desc>
10778 The IFramebufferOverlay interface represents an alpha blended overlay
10779 for displaying status icons above an IFramebuffer. It is always created
10780 not visible, so that it must be explicitly shown. It only covers a
10781 portion of the IFramebuffer, determined by its width, height and
10782 co-ordinates. It is always in packed pixel little-endian 32bit ARGB (in
10783 that order) format, and may be written to directly. Do re-read the
10784 width though, after setting it, as it may be adjusted (increased) to
10785 make it more suitable for the front end.
10786 </desc>
10787 <attribute name="x" type="unsigned long" readonly="yes">
10788 <desc>X position of the overlay, relative to the frame buffer.</desc>
10789 </attribute>
10790
10791 <attribute name="y" type="unsigned long" readonly="yes">
10792 <desc>Y position of the overlay, relative to the frame buffer.</desc>
10793 </attribute>
10794
10795 <attribute name="visible" type="boolean" readonly="no">
10796 <desc>
10797 Whether the overlay is currently visible.
10798 </desc>
10799 </attribute>
10800
10801 <attribute name="alpha" type="unsigned long" readonly="no">
10802 <desc>
10803 The global alpha value for the overlay. This may or may not be
10804 supported by a given front end.
10805 </desc>
10806 </attribute>
10807
10808 <method name="move">
10809 <desc>
10810 Changes the overlay's position relative to the IFramebuffer.
10811 </desc>
10812 <param name="x" type="unsigned long" dir="in"/>
10813 <param name="y" type="unsigned long" dir="in"/>
10814 </method>
10815
10816 </interface>
10817
10818 <interface
10819 name="IDisplay" extends="$unknown"
10820 uuid="26881797-bc98-444d-ac69-820633b93ec7"
10821 wsmap="managed"
10822 >
10823 <desc>
10824 The IDisplay interface represents the virtual machine's display.
10825
10826 The object implementing this interface is contained in each
10827 <link to="IConsole::display"/> attribute and represents the visual
10828 output of the virtual machine.
10829
10830 The virtual display supports pluggable output targets represented by the
10831 IFramebuffer interface. Examples of the output target are a window on
10832 the host computer or an RDP session's display on a remote computer.
10833 </desc>
10834 <attribute name="width" type="unsigned long" readonly="yes">
10835 <desc>Current display width.</desc>
10836 </attribute>
10837
10838 <attribute name="height" type="unsigned long" readonly="yes">
10839 <desc>Current display height.</desc>
10840 </attribute>
10841
10842 <attribute name="bitsPerPixel" type="unsigned long" readonly="yes">
10843 <desc>
10844 Current guest display color depth. Note that this may differ
10845 from <link to="IFramebuffer::bitsPerPixel"/>.
10846 </desc>
10847 </attribute>
10848
10849 <method name="setFramebuffer">
10850 <desc>
10851 Sets the framebuffer for given screen.
10852 </desc>
10853 <param name="screenId" type="unsigned long" dir="in"/>
10854 <param name="framebuffer" type="IFramebuffer" dir="in"/>
10855 </method>
10856
10857 <method name="getFramebuffer">
10858 <desc>
10859 Queries the framebuffer for given screen.
10860 </desc>
10861 <param name="screenId" type="unsigned long" dir="in"/>
10862 <param name="framebuffer" type="IFramebuffer" dir="out"/>
10863 <param name="xOrigin" type="long" dir="out"/>
10864 <param name="yOrigin" type="long" dir="out"/>
10865 </method>
10866
10867 <method name="setVideoModeHint">
10868 <desc>
10869 Asks VirtualBox to request the given video mode from
10870 the guest. This is just a hint and it cannot be guaranteed
10871 that the requested resolution will be used. Guest Additions
10872 are required for the request to be seen by guests. The caller
10873 should issue the request and wait for a resolution change and
10874 after a timeout retry.
10875
10876 Specifying @c 0 for either @a width, @a height or @a bitsPerPixel
10877 parameters means that the corresponding values should be taken from the
10878 current video mode (i.e. left unchanged).
10879
10880 If the guest OS supports multi-monitor configuration then the @a display
10881 parameter specifies the number of the guest display to send the hint to:
10882 @c 0 is the primary display, @c 1 is the first secondary and
10883 so on. If the multi-monitor configuration is not supported, @a display
10884 must be @c 0.
10885
10886 <result name="E_INVALIDARG">
10887 The @a display is not associated with any monitor.
10888 </result>
10889
10890 </desc>
10891 <param name="width" type="unsigned long" dir="in"/>
10892 <param name="height" type="unsigned long" dir="in"/>
10893 <param name="bitsPerPixel" type="unsigned long" dir="in"/>
10894 <param name="display" type="unsigned long" dir="in"/>
10895 </method>
10896
10897 <method name="setSeamlessMode">
10898 <desc>
10899 Enables or disables seamless guest display rendering (seamless desktop
10900 integration) mode.
10901 <note>
10902 Calling this method has no effect if <link
10903 to="IGuest::supportsSeamless"/> returns @c false.
10904 </note>
10905 </desc>
10906 <param name="enabled" type="boolean" dir="in"/>
10907 </method>
10908
10909 <method name="takeScreenShot">
10910 <desc>
10911 Takes a screen shot of the requested size and copies it to the
10912 32-bpp buffer allocated by the caller and pointed to by @a address.
10913
10914 <note>This API can be used only by the COM/XPCOM C++ API as it
10915 requires pointer support. Use <link to="#takeScreenShotSlow" />
10916 with other language bindings.
10917 </note>
10918
10919 <result name="E_NOTIMPL">
10920 Feature not implemented.
10921 </result>
10922 <result name="VBOX_E_IPRT_ERROR">
10923 Could not take a screenshot.
10924 </result>
10925
10926 </desc>
10927 <param name="address" type="octet" mod="ptr" dir="in"/>
10928 <param name="width" type="unsigned long" dir="in"/>
10929 <param name="height" type="unsigned long" dir="in"/>
10930 </method>
10931
10932 <method name="takeScreenShotSlow">
10933 <desc>
10934 Takes a guest screen shot of the requested size and returns it as
10935 an array of bytes in uncompressed 32-bit ARGB format.
10936 This API is slow, but could be the only option to get guest screenshot
10937 for scriptable languages not allowed to manipulate with addresses
10938 directly.
10939
10940 <result name="E_NOTIMPL">
10941 Feature not implemented.
10942 </result>
10943 <result name="VBOX_E_IPRT_ERROR">
10944 Could not take a screenshot.
10945 </result>
10946 </desc>
10947 <param name="width" type="unsigned long" dir="in">
10948 <desc>
10949 Desired image width.
10950 </desc>
10951 </param>
10952 <param name="height" type="unsigned long" dir="in">
10953 <desc>
10954 Desired image height.
10955 </desc>
10956 </param>
10957 <param name="screenData" type="octet" dir="return" safearray="yes">
10958 <desc>
10959 Array with resulting screen data.
10960 </desc>
10961 </param>
10962 </method>
10963
10964 <method name="drawToScreen">
10965 <desc>
10966 Draws a 32-bpp image of the specified size from the given buffer
10967 to the given point on the VM display.
10968
10969 <result name="E_NOTIMPL">
10970 Feature not implemented.
10971 </result>
10972 <result name="VBOX_E_IPRT_ERROR">
10973 Could not draw to screen.
10974 </result>
10975
10976 </desc>
10977 <param name="address" type="octet" mod="ptr" dir="in"/>
10978 <param name="x" type="unsigned long" dir="in"/>
10979 <param name="y" type="unsigned long" dir="in"/>
10980 <param name="width" type="unsigned long" dir="in"/>
10981 <param name="height" type="unsigned long" dir="in"/>
10982 </method>
10983
10984 <method name="invalidateAndUpdate">
10985 <desc>
10986 Does a full invalidation of the VM display and instructs the VM
10987 to update it.
10988
10989 <result name="VBOX_E_IPRT_ERROR">
10990 Could not invalidate and update screen.
10991 </result>
10992
10993 </desc>
10994 </method>
10995
10996 <method name="resizeCompleted">
10997 <desc>
10998 Signals that a framebuffer has completed the resize operation.
10999
11000 <result name="VBOX_E_NOT_SUPPORTED">
11001 Operation only valid for external frame buffers.
11002 </result>
11003
11004 </desc>
11005 <param name="screenId" type="unsigned long" dir="in"/>
11006 </method>
11007
11008 <method name="updateCompleted">
11009 <desc>
11010 Signals that a framebuffer has completed the update operation.
11011
11012 <result name="VBOX_E_NOT_SUPPORTED">
11013 Operation only valid for external frame buffers.
11014 </result>
11015
11016 </desc>
11017 </method>
11018
11019 <method name="completeVHWACommand">
11020 <desc>
11021 Signals that the Video HW Acceleration command has completed.
11022 </desc>
11023
11024 <param name="command" type="octet" mod="ptr" dir="in">
11025 <desc>Pointer to VBOXVHWACMD containing the completed command.</desc>
11026 </param>
11027 </method>
11028
11029 </interface>
11030
11031 <!--
11032 // INetworkAdapter
11033 /////////////////////////////////////////////////////////////////////////
11034 -->
11035
11036 <enum
11037 name="NetworkAttachmentType"
11038 uuid="44bce1ee-99f7-4e8e-89fc-80597fd9eeaf"
11039 >
11040 <desc>
11041 Network attachment type.
11042 </desc>
11043
11044 <const name="Null" value="0">
11045 <desc>Null value, also means "not attached".</desc>
11046 </const>
11047 <const name="NAT" value="1"/>
11048 <const name="Bridged" value="2"/>
11049 <const name="Internal" value="3"/>
11050 <const name="HostOnly" value="4"/>
11051 </enum>
11052
11053 <enum
11054 name="NetworkAdapterType"
11055 uuid="50c3dfd8-07ac-4a31-baac-519c828fbf97"
11056 >
11057 <desc>
11058 Network adapter type.
11059 </desc>
11060
11061 <const name="Null" value="0">
11062 <desc>Null value (never used by the API).</desc>
11063 </const>
11064 <const name="Am79C970A" value="1">
11065 <desc>AMD PCNet-PCI II network card (Am79C970A).</desc>
11066 </const>
11067 <const name="Am79C973" value="2">
11068 <desc>AMD PCNet-FAST III network card (Am79C973).</desc>
11069 </const>
11070 <const name="I82540EM" value="3">
11071 <desc>Intel PRO/1000 MT Desktop network card (82540EM).</desc>
11072 </const>
11073 <const name="I82543GC" value="4">
11074 <desc>Intel PRO/1000 T Server network card (82543GC).</desc>
11075 </const>
11076 <const name="I82545EM" value="5">
11077 <desc>Intel PRO/1000 MT Server network card (82545EM).</desc>
11078 </const>
11079 </enum>
11080
11081 <interface
11082 name="INetworkAdapter" extends="$unknown"
11083 uuid="65607a27-2b73-4d43-b4cc-0ba2c817fbde"
11084 wsmap="managed"
11085 >
11086 <desc>
11087 Represents a virtual network adapter that is attached to a virtual machine.
11088 Each virtual machine has a fixed number of network adapter slots with one
11089 instance of this attached to each of them. Call
11090 <link to="IMachine::getNetworkAdapter" /> to get the network adapter that
11091 is attached to a given slot in a given machine.
11092
11093 Each network adapter can be in one of five attachment modes, which are
11094 represented by the <link to="NetworkAttachmentType" /> enumeration;
11095 see the <link to="#attachmentType" /> attribute.
11096 </desc>
11097
11098 <attribute name="adapterType" type="NetworkAdapterType">
11099 <desc>
11100 Type of the virtual network adapter. Depending on this value,
11101 VirtualBox will provide a different virtual network hardware
11102 to the guest.
11103 </desc>
11104 </attribute>
11105
11106 <attribute name="slot" type="unsigned long" readonly="yes">
11107 <desc>
11108 Slot number this adapter is plugged into. Corresponds to
11109 the value you pass to <link to="IMachine::getNetworkAdapter"/>
11110 to obtain this instance.
11111 </desc>
11112 </attribute>
11113
11114 <attribute name="enabled" type="boolean">
11115 <desc>
11116 Flag whether the network adapter is present in the
11117 guest system. If disabled, the virtual guest hardware will
11118 not contain this network adapter. Can only be changed when
11119 the VM is not running.
11120 </desc>
11121 </attribute>
11122
11123 <attribute name="MACAddress" type="wstring">
11124 <desc>
11125 Ethernet MAC address of the adapter, 12 hexadecimal characters. When setting
11126 it to @c null, VirtualBox will generate a unique MAC address.
11127 </desc>
11128 </attribute>
11129
11130 <attribute name="attachmentType" type="NetworkAttachmentType" readonly="yes"/>
11131
11132 <attribute name="hostInterface" type="wstring">
11133 <desc>
11134 Name of the host network interface the VM is attached to.
11135 </desc>
11136 </attribute>
11137
11138 <attribute name="internalNetwork" type="wstring">
11139 <desc>
11140 Name of the internal network the VM is attached to.
11141 </desc>
11142 </attribute>
11143
11144 <attribute name="NATNetwork" type="wstring">
11145 <desc>
11146 Name of the NAT network the VM is attached to.
11147 </desc>
11148 </attribute>
11149
11150 <attribute name="cableConnected" type="boolean">
11151 <desc>
11152 Flag whether the adapter reports the cable as connected or not.
11153 It can be used to report offline situations to a VM.
11154 </desc>
11155 </attribute>
11156
11157 <attribute name="lineSpeed" type="unsigned long">
11158 <desc>
11159 Line speed reported by custom drivers, in units of 1 kbps.
11160 </desc>
11161 </attribute>
11162
11163 <attribute name="traceEnabled" type="boolean">
11164 <desc>
11165 Flag whether network traffic from/to the network card should be traced.
11166 Can only be toggled when the VM is turned off.
11167 </desc>
11168 </attribute>
11169
11170 <attribute name="traceFile" type="wstring">
11171 <desc>
11172 Filename where a network trace will be stored. If not set, VBox-pid.pcap
11173 will be used.
11174 </desc>
11175 </attribute>
11176
11177 <method name="attachToNAT">
11178 <desc>
11179 Attach the network adapter to the Network Address Translation (NAT) interface.
11180 </desc>
11181 </method>
11182
11183 <method name="attachToBridgedInterface">
11184 <desc>
11185 Attach the network adapter to a bridged host interface.
11186 </desc>
11187 </method>
11188
11189 <method name="attachToInternalNetwork">
11190 <desc>
11191 Attach the network adapter to an internal network.
11192 </desc>
11193 </method>
11194
11195 <method name="attachToHostOnlyInterface">
11196 <desc>
11197 Attach the network adapter to the host-only network.
11198 </desc>
11199 </method>
11200
11201 <method name="detach">
11202 <desc>
11203 Detach the network adapter
11204 </desc>
11205 </method>
11206 </interface>
11207
11208
11209 <!--
11210 // ISerialPort
11211 /////////////////////////////////////////////////////////////////////////
11212 -->
11213
11214 <enum
11215 name="PortMode"
11216 uuid="533b5fe3-0185-4197-86a7-17e37dd39d76"
11217 >
11218 <desc>
11219 The PortMode enumeration represents possible communication modes for
11220 the virtual serial port device.
11221 </desc>
11222
11223 <const name="Disconnected" value="0">
11224 <desc>Virtual device is not attached to any real host device.</desc>
11225 </const>
11226 <const name="HostPipe" value="1">
11227 <desc>Virtual device is attached to a host pipe.</desc>
11228 </const>
11229 <const name="HostDevice" value="2">
11230 <desc>Virtual device is attached to a host device.</desc>
11231 </const>
11232 <const name="RawFile" value="3">
11233 <desc>Virtual device is attached to a raw file.</desc>
11234 </const>
11235 </enum>
11236
11237 <interface
11238 name="ISerialPort" extends="$unknown"
11239 uuid="937f6970-5103-4745-b78e-d28dcf1479a8"
11240 wsmap="managed"
11241 >
11242
11243 <desc>
11244 The ISerialPort interface represents the virtual serial port device.
11245
11246 The virtual serial port device acts like an ordinary serial port
11247 inside the virtual machine. This device communicates to the real
11248 serial port hardware in one of two modes: host pipe or host device.
11249
11250 In host pipe mode, the #path attribute specifies the path to the pipe on
11251 the host computer that represents a serial port. The #server attribute
11252 determines if this pipe is created by the virtual machine process at
11253 machine startup or it must already exist before starting machine
11254 execution.
11255
11256 In host device mode, the #path attribute specifies the name of the
11257 serial port device on the host computer.
11258
11259 There is also a third communication mode: the disconnected mode. In this
11260 mode, the guest OS running inside the virtual machine will be able to
11261 detect the serial port, but all port write operations will be discarded
11262 and all port read operations will return no data.
11263
11264 <see>IMachine::getSerialPort</see>
11265 </desc>
11266
11267 <attribute name="slot" type="unsigned long" readonly="yes">
11268 <desc>
11269 Slot number this serial port is plugged into. Corresponds to
11270 the value you pass to <link to="IMachine::getSerialPort"/>
11271 to obtain this instance.
11272 </desc>
11273 </attribute>
11274
11275 <attribute name="enabled" type="boolean">
11276 <desc>
11277 Flag whether the serial port is enabled. If disabled,
11278 the serial port will not be reported to the guest OS.
11279 </desc>
11280 </attribute>
11281
11282 <attribute name="IOBase" type="unsigned long">
11283 <desc>Base I/O address of the serial port.</desc>
11284 </attribute>
11285
11286 <attribute name="IRQ" type="unsigned long">
11287 <desc>IRQ number of the serial port.</desc>
11288 </attribute>
11289
11290 <attribute name="hostMode" type="PortMode">
11291 <desc>
11292 How is this port connected to the host.
11293 <note>
11294 Changing this attribute may fail if the conditions for
11295 <link to="#path"/> are not met.
11296 </note>
11297 </desc>
11298 </attribute>
11299
11300 <attribute name="server" type="boolean">
11301 <desc>
11302 Flag whether this serial port acts as a server (creates a new pipe on
11303 the host) or as a client (uses the existing pipe). This attribute is
11304 used only when <link to="#hostMode"/> is PortMode_HostPipe.
11305 </desc>
11306 </attribute>
11307
11308 <attribute name="path" type="wstring">
11309 <desc>
11310 Path to the serial port's pipe on the host when <link to="ISerialPort::hostMode"/> is
11311 PortMode_HostPipe, or the host serial device name when
11312 <link to="ISerialPort::hostMode"/> is PortMode_HostDevice. For both
11313 cases, setting a @c null or empty string as the attribute's value
11314 is an error. Otherwise, the value of this property is ignored.
11315 </desc>
11316 </attribute>
11317
11318 </interface>
11319
11320 <!--
11321 // IParallelPort
11322 /////////////////////////////////////////////////////////////////////////
11323 -->
11324
11325 <interface
11326 name="IParallelPort" extends="$unknown"
11327 uuid="0c925f06-dd10-4b77-8de8-294d738c3214"
11328 wsmap="managed"
11329 >
11330
11331 <desc>
11332 The IParallelPort interface represents the virtual parallel port device.
11333
11334 The virtual parallel port device acts like an ordinary parallel port
11335 inside the virtual machine. This device communicates to the real
11336 parallel port hardware using the name of the parallel device on the host
11337 computer specified in the #path attribute.
11338
11339 Each virtual parallel port device is assigned a base I/O address and an
11340 IRQ number that will be reported to the guest operating system and used
11341 to operate the given parallel port from within the virtual machine.
11342
11343 <see>IMachine::getParallelPort</see>
11344 </desc>
11345
11346 <attribute name="slot" type="unsigned long" readonly="yes">
11347 <desc>
11348 Slot number this parallel port is plugged into. Corresponds to
11349 the value you pass to <link to="IMachine::getParallelPort"/>
11350 to obtain this instance.
11351 </desc>
11352 </attribute>
11353
11354 <attribute name="enabled" type="boolean">
11355 <desc>
11356 Flag whether the parallel port is enabled. If disabled,
11357 the parallel port will not be reported to the guest OS.
11358 </desc>
11359 </attribute>
11360
11361 <attribute name="IOBase" type="unsigned long">
11362 <desc>Base I/O address of the parallel port.</desc>
11363 </attribute>
11364
11365 <attribute name="IRQ" type="unsigned long">
11366 <desc>IRQ number of the parallel port.</desc>
11367 </attribute>
11368
11369 <attribute name="path" type="wstring">
11370 <desc>
11371 Host parallel device name. If this parallel port is enabled, setting a
11372 @c null or an empty string as this attribute's value will result into
11373 an error.
11374 </desc>
11375 </attribute>
11376
11377 </interface>
11378
11379
11380 <!--
11381 // IMachineDebugger
11382 /////////////////////////////////////////////////////////////////////////
11383 -->
11384
11385 <interface
11386 name="IMachineDebugger" extends="$unknown"
11387 uuid="b0b2a2dd-0627-4502-91c2-ddc5e77609e0"
11388 wsmap="suppress"
11389 >
11390 <method name="resetStats">
11391 <desc>
11392 Reset VM statistics.
11393 </desc>
11394 <param name="pattern" type="wstring" dir="in">
11395 <desc>The selection pattern. A bit similar to filename globbing.</desc>
11396 </param>
11397 </method>
11398
11399 <method name="dumpStats">
11400 <desc>
11401 Dumps VM statistics.
11402 </desc>
11403 <param name="pattern" type="wstring" dir="in">
11404 <desc>The selection pattern. A bit similar to filename globbing.</desc>
11405 </param>
11406 </method>
11407
11408 <method name="getStats">
11409 <desc>
11410 Get the VM statistics in a XMLish format.
11411 </desc>
11412 <param name="pattern" type="wstring" dir="in">
11413 <desc>The selection pattern. A bit similar to filename globbing.</desc>
11414 </param>
11415 <param name="withDescriptions" type="boolean" dir="in">
11416 <desc>Whether to include the descriptions.</desc>
11417 </param>
11418 <param name="stats" type="wstring" dir="out">
11419 <desc>The XML document containing the statistics.</desc>
11420 </param>
11421 </method>
11422
11423 <method name="injectNMI">
11424 <desc>
11425 Inject an NMI into a running VT-x/AMD-V VM.
11426 </desc>
11427 </method>
11428
11429 <attribute name="singlestep" type="boolean">
11430 <desc>Switch for enabling singlestepping.</desc>
11431 </attribute>
11432
11433 <attribute name="recompileUser" type="boolean">
11434 <desc>Switch for forcing code recompilation for user mode code.</desc>
11435 </attribute>
11436
11437 <attribute name="recompileSupervisor" type="boolean">
11438 <desc>Switch for forcing code recompilation for supervisor mode code.</desc>
11439 </attribute>
11440
11441 <attribute name="PATMEnabled" type="boolean">
11442 <desc>Switch for enabling and disabling the PATM component.</desc>
11443 </attribute>
11444
11445 <attribute name="CSAMEnabled" type="boolean">
11446 <desc>Switch for enabling and disabling the CSAM component.</desc>
11447 </attribute>
11448
11449 <attribute name="logEnabled" type="boolean">
11450 <desc>Switch for enabling and disabling logging.</desc>
11451 </attribute>
11452
11453 <attribute name="HWVirtExEnabled" type="boolean" readonly="yes">
11454 <desc>
11455 Flag indicating whether the VM is currently making use of CPU hardware
11456 virtualization extensions.
11457 </desc>
11458 </attribute>
11459
11460 <attribute name="HWVirtExNestedPagingEnabled" type="boolean" readonly="yes">
11461 <desc>
11462 Flag indicating whether the VM is currently making use of the nested paging
11463 CPU hardware virtualization extension.
11464 </desc>
11465 </attribute>
11466
11467 <attribute name="HWVirtExVPIDEnabled" type="boolean" readonly="yes">
11468 <desc>
11469 Flag indicating whether the VM is currently making use of the VPID
11470 VT-x extension.
11471 </desc>
11472 </attribute>
11473
11474 <attribute name="PAEEnabled" type="boolean" readonly="yes">
11475 <desc>
11476 Flag indicating whether the VM is currently making use of the Physical
11477 Address Extension CPU feature.
11478 </desc>
11479 </attribute>
11480
11481 <attribute name="virtualTimeRate" type="unsigned long">
11482 <desc>
11483 The rate at which the virtual time runs expressed as a percentage.
11484 The accepted range is 2% to 20000%.
11485 </desc>
11486 </attribute>
11487
11488 <!-- @todo method for setting log flags, groups and destination! -->
11489
11490 <attribute name="VM" type="unsigned long long" readonly="yes">
11491 <desc>
11492 Gets the VM handle. This is only for internal use while
11493 we carve the details of this interface.
11494 </desc>
11495 </attribute>
11496
11497 </interface>
11498
11499 <!--
11500 // IUSBController
11501 /////////////////////////////////////////////////////////////////////////
11502 -->
11503
11504 <interface
11505 name="IUSBController" extends="$unknown"
11506 uuid="238540fa-4b73-435a-a38e-4e1d9eab5c17"
11507 wsmap="managed"
11508 >
11509 <attribute name="enabled" type="boolean">
11510 <desc>
11511 Flag whether the USB controller is present in the
11512 guest system. If disabled, the virtual guest hardware will
11513 not contain any USB controller. Can only be changed when
11514 the VM is powered off.
11515 </desc>
11516 </attribute>
11517
11518 <attribute name="enabledEhci" type="boolean">
11519 <desc>
11520 Flag whether the USB EHCI controller is present in the
11521 guest system. If disabled, the virtual guest hardware will
11522 not contain a USB EHCI controller. Can only be changed when
11523 the VM is powered off.
11524 </desc>
11525 </attribute>
11526
11527 <attribute name="USBStandard" type="unsigned short" readonly="yes">
11528 <desc>
11529 USB standard version which the controller implements.
11530 This is a BCD which means that the major version is in the
11531 high byte and minor version is in the low byte.
11532 </desc>
11533 </attribute>
11534
11535 <attribute name="deviceFilters" type="IUSBDeviceFilter" readonly="yes" safearray="yes">
11536 <desc>
11537 List of USB device filters associated with the machine.
11538
11539 If the machine is currently running, these filters are activated
11540 every time a new (supported) USB device is attached to the host
11541 computer that was not ignored by global filters
11542 (<link to="IHost::USBDeviceFilters"/>).
11543
11544 These filters are also activated when the machine is powered up.
11545 They are run against a list of all currently available USB
11546 devices (in states
11547 <link to="USBDeviceState_Available"/>,
11548 <link to="USBDeviceState_Busy"/>,
11549 <link to="USBDeviceState_Held"/>) that were not previously
11550 ignored by global filters.
11551
11552 If at least one filter matches the USB device in question, this
11553 device is automatically captured (attached to) the virtual USB
11554 controller of this machine.
11555
11556 <see>IUSBDeviceFilter, ::IUSBController</see>
11557 </desc>
11558 </attribute>
11559
11560 <method name="createDeviceFilter">
11561 <desc>
11562 Creates a new USB device filter. All attributes except
11563 the filter name are set to @c null (any match),
11564 <i>active</i> is @c false (the filter is not active).
11565
11566 The created filter can then be added to the list of filters using
11567 <link to="#insertDeviceFilter"/>.
11568
11569 <result name="VBOX_E_INVALID_VM_STATE">
11570 The virtual machine is not mutable.
11571 </result>
11572
11573 <see>#deviceFilters</see>
11574 </desc>
11575 <param name="name" type="wstring" dir="in">
11576 <desc>
11577 Filter name. See <link to="IUSBDeviceFilter::name"/>
11578 for more info.
11579 </desc>
11580 </param>
11581 <param name="filter" type="IUSBDeviceFilter" dir="return">
11582 <desc>Created filter object.</desc>
11583 </param>
11584 </method>
11585
11586 <method name="insertDeviceFilter">
11587 <desc>
11588 Inserts the given USB device to the specified position
11589 in the list of filters.
11590
11591 Positions are numbered starting from <tt>0</tt>. If the specified
11592 position is equal to or greater than the number of elements in
11593 the list, the filter is added to the end of the collection.
11594
11595 <note>
11596 Duplicates are not allowed, so an attempt to insert a
11597 filter that is already in the collection, will return an
11598 error.
11599 </note>
11600
11601 <result name="VBOX_E_INVALID_VM_STATE">
11602 Virtual machine is not mutable.
11603 </result>
11604 <result name="E_INVALIDARG">
11605 USB device filter not created within this VirtualBox instance.
11606 </result>
11607 <result name="VBOX_E_INVALID_OBJECT_STATE">
11608 USB device filter already in list.
11609 </result>
11610
11611 <see>#deviceFilters</see>
11612 </desc>
11613 <param name="position" type="unsigned long" dir="in">
11614 <desc>Position to insert the filter to.</desc>
11615 </param>
11616 <param name="filter" type="IUSBDeviceFilter" dir="in">
11617 <desc>USB device filter to insert.</desc>
11618 </param>
11619 </method>
11620
11621 <method name="removeDeviceFilter">
11622 <desc>
11623 Removes a USB device filter from the specified position in the
11624 list of filters.
11625
11626 Positions are numbered starting from <tt>0</tt>. Specifying a
11627 position equal to or greater than the number of elements in
11628 the list will produce an error.
11629
11630 <see>#deviceFilters</see>
11631
11632 <result name="VBOX_E_INVALID_VM_STATE">
11633 Virtual machine is not mutable.
11634 </result>
11635 <result name="E_INVALIDARG">
11636 USB device filter list empty or invalid @a position.
11637 </result>
11638
11639 </desc>
11640 <param name="position" type="unsigned long" dir="in">
11641 <desc>Position to remove the filter from.</desc>
11642 </param>
11643 <param name="filter" type="IUSBDeviceFilter" dir="return">
11644 <desc>Removed USB device filter.</desc>
11645 </param>
11646 </method>
11647
11648 </interface>
11649
11650
11651 <!--
11652 // IUSBDevice
11653 /////////////////////////////////////////////////////////////////////////
11654 -->
11655
11656 <interface
11657 name="IUSBDevice" extends="$unknown"
11658 uuid="f8967b0b-4483-400f-92b5-8b675d98a85b"
11659 wsmap="managed"
11660 >
11661 <desc>
11662 The IUSBDevice interface represents a virtual USB device attached to the
11663 virtual machine.
11664
11665 A collection of objects implementing this interface is stored in the
11666 <link to="IConsole::USBDevices"/> attribute which lists all USB devices
11667 attached to a running virtual machine's USB controller.
11668 </desc>
11669
11670 <attribute name="id" type="wstring" readonly="yes">
11671 <desc>
11672 Unique USB device ID. This ID is built from #vendorId,
11673 #productId, #revision and #serialNumber.
11674 </desc>
11675 </attribute>
11676
11677 <attribute name="vendorId" type="unsigned short" readonly="yes">
11678 <desc>Vendor ID.</desc>
11679 </attribute>
11680
11681 <attribute name="productId" type="unsigned short" readonly="yes">
11682 <desc>Product ID.</desc>
11683 </attribute>
11684
11685 <attribute name="revision" type="unsigned short" readonly="yes">
11686 <desc>
11687 Product revision number. This is a packed BCD represented as
11688 unsigned short. The high byte is the integer part and the low
11689 byte is the decimal.
11690 </desc>
11691 </attribute>
11692
11693 <attribute name="manufacturer" type="wstring" readonly="yes">
11694 <desc>Manufacturer string.</desc>
11695 </attribute>
11696
11697 <attribute name="product" type="wstring" readonly="yes">
11698 <desc>Product string.</desc>
11699 </attribute>
11700
11701 <attribute name="serialNumber" type="wstring" readonly="yes">
11702 <desc>Serial number string.</desc>
11703 </attribute>
11704
11705 <attribute name="address" type="wstring" readonly="yes">
11706 <desc>Host specific address of the device.</desc>
11707 </attribute>
11708
11709 <attribute name="port" type="unsigned short" readonly="yes">
11710 <desc>
11711 Host USB port number the device is physically
11712 connected to.
11713 </desc>
11714 </attribute>
11715
11716 <attribute name="version" type="unsigned short" readonly="yes">
11717 <desc>
11718 The major USB version of the device - 1 or 2.
11719 </desc>
11720 </attribute>
11721
11722 <attribute name="portVersion" type="unsigned short" readonly="yes">
11723 <desc>
11724 The major USB version of the host USB port the device is
11725 physically connected to - 1 or 2. For devices not connected to
11726 anything this will have the same value as the version attribute.
11727 </desc>
11728 </attribute>
11729
11730 <attribute name="remote" type="boolean" readonly="yes">
11731 <desc>
11732 Whether the device is physically connected to a remote VRDP
11733 client or to a local host machine.
11734 </desc>
11735 </attribute>
11736
11737 </interface>
11738
11739
11740 <!--
11741 // IUSBDeviceFilter
11742 /////////////////////////////////////////////////////////////////////////
11743 -->
11744
11745 <interface
11746 name="IUSBDeviceFilter" extends="$unknown"
11747 uuid="d6831fb4-1a94-4c2c-96ef-8d0d6192066d"
11748 wsmap="managed"
11749 >
11750 <desc>
11751 The IUSBDeviceFilter interface represents an USB device filter used
11752 to perform actions on a group of USB devices.
11753
11754 This type of filters is used by running virtual machines to
11755 automatically capture selected USB devices once they are physically
11756 attached to the host computer.
11757
11758 A USB device is matched to the given device filter if and only if all
11759 attributes of the device match the corresponding attributes of the
11760 filter (that is, attributes are joined together using the logical AND
11761 operation). On the other hand, all together, filters in the list of
11762 filters carry the semantics of the logical OR operation. So if it is
11763 desirable to create a match like "this vendor id OR this product id",
11764 one needs to create two filters and specify "any match" (see below)
11765 for unused attributes.
11766
11767 All filter attributes used for matching are strings. Each string
11768 is an expression representing a set of values of the corresponding
11769 device attribute, that will match the given filter. Currently, the
11770 following filtering expressions are supported:
11771
11772 <ul>
11773 <li><i>Interval filters</i>. Used to specify valid intervals for
11774 integer device attributes (Vendor ID, Product ID and Revision).
11775 The format of the string is:
11776
11777 <tt>int:((m)|([m]-[n]))(,(m)|([m]-[n]))*</tt>
11778
11779 where <tt>m</tt> and <tt>n</tt> are integer numbers, either in octal
11780 (starting from <tt>0</tt>), hexadecimal (starting from <tt>0x</tt>)
11781 or decimal (otherwise) form, so that <tt>m &lt; n</tt>. If <tt>m</tt>
11782 is omitted before a dash (<tt>-</tt>), the minimum possible integer
11783 is assumed; if <tt>n</tt> is omitted after a dash, the maximum
11784 possible integer is assumed.
11785 </li>
11786 <li><i>Boolean filters</i>. Used to specify acceptable values for
11787 boolean device attributes. The format of the string is:
11788
11789 <tt>true|false|yes|no|0|1</tt>
11790
11791 </li>
11792 <li><i>Exact match</i>. Used to specify a single value for the given
11793 device attribute. Any string that doesn't start with <tt>int:</tt>
11794 represents the exact match. String device attributes are compared to
11795 this string including case of symbols. Integer attributes are first
11796 converted to a string (see individual filter attributes) and then
11797 compared ignoring case.
11798
11799 </li>
11800 <li><i>Any match</i>. Any value of the corresponding device attribute
11801 will match the given filter. An empty or @c null string is
11802 used to construct this type of filtering expressions.
11803
11804 </li>
11805 </ul>
11806
11807 <note>
11808 On the Windows host platform, interval filters are not currently
11809 available. Also all string filter attributes
11810 (<link to="#manufacturer"/>, <link to="#product"/>,
11811 <link to="#serialNumber"/>) are ignored, so they behave as
11812 <i>any match</i> no matter what string expression is specified.
11813 </note>
11814
11815 <see>IUSBController::deviceFilters, IHostUSBDeviceFilter</see>
11816 </desc>
11817
11818 <attribute name="name" type="wstring">
11819 <desc>
11820 Visible name for this filter.
11821 This name is used to visually distinguish one filter from another,
11822 so it can neither be @c null nor an empty string.
11823 </desc>
11824 </attribute>
11825
11826 <attribute name="active" type="boolean">
11827 <desc>Whether this filter active or has been temporarily disabled.</desc>
11828 </attribute>
11829
11830 <attribute name="vendorId" type="wstring">
11831 <desc>
11832 <link to="IUSBDevice::vendorId">Vendor ID</link> filter.
11833 The string representation for the <i>exact matching</i>
11834 has the form <tt>XXXX</tt>, where <tt>X</tt> is the hex digit
11835 (including leading zeroes).
11836 </desc>
11837 </attribute>
11838
11839 <attribute name="productId" type="wstring">
11840 <desc>
11841 <link to="IUSBDevice::productId">Product ID</link> filter.
11842 The string representation for the <i>exact matching</i>
11843 has the form <tt>XXXX</tt>, where <tt>X</tt> is the hex digit
11844 (including leading zeroes).
11845 </desc>
11846 </attribute>
11847
11848 <attribute name="revision" type="wstring">
11849 <desc>
11850 <link to="IUSBDevice::productId">Product revision number</link>
11851 filter. The string representation for the <i>exact matching</i>
11852 has the form <tt>IIFF</tt>, where <tt>I</tt> is the decimal digit
11853 of the integer part of the revision, and <tt>F</tt> is the
11854 decimal digit of its fractional part (including leading and
11855 trailing zeros).
11856 Note that for interval filters, it's best to use the hexadecimal
11857 form, because the revision is stored as a 16 bit packed BCD value;
11858 so the expression <tt>int:0x0100-0x0199</tt> will match any
11859 revision from <tt>1.0</tt> to <tt>1.99</tt>.
11860 </desc>
11861 </attribute>
11862
11863 <attribute name="manufacturer" type="wstring">
11864 <desc>
11865 <link to="IUSBDevice::manufacturer">Manufacturer</link> filter.
11866 </desc>
11867 </attribute>
11868
11869 <attribute name="product" type="wstring">
11870 <desc>
11871 <link to="IUSBDevice::product">Product</link> filter.
11872 </desc>
11873 </attribute>
11874
11875 <attribute name="serialNumber" type="wstring">
11876 <desc>
11877 <link to="IUSBDevice::serialNumber">Serial number</link> filter.
11878 </desc>
11879 </attribute>
11880
11881 <attribute name="port" type="wstring">
11882 <desc>
11883 <link to="IUSBDevice::port">Host USB port</link> filter.
11884 </desc>
11885 </attribute>
11886
11887 <attribute name="remote" type="wstring">
11888 <desc>
11889 <link to="IUSBDevice::remote">Remote state</link> filter.
11890 <note>
11891 This filter makes sense only for machine USB filters,
11892 i.e. it is ignored by IHostUSBDeviceFilter objects.
11893 </note>
11894 </desc>
11895 </attribute>
11896
11897 <attribute name="maskedInterfaces" type="unsigned long">
11898 <desc>
11899 This is an advanced option for hiding one or more USB interfaces
11900 from the guest. The value is a bit mask where the bits that are set
11901 means the corresponding USB interface should be hidden, masked off
11902 if you like.
11903 This feature only works on Linux hosts.
11904 </desc>
11905 </attribute>
11906
11907 </interface>
11908
11909
11910 <!--
11911 // IHostUSBDevice
11912 /////////////////////////////////////////////////////////////////////////
11913 -->
11914
11915 <enum
11916 name="USBDeviceState"
11917 uuid="b99a2e65-67fb-4882-82fd-f3e5e8193ab4"
11918 >
11919 <desc>
11920 USB device state. This enumeration represents all possible states
11921 of the USB device physically attached to the host computer regarding
11922 its state on the host computer and availability to guest computers
11923 (all currently running virtual machines).
11924
11925 Once a supported USB device is attached to the host, global USB
11926 filters (<link to="IHost::USBDeviceFilters"/>) are activated. They can
11927 either ignore the device, or put it to USBDeviceState_Held state, or do
11928 nothing. Unless the device is ignored by global filters, filters of all
11929 currently running guests (<link to="IUSBController::deviceFilters"/>) are
11930 activated that can put it to USBDeviceState_Captured state.
11931
11932 If the device was ignored by global filters, or didn't match
11933 any filters at all (including guest ones), it is handled by the host
11934 in a normal way. In this case, the device state is determined by
11935 the host and can be one of USBDeviceState_Unavailable, USBDeviceState_Busy
11936 or USBDeviceState_Available, depending on the current device usage.
11937
11938 Besides auto-capturing based on filters, the device can be manually
11939 captured by guests (<link to="IConsole::attachUSBDevice"/>) if its
11940 state is USBDeviceState_Busy, USBDeviceState_Available or
11941 USBDeviceState_Held.
11942
11943 <note>
11944 Due to differences in USB stack implementations in Linux and Win32,
11945 states USBDeviceState_Busy and USBDeviceState_vailable are applicable
11946 only to the Linux version of the product. This also means that (<link
11947 to="IConsole::attachUSBDevice"/>) can only succeed on Win32 if the
11948 device state is USBDeviceState_Held.
11949 </note>
11950
11951 <see>IHostUSBDevice, IHostUSBDeviceFilter</see>
11952 </desc>
11953
11954 <const name="NotSupported" value="0">
11955 <desc>
11956 Not supported by the VirtualBox server, not available to guests.
11957 </desc>
11958 </const>
11959 <const name="Unavailable" value="1">
11960 <desc>
11961 Being used by the host computer exclusively,
11962 not available to guests.
11963 </desc>
11964 </const>
11965 <const name="Busy" value="2">
11966 <desc>
11967 Being used by the host computer, potentially available to guests.
11968 </desc>
11969 </const>
11970 <const name="Available" value="3">
11971 <desc>
11972 Not used by the host computer, available to guests (the host computer
11973 can also start using the device at any time).
11974 </desc>
11975 </const>
11976 <const name="Held" value="4">
11977 <desc>
11978 Held by the VirtualBox server (ignored by the host computer),
11979 available to guests.
11980 </desc>
11981 </const>
11982 <const name="Captured" value="5">
11983 <desc>
11984 Captured by one of the guest computers, not available
11985 to anybody else.
11986 </desc>
11987 </const>
11988 </enum>
11989
11990 <interface
11991 name="IHostUSBDevice" extends="IUSBDevice"
11992 uuid="173b4b44-d268-4334-a00d-b6521c9a740a"
11993 wsmap="managed"
11994 >
11995 <desc>
11996 The IHostUSBDevice interface represents a physical USB device attached
11997 to the host computer.
11998
11999 Besides properties inherited from IUSBDevice, this interface adds the
12000 <link to="#state"/> property that holds the current state of the USB
12001 device.
12002
12003 <see>IHost::USBDevices, IHost::USBDeviceFilters</see>
12004 </desc>
12005
12006 <attribute name="state" type="USBDeviceState" readonly="yes">
12007 <desc>
12008 Current state of the device.
12009 </desc>
12010 </attribute>
12011
12012 <!-- @todo add class, subclass, bandwidth, configs, interfaces endpoints and such later. -->
12013
12014 </interface>
12015
12016
12017 <!--
12018 // IHostUSBDeviceFilter
12019 /////////////////////////////////////////////////////////////////////////
12020 -->
12021
12022 <enum
12023 name="USBDeviceFilterAction"
12024 uuid="cbc30a49-2f4e-43b5-9da6-121320475933"
12025 >
12026 <desc>
12027 Actions for host USB device filters.
12028 <see>IHostUSBDeviceFilter, USBDeviceState</see>
12029 </desc>
12030
12031 <const name="Null" value="0">
12032 <desc>Null value (never used by the API).</desc>
12033 </const>
12034 <const name="Ignore" value="1">
12035 <desc>Ignore the matched USB device.</desc>
12036 </const>
12037 <const name="Hold" value="2">
12038 <desc>Hold the matched USB device.</desc>
12039 </const>
12040 </enum>
12041
12042 <interface
12043 name="IHostUSBDeviceFilter" extends="IUSBDeviceFilter"
12044 uuid="4cc70246-d74a-400f-8222-3900489c0374"
12045 wsmap="managed"
12046 >
12047 <desc>
12048 The IHostUSBDeviceFilter interface represents a global filter for a
12049 physical USB device used by the host computer. Used indirectly in
12050 <link to="IHost::USBDeviceFilters"/>.
12051
12052 Using filters of this type, the host computer determines the initial
12053 state of the USB device after it is physically attached to the
12054 host's USB controller.
12055
12056 <note>
12057 The <link to="#remote"/> attribute is ignored by this type of
12058 filters, because it makes sense only for
12059 <link to="IUSBController::deviceFilters">machine USB filters</link>.
12060 </note>
12061
12062 <see>IHost::USBDeviceFilters</see>
12063 </desc>
12064
12065 <attribute name="action" type="USBDeviceFilterAction">
12066 <desc>
12067 Action performed by the host when an attached USB device
12068 matches this filter.
12069 </desc>
12070 </attribute>
12071
12072 </interface>
12073
12074 <!--
12075 // IAudioAdapter
12076 /////////////////////////////////////////////////////////////////////////
12077 -->
12078
12079 <enum
12080 name="AudioDriverType"
12081 uuid="4bcc3d73-c2fe-40db-b72f-0c2ca9d68496"
12082 >
12083 <desc>
12084 Host audio driver type.
12085 </desc>
12086
12087 <const name="Null" value="0">
12088 <desc>Null value, also means "dummy audio driver".</desc>
12089 </const>
12090 <const name="WinMM" value="1"/>
12091 <const name="OSS" value="2"/>
12092 <const name="ALSA" value="3"/>
12093 <const name="DirectSound" value="4"/>
12094 <const name="CoreAudio" value="5"/>
12095 <const name="MMPM" value="6"/>
12096 <const name="Pulse" value="7"/>
12097 <const name="SolAudio" value="8"/>
12098 </enum>
12099
12100 <enum
12101 name="AudioControllerType"
12102 uuid="7afd395c-42c3-444e-8788-3ce80292f36c"
12103 >
12104 <desc>
12105 Virtual audio controller type.
12106 </desc>
12107
12108 <const name="AC97" value="0"/>
12109 <const name="SB16" value="1"/>
12110 </enum>
12111
12112 <interface
12113 name="IAudioAdapter" extends="$unknown"
12114 uuid="921873db-5f3f-4b69-91f9-7be9e535a2cb"
12115 wsmap="managed"
12116 >
12117 <desc>
12118 The IAudioAdapter interface represents the virtual audio adapter of
12119 the virtual machine. Used in <link to="IMachine::audioAdapter"/>.
12120 </desc>
12121 <attribute name="enabled" type="boolean">
12122 <desc>
12123 Flag whether the audio adapter is present in the
12124 guest system. If disabled, the virtual guest hardware will
12125 not contain any audio adapter. Can only be changed when
12126 the VM is not running.
12127 </desc>
12128 </attribute>
12129 <attribute name="audioController" type="AudioControllerType">
12130 <desc>
12131 The audio hardware we emulate.
12132 </desc>
12133 </attribute>
12134 <attribute name="audioDriver" type="AudioDriverType">
12135 <desc>
12136 Audio driver the adapter is connected to. This setting
12137 can only be changed when the VM is not running.
12138 </desc>
12139 </attribute>
12140 </interface>
12141
12142 <!--
12143 // IVRDPServer
12144 /////////////////////////////////////////////////////////////////////////
12145 -->
12146
12147 <enum
12148 name="VRDPAuthType"
12149 uuid="3d91887a-b67f-4b33-85bf-2da7ab1ea83a"
12150 >
12151 <desc>
12152 VRDP authentication type.
12153 </desc>
12154
12155 <const name="Null" value="0">
12156 <desc>Null value, also means "no authentication".</desc>
12157 </const>
12158 <const name="External" value="1"/>
12159 <const name="Guest" value="2"/>
12160 </enum>
12161
12162 <interface
12163 name="IVRDPServer" extends="$unknown"
12164 uuid="f4584ae7-6bce-474b-83d6-17d235e6aa89"
12165 wsmap="managed"
12166 >
12167 <attribute name="enabled" type="boolean">
12168 <desc>VRDP server status.</desc>
12169 </attribute>
12170
12171 <attribute name="port" type="unsigned long">
12172 <desc>
12173 VRDP server port number.
12174 <note>
12175 Setting the value of this property to <tt>0</tt> will reset the port
12176 number to the default value which is
12177 currently <tt>3389</tt>. Reading this property will always return a
12178 real port number, even after it has been set to <tt>0</tt> (in which
12179 case the default port is returned).
12180 </note>
12181 </desc>
12182 </attribute>
12183
12184 <attribute name="netAddress" type="wstring">
12185 <desc>VRDP server address.</desc>
12186 </attribute>
12187
12188 <attribute name="authType" type="VRDPAuthType">
12189 <desc>VRDP authentication method.</desc>
12190 </attribute>
12191
12192 <attribute name="authTimeout" type="unsigned long">
12193 <desc>Timeout for guest authentication. Milliseconds.</desc>
12194 </attribute>
12195
12196 <attribute name="allowMultiConnection" type="boolean">
12197 <desc>
12198 Flag whether multiple simultaneous connections to the VM are permitted.
12199 Note that this will be replaced by a more powerful mechanism in the future.
12200 </desc>
12201 </attribute>
12202
12203 <attribute name="reuseSingleConnection" type="boolean">
12204 <desc>
12205 Flag whether the existing connection must be dropped and a new connection
12206 must be established by the VRDP server, when a new client connects in single
12207 connection mode.
12208 </desc>
12209 </attribute>
12210
12211 </interface>
12212
12213
12214 <!--
12215 // ISharedFolder
12216 /////////////////////////////////////////////////////////////////////////
12217 -->
12218
12219 <interface
12220 name="ISharedFolder" extends="$unknown"
12221 uuid="64637bb2-9e17-471c-b8f3-f8968dd9884e"
12222 wsmap="struct"
12223 >
12224 <desc>
12225 The ISharedFolder interface represents a folder in the host computer's
12226 file system accessible from the guest OS running inside a virtual
12227 machine using an associated logical name.
12228
12229 There are three types of shared folders:
12230 <ul>
12231 <li><i>Global</i> (<link to="IVirtualBox::sharedFolders"/>), shared
12232 folders available to all virtual machines.</li>
12233 <li><i>Permanent</i> (<link to="IMachine::sharedFolders"/>),
12234 VM-specific shared folders available to the given virtual machine at
12235 startup.</li>
12236 <li><i>Transient</i> (<link to="IConsole::sharedFolders"/>),
12237 VM-specific shared folders created in the session context (for
12238 example, when the virtual machine is running) and automatically
12239 discarded when the session is closed (the VM is powered off).</li>
12240 </ul>
12241
12242 Logical names of shared folders must be unique within the given scope
12243 (global, permanent or transient). However, they do not need to be unique
12244 across scopes. In this case, the definition of the shared folder in a
12245 more specific scope takes precedence over definitions in all other
12246 scopes. The order of precedence is (more specific to more general):
12247 <ol>
12248 <li>Transient definitions</li>
12249 <li>Permanent definitions</li>
12250 <li>Global definitions</li>
12251 </ol>
12252
12253 For example, if MyMachine has a shared folder named
12254 <tt>C_DRIVE</tt> (that points to <tt>C:\\</tt>), then creating a
12255 transient shared folder named <tt>C_DRIVE</tt> (that points
12256 to <tt>C:\\\\WINDOWS</tt>) will change the definition
12257 of <tt>C_DRIVE</tt> in the guest OS so
12258 that <tt>\\\\VBOXSVR\\C_DRIVE</tt> will give access
12259 to <tt>C:\\WINDOWS</tt> instead of <tt>C:\\</tt> on the host
12260 PC. Removing the transient shared folder <tt>C_DRIVE</tt> will restore
12261 the previous (permanent) definition of <tt>C_DRIVE</tt> that points
12262 to <tt>C:\\</tt> if it still exists.
12263
12264 Note that permanent and transient shared folders of different machines
12265 are in different name spaces, so they don't overlap and don't need to
12266 have unique logical names.
12267
12268 <note>
12269 Global shared folders are not implemented in the current version of the
12270 product.
12271 </note>
12272 </desc>
12273
12274 <attribute name="name" type="wstring" readonly="yes">
12275 <desc>Logical name of the shared folder.</desc>
12276 </attribute>
12277
12278 <attribute name="hostPath" type="wstring" readonly="yes">
12279 <desc>Full path to the shared folder in the host file system.</desc>
12280 </attribute>
12281
12282 <attribute name="accessible" type="boolean" readonly="yes">
12283 <desc>
12284 Whether the folder defined by the host path is currently
12285 accessible or not.
12286 For example, the folder can be unaccessible if it is placed
12287 on the network share that is not available by the time
12288 this property is read.
12289 </desc>
12290 </attribute>
12291
12292 <attribute name="writable" type="boolean" readonly="yes">
12293 <desc>
12294 Whether the folder defined by the host path is writable or
12295 not.
12296 </desc>
12297 </attribute>
12298
12299 <attribute name="lastAccessError" type="wstring" readonly="yes">
12300 <desc>
12301 Text message that represents the result of the last accessibility
12302 check.
12303
12304 Accessibility checks are performed each time the <link to="#accessible"/>
12305 attribute is read. A @c null string is returned if the last
12306 accessibility check was successful. A non-@c null string indicates a
12307 failure and should normally describe a reason of the failure (for
12308 example, a file read error).
12309 </desc>
12310 </attribute>
12311
12312 </interface>
12313
12314 <!--
12315 // ISession
12316 /////////////////////////////////////////////////////////////////////////
12317 -->
12318
12319 <interface
12320 name="IInternalSessionControl" extends="$unknown"
12321 uuid="b26552e7-9534-4f47-b766-98eac648a90d"
12322 internal="yes"
12323 wsmap="suppress"
12324 >
12325 <method name="getPID">
12326 <desc>PID of the process that has created this Session object.
12327 </desc>
12328 <param name="pid" type="unsigned long" dir="return"/>
12329 </method>
12330
12331 <method name="getRemoteConsole">
12332 <desc>
12333 Returns the console object suitable for remote control.
12334
12335 <result name="VBOX_E_INVALID_VM_STATE">
12336 Session state prevents operation.
12337 </result>
12338 <result name="VBOX_E_INVALID_OBJECT_STATE">
12339 Session type prevents operation.
12340 </result>
12341
12342 </desc>
12343 <param name="console" type="IConsole" dir="return"/>
12344 </method>
12345
12346 <method name="assignMachine">
12347 <desc>
12348 Assigns the machine object associated with this direct-type
12349 session or informs the session that it will be a remote one
12350 (if @a machine == @c null).
12351
12352 <result name="VBOX_E_INVALID_VM_STATE">
12353 Session state prevents operation.
12354 </result>
12355 <result name="VBOX_E_INVALID_OBJECT_STATE">
12356 Session type prevents operation.
12357 </result>
12358
12359 </desc>
12360 <param name="machine" type="IMachine" dir="in"/>
12361 </method>
12362
12363 <method name="assignRemoteMachine">
12364 <desc>
12365 Assigns the machine and the (remote) console object associated with
12366 this remote-type session.
12367
12368 <result name="VBOX_E_INVALID_VM_STATE">
12369 Session state prevents operation.
12370 </result>
12371
12372 </desc>
12373 <param name="machine" type="IMachine" dir="in"/>
12374 <param name="console" type="IConsole" dir="in"/>
12375 </method>
12376
12377 <method name="updateMachineState">
12378 <desc>
12379 Updates the machine state in the VM process.
12380 Must be called only in certain cases
12381 (see the method implementation).
12382
12383 <result name="VBOX_E_INVALID_VM_STATE">
12384 Session state prevents operation.
12385 </result>
12386 <result name="VBOX_E_INVALID_OBJECT_STATE">
12387 Session type prevents operation.
12388 </result>
12389
12390 </desc>
12391 <param name="aMachineState" type="MachineState" dir="in"/>
12392 </method>
12393
12394 <method name="uninitialize">
12395 <desc>
12396 Uninitializes (closes) this session. Used by VirtualBox to close
12397 the corresponding remote session when the direct session dies
12398 or gets closed.
12399
12400 <result name="VBOX_E_INVALID_VM_STATE">
12401 Session state prevents operation.
12402 </result>
12403
12404 </desc>
12405 </method>
12406
12407 <method name="onDVDDriveChange">
12408 <desc>
12409 Triggered when settings of the DVD drive object of the
12410 associated virtual machine have changed.
12411
12412 <result name="VBOX_E_INVALID_VM_STATE">
12413 Session state prevents operation.
12414 </result>
12415 <result name="VBOX_E_INVALID_OBJECT_STATE">
12416 Session type prevents operation.
12417 </result>
12418
12419 </desc>
12420 </method>
12421
12422 <method name="onFloppyDriveChange">
12423 <desc>
12424 Triggered when settings of the floppy drive object of the
12425 associated virtual machine have changed.
12426
12427 <result name="VBOX_E_INVALID_VM_STATE">
12428 Session state prevents operation.
12429 </result>
12430 <result name="VBOX_E_INVALID_OBJECT_STATE">
12431 Session type prevents operation.
12432 </result>
12433
12434 </desc>
12435 </method>
12436
12437 <method name="onNetworkAdapterChange">
12438 <desc>
12439 Triggered when settings of a network adapter of the
12440 associated virtual machine have changed.
12441
12442 <result name="VBOX_E_INVALID_VM_STATE">
12443 Session state prevents operation.
12444 </result>
12445 <result name="VBOX_E_INVALID_OBJECT_STATE">
12446 Session type prevents operation.
12447 </result>
12448
12449 </desc>
12450 <param name="networkAdapter" type="INetworkAdapter" dir="in"/>
12451 </method>
12452
12453 <method name="onSerialPortChange">
12454 <desc>
12455 Triggered when settings of a serial port of the
12456 associated virtual machine have changed.
12457
12458 <result name="VBOX_E_INVALID_VM_STATE">
12459 Session state prevents operation.
12460 </result>
12461 <result name="VBOX_E_INVALID_OBJECT_STATE">
12462 Session type prevents operation.
12463 </result>
12464
12465 </desc>
12466 <param name="serialPort" type="ISerialPort" dir="in"/>
12467 </method>
12468
12469 <method name="onParallelPortChange">
12470 <desc>
12471 Triggered when settings of a parallel port of the
12472 associated virtual machine have changed.
12473
12474 <result name="VBOX_E_INVALID_VM_STATE">
12475 Session state prevents operation.
12476 </result>
12477 <result name="VBOX_E_INVALID_OBJECT_STATE">
12478 Session type prevents operation.
12479 </result>
12480
12481 </desc>
12482 <param name="parallelPort" type="IParallelPort" dir="in"/>
12483 </method>
12484
12485 <method name="onStorageControllerChange">
12486 <desc>
12487 Triggered when settings of a storage controller of the
12488 associated virtual machine have changed.
12489
12490 <result name="VBOX_E_INVALID_VM_STATE">
12491 Session state prevents operation.
12492 </result>
12493 <result name="VBOX_E_INVALID_OBJECT_STATE">
12494 Session type prevents operation.
12495 </result>
12496
12497 </desc>
12498 </method>
12499
12500 <method name="onVRDPServerChange">
12501 <desc>
12502 Triggered when settings of the VRDP server object of the
12503 associated virtual machine have changed.
12504
12505 <result name="VBOX_E_INVALID_VM_STATE">
12506 Session state prevents operation.
12507 </result>
12508 <result name="VBOX_E_INVALID_OBJECT_STATE">
12509 Session type prevents operation.
12510 </result>
12511
12512 </desc>
12513 </method>
12514
12515 <method name="onUSBControllerChange">
12516 <desc>
12517 Triggered when settings of the USB controller object of the
12518 associated virtual machine have changed.
12519
12520 <result name="VBOX_E_INVALID_VM_STATE">
12521 Session state prevents operation.
12522 </result>
12523 <result name="VBOX_E_INVALID_OBJECT_STATE">
12524 Session type prevents operation.
12525 </result>
12526
12527 </desc>
12528 </method>
12529
12530 <method name="onSharedFolderChange">
12531 <desc>
12532 Triggered when a permanent (global or machine) shared folder has been
12533 created or removed.
12534 <note>
12535 We don't pass shared folder parameters in this notification because
12536 the order in which parallel notifications are delivered is not defined,
12537 therefore it could happen that these parameters were outdated by the
12538 time of processing this notification.
12539 </note>
12540
12541 <result name="VBOX_E_INVALID_VM_STATE">
12542 Session state prevents operation.
12543 </result>
12544 <result name="VBOX_E_INVALID_OBJECT_STATE">
12545 Session type prevents operation.
12546 </result>
12547
12548 </desc>
12549 <param name="global" type="boolean" dir="in"/>
12550 </method>
12551
12552 <method name="onUSBDeviceAttach">
12553 <desc>
12554 Triggered when a request to capture a USB device (as a result
12555 of matched USB filters or direct call to
12556 <link to="IConsole::attachUSBDevice"/>) has completed.
12557 A @c null @a error object means success, otherwise it
12558 describes a failure.
12559
12560 <result name="VBOX_E_INVALID_VM_STATE">
12561 Session state prevents operation.
12562 </result>
12563 <result name="VBOX_E_INVALID_OBJECT_STATE">
12564 Session type prevents operation.
12565 </result>
12566
12567 </desc>
12568 <param name="device" type="IUSBDevice" dir="in"/>
12569 <param name="error" type="IVirtualBoxErrorInfo" dir="in"/>
12570 <param name="maskedInterfaces" type="unsigned long" dir="in"/>
12571 </method>
12572
12573 <method name="onUSBDeviceDetach">
12574 <desc>
12575 Triggered when a request to release the USB device (as a result
12576 of machine termination or direct call to
12577 <link to="IConsole::detachUSBDevice"/>) has completed.
12578 A @c null @a error object means success, otherwise it
12579
12580 <result name="VBOX_E_INVALID_VM_STATE">
12581 Session state prevents operation.
12582 </result>
12583 <result name="VBOX_E_INVALID_OBJECT_STATE">
12584 Session type prevents operation.
12585 </result>
12586
12587 </desc>
12588 <param name="id" type="wstring" dir="in"/>
12589 <param name="error" type="IVirtualBoxErrorInfo" dir="in"/>
12590 </method>
12591
12592 <method name="onShowWindow">
12593 <desc>
12594 Called by <link to="IMachine::canShowConsoleWindow"/> and by
12595 <link to="IMachine::showConsoleWindow"/> in order to notify
12596 console callbacks
12597 <link to="IConsoleCallback::onCanShowWindow"/>
12598 and <link to="IConsoleCallback::onShowWindow"/>.
12599
12600 <result name="VBOX_E_INVALID_OBJECT_STATE">
12601 Session type prevents operation.
12602 </result>
12603
12604 </desc>
12605 <param name="check" type="boolean" dir="in"/>
12606 <param name="canShow" type="boolean" dir="out"/>
12607 <param name="winId" type="unsigned long long" dir="out"/>
12608 </method>
12609
12610 <method name="accessGuestProperty">
12611 <desc>
12612 Called by <link to="IMachine::getGuestProperty"/> and by
12613 <link to="IMachine::setGuestProperty"/> in order to read and
12614 modify guest properties.
12615
12616 <result name="VBOX_E_INVALID_VM_STATE">
12617 Machine session is not open.
12618 </result>
12619 <result name="VBOX_E_INVALID_OBJECT_STATE">
12620 Session type is not direct.
12621 </result>
12622
12623 </desc>
12624 <param name="name" type="wstring" dir="in"/>
12625 <param name="value" type="wstring" dir="in"/>
12626 <param name="flags" type="wstring" dir="in"/>
12627 <param name="isSetter" type="boolean" dir="in"/>
12628 <param name="retValue" type="wstring" dir="out"/>
12629 <param name="retTimestamp" type="unsigned long long" dir="out"/>
12630 <param name="retFlags" type="wstring" dir="out"/>
12631 </method>
12632
12633 <method name="enumerateGuestProperties">
12634 <desc>
12635 Return a list of the guest properties matching a set of patterns along
12636 with their values, time stamps and flags.
12637
12638 <result name="VBOX_E_INVALID_VM_STATE">
12639 Machine session is not open.
12640 </result>
12641 <result name="VBOX_E_INVALID_OBJECT_STATE">
12642 Session type is not direct.
12643 </result>
12644
12645 </desc>
12646 <param name="patterns" type="wstring" dir="in">
12647 <desc>
12648 The patterns to match the properties against as a comma-separated
12649 string. If this is empty, all properties currently set will be
12650 returned.
12651 </desc>
12652 </param>
12653 <param name="key" type="wstring" dir="out" safearray="yes">
12654 <desc>
12655 The key names of the properties returned.
12656 </desc>
12657 </param>
12658 <param name="value" type="wstring" dir="out" safearray="yes">
12659 <desc>
12660 The values of the properties returned. The array entries match the
12661 corresponding entries in the @a key array.
12662 </desc>
12663 </param>
12664 <param name="timestamp" type="unsigned long long" dir="out" safearray="yes">
12665 <desc>
12666 The time stamps of the properties returned. The array entries match
12667 the corresponding entries in the @a key array.
12668 </desc>
12669 </param>
12670 <param name="flags" type="wstring" dir="out" safearray="yes">
12671 <desc>
12672 The flags of the properties returned. The array entries match the
12673 corresponding entries in the @a key array.
12674 </desc>
12675 </param>
12676 </method>
12677
12678 </interface>
12679
12680 <interface
12681 name="ISession" extends="$dispatched"
12682 uuid="12F4DCDB-12B2-4ec1-B7CD-DDD9F6C5BF4D"
12683 wsmap="managed"
12684 >
12685 <desc>
12686 The ISession interface represents a serialization primitive for virtual
12687 machines.
12688
12689 With VirtualBox, every time one wishes to manipulate a virtual machine
12690 (e.g. change its settings or start execution), a session object is
12691 required. Such an object must be passed to one of the session methods
12692 that open the given session, which then initiates the machine manipulation.
12693
12694 A session serves several purposes: it identifies to the inter-process VirtualBox
12695 code which process is currently working with the virtual machine, and it ensures
12696 that there are no incompatible requests from several processes for the
12697 same virtual machine. Session objects can therefore be thought of as mutex
12698 semaphores that lock virtual machines to prevent conflicting accesses from
12699 several processes.
12700
12701 How sessions objects are used depends on whether you use the Main API
12702 via COM or via the webservice:
12703
12704 <ul>
12705 <li>When using the COM API directly, an object of the Session class from the
12706 VirtualBox type library needs to be created. In regular COM C++ client code,
12707 this can be done by calling <tt>createLocalObject()</tt>, a standard COM API.
12708 This object will then act as a local session object in further calls to open
12709 a session.
12710 </li>
12711
12712 <li>In the webservice, the session manager (IWebsessionManager) instead creates
12713 one session object automatically when <link to="IWebsessionManager::logon" />
12714 is called. A managed object reference to that session object can be retrieved by
12715 calling <link to="IWebsessionManager::getSessionObject" />. This session object
12716 reference can then be used to open sessions.
12717 </li>
12718 </ul>
12719
12720 Sessions are mainly used in two variations:
12721
12722 <ul>
12723 <li>
12724 To start a virtual machine in a separate process, one would call
12725 <link to="IVirtualBox::openRemoteSession"/>, which requires a session
12726 object as its first parameter. This session then identifies the caller
12727 and lets him control the started machine (for example, pause machine
12728 execution or power it down) as well as be notified about machine
12729 execution state changes.
12730 </li>
12731
12732 <li>To alter machine settings, or to start machine execution within the
12733 current process, one needs to open a direct session for the machine first by
12734 calling <link to="IVirtualBox::openSession"/>. While a direct session
12735 is open within one process, no any other process may open another direct
12736 session for the same machine. This prevents the machine from being changed
12737 by other processes while it is running or while the machine is being configured.
12738 </li>
12739 </ul>
12740
12741 One also can attach to an existing direct session already opened by
12742 another process (for example, in order to send a control request to the
12743 virtual machine such as the pause or the reset request). This is done by
12744 calling <link to="IVirtualBox::openExistingSession"/>.
12745
12746 <note>
12747 Unless you are trying to write a new VirtualBox front-end that
12748 performs direct machine execution (like the VirtualBox or VBoxSDL
12749 front-ends), don't call <link to="IConsole::powerUp"/> in a direct
12750 session opened by <link to="IVirtualBox::openSession"/> and use this
12751 session only to change virtual machine settings. If you simply want to
12752 start virtual machine execution using one of the existing front-ends
12753 (for example the VirtualBox GUI or headless server), simply use
12754 <link to="IVirtualBox::openRemoteSession"/>; these front-ends
12755 will power up the machine automatically for you.
12756 </note>
12757 </desc>
12758
12759 <attribute name="state" type="SessionState" readonly="yes">
12760 <desc>Current state of this session.</desc>
12761 </attribute>
12762
12763 <attribute name="type" type="SessionType" readonly="yes">
12764 <desc>
12765 Type of this session. The value of this attribute is valid only
12766 if the session is currently open (i.e. its #state is
12767 SessionType_SessionOpen), otherwise an error will be returned.
12768 </desc>
12769 </attribute>
12770
12771 <attribute name="machine" type="IMachine" readonly="yes">
12772 <desc>Machine object associated with this session.</desc>
12773 </attribute>
12774
12775 <attribute name="console" type="IConsole" readonly="yes">
12776 <desc>Console object associated with this session.</desc>
12777 </attribute>
12778
12779 <method name="close">
12780 <desc>
12781 Closes a session that was previously opened.
12782
12783 It is recommended that every time an "open session" method (such as
12784 <link to="IVirtualBox::openRemoteSession" /> or
12785 <link to="IVirtualBox::openSession" />) has been called to
12786 manipulate a virtual machine, the caller invoke
12787 ISession::close() when it's done doing so. Since sessions are
12788 serialization primitives much like ordinary mutexes, they are
12789 best used the same way: for each "open" call, there should be
12790 a matching "close" call, even when errors occur.
12791
12792 Otherwise, if a direct session for a machine opened with
12793 <link to="IVirtualBox::openSession"/> is not explicitly closed
12794 when the application terminates, the state of the machine will
12795 be set to <link to="MachineState_Aborted" /> on the server.
12796
12797 Generally, it is recommended to close all open sessions explicitly
12798 before terminating the application (regardless of the reason for
12799 the termination).
12800
12801 <note>
12802 Do not expect the session state (<link to="ISession::state" />
12803 to return to "Closed" immediately after you invoke
12804 ISession::close(), particularly if you have started a remote
12805 session to execute the VM in a new process. The session state will
12806 automatically return to "Closed" once the VM is no longer executing,
12807 which can of course take a very long time.
12808 </note>
12809
12810 <result name="E_UNEXPECTED">
12811 Session is not open.
12812 </result>
12813
12814 </desc>
12815 </method>
12816
12817 </interface>
12818
12819 <!--
12820 // IStorageController
12821 /////////////////////////////////////////////////////////////////////////
12822 -->
12823
12824 <enum
12825 name="StorageBus"
12826 uuid="f381fdca-5953-41d0-b2bd-0542b012698d"
12827 >
12828 <desc>
12829 The connection type of the storage controller.
12830 </desc>
12831 <const name="Null" value="0">
12832 <desc>@c null value. Never used by the API.</desc>
12833 </const>
12834 <const name="IDE" value="1"/>
12835 <const name="SATA" value="2"/>
12836 <const name="SCSI" value="3"/>
12837 </enum>
12838
12839 <enum
12840 name="StorageControllerType"
12841 uuid="685387db-a837-4320-a258-08f46a22f62a"
12842 >
12843 <desc>
12844 Storage controller type.
12845 </desc>
12846
12847 <const name="Null" value="0">
12848 <desc>@c null value. Never used by the API.</desc>
12849 </const>
12850 <const name="LsiLogic" value="1"/>
12851 <const name="BusLogic" value="2"/>
12852 <const name="IntelAhci" value="3"/>
12853 <const name="PIIX3" value="4"/>
12854 <const name="PIIX4" value="5"/>
12855 <const name="ICH6" value="6"/>
12856 </enum>
12857
12858 <interface
12859 name="IStorageController" extends="$unknown"
12860 uuid="6bf8335b-d14a-44a5-9b45-ddc49ce7d5b2"
12861 wsmap="managed"
12862 >
12863 <desc>
12864 Represents a storage controller that is attached to a virtual machine
12865 (<link to="IMachine" />). Just as hard disks are attached to storage
12866 controllers in a real computer, virtual hard disks (represented by
12867 <link to="IHardDisk" />) are attached to virtual storage controllers,
12868 represented by this interface.
12869
12870 VirtualBox supports three types of virtual storage controller hardware:
12871 IDE, SCSI, and SATA (see <link to="#bus" />). Depending on which of
12872 these three is used, certain sub-types are available and can be
12873 selected in <link to="#controllerType" />.
12874 </desc>
12875
12876 <attribute name="name" type="wstring" readonly="yes">
12877 <desc>
12878 Name of the storage controller, as originally specified with
12879 <link to="IMachine::addStorageController" />. This then uniquely
12880 identifies this controller with other method calls such as
12881 <link to="IMachine::attachHardDisk" />.
12882 </desc>
12883 </attribute>
12884
12885 <attribute name="maxDevicesPerPortCount" type="unsigned long" readonly="yes">
12886 <desc>
12887 Maximum number of devices which can be attached to one port.
12888 </desc>
12889 </attribute>
12890
12891 <attribute name="minPortCount" type="unsigned long" readonly="yes">
12892 <desc>
12893 Minimum number of ports that <link to="IStorageController::portCount"/> can be set to.
12894 </desc>
12895 </attribute>
12896
12897 <attribute name="maxPortCount" type="unsigned long" readonly="yes">
12898 <desc>
12899 Maximum number of ports that <link to="IStorageController::portCount"/> can be set to.
12900 </desc>
12901 </attribute>
12902
12903 <attribute name="instance" type="unsigned long">
12904 <desc>
12905 The instance number of the device in the running VM.
12906 </desc>
12907 </attribute>
12908
12909 <attribute name="portCount" type="unsigned long">
12910 <desc>
12911 The number of currently usable ports on the controller.
12912 The minimum and maximum number of ports for one controller are
12913 stored in <link to="IStorageController::minPortCount"/>
12914 and <link to="IStorageController::maxPortCount"/>.
12915 </desc>
12916 </attribute>
12917
12918 <attribute name="bus" type="StorageBus" readonly="yes">
12919 <desc>
12920 The connection type of the storage controller.
12921 </desc>
12922 </attribute>
12923
12924 <attribute name="controllerType" type="StorageControllerType">
12925 <desc>
12926 Type of the virtual storage controller. Depending on this value,
12927 VirtualBox will provide a different virtual storage controller hardware
12928 to the guest.
12929
12930 For SCSI controllers, the default type is LsiLogic.
12931 </desc>
12932 </attribute>
12933
12934 <method name="GetIDEEmulationPort">
12935 <desc>
12936 Gets the corresponding port number which is emulated as an IDE device.
12937
12938 <result name="E_INVALIDARG">
12939 The @a devicePosition is not in the range 0 to 3.
12940 </result>
12941 <result name="E_NOTIMPL">
12942 The storage controller type is not SATAIntelAhci.
12943 </result>
12944
12945 </desc>
12946 <param name="devicePosition" type="long" dir="in"/>
12947 <param name="portNumber" type="long" dir="return"/>
12948 </method>
12949
12950 <method name="SetIDEEmulationPort">
12951 <desc>
12952 Sets the port number which is emulated as an IDE device.
12953
12954 <result name="E_INVALIDARG">
12955 The @a devicePosition is not in the range 0 to 3 or the
12956 @a portNumber is not in the range 0 to 29.
12957 </result>
12958 <result name="E_NOTIMPL">
12959 The storage controller type is not SATAIntelAhci.
12960 </result>
12961
12962 </desc>
12963 <param name="devicePosition" type="long" dir="in"/>
12964 <param name="portNumber" type="long" dir="in"/>
12965 </method>
12966
12967 </interface>
12968
12969<if target="wsdl">
12970
12971 <!--
12972 // IManagedObjectRef
12973 /////////////////////////////////////////////////////////////////////////
12974 -->
12975
12976 <interface
12977 name="IManagedObjectRef" extends="$unknown"
12978 uuid="9474d09d-2313-46de-b568-a42b8718e8ed"
12979 internal="yes"
12980 wsmap="managed"
12981 wscpp="hardcoded"
12982 >
12983 <desc>
12984 Managed object reference.
12985
12986 Only within the webservice, a managed object reference (which is really
12987 an opaque number) allows a webservice client to address an object
12988 that lives in the address space of the webservice server.
12989
12990 Behind each managed object reference, there is a COM object that lives
12991 in the webservice server's address space. The COM object is not freed
12992 until the managed object reference is released, either by an explicit
12993 call to <link to="IManagedObjectRef::release" /> or by logging off from
12994 the webservice (<link to="IWebsessionManager::logoff" />), which releases
12995 all objects created during the webservice session.
12996
12997 Whenever a method call of the VirtualBox API returns a COM object, the
12998 webservice representation of that method will instead return a
12999 managed object reference, which can then be used to invoke methods
13000 on that object.
13001 </desc>
13002
13003 <method name="getInterfaceName">
13004 <desc>
13005 Returns the name of the interface that this managed object represents,
13006 for example, "IMachine", as a string.
13007 </desc>
13008 <param name="return" type="wstring" dir="return"/>
13009 </method>
13010
13011 <method name="release">
13012 <desc>
13013 Releases this managed object reference and frees the resources that
13014 were allocated for it in the webservice server process. After calling
13015 this method, the identifier of the reference can no longer be used.
13016 </desc>
13017 </method>
13018
13019 </interface>
13020
13021 <!--
13022 // IWebsessionManager
13023 /////////////////////////////////////////////////////////////////////////
13024 -->
13025
13026 <interface
13027 name="IWebsessionManager" extends="$unknown"
13028 uuid="dea1b4c7-2de3-418a-850d-7868617f7733"
13029 internal="yes"
13030 wsmap="global"
13031 wscpp="hardcoded"
13032 >
13033 <desc>
13034 Websession manager. This provides essential services
13035 to webservice clients.
13036 </desc>
13037 <method name="logon">
13038 <desc>
13039 Logs a new client onto the webservice and returns a managed object reference to
13040 the IVirtualBox instance, which the client can then use as a basis to further
13041 queries, since all calls to the VirtualBox API are based on the IVirtualBox
13042 interface, in one way or the other.
13043 </desc>
13044 <param name="username" type="wstring" dir="in"/>
13045 <param name="password" type="wstring" dir="in"/>
13046 <param name="return" type="IVirtualBox" dir="return"/>
13047 </method>
13048
13049 <method name="getSessionObject">
13050 <desc>
13051 Returns a managed object reference to the internal ISession object that was created
13052 for this web service session when the client logged on.
13053
13054 <see>ISession</see>
13055 </desc>
13056 <param name="refIVirtualBox" type="IVirtualBox" dir="in"/>
13057 <param name="return" type="ISession" dir="return"/>
13058 </method>
13059
13060 <method name="logoff">
13061 <desc>
13062 Logs off the client who has previously logged on with <link to="IWebsessionManager::logoff" />
13063 and destroys all resources associated with the session (most importantly, all
13064 managed objects created in the server while the session was active).
13065 </desc>
13066 <param name="refIVirtualBox" type="IVirtualBox" dir="in"/>
13067 </method>
13068
13069 </interface>
13070
13071</if>
13072
13073 <!--
13074 // IPerformanceCollector & friends
13075 /////////////////////////////////////////////////////////////////////////
13076 -->
13077
13078 <interface
13079 name="IPerformanceMetric" extends="$unknown"
13080 uuid="2a1a60ae-9345-4019-ad53-d34ba41cbfe9" wsmap="managed"
13081 >
13082 <desc>
13083 The IPerformanceMetric interface represents parameters of the given
13084 performance metric.
13085 </desc>
13086
13087 <attribute name="metricName" type="wstring" readonly="yes">
13088 <desc>
13089 Name of the metric.
13090 </desc>
13091 </attribute>
13092
13093 <attribute name="object" type="$unknown" readonly="yes">
13094 <desc>
13095 Object this metric belongs to.
13096 </desc>
13097 </attribute>
13098
13099 <attribute name="description" type="wstring" readonly="yes">
13100 <desc>
13101 Textual description of the metric.
13102 </desc>
13103 </attribute>
13104
13105 <attribute name="period" type="unsigned long" readonly="yes">
13106 <desc>
13107 Time interval between samples, measured in seconds.
13108 </desc>
13109 </attribute>
13110
13111 <attribute name="count" type="unsigned long" readonly="yes">
13112 <desc>
13113 Number of recent samples retained by the performance collector for this
13114 metric.
13115
13116 When the collected sample count exceeds this number, older samples
13117 are discarded.
13118 </desc>
13119 </attribute>
13120
13121 <attribute name="unit" type="wstring" readonly="yes">
13122 <desc>
13123 Unit of measurement.
13124 </desc>
13125 </attribute>
13126
13127 <attribute name="minimumValue" type="long" readonly="yes">
13128 <desc>
13129 Minimum possible value of this metric.
13130 </desc>
13131 </attribute>
13132
13133 <attribute name="maximumValue" type="long" readonly="yes">
13134 <desc>
13135 Maximum possible value of this metric.
13136 </desc>
13137 </attribute>
13138 </interface>
13139
13140 <interface
13141 name="IPerformanceCollector" extends="$unknown"
13142 uuid="e22e1acb-ac4a-43bb-a31c-17321659b0c6"
13143 wsmap="managed"
13144 >
13145 <desc>
13146 The IPerformanceCollector interface represents a service that collects and
13147 stores performance metrics data.
13148
13149 Performance metrics are associated with objects of interfaces like IHost and
13150 IMachine. Each object has a distinct set of performance metrics.
13151 The set can be obtained with <link to="IPerformanceCollector::getMetrics"/>.
13152
13153 Metric data is collected at the specified intervals and is retained
13154 internally. The interval and the number of retained samples can be set
13155 with <link to="IPerformanceCollector::setupMetrics" />.
13156
13157 Metrics are organized hierarchically, with each level separated by a
13158 slash (/) character. Generally, the scheme for metric names is like this:
13159
13160 <tt>Category/Metric[/SubMetric][:aggregation]</tt>
13161
13162 "Category/Metric" together form the base metric name. A base metric is the
13163 smallest unit for which a sampling interval and the number of retained
13164 samples can be set. Only base metrics can be enabled and disabled. All
13165 sub-metrics are collected when their base metric is collected.
13166 Collected values for any set of sub-metrics can be queried with
13167 <link to="IPerformanceCollector::queryMetricsData" />.
13168
13169 For example "CPU/Load/User:avg"
13170 metric name stands for the "CPU" category, "Load" metric, "User" submetric,
13171 "average" aggregate. An aggregate function is computed over all retained
13172 data. Valid aggregate functions are:
13173
13174 <ul>
13175 <li>avg -- average</li>
13176 <li>min -- minimum</li>
13177 <li>max -- maximum</li>
13178 </ul>
13179
13180 When setting up
13181 metric parameters, querying metric data, enabling or disabling metrics
13182 wildcards can be used in metric names to specify a subset of metrics. For
13183 example, to select all CPU-related metrics use <tt>CPU/*</tt>, all
13184 averages can be queried using <tt>*:avg</tt> and so on. To query metric
13185 values without aggregates <tt>*:</tt> can be used.
13186
13187 The valid names for base metrics are:
13188
13189 <ul>
13190 <li>CPU/Load</li>
13191 <li>CPU/MHz</li>
13192 <li>RAM/Usage</li>
13193 </ul>
13194
13195 The general sequence for collecting and retrieving the metrics is:
13196 <ul>
13197 <li>
13198 Obtain an instance of IPerformanceCollector with
13199 <link to="IVirtualBox::performanceCollector" />
13200 </li>
13201 <li>
13202 Allocate and populate an array with references to objects the metrics
13203 will be collected for. Use references to IHost and IMachine objects.
13204 </li>
13205 <li>
13206 Allocate and populate an array with base metric names the data will be
13207 collected for.
13208 </li>
13209 <li>
13210 Call <link to="IPerformanceCollector::setupMetrics" />. From now on the
13211 metric data will be collected and stored.
13212 </li>
13213 <li>
13214 Wait for the data to get collected.
13215 </li>
13216 <li>
13217 Allocate and populate an array with references to objects the metric
13218 values will be queried for. You can re-use the object array used for
13219 setting base metrics.
13220 </li>
13221 <li>
13222 Allocate and populate an array with metric names the data will be
13223 collected for. Note that metric names differ from base metric names.
13224 </li>
13225 <li>
13226 Call <link to="IPerformanceCollector::queryMetricsData" />. The data that
13227 have been collected so far are returned. Note that the values are still
13228 retained internally and data collection continues.
13229 </li>
13230 </ul>
13231
13232 For an example of usage refer to the following files in VirtualBox SDK:
13233 <ul>
13234 <li>
13235 Java: <tt>bindings/webservice/java/jax-ws/samples/metrictest.java</tt>
13236 </li>
13237 <li>
13238 Python: <tt>bindings/xpcom/python/sample/shellcommon.py</tt>
13239 </li>
13240 </ul>
13241 </desc>
13242
13243 <attribute name="metricNames" type="wstring" readonly="yes" safearray="yes">
13244 <desc>
13245 Array of unique names of metrics.
13246
13247 This array represents all metrics supported by the performance
13248 collector. Individual objects do not necessarily support all of them.
13249 <link to="IPerformanceCollector::getMetrics"/> can be used to get the
13250 list of supported metrics for a particular object.
13251 </desc>
13252 </attribute>
13253
13254 <method name="getMetrics">
13255 <desc>
13256 Returns parameters of specified metrics for a set of objects.
13257 <note>
13258 @c Null metrics array means all metrics. @c Null object array means
13259 all existing objects.
13260 </note>
13261 </desc>
13262 <param name="metricNames" type="wstring" dir="in" safearray="yes">
13263 <desc>
13264 Metric name filter. Currently, only a comma-separated list of metrics
13265 is supported.
13266 </desc>
13267 </param>
13268 <param name="objects" type="$unknown" dir="in" safearray="yes">
13269 <desc>
13270 Set of objects to return metric parameters for.
13271 </desc>
13272 </param>
13273 <param name="metrics" type="IPerformanceMetric" dir="return" safearray="yes">
13274 <desc>
13275 Array of returned metric parameters.
13276 </desc>
13277 </param>
13278 </method>
13279
13280 <method name="setupMetrics">
13281 <desc>
13282 Sets parameters of specified base metrics for a set of objects. Returns
13283 an array of <link to="IPerformanceMetric" /> describing the metrics have
13284 been affected.
13285 <note>
13286 @c Null or empty metric name array means all metrics. @c Null or empty
13287 object array means all existing objects. If metric name array contains
13288 a single element and object array contains many, the single metric
13289 name array element is applied to each object array element to form
13290 metric/object pairs.
13291 </note>
13292 </desc>
13293 <param name="metricNames" type="wstring" dir="in" safearray="yes">
13294 <desc>
13295 Metric name filter. Comma-separated list of metrics with wildcard
13296 support.
13297 </desc>
13298 </param>
13299 <param name="objects" type="$unknown" dir="in" safearray="yes">
13300 <desc>
13301 Set of objects to setup metric parameters for.
13302 </desc>
13303 </param>
13304 <param name="period" type="unsigned long" dir="in">
13305 <desc>
13306 Time interval in seconds between two consecutive samples of performance
13307 data.
13308 </desc>
13309 </param>
13310 <param name="count" type="unsigned long" dir="in">
13311 <desc>
13312 Number of samples to retain in performance data history. Older samples
13313 get discarded.
13314 </desc>
13315 </param>
13316 <param name="affectedMetrics" type="IPerformanceMetric" dir="return" safearray="yes">
13317 <desc>
13318 Array of metrics that have been modified by the call to this method.
13319 </desc>
13320 </param>
13321 </method>
13322
13323 <method name="enableMetrics">
13324 <desc>
13325 Turns on collecting specified base metrics. Returns an array of
13326 <link to="IPerformanceMetric" /> describing the metrics have been
13327 affected.
13328 <note>
13329 @c Null or empty metric name array means all metrics. @c Null or empty
13330 object array means all existing objects. If metric name array contains
13331 a single element and object array contains many, the single metric
13332 name array element is applied to each object array element to form
13333 metric/object pairs.
13334 </note>
13335 </desc>
13336 <param name="metricNames" type="wstring" dir="in" safearray="yes">
13337 <desc>
13338 Metric name filter. Comma-separated list of metrics with wildcard
13339 support.
13340 </desc>
13341 </param>
13342 <param name="objects" type="$unknown" dir="in" safearray="yes">
13343 <desc>
13344 Set of objects to enable metrics for.
13345 </desc>
13346 </param>
13347 <param name="affectedMetrics" type="IPerformanceMetric" dir="return" safearray="yes">
13348 <desc>
13349 Array of metrics that have been modified by the call to this method.
13350 </desc>
13351 </param>
13352 </method>
13353
13354 <method name="disableMetrics">
13355 <desc>
13356 Turns off collecting specified base metrics. Returns an array of
13357 <link to="IPerformanceMetric" /> describing the metrics have been
13358 affected.
13359 <note>
13360 @c Null or empty metric name array means all metrics. @c Null or empty
13361 object array means all existing objects. If metric name array contains
13362 a single element and object array contains many, the single metric
13363 name array element is applied to each object array element to form
13364 metric/object pairs.
13365 </note>
13366 </desc>
13367 <param name="metricNames" type="wstring" dir="in" safearray="yes">
13368 <desc>
13369 Metric name filter. Comma-separated list of metrics with wildcard
13370 support.
13371 </desc>
13372 </param>
13373 <param name="objects" type="$unknown" dir="in" safearray="yes">
13374 <desc>
13375 Set of objects to disable metrics for.
13376 </desc>
13377 </param>
13378 <param name="affectedMetrics" type="IPerformanceMetric" dir="return" safearray="yes">
13379 <desc>
13380 Array of metrics that have been modified by the call to this method.
13381 </desc>
13382 </param>
13383 </method>
13384
13385 <method name="queryMetricsData">
13386 <desc>
13387 Queries collected metrics data for a set of objects.
13388
13389 The data itself and related metric information are returned in seven
13390 parallel and one flattened array of arrays. Elements of
13391 <tt>returnMetricNames, returnObjects, returnUnits, returnScales,
13392 returnSequenceNumbers, returnDataIndices and returnDataLengths</tt> with
13393 the same index describe one set of values corresponding to a single
13394 metric.
13395
13396 The <tt>returnData</tt> parameter is a flattened array of arrays. Each
13397 start and length of a sub-array is indicated by
13398 <tt>returnDataIndices</tt> and <tt>returnDataLengths</tt>. The first
13399 value for metric <tt>metricNames[i]</tt> is at
13400 <tt>returnData[returnIndices[i]]</tt>.
13401
13402 <note>
13403 @c Null or empty metric name array means all metrics. @c Null or empty
13404 object array means all existing objects. If metric name array contains
13405 a single element and object array contains many, the single metric
13406 name array element is applied to each object array element to form
13407 metric/object pairs.
13408 </note>
13409 <note>
13410 Data collection continues behind the scenes after call to
13411 @c queryMetricsData. The return data can be seen as the snapshot of
13412 the current state at the time of @c queryMetricsData call. The
13413 internally kept metric values are not cleared by the call. This makes
13414 possible querying different subsets of metrics or aggregates with
13415 subsequent calls. If periodic querying is needed it is highly
13416 suggested to query the values with @c interval*count period to avoid
13417 confusion. This way a completely new set of data values will be
13418 provided by each query.
13419 </note>
13420 </desc>
13421 <param name="metricNames" type="wstring" dir="in" safearray="yes">
13422 <desc>
13423 Metric name filter. Comma-separated list of metrics with wildcard
13424 support.
13425 </desc>
13426 </param>
13427 <param name="objects" type="$unknown" dir="in" safearray="yes">
13428 <desc>
13429 Set of objects to query metrics for.
13430 </desc>
13431 </param>
13432 <param name="returnMetricNames" type="wstring" dir="out" safearray="yes">
13433 <desc>
13434 Names of metrics returned in @c returnData.
13435 </desc>
13436 </param>
13437 <param name="returnObjects" type="$unknown" dir="out" safearray="yes">
13438 <desc>
13439 Objects associated with metrics returned in @c returnData.
13440 </desc>
13441 </param>
13442 <param name="returnUnits" type="wstring" dir="out" safearray="yes">
13443 <desc>
13444 Units of measurement for each returned metric.
13445 </desc>
13446 </param>
13447 <param name="returnScales" type="unsigned long" dir="out" safearray="yes">
13448 <desc>
13449 Divisor that should be applied to return values in order to get
13450 floating point values. For example:
13451 <tt>(double)returnData[returnDataIndices[0]+i] / returnScales[0]</tt>
13452 will retrieve the floating point value of i-th sample of the first
13453 metric.
13454 </desc>
13455 </param>
13456 <param name="returnSequenceNumbers" type="unsigned long" dir="out" safearray="yes">
13457 <desc>
13458 Sequence numbers of the first elements of value sequences of particular metrics
13459 returned in @c returnData. For aggregate metrics it is the sequence number of
13460 the sample the aggregate started calculation from.
13461 </desc>
13462 </param>
13463 <param name="returnDataIndices" type="unsigned long" dir="out" safearray="yes">
13464 <desc>
13465 Indices of the first elements of value sequences of particular metrics
13466 returned in @c returnData.
13467 </desc>
13468 </param>
13469 <param name="returnDataLengths" type="unsigned long" dir="out" safearray="yes">
13470 <desc>
13471 Lengths of value sequences of particular metrics.
13472 </desc>
13473 </param>
13474 <param name="returnData" type="long" dir="return" safearray="yes">
13475 <desc>
13476 Flattened array of all metric data containing sequences of values for
13477 each metric.
13478 </desc>
13479 </param>
13480 </method>
13481
13482 </interface>
13483
13484 <module name="VBoxSVC" context="LocalServer">
13485 <class name="VirtualBox" uuid="B1A7A4F2-47B9-4A1E-82B2-07CCD5323C3F"
13486 namespace="virtualbox.org">
13487 <interface name="IVirtualBox" default="yes"/>
13488 </class>
13489 </module>
13490
13491 <module name="VBoxC" context="InprocServer" threadingModel="Free">
13492 <class name="Session" uuid="3C02F46D-C9D2-4f11-A384-53F0CF917214"
13493 namespace="virtualbox.org">
13494 <interface name="ISession" default="yes"/>
13495 </class>
13496 </module>
13497
13498</library>
13499
13500</idl>
13501
13502<!-- vim: set shiftwidth=2 tabstop=2 expandtab: -->
Note: See TracBrowser for help on using the repository browser.

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