VirtualBox

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

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

Main: sketched 3D hardware support test in IHost

  • Property svn:eol-style set to native
File size: 490.5 KB
Line 
1<?xml version="1.0" ?>
2
3<!--
4 * :tabSize=2:indentSize=2:noTabs=true:
5 * :folding=explicit:collapseFolds=1:
6 *
7 * Master declaration for VirtualBox's Main API, represented
8 * by COM/XPCOM and web service interfaces.
9 *
10 * From this document, the build system generates several files
11 * via XSLT that are then used during the build process.
12 *
13 * Below is the list of XSL templates that operate on this file and
14 * output files they generate. These XSL templates must be updated
15 * whenever the schema of this file changes:
16 *
17 * 1. src/VBox/Main/idl/midl.xsl =>
18 * out/<platform>/bin/sdk/idl/VirtualBox.idl
19 * (MS COM interface definition file for Main API)
20 *
21 * 2. src/VBox/Main/idl/xpidl.xsl =>
22 * out/<platform>/bin/sdk/idl/VirtualBox_XPCOM.idl
23 * (XPCOM interface definition file for Main API)
24 *
25 * 3. src/VBox/Main/idl/doxygen.xsl =>
26 * out/<platform>/obj/src/VBox/Main/VirtualBox.idl
27 * (pseudo-IDL for Doxygen to generate the official Main API
28 * documentation)
29 *
30 * 4. src/VBox/Main/webservice/*.xsl =>
31 * a bunch of WSDL and C++ files
32 * (VirtualBox web service sources and SOAP mappers;
33 * see src/VBox/Main/webservice/Makefile.kmk for details)
34 *
35 * 5. src/VBox/Frontends/VirtualBox/include/COMWrappers.xsl =>
36 * out/<platform>/obj/src/VBox/Frontends/VirtualBox/VirtualBox/include/COMWrappers.h
37 * (smart Qt-based C++ wrapper classes for COM interfaces
38 * of the Main API)
39 *
40 * 6. src/VBox/Installer/win32/VirtualBox_TypeLib.xsl =>
41 * out/<platform>/obj/src/VBox/Installer/win32/VirtualBox_TypeLib.wxi
42 * (Main API TypeLib block for the WiX installer)
43 *
44 * 7. src/VBox/Runtime/common/err/errmsgvboxcom.xsl =>
45 * out/<platform>/obj/Runtime/errmsgvboxcomdata.h
46 * (<result> extraction for the %Rhrc format specifier)
47 *
48 Copyright (C) 2006-2009 Sun Microsystems, Inc.
49
50 This file is part of VirtualBox Open Source Edition (OSE), as
51 available from http://www.virtualbox.org. This file is free software;
52 you can redistribute it and/or modify it under the terms of the GNU
53 General Public License (GPL) as published by the Free Software
54 Foundation, in version 2 as it comes in the "COPYING" file of the
55 VirtualBox OSE distribution. VirtualBox OSE is distributed in the
56 hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
57
58 Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
59 Clara, CA 95054 USA or visit http://www.sun.com if you need
60 additional information or have any questions.
61-->
62
63<idl>
64
65<desc>
66 Welcome to the <b>VirtualBox Main API documentation</b>. This documentation
67 describes the so-called <i>VirtualBox Main API</i> which comprises all public
68 COM interfaces and components provided by the VirtualBox server and by the
69 VirtualBox client library.
70
71 VirtualBox employs a client-server design, meaning that whenever any part of
72 VirtualBox is running -- be it the Qt GUI, the VBoxManage command-line
73 interface or any virtual machine --, a dedicated server process named
74 VBoxSVC runs in the background. This allows multiple processes working with
75 VirtualBox to cooperate without conflicts. These processes communicate to each
76 other using inter-process communication facilities provided by the COM
77 implementation of the host computer.
78
79 On Windows platforms, the VirtualBox Main API uses Microsoft COM, a native COM
80 implementation. On all other platforms, Mozilla XPCOM, an open-source COM
81 implementation, is used.
82
83 All the parts that a typical VirtualBox user interacts with (the Qt GUI,
84 the VBoxManage command-line interface and the VBoxVRDP server) are technically
85 front-ends to the Main API and only use the interfaces that are documented
86 in this Main API documentation. This ensures that, with any given release
87 version of VirtualBox, all capabilities of the product that could be useful
88 to an external client program are always exposed by way of this API.
89
90 The VirtualBox Main API (also called the <i>VirtualBox COM library</i>)
91 contains two public component classes:
92 <tt>%VirtualBox.VirtualBox</tt> and <tt>%VirtualBox.Session</tt>, which
93 implement IVirtualBox and ISession interfaces respectively. These two classes
94 are of supreme importance and will be needed in order for any front-end
95 program to do anything useful. It is recommended to read the documentation of
96 the mentioned interfaces first.
97
98 The <tt>%VirtualBox.VirtualBox</tt> class is a singleton. This means that
99 there can be only one object of this class on the local machine at any given
100 time. This object is a parent of many other objects in the VirtualBox COM
101 library and lives in the VBoxSVC process. In fact, when you create an instance
102 of the <tt>VirtualBox.VirtualBox</tt>, the COM subsystem checks if the VBoxSVC
103 process is already running, starts it if not, and returns you a reference to
104 the <tt>VirtualBox</tt> object created in this process. When the last reference
105 to this object is released, the VBoxSVC process ends (with a 5 second delay to
106 protect from too frequent restarts).
107
108 The <tt>%VirtualBox.Session</tt> class is a regular component. You can create
109 as many <tt>Session</tt> objects as you need but all of them will live in a
110 process which issues the object instantiation call. <tt>Session</tt> objects
111 represent virtual machine sessions which are used to configure virtual
112 machines and control their execution.
113</desc>
114
115<if target="midl">
116 <cpp line="enum {"/>
117 <cpp line=" kTypeLibraryMajorVersion = 1,"/>
118 <cpp line=" kTypeLibraryMinorVersion = 0"/>
119 <cpp line="};"/>
120</if>
121
122<if target="xpidl">
123 <!-- NS_IMPL_THREADSAFE_ISUPPORTSxx_CI macros are placed here, for convenience -->
124 <cpp>
125/* currently, nsISupportsImpl.h lacks the below-like macros */
126
127#define NS_IMPL_THREADSAFE_QUERY_INTERFACE1_CI NS_IMPL_QUERY_INTERFACE1_CI
128#define NS_IMPL_THREADSAFE_QUERY_INTERFACE2_CI NS_IMPL_QUERY_INTERFACE2_CI
129
130#ifndef NS_IMPL_THREADSAFE_ISUPPORTS1_CI
131# define NS_IMPL_THREADSAFE_ISUPPORTS1_CI(_class, _interface) \
132 NS_IMPL_THREADSAFE_ADDREF(_class) \
133 NS_IMPL_THREADSAFE_RELEASE(_class) \
134 NS_IMPL_THREADSAFE_QUERY_INTERFACE1_CI(_class, _interface) \
135 NS_IMPL_CI_INTERFACE_GETTER1(_class, _interface)
136#endif
137
138#ifndef NS_IMPL_THREADSAFE_ISUPPORTS2_CI
139# define NS_IMPL_THREADSAFE_ISUPPORTS2_CI(_class, _i1, _i2) \
140 NS_IMPL_THREADSAFE_ADDREF(_class) \
141 NS_IMPL_THREADSAFE_RELEASE(_class) \
142 NS_IMPL_THREADSAFE_QUERY_INTERFACE2_CI(_class, _i1, _i2) \
143 NS_IMPL_CI_INTERFACE_GETTER2(_class, _i1, _i2)
144#endif
145
146#ifndef NS_IMPL_QUERY_INTERFACE1_AMBIGUOUS_CI
147# define NS_IMPL_QUERY_INTERFACE1_AMBIGUOUS_CI(_class, _i1, _ic1) \
148 NS_INTERFACE_MAP_BEGIN(_class) \
149 NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(_i1, _ic1) \
150 NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(nsISupports, _ic1) \
151 NS_IMPL_QUERY_CLASSINFO(_class) \
152 NS_INTERFACE_MAP_END
153#endif
154
155#ifndef NS_IMPL_QUERY_INTERFACE2_AMBIGUOUS_CI
156# define NS_IMPL_QUERY_INTERFACE2_AMBIGUOUS_CI(_class, _i1, _ic1, \
157 _i2, _ic2) \
158 NS_INTERFACE_MAP_BEGIN(_class) \
159 NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(_i1, _ic1) \
160 NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(_i2, _ic2) \
161 NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(nsISupports, _ic1) \
162 NS_IMPL_QUERY_CLASSINFO(_class) \
163 NS_INTERFACE_MAP_END
164#endif
165
166#define NS_IMPL_THREADSAFE_QUERY_INTERFACE1_AMBIGUOUS_CI NS_IMPL_QUERY_INTERFACE1_AMBIGUOUS_CI
167#define NS_IMPL_THREADSAFE_QUERY_INTERFACE2_AMBIGUOUS_CI NS_IMPL_QUERY_INTERFACE2_AMBIGUOUS_CI
168
169#ifndef NS_IMPL_THREADSAFE_ISUPPORTS1_AMBIGUOUS_CI
170# define NS_IMPL_THREADSAFE_ISUPPORTS1_AMBIGUOUS_CI(_class, _i1, _ic1) \
171 NS_IMPL_THREADSAFE_ADDREF(_class) \
172 NS_IMPL_THREADSAFE_RELEASE(_class) \
173 NS_IMPL_THREADSAFE_QUERY_INTERFACE1_AMBIGUOUS_CI(_class, _i1, _ic1) \
174 NS_IMPL_CI_INTERFACE_GETTER1(_class, _i1)
175#endif
176
177#ifndef NS_IMPL_THREADSAFE_ISUPPORTS2_AMBIGUOUS_CI
178# define NS_IMPL_THREADSAFE_ISUPPORTS2_AMBIGUOUS_CI(_class, _i1, _ic1, \
179 _i2, _ic2) \
180 NS_IMPL_THREADSAFE_ADDREF(_class) \
181 NS_IMPL_THREADSAFE_RELEASE(_class) \
182 NS_IMPL_THREADSAFE_QUERY_INTERFACE2_AMBIGUOUS_CI(_class, _i1, _ic1, \
183 _i2, _ic2) \
184 NS_IMPL_CI_INTERFACE_GETTER2(_class, _i1, _i2)
185#endif
186 </cpp>
187</if>
188
189<library
190 name="VirtualBox"
191 uuid="46137EEC-703B-4fe5-AFD4-7C9BBBBA0259"
192 version="1.3"
193 desc="VirtualBox Type Library"
194 appUuid="819B4D85-9CEE-493C-B6FC-64FFE759B3C9"
195 supportsErrorInfo="yes"
196>
197
198
199 <!--
200 // COM result codes for VirtualBox
201 /////////////////////////////////////////////////////////////////////////
202 -->
203
204 <descGroup id="VirtualBox_COM_result_codes" title="VirtualBox COM result codes">
205 <desc>
206 This section describes all VirtualBox-specific COM result codes that may
207 be returned by methods of VirtualBox COM interfaces in addition to
208 standard COM result codes.
209
210 Note that along with the result code, every VirtualBox method returns
211 extended error information through the IVirtualBoxErrorInfo interface on
212 failure. This interface is a preferred way to present the error to the end
213 user because it contains a human readable description of the error. Raw
214 result codes, both standard and described in this section, are intended to
215 be used by programs to analyze the reason of a failure and select an
216 appropriate course of action without involving the end user (for example,
217 retry the operation later or make a different call).
218
219 The standard COM result codes that may originate from our methods include:
220
221 <table>
222 <tr><td>E_INVALIDARG</td>
223 <td>
224 Returned when the value of the method's argument is not within the range
225 of valid values. This should not be confused with situations when the
226 value is within the range but simply doesn't suit the current object
227 state and there is a possibility that it will be accepted later (in such
228 cases VirtualBox-specific codes are returned, for example,
229 <link to="VBOX_E_OBJECT_NOT_FOUND"/>).
230 </td>
231 </tr>
232 <tr><td>E_POINTER</td>
233 <td>
234 Returned if a memory pointer for the output argument is invalid (for
235 example, <tt>NULL</tt>). Note that when pointers representing input
236 arguments (such as strings) are invalid, E_INVALIDARG is returned.
237 </td>
238 </tr>
239 <tr><td>E_ACCESSDENIED</td>
240 <td>
241 Returned when the called object is not ready. Since the lifetime of a
242 public COM object cannot be fully controlled by the implementation,
243 VirtualBox maintains the readiness state for all objects it creates and
244 returns this code in response to any method call on the object that was
245 deactivated by VirtualBox and is not functioning any more.
246 </td>
247 </tr>
248 <tr><td>E_OUTOFMEMORY</td>
249 <td>
250 Returned when a memory allocation operation fails.
251 </td>
252 </tr>
253 </table>
254 </desc>
255 </descGroup>
256
257 <!--
258 Note that src/VBox/Runtime/common/err/errmsgvboxcom.xsl will ignore
259 everything in <result>/<desc> after (and including) the first dot, so express
260 the matter of the error code in the first sentence and keep it short.
261 -->
262
263 <result name="VBOX_E_OBJECT_NOT_FOUND" value="0x80BB0001">
264 <desc>
265 Object corresponding to the supplied arguments does not exist.
266 </desc>
267 </result>
268
269 <result name="VBOX_E_INVALID_VM_STATE" value="0x80BB0002">
270 <desc>
271 Current virtual machine state prevents the operation.
272 </desc>
273 </result>
274
275 <result name="VBOX_E_VM_ERROR" value="0x80BB0003">
276 <desc>
277 Virtual machine error occurred attempting the operation.
278 </desc>
279 </result>
280
281 <result name="VBOX_E_FILE_ERROR" value="0x80BB0004">
282 <desc>
283 File not accessible or erroneous file contents.
284 </desc>
285 </result>
286
287 <result name="VBOX_E_IPRT_ERROR" value="0x80BB0005">
288 <desc>
289 Runtime subsystem error.
290 </desc>
291 </result>
292
293 <result name="VBOX_E_PDM_ERROR" value="0x80BB0006">
294 <desc>
295 Pluggable Device Manager error.
296 </desc>
297 </result>
298
299 <result name="VBOX_E_INVALID_OBJECT_STATE" value="0x80BB0007">
300 <desc>
301 Current object state prohibits operation.
302 </desc>
303 </result>
304
305 <result name="VBOX_E_HOST_ERROR" value="0x80BB0008">
306 <desc>
307 Host operating system related error.
308 </desc>
309 </result>
310
311 <result name="VBOX_E_NOT_SUPPORTED" value="0x80BB0009">
312 <desc>
313 Requested operation is not supported.
314 </desc>
315 </result>
316
317 <result name="VBOX_E_XML_ERROR" value="0x80BB000A">
318 <desc>
319 Invalid XML found.
320 </desc>
321 </result>
322
323 <result name="VBOX_E_INVALID_SESSION_STATE" value="0x80BB000B">
324 <desc>
325 Current session state prohibits operation.
326 </desc>
327 </result>
328
329 <result name="VBOX_E_OBJECT_IN_USE" value="0x80BB000C">
330 <desc>
331 Object being in use prohibits operation.
332 </desc>
333 </result>
334
335 <!--
336 Note that src/VBox/Runtime/common/err/errmsgvboxcom.xsl will ignore
337 everything in <result>/<desc> after (and including) the first dot, so express
338 the matter of the error code in the first sentence and keep it short.
339 -->
340
341 <descGroup/>
342
343 <!--
344 // all common enums
345 /////////////////////////////////////////////////////////////////////////
346 -->
347
348 <enum
349 name="TSBool"
350 uuid="523ff64d-842a-4b1a-80e7-c311b028cb3a"
351 >
352 <desc>
353 Boolean variable having a third state, default.
354 </desc>
355
356 <const name="False" value="0"/>
357 <const name="True" value="1"/>
358 <const name="Default" value="2"/>
359 </enum>
360
361 <enum
362 name="AccessMode"
363 uuid="1da0007c-ddf7-4be8-bcac-d84a1558785f"
364 >
365 <desc>
366 Access mode for opening files.
367 </desc>
368
369 <const name="ReadOnly" value="1"/>
370 <const name="ReadWrite" value="2"/>
371 </enum>
372
373 <enum
374 name="MachineState"
375 uuid="73bf04d0-7c4f-4684-9abf-d65a9ad74343"
376 >
377 <desc>
378 Virtual machine execution state.
379
380 This enumeration represents possible values of the <link
381 to="IMachine::state"/> attribute.
382
383 Below is the basic virtual machine state diagram. It shows how the state
384 changes during virtual machine execution. The text in square braces shows
385 a method of the IConsole interface that performs the given state
386 transition.
387
388 <pre>
389 +---------[powerDown()] &lt;- Stuck &lt;--[failure]-+
390 V |
391 +-&gt; PoweredOff --+--&gt;[powerUp()]--&gt; Starting --+ | +-----[resume()]-----+
392 | | | | V |
393 | Aborted -----+ +--&gt; Running --[pause()]--&gt; Paused
394 | | ^ | ^ |
395 | Saved -----------[powerUp()]--&gt; Restoring -+ | | | |
396 | ^ | | | |
397 | | +-----------------------------------------+-|-------------------+ +
398 | | | | |
399 | | +-- Saving &lt;--------[takeSnapshot()]&lt;-------+---------------------+
400 | | | |
401 | +-------- Saving &lt;--------[saveState()]&lt;----------+---------------------+
402 | | |
403 +-------------- Stopping -------[powerDown()]&lt;----------+---------------------+
404 </pre>
405
406 Note that states to the right from PoweredOff, Aborted and Saved in the
407 above diagram are called <i>online VM states</i>. These states
408 represent the virtual machine which is being executed in a dedicated
409 process (usually with a GUI window attached to it where you can see the
410 activity of the virtual machine and interact with it). There are two
411 special pseudo-states, FirstOnline and LastOnline, that can be used in
412 relational expressions to detect if the given machine state is online or
413 not:
414
415 <pre>
416 if (machine.GetState() &gt;= MachineState_FirstOnline &amp;&amp;
417 machine.GetState() &lt;= MachineState_LastOnline)
418 {
419 ...the machine is being executed...
420 }
421 </pre>
422
423 When the virtual machine is in one of the online VM states (that is, being
424 executed), only a few machine settings can be modified. Methods working
425 with such settings contain an explicit note about that. An attempt to
426 change any oter setting or perform a modifying operation during this time
427 will result in the <link to="VBOX_E_INVALID_VM_STATE"/> error.
428
429 All online states except Running, Paused and Stuck are transitional: they
430 represent temporary conditions of the virtual machine that will last as
431 long as the operation that initiated such a condition.
432
433 The Stuck state is a special case. It means that execution of the machine
434 has reached the "Guru Meditation" condition. This condition indicates an
435 internal VMM (virtual machine manager) failure which may happen as a
436 result of either an unhandled low-level virtual hardware exception or one
437 of the recompiler exceptions (such as the <i>too-many-traps</i>
438 condition).
439
440 Note also that any online VM state may transit to the Aborted state. This
441 happens if the process that is executing the virtual machine terminates
442 unexpectedly (for example, crashes). Other than that, the Aborted state is
443 equivalent to PoweredOff.
444
445 There are also a few additional state diagrams that do not deal with
446 virtual machine execution and therefore are shown separately. The states
447 shown on these diagrams are called <i>offline VM states</i> (this includes
448 PoweredOff, Aborted and Saved too).
449
450 The first diagram shows what happens when a lengthy setup operation is
451 being executed (such as <link to="IMachine::attachHardDisk"/>).
452
453 <pre>
454 +----------------------------------(same state as before the call)------+
455 | |
456 +-&gt; PoweredOff --+ |
457 | | |
458 |-&gt; Aborted -----+--&gt;[lengthy VM configuration call] --&gt; SettingUp -----+
459 | |
460 +-&gt; Saved -------+
461 </pre>
462
463 The next two diagrams demonstrate the process of taking a snapshot of a
464 powered off virtual machine and performing one of the "discard..."
465 operations, respectively.
466
467 <pre>
468 +----------------------------------(same state as before the call)------+
469 | |
470 +-&gt; PoweredOff --+ |
471 | +--&gt;[takeSnapshot()] -------------------&gt; Saving ------+
472 +-&gt; Aborted -----+
473
474 +-&gt; PoweredOff --+
475 | |
476 | Aborted -----+--&gt;[discardSnapshot() ]-------------&gt; Discarding --+
477 | | [discardCurrentState()] |
478 +-&gt; Saved -------+ [discardCurrentSnapshotAndState()] |
479 | |
480 +---(Saved if restored from an online snapshot, PoweredOff otherwise)---+
481 </pre>
482
483 Note that the Saving state is present in both the offline state group and
484 online state group. Currently, the only way to determine what group is
485 assumed in a particular case is to remember the previous machine state: if
486 it was Running or Paused, then Saving is an online state, otherwise it is
487 an offline state. This inconsistency may be removed in one of the future
488 versions of VirtualBox by adding a new state.
489
490 <note internal="yes">
491 For whoever decides to touch this enum: In order to keep the
492 comparisons involving FirstOnline and LastOnline pseudo-states valid,
493 the numeric values of these states must be correspondingly updated if
494 needed: for any online VM state, the condition
495 <tt>FirstOnline &lt;= state &lt;= LastOnline</tt> must be
496 <tt>true</tt>. The same relates to transient states for which
497 the condition <tt>FirstOnline &lt;= state &lt;= LastOnline</tt> must be
498 <tt>true</tt>.
499 </note>
500 </desc>
501
502 <const name="Null" value="0">
503 <desc>Null value (never used by the API).</desc>
504 </const>
505 <const name="PoweredOff" value="1">
506 <desc>
507 The machine is not running.
508 </desc>
509 </const>
510 <const name="Saved" value="2">
511 <desc>
512 The machine is not currently running, but the execution state of the machine
513 has been saved to an external file when it was running.
514 </desc>
515 </const>
516 <const name="Aborted" value="3">
517 <desc>
518 The process running the machine has terminated abnormally.
519 </desc>
520 </const>
521 <const name="Running" value="4">
522 <desc>
523 The machine is currently being executed.
524 <note internal="yes">
525 For whoever decides to touch this enum: In order to keep the
526 comparisons in the old source code valid, this state must immediately
527 precede the Paused state.
528 </note>
529 </desc>
530 </const>
531 <const name="Paused" value="5">
532 <desc>
533 Execution of the machine has been paused.
534 <note internal="yes">
535 For whoever decides to touch this enum: In order to keep the
536 comparisons in the old source code valid, this state must immediately
537 follow the Running state.
538 </note>
539 </desc>
540 </const>
541 <const name="Stuck" value="6">
542 <desc>
543 Execution of the machine has reached the "Guru Meditation"
544 condition.
545 </desc>
546 </const>
547 <const name="Starting" value="7">
548 <desc>
549 Machine is being started after powering it on from a
550 zero execution state.
551 </desc>
552 </const>
553 <const name="Stopping" value="8">
554 <desc>
555 Machine is being normally stopped powering it off, or after the guest OS
556 has initiated a shutdown sequence.
557 </desc>
558 </const>
559 <const name="Saving" value="9">
560 <desc>
561 Machine is saving its execution state to a file or an online
562 snapshot of the machine is being taken.
563 </desc>
564 </const>
565 <const name="Restoring" value="10">
566 <desc>
567 Execution state of the machine is being restored from a file
568 after powering it on from the saved execution state.
569 </desc>
570 </const>
571 <const name="Discarding" value="11">
572 <desc>
573 Snapshot of the machine is being discarded.
574 </desc>
575 </const>
576 <const name="SettingUp" value="12">
577 <desc>
578 Lengthy setup operation is in progress.
579 </desc>
580 </const>
581
582 <const name="FirstOnline" value="4" wsmap="suppress"> <!-- Running -->
583 <desc>
584 Pseudo-state: first online state (for use in relational expressions).
585 </desc>
586 </const>
587 <const name="LastOnline" value="10" wsmap="suppress"> <!-- Restoring -->
588 <desc>
589 Pseudo-state: last online state (for use in relational expressions).
590 </desc>
591 </const>
592
593 <const name="FirstTransient" value="7" wsmap="suppress"> <!-- Starting -->
594 <desc>
595 Pseudo-state: first transient state (for use in relational expressions).
596 </desc>
597 </const>
598 <const name="LastTransient" value="12" wsmap="suppress"> <!-- SettingUp -->
599 <desc>
600 Pseudo-state: last transient state (for use in relational expressions).
601 </desc>
602 </const>
603
604 </enum>
605
606 <enum
607 name="SessionState"
608 uuid="CF2700C0-EA4B-47ae-9725-7810114B94D8"
609 >
610 <desc>
611 Session state. This enumeration represents possible values of
612 <link to="IMachine::sessionState"/> and <link to="ISession::state"/>
613 attributes. See individual enumerator descriptions for the meaning for
614 every value.
615 </desc>
616
617 <const name="Null" value="0">
618 <desc>Null value (never used by the API).</desc>
619 </const>
620 <const name="Closed" value="1">
621 <desc>
622 The machine has no open sessions (<link to="IMachine::sessionState"/>);
623 the session is closed (<link to="ISession::state"/>)
624 </desc>
625 </const>
626 <const name="Open" value="2">
627 <desc>
628 The machine has an open direct session (<link to="IMachine::sessionState"/>);
629 the session is open (<link to="ISession::state"/>)
630 </desc>
631 </const>
632 <const name="Spawning" value="3">
633 <desc>
634 A new (direct) session is being opened for the machine
635 as a result of <link to="IVirtualBox::openRemoteSession"/>
636 call (<link to="IMachine::sessionState"/>);
637 the session is currently being opened
638 as a result of <link to="IVirtualBox::openRemoteSession"/>
639 call (<link to="ISession::state"/>)
640 </desc>
641 </const>
642 <const name="Closing" value="4">
643 <desc>
644 The direct session is being closed (<link to="IMachine::sessionState"/>);
645 the session is being closed (<link to="ISession::state"/>)
646 </desc>
647 </const>
648 </enum>
649
650 <enum
651 name="SessionType"
652 uuid="A13C02CB-0C2C-421E-8317-AC0E8AAA153A"
653 >
654 <desc>
655 Session type. This enumeration represents possible values of the
656 <link to="ISession::type"/> attribute.
657 </desc>
658
659 <const name="Null" value="0">
660 <desc>Null value (never used by the API).</desc>
661 </const>
662 <const name="Direct" value="1">
663 <desc>
664 Direct session
665 (opened by <link to="IVirtualBox::openSession"/>)
666 </desc>
667 </const>
668 <const name="Remote" value="2">
669 <desc>
670 Remote session
671 (opened by <link to="IVirtualBox::openRemoteSession"/>)
672 </desc>
673 </const>
674 <const name="Existing" value="3">
675 <desc>
676 Existing session
677 (opened by <link to="IVirtualBox::openExistingSession"/>)
678 </desc>
679 </const>
680 </enum>
681
682 <enum
683 name="DeviceType"
684 uuid="6d9420f7-0b56-4636-99f9-7346f1b01e57"
685 >
686 <desc>
687 Device type.
688 </desc>
689 <const name="Null" value="0">
690 <desc>
691 Null value, may also mean "no device" (not allowed for
692 <link to="IConsole::getDeviceActivity"/>).
693 </desc>
694 </const>
695 <const name="Floppy" value="1">
696 <desc>Floppy device.</desc>
697 </const>
698 <const name="DVD" value="2">
699 <desc>CD/DVD-ROM device.</desc>
700 </const>
701 <const name="HardDisk" value="3">
702 <desc>Hard disk device.</desc>
703 </const>
704 <const name="Network" value="4">
705 <desc>Network device.</desc>
706 </const>
707 <const name="USB" value="5">
708 <desc>USB device.</desc>
709 </const>
710 <const name="SharedFolder" value="6">
711 <desc>Shared folder device.</desc>
712 </const>
713 </enum>
714
715 <enum
716 name="DeviceActivity"
717 uuid="6FC8AEAA-130A-4eb5-8954-3F921422D707"
718 >
719 <desc>
720 Device activity for <link to="IConsole::getDeviceActivity"/>.
721 </desc>
722
723 <const name="Null" value="0"/>
724 <const name="Idle" value="1"/>
725 <const name="Reading" value="2"/>
726 <const name="Writing" value="3"/>
727 </enum>
728
729 <enum
730 name="ClipboardMode"
731 uuid="33364716-4008-4701-8f14-be0fa3d62950"
732 >
733 <desc>
734 Host-Guest clipboard interchange mode.
735 </desc>
736
737 <const name="Disabled" value="0"/>
738 <const name="HostToGuest" value="1"/>
739 <const name="GuestToHost" value="2"/>
740 <const name="Bidirectional" value="3"/>
741 </enum>
742
743 <enum
744 name="Scope"
745 uuid="7c91096e-499e-4eca-9f9b-9001438d7855"
746 >
747 <desc>
748 Scope of the operation.
749
750 A generic enumeration used in various methods to define the action or
751 argument scope.
752 </desc>
753
754 <const name="Global" value="0"/>
755 <const name="Machine" value="1"/>
756 <const name="Session" value="2"/>
757 </enum>
758
759 <enum
760 name="GuestStatisticType"
761 uuid="aa7c1d71-aafe-47a8-9608-27d2d337cf55"
762 >
763 <desc>
764 Statistics type for <link to="IGuest::getStatistic"/>.
765 </desc>
766
767 <const name="CPULoad_Idle" value="0">
768 <desc>
769 Idle CPU load (0-100%) for last interval.
770 </desc>
771 </const>
772 <const name="CPULoad_Kernel" value="1">
773 <desc>
774 Kernel CPU load (0-100%) for last interval.
775 </desc>
776 </const>
777 <const name="CPULoad_User" value="2">
778 <desc>
779 User CPU load (0-100%) for last interval.
780 </desc>
781 </const>
782 <const name="Threads" value="3">
783 <desc>
784 Total number of threads in the system.
785 </desc>
786 </const>
787 <const name="Processes" value="4">
788 <desc>
789 Total number of processes in the system.
790 </desc>
791 </const>
792 <const name="Handles" value="5">
793 <desc>
794 Total number of handles in the system.
795 </desc>
796 </const>
797 <const name="MemoryLoad" value="6">
798 <desc>
799 Memory load (0-100%).
800 </desc>
801 </const>
802 <const name="PhysMemTotal" value="7">
803 <desc>
804 Total physical memory in megabytes.
805 </desc>
806 </const>
807 <const name="PhysMemAvailable" value="8">
808 <desc>
809 Free physical memory in megabytes.
810 </desc>
811 </const>
812 <const name="PhysMemBalloon" value="9">
813 <desc>
814 Ballooned physical memory in megabytes.
815 </desc>
816 </const>
817 <const name="MemCommitTotal" value="10">
818 <desc>
819 Total amount of memory in the committed state in megabytes.
820 </desc>
821 </const>
822 <const name="MemKernelTotal" value="11">
823 <desc>
824 Total amount of memory used by the guest OS's kernel in megabytes.
825 </desc>
826 </const>
827 <const name="MemKernelPaged" value="12">
828 <desc>
829 Total amount of paged memory used by the guest OS's kernel in megabytes.
830 </desc>
831 </const>
832 <const name="MemKernelNonpaged" value="13">
833 <desc>
834 Total amount of non-paged memory used by the guest OS's kernel in megabytes.
835 </desc>
836 </const>
837 <const name="MemSystemCache" value="14">
838 <desc>
839 Total amount of memory used by the guest OS's system cache in megabytes.
840 </desc>
841 </const>
842 <const name="PageFileSize" value="15">
843 <desc>
844 Pagefile size in megabytes.
845 </desc>
846 </const>
847 <const name="SampleNumber" value="16">
848 <desc>
849 Statistics sample number
850 </desc>
851 </const>
852 <const name="MaxVal" value="17"/>
853 </enum>
854
855 <enum
856 name="BIOSBootMenuMode"
857 uuid="ae4fb9f7-29d2-45b4-b2c7-d579603135d5"
858 >
859 <desc>
860 BIOS boot menu mode.
861 </desc>
862
863 <const name="Disabled" value="0"/>
864 <const name="MenuOnly" value="1"/>
865 <const name="MessageAndMenu" value="2"/>
866 </enum>
867
868 <enum
869 name="DriveState"
870 uuid="cb7233b7-c519-42a5-8310-1830953cacbc"
871 >
872 <const name="Null" value="0">
873 <desc>Null value (never used by the API).</desc>
874 </const>
875 <const name="NotMounted" value="1"/>
876 <const name="ImageMounted" value="2"/>
877 <const name="HostDriveCaptured" value="3"/>
878 </enum>
879
880 <enum
881 name="ProcessorFeature"
882 uuid="b8353b35-705d-4796-9967-ebfb7ba54af4"
883 >
884 <desc>
885 CPU features.
886 </desc>
887
888 <const name="HWVirtEx" value="0"/>
889 <const name="PAE" value="1"/>
890 <const name="LongMode" value="2"/>
891 </enum>
892
893
894 <!--
895 // IVirtualBoxErrorInfo
896 /////////////////////////////////////////////////////////////////////////
897 -->
898
899 <interface
900 name="IVirtualBoxErrorInfo" extends="$errorinfo"
901 uuid="e98b5376-8eb4-4eea-812a-3964bf3bb26f"
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="result" 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.
943 <note>
944 In MS COM, there is no equivalent.
945 In XPCOM, it is the same as nsIException::result.
946 </note>
947 </desc>
948 </attribute>
949
950 <attribute name="interfaceID" type="uuid" readonly="yes">
951 <desc>
952 UUID of the interface that defined the error.
953 <note>
954 In MS COM, it is the same as IErrorInfo::GetGUID.
955 In XPCOM, there is no equivalent.
956 </note>
957 </desc>
958 </attribute>
959
960 <attribute name="component" type="wstring" readonly="yes">
961 <desc>
962 Name of the component that generated the error.
963 <note>
964 In MS COM, it is the same as IErrorInfo::GetSource.
965 In XPCOM, there is no equivalent.
966 </note>
967 </desc>
968 </attribute>
969
970 <attribute name="text" type="wstring" readonly="yes">
971 <desc>
972 Text description of the error.
973 <note>
974 In MS COM, it is the same as IErrorInfo::GetDescription.
975 In XPCOM, it is the same as nsIException::message.
976 </note>
977 </desc>
978 </attribute>
979
980 <attribute name="next" type="IVirtualBoxErrorInfo" readonly="yes">
981 <desc>
982 Next error object if there is any, or @c null otherwise.
983 <note>
984 In MS COM, there is no equivalent.
985 In XPCOM, it is the same as nsIException::inner.
986 </note>
987 </desc>
988 </attribute>
989
990 </interface>
991
992
993 <!--
994 // IVirtualBox
995 /////////////////////////////////////////////////////////////////////////
996 -->
997
998 <interface
999 name="IVirtualBoxCallback" extends="$unknown"
1000 uuid="2990059f-5bc8-4635-8415-658917cd3186"
1001 wsmap="suppress"
1002 >
1003 <method name="onMachineStateChange">
1004 <desc>
1005 The execution state of the given machine has changed.
1006 <see>IMachine::state</see>
1007 </desc>
1008 <param name="machineId" type="wstring" dir="in">
1009 <desc>ID of the machine this event relates to.</desc>
1010 </param>
1011 <param name="state" type="MachineState" dir="in">
1012 <desc>New execution state.</desc>
1013 </param>
1014 </method>
1015
1016 <method name="onMachineDataChange">
1017 <desc>
1018 Any of the settings of the given machine has changed.
1019 </desc>
1020 <param name="machineId" type="wstring" dir="in">
1021 <desc>ID of the machine this event relates to.</desc>
1022 </param>
1023 </method>
1024
1025 <method name="onExtraDataCanChange">
1026 <desc>
1027 Notification when someone tries to change extra data for
1028 either the given machine or (if null) global extra data.
1029 This gives the chance to veto against changes.
1030 </desc>
1031 <param name="machineId" type="wstring" dir="in">
1032 <desc>
1033 ID of the machine this event relates to
1034 (null ID for global extra data change requests).
1035 </desc>
1036 </param>
1037 <param name="key" type="wstring" dir="in">
1038 <desc>
1039 Extra data key for the attempted write.
1040 </desc>
1041 </param>
1042 <param name="value" type="wstring" dir="in">
1043 <desc>
1044 Extra data value for the given key.
1045 </desc>
1046 </param>
1047 <param name="error" type="wstring" dir="out">
1048 <desc>
1049 Optional error message describing the reason of the
1050 veto (ignored if this notification returns @c true).
1051 </desc>
1052 </param>
1053 <param name="allowChange" type="boolean" dir="return">
1054 <desc>
1055 Flag to indicate whether the callee agrees (@c true)
1056 or vetoes against the change (@c false).
1057 </desc>
1058 </param>
1059 </method>
1060
1061 <method name="onExtraDataChange">
1062 <desc>
1063 Notification when machine specific or global extra data
1064 has changed.
1065 </desc>
1066 <param name="machineId" type="wstring" dir="in">
1067 <desc>
1068 ID of the machine this event relates to.
1069 Null for global extra data changes.
1070 </desc>
1071 </param>
1072 <param name="key" type="wstring" dir="in">
1073 <desc>
1074 Extra data key that has changed.
1075 </desc>
1076 </param>
1077 <param name="value" type="wstring" dir="in">
1078 <desc>
1079 Extra data value for the given key.
1080 </desc>
1081 </param>
1082 </method>
1083
1084 <method name="onMediaRegistered">
1085 <desc>
1086 The given media was registered or unregistered
1087 within this VirtualBox installation.
1088
1089 The @a mediaType parameter describes what type of
1090 media the specified @a mediaId refers to. Possible
1091 values are:
1092
1093 <ul>
1094 <li><link to="DeviceType_HardDisk"/>: the media is a hard disk
1095 that, if registered, can be obtained using the
1096 <link to="IVirtualBox::getHardDisk"/> call.</li>
1097 <li><link to="DeviceType_DVD"/>: the media is a CD/DVD image
1098 that, if registered, can be obtained using the
1099 <link to="IVirtualBox::getDVDImage"/> call.</li>
1100 <li><link to="DeviceType_Floppy"/>: the media is a Floppy image
1101 that, if registered, can be obtained using the
1102 <link to="IVirtualBox::getFloppyImage"/> call.</li>
1103 </ul>
1104
1105 Note that if this is a deregistration notification,
1106 there is no way to access the object representing the
1107 unregistered media. It is supposed that the
1108 application will do required cleanup based on the
1109 @a mediaId value.
1110 </desc>
1111 <param name="mediaId" type="wstring" dir="in">
1112 <desc>ID of the media this event relates to.</desc>
1113 </param>
1114 <param name="mediaType" type="DeviceType" dir="in">
1115 <desc>Type of the media this event relates to.</desc>
1116 </param>
1117 <param name="registered" type="boolean" dir="in">
1118 <desc>
1119 If true, the media was registered, otherwise it was
1120 unregistered.
1121 </desc>
1122 </param>
1123 </method>
1124
1125 <method name="onMachineRegistered">
1126 <desc>
1127 The given machine was registered or unregistered
1128 within this VirtualBox installation.
1129 </desc>
1130 <param name="machineId" type="wstring" dir="in">
1131 <desc>ID of the machine this event relates to.</desc>
1132 </param>
1133 <param name="registered" type="boolean" dir="in">
1134 <desc>
1135 If true, the machine was registered, otherwise it was
1136 unregistered.
1137 </desc>
1138 </param>
1139 </method>
1140
1141 <method name="onSessionStateChange">
1142 <desc>
1143 The state of the session for the given machine was changed.
1144 <see>IMachine::sessionState</see>
1145 </desc>
1146 <param name="machineId" type="wstring" dir="in">
1147 <desc>ID of the machine this event relates to.</desc>
1148 </param>
1149 <param name="state" type="SessionState" dir="in">
1150 <desc>New session state.</desc>
1151 </param>
1152 </method>
1153
1154 <method name="onSnapshotTaken">
1155 <desc>
1156 A new snapshot of the machine has been taken.
1157 <see>ISnapshot</see>
1158 </desc>
1159 <param name="machineId" type="wstring" dir="in">
1160 <desc>ID of the machine this event relates to.</desc>
1161 </param>
1162 <param name="snapshotId" type="wstring" dir="in">
1163 <desc>ID of the new snapshot.</desc>
1164 </param>
1165 </method>
1166
1167 <method name="onSnapshotDiscarded">
1168 <desc>
1169 Snapshot of the given machine has been discarded.
1170
1171 <note>
1172 This notification is delivered <b>after</b> the snapshot
1173 object has been uninitialized on the server (so that any
1174 attempt to call its methods will return an error).
1175 </note>
1176
1177 <see>ISnapshot</see>
1178 </desc>
1179 <param name="machineId" type="wstring" dir="in">
1180 <desc>ID of the machine this event relates to.</desc>
1181 </param>
1182 <param name="snapshotId" type="wstring" dir="in">
1183 <desc>
1184 ID of the discarded snapshot. <tt>null</tt> means the
1185 current machine state has been discarded (restored from
1186 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="54bf05ec-3fa9-4735-b92e-76e7c6c7e2be"
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 <tt>x</tt> and <tt>y</tt> are the major and the minor format
1421 versions, and <tt>platform</tt> 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 <tt>x</tt> and <tt>y</tt> are the major and the minor format
1457 versions, and <tt>platform</tt> 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 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 (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 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 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 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 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 <tt>null</tt> then the default storage format
1869 specified by <link to="ISystemProperties::defaultHardDiskFormat"/> will
1870 be used for creating a storage unit of the hard disk.
1871
1872 Note that the format of the location string is storage format specific.
1873 See <link to="IMedium::location"/>, IHardDisk and
1874 <link to="ISystemProperties::defaultHardDiskFolder"/> for more details.
1875
1876 <result name="VBOX_E_OBJECT_NOT_FOUND">
1877 @a format identifier is invalid. See
1878 <link to="ISystemProperties::hardDiskFormats"/>.
1879 </result>
1880 <result name="VBOX_E_FILE_ERROR">
1881 @a location is a not valid file name (for file-based formats only).
1882 </result>
1883 <result name="E_INVALIDARG">
1884 @a format is a null or empty string.
1885 </result>
1886 </desc>
1887 <param name="format" type="wstring" dir="in">
1888 <desc>
1889 Identifier of the storage format to use for the new hard disk.
1890 </desc>
1891 </param>
1892 <param name="location" type="wstring" dir="in">
1893 <desc>
1894 Location of the storage unit for the new hard disk.
1895 </desc>
1896 </param>
1897 <param name="hardDisk" type="IHardDisk" dir="return">
1898 <desc>Created hard disk object.</desc>
1899 </param>
1900 </method>
1901
1902 <method name="openHardDisk">
1903 <desc>
1904 Opens a hard disk from an existing location.
1905
1906 After the hard disk is successfully opened by this method, it gets
1907 remembered by (known to) this VirtualBox installation and will be
1908 accessible through <link to="#getHardDisk"/> and
1909 <link to="#findHardDisk"/> methods. Remembered root (base) hard disks
1910 are also returned as part of the <link to="#hardDisks"/> array and can
1911 be attached to virtual machines. See IHardDisk for more details.
1912
1913 If a differencing hard disk is to be opened by this method, the
1914 operation will succeed only if its parent hard disk and all ancestors,
1915 if any, are already known to this VirtualBox installation (for example,
1916 were opened by this method before).
1917
1918 This method tries to guess the storage format of the specified hard disk
1919 by reading hard disk data at the specified location.
1920
1921 If @a write is ReadWrite (which it should be), the image is opened for
1922 read/write access and must have according permissions, as VirtualBox
1923 may actually write status information into the disk's metadata sections.
1924
1925 Note that write access is required for all typical image usage in VirtualBox,
1926 since VirtualBox may need to write metadata such as a UUID into the image.
1927 The only exception is opening a source image temporarily for copying and
1928 cloning when the image will quickly be closed again.
1929
1930 Note that the format of the location string is storage format specific.
1931 See <link to="IMedium::location"/>, IHardDisk and
1932 <link to="ISystemProperties::defaultHardDiskFolder"/> for more details.
1933
1934 <result name="VBOX_E_FILE_ERROR">
1935 Invalid hard disk storage file location or could not find the hard
1936 disk at the specified location.
1937 </result>
1938 <result name="VBOX_E_IPRT_ERROR">
1939 Could not get hard disk storage format.
1940 </result>
1941 <result name="E_INVALIDARG">
1942 Invalid hard disk storage format.
1943 </result>
1944
1945 </desc>
1946 <param name="location" type="wstring" dir="in">
1947 <desc>
1948 Location of the storage unit that contains hard disk data in one of
1949 the supported storage formats.
1950 </desc>
1951 </param>
1952 <param name="accessMode" type="AccessMode" dir="in">
1953 <desc>
1954 Determines whether to open the image in read/write or read-only mode.
1955 </desc>
1956 </param>
1957 <param name="hardDisk" type="IHardDisk" dir="return">
1958 <desc>Opened hard disk object.</desc>
1959 </param>
1960 </method>
1961
1962 <method name="getHardDisk" const="yes">
1963 <desc>
1964 Returns a hard disk with the given UUID.
1965
1966 The hard disk with the given UUID must be known to this VirtualBox
1967 installation, i.e. it must be previously created by
1968 <link to="#createHardDisk"/> or opened by <link
1969 to="#openHardDisk"/>, or attached to some known virtual machine.
1970
1971 <result name="VBOX_E_OBJECT_NOT_FOUND">
1972 No hard disk object matching @a id found.
1973 </result>
1974
1975 </desc>
1976 <param name="id" type="wstring" dir="in">
1977 <desc>UUID of the hard disk to look for.</desc>
1978 </param>
1979 <param name="hardDisk" type="IHardDisk" dir="return">
1980 <desc>Found hard disk object.</desc>
1981 </param>
1982 </method>
1983
1984 <method name="findHardDisk">
1985 <desc>
1986 Returns a hard disk that uses the given location to store hard
1987 disk data.
1988
1989 The given hard disk must be known to this VirtualBox installation, i.e.
1990 it must be previously created by
1991 <link to="#createHardDisk"/> or opened by <link
1992 to="#openHardDisk"/>, or attached to some known virtual machine.
1993
1994 The search is done by comparing the value of the @a location argument to
1995 the <link to="IHardDisk::location"/> attribute of each known hard
1996 disk.
1997
1998 For locations represented by file names in the host's file system, the
1999 requested location can be a path relative to the
2000 <link to="IVirtualBox::homeFolder">VirtualBox home folder</link>. If
2001 only a file name without any path is given, the
2002 <link to="ISystemProperties::defaultHardDiskFolder"> default hard disk
2003 folder</link> will be prepended to the file name before searching. Note
2004 that on case sensitive file systems, a case sensitive comparison is
2005 performed, otherwise the case of symbols in the file path is ignored.
2006
2007 <result name="VBOX_E_OBJECT_NOT_FOUND">
2008 No hard disk object matching @a location found.
2009 </result>
2010
2011 </desc>
2012 <param name="location" type="wstring" dir="in">
2013 <desc>Location string to search for.</desc>
2014 </param>
2015 <param name="hardDisk" type="IHardDisk" dir="return">
2016 <desc>Found hard disk object.</desc>
2017 </param>
2018 </method>
2019
2020 <method name="openDVDImage">
2021 <desc>
2022 Opens a CD/DVD image contained in the specified file of the supported
2023 format and assigns it the given UUID.
2024
2025 After the image is successfully opened by this method, it gets
2026 remembered by (known to) this VirtualBox installation and will be
2027 accessible through <link to="#getDVDImage"/> and
2028 <link to="#findDVDImage"/> methods. Remembered images are also
2029 returned as part of the <link to="#DVDImages"/> array and can be mounted
2030 to virtual machines. See IMedium for more details.
2031
2032 See <link to="IMedium::location"/> to get more details about the format
2033 of the location string.
2034
2035 <note>
2036 Currently only ISO 9960 CD/DVD images are supported by VirtualBox.
2037 </note>
2038
2039 <result name="VBOX_E_FILE_ERROR">
2040 Invalid CD/DVD image file location or could not find the CD/DVD
2041 image at the specified location.
2042 </result>
2043 <result name="VBOX_E_INVALID_OBJECT_STATE">
2044 CD/DVD image already exists in the media registry.
2045 </result>
2046
2047 </desc>
2048 <param name="location" type="wstring" dir="in">
2049 <desc>
2050 Full path to the file that contains a valid CD/DVD image.
2051 </desc>
2052 </param>
2053 <param name="id" type="wstring" dir="in">
2054 <desc>
2055 UUID to assign to the given image within this VirtualBox installation.
2056 If an empty (null) UUID is specified, the system will randomly
2057 generate a new UUID.
2058 </desc>
2059 </param>
2060 <param name="image" type="IDVDImage" dir="return">
2061 <desc>Opened CD/DVD image object.</desc>
2062 </param>
2063 </method>
2064
2065 <method name="getDVDImage">
2066 <desc>
2067 Returns a CD/DVD image with the given UUID.
2068
2069 The image with the given UUID must be known to this VirtualBox
2070 installation, i.e. it must be previously opened by <link
2071 to="#openDVDImage"/>, or mounted to some known virtual machine.
2072
2073 <result name="VBOX_E_OBJECT_NOT_FOUND">
2074 No matching DVD image found in the media registry.
2075 </result>
2076
2077 </desc>
2078 <param name="id" type="wstring" dir="in">
2079 <desc>UUID of the image to look for.</desc>
2080 </param>
2081 <param name="image" type="IDVDImage" dir="return">
2082 <desc>Found CD/DVD image object.</desc>
2083 </param>
2084 </method>
2085
2086 <method name="findDVDImage">
2087 <desc>
2088 Returns a CD/DVD image with the given image location.
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 The search is done by comparing the value of the @a location argument to
2095 the <link to="IMedium::location"/> attribute of each known CD/DVD image.
2096
2097 The requested location can be a path relative to the
2098 <link to="IVirtualBox::homeFolder">VirtualBox home folder</link>. If
2099 only a file name without any path is given, the
2100 <link to="ISystemProperties::defaultHardDiskFolder"> default hard disk
2101 folder</link> will be prepended to the file name before searching. Note
2102 that on case sensitive file systems, a case sensitive comparison is
2103 performed, otherwise the case in the file path is ignored.
2104
2105 <result name="VBOX_E_FILE_ERROR">
2106 Invalid image file location.
2107 </result>
2108 <result name="VBOX_E_OBJECT_NOT_FOUND">
2109 No matching DVD image found in the media registry.
2110 </result>
2111
2112 </desc>
2113 <param name="location" type="wstring" dir="in">
2114 <desc>CD/DVD image file path to look for.</desc>
2115 </param>
2116 <param name="image" type="IDVDImage" dir="return">
2117 <desc>Found CD/DVD image object.</desc>
2118 </param>
2119 </method>
2120
2121 <method name="openFloppyImage">
2122 <desc>
2123 Opens a floppy image contained in the specified file of the supported
2124 format and assigns it the given UUID.
2125
2126 After the image is successfully opened by this method, it gets
2127 remembered by (known to) this VirtualBox installation and will be
2128 accessible through <link to="#getFloppyImage"/> and
2129 <link to="#findFloppyImage"/> methods. Remembered images are also
2130 returned as part of the <link to="#floppyImages"/> array and can be
2131 mounted to virtual machines. See IMedium for more details.
2132
2133 See <link to="IMedium::location"/> to get more details about the format
2134 of the location string.
2135
2136 <result name="VBOX_E_FILE_ERROR">
2137 Invalid floppy image file location or could not find the floppy
2138 image at the specified location.
2139 </result>
2140 <result name="VBOX_E_INVALID_OBJECT_STATE">
2141 Floppy image already exists in the media registry.
2142 </result>
2143
2144 <note>
2145 Currently, only raw floppy images are supported by VirtualBox.
2146 </note>
2147 </desc>
2148 <param name="location" type="wstring" dir="in">
2149 <desc>
2150 Full path to the file that contains a valid floppy image.
2151 </desc>
2152 </param>
2153 <param name="id" type="wstring" dir="in">
2154 <desc>
2155 UUID to assign to the given image file within this VirtualBox
2156 installation. If an empty (null) UUID is specified, the system will
2157 randomly generate a new UUID.
2158 </desc>
2159 </param>
2160 <param name="image" type="IFloppyImage" dir="return">
2161 <desc>Opened floppy image object.</desc>
2162 </param>
2163 </method>
2164
2165 <method name="getFloppyImage">
2166 <desc>
2167 Returns a floppy image with the given UUID.
2168
2169 The image with the given UUID must be known to this VirtualBox
2170 installation, i.e. it must be previously opened by <link
2171 to="#openFloppyImage"/>, or mounted to some known virtual machine.
2172
2173 <result name="VBOX_E_OBJECT_NOT_FOUND">
2174 No matching floppy image found in the media registry.
2175 </result>
2176
2177 </desc>
2178 <param name="id" type="wstring" dir="in">
2179 <desc>UUID of the image to look for.</desc>
2180 </param>
2181 <param name="image" type="IFloppyImage" dir="return">
2182 <desc>Found floppy image object.</desc>
2183 </param>
2184 </method>
2185
2186 <method name="findFloppyImage">
2187 <desc>
2188 Returns a floppy image with the given image location.
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 The search is done by comparing the value of the @a location argument to
2195 the <link to="IMedium::location"/> attribute of each known floppy image.
2196
2197 The requested location can be a path relative to the
2198 <link to="IVirtualBox::homeFolder">VirtualBox home folder</link>. If
2199 only a file name without any path is given, the
2200 <link to="ISystemProperties::defaultHardDiskFolder"> default hard disk
2201 folder</link> will be prepended to the file name before searching. Note
2202 that on case sensitive file systems, a case sensitive comparison is
2203 performed, otherwise the case of symbols in the file path is ignored.
2204
2205 <result name="VBOX_E_FILE_ERROR">
2206 Invalid image file location.
2207 </result>
2208 <result name="VBOX_E_OBJECT_NOT_FOUND">
2209 No matching floppy image found in the media registry.
2210 </result>
2211
2212 </desc>
2213 <param name="location" type="wstring" dir="in">
2214 <desc>Floppy image file path to look for.</desc>
2215 </param>
2216 <param name="image" type="IFloppyImage" dir="return">
2217 <desc>Found floppy image object.</desc>
2218 </param>
2219 </method>
2220
2221 <method name="getGuestOSType">
2222 <desc>
2223 Returns an object describing the specified guest OS type.
2224
2225 The requested guest OS type is specified using a string which is a
2226 mnemonic identifier of the guest operating system, such as
2227 <tt>"win31"</tt> or <tt>"ubuntu"</tt>. The guest OS type ID of a
2228 particular virtual machine can be read or set using the
2229 <link to="IMachine::OSTypeId"/> attribute.
2230
2231 The <link to="IVirtualBox::guestOSTypes"/> collection contains all
2232 available guest OS type objects. Each object has an
2233 <link to="IGuestOSType::id"/> attribute which contains an identifier of
2234 the guest OS this object describes.
2235
2236 <result name="E_INVALIDARG">
2237 @a id is not a valid Guest OS type.
2238 </result>
2239
2240 </desc>
2241 <param name="id" type="wstring" dir="in">
2242 <desc>Guest OS type ID string.</desc>
2243 </param>
2244 <param name="type" type="IGuestOSType" dir="return">
2245 <desc>Guest OS type object.</desc>
2246 </param>
2247 </method>
2248
2249 <method name="createSharedFolder">
2250 <desc>
2251 Creates a new global shared folder by associating the given logical
2252 name with the given host path, adds it to the collection of shared
2253 folders and starts sharing it. Refer to the description of
2254 <link to="ISharedFolder"/> to read more about logical names.
2255 <note>
2256 In the current implementation, this operation is not
2257 implemented.
2258 </note>
2259 </desc>
2260 <param name="name" type="wstring" dir="in">
2261 <desc>Unique logical name of the shared folder.</desc>
2262 </param>
2263 <param name="hostPath" type="wstring" dir="in">
2264 <desc>Full path to the shared folder in the host file system.</desc>
2265 </param>
2266 <param name="writable" type="boolean" dir="in">
2267 <desc>Whether the share is writable or readonly</desc>
2268 </param>
2269 </method>
2270
2271 <method name="removeSharedFolder">
2272 <desc>
2273 Removes the global shared folder with the given name previously
2274 created by <link to="#createSharedFolder"/> from the collection of
2275 shared folders and stops sharing it.
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>Logical name of the shared folder to remove.</desc>
2283 </param>
2284 </method>
2285
2286 <method name="getNextExtraDataKey">
2287 <desc>
2288 Returns the global extra data key name following the supplied key.
2289
2290 An error is returned if the supplied @a key does not exist. @c NULL is
2291 returned in @a nextKey if the supplied key is the last key. When
2292 supplying @c NULL or an empty string for the @a key, the first key item
2293 is returned in @a nextKey (if there is any). @a nextValue is an optional
2294 parameter and if supplied, the next key's value is returned in it.
2295
2296 <result name="VBOX_E_OBJECT_NOT_FOUND">
2297 Extra data @a key not found.
2298 </result>
2299
2300 </desc>
2301 <param name="key" type="wstring" dir="in">
2302 <desc>Name of the data key to follow.</desc>
2303 </param>
2304 <param name="nextKey" type="wstring" dir="out">
2305 <desc>Name of the next data key.</desc>
2306 </param>
2307 <param name="nextValue" type="wstring" dir="out">
2308 <desc>Value of the next data key.</desc>
2309 </param>
2310 </method>
2311
2312 <method name="getExtraData">
2313 <desc>
2314 Returns associated global extra data.
2315
2316 If the requested data @a key does not exist, this function will
2317 succeed and return @c NULL in the @a value argument.
2318
2319 <result name="VBOX_E_FILE_ERROR">
2320 Settings file not accessible.
2321 </result>
2322 <result name="VBOX_E_XML_ERROR">
2323 Could not parse the settings file.
2324 </result>
2325
2326 </desc>
2327 <param name="key" type="wstring" dir="in">
2328 <desc>Name of the data key to get.</desc>
2329 </param>
2330 <param name="value" type="wstring" dir="return">
2331 <desc>Value of the requested data key.</desc>
2332 </param>
2333 </method>
2334
2335 <method name="setExtraData">
2336 <desc>
2337 Sets associated global extra data.
2338
2339 If you pass @c NULL as a key @a value, the given @a key will be
2340 deleted.
2341
2342 <note>
2343 Before performing the actual data change, this method will ask all
2344 registered callbacks using the
2345 <link to="IVirtualBoxCallback::onExtraDataCanChange"/>
2346 notification for a permission. If one of the callbacks refuses the
2347 new value, the change will not be performed.
2348 </note>
2349 <note>
2350 On success, the
2351 <link to="IVirtualBoxCallback::onExtraDataChange"/> notification
2352 is called to inform all registered callbacks about a successful data
2353 change.
2354 </note>
2355
2356 <result name="VBOX_E_FILE_ERROR">
2357 Settings file not accessible.
2358 </result>
2359 <result name="VBOX_E_XML_ERROR">
2360 Could not parse the settings file.
2361 </result>
2362 <result name="E_ACCESSDENIED">
2363 Modification request refused.
2364 </result>
2365
2366 </desc>
2367 <param name="key" type="wstring" dir="in">
2368 <desc>Name of the data key to set.</desc>
2369 </param>
2370 <param name="value" type="wstring" dir="in">
2371 <desc>Value to assign to the key.</desc>
2372 </param>
2373 </method>
2374
2375 <method name="openSession">
2376 <desc>
2377 Opens a new direct session with the given virtual machine.
2378
2379 A direct session acts as a local lock on the given VM.
2380 There can be only one direct session open at a time for every
2381 virtual machine, protecting the VM from being manipulated by
2382 conflicting actions from different processes. Only after a
2383 direct session has been opened, one can change all VM settings
2384 and execute the VM in the process space of the session object.
2385
2386 Sessions therefore can be compared to mutex semaphores that
2387 lock a given VM for modification and execution.
2388 See <link to="ISession">ISession</link> for details.
2389
2390 <note>Unless you are writing a new VM frontend, you will not
2391 want to execute a VM in the current process. To spawn a new
2392 process that executes a VM, use
2393 <link to="IVirtualBox::openRemoteSession" />
2394 instead.</note>
2395
2396 Upon successful return, the session object can be used to
2397 get access to the machine and to the VM console.
2398
2399 In VirtualBox terminology, the machine becomes "mutable" after
2400 a session has been opened. Note that the "mutable" machine
2401 object, on which you may invoke IMachine methods to change its
2402 settings, will be a different object from the immutable IMachine
2403 objects returned by various IVirtualBox methods. To obtain a
2404 mutable IMachine object (upon which you can invoke settings methods),
2405 use the <link to="ISession::machine" /> attribute.
2406
2407 One must always call <link to="ISession::close" /> to release the
2408 lock on the machine, or the machine's state will eventually be
2409 set to "Aborted".
2410
2411 In other words, to change settings on a machine, the following
2412 sequence is typically performed:
2413
2414 <ol>
2415 <li>Call this method (openSession) to have a machine locked for
2416 the current session.</li>
2417
2418 <li>Obtain a mutable IMachine object from <link to="ISession::machine" />.</li>
2419
2420 <li>Change the settings of the machine.</li>
2421
2422 <li>Call <link to="IMachine::saveSettings" />.</li>
2423
2424 <li>Close the session by calling <link to="ISession::close"/>.</li>
2425 </ol>
2426
2427 <result name="E_UNEXPECTED">
2428 Virtual machine not registered.
2429 </result>
2430 <result name="E_ACCESSDENIED">
2431 Process not started by OpenRemoteSession.
2432 </result>
2433 <result name="VBOX_E_OBJECT_NOT_FOUND">
2434 No matching virtual machine found.
2435 </result>
2436 <result name="VBOX_E_INVALID_OBJECT_STATE">
2437 Session already open or being opened.
2438 </result>
2439 <result name="VBOX_E_VM_ERROR">
2440 Failed to assign machine to session.
2441 </result>
2442
2443 </desc>
2444 <param name="session" type="ISession" dir="in">
2445 <desc>
2446 Session object that will represent the opened session after
2447 successful method invocation. This object must not represent
2448 the already open session.
2449 <note>
2450 This session will be automatically closed if the
2451 VirtualBox server is terminated for some reason.
2452 </note>
2453 </desc>
2454 </param>
2455 <param name="machineId" type="wstring" dir="in">
2456 <desc>ID of the virtual machine to open a session with.</desc>
2457 </param>
2458 </method>
2459
2460 <method name="openRemoteSession">
2461 <desc>
2462 Spawns a new process that executes a virtual machine (called a
2463 "remote session").
2464
2465 Opening a remote session causes the VirtualBox server to start a new
2466 process that opens a direct session with the given VM. As a result, the
2467 VM is locked by that direct session in the new process, preventing
2468 conflicting changes from other processes. Since sessions act as locks
2469 that prevent conflicting changes, one cannot open a remote session
2470 for a VM that already has another open session (direct or remote), or
2471 is currently in the process of opening one (see <link
2472 to="IMachine::sessionState"/>).
2473
2474 While the remote session still provides some level of control over the
2475 VM execution to the caller (using the <link to="IConsole" /> interface),
2476 not all VM settings are available for modification within the remote
2477 session context.
2478
2479 This operation can take some time (a new VM is started in a new process,
2480 for which memory and other resources need to be set up). Because of this,
2481 an <link to="IProgress" /> is returned to allow the caller to wait for this
2482 asynchronous operation to be completed. Until then, the remote session
2483 object remains in the closed state, and accessing the machine or its
2484 console through it is invalid. It is recommended to use
2485 <link to="IProgress::waitForCompletion" /> or similar calls to wait for
2486 completion.
2487
2488 As with all <link to="ISession" /> objects, it is recommended to call
2489 <link to="ISession::close" /> on the local session object once openRemoteSession()
2490 has been called. However, the session's state (see <link to="ISession::state" />)
2491 will not return to "Closed" until the remote session has also closed (i.e.
2492 until the VM is no longer running). In that case, however, the state of
2493 the session will automatically change back to "Closed".
2494
2495 Currently supported session types (values of the @a type
2496 argument) are:
2497 <ul>
2498 <li><tt>gui</tt>: VirtualBox Qt GUI session</li>
2499 <li><tt>vrdp</tt>: VirtualBox VRDP Server session</li>
2500 </ul>
2501
2502 The @a environment argument is a string containing definitions of
2503 environment variables in the following format:
2504 @code
2505 NAME[=VALUE]\n
2506 NAME[=VALUE]\n
2507 ...
2508 @endcode
2509 where <tt>\\n</tt> is the new line character. These environment
2510 variables will be appended to the environment of the VirtualBox server
2511 process. If an environment variable exists both in the server process
2512 and in this list, the value from this list takes precedence over the
2513 server's variable. If the value of the environment variable is
2514 omitted, this variable will be removed from the resulting environment.
2515 If the environment string is @c null, the server environment is
2516 inherited by the started process as is.
2517
2518 <see>openExistingSession</see>
2519
2520 <result name="E_UNEXPECTED">
2521 Virtual machine not registered.
2522 </result>
2523 <result name="E_INVALIDARG">
2524 Invalid session type @a type.
2525 </result>
2526 <result name="VBOX_E_OBJECT_NOT_FOUND">
2527 No machine matching @a machineId found.
2528 </result>
2529 <result name="VBOX_E_INVALID_OBJECT_STATE">
2530 Session already open or being opened.
2531 </result>
2532 <result name="VBOX_E_IPRT_ERROR">
2533 Launching process for machine failed.
2534 </result>
2535 <result name="VBOX_E_VM_ERROR">
2536 Failed to assign machine to session.
2537 </result>
2538
2539 </desc>
2540 <param name="session" type="ISession" dir="in">
2541 <desc>
2542 Session object that will represent the opened remote session
2543 after successful method invocation (this object must not
2544 represent an already open session).
2545 </desc>
2546 </param>
2547 <param name="machineId" type="wstring" dir="in">
2548 <desc>ID of the virtual machine to open a session with.</desc>
2549 </param>
2550 <param name="type" type="wstring" dir="in">
2551 <desc>
2552 Type of the remote session (case sensitive).
2553 </desc>
2554 </param>
2555 <param name="environment" type="wstring" dir="in">
2556 <desc>
2557 Environment to pass to the opened session (may be @c null).
2558 </desc>
2559 </param>
2560 <param name="progress" type="IProgress" dir="return">
2561 <desc>Progress object to track the operation completion.</desc>
2562 </param>
2563 </method>
2564
2565 <method name="openExistingSession">
2566 <desc>
2567 Opens a new remote session with the virtual machine for
2568 which a direct session is already open.
2569
2570 The remote session provides some level of control over the VM
2571 execution (using the IConsole interface) to the caller; however,
2572 within the remote session context, not all VM settings are available
2573 for modification.
2574
2575 As opposed to <link to="#openRemoteSession"/>, the number of
2576 remote sessions opened this way is not limited by the API
2577
2578 <note>
2579 It is an error to open a remote session with the machine that
2580 doesn't have an open direct session.
2581 </note>
2582
2583 <result name="E_UNEXPECTED">
2584 Virtual machine not registered.
2585 </result>
2586 <result name="VBOX_E_OBJECT_NOT_FOUND">
2587 No machine matching @a machineId found.
2588 </result>
2589 <result name="VBOX_E_INVALID_OBJECT_STATE">
2590 Session already open or being opened.
2591 </result>
2592 <result name="VBOX_E_INVALID_SESSION_STATE">
2593 Direct session state not Open.
2594 </result>
2595 <result name="VBOX_E_VM_ERROR">
2596 Failed to get console object from direct session or assign
2597 machine to session.
2598 </result>
2599
2600 <see>openRemoteSession</see>
2601 </desc>
2602 <param name="session" type="ISession" dir="in">
2603 <desc>
2604 Session object that will represent the open remote session
2605 after successful method invocation. This object must not
2606 represent an already open session.
2607 <note>
2608 This session will be automatically closed when the peer
2609 (direct) session dies or gets closed.
2610 </note>
2611 </desc>
2612 </param>
2613 <param name="machineId" type="wstring" dir="in">
2614 <desc>ID of the virtual machine to open a session with.</desc>
2615 </param>
2616 </method>
2617
2618 <method name="registerCallback">
2619 <desc>
2620 Registers a new global VirtualBox callback. The methods of the given
2621 callback object will be called by VirtualBox when an appropriate
2622 event occurs.
2623
2624 <result name="E_INVALIDARG">
2625 A @c NULL callback cannot be registered.
2626 </result>
2627
2628 </desc>
2629 <param name="callback" type="IVirtualBoxCallback" dir="in">
2630 <desc>Callback object to register.</desc>
2631 </param>
2632 </method>
2633
2634 <method name="unregisterCallback">
2635 <desc>
2636 Unregisters the previously registered global VirtualBox callback.
2637
2638 <result name="E_INVALIDARG">
2639 Specified @a callback not registered.
2640 </result>
2641
2642 </desc>
2643 <param name="callback" type="IVirtualBoxCallback" dir="in">
2644 <desc>Callback object to unregister.</desc>
2645 </param>
2646 </method>
2647
2648 <method name="waitForPropertyChange">
2649 <desc>
2650 Blocks the caller until any of the properties represented by the
2651 @a what argument changes the value or until the given timeout interval
2652 expires.
2653
2654 The @a what argument is a comma separated list of property masks that
2655 describe properties the caller is interested in. The property mask is
2656 a string in the following format:
2657
2658 <pre>
2659 [[group.]subgroup.]name
2660 </pre>
2661
2662 where @c name is the property name and @c group, @c subgroup are zero
2663 or more property group specifiers. Each element (group or name) in
2664 the property mask may be either a Latin string or an asterisk symbol
2665 (@c "*") which is used to match any string for the given element. A
2666 property mask that doesn't contain asterisk symbols represents a
2667 single fully qualified property name.
2668
2669 Groups in the fully qualified property name go from more generic (the
2670 left-most part) to more specific (the right-most part). The first
2671 element is usually a name of the object the property belongs to. The
2672 second element may be either a property name, or a child object name,
2673 or an index if the preceding element names an object which is one of
2674 many objects of the same type. This way, property names form a
2675 hierarchy of properties. Here are some examples of property names:
2676
2677 <table>
2678 <tr>
2679 <td><tt>VirtualBox.version</tt></td>
2680 <td><link to="IVirtualBox::version"/> property</td>
2681 </tr>
2682 <tr>
2683 <td><tt>Machine.&lt;UUID&gt;.name</tt></td>
2684 <td><link to="IMachine::name"/> property of the machine with the
2685 given UUID</td>
2686 </tr>
2687 </table>
2688
2689 Most property names directly correspond to the properties of objects
2690 (components) provided by the VirtualBox library and may be used to
2691 track changes to these properties. However, there may be
2692 pseudo-property names that don't correspond to any existing object's
2693 property directly, as well as there may be object properties that
2694 don't have a corresponding property name that is understood by this
2695 method, and therefore changes to such properties cannot be
2696 tracked. See individual object's property descriptions to get a
2697 fully qualified property name that can be used with this method (if
2698 any).
2699
2700 There is a special property mask @c "*" (i.e. a string consisting of a
2701 single asterisk symbol) that can be used to match all properties.
2702 Below are more examples of property masks:
2703
2704 <table>
2705 <tr>
2706 <td><tt>VirtualBox.*</tt></td>
2707 <td>Track all properties of the VirtualBox object</td>
2708 </tr>
2709 <tr>
2710 <td><tt>Machine.*.name</tt></td>
2711 <td>Track changes to the <link to="IMachine::name"/> property of
2712 all registered virtual machines</td>
2713 </tr>
2714 </table>
2715
2716 <note>
2717 This function is not implemented in the current version of the
2718 product.
2719 </note>
2720 </desc>
2721 <param name="what" type="wstring" dir="in">
2722 <desc>Comma separated list of property masks.</desc>
2723 </param>
2724 <param name="timeout" type="unsigned long" dir="in">
2725 <desc>
2726 Wait timeout in milliseconds.
2727 Specify -1 for an indefinite wait.
2728 </desc>
2729 </param>
2730 <param name="changed" type="wstring" dir="out">
2731 <desc>
2732 Comma separated list of properties that have been changed and caused
2733 this method to return to the caller.
2734 </desc>
2735 </param>
2736 <param name="values" type="wstring" dir="out">
2737 <desc>Reserved, not currently used.</desc>
2738 </param>
2739 </method>
2740
2741 <method name="saveSettings">
2742 <desc>
2743 Saves the global settings to the global settings file
2744 (<link to="#settingsFilePath"/>).
2745
2746 This method is only useful for explicitly saving the global settings
2747 file after it has been auto-converted from the old format to the most
2748 recent format (see <link to="#settingsFileVersion"/> for details).
2749 Normally, the global settings file is implicitly saved when a global
2750 setting is changed.
2751
2752 <result name="VBOX_E_FILE_ERROR">
2753 Settings file not accessible.
2754 </result>
2755 <result name="VBOX_E_XML_ERROR">
2756 Could not parse the settings file.
2757 </result>
2758
2759 </desc>
2760 </method>
2761
2762 <method name="saveSettingsWithBackup">
2763 <desc>
2764 Creates a backup copy of the global settings file
2765 (<link to="IVirtualBox::settingsFilePath"/>) in case of auto-conversion,
2766 and then calls <link to="IVirtualBox::saveSettings"/>.
2767
2768 Note that the backup copy is created <b>only</b> if the settings file
2769 auto-conversion took place (see <link to="#settingsFileVersion"/> for
2770 details). Otherwise, this call is fully equivalent to
2771 <link to="IVirtualBox::saveSettings"/> and no backup copying is done.
2772
2773 The backup copy is created in the same directory where the original
2774 settings file is located. It is given the following file name:
2775 <pre>
2776 original.xml.x.y-platform.bak
2777 </pre>
2778 where <tt>original.xml</tt> is the original settings file name
2779 (excluding path), and <tt>x.y-platform</tt> is the version of the old
2780 format of the settings file (before auto-conversion).
2781
2782 If the given backup file already exists, this method will try to add the
2783 <tt>.N</tt> suffix to the backup file name (where <tt>N</tt> counts from
2784 0 to 9) and copy it again until it succeeds. If all suffixes are
2785 occupied, or if any other copy error occurs, this method will return a
2786 failure.
2787
2788 If the copy operation succeeds, the @a bakFileName return argument will
2789 receive a full path to the created backup file (for informational
2790 purposes). Note that this will happen even if the subsequent
2791 <link to="#saveSettings"/> call performed by this method after the
2792 copy operation, fails.
2793
2794 <note>
2795 The VirtualBox API never calls this method. It is intended purely for
2796 the purposes of creating backup copies of the settings files by
2797 front-ends before saving the results of the automatically performed
2798 settings conversion to disk.
2799 </note>
2800
2801 <see>settingsFileVersion</see>
2802
2803 <result name="VBOX_E_FILE_ERROR">
2804 Settings file not accessible.
2805 </result>
2806 <result name="VBOX_E_XML_ERROR">
2807 Could not parse the settings file.
2808 </result>
2809 <result name="VBOX_E_IPRT_ERROR">
2810 Could not copy the settings file.
2811 </result>
2812
2813 </desc>
2814 <param name="bakFileName" type="wstring" dir="return">
2815 <desc>Full path to the created backup copy.</desc>
2816 </param>
2817 </method>
2818
2819 <!--method name="createDHCPServerForInterface">
2820 <desc>
2821 Creates a dhcp server settings to be used for the given interface
2822 <result name="E_INVALIDARG">
2823 Host network interface @a name already exists.
2824 </result>
2825 </desc>
2826 <param name="interface" type="IHostNetworkInterface" dir="in">
2827 <desc>Network Interface</desc>
2828 </param>
2829 <param name="server" type="IDHCPServer" dir="out">
2830 <desc>Dhcp server settings</desc>
2831 </param>
2832 </method-->
2833
2834 <method name="createDHCPServer">
2835 <desc>
2836 Creates a dhcp server settings to be used for the given internal network name
2837 <result name="E_INVALIDARG">
2838 Host network interface @a name already exists.
2839 </result>
2840 </desc>
2841 <param name="name" type="wstring" dir="in">
2842 <desc>server name</desc>
2843 </param>
2844 <param name="server" type="IDHCPServer" dir="return">
2845 <desc>Dhcp server settings</desc>
2846 </param>
2847 </method>
2848
2849 <method name="findDHCPServerByNetworkName">
2850 <desc>
2851 Searches a dhcp server settings to be used for the given internal network name
2852 <result name="E_INVALIDARG">
2853 Host network interface @a name already exists.
2854 </result>
2855
2856 </desc>
2857 <param name="name" type="wstring" dir="in">
2858 <desc>server name</desc>
2859 </param>
2860 <param name="server" type="IDHCPServer" dir="return">
2861 <desc>Dhcp server settings</desc>
2862 </param>
2863 </method>
2864
2865 <!--method name="findDHCPServerForInterface">
2866 <desc>
2867 Searches a dhcp server settings to be used for the given interface
2868 <result name="E_INVALIDARG">
2869 Host network interface @a name already exists.
2870 </result>
2871 </desc>
2872 <param name="interface" type="IHostNetworkInterface" dir="in">
2873 <desc>Network Interface</desc>
2874 </param>
2875 <param name="server" type="IDHCPServer" dir="out">
2876 <desc>Dhcp server settings</desc>
2877 </param>
2878 </method-->
2879
2880 <method name="removeDHCPServer">
2881 <desc>
2882 Removes the dhcp server settings
2883 <result name="E_INVALIDARG">
2884 Host network interface @a name already exists.
2885 </result>
2886 </desc>
2887 <param name="server" type="IDHCPServer" dir="in">
2888 <desc>Dhcp server settings to be removed</desc>
2889 </param>
2890 </method>
2891
2892 </interface>
2893
2894 <!--
2895 // IAppliance
2896 /////////////////////////////////////////////////////////////////////////
2897 -->
2898
2899 <enum
2900 name="CIMOSType"
2901 uuid="86ef5f8c-18b2-4db8-a314-33721b59f89b"
2902 >
2903 <desc>
2904 OVF operating system values according to CIM V2.20 (as of Nov 2008); http://www.dmtf.org/standards/cim/cim_schema_v220
2905 </desc>
2906
2907 <const name="CIMOS_Unknown" value="0" /> <!-- "Unknown" -->
2908 <const name="CIMOS_Other" value="1" /> <!-- "Other" -->
2909 <const name="CIMOS_MACOS" value="2" /> <!-- "MACOS" -->
2910 <const name="CIMOS_ATTUNIX" value="3" /> <!-- "ATTUNIX" -->
2911 <const name="CIMOS_DGUX" value="4" /> <!-- "DGUX" -->
2912 <const name="CIMOS_DECNT" value="5" /> <!-- "DECNT" -->
2913 <const name="CIMOS_Tru64UNIX" value="6" /> <!-- "Tru64 UNIX" -->
2914 <const name="CIMOS_OpenVMS" value="7" /> <!-- "OpenVMS" -->
2915 <const name="CIMOS_HPUX" value="8" /> <!-- "HPUX" -->
2916 <const name="CIMOS_AIX" value="9" /> <!-- "AIX" -->
2917 <const name="CIMOS_MVS" value="10" /> <!-- "MVS" -->
2918 <const name="CIMOS_OS400" value="11" /> <!-- "OS400" -->
2919 <const name="CIMOS_OS2" value="12" /> <!-- "OS/2" -->
2920 <const name="CIMOS_JavaVM" value="13" /> <!-- "JavaVM" -->
2921 <const name="CIMOS_MSDOS" value="14" /> <!-- "MSDOS" -->
2922 <const name="CIMOS_WIN3x" value="15" /> <!-- "WIN3x" -->
2923 <const name="CIMOS_WIN95" value="16" /> <!-- "WIN95" -->
2924 <const name="CIMOS_WIN98" value="17" /> <!-- "WIN98" -->
2925 <const name="CIMOS_WINNT" value="18" /> <!-- "WINNT" -->
2926 <const name="CIMOS_WINCE" value="19" /> <!-- "WINCE" -->
2927 <const name="CIMOS_NCR3000" value="20" /> <!-- "NCR3000" -->
2928 <const name="CIMOS_NetWare" value="21" /> <!-- "NetWare" -->
2929 <const name="CIMOS_OSF" value="22" /> <!-- "OSF" -->
2930 <const name="CIMOS_DCOS" value="23" /> <!-- "DC/OS" -->
2931 <const name="CIMOS_ReliantUNIX" value="24" /> <!-- "Reliant UNIX" -->
2932 <const name="CIMOS_SCOUnixWare" value="25" /> <!-- "SCO UnixWare" -->
2933 <const name="CIMOS_SCOOpenServer" value="26" /> <!-- "SCO OpenServer" -->
2934 <const name="CIMOS_Sequent" value="27" /> <!-- "Sequent" -->
2935 <const name="CIMOS_IRIX" value="28" /> <!-- "IRIX" -->
2936 <const name="CIMOS_Solaris" value="29" /> <!-- "Solaris" -->
2937 <const name="CIMOS_SunOS" value="30" /> <!-- "SunOS" -->
2938 <const name="CIMOS_U6000" value="31" /> <!-- "U6000" -->
2939 <const name="CIMOS_ASERIES" value="32" /> <!-- "ASERIES" -->
2940 <const name="CIMOS_HPNonStopOS" value="33" /> <!-- "HP NonStop OS" -->
2941 <const name="CIMOS_HPNonStopOSS" value="34" /> <!-- "HP NonStop OSS" -->
2942 <const name="CIMOS_BS2000" value="35" /> <!-- "BS2000" -->
2943 <const name="CIMOS_LINUX" value="36" /> <!-- "LINUX" -->
2944 <const name="CIMOS_Lynx" value="37" /> <!-- "Lynx" -->
2945 <const name="CIMOS_XENIX" value="38" /> <!-- "XENIX" -->
2946 <const name="CIMOS_VM" value="39" /> <!-- "VM" -->
2947 <const name="CIMOS_InteractiveUNIX" value="40" /> <!-- "Interactive UNIX" -->
2948 <const name="CIMOS_BSDUNIX" value="41" /> <!-- "BSDUNIX" -->
2949 <const name="CIMOS_FreeBSD" value="42" /> <!-- "FreeBSD" -->
2950 <const name="CIMOS_NetBSD" value="43" /> <!-- "NetBSD" -->
2951 <const name="CIMOS_GNUHurd" value="44" /> <!-- "GNU Hurd" -->
2952 <const name="CIMOS_OS9" value="45" /> <!-- "OS9" -->
2953 <const name="CIMOS_MACHKernel" value="46" /> <!-- "MACH Kernel" -->
2954 <const name="CIMOS_Inferno" value="47" /> <!-- "Inferno" -->
2955 <const name="CIMOS_QNX" value="48" /> <!-- "QNX" -->
2956 <const name="CIMOS_EPOC" value="49" /> <!-- "EPOC" -->
2957 <const name="CIMOS_IxWorks" value="50" /> <!-- "IxWorks" -->
2958 <const name="CIMOS_VxWorks" value="51" /> <!-- "VxWorks" -->
2959 <const name="CIMOS_MiNT" value="52" /> <!-- "MiNT" -->
2960 <const name="CIMOS_BeOS" value="53" /> <!-- "BeOS" -->
2961 <const name="CIMOS_HPMPE" value="54" /> <!-- "HP MPE" -->
2962 <const name="CIMOS_NextStep" value="55" /> <!-- "NextStep" -->
2963 <const name="CIMOS_PalmPilot" value="56" /> <!-- "PalmPilot" -->
2964 <const name="CIMOS_Rhapsody" value="57" /> <!-- "Rhapsody" -->
2965 <const name="CIMOS_Windows2000" value="58" /> <!-- "Windows 2000" -->
2966 <const name="CIMOS_Dedicated" value="59" /> <!-- "Dedicated" -->
2967 <const name="CIMOS_OS390" value="60" /> <!-- "OS/390" -->
2968 <const name="CIMOS_VSE" value="61" /> <!-- "VSE" -->
2969 <const name="CIMOS_TPF" value="62" /> <!-- "TPF" -->
2970 <const name="CIMOS_WindowsMe" value="63" /> <!-- "Windows (R) Me" -->
2971 <const name="CIMOS_CalderaOpenUNIX" value="64" /> <!-- "Caldera Open UNIX" -->
2972 <const name="CIMOS_OpenBSD" value="65" /> <!-- "OpenBSD" -->
2973 <const name="CIMOS_NotApplicable" value="66" /> <!-- "Not Applicable" -->
2974 <const name="CIMOS_WindowsXP" value="67" /> <!-- "Windows XP" -->
2975 <const name="CIMOS_zOS" value="68" /> <!-- "z/OS" -->
2976 <const name="CIMOS_MicrosoftWindowsServer2003" value="69" /> <!-- "Microsoft Windows Server 2003" -->
2977 <const name="CIMOS_MicrosoftWindowsServer2003_64" value="70" /> <!-- "Microsoft Windows Server 2003 64-Bit" -->
2978 <const name="CIMOS_WindowsXP_64" value="71" /> <!-- "Windows XP 64-Bit" -->
2979 <const name="CIMOS_WindowsXPEmbedded" value="72" /> <!-- "Windows XP Embedded" -->
2980 <const name="CIMOS_WindowsVista" value="73" /> <!-- "Windows Vista" -->
2981 <const name="CIMOS_WindowsVista_64" value="74" /> <!-- "Windows Vista 64-Bit" -->
2982 <const name="CIMOS_WindowsEmbeddedforPointofService" value="75" /> <!-- "Windows Embedded for Point of Service" -->
2983 <const name="CIMOS_MicrosoftWindowsServer2008" value="76" /> <!-- "Microsoft Windows Server 2008" -->
2984 <const name="CIMOS_MicrosoftWindowsServer2008_64" value="77" /> <!-- "Microsoft Windows Server 2008 64-Bit" -->
2985 <const name="CIMOS_FreeBSD_64" value="78" /> <!-- "FreeBSD 64-Bit" -->
2986 <const name="CIMOS_RedHatEnterpriseLinux" value="79" /> <!-- "RedHat Enterprise Linux" -->
2987 <const name="CIMOS_RedHatEnterpriseLinux_64" value="80" /> <!-- "RedHat Enterprise Linux 64-Bit" -->
2988 <const name="CIMOS_Solaris_64" value="81" /> <!-- "Solaris 64-Bit" -->
2989 <const name="CIMOS_SUSE" value="82" /> <!-- "SUSE" -->
2990 <const name="CIMOS_SUSE_64" value="83" /> <!-- "SUSE 64-Bit" -->
2991 <const name="CIMOS_SLES" value="84" /> <!-- "SLES" -->
2992 <const name="CIMOS_SLES_64" value="85" /> <!-- "SLES 64-Bit" -->
2993 <const name="CIMOS_NovellOES" value="86" /> <!-- "Novell OES" -->
2994 <const name="CIMOS_NovellLinuxDesktop" value="87" /> <!-- "Novell Linux Desktop" -->
2995 <const name="CIMOS_SunJavaDesktopSystem" value="88" /> <!-- "Sun Java Desktop System" -->
2996 <const name="CIMOS_Mandriva" value="89" /> <!-- "Mandriva" -->
2997 <const name="CIMOS_Mandriva_64" value="90" /> <!-- "Mandriva 64-Bit" -->
2998 <const name="CIMOS_TurboLinux" value="91" /> <!-- "TurboLinux" -->
2999 <const name="CIMOS_TurboLinux_64" value="92" /> <!-- "TurboLinux 64-Bit" -->
3000 <const name="CIMOS_Ubuntu" value="93" /> <!-- "Ubuntu" -->
3001 <const name="CIMOS_Ubuntu_64" value="94" /> <!-- "Ubuntu 64-Bit" -->
3002 <const name="CIMOS_Debian" value="95" /> <!-- "Debian" -->
3003 <const name="CIMOS_Debian_64" value="96" /> <!-- "Debian 64-Bit" -->
3004 <const name="CIMOS_Linux_2_4_x" value="97" /> <!-- "Linux 2.4.x" -->
3005 <const name="CIMOS_Linux_2_4_x_64" value="98" /> <!-- "Linux 2.4.x 64-Bit" -->
3006 <const name="CIMOS_Linux_2_6_x" value="99" /> <!-- "Linux 2.6.x" -->
3007 <const name="CIMOS_Linux_2_6_x_64" value="100" /> <!-- "Linux 2.6.x 64-Bit" -->
3008 <const name="CIMOS_Linux_64" value="101" /> <!-- "Linux 64-Bit" -->
3009 <const name="CIMOS_Other_64" value="102" /> <!-- "Other 64-Bit" -->
3010 </enum>
3011
3012 <enum
3013 name="OVFResourceType"
3014 uuid="646a78d7-6f04-49f4-82c4-75c28a75a4cd"
3015 >
3016 <desc>
3017 OVF resource type (as listed with CIM_ResourceAllocationSettingData; see for example
3018 http://msdn.microsoft.com/en-us/library/cc136877(VS.85).aspx).
3019 </desc>
3020
3021 <const name="Other" value="1" />
3022 <const name="ComputerSystem" value="2" />
3023 <const name="Processor" value="3" />
3024 <const name="Memory" value="4" />
3025 <const name="IDEController" value="5" />
3026 <const name="ParallelSCSIHBA" value="6" />
3027 <const name="FCHBA" value="7" />
3028 <const name="iSCSIHBA" value="8" />
3029 <const name="IBHCA" value="9" />
3030 <const name="EthernetAdapter" value="10" />
3031 <const name="OtherNetworkAdapter" value="11" />
3032 <const name="IOSlot" value="12" />
3033 <const name="IODevice" value="13" />
3034 <const name="FloppyDrive" value="14" />
3035 <const name="CDDrive" value="15" />
3036 <const name="DVDDrive" value="16" />
3037 <const name="HardDisk" value="17" />
3038 <const name="OtherStorageDevice" value="20" />
3039 <const name="USBController" value="23" />
3040 <const name="SoundCard" value="35" />
3041 </enum>
3042
3043 <interface
3044 name="IAppliance" extends="$unknown"
3045 uuid="30bfa6b8-9eda-4b0a-b218-a86813248ccd"
3046 wsmap="managed"
3047 >
3048 <desc>
3049 Represents a platform-independent appliance in OVF format. An instance of this is returned
3050 by <link to="IVirtualBox::createAppliance" />, which can then be used to import and export
3051 appliances with VirtualBox.
3052
3053 The OVF standard suggests two different physical file formats:
3054
3055 <ol>
3056 <li>If the OVF is distributed as a set of files, then @a file must be a fully qualified
3057 path name to an existing OVF descriptor file with an <tt>.ovf</tt> file extension. If
3058 this descriptor file references other files, as OVF appliances distributed as a set of
3059 files most likely do, those files must be in the same directory as the descriptor file.</li>
3060
3061 <li>If the OVF is distributed as a single file, it must be in TAR format and have the
3062 <tt>.ova</tt> file extension. This TAR file must then contain at least the OVF descriptor
3063 files and optionally other files.
3064
3065 At this time, VirtualBox does not not yet support the packed (TAR) variant; support will
3066 be added with a later version.</li>
3067 </ol>
3068
3069 <b>Importing</b> an OVF appliance into VirtualBox as instances of
3070 <link to="IMachine" /> involves the following sequence of API calls:
3071
3072 <ol>
3073 <li>Call <link to="IVirtualBox::createAppliance" />. This will create an empty IAppliance object.
3074 </li>
3075
3076 <li>On the new object, call <link to="#read" /> with the full path of the OVF file you
3077 would like to import. So long as this file is syntactically valid, this will succeed
3078 and return an instance of IAppliance that contains the parsed data from the OVF file.
3079 </li>
3080
3081 <li>Next, call <link to="#interpret" />, which analyzes the OVF data and sets up the
3082 contents of the IAppliance attributes accordingly. These can be inspected by a
3083 VirtualBox front-end such as the GUI, and the suggestions can be displayed to the
3084 user. In particular, the <link to="#virtualSystemDescriptions" /> array contains
3085 instances of <link to="IVirtualSystemDescription" /> which represent the virtual
3086 systems in the OVF, which in turn describe the virtual hardware prescribed by the
3087 OVF (network and hardware adapters, virtual disk images, memory size and so on).
3088 The GUI can then give the user the option to confirm and/or change these suggestions.
3089 </li>
3090
3091 <li>If desired, call <link to="IVirtualSystemDescription::setFinalValues" /> for each
3092 virtual system to override the suggestions made by the interpret() routine.
3093 </li>
3094
3095 <li>Finally, call <link to="#importMachines" /> to create virtual machines in
3096 VirtualBox as instances of <link to="IMachine" /> that match the information in the
3097 virtual system descriptions.
3098 </li>
3099 </ol>
3100
3101 <b>Exporting</b> VirtualBox machines into an OVF appliance involves the following steps:
3102
3103 <ol>
3104 <li>As with importing, first call <link to="IVirtualBox::createAppliance" /> to create
3105 an empty IAppliance object.
3106 </li>
3107
3108 <li>For each machine you would like to export, call <link to="IMachine::export" />
3109 with the IAppliance object you just created. This creates an instance of
3110 <link to="IVirtualSystemDescription" /> inside the appliance.
3111 </li>
3112
3113 <li>If desired, call <link to="IVirtualSystemDescription::setFinalValues" /> for each
3114 virtual system to override the suggestions made by the export() routine.
3115 </li>
3116
3117 <li>Finally, call <link to="#write" /> with a path specification to have the OVF
3118 file written.</li>
3119 </ol>
3120
3121 </desc>
3122
3123 <attribute name="path" type="wstring" readonly="yes">
3124 <desc>Path to the main file of the OVF appliance, which is either the <tt>.ovf</tt> or
3125 the <tt>.ova</tt> file passed to <link to="#read" /> (for import) or
3126 <link to="#write" /> (for export).
3127 This attribute is empty until one of these methods has been called.
3128 </desc>
3129 </attribute>
3130
3131 <attribute name="disks" type="wstring" readonly="yes" safearray="yes">
3132 <desc>
3133 Array of virtual disk definitions. One such description exists for each
3134 disk definition in the OVF; each string array item represents one such piece of
3135 disk information, with the information fields separated by tab (\\t) characters.
3136
3137 The caller should be prepared for additional fields being appended to
3138 this string in future versions of VirtualBox and therefore check for
3139 the number of tabs in the strings returned.
3140
3141 In the current version, the following eight fields are returned per string
3142 in the array:
3143
3144 <ol>
3145 <li>Disk ID (unique string identifier given to disk)</li>
3146
3147 <li>Capacity (unsigned integer indicating the maximum capacity of the disk)</li>
3148
3149 <li>Populated size (optional unsigned integer indicating the current size of the
3150 disk; can be approximate; -1 if unspecified)</li>
3151
3152 <li>Format (string identifying the disk format, typically
3153 "http://www.vmware.com/specifications/vmdk.html#sparse")</li>
3154
3155 <li>Reference (where to find the disk image, typically a file name; if empty,
3156 then the disk should be created on import)</li>
3157
3158 <li>Image size (optional unsigned integer indicating the size of the image,
3159 which need not necessarily be the same as the values specified above, since
3160 the image may be compressed or sparse; -1 if not specified)</li>
3161
3162 <li>Chunk size (optional unsigned integer if the image is split into chunks;
3163 presently unsupported and always -1)</li>
3164
3165 <li>Compression (optional string equalling "gzip" if the image is gzip-compressed)</li>
3166 </ol>
3167 </desc>
3168 </attribute>
3169
3170 <attribute name="virtualSystemDescriptions" type="IVirtualSystemDescription" readonly="yes" safearray="yes">
3171 <desc> Array of virtual system descriptions. One such description is created
3172 for each virtual system found in the OVF.
3173 This array is empty until either <link to="#interpret" /> (for import) or <link to="IMachine::export" />
3174 (for export) has been called.
3175 </desc>
3176 </attribute>
3177
3178 <method name="read">
3179 <desc>
3180 Reads an OVF file into the appliance object.
3181
3182 This method succeeds if the OVF is syntactically valid and, by itself, without errors. The
3183 mere fact that this method returns successfully does not mean that VirtualBox supports all
3184 features requested by the appliance; this can only be examined after a call to <link to="#interpret" />.
3185 </desc>
3186 <param name="file" type="wstring" dir="in">
3187 <desc>
3188 Name of appliance file to open (either with an <tt>.ovf</tt> or <tt>.ova</tt> extension, depending
3189 on whether the appliance is distributed as a set of files or as a single file, respectively).
3190 </desc>
3191 </param>
3192 </method>
3193
3194 <method name="interpret">
3195 <desc>
3196 Interprets the OVF data that was read when the appliance was constructed. After
3197 calling this method, one can inspect the
3198 <link to="#virtualSystemDescriptions" /> array attribute, which will then contain
3199 one <link to="IVirtualSystemDescription" /> for each virtual machine found in
3200 the appliance.
3201
3202 Calling this method is the second step of importing an appliance into VirtualBox;
3203 see <link to="IAppliance" /> for an overview.
3204
3205 After calling this method, one should call <link to="#getWarnings" /> to find out
3206 if problems were encountered during the processing which might later lead to
3207 errors.
3208 </desc>
3209 </method>
3210
3211 <method name="importMachines">
3212 <desc>
3213 Imports the appliance into VirtualBox by creating instances of <link to="IMachine" />
3214 and other interfaces that match the information contained in the appliance as
3215 closely as possible, as represented by the import instructions in the
3216 <link to="#virtualSystemDescriptions" /> array.
3217
3218 Calling this method is the final step of importing an appliance into VirtualBox;
3219 see <link to="IAppliance" /> for an overview.
3220
3221 Since importing the appliance will most probably involve copying and converting
3222 disk images, which can take a long time, this method operates asynchronously and
3223 returns an IProgress object to allow the caller to monitor the progress.
3224 </desc>
3225
3226 <param name="aProgress" type="IProgress" dir="return">
3227 <desc></desc>
3228 </param>
3229 </method>
3230
3231 <method name="write">
3232 <desc>
3233 Writes the contents of the appliance exports into a new OVF file.
3234
3235 Calling this method is the final step of exporting an appliance from VirtualBox;
3236 see <link to="IAppliance" /> for an overview.
3237
3238 Since exporting the appliance will most probably involve copying and converting
3239 disk images, which can take a long time, this method operates asynchronously and
3240 returns an IProgress object to allow the caller to monitor the progress.
3241 </desc>
3242 <param name="format" type="wstring" dir="in">
3243 <desc>
3244 Output format, as a string. Currently supported formats are "ovf-0.9" and "ovf-1.0";
3245 future versions of VirtualBox may support additional formats.
3246 </desc>
3247 </param>
3248 <param name="path" type="wstring" dir="in">
3249 <desc>
3250 Name of appliance file to open (either with an <tt>.ovf</tt> or <tt>.ova</tt> extension, depending
3251 on whether the appliance is distributed as a set of files or as a single file, respectively).
3252 </desc>
3253 </param>
3254 <param name="aProgress" type="IProgress" dir="return">
3255 <desc></desc>
3256 </param>
3257 </method>
3258
3259 <method name="getWarnings">
3260 <desc>Returns textual warnings which occured during execution of <link to="#interpret" />.</desc>
3261
3262 <param name="aWarnings" type="wstring" dir="return" safearray="yes">
3263 <desc></desc>
3264 </param>
3265 </method>
3266
3267 </interface>
3268
3269 <enum
3270 name="VirtualSystemDescriptionType"
3271 uuid="aacc58de-5b45-4f82-ae2e-dd9a824fc3b5"
3272 >
3273 <desc>Used with <link to="IVirtualSystemDescription" /> to describe the type of
3274 a configuration value.</desc>
3275
3276 <const name="Ignore" value="1" />
3277 <const name="OS" value="2" />
3278 <const name="Name" value="3" />
3279 <const name="Product" value="4" />
3280 <const name="Vendor" value="5" />
3281 <const name="Version" value="6" />
3282 <const name="ProductUrl" value="7" />
3283 <const name="VendorUrl" value="8" />
3284 <const name="Description" value="9" />
3285 <const name="License" value="10" />
3286 <const name="Miscellaneous" value="11" />
3287 <const name="CPU" value="12" />
3288 <const name="Memory" value="13" />
3289 <const name="HardDiskControllerIDE" value="14" />
3290 <const name="HardDiskControllerSATA" value="15" />
3291 <const name="HardDiskControllerSCSI" value="16" />
3292 <const name="HardDiskImage" value="17" />
3293 <const name="Floppy" value="18" />
3294 <const name="CDROM" value="19" />
3295 <const name="NetworkAdapter" value="20" />
3296 <const name="USBController" value="21" />
3297 <const name="SoundCard" value="22" />
3298
3299 </enum>
3300
3301 <enum
3302 name="VirtualSystemDescriptionValueType"
3303 uuid="56d9403f-3425-4118-9919-36f2a9b8c77c"
3304 >
3305 <desc>Used with <link to="IVirtualSystemDescription::getValuesByType" /> to describe the value
3306 type to fetch.</desc>
3307
3308 <const name="Reference" value="1" />
3309 <const name="Original" value="2" />
3310 <const name="Auto" value="3" />
3311 <const name="ExtraConfig" value="4" />
3312
3313 </enum>
3314
3315 <interface
3316 name="IVirtualSystemDescription" extends="$unknown"
3317 uuid="d7525e6c-531a-4c51-8e04-41235083a3d8"
3318 wsmap="managed"
3319 >
3320
3321 <desc>This interface is used in the <link to="IAppliance::virtualSystemDescriptions" /> array.
3322 After <link to="IAppliance::interpret" /> has been called, that array contains
3323 information about how the virtual systems described in the OVF should best be imported into VirtualBox
3324 virtual machines. See <link to="IAppliance" /> for the steps required to import an OVF
3325 into VirtualBox.
3326 </desc>
3327
3328 <attribute name="count" type="unsigned long" readonly="yes">
3329 <desc>Return the number of virtual system description entries.</desc>
3330 </attribute>
3331
3332 <method name="getDescription">
3333 <desc>Returns information about the virtual system as arrays of instruction items. In each array, the
3334 items with the same indices correspond and jointly represent an import instruction for VirtualBox.
3335
3336 The list below identifies the value sets that are possible depending on the
3337 <link to="VirtualSystemDescriptionType" /> enum value in the array item in aTypes[]. In each case,
3338 the array item with the same index in aOvfValues[] will contain the original value as contained
3339 in the OVF file (just for informational purposes), and the corresponding item in aVBoxValues[]
3340 will contain a suggested value to be used for VirtualBox. Depending on the description type,
3341 the aExtraConfigValues[] array item may also be used.
3342
3343 <ul>
3344 <li>
3345 "OS": the guest operating system type. There must be exactly one such array item on import. The
3346 corresponding item in aVBoxValues[] contains the suggested guest operating system for VirtualBox.
3347 This will be one of the values listed in <link to="IVirtualBox::guestOSTypes" />. The corresponding
3348 item in aOvfValues[] will contain a numerical value that described the operating system in the OVF
3349 (see <link to="CIMOSType" />).
3350 </li>
3351 <li>
3352 "Name": the name to give to the new virtual machine. There can be at most one such array item;
3353 if none is present on import, then an automatic name will be created from the operating system
3354 type. The correponding item im aOvfValues[] will contain the suggested virtual machine name
3355 from the OVF file, and aVBoxValues[] will contain a suggestion for a unique VirtualBox
3356 <link to="IMachine" /> name that does not exist yet.
3357 </li>
3358 <li>
3359 "Description": an arbitrary description.
3360 </li>
3361 <li>
3362 "License": the EULA section from the OVF, if present. It is the responsibility of the calling
3363 code to display such a license for agreement; the Main API does not enforce any such policy.
3364 </li>
3365 <li>
3366 Miscellaneous: reserved for future use.
3367 </li>
3368 <li>
3369 "CPU": the number of CPUs. There can be at most one such item, which will presently be ignored.
3370 </li>
3371 <li>
3372 "Memory": the amount of guest RAM, in bytes. There can be at most one such array item; if none
3373 is present on import, then VirtualBox will set a meaningful default based on the operating system
3374 type.
3375 </li>
3376 <li>
3377 "HarddiskControllerIDE": an IDE hard disk controller. There can be at most one such item. This
3378 has no value in aOvfValues[] or aVBoxValues[].
3379 The matching item in the aRefs[] array will contain an integer that items of the "Harddisk"
3380 type can use to specify which hard disk controller a virtual disk should be connected to.
3381 </li>
3382 <li>
3383 "HarddiskControllerSATA": an SATA hard disk controller. There can be at most one such item. This
3384 has no value in aOvfValues[] or aVBoxValues[].
3385 The matching item in the aRefs[] array will be used as with IDE controllers (see above).
3386 </li>
3387 <li>
3388 "HarddiskControllerSCSI": a SCSI hard disk controller. There can be at most one such item.
3389 The items in aOvfValues[] and aVBoxValues[] will either be "LsiLogic" or "BusLogic".
3390 The matching item in the aRefs[] array will be used as with IDE controllers (see above).
3391 </li>
3392 <li>
3393 "HardDiskImage": a virtual hard disk, most probably as a reference to an image file. There can be an
3394 arbitrary number of these items, one for each virtual disk image that accompanies the OVF.
3395
3396 The array item in aOvfValues[] will contain the file specification from the OVF file (without
3397 a path since the image file should be in the same location as the OVF file itself), whereas the
3398 item in aVBoxValues[] will contain a qualified path specification to where VirtualBox uses the
3399 hard disk image. This means that on import the image will be copied and converted from the
3400 "ovf" location to the "vbox" location; on export, this will be handled the other way round.
3401 On import, the target image will also be registered with VirtualBox.
3402
3403 The matching item in the aExtraConfigValues[] array must contain a string of the following
3404 format: "controller=&lt;index&gt;;channel=&lt;c&gt;"
3405 In this string, &lt;index&gt; must be an integer specifying the hard disk controller to connect
3406 the image to. That number must be the index of an array item with one of the hard disk controller
3407 types (HarddiskControllerSCSI, HarddiskControllerSATA, HarddiskControllerIDE).
3408 In addition, &lt;c&gt; must specify the channel to use on that controller. For IDE controllers,
3409 this can range from 0-2 (which VirtualBox will interpret as primary master, primary slave,
3410 secondary slave; VirtualBox reserves the secondary master for the CD-ROM drive). For SATA and
3411 SCSI conrollers, the channel can range from 0-29.
3412 </li>
3413 <li>
3414 "NetworkAdapter": a network adapter. The array item in aVBoxValues[] will specify the hardware
3415 for the network adapter, whereas the array item in aExtraConfigValues[] will have a string
3416 of the "type=&lt;X&gt;" format, where &lt;X&gt; must be either "NAT" or "Bridged".
3417 </li>
3418 <li>
3419 "USBController": a USB controller. There can be at most one such item. If and only if such an
3420 item ispresent, USB support will be enabled for the new virtual machine.
3421 </li>
3422 <li>
3423 "SoundCard": a sound card. There can be at most one such item. If and only if such an item is
3424 present, sound support will be enabled for the new virtual machine. Note that the virtual
3425 machine in VirtualBox will always be presented with the standard VirtualBox soundcard, which
3426 may be different from the virtual soundcard expected by the appliance.
3427 </li>
3428 </ul>
3429
3430 </desc>
3431
3432 <param name="aTypes" type="VirtualSystemDescriptionType" dir="out" safearray="yes">
3433 <desc></desc>
3434 </param>
3435
3436 <param name="aRefs" type="wstring" dir="out" safearray="yes">
3437 <desc></desc>
3438 </param>
3439
3440 <param name="aOvfValues" type="wstring" dir="out" safearray="yes">
3441 <desc></desc>
3442 </param>
3443
3444 <param name="aVBoxValues" type="wstring" dir="out" safearray="yes">
3445 <desc></desc>
3446 </param>
3447
3448 <param name="aExtraConfigValues" type="wstring" dir="out" safearray="yes">
3449 <desc></desc>
3450 </param>
3451
3452 </method>
3453
3454 <method name="getDescriptionByType">
3455 <desc>This is the same as <link to="#getDescription" /> except that you can specify which types
3456 should be returned.</desc>
3457
3458 <param name="aType" type="VirtualSystemDescriptionType" dir="in">
3459 <desc></desc>
3460 </param>
3461
3462 <param name="aTypes" type="VirtualSystemDescriptionType" dir="out" safearray="yes">
3463 <desc></desc>
3464 </param>
3465
3466 <param name="aRefs" type="wstring" dir="out" safearray="yes">
3467 <desc></desc>
3468 </param>
3469
3470 <param name="aOvfValues" type="wstring" dir="out" safearray="yes">
3471 <desc></desc>
3472 </param>
3473
3474 <param name="aVBoxValues" type="wstring" dir="out" safearray="yes">
3475 <desc></desc>
3476 </param>
3477
3478 <param name="aExtraConfigValues" type="wstring" dir="out" safearray="yes">
3479 <desc></desc>
3480 </param>
3481
3482 </method>
3483
3484 <method name="getValuesByType">
3485 <desc>This is the same as <link to="#getDescriptionByType" /> except that you can specify which
3486 value types should be returned. See <link to="VirtualSystemDescriptionValueType" /> for possible
3487 values.</desc>
3488
3489 <param name="aType" type="VirtualSystemDescriptionType" dir="in">
3490 <desc></desc>
3491 </param>
3492
3493 <param name="aWhich" type="VirtualSystemDescriptionValueType" dir="in">
3494 <desc></desc>
3495 </param>
3496
3497 <param name="aValues" type="wstring" dir="return" safearray="yes">
3498 <desc></desc>
3499 </param>
3500
3501 </method>
3502
3503 <method name="setFinalValues">
3504 <desc>
3505 This method allows the appliance's user to change the configuration for the virtual
3506 system descriptions. For each array item returned from <link to="#getDescription" />,
3507 you must pass in one boolean value and one configuration value.
3508
3509 Each item in the boolean array determines whether the particular configuration item
3510 should be enabled.
3511 You can only disable items of the types HardDiskControllerIDE, HardDiskControllerSATA,
3512 HardDiskControllerSCSI, HardDiskImage, CDROM, Floppy, NetworkAdapter, USBController
3513 and SoundCard.
3514
3515 For the "vbox" and "extra configuration" values, if you pass in the same arrays
3516 as returned in the aVBoxValues and aExtraConfigValues arrays from getDescription(),
3517 the configuration remains unchanged. Please see the documentation for getDescription()
3518 for valid configuration values for the individual array item types. If the
3519 corresponding item in the aEnabled array is false, the configuration value is ignored.
3520 </desc>
3521
3522 <param name="aEnabled" type="boolean" dir="in" safearray="yes">
3523 <desc></desc>
3524 </param>
3525
3526 <param name="aVBoxValues" type="wstring" dir="in" safearray="yes">
3527 <desc></desc>
3528 </param>
3529
3530 <param name="aExtraConfigValues" type="wstring" dir="in" safearray="yes">
3531 <desc></desc>
3532 </param>
3533 </method>
3534
3535 <method name="addDescription">
3536 <desc>
3537 This method adds an additional description entry to the stack of already
3538 available descriptions for this virtual system. This is handy for writing
3539 values which aren't directly supported by VirtualBox. One example would
3540 be the License type of <link to="VirtualSystemDescriptionType" />.
3541 </desc>
3542
3543 <param name="aType" type="VirtualSystemDescriptionType" dir="in">
3544 <desc></desc>
3545 </param>
3546
3547 <param name="aVBoxValue" type="wstring" dir="in">
3548 <desc></desc>
3549 </param>
3550
3551 <param name="aExtraConfigValue" type="wstring" dir="in">
3552 <desc></desc>
3553 </param>
3554 </method>
3555 </interface>
3556
3557
3558 <!--
3559 // IMachine
3560 /////////////////////////////////////////////////////////////////////////
3561 -->
3562
3563 <interface
3564 name="IInternalMachineControl" extends="$unknown"
3565 uuid="5595cae1-6b18-42c1-b416-bc7493a87618"
3566 internal="yes"
3567 wsmap="suppress"
3568 >
3569 <method name="updateState">
3570 <desc>
3571 Updates the VM state.
3572 <note>
3573 This operation will also update the settings file with
3574 the correct information about the saved state file
3575 and delete this file from disk when appropriate.
3576 </note>
3577 </desc>
3578 <param name="state" type="MachineState" dir="in"/>
3579 </method>
3580
3581 <method name="getIPCId">
3582 <param name="id" type="wstring" dir="return"/>
3583 </method>
3584
3585 <method name="runUSBDeviceFilters">
3586 <desc>
3587 Asks the server to run USB devices filters of the associated
3588 machine against the given USB device and tell if there is
3589 a match.
3590 <note>
3591 Intended to be used only for remote USB devices. Local
3592 ones don't require to call this method (this is done
3593 implicitly by the Host and USBProxyService).
3594 </note>
3595 </desc>
3596 <param name="device" type="IUSBDevice" dir="in"/>
3597 <param name="matched" type="boolean" dir="out"/>
3598 <param name="maskedInterfaces" type="unsigned long" dir="out"/>
3599 </method>
3600
3601 <method name="captureUSBDevice">
3602 <desc>
3603 Requests a capture of the given host USB device.
3604 When the request is completed, the VM process will
3605 get a <link to="IInternalSessionControl::onUSBDeviceAttach"/>
3606 notification.
3607 </desc>
3608 <param name="id" type="wstring" dir="in"/>
3609 </method>
3610
3611 <method name="detachUSBDevice">
3612 <desc>
3613 Notification that a VM is going to detach (done = false) or has
3614 already detached (done = true) the given USB device.
3615 When the done = true request is completed, the VM process will
3616 get a <link to="IInternalSessionControl::onUSBDeviceDetach"/>
3617 notification.
3618 <note>
3619 In the done = true case, the server must run its own filters
3620 and filters of all VMs but this one on the detached device
3621 as if it were just attached to the host computer.
3622 </note>
3623 </desc>
3624 <param name="id" type="wstring" dir="in"/>
3625 <param name="done" type="boolean" dir="in"/>
3626 </method>
3627
3628 <method name="autoCaptureUSBDevices">
3629 <desc>
3630 Requests a capture all matching USB devices attached to the host.
3631 When the request is completed, the VM process will
3632 get a <link to="IInternalSessionControl::onUSBDeviceAttach"/>
3633 notification per every captured device.
3634 </desc>
3635 </method>
3636
3637 <method name="detachAllUSBDevices">
3638 <desc>
3639 Notification that a VM that is being powered down. The done
3640 parameter indicates whether which stage of the power down
3641 we're at. When done = false the VM is announcing its
3642 intentions, while when done = true the VM is reporting
3643 what it has done.
3644 <note>
3645 In the done = true case, the server must run its own filters
3646 and filters of all VMs but this one on all detach devices as
3647 if they were just attached to the host computer.
3648 </note>
3649 </desc>
3650 <param name="done" type="boolean" dir="in"/>
3651 </method>
3652
3653 <method name="onSessionEnd">
3654 <desc>
3655 Triggered by the given session object when the session is about
3656 to close normally.
3657 </desc>
3658 <param name="session" type="ISession" dir="in">
3659 <desc>Session that is being closed</desc>
3660 </param>
3661 <param name="progress" type="IProgress" dir="return">
3662 <desc>
3663 Used to wait until the corresponding machine is actually
3664 dissociated from the given session on the server.
3665 Returned only when this session is a direct one.
3666 </desc>
3667 </param>
3668 </method>
3669
3670 <method name="beginSavingState">
3671 <desc>
3672 Called by the VM process to inform the server it wants to
3673 save the current state and stop the VM execution.
3674 </desc>
3675 <param name="progress" type="IProgress" dir="in">
3676 <desc>
3677 Progress object created by the VM process to wait until
3678 the state is saved.
3679 </desc>
3680 </param>
3681 <param name="stateFilePath" type="wstring" dir="out">
3682 <desc>
3683 File path the VM process must save the execution state to.
3684 </desc>
3685 </param>
3686 </method>
3687
3688 <method name="endSavingState">
3689 <desc>
3690 Called by the VM process to inform the server that saving
3691 the state previously requested by #beginSavingState is either
3692 successfully finished or there was a failure.
3693
3694 <result name="VBOX_E_FILE_ERROR">
3695 Settings file not accessible.
3696 </result>
3697 <result name="VBOX_E_XML_ERROR">
3698 Could not parse the settings file.
3699 </result>
3700
3701 </desc>
3702
3703 <param name="success" type="boolean" dir="in">
3704 <desc><tt>true</tt> to indicate success and <tt>false</tt>
3705 otherwise.
3706 </desc>
3707 </param>
3708 </method>
3709
3710 <method name="adoptSavedState">
3711 <desc>
3712 Gets called by IConsole::adoptSavedState.
3713 <result name="VBOX_E_FILE_ERROR">
3714 Invalid saved state file path.
3715 </result>
3716 </desc>
3717 <param name="savedStateFile" type="wstring" dir="in">
3718 <desc>Path to the saved state file to adopt.</desc>
3719 </param>
3720 </method>
3721
3722 <method name="beginTakingSnapshot">
3723 <desc>
3724 Called by the VM process to inform the server it wants to
3725 take a snapshot.
3726
3727 <result name="VBOX_E_FILE_ERROR">
3728 Settings file not accessible.
3729 </result>
3730 <result name="VBOX_E_XML_ERROR">
3731 Could not parse the settings file.
3732 </result>
3733 </desc>
3734 <param name="initiator" type="IConsole" dir="in">
3735 <desc>The console object that initiated this call.</desc>
3736 </param>
3737 <param name="name" type="wstring" dir="in">
3738 <desc>Snapshot name.</desc>
3739 </param>
3740 <param name="description" type="wstring" dir="in">
3741 <desc>Snapshot description.</desc>
3742 </param>
3743 <param name="progress" type="IProgress" dir="in">
3744 <desc>
3745 Progress object created by the VM process to wait until
3746 the state is saved (only for online snapshots).
3747 </desc>
3748 </param>
3749 <param name="stateFilePath" type="wstring" dir="out">
3750 <desc>
3751 File path the VM process must save the execution state to.
3752 </desc>
3753 </param>
3754 <param name="serverProgress" type="IProgress" dir="out">
3755 <desc>
3756 Progress object created by the server process to wait until
3757 the snapshot is taken (VDI diff creation, etc.).
3758 </desc>
3759 </param>
3760 </method>
3761
3762 <method name="endTakingSnapshot">
3763 <desc>
3764 Called by the VM process to inform the server that the snapshot
3765 previously requested by #beginTakingSnapshot is either
3766 successfully taken or there was a failure.
3767 </desc>
3768
3769 <param name="success" type="boolean" dir="in">
3770 <desc><tt>true</tt> to indicate success and <tt>false</tt> otherwise</desc>
3771 </param>
3772 </method>
3773
3774 <method name="discardSnapshot">
3775 <desc>
3776 Gets called by IConsole::discardSnapshot.
3777 <result name="VBOX_E_INVALID_OBJECT_STATE">
3778 Snapshot has more than one child snapshot.
3779 </result>
3780 </desc>
3781 <param name="initiator" type="IConsole" dir="in">
3782 <desc>The console object that initiated this call.</desc>
3783 </param>
3784 <param name="id" type="wstring" dir="in">
3785 <desc>UUID of the snapshot to discard.</desc>
3786 </param>
3787 <param name="machineState" type="MachineState" dir="out">
3788 <desc>New machine state after this operation is started.</desc>
3789 </param>
3790 <param name="progress" type="IProgress" dir="return">
3791 <desc>Progress object to track the operation completion.</desc>
3792 </param>
3793 </method>
3794
3795 <method name="discardCurrentState">
3796 <desc>
3797 Gets called by IConsole::discardCurrentState.
3798 <result name="VBOX_E_INVALID_OBJECT_STATE">
3799 Virtual machine does not have any snapshot.
3800 </result>
3801 </desc>
3802 <param name="initiator" type="IConsole" dir="in">
3803 <desc>The console object that initiated this call.</desc>
3804 </param>
3805 <param name="machineState" type="MachineState" dir="out">
3806 <desc>New machine state after this operation is started.</desc>
3807 </param>
3808 <param name="progress" type="IProgress" dir="return">
3809 <desc>Progress object to track the operation completion.</desc>
3810 </param>
3811 </method>
3812
3813 <method name="discardCurrentSnapshotAndState">
3814 <desc>
3815 Gets called by IConsole::discardCurrentSnapshotAndState.
3816 <result name="VBOX_E_INVALID_OBJECT_STATE">
3817 Virtual machine does not have any snapshot.
3818 </result>
3819 </desc>
3820 <param name="initiator" type="IConsole" dir="in">
3821 <desc>The console object that initiated this call.</desc>
3822 </param>
3823 <param name="machineState" type="MachineState" dir="out">
3824 <desc>New machine state after this operation is started.</desc>
3825 </param>
3826 <param name="progress" type="IProgress" dir="return">
3827 <desc>Progress object to track the operation completion.</desc>
3828 </param>
3829 </method>
3830
3831 <method name="pullGuestProperties">
3832 <desc>
3833 Get the list of the guest properties matching a set of patterns along
3834 with their values, time stamps and flags and give responsibility for
3835 managing properties to the console.
3836 </desc>
3837 <param name="name" type="wstring" dir="out" safearray="yes">
3838 <desc>
3839 The names of the properties returned.
3840 </desc>
3841 </param>
3842 <param name="value" type="wstring" dir="out" safearray="yes">
3843 <desc>
3844 The values of the properties returned. The array entries match the
3845 corresponding entries in the @a name array.
3846 </desc>
3847 </param>
3848 <param name="timestamp" type="unsigned long long" dir="out" safearray="yes">
3849 <desc>
3850 The time stamps of the properties returned. The array entries match
3851 the corresponding entries in the @a name array.
3852 </desc>
3853 </param>
3854 <param name="flags" type="wstring" dir="out" safearray="yes">
3855 <desc>
3856 The flags of the properties returned. The array entries match the
3857 corresponding entries in the @a name array.
3858 </desc>
3859 </param>
3860 </method>
3861
3862 <method name="pushGuestProperties">
3863 <desc>
3864 Set the list of the guest properties matching a set of patterns along
3865 with their values, time stamps and flags and return responsibility for
3866 managing properties to IMachine.
3867 </desc>
3868 <param name="name" type="wstring" dir="in" safearray="yes">
3869 <desc>
3870 The names of the properties.
3871 </desc>
3872 </param>
3873 <param name="value" type="wstring" dir="in" safearray="yes">
3874 <desc>
3875 The values of the properties. The array entries match the
3876 corresponding entries in the @a name array.
3877 </desc>
3878 </param>
3879 <param name="timestamp" type="unsigned long long" dir="in" safearray="yes">
3880 <desc>
3881 The time stamps of the properties. The array entries match
3882 the corresponding entries in the @a name array.
3883 </desc>
3884 </param>
3885 <param name="flags" type="wstring" dir="in" safearray="yes">
3886 <desc>
3887 The flags of the properties. The array entries match the
3888 corresponding entries in the @a name array.
3889 </desc>
3890 </param>
3891 </method>
3892 <method name="pushGuestProperty">
3893 <desc>
3894 Update a single guest property in IMachine.
3895 </desc>
3896 <param name="name" type="wstring" dir="in">
3897 <desc>
3898 The name of the property to be updated.
3899 </desc>
3900 </param>
3901 <param name="value" type="wstring" dir="in">
3902 <desc>
3903 The value of the property.
3904 </desc>
3905 </param>
3906 <param name="timestamp" type="unsigned long long" dir="in">
3907 <desc>
3908 The timestamp of the property.
3909 </desc>
3910 </param>
3911 <param name="flags" type="wstring" dir="in">
3912 <desc>
3913 The flags of the property.
3914 </desc>
3915 </param>
3916 </method>
3917
3918 <method name="lockMedia">
3919 <desc>
3920 Locks all media attached to the machine for writing and parents of
3921 attahced different hard disks (if any) for reading. This operation is
3922 atomic so that if it fails no media is actually locked.
3923
3924 This method is intended to be called when the machine is in Starting or
3925 Restoring state. The locked media will be automatically unlocked when
3926 the machine is powered off or crashed.
3927 </desc>
3928 </method>
3929 </interface>
3930
3931 <interface
3932 name="IBIOSSettings" extends="$unknown"
3933 uuid="38b54279-dc35-4f5e-a431-835b867c6b5e"
3934 wsmap="managed"
3935 >
3936 <desc>
3937 The IBIOSSettings interface represents BIOS settings of the virtual
3938 machine. This is used only in the <link to="IMachine::BIOSSettings" /> attribute.
3939 </desc>
3940 <attribute name="logoFadeIn" type="boolean">
3941 <desc>Fade in flag for BIOS logo animation.</desc>
3942 </attribute>
3943
3944 <attribute name="logoFadeOut" type="boolean">
3945 <desc>Fade out flag for BIOS logo animation.</desc>
3946 </attribute>
3947
3948 <attribute name="logoDisplayTime" type="unsigned long">
3949 <desc>BIOS logo display time in milliseconds (0 = default).</desc>
3950 </attribute>
3951
3952 <attribute name="logoImagePath" type="wstring">
3953 <desc>Local file system path for external BIOS image.</desc>
3954 </attribute>
3955
3956 <attribute name="bootMenuMode" type="BIOSBootMenuMode">
3957 <desc>Mode of the BIOS boot device menu.</desc>
3958 </attribute>
3959
3960 <attribute name="ACPIEnabled" type="boolean">
3961 <desc>ACPI support flag.</desc>
3962 </attribute>
3963
3964 <attribute name="IOAPICEnabled" type="boolean">
3965 <desc>
3966 IO APIC support flag. If set, VirtualBox will provide an IO APIC
3967 and support IRQs above 15.
3968 </desc>
3969 </attribute>
3970
3971 <attribute name="timeOffset" type="long long">
3972 <desc>
3973 Offset in milliseconds from the host system time. This allows for
3974 guests running with a different system date/time than the host.
3975 It is equivalent to setting the system date/time in the BIOS except
3976 it is not an absolute value but a relative one. Guest Additions
3977 time synchronization honors this offset.
3978 </desc>
3979 </attribute>
3980
3981 <attribute name="PXEDebugEnabled" type="boolean">
3982 <desc>
3983 PXE debug logging flag. If set, VirtualBox will write extensive
3984 PXE trace information to the release log.
3985 </desc>
3986 </attribute>
3987
3988 </interface>
3989
3990 <interface
3991 name="IMachine" extends="$unknown"
3992 uuid="4d1df26d-d9c1-4c7e-b689-15e85ecf8ffc"
3993 wsmap="managed"
3994 >
3995 <desc>
3996 The IMachine interface represents a virtual machine, or guest, created
3997 in VirtualBox.
3998
3999 This interface is used in two contexts. First of all, a collection of
4000 objects implementing this interface is stored in the
4001 <link to="IVirtualBox::machines"/> attribute which lists all the virtual
4002 machines that are currently registered with this VirtualBox
4003 installation. Also, once a session has been opened for the given virtual
4004 machine (e.g. the virtual machine is running), the machine object
4005 associated with the open session can be queried from the session object;
4006 see <link to="ISession"/> for details.
4007
4008 The main role of this interface is to expose the settings of the virtual
4009 machine and provide methods to change various aspects of the virtual
4010 machine's configuration. For machine objects stored in the
4011 <link to="IVirtualBox::machines"/> collection, all attributes are
4012 read-only unless explicitly stated otherwise in individual attribute
4013 and method descriptions. In order to change a machine setting, a session
4014 for this machine must be opened using one of
4015 <link to="IVirtualBox::openSession"/>,
4016 <link to="IVirtualBox::openRemoteSession"/> or
4017 <link to="IVirtualBox::openExistingSession"/> methods. After the
4018 session has been successfully opened, a mutable machine object needs to
4019 be queried from the session object and then the desired settings changes
4020 can be applied to the returned object using IMachine attributes and
4021 methods. See the ISession interface description for more information
4022 about sessions.
4023
4024 Note that the IMachine interface does not provide methods to control
4025 virtual machine execution (such as start the machine, or power it
4026 down) -- these methods are grouped in a separate IConsole
4027 interface. Refer to the IConsole interface description to get more
4028 information about this topic.
4029
4030 <see>ISession, IConsole</see>
4031 </desc>
4032
4033 <attribute name="parent" type="IVirtualBox" readonly="yes">
4034 <desc>Associated parent object.</desc>
4035 </attribute>
4036
4037 <attribute name="accessible" type="boolean" readonly="yes">
4038 <desc>
4039 Whether this virtual machine is currently accessible or not.
4040
4041 The machine is considered to be inaccessible when:
4042 <ul>
4043 <li>It is a registered virtual machine, and
4044 </li>
4045 <li>Its settings file is inaccessible (for example, it is
4046 located on a network share that is not accessible during
4047 VirtualBox startup, or becomes inaccessible later, or if
4048 the settings file can be read but is invalid).
4049 </li>
4050 </ul>
4051
4052 Otherwise, the value of this property is always <tt>true</tt>.
4053
4054 Every time this property is read, the accessibility state of
4055 this machine is re-evaluated. If the returned value is |false|,
4056 the <link to="#accessError"/> property may be used to get the
4057 detailed error information describing the reason of
4058 inaccessibility.
4059
4060 When the machine is inaccessible, only the following properties
4061 can be used on it:
4062 <ul>
4063 <li><link to="#parent"/></li>
4064 <li><link to="#id"/></li>
4065 <li><link to="#settingsFilePath"/></li>
4066 <li><link to="#accessible"/></li>
4067 <li><link to="#accessError"/></li>
4068 </ul>
4069
4070 An attempt to access any other property or method will return
4071 an error.
4072
4073 The only possible action you can perform on an inaccessible
4074 machine is to unregister it using the
4075 <link to="IVirtualBox::unregisterMachine"/> call (or, to check
4076 for the accessibility state once more by querying this
4077 property).
4078
4079 <note>
4080 In the current implementation, once this property returns
4081 <tt>true</tt>, the machine will never become inaccessible
4082 later, even if its settings file cannot be successfully
4083 read/written any more (at least, until the VirtualBox
4084 server is restarted). This limitation may be removed in
4085 future releases.
4086 </note>
4087 </desc>
4088 </attribute>
4089
4090 <attribute name="accessError" type="IVirtualBoxErrorInfo" readonly="yes">
4091 <desc>
4092 Error information describing the reason of machine
4093 inaccessibility.
4094
4095 Reading this property is only valid after the last call to
4096 <link to="#accessible"/> returned <tt>false</tt> (i.e. the
4097 machine is currently unaccessible). Otherwise, a null
4098 IVirtualBoxErrorInfo object will be returned.
4099 </desc>
4100 </attribute>
4101
4102 <attribute name="name" type="wstring">
4103 <desc>
4104 Name of the virtual machine.
4105
4106 Besides being used for human-readable identification purposes
4107 everywhere in VirtualBox, the virtual machine name is also used
4108 as a name of the machine's settings file and as a name of the
4109 subdirectory this settings file resides in. Thus, every time you
4110 change the value of this property, the settings file will be
4111 renamed once you call <link to="#saveSettings"/> to confirm the
4112 change. The containing subdirectory will be also renamed, but
4113 only if it has exactly the same name as the settings file
4114 itself prior to changing this property (for backward compatibility
4115 with previous API releases). The above implies the following
4116 limitations:
4117 <ul>
4118 <li>The machine name cannot be empty.</li>
4119 <li>The machine name can contain only characters that are valid
4120 file name characters according to the rules of the file
4121 system used to store VirtualBox configuration.</li>
4122 <li>You cannot have two or more machines with the same name
4123 if they use the same subdirectory for storing the machine
4124 settings files.</li>
4125 <li>You cannot change the name of the machine if it is running,
4126 or if any file in the directory containing the settings file
4127 is being used by another running machine or by any other
4128 process in the host operating system at a time when
4129 <link to="#saveSettings"/> is called.
4130 </li>
4131 </ul>
4132 If any of the above limitations are hit, <link to="#saveSettings"/>
4133 will return an appropriate error message explaining the exact
4134 reason and the changes you made to this machine will not be
4135 saved.
4136 <note>
4137 For "legacy" machines created using the
4138 <link to="IVirtualBox::createLegacyMachine"/> call,
4139 the above naming limitations do not apply because the
4140 machine name does not affect the settings file name.
4141 The settings file name remains the same as it was specified
4142 during machine creation and never changes.
4143 </note>
4144 </desc>
4145 </attribute>
4146
4147 <attribute name="description" type="wstring">
4148 <desc>
4149 Description of the virtual machine.
4150
4151 The description attribute can contain any text and is
4152 typically used to describe the hardware and software
4153 configuration of the virtual machine in detail (i.e. network
4154 settings, versions of the installed software and so on).
4155 </desc>
4156 </attribute>
4157
4158 <attribute name="id" type="wstring" readonly="yes">
4159 <desc>UUID of the virtual machine.</desc>
4160 </attribute>
4161
4162 <attribute name="OSTypeId" type="wstring">
4163 <desc>
4164 User-defined identifier of the Guest OS type.
4165 You may use <link to="IVirtualBox::getGuestOSType"/> to obtain
4166 an IGuestOSType object representing details about the given
4167 Guest OS type.
4168 <note>
4169 This value may differ from the value returned by
4170 <link to="IGuest::OSTypeId"/> if Guest Additions are
4171 installed to the guest OS.
4172 </note>
4173 </desc>
4174 </attribute>
4175
4176 <attribute name="HardwareVersion" type="wstring">
4177 <desc>Hardware version identifier. Internal use only for now.</desc>
4178 </attribute>
4179
4180 <attribute name="CPUCount" type="unsigned long">
4181 <desc>Number of virtual CPUs in the VM. In the current version of the product, this is always 1.</desc>
4182 </attribute>
4183
4184 <attribute name="memorySize" type="unsigned long">
4185 <desc>System memory size in megabytes.</desc>
4186 </attribute>
4187
4188 <attribute name="memoryBalloonSize" type="unsigned long">
4189 <desc>Initial memory balloon size in megabytes.</desc>
4190 </attribute>
4191
4192 <attribute name="statisticsUpdateInterval" type="unsigned long">
4193 <desc>Initial interval to update guest statistics in seconds.</desc>
4194 </attribute>
4195
4196 <attribute name="VRAMSize" type="unsigned long">
4197 <desc>Video memory size in megabytes.</desc>
4198 </attribute>
4199
4200 <attribute name="accelerate3DEnabled" type="boolean" default="false">
4201 <desc>
4202 This setting determines whether VirtualBox allows guests to make use
4203 of the 3D graphics support available on the host. Currently limited
4204 to OpenGL only. </desc>
4205 </attribute>
4206
4207 <attribute name="monitorCount" type="unsigned long">
4208 <desc>
4209 Number of virtual monitors.
4210 <note>
4211 Only effective on Windows XP and later guests with
4212 Guest Additions installed.
4213 </note>
4214 </desc>
4215 </attribute>
4216
4217 <attribute name="BIOSSettings" type="IBIOSSettings" readonly="yes">
4218 <desc>Object containing all BIOS settings.</desc>
4219 </attribute>
4220
4221 <attribute name="HWVirtExEnabled" type="TSBool">
4222 <desc>
4223 This setting determines whether VirtualBox will try to make use of
4224 the host CPU's hardware virtualization extensions such as Intel VT-x
4225 and AMD-V. Note that in case such extensions are not available,
4226 they will not be used.
4227 </desc>
4228 </attribute>
4229
4230 <attribute name="HWVirtExNestedPagingEnabled" type="boolean" default="false">
4231 <desc>
4232 This setting determines whether VirtualBox will try to make use of
4233 the nested paging extension of Intel VT-x and AMD-V. Note that in case
4234 such extensions are not available, they will not be used.
4235 </desc>
4236 </attribute>
4237
4238 <attribute name="HWVirtExVPIDEnabled" type="boolean" default="false">
4239 <desc>
4240 This setting determines whether VirtualBox will try to make use of
4241 the VPID extension of Intel VT-x. Note that in case such extensions are
4242 not available, they will not be used.
4243 </desc>
4244 </attribute>
4245
4246 <attribute name="PAEEnabled" type="boolean" default="false">
4247 <desc>
4248 This setting determines whether VirtualBox will expose the Physical Address
4249 Extension (PAE) feature of the host CPU to the guest. Note that in case PAE
4250 is not available, it will not be reported.
4251 </desc>
4252 </attribute>
4253
4254 <attribute name="snapshotFolder" type="wstring">
4255 <desc>
4256 Full path to the directory used to store snapshot data
4257 (differencing hard disks and saved state files) of this machine.
4258
4259 The initial value of this property is
4260 <tt>&lt;</tt><link to="#settingsFilePath">
4261 path_to_settings_file</link><tt>&gt;/&lt;</tt>
4262 <link to="#id">machine_uuid</link>
4263 <tt>&gt;</tt>.
4264
4265 Currently, it is an error to try to change this property on
4266 a machine that has snapshots (because this would require to
4267 move possibly large files to a different location).
4268 A separate method will be available for this purpose later.
4269
4270 <note>
4271 Setting this property to <tt>null</tt> will restore the
4272 initial value.
4273 </note>
4274 <note>
4275 When setting this property, the specified path can be
4276 absolute (full path) or relative to the directory where the
4277 <link to="#settingsFilePath">machine settings file</link>
4278 is located. When reading this property, a full path is
4279 always returned.
4280 </note>
4281 <note>
4282 The specified path may not exist, it will be created
4283 when necessary.
4284 </note>
4285 </desc>
4286 </attribute>
4287
4288 <attribute name="VRDPServer" type="IVRDPServer" readonly="yes">
4289 <desc>VRDP server object.</desc>
4290 </attribute>
4291
4292 <attribute name="hardDiskAttachments" type="IHardDiskAttachment" readonly="yes" safearray="yes">
4293 <desc>Array of hard disks attached to this machine.</desc>
4294 </attribute>
4295
4296 <attribute name="DVDDrive" type="IDVDDrive" readonly="yes">
4297 <desc>Associated DVD drive object.</desc>
4298 </attribute>
4299
4300 <attribute name="floppyDrive" type="IFloppyDrive" readonly="yes">
4301 <desc>Associated floppy drive object.</desc>
4302 </attribute>
4303
4304 <attribute name="USBController" type="IUSBController" readonly="yes">
4305 <desc>
4306 Associated USB controller object.
4307
4308 <note>
4309 If USB functionality is not available in the given edition of
4310 VirtualBox, this method will set the result code to @c E_NOTIMPL.
4311 </note>
4312 </desc>
4313 </attribute>
4314
4315 <attribute name="audioAdapter" type="IAudioAdapter" readonly="yes">
4316 <desc>Associated audio adapter, always present.</desc>
4317 </attribute>
4318
4319 <attribute name="storageControllers" type="IStorageController" readonly="yes" safearray="yes">
4320 <desc>Array of storage controllers attached to this machine.</desc>
4321 </attribute>
4322
4323 <attribute name="settingsFilePath" type="wstring" readonly="yes">
4324 <desc>
4325 Full name of the file containing machine settings data.
4326 </desc>
4327 </attribute>
4328
4329 <attribute name="settingsFileVersion" type="wstring" readonly="yes">
4330 <desc>
4331 Current version of the format of the settings file of this machine
4332 (<link to="IMachine::settingsFilePath"/>).
4333
4334 The version string has the following format:
4335 <pre>
4336 x.y-platform
4337 </pre>
4338 where <tt>x</tt> and <tt>y</tt> are the major and the minor format
4339 versions, and <tt>platform</tt> is the platform identifier.
4340
4341 The current version usually matches the value of the
4342 <link to="IVirtualBox::settingsFormatVersion"/> attribute unless the
4343 settings file was created by an older version of VirtualBox and there
4344 was a change of the settings file format since then.
4345
4346 Note that VirtualBox automatically converts settings files from older
4347 versions to the most recent version when reading them (usually at
4348 VirtualBox startup) but it doesn't save the changes back until
4349 you call a method that implicitly saves settings (such as
4350 <link to="#setExtraData"/>) or call <link to="#saveSettings"/>
4351 explicitly. Therefore, if the value of this attribute differs from the
4352 value of <link to="IVirtualBox::settingsFormatVersion"/>, then it
4353 means that the settings file was converted but the result of the
4354 conversion is not yet saved to disk.
4355
4356 The above feature may be used by interactive front-ends to inform users
4357 about the settings file format change and offer them to explicitly save
4358 all converted settings files (the global and VM-specific ones),
4359 optionally create backup copies of the old settings files before saving,
4360 etc.
4361
4362 <see>IVirtualBox::settingsFormatVersion, saveSettingsWithBackup()</see>
4363 </desc>
4364 </attribute>
4365
4366 <attribute name="settingsModified" type="boolean" readonly="yes">
4367 <desc>
4368 Whether the settings of this machine have been modified
4369 (but neither yet saved nor discarded).
4370 <note>
4371 Reading this property is only valid on instances returned
4372 by <link to="ISession::machine"/> and on new machines
4373 created by <link to="IVirtualBox::createMachine"/> or opened
4374 by <link to="IVirtualBox::openMachine"/> but not
4375 yet registered, or on unregistered machines after calling
4376 <link to="IVirtualBox::unregisterMachine"/>. For all other
4377 cases, the settings can never be modified.
4378 </note>
4379 <note>
4380 For newly created unregistered machines, the value of this
4381 property is always TRUE until <link to="#saveSettings"/>
4382 is called (no matter if any machine settings have been
4383 changed after the creation or not). For opened machines
4384 the value is set to FALSE (and then follows to normal rules).
4385 </note>
4386 </desc>
4387 </attribute>
4388
4389 <attribute name="sessionState" type="SessionState" readonly="yes">
4390 <desc>Current session state for this machine.</desc>
4391 </attribute>
4392
4393 <attribute name="sessionType" type="wstring" readonly="yes">
4394 <desc>
4395 Type of the session. If <link to="#sessionState"/> is
4396 SessionSpawning or SessionOpen, this attribute contains the
4397 same value as passed to the
4398 <link to="IVirtualBox::openRemoteSession"/> method in the
4399 @a type parameter. If the session was opened directly using
4400 <link to="IVirtualBox::openSession"/>, or if
4401 <link to="#sessionState"/> is SessionClosed, the value of this
4402 attribute is @c null.
4403 </desc>
4404 </attribute>
4405
4406 <attribute name="sessionPid" type="unsigned long" readonly="yes">
4407 <desc>
4408 Identifier of the session process. This attribute contains the
4409 platform-dependent identifier of the process that has opened a
4410 direct session for this machine using the
4411 <link to="IVirtualBox::openSession"/> call. The returned value
4412 is only valid if <link to="#sessionState"/> is SessionOpen or
4413 SessionClosing (i.e. a session is currently open or being
4414 closed) by the time this property is read.
4415 </desc>
4416 </attribute>
4417
4418 <attribute name="state" type="MachineState" readonly="yes">
4419 <desc>Current execution state of this machine.</desc>
4420 </attribute>
4421
4422 <attribute name="lastStateChange" type="long long" readonly="yes">
4423 <desc>
4424 Time stamp of the last execution state change,
4425 in milliseconds since 1970-01-01 UTC.
4426 </desc>
4427 </attribute>
4428
4429 <attribute name="stateFilePath" type="wstring" readonly="yes">
4430 <desc>
4431 Full path to the file that stores the execution state of
4432 the machine when it is in the <link to="MachineState_Saved"/> state.
4433 <note>
4434 When the machine is not in the Saved state, this attribute
4435 <tt>null</tt>.
4436 </note>
4437 </desc>
4438 </attribute>
4439
4440 <attribute name="logFolder" type="wstring" readonly="yes">
4441 <desc>
4442 Full path to the folder that stores a set of rotated log files
4443 recorded during machine execution. The most recent log file is
4444 named <tt>VBox.log</tt>, the previous log file is
4445 named <tt>VBox.log.1</tt> and so on (up to <tt>VBox.log.3</tt>
4446 in the current version).
4447 </desc>
4448 </attribute>
4449
4450 <attribute name="currentSnapshot" type="ISnapshot" readonly="yes">
4451 <desc>
4452 Current snapshot of this machine.
4453 <note>
4454 A <tt>null</tt> object is returned if the machine doesn't
4455 have snapshots.
4456 </note>
4457 <see><link to="ISnapshot"/></see>
4458 </desc>
4459 </attribute>
4460
4461 <attribute name="snapshotCount" type="unsigned long" readonly="yes">
4462 <desc>
4463 Number of snapshots taken on this machine. Zero means the
4464 machine doesn't have any snapshots.
4465 </desc>
4466 </attribute>
4467
4468 <attribute name="currentStateModified" type="boolean" readonly="yes">
4469 <desc>
4470 Returns <tt>true</tt> if the current state of the machine is not
4471 identical to the state stored in the current snapshot.
4472
4473 The current state is identical to the current snapshot right
4474 after one of the following calls are made:
4475 <ul>
4476 <li><link to="IConsole::discardCurrentState"/> or
4477 <link to="IConsole::discardCurrentSnapshotAndState"/>
4478 </li>
4479 <li><link to="IConsole::takeSnapshot"/> (issued on a
4480 powered off or saved machine, for which
4481 <link to="#settingsModified"/> returns <tt>false</tt>)
4482 </li>
4483 <li><link to="IMachine::setCurrentSnapshot"/>
4484 </li>
4485 </ul>
4486
4487 The current state remains identical until one of the following
4488 happens:
4489 <ul>
4490 <li>settings of the machine are changed</li>
4491 <li>the saved state is discarded</li>
4492 <li>the current snapshot is discarded</li>
4493 <li>an attempt to execute the machine is made</li>
4494 </ul>
4495
4496 <note>
4497 For machines that don't have snapshots, this property is
4498 always <tt>false</tt>.
4499 </note>
4500 </desc>
4501 </attribute>
4502
4503 <attribute name="sharedFolders" type="ISharedFolder" readonly="yes" safearray="yes">
4504 <desc>
4505 Collection of shared folders for this machine (permanent shared
4506 folders). These folders are shared automatically at machine startup
4507 and available only to the guest OS installed within this machine.
4508
4509 New shared folders are added to the collection using
4510 <link to="#createSharedFolder"/>. Existing shared folders can be
4511 removed using <link to="#removeSharedFolder"/>.
4512 </desc>
4513 </attribute>
4514
4515 <attribute name="clipboardMode" type="ClipboardMode">
4516 <desc>
4517 Synchronization mode between the host OS clipboard
4518 and the guest OS clipboard.
4519 </desc>
4520 </attribute>
4521
4522 <attribute name="guestPropertyNotificationPatterns" type="wstring">
4523 <desc>
4524 A comma-separated list of simple glob patterns. Changes to guest
4525 properties whose name matches one of the patterns will generate an
4526 <link to="IVirtualBoxCallback::onGuestPropertyChange"/> signal.
4527 </desc>
4528 </attribute>
4529
4530 <method name="setBootOrder">
4531 <desc>
4532 Puts the given device to the specified position in
4533 the boot order.
4534
4535 To indicate that no device is associated with the given position,
4536 <link to="DeviceType_Null"/> should be used.
4537
4538 @todo setHardDiskBootOrder(), setNetworkBootOrder()
4539
4540 <result name="E_INVALIDARG">
4541 Boot @a position out of range.
4542 </result>
4543 <result name="E_NOTIMPL">
4544 Booting from USB @a device currently not supported.
4545 </result>
4546
4547 </desc>
4548 <param name="position" type="unsigned long" dir="in">
4549 <desc>
4550 Position in the boot order (<tt>1</tt> to the total number of
4551 devices the machine can boot from, as returned by
4552 <link to="ISystemProperties::maxBootPosition"/>).
4553 </desc>
4554 </param>
4555 <param name="device" type="DeviceType" dir="in">
4556 <desc>
4557 The type of the device used to boot at the given position.
4558 </desc>
4559 </param>
4560 </method>
4561
4562 <method name="getBootOrder" const="yes">
4563 <desc>
4564 Returns the device type that occupies the specified
4565 position in the boot order.
4566
4567 @todo [remove?]
4568 If the machine can have more than one device of the returned type
4569 (such as hard disks), then a separate method should be used to
4570 retrieve the individual device that occupies the given position.
4571
4572 If here are no devices at the given position, then
4573 <link to="DeviceType_Null"/> is returned.
4574
4575 @todo getHardDiskBootOrder(), getNetworkBootOrder()
4576
4577 <result name="E_INVALIDARG">
4578 Boot @a position out of range.
4579 </result>
4580
4581 </desc>
4582 <param name="position" type="unsigned long" dir="in">
4583 <desc>
4584 Position in the boot order (<tt>1</tt> to the total number of
4585 devices the machine can boot from, as returned by
4586 <link to="ISystemProperties::maxBootPosition"/>).
4587 </desc>
4588 </param>
4589 <param name="device" type="DeviceType" dir="return">
4590 <desc>
4591 Device at the given position.
4592 </desc>
4593 </param>
4594 </method>
4595
4596 <method name="attachHardDisk">
4597 <desc>
4598 Attaches a virtual hard disk (<link to="IHardDisk" />, identified
4599 by the given UUID @a id) to the given hard disk controller
4600 (<link to="IStorageController" />, identified by @a name),
4601 at the indicated port and device.
4602
4603 For the IDE bus, the @a controllerPort parameter can be either
4604 @c 0 or @c 1, to specify the primary or secondary IDE controller,
4605 respectively. For the primary controller of the IDE bus,
4606 @a device can be either @c 0 or @c 1, to specify the master or the
4607 slave device, respectively. For the secondary IDE controller, the
4608 device number must be @c 1 because VirtualBox reserves the
4609 secondary master for the CD-ROM drive.
4610
4611 For an SATA controller, @a controllerPort must be a number ranging
4612 from @c 0 to @c 29. For a SCSI controller, @a controllerPort must
4613 be a number ranging from @c 0 to @c 15.
4614
4615 For both SCSI and SATA, the @a device parameter is unused and must
4616 be @c 0.
4617
4618 The specified device slot must not have another disk attached to it, or
4619 this method will fail.
4620
4621 See <link to="IHardDisk"/> for more detailed information about
4622 attaching hard disks.
4623
4624 <note>
4625 You cannot attach a hard disk to a running machine. Also, you cannot
4626 attach a hard disk to a newly created machine until this machine's
4627 settings are saved to disk using <link to="#saveSettings"/>.
4628 </note>
4629 <note>
4630 If the hard disk is being attached indirectly, a new differencing hard
4631 disk will implicitly be created for it and attached instead. If the
4632 changes made to the machine settings (including this indirect
4633 attachment) are later cancelled using <link to="#discardSettings"/>,
4634 this implicitly created differencing hard disk will implicitly
4635 be deleted.
4636 </note>
4637
4638 <result name="E_INVALIDARG">
4639 SATA device, SATA port, IDE port or IDE slot out of range.
4640 </result>
4641 <result name="VBOX_E_INVALID_OBJECT_STATE">
4642 Attempt to attach hard disk to an unregistered virtual machine.
4643 </result>
4644 <result name="VBOX_E_INVALID_VM_STATE">
4645 Invalid machine state.
4646 </result>
4647 <result name="VBOX_E_OBJECT_IN_USE">
4648 Hard disk already attached to this or another virtual machine.
4649 </result>
4650
4651 </desc>
4652 <param name="id" type="wstring" dir="in">
4653 <desc>UUID of the hard disk to attach.</desc>
4654 </param>
4655 <param name="name" type="wstring" dir="in">
4656 <desc>Name of the storage controller to attach the hard disk to.</desc>
4657 </param>
4658 <param name="controllerPort" type="long" dir="in">
4659 <desc>Port to attach the hard disk to.</desc>
4660 </param>
4661 <param name="device" type="long" dir="in">
4662 <desc>
4663 Device slot in the given port to attach the hard disk to.
4664 </desc>
4665 </param>
4666 </method>
4667
4668 <method name="getHardDisk" const="yes">
4669 <desc>
4670 Returns the virtual hard disk attached to a device slot of the specified
4671 bus.
4672
4673 Note that if the hard disk was indirectly attached by
4674 <link to="#attachHardDisk"/> to the given device slot then this
4675 method will return not the same object as passed to the
4676 <link to="#attachHardDisk"/> call. See <link to="IHardDisk"/> for
4677 more detailed information about attaching hard disks.
4678
4679 <result name="VBOX_E_OBJECT_NOT_FOUND">
4680 No hard disk attached to given slot/bus.
4681 </result>
4682
4683 </desc>
4684 <param name="name" type="wstring" dir="in">
4685 <desc>Name of the storage controller the hard disk is attached to.</desc>
4686 </param>
4687 <param name="controllerPort" type="long" dir="in">
4688 <desc>Port to query.</desc>
4689 </param>
4690 <param name="device" type="long" dir="in">
4691 <desc>Device slot in the given port to query.</desc>
4692 </param>
4693 <param name="hardDisk" type="IHardDisk" dir="return">
4694 <desc>Attached hard disk object.</desc>
4695 </param>
4696 </method>
4697
4698 <method name="detachHardDisk">
4699 <desc>
4700 Detaches the virtual hard disk attached to a device slot of the
4701 specified bus.
4702
4703 Detaching the hard disk from the virtual machine is deferred. This means
4704 that the hard disk remains associated with the machine when this method
4705 returns and gets actually de-associated only after a successful
4706 <link to="#saveSettings"/> call. See <link to="IHardDisk"/>
4707 for more detailed information about attaching hard disks.
4708
4709 <note>
4710 You cannot detach the hard disk from a running machine.
4711 </note>
4712 <note>
4713 Detaching differencing hard disks implicitly created by <link
4714 to="#attachHardDisk"/> for the indirect attachment using this
4715 method will <b>not</b> implicitly delete them. The
4716 <link to="IHardDisk::deleteStorage"/> operation should be
4717 explicitly performed by the caller after the hard disk is successfully
4718 detached and the settings are saved with
4719 <link to="#saveSettings"/>, if it is the desired action.
4720 </note>
4721
4722 <result name="VBOX_E_INVALID_VM_STATE">
4723 Attempt to detach hard disk from a running virtual machine.
4724 </result>
4725 <result name="VBOX_E_OBJECT_NOT_FOUND">
4726 No hard disk attached to given slot/bus.
4727 </result>
4728 <result name="VBOX_E_NOT_SUPPORTED">
4729 Hard disk format does not support storage deletion.
4730 </result>
4731
4732 </desc>
4733 <param name="name" type="wstring" dir="in">
4734 <desc>name of the storage controller to detach the hard disk from.</desc>
4735 </param>
4736 <param name="controllerPort" type="long" dir="in">
4737 <desc>Port number to detach the hard disk from.</desc>
4738 </param>
4739 <param name="device" type="long" dir="in">
4740 <desc>Device slot number to detach the hard disk from.</desc>
4741 </param>
4742 </method>
4743
4744 <method name="getHardDiskAttachmentsOfController" const="yes">
4745 <desc>
4746 Returns an array of hard disk attachments which are attached to the
4747 the controller with the given name.
4748
4749 <result name="VBOX_E_OBJECT_NOT_FOUND">
4750 A storage controller with given name doesn't exist.
4751 </result>
4752 </desc>
4753 <param name="name" type="wstring" dir="in"/>
4754 <param name="hardDiskAttachments" type="IHardDiskAttachment" safearray="yes" dir="return"/>
4755 </method>
4756
4757 <method name="getNetworkAdapter" const="yes">
4758 <desc>
4759 Returns the network adapter associated with the given slot.
4760 Slots are numbered sequentially, starting with zero. The total
4761 number of adapters per machine is defined by the
4762 <link to="ISystemProperties::networkAdapterCount"/> property,
4763 so the maximum slot number is one less than that property's value.
4764
4765 <result name="E_INVALIDARG">
4766 Invalid @a slot number.
4767 </result>
4768
4769 </desc>
4770 <param name="slot" type="unsigned long" dir="in"/>
4771 <param name="adapter" type="INetworkAdapter" dir="return"/>
4772 </method>
4773
4774 <method name="addStorageController">
4775 <desc>
4776 Adds a new storage controller (SCSI or SATA controller) to the
4777 machine and returns it as an instance of
4778 <link to="IStorageController" />.
4779
4780 @a name identifies the controller for subsequent calls such as
4781 <link to="#getStorageControllerByName" /> or
4782 <link to="#removeStorageController" /> or
4783 <link to="#attachHardDisk" />.
4784
4785 After the controller has been added, you can set its exact
4786 type by setting the <link to="IStorageController::controllerType" />.
4787
4788 <result name="VBOX_E_OBJECT_IN_USE">
4789 A storage controller with given name exists already.
4790 </result>
4791 <result name="E_INVALIDARG">
4792 Invalid @a controllerType.
4793 </result>
4794 </desc>
4795 <param name="name" type="wstring" dir="in"/>
4796 <param name="connectionType" type="StorageBus" dir="in"/>
4797 <param name="controller" type="IStorageController" dir="return"/>
4798 </method>
4799
4800 <method name="getStorageControllerByName" const="yes">
4801 <desc>
4802 Returns a storage controller with the given name.
4803
4804 <result name="VBOX_E_OBJECT_NOT_FOUND">
4805 A storage controller with given name doesn't exist.
4806 </result>
4807 </desc>
4808 <param name="name" type="wstring" dir="in"/>
4809 <param name="storageController" type="IStorageController" dir="return"/>
4810 </method>
4811
4812 <method name="removeStorageController">
4813 <desc>
4814 Removes a storage controller from the machine.
4815
4816 <result name="VBOX_E_OBJECT_NOT_FOUND">
4817 A storage controller with given name doesn't exist.
4818 </result>
4819 </desc>
4820 <param name="name" type="wstring" dir="in"/>
4821 </method>
4822
4823 <method name="getSerialPort" const="yes">
4824 <desc>
4825 Returns the serial port associated with the given slot.
4826 Slots are numbered sequentially, starting with zero. The total
4827 number of serial ports per machine is defined by the
4828 <link to="ISystemProperties::serialPortCount"/> property,
4829 so the maximum slot number is one less than that property's value.
4830
4831 <result name="E_INVALIDARG">
4832 Invalid @a slot number.
4833 </result>
4834
4835 </desc>
4836 <param name="slot" type="unsigned long" dir="in"/>
4837 <param name="port" type="ISerialPort" dir="return"/>
4838 </method>
4839
4840 <method name="getParallelPort" const="yes">
4841 <desc>
4842 Returns the parallel port associated with the given slot.
4843 Slots are numbered sequentially, starting with zero. The total
4844 number of parallel ports per machine is defined by the
4845 <link to="ISystemProperties::parallelPortCount"/> property,
4846 so the maximum slot number is one less than that property's value.
4847
4848 <result name="E_INVALIDARG">
4849 Invalid @a slot number.
4850 </result>
4851
4852 </desc>
4853 <param name="slot" type="unsigned long" dir="in"/>
4854 <param name="port" type="IParallelPort" dir="return"/>
4855 </method>
4856
4857 <method name="getNextExtraDataKey">
4858 <desc>
4859 Returns the machine-specific extra data key name following the
4860 supplied key.
4861
4862 An error is returned if the supplied @a key does not exist. @c NULL is
4863 returned in @a nextKey if the supplied key is the last key. When
4864 supplying @c NULL for the @a key, the first key item is returned in
4865 @a nextKey (if there is any). @a nextValue is an optional parameter and
4866 if supplied, the next key's value is returned in it.
4867
4868 <result name="VBOX_E_OBJECT_NOT_FOUND">
4869 Extra data @a key not found.
4870 </result>
4871
4872 </desc>
4873 <param name="key" type="wstring" dir="in">
4874 <desc>Name of the data key to follow.</desc>
4875 </param>
4876 <param name="nextKey" type="wstring" dir="out">
4877 <desc>Name of the next data key.</desc>
4878 </param>
4879 <param name="nextValue" type="wstring" dir="out">
4880 <desc>Value of the next data key.</desc>
4881 </param>
4882 </method>
4883
4884 <method name="getExtraData">
4885 <desc>
4886 Returns associated machine-specific extra data.
4887
4888 If the requested data @a key does not exist, this function will
4889 succeed and return @c NULL in the @a value argument.
4890
4891 <result name="VBOX_E_FILE_ERROR">
4892 Settings file not accessible.
4893 </result>
4894 <result name="VBOX_E_XML_ERROR">
4895 Could not parse the settings file.
4896 </result>
4897
4898 </desc>
4899 <param name="key" type="wstring" dir="in">
4900 <desc>Name of the data key to get.</desc>
4901 </param>
4902 <param name="value" type="wstring" dir="return">
4903 <desc>Value of the requested data key.</desc>
4904 </param>
4905 </method>
4906
4907 <method name="setExtraData">
4908 <desc>
4909 Sets associated machine-specific extra data.
4910
4911 If you pass @c NULL as a key @a value, the given @a key will be
4912 deleted.
4913
4914 <note>
4915 Before performing the actual data change, this method will ask all
4916 registered callbacks using the
4917 <link to="IVirtualBoxCallback::onExtraDataCanChange"/>
4918 notification for a permission. If one of the callbacks refuses the
4919 new value, the change will not be performed.
4920 </note>
4921 <note>
4922 On success, the
4923 <link to="IVirtualBoxCallback::onExtraDataChange"/> notification
4924 is called to inform all registered callbacks about a successful data
4925 change.
4926 </note>
4927 <note>
4928 This method can be called outside the machine session and therefore
4929 it's a caller's responsibility to handle possible race conditions
4930 when several clients change the same key at the same time.
4931 </note>
4932
4933 <result name="VBOX_E_FILE_ERROR">
4934 Settings file not accessible.
4935 </result>
4936 <result name="VBOX_E_XML_ERROR">
4937 Could not parse the settings file.
4938 </result>
4939
4940 </desc>
4941 <param name="key" type="wstring" dir="in">
4942 <desc>Name of the data key to set.</desc>
4943 </param>
4944 <param name="value" type="wstring" dir="in">
4945 <desc>Value to assign to the key.</desc>
4946 </param>
4947 </method>
4948
4949 <method name="saveSettings">
4950 <desc>
4951 Saves any changes to machine settings made since the session
4952 has been opened or a new machine has been created, or since the
4953 last call to <link to="#saveSettings"/> or <link to="#discardSettings"/>.
4954 For registered machines, new settings become visible to all
4955 other VirtualBox clients after successful invocation of this
4956 method.
4957 <note>
4958 The method sends <link to="IVirtualBoxCallback::onMachineDataChange"/>
4959 notification event after the configuration has been successfully
4960 saved (only for registered machines).
4961 </note>
4962 <note>
4963 Calling this method is only valid on instances returned
4964 by <link to="ISession::machine"/> and on new machines
4965 created by <link to="IVirtualBox::createMachine"/> but not
4966 yet registered, or on unregistered machines after calling
4967 <link to="IVirtualBox::unregisterMachine"/>.
4968 </note>
4969
4970 <result name="VBOX_E_FILE_ERROR">
4971 Settings file not accessible.
4972 </result>
4973 <result name="VBOX_E_XML_ERROR">
4974 Could not parse the settings file.
4975 </result>
4976 <result name="E_ACCESSDENIED">
4977 Modification request refused.
4978 </result>
4979
4980 </desc>
4981 </method>
4982
4983 <method name="saveSettingsWithBackup">
4984 <desc>
4985 Creates a backup copy of the machine settings file (<link
4986 to="IMachine::settingsFilePath"/>) in case of auto-conversion, and then calls
4987 <link to="IMachine::saveSettings"/>.
4988
4989 Note that the backup copy is created <b>only</b> if the settings file
4990 auto-conversion took place (see <link to="#settingsFileVersion"/> for
4991 details). Otherwise, this call is fully equivalent to
4992 <link to="IMachine::saveSettings"/> and no backup copying is done.
4993
4994 The backup copy is created in the same directory where the original
4995 settings file is located. It is given the following file name:
4996 <pre>
4997 original.xml.x.y-platform.bak
4998 </pre>
4999 where <tt>original.xml</tt> is the original settings file name
5000 (excluding path), and <tt>x.y-platform</tt> is the version of the old
5001 format of the settings file (before auto-conversion).
5002
5003 If the given backup file already exists, this method will try to add the
5004 <tt>.N</tt> suffix to the backup file name (where <tt>N</tt> counts from
5005 0 to 9) and copy it again until it succeeds. If all suffixes are
5006 occupied, or if any other copy error occurs, this method will return a
5007 failure.
5008
5009 If the copy operation succeeds, the @a bakFileName return argument will
5010 receive a full path to the created backup file (for informational
5011 purposes). Note that this will happen even if the subsequent
5012 <link to="#saveSettings"/> call performed by this method after the
5013 copy operation, fails.
5014
5015 <note>
5016 The VirtualBox API never calls this method. It is intended purely for
5017 the purposes of creating backup copies of the settings files by
5018 front-ends before saving the results of the automatically performed
5019 settings conversion to disk.
5020 </note>
5021
5022 <see>settingsFileVersion</see>
5023
5024 <result name="VBOX_E_FILE_ERROR">
5025 Settings file not accessible.
5026 </result>
5027 <result name="VBOX_E_XML_ERROR">
5028 Could not parse the settings file.
5029 </result>
5030 <result name="VBOX_E_INVALID_VM_STATE">
5031 Virtual machine is not mutable.
5032 </result>
5033 <result name="E_ACCESSDENIED">
5034 Modification request refused.
5035 </result>
5036
5037 </desc>
5038 <param name="bakFileName" type="wstring" dir="return">
5039 <desc>Full path to the created backup copy.</desc>
5040 </param>
5041 </method>
5042
5043 <method name="discardSettings">
5044 <desc>
5045 Discards any changes to the machine settings made since the session
5046 has been opened or since the last call to <link to="#saveSettings"/>
5047 or <link to="#discardSettings"/>.
5048 <note>
5049 Calling this method is only valid on instances returned
5050 by <link to="ISession::machine"/> and on new machines
5051 created by <link to="IVirtualBox::createMachine"/> or
5052 opened by <link to="IVirtualBox::openMachine"/> but not
5053 yet registered, or on unregistered machines after calling
5054 <link to="IVirtualBox::unregisterMachine"/>.
5055 </note>
5056
5057 <result name="VBOX_E_INVALID_VM_STATE">
5058 Virtual machine is not mutable.
5059 </result>
5060
5061 </desc>
5062 </method>
5063
5064 <method name="deleteSettings">
5065 <desc>
5066 Deletes the settings file of this machine from disk.
5067 The machine must not be registered in order for this operation
5068 to succeed.
5069 <note>
5070 <link to="#settingsModified"/> will return TRUE after this
5071 method successfully returns.
5072 </note>
5073 <note>
5074 Calling this method is only valid on instances returned
5075 by <link to="ISession::machine"/> and on new machines
5076 created by <link to="IVirtualBox::createMachine"/> or
5077 opened by <link to="IVirtualBox::openMachine"/> but not
5078 yet registered, or on unregistered machines after calling
5079 <link to="IVirtualBox::unregisterMachine"/>.
5080 </note>
5081 <note>
5082 The deleted machine settings file can be restored (saved again)
5083 by calling <link to="#saveSettings"/>.
5084 </note>
5085
5086 <result name="VBOX_E_INVALID_VM_STATE">
5087 Cannot delete settings of a registered machine or
5088 machine not mutable.
5089 </result>
5090 <result name="VBOX_E_IPRT_ERROR">
5091 Could not delete the settings file.
5092 </result>
5093
5094 </desc>
5095 </method>
5096
5097 <method name="export">
5098 <desc>Exports the machine to an OVF appliance. See <link to="IAppliance" /> for the
5099 steps required to export VirtualBox machines to OVF.
5100 </desc>
5101
5102 <param name="aAppliance" type="IAppliance" dir="in">
5103 <desc>Appliance to export this machine to.</desc>
5104 </param>
5105 <param name="aDescription" type="IVirtualSystemDescription" dir="return">
5106 <desc>VirtualSystemDescription object which is created for this machine.</desc>
5107 </param>
5108 </method >
5109
5110 <method name="getSnapshot">
5111 <desc>
5112 Returns a snapshot of this machine with the given UUID.
5113 A <tt>null</tt> UUID can be used to obtain the first snapshot
5114 taken on this machine. This is useful if you want to traverse
5115 the whole tree of snapshots starting from the root.
5116
5117 <result name="VBOX_E_OBJECT_NOT_FOUND">
5118 Virtual machine has no snapshots or snapshot not found.
5119 </result>
5120
5121 </desc>
5122 <param name="id" type="wstring" dir="in">
5123 <desc>UUID of the snapshot to get</desc>
5124 </param>
5125 <param name="snapshot" type="ISnapshot" dir="return">
5126 <desc>Snapshot object with the given UUID.</desc>
5127 </param>
5128 </method>
5129
5130 <method name="findSnapshot">
5131 <desc>
5132 Returns a snapshot of this machine with the given name.
5133
5134 <result name="VBOX_E_OBJECT_NOT_FOUND">
5135 Virtual machine has no snapshots or snapshot not found.
5136 </result>
5137
5138 </desc>
5139 <param name="name" type="wstring" dir="in">
5140 <desc>Name of the snapshot to find</desc>
5141 </param>
5142 <param name="snapshot" type="ISnapshot" dir="return">
5143 <desc>Snapshot object with the given name.</desc>
5144 </param>
5145 </method>
5146
5147 <method name="setCurrentSnapshot">
5148 <desc>
5149 Sets the current snapshot of this machine.
5150 <note>
5151 In the current implementation, this operation is not
5152 implemented.
5153 </note>
5154 </desc>
5155 <param name="id" type="wstring" dir="in">
5156 <desc>UUID of the snapshot to set as the current snapshot.</desc>
5157 </param>
5158 </method>
5159
5160 <method name="createSharedFolder">
5161 <desc>
5162 Creates a new permanent shared folder by associating the given logical
5163 name with the given host path, adds it to the collection of shared
5164 folders and starts sharing it. Refer to the description of
5165 <link to="ISharedFolder"/> to read more about logical names.
5166
5167 <result name="VBOX_E_OBJECT_IN_USE">
5168 Shared folder already exists.
5169 </result>
5170 <result name="VBOX_E_FILE_ERROR">
5171 Shared folder @a hostPath not accessible.
5172 </result>
5173
5174 </desc>
5175 <param name="name" type="wstring" dir="in">
5176 <desc>Unique logical name of the shared folder.</desc>
5177 </param>
5178 <param name="hostPath" type="wstring" dir="in">
5179 <desc>Full path to the shared folder in the host file system.</desc>
5180 </param>
5181 <param name="writable" type="boolean" dir="in">
5182 <desc>Whether the share is writable or readonly</desc>
5183 </param>
5184 </method>
5185
5186 <method name="removeSharedFolder">
5187 <desc>
5188 Removes the permanent shared folder with the given name previously
5189 created by <link to="#createSharedFolder"/> from the collection of
5190 shared folders and stops sharing it.
5191
5192 <result name="VBOX_E_INVALID_VM_STATE">
5193 Virtual machine is not mutable.
5194 </result>
5195 <result name="VBOX_E_OBJECT_NOT_FOUND">
5196 Shared folder @a name does not exist.
5197 </result>
5198
5199 </desc>
5200 <param name="name" type="wstring" dir="in">
5201 <desc>Logical name of the shared folder to remove.</desc>
5202 </param>
5203 </method>
5204
5205 <method name="canShowConsoleWindow">
5206 <desc>
5207 Returns @c true if the VM console process can activate the
5208 console window and bring it to foreground on the desktop of
5209 the host PC.
5210 <note>
5211 This method will fail if a session for this machine is not
5212 currently open.
5213 </note>
5214
5215 <result name="VBOX_E_INVALID_VM_STATE">
5216 Machine session is not open.
5217 </result>
5218
5219 </desc>
5220 <param name="canShow" type="boolean" dir="return">
5221 <desc>
5222 @c true if the console window can be shown and @c
5223 false otherwise.
5224 </desc>
5225 </param>
5226 </method>
5227
5228 <method name="showConsoleWindow">
5229 <desc>
5230 Activates the console window and brings it to foreground on
5231 the desktop of the host PC. Many modern window managers on
5232 many platforms implement some sort of focus stealing
5233 prevention logic, so that it may be impossible to activate
5234 a window without the help of the currently active
5235 application. In this case, this method will return a non-zero
5236 identifier that represents the top-level window of the VM
5237 console process. The caller, if it represents a currently
5238 active process, is responsible to use this identifier (in a
5239 platform-dependent manner) to perform actual window
5240 activation.
5241 <note>
5242 This method will fail if a session for this machine is not
5243 currently open.
5244 </note>
5245
5246 <result name="VBOX_E_INVALID_VM_STATE">
5247 Machine session is not open.
5248 </result>
5249
5250 </desc>
5251 <param name="winId" type="unsigned long long" dir="return">
5252 <desc>
5253 Platform-dependent identifier of the top-level VM console
5254 window, or zero if this method has performed all actions
5255 necessary to implement the <i>show window</i> semantics for
5256 the given platform and/or VirtualBox front-end.
5257 </desc>
5258 </param>
5259 </method>
5260
5261 <method name="getGuestProperty">
5262 <desc>
5263 Reads an entry from the machine's guest property store.
5264
5265 <result name="VBOX_E_INVALID_VM_STATE">
5266 Machine session is not open.
5267 </result>
5268
5269 </desc>
5270 <param name="name" type="wstring" dir="in">
5271 <desc>
5272 The name of the property to read.
5273 </desc>
5274 </param>
5275 <param name="value" type="wstring" dir="out">
5276 <desc>
5277 The value of the property. If the property does not exist then this
5278 will be empty.
5279 </desc>
5280 </param>
5281 <param name="timestamp" type="unsigned long long" dir="out">
5282 <desc>
5283 The time at which the property was last modified, as seen by the
5284 server process.
5285 </desc>
5286 </param>
5287 <param name="flags" type="wstring" dir="out">
5288 <desc>
5289 Additional property parameters, passed as a comma-separated list of
5290 "name=value" type entries.
5291 </desc>
5292 </param>
5293 </method>
5294
5295 <method name="getGuestPropertyValue">
5296 <desc>
5297 Reads a value from the machine's guest property store.
5298
5299 <result name="VBOX_E_INVALID_VM_STATE">
5300 Machine session is not open.
5301 </result>
5302
5303 </desc>
5304 <param name="property" type="wstring" dir="in">
5305 <desc>
5306 The name of the property to read.
5307 </desc>
5308 </param>
5309 <param name="value" type="wstring" dir="return">
5310 <desc>
5311 The value of the property. If the property does not exist then this
5312 will be empty.
5313 </desc>
5314 </param>
5315 </method>
5316
5317 <method name="getGuestPropertyTimestamp">
5318 <desc>
5319 Reads a property timestamp from the machine's guest property store.
5320
5321 <result name="VBOX_E_INVALID_VM_STATE">
5322 Machine session is not open.
5323 </result>
5324
5325 </desc>
5326 <param name="property" type="wstring" dir="in">
5327 <desc>
5328 The name of the property to read.
5329 </desc>
5330 </param>
5331 <param name="value" type="unsigned long long" dir="return">
5332 <desc>
5333 The timestamp. If the property does not exist then this will be
5334 empty.
5335 </desc>
5336 </param>
5337 </method>
5338
5339 <method name="setGuestProperty">
5340 <desc>
5341 Sets, changes or deletes an entry in the machine's guest property
5342 store.
5343
5344 <result name="E_ACCESSDENIED">
5345 Property cannot be changed.
5346 </result>
5347 <result name="E_INVALIDARG">
5348 Invalid @a flags.
5349 </result>
5350 <result name="VBOX_E_INVALID_VM_STATE">
5351 Virtual machine is not mutable or session not open.
5352 </result>
5353 <result name="VBOX_E_INVALID_OBJECT_STATE">
5354 Cannot set transient property when machine not running.
5355 </result>
5356
5357 </desc>
5358 <param name="property" type="wstring" dir="in">
5359 <desc>
5360 The name of the property to set, change or delete.
5361 </desc>
5362 </param>
5363 <param name="value" type="wstring" dir="in">
5364 <desc>
5365 The new value of the property to set, change or delete. If the
5366 property does not yet exist and value is non-empty, it will be
5367 created. If the value is empty, the key will be deleted if it
5368 exists.
5369 </desc>
5370 </param>
5371 <param name="flags" type="wstring" dir="in">
5372 <desc>
5373 Additional property parameters, passed as a comma-separated list of
5374 "name=value" type entries.
5375 </desc>
5376 </param>
5377 </method>
5378
5379 <method name="setGuestPropertyValue">
5380 <desc>
5381 Sets, changes or deletes a value in the machine's guest property
5382 store. The flags field will be left unchanged or created empty for a
5383 new property.
5384
5385 <result name="E_ACCESSDENIED">
5386 Property cannot be changed.
5387 </result>
5388 <result name="VBOX_E_INVALID_VM_STATE">
5389 Virtual machine is not mutable or session not open.
5390 </result>
5391 <result name="VBOX_E_INVALID_OBJECT_STATE">
5392 Cannot set transient property when machine not running.
5393 </result>
5394 </desc>
5395
5396 <param name="property" type="wstring" dir="in">
5397 <desc>
5398 The name of the property to set, change or delete.
5399 </desc>
5400 </param>
5401 <param name="value" type="wstring" dir="in">
5402 <desc>
5403 The new value of the property to set, change or delete. If the
5404 property does not yet exist and value is non-empty, it will be
5405 created. If value is empty, the property will be deleted if it
5406 exists.
5407 </desc>
5408 </param>
5409 </method>
5410
5411 <method name="enumerateGuestProperties">
5412 <desc>
5413 Return a list of the guest properties matching a set of patterns along
5414 with their values, time stamps and flags.
5415 </desc>
5416 <param name="patterns" type="wstring" dir="in">
5417 <desc>
5418 The patterns to match the properties against, separated by '|'
5419 characters. If this is empty or NULL, all properties will match.
5420 </desc>
5421 </param>
5422 <param name="name" type="wstring" dir="out" safearray="yes">
5423 <desc>
5424 The names of the properties returned.
5425 </desc>
5426 </param>
5427 <param name="value" type="wstring" dir="out" safearray="yes">
5428 <desc>
5429 The values of the properties returned. The array entries match the
5430 corresponding entries in the @a name array.
5431 </desc>
5432 </param>
5433 <param name="timestamp" type="unsigned long long" dir="out" safearray="yes">
5434 <desc>
5435 The time stamps of the properties returned. The array entries match
5436 the corresponding entries in the @a name array.
5437 </desc>
5438 </param>
5439 <param name="flags" type="wstring" dir="out" safearray="yes">
5440 <desc>
5441 The flags of the properties returned. The array entries match the
5442 corresponding entries in the @a name array.
5443 </desc>
5444 </param>
5445 </method>
5446</interface>
5447
5448 <!--
5449 // IConsole
5450 /////////////////////////////////////////////////////////////////////////
5451 -->
5452
5453 <interface
5454 name="IConsoleCallback" extends="$unknown"
5455 uuid="13dfbef3-b74d-487d-bada-2304529aefa6"
5456 wsmap="suppress"
5457 >
5458
5459 <method name="onMousePointerShapeChange">
5460 <desc>
5461 Notification when the guest mouse pointer shape has
5462 changed. The new shape data is given.
5463 </desc>
5464 <param name="visible" type="boolean" dir="in">
5465 <desc>
5466 Flag whether the pointer is visible.
5467 </desc>
5468 </param>
5469 <param name="alpha" type="boolean" dir="in">
5470 <desc>
5471 Flag whether the pointer has an alpha channel.
5472 </desc>
5473 </param>
5474 <param name="xHot" type="unsigned long" dir="in">
5475 <desc>
5476 The pointer hot spot x coordinate.
5477 </desc>
5478 </param>
5479 <param name="yHot" type="unsigned long" dir="in">
5480 <desc>
5481 The pointer hot spot y coordinate.
5482 </desc>
5483 </param>
5484 <param name="width" type="unsigned long" dir="in">
5485 <desc>
5486 Width of the pointer shape in pixels.
5487 </desc>
5488 </param>
5489 <param name="height" type="unsigned long" dir="in">
5490 <desc>
5491 Height of the pointer shape in pixels.
5492 </desc>
5493 </param>
5494 <param name="shape" type="octet" mod="ptr" dir="in">
5495 <desc>
5496 Address of the shape buffer.
5497
5498 The @a shape buffer contains a 1-bpp (bits per pixel) AND mask
5499 followed by a 32-bpp XOR (color) mask.
5500
5501 For pointers without alpha channel the XOR mask pixels are 32
5502 bit values: (lsb)BGR0(msb). For pointers with alpha channel
5503 the XOR mask consists of (lsb)BGRA(msb) 32 bit values.
5504
5505 An AND mask is used for pointers with alpha channel, so if the
5506 callback does not support alpha, the pointer could be
5507 displayed as a normal color pointer.
5508
5509 The AND mask is a 1-bpp bitmap with byte aligned scanlines. The
5510 size of the AND mask therefore is <tt>cbAnd = (width + 7) / 8 *
5511 height</tt>. The padding bits at the end of each scanline are
5512 undefined.
5513
5514 The XOR mask follows the AND mask on the next 4-byte aligned
5515 offset: <tt>uint8_t *pXor = pAnd + (cbAnd + 3) &amp; ~3</tt>.
5516 Bytes in the gap between the AND and the XOR mask are undefined.
5517 The XOR mask scanlines have no gap between them and the size of
5518 the XOR mask is: <tt>cXor = width * 4 * height</tt>.
5519
5520 <note>
5521 If @a shape is 0, only the pointer visibility is changed.
5522 </note>
5523 </desc>
5524 </param>
5525 </method>
5526
5527 <method name="onMouseCapabilityChange">
5528 <desc>
5529 Notification when the mouse capabilities reported by the
5530 guest have changed. The new capabilities are passed.
5531 </desc>
5532 <param name="supportsAbsolute" type="boolean" dir="in"/>
5533 <param name="needsHostCursor" type="boolean" dir="in"/>
5534 </method>
5535
5536 <method name="onKeyboardLedsChange">
5537 <desc>
5538 Notification when the guest OS executes the KBD_CMD_SET_LEDS command
5539 to alter the state of the keyboard LEDs.
5540 </desc>
5541 <param name="numLock" type="boolean" dir="in"/>
5542 <param name="capsLock" type="boolean" dir="in"/>
5543 <param name="scrollLock" type="boolean" dir="in"/>
5544 </method>
5545
5546 <method name="onStateChange">
5547 <desc>
5548 Notification when the execution state of the machine has changed.
5549 The new state will be given.
5550 </desc>
5551 <param name="state" type="MachineState" dir="in"/>
5552 </method>
5553
5554 <method name="onAdditionsStateChange">
5555 <desc>
5556 Notification when a Guest Additions property changes.
5557 Interested callees should query IGuest attributes to
5558 find out what has changed.
5559 </desc>
5560 </method>
5561
5562 <method name="onDVDDriveChange">
5563 <desc>
5564 Notification when a property of the
5565 virtual <link to="IMachine::DVDDrive">DVD drive</link> changes.
5566 Interested callees should use IDVDDrive methods to find out what has
5567 changed.
5568 </desc>
5569 </method>
5570
5571 <method name="onFloppyDriveChange">
5572 <desc>
5573 Notification when a property of the
5574 virtual <link to="IMachine::floppyDrive">floppy drive</link> changes.
5575 Interested callees should use IFloppyDrive methods to find out what
5576 has changed.
5577 </desc>
5578 </method>
5579
5580 <method name="onNetworkAdapterChange">
5581 <desc>
5582 Notification when a property of one of the
5583 virtual <link to="IMachine::getNetworkAdapter">network adapters</link>
5584 changes. Interested callees should use INetworkAdapter methods and
5585 attributes to find out what has changed.
5586 </desc>
5587 <param name="networkAdapter" type="INetworkAdapter" dir="in">
5588 <desc>Network adapter that is subject to change.</desc>
5589 </param>
5590 </method>
5591
5592 <method name="onSerialPortChange">
5593 <desc>
5594 Notification when a property of one of the
5595 virtual <link to="IMachine::getSerialPort">serial ports</link> changes.
5596 Interested callees should use ISerialPort methods and attributes
5597 to find out what has changed.
5598 </desc>
5599 <param name="serialPort" type="ISerialPort" dir="in">
5600 <desc>Serial port that is subject to change.</desc>
5601 </param>
5602 </method>
5603
5604 <method name="onParallelPortChange">
5605 <desc>
5606 Notification when a property of one of the
5607 virtual <link to="IMachine::getParallelPort">parallel ports</link>
5608 changes. Interested callees should use ISerialPort methods and
5609 attributes to find out what has changed.
5610 </desc>
5611 <param name="parallelPort" type="IParallelPort" dir="in">
5612 <desc>Parallel port that is subject to change.</desc>
5613 </param>
5614 </method>
5615
5616 <method name="onStorageControllerChange">
5617 <desc>
5618 Notification when a property of one of the
5619 virtual <link to="IMachine::storageControllers">storage controllers</link>
5620 changes. Interested callees should query the corresponding collections
5621 to find out what has changed.
5622 </desc>
5623 </method>
5624
5625 <method name="onVRDPServerChange">
5626 <desc>
5627 Notification when a property of the
5628 <link to="IMachine::VRDPServer">VRDP server</link> changes.
5629 Interested callees should use IVRDPServer methods and attributes to
5630 find out what has changed.
5631 </desc>
5632 </method>
5633
5634 <method name="onUSBControllerChange">
5635 <desc>
5636 Notification when a property of the virtual
5637 <link to="IMachine::USBController">USB controller</link> changes.
5638 Interested callees should use IUSBController methods and attributes to
5639 find out what has changed.
5640 </desc>
5641 </method>
5642
5643 <method name="onUSBDeviceStateChange">
5644 <desc>
5645 Notification when a USB device is attached to or detached from
5646 the virtual USB controller.
5647
5648 This notification is sent as a result of the indirect
5649 request to attach the device because it matches one of the
5650 machine USB filters, or as a result of the direct request
5651 issued by <link to="IConsole::attachUSBDevice"/> or
5652 <link to="IConsole::detachUSBDevice"/>.
5653
5654 This notification is sent in case of both a succeeded and a
5655 failed request completion. When the request succeeds, the
5656 @a error parameter is @c null, and the given device has been
5657 already added to (when @a attached is @c true) or removed from
5658 (when @a attached is @c false) the collection represented by
5659 <link to="IConsole::USBDevices"/>. On failure, the collection
5660 doesn't change and the @a error parameter represents the error
5661 message describing the failure.
5662
5663 </desc>
5664 <param name="device" type="IUSBDevice" dir="in">
5665 <desc>Device that is subject to state change.</desc>
5666 </param>
5667 <param name="attached" type="boolean" dir="in">
5668 <desc>
5669 <tt>true</tt> if the device was attached
5670 and <tt>false</tt> otherwise.
5671 </desc>
5672 </param>
5673 <param name="error" type="IVirtualBoxErrorInfo" dir="in">
5674 <desc>
5675 <tt>null</tt> on success or an error message object on
5676 failure.
5677 </desc>
5678 </param>
5679 </method>
5680
5681 <method name="onSharedFolderChange">
5682 <desc>
5683 Notification when a shared folder is added or removed.
5684 The @a scope argument defines one of three scopes:
5685 <link to="IVirtualBox::sharedFolders">global shared folders</link>
5686 (<link to="Scope_Global">Global</link>),
5687 <link to="IMachine::sharedFolders">permanent shared folders</link> of
5688 the machine (<link to="Scope_Machine">Machine</link>) or <link
5689 to="IConsole::sharedFolders">transient shared folders</link> of the
5690 machine (<link to="Scope_Session">Session</link>). Interested callees
5691 should use query the corresponding collections to find out what has
5692 changed.
5693 </desc>
5694 <param name="scope" type="Scope" dir="in">
5695 <desc>Scope of the notification.</desc>
5696 </param>
5697 </method>
5698
5699 <method name="onRuntimeError">
5700 <desc>
5701 Notification when an error happens during the virtual
5702 machine execution.
5703
5704 There are three kinds of runtime errors:
5705 <ul>
5706 <li><i>fatal</i></li>
5707 <li><i>non-fatal with retry</i></li>
5708 <li><i>non-fatal warnings</i></li>
5709 </ul>
5710
5711 <b>Fatal</b> errors are indicated by the @a fatal parameter set
5712 to <tt>true</tt>. In case of fatal errors, the virtual machine
5713 execution is always paused before calling this notification, and
5714 the notification handler is supposed either to immediately save
5715 the virtual machine state using <link to="IConsole::saveState"/>
5716 or power it off using <link to="IConsole::powerDown"/>.
5717 Resuming the execution can lead to unpredictable results.
5718
5719 <b>Non-fatal</b> errors and warnings are indicated by the
5720 @a fatal parameter set to <tt>false</tt>. If the virtual machine
5721 is in the Paused state by the time the error notification is
5722 received, it means that the user can <i>try to resume</i> the machine
5723 execution after attempting to solve the problem that caused the
5724 error. In this case, the notification handler is supposed
5725 to show an appropriate message to the user (depending on the
5726 value of the @a id parameter) that offers several actions such
5727 as <i>Retry</i>, <i>Save</i> or <i>Power Off</i>. If the user
5728 wants to retry, the notification handler should continue
5729 the machine execution using the <link to="IConsole::resume"/>
5730 call. If the machine execution is not Paused during this
5731 notification, then it means this notification is a <i>warning</i>
5732 (for example, about a fatal condition that can happen very soon);
5733 no immediate action is required from the user, the machine
5734 continues its normal execution.
5735
5736 Note that in either case the notification handler
5737 <b>must not</b> perform any action directly on a thread
5738 where this notification is called. Everything it is allowed to
5739 do is to post a message to another thread that will then talk
5740 to the user and take the corresponding action.
5741
5742 Currently, the following error identifiers are known:
5743 <ul>
5744 <li><tt>"HostMemoryLow"</tt></li>
5745 <li><tt>"HostAudioNotResponding"</tt></li>
5746 <li><tt>"VDIStorageFull"</tt></li>
5747 </ul>
5748
5749 <note>
5750 This notification is not designed to be implemented by
5751 more than one callback at a time. If you have multiple
5752 IConsoleCallback instances registered on the given
5753 IConsole object, make sure you simply do nothing but
5754 return @c S_OK from all but one of them that does actual
5755 user notification and performs necessary actions.
5756 </note>
5757
5758 </desc>
5759 <param name="fatal" type="boolean" dir="in">
5760 <desc>Whether the error is fatal or not</desc>
5761 </param>
5762 <param name="id" type="wstring" dir="in">
5763 <desc>Error identifier</desc>
5764 </param>
5765 <param name="message" type="wstring" dir="in">
5766 <desc>Optional error message</desc>
5767 </param>
5768 </method>
5769
5770 <method name="onCanShowWindow">
5771 <desc>
5772 Notification when a call to
5773 <link to="IMachine::canShowConsoleWindow"/> is made by a
5774 front-end to check if a subsequent call to
5775 <link to="IMachine::showConsoleWindow"/> can succeed.
5776
5777 The callee should give an answer appropriate to the current
5778 machine state in the @a canShow argument. This answer must
5779 remain valid at least until the next
5780 <link to="IConsole::state">machine state</link> change.
5781
5782 <note>
5783 This notification is not designed to be implemented by
5784 more than one callback at a time. If you have multiple
5785 IConsoleCallback instances registered on the given
5786 IConsole object, make sure you simply do nothing but
5787 return @c true and @c S_OK from all but one of them that
5788 actually manages console window activation.
5789 </note>
5790 </desc>
5791 <param name="canShow" type="boolean" dir="return">
5792 <desc>
5793 @c true if the console window can be shown and @c
5794 false otherwise.
5795 </desc>
5796 </param>
5797 </method>
5798
5799 <method name="onShowWindow">
5800 <desc>
5801 Notification when a call to
5802 <link to="IMachine::showConsoleWindow"/>
5803 requests the console window to be activated and brought to
5804 foreground on the desktop of the host PC.
5805
5806 This notification should cause the VM console process to
5807 perform the requested action as described above. If it is
5808 impossible to do it at a time of this notification, this
5809 method should return a failure.
5810
5811 Note that many modern window managers on many platforms
5812 implement some sort of focus stealing prevention logic, so
5813 that it may be impossible to activate a window without the
5814 help of the currently active application (which is supposedly
5815 an initiator of this notification). In this case, this method
5816 must return a non-zero identifier that represents the
5817 top-level window of the VM console process. The caller, if it
5818 represents a currently active process, is responsible to use
5819 this identifier (in a platform-dependent manner) to perform
5820 actual window activation.
5821
5822 This method must set @a winId to zero if it has performed all
5823 actions necessary to complete the request and the console
5824 window is now active and in foreground, to indicate that no
5825 further action is required on the caller's side.
5826
5827 <note>
5828 This notification is not designed to be implemented by
5829 more than one callback at a time. If you have multiple
5830 IConsoleCallback instances registered on the given
5831 IConsole object, make sure you simply do nothing but
5832 return @c S_OK from all but one of them that actually
5833 manages console window activation.
5834 </note>
5835 </desc>
5836 <param name="winId" type="unsigned long long" dir="return">
5837 <desc>
5838 Platform-dependent identifier of the top-level VM console
5839 window, or zero if this method has performed all actions
5840 necessary to implement the <i>show window</i> semantics for
5841 the given platform and/or this VirtualBox front-end.
5842 </desc>
5843 </param>
5844 </method>
5845
5846 </interface>
5847
5848 <interface
5849 name="IRemoteDisplayInfo" extends="$unknown"
5850 uuid="550104cd-2dfd-4a6c-857d-f6f8e088e62c"
5851 wsmap="struct"
5852 >
5853 <desc>
5854 Contains information about the remote display (VRDP) capabilities and status.
5855 This is used in the <link to="IConsole::remoteDisplayInfo" /> attribute.
5856 </desc>
5857
5858 <attribute name="active" type="boolean" readonly="yes">
5859 <desc>
5860 Whether the remote display connection is active.
5861 </desc>
5862 </attribute>
5863
5864 <attribute name="numberOfClients" type="unsigned long" readonly="yes">
5865 <desc>
5866 How many times a client connected.
5867 </desc>
5868 </attribute>
5869
5870 <attribute name="beginTime" type="long long" readonly="yes">
5871 <desc>
5872 When the last connection was established, in milliseconds since 1970-01-01 UTC.
5873 </desc>
5874 </attribute>
5875
5876 <attribute name="endTime" type="long long" readonly="yes">
5877 <desc>
5878 When the last connection was terminated or the current time, if
5879 connection is still active, in milliseconds since 1970-01-01 UTC.
5880 </desc>
5881 </attribute>
5882
5883 <attribute name="bytesSent" type="unsigned long long" readonly="yes">
5884 <desc>
5885 How many bytes were sent in last or current, if still active, connection.
5886 </desc>
5887 </attribute>
5888
5889 <attribute name="bytesSentTotal" type="unsigned long long" readonly="yes">
5890 <desc>
5891 How many bytes were sent in all connections.
5892 </desc>
5893 </attribute>
5894
5895 <attribute name="bytesReceived" type="unsigned long long" readonly="yes">
5896 <desc>
5897 How many bytes were received in last or current, if still active, connection.
5898 </desc>
5899 </attribute>
5900
5901 <attribute name="bytesReceivedTotal" type="unsigned long long" readonly="yes">
5902 <desc>
5903 How many bytes were received in all connections.
5904 </desc>
5905 </attribute>
5906
5907 <attribute name="user" type="wstring" readonly="yes">
5908 <desc>
5909 Login user name supplied by the client.
5910 </desc>
5911 </attribute>
5912
5913 <attribute name="domain" type="wstring" readonly="yes">
5914 <desc>
5915 Login domain name supplied by the client.
5916 </desc>
5917 </attribute>
5918
5919 <attribute name="clientName" type="wstring" readonly="yes">
5920 <desc>
5921 The client name supplied by the client.
5922 </desc>
5923 </attribute>
5924
5925 <attribute name="clientIP" type="wstring" readonly="yes">
5926 <desc>
5927 The IP address of the client.
5928 </desc>
5929 </attribute>
5930
5931 <attribute name="clientVersion" type="unsigned long" readonly="yes">
5932 <desc>
5933 The client software version number.
5934 </desc>
5935 </attribute>
5936
5937 <attribute name="encryptionStyle" type="unsigned long" readonly="yes">
5938 <desc>
5939 Public key exchange method used when connection was established.
5940 Values: 0 - RDP4 public key exchange scheme.
5941 1 - X509 certificates were sent to client.
5942 </desc>
5943 </attribute>
5944
5945 </interface>
5946
5947 <interface
5948 name="IConsole" extends="$unknown"
5949 uuid="a7f17a42-5b64-488d-977b-4b2c639ada27"
5950 wsmap="managed"
5951 >
5952 <desc>
5953 The IConsole interface represents an interface to control virtual
5954 machine execution.
5955
5956 The console object that implements the IConsole interface is obtained
5957 from a session object after the session for the given machine has been
5958 opened using one of <link to="IVirtualBox::openSession"/>,
5959 <link to="IVirtualBox::openRemoteSession"/> or
5960 <link to="IVirtualBox::openExistingSession"/> methods.
5961
5962 Methods of the IConsole interface allow the caller to query the current
5963 virtual machine execution state, pause the machine or power it down, save
5964 the machine state or take a snapshot, attach and detach removable media
5965 and so on.
5966
5967 <see>ISession</see>
5968 </desc>
5969
5970 <attribute name="machine" type="IMachine" readonly="yes">
5971 <desc>
5972 Machine object this console is sessioned with.
5973 <note>
5974 This is a convenience property, it has the same value as
5975 <link to="ISession::machine"/> of the corresponding session
5976 object.
5977 </note>
5978 </desc>
5979 </attribute>
5980
5981 <attribute name="state" type="MachineState" readonly="yes">
5982 <desc>
5983 Current execution state of the machine.
5984 <note>
5985 This property always returns the same value as the corresponding
5986 property of the IMachine object this console is sessioned with.
5987 For the process that owns (executes) the VM, this is the
5988 preferable way of querying the VM state, because no IPC
5989 calls are made.
5990 </note>
5991 </desc>
5992 </attribute>
5993
5994 <attribute name="guest" type="IGuest" readonly="yes">
5995 <desc>Guest object.</desc>
5996 </attribute>
5997
5998 <attribute name="keyboard" type="IKeyboard" readonly="yes">
5999 <desc>
6000 Virtual keyboard object.
6001 <note>
6002 If the machine is not running, any attempt to use
6003 the returned object will result in an error.
6004 </note>
6005 </desc>
6006 </attribute>
6007
6008 <attribute name="mouse" type="IMouse" readonly="yes">
6009 <desc>
6010 Virtual mouse object.
6011 <note>
6012 If the machine is not running, any attempt to use
6013 the returned object will result in an error.
6014 </note>
6015 </desc>
6016 </attribute>
6017
6018 <attribute name="display" type="IDisplay" readonly="yes">
6019 <desc>Virtual display object.
6020 <note>
6021 If the machine is not running, any attempt to use
6022 the returned object will result in an error.
6023 </note>
6024 </desc>
6025 </attribute>
6026
6027 <attribute name="debugger" type="IMachineDebugger" readonly="yes">
6028 <desc>Debugging interface.</desc>
6029 </attribute>
6030
6031 <attribute name="USBDevices" type="IUSBDevice" readonly="yes" safearray="yes">
6032 <desc>
6033 Collection of USB devices currently attached to the virtual
6034 USB controller.
6035 <note>
6036 The collection is empty if the machine is not running.
6037 </note>
6038 </desc>
6039 </attribute>
6040
6041 <attribute name="remoteUSBDevices" type="IHostUSBDevice" readonly="yes" safearray="yes">
6042 <desc>
6043 List of USB devices currently attached to the remote VRDP client.
6044 Once a new device is physically attached to the remote host computer,
6045 it appears in this list and remains there until detached.
6046 </desc>
6047 </attribute>
6048
6049 <attribute name="sharedFolders" type="ISharedFolder" readonly="yes" safearray="yes">
6050 <desc>
6051 Collection of shared folders for the current session. These folders
6052 are called transient shared folders because they are available to the
6053 guest OS running inside the associated virtual machine only for the
6054 duration of the session (as opposed to
6055 <link to="IMachine::sharedFolders"/> which represent permanent shared
6056 folders). When the session is closed (e.g. the machine is powered down),
6057 these folders are automatically discarded.
6058
6059 New shared folders are added to the collection using
6060 <link to="#createSharedFolder"/>. Existing shared folders can be
6061 removed using <link to="#removeSharedFolder"/>.
6062 </desc>
6063 </attribute>
6064
6065 <attribute name="remoteDisplayInfo" type="IRemoteDisplayInfo" readonly="yes">
6066 <desc>
6067 Interface that provides information on Remote Display (VRDP) connection.
6068 </desc>
6069 </attribute>
6070
6071 <method name="powerUp">
6072 <desc>
6073 Starts the virtual machine execution using the current machine
6074 state (that is, its current execution state, current settings and
6075 current hard disks).
6076
6077 If the machine is powered off or aborted, the execution will
6078 start from the beginning (as if the real hardware were just
6079 powered on).
6080
6081 If the machine is in the <link to="MachineState_Saved"/> state,
6082 it will continue its execution the point where the state has
6083 been saved.
6084
6085 <note>
6086 Unless you are trying to write a new VirtualBox front-end that
6087 performs direct machine execution (like the VirtualBox or VBoxSDL
6088 front-ends), don't call <link to="IConsole::powerUp"/> in a direct
6089 session opened by <link to="IVirtualBox::openSession"/> and use this
6090 session only to change virtual machine settings. If you simply want to
6091 start virtual machine execution using one of the existing front-ends
6092 (for example the VirtualBox GUI or headless server), simply use
6093 <link to="IVirtualBox::openRemoteSession"/>; these front-ends will
6094 power up the machine automatically for you.
6095 </note>
6096
6097 <see>#saveState</see>
6098 <result name="VBOX_E_INVALID_VM_STATE">
6099 Virtual machine already running.
6100 </result>
6101 <result name="VBOX_E_HOST_ERROR">
6102 Host interface does not exist or name not set.
6103 </result>
6104 <result name="VBOX_E_FILE_ERROR">
6105 Invalid saved state file.
6106 </result>
6107 </desc>
6108 <param name="progress" type="IProgress" dir="return">
6109 <desc>Progress object to track the operation completion.</desc>
6110 </param>
6111 </method>
6112
6113 <method name="powerUpPaused">
6114 <desc>
6115 Identical to powerUp except that the VM will enter the
6116 <link to="MachineState_Paused"/> state, instead of
6117 <link to="MachineState_Running"/>.
6118
6119 <see>#powerUp</see>
6120 <result name="VBOX_E_INVALID_VM_STATE">
6121 Virtual machine already running.
6122 </result>
6123 <result name="VBOX_E_HOST_ERROR">
6124 Host interface does not exist or name not set.
6125 </result>
6126 <result name="VBOX_E_FILE_ERROR">
6127 Invalid saved state file.
6128 </result>
6129 </desc>
6130 <param name="progress" type="IProgress" dir="return">
6131 <desc>Progress object to track the operation completion.</desc>
6132 </param>
6133 </method>
6134
6135 <method name="powerDown">
6136 <desc>
6137 Stops the virtual machine execution.
6138 After this operation completes, the machine will go to the
6139 PoweredOff state.
6140
6141 @deprecated This method will be removed in VirtualBox 2.1 where the
6142 powerDownAsync() method will take its name. Do not use this method in
6143 the code.
6144 <result name="VBOX_E_INVALID_VM_STATE">
6145 Virtual machine must be Running, Paused or Stuck to be powered down.
6146 </result>
6147 <result name="VBOX_E_VM_ERROR">
6148 Unable to power off or destroy virtual machine.
6149 </result>
6150 </desc>
6151 </method>
6152
6153 <method name="powerDownAsync">
6154 <desc>
6155 Initiates the power down procedure to stop the virtual machine
6156 execution.
6157
6158 The completion of the power down procedure is tracked using the returned
6159 IProgress object. After the operation is complete, the machine will go
6160 to the PoweredOff state.
6161
6162 @warning This method will be renamed to "powerDown" in VirtualBox 2.1
6163 where the original powerDown() method will be removed. You will need to
6164 rename "powerDownAsync" to "powerDown" in your sources to make them
6165 build with version 2.1.
6166 <result name="VBOX_E_INVALID_VM_STATE">
6167 Virtual machine must be Running, Paused or Stuck to be powered down.
6168 </result>
6169 </desc>
6170 <param name="progress" type="IProgress" dir="return">
6171 <desc>Progress object to track the operation completion.</desc>
6172 </param>
6173 </method>
6174
6175 <method name="reset">
6176 <desc>Resets the virtual machine.
6177 <result name="VBOX_E_INVALID_VM_STATE">
6178 Virtual machine not in Running state.
6179 </result>
6180 <result name="VBOX_E_VM_ERROR">
6181 Virtual machine error in reset operation.
6182 </result>
6183 </desc>
6184 </method>
6185
6186 <method name="pause">
6187 <desc>Pauses the virtual machine execution.
6188 <result name="VBOX_E_INVALID_VM_STATE">
6189 Virtual machine not in Running state.
6190 </result>
6191 <result name="VBOX_E_VM_ERROR">
6192 Virtual machine error in suspend operation.
6193 </result>
6194 </desc>
6195 </method>
6196
6197 <method name="resume">
6198 <desc>Resumes the virtual machine execution.
6199 <result name="VBOX_E_INVALID_VM_STATE">
6200 Virtual machine not in Paused state.
6201 </result>
6202 <result name="VBOX_E_VM_ERROR">
6203 Virtual machine error in resume operation.
6204 </result>
6205 </desc>
6206 </method>
6207
6208 <method name="powerButton">
6209 <desc>Sends the ACPI power button event to the guest.
6210 <result name="VBOX_E_INVALID_VM_STATE">
6211 Virtual machine not in Running state.
6212 </result>
6213 <result name="VBOX_E_PDM_ERROR">
6214 Controlled power off failed.
6215 </result>
6216 </desc>
6217 </method>
6218
6219 <method name="sleepButton">
6220 <desc>Sends the ACPI sleep button event to the guest.
6221 <result name="VBOX_E_INVALID_VM_STATE">
6222 Virtual machine not in Running state.
6223 </result>
6224 <result name="VBOX_E_PDM_ERROR">
6225 Sending sleep button event failed.
6226 </result>
6227 </desc>
6228 </method>
6229
6230 <method name="getPowerButtonHandled">
6231 <desc>Checks if the last power button event was handled by guest.
6232 <result name="VBOX_E_PDM_ERROR">
6233 Checking if the event was handled by the guest OS failed.
6234 </result>
6235 </desc>
6236 <param name="handled" type="boolean" dir="return"/>
6237 </method>
6238
6239 <method name="getGuestEnteredACPIMode">
6240 <desc>Checks if the guest entered the ACPI mode G0 (working) or
6241 G1 (sleeping). If this method returns false, the guest will
6242 most likely not respond to external ACPI events.
6243 <result name="VBOX_E_INVALID_VM_STATE">
6244 Virtual machine not in Running state.
6245 </result>
6246 </desc>
6247 <param name="entered" type="boolean" dir="return"/>
6248 </method>
6249
6250 <method name="saveState">
6251 <desc>
6252 Saves the current execution state of a running virtual machine
6253 and stops its execution.
6254
6255 After this operation completes, the machine will go to the
6256 Saved state. Next time it is powered up, this state will
6257 be restored and the machine will continue its execution from
6258 the place where it was saved.
6259
6260 This operation differs from taking a snapshot to the effect
6261 that it doesn't create new differencing hard disks. Also, once
6262 the machine is powered up from the state saved using this method,
6263 the saved state is deleted, so it will be impossible to return
6264 to this state later.
6265
6266 <note>
6267 On success, this method implicitly calls
6268 <link to="IMachine::saveSettings"/> to save all current machine
6269 settings (including runtime changes to the DVD drive, etc.).
6270 Together with the impossibility to change any VM settings when it is
6271 in the Saved state, this guarantees adequate hardware
6272 configuration of the machine when it is restored from the saved
6273 state file.
6274 </note>
6275
6276 <note>
6277 The machine must be in the Running or Paused state, otherwise
6278 the operation will fail.
6279 </note>
6280 <result name="VBOX_E_INVALID_VM_STATE">
6281 Virtual machine state neither Running nor Paused.
6282 </result>
6283 <result name="VBOX_E_FILE_ERROR">
6284 Failed to create directory for saved state file.
6285 </result>
6286
6287 <see><link to="#takeSnapshot"/></see>
6288 </desc>
6289 <param name="progress" type="IProgress" dir="return">
6290 <desc>Progress object to track the operation completion.</desc>
6291 </param>
6292 </method>
6293
6294 <method name="adoptSavedState">
6295 <desc>
6296 Associates the given saved state file to the virtual machine.
6297
6298 On success, the machine will go to the Saved state. Next time it is
6299 powered up, it will be restored from the adopted saved state and
6300 continue execution from the place where the saved state file was
6301 created.
6302
6303 The specified saved state file path may be absolute or relative to the
6304 folder the VM normally saves the state to (usually,
6305 <link to="IMachine::snapshotFolder"/>).
6306
6307 <note>
6308 It's a caller's responsibility to make sure the given saved state
6309 file is compatible with the settings of this virtual machine that
6310 represent its virtual hardware (memory size, hard disk configuration
6311 etc.). If there is a mismatch, the behavior of the virtual machine
6312 is undefined.
6313 </note>
6314 <result name="VBOX_E_INVALID_VM_STATE">
6315 Virtual machine state neither PoweredOff nor Aborted.
6316 </result>
6317 </desc>
6318 <param name="savedStateFile" type="wstring" dir="in">
6319 <desc>Path to the saved state file to adopt.</desc>
6320 </param>
6321 </method>
6322
6323 <method name="discardSavedState">
6324 <desc>
6325 Discards (deletes) the saved state of the virtual machine
6326 previously created by <link to="#saveState"/>. Next time the
6327 machine is powered up, a clean boot will occur.
6328 <note>
6329 This operation is equivalent to resetting or powering off
6330 the machine without doing a proper shutdown in the guest OS.
6331 </note>
6332 <result name="VBOX_E_INVALID_VM_STATE">
6333 Virtual machine not in state Saved.
6334 </result>
6335 </desc>
6336 </method>
6337
6338 <method name="getDeviceActivity">
6339 <desc>
6340 Gets the current activity type of a given device or device group.
6341 <result name="E_INVALIDARG">
6342 Invalid device type.
6343 </result>
6344 </desc>
6345 <param name="type" type="DeviceType" dir="in"/>
6346 <param name="activity" type="DeviceActivity" dir="return"/>
6347 </method>
6348
6349 <method name="attachUSBDevice">
6350 <desc>
6351 Attaches a host USB device with the given UUID to the
6352 USB controller of the virtual machine.
6353
6354 The device needs to be in one of the following states:
6355 <link to="USBDeviceState_Busy"/>,
6356 <link to="USBDeviceState_Available"/> or
6357 <link to="USBDeviceState_Held"/>,
6358 otherwise an error is immediately returned.
6359
6360 When the device state is
6361 <link to="USBDeviceState_Busy">Busy</link>, an error may also
6362 be returned if the host computer refuses to release it for some reason.
6363
6364 <see>IUSBController::deviceFilters, USBDeviceState</see>
6365 <result name="VBOX_E_INVALID_VM_STATE">
6366 Virtual machine state neither Running nor Paused.
6367 </result>
6368 <result name="VBOX_E_PDM_ERROR">
6369 Virtual machine does not have a USB controller.
6370 </result>
6371 </desc>
6372 <param name="id" type="wstring" dir="in">
6373 <desc>UUID of the host USB device to attach.</desc>
6374 </param>
6375 </method>
6376
6377 <method name="detachUSBDevice">
6378 <desc>
6379 Detaches an USB device with the given UUID from the USB controller
6380 of the virtual machine.
6381
6382 After this method succeeds, the VirtualBox server re-initiates
6383 all USB filters as if the device were just physically attached
6384 to the host, but filters of this machine are ignored to avoid
6385 a possible automatic re-attachment.
6386
6387 <see>IUSBController::deviceFilters, USBDeviceState</see>
6388
6389 <result name="VBOX_E_PDM_ERROR">
6390 Virtual machine does not have a USB controller.
6391 </result>
6392 <result name="E_INVALIDARG">
6393 USB device not attached to this virtual machine.
6394 </result>
6395 </desc>
6396 <param name="id" type="wstring" dir="in">
6397 <desc>UUID of the USB device to detach.</desc>
6398 </param>
6399 <param name="device" type="IUSBDevice" dir="return">
6400 <desc>Detached USB device.</desc>
6401 </param>
6402 </method>
6403
6404 <method name="findUSBDeviceByAddress">
6405 <desc>
6406 Searches for a USB device with the given host address.
6407
6408 <result name="VBOX_E_OBJECT_NOT_FOUND">
6409 Given @c name does not correspond to any USB device.
6410 </result>
6411
6412 <see>IUSBDevice::address</see>
6413 </desc>
6414 <param name="name" type="wstring" dir="in">
6415 <desc>
6416 Address of the USB device (as assigned by the host) to
6417 search for.
6418 </desc>
6419 </param>
6420 <param name="device" type="IUSBDevice" dir="return">
6421 <desc>Found USB device object.</desc>
6422 </param>
6423 </method>
6424
6425 <method name="findUSBDeviceById">
6426 <desc>
6427 Searches for a USB device with the given UUID.
6428
6429 <result name="VBOX_E_OBJECT_NOT_FOUND">
6430 Given @c id does not correspond to any USB device.
6431 </result>
6432
6433 <see>IUSBDevice::id</see>
6434 </desc>
6435 <param name="id" type="wstring" dir="in">
6436 <desc>UUID of the USB device to search for.</desc>
6437 </param>
6438 <param name="device" type="IUSBDevice" dir="return">
6439 <desc>Found USB device object.</desc>
6440 </param>
6441 </method>
6442
6443 <method name="createSharedFolder">
6444 <desc>
6445 Creates a transient new shared folder by associating the given logical
6446 name with the given host path, adds it to the collection of shared
6447 folders and starts sharing it. Refer to the description of
6448 <link to="ISharedFolder"/> to read more about logical names.
6449
6450 <result name="VBOX_E_INVALID_VM_STATE">
6451 Virtual machine in Saved state or currently changing state.
6452 </result>
6453 <result name="VBOX_E_FILE_ERROR">
6454 Shared folder already exists or not accessible.
6455 </result>
6456 </desc>
6457 <param name="name" type="wstring" dir="in">
6458 <desc>Unique logical name of the shared folder.</desc>
6459 </param>
6460 <param name="hostPath" type="wstring" dir="in">
6461 <desc>Full path to the shared folder in the host file system.</desc>
6462 </param>
6463 <param name="writable" type="boolean" dir="in">
6464 <desc>Whether the share is writable or readonly</desc>
6465 </param>
6466 </method>
6467
6468 <method name="removeSharedFolder">
6469 <desc>
6470 Removes a transient shared folder with the given name previously
6471 created by <link to="#createSharedFolder"/> from the collection of
6472 shared folders and stops sharing it.
6473 <result name="VBOX_E_INVALID_VM_STATE">
6474 Virtual machine in Saved state or currently changing state.
6475 </result>
6476 <result name="VBOX_E_FILE_ERROR">
6477 Shared folder does not exists.
6478 </result>
6479 </desc>
6480 <param name="name" type="wstring" dir="in">
6481 <desc>Logical name of the shared folder to remove.</desc>
6482 </param>
6483 </method>
6484
6485 <method name="takeSnapshot">
6486 <desc>
6487 Saves the current execution state and all settings of the
6488 machine and creates differencing images for all
6489 normal (non-independent) hard disks.
6490
6491 This method can be called for a PoweredOff, Saved, Running or
6492 Paused virtual machine. When the machine is PoweredOff, an
6493 offline <link to="ISnapshot">snapshot</link> is created,
6494 in all other cases -- an online snapshot.
6495
6496 The taken snapshot is always based on the
6497 <link to="IMachine::currentSnapshot">current
6498 snapshot</link> of the associated virtual machine and becomes
6499 a new current snapshot.
6500
6501 <note>
6502 This method implicitly calls <link to="IMachine::saveSettings"/> to
6503 save all current machine settings before taking an offline snapshot.
6504 </note>
6505
6506 <see>ISnapshot, <link to="#saveState"/></see>
6507 <result name="VBOX_E_INVALID_VM_STATE">
6508 Virtual machine currently changing state.
6509 </result>
6510 </desc>
6511 <param name="name" type="wstring" dir="in">
6512 <desc>Short name for the snapshot.</desc>
6513 </param>
6514 <param name="description" type="wstring" dir="in">
6515 <desc>Optional description of the snapshot.</desc>
6516 </param>
6517 <param name="progress" type="IProgress" dir="return">
6518 <desc>Progress object to track the operation completion.</desc>
6519 </param>
6520 </method>
6521
6522 <method name="discardSnapshot">
6523 <desc>
6524
6525 Starts discarding the specified snapshot. The execution state
6526 and settings of the associated machine stored in the snapshot
6527 will be deleted. The contents of all differencing hard disks of
6528 this snapshot will be merged with the contents of their
6529 dependent child hard disks to keep the, disks valid (in other
6530 words, all changes represented by hard disks being discarded
6531 will be propagated to their child hard disks). After that, this
6532 snapshot's differencing hard disks will be deleted. The parent
6533 of this snapshot will become a new parent for all its child
6534 snapshots.
6535
6536 If the discarded snapshot is the current one, its parent
6537 snapshot will become a new current snapshot. The current machine
6538 state is not directly affected in this case, except that
6539 currently attached differencing hard disks based on hard disks
6540 of the discarded snapshot will be also merged as described
6541 above.
6542
6543 If the discarded snapshot is the first one (the root snapshot)
6544 and it has exactly one child snapshot, this child snapshot will
6545 become the first snapshot after discarding. If there are no
6546 children at all (i.e. the first snapshot is the only snapshot of
6547 the machine), both the current and the first snapshot of the
6548 machine will be set to null. In all other cases, the first
6549 snapshot cannot be discarded.
6550
6551 You cannot discard the snapshot if it
6552 stores <link to="HardDiskType_Normal">normal</link> (non-differencing)
6553 hard disks that have differencing hard disks based on them. Snapshots of
6554 such kind can be discarded only when every normal hard disk has either
6555 no children at all or exactly one child. In the former case, the normal
6556 hard disk simply becomes unused (i.e. not attached to any VM). In the
6557 latter case, it receives all the changes stored in the child hard disk,
6558 and then it replaces the child hard disk in the configuration of the
6559 corresponding snapshot or machine.
6560
6561 Also, you cannot discard the snapshot if it stores hard disks
6562 (of any type) having differencing child hard disks that belong
6563 to other machines. Such snapshots can be only discarded after
6564 you discard all snapshots of other machines containing "foreign"
6565 child disks, or detach these "foreign" child disks from machines
6566 they are attached to.
6567
6568 One particular example of the snapshot storing normal hard disks
6569 is the first snapshot of a virtual machine that had normal hard
6570 disks attached when taking the snapshot. Be careful when
6571 discarding such snapshots because this implicitly commits
6572 changes (made since the snapshot being discarded has been taken)
6573 to normal hard disks (as described above), which may be not what
6574 you want.
6575
6576 The virtual machine is put to
6577 the <link to="MachineState_Discarding">Discarding</link> state until
6578 the discard operation is completed.
6579
6580 <note>
6581 The machine must not be running, otherwise the operation
6582 will fail.
6583 </note>
6584
6585 <note>
6586 Child hard disks of all normal hard disks of the discarded snapshot
6587 must be accessible (see <link to="IMedium::state"/>) for this
6588 operation to succeed. In particular, this means that all virtual
6589 machines, whose hard disks are directly or indirectly based on the
6590 hard disks of discarded snapshot, must be powered off.
6591 </note>
6592 <note>
6593 Merging hard disk contents can be very time and disk space
6594 consuming, if these disks are big in size and have many
6595 children. However, if the snapshot being discarded is the last
6596 (head) snapshot on the branch, the operation will be rather
6597 quick.
6598 </note>
6599 <note>
6600 Note that discarding the current snapshot
6601 will implicitly call <link to="IMachine::saveSettings"/> to
6602 make all current machine settings permanent.
6603 </note>
6604 <result name="VBOX_E_INVALID_VM_STATE">
6605 Virtual machine is running.
6606 </result>
6607 </desc>
6608 <param name="id" type="wstring" dir="in">
6609 <desc>UUID of the snapshot to discard.</desc>
6610 </param>
6611 <param name="progress" type="IProgress" dir="return">
6612 <desc>Progress object to track the operation completion.</desc>
6613 </param>
6614 </method>
6615
6616 <method name="discardCurrentState">
6617 <desc>
6618 This operation is similar to <link to="IConsole::discardSnapshot"/> but
6619 affects the current machine state. This means that the state stored in
6620 the current snapshot will become a new current state, and all current
6621 settings of the machine and changes stored in differencing hard disks
6622 will be lost.
6623
6624 After this operation is successfully completed, new empty differencing
6625 hard disks are created for all normal hard disks of the machine.
6626
6627 If the current snapshot of the machine is an online snapshot, the
6628 machine will go to the <link to="MachineState_Saved"> saved
6629 state</link>, so that the next time it is powered on, the execution
6630 state will be restored from the current snapshot.
6631
6632 <note>
6633 The machine must not be running, otherwise the operation will fail.
6634 </note>
6635
6636 <note>
6637 If the machine state is <link to="MachineState_Saved">Saved</link>
6638 prior to this operation, the saved state file will be implicitly
6639 discarded (as if <link to="IConsole::discardSavedState"/> were
6640 called).
6641 </note>
6642
6643 <result name="VBOX_E_INVALID_VM_STATE">
6644 Virtual machine is running.
6645 </result>
6646 </desc>
6647 <param name="progress" type="IProgress" dir="return">
6648 <desc>Progress object to track the operation completion.</desc>
6649 </param>
6650 </method>
6651
6652 <method name="discardCurrentSnapshotAndState">
6653 <desc>
6654
6655 This method is equivalent to
6656 doing <link to="IConsole::discardSnapshot">discardSnapshot</link>
6657 (currentSnapshot.id(), progress) followed by
6658 <link to="IConsole::discardCurrentState"/>.
6659
6660 As a result, the machine will be fully restored from the
6661 snapshot preceding the current snapshot, while both the current
6662 snapshot and the current machine state will be discarded.
6663
6664 If the current snapshot is the first snapshot of the machine (i.e. it
6665 has the only snapshot), the current machine state will be
6666 discarded <b>before</b> discarding the snapshot. In other words, the
6667 machine will be restored from its last snapshot, before discarding
6668 it. This differs from performing a single
6669 <link to="IConsole::discardSnapshot"/> call (note that no
6670 <link to="IConsole::discardCurrentState"/> will be possible after it)
6671 to the effect that the latter will preserve the current state instead of
6672 discarding it.
6673
6674 Unless explicitly mentioned otherwise, all remarks and
6675 limitations of the above two methods also apply to this method.
6676
6677 <note>
6678 The machine must not be running, otherwise the operation
6679 will fail.
6680 </note>
6681
6682 <note>
6683 If the machine state is <link to="MachineState_Saved">Saved</link>
6684 prior to this operation, the saved state file will be implicitly
6685 discarded (as if <link to="#discardSavedState"/> were
6686 called).
6687 </note>
6688
6689 <note>
6690 This method is more efficient than calling both of the above
6691 methods separately: it requires less IPC calls and provides
6692 a single progress object.
6693 </note>
6694
6695 <result name="VBOX_E_INVALID_VM_STATE">
6696 Virtual machine is running.
6697 </result>
6698 </desc>
6699 <param name="progress" type="IProgress" dir="return">
6700 <desc>Progress object to track the operation completion.</desc>
6701 </param>
6702 </method>
6703
6704 <method name="registerCallback">
6705 <desc>
6706 Registers a new console callback on this instance. The methods of the
6707 callback interface will be called by this instance when the appropriate
6708 event occurs.
6709 </desc>
6710 <param name="callback" type="IConsoleCallback" dir="in"/>
6711 </method>
6712
6713 <method name="unregisterCallback">
6714 <desc>
6715 Unregisters the console callback previously registered using
6716 <link to="#registerCallback"/>.
6717 <result name="E_INVALIDARG">
6718 Given @a callback handler is not registered.
6719 </result>
6720 </desc>
6721 <param name="callback" type="IConsoleCallback" dir="in"/>
6722 </method>
6723 </interface>
6724
6725 <!--
6726 // IHost
6727 /////////////////////////////////////////////////////////////////////////
6728 -->
6729
6730 <interface
6731 name="IHostDVDDrive" extends="$unknown"
6732 uuid="21f86694-202d-4ce4-8b05-a63ff82dbf4c"
6733 wsmap="managed"
6734 >
6735 <desc>
6736 The IHostDVDDrive interface represents the physical CD/DVD drive
6737 hardware on the host. Used indirectly in <link to="IHost::DVDDrives"/>.
6738 </desc>
6739
6740 <attribute name="name" type="wstring" readonly="yes">
6741 <desc>
6742 Returns the platform-specific device identifier.
6743 On DOS-like platforms, it is a drive name (e.g. R:).
6744 On Unix-like platforms, it is a device name (e.g. /dev/hdc).
6745 </desc>
6746 </attribute>
6747 <attribute name="description" type="wstring" readonly="yes">
6748 <desc>
6749 Returns a human readable description for the drive. This
6750 description usually contains the product and vendor name. A
6751 @c null string is returned if the description is not available.
6752 </desc>
6753 </attribute>
6754 <attribute name="udi" type="wstring" readonly="yes">
6755 <desc>
6756 Returns the unique device identifier for the drive. This
6757 attribute is reserved for future use instead of
6758 <link to="#name"/>. Currently it is not used and may return
6759 @c null on some platforms.
6760 </desc>
6761 </attribute>
6762
6763 </interface>
6764
6765 <interface
6766 name="IHostFloppyDrive" extends="$unknown"
6767 uuid="3f02d604-e908-4919-9fd1-8a4afd68fc63"
6768 wsmap="managed"
6769 >
6770 <desc>
6771 The IHostFloppyDrive interface represents the physical floppy drive
6772 hardware on the host. Used indirectly in <link to="IHost::floppyDrives"/>.
6773 </desc>
6774 <attribute name="name" type="wstring" readonly="yes">
6775 <desc>
6776 Returns the platform-specific device identifier.
6777 On DOS-like platforms, it is a drive name (e.g. A:).
6778 On Unix-like platforms, it is a device name (e.g. /dev/fd0).
6779 </desc>
6780 </attribute>
6781 <attribute name="description" type="wstring" readonly="yes">
6782 <desc>
6783 Returns a human readable description for the drive. This
6784 description usually contains the product and vendor name. A
6785 @c null string is returned if the description is not available.
6786 </desc>
6787 </attribute>
6788 <attribute name="udi" type="wstring" readonly="yes">
6789 <desc>
6790 Returns the unique device identifier for the drive. This
6791 attribute is reserved for future use instead of
6792 <link to="#name"/>. Currently it is not used and may return
6793 @c null on some platforms.
6794 </desc>
6795 </attribute>
6796 </interface>
6797
6798 <enum
6799 name="HostNetworkInterfaceMediumType"
6800 uuid="1aa54aaf-2497-45a2-bfb1-8eb225e93d5b"
6801 >
6802 <desc>
6803 Type of encapsulation. Ethernet encapsulation includes both wired and
6804 wireless Ethernet connections.
6805 <see>IHostNetworkInterface</see>
6806 </desc>
6807
6808 <const name="Unknown" value="0">
6809 <desc>
6810 The type of interface cannot be determined.
6811 </desc>
6812 </const>
6813 <const name="Ethernet" value="1">
6814 <desc>
6815 Ethernet frame encapsulation.
6816 </desc>
6817 </const>
6818 <const name="PPP" value="2">
6819 <desc>
6820 Point-to-point protocol encapsulation.
6821 </desc>
6822 </const>
6823 <const name="SLIP" value="3">
6824 <desc>
6825 Serial line IP encapsulation.
6826 </desc>
6827 </const>
6828 </enum>
6829
6830 <enum
6831 name="HostNetworkInterfaceStatus"
6832 uuid="CC474A69-2710-434B-8D99-C38E5D5A6F41"
6833 >
6834 <desc>
6835 Current status of the interface.
6836 <see>IHostNetworkInterface</see>
6837 </desc>
6838
6839 <const name="Unknown" value="0">
6840 <desc>
6841 The state of interface cannot be determined.
6842 </desc>
6843 </const>
6844 <const name="Up" value="1">
6845 <desc>
6846 The interface is fully operational.
6847 </desc>
6848 </const>
6849 <const name="Down" value="2">
6850 <desc>
6851 The interface is not functioning.
6852 </desc>
6853 </const>
6854 </enum>
6855
6856 <enum
6857 name="HostNetworkInterfaceType"
6858 uuid="67431b00-9946-48a2-bc02-b25c5919f4f3"
6859 >
6860 <desc>
6861 Network interface type.
6862 </desc>
6863 <const name="Bridged" value="1"/>
6864 <const name="HostOnly" value="2"/>
6865 </enum>
6866
6867 <interface
6868 name="IHostNetworkInterface" extends="$unknown"
6869 uuid="ce6fae58-7642-4102-b5db-c9005c2320a8"
6870 wsmap="managed"
6871 >
6872 <desc>
6873 Reprents one of host's network interfaces. IP V6 address and network
6874 mask are strings of 32 hexdecimal digits grouped by four. Groups are
6875 separated by colons.
6876 For example, fe80:0000:0000:0000:021e:c2ff:fed2:b030.
6877 </desc>
6878 <attribute name="name" type="wstring" readonly="yes">
6879 <desc>Returns the host network interface name.</desc>
6880 </attribute>
6881
6882 <attribute name="id" type="wstring" readonly="yes">
6883 <desc>Returns the interface UUID.</desc>
6884 </attribute>
6885
6886 <attribute name="networkName" type="wstring" readonly="yes">
6887 <desc>Returns the name of a virtual network the interface gets attached to.</desc>
6888 </attribute>
6889
6890 <attribute name="dhcpEnabled" type="boolean" readonly="yes">
6891 <desc>Specifies whether the DHCP is enabled for the interface.</desc>
6892 </attribute>
6893
6894 <attribute name="IPAddress" type="wstring" readonly="yes">
6895 <desc>Returns the IP V4 address of the interface.</desc>
6896 </attribute>
6897
6898 <attribute name="networkMask" type="wstring" readonly="yes">
6899 <desc>Returns the network mask of the interface.</desc>
6900 </attribute>
6901
6902 <attribute name="IPV6Supported" type="boolean" readonly="yes">
6903 <desc>Specifies whether the IP V6 is supported/enabled for the interface.</desc>
6904 </attribute>
6905
6906 <attribute name="IPV6Address" type="wstring" readonly="yes">
6907 <desc>Returns the IP V6 address of the interface.</desc>
6908 </attribute>
6909
6910 <attribute name="IPV6NetworkMaskPrefixLength" type="unsigned long" readonly="yes">
6911 <desc>Returns the length IP V6 network mask prefix of the interface.</desc>
6912 </attribute>
6913
6914 <attribute name="hardwareAddress" type="wstring" readonly="yes">
6915 <desc>Returns the hardware address. For Ethernet it is MAC address.</desc>
6916 </attribute>
6917
6918 <attribute name="mediumType" type="HostNetworkInterfaceMediumType" readonly="yes">
6919 <desc>Type of protocol encapsulation used.</desc>
6920 </attribute>
6921
6922 <attribute name="status" type="HostNetworkInterfaceStatus" readonly="yes">
6923 <desc>Status of the interface.</desc>
6924 </attribute>
6925
6926 <attribute name="interfaceType" type="HostNetworkInterfaceType" readonly="yes">
6927 <desc>specifies the host interface type.</desc>
6928 </attribute>
6929
6930 <method name="enableStaticIpConfig">
6931 <desc>sets and enables the static IP V4 configuration for the given interface.</desc>
6932 <param name="IPAddress" type="wstring" dir="in">
6933 <desc>
6934 IP address.
6935 </desc>
6936 </param>
6937 <param name="networkMask" type="wstring" dir="in">
6938 <desc>
6939 network mask.
6940 </desc>
6941 </param>
6942 </method>
6943
6944 <method name="enableStaticIpConfigV6">
6945 <desc>sets and enables the static IP V6 configuration for the given interface.</desc>
6946 <param name="IPV6Address" type="wstring" dir="in">
6947 <desc>
6948 IP address.
6949 </desc>
6950 </param>
6951 <param name="IPV6NetworkMaskPrefixLength" type="unsigned long" dir="in">
6952 <desc>
6953 network mask.
6954 </desc>
6955 </param>
6956 </method>
6957
6958 <method name="enableDynamicIpConfig">
6959 <desc>enables the dynamic IP configuration.</desc>
6960 </method>
6961
6962 <method name="dhcpRediscover">
6963 <desc>refreshes the IP configuration for dhcp-enabled interface.</desc>
6964 </method>
6965
6966 </interface>
6967
6968 <interface
6969 name="IHost" extends="$unknown"
6970 uuid="a13b5556-5c0b-4f80-9df6-6f804f3336a1"
6971 wsmap="managed"
6972 >
6973 <desc>
6974 The IHost interface represents the physical machine that this VirtualBox
6975 installation runs on.
6976
6977 An object implementing this interface is returned by the
6978 <link to="IVirtualBox::host" /> attribute. This interface contains
6979 read-only information about the host's physical hardware (such as what
6980 processors and disks are available, what the host operating system is,
6981 and so on) and also allows for manipulating some of the host's hardware,
6982 such as global USB device filters and host interface networking.
6983
6984 </desc>
6985 <attribute name="DVDDrives" type="IHostDVDDrive" readonly="yes" safearray="yes">
6986 <desc>List of DVD drives available on the host.</desc>
6987 </attribute>
6988
6989 <attribute name="floppyDrives" type="IHostFloppyDrive" readonly="yes" safearray="yes">
6990 <desc>List of floppy drives available on the host.</desc>
6991 </attribute>
6992
6993 <attribute name="USBDevices" type="IHostUSBDevice" readonly="yes" safearray="yes">
6994 <desc>
6995 List of USB devices currently attached to the host.
6996 Once a new device is physically attached to the host computer,
6997 it appears in this list and remains there until detached.
6998
6999 <note>
7000 If USB functionality is not available in the given edition of
7001 VirtualBox, this method will set the result code to @c E_NOTIMPL.
7002 </note>
7003 </desc>
7004 </attribute>
7005
7006 <attribute name="USBDeviceFilters" type="IHostUSBDeviceFilter" readonly="yes" safearray="yes">
7007 <desc>
7008 List of USB device filters in action.
7009 When a new device is physically attached to the host computer,
7010 filters from this list are applied to it (in order they are stored
7011 in the list). The first matched filter will determine the
7012 <link to="IHostUSBDeviceFilter::action">action</link>
7013 performed on the device.
7014
7015 Unless the device is ignored by these filters, filters of all
7016 currently running virtual machines
7017 (<link to="IUSBController::deviceFilters"/>) are applied to it.
7018
7019 <note>
7020 If USB functionality is not available in the given edition of
7021 VirtualBox, this method will set the result code to @c E_NOTIMPL.
7022 </note>
7023
7024 <see>IHostUSBDeviceFilter, USBDeviceState</see>
7025 </desc>
7026 </attribute>
7027
7028 <attribute name="networkInterfaces" type="IHostNetworkInterface" safearray="yes" readonly="yes">
7029 <desc>List of host network interfaces currently defined on the host.</desc>
7030 </attribute>
7031
7032 <attribute name="processorCount" type="unsigned long" readonly="yes">
7033 <desc>Number of (logical) CPUs installed in the host system.</desc>
7034 </attribute>
7035
7036 <attribute name="processorOnlineCount" type="unsigned long" readonly="yes">
7037 <desc>Number of (logical) CPUs online in the host system.</desc>
7038 </attribute>
7039
7040 <method name="getProcessorSpeed">
7041 <desc>Query the (approximate) maximum speed of a specified host CPU in
7042 Megahertz.
7043 </desc>
7044 <param name="cpuId" type="unsigned long" dir="in">
7045 <desc>
7046 Identifier of the CPU.
7047 </desc>
7048 </param>
7049 <param name="speed" type="unsigned long" dir="return">
7050 <desc>
7051 Speed value. 0 is returned if value is not known or @a cpuId is
7052 invalid.
7053 </desc>
7054 </param>
7055 </method>
7056
7057 <method name="getProcessorFeature">
7058 <desc>Query whether a CPU feature is supported or not.</desc>
7059 <param name="feature" type="ProcessorFeature" dir="in">
7060 <desc>
7061 CPU Feature identifier.
7062 </desc>
7063 </param>
7064 <param name="supported" type="boolean" dir="return">
7065 <desc>
7066 Feature is supported or not.
7067 </desc>
7068 </param>
7069 </method>
7070
7071 <method name="getProcessorDescription">
7072 <desc>Query the model string of a specified host CPU.
7073 <note>
7074 This function is not implemented in the current version of the
7075 product.
7076 </note>
7077 </desc>
7078 <param name="cpuId" type="unsigned long" dir="in">
7079 <desc>
7080 Identifier of the CPU.
7081 </desc>
7082 </param>
7083 <param name="description" type="wstring" dir="return">
7084 <desc>
7085 Model string. A NULL string is returned if value is not known or
7086 @a cpuId is invalid.
7087 </desc>
7088 </param>
7089 </method>
7090
7091 <attribute name="memorySize" type="unsigned long" readonly="yes">
7092 <desc>Amount of system memory in megabytes installed in the host system.</desc>
7093 </attribute>
7094
7095 <attribute name="memoryAvailable" type="unsigned long" readonly="yes">
7096 <desc>Available system memory in the host system.</desc>
7097 </attribute>
7098
7099 <attribute name="operatingSystem" type="wstring" readonly="yes">
7100 <desc>Name of the host system's operating system.</desc>
7101 </attribute>
7102
7103 <attribute name="OSVersion" type="wstring" readonly="yes">
7104 <desc>Host operating system's version string.</desc>
7105 </attribute>
7106
7107 <attribute name="UTCTime" type="long long" readonly="yes">
7108 <desc>Returns the current host time in milliseconds since 1970-01-01 UTC.</desc>
7109 </attribute>
7110
7111 <attribute name="Acceleration3DAvailable" type="boolean" readonly="yes">
7112 <desc>Returns true when the host supports 3D hardware acceleration.</desc>
7113 </attribute>
7114
7115 <method name="createHostOnlyNetworkInterface">
7116 <desc>
7117 Creates a new adapter for Host Only Networking.
7118 <result name="E_INVALIDARG">
7119 Host network interface @a name already exists.
7120 </result>
7121 </desc>
7122 <param name="hostInterface" type="IHostNetworkInterface" dir="out">
7123 <desc>
7124 Created host interface object.
7125 </desc>
7126 </param>
7127 <param name="progress" type="IProgress" dir="return">
7128 <desc>
7129 Progress object to track the operation completion.
7130 </desc>
7131 </param>
7132 </method>
7133
7134 <method name="removeHostOnlyNetworkInterface">
7135 <desc>
7136 Removes the given Host Only Networking interface.
7137 <result name="VBOX_E_OBJECT_NOT_FOUND">
7138 No host network interface matching @a id found.
7139 </result>
7140 </desc>
7141 <param name="id" type="wstring" dir="in">
7142 <desc>
7143 Adapter GUID.
7144 </desc>
7145 </param>
7146 <param name="hostInterface" type="IHostNetworkInterface" dir="out">
7147 <desc>
7148 Removed host interface object.
7149 </desc>
7150 </param>
7151 <param name="progress" type="IProgress" dir="return">
7152 <desc>
7153 Progress object to track the operation completion.
7154 </desc>
7155 </param>
7156 </method>
7157
7158 <method name="createUSBDeviceFilter">
7159 <desc>
7160 Creates a new USB device filter. All attributes except
7161 the filter name are set to <tt>null</tt> (any match),
7162 <i>active</i> is <tt>false</tt> (the filter is not active).
7163
7164 The created filter can be added to the list of filters using
7165 <link to="#insertUSBDeviceFilter"/>.
7166
7167 <see>#USBDeviceFilters</see>
7168 </desc>
7169 <param name="name" type="wstring" dir="in">
7170 <desc>
7171 Filter name. See <link to="IHostUSBDeviceFilter::name"/>
7172 for more info.
7173 </desc>
7174 </param>
7175 <param name="filter" type="IHostUSBDeviceFilter" dir="return">
7176 <desc>Created filter object.</desc>
7177 </param>
7178 </method>
7179
7180 <method name="insertUSBDeviceFilter">
7181 <desc>
7182 Inserts the given USB device to the specified position
7183 in the list of filters.
7184
7185 Positions are numbered starting from <tt>0</tt>. If the specified
7186 position is equal to or greater than the number of elements in
7187 the list, the filter is added at the end of the collection.
7188
7189 <note>
7190 Duplicates are not allowed, so an attempt to insert a
7191 filter already in the list is an error.
7192 </note>
7193 <note>
7194 If USB functionality is not available in the given edition of
7195 VirtualBox, this method will set the result code to @c E_NOTIMPL.
7196 </note>
7197
7198 <see>#USBDeviceFilters</see>
7199
7200 <result name="VBOX_E_INVALID_OBJECT_STATE">
7201 USB device filter is not created within this VirtualBox instance.
7202 </result>
7203 <result name="E_INVALIDARG">
7204 USB device filter already in list.
7205 </result>
7206
7207 </desc>
7208 <param name="position" type="unsigned long" dir="in">
7209 <desc>Position to insert the filter to.</desc>
7210 </param>
7211 <param name="filter" type="IHostUSBDeviceFilter" dir="in">
7212 <desc>USB device filter to insert.</desc>
7213 </param>
7214 </method>
7215
7216 <method name="removeUSBDeviceFilter">
7217 <desc>
7218 Removes a USB device filter from the specified position in the
7219 list of filters.
7220
7221 Positions are numbered starting from <tt>0</tt>. Specifying a
7222 position equal to or greater than the number of elements in
7223 the list will produce an error.
7224
7225 <note>
7226 If USB functionality is not available in the given edition of
7227 VirtualBox, this method will set the result code to @c E_NOTIMPL.
7228 </note>
7229
7230 <see>#USBDeviceFilters</see>
7231
7232 <result name="E_INVALIDARG">
7233 USB device filter list empty or invalid @a position.
7234 </result>
7235
7236 </desc>
7237 <param name="position" type="unsigned long" dir="in">
7238 <desc>Position to remove the filter from.</desc>
7239 </param>
7240 <param name="filter" type="IHostUSBDeviceFilter" dir="return">
7241 <desc>Removed USB device filter.</desc>
7242 </param>
7243 </method>
7244
7245 <method name="findHostDVDDrive">
7246 <desc>
7247 Searches for a host DVD drive with the given @c name.
7248
7249 <result name="VBOX_E_OBJECT_NOT_FOUND">
7250 Given @c name does not correspond to any host drive.
7251 </result>
7252
7253 </desc>
7254 <param name="name" type="wstring" dir="in">
7255 <desc>Name of the host drive to search for</desc>
7256 </param>
7257 <param name="drive" type="IHostDVDDrive" dir="return">
7258 <desc>Found host drive object</desc>
7259 </param>
7260 </method>
7261
7262 <method name="findHostFloppyDrive">
7263 <desc>
7264 Searches for a host floppy drive with the given @c name.
7265
7266 <result name="VBOX_E_OBJECT_NOT_FOUND">
7267 Given @c name does not correspond to any host floppy drive.
7268 </result>
7269
7270 </desc>
7271 <param name="name" type="wstring" dir="in">
7272 <desc>Name of the host floppy drive to search for</desc>
7273 </param>
7274 <param name="drive" type="IHostFloppyDrive" dir="return">
7275 <desc>Found host floppy drive object</desc>
7276 </param>
7277 </method>
7278
7279 <method name="findHostNetworkInterfaceByName">
7280 <desc>
7281 Searches through all host network interfaces for an interface with
7282 the given @c name.
7283 <note>
7284 The method returns an error if the given @c name does not
7285 correspond to any host network interface.
7286 </note>
7287 </desc>
7288 <param name="name" type="wstring" dir="in">
7289 <desc>Name of the host network interface to search for.</desc>
7290 </param>
7291 <param name="networkInterface" type="IHostNetworkInterface" dir="return">
7292 <desc>Found host network interface object.</desc>
7293 </param>
7294 </method>
7295 <method name="findHostNetworkInterfaceById">
7296 <desc>
7297 Searches through all host network interfaces for an interface with
7298 the given GUID.
7299 <note>
7300 The method returns an error if the given GUID does not
7301 correspond to any host network interface.
7302 </note>
7303 </desc>
7304 <param name="id" type="wstring" dir="in">
7305 <desc>GUID of the host network interface to search for.</desc>
7306 </param>
7307 <param name="networkInterface" type="IHostNetworkInterface" dir="return">
7308 <desc>Found host network interface object.</desc>
7309 </param>
7310 </method>
7311 <method name="findHostNetworkInterfacesOfType">
7312 <desc>
7313 Searches through all host network interfaces and returns a list of interfaces of the specified type
7314 </desc>
7315 <param name="type" type="HostNetworkInterfaceType" dir="in">
7316 <desc>type of the host network interfaces to search for.</desc>
7317 </param>
7318 <param name="networkInterfaces" type="IHostNetworkInterface" safearray="yes" dir="return">
7319 <desc>Found host network interface objects.</desc>
7320 </param>
7321 </method>
7322
7323 <method name="findUSBDeviceById">
7324 <desc>
7325 Searches for a USB device with the given UUID.
7326
7327 <result name="VBOX_E_OBJECT_NOT_FOUND">
7328 Given @c id does not correspond to any USB device.
7329 </result>
7330
7331 <see>IHostUSBDevice::id</see>
7332 </desc>
7333 <param name="id" type="wstring" dir="in">
7334 <desc>UUID of the USB device to search for.</desc>
7335 </param>
7336 <param name="device" type="IHostUSBDevice" dir="return">
7337 <desc>Found USB device object.</desc>
7338 </param>
7339 </method>
7340
7341 <method name="findUSBDeviceByAddress">
7342 <desc>
7343 Searches for a USB device with the given host address.
7344
7345 <result name="VBOX_E_OBJECT_NOT_FOUND">
7346 Given @c name does not correspond to any USB device.
7347 </result>
7348
7349 <see>IHostUSBDevice::address</see>
7350 </desc>
7351 <param name="name" type="wstring" dir="in">
7352 <desc>
7353 Address of the USB device (as assigned by the host) to
7354 search for.
7355 </desc>
7356 </param>
7357 <param name="device" type="IHostUSBDevice" dir="return">
7358 <desc>Found USB device object.</desc>
7359 </param>
7360 </method>
7361
7362 </interface>
7363
7364 <!--
7365 // ISystemProperties
7366 /////////////////////////////////////////////////////////////////////////
7367 -->
7368
7369 <interface
7370 name="ISystemProperties"
7371 extends="$unknown"
7372 uuid="0760e03f-06d0-481e-9f81-be43fef092ba"
7373 wsmap="managed"
7374 >
7375 <desc>
7376 The ISystemProperties interface represents global properties of the given
7377 VirtualBox installation.
7378
7379 These properties define limits and default values for various attributes
7380 and parameters. Most of the properties are read-only, but some can be
7381 changed by a user.
7382 </desc>
7383
7384 <attribute name="minGuestRAM" type="unsigned long" readonly="yes">
7385 <desc>Minimum guest system memory in Megabytes.</desc>
7386 </attribute>
7387
7388 <attribute name="maxGuestRAM" type="unsigned long" readonly="yes">
7389 <desc>Maximum guest system memory in Megabytes.</desc>
7390 </attribute>
7391
7392 <attribute name="minGuestVRAM" type="unsigned long" readonly="yes">
7393 <desc>Minimum guest video memory in Megabytes.</desc>
7394 </attribute>
7395
7396 <attribute name="maxGuestVRAM" type="unsigned long" readonly="yes">
7397 <desc>Maximum guest video memory in Megabytes.</desc>
7398 </attribute>
7399
7400 <attribute name="minGuestCPUCount" type="unsigned long" readonly="yes">
7401 <desc>Minimum CPU count.</desc>
7402 </attribute>
7403
7404 <attribute name="maxGuestCPUCount" type="unsigned long" readonly="yes">
7405 <desc>Maximum CPU count.</desc>
7406 </attribute>
7407
7408 <attribute name="maxVDISize" type="unsigned long long" readonly="yes">
7409 <desc>Maximum size of a virtual disk image in Megabytes.</desc>
7410 </attribute>
7411
7412 <attribute name="networkAdapterCount" type="unsigned long" readonly="yes">
7413 <desc>
7414 Number of network adapters associated with every
7415 <link to="IMachine"/> instance.
7416 </desc>
7417 </attribute>
7418
7419 <attribute name="serialPortCount" type="unsigned long" readonly="yes">
7420 <desc>
7421 Number of serial ports associated with every
7422 <link to="IMachine"/> instance.
7423 </desc>
7424 </attribute>
7425
7426 <attribute name="parallelPortCount" type="unsigned long" readonly="yes">
7427 <desc>
7428 Number of parallel ports associated with every
7429 <link to="IMachine"/> instance.
7430 </desc>
7431 </attribute>
7432
7433 <attribute name="maxBootPosition" type="unsigned long" readonly="yes">
7434 <desc>
7435 Maximum device position in the boot order. This value corresponds
7436 to the total number of devices a machine can boot from, to make it
7437 possible to include all possible devices to the boot list.
7438 <see><link to="IMachine::setBootOrder"/></see>
7439 </desc>
7440 </attribute>
7441
7442 <attribute name="defaultMachineFolder" type="wstring">
7443 <desc>
7444 Full path to the default directory used to create new or open
7445 existing machines when a settings file name contains no
7446 path.
7447
7448 The initial value of this property is
7449 <tt>&lt;</tt><link to="IVirtualBox::homeFolder">
7450 VirtualBox_home</link><tt>&gt;/Machines</tt>.
7451
7452 <note>
7453 Setting this property to <tt>null</tt> will restore the
7454 initial value.
7455 </note>
7456 <note>
7457 When settings this property, the specified path can be
7458 absolute (full path) or relative
7459 to the <link to="IVirtualBox::homeFolder">
7460 VirtualBox home directory</link>.
7461 When reading this property, a full path is
7462 always returned.
7463 </note>
7464 <note>
7465 The specified path may not exist, it will be created
7466 when necessary.
7467 </note>
7468
7469 <see>
7470 <link to="IVirtualBox::createMachine"/>,
7471 <link to="IVirtualBox::openMachine"/>
7472 </see>
7473 </desc>
7474 </attribute>
7475
7476 <attribute name="defaultHardDiskFolder" type="wstring">
7477 <desc>
7478 Full path to the default directory used to create new or open existing
7479 virtual disks.
7480
7481 This path is used when the storage unit of a hard disk is a regular file
7482 in the host's file system and only a file name that contains no path is
7483 given.
7484
7485 The initial value of this property is
7486 <tt>&lt;</tt>
7487 <link to="IVirtualBox::homeFolder">VirtualBox_home</link>
7488 <tt>&gt;/HardDisks</tt>.
7489
7490 <note>
7491 Setting this property to <tt>null</tt> will restore the
7492 initial value.
7493 </note>
7494 <note>
7495 When settings this property, the specified path can be relative
7496 to the
7497 <link to="IVirtualBox::homeFolder">VirtualBox home directory</link> or
7498 absolute. When reading this property, a full path is
7499 always returned.
7500 </note>
7501 <note>
7502 The specified path may not exist, it will be created
7503 when necessary.
7504 </note>
7505
7506 <see>
7507 IHardDisk,
7508 <link to="IVirtualBox::createHardDisk"/>,
7509 <link to="IVirtualBox::openHardDisk"/>,
7510 <link to="IMedium::location"/>
7511 </see>
7512 </desc>
7513 </attribute>
7514
7515 <attribute name="hardDiskFormats" type="IHardDiskFormat" safearray="yes" readonly="yes">
7516 <desc>
7517 List of all hard disk storage formats supported by this VirtualBox
7518 installation.
7519
7520 Keep in mind that the hard disk format identifier
7521 (<link to="IHardDiskFormat::id"/>) used in other API calls like
7522 <link to="IVirtualBox::createHardDisk"/> to refer to a particular
7523 hard disk format is a case-insensitive string. This means that, for
7524 example, all of the following strings:
7525 <pre>
7526 "VDI"
7527 "vdi"
7528 "VdI"</pre>
7529 refer to the same hard disk format.
7530
7531 Note that the virtual hard disk framework is backend-based, therefore
7532 the list of supported formats depends on what backends are currently
7533 installed.
7534
7535 <see>
7536 <link to="IHardDiskFormat"/>,
7537 </see>
7538 </desc>
7539 </attribute>
7540
7541 <attribute name="defaultHardDiskFormat" type="wstring">
7542 <desc>
7543 Identifier of the default hard disk format used by VirtualBox.
7544
7545 The hard disk format set by this attribute is used by VirtualBox
7546 when the hard disk format was not specified explicitly. One example is
7547 <link to="IVirtualBox::createHardDisk"/> with the <tt>null</tt>
7548 format argument. A more complex example is implicit creation of
7549 differencing hard disks when taking a snapshot of a virtual machine:
7550 this operation will try to use a format of the parent hard disk first
7551 and if this format does not support differencing hard disks the default
7552 format specified by this argument will be used.
7553
7554 The list of supported hard disk formats may be obtained by the
7555 <link to="#hardDiskFormats"/> call. Note that the default hard disk
7556 format must have a capability to create differencing hard disks;
7557 otherwise opeartions that create hard disks implicitly may fail
7558 unexpectedly.
7559
7560 The initial value of this property is <tt>VDI</tt> in the current
7561 version of the VirtualBox product, but may change in the future.
7562
7563 <note>
7564 Setting this property to <tt>null</tt> will restore the
7565 initial value.
7566 </note>
7567
7568 <see>
7569 <link to="#hardDiskFormats"/>,
7570 <link to="IHardDiskFormat::id"/>,
7571 <link to="IVirtualBox::createHardDisk"/>
7572 </see>
7573 </desc>
7574 </attribute>
7575
7576 <attribute name="remoteDisplayAuthLibrary" type="wstring">
7577 <desc>
7578 Library that provides authentication for VRDP clients. The library
7579 is used if a virtual machine's authentication type is set to "external"
7580 in the VM RemoteDisplay configuration.
7581
7582 The system library extension (".DLL" or ".so") must be omitted.
7583 A full path can be specified; if not, then the library must reside on the
7584 system's default library path.
7585
7586 The default value of this property is <tt>VRDPAuth</tt>. There is a library
7587 of that name in one of the default VirtualBox library directories.
7588
7589 For details about VirtualBox authentication libraries and how to implement
7590 them, please refer to the VirtualBox manual.
7591
7592 <note>
7593 Setting this property to <tt>null</tt> will restore the
7594 initial value.
7595 </note>
7596 </desc>
7597 </attribute>
7598
7599 <attribute name="webServiceAuthLibrary" type="wstring">
7600 <desc>
7601 Library that provides authentication for webservice clients. The library
7602 is used if a virtual machine's authentication type is set to "external"
7603 in the VM RemoteDisplay configuration and will be called from
7604 within the <link to="IWebsessionManager::logon" /> implementation.
7605
7606 As opposed to <link to="ISystemProperties::remoteDisplayAuthLibrary" />,
7607 there is no per-VM setting for this, as the webservice is a global
7608 resource (if it is running). Only for this setting (for the webservice),
7609 setting this value to a literal "null" string disables authentication,
7610 meaning that <link to="IWebsessionManager::logon" /> will always succeed,
7611 no matter what user name and password are supplied.
7612
7613 The initial value of this property is <tt>VRDPAuth</tt>,
7614 meaning that the webservice will use the same authentication
7615 library that is used by default for VBoxVRDP (again, see
7616 <link to="ISystemProperties::remoteDisplayAuthLibrary" />).
7617 The format and calling convention of authentication libraries
7618 is the same for the webservice as it is for VBoxVRDP.
7619
7620 </desc>
7621 </attribute>
7622
7623 <attribute name="HWVirtExEnabled" type="boolean">
7624 <desc>
7625 This specifies the default value for hardware virtualization
7626 extensions. If enabled, virtual machines will make use of
7627 hardware virtualization extensions such as Intel VT-x and
7628 AMD-V by default. This value can be overridden by each VM
7629 using their <link to="IMachine::HWVirtExEnabled" /> property.
7630 </desc>
7631 </attribute>
7632
7633 <attribute name="LogHistoryCount" type="unsigned long">
7634 <desc>
7635 This value specifies how many old release log files are kept.
7636 </desc>
7637 </attribute>
7638 </interface>
7639
7640 <!--
7641 // IGuest
7642 /////////////////////////////////////////////////////////////////////////
7643 -->
7644
7645 <interface
7646 name="IGuestOSType" extends="$unknown"
7647 uuid="cfe9e64c-4430-435b-9e7c-e3d8e417bd58"
7648 wsmap="struct"
7649 >
7650 <desc>
7651 </desc>
7652
7653 <attribute name="familyId" type="wstring" readonly="yes">
7654 <desc>Guest OS family identifier string.</desc>
7655 </attribute>
7656
7657 <attribute name="familyDescription" type="wstring" readonly="yes">
7658 <desc>Human readable description of the guest OS family.</desc>
7659 </attribute>
7660
7661 <attribute name="id" type="wstring" readonly="yes">
7662 <desc>Guest OS identifier string.</desc>
7663 </attribute>
7664
7665 <attribute name="description" type="wstring" readonly="yes">
7666 <desc>Human readable description of the guest OS.</desc>
7667 </attribute>
7668
7669 <attribute name="is64Bit" type="boolean" readonly="yes">
7670 <desc>Returns @c true if the given OS is 64-bit</desc>
7671 </attribute>
7672
7673 <attribute name="recommendedIOAPIC" type="boolean" readonly="yes">
7674 <desc>Returns @c true if IO APIC recommended for this OS type.</desc>
7675 </attribute>
7676
7677 <attribute name="recommendedVirtEx" type="boolean" readonly="yes">
7678 <desc>Returns @c true if VT-x or AMD-V recommended for this OS type.</desc>
7679 </attribute>
7680
7681 <attribute name="recommendedRAM" type="unsigned long" readonly="yes">
7682 <desc>Recommended RAM size in Megabytes.</desc>
7683 </attribute>
7684
7685 <attribute name="recommendedVRAM" type="unsigned long" readonly="yes">
7686 <desc>Recommended video RAM size in Megabytes.</desc>
7687 </attribute>
7688
7689 <attribute name="recommendedHDD" type="unsigned long" readonly="yes">
7690 <desc>Recommended hard disk size in Megabytes.</desc>
7691 </attribute>
7692
7693 <attribute name="adapterType" type="NetworkAdapterType" readonly="yes">
7694 <desc>Returns recommended network adapter for this OS type.</desc>
7695 </attribute>
7696 </interface>
7697
7698 <interface
7699 name="IGuest" extends="$unknown"
7700 uuid="d8556fca-81bc-12af-fca3-365528fa38ca"
7701
7702 wsmap="suppress"
7703 >
7704 <desc>
7705 The IGuest interface represents information about the operating system
7706 running inside the virtual machine. Used in
7707 <link to="IConsole::guest"/>.
7708
7709 IGuest provides information about the guest operating system, whether
7710 Guest Additions are installed and other OS-specific virtual machine
7711 properties.
7712 </desc>
7713
7714 <attribute name="OSTypeId" type="wstring" readonly="yes">
7715 <desc>
7716 Identifier of the Guest OS type as reported by the Guest
7717 Additions.
7718 You may use <link to="IVirtualBox::getGuestOSType"/> to obtain
7719 an IGuestOSType object representing details about the given
7720 Guest OS type.
7721 <note>
7722 If Guest Additions are not installed, this value will be
7723 the same as <link to="IMachine::OSTypeId"/>.
7724 </note>
7725 </desc>
7726 </attribute>
7727
7728 <attribute name="additionsActive" type="boolean" readonly="yes">
7729 <desc>
7730 Flag whether the Guest Additions are installed and active
7731 in which case their version will be returned by the
7732 <link to="#additionsVersion"/> property.
7733 </desc>
7734 </attribute>
7735
7736 <attribute name="additionsVersion" type="wstring" readonly="yes">
7737 <desc>
7738 Version of the Guest Additions (3 decimal numbers separated
7739 by dots) or empty when the Additions are not installed. The
7740 Additions may also report a version but yet not be active as
7741 the version might be refused by VirtualBox (incompatible) or
7742 other failures occurred.
7743 </desc>
7744 </attribute>
7745
7746 <attribute name="supportsSeamless" type="boolean" readonly="yes">
7747 <desc>
7748 Flag whether seamless guest display rendering (seamless desktop
7749 integration) is supported.
7750 </desc>
7751 </attribute>
7752
7753 <attribute name="supportsGraphics" type="boolean" readonly="yes">
7754 <desc>
7755 Flag whether the guest is in graphics mode. If it is not, then
7756 seamless rendering will not work, resize hints are not immediately
7757 acted on and guest display resizes are probably not initiated by
7758 the guest additions.
7759 </desc>
7760 </attribute>
7761
7762 <attribute name="memoryBalloonSize" type="unsigned long">
7763 <desc>Guest system memory balloon size in megabytes.</desc>
7764 </attribute>
7765
7766 <attribute name="statisticsUpdateInterval" type="unsigned long">
7767 <desc>Interval to update guest statistics in seconds.</desc>
7768 </attribute>
7769
7770 <method name="setCredentials">
7771 <desc>
7772 Store login credentials that can be queried by guest operating
7773 systems with Additions installed. The credentials are transient
7774 to the session and the guest may also choose to erase them. Note
7775 that the caller cannot determine whether the guest operating system
7776 has queried or made use of the credentials.
7777
7778 <result name="VBOX_E_VM_ERROR">
7779 VMM device is not available.
7780 </result>
7781
7782 </desc>
7783 <param name="userName" type="wstring" dir="in">
7784 <desc>User name string, can be empty</desc>
7785 </param>
7786 <param name="password" type="wstring" dir="in">
7787 <desc>Password string, can be empty</desc>
7788 </param>
7789 <param name="domain" type="wstring" dir="in">
7790 <desc>Domain name (guest logon scheme specific), can be empty</desc>
7791 </param>
7792 <param name="allowInteractiveLogon" type="boolean" dir="in">
7793 <desc>
7794 Flag whether the guest should alternatively allow the user to
7795 interactively specify different credentials. This flag might
7796 not be supported by all versions of the Additions.
7797 </desc>
7798 </param>
7799 </method>
7800
7801 <method name="getStatistic">
7802 <desc>
7803 Query specified guest statistics as reported by the VirtualBox Additions.
7804 </desc>
7805 <param name="cpuId" type="unsigned long" dir="in">
7806 <desc>Virtual CPU id; not relevant for all statistic types</desc>
7807 </param>
7808 <param name="statistic" type="GuestStatisticType" dir="in">
7809 <desc>Statistic type.</desc>
7810 </param>
7811 <param name="statVal" type="unsigned long" dir="out">
7812 <desc>Statistics value</desc>
7813 </param>
7814 </method>
7815
7816 </interface>
7817
7818
7819 <!--
7820 // IProgress
7821 /////////////////////////////////////////////////////////////////////////
7822 -->
7823
7824 <interface
7825 name="IProgress" extends="$unknown"
7826 uuid="6fcd0198-7fc5-4c53-8c37-653ac76854b5"
7827 wsmap="managed"
7828 >
7829 <desc>
7830 The IProgress interface is used to track and control
7831 asynchronous tasks within VirtualBox.
7832
7833 An instance of this is returned every time VirtualBox starts
7834 an asynchronous task (in other words, a separate thread) which
7835 continues to run after a method call returns. For example,
7836 <link to="IConsole::saveState" />, which saves the state of
7837 a running virtual machine, can take a long time to complete.
7838 To be able to display a progress bar, a user interface such as
7839 the VirtualBox graphical user interface can use the IProgress
7840 object returned by that method.
7841
7842 Note that IProgress is a "read-only" interface in the sense
7843 that only the VirtualBox internals behind the Main API can
7844 create and manipulate progress objects, whereas client code
7845 can only use the IProgress object to monitor a task's
7846 progress and, if <link to="#cancelable" /> is true,
7847 cancel the task by calling <link to="#cancel" />.
7848
7849 A task represented by IProgress consists of either one or
7850 several sub-operations that run sequentially, one by one (see
7851 <link to="#operation" /> and <link to="#operationCount" />).
7852 Every operation is identified by a number (starting from 0)
7853 and has a separate description.
7854
7855 You can find the individual percentage of completion of the current
7856 operation in <link to="#operationPercent" /> and the
7857 percentage of completion of the task as a whole
7858 in <link to="#percent" />.
7859
7860 Similarly, you can wait for the completion of a particular
7861 operation via <link to="#waitForOperationCompletion" /> or
7862 for the completion of the whole task via
7863 <link to="#waitForCompletion" />.
7864 </desc>
7865
7866 <attribute name="id" type="wstring" readonly="yes">
7867 <desc>ID of the task.</desc>
7868 </attribute>
7869
7870 <attribute name="description" type="wstring" readonly="yes">
7871 <desc>Description of the task.</desc>
7872 </attribute>
7873
7874 <attribute name="initiator" type="$unknown" readonly="yes">
7875 <desc>Initiator of the task.</desc>
7876 </attribute>
7877
7878 <attribute name="cancelable" type="boolean" readonly="yes">
7879 <desc>Whether the task can be interrupted.</desc>
7880 </attribute>
7881
7882 <attribute name="percent" type="unsigned long" readonly="yes">
7883 <desc>
7884 Current progress value of the task as a whole, in percent.
7885 This value depends on how many operations are already complete.
7886 Returns 100 if <link to="#completed" /> is true.
7887 </desc>
7888 </attribute>
7889
7890 <attribute name="timeRemaining" type="long" readonly="yes">
7891 <desc>
7892 Estimated remaining time until the task completes, in
7893 seconds. Returns 0 once the task has completed; returns -1
7894 if the remaining time cannot be computed, in particular if
7895 the current progress is 0.
7896
7897 Even if a value is returned, the estimate will be unreliable
7898 for low progress values. It will become more reliable as the
7899 task progresses; it is not recommended to display an ETA
7900 before at least 20% of a task have completed.
7901 </desc>
7902 </attribute>
7903
7904 <attribute name="completed" type="boolean" readonly="yes">
7905 <desc>Whether the task has been completed.</desc>
7906 </attribute>
7907
7908 <attribute name="canceled" type="boolean" readonly="yes">
7909 <desc>Whether the task has been canceled.</desc>
7910 </attribute>
7911
7912 <attribute name="resultCode" type="long" readonly="yes">
7913 <desc>
7914 Result code of the progress task.
7915 Valid only if <link to="#completed"/> is true.
7916 </desc>
7917 </attribute>
7918
7919 <attribute name="errorInfo" type="IVirtualBoxErrorInfo" readonly="yes">
7920 <desc>
7921 Extended information about the unsuccessful result of the
7922 progress operation. May be NULL if no extended information
7923 is available.
7924 Valid only if <link to="#completed"/> is true and
7925 <link to="#resultCode"/> indicates a failure.
7926 </desc>
7927 </attribute>
7928
7929 <attribute name="operationCount" type="unsigned long" readonly="yes">
7930 <desc>
7931 Number of sub-operations this task is divided into.
7932 Every task consists of at least one suboperation.
7933 </desc>
7934 </attribute>
7935
7936 <attribute name="operation" type="unsigned long" readonly="yes">
7937 <desc>Number of the sub-operation being currently executed.</desc>
7938 </attribute>
7939
7940 <attribute name="operationDescription" type="wstring" readonly="yes">
7941 <desc>
7942 Description of the sub-operation being currently executed.
7943 </desc>
7944 </attribute>
7945
7946 <attribute name="operationPercent" type="unsigned long" readonly="yes">
7947 <desc>Progress value of the current sub-operation only, in percent.</desc>
7948 </attribute>
7949
7950 <method name="waitForCompletion">
7951 <desc>
7952 Waits until the task is done (including all sub-operations)
7953 with a given timeout in milliseconds; specify -1 for an indefinite wait.
7954
7955 <result name="VBOX_E_IPRT_ERROR">
7956 Failed to wait for task completion.
7957 </result>
7958 </desc>
7959
7960 <param name="timeout" type="long" dir="in">
7961 <desc>
7962 Maximum time in milliseconds to wait or -1 to wait indefinitely.
7963 </desc>
7964 </param>
7965 </method>
7966
7967 <method name="waitForOperationCompletion">
7968 <desc>
7969 Waits until the given operation is done with a given timeout in
7970 milliseconds; specify -1 for an indefinite wait.
7971
7972 <result name="VBOX_E_IPRT_ERROR">
7973 Failed to wait for operation completion.
7974 </result>
7975
7976 </desc>
7977 <param name="operation" type="unsigned long" dir="in">
7978 <desc>
7979 Number of the operation to wait for.
7980 Must be less than <link to="#operationCount"/>.
7981 </desc>
7982 </param>
7983 <param name="timeout" type="long" dir="in">
7984 <desc>
7985 Maximum time in milliseconds to wait or -1 to wait indefinitely.
7986 </desc>
7987 </param>
7988 </method>
7989
7990 <method name="cancel">
7991 <desc>
7992 Cancels the task.
7993 <note>
7994 If <link to="#cancelable"/> is <tt>false</tt>, then
7995 this method will fail.
7996 </note>
7997
7998 <result name="VBOX_E_INVALID_OBJECT_STATE">
7999 Operation cannot be canceled.
8000 </result>
8001
8002 </desc>
8003 </method>
8004
8005 </interface>
8006
8007
8008 <!--
8009 // ISnapshot
8010 /////////////////////////////////////////////////////////////////////////
8011 -->
8012
8013 <interface
8014 name="ISnapshot" extends="$unknown"
8015 uuid="1a2d0551-58a4-4107-857e-ef414fc42ffc"
8016 wsmap="managed"
8017 >
8018 <desc>
8019 The ISnapshot interface represents a snapshot of the virtual
8020 machine.
8021
8022 The <i>snapshot</i> stores all the information about a virtual
8023 machine necessary to bring it to exactly the same state as it was at
8024 the time of taking the snapshot. The snapshot includes:
8025
8026 <ul>
8027 <li>all settings of the virtual machine (i.e. its hardware
8028 configuration: RAM size, attached hard disks, etc.)
8029 </li>
8030 <li>the execution state of the virtual machine (memory contents,
8031 CPU state, etc.).
8032 </li>
8033 </ul>
8034
8035 Snapshots can be <i>offline</i> (taken when the VM is powered off)
8036 or <i>online</i> (taken when the VM is running). The execution
8037 state of the offline snapshot is called a <i>zero execution state</i>
8038 (it doesn't actually contain any information about memory contents
8039 or the CPU state, assuming that all hardware is just powered off).
8040
8041 <h3>Snapshot branches</h3>
8042
8043 Snapshots can be chained. Chained snapshots form a branch where
8044 every next snapshot is based on the previous one. This chaining is
8045 mostly related to hard disk branching (see <link to="IHardDisk"/>
8046 description). This means that every time a new snapshot is created,
8047 a new differencing hard disk is implicitly created for all normal
8048 hard disks attached to the given virtual machine. This allows to
8049 fully restore hard disk contents when the machine is later reverted
8050 to a particular snapshot.
8051
8052 In the current implementation, multiple snapshot branches within one
8053 virtual machine are not allowed. Every machine has a single branch,
8054 and <link to="IConsole::takeSnapshot"/> operation adds a new
8055 snapshot to the top of that branch.
8056
8057 Existing snapshots can be discarded using
8058 <link to="IConsole::discardSnapshot"/>.
8059
8060 <h3>Current snapshot</h3>
8061
8062 Every virtual machine has a current snapshot, identified by
8063 <link to="IMachine::currentSnapshot"/>. This snapshot is used as
8064 a base for the <i>current machine state</i> (see below), to the effect
8065 that all normal hard disks of the machine and its execution
8066 state are based on this snapshot.
8067
8068 In the current implementation, the current snapshot is always the
8069 last taken snapshot (i.e. the head snapshot on the branch) and it
8070 cannot be changed.
8071
8072 The current snapshot is <tt>null</tt> if the machine doesn't have
8073 snapshots at all; in this case the current machine state is just
8074 current settings of this machine plus its current execution state.
8075
8076 <h3>Current machine state</h3>
8077
8078 The current machine state is what represented by IMachine instances got
8079 directly from IVirtualBox
8080 using <link
8081 to="IVirtualBox::getMachine">getMachine()</link>, <link
8082 to="IVirtualBox::findMachine">findMachine()</link>, etc. (as opposed
8083 to instances returned by <link to="ISnapshot::machine"/>). This state
8084 is always used when the machine is <link to="IConsole::powerUp"> powered
8085 on</link>.
8086
8087 The current machine state also includes the current execution state.
8088 If the machine is being currently executed
8089 (<link to="IMachine::state"/> is <link to="MachineState_Running"/>
8090 and above), its execution state is just what's happening now.
8091 If it is powered off (<link to="MachineState_PoweredOff"/> or
8092 <link to="MachineState_Aborted"/>), it has a zero execution state.
8093 If the machine is saved (<link to="MachineState_Saved"/>), its
8094 execution state is what saved in the execution state file
8095 (<link to="IMachine::stateFilePath"/>).
8096
8097 If the machine is in the saved state, then, next time it is powered
8098 on, its execution state will be fully restored from the saved state
8099 file and the execution will continue from the point where the state
8100 was saved.
8101
8102 Similarly to snapshots, the current machine state can be discarded
8103 using <link to="IConsole::discardCurrentState"/>.
8104
8105 <h3>Taking and discarding snapshots</h3>
8106
8107 The table below briefly explains the meaning of every snapshot
8108 operation:
8109
8110 <table>
8111 <tr><th>Operation</th><th>Meaning</th><th>Remarks</th></tr>
8112
8113 <tr><td><link to="IConsole::takeSnapshot"/></td>
8114
8115 <td>Save the current state of the virtual machine, including all
8116 settings, contents of normal hard disks and the current modifications
8117 to immutable hard disks (for online snapshots)</td>
8118
8119 <td>The current state is not changed (the machine will continue
8120 execution if it is being executed when the snapshot is
8121 taken)</td></tr>
8122
8123 <tr><td><link to="IConsole::discardSnapshot"/></td>
8124
8125 <td>Forget the state of the virtual machine stored in the snapshot:
8126 dismiss all saved settings and delete the saved execution state (for
8127 online snapshots)</td>
8128
8129 <td>Other snapshots (including child snapshots, if any) and the
8130 current state are not directly affected</td></tr>
8131
8132 <tr><td><link to="IConsole::discardCurrentState"/></td>
8133
8134 <td>Restore the current state of the virtual machine from the state
8135 stored in the current snapshot, including all settings and hard disk
8136 contents</td>
8137
8138 <td>The current state of the machine existed prior to this operation
8139 is lost</td></tr>
8140
8141 <tr><td><link to="IConsole::discardCurrentSnapshotAndState"/></td>
8142
8143 <td>Completely revert the virtual machine to the state it was in
8144 before the current snapshot has been taken</td>
8145
8146 <td>The current state, as well as the current snapshot, are
8147 lost</td></tr>
8148
8149 </table>
8150
8151 </desc>
8152
8153 <attribute name="id" type="wstring" readonly="yes">
8154 <desc>UUID of the snapshot.</desc>
8155 </attribute>
8156
8157 <attribute name="name" type="wstring">
8158 <desc>Short name of the snapshot.</desc>
8159 </attribute>
8160
8161 <attribute name="description" type="wstring">
8162 <desc>Optional description of the snapshot.</desc>
8163 </attribute>
8164
8165 <attribute name="timeStamp" type="long long" readonly="yes">
8166 <desc>
8167 Time stamp of the snapshot, in milliseconds since 1970-01-01 UTC.
8168 </desc>
8169 </attribute>
8170
8171 <attribute name="online" type="boolean" readonly="yes">
8172 <desc>
8173 <tt>true</tt> if this snapshot is an online snapshot and
8174 <tt>false</tt> otherwise.
8175
8176 <note>
8177 When this attribute is <tt>true</tt>, the
8178 <link to="IMachine::stateFilePath"/> attribute of the
8179 <link to="#machine"/> object associated with this snapshot
8180 will point to the saved state file. Otherwise, it will be
8181 <tt>null</tt>.
8182 </note>
8183 </desc>
8184 </attribute>
8185
8186 <attribute name="machine" type="IMachine" readonly="yes">
8187 <desc>
8188 Virtual machine this snapshot is taken on. This object
8189 stores all settings the machine had when taking this snapshot.
8190 <note>
8191 The returned machine object is immutable, i.e. no
8192 any settings can be changed.
8193 </note>
8194 </desc>
8195 </attribute>
8196
8197 <attribute name="parent" type="ISnapshot" readonly="yes">
8198 <desc>
8199 Parent snapshot (a snapshot this one is based on).
8200 <note>
8201 It's not an error to read this attribute on a snapshot
8202 that doesn't have a parent -- a null object will be
8203 returned to indicate this.
8204 </note>
8205 </desc>
8206 </attribute>
8207
8208 <attribute name="children" type="ISnapshot" readonly="yes" safearray="yes">
8209 <desc>
8210 Child snapshots (all snapshots having this one as a parent).
8211 <note>
8212 In the current implementation, there can be only one
8213 child snapshot, or no children at all, meaning this is the
8214 last (head) snapshot.
8215 </note>
8216 </desc>
8217 </attribute>
8218
8219 </interface>
8220
8221
8222 <!--
8223 // IMedia
8224 /////////////////////////////////////////////////////////////////////////
8225 -->
8226
8227 <enum
8228 name="MediaState"
8229 uuid="8b86e03c-2f1c-412a-8fbd-326f62701200"
8230 >
8231 <desc>
8232 Virtual media state.
8233 <see>IMedia</see>
8234 </desc>
8235
8236 <const name="NotCreated" value="0">
8237 <desc>
8238 Associated media storage does not exist (either was not created yet or
8239 was deleted).
8240 </desc>
8241 </const>
8242 <const name="Created" value="1">
8243 <desc>
8244 Associated storage exists and accessible.
8245 </desc>
8246 </const>
8247 <const name="LockedRead" value="2">
8248 <desc>
8249 Media is locked for reading, no data modification is possible.
8250 </desc>
8251 </const>
8252 <const name="LockedWrite" value="3">
8253 <desc>
8254 Media is locked for writing, no concurrent data reading or modification
8255 is possible.
8256 </desc>
8257 </const>
8258 <const name="Inaccessible" value="4">
8259 <desc>
8260 Associated media storage is not accessible.
8261 </desc>
8262 </const>
8263 <const name="Creating" value="5">
8264 <desc>
8265 Associated media storage is being created.
8266 </desc>
8267 </const>
8268 <const name="Deleting" value="6">
8269 <desc>
8270 Associated media storage is being deleted.
8271 </desc>
8272 </const>
8273 </enum>
8274
8275 <interface
8276 name="IMedium" extends="$unknown"
8277 uuid="f585787c-7728-40f6-853a-13705426e936"
8278 wsmap="managed"
8279 >
8280 <desc>
8281 The IMedium interface is a common interface for all objects representing
8282 virtual media such as hard disks, CD/DVD images and floppy images.
8283
8284 Each medium is associated with a storage unit (such as a file on the host
8285 computer or a network resource) that holds actual data. The location of
8286 the storage unit is represented by the #location attribute. The value of
8287 this attribute is media type dependent.
8288
8289 The exact media type may be determined by querying the appropriate
8290 interface such as:
8291 <ul>
8292 <li>IHardDisk (virtual hard disks)</li>
8293 <li>IDVDImage (standard CD/DVD ISO image files)</li>
8294 <li>IFloppyImage (raw floppy image files)</li>
8295 </ul>
8296
8297 Existing media are opened using the following methods, depending on the
8298 media type:
8299 <ul>
8300 <li><link to="IVirtualBox::openHardDisk"/></li>
8301 <li><link to="IVirtualBox::openDVDImage"/></li>
8302 <li><link to="IVirtualBox::openFloppyImage"/></li>
8303 </ul>
8304
8305 New hard disk media are created using the
8306 <link to="IVirtualBox::createHardDisk"/> method. CD/DVD and floppy
8307 images are created outside VirtualBox, usually by storing a copy
8308 of the real medium of the corresponding type in a regular file.
8309
8310 <h3>Known Media</h3>
8311
8312 When an existing medium gets opened for the first time, it gets
8313 automatically remembered by the given VirtualBox installation or, in other
8314 words, becomes a <i>known medium</i>. Known media are stored in the media
8315 registry transparently maintained by VirtualBox and stored in settings
8316 files so that this registry is preserved when VirtualBox is not running.
8317
8318 Newly created virtual hard disks get remembered only when the associated
8319 storage unit is actually created (see IHardDisk for more details).
8320
8321 All known media can be enumerated using
8322 <link to="IVirtualBox::hardDisks"/>,
8323 <link to="IVirtualBox::DVDImages"/> and
8324 <link to="IVirtualBox::floppyImages"/> attributes. Individual media can be
8325 quickly found by UUID using <link to="IVirtualBox::getHardDisk"/>
8326 and similar methods or by location using
8327 <link to="IVirtualBox::findHardDisk"/> and similar methods.
8328
8329 Only known media can be attached to virtual machines.
8330
8331 Removing known media from the media registry is performed when the given
8332 medium is closed using the <link to="#close"/> method or when its
8333 associated storage unit is deleted (only for hard disks).
8334
8335 <h3>Accessibility Checks</h3>
8336
8337 The given medium (with the created storage unit) is considered to be
8338 <i>accessible</i> when its storage unit can be read.
8339 Accessible media are indicated by the <link to="MediaState_Created"/>
8340 value of the <link to="#state"/> attribute. When the storage unit cannot
8341 be read (for example, because it is located on a disconnected network
8342 resource, or was accidentally deleted outside VirtualBox), the medium is
8343 considered to be <i>inaccessible</i> which is indicated by the
8344 <link to="MediaState_Inaccessible"/> state. The details about the reason
8345 of being inaccessible can be obtained using the
8346 <link to="#lastAccessError"/> attribute.
8347
8348 A new accessibility check is performed each time the <link to="#state"/>
8349 attribute is read. Please note that this check may take long time (several
8350 seconds or even minutes, depending on the storage unit location and
8351 format), and will block the calling thread until finished. For this
8352 reason, it is recommended to never read this attribute on the main UI
8353 thread to avoid making the UI unresponsive.
8354
8355 Note that when VirtualBox starts up (e.g. the VirtualBox object gets
8356 created for the first time), all known media are in the
8357 <link to="MediaState_Inaccessible"/> state but the value of the <link
8358 to="#lastAccessError"/> attribute is <tt>null</tt> because no actual
8359 accessibility check is made on startup. This is done to make the
8360 VirtualBox object ready for serving requests as
8361 fast as possible and let the end-user application decide if it needs to
8362 check media accessibility right away or not.
8363 </desc>
8364
8365 <attribute name="id" type="wstring" readonly="yes">
8366 <desc>
8367 UUID of the medium. For a newly created medium, this value is a randomly
8368 generated UUID.
8369
8370 <note>
8371 For media in one of MediaState_NotCreated, MediaState_Creating or
8372 MediaState_Deleting states, the value of this property is undefined
8373 and will most likely be an empty UUID.
8374 </note>
8375 </desc>
8376 </attribute>
8377
8378 <attribute name="description" type="wstring">
8379 <desc>
8380 Optional description of the medium. For newly created media, the value
8381 of this attribute value is <tt>null</tt>.
8382
8383 Media types that don't support this attribute will return E_NOTIMPL in
8384 attempt to get or set this attribute's value.
8385
8386 <note>
8387 For some storage types, reading this attribute may return an outdated
8388 (last known) value when <link to="#state"/> is <link
8389 to="MediaState_Inaccessible"/> or <link
8390 to="MediaState_LockedWrite"/> because the value of this attribute is
8391 stored within the storage unit itself. Also note that changing the
8392 attribute value is not possible in such case, as well as when the
8393 medium is the <link to="MediaState_LockedRead"/> state.
8394 </note>
8395 </desc>
8396 </attribute>
8397
8398 <attribute name="state" type="MediaState" readonly="yes">
8399 <desc>
8400 Current media state. Inspect <link to="MediaState"/> values for details.
8401
8402 Reading this attribute may take a long time because an accessibility
8403 check of the storage unit is performed each time the attribute is read.
8404 This check may cause a significant delay if the storage unit of the
8405 given medium is, for example, a file located on a network share which is
8406 not currently accessible due to connectivity problems -- the call will
8407 not return until a timeout interval defined by the host OS for this
8408 operation expires.
8409
8410 If the last known state of the medium is <link to="MediaState_Created"/>
8411 and the accessibility check fails then the state would be set to
8412 <link to="MediaState_Inaccessible"/> and <link to="#lastAccessError"/>
8413 may be used to get more details about the failure. If the state of the
8414 medium is <link to="MediaState_LockedRead"/> or
8415 <link to="MediaState_LockedWrite"/> then it remains the same, and a
8416 non-null value of <link to="#lastAccessError"/> will indicate a failed
8417 accessibility check in this case.
8418
8419 Note that not all media states are applicable to all media types.
8420 For example, states <link to="MediaState_NotCreated"/>,
8421 <link to="MediaState_LockedWrite"/>, <link to="MediaState_Creating"/>,
8422 <link to="MediaState_Deleting"/> are meaningless for IDVDImage and
8423 IFloppyImage media.
8424 </desc>
8425 </attribute>
8426
8427 <attribute name="location" type="wstring">
8428 <desc>
8429 Location of the storage unit holding media data.
8430
8431 The format of the location string is media type specific. For media
8432 types using regular files in a host's file system, the location
8433 string is the full file name.
8434
8435 Some media types may support changing the storage unit location by
8436 simply changing the value of this property. If this operation is not
8437 supported, the implementation will return E_NOTIMPL in attempt to set
8438 this attribute's value.
8439
8440 When setting a value of the location attribute which is a regular file
8441 in the host's file system, the given file name may be either relative to
8442 the <link to="IVirtualBox::homeFolder">VirtualBox home folder</link> or
8443 absolute. Note that if the given location specification does not contain
8444 the file extension part then a proper default extension will be
8445 automatically appended by the implementation depending on the media type.
8446 </desc>
8447 </attribute>
8448
8449 <attribute name="name" type="wstring" readonly="yes">
8450 <desc>
8451 Name of the storage unit holding media data.
8452
8453 The returned string is a short version of the <link to="#location"/>
8454 attribute that is suitable for representing the medium in situations
8455 where the full location specification is too long (such as lists
8456 and comboboxes in GUI frontends). This string is also used by frontends
8457 to sort the media list alphabetically when needed.
8458
8459 For example, for locations that are regular files in the host's file
8460 system, the value of this attribute is just the file name (+ extension),
8461 without the path specification.
8462
8463 Note that as opposed to the <link to="#location"/> attribute, the name
8464 attribute will not necessary be unique for a list of media of the
8465 given type and format.
8466 </desc>
8467 </attribute>
8468
8469 <attribute name="size" type="unsigned long long" readonly="yes">
8470 <desc>
8471 Physical size of the storage unit used to hold media data (in bytes).
8472
8473 <note>
8474 For media whose <link to="#state"/> is <link
8475 to="MediaState_Inaccessible"/>, the value of this property is the
8476 last known size. For <link to="MediaState_NotCreated"/> media,
8477 the returned value is zero.
8478 </note>
8479 </desc>
8480 </attribute>
8481
8482 <attribute name="lastAccessError" type="wstring" readonly="yes">
8483 <desc>
8484 Text message that represents the result of the last accessibility
8485 check.
8486
8487 Accessibility checks are performed each time the <link to="#state"/>
8488 attribute is read. A @c null string is returned if the last
8489 accessibility check was successful. A non-null string indicates a
8490 failure and should normally describe a reason of the failure (for
8491 example, a file read error).
8492 </desc>
8493 </attribute>
8494
8495 <attribute name="machineIds" type="wstring" safearray="yes" readonly="yes">
8496 <desc>
8497 Array of UUIDs of all machines this medium is attached to.
8498
8499 A <tt>null</tt> array is returned if this medium is not attached to any
8500 machine or to any machine's snapshot.
8501
8502 <note>
8503 The returned array will include a machine even if this medium is not
8504 attached to that machine in the current state but attached to it in
8505 one of the machine's snapshots. See <link to="#getSnapshotIds"/> for
8506 details.
8507 </note>
8508 </desc>
8509 </attribute>
8510
8511 <method name="getSnapshotIds">
8512 <desc>
8513 Returns an array of UUIDs of all snapshots of the given machine where
8514 this medium is attached to.
8515
8516 If the medium is attached to the machine in the current state, then the
8517 first element in the array will always be the ID of the queried machine
8518 (i.e. the value equal to the @c machineId argument), followed by
8519 snapshot IDs (if any).
8520
8521 If the medium is not attached to the machine in the current state, then
8522 the array will contain only snapshot IDs.
8523
8524 The returned array may be <tt>null</tt> if this medium is not attached
8525 to the given machine at all, neither in the current state nor in one of
8526 the snapshots.
8527 </desc>
8528 <param name="machineId" type="wstring" dir="in">
8529 <desc>
8530 UUID of the machine to query.
8531 </desc>
8532 </param>
8533 <param name="snapshotIds" type="wstring" safearray="yes" dir="return">
8534 <desc>
8535 Array of snapshot UUIDs of the given machine using this medium.
8536 </desc>
8537 </param>
8538 </method>
8539
8540 <method name="lockRead">
8541 <desc>
8542 Locks this medium for reading.
8543
8544 The read lock is shared: many clients can simultaneously lock the
8545 same media for reading unless it is already locked for writing (see
8546 <link to="#lockWrite"/>) in which case an error is returned.
8547
8548 When the medium is locked for reading, it cannot be modified
8549 from within VirtualBox. This means that any method that changes
8550 the properties of this medium or contents of the storage unit
8551 will return an error (unless explicitly stated otherwise) and
8552 that an attempt to start a virtual machine that wants to modify
8553 the medium will also fail.
8554
8555 When the virtual machine is started up, it locks for reading all
8556 media it uses in read-only mode. If some media cannot be locked
8557 for reading, the startup procedure will fail.
8558
8559 The medium locked for reading must be unlocked using the <link
8560 to="#unlockRead"/> method. Calls to <link to="#lockRead"/>
8561 can be nested and must be followed by the same number of paired
8562 <link to="#unlockRead"/> calls.
8563
8564 This method sets the media state to <link
8565 to="MediaState_LockedRead"/> on success. The state prior to
8566 this call must be <link to="MediaState_Created"/>, <link
8567 to="MediaState_Inaccessible"/> or <link
8568 to="MediaState_LockedRead"/>. As you can see, inaccessible
8569 media can be locked too. This is not an error; this method
8570 performs a logical lock that prevents modifications of this
8571 media through the VirtualBox API, not a physical lock of the
8572 underlying storage unit.
8573
8574 This method returns the current state of the medium
8575 <b>before</b> the operation.
8576
8577 <result name="VBOX_E_INVALID_OBJECT_STATE">
8578 Invalid media state (e.g. not created, locked, inaccessible,
8579 creating, deleting).
8580 </result>
8581
8582 </desc>
8583 <param name="state" type="MediaState" dir="return">
8584 <desc>
8585 State of the medium after the operation.
8586 </desc>
8587 </param>
8588 </method>
8589
8590 <method name="unlockRead">
8591 <desc>
8592 Cancels the read lock previously set by <link to="#lockRead"/>.
8593
8594 For both, success and failure, this method returns the current state
8595 of the medium <b>after</b> the operation.
8596
8597 See <link to="#lockRead"/> for more details.
8598
8599 <result name="VBOX_E_INVALID_OBJECT_STATE">
8600 Medium not locked for reading.
8601 </result>
8602
8603 </desc>
8604 <param name="state" type="MediaState" dir="return">
8605 <desc>
8606 State of the medium after the operation.
8607 </desc>
8608 </param>
8609 </method>
8610
8611 <method name="lockWrite">
8612 <desc>
8613 Locks this medium for writing.
8614
8615 The write lock, as opposed to <link to="#lockRead"/>, is
8616 exclusive: there may be only one client holding a write lock
8617 and there may be no read locks while the write lock is held.
8618
8619 When the medium is locked for writing, it cannot be modified
8620 from within VirtualBox and it is not guaranteed that the values
8621 of its properties are up-to-date. Any method that changes the
8622 properties of this medium or contents of the storage unit will
8623 return an error (unless explicitly stated otherwise) and an
8624 attempt to start a virtual machine wanting to modify or to
8625 read the medium will fail.
8626
8627 When the virtual machine is started up, it locks for writing all
8628 media it uses to write data to. If any medium could not be locked
8629 for writing, the startup procedure will fail.
8630
8631 The medium locked for writing must be unlocked using the <link
8632 to="#unlockWrite"/> method. Calls to <link to="#lockWrite"/>
8633 can <b>not</b> be nested and must be followed by a<link
8634 to="#unlockWrite"/> call before the next lockWrite call.
8635
8636 This method sets the media state to <link
8637 to="MediaState_LockedWrite"/> on success. The state prior to
8638 this call must be <link to="MediaState_Created"/> or <link
8639 to="MediaState_Inaccessible"/>. As you can see, inaccessible
8640 media can be locked too. This is not an error; this method
8641 performs a logical lock preventing modifications of this
8642 media through the VirtualBox API, not a physical lock of the
8643 underlying storage unit.
8644
8645 For both, success and failure, this method returns the current
8646 state of the medium <b>before</b> the operation.
8647
8648 <result name="VBOX_E_INVALID_OBJECT_STATE">
8649 Invalid media state (e.g. not created, locked, inaccessible,
8650 creating, deleting).
8651 </result>
8652
8653 </desc>
8654 <param name="state" type="MediaState" dir="return">
8655 <desc>
8656 State of the medium after the operation.
8657 </desc>
8658 </param>
8659 </method>
8660
8661 <method name="unlockWrite">
8662 <desc>
8663 Cancels the write lock previously set by <link to="#lockWrite"/>.
8664
8665 For both, success and failure, this method returns the current
8666 state of the medium <b>after</b> the operation.
8667
8668 See <link to="#lockWrite"/> for more details.
8669
8670 <result name="VBOX_E_INVALID_OBJECT_STATE">
8671 Medium not locked for writing.
8672 </result>
8673
8674 </desc>
8675 <param name="state" type="MediaState" dir="return">
8676 <desc>
8677 State of the medium after the operation.
8678 </desc>
8679 </param>
8680 </method>
8681
8682 <method name="close">
8683 <desc>
8684 Closes this medium.
8685
8686 The hard disk must not be attached to any known virtual machine
8687 and must not have any known child hard disks, otherwise the
8688 operation will fail.
8689
8690 When the hard disk is successfully closed, it gets removed from
8691 the list of remembered hard disks, but its storage unit is not
8692 deleted. In particular, this means that this hard disk can be
8693 later opened again using the <link
8694 to="IVirtualBox::openHardDisk"/> call.
8695
8696 Note that after this method successfully returns, the given hard
8697 disk object becomes uninitialized. This means that any attempt
8698 to call any of its methods or attributes will fail with the
8699 <tt>"Object not ready" (E_ACCESSDENIED)</tt> error.
8700
8701 <result name="VBOX_E_INVALID_OBJECT_STATE">
8702 Invalid media state (other than not created, created or
8703 inaccessible).
8704 </result>
8705 <result name="VBOX_E_OBJECT_IN_USE">
8706 Medium attached to virtual machine.
8707 </result>
8708 <result name="VBOX_E_FILE_ERROR">
8709 Settings file not accessible.
8710 </result>
8711 <result name="VBOX_E_XML_ERROR">
8712 Could not parse the settings file.
8713 </result>
8714
8715 </desc>
8716 </method>
8717
8718 </interface>
8719
8720
8721 <!--
8722 // IHardDisk
8723 /////////////////////////////////////////////////////////////////////////
8724 -->
8725
8726 <enum
8727 name="HardDiskType"
8728 uuid="a348fafd-a64e-4643-ba65-eb3896bd7e0a"
8729 >
8730 <desc>
8731 Virtual hard disk type.
8732 <see>IHardDisk</see>
8733 </desc>
8734
8735 <const name="Normal" value="0">
8736 <desc>
8737 Normal hard disk (attached directly or indirectly, preserved
8738 when taking snapshots).
8739 </desc>
8740 </const>
8741 <const name="Immutable" value="1">
8742 <desc>
8743 Immutable hard disk (attached indirectly, changes are wiped out
8744 after powering off the virtual machine).
8745 </desc>
8746 </const>
8747 <const name="Writethrough" value="2">
8748 <desc>
8749 Write through hard disk (attached directly, ignored when
8750 taking snapshots).
8751 </desc>
8752 </const>
8753 </enum>
8754
8755 <enum
8756 name="HardDiskVariant"
8757 uuid="eb7fc6b3-ae23-4c5d-a1f6-e3522dd1efb0"
8758 >
8759 <desc>
8760 Virtual hard disk image variant. More than one flag may be set.
8761 <see>IHardDisk</see>
8762 </desc>
8763
8764 <const name="Standard" value="0">
8765 <desc>
8766 No particular variant requested, results in using the backend default.
8767 </desc>
8768 </const>
8769 <const name="VmdkSplit2G" value="0x01">
8770 <desc>
8771 VMDK image split in chunks of less than 2GByte.
8772 </desc>
8773 </const>
8774 <const name="VmdkStreamOptimized" value="0x04">
8775 <desc>
8776 VMDK streamOptimized image. Special import/export format which is
8777 read-only/append-only.
8778 </desc>
8779 </const>
8780 <const name="VmdkESX" value="0x08">
8781 <desc>
8782 VMDK format variant used on ESX products.
8783 </desc>
8784 </const>
8785 <const name="Fixed" value="0x10000">
8786 <desc>
8787 Fixed image. Only allowed for base images.
8788 </desc>
8789 </const>
8790 <const name="Diff" value="0x20000">
8791 <desc>
8792 Fixed image. Only allowed for base images.
8793 </desc>
8794 </const>
8795 </enum>
8796
8797 <interface
8798 name="IHardDiskAttachment" extends="$unknown"
8799 uuid="b1dd04bb-93c0-4ad3-a9cf-82316e595836"
8800 wsmap="struct"
8801 >
8802 <desc>
8803 The IHardDiskAttachment interface represents a hard disk attachment of a
8804 virtual machine.
8805
8806 Every hard disk attachment specifies a slot of the virtual hard disk
8807 controller and a virtual hard disk attached to this slot.
8808
8809 The array of hard disk attachments is returned by
8810 <link to="IMachine::hardDiskAttachments"/>.
8811 </desc>
8812 <attribute name="hardDisk" type="IHardDisk" readonly="yes">
8813 <desc>Hard disk object associated with this attachment.</desc>
8814 </attribute>
8815
8816 <attribute name="controller" type="wstring" readonly="yes">
8817 <desc>Interface bus of this attachment.</desc>
8818 </attribute>
8819
8820 <attribute name="port" type="long" readonly="yes">
8821 <desc>Port number of this attachment.</desc>
8822 </attribute>
8823
8824 <attribute name="device" type="long" readonly="yes">
8825 <desc>Device slot number of this attachment.</desc>
8826 </attribute>
8827
8828 </interface>
8829
8830 <interface
8831 name="IHardDisk" extends="IMedium"
8832 uuid="62551115-83b8-4d20-925f-79e9d3c00f96"
8833 wsmap="managed"
8834 >
8835 <desc>
8836 The IHardDisk interface represents a virtual hard disk drive
8837 used by a virtual machine. This is a subclass of <link to="IMedium" />; see remarks there.
8838
8839 Virtual hard disk objects virtualize the hard disk hardware and look like
8840 regular hard disks for the guest OS running inside the virtual machine.
8841
8842 <h3>Hard Disk Types</h3>
8843
8844 There are three types of hard disks:
8845 <link to="HardDiskType_Normal">Normal</link>,
8846 <link to="HardDiskType_Immutable">Immutable</link> and
8847 <link to="HardDiskType_Writethrough">Writethrough</link>. The type of the
8848 hard disk defines how the hard disk is attached to a virtual machine and
8849 what happens when a <link to="ISnapshot">snapshot</link> of the virtual
8850 machine with the attached hard disk is taken. The type of the hard disk is
8851 defined by the <link to="#type"/> attribute.
8852
8853 All hard disks can be also divided in two big groups: <i>base</i> hard
8854 disks and <i>differencing</i> hard disks. A base hard disk contains all
8855 sectors of the hard disk data in its storage unit and therefore can be
8856 used independently. On the contrary, a differencing hard disk contains
8857 only some part of the hard disk data (a subset of sectors) and needs
8858 another hard disk to get access to the missing sectors of data. This
8859 another hard disk is called a <i>parent</i> hard disk and defines a hard
8860 disk to which this differencing hard disk is known to be <i>linked to</i>.
8861 The parent hard disk may be itself a differencing hard disk. This
8862 way, differencing hard disks form a linked hard disk chain. This chain
8863 always ends with the base hard disk which is sometimes referred to as the
8864 root hard disk of this chain. Note that several differencing hard disks
8865 may be linked to the same parent hard disk. This way, all known hard disks
8866 form a hard disk tree which is based on their parent-child relationship.
8867
8868 Differencing hard disks can be distinguished from base hard disks by
8869 querying the <link to="#parent"/> attribute: base hard disks do not have
8870 parents they would depend on, so the value of this attribute is always
8871 <tt>null</tt> for them. Using this attribute, it is possible to walk up
8872 the hard disk tree (from the child hard disk to its parent). It is also
8873 possible to walk down the tree using the <link to="#children"/>
8874 attribute.
8875
8876 Note that the type of all differencing hard disks is
8877 <link to="HardDiskType_Normal">Normal</link>; all other values are
8878 meaningless for them. Base hard disks may be of any type.
8879
8880 <h3>Creating Hard Disks</h3>
8881
8882 New base hard disks are created using
8883 <link to="IVirtualBox::createHardDisk"/>. Existing hard disks are
8884 opened using <link to="IVirtualBox::openHardDisk"/>. Differencing hard
8885 disks are usually implicitly created by VirtualBox when needed but may
8886 also be created explicitly using <link to="#createDiffStorage"/>.
8887
8888 After the hard disk is successfully created (including the storage unit)
8889 or opened, it becomes a known hard disk (remembered in the internal media
8890 registry). Known hard disks can be attached to a virtual machine, accessed
8891 through <link to="IVirtualBox::getHardDisk"/> and
8892 <link to="IVirtualBox::findHardDisk"/> methods or enumerated using the
8893 <link to="IVirtualBox::hardDisks"/> array (only for base hard disks).
8894
8895 The following methods, besides <link to="IMedium::close"/>,
8896 automatically remove the hard disk from the media registry:
8897 <ul>
8898 <li><link to="#deleteStorage"/></li>
8899 <li><link to="#mergeTo"/></li>
8900 </ul>
8901
8902 If the storage unit of the hard disk is a regular file in the host's
8903 file system then the rules stated in the description of the
8904 <link to="IMedium::location"/> attribute apply when setting its value. In
8905 addition, a plain file name without any path may be given, in which case
8906 the <link to="ISystemProperties::defaultHardDiskFolder"> default hard disk
8907 folder</link> will be prepended to it.
8908
8909 <h4>Automatic composition of the file name part</h4>
8910
8911 Another extension to the <link to="IMedium::location"/> attribute is that
8912 there is a possibility to cause VirtualBox to compose a unique value for
8913 the file name part of the location using the UUID of the hard disk. This
8914 applies only to hard disks in <link to="MediaState_NotCreated"/> state,
8915 e.g. before the storage unit is created, and works as follows. You set the
8916 value of the <link to="IMedium::location"/> attribute to a location
8917 specification which only contains the path specification but not the file
8918 name part and ends with either a forward slash or a backslash character.
8919 In response, VirtualBox will generate a new UUID for the hard disk and
8920 compose the file name using the following pattern:
8921 <pre>
8922 &lt;path&gt;/{&lt;uuid&gt;}.&lt;ext&gt;
8923 </pre>
8924 where <tt>&lt;path&gt;</tt> is the supplied path specification,
8925 <tt>&lt;uuid&gt;</tt> is the newly generated UUID and <tt>&lt;ext&gt;</tt>
8926 is the default extension for the storage format of this hard disk. After
8927 that, you may call any of the methods that create a new hard disk storage
8928 unit and they will use the generated UUID and file name.
8929
8930 <h3>Attaching Hard Disks</h3>
8931
8932 Hard disks are attached to virtual machines using the
8933 <link to="IMachine::attachHardDisk"/> method and detached using the
8934 <link to="IMachine::detachHardDisk"/> method. Depending on their
8935 <link to="#type"/>, hard disks are attached either
8936 <i>directly</i> or <i>indirectly</i>.
8937
8938 When a hard disk is being attached directly, it is associated with the
8939 virtual machine and used for hard disk operations when the machine is
8940 running. When a hard disk is being attached indirectly, a new differencing
8941 hard disk linked to it is implicitly created and this differencing hard
8942 disk is associated with the machine and used for hard disk operations.
8943 This also means that if <link to="IMachine::attachHardDisk"/> performs
8944 a direct attachment then the same hard disk will be returned in response
8945 to the subsequent <link to="IMachine::getHardDisk"/> call; however if
8946 an indirect attachment is performed then
8947 <link to="IMachine::getHardDisk"/> will return the implicitly created
8948 differencing hard disk, not the original one passed to <link
8949 to="IMachine::attachHardDisk"/>. The following table shows the
8950 dependency of the attachment type on the hard disk type:
8951
8952 <table>
8953 <tr>
8954 <th>Hard Disk Type</th>
8955 <th>Direct or Indirect?</th>
8956 </tr>
8957 <tr>
8958 <td>Normal (Base)</td>
8959 <td>
8960 Normal base hard disks that do not have children (i.e. differencing
8961 hard disks linked to them) and that are not already attached to
8962 virtual machines in snapshots are attached <b>directly</b>.
8963 Otherwise, they are attached <b>indirectly</b> because having
8964 dependent children or being part of the snapshot makes it impossible
8965 to modify hard disk contents without breaking the integrity of the
8966 dependent party. The <link to="#readOnly"/> attribute allows to
8967 quickly determine the kind of the attachment for the given hard
8968 disk. Note that if a normal base hard disk is to be indirectly
8969 attached to a virtual machine with snapshots then a special
8970 procedure called <i>smart attachment</i> is performed (see below).
8971 </td>
8972 </tr>
8973 <tr>
8974 <td>Normal (Differencing)</td>
8975 <td>
8976 Differencing hard disks are like normal base hard disks: attached
8977 <b>directly</b> if they do not have children and are not attached to
8978 virtual machines in snapshots, and <b>indirectly</b> otherwise. Note
8979 that the smart attachment procedure is never performed for
8980 differencing hard disks.
8981 </td>
8982 </tr>
8983 <tr>
8984 <td>Immutable</td>
8985 <td>
8986 Immutable hard disks are always attached <b>indirectly</b> because
8987 they are designed to be non-writable. If an immutable hard disk is
8988 attached to a virtual machine with snapshots then a special
8989 procedure called smart attachment is performed (see below).
8990 </td>
8991 </tr>
8992 <tr>
8993 <td>Writethrough</td>
8994 <td>
8995 Writethrough hard disks are always attached <b>directly</b>, also as
8996 designed. This also means that writethrough hard disks cannot have
8997 other hard disks linked to them at all.
8998 </td>
8999 </tr>
9000 </table>
9001
9002 Note that the same hard disk, regardless of its type, may be attached to
9003 more than one virtual machine at a time. In this case, the machine that is
9004 started first gains exclusive access to the hard disk and attempts to
9005 start other machines having this hard disk attached will fail until the
9006 first machine is powered down.
9007
9008 Detaching hard disks is performed in a <i>deferred</i> fashion. This means
9009 that the given hard disk remains associated with the given machine after a
9010 successful <link to="IMachine::detachHardDisk"/> call until
9011 <link to="IMachine::saveSettings"/> is called to save all changes to
9012 machine settings to disk. This deferring is necessary to guarantee that
9013 the hard disk configuration may be restored at any time by a call to
9014 <link to="IMachine::discardSettings"/> before the settings
9015 are saved (committed).
9016
9017 Note that if <link to="IMachine::discardSettings"/> is called after
9018 indirectly attaching some hard disks to the machine but before a call to
9019 <link to="IMachine::saveSettings"/> is made, it will implicitly delete
9020 all differencing hard disks implicitly created by
9021 <link to="IMachine::attachHardDisk"/> for these indirect attachments.
9022 Such implicitly created hard disks will also be immediately deleted when
9023 detached explicitly using the <link to="IMachine::detachHardDisk"/>
9024 call if it is made before <link to="IMachine::saveSettings"/>. This
9025 implicit deletion is safe because newly created differencing hard
9026 disks do not contain any user data.
9027
9028 However, keep in mind that detaching differencing hard disks that were
9029 implicitly created by <link to="IMachine::attachHardDisk"/>
9030 before the last <link to="IMachine::saveSettings"/> call will
9031 <b>not</b> implicitly delete them as they may already contain some data
9032 (for example, as a result of virtual machine execution). If these hard
9033 disks are no more necessary, the caller can always delete them explicitly
9034 using <link to="#deleteStorage"/> after they are actually de-associated
9035 from this machine by the <link to="IMachine::saveSettings"/> call.
9036
9037 <h3>Smart Attachment</h3>
9038
9039 When normal base or immutable hard disks are indirectly attached to a
9040 virtual machine then some additional steps are performed to make sure the
9041 virtual machine will have the most recent "view" of the hard disk being
9042 attached. These steps include walking through the machine's snapshots
9043 starting from the current one and going through ancestors up to the first
9044 snapshot. Hard disks attached to the virtual machine in all
9045 of the encountered snapshots are checked whether they are descendants of
9046 the given normal base or immutable hard disk. The first found child (which
9047 is the differencing hard disk) will be used instead of the normal base or
9048 immutable hard disk as a parent for creating a new differencing hard disk
9049 that will be actually attached to the machine. And only if no descendants
9050 are found or if the virtual machine does not have any snapshots then the
9051 normal base or immutable hard disk will be used itself as a parent for
9052 this differencing hard disk.
9053
9054 It is easier to explain what smart attachment does using the
9055 following example:
9056 <pre>
9057BEFORE attaching B.vdi: AFTER attaching B.vdi:
9058
9059Snapshot 1 (B.vdi) Snapshot 1 (B.vdi)
9060 Snapshot 2 (D1->B.vdi) Snapshot 2 (D1->B.vdi)
9061 Snapshot 3 (D2->D1.vdi) Snapshot 3 (D2->D1.vdi)
9062 Snapshot 4 (none) Snapshot 4 (none)
9063 CurState (none) CurState (D3->D2.vdi)
9064
9065 NOT
9066 ...
9067 CurState (D3->B.vdi)
9068 </pre>
9069 The first column is the virtual machine configuration before the base hard
9070 disk <tt>B.vdi</tt> is attached, the second column shows the machine after
9071 this hard disk is attached. Constructs like <tt>D1->B.vdi</tt> and similar
9072 mean that the hard disk that is actually attached to the machine is a
9073 differencing hard disk, <tt>D1.vdi</tt>, which is linked to (based on)
9074 another hard disk, <tt>B.vdi</tt>.
9075
9076 As we can see from the example, the hard disk <tt>B.vdi</tt> was detached
9077 from the machine before taking Snapshot 4. Later, after Snapshot 4 was
9078 taken, the user decides to attach <tt>B.vdi</tt> again. <tt>B.vdi</tt> has
9079 dependent child hard disks (<tt>D1.vdi</tt>, <tt>D2.vdi</tt>), therefore
9080 it cannot be attached directly and needs an indirect attachment (i.e.
9081 implicit creation of a new differencing hard disk). Due to the smart
9082 attachment procedure, the new differencing hard disk
9083 (<tt>D3.vdi</tt>) will be based on <tt>D2.vdi</tt>, not on
9084 <tt>B.vdi</tt> itself, since <tt>D2.vdi</tt> is the most recent view of
9085 <tt>B.vdi</tt> existing for this snapshot branch of the given virtual
9086 machine.
9087
9088 Note that if there is more than one descendant hard disk of the given base
9089 hard disk found in a snapshot, and there is an exact device, channel and
9090 bus match, then this exact match will be used. Otherwise, the youngest
9091 descendant will be picked up.
9092
9093 There is one more important aspect of the smart attachment procedure which
9094 is not related to snapshots at all. Before walking through the snapshots
9095 as described above, the backup copy of the current list of hard disk
9096 attachment is searched for descendants. This backup copy is created when
9097 the hard disk configuration is changed for the first time after the last
9098 <link to="IMachine::saveSettings"/> call and used by
9099 <link to="IMachine::discardSettings"/> to undo the recent hard disk
9100 changes. When such a descendant is found in this backup copy, it will be
9101 simply re-attached back, without creating a new differencing hard disk for
9102 it. This optimization is necessary to make it possible to re-attach the
9103 base or immutable hard disk to a different bus, channel or device slot
9104 without losing the contents of the differencing hard disk actually
9105 attached to the machine in place of it.
9106 </desc>
9107
9108 <attribute name="format" type="wstring" readonly="yes">
9109 <desc>
9110 Storage format of this hard disk.
9111
9112 The value of this attribute is a string that specifies a backend used to
9113 store hard disk data. The storage format is defined when you create a
9114 new hard disk or automatically detected when you open an existing hard
9115 disk medium, and cannot be changed later.
9116
9117 The list of all storage formats supported by this VirtualBox
9118 installation can be obtained using
9119 <link to="ISystemProperties::hardDiskFormats"/>.
9120 </desc>
9121 </attribute>
9122
9123 <attribute name="type" type="HardDiskType">
9124 <desc>
9125 Type (role) of this hard disk.
9126
9127 The following constraints apply when changing the value of this
9128 attribute:
9129 <ul>
9130 <li>If a hard disk is attached to a virtual machine (either in the
9131 current state or in one of the snapshots), its type cannot be
9132 changed.
9133 </li>
9134 <li>As long as the hard disk has children, its type cannot be set
9135 to <link to="HardDiskType_Writethrough"/>.
9136 </li>
9137 <li>The type of all differencing hard disks is
9138 <link to="HardDiskType_Normal"/> and cannot be changed.
9139 </li>
9140 </ul>
9141
9142 The type of a newly created or opened hard disk is set to
9143 <link to="HardDiskType_Normal"/>.
9144 </desc>
9145 </attribute>
9146
9147 <attribute name="parent" type="IHardDisk" readonly="yes">
9148 <desc>
9149 Parent of this hard disk (a hard disk this hard disk is directly based
9150 on).
9151
9152 Only differencing hard disks have parents. For base (non-differencing)
9153 hard disks, <tt>null</tt> is returned.
9154 </desc>
9155 </attribute>
9156
9157 <attribute name="children" type="IHardDisk" safearray="yes" readonly="yes">
9158 <desc>
9159 Children of this hard disk (all differencing hard disks directly based
9160 on this hard disk). A <tt>null</tt> array is returned if this hard disk
9161 does not have any children.
9162 </desc>
9163 </attribute>
9164
9165 <attribute name="root" type="IHardDisk" readonly="yes">
9166 <desc>
9167 Root hard disk of this hard disk.
9168
9169 If this is a differencing hard disk, its root hard disk is the base hard
9170 disk the given hard disk branch starts from. For all other types of hard
9171 disks, this property returns the hard disk object itself (i.e. the same
9172 object this property is read on).
9173 </desc>
9174 </attribute>
9175
9176 <attribute name="readOnly" type="boolean" readonly="yes">
9177 <desc>
9178 Returns <tt>true</tt> if this hard disk is read-only and <tt>false</tt>
9179 otherwise.
9180
9181 A hard disk is considered to be read-only when its contents cannot be
9182 modified without breaking the integrity of other parties that depend on
9183 this hard disk such as its child hard disks or snapshots of virtual
9184 machines where this hard disk is attached to these machines. If there
9185 are no children and no such snapshots then there is no dependency and
9186 the hard disk is not read-only.
9187
9188 The value of this attribute can be used to determine the kind of the
9189 attachment that will take place when attaching this hard disk to a
9190 virtual machine. If the value is <tt>false</tt> then the hard disk will
9191 be attached directly. If the value is <tt>true</tt> then the hard disk
9192 will be attached indirectly by creating a new differencing child hard
9193 disk for that. See the interface description for more information.
9194
9195 Note that all <link to="HardDiskType_Immutable">Immutable</link> hard
9196 disks are always read-only while all
9197 <link to="HardDiskType_Writethrough">Writethrough</link> hard disks are
9198 always not.
9199
9200 <note>
9201 The read-only condition represented by this attribute is related to
9202 the hard disk type and usage, not to the current
9203 <link to="IMedium::state">media state</link> and not to the read-only
9204 state of the storage unit.
9205 </note>
9206 </desc>
9207 </attribute>
9208
9209 <attribute name="logicalSize" type="unsigned long long" readonly="yes">
9210 <desc>
9211 Logical size of this hard disk (in megabytes), as reported to the
9212 guest OS running inside the virtual machine this disk is
9213 attached to. The logical size is defined when the hard disk is created
9214 and cannot be changed later.
9215
9216 <note>
9217 Reading this property on a differencing hard disk will return the size
9218 of its <link to="#root"/> hard disk.
9219 </note>
9220 <note>
9221 For hard disks whose state is <link to="#state"/> is <link
9222 to="MediaState_Inaccessible"/>, the value of this property is the
9223 last known logical size. For <link to="MediaState_NotCreated"/> hard
9224 disks, the returned value is zero.
9225 </note>
9226 </desc>
9227 </attribute>
9228
9229 <attribute name="autoReset" type="boolean">
9230 <desc>
9231 Whether this differencing hard disk will be automatically reset each
9232 time a virtual machine it is attached to is powered up.
9233
9234 See <link to="#reset()"/> for more information about resetting
9235 differencing hard disks.
9236
9237 <note>
9238 Reading this property on a base (non-differencing) hard disk will
9239 always <tt>false</tt>. Changing the value of this property in this
9240 case is not supported.
9241 </note>
9242
9243 <result name="VBOX_E_NOT_SUPPORTED">
9244 This is not a differencing hard disk (when changing the attribute
9245 value).
9246 </result>
9247 </desc>
9248 </attribute>
9249
9250 <!-- storage methods -->
9251
9252 <method name="getProperty">
9253 <desc>
9254 Returns the value of the custom hard disk property with the given name.
9255
9256 The list of all properties supported by the given hard disk format can
9257 be obtained with <link to="IHardDiskFormat::describeProperties"/>.
9258
9259 Note that if this method returns a <tt>null</tt> @a value, the requested
9260 property is supported but currently not assigned any value.
9261
9262 <result name="VBOX_E_OBJECT_NOT_FOUND">
9263 Requested property does not exist (not supported by the format).
9264 </result>
9265 <result name="E_INVALIDARG">@a name is NULL or empty.</result>
9266 </desc>
9267 <param name="name" type="wstring" dir="in">
9268 <desc>Name of the property to get.</desc>
9269 </param>
9270 <param name="value" type="wstring" dir="return">
9271 <desc>Current property value.</desc>
9272 </param>
9273 </method>
9274
9275 <method name="setProperty">
9276 <desc>
9277 Sets the value of the custom hard disk property with the given name.
9278
9279 The list of all properties supported by the given hard disk format can
9280 be obtained with <link to="IHardDiskFormat::describeProperties"/>.
9281
9282 Note that setting the property value to <tt>null</tt> is equivalent to
9283 deleting the existing value. A default value (if it is defined for this
9284 property) will be used by the format backend in this case.
9285
9286 <result name="VBOX_E_OBJECT_NOT_FOUND">
9287 Requested property does not exist (not supported by the format).
9288 </result>
9289 <result name="E_INVALIDARG">@a name is NULL or empty.</result>
9290 </desc>
9291 <param name="name" type="wstring" dir="in">
9292 <desc>Name of the property to set.</desc>
9293 </param>
9294 <param name="value" type="wstring" dir="in">
9295 <desc>Property value to set.</desc>
9296 </param>
9297 </method>
9298
9299 <method name="getProperties">
9300 <desc>
9301 Returns values for a group of properties in one call.
9302
9303 The names of the properties to get are specified using the @a names
9304 argument which is a list of comma-separated property names or
9305 <tt>null</tt> if all properties are to be returned. Note that currently
9306 the value of this argument is ignored and the method always returns all
9307 existing properties.
9308
9309 The list of all properties supported by the given hard disk format can
9310 be obtained with <link to="IHardDiskFormat::describeProperties"/>.
9311
9312 The method returns two arrays, the array of property names corresponding
9313 to the @a names argument and the current values of these properties.
9314 Both arrays have the same number of elements with each elemend at the
9315 given index in the first array corresponds to an element at the same
9316 index in the second array.
9317
9318 Note that for properties that do not have assigned values,
9319 <tt>null</tt> is returned at the appropriate index in the
9320 @a returnValues array.
9321
9322 </desc>
9323 <param name="names" type="wstring" dir="in">
9324 <desc>
9325 Names of properties to get.
9326 </desc>
9327 </param>
9328 <param name="returnNames" type="wstring" safearray="yes" dir="out">
9329 <desc>Names of returned properties.</desc>
9330 </param>
9331 <param name="returnValues" type="wstring" safearray="yes" dir="return">
9332 <desc>Values of returned properties.</desc>
9333 </param>
9334 </method>
9335
9336 <method name="setProperties">
9337 <desc>
9338 Sets values for a group of properties in one call.
9339
9340 The names of the properties to set are passed in the @a names
9341 array along with the new values for them in the @a values array. Both
9342 arrays have the same number of elements with each elemend at the given
9343 index in the first array corresponding to an element at the same index
9344 in the second array.
9345
9346 If there is at least one property name in @a names that is not valid,
9347 the method will fail before changing the values of any other properties
9348 from the @a names array.
9349
9350 Using this method over <link to="#setProperty"/> is preferred if you
9351 need to set several properties at once since it will result into less
9352 IPC calls.
9353
9354 The list of all properties supported by the given hard disk format can
9355 be obtained with <link to="IHardDiskFormat::describeProperties"/>.
9356
9357 Note that setting the property value to <tt>null</tt> is equivalent to
9358 deleting the existing value. A default value (if it is defined for this
9359 property) will be used by the format backend in this case.
9360 </desc>
9361 <param name="names" type="wstring" safearray="yes" dir="in">
9362 <desc>Names of properties to set.</desc>
9363 </param>
9364 <param name="values" type="wstring" safearray="yes" dir="in">
9365 <desc>Values of properties to set.</desc>
9366 </param>
9367 </method>
9368
9369 <!-- storage methods -->
9370
9371 <method name="createBaseStorage">
9372 <desc>
9373 Starts creating a hard disk storage unit (fixed/dynamic, according
9374 to the variant flags) in in the background. The previous storage unit
9375 created for this object, if any, must first be deleted using
9376 <link to="#deleteStorage"/>, otherwise the operation will fail.
9377
9378 Before the operation starts, the hard disk is placed in
9379 <link to="MediaState_Creating"/> state. If the create operation
9380 fails, the media will be placed back in <link to="MediaState_NotCreated"/>
9381 state.
9382
9383 After the returned progress object reports that the operation has
9384 successfully completed, the media state will be set to <link
9385 to="MediaState_Created"/>, the hard disk will be remembered by this
9386 VirtualBox installation and may be attached to virtual machines.
9387
9388 <result name="VBOX_E_NOT_SUPPORTED">
9389 The variant of storage creation operation is not supported. See <link
9390 to="IHardDiskFormat::capabilities"/>.
9391 </result>
9392 </desc>
9393 <param name="logicalSize" type="unsigned long long" dir="in">
9394 <desc>Maximum logical size of the hard disk in megabytes.</desc>
9395 </param>
9396 <param name="variant" type="HardDiskVariant" dir="in">
9397 <desc>Exact image variant which should be created.</desc>
9398 </param>
9399 <param name="progress" type="IProgress" dir="return">
9400 <desc>Progress object to track the operation completion.</desc>
9401 </param>
9402 </method>
9403
9404 <method name="deleteStorage">
9405 <desc>
9406 Starts deleting the storage unit of this hard disk.
9407
9408 The hard disk must not be attached to any known virtual machine and must
9409 not have any known child hard disks, otherwise the operation will fail.
9410 It will also fail if there is no storage unit to delete or if deletion
9411 is already in progress, or if the hard disk is being in use (locked for
9412 read or for write) or inaccessible. Therefore, the only valid state for
9413 this operation to succeed is <link to="MediaState_Created"/>.
9414
9415 Before the operation starts, the hard disk is placed to
9416 <link to="MediaState_Deleting"/> state and gets removed from the list
9417 of remembered hard disks (media registry). If the delete operation
9418 fails, the media will be remembered again and placed back to
9419 <link to="MediaState_Created"/> state.
9420
9421 After the returned progress object reports that the operation is
9422 complete, the media state will be set to
9423 <link to="MediaState_NotCreated"/> and you will be able to use one of
9424 the storage creation methods to create it again.
9425
9426 <see>#close()</see>
9427
9428 <result name="VBOX_E_OBJECT_IN_USE">
9429 Hard disk is attached to a virtual machine.
9430 </result>
9431 <result name="VBOX_E_NOT_SUPPORTED">
9432 Storage deletion is not allowed because neither of storage creation
9433 operations are supported. See
9434 <link to="IHardDiskFormat::capabilities"/>.
9435 </result>
9436
9437 <note>
9438 If the deletion operation fails, it is not guaranteed that the storage
9439 unit still exists. You may check the <link to="IMedium::state"/> value
9440 to answer this question.
9441 </note>
9442 </desc>
9443 <param name="progress" type="IProgress" dir="return">
9444 <desc>Progress object to track the operation completion.</desc>
9445 </param>
9446 </method>
9447
9448 <!-- diff methods -->
9449
9450 <method name="createDiffStorage">
9451 <desc>
9452 Starts creating an empty differencing storage unit based on this hard
9453 disk in the format and at the location defined by the @a target
9454 argument.
9455
9456 The target hard disk must be in <link to="MediaState_NotCreated"/>
9457 state (i.e. must not have an existing storage unit). Upon successful
9458 completion, this operation will set the type of the target hard disk to
9459 <link to="HardDiskType_Normal"/> and create a storage unit necessary to
9460 represent the differencing hard disk data in the given format (according
9461 to the storage format of the target object).
9462
9463 After the returned progress object reports that the operation is
9464 successfully complete, the target hard disk gets remembered by this
9465 VirtualBox installation and may be attached to virtual machines.
9466
9467 <note>
9468 The hard disk will be set to <link to="MediaState_LockedRead"/>
9469 state for the duration of this operation.
9470 </note>
9471 <result name="VBOX_E_OBJECT_IN_USE">
9472 Hard disk not in NotCreated state.
9473 </result>
9474 </desc>
9475 <param name="target" type="IHardDisk" dir="in">
9476 <desc>Target hard disk.</desc>
9477 </param>
9478 <param name="variant" type="HardDiskVariant" dir="in">
9479 <desc>Exact image variant which should be created.</desc>
9480 </param>
9481 <param name="progress" type="IProgress" dir="return">
9482 <desc>Progress object to track the operation completion.</desc>
9483 </param>
9484 </method>
9485
9486 <method name="mergeTo">
9487 <desc>
9488 Starts merging the contents of this hard disk and all intermediate
9489 differencing hard disks in the chain to the given target hard disk.
9490
9491 The target hard disk must be either a descendant of this hard disk or
9492 its ancestor (otherwise this method will immediately return a failure).
9493 It follows that there are two logical directions of the merge operation:
9494 from ancestor to descendant (<i>forward merge</i>) and from descendant to
9495 ancestor (<i>backward merge</i>). Let us consider the following hard disk
9496 chain:
9497
9498 <pre>Base &lt;- Diff_1 &lt;- Diff_2</pre>
9499
9500 Here, calling this method on the <tt>Base</tt> hard disk object with
9501 <tt>Diff_2</tt> as an argument will be a forward merge; calling it on
9502 <tt>Diff_2</tt> with <tt>Base</tt> as an argument will be a backward
9503 merge. Note that in both cases the contents of the resulting hard disk
9504 will be the same, the only difference is the hard disk object that takes
9505 the result of the merge operation. In case of the forward merge in the
9506 above example, the result will be written to <tt>Diff_2</tt>; in case of
9507 the backward merge, the result will be written to <tt>Base</tt>. In
9508 other words, the result of the operation is always stored in the target
9509 hard disk.
9510
9511 Upon successful operation completion, the storage units of all hard
9512 disks in the chain between this (source) hard disk and the target hard
9513 disk, including the source hard disk itself, will be automatically
9514 deleted and the relevant hard disk objects (including this hard disk)
9515 will become uninitialized. This means that any attempt to call any of
9516 their methods or attributes will fail with the
9517 <tt>"Object not ready" (E_ACCESSDENIED)</tt> error. Applied to the above
9518 example, the forward merge of <tt>Base</tt> to <tt>Diff_2</tt> will
9519 delete and uninitialize both <tt>Base</tt> and <tt>Diff_1</tt> hard
9520 disks. Note that <tt>Diff_2</tt> in this case will become a base hard
9521 disk itself since it will no longer be based on any other hard disk.
9522
9523 Considering the above, all of the following conditions must be met in
9524 order for the merge operation to succeed:
9525 <ul>
9526 <li>
9527 Neither this (source) hard disk nor any intermediate
9528 differencing hard disk in the chain between it and the target
9529 hard disk is attached to any virtual machine.
9530 </li>
9531 <li>
9532 Neither the source hard disk nor the target hard disk is an
9533 <link to="HardDiskType_Immutable"/> hard disk.
9534 </li>
9535 <li>
9536 The part of the hard disk tree from the source hard disk to the
9537 target hard disk is a linear chain, i.e. all hard disks in this
9538 chain have exactly one child which is the next hard disk in this
9539 chain. The only exception from this rule is the target hard disk in
9540 the forward merge operation; it is allowed to have any number of
9541 child hard disks because the merge operation will hot change its
9542 logical contents (as it is seen by the guest OS or by children).
9543 </li>
9544 <li>
9545 None of the involved hard disks are in
9546 <link to="MediaState_LockedRead"/> or
9547 <link to="MediaState_LockedWrite"/> state.
9548 </li>
9549 </ul>
9550
9551 <note>
9552 This (source) hard disk and all intermediates will be placed to <link
9553 to="MediaState_Deleting"/> state and the target hard disk will be
9554 placed to <link to="MediaState_LockedWrite"/> state and for the
9555 duration of this operation.
9556 </note>
9557 </desc>
9558 <param name="targetId" type="wstring" dir="in">
9559 <desc>UUID of the target ancestor or descendant hard disk.</desc>
9560 </param>
9561 <param name="progress" type="IProgress" dir="return">
9562 <desc>Progress object to track the operation completion.</desc>
9563 </param>
9564 </method>
9565
9566 <!-- clone method -->
9567
9568 <method name="cloneTo">
9569 <desc>
9570 Starts creating a clone of this hard disk in the format and at the
9571 location defined by the @a target argument.
9572
9573 The target hard disk must be in <link to="MediaState_NotCreated"/>
9574 state (i.e. must not have an existing storage unit). Upon successful
9575 completion, the cloned hard disk will contain exactly the same sector
9576 data as the hard disk being cloned, except that a new UUID for the
9577 clone will be randomly generated.
9578
9579 The @a parent argument defines which hard disk will be the parent
9580 of the clone. Passing a NULL reference indicates that the clone will
9581 be a base image, i.e. completely independent. It is possible to specify
9582 an arbitrary hard disk for this parameter, including the parent of the
9583 hard disk which is being cloned. Even cloning to a child of the source
9584 hard disk is possible.
9585
9586 After the returned progress object reports that the operation is
9587 successfully complete, the target hard disk gets remembered by this
9588 VirtualBox installation and may be attached to virtual machines.
9589
9590 <note>
9591 This hard disk will be placed to <link to="MediaState_LockedRead"/>
9592 state for the duration of this operation.
9593 </note>
9594 </desc>
9595 <param name="target" type="IHardDisk" dir="in">
9596 <desc>Target hard disk.</desc>
9597 </param>
9598 <param name="variant" type="HardDiskVariant" dir="in">
9599 <desc>Exact image variant which should be created.</desc>
9600 </param>
9601 <param name="parent" type="IHardDisk" dir="in">
9602 <desc>Parent of the cloned hard disk.</desc>
9603 </param>
9604 <param name="progress" type="IProgress" dir="return">
9605 <desc>Progress object to track the operation completion.</desc>
9606 </param>
9607 </method>
9608
9609 <!-- other methods -->
9610
9611 <method name="compact">
9612 <desc>
9613 Starts compacting of this hard disk. This means that the disk is
9614 transformed into a possibly more compact storage representation.
9615 This potentially creates temporary images, which can require a
9616 substantial amount of additional disk space.
9617
9618 This hard disk will be placed to <link to="MediaState_LockedWrite"/>
9619 state and all its parent hard disks (if any) will be placed to
9620 <link to="MediaState_LockedRead"/> state for the duration of this
9621 operation.
9622
9623 Please note that the results can be either returned straight away,
9624 or later as the result of the background operation via the object
9625 returned via the @a progress parameter.
9626
9627 <result name="VBOX_E_NOT_SUPPORTED">
9628 Hard disk format does not support compacting (but potentially
9629 needs it).
9630 </result>
9631 </desc>
9632 <param name="progress" type="IProgress" dir="return">
9633 <desc>Progress object to track the operation completion.</desc>
9634 </param>
9635 </method>
9636
9637 <method name="reset">
9638 <desc>
9639 Starts erasing the contents of this differencing hard disk.
9640
9641 This operation will reset the differencing hard disk to its initial
9642 state when it does not contain any sector data and any read operation is
9643 redirected to its parent hard disk.
9644
9645 This hard disk will be placed to <link to="MediaState_LockedWrite"/>
9646 for the duration of this operation.
9647
9648 <result name="VBOX_E_NOT_SUPPORTED">
9649 This is not a differencing hard disk.
9650 </result>
9651 <result name="VBOX_E_INVALID_OBJECT_STATE">
9652 Hard disk is not in <link to="MediaState_Created"/> or
9653 <link to="MediaState_Inaccessible"/> state.
9654 </result>
9655 </desc>
9656 <param name="progress" type="IProgress" dir="return">
9657 <desc>Progress object to track the operation completion.</desc>
9658 </param>
9659 </method>
9660
9661 </interface>
9662
9663
9664 <!--
9665 // IHardDiskFormat
9666 /////////////////////////////////////////////////////////////////////////
9667 -->
9668
9669 <enum
9670 name="DataType"
9671 uuid="d90ea51e-a3f1-4a01-beb1-c1723c0d3ba7"
9672 >
9673 <const name="Int32" value="0"/>
9674 <const name="Int8" value="1"/>
9675 <const name="String" value="2"/>
9676 </enum>
9677
9678 <enum
9679 name="DataFlags"
9680 uuid="86884dcf-1d6b-4f1b-b4bf-f5aa44959d60"
9681 >
9682 <const name="None" value="0x00"/>
9683 <const name="Mandatory" value="0x01"/>
9684 <const name="Expert" value="0x02"/>
9685 <const name="Array" value="0x04"/>
9686 <const name="FlagMask" value="0x07"/>
9687 </enum>
9688
9689 <enum
9690 name="HardDiskFormatCapabilities"
9691 uuid="1df1e4aa-d25a-4ba6-b2a2-02f60eb5903b"
9692 >
9693 <desc>
9694 Hard disk format capability flags.
9695 </desc>
9696
9697 <const name="Uuid" value="0x01">
9698 <desc>
9699 Supports UUIDs as expected by VirtualBox code.
9700 </desc>
9701 </const>
9702
9703 <const name="CreateFixed" value="0x02">
9704 <desc>
9705 Supports creating fixed size images, allocating all space instantly.
9706 </desc>
9707 </const>
9708
9709 <const name="CreateDynamic" value="0x04">
9710 <desc>
9711 Supports creating dynamically growing images, allocating space on
9712 demand.
9713 </desc>
9714 </const>
9715
9716 <const name="CreateSplit2G" value="0x08">
9717 <desc>
9718 Supports creating images split in chunks of a bit less than 2 GBytes.
9719 </desc>
9720 </const>
9721
9722 <const name="Differencing" value="0x10">
9723 <desc>
9724 Supports being used as a format for differencing hard disks (see <link
9725 to="IHardDisk::createDiffStorage"/>).
9726 </desc>
9727 </const>
9728
9729 <const name="Asynchronous" value="0x20">
9730 <desc>
9731 Supports asynchronous I/O operations for at least some configurations.
9732 </desc>
9733 </const>
9734
9735 <const name="File" value="0x40">
9736 <desc>
9737 The format backend operates on files (the <link to="IMedium::location"/>
9738 attribute of the hard disk specifies a file used to store hard disk
9739 data; for a list of supported file extensions see
9740 <link to="IHardDiskFormat::fileExtensions"/>).
9741 </desc>
9742 </const>
9743
9744 <const name="Properties" value="0x80">
9745 <desc>
9746 The format backend uses the property interface to configure the storage
9747 location and properties (the <link to="IHardDiskFormat::describeProperties"/>
9748 method is used to get access to properties supported by the given hard
9749 disk format).
9750 </desc>
9751 </const>
9752
9753 <const name="CapabilityMask" value="0xFF"/>
9754 </enum>
9755
9756 <interface
9757 name="IHardDiskFormat" extends="$unknown"
9758 uuid="7f3ba790-3a0b-4a8a-bac2-bb50150123c5"
9759 wsmap="managed"
9760 >
9761 <desc>
9762 The IHardDiskFormat interface represents a virtual hard disk format.
9763
9764 Each hard disk format has an associated backend which is used to handle
9765 hard disks stored in this format. This interface provides information
9766 about the properties of the associated backend.
9767
9768 Each hard disk format is identified by a string represented by the
9769 <link to="#id"/> attribute. This string is used in calls like
9770 <link to="IVirtualBox::createHardDisk"/> to specify the desired
9771 format.
9772
9773 The list of all supported hard disk formats can be obtained using
9774 <link to="ISystemProperties::hardDiskFormats"/>.
9775
9776 <see>IHardDisk</see>
9777 </desc>
9778
9779 <attribute name="id" type="wstring" readonly="yes">
9780 <desc>
9781 Identifier of this format.
9782
9783 The format identifier is a non-null non-empty ASCII string. Note that
9784 this string is case-insensitive. This means that, for example, all of
9785 the following strings:
9786 <pre>
9787 "VDI"
9788 "vdi"
9789 "VdI"</pre>
9790 refer to the same hard disk format.
9791
9792 This string is used in methods of other interfaces where it is necessary
9793 to specify a hard disk format, such as
9794 <link to="IVirtualBox::createHardDisk"/>.
9795 </desc>
9796 </attribute>
9797
9798 <attribute name="name" type="wstring" readonly="yes">
9799 <desc>
9800 Human readable description of this format.
9801
9802 Mainly for use in file open dialogs.
9803 </desc>
9804 </attribute>
9805
9806 <attribute name="fileExtensions" type="wstring" safearray="yes" readonly="yes">
9807 <desc>
9808 Array of strings containing the supported file extensions.
9809
9810 The first extension in the array is the extension preferred by the
9811 backend. It is recommended to use this extension when specifying a
9812 location of the storage unit for a new hard disk.
9813
9814 Note that some backends do not work on files, so this array may be
9815 empty.
9816
9817 <see>IHardDiskFormat::capabilities</see>
9818 </desc>
9819 </attribute>
9820
9821 <attribute name="capabilities" type="unsigned long" readonly="yes">
9822 <desc>
9823 Capabilities of the format as a set of bit flags.
9824
9825 For the meaning of individual capability flags see
9826 <link to="HardDiskFormatCapabilities"/>.
9827 </desc>
9828 </attribute>
9829
9830 <method name="describeProperties">
9831 <desc>
9832 Returns several arrays describing the properties supported by this
9833 format.
9834
9835 An element with the given index in each array describes one
9836 property. Thus, the number of elements in each returned array is the
9837 same and corresponds to the number of supported properties.
9838
9839 The returned arrays are filled in only if the
9840 <link to="HardDiskFormatCapabilities_Properties"/> flag is set.
9841 All arguments must be non-NULL.
9842
9843 <see>DataType</see>
9844 <see>DataFlags</see>
9845 </desc>
9846
9847 <param name="names" type="wstring" safearray="yes" dir="out">
9848 <desc>Array of property names.</desc>
9849 </param>
9850 <param name="description" type="wstring" safearray="yes" dir="out">
9851 <desc>Array of property descriptions.</desc>
9852 </param>
9853 <param name="types" type="DataType" safearray="yes" dir="out">
9854 <desc>Array of property types.</desc>
9855 </param>
9856 <param name="flags" type="unsigned long" safearray="yes" dir="out">
9857 <desc>Array of property flags.</desc>
9858 </param>
9859 <param name="defaults" type="wstring" safearray="yes" dir="out">
9860 <desc>Array of default property values.</desc>
9861 </param>
9862 </method>
9863
9864 </interface>
9865
9866
9867 <!--
9868 // IFloppyImage
9869 /////////////////////////////////////////////////////////////////////////
9870 -->
9871
9872 <interface
9873 name="IFloppyImage" extends="IMedium"
9874 uuid="faa6101f-078c-4b3a-ab75-75670c8170b3"
9875 wsmap="managed"
9876 >
9877 <desc>
9878 The IFloppyImage interface represents a medium containing the image
9879 of a floppy disk. This is a subclass of <link to="IMedium" />; see remarks there.
9880 </desc>
9881
9882 </interface>
9883
9884
9885 <!--
9886 // IDVDImage
9887 /////////////////////////////////////////////////////////////////////////
9888 -->
9889
9890 <interface
9891 name="IDVDImage" extends="IMedium"
9892 uuid="b1f90bbb-e8a9-4484-9af1-3638e943f763"
9893 wsmap="managed"
9894 >
9895 <desc>
9896 The IDVDImage interface represents a medium containing the image
9897 of a CD or DVD disk in the ISO format.
9898
9899 This is a subclass of <link to="IMedium" />; see remarks there.
9900 </desc>
9901
9902 </interface>
9903
9904
9905 <!--
9906 // IDVDDrive
9907 /////////////////////////////////////////////////////////////////////////
9908 -->
9909
9910 <interface
9911 name="IDVDDrive" extends="$unknown"
9912 uuid="156944d1-4c6d-4812-8f12-ab3890767ab4"
9913 wsmap="managed"
9914 >
9915 <desc>
9916 The IDVDDrive interface represents the virtual CD/DVD drive of the
9917 virtual machine. An object of this type is returned by
9918 <link to="IMachine::DVDDrive"/>.
9919 </desc>
9920
9921 <attribute name="state" type="DriveState" readonly="yes">
9922 <desc>Current drive state.</desc>
9923 </attribute>
9924
9925 <attribute name="passthrough" type="boolean">
9926 <desc>
9927 When a host drive is mounted and passthrough is enabled
9928 the guest OS will be able to directly send SCSI commands to
9929 the host drive. This enables the guest OS to use CD/DVD writers
9930 but is potentially dangerous.
9931 </desc>
9932 </attribute>
9933
9934 <method name="mountImage">
9935 <desc>Mounts a CD/DVD image with the specified UUID.
9936
9937 <result name="VBOX_E_FILE_ERROR">
9938 Invalid image file location.
9939 </result>
9940 <result name="VBOX_E_OBJECT_NOT_FOUND">
9941 Could not find a CD/DVD image matching @a imageId.
9942 </result>
9943 <result name="VBOX_E_INVALID_OBJECT_STATE">
9944 Invalid media state.
9945 </result>
9946
9947 </desc>
9948 <param name="imageId" type="wstring" dir="in"/>
9949 </method>
9950
9951 <method name="captureHostDrive">
9952 <desc>Captures the specified host CD/DVD drive.</desc>
9953 <param name="drive" type="IHostDVDDrive" dir="in"/>
9954 </method>
9955
9956 <method name="unmount">
9957 <desc>Unmounts the currently mounted image or host drive.</desc>
9958 </method>
9959
9960 <method name="getImage">
9961 <desc>Returns the currently mounted CD/DVD image.</desc>
9962 <param name="image" type="IDVDImage" dir="return"/>
9963 </method>
9964
9965 <method name="getHostDrive">
9966 <desc>Returns the currently mounted host CD/DVD drive.</desc>
9967 <param name="drive" type="IHostDVDDrive" dir="return"/>
9968 </method>
9969
9970 </interface>
9971
9972
9973 <!--
9974 // IFloppyDrive
9975 /////////////////////////////////////////////////////////////////////////
9976 -->
9977
9978 <interface
9979 name="IFloppyDrive" extends="$unknown"
9980 uuid="a8676d38-5cf0-4b53-85b1-aa693611ab86"
9981 wsmap="managed"
9982 >
9983 <desc>
9984 The IFloppyDrive interface represents the virtual floppy drive of the
9985 virtual machine. An object of this type is returned by
9986 <link to="IMachine::floppyDrive" />.
9987 </desc>
9988
9989 <attribute name="enabled" type="boolean">
9990 <desc>
9991 Flag whether the floppy drive is enabled. If it is disabled,
9992 the floppy drive will not be reported to the guest OS.
9993 </desc>
9994 </attribute>
9995
9996 <attribute name="state" type="DriveState" readonly="yes">
9997 <desc>Current drive state.</desc>
9998 </attribute>
9999
10000 <method name="mountImage">
10001 <desc>Mounts a floppy image with the specified UUID.
10002
10003 <result name="VBOX_E_FILE_ERROR">
10004 Invalid image file location.
10005 </result>
10006 <result name="VBOX_E_OBJECT_NOT_FOUND">
10007 Could not find a floppy image matching @a imageID.
10008 </result>
10009 <result name="VBOX_E_INVALID_OBJECT_STATE">
10010 Invalid media state.
10011 </result>
10012
10013 </desc>
10014 <param name="imageId" type="wstring" dir="in"/>
10015 </method>
10016
10017 <method name="captureHostDrive">
10018 <desc>Captures the specified host floppy drive.</desc>
10019 <param name="drive" type="IHostFloppyDrive" dir="in"/>
10020 </method>
10021
10022 <method name="unmount">
10023 <desc>Unmounts the currently mounted image or host drive.</desc>
10024 </method>
10025
10026 <method name="getImage">
10027 <desc>Returns the currently mounted floppy image.</desc>
10028 <param name="image" type="IFloppyImage" dir="return"/>
10029 </method>
10030
10031 <method name="getHostDrive">
10032 <desc>Returns the currently mounted host floppy drive.</desc>
10033 <param name="drive" type="IHostFloppyDrive" dir="return"/>
10034 </method>
10035
10036 </interface>
10037
10038
10039 <!--
10040 // IKeyboard
10041 /////////////////////////////////////////////////////////////////////////
10042 -->
10043
10044 <interface
10045 name="IKeyboard" extends="$unknown"
10046 uuid="2d1a531b-4c6e-49cc-8af6-5c857b78b5d7"
10047 wsmap="managed"
10048 >
10049 <desc>
10050 The IKeyboard interface represents the virtual machine's keyboard. Used
10051 in <link to="IConsole::keyboard"/>.
10052
10053 Use this interface to send keystrokes or the Ctrl-Alt-Del sequence
10054 to the virtual machine.
10055
10056 </desc>
10057 <method name="putScancode">
10058 <desc>Sends a scancode to the keyboard.
10059
10060 <result name="VBOX_E_IPRT_ERROR">
10061 Could not send scan code to virtual keyboard.
10062 </result>
10063
10064 </desc>
10065 <param name="scancode" type="long" dir="in"/>
10066 </method>
10067
10068 <method name="putScancodes">
10069 <desc>Sends an array of scancodes to the keyboard.
10070
10071 <result name="VBOX_E_IPRT_ERROR">
10072 Could not send all scan codes to virtual keyboard.
10073 </result>
10074
10075 </desc>
10076 <param name="scancodes" type="long" dir="in" safearray="yes"/>
10077 <param name="codesStored" type="unsigned long" dir="return"/>
10078 </method>
10079
10080 <method name="putCAD">
10081 <desc>Sends the Ctrl-Alt-Del sequence to the keyboard. This
10082 function is nothing special, it is just a convenience function
10083 calling <link to="IKeyboard::putScancodes"/> with the proper scancodes.
10084
10085 <result name="VBOX_E_IPRT_ERROR">
10086 Could not send all scan codes to virtual keyboard.
10087 </result>
10088
10089 </desc>
10090 </method>
10091
10092 </interface>
10093
10094
10095 <!--
10096 // IMouse
10097 /////////////////////////////////////////////////////////////////////////
10098 -->
10099
10100 <enum
10101 name="MouseButtonState"
10102 uuid="03131722-2EC5-4173-9794-0DACA46673EF"
10103 >
10104 <desc>
10105 Mouse button state.
10106 </desc>
10107
10108 <const name="LeftButton" value="0x01"/>
10109 <const name="RightButton" value="0x02"/>
10110 <const name="MiddleButton" value="0x04"/>
10111 <const name="WheelUp" value="0x08"/>
10112 <const name="WheelDown" value="0x10"/>
10113 <const name="MouseStateMask" value="0x1F"/>
10114 </enum>
10115
10116 <interface
10117 name="IMouse" extends="$unknown"
10118 uuid="FD443EC1-0006-4F5B-9282-D72760A66916"
10119 wsmap="managed"
10120 >
10121 <desc>
10122 The IMouse interface represents the virtual machine's mouse. Used in
10123 <link to="IConsole::mouse"/>.
10124
10125 Through this interface, the virtual machine's virtual mouse can be
10126 controlled.
10127 </desc>
10128
10129 <attribute name="absoluteSupported" type="boolean" readonly="yes">
10130 <desc>
10131 Whether the guest OS supports absolute mouse pointer positioning
10132 or not.
10133 <note>
10134 VirtualBox Guest Tools need to be installed to the guest OS
10135 in order to enable absolute mouse positioning support.
10136 You can use the <link to="IConsoleCallback::onMouseCapabilityChange"/>
10137 callback to be instantly informed about changes of this attribute
10138 during virtual machine execution.
10139 </note>
10140 <see><link to="#putMouseEventAbsolute"/></see>
10141 </desc>
10142 </attribute>
10143
10144 <method name="putMouseEvent">
10145 <desc>
10146 Initiates a mouse event using relative pointer movements
10147 along x and y axis.
10148
10149 <result name="E_ACCESSDENIED">
10150 Console not powered up.
10151 </result>
10152 <result name="VBOX_E_IPRT_ERROR">
10153 Could not send mouse event to virtual mouse.
10154 </result>
10155
10156 </desc>
10157
10158 <param name="dx" type="long" dir="in">
10159 <desc>
10160 Amount of pixels the mouse should move to the right.
10161 Negative values move the mouse to the left.
10162 </desc>
10163 </param>
10164 <param name="dy" type="long" dir="in">
10165 <desc>
10166 Amount of pixels the mouse should move downwards.
10167 Negative values move the mouse upwards.
10168 </desc>
10169 </param>
10170 <param name="dz" type="long" dir="in">
10171 <desc>
10172 Amount of mouse wheel moves.
10173 Positive values describe clockwise wheel rotations,
10174 negative values describe counterclockwise rotations.
10175 </desc>
10176 </param>
10177 <param name="buttonState" type="long" dir="in">
10178 <desc>
10179 The current state of mouse buttons. Every bit represents
10180 a mouse button as follows:
10181 <table>
10182 <tr><td>Bit 0 (<tt>0x01</tt>)</td><td>left mouse button</td></tr>
10183 <tr><td>Bit 1 (<tt>0x02</tt>)</td><td>right mouse button</td></tr>
10184 <tr><td>Bit 2 (<tt>0x04</tt>)</td><td>middle mouse button</td></tr>
10185 </table>
10186 A value of <tt>1</tt> means the corresponding button is pressed.
10187 otherwise it is released.
10188 </desc>
10189 </param>
10190 </method>
10191
10192 <method name="putMouseEventAbsolute">
10193 <desc>
10194 Positions the mouse pointer using absolute x and y coordinates.
10195 These coordinates are expressed in pixels and
10196 start from <tt>[1,1]</tt> which corresponds to the top left
10197 corner of the virtual display.
10198
10199 <result name="E_ACCESSDENIED">
10200 Console not powered up.
10201 </result>
10202 <result name="VBOX_E_IPRT_ERROR">
10203 Could not send mouse event to virtual mouse.
10204 </result>
10205
10206 <note>
10207 This method will have effect only if absolute mouse
10208 positioning is supported by the guest OS.
10209 </note>
10210
10211 <see><link to="#absoluteSupported"/></see>
10212 </desc>
10213
10214 <param name="x" type="long" dir="in">
10215 <desc>
10216 X coordinate of the pointer in pixels, starting from <tt>1</tt>.
10217 </desc>
10218 </param>
10219 <param name="y" type="long" dir="in">
10220 <desc>
10221 Y coordinate of the pointer in pixels, starting from <tt>1</tt>.
10222 </desc>
10223 </param>
10224 <param name="dz" type="long" dir="in">
10225 <desc>
10226 Amount of mouse wheel moves.
10227 Positive values describe clockwise wheel rotations,
10228 negative values describe counterclockwise rotations.
10229 </desc>
10230 </param>
10231 <param name="buttonState" type="long" dir="in">
10232 <desc>
10233 The current state of mouse buttons. Every bit represents
10234 a mouse button as follows:
10235 <table>
10236 <tr><td>Bit 0 (<tt>0x01</tt>)</td><td>left mouse button</td></tr>
10237 <tr><td>Bit 1 (<tt>0x02</tt>)</td><td>right mouse button</td></tr>
10238 <tr><td>Bit 2 (<tt>0x04</tt>)</td><td>middle mouse button</td></tr>
10239 </table>
10240 A value of <tt>1</tt> means the corresponding button is pressed.
10241 otherwise it is released.
10242 </desc>
10243 </param>
10244 </method>
10245
10246 </interface>
10247
10248 <!--
10249 // IDisplay
10250 /////////////////////////////////////////////////////////////////////////
10251 -->
10252
10253 <enum
10254 name="FramebufferPixelFormat"
10255 uuid="7acfd5ed-29e3-45e3-8136-73c9224f3d2d"
10256 >
10257 <desc>
10258 Format of the video memory buffer. Constants represented by this enum can
10259 be used to test for particular values of <link
10260 to="IFramebuffer::pixelFormat"/>. See also <link
10261 to="IFramebuffer::requestResize"/>.
10262
10263 See also www.fourcc.org for more information about FOURCC pixel formats.
10264 </desc>
10265
10266 <const name="Opaque" value="0">
10267 <desc>
10268 Unknown buffer format (the user may not assume any particular format of
10269 the buffer).
10270 </desc>
10271 </const>
10272 <const name="FOURCC_RGB" value="0x32424752">
10273 <desc>
10274 Basic RGB format (<link to="IFramebuffer::bitsPerPixel"/> determines the
10275 bit layout).
10276 </desc>
10277 </const>
10278 </enum>
10279
10280 <interface
10281 name="IFramebuffer" extends="$unknown"
10282 uuid="b7ed347a-5765-40a0-ae1c-f543eb4ddeaf"
10283 wsmap="suppress"
10284 >
10285 <attribute name="address" type="octet" mod="ptr" readonly="yes">
10286 <desc>Address of the start byte of the frame buffer.</desc>
10287 </attribute>
10288
10289 <attribute name="width" type="unsigned long" readonly="yes">
10290 <desc>Frame buffer width, in pixels.</desc>
10291 </attribute>
10292
10293 <attribute name="height" type="unsigned long" readonly="yes">
10294 <desc>Frame buffer height, in pixels.</desc>
10295 </attribute>
10296
10297 <attribute name="bitsPerPixel" type="unsigned long" readonly="yes">
10298 <desc>
10299 Color depth, in bits per pixel. When <link to="#pixelFormat"/> is <link
10300 to="FramebufferPixelFormat_FOURCC_RGB">FOURCC_RGB</link>, valid values
10301 are: 8, 15, 16, 24 and 32.
10302 </desc>
10303 </attribute>
10304
10305 <attribute name="bytesPerLine" type="unsigned long" readonly="yes">
10306 <desc>
10307 Scan line size, in bytes. When <link to="#pixelFormat"/> is <link
10308 to="FramebufferPixelFormat_FOURCC_RGB">FOURCC_RGB</link>, the
10309 size of the scan line must be aligned to 32 bits.
10310 </desc>
10311 </attribute>
10312
10313 <attribute name="pixelFormat" type="unsigned long" readonly="yes">
10314 <desc>
10315 Frame buffer pixel format. It's either one of the values defined by <link
10316 to="FramebufferPixelFormat"/> or a raw FOURCC code.
10317 <note>
10318 This attribute must never return <link
10319 to="FramebufferPixelFormat_Opaque"/> -- the format of the buffer
10320 <link to="#address"/> points to must be always known.
10321 </note>
10322 </desc>
10323 </attribute>
10324
10325 <attribute name="usesGuestVRAM" type="boolean" readonly="yes">
10326 <desc>
10327 Defines whether this frame buffer uses the virtual video card's memory
10328 buffer (guest VRAM) directly or not. See <link
10329 to="IFramebuffer::requestResize"/> for more information.
10330 </desc>
10331 </attribute>
10332
10333 <attribute name="heightReduction" type="unsigned long" readonly="yes">
10334 <desc>
10335 Hint from the frame buffer about how much of the standard
10336 screen height it wants to use for itself. This information is
10337 exposed to the guest through the VESA BIOS and VMMDev interface
10338 so that it can use it for determining its video mode table. It
10339 is not guaranteed that the guest respects the value.
10340 </desc>
10341 </attribute>
10342
10343 <attribute name="overlay" type="IFramebufferOverlay" readonly="yes">
10344 <desc>
10345 An alpha-blended overlay which is superposed over the frame buffer.
10346 The initial purpose is to allow the display of icons providing
10347 information about the VM state, including disk activity, in front
10348 ends which do not have other means of doing that. The overlay is
10349 designed to controlled exclusively by IDisplay. It has no locking
10350 of its own, and any changes made to it are not guaranteed to be
10351 visible until the affected portion of IFramebuffer is updated. The
10352 overlay can be created lazily the first time it is requested. This
10353 attribute can also return NULL to signal that the overlay is not
10354 implemented.
10355 </desc>
10356 </attribute>
10357
10358 <attribute name="winId" type="unsigned long long" readonly="yes">
10359 <desc>
10360 Platform-dependent identifier of the window where context of this
10361 frame buffer is drawn, or zero if there's no such window.
10362 </desc>
10363 </attribute>
10364
10365 <method name="lock">
10366 <desc>
10367 Locks the frame buffer.
10368 Gets called by the IDisplay object where this frame buffer is
10369 bound to.
10370 </desc>
10371 </method>
10372
10373 <method name="unlock">
10374 <desc>
10375 Unlocks the frame buffer.
10376 Gets called by the IDisplay object where this frame buffer is
10377 bound to.
10378 </desc>
10379 </method>
10380
10381 <method name="notifyUpdate">
10382 <desc>
10383 Informs about an update.
10384 Gets called by the display object where this buffer is
10385 registered.
10386 </desc>
10387 <param name="x" type="unsigned long" dir="in"/>
10388 <param name="y" type="unsigned long" dir="in"/>
10389 <param name="width" type="unsigned long" dir="in"/>
10390 <param name="height" type="unsigned long" dir="in"/>
10391 </method>
10392
10393 <method name="requestResize">
10394 <desc>
10395 Requests a size and pixel format change.
10396
10397 There are two modes of working with the video buffer of the virtual
10398 machine. The <i>indirect</i> mode implies that the IFramebuffer
10399 implementation allocates a memory buffer for the requested display mode
10400 and provides it to the virtual machine. In <i>direct</i> mode, the
10401 IFramebuffer implementation uses the memory buffer allocated and owned
10402 by the virtual machine. This buffer represents the video memory of the
10403 emulated video adapter (so called <i>guest VRAM</i>). The direct mode is
10404 usually faster because the implementation gets a raw pointer to the
10405 guest VRAM buffer which it can directly use for visualizing the contents
10406 of the virtual display, as opposed to the indirect mode where the
10407 contents of guest VRAM are copied to the memory buffer provided by
10408 the implementation every time a display update occurs.
10409
10410 It is important to note that the direct mode is really fast only when
10411 the implementation uses the given guest VRAM buffer directly, for
10412 example, by blitting it to the window representing the virtual machine's
10413 display, which saves at least one copy operation comparing to the
10414 indirect mode. However, using the guest VRAM buffer directly is not
10415 always possible: the format and the color depth of this buffer may be
10416 not supported by the target window, or it may be unknown (opaque) as in
10417 case of text or non-linear multi-plane VGA video modes. In this case,
10418 the indirect mode (that is always available) should be used as a
10419 fallback: when the guest VRAM contents are copied to the
10420 implementation-provided memory buffer, color and format conversion is
10421 done automatically by the underlying code.
10422
10423 The @a pixelFormat parameter defines whether the direct mode is
10424 available or not. If @a pixelFormat is <link
10425 to="FramebufferPixelFormat_Opaque"/> then direct access to the guest
10426 VRAM buffer is not available -- the @a VRAM, @a bitsPerPixel and
10427 @a bytesPerLine parameters must be ignored and the implementation must use
10428 the indirect mode (where it provides its own buffer in one of the
10429 supported formats). In all other cases, @a pixelFormat together with
10430 @a bitsPerPixel and @a bytesPerLine define the format of the video memory
10431 buffer pointed to by the @a VRAM parameter and the implementation is
10432 free to choose which mode to use. To indicate that this frame buffer uses
10433 the direct mode, the implementation of the <link to="#usesGuestVRAM"/>
10434 attribute must return <tt>true</tt> and <link to="#address"/> must
10435 return exactly the same address that is passed in the @a VRAM parameter
10436 of this method; otherwise it is assumed that the indirect strategy is
10437 chosen.
10438
10439 The @a width and @a height parameters represent the size of the
10440 requested display mode in both modes. In case of indirect mode, the
10441 provided memory buffer should be big enough to store data of the given
10442 display mode. In case of direct mode, it is guaranteed that the given
10443 @a VRAM buffer contains enough space to represent the display mode of the
10444 given size. Note that this frame buffer's <link to="#width"/> and <link
10445 to="#height"/> attributes must return exactly the same values as
10446 passed to this method after the resize is completed (see below).
10447
10448 The @a finished output parameter determines if the implementation has
10449 finished resizing the frame buffer or not. If, for some reason, the
10450 resize cannot be finished immediately during this call, @a finished
10451 must be set to @c false, and the implementation must call
10452 <link to="IDisplay::resizeCompleted"/> after it has returned from
10453 this method as soon as possible. If @a finished is @c false, the
10454 machine will not call any frame buffer methods until
10455 <link to="IDisplay::resizeCompleted"/> is called.
10456
10457 Note that if the direct mode is chosen, the <link to="#bitsPerPixel"/>,
10458 <link to="#bytesPerLine"/> and <link to="#pixelFormat"/> attributes of
10459 this frame buffer must return exactly the same values as specified in the
10460 parameters of this method, after the resize is completed. If the
10461 indirect mode is chosen, these attributes must return values describing
10462 the format of the implementation's own memory buffer <link
10463 to="#address"/> points to. Note also that the <link to="#bitsPerPixel"/>
10464 value must always correlate with <link to="#pixelFormat"/>. Note that
10465 the <link to="#pixelFormat"/> attribute must never return <link
10466 to="FramebufferPixelFormat_Opaque"/> regardless of the selected mode.
10467
10468 <note>
10469 This method is called by the IDisplay object under the
10470 <link to="#lock"/> provided by this IFramebuffer
10471 implementation. If this method returns @c false in @a finished, then
10472 this lock is not released until
10473 <link to="IDisplay::resizeCompleted"/> is called.
10474 </note>
10475 </desc>
10476 <param name="screenId" type="unsigned long" dir="in">
10477 <desc>
10478 Logical screen number. Must be used in the corresponding call to
10479 <link to="IDisplay::resizeCompleted"/> if this call is made.
10480 </desc>
10481 </param>
10482 <param name="pixelFormat" type="unsigned long" dir="in">
10483 <desc>
10484 Pixel format of the memory buffer pointed to by @a VRAM.
10485 See also <link to="FramebufferPixelFormat"/>.
10486 </desc>
10487 </param>
10488 <param name="VRAM" type="octet" mod="ptr" dir="in">
10489 <desc>Pointer to the virtual video card's VRAM (may be @c null).</desc>
10490 </param>
10491 <param name="bitsPerPixel" type="unsigned long" dir="in">
10492 <desc>Color depth, bits per pixel.</desc>
10493 </param>
10494 <param name="bytesPerLine" type="unsigned long" dir="in">
10495 <desc>Size of one scan line, in bytes.</desc>
10496 </param>
10497 <param name="width" type="unsigned long" dir="in">
10498 <desc>Width of the guest display, in pixels.</desc>
10499 </param>
10500 <param name="height" type="unsigned long" dir="in">
10501 <desc>Height of the guest display, in pixels.</desc>
10502 </param>
10503 <param name="finished" type="boolean" dir="return">
10504 <desc>
10505 Can the VM start using the new frame buffer immediately
10506 after this method returns or it should wait for
10507 <link to="IDisplay::resizeCompleted"/>.
10508 </desc>
10509 </param>
10510 </method>
10511
10512 <method name="videoModeSupported">
10513 <desc>
10514 Returns whether the frame buffer implementation is willing to
10515 support a given video mode. In case it is not able to render
10516 the video mode (or for some reason not willing), it should
10517 return false. Usually this method is called when the guest
10518 asks the VMM device whether a given video mode is supported
10519 so the information returned is directly exposed to the guest.
10520 It is important that this method returns very quickly.
10521 </desc>
10522 <param name="width" type="unsigned long" dir="in"/>
10523 <param name="height" type="unsigned long" dir="in"/>
10524 <param name="bpp" type="unsigned long" dir="in"/>
10525 <param name="supported" type="boolean" dir="return"/>
10526 </method>
10527
10528 <method name="getVisibleRegion">
10529 <desc>
10530 Returns the visible region of this frame buffer.
10531
10532 If the @a rectangles parameter is <tt>NULL</tt> then the value of the
10533 @a count parameter is ignored and the number of elements necessary to
10534 describe the current visible region is returned in @a countCopied.
10535
10536 If @a rectangles is not <tt>NULL</tt> but @a count is less
10537 than the required number of elements to store region data, the method
10538 will report a failure. If @a count is equal or greater than the
10539 required number of elements, then the actual number of elements copied
10540 to the provided array will be returned in @a countCopied.
10541
10542 <note>
10543 The address of the provided array must be in the process space of
10544 this IFramebuffer object.
10545 </note>
10546 <note>
10547 Method not yet implemented.
10548 </note>
10549 </desc>
10550 <param name="rectangles" type="octet" mod="ptr" dir="in">
10551 <desc>Pointer to the <tt>RTRECT</tt> array to receive region data.</desc>
10552 </param>
10553 <param name="count" type="unsigned long" dir="in">
10554 <desc>Number of <tt>RTRECT</tt> elements in the @a rectangles array.</desc>
10555 </param>
10556 <param name="countCopied" type="unsigned long" dir="return">
10557 <desc>Number of elements copied to the @a rectangles array.</desc>
10558 </param>
10559 </method>
10560
10561 <method name="setVisibleRegion">
10562 <desc>
10563 Suggests a new visible region to this frame buffer. This region
10564 represents the area of the VM display which is a union of regions of
10565 all top-level windows of the guest operating system running inside the
10566 VM (if the Guest Additions for this system support this
10567 functionality). This information may be used by the frontends to
10568 implement the seamless desktop integration feature.
10569
10570 <note>
10571 The address of the provided array must be in the process space of
10572 this IFramebuffer object.
10573 </note>
10574 <note>
10575 The IFramebuffer implementation must make a copy of the provided
10576 array of rectangles.
10577 </note>
10578 <note>
10579 Method not yet implemented.
10580 </note>
10581 </desc>
10582 <param name="rectangles" type="octet" mod="ptr" dir="in">
10583 <desc>Pointer to the <tt>RTRECT</tt> array.</desc>
10584 </param>
10585 <param name="count" type="unsigned long" dir="in">
10586 <desc>Number of <tt>RTRECT</tt> elements in the @a rectangles array.</desc>
10587 </param>
10588 </method>
10589
10590 <method name="processVHWACommand">
10591 <desc>
10592 Posts a Video HW Acceleration Command to the frame buffer for processing.
10593 The commands used for 2D video acceleration (DDraw surface creation/destroying, blitting, scaling, color covnersion, overlaying, etc.)
10594 are posted from quest to the host to be processed by the host hardware.
10595
10596 <note>
10597 The address of the provided command must be in the process space of
10598 this IFramebuffer object.
10599 </note>
10600 </desc>
10601
10602 <param name="command" type="octet" mod="ptr" dir="in">
10603 <desc>Pointer to VBOXVHWACMD containing the command to execute.</desc>
10604 </param>
10605 </method>
10606
10607 </interface>
10608
10609 <interface
10610 name="IFramebufferOverlay" extends="IFramebuffer"
10611 uuid="0bcc1c7e-e415-47d2-bfdb-e4c705fb0f47"
10612 wsmap="suppress"
10613 >
10614 <desc>
10615 The IFramebufferOverlay interface represents an alpha blended overlay
10616 for displaying status icons above an IFramebuffer. It is always created
10617 not visible, so that it must be explicitly shown. It only covers a
10618 portion of the IFramebuffer, determined by its width, height and
10619 co-ordinates. It is always in packed pixel little-endian 32bit ARGB (in
10620 that order) format, and may be written to directly. Do re-read the
10621 width though, after setting it, as it may be adjusted (increased) to
10622 make it more suitable for the front end.
10623 </desc>
10624 <attribute name="x" type="unsigned long" readonly="yes">
10625 <desc>X position of the overlay, relative to the frame buffer.</desc>
10626 </attribute>
10627
10628 <attribute name="y" type="unsigned long" readonly="yes">
10629 <desc>Y position of the overlay, relative to the frame buffer.</desc>
10630 </attribute>
10631
10632 <attribute name="visible" type="boolean" readonly="no">
10633 <desc>
10634 Whether the overlay is currently visible.
10635 </desc>
10636 </attribute>
10637
10638 <attribute name="alpha" type="unsigned long" readonly="no">
10639 <desc>
10640 The global alpha value for the overlay. This may or may not be
10641 supported by a given front end.
10642 </desc>
10643 </attribute>
10644
10645 <method name="move">
10646 <desc>
10647 Changes the overlay's position relative to the IFramebuffer.
10648 </desc>
10649 <param name="x" type="unsigned long" dir="in"/>
10650 <param name="y" type="unsigned long" dir="in"/>
10651 </method>
10652
10653 </interface>
10654
10655 <interface
10656 name="IDisplay" extends="$unknown"
10657 uuid="26881797-bc98-444d-ac69-820633b93ec7"
10658 wsmap="suppress"
10659 >
10660 <desc>
10661 The IDisplay interface represents the virtual machine's display.
10662
10663 The object implementing this interface is contained in each
10664 <link to="IConsole::display"/> attribute and represents the visual
10665 output of the virtual machine.
10666
10667 The virtual display supports pluggable output targets represented by the
10668 IFramebuffer interface. Examples of the output target are a window on
10669 the host computer or an RDP session's display on a remote computer.
10670 </desc>
10671 <attribute name="width" type="unsigned long" readonly="yes">
10672 <desc>Current display width.</desc>
10673 </attribute>
10674
10675 <attribute name="height" type="unsigned long" readonly="yes">
10676 <desc>Current display height.</desc>
10677 </attribute>
10678
10679 <attribute name="bitsPerPixel" type="unsigned long" readonly="yes">
10680 <desc>
10681 Current guest display color depth. Note that this may differ
10682 from <link to="IFramebuffer::bitsPerPixel"/>.
10683 </desc>
10684 </attribute>
10685
10686 <method name="setFramebuffer">
10687 <desc>
10688 Sets the framebuffer for given screen.
10689 </desc>
10690 <param name="screenId" type="unsigned long" dir="in"/>
10691 <param name="framebuffer" type="IFramebuffer" dir="in"/>
10692 </method>
10693
10694 <method name="getFramebuffer">
10695 <desc>
10696 Queries the framebuffer for given screen.
10697 </desc>
10698 <param name="screenId" type="unsigned long" dir="in"/>
10699 <param name="framebuffer" type="IFramebuffer" dir="out"/>
10700 <param name="xOrigin" type="long" dir="out"/>
10701 <param name="yOrigin" type="long" dir="out"/>
10702 </method>
10703
10704 <method name="setVideoModeHint">
10705 <desc>
10706 Asks VirtualBox to request the given video mode from
10707 the guest. This is just a hint and it cannot be guaranteed
10708 that the requested resolution will be used. Guest Additions
10709 are required for the request to be seen by guests. The caller
10710 should issue the request and wait for a resolution change and
10711 after a timeout retry.
10712
10713 Specifying <tt>0</tt> for either @a width, @a height or @a bitsPerPixel
10714 parameters means that the corresponding values should be taken from the
10715 current video mode (i.e. left unchanged).
10716
10717 If the guest OS supports multi-monitor configuration then the @a display
10718 parameter specifies the number of the guest display to send the hint to:
10719 <tt>0</tt> is the primary display, <tt>1</tt> is the first secondary and
10720 so on. If the multi-monitor configuration is not supported, @a display
10721 must be <tt>0</tt>.
10722
10723 <result name="E_INVALIDARG">
10724 The @a display is not associated with any monitor.
10725 </result>
10726
10727 </desc>
10728 <param name="width" type="unsigned long" dir="in"/>
10729 <param name="height" type="unsigned long" dir="in"/>
10730 <param name="bitsPerPixel" type="unsigned long" dir="in"/>
10731 <param name="display" type="unsigned long" dir="in"/>
10732 </method>
10733
10734 <method name="setSeamlessMode">
10735 <desc>
10736 Enables or disables seamless guest display rendering (seamless desktop
10737 integration) mode.
10738 <note>
10739 Calling this method has no effect if <link
10740 to="IGuest::supportsSeamless"/> returns <tt>false</tt>.
10741 </note>
10742 </desc>
10743 <param name="enabled" type="boolean" dir="in"/>
10744 </method>
10745
10746 <method name="takeScreenShot">
10747 <desc>
10748 Takes a screen shot of the requested size and copies it to the
10749 32-bpp buffer allocated by the caller.
10750
10751 <result name="E_NOTIMPL">
10752 Feature not implemented.
10753 </result>
10754 <result name="VBOX_E_IPRT_ERROR">
10755 Could not take a screenshot.
10756 </result>
10757
10758 </desc>
10759 <param name="address" type="octet" mod="ptr" dir="in"/>
10760 <param name="width" type="unsigned long" dir="in"/>
10761 <param name="height" type="unsigned long" dir="in"/>
10762 </method>
10763
10764 <method name="drawToScreen">
10765 <desc>
10766 Draws a 32-bpp image of the specified size from the given buffer
10767 to the given point on the VM display.
10768
10769 <result name="E_NOTIMPL">
10770 Feature not implemented.
10771 </result>
10772 <result name="VBOX_E_IPRT_ERROR">
10773 Could not draw to screen.
10774 </result>
10775
10776 </desc>
10777 <param name="address" type="octet" mod="ptr" dir="in"/>
10778 <param name="x" type="unsigned long" dir="in"/>
10779 <param name="y" type="unsigned long" dir="in"/>
10780 <param name="width" type="unsigned long" dir="in"/>
10781 <param name="height" type="unsigned long" dir="in"/>
10782 </method>
10783
10784 <method name="invalidateAndUpdate">
10785 <desc>
10786 Does a full invalidation of the VM display and instructs the VM
10787 to update it.
10788
10789 <result name="VBOX_E_IPRT_ERROR">
10790 Could not invalidate and update screen.
10791 </result>
10792
10793 </desc>
10794 </method>
10795
10796 <method name="resizeCompleted">
10797 <desc>
10798 Signals that a framebuffer has completed the resize operation.
10799
10800 <result name="VBOX_E_NOT_SUPPORTED">
10801 Operation only valid for external frame buffers.
10802 </result>
10803
10804 </desc>
10805 <param name="screenId" type="unsigned long" dir="in"/>
10806 </method>
10807
10808 <method name="updateCompleted">
10809 <desc>
10810 Signals that a framebuffer has completed the update operation.
10811
10812 <result name="VBOX_E_NOT_SUPPORTED">
10813 Operation only valid for external frame buffers.
10814 </result>
10815
10816 </desc>
10817 </method>
10818
10819 <method name="completeVHWACommand">
10820 <desc>
10821 Signals that the Video HW Acceleration command has completed.
10822 </desc>
10823
10824 <param name="command" type="octet" mod="ptr" dir="in">
10825 <desc>Pointer to VBOXVHWACMD containing the completed command.</desc>
10826 </param>
10827 </method>
10828
10829 </interface>
10830
10831 <!--
10832 // INetworkAdapter
10833 /////////////////////////////////////////////////////////////////////////
10834 -->
10835
10836 <enum
10837 name="NetworkAttachmentType"
10838 uuid="44bce1ee-99f7-4e8e-89fc-80597fd9eeaf"
10839 >
10840 <desc>
10841 Network attachment type.
10842 </desc>
10843
10844 <const name="Null" value="0">
10845 <desc>Null value, also means "not attached".</desc>
10846 </const>
10847 <const name="NAT" value="1"/>
10848 <const name="Bridged" value="2"/>
10849 <const name="Internal" value="3"/>
10850 <const name="HostOnly" value="4"/>
10851 </enum>
10852
10853 <enum
10854 name="NetworkAdapterType"
10855 uuid="50c3dfd8-07ac-4a31-baac-519c828fbf97"
10856 >
10857 <desc>
10858 Network adapter type.
10859 </desc>
10860
10861 <const name="Null" value="0">
10862 <desc>Null value (never used by the API).</desc>
10863 </const>
10864 <const name="Am79C970A" value="1">
10865 <desc>AMD PCNet-PCI II network card (Am79C970A).</desc>
10866 </const>
10867 <const name="Am79C973" value="2">
10868 <desc>AMD PCNet-FAST III network card (Am79C973).</desc>
10869 </const>
10870 <const name="I82540EM" value="3">
10871 <desc>Intel PRO/1000 MT Desktop network card (82540EM).</desc>
10872 </const>
10873 <const name="I82543GC" value="4">
10874 <desc>Intel PRO/1000 T Server network card (82543GC).</desc>
10875 </const>
10876 <const name="I82545EM" value="5">
10877 <desc>Intel PRO/1000 MT Server network card (82545EM).</desc>
10878 </const>
10879 </enum>
10880
10881 <interface
10882 name="INetworkAdapter" extends="$unknown"
10883 uuid="65607a27-2b73-4d43-b4cc-0ba2c817fbde"
10884 wsmap="managed"
10885 >
10886 <desc>
10887 Represents a virtual network adapter that is attached to a virtual machine.
10888 Each virtual machine has a fixed number of network adapter slots with one
10889 instance of this attached to each of them. Call
10890 <link to="IMachine::getNetworkAdapter" /> to get the network adapter that
10891 is attached to a given slot in a given machine.
10892
10893 Each network adapter can be in one of five attachment modes, which are
10894 represented by the <link to="NetworkAttachmentType" /> enumeration;
10895 see the <link to="#attachmentType" /> attribute.
10896 </desc>
10897
10898 <attribute name="adapterType" type="NetworkAdapterType">
10899 <desc>
10900 Type of the virtual network adapter. Depending on this value,
10901 VirtualBox will provide a different virtual network hardware
10902 to the guest.
10903 </desc>
10904 </attribute>
10905
10906 <attribute name="slot" type="unsigned long" readonly="yes">
10907 <desc>
10908 Slot number this adapter is plugged into. Corresponds to
10909 the value you pass to <link to="IMachine::getNetworkAdapter"/>
10910 to obtain this instance.
10911 </desc>
10912 </attribute>
10913
10914 <attribute name="enabled" type="boolean">
10915 <desc>
10916 Flag whether the network adapter is present in the
10917 guest system. If disabled, the virtual guest hardware will
10918 not contain this network adapter. Can only be changed when
10919 the VM is not running.
10920 </desc>
10921 </attribute>
10922
10923 <attribute name="MACAddress" type="wstring">
10924 <desc>
10925 Ethernet MAC address of the adapter, 12 hexadecimal characters. When setting
10926 it to NULL, VirtualBox will generate a unique MAC address.
10927 </desc>
10928 </attribute>
10929
10930 <attribute name="attachmentType" type="NetworkAttachmentType" readonly="yes"/>
10931
10932 <attribute name="hostInterface" type="wstring">
10933 <desc>
10934 Name of the host network interface the VM is attached to.
10935 </desc>
10936 </attribute>
10937
10938 <attribute name="internalNetwork" type="wstring">
10939 <desc>
10940 Name of the internal network the VM is attached to.
10941 </desc>
10942 </attribute>
10943
10944 <attribute name="NATNetwork" type="wstring">
10945 <desc>
10946 Name of the NAT network the VM is attached to.
10947 </desc>
10948 </attribute>
10949
10950 <attribute name="cableConnected" type="boolean">
10951 <desc>
10952 Flag whether the adapter reports the cable as connected or not.
10953 It can be used to report offline situations to a VM.
10954 </desc>
10955 </attribute>
10956
10957 <attribute name="lineSpeed" type="unsigned long">
10958 <desc>
10959 Line speed reported by custom drivers, in units of 1 kbps.
10960 </desc>
10961 </attribute>
10962
10963 <attribute name="traceEnabled" type="boolean">
10964 <desc>
10965 Flag whether network traffic from/to the network card should be traced.
10966 Can only be toggled when the VM is turned off.
10967 </desc>
10968 </attribute>
10969
10970 <attribute name="traceFile" type="wstring">
10971 <desc>
10972 Filename where a network trace will be stored. If not set, VBox-pid.pcap
10973 will be used.
10974 </desc>
10975 </attribute>
10976
10977 <method name="attachToNAT">
10978 <desc>
10979 Attach the network adapter to the Network Address Translation (NAT) interface.
10980 </desc>
10981 </method>
10982
10983 <method name="attachToBridgedInterface">
10984 <desc>
10985 Attach the network adapter to a bridged host interface.
10986 </desc>
10987 </method>
10988
10989 <method name="attachToInternalNetwork">
10990 <desc>
10991 Attach the network adapter to an internal network.
10992 </desc>
10993 </method>
10994
10995 <method name="attachToHostOnlyInterface">
10996 <desc>
10997 Attach the network adapter to the host-only network.
10998 </desc>
10999 </method>
11000
11001 <method name="detach">
11002 <desc>
11003 Detach the network adapter
11004 </desc>
11005 </method>
11006 </interface>
11007
11008
11009 <!--
11010 // ISerialPort
11011 /////////////////////////////////////////////////////////////////////////
11012 -->
11013
11014 <enum
11015 name="PortMode"
11016 uuid="533b5fe3-0185-4197-86a7-17e37dd39d76"
11017 >
11018 <desc>
11019 The PortMode enumeration represents possible communication modes for
11020 the virtual serial port device.
11021 </desc>
11022
11023 <const name="Disconnected" value="0">
11024 <desc>Virtual device is not attached to any real host device.</desc>
11025 </const>
11026 <const name="HostPipe" value="1">
11027 <desc>Virtual device is attached to a host pipe.</desc>
11028 </const>
11029 <const name="HostDevice" value="2">
11030 <desc>Virtual device is attached to a host device.</desc>
11031 </const>
11032 <const name="RawFile" value="3">
11033 <desc>Virtual device is attached to a raw file.</desc>
11034 </const>
11035 </enum>
11036
11037 <interface
11038 name="ISerialPort" extends="$unknown"
11039 uuid="937f6970-5103-4745-b78e-d28dcf1479a8"
11040 wsmap="managed"
11041 >
11042
11043 <desc>
11044 The ISerialPort interface represents the virtual serial port device.
11045
11046 The virtual serial port device acts like an ordinary serial port
11047 inside the virtual machine. This device communicates to the real
11048 serial port hardware in one of two modes: host pipe or host device.
11049
11050 In host pipe mode, the #path attribute specifies the path to the pipe on
11051 the host computer that represents a serial port. The #server attribute
11052 determines if this pipe is created by the virtual machine process at
11053 machine startup or it must already exist before starting machine
11054 execution.
11055
11056 In host device mode, the #path attribute specifies the name of the
11057 serial port device on the host computer.
11058
11059 There is also a third communication mode: the disconnected mode. In this
11060 mode, the guest OS running inside the virtual machine will be able to
11061 detect the serial port, but all port write operations will be discarded
11062 and all port read operations will return no data.
11063
11064 <see>IMachine::getSerialPort</see>
11065 </desc>
11066
11067 <attribute name="slot" type="unsigned long" readonly="yes">
11068 <desc>
11069 Slot number this serial port is plugged into. Corresponds to
11070 the value you pass to <link to="IMachine::getSerialPort"/>
11071 to obtain this instance.
11072 </desc>
11073 </attribute>
11074
11075 <attribute name="enabled" type="boolean">
11076 <desc>
11077 Flag whether the serial port is enabled. If disabled,
11078 the serial port will not be reported to the guest OS.
11079 </desc>
11080 </attribute>
11081
11082 <attribute name="IOBase" type="unsigned long">
11083 <desc>Base I/O address of the serial port.</desc>
11084 </attribute>
11085
11086 <attribute name="IRQ" type="unsigned long">
11087 <desc>IRQ number of the serial port.</desc>
11088 </attribute>
11089
11090 <attribute name="hostMode" type="PortMode">
11091 <desc>
11092 How is this port connected to the host.
11093 <note>
11094 Changing this attribute may fail if the conditions for
11095 <link to="#path"/> are not met.
11096 </note>
11097 </desc>
11098 </attribute>
11099
11100 <attribute name="server" type="boolean">
11101 <desc>
11102 Flag whether this serial port acts as a server (creates a new pipe on
11103 the host) or as a client (uses the existing pipe). This attribute is
11104 used only when <link to="#hostMode"/> is PortMode_HostPipe.
11105 </desc>
11106 </attribute>
11107
11108 <attribute name="path" type="wstring">
11109 <desc>
11110 Path to the serial port's pipe on the host when <link to="ISerialPort::hostMode"/> is
11111 PortMode_HostPipe, or the host serial device name when
11112 <link to="ISerialPort::hostMode"/> is PortMode_HostDevice. For both
11113 cases, setting a @c null or empty string as the attribute's value
11114 is an error. Otherwise, the value of this property is ignored.
11115 </desc>
11116 </attribute>
11117
11118 </interface>
11119
11120 <!--
11121 // IParallelPort
11122 /////////////////////////////////////////////////////////////////////////
11123 -->
11124
11125 <interface
11126 name="IParallelPort" extends="$unknown"
11127 uuid="0c925f06-dd10-4b77-8de8-294d738c3214"
11128 wsmap="managed"
11129 >
11130
11131 <desc>
11132 The IParallelPort interface represents the virtual parallel port device.
11133
11134 The virtual parallel port device acts like an ordinary parallel port
11135 inside the virtual machine. This device communicates to the real
11136 parallel port hardware using the name of the parallel device on the host
11137 computer specified in the #path attribute.
11138
11139 Each virtual parallel port device is assigned a base I/O address and an
11140 IRQ number that will be reported to the guest operating system and used
11141 to operate the given parallel port from within the virtual machine.
11142
11143 <see>IMachine::getParallelPort</see>
11144 </desc>
11145
11146 <attribute name="slot" type="unsigned long" readonly="yes">
11147 <desc>
11148 Slot number this parallel port is plugged into. Corresponds to
11149 the value you pass to <link to="IMachine::getParallelPort"/>
11150 to obtain this instance.
11151 </desc>
11152 </attribute>
11153
11154 <attribute name="enabled" type="boolean">
11155 <desc>
11156 Flag whether the parallel port is enabled. If disabled,
11157 the parallel port will not be reported to the guest OS.
11158 </desc>
11159 </attribute>
11160
11161 <attribute name="IOBase" type="unsigned long">
11162 <desc>Base I/O address of the parallel port.</desc>
11163 </attribute>
11164
11165 <attribute name="IRQ" type="unsigned long">
11166 <desc>IRQ number of the parallel port.</desc>
11167 </attribute>
11168
11169 <attribute name="path" type="wstring">
11170 <desc>
11171 Host parallel device name. If this parallel port is enabled, setting a
11172 @c null or an empty string as this attribute's value will result into
11173 an error.
11174 </desc>
11175 </attribute>
11176
11177 </interface>
11178
11179
11180 <!--
11181 // IMachineDebugger
11182 /////////////////////////////////////////////////////////////////////////
11183 -->
11184
11185 <interface
11186 name="IMachineDebugger" extends="$unknown"
11187 uuid="b0b2a2dd-0627-4502-91c2-ddc5e77609e0"
11188 wsmap="suppress"
11189 >
11190 <method name="resetStats">
11191 <desc>
11192 Reset VM statistics.
11193 </desc>
11194 <param name="pattern" type="wstring" dir="in">
11195 <desc>The selection pattern. A bit similar to filename globbing.</desc>
11196 </param>
11197 </method>
11198
11199 <method name="dumpStats">
11200 <desc>
11201 Dumps VM statistics.
11202 </desc>
11203 <param name="pattern" type="wstring" dir="in">
11204 <desc>The selection pattern. A bit similar to filename globbing.</desc>
11205 </param>
11206 </method>
11207
11208 <method name="getStats">
11209 <desc>
11210 Get the VM statistics in a XMLish format.
11211 </desc>
11212 <param name="pattern" type="wstring" dir="in">
11213 <desc>The selection pattern. A bit similar to filename globbing.</desc>
11214 </param>
11215 <param name="withDescriptions" type="boolean" dir="in">
11216 <desc>Whether to include the descriptions.</desc>
11217 </param>
11218 <param name="stats" type="wstring" dir="out">
11219 <desc>The XML document containing the statistics.</desc>
11220 </param>
11221 </method>
11222
11223 <method name="injectNMI">
11224 <desc>
11225 Inject an NMI into a running VT-x/AMD-V VM.
11226 </desc>
11227 </method>
11228
11229 <attribute name="singlestep" type="boolean">
11230 <desc>Switch for enabling singlestepping.</desc>
11231 </attribute>
11232
11233 <attribute name="recompileUser" type="boolean">
11234 <desc>Switch for forcing code recompilation for user mode code.</desc>
11235 </attribute>
11236
11237 <attribute name="recompileSupervisor" type="boolean">
11238 <desc>Switch for forcing code recompilation for supervisor mode code.</desc>
11239 </attribute>
11240
11241 <attribute name="PATMEnabled" type="boolean">
11242 <desc>Switch for enabling and disabling the PATM component.</desc>
11243 </attribute>
11244
11245 <attribute name="CSAMEnabled" type="boolean">
11246 <desc>Switch for enabling and disabling the CSAM component.</desc>
11247 </attribute>
11248
11249 <attribute name="logEnabled" type="boolean">
11250 <desc>Switch for enabling and disabling logging.</desc>
11251 </attribute>
11252
11253 <attribute name="HWVirtExEnabled" type="boolean" readonly="yes">
11254 <desc>
11255 Flag indicating whether the VM is currently making use of CPU hardware
11256 virtualization extensions.
11257 </desc>
11258 </attribute>
11259
11260 <attribute name="HWVirtExNestedPagingEnabled" type="boolean" readonly="yes">
11261 <desc>
11262 Flag indicating whether the VM is currently making use of the nested paging
11263 CPU hardware virtualization extension.
11264 </desc>
11265 </attribute>
11266
11267 <attribute name="HWVirtExVPIDEnabled" type="boolean" readonly="yes">
11268 <desc>
11269 Flag indicating whether the VM is currently making use of the VPID
11270 VT-x extension.
11271 </desc>
11272 </attribute>
11273
11274 <attribute name="PAEEnabled" type="boolean" readonly="yes">
11275 <desc>
11276 Flag indicating whether the VM is currently making use of the Physical
11277 Address Extension CPU feature.
11278 </desc>
11279 </attribute>
11280
11281 <attribute name="virtualTimeRate" type="unsigned long">
11282 <desc>
11283 The rate at which the virtual time runs expressed as a percentage.
11284 The accepted range is 2% to 20000%.
11285 </desc>
11286 </attribute>
11287
11288 <!-- @todo method for setting log flags, groups and destination! -->
11289
11290 <attribute name="VM" type="unsigned long long" readonly="yes">
11291 <desc>
11292 Gets the VM handle. This is only for internal use while
11293 we carve the details of this interface.
11294 </desc>
11295 </attribute>
11296
11297 </interface>
11298
11299 <!--
11300 // IUSBController
11301 /////////////////////////////////////////////////////////////////////////
11302 -->
11303
11304 <interface
11305 name="IUSBController" extends="$unknown"
11306 uuid="238540fa-4b73-435a-a38e-4e1d9eab5c17"
11307 wsmap="managed"
11308 >
11309 <attribute name="enabled" type="boolean">
11310 <desc>
11311 Flag whether the USB controller is present in the
11312 guest system. If disabled, the virtual guest hardware will
11313 not contain any USB controller. Can only be changed when
11314 the VM is powered off.
11315 </desc>
11316 </attribute>
11317
11318 <attribute name="enabledEhci" type="boolean">
11319 <desc>
11320 Flag whether the USB EHCI controller is present in the
11321 guest system. If disabled, the virtual guest hardware will
11322 not contain a USB EHCI controller. Can only be changed when
11323 the VM is powered off.
11324 </desc>
11325 </attribute>
11326
11327 <attribute name="USBStandard" type="unsigned short" readonly="yes">
11328 <desc>
11329 USB standard version which the controller implements.
11330 This is a BCD which means that the major version is in the
11331 high byte and minor version is in the low byte.
11332 </desc>
11333 </attribute>
11334
11335 <attribute name="deviceFilters" type="IUSBDeviceFilter" readonly="yes" safearray="yes">
11336 <desc>
11337 List of USB device filters associated with the machine.
11338
11339 If the machine is currently running, these filters are activated
11340 every time a new (supported) USB device is attached to the host
11341 computer that was not ignored by global filters
11342 (<link to="IHost::USBDeviceFilters"/>).
11343
11344 These filters are also activated when the machine is powered up.
11345 They are run against a list of all currently available USB
11346 devices (in states
11347 <link to="USBDeviceState_Available"/>,
11348 <link to="USBDeviceState_Busy"/>,
11349 <link to="USBDeviceState_Held"/>) that were not previously
11350 ignored by global filters.
11351
11352 If at least one filter matches the USB device in question, this
11353 device is automatically captured (attached to) the virtual USB
11354 controller of this machine.
11355
11356 <see>IUSBDeviceFilter, ::IUSBController</see>
11357 </desc>
11358 </attribute>
11359
11360 <method name="createDeviceFilter">
11361 <desc>
11362 Creates a new USB device filter. All attributes except
11363 the filter name are set to <tt>null</tt> (any match),
11364 <i>active</i> is <tt>false</tt> (the filter is not active).
11365
11366 The created filter can then be added to the list of filters using
11367 <link to="#insertDeviceFilter"/>.
11368
11369 <result name="VBOX_E_INVALID_VM_STATE">
11370 The virtual machine is not mutable.
11371 </result>
11372
11373 <see>#deviceFilters</see>
11374 </desc>
11375 <param name="name" type="wstring" dir="in">
11376 <desc>
11377 Filter name. See <link to="IUSBDeviceFilter::name"/>
11378 for more info.
11379 </desc>
11380 </param>
11381 <param name="filter" type="IUSBDeviceFilter" dir="return">
11382 <desc>Created filter object.</desc>
11383 </param>
11384 </method>
11385
11386 <method name="insertDeviceFilter">
11387 <desc>
11388 Inserts the given USB device to the specified position
11389 in the list of filters.
11390
11391 Positions are numbered starting from <tt>0</tt>. If the specified
11392 position is equal to or greater than the number of elements in
11393 the list, the filter is added to the end of the collection.
11394
11395 <note>
11396 Duplicates are not allowed, so an attempt to insert a
11397 filter that is already in the collection, will return an
11398 error.
11399 </note>
11400
11401 <result name="VBOX_E_INVALID_VM_STATE">
11402 Virtual machine is not mutable.
11403 </result>
11404 <result name="E_INVALIDARG">
11405 USB device filter not created within this VirtualBox instance.
11406 </result>
11407 <result name="VBOX_E_INVALID_OBJECT_STATE">
11408 USB device filter already in list.
11409 </result>
11410
11411 <see>#deviceFilters</see>
11412 </desc>
11413 <param name="position" type="unsigned long" dir="in">
11414 <desc>Position to insert the filter to.</desc>
11415 </param>
11416 <param name="filter" type="IUSBDeviceFilter" dir="in">
11417 <desc>USB device filter to insert.</desc>
11418 </param>
11419 </method>
11420
11421 <method name="removeDeviceFilter">
11422 <desc>
11423 Removes a USB device filter from the specified position in the
11424 list of filters.
11425
11426 Positions are numbered starting from <tt>0</tt>. Specifying a
11427 position equal to or greater than the number of elements in
11428 the list will produce an error.
11429
11430 <see>#deviceFilters</see>
11431
11432 <result name="VBOX_E_INVALID_VM_STATE">
11433 Virtual machine is not mutable.
11434 </result>
11435 <result name="E_INVALIDARG">
11436 USB device filter list empty or invalid @a position.
11437 </result>
11438
11439 </desc>
11440 <param name="position" type="unsigned long" dir="in">
11441 <desc>Position to remove the filter from.</desc>
11442 </param>
11443 <param name="filter" type="IUSBDeviceFilter" dir="return">
11444 <desc>Removed USB device filter.</desc>
11445 </param>
11446 </method>
11447
11448 </interface>
11449
11450
11451 <!--
11452 // IUSBDevice
11453 /////////////////////////////////////////////////////////////////////////
11454 -->
11455
11456 <interface
11457 name="IUSBDevice" extends="$unknown"
11458 uuid="f8967b0b-4483-400f-92b5-8b675d98a85b"
11459 wsmap="managed"
11460 >
11461 <desc>
11462 The IUSBDevice interface represents a virtual USB device attached to the
11463 virtual machine.
11464
11465 A collection of objects implementing this interface is stored in the
11466 <link to="IConsole::USBDevices"/> attribute which lists all USB devices
11467 attached to a running virtual machine's USB controller.
11468 </desc>
11469
11470 <attribute name="id" type="wstring" readonly="yes">
11471 <desc>
11472 Unique USB device ID. This ID is built from #vendorId,
11473 #productId, #revision and #serialNumber.
11474 </desc>
11475 </attribute>
11476
11477 <attribute name="vendorId" type="unsigned short" readonly="yes">
11478 <desc>Vendor ID.</desc>
11479 </attribute>
11480
11481 <attribute name="productId" type="unsigned short" readonly="yes">
11482 <desc>Product ID.</desc>
11483 </attribute>
11484
11485 <attribute name="revision" type="unsigned short" readonly="yes">
11486 <desc>
11487 Product revision number. This is a packed BCD represented as
11488 unsigned short. The high byte is the integer part and the low
11489 byte is the decimal.
11490 </desc>
11491 </attribute>
11492
11493 <attribute name="manufacturer" type="wstring" readonly="yes">
11494 <desc>Manufacturer string.</desc>
11495 </attribute>
11496
11497 <attribute name="product" type="wstring" readonly="yes">
11498 <desc>Product string.</desc>
11499 </attribute>
11500
11501 <attribute name="serialNumber" type="wstring" readonly="yes">
11502 <desc>Serial number string.</desc>
11503 </attribute>
11504
11505 <attribute name="address" type="wstring" readonly="yes">
11506 <desc>Host specific address of the device.</desc>
11507 </attribute>
11508
11509 <attribute name="port" type="unsigned short" readonly="yes">
11510 <desc>
11511 Host USB port number the device is physically
11512 connected to.
11513 </desc>
11514 </attribute>
11515
11516 <attribute name="version" type="unsigned short" readonly="yes">
11517 <desc>
11518 The major USB version of the device - 1 or 2.
11519 </desc>
11520 </attribute>
11521
11522 <attribute name="portVersion" type="unsigned short" readonly="yes">
11523 <desc>
11524 The major USB version of the host USB port the device is
11525 physically connected to - 1 or 2. For devices not connected to
11526 anything this will have the same value as the version attribute.
11527 </desc>
11528 </attribute>
11529
11530 <attribute name="remote" type="boolean" readonly="yes">
11531 <desc>
11532 Whether the device is physically connected to a remote VRDP
11533 client or to a local host machine.
11534 </desc>
11535 </attribute>
11536
11537 </interface>
11538
11539
11540 <!--
11541 // IUSBDeviceFilter
11542 /////////////////////////////////////////////////////////////////////////
11543 -->
11544
11545 <interface
11546 name="IUSBDeviceFilter" extends="$unknown"
11547 uuid="d6831fb4-1a94-4c2c-96ef-8d0d6192066d"
11548 wsmap="managed"
11549 >
11550 <desc>
11551 The IUSBDeviceFilter interface represents an USB device filter used
11552 to perform actions on a group of USB devices.
11553
11554 This type of filters is used by running virtual machines to
11555 automatically capture selected USB devices once they are physically
11556 attached to the host computer.
11557
11558 A USB device is matched to the given device filter if and only if all
11559 attributes of the device match the corresponding attributes of the
11560 filter (that is, attributes are joined together using the logical AND
11561 operation). On the other hand, all together, filters in the list of
11562 filters carry the semantics of the logical OR operation. So if it is
11563 desirable to create a match like "this vendor id OR this product id",
11564 one needs to create two filters and specify "any match" (see below)
11565 for unused attributes.
11566
11567 All filter attributes used for matching are strings. Each string
11568 is an expression representing a set of values of the corresponding
11569 device attribute, that will match the given filter. Currently, the
11570 following filtering expressions are supported:
11571
11572 <ul>
11573 <li><i>Interval filters</i>. Used to specify valid intervals for
11574 integer device attributes (Vendor ID, Product ID and Revision).
11575 The format of the string is:
11576
11577 <tt>int:((m)|([m]-[n]))(,(m)|([m]-[n]))*</tt>
11578
11579 where <tt>m</tt> and <tt>n</tt> are integer numbers, either in octal
11580 (starting from <tt>0</tt>), hexadecimal (starting from <tt>0x</tt>)
11581 or decimal (otherwise) form, so that <tt>m &lt; n</tt>. If <tt>m</tt>
11582 is omitted before a dash (<tt>-</tt>), the minimum possible integer
11583 is assumed; if <tt>n</tt> is omitted after a dash, the maximum
11584 possible integer is assumed.
11585 </li>
11586 <li><i>Boolean filters</i>. Used to specify acceptable values for
11587 boolean device attributes. The format of the string is:
11588
11589 <tt>true|false|yes|no|0|1</tt>
11590
11591 </li>
11592 <li><i>Exact match</i>. Used to specify a single value for the given
11593 device attribute. Any string that doesn't start with <tt>int:</tt>
11594 represents the exact match. String device attributes are compared to
11595 this string including case of symbols. Integer attributes are first
11596 converted to a string (see individual filter attributes) and then
11597 compared ignoring case.
11598
11599 </li>
11600 <li><i>Any match</i>. Any value of the corresponding device attribute
11601 will match the given filter. An empty or <tt>null</tt> string is
11602 used to construct this type of filtering expressions.
11603
11604 </li>
11605 </ul>
11606
11607 <note>
11608 On the Windows host platform, interval filters are not currently
11609 available. Also all string filter attributes
11610 (<link to="#manufacturer"/>, <link to="#product"/>,
11611 <link to="#serialNumber"/>) are ignored, so they behave as
11612 <i>any match</i> no matter what string expression is specified.
11613 </note>
11614
11615 <see>IUSBController::deviceFilters, IHostUSBDeviceFilter</see>
11616 </desc>
11617
11618 <attribute name="name" type="wstring">
11619 <desc>
11620 Visible name for this filter.
11621 This name is used to visually distinguish one filter from another,
11622 so it can neither be <tt>null</tt> nor an empty string.
11623 </desc>
11624 </attribute>
11625
11626 <attribute name="active" type="boolean">
11627 <desc>Whether this filter active or has been temporarily disabled.</desc>
11628 </attribute>
11629
11630 <attribute name="vendorId" type="wstring">
11631 <desc>
11632 <link to="IUSBDevice::vendorId">Vendor ID</link> filter.
11633 The string representation for the <i>exact matching</i>
11634 has the form <tt>XXXX</tt>, where <tt>X</tt> is the hex digit
11635 (including leading zeroes).
11636 </desc>
11637 </attribute>
11638
11639 <attribute name="productId" type="wstring">
11640 <desc>
11641 <link to="IUSBDevice::productId">Product ID</link> filter.
11642 The string representation for the <i>exact matching</i>
11643 has the form <tt>XXXX</tt>, where <tt>X</tt> is the hex digit
11644 (including leading zeroes).
11645 </desc>
11646 </attribute>
11647
11648 <attribute name="revision" type="wstring">
11649 <desc>
11650 <link to="IUSBDevice::productId">Product revision number</link>
11651 filter. The string representation for the <i>exact matching</i>
11652 has the form <tt>IIFF</tt>, where <tt>I</tt> is the decimal digit
11653 of the integer part of the revision, and <tt>F</tt> is the
11654 decimal digit of its fractional part (including leading and
11655 trailing zeros).
11656 Note that for interval filters, it's best to use the hexadecimal
11657 form, because the revision is stored as a 16 bit packed BCD value;
11658 so the expression <tt>int:0x0100-0x0199</tt> will match any
11659 revision from <tt>1.0</tt> to <tt>1.99</tt>.
11660 </desc>
11661 </attribute>
11662
11663 <attribute name="manufacturer" type="wstring">
11664 <desc>
11665 <link to="IUSBDevice::manufacturer">Manufacturer</link> filter.
11666 </desc>
11667 </attribute>
11668
11669 <attribute name="product" type="wstring">
11670 <desc>
11671 <link to="IUSBDevice::product">Product</link> filter.
11672 </desc>
11673 </attribute>
11674
11675 <attribute name="serialNumber" type="wstring">
11676 <desc>
11677 <link to="IUSBDevice::serialNumber">Serial number</link> filter.
11678 </desc>
11679 </attribute>
11680
11681 <attribute name="port" type="wstring">
11682 <desc>
11683 <link to="IUSBDevice::port">Host USB port</link> filter.
11684 </desc>
11685 </attribute>
11686
11687 <attribute name="remote" type="wstring">
11688 <desc>
11689 <link to="IUSBDevice::remote">Remote state</link> filter.
11690 <note>
11691 This filter makes sense only for machine USB filters,
11692 i.e. it is ignored by IHostUSBDeviceFilter objects.
11693 </note>
11694 </desc>
11695 </attribute>
11696
11697 <attribute name="maskedInterfaces" type="unsigned long">
11698 <desc>
11699 This is an advanced option for hiding one or more USB interfaces
11700 from the guest. The value is a bit mask where the bits that are set
11701 means the corresponding USB interface should be hidden, masked off
11702 if you like.
11703 This feature only works on Linux hosts.
11704 </desc>
11705 </attribute>
11706
11707 </interface>
11708
11709
11710 <!--
11711 // IHostUSBDevice
11712 /////////////////////////////////////////////////////////////////////////
11713 -->
11714
11715 <enum
11716 name="USBDeviceState"
11717 uuid="b99a2e65-67fb-4882-82fd-f3e5e8193ab4"
11718 >
11719 <desc>
11720 USB device state. This enumeration represents all possible states
11721 of the USB device physically attached to the host computer regarding
11722 its state on the host computer and availability to guest computers
11723 (all currently running virtual machines).
11724
11725 Once a supported USB device is attached to the host, global USB
11726 filters (<link to="IHost::USBDeviceFilters"/>) are activated. They can
11727 either ignore the device, or put it to USBDeviceState_Held state, or do
11728 nothing. Unless the device is ignored by global filters, filters of all
11729 currently running guests (<link to="IUSBController::deviceFilters"/>) are
11730 activated that can put it to USBDeviceState_Captured state.
11731
11732 If the device was ignored by global filters, or didn't match
11733 any filters at all (including guest ones), it is handled by the host
11734 in a normal way. In this case, the device state is determined by
11735 the host and can be one of USBDeviceState_Unavailable, USBDeviceState_Busy
11736 or USBDeviceState_Available, depending on the current device usage.
11737
11738 Besides auto-capturing based on filters, the device can be manually
11739 captured by guests (<link to="IConsole::attachUSBDevice"/>) if its
11740 state is USBDeviceState_Busy, USBDeviceState_Available or
11741 USBDeviceState_Held.
11742
11743 <note>
11744 Due to differences in USB stack implementations in Linux and Win32,
11745 states USBDeviceState_Busy and USBDeviceState_vailable are applicable
11746 only to the Linux version of the product. This also means that (<link
11747 to="IConsole::attachUSBDevice"/>) can only succeed on Win32 if the
11748 device state is USBDeviceState_Held.
11749 </note>
11750
11751 <see>IHostUSBDevice, IHostUSBDeviceFilter</see>
11752 </desc>
11753
11754 <const name="NotSupported" value="0">
11755 <desc>
11756 Not supported by the VirtualBox server, not available to guests.
11757 </desc>
11758 </const>
11759 <const name="Unavailable" value="1">
11760 <desc>
11761 Being used by the host computer exclusively,
11762 not available to guests.
11763 </desc>
11764 </const>
11765 <const name="Busy" value="2">
11766 <desc>
11767 Being used by the host computer, potentially available to guests.
11768 </desc>
11769 </const>
11770 <const name="Available" value="3">
11771 <desc>
11772 Not used by the host computer, available to guests (the host computer
11773 can also start using the device at any time).
11774 </desc>
11775 </const>
11776 <const name="Held" value="4">
11777 <desc>
11778 Held by the VirtualBox server (ignored by the host computer),
11779 available to guests.
11780 </desc>
11781 </const>
11782 <const name="Captured" value="5">
11783 <desc>
11784 Captured by one of the guest computers, not available
11785 to anybody else.
11786 </desc>
11787 </const>
11788 </enum>
11789
11790 <interface
11791 name="IHostUSBDevice" extends="IUSBDevice"
11792 uuid="173b4b44-d268-4334-a00d-b6521c9a740a"
11793 wsmap="managed"
11794 >
11795 <desc>
11796 The IHostUSBDevice interface represents a physical USB device attached
11797 to the host computer.
11798
11799 Besides properties inherited from IUSBDevice, this interface adds the
11800 <link to="#state"/> property that holds the current state of the USB
11801 device.
11802
11803 <see>IHost::USBDevices, IHost::USBDeviceFilters</see>
11804 </desc>
11805
11806 <attribute name="state" type="USBDeviceState" readonly="yes">
11807 <desc>
11808 Current state of the device.
11809 </desc>
11810 </attribute>
11811
11812 <!-- @todo add class, subclass, bandwidth, configs, interfaces endpoints and such later. -->
11813
11814 </interface>
11815
11816
11817 <!--
11818 // IHostUSBDeviceFilter
11819 /////////////////////////////////////////////////////////////////////////
11820 -->
11821
11822 <enum
11823 name="USBDeviceFilterAction"
11824 uuid="cbc30a49-2f4e-43b5-9da6-121320475933"
11825 >
11826 <desc>
11827 Actions for host USB device filters.
11828 <see>IHostUSBDeviceFilter, USBDeviceState</see>
11829 </desc>
11830
11831 <const name="Null" value="0">
11832 <desc>Null value (never used by the API).</desc>
11833 </const>
11834 <const name="Ignore" value="1">
11835 <desc>Ignore the matched USB device.</desc>
11836 </const>
11837 <const name="Hold" value="2">
11838 <desc>Hold the matched USB device.</desc>
11839 </const>
11840 </enum>
11841
11842 <interface
11843 name="IHostUSBDeviceFilter" extends="IUSBDeviceFilter"
11844 uuid="4cc70246-d74a-400f-8222-3900489c0374"
11845 wsmap="managed"
11846 >
11847 <desc>
11848 The IHostUSBDeviceFilter interface represents a global filter for a
11849 physical USB device used by the host computer. Used indirectly in
11850 <link to="IHost::USBDeviceFilters"/>.
11851
11852 Using filters of this type, the host computer determines the initial
11853 state of the USB device after it is physically attached to the
11854 host's USB controller.
11855
11856 <note>
11857 The <link to="#remote"/> attribute is ignored by this type of
11858 filters, because it makes sense only for
11859 <link to="IUSBController::deviceFilters">machine USB filters</link>.
11860 </note>
11861
11862 <see>IHost::USBDeviceFilters</see>
11863 </desc>
11864
11865 <attribute name="action" type="USBDeviceFilterAction">
11866 <desc>
11867 Action performed by the host when an attached USB device
11868 matches this filter.
11869 </desc>
11870 </attribute>
11871
11872 </interface>
11873
11874 <!--
11875 // IAudioAdapter
11876 /////////////////////////////////////////////////////////////////////////
11877 -->
11878
11879 <enum
11880 name="AudioDriverType"
11881 uuid="4bcc3d73-c2fe-40db-b72f-0c2ca9d68496"
11882 >
11883 <desc>
11884 Host audio driver type.
11885 </desc>
11886
11887 <const name="Null" value="0">
11888 <desc>Null value, also means "dummy audio driver".</desc>
11889 </const>
11890 <const name="WinMM" value="1"/>
11891 <const name="OSS" value="2"/>
11892 <const name="ALSA" value="3"/>
11893 <const name="DirectSound" value="4"/>
11894 <const name="CoreAudio" value="5"/>
11895 <const name="MMPM" value="6"/>
11896 <const name="Pulse" value="7"/>
11897 <const name="SolAudio" value="8"/>
11898 </enum>
11899
11900 <enum
11901 name="AudioControllerType"
11902 uuid="7afd395c-42c3-444e-8788-3ce80292f36c"
11903 >
11904 <desc>
11905 Virtual audio controller type.
11906 </desc>
11907
11908 <const name="AC97" value="0"/>
11909 <const name="SB16" value="1"/>
11910 </enum>
11911
11912 <interface
11913 name="IAudioAdapter" extends="$unknown"
11914 uuid="921873db-5f3f-4b69-91f9-7be9e535a2cb"
11915 wsmap="managed"
11916 >
11917 <desc>
11918 The IAudioAdapter interface represents the virtual audio adapter of
11919 the virtual machine. Used in <link to="IMachine::audioAdapter"/>.
11920 </desc>
11921 <attribute name="enabled" type="boolean">
11922 <desc>
11923 Flag whether the audio adapter is present in the
11924 guest system. If disabled, the virtual guest hardware will
11925 not contain any audio adapter. Can only be changed when
11926 the VM is not running.
11927 </desc>
11928 </attribute>
11929 <attribute name="audioController" type="AudioControllerType">
11930 <desc>
11931 The audio hardware we emulate.
11932 </desc>
11933 </attribute>
11934 <attribute name="audioDriver" type="AudioDriverType">
11935 <desc>
11936 Audio driver the adapter is connected to. This setting
11937 can only be changed when the VM is not running.
11938 </desc>
11939 </attribute>
11940 </interface>
11941
11942 <!--
11943 // IVRDPServer
11944 /////////////////////////////////////////////////////////////////////////
11945 -->
11946
11947 <enum
11948 name="VRDPAuthType"
11949 uuid="3d91887a-b67f-4b33-85bf-2da7ab1ea83a"
11950 >
11951 <desc>
11952 VRDP authentication type.
11953 </desc>
11954
11955 <const name="Null" value="0">
11956 <desc>Null value, also means "no authentication".</desc>
11957 </const>
11958 <const name="External" value="1"/>
11959 <const name="Guest" value="2"/>
11960 </enum>
11961
11962 <interface
11963 name="IVRDPServer" extends="$unknown"
11964 uuid="f4584ae7-6bce-474b-83d6-17d235e6aa89"
11965 wsmap="managed"
11966 >
11967 <attribute name="enabled" type="boolean">
11968 <desc>VRDP server status.</desc>
11969 </attribute>
11970
11971 <attribute name="port" type="unsigned long">
11972 <desc>
11973 VRDP server port number.
11974 <note>
11975 Setting the value of this property to <tt>0</tt> will reset the port
11976 number to the default value which is
11977 currently <tt>3389</tt>. Reading this property will always return a
11978 real port number, even after it has been set to <tt>0</tt> (in which
11979 case the default port is returned).
11980 </note>
11981 </desc>
11982 </attribute>
11983
11984 <attribute name="netAddress" type="wstring">
11985 <desc>VRDP server address.</desc>
11986 </attribute>
11987
11988 <attribute name="authType" type="VRDPAuthType">
11989 <desc>VRDP authentication method.</desc>
11990 </attribute>
11991
11992 <attribute name="authTimeout" type="unsigned long">
11993 <desc>Timeout for guest authentication. Milliseconds.</desc>
11994 </attribute>
11995
11996 <attribute name="allowMultiConnection" type="boolean">
11997 <desc>
11998 Flag whether multiple simultaneous connections to the VM are permitted.
11999 Note that this will be replaced by a more powerful mechanism in the future.
12000 </desc>
12001 </attribute>
12002
12003 <attribute name="reuseSingleConnection" type="boolean">
12004 <desc>
12005 Flag whether the existing connection must be dropped and a new connection
12006 must be established by the VRDP server, when a new client connects in single
12007 connection mode.
12008 </desc>
12009 </attribute>
12010
12011 </interface>
12012
12013
12014 <!--
12015 // ISharedFolder
12016 /////////////////////////////////////////////////////////////////////////
12017 -->
12018
12019 <interface
12020 name="ISharedFolder" extends="$unknown"
12021 uuid="64637bb2-9e17-471c-b8f3-f8968dd9884e"
12022 wsmap="struct"
12023 >
12024 <desc>
12025 The ISharedFolder interface represents a folder in the host computer's
12026 file system accessible from the guest OS running inside a virtual
12027 machine using an associated logical name.
12028
12029 There are three types of shared folders:
12030 <ul>
12031 <li><i>Global</i> (<link to="IVirtualBox::sharedFolders"/>), shared
12032 folders available to all virtual machines.</li>
12033 <li><i>Permanent</i> (<link to="IMachine::sharedFolders"/>),
12034 VM-specific shared folders available to the given virtual machine at
12035 startup.</li>
12036 <li><i>Transient</i> (<link to="IConsole::sharedFolders"/>),
12037 VM-specific shared folders created in the session context (for
12038 example, when the virtual machine is running) and automatically
12039 discarded when the session is closed (the VM is powered off).</li>
12040 </ul>
12041
12042 Logical names of shared folders must be unique within the given scope
12043 (global, permanent or transient). However, they do not need to be unique
12044 across scopes. In this case, the definition of the shared folder in a
12045 more specific scope takes precedence over definitions in all other
12046 scopes. The order of precedence is (more specific to more general):
12047 <ol>
12048 <li>Transient definitions</li>
12049 <li>Permanent definitions</li>
12050 <li>Global definitions</li>
12051 </ol>
12052
12053 For example, if MyMachine has a shared folder named
12054 <tt>C_DRIVE</tt> (that points to <tt>C:\\</tt>), then creating a
12055 transient shared folder named <tt>C_DRIVE</tt> (that points
12056 to <tt>C:\\\\WINDOWS</tt>) will change the definition
12057 of <tt>C_DRIVE</tt> in the guest OS so
12058 that <tt>\\\\VBOXSVR\\C_DRIVE</tt> will give access
12059 to <tt>C:\\WINDOWS</tt> instead of <tt>C:\\</tt> on the host
12060 PC. Removing the transient shared folder <tt>C_DRIVE</tt> will restore
12061 the previous (permanent) definition of <tt>C_DRIVE</tt> that points
12062 to <tt>C:\\</tt> if it still exists.
12063
12064 Note that permanent and transient shared folders of different machines
12065 are in different name spaces, so they don't overlap and don't need to
12066 have unique logical names.
12067
12068 <note>
12069 Global shared folders are not implemented in the current version of the
12070 product.
12071 </note>
12072 </desc>
12073
12074 <attribute name="name" type="wstring" readonly="yes">
12075 <desc>Logical name of the shared folder.</desc>
12076 </attribute>
12077
12078 <attribute name="hostPath" type="wstring" readonly="yes">
12079 <desc>Full path to the shared folder in the host file system.</desc>
12080 </attribute>
12081
12082 <attribute name="accessible" type="boolean" readonly="yes">
12083 <desc>
12084 Whether the folder defined by the host path is currently
12085 accessible or not.
12086 For example, the folder can be unaccessible if it is placed
12087 on the network share that is not available by the time
12088 this property is read.
12089 </desc>
12090 </attribute>
12091
12092 <attribute name="writable" type="boolean" readonly="yes">
12093 <desc>
12094 Whether the folder defined by the host path is writable or
12095 not.
12096 </desc>
12097 </attribute>
12098
12099 <attribute name="lastAccessError" type="wstring" readonly="yes">
12100 <desc>
12101 Text message that represents the result of the last accessibility
12102 check.
12103
12104 Accessibility checks are performed each time the <link to="#accessible"/>
12105 attribute is read. A @c null string is returned if the last
12106 accessibility check was successful. A non-null string indicates a
12107 failure and should normally describe a reason of the failure (for
12108 example, a file read error).
12109 </desc>
12110 </attribute>
12111
12112 </interface>
12113
12114 <!--
12115 // ISession
12116 /////////////////////////////////////////////////////////////////////////
12117 -->
12118
12119 <interface
12120 name="IInternalSessionControl" extends="$unknown"
12121 uuid="b26552e7-9534-4f47-b766-98eac648a90d"
12122 internal="yes"
12123 wsmap="suppress"
12124 >
12125 <method name="getPID">
12126 <desc>PID of the process that has created this Session object.
12127 </desc>
12128 <param name="pid" type="unsigned long" dir="return"/>
12129 </method>
12130
12131 <method name="getRemoteConsole">
12132 <desc>
12133 Returns the console object suitable for remote control.
12134
12135 <result name="VBOX_E_INVALID_VM_STATE">
12136 Session state prevents operation.
12137 </result>
12138 <result name="VBOX_E_INVALID_OBJECT_STATE">
12139 Session type prevents operation.
12140 </result>
12141
12142 </desc>
12143 <param name="console" type="IConsole" dir="return"/>
12144 </method>
12145
12146 <method name="assignMachine">
12147 <desc>
12148 Assigns the machine object associated with this direct-type
12149 session or informs the session that it will be a remote one
12150 (if @a machine == NULL).
12151
12152 <result name="VBOX_E_INVALID_VM_STATE">
12153 Session state prevents operation.
12154 </result>
12155 <result name="VBOX_E_INVALID_OBJECT_STATE">
12156 Session type prevents operation.
12157 </result>
12158
12159 </desc>
12160 <param name="machine" type="IMachine" dir="in"/>
12161 </method>
12162
12163 <method name="assignRemoteMachine">
12164 <desc>
12165 Assigns the machine and the (remote) console object associated with
12166 this remote-type session.
12167
12168 <result name="VBOX_E_INVALID_VM_STATE">
12169 Session state prevents operation.
12170 </result>
12171
12172 </desc>
12173 <param name="machine" type="IMachine" dir="in"/>
12174 <param name="console" type="IConsole" dir="in"/>
12175 </method>
12176
12177 <method name="updateMachineState">
12178 <desc>
12179 Updates the machine state in the VM process.
12180 Must be called only in certain cases
12181 (see the method implementation).
12182
12183 <result name="VBOX_E_INVALID_VM_STATE">
12184 Session state prevents operation.
12185 </result>
12186 <result name="VBOX_E_INVALID_OBJECT_STATE">
12187 Session type prevents operation.
12188 </result>
12189
12190 </desc>
12191 <param name="aMachineState" type="MachineState" dir="in"/>
12192 </method>
12193
12194 <method name="uninitialize">
12195 <desc>
12196 Uninitializes (closes) this session. Used by VirtualBox to close
12197 the corresponding remote session when the direct session dies
12198 or gets closed.
12199
12200 <result name="VBOX_E_INVALID_VM_STATE">
12201 Session state prevents operation.
12202 </result>
12203
12204 </desc>
12205 </method>
12206
12207 <method name="onDVDDriveChange">
12208 <desc>
12209 Triggered when settings of the DVD drive object of the
12210 associated virtual machine have changed.
12211
12212 <result name="VBOX_E_INVALID_VM_STATE">
12213 Session state prevents operation.
12214 </result>
12215 <result name="VBOX_E_INVALID_OBJECT_STATE">
12216 Session type prevents operation.
12217 </result>
12218
12219 </desc>
12220 </method>
12221
12222 <method name="onFloppyDriveChange">
12223 <desc>
12224 Triggered when settings of the floppy drive object of the
12225 associated virtual machine have changed.
12226
12227 <result name="VBOX_E_INVALID_VM_STATE">
12228 Session state prevents operation.
12229 </result>
12230 <result name="VBOX_E_INVALID_OBJECT_STATE">
12231 Session type prevents operation.
12232 </result>
12233
12234 </desc>
12235 </method>
12236
12237 <method name="onNetworkAdapterChange">
12238 <desc>
12239 Triggered when settings of a network adapter of the
12240 associated virtual machine have changed.
12241
12242 <result name="VBOX_E_INVALID_VM_STATE">
12243 Session state prevents operation.
12244 </result>
12245 <result name="VBOX_E_INVALID_OBJECT_STATE">
12246 Session type prevents operation.
12247 </result>
12248
12249 </desc>
12250 <param name="networkAdapter" type="INetworkAdapter" dir="in"/>
12251 </method>
12252
12253 <method name="onSerialPortChange">
12254 <desc>
12255 Triggered when settings of a serial port of the
12256 associated virtual machine have changed.
12257
12258 <result name="VBOX_E_INVALID_VM_STATE">
12259 Session state prevents operation.
12260 </result>
12261 <result name="VBOX_E_INVALID_OBJECT_STATE">
12262 Session type prevents operation.
12263 </result>
12264
12265 </desc>
12266 <param name="serialPort" type="ISerialPort" dir="in"/>
12267 </method>
12268
12269 <method name="onParallelPortChange">
12270 <desc>
12271 Triggered when settings of a parallel port of the
12272 associated virtual machine have changed.
12273
12274 <result name="VBOX_E_INVALID_VM_STATE">
12275 Session state prevents operation.
12276 </result>
12277 <result name="VBOX_E_INVALID_OBJECT_STATE">
12278 Session type prevents operation.
12279 </result>
12280
12281 </desc>
12282 <param name="parallelPort" type="IParallelPort" dir="in"/>
12283 </method>
12284
12285 <method name="onStorageControllerChange">
12286 <desc>
12287 Triggered when settings of a storage controller of the
12288 associated virtual machine have changed.
12289
12290 <result name="VBOX_E_INVALID_VM_STATE">
12291 Session state prevents operation.
12292 </result>
12293 <result name="VBOX_E_INVALID_OBJECT_STATE">
12294 Session type prevents operation.
12295 </result>
12296
12297 </desc>
12298 </method>
12299
12300 <method name="onVRDPServerChange">
12301 <desc>
12302 Triggered when settings of the VRDP server object of the
12303 associated virtual machine have changed.
12304
12305 <result name="VBOX_E_INVALID_VM_STATE">
12306 Session state prevents operation.
12307 </result>
12308 <result name="VBOX_E_INVALID_OBJECT_STATE">
12309 Session type prevents operation.
12310 </result>
12311
12312 </desc>
12313 </method>
12314
12315 <method name="onUSBControllerChange">
12316 <desc>
12317 Triggered when settings of the USB controller object of the
12318 associated virtual machine have changed.
12319
12320 <result name="VBOX_E_INVALID_VM_STATE">
12321 Session state prevents operation.
12322 </result>
12323 <result name="VBOX_E_INVALID_OBJECT_STATE">
12324 Session type prevents operation.
12325 </result>
12326
12327 </desc>
12328 </method>
12329
12330 <method name="onSharedFolderChange">
12331 <desc>
12332 Triggered when a permanent (global or machine) shared folder has been
12333 created or removed.
12334 <note>
12335 We don't pass shared folder parameters in this notification because
12336 the order in which parallel notifications are delivered is not defined,
12337 therefore it could happen that these parameters were outdated by the
12338 time of processing this notification.
12339 </note>
12340
12341 <result name="VBOX_E_INVALID_VM_STATE">
12342 Session state prevents operation.
12343 </result>
12344 <result name="VBOX_E_INVALID_OBJECT_STATE">
12345 Session type prevents operation.
12346 </result>
12347
12348 </desc>
12349 <param name="global" type="boolean" dir="in"/>
12350 </method>
12351
12352 <method name="onUSBDeviceAttach">
12353 <desc>
12354 Triggered when a request to capture a USB device (as a result
12355 of matched USB filters or direct call to
12356 <link to="IConsole::attachUSBDevice"/>) has completed.
12357 A @c null @a error object means success, otherwise it
12358 describes a failure.
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="device" type="IUSBDevice" dir="in"/>
12369 <param name="error" type="IVirtualBoxErrorInfo" dir="in"/>
12370 <param name="maskedInterfaces" type="unsigned long" dir="in"/>
12371 </method>
12372
12373 <method name="onUSBDeviceDetach">
12374 <desc>
12375 Triggered when a request to release the USB device (as a result
12376 of machine termination or direct call to
12377 <link to="IConsole::detachUSBDevice"/>) has completed.
12378 A @c null @a error object means success, otherwise it
12379
12380 <result name="VBOX_E_INVALID_VM_STATE">
12381 Session state prevents operation.
12382 </result>
12383 <result name="VBOX_E_INVALID_OBJECT_STATE">
12384 Session type prevents operation.
12385 </result>
12386
12387 </desc>
12388 <param name="id" type="wstring" dir="in"/>
12389 <param name="error" type="IVirtualBoxErrorInfo" dir="in"/>
12390 </method>
12391
12392 <method name="onShowWindow">
12393 <desc>
12394 Called by <link to="IMachine::canShowConsoleWindow"/> and by
12395 <link to="IMachine::showConsoleWindow"/> in order to notify
12396 console callbacks
12397 <link to="IConsoleCallback::onCanShowWindow"/>
12398 and <link to="IConsoleCallback::onShowWindow"/>.
12399
12400 <result name="VBOX_E_INVALID_OBJECT_STATE">
12401 Session type prevents operation.
12402 </result>
12403
12404 </desc>
12405 <param name="check" type="boolean" dir="in"/>
12406 <param name="canShow" type="boolean" dir="out"/>
12407 <param name="winId" type="unsigned long long" dir="out"/>
12408 </method>
12409
12410 <method name="accessGuestProperty">
12411 <desc>
12412 Called by <link to="IMachine::getGuestProperty"/> and by
12413 <link to="IMachine::setGuestProperty"/> in order to read and
12414 modify guest properties.
12415
12416 <result name="VBOX_E_INVALID_VM_STATE">
12417 Machine session is not open.
12418 </result>
12419 <result name="VBOX_E_INVALID_OBJECT_STATE">
12420 Session type is not direct.
12421 </result>
12422
12423 </desc>
12424 <param name="name" type="wstring" dir="in"/>
12425 <param name="value" type="wstring" dir="in"/>
12426 <param name="flags" type="wstring" dir="in"/>
12427 <param name="isSetter" type="boolean" dir="in"/>
12428 <param name="retValue" type="wstring" dir="out"/>
12429 <param name="retTimestamp" type="unsigned long long" dir="out"/>
12430 <param name="retFlags" type="wstring" dir="out"/>
12431 </method>
12432
12433 <method name="enumerateGuestProperties">
12434 <desc>
12435 Return a list of the guest properties matching a set of patterns along
12436 with their values, time stamps and flags.
12437
12438 <result name="VBOX_E_INVALID_VM_STATE">
12439 Machine session is not open.
12440 </result>
12441 <result name="VBOX_E_INVALID_OBJECT_STATE">
12442 Session type is not direct.
12443 </result>
12444
12445 </desc>
12446 <param name="patterns" type="wstring" dir="in">
12447 <desc>
12448 The patterns to match the properties against as a comma-separated
12449 string. If this is empty, all properties currently set will be
12450 returned.
12451 </desc>
12452 </param>
12453 <param name="key" type="wstring" dir="out" safearray="yes">
12454 <desc>
12455 The key names of the properties returned.
12456 </desc>
12457 </param>
12458 <param name="value" type="wstring" dir="out" safearray="yes">
12459 <desc>
12460 The values of the properties returned. The array entries match the
12461 corresponding entries in the @a key array.
12462 </desc>
12463 </param>
12464 <param name="timestamp" type="unsigned long long" dir="out" safearray="yes">
12465 <desc>
12466 The time stamps of the properties returned. The array entries match
12467 the corresponding entries in the @a key array.
12468 </desc>
12469 </param>
12470 <param name="flags" type="wstring" dir="out" safearray="yes">
12471 <desc>
12472 The flags of the properties returned. The array entries match the
12473 corresponding entries in the @a key array.
12474 </desc>
12475 </param>
12476 </method>
12477
12478 </interface>
12479
12480 <interface
12481 name="ISession" extends="$dispatched"
12482 uuid="12F4DCDB-12B2-4ec1-B7CD-DDD9F6C5BF4D"
12483 wsmap="managed"
12484 >
12485 <desc>
12486 The ISession interface represents a serialization primitive for virtual
12487 machines.
12488
12489 With VirtualBox, every time one wishes to manipulate a virtual machine
12490 (e.g. change its settings or start execution), a session object is
12491 required. Such an object must be passed to one of the session methods
12492 that open the given session, which then initiates the machine manipulation.
12493
12494 A session serves several purposes: it identifies to the inter-process VirtualBox
12495 code which process is currently working with the virtual machine, and it ensures
12496 that there are no incompatible requests from several processes for the
12497 same virtual machine. Session objects can therefore be thought of as mutex
12498 semaphores that lock virtual machines to prevent conflicting accesses from
12499 several processes.
12500
12501 How sessions objects are used depends on whether you use the Main API
12502 via COM or via the webservice:
12503
12504 <ul>
12505 <li>When using the COM API directly, an object of the Session class from the
12506 VirtualBox type library needs to be created. In regular COM C++ client code,
12507 this can be done by calling <tt>createLocalObject()</tt>, a standard COM API.
12508 This object will then act as a local session object in further calls to open
12509 a session.
12510 </li>
12511
12512 <li>In the webservice, the session manager (IWebsessionManager) instead creates
12513 one session object automatically when <link to="IWebsessionManager::logon" />
12514 is called. A managed object reference to that session object can be retrieved by
12515 calling <link to="IWebsessionManager::getSessionObject" />. This session object
12516 reference can then be used to open sessions.
12517 </li>
12518 </ul>
12519
12520 Sessions are mainly used in two variations:
12521
12522 <ul>
12523 <li>
12524 To start a virtual machine in a separate process, one would call
12525 <link to="IVirtualBox::openRemoteSession"/>, which requires a session
12526 object as its first parameter. This session then identifies the caller
12527 and lets him control the started machine (for example, pause machine
12528 execution or power it down) as well as be notified about machine
12529 execution state changes.
12530 </li>
12531
12532 <li>To alter machine settings, or to start machine execution within the
12533 current process, one needs to open a direct session for the machine first by
12534 calling <link to="IVirtualBox::openSession"/>. While a direct session
12535 is open within one process, no any other process may open another direct
12536 session for the same machine. This prevents the machine from being changed
12537 by other processes while it is running or while the machine is being configured.
12538 </li>
12539 </ul>
12540
12541 One also can attach to an existing direct session already opened by
12542 another process (for example, in order to send a control request to the
12543 virtual machine such as the pause or the reset request). This is done by
12544 calling <link to="IVirtualBox::openExistingSession"/>.
12545
12546 <note>
12547 Unless you are trying to write a new VirtualBox front-end that
12548 performs direct machine execution (like the VirtualBox or VBoxSDL
12549 front-ends), don't call <link to="IConsole::powerUp"/> in a direct
12550 session opened by <link to="IVirtualBox::openSession"/> and use this
12551 session only to change virtual machine settings. If you simply want to
12552 start virtual machine execution using one of the existing front-ends
12553 (for example the VirtualBox GUI or headless server), simply use
12554 <link to="IVirtualBox::openRemoteSession"/>; these front-ends
12555 will power up the machine automatically for you.
12556 </note>
12557 </desc>
12558
12559 <attribute name="state" type="SessionState" readonly="yes">
12560 <desc>Current state of this session.</desc>
12561 </attribute>
12562
12563 <attribute name="type" type="SessionType" readonly="yes">
12564 <desc>
12565 Type of this session. The value of this attribute is valid only
12566 if the session is currently open (i.e. its #state is
12567 SessionType_SessionOpen), otherwise an error will be returned.
12568 </desc>
12569 </attribute>
12570
12571 <attribute name="machine" type="IMachine" readonly="yes">
12572 <desc>Machine object associated with this session.</desc>
12573 </attribute>
12574
12575 <attribute name="console" type="IConsole" readonly="yes">
12576 <desc>Console object associated with this session.</desc>
12577 </attribute>
12578
12579 <method name="close">
12580 <desc>
12581 Closes a session that was previously opened.
12582
12583 It is recommended that every time an "open session" method (such as
12584 <link to="IVirtualBox::openRemoteSession" /> or
12585 <link to="IVirtualBox::openSession" />) has been called to
12586 manipulate a virtual machine, the caller invoke
12587 ISession::close() when it's done doing so. Since sessions are
12588 serialization primitives much like ordinary mutexes, they are
12589 best used the same way: for each "open" call, there should be
12590 a matching "close" call, even when errors occur.
12591
12592 Otherwise, if a direct session for a machine opened with
12593 <link to="IVirtualBox::openSession"/> is not explicitly closed
12594 when the application terminates, the state of the machine will
12595 be set to <link to="MachineState_Aborted" /> on the server.
12596
12597 Generally, it is recommended to close all open sessions explicitly
12598 before terminating the application (regardless of the reason for
12599 the termination).
12600
12601 <note>
12602 Do not expect the session state (<link to="ISession::state" />
12603 to return to "Closed" immediately after you invoke
12604 ISession::close(), particularly if you have started a remote
12605 session to execute the VM in a new process. The session state will
12606 automatically return to "Closed" once the VM is no longer executing,
12607 which can of course take a very long time.
12608 </note>
12609
12610 <result name="E_UNEXPECTED">
12611 Session is not open.
12612 </result>
12613
12614 </desc>
12615 </method>
12616
12617 </interface>
12618
12619 <!--
12620 // IStorageController
12621 /////////////////////////////////////////////////////////////////////////
12622 -->
12623
12624 <enum
12625 name="StorageBus"
12626 uuid="f381fdca-5953-41d0-b2bd-0542b012698d"
12627 >
12628 <desc>
12629 The connection type of the storage controller.
12630 </desc>
12631 <const name="Null" value="0">
12632 <desc><tt>null</tt> value. Never used by the API.</desc>
12633 </const>
12634 <const name="IDE" value="1"/>
12635 <const name="SATA" value="2"/>
12636 <const name="SCSI" value="3"/>
12637 </enum>
12638
12639 <enum
12640 name="StorageControllerType"
12641 uuid="685387db-a837-4320-a258-08f46a22f62a"
12642 >
12643 <desc>
12644 Storage controller type.
12645 </desc>
12646
12647 <const name="Null" value="0">
12648 <desc><tt>null</tt> value. Never used by the API.</desc>
12649 </const>
12650 <const name="LsiLogic" value="1"/>
12651 <const name="BusLogic" value="2"/>
12652 <const name="IntelAhci" value="3"/>
12653 <const name="PIIX3" value="4"/>
12654 <const name="PIIX4" value="5"/>
12655 <const name="ICH6" value="6"/>
12656 </enum>
12657
12658 <interface
12659 name="IStorageController" extends="$unknown"
12660 uuid="6bf8335b-d14a-44a5-9b45-ddc49ce7d5b2"
12661 wsmap="managed"
12662 >
12663 <desc>
12664 Represents a storage controller that is attached to a virtual machine
12665 (<link to="IMachine" />). Just as hard disks are attached to storage
12666 controllers in a real computer, virtual hard disks (represented by
12667 <link to="IHardDisk" />) are attached to virtual storage controllers,
12668 represented by this interface.
12669
12670 VirtualBox supports three types of virtual storage controller hardware:
12671 IDE, SCSI, and SATA (see <link to="#bus" />). Depending on which of
12672 these three is used, certain sub-types are available and can be
12673 selected in <link to="#controllerType" />.
12674 </desc>
12675
12676 <attribute name="name" type="wstring" readonly="yes">
12677 <desc>
12678 Name of the storage controller, as originally specified with
12679 <link to="IMachine::addStorageController" />. This then uniquely
12680 identifies this controller with other method calls such as
12681 <link to="IMachine::attachHardDisk" />.
12682 </desc>
12683 </attribute>
12684
12685 <attribute name="maxDevicesPerPortCount" type="unsigned long" readonly="yes">
12686 <desc>
12687 Maximum number of devices which can be attached to one port.
12688 </desc>
12689 </attribute>
12690
12691 <attribute name="minPortCount" type="unsigned long" readonly="yes">
12692 <desc>
12693 Minimum number of ports that <link to="IStorageController::portCount"/> can be set to.
12694 </desc>
12695 </attribute>
12696
12697 <attribute name="maxPortCount" type="unsigned long" readonly="yes">
12698 <desc>
12699 Maximum number of ports that <link to="IStorageController::portCount"/> can be set to.
12700 </desc>
12701 </attribute>
12702
12703 <attribute name="instance" type="unsigned long">
12704 <desc>
12705 The instance number of the device in the running VM.
12706 </desc>
12707 </attribute>
12708
12709 <attribute name="portCount" type="unsigned long">
12710 <desc>
12711 The number of currently usable ports on the controller.
12712 The minimum and maximum number of ports for one controller are
12713 stored in <link to="IStorageController::minPortCount"/>
12714 and <link to="IStorageController::maxPortCount"/>.
12715 </desc>
12716 </attribute>
12717
12718 <attribute name="bus" type="StorageBus" readonly="yes">
12719 <desc>
12720 The connection type of the storage controller.
12721 </desc>
12722 </attribute>
12723
12724 <attribute name="controllerType" type="StorageControllerType">
12725 <desc>
12726 Type of the virtual storage controller. Depending on this value,
12727 VirtualBox will provide a different virtual storage controller hardware
12728 to the guest.
12729
12730 For SCSI controllers, the default type is LsiLogic.
12731 </desc>
12732 </attribute>
12733
12734 <method name="GetIDEEmulationPort">
12735 <desc>
12736 Gets the corresponding port number which is emulated as an IDE device.
12737
12738 <result name="E_INVALIDARG">
12739 The @a devicePosition is not in the range 0 to 3.
12740 </result>
12741 <result name="E_NOTIMPL">
12742 The storage controller type is not SATAIntelAhci.
12743 </result>
12744
12745 </desc>
12746 <param name="devicePosition" type="long" dir="in"/>
12747 <param name="portNumber" type="long" dir="return"/>
12748 </method>
12749
12750 <method name="SetIDEEmulationPort">
12751 <desc>
12752 Sets the port number which is emulated as an IDE device.
12753
12754 <result name="E_INVALIDARG">
12755 The @a devicePosition is not in the range 0 to 3 or the
12756 @a portNumber is not in the range 0 to 29.
12757 </result>
12758 <result name="E_NOTIMPL">
12759 The storage controller type is not SATAIntelAhci.
12760 </result>
12761
12762 </desc>
12763 <param name="devicePosition" type="long" dir="in"/>
12764 <param name="portNumber" type="long" dir="in"/>
12765 </method>
12766
12767 </interface>
12768
12769<if target="wsdl">
12770
12771 <!--
12772 // IManagedObjectRef
12773 /////////////////////////////////////////////////////////////////////////
12774 -->
12775
12776 <interface
12777 name="IManagedObjectRef" extends="$unknown"
12778 uuid="9474d09d-2313-46de-b568-a42b8718e8ed"
12779 internal="yes"
12780 wsmap="managed"
12781 wscpp="hardcoded"
12782 >
12783 <desc>
12784 Managed object reference.
12785
12786 Only within the webservice, a managed object reference (which is really
12787 an opaque number) allows a webservice client to address an object
12788 that lives in the address space of the webservice server.
12789
12790 Behind each managed object reference, there is a COM object that lives
12791 in the webservice server's address space. The COM object is not freed
12792 until the managed object reference is released, either by an explicit
12793 call to <link to="IManagedObjectRef::release" /> or by logging off from
12794 the webservice (<link to="IWebsessionManager::logoff" />), which releases
12795 all objects created during the webservice session.
12796
12797 Whenever a method call of the VirtualBox API returns a COM object, the
12798 webservice representation of that method will instead return a
12799 managed object reference, which can then be used to invoke methods
12800 on that object.
12801 </desc>
12802
12803 <method name="getInterfaceName">
12804 <desc>
12805 Returns the name of the interface that this managed object represents,
12806 for example, "IMachine", as a string.
12807 </desc>
12808 <param name="return" type="wstring" dir="return"/>
12809 </method>
12810
12811 <method name="release">
12812 <desc>
12813 Releases this managed object reference and frees the resources that
12814 were allocated for it in the webservice server process. After calling
12815 this method, the identifier of the reference can no longer be used.
12816 </desc>
12817 </method>
12818
12819 </interface>
12820
12821 <!--
12822 // IWebsessionManager
12823 /////////////////////////////////////////////////////////////////////////
12824 -->
12825
12826 <interface
12827 name="IWebsessionManager" extends="$unknown"
12828 uuid="dea1b4c7-2de3-418a-850d-7868617f7733"
12829 internal="yes"
12830 wsmap="global"
12831 wscpp="hardcoded"
12832 >
12833 <desc>
12834 Websession manager. This provides essential services
12835 to webservice clients.
12836 </desc>
12837 <method name="logon">
12838 <desc>
12839 Logs a new client onto the webservice and returns a managed object reference to
12840 the IVirtualBox instance, which the client can then use as a basis to further
12841 queries, since all calls to the VirtualBox API are based on the IVirtualBox
12842 interface, in one way or the other.
12843 </desc>
12844 <param name="username" type="wstring" dir="in"/>
12845 <param name="password" type="wstring" dir="in"/>
12846 <param name="return" type="IVirtualBox" dir="return"/>
12847 </method>
12848
12849 <method name="getSessionObject">
12850 <desc>
12851 Returns a managed object reference to the internal ISession object that was created
12852 for this web service session when the client logged on.
12853
12854 <see>ISession</see>
12855 </desc>
12856 <param name="refIVirtualBox" type="IVirtualBox" dir="in"/>
12857 <param name="return" type="ISession" dir="return"/>
12858 </method>
12859
12860 <method name="logoff">
12861 <desc>
12862 Logs off the client who has previously logged on with <link to="IWebsessionManager::logoff" />
12863 and destroys all resources associated with the session (most importantly, all
12864 managed objects created in the server while the session was active).
12865 </desc>
12866 <param name="refIVirtualBox" type="IVirtualBox" dir="in"/>
12867 </method>
12868
12869 </interface>
12870
12871</if>
12872
12873 <!--
12874 // IPerformanceCollector & friends
12875 /////////////////////////////////////////////////////////////////////////
12876 -->
12877
12878 <interface
12879 name="IPerformanceMetric" extends="$unknown"
12880 uuid="2a1a60ae-9345-4019-ad53-d34ba41cbfe9" wsmap="managed"
12881 >
12882 <desc>
12883 The IPerformanceMetric interface represents parameters of the given
12884 performance metric.
12885 </desc>
12886
12887 <attribute name="metricName" type="wstring" readonly="yes">
12888 <desc>
12889 Name of the metric.
12890 </desc>
12891 </attribute>
12892
12893 <attribute name="object" type="$unknown" readonly="yes">
12894 <desc>
12895 Object this metric belongs to.
12896 </desc>
12897 </attribute>
12898
12899 <attribute name="description" type="wstring" readonly="yes">
12900 <desc>
12901 Textual description of the metric.
12902 </desc>
12903 </attribute>
12904
12905 <attribute name="period" type="unsigned long" readonly="yes">
12906 <desc>
12907 Time interval between samples, measured in seconds.
12908 </desc>
12909 </attribute>
12910
12911 <attribute name="count" type="unsigned long" readonly="yes">
12912 <desc>
12913 Number of recent samples retained by the performance collector for this
12914 metric.
12915
12916 When the collected sample count exceeds this number, older samples
12917 are discarded.
12918 </desc>
12919 </attribute>
12920
12921 <attribute name="unit" type="wstring" readonly="yes">
12922 <desc>
12923 Unit of measurement.
12924 </desc>
12925 </attribute>
12926
12927 <attribute name="minimumValue" type="long" readonly="yes">
12928 <desc>
12929 Minimum possible value of this metric.
12930 </desc>
12931 </attribute>
12932
12933 <attribute name="maximumValue" type="long" readonly="yes">
12934 <desc>
12935 Maximum possible value of this metric.
12936 </desc>
12937 </attribute>
12938 </interface>
12939
12940 <interface
12941 name="IPerformanceCollector" extends="$unknown"
12942 uuid="e22e1acb-ac4a-43bb-a31c-17321659b0c6"
12943 wsmap="managed"
12944 >
12945 <desc>
12946 The IPerformanceCollector interface represents a service that collects and
12947 stores performance metrics data.
12948
12949 Performance metrics are associated with objects like IHost and
12950 IMachine. Each object has a distinct set of performance metrics.
12951 The set can be obtained with <link to="IPerformanceCollector::getMetrics"/>.
12952
12953 Metric data are collected at the specified intervals and are retained
12954 internally. The interval and the number of samples retained can be set
12955 with <link to="IPerformanceCollector::setupMetrics" />.
12956
12957 Metrics are organized hierarchically, each level separated by slash (/).
12958 General scheme for metric name is
12959 "Category/Metric[/SubMetric][:aggregation]". For example CPU/Load/User:avg
12960 metric name stands for: CPU category, Load metric, User submetric, average
12961 aggregate. An aggregate function is computed over all retained data. Valid
12962 aggregate functions are:
12963
12964 <ul>
12965 <li>avg -- average</li>
12966 <li>min -- minimum</li>
12967 <li>max -- maximum</li>
12968 </ul>
12969
12970 "Category/Metric" together form base metric name. A base metric is the
12971 smallest unit for which a sampling interval and the number of retained
12972 samples can be set. Only base metrics can be enabled and disabled. All
12973 sub-metrics are collected when their base metric is collected.
12974 Collected values for any set of sub-metrics can be queried with
12975 <link to="IPerformanceCollector::queryMetricsData" />. When setting up
12976 metric parameters, querying metric data, enabling or disabling metrics
12977 wildcards can be used in metric names to specify a subset of metrics. For
12978 example, to select all CPU-related metrics use <tt>CPU/*</tt>, all
12979 averages can be queried using <tt>*:avg</tt> and so on. To query metric
12980 values without aggregates <tt>*:</tt> can be used.
12981
12982 The valid names for base metrics are:
12983
12984 <ul>
12985 <li>CPU/Load</li>
12986 <li>CPU/MHz</li>
12987 <li>RAM/Usage</li>
12988 </ul>
12989
12990 The general sequence for collecting and retrieving the metrics is:
12991 <ul>
12992 <li>
12993 Obtain an instance of IPerformanceCollector with
12994 <link to="IVirtualBox::performanceCollector" />
12995 </li>
12996 <li>
12997 Allocate and populate an array with references to objects the metrics
12998 will be collected for. Use references to IHost and IMachine objects.
12999 </li>
13000 <li>
13001 Allocate and populate an array with base metric names the data will be
13002 collected for.
13003 </li>
13004 <li>
13005 Call <link to="IPerformanceCollector::setupMetrics" />. From now on the
13006 metric data will be collected and stored.
13007 </li>
13008 <li>
13009 Wait for the data to get collected.
13010 </li>
13011 <li>
13012 Allocate and populate an array with references to objects the metric
13013 values will be queried for. You can re-use the object array used for
13014 setting base metrics.
13015 </li>
13016 <li>
13017 Allocate and populate an array with metric names the data will be
13018 collected for. Note that metric names differ from base metric names.
13019 </li>
13020 <li>
13021 Call <link to="IPerformanceCollector::queryMetricsData" />. The data that
13022 have been collected so far are returned. Note that the values are still
13023 retained internally and data collection continues.
13024 </li>
13025 </ul>
13026
13027 For an example of usage refer to the following files in VirtualBox SDK:
13028 <ul>
13029 <li>
13030 Java: <tt>bindings/webservice/java/jax-ws/samples/metrictest.java</tt>
13031 </li>
13032 <li>
13033 Python: <tt>bindings/xpcom/python/sample/shellcommon.py</tt>
13034 </li>
13035 </ul>
13036 </desc>
13037
13038 <attribute name="metricNames" type="wstring" readonly="yes" safearray="yes">
13039 <desc>
13040 Array of unique names of metrics.
13041
13042 This array represents all metrics supported by the performance
13043 collector. Individual objects do not necessarily support all of them.
13044 <link to="IPerformanceCollector::getMetrics"/> can be used to get the
13045 list of supported metrics for a particular object.
13046 </desc>
13047 </attribute>
13048
13049 <method name="getMetrics">
13050 <desc>
13051 Returns parameters of specified metrics for a set of objects.
13052 <note>
13053 @c Null metrics array means all metrics. @c Null object array means
13054 all existing objects.
13055 </note>
13056 </desc>
13057 <param name="metricNames" type="wstring" dir="in" safearray="yes">
13058 <desc>
13059 Metric name filter. Currently, only a comma-separated list of metrics
13060 is supported.
13061 </desc>
13062 </param>
13063 <param name="objects" type="$unknown" dir="in" safearray="yes">
13064 <desc>
13065 Set of objects to return metric parameters for.
13066 </desc>
13067 </param>
13068 <param name="metrics" type="IPerformanceMetric" dir="return" safearray="yes">
13069 <desc>
13070 Array of returned metric parameters.
13071 </desc>
13072 </param>
13073 </method>
13074
13075 <method name="setupMetrics">
13076 <desc>
13077 Sets parameters of specified base metrics for a set of objects. Returns
13078 an array of <link to="IPerformanceMetric" /> describing the metrics have
13079 been affected.
13080 <note>
13081 @c Null or empty metric name array means all metrics. @c Null or empty
13082 object array means all existing objects. If metric name array contains
13083 a single element and object array contains many, the single metric
13084 name array element is applied to each object array element to form
13085 metric/object pairs.
13086 </note>
13087 </desc>
13088 <param name="metricNames" type="wstring" dir="in" safearray="yes">
13089 <desc>
13090 Metric name filter. Comma-separated list of metrics with wildcard
13091 support.
13092 </desc>
13093 </param>
13094 <param name="objects" type="$unknown" dir="in" safearray="yes">
13095 <desc>
13096 Set of objects to setup metric parameters for.
13097 </desc>
13098 </param>
13099 <param name="period" type="unsigned long" dir="in">
13100 <desc>
13101 Time interval in seconds between two consecutive samples of performance
13102 data.
13103 </desc>
13104 </param>
13105 <param name="count" type="unsigned long" dir="in">
13106 <desc>
13107 Number of samples to retain in performance data history. Older samples
13108 get discarded.
13109 </desc>
13110 </param>
13111 <param name="affectedMetrics" type="IPerformanceMetric" dir="return" safearray="yes">
13112 <desc>
13113 Array of metrics that have been modified by the call to this method.
13114 </desc>
13115 </param>
13116 </method>
13117
13118 <method name="enableMetrics">
13119 <desc>
13120 Turns on collecting specified base metrics. Returns an array of
13121 <link to="IPerformanceMetric" /> describing the metrics have been
13122 affected.
13123 <note>
13124 @c Null or empty metric name array means all metrics. @c Null or empty
13125 object array means all existing objects. If metric name array contains
13126 a single element and object array contains many, the single metric
13127 name array element is applied to each object array element to form
13128 metric/object pairs.
13129 </note>
13130 </desc>
13131 <param name="metricNames" type="wstring" dir="in" safearray="yes">
13132 <desc>
13133 Metric name filter. Comma-separated list of metrics with wildcard
13134 support.
13135 </desc>
13136 </param>
13137 <param name="objects" type="$unknown" dir="in" safearray="yes">
13138 <desc>
13139 Set of objects to enable metrics for.
13140 </desc>
13141 </param>
13142 <param name="affectedMetrics" type="IPerformanceMetric" dir="return" safearray="yes">
13143 <desc>
13144 Array of metrics that have been modified by the call to this method.
13145 </desc>
13146 </param>
13147 </method>
13148
13149 <method name="disableMetrics">
13150 <desc>
13151 Turns off collecting specified base metrics. Returns an array of
13152 <link to="IPerformanceMetric" /> describing the metrics have been
13153 affected.
13154 <note>
13155 @c Null or empty metric name array means all metrics. @c Null or empty
13156 object array means all existing objects. If metric name array contains
13157 a single element and object array contains many, the single metric
13158 name array element is applied to each object array element to form
13159 metric/object pairs.
13160 </note>
13161 </desc>
13162 <param name="metricNames" type="wstring" dir="in" safearray="yes">
13163 <desc>
13164 Metric name filter. Comma-separated list of metrics with wildcard
13165 support.
13166 </desc>
13167 </param>
13168 <param name="objects" type="$unknown" dir="in" safearray="yes">
13169 <desc>
13170 Set of objects to disable metrics for.
13171 </desc>
13172 </param>
13173 <param name="affectedMetrics" type="IPerformanceMetric" dir="return" safearray="yes">
13174 <desc>
13175 Array of metrics that have been modified by the call to this method.
13176 </desc>
13177 </param>
13178 </method>
13179
13180 <method name="queryMetricsData">
13181 <desc>
13182 Queries collected metrics data for a set of objects.
13183
13184 The data itself and related metric information are returned in seven
13185 parallel and one flattened array of arrays. Elements of
13186 <tt>returnMetricNames, returnObjects, returnUnits, returnScales,
13187 returnSequenceNumbers, returnDataIndices and returnDataLengths</tt> with
13188 the same index describe one set of values corresponding to a single
13189 metric.
13190
13191 The <tt>returnData</tt> parameter is a flattened array of arrays. Each
13192 start and length of a sub-array is indicated by
13193 <tt>returnDataIndices</tt> and <tt>returnDataLengths</tt>. The first
13194 value for metric <tt>metricNames[i]</tt> is at
13195 <tt>returnData[returnIndices[i]]</tt>.
13196
13197 <note>
13198 @c Null or empty metric name array means all metrics. @c Null or empty
13199 object array means all existing objects. If metric name array contains
13200 a single element and object array contains many, the single metric
13201 name array element is applied to each object array element to form
13202 metric/object pairs.
13203 </note>
13204 <note>
13205 Data collection continues behind the scenes after call to
13206 @c queryMetricsData. The return data can be seen as the snapshot of
13207 the current state at the time of @c queryMetricsData call. The
13208 internally kept metric values are not cleared by the call. This makes
13209 possible querying different subsets of metrics or aggregates with
13210 subsequent calls. If periodic querying is needed it is highly
13211 suggested to query the values with @c interval*count period to avoid
13212 confusion. This way a completely new set of data values will be
13213 provided by each query.
13214 </note>
13215 </desc>
13216 <param name="metricNames" type="wstring" dir="in" safearray="yes">
13217 <desc>
13218 Metric name filter. Comma-separated list of metrics with wildcard
13219 support.
13220 </desc>
13221 </param>
13222 <param name="objects" type="$unknown" dir="in" safearray="yes">
13223 <desc>
13224 Set of objects to query metrics for.
13225 </desc>
13226 </param>
13227 <param name="returnMetricNames" type="wstring" dir="out" safearray="yes">
13228 <desc>
13229 Names of metrics returned in @c returnData.
13230 </desc>
13231 </param>
13232 <param name="returnObjects" type="$unknown" dir="out" safearray="yes">
13233 <desc>
13234 Objects associated with metrics returned in @c returnData.
13235 </desc>
13236 </param>
13237 <param name="returnUnits" type="wstring" dir="out" safearray="yes">
13238 <desc>
13239 Units of measurement for each returned metric.
13240 </desc>
13241 </param>
13242 <param name="returnScales" type="unsigned long" dir="out" safearray="yes">
13243 <desc>
13244 Divisor that should be applied to return values in order to get
13245 floating point values. For example:
13246 <tt>(double)returnData[returnDataIndices[0]+i] / returnScales[0]</tt>
13247 will retrieve the floating point value of i-th sample of the first
13248 metric.
13249 </desc>
13250 </param>
13251 <param name="returnSequenceNumbers" type="unsigned long" dir="out" safearray="yes">
13252 <desc>
13253 Sequence numbers of the first elements of value sequences of particular metrics
13254 returned in @c returnData. For aggregate metrics it is the sequence number of
13255 the sample the aggregate started calculation from.
13256 </desc>
13257 </param>
13258 <param name="returnDataIndices" type="unsigned long" dir="out" safearray="yes">
13259 <desc>
13260 Indices of the first elements of value sequences of particular metrics
13261 returned in @c returnData.
13262 </desc>
13263 </param>
13264 <param name="returnDataLengths" type="unsigned long" dir="out" safearray="yes">
13265 <desc>
13266 Lengths of value sequences of particular metrics.
13267 </desc>
13268 </param>
13269 <param name="returnData" type="long" dir="return" safearray="yes">
13270 <desc>
13271 Flattened array of all metric data containing sequences of values for
13272 each metric.
13273 </desc>
13274 </param>
13275 </method>
13276
13277 </interface>
13278
13279 <module name="VBoxSVC" context="LocalServer">
13280 <class name="VirtualBox" uuid="B1A7A4F2-47B9-4A1E-82B2-07CCD5323C3F"
13281 namespace="virtualbox.org">
13282 <interface name="IVirtualBox" default="yes"/>
13283 </class>
13284 </module>
13285
13286 <module name="VBoxC" context="InprocServer" threadingModel="Free">
13287 <class name="Session" uuid="3C02F46D-C9D2-4f11-A384-53F0CF917214"
13288 namespace="virtualbox.org">
13289 <interface name="ISession" default="yes"/>
13290 </class>
13291 </module>
13292
13293</library>
13294
13295</idl>
13296
13297<!-- vim: set shiftwidth=2 tabstop=2 expandtab: -->
Note: See TracBrowser for help on using the repository browser.

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