VirtualBox

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

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

readability newline

  • Property svn:eol-style set to native
File size: 497.7 KB
Line 
1<?xml version="1.0" ?>
2
3<!--
4 * :tabSize=2:indentSize=2:noTabs=true:
5 * :folding=explicit:collapseFolds=1:
6 *
7 * Master declaration for VirtualBox's Main API, represented
8 * by COM/XPCOM and web service interfaces.
9 *
10 * From this document, the build system generates several files
11 * via XSLT that are then used during the build process.
12 *
13 * Below is the list of XSL templates that operate on this file and
14 * output files they generate. These XSL templates must be updated
15 * whenever the schema of this file changes:
16 *
17 * 1. src/VBox/Main/idl/midl.xsl =>
18 * out/<platform>/bin/sdk/idl/VirtualBox.idl
19 * (MS COM interface definition file for Main API)
20 *
21 * 2. src/VBox/Main/idl/xpidl.xsl =>
22 * out/<platform>/bin/sdk/idl/VirtualBox_XPCOM.idl
23 * (XPCOM interface definition file for Main API)
24 *
25 * 3. src/VBox/Main/idl/doxygen.xsl =>
26 * out/<platform>/obj/src/VBox/Main/VirtualBox.idl
27 * (pseudo-IDL for Doxygen to generate the official Main API
28 * documentation)
29 *
30 * 4. src/VBox/Main/webservice/*.xsl =>
31 * a bunch of WSDL and C++ files
32 * (VirtualBox web service sources and SOAP mappers;
33 * see src/VBox/Main/webservice/Makefile.kmk for details)
34 *
35 * 5. src/VBox/Frontends/VirtualBox/include/COMWrappers.xsl =>
36 * out/<platform>/obj/src/VBox/Frontends/VirtualBox/VirtualBox/include/COMWrappers.h
37 * (smart Qt-based C++ wrapper classes for COM interfaces
38 * of the Main API)
39 *
40 * 6. src/VBox/Installer/win32/VirtualBox_TypeLib.xsl =>
41 * out/<platform>/obj/src/VBox/Installer/win32/VirtualBox_TypeLib.wxi
42 * (Main API TypeLib block for the WiX installer)
43 *
44 * 7. src/VBox/Runtime/common/err/errmsgvboxcom.xsl =>
45 * out/<platform>/obj/Runtime/errmsgvboxcomdata.h
46 * (<result> extraction for the %Rhrc format specifier)
47 *
48 Copyright (C) 2006-2009 Sun Microsystems, Inc.
49
50 This file is part of VirtualBox Open Source Edition (OSE), as
51 available from http://www.virtualbox.org. This file is free software;
52 you can redistribute it and/or modify it under the terms of the GNU
53 General Public License (GPL) as published by the Free Software
54 Foundation, in version 2 as it comes in the "COPYING" file of the
55 VirtualBox OSE distribution. VirtualBox OSE is distributed in the
56 hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
57
58 Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
59 Clara, CA 95054 USA or visit http://www.sun.com if you need
60 additional information or have any questions.
61-->
62
63<idl>
64
65<desc>
66 Welcome to the <b>VirtualBox Main API documentation</b>. This documentation
67 describes the so-called <i>VirtualBox Main API</i> which comprises all public
68 COM interfaces and components provided by the VirtualBox server and by the
69 VirtualBox client library.
70
71 VirtualBox employs a client-server design, meaning that whenever any part of
72 VirtualBox is running -- be it the Qt GUI, the VBoxManage command-line
73 interface or any virtual machine --, a dedicated server process named
74 VBoxSVC runs in the background. This allows multiple processes working with
75 VirtualBox to cooperate without conflicts. These processes communicate to each
76 other using inter-process communication facilities provided by the COM
77 implementation of the host computer.
78
79 On Windows platforms, the VirtualBox Main API uses Microsoft COM, a native COM
80 implementation. On all other platforms, Mozilla XPCOM, an open-source COM
81 implementation, is used.
82
83 All the parts that a typical VirtualBox user interacts with (the Qt GUI,
84 the VBoxManage command-line interface and the VBoxVRDP server) are technically
85 front-ends to the Main API and only use the interfaces that are documented
86 in this Main API documentation. This ensures that, with any given release
87 version of VirtualBox, all capabilities of the product that could be useful
88 to an external client program are always exposed by way of this API.
89
90 The VirtualBox Main API (also called the <i>VirtualBox COM library</i>)
91 contains two public component classes:
92 <tt>%VirtualBox.VirtualBox</tt> and <tt>%VirtualBox.Session</tt>, which
93 implement IVirtualBox and ISession interfaces respectively. These two classes
94 are of supreme importance and will be needed in order for any front-end
95 program to do anything useful. It is recommended to read the documentation of
96 the mentioned interfaces first.
97
98 The <tt>%VirtualBox.VirtualBox</tt> class is a singleton. This means that
99 there can be only one object of this class on the local machine at any given
100 time. This object is a parent of many other objects in the VirtualBox COM
101 library and lives in the VBoxSVC process. In fact, when you create an instance
102 of the <tt>VirtualBox.VirtualBox</tt>, the COM subsystem checks if the VBoxSVC
103 process is already running, starts it if not, and returns you a reference to
104 the <tt>VirtualBox</tt> object created in this process. When the last reference
105 to this object is released, the VBoxSVC process ends (with a 5 second delay to
106 protect from too frequent restarts).
107
108 The <tt>%VirtualBox.Session</tt> class is a regular component. You can create
109 as many <tt>Session</tt> objects as you need but all of them will live in a
110 process which issues the object instantiation call. <tt>Session</tt> objects
111 represent virtual machine sessions which are used to configure virtual
112 machines and control their execution.
113</desc>
114
115<if target="midl">
116 <cpp line="enum {"/>
117 <cpp line=" kTypeLibraryMajorVersion = 1,"/>
118 <cpp line=" kTypeLibraryMinorVersion = 0"/>
119 <cpp line="};"/>
120</if>
121
122<if target="xpidl">
123 <!-- NS_IMPL_THREADSAFE_ISUPPORTSxx_CI macros are placed here, for convenience -->
124 <cpp>
125/* currently, nsISupportsImpl.h lacks the below-like macros */
126
127#define NS_IMPL_THREADSAFE_QUERY_INTERFACE1_CI NS_IMPL_QUERY_INTERFACE1_CI
128#define NS_IMPL_THREADSAFE_QUERY_INTERFACE2_CI NS_IMPL_QUERY_INTERFACE2_CI
129
130#ifndef NS_IMPL_THREADSAFE_ISUPPORTS1_CI
131# define NS_IMPL_THREADSAFE_ISUPPORTS1_CI(_class, _interface) \
132 NS_IMPL_THREADSAFE_ADDREF(_class) \
133 NS_IMPL_THREADSAFE_RELEASE(_class) \
134 NS_IMPL_THREADSAFE_QUERY_INTERFACE1_CI(_class, _interface) \
135 NS_IMPL_CI_INTERFACE_GETTER1(_class, _interface)
136#endif
137
138#ifndef NS_IMPL_THREADSAFE_ISUPPORTS2_CI
139# define NS_IMPL_THREADSAFE_ISUPPORTS2_CI(_class, _i1, _i2) \
140 NS_IMPL_THREADSAFE_ADDREF(_class) \
141 NS_IMPL_THREADSAFE_RELEASE(_class) \
142 NS_IMPL_THREADSAFE_QUERY_INTERFACE2_CI(_class, _i1, _i2) \
143 NS_IMPL_CI_INTERFACE_GETTER2(_class, _i1, _i2)
144#endif
145
146#ifndef NS_IMPL_QUERY_INTERFACE1_AMBIGUOUS_CI
147# define NS_IMPL_QUERY_INTERFACE1_AMBIGUOUS_CI(_class, _i1, _ic1) \
148 NS_INTERFACE_MAP_BEGIN(_class) \
149 NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(_i1, _ic1) \
150 NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(nsISupports, _ic1) \
151 NS_IMPL_QUERY_CLASSINFO(_class) \
152 NS_INTERFACE_MAP_END
153#endif
154
155#ifndef NS_IMPL_QUERY_INTERFACE2_AMBIGUOUS_CI
156# define NS_IMPL_QUERY_INTERFACE2_AMBIGUOUS_CI(_class, _i1, _ic1, \
157 _i2, _ic2) \
158 NS_INTERFACE_MAP_BEGIN(_class) \
159 NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(_i1, _ic1) \
160 NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(_i2, _ic2) \
161 NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(nsISupports, _ic1) \
162 NS_IMPL_QUERY_CLASSINFO(_class) \
163 NS_INTERFACE_MAP_END
164#endif
165
166#define NS_IMPL_THREADSAFE_QUERY_INTERFACE1_AMBIGUOUS_CI NS_IMPL_QUERY_INTERFACE1_AMBIGUOUS_CI
167#define NS_IMPL_THREADSAFE_QUERY_INTERFACE2_AMBIGUOUS_CI NS_IMPL_QUERY_INTERFACE2_AMBIGUOUS_CI
168
169#ifndef NS_IMPL_THREADSAFE_ISUPPORTS1_AMBIGUOUS_CI
170# define NS_IMPL_THREADSAFE_ISUPPORTS1_AMBIGUOUS_CI(_class, _i1, _ic1) \
171 NS_IMPL_THREADSAFE_ADDREF(_class) \
172 NS_IMPL_THREADSAFE_RELEASE(_class) \
173 NS_IMPL_THREADSAFE_QUERY_INTERFACE1_AMBIGUOUS_CI(_class, _i1, _ic1) \
174 NS_IMPL_CI_INTERFACE_GETTER1(_class, _i1)
175#endif
176
177#ifndef NS_IMPL_THREADSAFE_ISUPPORTS2_AMBIGUOUS_CI
178# define NS_IMPL_THREADSAFE_ISUPPORTS2_AMBIGUOUS_CI(_class, _i1, _ic1, \
179 _i2, _ic2) \
180 NS_IMPL_THREADSAFE_ADDREF(_class) \
181 NS_IMPL_THREADSAFE_RELEASE(_class) \
182 NS_IMPL_THREADSAFE_QUERY_INTERFACE2_AMBIGUOUS_CI(_class, _i1, _ic1, \
183 _i2, _ic2) \
184 NS_IMPL_CI_INTERFACE_GETTER2(_class, _i1, _i2)
185#endif
186 </cpp>
187</if>
188
189<library
190 name="VirtualBox"
191 uuid="46137EEC-703B-4fe5-AFD4-7C9BBBBA0259"
192 version="1.3"
193 desc="VirtualBox Type Library"
194 appUuid="819B4D85-9CEE-493C-B6FC-64FFE759B3C9"
195 supportsErrorInfo="yes"
196>
197
198
199 <!--
200 // COM result codes for VirtualBox
201 /////////////////////////////////////////////////////////////////////////
202 -->
203
204 <descGroup id="VirtualBox_COM_result_codes" title="VirtualBox COM result codes">
205 <desc>
206 This section describes all VirtualBox-specific COM result codes that may
207 be returned by methods of VirtualBox COM interfaces in addition to
208 standard COM result codes.
209
210 Note that along with the result code, every VirtualBox method returns
211 extended error information through the IVirtualBoxErrorInfo interface on
212 failure. This interface is a preferred way to present the error to the end
213 user because it contains a human readable description of the error. Raw
214 result codes, both standard and described in this section, are intended to
215 be used by programs to analyze the reason of a failure and select an
216 appropriate course of action without involving the end user (for example,
217 retry the operation later or make a different call).
218
219 The standard COM result codes that may originate from our methods include:
220
221 <table>
222 <tr><td>E_INVALIDARG</td>
223 <td>
224 Returned when the value of the method's argument is not within the range
225 of valid values. This should not be confused with situations when the
226 value is within the range but simply doesn't suit the current object
227 state and there is a possibility that it will be accepted later (in such
228 cases VirtualBox-specific codes are returned, for example,
229 <link to="VBOX_E_OBJECT_NOT_FOUND"/>).
230 </td>
231 </tr>
232 <tr><td>E_POINTER</td>
233 <td>
234 Returned if a memory pointer for the output argument is invalid (for
235 example, @c null). Note that when pointers representing input
236 arguments (such as strings) are invalid, E_INVALIDARG is returned.
237 </td>
238 </tr>
239 <tr><td>E_ACCESSDENIED</td>
240 <td>
241 Returned when the called object is not ready. Since the lifetime of a
242 public COM object cannot be fully controlled by the implementation,
243 VirtualBox maintains the readiness state for all objects it creates and
244 returns this code in response to any method call on the object that was
245 deactivated by VirtualBox and is not functioning any more.
246 </td>
247 </tr>
248 <tr><td>E_OUTOFMEMORY</td>
249 <td>
250 Returned when a memory allocation operation fails.
251 </td>
252 </tr>
253 </table>
254 </desc>
255 </descGroup>
256
257 <!--
258 Note that src/VBox/Runtime/common/err/errmsgvboxcom.xsl will ignore
259 everything in <result>/<desc> after (and including) the first dot, so express
260 the matter of the error code in the first sentence and keep it short.
261 -->
262
263 <result name="VBOX_E_OBJECT_NOT_FOUND" value="0x80BB0001">
264 <desc>
265 Object corresponding to the supplied arguments does not exist.
266 </desc>
267 </result>
268
269 <result name="VBOX_E_INVALID_VM_STATE" value="0x80BB0002">
270 <desc>
271 Current virtual machine state prevents the operation.
272 </desc>
273 </result>
274
275 <result name="VBOX_E_VM_ERROR" value="0x80BB0003">
276 <desc>
277 Virtual machine error occurred attempting the operation.
278 </desc>
279 </result>
280
281 <result name="VBOX_E_FILE_ERROR" value="0x80BB0004">
282 <desc>
283 File not accessible or erroneous file contents.
284 </desc>
285 </result>
286
287 <result name="VBOX_E_IPRT_ERROR" value="0x80BB0005">
288 <desc>
289 Runtime subsystem error.
290 </desc>
291 </result>
292
293 <result name="VBOX_E_PDM_ERROR" value="0x80BB0006">
294 <desc>
295 Pluggable Device Manager error.
296 </desc>
297 </result>
298
299 <result name="VBOX_E_INVALID_OBJECT_STATE" value="0x80BB0007">
300 <desc>
301 Current object state prohibits operation.
302 </desc>
303 </result>
304
305 <result name="VBOX_E_HOST_ERROR" value="0x80BB0008">
306 <desc>
307 Host operating system related error.
308 </desc>
309 </result>
310
311 <result name="VBOX_E_NOT_SUPPORTED" value="0x80BB0009">
312 <desc>
313 Requested operation is not supported.
314 </desc>
315 </result>
316
317 <result name="VBOX_E_XML_ERROR" value="0x80BB000A">
318 <desc>
319 Invalid XML found.
320 </desc>
321 </result>
322
323 <result name="VBOX_E_INVALID_SESSION_STATE" value="0x80BB000B">
324 <desc>
325 Current session state prohibits operation.
326 </desc>
327 </result>
328
329 <result name="VBOX_E_OBJECT_IN_USE" value="0x80BB000C">
330 <desc>
331 Object being in use prohibits operation.
332 </desc>
333 </result>
334
335 <!--
336 Note that src/VBox/Runtime/common/err/errmsgvboxcom.xsl will ignore
337 everything in <result>/<desc> after (and including) the first dot, so express
338 the matter of the error code in the first sentence and keep it short.
339 -->
340
341 <descGroup/>
342
343 <!--
344 // all common enums
345 /////////////////////////////////////////////////////////////////////////
346 -->
347
348 <enum
349 name="TSBool"
350 uuid="523ff64d-842a-4b1a-80e7-c311b028cb3a"
351 >
352 <desc>
353 Boolean variable having a third state, default.
354 </desc>
355
356 <const name="False" value="0"/>
357 <const name="True" value="1"/>
358 <const name="Default" value="2"/>
359 </enum>
360
361 <enum
362 name="AccessMode"
363 uuid="1da0007c-ddf7-4be8-bcac-d84a1558785f"
364 >
365 <desc>
366 Access mode for opening files.
367 </desc>
368
369 <const name="ReadOnly" value="1"/>
370 <const name="ReadWrite" value="2"/>
371 </enum>
372
373 <enum
374 name="MachineState"
375 uuid="73bf04d0-7c4f-4684-9abf-d65a9ad74343"
376 >
377 <desc>
378 Virtual machine execution state.
379
380 This enumeration represents possible values of the <link
381 to="IMachine::state"/> attribute.
382
383 Below is the basic virtual machine state diagram. It shows how the state
384 changes during virtual machine execution. The text in square braces shows
385 a method of the IConsole interface that performs the given state
386 transition.
387
388 <pre>
389 +---------[powerDown()] &lt;- Stuck &lt;--[failure]-+
390 V |
391 +-&gt; PoweredOff --+--&gt;[powerUp()]--&gt; Starting --+ | +-----[resume()]-----+
392 | | | | V |
393 | Aborted -----+ +--&gt; Running --[pause()]--&gt; Paused
394 | | ^ | ^ |
395 | Saved -----------[powerUp()]--&gt; Restoring -+ | | | |
396 | ^ | | | |
397 | | +-----------------------------------------+-|-------------------+ +
398 | | | | |
399 | | +-- Saving &lt;--------[takeSnapshot()]&lt;-------+---------------------+
400 | | | |
401 | +-------- Saving &lt;--------[saveState()]&lt;----------+---------------------+
402 | | |
403 +-------------- Stopping -------[powerDown()]&lt;----------+---------------------+
404 </pre>
405
406 Note that states to the right from PoweredOff, Aborted and Saved in the
407 above diagram are called <i>online VM states</i>. These states
408 represent the virtual machine which is being executed in a dedicated
409 process (usually with a GUI window attached to it where you can see the
410 activity of the virtual machine and interact with it). There are two
411 special pseudo-states, FirstOnline and LastOnline, that can be used in
412 relational expressions to detect if the given machine state is online or
413 not:
414
415 <pre>
416 if (machine.GetState() &gt;= MachineState_FirstOnline &amp;&amp;
417 machine.GetState() &lt;= MachineState_LastOnline)
418 {
419 ...the machine is being executed...
420 }
421 </pre>
422
423 When the virtual machine is in one of the online VM states (that is, being
424 executed), only a few machine settings can be modified. Methods working
425 with such settings contain an explicit note about that. An attempt to
426 change any oter setting or perform a modifying operation during this time
427 will result in the <link to="VBOX_E_INVALID_VM_STATE"/> error.
428
429 All online states except Running, Paused and Stuck are transitional: they
430 represent temporary conditions of the virtual machine that will last as
431 long as the operation that initiated such a condition.
432
433 The Stuck state is a special case. It means that execution of the machine
434 has reached the "Guru Meditation" condition. This condition indicates an
435 internal VMM (virtual machine manager) failure which may happen as a
436 result of either an unhandled low-level virtual hardware exception or one
437 of the recompiler exceptions (such as the <i>too-many-traps</i>
438 condition).
439
440 Note also that any online VM state may transit to the Aborted state. This
441 happens if the process that is executing the virtual machine terminates
442 unexpectedly (for example, crashes). Other than that, the Aborted state is
443 equivalent to PoweredOff.
444
445 There are also a few additional state diagrams that do not deal with
446 virtual machine execution and therefore are shown separately. The states
447 shown on these diagrams are called <i>offline VM states</i> (this includes
448 PoweredOff, Aborted and Saved too).
449
450 The first diagram shows what happens when a lengthy setup operation is
451 being executed (such as <link to="IMachine::attachHardDisk"/>).
452
453 <pre>
454 +----------------------------------(same state as before the call)------+
455 | |
456 +-&gt; PoweredOff --+ |
457 | | |
458 |-&gt; Aborted -----+--&gt;[lengthy VM configuration call] --&gt; SettingUp -----+
459 | |
460 +-&gt; Saved -------+
461 </pre>
462
463 The next two diagrams demonstrate the process of taking a snapshot of a
464 powered off virtual machine and performing one of the "discard..."
465 operations, respectively.
466
467 <pre>
468 +----------------------------------(same state as before the call)------+
469 | |
470 +-&gt; PoweredOff --+ |
471 | +--&gt;[takeSnapshot()] -------------------&gt; Saving ------+
472 +-&gt; Aborted -----+
473
474 +-&gt; PoweredOff --+
475 | |
476 | Aborted -----+--&gt;[discardSnapshot() ]-------------&gt; Discarding --+
477 | | [discardCurrentState()] |
478 +-&gt; Saved -------+ [discardCurrentSnapshotAndState()] |
479 | |
480 +---(Saved if restored from an online snapshot, PoweredOff otherwise)---+
481 </pre>
482
483 Note that the Saving state is present in both the offline state group and
484 online state group. Currently, the only way to determine what group is
485 assumed in a particular case is to remember the previous machine state: if
486 it was Running or Paused, then Saving is an online state, otherwise it is
487 an offline state. This inconsistency may be removed in one of the future
488 versions of VirtualBox by adding a new state.
489
490 <note internal="yes">
491 For whoever decides to touch this enum: In order to keep the
492 comparisons involving FirstOnline and LastOnline pseudo-states valid,
493 the numeric values of these states must be correspondingly updated if
494 needed: for any online VM state, the condition
495 <tt>FirstOnline &lt;= state &lt;= LastOnline</tt> must be
496 @c true. The same relates to transient states for which
497 the condition <tt>FirstOnline &lt;= state &lt;= LastOnline</tt> must be
498 @c true.
499 </note>
500 </desc>
501
502 <const name="Null" value="0">
503 <desc>Null value (never used by the API).</desc>
504 </const>
505 <const name="PoweredOff" value="1">
506 <desc>
507 The machine is not running.
508 </desc>
509 </const>
510 <const name="Saved" value="2">
511 <desc>
512 The machine is not currently running, but the execution state of the machine
513 has been saved to an external file when it was running.
514 </desc>
515 </const>
516 <const name="Aborted" value="3">
517 <desc>
518 The process running the machine has terminated abnormally.
519 </desc>
520 </const>
521 <const name="Running" value="4">
522 <desc>
523 The machine is currently being executed.
524 <note internal="yes">
525 For whoever decides to touch this enum: In order to keep the
526 comparisons in the old source code valid, this state must immediately
527 precede the Paused state.
528 </note>
529 </desc>
530 </const>
531 <const name="Paused" value="5">
532 <desc>
533 Execution of the machine has been paused.
534 <note internal="yes">
535 For whoever decides to touch this enum: In order to keep the
536 comparisons in the old source code valid, this state must immediately
537 follow the Running state.
538 </note>
539 </desc>
540 </const>
541 <const name="Stuck" value="6">
542 <desc>
543 Execution of the machine has reached the "Guru Meditation"
544 condition.
545 </desc>
546 </const>
547 <const name="Starting" value="7">
548 <desc>
549 Machine is being started after powering it on from a
550 zero execution state.
551 </desc>
552 </const>
553 <const name="Stopping" value="8">
554 <desc>
555 Machine is being normally stopped powering it off, or after the guest OS
556 has initiated a shutdown sequence.
557 </desc>
558 </const>
559 <const name="Saving" value="9">
560 <desc>
561 Machine is saving its execution state to a file or an online
562 snapshot of the machine is being taken.
563 </desc>
564 </const>
565 <const name="Restoring" value="10">
566 <desc>
567 Execution state of the machine is being restored from a file
568 after powering it on from the saved execution state.
569 </desc>
570 </const>
571 <const name="Discarding" value="11">
572 <desc>
573 Snapshot of the machine is being discarded.
574 </desc>
575 </const>
576 <const name="SettingUp" value="12">
577 <desc>
578 Lengthy setup operation is in progress.
579 </desc>
580 </const>
581
582 <const name="FirstOnline" value="4" wsmap="suppress"> <!-- Running -->
583 <desc>
584 Pseudo-state: first online state (for use in relational expressions).
585 </desc>
586 </const>
587 <const name="LastOnline" value="10" wsmap="suppress"> <!-- Restoring -->
588 <desc>
589 Pseudo-state: last online state (for use in relational expressions).
590 </desc>
591 </const>
592
593 <const name="FirstTransient" value="7" wsmap="suppress"> <!-- Starting -->
594 <desc>
595 Pseudo-state: first transient state (for use in relational expressions).
596 </desc>
597 </const>
598 <const name="LastTransient" value="12" wsmap="suppress"> <!-- SettingUp -->
599 <desc>
600 Pseudo-state: last transient state (for use in relational expressions).
601 </desc>
602 </const>
603
604 </enum>
605
606 <enum
607 name="SessionState"
608 uuid="CF2700C0-EA4B-47ae-9725-7810114B94D8"
609 >
610 <desc>
611 Session state. This enumeration represents possible values of
612 <link to="IMachine::sessionState"/> and <link to="ISession::state"/>
613 attributes. See individual enumerator descriptions for the meaning for
614 every value.
615 </desc>
616
617 <const name="Null" value="0">
618 <desc>Null value (never used by the API).</desc>
619 </const>
620 <const name="Closed" value="1">
621 <desc>
622 The machine has no open sessions (<link to="IMachine::sessionState"/>);
623 the session is closed (<link to="ISession::state"/>)
624 </desc>
625 </const>
626 <const name="Open" value="2">
627 <desc>
628 The machine has an open direct session (<link to="IMachine::sessionState"/>);
629 the session is open (<link to="ISession::state"/>)
630 </desc>
631 </const>
632 <const name="Spawning" value="3">
633 <desc>
634 A new (direct) session is being opened for the machine
635 as a result of <link to="IVirtualBox::openRemoteSession"/>
636 call (<link to="IMachine::sessionState"/>);
637 the session is currently being opened
638 as a result of <link to="IVirtualBox::openRemoteSession"/>
639 call (<link to="ISession::state"/>)
640 </desc>
641 </const>
642 <const name="Closing" value="4">
643 <desc>
644 The direct session is being closed (<link to="IMachine::sessionState"/>);
645 the session is being closed (<link to="ISession::state"/>)
646 </desc>
647 </const>
648 </enum>
649
650 <enum
651 name="SessionType"
652 uuid="A13C02CB-0C2C-421E-8317-AC0E8AAA153A"
653 >
654 <desc>
655 Session type. This enumeration represents possible values of the
656 <link to="ISession::type"/> attribute.
657 </desc>
658
659 <const name="Null" value="0">
660 <desc>Null value (never used by the API).</desc>
661 </const>
662 <const name="Direct" value="1">
663 <desc>
664 Direct session
665 (opened by <link to="IVirtualBox::openSession"/>)
666 </desc>
667 </const>
668 <const name="Remote" value="2">
669 <desc>
670 Remote session
671 (opened by <link to="IVirtualBox::openRemoteSession"/>)
672 </desc>
673 </const>
674 <const name="Existing" value="3">
675 <desc>
676 Existing session
677 (opened by <link to="IVirtualBox::openExistingSession"/>)
678 </desc>
679 </const>
680 </enum>
681
682 <enum
683 name="DeviceType"
684 uuid="6d9420f7-0b56-4636-99f9-7346f1b01e57"
685 >
686 <desc>
687 Device type.
688 </desc>
689 <const name="Null" value="0">
690 <desc>
691 Null value, may also mean "no device" (not allowed for
692 <link to="IConsole::getDeviceActivity"/>).
693 </desc>
694 </const>
695 <const name="Floppy" value="1">
696 <desc>Floppy device.</desc>
697 </const>
698 <const name="DVD" value="2">
699 <desc>CD/DVD-ROM device.</desc>
700 </const>
701 <const name="HardDisk" value="3">
702 <desc>Hard disk device.</desc>
703 </const>
704 <const name="Network" value="4">
705 <desc>Network device.</desc>
706 </const>
707 <const name="USB" value="5">
708 <desc>USB device.</desc>
709 </const>
710 <const name="SharedFolder" value="6">
711 <desc>Shared folder device.</desc>
712 </const>
713 </enum>
714
715 <enum
716 name="DeviceActivity"
717 uuid="6FC8AEAA-130A-4eb5-8954-3F921422D707"
718 >
719 <desc>
720 Device activity for <link to="IConsole::getDeviceActivity"/>.
721 </desc>
722
723 <const name="Null" value="0"/>
724 <const name="Idle" value="1"/>
725 <const name="Reading" value="2"/>
726 <const name="Writing" value="3"/>
727 </enum>
728
729 <enum
730 name="ClipboardMode"
731 uuid="33364716-4008-4701-8f14-be0fa3d62950"
732 >
733 <desc>
734 Host-Guest clipboard interchange mode.
735 </desc>
736
737 <const name="Disabled" value="0"/>
738 <const name="HostToGuest" value="1"/>
739 <const name="GuestToHost" value="2"/>
740 <const name="Bidirectional" value="3"/>
741 </enum>
742
743 <enum
744 name="Scope"
745 uuid="7c91096e-499e-4eca-9f9b-9001438d7855"
746 >
747 <desc>
748 Scope of the operation.
749
750 A generic enumeration used in various methods to define the action or
751 argument scope.
752 </desc>
753
754 <const name="Global" value="0"/>
755 <const name="Machine" value="1"/>
756 <const name="Session" value="2"/>
757 </enum>
758
759 <enum
760 name="GuestStatisticType"
761 uuid="aa7c1d71-aafe-47a8-9608-27d2d337cf55"
762 >
763 <desc>
764 Statistics type for <link to="IGuest::getStatistic"/>.
765 </desc>
766
767 <const name="CPULoad_Idle" value="0">
768 <desc>
769 Idle CPU load (0-100%) for last interval.
770 </desc>
771 </const>
772 <const name="CPULoad_Kernel" value="1">
773 <desc>
774 Kernel CPU load (0-100%) for last interval.
775 </desc>
776 </const>
777 <const name="CPULoad_User" value="2">
778 <desc>
779 User CPU load (0-100%) for last interval.
780 </desc>
781 </const>
782 <const name="Threads" value="3">
783 <desc>
784 Total number of threads in the system.
785 </desc>
786 </const>
787 <const name="Processes" value="4">
788 <desc>
789 Total number of processes in the system.
790 </desc>
791 </const>
792 <const name="Handles" value="5">
793 <desc>
794 Total number of handles in the system.
795 </desc>
796 </const>
797 <const name="MemoryLoad" value="6">
798 <desc>
799 Memory load (0-100%).
800 </desc>
801 </const>
802 <const name="PhysMemTotal" value="7">
803 <desc>
804 Total physical memory in megabytes.
805 </desc>
806 </const>
807 <const name="PhysMemAvailable" value="8">
808 <desc>
809 Free physical memory in megabytes.
810 </desc>
811 </const>
812 <const name="PhysMemBalloon" value="9">
813 <desc>
814 Ballooned physical memory in megabytes.
815 </desc>
816 </const>
817 <const name="MemCommitTotal" value="10">
818 <desc>
819 Total amount of memory in the committed state in megabytes.
820 </desc>
821 </const>
822 <const name="MemKernelTotal" value="11">
823 <desc>
824 Total amount of memory used by the guest OS's kernel in megabytes.
825 </desc>
826 </const>
827 <const name="MemKernelPaged" value="12">
828 <desc>
829 Total amount of paged memory used by the guest OS's kernel in megabytes.
830 </desc>
831 </const>
832 <const name="MemKernelNonpaged" value="13">
833 <desc>
834 Total amount of non-paged memory used by the guest OS's kernel in megabytes.
835 </desc>
836 </const>
837 <const name="MemSystemCache" value="14">
838 <desc>
839 Total amount of memory used by the guest OS's system cache in megabytes.
840 </desc>
841 </const>
842 <const name="PageFileSize" value="15">
843 <desc>
844 Pagefile size in megabytes.
845 </desc>
846 </const>
847 <const name="SampleNumber" value="16">
848 <desc>
849 Statistics sample number
850 </desc>
851 </const>
852 <const name="MaxVal" value="17"/>
853 </enum>
854
855 <enum
856 name="BIOSBootMenuMode"
857 uuid="ae4fb9f7-29d2-45b4-b2c7-d579603135d5"
858 >
859 <desc>
860 BIOS boot menu mode.
861 </desc>
862
863 <const name="Disabled" value="0"/>
864 <const name="MenuOnly" value="1"/>
865 <const name="MessageAndMenu" value="2"/>
866 </enum>
867
868 <enum
869 name="DriveState"
870 uuid="cb7233b7-c519-42a5-8310-1830953cacbc"
871 >
872 <const name="Null" value="0">
873 <desc>Null value (never used by the API).</desc>
874 </const>
875 <const name="NotMounted" value="1"/>
876 <const name="ImageMounted" value="2"/>
877 <const name="HostDriveCaptured" value="3"/>
878 </enum>
879
880 <enum
881 name="ProcessorFeature"
882 uuid="b8353b35-705d-4796-9967-ebfb7ba54af4"
883 >
884 <desc>
885 CPU features.
886 </desc>
887
888 <const name="HWVirtEx" value="0"/>
889 <const name="PAE" value="1"/>
890 <const name="LongMode" value="2"/>
891 </enum>
892
893
894 <!--
895 // IVirtualBoxErrorInfo
896 /////////////////////////////////////////////////////////////////////////
897 -->
898
899 <interface
900 name="IVirtualBoxErrorInfo" extends="$errorinfo"
901 uuid="bcae7fc3-3fd0-4bac-923c-ec1596c7bc83"
902 supportsErrorInfo="no"
903 wsmap="suppress"
904 >
905 <desc>
906 The IVirtualBoxErrorInfo interface represents extended error information.
907
908 Extended error information can be set by VirtualBox components after
909 unsuccessful or partially successful method invocation. This information
910 can be retrieved by the calling party as an IVirtualBoxErrorInfo object
911 and then shown to the client in addition to the plain 32-bit result code.
912
913 In MS COM, this interface extends the IErrorInfo interface,
914 in XPCOM, it extends the nsIException interface. In both cases,
915 it provides a set of common attributes to retrieve error
916 information.
917
918 Sometimes invocation of some component's method may involve methods of
919 other components that may also fail (independently of this method's
920 failure), or a series of non-fatal errors may precede a fatal error that
921 causes method failure. In cases like that, it may be desirable to preserve
922 information about all errors happened during method invocation and deliver
923 it to the caller. The <link to="#next"/> attribute is intended
924 specifically for this purpose and allows to represent a chain of errors
925 through a single IVirtualBoxErrorInfo object set after method invocation.
926
927 Note that errors are stored to a chain in the reverse order, i.e. the
928 initial error object you query right after method invocation is the last
929 error set by the callee, the object it points to in the @a next attribute
930 is the previous error and so on, up to the first error (which is the last
931 in the chain).
932 </desc>
933
934 <attribute name="resultCode" type="long" readonly="yes">
935 <desc>
936 Result code of the error.
937 Usually, it will be the same as the result code returned
938 by the method that provided this error information, but not
939 always. For example, on Win32, CoCreateInstance() will most
940 likely return E_NOINTERFACE upon unsuccessful component
941 instantiation attempt, but not the value the component factory
942 returned. Value is typed 'long', not 'result',
943 to make interface usable from scripting languages.
944 <note>
945 In MS COM, there is no equivalent.
946 In XPCOM, it is the same as nsIException::result.
947 </note>
948 </desc>
949 </attribute>
950
951 <attribute name="interfaceID" type="uuid" readonly="yes">
952 <desc>
953 UUID of the interface that defined the error.
954 <note>
955 In MS COM, it is the same as IErrorInfo::GetGUID.
956 In XPCOM, there is no equivalent.
957 </note>
958 </desc>
959 </attribute>
960
961 <attribute name="component" type="wstring" readonly="yes">
962 <desc>
963 Name of the component that generated the error.
964 <note>
965 In MS COM, it is the same as IErrorInfo::GetSource.
966 In XPCOM, there is no equivalent.
967 </note>
968 </desc>
969 </attribute>
970
971 <attribute name="text" type="wstring" readonly="yes">
972 <desc>
973 Text description of the error.
974 <note>
975 In MS COM, it is the same as IErrorInfo::GetDescription.
976 In XPCOM, it is the same as nsIException::message.
977 </note>
978 </desc>
979 </attribute>
980
981 <attribute name="next" type="IVirtualBoxErrorInfo" readonly="yes">
982 <desc>
983 Next error object if there is any, or @c null otherwise.
984 <note>
985 In MS COM, there is no equivalent.
986 In XPCOM, it is the same as nsIException::inner.
987 </note>
988 </desc>
989 </attribute>
990
991 </interface>
992
993
994 <!--
995 // IVirtualBox
996 /////////////////////////////////////////////////////////////////////////
997 -->
998
999 <interface
1000 name="IVirtualBoxCallback" extends="$unknown"
1001 uuid="2990059f-5bc8-4635-8415-658917cd3186"
1002 wsmap="suppress"
1003 >
1004 <method name="onMachineStateChange">
1005 <desc>
1006 The execution state of the given machine has changed.
1007 <see>IMachine::state</see>
1008 </desc>
1009 <param name="machineId" type="wstring" dir="in">
1010 <desc>ID of the machine this event relates to.</desc>
1011 </param>
1012 <param name="state" type="MachineState" dir="in">
1013 <desc>New execution state.</desc>
1014 </param>
1015 </method>
1016
1017 <method name="onMachineDataChange">
1018 <desc>
1019 Any of the settings of the given machine has changed.
1020 </desc>
1021 <param name="machineId" type="wstring" dir="in">
1022 <desc>ID of the machine this event relates to.</desc>
1023 </param>
1024 </method>
1025
1026 <method name="onExtraDataCanChange">
1027 <desc>
1028 Notification when someone tries to change extra data for
1029 either the given machine or (if @c null) global extra data.
1030 This gives the chance to veto against changes.
1031 </desc>
1032 <param name="machineId" type="wstring" dir="in">
1033 <desc>
1034 ID of the machine this event relates to
1035 (@c null ID for global extra data change requests).
1036 </desc>
1037 </param>
1038 <param name="key" type="wstring" dir="in">
1039 <desc>
1040 Extra data key for the attempted write.
1041 </desc>
1042 </param>
1043 <param name="value" type="wstring" dir="in">
1044 <desc>
1045 Extra data value for the given key.
1046 </desc>
1047 </param>
1048 <param name="error" type="wstring" dir="out">
1049 <desc>
1050 Optional error message describing the reason of the
1051 veto (ignored if this notification returns @c true).
1052 </desc>
1053 </param>
1054 <param name="allowChange" type="boolean" dir="return">
1055 <desc>
1056 Flag to indicate whether the callee agrees (@c true)
1057 or vetoes against the change (@c false).
1058 </desc>
1059 </param>
1060 </method>
1061
1062 <method name="onExtraDataChange">
1063 <desc>
1064 Notification when machine specific or global extra data
1065 has changed.
1066 </desc>
1067 <param name="machineId" type="wstring" dir="in">
1068 <desc>
1069 ID of the machine this event relates to.
1070 Null for global extra data changes.
1071 </desc>
1072 </param>
1073 <param name="key" type="wstring" dir="in">
1074 <desc>
1075 Extra data key that has changed.
1076 </desc>
1077 </param>
1078 <param name="value" type="wstring" dir="in">
1079 <desc>
1080 Extra data value for the given key.
1081 </desc>
1082 </param>
1083 </method>
1084
1085 <method name="onMediaRegistered">
1086 <desc>
1087 The given media was registered or unregistered
1088 within this VirtualBox installation.
1089
1090 The @a mediaType parameter describes what type of
1091 media the specified @a mediaId refers to. Possible
1092 values are:
1093
1094 <ul>
1095 <li><link to="DeviceType_HardDisk"/>: the media is a hard disk
1096 that, if registered, can be obtained using the
1097 <link to="IVirtualBox::getHardDisk"/> call.</li>
1098 <li><link to="DeviceType_DVD"/>: the media is a CD/DVD image
1099 that, if registered, can be obtained using the
1100 <link to="IVirtualBox::getDVDImage"/> call.</li>
1101 <li><link to="DeviceType_Floppy"/>: the media is a Floppy image
1102 that, if registered, can be obtained using the
1103 <link to="IVirtualBox::getFloppyImage"/> call.</li>
1104 </ul>
1105
1106 Note that if this is a deregistration notification,
1107 there is no way to access the object representing the
1108 unregistered media. It is supposed that the
1109 application will do required cleanup based on the
1110 @a mediaId value.
1111 </desc>
1112 <param name="mediaId" type="wstring" dir="in">
1113 <desc>ID of the media this event relates to.</desc>
1114 </param>
1115 <param name="mediaType" type="DeviceType" dir="in">
1116 <desc>Type of the media this event relates to.</desc>
1117 </param>
1118 <param name="registered" type="boolean" dir="in">
1119 <desc>
1120 If @c true, the media was registered, otherwise it was
1121 unregistered.
1122 </desc>
1123 </param>
1124 </method>
1125
1126 <method name="onMachineRegistered">
1127 <desc>
1128 The given machine was registered or unregistered
1129 within this VirtualBox installation.
1130 </desc>
1131 <param name="machineId" type="wstring" dir="in">
1132 <desc>ID of the machine this event relates to.</desc>
1133 </param>
1134 <param name="registered" type="boolean" dir="in">
1135 <desc>
1136 If @c true, the machine was registered, otherwise it was
1137 unregistered.
1138 </desc>
1139 </param>
1140 </method>
1141
1142 <method name="onSessionStateChange">
1143 <desc>
1144 The state of the session for the given machine was changed.
1145 <see>IMachine::sessionState</see>
1146 </desc>
1147 <param name="machineId" type="wstring" dir="in">
1148 <desc>ID of the machine this event relates to.</desc>
1149 </param>
1150 <param name="state" type="SessionState" dir="in">
1151 <desc>New session state.</desc>
1152 </param>
1153 </method>
1154
1155 <method name="onSnapshotTaken">
1156 <desc>
1157 A new snapshot of the machine has been taken.
1158 <see>ISnapshot</see>
1159 </desc>
1160 <param name="machineId" type="wstring" dir="in">
1161 <desc>ID of the machine this event relates to.</desc>
1162 </param>
1163 <param name="snapshotId" type="wstring" dir="in">
1164 <desc>ID of the new snapshot.</desc>
1165 </param>
1166 </method>
1167
1168 <method name="onSnapshotDiscarded">
1169 <desc>
1170 Snapshot of the given machine has been discarded.
1171
1172 <note>
1173 This notification is delivered <b>after</b> the snapshot
1174 object has been uninitialized on the server (so that any
1175 attempt to call its methods will return an error).
1176 </note>
1177
1178 <see>ISnapshot</see>
1179 </desc>
1180 <param name="machineId" type="wstring" dir="in">
1181 <desc>ID of the machine this event relates to.</desc>
1182 </param>
1183 <param name="snapshotId" type="wstring" dir="in">
1184 <desc>
1185 ID of the discarded snapshot. @c null means the current machine
1186 state has been discarded (restored from the current snapshot).
1187 </desc>
1188 </param>
1189 </method>
1190
1191 <method name="onSnapshotChange">
1192 <desc>
1193 Snapshot properties (name and/or description) have been changed.
1194 <see>ISnapshot</see>
1195 </desc>
1196 <param name="machineId" type="wstring" dir="in">
1197 <desc>ID of the machine this event relates to.</desc>
1198 </param>
1199 <param name="snapshotId" type="wstring" dir="in">
1200 <desc>ID of the changed snapshot.</desc>
1201 </param>
1202 </method>
1203
1204 <method name="onGuestPropertyChange">
1205 <desc>
1206 Notification when a guest property has changed.
1207 </desc>
1208 <param name="machineId" type="wstring" dir="in">
1209 <desc>
1210 ID of the machine this event relates to.
1211 </desc>
1212 </param>
1213 <param name="name" type="wstring" dir="in">
1214 <desc>
1215 The name of the property that has changed.
1216 </desc>
1217 </param>
1218 <param name="value" type="wstring" dir="in">
1219 <desc>
1220 The new property value.
1221 </desc>
1222 </param>
1223 <param name="flags" type="wstring" dir="in">
1224 <desc>
1225 The new property flags.
1226 </desc>
1227 </param>
1228 </method>
1229
1230 </interface>
1231
1232 <interface
1233 name="IDHCPServer" extends="$unknown"
1234 uuid="6cfe387c-74fb-4ca7-bff6-973bec8af7a3"
1235 wsmap="managed"
1236 >
1237 <desc>
1238 The IDHCPServer interface represents the vbox dhcp server configuration.
1239
1240 To enumerate all the dhcp servers on the host, use the
1241 <link to="IVirtualBox::DHCPServers"/> attribute.
1242 </desc>
1243
1244 <attribute name="enabled" type="boolean">
1245 <desc>
1246 specifies if the dhcp server is enabled
1247 </desc>
1248 </attribute>
1249
1250 <attribute name="IPAddress" type="wstring" readonly="yes">
1251 <desc>
1252 specifies server IP
1253 </desc>
1254 </attribute>
1255
1256 <attribute name="networkMask" type="wstring" readonly="yes">
1257 <desc>
1258 specifies server network mask
1259 </desc>
1260 </attribute>
1261
1262 <attribute name="networkName" type="wstring" readonly="yes">
1263 <desc>
1264 specifies internal network name the server is used for
1265 </desc>
1266 </attribute>
1267
1268 <attribute name="lowerIP" type="wstring" readonly="yes">
1269 <desc>
1270 specifies from IP adrres in server address range
1271 </desc>
1272 </attribute>
1273
1274 <attribute name="upperIP" type="wstring" readonly="yes">
1275 <desc>
1276 specifies to IP adrres in server address range
1277 </desc>
1278 </attribute>
1279
1280 <method name="setConfiguration">
1281 <desc>
1282 configures the server
1283 <result name="E_INVALIDARG">
1284 invalid configuration supplied
1285 </result>
1286 </desc>
1287 <param name="IPAddress" type="wstring" dir="in">
1288 <desc>
1289 server IP address
1290 </desc>
1291 </param>
1292 <param name="networkMask" type="wstring" dir="in">
1293 <desc>
1294 server network mask
1295 </desc>
1296 </param>
1297 <param name="FromIPAddress" type="wstring" dir="in">
1298 <desc>
1299 server From IP address for address range
1300 </desc>
1301 </param>
1302 <param name="ToIPAddress" type="wstring" dir="in">
1303 <desc>
1304 server To IP address for address range
1305 </desc>
1306 </param>
1307 </method>
1308
1309 <method name="start">
1310 <desc>
1311 Starts DHCP server process.
1312 <result name="E_FAIL">
1313 Failed to start the process.
1314 </result>
1315 </desc>
1316 <param name="networkName" type="wstring" dir="in">
1317 <desc>
1318 Name of internal network DHCP server should attach to.
1319 </desc>
1320 </param>
1321 <param name="trunkName" type="wstring" dir="in">
1322 <desc>
1323 Name of internal network trunk.
1324 </desc>
1325 </param>
1326 <param name="trunkType" type="wstring" dir="in">
1327 <desc>
1328 Type of internal network trunk.
1329 </desc>
1330 </param>
1331 </method>
1332
1333 <method name="stop">
1334 <desc>
1335 Stops DHCP server process.
1336 <result name="E_FAIL">
1337 Failed to stop the process.
1338 </result>
1339 </desc>
1340 </method>
1341 </interface>
1342
1343 <interface
1344 name="IVirtualBox" extends="$dispatched"
1345 uuid="3f4ab53a-199b-4526-a91a-93ff62e456b8"
1346 wsmap="managed"
1347 >
1348 <desc>
1349 The IVirtualBox interface represents the main interface exposed by the
1350 product that provides virtual machine management.
1351
1352 An instance of IVirtualBox is required for the product to do anything
1353 useful. Even though the interface does not expose this, internally,
1354 IVirtualBox is implemented as a singleton and actually lives in the
1355 process of the VirtualBox server (VBoxSVC.exe). This makes sure that
1356 IVirtualBox can track the state of all virtual machines on a particular
1357 host, regardless of which frontend started them.
1358
1359 To enumerate all the virtual machines on the host, use the
1360 <link to="IVirtualBox::machines"/> attribute.
1361 </desc>
1362
1363 <attribute name="version" type="wstring" readonly="yes">
1364 <desc>
1365 A string representing the version number of the product. The
1366 format is 3 integer numbers divided by dots (e.g. 1.0.1). The
1367 last number represents the build number and will frequently change.
1368 </desc>
1369 </attribute>
1370
1371 <attribute name="revision" type="unsigned long" readonly="yes">
1372 <desc>
1373 The internal build revision number of the product.
1374 </desc>
1375 </attribute>
1376
1377 <attribute name="packageType" type="wstring" readonly="yes">
1378 <desc>
1379 A string representing the package type of this product. The
1380 format is OS_ARCH_DIST where OS is either WINDOWS, LINUX,
1381 SOLARIS, DARWIN. ARCH is either 32BITS or 64BITS. DIST
1382 is either GENERIC, UBUNTU_606, UBUNTU_710, or something like
1383 this.
1384 </desc>
1385 </attribute>
1386
1387 <attribute name="homeFolder" type="wstring" readonly="yes">
1388 <desc>
1389 Full path to the directory where the global settings file,
1390 <tt>VirtualBox.xml</tt>, is stored.
1391
1392 In this version of VirtualBox, the value of this property is
1393 always <tt>&lt;user_dir&gt;/.VirtualBox</tt> (where
1394 <tt>&lt;user_dir&gt;</tt> is the path to the user directory,
1395 as determined by the host OS), and cannot be changed.
1396
1397 This path is also used as the base to resolve relative paths in
1398 places where relative paths are allowed (unless otherwise
1399 expressly indicated).
1400 </desc>
1401 </attribute>
1402
1403 <attribute name="settingsFilePath" type="wstring" readonly="yes">
1404 <desc>
1405 Full name of the global settings file.
1406 The value of this property corresponds to the value of
1407 <link to="#homeFolder"/> plus <tt>/VirtualBox.xml</tt>.
1408 </desc>
1409 </attribute>
1410
1411 <attribute name="settingsFileVersion" type="wstring" readonly="yes">
1412 <desc>
1413 Current version of the format of the global VirtualBox settings file
1414 (<tt>VirtualBox.xml</tt>).
1415
1416 The version string has the following format:
1417 <pre>
1418 x.y-platform
1419 </pre>
1420 where @c x and @c y are the major and the minor format
1421 versions, and @c platform is the platform identifier.
1422
1423 The current version usually matches the value of the
1424 <link to="#settingsFormatVersion"/> attribute unless the
1425 settings file was created by an older version of VirtualBox and there
1426 was a change of the settings file format since then.
1427
1428 Note that VirtualBox automatically converts settings files from older
1429 versions to the most recent version when reading them (usually at
1430 VirtualBox startup) but it doesn't save the changes back until
1431 you call a method that implicitly saves settings (such as
1432 <link to="#setExtraData"/>) or call <link to="#saveSettings"/>
1433 explicitly. Therefore, if the value of this attribute differs from the
1434 value of <link to="#settingsFormatVersion"/>, then it
1435 means that the settings file was converted but the result of the
1436 conversion is not yet saved to disk.
1437
1438 The above feature may be used by interactive front-ends to inform users
1439 about the settings file format change and offer them to explicitly save
1440 all converted settings files (the global and VM-specific ones),
1441 optionally create backup copies of the old settings files before saving,
1442 etc.
1443
1444 <see>settingsFormatVersion, saveSettingsWithBackup()</see>
1445 </desc>
1446 </attribute>
1447
1448 <attribute name="settingsFormatVersion" type="wstring" readonly="yes">
1449 <desc>
1450 Most recent version of the settings file format.
1451
1452 The version string has the following format:
1453 <pre>
1454 x.y-platform
1455 </pre>
1456 where @c x and @c y are the major and the minor format
1457 versions, and @c platform is the platform identifier.
1458
1459 VirtualBox uses this version of the format when saving settings files
1460 (either as a result of method calls that require to save settings or as
1461 a result of an explicit call to <link to="#saveSettings"/>).
1462
1463 <see>settingsFileVersion</see>
1464 </desc>
1465 </attribute>
1466
1467 <attribute name="host" type="IHost" readonly="yes">
1468 <desc>Associated host object.</desc>
1469 </attribute>
1470
1471 <attribute name="systemProperties" type="ISystemProperties" readonly="yes">
1472 <desc>Associated system information object.</desc>
1473 </attribute>
1474
1475 <attribute name="machines" type="IMachine" readonly="yes" safearray="yes">
1476 <desc>
1477 Array of machine objects registered within this VirtualBox instance.
1478 </desc>
1479 </attribute>
1480
1481 <attribute name="hardDisks" type="IHardDisk" readonly="yes" safearray="yes">
1482 <desc>
1483 Array of hard disk objects known to this VirtualBox installation.
1484
1485 This array contains only base (root) hard disks. All differencing
1486 hard disks of the given base hard disk can be enumerated using
1487 <link to="IHardDisk::children"/>.
1488 </desc>
1489 </attribute>
1490
1491 <attribute name="DVDImages" type="IDVDImage" readonly="yes" safearray="yes">
1492 <desc>
1493 Array of CD/DVD image objects registered with this VirtualBox instance.
1494 </desc>
1495 </attribute>
1496
1497 <attribute name="floppyImages" type="IFloppyImage" readonly="yes" safearray="yes">
1498 <desc>
1499 Array of floppy image objects registered with this VirtualBox instance.
1500 </desc>
1501 </attribute>
1502
1503 <attribute name="progressOperations" type="IProgress" readonly="yes" safearray="yes"/>
1504
1505 <attribute name="guestOSTypes" type="IGuestOSType" readonly="yes" safearray="yes"/>
1506
1507 <attribute name="sharedFolders" type="ISharedFolder" readonly="yes" safearray="yes">
1508 <desc>
1509 Collection of global shared folders. Global shared folders are
1510 available to all virtual machines.
1511
1512 New shared folders are added to the collection using
1513 <link to="#createSharedFolder"/>. Existing shared folders can be
1514 removed using <link to="#removeSharedFolder"/>.
1515
1516 <note>
1517 In the current version of the product, global shared folders are not
1518 implemented and therefore this collection is always empty.
1519 </note>
1520 </desc>
1521 </attribute>
1522
1523 <attribute name="performanceCollector" type="IPerformanceCollector" readonly="yes">
1524 <desc>
1525 Associated performance collector object.
1526 </desc>
1527 </attribute>
1528
1529 <attribute name="DHCPServers" type="IDHCPServer" safearray="yes" readonly="yes">
1530 <desc>
1531 dhcp server settings.
1532 </desc>
1533 </attribute>
1534
1535 <method name="createMachine">
1536 <desc>
1537 Creates a new virtual machine.
1538
1539 The new machine is created unregistered, with the initial configuration
1540 set according to the specified guest OS type. A typical sequence of
1541 actions to create a new virtual machine is as follows:
1542
1543 <ol>
1544 <li>
1545 Call this method to have a new machine created. The returned machine
1546 object will be "mutable" allowing to change any machine property.
1547 </li>
1548
1549 <li>
1550 Configure the machine using the appropriate attributes and methods.
1551 </li>
1552
1553 <li>
1554 Call <link to="IMachine::saveSettings" /> to write the settings
1555 to the machine's XML settings file. The configuration of the newly
1556 created machine will not be saved to disk until this method is
1557 called.
1558 </li>
1559
1560 <li>
1561 Call <link to="#registerMachine" /> to add the machine to the list
1562 of machines known to VirtualBox.
1563 </li>
1564 </ol>
1565
1566 You should specify valid name for the newly created machine when calling
1567 this method. See the <link to="IMachine::name"/> attribute description
1568 for more details about the machine name.
1569
1570 The specified guest OS type identifier must match an ID of one of known
1571 guest OS types listed in the <link to="IVirtualBox::guestOSTypes"/>
1572 array.
1573
1574 Every machine has a <i>settings file</i> that is used to store
1575 the machine configuration. This file is stored in a directory called the
1576 <i>machine settings subfolder</i>. Both the settings subfolder and file
1577 will have a name that corresponds to the name of the virtual machine.
1578 You can specify where to create the machine setting subfolder using the
1579 @a baseFolder argument. The base folder can be absolute (full path) or
1580 relative to the <link to="IVirtualBox::homeFolder">VirtualBox home
1581 directory</link>.
1582
1583 If @a baseFolder is a @c null or empty string (which is recommended), the
1584 <link to="ISystemProperties::defaultMachineFolder">default machine
1585 settings folder</link> will be used as a base folder for the created
1586 machine. Otherwise the given base folder will be used. In either case,
1587 the full path to the resulting settings file has the following
1588 structure:
1589 <pre>
1590 &lt;base_folder&gt;/&lt;machine_name&gt;/&lt;machine_name&gt;.xml
1591 </pre>
1592
1593 Note that if the resulting settings file already exists, this method
1594 will fail with <link to="VBOX_E_FILE_ERROR"/>.
1595
1596 Optionally, you may specify an UUID of to assign to the created machine.
1597 However, this is not recommended and you should normally pass an empty
1598 (@c null) UUID to this method so that a new UUID will be automatically
1599 generated for every created machine. You can use UUID
1600 00000000-0000-0000-0000-000000000000 as @c null value.
1601
1602 <note>
1603 There is no way to change the name of the settings file or
1604 subfolder of the created machine directly.
1605 </note>
1606
1607 <result name="VBOX_E_OBJECT_NOT_FOUND">
1608 @a osTypeId is invalid.
1609 </result>
1610 <result name="VBOX_E_FILE_ERROR">
1611 Resulting settings file name is invalid or the settings file already
1612 exists or could not be created due to an I/O error.
1613 </result>
1614 <result name="E_INVALIDARG">
1615 @a name is empty or @c null.
1616 </result>
1617 </desc>
1618
1619 <param name="name" type="wstring" dir="in">
1620 <desc>Machine name.</desc>
1621 </param>
1622 <param name="osTypeId" type="wstring" dir="in">
1623 <desc>Guest OS Type ID.</desc>
1624 </param>
1625 <param name="baseFolder" type="wstring" dir="in">
1626 <desc>Base machine folder (optional).</desc>
1627 </param>
1628 <param name="id" type="wstring" dir="in">
1629 <desc>Machine UUID (optional).</desc>
1630 </param>
1631 <param name="machine" type="IMachine" dir="return">
1632 <desc>Created machine object.</desc>
1633 </param>
1634 </method>
1635
1636 <method name="createLegacyMachine">
1637 <desc>
1638 Creates a new virtual machine in "legacy" mode, using the specified
1639 settings file to store machine settings.
1640
1641 As opposed to machines created by <link to="#createMachine"/>,
1642 the settings file of the machine created in "legacy" mode is not
1643 automatically renamed when the machine name is changed -- it will always
1644 remain the same as specified in this method call.
1645
1646 The specified settings file name can be absolute (full path) or relative
1647 to the <link to="IVirtualBox::homeFolder">VirtualBox home
1648 directory</link>. If the file name doesn't contain an extension, the
1649 default extension (.xml) will be appended.
1650
1651 Note that the configuration of the newly created machine is not
1652 saved to disk (and therefore no settings file is created)
1653 until <link to="IMachine::saveSettings"/> is called. If the
1654 specified settings file already exists, this method
1655 will fail with <link to="VBOX_E_FILE_ERROR"/>.
1656
1657 See <link to="#createMachine"/> for more information.
1658
1659 @deprecated This method may be removed later. Use <link
1660 to="IVirtualBox::createMachine"/> instead.
1661
1662 <note>
1663 There is no way to change the name of the settings file
1664 of the machine created in "legacy" mode.
1665 </note>
1666
1667 <result name="VBOX_E_OBJECT_NOT_FOUND">
1668 @a osTypeId is invalid.
1669 </result>
1670 <result name="VBOX_E_FILE_ERROR">
1671 @a settingsFile is invalid or the settings file already exists or
1672 could not be created due to an I/O error.
1673 </result>
1674 <result name="E_INVALIDARG">
1675 @a name or @a settingsFile is empty or @c null.
1676 </result>
1677 </desc>
1678
1679 <param name="name" type="wstring" dir="in">
1680 <desc>Machine name.</desc>
1681 </param>
1682 <param name="osTypeId" type="wstring" dir="in">
1683 <desc>Machine OS Type ID.</desc>
1684 </param>
1685 <param name="settingsFile" type="wstring" dir="in">
1686 <desc>Name of the machine settings file.</desc>
1687 </param>
1688 <param name="id" type="wstring" dir="in">
1689 <desc>Machine UUID (optional).</desc>
1690 </param>
1691 <param name="machine" type="IMachine" dir="return">
1692 <desc>Created machine object.</desc>
1693 </param>
1694 </method>
1695
1696 <method name="openMachine">
1697 <desc>
1698 Opens a virtual machine from the existing settings file.
1699 The opened machine remains unregistered until you call
1700 <link to="#registerMachine"/>.
1701
1702 The specified settings file name can be absolute
1703 (full path) or relative to the <link to="IVirtualBox::homeFolder">
1704 VirtualBox home directory</link>. This file must exist
1705 and must be a valid machine settings file whose contents
1706 will be used to construct the machine object.
1707
1708 @deprecated Will be removed soon.
1709 <result name="VBOX_E_FILE_ERROR">
1710 Settings file name invalid, not found or sharing violation.
1711 </result>
1712 </desc>
1713 <param name="settingsFile" type="wstring" dir="in">
1714 <desc>
1715 Name of the machine settings file.
1716 </desc>
1717 </param>
1718 <param name="machine" type="IMachine" dir="return">
1719 <desc>Opened machine object.</desc>
1720 </param>
1721 <note>
1722 <link to="IMachine::settingsModified"/> will return
1723 @c false for the created machine, until any of machine settings
1724 are changed.
1725 </note>
1726 </method>
1727
1728 <method name="registerMachine">
1729 <desc>
1730
1731 Registers the machine previously created using
1732 <link to="#createMachine"/> or opened using
1733 <link to="#openMachine"/> within this VirtualBox installation. After
1734 successful method invocation, the
1735 <link to="IVirtualBoxCallback::onMachineRegistered"/> signal is sent
1736 to all registered callbacks.
1737
1738 <note>
1739 This method implicitly calls <link to="IMachine::saveSettings"/>
1740 to save all current machine settings before registering it.
1741 </note>
1742
1743 <result name="VBOX_E_OBJECT_NOT_FOUND">
1744 No matching virtual machine found.
1745 </result>
1746 <result name="VBOX_E_INVALID_OBJECT_STATE">
1747 Virtual machine was not created within this VirtualBox instance.
1748 </result>
1749
1750 </desc>
1751 <param name="machine" type="IMachine" dir="in"/>
1752 </method>
1753
1754 <method name="getMachine">
1755 <desc>
1756 Attempts to find a virtual machine given its UUID.
1757 To look up a machine by name, use <link to="IVirtualBox::findMachine" />
1758 instead.
1759
1760 <result name="VBOX_E_OBJECT_NOT_FOUND">
1761 Could not find registered machine matching @a id.
1762 </result>
1763
1764 </desc>
1765 <param name="id" type="wstring" dir="in"/>
1766 <param name="machine" type="IMachine" dir="return"/>
1767 </method>
1768
1769 <method name="findMachine">
1770 <desc>
1771 Attempts to find a virtual machine given its name.
1772 To look up a machine by UUID, use <link to="IVirtualBox::getMachine" />
1773 instead.
1774
1775 <result name="VBOX_E_OBJECT_NOT_FOUND">
1776 Could not find registered machine matching @a name.
1777 </result>
1778
1779 </desc>
1780 <param name="name" type="wstring" dir="in"/>
1781 <param name="machine" type="IMachine" dir="return"/>
1782 </method>
1783
1784 <method name="unregisterMachine">
1785 <desc>
1786
1787 Unregisters the machine previously registered using
1788 <link to="#registerMachine"/>. After successful method invocation, the
1789 <link to="IVirtualBoxCallback::onMachineRegistered"/> signal is sent
1790 to all registered callbacks.
1791
1792 <note>
1793 The specified machine must not be in the Saved state, have an open
1794 (or a spawning) direct session associated with it, have snapshots or
1795 have hard disks attached.
1796 </note>
1797
1798 <note>
1799 This method implicitly calls <link to="IMachine::saveSettings"/> to
1800 save all current machine settings before unregistering it.
1801 </note>
1802
1803 <note>
1804 If the given machine is inaccessible (see
1805 <link to="IMachine::accessible"/>), it will be unregistered and
1806 fully uninitialized right afterwards. As a result, the returned
1807 machine object will be unusable and an attempt to call
1808 <b>any</b> method will return the "Object not ready" error.
1809 </note>
1810
1811 <result name="VBOX_E_OBJECT_NOT_FOUND">
1812 Could not find registered machine matching @a id.
1813 </result>
1814 <result name="VBOX_E_INVALID_VM_STATE">
1815 Machine is in Saved state.
1816 </result>
1817 <result name="VBOX_E_INVALID_OBJECT_STATE">
1818 Machine has snapshot or open session or hard disk attached.
1819 </result>
1820
1821 </desc>
1822 <param name="id" type="wstring" dir="in">
1823 <desc>UUID of the machine to unregister.</desc>
1824 </param>
1825 <param name="machine" type="IMachine" dir="return">
1826 <desc>Unregistered machine object.</desc>
1827 </param>
1828 </method>
1829
1830 <method name="createAppliance">
1831 <desc>
1832 Creates a new appliance object, which represents an appliance in the Open Virtual Machine
1833 Format (OVF). This can then be used to import an OVF appliance into VirtualBox or to export
1834 machines as an OVF appliance; see the documentation for <link to="IAppliance" /> for details.
1835 </desc>
1836 <param name="appliance" type="IAppliance" dir="return">
1837 <desc>New appliance.</desc>
1838 </param>
1839 </method>
1840
1841 <method name="createHardDisk">
1842 <desc>
1843 Creates a new base hard disk object that will use the given storage
1844 format and location for hard disk data.
1845
1846 Note that the actual storage unit is not created by this method. In
1847 order to do it, and before you are able to attach the created hard disk
1848 to virtual machines, you must call one of the following methods to
1849 allocate a format-specific storage unit at the specified location:
1850 <ul>
1851 <li><link to="IHardDisk::createBaseStorage"/></li>
1852 <li><link to="IHardDisk::createDiffStorage"/></li>
1853 </ul>
1854
1855 Some hard disk attributes, such as <link to="IHardDisk::id"/>, may
1856 remain uninitialized until the hard disk storage unit is successfully
1857 created by one of the above methods.
1858
1859 After the storage unit is successfully created, the hard disk gets
1860 remembered by this VirtualBox installation and will be accessible
1861 through <link to="#getHardDisk"/> and <link to="#findHardDisk"/>
1862 methods. Remembered root (base) hard disks are also returned as part of
1863 the <link to="#hardDisks"/> array. See IHardDisk for more details.
1864
1865 The list of all storage formats supported by this VirtualBox
1866 installation can be obtained using
1867 <link to="ISystemProperties::hardDiskFormats"/>. If the @a format
1868 attribute is empty or @c null then the default storage format
1869 specified by <link to="ISystemProperties::defaultHardDiskFormat"/> will
1870 be used for creating a storage unit of the hard disk.
1871
1872 Note that the format of the location string is storage format specific.
1873 See <link to="IMedium::location"/>, IHardDisk and
1874 <link to="ISystemProperties::defaultHardDiskFolder"/> for more details.
1875
1876 <result name="VBOX_E_OBJECT_NOT_FOUND">
1877 @a format identifier is invalid. See
1878 <link to="ISystemProperties::hardDiskFormats"/>.
1879 </result>
1880 <result name="VBOX_E_FILE_ERROR">
1881 @a location is a not valid file name (for file-based formats only).
1882 </result>
1883 </desc>
1884 <param name="format" type="wstring" dir="in">
1885 <desc>
1886 Identifier of the storage format to use for the new hard disk.
1887 </desc>
1888 </param>
1889 <param name="location" type="wstring" dir="in">
1890 <desc>
1891 Location of the storage unit for the new hard disk.
1892 </desc>
1893 </param>
1894 <param name="hardDisk" type="IHardDisk" dir="return">
1895 <desc>Created hard disk object.</desc>
1896 </param>
1897 </method>
1898
1899 <method name="openHardDisk">
1900 <desc>
1901 Opens a hard disk from an existing location, optionally replacing
1902 the image UUID and/or parent UUID.
1903
1904 After the hard disk is successfully opened by this method, it gets
1905 remembered by (known to) this VirtualBox installation and will be
1906 accessible through <link to="#getHardDisk"/> and
1907 <link to="#findHardDisk"/> methods. Remembered root (base) hard disks
1908 are also returned as part of the <link to="#hardDisks"/> array and can
1909 be attached to virtual machines. See IHardDisk for more details.
1910
1911 If a differencing hard disk is to be opened by this method, the
1912 operation will succeed only if its parent hard disk and all ancestors,
1913 if any, are already known to this VirtualBox installation (for example,
1914 were opened by this method before).
1915
1916 This method tries to guess the storage format of the specified hard disk
1917 by reading hard disk data at the specified location.
1918
1919 If @a write is ReadWrite (which it should be), the image is opened for
1920 read/write access and must have according permissions, as VirtualBox
1921 may actually write status information into the disk's metadata sections.
1922
1923 Note that write access is required for all typical image usage in VirtualBox,
1924 since VirtualBox may need to write metadata such as a UUID into the image.
1925 The only exception is opening a source image temporarily for copying and
1926 cloning when the image will quickly be closed again.
1927
1928 Note that the format of the location string is storage format specific.
1929 See <link to="IMedium::location"/>, IHardDisk and
1930 <link to="ISystemProperties::defaultHardDiskFolder"/> for more details.
1931
1932 <result name="VBOX_E_FILE_ERROR">
1933 Invalid hard disk storage file location or could not find the hard
1934 disk at the specified location.
1935 </result>
1936 <result name="VBOX_E_IPRT_ERROR">
1937 Could not get hard disk storage format.
1938 </result>
1939 <result name="E_INVALIDARG">
1940 Invalid hard disk storage format.
1941 </result>
1942
1943 </desc>
1944 <param name="location" type="wstring" dir="in">
1945 <desc>
1946 Location of the storage unit that contains hard disk data in one of
1947 the supported storage formats.
1948 </desc>
1949 </param>
1950 <param name="accessMode" type="AccessMode" dir="in">
1951 <desc>
1952 Determines whether to open the image in read/write or read-only mode.
1953 </desc>
1954 </param>
1955 <param name="setImageId" type="boolean" dir="in">
1956 <desc>
1957 Select whether a new image UUID is set or not.
1958 </desc>
1959 </param>
1960 <param name="imageId" type="wstring" dir="in">
1961 <desc>
1962 New UUID for the image. If an empty string is passed, then a new
1963 UUID is automatically created. Specifying a zero UUIDs is not valid.
1964 </desc>
1965 </param>
1966 <param name="setParentId" type="boolean" dir="in">
1967 <desc>
1968 Select whether a new parent UUID is set or not.
1969 </desc>
1970 </param>
1971 <param name="parentId" type="wstring" dir="in">
1972 <desc>
1973 New parent UUID for the image. If an empty string is passed, then a
1974 new UUID is automatically created, provided @a setParentId is
1975 @c true. A zero UUID is valid.
1976 </desc>
1977 </param>
1978 <param name="hardDisk" type="IHardDisk" dir="return">
1979 <desc>Opened hard disk object.</desc>
1980 </param>
1981 </method>
1982
1983 <method name="getHardDisk" const="yes">
1984 <desc>
1985 Returns a hard disk with the given UUID.
1986
1987 The hard disk with the given UUID must be known to this VirtualBox
1988 installation, i.e. it must be previously created by
1989 <link to="#createHardDisk"/> or opened by <link
1990 to="#openHardDisk"/>, or attached to some known virtual machine.
1991
1992 <result name="VBOX_E_OBJECT_NOT_FOUND">
1993 No hard disk object matching @a id found.
1994 </result>
1995
1996 </desc>
1997 <param name="id" type="wstring" dir="in">
1998 <desc>UUID of the hard disk to look for.</desc>
1999 </param>
2000 <param name="hardDisk" type="IHardDisk" dir="return">
2001 <desc>Found hard disk object.</desc>
2002 </param>
2003 </method>
2004
2005 <method name="findHardDisk">
2006 <desc>
2007 Returns a hard disk that uses the given location to store hard
2008 disk data.
2009
2010 The given hard disk must be known to this VirtualBox installation, i.e.
2011 it must be previously created by
2012 <link to="#createHardDisk"/> or opened by <link
2013 to="#openHardDisk"/>, or attached to some known virtual machine.
2014
2015 The search is done by comparing the value of the @a location argument to
2016 the <link to="IHardDisk::location"/> attribute of each known hard
2017 disk.
2018
2019 For locations represented by file names in the host's file system, the
2020 requested location can be a path relative to the
2021 <link to="IVirtualBox::homeFolder">VirtualBox home folder</link>. If
2022 only a file name without any path is given, the
2023 <link to="ISystemProperties::defaultHardDiskFolder"> default hard disk
2024 folder</link> will be prepended to the file name before searching. Note
2025 that on case sensitive file systems, a case sensitive comparison is
2026 performed, otherwise the case of symbols in the file path is ignored.
2027
2028 <result name="VBOX_E_OBJECT_NOT_FOUND">
2029 No hard disk object matching @a location found.
2030 </result>
2031
2032 </desc>
2033 <param name="location" type="wstring" dir="in">
2034 <desc>Location string to search for.</desc>
2035 </param>
2036 <param name="hardDisk" type="IHardDisk" dir="return">
2037 <desc>Found hard disk object.</desc>
2038 </param>
2039 </method>
2040
2041 <method name="openDVDImage">
2042 <desc>
2043 Opens a CD/DVD image contained in the specified file of the supported
2044 format and assigns it the given UUID.
2045
2046 After the image is successfully opened by this method, it gets
2047 remembered by (known to) this VirtualBox installation and will be
2048 accessible through <link to="#getDVDImage"/> and
2049 <link to="#findDVDImage"/> methods. Remembered images are also
2050 returned as part of the <link to="#DVDImages"/> array and can be mounted
2051 to virtual machines. See IMedium for more details.
2052
2053 See <link to="IMedium::location"/> to get more details about the format
2054 of the location string.
2055
2056 <note>
2057 Currently only ISO 9960 CD/DVD images are supported by VirtualBox.
2058 </note>
2059
2060 <result name="VBOX_E_FILE_ERROR">
2061 Invalid CD/DVD image file location or could not find the CD/DVD
2062 image at the specified location.
2063 </result>
2064 <result name="VBOX_E_INVALID_OBJECT_STATE">
2065 CD/DVD image already exists in the media registry.
2066 </result>
2067
2068 </desc>
2069 <param name="location" type="wstring" dir="in">
2070 <desc>
2071 Full path to the file that contains a valid CD/DVD image.
2072 </desc>
2073 </param>
2074 <param name="id" type="wstring" dir="in">
2075 <desc>
2076 UUID to assign to the given image within this VirtualBox installation.
2077 If an empty (@c null) UUID is specified, the system will randomly
2078 generate a new UUID.
2079 </desc>
2080 </param>
2081 <param name="image" type="IDVDImage" dir="return">
2082 <desc>Opened CD/DVD image object.</desc>
2083 </param>
2084 </method>
2085
2086 <method name="getDVDImage">
2087 <desc>
2088 Returns a CD/DVD image with the given UUID.
2089
2090 The image with the given UUID must be known to this VirtualBox
2091 installation, i.e. it must be previously opened by <link
2092 to="#openDVDImage"/>, or mounted to some known virtual machine.
2093
2094 <result name="VBOX_E_OBJECT_NOT_FOUND">
2095 No matching DVD image found in the media registry.
2096 </result>
2097
2098 </desc>
2099 <param name="id" type="wstring" dir="in">
2100 <desc>UUID of the image to look for.</desc>
2101 </param>
2102 <param name="image" type="IDVDImage" dir="return">
2103 <desc>Found CD/DVD image object.</desc>
2104 </param>
2105 </method>
2106
2107 <method name="findDVDImage">
2108 <desc>
2109 Returns a CD/DVD image with the given image location.
2110
2111 The image with the given UUID must be known to this VirtualBox
2112 installation, i.e. it must be previously opened by <link
2113 to="#openDVDImage"/>, or mounted to some known virtual machine.
2114
2115 The search is done by comparing the value of the @a location argument to
2116 the <link to="IMedium::location"/> attribute of each known CD/DVD image.
2117
2118 The requested location can be a path relative to the
2119 <link to="IVirtualBox::homeFolder">VirtualBox home folder</link>. If
2120 only a file name without any path is given, the
2121 <link to="ISystemProperties::defaultHardDiskFolder"> default hard disk
2122 folder</link> will be prepended to the file name before searching. Note
2123 that on case sensitive file systems, a case sensitive comparison is
2124 performed, otherwise the case in the file path is ignored.
2125
2126 <result name="VBOX_E_FILE_ERROR">
2127 Invalid image file location.
2128 </result>
2129 <result name="VBOX_E_OBJECT_NOT_FOUND">
2130 No matching DVD image found in the media registry.
2131 </result>
2132
2133 </desc>
2134 <param name="location" type="wstring" dir="in">
2135 <desc>CD/DVD image file path to look for.</desc>
2136 </param>
2137 <param name="image" type="IDVDImage" dir="return">
2138 <desc>Found CD/DVD image object.</desc>
2139 </param>
2140 </method>
2141
2142 <method name="openFloppyImage">
2143 <desc>
2144 Opens a floppy image contained in the specified file of the supported
2145 format and assigns it the given UUID.
2146
2147 After the image is successfully opened by this method, it gets
2148 remembered by (known to) this VirtualBox installation and will be
2149 accessible through <link to="#getFloppyImage"/> and
2150 <link to="#findFloppyImage"/> methods. Remembered images are also
2151 returned as part of the <link to="#floppyImages"/> array and can be
2152 mounted to virtual machines. See IMedium for more details.
2153
2154 See <link to="IMedium::location"/> to get more details about the format
2155 of the location string.
2156
2157 <result name="VBOX_E_FILE_ERROR">
2158 Invalid floppy image file location or could not find the floppy
2159 image at the specified location.
2160 </result>
2161 <result name="VBOX_E_INVALID_OBJECT_STATE">
2162 Floppy image already exists in the media registry.
2163 </result>
2164
2165 <note>
2166 Currently, only raw floppy images are supported by VirtualBox.
2167 </note>
2168 </desc>
2169 <param name="location" type="wstring" dir="in">
2170 <desc>
2171 Full path to the file that contains a valid floppy image.
2172 </desc>
2173 </param>
2174 <param name="id" type="wstring" dir="in">
2175 <desc>
2176 UUID to assign to the given image file within this VirtualBox
2177 installation. If an empty (@c null) UUID is specified, the system will
2178 randomly generate a new UUID.
2179 </desc>
2180 </param>
2181 <param name="image" type="IFloppyImage" dir="return">
2182 <desc>Opened floppy image object.</desc>
2183 </param>
2184 </method>
2185
2186 <method name="getFloppyImage">
2187 <desc>
2188 Returns a floppy image with the given UUID.
2189
2190 The image with the given UUID must be known to this VirtualBox
2191 installation, i.e. it must be previously opened by <link
2192 to="#openFloppyImage"/>, or mounted to some known virtual machine.
2193
2194 <result name="VBOX_E_OBJECT_NOT_FOUND">
2195 No matching floppy image found in the media registry.
2196 </result>
2197
2198 </desc>
2199 <param name="id" type="wstring" dir="in">
2200 <desc>UUID of the image to look for.</desc>
2201 </param>
2202 <param name="image" type="IFloppyImage" dir="return">
2203 <desc>Found floppy image object.</desc>
2204 </param>
2205 </method>
2206
2207 <method name="findFloppyImage">
2208 <desc>
2209 Returns a floppy image with the given image location.
2210
2211 The image with the given UUID must be known to this VirtualBox
2212 installation, i.e. it must be previously opened by <link
2213 to="#openFloppyImage"/>, or mounted to some known virtual machine.
2214
2215 The search is done by comparing the value of the @a location argument to
2216 the <link to="IMedium::location"/> attribute of each known floppy image.
2217
2218 The requested location can be a path relative to the
2219 <link to="IVirtualBox::homeFolder">VirtualBox home folder</link>. If
2220 only a file name without any path is given, the
2221 <link to="ISystemProperties::defaultHardDiskFolder"> default hard disk
2222 folder</link> will be prepended to the file name before searching. Note
2223 that on case sensitive file systems, a case sensitive comparison is
2224 performed, otherwise the case of symbols in the file path is ignored.
2225
2226 <result name="VBOX_E_FILE_ERROR">
2227 Invalid image file location.
2228 </result>
2229 <result name="VBOX_E_OBJECT_NOT_FOUND">
2230 No matching floppy image found in the media registry.
2231 </result>
2232
2233 </desc>
2234 <param name="location" type="wstring" dir="in">
2235 <desc>Floppy image file path to look for.</desc>
2236 </param>
2237 <param name="image" type="IFloppyImage" dir="return">
2238 <desc>Found floppy image object.</desc>
2239 </param>
2240 </method>
2241
2242 <method name="getGuestOSType">
2243 <desc>
2244 Returns an object describing the specified guest OS type.
2245
2246 The requested guest OS type is specified using a string which is a
2247 mnemonic identifier of the guest operating system, such as
2248 <tt>"win31"</tt> or <tt>"ubuntu"</tt>. The guest OS type ID of a
2249 particular virtual machine can be read or set using the
2250 <link to="IMachine::OSTypeId"/> attribute.
2251
2252 The <link to="IVirtualBox::guestOSTypes"/> collection contains all
2253 available guest OS type objects. Each object has an
2254 <link to="IGuestOSType::id"/> attribute which contains an identifier of
2255 the guest OS this object describes.
2256
2257 <result name="E_INVALIDARG">
2258 @a id is not a valid Guest OS type.
2259 </result>
2260
2261 </desc>
2262 <param name="id" type="wstring" dir="in">
2263 <desc>Guest OS type ID string.</desc>
2264 </param>
2265 <param name="type" type="IGuestOSType" dir="return">
2266 <desc>Guest OS type object.</desc>
2267 </param>
2268 </method>
2269
2270 <method name="createSharedFolder">
2271 <desc>
2272 Creates a new global shared folder by associating the given logical
2273 name with the given host path, adds it to the collection of shared
2274 folders and starts sharing it. Refer to the description of
2275 <link to="ISharedFolder"/> to read more about logical names.
2276 <note>
2277 In the current implementation, this operation is not
2278 implemented.
2279 </note>
2280 </desc>
2281 <param name="name" type="wstring" dir="in">
2282 <desc>Unique logical name of the shared folder.</desc>
2283 </param>
2284 <param name="hostPath" type="wstring" dir="in">
2285 <desc>Full path to the shared folder in the host file system.</desc>
2286 </param>
2287 <param name="writable" type="boolean" dir="in">
2288 <desc>Whether the share is writable or readonly</desc>
2289 </param>
2290 </method>
2291
2292 <method name="removeSharedFolder">
2293 <desc>
2294 Removes the global shared folder with the given name previously
2295 created by <link to="#createSharedFolder"/> from the collection of
2296 shared folders and stops sharing it.
2297 <note>
2298 In the current implementation, this operation is not
2299 implemented.
2300 </note>
2301 </desc>
2302 <param name="name" type="wstring" dir="in">
2303 <desc>Logical name of the shared folder to remove.</desc>
2304 </param>
2305 </method>
2306
2307 <method name="getNextExtraDataKey">
2308 <desc>
2309 Returns the global extra data key name following the supplied key.
2310
2311 An error is returned if the supplied @a key does not exist. An empty
2312 string is returned in @a nextKey if the supplied key is the last key. When
2313 supplying @c null or an empty string for the @a key, the first key item
2314 is returned in @a nextKey (if there is any). @a nextValue is an optional
2315 parameter and if supplied, the next key's value is returned in it.
2316
2317 <result name="VBOX_E_OBJECT_NOT_FOUND">
2318 Extra data @a key not found.
2319 </result>
2320
2321 </desc>
2322 <param name="key" type="wstring" dir="in">
2323 <desc>Name of the data key to follow.</desc>
2324 </param>
2325 <param name="nextKey" type="wstring" dir="out">
2326 <desc>Name of the next data key.</desc>
2327 </param>
2328 <param name="nextValue" type="wstring" dir="out">
2329 <desc>Value of the next data key.</desc>
2330 </param>
2331 </method>
2332
2333 <method name="getExtraData">
2334 <desc>
2335 Returns associated global extra data.
2336
2337 If the requested data @a key does not exist, this function will
2338 succeed and return an empty string in the @a value argument.
2339
2340 <result name="VBOX_E_FILE_ERROR">
2341 Settings file not accessible.
2342 </result>
2343 <result name="VBOX_E_XML_ERROR">
2344 Could not parse the settings file.
2345 </result>
2346
2347 </desc>
2348 <param name="key" type="wstring" dir="in">
2349 <desc>Name of the data key to get.</desc>
2350 </param>
2351 <param name="value" type="wstring" dir="return">
2352 <desc>Value of the requested data key.</desc>
2353 </param>
2354 </method>
2355
2356 <method name="setExtraData">
2357 <desc>
2358 Sets associated global extra data.
2359
2360 If you pass @c null or empty string as a key @a value, the given @a key
2361 will be deleted.
2362
2363 <note>
2364 Before performing the actual data change, this method will ask all
2365 registered callbacks using the
2366 <link to="IVirtualBoxCallback::onExtraDataCanChange"/>
2367 notification for a permission. If one of the callbacks refuses the
2368 new value, the change will not be performed.
2369 </note>
2370 <note>
2371 On success, the
2372 <link to="IVirtualBoxCallback::onExtraDataChange"/> notification
2373 is called to inform all registered callbacks about a successful data
2374 change.
2375 </note>
2376
2377 <result name="VBOX_E_FILE_ERROR">
2378 Settings file not accessible.
2379 </result>
2380 <result name="VBOX_E_XML_ERROR">
2381 Could not parse the settings file.
2382 </result>
2383 <result name="E_ACCESSDENIED">
2384 Modification request refused.
2385 </result>
2386
2387 </desc>
2388 <param name="key" type="wstring" dir="in">
2389 <desc>Name of the data key to set.</desc>
2390 </param>
2391 <param name="value" type="wstring" dir="in">
2392 <desc>Value to assign to the key.</desc>
2393 </param>
2394 </method>
2395
2396 <method name="openSession">
2397 <desc>
2398 Opens a new direct session with the given virtual machine.
2399
2400 A direct session acts as a local lock on the given VM.
2401 There can be only one direct session open at a time for every
2402 virtual machine, protecting the VM from being manipulated by
2403 conflicting actions from different processes. Only after a
2404 direct session has been opened, one can change all VM settings
2405 and execute the VM in the process space of the session object.
2406
2407 Sessions therefore can be compared to mutex semaphores that
2408 lock a given VM for modification and execution.
2409 See <link to="ISession">ISession</link> for details.
2410
2411 <note>Unless you are writing a new VM frontend, you will not
2412 want to execute a VM in the current process. To spawn a new
2413 process that executes a VM, use
2414 <link to="IVirtualBox::openRemoteSession" />
2415 instead.</note>
2416
2417 Upon successful return, the session object can be used to
2418 get access to the machine and to the VM console.
2419
2420 In VirtualBox terminology, the machine becomes "mutable" after
2421 a session has been opened. Note that the "mutable" machine
2422 object, on which you may invoke IMachine methods to change its
2423 settings, will be a different object from the immutable IMachine
2424 objects returned by various IVirtualBox methods. To obtain a
2425 mutable IMachine object (upon which you can invoke settings methods),
2426 use the <link to="ISession::machine" /> attribute.
2427
2428 One must always call <link to="ISession::close" /> to release the
2429 lock on the machine, or the machine's state will eventually be
2430 set to "Aborted".
2431
2432 In other words, to change settings on a machine, the following
2433 sequence is typically performed:
2434
2435 <ol>
2436 <li>Call this method (openSession) to have a machine locked for
2437 the current session.</li>
2438
2439 <li>Obtain a mutable IMachine object from <link to="ISession::machine" />.</li>
2440
2441 <li>Change the settings of the machine.</li>
2442
2443 <li>Call <link to="IMachine::saveSettings" />.</li>
2444
2445 <li>Close the session by calling <link to="ISession::close"/>.</li>
2446 </ol>
2447
2448 <result name="E_UNEXPECTED">
2449 Virtual machine not registered.
2450 </result>
2451 <result name="E_ACCESSDENIED">
2452 Process not started by OpenRemoteSession.
2453 </result>
2454 <result name="VBOX_E_OBJECT_NOT_FOUND">
2455 No matching virtual machine found.
2456 </result>
2457 <result name="VBOX_E_INVALID_OBJECT_STATE">
2458 Session already open or being opened.
2459 </result>
2460 <result name="VBOX_E_VM_ERROR">
2461 Failed to assign machine to session.
2462 </result>
2463
2464 </desc>
2465 <param name="session" type="ISession" dir="in">
2466 <desc>
2467 Session object that will represent the opened session after
2468 successful method invocation. This object must not represent
2469 the already open session.
2470 <note>
2471 This session will be automatically closed if the
2472 VirtualBox server is terminated for some reason.
2473 </note>
2474 </desc>
2475 </param>
2476 <param name="machineId" type="wstring" dir="in">
2477 <desc>ID of the virtual machine to open a session with.</desc>
2478 </param>
2479 </method>
2480
2481 <method name="openRemoteSession">
2482 <desc>
2483 Spawns a new process that executes a virtual machine (called a
2484 "remote session").
2485
2486 Opening a remote session causes the VirtualBox server to start a new
2487 process that opens a direct session with the given VM. As a result, the
2488 VM is locked by that direct session in the new process, preventing
2489 conflicting changes from other processes. Since sessions act as locks
2490 that prevent conflicting changes, one cannot open a remote session
2491 for a VM that already has another open session (direct or remote), or
2492 is currently in the process of opening one (see <link
2493 to="IMachine::sessionState"/>).
2494
2495 While the remote session still provides some level of control over the
2496 VM execution to the caller (using the <link to="IConsole" /> interface),
2497 not all VM settings are available for modification within the remote
2498 session context.
2499
2500 This operation can take some time (a new VM is started in a new process,
2501 for which memory and other resources need to be set up). Because of this,
2502 an <link to="IProgress" /> is returned to allow the caller to wait for this
2503 asynchronous operation to be completed. Until then, the remote session
2504 object remains in the closed state, and accessing the machine or its
2505 console through it is invalid. It is recommended to use
2506 <link to="IProgress::waitForCompletion" /> or similar calls to wait for
2507 completion.
2508
2509 As with all <link to="ISession" /> objects, it is recommended to call
2510 <link to="ISession::close" /> on the local session object once openRemoteSession()
2511 has been called. However, the session's state (see <link to="ISession::state" />)
2512 will not return to "Closed" until the remote session has also closed (i.e.
2513 until the VM is no longer running). In that case, however, the state of
2514 the session will automatically change back to "Closed".
2515
2516 Currently supported session types (values of the @a type
2517 argument) are:
2518 <ul>
2519 <li><tt>"gui"</tt>: VirtualBox Qt GUI session</li>
2520 <li><tt>"vrdp"</tt>: VirtualBox VRDP Server session</li>
2521 <li><tt>"sdl"</tt>: VirtualBox SDL GUI session</li>
2522 </ul>
2523
2524 The @a environment argument is a string containing definitions of
2525 environment variables in the following format:
2526 @code
2527 NAME[=VALUE]\n
2528 NAME[=VALUE]\n
2529 ...
2530 @endcode
2531 where <tt>\\n</tt> is the new line character. These environment
2532 variables will be appended to the environment of the VirtualBox server
2533 process. If an environment variable exists both in the server process
2534 and in this list, the value from this list takes precedence over the
2535 server's variable. If the value of the environment variable is
2536 omitted, this variable will be removed from the resulting environment.
2537 If the environment string is @c null or empty, the server environment
2538 is inherited by the started process as is.
2539
2540 <see>openExistingSession</see>
2541
2542 <result name="E_UNEXPECTED">
2543 Virtual machine not registered.
2544 </result>
2545 <result name="E_INVALIDARG">
2546 Invalid session type @a type.
2547 </result>
2548 <result name="VBOX_E_OBJECT_NOT_FOUND">
2549 No machine matching @a machineId found.
2550 </result>
2551 <result name="VBOX_E_INVALID_OBJECT_STATE">
2552 Session already open or being opened.
2553 </result>
2554 <result name="VBOX_E_IPRT_ERROR">
2555 Launching process for machine failed.
2556 </result>
2557 <result name="VBOX_E_VM_ERROR">
2558 Failed to assign machine to session.
2559 </result>
2560
2561 </desc>
2562 <param name="session" type="ISession" dir="in">
2563 <desc>
2564 Session object that will represent the opened remote session
2565 after successful method invocation (this object must not
2566 represent an already open session).
2567 </desc>
2568 </param>
2569 <param name="machineId" type="wstring" dir="in">
2570 <desc>ID of the virtual machine to open a session with.</desc>
2571 </param>
2572 <param name="type" type="wstring" dir="in">
2573 <desc>
2574 Type of the remote session (case sensitive).
2575 </desc>
2576 </param>
2577 <param name="environment" type="wstring" dir="in">
2578 <desc>
2579 Environment to pass to the opened session.
2580 </desc>
2581 </param>
2582 <param name="progress" type="IProgress" dir="return">
2583 <desc>Progress object to track the operation completion.</desc>
2584 </param>
2585 </method>
2586
2587 <method name="openExistingSession">
2588 <desc>
2589 Opens a new remote session with the virtual machine for
2590 which a direct session is already open.
2591
2592 The remote session provides some level of control over the VM
2593 execution (using the IConsole interface) to the caller; however,
2594 within the remote session context, not all VM settings are available
2595 for modification.
2596
2597 As opposed to <link to="#openRemoteSession"/>, the number of
2598 remote sessions opened this way is not limited by the API
2599
2600 <note>
2601 It is an error to open a remote session with the machine that
2602 doesn't have an open direct session.
2603 </note>
2604
2605 <result name="E_UNEXPECTED">
2606 Virtual machine not registered.
2607 </result>
2608 <result name="VBOX_E_OBJECT_NOT_FOUND">
2609 No machine matching @a machineId found.
2610 </result>
2611 <result name="VBOX_E_INVALID_OBJECT_STATE">
2612 Session already open or being opened.
2613 </result>
2614 <result name="VBOX_E_INVALID_SESSION_STATE">
2615 Direct session state not Open.
2616 </result>
2617 <result name="VBOX_E_VM_ERROR">
2618 Failed to get console object from direct session or assign
2619 machine to session.
2620 </result>
2621
2622 <see>openRemoteSession</see>
2623 </desc>
2624 <param name="session" type="ISession" dir="in">
2625 <desc>
2626 Session object that will represent the open remote session
2627 after successful method invocation. This object must not
2628 represent an already open session.
2629 <note>
2630 This session will be automatically closed when the peer
2631 (direct) session dies or gets closed.
2632 </note>
2633 </desc>
2634 </param>
2635 <param name="machineId" type="wstring" dir="in">
2636 <desc>ID of the virtual machine to open a session with.</desc>
2637 </param>
2638 </method>
2639
2640 <method name="registerCallback">
2641 <desc>
2642 Registers a new global VirtualBox callback. The methods of the given
2643 callback object will be called by VirtualBox when an appropriate
2644 event occurs.
2645
2646 <result name="E_INVALIDARG">
2647 A @c null callback cannot be registered.
2648 </result>
2649
2650 </desc>
2651 <param name="callback" type="IVirtualBoxCallback" dir="in">
2652 <desc>Callback object to register.</desc>
2653 </param>
2654 </method>
2655
2656 <method name="unregisterCallback">
2657 <desc>
2658 Unregisters the previously registered global VirtualBox callback.
2659
2660 <result name="E_INVALIDARG">
2661 Specified @a callback not registered.
2662 </result>
2663
2664 </desc>
2665 <param name="callback" type="IVirtualBoxCallback" dir="in">
2666 <desc>Callback object to unregister.</desc>
2667 </param>
2668 </method>
2669
2670 <method name="waitForPropertyChange">
2671 <desc>
2672 Blocks the caller until any of the properties represented by the
2673 @a what argument changes the value or until the given timeout interval
2674 expires.
2675
2676 The @a what argument is a comma separated list of property masks that
2677 describe properties the caller is interested in. The property mask is
2678 a string in the following format:
2679
2680 <pre>
2681 [[group.]subgroup.]name
2682 </pre>
2683
2684 where @c name is the property name and @c group, @c subgroup are zero
2685 or more property group specifiers. Each element (group or name) in
2686 the property mask may be either a Latin string or an asterisk symbol
2687 (@c "*") which is used to match any string for the given element. A
2688 property mask that doesn't contain asterisk symbols represents a
2689 single fully qualified property name.
2690
2691 Groups in the fully qualified property name go from more generic (the
2692 left-most part) to more specific (the right-most part). The first
2693 element is usually a name of the object the property belongs to. The
2694 second element may be either a property name, or a child object name,
2695 or an index if the preceding element names an object which is one of
2696 many objects of the same type. This way, property names form a
2697 hierarchy of properties. Here are some examples of property names:
2698
2699 <table>
2700 <tr>
2701 <td><tt>VirtualBox.version</tt></td>
2702 <td><link to="IVirtualBox::version"/> property</td>
2703 </tr>
2704 <tr>
2705 <td><tt>Machine.&lt;UUID&gt;.name</tt></td>
2706 <td><link to="IMachine::name"/> property of the machine with the
2707 given UUID</td>
2708 </tr>
2709 </table>
2710
2711 Most property names directly correspond to the properties of objects
2712 (components) provided by the VirtualBox library and may be used to
2713 track changes to these properties. However, there may be
2714 pseudo-property names that don't correspond to any existing object's
2715 property directly, as well as there may be object properties that
2716 don't have a corresponding property name that is understood by this
2717 method, and therefore changes to such properties cannot be
2718 tracked. See individual object's property descriptions to get a
2719 fully qualified property name that can be used with this method (if
2720 any).
2721
2722 There is a special property mask @c "*" (i.e. a string consisting of a
2723 single asterisk symbol) that can be used to match all properties.
2724 Below are more examples of property masks:
2725
2726 <table>
2727 <tr>
2728 <td><tt>VirtualBox.*</tt></td>
2729 <td>Track all properties of the VirtualBox object</td>
2730 </tr>
2731 <tr>
2732 <td><tt>Machine.*.name</tt></td>
2733 <td>Track changes to the <link to="IMachine::name"/> property of
2734 all registered virtual machines</td>
2735 </tr>
2736 </table>
2737
2738 <note>
2739 This function is not implemented in the current version of the
2740 product.
2741 </note>
2742 </desc>
2743 <param name="what" type="wstring" dir="in">
2744 <desc>Comma separated list of property masks.</desc>
2745 </param>
2746 <param name="timeout" type="unsigned long" dir="in">
2747 <desc>
2748 Wait timeout in milliseconds.
2749 Specify -1 for an indefinite wait.
2750 </desc>
2751 </param>
2752 <param name="changed" type="wstring" dir="out">
2753 <desc>
2754 Comma separated list of properties that have been changed and caused
2755 this method to return to the caller.
2756 </desc>
2757 </param>
2758 <param name="values" type="wstring" dir="out">
2759 <desc>Reserved, not currently used.</desc>
2760 </param>
2761 </method>
2762
2763 <method name="saveSettings">
2764 <desc>
2765 Saves the global settings to the global settings file
2766 (<link to="#settingsFilePath"/>).
2767
2768 This method is only useful for explicitly saving the global settings
2769 file after it has been auto-converted from the old format to the most
2770 recent format (see <link to="#settingsFileVersion"/> for details).
2771 Normally, the global settings file is implicitly saved when a global
2772 setting is changed.
2773
2774 <result name="VBOX_E_FILE_ERROR">
2775 Settings file not accessible.
2776 </result>
2777 <result name="VBOX_E_XML_ERROR">
2778 Could not parse the settings file.
2779 </result>
2780
2781 </desc>
2782 </method>
2783
2784 <method name="saveSettingsWithBackup">
2785 <desc>
2786 Creates a backup copy of the global settings file
2787 (<link to="IVirtualBox::settingsFilePath"/>) in case of auto-conversion,
2788 and then calls <link to="IVirtualBox::saveSettings"/>.
2789
2790 Note that the backup copy is created <b>only</b> if the settings file
2791 auto-conversion took place (see <link to="#settingsFileVersion"/> for
2792 details). Otherwise, this call is fully equivalent to
2793 <link to="IVirtualBox::saveSettings"/> and no backup copying is done.
2794
2795 The backup copy is created in the same directory where the original
2796 settings file is located. It is given the following file name:
2797 <pre>
2798 original.xml.x.y-platform.bak
2799 </pre>
2800 where <tt>original.xml</tt> is the original settings file name
2801 (excluding path), and <tt>x.y-platform</tt> is the version of the old
2802 format of the settings file (before auto-conversion).
2803
2804 If the given backup file already exists, this method will try to add the
2805 <tt>.N</tt> suffix to the backup file name (where @c N counts from
2806 0 to 9) and copy it again until it succeeds. If all suffixes are
2807 occupied, or if any other copy error occurs, this method will return a
2808 failure.
2809
2810 If the copy operation succeeds, the @a bakFileName return argument will
2811 receive a full path to the created backup file (for informational
2812 purposes). Note that this will happen even if the subsequent
2813 <link to="#saveSettings"/> call performed by this method after the
2814 copy operation, fails.
2815
2816 <note>
2817 The VirtualBox API never calls this method. It is intended purely for
2818 the purposes of creating backup copies of the settings files by
2819 front-ends before saving the results of the automatically performed
2820 settings conversion to disk.
2821 </note>
2822
2823 <see>settingsFileVersion</see>
2824
2825 <result name="VBOX_E_FILE_ERROR">
2826 Settings file not accessible.
2827 </result>
2828 <result name="VBOX_E_XML_ERROR">
2829 Could not parse the settings file.
2830 </result>
2831 <result name="VBOX_E_IPRT_ERROR">
2832 Could not copy the settings file.
2833 </result>
2834
2835 </desc>
2836 <param name="bakFileName" type="wstring" dir="return">
2837 <desc>Full path to the created backup copy.</desc>
2838 </param>
2839 </method>
2840
2841 <!--method name="createDHCPServerForInterface">
2842 <desc>
2843 Creates a dhcp server settings to be used for the given interface
2844 <result name="E_INVALIDARG">
2845 Host network interface @a name already exists.
2846 </result>
2847 </desc>
2848 <param name="interface" type="IHostNetworkInterface" dir="in">
2849 <desc>Network Interface</desc>
2850 </param>
2851 <param name="server" type="IDHCPServer" dir="out">
2852 <desc>Dhcp server settings</desc>
2853 </param>
2854 </method-->
2855
2856 <method name="createDHCPServer">
2857 <desc>
2858 Creates a dhcp server settings to be used for the given internal network name
2859 <result name="E_INVALIDARG">
2860 Host network interface @a name already exists.
2861 </result>
2862 </desc>
2863 <param name="name" type="wstring" dir="in">
2864 <desc>server name</desc>
2865 </param>
2866 <param name="server" type="IDHCPServer" dir="return">
2867 <desc>Dhcp server settings</desc>
2868 </param>
2869 </method>
2870
2871 <method name="findDHCPServerByNetworkName">
2872 <desc>
2873 Searches a dhcp server settings to be used for the given internal network name
2874 <result name="E_INVALIDARG">
2875 Host network interface @a name already exists.
2876 </result>
2877
2878 </desc>
2879 <param name="name" type="wstring" dir="in">
2880 <desc>server name</desc>
2881 </param>
2882 <param name="server" type="IDHCPServer" dir="return">
2883 <desc>Dhcp server settings</desc>
2884 </param>
2885 </method>
2886
2887 <!--method name="findDHCPServerForInterface">
2888 <desc>
2889 Searches a dhcp server settings to be used for the given interface
2890 <result name="E_INVALIDARG">
2891 Host network interface @a name already exists.
2892 </result>
2893 </desc>
2894 <param name="interface" type="IHostNetworkInterface" dir="in">
2895 <desc>Network Interface</desc>
2896 </param>
2897 <param name="server" type="IDHCPServer" dir="out">
2898 <desc>Dhcp server settings</desc>
2899 </param>
2900 </method-->
2901
2902 <method name="removeDHCPServer">
2903 <desc>
2904 Removes the dhcp server settings
2905 <result name="E_INVALIDARG">
2906 Host network interface @a name already exists.
2907 </result>
2908 </desc>
2909 <param name="server" type="IDHCPServer" dir="in">
2910 <desc>Dhcp server settings to be removed</desc>
2911 </param>
2912 </method>
2913
2914 </interface>
2915
2916 <!--
2917 // IVFSExplorer
2918 /////////////////////////////////////////////////////////////////////////
2919 -->
2920
2921 <enum
2922 name="VFSType"
2923 uuid="813999ba-b949-48a8-9230-aadc6285e2f2"
2924 >
2925 <desc>
2926 Virtual file systems supported by VFSExplorer.
2927 </desc>
2928
2929 <const name="File" value="1" />
2930 <const name="Cloud" value="2" />
2931 <const name="S3" value="3" />
2932 <const name="WebDav" value="4" />
2933 </enum>
2934
2935 <enum
2936 name="VFSFileType"
2937 uuid="714333cd-44e2-415f-a245-d378fa9b1242"
2938 >
2939 <desc>
2940 File types known by VFSExplorer.
2941 </desc>
2942
2943 <const name="Unknown" value="1" />
2944 <const name="Fifo" value="2" />
2945 <const name="DevChar" value="3" />
2946 <const name="Directory" value="4" />
2947 <const name="DevBlock" value="5" />
2948 <const name="File" value="6" />
2949 <const name="SymLink" value="7" />
2950 <const name="Socket" value="8" />
2951 <const name="WhiteOut" value="9" />
2952 </enum>
2953
2954 <interface
2955 name="IVFSExplorer" extends="$unknown"
2956 uuid="2bb864a1-02a3-4474-a1d4-fb5f23b742e1"
2957 wsmap="managed"
2958 >
2959 <desc>
2960 The VFSExplorer interface unifies access to different file system
2961 types. This includes local file systems as well remote file systems like
2962 S3. For a list of supported types see <link to="VFSType" />.
2963 An instance of this is returned by <link to="IAppliance::createVFSExplorer" />.
2964 </desc>
2965
2966 <attribute name="path" type="wstring" readonly="yes">
2967 <desc>Returns the current path in the virtual file system.</desc>
2968 </attribute>
2969
2970 <attribute name="type" type="VFSType" readonly="yes">
2971 <desc>Returns the file system type which is currently in use.</desc>
2972 </attribute>
2973
2974 <method name="update">
2975 <desc>Updates the internal list of files/directories from the
2976 current directory level. Use <link to="#entryList" /> to get the full list
2977 after a call to this method.</desc>
2978
2979 <param name="aProgress" type="IProgress" dir="return">
2980 <desc>Progress object to track the operation completion.</desc>
2981 </param>
2982 </method>
2983
2984 <method name="cd">
2985 <desc>Change the current directory level.</desc>
2986
2987 <param name="aDir" type="wstring" dir="in">
2988 <desc>The name of the directory to go in.</desc>
2989 </param>
2990
2991 <param name="aProgress" type="IProgress" dir="return">
2992 <desc>Progress object to track the operation completion.</desc>
2993 </param>
2994 </method>
2995
2996 <method name="cdUp">
2997 <desc>Go one directory upwards from the current directory level.</desc>
2998
2999 <param name="aProgress" type="IProgress" dir="return">
3000 <desc>Progress object to track the operation completion.</desc>
3001 </param>
3002 </method>
3003
3004 <method name="entryList">
3005 <desc>Returns a list of files/directories after a call to <link
3006 to="#update" />. The user is responsible for keeping this internal
3007 list up do date.</desc>
3008
3009 <param name="aNames" type="wstring" safearray="yes" dir="out">
3010 <desc>The list of names for the entries.</desc>
3011 </param>
3012
3013 <param name="aTypes" type="unsigned long" safearray="yes" dir="out">
3014 <desc>The list of types for the entries.</desc>
3015 </param>
3016 </method>
3017
3018 <method name="exists">
3019 <desc>Checks if the given file list exists in the current directory
3020 level.</desc>
3021
3022 <param name="aNames" type="wstring" safearray="yes" dir="in">
3023 <desc>The names to check.</desc>
3024 </param>
3025
3026 <param name="aExists" type="wstring" safearray="yes" dir="return">
3027 <desc>The names which exist.</desc>
3028 </param>
3029 </method>
3030
3031 <method name="remove">
3032 <desc>Deletes the given files in the current directory level.</desc>
3033
3034 <param name="aNames" type="wstring" safearray="yes" dir="in">
3035 <desc>The names to remove.</desc>
3036 </param>
3037
3038 <param name="aProgress" type="IProgress" dir="return">
3039 <desc>Progress object to track the operation completion.</desc>
3040 </param>
3041 </method>
3042
3043 </interface>
3044
3045 <!--
3046 // IAppliance
3047 /////////////////////////////////////////////////////////////////////////
3048 -->
3049
3050 <enum
3051 name="CIMOSType"
3052 uuid="86ef5f8c-18b2-4db8-a314-33721b59f89b"
3053 >
3054 <desc>
3055 OVF operating system values according to CIM V2.20 (as of Nov 2008); http://www.dmtf.org/standards/cim/cim_schema_v220
3056 </desc>
3057
3058 <const name="CIMOS_Unknown" value="0" /> <!-- "Unknown" -->
3059 <const name="CIMOS_Other" value="1" /> <!-- "Other" -->
3060 <const name="CIMOS_MACOS" value="2" /> <!-- "MACOS" -->
3061 <const name="CIMOS_ATTUNIX" value="3" /> <!-- "ATTUNIX" -->
3062 <const name="CIMOS_DGUX" value="4" /> <!-- "DGUX" -->
3063 <const name="CIMOS_DECNT" value="5" /> <!-- "DECNT" -->
3064 <const name="CIMOS_Tru64UNIX" value="6" /> <!-- "Tru64 UNIX" -->
3065 <const name="CIMOS_OpenVMS" value="7" /> <!-- "OpenVMS" -->
3066 <const name="CIMOS_HPUX" value="8" /> <!-- "HPUX" -->
3067 <const name="CIMOS_AIX" value="9" /> <!-- "AIX" -->
3068 <const name="CIMOS_MVS" value="10" /> <!-- "MVS" -->
3069 <const name="CIMOS_OS400" value="11" /> <!-- "OS400" -->
3070 <const name="CIMOS_OS2" value="12" /> <!-- "OS/2" -->
3071 <const name="CIMOS_JavaVM" value="13" /> <!-- "JavaVM" -->
3072 <const name="CIMOS_MSDOS" value="14" /> <!-- "MSDOS" -->
3073 <const name="CIMOS_WIN3x" value="15" /> <!-- "WIN3x" -->
3074 <const name="CIMOS_WIN95" value="16" /> <!-- "WIN95" -->
3075 <const name="CIMOS_WIN98" value="17" /> <!-- "WIN98" -->
3076 <const name="CIMOS_WINNT" value="18" /> <!-- "WINNT" -->
3077 <const name="CIMOS_WINCE" value="19" /> <!-- "WINCE" -->
3078 <const name="CIMOS_NCR3000" value="20" /> <!-- "NCR3000" -->
3079 <const name="CIMOS_NetWare" value="21" /> <!-- "NetWare" -->
3080 <const name="CIMOS_OSF" value="22" /> <!-- "OSF" -->
3081 <const name="CIMOS_DCOS" value="23" /> <!-- "DC/OS" -->
3082 <const name="CIMOS_ReliantUNIX" value="24" /> <!-- "Reliant UNIX" -->
3083 <const name="CIMOS_SCOUnixWare" value="25" /> <!-- "SCO UnixWare" -->
3084 <const name="CIMOS_SCOOpenServer" value="26" /> <!-- "SCO OpenServer" -->
3085 <const name="CIMOS_Sequent" value="27" /> <!-- "Sequent" -->
3086 <const name="CIMOS_IRIX" value="28" /> <!-- "IRIX" -->
3087 <const name="CIMOS_Solaris" value="29" /> <!-- "Solaris" -->
3088 <const name="CIMOS_SunOS" value="30" /> <!-- "SunOS" -->
3089 <const name="CIMOS_U6000" value="31" /> <!-- "U6000" -->
3090 <const name="CIMOS_ASERIES" value="32" /> <!-- "ASERIES" -->
3091 <const name="CIMOS_HPNonStopOS" value="33" /> <!-- "HP NonStop OS" -->
3092 <const name="CIMOS_HPNonStopOSS" value="34" /> <!-- "HP NonStop OSS" -->
3093 <const name="CIMOS_BS2000" value="35" /> <!-- "BS2000" -->
3094 <const name="CIMOS_LINUX" value="36" /> <!-- "LINUX" -->
3095 <const name="CIMOS_Lynx" value="37" /> <!-- "Lynx" -->
3096 <const name="CIMOS_XENIX" value="38" /> <!-- "XENIX" -->
3097 <const name="CIMOS_VM" value="39" /> <!-- "VM" -->
3098 <const name="CIMOS_InteractiveUNIX" value="40" /> <!-- "Interactive UNIX" -->
3099 <const name="CIMOS_BSDUNIX" value="41" /> <!-- "BSDUNIX" -->
3100 <const name="CIMOS_FreeBSD" value="42" /> <!-- "FreeBSD" -->
3101 <const name="CIMOS_NetBSD" value="43" /> <!-- "NetBSD" -->
3102 <const name="CIMOS_GNUHurd" value="44" /> <!-- "GNU Hurd" -->
3103 <const name="CIMOS_OS9" value="45" /> <!-- "OS9" -->
3104 <const name="CIMOS_MACHKernel" value="46" /> <!-- "MACH Kernel" -->
3105 <const name="CIMOS_Inferno" value="47" /> <!-- "Inferno" -->
3106 <const name="CIMOS_QNX" value="48" /> <!-- "QNX" -->
3107 <const name="CIMOS_EPOC" value="49" /> <!-- "EPOC" -->
3108 <const name="CIMOS_IxWorks" value="50" /> <!-- "IxWorks" -->
3109 <const name="CIMOS_VxWorks" value="51" /> <!-- "VxWorks" -->
3110 <const name="CIMOS_MiNT" value="52" /> <!-- "MiNT" -->
3111 <const name="CIMOS_BeOS" value="53" /> <!-- "BeOS" -->
3112 <const name="CIMOS_HPMPE" value="54" /> <!-- "HP MPE" -->
3113 <const name="CIMOS_NextStep" value="55" /> <!-- "NextStep" -->
3114 <const name="CIMOS_PalmPilot" value="56" /> <!-- "PalmPilot" -->
3115 <const name="CIMOS_Rhapsody" value="57" /> <!-- "Rhapsody" -->
3116 <const name="CIMOS_Windows2000" value="58" /> <!-- "Windows 2000" -->
3117 <const name="CIMOS_Dedicated" value="59" /> <!-- "Dedicated" -->
3118 <const name="CIMOS_OS390" value="60" /> <!-- "OS/390" -->
3119 <const name="CIMOS_VSE" value="61" /> <!-- "VSE" -->
3120 <const name="CIMOS_TPF" value="62" /> <!-- "TPF" -->
3121 <const name="CIMOS_WindowsMe" value="63" /> <!-- "Windows (R) Me" -->
3122 <const name="CIMOS_CalderaOpenUNIX" value="64" /> <!-- "Caldera Open UNIX" -->
3123 <const name="CIMOS_OpenBSD" value="65" /> <!-- "OpenBSD" -->
3124 <const name="CIMOS_NotApplicable" value="66" /> <!-- "Not Applicable" -->
3125 <const name="CIMOS_WindowsXP" value="67" /> <!-- "Windows XP" -->
3126 <const name="CIMOS_zOS" value="68" /> <!-- "z/OS" -->
3127 <const name="CIMOS_MicrosoftWindowsServer2003" value="69" /> <!-- "Microsoft Windows Server 2003" -->
3128 <const name="CIMOS_MicrosoftWindowsServer2003_64" value="70" /> <!-- "Microsoft Windows Server 2003 64-Bit" -->
3129 <const name="CIMOS_WindowsXP_64" value="71" /> <!-- "Windows XP 64-Bit" -->
3130 <const name="CIMOS_WindowsXPEmbedded" value="72" /> <!-- "Windows XP Embedded" -->
3131 <const name="CIMOS_WindowsVista" value="73" /> <!-- "Windows Vista" -->
3132 <const name="CIMOS_WindowsVista_64" value="74" /> <!-- "Windows Vista 64-Bit" -->
3133 <const name="CIMOS_WindowsEmbeddedforPointofService" value="75" /> <!-- "Windows Embedded for Point of Service" -->
3134 <const name="CIMOS_MicrosoftWindowsServer2008" value="76" /> <!-- "Microsoft Windows Server 2008" -->
3135 <const name="CIMOS_MicrosoftWindowsServer2008_64" value="77" /> <!-- "Microsoft Windows Server 2008 64-Bit" -->
3136 <const name="CIMOS_FreeBSD_64" value="78" /> <!-- "FreeBSD 64-Bit" -->
3137 <const name="CIMOS_RedHatEnterpriseLinux" value="79" /> <!-- "RedHat Enterprise Linux" -->
3138 <const name="CIMOS_RedHatEnterpriseLinux_64" value="80" /> <!-- "RedHat Enterprise Linux 64-Bit" -->
3139 <const name="CIMOS_Solaris_64" value="81" /> <!-- "Solaris 64-Bit" -->
3140 <const name="CIMOS_SUSE" value="82" /> <!-- "SUSE" -->
3141 <const name="CIMOS_SUSE_64" value="83" /> <!-- "SUSE 64-Bit" -->
3142 <const name="CIMOS_SLES" value="84" /> <!-- "SLES" -->
3143 <const name="CIMOS_SLES_64" value="85" /> <!-- "SLES 64-Bit" -->
3144 <const name="CIMOS_NovellOES" value="86" /> <!-- "Novell OES" -->
3145 <const name="CIMOS_NovellLinuxDesktop" value="87" /> <!-- "Novell Linux Desktop" -->
3146 <const name="CIMOS_SunJavaDesktopSystem" value="88" /> <!-- "Sun Java Desktop System" -->
3147 <const name="CIMOS_Mandriva" value="89" /> <!-- "Mandriva" -->
3148 <const name="CIMOS_Mandriva_64" value="90" /> <!-- "Mandriva 64-Bit" -->
3149 <const name="CIMOS_TurboLinux" value="91" /> <!-- "TurboLinux" -->
3150 <const name="CIMOS_TurboLinux_64" value="92" /> <!-- "TurboLinux 64-Bit" -->
3151 <const name="CIMOS_Ubuntu" value="93" /> <!-- "Ubuntu" -->
3152 <const name="CIMOS_Ubuntu_64" value="94" /> <!-- "Ubuntu 64-Bit" -->
3153 <const name="CIMOS_Debian" value="95" /> <!-- "Debian" -->
3154 <const name="CIMOS_Debian_64" value="96" /> <!-- "Debian 64-Bit" -->
3155 <const name="CIMOS_Linux_2_4_x" value="97" /> <!-- "Linux 2.4.x" -->
3156 <const name="CIMOS_Linux_2_4_x_64" value="98" /> <!-- "Linux 2.4.x 64-Bit" -->
3157 <const name="CIMOS_Linux_2_6_x" value="99" /> <!-- "Linux 2.6.x" -->
3158 <const name="CIMOS_Linux_2_6_x_64" value="100" /> <!-- "Linux 2.6.x 64-Bit" -->
3159 <const name="CIMOS_Linux_64" value="101" /> <!-- "Linux 64-Bit" -->
3160 <const name="CIMOS_Other_64" value="102" /> <!-- "Other 64-Bit" -->
3161 </enum>
3162
3163 <enum
3164 name="OVFResourceType"
3165 uuid="646a78d7-6f04-49f4-82c4-75c28a75a4cd"
3166 >
3167 <desc>
3168 OVF resource type (as listed with CIM_ResourceAllocationSettingData; see for example
3169 http://msdn.microsoft.com/en-us/library/cc136877(VS.85).aspx).
3170 </desc>
3171
3172 <const name="Other" value="1" />
3173 <const name="ComputerSystem" value="2" />
3174 <const name="Processor" value="3" />
3175 <const name="Memory" value="4" />
3176 <const name="IDEController" value="5" />
3177 <const name="ParallelSCSIHBA" value="6" />
3178 <const name="FCHBA" value="7" />
3179 <const name="iSCSIHBA" value="8" />
3180 <const name="IBHCA" value="9" />
3181 <const name="EthernetAdapter" value="10" />
3182 <const name="OtherNetworkAdapter" value="11" />
3183 <const name="IOSlot" value="12" />
3184 <const name="IODevice" value="13" />
3185 <const name="FloppyDrive" value="14" />
3186 <const name="CDDrive" value="15" />
3187 <const name="DVDDrive" value="16" />
3188 <const name="HardDisk" value="17" />
3189 <const name="OtherStorageDevice" value="20" />
3190 <const name="USBController" value="23" />
3191 <const name="SoundCard" value="35" />
3192 </enum>
3193
3194 <interface
3195 name="IAppliance" extends="$unknown"
3196 uuid="07495095-d16c-4911-8964-5914341ced5d"
3197 wsmap="managed"
3198 >
3199 <desc>
3200 Represents a platform-independent appliance in OVF format. An instance of this is returned
3201 by <link to="IVirtualBox::createAppliance" />, which can then be used to import and export
3202 appliances with VirtualBox.
3203
3204 The OVF standard suggests two different physical file formats:
3205
3206 <ol>
3207 <li>If the OVF is distributed as a set of files, then @a file must be a fully qualified
3208 path name to an existing OVF descriptor file with an <tt>.ovf</tt> file extension. If
3209 this descriptor file references other files, as OVF appliances distributed as a set of
3210 files most likely do, those files must be in the same directory as the descriptor file.</li>
3211
3212 <li>If the OVF is distributed as a single file, it must be in TAR format and have the
3213 <tt>.ova</tt> file extension. This TAR file must then contain at least the OVF descriptor
3214 files and optionally other files.
3215
3216 At this time, VirtualBox does not not yet support the packed (TAR) variant; support will
3217 be added with a later version.</li>
3218 </ol>
3219
3220 <b>Importing</b> an OVF appliance into VirtualBox as instances of
3221 <link to="IMachine" /> involves the following sequence of API calls:
3222
3223 <ol>
3224 <li>Call <link to="IVirtualBox::createAppliance" />. This will create an empty IAppliance object.
3225 </li>
3226
3227 <li>On the new object, call <link to="#read" /> with the full path of the OVF file you
3228 would like to import. So long as this file is syntactically valid, this will succeed
3229 and return an instance of IAppliance that contains the parsed data from the OVF file.
3230 </li>
3231
3232 <li>Next, call <link to="#interpret" />, which analyzes the OVF data and sets up the
3233 contents of the IAppliance attributes accordingly. These can be inspected by a
3234 VirtualBox front-end such as the GUI, and the suggestions can be displayed to the
3235 user. In particular, the <link to="#virtualSystemDescriptions" /> array contains
3236 instances of <link to="IVirtualSystemDescription" /> which represent the virtual
3237 systems in the OVF, which in turn describe the virtual hardware prescribed by the
3238 OVF (network and hardware adapters, virtual disk images, memory size and so on).
3239 The GUI can then give the user the option to confirm and/or change these suggestions.
3240 </li>
3241
3242 <li>If desired, call <link to="IVirtualSystemDescription::setFinalValues" /> for each
3243 virtual system to override the suggestions made by the interpret() routine.
3244 </li>
3245
3246 <li>Finally, call <link to="#importMachines" /> to create virtual machines in
3247 VirtualBox as instances of <link to="IMachine" /> that match the information in the
3248 virtual system descriptions.
3249 </li>
3250 </ol>
3251
3252 <b>Exporting</b> VirtualBox machines into an OVF appliance involves the following steps:
3253
3254 <ol>
3255 <li>As with importing, first call <link to="IVirtualBox::createAppliance" /> to create
3256 an empty IAppliance object.
3257 </li>
3258
3259 <li>For each machine you would like to export, call <link to="IMachine::export" />
3260 with the IAppliance object you just created. This creates an instance of
3261 <link to="IVirtualSystemDescription" /> inside the appliance.
3262 </li>
3263
3264 <li>If desired, call <link to="IVirtualSystemDescription::setFinalValues" /> for each
3265 virtual system to override the suggestions made by the export() routine.
3266 </li>
3267
3268 <li>Finally, call <link to="#write" /> with a path specification to have the OVF
3269 file written.</li>
3270 </ol>
3271
3272 </desc>
3273
3274 <attribute name="path" type="wstring" readonly="yes">
3275 <desc>Path to the main file of the OVF appliance, which is either the <tt>.ovf</tt> or
3276 the <tt>.ova</tt> file passed to <link to="#read" /> (for import) or
3277 <link to="#write" /> (for export).
3278 This attribute is empty until one of these methods has been called.
3279 </desc>
3280 </attribute>
3281
3282 <attribute name="disks" type="wstring" readonly="yes" safearray="yes">
3283 <desc>
3284 Array of virtual disk definitions. One such description exists for each
3285 disk definition in the OVF; each string array item represents one such piece of
3286 disk information, with the information fields separated by tab (\\t) characters.
3287
3288 The caller should be prepared for additional fields being appended to
3289 this string in future versions of VirtualBox and therefore check for
3290 the number of tabs in the strings returned.
3291
3292 In the current version, the following eight fields are returned per string
3293 in the array:
3294
3295 <ol>
3296 <li>Disk ID (unique string identifier given to disk)</li>
3297
3298 <li>Capacity (unsigned integer indicating the maximum capacity of the disk)</li>
3299
3300 <li>Populated size (optional unsigned integer indicating the current size of the
3301 disk; can be approximate; -1 if unspecified)</li>
3302
3303 <li>Format (string identifying the disk format, typically
3304 "http://www.vmware.com/specifications/vmdk.html#sparse")</li>
3305
3306 <li>Reference (where to find the disk image, typically a file name; if empty,
3307 then the disk should be created on import)</li>
3308
3309 <li>Image size (optional unsigned integer indicating the size of the image,
3310 which need not necessarily be the same as the values specified above, since
3311 the image may be compressed or sparse; -1 if not specified)</li>
3312
3313 <li>Chunk size (optional unsigned integer if the image is split into chunks;
3314 presently unsupported and always -1)</li>
3315
3316 <li>Compression (optional string equalling "gzip" if the image is gzip-compressed)</li>
3317 </ol>
3318 </desc>
3319 </attribute>
3320
3321 <attribute name="virtualSystemDescriptions" type="IVirtualSystemDescription" readonly="yes" safearray="yes">
3322 <desc> Array of virtual system descriptions. One such description is created
3323 for each virtual system found in the OVF.
3324 This array is empty until either <link to="#interpret" /> (for import) or <link to="IMachine::export" />
3325 (for export) has been called.
3326 </desc>
3327 </attribute>
3328
3329 <method name="read">
3330 <desc>
3331 Reads an OVF file into the appliance object.
3332
3333 This method succeeds if the OVF is syntactically valid and, by itself, without errors. The
3334 mere fact that this method returns successfully does not mean that VirtualBox supports all
3335 features requested by the appliance; this can only be examined after a call to <link to="#interpret" />.
3336 </desc>
3337 <param name="file" type="wstring" dir="in">
3338 <desc>
3339 Name of appliance file to open (either with an <tt>.ovf</tt> or <tt>.ova</tt> extension, depending
3340 on whether the appliance is distributed as a set of files or as a single file, respectively).
3341 </desc>
3342 </param>
3343 </method>
3344
3345 <method name="interpret">
3346 <desc>
3347 Interprets the OVF data that was read when the appliance was constructed. After
3348 calling this method, one can inspect the
3349 <link to="#virtualSystemDescriptions" /> array attribute, which will then contain
3350 one <link to="IVirtualSystemDescription" /> for each virtual machine found in
3351 the appliance.
3352
3353 Calling this method is the second step of importing an appliance into VirtualBox;
3354 see <link to="IAppliance" /> for an overview.
3355
3356 After calling this method, one should call <link to="#getWarnings" /> to find out
3357 if problems were encountered during the processing which might later lead to
3358 errors.
3359 </desc>
3360 </method>
3361
3362 <method name="importMachines">
3363 <desc>
3364 Imports the appliance into VirtualBox by creating instances of <link to="IMachine" />
3365 and other interfaces that match the information contained in the appliance as
3366 closely as possible, as represented by the import instructions in the
3367 <link to="#virtualSystemDescriptions" /> array.
3368
3369 Calling this method is the final step of importing an appliance into VirtualBox;
3370 see <link to="IAppliance" /> for an overview.
3371
3372 Since importing the appliance will most probably involve copying and converting
3373 disk images, which can take a long time, this method operates asynchronously and
3374 returns an IProgress object to allow the caller to monitor the progress.
3375 </desc>
3376
3377 <param name="aProgress" type="IProgress" dir="return">
3378 <desc></desc>
3379 </param>
3380 </method>
3381
3382 <method name="createVFSExplorer">
3383 <desc>Returns a <link to="IVFSExplorer" /> object for the given URI.</desc>
3384
3385 <param name="aUri" type="wstring" dir="in">
3386 <desc>The URI describing the file system to use.</desc>
3387 </param>
3388
3389 <param name="aExplorer" type="IVFSExplorer" dir="return">
3390 <desc></desc>
3391 </param>
3392 </method>
3393
3394 <method name="write">
3395 <desc>
3396 Writes the contents of the appliance exports into a new OVF file.
3397
3398 Calling this method is the final step of exporting an appliance from VirtualBox;
3399 see <link to="IAppliance" /> for an overview.
3400
3401 Since exporting the appliance will most probably involve copying and converting
3402 disk images, which can take a long time, this method operates asynchronously and
3403 returns an IProgress object to allow the caller to monitor the progress.
3404 </desc>
3405 <param name="format" type="wstring" dir="in">
3406 <desc>
3407 Output format, as a string. Currently supported formats are "ovf-0.9" and "ovf-1.0";
3408 future versions of VirtualBox may support additional formats.
3409 </desc>
3410 </param>
3411 <param name="path" type="wstring" dir="in">
3412 <desc>
3413 Name of appliance file to open (either with an <tt>.ovf</tt> or <tt>.ova</tt> extension, depending
3414 on whether the appliance is distributed as a set of files or as a single file, respectively).
3415 </desc>
3416 </param>
3417 <param name="aProgress" type="IProgress" dir="return">
3418 <desc>Progress object to track the operation completion.</desc>
3419 </param>
3420 </method>
3421
3422 <method name="getWarnings">
3423 <desc>Returns textual warnings which occured during execution of <link to="#interpret" />.</desc>
3424
3425 <param name="aWarnings" type="wstring" dir="return" safearray="yes">
3426 <desc></desc>
3427 </param>
3428 </method>
3429
3430 </interface>
3431
3432 <enum
3433 name="VirtualSystemDescriptionType"
3434 uuid="aacc58de-5b45-4f82-ae2e-dd9a824fc3b5"
3435 >
3436 <desc>Used with <link to="IVirtualSystemDescription" /> to describe the type of
3437 a configuration value.</desc>
3438
3439 <const name="Ignore" value="1" />
3440 <const name="OS" value="2" />
3441 <const name="Name" value="3" />
3442 <const name="Product" value="4" />
3443 <const name="Vendor" value="5" />
3444 <const name="Version" value="6" />
3445 <const name="ProductUrl" value="7" />
3446 <const name="VendorUrl" value="8" />
3447 <const name="Description" value="9" />
3448 <const name="License" value="10" />
3449 <const name="Miscellaneous" value="11" />
3450 <const name="CPU" value="12" />
3451 <const name="Memory" value="13" />
3452 <const name="HardDiskControllerIDE" value="14" />
3453 <const name="HardDiskControllerSATA" value="15" />
3454 <const name="HardDiskControllerSCSI" value="16" />
3455 <const name="HardDiskImage" value="17" />
3456 <const name="Floppy" value="18" />
3457 <const name="CDROM" value="19" />
3458 <const name="NetworkAdapter" value="20" />
3459 <const name="USBController" value="21" />
3460 <const name="SoundCard" value="22" />
3461
3462 </enum>
3463
3464 <enum
3465 name="VirtualSystemDescriptionValueType"
3466 uuid="56d9403f-3425-4118-9919-36f2a9b8c77c"
3467 >
3468 <desc>Used with <link to="IVirtualSystemDescription::getValuesByType" /> to describe the value
3469 type to fetch.</desc>
3470
3471 <const name="Reference" value="1" />
3472 <const name="Original" value="2" />
3473 <const name="Auto" value="3" />
3474 <const name="ExtraConfig" value="4" />
3475
3476 </enum>
3477
3478 <interface
3479 name="IVirtualSystemDescription" extends="$unknown"
3480 uuid="d7525e6c-531a-4c51-8e04-41235083a3d8"
3481 wsmap="managed"
3482 >
3483
3484 <desc>This interface is used in the <link to="IAppliance::virtualSystemDescriptions" /> array.
3485 After <link to="IAppliance::interpret" /> has been called, that array contains
3486 information about how the virtual systems described in the OVF should best be imported into VirtualBox
3487 virtual machines. See <link to="IAppliance" /> for the steps required to import an OVF
3488 into VirtualBox.
3489 </desc>
3490
3491 <attribute name="count" type="unsigned long" readonly="yes">
3492 <desc>Return the number of virtual system description entries.</desc>
3493 </attribute>
3494
3495 <method name="getDescription">
3496 <desc>Returns information about the virtual system as arrays of instruction items. In each array, the
3497 items with the same indices correspond and jointly represent an import instruction for VirtualBox.
3498
3499 The list below identifies the value sets that are possible depending on the
3500 <link to="VirtualSystemDescriptionType" /> enum value in the array item in aTypes[]. In each case,
3501 the array item with the same index in aOvfValues[] will contain the original value as contained
3502 in the OVF file (just for informational purposes), and the corresponding item in aVBoxValues[]
3503 will contain a suggested value to be used for VirtualBox. Depending on the description type,
3504 the aExtraConfigValues[] array item may also be used.
3505
3506 <ul>
3507 <li>
3508 "OS": the guest operating system type. There must be exactly one such array item on import. The
3509 corresponding item in aVBoxValues[] contains the suggested guest operating system for VirtualBox.
3510 This will be one of the values listed in <link to="IVirtualBox::guestOSTypes" />. The corresponding
3511 item in aOvfValues[] will contain a numerical value that described the operating system in the OVF
3512 (see <link to="CIMOSType" />).
3513 </li>
3514 <li>
3515 "Name": the name to give to the new virtual machine. There can be at most one such array item;
3516 if none is present on import, then an automatic name will be created from the operating system
3517 type. The correponding item im aOvfValues[] will contain the suggested virtual machine name
3518 from the OVF file, and aVBoxValues[] will contain a suggestion for a unique VirtualBox
3519 <link to="IMachine" /> name that does not exist yet.
3520 </li>
3521 <li>
3522 "Description": an arbitrary description.
3523 </li>
3524 <li>
3525 "License": the EULA section from the OVF, if present. It is the responsibility of the calling
3526 code to display such a license for agreement; the Main API does not enforce any such policy.
3527 </li>
3528 <li>
3529 Miscellaneous: reserved for future use.
3530 </li>
3531 <li>
3532 "CPU": the number of CPUs. There can be at most one such item, which will presently be ignored.
3533 </li>
3534 <li>
3535 "Memory": the amount of guest RAM, in bytes. There can be at most one such array item; if none
3536 is present on import, then VirtualBox will set a meaningful default based on the operating system
3537 type.
3538 </li>
3539 <li>
3540 "HarddiskControllerIDE": an IDE hard disk controller. There can be at most one such item. This
3541 has no value in aOvfValues[] or aVBoxValues[].
3542 The matching item in the aRefs[] array will contain an integer that items of the "Harddisk"
3543 type can use to specify which hard disk controller a virtual disk should be connected to.
3544 </li>
3545 <li>
3546 "HarddiskControllerSATA": an SATA hard disk controller. There can be at most one such item. This
3547 has no value in aOvfValues[] or aVBoxValues[].
3548 The matching item in the aRefs[] array will be used as with IDE controllers (see above).
3549 </li>
3550 <li>
3551 "HarddiskControllerSCSI": a SCSI hard disk controller. There can be at most one such item.
3552 The items in aOvfValues[] and aVBoxValues[] will either be "LsiLogic" or "BusLogic".
3553 The matching item in the aRefs[] array will be used as with IDE controllers (see above).
3554 </li>
3555 <li>
3556 "HardDiskImage": a virtual hard disk, most probably as a reference to an image file. There can be an
3557 arbitrary number of these items, one for each virtual disk image that accompanies the OVF.
3558
3559 The array item in aOvfValues[] will contain the file specification from the OVF file (without
3560 a path since the image file should be in the same location as the OVF file itself), whereas the
3561 item in aVBoxValues[] will contain a qualified path specification to where VirtualBox uses the
3562 hard disk image. This means that on import the image will be copied and converted from the
3563 "ovf" location to the "vbox" location; on export, this will be handled the other way round.
3564 On import, the target image will also be registered with VirtualBox.
3565
3566 The matching item in the aExtraConfigValues[] array must contain a string of the following
3567 format: "controller=&lt;index&gt;;channel=&lt;c&gt;"
3568 In this string, &lt;index&gt; must be an integer specifying the hard disk controller to connect
3569 the image to. That number must be the index of an array item with one of the hard disk controller
3570 types (HarddiskControllerSCSI, HarddiskControllerSATA, HarddiskControllerIDE).
3571 In addition, &lt;c&gt; must specify the channel to use on that controller. For IDE controllers,
3572 this can range from 0-2 (which VirtualBox will interpret as primary master, primary slave,
3573 secondary slave; VirtualBox reserves the secondary master for the CD-ROM drive). For SATA and
3574 SCSI conrollers, the channel can range from 0-29.
3575 </li>
3576 <li>
3577 "NetworkAdapter": a network adapter. The array item in aVBoxValues[] will specify the hardware
3578 for the network adapter, whereas the array item in aExtraConfigValues[] will have a string
3579 of the "type=&lt;X&gt;" format, where &lt;X&gt; must be either "NAT" or "Bridged".
3580 </li>
3581 <li>
3582 "USBController": a USB controller. There can be at most one such item. If and only if such an
3583 item ispresent, USB support will be enabled for the new virtual machine.
3584 </li>
3585 <li>
3586 "SoundCard": a sound card. There can be at most one such item. If and only if such an item is
3587 present, sound support will be enabled for the new virtual machine. Note that the virtual
3588 machine in VirtualBox will always be presented with the standard VirtualBox soundcard, which
3589 may be different from the virtual soundcard expected by the appliance.
3590 </li>
3591 </ul>
3592
3593 </desc>
3594
3595 <param name="aTypes" type="VirtualSystemDescriptionType" dir="out" safearray="yes">
3596 <desc></desc>
3597 </param>
3598
3599 <param name="aRefs" type="wstring" dir="out" safearray="yes">
3600 <desc></desc>
3601 </param>
3602
3603 <param name="aOvfValues" type="wstring" dir="out" safearray="yes">
3604 <desc></desc>
3605 </param>
3606
3607 <param name="aVBoxValues" type="wstring" dir="out" safearray="yes">
3608 <desc></desc>
3609 </param>
3610
3611 <param name="aExtraConfigValues" type="wstring" dir="out" safearray="yes">
3612 <desc></desc>
3613 </param>
3614
3615 </method>
3616
3617 <method name="getDescriptionByType">
3618 <desc>This is the same as <link to="#getDescription" /> except that you can specify which types
3619 should be returned.</desc>
3620
3621 <param name="aType" type="VirtualSystemDescriptionType" dir="in">
3622 <desc></desc>
3623 </param>
3624
3625 <param name="aTypes" type="VirtualSystemDescriptionType" dir="out" safearray="yes">
3626 <desc></desc>
3627 </param>
3628
3629 <param name="aRefs" type="wstring" dir="out" safearray="yes">
3630 <desc></desc>
3631 </param>
3632
3633 <param name="aOvfValues" type="wstring" dir="out" safearray="yes">
3634 <desc></desc>
3635 </param>
3636
3637 <param name="aVBoxValues" type="wstring" dir="out" safearray="yes">
3638 <desc></desc>
3639 </param>
3640
3641 <param name="aExtraConfigValues" type="wstring" dir="out" safearray="yes">
3642 <desc></desc>
3643 </param>
3644
3645 </method>
3646
3647 <method name="getValuesByType">
3648 <desc>This is the same as <link to="#getDescriptionByType" /> except that you can specify which
3649 value types should be returned. See <link to="VirtualSystemDescriptionValueType" /> for possible
3650 values.</desc>
3651
3652 <param name="aType" type="VirtualSystemDescriptionType" dir="in">
3653 <desc></desc>
3654 </param>
3655
3656 <param name="aWhich" type="VirtualSystemDescriptionValueType" dir="in">
3657 <desc></desc>
3658 </param>
3659
3660 <param name="aValues" type="wstring" dir="return" safearray="yes">
3661 <desc></desc>
3662 </param>
3663
3664 </method>
3665
3666 <method name="setFinalValues">
3667 <desc>
3668 This method allows the appliance's user to change the configuration for the virtual
3669 system descriptions. For each array item returned from <link to="#getDescription" />,
3670 you must pass in one boolean value and one configuration value.
3671
3672 Each item in the boolean array determines whether the particular configuration item
3673 should be enabled.
3674 You can only disable items of the types HardDiskControllerIDE, HardDiskControllerSATA,
3675 HardDiskControllerSCSI, HardDiskImage, CDROM, Floppy, NetworkAdapter, USBController
3676 and SoundCard.
3677
3678 For the "vbox" and "extra configuration" values, if you pass in the same arrays
3679 as returned in the aVBoxValues and aExtraConfigValues arrays from getDescription(),
3680 the configuration remains unchanged. Please see the documentation for getDescription()
3681 for valid configuration values for the individual array item types. If the
3682 corresponding item in the aEnabled array is @c false, the configuration value is ignored.
3683 </desc>
3684
3685 <param name="aEnabled" type="boolean" dir="in" safearray="yes">
3686 <desc></desc>
3687 </param>
3688
3689 <param name="aVBoxValues" type="wstring" dir="in" safearray="yes">
3690 <desc></desc>
3691 </param>
3692
3693 <param name="aExtraConfigValues" type="wstring" dir="in" safearray="yes">
3694 <desc></desc>
3695 </param>
3696 </method>
3697
3698 <method name="addDescription">
3699 <desc>
3700 This method adds an additional description entry to the stack of already
3701 available descriptions for this virtual system. This is handy for writing
3702 values which aren't directly supported by VirtualBox. One example would
3703 be the License type of <link to="VirtualSystemDescriptionType" />.
3704 </desc>
3705
3706 <param name="aType" type="VirtualSystemDescriptionType" dir="in">
3707 <desc></desc>
3708 </param>
3709
3710 <param name="aVBoxValue" type="wstring" dir="in">
3711 <desc></desc>
3712 </param>
3713
3714 <param name="aExtraConfigValue" type="wstring" dir="in">
3715 <desc></desc>
3716 </param>
3717 </method>
3718 </interface>
3719
3720
3721 <!--
3722 // IMachine
3723 /////////////////////////////////////////////////////////////////////////
3724 -->
3725
3726 <interface
3727 name="IInternalMachineControl" extends="$unknown"
3728 uuid="ce8087d7-de92-4bbb-8140-a22fb07f37ba"
3729 internal="yes"
3730 wsmap="suppress"
3731 >
3732 <method name="setRemoveSavedState">
3733 <desc>
3734 Updates the flag whether saved state is removed on a machine state
3735 change from Saved to PoweredOff.
3736 </desc>
3737 <param name="aRemove" type="boolean" dir="in"/>
3738 </method>
3739
3740 <method name="updateState">
3741 <desc>
3742 Updates the VM state.
3743 <note>
3744 This operation will also update the settings file with
3745 the correct information about the saved state file
3746 and delete this file from disk when appropriate.
3747 </note>
3748 </desc>
3749 <param name="state" type="MachineState" dir="in"/>
3750 </method>
3751
3752 <method name="getIPCId">
3753 <param name="id" type="wstring" dir="return"/>
3754 </method>
3755
3756 <method name="runUSBDeviceFilters">
3757 <desc>
3758 Asks the server to run USB devices filters of the associated
3759 machine against the given USB device and tell if there is
3760 a match.
3761 <note>
3762 Intended to be used only for remote USB devices. Local
3763 ones don't require to call this method (this is done
3764 implicitly by the Host and USBProxyService).
3765 </note>
3766 </desc>
3767 <param name="device" type="IUSBDevice" dir="in"/>
3768 <param name="matched" type="boolean" dir="out"/>
3769 <param name="maskedInterfaces" type="unsigned long" dir="out"/>
3770 </method>
3771
3772 <method name="captureUSBDevice">
3773 <desc>
3774 Requests a capture of the given host USB device.
3775 When the request is completed, the VM process will
3776 get a <link to="IInternalSessionControl::onUSBDeviceAttach"/>
3777 notification.
3778 </desc>
3779 <param name="id" type="wstring" dir="in"/>
3780 </method>
3781
3782 <method name="detachUSBDevice">
3783 <desc>
3784 Notification that a VM is going to detach (@a done = @c false) or has
3785 already detached (@a done = @c true) the given USB device.
3786 When the @a done = @c true request is completed, the VM process will
3787 get a <link to="IInternalSessionControl::onUSBDeviceDetach"/>
3788 notification.
3789 <note>
3790 In the @a done = @c true case, the server must run its own filters
3791 and filters of all VMs but this one on the detached device
3792 as if it were just attached to the host computer.
3793 </note>
3794 </desc>
3795 <param name="id" type="wstring" dir="in"/>
3796 <param name="done" type="boolean" dir="in"/>
3797 </method>
3798
3799 <method name="autoCaptureUSBDevices">
3800 <desc>
3801 Requests a capture all matching USB devices attached to the host.
3802 When the request is completed, the VM process will
3803 get a <link to="IInternalSessionControl::onUSBDeviceAttach"/>
3804 notification per every captured device.
3805 </desc>
3806 </method>
3807
3808 <method name="detachAllUSBDevices">
3809 <desc>
3810 Notification that a VM that is being powered down. The done
3811 parameter indicates whether which stage of the power down
3812 we're at. When @a done = @c false the VM is announcing its
3813 intentions, while when @a done = @c true the VM is reporting
3814 what it has done.
3815 <note>
3816 In the @a done = @c true case, the server must run its own filters
3817 and filters of all VMs but this one on all detach devices as
3818 if they were just attached to the host computer.
3819 </note>
3820 </desc>
3821 <param name="done" type="boolean" dir="in"/>
3822 </method>
3823
3824 <method name="onSessionEnd">
3825 <desc>
3826 Triggered by the given session object when the session is about
3827 to close normally.
3828 </desc>
3829 <param name="session" type="ISession" dir="in">
3830 <desc>Session that is being closed</desc>
3831 </param>
3832 <param name="progress" type="IProgress" dir="return">
3833 <desc>
3834 Used to wait until the corresponding machine is actually
3835 dissociated from the given session on the server.
3836 Returned only when this session is a direct one.
3837 </desc>
3838 </param>
3839 </method>
3840
3841 <method name="beginSavingState">
3842 <desc>
3843 Called by the VM process to inform the server it wants to
3844 save the current state and stop the VM execution.
3845 </desc>
3846 <param name="progress" type="IProgress" dir="in">
3847 <desc>
3848 Progress object created by the VM process to wait until
3849 the state is saved.
3850 </desc>
3851 </param>
3852 <param name="stateFilePath" type="wstring" dir="out">
3853 <desc>
3854 File path the VM process must save the execution state to.
3855 </desc>
3856 </param>
3857 </method>
3858
3859 <method name="endSavingState">
3860 <desc>
3861 Called by the VM process to inform the server that saving
3862 the state previously requested by #beginSavingState is either
3863 successfully finished or there was a failure.
3864
3865 <result name="VBOX_E_FILE_ERROR">
3866 Settings file not accessible.
3867 </result>
3868 <result name="VBOX_E_XML_ERROR">
3869 Could not parse the settings file.
3870 </result>
3871
3872 </desc>
3873
3874 <param name="success" type="boolean" dir="in">
3875 <desc>@c true to indicate success and @c false otherwise.
3876 </desc>
3877 </param>
3878 </method>
3879
3880 <method name="adoptSavedState">
3881 <desc>
3882 Gets called by IConsole::adoptSavedState.
3883 <result name="VBOX_E_FILE_ERROR">
3884 Invalid saved state file path.
3885 </result>
3886 </desc>
3887 <param name="savedStateFile" type="wstring" dir="in">
3888 <desc>Path to the saved state file to adopt.</desc>
3889 </param>
3890 </method>
3891
3892 <method name="beginTakingSnapshot">
3893 <desc>
3894 Called by the VM process to inform the server it wants to
3895 take a snapshot.
3896
3897 <result name="VBOX_E_FILE_ERROR">
3898 Settings file not accessible.
3899 </result>
3900 <result name="VBOX_E_XML_ERROR">
3901 Could not parse the settings file.
3902 </result>
3903 </desc>
3904 <param name="initiator" type="IConsole" dir="in">
3905 <desc>The console object that initiated this call.</desc>
3906 </param>
3907 <param name="name" type="wstring" dir="in">
3908 <desc>Snapshot name.</desc>
3909 </param>
3910 <param name="description" type="wstring" dir="in">
3911 <desc>Snapshot description.</desc>
3912 </param>
3913 <param name="progress" type="IProgress" dir="in">
3914 <desc>
3915 Progress object created by the VM process to wait until
3916 the state is saved (only for online snapshots).
3917 </desc>
3918 </param>
3919 <param name="stateFilePath" type="wstring" dir="out">
3920 <desc>
3921 File path the VM process must save the execution state to.
3922 </desc>
3923 </param>
3924 <param name="serverProgress" type="IProgress" dir="out">
3925 <desc>
3926 Progress object created by the server process to wait until
3927 the snapshot is taken (VDI diff creation, etc.).
3928 </desc>
3929 </param>
3930 </method>
3931
3932 <method name="endTakingSnapshot">
3933 <desc>
3934 Called by the VM process to inform the server that the snapshot
3935 previously requested by #beginTakingSnapshot is either
3936 successfully taken or there was a failure.
3937 </desc>
3938
3939 <param name="success" type="boolean" dir="in">
3940 <desc>@c true to indicate success and @c false otherwise</desc>
3941 </param>
3942 </method>
3943
3944 <method name="discardSnapshot">
3945 <desc>
3946 Gets called by IConsole::discardSnapshot.
3947 <result name="VBOX_E_INVALID_OBJECT_STATE">
3948 Snapshot has more than one child snapshot.
3949 </result>
3950 </desc>
3951 <param name="initiator" type="IConsole" dir="in">
3952 <desc>The console object that initiated this call.</desc>
3953 </param>
3954 <param name="id" type="wstring" dir="in">
3955 <desc>UUID of the snapshot to discard.</desc>
3956 </param>
3957 <param name="machineState" type="MachineState" dir="out">
3958 <desc>New machine state after this operation is started.</desc>
3959 </param>
3960 <param name="progress" type="IProgress" dir="return">
3961 <desc>Progress object to track the operation completion.</desc>
3962 </param>
3963 </method>
3964
3965 <method name="discardCurrentState">
3966 <desc>
3967 Gets called by IConsole::discardCurrentState.
3968 <result name="VBOX_E_INVALID_OBJECT_STATE">
3969 Virtual machine does not have any snapshot.
3970 </result>
3971 </desc>
3972 <param name="initiator" type="IConsole" dir="in">
3973 <desc>The console object that initiated this call.</desc>
3974 </param>
3975 <param name="machineState" type="MachineState" dir="out">
3976 <desc>New machine state after this operation is started.</desc>
3977 </param>
3978 <param name="progress" type="IProgress" dir="return">
3979 <desc>Progress object to track the operation completion.</desc>
3980 </param>
3981 </method>
3982
3983 <method name="discardCurrentSnapshotAndState">
3984 <desc>
3985 Gets called by IConsole::discardCurrentSnapshotAndState.
3986 <result name="VBOX_E_INVALID_OBJECT_STATE">
3987 Virtual machine does not have any snapshot.
3988 </result>
3989 </desc>
3990 <param name="initiator" type="IConsole" dir="in">
3991 <desc>The console object that initiated this call.</desc>
3992 </param>
3993 <param name="machineState" type="MachineState" dir="out">
3994 <desc>New machine state after this operation is started.</desc>
3995 </param>
3996 <param name="progress" type="IProgress" dir="return">
3997 <desc>Progress object to track the operation completion.</desc>
3998 </param>
3999 </method>
4000
4001 <method name="pullGuestProperties">
4002 <desc>
4003 Get the list of the guest properties matching a set of patterns along
4004 with their values, time stamps and flags and give responsibility for
4005 managing properties to the console.
4006 </desc>
4007 <param name="name" type="wstring" dir="out" safearray="yes">
4008 <desc>
4009 The names of the properties returned.
4010 </desc>
4011 </param>
4012 <param name="value" type="wstring" dir="out" safearray="yes">
4013 <desc>
4014 The values of the properties returned. The array entries match the
4015 corresponding entries in the @a name array.
4016 </desc>
4017 </param>
4018 <param name="timestamp" type="unsigned long long" dir="out" safearray="yes">
4019 <desc>
4020 The time stamps of the properties returned. The array entries match
4021 the corresponding entries in the @a name array.
4022 </desc>
4023 </param>
4024 <param name="flags" type="wstring" dir="out" safearray="yes">
4025 <desc>
4026 The flags of the properties returned. The array entries match the
4027 corresponding entries in the @a name array.
4028 </desc>
4029 </param>
4030 </method>
4031
4032 <method name="pushGuestProperties">
4033 <desc>
4034 Set the list of the guest properties matching a set of patterns along
4035 with their values, time stamps and flags and return responsibility for
4036 managing properties to IMachine.
4037 </desc>
4038 <param name="name" type="wstring" dir="in" safearray="yes">
4039 <desc>
4040 The names of the properties.
4041 </desc>
4042 </param>
4043 <param name="value" type="wstring" dir="in" safearray="yes">
4044 <desc>
4045 The values of the properties. The array entries match the
4046 corresponding entries in the @a name array.
4047 </desc>
4048 </param>
4049 <param name="timestamp" type="unsigned long long" dir="in" safearray="yes">
4050 <desc>
4051 The time stamps of the properties. The array entries match
4052 the corresponding entries in the @a name array.
4053 </desc>
4054 </param>
4055 <param name="flags" type="wstring" dir="in" safearray="yes">
4056 <desc>
4057 The flags of the properties. The array entries match the
4058 corresponding entries in the @a name array.
4059 </desc>
4060 </param>
4061 </method>
4062 <method name="pushGuestProperty">
4063 <desc>
4064 Update a single guest property in IMachine.
4065 </desc>
4066 <param name="name" type="wstring" dir="in">
4067 <desc>
4068 The name of the property to be updated.
4069 </desc>
4070 </param>
4071 <param name="value" type="wstring" dir="in">
4072 <desc>
4073 The value of the property.
4074 </desc>
4075 </param>
4076 <param name="timestamp" type="unsigned long long" dir="in">
4077 <desc>
4078 The timestamp of the property.
4079 </desc>
4080 </param>
4081 <param name="flags" type="wstring" dir="in">
4082 <desc>
4083 The flags of the property.
4084 </desc>
4085 </param>
4086 </method>
4087
4088 <method name="lockMedia">
4089 <desc>
4090 Locks all media attached to the machine for writing and parents of
4091 attahced different hard disks (if any) for reading. This operation is
4092 atomic so that if it fails no media is actually locked.
4093
4094 This method is intended to be called when the machine is in Starting or
4095 Restoring state. The locked media will be automatically unlocked when
4096 the machine is powered off or crashed.
4097 </desc>
4098 </method>
4099 </interface>
4100
4101 <interface
4102 name="IBIOSSettings" extends="$unknown"
4103 uuid="38b54279-dc35-4f5e-a431-835b867c6b5e"
4104 wsmap="managed"
4105 >
4106 <desc>
4107 The IBIOSSettings interface represents BIOS settings of the virtual
4108 machine. This is used only in the <link to="IMachine::BIOSSettings" /> attribute.
4109 </desc>
4110 <attribute name="logoFadeIn" type="boolean">
4111 <desc>Fade in flag for BIOS logo animation.</desc>
4112 </attribute>
4113
4114 <attribute name="logoFadeOut" type="boolean">
4115 <desc>Fade out flag for BIOS logo animation.</desc>
4116 </attribute>
4117
4118 <attribute name="logoDisplayTime" type="unsigned long">
4119 <desc>BIOS logo display time in milliseconds (0 = default).</desc>
4120 </attribute>
4121
4122 <attribute name="logoImagePath" type="wstring">
4123 <desc>Local file system path for external BIOS image.</desc>
4124 </attribute>
4125
4126 <attribute name="bootMenuMode" type="BIOSBootMenuMode">
4127 <desc>Mode of the BIOS boot device menu.</desc>
4128 </attribute>
4129
4130 <attribute name="ACPIEnabled" type="boolean">
4131 <desc>ACPI support flag.</desc>
4132 </attribute>
4133
4134 <attribute name="IOAPICEnabled" type="boolean">
4135 <desc>
4136 IO APIC support flag. If set, VirtualBox will provide an IO APIC
4137 and support IRQs above 15.
4138 </desc>
4139 </attribute>
4140
4141 <attribute name="timeOffset" type="long long">
4142 <desc>
4143 Offset in milliseconds from the host system time. This allows for
4144 guests running with a different system date/time than the host.
4145 It is equivalent to setting the system date/time in the BIOS except
4146 it is not an absolute value but a relative one. Guest Additions
4147 time synchronization honors this offset.
4148 </desc>
4149 </attribute>
4150
4151 <attribute name="PXEDebugEnabled" type="boolean">
4152 <desc>
4153 PXE debug logging flag. If set, VirtualBox will write extensive
4154 PXE trace information to the release log.
4155 </desc>
4156 </attribute>
4157
4158 </interface>
4159
4160 <interface
4161 name="IMachine" extends="$unknown"
4162 uuid="4d1df26d-d9c1-4c7e-b689-15e85ecf8ffc"
4163 wsmap="managed"
4164 >
4165 <desc>
4166 The IMachine interface represents a virtual machine, or guest, created
4167 in VirtualBox.
4168
4169 This interface is used in two contexts. First of all, a collection of
4170 objects implementing this interface is stored in the
4171 <link to="IVirtualBox::machines"/> attribute which lists all the virtual
4172 machines that are currently registered with this VirtualBox
4173 installation. Also, once a session has been opened for the given virtual
4174 machine (e.g. the virtual machine is running), the machine object
4175 associated with the open session can be queried from the session object;
4176 see <link to="ISession"/> for details.
4177
4178 The main role of this interface is to expose the settings of the virtual
4179 machine and provide methods to change various aspects of the virtual
4180 machine's configuration. For machine objects stored in the
4181 <link to="IVirtualBox::machines"/> collection, all attributes are
4182 read-only unless explicitly stated otherwise in individual attribute
4183 and method descriptions. In order to change a machine setting, a session
4184 for this machine must be opened using one of
4185 <link to="IVirtualBox::openSession"/>,
4186 <link to="IVirtualBox::openRemoteSession"/> or
4187 <link to="IVirtualBox::openExistingSession"/> methods. After the
4188 session has been successfully opened, a mutable machine object needs to
4189 be queried from the session object and then the desired settings changes
4190 can be applied to the returned object using IMachine attributes and
4191 methods. See the ISession interface description for more information
4192 about sessions.
4193
4194 Note that the IMachine interface does not provide methods to control
4195 virtual machine execution (such as start the machine, or power it
4196 down) -- these methods are grouped in a separate IConsole
4197 interface. Refer to the IConsole interface description to get more
4198 information about this topic.
4199
4200 <see>ISession, IConsole</see>
4201 </desc>
4202
4203 <attribute name="parent" type="IVirtualBox" readonly="yes">
4204 <desc>Associated parent object.</desc>
4205 </attribute>
4206
4207 <attribute name="accessible" type="boolean" readonly="yes">
4208 <desc>
4209 Whether this virtual machine is currently accessible or not.
4210
4211 The machine is considered to be inaccessible when:
4212 <ul>
4213 <li>It is a registered virtual machine, and
4214 </li>
4215 <li>Its settings file is inaccessible (for example, it is
4216 located on a network share that is not accessible during
4217 VirtualBox startup, or becomes inaccessible later, or if
4218 the settings file can be read but is invalid).
4219 </li>
4220 </ul>
4221
4222 Otherwise, the value of this property is always @c true.
4223
4224 Every time this property is read, the accessibility state of
4225 this machine is re-evaluated. If the returned value is @c false,
4226 the <link to="#accessError"/> property may be used to get the
4227 detailed error information describing the reason of
4228 inaccessibility.
4229
4230 When the machine is inaccessible, only the following properties
4231 can be used on it:
4232 <ul>
4233 <li><link to="#parent"/></li>
4234 <li><link to="#id"/></li>
4235 <li><link to="#settingsFilePath"/></li>
4236 <li><link to="#accessible"/></li>
4237 <li><link to="#accessError"/></li>
4238 </ul>
4239
4240 An attempt to access any other property or method will return
4241 an error.
4242
4243 The only possible action you can perform on an inaccessible
4244 machine is to unregister it using the
4245 <link to="IVirtualBox::unregisterMachine"/> call (or, to check
4246 for the accessibility state once more by querying this
4247 property).
4248
4249 <note>
4250 In the current implementation, once this property returns
4251 @c true, the machine will never become inaccessible
4252 later, even if its settings file cannot be successfully
4253 read/written any more (at least, until the VirtualBox
4254 server is restarted). This limitation may be removed in
4255 future releases.
4256 </note>
4257 </desc>
4258 </attribute>
4259
4260 <attribute name="accessError" type="IVirtualBoxErrorInfo" readonly="yes">
4261 <desc>
4262 Error information describing the reason of machine
4263 inaccessibility.
4264
4265 Reading this property is only valid after the last call to
4266 <link to="#accessible"/> returned @c false (i.e. the
4267 machine is currently unaccessible). Otherwise, a @c null
4268 IVirtualBoxErrorInfo object will be returned.
4269 </desc>
4270 </attribute>
4271
4272 <attribute name="name" type="wstring">
4273 <desc>
4274 Name of the virtual machine.
4275
4276 Besides being used for human-readable identification purposes
4277 everywhere in VirtualBox, the virtual machine name is also used
4278 as a name of the machine's settings file and as a name of the
4279 subdirectory this settings file resides in. Thus, every time you
4280 change the value of this property, the settings file will be
4281 renamed once you call <link to="#saveSettings"/> to confirm the
4282 change. The containing subdirectory will be also renamed, but
4283 only if it has exactly the same name as the settings file
4284 itself prior to changing this property (for backward compatibility
4285 with previous API releases). The above implies the following
4286 limitations:
4287 <ul>
4288 <li>The machine name cannot be empty.</li>
4289 <li>The machine name can contain only characters that are valid
4290 file name characters according to the rules of the file
4291 system used to store VirtualBox configuration.</li>
4292 <li>You cannot have two or more machines with the same name
4293 if they use the same subdirectory for storing the machine
4294 settings files.</li>
4295 <li>You cannot change the name of the machine if it is running,
4296 or if any file in the directory containing the settings file
4297 is being used by another running machine or by any other
4298 process in the host operating system at a time when
4299 <link to="#saveSettings"/> is called.
4300 </li>
4301 </ul>
4302 If any of the above limitations are hit, <link to="#saveSettings"/>
4303 will return an appropriate error message explaining the exact
4304 reason and the changes you made to this machine will not be
4305 saved.
4306 <note>
4307 For "legacy" machines created using the
4308 <link to="IVirtualBox::createLegacyMachine"/> call,
4309 the above naming limitations do not apply because the
4310 machine name does not affect the settings file name.
4311 The settings file name remains the same as it was specified
4312 during machine creation and never changes.
4313 </note>
4314 </desc>
4315 </attribute>
4316
4317 <attribute name="description" type="wstring">
4318 <desc>
4319 Description of the virtual machine.
4320
4321 The description attribute can contain any text and is
4322 typically used to describe the hardware and software
4323 configuration of the virtual machine in detail (i.e. network
4324 settings, versions of the installed software and so on).
4325 </desc>
4326 </attribute>
4327
4328 <attribute name="id" type="wstring" readonly="yes">
4329 <desc>UUID of the virtual machine.</desc>
4330 </attribute>
4331
4332 <attribute name="OSTypeId" type="wstring">
4333 <desc>
4334 User-defined identifier of the Guest OS type.
4335 You may use <link to="IVirtualBox::getGuestOSType"/> to obtain
4336 an IGuestOSType object representing details about the given
4337 Guest OS type.
4338 <note>
4339 This value may differ from the value returned by
4340 <link to="IGuest::OSTypeId"/> if Guest Additions are
4341 installed to the guest OS.
4342 </note>
4343 </desc>
4344 </attribute>
4345
4346 <attribute name="HardwareVersion" type="wstring">
4347 <desc>Hardware version identifier. Internal use only for now.</desc>
4348 </attribute>
4349
4350 <attribute name="CPUCount" type="unsigned long">
4351 <desc>Number of virtual CPUs in the VM.</desc>
4352 </attribute>
4353
4354 <attribute name="memorySize" type="unsigned long">
4355 <desc>System memory size in megabytes.</desc>
4356 </attribute>
4357
4358 <attribute name="memoryBalloonSize" type="unsigned long">
4359 <desc>Initial memory balloon size in megabytes.</desc>
4360 </attribute>
4361
4362 <attribute name="statisticsUpdateInterval" type="unsigned long">
4363 <desc>Initial interval to update guest statistics in seconds.</desc>
4364 </attribute>
4365
4366 <attribute name="VRAMSize" type="unsigned long">
4367 <desc>Video memory size in megabytes.</desc>
4368 </attribute>
4369
4370 <attribute name="accelerate3DEnabled" type="boolean" default="false">
4371 <desc>
4372 This setting determines whether VirtualBox allows guests to make use
4373 of the 3D graphics support available on the host. Currently limited
4374 to OpenGL only. </desc>
4375 </attribute>
4376
4377 <attribute name="monitorCount" type="unsigned long">
4378 <desc>
4379 Number of virtual monitors.
4380 <note>
4381 Only effective on Windows XP and later guests with
4382 Guest Additions installed.
4383 </note>
4384 </desc>
4385 </attribute>
4386
4387 <attribute name="BIOSSettings" type="IBIOSSettings" readonly="yes">
4388 <desc>Object containing all BIOS settings.</desc>
4389 </attribute>
4390
4391 <attribute name="HWVirtExEnabled" type="TSBool">
4392 <desc>
4393 This setting determines whether VirtualBox will try to make use of
4394 the host CPU's hardware virtualization extensions such as Intel VT-x
4395 and AMD-V. Note that in case such extensions are not available,
4396 they will not be used.
4397 </desc>
4398 </attribute>
4399
4400 <attribute name="HWVirtExNestedPagingEnabled" type="boolean" default="false">
4401 <desc>
4402 This setting determines whether VirtualBox will try to make use of
4403 the nested paging extension of Intel VT-x and AMD-V. Note that in case
4404 such extensions are not available, they will not be used.
4405 </desc>
4406 </attribute>
4407
4408 <attribute name="HWVirtExVPIDEnabled" type="boolean" default="false">
4409 <desc>
4410 This setting determines whether VirtualBox will try to make use of
4411 the VPID extension of Intel VT-x. Note that in case such extensions are
4412 not available, they will not be used.
4413 </desc>
4414 </attribute>
4415
4416 <attribute name="PAEEnabled" type="boolean" default="false">
4417 <desc>
4418 This setting determines whether VirtualBox will expose the Physical Address
4419 Extension (PAE) feature of the host CPU to the guest. Note that in case PAE
4420 is not available, it will not be reported.
4421 </desc>
4422 </attribute>
4423
4424 <attribute name="snapshotFolder" type="wstring">
4425 <desc>
4426 Full path to the directory used to store snapshot data
4427 (differencing hard disks and saved state files) of this machine.
4428
4429 The initial value of this property is
4430 <tt>&lt;</tt><link to="#settingsFilePath">
4431 path_to_settings_file</link><tt>&gt;/&lt;</tt>
4432 <link to="#id">machine_uuid</link>
4433 <tt>&gt;</tt>.
4434
4435 Currently, it is an error to try to change this property on
4436 a machine that has snapshots (because this would require to
4437 move possibly large files to a different location).
4438 A separate method will be available for this purpose later.
4439
4440 <note>
4441 Setting this property to @c null or to an empty string will restore
4442 the initial value.
4443 </note>
4444 <note>
4445 When setting this property, the specified path can be
4446 absolute (full path) or relative to the directory where the
4447 <link to="#settingsFilePath">machine settings file</link>
4448 is located. When reading this property, a full path is
4449 always returned.
4450 </note>
4451 <note>
4452 The specified path may not exist, it will be created
4453 when necessary.
4454 </note>
4455 </desc>
4456 </attribute>
4457
4458 <attribute name="VRDPServer" type="IVRDPServer" readonly="yes">
4459 <desc>VRDP server object.</desc>
4460 </attribute>
4461
4462 <attribute name="hardDiskAttachments" type="IHardDiskAttachment" readonly="yes" safearray="yes">
4463 <desc>Array of hard disks attached to this machine.</desc>
4464 </attribute>
4465
4466 <attribute name="DVDDrive" type="IDVDDrive" readonly="yes">
4467 <desc>Associated DVD drive object.</desc>
4468 </attribute>
4469
4470 <attribute name="floppyDrive" type="IFloppyDrive" readonly="yes">
4471 <desc>Associated floppy drive object.</desc>
4472 </attribute>
4473
4474 <attribute name="USBController" type="IUSBController" readonly="yes">
4475 <desc>
4476 Associated USB controller object.
4477
4478 <note>
4479 If USB functionality is not available in the given edition of
4480 VirtualBox, this method will set the result code to @c E_NOTIMPL.
4481 </note>
4482 </desc>
4483 </attribute>
4484
4485 <attribute name="audioAdapter" type="IAudioAdapter" readonly="yes">
4486 <desc>Associated audio adapter, always present.</desc>
4487 </attribute>
4488
4489 <attribute name="storageControllers" type="IStorageController" readonly="yes" safearray="yes">
4490 <desc>Array of storage controllers attached to this machine.</desc>
4491 </attribute>
4492
4493 <attribute name="settingsFilePath" type="wstring" readonly="yes">
4494 <desc>
4495 Full name of the file containing machine settings data.
4496 </desc>
4497 </attribute>
4498
4499 <attribute name="settingsFileVersion" type="wstring" readonly="yes">
4500 <desc>
4501 Current version of the format of the settings file of this machine
4502 (<link to="IMachine::settingsFilePath"/>).
4503
4504 The version string has the following format:
4505 <pre>
4506 x.y-platform
4507 </pre>
4508 where @c x and @c y are the major and the minor format
4509 versions, and @c platform is the platform identifier.
4510
4511 The current version usually matches the value of the
4512 <link to="IVirtualBox::settingsFormatVersion"/> attribute unless the
4513 settings file was created by an older version of VirtualBox and there
4514 was a change of the settings file format since then.
4515
4516 Note that VirtualBox automatically converts settings files from older
4517 versions to the most recent version when reading them (usually at
4518 VirtualBox startup) but it doesn't save the changes back until
4519 you call a method that implicitly saves settings (such as
4520 <link to="#setExtraData"/>) or call <link to="#saveSettings"/>
4521 explicitly. Therefore, if the value of this attribute differs from the
4522 value of <link to="IVirtualBox::settingsFormatVersion"/>, then it
4523 means that the settings file was converted but the result of the
4524 conversion is not yet saved to disk.
4525
4526 The above feature may be used by interactive front-ends to inform users
4527 about the settings file format change and offer them to explicitly save
4528 all converted settings files (the global and VM-specific ones),
4529 optionally create backup copies of the old settings files before saving,
4530 etc.
4531
4532 <see>IVirtualBox::settingsFormatVersion, saveSettingsWithBackup()</see>
4533 </desc>
4534 </attribute>
4535
4536 <attribute name="settingsModified" type="boolean" readonly="yes">
4537 <desc>
4538 Whether the settings of this machine have been modified
4539 (but neither yet saved nor discarded).
4540 <note>
4541 Reading this property is only valid on instances returned
4542 by <link to="ISession::machine"/> and on new machines
4543 created by <link to="IVirtualBox::createMachine"/> or opened
4544 by <link to="IVirtualBox::openMachine"/> but not
4545 yet registered, or on unregistered machines after calling
4546 <link to="IVirtualBox::unregisterMachine"/>. For all other
4547 cases, the settings can never be modified.
4548 </note>
4549 <note>
4550 For newly created unregistered machines, the value of this
4551 property is always @c true until <link to="#saveSettings"/>
4552 is called (no matter if any machine settings have been
4553 changed after the creation or not). For opened machines
4554 the value is set to @c false (and then follows to normal rules).
4555 </note>
4556 </desc>
4557 </attribute>
4558
4559 <attribute name="sessionState" type="SessionState" readonly="yes">
4560 <desc>Current session state for this machine.</desc>
4561 </attribute>
4562
4563 <attribute name="sessionType" type="wstring" readonly="yes">
4564 <desc>
4565 Type of the session. If <link to="#sessionState"/> is
4566 SessionSpawning or SessionOpen, this attribute contains the
4567 same value as passed to the
4568 <link to="IVirtualBox::openRemoteSession"/> method in the
4569 @a type parameter. If the session was opened directly using
4570 <link to="IVirtualBox::openSession"/>, or if
4571 <link to="#sessionState"/> is SessionClosed, the value of this
4572 attribute is an empty string.
4573 </desc>
4574 </attribute>
4575
4576 <attribute name="sessionPid" type="unsigned long" readonly="yes">
4577 <desc>
4578 Identifier of the session process. This attribute contains the
4579 platform-dependent identifier of the process that has opened a
4580 direct session for this machine using the
4581 <link to="IVirtualBox::openSession"/> call. The returned value
4582 is only valid if <link to="#sessionState"/> is SessionOpen or
4583 SessionClosing (i.e. a session is currently open or being
4584 closed) by the time this property is read.
4585 </desc>
4586 </attribute>
4587
4588 <attribute name="state" type="MachineState" readonly="yes">
4589 <desc>Current execution state of this machine.</desc>
4590 </attribute>
4591
4592 <attribute name="lastStateChange" type="long long" readonly="yes">
4593 <desc>
4594 Time stamp of the last execution state change,
4595 in milliseconds since 1970-01-01 UTC.
4596 </desc>
4597 </attribute>
4598
4599 <attribute name="stateFilePath" type="wstring" readonly="yes">
4600 <desc>
4601 Full path to the file that stores the execution state of
4602 the machine when it is in the <link to="MachineState_Saved"/> state.
4603 <note>
4604 When the machine is not in the Saved state, this attribute is
4605 an empty string.
4606 </note>
4607 </desc>
4608 </attribute>
4609
4610 <attribute name="logFolder" type="wstring" readonly="yes">
4611 <desc>
4612 Full path to the folder that stores a set of rotated log files
4613 recorded during machine execution. The most recent log file is
4614 named <tt>VBox.log</tt>, the previous log file is
4615 named <tt>VBox.log.1</tt> and so on (up to <tt>VBox.log.3</tt>
4616 in the current version).
4617 </desc>
4618 </attribute>
4619
4620 <attribute name="currentSnapshot" type="ISnapshot" readonly="yes">
4621 <desc>
4622 Current snapshot of this machine.
4623 <note>
4624 A @c null object is returned if the machine doesn't
4625 have snapshots.
4626 </note>
4627 <see><link to="ISnapshot"/></see>
4628 </desc>
4629 </attribute>
4630
4631 <attribute name="snapshotCount" type="unsigned long" readonly="yes">
4632 <desc>
4633 Number of snapshots taken on this machine. Zero means the
4634 machine doesn't have any snapshots.
4635 </desc>
4636 </attribute>
4637
4638 <attribute name="currentStateModified" type="boolean" readonly="yes">
4639 <desc>
4640 Returns @c true if the current state of the machine is not
4641 identical to the state stored in the current snapshot.
4642
4643 The current state is identical to the current snapshot right
4644 after one of the following calls are made:
4645 <ul>
4646 <li><link to="IConsole::discardCurrentState"/> or
4647 <link to="IConsole::discardCurrentSnapshotAndState"/>
4648 </li>
4649 <li><link to="IConsole::takeSnapshot"/> (issued on a
4650 powered off or saved machine, for which
4651 <link to="#settingsModified"/> returns @c false)
4652 </li>
4653 <li><link to="IMachine::setCurrentSnapshot"/>
4654 </li>
4655 </ul>
4656
4657 The current state remains identical until one of the following
4658 happens:
4659 <ul>
4660 <li>settings of the machine are changed</li>
4661 <li>the saved state is discarded</li>
4662 <li>the current snapshot is discarded</li>
4663 <li>an attempt to execute the machine is made</li>
4664 </ul>
4665
4666 <note>
4667 For machines that don't have snapshots, this property is
4668 always @c false.
4669 </note>
4670 </desc>
4671 </attribute>
4672
4673 <attribute name="sharedFolders" type="ISharedFolder" readonly="yes" safearray="yes">
4674 <desc>
4675 Collection of shared folders for this machine (permanent shared
4676 folders). These folders are shared automatically at machine startup
4677 and available only to the guest OS installed within this machine.
4678
4679 New shared folders are added to the collection using
4680 <link to="#createSharedFolder"/>. Existing shared folders can be
4681 removed using <link to="#removeSharedFolder"/>.
4682 </desc>
4683 </attribute>
4684
4685 <attribute name="clipboardMode" type="ClipboardMode">
4686 <desc>
4687 Synchronization mode between the host OS clipboard
4688 and the guest OS clipboard.
4689 </desc>
4690 </attribute>
4691
4692 <attribute name="guestPropertyNotificationPatterns" type="wstring">
4693 <desc>
4694 A comma-separated list of simple glob patterns. Changes to guest
4695 properties whose name matches one of the patterns will generate an
4696 <link to="IVirtualBoxCallback::onGuestPropertyChange"/> signal.
4697 </desc>
4698 </attribute>
4699
4700 <method name="setBootOrder">
4701 <desc>
4702 Puts the given device to the specified position in
4703 the boot order.
4704
4705 To indicate that no device is associated with the given position,
4706 <link to="DeviceType_Null"/> should be used.
4707
4708 @todo setHardDiskBootOrder(), setNetworkBootOrder()
4709
4710 <result name="E_INVALIDARG">
4711 Boot @a position out of range.
4712 </result>
4713 <result name="E_NOTIMPL">
4714 Booting from USB @a device currently not supported.
4715 </result>
4716
4717 </desc>
4718 <param name="position" type="unsigned long" dir="in">
4719 <desc>
4720 Position in the boot order (@c 1 to the total number of
4721 devices the machine can boot from, as returned by
4722 <link to="ISystemProperties::maxBootPosition"/>).
4723 </desc>
4724 </param>
4725 <param name="device" type="DeviceType" dir="in">
4726 <desc>
4727 The type of the device used to boot at the given position.
4728 </desc>
4729 </param>
4730 </method>
4731
4732 <method name="getBootOrder" const="yes">
4733 <desc>
4734 Returns the device type that occupies the specified
4735 position in the boot order.
4736
4737 @todo [remove?]
4738 If the machine can have more than one device of the returned type
4739 (such as hard disks), then a separate method should be used to
4740 retrieve the individual device that occupies the given position.
4741
4742 If here are no devices at the given position, then
4743 <link to="DeviceType_Null"/> is returned.
4744
4745 @todo getHardDiskBootOrder(), getNetworkBootOrder()
4746
4747 <result name="E_INVALIDARG">
4748 Boot @a position out of range.
4749 </result>
4750
4751 </desc>
4752 <param name="position" type="unsigned long" dir="in">
4753 <desc>
4754 Position in the boot order (@c 1 to the total number of
4755 devices the machine can boot from, as returned by
4756 <link to="ISystemProperties::maxBootPosition"/>).
4757 </desc>
4758 </param>
4759 <param name="device" type="DeviceType" dir="return">
4760 <desc>
4761 Device at the given position.
4762 </desc>
4763 </param>
4764 </method>
4765
4766 <method name="attachHardDisk">
4767 <desc>
4768 Attaches a virtual hard disk (<link to="IHardDisk" />, identified
4769 by the given UUID @a id) to the given hard disk controller
4770 (<link to="IStorageController" />, identified by @a name),
4771 at the indicated port and device.
4772
4773 For the IDE bus, the @a controllerPort parameter can be either
4774 @c 0 or @c 1, to specify the primary or secondary IDE controller,
4775 respectively. For the primary controller of the IDE bus,
4776 @a device can be either @c 0 or @c 1, to specify the master or the
4777 slave device, respectively. For the secondary IDE controller, the
4778 device number must be @c 1 because VirtualBox reserves the
4779 secondary master for the CD-ROM drive.
4780
4781 For an SATA controller, @a controllerPort must be a number ranging
4782 from @c 0 to @c 29. For a SCSI controller, @a controllerPort must
4783 be a number ranging from @c 0 to @c 15.
4784
4785 For both SCSI and SATA, the @a device parameter is unused and must
4786 be @c 0.
4787
4788 The specified device slot must not have another disk attached to it, or
4789 this method will fail.
4790
4791 See <link to="IHardDisk"/> for more detailed information about
4792 attaching hard disks.
4793
4794 <note>
4795 You cannot attach a hard disk to a running machine. Also, you cannot
4796 attach a hard disk to a newly created machine until this machine's
4797 settings are saved to disk using <link to="#saveSettings"/>.
4798 </note>
4799 <note>
4800 If the hard disk is being attached indirectly, a new differencing hard
4801 disk will implicitly be created for it and attached instead. If the
4802 changes made to the machine settings (including this indirect
4803 attachment) are later cancelled using <link to="#discardSettings"/>,
4804 this implicitly created differencing hard disk will implicitly
4805 be deleted.
4806 </note>
4807
4808 <result name="E_INVALIDARG">
4809 SATA device, SATA port, IDE port or IDE slot out of range.
4810 </result>
4811 <result name="VBOX_E_INVALID_OBJECT_STATE">
4812 Attempt to attach hard disk to an unregistered virtual machine.
4813 </result>
4814 <result name="VBOX_E_INVALID_VM_STATE">
4815 Invalid machine state.
4816 </result>
4817 <result name="VBOX_E_OBJECT_IN_USE">
4818 Hard disk already attached to this or another virtual machine.
4819 </result>
4820
4821 </desc>
4822 <param name="id" type="wstring" dir="in">
4823 <desc>UUID of the hard disk to attach.</desc>
4824 </param>
4825 <param name="name" type="wstring" dir="in">
4826 <desc>Name of the storage controller to attach the hard disk to.</desc>
4827 </param>
4828 <param name="controllerPort" type="long" dir="in">
4829 <desc>Port to attach the hard disk to.</desc>
4830 </param>
4831 <param name="device" type="long" dir="in">
4832 <desc>
4833 Device slot in the given port to attach the hard disk to.
4834 </desc>
4835 </param>
4836 </method>
4837
4838 <method name="getHardDisk" const="yes">
4839 <desc>
4840 Returns the virtual hard disk attached to a device slot of the specified
4841 bus.
4842
4843 Note that if the hard disk was indirectly attached by
4844 <link to="#attachHardDisk"/> to the given device slot then this
4845 method will return not the same object as passed to the
4846 <link to="#attachHardDisk"/> call. See <link to="IHardDisk"/> for
4847 more detailed information about attaching hard disks.
4848
4849 <result name="VBOX_E_OBJECT_NOT_FOUND">
4850 No hard disk attached to given slot/bus.
4851 </result>
4852
4853 </desc>
4854 <param name="name" type="wstring" dir="in">
4855 <desc>Name of the storage controller the hard disk is attached to.</desc>
4856 </param>
4857 <param name="controllerPort" type="long" dir="in">
4858 <desc>Port to query.</desc>
4859 </param>
4860 <param name="device" type="long" dir="in">
4861 <desc>Device slot in the given port to query.</desc>
4862 </param>
4863 <param name="hardDisk" type="IHardDisk" dir="return">
4864 <desc>Attached hard disk object.</desc>
4865 </param>
4866 </method>
4867
4868 <method name="detachHardDisk">
4869 <desc>
4870 Detaches the virtual hard disk attached to a device slot of the
4871 specified bus.
4872
4873 Detaching the hard disk from the virtual machine is deferred. This means
4874 that the hard disk remains associated with the machine when this method
4875 returns and gets actually de-associated only after a successful
4876 <link to="#saveSettings"/> call. See <link to="IHardDisk"/>
4877 for more detailed information about attaching hard disks.
4878
4879 <note>
4880 You cannot detach the hard disk from a running machine.
4881 </note>
4882 <note>
4883 Detaching differencing hard disks implicitly created by <link
4884 to="#attachHardDisk"/> for the indirect attachment using this
4885 method will <b>not</b> implicitly delete them. The
4886 <link to="IHardDisk::deleteStorage"/> operation should be
4887 explicitly performed by the caller after the hard disk is successfully
4888 detached and the settings are saved with
4889 <link to="#saveSettings"/>, if it is the desired action.
4890 </note>
4891
4892 <result name="VBOX_E_INVALID_VM_STATE">
4893 Attempt to detach hard disk from a running virtual machine.
4894 </result>
4895 <result name="VBOX_E_OBJECT_NOT_FOUND">
4896 No hard disk attached to given slot/bus.
4897 </result>
4898 <result name="VBOX_E_NOT_SUPPORTED">
4899 Hard disk format does not support storage deletion.
4900 </result>
4901
4902 </desc>
4903 <param name="name" type="wstring" dir="in">
4904 <desc>name of the storage controller to detach the hard disk from.</desc>
4905 </param>
4906 <param name="controllerPort" type="long" dir="in">
4907 <desc>Port number to detach the hard disk from.</desc>
4908 </param>
4909 <param name="device" type="long" dir="in">
4910 <desc>Device slot number to detach the hard disk from.</desc>
4911 </param>
4912 </method>
4913
4914 <method name="getHardDiskAttachmentsOfController" const="yes">
4915 <desc>
4916 Returns an array of hard disk attachments which are attached to the
4917 the controller with the given name.
4918
4919 <result name="VBOX_E_OBJECT_NOT_FOUND">
4920 A storage controller with given name doesn't exist.
4921 </result>
4922 </desc>
4923 <param name="name" type="wstring" dir="in"/>
4924 <param name="hardDiskAttachments" type="IHardDiskAttachment" safearray="yes" dir="return"/>
4925 </method>
4926
4927 <method name="getNetworkAdapter" const="yes">
4928 <desc>
4929 Returns the network adapter associated with the given slot.
4930 Slots are numbered sequentially, starting with zero. The total
4931 number of adapters per machine is defined by the
4932 <link to="ISystemProperties::networkAdapterCount"/> property,
4933 so the maximum slot number is one less than that property's value.
4934
4935 <result name="E_INVALIDARG">
4936 Invalid @a slot number.
4937 </result>
4938
4939 </desc>
4940 <param name="slot" type="unsigned long" dir="in"/>
4941 <param name="adapter" type="INetworkAdapter" dir="return"/>
4942 </method>
4943
4944 <method name="addStorageController">
4945 <desc>
4946 Adds a new storage controller (SCSI or SATA controller) to the
4947 machine and returns it as an instance of
4948 <link to="IStorageController" />.
4949
4950 @a name identifies the controller for subsequent calls such as
4951 <link to="#getStorageControllerByName" /> or
4952 <link to="#removeStorageController" /> or
4953 <link to="#attachHardDisk" />.
4954
4955 After the controller has been added, you can set its exact
4956 type by setting the <link to="IStorageController::controllerType" />.
4957
4958 <result name="VBOX_E_OBJECT_IN_USE">
4959 A storage controller with given name exists already.
4960 </result>
4961 <result name="E_INVALIDARG">
4962 Invalid @a controllerType.
4963 </result>
4964 </desc>
4965 <param name="name" type="wstring" dir="in"/>
4966 <param name="connectionType" type="StorageBus" dir="in"/>
4967 <param name="controller" type="IStorageController" dir="return"/>
4968 </method>
4969
4970 <method name="getStorageControllerByName" const="yes">
4971 <desc>
4972 Returns a storage controller with the given name.
4973
4974 <result name="VBOX_E_OBJECT_NOT_FOUND">
4975 A storage controller with given name doesn't exist.
4976 </result>
4977 </desc>
4978 <param name="name" type="wstring" dir="in"/>
4979 <param name="storageController" type="IStorageController" dir="return"/>
4980 </method>
4981
4982 <method name="removeStorageController">
4983 <desc>
4984 Removes a storage controller from the machine.
4985
4986 <result name="VBOX_E_OBJECT_NOT_FOUND">
4987 A storage controller with given name doesn't exist.
4988 </result>
4989 </desc>
4990 <param name="name" type="wstring" dir="in"/>
4991 </method>
4992
4993 <method name="getSerialPort" const="yes">
4994 <desc>
4995 Returns the serial port associated with the given slot.
4996 Slots are numbered sequentially, starting with zero. The total
4997 number of serial ports per machine is defined by the
4998 <link to="ISystemProperties::serialPortCount"/> property,
4999 so the maximum slot number is one less than that property's value.
5000
5001 <result name="E_INVALIDARG">
5002 Invalid @a slot number.
5003 </result>
5004
5005 </desc>
5006 <param name="slot" type="unsigned long" dir="in"/>
5007 <param name="port" type="ISerialPort" dir="return"/>
5008 </method>
5009
5010 <method name="getParallelPort" const="yes">
5011 <desc>
5012 Returns the parallel port associated with the given slot.
5013 Slots are numbered sequentially, starting with zero. The total
5014 number of parallel ports per machine is defined by the
5015 <link to="ISystemProperties::parallelPortCount"/> property,
5016 so the maximum slot number is one less than that property's value.
5017
5018 <result name="E_INVALIDARG">
5019 Invalid @a slot number.
5020 </result>
5021
5022 </desc>
5023 <param name="slot" type="unsigned long" dir="in"/>
5024 <param name="port" type="IParallelPort" dir="return"/>
5025 </method>
5026
5027 <method name="getNextExtraDataKey">
5028 <desc>
5029 Returns the machine-specific extra data key name following the
5030 supplied key.
5031
5032 An error is returned if the supplied @a key does not exist. An empty
5033 string is returned in @a nextKey if the supplied key is the last key.
5034 When supplying @c null or an empty string for the @a key, the first key
5035 item is returned in @a nextKey (if there is any). @a nextValue is an
5036 optional parameter and if supplied, the next key's value is returned in
5037 it.
5038
5039 <result name="VBOX_E_OBJECT_NOT_FOUND">
5040 Extra data @a key not found.
5041 </result>
5042
5043 </desc>
5044 <param name="key" type="wstring" dir="in">
5045 <desc>Name of the data key to follow.</desc>
5046 </param>
5047 <param name="nextKey" type="wstring" dir="out">
5048 <desc>Name of the next data key.</desc>
5049 </param>
5050 <param name="nextValue" type="wstring" dir="out">
5051 <desc>Value of the next data key.</desc>
5052 </param>
5053 </method>
5054
5055 <method name="getExtraData">
5056 <desc>
5057 Returns associated machine-specific extra data.
5058
5059 If the requested data @a key does not exist, this function will
5060 succeed and return an empty string in the @a value argument.
5061
5062 <result name="VBOX_E_FILE_ERROR">
5063 Settings file not accessible.
5064 </result>
5065 <result name="VBOX_E_XML_ERROR">
5066 Could not parse the settings file.
5067 </result>
5068
5069 </desc>
5070 <param name="key" type="wstring" dir="in">
5071 <desc>Name of the data key to get.</desc>
5072 </param>
5073 <param name="value" type="wstring" dir="return">
5074 <desc>Value of the requested data key.</desc>
5075 </param>
5076 </method>
5077
5078 <method name="setExtraData">
5079 <desc>
5080 Sets associated machine-specific extra data.
5081
5082 If you pass @c null or an empty string as a key @a value, the given
5083 @a key will be deleted.
5084
5085 <note>
5086 Before performing the actual data change, this method will ask all
5087 registered callbacks using the
5088 <link to="IVirtualBoxCallback::onExtraDataCanChange"/>
5089 notification for a permission. If one of the callbacks refuses the
5090 new value, the change will not be performed.
5091 </note>
5092 <note>
5093 On success, the
5094 <link to="IVirtualBoxCallback::onExtraDataChange"/> notification
5095 is called to inform all registered callbacks about a successful data
5096 change.
5097 </note>
5098 <note>
5099 This method can be called outside the machine session and therefore
5100 it's a caller's responsibility to handle possible race conditions
5101 when several clients change the same key at the same time.
5102 </note>
5103
5104 <result name="VBOX_E_FILE_ERROR">
5105 Settings file not accessible.
5106 </result>
5107 <result name="VBOX_E_XML_ERROR">
5108 Could not parse the settings file.
5109 </result>
5110
5111 </desc>
5112 <param name="key" type="wstring" dir="in">
5113 <desc>Name of the data key to set.</desc>
5114 </param>
5115 <param name="value" type="wstring" dir="in">
5116 <desc>Value to assign to the key.</desc>
5117 </param>
5118 </method>
5119
5120 <method name="saveSettings">
5121 <desc>
5122 Saves any changes to machine settings made since the session
5123 has been opened or a new machine has been created, or since the
5124 last call to <link to="#saveSettings"/> or <link to="#discardSettings"/>.
5125 For registered machines, new settings become visible to all
5126 other VirtualBox clients after successful invocation of this
5127 method.
5128 <note>
5129 The method sends <link to="IVirtualBoxCallback::onMachineDataChange"/>
5130 notification event after the configuration has been successfully
5131 saved (only for registered machines).
5132 </note>
5133 <note>
5134 Calling this method is only valid on instances returned
5135 by <link to="ISession::machine"/> and on new machines
5136 created by <link to="IVirtualBox::createMachine"/> but not
5137 yet registered, or on unregistered machines after calling
5138 <link to="IVirtualBox::unregisterMachine"/>.
5139 </note>
5140
5141 <result name="VBOX_E_FILE_ERROR">
5142 Settings file not accessible.
5143 </result>
5144 <result name="VBOX_E_XML_ERROR">
5145 Could not parse the settings file.
5146 </result>
5147 <result name="E_ACCESSDENIED">
5148 Modification request refused.
5149 </result>
5150
5151 </desc>
5152 </method>
5153
5154 <method name="saveSettingsWithBackup">
5155 <desc>
5156 Creates a backup copy of the machine settings file (<link
5157 to="IMachine::settingsFilePath"/>) in case of auto-conversion, and then calls
5158 <link to="IMachine::saveSettings"/>.
5159
5160 Note that the backup copy is created <b>only</b> if the settings file
5161 auto-conversion took place (see <link to="#settingsFileVersion"/> for
5162 details). Otherwise, this call is fully equivalent to
5163 <link to="IMachine::saveSettings"/> and no backup copying is done.
5164
5165 The backup copy is created in the same directory where the original
5166 settings file is located. It is given the following file name:
5167 <pre>
5168 original.xml.x.y-platform.bak
5169 </pre>
5170 where <tt>original.xml</tt> is the original settings file name
5171 (excluding path), and <tt>x.y-platform</tt> is the version of the old
5172 format of the settings file (before auto-conversion).
5173
5174 If the given backup file already exists, this method will try to add the
5175 <tt>.N</tt> suffix to the backup file name (where @c N counts from
5176 0 to 9) and copy it again until it succeeds. If all suffixes are
5177 occupied, or if any other copy error occurs, this method will return a
5178 failure.
5179
5180 If the copy operation succeeds, the @a bakFileName return argument will
5181 receive a full path to the created backup file (for informational
5182 purposes). Note that this will happen even if the subsequent
5183 <link to="#saveSettings"/> call performed by this method after the
5184 copy operation, fails.
5185
5186 <note>
5187 The VirtualBox API never calls this method. It is intended purely for
5188 the purposes of creating backup copies of the settings files by
5189 front-ends before saving the results of the automatically performed
5190 settings conversion to disk.
5191 </note>
5192
5193 <see>settingsFileVersion</see>
5194
5195 <result name="VBOX_E_FILE_ERROR">
5196 Settings file not accessible.
5197 </result>
5198 <result name="VBOX_E_XML_ERROR">
5199 Could not parse the settings file.
5200 </result>
5201 <result name="VBOX_E_INVALID_VM_STATE">
5202 Virtual machine is not mutable.
5203 </result>
5204 <result name="E_ACCESSDENIED">
5205 Modification request refused.
5206 </result>
5207
5208 </desc>
5209 <param name="bakFileName" type="wstring" dir="return">
5210 <desc>Full path to the created backup copy.</desc>
5211 </param>
5212 </method>
5213
5214 <method name="discardSettings">
5215 <desc>
5216 Discards any changes to the machine settings made since the session
5217 has been opened or since the last call to <link to="#saveSettings"/>
5218 or <link to="#discardSettings"/>.
5219 <note>
5220 Calling this method is only valid on instances returned
5221 by <link to="ISession::machine"/> and on new machines
5222 created by <link to="IVirtualBox::createMachine"/> or
5223 opened by <link to="IVirtualBox::openMachine"/> but not
5224 yet registered, or on unregistered machines after calling
5225 <link to="IVirtualBox::unregisterMachine"/>.
5226 </note>
5227
5228 <result name="VBOX_E_INVALID_VM_STATE">
5229 Virtual machine is not mutable.
5230 </result>
5231
5232 </desc>
5233 </method>
5234
5235 <method name="deleteSettings">
5236 <desc>
5237 Deletes the settings file of this machine from disk.
5238 The machine must not be registered in order for this operation
5239 to succeed.
5240 <note>
5241 <link to="#settingsModified"/> will return @c true after this
5242 method successfully returns.
5243 </note>
5244 <note>
5245 Calling this method is only valid on instances returned
5246 by <link to="ISession::machine"/> and on new machines
5247 created by <link to="IVirtualBox::createMachine"/> or
5248 opened by <link to="IVirtualBox::openMachine"/> but not
5249 yet registered, or on unregistered machines after calling
5250 <link to="IVirtualBox::unregisterMachine"/>.
5251 </note>
5252 <note>
5253 The deleted machine settings file can be restored (saved again)
5254 by calling <link to="#saveSettings"/>.
5255 </note>
5256
5257 <result name="VBOX_E_INVALID_VM_STATE">
5258 Cannot delete settings of a registered machine or
5259 machine not mutable.
5260 </result>
5261 <result name="VBOX_E_IPRT_ERROR">
5262 Could not delete the settings file.
5263 </result>
5264
5265 </desc>
5266 </method>
5267
5268 <method name="export">
5269 <desc>Exports the machine to an OVF appliance. See <link to="IAppliance" /> for the
5270 steps required to export VirtualBox machines to OVF.
5271 </desc>
5272
5273 <param name="aAppliance" type="IAppliance" dir="in">
5274 <desc>Appliance to export this machine to.</desc>
5275 </param>
5276 <param name="aDescription" type="IVirtualSystemDescription" dir="return">
5277 <desc>VirtualSystemDescription object which is created for this machine.</desc>
5278 </param>
5279 </method >
5280
5281 <method name="getSnapshot">
5282 <desc>
5283 Returns a snapshot of this machine with the given UUID.
5284 A @c null UUID can be used to obtain the first snapshot
5285 taken on this machine. This is useful if you want to traverse
5286 the whole tree of snapshots starting from the root.
5287
5288 <result name="VBOX_E_OBJECT_NOT_FOUND">
5289 Virtual machine has no snapshots or snapshot not found.
5290 </result>
5291
5292 </desc>
5293 <param name="id" type="wstring" dir="in">
5294 <desc>UUID of the snapshot to get</desc>
5295 </param>
5296 <param name="snapshot" type="ISnapshot" dir="return">
5297 <desc>Snapshot object with the given UUID.</desc>
5298 </param>
5299 </method>
5300
5301 <method name="findSnapshot">
5302 <desc>
5303 Returns a snapshot of this machine with the given name.
5304
5305 <result name="VBOX_E_OBJECT_NOT_FOUND">
5306 Virtual machine has no snapshots or snapshot not found.
5307 </result>
5308
5309 </desc>
5310 <param name="name" type="wstring" dir="in">
5311 <desc>Name of the snapshot to find</desc>
5312 </param>
5313 <param name="snapshot" type="ISnapshot" dir="return">
5314 <desc>Snapshot object with the given name.</desc>
5315 </param>
5316 </method>
5317
5318 <method name="setCurrentSnapshot">
5319 <desc>
5320 Sets the current snapshot of this machine.
5321 <note>
5322 In the current implementation, this operation is not
5323 implemented.
5324 </note>
5325 </desc>
5326 <param name="id" type="wstring" dir="in">
5327 <desc>UUID of the snapshot to set as the current snapshot.</desc>
5328 </param>
5329 </method>
5330
5331 <method name="createSharedFolder">
5332 <desc>
5333 Creates a new permanent shared folder by associating the given logical
5334 name with the given host path, adds it to the collection of shared
5335 folders and starts sharing it. Refer to the description of
5336 <link to="ISharedFolder"/> to read more about logical names.
5337
5338 <result name="VBOX_E_OBJECT_IN_USE">
5339 Shared folder already exists.
5340 </result>
5341 <result name="VBOX_E_FILE_ERROR">
5342 Shared folder @a hostPath not accessible.
5343 </result>
5344
5345 </desc>
5346 <param name="name" type="wstring" dir="in">
5347 <desc>Unique logical name of the shared folder.</desc>
5348 </param>
5349 <param name="hostPath" type="wstring" dir="in">
5350 <desc>Full path to the shared folder in the host file system.</desc>
5351 </param>
5352 <param name="writable" type="boolean" dir="in">
5353 <desc>Whether the share is writable or readonly</desc>
5354 </param>
5355 </method>
5356
5357 <method name="removeSharedFolder">
5358 <desc>
5359 Removes the permanent shared folder with the given name previously
5360 created by <link to="#createSharedFolder"/> from the collection of
5361 shared folders and stops sharing it.
5362
5363 <result name="VBOX_E_INVALID_VM_STATE">
5364 Virtual machine is not mutable.
5365 </result>
5366 <result name="VBOX_E_OBJECT_NOT_FOUND">
5367 Shared folder @a name does not exist.
5368 </result>
5369
5370 </desc>
5371 <param name="name" type="wstring" dir="in">
5372 <desc>Logical name of the shared folder to remove.</desc>
5373 </param>
5374 </method>
5375
5376 <method name="canShowConsoleWindow">
5377 <desc>
5378 Returns @c true if the VM console process can activate the
5379 console window and bring it to foreground on the desktop of
5380 the host PC.
5381 <note>
5382 This method will fail if a session for this machine is not
5383 currently open.
5384 </note>
5385
5386 <result name="VBOX_E_INVALID_VM_STATE">
5387 Machine session is not open.
5388 </result>
5389
5390 </desc>
5391 <param name="canShow" type="boolean" dir="return">
5392 <desc>
5393 @c true if the console window can be shown and @c false otherwise.
5394 </desc>
5395 </param>
5396 </method>
5397
5398 <method name="showConsoleWindow">
5399 <desc>
5400 Activates the console window and brings it to foreground on
5401 the desktop of the host PC. Many modern window managers on
5402 many platforms implement some sort of focus stealing
5403 prevention logic, so that it may be impossible to activate
5404 a window without the help of the currently active
5405 application. In this case, this method will return a non-zero
5406 identifier that represents the top-level window of the VM
5407 console process. The caller, if it represents a currently
5408 active process, is responsible to use this identifier (in a
5409 platform-dependent manner) to perform actual window
5410 activation.
5411 <note>
5412 This method will fail if a session for this machine is not
5413 currently open.
5414 </note>
5415
5416 <result name="VBOX_E_INVALID_VM_STATE">
5417 Machine session is not open.
5418 </result>
5419
5420 </desc>
5421 <param name="winId" type="unsigned long long" dir="return">
5422 <desc>
5423 Platform-dependent identifier of the top-level VM console
5424 window, or zero if this method has performed all actions
5425 necessary to implement the <i>show window</i> semantics for
5426 the given platform and/or VirtualBox front-end.
5427 </desc>
5428 </param>
5429 </method>
5430
5431 <method name="getGuestProperty">
5432 <desc>
5433 Reads an entry from the machine's guest property store.
5434
5435 <result name="VBOX_E_INVALID_VM_STATE">
5436 Machine session is not open.
5437 </result>
5438
5439 </desc>
5440 <param name="name" type="wstring" dir="in">
5441 <desc>
5442 The name of the property to read.
5443 </desc>
5444 </param>
5445 <param name="value" type="wstring" dir="out">
5446 <desc>
5447 The value of the property. If the property does not exist then this
5448 will be empty.
5449 </desc>
5450 </param>
5451 <param name="timestamp" type="unsigned long long" dir="out">
5452 <desc>
5453 The time at which the property was last modified, as seen by the
5454 server process.
5455 </desc>
5456 </param>
5457 <param name="flags" type="wstring" dir="out">
5458 <desc>
5459 Additional property parameters, passed as a comma-separated list of
5460 "name=value" type entries.
5461 </desc>
5462 </param>
5463 </method>
5464
5465 <method name="getGuestPropertyValue">
5466 <desc>
5467 Reads a value from the machine's guest property store.
5468
5469 <result name="VBOX_E_INVALID_VM_STATE">
5470 Machine session is not open.
5471 </result>
5472
5473 </desc>
5474 <param name="property" type="wstring" dir="in">
5475 <desc>
5476 The name of the property to read.
5477 </desc>
5478 </param>
5479 <param name="value" type="wstring" dir="return">
5480 <desc>
5481 The value of the property. If the property does not exist then this
5482 will be empty.
5483 </desc>
5484 </param>
5485 </method>
5486
5487 <method name="getGuestPropertyTimestamp">
5488 <desc>
5489 Reads a property timestamp from the machine's guest property store.
5490
5491 <result name="VBOX_E_INVALID_VM_STATE">
5492 Machine session is not open.
5493 </result>
5494
5495 </desc>
5496 <param name="property" type="wstring" dir="in">
5497 <desc>
5498 The name of the property to read.
5499 </desc>
5500 </param>
5501 <param name="value" type="unsigned long long" dir="return">
5502 <desc>
5503 The timestamp. If the property does not exist then this will be
5504 empty.
5505 </desc>
5506 </param>
5507 </method>
5508
5509 <method name="setGuestProperty">
5510 <desc>
5511 Sets, changes or deletes an entry in the machine's guest property
5512 store.
5513
5514 <result name="E_ACCESSDENIED">
5515 Property cannot be changed.
5516 </result>
5517 <result name="E_INVALIDARG">
5518 Invalid @a flags.
5519 </result>
5520 <result name="VBOX_E_INVALID_VM_STATE">
5521 Virtual machine is not mutable or session not open.
5522 </result>
5523 <result name="VBOX_E_INVALID_OBJECT_STATE">
5524 Cannot set transient property when machine not running.
5525 </result>
5526
5527 </desc>
5528 <param name="property" type="wstring" dir="in">
5529 <desc>
5530 The name of the property to set, change or delete.
5531 </desc>
5532 </param>
5533 <param name="value" type="wstring" dir="in">
5534 <desc>
5535 The new value of the property to set, change or delete. If the
5536 property does not yet exist and value is non-empty, it will be
5537 created. If the value is @c null or empty, the property will be
5538 deleted if it exists.
5539 </desc>
5540 </param>
5541 <param name="flags" type="wstring" dir="in">
5542 <desc>
5543 Additional property parameters, passed as a comma-separated list of
5544 "name=value" type entries.
5545 </desc>
5546 </param>
5547 </method>
5548
5549 <method name="setGuestPropertyValue">
5550 <desc>
5551 Sets, changes or deletes a value in the machine's guest property
5552 store. The flags field will be left unchanged or created empty for a
5553 new property.
5554
5555 <result name="E_ACCESSDENIED">
5556 Property cannot be changed.
5557 </result>
5558 <result name="VBOX_E_INVALID_VM_STATE">
5559 Virtual machine is not mutable or session not open.
5560 </result>
5561 <result name="VBOX_E_INVALID_OBJECT_STATE">
5562 Cannot set transient property when machine not running.
5563 </result>
5564 </desc>
5565
5566 <param name="property" type="wstring" dir="in">
5567 <desc>
5568 The name of the property to set, change or delete.
5569 </desc>
5570 </param>
5571 <param name="value" type="wstring" dir="in">
5572 <desc>
5573 The new value of the property to set, change or delete. If the
5574 property does not yet exist and value is non-empty, it will be
5575 created. If the value is @c null or empty, the property will be
5576 deleted if it exists.
5577 </desc>
5578 </param>
5579 </method>
5580
5581 <method name="enumerateGuestProperties">
5582 <desc>
5583 Return a list of the guest properties matching a set of patterns along
5584 with their values, time stamps and flags.
5585 </desc>
5586 <param name="patterns" type="wstring" dir="in">
5587 <desc>
5588 The patterns to match the properties against, separated by '|'
5589 characters. If this is empty or @c null, all properties will match.
5590 </desc>
5591 </param>
5592 <param name="name" type="wstring" dir="out" safearray="yes">
5593 <desc>
5594 The names of the properties returned.
5595 </desc>
5596 </param>
5597 <param name="value" type="wstring" dir="out" safearray="yes">
5598 <desc>
5599 The values of the properties returned. The array entries match the
5600 corresponding entries in the @a name array.
5601 </desc>
5602 </param>
5603 <param name="timestamp" type="unsigned long long" dir="out" safearray="yes">
5604 <desc>
5605 The time stamps of the properties returned. The array entries match
5606 the corresponding entries in the @a name array.
5607 </desc>
5608 </param>
5609 <param name="flags" type="wstring" dir="out" safearray="yes">
5610 <desc>
5611 The flags of the properties returned. The array entries match the
5612 corresponding entries in the @a name array.
5613 </desc>
5614 </param>
5615 </method>
5616</interface>
5617
5618 <!--
5619 // IConsole
5620 /////////////////////////////////////////////////////////////////////////
5621 -->
5622
5623 <interface
5624 name="IConsoleCallback" extends="$unknown"
5625 uuid="13dfbef3-b74d-487d-bada-2304529aefa6"
5626 wsmap="suppress"
5627 >
5628
5629 <desc>
5630 This interface is used by a client of the Main API that need to
5631 be notified of events. For example, a graphical user interface
5632 can use this to learn about machine state changes so they can
5633 update the list of virtual machines without having to rely
5634 on polling.
5635
5636 Whenever relevant events occur in VirtualBox, the callbacks in
5637 objects of this interface are called. In order for this to be
5638 useful, a client needs to create its own subclass that implements
5639 this interface in which the methods for the relevant callbacks
5640 are overridden. An instance of this subclass interface can then
5641 be passed to <link to="IConsole::registerCallback" />.
5642 </desc>
5643
5644 <method name="onMousePointerShapeChange">
5645 <desc>
5646 Notification when the guest mouse pointer shape has
5647 changed. The new shape data is given.
5648 </desc>
5649 <param name="visible" type="boolean" dir="in">
5650 <desc>
5651 Flag whether the pointer is visible.
5652 </desc>
5653 </param>
5654 <param name="alpha" type="boolean" dir="in">
5655 <desc>
5656 Flag whether the pointer has an alpha channel.
5657 </desc>
5658 </param>
5659 <param name="xHot" type="unsigned long" dir="in">
5660 <desc>
5661 The pointer hot spot x coordinate.
5662 </desc>
5663 </param>
5664 <param name="yHot" type="unsigned long" dir="in">
5665 <desc>
5666 The pointer hot spot y coordinate.
5667 </desc>
5668 </param>
5669 <param name="width" type="unsigned long" dir="in">
5670 <desc>
5671 Width of the pointer shape in pixels.
5672 </desc>
5673 </param>
5674 <param name="height" type="unsigned long" dir="in">
5675 <desc>
5676 Height of the pointer shape in pixels.
5677 </desc>
5678 </param>
5679 <param name="shape" type="octet" mod="ptr" dir="in">
5680 <desc>
5681 Address of the shape buffer.
5682
5683 The @a shape buffer contains a 1-bpp (bits per pixel) AND mask
5684 followed by a 32-bpp XOR (color) mask.
5685
5686 For pointers without alpha channel the XOR mask pixels are 32
5687 bit values: (lsb)BGR0(msb). For pointers with alpha channel
5688 the XOR mask consists of (lsb)BGRA(msb) 32 bit values.
5689
5690 An AND mask is used for pointers with alpha channel, so if the
5691 callback does not support alpha, the pointer could be
5692 displayed as a normal color pointer.
5693
5694 The AND mask is a 1-bpp bitmap with byte aligned scanlines. The
5695 size of the AND mask therefore is <tt>cbAnd = (width + 7) / 8 *
5696 height</tt>. The padding bits at the end of each scanline are
5697 undefined.
5698
5699 The XOR mask follows the AND mask on the next 4-byte aligned
5700 offset: <tt>uint8_t *pXor = pAnd + (cbAnd + 3) &amp; ~3</tt>.
5701 Bytes in the gap between the AND and the XOR mask are undefined.
5702 The XOR mask scanlines have no gap between them and the size of
5703 the XOR mask is: <tt>cXor = width * 4 * height</tt>.
5704
5705 <note>
5706 If @a shape is 0, only the pointer visibility is changed.
5707 </note>
5708 </desc>
5709 </param>
5710 </method>
5711
5712 <method name="onMouseCapabilityChange">
5713 <desc>
5714 Notification when the mouse capabilities reported by the
5715 guest have changed. The new capabilities are passed.
5716 </desc>
5717 <param name="supportsAbsolute" type="boolean" dir="in"/>
5718 <param name="needsHostCursor" type="boolean" dir="in"/>
5719 </method>
5720
5721 <method name="onKeyboardLedsChange">
5722 <desc>
5723 Notification when the guest OS executes the KBD_CMD_SET_LEDS command
5724 to alter the state of the keyboard LEDs.
5725 </desc>
5726 <param name="numLock" type="boolean" dir="in"/>
5727 <param name="capsLock" type="boolean" dir="in"/>
5728 <param name="scrollLock" type="boolean" dir="in"/>
5729 </method>
5730
5731 <method name="onStateChange">
5732 <desc>
5733 Notification when the execution state of the machine has changed.
5734 The new state will be given.
5735 </desc>
5736 <param name="state" type="MachineState" dir="in"/>
5737 </method>
5738
5739 <method name="onAdditionsStateChange">
5740 <desc>
5741 Notification when a Guest Additions property changes.
5742 Interested callees should query IGuest attributes to
5743 find out what has changed.
5744 </desc>
5745 </method>
5746
5747 <method name="onDVDDriveChange">
5748 <desc>
5749 Notification when a property of the
5750 virtual <link to="IMachine::DVDDrive">DVD drive</link> changes.
5751 Interested callees should use IDVDDrive methods to find out what has
5752 changed.
5753 </desc>
5754 </method>
5755
5756 <method name="onFloppyDriveChange">
5757 <desc>
5758 Notification when a property of the
5759 virtual <link to="IMachine::floppyDrive">floppy drive</link> changes.
5760 Interested callees should use IFloppyDrive methods to find out what
5761 has changed.
5762 </desc>
5763 </method>
5764
5765 <method name="onNetworkAdapterChange">
5766 <desc>
5767 Notification when a property of one of the
5768 virtual <link to="IMachine::getNetworkAdapter">network adapters</link>
5769 changes. Interested callees should use INetworkAdapter methods and
5770 attributes to find out what has changed.
5771 </desc>
5772 <param name="networkAdapter" type="INetworkAdapter" dir="in">
5773 <desc>Network adapter that is subject to change.</desc>
5774 </param>
5775 </method>
5776
5777 <method name="onSerialPortChange">
5778 <desc>
5779 Notification when a property of one of the
5780 virtual <link to="IMachine::getSerialPort">serial ports</link> changes.
5781 Interested callees should use ISerialPort methods and attributes
5782 to find out what has changed.
5783 </desc>
5784 <param name="serialPort" type="ISerialPort" dir="in">
5785 <desc>Serial port that is subject to change.</desc>
5786 </param>
5787 </method>
5788
5789 <method name="onParallelPortChange">
5790 <desc>
5791 Notification when a property of one of the
5792 virtual <link to="IMachine::getParallelPort">parallel ports</link>
5793 changes. Interested callees should use ISerialPort methods and
5794 attributes to find out what has changed.
5795 </desc>
5796 <param name="parallelPort" type="IParallelPort" dir="in">
5797 <desc>Parallel port that is subject to change.</desc>
5798 </param>
5799 </method>
5800
5801 <method name="onStorageControllerChange">
5802 <desc>
5803 Notification when a property of one of the
5804 virtual <link to="IMachine::storageControllers">storage controllers</link>
5805 changes. Interested callees should query the corresponding collections
5806 to find out what has changed.
5807 </desc>
5808 </method>
5809
5810 <method name="onVRDPServerChange">
5811 <desc>
5812 Notification when a property of the
5813 <link to="IMachine::VRDPServer">VRDP server</link> changes.
5814 Interested callees should use IVRDPServer methods and attributes to
5815 find out what has changed.
5816 </desc>
5817 </method>
5818
5819 <method name="onUSBControllerChange">
5820 <desc>
5821 Notification when a property of the virtual
5822 <link to="IMachine::USBController">USB controller</link> changes.
5823 Interested callees should use IUSBController methods and attributes to
5824 find out what has changed.
5825 </desc>
5826 </method>
5827
5828 <method name="onUSBDeviceStateChange">
5829 <desc>
5830 Notification when a USB device is attached to or detached from
5831 the virtual USB controller.
5832
5833 This notification is sent as a result of the indirect
5834 request to attach the device because it matches one of the
5835 machine USB filters, or as a result of the direct request
5836 issued by <link to="IConsole::attachUSBDevice"/> or
5837 <link to="IConsole::detachUSBDevice"/>.
5838
5839 This notification is sent in case of both a succeeded and a
5840 failed request completion. When the request succeeds, the
5841 @a error parameter is @c null, and the given device has been
5842 already added to (when @a attached is @c true) or removed from
5843 (when @a attached is @c false) the collection represented by
5844 <link to="IConsole::USBDevices"/>. On failure, the collection
5845 doesn't change and the @a error parameter represents the error
5846 message describing the failure.
5847
5848 </desc>
5849 <param name="device" type="IUSBDevice" dir="in">
5850 <desc>Device that is subject to state change.</desc>
5851 </param>
5852 <param name="attached" type="boolean" dir="in">
5853 <desc>
5854 @c true if the device was attached and @c false otherwise.
5855 </desc>
5856 </param>
5857 <param name="error" type="IVirtualBoxErrorInfo" dir="in">
5858 <desc>
5859 @c null on success or an error message object on failure.
5860 </desc>
5861 </param>
5862 </method>
5863
5864 <method name="onSharedFolderChange">
5865 <desc>
5866 Notification when a shared folder is added or removed.
5867 The @a scope argument defines one of three scopes:
5868 <link to="IVirtualBox::sharedFolders">global shared folders</link>
5869 (<link to="Scope_Global">Global</link>),
5870 <link to="IMachine::sharedFolders">permanent shared folders</link> of
5871 the machine (<link to="Scope_Machine">Machine</link>) or <link
5872 to="IConsole::sharedFolders">transient shared folders</link> of the
5873 machine (<link to="Scope_Session">Session</link>). Interested callees
5874 should use query the corresponding collections to find out what has
5875 changed.
5876 </desc>
5877 <param name="scope" type="Scope" dir="in">
5878 <desc>Scope of the notification.</desc>
5879 </param>
5880 </method>
5881
5882 <method name="onRuntimeError">
5883 <desc>
5884 Notification when an error happens during the virtual
5885 machine execution.
5886
5887 There are three kinds of runtime errors:
5888 <ul>
5889 <li><i>fatal</i></li>
5890 <li><i>non-fatal with retry</i></li>
5891 <li><i>non-fatal warnings</i></li>
5892 </ul>
5893
5894 <b>Fatal</b> errors are indicated by the @a fatal parameter set
5895 to @c true. In case of fatal errors, the virtual machine
5896 execution is always paused before calling this notification, and
5897 the notification handler is supposed either to immediately save
5898 the virtual machine state using <link to="IConsole::saveState"/>
5899 or power it off using <link to="IConsole::powerDown"/>.
5900 Resuming the execution can lead to unpredictable results.
5901
5902 <b>Non-fatal</b> errors and warnings are indicated by the
5903 @a fatal parameter set to @c false. If the virtual machine
5904 is in the Paused state by the time the error notification is
5905 received, it means that the user can <i>try to resume</i> the machine
5906 execution after attempting to solve the problem that caused the
5907 error. In this case, the notification handler is supposed
5908 to show an appropriate message to the user (depending on the
5909 value of the @a id parameter) that offers several actions such
5910 as <i>Retry</i>, <i>Save</i> or <i>Power Off</i>. If the user
5911 wants to retry, the notification handler should continue
5912 the machine execution using the <link to="IConsole::resume"/>
5913 call. If the machine execution is not Paused during this
5914 notification, then it means this notification is a <i>warning</i>
5915 (for example, about a fatal condition that can happen very soon);
5916 no immediate action is required from the user, the machine
5917 continues its normal execution.
5918
5919 Note that in either case the notification handler
5920 <b>must not</b> perform any action directly on a thread
5921 where this notification is called. Everything it is allowed to
5922 do is to post a message to another thread that will then talk
5923 to the user and take the corresponding action.
5924
5925 Currently, the following error identifiers are known:
5926 <ul>
5927 <li><tt>"HostMemoryLow"</tt></li>
5928 <li><tt>"HostAudioNotResponding"</tt></li>
5929 <li><tt>"VDIStorageFull"</tt></li>
5930 </ul>
5931
5932 <note>
5933 This notification is not designed to be implemented by
5934 more than one callback at a time. If you have multiple
5935 IConsoleCallback instances registered on the given
5936 IConsole object, make sure you simply do nothing but
5937 return @c S_OK from all but one of them that does actual
5938 user notification and performs necessary actions.
5939 </note>
5940
5941 </desc>
5942 <param name="fatal" type="boolean" dir="in">
5943 <desc>Whether the error is fatal or not</desc>
5944 </param>
5945 <param name="id" type="wstring" dir="in">
5946 <desc>Error identifier</desc>
5947 </param>
5948 <param name="message" type="wstring" dir="in">
5949 <desc>Optional error message</desc>
5950 </param>
5951 </method>
5952
5953 <method name="onCanShowWindow">
5954 <desc>
5955 Notification when a call to
5956 <link to="IMachine::canShowConsoleWindow"/> is made by a
5957 front-end to check if a subsequent call to
5958 <link to="IMachine::showConsoleWindow"/> can succeed.
5959
5960 The callee should give an answer appropriate to the current
5961 machine state in the @a canShow argument. This answer must
5962 remain valid at least until the next
5963 <link to="IConsole::state">machine state</link> change.
5964
5965 <note>
5966 This notification is not designed to be implemented by
5967 more than one callback at a time. If you have multiple
5968 IConsoleCallback instances registered on the given
5969 IConsole object, make sure you simply do nothing but
5970 return @c true and @c S_OK from all but one of them that
5971 actually manages console window activation.
5972 </note>
5973 </desc>
5974 <param name="canShow" type="boolean" dir="return">
5975 <desc>
5976 @c true if the console window can be shown and @c false otherwise.
5977 </desc>
5978 </param>
5979 </method>
5980
5981 <method name="onShowWindow">
5982 <desc>
5983 Notification when a call to
5984 <link to="IMachine::showConsoleWindow"/>
5985 requests the console window to be activated and brought to
5986 foreground on the desktop of the host PC.
5987
5988 This notification should cause the VM console process to
5989 perform the requested action as described above. If it is
5990 impossible to do it at a time of this notification, this
5991 method should return a failure.
5992
5993 Note that many modern window managers on many platforms
5994 implement some sort of focus stealing prevention logic, so
5995 that it may be impossible to activate a window without the
5996 help of the currently active application (which is supposedly
5997 an initiator of this notification). In this case, this method
5998 must return a non-zero identifier that represents the
5999 top-level window of the VM console process. The caller, if it
6000 represents a currently active process, is responsible to use
6001 this identifier (in a platform-dependent manner) to perform
6002 actual window activation.
6003
6004 This method must set @a winId to zero if it has performed all
6005 actions necessary to complete the request and the console
6006 window is now active and in foreground, to indicate that no
6007 further action is required on the caller's side.
6008
6009 <note>
6010 This notification is not designed to be implemented by
6011 more than one callback at a time. If you have multiple
6012 IConsoleCallback instances registered on the given
6013 IConsole object, make sure you simply do nothing but
6014 return @c S_OK from all but one of them that actually
6015 manages console window activation.
6016 </note>
6017 </desc>
6018 <param name="winId" type="unsigned long long" dir="return">
6019 <desc>
6020 Platform-dependent identifier of the top-level VM console
6021 window, or zero if this method has performed all actions
6022 necessary to implement the <i>show window</i> semantics for
6023 the given platform and/or this VirtualBox front-end.
6024 </desc>
6025 </param>
6026 </method>
6027
6028 </interface>
6029
6030 <interface
6031 name="IRemoteDisplayInfo" extends="$unknown"
6032 uuid="550104cd-2dfd-4a6c-857d-f6f8e088e62c"
6033 wsmap="struct"
6034 >
6035 <desc>
6036 Contains information about the remote display (VRDP) capabilities and status.
6037 This is used in the <link to="IConsole::remoteDisplayInfo" /> attribute.
6038 </desc>
6039
6040 <attribute name="active" type="boolean" readonly="yes">
6041 <desc>
6042 Whether the remote display connection is active.
6043 </desc>
6044 </attribute>
6045
6046 <attribute name="numberOfClients" type="unsigned long" readonly="yes">
6047 <desc>
6048 How many times a client connected.
6049 </desc>
6050 </attribute>
6051
6052 <attribute name="beginTime" type="long long" readonly="yes">
6053 <desc>
6054 When the last connection was established, in milliseconds since 1970-01-01 UTC.
6055 </desc>
6056 </attribute>
6057
6058 <attribute name="endTime" type="long long" readonly="yes">
6059 <desc>
6060 When the last connection was terminated or the current time, if
6061 connection is still active, in milliseconds since 1970-01-01 UTC.
6062 </desc>
6063 </attribute>
6064
6065 <attribute name="bytesSent" type="unsigned long long" readonly="yes">
6066 <desc>
6067 How many bytes were sent in last or current, if still active, connection.
6068 </desc>
6069 </attribute>
6070
6071 <attribute name="bytesSentTotal" type="unsigned long long" readonly="yes">
6072 <desc>
6073 How many bytes were sent in all connections.
6074 </desc>
6075 </attribute>
6076
6077 <attribute name="bytesReceived" type="unsigned long long" readonly="yes">
6078 <desc>
6079 How many bytes were received in last or current, if still active, connection.
6080 </desc>
6081 </attribute>
6082
6083 <attribute name="bytesReceivedTotal" type="unsigned long long" readonly="yes">
6084 <desc>
6085 How many bytes were received in all connections.
6086 </desc>
6087 </attribute>
6088
6089 <attribute name="user" type="wstring" readonly="yes">
6090 <desc>
6091 Login user name supplied by the client.
6092 </desc>
6093 </attribute>
6094
6095 <attribute name="domain" type="wstring" readonly="yes">
6096 <desc>
6097 Login domain name supplied by the client.
6098 </desc>
6099 </attribute>
6100
6101 <attribute name="clientName" type="wstring" readonly="yes">
6102 <desc>
6103 The client name supplied by the client.
6104 </desc>
6105 </attribute>
6106
6107 <attribute name="clientIP" type="wstring" readonly="yes">
6108 <desc>
6109 The IP address of the client.
6110 </desc>
6111 </attribute>
6112
6113 <attribute name="clientVersion" type="unsigned long" readonly="yes">
6114 <desc>
6115 The client software version number.
6116 </desc>
6117 </attribute>
6118
6119 <attribute name="encryptionStyle" type="unsigned long" readonly="yes">
6120 <desc>
6121 Public key exchange method used when connection was established.
6122 Values: 0 - RDP4 public key exchange scheme.
6123 1 - X509 certificates were sent to client.
6124 </desc>
6125 </attribute>
6126
6127 </interface>
6128
6129 <interface
6130 name="IConsole" extends="$unknown"
6131 uuid="0a51994b-cbc6-4686-94eb-d4e4023280e2"
6132 wsmap="managed"
6133 >
6134 <desc>
6135 The IConsole interface represents an interface to control virtual
6136 machine execution.
6137
6138 The console object that implements the IConsole interface is obtained
6139 from a session object after the session for the given machine has been
6140 opened using one of <link to="IVirtualBox::openSession"/>,
6141 <link to="IVirtualBox::openRemoteSession"/> or
6142 <link to="IVirtualBox::openExistingSession"/> methods.
6143
6144 Methods of the IConsole interface allow the caller to query the current
6145 virtual machine execution state, pause the machine or power it down, save
6146 the machine state or take a snapshot, attach and detach removable media
6147 and so on.
6148
6149 <see>ISession</see>
6150 </desc>
6151
6152 <attribute name="machine" type="IMachine" readonly="yes">
6153 <desc>
6154 Machine object this console is sessioned with.
6155 <note>
6156 This is a convenience property, it has the same value as
6157 <link to="ISession::machine"/> of the corresponding session
6158 object.
6159 </note>
6160 </desc>
6161 </attribute>
6162
6163 <attribute name="state" type="MachineState" readonly="yes">
6164 <desc>
6165 Current execution state of the machine.
6166 <note>
6167 This property always returns the same value as the corresponding
6168 property of the IMachine object this console is sessioned with.
6169 For the process that owns (executes) the VM, this is the
6170 preferable way of querying the VM state, because no IPC
6171 calls are made.
6172 </note>
6173 </desc>
6174 </attribute>
6175
6176 <attribute name="guest" type="IGuest" readonly="yes">
6177 <desc>Guest object.</desc>
6178 </attribute>
6179
6180 <attribute name="keyboard" type="IKeyboard" readonly="yes">
6181 <desc>
6182 Virtual keyboard object.
6183 <note>
6184 If the machine is not running, any attempt to use
6185 the returned object will result in an error.
6186 </note>
6187 </desc>
6188 </attribute>
6189
6190 <attribute name="mouse" type="IMouse" readonly="yes">
6191 <desc>
6192 Virtual mouse object.
6193 <note>
6194 If the machine is not running, any attempt to use
6195 the returned object will result in an error.
6196 </note>
6197 </desc>
6198 </attribute>
6199
6200 <attribute name="display" type="IDisplay" readonly="yes">
6201 <desc>Virtual display object.
6202 <note>
6203 If the machine is not running, any attempt to use
6204 the returned object will result in an error.
6205 </note>
6206 </desc>
6207 </attribute>
6208
6209 <attribute name="debugger" type="IMachineDebugger" readonly="yes">
6210 <desc>Debugging interface.</desc>
6211 </attribute>
6212
6213 <attribute name="USBDevices" type="IUSBDevice" readonly="yes" safearray="yes">
6214 <desc>
6215 Collection of USB devices currently attached to the virtual
6216 USB controller.
6217 <note>
6218 The collection is empty if the machine is not running.
6219 </note>
6220 </desc>
6221 </attribute>
6222
6223 <attribute name="remoteUSBDevices" type="IHostUSBDevice" readonly="yes" safearray="yes">
6224 <desc>
6225 List of USB devices currently attached to the remote VRDP client.
6226 Once a new device is physically attached to the remote host computer,
6227 it appears in this list and remains there until detached.
6228 </desc>
6229 </attribute>
6230
6231 <attribute name="sharedFolders" type="ISharedFolder" readonly="yes" safearray="yes">
6232 <desc>
6233 Collection of shared folders for the current session. These folders
6234 are called transient shared folders because they are available to the
6235 guest OS running inside the associated virtual machine only for the
6236 duration of the session (as opposed to
6237 <link to="IMachine::sharedFolders"/> which represent permanent shared
6238 folders). When the session is closed (e.g. the machine is powered down),
6239 these folders are automatically discarded.
6240
6241 New shared folders are added to the collection using
6242 <link to="#createSharedFolder"/>. Existing shared folders can be
6243 removed using <link to="#removeSharedFolder"/>.
6244 </desc>
6245 </attribute>
6246
6247 <attribute name="remoteDisplayInfo" type="IRemoteDisplayInfo" readonly="yes">
6248 <desc>
6249 Interface that provides information on Remote Display (VRDP) connection.
6250 </desc>
6251 </attribute>
6252
6253 <method name="powerUp">
6254 <desc>
6255 Starts the virtual machine execution using the current machine
6256 state (that is, its current execution state, current settings and
6257 current hard disks).
6258
6259 If the machine is powered off or aborted, the execution will
6260 start from the beginning (as if the real hardware were just
6261 powered on).
6262
6263 If the machine is in the <link to="MachineState_Saved"/> state,
6264 it will continue its execution the point where the state has
6265 been saved.
6266
6267 <note>
6268 Unless you are trying to write a new VirtualBox front-end that
6269 performs direct machine execution (like the VirtualBox or VBoxSDL
6270 front-ends), don't call <link to="IConsole::powerUp"/> in a direct
6271 session opened by <link to="IVirtualBox::openSession"/> and use this
6272 session only to change virtual machine settings. If you simply want to
6273 start virtual machine execution using one of the existing front-ends
6274 (for example the VirtualBox GUI or headless server), simply use
6275 <link to="IVirtualBox::openRemoteSession"/>; these front-ends will
6276 power up the machine automatically for you.
6277 </note>
6278
6279 <see>#saveState</see>
6280 <result name="VBOX_E_INVALID_VM_STATE">
6281 Virtual machine already running.
6282 </result>
6283 <result name="VBOX_E_HOST_ERROR">
6284 Host interface does not exist or name not set.
6285 </result>
6286 <result name="VBOX_E_FILE_ERROR">
6287 Invalid saved state file.
6288 </result>
6289 </desc>
6290 <param name="progress" type="IProgress" dir="return">
6291 <desc>Progress object to track the operation completion.</desc>
6292 </param>
6293 </method>
6294
6295 <method name="powerUpPaused">
6296 <desc>
6297 Identical to powerUp except that the VM will enter the
6298 <link to="MachineState_Paused"/> state, instead of
6299 <link to="MachineState_Running"/>.
6300
6301 <see>#powerUp</see>
6302 <result name="VBOX_E_INVALID_VM_STATE">
6303 Virtual machine already running.
6304 </result>
6305 <result name="VBOX_E_HOST_ERROR">
6306 Host interface does not exist or name not set.
6307 </result>
6308 <result name="VBOX_E_FILE_ERROR">
6309 Invalid saved state file.
6310 </result>
6311 </desc>
6312 <param name="progress" type="IProgress" dir="return">
6313 <desc>Progress object to track the operation completion.</desc>
6314 </param>
6315 </method>
6316
6317 <method name="powerDown">
6318 <desc>
6319 Initiates the power down procedure to stop the virtual machine
6320 execution.
6321
6322 The completion of the power down procedure is tracked using the returned
6323 IProgress object. After the operation is complete, the machine will go
6324 to the PoweredOff state.
6325 <result name="VBOX_E_INVALID_VM_STATE">
6326 Virtual machine must be Running, Paused or Stuck to be powered down.
6327 </result>
6328 </desc>
6329 <param name="progress" type="IProgress" dir="return">
6330 <desc>Progress object to track the operation completion.</desc>
6331 </param>
6332 </method>
6333
6334 <method name="reset">
6335 <desc>Resets the virtual machine.
6336 <result name="VBOX_E_INVALID_VM_STATE">
6337 Virtual machine not in Running state.
6338 </result>
6339 <result name="VBOX_E_VM_ERROR">
6340 Virtual machine error in reset operation.
6341 </result>
6342 </desc>
6343 </method>
6344
6345 <method name="pause">
6346 <desc>Pauses the virtual machine execution.
6347 <result name="VBOX_E_INVALID_VM_STATE">
6348 Virtual machine not in Running state.
6349 </result>
6350 <result name="VBOX_E_VM_ERROR">
6351 Virtual machine error in suspend operation.
6352 </result>
6353 </desc>
6354 </method>
6355
6356 <method name="resume">
6357 <desc>Resumes the virtual machine execution.
6358 <result name="VBOX_E_INVALID_VM_STATE">
6359 Virtual machine not in Paused state.
6360 </result>
6361 <result name="VBOX_E_VM_ERROR">
6362 Virtual machine error in resume operation.
6363 </result>
6364 </desc>
6365 </method>
6366
6367 <method name="powerButton">
6368 <desc>Sends the ACPI power button event to the guest.
6369 <result name="VBOX_E_INVALID_VM_STATE">
6370 Virtual machine not in Running state.
6371 </result>
6372 <result name="VBOX_E_PDM_ERROR">
6373 Controlled power off failed.
6374 </result>
6375 </desc>
6376 </method>
6377
6378 <method name="sleepButton">
6379 <desc>Sends the ACPI sleep button event to the guest.
6380 <result name="VBOX_E_INVALID_VM_STATE">
6381 Virtual machine not in Running state.
6382 </result>
6383 <result name="VBOX_E_PDM_ERROR">
6384 Sending sleep button event failed.
6385 </result>
6386 </desc>
6387 </method>
6388
6389 <method name="getPowerButtonHandled">
6390 <desc>Checks if the last power button event was handled by guest.
6391 <result name="VBOX_E_PDM_ERROR">
6392 Checking if the event was handled by the guest OS failed.
6393 </result>
6394 </desc>
6395 <param name="handled" type="boolean" dir="return"/>
6396 </method>
6397
6398 <method name="getGuestEnteredACPIMode">
6399 <desc>Checks if the guest entered the ACPI mode G0 (working) or
6400 G1 (sleeping). If this method returns @c false, the guest will
6401 most likely not respond to external ACPI events.
6402 <result name="VBOX_E_INVALID_VM_STATE">
6403 Virtual machine not in Running state.
6404 </result>
6405 </desc>
6406 <param name="entered" type="boolean" dir="return"/>
6407 </method>
6408
6409 <method name="saveState">
6410 <desc>
6411 Saves the current execution state of a running virtual machine
6412 and stops its execution.
6413
6414 After this operation completes, the machine will go to the
6415 Saved state. Next time it is powered up, this state will
6416 be restored and the machine will continue its execution from
6417 the place where it was saved.
6418
6419 This operation differs from taking a snapshot to the effect
6420 that it doesn't create new differencing hard disks. Also, once
6421 the machine is powered up from the state saved using this method,
6422 the saved state is deleted, so it will be impossible to return
6423 to this state later.
6424
6425 <note>
6426 On success, this method implicitly calls
6427 <link to="IMachine::saveSettings"/> to save all current machine
6428 settings (including runtime changes to the DVD drive, etc.).
6429 Together with the impossibility to change any VM settings when it is
6430 in the Saved state, this guarantees adequate hardware
6431 configuration of the machine when it is restored from the saved
6432 state file.
6433 </note>
6434
6435 <note>
6436 The machine must be in the Running or Paused state, otherwise
6437 the operation will fail.
6438 </note>
6439 <result name="VBOX_E_INVALID_VM_STATE">
6440 Virtual machine state neither Running nor Paused.
6441 </result>
6442 <result name="VBOX_E_FILE_ERROR">
6443 Failed to create directory for saved state file.
6444 </result>
6445
6446 <see><link to="#takeSnapshot"/></see>
6447 </desc>
6448 <param name="progress" type="IProgress" dir="return">
6449 <desc>Progress object to track the operation completion.</desc>
6450 </param>
6451 </method>
6452
6453 <method name="adoptSavedState">
6454 <desc>
6455 Associates the given saved state file to the virtual machine.
6456
6457 On success, the machine will go to the Saved state. Next time it is
6458 powered up, it will be restored from the adopted saved state and
6459 continue execution from the place where the saved state file was
6460 created.
6461
6462 The specified saved state file path may be absolute or relative to the
6463 folder the VM normally saves the state to (usually,
6464 <link to="IMachine::snapshotFolder"/>).
6465
6466 <note>
6467 It's a caller's responsibility to make sure the given saved state
6468 file is compatible with the settings of this virtual machine that
6469 represent its virtual hardware (memory size, hard disk configuration
6470 etc.). If there is a mismatch, the behavior of the virtual machine
6471 is undefined.
6472 </note>
6473 <result name="VBOX_E_INVALID_VM_STATE">
6474 Virtual machine state neither PoweredOff nor Aborted.
6475 </result>
6476 </desc>
6477 <param name="savedStateFile" type="wstring" dir="in">
6478 <desc>Path to the saved state file to adopt.</desc>
6479 </param>
6480 </method>
6481
6482 <method name="forgetSavedState">
6483 <desc>
6484 Forgets the saved state of the virtual machine previously created
6485 by <link to="#saveState"/>. Next time the machine is powered up, a
6486 clean boot will occur. If @a remove is @c true the saved state file
6487 is deleted.
6488 <note>
6489 This operation is equivalent to resetting or powering off
6490 the machine without doing a proper shutdown in the guest OS.
6491 </note>
6492 <result name="VBOX_E_INVALID_VM_STATE">
6493 Virtual machine not in state Saved.
6494 </result>
6495 </desc>
6496 <param name="remove" type="boolean" dir="in">
6497 <desc>If @c true remove the saved state file.</desc>
6498 </param>
6499 </method>
6500
6501 <method name="getDeviceActivity">
6502 <desc>
6503 Gets the current activity type of a given device or device group.
6504 <result name="E_INVALIDARG">
6505 Invalid device type.
6506 </result>
6507 </desc>
6508 <param name="type" type="DeviceType" dir="in"/>
6509 <param name="activity" type="DeviceActivity" dir="return"/>
6510 </method>
6511
6512 <method name="attachUSBDevice">
6513 <desc>
6514 Attaches a host USB device with the given UUID to the
6515 USB controller of the virtual machine.
6516
6517 The device needs to be in one of the following states:
6518 <link to="USBDeviceState_Busy"/>,
6519 <link to="USBDeviceState_Available"/> or
6520 <link to="USBDeviceState_Held"/>,
6521 otherwise an error is immediately returned.
6522
6523 When the device state is
6524 <link to="USBDeviceState_Busy">Busy</link>, an error may also
6525 be returned if the host computer refuses to release it for some reason.
6526
6527 <see>IUSBController::deviceFilters, USBDeviceState</see>
6528 <result name="VBOX_E_INVALID_VM_STATE">
6529 Virtual machine state neither Running nor Paused.
6530 </result>
6531 <result name="VBOX_E_PDM_ERROR">
6532 Virtual machine does not have a USB controller.
6533 </result>
6534 </desc>
6535 <param name="id" type="wstring" dir="in">
6536 <desc>UUID of the host USB device to attach.</desc>
6537 </param>
6538 </method>
6539
6540 <method name="detachUSBDevice">
6541 <desc>
6542 Detaches an USB device with the given UUID from the USB controller
6543 of the virtual machine.
6544
6545 After this method succeeds, the VirtualBox server re-initiates
6546 all USB filters as if the device were just physically attached
6547 to the host, but filters of this machine are ignored to avoid
6548 a possible automatic re-attachment.
6549
6550 <see>IUSBController::deviceFilters, USBDeviceState</see>
6551
6552 <result name="VBOX_E_PDM_ERROR">
6553 Virtual machine does not have a USB controller.
6554 </result>
6555 <result name="E_INVALIDARG">
6556 USB device not attached to this virtual machine.
6557 </result>
6558 </desc>
6559 <param name="id" type="wstring" dir="in">
6560 <desc>UUID of the USB device to detach.</desc>
6561 </param>
6562 <param name="device" type="IUSBDevice" dir="return">
6563 <desc>Detached USB device.</desc>
6564 </param>
6565 </method>
6566
6567 <method name="findUSBDeviceByAddress">
6568 <desc>
6569 Searches for a USB device with the given host address.
6570
6571 <result name="VBOX_E_OBJECT_NOT_FOUND">
6572 Given @c name does not correspond to any USB device.
6573 </result>
6574
6575 <see>IUSBDevice::address</see>
6576 </desc>
6577 <param name="name" type="wstring" dir="in">
6578 <desc>
6579 Address of the USB device (as assigned by the host) to
6580 search for.
6581 </desc>
6582 </param>
6583 <param name="device" type="IUSBDevice" dir="return">
6584 <desc>Found USB device object.</desc>
6585 </param>
6586 </method>
6587
6588 <method name="findUSBDeviceById">
6589 <desc>
6590 Searches for a USB device with the given UUID.
6591
6592 <result name="VBOX_E_OBJECT_NOT_FOUND">
6593 Given @c id does not correspond to any USB device.
6594 </result>
6595
6596 <see>IUSBDevice::id</see>
6597 </desc>
6598 <param name="id" type="wstring" dir="in">
6599 <desc>UUID of the USB device to search for.</desc>
6600 </param>
6601 <param name="device" type="IUSBDevice" dir="return">
6602 <desc>Found USB device object.</desc>
6603 </param>
6604 </method>
6605
6606 <method name="createSharedFolder">
6607 <desc>
6608 Creates a transient new shared folder by associating the given logical
6609 name with the given host path, adds it to the collection of shared
6610 folders and starts sharing it. Refer to the description of
6611 <link to="ISharedFolder"/> to read more about logical names.
6612
6613 <result name="VBOX_E_INVALID_VM_STATE">
6614 Virtual machine in Saved state or currently changing state.
6615 </result>
6616 <result name="VBOX_E_FILE_ERROR">
6617 Shared folder already exists or not accessible.
6618 </result>
6619 </desc>
6620 <param name="name" type="wstring" dir="in">
6621 <desc>Unique logical name of the shared folder.</desc>
6622 </param>
6623 <param name="hostPath" type="wstring" dir="in">
6624 <desc>Full path to the shared folder in the host file system.</desc>
6625 </param>
6626 <param name="writable" type="boolean" dir="in">
6627 <desc>Whether the share is writable or readonly</desc>
6628 </param>
6629 </method>
6630
6631 <method name="removeSharedFolder">
6632 <desc>
6633 Removes a transient shared folder with the given name previously
6634 created by <link to="#createSharedFolder"/> from the collection of
6635 shared folders and stops sharing it.
6636 <result name="VBOX_E_INVALID_VM_STATE">
6637 Virtual machine in Saved state or currently changing state.
6638 </result>
6639 <result name="VBOX_E_FILE_ERROR">
6640 Shared folder does not exists.
6641 </result>
6642 </desc>
6643 <param name="name" type="wstring" dir="in">
6644 <desc>Logical name of the shared folder to remove.</desc>
6645 </param>
6646 </method>
6647
6648 <method name="takeSnapshot">
6649 <desc>
6650 Saves the current execution state and all settings of the
6651 machine and creates differencing images for all
6652 normal (non-independent) hard disks.
6653
6654 This method can be called for a PoweredOff, Saved, Running or
6655 Paused virtual machine. When the machine is PoweredOff, an
6656 offline <link to="ISnapshot">snapshot</link> is created,
6657 in all other cases -- an online snapshot.
6658
6659 The taken snapshot is always based on the
6660 <link to="IMachine::currentSnapshot">current
6661 snapshot</link> of the associated virtual machine and becomes
6662 a new current snapshot.
6663
6664 <note>
6665 This method implicitly calls <link to="IMachine::saveSettings"/> to
6666 save all current machine settings before taking an offline snapshot.
6667 </note>
6668
6669 <see>ISnapshot, <link to="#saveState"/></see>
6670 <result name="VBOX_E_INVALID_VM_STATE">
6671 Virtual machine currently changing state.
6672 </result>
6673 </desc>
6674 <param name="name" type="wstring" dir="in">
6675 <desc>Short name for the snapshot.</desc>
6676 </param>
6677 <param name="description" type="wstring" dir="in">
6678 <desc>Optional description of the snapshot.</desc>
6679 </param>
6680 <param name="progress" type="IProgress" dir="return">
6681 <desc>Progress object to track the operation completion.</desc>
6682 </param>
6683 </method>
6684
6685 <method name="discardSnapshot">
6686 <desc>
6687
6688 Starts discarding the specified snapshot. The execution state
6689 and settings of the associated machine stored in the snapshot
6690 will be deleted. The contents of all differencing hard disks of
6691 this snapshot will be merged with the contents of their
6692 dependent child hard disks to keep the, disks valid (in other
6693 words, all changes represented by hard disks being discarded
6694 will be propagated to their child hard disks). After that, this
6695 snapshot's differencing hard disks will be deleted. The parent
6696 of this snapshot will become a new parent for all its child
6697 snapshots.
6698
6699 If the discarded snapshot is the current one, its parent
6700 snapshot will become a new current snapshot. The current machine
6701 state is not directly affected in this case, except that
6702 currently attached differencing hard disks based on hard disks
6703 of the discarded snapshot will be also merged as described
6704 above.
6705
6706 If the discarded snapshot is the first one (the root snapshot)
6707 and it has exactly one child snapshot, this child snapshot will
6708 become the first snapshot after discarding. If there are no
6709 children at all (i.e. the first snapshot is the only snapshot of
6710 the machine), both the current and the first snapshot of the
6711 machine will be set to @c null. In all other cases, the first
6712 snapshot cannot be discarded.
6713
6714 You cannot discard the snapshot if it
6715 stores <link to="HardDiskType_Normal">normal</link> (non-differencing)
6716 hard disks that have differencing hard disks based on them. Snapshots of
6717 such kind can be discarded only when every normal hard disk has either
6718 no children at all or exactly one child. In the former case, the normal
6719 hard disk simply becomes unused (i.e. not attached to any VM). In the
6720 latter case, it receives all the changes stored in the child hard disk,
6721 and then it replaces the child hard disk in the configuration of the
6722 corresponding snapshot or machine.
6723
6724 Also, you cannot discard the snapshot if it stores hard disks
6725 (of any type) having differencing child hard disks that belong
6726 to other machines. Such snapshots can be only discarded after
6727 you discard all snapshots of other machines containing "foreign"
6728 child disks, or detach these "foreign" child disks from machines
6729 they are attached to.
6730
6731 One particular example of the snapshot storing normal hard disks
6732 is the first snapshot of a virtual machine that had normal hard
6733 disks attached when taking the snapshot. Be careful when
6734 discarding such snapshots because this implicitly commits
6735 changes (made since the snapshot being discarded has been taken)
6736 to normal hard disks (as described above), which may be not what
6737 you want.
6738
6739 The virtual machine is put to
6740 the <link to="MachineState_Discarding">Discarding</link> state until
6741 the discard operation is completed.
6742
6743 <note>
6744 The machine must not be running, otherwise the operation
6745 will fail.
6746 </note>
6747
6748 <note>
6749 Child hard disks of all normal hard disks of the discarded snapshot
6750 must be accessible (see <link to="IMedium::state"/>) for this
6751 operation to succeed. In particular, this means that all virtual
6752 machines, whose hard disks are directly or indirectly based on the
6753 hard disks of discarded snapshot, must be powered off.
6754 </note>
6755 <note>
6756 Merging hard disk contents can be very time and disk space
6757 consuming, if these disks are big in size and have many
6758 children. However, if the snapshot being discarded is the last
6759 (head) snapshot on the branch, the operation will be rather
6760 quick.
6761 </note>
6762 <note>
6763 Note that discarding the current snapshot
6764 will implicitly call <link to="IMachine::saveSettings"/> to
6765 make all current machine settings permanent.
6766 </note>
6767 <result name="VBOX_E_INVALID_VM_STATE">
6768 Virtual machine is running.
6769 </result>
6770 </desc>
6771 <param name="id" type="wstring" dir="in">
6772 <desc>UUID of the snapshot to discard.</desc>
6773 </param>
6774 <param name="progress" type="IProgress" dir="return">
6775 <desc>Progress object to track the operation completion.</desc>
6776 </param>
6777 </method>
6778
6779 <method name="discardCurrentState">
6780 <desc>
6781 This operation is similar to <link to="IConsole::discardSnapshot"/> but
6782 affects the current machine state. This means that the state stored in
6783 the current snapshot will become a new current state, and all current
6784 settings of the machine and changes stored in differencing hard disks
6785 will be lost.
6786
6787 After this operation is successfully completed, new empty differencing
6788 hard disks are created for all normal hard disks of the machine.
6789
6790 If the current snapshot of the machine is an online snapshot, the
6791 machine will go to the <link to="MachineState_Saved"> saved
6792 state</link>, so that the next time it is powered on, the execution
6793 state will be restored from the current snapshot.
6794
6795 <note>
6796 The machine must not be running, otherwise the operation will fail.
6797 </note>
6798
6799 <note>
6800 If the machine state is <link to="MachineState_Saved">Saved</link>
6801 prior to this operation, the saved state file will be implicitly
6802 discarded (as if <link to="IConsole::forgetSavedState"/> were
6803 called).
6804 </note>
6805
6806 <result name="VBOX_E_INVALID_VM_STATE">
6807 Virtual machine is running.
6808 </result>
6809 </desc>
6810 <param name="progress" type="IProgress" dir="return">
6811 <desc>Progress object to track the operation completion.</desc>
6812 </param>
6813 </method>
6814
6815 <method name="discardCurrentSnapshotAndState">
6816 <desc>
6817
6818 This method is equivalent to
6819 doing <link to="IConsole::discardSnapshot">discardSnapshot</link>
6820 (currentSnapshot.id(), progress) followed by
6821 <link to="IConsole::discardCurrentState"/>.
6822
6823 As a result, the machine will be fully restored from the
6824 snapshot preceding the current snapshot, while both the current
6825 snapshot and the current machine state will be discarded.
6826
6827 If the current snapshot is the first snapshot of the machine (i.e. it
6828 has the only snapshot), the current machine state will be
6829 discarded <b>before</b> discarding the snapshot. In other words, the
6830 machine will be restored from its last snapshot, before discarding
6831 it. This differs from performing a single
6832 <link to="IConsole::discardSnapshot"/> call (note that no
6833 <link to="IConsole::discardCurrentState"/> will be possible after it)
6834 to the effect that the latter will preserve the current state instead of
6835 discarding it.
6836
6837 Unless explicitly mentioned otherwise, all remarks and
6838 limitations of the above two methods also apply to this method.
6839
6840 <note>
6841 The machine must not be running, otherwise the operation
6842 will fail.
6843 </note>
6844
6845 <note>
6846 If the machine state is <link to="MachineState_Saved">Saved</link>
6847 prior to this operation, the saved state file will be implicitly
6848 discarded (as if <link to="#forgetSavedState"/> were
6849 called).
6850 </note>
6851
6852 <note>
6853 This method is more efficient than calling both of the above
6854 methods separately: it requires less IPC calls and provides
6855 a single progress object.
6856 </note>
6857
6858 <result name="VBOX_E_INVALID_VM_STATE">
6859 Virtual machine is running.
6860 </result>
6861 </desc>
6862 <param name="progress" type="IProgress" dir="return">
6863 <desc>Progress object to track the operation completion.</desc>
6864 </param>
6865 </method>
6866
6867 <method name="registerCallback">
6868 <desc>
6869 Registers a new console callback on this instance. The methods of the
6870 callback interface will be called by this instance when the appropriate
6871 event occurs.
6872 </desc>
6873 <param name="callback" type="IConsoleCallback" dir="in"/>
6874 </method>
6875
6876 <method name="unregisterCallback">
6877 <desc>
6878 Unregisters the console callback previously registered using
6879 <link to="#registerCallback"/>.
6880 <result name="E_INVALIDARG">
6881 Given @a callback handler is not registered.
6882 </result>
6883 </desc>
6884 <param name="callback" type="IConsoleCallback" dir="in"/>
6885 </method>
6886 </interface>
6887
6888 <!--
6889 // IHost
6890 /////////////////////////////////////////////////////////////////////////
6891 -->
6892
6893 <interface
6894 name="IHostDVDDrive" extends="$unknown"
6895 uuid="21f86694-202d-4ce4-8b05-a63ff82dbf4c"
6896 wsmap="managed"
6897 >
6898 <desc>
6899 The IHostDVDDrive interface represents the physical CD/DVD drive
6900 hardware on the host. Used indirectly in <link to="IHost::DVDDrives"/>.
6901 </desc>
6902
6903 <attribute name="name" type="wstring" readonly="yes">
6904 <desc>
6905 Returns the platform-specific device identifier.
6906 On DOS-like platforms, it is a drive name (e.g. R:).
6907 On Unix-like platforms, it is a device name (e.g. /dev/hdc).
6908 </desc>
6909 </attribute>
6910 <attribute name="description" type="wstring" readonly="yes">
6911 <desc>
6912 Returns a human readable description for the drive. This
6913 description usually contains the product and vendor name. An
6914 empty string is returned if the description is not available.
6915 </desc>
6916 </attribute>
6917 <attribute name="udi" type="wstring" readonly="yes">
6918 <desc>
6919 Returns the unique device identifier for the drive. This
6920 attribute is reserved for future use instead of
6921 <link to="#name"/>. Currently it is not used and may return
6922 an empty string on some platforms.
6923 </desc>
6924 </attribute>
6925
6926 </interface>
6927
6928 <interface
6929 name="IHostFloppyDrive" extends="$unknown"
6930 uuid="3f02d604-e908-4919-9fd1-8a4afd68fc63"
6931 wsmap="managed"
6932 >
6933 <desc>
6934 The IHostFloppyDrive interface represents the physical floppy drive
6935 hardware on the host. Used indirectly in <link to="IHost::floppyDrives"/>.
6936 </desc>
6937 <attribute name="name" type="wstring" readonly="yes">
6938 <desc>
6939 Returns the platform-specific device identifier.
6940 On DOS-like platforms, it is a drive name (e.g. A:).
6941 On Unix-like platforms, it is a device name (e.g. /dev/fd0).
6942 </desc>
6943 </attribute>
6944 <attribute name="description" type="wstring" readonly="yes">
6945 <desc>
6946 Returns a human readable description for the drive. This
6947 description usually contains the product and vendor name. An
6948 empty string is returned if the description is not available.
6949 </desc>
6950 </attribute>
6951 <attribute name="udi" type="wstring" readonly="yes">
6952 <desc>
6953 Returns the unique device identifier for the drive. This
6954 attribute is reserved for future use instead of
6955 <link to="#name"/>. Currently it is not used and may return
6956 an empty string on some platforms.
6957 </desc>
6958 </attribute>
6959 </interface>
6960
6961 <enum
6962 name="HostNetworkInterfaceMediumType"
6963 uuid="1aa54aaf-2497-45a2-bfb1-8eb225e93d5b"
6964 >
6965 <desc>
6966 Type of encapsulation. Ethernet encapsulation includes both wired and
6967 wireless Ethernet connections.
6968 <see>IHostNetworkInterface</see>
6969 </desc>
6970
6971 <const name="Unknown" value="0">
6972 <desc>
6973 The type of interface cannot be determined.
6974 </desc>
6975 </const>
6976 <const name="Ethernet" value="1">
6977 <desc>
6978 Ethernet frame encapsulation.
6979 </desc>
6980 </const>
6981 <const name="PPP" value="2">
6982 <desc>
6983 Point-to-point protocol encapsulation.
6984 </desc>
6985 </const>
6986 <const name="SLIP" value="3">
6987 <desc>
6988 Serial line IP encapsulation.
6989 </desc>
6990 </const>
6991 </enum>
6992
6993 <enum
6994 name="HostNetworkInterfaceStatus"
6995 uuid="CC474A69-2710-434B-8D99-C38E5D5A6F41"
6996 >
6997 <desc>
6998 Current status of the interface.
6999 <see>IHostNetworkInterface</see>
7000 </desc>
7001
7002 <const name="Unknown" value="0">
7003 <desc>
7004 The state of interface cannot be determined.
7005 </desc>
7006 </const>
7007 <const name="Up" value="1">
7008 <desc>
7009 The interface is fully operational.
7010 </desc>
7011 </const>
7012 <const name="Down" value="2">
7013 <desc>
7014 The interface is not functioning.
7015 </desc>
7016 </const>
7017 </enum>
7018
7019 <enum
7020 name="HostNetworkInterfaceType"
7021 uuid="67431b00-9946-48a2-bc02-b25c5919f4f3"
7022 >
7023 <desc>
7024 Network interface type.
7025 </desc>
7026 <const name="Bridged" value="1"/>
7027 <const name="HostOnly" value="2"/>
7028 </enum>
7029
7030 <interface
7031 name="IHostNetworkInterface" extends="$unknown"
7032 uuid="ce6fae58-7642-4102-b5db-c9005c2320a8"
7033 wsmap="managed"
7034 >
7035 <desc>
7036 Represents one of host's network interfaces. IP V6 address and network
7037 mask are strings of 32 hexdecimal digits grouped by four. Groups are
7038 separated by colons.
7039 For example, fe80:0000:0000:0000:021e:c2ff:fed2:b030.
7040 </desc>
7041 <attribute name="name" type="wstring" readonly="yes">
7042 <desc>Returns the host network interface name.</desc>
7043 </attribute>
7044
7045 <attribute name="id" type="wstring" readonly="yes">
7046 <desc>Returns the interface UUID.</desc>
7047 </attribute>
7048
7049 <attribute name="networkName" type="wstring" readonly="yes">
7050 <desc>Returns the name of a virtual network the interface gets attached to.</desc>
7051 </attribute>
7052
7053 <attribute name="dhcpEnabled" type="boolean" readonly="yes">
7054 <desc>Specifies whether the DHCP is enabled for the interface.</desc>
7055 </attribute>
7056
7057 <attribute name="IPAddress" type="wstring" readonly="yes">
7058 <desc>Returns the IP V4 address of the interface.</desc>
7059 </attribute>
7060
7061 <attribute name="networkMask" type="wstring" readonly="yes">
7062 <desc>Returns the network mask of the interface.</desc>
7063 </attribute>
7064
7065 <attribute name="IPV6Supported" type="boolean" readonly="yes">
7066 <desc>Specifies whether the IP V6 is supported/enabled for the interface.</desc>
7067 </attribute>
7068
7069 <attribute name="IPV6Address" type="wstring" readonly="yes">
7070 <desc>Returns the IP V6 address of the interface.</desc>
7071 </attribute>
7072
7073 <attribute name="IPV6NetworkMaskPrefixLength" type="unsigned long" readonly="yes">
7074 <desc>Returns the length IP V6 network mask prefix of the interface.</desc>
7075 </attribute>
7076
7077 <attribute name="hardwareAddress" type="wstring" readonly="yes">
7078 <desc>Returns the hardware address. For Ethernet it is MAC address.</desc>
7079 </attribute>
7080
7081 <attribute name="mediumType" type="HostNetworkInterfaceMediumType" readonly="yes">
7082 <desc>Type of protocol encapsulation used.</desc>
7083 </attribute>
7084
7085 <attribute name="status" type="HostNetworkInterfaceStatus" readonly="yes">
7086 <desc>Status of the interface.</desc>
7087 </attribute>
7088
7089 <attribute name="interfaceType" type="HostNetworkInterfaceType" readonly="yes">
7090 <desc>specifies the host interface type.</desc>
7091 </attribute>
7092
7093 <method name="enableStaticIpConfig">
7094 <desc>sets and enables the static IP V4 configuration for the given interface.</desc>
7095 <param name="IPAddress" type="wstring" dir="in">
7096 <desc>
7097 IP address.
7098 </desc>
7099 </param>
7100 <param name="networkMask" type="wstring" dir="in">
7101 <desc>
7102 network mask.
7103 </desc>
7104 </param>
7105 </method>
7106
7107 <method name="enableStaticIpConfigV6">
7108 <desc>sets and enables the static IP V6 configuration for the given interface.</desc>
7109 <param name="IPV6Address" type="wstring" dir="in">
7110 <desc>
7111 IP address.
7112 </desc>
7113 </param>
7114 <param name="IPV6NetworkMaskPrefixLength" type="unsigned long" dir="in">
7115 <desc>
7116 network mask.
7117 </desc>
7118 </param>
7119 </method>
7120
7121 <method name="enableDynamicIpConfig">
7122 <desc>enables the dynamic IP configuration.</desc>
7123 </method>
7124
7125 <method name="dhcpRediscover">
7126 <desc>refreshes the IP configuration for dhcp-enabled interface.</desc>
7127 </method>
7128
7129 </interface>
7130
7131 <interface
7132 name="IHost" extends="$unknown"
7133 uuid="a13b5556-5c0b-4f80-9df6-6f804f3336a1"
7134 wsmap="managed"
7135 >
7136 <desc>
7137 The IHost interface represents the physical machine that this VirtualBox
7138 installation runs on.
7139
7140 An object implementing this interface is returned by the
7141 <link to="IVirtualBox::host" /> attribute. This interface contains
7142 read-only information about the host's physical hardware (such as what
7143 processors and disks are available, what the host operating system is,
7144 and so on) and also allows for manipulating some of the host's hardware,
7145 such as global USB device filters and host interface networking.
7146
7147 </desc>
7148 <attribute name="DVDDrives" type="IHostDVDDrive" readonly="yes" safearray="yes">
7149 <desc>List of DVD drives available on the host.</desc>
7150 </attribute>
7151
7152 <attribute name="floppyDrives" type="IHostFloppyDrive" readonly="yes" safearray="yes">
7153 <desc>List of floppy drives available on the host.</desc>
7154 </attribute>
7155
7156 <attribute name="USBDevices" type="IHostUSBDevice" readonly="yes" safearray="yes">
7157 <desc>
7158 List of USB devices currently attached to the host.
7159 Once a new device is physically attached to the host computer,
7160 it appears in this list and remains there until detached.
7161
7162 <note>
7163 If USB functionality is not available in the given edition of
7164 VirtualBox, this method will set the result code to @c E_NOTIMPL.
7165 </note>
7166 </desc>
7167 </attribute>
7168
7169 <attribute name="USBDeviceFilters" type="IHostUSBDeviceFilter" readonly="yes" safearray="yes">
7170 <desc>
7171 List of USB device filters in action.
7172 When a new device is physically attached to the host computer,
7173 filters from this list are applied to it (in order they are stored
7174 in the list). The first matched filter will determine the
7175 <link to="IHostUSBDeviceFilter::action">action</link>
7176 performed on the device.
7177
7178 Unless the device is ignored by these filters, filters of all
7179 currently running virtual machines
7180 (<link to="IUSBController::deviceFilters"/>) are applied to it.
7181
7182 <note>
7183 If USB functionality is not available in the given edition of
7184 VirtualBox, this method will set the result code to @c E_NOTIMPL.
7185 </note>
7186
7187 <see>IHostUSBDeviceFilter, USBDeviceState</see>
7188 </desc>
7189 </attribute>
7190
7191 <attribute name="networkInterfaces" type="IHostNetworkInterface" safearray="yes" readonly="yes">
7192 <desc>List of host network interfaces currently defined on the host.</desc>
7193 </attribute>
7194
7195 <attribute name="processorCount" type="unsigned long" readonly="yes">
7196 <desc>Number of (logical) CPUs installed in the host system.</desc>
7197 </attribute>
7198
7199 <attribute name="processorOnlineCount" type="unsigned long" readonly="yes">
7200 <desc>Number of (logical) CPUs online in the host system.</desc>
7201 </attribute>
7202
7203 <method name="getProcessorSpeed">
7204 <desc>Query the (approximate) maximum speed of a specified host CPU in
7205 Megahertz.
7206 </desc>
7207 <param name="cpuId" type="unsigned long" dir="in">
7208 <desc>
7209 Identifier of the CPU.
7210 </desc>
7211 </param>
7212 <param name="speed" type="unsigned long" dir="return">
7213 <desc>
7214 Speed value. 0 is returned if value is not known or @a cpuId is
7215 invalid.
7216 </desc>
7217 </param>
7218 </method>
7219
7220 <method name="getProcessorFeature">
7221 <desc>Query whether a CPU feature is supported or not.</desc>
7222 <param name="feature" type="ProcessorFeature" dir="in">
7223 <desc>
7224 CPU Feature identifier.
7225 </desc>
7226 </param>
7227 <param name="supported" type="boolean" dir="return">
7228 <desc>
7229 Feature is supported or not.
7230 </desc>
7231 </param>
7232 </method>
7233
7234 <method name="getProcessorDescription">
7235 <desc>Query the model string of a specified host CPU.
7236 <note>
7237 This function is not implemented in the current version of the
7238 product.
7239 </note>
7240 </desc>
7241 <param name="cpuId" type="unsigned long" dir="in">
7242 <desc>
7243 Identifier of the CPU.
7244 </desc>
7245 </param>
7246 <param name="description" type="wstring" dir="return">
7247 <desc>
7248 Model string. An empty string is returned if value is not known or
7249 @a cpuId is invalid.
7250 </desc>
7251 </param>
7252 </method>
7253
7254 <attribute name="memorySize" type="unsigned long" readonly="yes">
7255 <desc>Amount of system memory in megabytes installed in the host system.</desc>
7256 </attribute>
7257
7258 <attribute name="memoryAvailable" type="unsigned long" readonly="yes">
7259 <desc>Available system memory in the host system.</desc>
7260 </attribute>
7261
7262 <attribute name="operatingSystem" type="wstring" readonly="yes">
7263 <desc>Name of the host system's operating system.</desc>
7264 </attribute>
7265
7266 <attribute name="OSVersion" type="wstring" readonly="yes">
7267 <desc>Host operating system's version string.</desc>
7268 </attribute>
7269
7270 <attribute name="UTCTime" type="long long" readonly="yes">
7271 <desc>Returns the current host time in milliseconds since 1970-01-01 UTC.</desc>
7272 </attribute>
7273
7274 <attribute name="Acceleration3DAvailable" type="boolean" readonly="yes">
7275 <desc>Returns @c true when the host supports 3D hardware acceleration.</desc>
7276 </attribute>
7277
7278 <method name="createHostOnlyNetworkInterface">
7279 <desc>
7280 Creates a new adapter for Host Only Networking.
7281 <result name="E_INVALIDARG">
7282 Host network interface @a name already exists.
7283 </result>
7284 </desc>
7285 <param name="hostInterface" type="IHostNetworkInterface" dir="out">
7286 <desc>
7287 Created host interface object.
7288 </desc>
7289 </param>
7290 <param name="progress" type="IProgress" dir="return">
7291 <desc>
7292 Progress object to track the operation completion.
7293 </desc>
7294 </param>
7295 </method>
7296
7297 <method name="removeHostOnlyNetworkInterface">
7298 <desc>
7299 Removes the given Host Only Networking interface.
7300 <result name="VBOX_E_OBJECT_NOT_FOUND">
7301 No host network interface matching @a id found.
7302 </result>
7303 </desc>
7304 <param name="id" type="wstring" dir="in">
7305 <desc>
7306 Adapter GUID.
7307 </desc>
7308 </param>
7309 <param name="hostInterface" type="IHostNetworkInterface" dir="out">
7310 <desc>
7311 Removed host interface object.
7312 </desc>
7313 </param>
7314 <param name="progress" type="IProgress" dir="return">
7315 <desc>
7316 Progress object to track the operation completion.
7317 </desc>
7318 </param>
7319 </method>
7320
7321 <method name="createUSBDeviceFilter">
7322 <desc>
7323 Creates a new USB device filter. All attributes except
7324 the filter name are set to empty (any match),
7325 <i>active</i> is @c false (the filter is not active).
7326
7327 The created filter can be added to the list of filters using
7328 <link to="#insertUSBDeviceFilter"/>.
7329
7330 <see>#USBDeviceFilters</see>
7331 </desc>
7332 <param name="name" type="wstring" dir="in">
7333 <desc>
7334 Filter name. See <link to="IHostUSBDeviceFilter::name"/>
7335 for more info.
7336 </desc>
7337 </param>
7338 <param name="filter" type="IHostUSBDeviceFilter" dir="return">
7339 <desc>Created filter object.</desc>
7340 </param>
7341 </method>
7342
7343 <method name="insertUSBDeviceFilter">
7344 <desc>
7345 Inserts the given USB device to the specified position
7346 in the list of filters.
7347
7348 Positions are numbered starting from @c 0. If the specified
7349 position is equal to or greater than the number of elements in
7350 the list, the filter is added at the end of the collection.
7351
7352 <note>
7353 Duplicates are not allowed, so an attempt to insert a
7354 filter already in the list is an error.
7355 </note>
7356 <note>
7357 If USB functionality is not available in the given edition of
7358 VirtualBox, this method will set the result code to @c E_NOTIMPL.
7359 </note>
7360
7361 <see>#USBDeviceFilters</see>
7362
7363 <result name="VBOX_E_INVALID_OBJECT_STATE">
7364 USB device filter is not created within this VirtualBox instance.
7365 </result>
7366 <result name="E_INVALIDARG">
7367 USB device filter already in list.
7368 </result>
7369
7370 </desc>
7371 <param name="position" type="unsigned long" dir="in">
7372 <desc>Position to insert the filter to.</desc>
7373 </param>
7374 <param name="filter" type="IHostUSBDeviceFilter" dir="in">
7375 <desc>USB device filter to insert.</desc>
7376 </param>
7377 </method>
7378
7379 <method name="removeUSBDeviceFilter">
7380 <desc>
7381 Removes a USB device filter from the specified position in the
7382 list of filters.
7383
7384 Positions are numbered starting from @c 0. Specifying a
7385 position equal to or greater than the number of elements in
7386 the list will produce an error.
7387
7388 <note>
7389 If USB functionality is not available in the given edition of
7390 VirtualBox, this method will set the result code to @c E_NOTIMPL.
7391 </note>
7392
7393 <see>#USBDeviceFilters</see>
7394
7395 <result name="E_INVALIDARG">
7396 USB device filter list empty or invalid @a position.
7397 </result>
7398
7399 </desc>
7400 <param name="position" type="unsigned long" dir="in">
7401 <desc>Position to remove the filter from.</desc>
7402 </param>
7403 <param name="filter" type="IHostUSBDeviceFilter" dir="return">
7404 <desc>Removed USB device filter.</desc>
7405 </param>
7406 </method>
7407
7408 <method name="findHostDVDDrive">
7409 <desc>
7410 Searches for a host DVD drive with the given @c name.
7411
7412 <result name="VBOX_E_OBJECT_NOT_FOUND">
7413 Given @c name does not correspond to any host drive.
7414 </result>
7415
7416 </desc>
7417 <param name="name" type="wstring" dir="in">
7418 <desc>Name of the host drive to search for</desc>
7419 </param>
7420 <param name="drive" type="IHostDVDDrive" dir="return">
7421 <desc>Found host drive object</desc>
7422 </param>
7423 </method>
7424
7425 <method name="findHostFloppyDrive">
7426 <desc>
7427 Searches for a host floppy drive with the given @c name.
7428
7429 <result name="VBOX_E_OBJECT_NOT_FOUND">
7430 Given @c name does not correspond to any host floppy drive.
7431 </result>
7432
7433 </desc>
7434 <param name="name" type="wstring" dir="in">
7435 <desc>Name of the host floppy drive to search for</desc>
7436 </param>
7437 <param name="drive" type="IHostFloppyDrive" dir="return">
7438 <desc>Found host floppy drive object</desc>
7439 </param>
7440 </method>
7441
7442 <method name="findHostNetworkInterfaceByName">
7443 <desc>
7444 Searches through all host network interfaces for an interface with
7445 the given @c name.
7446 <note>
7447 The method returns an error if the given @c name does not
7448 correspond to any host network interface.
7449 </note>
7450 </desc>
7451 <param name="name" type="wstring" dir="in">
7452 <desc>Name of the host network interface to search for.</desc>
7453 </param>
7454 <param name="networkInterface" type="IHostNetworkInterface" dir="return">
7455 <desc>Found host network interface object.</desc>
7456 </param>
7457 </method>
7458 <method name="findHostNetworkInterfaceById">
7459 <desc>
7460 Searches through all host network interfaces for an interface with
7461 the given GUID.
7462 <note>
7463 The method returns an error if the given GUID does not
7464 correspond to any host network interface.
7465 </note>
7466 </desc>
7467 <param name="id" type="wstring" dir="in">
7468 <desc>GUID of the host network interface to search for.</desc>
7469 </param>
7470 <param name="networkInterface" type="IHostNetworkInterface" dir="return">
7471 <desc>Found host network interface object.</desc>
7472 </param>
7473 </method>
7474 <method name="findHostNetworkInterfacesOfType">
7475 <desc>
7476 Searches through all host network interfaces and returns a list of interfaces of the specified type
7477 </desc>
7478 <param name="type" type="HostNetworkInterfaceType" dir="in">
7479 <desc>type of the host network interfaces to search for.</desc>
7480 </param>
7481 <param name="networkInterfaces" type="IHostNetworkInterface" safearray="yes" dir="return">
7482 <desc>Found host network interface objects.</desc>
7483 </param>
7484 </method>
7485
7486 <method name="findUSBDeviceById">
7487 <desc>
7488 Searches for a USB device with the given UUID.
7489
7490 <result name="VBOX_E_OBJECT_NOT_FOUND">
7491 Given @c id does not correspond to any USB device.
7492 </result>
7493
7494 <see>IHostUSBDevice::id</see>
7495 </desc>
7496 <param name="id" type="wstring" dir="in">
7497 <desc>UUID of the USB device to search for.</desc>
7498 </param>
7499 <param name="device" type="IHostUSBDevice" dir="return">
7500 <desc>Found USB device object.</desc>
7501 </param>
7502 </method>
7503
7504 <method name="findUSBDeviceByAddress">
7505 <desc>
7506 Searches for a USB device with the given host address.
7507
7508 <result name="VBOX_E_OBJECT_NOT_FOUND">
7509 Given @c name does not correspond to any USB device.
7510 </result>
7511
7512 <see>IHostUSBDevice::address</see>
7513 </desc>
7514 <param name="name" type="wstring" dir="in">
7515 <desc>
7516 Address of the USB device (as assigned by the host) to
7517 search for.
7518 </desc>
7519 </param>
7520 <param name="device" type="IHostUSBDevice" dir="return">
7521 <desc>Found USB device object.</desc>
7522 </param>
7523 </method>
7524
7525 </interface>
7526
7527 <!--
7528 // ISystemProperties
7529 /////////////////////////////////////////////////////////////////////////
7530 -->
7531
7532 <interface
7533 name="ISystemProperties"
7534 extends="$unknown"
7535 uuid="63bfd184-df69-4949-9159-a923cf7b1207"
7536 wsmap="managed"
7537 >
7538 <desc>
7539 The ISystemProperties interface represents global properties of the given
7540 VirtualBox installation.
7541
7542 These properties define limits and default values for various attributes
7543 and parameters. Most of the properties are read-only, but some can be
7544 changed by a user.
7545 </desc>
7546
7547 <attribute name="minGuestRAM" type="unsigned long" readonly="yes">
7548 <desc>Minimum guest system memory in Megabytes.</desc>
7549 </attribute>
7550
7551 <attribute name="maxGuestRAM" type="unsigned long" readonly="yes">
7552 <desc>Maximum guest system memory in Megabytes.</desc>
7553 </attribute>
7554
7555 <attribute name="minGuestVRAM" type="unsigned long" readonly="yes">
7556 <desc>Minimum guest video memory in Megabytes.</desc>
7557 </attribute>
7558
7559 <attribute name="maxGuestVRAM" type="unsigned long" readonly="yes">
7560 <desc>Maximum guest video memory in Megabytes.</desc>
7561 </attribute>
7562
7563 <attribute name="minGuestCPUCount" type="unsigned long" readonly="yes">
7564 <desc>Minimum CPU count.</desc>
7565 </attribute>
7566
7567 <attribute name="maxGuestCPUCount" type="unsigned long" readonly="yes">
7568 <desc>Maximum CPU count.</desc>
7569 </attribute>
7570
7571 <attribute name="maxVDISize" type="unsigned long long" readonly="yes">
7572 <desc>Maximum size of a virtual disk image in Megabytes.</desc>
7573 </attribute>
7574
7575 <attribute name="networkAdapterCount" type="unsigned long" readonly="yes">
7576 <desc>
7577 Number of network adapters associated with every
7578 <link to="IMachine"/> instance.
7579 </desc>
7580 </attribute>
7581
7582 <attribute name="serialPortCount" type="unsigned long" readonly="yes">
7583 <desc>
7584 Number of serial ports associated with every
7585 <link to="IMachine"/> instance.
7586 </desc>
7587 </attribute>
7588
7589 <attribute name="parallelPortCount" type="unsigned long" readonly="yes">
7590 <desc>
7591 Number of parallel ports associated with every
7592 <link to="IMachine"/> instance.
7593 </desc>
7594 </attribute>
7595
7596 <attribute name="maxBootPosition" type="unsigned long" readonly="yes">
7597 <desc>
7598 Maximum device position in the boot order. This value corresponds
7599 to the total number of devices a machine can boot from, to make it
7600 possible to include all possible devices to the boot list.
7601 <see><link to="IMachine::setBootOrder"/></see>
7602 </desc>
7603 </attribute>
7604
7605 <attribute name="defaultMachineFolder" type="wstring">
7606 <desc>
7607 Full path to the default directory used to create new or open
7608 existing machines when a settings file name contains no
7609 path.
7610
7611 The initial value of this property is
7612 <tt>&lt;</tt><link to="IVirtualBox::homeFolder">
7613 VirtualBox_home</link><tt>&gt;/Machines</tt>.
7614
7615 <note>
7616 Setting this property to @c null or an empty string will restore the
7617 initial value.
7618 </note>
7619 <note>
7620 When settings this property, the specified path can be
7621 absolute (full path) or relative
7622 to the <link to="IVirtualBox::homeFolder">
7623 VirtualBox home directory</link>.
7624 When reading this property, a full path is
7625 always returned.
7626 </note>
7627 <note>
7628 The specified path may not exist, it will be created
7629 when necessary.
7630 </note>
7631
7632 <see>
7633 <link to="IVirtualBox::createMachine"/>,
7634 <link to="IVirtualBox::openMachine"/>
7635 </see>
7636 </desc>
7637 </attribute>
7638
7639 <attribute name="defaultHardDiskFolder" type="wstring">
7640 <desc>
7641 Full path to the default directory used to create new or open existing
7642 virtual disks.
7643
7644 This path is used when the storage unit of a hard disk is a regular file
7645 in the host's file system and only a file name that contains no path is
7646 given.
7647
7648 The initial value of this property is
7649 <tt>&lt;</tt>
7650 <link to="IVirtualBox::homeFolder">VirtualBox_home</link>
7651 <tt>&gt;/HardDisks</tt>.
7652
7653 <note>
7654 Setting this property to @c null or empty string will restore the
7655 initial value.
7656 </note>
7657 <note>
7658 When settings this property, the specified path can be relative
7659 to the
7660 <link to="IVirtualBox::homeFolder">VirtualBox home directory</link> or
7661 absolute. When reading this property, a full path is
7662 always returned.
7663 </note>
7664 <note>
7665 The specified path may not exist, it will be created
7666 when necessary.
7667 </note>
7668
7669 <see>
7670 IHardDisk,
7671 <link to="IVirtualBox::createHardDisk"/>,
7672 <link to="IVirtualBox::openHardDisk"/>,
7673 <link to="IMedium::location"/>
7674 </see>
7675 </desc>
7676 </attribute>
7677
7678 <attribute name="hardDiskFormats" type="IHardDiskFormat" safearray="yes" readonly="yes">
7679 <desc>
7680 List of all hard disk storage formats supported by this VirtualBox
7681 installation.
7682
7683 Keep in mind that the hard disk format identifier
7684 (<link to="IHardDiskFormat::id"/>) used in other API calls like
7685 <link to="IVirtualBox::createHardDisk"/> to refer to a particular
7686 hard disk format is a case-insensitive string. This means that, for
7687 example, all of the following strings:
7688 <pre>
7689 "VDI"
7690 "vdi"
7691 "VdI"</pre>
7692 refer to the same hard disk format.
7693
7694 Note that the virtual hard disk framework is backend-based, therefore
7695 the list of supported formats depends on what backends are currently
7696 installed.
7697
7698 <see>
7699 <link to="IHardDiskFormat"/>,
7700 </see>
7701 </desc>
7702 </attribute>
7703
7704 <attribute name="defaultHardDiskFormat" type="wstring">
7705 <desc>
7706 Identifier of the default hard disk format used by VirtualBox.
7707
7708 The hard disk format set by this attribute is used by VirtualBox
7709 when the hard disk format was not specified explicitly. One example is
7710 <link to="IVirtualBox::createHardDisk"/> with the empty
7711 format argument. A more complex example is implicit creation of
7712 differencing hard disks when taking a snapshot of a virtual machine:
7713 this operation will try to use a format of the parent hard disk first
7714 and if this format does not support differencing hard disks the default
7715 format specified by this argument will be used.
7716
7717 The list of supported hard disk formats may be obtained by the
7718 <link to="#hardDiskFormats"/> call. Note that the default hard disk
7719 format must have a capability to create differencing hard disks;
7720 otherwise opeartions that create hard disks implicitly may fail
7721 unexpectedly.
7722
7723 The initial value of this property is <tt>"VDI"</tt> in the current
7724 version of the VirtualBox product, but may change in the future.
7725
7726 <note>
7727 Setting this property to @c null or empty string will restore the
7728 initial value.
7729 </note>
7730
7731 <see>
7732 <link to="#hardDiskFormats"/>,
7733 <link to="IHardDiskFormat::id"/>,
7734 <link to="IVirtualBox::createHardDisk"/>
7735 </see>
7736 </desc>
7737 </attribute>
7738
7739 <attribute name="remoteDisplayAuthLibrary" type="wstring">
7740 <desc>
7741 Library that provides authentication for VRDP clients. The library
7742 is used if a virtual machine's authentication type is set to "external"
7743 in the VM RemoteDisplay configuration.
7744
7745 The system library extension (".DLL" or ".so") must be omitted.
7746 A full path can be specified; if not, then the library must reside on the
7747 system's default library path.
7748
7749 The default value of this property is <tt>"VRDPAuth"</tt>. There is a library
7750 of that name in one of the default VirtualBox library directories.
7751
7752 For details about VirtualBox authentication libraries and how to implement
7753 them, please refer to the VirtualBox manual.
7754
7755 <note>
7756 Setting this property to @c null or empty string will restore the
7757 initial value.
7758 </note>
7759 </desc>
7760 </attribute>
7761
7762 <attribute name="webServiceAuthLibrary" type="wstring">
7763 <desc>
7764 Library that provides authentication for webservice clients. The library
7765 is used if a virtual machine's authentication type is set to "external"
7766 in the VM RemoteDisplay configuration and will be called from
7767 within the <link to="IWebsessionManager::logon" /> implementation.
7768
7769 As opposed to <link to="ISystemProperties::remoteDisplayAuthLibrary" />,
7770 there is no per-VM setting for this, as the webservice is a global
7771 resource (if it is running). Only for this setting (for the webservice),
7772 setting this value to a literal <tt>"null"</tt> string disables authentication,
7773 meaning that <link to="IWebsessionManager::logon" /> will always succeed,
7774 no matter what user name and password are supplied.
7775
7776 The initial value of this property is <tt>"VRDPAuth"</tt>,
7777 meaning that the webservice will use the same authentication
7778 library that is used by default for VBoxVRDP (again, see
7779 <link to="ISystemProperties::remoteDisplayAuthLibrary" />).
7780 The format and calling convention of authentication libraries
7781 is the same for the webservice as it is for VBoxVRDP.
7782
7783 <note>
7784 Setting this property to @c null or empty string will restore the
7785 initial value.
7786 </note>
7787 </desc>
7788 </attribute>
7789
7790 <attribute name="HWVirtExEnabled" type="boolean">
7791 <desc>
7792 This specifies the default value for hardware virtualization
7793 extensions. If enabled, virtual machines will make use of
7794 hardware virtualization extensions such as Intel VT-x and
7795 AMD-V by default. This value can be overridden by each VM
7796 using their <link to="IMachine::HWVirtExEnabled" /> property.
7797 </desc>
7798 </attribute>
7799
7800 <attribute name="LogHistoryCount" type="unsigned long">
7801 <desc>
7802 This value specifies how many old release log files are kept.
7803 </desc>
7804 </attribute>
7805
7806 <attribute name="defaultAudioDriver" type="AudioDriverType" readonly="yes">
7807 <desc>This value hold the default audio driver for the current
7808 system.</desc>
7809 </attribute>
7810 </interface>
7811
7812 <!--
7813 // IGuest
7814 /////////////////////////////////////////////////////////////////////////
7815 -->
7816
7817 <interface
7818 name="IGuestOSType" extends="$unknown"
7819 uuid="cfe9e64c-4430-435b-9e7c-e3d8e417bd58"
7820 wsmap="struct"
7821 >
7822 <desc>
7823 </desc>
7824
7825 <attribute name="familyId" type="wstring" readonly="yes">
7826 <desc>Guest OS family identifier string.</desc>
7827 </attribute>
7828
7829 <attribute name="familyDescription" type="wstring" readonly="yes">
7830 <desc>Human readable description of the guest OS family.</desc>
7831 </attribute>
7832
7833 <attribute name="id" type="wstring" readonly="yes">
7834 <desc>Guest OS identifier string.</desc>
7835 </attribute>
7836
7837 <attribute name="description" type="wstring" readonly="yes">
7838 <desc>Human readable description of the guest OS.</desc>
7839 </attribute>
7840
7841 <attribute name="is64Bit" type="boolean" readonly="yes">
7842 <desc>Returns @c true if the given OS is 64-bit</desc>
7843 </attribute>
7844
7845 <attribute name="recommendedIOAPIC" type="boolean" readonly="yes">
7846 <desc>Returns @c true if IO APIC recommended for this OS type.</desc>
7847 </attribute>
7848
7849 <attribute name="recommendedVirtEx" type="boolean" readonly="yes">
7850 <desc>Returns @c true if VT-x or AMD-V recommended for this OS type.</desc>
7851 </attribute>
7852
7853 <attribute name="recommendedRAM" type="unsigned long" readonly="yes">
7854 <desc>Recommended RAM size in Megabytes.</desc>
7855 </attribute>
7856
7857 <attribute name="recommendedVRAM" type="unsigned long" readonly="yes">
7858 <desc>Recommended video RAM size in Megabytes.</desc>
7859 </attribute>
7860
7861 <attribute name="recommendedHDD" type="unsigned long" readonly="yes">
7862 <desc>Recommended hard disk size in Megabytes.</desc>
7863 </attribute>
7864
7865 <attribute name="adapterType" type="NetworkAdapterType" readonly="yes">
7866 <desc>Returns recommended network adapter for this OS type.</desc>
7867 </attribute>
7868 </interface>
7869
7870 <interface
7871 name="IGuest" extends="$unknown"
7872 uuid="d8556fca-81bc-12af-fca3-365528fa38ca"
7873 wsmap="managed"
7874 >
7875 <desc>
7876 The IGuest interface represents information about the operating system
7877 running inside the virtual machine. Used in
7878 <link to="IConsole::guest"/>.
7879
7880 IGuest provides information about the guest operating system, whether
7881 Guest Additions are installed and other OS-specific virtual machine
7882 properties.
7883 </desc>
7884
7885 <attribute name="OSTypeId" type="wstring" readonly="yes">
7886 <desc>
7887 Identifier of the Guest OS type as reported by the Guest
7888 Additions.
7889 You may use <link to="IVirtualBox::getGuestOSType"/> to obtain
7890 an IGuestOSType object representing details about the given
7891 Guest OS type.
7892 <note>
7893 If Guest Additions are not installed, this value will be
7894 the same as <link to="IMachine::OSTypeId"/>.
7895 </note>
7896 </desc>
7897 </attribute>
7898
7899 <attribute name="additionsActive" type="boolean" readonly="yes">
7900 <desc>
7901 Flag whether the Guest Additions are installed and active
7902 in which case their version will be returned by the
7903 <link to="#additionsVersion"/> property.
7904 </desc>
7905 </attribute>
7906
7907 <attribute name="additionsVersion" type="wstring" readonly="yes">
7908 <desc>
7909 Version of the Guest Additions (3 decimal numbers separated
7910 by dots) or empty when the Additions are not installed. The
7911 Additions may also report a version but yet not be active as
7912 the version might be refused by VirtualBox (incompatible) or
7913 other failures occurred.
7914 </desc>
7915 </attribute>
7916
7917 <attribute name="supportsSeamless" type="boolean" readonly="yes">
7918 <desc>
7919 Flag whether seamless guest display rendering (seamless desktop
7920 integration) is supported.
7921 </desc>
7922 </attribute>
7923
7924 <attribute name="supportsGraphics" type="boolean" readonly="yes">
7925 <desc>
7926 Flag whether the guest is in graphics mode. If it is not, then
7927 seamless rendering will not work, resize hints are not immediately
7928 acted on and guest display resizes are probably not initiated by
7929 the guest additions.
7930 </desc>
7931 </attribute>
7932
7933 <attribute name="memoryBalloonSize" type="unsigned long">
7934 <desc>Guest system memory balloon size in megabytes.</desc>
7935 </attribute>
7936
7937 <attribute name="statisticsUpdateInterval" type="unsigned long">
7938 <desc>Interval to update guest statistics in seconds.</desc>
7939 </attribute>
7940
7941 <method name="setCredentials">
7942 <desc>
7943 Store login credentials that can be queried by guest operating
7944 systems with Additions installed. The credentials are transient
7945 to the session and the guest may also choose to erase them. Note
7946 that the caller cannot determine whether the guest operating system
7947 has queried or made use of the credentials.
7948
7949 <result name="VBOX_E_VM_ERROR">
7950 VMM device is not available.
7951 </result>
7952
7953 </desc>
7954 <param name="userName" type="wstring" dir="in">
7955 <desc>User name string, can be empty</desc>
7956 </param>
7957 <param name="password" type="wstring" dir="in">
7958 <desc>Password string, can be empty</desc>
7959 </param>
7960 <param name="domain" type="wstring" dir="in">
7961 <desc>Domain name (guest logon scheme specific), can be empty</desc>
7962 </param>
7963 <param name="allowInteractiveLogon" type="boolean" dir="in">
7964 <desc>
7965 Flag whether the guest should alternatively allow the user to
7966 interactively specify different credentials. This flag might
7967 not be supported by all versions of the Additions.
7968 </desc>
7969 </param>
7970 </method>
7971
7972 <method name="getStatistic">
7973 <desc>
7974 Query specified guest statistics as reported by the VirtualBox Additions.
7975 </desc>
7976 <param name="cpuId" type="unsigned long" dir="in">
7977 <desc>Virtual CPU id; not relevant for all statistic types</desc>
7978 </param>
7979 <param name="statistic" type="GuestStatisticType" dir="in">
7980 <desc>Statistic type.</desc>
7981 </param>
7982 <param name="statVal" type="unsigned long" dir="return">
7983 <desc>Statistics value</desc>
7984 </param>
7985 </method>
7986
7987 </interface>
7988
7989
7990 <!--
7991 // IProgress
7992 /////////////////////////////////////////////////////////////////////////
7993 -->
7994
7995 <interface
7996 name="IProgress" extends="$unknown"
7997 uuid="6fcd0198-7fc5-4c53-8c37-653ac76854b5"
7998 wsmap="managed"
7999 >
8000 <desc>
8001 The IProgress interface is used to track and control
8002 asynchronous tasks within VirtualBox.
8003
8004 An instance of this is returned every time VirtualBox starts
8005 an asynchronous task (in other words, a separate thread) which
8006 continues to run after a method call returns. For example,
8007 <link to="IConsole::saveState" />, which saves the state of
8008 a running virtual machine, can take a long time to complete.
8009 To be able to display a progress bar, a user interface such as
8010 the VirtualBox graphical user interface can use the IProgress
8011 object returned by that method.
8012
8013 Note that IProgress is a "read-only" interface in the sense
8014 that only the VirtualBox internals behind the Main API can
8015 create and manipulate progress objects, whereas client code
8016 can only use the IProgress object to monitor a task's
8017 progress and, if <link to="#cancelable" /> is @c true,
8018 cancel the task by calling <link to="#cancel" />.
8019
8020 A task represented by IProgress consists of either one or
8021 several sub-operations that run sequentially, one by one (see
8022 <link to="#operation" /> and <link to="#operationCount" />).
8023 Every operation is identified by a number (starting from 0)
8024 and has a separate description.
8025
8026 You can find the individual percentage of completion of the current
8027 operation in <link to="#operationPercent" /> and the
8028 percentage of completion of the task as a whole
8029 in <link to="#percent" />.
8030
8031 Similarly, you can wait for the completion of a particular
8032 operation via <link to="#waitForOperationCompletion" /> or
8033 for the completion of the whole task via
8034 <link to="#waitForCompletion" />.
8035 </desc>
8036
8037 <attribute name="id" type="wstring" readonly="yes">
8038 <desc>ID of the task.</desc>
8039 </attribute>
8040
8041 <attribute name="description" type="wstring" readonly="yes">
8042 <desc>Description of the task.</desc>
8043 </attribute>
8044
8045 <attribute name="initiator" type="$unknown" readonly="yes">
8046 <desc>Initiator of the task.</desc>
8047 </attribute>
8048
8049 <attribute name="cancelable" type="boolean" readonly="yes">
8050 <desc>Whether the task can be interrupted.</desc>
8051 </attribute>
8052
8053 <attribute name="percent" type="unsigned long" readonly="yes">
8054 <desc>
8055 Current progress value of the task as a whole, in percent.
8056 This value depends on how many operations are already complete.
8057 Returns 100 if <link to="#completed" /> is @c true.
8058 </desc>
8059 </attribute>
8060
8061 <attribute name="timeRemaining" type="long" readonly="yes">
8062 <desc>
8063 Estimated remaining time until the task completes, in
8064 seconds. Returns 0 once the task has completed; returns -1
8065 if the remaining time cannot be computed, in particular if
8066 the current progress is 0.
8067
8068 Even if a value is returned, the estimate will be unreliable
8069 for low progress values. It will become more reliable as the
8070 task progresses; it is not recommended to display an ETA
8071 before at least 20% of a task have completed.
8072 </desc>
8073 </attribute>
8074
8075 <attribute name="completed" type="boolean" readonly="yes">
8076 <desc>Whether the task has been completed.</desc>
8077 </attribute>
8078
8079 <attribute name="canceled" type="boolean" readonly="yes">
8080 <desc>Whether the task has been canceled.</desc>
8081 </attribute>
8082
8083 <attribute name="resultCode" type="long" readonly="yes">
8084 <desc>
8085 Result code of the progress task.
8086 Valid only if <link to="#completed"/> is @c true.
8087 </desc>
8088 </attribute>
8089
8090 <attribute name="errorInfo" type="IVirtualBoxErrorInfo" readonly="yes">
8091 <desc>
8092 Extended information about the unsuccessful result of the
8093 progress operation. May be @c null if no extended information
8094 is available.
8095 Valid only if <link to="#completed"/> is @c true and
8096 <link to="#resultCode"/> indicates a failure.
8097 </desc>
8098 </attribute>
8099
8100 <attribute name="operationCount" type="unsigned long" readonly="yes">
8101 <desc>
8102 Number of sub-operations this task is divided into.
8103 Every task consists of at least one suboperation.
8104 </desc>
8105 </attribute>
8106
8107 <attribute name="operation" type="unsigned long" readonly="yes">
8108 <desc>Number of the sub-operation being currently executed.</desc>
8109 </attribute>
8110
8111 <attribute name="operationDescription" type="wstring" readonly="yes">
8112 <desc>
8113 Description of the sub-operation being currently executed.
8114 </desc>
8115 </attribute>
8116
8117 <attribute name="operationPercent" type="unsigned long" readonly="yes">
8118 <desc>Progress value of the current sub-operation only, in percent.</desc>
8119 </attribute>
8120
8121 <method name="waitForCompletion">
8122 <desc>
8123 Waits until the task is done (including all sub-operations)
8124 with a given timeout in milliseconds; specify -1 for an indefinite wait.
8125
8126 <result name="VBOX_E_IPRT_ERROR">
8127 Failed to wait for task completion.
8128 </result>
8129 </desc>
8130
8131 <param name="timeout" type="long" dir="in">
8132 <desc>
8133 Maximum time in milliseconds to wait or -1 to wait indefinitely.
8134 </desc>
8135 </param>
8136 </method>
8137
8138 <method name="waitForOperationCompletion">
8139 <desc>
8140 Waits until the given operation is done with a given timeout in
8141 milliseconds; specify -1 for an indefinite wait.
8142
8143 <result name="VBOX_E_IPRT_ERROR">
8144 Failed to wait for operation completion.
8145 </result>
8146
8147 </desc>
8148 <param name="operation" type="unsigned long" dir="in">
8149 <desc>
8150 Number of the operation to wait for.
8151 Must be less than <link to="#operationCount"/>.
8152 </desc>
8153 </param>
8154 <param name="timeout" type="long" dir="in">
8155 <desc>
8156 Maximum time in milliseconds to wait or -1 to wait indefinitely.
8157 </desc>
8158 </param>
8159 </method>
8160
8161 <method name="cancel">
8162 <desc>
8163 Cancels the task.
8164 <note>
8165 If <link to="#cancelable"/> is @c false, then this method will fail.
8166 </note>
8167
8168 <result name="VBOX_E_INVALID_OBJECT_STATE">
8169 Operation cannot be canceled.
8170 </result>
8171
8172 </desc>
8173 </method>
8174
8175 </interface>
8176
8177
8178 <!--
8179 // ISnapshot
8180 /////////////////////////////////////////////////////////////////////////
8181 -->
8182
8183 <interface
8184 name="ISnapshot" extends="$unknown"
8185 uuid="1a2d0551-58a4-4107-857e-ef414fc42ffc"
8186 wsmap="managed"
8187 >
8188 <desc>
8189 The ISnapshot interface represents a snapshot of the virtual
8190 machine.
8191
8192 The <i>snapshot</i> stores all the information about a virtual
8193 machine necessary to bring it to exactly the same state as it was at
8194 the time of taking the snapshot. The snapshot includes:
8195
8196 <ul>
8197 <li>all settings of the virtual machine (i.e. its hardware
8198 configuration: RAM size, attached hard disks, etc.)
8199 </li>
8200 <li>the execution state of the virtual machine (memory contents,
8201 CPU state, etc.).
8202 </li>
8203 </ul>
8204
8205 Snapshots can be <i>offline</i> (taken when the VM is powered off)
8206 or <i>online</i> (taken when the VM is running). The execution
8207 state of the offline snapshot is called a <i>zero execution state</i>
8208 (it doesn't actually contain any information about memory contents
8209 or the CPU state, assuming that all hardware is just powered off).
8210
8211 <h3>Snapshot branches</h3>
8212
8213 Snapshots can be chained. Chained snapshots form a branch where
8214 every next snapshot is based on the previous one. This chaining is
8215 mostly related to hard disk branching (see <link to="IHardDisk"/>
8216 description). This means that every time a new snapshot is created,
8217 a new differencing hard disk is implicitly created for all normal
8218 hard disks attached to the given virtual machine. This allows to
8219 fully restore hard disk contents when the machine is later reverted
8220 to a particular snapshot.
8221
8222 In the current implementation, multiple snapshot branches within one
8223 virtual machine are not allowed. Every machine has a single branch,
8224 and <link to="IConsole::takeSnapshot"/> operation adds a new
8225 snapshot to the top of that branch.
8226
8227 Existing snapshots can be discarded using
8228 <link to="IConsole::discardSnapshot"/>.
8229
8230 <h3>Current snapshot</h3>
8231
8232 Every virtual machine has a current snapshot, identified by
8233 <link to="IMachine::currentSnapshot"/>. This snapshot is used as
8234 a base for the <i>current machine state</i> (see below), to the effect
8235 that all normal hard disks of the machine and its execution
8236 state are based on this snapshot.
8237
8238 In the current implementation, the current snapshot is always the
8239 last taken snapshot (i.e. the head snapshot on the branch) and it
8240 cannot be changed.
8241
8242 The current snapshot is @c null if the machine doesn't have
8243 snapshots at all; in this case the current machine state is just
8244 current settings of this machine plus its current execution state.
8245
8246 <h3>Current machine state</h3>
8247
8248 The current machine state is what represented by IMachine instances got
8249 directly from IVirtualBox
8250 using <link
8251 to="IVirtualBox::getMachine">getMachine()</link>, <link
8252 to="IVirtualBox::findMachine">findMachine()</link>, etc. (as opposed
8253 to instances returned by <link to="ISnapshot::machine"/>). This state
8254 is always used when the machine is <link to="IConsole::powerUp"> powered
8255 on</link>.
8256
8257 The current machine state also includes the current execution state.
8258 If the machine is being currently executed
8259 (<link to="IMachine::state"/> is <link to="MachineState_Running"/>
8260 and above), its execution state is just what's happening now.
8261 If it is powered off (<link to="MachineState_PoweredOff"/> or
8262 <link to="MachineState_Aborted"/>), it has a zero execution state.
8263 If the machine is saved (<link to="MachineState_Saved"/>), its
8264 execution state is what saved in the execution state file
8265 (<link to="IMachine::stateFilePath"/>).
8266
8267 If the machine is in the saved state, then, next time it is powered
8268 on, its execution state will be fully restored from the saved state
8269 file and the execution will continue from the point where the state
8270 was saved.
8271
8272 Similarly to snapshots, the current machine state can be discarded
8273 using <link to="IConsole::discardCurrentState"/>.
8274
8275 <h3>Taking and discarding snapshots</h3>
8276
8277 The table below briefly explains the meaning of every snapshot
8278 operation:
8279
8280 <table>
8281 <tr><th>Operation</th><th>Meaning</th><th>Remarks</th></tr>
8282
8283 <tr><td><link to="IConsole::takeSnapshot"/></td>
8284
8285 <td>Save the current state of the virtual machine, including all
8286 settings, contents of normal hard disks and the current modifications
8287 to immutable hard disks (for online snapshots)</td>
8288
8289 <td>The current state is not changed (the machine will continue
8290 execution if it is being executed when the snapshot is
8291 taken)</td></tr>
8292
8293 <tr><td><link to="IConsole::discardSnapshot"/></td>
8294
8295 <td>Forget the state of the virtual machine stored in the snapshot:
8296 dismiss all saved settings and delete the saved execution state (for
8297 online snapshots)</td>
8298
8299 <td>Other snapshots (including child snapshots, if any) and the
8300 current state are not directly affected</td></tr>
8301
8302 <tr><td><link to="IConsole::discardCurrentState"/></td>
8303
8304 <td>Restore the current state of the virtual machine from the state
8305 stored in the current snapshot, including all settings and hard disk
8306 contents</td>
8307
8308 <td>The current state of the machine existed prior to this operation
8309 is lost</td></tr>
8310
8311 <tr><td><link to="IConsole::discardCurrentSnapshotAndState"/></td>
8312
8313 <td>Completely revert the virtual machine to the state it was in
8314 before the current snapshot has been taken</td>
8315
8316 <td>The current state, as well as the current snapshot, are
8317 lost</td></tr>
8318
8319 </table>
8320
8321 </desc>
8322
8323 <attribute name="id" type="wstring" readonly="yes">
8324 <desc>UUID of the snapshot.</desc>
8325 </attribute>
8326
8327 <attribute name="name" type="wstring">
8328 <desc>Short name of the snapshot.</desc>
8329 </attribute>
8330
8331 <attribute name="description" type="wstring">
8332 <desc>Optional description of the snapshot.</desc>
8333 </attribute>
8334
8335 <attribute name="timeStamp" type="long long" readonly="yes">
8336 <desc>
8337 Time stamp of the snapshot, in milliseconds since 1970-01-01 UTC.
8338 </desc>
8339 </attribute>
8340
8341 <attribute name="online" type="boolean" readonly="yes">
8342 <desc>
8343 @c true if this snapshot is an online snapshot and @c false otherwise.
8344
8345 <note>
8346 When this attribute is @c true, the
8347 <link to="IMachine::stateFilePath"/> attribute of the
8348 <link to="#machine"/> object associated with this snapshot
8349 will point to the saved state file. Otherwise, it will be
8350 an empty string.
8351 </note>
8352 </desc>
8353 </attribute>
8354
8355 <attribute name="machine" type="IMachine" readonly="yes">
8356 <desc>
8357 Virtual machine this snapshot is taken on. This object
8358 stores all settings the machine had when taking this snapshot.
8359 <note>
8360 The returned machine object is immutable, i.e. no
8361 any settings can be changed.
8362 </note>
8363 </desc>
8364 </attribute>
8365
8366 <attribute name="parent" type="ISnapshot" readonly="yes">
8367 <desc>
8368 Parent snapshot (a snapshot this one is based on).
8369 <note>
8370 It's not an error to read this attribute on a snapshot
8371 that doesn't have a parent -- a @c null object will be
8372 returned to indicate this.
8373 </note>
8374 </desc>
8375 </attribute>
8376
8377 <attribute name="children" type="ISnapshot" readonly="yes" safearray="yes">
8378 <desc>
8379 Child snapshots (all snapshots having this one as a parent).
8380 <note>
8381 In the current implementation, there can be only one
8382 child snapshot, or no children at all, meaning this is the
8383 last (head) snapshot.
8384 </note>
8385 </desc>
8386 </attribute>
8387
8388 </interface>
8389
8390
8391 <!--
8392 // IMedia
8393 /////////////////////////////////////////////////////////////////////////
8394 -->
8395
8396 <enum
8397 name="MediaState"
8398 uuid="8b86e03c-2f1c-412a-8fbd-326f62701200"
8399 >
8400 <desc>
8401 Virtual media state.
8402 <see>IMedia</see>
8403 </desc>
8404
8405 <const name="NotCreated" value="0">
8406 <desc>
8407 Associated media storage does not exist (either was not created yet or
8408 was deleted).
8409 </desc>
8410 </const>
8411 <const name="Created" value="1">
8412 <desc>
8413 Associated storage exists and accessible.
8414 </desc>
8415 </const>
8416 <const name="LockedRead" value="2">
8417 <desc>
8418 Media is locked for reading, no data modification is possible.
8419 </desc>
8420 </const>
8421 <const name="LockedWrite" value="3">
8422 <desc>
8423 Media is locked for writing, no concurrent data reading or modification
8424 is possible.
8425 </desc>
8426 </const>
8427 <const name="Inaccessible" value="4">
8428 <desc>
8429 Associated media storage is not accessible.
8430 </desc>
8431 </const>
8432 <const name="Creating" value="5">
8433 <desc>
8434 Associated media storage is being created.
8435 </desc>
8436 </const>
8437 <const name="Deleting" value="6">
8438 <desc>
8439 Associated media storage is being deleted.
8440 </desc>
8441 </const>
8442 </enum>
8443
8444 <interface
8445 name="IMedium" extends="$unknown"
8446 uuid="f585787c-7728-40f6-853a-13705426e936"
8447 wsmap="managed"
8448 >
8449 <desc>
8450 The IMedium interface is a common interface for all objects representing
8451 virtual media such as hard disks, CD/DVD images and floppy images.
8452
8453 Each medium is associated with a storage unit (such as a file on the host
8454 computer or a network resource) that holds actual data. The location of
8455 the storage unit is represented by the #location attribute. The value of
8456 this attribute is media type dependent.
8457
8458 The exact media type may be determined by querying the appropriate
8459 interface such as:
8460 <ul>
8461 <li><link to="IHardDisk" /> (virtual hard disks)</li>
8462 <li><link to="IDVDImage" /> (standard CD/DVD ISO image files)</li>
8463 <li><link to="IFloppyImage" /> (raw floppy image files)</li>
8464 </ul>
8465
8466 Existing media are opened using the following methods, depending on the
8467 media type:
8468 <ul>
8469 <li><link to="IVirtualBox::openHardDisk"/></li>
8470 <li><link to="IVirtualBox::openDVDImage"/></li>
8471 <li><link to="IVirtualBox::openFloppyImage"/></li>
8472 </ul>
8473
8474 New hard disk media are created using the
8475 <link to="IVirtualBox::createHardDisk"/> method. CD/DVD and floppy
8476 images are created outside VirtualBox, usually by storing a copy
8477 of the real medium of the corresponding type in a regular file.
8478
8479 <h3>Known Media</h3>
8480
8481 When an existing medium gets opened for the first time, it gets
8482 automatically remembered by the given VirtualBox installation or, in other
8483 words, becomes a <i>known medium</i>. Known media are stored in the media
8484 registry transparently maintained by VirtualBox and stored in settings
8485 files so that this registry is preserved when VirtualBox is not running.
8486
8487 Newly created virtual hard disks get remembered only when the associated
8488 storage unit is actually created (see IHardDisk for more details).
8489
8490 All known media can be enumerated using
8491 <link to="IVirtualBox::hardDisks"/>,
8492 <link to="IVirtualBox::DVDImages"/> and
8493 <link to="IVirtualBox::floppyImages"/> attributes. Individual media can be
8494 quickly found by UUID using <link to="IVirtualBox::getHardDisk"/>
8495 and similar methods or by location using
8496 <link to="IVirtualBox::findHardDisk"/> and similar methods.
8497
8498 Only known media can be attached to virtual machines.
8499
8500 Removing known media from the media registry is performed when the given
8501 medium is closed using the <link to="#close"/> method or when its
8502 associated storage unit is deleted (only for hard disks).
8503
8504 <h3>Accessibility Checks</h3>
8505
8506 The given medium (with the created storage unit) is considered to be
8507 <i>accessible</i> when its storage unit can be read.
8508 Accessible media are indicated by the <link to="MediaState_Created"/>
8509 value of the <link to="#state"/> attribute. When the storage unit cannot
8510 be read (for example, because it is located on a disconnected network
8511 resource, or was accidentally deleted outside VirtualBox), the medium is
8512 considered to be <i>inaccessible</i> which is indicated by the
8513 <link to="MediaState_Inaccessible"/> state. The details about the reason
8514 of being inaccessible can be obtained using the
8515 <link to="#lastAccessError"/> attribute.
8516
8517 A new accessibility check is performed each time the <link to="#state"/>
8518 attribute is read. Please note that this check may take long time (several
8519 seconds or even minutes, depending on the storage unit location and
8520 format), and will block the calling thread until finished. For this
8521 reason, it is recommended to never read this attribute on the main UI
8522 thread to avoid making the UI unresponsive.
8523
8524 Note that when VirtualBox starts up (e.g. the VirtualBox object gets
8525 created for the first time), all known media are in the
8526 <link to="MediaState_Inaccessible"/> state but the value of the <link
8527 to="#lastAccessError"/> attribute is an empty string because no actual
8528 accessibility check is made on startup. This is done to make the
8529 VirtualBox object ready for serving requests as
8530 fast as possible and let the end-user application decide if it needs to
8531 check media accessibility right away or not.
8532 </desc>
8533
8534 <attribute name="id" type="wstring" readonly="yes">
8535 <desc>
8536 UUID of the medium. For a newly created medium, this value is a randomly
8537 generated UUID.
8538
8539 <note>
8540 For media in one of MediaState_NotCreated, MediaState_Creating or
8541 MediaState_Deleting states, the value of this property is undefined
8542 and will most likely be an empty UUID.
8543 </note>
8544 </desc>
8545 </attribute>
8546
8547 <attribute name="description" type="wstring">
8548 <desc>
8549 Optional description of the medium. For newly created media, the value
8550 of this attribute value is an empty string.
8551
8552 Media types that don't support this attribute will return E_NOTIMPL in
8553 attempt to get or set this attribute's value.
8554
8555 <note>
8556 For some storage types, reading this attribute may return an outdated
8557 (last known) value when <link to="#state"/> is <link
8558 to="MediaState_Inaccessible"/> or <link
8559 to="MediaState_LockedWrite"/> because the value of this attribute is
8560 stored within the storage unit itself. Also note that changing the
8561 attribute value is not possible in such case, as well as when the
8562 medium is the <link to="MediaState_LockedRead"/> state.
8563 </note>
8564 </desc>
8565 </attribute>
8566
8567 <attribute name="state" type="MediaState" readonly="yes">
8568 <desc>
8569 Current media state. Inspect <link to="MediaState"/> values for details.
8570
8571 Reading this attribute may take a long time because an accessibility
8572 check of the storage unit is performed each time the attribute is read.
8573 This check may cause a significant delay if the storage unit of the
8574 given medium is, for example, a file located on a network share which is
8575 not currently accessible due to connectivity problems -- the call will
8576 not return until a timeout interval defined by the host OS for this
8577 operation expires.
8578
8579 If the last known state of the medium is <link to="MediaState_Created"/>
8580 and the accessibility check fails then the state would be set to
8581 <link to="MediaState_Inaccessible"/> and <link to="#lastAccessError"/>
8582 may be used to get more details about the failure. If the state of the
8583 medium is <link to="MediaState_LockedRead"/> or
8584 <link to="MediaState_LockedWrite"/> then it remains the same, and a
8585 non-empty value of <link to="#lastAccessError"/> will indicate a failed
8586 accessibility check in this case.
8587
8588 Note that not all media states are applicable to all media types.
8589 For example, states <link to="MediaState_NotCreated"/>,
8590 <link to="MediaState_LockedWrite"/>, <link to="MediaState_Creating"/>,
8591 <link to="MediaState_Deleting"/> are meaningless for IDVDImage and
8592 IFloppyImage media.
8593 </desc>
8594 </attribute>
8595
8596 <attribute name="location" type="wstring">
8597 <desc>
8598 Location of the storage unit holding media data.
8599
8600 The format of the location string is media type specific. For media
8601 types using regular files in a host's file system, the location
8602 string is the full file name.
8603
8604 Some media types may support changing the storage unit location by
8605 simply changing the value of this property. If this operation is not
8606 supported, the implementation will return E_NOTIMPL in attempt to set
8607 this attribute's value.
8608
8609 When setting a value of the location attribute which is a regular file
8610 in the host's file system, the given file name may be either relative to
8611 the <link to="IVirtualBox::homeFolder">VirtualBox home folder</link> or
8612 absolute. Note that if the given location specification does not contain
8613 the file extension part then a proper default extension will be
8614 automatically appended by the implementation depending on the media type.
8615 </desc>
8616 </attribute>
8617
8618 <attribute name="name" type="wstring" readonly="yes">
8619 <desc>
8620 Name of the storage unit holding media data.
8621
8622 The returned string is a short version of the <link to="#location"/>
8623 attribute that is suitable for representing the medium in situations
8624 where the full location specification is too long (such as lists
8625 and comboboxes in GUI frontends). This string is also used by frontends
8626 to sort the media list alphabetically when needed.
8627
8628 For example, for locations that are regular files in the host's file
8629 system, the value of this attribute is just the file name (+ extension),
8630 without the path specification.
8631
8632 Note that as opposed to the <link to="#location"/> attribute, the name
8633 attribute will not necessary be unique for a list of media of the
8634 given type and format.
8635 </desc>
8636 </attribute>
8637
8638 <attribute name="size" type="unsigned long long" readonly="yes">
8639 <desc>
8640 Physical size of the storage unit used to hold media data (in bytes).
8641
8642 <note>
8643 For media whose <link to="#state"/> is <link
8644 to="MediaState_Inaccessible"/>, the value of this property is the
8645 last known size. For <link to="MediaState_NotCreated"/> media,
8646 the returned value is zero.
8647 </note>
8648 </desc>
8649 </attribute>
8650
8651 <attribute name="lastAccessError" type="wstring" readonly="yes">
8652 <desc>
8653 Text message that represents the result of the last accessibility
8654 check.
8655
8656 Accessibility checks are performed each time the <link to="#state"/>
8657 attribute is read. An empty string is returned if the last
8658 accessibility check was successful. A non-empty string indicates a
8659 failure and should normally describe a reason of the failure (for
8660 example, a file read error).
8661 </desc>
8662 </attribute>
8663
8664 <attribute name="machineIds" type="wstring" safearray="yes" readonly="yes">
8665 <desc>
8666 Array of UUIDs of all machines this medium is attached to.
8667
8668 A @c null array is returned if this medium is not attached to any
8669 machine or to any machine's snapshot.
8670
8671 <note>
8672 The returned array will include a machine even if this medium is not
8673 attached to that machine in the current state but attached to it in
8674 one of the machine's snapshots. See <link to="#getSnapshotIds"/> for
8675 details.
8676 </note>
8677 </desc>
8678 </attribute>
8679
8680 <method name="getSnapshotIds">
8681 <desc>
8682 Returns an array of UUIDs of all snapshots of the given machine where
8683 this medium is attached to.
8684
8685 If the medium is attached to the machine in the current state, then the
8686 first element in the array will always be the ID of the queried machine
8687 (i.e. the value equal to the @c machineId argument), followed by
8688 snapshot IDs (if any).
8689
8690 If the medium is not attached to the machine in the current state, then
8691 the array will contain only snapshot IDs.
8692
8693 The returned array may be @c null if this medium is not attached
8694 to the given machine at all, neither in the current state nor in one of
8695 the snapshots.
8696 </desc>
8697 <param name="machineId" type="wstring" dir="in">
8698 <desc>
8699 UUID of the machine to query.
8700 </desc>
8701 </param>
8702 <param name="snapshotIds" type="wstring" safearray="yes" dir="return">
8703 <desc>
8704 Array of snapshot UUIDs of the given machine using this medium.
8705 </desc>
8706 </param>
8707 </method>
8708
8709 <method name="lockRead">
8710 <desc>
8711 Locks this medium for reading.
8712
8713 The read lock is shared: many clients can simultaneously lock the
8714 same media for reading unless it is already locked for writing (see
8715 <link to="#lockWrite"/>) in which case an error is returned.
8716
8717 When the medium is locked for reading, it cannot be modified
8718 from within VirtualBox. This means that any method that changes
8719 the properties of this medium or contents of the storage unit
8720 will return an error (unless explicitly stated otherwise) and
8721 that an attempt to start a virtual machine that wants to modify
8722 the medium will also fail.
8723
8724 When the virtual machine is started up, it locks for reading all
8725 media it uses in read-only mode. If some media cannot be locked
8726 for reading, the startup procedure will fail.
8727
8728 The medium locked for reading must be unlocked using the <link
8729 to="#unlockRead"/> method. Calls to <link to="#lockRead"/>
8730 can be nested and must be followed by the same number of paired
8731 <link to="#unlockRead"/> calls.
8732
8733 This method sets the media state to <link
8734 to="MediaState_LockedRead" /> on success. The state prior to
8735 this call must be <link to="MediaState_Created" />,
8736 <link to="MediaState_Inaccessible" /> or
8737 <link to="MediaState_LockedRead" />.
8738 As you can see, inaccessible media can be locked too. This is
8739 not an error; this method performs a logical lock that prevents
8740 modifications of this media through the VirtualBox API, not a
8741 physical lock of the underlying storage unit.
8742
8743 This method returns the current state of the medium
8744 <b>before</b> the operation.
8745
8746 <result name="VBOX_E_INVALID_OBJECT_STATE">
8747 Invalid media state (e.g. not created, locked, inaccessible,
8748 creating, deleting).
8749 </result>
8750
8751 </desc>
8752 <param name="state" type="MediaState" dir="return">
8753 <desc>
8754 State of the medium after the operation.
8755 </desc>
8756 </param>
8757 </method>
8758
8759 <method name="unlockRead">
8760 <desc>
8761 Cancels the read lock previously set by <link to="#lockRead"/>.
8762
8763 For both, success and failure, this method returns the current state
8764 of the medium <b>after</b> the operation.
8765
8766 See <link to="#lockRead"/> for more details.
8767
8768 <result name="VBOX_E_INVALID_OBJECT_STATE">
8769 Medium not locked for reading.
8770 </result>
8771
8772 </desc>
8773 <param name="state" type="MediaState" dir="return">
8774 <desc>
8775 State of the medium after the operation.
8776 </desc>
8777 </param>
8778 </method>
8779
8780 <method name="lockWrite">
8781 <desc>
8782 Locks this medium for writing.
8783
8784 The write lock, as opposed to <link to="#lockRead"/>, is
8785 exclusive: there may be only one client holding a write lock
8786 and there may be no read locks while the write lock is held.
8787
8788 When the medium is locked for writing, it cannot be modified
8789 from within VirtualBox and it is not guaranteed that the values
8790 of its properties are up-to-date. Any method that changes the
8791 properties of this medium or contents of the storage unit will
8792 return an error (unless explicitly stated otherwise) and an
8793 attempt to start a virtual machine wanting to modify or to
8794 read the medium will fail.
8795
8796 When the virtual machine is started up, it locks for writing all
8797 media it uses to write data to. If any medium could not be locked
8798 for writing, the startup procedure will fail.
8799
8800 The medium locked for writing must be unlocked using the <link
8801 to="#unlockWrite"/> method. Calls to <link to="#lockWrite"/>
8802 can <b>not</b> be nested and must be followed by a<link
8803 to="#unlockWrite"/> call before the next lockWrite call.
8804
8805 This method sets the media state to <link to="MediaState_LockedWrite" />
8806 on success. The state prior to this call must be <link to="MediaState_Created"/>
8807 or <link to="MediaState_Inaccessible"/>. As you can see, inaccessible
8808 media can be locked too. This is not an error; this method
8809 performs a logical lock preventing modifications of this
8810 media through the VirtualBox API, not a physical lock of the
8811 underlying storage unit.
8812
8813 For both, success and failure, this method returns the current
8814 state of the medium <b>before</b> the operation.
8815
8816 <result name="VBOX_E_INVALID_OBJECT_STATE">
8817 Invalid media state (e.g. not created, locked, inaccessible,
8818 creating, deleting).
8819 </result>
8820
8821 </desc>
8822 <param name="state" type="MediaState" dir="return">
8823 <desc>
8824 State of the medium after the operation.
8825 </desc>
8826 </param>
8827 </method>
8828
8829 <method name="unlockWrite">
8830 <desc>
8831 Cancels the write lock previously set by <link to="#lockWrite"/>.
8832
8833 For both, success and failure, this method returns the current
8834 state of the medium <b>after</b> the operation.
8835
8836 See <link to="#lockWrite"/> for more details.
8837
8838 <result name="VBOX_E_INVALID_OBJECT_STATE">
8839 Medium not locked for writing.
8840 </result>
8841
8842 </desc>
8843 <param name="state" type="MediaState" dir="return">
8844 <desc>
8845 State of the medium after the operation.
8846 </desc>
8847 </param>
8848 </method>
8849
8850 <method name="close">
8851 <desc>
8852 Closes this medium.
8853
8854 The hard disk must not be attached to any known virtual machine
8855 and must not have any known child hard disks, otherwise the
8856 operation will fail.
8857
8858 When the hard disk is successfully closed, it gets removed from
8859 the list of remembered hard disks, but its storage unit is not
8860 deleted. In particular, this means that this hard disk can be
8861 later opened again using the <link
8862 to="IVirtualBox::openHardDisk"/> call.
8863
8864 Note that after this method successfully returns, the given hard
8865 disk object becomes uninitialized. This means that any attempt
8866 to call any of its methods or attributes will fail with the
8867 <tt>"Object not ready" (E_ACCESSDENIED)</tt> error.
8868
8869 <result name="VBOX_E_INVALID_OBJECT_STATE">
8870 Invalid media state (other than not created, created or
8871 inaccessible).
8872 </result>
8873 <result name="VBOX_E_OBJECT_IN_USE">
8874 Medium attached to virtual machine.
8875 </result>
8876 <result name="VBOX_E_FILE_ERROR">
8877 Settings file not accessible.
8878 </result>
8879 <result name="VBOX_E_XML_ERROR">
8880 Could not parse the settings file.
8881 </result>
8882
8883 </desc>
8884 </method>
8885
8886 </interface>
8887
8888
8889 <!--
8890 // IHardDisk
8891 /////////////////////////////////////////////////////////////////////////
8892 -->
8893
8894 <enum
8895 name="HardDiskType"
8896 uuid="a348fafd-a64e-4643-ba65-eb3896bd7e0a"
8897 >
8898 <desc>
8899 Virtual hard disk type.
8900 <see>IHardDisk</see>
8901 </desc>
8902
8903 <const name="Normal" value="0">
8904 <desc>
8905 Normal hard disk (attached directly or indirectly, preserved
8906 when taking snapshots).
8907 </desc>
8908 </const>
8909 <const name="Immutable" value="1">
8910 <desc>
8911 Immutable hard disk (attached indirectly, changes are wiped out
8912 after powering off the virtual machine).
8913 </desc>
8914 </const>
8915 <const name="Writethrough" value="2">
8916 <desc>
8917 Write through hard disk (attached directly, ignored when
8918 taking snapshots).
8919 </desc>
8920 </const>
8921 </enum>
8922
8923 <enum
8924 name="HardDiskVariant"
8925 uuid="eb7fc6b3-ae23-4c5d-a1f6-e3522dd1efb0"
8926 >
8927 <desc>
8928 Virtual hard disk image variant. More than one flag may be set.
8929 <see>IHardDisk</see>
8930 </desc>
8931
8932 <const name="Standard" value="0">
8933 <desc>
8934 No particular variant requested, results in using the backend default.
8935 </desc>
8936 </const>
8937 <const name="VmdkSplit2G" value="0x01">
8938 <desc>
8939 VMDK image split in chunks of less than 2GByte.
8940 </desc>
8941 </const>
8942 <const name="VmdkStreamOptimized" value="0x04">
8943 <desc>
8944 VMDK streamOptimized image. Special import/export format which is
8945 read-only/append-only.
8946 </desc>
8947 </const>
8948 <const name="VmdkESX" value="0x08">
8949 <desc>
8950 VMDK format variant used on ESX products.
8951 </desc>
8952 </const>
8953 <const name="Fixed" value="0x10000">
8954 <desc>
8955 Fixed image. Only allowed for base images.
8956 </desc>
8957 </const>
8958 <const name="Diff" value="0x20000">
8959 <desc>
8960 Fixed image. Only allowed for base images.
8961 </desc>
8962 </const>
8963 </enum>
8964
8965 <interface
8966 name="IHardDiskAttachment" extends="$unknown"
8967 uuid="b1dd04bb-93c0-4ad3-a9cf-82316e595836"
8968 wsmap="struct"
8969 >
8970 <desc>
8971 The IHardDiskAttachment interface represents a hard disk attachment of a
8972 virtual machine.
8973
8974 Every hard disk attachment specifies a slot of the virtual hard disk
8975 controller and a virtual hard disk attached to this slot.
8976
8977 The array of hard disk attachments is returned by
8978 <link to="IMachine::hardDiskAttachments"/>.
8979 </desc>
8980
8981 <attribute name="hardDisk" type="IHardDisk" readonly="yes">
8982 <desc>Hard disk object associated with this attachment.</desc>
8983 </attribute>
8984
8985 <attribute name="controller" type="wstring" readonly="yes">
8986 <desc>Interface bus of this attachment.</desc>
8987 </attribute>
8988
8989 <attribute name="port" type="long" readonly="yes">
8990 <desc>Port number of this attachment.</desc>
8991 </attribute>
8992
8993 <attribute name="device" type="long" readonly="yes">
8994 <desc>Device slot number of this attachment.</desc>
8995 </attribute>
8996
8997 </interface>
8998
8999 <interface
9000 name="IHardDisk" extends="IMedium"
9001 uuid="62551115-83b8-4d20-925f-79e9d3c00f96"
9002 wsmap="managed"
9003 >
9004 <desc>
9005 The IHardDisk interface represents a virtual hard disk drive
9006 used by a virtual machine. This is a subclass of <link to="IMedium" />; see remarks there.
9007
9008 <h3>Hard Disk Types</h3>
9009
9010 There are three types of hard disks:
9011 <link to="HardDiskType_Normal">Normal</link>,
9012 <link to="HardDiskType_Immutable">Immutable</link> and
9013 <link to="HardDiskType_Writethrough">Writethrough</link>. The type of the
9014 hard disk defines how the hard disk is attached to a virtual machine and
9015 what happens when a <link to="ISnapshot">snapshot</link> of the virtual
9016 machine with the attached hard disk is taken. The type of the hard disk is
9017 defined by the <link to="#type"/> attribute.
9018
9019 All hard disks can be also divided in two groups: <i>base</i> hard
9020 disks and <i>differencing</i> hard disks. A base hard disk contains all
9021 sectors of the hard disk data in its own storage and therefore can be
9022 used independently. On the contrary, a differencing hard disk is a
9023 "delta" to some other disk and contains only those sectors which differ
9024 from that other disk, which is then called a <i>parent</i>. The differencing
9025 hard disk is said to be <i>linked to</i> that parent.
9026 The parent may be itself a differencing image, thus forming a chain of
9027 linked hard disks. The last element in that chain (sometimes referred to as
9028 the root hard disk) must always be a base. Note that several differencing
9029 hard disks may be linked to the same parent hard disk.
9030
9031 Differencing hard disks can be distinguished from base hard disks by
9032 querying the <link to="#parent"/> attribute: base hard disks do not have
9033 parents they would depend on, so the value of this attribute is always
9034 @c null for them. Using this attribute, it is possible to walk up
9035 the hard disk tree (from the child hard disk to its parent). It is also
9036 possible to walk down the tree using the <link to="#children"/>
9037 attribute.
9038
9039 Note that the type of all differencing hard disks is
9040 <link to="HardDiskType_Normal" />; all other values are
9041 meaningless for them. Base hard disks may be of any type.
9042
9043 <h3>Creating Hard Disks</h3>
9044
9045 New base hard disks are created using
9046 <link to="IVirtualBox::createHardDisk"/>. Existing hard disks are
9047 opened using <link to="IVirtualBox::openHardDisk"/>. Differencing hard
9048 disks are usually implicitly created by VirtualBox when needed but may
9049 also be created explicitly using <link to="#createDiffStorage"/>.
9050
9051 After the hard disk is successfully created (including the storage unit)
9052 or opened, it becomes a known hard disk (remembered in the internal media
9053 registry). Known hard disks can be attached to a virtual machine, accessed
9054 through <link to="IVirtualBox::getHardDisk"/> and
9055 <link to="IVirtualBox::findHardDisk"/> methods or enumerated using the
9056 <link to="IVirtualBox::hardDisks"/> array (only for base hard disks).
9057
9058 The following methods, besides <link to="IMedium::close"/>,
9059 automatically remove the hard disk from the media registry:
9060 <ul>
9061 <li><link to="#deleteStorage"/></li>
9062 <li><link to="#mergeTo"/></li>
9063 </ul>
9064
9065 If the storage unit of the hard disk is a regular file in the host's
9066 file system then the rules stated in the description of the
9067 <link to="IMedium::location"/> attribute apply when setting its value. In
9068 addition, a plain file name without any path may be given, in which case
9069 the <link to="ISystemProperties::defaultHardDiskFolder"> default hard disk
9070 folder</link> will be prepended to it.
9071
9072 <h4>Automatic composition of the file name part</h4>
9073
9074 Another extension to the <link to="IMedium::location"/> attribute is that
9075 there is a possibility to cause VirtualBox to compose a unique value for
9076 the file name part of the location using the UUID of the hard disk. This
9077 applies only to hard disks in <link to="MediaState_NotCreated"/> state,
9078 e.g. before the storage unit is created, and works as follows. You set the
9079 value of the <link to="IMedium::location"/> attribute to a location
9080 specification which only contains the path specification but not the file
9081 name part and ends with either a forward slash or a backslash character.
9082 In response, VirtualBox will generate a new UUID for the hard disk and
9083 compose the file name using the following pattern:
9084 <pre>
9085 &lt;path&gt;/{&lt;uuid&gt;}.&lt;ext&gt;
9086 </pre>
9087 where <tt>&lt;path&gt;</tt> is the supplied path specification,
9088 <tt>&lt;uuid&gt;</tt> is the newly generated UUID and <tt>&lt;ext&gt;</tt>
9089 is the default extension for the storage format of this hard disk. After
9090 that, you may call any of the methods that create a new hard disk storage
9091 unit and they will use the generated UUID and file name.
9092
9093 <h3>Attaching Hard Disks</h3>
9094
9095 Hard disks are attached to virtual machines using the
9096 <link to="IMachine::attachHardDisk"/> method and detached using the
9097 <link to="IMachine::detachHardDisk"/> method. Depending on their
9098 <link to="#type"/>, hard disks are attached either
9099 <i>directly</i> or <i>indirectly</i>.
9100
9101 When a hard disk is being attached directly, it is associated with the
9102 virtual machine and used for hard disk operations when the machine is
9103 running. When a hard disk is being attached indirectly, a new differencing
9104 hard disk linked to it is implicitly created and this differencing hard
9105 disk is associated with the machine and used for hard disk operations.
9106 This also means that if <link to="IMachine::attachHardDisk"/> performs
9107 a direct attachment then the same hard disk will be returned in response
9108 to the subsequent <link to="IMachine::getHardDisk"/> call; however if
9109 an indirect attachment is performed then
9110 <link to="IMachine::getHardDisk"/> will return the implicitly created
9111 differencing hard disk, not the original one passed to <link
9112 to="IMachine::attachHardDisk"/>. The following table shows the
9113 dependency of the attachment type on the hard disk type:
9114
9115 <table>
9116 <tr>
9117 <th>Hard Disk Type</th>
9118 <th>Direct or Indirect?</th>
9119 </tr>
9120 <tr>
9121 <td>Normal (Base)</td>
9122 <td>
9123 Normal base hard disks that do not have children (i.e. differencing
9124 hard disks linked to them) and that are not already attached to
9125 virtual machines in snapshots are attached <b>directly</b>.
9126 Otherwise, they are attached <b>indirectly</b> because having
9127 dependent children or being part of the snapshot makes it impossible
9128 to modify hard disk contents without breaking the integrity of the
9129 dependent party. The <link to="#readOnly"/> attribute allows to
9130 quickly determine the kind of the attachment for the given hard
9131 disk. Note that if a normal base hard disk is to be indirectly
9132 attached to a virtual machine with snapshots then a special
9133 procedure called <i>smart attachment</i> is performed (see below).
9134 </td>
9135 </tr>
9136 <tr>
9137 <td>Normal (Differencing)</td>
9138 <td>
9139 Differencing hard disks are like normal base hard disks: attached
9140 <b>directly</b> if they do not have children and are not attached to
9141 virtual machines in snapshots, and <b>indirectly</b> otherwise. Note
9142 that the smart attachment procedure is never performed for
9143 differencing hard disks.
9144 </td>
9145 </tr>
9146 <tr>
9147 <td>Immutable</td>
9148 <td>
9149 Immutable hard disks are always attached <b>indirectly</b> because
9150 they are designed to be non-writable. If an immutable hard disk is
9151 attached to a virtual machine with snapshots then a special
9152 procedure called smart attachment is performed (see below).
9153 </td>
9154 </tr>
9155 <tr>
9156 <td>Writethrough</td>
9157 <td>
9158 Writethrough hard disks are always attached <b>directly</b>, also as
9159 designed. This also means that writethrough hard disks cannot have
9160 other hard disks linked to them at all.
9161 </td>
9162 </tr>
9163 </table>
9164
9165 Note that the same hard disk, regardless of its type, may be attached to
9166 more than one virtual machine at a time. In this case, the machine that is
9167 started first gains exclusive access to the hard disk and attempts to
9168 start other machines having this hard disk attached will fail until the
9169 first machine is powered down.
9170
9171 Detaching hard disks is performed in a <i>deferred</i> fashion. This means
9172 that the given hard disk remains associated with the given machine after a
9173 successful <link to="IMachine::detachHardDisk"/> call until
9174 <link to="IMachine::saveSettings"/> is called to save all changes to
9175 machine settings to disk. This deferring is necessary to guarantee that
9176 the hard disk configuration may be restored at any time by a call to
9177 <link to="IMachine::discardSettings"/> before the settings
9178 are saved (committed).
9179
9180 Note that if <link to="IMachine::discardSettings"/> is called after
9181 indirectly attaching some hard disks to the machine but before a call to
9182 <link to="IMachine::saveSettings"/> is made, it will implicitly delete
9183 all differencing hard disks implicitly created by
9184 <link to="IMachine::attachHardDisk"/> for these indirect attachments.
9185 Such implicitly created hard disks will also be immediately deleted when
9186 detached explicitly using the <link to="IMachine::detachHardDisk"/>
9187 call if it is made before <link to="IMachine::saveSettings"/>. This
9188 implicit deletion is safe because newly created differencing hard
9189 disks do not contain any user data.
9190
9191 However, keep in mind that detaching differencing hard disks that were
9192 implicitly created by <link to="IMachine::attachHardDisk"/>
9193 before the last <link to="IMachine::saveSettings"/> call will
9194 <b>not</b> implicitly delete them as they may already contain some data
9195 (for example, as a result of virtual machine execution). If these hard
9196 disks are no more necessary, the caller can always delete them explicitly
9197 using <link to="#deleteStorage"/> after they are actually de-associated
9198 from this machine by the <link to="IMachine::saveSettings"/> call.
9199
9200 <h3>Smart Attachment</h3>
9201
9202 When normal base or immutable hard disks are indirectly attached to a
9203 virtual machine then some additional steps are performed to make sure the
9204 virtual machine will have the most recent "view" of the hard disk being
9205 attached. These steps include walking through the machine's snapshots
9206 starting from the current one and going through ancestors up to the first
9207 snapshot. Hard disks attached to the virtual machine in all
9208 of the encountered snapshots are checked whether they are descendants of
9209 the given normal base or immutable hard disk. The first found child (which
9210 is the differencing hard disk) will be used instead of the normal base or
9211 immutable hard disk as a parent for creating a new differencing hard disk
9212 that will be actually attached to the machine. And only if no descendants
9213 are found or if the virtual machine does not have any snapshots then the
9214 normal base or immutable hard disk will be used itself as a parent for
9215 this differencing hard disk.
9216
9217 It is easier to explain what smart attachment does using the
9218 following example:
9219 <pre>
9220BEFORE attaching B.vdi: AFTER attaching B.vdi:
9221
9222Snapshot 1 (B.vdi) Snapshot 1 (B.vdi)
9223 Snapshot 2 (D1->B.vdi) Snapshot 2 (D1->B.vdi)
9224 Snapshot 3 (D2->D1.vdi) Snapshot 3 (D2->D1.vdi)
9225 Snapshot 4 (none) Snapshot 4 (none)
9226 CurState (none) CurState (D3->D2.vdi)
9227
9228 NOT
9229 ...
9230 CurState (D3->B.vdi)
9231 </pre>
9232 The first column is the virtual machine configuration before the base hard
9233 disk <tt>B.vdi</tt> is attached, the second column shows the machine after
9234 this hard disk is attached. Constructs like <tt>D1->B.vdi</tt> and similar
9235 mean that the hard disk that is actually attached to the machine is a
9236 differencing hard disk, <tt>D1.vdi</tt>, which is linked to (based on)
9237 another hard disk, <tt>B.vdi</tt>.
9238
9239 As we can see from the example, the hard disk <tt>B.vdi</tt> was detached
9240 from the machine before taking Snapshot 4. Later, after Snapshot 4 was
9241 taken, the user decides to attach <tt>B.vdi</tt> again. <tt>B.vdi</tt> has
9242 dependent child hard disks (<tt>D1.vdi</tt>, <tt>D2.vdi</tt>), therefore
9243 it cannot be attached directly and needs an indirect attachment (i.e.
9244 implicit creation of a new differencing hard disk). Due to the smart
9245 attachment procedure, the new differencing hard disk
9246 (<tt>D3.vdi</tt>) will be based on <tt>D2.vdi</tt>, not on
9247 <tt>B.vdi</tt> itself, since <tt>D2.vdi</tt> is the most recent view of
9248 <tt>B.vdi</tt> existing for this snapshot branch of the given virtual
9249 machine.
9250
9251 Note that if there is more than one descendant hard disk of the given base
9252 hard disk found in a snapshot, and there is an exact device, channel and
9253 bus match, then this exact match will be used. Otherwise, the youngest
9254 descendant will be picked up.
9255
9256 There is one more important aspect of the smart attachment procedure which
9257 is not related to snapshots at all. Before walking through the snapshots
9258 as described above, the backup copy of the current list of hard disk
9259 attachment is searched for descendants. This backup copy is created when
9260 the hard disk configuration is changed for the first time after the last
9261 <link to="IMachine::saveSettings"/> call and used by
9262 <link to="IMachine::discardSettings"/> to undo the recent hard disk
9263 changes. When such a descendant is found in this backup copy, it will be
9264 simply re-attached back, without creating a new differencing hard disk for
9265 it. This optimization is necessary to make it possible to re-attach the
9266 base or immutable hard disk to a different bus, channel or device slot
9267 without losing the contents of the differencing hard disk actually
9268 attached to the machine in place of it.
9269 </desc>
9270
9271 <attribute name="format" type="wstring" readonly="yes">
9272 <desc>
9273 Storage format of this hard disk.
9274
9275 The value of this attribute is a string that specifies a backend used to
9276 store hard disk data. The storage format is defined when you create a
9277 new hard disk or automatically detected when you open an existing hard
9278 disk medium, and cannot be changed later.
9279
9280 The list of all storage formats supported by this VirtualBox
9281 installation can be obtained using
9282 <link to="ISystemProperties::hardDiskFormats"/>.
9283 </desc>
9284 </attribute>
9285
9286 <attribute name="type" type="HardDiskType">
9287 <desc>
9288 Type (role) of this hard disk.
9289
9290 The following constraints apply when changing the value of this
9291 attribute:
9292 <ul>
9293 <li>If a hard disk is attached to a virtual machine (either in the
9294 current state or in one of the snapshots), its type cannot be
9295 changed.
9296 </li>
9297 <li>As long as the hard disk has children, its type cannot be set
9298 to <link to="HardDiskType_Writethrough"/>.
9299 </li>
9300 <li>The type of all differencing hard disks is
9301 <link to="HardDiskType_Normal"/> and cannot be changed.
9302 </li>
9303 </ul>
9304
9305 The type of a newly created or opened hard disk is set to
9306 <link to="HardDiskType_Normal"/>.
9307 </desc>
9308 </attribute>
9309
9310 <attribute name="parent" type="IHardDisk" readonly="yes">
9311 <desc>
9312 Parent of this hard disk (a hard disk this hard disk is directly based
9313 on).
9314
9315 Only differencing hard disks have parents. For base (non-differencing)
9316 hard disks, @c null is returned.
9317 </desc>
9318 </attribute>
9319
9320 <attribute name="children" type="IHardDisk" safearray="yes" readonly="yes">
9321 <desc>
9322 Children of this hard disk (all differencing hard disks directly based
9323 on this hard disk). A @c null array is returned if this hard disk
9324 does not have any children.
9325 </desc>
9326 </attribute>
9327
9328 <attribute name="root" type="IHardDisk" readonly="yes">
9329 <desc>
9330 Root hard disk of this hard disk.
9331
9332 If this is a differencing hard disk, its root hard disk is the base hard
9333 disk the given hard disk branch starts from. For all other types of hard
9334 disks, this property returns the hard disk object itself (i.e. the same
9335 object this property is read on).
9336 </desc>
9337 </attribute>
9338
9339 <attribute name="readOnly" type="boolean" readonly="yes">
9340 <desc>
9341 Returns @c true if this hard disk is read-only and @c false otherwise.
9342
9343 A hard disk is considered to be read-only when its contents cannot be
9344 modified without breaking the integrity of other parties that depend on
9345 this hard disk such as its child hard disks or snapshots of virtual
9346 machines where this hard disk is attached to these machines. If there
9347 are no children and no such snapshots then there is no dependency and
9348 the hard disk is not read-only.
9349
9350 The value of this attribute can be used to determine the kind of the
9351 attachment that will take place when attaching this hard disk to a
9352 virtual machine. If the value is @c false then the hard disk will
9353 be attached directly. If the value is @c true then the hard disk
9354 will be attached indirectly by creating a new differencing child hard
9355 disk for that. See the interface description for more information.
9356
9357 Note that all <link to="HardDiskType_Immutable">Immutable</link> hard
9358 disks are always read-only while all
9359 <link to="HardDiskType_Writethrough">Writethrough</link> hard disks are
9360 always not.
9361
9362 <note>
9363 The read-only condition represented by this attribute is related to
9364 the hard disk type and usage, not to the current
9365 <link to="IMedium::state">media state</link> and not to the read-only
9366 state of the storage unit.
9367 </note>
9368 </desc>
9369 </attribute>
9370
9371 <attribute name="logicalSize" type="unsigned long long" readonly="yes">
9372 <desc>
9373 Logical size of this hard disk (in megabytes), as reported to the
9374 guest OS running inside the virtual machine this disk is
9375 attached to. The logical size is defined when the hard disk is created
9376 and cannot be changed later.
9377
9378 <note>
9379 Reading this property on a differencing hard disk will return the size
9380 of its <link to="#root"/> hard disk.
9381 </note>
9382 <note>
9383 For hard disks whose state is <link to="#state"/> is <link
9384 to="MediaState_Inaccessible"/>, the value of this property is the
9385 last known logical size. For <link to="MediaState_NotCreated"/> hard
9386 disks, the returned value is zero.
9387 </note>
9388 </desc>
9389 </attribute>
9390
9391 <attribute name="autoReset" type="boolean">
9392 <desc>
9393 Whether this differencing hard disk will be automatically reset each
9394 time a virtual machine it is attached to is powered up.
9395
9396 See <link to="#reset()"/> for more information about resetting
9397 differencing hard disks.
9398
9399 <note>
9400 Reading this property on a base (non-differencing) hard disk will
9401 always @c false. Changing the value of this property in this
9402 case is not supported.
9403 </note>
9404
9405 <result name="VBOX_E_NOT_SUPPORTED">
9406 This is not a differencing hard disk (when changing the attribute
9407 value).
9408 </result>
9409 </desc>
9410 </attribute>
9411
9412 <!-- storage methods -->
9413
9414 <method name="getProperty">
9415 <desc>
9416 Returns the value of the custom hard disk property with the given name.
9417
9418 The list of all properties supported by the given hard disk format can
9419 be obtained with <link to="IHardDiskFormat::describeProperties"/>.
9420
9421 Note that if this method returns an empty string in @a value, the
9422 requested property is supported but currently not assigned any value.
9423
9424 <result name="VBOX_E_OBJECT_NOT_FOUND">
9425 Requested property does not exist (not supported by the format).
9426 </result>
9427 <result name="E_INVALIDARG">@a name is @c null or empty.</result>
9428 </desc>
9429 <param name="name" type="wstring" dir="in">
9430 <desc>Name of the property to get.</desc>
9431 </param>
9432 <param name="value" type="wstring" dir="return">
9433 <desc>Current property value.</desc>
9434 </param>
9435 </method>
9436
9437 <method name="setProperty">
9438 <desc>
9439 Sets the value of the custom hard disk property with the given name.
9440
9441 The list of all properties supported by the given hard disk format can
9442 be obtained with <link to="IHardDiskFormat::describeProperties"/>.
9443
9444 Note that setting the property value to @c null or an empty string is
9445 equivalent to deleting the existing value. A default value (if it is
9446 defined for this property) will be used by the format backend in this
9447 case.
9448
9449 <result name="VBOX_E_OBJECT_NOT_FOUND">
9450 Requested property does not exist (not supported by the format).
9451 </result>
9452 <result name="E_INVALIDARG">@a name is @c null or empty.</result>
9453 </desc>
9454 <param name="name" type="wstring" dir="in">
9455 <desc>Name of the property to set.</desc>
9456 </param>
9457 <param name="value" type="wstring" dir="in">
9458 <desc>Property value to set.</desc>
9459 </param>
9460 </method>
9461
9462 <method name="getProperties">
9463 <desc>
9464 Returns values for a group of properties in one call.
9465
9466 The names of the properties to get are specified using the @a names
9467 argument which is a list of comma-separated property names or
9468 an empty string if all properties are to be returned. Note that currently
9469 the value of this argument is ignored and the method always returns all
9470 existing properties.
9471
9472 The list of all properties supported by the given hard disk format can
9473 be obtained with <link to="IHardDiskFormat::describeProperties"/>.
9474
9475 The method returns two arrays, the array of property names corresponding
9476 to the @a names argument and the current values of these properties.
9477 Both arrays have the same number of elements with each elemend at the
9478 given index in the first array corresponds to an element at the same
9479 index in the second array.
9480
9481 Note that for properties that do not have assigned values,
9482 an empty string is returned at the appropriate index in the
9483 @a returnValues array.
9484
9485 </desc>
9486 <param name="names" type="wstring" dir="in">
9487 <desc>
9488 Names of properties to get.
9489 </desc>
9490 </param>
9491 <param name="returnNames" type="wstring" safearray="yes" dir="out">
9492 <desc>Names of returned properties.</desc>
9493 </param>
9494 <param name="returnValues" type="wstring" safearray="yes" dir="return">
9495 <desc>Values of returned properties.</desc>
9496 </param>
9497 </method>
9498
9499 <method name="setProperties">
9500 <desc>
9501 Sets values for a group of properties in one call.
9502
9503 The names of the properties to set are passed in the @a names
9504 array along with the new values for them in the @a values array. Both
9505 arrays have the same number of elements with each elemend at the given
9506 index in the first array corresponding to an element at the same index
9507 in the second array.
9508
9509 If there is at least one property name in @a names that is not valid,
9510 the method will fail before changing the values of any other properties
9511 from the @a names array.
9512
9513 Using this method over <link to="#setProperty"/> is preferred if you
9514 need to set several properties at once since it will result into less
9515 IPC calls.
9516
9517 The list of all properties supported by the given hard disk format can
9518 be obtained with <link to="IHardDiskFormat::describeProperties"/>.
9519
9520 Note that setting the property value to @c null or an empty string is
9521 equivalent to deleting the existing value. A default value (if it is
9522 defined for this property) will be used by the format backend in this
9523 case.
9524 </desc>
9525 <param name="names" type="wstring" safearray="yes" dir="in">
9526 <desc>Names of properties to set.</desc>
9527 </param>
9528 <param name="values" type="wstring" safearray="yes" dir="in">
9529 <desc>Values of properties to set.</desc>
9530 </param>
9531 </method>
9532
9533 <!-- storage methods -->
9534
9535 <method name="createBaseStorage">
9536 <desc>
9537 Starts creating a hard disk storage unit (fixed/dynamic, according
9538 to the variant flags) in in the background. The previous storage unit
9539 created for this object, if any, must first be deleted using
9540 <link to="#deleteStorage"/>, otherwise the operation will fail.
9541
9542 Before the operation starts, the hard disk is placed in
9543 <link to="MediaState_Creating"/> state. If the create operation
9544 fails, the media will be placed back in <link to="MediaState_NotCreated"/>
9545 state.
9546
9547 After the returned progress object reports that the operation has
9548 successfully completed, the media state will be set to <link
9549 to="MediaState_Created"/>, the hard disk will be remembered by this
9550 VirtualBox installation and may be attached to virtual machines.
9551
9552 <result name="VBOX_E_NOT_SUPPORTED">
9553 The variant of storage creation operation is not supported. See <link
9554 to="IHardDiskFormat::capabilities"/>.
9555 </result>
9556 </desc>
9557 <param name="logicalSize" type="unsigned long long" dir="in">
9558 <desc>Maximum logical size of the hard disk in megabytes.</desc>
9559 </param>
9560 <param name="variant" type="HardDiskVariant" dir="in">
9561 <desc>Exact image variant which should be created.</desc>
9562 </param>
9563 <param name="progress" type="IProgress" dir="return">
9564 <desc>Progress object to track the operation completion.</desc>
9565 </param>
9566 </method>
9567
9568 <method name="deleteStorage">
9569 <desc>
9570 Starts deleting the storage unit of this hard disk.
9571
9572 The hard disk must not be attached to any known virtual machine and must
9573 not have any known child hard disks, otherwise the operation will fail.
9574 It will also fail if there is no storage unit to delete or if deletion
9575 is already in progress, or if the hard disk is being in use (locked for
9576 read or for write) or inaccessible. Therefore, the only valid state for
9577 this operation to succeed is <link to="MediaState_Created"/>.
9578
9579 Before the operation starts, the hard disk is placed to
9580 <link to="MediaState_Deleting"/> state and gets removed from the list
9581 of remembered hard disks (media registry). If the delete operation
9582 fails, the media will be remembered again and placed back to
9583 <link to="MediaState_Created"/> state.
9584
9585 After the returned progress object reports that the operation is
9586 complete, the media state will be set to
9587 <link to="MediaState_NotCreated"/> and you will be able to use one of
9588 the storage creation methods to create it again.
9589
9590 <see>#close()</see>
9591
9592 <result name="VBOX_E_OBJECT_IN_USE">
9593 Hard disk is attached to a virtual machine.
9594 </result>
9595 <result name="VBOX_E_NOT_SUPPORTED">
9596 Storage deletion is not allowed because neither of storage creation
9597 operations are supported. See
9598 <link to="IHardDiskFormat::capabilities"/>.
9599 </result>
9600
9601 <note>
9602 If the deletion operation fails, it is not guaranteed that the storage
9603 unit still exists. You may check the <link to="IMedium::state"/> value
9604 to answer this question.
9605 </note>
9606 </desc>
9607 <param name="progress" type="IProgress" dir="return">
9608 <desc>Progress object to track the operation completion.</desc>
9609 </param>
9610 </method>
9611
9612 <!-- diff methods -->
9613
9614 <method name="createDiffStorage">
9615 <desc>
9616 Starts creating an empty differencing storage unit based on this hard
9617 disk in the format and at the location defined by the @a target
9618 argument.
9619
9620 The target hard disk must be in <link to="MediaState_NotCreated"/>
9621 state (i.e. must not have an existing storage unit). Upon successful
9622 completion, this operation will set the type of the target hard disk to
9623 <link to="HardDiskType_Normal"/> and create a storage unit necessary to
9624 represent the differencing hard disk data in the given format (according
9625 to the storage format of the target object).
9626
9627 After the returned progress object reports that the operation is
9628 successfully complete, the target hard disk gets remembered by this
9629 VirtualBox installation and may be attached to virtual machines.
9630
9631 <note>
9632 The hard disk will be set to <link to="MediaState_LockedRead"/>
9633 state for the duration of this operation.
9634 </note>
9635 <result name="VBOX_E_OBJECT_IN_USE">
9636 Hard disk not in @c NotCreated state.
9637 </result>
9638 </desc>
9639 <param name="target" type="IHardDisk" dir="in">
9640 <desc>Target hard disk.</desc>
9641 </param>
9642 <param name="variant" type="HardDiskVariant" dir="in">
9643 <desc>Exact image variant which should be created.</desc>
9644 </param>
9645 <param name="progress" type="IProgress" dir="return">
9646 <desc>Progress object to track the operation completion.</desc>
9647 </param>
9648 </method>
9649
9650 <method name="mergeTo">
9651 <desc>
9652 Starts merging the contents of this hard disk and all intermediate
9653 differencing hard disks in the chain to the given target hard disk.
9654
9655 The target hard disk must be either a descendant of this hard disk or
9656 its ancestor (otherwise this method will immediately return a failure).
9657 It follows that there are two logical directions of the merge operation:
9658 from ancestor to descendant (<i>forward merge</i>) and from descendant to
9659 ancestor (<i>backward merge</i>). Let us consider the following hard disk
9660 chain:
9661
9662 <pre>Base &lt;- Diff_1 &lt;- Diff_2</pre>
9663
9664 Here, calling this method on the <tt>Base</tt> hard disk object with
9665 <tt>Diff_2</tt> as an argument will be a forward merge; calling it on
9666 <tt>Diff_2</tt> with <tt>Base</tt> as an argument will be a backward
9667 merge. Note that in both cases the contents of the resulting hard disk
9668 will be the same, the only difference is the hard disk object that takes
9669 the result of the merge operation. In case of the forward merge in the
9670 above example, the result will be written to <tt>Diff_2</tt>; in case of
9671 the backward merge, the result will be written to <tt>Base</tt>. In
9672 other words, the result of the operation is always stored in the target
9673 hard disk.
9674
9675 Upon successful operation completion, the storage units of all hard
9676 disks in the chain between this (source) hard disk and the target hard
9677 disk, including the source hard disk itself, will be automatically
9678 deleted and the relevant hard disk objects (including this hard disk)
9679 will become uninitialized. This means that any attempt to call any of
9680 their methods or attributes will fail with the
9681 <tt>"Object not ready" (E_ACCESSDENIED)</tt> error. Applied to the above
9682 example, the forward merge of <tt>Base</tt> to <tt>Diff_2</tt> will
9683 delete and uninitialize both <tt>Base</tt> and <tt>Diff_1</tt> hard
9684 disks. Note that <tt>Diff_2</tt> in this case will become a base hard
9685 disk itself since it will no longer be based on any other hard disk.
9686
9687 Considering the above, all of the following conditions must be met in
9688 order for the merge operation to succeed:
9689 <ul>
9690 <li>
9691 Neither this (source) hard disk nor any intermediate
9692 differencing hard disk in the chain between it and the target
9693 hard disk is attached to any virtual machine.
9694 </li>
9695 <li>
9696 Neither the source hard disk nor the target hard disk is an
9697 <link to="HardDiskType_Immutable"/> hard disk.
9698 </li>
9699 <li>
9700 The part of the hard disk tree from the source hard disk to the
9701 target hard disk is a linear chain, i.e. all hard disks in this
9702 chain have exactly one child which is the next hard disk in this
9703 chain. The only exception from this rule is the target hard disk in
9704 the forward merge operation; it is allowed to have any number of
9705 child hard disks because the merge operation will hot change its
9706 logical contents (as it is seen by the guest OS or by children).
9707 </li>
9708 <li>
9709 None of the involved hard disks are in
9710 <link to="MediaState_LockedRead"/> or
9711 <link to="MediaState_LockedWrite"/> state.
9712 </li>
9713 </ul>
9714
9715 <note>
9716 This (source) hard disk and all intermediates will be placed to <link
9717 to="MediaState_Deleting"/> state and the target hard disk will be
9718 placed to <link to="MediaState_LockedWrite"/> state and for the
9719 duration of this operation.
9720 </note>
9721 </desc>
9722 <param name="targetId" type="wstring" dir="in">
9723 <desc>UUID of the target ancestor or descendant hard disk.</desc>
9724 </param>
9725 <param name="progress" type="IProgress" dir="return">
9726 <desc>Progress object to track the operation completion.</desc>
9727 </param>
9728 </method>
9729
9730 <!-- clone method -->
9731
9732 <method name="cloneTo">
9733 <desc>
9734 Starts creating a clone of this hard disk in the format and at the
9735 location defined by the @a target argument.
9736
9737 The target hard disk must be either in <link to="MediaState_NotCreated"/>
9738 state (i.e. must not have an existing storage unit) or in
9739 <link to="MediaState_Created"/> state (i.e. created and not locked, and
9740 big enough to hold the data or else the copy will be partial). Upon
9741 successful completion, the cloned hard disk will contain exactly the
9742 same sector data as the hard disk being cloned, except that in the
9743 first case a new UUID for the clone will be randomly generated, and in
9744 the second case the UUID will remain unchanged.
9745
9746 The @a parent argument defines which hard disk will be the parent
9747 of the clone. Passing a @c null reference indicates that the clone will
9748 be a base image, i.e. completely independent. It is possible to specify
9749 an arbitrary hard disk for this parameter, including the parent of the
9750 hard disk which is being cloned. Even cloning to a child of the source
9751 hard disk is possible. Note that when cloning to an existing image, the
9752 @a parent irgument is ignored.
9753
9754 After the returned progress object reports that the operation is
9755 successfully complete, the target hard disk gets remembered by this
9756 VirtualBox installation and may be attached to virtual machines.
9757
9758 <note>
9759 This hard disk will be placed to <link to="MediaState_LockedRead"/>
9760 state for the duration of this operation.
9761 </note>
9762 <result name="E_NOTIMPL">
9763 The specified cloning variant is not supported at the moment.
9764 </result>
9765 </desc>
9766 <param name="target" type="IHardDisk" dir="in">
9767 <desc>Target hard disk.</desc>
9768 </param>
9769 <param name="variant" type="HardDiskVariant" dir="in">
9770 <desc>Exact image variant which should be created.</desc>
9771 </param>
9772 <param name="parent" type="IHardDisk" dir="in">
9773 <desc>Parent of the cloned hard disk.</desc>
9774 </param>
9775 <param name="progress" type="IProgress" dir="return">
9776 <desc>Progress object to track the operation completion.</desc>
9777 </param>
9778 </method>
9779
9780 <!-- other methods -->
9781
9782 <method name="compact">
9783 <desc>
9784 Starts compacting of this hard disk. This means that the disk is
9785 transformed into a possibly more compact storage representation.
9786 This potentially creates temporary images, which can require a
9787 substantial amount of additional disk space.
9788
9789 This hard disk will be placed to <link to="MediaState_LockedWrite"/>
9790 state and all its parent hard disks (if any) will be placed to
9791 <link to="MediaState_LockedRead"/> state for the duration of this
9792 operation.
9793
9794 Please note that the results can be either returned straight away,
9795 or later as the result of the background operation via the object
9796 returned via the @a progress parameter.
9797
9798 <result name="VBOX_E_NOT_SUPPORTED">
9799 Hard disk format does not support compacting (but potentially
9800 needs it).
9801 </result>
9802 </desc>
9803 <param name="progress" type="IProgress" dir="return">
9804 <desc>Progress object to track the operation completion.</desc>
9805 </param>
9806 </method>
9807
9808 <method name="reset">
9809 <desc>
9810 Starts erasing the contents of this differencing hard disk.
9811
9812 This operation will reset the differencing hard disk to its initial
9813 state when it does not contain any sector data and any read operation is
9814 redirected to its parent hard disk.
9815
9816 This hard disk will be placed to <link to="MediaState_LockedWrite"/>
9817 for the duration of this operation.
9818
9819 <result name="VBOX_E_NOT_SUPPORTED">
9820 This is not a differencing hard disk.
9821 </result>
9822 <result name="VBOX_E_INVALID_OBJECT_STATE">
9823 Hard disk is not in <link to="MediaState_Created"/> or
9824 <link to="MediaState_Inaccessible"/> state.
9825 </result>
9826 </desc>
9827 <param name="progress" type="IProgress" dir="return">
9828 <desc>Progress object to track the operation completion.</desc>
9829 </param>
9830 </method>
9831
9832 </interface>
9833
9834
9835 <!--
9836 // IHardDiskFormat
9837 /////////////////////////////////////////////////////////////////////////
9838 -->
9839
9840 <enum
9841 name="DataType"
9842 uuid="d90ea51e-a3f1-4a01-beb1-c1723c0d3ba7"
9843 >
9844 <const name="Int32" value="0"/>
9845 <const name="Int8" value="1"/>
9846 <const name="String" value="2"/>
9847 </enum>
9848
9849 <enum
9850 name="DataFlags"
9851 uuid="86884dcf-1d6b-4f1b-b4bf-f5aa44959d60"
9852 >
9853 <const name="None" value="0x00"/>
9854 <const name="Mandatory" value="0x01"/>
9855 <const name="Expert" value="0x02"/>
9856 <const name="Array" value="0x04"/>
9857 <const name="FlagMask" value="0x07"/>
9858 </enum>
9859
9860 <enum
9861 name="HardDiskFormatCapabilities"
9862 uuid="1df1e4aa-d25a-4ba6-b2a2-02f60eb5903b"
9863 >
9864 <desc>
9865 Hard disk format capability flags.
9866 </desc>
9867
9868 <const name="Uuid" value="0x01">
9869 <desc>
9870 Supports UUIDs as expected by VirtualBox code.
9871 </desc>
9872 </const>
9873
9874 <const name="CreateFixed" value="0x02">
9875 <desc>
9876 Supports creating fixed size images, allocating all space instantly.
9877 </desc>
9878 </const>
9879
9880 <const name="CreateDynamic" value="0x04">
9881 <desc>
9882 Supports creating dynamically growing images, allocating space on
9883 demand.
9884 </desc>
9885 </const>
9886
9887 <const name="CreateSplit2G" value="0x08">
9888 <desc>
9889 Supports creating images split in chunks of a bit less than 2 GBytes.
9890 </desc>
9891 </const>
9892
9893 <const name="Differencing" value="0x10">
9894 <desc>
9895 Supports being used as a format for differencing hard disks (see <link
9896 to="IHardDisk::createDiffStorage"/>).
9897 </desc>
9898 </const>
9899
9900 <const name="Asynchronous" value="0x20">
9901 <desc>
9902 Supports asynchronous I/O operations for at least some configurations.
9903 </desc>
9904 </const>
9905
9906 <const name="File" value="0x40">
9907 <desc>
9908 The format backend operates on files (the <link to="IMedium::location"/>
9909 attribute of the hard disk specifies a file used to store hard disk
9910 data; for a list of supported file extensions see
9911 <link to="IHardDiskFormat::fileExtensions"/>).
9912 </desc>
9913 </const>
9914
9915 <const name="Properties" value="0x80">
9916 <desc>
9917 The format backend uses the property interface to configure the storage
9918 location and properties (the <link to="IHardDiskFormat::describeProperties"/>
9919 method is used to get access to properties supported by the given hard
9920 disk format).
9921 </desc>
9922 </const>
9923
9924 <const name="CapabilityMask" value="0xFF"/>
9925 </enum>
9926
9927 <interface
9928 name="IHardDiskFormat" extends="$unknown"
9929 uuid="7f3ba790-3a0b-4a8a-bac2-bb50150123c5"
9930 wsmap="managed"
9931 >
9932 <desc>
9933 The IHardDiskFormat interface represents a virtual hard disk format.
9934
9935 Each hard disk format has an associated backend which is used to handle
9936 hard disks stored in this format. This interface provides information
9937 about the properties of the associated backend.
9938
9939 Each hard disk format is identified by a string represented by the
9940 <link to="#id"/> attribute. This string is used in calls like
9941 <link to="IVirtualBox::createHardDisk"/> to specify the desired
9942 format.
9943
9944 The list of all supported hard disk formats can be obtained using
9945 <link to="ISystemProperties::hardDiskFormats"/>.
9946
9947 <see>IHardDisk</see>
9948 </desc>
9949
9950 <attribute name="id" type="wstring" readonly="yes">
9951 <desc>
9952 Identifier of this format.
9953
9954 The format identifier is a non-@c null non-empty ASCII string. Note that
9955 this string is case-insensitive. This means that, for example, all of
9956 the following strings:
9957 <pre>
9958 "VDI"
9959 "vdi"
9960 "VdI"</pre>
9961 refer to the same hard disk format.
9962
9963 This string is used in methods of other interfaces where it is necessary
9964 to specify a hard disk format, such as
9965 <link to="IVirtualBox::createHardDisk"/>.
9966 </desc>
9967 </attribute>
9968
9969 <attribute name="name" type="wstring" readonly="yes">
9970 <desc>
9971 Human readable description of this format.
9972
9973 Mainly for use in file open dialogs.
9974 </desc>
9975 </attribute>
9976
9977 <attribute name="fileExtensions" type="wstring" safearray="yes" readonly="yes">
9978 <desc>
9979 Array of strings containing the supported file extensions.
9980
9981 The first extension in the array is the extension preferred by the
9982 backend. It is recommended to use this extension when specifying a
9983 location of the storage unit for a new hard disk.
9984
9985 Note that some backends do not work on files, so this array may be
9986 empty.
9987
9988 <see>IHardDiskFormat::capabilities</see>
9989 </desc>
9990 </attribute>
9991
9992 <attribute name="capabilities" type="unsigned long" readonly="yes">
9993 <desc>
9994 Capabilities of the format as a set of bit flags.
9995
9996 For the meaning of individual capability flags see
9997 <link to="HardDiskFormatCapabilities"/>.
9998 </desc>
9999 </attribute>
10000
10001 <method name="describeProperties">
10002 <desc>
10003 Returns several arrays describing the properties supported by this
10004 format.
10005
10006 An element with the given index in each array describes one
10007 property. Thus, the number of elements in each returned array is the
10008 same and corresponds to the number of supported properties.
10009
10010 The returned arrays are filled in only if the
10011 <link to="HardDiskFormatCapabilities_Properties"/> flag is set.
10012 All arguments must be non-@c null.
10013
10014 <see>DataType</see>
10015 <see>DataFlags</see>
10016 </desc>
10017
10018 <param name="names" type="wstring" safearray="yes" dir="out">
10019 <desc>Array of property names.</desc>
10020 </param>
10021 <param name="description" type="wstring" safearray="yes" dir="out">
10022 <desc>Array of property descriptions.</desc>
10023 </param>
10024 <param name="types" type="DataType" safearray="yes" dir="out">
10025 <desc>Array of property types.</desc>
10026 </param>
10027 <param name="flags" type="unsigned long" safearray="yes" dir="out">
10028 <desc>Array of property flags.</desc>
10029 </param>
10030 <param name="defaults" type="wstring" safearray="yes" dir="out">
10031 <desc>Array of default property values.</desc>
10032 </param>
10033 </method>
10034
10035 </interface>
10036
10037
10038 <!--
10039 // IFloppyImage
10040 /////////////////////////////////////////////////////////////////////////
10041 -->
10042
10043 <interface
10044 name="IFloppyImage" extends="IMedium"
10045 uuid="faa6101f-078c-4b3a-ab75-75670c8170b3"
10046 wsmap="managed"
10047 >
10048 <desc>
10049 The IFloppyImage interface represents a medium containing the image
10050 of a floppy disk. This is a subclass of <link to="IMedium" />; see remarks there.
10051 </desc>
10052
10053 </interface>
10054
10055
10056 <!--
10057 // IDVDImage
10058 /////////////////////////////////////////////////////////////////////////
10059 -->
10060
10061 <interface
10062 name="IDVDImage" extends="IMedium"
10063 uuid="b1f90bbb-e8a9-4484-9af1-3638e943f763"
10064 wsmap="managed"
10065 >
10066 <desc>
10067 The IDVDImage interface represents a medium containing the image
10068 of a CD or DVD disk in the ISO format.
10069
10070 This is a subclass of <link to="IMedium" />; see remarks there.
10071 </desc>
10072
10073 </interface>
10074
10075
10076 <!--
10077 // IDVDDrive
10078 /////////////////////////////////////////////////////////////////////////
10079 -->
10080
10081 <interface
10082 name="IDVDDrive" extends="$unknown"
10083 uuid="156944d1-4c6d-4812-8f12-ab3890767ab4"
10084 wsmap="managed"
10085 >
10086 <desc>
10087 The IDVDDrive interface represents the virtual CD/DVD drive of the
10088 virtual machine. An object of this type is returned by
10089 <link to="IMachine::DVDDrive"/>.
10090 </desc>
10091
10092 <attribute name="state" type="DriveState" readonly="yes">
10093 <desc>Current drive state.</desc>
10094 </attribute>
10095
10096 <attribute name="passthrough" type="boolean">
10097 <desc>
10098 When a host drive is mounted and passthrough is enabled
10099 the guest OS will be able to directly send SCSI commands to
10100 the host drive. This enables the guest OS to use CD/DVD writers
10101 but is potentially dangerous.
10102 </desc>
10103 </attribute>
10104
10105 <method name="mountImage">
10106 <desc>Mounts a CD/DVD image with the specified UUID.
10107
10108 <result name="VBOX_E_FILE_ERROR">
10109 Invalid image file location.
10110 </result>
10111 <result name="VBOX_E_OBJECT_NOT_FOUND">
10112 Could not find a CD/DVD image matching @a imageId.
10113 </result>
10114 <result name="VBOX_E_INVALID_OBJECT_STATE">
10115 Invalid media state.
10116 </result>
10117
10118 </desc>
10119 <param name="imageId" type="wstring" dir="in"/>
10120 </method>
10121
10122 <method name="captureHostDrive">
10123 <desc>Captures the specified host CD/DVD drive.</desc>
10124 <param name="drive" type="IHostDVDDrive" dir="in"/>
10125 </method>
10126
10127 <method name="unmount">
10128 <desc>Unmounts the currently mounted image or host drive.</desc>
10129 </method>
10130
10131 <method name="getImage">
10132 <desc>Returns the currently mounted CD/DVD image.</desc>
10133 <param name="image" type="IDVDImage" dir="return"/>
10134 </method>
10135
10136 <method name="getHostDrive">
10137 <desc>Returns the currently mounted host CD/DVD drive.</desc>
10138 <param name="drive" type="IHostDVDDrive" dir="return"/>
10139 </method>
10140
10141 </interface>
10142
10143
10144 <!--
10145 // IFloppyDrive
10146 /////////////////////////////////////////////////////////////////////////
10147 -->
10148
10149 <interface
10150 name="IFloppyDrive" extends="$unknown"
10151 uuid="a8676d38-5cf0-4b53-85b1-aa693611ab86"
10152 wsmap="managed"
10153 >
10154 <desc>
10155 The IFloppyDrive interface represents the virtual floppy drive of the
10156 virtual machine. An object of this type is returned by
10157 <link to="IMachine::floppyDrive" />.
10158 </desc>
10159
10160 <attribute name="enabled" type="boolean">
10161 <desc>
10162 Flag whether the floppy drive is enabled. If it is disabled,
10163 the floppy drive will not be reported to the guest OS.
10164 </desc>
10165 </attribute>
10166
10167 <attribute name="state" type="DriveState" readonly="yes">
10168 <desc>Current drive state.</desc>
10169 </attribute>
10170
10171 <method name="mountImage">
10172 <desc>Mounts a floppy image with the specified UUID.
10173
10174 <result name="VBOX_E_FILE_ERROR">
10175 Invalid image file location.
10176 </result>
10177 <result name="VBOX_E_OBJECT_NOT_FOUND">
10178 Could not find a floppy image matching @a imageID.
10179 </result>
10180 <result name="VBOX_E_INVALID_OBJECT_STATE">
10181 Invalid media state.
10182 </result>
10183
10184 </desc>
10185 <param name="imageId" type="wstring" dir="in"/>
10186 </method>
10187
10188 <method name="captureHostDrive">
10189 <desc>Captures the specified host floppy drive.</desc>
10190 <param name="drive" type="IHostFloppyDrive" dir="in"/>
10191 </method>
10192
10193 <method name="unmount">
10194 <desc>Unmounts the currently mounted image or host drive.</desc>
10195 </method>
10196
10197 <method name="getImage">
10198 <desc>Returns the currently mounted floppy image.</desc>
10199 <param name="image" type="IFloppyImage" dir="return"/>
10200 </method>
10201
10202 <method name="getHostDrive">
10203 <desc>Returns the currently mounted host floppy drive.</desc>
10204 <param name="drive" type="IHostFloppyDrive" dir="return"/>
10205 </method>
10206
10207 </interface>
10208
10209
10210 <!--
10211 // IKeyboard
10212 /////////////////////////////////////////////////////////////////////////
10213 -->
10214
10215 <interface
10216 name="IKeyboard" extends="$unknown"
10217 uuid="2d1a531b-4c6e-49cc-8af6-5c857b78b5d7"
10218 wsmap="managed"
10219 >
10220 <desc>
10221 The IKeyboard interface represents the virtual machine's keyboard. Used
10222 in <link to="IConsole::keyboard"/>.
10223
10224 Use this interface to send keystrokes or the Ctrl-Alt-Del sequence
10225 to the virtual machine.
10226
10227 </desc>
10228 <method name="putScancode">
10229 <desc>Sends a scancode to the keyboard.
10230
10231 <result name="VBOX_E_IPRT_ERROR">
10232 Could not send scan code to virtual keyboard.
10233 </result>
10234
10235 </desc>
10236 <param name="scancode" type="long" dir="in"/>
10237 </method>
10238
10239 <method name="putScancodes">
10240 <desc>Sends an array of scancodes to the keyboard.
10241
10242 <result name="VBOX_E_IPRT_ERROR">
10243 Could not send all scan codes to virtual keyboard.
10244 </result>
10245
10246 </desc>
10247 <param name="scancodes" type="long" dir="in" safearray="yes"/>
10248 <param name="codesStored" type="unsigned long" dir="return"/>
10249 </method>
10250
10251 <method name="putCAD">
10252 <desc>Sends the Ctrl-Alt-Del sequence to the keyboard. This
10253 function is nothing special, it is just a convenience function
10254 calling <link to="IKeyboard::putScancodes"/> with the proper scancodes.
10255
10256 <result name="VBOX_E_IPRT_ERROR">
10257 Could not send all scan codes to virtual keyboard.
10258 </result>
10259
10260 </desc>
10261 </method>
10262
10263 </interface>
10264
10265
10266 <!--
10267 // IMouse
10268 /////////////////////////////////////////////////////////////////////////
10269 -->
10270
10271 <enum
10272 name="MouseButtonState"
10273 uuid="03131722-2EC5-4173-9794-0DACA46673EF"
10274 >
10275 <desc>
10276 Mouse button state.
10277 </desc>
10278
10279 <const name="LeftButton" value="0x01"/>
10280 <const name="RightButton" value="0x02"/>
10281 <const name="MiddleButton" value="0x04"/>
10282 <const name="WheelUp" value="0x08"/>
10283 <const name="WheelDown" value="0x10"/>
10284 <const name="MouseStateMask" value="0x1F"/>
10285 </enum>
10286
10287 <interface
10288 name="IMouse" extends="$unknown"
10289 uuid="FD443EC1-0006-4F5B-9282-D72760A66916"
10290 wsmap="managed"
10291 >
10292 <desc>
10293 The IMouse interface represents the virtual machine's mouse. Used in
10294 <link to="IConsole::mouse"/>.
10295
10296 Through this interface, the virtual machine's virtual mouse can be
10297 controlled.
10298 </desc>
10299
10300 <attribute name="absoluteSupported" type="boolean" readonly="yes">
10301 <desc>
10302 Whether the guest OS supports absolute mouse pointer positioning
10303 or not.
10304 <note>
10305 VirtualBox Guest Tools need to be installed to the guest OS
10306 in order to enable absolute mouse positioning support.
10307 You can use the <link to="IConsoleCallback::onMouseCapabilityChange"/>
10308 callback to be instantly informed about changes of this attribute
10309 during virtual machine execution.
10310 </note>
10311 <see><link to="#putMouseEventAbsolute"/></see>
10312 </desc>
10313 </attribute>
10314
10315 <method name="putMouseEvent">
10316 <desc>
10317 Initiates a mouse event using relative pointer movements
10318 along x and y axis.
10319
10320 <result name="E_ACCESSDENIED">
10321 Console not powered up.
10322 </result>
10323 <result name="VBOX_E_IPRT_ERROR">
10324 Could not send mouse event to virtual mouse.
10325 </result>
10326
10327 </desc>
10328
10329 <param name="dx" type="long" dir="in">
10330 <desc>
10331 Amount of pixels the mouse should move to the right.
10332 Negative values move the mouse to the left.
10333 </desc>
10334 </param>
10335 <param name="dy" type="long" dir="in">
10336 <desc>
10337 Amount of pixels the mouse should move downwards.
10338 Negative values move the mouse upwards.
10339 </desc>
10340 </param>
10341 <param name="dz" type="long" dir="in">
10342 <desc>
10343 Amount of mouse wheel moves.
10344 Positive values describe clockwise wheel rotations,
10345 negative values describe counterclockwise rotations.
10346 </desc>
10347 </param>
10348 <param name="buttonState" type="long" dir="in">
10349 <desc>
10350 The current state of mouse buttons. Every bit represents
10351 a mouse button as follows:
10352 <table>
10353 <tr><td>Bit 0 (<tt>0x01</tt>)</td><td>left mouse button</td></tr>
10354 <tr><td>Bit 1 (<tt>0x02</tt>)</td><td>right mouse button</td></tr>
10355 <tr><td>Bit 2 (<tt>0x04</tt>)</td><td>middle mouse button</td></tr>
10356 </table>
10357 A value of <tt>1</tt> means the corresponding button is pressed.
10358 otherwise it is released.
10359 </desc>
10360 </param>
10361 </method>
10362
10363 <method name="putMouseEventAbsolute">
10364 <desc>
10365 Positions the mouse pointer using absolute x and y coordinates.
10366 These coordinates are expressed in pixels and
10367 start from <tt>[1,1]</tt> which corresponds to the top left
10368 corner of the virtual display.
10369
10370 <result name="E_ACCESSDENIED">
10371 Console not powered up.
10372 </result>
10373 <result name="VBOX_E_IPRT_ERROR">
10374 Could not send mouse event to virtual mouse.
10375 </result>
10376
10377 <note>
10378 This method will have effect only if absolute mouse
10379 positioning is supported by the guest OS.
10380 </note>
10381
10382 <see><link to="#absoluteSupported"/></see>
10383 </desc>
10384
10385 <param name="x" type="long" dir="in">
10386 <desc>
10387 X coordinate of the pointer in pixels, starting from @c 1.
10388 </desc>
10389 </param>
10390 <param name="y" type="long" dir="in">
10391 <desc>
10392 Y coordinate of the pointer in pixels, starting from @c 1.
10393 </desc>
10394 </param>
10395 <param name="dz" type="long" dir="in">
10396 <desc>
10397 Amount of mouse wheel moves.
10398 Positive values describe clockwise wheel rotations,
10399 negative values describe counterclockwise rotations.
10400 </desc>
10401 </param>
10402 <param name="buttonState" type="long" dir="in">
10403 <desc>
10404 The current state of mouse buttons. Every bit represents
10405 a mouse button as follows:
10406 <table>
10407 <tr><td>Bit 0 (<tt>0x01</tt>)</td><td>left mouse button</td></tr>
10408 <tr><td>Bit 1 (<tt>0x02</tt>)</td><td>right mouse button</td></tr>
10409 <tr><td>Bit 2 (<tt>0x04</tt>)</td><td>middle mouse button</td></tr>
10410 </table>
10411 A value of @c 1 means the corresponding button is pressed.
10412 otherwise it is released.
10413 </desc>
10414 </param>
10415 </method>
10416
10417 </interface>
10418
10419 <!--
10420 // IDisplay
10421 /////////////////////////////////////////////////////////////////////////
10422 -->
10423
10424 <enum
10425 name="FramebufferPixelFormat"
10426 uuid="7acfd5ed-29e3-45e3-8136-73c9224f3d2d"
10427 >
10428 <desc>
10429 Format of the video memory buffer. Constants represented by this enum can
10430 be used to test for particular values of <link
10431 to="IFramebuffer::pixelFormat"/>. See also <link
10432 to="IFramebuffer::requestResize"/>.
10433
10434 See also www.fourcc.org for more information about FOURCC pixel formats.
10435 </desc>
10436
10437 <const name="Opaque" value="0">
10438 <desc>
10439 Unknown buffer format (the user may not assume any particular format of
10440 the buffer).
10441 </desc>
10442 </const>
10443 <const name="FOURCC_RGB" value="0x32424752">
10444 <desc>
10445 Basic RGB format (<link to="IFramebuffer::bitsPerPixel"/> determines the
10446 bit layout).
10447 </desc>
10448 </const>
10449 </enum>
10450
10451 <interface
10452 name="IFramebuffer" extends="$unknown"
10453 uuid="b7ed347a-5765-40a0-ae1c-f543eb4ddeaf"
10454 wsmap="suppress"
10455 >
10456 <attribute name="address" type="octet" mod="ptr" readonly="yes">
10457 <desc>Address of the start byte of the frame buffer.</desc>
10458 </attribute>
10459
10460 <attribute name="width" type="unsigned long" readonly="yes">
10461 <desc>Frame buffer width, in pixels.</desc>
10462 </attribute>
10463
10464 <attribute name="height" type="unsigned long" readonly="yes">
10465 <desc>Frame buffer height, in pixels.</desc>
10466 </attribute>
10467
10468 <attribute name="bitsPerPixel" type="unsigned long" readonly="yes">
10469 <desc>
10470 Color depth, in bits per pixel. When <link to="#pixelFormat"/> is <link
10471 to="FramebufferPixelFormat_FOURCC_RGB">FOURCC_RGB</link>, valid values
10472 are: 8, 15, 16, 24 and 32.
10473 </desc>
10474 </attribute>
10475
10476 <attribute name="bytesPerLine" type="unsigned long" readonly="yes">
10477 <desc>
10478 Scan line size, in bytes. When <link to="#pixelFormat"/> is <link
10479 to="FramebufferPixelFormat_FOURCC_RGB">FOURCC_RGB</link>, the
10480 size of the scan line must be aligned to 32 bits.
10481 </desc>
10482 </attribute>
10483
10484 <attribute name="pixelFormat" type="unsigned long" readonly="yes">
10485 <desc>
10486 Frame buffer pixel format. It's either one of the values defined by <link
10487 to="FramebufferPixelFormat"/> or a raw FOURCC code.
10488 <note>
10489 This attribute must never return <link
10490 to="FramebufferPixelFormat_Opaque"/> -- the format of the buffer
10491 <link to="#address"/> points to must be always known.
10492 </note>
10493 </desc>
10494 </attribute>
10495
10496 <attribute name="usesGuestVRAM" type="boolean" readonly="yes">
10497 <desc>
10498 Defines whether this frame buffer uses the virtual video card's memory
10499 buffer (guest VRAM) directly or not. See <link
10500 to="IFramebuffer::requestResize"/> for more information.
10501 </desc>
10502 </attribute>
10503
10504 <attribute name="heightReduction" type="unsigned long" readonly="yes">
10505 <desc>
10506 Hint from the frame buffer about how much of the standard
10507 screen height it wants to use for itself. This information is
10508 exposed to the guest through the VESA BIOS and VMMDev interface
10509 so that it can use it for determining its video mode table. It
10510 is not guaranteed that the guest respects the value.
10511 </desc>
10512 </attribute>
10513
10514 <attribute name="overlay" type="IFramebufferOverlay" readonly="yes">
10515 <desc>
10516 An alpha-blended overlay which is superposed over the frame buffer.
10517 The initial purpose is to allow the display of icons providing
10518 information about the VM state, including disk activity, in front
10519 ends which do not have other means of doing that. The overlay is
10520 designed to controlled exclusively by IDisplay. It has no locking
10521 of its own, and any changes made to it are not guaranteed to be
10522 visible until the affected portion of IFramebuffer is updated. The
10523 overlay can be created lazily the first time it is requested. This
10524 attribute can also return @c null to signal that the overlay is not
10525 implemented.
10526 </desc>
10527 </attribute>
10528
10529 <attribute name="winId" type="unsigned long long" readonly="yes">
10530 <desc>
10531 Platform-dependent identifier of the window where context of this
10532 frame buffer is drawn, or zero if there's no such window.
10533 </desc>
10534 </attribute>
10535
10536 <method name="lock">
10537 <desc>
10538 Locks 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="unlock">
10545 <desc>
10546 Unlocks the frame buffer.
10547 Gets called by the IDisplay object where this frame buffer is
10548 bound to.
10549 </desc>
10550 </method>
10551
10552 <method name="notifyUpdate">
10553 <desc>
10554 Informs about an update.
10555 Gets called by the display object where this buffer is
10556 registered.
10557 </desc>
10558 <param name="x" type="unsigned long" dir="in"/>
10559 <param name="y" type="unsigned long" dir="in"/>
10560 <param name="width" type="unsigned long" dir="in"/>
10561 <param name="height" type="unsigned long" dir="in"/>
10562 </method>
10563
10564 <method name="requestResize">
10565 <desc>
10566 Requests a size and pixel format change.
10567
10568 There are two modes of working with the video buffer of the virtual
10569 machine. The <i>indirect</i> mode implies that the IFramebuffer
10570 implementation allocates a memory buffer for the requested display mode
10571 and provides it to the virtual machine. In <i>direct</i> mode, the
10572 IFramebuffer implementation uses the memory buffer allocated and owned
10573 by the virtual machine. This buffer represents the video memory of the
10574 emulated video adapter (so called <i>guest VRAM</i>). The direct mode is
10575 usually faster because the implementation gets a raw pointer to the
10576 guest VRAM buffer which it can directly use for visualizing the contents
10577 of the virtual display, as opposed to the indirect mode where the
10578 contents of guest VRAM are copied to the memory buffer provided by
10579 the implementation every time a display update occurs.
10580
10581 It is important to note that the direct mode is really fast only when
10582 the implementation uses the given guest VRAM buffer directly, for
10583 example, by blitting it to the window representing the virtual machine's
10584 display, which saves at least one copy operation comparing to the
10585 indirect mode. However, using the guest VRAM buffer directly is not
10586 always possible: the format and the color depth of this buffer may be
10587 not supported by the target window, or it may be unknown (opaque) as in
10588 case of text or non-linear multi-plane VGA video modes. In this case,
10589 the indirect mode (that is always available) should be used as a
10590 fallback: when the guest VRAM contents are copied to the
10591 implementation-provided memory buffer, color and format conversion is
10592 done automatically by the underlying code.
10593
10594 The @a pixelFormat parameter defines whether the direct mode is
10595 available or not. If @a pixelFormat is <link
10596 to="FramebufferPixelFormat_Opaque"/> then direct access to the guest
10597 VRAM buffer is not available -- the @a VRAM, @a bitsPerPixel and
10598 @a bytesPerLine parameters must be ignored and the implementation must use
10599 the indirect mode (where it provides its own buffer in one of the
10600 supported formats). In all other cases, @a pixelFormat together with
10601 @a bitsPerPixel and @a bytesPerLine define the format of the video memory
10602 buffer pointed to by the @a VRAM parameter and the implementation is
10603 free to choose which mode to use. To indicate that this frame buffer uses
10604 the direct mode, the implementation of the <link to="#usesGuestVRAM"/>
10605 attribute must return @c true and <link to="#address"/> must
10606 return exactly the same address that is passed in the @a VRAM parameter
10607 of this method; otherwise it is assumed that the indirect strategy is
10608 chosen.
10609
10610 The @a width and @a height parameters represent the size of the
10611 requested display mode in both modes. In case of indirect mode, the
10612 provided memory buffer should be big enough to store data of the given
10613 display mode. In case of direct mode, it is guaranteed that the given
10614 @a VRAM buffer contains enough space to represent the display mode of the
10615 given size. Note that this frame buffer's <link to="#width"/> and <link
10616 to="#height"/> attributes must return exactly the same values as
10617 passed to this method after the resize is completed (see below).
10618
10619 The @a finished output parameter determines if the implementation has
10620 finished resizing the frame buffer or not. If, for some reason, the
10621 resize cannot be finished immediately during this call, @a finished
10622 must be set to @c false, and the implementation must call
10623 <link to="IDisplay::resizeCompleted"/> after it has returned from
10624 this method as soon as possible. If @a finished is @c false, the
10625 machine will not call any frame buffer methods until
10626 <link to="IDisplay::resizeCompleted"/> is called.
10627
10628 Note that if the direct mode is chosen, the <link to="#bitsPerPixel"/>,
10629 <link to="#bytesPerLine"/> and <link to="#pixelFormat"/> attributes of
10630 this frame buffer must return exactly the same values as specified in the
10631 parameters of this method, after the resize is completed. If the
10632 indirect mode is chosen, these attributes must return values describing
10633 the format of the implementation's own memory buffer <link
10634 to="#address"/> points to. Note also that the <link to="#bitsPerPixel"/>
10635 value must always correlate with <link to="#pixelFormat"/>. Note that
10636 the <link to="#pixelFormat"/> attribute must never return <link
10637 to="FramebufferPixelFormat_Opaque"/> regardless of the selected mode.
10638
10639 <note>
10640 This method is called by the IDisplay object under the
10641 <link to="#lock"/> provided by this IFramebuffer
10642 implementation. If this method returns @c false in @a finished, then
10643 this lock is not released until
10644 <link to="IDisplay::resizeCompleted"/> is called.
10645 </note>
10646 </desc>
10647 <param name="screenId" type="unsigned long" dir="in">
10648 <desc>
10649 Logical screen number. Must be used in the corresponding call to
10650 <link to="IDisplay::resizeCompleted"/> if this call is made.
10651 </desc>
10652 </param>
10653 <param name="pixelFormat" type="unsigned long" dir="in">
10654 <desc>
10655 Pixel format of the memory buffer pointed to by @a VRAM.
10656 See also <link to="FramebufferPixelFormat"/>.
10657 </desc>
10658 </param>
10659 <param name="VRAM" type="octet" mod="ptr" dir="in">
10660 <desc>Pointer to the virtual video card's VRAM (may be @c null).</desc>
10661 </param>
10662 <param name="bitsPerPixel" type="unsigned long" dir="in">
10663 <desc>Color depth, bits per pixel.</desc>
10664 </param>
10665 <param name="bytesPerLine" type="unsigned long" dir="in">
10666 <desc>Size of one scan line, in bytes.</desc>
10667 </param>
10668 <param name="width" type="unsigned long" dir="in">
10669 <desc>Width of the guest display, in pixels.</desc>
10670 </param>
10671 <param name="height" type="unsigned long" dir="in">
10672 <desc>Height of the guest display, in pixels.</desc>
10673 </param>
10674 <param name="finished" type="boolean" dir="return">
10675 <desc>
10676 Can the VM start using the new frame buffer immediately
10677 after this method returns or it should wait for
10678 <link to="IDisplay::resizeCompleted"/>.
10679 </desc>
10680 </param>
10681 </method>
10682
10683 <method name="videoModeSupported">
10684 <desc>
10685 Returns whether the frame buffer implementation is willing to
10686 support a given video mode. In case it is not able to render
10687 the video mode (or for some reason not willing), it should
10688 return @c false. Usually this method is called when the guest
10689 asks the VMM device whether a given video mode is supported
10690 so the information returned is directly exposed to the guest.
10691 It is important that this method returns very quickly.
10692 </desc>
10693 <param name="width" type="unsigned long" dir="in"/>
10694 <param name="height" type="unsigned long" dir="in"/>
10695 <param name="bpp" type="unsigned long" dir="in"/>
10696 <param name="supported" type="boolean" dir="return"/>
10697 </method>
10698
10699 <method name="getVisibleRegion">
10700 <desc>
10701 Returns the visible region of this frame buffer.
10702
10703 If the @a rectangles parameter is @c null then the value of the
10704 @a count parameter is ignored and the number of elements necessary to
10705 describe the current visible region is returned in @a countCopied.
10706
10707 If @a rectangles is not @c null but @a count is less
10708 than the required number of elements to store region data, the method
10709 will report a failure. If @a count is equal or greater than the
10710 required number of elements, then the actual number of elements copied
10711 to the provided array will be returned in @a countCopied.
10712
10713 <note>
10714 The address of the provided array must be in the process space of
10715 this IFramebuffer object.
10716 </note>
10717 <note>
10718 Method not yet implemented.
10719 </note>
10720 </desc>
10721 <param name="rectangles" type="octet" mod="ptr" dir="in">
10722 <desc>Pointer to the @c RTRECT array to receive region data.</desc>
10723 </param>
10724 <param name="count" type="unsigned long" dir="in">
10725 <desc>Number of @c RTRECT elements in the @a rectangles array.</desc>
10726 </param>
10727 <param name="countCopied" type="unsigned long" dir="return">
10728 <desc>Number of elements copied to the @a rectangles array.</desc>
10729 </param>
10730 </method>
10731
10732 <method name="setVisibleRegion">
10733 <desc>
10734 Suggests a new visible region to this frame buffer. This region
10735 represents the area of the VM display which is a union of regions of
10736 all top-level windows of the guest operating system running inside the
10737 VM (if the Guest Additions for this system support this
10738 functionality). This information may be used by the frontends to
10739 implement the seamless desktop integration feature.
10740
10741 <note>
10742 The address of the provided array must be in the process space of
10743 this IFramebuffer object.
10744 </note>
10745 <note>
10746 The IFramebuffer implementation must make a copy of the provided
10747 array of rectangles.
10748 </note>
10749 <note>
10750 Method not yet implemented.
10751 </note>
10752 </desc>
10753 <param name="rectangles" type="octet" mod="ptr" dir="in">
10754 <desc>Pointer to the @c RTRECT array.</desc>
10755 </param>
10756 <param name="count" type="unsigned long" dir="in">
10757 <desc>Number of @c RTRECT elements in the @a rectangles array.</desc>
10758 </param>
10759 </method>
10760
10761 <method name="processVHWACommand">
10762 <desc>
10763 Posts a Video HW Acceleration Command to the frame buffer for processing.
10764 The commands used for 2D video acceleration (DDraw surface creation/destroying, blitting, scaling, color covnersion, overlaying, etc.)
10765 are posted from quest to the host to be processed by the host hardware.
10766
10767 <note>
10768 The address of the provided command must be in the process space of
10769 this IFramebuffer object.
10770 </note>
10771 </desc>
10772
10773 <param name="command" type="octet" mod="ptr" dir="in">
10774 <desc>Pointer to VBOXVHWACMD containing the command to execute.</desc>
10775 </param>
10776 </method>
10777
10778 </interface>
10779
10780 <interface
10781 name="IFramebufferOverlay" extends="IFramebuffer"
10782 uuid="0bcc1c7e-e415-47d2-bfdb-e4c705fb0f47"
10783 wsmap="suppress"
10784 >
10785 <desc>
10786 The IFramebufferOverlay interface represents an alpha blended overlay
10787 for displaying status icons above an IFramebuffer. It is always created
10788 not visible, so that it must be explicitly shown. It only covers a
10789 portion of the IFramebuffer, determined by its width, height and
10790 co-ordinates. It is always in packed pixel little-endian 32bit ARGB (in
10791 that order) format, and may be written to directly. Do re-read the
10792 width though, after setting it, as it may be adjusted (increased) to
10793 make it more suitable for the front end.
10794 </desc>
10795 <attribute name="x" type="unsigned long" readonly="yes">
10796 <desc>X position of the overlay, relative to the frame buffer.</desc>
10797 </attribute>
10798
10799 <attribute name="y" type="unsigned long" readonly="yes">
10800 <desc>Y position of the overlay, relative to the frame buffer.</desc>
10801 </attribute>
10802
10803 <attribute name="visible" type="boolean" readonly="no">
10804 <desc>
10805 Whether the overlay is currently visible.
10806 </desc>
10807 </attribute>
10808
10809 <attribute name="alpha" type="unsigned long" readonly="no">
10810 <desc>
10811 The global alpha value for the overlay. This may or may not be
10812 supported by a given front end.
10813 </desc>
10814 </attribute>
10815
10816 <method name="move">
10817 <desc>
10818 Changes the overlay's position relative to the IFramebuffer.
10819 </desc>
10820 <param name="x" type="unsigned long" dir="in"/>
10821 <param name="y" type="unsigned long" dir="in"/>
10822 </method>
10823
10824 </interface>
10825
10826 <interface
10827 name="IDisplay" extends="$unknown"
10828 uuid="26881797-bc98-444d-ac69-820633b93ec7"
10829 wsmap="managed"
10830 >
10831 <desc>
10832 The IDisplay interface represents the virtual machine's display.
10833
10834 The object implementing this interface is contained in each
10835 <link to="IConsole::display"/> attribute and represents the visual
10836 output of the virtual machine.
10837
10838 The virtual display supports pluggable output targets represented by the
10839 IFramebuffer interface. Examples of the output target are a window on
10840 the host computer or an RDP session's display on a remote computer.
10841 </desc>
10842 <attribute name="width" type="unsigned long" readonly="yes">
10843 <desc>Current display width.</desc>
10844 </attribute>
10845
10846 <attribute name="height" type="unsigned long" readonly="yes">
10847 <desc>Current display height.</desc>
10848 </attribute>
10849
10850 <attribute name="bitsPerPixel" type="unsigned long" readonly="yes">
10851 <desc>
10852 Current guest display color depth. Note that this may differ
10853 from <link to="IFramebuffer::bitsPerPixel"/>.
10854 </desc>
10855 </attribute>
10856
10857 <method name="setFramebuffer">
10858 <desc>
10859 Sets the framebuffer for given screen.
10860 </desc>
10861 <param name="screenId" type="unsigned long" dir="in"/>
10862 <param name="framebuffer" type="IFramebuffer" dir="in"/>
10863 </method>
10864
10865 <method name="getFramebuffer">
10866 <desc>
10867 Queries the framebuffer for given screen.
10868 </desc>
10869 <param name="screenId" type="unsigned long" dir="in"/>
10870 <param name="framebuffer" type="IFramebuffer" dir="out"/>
10871 <param name="xOrigin" type="long" dir="out"/>
10872 <param name="yOrigin" type="long" dir="out"/>
10873 </method>
10874
10875 <method name="setVideoModeHint">
10876 <desc>
10877 Asks VirtualBox to request the given video mode from
10878 the guest. This is just a hint and it cannot be guaranteed
10879 that the requested resolution will be used. Guest Additions
10880 are required for the request to be seen by guests. The caller
10881 should issue the request and wait for a resolution change and
10882 after a timeout retry.
10883
10884 Specifying @c 0 for either @a width, @a height or @a bitsPerPixel
10885 parameters means that the corresponding values should be taken from the
10886 current video mode (i.e. left unchanged).
10887
10888 If the guest OS supports multi-monitor configuration then the @a display
10889 parameter specifies the number of the guest display to send the hint to:
10890 @c 0 is the primary display, @c 1 is the first secondary and
10891 so on. If the multi-monitor configuration is not supported, @a display
10892 must be @c 0.
10893
10894 <result name="E_INVALIDARG">
10895 The @a display is not associated with any monitor.
10896 </result>
10897
10898 </desc>
10899 <param name="width" type="unsigned long" dir="in"/>
10900 <param name="height" type="unsigned long" dir="in"/>
10901 <param name="bitsPerPixel" type="unsigned long" dir="in"/>
10902 <param name="display" type="unsigned long" dir="in"/>
10903 </method>
10904
10905 <method name="setSeamlessMode">
10906 <desc>
10907 Enables or disables seamless guest display rendering (seamless desktop
10908 integration) mode.
10909 <note>
10910 Calling this method has no effect if <link
10911 to="IGuest::supportsSeamless"/> returns @c false.
10912 </note>
10913 </desc>
10914 <param name="enabled" type="boolean" dir="in"/>
10915 </method>
10916
10917 <method name="takeScreenShot">
10918 <desc>
10919 Takes a screen shot of the requested size and copies it to the
10920 32-bpp buffer allocated by the caller and pointed to by @a address.
10921
10922 <note>This API can be used only by the COM/XPCOM C++ API as it
10923 requires pointer support. Use <link to="#takeScreenShotSlow" />
10924 with other language bindings.
10925 </note>
10926
10927 <result name="E_NOTIMPL">
10928 Feature not implemented.
10929 </result>
10930 <result name="VBOX_E_IPRT_ERROR">
10931 Could not take a screenshot.
10932 </result>
10933
10934 </desc>
10935 <param name="address" type="octet" mod="ptr" dir="in"/>
10936 <param name="width" type="unsigned long" dir="in"/>
10937 <param name="height" type="unsigned long" dir="in"/>
10938 </method>
10939
10940 <method name="takeScreenShotSlow">
10941 <desc>
10942 Takes a guest screen shot of the requested size and returns it as
10943 an array of bytes in uncompressed 32-bit ARGB format.
10944 This API is slow, but could be the only option to get guest screenshot
10945 for scriptable languages not allowed to manipulate with addresses
10946 directly.
10947
10948 <result name="E_NOTIMPL">
10949 Feature not implemented.
10950 </result>
10951 <result name="VBOX_E_IPRT_ERROR">
10952 Could not take a screenshot.
10953 </result>
10954 </desc>
10955 <param name="width" type="unsigned long" dir="in">
10956 <desc>
10957 Desired image width.
10958 </desc>
10959 </param>
10960 <param name="height" type="unsigned long" dir="in">
10961 <desc>
10962 Desired image height.
10963 </desc>
10964 </param>
10965 <param name="screenData" type="octet" dir="return" safearray="yes">
10966 <desc>
10967 Array with resulting screen data.
10968 </desc>
10969 </param>
10970 </method>
10971
10972 <method name="drawToScreen">
10973 <desc>
10974 Draws a 32-bpp image of the specified size from the given buffer
10975 to the given point on the VM display.
10976
10977 <result name="E_NOTIMPL">
10978 Feature not implemented.
10979 </result>
10980 <result name="VBOX_E_IPRT_ERROR">
10981 Could not draw to screen.
10982 </result>
10983
10984 </desc>
10985 <param name="address" type="octet" mod="ptr" dir="in"/>
10986 <param name="x" type="unsigned long" dir="in"/>
10987 <param name="y" type="unsigned long" dir="in"/>
10988 <param name="width" type="unsigned long" dir="in"/>
10989 <param name="height" type="unsigned long" dir="in"/>
10990 </method>
10991
10992 <method name="invalidateAndUpdate">
10993 <desc>
10994 Does a full invalidation of the VM display and instructs the VM
10995 to update it.
10996
10997 <result name="VBOX_E_IPRT_ERROR">
10998 Could not invalidate and update screen.
10999 </result>
11000
11001 </desc>
11002 </method>
11003
11004 <method name="resizeCompleted">
11005 <desc>
11006 Signals that a framebuffer has completed the resize operation.
11007
11008 <result name="VBOX_E_NOT_SUPPORTED">
11009 Operation only valid for external frame buffers.
11010 </result>
11011
11012 </desc>
11013 <param name="screenId" type="unsigned long" dir="in"/>
11014 </method>
11015
11016 <method name="updateCompleted">
11017 <desc>
11018 Signals that a framebuffer has completed the update operation.
11019
11020 <result name="VBOX_E_NOT_SUPPORTED">
11021 Operation only valid for external frame buffers.
11022 </result>
11023
11024 </desc>
11025 </method>
11026
11027 <method name="completeVHWACommand">
11028 <desc>
11029 Signals that the Video HW Acceleration command has completed.
11030 </desc>
11031
11032 <param name="command" type="octet" mod="ptr" dir="in">
11033 <desc>Pointer to VBOXVHWACMD containing the completed command.</desc>
11034 </param>
11035 </method>
11036
11037 </interface>
11038
11039 <!--
11040 // INetworkAdapter
11041 /////////////////////////////////////////////////////////////////////////
11042 -->
11043
11044 <enum
11045 name="NetworkAttachmentType"
11046 uuid="44bce1ee-99f7-4e8e-89fc-80597fd9eeaf"
11047 >
11048 <desc>
11049 Network attachment type.
11050 </desc>
11051
11052 <const name="Null" value="0">
11053 <desc>Null value, also means "not attached".</desc>
11054 </const>
11055 <const name="NAT" value="1"/>
11056 <const name="Bridged" value="2"/>
11057 <const name="Internal" value="3"/>
11058 <const name="HostOnly" value="4"/>
11059 </enum>
11060
11061 <enum
11062 name="NetworkAdapterType"
11063 uuid="50c3dfd8-07ac-4a31-baac-519c828fbf97"
11064 >
11065 <desc>
11066 Network adapter type.
11067 </desc>
11068
11069 <const name="Null" value="0">
11070 <desc>Null value (never used by the API).</desc>
11071 </const>
11072 <const name="Am79C970A" value="1">
11073 <desc>AMD PCNet-PCI II network card (Am79C970A).</desc>
11074 </const>
11075 <const name="Am79C973" value="2">
11076 <desc>AMD PCNet-FAST III network card (Am79C973).</desc>
11077 </const>
11078 <const name="I82540EM" value="3">
11079 <desc>Intel PRO/1000 MT Desktop network card (82540EM).</desc>
11080 </const>
11081 <const name="I82543GC" value="4">
11082 <desc>Intel PRO/1000 T Server network card (82543GC).</desc>
11083 </const>
11084 <const name="I82545EM" value="5">
11085 <desc>Intel PRO/1000 MT Server network card (82545EM).</desc>
11086 </const>
11087 </enum>
11088
11089 <interface
11090 name="INetworkAdapter" extends="$unknown"
11091 uuid="65607a27-2b73-4d43-b4cc-0ba2c817fbde"
11092 wsmap="managed"
11093 >
11094 <desc>
11095 Represents a virtual network adapter that is attached to a virtual machine.
11096 Each virtual machine has a fixed number of network adapter slots with one
11097 instance of this attached to each of them. Call
11098 <link to="IMachine::getNetworkAdapter" /> to get the network adapter that
11099 is attached to a given slot in a given machine.
11100
11101 Each network adapter can be in one of five attachment modes, which are
11102 represented by the <link to="NetworkAttachmentType" /> enumeration;
11103 see the <link to="#attachmentType" /> attribute.
11104 </desc>
11105
11106 <attribute name="adapterType" type="NetworkAdapterType">
11107 <desc>
11108 Type of the virtual network adapter. Depending on this value,
11109 VirtualBox will provide a different virtual network hardware
11110 to the guest.
11111 </desc>
11112 </attribute>
11113
11114 <attribute name="slot" type="unsigned long" readonly="yes">
11115 <desc>
11116 Slot number this adapter is plugged into. Corresponds to
11117 the value you pass to <link to="IMachine::getNetworkAdapter"/>
11118 to obtain this instance.
11119 </desc>
11120 </attribute>
11121
11122 <attribute name="enabled" type="boolean">
11123 <desc>
11124 Flag whether the network adapter is present in the
11125 guest system. If disabled, the virtual guest hardware will
11126 not contain this network adapter. Can only be changed when
11127 the VM is not running.
11128 </desc>
11129 </attribute>
11130
11131 <attribute name="MACAddress" type="wstring">
11132 <desc>
11133 Ethernet MAC address of the adapter, 12 hexadecimal characters. When setting
11134 it to @c null or an empty string, VirtualBox will generate a unique MAC address.
11135 </desc>
11136 </attribute>
11137
11138 <attribute name="attachmentType" type="NetworkAttachmentType" readonly="yes"/>
11139
11140 <attribute name="hostInterface" type="wstring">
11141 <desc>
11142 Name of the host network interface the VM is attached to.
11143 </desc>
11144 </attribute>
11145
11146 <attribute name="internalNetwork" type="wstring">
11147 <desc>
11148 Name of the internal network the VM is attached to.
11149 </desc>
11150 </attribute>
11151
11152 <attribute name="NATNetwork" type="wstring">
11153 <desc>
11154 Name of the NAT network the VM is attached to.
11155 </desc>
11156 </attribute>
11157
11158 <attribute name="cableConnected" type="boolean">
11159 <desc>
11160 Flag whether the adapter reports the cable as connected or not.
11161 It can be used to report offline situations to a VM.
11162 </desc>
11163 </attribute>
11164
11165 <attribute name="lineSpeed" type="unsigned long">
11166 <desc>
11167 Line speed reported by custom drivers, in units of 1 kbps.
11168 </desc>
11169 </attribute>
11170
11171 <attribute name="traceEnabled" type="boolean">
11172 <desc>
11173 Flag whether network traffic from/to the network card should be traced.
11174 Can only be toggled when the VM is turned off.
11175 </desc>
11176 </attribute>
11177
11178 <attribute name="traceFile" type="wstring">
11179 <desc>
11180 Filename where a network trace will be stored. If not set, VBox-pid.pcap
11181 will be used.
11182 </desc>
11183 </attribute>
11184
11185 <method name="attachToNAT">
11186 <desc>
11187 Attach the network adapter to the Network Address Translation (NAT) interface.
11188 </desc>
11189 </method>
11190
11191 <method name="attachToBridgedInterface">
11192 <desc>
11193 Attach the network adapter to a bridged host interface.
11194 </desc>
11195 </method>
11196
11197 <method name="attachToInternalNetwork">
11198 <desc>
11199 Attach the network adapter to an internal network.
11200 </desc>
11201 </method>
11202
11203 <method name="attachToHostOnlyInterface">
11204 <desc>
11205 Attach the network adapter to the host-only network.
11206 </desc>
11207 </method>
11208
11209 <method name="detach">
11210 <desc>
11211 Detach the network adapter
11212 </desc>
11213 </method>
11214 </interface>
11215
11216
11217 <!--
11218 // ISerialPort
11219 /////////////////////////////////////////////////////////////////////////
11220 -->
11221
11222 <enum
11223 name="PortMode"
11224 uuid="533b5fe3-0185-4197-86a7-17e37dd39d76"
11225 >
11226 <desc>
11227 The PortMode enumeration represents possible communication modes for
11228 the virtual serial port device.
11229 </desc>
11230
11231 <const name="Disconnected" value="0">
11232 <desc>Virtual device is not attached to any real host device.</desc>
11233 </const>
11234 <const name="HostPipe" value="1">
11235 <desc>Virtual device is attached to a host pipe.</desc>
11236 </const>
11237 <const name="HostDevice" value="2">
11238 <desc>Virtual device is attached to a host device.</desc>
11239 </const>
11240 <const name="RawFile" value="3">
11241 <desc>Virtual device is attached to a raw file.</desc>
11242 </const>
11243 </enum>
11244
11245 <interface
11246 name="ISerialPort" extends="$unknown"
11247 uuid="937f6970-5103-4745-b78e-d28dcf1479a8"
11248 wsmap="managed"
11249 >
11250
11251 <desc>
11252 The ISerialPort interface represents the virtual serial port device.
11253
11254 The virtual serial port device acts like an ordinary serial port
11255 inside the virtual machine. This device communicates to the real
11256 serial port hardware in one of two modes: host pipe or host device.
11257
11258 In host pipe mode, the #path attribute specifies the path to the pipe on
11259 the host computer that represents a serial port. The #server attribute
11260 determines if this pipe is created by the virtual machine process at
11261 machine startup or it must already exist before starting machine
11262 execution.
11263
11264 In host device mode, the #path attribute specifies the name of the
11265 serial port device on the host computer.
11266
11267 There is also a third communication mode: the disconnected mode. In this
11268 mode, the guest OS running inside the virtual machine will be able to
11269 detect the serial port, but all port write operations will be discarded
11270 and all port read operations will return no data.
11271
11272 <see>IMachine::getSerialPort</see>
11273 </desc>
11274
11275 <attribute name="slot" type="unsigned long" readonly="yes">
11276 <desc>
11277 Slot number this serial port is plugged into. Corresponds to
11278 the value you pass to <link to="IMachine::getSerialPort"/>
11279 to obtain this instance.
11280 </desc>
11281 </attribute>
11282
11283 <attribute name="enabled" type="boolean">
11284 <desc>
11285 Flag whether the serial port is enabled. If disabled,
11286 the serial port will not be reported to the guest OS.
11287 </desc>
11288 </attribute>
11289
11290 <attribute name="IOBase" type="unsigned long">
11291 <desc>Base I/O address of the serial port.</desc>
11292 </attribute>
11293
11294 <attribute name="IRQ" type="unsigned long">
11295 <desc>IRQ number of the serial port.</desc>
11296 </attribute>
11297
11298 <attribute name="hostMode" type="PortMode">
11299 <desc>
11300 How is this port connected to the host.
11301 <note>
11302 Changing this attribute may fail if the conditions for
11303 <link to="#path"/> are not met.
11304 </note>
11305 </desc>
11306 </attribute>
11307
11308 <attribute name="server" type="boolean">
11309 <desc>
11310 Flag whether this serial port acts as a server (creates a new pipe on
11311 the host) or as a client (uses the existing pipe). This attribute is
11312 used only when <link to="#hostMode"/> is PortMode_HostPipe.
11313 </desc>
11314 </attribute>
11315
11316 <attribute name="path" type="wstring">
11317 <desc>
11318 Path to the serial port's pipe on the host when <link to="ISerialPort::hostMode"/> is
11319 PortMode_HostPipe, or the host serial device name when
11320 <link to="ISerialPort::hostMode"/> is PortMode_HostDevice. For both
11321 cases, setting a @c null or empty string as the attribute's value
11322 is an error. Otherwise, the value of this property is ignored.
11323 </desc>
11324 </attribute>
11325
11326 </interface>
11327
11328 <!--
11329 // IParallelPort
11330 /////////////////////////////////////////////////////////////////////////
11331 -->
11332
11333 <interface
11334 name="IParallelPort" extends="$unknown"
11335 uuid="0c925f06-dd10-4b77-8de8-294d738c3214"
11336 wsmap="managed"
11337 >
11338
11339 <desc>
11340 The IParallelPort interface represents the virtual parallel port device.
11341
11342 The virtual parallel port device acts like an ordinary parallel port
11343 inside the virtual machine. This device communicates to the real
11344 parallel port hardware using the name of the parallel device on the host
11345 computer specified in the #path attribute.
11346
11347 Each virtual parallel port device is assigned a base I/O address and an
11348 IRQ number that will be reported to the guest operating system and used
11349 to operate the given parallel port from within the virtual machine.
11350
11351 <see>IMachine::getParallelPort</see>
11352 </desc>
11353
11354 <attribute name="slot" type="unsigned long" readonly="yes">
11355 <desc>
11356 Slot number this parallel port is plugged into. Corresponds to
11357 the value you pass to <link to="IMachine::getParallelPort"/>
11358 to obtain this instance.
11359 </desc>
11360 </attribute>
11361
11362 <attribute name="enabled" type="boolean">
11363 <desc>
11364 Flag whether the parallel port is enabled. If disabled,
11365 the parallel port will not be reported to the guest OS.
11366 </desc>
11367 </attribute>
11368
11369 <attribute name="IOBase" type="unsigned long">
11370 <desc>Base I/O address of the parallel port.</desc>
11371 </attribute>
11372
11373 <attribute name="IRQ" type="unsigned long">
11374 <desc>IRQ number of the parallel port.</desc>
11375 </attribute>
11376
11377 <attribute name="path" type="wstring">
11378 <desc>
11379 Host parallel device name. If this parallel port is enabled, setting a
11380 @c null or an empty string as this attribute's value will result into
11381 an error.
11382 </desc>
11383 </attribute>
11384
11385 </interface>
11386
11387
11388 <!--
11389 // IMachineDebugger
11390 /////////////////////////////////////////////////////////////////////////
11391 -->
11392
11393 <interface
11394 name="IMachineDebugger" extends="$unknown"
11395 uuid="b0b2a2dd-0627-4502-91c2-ddc5e77609e0"
11396 wsmap="suppress"
11397 >
11398 <method name="resetStats">
11399 <desc>
11400 Reset VM statistics.
11401 </desc>
11402 <param name="pattern" type="wstring" dir="in">
11403 <desc>The selection pattern. A bit similar to filename globbing.</desc>
11404 </param>
11405 </method>
11406
11407 <method name="dumpStats">
11408 <desc>
11409 Dumps VM statistics.
11410 </desc>
11411 <param name="pattern" type="wstring" dir="in">
11412 <desc>The selection pattern. A bit similar to filename globbing.</desc>
11413 </param>
11414 </method>
11415
11416 <method name="getStats">
11417 <desc>
11418 Get the VM statistics in a XMLish format.
11419 </desc>
11420 <param name="pattern" type="wstring" dir="in">
11421 <desc>The selection pattern. A bit similar to filename globbing.</desc>
11422 </param>
11423 <param name="withDescriptions" type="boolean" dir="in">
11424 <desc>Whether to include the descriptions.</desc>
11425 </param>
11426 <param name="stats" type="wstring" dir="out">
11427 <desc>The XML document containing the statistics.</desc>
11428 </param>
11429 </method>
11430
11431 <method name="injectNMI">
11432 <desc>
11433 Inject an NMI into a running VT-x/AMD-V VM.
11434 </desc>
11435 </method>
11436
11437 <attribute name="singlestep" type="boolean">
11438 <desc>Switch for enabling singlestepping.</desc>
11439 </attribute>
11440
11441 <attribute name="recompileUser" type="boolean">
11442 <desc>Switch for forcing code recompilation for user mode code.</desc>
11443 </attribute>
11444
11445 <attribute name="recompileSupervisor" type="boolean">
11446 <desc>Switch for forcing code recompilation for supervisor mode code.</desc>
11447 </attribute>
11448
11449 <attribute name="PATMEnabled" type="boolean">
11450 <desc>Switch for enabling and disabling the PATM component.</desc>
11451 </attribute>
11452
11453 <attribute name="CSAMEnabled" type="boolean">
11454 <desc>Switch for enabling and disabling the CSAM component.</desc>
11455 </attribute>
11456
11457 <attribute name="logEnabled" type="boolean">
11458 <desc>Switch for enabling and disabling logging.</desc>
11459 </attribute>
11460
11461 <attribute name="HWVirtExEnabled" type="boolean" readonly="yes">
11462 <desc>
11463 Flag indicating whether the VM is currently making use of CPU hardware
11464 virtualization extensions.
11465 </desc>
11466 </attribute>
11467
11468 <attribute name="HWVirtExNestedPagingEnabled" type="boolean" readonly="yes">
11469 <desc>
11470 Flag indicating whether the VM is currently making use of the nested paging
11471 CPU hardware virtualization extension.
11472 </desc>
11473 </attribute>
11474
11475 <attribute name="HWVirtExVPIDEnabled" type="boolean" readonly="yes">
11476 <desc>
11477 Flag indicating whether the VM is currently making use of the VPID
11478 VT-x extension.
11479 </desc>
11480 </attribute>
11481
11482 <attribute name="PAEEnabled" type="boolean" readonly="yes">
11483 <desc>
11484 Flag indicating whether the VM is currently making use of the Physical
11485 Address Extension CPU feature.
11486 </desc>
11487 </attribute>
11488
11489 <attribute name="virtualTimeRate" type="unsigned long">
11490 <desc>
11491 The rate at which the virtual time runs expressed as a percentage.
11492 The accepted range is 2% to 20000%.
11493 </desc>
11494 </attribute>
11495
11496 <!-- @todo method for setting log flags, groups and destination! -->
11497
11498 <attribute name="VM" type="unsigned long long" readonly="yes">
11499 <desc>
11500 Gets the VM handle. This is only for internal use while
11501 we carve the details of this interface.
11502 </desc>
11503 </attribute>
11504
11505 </interface>
11506
11507 <!--
11508 // IUSBController
11509 /////////////////////////////////////////////////////////////////////////
11510 -->
11511
11512 <interface
11513 name="IUSBController" extends="$unknown"
11514 uuid="238540fa-4b73-435a-a38e-4e1d9eab5c17"
11515 wsmap="managed"
11516 >
11517 <attribute name="enabled" type="boolean">
11518 <desc>
11519 Flag whether the USB controller is present in the
11520 guest system. If disabled, the virtual guest hardware will
11521 not contain any USB controller. Can only be changed when
11522 the VM is powered off.
11523 </desc>
11524 </attribute>
11525
11526 <attribute name="enabledEhci" type="boolean">
11527 <desc>
11528 Flag whether the USB EHCI controller is present in the
11529 guest system. If disabled, the virtual guest hardware will
11530 not contain a USB EHCI controller. Can only be changed when
11531 the VM is powered off.
11532 </desc>
11533 </attribute>
11534
11535 <attribute name="USBStandard" type="unsigned short" readonly="yes">
11536 <desc>
11537 USB standard version which the controller implements.
11538 This is a BCD which means that the major version is in the
11539 high byte and minor version is in the low byte.
11540 </desc>
11541 </attribute>
11542
11543 <attribute name="deviceFilters" type="IUSBDeviceFilter" readonly="yes" safearray="yes">
11544 <desc>
11545 List of USB device filters associated with the machine.
11546
11547 If the machine is currently running, these filters are activated
11548 every time a new (supported) USB device is attached to the host
11549 computer that was not ignored by global filters
11550 (<link to="IHost::USBDeviceFilters"/>).
11551
11552 These filters are also activated when the machine is powered up.
11553 They are run against a list of all currently available USB
11554 devices (in states
11555 <link to="USBDeviceState_Available"/>,
11556 <link to="USBDeviceState_Busy"/>,
11557 <link to="USBDeviceState_Held"/>) that were not previously
11558 ignored by global filters.
11559
11560 If at least one filter matches the USB device in question, this
11561 device is automatically captured (attached to) the virtual USB
11562 controller of this machine.
11563
11564 <see>IUSBDeviceFilter, ::IUSBController</see>
11565 </desc>
11566 </attribute>
11567
11568 <method name="createDeviceFilter">
11569 <desc>
11570 Creates a new USB device filter. All attributes except
11571 the filter name are set to empty (any match),
11572 <i>active</i> is @c false (the filter is not active).
11573
11574 The created filter can then be added to the list of filters using
11575 <link to="#insertDeviceFilter"/>.
11576
11577 <result name="VBOX_E_INVALID_VM_STATE">
11578 The virtual machine is not mutable.
11579 </result>
11580
11581 <see>#deviceFilters</see>
11582 </desc>
11583 <param name="name" type="wstring" dir="in">
11584 <desc>
11585 Filter name. See <link to="IUSBDeviceFilter::name"/>
11586 for more info.
11587 </desc>
11588 </param>
11589 <param name="filter" type="IUSBDeviceFilter" dir="return">
11590 <desc>Created filter object.</desc>
11591 </param>
11592 </method>
11593
11594 <method name="insertDeviceFilter">
11595 <desc>
11596 Inserts the given USB device to the specified position
11597 in the list of filters.
11598
11599 Positions are numbered starting from <tt>0</tt>. If the specified
11600 position is equal to or greater than the number of elements in
11601 the list, the filter is added to the end of the collection.
11602
11603 <note>
11604 Duplicates are not allowed, so an attempt to insert a
11605 filter that is already in the collection, will return an
11606 error.
11607 </note>
11608
11609 <result name="VBOX_E_INVALID_VM_STATE">
11610 Virtual machine is not mutable.
11611 </result>
11612 <result name="E_INVALIDARG">
11613 USB device filter not created within this VirtualBox instance.
11614 </result>
11615 <result name="VBOX_E_INVALID_OBJECT_STATE">
11616 USB device filter already in list.
11617 </result>
11618
11619 <see>#deviceFilters</see>
11620 </desc>
11621 <param name="position" type="unsigned long" dir="in">
11622 <desc>Position to insert the filter to.</desc>
11623 </param>
11624 <param name="filter" type="IUSBDeviceFilter" dir="in">
11625 <desc>USB device filter to insert.</desc>
11626 </param>
11627 </method>
11628
11629 <method name="removeDeviceFilter">
11630 <desc>
11631 Removes a USB device filter from the specified position in the
11632 list of filters.
11633
11634 Positions are numbered starting from <tt>0</tt>. Specifying a
11635 position equal to or greater than the number of elements in
11636 the list will produce an error.
11637
11638 <see>#deviceFilters</see>
11639
11640 <result name="VBOX_E_INVALID_VM_STATE">
11641 Virtual machine is not mutable.
11642 </result>
11643 <result name="E_INVALIDARG">
11644 USB device filter list empty or invalid @a position.
11645 </result>
11646
11647 </desc>
11648 <param name="position" type="unsigned long" dir="in">
11649 <desc>Position to remove the filter from.</desc>
11650 </param>
11651 <param name="filter" type="IUSBDeviceFilter" dir="return">
11652 <desc>Removed USB device filter.</desc>
11653 </param>
11654 </method>
11655
11656 </interface>
11657
11658
11659 <!--
11660 // IUSBDevice
11661 /////////////////////////////////////////////////////////////////////////
11662 -->
11663
11664 <interface
11665 name="IUSBDevice" extends="$unknown"
11666 uuid="f8967b0b-4483-400f-92b5-8b675d98a85b"
11667 wsmap="managed"
11668 >
11669 <desc>
11670 The IUSBDevice interface represents a virtual USB device attached to the
11671 virtual machine.
11672
11673 A collection of objects implementing this interface is stored in the
11674 <link to="IConsole::USBDevices"/> attribute which lists all USB devices
11675 attached to a running virtual machine's USB controller.
11676 </desc>
11677
11678 <attribute name="id" type="wstring" readonly="yes">
11679 <desc>
11680 Unique USB device ID. This ID is built from #vendorId,
11681 #productId, #revision and #serialNumber.
11682 </desc>
11683 </attribute>
11684
11685 <attribute name="vendorId" type="unsigned short" readonly="yes">
11686 <desc>Vendor ID.</desc>
11687 </attribute>
11688
11689 <attribute name="productId" type="unsigned short" readonly="yes">
11690 <desc>Product ID.</desc>
11691 </attribute>
11692
11693 <attribute name="revision" type="unsigned short" readonly="yes">
11694 <desc>
11695 Product revision number. This is a packed BCD represented as
11696 unsigned short. The high byte is the integer part and the low
11697 byte is the decimal.
11698 </desc>
11699 </attribute>
11700
11701 <attribute name="manufacturer" type="wstring" readonly="yes">
11702 <desc>Manufacturer string.</desc>
11703 </attribute>
11704
11705 <attribute name="product" type="wstring" readonly="yes">
11706 <desc>Product string.</desc>
11707 </attribute>
11708
11709 <attribute name="serialNumber" type="wstring" readonly="yes">
11710 <desc>Serial number string.</desc>
11711 </attribute>
11712
11713 <attribute name="address" type="wstring" readonly="yes">
11714 <desc>Host specific address of the device.</desc>
11715 </attribute>
11716
11717 <attribute name="port" type="unsigned short" readonly="yes">
11718 <desc>
11719 Host USB port number the device is physically
11720 connected to.
11721 </desc>
11722 </attribute>
11723
11724 <attribute name="version" type="unsigned short" readonly="yes">
11725 <desc>
11726 The major USB version of the device - 1 or 2.
11727 </desc>
11728 </attribute>
11729
11730 <attribute name="portVersion" type="unsigned short" readonly="yes">
11731 <desc>
11732 The major USB version of the host USB port the device is
11733 physically connected to - 1 or 2. For devices not connected to
11734 anything this will have the same value as the version attribute.
11735 </desc>
11736 </attribute>
11737
11738 <attribute name="remote" type="boolean" readonly="yes">
11739 <desc>
11740 Whether the device is physically connected to a remote VRDP
11741 client or to a local host machine.
11742 </desc>
11743 </attribute>
11744
11745 </interface>
11746
11747
11748 <!--
11749 // IUSBDeviceFilter
11750 /////////////////////////////////////////////////////////////////////////
11751 -->
11752
11753 <interface
11754 name="IUSBDeviceFilter" extends="$unknown"
11755 uuid="d6831fb4-1a94-4c2c-96ef-8d0d6192066d"
11756 wsmap="managed"
11757 >
11758 <desc>
11759 The IUSBDeviceFilter interface represents an USB device filter used
11760 to perform actions on a group of USB devices.
11761
11762 This type of filters is used by running virtual machines to
11763 automatically capture selected USB devices once they are physically
11764 attached to the host computer.
11765
11766 A USB device is matched to the given device filter if and only if all
11767 attributes of the device match the corresponding attributes of the
11768 filter (that is, attributes are joined together using the logical AND
11769 operation). On the other hand, all together, filters in the list of
11770 filters carry the semantics of the logical OR operation. So if it is
11771 desirable to create a match like "this vendor id OR this product id",
11772 one needs to create two filters and specify "any match" (see below)
11773 for unused attributes.
11774
11775 All filter attributes used for matching are strings. Each string
11776 is an expression representing a set of values of the corresponding
11777 device attribute, that will match the given filter. Currently, the
11778 following filtering expressions are supported:
11779
11780 <ul>
11781 <li><i>Interval filters</i>. Used to specify valid intervals for
11782 integer device attributes (Vendor ID, Product ID and Revision).
11783 The format of the string is:
11784
11785 <tt>int:((m)|([m]-[n]))(,(m)|([m]-[n]))*</tt>
11786
11787 where <tt>m</tt> and <tt>n</tt> are integer numbers, either in octal
11788 (starting from <tt>0</tt>), hexadecimal (starting from <tt>0x</tt>)
11789 or decimal (otherwise) form, so that <tt>m &lt; n</tt>. If <tt>m</tt>
11790 is omitted before a dash (<tt>-</tt>), the minimum possible integer
11791 is assumed; if <tt>n</tt> is omitted after a dash, the maximum
11792 possible integer is assumed.
11793 </li>
11794 <li><i>Boolean filters</i>. Used to specify acceptable values for
11795 boolean device attributes. The format of the string is:
11796
11797 <tt>true|false|yes|no|0|1</tt>
11798
11799 </li>
11800 <li><i>Exact match</i>. Used to specify a single value for the given
11801 device attribute. Any string that doesn't start with <tt>int:</tt>
11802 represents the exact match. String device attributes are compared to
11803 this string including case of symbols. Integer attributes are first
11804 converted to a string (see individual filter attributes) and then
11805 compared ignoring case.
11806
11807 </li>
11808 <li><i>Any match</i>. Any value of the corresponding device attribute
11809 will match the given filter. An empty or @c null string is
11810 used to construct this type of filtering expressions.
11811
11812 </li>
11813 </ul>
11814
11815 <note>
11816 On the Windows host platform, interval filters are not currently
11817 available. Also all string filter attributes
11818 (<link to="#manufacturer"/>, <link to="#product"/>,
11819 <link to="#serialNumber"/>) are ignored, so they behave as
11820 <i>any match</i> no matter what string expression is specified.
11821 </note>
11822
11823 <see>IUSBController::deviceFilters, IHostUSBDeviceFilter</see>
11824 </desc>
11825
11826 <attribute name="name" type="wstring">
11827 <desc>
11828 Visible name for this filter.
11829 This name is used to visually distinguish one filter from another,
11830 so it can neither be @c null nor an empty string.
11831 </desc>
11832 </attribute>
11833
11834 <attribute name="active" type="boolean">
11835 <desc>Whether this filter active or has been temporarily disabled.</desc>
11836 </attribute>
11837
11838 <attribute name="vendorId" type="wstring">
11839 <desc>
11840 <link to="IUSBDevice::vendorId">Vendor ID</link> filter.
11841 The string representation for the <i>exact matching</i>
11842 has the form <tt>XXXX</tt>, where <tt>X</tt> is the hex digit
11843 (including leading zeroes).
11844 </desc>
11845 </attribute>
11846
11847 <attribute name="productId" type="wstring">
11848 <desc>
11849 <link to="IUSBDevice::productId">Product ID</link> filter.
11850 The string representation for the <i>exact matching</i>
11851 has the form <tt>XXXX</tt>, where <tt>X</tt> is the hex digit
11852 (including leading zeroes).
11853 </desc>
11854 </attribute>
11855
11856 <attribute name="revision" type="wstring">
11857 <desc>
11858 <link to="IUSBDevice::productId">Product revision number</link>
11859 filter. The string representation for the <i>exact matching</i>
11860 has the form <tt>IIFF</tt>, where <tt>I</tt> is the decimal digit
11861 of the integer part of the revision, and <tt>F</tt> is the
11862 decimal digit of its fractional part (including leading and
11863 trailing zeros).
11864 Note that for interval filters, it's best to use the hexadecimal
11865 form, because the revision is stored as a 16 bit packed BCD value;
11866 so the expression <tt>int:0x0100-0x0199</tt> will match any
11867 revision from <tt>1.0</tt> to <tt>1.99</tt>.
11868 </desc>
11869 </attribute>
11870
11871 <attribute name="manufacturer" type="wstring">
11872 <desc>
11873 <link to="IUSBDevice::manufacturer">Manufacturer</link> filter.
11874 </desc>
11875 </attribute>
11876
11877 <attribute name="product" type="wstring">
11878 <desc>
11879 <link to="IUSBDevice::product">Product</link> filter.
11880 </desc>
11881 </attribute>
11882
11883 <attribute name="serialNumber" type="wstring">
11884 <desc>
11885 <link to="IUSBDevice::serialNumber">Serial number</link> filter.
11886 </desc>
11887 </attribute>
11888
11889 <attribute name="port" type="wstring">
11890 <desc>
11891 <link to="IUSBDevice::port">Host USB port</link> filter.
11892 </desc>
11893 </attribute>
11894
11895 <attribute name="remote" type="wstring">
11896 <desc>
11897 <link to="IUSBDevice::remote">Remote state</link> filter.
11898 <note>
11899 This filter makes sense only for machine USB filters,
11900 i.e. it is ignored by IHostUSBDeviceFilter objects.
11901 </note>
11902 </desc>
11903 </attribute>
11904
11905 <attribute name="maskedInterfaces" type="unsigned long">
11906 <desc>
11907 This is an advanced option for hiding one or more USB interfaces
11908 from the guest. The value is a bit mask where the bits that are set
11909 means the corresponding USB interface should be hidden, masked off
11910 if you like.
11911 This feature only works on Linux hosts.
11912 </desc>
11913 </attribute>
11914
11915 </interface>
11916
11917
11918 <!--
11919 // IHostUSBDevice
11920 /////////////////////////////////////////////////////////////////////////
11921 -->
11922
11923 <enum
11924 name="USBDeviceState"
11925 uuid="b99a2e65-67fb-4882-82fd-f3e5e8193ab4"
11926 >
11927 <desc>
11928 USB device state. This enumeration represents all possible states
11929 of the USB device physically attached to the host computer regarding
11930 its state on the host computer and availability to guest computers
11931 (all currently running virtual machines).
11932
11933 Once a supported USB device is attached to the host, global USB
11934 filters (<link to="IHost::USBDeviceFilters"/>) are activated. They can
11935 either ignore the device, or put it to USBDeviceState_Held state, or do
11936 nothing. Unless the device is ignored by global filters, filters of all
11937 currently running guests (<link to="IUSBController::deviceFilters"/>) are
11938 activated that can put it to USBDeviceState_Captured state.
11939
11940 If the device was ignored by global filters, or didn't match
11941 any filters at all (including guest ones), it is handled by the host
11942 in a normal way. In this case, the device state is determined by
11943 the host and can be one of USBDeviceState_Unavailable, USBDeviceState_Busy
11944 or USBDeviceState_Available, depending on the current device usage.
11945
11946 Besides auto-capturing based on filters, the device can be manually
11947 captured by guests (<link to="IConsole::attachUSBDevice"/>) if its
11948 state is USBDeviceState_Busy, USBDeviceState_Available or
11949 USBDeviceState_Held.
11950
11951 <note>
11952 Due to differences in USB stack implementations in Linux and Win32,
11953 states USBDeviceState_Busy and USBDeviceState_vailable are applicable
11954 only to the Linux version of the product. This also means that (<link
11955 to="IConsole::attachUSBDevice"/>) can only succeed on Win32 if the
11956 device state is USBDeviceState_Held.
11957 </note>
11958
11959 <see>IHostUSBDevice, IHostUSBDeviceFilter</see>
11960 </desc>
11961
11962 <const name="NotSupported" value="0">
11963 <desc>
11964 Not supported by the VirtualBox server, not available to guests.
11965 </desc>
11966 </const>
11967 <const name="Unavailable" value="1">
11968 <desc>
11969 Being used by the host computer exclusively,
11970 not available to guests.
11971 </desc>
11972 </const>
11973 <const name="Busy" value="2">
11974 <desc>
11975 Being used by the host computer, potentially available to guests.
11976 </desc>
11977 </const>
11978 <const name="Available" value="3">
11979 <desc>
11980 Not used by the host computer, available to guests (the host computer
11981 can also start using the device at any time).
11982 </desc>
11983 </const>
11984 <const name="Held" value="4">
11985 <desc>
11986 Held by the VirtualBox server (ignored by the host computer),
11987 available to guests.
11988 </desc>
11989 </const>
11990 <const name="Captured" value="5">
11991 <desc>
11992 Captured by one of the guest computers, not available
11993 to anybody else.
11994 </desc>
11995 </const>
11996 </enum>
11997
11998 <interface
11999 name="IHostUSBDevice" extends="IUSBDevice"
12000 uuid="173b4b44-d268-4334-a00d-b6521c9a740a"
12001 wsmap="managed"
12002 >
12003 <desc>
12004 The IHostUSBDevice interface represents a physical USB device attached
12005 to the host computer.
12006
12007 Besides properties inherited from IUSBDevice, this interface adds the
12008 <link to="#state"/> property that holds the current state of the USB
12009 device.
12010
12011 <see>IHost::USBDevices, IHost::USBDeviceFilters</see>
12012 </desc>
12013
12014 <attribute name="state" type="USBDeviceState" readonly="yes">
12015 <desc>
12016 Current state of the device.
12017 </desc>
12018 </attribute>
12019
12020 <!-- @todo add class, subclass, bandwidth, configs, interfaces endpoints and such later. -->
12021
12022 </interface>
12023
12024
12025 <!--
12026 // IHostUSBDeviceFilter
12027 /////////////////////////////////////////////////////////////////////////
12028 -->
12029
12030 <enum
12031 name="USBDeviceFilterAction"
12032 uuid="cbc30a49-2f4e-43b5-9da6-121320475933"
12033 >
12034 <desc>
12035 Actions for host USB device filters.
12036 <see>IHostUSBDeviceFilter, USBDeviceState</see>
12037 </desc>
12038
12039 <const name="Null" value="0">
12040 <desc>Null value (never used by the API).</desc>
12041 </const>
12042 <const name="Ignore" value="1">
12043 <desc>Ignore the matched USB device.</desc>
12044 </const>
12045 <const name="Hold" value="2">
12046 <desc>Hold the matched USB device.</desc>
12047 </const>
12048 </enum>
12049
12050 <interface
12051 name="IHostUSBDeviceFilter" extends="IUSBDeviceFilter"
12052 uuid="4cc70246-d74a-400f-8222-3900489c0374"
12053 wsmap="managed"
12054 >
12055 <desc>
12056 The IHostUSBDeviceFilter interface represents a global filter for a
12057 physical USB device used by the host computer. Used indirectly in
12058 <link to="IHost::USBDeviceFilters"/>.
12059
12060 Using filters of this type, the host computer determines the initial
12061 state of the USB device after it is physically attached to the
12062 host's USB controller.
12063
12064 <note>
12065 The <link to="#remote"/> attribute is ignored by this type of
12066 filters, because it makes sense only for
12067 <link to="IUSBController::deviceFilters">machine USB filters</link>.
12068 </note>
12069
12070 <see>IHost::USBDeviceFilters</see>
12071 </desc>
12072
12073 <attribute name="action" type="USBDeviceFilterAction">
12074 <desc>
12075 Action performed by the host when an attached USB device
12076 matches this filter.
12077 </desc>
12078 </attribute>
12079
12080 </interface>
12081
12082 <!--
12083 // IAudioAdapter
12084 /////////////////////////////////////////////////////////////////////////
12085 -->
12086
12087 <enum
12088 name="AudioDriverType"
12089 uuid="4bcc3d73-c2fe-40db-b72f-0c2ca9d68496"
12090 >
12091 <desc>
12092 Host audio driver type.
12093 </desc>
12094
12095 <const name="Null" value="0">
12096 <desc>Null value, also means "dummy audio driver".</desc>
12097 </const>
12098 <const name="WinMM" value="1"/>
12099 <const name="OSS" value="2"/>
12100 <const name="ALSA" value="3"/>
12101 <const name="DirectSound" value="4"/>
12102 <const name="CoreAudio" value="5"/>
12103 <const name="MMPM" value="6"/>
12104 <const name="Pulse" value="7"/>
12105 <const name="SolAudio" value="8"/>
12106 </enum>
12107
12108 <enum
12109 name="AudioControllerType"
12110 uuid="7afd395c-42c3-444e-8788-3ce80292f36c"
12111 >
12112 <desc>
12113 Virtual audio controller type.
12114 </desc>
12115
12116 <const name="AC97" value="0"/>
12117 <const name="SB16" value="1"/>
12118 </enum>
12119
12120 <interface
12121 name="IAudioAdapter" extends="$unknown"
12122 uuid="921873db-5f3f-4b69-91f9-7be9e535a2cb"
12123 wsmap="managed"
12124 >
12125 <desc>
12126 The IAudioAdapter interface represents the virtual audio adapter of
12127 the virtual machine. Used in <link to="IMachine::audioAdapter"/>.
12128 </desc>
12129 <attribute name="enabled" type="boolean">
12130 <desc>
12131 Flag whether the audio adapter is present in the
12132 guest system. If disabled, the virtual guest hardware will
12133 not contain any audio adapter. Can only be changed when
12134 the VM is not running.
12135 </desc>
12136 </attribute>
12137 <attribute name="audioController" type="AudioControllerType">
12138 <desc>
12139 The audio hardware we emulate.
12140 </desc>
12141 </attribute>
12142 <attribute name="audioDriver" type="AudioDriverType">
12143 <desc>
12144 Audio driver the adapter is connected to. This setting
12145 can only be changed when the VM is not running.
12146 </desc>
12147 </attribute>
12148 </interface>
12149
12150 <!--
12151 // IVRDPServer
12152 /////////////////////////////////////////////////////////////////////////
12153 -->
12154
12155 <enum
12156 name="VRDPAuthType"
12157 uuid="3d91887a-b67f-4b33-85bf-2da7ab1ea83a"
12158 >
12159 <desc>
12160 VRDP authentication type.
12161 </desc>
12162
12163 <const name="Null" value="0">
12164 <desc>Null value, also means "no authentication".</desc>
12165 </const>
12166 <const name="External" value="1"/>
12167 <const name="Guest" value="2"/>
12168 </enum>
12169
12170 <interface
12171 name="IVRDPServer" extends="$unknown"
12172 uuid="f4584ae7-6bce-474b-83d6-17d235e6aa89"
12173 wsmap="managed"
12174 >
12175 <attribute name="enabled" type="boolean">
12176 <desc>VRDP server status.</desc>
12177 </attribute>
12178
12179 <attribute name="port" type="unsigned long">
12180 <desc>
12181 VRDP server port number.
12182 <note>
12183 Setting the value of this property to <tt>0</tt> will reset the port
12184 number to the default value which is
12185 currently <tt>3389</tt>. Reading this property will always return a
12186 real port number, even after it has been set to <tt>0</tt> (in which
12187 case the default port is returned).
12188 </note>
12189 </desc>
12190 </attribute>
12191
12192 <attribute name="netAddress" type="wstring">
12193 <desc>VRDP server address.</desc>
12194 </attribute>
12195
12196 <attribute name="authType" type="VRDPAuthType">
12197 <desc>VRDP authentication method.</desc>
12198 </attribute>
12199
12200 <attribute name="authTimeout" type="unsigned long">
12201 <desc>Timeout for guest authentication. Milliseconds.</desc>
12202 </attribute>
12203
12204 <attribute name="allowMultiConnection" type="boolean">
12205 <desc>
12206 Flag whether multiple simultaneous connections to the VM are permitted.
12207 Note that this will be replaced by a more powerful mechanism in the future.
12208 </desc>
12209 </attribute>
12210
12211 <attribute name="reuseSingleConnection" type="boolean">
12212 <desc>
12213 Flag whether the existing connection must be dropped and a new connection
12214 must be established by the VRDP server, when a new client connects in single
12215 connection mode.
12216 </desc>
12217 </attribute>
12218
12219 </interface>
12220
12221
12222 <!--
12223 // ISharedFolder
12224 /////////////////////////////////////////////////////////////////////////
12225 -->
12226
12227 <interface
12228 name="ISharedFolder" extends="$unknown"
12229 uuid="64637bb2-9e17-471c-b8f3-f8968dd9884e"
12230 wsmap="struct"
12231 >
12232 <desc>
12233 The ISharedFolder interface represents a folder in the host computer's
12234 file system accessible from the guest OS running inside a virtual
12235 machine using an associated logical name.
12236
12237 There are three types of shared folders:
12238 <ul>
12239 <li><i>Global</i> (<link to="IVirtualBox::sharedFolders"/>), shared
12240 folders available to all virtual machines.</li>
12241 <li><i>Permanent</i> (<link to="IMachine::sharedFolders"/>),
12242 VM-specific shared folders available to the given virtual machine at
12243 startup.</li>
12244 <li><i>Transient</i> (<link to="IConsole::sharedFolders"/>),
12245 VM-specific shared folders created in the session context (for
12246 example, when the virtual machine is running) and automatically
12247 discarded when the session is closed (the VM is powered off).</li>
12248 </ul>
12249
12250 Logical names of shared folders must be unique within the given scope
12251 (global, permanent or transient). However, they do not need to be unique
12252 across scopes. In this case, the definition of the shared folder in a
12253 more specific scope takes precedence over definitions in all other
12254 scopes. The order of precedence is (more specific to more general):
12255 <ol>
12256 <li>Transient definitions</li>
12257 <li>Permanent definitions</li>
12258 <li>Global definitions</li>
12259 </ol>
12260
12261 For example, if MyMachine has a shared folder named
12262 <tt>C_DRIVE</tt> (that points to <tt>C:\\</tt>), then creating a
12263 transient shared folder named <tt>C_DRIVE</tt> (that points
12264 to <tt>C:\\\\WINDOWS</tt>) will change the definition
12265 of <tt>C_DRIVE</tt> in the guest OS so
12266 that <tt>\\\\VBOXSVR\\C_DRIVE</tt> will give access
12267 to <tt>C:\\WINDOWS</tt> instead of <tt>C:\\</tt> on the host
12268 PC. Removing the transient shared folder <tt>C_DRIVE</tt> will restore
12269 the previous (permanent) definition of <tt>C_DRIVE</tt> that points
12270 to <tt>C:\\</tt> if it still exists.
12271
12272 Note that permanent and transient shared folders of different machines
12273 are in different name spaces, so they don't overlap and don't need to
12274 have unique logical names.
12275
12276 <note>
12277 Global shared folders are not implemented in the current version of the
12278 product.
12279 </note>
12280 </desc>
12281
12282 <attribute name="name" type="wstring" readonly="yes">
12283 <desc>Logical name of the shared folder.</desc>
12284 </attribute>
12285
12286 <attribute name="hostPath" type="wstring" readonly="yes">
12287 <desc>Full path to the shared folder in the host file system.</desc>
12288 </attribute>
12289
12290 <attribute name="accessible" type="boolean" readonly="yes">
12291 <desc>
12292 Whether the folder defined by the host path is currently
12293 accessible or not.
12294 For example, the folder can be unaccessible if it is placed
12295 on the network share that is not available by the time
12296 this property is read.
12297 </desc>
12298 </attribute>
12299
12300 <attribute name="writable" type="boolean" readonly="yes">
12301 <desc>
12302 Whether the folder defined by the host path is writable or
12303 not.
12304 </desc>
12305 </attribute>
12306
12307 <attribute name="lastAccessError" type="wstring" readonly="yes">
12308 <desc>
12309 Text message that represents the result of the last accessibility
12310 check.
12311
12312 Accessibility checks are performed each time the <link to="#accessible"/>
12313 attribute is read. An empty string is returned if the last
12314 accessibility check was successful. A non-empty string indicates a
12315 failure and should normally describe a reason of the failure (for
12316 example, a file read error).
12317 </desc>
12318 </attribute>
12319
12320 </interface>
12321
12322 <!--
12323 // ISession
12324 /////////////////////////////////////////////////////////////////////////
12325 -->
12326
12327 <interface
12328 name="IInternalSessionControl" extends="$unknown"
12329 uuid="b26552e7-9534-4f47-b766-98eac648a90d"
12330 internal="yes"
12331 wsmap="suppress"
12332 >
12333 <method name="getPID">
12334 <desc>PID of the process that has created this Session object.
12335 </desc>
12336 <param name="pid" type="unsigned long" dir="return"/>
12337 </method>
12338
12339 <method name="getRemoteConsole">
12340 <desc>
12341 Returns the console object suitable for remote control.
12342
12343 <result name="VBOX_E_INVALID_VM_STATE">
12344 Session state prevents operation.
12345 </result>
12346 <result name="VBOX_E_INVALID_OBJECT_STATE">
12347 Session type prevents operation.
12348 </result>
12349
12350 </desc>
12351 <param name="console" type="IConsole" dir="return"/>
12352 </method>
12353
12354 <method name="assignMachine">
12355 <desc>
12356 Assigns the machine object associated with this direct-type
12357 session or informs the session that it will be a remote one
12358 (if @a machine == @c null).
12359
12360 <result name="VBOX_E_INVALID_VM_STATE">
12361 Session state prevents operation.
12362 </result>
12363 <result name="VBOX_E_INVALID_OBJECT_STATE">
12364 Session type prevents operation.
12365 </result>
12366
12367 </desc>
12368 <param name="machine" type="IMachine" dir="in"/>
12369 </method>
12370
12371 <method name="assignRemoteMachine">
12372 <desc>
12373 Assigns the machine and the (remote) console object associated with
12374 this remote-type session.
12375
12376 <result name="VBOX_E_INVALID_VM_STATE">
12377 Session state prevents operation.
12378 </result>
12379
12380 </desc>
12381 <param name="machine" type="IMachine" dir="in"/>
12382 <param name="console" type="IConsole" dir="in"/>
12383 </method>
12384
12385 <method name="updateMachineState">
12386 <desc>
12387 Updates the machine state in the VM process.
12388 Must be called only in certain cases
12389 (see the method implementation).
12390
12391 <result name="VBOX_E_INVALID_VM_STATE">
12392 Session state prevents operation.
12393 </result>
12394 <result name="VBOX_E_INVALID_OBJECT_STATE">
12395 Session type prevents operation.
12396 </result>
12397
12398 </desc>
12399 <param name="aMachineState" type="MachineState" dir="in"/>
12400 </method>
12401
12402 <method name="uninitialize">
12403 <desc>
12404 Uninitializes (closes) this session. Used by VirtualBox to close
12405 the corresponding remote session when the direct session dies
12406 or gets closed.
12407
12408 <result name="VBOX_E_INVALID_VM_STATE">
12409 Session state prevents operation.
12410 </result>
12411
12412 </desc>
12413 </method>
12414
12415 <method name="onDVDDriveChange">
12416 <desc>
12417 Triggered when settings of the DVD drive object of the
12418 associated virtual machine have changed.
12419
12420 <result name="VBOX_E_INVALID_VM_STATE">
12421 Session state prevents operation.
12422 </result>
12423 <result name="VBOX_E_INVALID_OBJECT_STATE">
12424 Session type prevents operation.
12425 </result>
12426
12427 </desc>
12428 </method>
12429
12430 <method name="onFloppyDriveChange">
12431 <desc>
12432 Triggered when settings of the floppy drive object of the
12433 associated virtual machine have changed.
12434
12435 <result name="VBOX_E_INVALID_VM_STATE">
12436 Session state prevents operation.
12437 </result>
12438 <result name="VBOX_E_INVALID_OBJECT_STATE">
12439 Session type prevents operation.
12440 </result>
12441
12442 </desc>
12443 </method>
12444
12445 <method name="onNetworkAdapterChange">
12446 <desc>
12447 Triggered when settings of a network adapter of the
12448 associated virtual machine have changed.
12449
12450 <result name="VBOX_E_INVALID_VM_STATE">
12451 Session state prevents operation.
12452 </result>
12453 <result name="VBOX_E_INVALID_OBJECT_STATE">
12454 Session type prevents operation.
12455 </result>
12456
12457 </desc>
12458 <param name="networkAdapter" type="INetworkAdapter" dir="in"/>
12459 </method>
12460
12461 <method name="onSerialPortChange">
12462 <desc>
12463 Triggered when settings of a serial port of the
12464 associated virtual machine have changed.
12465
12466 <result name="VBOX_E_INVALID_VM_STATE">
12467 Session state prevents operation.
12468 </result>
12469 <result name="VBOX_E_INVALID_OBJECT_STATE">
12470 Session type prevents operation.
12471 </result>
12472
12473 </desc>
12474 <param name="serialPort" type="ISerialPort" dir="in"/>
12475 </method>
12476
12477 <method name="onParallelPortChange">
12478 <desc>
12479 Triggered when settings of a parallel port of the
12480 associated virtual machine have changed.
12481
12482 <result name="VBOX_E_INVALID_VM_STATE">
12483 Session state prevents operation.
12484 </result>
12485 <result name="VBOX_E_INVALID_OBJECT_STATE">
12486 Session type prevents operation.
12487 </result>
12488
12489 </desc>
12490 <param name="parallelPort" type="IParallelPort" dir="in"/>
12491 </method>
12492
12493 <method name="onStorageControllerChange">
12494 <desc>
12495 Triggered when settings of a storage controller of the
12496 associated virtual machine have changed.
12497
12498 <result name="VBOX_E_INVALID_VM_STATE">
12499 Session state prevents operation.
12500 </result>
12501 <result name="VBOX_E_INVALID_OBJECT_STATE">
12502 Session type prevents operation.
12503 </result>
12504
12505 </desc>
12506 </method>
12507
12508 <method name="onVRDPServerChange">
12509 <desc>
12510 Triggered when settings of the VRDP server object of the
12511 associated virtual machine have changed.
12512
12513 <result name="VBOX_E_INVALID_VM_STATE">
12514 Session state prevents operation.
12515 </result>
12516 <result name="VBOX_E_INVALID_OBJECT_STATE">
12517 Session type prevents operation.
12518 </result>
12519
12520 </desc>
12521 </method>
12522
12523 <method name="onUSBControllerChange">
12524 <desc>
12525 Triggered when settings of the USB controller object of the
12526 associated virtual machine have changed.
12527
12528 <result name="VBOX_E_INVALID_VM_STATE">
12529 Session state prevents operation.
12530 </result>
12531 <result name="VBOX_E_INVALID_OBJECT_STATE">
12532 Session type prevents operation.
12533 </result>
12534
12535 </desc>
12536 </method>
12537
12538 <method name="onSharedFolderChange">
12539 <desc>
12540 Triggered when a permanent (global or machine) shared folder has been
12541 created or removed.
12542 <note>
12543 We don't pass shared folder parameters in this notification because
12544 the order in which parallel notifications are delivered is not defined,
12545 therefore it could happen that these parameters were outdated by the
12546 time of processing this notification.
12547 </note>
12548
12549 <result name="VBOX_E_INVALID_VM_STATE">
12550 Session state prevents operation.
12551 </result>
12552 <result name="VBOX_E_INVALID_OBJECT_STATE">
12553 Session type prevents operation.
12554 </result>
12555
12556 </desc>
12557 <param name="global" type="boolean" dir="in"/>
12558 </method>
12559
12560 <method name="onUSBDeviceAttach">
12561 <desc>
12562 Triggered when a request to capture a USB device (as a result
12563 of matched USB filters or direct call to
12564 <link to="IConsole::attachUSBDevice"/>) has completed.
12565 A @c null @a error object means success, otherwise it
12566 describes a failure.
12567
12568 <result name="VBOX_E_INVALID_VM_STATE">
12569 Session state prevents operation.
12570 </result>
12571 <result name="VBOX_E_INVALID_OBJECT_STATE">
12572 Session type prevents operation.
12573 </result>
12574
12575 </desc>
12576 <param name="device" type="IUSBDevice" dir="in"/>
12577 <param name="error" type="IVirtualBoxErrorInfo" dir="in"/>
12578 <param name="maskedInterfaces" type="unsigned long" dir="in"/>
12579 </method>
12580
12581 <method name="onUSBDeviceDetach">
12582 <desc>
12583 Triggered when a request to release the USB device (as a result
12584 of machine termination or direct call to
12585 <link to="IConsole::detachUSBDevice"/>) has completed.
12586 A @c null @a error object means success, otherwise it
12587 describes a failure.
12588
12589 <result name="VBOX_E_INVALID_VM_STATE">
12590 Session state prevents operation.
12591 </result>
12592 <result name="VBOX_E_INVALID_OBJECT_STATE">
12593 Session type prevents operation.
12594 </result>
12595
12596 </desc>
12597 <param name="id" type="wstring" dir="in"/>
12598 <param name="error" type="IVirtualBoxErrorInfo" dir="in"/>
12599 </method>
12600
12601 <method name="onShowWindow">
12602 <desc>
12603 Called by <link to="IMachine::canShowConsoleWindow"/> and by
12604 <link to="IMachine::showConsoleWindow"/> in order to notify
12605 console callbacks
12606 <link to="IConsoleCallback::onCanShowWindow"/>
12607 and <link to="IConsoleCallback::onShowWindow"/>.
12608
12609 <result name="VBOX_E_INVALID_OBJECT_STATE">
12610 Session type prevents operation.
12611 </result>
12612
12613 </desc>
12614 <param name="check" type="boolean" dir="in"/>
12615 <param name="canShow" type="boolean" dir="out"/>
12616 <param name="winId" type="unsigned long long" dir="out"/>
12617 </method>
12618
12619 <method name="accessGuestProperty">
12620 <desc>
12621 Called by <link to="IMachine::getGuestProperty"/> and by
12622 <link to="IMachine::setGuestProperty"/> in order to read and
12623 modify guest properties.
12624
12625 <result name="VBOX_E_INVALID_VM_STATE">
12626 Machine session is not open.
12627 </result>
12628 <result name="VBOX_E_INVALID_OBJECT_STATE">
12629 Session type is not direct.
12630 </result>
12631
12632 </desc>
12633 <param name="name" type="wstring" dir="in"/>
12634 <param name="value" type="wstring" dir="in"/>
12635 <param name="flags" type="wstring" dir="in"/>
12636 <param name="isSetter" type="boolean" dir="in"/>
12637 <param name="retValue" type="wstring" dir="out"/>
12638 <param name="retTimestamp" type="unsigned long long" dir="out"/>
12639 <param name="retFlags" type="wstring" dir="out"/>
12640 </method>
12641
12642 <method name="enumerateGuestProperties">
12643 <desc>
12644 Return a list of the guest properties matching a set of patterns along
12645 with their values, time stamps and flags.
12646
12647 <result name="VBOX_E_INVALID_VM_STATE">
12648 Machine session is not open.
12649 </result>
12650 <result name="VBOX_E_INVALID_OBJECT_STATE">
12651 Session type is not direct.
12652 </result>
12653
12654 </desc>
12655 <param name="patterns" type="wstring" dir="in">
12656 <desc>
12657 The patterns to match the properties against as a comma-separated
12658 string. If this is empty, all properties currently set will be
12659 returned.
12660 </desc>
12661 </param>
12662 <param name="key" type="wstring" dir="out" safearray="yes">
12663 <desc>
12664 The key names of the properties returned.
12665 </desc>
12666 </param>
12667 <param name="value" type="wstring" dir="out" safearray="yes">
12668 <desc>
12669 The values of the properties returned. The array entries match the
12670 corresponding entries in the @a key array.
12671 </desc>
12672 </param>
12673 <param name="timestamp" type="unsigned long long" dir="out" safearray="yes">
12674 <desc>
12675 The time stamps of the properties returned. The array entries match
12676 the corresponding entries in the @a key array.
12677 </desc>
12678 </param>
12679 <param name="flags" type="wstring" dir="out" safearray="yes">
12680 <desc>
12681 The flags of the properties returned. The array entries match the
12682 corresponding entries in the @a key array.
12683 </desc>
12684 </param>
12685 </method>
12686
12687 </interface>
12688
12689 <interface
12690 name="ISession" extends="$dispatched"
12691 uuid="12F4DCDB-12B2-4ec1-B7CD-DDD9F6C5BF4D"
12692 wsmap="managed"
12693 >
12694 <desc>
12695 The ISession interface represents a serialization primitive for virtual
12696 machines.
12697
12698 With VirtualBox, every time one wishes to manipulate a virtual machine
12699 (e.g. change its settings or start execution), a session object is
12700 required. Such an object must be passed to one of the session methods
12701 that open the given session, which then initiates the machine manipulation.
12702
12703 A session serves several purposes: it identifies to the inter-process VirtualBox
12704 code which process is currently working with the virtual machine, and it ensures
12705 that there are no incompatible requests from several processes for the
12706 same virtual machine. Session objects can therefore be thought of as mutex
12707 semaphores that lock virtual machines to prevent conflicting accesses from
12708 several processes.
12709
12710 How sessions objects are used depends on whether you use the Main API
12711 via COM or via the webservice:
12712
12713 <ul>
12714 <li>When using the COM API directly, an object of the Session class from the
12715 VirtualBox type library needs to be created. In regular COM C++ client code,
12716 this can be done by calling <tt>createLocalObject()</tt>, a standard COM API.
12717 This object will then act as a local session object in further calls to open
12718 a session.
12719 </li>
12720
12721 <li>In the webservice, the session manager (IWebsessionManager) instead creates
12722 one session object automatically when <link to="IWebsessionManager::logon" />
12723 is called. A managed object reference to that session object can be retrieved by
12724 calling <link to="IWebsessionManager::getSessionObject" />. This session object
12725 reference can then be used to open sessions.
12726 </li>
12727 </ul>
12728
12729 Sessions are mainly used in two variations:
12730
12731 <ul>
12732 <li>
12733 To start a virtual machine in a separate process, one would call
12734 <link to="IVirtualBox::openRemoteSession"/>, which requires a session
12735 object as its first parameter. This session then identifies the caller
12736 and lets him control the started machine (for example, pause machine
12737 execution or power it down) as well as be notified about machine
12738 execution state changes.
12739 </li>
12740
12741 <li>To alter machine settings, or to start machine execution within the
12742 current process, one needs to open a direct session for the machine first by
12743 calling <link to="IVirtualBox::openSession"/>. While a direct session
12744 is open within one process, no any other process may open another direct
12745 session for the same machine. This prevents the machine from being changed
12746 by other processes while it is running or while the machine is being configured.
12747 </li>
12748 </ul>
12749
12750 One also can attach to an existing direct session already opened by
12751 another process (for example, in order to send a control request to the
12752 virtual machine such as the pause or the reset request). This is done by
12753 calling <link to="IVirtualBox::openExistingSession"/>.
12754
12755 <note>
12756 Unless you are trying to write a new VirtualBox front-end that
12757 performs direct machine execution (like the VirtualBox or VBoxSDL
12758 front-ends), don't call <link to="IConsole::powerUp"/> in a direct
12759 session opened by <link to="IVirtualBox::openSession"/> and use this
12760 session only to change virtual machine settings. If you simply want to
12761 start virtual machine execution using one of the existing front-ends
12762 (for example the VirtualBox GUI or headless server), simply use
12763 <link to="IVirtualBox::openRemoteSession"/>; these front-ends
12764 will power up the machine automatically for you.
12765 </note>
12766 </desc>
12767
12768 <attribute name="state" type="SessionState" readonly="yes">
12769 <desc>Current state of this session.</desc>
12770 </attribute>
12771
12772 <attribute name="type" type="SessionType" readonly="yes">
12773 <desc>
12774 Type of this session. The value of this attribute is valid only
12775 if the session is currently open (i.e. its #state is
12776 SessionType_SessionOpen), otherwise an error will be returned.
12777 </desc>
12778 </attribute>
12779
12780 <attribute name="machine" type="IMachine" readonly="yes">
12781 <desc>Machine object associated with this session.</desc>
12782 </attribute>
12783
12784 <attribute name="console" type="IConsole" readonly="yes">
12785 <desc>Console object associated with this session.</desc>
12786 </attribute>
12787
12788 <method name="close">
12789 <desc>
12790 Closes a session that was previously opened.
12791
12792 It is recommended that every time an "open session" method (such as
12793 <link to="IVirtualBox::openRemoteSession" /> or
12794 <link to="IVirtualBox::openSession" />) has been called to
12795 manipulate a virtual machine, the caller invoke
12796 ISession::close() when it's done doing so. Since sessions are
12797 serialization primitives much like ordinary mutexes, they are
12798 best used the same way: for each "open" call, there should be
12799 a matching "close" call, even when errors occur.
12800
12801 Otherwise, if a direct session for a machine opened with
12802 <link to="IVirtualBox::openSession"/> is not explicitly closed
12803 when the application terminates, the state of the machine will
12804 be set to <link to="MachineState_Aborted" /> on the server.
12805
12806 Generally, it is recommended to close all open sessions explicitly
12807 before terminating the application (regardless of the reason for
12808 the termination).
12809
12810 <note>
12811 Do not expect the session state (<link to="ISession::state" />
12812 to return to "Closed" immediately after you invoke
12813 ISession::close(), particularly if you have started a remote
12814 session to execute the VM in a new process. The session state will
12815 automatically return to "Closed" once the VM is no longer executing,
12816 which can of course take a very long time.
12817 </note>
12818
12819 <result name="E_UNEXPECTED">
12820 Session is not open.
12821 </result>
12822
12823 </desc>
12824 </method>
12825
12826 </interface>
12827
12828 <!--
12829 // IStorageController
12830 /////////////////////////////////////////////////////////////////////////
12831 -->
12832
12833 <enum
12834 name="StorageBus"
12835 uuid="f381fdca-5953-41d0-b2bd-0542b012698d"
12836 >
12837 <desc>
12838 The connection type of the storage controller.
12839 </desc>
12840 <const name="Null" value="0">
12841 <desc>@c null value. Never used by the API.</desc>
12842 </const>
12843 <const name="IDE" value="1"/>
12844 <const name="SATA" value="2"/>
12845 <const name="SCSI" value="3"/>
12846 </enum>
12847
12848 <enum
12849 name="StorageControllerType"
12850 uuid="685387db-a837-4320-a258-08f46a22f62a"
12851 >
12852 <desc>
12853 Storage controller type.
12854 </desc>
12855
12856 <const name="Null" value="0">
12857 <desc>@c null value. Never used by the API.</desc>
12858 </const>
12859 <const name="LsiLogic" value="1"/>
12860 <const name="BusLogic" value="2"/>
12861 <const name="IntelAhci" value="3"/>
12862 <const name="PIIX3" value="4"/>
12863 <const name="PIIX4" value="5"/>
12864 <const name="ICH6" value="6"/>
12865 </enum>
12866
12867 <interface
12868 name="IStorageController" extends="$unknown"
12869 uuid="6bf8335b-d14a-44a5-9b45-ddc49ce7d5b2"
12870 wsmap="managed"
12871 >
12872 <desc>
12873 Represents a storage controller that is attached to a virtual machine
12874 (<link to="IMachine" />). Just as hard disks are attached to storage
12875 controllers in a real computer, virtual hard disks (represented by
12876 <link to="IHardDisk" />) are attached to virtual storage controllers,
12877 represented by this interface.
12878
12879 VirtualBox supports three types of virtual storage controller hardware:
12880 IDE, SCSI, and SATA (see <link to="#bus" />). Depending on which of
12881 these three is used, certain sub-types are available and can be
12882 selected in <link to="#controllerType" />.
12883 </desc>
12884
12885 <attribute name="name" type="wstring" readonly="yes">
12886 <desc>
12887 Name of the storage controller, as originally specified with
12888 <link to="IMachine::addStorageController" />. This then uniquely
12889 identifies this controller with other method calls such as
12890 <link to="IMachine::attachHardDisk" />.
12891 </desc>
12892 </attribute>
12893
12894 <attribute name="maxDevicesPerPortCount" type="unsigned long" readonly="yes">
12895 <desc>
12896 Maximum number of devices which can be attached to one port.
12897 </desc>
12898 </attribute>
12899
12900 <attribute name="minPortCount" type="unsigned long" readonly="yes">
12901 <desc>
12902 Minimum number of ports that <link to="IStorageController::portCount"/> can be set to.
12903 </desc>
12904 </attribute>
12905
12906 <attribute name="maxPortCount" type="unsigned long" readonly="yes">
12907 <desc>
12908 Maximum number of ports that <link to="IStorageController::portCount"/> can be set to.
12909 </desc>
12910 </attribute>
12911
12912 <attribute name="instance" type="unsigned long">
12913 <desc>
12914 The instance number of the device in the running VM.
12915 </desc>
12916 </attribute>
12917
12918 <attribute name="portCount" type="unsigned long">
12919 <desc>
12920 The number of currently usable ports on the controller.
12921 The minimum and maximum number of ports for one controller are
12922 stored in <link to="IStorageController::minPortCount"/>
12923 and <link to="IStorageController::maxPortCount"/>.
12924 </desc>
12925 </attribute>
12926
12927 <attribute name="bus" type="StorageBus" readonly="yes">
12928 <desc>
12929 The connection type of the storage controller.
12930 </desc>
12931 </attribute>
12932
12933 <attribute name="controllerType" type="StorageControllerType">
12934 <desc>
12935 Type of the virtual storage controller. Depending on this value,
12936 VirtualBox will provide a different virtual storage controller hardware
12937 to the guest.
12938
12939 For SCSI controllers, the default type is LsiLogic.
12940 </desc>
12941 </attribute>
12942
12943 <method name="GetIDEEmulationPort">
12944 <desc>
12945 Gets the corresponding port number which is emulated as an IDE device.
12946
12947 <result name="E_INVALIDARG">
12948 The @a devicePosition is not in the range 0 to 3.
12949 </result>
12950 <result name="E_NOTIMPL">
12951 The storage controller type is not SATAIntelAhci.
12952 </result>
12953
12954 </desc>
12955 <param name="devicePosition" type="long" dir="in"/>
12956 <param name="portNumber" type="long" dir="return"/>
12957 </method>
12958
12959 <method name="SetIDEEmulationPort">
12960 <desc>
12961 Sets the port number which is emulated as an IDE device.
12962
12963 <result name="E_INVALIDARG">
12964 The @a devicePosition is not in the range 0 to 3 or the
12965 @a portNumber is not in the range 0 to 29.
12966 </result>
12967 <result name="E_NOTIMPL">
12968 The storage controller type is not SATAIntelAhci.
12969 </result>
12970
12971 </desc>
12972 <param name="devicePosition" type="long" dir="in"/>
12973 <param name="portNumber" type="long" dir="in"/>
12974 </method>
12975
12976 </interface>
12977
12978<if target="wsdl">
12979
12980 <!--
12981 // IManagedObjectRef
12982 /////////////////////////////////////////////////////////////////////////
12983 -->
12984
12985 <interface
12986 name="IManagedObjectRef" extends="$unknown"
12987 uuid="9474d09d-2313-46de-b568-a42b8718e8ed"
12988 internal="yes"
12989 wsmap="managed"
12990 wscpp="hardcoded"
12991 >
12992 <desc>
12993 Managed object reference.
12994
12995 Only within the webservice, a managed object reference (which is really
12996 an opaque number) allows a webservice client to address an object
12997 that lives in the address space of the webservice server.
12998
12999 Behind each managed object reference, there is a COM object that lives
13000 in the webservice server's address space. The COM object is not freed
13001 until the managed object reference is released, either by an explicit
13002 call to <link to="IManagedObjectRef::release" /> or by logging off from
13003 the webservice (<link to="IWebsessionManager::logoff" />), which releases
13004 all objects created during the webservice session.
13005
13006 Whenever a method call of the VirtualBox API returns a COM object, the
13007 webservice representation of that method will instead return a
13008 managed object reference, which can then be used to invoke methods
13009 on that object.
13010 </desc>
13011
13012 <method name="getInterfaceName">
13013 <desc>
13014 Returns the name of the interface that this managed object represents,
13015 for example, "IMachine", as a string.
13016 </desc>
13017 <param name="return" type="wstring" dir="return"/>
13018 </method>
13019
13020 <method name="release">
13021 <desc>
13022 Releases this managed object reference and frees the resources that
13023 were allocated for it in the webservice server process. After calling
13024 this method, the identifier of the reference can no longer be used.
13025 </desc>
13026 </method>
13027
13028 </interface>
13029
13030 <!--
13031 // IWebsessionManager
13032 /////////////////////////////////////////////////////////////////////////
13033 -->
13034
13035 <interface
13036 name="IWebsessionManager" extends="$unknown"
13037 uuid="dea1b4c7-2de3-418a-850d-7868617f7733"
13038 internal="yes"
13039 wsmap="global"
13040 wscpp="hardcoded"
13041 >
13042 <desc>
13043 Websession manager. This provides essential services
13044 to webservice clients.
13045 </desc>
13046 <method name="logon">
13047 <desc>
13048 Logs a new client onto the webservice and returns a managed object reference to
13049 the IVirtualBox instance, which the client can then use as a basis to further
13050 queries, since all calls to the VirtualBox API are based on the IVirtualBox
13051 interface, in one way or the other.
13052 </desc>
13053 <param name="username" type="wstring" dir="in"/>
13054 <param name="password" type="wstring" dir="in"/>
13055 <param name="return" type="IVirtualBox" dir="return"/>
13056 </method>
13057
13058 <method name="getSessionObject">
13059 <desc>
13060 Returns a managed object reference to the internal ISession object that was created
13061 for this web service session when the client logged on.
13062
13063 <see>ISession</see>
13064 </desc>
13065 <param name="refIVirtualBox" type="IVirtualBox" dir="in"/>
13066 <param name="return" type="ISession" dir="return"/>
13067 </method>
13068
13069 <method name="logoff">
13070 <desc>
13071 Logs off the client who has previously logged on with <link to="IWebsessionManager::logoff" />
13072 and destroys all resources associated with the session (most importantly, all
13073 managed objects created in the server while the session was active).
13074 </desc>
13075 <param name="refIVirtualBox" type="IVirtualBox" dir="in"/>
13076 </method>
13077
13078 </interface>
13079
13080</if>
13081
13082 <!--
13083 // IPerformanceCollector & friends
13084 /////////////////////////////////////////////////////////////////////////
13085 -->
13086
13087 <interface
13088 name="IPerformanceMetric" extends="$unknown"
13089 uuid="2a1a60ae-9345-4019-ad53-d34ba41cbfe9" wsmap="managed"
13090 >
13091 <desc>
13092 The IPerformanceMetric interface represents parameters of the given
13093 performance metric.
13094 </desc>
13095
13096 <attribute name="metricName" type="wstring" readonly="yes">
13097 <desc>
13098 Name of the metric.
13099 </desc>
13100 </attribute>
13101
13102 <attribute name="object" type="$unknown" readonly="yes">
13103 <desc>
13104 Object this metric belongs to.
13105 </desc>
13106 </attribute>
13107
13108 <attribute name="description" type="wstring" readonly="yes">
13109 <desc>
13110 Textual description of the metric.
13111 </desc>
13112 </attribute>
13113
13114 <attribute name="period" type="unsigned long" readonly="yes">
13115 <desc>
13116 Time interval between samples, measured in seconds.
13117 </desc>
13118 </attribute>
13119
13120 <attribute name="count" type="unsigned long" readonly="yes">
13121 <desc>
13122 Number of recent samples retained by the performance collector for this
13123 metric.
13124
13125 When the collected sample count exceeds this number, older samples
13126 are discarded.
13127 </desc>
13128 </attribute>
13129
13130 <attribute name="unit" type="wstring" readonly="yes">
13131 <desc>
13132 Unit of measurement.
13133 </desc>
13134 </attribute>
13135
13136 <attribute name="minimumValue" type="long" readonly="yes">
13137 <desc>
13138 Minimum possible value of this metric.
13139 </desc>
13140 </attribute>
13141
13142 <attribute name="maximumValue" type="long" readonly="yes">
13143 <desc>
13144 Maximum possible value of this metric.
13145 </desc>
13146 </attribute>
13147 </interface>
13148
13149 <interface
13150 name="IPerformanceCollector" extends="$unknown"
13151 uuid="e22e1acb-ac4a-43bb-a31c-17321659b0c6"
13152 wsmap="managed"
13153 >
13154 <desc>
13155 The IPerformanceCollector interface represents a service that collects and
13156 stores performance metrics data.
13157
13158 Performance metrics are associated with objects of interfaces like IHost and
13159 IMachine. Each object has a distinct set of performance metrics.
13160 The set can be obtained with <link to="IPerformanceCollector::getMetrics"/>.
13161
13162 Metric data is collected at the specified intervals and is retained
13163 internally. The interval and the number of retained samples can be set
13164 with <link to="IPerformanceCollector::setupMetrics" />.
13165
13166 Metrics are organized hierarchically, with each level separated by a
13167 slash (/) character. Generally, the scheme for metric names is like this:
13168
13169 <tt>Category/Metric[/SubMetric][:aggregation]</tt>
13170
13171 "Category/Metric" together form the base metric name. A base metric is the
13172 smallest unit for which a sampling interval and the number of retained
13173 samples can be set. Only base metrics can be enabled and disabled. All
13174 sub-metrics are collected when their base metric is collected.
13175 Collected values for any set of sub-metrics can be queried with
13176 <link to="IPerformanceCollector::queryMetricsData" />.
13177
13178 For example "CPU/Load/User:avg"
13179 metric name stands for the "CPU" category, "Load" metric, "User" submetric,
13180 "average" aggregate. An aggregate function is computed over all retained
13181 data. Valid aggregate functions are:
13182
13183 <ul>
13184 <li>avg -- average</li>
13185 <li>min -- minimum</li>
13186 <li>max -- maximum</li>
13187 </ul>
13188
13189 When setting up
13190 metric parameters, querying metric data, enabling or disabling metrics
13191 wildcards can be used in metric names to specify a subset of metrics. For
13192 example, to select all CPU-related metrics use <tt>CPU/*</tt>, all
13193 averages can be queried using <tt>*:avg</tt> and so on. To query metric
13194 values without aggregates <tt>*:</tt> can be used.
13195
13196 The valid names for base metrics are:
13197
13198 <ul>
13199 <li>CPU/Load</li>
13200 <li>CPU/MHz</li>
13201 <li>RAM/Usage</li>
13202 </ul>
13203
13204 The general sequence for collecting and retrieving the metrics is:
13205 <ul>
13206 <li>
13207 Obtain an instance of IPerformanceCollector with
13208 <link to="IVirtualBox::performanceCollector" />
13209 </li>
13210 <li>
13211 Allocate and populate an array with references to objects the metrics
13212 will be collected for. Use references to IHost and IMachine objects.
13213 </li>
13214 <li>
13215 Allocate and populate an array with base metric names the data will be
13216 collected for.
13217 </li>
13218 <li>
13219 Call <link to="IPerformanceCollector::setupMetrics" />. From now on the
13220 metric data will be collected and stored.
13221 </li>
13222 <li>
13223 Wait for the data to get collected.
13224 </li>
13225 <li>
13226 Allocate and populate an array with references to objects the metric
13227 values will be queried for. You can re-use the object array used for
13228 setting base metrics.
13229 </li>
13230 <li>
13231 Allocate and populate an array with metric names the data will be
13232 collected for. Note that metric names differ from base metric names.
13233 </li>
13234 <li>
13235 Call <link to="IPerformanceCollector::queryMetricsData" />. The data that
13236 have been collected so far are returned. Note that the values are still
13237 retained internally and data collection continues.
13238 </li>
13239 </ul>
13240
13241 For an example of usage refer to the following files in VirtualBox SDK:
13242 <ul>
13243 <li>
13244 Java: <tt>bindings/webservice/java/jax-ws/samples/metrictest.java</tt>
13245 </li>
13246 <li>
13247 Python: <tt>bindings/xpcom/python/sample/shellcommon.py</tt>
13248 </li>
13249 </ul>
13250 </desc>
13251
13252 <attribute name="metricNames" type="wstring" readonly="yes" safearray="yes">
13253 <desc>
13254 Array of unique names of metrics.
13255
13256 This array represents all metrics supported by the performance
13257 collector. Individual objects do not necessarily support all of them.
13258 <link to="IPerformanceCollector::getMetrics"/> can be used to get the
13259 list of supported metrics for a particular object.
13260 </desc>
13261 </attribute>
13262
13263 <method name="getMetrics">
13264 <desc>
13265 Returns parameters of specified metrics for a set of objects.
13266 <note>
13267 @c Null metrics array means all metrics. @c Null object array means
13268 all existing objects.
13269 </note>
13270 </desc>
13271 <param name="metricNames" type="wstring" dir="in" safearray="yes">
13272 <desc>
13273 Metric name filter. Currently, only a comma-separated list of metrics
13274 is supported.
13275 </desc>
13276 </param>
13277 <param name="objects" type="$unknown" dir="in" safearray="yes">
13278 <desc>
13279 Set of objects to return metric parameters for.
13280 </desc>
13281 </param>
13282 <param name="metrics" type="IPerformanceMetric" dir="return" safearray="yes">
13283 <desc>
13284 Array of returned metric parameters.
13285 </desc>
13286 </param>
13287 </method>
13288
13289 <method name="setupMetrics">
13290 <desc>
13291 Sets parameters of specified base metrics for a set of objects. Returns
13292 an array of <link to="IPerformanceMetric" /> describing the metrics have
13293 been affected.
13294 <note>
13295 @c Null or empty metric name array means all metrics. @c Null or empty
13296 object array means all existing objects. If metric name array contains
13297 a single element and object array contains many, the single metric
13298 name array element is applied to each object array element to form
13299 metric/object pairs.
13300 </note>
13301 </desc>
13302 <param name="metricNames" type="wstring" dir="in" safearray="yes">
13303 <desc>
13304 Metric name filter. Comma-separated list of metrics with wildcard
13305 support.
13306 </desc>
13307 </param>
13308 <param name="objects" type="$unknown" dir="in" safearray="yes">
13309 <desc>
13310 Set of objects to setup metric parameters for.
13311 </desc>
13312 </param>
13313 <param name="period" type="unsigned long" dir="in">
13314 <desc>
13315 Time interval in seconds between two consecutive samples of performance
13316 data.
13317 </desc>
13318 </param>
13319 <param name="count" type="unsigned long" dir="in">
13320 <desc>
13321 Number of samples to retain in performance data history. Older samples
13322 get discarded.
13323 </desc>
13324 </param>
13325 <param name="affectedMetrics" type="IPerformanceMetric" dir="return" safearray="yes">
13326 <desc>
13327 Array of metrics that have been modified by the call to this method.
13328 </desc>
13329 </param>
13330 </method>
13331
13332 <method name="enableMetrics">
13333 <desc>
13334 Turns on collecting specified base metrics. Returns an array of
13335 <link to="IPerformanceMetric" /> describing the metrics have been
13336 affected.
13337 <note>
13338 @c Null or empty metric name array means all metrics. @c Null or empty
13339 object array means all existing objects. If metric name array contains
13340 a single element and object array contains many, the single metric
13341 name array element is applied to each object array element to form
13342 metric/object pairs.
13343 </note>
13344 </desc>
13345 <param name="metricNames" type="wstring" dir="in" safearray="yes">
13346 <desc>
13347 Metric name filter. Comma-separated list of metrics with wildcard
13348 support.
13349 </desc>
13350 </param>
13351 <param name="objects" type="$unknown" dir="in" safearray="yes">
13352 <desc>
13353 Set of objects to enable metrics for.
13354 </desc>
13355 </param>
13356 <param name="affectedMetrics" type="IPerformanceMetric" dir="return" safearray="yes">
13357 <desc>
13358 Array of metrics that have been modified by the call to this method.
13359 </desc>
13360 </param>
13361 </method>
13362
13363 <method name="disableMetrics">
13364 <desc>
13365 Turns off collecting specified base metrics. Returns an array of
13366 <link to="IPerformanceMetric" /> describing the metrics have been
13367 affected.
13368 <note>
13369 @c Null or empty metric name array means all metrics. @c Null or empty
13370 object array means all existing objects. If metric name array contains
13371 a single element and object array contains many, the single metric
13372 name array element is applied to each object array element to form
13373 metric/object pairs.
13374 </note>
13375 </desc>
13376 <param name="metricNames" type="wstring" dir="in" safearray="yes">
13377 <desc>
13378 Metric name filter. Comma-separated list of metrics with wildcard
13379 support.
13380 </desc>
13381 </param>
13382 <param name="objects" type="$unknown" dir="in" safearray="yes">
13383 <desc>
13384 Set of objects to disable metrics for.
13385 </desc>
13386 </param>
13387 <param name="affectedMetrics" type="IPerformanceMetric" dir="return" safearray="yes">
13388 <desc>
13389 Array of metrics that have been modified by the call to this method.
13390 </desc>
13391 </param>
13392 </method>
13393
13394 <method name="queryMetricsData">
13395 <desc>
13396 Queries collected metrics data for a set of objects.
13397
13398 The data itself and related metric information are returned in seven
13399 parallel and one flattened array of arrays. Elements of
13400 <tt>returnMetricNames, returnObjects, returnUnits, returnScales,
13401 returnSequenceNumbers, returnDataIndices and returnDataLengths</tt> with
13402 the same index describe one set of values corresponding to a single
13403 metric.
13404
13405 The <tt>returnData</tt> parameter is a flattened array of arrays. Each
13406 start and length of a sub-array is indicated by
13407 <tt>returnDataIndices</tt> and <tt>returnDataLengths</tt>. The first
13408 value for metric <tt>metricNames[i]</tt> is at
13409 <tt>returnData[returnIndices[i]]</tt>.
13410
13411 <note>
13412 @c Null or empty metric name array means all metrics. @c Null or empty
13413 object array means all existing objects. If metric name array contains
13414 a single element and object array contains many, the single metric
13415 name array element is applied to each object array element to form
13416 metric/object pairs.
13417 </note>
13418 <note>
13419 Data collection continues behind the scenes after call to
13420 @c queryMetricsData. The return data can be seen as the snapshot of
13421 the current state at the time of @c queryMetricsData call. The
13422 internally kept metric values are not cleared by the call. This makes
13423 possible querying different subsets of metrics or aggregates with
13424 subsequent calls. If periodic querying is needed it is highly
13425 suggested to query the values with @c interval*count period to avoid
13426 confusion. This way a completely new set of data values will be
13427 provided by each query.
13428 </note>
13429 </desc>
13430 <param name="metricNames" type="wstring" dir="in" safearray="yes">
13431 <desc>
13432 Metric name filter. Comma-separated list of metrics with wildcard
13433 support.
13434 </desc>
13435 </param>
13436 <param name="objects" type="$unknown" dir="in" safearray="yes">
13437 <desc>
13438 Set of objects to query metrics for.
13439 </desc>
13440 </param>
13441 <param name="returnMetricNames" type="wstring" dir="out" safearray="yes">
13442 <desc>
13443 Names of metrics returned in @c returnData.
13444 </desc>
13445 </param>
13446 <param name="returnObjects" type="$unknown" dir="out" safearray="yes">
13447 <desc>
13448 Objects associated with metrics returned in @c returnData.
13449 </desc>
13450 </param>
13451 <param name="returnUnits" type="wstring" dir="out" safearray="yes">
13452 <desc>
13453 Units of measurement for each returned metric.
13454 </desc>
13455 </param>
13456 <param name="returnScales" type="unsigned long" dir="out" safearray="yes">
13457 <desc>
13458 Divisor that should be applied to return values in order to get
13459 floating point values. For example:
13460 <tt>(double)returnData[returnDataIndices[0]+i] / returnScales[0]</tt>
13461 will retrieve the floating point value of i-th sample of the first
13462 metric.
13463 </desc>
13464 </param>
13465 <param name="returnSequenceNumbers" type="unsigned long" dir="out" safearray="yes">
13466 <desc>
13467 Sequence numbers of the first elements of value sequences of particular metrics
13468 returned in @c returnData. For aggregate metrics it is the sequence number of
13469 the sample the aggregate started calculation from.
13470 </desc>
13471 </param>
13472 <param name="returnDataIndices" type="unsigned long" dir="out" safearray="yes">
13473 <desc>
13474 Indices of the first elements of value sequences of particular metrics
13475 returned in @c returnData.
13476 </desc>
13477 </param>
13478 <param name="returnDataLengths" type="unsigned long" dir="out" safearray="yes">
13479 <desc>
13480 Lengths of value sequences of particular metrics.
13481 </desc>
13482 </param>
13483 <param name="returnData" type="long" dir="return" safearray="yes">
13484 <desc>
13485 Flattened array of all metric data containing sequences of values for
13486 each metric.
13487 </desc>
13488 </param>
13489 </method>
13490
13491 </interface>
13492
13493 <module name="VBoxSVC" context="LocalServer">
13494 <class name="VirtualBox" uuid="B1A7A4F2-47B9-4A1E-82B2-07CCD5323C3F"
13495 namespace="virtualbox.org">
13496 <interface name="IVirtualBox" default="yes"/>
13497 </class>
13498 </module>
13499
13500 <module name="VBoxC" context="InprocServer" threadingModel="Free">
13501 <class name="Session" uuid="3C02F46D-C9D2-4f11-A384-53F0CF917214"
13502 namespace="virtualbox.org">
13503 <interface name="ISession" default="yes"/>
13504 </class>
13505 </module>
13506
13507</library>
13508
13509</idl>
13510
13511<!-- 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