VirtualBox

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

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

#3551: “Main: Replace remaining collections with safe arrays”
Replace SnapshotCollection. Reviewed by dmik. Tested with GUI.

  • Property svn:eol-style set to native
File size: 471.0 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="MachineState"
363 uuid="73bf04d0-7c4f-4684-9abf-d65a9ad74343"
364 >
365 <desc>
366 Virtual machine execution state.
367
368 This enumeration represents possible values of the <link
369 to="IMachine::state"/> attribute.
370
371 Below is the basic virtual machine state diagram. It shows how the state
372 changes during virtual machine execution. The text in square braces shows
373 a method of the IConsole interface that performs the given state
374 transition.
375
376 <pre>
377 +---------[powerDown()] &lt;- Stuck &lt;--[failure]-+
378 V |
379 +-&gt; PoweredOff --+--&gt;[powerUp()]--&gt; Starting --+ | +-----[resume()]-----+
380 | | | | V |
381 | Aborted -----+ +--&gt; Running --[pause()]--&gt; Paused
382 | | ^ | ^ |
383 | Saved -----------[powerUp()]--&gt; Restoring -+ | | | |
384 | ^ | | | |
385 | | +-----------------------------------------+-|-------------------+ +
386 | | | | |
387 | | +-- Saving &lt;--------[takeSnapshot()]&lt;-------+---------------------+
388 | | | |
389 | +-------- Saving &lt;--------[saveState()]&lt;----------+---------------------+
390 | | |
391 +-------------- Stopping -------[powerDown()]&lt;----------+---------------------+
392 </pre>
393
394 Note that states to the right from PoweredOff, Aborted and Saved in the
395 above diagram are called <i>online VM states</i>. These states
396 represent the virtual machine which is being executed in a dedicated
397 process (usually with a GUI window attached to it where you can see the
398 activity of the virtual machine and interact with it). There are two
399 special pseudo-states, FirstOnline and LastOnline, that can be used in
400 relational expressions to detect if the given machine state is online or
401 not:
402
403 <pre>
404 if (machine.GetState() &gt;= MachineState_FirstOnline &amp;&amp;
405 machine.GetState() &lt;= MachineState_LastOnline)
406 {
407 ...the machine is being executed...
408 }
409 </pre>
410
411 When the virtual machine is in one of the online VM states (that is, being
412 executed), only a few machine settings can be modified. Methods working
413 with such settings contain an explicit note about that. An attempt to
414 change any oter setting or perform a modifying operation during this time
415 will result in the <link to="VBOX_E_INVALID_VM_STATE"/> error.
416
417 All online states except Running, Paused and Stuck are transitional: they
418 represent temporary conditions of the virtual machine that will last as
419 long as the operation that initiated such a condition.
420
421 The Stuck state is a special case. It means that execution of the machine
422 has reached the "Guru Meditation" condition. This condition indicates an
423 internal VMM (virtual machine manager) failure which may happen as a
424 result of either an unhandled low-level virtual hardware exception or one
425 of the recompiler exceptions (such as the <i>too-many-traps</i>
426 condition).
427
428 Note also that any online VM state may transit to the Aborted state. This
429 happens if the process that is executing the virtual machine terminates
430 unexpectedly (for example, crashes). Other than that, the Aborted state is
431 equivalent to PoweredOff.
432
433 There are also a few additional state diagrams that do not deal with
434 virtual machine execution and therefore are shown separately. The states
435 shown on these diagrams are called <i>offline VM states</i> (this includes
436 PoweredOff, Aborted and Saved too).
437
438 The first diagram shows what happens when a lengthy setup operation is
439 being executed (such as <link to="IMachine::attachHardDisk"/>).
440
441 <pre>
442 +-----------------------------------(same sate as before the call)------+
443 | |
444 +-&gt; PoweredOff --+ |
445 | | |
446 |-&gt; Aborted -----+--&gt;[lengthy VM configuration call] --&gt; SettingUp -----+
447 | |
448 +-&gt; Saved -------+
449 </pre>
450
451 The next two diagrams demonstrate the process of taking a snapshot of a
452 powered off virtual machine and performing one of the "discard..."
453 operations, respectively.
454
455 <pre>
456 +-----------------------------------(same sate as before the call)------+
457 | |
458 +-&gt; PoweredOff --+ |
459 | +--&gt;[takeSnapshot()] -------------------&gt; Saving ------+
460 +-&gt; Aborted -----+
461
462 +-&gt; PoweredOff --+
463 | |
464 | Aborted -----+--&gt;[discardSnapshot() ]-------------&gt; Discarding --+
465 | | [discardCurrentState()] |
466 +-&gt; Saved -------+ [discardCurrentSnapshotAndState()] |
467 | |
468 +---(Saved if restored from an online snapshot, PoweredOff otherwise)---+
469 </pre>
470
471 Note that the Saving state is present in both the offline state group and
472 online state group. Currently, the only way to determine what group is
473 assumed in a particular case is to remember the previous machine state: if
474 it was Running or Paused, then Saving is an online state, otherwise it is
475 an offline state. This inconsistency may be removed in one of the future
476 versions of VirtualBox by adding a new state.
477
478 <note internal="yes">
479 For whoever decides to touch this enum: In order to keep the
480 comparisons involving FirstOnline and LastOnline pseudo-states valid,
481 the numeric values of these states must be correspondingly updated if
482 needed: for any online VM state, the condition
483 <tt>FirstOnline &lt;= state &lt;= LastOnline</tt> must be
484 <tt>true</tt>. The same relates to transient states for which
485 the condition <tt>FirstOnline &lt;= state &lt;= LastOnline</tt> must be
486 <tt>true</tt>.
487 </note>
488 </desc>
489
490 <const name="Null" value="0">
491 <desc>Null value (nver used by the API).</desc>
492 </const>
493 <const name="PoweredOff" value="1">
494 <desc>
495 The machine is not running.
496 </desc>
497 </const>
498 <const name="Saved" value="2">
499 <desc>
500 The machine is not currently running, but the execution state of the machine
501 has been saved to an external file when it was running.
502 </desc>
503 </const>
504 <const name="Aborted" value="3">
505 <desc>
506 The process running the machine has terminated abnormally.
507 </desc>
508 </const>
509 <const name="Running" value="4">
510 <desc>
511 The machine is currently being executed.
512 <note internal="yes">
513 For whoever decides to touch this enum: In order to keep the
514 comparisons in the old source code valid, this state must immediately
515 precede the Paused state.
516 </note>
517 </desc>
518 </const>
519 <const name="Paused" value="5">
520 <desc>
521 Execution of the machine has been paused.
522 <note internal="yes">
523 For whoever decides to touch this enum: In order to keep the
524 comparisons in the old source code valid, this state must immediately
525 follow the Running state.
526 </note>
527 </desc>
528 </const>
529 <const name="Stuck" value="6">
530 <desc>
531 Execution of the machine has reached the "Guru Meditation"
532 condition.
533 </desc>
534 </const>
535 <const name="Starting" value="7">
536 <desc>
537 Machine is being started after powering it on from a
538 zero execution state.
539 </desc>
540 </const>
541 <const name="Stopping" value="8">
542 <desc>
543 Machine is being normally stopped powering it off, or after the guest OS
544 has initiated a shutdown sequence.
545 </desc>
546 </const>
547 <const name="Saving" value="9">
548 <desc>
549 Machine is saving its execution state to a file or an online
550 snapshot of the machine is being taken.
551 </desc>
552 </const>
553 <const name="Restoring" value="10">
554 <desc>
555 Execution state of the machine is being restored from a file
556 after powering it on from the saved execution state.
557 </desc>
558 </const>
559 <const name="Discarding" value="11">
560 <desc>
561 Snapshot of the machine is being discarded.
562 </desc>
563 </const>
564 <const name="SettingUp" value="12">
565 <desc>
566 Lengthy setup operation is in progress.
567 </desc>
568 </const>
569
570 <const name="FirstOnline" value="4" wsmap="suppress"> <!-- Running -->
571 <desc>
572 Pseudo-state: first online state (for use in relational expressions).
573 </desc>
574 </const>
575 <const name="LastOnline" value="10" wsmap="suppress"> <!-- Restoring -->
576 <desc>
577 Pseudo-state: last online state (for use in relational expressions).
578 </desc>
579 </const>
580
581 <const name="FirstTransient" value="7" wsmap="suppress"> <!-- Starting -->
582 <desc>
583 Pseudo-state: first transient state (for use in relational expressions).
584 </desc>
585 </const>
586 <const name="LastTransient" value="12" wsmap="suppress"> <!-- SettingUp -->
587 <desc>
588 Pseudo-state: last transient state (for use in relational expressions).
589 </desc>
590 </const>
591
592 </enum>
593
594 <enum
595 name="SessionState"
596 uuid="CF2700C0-EA4B-47ae-9725-7810114B94D8"
597 >
598 <desc>
599 Session state. This enumeration represents possible values of
600 <link to="IMachine::sessionState"/> and <link to="ISession::state"/>
601 attributes. See individual enumerator descriptions for the meaning for
602 every value.
603 </desc>
604
605 <const name="Null" value="0">
606 <desc>Null value (never used by the API).</desc>
607 </const>
608 <const name="Closed" value="1">
609 <desc>
610 The machine has no open sessions (<link to="IMachine::sessionState"/>);
611 the session is closed (<link to="ISession::state"/>)
612 </desc>
613 </const>
614 <const name="Open" value="2">
615 <desc>
616 The machine has an open direct session (<link to="IMachine::sessionState"/>);
617 the session is open (<link to="ISession::state"/>)
618 </desc>
619 </const>
620 <const name="Spawning" value="3">
621 <desc>
622 A new (direct) session is being opened for the machine
623 as a result of <link to="IVirtualBox::openRemoteSession"/>
624 call (<link to="IMachine::sessionState"/>);
625 the session is currently being opened
626 as a result of <link to="IVirtualBox::openRemoteSession"/>
627 call (<link to="ISession::state"/>)
628 </desc>
629 </const>
630 <const name="Closing" value="4">
631 <desc>
632 The direct session is being closed (<link to="IMachine::sessionState"/>);
633 the session is being closed (<link to="ISession::state"/>)
634 </desc>
635 </const>
636 </enum>
637
638 <enum
639 name="SessionType"
640 uuid="A13C02CB-0C2C-421E-8317-AC0E8AAA153A"
641 >
642 <desc>
643 Session type. This enumeration represents possible values of the
644 <link to="ISession::type"/> attribute.
645 </desc>
646
647 <const name="Null" value="0">
648 <desc>Null value (never used by the API).</desc>
649 </const>
650 <const name="Direct" value="1">
651 <desc>
652 Direct session
653 (opened by <link to="IVirtualBox::openSession"/>)
654 </desc>
655 </const>
656 <const name="Remote" value="2">
657 <desc>
658 Remote session
659 (opened by <link to="IVirtualBox::openRemoteSession"/>)
660 </desc>
661 </const>
662 <const name="Existing" value="3">
663 <desc>
664 Existing session
665 (opened by <link to="IVirtualBox::openExistingSession"/>)
666 </desc>
667 </const>
668 </enum>
669
670 <enum
671 name="DeviceType"
672 uuid="6d9420f7-0b56-4636-99f9-7346f1b01e57"
673 >
674 <desc>
675 Device type.
676 </desc>
677 <const name="Null" value="0">
678 <desc>
679 Null value, may also mean "no device" (not allowed for
680 <link to="IConsole::getDeviceActivity"/>).
681 </desc>
682 </const>
683 <const name="Floppy" value="1">
684 <desc>Floppy device.</desc>
685 </const>
686 <const name="DVD" value="2">
687 <desc>CD/DVD-ROM device.</desc>
688 </const>
689 <const name="HardDisk" value="3">
690 <desc>Hard disk device.</desc>
691 </const>
692 <const name="Network" value="4">
693 <desc>Network device.</desc>
694 </const>
695 <const name="USB" value="5">
696 <desc>USB device.</desc>
697 </const>
698 <const name="SharedFolder" value="6">
699 <desc>Shared folder device.</desc>
700 </const>
701 </enum>
702
703 <enum
704 name="DeviceActivity"
705 uuid="6FC8AEAA-130A-4eb5-8954-3F921422D707"
706 >
707 <desc>
708 Device activity for <link to="IConsole::getDeviceActivity"/>.
709 </desc>
710
711 <const name="Null" value="0"/>
712 <const name="Idle" value="1"/>
713 <const name="Reading" value="2"/>
714 <const name="Writing" value="3"/>
715 </enum>
716
717 <enum
718 name="StorageBus"
719 uuid="715984a5-093c-43bb-aa42-a16ed16828dd"
720 >
721 <desc>Interface bus type for storage devices.</desc>
722
723 <const name="Null" value="0">
724 <desc>Null value (never used by the API).</desc>
725 </const>
726
727 <const name="IDE" value="1"/>
728 <const name="SATA" value="2"/>
729 </enum>
730
731 <enum
732 name="ClipboardMode"
733 uuid="33364716-4008-4701-8f14-be0fa3d62950"
734 >
735 <desc>
736 Host-Guest clipboard interchange mode.
737 </desc>
738
739 <const name="Disabled" value="0"/>
740 <const name="HostToGuest" value="1"/>
741 <const name="GuestToHost" value="2"/>
742 <const name="Bidirectional" value="3"/>
743 </enum>
744
745 <enum
746 name="Scope"
747 uuid="7c91096e-499e-4eca-9f9b-9001438d7855"
748 >
749 <desc>
750 Scope of the operation.
751
752 A generic enumeration used in various methods to define the action or
753 argument scope.
754 </desc>
755
756 <const name="Global" value="0"/>
757 <const name="Machine" value="1"/>
758 <const name="Session" value="2"/>
759 </enum>
760
761 <enum
762 name="GuestStatisticType"
763 uuid="aa7c1d71-aafe-47a8-9608-27d2d337cf55"
764 >
765 <desc>
766 Statistics type for <link to="IGuest::getStatistic"/>.
767 </desc>
768
769 <const name="CPULoad_Idle" value="0">
770 <desc>
771 Idle CPU load (0-100%) for last interval.
772 </desc>
773 </const>
774 <const name="CPULoad_Kernel" value="1">
775 <desc>
776 Kernel CPU load (0-100%) for last interval.
777 </desc>
778 </const>
779 <const name="CPULoad_User" value="2">
780 <desc>
781 User CPU load (0-100%) for last interval.
782 </desc>
783 </const>
784 <const name="Threads" value="3">
785 <desc>
786 Total number of threads in the system.
787 </desc>
788 </const>
789 <const name="Processes" value="4">
790 <desc>
791 Total number of processes in the system.
792 </desc>
793 </const>
794 <const name="Handles" value="5">
795 <desc>
796 Total number of handles in the system.
797 </desc>
798 </const>
799 <const name="MemoryLoad" value="6">
800 <desc>
801 Memory load (0-100%).
802 </desc>
803 </const>
804 <const name="PhysMemTotal" value="7">
805 <desc>
806 Total physical memory in megabytes.
807 </desc>
808 </const>
809 <const name="PhysMemAvailable" value="8">
810 <desc>
811 Free physical memory in megabytes.
812 </desc>
813 </const>
814 <const name="PhysMemBalloon" value="9">
815 <desc>
816 Ballooned physical memory in megabytes.
817 </desc>
818 </const>
819 <const name="MemCommitTotal" value="10">
820 <desc>
821 Total amount of memory in the committed state in megabytes.
822 </desc>
823 </const>
824 <const name="MemKernelTotal" value="11">
825 <desc>
826 Total amount of memory used by the guest OS's kernel in megabytes.
827 </desc>
828 </const>
829 <const name="MemKernelPaged" value="12">
830 <desc>
831 Total amount of paged memory used by the guest OS's kernel in megabytes.
832 </desc>
833 </const>
834 <const name="MemKernelNonpaged" value="13">
835 <desc>
836 Total amount of non-paged memory used by the guest OS's kernel in megabytes.
837 </desc>
838 </const>
839 <const name="MemSystemCache" value="14">
840 <desc>
841 Total amount of memory used by the guest OS's system cache in megabytes.
842 </desc>
843 </const>
844 <const name="PageFileSize" value="15">
845 <desc>
846 Pagefile size in megabytes.
847 </desc>
848 </const>
849 <const name="SampleNumber" value="16">
850 <desc>
851 Statistics sample number
852 </desc>
853 </const>
854 <const name="MaxVal" value="17"/>
855 </enum>
856
857 <enum
858 name="BIOSBootMenuMode"
859 uuid="ae4fb9f7-29d2-45b4-b2c7-d579603135d5"
860 >
861 <desc>
862 BIOS boot menu mode.
863 </desc>
864
865 <const name="Disabled" value="0"/>
866 <const name="MenuOnly" value="1"/>
867 <const name="MessageAndMenu" value="2"/>
868 </enum>
869
870 <enum
871 name="IDEControllerType"
872 uuid="445330e3-202a-4dab-854f-ce22e6cb9715"
873 >
874 <desc>
875 IDE controller type.
876 </desc>
877
878 <const name="Null" value="0">
879 <desc>Null value (never used by the API).</desc>
880 </const>
881 <const name="PIIX3" value="1"/>
882 <const name="PIIX4" value="2"/>
883 <const name="ICH6" value="3"/>
884 </enum>
885
886 <enum
887 name="DriveState"
888 uuid="cb7233b7-c519-42a5-8310-1830953cacbc"
889 >
890 <const name="Null" value="0">
891 <desc>Null value (never used by the API).</desc>
892 </const>
893 <const name="NotMounted" value="1"/>
894 <const name="ImageMounted" value="2"/>
895 <const name="HostDriveCaptured" value="3"/>
896 </enum>
897
898 <enum
899 name="ProcessorFeature"
900 uuid="b8353b35-705d-4796-9967-ebfb7ba54af4"
901 >
902 <desc>
903 CPU features.
904 </desc>
905
906 <const name="HWVirtEx" value="0"/>
907 <const name="PAE" value="1"/>
908 <const name="LongMode" value="2"/>
909 </enum>
910
911
912 <!--
913 // IVirtualBoxErrorInfo
914 /////////////////////////////////////////////////////////////////////////
915 -->
916
917 <interface
918 name="IVirtualBoxErrorInfo" extends="$errorinfo"
919 uuid="e98b5376-8eb4-4eea-812a-3964bf3bb26f"
920 supportsErrorInfo="no"
921 wsmap="suppress"
922 >
923 <desc>
924 The IVirtualBoxErrorInfo interface represents extended error information.
925
926 Extended error information can be set by VirtualBox components after
927 unsuccessful or partially successful method invocation. This information
928 can be retrieved by the calling party as an IVirtualBoxErrorInfo object
929 and then shown to the client in addition to the plain 32-bit result code.
930
931 In MS COM, this interface extends the IErrorInfo interface,
932 in XPCOM, it extends the nsIException interface. In both cases,
933 it provides a set of common attributes to retrieve error
934 information.
935
936 Sometimes invocation of some component's method may involve methods of
937 other components that may also fail (independently of this method's
938 failure), or a series of non-fatal errors may precede a fatal error that
939 causes method failure. In cases like that, it may be desirable to preserve
940 information about all errors happened during method invocation and deliver
941 it to the caller. The <link to="#next"/> attribute is intended
942 specifically for this purpose and allows to represent a chain of errors
943 through a single IVirtualBoxErrorInfo object set after method invocation.
944
945 Note that errors are stored to a chain in the reverse order, i.e. the
946 initial error object you query right after method invocation is the last
947 error set by the callee, the object it points to in the @a next attribute
948 is the previous error and so on, up to the first error (which is the last
949 in the chain).
950 </desc>
951
952 <attribute name="resultCode" type="result" readonly="yes">
953 <desc>
954 Result code of the error.
955 Usually, it will be the same as the result code returned
956 by the method that provided this error information, but not
957 always. For example, on Win32, CoCreateInstance() will most
958 likely return E_NOINTERFACE upon unsuccessful component
959 instantiation attempt, but not the value the component factory
960 returned.
961 <note>
962 In MS COM, there is no equivalent.
963 In XPCOM, it is the same as nsIException::result.
964 </note>
965 </desc>
966 </attribute>
967
968 <attribute name="interfaceID" type="uuid" readonly="yes">
969 <desc>
970 UUID of the interface that defined the error.
971 <note>
972 In MS COM, it is the same as IErrorInfo::GetGUID.
973 In XPCOM, there is no equivalent.
974 </note>
975 </desc>
976 </attribute>
977
978 <attribute name="component" type="wstring" readonly="yes">
979 <desc>
980 Name of the component that generated the error.
981 <note>
982 In MS COM, it is the same as IErrorInfo::GetSource.
983 In XPCOM, there is no equivalent.
984 </note>
985 </desc>
986 </attribute>
987
988 <attribute name="text" type="wstring" readonly="yes">
989 <desc>
990 Text description of the error.
991 <note>
992 In MS COM, it is the same as IErrorInfo::GetDescription.
993 In XPCOM, it is the same as nsIException::message.
994 </note>
995 </desc>
996 </attribute>
997
998 <attribute name="next" type="IVirtualBoxErrorInfo" readonly="yes">
999 <desc>
1000 Next error object if there is any, or @c null otherwise.
1001 <note>
1002 In MS COM, there is no equivalent.
1003 In XPCOM, it is the same as nsIException::inner.
1004 </note>
1005 </desc>
1006 </attribute>
1007
1008 </interface>
1009
1010
1011 <!--
1012 // IVirtualBox
1013 /////////////////////////////////////////////////////////////////////////
1014 -->
1015
1016 <interface
1017 name="IVirtualBoxCallback" extends="$unknown"
1018 uuid="5516cc08-fb81-47a6-b184-031e7bbd2997"
1019 wsmap="suppress"
1020 >
1021 <method name="onMachineStateChange">
1022 <desc>
1023 The execution state of the given machine has changed.
1024 <see>IMachine::state</see>
1025 </desc>
1026 <param name="machineId" type="uuid" dir="in">
1027 <desc>ID of the machine this event relates to.</desc>
1028 </param>
1029 <param name="state" type="MachineState" dir="in">
1030 <desc>New execution state.</desc>
1031 </param>
1032 </method>
1033
1034 <method name="onMachineDataChange">
1035 <desc>
1036 Any of the settings of the given machine has changed.
1037 </desc>
1038 <param name="machineId" type="uuid" dir="in">
1039 <desc>ID of the machine this event relates to.</desc>
1040 </param>
1041 </method>
1042
1043 <method name="onExtraDataCanChange">
1044 <desc>
1045 Notification when someone tries to change extra data for
1046 either the given machine or (if null) global extra data.
1047 This gives the chance to veto against changes.
1048 </desc>
1049 <param name="machineId" type="uuid" dir="in">
1050 <desc>
1051 ID of the machine this event relates to
1052 (null ID for global extra data change requests).
1053 </desc>
1054 </param>
1055 <param name="key" type="wstring" dir="in">
1056 <desc>
1057 Extra data key for the attempted write.
1058 </desc>
1059 </param>
1060 <param name="value" type="wstring" dir="in">
1061 <desc>
1062 Extra data value for the given key.
1063 </desc>
1064 </param>
1065 <param name="error" type="wstring" dir="out">
1066 <desc>
1067 Optional error message describing the reason of the
1068 veto (ignored if this notification returns @c true).
1069 </desc>
1070 </param>
1071 <param name="allowChange" type="boolean" dir="return">
1072 <desc>
1073 Flag to indicate whether the callee agrees (@c true)
1074 or vetoes against the change (@c false).
1075 </desc>
1076 </param>
1077 </method>
1078
1079 <method name="onExtraDataChange">
1080 <desc>
1081 Notification when machine specific or global extra data
1082 has changed.
1083 </desc>
1084 <param name="machineId" type="uuid" dir="in">
1085 <desc>
1086 ID of the machine this event relates to.
1087 Null for global extra data changes.
1088 </desc>
1089 </param>
1090 <param name="key" type="wstring" dir="in">
1091 <desc>
1092 Extra data key that has changed.
1093 </desc>
1094 </param>
1095 <param name="value" type="wstring" dir="in">
1096 <desc>
1097 Extra data value for the given key.
1098 </desc>
1099 </param>
1100 </method>
1101
1102 <method name="onMediaRegistered">
1103 <desc>
1104 The given media was registered or unregistered
1105 within this VirtualBox installation.
1106
1107 The @a mediaType parameter describes what type of
1108 media the specified @a mediaId refers to. Possible
1109 values are:
1110
1111 <ul>
1112 <li><link to="DeviceType_HardDisk"/>: the media is a hard disk
1113 that, if registered, can be obtained using the
1114 <link to="IVirtualBox::getHardDisk"/> call.</li>
1115 <li><link to="DeviceType_DVD"/>: the media is a CD/DVD image
1116 that, if registered, can be obtained using the
1117 <link to="IVirtualBox::getDVDImage"/> call.</li>
1118 <li><link to="DeviceType_Floppy"/>: the media is a Floppy image
1119 that, if registered, can be obtained using the
1120 <link to="IVirtualBox::getFloppyImage"/> call.</li>
1121 </ul>
1122
1123 Note that if this is a deregistration notification,
1124 there is no way to access the object representing the
1125 unregistered media. It is supposed that the
1126 application will do required cleanup based on the
1127 @a mediaId value.
1128 </desc>
1129 <param name="mediaId" type="uuid" dir="in">
1130 <desc>ID of the media this event relates to.</desc>
1131 </param>
1132 <param name="mediaType" type="DeviceType" dir="in">
1133 <desc>Type of the media this event relates to.</desc>
1134 </param>
1135 <param name="registered" type="boolean" dir="in">
1136 <desc>
1137 If true, the media was registered, otherwise it was
1138 unregistered.
1139 </desc>
1140 </param>
1141 </method>
1142
1143 <method name="onMachineRegistered">
1144 <desc>
1145 The given machine was registered or unregistered
1146 within this VirtualBox installation.
1147 </desc>
1148 <param name="machineId" type="uuid" dir="in">
1149 <desc>ID of the machine this event relates to.</desc>
1150 </param>
1151 <param name="registered" type="boolean" dir="in">
1152 <desc>
1153 If true, the machine was registered, otherwise it was
1154 unregistered.
1155 </desc>
1156 </param>
1157 </method>
1158
1159 <method name="onSessionStateChange">
1160 <desc>
1161 The state of the session for the given machine was changed.
1162 <see>IMachine::sessionState</see>
1163 </desc>
1164 <param name="machineId" type="uuid" dir="in">
1165 <desc>ID of the machine this event relates to.</desc>
1166 </param>
1167 <param name="state" type="SessionState" dir="in">
1168 <desc>New session state.</desc>
1169 </param>
1170 </method>
1171
1172 <method name="onSnapshotTaken">
1173 <desc>
1174 A new snapshot of the machine has been taken.
1175 <see>ISnapshot</see>
1176 </desc>
1177 <param name="machineId" type="uuid" dir="in">
1178 <desc>ID of the machine this event relates to.</desc>
1179 </param>
1180 <param name="snapshotId" type="uuid" dir="in">
1181 <desc>ID of the new snapshot.</desc>
1182 </param>
1183 </method>
1184
1185 <method name="onSnapshotDiscarded">
1186 <desc>
1187 Snapshot of the given machine has been discarded.
1188
1189 <note>
1190 This notification is delivered <b>after</b> the snapshot
1191 object has been uninitialized on the server (so that any
1192 attempt to call its methods will return an error).
1193 </note>
1194
1195 <see>ISnapshot</see>
1196 </desc>
1197 <param name="machineId" type="uuid" dir="in">
1198 <desc>ID of the machine this event relates to.</desc>
1199 </param>
1200 <param name="snapshotId" type="uuid" dir="in">
1201 <desc>
1202 ID of the discarded snapshot. <tt>null</tt> means the
1203 current machine state has been discarded (restored from
1204 the current snapshot).
1205 </desc>
1206 </param>
1207 </method>
1208
1209 <method name="onSnapshotChange">
1210 <desc>
1211 Snapshot properties (name and/or description) have been changed.
1212 <see>ISnapshot</see>
1213 </desc>
1214 <param name="machineId" type="uuid" dir="in">
1215 <desc>ID of the machine this event relates to.</desc>
1216 </param>
1217 <param name="snapshotId" type="uuid" dir="in">
1218 <desc>ID of the changed snapshot.</desc>
1219 </param>
1220 </method>
1221
1222 <method name="onGuestPropertyChange">
1223 <desc>
1224 Notification when a guest property has changed.
1225 </desc>
1226 <param name="machineId" type="uuid" dir="in">
1227 <desc>
1228 ID of the machine this event relates to.
1229 </desc>
1230 </param>
1231 <param name="name" type="wstring" dir="in">
1232 <desc>
1233 The name of the property that has changed.
1234 </desc>
1235 </param>
1236 <param name="value" type="wstring" dir="in">
1237 <desc>
1238 The new property value.
1239 </desc>
1240 </param>
1241 <param name="flags" type="wstring" dir="in">
1242 <desc>
1243 The new property flags.
1244 </desc>
1245 </param>
1246 </method>
1247
1248 </interface>
1249
1250 <interface
1251 name="IVirtualBox" extends="$dispatched"
1252 uuid="339abca2-f47a-4302-87f5-7bc324e6bbde"
1253 wsmap="managed"
1254 >
1255 <desc>
1256 The IVirtualBox interface represents the main interface exposed by the
1257 product that provides virtual machine management.
1258
1259 An instance of IVirtualBox is required for the product to do anything
1260 useful. Even though the interface does not expose this, internally,
1261 IVirtualBox is implemented as a singleton and actually lives in the
1262 process of the VirtualBox server (VBoxSVC.exe). This makes sure that
1263 IVirtualBox can track the state of all virtual machines on a particular
1264 host, regardless of which frontend started them.
1265
1266 To enumerate all the virtual machines on the host, use the
1267 <link to="IVirtualBox::machines2"/> attribute.
1268 </desc>
1269
1270 <attribute name="version" type="wstring" readonly="yes">
1271 <desc>
1272 A string representing the version number of the product. The
1273 format is 3 integer numbers divided by dots (e.g. 1.0.1). The
1274 last number represents the build number and will frequently change.
1275 </desc>
1276 </attribute>
1277
1278 <attribute name="revision" type="unsigned long" readonly="yes">
1279 <desc>
1280 The internal build revision number of the product.
1281 </desc>
1282 </attribute>
1283
1284 <attribute name="packageType" type="wstring" readonly="yes">
1285 <desc>
1286 A string representing the package type of this product. The
1287 format is OS_ARCH_DIST where OS is either WINDOWS, LINUX,
1288 SOLARIS, DARWIN. ARCH is either 32BITS or 64BITS. DIST
1289 is either GENERIC, UBUNTU_606, UBUNTU_710, or something like
1290 this.
1291 </desc>
1292 </attribute>
1293
1294 <attribute name="homeFolder" type="wstring" readonly="yes">
1295 <desc>
1296 Full path to the directory where the global settings file,
1297 <tt>VirtualBox.xml</tt>, is stored.
1298
1299 In this version of VirtualBox, the value of this property is
1300 always <tt>&lt;user_dir&gt;/.VirtualBox</tt> (where
1301 <tt>&lt;user_dir&gt;</tt> is the path to the user directory,
1302 as determined by the host OS), and cannot be changed.
1303
1304 This path is also used as the base to resolve relative paths in
1305 places where relative paths are allowed (unless otherwise
1306 expressly indicated).
1307 </desc>
1308 </attribute>
1309
1310 <attribute name="settingsFilePath" type="wstring" readonly="yes">
1311 <desc>
1312 Full name of the global settings file.
1313 The value of this property corresponds to the value of
1314 <link to="#homeFolder"/> plus <tt>/VirtualBox.xml</tt>.
1315 </desc>
1316 </attribute>
1317
1318 <attribute name="settingsFileVersion" type="wstring" readonly="yes">
1319 <desc>
1320 Current version of the format of the global VirtualBox settings file
1321 (<tt>VirtualBox.xml</tt>).
1322
1323 The version string has the following format:
1324 <pre>
1325 x.y-platform
1326 </pre>
1327 where <tt>x</tt> and <tt>y</tt> are the major and the minor format
1328 versions, and <tt>platform</tt> is the platform identifier.
1329
1330 The current version usually matches the value of the
1331 <link to="#settingsFormatVersion"/> attribute unless the
1332 settings file was created by an older version of VirtualBox and there
1333 was a change of the settings file format since then.
1334
1335 Note that VirtualBox automatically converts settings files from older
1336 versions to the most recent version when reading them (usually at
1337 VirtualBox startup) but it doesn't save the changes back until
1338 you call a method that implicitly saves settings (such as
1339 <link to="#setExtraData"/>) or call <link to="#saveSettings"/>
1340 explicitly. Therefore, if the value of this attribute differs from the
1341 value of <link to="#settingsFormatVersion"/>, then it
1342 means that the settings file was converted but the result of the
1343 conversion is not yet saved to disk.
1344
1345 The above feature may be used by interactive front-ends to inform users
1346 about the settings file format change and offer them to explicitly save
1347 all converted settings files (the global and VM-specific ones),
1348 optionally create backup copies of the old settings files before saving,
1349 etc.
1350
1351 <see>settingsFormatVersion, saveSettingsWithBackup()</see>
1352 </desc>
1353 </attribute>
1354
1355 <attribute name="settingsFormatVersion" type="wstring" readonly="yes">
1356 <desc>
1357 Most recent version of the settings file format.
1358
1359 The version string has the following format:
1360 <pre>
1361 x.y-platform
1362 </pre>
1363 where <tt>x</tt> and <tt>y</tt> are the major and the minor format
1364 versions, and <tt>platform</tt> is the platform identifier.
1365
1366 VirtualBox uses this version of the format when saving settings files
1367 (either as a result of method calls that require to save settings or as
1368 a result of an explicit call to <link to="#saveSettings"/>).
1369
1370 <see>settingsFileVersion</see>
1371 </desc>
1372 </attribute>
1373
1374 <attribute name="host" type="IHost" readonly="yes">
1375 <desc>Associated host object.</desc>
1376 </attribute>
1377
1378 <attribute name="systemProperties" type="ISystemProperties" readonly="yes">
1379 <desc>Associated system information object.</desc>
1380 </attribute>
1381
1382 <attribute name="machines2" type="IMachine" readonly="yes" safearray="yes">
1383 <desc>
1384 Array of machine objects registered within this VirtualBox instance.
1385 </desc>
1386 </attribute>
1387
1388 <attribute name="hardDisks" type="IHardDisk" readonly="yes" safearray="yes">
1389 <desc>
1390 Array of hard disk objects known to this VirtualBox installation.
1391
1392 This array contains only base (root) hard disks. All differencing
1393 hard disks of the given base hard disk can be enumerated using
1394 <link to="IHardDisk::children"/>.
1395 </desc>
1396 </attribute>
1397
1398 <attribute name="DVDImages" type="IDVDImage" readonly="yes" safearray="yes">
1399 <desc>
1400 Array of CD/DVD image objects registered with this VirtualBox instance.
1401 </desc>
1402 </attribute>
1403
1404 <attribute name="floppyImages" type="IFloppyImage" readonly="yes" safearray="yes">
1405 <desc>
1406 Array of floppy image objects registered with this VirtualBox instance.
1407 </desc>
1408 </attribute>
1409
1410 <attribute name="progressOperations" type="IProgress" readonly="yes" safearray="yes"/>
1411
1412 <attribute name="guestOSTypes" type="IGuestOSType" readonly="yes" safearray="yes"/>
1413
1414 <attribute name="sharedFolders" type="ISharedFolder" readonly="yes" safearray="yes">
1415 <desc>
1416 Collection of global shared folders. Global shared folders are
1417 available to all virtual machines.
1418
1419 New shared folders are added to the collection using
1420 <link to="#createSharedFolder"/>. Existing shared folders can be
1421 removed using <link to="#removeSharedFolder"/>.
1422
1423 <note>
1424 In the current version of the product, global shared folders are not
1425 implemented and therefore this collection is always empty.
1426 </note>
1427 </desc>
1428 </attribute>
1429
1430 <attribute name="performanceCollector" type="IPerformanceCollector" readonly="yes">
1431 <desc>
1432 Associated performance collector object.
1433 </desc>
1434 </attribute>
1435
1436 <method name="createMachine">
1437 <desc>
1438 Creates a new virtual machine.
1439
1440 The new machine is created unregistered, with the initial configuration
1441 set according to the specified guest OS type. A typical sequence of
1442 actions to create a new virtual machine is as follows:
1443
1444 <ol>
1445 <li>
1446 Call this method to have a new machine created. The returned machine
1447 object will be "mutable" allowing to change any machine property.
1448 </li>
1449
1450 <li>
1451 Configure the machine using the appropriate attributes and methods.
1452 </li>
1453
1454 <li>
1455 Call <link to="IMachine::saveSettings" /> to write the settings
1456 to the machine's XML settings file. The configuration of the newly
1457 created machine will not be saved to disk until this method is
1458 called.
1459 </li>
1460
1461 <li>
1462 Call <link to="#registerMachine" /> to add the machine to the list
1463 of machines known to VirtualBox.
1464 </li>
1465 </ol>
1466
1467 You should specify valid name for the newly created machine when calling
1468 this method. See the <link to="IMachine::name"/> attribute description
1469 for more details about the machine name.
1470
1471 The specified guest OS type identifier must match an ID of one of known
1472 guest OS types listed in the <link to="IVirtualBox::guestOSTypes"/>
1473 array.
1474
1475 Every machine has a <i>settings file</i> that is used to store
1476 the machine configuration. This file is stored in a directory called the
1477 <i>machine settings subfolder</i>. Both the settings subfolder and file
1478 will have a name that corresponds to the name of the virtual machine.
1479 You can specify where to create the machine setting subfolder using the
1480 @a baseFolder argument. The base folder can be absolute (full path) or
1481 relative to the <link to="IVirtualBox::homeFolder">VirtualBox home
1482 directory</link>.
1483
1484 If @a baseFolder is a null or empty string (which is recommended), the
1485 <link to="ISystemProperties::defaultMachineFolder">default machine
1486 settings folder</link> will be used as a base folder for the created
1487 machine. Otherwise the given base folder will be used. In either case,
1488 the full path to the resulting settings file has the following
1489 structure:
1490 <pre>
1491 &lt;base_folder&gt;/&lt;machine_name&gt;/&lt;machine_name&gt;.xml
1492 </pre>
1493
1494 Note that if the resulting settings file already exists, this method
1495 will fail with <link to="VBOX_E_FILE_ERROR"/>.
1496
1497 Optionally, you may specify an UUID of to assign to the created machine.
1498 However, this is not recommended and you should normally pass an empty
1499 (null) UUID to this method so that a new UUID will be automatically
1500 generated for every created machine. You can use UUID
1501 00000000-0000-0000-0000-000000000000 as null value.
1502
1503 <note>
1504 There is no way to change the name of the settings file or
1505 subfolder of the created machine directly.
1506 </note>
1507
1508 <result name="VBOX_E_OBJECT_NOT_FOUND">
1509 @a osTypeId is invalid.
1510 </result>
1511 <result name="VBOX_E_FILE_ERROR">
1512 Resulting settings file name is invalid or the settings file already
1513 exists or could not be created due to an I/O error.
1514 </result>
1515 <result name="E_INVALIDARG">
1516 @a name is empty or null.
1517 </result>
1518 </desc>
1519
1520 <param name="name" type="wstring" dir="in">
1521 <desc>Machine name.</desc>
1522 </param>
1523 <param name="osTypeId" type="wstring" dir="in">
1524 <desc>Guest OS Type ID.</desc>
1525 </param>
1526 <param name="baseFolder" type="wstring" dir="in">
1527 <desc>Base machine folder (optional).</desc>
1528 </param>
1529 <param name="id" type="uuid" dir="in">
1530 <desc>Machine UUID (optional).</desc>
1531 </param>
1532 <param name="machine" type="IMachine" dir="return">
1533 <desc>Created machine object.</desc>
1534 </param>
1535 </method>
1536
1537 <method name="createLegacyMachine">
1538 <desc>
1539 Creates a new virtual machine in "legacy" mode, using the specified
1540 settings file to store machine settings.
1541
1542 As opposed to machines created by <link to="#createMachine"/>,
1543 the settings file of the machine created in "legacy" mode is not
1544 automatically renamed when the machine name is changed -- it will always
1545 remain the same as specified in this method call.
1546
1547 The specified settings file name can be absolute (full path) or relative
1548 to the <link to="IVirtualBox::homeFolder">VirtualBox home
1549 directory</link>. If the file name doesn't contain an extension, the
1550 default extension (.xml) will be appended.
1551
1552 Note that the configuration of the newly created machine is not
1553 saved to disk (and therefore no settings file is created)
1554 until <link to="IMachine::saveSettings"/> is called. If the
1555 specified settings file already exists, this method
1556 will fail with <link to="VBOX_E_FILE_ERROR"/>..
1557
1558 See <link to="#createMachine"/> for more information.
1559
1560 @deprecated This method may be removed later. Use <link
1561 to="IVirtualBox::createMachine"/> instead.
1562
1563 <note>
1564 There is no way to change the name of the settings file
1565 of the machine created in "legacy" mode.
1566 </note>
1567
1568 <result name="VBOX_E_OBJECT_NOT_FOUND">
1569 @a osTypeId is invalid.
1570 </result>
1571 <result name="VBOX_E_FILE_ERROR">
1572 @a settingsFile is invalid or the settings file already exists or
1573 could not be created due to an I/O error.
1574 </result>
1575 <result name="E_INVALIDARG">
1576 @a name or @a settingsFile is empty or null.
1577 </result>
1578 </desc>
1579
1580 <param name="name" type="wstring" dir="in">
1581 <desc>Machine name.</desc>
1582 </param>
1583 <param name="osTypeId" type="wstring" dir="in">
1584 <desc>Machine OS Type ID.</desc>
1585 </param>
1586 <param name="settingsFile" type="wstring" dir="in">
1587 <desc>Name of the machine settings file.</desc>
1588 </param>
1589 <param name="id" type="uuid" dir="in">
1590 <desc>Machine UUID (optional).</desc>
1591 </param>
1592 <param name="machine" type="IMachine" dir="return">
1593 <desc>Created machine object.</desc>
1594 </param>
1595 </method>
1596
1597 <method name="openMachine">
1598 <desc>
1599 Opens a virtual machine from the existing settings file.
1600 The opened machine remains unregistered until you call
1601 <link to="#registerMachine"/>.
1602
1603 The specified settings file name can be absolute
1604 (full path) or relative to the <link to="IVirtualBox::homeFolder">
1605 VirtualBox home directory</link>. This file must exist
1606 and must be a valid machine settings file whose contents
1607 will be used to construct the machine object.
1608
1609 @deprecated Will be removed soon.
1610 <result name="VBOX_E_FILE_ERROR">
1611 Settings file name invalid, not found or sharing violation.
1612 </result>
1613 </desc>
1614 <param name="settingsFile" type="wstring" dir="in">
1615 <desc>
1616 Name of the machine settings file.
1617 </desc>
1618 </param>
1619 <param name="machine" type="IMachine" dir="return">
1620 <desc>Opened machine object.</desc>
1621 </param>
1622 <note>
1623 <link to="IMachine::settingsModified"/> will return
1624 false for the created machine, until any of machine settings
1625 are changed.
1626 </note>
1627 </method>
1628
1629 <method name="registerMachine">
1630 <desc>
1631
1632 Registers the machine previously created using
1633 <link to="#createMachine"/> or opened using
1634 <link to="#openMachine"/> within this VirtualBox installation. After
1635 successful method invocation, the
1636 <link to="IVirtualBoxCallback::onMachineRegistered"/> signal is sent
1637 to all registered callbacks.
1638
1639 <note>
1640 This method implicitly calls <link to="IMachine::saveSettings"/>
1641 to save all current machine settings before registering it.
1642 </note>
1643
1644 <result name="VBOX_E_OBJECT_NOT_FOUND">
1645 No matching virtual machine found.
1646 </result>
1647 <result name="VBOX_E_INVALID_OBJECT_STATE">
1648 Virtual machine was not created within this VirtualBox instance.
1649 </result>
1650
1651 </desc>
1652 <param name="machine" type="IMachine" dir="in"/>
1653 </method>
1654
1655 <method name="getMachine">
1656 <desc>
1657 Attempts to find a virtual machine given its UUID.
1658 To look up a machine by name, use <link to="IVirtualBox::findMachine" />
1659 instead.
1660
1661 <result name="VBOX_E_OBJECT_NOT_FOUND">
1662 Could not find registered machine matching @a id.
1663 </result>
1664
1665 </desc>
1666 <param name="id" type="uuid" dir="in"/>
1667 <param name="machine" type="IMachine" dir="return"/>
1668 </method>
1669
1670 <method name="findMachine">
1671 <desc>
1672 Attempts to find a virtual machine given its name.
1673 To look up a machine by UUID, use <link to="IVirtualBox::getMachine" />
1674 instead.
1675
1676 <result name="VBOX_E_OBJECT_NOT_FOUND">
1677 Could not find registered machine matching @a name.
1678 </result>
1679
1680 </desc>
1681 <param name="name" type="wstring" dir="in"/>
1682 <param name="machine" type="IMachine" dir="return"/>
1683 </method>
1684
1685 <method name="unregisterMachine">
1686 <desc>
1687
1688 Unregisters the machine previously registered using
1689 <link to="#registerMachine"/>. After successful method invocation, the
1690 <link to="IVirtualBoxCallback::onMachineRegistered"/> signal is sent
1691 to all registered callbacks.
1692
1693 <note>
1694 The specified machine must not be in the Saved state, have an open
1695 (or a spawning) direct session associated with it, have snapshots or
1696 have hard disks attached.
1697 </note>
1698
1699 <note>
1700 This method implicitly calls <link to="IMachine::saveSettings"/> to
1701 save all current machine settings before unregistering it.
1702 </note>
1703
1704 <note>
1705 If the given machine is inaccessible (see
1706 <link to="IMachine::accessible"/>), it will be unregistered and
1707 fully uninitialized right afterwards. As a result, the returned
1708 machine object will be unusable and an attempt to call
1709 <b>any</b> method will return the "Object not ready" error.
1710 </note>
1711
1712 <result name="VBOX_E_OBJECT_NOT_FOUND">
1713 Could not find registered machine matching @a id.
1714 </result>
1715 <result name="VBOX_E_INVALID_VM_STATE">
1716 Machine is in Saved state.
1717 </result>
1718 <result name="VBOX_E_INVALID_OBJECT_STATE">
1719 Machine has snapshot or open session or hard disk attached.
1720 </result>
1721
1722 </desc>
1723 <param name="id" type="uuid" dir="in">
1724 <desc>UUID of the machine to unregister.</desc>
1725 </param>
1726 <param name="machine" type="IMachine" dir="return">
1727 <desc>Unregistered machine object.</desc>
1728 </param>
1729 </method>
1730
1731 <method name="createAppliance">
1732 <desc>
1733 Creates a new appliance object, which represents an appliance in the Open Virtual Machine
1734 Format (OVF). This can then be used to import an OVF appliance into VirtualBox or to export
1735 machines as an OVF appliance; see the documentation for <link to="IAppliance" /> for details.
1736 </desc>
1737 <param name="appliance" type="IAppliance" dir="return">
1738 <desc>New appliance.</desc>
1739 </param>
1740 </method>
1741
1742 <method name="createHardDisk">
1743 <desc>
1744 Creates a new base hard disk object that will use the given storage
1745 format and location for hard disk data.
1746
1747 Note that the actual storage unit is not created by this method. In
1748 order to do it, and before you are able to attach the created hard disk
1749 to virtual machines, you must call one of the following methods to
1750 allocate a format-specific storage unit at the specified location:
1751 <ul>
1752 <li><link to="IHardDisk::createDynamicStorage"/></li>
1753 <li><link to="IHardDisk::createFixedStorage"/></li>
1754 <li><link to="IHardDisk::createDiffStorage"/></li>
1755 </ul>
1756
1757 Some hard disk attributes, such as <link to="IHardDisk::id"/>, may
1758 remain uninitialized until the hard disk storage unit is successfully
1759 created by one of the above methods.
1760
1761 After the storage unit is successfully created, the hard disk gets
1762 remembered by this VirtualBox installation and will be accessible
1763 through <link to="#getHardDisk"/> and <link to="#findHardDisk"/>
1764 methods. Remembered root (base) hard disks are also returned as part of
1765 the <link to="#hardDisks"/> array. See IHardDisk for more details.
1766
1767 The list of all storage formats supported by this VirtualBox
1768 installation can be obtained using
1769 <link to="ISystemProperties::hardDiskFormats"/>. If the @a format
1770 attribute is empty or <tt>null</tt> then the default storage format
1771 specified by <link to="ISystemProperties::defaultHardDiskFormat"/> will
1772 be used for creating a storage unit of the hard disk.
1773
1774 Note that the format of the location string is storage format specific.
1775 See <link to="IMedium::location"/>, IHardDisk and
1776 <link to="ISystemProperties::defaultHardDiskFolder"/> for more details.
1777
1778 <result name="VBOX_E_OBJECT_NOT_FOUND">
1779 @a format identifier is invalid. See
1780 <link to="ISystemProperties::hardDiskFormats"/>.
1781 </result>
1782 <result name="VBOX_E_FILE_ERROR">
1783 @a location is a not valid file name (for file-based formats only).
1784 </result>
1785 <result name="E_INVALIDARG">
1786 @a format is a null or empty string.
1787 </result>
1788 </desc>
1789 <param name="format" type="wstring" dir="in">
1790 <desc>
1791 Identifier of the storage format to use for the new hard disk.
1792 </desc>
1793 </param>
1794 <param name="location" type="wstring" dir="in">
1795 <desc>
1796 Location of the storage unit for the new hard disk.
1797 </desc>
1798 </param>
1799 <param name="hardDisk" type="IHardDisk" dir="return">
1800 <desc>Created hard disk object.</desc>
1801 </param>
1802 </method>
1803
1804 <method name="openHardDisk">
1805 <desc>
1806 Opens a hard disk from an existing location.
1807
1808 After the hard disk is successfully opened by this method, it gets
1809 remembered by (known to) this VirtualBox installation and will be
1810 accessible through <link to="#getHardDisk"/> and
1811 <link to="#findHardDisk"/> methods. Remembered root (base) hard disks
1812 are also returned as part of the <link to="#hardDisks"/> array and can
1813 be attached to virtual machines. See IHardDisk for more details.
1814
1815 If a differencing hard disk is to be opened by this method, the
1816 operation will succeed only if its parent hard disk and all ancestors,
1817 if any, are already known to this VirtualBox installation (for example,
1818 were opened by this method before).
1819
1820 This method tries to guess the storage format of the specified hard disk
1821 by reading hard disk data at the specified location.
1822
1823 Note that the format of the location string is storage format specific.
1824 See <link to="IMedium::location"/>, IHardDisk and
1825 <link to="ISystemProperties::defaultHardDiskFolder"/> for more details.
1826
1827
1828 <result name="VBOX_E_FILE_ERROR">
1829 Invalid hard disk storage file location.
1830 </result>
1831 <result name="VBOX_E_IPRT_ERROR">
1832 Could not get hard disk storage format.
1833 </result>
1834 <result name="E_INVALIDARG">
1835 Invalid hard disk storage format.
1836 </result>
1837
1838 </desc>
1839 <param name="location" type="wstring" dir="in">
1840 <desc>
1841 Location of the storage unit that contains hard disk data in one of
1842 the supported storage formats.
1843 </desc>
1844 </param>
1845 <param name="hardDisk" type="IHardDisk" dir="return">
1846 <desc>Opened hard disk object.</desc>
1847 </param>
1848 </method>
1849
1850 <method name="getHardDisk" const="yes">
1851 <desc>
1852 Returns a hard disk with the given UUID.
1853
1854 The hard disk with the given UUID must be known to this VirtualBox
1855 installation, i.e. it must be previously created by
1856 <link to="#createHardDisk"/> or opened by <link
1857 to="#openHardDisk"/>, or attached to some known virtual machine.
1858
1859 <result name="VBOX_E_OBJECT_NOT_FOUND">
1860 No hard disk object matching @a id found.
1861 </result>
1862
1863 </desc>
1864 <param name="id" type="uuid" dir="in">
1865 <desc>UUID of the hard disk to look for.</desc>
1866 </param>
1867 <param name="hardDisk" type="IHardDisk" dir="return">
1868 <desc>Found hard disk object.</desc>
1869 </param>
1870 </method>
1871
1872 <method name="findHardDisk">
1873 <desc>
1874 Returns a hard disk that uses the given location to store hard
1875 disk data.
1876
1877 The given hard disk must be known to this VirtualBox installation, i.e.
1878 it must be previously created by
1879 <link to="#createHardDisk"/> or opened by <link
1880 to="#openHardDisk"/>, or attached to some known virtual machine.
1881
1882 The search is done by comparing the value of the @a location argument to
1883 the <link to="IHardDisk::location"/> attribute of each known hard
1884 disk.
1885
1886 For locations represented by file names in the host's file system, the
1887 requested location can be a path relative to the
1888 <link to="IVirtualBox::homeFolder">VirtualBox home folder</link>. If
1889 only a file name without any path is given, the
1890 <link to="ISystemProperties::defaultHardDiskFolder"> default hard disk
1891 folder</link> will be prepended to the file name before searching. Note
1892 that on case sensitive file systems, a case sensitive comparison is
1893 performed, otherwise the case of symbols in the file path is ignored.
1894
1895 <result name="VBOX_E_OBJECT_NOT_FOUND">
1896 No hard disk object matching @a location found.
1897 </result>
1898
1899 </desc>
1900 <param name="location" type="wstring" dir="in">
1901 <desc>Location string to search for.</desc>
1902 </param>
1903 <param name="hardDisk" type="IHardDisk" dir="return">
1904 <desc>Found hard disk object.</desc>
1905 </param>
1906 </method>
1907
1908 <method name="openDVDImage">
1909 <desc>
1910 Opens a CD/DVD image contained in the specified file of the supported
1911 format and assigns it the given UUID.
1912
1913 After the image is successfully opened by this method, it gets
1914 remembered by (known to) this VirtualBox installation and will be
1915 accessible through <link to="#getDVDImage"/> and
1916 <link to="#findDVDImage"/> methods. Remembered images are also
1917 returned as part of the <link to="#DVDImages"/> array and can be mounted
1918 to virtual machines. See IMedium for more details.
1919
1920 See <link to="IMedium::location"/> to get more details about the format
1921 of the location string.
1922
1923 <note>
1924 Currently only ISO 9960 CD/DVD images are supported by VirtualBox.
1925 </note>
1926
1927 <result name="VBOX_E_INVALID_OBJECT_STATE">
1928 CD/DVD image already exists in the media registry.
1929 </result>
1930
1931 </desc>
1932 <param name="location" type="wstring" dir="in">
1933 <desc>
1934 Full path to the file that contains a valid CD/DVD image.
1935 </desc>
1936 </param>
1937 <param name="id" type="uuid" dir="in">
1938 <desc>
1939 UUID to assign to the given image within this VirtualBox installation.
1940 If an empty (null) UUID is specified, the system will randomly
1941 generate a new UUID.
1942 </desc>
1943 </param>
1944 <param name="image" type="IDVDImage" dir="return">
1945 <desc>Opened CD/DVD image object.</desc>
1946 </param>
1947 </method>
1948
1949 <method name="getDVDImage">
1950 <desc>
1951 Returns a CD/DVD image with the given UUID.
1952
1953 The image with the given UUID must be known to this VirtualBox
1954 installation, i.e. it must be previously opened by <link
1955 to="#openDVDImage"/>, or mounted to some known virtual machine.
1956
1957 <result name="VBOX_E_OBJECT_NOT_FOUND">
1958 No matching DVD image found in the media registry.
1959 </result>
1960
1961 </desc>
1962 <param name="id" type="uuid" dir="in">
1963 <desc>UUID of the image to look for.</desc>
1964 </param>
1965 <param name="image" type="IDVDImage" dir="return">
1966 <desc>Found CD/DVD image object.</desc>
1967 </param>
1968 </method>
1969
1970 <method name="findDVDImage">
1971 <desc>
1972 Returns a CD/DVD image with the given image location.
1973
1974 The image with the given UUID must be known to this VirtualBox
1975 installation, i.e. it must be previously opened by <link
1976 to="#openDVDImage"/>, or mounted to some known virtual machine.
1977
1978 The search is done by comparing the value of the @a location argument to
1979 the <link to="IMedium::location"/> attribute of each known CD/DVD image.
1980
1981 The requested location can be a path relative to the
1982 <link to="IVirtualBox::homeFolder">VirtualBox home folder</link>. If
1983 only a file name without any path is given, the
1984 <link to="ISystemProperties::defaultHardDiskFolder"> default hard disk
1985 folder</link> will be prepended to the file name before searching. Note
1986 that on case sensitive file systems, a case sensitive comparison is
1987 performed, otherwise the case in the file path is ignored.
1988
1989 <result name="VBOX_E_FILE_ERROR">
1990 Invalid image file location.
1991 </result>
1992 <result name="VBOX_E_OBJECT_NOT_FOUND">
1993 No matching DVD image found in the media registry.
1994 </result>
1995
1996 </desc>
1997 <param name="location" type="wstring" dir="in">
1998 <desc>CD/DVD image file path to look for.</desc>
1999 </param>
2000 <param name="image" type="IDVDImage" dir="return">
2001 <desc>Found CD/DVD image object.</desc>
2002 </param>
2003 </method>
2004
2005 <method name="openFloppyImage">
2006 <desc>
2007 Opens a floppy image contained in the specified file of the supported
2008 format and assigns it the given UUID.
2009
2010 After the image is successfully opened by this method, it gets
2011 remembered by (known to) this VirtualBox installation and will be
2012 accessible through <link to="#getFloppyImage"/> and
2013 <link to="#findFloppyImage"/> methods. Remembered images are also
2014 returned as part of the <link to="#floppyImages"/> array and can be
2015 mounted to virtual machines. See IMedium for more details.
2016
2017 See <link to="IMedium::location"/> to get more details about the format
2018 of the location string.
2019
2020 <result name="VBOX_E_FILE_ERROR">
2021 Floppy image specified by @a location not accessible.
2022 </result>
2023 <result name="VBOX_E_INVALID_OBJECT_STATE">
2024 Floppy image already exists in the media registry.
2025 </result>
2026
2027 <note>
2028 Currently, only raw floppy images are supported by VirtualBox.
2029 </note>
2030 </desc>
2031 <param name="location" type="wstring" dir="in">
2032 <desc>
2033 Full path to the file that contains a valid floppy image.
2034 </desc>
2035 </param>
2036 <param name="id" type="uuid" dir="in">
2037 <desc>
2038 UUID to assign to the given image file within this VirtualBox
2039 installation. If an empty (null) UUID is specified, the system will
2040 randomly generate a new UUID.
2041 </desc>
2042 </param>
2043 <param name="image" type="IFloppyImage" dir="return">
2044 <desc>Opened floppy image object.</desc>
2045 </param>
2046 </method>
2047
2048 <method name="getFloppyImage">
2049 <desc>
2050 Returns a floppy image with the given UUID.
2051
2052 The image with the given UUID must be known to this VirtualBox
2053 installation, i.e. it must be previously opened by <link
2054 to="#openFloppyImage"/>, or mounted to some known virtual machine.
2055
2056 <result name="VBOX_E_OBJECT_NOT_FOUND">
2057 No matching floppy image found in the media registry.
2058 </result>
2059
2060 </desc>
2061 <param name="id" type="uuid" dir="in">
2062 <desc>UUID of the image to look for.</desc>
2063 </param>
2064 <param name="image" type="IFloppyImage" dir="return">
2065 <desc>Found floppy image object.</desc>
2066 </param>
2067 </method>
2068
2069 <method name="findFloppyImage">
2070 <desc>
2071 Returns a floppy image with the given image location.
2072
2073 The image with the given UUID must be known to this VirtualBox
2074 installation, i.e. it must be previously opened by <link
2075 to="#openFloppyImage"/>, or mounted to some known virtual machine.
2076
2077 The search is done by comparing the value of the @a location argument to
2078 the <link to="IMedium::location"/> attribute of each known floppy image.
2079
2080 The requested location can be a path relative to the
2081 <link to="IVirtualBox::homeFolder">VirtualBox home folder</link>. If
2082 only a file name without any path is given, the
2083 <link to="ISystemProperties::defaultHardDiskFolder"> default hard disk
2084 folder</link> will be prepended to the file name before searching. Note
2085 that on case sensitive file systems, a case sensitive comparison is
2086 performed, otherwise the case of symbols in the file path is ignored.
2087
2088 <result name="VBOX_E_FILE_ERROR">
2089 Invalid image file location.
2090 </result>
2091 <result name="VBOX_E_OBJECT_NOT_FOUND">
2092 No matching floppy image found in the media registry.
2093 </result>
2094
2095 </desc>
2096 <param name="location" type="wstring" dir="in">
2097 <desc>Floppy image file path to look for.</desc>
2098 </param>
2099 <param name="image" type="IFloppyImage" dir="return">
2100 <desc>Found floppy image object.</desc>
2101 </param>
2102 </method>
2103
2104 <method name="getGuestOSType">
2105 <desc>
2106 Returns an object describing the specified guest OS type.
2107
2108 The requested guest OS type is specified using a string which is a
2109 mnemonic identifier of the guest operating system, such as
2110 <tt>"win31"</tt> or <tt>"ubuntu"</tt>. The guest OS type ID of a
2111 particular virtual machine can be read or set using the
2112 <link to="IMachine::OSTypeId"/> attribute.
2113
2114 The <link to="IVirtualBox::guestOSTypes"/> collection contains all
2115 available guest OS type objects. Each object has an
2116 <link to="IGuestOSType::id"/> attribute which contains an identifier of
2117 the guest OS this object describes.
2118
2119 <result name="E_INVALIDARG">
2120 @a id is not a valid Guest OS type.
2121 </result>
2122
2123 </desc>
2124 <param name="id" type="wstring" dir="in">
2125 <desc>Guest OS type ID string.</desc>
2126 </param>
2127 <param name="type" type="IGuestOSType" dir="return">
2128 <desc>Guest OS type object.</desc>
2129 </param>
2130 </method>
2131
2132 <method name="createSharedFolder">
2133 <desc>
2134 Creates a new global shared folder by associating the given logical
2135 name with the given host path, adds it to the collection of shared
2136 folders and starts sharing it. Refer to the description of
2137 <link to="ISharedFolder"/> to read more about logical names.
2138 <note>
2139 In the current implementation, this operation is not
2140 implemented.
2141 </note>
2142 </desc>
2143 <param name="name" type="wstring" dir="in">
2144 <desc>Unique logical name of the shared folder.</desc>
2145 </param>
2146 <param name="hostPath" type="wstring" dir="in">
2147 <desc>Full path to the shared folder in the host file system.</desc>
2148 </param>
2149 <param name="writable" type="boolean" dir="in">
2150 <desc>Whether the share is writable or readonly</desc>
2151 </param>
2152 </method>
2153
2154 <method name="removeSharedFolder">
2155 <desc>
2156 Removes the global shared folder with the given name previously
2157 created by <link to="#createSharedFolder"/> from the collection of
2158 shared folders and stops sharing it.
2159 <note>
2160 In the current implementation, this operation is not
2161 implemented.
2162 </note>
2163 </desc>
2164 <param name="name" type="wstring" dir="in">
2165 <desc>Logical name of the shared folder to remove.</desc>
2166 </param>
2167 </method>
2168
2169 <method name="getNextExtraDataKey">
2170 <desc>
2171 Returns the global extra data key name following the supplied key.
2172
2173 An error is returned if the supplied @a key does not exist. @c NULL is
2174 returned in @a nextKey if the supplied key is the last key. When
2175 supplying @c NULL for the @a key, the first key item is returned in
2176 @a nextKey (if there is any). @a nextValue is an optional parameter and
2177 if supplied, the next key's value is returned in it.
2178
2179 <result name="VBOX_E_OBJECT_NOT_FOUND">
2180 Extra data @a key not found.
2181 </result>
2182
2183 </desc>
2184 <param name="key" type="wstring" dir="in">
2185 <desc>Name of the data key to follow.</desc>
2186 </param>
2187 <param name="nextKey" type="wstring" dir="out">
2188 <desc>Name of the next data key.</desc>
2189 </param>
2190 <param name="nextValue" type="wstring" dir="out">
2191 <desc>Value of the next data key.</desc>
2192 </param>
2193 </method>
2194
2195 <method name="getExtraData">
2196 <desc>
2197 Returns associated global extra data.
2198
2199 If the requested data @a key does not exist, this function will
2200 succeed and return @c NULL in the @a value argument.
2201
2202 <result name="VBOX_E_FILE_ERROR">
2203 Settings file not accessible.
2204 </result>
2205 <result name="VBOX_E_XML_ERROR">
2206 Could not parse the settings file.
2207 </result>
2208
2209 </desc>
2210 <param name="key" type="wstring" dir="in">
2211 <desc>Name of the data key to get.</desc>
2212 </param>
2213 <param name="value" type="wstring" dir="return">
2214 <desc>Value of the requested data key.</desc>
2215 </param>
2216 </method>
2217
2218 <method name="setExtraData">
2219 <desc>
2220 Sets associated global extra data.
2221
2222 If you pass @c NULL as a key @a value, the given @a key will be
2223 deleted.
2224
2225 <note>
2226 Before performing the actual data change, this method will ask all
2227 registered callbacks using the
2228 <link to="IVirtualBoxCallback::onExtraDataCanChange"/>
2229 notification for a permission. If one of the callbacks refuses the
2230 new value, the change will not be performed.
2231 </note>
2232 <note>
2233 On success, the
2234 <link to="IVirtualBoxCallback::onExtraDataChange"/> notification
2235 is called to inform all registered callbacks about a successful data
2236 change.
2237 </note>
2238
2239 <result name="VBOX_E_FILE_ERROR">
2240 Settings file not accessible.
2241 </result>
2242 <result name="VBOX_E_XML_ERROR">
2243 Could not parse the settings file.
2244 </result>
2245 <result name="E_ACCESSDENIED">
2246 Modification request refused.
2247 </result>
2248
2249 </desc>
2250 <param name="key" type="wstring" dir="in">
2251 <desc>Name of the data key to set.</desc>
2252 </param>
2253 <param name="value" type="wstring" dir="in">
2254 <desc>Value to assign to the key.</desc>
2255 </param>
2256 </method>
2257
2258 <method name="openSession">
2259 <desc>
2260 Opens a new direct session with the given virtual machine.
2261
2262 A direct session acts as a local lock on the given VM.
2263 There can be only one direct session open at a time for every
2264 virtual machine, protecting the VM from being manipulated by
2265 conflicting actions from different processes. Only after a
2266 direct session has been opened, one can change all VM settings
2267 and execute the VM in the process space of the session object.
2268
2269 Sessions therefore can be compared to mutex semaphores that
2270 lock a given VM for modification and execution.
2271 See <link to="ISession">ISession</link> for details.
2272
2273 <note>Unless you are writing a new VM frontend, you will not
2274 want to execute a VM in the current process. To spawn a new
2275 process that executes a VM, use
2276 <link to="IVirtualBox::openRemoteSession" />
2277 instead.</note>
2278
2279 Upon successful return, the session object can be used to
2280 get access to the machine and to the VM console.
2281
2282 In VirtualBox terminology, the machine becomes "mutable" after
2283 a session has been opened. Note that the "mutable" machine
2284 object, on which you may invoke IMachine methods to change its
2285 settings, will be a different object from the immutable IMachine
2286 objects returned by various IVirtualBox methods. To obtain a
2287 mutable IMachine object (upon which you can invoke settings methods),
2288 use the <link to="ISession::machine" /> attribute.
2289
2290 One must always call <link to="ISession::close" /> to release the
2291 lock on the machine, or the machine's state will eventually be
2292 set to "Aborted".
2293
2294 In other words, to change settings on a machine, the following
2295 sequence is typically performed:
2296
2297 <ol>
2298 <li>Call this method (openSession) to have a machine locked for
2299 the current session.</li>
2300
2301 <li>Obtain a mutable IMachine object from <link to="ISession::machine" />.</li>
2302
2303 <li>Change the settings of the machine.</li>
2304
2305 <li>Call <link to="IMachine::saveSettings" />.</li>
2306
2307 <li>Close the session by calling <link to="ISession::close"/>.</li>
2308 </ol>
2309
2310 <result name="E_UNEXPECTED">
2311 Virtual machine not registered.
2312 </result>
2313 <result name="E_ACCESSDENIED">
2314 Process not started by OpenRemoteSession.
2315 </result>
2316 <result name="VBOX_E_OBJECT_NOT_FOUND">
2317 No matching virtual machine found.
2318 </result>
2319 <result name="VBOX_E_INVALID_OBJECT_STATE">
2320 Session already open or being opened.
2321 </result>
2322 <result name="VBOX_E_VM_ERROR">
2323 Failed to assign machine to session.
2324 </result>
2325
2326 </desc>
2327 <param name="session" type="ISession" dir="in">
2328 <desc>
2329 Session object that will represent the opened session after
2330 successful method invocation. This object must not represent
2331 the already open session.
2332 <note>
2333 This session will be automatically closed if the
2334 VirtualBox server is terminated for some reason.
2335 </note>
2336 </desc>
2337 </param>
2338 <param name="machineId" type="uuid" dir="in">
2339 <desc>ID of the virtual machine to open a session with.</desc>
2340 </param>
2341 </method>
2342
2343 <method name="openRemoteSession">
2344 <desc>
2345 Spawns a new process that executes a virtual machine (called a
2346 "remote session").
2347
2348 Opening a remote session causes the VirtualBox server to start a new
2349 process that opens a direct session with the given VM. As a result, the
2350 VM is locked by that direct session in the new process, preventing
2351 conflicting changes from other processes. Since sessions act as locks
2352 that prevent conflicting changes, one cannot open a remote session
2353 for a VM that already has another open session (direct or remote), or
2354 is currently in the process of opening one (see <link
2355 to="IMachine::sessionState"/>).
2356
2357 While the remote session still provides some level of control over the
2358 VM execution to the caller (using the <link to="IConsole" /> interface),
2359 not all VM settings are available for modification within the remote
2360 session context.
2361
2362 This operation can take some time (a new VM is started in a new process,
2363 for which memory and other resources need to be set up). Because of this,
2364 an <link to="IProgress" /> is returned to allow the caller to wait for this
2365 asynchronous operation to be completed. Until then, the remote session
2366 object remains in the closed state, and accessing the machine or its
2367 console through it is invalid. It is recommended to use
2368 <link to="IProgress::waitForCompletion" /> or similar calls to wait for
2369 completion.
2370
2371 As with all <link to="ISession" /> objects, it is recommended to call
2372 <link to="ISession::close" /> on the local session object once openRemoteSession()
2373 has been called. However, the session's state (see <link to="ISession::state" />)
2374 will not return to "Closed" until the remote session has also closed (i.e.
2375 until the VM is no longer running). In that case, however, the state of
2376 the session will automatically change back to "Closed".
2377
2378 Currently supported session types (values of the @a type
2379 argument) are:
2380 <ul>
2381 <li><tt>gui</tt>: VirtualBox Qt GUI session</li>
2382 <li><tt>vrdp</tt>: VirtualBox VRDP Server session</li>
2383 </ul>
2384
2385 The @a environment argument is a string containing definitions of
2386 environment variables in the following format:
2387 @code
2388 NAME[=VALUE]\n
2389 NAME[=VALUE]\n
2390 ...
2391 @endcode
2392 where <tt>\\n</tt> is the new line character. These environment
2393 variables will be appended to the environment of the VirtualBox server
2394 process. If an environment variable exists both in the server process
2395 and in this list, the value from this list takes precedence over the
2396 server's variable. If the value of the environment variable is
2397 omitted, this variable will be removed from the resulting environment.
2398 If the environment string is @c null, the server environment is
2399 inherited by the started process as is.
2400
2401 <see>openExistingSession</see>
2402
2403 <result name="E_UNEXPECTED">
2404 Virtual machine not registered.
2405 </result>
2406 <result name="E_INVALIDARG">
2407 Invalid session type @a type.
2408 </result>
2409 <result name="VBOX_E_OBJECT_NOT_FOUND">
2410 No machine matching @a machineId found.
2411 </result>
2412 <result name="VBOX_E_INVALID_OBJECT_STATE">
2413 Session already open or being opened.
2414 </result>
2415 <result name="VBOX_E_IPRT_ERROR">
2416 Launching process for machine failed.
2417 </result>
2418 <result name="VBOX_E_VM_ERROR">
2419 Failed to assign machine to session.
2420 </result>
2421
2422 </desc>
2423 <param name="session" type="ISession" dir="in">
2424 <desc>
2425 Session object that will represent the opened remote session
2426 after successful method invocation (this object must not
2427 represent an already open session).
2428 </desc>
2429 </param>
2430 <param name="machineId" type="uuid" dir="in">
2431 <desc>ID of the virtual machine to open a session with.</desc>
2432 </param>
2433 <param name="type" type="wstring" dir="in">
2434 <desc>
2435 Type of the remote session (case sensitive).
2436 </desc>
2437 </param>
2438 <param name="environment" type="wstring" dir="in">
2439 <desc>
2440 Environment to pass to the opened session (may be @c null).
2441 </desc>
2442 </param>
2443 <param name="progress" type="IProgress" dir="return">
2444 <desc>Progress object to track the operation completion.</desc>
2445 </param>
2446 </method>
2447
2448 <method name="openExistingSession">
2449 <desc>
2450 Opens a new remote session with the virtual machine for
2451 which a direct session is already open.
2452
2453 The remote session provides some level of control over the VM
2454 execution (using the IConsole interface) to the caller; however,
2455 within the remote session context, not all VM settings are available
2456 for modification.
2457
2458 As opposed to <link to="#openRemoteSession"/>, the number of
2459 remote sessions opened this way is not limited by the API
2460
2461 <note>
2462 It is an error to open a remote session with the machine that
2463 doesn't have an open direct session.
2464 </note>
2465
2466 <result name="E_UNEXPECTED">
2467 Virtual machine not registered.
2468 </result>
2469 <result name="VBOX_E_OBJECT_NOT_FOUND">
2470 No machine matching @a machineId found.
2471 </result>
2472 <result name="VBOX_E_INVALID_OBJECT_STATE">
2473 Session already open or being opened.
2474 </result>
2475 <result name="VBOX_E_INVALID_SESSION_STATE">
2476 Direct session state not Open.
2477 </result>
2478 <result name="VBOX_E_VM_ERROR">
2479 Failed to get console object from direct session or assign
2480 machine to session.
2481 </result>
2482
2483 <see>openRemoteSession</see>
2484 </desc>
2485 <param name="session" type="ISession" dir="in">
2486 <desc>
2487 Session object that will represent the open remote session
2488 after successful method invocation. This object must not
2489 represent an already open session.
2490 <note>
2491 This session will be automatically closed when the peer
2492 (direct) session dies or gets closed.
2493 </note>
2494 </desc>
2495 </param>
2496 <param name="machineId" type="uuid" dir="in">
2497 <desc>ID of the virtual machine to open a session with.</desc>
2498 </param>
2499 </method>
2500
2501 <method name="registerCallback">
2502 <desc>
2503 Registers a new global VirtualBox callback. The methods of the given
2504 callback object will be called by VirtualBox when an appropriate
2505 event occurs.
2506
2507 <result name="E_INVALIDARG">
2508 A @c NULL callback cannot be registered.
2509 </result>
2510
2511 </desc>
2512 <param name="callback" type="IVirtualBoxCallback" dir="in">
2513 <desc>Callback object to register.</desc>
2514 </param>
2515 </method>
2516
2517 <method name="unregisterCallback">
2518 <desc>
2519 Unregisters the previously registered global VirtualBox callback.
2520
2521 <result name="E_INVALIDARG">
2522 Specified @a callback not registered.
2523 </result>
2524
2525 </desc>
2526 <param name="callback" type="IVirtualBoxCallback" dir="in">
2527 <desc>Callback object to unregister.</desc>
2528 </param>
2529 </method>
2530
2531 <method name="waitForPropertyChange">
2532 <desc>
2533 Blocks the caller until any of the properties represented by the
2534 @a what argument changes the value or until the given timeout interval
2535 expires.
2536
2537 The @a what argument is a comma separated list of property masks that
2538 describe properties the caller is interested in. The property mask is
2539 a string in the following format:
2540
2541 <pre>
2542 [[group.]subgroup.]name
2543 </pre>
2544
2545 where @c name is the property name and @c group, @c subgroup are zero
2546 or more property group specifiers. Each element (group or name) in
2547 the property mask may be either a Latin string or an asterisk symbol
2548 (@c "*") which is used to match any string for the given element. A
2549 property mask that doesn't contain asterisk symbols represents a
2550 single fully qualified property name.
2551
2552 Groups in the fully qualified property name go from more generic (the
2553 left-most part) to more specific (the right-most part). The first
2554 element is usually a name of the object the property belongs to. The
2555 second element may be either a property name, or a child object name,
2556 or an index if the preceding element names an object which is one of
2557 many objects of the same type. This way, property names form a
2558 hierarchy of properties. Here are some examples of property names:
2559
2560 <table>
2561 <tr>
2562 <td><tt>VirtualBox.version</tt></td>
2563 <td><link to="IVirtualBox::version"/> property</td>
2564 </tr>
2565 <tr>
2566 <td><tt>Machine.&lt;UUID&gt;.name</tt></td>
2567 <td><link to="IMachine::name"/> property of the machine with the
2568 given UUID</td>
2569 </tr>
2570 </table>
2571
2572 Most property names directly correspond to the properties of objects
2573 (components) provided by the VirtualBox library and may be used to
2574 track changes to these properties. However, there may be
2575 pseudo-property names that don't correspond to any existing object's
2576 property directly, as well as there may be object properties that
2577 don't have a corresponding property name that is understood by this
2578 method, and therefore changes to such properties cannot be
2579 tracked. See individual object's property descriptions to get a
2580 fully qualified property name that can be used with this method (if
2581 any).
2582
2583 There is a special property mask @c "*" (i.e. a string consisting of a
2584 single asterisk symbol) that can be used to match all properties.
2585 Below are more examples of property masks:
2586
2587 <table>
2588 <tr>
2589 <td><tt>VirtualBox.*</tt></td>
2590 <td>Track all properties of the VirtualBox object</td>
2591 </tr>
2592 <tr>
2593 <td><tt>Machine.*.name</tt></td>
2594 <td>Track changes to the <link to="IMachine::name"/> property of
2595 all registered virtual machines</td>
2596 </tr>
2597 </table>
2598
2599 <note>
2600 This function is not implemented in the current version of the
2601 product.
2602 </note>
2603 </desc>
2604 <param name="what" type="wstring" dir="in">
2605 <desc>Comma separated list of property masks.</desc>
2606 </param>
2607 <param name="timeout" type="unsigned long" dir="in">
2608 <desc>
2609 Wait timeout in milliseconds.
2610 Specify -1 for an indefinite wait.
2611 </desc>
2612 </param>
2613 <param name="changed" type="wstring" dir="out">
2614 <desc>
2615 Comma separated list of properties that have been changed and caused
2616 this method to return to the caller.
2617 </desc>
2618 </param>
2619 <param name="values" type="wstring" dir="out">
2620 <desc>Reserved, not currently used.</desc>
2621 </param>
2622 </method>
2623
2624 <method name="saveSettings">
2625 <desc>
2626 Saves the global settings to the global settings file
2627 (<link to="#settingsFilePath"/>).
2628
2629 This method is only useful for explicitly saving the global settings
2630 file after it has been auto-converted from the old format to the most
2631 recent format (see <link to="#settingsFileVersion"/> for details).
2632 Normally, the global settings file is implicitly saved when a global
2633 setting is changed.
2634
2635 <result name="VBOX_E_FILE_ERROR">
2636 Settings file not accessible.
2637 </result>
2638 <result name="VBOX_E_XML_ERROR">
2639 Could not parse the settings file.
2640 </result>
2641
2642 </desc>
2643 </method>
2644
2645 <method name="saveSettingsWithBackup">
2646 <desc>
2647 Creates a backup copy of the global settings file
2648 (<link to="#settingsFilePath"/>) in case of auto-conversion, and then
2649 calls <link to="#saveSettings"/>.
2650
2651 Note that the backup copy is created <b>only</b> if the settings file
2652 auto-conversion took place (see <link to="#settingsFileVersion"/> for
2653 details). Otherwise, this call is fully equivalent to
2654 <link to="#saveSettings"/> and no backup copying is done.
2655
2656 The backup copy is created in the same directory where the original
2657 settings file is located. It is given the following file name:
2658 <pre>
2659 original.xml.x.y-platform.bak
2660 </pre>
2661 where <tt>original.xml</tt> is the original settings file name
2662 (excluding path), and <tt>x.y-platform</tt> is the version of the old
2663 format of the settings file (before auto-conversion).
2664
2665 If the given backup file already exists, this method will try to add the
2666 <tt>.N</tt> suffix to the backup file name (where <tt>N</tt> counts from
2667 0 to 9) and copy it again until it succeeds. If all suffixes are
2668 occupied, or if any other copy error occurs, this method will return a
2669 failure.
2670
2671 If the copy operation succeeds, the @a bakFileName return argument will
2672 receive a full path to the created backup file (for informational
2673 purposes). Note that this will happen even if the subsequent
2674 <link to="#saveSettings"/> call performed by this method after the
2675 copy operation, fails.
2676
2677 <note>
2678 The VirtualBox API never calls this method. It is intended purely for
2679 the purposes of creating backup copies of the settings files by
2680 front-ends before saving the results of the automatically performed
2681 settings conversion to disk.
2682 </note>
2683
2684 <see>settingsFileVersion</see>
2685
2686 <result name="VBOX_E_FILE_ERROR">
2687 Settings file not accessible.
2688 </result>
2689 <result name="VBOX_E_XML_ERROR">
2690 Could not parse the settings file.
2691 </result>
2692 <result name="VBOX_E_IPRT_ERROR">
2693 Could not copy the settings file.
2694 </result>
2695
2696 </desc>
2697 <param name="bakFileName" type="wstring" dir="return">
2698 <desc>Full path to the created backup copy.</desc>
2699 </param>
2700 </method>
2701
2702 </interface>
2703
2704 <!--
2705 // IAppliance
2706 /////////////////////////////////////////////////////////////////////////
2707 -->
2708
2709 <enum
2710 name="CIMOSType"
2711 uuid="86ef5f8c-18b2-4db8-a314-33721b59f89b"
2712 >
2713 <desc>
2714 OVF operating system values according to CIM V2.20 (as of Nov 2008); http://www.dmtf.org/standards/cim/cim_schema_v220
2715 </desc>
2716
2717 <const name="CIMOS_Unknown" value="0" /> <!-- "Unknown" -->
2718 <const name="CIMOS_Other" value="1" /> <!-- "Other" -->
2719 <const name="CIMOS_MACOS" value="2" /> <!-- "MACOS" -->
2720 <const name="CIMOS_ATTUNIX" value="3" /> <!-- "ATTUNIX" -->
2721 <const name="CIMOS_DGUX" value="4" /> <!-- "DGUX" -->
2722 <const name="CIMOS_DECNT" value="5" /> <!-- "DECNT" -->
2723 <const name="CIMOS_Tru64UNIX" value="6" /> <!-- "Tru64 UNIX" -->
2724 <const name="CIMOS_OpenVMS" value="7" /> <!-- "OpenVMS" -->
2725 <const name="CIMOS_HPUX" value="8" /> <!-- "HPUX" -->
2726 <const name="CIMOS_AIX" value="9" /> <!-- "AIX" -->
2727 <const name="CIMOS_MVS" value="10" /> <!-- "MVS" -->
2728 <const name="CIMOS_OS400" value="11" /> <!-- "OS400" -->
2729 <const name="CIMOS_OS2" value="12" /> <!-- "OS/2" -->
2730 <const name="CIMOS_JavaVM" value="13" /> <!-- "JavaVM" -->
2731 <const name="CIMOS_MSDOS" value="14" /> <!-- "MSDOS" -->
2732 <const name="CIMOS_WIN3x" value="15" /> <!-- "WIN3x" -->
2733 <const name="CIMOS_WIN95" value="16" /> <!-- "WIN95" -->
2734 <const name="CIMOS_WIN98" value="17" /> <!-- "WIN98" -->
2735 <const name="CIMOS_WINNT" value="18" /> <!-- "WINNT" -->
2736 <const name="CIMOS_WINCE" value="19" /> <!-- "WINCE" -->
2737 <const name="CIMOS_NCR3000" value="20" /> <!-- "NCR3000" -->
2738 <const name="CIMOS_NetWare" value="21" /> <!-- "NetWare" -->
2739 <const name="CIMOS_OSF" value="22" /> <!-- "OSF" -->
2740 <const name="CIMOS_DCOS" value="23" /> <!-- "DC/OS" -->
2741 <const name="CIMOS_ReliantUNIX" value="24" /> <!-- "Reliant UNIX" -->
2742 <const name="CIMOS_SCOUnixWare" value="25" /> <!-- "SCO UnixWare" -->
2743 <const name="CIMOS_SCOOpenServer" value="26" /> <!-- "SCO OpenServer" -->
2744 <const name="CIMOS_Sequent" value="27" /> <!-- "Sequent" -->
2745 <const name="CIMOS_IRIX" value="28" /> <!-- "IRIX" -->
2746 <const name="CIMOS_Solaris" value="29" /> <!-- "Solaris" -->
2747 <const name="CIMOS_SunOS" value="30" /> <!-- "SunOS" -->
2748 <const name="CIMOS_U6000" value="31" /> <!-- "U6000" -->
2749 <const name="CIMOS_ASERIES" value="32" /> <!-- "ASERIES" -->
2750 <const name="CIMOS_HPNonStopOS" value="33" /> <!-- "HP NonStop OS" -->
2751 <const name="CIMOS_HPNonStopOSS" value="34" /> <!-- "HP NonStop OSS" -->
2752 <const name="CIMOS_BS2000" value="35" /> <!-- "BS2000" -->
2753 <const name="CIMOS_LINUX" value="36" /> <!-- "LINUX" -->
2754 <const name="CIMOS_Lynx" value="37" /> <!-- "Lynx" -->
2755 <const name="CIMOS_XENIX" value="38" /> <!-- "XENIX" -->
2756 <const name="CIMOS_VM" value="39" /> <!-- "VM" -->
2757 <const name="CIMOS_InteractiveUNIX" value="40" /> <!-- "Interactive UNIX" -->
2758 <const name="CIMOS_BSDUNIX" value="41" /> <!-- "BSDUNIX" -->
2759 <const name="CIMOS_FreeBSD" value="42" /> <!-- "FreeBSD" -->
2760 <const name="CIMOS_NetBSD" value="43" /> <!-- "NetBSD" -->
2761 <const name="CIMOS_GNUHurd" value="44" /> <!-- "GNU Hurd" -->
2762 <const name="CIMOS_OS9" value="45" /> <!-- "OS9" -->
2763 <const name="CIMOS_MACHKernel" value="46" /> <!-- "MACH Kernel" -->
2764 <const name="CIMOS_Inferno" value="47" /> <!-- "Inferno" -->
2765 <const name="CIMOS_QNX" value="48" /> <!-- "QNX" -->
2766 <const name="CIMOS_EPOC" value="49" /> <!-- "EPOC" -->
2767 <const name="CIMOS_IxWorks" value="50" /> <!-- "IxWorks" -->
2768 <const name="CIMOS_VxWorks" value="51" /> <!-- "VxWorks" -->
2769 <const name="CIMOS_MiNT" value="52" /> <!-- "MiNT" -->
2770 <const name="CIMOS_BeOS" value="53" /> <!-- "BeOS" -->
2771 <const name="CIMOS_HPMPE" value="54" /> <!-- "HP MPE" -->
2772 <const name="CIMOS_NextStep" value="55" /> <!-- "NextStep" -->
2773 <const name="CIMOS_PalmPilot" value="56" /> <!-- "PalmPilot" -->
2774 <const name="CIMOS_Rhapsody" value="57" /> <!-- "Rhapsody" -->
2775 <const name="CIMOS_Windows2000" value="58" /> <!-- "Windows 2000" -->
2776 <const name="CIMOS_Dedicated" value="59" /> <!-- "Dedicated" -->
2777 <const name="CIMOS_OS390" value="60" /> <!-- "OS/390" -->
2778 <const name="CIMOS_VSE" value="61" /> <!-- "VSE" -->
2779 <const name="CIMOS_TPF" value="62" /> <!-- "TPF" -->
2780 <const name="CIMOS_WindowsMe" value="63" /> <!-- "Windows (R) Me" -->
2781 <const name="CIMOS_CalderaOpenUNIX" value="64" /> <!-- "Caldera Open UNIX" -->
2782 <const name="CIMOS_OpenBSD" value="65" /> <!-- "OpenBSD" -->
2783 <const name="CIMOS_NotApplicable" value="66" /> <!-- "Not Applicable" -->
2784 <const name="CIMOS_WindowsXP" value="67" /> <!-- "Windows XP" -->
2785 <const name="CIMOS_zOS" value="68" /> <!-- "z/OS" -->
2786 <const name="CIMOS_MicrosoftWindowsServer2003" value="69" /> <!-- "Microsoft Windows Server 2003" -->
2787 <const name="CIMOS_MicrosoftWindowsServer2003_64" value="70" /> <!-- "Microsoft Windows Server 2003 64-Bit" -->
2788 <const name="CIMOS_WindowsXP_64" value="71" /> <!-- "Windows XP 64-Bit" -->
2789 <const name="CIMOS_WindowsXPEmbedded" value="72" /> <!-- "Windows XP Embedded" -->
2790 <const name="CIMOS_WindowsVista" value="73" /> <!-- "Windows Vista" -->
2791 <const name="CIMOS_WindowsVista_64" value="74" /> <!-- "Windows Vista 64-Bit" -->
2792 <const name="CIMOS_WindowsEmbeddedforPointofService" value="75" /> <!-- "Windows Embedded for Point of Service" -->
2793 <const name="CIMOS_MicrosoftWindowsServer2008" value="76" /> <!-- "Microsoft Windows Server 2008" -->
2794 <const name="CIMOS_MicrosoftWindowsServer2008_64" value="77" /> <!-- "Microsoft Windows Server 2008 64-Bit" -->
2795 <const name="CIMOS_FreeBSD_64" value="78" /> <!-- "FreeBSD 64-Bit" -->
2796 <const name="CIMOS_RedHatEnterpriseLinux" value="79" /> <!-- "RedHat Enterprise Linux" -->
2797 <const name="CIMOS_RedHatEnterpriseLinux_64" value="80" /> <!-- "RedHat Enterprise Linux 64-Bit" -->
2798 <const name="CIMOS_Solaris_64" value="81" /> <!-- "Solaris 64-Bit" -->
2799 <const name="CIMOS_SUSE" value="82" /> <!-- "SUSE" -->
2800 <const name="CIMOS_SUSE_64" value="83" /> <!-- "SUSE 64-Bit" -->
2801 <const name="CIMOS_SLES" value="84" /> <!-- "SLES" -->
2802 <const name="CIMOS_SLES_64" value="85" /> <!-- "SLES 64-Bit" -->
2803 <const name="CIMOS_NovellOES" value="86" /> <!-- "Novell OES" -->
2804 <const name="CIMOS_NovellLinuxDesktop" value="87" /> <!-- "Novell Linux Desktop" -->
2805 <const name="CIMOS_SunJavaDesktopSystem" value="88" /> <!-- "Sun Java Desktop System" -->
2806 <const name="CIMOS_Mandriva" value="89" /> <!-- "Mandriva" -->
2807 <const name="CIMOS_Mandriva_64" value="90" /> <!-- "Mandriva 64-Bit" -->
2808 <const name="CIMOS_TurboLinux" value="91" /> <!-- "TurboLinux" -->
2809 <const name="CIMOS_TurboLinux_64" value="92" /> <!-- "TurboLinux 64-Bit" -->
2810 <const name="CIMOS_Ubuntu" value="93" /> <!-- "Ubuntu" -->
2811 <const name="CIMOS_Ubuntu_64" value="94" /> <!-- "Ubuntu 64-Bit" -->
2812 <const name="CIMOS_Debian" value="95" /> <!-- "Debian" -->
2813 <const name="CIMOS_Debian_64" value="96" /> <!-- "Debian 64-Bit" -->
2814 <const name="CIMOS_Linux_2_4_x" value="97" /> <!-- "Linux 2.4.x" -->
2815 <const name="CIMOS_Linux_2_4_x_64" value="98" /> <!-- "Linux 2.4.x 64-Bit" -->
2816 <const name="CIMOS_Linux_2_6_x" value="99" /> <!-- "Linux 2.6.x" -->
2817 <const name="CIMOS_Linux_2_6_x_64" value="100" /> <!-- "Linux 2.6.x 64-Bit" -->
2818 <const name="CIMOS_Linux_64" value="101" /> <!-- "Linux 64-Bit" -->
2819 <const name="CIMOS_Other_64" value="102" /> <!-- "Other 64-Bit" -->
2820 </enum>
2821
2822 <enum
2823 name="OVFResourceType"
2824 uuid="646a78d7-6f04-49f4-82c4-75c28a75a4cd"
2825 >
2826 <desc>
2827 OVF resource type.
2828 </desc>
2829
2830 <const name="Other" value="1" />
2831 <const name="ComputerSystem" value="2" />
2832 <const name="Processor" value="3" />
2833 <const name="Memory" value="4" />
2834 <const name="IdeController" value="5" />
2835 <const name="ParallelScsiHba" value="6" />
2836 <const name="FcHba" value="7" />
2837 <const name="iScsiHba" value="8" />
2838 <const name="IbHca" value="9" />
2839 <const name="EthernetAdapter" value="10" />
2840 <const name="OtherNetworkAdapter" value="11" />
2841 <const name="IoSlot" value="12" />
2842 <const name="IoDevice" value="13" />
2843 <const name="FloppyDrive" value="14" />
2844 <const name="CdDrive" value="15" />
2845 <const name="DvdDrive" value="16" />
2846 <const name="HardDisk" value="17" />
2847 <const name="UsbController" value="23" />
2848 <const name="SoundCard" value="35" />
2849 </enum>
2850
2851 <interface
2852 name="IAppliance" extends="$unknown"
2853 uuid="a7a71c1f-20d3-4483-95c0-7357dda77f50"
2854 wsmap="managed"
2855 >
2856 <desc>
2857 Represents a platform-independent appliance in OVF format. An instance of this is returned
2858 by <link to="IVirtualBox::createAppliance" />, which can then be used to import and export
2859 appliances with VirtualBox.
2860
2861 The OVF standard suggests two different physical file formats:
2862
2863 <ol>
2864 <li>If the OVF is distributed as a set of files, then @a file must be a fully qualified
2865 path name to an existing OVF descriptor file with an <tt>.ovf</tt> file extension. If
2866 this descriptor file references other files, as OVF appliances distributed as a set of
2867 files most likely do, those files must be in the same directory as the descriptor file.</li>
2868
2869 <li>If the OVF is distributed as a single file, it must be in TAR format and have the
2870 <tt>.ova</tt> file extension. This TAR file must then contain at least the OVF descriptor
2871 files and optionally other files.
2872
2873 At this time, VirtualBox does not not yet support the packed (TAR) variant; support will
2874 be added with a later version.</li>
2875 </ol>
2876
2877 <b>Importing</b> an OVF appliance into VirtualBox as instances of
2878 <link to="IMachine" /> involves the following sequence of API calls:
2879
2880 <ol>
2881 <li>Call <link to="IVirtualBox::createAppliance" />. This will create an empty IAppliance object.
2882 </li>
2883
2884 <li>On the new object, call <link to="#read" /> with the full path of the OVF file you
2885 would like to import. So long as this file is syntactically valid, this will succeed
2886 and return an instance of IAppliance that contains the parsed data from the OVF file.
2887 </li>
2888
2889 <li>Next, call <link to="#interpret" />, which analyzes the OVF data and sets up the
2890 contents of the IAppliance attributes accordingly. These can be inspected by a
2891 VirtualBox front-end such as the GUI, and the suggestions can be displayed to the
2892 user. In particular, the <link to="#virtualSystemDescriptions" /> array contains
2893 instances of <link to="IVirtualSystemDescription" /> which represent the virtual
2894 systems in the OVF, which in turn describe the virtual hardware prescribed by the
2895 OVF (network and hardware adapters, virtual disk images, memory size and so on).
2896 The GUI can then give the user the option to confirm and/or change these suggestions.
2897 </li>
2898
2899 <li>If desired, call <link to="IVirtualSystemDescription::setFinalValues" /> for each
2900 virtual system to override the suggestions made by VirtualBox.
2901 </li>
2902
2903 <li>Finally, call <link to="#importMachines" /> to create virtual machines in
2904 VirtualBox as instances of <link to="IMachine" /> that match the information in the
2905 virtual system descriptions.
2906 </li>
2907 </ol>
2908
2909 <b>Exporting</b> VirtualBox machines into an OVF appliance involves the following steps:
2910
2911 <ol>
2912 <li>As with importing, first call <link to="IVirtualBox::createAppliance" /> to create
2913 an empty IAppliance object.
2914 </li>
2915
2916 <li>For each machine you would like to export, call <link to="IMachine::export" />
2917 with the IAppliance object you just created. This creates an instance of
2918 <link to="IVirtualSystemDescription" /> inside the appliance.
2919 </li>
2920
2921 <li>Finally, call <link to="#write" /> with a path specification to have the OVF
2922 file written.</li>
2923 </ol>
2924
2925 </desc>
2926
2927 <attribute name="path" type="wstring" readonly="yes">
2928 <desc>Path to the main file of the OVF appliance, which is either the <tt>.ovf</tt> or
2929 the <tt>.ova</tt> file passed to <link to="IAppliance::read" />.</desc>
2930 </attribute>
2931
2932 <attribute name="disks" type="wstring" readonly="yes" safearray="yes">
2933 <desc>
2934 Array of virtual disk definitions. One such description exists for each
2935 disk definition in the OVF; each string array item represents one such piece of
2936 disk information, with the information fields separated by tab (\t) characters.
2937
2938 The caller should be prepared for additional fields being appended to
2939 this string in future versions of VirtualBox and therefore check for
2940 the number of tabs in the strings returned.
2941
2942 In the current version, the following eight fields are returned per string
2943 in the array:
2944
2945 <ol>
2946 <li>Disk ID (unique string identifier given to disk)</li>
2947
2948 <li>Capacity (unsigned integer indicating the maximum capacity of the disk)</li>
2949
2950 <li>Populated size (optional unsigned integer indicating the current size of the
2951 disk; can be approximate; -1 if unspecified)</li>
2952
2953 <li>Format (string identifying the disk format, typically
2954 "http://www.vmware.com/specifications/vmdk.html#sparse")</li>
2955
2956 <li>Reference (where to find the disk image, typically a file name; if empty,
2957 then the disk should be created on import)</li>
2958
2959 <li>Image size (optional unsigned integer indicating the size of the image,
2960 which need not necessarily be the same as the values specified above, since
2961 the image may be compressed or sparse; -1 if not specified)</li>
2962
2963 <li>Chunk size (optional unsigned integer if the image is split into chunks;
2964 presently unsupported and always -1)</li>
2965
2966 <li>Compression (optional string equalling "gzip" if the image is gzip-compressed)</li>
2967 </ol>
2968 </desc>
2969 </attribute>
2970
2971 <attribute name="virtualSystemDescriptions" type="IVirtualSystemDescription" readonly="yes" safearray="yes">
2972 <desc> Array of virtual system descriptions. One such description is created
2973 for each virtual system found in the OVF. The array is empty until after <link to="#interpret" />
2974 has been called.
2975 </desc>
2976 </attribute>
2977
2978 <method name="read">
2979 <desc>
2980 Reads an OVF file into the appliance object.
2981
2982 This method succeeds if the OVF is syntactically valid and, by itself, without errors. The
2983 mere fact that this method returns successfully does not mean that VirtualBox supports all
2984 features requested by the appliance; this can only be examined after a call to <link to="#interpret" />.
2985 </desc>
2986 <param name="file" type="wstring" dir="in">
2987 <desc>
2988 Name of appliance file to open (either with an <tt>.ovf</tt> or <tt>.ova</tt> extension, depending
2989 on whether the appliance is distributed as a set of files or as a single file, respectively).
2990 </desc>
2991 </param>
2992 </method>
2993
2994 <method name="interpret">
2995 <desc>
2996 Interprets the OVF data that was read when the appliance was constructed. After
2997 calling this method, one can inspect the
2998 <link to="#virtualSystemDescriptions" /> array attribute, which will then contain
2999 one <link to="IVirtualSystemDescription" /> for each virtual machine found in
3000 the appliance.
3001
3002 Calling this method is the second step of importing an appliance into VirtualBox;
3003 see <link to="IAppliance" /> for an overview.
3004 </desc>
3005 </method>
3006
3007 <method name="importMachines">
3008 <desc>
3009 Imports the appliance into VirtualBox by creating instances of <link to="IMachine" />
3010 and other interfaces that match the information contained in the appliance as
3011 closely as possible, as represented by the import instructions in the
3012 <link to="#virtualSystemDescriptions" /> array.
3013
3014 Calling this method is the final step of importing an appliance into VirtualBox;
3015 see <link to="IAppliance" /> for an overview.
3016
3017 Since importing the appliance may imply copying disk images, which can take a long
3018 time, this method operates asynchronously and returns an IProgress object to allow
3019 the caller to monitor the progress.
3020 </desc>
3021
3022 <param name="aProgress" type="IProgress" dir="return">
3023 <desc></desc>
3024 </param>
3025 </method>
3026
3027 <method name="write">
3028 <desc>
3029 Writes the contents of the appliance exports into a new OVF file.
3030
3031 Calling this method is the final step of exporting an appliance from VirtualBox;
3032 see <link to="IAppliance" /> for an overview.
3033 </desc>
3034 <param name="path" type="wstring" dir="in">
3035 <desc>
3036 Name of appliance file to open (either with an <tt>.ovf</tt> or <tt>.ova</tt> extension, depending
3037 on whether the appliance is distributed as a set of files or as a single file, respectively).
3038 </desc>
3039 </param>
3040 </method>
3041
3042 </interface>
3043
3044 <enum
3045 name="VirtualSystemDescriptionType"
3046 uuid="8ac36d00-bb7c-4a35-a835-3f004b27427b"
3047 >
3048 <desc>Used with <link to="IVirtualSystemDescription" /> to describe the type of
3049 a configuration value.</desc>
3050
3051 <const name="Ignore" value="1" />
3052 <const name="OS" value="2" />
3053 <const name="Name" value="3" />
3054 <const name="CPU" value="4" />
3055 <const name="Memory" value="5" />
3056 <const name="HardDiskControllerIDE" value="6" />
3057 <const name="HardDiskControllerSATA" value="7" />
3058 <const name="HardDiskControllerSCSI" value="8" />
3059 <const name="HardDiskImage" value="9" />
3060 <const name="Floppy" value="10" />
3061 <const name="CDROM" value="11" />
3062 <const name="LogicalNetwork" value="12" />
3063 <const name="NetworkAdapter" value="13" />
3064 <const name="USBController" value="14" />
3065 <const name="SoundCard" value="15" />
3066
3067 </enum>
3068
3069 <interface
3070 name="IVirtualSystemDescription" extends="$unknown"
3071 uuid="8606c2ae-c06f-487f-9573-1465b44f9524"
3072 wsmap="managed"
3073 >
3074
3075 <desc>This interface is used in the <link to="IAppliance::virtualSystemDescriptions" /> array.
3076 After <link to="IAppliance::interpret" /> has been called, that array contains
3077 information about how the virtual systems described in the OVF should best be imported into VirtualBox
3078 virtual machines. See <link to="IAppliance" /> for the steps required to import an OVF
3079 into VirtualBox.
3080 </desc>
3081
3082 <attribute name="count" type="unsigned long" readonly="yes">
3083 <desc>Return the number of virtual system description entries.</desc>
3084 </attribute>
3085
3086 <method name="getDescription">
3087 <desc>Returns information about the virtual system as arrays of instruction items. In each array, the
3088 items with the same indices correspond and jointly represent an import instruction for VirtualBox.
3089
3090 The list below identifies the value sets that are possible depending on the
3091 <link to="VirtualSystemDescriptionType" /> enum value in the array item in aTypes[]. In each case,
3092 the array item with the same index in aOrigValue[] will contain the original value as contained
3093 in the OVF file (just for informational purposes), and the corresponding item in aConfigValues[]
3094 will contain a suggested value to be used for VirtualBox. Depending on the description type,
3095 the aExtraConfigValues[] array item may also be used.
3096
3097 <ul>
3098 <li>
3099 "OS": the guest operating system type. There must be exactly one such array item on import. The
3100 corresponding item in aConfigValues[] contains the suggested guest operating system for VirtualBox.
3101 This will be one of the values listed in <link to="IVirtualBox::guestOSTypes" />. The corresponding
3102 item in aOrigValues[] will contain a numerical value that described the operating system in the OVF
3103 (see <link to="CIMOSType" />).
3104 </li>
3105 <li>
3106 "Name": the name to give to the new virtual machine. There can be at most one such array item;
3107 if none is present on import, then an automatic name will be created from the operating system
3108 type. The correponding item im aOrigValues[] will contain the suggested virtual machine name
3109 from the OVF file, and aConfigValues[] will contain a suggestion for a unique VirtualBox
3110 <link to="IMachine" /> name that does not exist yet.
3111 </li>
3112 <li>
3113 "CPU": the number of CPUs. There can be at most one such item, which will presently be ignored.
3114 </li>
3115 <li>
3116 "Memory": the amount of guest RAM, in bytes. There can be at most one such array item; if none
3117 is present on import, then VirtualBox will set a meaningful default based on the operating system
3118 type.
3119 </li>
3120 <li>
3121 "HarddiskControllerIDE": an IDE hard disk controller. There can be at most one such item. This
3122 has no value in aOrigValues[] or aConfigValues[].
3123 The matching item in the aRefs[] array will contain an integer that items of the "Harddisk"
3124 type can use to specify which hard disk controller a virtual disk should be connected to.
3125 </li>
3126 <li>
3127 "HarddiskControllerSATA": an SATA hard disk controller. There can be at most one such item. This
3128 has no value in aOrigValues[] or aConfigValues[].
3129 The matching item in the aRefs[] array will be used as with IDE controllers (see above).
3130 </li>
3131 <li>
3132 "HarddiskControllerSCSI": a SCSI hard disk controller. There can be at most one such item.
3133 The items in aOrigValues[] and aConfigValues[] will either be "LsiLogic" or "BusLogic".
3134 The matching item in the aRefs[] array will be used as with IDE controllers (see above).
3135 </li>
3136 <li>
3137 "Harddisk": a virtual hard disk, most probably as a reference to an image file. There can be an
3138 arbitrary number of these items, one for each virtual disk image that accompanies the OVF. The
3139 array item in aOrigValues[] will contain the file specification from the OVF file, whereas the
3140 item in aConfigValues[] will contain a qualified path specification to where the hard disk image
3141 should be copied; this target image will then be registered with VirtualBox.
3142 The matching item in the aExtraConfigValues[] array must contain a string of the following
3143 format: "controller=&lt;index&gt;;channel=&lt;c&gt;"
3144 In this string, &lt;index&gt; must be an integer specifying the hard disk controller to connect
3145 the image to. That number must be the index of an array item with one of the hard disk controller
3146 types (HarddiskControllerSCSI, HarddiskControllerSATA, HarddiskControllerIDE).
3147 In addition, &lt;c&gt; must specify the channel to use on that controller. For IDE controllers,
3148 this can range from 0-2 (which VirtualBox will interpret as primary master, primary slave,
3149 secondary slave; VirtualBox reserves the secondary master for the CD-ROM drive). For SATA and
3150 SCSI conrollers, the channel can range from 0-29.
3151 </li>
3152 <li>
3153 "LogicalNetwork": a logical network to which virtual machines can connect. This is taken from
3154 the Network section in the OVF that is shared between several virtual systems. OVF has no
3155 formal description of how the network shall be set up (e.g. whether to use NAT or host interface
3156 networking), but OVFs typically name the logical networks "nat" or "bridged" to suggest such
3157 a configuration.
3158 </li>
3159 <li>
3160 "NetworkAdapter": a network adapter. The array item in aConfigValues[] will specify the hardware
3161 for the network adapter, whereas the array item in aExtraConfigValues[] will have a string
3162 of the "network=&lt;nw&gt;" format, where &lt;nw&gt; must be one of the networks as specified with the
3163 LogicalNetwork type.
3164 </li>
3165 <li>
3166 "SoundCard": a sound card. There can be at most one such item. If and only if such an item is
3167 present, sound support will be enabled for the new virtual machine. Note that the virtual
3168 machine in VirtualBox will always be presented with the standard VirtualBox soundcard, which
3169 may be different from the virtual soundcard expected by the appliance.
3170 </li>
3171 </ul>
3172
3173 </desc>
3174
3175 <param name="aTypes" type="VirtualSystemDescriptionType" dir="out" safearray="yes">
3176 <desc></desc>
3177 </param>
3178
3179 <param name="aRefs" type="wstring" dir="out" safearray="yes">
3180 <desc></desc>
3181 </param>
3182
3183 <param name="aOrigValues" type="wstring" dir="out" safearray="yes">
3184 <desc></desc>
3185 </param>
3186
3187 <param name="aConfigValues" type="wstring" dir="out" safearray="yes">
3188 <desc></desc>
3189 </param>
3190
3191 <param name="aExtraConfigValues" type="wstring" dir="out" safearray="yes">
3192 <desc></desc>
3193 </param>
3194
3195 </method>
3196
3197 <method name="setFinalValues">
3198 <desc>
3199 This method allows the appliance's user to change the configuration for the virtual
3200 system descriptions. For each array item returned from <link to="getDescription" />,
3201 you must pass in one boolean value and one configuration value.
3202
3203 Each item in the boolean array determines whether the particular configuration item
3204 should be enabled.
3205 You can only disable items of the types HardDiskControllerIDE, HardDiskControllerSATA,
3206 HardDiskControllerSCSI, HardDiskImage, CDROM, Floppy, NetworkAdapter, USBController
3207 and SoundCard.
3208
3209 For the configuration and "extra" configuration values, if you pass in the same arrays
3210 as returned in the aConfigValues and aExtraConfigValues arrays from getDescription(),
3211 the configuration remains unchanged. Please see the documentation for getDescription()
3212 for valid configuration values for the individual array item types. If the
3213 corresponding item in the aEnabled array is false, the configuration value is ignored.
3214 </desc>
3215
3216 <param name="aEnabled" type="boolean" dir="in" safearray="yes">
3217 <desc></desc>
3218 </param>
3219
3220 <param name="aConfigValues" type="wstring" dir="in" safearray="yes">
3221 <desc></desc>
3222 </param>
3223
3224 <param name="aExtraConfigValues" type="wstring" dir="in" safearray="yes">
3225 <desc></desc>
3226 </param>
3227 </method>
3228
3229 <method name="getWarnings">
3230 <desc>Returns textual warnings which occurs on the virtual system
3231 interpretion.</desc>
3232
3233 <param name="aWarnings" type="wstring" dir="return" safearray="yes">
3234 <desc></desc>
3235 </param>
3236 </method>
3237
3238 </interface>
3239
3240
3241 <!--
3242 // IMachine
3243 /////////////////////////////////////////////////////////////////////////
3244 -->
3245
3246 <enumerator
3247 name="IMachineEnumerator" type="IMachine"
3248 uuid="1b554149-be0a-4465-9252-9ff8f420af55"
3249 />
3250
3251 <collection
3252 name="IMachineCollection" type="IMachine" enumerator="IMachineEnumerator"
3253 uuid="FD443EC1-3007-4F5B-9282-D72760A66916"
3254 readonly="yes"
3255 />
3256
3257 <interface
3258 name="IInternalMachineControl" extends="$unknown"
3259 uuid="4042ddf2-93d3-4749-8517-dde3f17ea630"
3260 internal="yes"
3261 wsmap="suppress"
3262 >
3263 <method name="updateState">
3264 <desc>
3265 Updates the VM state.
3266 <note>
3267 This operation will also update the settings file with
3268 the correct information about the saved state file
3269 and delete this file from disk when appropriate.
3270 </note>
3271 </desc>
3272 <param name="state" type="MachineState" dir="in"/>
3273 </method>
3274
3275 <method name="getIPCId">
3276 <param name="id" type="wstring" dir="return"/>
3277 </method>
3278
3279 <method name="runUSBDeviceFilters">
3280 <desc>
3281 Asks the server to run USB devices filters of the associated
3282 machine against the given USB device and tell if there is
3283 a match.
3284 <note>
3285 Intended to be used only for remote USB devices. Local
3286 ones don't require to call this method (this is done
3287 implicitly by the Host and USBProxyService).
3288 </note>
3289 </desc>
3290 <param name="device" type="IUSBDevice" dir="in"/>
3291 <param name="matched" type="boolean" dir="out"/>
3292 <param name="maskedInterfaces" type="unsigned long" dir="out"/>
3293 </method>
3294
3295 <method name="captureUSBDevice">
3296 <desc>
3297 Requests a capture of the given host USB device.
3298 When the request is completed, the VM process will
3299 get a <link to="IInternalSessionControl::onUSBDeviceAttach"/>
3300 notification.
3301 </desc>
3302 <param name="id" type="uuid" dir="in"/>
3303 </method>
3304
3305 <method name="detachUSBDevice">
3306 <desc>
3307 Notification that a VM is going to detach (done = false) or has
3308 already detached (done = true) the given USB device.
3309 When the done = true request is completed, the VM process will
3310 get a <link to="IInternalSessionControl::onUSBDeviceDetach"/>
3311 notification.
3312 <note>
3313 In the done = true case, the server must run its own filters
3314 and filters of all VMs but this one on the detached device
3315 as if it were just attached to the host computer.
3316 </note>
3317 </desc>
3318 <param name="id" type="uuid" dir="in"/>
3319 <param name="done" type="boolean" dir="in"/>
3320 </method>
3321
3322 <method name="autoCaptureUSBDevices">
3323 <desc>
3324 Requests a capture all matching USB devices attached to the host.
3325 When the request is completed, the VM process will
3326 get a <link to="IInternalSessionControl::onUSBDeviceAttach"/>
3327 notification per every captured device.
3328 </desc>
3329 </method>
3330
3331 <method name="detachAllUSBDevices">
3332 <desc>
3333 Notification that a VM that is being powered down. The done
3334 parameter indicates whether which stage of the power down
3335 we're at. When done = false the VM is announcing its
3336 intentions, while when done = true the VM is reporting
3337 what it has done.
3338 <note>
3339 In the done = true case, the server must run its own filters
3340 and filters of all VMs but this one on all detach devices as
3341 if they were just attached to the host computer.
3342 </note>
3343 </desc>
3344 <param name="done" type="boolean" dir="in"/>
3345 </method>
3346
3347 <method name="onSessionEnd">
3348 <desc>
3349 Triggered by the given session object when the session is about
3350 to close normally.
3351 </desc>
3352 <param name="session" type="ISession" dir="in">
3353 <desc>Session that is being closed</desc>
3354 </param>
3355 <param name="progress" type="IProgress" dir="return">
3356 <desc>
3357 Used to wait until the corresponding machine is actually
3358 dissociated from the given session on the server.
3359 Returned only when this session is a direct one.
3360 </desc>
3361 </param>
3362 </method>
3363
3364 <method name="beginSavingState">
3365 <desc>
3366 Called by the VM process to inform the server it wants to
3367 save the current state and stop the VM execution.
3368 </desc>
3369 <param name="progress" type="IProgress" dir="in">
3370 <desc>
3371 Progress object created by the VM process to wait until
3372 the state is saved.
3373 </desc>
3374 </param>
3375 <param name="stateFilePath" type="wstring" dir="out">
3376 <desc>
3377 File path the VM process must save the execution state to.
3378 </desc>
3379 </param>
3380 </method>
3381
3382 <method name="endSavingState">
3383 <desc>
3384 Called by the VM process to inform the server that saving
3385 the state previously requested by #beginSavingState is either
3386 successfully finished or there was a failure.
3387
3388 <result name="VBOX_E_FILE_ERROR">
3389 Settings file not accessible.
3390 </result>
3391 <result name="VBOX_E_XML_ERROR">
3392 Could not parse the settings file.
3393 </result>
3394
3395 </desc>
3396
3397 <param name="success" type="boolean" dir="in">
3398 <desc><tt>true</tt> to indicate success and <tt>false</tt>
3399 otherwise.
3400 </desc>
3401 </param>
3402 </method>
3403
3404 <method name="adoptSavedState">
3405 <desc>
3406 Gets called by IConsole::adoptSavedState.
3407 <result name="VBOX_E_FILE_ERROR">
3408 Invalid saved state file path.
3409 </result>
3410 </desc>
3411 <param name="savedStateFile" type="wstring" dir="in">
3412 <desc>Path to the saved state file to adopt.</desc>
3413 </param>
3414 </method>
3415
3416 <method name="beginTakingSnapshot">
3417 <desc>
3418 Called by the VM process to inform the server it wants to
3419 take a snapshot.
3420
3421 <result name="VBOX_E_FILE_ERROR">
3422 Settings file not accessible.
3423 </result>
3424 <result name="VBOX_E_XML_ERROR">
3425 Could not parse the settings file.
3426 </result>
3427 </desc>
3428 <param name="initiator" type="IConsole" dir="in">
3429 <desc>The console object that initiated this call.</desc>
3430 </param>
3431 <param name="name" type="wstring" dir="in">
3432 <desc>Snapshot name.</desc>
3433 </param>
3434 <param name="description" type="wstring" dir="in">
3435 <desc>Snapshot description.</desc>
3436 </param>
3437 <param name="progress" type="IProgress" dir="in">
3438 <desc>
3439 Progress object created by the VM process to wait until
3440 the state is saved (only for online snapshots).
3441 </desc>
3442 </param>
3443 <param name="stateFilePath" type="wstring" dir="out">
3444 <desc>
3445 File path the VM process must save the execution state to.
3446 </desc>
3447 </param>
3448 <param name="serverProgress" type="IProgress" dir="out">
3449 <desc>
3450 Progress object created by the server process to wait until
3451 the snapshot is taken (VDI diff creation, etc.).
3452 </desc>
3453 </param>
3454 </method>
3455
3456 <method name="endTakingSnapshot">
3457 <desc>
3458 Called by the VM process to inform the server that the snapshot
3459 previously requested by #beginTakingSnapshot is either
3460 successfully taken or there was a failure.
3461 </desc>
3462
3463 <param name="success" type="boolean" dir="in">
3464 <desc><tt>true</tt> to indicate success and <tt>false</tt> otherwise</desc>
3465 </param>
3466 </method>
3467
3468 <method name="discardSnapshot">
3469 <desc>
3470 Gets called by IConsole::discardSnapshot.
3471 <result name="VBOX_E_INVALID_OBJECT_STATE">
3472 Snapshot has more than one child snapshot.
3473 </result>
3474 </desc>
3475 <param name="initiator" type="IConsole" dir="in">
3476 <desc>The console object that initiated this call.</desc>
3477 </param>
3478 <param name="id" type="uuid" dir="in">
3479 <desc>UUID of the snapshot to discard.</desc>
3480 </param>
3481 <param name="machineState" type="MachineState" dir="out">
3482 <desc>New machine state after this operation is started.</desc>
3483 </param>
3484 <param name="progress" type="IProgress" dir="return">
3485 <desc>Progress object to track the operation completion.</desc>
3486 </param>
3487 </method>
3488
3489 <method name="discardCurrentState">
3490 <desc>
3491 Gets called by IConsole::discardCurrentState.
3492 <result name="VBOX_E_INVALID_OBJECT_STATE">
3493 Virtual machine does not have any snapshot.
3494 </result>
3495 </desc>
3496 <param name="initiator" type="IConsole" dir="in">
3497 <desc>The console object that initiated this call.</desc>
3498 </param>
3499 <param name="machineState" type="MachineState" dir="out">
3500 <desc>New machine state after this operation is started.</desc>
3501 </param>
3502 <param name="progress" type="IProgress" dir="return">
3503 <desc>Progress object to track the operation completion.</desc>
3504 </param>
3505 </method>
3506
3507 <method name="discardCurrentSnapshotAndState">
3508 <desc>
3509 Gets called by IConsole::discardCurrentSnapshotAndState.
3510 <result name="VBOX_E_INVALID_OBJECT_STATE">
3511 Virtual machine does not have any snapshot.
3512 </result>
3513 </desc>
3514 <param name="initiator" type="IConsole" dir="in">
3515 <desc>The console object that initiated this call.</desc>
3516 </param>
3517 <param name="machineState" type="MachineState" dir="out">
3518 <desc>New machine state after this operation is started.</desc>
3519 </param>
3520 <param name="progress" type="IProgress" dir="return">
3521 <desc>Progress object to track the operation completion.</desc>
3522 </param>
3523 </method>
3524
3525 <method name="pullGuestProperties">
3526 <desc>
3527 Get the list of the guest properties matching a set of patterns along
3528 with their values, time stamps and flags and give responsibility for
3529 managing properties to the console.
3530 </desc>
3531 <param name="name" type="wstring" dir="out" safearray="yes">
3532 <desc>
3533 The names of the properties returned.
3534 </desc>
3535 </param>
3536 <param name="value" type="wstring" dir="out" safearray="yes">
3537 <desc>
3538 The values of the properties returned. The array entries match the
3539 corresponding entries in the @a name array.
3540 </desc>
3541 </param>
3542 <param name="timestamp" type="unsigned long long" dir="out" safearray="yes">
3543 <desc>
3544 The time stamps of the properties returned. The array entries match
3545 the corresponding entries in the @a name array.
3546 </desc>
3547 </param>
3548 <param name="flags" type="wstring" dir="out" safearray="yes">
3549 <desc>
3550 The flags of the properties returned. The array entries match the
3551 corresponding entries in the @a name array.
3552 </desc>
3553 </param>
3554 </method>
3555
3556 <method name="pushGuestProperties">
3557 <desc>
3558 Set the list of the guest properties matching a set of patterns along
3559 with their values, time stamps and flags and return responsibility for
3560 managing properties to IMachine.
3561 </desc>
3562 <param name="name" type="wstring" dir="in" safearray="yes">
3563 <desc>
3564 The names of the properties.
3565 </desc>
3566 </param>
3567 <param name="value" type="wstring" dir="in" safearray="yes">
3568 <desc>
3569 The values of the properties. The array entries match the
3570 corresponding entries in the @a name array.
3571 </desc>
3572 </param>
3573 <param name="timestamp" type="unsigned long long" dir="in" safearray="yes">
3574 <desc>
3575 The time stamps of the properties. The array entries match
3576 the corresponding entries in the @a name array.
3577 </desc>
3578 </param>
3579 <param name="flags" type="wstring" dir="in" safearray="yes">
3580 <desc>
3581 The flags of the properties. The array entries match the
3582 corresponding entries in the @a name array.
3583 </desc>
3584 </param>
3585 </method>
3586 <method name="pushGuestProperty">
3587 <desc>
3588 Update a single guest property in IMachine.
3589 </desc>
3590 <param name="name" type="wstring" dir="in">
3591 <desc>
3592 The name of the property to be updated.
3593 </desc>
3594 </param>
3595 <param name="value" type="wstring" dir="in">
3596 <desc>
3597 The value of the property.
3598 </desc>
3599 </param>
3600 <param name="timestamp" type="unsigned long long" dir="in">
3601 <desc>
3602 The timestamp of the property.
3603 </desc>
3604 </param>
3605 <param name="flags" type="wstring" dir="in">
3606 <desc>
3607 The flags of the property.
3608 </desc>
3609 </param>
3610 </method>
3611 </interface>
3612
3613 <interface
3614 name="IBIOSSettings" extends="$unknown"
3615 uuid="38b54279-dc35-4f5e-a431-835b867c6b5e"
3616 wsmap="managed"
3617 >
3618 <desc>
3619 The IBIOSSettings interface represents BIOS settings of the virtual
3620 machine. This is used only in the <link to="IMachine::BIOSSettings" /> attribute.
3621 </desc>
3622 <attribute name="logoFadeIn" type="boolean">
3623 <desc>Fade in flag for BIOS logo animation.</desc>
3624 </attribute>
3625
3626 <attribute name="logoFadeOut" type="boolean">
3627 <desc>Fade out flag for BIOS logo animation.</desc>
3628 </attribute>
3629
3630 <attribute name="logoDisplayTime" type="unsigned long">
3631 <desc>BIOS logo display time in milliseconds (0 = default).</desc>
3632 </attribute>
3633
3634 <attribute name="logoImagePath" type="wstring">
3635 <desc>Local file system path for external BIOS image.</desc>
3636 </attribute>
3637
3638 <attribute name="bootMenuMode" type="BIOSBootMenuMode">
3639 <desc>Mode of the BIOS boot device menu.</desc>
3640 </attribute>
3641
3642 <attribute name="ACPIEnabled" type="boolean">
3643 <desc>ACPI support flag.</desc>
3644 </attribute>
3645
3646 <attribute name="IOAPICEnabled" type="boolean">
3647 <desc>
3648 IO APIC support flag. If set, VirtualBox will provide an IO APIC
3649 and support IRQs above 15.
3650 </desc>
3651 </attribute>
3652
3653 <attribute name="timeOffset" type="long long">
3654 <desc>
3655 Offset in milliseconds from the host system time. This allows for
3656 guests running with a different system date/time than the host.
3657 It is equivalent to setting the system date/time in the BIOS except
3658 it is not an absolute value but a relative one. Guest Additions
3659 time synchronization honors this offset.
3660 </desc>
3661 </attribute>
3662
3663 <attribute name="PXEDebugEnabled" type="boolean">
3664 <desc>
3665 PXE debug logging flag. If set, VirtualBox will write extensive
3666 PXE trace information to the release log.
3667 </desc>
3668 </attribute>
3669
3670 <attribute name="IDEControllerType" type="IDEControllerType">
3671 <desc>
3672 Type of the virtual IDE controller. Depending on this value,
3673 VirtualBox will provide different virtual IDE hardware
3674 devices to the guest.
3675 </desc>
3676 </attribute>
3677
3678 </interface>
3679
3680 <interface
3681 name="IMachine" extends="$unknown"
3682 uuid="ea6fb7ea-1993-4642-b113-f29eb39e0df0"
3683 wsmap="managed"
3684 >
3685 <desc>
3686 The IMachine interface represents a virtual machine, or guest, created
3687 in VirtualBox.
3688
3689 This interface is used in two contexts. First of all, a collection of
3690 objects implementing this interface is stored in the
3691 <link to="IVirtualBox::machines2"/> attribute which lists all the virtual
3692 machines that are currently registered with this VirtualBox
3693 installation. Also, once a session has been opened for the given virtual
3694 machine (e.g. the virtual machine is running), the machine object
3695 associated with the open session can be queried from the session object;
3696 see <link to="ISession"/> for details.
3697
3698 The main role of this interface is to expose the settings of the virtual
3699 machine and provide methods to change various aspects of the virtual
3700 machine's configuration. For machine objects stored in the
3701 <link to="IVirtualBox::machines2"/> collection, all attributes are
3702 read-only unless explicitly stated otherwise in individual attribute
3703 and method descriptions. In order to change a machine setting, a session
3704 for this machine must be opened using one of
3705 <link to="IVirtualBox::openSession"/>,
3706 <link to="IVirtualBox::openRemoteSession"/> or
3707 <link to="IVirtualBox::openExistingSession"/> methods. After the
3708 session has been successfully opened, a mutable machine object needs to
3709 be queried from the session object and then the desired settings changes
3710 can be applied to the returned object using IMachine attributes and
3711 methods. See the ISession interface description for more information
3712 about sessions.
3713
3714 Note that the IMachine interface does not provide methods to control
3715 virtual machine execution (such as start the machine, or power it
3716 down) -- these methods are grouped in a separate IConsole
3717 interface. Refer to the IConsole interface description to get more
3718 information about this topic.
3719
3720 <see>ISession, IConsole</see>
3721 </desc>
3722
3723 <attribute name="parent" type="IVirtualBox" readonly="yes">
3724 <desc>Associated parent object.</desc>
3725 </attribute>
3726
3727 <attribute name="accessible" type="boolean" readonly="yes">
3728 <desc>
3729 Whether this virtual machine is currently accessible or not.
3730
3731 The machine is considered to be inaccessible when:
3732 <ul>
3733 <li>It is a registered virtual machine, and
3734 </li>
3735 <li>Its settings file is inaccessible (for example, it is
3736 located on a network share that is not accessible during
3737 VirtualBox startup, or becomes inaccessible later, or if
3738 the settings file can be read but is invalid).
3739 </li>
3740 </ul>
3741
3742 Otherwise, the value of this property is always <tt>true</tt>.
3743
3744 Every time this property is read, the accessibility state of
3745 this machine is re-evaluated. If the returned value is |false|,
3746 the <link to="#accessError"/> property may be used to get the
3747 detailed error information describing the reason of
3748 inaccessibility.
3749
3750 When the machine is inaccessible, only the following properties
3751 can be used on it:
3752 <ul>
3753 <li><link to="#parent"/></li>
3754 <li><link to="#id"/></li>
3755 <li><link to="#settingsFilePath"/></li>
3756 <li><link to="#accessible"/></li>
3757 <li><link to="#accessError"/></li>
3758 </ul>
3759
3760 An attempt to access any other property or method will return
3761 an error.
3762
3763 The only possible action you can perform on an inaccessible
3764 machine is to unregister it using the
3765 <link to="IVirtualBox::unregisterMachine"/> call (or, to check
3766 for the accessibility state once more by querying this
3767 property).
3768
3769 <note>
3770 In the current implementation, once this property returns
3771 <tt>true</tt>, the machine will never become inaccessible
3772 later, even if its settings file cannot be successfully
3773 read/written any more (at least, until the VirtualBox
3774 server is restarted). This limitation may be removed in
3775 future releases.
3776 </note>
3777 </desc>
3778 </attribute>
3779
3780 <attribute name="accessError" type="IVirtualBoxErrorInfo" readonly="yes">
3781 <desc>
3782 Error information describing the reason of machine
3783 inaccessibility.
3784
3785 Reading this property is only valid after the last call to
3786 <link to="#accessible"/> returned <tt>false</tt> (i.e. the
3787 machine is currently unaccessible). Otherwise, a null
3788 IVirtualBoxErrorInfo object will be returned.
3789 </desc>
3790 </attribute>
3791
3792 <attribute name="name" type="wstring">
3793 <desc>
3794 Name of the virtual machine.
3795
3796 Besides being used for human-readable identification purposes
3797 everywhere in VirtualBox, the virtual machine name is also used
3798 as a name of the machine's settings file and as a name of the
3799 subdirectory this settings file resides in. Thus, every time you
3800 change the value of this property, the settings file will be
3801 renamed once you call <link to="#saveSettings"/> to confirm the
3802 change. The containing subdirectory will be also renamed, but
3803 only if it has exactly the same name as the settings file
3804 itself prior to changing this property (for backward compatibility
3805 with previous API releases). The above implies the following
3806 limitations:
3807 <ul>
3808 <li>The machine name cannot be empty.</li>
3809 <li>The machine name can contain only characters that are valid
3810 file name characters according to the rules of the file
3811 system used to store VirtualBox configuration.</li>
3812 <li>You cannot have two or more machines with the same name
3813 if they use the same subdirectory for storing the machine
3814 settings files.</li>
3815 <li>You cannot change the name of the machine if it is running,
3816 or if any file in the directory containing the settings file
3817 is being used by another running machine or by any other
3818 process in the host operating system at a time when
3819 <link to="#saveSettings"/> is called.
3820 </li>
3821 </ul>
3822 If any of the above limitations are hit, <link to="#saveSettings"/>
3823 will return an appropriate error message explaining the exact
3824 reason and the changes you made to this machine will not be
3825 saved.
3826 <note>
3827 For "legacy" machines created using the
3828 <link to="IVirtualBox::createLegacyMachine"/> call,
3829 the above naming limitations do not apply because the
3830 machine name does not affect the settings file name.
3831 The settings file name remains the same as it was specified
3832 during machine creation and never changes.
3833 </note>
3834 </desc>
3835 </attribute>
3836
3837 <attribute name="description" type="wstring">
3838 <desc>
3839 Description of the virtual machine.
3840
3841 The description attribute can contain any text and is
3842 typically used to describe the hardware and software
3843 configuration of the virtual machine in detail (i.e. network
3844 settings, versions of the installed software and so on).
3845 </desc>
3846 </attribute>
3847
3848 <attribute name="id" type="uuid" readonly="yes">
3849 <desc>UUID of the virtual machine.</desc>
3850 </attribute>
3851
3852 <attribute name="OSTypeId" type="wstring">
3853 <desc>
3854 User-defined identifier of the Guest OS type.
3855 You may use <link to="IVirtualBox::getGuestOSType"/> to obtain
3856 an IGuestOSType object representing details about the given
3857 Guest OS type.
3858 <note>
3859 This value may differ from the value returned by
3860 <link to="IGuest::OSTypeId"/> if Guest Additions are
3861 installed to the guest OS.
3862 </note>
3863 </desc>
3864 </attribute>
3865
3866 <attribute name="HardwareVersion" type="wstring">
3867 <desc>Hardware version identifier. Internal use only for now.</desc>
3868 </attribute>
3869
3870 <attribute name="CPUCount" type="unsigned long">
3871 <desc>Number of virtual CPUs in the VM. In the current version of the product, this is always 1.</desc>
3872 </attribute>
3873
3874 <attribute name="memorySize" type="unsigned long">
3875 <desc>System memory size in megabytes.</desc>
3876 </attribute>
3877
3878 <attribute name="memoryBalloonSize" type="unsigned long">
3879 <desc>Initial memory balloon size in megabytes.</desc>
3880 </attribute>
3881
3882 <attribute name="statisticsUpdateInterval" type="unsigned long">
3883 <desc>Initial interval to update guest statistics in seconds.</desc>
3884 </attribute>
3885
3886 <attribute name="VRAMSize" type="unsigned long">
3887 <desc>Video memory size in megabytes.</desc>
3888 </attribute>
3889
3890 <attribute name="accelerate3DEnabled" type="boolean" default="false">
3891 <desc>
3892 This setting determines whether VirtualBox allows guests to make use
3893 of the 3D graphics support available on the host. Currently limited
3894 to OpenGL only. </desc>
3895 </attribute>
3896
3897 <attribute name="monitorCount" type="unsigned long">
3898 <desc>
3899 Number of virtual monitors.
3900 <note>
3901 Only effective on Windows XP and later guests with
3902 Guest Additions installed.
3903 </note>
3904 </desc>
3905 </attribute>
3906
3907 <attribute name="BIOSSettings" type="IBIOSSettings" readonly="yes">
3908 <desc>Object containing all BIOS settings.</desc>
3909 </attribute>
3910
3911 <attribute name="HWVirtExEnabled" type="TSBool">
3912 <desc>
3913 This setting determines whether VirtualBox will try to make use of
3914 the host CPU's hardware virtualization extensions such as Intel VT-x
3915 and AMD-V. Note that in case such extensions are not available,
3916 they will not be used.
3917 </desc>
3918 </attribute>
3919
3920 <attribute name="HWVirtExNestedPagingEnabled" type="boolean" default="false">
3921 <desc>
3922 This setting determines whether VirtualBox will try to make use of
3923 the nested paging extension of Intel VT-x and AMD-V. Note that in case
3924 such extensions are not available, they will not be used.
3925 </desc>
3926 </attribute>
3927
3928 <attribute name="HWVirtExVPIDEnabled" type="boolean" default="false">
3929 <desc>
3930 This setting determines whether VirtualBox will try to make use of
3931 the VPID extension of Intel VT-x. Note that in case such extensions are
3932 not available, they will not be used.
3933 </desc>
3934 </attribute>
3935
3936 <attribute name="PAEEnabled" type="boolean" default="false">
3937 <desc>
3938 This setting determines whether VirtualBox will expose the Physical Address
3939 Extension (PAE) feature of the host CPU to the guest. Note that in case PAE
3940 is not available, it will not be reported.
3941 </desc>
3942 </attribute>
3943
3944 <attribute name="snapshotFolder" type="wstring">
3945 <desc>
3946 Full path to the directory used to store snapshot data
3947 (differencing hard disks and saved state files) of this machine.
3948
3949 The initial value of this property is
3950 <tt>&lt;</tt><link to="#settingsFilePath">
3951 path_to_settings_file</link><tt>&gt;/&lt;</tt>
3952 <link to="#id">machine_uuid</link>
3953 <tt>&gt;</tt>.
3954
3955 Currently, it is an error to try to change this property on
3956 a machine that has snapshots (because this would require to
3957 move possibly large files to a different location).
3958 A separate method will be available for this purpose later.
3959
3960 <note>
3961 Setting this property to <tt>null</tt> will restore the
3962 initial value.
3963 </note>
3964 <note>
3965 When setting this property, the specified path can be
3966 absolute (full path) or relative to the directory where the
3967 <link to="#settingsFilePath">machine settings file</link>
3968 is located. When reading this property, a full path is
3969 always returned.
3970 </note>
3971 <note>
3972 The specified path may not exist, it will be created
3973 when necessary.
3974 </note>
3975 </desc>
3976 </attribute>
3977
3978 <attribute name="VRDPServer" type="IVRDPServer" readonly="yes">
3979 <desc>VRDP server object.</desc>
3980 </attribute>
3981
3982 <attribute name="hardDiskAttachments" type="IHardDiskAttachment" readonly="yes" safearray="yes">
3983 <desc>Array of hard disks attached to this machine.</desc>
3984 </attribute>
3985
3986 <attribute name="DVDDrive" type="IDVDDrive" readonly="yes">
3987 <desc>Associated DVD drive object.</desc>
3988 </attribute>
3989
3990 <attribute name="floppyDrive" type="IFloppyDrive" readonly="yes">
3991 <desc>Associated floppy drive object.</desc>
3992 </attribute>
3993
3994 <attribute name="USBController" type="IUSBController" readonly="yes">
3995 <desc>
3996 Associated USB controller object.
3997
3998 <note>
3999 This method may set a @ref com_warnings "warning result code".
4000 </note>
4001 <note>
4002 If USB functionality is not available in the given edition of
4003 VirtualBox, this method will set the result code to @c E_NOTIMPL.
4004 </note>
4005 </desc>
4006 </attribute>
4007
4008 <attribute name="audioAdapter" type="IAudioAdapter" readonly="yes">
4009 <desc>Associated audio adapter, always present.</desc>
4010 </attribute>
4011
4012 <attribute name="SATAController" type="ISATAController" readonly="yes">
4013 <desc>
4014 Associated SATA controller object.
4015 </desc>
4016 </attribute>
4017
4018 <attribute name="settingsFilePath" type="wstring" readonly="yes">
4019 <desc>
4020 Full name of the file containing machine settings data.
4021 </desc>
4022 </attribute>
4023
4024 <attribute name="settingsFileVersion" type="wstring" readonly="yes">
4025 <desc>
4026 Current version of the format of the settings file of this machine
4027 (<link to="#settingsFilePath"/>).
4028
4029 The version string has the following format:
4030 <pre>
4031 x.y-platform
4032 </pre>
4033 where <tt>x</tt> and <tt>y</tt> are the major and the minor format
4034 versions, and <tt>platform</tt> is the platform identifier.
4035
4036 The current version usually matches the value of the
4037 <link to="IVirtualBox::settingsFormatVersion"/> attribute unless the
4038 settings file was created by an older version of VirtualBox and there
4039 was a change of the settings file format since then.
4040
4041 Note that VirtualBox automatically converts settings files from older
4042 versions to the most recent version when reading them (usually at
4043 VirtualBox startup) but it doesn't save the changes back until
4044 you call a method that implicitly saves settings (such as
4045 <link to="#setExtraData"/>) or call <link to="#saveSettings"/>
4046 explicitly. Therefore, if the value of this attribute differs from the
4047 value of <link to="IVirtualBox::settingsFormatVersion"/>, then it
4048 means that the settings file was converted but the result of the
4049 conversion is not yet saved to disk.
4050
4051 The above feature may be used by interactive front-ends to inform users
4052 about the settings file format change and offer them to explicitly save
4053 all converted settings files (the global and VM-specific ones),
4054 optionally create backup copies of the old settings files before saving,
4055 etc.
4056
4057 <see>IVirtualBox::settingsFormatVersion, saveSettingsWithBackup()</see>
4058 </desc>
4059 </attribute>
4060
4061 <attribute name="settingsModified" type="boolean" readonly="yes">
4062 <desc>
4063 Whether the settings of this machine have been modified
4064 (but neither yet saved nor discarded).
4065 <note>
4066 Reading this property is only valid on instances returned
4067 by <link to="ISession::machine"/> and on new machines
4068 created by <link to="IVirtualBox::createMachine"/> or opened
4069 by <link to="IVirtualBox::openMachine"/> but not
4070 yet registered, or on unregistered machines after calling
4071 <link to="IVirtualBox::unregisterMachine"/>. For all other
4072 cases, the settings can never be modified.
4073 </note>
4074 <note>
4075 For newly created unregistered machines, the value of this
4076 property is always TRUE until <link to="#saveSettings"/>
4077 is called (no matter if any machine settings have been
4078 changed after the creation or not). For opened machines
4079 the value is set to FALSE (and then follows to normal rules).
4080 </note>
4081 </desc>
4082 </attribute>
4083
4084 <attribute name="sessionState" type="SessionState" readonly="yes">
4085 <desc>Current session state for this machine.</desc>
4086 </attribute>
4087
4088 <attribute name="sessionType" type="wstring" readonly="yes">
4089 <desc>
4090 Type of the session. If <link to="#sessionState"/> is
4091 SessionSpawning or SessionOpen, this attribute contains the
4092 same value as passed to the
4093 <link to="IVirtualBox::openRemoteSession"/> method in the
4094 @a type parameter. If the session was opened directly using
4095 <link to="IVirtualBox::openSession"/>, or if
4096 <link to="#sessionState"/> is SessionClosed, the value of this
4097 attribute is @c null.
4098 </desc>
4099 </attribute>
4100
4101 <attribute name="sessionPid" type="unsigned long" readonly="yes">
4102 <desc>
4103 Identifier of the session process. This attribute contains the
4104 platform-dependent identifier of the process that has opened a
4105 direct session for this machine using the
4106 <link to="IVirtualBox::openSession"/> call. The returned value
4107 is only valid if <link to="#sessionState"/> is SessionOpen or
4108 SessionClosing (i.e. a session is currently open or being
4109 closed) by the time this property is read.
4110 </desc>
4111 </attribute>
4112
4113 <attribute name="state" type="MachineState" readonly="yes">
4114 <desc>Current execution state of this machine.</desc>
4115 </attribute>
4116
4117 <attribute name="lastStateChange" type="long long" readonly="yes">
4118 <desc>
4119 Time stamp of the last execution state change,
4120 in milliseconds since 1970-01-01 UTC.
4121 </desc>
4122 </attribute>
4123
4124 <attribute name="stateFilePath" type="wstring" readonly="yes">
4125 <desc>
4126 Full path to the file that stores the execution state of
4127 the machine when it is in the <link to="MachineState_Saved"/> state.
4128 <note>
4129 When the machine is not in the Saved state, this attribute
4130 <tt>null</tt>.
4131 </note>
4132 </desc>
4133 </attribute>
4134
4135 <attribute name="logFolder" type="wstring" readonly="yes">
4136 <desc>
4137 Full path to the folder that stores a set of rotated log files
4138 recorded during machine execution. The most recent log file is
4139 named <tt>VBox.log</tt>, the previous log file is
4140 named <tt>VBox.log.1</tt> and so on (up to <tt>VBox.log.3</tt>
4141 in the current version).
4142 </desc>
4143 </attribute>
4144
4145 <attribute name="currentSnapshot" type="ISnapshot" readonly="yes">
4146 <desc>
4147 Current snapshot of this machine.
4148 <note>
4149 A <tt>null</tt> object is returned if the machine doesn't
4150 have snapshots.
4151 </note>
4152 <see><link to="ISnapshot"/></see>
4153 </desc>
4154 </attribute>
4155
4156 <attribute name="snapshotCount" type="unsigned long" readonly="yes">
4157 <desc>
4158 Number of snapshots taken on this machine. Zero means the
4159 machine doesn't have any snapshots.
4160 </desc>
4161 </attribute>
4162
4163 <attribute name="currentStateModified" type="boolean" readonly="yes">
4164 <desc>
4165 Returns <tt>true</tt> if the current state of the machine is not
4166 identical to the state stored in the current snapshot.
4167
4168 The current state is identical to the current snapshot right
4169 after one of the following calls are made:
4170 <ul>
4171 <li><link to="IConsole::discardCurrentState"/> or
4172 <link to="IConsole::discardCurrentSnapshotAndState"/>
4173 </li>
4174 <li><link to="IConsole::takeSnapshot"/> (issued on a
4175 powered off or saved machine, for which
4176 <link to="#settingsModified"/> returns <tt>false</tt>)
4177 </li>
4178 <li><link to="IMachine::setCurrentSnapshot"/>
4179 </li>
4180 </ul>
4181
4182 The current state remains identical until one of the following
4183 happens:
4184 <ul>
4185 <li>settings of the machine are changed</li>
4186 <li>the saved state is discarded</li>
4187 <li>the current snapshot is discarded</li>
4188 <li>an attempt to execute the machine is made</li>
4189 </ul>
4190
4191 <note>
4192 For machines that don't have snapshots, this property is
4193 always <tt>false</tt>.
4194 </note>
4195 </desc>
4196 </attribute>
4197
4198 <attribute name="sharedFolders" type="ISharedFolder" readonly="yes" safearray="yes">
4199 <desc>
4200 Collection of shared folders for this machine (permanent shared
4201 folders). These folders are shared automatically at machine startup
4202 and available only to the guest OS installed within this machine.
4203
4204 New shared folders are added to the collection using
4205 <link to="#createSharedFolder"/>. Existing shared folders can be
4206 removed using <link to="#removeSharedFolder"/>.
4207 </desc>
4208 </attribute>
4209
4210 <attribute name="clipboardMode" type="ClipboardMode">
4211 <desc>
4212 Synchronization mode between the host OS clipboard
4213 and the guest OS clipboard.
4214 </desc>
4215 </attribute>
4216
4217 <attribute name="guestPropertyNotificationPatterns" type="wstring">
4218 <desc>
4219 A comma-separated list of simple glob patterns. Changes to guest
4220 properties whose name matches one of the patterns will generate an
4221 <link to="IVirtualBoxCallback::onGuestPropertyChange"/> signal.
4222 </desc>
4223 </attribute>
4224
4225 <method name="setBootOrder">
4226 <desc>
4227 Puts the given device to the specified position in
4228 the boot order.
4229
4230 To indicate that no device is associated with the given position,
4231 <link to="DeviceType_Null"/> should be used.
4232
4233 @todo setHardDiskBootOrder(), setNetworkBootOrder()
4234
4235 <result name="E_INVALIDARG">
4236 Boot @a position out of range.
4237 </result>
4238 <result name="E_NOTIMPL">
4239 Booting from USB @a device currently not supported.
4240 </result>
4241
4242 </desc>
4243 <param name="position" type="unsigned long" dir="in">
4244 <desc>
4245 Position in the boot order (<tt>1</tt> to the total number of
4246 devices the machine can boot from, as returned by
4247 <link to="ISystemProperties::maxBootPosition"/>).
4248 </desc>
4249 </param>
4250 <param name="device" type="DeviceType" dir="in">
4251 <desc>
4252 The type of the device used to boot at the given position.
4253 </desc>
4254 </param>
4255 </method>
4256
4257 <method name="getBootOrder" const="yes">
4258 <desc>
4259 Returns the device type that occupies the specified
4260 position in the boot order.
4261
4262 @todo [remove?]
4263 If the machine can have more than one device of the returned type
4264 (such as hard disks), then a separate method should be used to
4265 retrieve the individual device that occupies the given position.
4266
4267 If here are no devices at the given position, then
4268 <link to="DeviceType_Null"/> is returned.
4269
4270 @todo getHardDiskBootOrder(), getNetworkBootOrder()
4271
4272 <result name="E_INVALIDARG">
4273 Boot @a position out of range.
4274 </result>
4275
4276 </desc>
4277 <param name="position" type="unsigned long" dir="in">
4278 <desc>
4279 Position in the boot order (<tt>1</tt> to the total number of
4280 devices the machine can boot from, as returned by
4281 <link to="ISystemProperties::maxBootPosition"/>).
4282 </desc>
4283 </param>
4284 <param name="device" type="DeviceType" dir="return">
4285 <desc>
4286 Device at the given position.
4287 </desc>
4288 </param>
4289 </method>
4290
4291 <method name="attachHardDisk">
4292 <desc>
4293 Attaches a virtual hard disk identified by the given UUID @a id
4294 to a device slot of the specified bus.
4295
4296 For the IDE bus, the @a channel parameter can be either @c 0 or @c 1, to
4297 specify the primary or secondary IDE controller, respectively. The
4298 SATA bus supports 30 channels, so this parameter can be a number
4299 ranging from @c 0 to @c 29.
4300
4301 For the primary controller of the IDE bus, the @a device number can be
4302 either @c 0 or @c 1, to specify the master or the slave device,
4303 respectively. For the secondary IDE controller, the device number is
4304 always @c 1 because the master device is reserved for the CD-ROM drive.
4305
4306 For the SATA bus, the @a device parameter is currently unused and
4307 must be @c 0.
4308
4309 The specified device slot must not have another disk attached to it, or
4310 this method will fail.
4311
4312 See <link to="IHardDisk"/> for more detailed information about
4313 attaching hard disks.
4314
4315 <note>
4316 You cannot attach a hard disk to a running machine. Also, you cannot
4317 attach a hard disk to a newly created machine until this machine's
4318 settings are saved to disk using <link to="#saveSettings"/>.
4319 </note>
4320 <note>
4321 If the hard disk is being attached indirectly, a new differencing hard
4322 disk will implicitly be created for it and attached instead. If the
4323 changes made to the machine settings (including this indirect
4324 attachment) are later cancelled using <link to="#discardSettings"/>,
4325 this implicitly created differencing hard disk will implicitly
4326 be deleted.
4327 </note>
4328
4329 <result name="E_INVALIDARG">
4330 SATA device, SATA channel, IDE channel or IDE slot out of range.
4331 </result>
4332 <result name="VBOX_E_INVALID_OBJECT_STATE">
4333 Attempt to attach hard disk to an unregistered virtual machine.
4334 </result>
4335 <result name="VBOX_E_INVALID_VM_STATE">
4336 Invalid machine state.
4337 </result>
4338 <result name="VBOX_E_OBJECT_IN_USE">
4339 Hard disk already attached to this or another virtual machine.
4340 </result>
4341
4342 </desc>
4343 <param name="id" type="uuid" dir="in">
4344 <desc>UUID of the hard disk to attach.</desc>
4345 </param>
4346 <param name="bus" type="StorageBus" dir="in">
4347 <desc>Type of the storage bus to use (IDE or SATA).</desc>
4348 </param>
4349 <param name="channel" type="long" dir="in">
4350 <desc>Channel to attach the hard disk to.</desc>
4351 </param>
4352 <param name="device" type="long" dir="in">
4353 <desc>
4354 Device slot in the given channel to attach the hard disk to.
4355 </desc>
4356 </param>
4357 </method>
4358
4359 <method name="getHardDisk" const="yes">
4360 <desc>
4361 Returns the virtual hard disk attached to a device slot of the specified
4362 bus.
4363
4364 Note that if the hard disk was indirectly attached by
4365 <link to="#attachHardDisk"/> to the given device slot then this
4366 method will return not the same object as passed to the
4367 <link to="#attachHardDisk"/> call. See <link to="IHardDisk"/> for
4368 more detailed information about attaching hard disks.
4369
4370 <result name="VBOX_E_OBJECT_NOT_FOUND">
4371 No hard disk attached to given slot/bus.
4372 </result>
4373
4374 </desc>
4375 <param name="bus" type="StorageBus" dir="in">
4376 <desc>Type of the storage bus to query (IDE or SATA).</desc>
4377 </param>
4378 <param name="channel" type="long" dir="in">
4379 <desc>Channel to query.</desc>
4380 </param>
4381 <param name="device" type="long" dir="in">
4382 <desc>Device slot in the given channel to query.</desc>
4383 </param>
4384 <param name="hardDisk" type="IHardDisk" dir="return">
4385 <desc>Attached hard disk object.</desc>
4386 </param>
4387 </method>
4388
4389 <method name="detachHardDisk">
4390 <desc>
4391 Detaches the virtual hard disk attached to a device slot of the
4392 specified bus.
4393
4394 Detaching the hard disk from the virtual machine is deferred. This means
4395 that the hard disk remains associated with the machine when this method
4396 returns and gets actually de-associated only after a successful
4397 <link to="#saveSettings"/> call. See <link to="IHardDisk"/>
4398 for more detailed information about attaching hard disks.
4399
4400 <note>
4401 You cannot detach the hard disk from a running machine.
4402 </note>
4403 <note>
4404 Detaching differencing hard disks implicitly created by <link
4405 to="#attachHardDisk"/> for the indirect attachment using this
4406 method will <b>not</b> implicitly delete them. The
4407 <link to="IHardDisk::deleteStorage"/> operation should be
4408 explicitly performed by the caller after the hard disk is successfully
4409 detached and the settings are saved with
4410 <link to="#saveSettings"/>, if it is the desired action.
4411 </note>
4412
4413 <result name="VBOX_E_INVALID_VM_STATE">
4414 Attempt to detach hard disk from a running virtual machine.
4415 </result>
4416 <result name="VBOX_E_OBJECT_NOT_FOUND">
4417 No hard disk attached to given slot/bus.
4418 </result>
4419 <result name="VBOX_E_NOT_SUPPORTED">
4420 Hard disk format does not support storage deletion.
4421 </result>
4422
4423 </desc>
4424 <param name="bus" type="StorageBus" dir="in">
4425 <desc>Bus to detach the hard disk from.</desc>
4426 </param>
4427 <param name="channel" type="long" dir="in">
4428 <desc>Channel number to detach the hard disk from.</desc>
4429 </param>
4430 <param name="device" type="long" dir="in">
4431 <desc>Device slot number to detach the hard disk from.</desc>
4432 </param>
4433 </method>
4434
4435 <method name="getNetworkAdapter" const="yes">
4436 <desc>
4437 Returns the network adapter associated with the given slot.
4438 Slots are numbered sequentially, starting with zero. The total
4439 number of adapters per machine is defined by the
4440 <link to="ISystemProperties::networkAdapterCount"/> property,
4441 so the maximum slot number is one less than that property's value.
4442
4443 <result name="E_INVALIDARG">
4444 Invalid @a slot number.
4445 </result>
4446
4447 </desc>
4448 <param name="slot" type="unsigned long" dir="in"/>
4449 <param name="adapter" type="INetworkAdapter" dir="return"/>
4450 </method>
4451
4452 <method name="getSerialPort" const="yes">
4453 <desc>
4454 Returns the serial port associated with the given slot.
4455 Slots are numbered sequentially, starting with zero. The total
4456 number of serial ports per machine is defined by the
4457 <link to="ISystemProperties::serialPortCount"/> property,
4458 so the maximum slot number is one less than that property's value.
4459
4460 <result name="E_INVALIDARG">
4461 Invalid @a slot number.
4462 </result>
4463
4464 </desc>
4465 <param name="slot" type="unsigned long" dir="in"/>
4466 <param name="port" type="ISerialPort" dir="return"/>
4467 </method>
4468
4469 <method name="getParallelPort" const="yes">
4470 <desc>
4471 Returns the parallel port associated with the given slot.
4472 Slots are numbered sequentially, starting with zero. The total
4473 number of parallel ports per machine is defined by the
4474 <link to="ISystemProperties::parallelPortCount"/> property,
4475 so the maximum slot number is one less than that property's value.
4476
4477 <result name="E_INVALIDARG">
4478 Invalid @a slot number.
4479 </result>
4480
4481 </desc>
4482 <param name="slot" type="unsigned long" dir="in"/>
4483 <param name="port" type="IParallelPort" dir="return"/>
4484 </method>
4485
4486 <method name="getNextExtraDataKey">
4487 <desc>
4488 Returns the machine-specific extra data key name following the
4489 supplied key.
4490
4491 An error is returned if the supplied @a key does not exist. @c NULL is
4492 returned in @a nextKey if the supplied key is the last key. When
4493 supplying @c NULL for the @a key, the first key item is returned in
4494 @a nextKey (if there is any). @a nextValue is an optional parameter and
4495 if supplied, the next key's value is returned in it.
4496
4497 <result name="VBOX_E_OBJECT_NOT_FOUND">
4498 Extra data @a key not found.
4499 </result>
4500
4501 </desc>
4502 <param name="key" type="wstring" dir="in">
4503 <desc>Name of the data key to follow.</desc>
4504 </param>
4505 <param name="nextKey" type="wstring" dir="out">
4506 <desc>Name of the next data key.</desc>
4507 </param>
4508 <param name="nextValue" type="wstring" dir="out">
4509 <desc>Value of the next data key.</desc>
4510 </param>
4511 </method>
4512
4513 <method name="getExtraData">
4514 <desc>
4515 Returns associated machine-specific extra data.
4516
4517 If the requested data @a key does not exist, this function will
4518 succeed and return @c NULL in the @a value argument.
4519
4520 <result name="VBOX_E_FILE_ERROR">
4521 Settings file not accessible.
4522 </result>
4523 <result name="VBOX_E_XML_ERROR">
4524 Could not parse the settings file.
4525 </result>
4526
4527 </desc>
4528 <param name="key" type="wstring" dir="in">
4529 <desc>Name of the data key to get.</desc>
4530 </param>
4531 <param name="value" type="wstring" dir="return">
4532 <desc>Value of the requested data key.</desc>
4533 </param>
4534 </method>
4535
4536 <method name="setExtraData">
4537 <desc>
4538 Sets associated machine-specific extra data.
4539
4540 If you pass @c NULL as a key @a value, the given @a key will be
4541 deleted.
4542
4543 <note>
4544 Before performing the actual data change, this method will ask all
4545 registered callbacks using the
4546 <link to="IVirtualBoxCallback::onExtraDataCanChange"/>
4547 notification for a permission. If one of the callbacks refuses the
4548 new value, the change will not be performed.
4549 </note>
4550 <note>
4551 On success, the
4552 <link to="IVirtualBoxCallback::onExtraDataChange"/> notification
4553 is called to inform all registered callbacks about a successful data
4554 change.
4555 </note>
4556 <note>
4557 This method can be called outside the machine session and therefore
4558 it's a caller's responsibility to handle possible race conditions
4559 when several clients change the same key at the same time.
4560 </note>
4561
4562 <result name="VBOX_E_FILE_ERROR">
4563 Settings file not accessible.
4564 </result>
4565 <result name="VBOX_E_XML_ERROR">
4566 Could not parse the settings file.
4567 </result>
4568
4569 </desc>
4570 <param name="key" type="wstring" dir="in">
4571 <desc>Name of the data key to set.</desc>
4572 </param>
4573 <param name="value" type="wstring" dir="in">
4574 <desc>Value to assign to the key.</desc>
4575 </param>
4576 </method>
4577
4578 <method name="saveSettings">
4579 <desc>
4580 Saves any changes to machine settings made since the session
4581 has been opened or a new machine has been created, or since the
4582 last call to <link to="#saveSettings"/> or <link to="#discardSettings"/>.
4583 For registered machines, new settings become visible to all
4584 other VirtualBox clients after successful invocation of this
4585 method.
4586 <note>
4587 The method sends <link to="IVirtualBoxCallback::onMachineDataChange"/>
4588 notification event after the configuration has been successfully
4589 saved (only for registered machines).
4590 </note>
4591 <note>
4592 Calling this method is only valid on instances returned
4593 by <link to="ISession::machine"/> and on new machines
4594 created by <link to="IVirtualBox::createMachine"/> but not
4595 yet registered, or on unregistered machines after calling
4596 <link to="IVirtualBox::unregisterMachine"/>.
4597 </note>
4598
4599 <result name="VBOX_E_FILE_ERROR">
4600 Settings file not accessible.
4601 </result>
4602 <result name="VBOX_E_XML_ERROR">
4603 Could not parse the settings file.
4604 </result>
4605 <result name="E_ACCESSDENIED">
4606 Modification request refused.
4607 </result>
4608
4609 </desc>
4610 </method>
4611
4612 <method name="saveSettingsWithBackup">
4613 <desc>
4614 Creates a backup copy of the machine settings file (<link
4615 to="#settingsFilePath"/>) in case of auto-conversion, and then calls
4616 <link to="#saveSettings"/>.
4617
4618 Note that the backup copy is created <b>only</b> if the settings file
4619 auto-conversion took place (see <link to="#settingsFileVersion"/> for
4620 details). Otherwise, this call is fully equivalent to
4621 <link to="#saveSettings"/> and no backup copying is done.
4622
4623 The backup copy is created in the same directory where the original
4624 settings file is located. It is given the following file name:
4625 <pre>
4626 original.xml.x.y-platform.bak
4627 </pre>
4628 where <tt>original.xml</tt> is the original settings file name
4629 (excluding path), and <tt>x.y-platform</tt> is the version of the old
4630 format of the settings file (before auto-conversion).
4631
4632 If the given backup file already exists, this method will try to add the
4633 <tt>.N</tt> suffix to the backup file name (where <tt>N</tt> counts from
4634 0 to 9) and copy it again until it succeeds. If all suffixes are
4635 occupied, or if any other copy error occurs, this method will return a
4636 failure.
4637
4638 If the copy operation succeeds, the @a bakFileName return argument will
4639 receive a full path to the created backup file (for informational
4640 purposes). Note that this will happen even if the subsequent
4641 <link to="#saveSettings"/> call performed by this method after the
4642 copy operation, fails.
4643
4644 <note>
4645 The VirtualBox API never calls this method. It is intended purely for
4646 the purposes of creating backup copies of the settings files by
4647 front-ends before saving the results of the automatically performed
4648 settings conversion to disk.
4649 </note>
4650
4651 <see>settingsFileVersion</see>
4652
4653 <result name="VBOX_E_FILE_ERROR">
4654 Settings file not accessible.
4655 </result>
4656 <result name="VBOX_E_XML_ERROR">
4657 Could not parse the settings file.
4658 </result>
4659 <result name="VBOX_E_INVALID_VM_STATE">
4660 Virtual machine is not mutable.
4661 </result>
4662 <result name="E_ACCESSDENIED">
4663 Modification request refused.
4664 </result>
4665
4666 </desc>
4667 <param name="bakFileName" type="wstring" dir="return">
4668 <desc>Full path to the created backup copy.</desc>
4669 </param>
4670 </method>
4671
4672 <method name="discardSettings">
4673 <desc>
4674 Discards any changes to the machine settings made since the session
4675 has been opened or since the last call to <link to="#saveSettings"/>
4676 or <link to="#discardSettings"/>.
4677 <note>
4678 Calling this method is only valid on instances returned
4679 by <link to="ISession::machine"/> and on new machines
4680 created by <link to="IVirtualBox::createMachine"/> or
4681 opened by <link to="IVirtualBox::openMachine"/> but not
4682 yet registered, or on unregistered machines after calling
4683 <link to="IVirtualBox::unregisterMachine"/>.
4684 </note>
4685
4686 <result name="VBOX_E_INVALID_VM_STATE">
4687 Virtual machine is not mutable.
4688 </result>
4689
4690 </desc>
4691 </method>
4692
4693 <method name="deleteSettings">
4694 <desc>
4695 Deletes the settings file of this machine from disk.
4696 The machine must not be registered in order for this operation
4697 to succeed.
4698 <note>
4699 <link to="#settingsModified"/> will return TRUE after this
4700 method successfully returns.
4701 </note>
4702 <note>
4703 Calling this method is only valid on instances returned
4704 by <link to="ISession::machine"/> and on new machines
4705 created by <link to="IVirtualBox::createMachine"/> or
4706 opened by <link to="IVirtualBox::openMachine"/> but not
4707 yet registered, or on unregistered machines after calling
4708 <link to="IVirtualBox::unregisterMachine"/>.
4709 </note>
4710 <note>
4711 The deleted machine settings file can be restored (saved again)
4712 by calling <link to="#saveSettings"/>.
4713 </note>
4714
4715 <result name="VBOX_E_INVALID_VM_STATE">
4716 Cannot delete settings of a registered machine or
4717 machine not mutable.
4718 </result>
4719 <result name="VBOX_E_IPRT_ERROR">
4720 Could not delete the settings file.
4721 </result>
4722
4723 </desc>
4724 </method>
4725
4726 <method name="export">
4727 <desc>Exports the machine to an OVF appliance. See <link to="IAppliance" /> for the
4728 steps required to export VirtualBox machines to OVF.
4729 </desc>
4730
4731 <param name="appliance" type="IAppliance" dir="in">
4732 <desc>Appliance to export this machine to.</desc>
4733 </param>
4734 </method >
4735
4736 <method name="getSnapshot">
4737 <desc>
4738 Returns a snapshot of this machine with the given UUID.
4739 A <tt>null</tt> UUID can be used to obtain the first snapshot
4740 taken on this machine. This is useful if you want to traverse
4741 the whole tree of snapshots starting from the root.
4742
4743 <result name="VBOX_E_OBJECT_NOT_FOUND">
4744 Virtual machine has no snapshots or snapshot not found.
4745 </result>
4746
4747 </desc>
4748 <param name="id" type="uuid" dir="in">
4749 <desc>UUID of the snapshot to get</desc>
4750 </param>
4751 <param name="snapshot" type="ISnapshot" dir="return">
4752 <desc>Snapshot object with the given UUID.</desc>
4753 </param>
4754 </method>
4755
4756 <method name="findSnapshot">
4757 <desc>
4758 Returns a snapshot of this machine with the given name.
4759
4760 <result name="VBOX_E_OBJECT_NOT_FOUND">
4761 Virtual machine has no snapshots or snapshot not found.
4762 </result>
4763
4764 </desc>
4765 <param name="name" type="wstring" dir="in">
4766 <desc>Name of the snapshot to find</desc>
4767 </param>
4768 <param name="snapshot" type="ISnapshot" dir="return">
4769 <desc>Snapshot object with the given name.</desc>
4770 </param>
4771 </method>
4772
4773 <method name="setCurrentSnapshot">
4774 <desc>
4775 Sets the current snapshot of this machine.
4776 <note>
4777 In the current implementation, this operation is not
4778 implemented.
4779 </note>
4780 </desc>
4781 <param name="id" type="uuid" dir="in">
4782 <desc>UUID of the snapshot to set as the current snapshot.</desc>
4783 </param>
4784 </method>
4785
4786 <method name="createSharedFolder">
4787 <desc>
4788 Creates a new permanent shared folder by associating the given logical
4789 name with the given host path, adds it to the collection of shared
4790 folders and starts sharing it. Refer to the description of
4791 <link to="ISharedFolder"/> to read more about logical names.
4792
4793 <result name="VBOX_E_OBJECT_IN_USE">
4794 Shared folder already exists.
4795 </result>
4796 <result name="VBOX_E_FILE_ERROR">
4797 Shared folder @a hostPath not accessible.
4798 </result>
4799
4800 </desc>
4801 <param name="name" type="wstring" dir="in">
4802 <desc>Unique logical name of the shared folder.</desc>
4803 </param>
4804 <param name="hostPath" type="wstring" dir="in">
4805 <desc>Full path to the shared folder in the host file system.</desc>
4806 </param>
4807 <param name="writable" type="boolean" dir="in">
4808 <desc>Whether the share is writable or readonly</desc>
4809 </param>
4810 </method>
4811
4812 <method name="removeSharedFolder">
4813 <desc>
4814 Removes the permanent shared folder with the given name previously
4815 created by <link to="#createSharedFolder"/> from the collection of
4816 shared folders and stops sharing it.
4817
4818 <result name="VBOX_E_INVALID_VM_STATE">
4819 Virtual machine is not mutable.
4820 </result>
4821 <result name="VBOX_E_OBJECT_NOT_FOUND">
4822 Shared folder @a name does not exist.
4823 </result>
4824
4825 </desc>
4826 <param name="name" type="wstring" dir="in">
4827 <desc>Logical name of the shared folder to remove.</desc>
4828 </param>
4829 </method>
4830
4831 <method name="canShowConsoleWindow">
4832 <desc>
4833 Returns @c true if the VM console process can activate the
4834 console window and bring it to foreground on the desktop of
4835 the host PC.
4836 <note>
4837 This method will fail if a session for this machine is not
4838 currently open.
4839 </note>
4840
4841 <result name="VBOX_E_INVALID_VM_STATE">
4842 Machine session is not open.
4843 </result>
4844
4845 </desc>
4846 <param name="canShow" type="boolean" dir="return">
4847 <desc>
4848 @c true if the console window can be shown and @c
4849 false otherwise.
4850 </desc>
4851 </param>
4852 </method>
4853
4854 <method name="showConsoleWindow">
4855 <desc>
4856 Activates the console window and brings it to foreground on
4857 the desktop of the host PC. Many modern window managers on
4858 many platforms implement some sort of focus stealing
4859 prevention logic, so that it may be impossible to activate
4860 a window without the help of the currently active
4861 application. In this case, this method will return a non-zero
4862 identifier that represents the top-level window of the VM
4863 console process. The caller, if it represents a currently
4864 active process, is responsible to use this identifier (in a
4865 platform-dependent manner) to perform actual window
4866 activation.
4867 <note>
4868 This method will fail if a session for this machine is not
4869 currently open.
4870 </note>
4871
4872 <result name="VBOX_E_INVALID_VM_STATE">
4873 Machine session is not open.
4874 </result>
4875
4876 </desc>
4877 <param name="winId" type="unsigned long long" dir="return">
4878 <desc>
4879 Platform-dependent identifier of the top-level VM console
4880 window, or zero if this method has performed all actions
4881 necessary to implement the <i>show window</i> semantics for
4882 the given platform and/or VirtualBox front-end.
4883 </desc>
4884 </param>
4885 </method>
4886
4887 <method name="getGuestProperty">
4888 <desc>
4889 Reads an entry from the machine's guest property store.
4890
4891 <result name="VBOX_E_INVALID_VM_STATE">
4892 Machine session is not open.
4893 </result>
4894
4895 </desc>
4896 <param name="name" type="wstring" dir="in">
4897 <desc>
4898 The name of the property to read.
4899 </desc>
4900 </param>
4901 <param name="value" type="wstring" dir="out">
4902 <desc>
4903 The value of the property. If the property does not exist then this
4904 will be empty.
4905 </desc>
4906 </param>
4907 <param name="timestamp" type="unsigned long long" dir="out">
4908 <desc>
4909 The time at which the property was last modified, as seen by the
4910 server process.
4911 </desc>
4912 </param>
4913 <param name="flags" type="wstring" dir="out">
4914 <desc>
4915 Additional property parameters, passed as a comma-separated list of
4916 "name=value" type entries.
4917 </desc>
4918 </param>
4919 </method>
4920
4921 <method name="getGuestPropertyValue">
4922 <desc>
4923 Reads a value from the machine's guest property store.
4924
4925 <result name="VBOX_E_INVALID_VM_STATE">
4926 Machine session is not open.
4927 </result>
4928
4929 </desc>
4930 <param name="property" type="wstring" dir="in">
4931 <desc>
4932 The name of the property to read.
4933 </desc>
4934 </param>
4935 <param name="value" type="wstring" dir="return">
4936 <desc>
4937 The value of the property. If the property does not exist then this
4938 will be empty.
4939 </desc>
4940 </param>
4941 </method>
4942
4943 <method name="getGuestPropertyTimestamp">
4944 <desc>
4945 Reads a property timestamp from the machine's guest property store.
4946
4947 <result name="VBOX_E_INVALID_VM_STATE">
4948 Machine session is not open.
4949 </result>
4950
4951 </desc>
4952 <param name="property" type="wstring" dir="in">
4953 <desc>
4954 The name of the property to read.
4955 </desc>
4956 </param>
4957 <param name="value" type="unsigned long long" dir="return">
4958 <desc>
4959 The timestamp. If the property does not exist then this will be
4960 empty.
4961 </desc>
4962 </param>
4963 </method>
4964
4965 <method name="setGuestProperty">
4966 <desc>
4967 Sets, changes or deletes an entry in the machine's guest property
4968 store.
4969
4970 <result name="E_ACCESSDENIED">
4971 Property cannot be changed.
4972 </result>
4973 <result name="E_INVALIDARG">
4974 Invalid @a flags.
4975 </result>
4976 <result name="VBOX_E_INVALID_VM_STATE">
4977 Virtual machine is not mutable or session not open.
4978 </result>
4979 <result name="VBOX_E_INVALID_OBJECT_STATE">
4980 Cannot set transient property when machine not running.
4981 </result>
4982
4983 </desc>
4984 <param name="property" type="wstring" dir="in">
4985 <desc>
4986 The name of the property to set, change or delete.
4987 </desc>
4988 </param>
4989 <param name="value" type="wstring" dir="in">
4990 <desc>
4991 The new value of the property to set, change or delete. If the
4992 property does not yet exist and value is non-empty, it will be
4993 created. If the value is empty, the key will be deleted if it
4994 exists.
4995 </desc>
4996 </param>
4997 <param name="flags" type="wstring" dir="in">
4998 <desc>
4999 Additional property parameters, passed as a comma-separated list of
5000 "name=value" type entries.
5001 </desc>
5002 </param>
5003 </method>
5004
5005 <method name="setGuestPropertyValue">
5006 <desc>
5007 Sets, changes or deletes a value in the machine's guest property
5008 store. The flags field will be left unchanged or created empty for a
5009 new property.
5010
5011 <result name="E_ACCESSDENIED">
5012 Property cannot be changed.
5013 </result>
5014 <result name="VBOX_E_INVALID_VM_STATE">
5015 Virtual machine is not mutable or session not open.
5016 </result>
5017 <result name="VBOX_E_INVALID_OBJECT_STATE">
5018 Cannot set transient property when machine not running.
5019 </result>
5020 </desc>
5021
5022 <param name="property" type="wstring" dir="in">
5023 <desc>
5024 The name of the property to set, change or delete.
5025 </desc>
5026 </param>
5027 <param name="value" type="wstring" dir="in">
5028 <desc>
5029 The new value of the property to set, change or delete. If the
5030 property does not yet exist and value is non-empty, it will be
5031 created. If value is empty, the property will be deleted if it
5032 exists.
5033 </desc>
5034 </param>
5035 </method>
5036
5037 <method name="enumerateGuestProperties">
5038 <desc>
5039 Return a list of the guest properties matching a set of patterns along
5040 with their values, time stamps and flags.
5041 </desc>
5042 <param name="patterns" type="wstring" dir="in">
5043 <desc>
5044 The patterns to match the properties against, separated by '|'
5045 characters. If this is empty or NULL, all properties will match.
5046 </desc>
5047 </param>
5048 <param name="name" type="wstring" dir="out" safearray="yes">
5049 <desc>
5050 The names of the properties returned.
5051 </desc>
5052 </param>
5053 <param name="value" type="wstring" dir="out" safearray="yes">
5054 <desc>
5055 The values of the properties returned. The array entries match the
5056 corresponding entries in the @a name array.
5057 </desc>
5058 </param>
5059 <param name="timestamp" type="unsigned long long" dir="out" safearray="yes">
5060 <desc>
5061 The time stamps of the properties returned. The array entries match
5062 the corresponding entries in the @a name array.
5063 </desc>
5064 </param>
5065 <param name="flags" type="wstring" dir="out" safearray="yes">
5066 <desc>
5067 The flags of the properties returned. The array entries match the
5068 corresponding entries in the @a name array.
5069 </desc>
5070 </param>
5071 </method>
5072</interface>
5073
5074 <!--
5075 // IConsole
5076 /////////////////////////////////////////////////////////////////////////
5077 -->
5078
5079 <interface
5080 name="IConsoleCallback" extends="$unknown"
5081 uuid="13dfbef3-b74d-487d-bada-2304529aefa6"
5082 wsmap="suppress"
5083 >
5084
5085 <method name="onMousePointerShapeChange">
5086 <desc>
5087 Notification when the guest mouse pointer shape has
5088 changed. The new shape data is given.
5089 </desc>
5090 <param name="visible" type="boolean" dir="in">
5091 <desc>
5092 Flag whether the pointer is visible.
5093 </desc>
5094 </param>
5095 <param name="alpha" type="boolean" dir="in">
5096 <desc>
5097 Flag whether the pointer has an alpha channel.
5098 </desc>
5099 </param>
5100 <param name="xHot" type="unsigned long" dir="in">
5101 <desc>
5102 The pointer hot spot x coordinate.
5103 </desc>
5104 </param>
5105 <param name="yHot" type="unsigned long" dir="in">
5106 <desc>
5107 The pointer hot spot y coordinate.
5108 </desc>
5109 </param>
5110 <param name="width" type="unsigned long" dir="in">
5111 <desc>
5112 Width of the pointer shape in pixels.
5113 </desc>
5114 </param>
5115 <param name="height" type="unsigned long" dir="in">
5116 <desc>
5117 Height of the pointer shape in pixels.
5118 </desc>
5119 </param>
5120 <param name="shape" type="octet" mod="ptr" dir="in">
5121 <desc>
5122 Address of the shape buffer.
5123
5124 The @a shape buffer contains a 1-bpp (bits per pixel) AND mask
5125 followed by a 32-bpp XOR (color) mask.
5126
5127 For pointers without alpha channel the XOR mask pixels are 32
5128 bit values: (lsb)BGR0(msb). For pointers with alpha channel
5129 the XOR mask consists of (lsb)BGRA(msb) 32 bit values.
5130
5131 An AND mask is used for pointers with alpha channel, so if the
5132 callback does not support alpha, the pointer could be
5133 displayed as a normal color pointer.
5134
5135 The AND mask is a 1-bpp bitmap with byte aligned scanlines. The
5136 size of the AND mask therefore is <tt>cbAnd = (width + 7) / 8 *
5137 height</tt>. The padding bits at the end of each scanline are
5138 undefined.
5139
5140 The XOR mask follows the AND mask on the next 4-byte aligned
5141 offset: <tt>uint8_t *pXor = pAnd + (cbAnd + 3) &amp; ~3</tt>.
5142 Bytes in the gap between the AND and the XOR mask are undefined.
5143 The XOR mask scanlines have no gap between them and the size of
5144 the XOR mask is: <tt>cXor = width * 4 * height</tt>.
5145
5146 <note>
5147 If @a shape is 0, only the pointer visibility is changed.
5148 </note>
5149 </desc>
5150 </param>
5151 </method>
5152
5153 <method name="onMouseCapabilityChange">
5154 <desc>
5155 Notification when the mouse capabilities reported by the
5156 guest have changed. The new capabilities are passed.
5157 </desc>
5158 <param name="supportsAbsolute" type="boolean" dir="in"/>
5159 <param name="needsHostCursor" type="boolean" dir="in"/>
5160 </method>
5161
5162 <method name="onKeyboardLedsChange">
5163 <desc>
5164 Notification when the guest OS executes the KBD_CMD_SET_LEDS command
5165 to alter the state of the keyboard LEDs.
5166 </desc>
5167 <param name="numLock" type="boolean" dir="in"/>
5168 <param name="capsLock" type="boolean" dir="in"/>
5169 <param name="scrollLock" type="boolean" dir="in"/>
5170 </method>
5171
5172 <method name="onStateChange">
5173 <desc>
5174 Notification when the execution state of the machine has changed.
5175 The new state will be given.
5176 </desc>
5177 <param name="state" type="MachineState" dir="in"/>
5178 </method>
5179
5180 <method name="onAdditionsStateChange">
5181 <desc>
5182 Notification when a Guest Additions property changes.
5183 Interested callees should query IGuest attributes to
5184 find out what has changed.
5185 </desc>
5186 </method>
5187
5188 <method name="onDVDDriveChange">
5189 <desc>
5190 Notification when a property of the
5191 virtual <link to="IMachine::DVDDrive">DVD drive</link> changes.
5192 Interested callees should use IDVDDrive methods to find out what has
5193 changed.
5194 </desc>
5195 </method>
5196
5197 <method name="onFloppyDriveChange">
5198 <desc>
5199 Notification when a property of the
5200 virtual <link to="IMachine::floppyDrive">floppy drive</link> changes.
5201 Interested callees should use IFloppyDrive methods to find out what
5202 has changed.
5203 </desc>
5204 </method>
5205
5206 <method name="onNetworkAdapterChange">
5207 <desc>
5208 Notification when a property of one of the
5209 virtual <link to="IMachine::getNetworkAdapter">network adapters</link>
5210 changes. Interested callees should use INetworkAdapter methods and
5211 attributes to find out what has changed.
5212 </desc>
5213 <param name="networkAdapter" type="INetworkAdapter" dir="in">
5214 <desc>Network adapter that is subject to change.</desc>
5215 </param>
5216 </method>
5217
5218 <method name="onSerialPortChange">
5219 <desc>
5220 Notification when a property of one of the
5221 virtual <link to="IMachine::getSerialPort">serial ports</link> changes.
5222 Interested callees should use ISerialPort methods and attributes
5223 to find out what has changed.
5224 </desc>
5225 <param name="serialPort" type="ISerialPort" dir="in">
5226 <desc>Serial port that is subject to change.</desc>
5227 </param>
5228 </method>
5229
5230 <method name="onParallelPortChange">
5231 <desc>
5232 Notification when a property of one of the
5233 virtual <link to="IMachine::getParallelPort">parallel ports</link>
5234 changes. Interested callees should use ISerialPort methods and
5235 attributes to find out what has changed.
5236 </desc>
5237 <param name="parallelPort" type="IParallelPort" dir="in">
5238 <desc>Parallel port that is subject to change.</desc>
5239 </param>
5240 </method>
5241
5242 <method name="onVRDPServerChange">
5243 <desc>
5244 Notification when a property of the
5245 <link to="IMachine::VRDPServer">VRDP server</link> changes.
5246 Interested callees should use IVRDPServer methods and attributes to
5247 find out what has changed.
5248 </desc>
5249 </method>
5250
5251 <method name="onUSBControllerChange">
5252 <desc>
5253 Notification when a property of the virtual
5254 <link to="IMachine::USBController">USB controller</link> changes.
5255 Interested callees should use IUSBController methods and attributes to
5256 find out what has changed.
5257 </desc>
5258 </method>
5259
5260 <method name="onUSBDeviceStateChange">
5261 <desc>
5262 Notification when a USB device is attached to or detached from
5263 the virtual USB controller.
5264
5265 This notification is sent as a result of the indirect
5266 request to attach the device because it matches one of the
5267 machine USB filters, or as a result of the direct request
5268 issued by <link to="IConsole::attachUSBDevice"/> or
5269 <link to="IConsole::detachUSBDevice"/>.
5270
5271 This notification is sent in case of both a succeeded and a
5272 failed request completion. When the request succeeds, the
5273 @a error parameter is @c null, and the given device has been
5274 already added to (when @a attached is @c true) or removed from
5275 (when @a attached is @c false) the collection represented by
5276 <link to="IConsole::USBDevices"/>. On failure, the collection
5277 doesn't change and the @a error parameter represents the error
5278 message describing the failure.
5279
5280 </desc>
5281 <param name="device" type="IUSBDevice" dir="in">
5282 <desc>Device that is subject to state change.</desc>
5283 </param>
5284 <param name="attached" type="boolean" dir="in">
5285 <desc>
5286 <tt>true</tt> if the device was attached
5287 and <tt>false</tt> otherwise.
5288 </desc>
5289 </param>
5290 <param name="error" type="IVirtualBoxErrorInfo" dir="in">
5291 <desc>
5292 <tt>null</tt> on success or an error message object on
5293 failure.
5294 </desc>
5295 </param>
5296 </method>
5297
5298 <method name="onSharedFolderChange">
5299 <desc>
5300 Notification when a shared folder is added or removed.
5301 The @a scope argument defines one of three scopes:
5302 <link to="IVirtualBox::sharedFolders">global shared folders</link>
5303 (<link to="Scope_Global">Global</link>),
5304 <link to="IMachine::sharedFolders">permanent shared folders</link> of
5305 the machine (<link to="Scope_Machine">Machine</link>) or <link
5306 to="IConsole::sharedFolders">transient shared folders</link> of the
5307 machine (<link to="Scope_Session">Session</link>). Interested callees
5308 should use query the corresponding collections to find out what has
5309 changed.
5310 </desc>
5311 <param name="scope" type="Scope" dir="in">
5312 <desc>Scope of the notification.</desc>
5313 </param>
5314 </method>
5315
5316 <method name="onRuntimeError">
5317 <desc>
5318 Notification when an error happens during the virtual
5319 machine execution.
5320
5321 There are three kinds of runtime errors:
5322 <ul>
5323 <li><i>fatal</i></li>
5324 <li><i>non-fatal with retry</i></li>
5325 <li><i>non-fatal warnings</i></li>
5326 </ul>
5327
5328 <b>Fatal</b> errors are indicated by the @a fatal parameter set
5329 to <tt>true</tt>. In case of fatal errors, the virtual machine
5330 execution is always paused before calling this notification, and
5331 the notification handler is supposed either to immediately save
5332 the virtual machine state using <link to="IConsole::saveState"/>
5333 or power it off using <link to="IConsole::powerDown"/>.
5334 Resuming the execution can lead to unpredictable results.
5335
5336 <b>Non-fatal</b> errors and warnings are indicated by the
5337 @a fatal parameter set to <tt>false</tt>. If the virtual machine
5338 is in the Paused state by the time the error notification is
5339 received, it means that the user can <i>try to resume</i> the machine
5340 execution after attempting to solve the problem that caused the
5341 error. In this case, the notification handler is supposed
5342 to show an appropriate message to the user (depending on the
5343 value of the @a id parameter) that offers several actions such
5344 as <i>Retry</i>, <i>Save</i> or <i>Power Off</i>. If the user
5345 wants to retry, the notification handler should continue
5346 the machine execution using the <link to="IConsole::resume"/>
5347 call. If the machine execution is not Paused during this
5348 notification, then it means this notification is a <i>warning</i>
5349 (for example, about a fatal condition that can happen very soon);
5350 no immediate action is required from the user, the machine
5351 continues its normal execution.
5352
5353 Note that in either case the notification handler
5354 <b>must not</b> perform any action directly on a thread
5355 where this notification is called. Everything it is allowed to
5356 do is to post a message to another thread that will then talk
5357 to the user and take the corresponding action.
5358
5359 Currently, the following error identifiers are known:
5360 <ul>
5361 <li><tt>"HostMemoryLow"</tt></li>
5362 <li><tt>"HostAudioNotResponding"</tt></li>
5363 <li><tt>"VDIStorageFull"</tt></li>
5364 </ul>
5365
5366 <note>
5367 This notification is not designed to be implemented by
5368 more than one callback at a time. If you have multiple
5369 IConsoleCallback instances registered on the given
5370 IConsole object, make sure you simply do nothing but
5371 return @c S_OK from all but one of them that does actual
5372 user notification and performs necessary actions.
5373 </note>
5374
5375 </desc>
5376 <param name="fatal" type="boolean" dir="in">
5377 <desc>Whether the error is fatal or not</desc>
5378 </param>
5379 <param name="id" type="wstring" dir="in">
5380 <desc>Error identifier</desc>
5381 </param>
5382 <param name="message" type="wstring" dir="in">
5383 <desc>Optional error message</desc>
5384 </param>
5385 </method>
5386
5387 <method name="onCanShowWindow">
5388 <desc>
5389 Notification when a call to
5390 <link to="IMachine::canShowConsoleWindow"/> is made by a
5391 front-end to check if a subsequent call to
5392 <link to="IMachine::showConsoleWindow"/> can succeed.
5393
5394 The callee should give an answer appropriate to the current
5395 machine state in the @a canShow argument. This answer must
5396 remain valid at least until the next
5397 <link to="IConsole::state">machine state</link> change.
5398
5399 <note>
5400 This notification is not designed to be implemented by
5401 more than one callback at a time. If you have multiple
5402 IConsoleCallback instances registered on the given
5403 IConsole object, make sure you simply do nothing but
5404 return @c true and @c S_OK from all but one of them that
5405 actually manages console window activation.
5406 </note>
5407 </desc>
5408 <param name="canShow" type="boolean" dir="return">
5409 <desc>
5410 @c true if the console window can be shown and @c
5411 false otherwise.
5412 </desc>
5413 </param>
5414 </method>
5415
5416 <method name="onShowWindow">
5417 <desc>
5418 Notification when a call to
5419 <link to="IMachine::showConsoleWindow"/>
5420 requests the console window to be activated and brought to
5421 foreground on the desktop of the host PC.
5422
5423 This notification should cause the VM console process to
5424 perform the requested action as described above. If it is
5425 impossible to do it at a time of this notification, this
5426 method should return a failure.
5427
5428 Note that many modern window managers on many platforms
5429 implement some sort of focus stealing prevention logic, so
5430 that it may be impossible to activate a window without the
5431 help of the currently active application (which is supposedly
5432 an initiator of this notification). In this case, this method
5433 must return a non-zero identifier that represents the
5434 top-level window of the VM console process. The caller, if it
5435 represents a currently active process, is responsible to use
5436 this identifier (in a platform-dependent manner) to perform
5437 actual window activation.
5438
5439 This method must set @a winId to zero if it has performed all
5440 actions necessary to complete the request and the console
5441 window is now active and in foreground, to indicate that no
5442 further action is required on the caller's side.
5443
5444 <note>
5445 This notification is not designed to be implemented by
5446 more than one callback at a time. If you have multiple
5447 IConsoleCallback instances registered on the given
5448 IConsole object, make sure you simply do nothing but
5449 return @c S_OK from all but one of them that actually
5450 manages console window activation.
5451 </note>
5452 </desc>
5453 <param name="winId" type="unsigned long long" dir="return">
5454 <desc>
5455 Platform-dependent identifier of the top-level VM console
5456 window, or zero if this method has performed all actions
5457 necessary to implement the <i>show window</i> semantics for
5458 the given platform and/or this VirtualBox front-end.
5459 </desc>
5460 </param>
5461 </method>
5462
5463 </interface>
5464
5465 <interface
5466 name="IRemoteDisplayInfo" extends="$unknown"
5467 uuid="550104cd-2dfd-4a6c-857d-f6f8e088e62c"
5468 wsmap="struct"
5469 >
5470 <desc>
5471 Contains information about the remote display (VRDP) capabilities and status.
5472 This is used in the <link to="IConsole::remoteDisplayInfo" /> attribute.
5473 </desc>
5474
5475 <attribute name="active" type="boolean" readonly="yes">
5476 <desc>
5477 Whether the remote display connection is active.
5478 </desc>
5479 </attribute>
5480
5481 <attribute name="numberOfClients" type="unsigned long" readonly="yes">
5482 <desc>
5483 How many times a client connected.
5484 </desc>
5485 </attribute>
5486
5487 <attribute name="beginTime" type="long long" readonly="yes">
5488 <desc>
5489 When the last connection was established, in milliseconds since 1970-01-01 UTC.
5490 </desc>
5491 </attribute>
5492
5493 <attribute name="endTime" type="long long" readonly="yes">
5494 <desc>
5495 When the last connection was terminated or the current time, if
5496 connection is still active, in milliseconds since 1970-01-01 UTC.
5497 </desc>
5498 </attribute>
5499
5500 <attribute name="bytesSent" type="unsigned long long" readonly="yes">
5501 <desc>
5502 How many bytes were sent in last or current, if still active, connection.
5503 </desc>
5504 </attribute>
5505
5506 <attribute name="bytesSentTotal" type="unsigned long long" readonly="yes">
5507 <desc>
5508 How many bytes were sent in all connections.
5509 </desc>
5510 </attribute>
5511
5512 <attribute name="bytesReceived" type="unsigned long long" readonly="yes">
5513 <desc>
5514 How many bytes were received in last or current, if still active, connection.
5515 </desc>
5516 </attribute>
5517
5518 <attribute name="bytesReceivedTotal" type="unsigned long long" readonly="yes">
5519 <desc>
5520 How many bytes were received in all connections.
5521 </desc>
5522 </attribute>
5523
5524 <attribute name="user" type="wstring" readonly="yes">
5525 <desc>
5526 Login user name supplied by the client.
5527 </desc>
5528 </attribute>
5529
5530 <attribute name="domain" type="wstring" readonly="yes">
5531 <desc>
5532 Login domain name supplied by the client.
5533 </desc>
5534 </attribute>
5535
5536 <attribute name="clientName" type="wstring" readonly="yes">
5537 <desc>
5538 The client name supplied by the client.
5539 </desc>
5540 </attribute>
5541
5542 <attribute name="clientIP" type="wstring" readonly="yes">
5543 <desc>
5544 The IP address of the client.
5545 </desc>
5546 </attribute>
5547
5548 <attribute name="clientVersion" type="unsigned long" readonly="yes">
5549 <desc>
5550 The client software version number.
5551 </desc>
5552 </attribute>
5553
5554 <attribute name="encryptionStyle" type="unsigned long" readonly="yes">
5555 <desc>
5556 Public key exchange method used when connection was established.
5557 Values: 0 - RDP4 public key exchange scheme.
5558 1 - X509 certificates were sent to client.
5559 </desc>
5560 </attribute>
5561
5562 </interface>
5563
5564 <interface
5565 name="IConsole" extends="$unknown"
5566 uuid="e3c6d4a1-a935-47ca-b16d-f9e9c496e53e"
5567 wsmap="managed"
5568 >
5569 <desc>
5570 The IConsole interface represents an interface to control virtual
5571 machine execution.
5572
5573 The console object that implements the IConsole interface is obtained
5574 from a session object after the session for the given machine has been
5575 opened using one of <link to="IVirtualBox::openSession"/>,
5576 <link to="IVirtualBox::openRemoteSession"/> or
5577 <link to="IVirtualBox::openExistingSession"/> methods.
5578
5579 Methods of the IConsole interface allow the caller to query the current
5580 virtual machine execution state, pause the machine or power it down, save
5581 the machine state or take a snapshot, attach and detach removable media
5582 and so on.
5583
5584 <see>ISession</see>
5585 </desc>
5586
5587 <attribute name="machine" type="IMachine" readonly="yes">
5588 <desc>
5589 Machine object this console is sessioned with.
5590 <note>
5591 This is a convenience property, it has the same value as
5592 <link to="ISession::machine"/> of the corresponding session
5593 object.
5594 </note>
5595 </desc>
5596 </attribute>
5597
5598 <attribute name="state" type="MachineState" readonly="yes">
5599 <desc>
5600 Current execution state of the machine.
5601 <note>
5602 This property always returns the same value as the corresponding
5603 property of the IMachine object this console is sessioned with.
5604 For the process that owns (executes) the VM, this is the
5605 preferable way of querying the VM state, because no IPC
5606 calls are made.
5607 </note>
5608 </desc>
5609 </attribute>
5610
5611 <attribute name="guest" type="IGuest" readonly="yes">
5612 <desc>Guest object.</desc>
5613 </attribute>
5614
5615 <attribute name="keyboard" type="IKeyboard" readonly="yes">
5616 <desc>
5617 Virtual keyboard object.
5618 <note>
5619 If the machine is not running, any attempt to use
5620 the returned object will result in an error.
5621 </note>
5622 </desc>
5623 </attribute>
5624
5625 <attribute name="mouse" type="IMouse" readonly="yes">
5626 <desc>
5627 Virtual mouse object.
5628 <note>
5629 If the machine is not running, any attempt to use
5630 the returned object will result in an error.
5631 </note>
5632 </desc>
5633 </attribute>
5634
5635 <attribute name="display" type="IDisplay" readonly="yes">
5636 <desc>Virtual display object.
5637 <note>
5638 If the machine is not running, any attempt to use
5639 the returned object will result in an error.
5640 </note>
5641 </desc>
5642 </attribute>
5643
5644 <attribute name="debugger" type="IMachineDebugger" readonly="yes">
5645 <desc>Debugging interface.</desc>
5646 </attribute>
5647
5648 <attribute name="USBDevices" type="IUSBDeviceCollection" readonly="yes">
5649 <desc>
5650 Collection of USB devices currently attached to the virtual
5651 USB controller.
5652 <note>
5653 The collection is empty if the machine is not running.
5654 </note>
5655 </desc>
5656 </attribute>
5657
5658 <attribute name="remoteUSBDevices" type="IHostUSBDeviceCollection" readonly="yes">
5659 <desc>
5660 List of USB devices currently attached to the remote VRDP client.
5661 Once a new device is physically attached to the remote host computer,
5662 it appears in this list and remains there until detached.
5663 </desc>
5664 </attribute>
5665
5666 <attribute name="sharedFolders" type="ISharedFolder" readonly="yes" safearray="yes">
5667 <desc>
5668 Collection of shared folders for the current session. These folders
5669 are called transient shared folders because they are available to the
5670 guest OS running inside the associated virtual machine only for the
5671 duration of the session (as opposed to
5672 <link to="IMachine::sharedFolders"/> which represent permanent shared
5673 folders). When the session is closed (e.g. the machine is powered down),
5674 these folders are automatically discarded.
5675
5676 New shared folders are added to the collection using
5677 <link to="#createSharedFolder"/>. Existing shared folders can be
5678 removed using <link to="#removeSharedFolder"/>.
5679 </desc>
5680 </attribute>
5681
5682 <attribute name="remoteDisplayInfo" type="IRemoteDisplayInfo" readonly="yes">
5683 <desc>
5684 Interface that provides information on Remote Display (VRDP) connection.
5685 </desc>
5686 </attribute>
5687
5688 <method name="powerUp">
5689 <desc>
5690 Starts the virtual machine execution using the current machine
5691 state (that is, its current execution state, current settings and
5692 current hard disks).
5693
5694 If the machine is powered off or aborted, the execution will
5695 start from the beginning (as if the real hardware were just
5696 powered on).
5697
5698 If the machine is in the <link to="MachineState_Saved"/> state,
5699 it will continue its execution the point where the state has
5700 been saved.
5701
5702 <note>
5703 Unless you are trying to write a new VirtualBox front-end that
5704 performs direct machine execution (like the VirtualBox or VBoxSDL
5705 front-ends), don't call <link to="IConsole::powerUp"/> in a direct
5706 session opened by <link to="IVirtualBox::openSession"/> and use this
5707 session only to change virtual machine settings. If you simply want to
5708 start virtual machine execution using one of the existing front-ends
5709 (for example the VirtualBox GUI or headless server), simply use
5710 <link to="IVirtualBox::openRemoteSession"/>; these front-ends will
5711 power up the machine automatically for you.
5712 </note>
5713
5714 <see>#saveState</see>
5715 <result name="VBOX_E_INVALID_VM_STATE">
5716 Virtual machine already running.
5717 </result>
5718 <result name="VBOX_E_HOST_ERROR">
5719 Host interface does not exist or name not set.
5720 </result>
5721 <result name="VBOX_E_FILE_ERROR">
5722 Invalid saved state file.
5723 </result>
5724 </desc>
5725 <param name="progress" type="IProgress" dir="return">
5726 <desc>Progress object to track the operation completion.</desc>
5727 </param>
5728 </method>
5729
5730 <method name="powerUpPaused">
5731 <desc>
5732 Identical to powerUp except that the VM will enter the
5733 <link to="MachineState_Paused"/> state, instead of
5734 <link to="MachineState_Running"/>.
5735
5736 <see>#powerUp</see>
5737 <result name="VBOX_E_INVALID_VM_STATE">
5738 Virtual machine already running.
5739 </result>
5740 <result name="VBOX_E_HOST_ERROR">
5741 Host interface does not exist or name not set.
5742 </result>
5743 <result name="VBOX_E_FILE_ERROR">
5744 Invalid saved state file.
5745 </result>
5746 </desc>
5747 <param name="progress" type="IProgress" dir="return">
5748 <desc>Progress object to track the operation completion.</desc>
5749 </param>
5750 </method>
5751
5752 <method name="powerDown">
5753 <desc>
5754 Stops the virtual machine execution.
5755 After this operation completes, the machine will go to the
5756 PoweredOff state.
5757
5758 @deprecated This method will be removed in VirtualBox 2.1 where the
5759 powerDownAsync() method will take its name. Do not use this method in
5760 the code.
5761 <result name="VBOX_E_INVALID_VM_STATE">
5762 Virtual machine must be Running, Paused or Stuck to be powered down.
5763 </result>
5764 <result name="VBOX_E_VM_ERROR">
5765 Unable to power off or destroy virtual machine.
5766 </result>
5767 </desc>
5768 </method>
5769
5770 <method name="powerDownAsync">
5771 <desc>
5772 Initiates the power down procedure to stop the virtual machine
5773 execution.
5774
5775 The completion of the power down procedure is tracked using the returned
5776 IProgress object. After the operation is complete, the machine will go
5777 to the PoweredOff state.
5778
5779 @warning This method will be renamed to "powerDown" in VirtualBox 2.1
5780 where the original powerDown() method will be removed. You will need to
5781 rename "powerDownAsync" to "powerDown" in your sources to make them
5782 build with version 2.1.
5783 <result name="VBOX_E_INVALID_VM_STATE">
5784 Virtual machine must be Running, Paused or Stuck to be powered down.
5785 </result>
5786 </desc>
5787 <param name="progress" type="IProgress" dir="return">
5788 <desc>Progress object to track the operation completion.</desc>
5789 </param>
5790 </method>
5791
5792 <method name="reset">
5793 <desc>Resets the virtual machine.
5794 <result name="VBOX_E_INVALID_VM_STATE">
5795 Virtual machine not in Running state.
5796 </result>
5797 <result name="VBOX_E_VM_ERROR">
5798 Virtual machine error in reset operation.
5799 </result>
5800 </desc>
5801 </method>
5802
5803 <method name="pause">
5804 <desc>Pauses the virtual machine execution.
5805 <result name="VBOX_E_INVALID_VM_STATE">
5806 Virtual machine not in Running state.
5807 </result>
5808 <result name="VBOX_E_VM_ERROR">
5809 Virtual machine error in suspend operation.
5810 </result>
5811 </desc>
5812 </method>
5813
5814 <method name="resume">
5815 <desc>Resumes the virtual machine execution.
5816 <result name="VBOX_E_INVALID_VM_STATE">
5817 Virtual machine not in Paused state.
5818 </result>
5819 <result name="VBOX_E_VM_ERROR">
5820 Virtual machine error in resume operation.
5821 </result>
5822 </desc>
5823 </method>
5824
5825 <method name="powerButton">
5826 <desc>Sends the ACPI power button event to the guest.
5827 <result name="VBOX_E_INVALID_VM_STATE">
5828 Virtual machine not in Running state.
5829 </result>
5830 <result name="VBOX_E_PDM_ERROR">
5831 Controlled power off failed.
5832 </result>
5833 </desc>
5834 </method>
5835
5836 <method name="sleepButton">
5837 <desc>Sends the ACPI sleep button event to the guest.
5838 <result name="VBOX_E_INVALID_VM_STATE">
5839 Virtual machine not in Running state.
5840 </result>
5841 <result name="VBOX_E_PDM_ERROR">
5842 Sending sleep button event failed.
5843 </result>
5844 </desc>
5845 </method>
5846
5847 <method name="getPowerButtonHandled">
5848 <desc>Checks if the last power button event was handled by guest.
5849 <result name="VBOX_E_PDM_ERROR">
5850 Checking if the event was handled by the guest OS failed.
5851 </result>
5852 </desc>
5853 <param name="handled" type="boolean" dir="return"/>
5854 </method>
5855
5856 <method name="getGuestEnteredACPIMode">
5857 <desc>Checks if the guest entered the ACPI mode G0 (working) or
5858 G1 (sleeping). If this method returns false, the guest will
5859 most likely not respond to external ACPI events.
5860 <result name="VBOX_E_INVALID_VM_STATE">
5861 Virtual machine not in Running state.
5862 </result>
5863 </desc>
5864 <param name="entered" type="boolean" dir="return"/>
5865 </method>
5866
5867 <method name="saveState">
5868 <desc>
5869 Saves the current execution state of a running virtual machine
5870 and stops its execution.
5871
5872 After this operation completes, the machine will go to the
5873 Saved state. Next time it is powered up, this state will
5874 be restored and the machine will continue its execution from
5875 the place where it was saved.
5876
5877 This operation differs from taking a snapshot to the effect
5878 that it doesn't create new differencing hard disks. Also, once
5879 the machine is powered up from the state saved using this method,
5880 the saved state is deleted, so it will be impossible to return
5881 to this state later.
5882
5883 <note>
5884 On success, this method implicitly calls
5885 <link to="IMachine::saveSettings"/> to save all current machine
5886 settings (including runtime changes to the DVD drive, etc.).
5887 Together with the impossibility to change any VM settings when it is
5888 in the Saved state, this guarantees adequate hardware
5889 configuration of the machine when it is restored from the saved
5890 state file.
5891 </note>
5892
5893 <note>
5894 The machine must be in the Running or Paused state, otherwise
5895 the operation will fail.
5896 </note>
5897 <result name="VBOX_E_INVALID_VM_STATE">
5898 Virtual machine state neither Running nor Paused.
5899 </result>
5900 <result name="VBOX_E_FILE_ERROR">
5901 Failed to create directory for saved state file.
5902 </result>
5903
5904 <see><link to="#takeSnapshot"/></see>
5905 </desc>
5906 <param name="progress" type="IProgress" dir="return">
5907 <desc>Progress object to track the operation completion.</desc>
5908 </param>
5909 </method>
5910
5911 <method name="adoptSavedState">
5912 <desc>
5913 Associates the given saved state file to the virtual machine.
5914
5915 On success, the machine will go to the Saved state. Next time it is
5916 powered up, it will be restored from the adopted saved state and
5917 continue execution from the place where the saved state file was
5918 created.
5919
5920 The specified saved state file path may be absolute or relative to the
5921 folder the VM normally saves the state to (usually,
5922 <link to="IMachine::snapshotFolder"/>).
5923
5924 <note>
5925 It's a caller's responsibility to make sure the given saved state
5926 file is compatible with the settings of this virtual machine that
5927 represent its virtual hardware (memory size, hard disk configuration
5928 etc.). If there is a mismatch, the behavior of the virtual machine
5929 is undefined.
5930 </note>
5931 <result name="VBOX_E_INVALID_VM_STATE">
5932 Virtual machine state neither PoweredOff nor Aborted.
5933 </result>
5934 </desc>
5935 <param name="savedStateFile" type="wstring" dir="in">
5936 <desc>Path to the saved state file to adopt.</desc>
5937 </param>
5938 </method>
5939
5940 <method name="discardSavedState">
5941 <desc>
5942 Discards (deletes) the saved state of the virtual machine
5943 previously created by <link to="#saveState"/>. Next time the
5944 machine is powered up, a clean boot will occur.
5945 <note>
5946 This operation is equivalent to resetting or powering off
5947 the machine without doing a proper shutdown in the guest OS.
5948 </note>
5949 <result name="VBOX_E_INVALID_VM_STATE">
5950 Virtual machine not in state Saved.
5951 </result>
5952 </desc>
5953 </method>
5954
5955 <method name="getDeviceActivity">
5956 <desc>
5957 Gets the current activity type of a given device or device group.
5958 <result name="E_INVALIDARG">
5959 Invalid device type.
5960 </result>
5961 </desc>
5962 <param name="type" type="DeviceType" dir="in"/>
5963 <param name="activity" type="DeviceActivity" dir="return"/>
5964 </method>
5965
5966 <method name="attachUSBDevice">
5967 <desc>
5968 Attaches a host USB device with the given UUID to the
5969 USB controller of the virtual machine.
5970
5971 The device needs to be in one of the following states:
5972 <link to="USBDeviceState_Busy"/>,
5973 <link to="USBDeviceState_Available"/> or
5974 <link to="USBDeviceState_Held"/>,
5975 otherwise an error is immediately returned.
5976
5977 When the device state is
5978 <link to="USBDeviceState_Busy">Busy</link>, an error may also
5979 be returned if the host computer refuses to release it for some reason.
5980
5981 <see>IUSBController::deviceFilters, USBDeviceState</see>
5982 <result name="VBOX_E_INVALID_VM_STATE">
5983 Virtual machine state neither Running nor Paused.
5984 </result>
5985 <result name="VBOX_E_PDM_ERROR">
5986 Virtual machine does not have a USB controller.
5987 </result>
5988 </desc>
5989 <param name="id" type="uuid" dir="in">
5990 <desc>UUID of the host USB device to attach.</desc>
5991 </param>
5992 </method>
5993
5994 <method name="detachUSBDevice">
5995 <desc>
5996 Detaches an USB device with the given UUID from the USB controller
5997 of the virtual machine.
5998
5999 After this method succeeds, the VirtualBox server re-initiates
6000 all USB filters as if the device were just physically attached
6001 to the host, but filters of this machine are ignored to avoid
6002 a possible automatic re-attachment.
6003
6004 <see>IUSBController::deviceFilters, USBDeviceState</see>
6005
6006 <result name="VBOX_E_PDM_ERROR">
6007 Virtual machine does not have a USB controller.
6008 </result>
6009 <result name="E_INVALIDARG">
6010 USB device not attached to this virtual machine.
6011 </result>
6012 </desc>
6013 <param name="id" type="uuid" dir="in">
6014 <desc>UUID of the USB device to detach.</desc>
6015 </param>
6016 <param name="device" type="IUSBDevice" dir="return">
6017 <desc>Detached USB device.</desc>
6018 </param>
6019 </method>
6020
6021 <method name="createSharedFolder">
6022 <desc>
6023 Creates a transient new shared folder by associating the given logical
6024 name with the given host path, adds it to the collection of shared
6025 folders and starts sharing it. Refer to the description of
6026 <link to="ISharedFolder"/> to read more about logical names.
6027
6028 <result name="VBOX_E_INVALID_VM_STATE">
6029 Virtual machine in Saved state or currently changing state.
6030 </result>
6031 <result name="VBOX_E_FILE_ERROR">
6032 Shared folder already exists or not accessible.
6033 </result>
6034 </desc>
6035 <param name="name" type="wstring" dir="in">
6036 <desc>Unique logical name of the shared folder.</desc>
6037 </param>
6038 <param name="hostPath" type="wstring" dir="in">
6039 <desc>Full path to the shared folder in the host file system.</desc>
6040 </param>
6041 <param name="writable" type="boolean" dir="in">
6042 <desc>Whether the share is writable or readonly</desc>
6043 </param>
6044 </method>
6045
6046 <method name="removeSharedFolder">
6047 <desc>
6048 Removes a transient shared folder with the given name previously
6049 created by <link to="#createSharedFolder"/> from the collection of
6050 shared folders and stops sharing it.
6051 <result name="VBOX_E_INVALID_VM_STATE">
6052 Virtual machine in Saved state or currently changing state.
6053 </result>
6054 <result name="VBOX_E_FILE_ERROR">
6055 Shared folder does not exists.
6056 </result>
6057 </desc>
6058 <param name="name" type="wstring" dir="in">
6059 <desc>Logical name of the shared folder to remove.</desc>
6060 </param>
6061 </method>
6062
6063 <method name="takeSnapshot">
6064 <desc>
6065 Saves the current execution state and all settings of the
6066 machine and creates differencing images for all
6067 normal (non-independent) hard disks.
6068
6069 This method can be called for a PoweredOff, Saved, Running or
6070 Paused virtual machine. When the machine is PoweredOff, an
6071 offline <link to="ISnapshot">snapshot</link> is created,
6072 in all other cases -- an online snapshot.
6073
6074 The taken snapshot is always based on the
6075 <link to="IMachine::currentSnapshot">current
6076 snapshot</link> of the associated virtual machine and becomes
6077 a new current snapshot.
6078
6079 <note>
6080 This method implicitly calls <link to="IMachine::saveSettings"/> to
6081 save all current machine settings before taking an offline snapshot.
6082 </note>
6083
6084 <see>ISnapshot, <link to="#saveState"/></see>
6085 <result name="VBOX_E_INVALID_VM_STATE">
6086 Virtual machine currently changing state.
6087 </result>
6088 </desc>
6089 <param name="name" type="wstring" dir="in">
6090 <desc>Short name for the snapshot.</desc>
6091 </param>
6092 <param name="description" type="wstring" dir="in">
6093 <desc>Optional description of the snapshot.</desc>
6094 </param>
6095 <param name="progress" type="IProgress" dir="return">
6096 <desc>Progress object to track the operation completion.</desc>
6097 </param>
6098 </method>
6099
6100 <method name="discardSnapshot">
6101 <desc>
6102
6103 Starts discarding the specified snapshot. The execution state
6104 and settings of the associated machine stored in the snapshot
6105 will be deleted. The contents of all differencing hard disks of
6106 this snapshot will be merged with the contents of their
6107 dependent child hard disks to keep the, disks valid (in other
6108 words, all changes represented by hard disks being discarded
6109 will be propagated to their child hard disks). After that, this
6110 snapshot's differencing hard disks will be deleted. The parent
6111 of this snapshot will become a new parent for all its child
6112 snapshots.
6113
6114 If the discarded snapshot is the current one, its parent
6115 snapshot will become a new current snapshot. The current machine
6116 state is not directly affected in this case, except that
6117 currently attached differencing hard disks based on hard disks
6118 of the discarded snapshot will be also merged as described
6119 above.
6120
6121 If the discarded snapshot is the first one (the root snapshot)
6122 and it has exactly one child snapshot, this child snapshot will
6123 become the first snapshot after discarding. If there are no
6124 children at all (i.e. the first snapshot is the only snapshot of
6125 the machine), both the current and the first snapshot of the
6126 machine will be set to null. In all other cases, the first
6127 snapshot cannot be discarded.
6128
6129 You cannot discard the snapshot if it
6130 stores <link to="HardDiskType_Normal">normal</link> (non-differencing)
6131 hard disks that have differencing hard disks based on them. Snapshots of
6132 such kind can be discarded only when every normal hard disk has either
6133 no children at all or exactly one child. In the former case, the normal
6134 hard disk simply becomes unused (i.e. not attached to any VM). In the
6135 latter case, it receives all the changes stored in the child hard disk,
6136 and then it replaces the child hard disk in the configuration of the
6137 corresponding snapshot or machine.
6138
6139 Also, you cannot discard the snapshot if it stores hard disks
6140 (of any type) having differencing child hard disks that belong
6141 to other machines. Such snapshots can be only discarded after
6142 you discard all snapshots of other machines containing "foreign"
6143 child disks, or detach these "foreign" child disks from machines
6144 they are attached to.
6145
6146 One particular example of the snapshot storing normal hard disks
6147 is the first snapshot of a virtual machine that had normal hard
6148 disks attached when taking the snapshot. Be careful when
6149 discarding such snapshots because this implicitly commits
6150 changes (made since the snapshot being discarded has been taken)
6151 to normal hard disks (as described above), which may be not what
6152 you want.
6153
6154 The virtual machine is put to
6155 the <link to="MachineState_Discarding">Discarding</link> state until
6156 the discard operation is completed.
6157
6158 <note>
6159 The machine must not be running, otherwise the operation
6160 will fail.
6161 </note>
6162
6163 <note>
6164 Child hard disks of all normal hard disks of the discarded snapshot
6165 must be accessible (see <link to="IMedium::state"/>) for this
6166 operation to succeed. In particular, this means that all virtual
6167 machines, whose hard disks are directly or indirectly based on the
6168 hard disks of discarded snapshot, must be powered off.
6169 </note>
6170 <note>
6171 Merging hard disk contents can be very time and disk space
6172 consuming, if these disks are big in size and have many
6173 children. However, if the snapshot being discarded is the last
6174 (head) snapshot on the branch, the operation will be rather
6175 quick.
6176 </note>
6177 <note>
6178 Note that discarding the current snapshot
6179 will implicitly call <link to="IMachine::saveSettings"/> to
6180 make all current machine settings permanent.
6181 </note>
6182 <result name="VBOX_E_INVALID_VM_STATE">
6183 Virtual machine is running.
6184 </result>
6185 </desc>
6186 <param name="id" type="uuid" dir="in">
6187 <desc>UUID of the snapshot to discard.</desc>
6188 </param>
6189 <param name="progress" type="IProgress" dir="return">
6190 <desc>Progress object to track the operation completion.</desc>
6191 </param>
6192 </method>
6193
6194 <method name="discardCurrentState">
6195 <desc>
6196 This operation is similar to <link to="#discardSnapshot"/> but
6197 affects the current machine state. This means that the state stored in
6198 the current snapshot will become a new current state, and all current
6199 settings of the machine and changes stored in differencing hard disks
6200 will be lost.
6201
6202 After this operation is successfully completed, new empty differencing
6203 hard disks are created for all normal hard disks of the machine.
6204
6205 If the current snapshot of the machine is an online snapshot, the
6206 machine will go to the <link to="MachineState_Saved"> saved
6207 state</link>, so that the next time it is powered on, the execution
6208 state will be restored from the current snapshot.
6209
6210 <note>
6211 The machine must not be running, otherwise the operation will fail.
6212 </note>
6213
6214 <note>
6215 If the machine state is <link to="MachineState_Saved">Saved</link>
6216 prior to this operation, the saved state file will be implicitly
6217 discarded (as if <link to="IConsole::discardSavedState"/> were
6218 called).
6219 </note>
6220
6221 <result name="VBOX_E_INVALID_VM_STATE">
6222 Virtual machine is running.
6223 </result>
6224 </desc>
6225 <param name="progress" type="IProgress" dir="return">
6226 <desc>Progress object to track the operation completion.</desc>
6227 </param>
6228 </method>
6229
6230 <method name="discardCurrentSnapshotAndState">
6231 <desc>
6232
6233 This method is equivalent to
6234 doing <link to="IConsole::discardSnapshot">discardSnapshot</link>
6235 (currentSnapshot.id(), progress) followed by
6236 <link to="#discardCurrentState"/>.
6237
6238 As a result, the machine will be fully restored from the
6239 snapshot preceding the current snapshot, while both the current
6240 snapshot and the current machine state will be discarded.
6241
6242 If the current snapshot is the first snapshot of the machine (i.e. it
6243 has the only snapshot), the current machine state will be
6244 discarded <b>before</b> discarding the snapshot. In other words, the
6245 machine will be restored from its last snapshot, before discarding
6246 it. This differs from performing a single
6247 <link to="#discardSnapshot"/> call (note that no
6248 <link to="#discardCurrentState"/> will be possible after it)
6249 to the effect that the latter will preserve the current state instead of
6250 discarding it.
6251
6252 Unless explicitly mentioned otherwise, all remarks and
6253 limitations of the above two methods also apply to this method.
6254
6255 <note>
6256 The machine must not be running, otherwise the operation
6257 will fail.
6258 </note>
6259
6260 <note>
6261 If the machine state is <link to="MachineState_Saved">Saved</link>
6262 prior to this operation, the saved state file will be implicitly
6263 discarded (as if <link to="#discardSavedState"/> were
6264 called).
6265 </note>
6266
6267 <note>
6268 This method is more efficient than calling both of the above
6269 methods separately: it requires less IPC calls and provides
6270 a single progress object.
6271 </note>
6272
6273 <result name="VBOX_E_INVALID_VM_STATE">
6274 Virtual machine is running.
6275 </result>
6276 </desc>
6277 <param name="progress" type="IProgress" dir="return">
6278 <desc>Progress object to track the operation completion.</desc>
6279 </param>
6280 </method>
6281
6282 <method name="registerCallback">
6283 <desc>
6284 Registers a new console callback on this instance. The methods of the
6285 callback interface will be called by this instance when the appropriate
6286 event occurs.
6287 </desc>
6288 <param name="callback" type="IConsoleCallback" dir="in"/>
6289 </method>
6290
6291 <method name="unregisterCallback">
6292 <desc>
6293 Unregisters the console callback previously registered using
6294 <link to="#registerCallback"/>.
6295 <result name="E_INVALIDARG">
6296 Given @a callback handler is not registered.
6297 </result>
6298 </desc>
6299 <param name="callback" type="IConsoleCallback" dir="in"/>
6300 </method>
6301 </interface>
6302
6303 <!--
6304 // IHost
6305 /////////////////////////////////////////////////////////////////////////
6306 -->
6307
6308 <interface
6309 name="IHostDVDDrive" extends="$unknown"
6310 uuid="21f86694-202d-4ce4-8b05-a63ff82dbf4c"
6311 wsmap="managed"
6312 >
6313 <desc>
6314 The IHostDVDDrive interface represents the physical CD/DVD drive
6315 hardware on the host. Used indirectly in <link to="IHost::DVDDrives"/>.
6316 </desc>
6317
6318 <attribute name="name" type="wstring" readonly="yes">
6319 <desc>
6320 Returns the platform-specific device identifier.
6321 On DOS-like platforms, it is a drive name (e.g. R:).
6322 On Unix-like platforms, it is a device name (e.g. /dev/hdc).
6323 </desc>
6324 </attribute>
6325 <attribute name="description" type="wstring" readonly="yes">
6326 <desc>
6327 Returns a human readable description for the drive. This
6328 description usually contains the product and vendor name. A
6329 @c null string is returned if the description is not available.
6330 </desc>
6331 </attribute>
6332 <attribute name="udi" type="wstring" readonly="yes">
6333 <desc>
6334 Returns the unique device identifier for the drive. This
6335 attribute is reserved for future use instead of
6336 <link to="#name"/>. Currently it is not used and may return
6337 @c null on some platforms.
6338 </desc>
6339 </attribute>
6340
6341 </interface>
6342
6343 <interface
6344 name="IHostFloppyDrive" extends="$unknown"
6345 uuid="b6a4d1a9-4221-43c3-bd52-021a5daa9ed2"
6346 wsmap="managed"
6347 >
6348 <desc>
6349 The IHostFloppyDrive interface represents the physical floppy drive
6350 hardware on the host. Used indirectly in <link to="IHost::floppyDrives"/>.
6351 </desc>
6352 <attribute name="name" type="wstring" readonly="yes">
6353 <desc>
6354 Returns the platform-specific device identifier.
6355 On DOS-like platforms, it is a drive name (e.g. A:).
6356 On Unix-like platforms, it is a device name (e.g. /dev/fd0).
6357 </desc>
6358 </attribute>
6359 <attribute name="description" type="wstring" readonly="yes">
6360 <desc>
6361 Returns a human readable description for the drive. This
6362 description usually contains the product and vendor name. A
6363 @c null string is returned if the description is not available.
6364 </desc>
6365 </attribute>
6366 <attribute name="udi" type="wstring" readonly="yes">
6367 <desc>
6368 Returns the unique device identifier for the drive. This
6369 attribute is reserved for future use instead of
6370 <link to="#name"/>. Currently it is not used and may return
6371 @c null on some platforms.
6372 </desc>
6373 </attribute>
6374 </interface>
6375
6376 <enum
6377 name="HostNetworkInterfaceType"
6378 uuid="763754FA-3246-4539-9590-9E603EDBF706"
6379 >
6380 <desc>
6381 Type of encapsulation. Ethernet encapsulation includes both wired and
6382 wireless Ethernet connections.
6383 <see>IHostNetworkInterface</see>
6384 </desc>
6385
6386 <const name="Unknown" value="0">
6387 <desc>
6388 The type of interface cannot be determined.
6389 </desc>
6390 </const>
6391 <const name="Ethernet" value="1">
6392 <desc>
6393 Ethernet frame encapsulation.
6394 </desc>
6395 </const>
6396 <const name="PPP" value="2">
6397 <desc>
6398 Point-to-point protocol encapsulation.
6399 </desc>
6400 </const>
6401 <const name="SLIP" value="3">
6402 <desc>
6403 Serial line IP encapsulation.
6404 </desc>
6405 </const>
6406 </enum>
6407
6408 <enum
6409 name="HostNetworkInterfaceStatus"
6410 uuid="CC474A69-2710-434B-8D99-C38E5D5A6F41"
6411 >
6412 <desc>
6413 Current status of the interface.
6414 <see>IHostNetworkInterface</see>
6415 </desc>
6416
6417 <const name="Unknown" value="0">
6418 <desc>
6419 The state of interface cannot be determined.
6420 </desc>
6421 </const>
6422 <const name="Up" value="1">
6423 <desc>
6424 The interface is fully operational.
6425 </desc>
6426 </const>
6427 <const name="Down" value="2">
6428 <desc>
6429 The interface is not functioning.
6430 </desc>
6431 </const>
6432 </enum>
6433
6434 <interface
6435 name="IHostNetworkInterface" extends="$unknown"
6436 uuid="4fc2445f-fb73-4f55-b3b4-ecee47c7077b"
6437 wsmap="managed"
6438 >
6439 <desc>
6440 Reprents one of host's network interfaces. IP V6 address and network
6441 mask are strings of 32 hexdecimal digits grouped by four. Groups are
6442 separated by colons.
6443 For example, fe80:0000:0000:0000:021e:c2ff:fed2:b030.
6444 </desc>
6445 <attribute name="name" type="wstring" readonly="yes">
6446 <desc>Returns the host network interface name.</desc>
6447 </attribute>
6448
6449 <attribute name="id" type="uuid" readonly="yes">
6450 <desc>Returns the interface UUID.</desc>
6451 </attribute>
6452
6453 <attribute name="IPAddress" type="unsigned long" readonly="yes">
6454 <desc>Returns the IP V4 address of the interface.</desc>
6455 </attribute>
6456
6457 <attribute name="networkMask" type="unsigned long" readonly="yes">
6458 <desc>Returns the network mask of the interface.</desc>
6459 </attribute>
6460
6461 <attribute name="IPV6Address" type="wstring" readonly="yes">
6462 <desc>Returns the IP V6 address of the interface.</desc>
6463 </attribute>
6464
6465 <attribute name="IPV6NetworkMask" type="wstring" readonly="yes">
6466 <desc>Returns the IP V6 network mask of the interface.</desc>
6467 </attribute>
6468
6469 <attribute name="hardwareAddress" type="wstring" readonly="yes">
6470 <desc>Returns the hardware address. For Ethernet it is MAC address.</desc>
6471 </attribute>
6472
6473 <attribute name="type" type="HostNetworkInterfaceType" readonly="yes">
6474 <desc>Type of protocol encapsulation used.</desc>
6475 </attribute>
6476
6477 <attribute name="status" type="HostNetworkInterfaceStatus" readonly="yes">
6478 <desc>Status of the interface.</desc>
6479 </attribute>
6480
6481 <attribute name="real" type="boolean" readonly="yes">
6482 <desc>True if this is a real interface false
6483 if this is a Virtualbox Host Adapter interface.</desc>
6484 </attribute>
6485 </interface>
6486
6487 <interface
6488 name="IHost" extends="$unknown"
6489 uuid="ba0cb246-478a-4a2b-930e-51ce740ada9c"
6490 wsmap="managed"
6491 >
6492 <desc>
6493 The IHost interface represents the physical machine that this VirtualBox
6494 installation runs on.
6495
6496 An object implementing this interface is returned by the
6497 <link to="IVirtualBox::host" /> attribute. This interface contains
6498 read-only information about the host's physical hardware (such as what
6499 processors and disks are available, what the host operating system is,
6500 and so on) and also allows for manipulating some of the host's hardware,
6501 such as global USB device filters and host interface networking.
6502
6503 </desc>
6504 <attribute name="DVDDrives" type="IHostDVDDrive" readonly="yes" safearray="yes">
6505 <desc>List of DVD drives available on the host.</desc>
6506 </attribute>
6507
6508 <attribute name="floppyDrives" type="IHostFloppyDrive" readonly="yes" safearray="yes">
6509 <desc>List of floppy drives available on the host.</desc>
6510 </attribute>
6511
6512 <attribute name="USBDevices" type="IHostUSBDeviceCollection" readonly="yes">
6513 <desc>
6514 List of USB devices currently attached to the host.
6515 Once a new device is physically attached to the host computer,
6516 it appears in this list and remains there until detached.
6517
6518 <note>
6519 This method may set a @ref com_warnings "warning result code".
6520 </note>
6521 <note>
6522 If USB functionality is not available in the given edition of
6523 VirtualBox, this method will set the result code to @c E_NOTIMPL.
6524 </note>
6525 </desc>
6526 </attribute>
6527
6528 <attribute name="USBDeviceFilters" type="IHostUSBDeviceFilterCollection" readonly="yes">
6529 <desc>
6530 List of USB device filters in action.
6531 When a new device is physically attached to the host computer,
6532 filters from this list are applied to it (in order they are stored
6533 in the list). The first matched filter will determine the
6534 <link to="IHostUSBDeviceFilter::action">action</link>
6535 performed on the device.
6536
6537 Unless the device is ignored by these filters, filters of all
6538 currently running virtual machines
6539 (<link to="IUSBController::deviceFilters"/>) are applied to it.
6540
6541 <note>
6542 This method may set a @ref com_warnings "warning result code".
6543 </note>
6544 <note>
6545 If USB functionality is not available in the given edition of
6546 VirtualBox, this method will set the result code to @c E_NOTIMPL.
6547 </note>
6548
6549 <see>IHostUSBDeviceFilter, USBDeviceState</see>
6550 </desc>
6551 </attribute>
6552
6553 <attribute name="networkInterfaces" type="IHostNetworkInterface" safearray="yes" readonly="yes">
6554 <desc>List of host network interfaces currently defined on the host.</desc>
6555 </attribute>
6556
6557 <attribute name="processorCount" type="unsigned long" readonly="yes">
6558 <desc>Number of (logical) CPUs installed in the host system.</desc>
6559 </attribute>
6560
6561 <attribute name="processorOnlineCount" type="unsigned long" readonly="yes">
6562 <desc>Number of (logical) CPUs online in the host system.</desc>
6563 </attribute>
6564
6565 <method name="getProcessorSpeed">
6566 <desc>Query the (approximate) maximum speed of a specified host CPU in
6567 Megahertz.
6568 </desc>
6569 <param name="cpuId" type="unsigned long" dir="in">
6570 <desc>
6571 Identifier of the CPU.
6572 </desc>
6573 </param>
6574 <param name="speed" type="unsigned long" dir="return">
6575 <desc>
6576 Speed value. 0 is returned if value is not known or @a cpuId is
6577 invalid.
6578 </desc>
6579 </param>
6580 </method>
6581
6582 <method name="getProcessorFeature">
6583 <desc>Query whether a CPU feature is supported or not.</desc>
6584 <param name="feature" type="ProcessorFeature" dir="in">
6585 <desc>
6586 CPU Feature identifier.
6587 </desc>
6588 </param>
6589 <param name="supported" type="boolean" dir="return">
6590 <desc>
6591 Feature is supported or not.
6592 </desc>
6593 </param>
6594 </method>
6595
6596 <method name="getProcessorDescription">
6597 <desc>Query the model string of a specified host CPU.
6598 <note>
6599 This function is not implemented in the current version of the
6600 product.
6601 </note>
6602 </desc>
6603 <param name="cpuId" type="unsigned long" dir="in">
6604 <desc>
6605 Identifier of the CPU.
6606 </desc>
6607 </param>
6608 <param name="description" type="wstring" dir="return">
6609 <desc>
6610 Model string. A NULL string is returned if value is not known or
6611 @a cpuId is invalid.
6612 </desc>
6613 </param>
6614 </method>
6615
6616 <attribute name="memorySize" type="unsigned long" readonly="yes">
6617 <desc>Amount of system memory in megabytes installed in the host system.</desc>
6618 </attribute>
6619
6620 <attribute name="memoryAvailable" type="unsigned long" readonly="yes">
6621 <desc>Available system memory in the host system.</desc>
6622 </attribute>
6623
6624 <attribute name="operatingSystem" type="wstring" readonly="yes">
6625 <desc>Name of the host system's operating system.</desc>
6626 </attribute>
6627
6628 <attribute name="OSVersion" type="wstring" readonly="yes">
6629 <desc>Host operating system's version string.</desc>
6630 </attribute>
6631
6632 <attribute name="UTCTime" type="long long" readonly="yes">
6633 <desc>Returns the current host time in milliseconds since 1970-01-01 UTC.</desc>
6634 </attribute>
6635
6636<if target="midl">
6637 <method name="createHostNetworkInterface">
6638 <desc>
6639 Creates a new adapter for Host Interface Networking.
6640 <result name="E_INVALIDARG">
6641 Host network interface @a name already exists.
6642 </result>
6643 </desc>
6644 <param name="name" type="wstring" dir="in">
6645 <desc>
6646 Adapter name.
6647 </desc>
6648 </param>
6649 <param name="hostInterface" type="IHostNetworkInterface" dir="out">
6650 <desc>
6651 Created host interface object.
6652 </desc>
6653 </param>
6654 <param name="progress" type="IProgress" dir="return">
6655 <desc>
6656 Progress object to track the operation completion.
6657 </desc>
6658 </param>
6659 </method>
6660 <method name="removeHostNetworkInterface">
6661 <desc>
6662 Removes the given host network interface.
6663 <result name="VBOX_E_OBJECT_NOT_FOUND">
6664 No host network interface matching @a id found.
6665 </result>
6666 </desc>
6667 <param name="id" type="uuid" dir="in">
6668 <desc>
6669 Adapter GUID.
6670 </desc>
6671 </param>
6672 <param name="hostInterface" type="IHostNetworkInterface" dir="out">
6673 <desc>
6674 Removed host interface object.
6675 </desc>
6676 </param>
6677 <param name="progress" type="IProgress" dir="return">
6678 <desc>
6679 Progress object to track the operation completion.
6680 </desc>
6681 </param>
6682 </method>
6683</if>
6684
6685 <method name="createUSBDeviceFilter">
6686 <desc>
6687 Creates a new USB device filter. All attributes except
6688 the filter name are set to <tt>null</tt> (any match),
6689 <i>active</i> is <tt>false</tt> (the filter is not active).
6690
6691 The created filter can be added to the list of filters using
6692 <link to="#insertUSBDeviceFilter"/>.
6693
6694 <see>#USBDeviceFilters</see>
6695 </desc>
6696 <param name="name" type="wstring" dir="in">
6697 <desc>
6698 Filter name. See <link to="IHostUSBDeviceFilter::name"/>
6699 for more info.
6700 </desc>
6701 </param>
6702 <param name="filter" type="IHostUSBDeviceFilter" dir="return">
6703 <desc>Created filter object.</desc>
6704 </param>
6705 </method>
6706
6707 <method name="insertUSBDeviceFilter">
6708 <desc>
6709 Inserts the given USB device to the specified position
6710 in the list of filters.
6711
6712 Positions are numbered starting from <tt>0</tt>. If the specified
6713 position is equal to or greater than the number of elements in
6714 the list, the filter is added at the end of the collection.
6715
6716 <note>
6717 Duplicates are not allowed, so an attempt to insert a
6718 filter that is already in the list, will return an
6719 error.
6720 </note>
6721 <note>
6722 This method may set a @ref com_warnings "warning result code".
6723 </note>
6724 <note>
6725 If USB functionality is not available in the given edition of
6726 VirtualBox, this method will set the result code to @c E_NOTIMPL.
6727 </note>
6728
6729 <see>#USBDeviceFilters</see>
6730
6731 <result name="VBOX_E_INVALID_OBJECT_STATE">
6732 USB device filter is not created within this VirtualBox instance.
6733 </result>
6734 <result name="E_INVALIDARG">
6735 USB device filter already in list.
6736 </result>
6737
6738 </desc>
6739 <param name="position" type="unsigned long" dir="in">
6740 <desc>Position to insert the filter to.</desc>
6741 </param>
6742 <param name="filter" type="IHostUSBDeviceFilter" dir="in">
6743 <desc>USB device filter to insert.</desc>
6744 </param>
6745 </method>
6746
6747 <method name="removeUSBDeviceFilter">
6748 <desc>
6749 Removes a USB device filter from the specified position in the
6750 list of filters.
6751
6752 Positions are numbered starting from <tt>0</tt>. Specifying a
6753 position equal to or greater than the number of elements in
6754 the list will produce an error.
6755
6756 <note>
6757 This method may set a @ref com_warnings "warning result code".
6758 </note>
6759 <note>
6760 If USB functionality is not available in the given edition of
6761 VirtualBox, this method will set the result code to @c E_NOTIMPL.
6762 </note>
6763
6764 <see>#USBDeviceFilters</see>
6765
6766 <result name="E_INVALIDARG">
6767 USB device filter list empty or invalid @a position.
6768 </result>
6769
6770 </desc>
6771 <param name="position" type="unsigned long" dir="in">
6772 <desc>Position to remove the filter from.</desc>
6773 </param>
6774 <param name="filter" type="IHostUSBDeviceFilter" dir="return">
6775 <desc>Removed USB device filter.</desc>
6776 </param>
6777 </method>
6778
6779 <method name="findHostDVDDrive">
6780 <desc>
6781 Searches for a host DVD drive with the given @c name.
6782
6783 <result name="VBOX_E_OBJECT_NOT_FOUND">
6784 Given @c name does not correspond to any host drive.
6785 </result>
6786
6787 </desc>
6788 <param name="name" type="wstring" dir="in">
6789 <desc>Name of the host drive to search for</desc>
6790 </param>
6791 <param name="drive" type="IHostDVDDrive" dir="return">
6792 <desc>Found host drive object</desc>
6793 </param>
6794 </method>
6795
6796 <method name="findHostFloppyDrive">
6797 <desc>
6798 Searches for a host floppy drive with the given @c name.
6799
6800 <result name="VBOX_E_OBJECT_NOT_FOUND">
6801 Given @c name does not correspond to any host floppy drive.
6802 </result>
6803
6804 </desc>
6805 <param name="name" type="wstring" dir="in">
6806 <desc>Name of the host floppy drive to search for</desc>
6807 </param>
6808 <param name="drive" type="IHostFloppyDrive" dir="return">
6809 <desc>Found host floppy drive object</desc>
6810 </param>
6811 </method>
6812
6813 <method name="findHostNetworkInterfaceByName">
6814 <desc>
6815 Searches through all host network interfaces for an interface with
6816 the given @c name.
6817 <note>
6818 The method returns an error if the given @c name does not
6819 correspond to any host network interface.
6820 </note>
6821 </desc>
6822 <param name="name" type="wstring" dir="in">
6823 <desc>Name of the host network interface to search for.</desc>
6824 </param>
6825 <param name="networkInterface" type="IHostNetworkInterface" dir="return">
6826 <desc>Found host network interface object.</desc>
6827 </param>
6828 </method>
6829 <method name="findHostNetworkInterfaceById">
6830 <desc>
6831 Searches through all host network interfaces for an interface with
6832 the given GUID.
6833 <note>
6834 The method returns an error if the given GUID does not
6835 correspond to any host network interface.
6836 </note>
6837 </desc>
6838 <param name="id" type="uuid" dir="in">
6839 <desc>GUID of the host network interface to search for.</desc>
6840 </param>
6841 <param name="networkInterface" type="IHostNetworkInterface" dir="return">
6842 <desc>Found host network interface object.</desc>
6843 </param>
6844 </method>
6845 </interface>
6846
6847 <!--
6848 // ISystemProperties
6849 /////////////////////////////////////////////////////////////////////////
6850 -->
6851
6852 <interface
6853 name="ISystemProperties"
6854 extends="$unknown"
6855 uuid="0760e03f-06d0-481e-9f81-be43fef092ba"
6856 wsmap="managed"
6857 >
6858 <desc>
6859 The ISystemProperties interface represents global properties of the given
6860 VirtualBox installation.
6861
6862 These properties define limits and default values for various attributes
6863 and parameters. Most of the properties are read-only, but some can be
6864 changed by a user.
6865 </desc>
6866
6867 <attribute name="minGuestRAM" type="unsigned long" readonly="yes">
6868 <desc>Minimum guest system memory in Megabytes.</desc>
6869 </attribute>
6870
6871 <attribute name="maxGuestRAM" type="unsigned long" readonly="yes">
6872 <desc>Maximum guest system memory in Megabytes.</desc>
6873 </attribute>
6874
6875 <attribute name="minGuestVRAM" type="unsigned long" readonly="yes">
6876 <desc>Minimum guest video memory in Megabytes.</desc>
6877 </attribute>
6878
6879 <attribute name="maxGuestVRAM" type="unsigned long" readonly="yes">
6880 <desc>Maximum guest video memory in Megabytes.</desc>
6881 </attribute>
6882
6883 <attribute name="minGuestCPUCount" type="unsigned long" readonly="yes">
6884 <desc>Minimum CPU count.</desc>
6885 </attribute>
6886
6887 <attribute name="maxGuestCPUCount" type="unsigned long" readonly="yes">
6888 <desc>Maximum CPU count.</desc>
6889 </attribute>
6890
6891 <attribute name="maxVDISize" type="unsigned long long" readonly="yes">
6892 <desc>Maximum size of a virtual disk image in Megabytes.</desc>
6893 </attribute>
6894
6895 <attribute name="networkAdapterCount" type="unsigned long" readonly="yes">
6896 <desc>
6897 Number of network adapters associated with every
6898 <link to="IMachine"/> instance.
6899 </desc>
6900 </attribute>
6901
6902 <attribute name="serialPortCount" type="unsigned long" readonly="yes">
6903 <desc>
6904 Number of serial ports associated with every
6905 <link to="IMachine"/> instance.
6906 </desc>
6907 </attribute>
6908
6909 <attribute name="parallelPortCount" type="unsigned long" readonly="yes">
6910 <desc>
6911 Number of parallel ports associated with every
6912 <link to="IMachine"/> instance.
6913 </desc>
6914 </attribute>
6915
6916 <attribute name="maxBootPosition" type="unsigned long" readonly="yes">
6917 <desc>
6918 Maximum device position in the boot order. This value corresponds
6919 to the total number of devices a machine can boot from, to make it
6920 possible to include all possible devices to the boot list.
6921 <see><link to="IMachine::setBootOrder"/></see>
6922 </desc>
6923 </attribute>
6924
6925 <attribute name="defaultMachineFolder" type="wstring">
6926 <desc>
6927 Full path to the default directory used to create new or open
6928 existing machines when a settings file name contains no
6929 path.
6930
6931 The initial value of this property is
6932 <tt>&lt;</tt><link to="IVirtualBox::homeFolder">
6933 VirtualBox_home</link><tt>&gt;/Machines</tt>.
6934
6935 <note>
6936 Setting this property to <tt>null</tt> will restore the
6937 initial value.
6938 </note>
6939 <note>
6940 When settings this property, the specified path can be
6941 absolute (full path) or relative
6942 to the <link to="IVirtualBox::homeFolder">
6943 VirtualBox home directory</link>.
6944 When reading this property, a full path is
6945 always returned.
6946 </note>
6947 <note>
6948 The specified path may not exist, it will be created
6949 when necessary.
6950 </note>
6951
6952 <see>
6953 <link to="IVirtualBox::createMachine"/>,
6954 <link to="IVirtualBox::openMachine"/>
6955 </see>
6956 </desc>
6957 </attribute>
6958
6959 <attribute name="defaultHardDiskFolder" type="wstring">
6960 <desc>
6961 Full path to the default directory used to create new or open existing
6962 virtual disks.
6963
6964 This path is used when the storage unit of a hard disk is a regular file
6965 in the host's file system and only a file name that contains no path is
6966 given.
6967
6968 The initial value of this property is
6969 <tt>&lt;</tt>
6970 <link to="IVirtualBox::homeFolder">VirtualBox_home</link>
6971 <tt>&gt;/HardDisks</tt>.
6972
6973 <note>
6974 Setting this property to <tt>null</tt> will restore the
6975 initial value.
6976 </note>
6977 <note>
6978 When settings this property, the specified path can be relative
6979 to the
6980 <link to="IVirtualBox::homeFolder">VirtualBox home directory</link> or
6981 absolute. When reading this property, a full path is
6982 always returned.
6983 </note>
6984 <note>
6985 The specified path may not exist, it will be created
6986 when necessary.
6987 </note>
6988
6989 <see>
6990 IHardDisk,
6991 <link to="IVirtualBox::createHardDisk"/>,
6992 <link to="IVirtualBox::openHardDisk"/>,
6993 <link to="IMedium::location"/>
6994 </see>
6995 </desc>
6996 </attribute>
6997
6998 <attribute name="hardDiskFormats" type="IHardDiskFormat" safearray="yes" readonly="yes">
6999 <desc>
7000 List of all hard disk storage formats supported by this VirtualBox
7001 installation.
7002
7003 Keep in mind that the hard disk format identifier
7004 (<link to="IHardDiskFormat::id"/>) used in other API calls like
7005 <link to="IVirtualBox::createHardDisk"/> to refer to a particular
7006 hard disk format is a case-insensitive string. This means that, for
7007 example, all of the following strings:
7008 <pre>
7009 "VDI"
7010 "vdi"
7011 "VdI"</pre>
7012 refer to the same hard disk format.
7013
7014 Note that the virtual hard disk framework is backend-based, therefore
7015 the list of supported formats depends on what backends are currently
7016 installed.
7017
7018 <see>
7019 <link to="IHardDiskFormat"/>,
7020 </see>
7021 </desc>
7022 </attribute>
7023
7024 <attribute name="defaultHardDiskFormat" type="wstring">
7025 <desc>
7026 Identifier of the default hard disk format used by VirtualBox.
7027
7028 The hard disk format set by this attribute is used by VirtualBox
7029 when the hard disk format was not specified explicitly. One example is
7030 <link to="IVirtualBox::createHardDisk"/> with the <tt>null</tt>
7031 format argument. A more complex example is implicit creation of
7032 differencing hard disks when taking a snapshot of a virtual machine:
7033 this operation will try to use a format of the parent hard disk first
7034 and if this format does not support differencing hard disks the default
7035 format specified by this argument will be used.
7036
7037 The list of supported hard disk formats may be obtained by the
7038 <link to="#hardDiskFormats"/> call. Note that the default hard disk
7039 format must have a capability to create differencing hard disks;
7040 otherwise opeartions that create hard disks implicitly may fail
7041 unexpectedly.
7042
7043 The initial value of this property is <tt>VDI</tt> in the current
7044 version of the VirtualBox product, but may change in the future.
7045
7046 <note>
7047 Setting this property to <tt>null</tt> will restore the
7048 initial value.
7049 </note>
7050
7051 <see>
7052 <link to="#hardDiskFormats"/>,
7053 <link to="IHardDiskFormat::id"/>,
7054 <link to="IVirtualBox::createHardDisk"/>
7055 </see>
7056 </desc>
7057 </attribute>
7058
7059 <attribute name="remoteDisplayAuthLibrary" type="wstring">
7060 <desc>
7061 Library that provides authentication for VRDP clients. The library
7062 is used if a virtual machine's authentication type is set to "external"
7063 in the VM RemoteDisplay configuration.
7064
7065 The system library extension (".DLL" or ".so") must be omitted.
7066 A full path can be specified; if not, then the library must reside on the
7067 system's default library path.
7068
7069 The default value of this property is <tt>VRDPAuth</tt>. There is a library
7070 of that name in one of the default VirtualBox library directories.
7071
7072 For details about VirtualBox authentication libraries and how to implement
7073 them, please refer to the VirtualBox manual.
7074
7075 <note>
7076 Setting this property to <tt>null</tt> will restore the
7077 initial value.
7078 </note>
7079 </desc>
7080 </attribute>
7081
7082 <attribute name="webServiceAuthLibrary" type="wstring">
7083 <desc>
7084 Library that provides authentication for webservice clients. The library
7085 is used if a virtual machine's authentication type is set to "external"
7086 in the VM RemoteDisplay configuration and will be called from
7087 within the <link to="IWebsessionManager::logon" /> implementation.
7088
7089 As opposed to <link to="ISystemProperties::remoteDisplayAuthLibrary" />,
7090 there is no per-VM setting for this, as the webservice is a global
7091 resource (if it is running). Only for this setting (for the webservice),
7092 setting this value to a literal "null" string disables authentication,
7093 meaning that <link to="IWebsessionManager::logon" /> will always succeed,
7094 no matter what user name and password are supplied.
7095
7096 The initial value of this property is <tt>VRDPAuth</tt>,
7097 meaning that the webservice will use the same authentication
7098 library that is used by default for VBoxVRDP (again, see
7099 <link to="ISystemProperties::remoteDisplayAuthLibrary" />).
7100 The format and calling convention of authentication libraries
7101 is the same for the webservice as it is for VBoxVRDP.
7102
7103 </desc>
7104 </attribute>
7105
7106 <attribute name="HWVirtExEnabled" type="boolean">
7107 <desc>
7108 This specifies the default value for hardware virtualization
7109 extensions. If enabled, virtual machines will make use of
7110 hardware virtualization extensions such as Intel VT-x and
7111 AMD-V by default. This value can be overridden by each VM
7112 using their <link to="IMachine::HWVirtExEnabled" /> property.
7113 </desc>
7114 </attribute>
7115
7116 <attribute name="LogHistoryCount" type="unsigned long">
7117 <desc>
7118 This value specifies how many old release log files are kept.
7119 </desc>
7120 </attribute>
7121 </interface>
7122
7123 <!--
7124 // IGuest
7125 /////////////////////////////////////////////////////////////////////////
7126 -->
7127
7128 <interface
7129 name="IGuestOSType" extends="$unknown"
7130 uuid="cfe9e64c-4430-435b-9e7c-e3d8e417bd58"
7131 wsmap="struct"
7132 >
7133 <desc>
7134 </desc>
7135
7136 <attribute name="familyId" type="wstring" readonly="yes">
7137 <desc>Guest OS family identifier string.</desc>
7138 </attribute>
7139
7140 <attribute name="familyDescription" type="wstring" readonly="yes">
7141 <desc>Human readable description of the guest OS family.</desc>
7142 </attribute>
7143
7144 <attribute name="id" type="wstring" readonly="yes">
7145 <desc>Guest OS identifier string.</desc>
7146 </attribute>
7147
7148 <attribute name="description" type="wstring" readonly="yes">
7149 <desc>Human readable description of the guest OS.</desc>
7150 </attribute>
7151
7152 <attribute name="is64Bit" type="boolean" readonly="yes">
7153 <desc>Returns @c true if the given OS is 64-bit</desc>
7154 </attribute>
7155
7156 <attribute name="recommendedIOAPIC" type="boolean" readonly="yes">
7157 <desc>Returns @c true if IO APIC recommended for this OS type.</desc>
7158 </attribute>
7159
7160 <attribute name="recommendedVirtEx" type="boolean" readonly="yes">
7161 <desc>Returns @c true if VT-x or AMD-V recommended for this OS type.</desc>
7162 </attribute>
7163
7164 <attribute name="recommendedRAM" type="unsigned long" readonly="yes">
7165 <desc>Recommended RAM size in Megabytes.</desc>
7166 </attribute>
7167
7168 <attribute name="recommendedVRAM" type="unsigned long" readonly="yes">
7169 <desc>Recommended video RAM size in Megabytes.</desc>
7170 </attribute>
7171
7172 <attribute name="recommendedHDD" type="unsigned long" readonly="yes">
7173 <desc>Recommended hard disk size in Megabytes.</desc>
7174 </attribute>
7175
7176 <attribute name="adapterType" type="NetworkAdapterType" readonly="yes">
7177 <desc>Returns recommended network adapter for this OS type.</desc>
7178 </attribute>
7179 </interface>
7180
7181 <interface
7182 name="IGuest" extends="$unknown"
7183 uuid="d8556fca-81bc-12af-fca3-365528fa38ca"
7184
7185 wsmap="suppress"
7186 >
7187 <desc>
7188 The IGuest interface represents information about the operating system
7189 running inside the virtual machine. Used in
7190 <link to="IConsole::guest"/>.
7191
7192 IGuest provides information about the guest operating system, whether
7193 Guest Additions are installed and other OS-specific virtual machine
7194 properties.
7195 </desc>
7196
7197 <attribute name="OSTypeId" type="wstring" readonly="yes">
7198 <desc>
7199 Identifier of the Guest OS type as reported by the Guest
7200 Additions.
7201 You may use <link to="IVirtualBox::getGuestOSType"/> to obtain
7202 an IGuestOSType object representing details about the given
7203 Guest OS type.
7204 <note>
7205 If Guest Additions are not installed, this value will be
7206 the same as <link to="IMachine::OSTypeId"/>.
7207 </note>
7208 </desc>
7209 </attribute>
7210
7211 <attribute name="additionsActive" type="boolean" readonly="yes">
7212 <desc>
7213 Flag whether the Guest Additions are installed and active
7214 in which case their version will be returned by the
7215 <link to="#additionsVersion"/> property.
7216 </desc>
7217 </attribute>
7218
7219 <attribute name="additionsVersion" type="wstring" readonly="yes">
7220 <desc>
7221 Version of the Guest Additions (3 decimal numbers separated
7222 by dots) or empty when the Additions are not installed. The
7223 Additions may also report a version but yet not be active as
7224 the version might be refused by VirtualBox (incompatible) or
7225 other failures occurred.
7226 </desc>
7227 </attribute>
7228
7229 <attribute name="supportsSeamless" type="boolean" readonly="yes">
7230 <desc>
7231 Flag whether seamless guest display rendering (seamless desktop
7232 integration) is supported.
7233 </desc>
7234 </attribute>
7235
7236 <attribute name="supportsGraphics" type="boolean" readonly="yes">
7237 <desc>
7238 Flag whether the guest is in graphics mode. If it is not, then
7239 seamless rendering will not work, resize hints are not immediately
7240 acted on and guest display resizes are probably not initiated by
7241 the guest additions.
7242 </desc>
7243 </attribute>
7244
7245 <attribute name="memoryBalloonSize" type="unsigned long">
7246 <desc>Guest system memory balloon size in megabytes.</desc>
7247 </attribute>
7248
7249 <attribute name="statisticsUpdateInterval" type="unsigned long">
7250 <desc>Interval to update guest statistics in seconds.</desc>
7251 </attribute>
7252
7253 <method name="setCredentials">
7254 <desc>
7255 Store login credentials that can be queried by guest operating
7256 systems with Additions installed. The credentials are transient
7257 to the session and the guest may also choose to erase them. Note
7258 that the caller cannot determine whether the guest operating system
7259 has queried or made use of the credentials.
7260
7261 <result name="VBOX_E_VM_ERROR">
7262 VMM device is not available.
7263 </result>
7264
7265 </desc>
7266 <param name="userName" type="wstring" dir="in">
7267 <desc>User name string, can be empty</desc>
7268 </param>
7269 <param name="password" type="wstring" dir="in">
7270 <desc>Password string, can be empty</desc>
7271 </param>
7272 <param name="domain" type="wstring" dir="in">
7273 <desc>Domain name (guest logon scheme specific), can be empty</desc>
7274 </param>
7275 <param name="allowInteractiveLogon" type="boolean" dir="in">
7276 <desc>
7277 Flag whether the guest should alternatively allow the user to
7278 interactively specify different credentials. This flag might
7279 not be supported by all versions of the Additions.
7280 </desc>
7281 </param>
7282 </method>
7283
7284 <method name="getStatistic">
7285 <desc>
7286 Query specified guest statistics as reported by the VirtualBox Additions.
7287 </desc>
7288 <param name="cpuId" type="unsigned long" dir="in">
7289 <desc>Virtual CPU id; not relevant for all statistic types</desc>
7290 </param>
7291 <param name="statistic" type="GuestStatisticType" dir="in">
7292 <desc>Statistic type.</desc>
7293 </param>
7294 <param name="statVal" type="unsigned long" dir="out">
7295 <desc>Statistics value</desc>
7296 </param>
7297 </method>
7298
7299 </interface>
7300
7301
7302 <!--
7303 // IProgress
7304 /////////////////////////////////////////////////////////////////////////
7305 -->
7306
7307 <interface
7308 name="IProgress" extends="$unknown"
7309 uuid="d3aa5417-6103-41fc-9e54-01ee1d08f42f"
7310 wsmap="managed"
7311 >
7312 <desc>
7313 The IProgress interface represents a task progress object that allows
7314 to wait for the completion of some asynchronous task.
7315
7316 The task consists of one or more operations that run sequentially,
7317 one by one. There is an individual percentage of completion of the
7318 current operation and the percentage of completion of the task as a
7319 whole. Similarly, you can wait for the completion of a particular
7320 operation or for the completion of the whole task.
7321
7322 Every operation is identified by a number (starting from 0)
7323 and has a separate description.
7324 </desc>
7325
7326 <attribute name="id" type="uuid" readonly="yes">
7327 <desc>ID of the task.</desc>
7328 </attribute>
7329
7330 <attribute name="description" type="wstring" readonly="yes">
7331 <desc>Description of the task.</desc>
7332 </attribute>
7333
7334 <attribute name="initiator" type="$unknown" readonly="yes">
7335 <desc>Initiator of the task.</desc>
7336 </attribute>
7337
7338 <attribute name="cancelable" type="boolean" readonly="yes">
7339 <desc>Whether the task can be interrupted.</desc>
7340 </attribute>
7341
7342 <attribute name="percent" type="long" readonly="yes">
7343 <desc>
7344 Current task progress value in percent.
7345 This value depends on how many operations are already complete.
7346 </desc>
7347 </attribute>
7348
7349 <attribute name="completed" type="boolean" readonly="yes">
7350 <desc>Whether the task has been completed.</desc>
7351 </attribute>
7352
7353 <attribute name="canceled" type="boolean" readonly="yes">
7354 <desc>Whether the task has been canceled.</desc>
7355 </attribute>
7356
7357 <attribute name="resultCode" type="result" readonly="yes">
7358 <desc>
7359 Result code of the progress task.
7360 Valid only if <link to="#completed"/> is true.
7361 </desc>
7362 </attribute>
7363
7364 <attribute name="errorInfo" type="IVirtualBoxErrorInfo" readonly="yes">
7365 <desc>
7366 Extended information about the unsuccessful result of the
7367 progress operation. May be NULL when no extended information
7368 is available.
7369 Valid only if <link to="#completed"/> is true and
7370 <link to="#resultCode"/> indicates a failure.
7371 </desc>
7372 </attribute>
7373
7374 <attribute name="operationCount" type="unsigned long" readonly="yes">
7375 <desc>
7376 Number of operations this task is divided into.
7377 Every task consists of at least one operation.
7378 </desc>
7379 </attribute>
7380
7381 <attribute name="operation" type="unsigned long" readonly="yes">
7382 <desc>Number of the operation being currently executed.</desc>
7383 </attribute>
7384
7385 <attribute name="operationDescription" type="wstring" readonly="yes">
7386 <desc>
7387 Description of the operation being currently executed.
7388 </desc>
7389 </attribute>
7390
7391 <attribute name="operationPercent" type="long" readonly="yes">
7392 <desc>Current operation progress value in percent.</desc>
7393 </attribute>
7394
7395 <method name="waitForCompletion">
7396 <desc>
7397 Waits until the task is done (including all operations) with a
7398 given timeout.
7399
7400 <result name="VBOX_E_IPRT_ERROR">
7401 Failed to wait for task completion.
7402 </result>
7403
7404 </desc>
7405 <param name="timeout" type="long" dir="in">
7406 <desc>
7407 Timeout value in milliseconds.
7408 Specify -1 for an indefinite wait.
7409 </desc>
7410 </param>
7411 </method>
7412
7413 <method name="waitForOperationCompletion">
7414 <desc>
7415 Waits until the given operation is done with a given timeout.
7416
7417 <result name="VBOX_E_IPRT_ERROR">
7418 Failed to wait for operation completion.
7419 </result>
7420
7421 </desc>
7422 <param name="operation" type="unsigned long" dir="in">
7423 <desc>
7424 Number of the operation to wait for.
7425 Must be less than <link to="#operationCount"/>.
7426 </desc>
7427 </param>
7428 <param name="timeout" type="long" dir="in">
7429 <desc>
7430 Timeout value in milliseconds.
7431 Specify -1 for an indefinite wait.
7432 </desc>
7433 </param>
7434 </method>
7435
7436 <method name="cancel">
7437 <desc>
7438 Cancels the task.
7439 <note>
7440 If <link to="#cancelable"/> is <tt>false</tt>, then
7441 this method will fail.
7442 </note>
7443
7444 <result name="VBOX_E_INVALID_OBJECT_STATE">
7445 Operation cannot be canceled.
7446 </result>
7447
7448 </desc>
7449 </method>
7450
7451 </interface>
7452
7453
7454 <!--
7455 // ISnapshot
7456 /////////////////////////////////////////////////////////////////////////
7457 -->
7458
7459 <interface
7460 name="ISnapshot" extends="$unknown"
7461 uuid="5db6b1d9-c76b-4424-a6f4-8257f642d6ea"
7462 wsmap="managed"
7463 >
7464 <desc>
7465 The ISnapshot interface represents a snapshot of the virtual
7466 machine.
7467
7468 The <i>snapshot</i> stores all the information about a virtual
7469 machine necessary to bring it to exactly the same state as it was at
7470 the time of taking the snapshot. The snapshot includes:
7471
7472 <ul>
7473 <li>all settings of the virtual machine (i.e. its hardware
7474 configuration: RAM size, attached hard disks, etc.)
7475 </li>
7476 <li>the execution state of the virtual machine (memory contents,
7477 CPU state, etc.).
7478 </li>
7479 </ul>
7480
7481 Snapshots can be <i>offline</i> (taken when the VM is powered off)
7482 or <i>online</i> (taken when the VM is running). The execution
7483 state of the offline snapshot is called a <i>zero execution state</i>
7484 (it doesn't actually contain any information about memory contents
7485 or the CPU state, assuming that all hardware is just powered off).
7486
7487 <h3>Snapshot branches</h3>
7488
7489 Snapshots can be chained. Chained snapshots form a branch where
7490 every next snapshot is based on the previous one. This chaining is
7491 mostly related to hard disk branching (see <link to="IHardDisk"/>
7492 description). This means that every time a new snapshot is created,
7493 a new differencing hard disk is implicitly created for all normal
7494 hard disks attached to the given virtual machine. This allows to
7495 fully restore hard disk contents when the machine is later reverted
7496 to a particular snapshot.
7497
7498 In the current implementation, multiple snapshot branches within one
7499 virtual machine are not allowed. Every machine has a single branch,
7500 and <link to="IConsole::takeSnapshot"/> operation adds a new
7501 snapshot to the top of that branch.
7502
7503 Existing snapshots can be discarded using
7504 <link to="IConsole::discardSnapshot"/>.
7505
7506 <h3>Current snapshot</h3>
7507
7508 Every virtual machine has a current snapshot, identified by
7509 <link to="IMachine::currentSnapshot"/>. This snapshot is used as
7510 a base for the <i>current machine state</i> (see below), to the effect
7511 that all normal hard disks of the machine and its execution
7512 state are based on this snapshot.
7513
7514 In the current implementation, the current snapshot is always the
7515 last taken snapshot (i.e. the head snapshot on the branch) and it
7516 cannot be changed.
7517
7518 The current snapshot is <tt>null</tt> if the machine doesn't have
7519 snapshots at all; in this case the current machine state is just
7520 current settings of this machine plus its current execution state.
7521
7522 <h3>Current machine state</h3>
7523
7524 The current machine state is what represented by IMachine instances got
7525 directly from IVirtualBox
7526 using <link
7527 to="IVirtualBox::getMachine">getMachine()</link>, <link
7528 to="IVirtualBox::findMachine">findMachine()</link>, etc. (as opposed
7529 to instances returned by <link to="ISnapshot::machine"/>). This state
7530 is always used when the machine is <link to="IConsole::powerUp"> powered
7531 on</link>.
7532
7533 The current machine state also includes the current execution state.
7534 If the machine is being currently executed
7535 (<link to="IMachine::state"/> is <link to="MachineState_Running"/>
7536 and above), its execution state is just what's happening now.
7537 If it is powered off (<link to="MachineState_PoweredOff"/> or
7538 <link to="MachineState_Aborted"/>), it has a zero execution state.
7539 If the machine is saved (<link to="MachineState_Saved"/>), its
7540 execution state is what saved in the execution state file
7541 (<link to="IMachine::stateFilePath"/>).
7542
7543 If the machine is in the saved state, then, next time it is powered
7544 on, its execution state will be fully restored from the saved state
7545 file and the execution will continue from the point where the state
7546 was saved.
7547
7548 Similarly to snapshots, the current machine state can be discarded
7549 using <link to="IConsole::discardCurrentState"/>.
7550
7551 <h3>Taking and discarding snapshots</h3>
7552
7553 The table below briefly explains the meaning of every snapshot
7554 operation:
7555
7556 <table>
7557 <tr><th>Operation</th><th>Meaning</th><th>Remarks</th></tr>
7558
7559 <tr><td><link to="IConsole::takeSnapshot"/></td>
7560
7561 <td>Save the current state of the virtual machine, including all
7562 settings, contents of normal hard disks and the current modifications
7563 to immutable hard disks (for online snapshots)</td>
7564
7565 <td>The current state is not changed (the machine will continue
7566 execution if it is being executed when the snapshot is
7567 taken)</td></tr>
7568
7569 <tr><td><link to="IConsole::discardSnapshot"/></td>
7570
7571 <td>Forget the state of the virtual machine stored in the snapshot:
7572 dismiss all saved settings and delete the saved execution state (for
7573 online snapshots)</td>
7574
7575 <td>Other snapshots (including child snapshots, if any) and the
7576 current state are not directly affected</td></tr>
7577
7578 <tr><td><link to="IConsole::discardCurrentState"/></td>
7579
7580 <td>Restore the current state of the virtual machine from the state
7581 stored in the current snapshot, including all settings and hard disk
7582 contents</td>
7583
7584 <td>The current state of the machine existed prior to this operation
7585 is lost</td></tr>
7586
7587 <tr><td><link to="IConsole::discardCurrentSnapshotAndState"/></td>
7588
7589 <td>Completely revert the virtual machine to the state it was in
7590 before the current snapshot has been taken</td>
7591
7592 <td>The current state, as well as the current snapshot, are
7593 lost</td></tr>
7594
7595 </table>
7596
7597 </desc>
7598
7599 <attribute name="id" type="uuid" readonly="yes">
7600 <desc>UUID of the snapshot.</desc>
7601 </attribute>
7602
7603 <attribute name="name" type="wstring">
7604 <desc>Short name of the snapshot.</desc>
7605 </attribute>
7606
7607 <attribute name="description" type="wstring">
7608 <desc>Optional description of the snapshot.</desc>
7609 </attribute>
7610
7611 <attribute name="timeStamp" type="long long" readonly="yes">
7612 <desc>
7613 Time stamp of the snapshot, in milliseconds since 1970-01-01 UTC.
7614 </desc>
7615 </attribute>
7616
7617 <attribute name="online" type="boolean" readonly="yes">
7618 <desc>
7619 <tt>true</tt> if this snapshot is an online snapshot and
7620 <tt>false</tt> otherwise.
7621
7622 <note>
7623 When this attribute is <tt>true</tt>, the
7624 <link to="IMachine::stateFilePath"/> attribute of the
7625 <link to="#machine"/> object associated with this snapshot
7626 will point to the saved state file. Otherwise, it will be
7627 <tt>null</tt>.
7628 </note>
7629 </desc>
7630 </attribute>
7631
7632 <attribute name="machine" type="IMachine" readonly="yes">
7633 <desc>
7634 Virtual machine this snapshot is taken on. This object
7635 stores all settings the machine had when taking this snapshot.
7636 <note>
7637 The returned machine object is immutable, i.e. no
7638 any settings can be changed.
7639 </note>
7640 </desc>
7641 </attribute>
7642
7643 <attribute name="parent" type="ISnapshot" readonly="yes">
7644 <desc>
7645 Parent snapshot (a snapshot this one is based on).
7646 <note>
7647 It's not an error to read this attribute on a snapshot
7648 that doesn't have a parent -- a null object will be
7649 returned to indicate this.
7650 </note>
7651 </desc>
7652 </attribute>
7653
7654 <attribute name="children" type="ISnapshot" readonly="yes" safearray="yes">
7655 <desc>
7656 Child snapshots (all snapshots having this one as a parent).
7657 <note>
7658 In the current implementation, there can be only one
7659 child snapshot, or no children at all, meaning this is the
7660 last (head) snapshot.
7661 </note>
7662 </desc>
7663 </attribute>
7664
7665 </interface>
7666
7667
7668 <!--
7669 // IMedia
7670 /////////////////////////////////////////////////////////////////////////
7671 -->
7672
7673 <enum
7674 name="MediaState"
7675 uuid="8b86e03c-2f1c-412a-8fbd-326f62701200"
7676 >
7677 <desc>
7678 Virtual media state.
7679 <see>IMedia</see>
7680 </desc>
7681
7682 <const name="NotCreated" value="0">
7683 <desc>
7684 Associated media storage does not exist (either was not created yet or
7685 was deleted).
7686 </desc>
7687 </const>
7688 <const name="Created" value="1">
7689 <desc>
7690 Associated storage exists and accessible.
7691 </desc>
7692 </const>
7693 <const name="LockedRead" value="2">
7694 <desc>
7695 Media is locked for reading, no data modification is possible.
7696 </desc>
7697 </const>
7698 <const name="LockedWrite" value="3">
7699 <desc>
7700 Media is locked for writing, no concurrent data reading or modification
7701 is possible.
7702 </desc>
7703 </const>
7704 <const name="Inaccessible" value="4">
7705 <desc>
7706 Associated media storage is not accessible.
7707 </desc>
7708 </const>
7709 <const name="Creating" value="5">
7710 <desc>
7711 Associated media storage is being created.
7712 </desc>
7713 </const>
7714 <const name="Deleting" value="6">
7715 <desc>
7716 Associated media storage is being deleted.
7717 </desc>
7718 </const>
7719 </enum>
7720
7721 <interface
7722 name="IMedium" extends="$unknown"
7723 uuid="a7fb3bfb-c180-4274-bae4-7fbc89046e13"
7724 wsmap="managed"
7725 >
7726 <desc>
7727 The IMedium interface is a common interface for all objects representing
7728 virtual media such as hard disks, DVD images.
7729
7730 Each medium is associated with a storage unit (such as a file on the host
7731 computer or a network resource) that holds actual data. The location of
7732 the storage unit is represented by the #location attribute. The value of
7733 this attribute is media type dependent.
7734
7735 The exact media type may be determined by querying the appropriate
7736 interface such as:
7737 <ul>
7738 <li>IHardDisk (virtual hard disks)</li>
7739 <li>IDVDImage (standard CD/DVD ISO image files)</li>
7740 <li>IFloppyImage (raw floppy image files)</li>
7741 </ul>
7742
7743 Existing media are opened using the following methods, depending on the
7744 media type:
7745 <ul>
7746 <li><link to="IVirtualBox::openHardDisk"/></li>
7747 <li><link to="IVirtualBox::openDVDImage"/></li>
7748 <li><link to="IVirtualBox::openFloppyImage"/></li>
7749 </ul>
7750
7751 New hard disk media are created using the
7752 <link to="IVirtualBox::createHardDisk"/> method. CD/DVD and floppy
7753 images are created outside VirtualBox, usually by storing a copy
7754 of the real medium of the corresponding type in a regular file.
7755
7756 <h3>Known Media</h3>
7757
7758 When an existing medium gets opened for the first time, it gets
7759 automatically remembered by the given VirtualBox installation or, in other
7760 words, becomes a <i>known medium</i>. Known media are stored in the media
7761 registry transparently maintained by VirtualBox and stored in settings
7762 files so that this registry is preserved when VirtualBox is not running.
7763
7764 Newly created virtual hard disks get remembered only when the associated
7765 storage unit is actually created (see IHardDisk for more details).
7766
7767 All known media can be enumerated using
7768 <link to="IVirtualBox::hardDisks"/>,
7769 <link to="IVirtualBox::DVDImages"/> and
7770 <link to="IVirtualBox::floppyImages"/> attributes. Individual media can be
7771 quickly found by UUID using <link to="IVirtualBox::getHardDisk"/>
7772 and similar methods or by location using
7773 <link to="IVirtualBox::findHardDisk"/> and similar methods.
7774
7775 Only known media can be attached to virtual machines.
7776
7777 Removing known media from the media registry is performed when the given
7778 medium is closed using the <link to="#close"/> method or when its
7779 associated storage unit is deleted (only for hard disks).
7780
7781 <h3>Accessibility Checks</h3>
7782
7783 The given medium (with the created storage unit) is considered to be
7784 <i>accessible</i> when its storage unit can be successfully read from.
7785 Accessible media are indicated by the <link to="MediaState_Created"/>
7786 value of the <link to="#state"/> attribute. When the storage unit cannot
7787 be read (for example, because it is located on a disconnected network
7788 resource, or was accidentally deleted outside VirtualBox), the medium is
7789 considered to be <i>inaccessible</i> which is indicated by the
7790 <link to="MediaState_Inaccessible"/> state. The details about the reason
7791 of being inaccessible can be obtained using the
7792 <link to="#lastAccessError"/> attribute.
7793
7794 A new accessibility check is performed each time the <link to="#state"/>
7795 attribute is read. Please note that this check may take long time (several
7796 seconds or even minutes, depending on the storage unit location and
7797 format), and will block the calling thread until finished. For this
7798 reason, it is recommended to never read this attribute on the main UI
7799 thread to avoid making the UI unresponsive.
7800
7801 Note that when VirtualBox starts up (e.g. the VirtualBox object gets
7802 created for the first time), all known media are in the
7803 <link to="MediaState_Inaccessible"/> state but the value of the <link
7804 to="#lastAccessError"/> attribute is <tt>null</tt> because no actual
7805 accessibility check is made on startup. This is done to make the
7806 VirtualBox object ready for serving requests as
7807 fast as possible and let the end-user application decide if it needs to
7808 check media accessibility right away or not.
7809 </desc>
7810
7811 <attribute name="id" type="uuid" readonly="yes">
7812 <desc>
7813 UUID of the medium. For a newly created medium, this value is a randomly
7814 generated UUID.
7815
7816 <note>
7817 For media in one of MediaState_NotCreated, MediaState_Creating or
7818 MediaState_Deleting states, the value of this property is undefined
7819 and will most likely be an empty UUID.
7820 </note>
7821 </desc>
7822 </attribute>
7823
7824 <attribute name="description" type="wstring">
7825 <desc>
7826 Optional description of the medium. For newly created media, the value
7827 of this attribute value is <tt>null</tt>.
7828
7829 Media types that don't support this attribute will return E_NOTIMPL in
7830 attempt to get or set this attribute's value.
7831
7832 <note>
7833 For some storage types, reading this attribute may return an outdated
7834 (last known) value when <link to="#state"/> is <link
7835 to="MediaState_Inaccessible"/> or <link
7836 to="MediaState_LockedWrite"/> because the value of this attribute is
7837 stored within the storage unit itself. Also note that changing the
7838 attribute value is not possible in such case, as well as when the
7839 medium is the <link to="MediaState_LockedRead"/> state.
7840 </note>
7841 </desc>
7842 </attribute>
7843
7844 <attribute name="state" type="MediaState" readonly="yes">
7845 <desc>
7846 Current media state. Inspect <link to="MediaState"/> values for details.
7847
7848 Reading this attribute may take long time because a new accessibility
7849 check of the storage unit is performed every time the attribute is read.
7850 This check may cause a significant delay if the storage unit of the
7851 given medium is, for example, a file located on a network share which is
7852 not currently accessible due to connectivity problems -- the call will
7853 not return until a timeout interval defined by the host OS for this
7854 operation expires.
7855
7856 If the last known state of the medium is <link to="MediaState_Created"/>
7857 and the accessibility check fails then the state would be set to
7858 <link to="MediaState_Inaccessible"/> and <link to="#lastAccessError"/>
7859 may be used to get more details about the failure. If the state of the
7860 medium is <link to="MediaState_LockedRead"/> or
7861 <link to="MediaState_LockedWrite"/> then it remains the same, and a
7862 non-null value of <link to="#lastAccessError"/> will indicate a failed
7863 accessibility check in this case.
7864
7865 Note that not all media states are applicable to certain media types.
7866 For example, states <link to="MediaState_NotCreated"/>,
7867 <link to="MediaState_LockedWrite"/>, <link to="MediaState_Creating"/>,
7868 <link to="MediaState_Deleting"/> are meaningless for IDVDImage and
7869 IFloppyImage media.
7870 </desc>
7871 </attribute>
7872
7873 <attribute name="location" type="wstring">
7874 <desc>
7875 Location of the storage unit holding media data.
7876
7877 The format of the location string is media type specific. For media
7878 types that use regular files in a host's file system, the location
7879 string is just a full file name.
7880
7881 Some media types may support changing the storage unit location by
7882 simply changing the value of this property. If this operation is not
7883 supported, the implementation will return E_NOTIMPL in attempt to set
7884 this attribute's value.
7885
7886 When setting a value of the location attribute which is a regular file
7887 in the host's file system, the given file name may be either relative to
7888 the <link to="IVirtualBox::homeFolder">VirtualBox home folder</link> or
7889 absolute. Note that if the given location specification does not contain
7890 the file extension part then a proper default extension will be
7891 automatically appended by the implementation depending on the media type.
7892 </desc>
7893 </attribute>
7894
7895 <attribute name="name" type="wstring" readonly="yes">
7896 <desc>
7897 Name of the storage unit holding media data.
7898
7899 The returned string is a short version of the <link to="#location"/>
7900 attribute that is suitable for representing the medium in situations
7901 where the full location specification is too long (such as lists
7902 and comboboxes in GUI frontends). This string is also used by frontends
7903 to sort the media list alphabetically when needed.
7904
7905 For example, for locations that are regular files in the host's file
7906 system, the value of this attribute is just a file name (+ extension),
7907 without the path specification.
7908
7909 Note that as opposed to the <link to="#location"/> attribute, the name
7910 attribute will not necessary be unique for a list of media of the
7911 given type and format.
7912 </desc>
7913 </attribute>
7914
7915 <attribute name="size" type="unsigned long long" readonly="yes">
7916 <desc>
7917 Physical size of the storage unit used to hold media data (in bytes).
7918
7919 <note>
7920 For media whose <link to="#state"/> is <link
7921 to="MediaState_Inaccessible"/>, the value of this property is the
7922 last known size. For <link to="MediaState_NotCreated"/> media,
7923 the returned value is zero.
7924 </note>
7925 </desc>
7926 </attribute>
7927
7928 <attribute name="lastAccessError" type="wstring" readonly="yes">
7929 <desc>
7930 Text message that represents the result of the last accessibility
7931 check.
7932
7933 Accessibility checks are performed each time the <link to="#state"/>
7934 attribute is read. A @c null string is returned if the last
7935 accessibility check was successful. A non-null string indicates a
7936 failure and should normally describe a reason of the failure (for
7937 example, a file read error).
7938 </desc>
7939 </attribute>
7940
7941 <attribute name="machineIds" type="uuid" safearray="yes" readonly="yes">
7942 <desc>
7943 Array of UUIDs of all machines this medium is attached to.
7944
7945 A <tt>null</tt> array is returned if this medium is not attached to any
7946 machine or to any machine's snapshot.
7947
7948 <note>
7949 The returned array will include a machine even if this medium is not
7950 attached to that machine in the current state but attached to it in
7951 one of the machine's snapshots. See <link to="#getSnapshotIds"/> for
7952 details.
7953 </note>
7954 </desc>
7955 </attribute>
7956
7957 <method name="getSnapshotIds">
7958 <desc>
7959 Returns an array of UUIDs of all snapshots of the given machine where
7960 this medium is attached to it.
7961
7962 If the medium is attached to the machine in the current state, then the
7963 first element in the array will always be the ID of the queried machine
7964 (i.e. the value equal to the @c machineId argument), followed by
7965 snapshot IDs (if any).
7966
7967 If the medium is not attached to the machine in the current state, then
7968 the array will contain only snapshot IDs.
7969
7970 The returned array may be <tt>null</tt> if this medium is not attached
7971 to the given machine at all, neither in the current state nor in one of
7972 snapshots.
7973 </desc>
7974 <param name="machineId" type="uuid" dir="in">
7975 <desc>
7976 UUID of the machine to query.
7977 </desc>
7978 </param>
7979 <param name="snapshotIds" type="uuid" safearray="yes" dir="return">
7980 <desc>
7981 Array of snapshot UUIDs of the given machine using this medium.
7982 </desc>
7983 </param>
7984 </method>
7985
7986 <method name="lockRead">
7987 <desc>
7988 Locks this medium for reading.
7989
7990 The read lock is shared: many clients can simultaneously lock the
7991 same media for reading unless it is already locked for writing (see
7992 <link to="#lockWrite"/>) in which case an error is returned.
7993
7994 When the medium is locked for reading, it cannot be modified
7995 from within VirtualBox. This means that any method that changes
7996 the properties of this medium or contents of the storage unit
7997 will return an error (unless explicitly stated otherwise) and
7998 that an attempt to start a virtual machine that wants to modify
7999 the medium will also fail.
8000
8001 When the virtual machine is started up, it locks for reading all
8002 media it uses in read-only mode. If some media cannot be locked
8003 for reading, the startup procedure will fail.
8004
8005 The medium locked for reading must be unlocked using the <link
8006 to="#unlockRead"/> method. Calls to <link to="#lockRead"/>
8007 can be nested and must be followed by the same number of paired
8008 <link to="#unlockRead"/> calls.
8009
8010 This method sets the media state to <link
8011 to="MediaState_LockedRead"/> on success. The state prior to
8012 this call must be <link to="MediaState_Created"/>, <link
8013 to="MediaState_Inaccessible"/> or <link
8014 to="MediaState_LockedRead"/>. As you can see, inaccessible
8015 media can be locked too. This is not an error; this method
8016 performs a logical lock that prevents modifications of this
8017 media through the VirtualBox API, not a physical lock of the
8018 underlying storage unit.
8019
8020 This method returns the current state of the medium
8021 <b>before</b> the operation.
8022
8023 <result name="VBOX_E_INVALID_OBJECT_STATE">
8024 Invalid media state (e.g. not created, locked, inaccessible,
8025 creating, deleting).
8026 </result>
8027
8028 </desc>
8029 <param name="state" type="MediaState" dir="return">
8030 <desc>
8031 State of the medium after the operation.
8032 </desc>
8033 </param>
8034 </method>
8035
8036 <method name="unlockRead">
8037 <desc>
8038 Cancels the read lock previously set by <link to="#lockRead"/>.
8039
8040 Either on success or on failure, this method returns the current state
8041 of the medium <b>after</b> the operation.
8042
8043 See <link to="#lockRead"/> for more details.
8044
8045 <result name="VBOX_E_INVALID_OBJECT_STATE">
8046 Medium not locked for reading.
8047 </result>
8048
8049 </desc>
8050 <param name="state" type="MediaState" dir="return">
8051 <desc>
8052 State of the medium after the operation.
8053 </desc>
8054 </param>
8055 </method>
8056
8057 <method name="lockWrite">
8058 <desc>
8059 Locks this medium for writing.
8060
8061 The write lock, as opposed to <link to="#lockRead"/>, is
8062 exclusive: there may be only one client that holds a write lock
8063 and there may be no read locks while the write lock is held.
8064
8065 When the medium is locked for writing, it cannot be modified
8066 from within VirtualBox and it is not guaranteed that the values
8067 of its properties are up-to-date. Any method that changes the
8068 properties of this medium or contents of the storage unit will
8069 return an error ((unless explicitly stated otherwise) and an
8070 attempt to start a virtual machine that wants to modify or to
8071 read the medium will also fail.
8072
8073 When the virtual machine is started up, it locks for writing all
8074 media it uses to write data to. If some media cannot be locked
8075 for writing, the startup procedure will fail.
8076
8077 The medium locked for writing must be unlocked using the <link
8078 to="#unlockWrite"/> method. Calls to <link to="#lockWrite"/>
8079 can <b>not</b> be nested and must be followed by a paired <link
8080 to="#unlockWrite"/> call.
8081
8082 This method sets the media state to <link
8083 to="MediaState_LockedWrite"/> on success. The state prior to
8084 this call must be <link to="MediaState_Created"/> or <link
8085 to="MediaState_Inaccessible"/>. As you can see, inaccessible
8086 media can be locked too. This is not an error; this method
8087 performs a logical lock that prevents modifications of this
8088 media through the VirtualBox API, not a physical lock of the
8089 underlying storage unit.
8090
8091 Either on success or on failure, this method returns the current
8092 state of the medium <b>before</b> the operation.
8093
8094 <result name="VBOX_E_INVALID_OBJECT_STATE">
8095 Invalid media state (e.g. not created, locked, inaccessible,
8096 creating, deleting).
8097 </result>
8098
8099 </desc>
8100 <param name="state" type="MediaState" dir="return">
8101 <desc>
8102 State of the medium after the operation.
8103 </desc>
8104 </param>
8105 </method>
8106
8107 <method name="unlockWrite">
8108 <desc>
8109 Cancels the write lock previously set by <link to="#lockWrite"/>.
8110
8111 Either on success or on failure, this method returns the current
8112 state of the medium <b>after</b> the operation.
8113
8114 See <link to="#lockWrite"/> for more details.
8115
8116 <result name="VBOX_E_INVALID_OBJECT_STATE">
8117 Medium not locked for writing.
8118 </result>
8119
8120 </desc>
8121 <param name="state" type="MediaState" dir="return">
8122 <desc>
8123 State of the medium after the operation.
8124 </desc>
8125 </param>
8126 </method>
8127
8128 <method name="close">
8129 <desc>
8130 Closes this medium.
8131
8132 The hard disk must not be attached to any known virtual machine
8133 and must not have any known child hard disks, otherwise the
8134 operation will fail.
8135
8136 When the hard disk is successfully closed, it gets removed from
8137 the list of remembered hard disks, but its storage unit is not
8138 deleted. In particular, this means that this hard disk can be
8139 later opened again using the <link
8140 to="IVirtualBox::openHardDisk"/> call.
8141
8142 Note that after this method successfully returns, the given hard
8143 disk object becomes uninitialized. This means that any attempt
8144 to call any of its methods or attributes will fail with the
8145 <tt>"Object not ready" (E_ACCESSDENIED)</tt> error.
8146
8147 <result name="VBOX_E_INVALID_OBJECT_STATE">
8148 Invalid media state (other than not created, created or
8149 inaccessible).
8150 </result>
8151 <result name="VBOX_E_OBJECT_IN_USE">
8152 Medium attached to virtual machine.
8153 </result>
8154 <result name="VBOX_E_FILE_ERROR">
8155 Settings file not accessible.
8156 </result>
8157 <result name="VBOX_E_XML_ERROR">
8158 Could not parse the settings file.
8159 </result>
8160
8161 </desc>
8162 </method>
8163
8164 </interface>
8165
8166
8167 <!--
8168 // IHardDisk
8169 /////////////////////////////////////////////////////////////////////////
8170 -->
8171
8172 <enum
8173 name="HardDiskType"
8174 uuid="a348fafd-a64e-4643-ba65-eb3896bd7e0a"
8175 >
8176 <desc>
8177 Virtual hard disk type.
8178 <see>IHardDisk</see>
8179 </desc>
8180
8181 <const name="Normal" value="0">
8182 <desc>
8183 Normal hard disk (attached directly or indirectly, preserved
8184 when taking snapshots).
8185 </desc>
8186 </const>
8187 <const name="Immutable" value="1">
8188 <desc>
8189 Immutable hard disk (attached indirectly, changes are wiped out
8190 after powering off the virtual machine).
8191 </desc>
8192 </const>
8193 <const name="Writethrough" value="2">
8194 <desc>
8195 Write through hard disk (attached directly, ignored when
8196 taking snapshots).
8197 </desc>
8198 </const>
8199 </enum>
8200
8201 <interface
8202 name="IHardDiskAttachment" extends="$unknown"
8203 uuid="b1dd04bb-93c0-4ad3-a9cf-82316e595836"
8204 wsmap="struct"
8205 >
8206 <desc>
8207 The IHardDiskAttachment interface represents a hard disk attachment of a
8208 virtual machine.
8209
8210 Every hard disk attachment specifies a slot of the virtual hard disk
8211 controller and a virtual hard disk attached to this slot.
8212
8213 The array of hard disk attachments is returned by
8214 <link to="IMachine::hardDiskAttachments"/>.
8215
8216 <note>
8217 With the COM API, this is an interface like all the others. With the
8218 webservice, this is mapped to a structure, so querying the attribute
8219 will not return an object, but a complete structure.
8220 </note>
8221 </desc>
8222 <attribute name="hardDisk" type="IHardDisk" readonly="yes">
8223 <desc>Hard disk object associated with this attachment.</desc>
8224 </attribute>
8225
8226 <attribute name="bus" type="StorageBus" readonly="yes">
8227 <desc>Interface bus of this attachment.</desc>
8228 </attribute>
8229
8230 <attribute name="channel" type="long" readonly="yes">
8231 <desc>Channel number of this attachment.</desc>
8232 </attribute>
8233
8234 <attribute name="device" type="long" readonly="yes">
8235 <desc>Device slot number of this attachment.</desc>
8236 </attribute>
8237
8238 </interface>
8239
8240 <interface
8241 name="IHardDisk" extends="IMedium"
8242 uuid="244f89fe-1943-464d-baad-2efd73e5d532"
8243 wsmap="managed"
8244 >
8245 <desc>
8246 The IHardDisk interface represents a virtual hard disk drive
8247 used by a virtual machine. This is a subclass of <link to="IMedium" />; see remarks there.
8248
8249 Virtual hard disk objects virtualize the hard disk hardware and look like
8250 regular hard disks for the guest OS running inside the virtual machine.
8251
8252 <h3>Hard Disk Types</h3>
8253
8254 There are three types of hard disks:
8255 <link to="HardDiskType_Normal">Normal</link>,
8256 <link to="HardDiskType_Immutable">Immutable</link> and
8257 <link to="HardDiskType_Writethrough">Writethrough</link>. The type of the
8258 hard disk defines how the hard disk is attached to a virtual machine and
8259 what happens when a <link to="ISnapshot">snapshot</link> of the virtual
8260 machine with the attached hard disk is taken. The type of the hard disk is
8261 defined by the <link to="#type"/> attribute.
8262
8263 All hard disks can be also divided in two big groups: <i>base</i> hard
8264 disks and <i>differencing</i> hard disks. A base hard disk contains all
8265 sectors of the hard disk data in its storage unit and therefore can be
8266 used independently. On the contrary, a differencing hard disk contains
8267 only some part of the hard disk data (a subset of sectors) and needs
8268 another hard disk to get access to the missing sectors of data. This
8269 another hard disk is called a <i>parent</i> hard disk and defines a hard
8270 disk to which this differencing hard disk is known to be <i>linked to</i>.
8271 The parent hard disk may be itself a differencing hard disk. This
8272 way, differencing hard disks form a linked hard disk chain. This chain
8273 always ends with the base hard disk which is sometimes referred to as the
8274 root hard disk of this chain. Note that several differencing hard disks
8275 may be linked to the same parent hard disk. This way, all known hard disks
8276 form a hard disk tree which is based on their parent-child relationship.
8277
8278 Differencing hard disks can be distinguished from base hard disks by
8279 querying the <link to="#parent"/> attribute: base hard disks do not have
8280 parents they would depend on, so the value of this attribute is always
8281 <tt>null</tt> for them. Using this attribute, it is possible to walk up
8282 the hard disk tree (from the child hard disk to its parent). It is also
8283 possible to walk down the tree using the <link to="#children"/>
8284 attribute.
8285
8286 Note that the type of all differencing hard disks is
8287 <link to="HardDiskType_Normal">Normal</link>; all other values are
8288 meaningless for them. Base hard disks may be of any type.
8289
8290 <h3>Creating Hard Disks</h3>
8291
8292 New base hard disks are created using
8293 <link to="IVirtualBox::createHardDisk"/>. Existing hard disks are
8294 opened using <link to="IVirtualBox::openHardDisk"/>. Differencing hard
8295 disks are usually implicitly created by VirtualBox when needed but may
8296 also be created explicitly using <link to="#createDiffStorage"/>.
8297
8298 After the hard disk is successfully created (including the storage unit)
8299 or opened, it becomes a known hard disk (remembered in the internal media
8300 registry). Known hard disks can be attached to a virtual machine, accessed
8301 through <link to="IVirtualBox::getHardDisk"/> and
8302 <link to="IVirtualBox::findHardDisk"/> methods or enumerated using the
8303 <link to="IVirtualBox::hardDisks"/> array (only for base hard disks).
8304
8305 The following methods, besides <link to="IMedium::close"/>,
8306 automatically remove the hard disk from the media registry:
8307 <ul>
8308 <li><link to="#deleteStorage"/></li>
8309 <li><link to="#mergeTo"/></li>
8310 </ul>
8311
8312 If the storage unit of the hard disk is a regular file in the host's
8313 file system then the rules stated in the description of the
8314 <link to="IMedium::location"/> attribute apply when setting its value. In
8315 addition, a plain file name without any path may be given, in which case
8316 the <link to="ISystemProperties::defaultHardDiskFolder"> default hard disk
8317 folder</link> will be prepended to it.
8318
8319 <h4>Automatic composition of the file name part</h4>
8320
8321 Another extension to the <link to="IMedium::location"/> attribute is that
8322 there is a possibility to cause VirtualBox to compose a unique value for
8323 the file name part of the location using the UUID of the hard disk. This
8324 applies only to hard disks in <link to="MediaState_NotCreated"/> state,
8325 e.g. before the storage unit is created, and works as follows. You set the
8326 value of the <link to="IMedium::location"/> attribute to a location
8327 specification which only contains the path specification but not the file
8328 name part and ends with either a forward slash or a backslash character.
8329 In response, VirtualBox will generate a new UUID for the hard disk and
8330 compose the file name using the following pattern:
8331 <pre>
8332 &lt;path&gt;/{&lt;uuid&gt;}.&lt;ext&gt;
8333 </pre>
8334 where <tt>&lt;path&gt;</tt> is the supplied path specification,
8335 <tt>&lt;uuid&gt;</tt> is the newly generated UUID and <tt>&lt;ext&gt;</tt>
8336 is the default extension for the storage format of this hard disk. After
8337 that, you may call any of the methods that create a new hard disk storage
8338 unit and they will use the generated UUID and file name.
8339
8340 <h3>Attaching Hard Disks</h3>
8341
8342 Hard disks are attached to virtual machines using the
8343 <link to="IMachine::attachHardDisk"/> method and detached using the
8344 <link to="IMachine::detachHardDisk"/> method. Depending on their
8345 <link to="#type"/>, hard disks are attached either
8346 <i>directly</i> or <i>indirectly</i>.
8347
8348 When a hard disk is being attached directly, it is associated with the
8349 virtual machine and used for hard disk operations when the machine is
8350 running. When a hard disk is being attached indirectly, a new differencing
8351 hard disk linked to it is implicitly created and this differencing hard
8352 disk is associated with the machine and used for hard disk operations.
8353 This also means that if <link to="IMachine::attachHardDisk"/> performs
8354 a direct attachment then the same hard disk will be returned in response
8355 to the subsequent <link to="IMachine::getHardDisk"/> call; however if
8356 an indirect attachment is performed then
8357 <link to="IMachine::getHardDisk"/> will return the implicitly created
8358 differencing hard disk, not the original one passed to <link
8359 to="IMachine::attachHardDisk"/>. The following table shows the
8360 dependency of the attachment type on the hard disk type:
8361
8362 <table>
8363 <tr>
8364 <th>Hard Disk Type</th>
8365 <th>Direct or Indirect?</th>
8366 </tr>
8367 <tr>
8368 <td>Normal (Base)</td>
8369 <td>
8370 Normal base hard disks that do not have children (i.e. differencing
8371 hard disks linked to them) and that are not already attached to
8372 virtual machines in snapshots are attached <b>directly</b>.
8373 Otherwise, they are attached <b>indirectly</b> because having
8374 dependent children or being part of the snapshot makes it impossible
8375 to modify hard disk contents without breaking the integrity of the
8376 dependent party. The <link to="#readOnly"/> attribute allows to
8377 quickly determine the kind of the attachment for the given hard
8378 disk. Note that if a normal base hard disk is to be indirectly
8379 attached to a virtual machine with snapshots then a special
8380 procedure called <i>smart attachment</i> is performed (see below).
8381 </td>
8382 </tr>
8383 <tr>
8384 <td>Normal (Differencing)</td>
8385 <td>
8386 Differencing hard disks are like normal base hard disks: attached
8387 <b>directly</b> if they do not have children and are not attached to
8388 virtual machines in snapshots, and <b>indirectly</b> otherwise. Note
8389 that the smart attachment procedure is never performed for
8390 differencing hard disks.
8391 </td>
8392 </tr>
8393 <tr>
8394 <td>Immutable</td>
8395 <td>
8396 Immutable hard disks are always attached <b>indirectly</b> because
8397 they are designed to be non-writable. If an immutable hard disk is
8398 attached to a virtual machine with snapshots then a special
8399 procedure called smart attachment is performed (see below).
8400 </td>
8401 </tr>
8402 <tr>
8403 <td>Writethrough</td>
8404 <td>
8405 Writethrough hard disks are always attached <b>directly</b>, also as
8406 designed. This also means that writethrough hard disks cannot have
8407 other hard disks linked to them at all.
8408 </td>
8409 </tr>
8410 </table>
8411
8412 Note that the same hard disk, regardless of its type, may be attached to
8413 more than one virtual machine at a time. In this case, the machine that is
8414 started first gains exclusive access to the hard disk and attempts to
8415 start other machines having this hard disk attached will fail until the
8416 first machine is powered down.
8417
8418 Detaching hard disks is performed in a <i>deferred</i> fashion. This means
8419 that the given hard disk remains associated with the given machine after a
8420 successful <link to="IMachine::detachHardDisk"/> call until
8421 <link to="IMachine::saveSettings"/> is called to save all changes to
8422 machine settings to disk. This deferring is necessary to guarantee that
8423 the hard disk configuration may be restored at any time by a call to
8424 <link to="IMachine::discardSettings"/> before the settings
8425 are saved (committed).
8426
8427 Note that if <link to="IMachine::discardSettings"/> is called after
8428 indirectly attaching some hard disks to the machine but before a call to
8429 <link to="IMachine::saveSettings"/> is made, it will implicitly delete
8430 all differencing hard disks implicitly created by
8431 <link to="IMachine::attachHardDisk"/> for these indirect attachments.
8432 Such implicitly created hard disks will also be immediately deleted when
8433 detached explicitly using the <link to="IMachine::detachHardDisk"/>
8434 call if it is made before <link to="IMachine::saveSettings"/>. This
8435 implicit deletion is safe because newly created differencing hard
8436 disks do not contain any user data.
8437
8438 However, keep in mind that detaching differencing hard disks that were
8439 implicitly created by <link to="IMachine::attachHardDisk"/>
8440 before the last <link to="IMachine::saveSettings"/> call will
8441 <b>not</b> implicitly delete them as they may already contain some data
8442 (for example, as a result of virtual machine execution). If these hard
8443 disks are no more necessary, the caller can always delete them explicitly
8444 using <link to="#deleteStorage"/> after they are actually de-associated
8445 from this machine by the <link to="IMachine::saveSettings"/> call.
8446
8447 <h3>Smart Attachment</h3>
8448
8449 When normal base or immutable hard disks are indirectly attached to a
8450 virtual machine then some additional steps are performed to make sure the
8451 virtual machine will have the most recent "view" of the hard disk being
8452 attached. These steps include walking through the machine's snapshots
8453 starting from the current one and going through ancestors up to the first
8454 snapshot. Hard disks attached to the virtual machine in all
8455 of the encountered snapshots are checked whether they are descendants of
8456 the given normal base or immutable hard disk. The first found child (which
8457 is the differencing hard disk) will be used instead of the normal base or
8458 immutable hard disk as a parent for creating a new differencing hard disk
8459 that will be actually attached to the machine. And only if no descendants
8460 are found or if the virtual machine does not have any snapshots then the
8461 normal base or immutable hard disk will be used itself as a parent for
8462 this differencing hard disk.
8463
8464 It is easier to explain what smart attachment does using the
8465 following example:
8466 <pre>
8467BEFORE attaching B.vdi: AFTER attaching B.vdi:
8468
8469Snapshot 1 (B.vdi) Snapshot 1 (B.vdi)
8470 Snapshot 2 (D1->B.vdi) Snapshot 2 (D1->B.vdi)
8471 Snapshot 3 (D2->D1.vdi) Snapshot 3 (D2->D1.vdi)
8472 Snapshot 4 (none) Snapshot 4 (none)
8473 CurState (none) CurState (D3->D2.vdi)
8474
8475 NOT
8476 ...
8477 CurState (D3->B.vdi)
8478 </pre>
8479 The first column is the virtual machine configuration before the base hard
8480 disk <tt>B.vdi</tt> is attached, the second column shows the machine after
8481 this hard disk is attached. Constructs like <tt>D1->B.vdi</tt> and similar
8482 mean that the hard disk that is actually attached to the machine is a
8483 differencing hard disk, <tt>D1.vdi</tt>, which is linked to (based on)
8484 another hard disk, <tt>B.vdi</tt>.
8485
8486 As we can see from the example, the hard disk <tt>B.vdi</tt> was detached
8487 from the machine before taking Snapshot 4. Later, after Snapshot 4 was
8488 taken, the user decides to attach <tt>B.vdi</tt> again. <tt>B.vdi</tt> has
8489 dependent child hard disks (<tt>D1.vdi</tt>, <tt>D2.vdi</tt>), therefore
8490 it cannot be attached directly and needs an indirect attachment (i.e.
8491 implicit creation of a new differencing hard disk). Due to the smart
8492 attachment procedure, the new differencing hard disk
8493 (<tt>D3.vdi</tt>) will be based on <tt>D2.vdi</tt>, not on
8494 <tt>B.vdi</tt> itself, since <tt>D2.vdi</tt> is the most recent view of
8495 <tt>B.vdi</tt> existing for this snapshot branch of the given virtual
8496 machine.
8497
8498 Note that if there is more than one descendant hard disk of the given base
8499 hard disk found in a snapshot, and there is an exact device, channel and
8500 bus match, then this exact match will be used. Otherwise, the youngest
8501 descendant will be picked up.
8502
8503 There is one more important aspect of the smart attachment procedure which
8504 is not related to snapshots at all. Before walking through the snapshots
8505 as described above, the backup copy of the current list of hard disk
8506 attachment is searched for descendants. This backup copy is created when
8507 the hard disk configuration is changed for the first time after the last
8508 <link to="IMachine::saveSettings"/> call and used by
8509 <link to="IMachine::discardSettings"/> to undo the recent hard disk
8510 changes. When such a descendant is found in this backup copy, it will be
8511 simply re-attached back, without creating a new differencing hard disk for
8512 it. This optimization is necessary to make it possible to re-attach the
8513 base or immutable hard disk to a different bus, channel or device slot
8514 without losing the contents of the differencing hard disk actually
8515 attached to the machine in place of it.
8516 </desc>
8517
8518 <attribute name="format" type="wstring" readonly="yes">
8519 <desc>
8520 Storage format of this hard disk.
8521
8522 The value of this attribute is a string that specifies a backend used to
8523 store hard disk data. The storage format is defined when you create a
8524 new hard disk or automatically detected when you open an existing hard
8525 disk medium, and cannot be changed later.
8526
8527 The list of all storage formats supported by this VirtualBox
8528 installation can be obtained using
8529 <link to="ISystemProperties::hardDiskFormats"/>.
8530 </desc>
8531 </attribute>
8532
8533 <attribute name="type" type="HardDiskType">
8534 <desc>
8535 Type (role) of this hard disk.
8536
8537 The following constraints apply when changing the value of this
8538 attribute:
8539 <ul>
8540 <li>If a hard disk is attached to a virtual machine (either in the
8541 current state or in one of the snapshots), its type cannot be
8542 changed.
8543 </li>
8544 <li>As long as the hard disk has children, its type cannot be set
8545 to <link to="HardDiskType_Writethrough"/>.
8546 </li>
8547 <li>The type of all differencing hard disks is
8548 <link to="HardDiskType_Normal"/> and cannot be changed.
8549 </li>
8550 </ul>
8551
8552 The type of a newly created or opened hard disk is set to
8553 <link to="HardDiskType_Normal"/>.
8554 </desc>
8555 </attribute>
8556
8557 <attribute name="parent" type="IHardDisk" readonly="yes">
8558 <desc>
8559 Parent of this hard disk (a hard disk this hard disk is directly based
8560 on).
8561
8562 Only differencing hard disks have parents. For base (non-differencing)
8563 hard disks, <tt>null</tt> is returned.
8564 </desc>
8565 </attribute>
8566
8567 <attribute name="children" type="IHardDisk" safearray="yes" readonly="yes">
8568 <desc>
8569 Children of this hard disk (all differencing hard disks directly based
8570 on this hard disk). A <tt>null</tt> array is returned if this hard disk
8571 does not have any children.
8572 </desc>
8573 </attribute>
8574
8575 <attribute name="root" type="IHardDisk" readonly="yes">
8576 <desc>
8577 Root hard disk of this hard disk.
8578
8579 If this is a differencing hard disk, its root hard disk is the base hard
8580 disk the given hard disk branch starts from. For all other types of hard
8581 disks, this property returns the hard disk object itself (i.e. the same
8582 object this property is read on).
8583 </desc>
8584 </attribute>
8585
8586 <attribute name="readOnly" type="boolean" readonly="yes">
8587 <desc>
8588 Returns <tt>true</tt> if this hard disk is read-only and <tt>false</tt>
8589 otherwise.
8590
8591 A hard disk is considered to be read-only when its contents cannot be
8592 modified without breaking the integrity of other parties that depend on
8593 this hard disk such as its child hard disks or snapshots of virtual
8594 machines where this hard disk is attached to these machines. If there
8595 are no children and no such snapshots then there is no dependency and
8596 the hard disk is not read-only.
8597
8598 The value of this attribute can be used to determine the kind of the
8599 attachment that will take place when attaching this hard disk to a
8600 virtual machine. If the value is <tt>false</tt> then the hard disk will
8601 be attached directly. If the value is <tt>true</tt> then the hard disk
8602 will be attached indirectly by creating a new differencing child hard
8603 disk for that. See the interface description for more information.
8604
8605 Note that all <link to="HardDiskType_Immutable">Immutable</link> hard
8606 disks are always read-only while all
8607 <link to="HardDiskType_Writethrough">Writethrough</link> hard disks are
8608 always not.
8609
8610 <note>
8611 The read-only condition represented by this attribute is related to
8612 the hard disk type and usage, not to the current
8613 <link to="IMedium::state">media state</link> and not to the read-only
8614 state of the storage unit.
8615 </note>
8616 </desc>
8617 </attribute>
8618
8619 <attribute name="logicalSize" type="unsigned long long" readonly="yes">
8620 <desc>
8621 Logical size of this hard disk (in megabytes), as reported to the
8622 guest OS running inside the virtual machine this disk is
8623 attached to. The logical size is defined when the hard disk is created
8624 and cannot be changed later.
8625
8626 <note>
8627 Reading this property on a differencing hard disk will return the size
8628 of its <link to="#root"/> hard disk.
8629 </note>
8630 <note>
8631 For hard disks whose state is <link to="#state"/> is <link
8632 to="MediaState_Inaccessible"/>, the value of this property is the
8633 last known logical size. For <link to="MediaState_NotCreated"/> hard
8634 disks, the returned value is zero.
8635 </note>
8636 </desc>
8637 </attribute>
8638
8639 <!-- storage methods -->
8640
8641 <method name="getProperty">
8642 <desc>
8643 Returns the value of the custom hard disk property with the given name.
8644
8645 The list of all properties supported by the given hard disk format can
8646 be obtained with <link to="IHardDiskFormat::describeProperties"/>.
8647
8648 Note that if this method returns a <tt>null</tt> @a value, the requested
8649 property is supported but currently not assigned any value.
8650
8651 <result name="VBOX_E_OBJECT_NOT_FOUND">
8652 Requested property does not exist (not supported by the format).
8653 </result>
8654 <result name="E_INVALIDARG">@a name is NULL or empty.</result>
8655 </desc>
8656 <param name="name" type="wstring" dir="in">
8657 <desc>Name of the property to get.</desc>
8658 </param>
8659 <param name="value" type="wstring" dir="return">
8660 <desc>Current property value.</desc>
8661 </param>
8662 </method>
8663
8664 <method name="setProperty">
8665 <desc>
8666 Sets the value of the custom hard disk property with the given name.
8667
8668 The list of all properties supported by the given hard disk format can
8669 be obtained with <link to="IHardDiskFormat::describeProperties"/>.
8670
8671 Note that setting the property value to <tt>null</tt> is equivalent to
8672 deleting the existing value. A default value (if it is defined for this
8673 property) will be used by the format backend in this case.
8674
8675 <result name="VBOX_E_OBJECT_NOT_FOUND">
8676 Requested property does not exist (not supported by the format).
8677 </result>
8678 <result name="E_INVALIDARG">@a name is NULL or empty.</result>
8679 </desc>
8680 <param name="name" type="wstring" dir="in">
8681 <desc>Name of the property to set.</desc>
8682 </param>
8683 <param name="value" type="wstring" dir="in">
8684 <desc>Property value to set.</desc>
8685 </param>
8686 </method>
8687
8688 <method name="getProperties">
8689 <desc>
8690 Returns values for a group of properties in one call.
8691
8692 The names of the properties to get are specified using the @a names
8693 argument which is a list of comma-separated property names or
8694 <tt>null</tt> if all properties are to be returned. Note that currently
8695 the value of this argument is ignored and the method always returns all
8696 existing properties.
8697
8698 The list of all properties supported by the given hard disk format can
8699 be obtained with <link to="IHardDiskFormat::describeProperties"/>.
8700
8701 The method returns two arrays, the array of property names corresponding
8702 to the @a names argument and the current values of these properties.
8703 Both arrays have the same number of elements with each elemend at the
8704 given index in the first array corresponds to an element at the same
8705 index in the second array.
8706
8707 Note that for properties that do not have assigned values,
8708 <tt>null</tt> is returned at the appropriate index in the
8709 @a returnValues array.
8710
8711 </desc>
8712 <param name="names" type="wstring" dir="in">
8713 <desc>
8714 Names of properties to get.
8715 </desc>
8716 </param>
8717 <param name="returnNames" type="wstring" safearray="yes" dir="out">
8718 <desc>Names of returned properties.</desc>
8719 </param>
8720 <param name="returnValues" type="wstring" safearray="yes" dir="return">
8721 <desc>Values of returned properties.</desc>
8722 </param>
8723 </method>
8724
8725 <method name="setProperties">
8726 <desc>
8727 Sets values for a group of properties in one call.
8728
8729 The names of the properties to set are passed in the @a names
8730 array along with the new values for them in the @a values array. Both
8731 arrays have the same number of elements with each elemend at the given
8732 index in the first array corresponding to an element at the same index
8733 in the second array.
8734
8735 If there is at least one property name in @a names that is not valid,
8736 the method will fail before changing the values of any other properties
8737 from the @a names array.
8738
8739 Using this method over <link to="#setProperty"/> is preferred if you
8740 need to set several properties at once since it will result into less
8741 IPC calls.
8742
8743 The list of all properties supported by the given hard disk format can
8744 be obtained with <link to="IHardDiskFormat::describeProperties"/>.
8745
8746 Note that setting the property value to <tt>null</tt> is equivalent to
8747 deleting the existing value. A default value (if it is defined for this
8748 property) will be used by the format backend in this case.
8749 </desc>
8750 <param name="names" type="wstring" safearray="yes" dir="in">
8751 <desc>Names of properties to set.</desc>
8752 </param>
8753 <param name="values" type="wstring" safearray="yes" dir="in">
8754 <desc>Values of properties to set.</desc>
8755 </param>
8756 </method>
8757
8758 <!-- storage methods -->
8759
8760 <method name="createDynamicStorage">
8761 <desc>
8762 Starts creating a dynamically expanding hard disk storage unit in the
8763 background. The previous storage unit created for this object, if
8764 any, must first be deleted using <link to="#deleteStorage"/>, otherwise
8765 the operation will fail.
8766
8767 Before the operation starts, the hard disk is placed in
8768 <link to="MediaState_Creating"/> state. If the create operation
8769 fails, the media will be placed back in <link to="MediaState_NotCreated"/>
8770 state.
8771
8772 After the returned progress object reports that the operation has
8773 successfully completed, the media state will be set to <link
8774 to="MediaState_Created"/>, the hard disk will be remembered by this
8775 VirtualBox installation and may be attached to virtual machines.
8776
8777 <result name="VBOX_E_NOT_SUPPORTED">
8778 Dynamic storage creation operation is not supported. See <link
8779 to="IHardDiskFormat::capabilities"/>.
8780 </result>
8781 </desc>
8782 <param name="logicalSize" type="unsigned long long" dir="in">
8783 <desc>Maximum logical size of the hard disk in megabytes.</desc>
8784 </param>
8785 <param name="progress" type="IProgress" dir="return">
8786 <desc>Progress object to track the operation completion.</desc>
8787 </param>
8788 </method>
8789
8790 <method name="createFixedStorage">
8791 <desc>
8792 Starts creating a fixed-size hard disk storage unit in the background.
8793 The previous storage unit created for this object, if
8794 any, must be first deleted using <link to="#deleteStorage"/>, otherwise
8795 the operation will fail.
8796
8797 Before the operation starts, the hard disk is placed to
8798 <link to="MediaState_Creating"/> state. If the create operation
8799 fails, the media will placed back to <link to="MediaState_NotCreated"/>
8800 state.
8801
8802 After the returned progress object reports that the operation is
8803 successfully complete, the media state will be set to <link
8804 to="MediaState_Created"/>, the hard disk will be remembered by this
8805 VirtualBox installation and may be attached to virtual machines.
8806
8807 <result name="VBOX_E_NOT_SUPPORTED">
8808 Fixed storage creation operation is not supported. See
8809 <link to="IHardDiskFormat::capabilities"/>.
8810 </result>
8811 </desc>
8812 <param name="logicalSize" type="unsigned long long" dir="in">
8813 <desc>Logical size of the hard disk in megabytes.</desc>
8814 </param>
8815 <param name="progress" type="IProgress" dir="return">
8816 <desc>Progress object to track the operation completion.</desc>
8817 </param>
8818 </method>
8819
8820 <method name="deleteStorage">
8821 <desc>
8822 Starts deleting the storage unit of this hard disk.
8823
8824 The hard disk must not be attached to any known virtual machine and must
8825 not have any known child hard disks, otherwise the operation will fail.
8826 It will also fail if there is no storage unit to delete or if deletion
8827 is already in progress, or if the hard disk is being in use (locked for
8828 read or for write) or inaccessible. Therefore, the only valid state for
8829 this operation to succeed is <link to="MediaState_Created"/>.
8830
8831 Before the operation starts, the hard disk is placed to
8832 <link to="MediaState_Deleting"/> state and gets removed from the list
8833 of remembered hard disks (media registry). If the delete operation
8834 fails, the media will be remembered again and placed back to
8835 <link to="MediaState_Created"/> state.
8836
8837 After the returned progress object reports that the operation is
8838 complete, the media state will be set to
8839 <link to="MediaState_NotCreated"/> and you will be able to use one of
8840 the storage creation methods to create it again.
8841
8842 <see>#close()</see>
8843
8844 <result name="VBOX_E_OBJECT_IN_USE">
8845 Hard disk is attached to a virtual machine.
8846 </result>
8847 <result name="VBOX_E_NOT_SUPPORTED">
8848 Storage deletion is not allowed because neither of storage creation
8849 operations are supported. See
8850 <link to="IHardDiskFormat::capabilities"/>.
8851 </result>
8852
8853 <note>
8854 If the deletion operation fails, it is not guaranteed that the storage
8855 unit still exists. You may check the <link to="IMedium::state"/> value
8856 to answer this question.
8857 </note>
8858 </desc>
8859 <param name="progress" type="IProgress" dir="return">
8860 <desc>Progress object to track the operation completion.</desc>
8861 </param>
8862 </method>
8863
8864 <!-- diff methods -->
8865
8866 <method name="createDiffStorage">
8867 <desc>
8868 Starts creating an empty differencing storage unit based on this hard
8869 disk in the format and at the location defined by the @a target
8870 argument.
8871
8872 The target hard disk must be in <link to="MediaState_NotCreated"/>
8873 state (i.e. must not have an existing storage unit). Upon successful
8874 completion, this operation will set the type of the target hard disk to
8875 <link to="HardDiskType_Normal"/> and create a storage unit necessary to
8876 represent the differencing hard disk data in the given format (according
8877 to the storage format of the target object).
8878
8879 After the returned progress object reports that the operation is
8880 successfully complete, the target hard disk gets remembered by this
8881 VirtualBox installation and may be attached to virtual machines.
8882
8883 <note>
8884 The hard disk will be set to <link to="MediaState_LockedRead"/>
8885 state for the duration of this operation.
8886 </note>
8887 <result name="VBOX_E_OBJECT_IN_USE">
8888 Hard disk not in NotCreated state.
8889 </result>
8890 </desc>
8891 <param name="target" type="IHardDisk" dir="in">
8892 <desc>Target hard disk.</desc>
8893 </param>
8894 <param name="progress" type="IProgress" dir="return">
8895 <desc>Progress object to track the operation completion.</desc>
8896 </param>
8897 </method>
8898
8899 <method name="mergeTo">
8900 <desc>
8901 Starts merging the contents of this hard disk and all intermediate
8902 differencing hard disks in the chain to the given target hard disk.
8903
8904 The target hard disk must be either a descendant of this hard disk or
8905 its ancestor (otherwise this method will immediately return a failure).
8906 It follows that there are two logical directions of the merge operation:
8907 from ancestor to descendant (<i>forward merge</i>) and from descendant to
8908 ancestor (<i>backward merge</i>). Let us consider the following hard disk
8909 chain:
8910
8911 <pre>Base &lt;- Diff_1 &lt;- Diff_2</pre>
8912
8913 Here, calling this method on the <tt>Base</tt> hard disk object with
8914 <tt>Diff_2</tt> as an argument will be a forward merge; calling it on
8915 <tt>Diff_2</tt> with <tt>Base</tt> as an argument will be a backward
8916 merge. Note that in both cases the contents of the resulting hard disk
8917 will be the same, the only difference is the hard disk object that takes
8918 the result of the merge operation. In case of the forward merge in the
8919 above example, the result will be written to <tt>Diff_2</tt>; in case of
8920 the backward merge, the result will be written to <tt>Base</tt>. In
8921 other words, the result of the operation is always stored in the target
8922 hard disk.
8923
8924 Upon successful operation completion, the storage units of all hard
8925 disks in the chain between this (source) hard disk and the target hard
8926 disk, including the source hard disk itself, will be automatically
8927 deleted and the relevant hard disk objects (including this hard disk)
8928 will become uninitialized. This means that any attempt to call any of
8929 their methods or attributes will fail with the
8930 <tt>"Object not ready" (E_ACCESSDENIED)</tt> error. Applied to the above
8931 example, the forward merge of <tt>Base</tt> to <tt>Diff_2</tt> will
8932 delete and uninitialize both <tt>Base</tt> and <tt>Diff_1</tt> hard
8933 disks. Note that <tt>Diff_2</tt> in this case will become a base hard
8934 disk itself since it will no longer be based on any other hard disk.
8935
8936 Considering the above, all of the following conditions must be met in
8937 order for the merge operation to succeed:
8938 <ul>
8939 <li>
8940 Neither this (source) hard disk nor any intermediate
8941 differencing hard disk in the chain between it and the target
8942 hard disk is attached to any virtual machine.
8943 </li>
8944 <li>
8945 Neither the source hard disk nor the target hard disk is an
8946 <link to="HardDiskType_Immutable"/> hard disk.
8947 </li>
8948 <li>
8949 The part of the hard disk tree from the source hard disk to the
8950 target hard disk is a linear chain, i.e. all hard disks in this
8951 chain have exactly one child which is the next hard disk in this
8952 chain. The only exception from this rule is the target hard disk in
8953 the forward merge operation; it is allowed to have any number of
8954 child hard disks because the merge operation will hot change its
8955 logical contents (as it is seen by the guest OS or by children).
8956 </li>
8957 <li>
8958 None of the involved hard disks are in
8959 <link to="MediaState_LockedRead"/> or
8960 <link to="MediaState_LockedWrite"/> state.
8961 </li>
8962 </ul>
8963
8964 <note>
8965 This (source) hard disk and all intermediates will be placed to <link
8966 to="MediaState_Deleting"/> state and the target hard disk will be
8967 placed to <link to="MediaState_LockedWrite"/> state and for the
8968 duration of this operation.
8969 </note>
8970 </desc>
8971 <param name="targetId" type="uuid" dir="in">
8972 <desc>UUID of the target ancestor or descendant hard disk.</desc>
8973 </param>
8974 <param name="progress" type="IProgress" dir="return">
8975 <desc>Progress object to track the operation completion.</desc>
8976 </param>
8977 </method>
8978
8979 <!-- clone methods -->
8980
8981 <method name="cloneTo">
8982 <desc>
8983 Starts creating a clone of this hard disk in the format and at the
8984 location defined by the @a target argument.
8985
8986 The target hard disk must be in <link to="MediaState_NotCreated"/>
8987 state (i.e. must not have an existing storage unit). Upon successful
8988 completion, the cloned hard disk will contain exactly the same sector
8989 data as the hard disk being cloned, except that a new UUID for the clone
8990 will be randomly generated.
8991
8992 After the returned progress object reports that the operation is
8993 successfully complete, the target hard disk gets remembered by this
8994 VirtualBox installation and may be attached to virtual machines.
8995
8996 <note>
8997 If the cloned hard disk is a differencing hard disk, it will inherit
8998 parent dependency of the original hard disk.
8999 </note>
9000 <note>
9001 This hard disk will be placed to <link to="MediaState_LockedRead"/>
9002 state for the duration of this operation.
9003 </note>
9004 </desc>
9005 <param name="target" type="IHardDisk" dir="in">
9006 <desc>Target hard disk.</desc>
9007 </param>
9008 <param name="progress" type="IProgress" dir="return">
9009 <desc>Progress object to track the operation completion.</desc>
9010 </param>
9011 </method>
9012
9013 <method name="flattenTo">
9014 <desc>
9015 Starts creating a deep (independent) clone of this hard disk in the
9016 format and at the location defined by the @a target argument.
9017
9018 This operation is similar to <link to="#cloneTo"/> except that when
9019 applied to a differencing hard disk, it will also copy missing hard disk
9020 data from all parent hard disks it is linked to. This will make the
9021 created clone an independent base hard disk that contains all hard disk
9022 data and does not need any other hard disks to operate.
9023
9024 After the returned progress object reports that the operation is
9025 successfully complete, the target hard disk gets remembered by this
9026 VirtualBox installation and may be attached to virtual machines.
9027
9028 <note>
9029 For base hard disks, this operation is identical to
9030 <link to="#cloneTo"/>.
9031 </note>
9032 <note>
9033 This hard disk and all its parent hard disks will be placed to <link
9034 to="MediaState_LockedRead"/> state for the duration of this
9035 operation.
9036 </note>
9037 </desc>
9038 <param name="target" type="IHardDisk" dir="in">
9039 <desc>Target hard disk.</desc>
9040 </param>
9041 <param name="progress" type="IProgress" dir="return">
9042 <desc>Progress object to track the operation completion.</desc>
9043 </param>
9044 </method>
9045
9046 <method name="compact">
9047 <desc>
9048 Starts compacting of this hard disk. This means that the disk is
9049 transformed into a possibly more compact storage representation.
9050 This potentially creates temporary images, which can require a
9051 substantial amount of additional disk space.
9052
9053 After the returned progress object reports that the operation is
9054 successfully complete, the media state will be set back to the
9055 current state.
9056
9057 <note>
9058 This hard disk and all its parent hard disks will be placed to <link
9059 to="MediaState_LockedRead"/> state for the duration of this
9060 operation.
9061 </note>
9062 </desc>
9063 <param name="progress" type="IProgress" dir="return">
9064 <desc>Progress object to track the operation completion.</desc>
9065 </param>
9066 </method>
9067
9068 </interface>
9069
9070
9071 <!--
9072 // IHardDiskFormat
9073 /////////////////////////////////////////////////////////////////////////
9074 -->
9075
9076 <enum
9077 name="DataType"
9078 uuid="d90ea51e-a3f1-4a01-beb1-c1723c0d3ba7"
9079 >
9080 <const name="Int32" value="0"/>
9081 <const name="Int8" value="1"/>
9082 <const name="String" value="2"/>
9083 </enum>
9084
9085 <enum
9086 name="DataFlags"
9087 uuid="86884dcf-1d6b-4f1b-b4bf-f5aa44959d60"
9088 >
9089 <const name="None" value="0x00"/>
9090 <const name="Mandatory" value="0x01"/>
9091 <const name="Expert" value="0x02"/>
9092 <const name="Array" value="0x04"/>
9093 <const name="FlagMask" value="0x07"/>
9094 </enum>
9095
9096 <enum
9097 name="HardDiskFormatCapabilities"
9098 uuid="1df1e4aa-d25a-4ba6-b2a2-02f60eb5903b"
9099 >
9100 <desc>
9101 Hard disk format capability flags.
9102 </desc>
9103
9104 <const name="Uuid" value="0x01">
9105 <desc>
9106 Supports UUIDs as expected by VirtualBox code.
9107 </desc>
9108 </const>
9109
9110 <const name="CreateFixed" value="0x02">
9111 <desc>
9112 Supports creating fixed size images, allocating all space instantly.
9113 </desc>
9114 </const>
9115
9116 <const name="CreateDynamic" value="0x04">
9117 <desc>
9118 Supports creating dynamically growing images, allocating space on
9119 demand.
9120 </desc>
9121 </const>
9122
9123 <const name="CreateSplit2G" value="0x08">
9124 <desc>
9125 Supports creating images split in chunks of a bit less than 2 GBytes.
9126 </desc>
9127 </const>
9128
9129 <const name="Differencing" value="0x10">
9130 <desc>
9131 Supports being used as a format for differencing hard disks (see <link
9132 to="IHardDisk::createDiffStorage"/>).
9133 </desc>
9134 </const>
9135
9136 <const name="Asynchronous" value="0x20">
9137 <desc>
9138 Supports asynchronous I/O operations for at least some configurations.
9139 </desc>
9140 </const>
9141
9142 <const name="File" value="0x40">
9143 <desc>
9144 The format backend operates on files (the <link to="IMedium::location"/>
9145 attribute of the hard disk specifies a file used to store hard disk
9146 data; for a list of supported file extensions see
9147 <link to="IHardDiskFormat::fileExtensions"/>).
9148 </desc>
9149 </const>
9150
9151 <const name="Properties" value="0x80">
9152 <desc>
9153 The format backend uses the property interface to configure the storage
9154 location and properties (the <link to="IHardDiskFormat::describeProperties"/>
9155 method is used to get access to properties supported by the given hard
9156 disk format).
9157 </desc>
9158 </const>
9159
9160 <const name="CapabilityMask" value="0xFF"/>
9161 </enum>
9162
9163 <interface
9164 name="IHardDiskFormat" extends="$unknown"
9165 uuid="7f3ba790-3a0b-4a8a-bac2-bb50150123c5"
9166 wsmap="managed"
9167 >
9168 <desc>
9169 The IHardDiskFormat interface represents a virtual hard disk format.
9170
9171 Each hard disk format has an associated backend which is used to handle
9172 hard disks stored in this format. This interface provides information
9173 about the properties of the associated backend.
9174
9175 Each hard disk format is identified by a string represented by the
9176 <link to="#id"/> attribute. This string is used in calls like
9177 <link to="IVirtualBox::createHardDisk"/> to specify the desired
9178 format.
9179
9180 The list of all supported hard disk formats can be obtained using
9181 <link to="ISystemProperties::hardDiskFormats"/>.
9182
9183 <see>IHardDisk</see>
9184 </desc>
9185
9186 <attribute name="id" type="wstring" readonly="yes">
9187 <desc>
9188 Identifier of this format.
9189
9190 The format identifier is a non-null non-empty ASCII string. Note that
9191 this string is case-insensitive. This means that, for example, all of
9192 the following strings:
9193 <pre>
9194 "VDI"
9195 "vdi"
9196 "VdI"</pre>
9197 refer to the same hard disk format.
9198
9199 This string is used in methods of other interfaces where it is necessary
9200 to specify a hard disk format, such as
9201 <link to="IVirtualBox::createHardDisk"/>.
9202 </desc>
9203 </attribute>
9204
9205 <attribute name="name" type="wstring" readonly="yes">
9206 <desc>
9207 Human readable description of this format.
9208
9209 Mainly for use in file open dialogs.
9210 </desc>
9211 </attribute>
9212
9213 <attribute name="fileExtensions" type="wstring" safearray="yes" readonly="yes">
9214 <desc>
9215 Array of strings containing the supported file extensions.
9216
9217 The first extension in the array is the extension preferred by the
9218 backend. It is recommended to use this extension when specifying a
9219 location of the storage unit for a new hard disk.
9220
9221 Note that some backends do not work on files, so this array may be
9222 empty.
9223
9224 <see>IHardDiskFormat::capabilities</see>
9225 </desc>
9226 </attribute>
9227
9228 <attribute name="capabilities" type="unsigned long" readonly="yes">
9229 <desc>
9230 Capabilities of the format as a set of bit flags.
9231
9232 For the meaning of individual capability flags see
9233 <link to="HardDiskFormatCapabilities"/>.
9234 </desc>
9235 </attribute>
9236
9237 <method name="describeProperties">
9238 <desc>
9239 Returns several arrays describing the properties supported by this
9240 format.
9241
9242 An element with the given index in each array describes one
9243 property. Thus, the number of elements in each returned array is the
9244 same and corresponds to the number of supported properties.
9245
9246 The returned arrays are filled in only if the
9247 <link to="HardDiskFormatCapabilities_Properties"/> flag is set.
9248 All arguments must be non-NULL.
9249
9250 <see>DataType</see>
9251 <see>DataFlags</see>
9252 </desc>
9253
9254 <param name="names" type="wstring" safearray="yes" dir="out">
9255 <desc>Array of property names.</desc>
9256 </param>
9257 <param name="description" type="wstring" safearray="yes" dir="out">
9258 <desc>Array of property descriptions.</desc>
9259 </param>
9260 <param name="types" type="DataType" safearray="yes" dir="out">
9261 <desc>Array of property types.</desc>
9262 </param>
9263 <param name="flags" type="unsigned long" safearray="yes" dir="out">
9264 <desc>Array of property flags.</desc>
9265 </param>
9266 <param name="defaults" type="wstring" safearray="yes" dir="out">
9267 <desc>Array of default property values.</desc>
9268 </param>
9269 </method>
9270
9271 </interface>
9272
9273
9274 <!--
9275 // IFloppyImage
9276 /////////////////////////////////////////////////////////////////////////
9277 -->
9278
9279 <interface
9280 name="IFloppyImage" extends="IMedium"
9281 uuid="faa6101f-078c-4b3a-ab75-75670c8170b3"
9282 wsmap="managed"
9283 >
9284 <desc>
9285 The IFloppyImage interface represents a medium containing the image
9286 of a floppy disk. This is a subclass of <link to="IMedium" />; see remarks there.
9287 </desc>
9288
9289 </interface>
9290
9291
9292 <!--
9293 // IDVDImage
9294 /////////////////////////////////////////////////////////////////////////
9295 -->
9296
9297 <interface
9298 name="IDVDImage" extends="IMedium"
9299 uuid="b1f90bbb-e8a9-4484-9af1-3638e943f763"
9300 wsmap="managed"
9301 >
9302 <desc>
9303 The IDVDImage interface represents a medium containing the image
9304 of a CD or DVD disk in the ISO format.
9305
9306 This is a subclass of <link to="IMedium" />; see remarks there.
9307 </desc>
9308
9309 </interface>
9310
9311
9312 <!--
9313 // IDVDDrive
9314 /////////////////////////////////////////////////////////////////////////
9315 -->
9316
9317 <interface
9318 name="IDVDDrive" extends="$unknown"
9319 uuid="d650ef30-be9b-4dae-b463-11d5824681a5"
9320 wsmap="managed"
9321 >
9322 <desc>
9323 The IDVDDrive interface represents the virtual CD/DVD drive of the
9324 virtual machine. An object of this type is returned by
9325 <link to="IMachine::DVDDrive"/>.
9326 </desc>
9327
9328 <attribute name="state" type="DriveState" readonly="yes">
9329 <desc>Current drive state.</desc>
9330 </attribute>
9331
9332 <attribute name="passthrough" type="boolean">
9333 <desc>
9334 When a host drive is mounted and passthrough is enabled
9335 the guest OS will be able to directly send SCSI commands to
9336 the host drive. This enables the guest OS to use CD/DVD writers
9337 but is potentially dangerous.
9338 </desc>
9339 </attribute>
9340
9341 <method name="mountImage">
9342 <desc>Mounts a CD/DVD image with the specified UUID.
9343
9344 <result name="VBOX_E_FILE_ERROR">
9345 Invalid image file location.
9346 </result>
9347 <result name="VBOX_E_OBJECT_NOT_FOUND">
9348 Could not find a CD/DVD image matching @a imageID.
9349 </result>
9350 <result name="VBOX_E_INVALID_OBJECT_STATE">
9351 Invalid media state.
9352 </result>
9353
9354 </desc>
9355 <param name="imageId" type="uuid" dir="in"/>
9356 </method>
9357
9358 <method name="captureHostDrive">
9359 <desc>Captures the specified host CD/DVD drive.</desc>
9360 <param name="drive" type="IHostDVDDrive" dir="in"/>
9361 </method>
9362
9363 <method name="unmount">
9364 <desc>Unmounts the currently mounted image or host drive.</desc>
9365 </method>
9366
9367 <method name="getImage">
9368 <desc>Returns the currently mounted CD/DVD image.</desc>
9369 <param name="image" type="IDVDImage" dir="return"/>
9370 </method>
9371
9372 <method name="getHostDrive">
9373 <desc>Returns the currently mounted host CD/DVD drive.</desc>
9374 <param name="drive" type="IHostDVDDrive" dir="return"/>
9375 </method>
9376
9377 </interface>
9378
9379
9380 <!--
9381 // IFloppyDrive
9382 /////////////////////////////////////////////////////////////////////////
9383 -->
9384
9385 <interface
9386 name="IFloppyDrive" extends="$unknown"
9387 uuid="159412cd-bab8-452e-8097-218a020825a6"
9388 wsmap="managed"
9389 >
9390 <desc>
9391 The IFloppyDrive interface represents the virtual floppy drive of the
9392 virtual machine. An object of this type is returned by
9393 <link to="IMachine::floppyDrive" />.
9394 </desc>
9395
9396 <attribute name="enabled" type="boolean">
9397 <desc>
9398 Flag whether the floppy drive is enabled. If it is disabled,
9399 the floppy drive will not be reported to the guest OS.
9400 </desc>
9401 </attribute>
9402
9403 <attribute name="state" type="DriveState" readonly="yes">
9404 <desc>Current drive state.</desc>
9405 </attribute>
9406
9407 <method name="mountImage">
9408 <desc>Mounts a floppy image with the specified UUID.
9409
9410 <result name="VBOX_E_FILE_ERROR">
9411 Invalid image file location.
9412 </result>
9413 <result name="VBOX_E_OBJECT_NOT_FOUND">
9414 Could not find a floppy image matching @a imageID.
9415 </result>
9416 <result name="VBOX_E_INVALID_OBJECT_STATE">
9417 Invalid media state.
9418 </result>
9419
9420 </desc>
9421 <param name="imageId" type="uuid" dir="in"/>
9422 </method>
9423
9424 <method name="captureHostDrive">
9425 <desc>Captures the specified host floppy drive.</desc>
9426 <param name="drive" type="IHostFloppyDrive" dir="in"/>
9427 </method>
9428
9429 <method name="unmount">
9430 <desc>Unmounts the currently mounted image or host drive.</desc>
9431 </method>
9432
9433 <method name="getImage">
9434 <desc>Returns the currently mounted floppy image.</desc>
9435 <param name="image" type="IFloppyImage" dir="return"/>
9436 </method>
9437
9438 <method name="getHostDrive">
9439 <desc>Returns the currently mounted host floppy drive.</desc>
9440 <param name="drive" type="IHostFloppyDrive" dir="return"/>
9441 </method>
9442
9443 </interface>
9444
9445
9446 <!--
9447 // IKeyboard
9448 /////////////////////////////////////////////////////////////////////////
9449 -->
9450
9451 <interface
9452 name="IKeyboard" extends="$unknown"
9453 uuid="2d1a531b-4c6e-49cc-8af6-5c857b78b5d7"
9454 wsmap="managed"
9455 >
9456 <desc>
9457 The IKeyboard interface represents the virtual machine's keyboard. Used
9458 in <link to="IConsole::keyboard"/>.
9459
9460 Use this interface to send keystrokes or the Ctrl-Alt-Del sequence
9461 to the virtual machine.
9462
9463 </desc>
9464 <method name="putScancode">
9465 <desc>Sends a scancode to the keyboard.
9466
9467 <result name="VBOX_E_IPRT_ERROR">
9468 Could not send scan code to virtual keyboard.
9469 </result>
9470
9471 </desc>
9472 <param name="scancode" type="long" dir="in"/>
9473 </method>
9474
9475 <method name="putScancodes">
9476 <desc>Sends an array of scancodes to the keyboard.
9477
9478 <result name="VBOX_E_IPRT_ERROR">
9479 Could not send all scan codes to virtual keyboard.
9480 </result>
9481
9482 </desc>
9483 <param name="scancodes" type="long" dir="in" safearray="yes"/>
9484 <param name="codesStored" type="unsigned long" dir="return"/>
9485 </method>
9486
9487 <method name="putCAD">
9488 <desc>Sends the Ctrl-Alt-Del sequence to the keyboard. This
9489 function is nothing special, it is just a convenience function
9490 calling <link to="IKeyboard::putScancodes"/> with the proper scancodes.
9491
9492 <result name="VBOX_E_IPRT_ERROR">
9493 Could not send all scan codes to virtual keyboard.
9494 </result>
9495
9496 </desc>
9497 </method>
9498
9499 </interface>
9500
9501
9502 <!--
9503 // IMouse
9504 /////////////////////////////////////////////////////////////////////////
9505 -->
9506
9507 <enum
9508 name="MouseButtonState"
9509 uuid="03131722-2EC5-4173-9794-0DACA46673EF"
9510 >
9511 <desc>
9512 Mouse button state.
9513 </desc>
9514
9515 <const name="LeftButton" value="0x01"/>
9516 <const name="RightButton" value="0x02"/>
9517 <const name="MiddleButton" value="0x04"/>
9518 <const name="WheelUp" value="0x08"/>
9519 <const name="WheelDown" value="0x10"/>
9520 <const name="MouseStateMask" value="0x1F"/>
9521 </enum>
9522
9523 <interface
9524 name="IMouse" extends="$unknown"
9525 uuid="FD443EC1-0006-4F5B-9282-D72760A66916"
9526 wsmap="managed"
9527 >
9528 <desc>
9529 The IMouse interface represents the virtual machine's mouse. Used in
9530 <link to="IConsole::mouse"/>.
9531
9532 Through this interface, the virtual machine's virtual mouse can be
9533 controlled.
9534 </desc>
9535
9536 <attribute name="absoluteSupported" type="boolean" readonly="yes">
9537 <desc>
9538 Whether the guest OS supports absolute mouse pointer positioning
9539 or not.
9540 <note>
9541 VirtualBox Guest Tools need to be installed to the guest OS
9542 in order to enable absolute mouse positioning support.
9543 You can use the <link to="IConsoleCallback::onMouseCapabilityChange"/>
9544 callback to be instantly informed about changes of this attribute
9545 during virtual machine execution.
9546 </note>
9547 <see><link to="#putMouseEventAbsolute"/></see>
9548 </desc>
9549 </attribute>
9550
9551 <method name="putMouseEvent">
9552 <desc>
9553 Initiates a mouse event using relative pointer movements
9554 along x and y axis.
9555
9556 <result name="E_ACCESSDENIED">
9557 Console not powered up.
9558 </result>
9559 <result name="VBOX_E_IPRT_ERROR">
9560 Could not send mouse event to virtual mouse.
9561 </result>
9562
9563 </desc>
9564
9565 <param name="dx" type="long" dir="in">
9566 <desc>
9567 Amount of pixels the mouse should move to the right.
9568 Negative values move the mouse to the left.
9569 </desc>
9570 </param>
9571 <param name="dy" type="long" dir="in">
9572 <desc>
9573 Amount of pixels the mouse should move downwards.
9574 Negative values move the mouse upwards.
9575 </desc>
9576 </param>
9577 <param name="dz" type="long" dir="in">
9578 <desc>
9579 Amount of mouse wheel moves.
9580 Positive values describe clockwise wheel rotations,
9581 negative values describe counterclockwise rotations.
9582 </desc>
9583 </param>
9584 <param name="buttonState" type="long" dir="in">
9585 <desc>
9586 The current state of mouse buttons. Every bit represents
9587 a mouse button as follows:
9588 <table>
9589 <tr><td>Bit 0 (<tt>0x01</tt>)</td><td>left mouse button</td></tr>
9590 <tr><td>Bit 1 (<tt>0x02</tt>)</td><td>right mouse button</td></tr>
9591 <tr><td>Bit 2 (<tt>0x04</tt>)</td><td>middle mouse button</td></tr>
9592 </table>
9593 A value of <tt>1</tt> means the corresponding button is pressed.
9594 otherwise it is released.
9595 </desc>
9596 </param>
9597 </method>
9598
9599 <method name="putMouseEventAbsolute">
9600 <desc>
9601 Positions the mouse pointer using absolute x and y coordinates.
9602 These coordinates are expressed in pixels and
9603 start from <tt>[1,1]</tt> which corresponds to the top left
9604 corner of the virtual display.
9605
9606 <result name="E_ACCESSDENIED">
9607 Console not powered up.
9608 </result>
9609 <result name="VBOX_E_IPRT_ERROR">
9610 Could not send mouse event to virtual mouse.
9611 </result>
9612
9613 <note>
9614 This method will have effect only if absolute mouse
9615 positioning is supported by the guest OS.
9616 </note>
9617
9618 <see><link to="#absoluteSupported"/></see>
9619 </desc>
9620
9621 <param name="x" type="long" dir="in">
9622 <desc>
9623 X coordinate of the pointer in pixels, starting from <tt>1</tt>.
9624 </desc>
9625 </param>
9626 <param name="y" type="long" dir="in">
9627 <desc>
9628 Y coordinate of the pointer in pixels, starting from <tt>1</tt>.
9629 </desc>
9630 </param>
9631 <param name="dz" type="long" dir="in">
9632 <desc>
9633 Amount of mouse wheel moves.
9634 Positive values describe clockwise wheel rotations,
9635 negative values describe counterclockwise rotations.
9636 </desc>
9637 </param>
9638 <param name="buttonState" type="long" dir="in">
9639 <desc>
9640 The current state of mouse buttons. Every bit represents
9641 a mouse button as follows:
9642 <table>
9643 <tr><td>Bit 0 (<tt>0x01</tt>)</td><td>left mouse button</td></tr>
9644 <tr><td>Bit 1 (<tt>0x02</tt>)</td><td>right mouse button</td></tr>
9645 <tr><td>Bit 2 (<tt>0x04</tt>)</td><td>middle mouse button</td></tr>
9646 </table>
9647 A value of <tt>1</tt> means the corresponding button is pressed.
9648 otherwise it is released.
9649 </desc>
9650 </param>
9651 </method>
9652
9653 </interface>
9654
9655 <!--
9656 // IDisplay
9657 /////////////////////////////////////////////////////////////////////////
9658 -->
9659
9660 <enum
9661 name="FramebufferAccelerationOperation"
9662 uuid="f0e5ebbe-dc8e-4e2d-916e-53baa3844df8"
9663 >
9664 <desc>
9665 Frame buffer acceleration operation.
9666 </desc>
9667
9668 <const name="SolidFillAcceleration" value="1"/>
9669 <const name="ScreenCopyAcceleration" value="2"/>
9670 </enum>
9671
9672 <enum
9673 name="FramebufferPixelFormat"
9674 uuid="7acfd5ed-29e3-45e3-8136-73c9224f3d2d"
9675 >
9676 <desc>
9677 Format of the video memory buffer. Constants represented by this enum can
9678 be used to test for particular values of <link
9679 to="IFramebuffer::pixelFormat"/>. See also <link
9680 to="IFramebuffer::requestResize"/>.
9681
9682 See also www.fourcc.org for more information about FOURCC pixel formats.
9683 </desc>
9684
9685 <const name="Opaque" value="0">
9686 <desc>
9687 Unknown buffer format (the user may not assume any particular format of
9688 the buffer).
9689 </desc>
9690 </const>
9691 <const name="FOURCC_RGB" value="0x32424752">
9692 <desc>
9693 Basic RGB format (<link to="IFramebuffer::bitsPerPixel"/> determines the
9694 bit layout).
9695 </desc>
9696 </const>
9697 </enum>
9698
9699 <interface
9700 name="IFramebuffer" extends="$unknown"
9701 uuid="af431304-5b09-40e2-94da-3c3cb03822c1"
9702 wsmap="suppress"
9703 >
9704 <attribute name="address" type="octet" mod="ptr" readonly="yes">
9705 <desc>Address of the start byte of the frame buffer.</desc>
9706 </attribute>
9707
9708 <attribute name="width" type="unsigned long" readonly="yes">
9709 <desc>Frame buffer width, in pixels.</desc>
9710 </attribute>
9711
9712 <attribute name="height" type="unsigned long" readonly="yes">
9713 <desc>Frame buffer height, in pixels.</desc>
9714 </attribute>
9715
9716 <attribute name="bitsPerPixel" type="unsigned long" readonly="yes">
9717 <desc>
9718 Color depth, in bits per pixel. When <link to="#pixelFormat"/> is <link
9719 to="FramebufferPixelFormat_FOURCC_RGB">FOURCC_RGB</link>, valid values
9720 are: 8, 15, 16, 24 and 32.
9721 </desc>
9722 </attribute>
9723
9724 <attribute name="bytesPerLine" type="unsigned long" readonly="yes">
9725 <desc>
9726 Scan line size, in bytes. When <link to="#pixelFormat"/> is <link
9727 to="FramebufferPixelFormat_FOURCC_RGB">FOURCC_RGB</link>, the
9728 size of the scan line must be aligned to 32 bits.
9729 </desc>
9730 </attribute>
9731
9732 <attribute name="pixelFormat" type="unsigned long" readonly="yes">
9733 <desc>
9734 Frame buffer pixel format. It's either one of the values defined by <link
9735 to="FramebufferPixelFormat"/> or a raw FOURCC code.
9736 <note>
9737 This attribute must never return <link
9738 to="FramebufferPixelFormat_Opaque"/> -- the format of the buffer
9739 <link to="#address"/> points to must be always known.
9740 </note>
9741 </desc>
9742 </attribute>
9743
9744 <attribute name="usesGuestVRAM" type="boolean" readonly="yes">
9745 <desc>
9746 Defines whether this frame buffer uses the virtual video card's memory
9747 buffer (guest VRAM) directly or not. See <link
9748 to="IFramebuffer::requestResize"/> for more information.
9749 </desc>
9750 </attribute>
9751
9752 <attribute name="heightReduction" type="unsigned long" readonly="yes">
9753 <desc>
9754 Hint from the frame buffer about how much of the standard
9755 screen height it wants to use for itself. This information is
9756 exposed to the guest through the VESA BIOS and VMMDev interface
9757 so that it can use it for determining its video mode table. It
9758 is not guaranteed that the guest respects the value.
9759 </desc>
9760 </attribute>
9761
9762 <attribute name="overlay" type="IFramebufferOverlay" readonly="yes">
9763 <desc>
9764 An alpha-blended overlay which is superposed over the frame buffer.
9765 The initial purpose is to allow the display of icons providing
9766 information about the VM state, including disk activity, in front
9767 ends which do not have other means of doing that. The overlay is
9768 designed to controlled exclusively by IDisplay. It has no locking
9769 of its own, and any changes made to it are not guaranteed to be
9770 visible until the affected portion of IFramebuffer is updated. The
9771 overlay can be created lazily the first time it is requested. This
9772 attribute can also return NULL to signal that the overlay is not
9773 implemented.
9774 </desc>
9775 </attribute>
9776
9777 <attribute name="winId" type="unsigned long long" readonly="yes">
9778 <desc>
9779 Platform-dependent identifier of the window where context of this
9780 frame buffer is drawn, or zero if there's no such window.
9781 </desc>
9782 </attribute>
9783
9784 <method name="lock">
9785 <desc>
9786 Locks the frame buffer.
9787 Gets called by the IDisplay object where this frame buffer is
9788 bound to.
9789 </desc>
9790 </method>
9791
9792 <method name="unlock">
9793 <desc>
9794 Unlocks the frame buffer.
9795 Gets called by the IDisplay object where this frame buffer is
9796 bound to.
9797 </desc>
9798 </method>
9799
9800 <method name="notifyUpdate">
9801 <desc>
9802 Informs about an update.
9803 Gets called by the display object where this buffer is
9804 registered.
9805 </desc>
9806 <param name="x" type="unsigned long" dir="in"/>
9807 <param name="y" type="unsigned long" dir="in"/>
9808 <param name="width" type="unsigned long" dir="in"/>
9809 <param name="height" type="unsigned long" dir="in"/>
9810 <param name="finished" type="boolean" dir="return"/>
9811 </method>
9812
9813 <method name="requestResize">
9814 <desc>
9815 Requests a size and pixel format change.
9816
9817 There are two modes of working with the video buffer of the virtual
9818 machine. The <i>indirect</i> mode implies that the IFramebuffer
9819 implementation allocates a memory buffer for the requested display mode
9820 and provides it to the virtual machine. In <i>direct</i> mode, the
9821 IFramebuffer implementation uses the memory buffer allocated and owned
9822 by the virtual machine. This buffer represents the video memory of the
9823 emulated video adapter (so called <i>guest VRAM</i>). The direct mode is
9824 usually faster because the implementation gets a raw pointer to the
9825 guest VRAM buffer which it can directly use for visualizing the contents
9826 of the virtual display, as opposed to the indirect mode where the
9827 contents of guest VRAM are copied to the memory buffer provided by
9828 the implementation every time a display update occurs.
9829
9830 It is important to note that the direct mode is really fast only when
9831 the implementation uses the given guest VRAM buffer directly, for
9832 example, by blitting it to the window representing the virtual machine's
9833 display, which saves at least one copy operation comparing to the
9834 indirect mode. However, using the guest VRAM buffer directly is not
9835 always possible: the format and the color depth of this buffer may be
9836 not supported by the target window, or it may be unknown (opaque) as in
9837 case of text or non-linear multi-plane VGA video modes. In this case,
9838 the indirect mode (that is always available) should be used as a
9839 fallback: when the guest VRAM contents are copied to the
9840 implementation-provided memory buffer, color and format conversion is
9841 done automatically by the underlying code.
9842
9843 The @a pixelFormat parameter defines whether the direct mode is
9844 available or not. If @a pixelFormat is <link
9845 to="FramebufferPixelFormat_Opaque"/> then direct access to the guest
9846 VRAM buffer is not available -- the @a VRAM, @a bitsPerPixel and
9847 @a bytesPerLine parameters must be ignored and the implementation must use
9848 the indirect mode (where it provides its own buffer in one of the
9849 supported formats). In all other cases, @a pixelFormat together with
9850 @a bitsPerPixel and @a bytesPerLine define the format of the video memory
9851 buffer pointed to by the @a VRAM parameter and the implementation is
9852 free to choose which mode to use. To indicate that this frame buffer uses
9853 the direct mode, the implementation of the <link to="#usesGuestVRAM"/>
9854 attribute must return <tt>true</tt> and <link to="#address"/> must
9855 return exactly the same address that is passed in the @a VRAM parameter
9856 of this method; otherwise it is assumed that the indirect strategy is
9857 chosen.
9858
9859 The @a width and @a height parameters represent the size of the
9860 requested display mode in both modes. In case of indirect mode, the
9861 provided memory buffer should be big enough to store data of the given
9862 display mode. In case of direct mode, it is guaranteed that the given
9863 @a VRAM buffer contains enough space to represent the display mode of the
9864 given size. Note that this frame buffer's <link to="#width"/> and <link
9865 to="#height"/> attributes must return exactly the same values as
9866 passed to this method after the resize is completed (see below).
9867
9868 The @a finished output parameter determines if the implementation has
9869 finished resizing the frame buffer or not. If, for some reason, the
9870 resize cannot be finished immediately during this call, @a finished
9871 must be set to @c false, and the implementation must call
9872 <link to="IDisplay::resizeCompleted"/> after it has returned from
9873 this method as soon as possible. If @a finished is @c false, the
9874 machine will not call any frame buffer methods until
9875 <link to="IDisplay::resizeCompleted"/> is called.
9876
9877 Note that if the direct mode is chosen, the <link to="#bitsPerPixel"/>,
9878 <link to="#bytesPerLine"/> and <link to="#pixelFormat"/> attributes of
9879 this frame buffer must return exactly the same values as specified in the
9880 parameters of this method, after the resize is completed. If the
9881 indirect mode is chosen, these attributes must return values describing
9882 the format of the implementation's own memory buffer <link
9883 to="#address"/> points to. Note also that the <link to="#bitsPerPixel"/>
9884 value must always correlate with <link to="#pixelFormat"/>. Note that
9885 the <link to="#pixelFormat"/> attribute must never return <link
9886 to="FramebufferPixelFormat_Opaque"/> regardless of the selected mode.
9887
9888 <note>
9889 This method is called by the IDisplay object under the
9890 <link to="#lock"/> provided by this IFramebuffer
9891 implementation. If this method returns @c false in @a finished, then
9892 this lock is not released until
9893 <link to="IDisplay::resizeCompleted"/> is called.
9894 </note>
9895 </desc>
9896 <param name="screenId" type="unsigned long" dir="in">
9897 <desc>
9898 Logical screen number. Must be used in the corresponding call to
9899 <link to="IDisplay::resizeCompleted"/> if this call is made.
9900 </desc>
9901 </param>
9902 <param name="pixelFormat" type="unsigned long" dir="in">
9903 <desc>
9904 Pixel format of the memory buffer pointed to by @a VRAM.
9905 See also <link to="FramebufferPixelFormat"/>.
9906 </desc>
9907 </param>
9908 <param name="VRAM" type="octet" mod="ptr" dir="in">
9909 <desc>Pointer to the virtual video card's VRAM (may be @c null).</desc>
9910 </param>
9911 <param name="bitsPerPixel" type="unsigned long" dir="in">
9912 <desc>Color depth, bits per pixel.</desc>
9913 </param>
9914 <param name="bytesPerLine" type="unsigned long" dir="in">
9915 <desc>Size of one scan line, in bytes.</desc>
9916 </param>
9917 <param name="width" type="unsigned long" dir="in">
9918 <desc>Width of the guest display, in pixels.</desc>
9919 </param>
9920 <param name="height" type="unsigned long" dir="in">
9921 <desc>Height of the guest display, in pixels.</desc>
9922 </param>
9923 <param name="finished" type="boolean" dir="return">
9924 <desc>
9925 Can the VM start using the new frame buffer immediately
9926 after this method returns or it should wait for
9927 <link to="IDisplay::resizeCompleted"/>.
9928 </desc>
9929 </param>
9930 </method>
9931
9932 <method name="operationSupported">
9933 <desc>
9934 Returns whether the given acceleration operation is supported
9935 by the IFramebuffer implementation. If not, the display object
9936 will not attempt to call the corresponding IFramebuffer entry
9937 point. Even if an operation is indicated as supported, the
9938 IFramebuffer implementation always has the option to return non
9939 supported from the corresponding acceleration method in which
9940 case the operation will be performed by the display engine. This
9941 allows for reduced IFramebuffer implementation complexity where
9942 only common cases are handled.
9943 </desc>
9944 <param name="operation" type="FramebufferAccelerationOperation" dir="in"/>
9945 <param name="supported" type="boolean" dir="return"/>
9946 </method>
9947
9948 <method name="videoModeSupported">
9949 <desc>
9950 Returns whether the frame buffer implementation is willing to
9951 support a given video mode. In case it is not able to render
9952 the video mode (or for some reason not willing), it should
9953 return false. Usually this method is called when the guest
9954 asks the VMM device whether a given video mode is supported
9955 so the information returned is directly exposed to the guest.
9956 It is important that this method returns very quickly.
9957 </desc>
9958 <param name="width" type="unsigned long" dir="in"/>
9959 <param name="height" type="unsigned long" dir="in"/>
9960 <param name="bpp" type="unsigned long" dir="in"/>
9961 <param name="supported" type="boolean" dir="return"/>
9962 </method>
9963
9964 <method name="solidFill">
9965 <desc>
9966 Fills the specified rectangle on screen with a solid color.
9967 </desc>
9968 <param name="x" type="unsigned long" dir="in"/>
9969 <param name="y" type="unsigned long" dir="in"/>
9970 <param name="width" type="unsigned long" dir="in"/>
9971 <param name="height" type="unsigned long" dir="in"/>
9972 <param name="color" type="unsigned long" dir="in"/>
9973 <param name="handled" type="boolean" dir="return"/>
9974 </method>
9975
9976 <method name="copyScreenBits">
9977 <desc>
9978 Copies specified rectangle on the screen.
9979 </desc>
9980 <param name="xDst" type="unsigned long" dir="in"/>
9981 <param name="yDst" type="unsigned long" dir="in"/>
9982 <param name="xSrc" type="unsigned long" dir="in"/>
9983 <param name="ySrc" type="unsigned long" dir="in"/>
9984 <param name="width" type="unsigned long" dir="in"/>
9985 <param name="height" type="unsigned long" dir="in"/>
9986 <param name="handled" type="boolean" dir="return"/>
9987 </method>
9988
9989 <method name="getVisibleRegion">
9990 <desc>
9991 Returns the visible region of this frame buffer.
9992
9993 If the @a rectangles parameter is <tt>NULL</tt> then the value of the
9994 @a count parameter is ignored and the number of elements necessary to
9995 describe the current visible region is returned in @a countCopied.
9996
9997 If @a rectangles is not <tt>NULL</tt> but @a count is less
9998 than the required number of elements to store region data, the method
9999 will report a failure. If @a count is equal or greater than the
10000 required number of elements, then the actual number of elements copied
10001 to the provided array will be returned in @a countCopied.
10002
10003 <note>
10004 The address of the provided array must be in the process space of
10005 this IFramebuffer object.
10006 </note>
10007 <note>
10008 Method not yet implemented.
10009 </note>
10010 </desc>
10011 <param name="rectangles" type="octet" mod="ptr" dir="in">
10012 <desc>Pointer to the <tt>RTRECT</tt> array to receive region data.</desc>
10013 </param>
10014 <param name="count" type="unsigned long" dir="in">
10015 <desc>Number of <tt>RTRECT</tt> elements in the @a rectangles array.</desc>
10016 </param>
10017 <param name="countCopied" type="unsigned long" dir="return">
10018 <desc>Number of elements copied to the @a rectangles array.</desc>
10019 </param>
10020 </method>
10021
10022 <method name="setVisibleRegion">
10023 <desc>
10024 Suggests a new visible region to this frame buffer. This region
10025 represents the area of the VM display which is a union of regions of
10026 all top-level windows of the guest operating system running inside the
10027 VM (if the Guest Additions for this system support this
10028 functionality). This information may be used by the frontends to
10029 implement the seamless desktop integration feature.
10030
10031 <note>
10032 The address of the provided array must be in the process space of
10033 this IFramebuffer object.
10034 </note>
10035 <note>
10036 The IFramebuffer implementation must make a copy of the provided
10037 array of rectangles.
10038 </note>
10039 <note>
10040 Method not yet implemented.
10041 </note>
10042 </desc>
10043 <param name="rectangles" type="octet" mod="ptr" dir="in">
10044 <desc>Pointer to the <tt>RTRECT</tt> array.</desc>
10045 </param>
10046 <param name="count" type="unsigned long" dir="in">
10047 <desc>Number of <tt>RTRECT</tt> elements in the @a rectangles array.</desc>
10048 </param>
10049 </method>
10050
10051 </interface>
10052
10053 <interface
10054 name="IFramebufferOverlay" extends="IFramebuffer"
10055 uuid="0bcc1c7e-e415-47d2-bfdb-e4c705fb0f47"
10056 wsmap="suppress"
10057 >
10058 <desc>
10059 The IFramebufferOverlay interface represents an alpha blended overlay
10060 for displaying status icons above an IFramebuffer. It is always created
10061 not visible, so that it must be explicitly shown. It only covers a
10062 portion of the IFramebuffer, determined by its width, height and
10063 co-ordinates. It is always in packed pixel little-endian 32bit ARGB (in
10064 that order) format, and may be written to directly. Do re-read the
10065 width though, after setting it, as it may be adjusted (increased) to
10066 make it more suitable for the front end.
10067 </desc>
10068 <attribute name="x" type="unsigned long" readonly="yes">
10069 <desc>X position of the overlay, relative to the frame buffer.</desc>
10070 </attribute>
10071
10072 <attribute name="y" type="unsigned long" readonly="yes">
10073 <desc>Y position of the overlay, relative to the frame buffer.</desc>
10074 </attribute>
10075
10076 <attribute name="visible" type="boolean" readonly="no">
10077 <desc>
10078 Whether the overlay is currently visible.
10079 </desc>
10080 </attribute>
10081
10082 <attribute name="alpha" type="unsigned long" readonly="no">
10083 <desc>
10084 The global alpha value for the overlay. This may or may not be
10085 supported by a given front end.
10086 </desc>
10087 </attribute>
10088
10089 <method name="move">
10090 <desc>
10091 Changes the overlay's position relative to the IFramebuffer.
10092 </desc>
10093 <param name="x" type="unsigned long" dir="in"/>
10094 <param name="y" type="unsigned long" dir="in"/>
10095 </method>
10096
10097 </interface>
10098
10099 <interface
10100 name="IDisplay" extends="$unknown"
10101 uuid="09789f63-4525-48e5-a5e4-1080453b0eab"
10102 wsmap="suppress"
10103 >
10104 <desc>
10105 The IDisplay interface represents the virtual machine's display.
10106
10107 The object implementing this interface is contained in each
10108 <link to="IConsole::display"/> attribute and represents the visual
10109 output of the virtual machine.
10110
10111 The virtual display supports pluggable output targets represented by the
10112 IFramebuffer interface. Examples of the output target are a window on
10113 the host computer or an RDP session's display on a remote computer.
10114 </desc>
10115 <attribute name="width" type="unsigned long" readonly="yes">
10116 <desc>Current display width.</desc>
10117 </attribute>
10118
10119 <attribute name="height" type="unsigned long" readonly="yes">
10120 <desc>Current display height.</desc>
10121 </attribute>
10122
10123 <attribute name="bitsPerPixel" type="unsigned long" readonly="yes">
10124 <desc>
10125 Current guest display color depth. Note that this may differ
10126 from <link to="IFramebuffer::bitsPerPixel"/>.
10127 </desc>
10128 </attribute>
10129
10130 <method name="setupInternalFramebuffer">
10131 <desc>
10132 Prepares an internally managed frame buffer.
10133 </desc>
10134 <param name="depth" type="unsigned long" dir="in"/>
10135 </method>
10136
10137 <method name="lockFramebuffer">
10138 <desc>
10139 Requests access to the internal frame buffer.
10140
10141 <result name="VBOX_E_NOT_SUPPORTED">
10142 Attempt to lock a non-internal frame buffer.
10143 </result>
10144
10145 </desc>
10146 <param name="address" type="octet" mod="ptr" dir="return"/>
10147 </method>
10148
10149 <method name="unlockFramebuffer">
10150 <desc>
10151 Releases access to the internal frame buffer.
10152
10153 <result name="VBOX_E_NOT_SUPPORTED">
10154 Attempt to unlock a non-internal frame buffer.
10155 </result>
10156
10157 </desc>
10158 </method>
10159
10160 <method name="registerExternalFramebuffer">
10161 <desc>
10162 Registers an external frame buffer.
10163 </desc>
10164 <param name="framebuffer" type="IFramebuffer" dir="in"/>
10165 </method>
10166
10167 <method name="setFramebuffer">
10168 <desc>
10169 Sets the framebuffer for given screen.
10170 </desc>
10171 <param name="screenId" type="unsigned long" dir="in"/>
10172 <param name="framebuffer" type="IFramebuffer" dir="in"/>
10173 </method>
10174
10175 <method name="getFramebuffer">
10176 <desc>
10177 Queries the framebuffer for given screen.
10178 </desc>
10179 <param name="screenId" type="unsigned long" dir="in"/>
10180 <param name="framebuffer" type="IFramebuffer" dir="out"/>
10181 <param name="xOrigin" type="long" dir="out"/>
10182 <param name="yOrigin" type="long" dir="out"/>
10183 </method>
10184
10185 <method name="setVideoModeHint">
10186 <desc>
10187 Asks VirtualBox to request the given video mode from
10188 the guest. This is just a hint and it cannot be guaranteed
10189 that the requested resolution will be used. Guest Additions
10190 are required for the request to be seen by guests. The caller
10191 should issue the request and wait for a resolution change and
10192 after a timeout retry.
10193
10194 Specifying <tt>0</tt> for either @a width, @a height or @a bitsPerPixel
10195 parameters means that the corresponding values should be taken from the
10196 current video mode (i.e. left unchanged).
10197
10198 If the guest OS supports multi-monitor configuration then the @a display
10199 parameter specifies the number of the guest display to send the hint to:
10200 <tt>0</tt> is the primary display, <tt>1</tt> is the first secondary and
10201 so on. If the multi-monitor configuration is not supported, @a display
10202 must be <tt>0</tt>.
10203
10204 <result name="E_INVALIDARG">
10205 The @a display is not associated with any monitor.
10206 </result>
10207
10208 </desc>
10209 <param name="width" type="unsigned long" dir="in"/>
10210 <param name="height" type="unsigned long" dir="in"/>
10211 <param name="bitsPerPixel" type="unsigned long" dir="in"/>
10212 <param name="display" type="unsigned long" dir="in"/>
10213 </method>
10214
10215 <method name="setSeamlessMode">
10216 <desc>
10217 Enables or disables seamless guest display rendering (seamless desktop
10218 integration) mode.
10219 <note>
10220 Calling this method has no effect if <link
10221 to="IGuest::supportsSeamless"/> returns <tt>false</tt>.
10222 </note>
10223 </desc>
10224 <param name="enabled" type="boolean" dir="in"/>
10225 </method>
10226
10227 <method name="takeScreenShot">
10228 <desc>
10229 Takes a screen shot of the requested size and copies it to the
10230 32-bpp buffer allocated by the caller.
10231
10232 <result name="E_NOTIMPL">
10233 Feature not implemented.
10234 </result>
10235 <result name="VBOX_E_IPRT_ERROR">
10236 Could not take a screenshot.
10237 </result>
10238
10239 </desc>
10240 <param name="address" type="octet" mod="ptr" dir="in"/>
10241 <param name="width" type="unsigned long" dir="in"/>
10242 <param name="height" type="unsigned long" dir="in"/>
10243 </method>
10244
10245 <method name="drawToScreen">
10246 <desc>
10247 Draws a 32-bpp image of the specified size from the given buffer
10248 to the given point on the VM display.
10249
10250 <result name="E_NOTIMPL">
10251 Feature not implemented.
10252 </result>
10253 <result name="VBOX_E_IPRT_ERROR">
10254 Could not draw to screen.
10255 </result>
10256
10257 </desc>
10258 <param name="address" type="octet" mod="ptr" dir="in"/>
10259 <param name="x" type="unsigned long" dir="in"/>
10260 <param name="y" type="unsigned long" dir="in"/>
10261 <param name="width" type="unsigned long" dir="in"/>
10262 <param name="height" type="unsigned long" dir="in"/>
10263 </method>
10264
10265 <method name="invalidateAndUpdate">
10266 <desc>
10267 Does a full invalidation of the VM display and instructs the VM
10268 to update it.
10269
10270 <result name="VBOX_E_IPRT_ERROR">
10271 Could not invalidate and update screen.
10272 </result>
10273
10274 </desc>
10275 </method>
10276
10277 <method name="resizeCompleted">
10278 <desc>
10279 Signals that a framebuffer has completed the resize operation.
10280
10281 <result name="VBOX_E_NOT_SUPPORTED">
10282 Operation only valid for external frame buffers.
10283 </result>
10284
10285 </desc>
10286 <param name="screenId" type="unsigned long" dir="in"/>
10287 </method>
10288
10289 <method name="updateCompleted">
10290 <desc>
10291 Signals that a framebuffer has completed the update operation.
10292
10293 <result name="VBOX_E_NOT_SUPPORTED">
10294 Operation only valid for external frame buffers.
10295 </result>
10296
10297 </desc>
10298 </method>
10299
10300 </interface>
10301
10302 <!--
10303 // INetworkAdapter
10304 /////////////////////////////////////////////////////////////////////////
10305 -->
10306
10307 <enum
10308 name="NetworkAttachmentType"
10309 uuid="64e770dc-dd1d-4879-9f12-5bd6bc879b78"
10310 >
10311 <desc>
10312 Network attachment type.
10313 </desc>
10314
10315 <const name="Null" value="0">
10316 <desc>Null value, also means "not attached".</desc>
10317 </const>
10318 <const name="NAT" value="1"/>
10319 <const name="HostInterface" value="2"/>
10320 <const name="Internal" value="3"/>
10321 <const name="HostOnly" value="4"/>
10322 </enum>
10323
10324 <enum
10325 name="NetworkAdapterType"
10326 uuid="156b17b9-5d61-4d54-be90-62e37dda848d"
10327 >
10328 <desc>
10329 Network adapter type.
10330 </desc>
10331
10332 <const name="Null" value="0">
10333 <desc>Null value (never used by the API).</desc>
10334 </const>
10335 <const name="Am79C970A" value="1"/>
10336 <const name="Am79C973" value="2"/>
10337 <const name="I82540EM" value="3"/>
10338 <const name="I82543GC" value="4"/>
10339 </enum>
10340
10341 <interface
10342 name="INetworkAdapter" extends="$unknown"
10343 uuid="4a1ee64e-6c5f-47dd-acfa-f834d7cb74fb"
10344 wsmap="managed"
10345 >
10346 <attribute name="adapterType" type="NetworkAdapterType">
10347 <desc>
10348 Type of the virtual network adapter. Depending on this value,
10349 VirtualBox will provide a different virtual network hardware
10350 to the guest.
10351 </desc>
10352 </attribute>
10353
10354 <attribute name="slot" type="unsigned long" readonly="yes">
10355 <desc>
10356 Slot number this adapter is plugged into. Corresponds to
10357 the value you pass to <link to="IMachine::getNetworkAdapter"/>
10358 to obtain this instance.
10359 </desc>
10360 </attribute>
10361
10362 <attribute name="enabled" type="boolean">
10363 <desc>
10364 Flag whether the network adapter is present in the
10365 guest system. If disabled, the virtual guest hardware will
10366 not contain this network adapter. Can only be changed when
10367 the VM is not running.
10368 </desc>
10369 </attribute>
10370
10371 <attribute name="MACAddress" type="wstring">
10372 <desc>
10373 Ethernet MAC address of the adapter, 12 hexadecimal characters. When setting
10374 it to NULL, VirtualBox will generate a unique MAC address.
10375 </desc>
10376 </attribute>
10377
10378 <attribute name="attachmentType" type="NetworkAttachmentType" readonly="yes"/>
10379
10380 <attribute name="hostInterface" type="wstring">
10381 <desc>
10382 Name of the host network interface the VM is attached to.
10383 </desc>
10384 </attribute>
10385
10386 <attribute name="internalNetwork" type="wstring">
10387 <desc>
10388 Name of the internal network the VM is attached to.
10389 </desc>
10390 </attribute>
10391
10392 <attribute name="NATNetwork" type="wstring">
10393 <desc>
10394 Name of the NAT network the VM is attached to.
10395 </desc>
10396 </attribute>
10397
10398 <attribute name="cableConnected" type="boolean">
10399 <desc>
10400 Flag whether the adapter reports the cable as connected or not.
10401 It can be used to report offline situations to a VM.
10402 </desc>
10403 </attribute>
10404
10405 <attribute name="lineSpeed" type="unsigned long">
10406 <desc>
10407 Line speed reported by custom drivers, in units of 1 kbps.
10408 </desc>
10409 </attribute>
10410
10411 <attribute name="traceEnabled" type="boolean">
10412 <desc>
10413 Flag whether network traffic from/to the network card should be traced.
10414 Can only be toggled when the VM is turned off.
10415 </desc>
10416 </attribute>
10417
10418 <attribute name="traceFile" type="wstring">
10419 <desc>
10420 Filename where a network trace will be stored. If not set, VBox-pid.pcap
10421 will be used.
10422 </desc>
10423 </attribute>
10424
10425 <method name="attachToNAT">
10426 <desc>
10427 Attach the network adapter to the Network Address Translation (NAT) interface.
10428 </desc>
10429 </method>
10430
10431 <method name="attachToHostInterface">
10432 <desc>
10433 Attach the network adapter to a host interface.
10434 </desc>
10435 </method>
10436
10437 <method name="attachToInternalNetwork">
10438 <desc>
10439 Attach the network adapter to an internal network.
10440 </desc>
10441 </method>
10442
10443 <method name="attachToHostOnlyNetwork">
10444 <desc>
10445 Attach the network adapter to the host-only network.
10446 </desc>
10447 </method>
10448
10449 <method name="detach">
10450 <desc>
10451 Detach the network adapter
10452 </desc>
10453 </method>
10454 </interface>
10455
10456
10457 <!--
10458 // ISerialPort
10459 /////////////////////////////////////////////////////////////////////////
10460 -->
10461
10462 <enum
10463 name="PortMode"
10464 uuid="b266f43c-2e93-46b3-812b-c20e600e867b"
10465 >
10466 <desc>
10467 The PortMode enumeration represents possible communication modes for
10468 the virtual serial port device.
10469 </desc>
10470
10471 <const name="Disconnected" value="0">
10472 <desc>Virtual device is not attached to any real host device.</desc>
10473 </const>
10474 <const name="HostPipe" value="1">
10475 <desc>Virtual device is attached to a host pipe.</desc>
10476 </const>
10477 <const name="HostDevice" value="2">
10478 <desc>Virtual device is attached to a host device.</desc>
10479 </const>
10480 </enum>
10481
10482 <interface
10483 name="ISerialPort" extends="$unknown"
10484 uuid="937f6970-5103-4745-b78e-d28dcf1479a8"
10485 wsmap="managed"
10486 >
10487
10488 <desc>
10489 The ISerialPort interface represents the virtual serial port device.
10490
10491 The virtual serial port device acts like an ordinary serial port
10492 inside the virtual machine. This device communicates to the real
10493 serial port hardware in one of two modes: host pipe or host device.
10494
10495 In host pipe mode, the #path attribute specifies the path to the pipe on
10496 the host computer that represents a serial port. The #server attribute
10497 determines if this pipe is created by the virtual machine process at
10498 machine startup or it must already exist before starting machine
10499 execution.
10500
10501 In host device mode, the #path attribute specifies the name of the
10502 serial port device on the host computer.
10503
10504 There is also a third communication mode: the disconnected mode. In this
10505 mode, the guest OS running inside the virtual machine will be able to
10506 detect the serial port, but all port write operations will be discarded
10507 and all port read operations will return no data.
10508
10509 <see>IMachine::getSerialPort</see>
10510 </desc>
10511
10512 <attribute name="slot" type="unsigned long" readonly="yes">
10513 <desc>
10514 Slot number this serial port is plugged into. Corresponds to
10515 the value you pass to <link to="IMachine::getSerialPort"/>
10516 to obtain this instance.
10517 </desc>
10518 </attribute>
10519
10520 <attribute name="enabled" type="boolean">
10521 <desc>
10522 Flag whether the serial port is enabled. If disabled,
10523 the serial port will not be reported to the guest OS.
10524 </desc>
10525 </attribute>
10526
10527 <attribute name="IOBase" type="unsigned long">
10528 <desc>Base I/O address of the serial port.</desc>
10529 </attribute>
10530
10531 <attribute name="IRQ" type="unsigned long">
10532 <desc>IRQ number of the serial port.</desc>
10533 </attribute>
10534
10535 <attribute name="hostMode" type="PortMode">
10536 <desc>
10537 How is this port connected to the host.
10538 <note>
10539 Changing this attribute may fail if the conditions for
10540 <link to="#path"/> are not met.
10541 </note>
10542 </desc>
10543 </attribute>
10544
10545 <attribute name="server" type="boolean">
10546 <desc>
10547 Flag whether this serial port acts as a server (creates a new pipe on
10548 the host) or as a client (uses the existing pipe). This attribute is
10549 used only when <link to="#hostMode"/> is PortMode_HostPipe.
10550 </desc>
10551 </attribute>
10552
10553 <attribute name="path" type="wstring">
10554 <desc>
10555 Path to the serial port's pipe on the host when <link to="#hostMode"/> is
10556 PortMode_HostPipe, or the host serial device name when
10557 <link to="#hostMode"/> is PortMode_HostDevice. In either of the above
10558 cases, setting a @c null or an empty string as the attribute's value
10559 will result into an error. Otherwise, the value of this property is
10560 ignored.
10561 </desc>
10562 </attribute>
10563
10564 </interface>
10565
10566 <!--
10567 // IParallelPort
10568 /////////////////////////////////////////////////////////////////////////
10569 -->
10570
10571 <interface
10572 name="IParallelPort" extends="$unknown"
10573 uuid="0c925f06-dd10-4b77-8de8-294d738c3214"
10574 wsmap="managed"
10575 >
10576
10577 <desc>
10578 The IParallelPort interface represents the virtual parallel port device.
10579
10580 The virtual parallel port device acts like an ordinary parallel port
10581 inside the virtual machine. This device communicates to the real
10582 parallel port hardware using the name of the parallel device on the host
10583 computer specified in the #path attribute.
10584
10585 Each virtual parallel port device is assigned a base I/O address and an
10586 IRQ number that will be reported to the guest operating system and used
10587 to operate the given parallel port from within the virtual machine.
10588
10589 <see>IMachine::getParallelPort</see>
10590 </desc>
10591
10592 <attribute name="slot" type="unsigned long" readonly="yes">
10593 <desc>
10594 Slot number this parallel port is plugged into. Corresponds to
10595 the value you pass to <link to="IMachine::getParallelPort"/>
10596 to obtain this instance.
10597 </desc>
10598 </attribute>
10599
10600 <attribute name="enabled" type="boolean">
10601 <desc>
10602 Flag whether the parallel port is enabled. If disabled,
10603 the parallel port will not be reported to the guest OS.
10604 </desc>
10605 </attribute>
10606
10607 <attribute name="IOBase" type="unsigned long">
10608 <desc>Base I/O address of the parallel port.</desc>
10609 </attribute>
10610
10611 <attribute name="IRQ" type="unsigned long">
10612 <desc>IRQ number of the parallel port.</desc>
10613 </attribute>
10614
10615 <attribute name="path" type="wstring">
10616 <desc>
10617 Host parallel device name. If this parallel port is enabled, setting a
10618 @c null or an empty string as this attribute's value will result into
10619 an error.
10620 </desc>
10621 </attribute>
10622
10623 </interface>
10624
10625
10626 <!--
10627 // IMachineDebugger
10628 /////////////////////////////////////////////////////////////////////////
10629 -->
10630
10631 <interface
10632 name="IMachineDebugger" extends="$unknown"
10633 uuid="b0b2a2dd-0627-4502-91c2-ddc5e77609e0"
10634 wsmap="suppress"
10635 >
10636 <method name="resetStats">
10637 <desc>
10638 Reset VM statistics.
10639 </desc>
10640 <param name="pattern" type="wstring" dir="in">
10641 <desc>The selection pattern. A bit similar to filename globbing.</desc>
10642 </param>
10643 </method>
10644
10645 <method name="dumpStats">
10646 <desc>
10647 Dumps VM statistics.
10648 </desc>
10649 <param name="pattern" type="wstring" dir="in">
10650 <desc>The selection pattern. A bit similar to filename globbing.</desc>
10651 </param>
10652 </method>
10653
10654 <method name="getStats">
10655 <desc>
10656 Get the VM statistics in a XMLish format.
10657 </desc>
10658 <param name="pattern" type="wstring" dir="in">
10659 <desc>The selection pattern. A bit similar to filename globbing.</desc>
10660 </param>
10661 <param name="withDescriptions" type="boolean" dir="in">
10662 <desc>Whether to include the descriptions.</desc>
10663 </param>
10664 <param name="stats" type="wstring" dir="out">
10665 <desc>The XML document containing the statistics.</desc>
10666 </param>
10667 </method>
10668
10669 <method name="injectNMI">
10670 <desc>
10671 Inject an NMI into a running VT-x/AMD-V VM.
10672 </desc>
10673 </method>
10674
10675 <attribute name="singlestep" type="boolean">
10676 <desc>Switch for enabling singlestepping.</desc>
10677 </attribute>
10678
10679 <attribute name="recompileUser" type="boolean">
10680 <desc>Switch for forcing code recompilation for user mode code.</desc>
10681 </attribute>
10682
10683 <attribute name="recompileSupervisor" type="boolean">
10684 <desc>Switch for forcing code recompilation for supervisor mode code.</desc>
10685 </attribute>
10686
10687 <attribute name="PATMEnabled" type="boolean">
10688 <desc>Switch for enabling and disabling the PATM component.</desc>
10689 </attribute>
10690
10691 <attribute name="CSAMEnabled" type="boolean">
10692 <desc>Switch for enabling and disabling the CSAM component.</desc>
10693 </attribute>
10694
10695 <attribute name="logEnabled" type="boolean">
10696 <desc>Switch for enabling and disabling logging.</desc>
10697 </attribute>
10698
10699 <attribute name="HWVirtExEnabled" type="boolean" readonly="yes">
10700 <desc>
10701 Flag indicating whether the VM is currently making use of CPU hardware
10702 virtualization extensions.
10703 </desc>
10704 </attribute>
10705
10706 <attribute name="HWVirtExNestedPagingEnabled" type="boolean" readonly="yes">
10707 <desc>
10708 Flag indicating whether the VM is currently making use of the nested paging
10709 CPU hardware virtualization extension.
10710 </desc>
10711 </attribute>
10712
10713 <attribute name="HWVirtExVPIDEnabled" type="boolean" readonly="yes">
10714 <desc>
10715 Flag indicating whether the VM is currently making use of the VPID
10716 VT-x extension.
10717 </desc>
10718 </attribute>
10719
10720 <attribute name="PAEEnabled" type="boolean" readonly="yes">
10721 <desc>
10722 Flag indicating whether the VM is currently making use of the Physical
10723 Address Extension CPU feature.
10724 </desc>
10725 </attribute>
10726
10727 <attribute name="virtualTimeRate" type="unsigned long">
10728 <desc>
10729 The rate at which the virtual time runs expressed as a percentage.
10730 The accepted range is 2% to 20000%.
10731 </desc>
10732 </attribute>
10733
10734 <!-- @todo method for setting log flags, groups and destination! -->
10735
10736 <attribute name="VM" type="unsigned long long" readonly="yes">
10737 <desc>
10738 Gets the VM handle. This is only for internal use while
10739 we carve the details of this interface.
10740 </desc>
10741 </attribute>
10742
10743 </interface>
10744
10745 <!--
10746 // IUSBController
10747 /////////////////////////////////////////////////////////////////////////
10748 -->
10749
10750 <interface
10751 name="IUSBController" extends="$unknown"
10752 uuid="f4c2d3dc-f109-4da7-93b1-ec28973ac89f"
10753 wsmap="managed"
10754 >
10755 <attribute name="enabled" type="boolean">
10756 <desc>
10757 Flag whether the USB controller is present in the
10758 guest system. If disabled, the virtual guest hardware will
10759 not contain any USB controller. Can only be changed when
10760 the VM is powered off.
10761 </desc>
10762 </attribute>
10763
10764 <attribute name="enabledEhci" type="boolean">
10765 <desc>
10766 Flag whether the USB EHCI controller is present in the
10767 guest system. If disabled, the virtual guest hardware will
10768 not contain a USB EHCI controller. Can only be changed when
10769 the VM is powered off.
10770 </desc>
10771 </attribute>
10772
10773 <attribute name="USBStandard" type="unsigned short" readonly="yes">
10774 <desc>
10775 USB standard version which the controller implements.
10776 This is a BCD which means that the major version is in the
10777 high byte and minor version is in the low byte.
10778 </desc>
10779 </attribute>
10780
10781 <attribute name="deviceFilters" type="IUSBDeviceFilterCollection" readonly="yes">
10782 <desc>
10783 List of USB device filters associated with the machine.
10784
10785 If the machine is currently running, these filters are activated
10786 every time a new (supported) USB device is attached to the host
10787 computer that was not ignored by global filters
10788 (<link to="IHost::USBDeviceFilters"/>).
10789
10790 These filters are also activated when the machine is powered up.
10791 They are run against a list of all currently available USB
10792 devices (in states
10793 <link to="USBDeviceState_Available"/>,
10794 <link to="USBDeviceState_Busy"/>,
10795 <link to="USBDeviceState_Held"/>) that were not previously
10796 ignored by global filters.
10797
10798 If at least one filter matches the USB device in question, this
10799 device is automatically captured (attached to) the virtual USB
10800 controller of this machine.
10801
10802 <see>IUSBDeviceFilter, ::IUSBController</see>
10803 </desc>
10804 </attribute>
10805
10806 <method name="createDeviceFilter">
10807 <desc>
10808 Creates a new USB device filter. All attributes except
10809 the filter name are set to <tt>null</tt> (any match),
10810 <i>active</i> is <tt>false</tt> (the filter is not active).
10811
10812 The created filter can then be added to the list of filters using
10813 <link to="#insertDeviceFilter"/>.
10814
10815 <result name="VBOX_E_INVALID_VM_STATE">
10816 The virtual machine is not mutable.
10817 </result>
10818
10819 <see>#deviceFilters</see>
10820 </desc>
10821 <param name="name" type="wstring" dir="in">
10822 <desc>
10823 Filter name. See <link to="IUSBDeviceFilter::name"/>
10824 for more info.
10825 </desc>
10826 </param>
10827 <param name="filter" type="IUSBDeviceFilter" dir="return">
10828 <desc>Created filter object.</desc>
10829 </param>
10830 </method>
10831
10832 <method name="insertDeviceFilter">
10833 <desc>
10834 Inserts the given USB device to the specified position
10835 in the list of filters.
10836
10837 Positions are numbered starting from <tt>0</tt>. If the specified
10838 position is equal to or greater than the number of elements in
10839 the list, the filter is added to the end of the collection.
10840
10841 <note>
10842 Duplicates are not allowed, so an attempt to insert a
10843 filter that is already in the collection, will return an
10844 error.
10845 </note>
10846
10847 <result name="VBOX_E_INVALID_VM_STATE">
10848 Virtual machine is not mutable.
10849 </result>
10850 <result name="E_INVALIDARG">
10851 USB device filter not created within this VirtualBox instance.
10852 </result>
10853 <result name="VBOX_E_INVALID_OBJECT_STATE">
10854 USB device filter already in list.
10855 </result>
10856
10857 <see>#deviceFilters</see>
10858 </desc>
10859 <param name="position" type="unsigned long" dir="in">
10860 <desc>Position to insert the filter to.</desc>
10861 </param>
10862 <param name="filter" type="IUSBDeviceFilter" dir="in">
10863 <desc>USB device filter to insert.</desc>
10864 </param>
10865 </method>
10866
10867 <method name="removeDeviceFilter">
10868 <desc>
10869 Removes a USB device filter from the specified position in the
10870 list of filters.
10871
10872 Positions are numbered starting from <tt>0</tt>. Specifying a
10873 position equal to or greater than the number of elements in
10874 the list will produce an error.
10875
10876 <see>#deviceFilters</see>
10877
10878 <result name="VBOX_E_INVALID_VM_STATE">
10879 Virtual machine is not mutable.
10880 </result>
10881 <result name="E_INVALIDARG">
10882 USB device filter list empty or invalid @a position.
10883 </result>
10884
10885 </desc>
10886 <param name="position" type="unsigned long" dir="in">
10887 <desc>Position to remove the filter from.</desc>
10888 </param>
10889 <param name="filter" type="IUSBDeviceFilter" dir="return">
10890 <desc>Removed USB device filter.</desc>
10891 </param>
10892 </method>
10893
10894 </interface>
10895
10896
10897 <!--
10898 // IUSBDevice
10899 /////////////////////////////////////////////////////////////////////////
10900 -->
10901
10902 <enumerator
10903 name="IUSBDeviceEnumerator" type="IUSBDevice"
10904 uuid="aefe00f7-eb8a-454b-9ea4-fd5ad93c0e99"
10905 />
10906
10907 <collection
10908 name="IUSBDeviceCollection" type="IUSBDevice"
10909 enumerator="IUSBDeviceEnumerator"
10910 uuid="e31f3248-90dd-4ca2-95f0-6b36042d96a2"
10911 readonly="yes"
10912 >
10913 <method name="findById">
10914 <desc>
10915 Searches this collection for a USB device with the given UUID.
10916 <note>
10917 The method returns an error if the given UUID does not
10918 correspond to any USB device in the collection.
10919 </note>
10920 <see>IUSBDevice::id</see>
10921 </desc>
10922 <param name="id" type="uuid" dir="in">
10923 <desc>UUID of the USB device to search for.</desc>
10924 </param>
10925 <param name="device" type="IUSBDevice" dir="return">
10926 <desc>Found USB device object.</desc>
10927 </param>
10928 </method>
10929
10930 <method name="findByAddress">
10931 <desc>
10932 Searches this collection for a USB device with the given
10933 host address.
10934 <note>
10935 The method returns an error if the given address does not
10936 correspond to any USB device in the collection.
10937 </note>
10938 <see>IUSBDevice::address</see>
10939 </desc>
10940 <param name="name" type="wstring" dir="in">
10941 <desc>
10942 Address of the USB device (as assigned by the host) to
10943 search for.
10944 </desc>
10945 </param>
10946 <param name="device" type="IUSBDevice" dir="return">
10947 <desc>Found USB device object.</desc>
10948 </param>
10949 </method>
10950
10951 </collection>
10952
10953 <interface
10954 name="IUSBDevice" extends="$unknown"
10955 uuid="850af07b-9ee8-48c2-b6b0-f6d0acbf63c3"
10956 wsmap="managed"
10957 >
10958 <desc>
10959 The IUSBDevice interface represents a virtual USB device attached to the
10960 virtual machine.
10961
10962 A collection of objects implementing this interface is stored in the
10963 <link to="IConsole::USBDevices"/> attribute which lists all USB devices
10964 attached to a running virtual machine's USB controller.
10965 </desc>
10966
10967 <attribute name="id" type="uuid" readonly="yes">
10968 <desc>
10969 Unique USB device ID. This ID is built from #vendorId,
10970 #productId, #revision and #serialNumber.
10971 </desc>
10972 </attribute>
10973
10974 <attribute name="vendorId" type="unsigned short" readonly="yes">
10975 <desc>Vendor ID.</desc>
10976 </attribute>
10977
10978 <attribute name="productId" type="unsigned short" readonly="yes">
10979 <desc>Product ID.</desc>
10980 </attribute>
10981
10982 <attribute name="revision" type="unsigned short" readonly="yes">
10983 <desc>
10984 Product revision number. This is a packed BCD represented as
10985 unsigned short. The high byte is the integer part and the low
10986 byte is the decimal.
10987 </desc>
10988 </attribute>
10989
10990 <attribute name="manufacturer" type="wstring" readonly="yes">
10991 <desc>Manufacturer string.</desc>
10992 </attribute>
10993
10994 <attribute name="product" type="wstring" readonly="yes">
10995 <desc>Product string.</desc>
10996 </attribute>
10997
10998 <attribute name="serialNumber" type="wstring" readonly="yes">
10999 <desc>Serial number string.</desc>
11000 </attribute>
11001
11002 <attribute name="address" type="wstring" readonly="yes">
11003 <desc>Host specific address of the device.</desc>
11004 </attribute>
11005
11006 <attribute name="port" type="unsigned short" readonly="yes">
11007 <desc>
11008 Host USB port number the device is physically
11009 connected to.
11010 </desc>
11011 </attribute>
11012
11013 <attribute name="version" type="unsigned short" readonly="yes">
11014 <desc>
11015 The major USB version of the device - 1 or 2.
11016 </desc>
11017 </attribute>
11018
11019 <attribute name="portVersion" type="unsigned short" readonly="yes">
11020 <desc>
11021 The major USB version of the host USB port the device is
11022 physically connected to - 1 or 2. For devices not connected to
11023 anything this will have the same value as the version attribute.
11024 </desc>
11025 </attribute>
11026
11027 <attribute name="remote" type="boolean" readonly="yes">
11028 <desc>
11029 Whether the device is physically connected to a remote VRDP
11030 client or to a local host machine.
11031 </desc>
11032 </attribute>
11033
11034 </interface>
11035
11036
11037 <!--
11038 // IUSBDeviceFilter
11039 /////////////////////////////////////////////////////////////////////////
11040 -->
11041
11042 <enumerator
11043 name="IUSBDeviceFilterEnumerator" type="IUSBDeviceFilter"
11044 uuid="d5109c61-93e7-4726-926b-0dee1020da56"
11045 />
11046
11047 <collection
11048 name="IUSBDeviceFilterCollection" type="IUSBDeviceFilter"
11049 enumerator="IUSBDeviceFilterEnumerator"
11050 uuid="4fa3fc99-ceb1-4bf5-a9cb-e962d825c1ef"
11051 readonly="yes"
11052 />
11053
11054 <interface
11055 name="IUSBDeviceFilter" extends="$unknown"
11056 uuid="d6831fb4-1a94-4c2c-96ef-8d0d6192066d"
11057 wsmap="managed"
11058 >
11059 <desc>
11060 The IUSBDeviceFilter interface represents an USB device filter used
11061 to perform actions on a group of USB devices.
11062
11063 This type of filters is used by running virtual machines to
11064 automatically capture selected USB devices once they are physically
11065 attached to the host computer.
11066
11067 A USB device is matched to the given device filter if and only if all
11068 attributes of the device match the corresponding attributes of the
11069 filter (that is, attributes are joined together using the logical AND
11070 operation). On the other hand, all together, filters in the list of
11071 filters carry the semantics of the logical OR operation. So if it is
11072 desirable to create a match like "this vendor id OR this product id",
11073 one needs to create two filters and specify "any match" (see below)
11074 for unused attributes.
11075
11076 All filter attributes used for matching are strings. Each string
11077 is an expression representing a set of values of the corresponding
11078 device attribute, that will match the given filter. Currently, the
11079 following filtering expressions are supported:
11080
11081 <ul>
11082 <li><i>Interval filters</i>. Used to specify valid intervals for
11083 integer device attributes (Vendor ID, Product ID and Revision).
11084 The format of the string is:
11085
11086 <tt>int:((m)|([m]-[n]))(,(m)|([m]-[n]))*</tt>
11087
11088 where <tt>m</tt> and <tt>n</tt> are integer numbers, either in octal
11089 (starting from <tt>0</tt>), hexadecimal (starting from <tt>0x</tt>)
11090 or decimal (otherwise) form, so that <tt>m &lt; n</tt>. If <tt>m</tt>
11091 is omitted before a dash (<tt>-</tt>), the minimum possible integer
11092 is assumed; if <tt>n</tt> is omitted after a dash, the maximum
11093 possible integer is assumed.
11094 </li>
11095 <li><i>Boolean filters</i>. Used to specify acceptable values for
11096 boolean device attributes. The format of the string is:
11097
11098 <tt>true|false|yes|no|0|1</tt>
11099
11100 </li>
11101 <li><i>Exact match</i>. Used to specify a single value for the given
11102 device attribute. Any string that doesn't start with <tt>int:</tt>
11103 represents the exact match. String device attributes are compared to
11104 this string including case of symbols. Integer attributes are first
11105 converted to a string (see individual filter attributes) and then
11106 compared ignoring case.
11107
11108 </li>
11109 <li><i>Any match</i>. Any value of the corresponding device attribute
11110 will match the given filter. An empty or <tt>null</tt> string is
11111 used to construct this type of filtering expressions.
11112
11113 </li>
11114 </ul>
11115
11116 <note>
11117 On the Windows host platform, interval filters are not currently
11118 available. Also all string filter attributes
11119 (<link to="#manufacturer"/>, <link to="#product"/>,
11120 <link to="#serialNumber"/>) are ignored, so they behave as
11121 <i>any match</i> no matter what string expression is specified.
11122 </note>
11123
11124 <see>IUSBController::deviceFilters, IHostUSBDeviceFilter</see>
11125 </desc>
11126
11127 <attribute name="name" type="wstring">
11128 <desc>
11129 Visible name for this filter.
11130 This name is used to visually distinguish one filter from another,
11131 so it can neither be <tt>null</tt> nor an empty string.
11132 </desc>
11133 </attribute>
11134
11135 <attribute name="active" type="boolean">
11136 <desc>Whether this filter active or has been temporarily disabled.</desc>
11137 </attribute>
11138
11139 <attribute name="vendorId" type="wstring">
11140 <desc>
11141 <link to="IUSBDevice::vendorId">Vendor ID</link> filter.
11142 The string representation for the <i>exact matching</i>
11143 has the form <tt>XXXX</tt>, where <tt>X</tt> is the hex digit
11144 (including leading zeroes).
11145 </desc>
11146 </attribute>
11147
11148 <attribute name="productId" type="wstring">
11149 <desc>
11150 <link to="IUSBDevice::productId">Product ID</link> filter.
11151 The string representation for the <i>exact matching</i>
11152 has the form <tt>XXXX</tt>, where <tt>X</tt> is the hex digit
11153 (including leading zeroes).
11154 </desc>
11155 </attribute>
11156
11157 <attribute name="revision" type="wstring">
11158 <desc>
11159 <link to="IUSBDevice::productId">Product revision number</link>
11160 filter. The string representation for the <i>exact matching</i>
11161 has the form <tt>IIFF</tt>, where <tt>I</tt> is the decimal digit
11162 of the integer part of the revision, and <tt>F</tt> is the
11163 decimal digit of its fractional part (including leading and
11164 trailing zeros).
11165 Note that for interval filters, it's best to use the hexadecimal
11166 form, because the revision is stored as a 16 bit packed BCD value;
11167 so the expression <tt>int:0x0100-0x0199</tt> will match any
11168 revision from <tt>1.0</tt> to <tt>1.99</tt>.
11169 </desc>
11170 </attribute>
11171
11172 <attribute name="manufacturer" type="wstring">
11173 <desc>
11174 <link to="IUSBDevice::manufacturer">Manufacturer</link> filter.
11175 </desc>
11176 </attribute>
11177
11178 <attribute name="product" type="wstring">
11179 <desc>
11180 <link to="IUSBDevice::product">Product</link> filter.
11181 </desc>
11182 </attribute>
11183
11184 <attribute name="serialNumber" type="wstring">
11185 <desc>
11186 <link to="IUSBDevice::serialNumber">Serial number</link> filter.
11187 </desc>
11188 </attribute>
11189
11190 <attribute name="port" type="wstring">
11191 <desc>
11192 <link to="IUSBDevice::port">Host USB port</link> filter.
11193 </desc>
11194 </attribute>
11195
11196 <attribute name="remote" type="wstring">
11197 <desc>
11198 <link to="IUSBDevice::remote">Remote state</link> filter.
11199 <note>
11200 This filter makes sense only for machine USB filters,
11201 i.e. it is ignored by IHostUSBDeviceFilter objects.
11202 </note>
11203 </desc>
11204 </attribute>
11205
11206 <attribute name="maskedInterfaces" type="unsigned long">
11207 <desc>
11208 This is an advanced option for hiding one or more USB interfaces
11209 from the guest. The value is a bit mask where the bits that are set
11210 means the corresponding USB interface should be hidden, masked off
11211 if you like.
11212 This feature only works on Linux hosts.
11213 </desc>
11214 </attribute>
11215
11216 </interface>
11217
11218
11219 <!--
11220 // IHostUSBDevice
11221 /////////////////////////////////////////////////////////////////////////
11222 -->
11223
11224 <enum
11225 name="USBDeviceState"
11226 uuid="b99a2e65-67fb-4882-82fd-f3e5e8193ab4"
11227 >
11228 <desc>
11229 USB device state. This enumeration represents all possible states
11230 of the USB device physically attached to the host computer regarding
11231 its state on the host computer and availability to guest computers
11232 (all currently running virtual machines).
11233
11234 Once a supported USB device is attached to the host, global USB
11235 filters (<link to="IHost::USBDeviceFilters"/>) are activated. They can
11236 either ignore the device, or put it to USBDeviceState_Held state, or do
11237 nothing. Unless the device is ignored by global filters, filters of all
11238 currently running guests (<link to="IUSBController::deviceFilters"/>) are
11239 activated that can put it to USBDeviceState_Captured state.
11240
11241 If the device was ignored by global filters, or didn't match
11242 any filters at all (including guest ones), it is handled by the host
11243 in a normal way. In this case, the device state is determined by
11244 the host and can be one of USBDeviceState_Unavailable, USBDeviceState_Busy
11245 or USBDeviceState_Available, depending on the current device usage.
11246
11247 Besides auto-capturing based on filters, the device can be manually
11248 captured by guests (<link to="IConsole::attachUSBDevice"/>) if its
11249 state is USBDeviceState_Busy, USBDeviceState_Available or
11250 USBDeviceState_Held.
11251
11252 <note>
11253 Due to differences in USB stack implementations in Linux and Win32,
11254 states USBDeviceState_Busy and USBDeviceState_vailable are applicable
11255 only to the Linux version of the product. This also means that (<link
11256 to="IConsole::attachUSBDevice"/>) can only succeed on Win32 if the
11257 device state is USBDeviceState_Held.
11258 </note>
11259
11260 <see>IHostUSBDevice, IHostUSBDeviceFilter</see>
11261 </desc>
11262
11263 <const name="NotSupported" value="0">
11264 <desc>
11265 Not supported by the VirtualBox server, not available to guests.
11266 </desc>
11267 </const>
11268 <const name="Unavailable" value="1">
11269 <desc>
11270 Being used by the host computer exclusively,
11271 not available to guests.
11272 </desc>
11273 </const>
11274 <const name="Busy" value="2">
11275 <desc>
11276 Being used by the host computer, potentially available to guests.
11277 </desc>
11278 </const>
11279 <const name="Available" value="3">
11280 <desc>
11281 Not used by the host computer, available to guests (the host computer
11282 can also start using the device at any time).
11283 </desc>
11284 </const>
11285 <const name="Held" value="4">
11286 <desc>
11287 Held by the VirtualBox server (ignored by the host computer),
11288 available to guests.
11289 </desc>
11290 </const>
11291 <const name="Captured" value="5">
11292 <desc>
11293 Captured by one of the guest computers, not available
11294 to anybody else.
11295 </desc>
11296 </const>
11297 </enum>
11298
11299 <enumerator
11300 name="IHostUSBDeviceEnumerator" type="IHostUSBDevice"
11301 uuid="a0c55136-939f-4d20-b9d3-4d406f08bfa5"
11302 />
11303
11304 <collection
11305 name="IHostUSBDeviceCollection" type="IHostUSBDevice"
11306 enumerator="IHostUSBDeviceEnumerator"
11307 uuid="f9d3f96d-b027-4994-b589-70bb9ee0d364"
11308 readonly="yes"
11309 >
11310 <method name="findById">
11311 <desc>
11312 Searches this collection for a USB device with the given UUID.
11313 <note>
11314 The method returns an error if the given UUID does not
11315 correspond to any USB device in the collection.
11316 </note>
11317 <see>IHostUSBDevice::id</see>
11318 </desc>
11319 <param name="id" type="uuid" dir="in">
11320 <desc>UUID of the USB device to search for.</desc>
11321 </param>
11322 <param name="device" type="IHostUSBDevice" dir="return">
11323 <desc>Found USB device object.</desc>
11324 </param>
11325 </method>
11326
11327 <method name="findByAddress">
11328 <desc>
11329 Searches this collection for a USB device with the given
11330 host address.
11331 <note>
11332 The method returns an error if the given address does not
11333 correspond to any USB device in the collection.
11334 </note>
11335 <see>IHostUSBDevice::address</see>
11336 </desc>
11337 <param name="name" type="wstring" dir="in">
11338 <desc>
11339 Address of the USB device (as assigned by the host) to
11340 search for.
11341 </desc>
11342 </param>
11343 <param name="device" type="IHostUSBDevice" dir="return">
11344 <desc>Found USB device object.</desc>
11345 </param>
11346 </method>
11347
11348 </collection>
11349
11350 <interface
11351 name="IHostUSBDevice" extends="IUSBDevice"
11352 uuid="173b4b44-d268-4334-a00d-b6521c9a740a"
11353 wsmap="managed"
11354 >
11355 <desc>
11356 The IHostUSBDevice interface represents a physical USB device attached
11357 to the host computer.
11358
11359 Besides properties inherited from IUSBDevice, this interface adds the
11360 <link to="#state"/> property that holds the current state of the USB
11361 device.
11362
11363 <see>IHost::USBDevices, IHost::USBDeviceFilters</see>
11364 </desc>
11365
11366 <attribute name="state" type="USBDeviceState" readonly="yes">
11367 <desc>
11368 Current state of the device.
11369 </desc>
11370 </attribute>
11371
11372 <!-- @todo add class, subclass, bandwidth, configs, interfaces endpoints and such later. -->
11373
11374 </interface>
11375
11376
11377 <!--
11378 // IHostUSBDeviceFilter
11379 /////////////////////////////////////////////////////////////////////////
11380 -->
11381
11382 <enum
11383 name="USBDeviceFilterAction"
11384 uuid="cbc30a49-2f4e-43b5-9da6-121320475933"
11385 >
11386 <desc>
11387 Actions for host USB device filters.
11388 <see>IHostUSBDeviceFilter, USBDeviceState</see>
11389 </desc>
11390
11391 <const name="Null" value="0">
11392 <desc>Null value (never used by the API).</desc>
11393 </const>
11394 <const name="Ignore" value="1">
11395 <desc>Ignore the matched USB device.</desc>
11396 </const>
11397 <const name="Hold" value="2">
11398 <desc>Hold the matched USB device.</desc>
11399 </const>
11400 </enum>
11401
11402 <enumerator
11403 name="IHostUSBDeviceFilterEnumerator" type="IHostUSBDeviceFilter"
11404 uuid="ff735211-903e-4642-9c37-189eb44579fe"
11405 />
11406
11407 <collection
11408 name="IHostUSBDeviceFilterCollection" type="IHostUSBDeviceFilter"
11409 enumerator="IHostUSBDeviceFilterEnumerator"
11410 uuid="1a80458b-87f1-4a74-995d-04e2330119e0"
11411 readonly="yes"
11412 />
11413
11414 <interface
11415 name="IHostUSBDeviceFilter" extends="IUSBDeviceFilter"
11416 uuid="4cc70246-d74a-400f-8222-3900489c0374"
11417 wsmap="managed"
11418 >
11419 <desc>
11420 The IHostUSBDeviceFilter interface represents a global filter for a
11421 physical USB device used by the host computer. Used indirectly in
11422 <link to="IHost::USBDeviceFilters"/>.
11423
11424 Using filters of this type, the host computer determines the initial
11425 state of the USB device after it is physically attached to the
11426 host's USB controller.
11427
11428 <note>
11429 The <link to="#remote"/> attribute is ignored by this type of
11430 filters, because it makes sense only for
11431 <link to="IUSBController::deviceFilters">machine USB filters</link>.
11432 </note>
11433
11434 <see>IHost::USBDeviceFilters</see>
11435 </desc>
11436
11437 <attribute name="action" type="USBDeviceFilterAction">
11438 <desc>
11439 Action performed by the host when an attached USB device
11440 matches this filter.
11441 </desc>
11442 </attribute>
11443
11444 </interface>
11445
11446 <!--
11447 // IAudioAdapter
11448 /////////////////////////////////////////////////////////////////////////
11449 -->
11450
11451 <enum
11452 name="AudioDriverType"
11453 uuid="4bcc3d73-c2fe-40db-b72f-0c2ca9d68496"
11454 >
11455 <desc>
11456 Host audio driver type.
11457 </desc>
11458
11459 <const name="Null" value="0">
11460 <desc>Null value, also means "dummy audio driver".</desc>
11461 </const>
11462 <const name="WinMM" value="1"/>
11463 <const name="OSS" value="2"/>
11464 <const name="ALSA" value="3"/>
11465 <const name="DirectSound" value="4"/>
11466 <const name="CoreAudio" value="5"/>
11467 <const name="MMPM" value="6"/>
11468 <const name="Pulse" value="7"/>
11469 <const name="SolAudio" value="8"/>
11470 </enum>
11471
11472 <enum
11473 name="AudioControllerType"
11474 uuid="7afd395c-42c3-444e-8788-3ce80292f36c"
11475 >
11476 <desc>
11477 Virtual audio controller type.
11478 </desc>
11479
11480 <const name="AC97" value="0"/>
11481 <const name="SB16" value="1"/>
11482 </enum>
11483
11484 <interface
11485 name="IAudioAdapter" extends="$unknown"
11486 uuid="921873db-5f3f-4b69-91f9-7be9e535a2cb"
11487 wsmap="managed"
11488 >
11489 <desc>
11490 The IAudioAdapter interface represents the virtual audio adapter of
11491 the virtual machine. Used in <link to="IMachine::audioAdapter"/>.
11492 </desc>
11493 <attribute name="enabled" type="boolean">
11494 <desc>
11495 Flag whether the audio adapter is present in the
11496 guest system. If disabled, the virtual guest hardware will
11497 not contain any audio adapter. Can only be changed when
11498 the VM is not running.
11499 </desc>
11500 </attribute>
11501 <attribute name="audioController" type="AudioControllerType">
11502 <desc>
11503 The audio hardware we emulate.
11504 </desc>
11505 </attribute>
11506 <attribute name="audioDriver" type="AudioDriverType">
11507 <desc>
11508 Audio driver the adapter is connected to. This setting
11509 can only be changed when the VM is not running.
11510 </desc>
11511 </attribute>
11512 </interface>
11513
11514 <!--
11515 // IVRDPServer
11516 /////////////////////////////////////////////////////////////////////////
11517 -->
11518
11519 <enum
11520 name="VRDPAuthType"
11521 uuid="3d91887a-b67f-4b33-85bf-2da7ab1ea83a"
11522 >
11523 <desc>
11524 VRDP authentication type.
11525 </desc>
11526
11527 <const name="Null" value="0">
11528 <desc>Null value, also means "no authentication".</desc>
11529 </const>
11530 <const name="External" value="1"/>
11531 <const name="Guest" value="2"/>
11532 </enum>
11533
11534 <interface
11535 name="IVRDPServer" extends="$unknown"
11536 uuid="f4584ae7-6bce-474b-83d6-17d235e6aa89"
11537 wsmap="managed"
11538 >
11539 <attribute name="enabled" type="boolean">
11540 <desc>VRDP server status.</desc>
11541 </attribute>
11542
11543 <attribute name="port" type="unsigned long">
11544 <desc>
11545 VRDP server port number.
11546 <note>
11547 Setting the value of this property to <tt>0</tt> will reset the port
11548 number to the default value which is
11549 currently <tt>3389</tt>. Reading this property will always return a
11550 real port number, even after it has been set to <tt>0</tt> (in which
11551 case the default port is returned).
11552 </note>
11553 </desc>
11554 </attribute>
11555
11556 <attribute name="netAddress" type="wstring">
11557 <desc>VRDP server address.</desc>
11558 </attribute>
11559
11560 <attribute name="authType" type="VRDPAuthType">
11561 <desc>VRDP authentication method.</desc>
11562 </attribute>
11563
11564 <attribute name="authTimeout" type="unsigned long">
11565 <desc>Timeout for guest authentication. Milliseconds.</desc>
11566 </attribute>
11567
11568 <attribute name="allowMultiConnection" type="boolean">
11569 <desc>
11570 Flag whether multiple simultaneous connections to the VM are permitted.
11571 Note that this will be replaced by a more powerful mechanism in the future.
11572 </desc>
11573 </attribute>
11574
11575 <attribute name="reuseSingleConnection" type="boolean">
11576 <desc>
11577 Flag whether the existing connection must be dropped and a new connection
11578 must be established by the VRDP server, when a new client connects in single
11579 connection mode.
11580 </desc>
11581 </attribute>
11582
11583 </interface>
11584
11585
11586 <!--
11587 // ISharedFolder
11588 /////////////////////////////////////////////////////////////////////////
11589 -->
11590
11591 <interface
11592 name="ISharedFolder" extends="$unknown"
11593 uuid="64637bb2-9e17-471c-b8f3-f8968dd9884e"
11594 wsmap="struct"
11595 >
11596 <desc>
11597 The ISharedFolder interface represents a folder in the host computer's
11598 file system accessible from the guest OS running inside a virtual
11599 machine using an associated logical name.
11600
11601 There are three types of shared folders:
11602 <ul>
11603 <li><i>Global</i> (<link to="IVirtualBox::sharedFolders"/>), shared
11604 folders available to all virtual machines.</li>
11605 <li><i>Permanent</i> (<link to="IMachine::sharedFolders"/>),
11606 VM-specific shared folders available to the given virtual machine at
11607 startup.</li>
11608 <li><i>Transient</i> (<link to="IConsole::sharedFolders"/>),
11609 VM-specific shared folders created in the session context (for
11610 example, when the virtual machine is running) and automatically
11611 discarded when the session is closed (the VM is powered off).</li>
11612 </ul>
11613
11614 Logical names of shared folders must be unique within the given scope
11615 (global, permanent or transient). However, they do not need to be unique
11616 across scopes. In this case, the definition of the shared folder in a
11617 more specific scope takes precedence over definitions in all other
11618 scopes. The order of precedence is (more specific to more general):
11619 <ol>
11620 <li>Transient definitions</li>
11621 <li>Permanent definitions</li>
11622 <li>Global definitions</li>
11623 </ol>
11624
11625 For example, if MyMachine has a shared folder named
11626 <tt>C_DRIVE</tt> (that points to <tt>C:\\</tt>), then creating a
11627 transient shared folder named <tt>C_DRIVE</tt> (that points
11628 to <tt>C:\\\\WINDOWS</tt>) will change the definition
11629 of <tt>C_DRIVE</tt> in the guest OS so
11630 that <tt>\\\\VBOXSVR\\C_DRIVE</tt> will give access
11631 to <tt>C:\\WINDOWS</tt> instead of <tt>C:\\</tt> on the host
11632 PC. Removing the transient shared folder <tt>C_DRIVE</tt> will restore
11633 the previous (permanent) definition of <tt>C_DRIVE</tt> that points
11634 to <tt>C:\\</tt> if it still exists.
11635
11636 Note that permanent and transient shared folders of different machines
11637 are in different name spaces, so they don't overlap and don't need to
11638 have unique logical names.
11639
11640 <note>
11641 Global shared folders are not implemented in the current version of the
11642 product.
11643 </note>
11644 </desc>
11645
11646 <attribute name="name" type="wstring" readonly="yes">
11647 <desc>Logical name of the shared folder.</desc>
11648 </attribute>
11649
11650 <attribute name="hostPath" type="wstring" readonly="yes">
11651 <desc>Full path to the shared folder in the host file system.</desc>
11652 </attribute>
11653
11654 <attribute name="accessible" type="boolean" readonly="yes">
11655 <desc>
11656 Whether the folder defined by the host path is currently
11657 accessible or not.
11658 For example, the folder can be unaccessible if it is placed
11659 on the network share that is not available by the time
11660 this property is read.
11661 </desc>
11662 </attribute>
11663
11664 <attribute name="writable" type="boolean" readonly="yes">
11665 <desc>
11666 Whether the folder defined by the host path is writable or
11667 not.
11668 </desc>
11669 </attribute>
11670
11671 <attribute name="lastAccessError" type="wstring" readonly="yes">
11672 <desc>
11673 Text message that represents the result of the last accessibility
11674 check.
11675
11676 Accessibility checks are performed each time the <link to="#accessible"/>
11677 attribute is read. A @c null string is returned if the last
11678 accessibility check was successful. A non-null string indicates a
11679 failure and should normally describe a reason of the failure (for
11680 example, a file read error).
11681 </desc>
11682 </attribute>
11683
11684 </interface>
11685
11686 <!--
11687 // ISession
11688 /////////////////////////////////////////////////////////////////////////
11689 -->
11690
11691 <interface
11692 name="IInternalSessionControl" extends="$unknown"
11693 uuid="2581845a-5a9d-45fb-bc3b-2476552dd970"
11694 internal="yes"
11695 wsmap="suppress"
11696 >
11697 <method name="getPID">
11698 <desc>PID of the process that has created this Session object.
11699 </desc>
11700 <param name="pid" type="unsigned long" dir="return"/>
11701 </method>
11702
11703 <method name="getRemoteConsole">
11704 <desc>
11705 Returns the console object suitable for remote control.
11706
11707 <result name="VBOX_E_INVALID_VM_STATE">
11708 Session state prevents operation.
11709 </result>
11710 <result name="VBOX_E_INVALID_OBJECT_STATE">
11711 Session type prevents operation.
11712 </result>
11713
11714 </desc>
11715 <param name="console" type="IConsole" dir="return"/>
11716 </method>
11717
11718 <method name="assignMachine">
11719 <desc>
11720 Assigns the machine object associated with this direct-type
11721 session or informs the session that it will be a remote one
11722 (if @a machine == NULL).
11723
11724 <result name="VBOX_E_INVALID_VM_STATE">
11725 Session state prevents operation.
11726 </result>
11727 <result name="VBOX_E_INVALID_OBJECT_STATE">
11728 Session type prevents operation.
11729 </result>
11730
11731 </desc>
11732 <param name="machine" type="IMachine" dir="in"/>
11733 </method>
11734
11735 <method name="assignRemoteMachine">
11736 <desc>
11737 Assigns the machine and the (remote) console object associated with
11738 this remote-type session.
11739
11740 <result name="VBOX_E_INVALID_VM_STATE">
11741 Session state prevents operation.
11742 </result>
11743
11744 </desc>
11745 <param name="machine" type="IMachine" dir="in"/>
11746 <param name="console" type="IConsole" dir="in"/>
11747 </method>
11748
11749 <method name="updateMachineState">
11750 <desc>
11751 Updates the machine state in the VM process.
11752 Must be called only in certain cases
11753 (see the method implementation).
11754
11755 <result name="VBOX_E_INVALID_VM_STATE">
11756 Session state prevents operation.
11757 </result>
11758 <result name="VBOX_E_INVALID_OBJECT_STATE">
11759 Session type prevents operation.
11760 </result>
11761
11762 </desc>
11763 <param name="aMachineState" type="MachineState" dir="in"/>
11764 </method>
11765
11766 <method name="uninitialize">
11767 <desc>
11768 Uninitializes (closes) this session. Used by VirtualBox to close
11769 the corresponding remote session when the direct session dies
11770 or gets closed.
11771
11772 <result name="VBOX_E_INVALID_VM_STATE">
11773 Session state prevents operation.
11774 </result>
11775
11776 </desc>
11777 </method>
11778
11779 <method name="onDVDDriveChange">
11780 <desc>
11781 Triggered when settings of the DVD drive object of the
11782 associated virtual machine have changed.
11783
11784 <result name="VBOX_E_INVALID_VM_STATE">
11785 Session state prevents operation.
11786 </result>
11787 <result name="VBOX_E_INVALID_OBJECT_STATE">
11788 Session type prevents operation.
11789 </result>
11790
11791 </desc>
11792 </method>
11793
11794 <method name="onFloppyDriveChange">
11795 <desc>
11796 Triggered when settings of the floppy drive object of the
11797 associated virtual machine have changed.
11798
11799 <result name="VBOX_E_INVALID_VM_STATE">
11800 Session state prevents operation.
11801 </result>
11802 <result name="VBOX_E_INVALID_OBJECT_STATE">
11803 Session type prevents operation.
11804 </result>
11805
11806 </desc>
11807 </method>
11808
11809 <method name="onNetworkAdapterChange">
11810 <desc>
11811 Triggered when settings of a network adapter of the
11812 associated virtual machine have changed.
11813
11814 <result name="VBOX_E_INVALID_VM_STATE">
11815 Session state prevents operation.
11816 </result>
11817 <result name="VBOX_E_INVALID_OBJECT_STATE">
11818 Session type prevents operation.
11819 </result>
11820
11821 </desc>
11822 <param name="networkAdapter" type="INetworkAdapter" dir="in"/>
11823 </method>
11824
11825 <method name="onSerialPortChange">
11826 <desc>
11827 Triggered when settings of a serial port of the
11828 associated virtual machine have changed.
11829
11830 <result name="VBOX_E_INVALID_VM_STATE">
11831 Session state prevents operation.
11832 </result>
11833 <result name="VBOX_E_INVALID_OBJECT_STATE">
11834 Session type prevents operation.
11835 </result>
11836
11837 </desc>
11838 <param name="serialPort" type="ISerialPort" dir="in"/>
11839 </method>
11840
11841 <method name="onParallelPortChange">
11842 <desc>
11843 Triggered when settings of a parallel port of the
11844 associated virtual machine have changed.
11845
11846 <result name="VBOX_E_INVALID_VM_STATE">
11847 Session state prevents operation.
11848 </result>
11849 <result name="VBOX_E_INVALID_OBJECT_STATE">
11850 Session type prevents operation.
11851 </result>
11852
11853 </desc>
11854 <param name="parallelPort" type="IParallelPort" dir="in"/>
11855 </method>
11856
11857 <method name="onVRDPServerChange">
11858 <desc>
11859 Triggered when settings of the VRDP server object of the
11860 associated virtual machine have changed.
11861
11862 <result name="VBOX_E_INVALID_VM_STATE">
11863 Session state prevents operation.
11864 </result>
11865 <result name="VBOX_E_INVALID_OBJECT_STATE">
11866 Session type prevents operation.
11867 </result>
11868
11869 </desc>
11870 </method>
11871
11872 <method name="onUSBControllerChange">
11873 <desc>
11874 Triggered when settings of the USB controller object of the
11875 associated virtual machine have changed.
11876
11877 <result name="VBOX_E_INVALID_VM_STATE">
11878 Session state prevents operation.
11879 </result>
11880 <result name="VBOX_E_INVALID_OBJECT_STATE">
11881 Session type prevents operation.
11882 </result>
11883
11884 </desc>
11885 </method>
11886
11887 <method name="onSharedFolderChange">
11888 <desc>
11889 Triggered when a permanent (global or machine) shared folder has been
11890 created or removed.
11891 <note>
11892 We don't pass shared folder parameters in this notification because
11893 the order in which parallel notifications are delivered is not defined,
11894 therefore it could happen that these parameters were outdated by the
11895 time of processing this notification.
11896 </note>
11897
11898 <result name="VBOX_E_INVALID_VM_STATE">
11899 Session state prevents operation.
11900 </result>
11901 <result name="VBOX_E_INVALID_OBJECT_STATE">
11902 Session type prevents operation.
11903 </result>
11904
11905 </desc>
11906 <param name="global" type="boolean" dir="in"/>
11907 </method>
11908
11909 <method name="onUSBDeviceAttach">
11910 <desc>
11911 Triggered when a request to capture a USB device (as a result
11912 of matched USB filters or direct call to
11913 <link to="IConsole::attachUSBDevice"/>) has completed.
11914 A @c null @a error object means success, otherwise it
11915 describes a failure.
11916
11917 <result name="VBOX_E_INVALID_VM_STATE">
11918 Session state prevents operation.
11919 </result>
11920 <result name="VBOX_E_INVALID_OBJECT_STATE">
11921 Session type prevents operation.
11922 </result>
11923
11924 </desc>
11925 <param name="device" type="IUSBDevice" dir="in"/>
11926 <param name="error" type="IVirtualBoxErrorInfo" dir="in"/>
11927 <param name="maskedInterfaces" type="unsigned long" dir="in"/>
11928 </method>
11929
11930 <method name="onUSBDeviceDetach">
11931 <desc>
11932 Triggered when a request to release the USB device (as a result
11933 of machine termination or direct call to
11934 <link to="IConsole::detachUSBDevice"/>) has completed.
11935 A @c null @a error object means success, otherwise it
11936
11937 <result name="VBOX_E_INVALID_VM_STATE">
11938 Session state prevents operation.
11939 </result>
11940 <result name="VBOX_E_INVALID_OBJECT_STATE">
11941 Session type prevents operation.
11942 </result>
11943
11944 </desc>
11945 <param name="id" type="uuid" dir="in"/>
11946 <param name="error" type="IVirtualBoxErrorInfo" dir="in"/>
11947 </method>
11948
11949 <method name="onShowWindow">
11950 <desc>
11951 Called by <link to="IMachine::canShowConsoleWindow"/> and by
11952 <link to="IMachine::showConsoleWindow"/> in order to notify
11953 console callbacks
11954 <link to="IConsoleCallback::onCanShowWindow"/>
11955 and <link to="IConsoleCallback::onShowWindow"/>.
11956
11957 <result name="VBOX_E_INVALID_OBJECT_STATE">
11958 Session type prevents operation.
11959 </result>
11960
11961 </desc>
11962 <param name="check" type="boolean" dir="in"/>
11963 <param name="canShow" type="boolean" dir="out"/>
11964 <param name="winId" type="unsigned long long" dir="out"/>
11965 </method>
11966
11967 <method name="accessGuestProperty">
11968 <desc>
11969 Called by <link to="IMachine::getGuestProperty"/> and by
11970 <link to="IMachine::setGuestProperty"/> in order to read and
11971 modify guest properties.
11972
11973 <result name="VBOX_E_INVALID_VM_STATE">
11974 Machine session is not open.
11975 </result>
11976 <result name="VBOX_E_INVALID_OBJECT_STATE">
11977 Session type is not direct.
11978 </result>
11979
11980 </desc>
11981 <param name="name" type="wstring" dir="in"/>
11982 <param name="value" type="wstring" dir="in"/>
11983 <param name="flags" type="wstring" dir="in"/>
11984 <param name="isSetter" type="boolean" dir="in"/>
11985 <param name="retValue" type="wstring" dir="out"/>
11986 <param name="retTimestamp" type="unsigned long long" dir="out"/>
11987 <param name="retFlags" type="wstring" dir="out"/>
11988 </method>
11989
11990 <method name="enumerateGuestProperties">
11991 <desc>
11992 Return a list of the guest properties matching a set of patterns along
11993 with their values, time stamps and flags.
11994
11995 <result name="VBOX_E_INVALID_VM_STATE">
11996 Machine session is not open.
11997 </result>
11998 <result name="VBOX_E_INVALID_OBJECT_STATE">
11999 Session type is not direct.
12000 </result>
12001
12002 </desc>
12003 <param name="patterns" type="wstring" dir="in">
12004 <desc>
12005 The patterns to match the properties against as a comma-separated
12006 string. If this is empty, all properties currently set will be
12007 returned.
12008 </desc>
12009 </param>
12010 <param name="key" type="wstring" dir="out" safearray="yes">
12011 <desc>
12012 The key names of the properties returned.
12013 </desc>
12014 </param>
12015 <param name="value" type="wstring" dir="out" safearray="yes">
12016 <desc>
12017 The values of the properties returned. The array entries match the
12018 corresponding entries in the @a key array.
12019 </desc>
12020 </param>
12021 <param name="timestamp" type="unsigned long long" dir="out" safearray="yes">
12022 <desc>
12023 The time stamps of the properties returned. The array entries match
12024 the corresponding entries in the @a key array.
12025 </desc>
12026 </param>
12027 <param name="flags" type="wstring" dir="out" safearray="yes">
12028 <desc>
12029 The flags of the properties returned. The array entries match the
12030 corresponding entries in the @a key array.
12031 </desc>
12032 </param>
12033 </method>
12034
12035 </interface>
12036
12037 <interface
12038 name="ISession" extends="$dispatched"
12039 uuid="12F4DCDB-12B2-4ec1-B7CD-DDD9F6C5BF4D"
12040 wsmap="managed"
12041 >
12042 <desc>
12043 The ISession interface represents a serialization primitive for virtual
12044 machines.
12045
12046 With VirtualBox, every time one wishes to manipulate a virtual machine
12047 (e.g. change its settings or start execution), a session object is
12048 required. Such an object must be passed to one of the session methods
12049 that open the given session, which then initiates the machine manipulation.
12050
12051 A session serves several purposes: it identifies to the inter-process VirtualBox
12052 code which process is currently working with the virtual machine, and it ensures
12053 that there are no incompatible requests from several processes for the
12054 same virtual machine. Session objects can therefore be thought of as mutex
12055 semaphores that lock virtual machines to prevent conflicting accesses from
12056 several processes.
12057
12058 How sessions objects are used depends on whether you use the Main API
12059 via COM or via the webservice:
12060
12061 <ul>
12062 <li>When using the COM API directly, an object of the Session class from the
12063 VirtualBox type library needs to be created. In regular COM C++ client code,
12064 this can be done by calling <tt>createLocalObject()</tt>, a standard COM API.
12065 This object will then act as a local session object in further calls to open
12066 a session.
12067 </li>
12068
12069 <li>In the webservice, the session manager (IWebsessionManager) instead creates
12070 one session object automatically when <link to="IWebsessionManager::logon" />
12071 is called. A managed object reference to that session object can be retrieved by
12072 calling <link to="IWebsessionManager::getSessionObject" />. This session object
12073 reference can then be used to open sessions.
12074 </li>
12075 </ul>
12076
12077 Sessions are mainly used in two variations:
12078
12079 <ul>
12080 <li>
12081 To start a virtual machine in a separate process, one would call
12082 <link to="IVirtualBox::openRemoteSession"/>, which requires a session
12083 object as its first parameter. This session then identifies the caller
12084 and lets him control the started machine (for example, pause machine
12085 execution or power it down) as well as be notified about machine
12086 execution state changes.
12087 </li>
12088
12089 <li>To alter machine settings, or to start machine execution within the
12090 current process, one needs to open a direct session for the machine first by
12091 calling <link to="IVirtualBox::openSession"/>. While a direct session
12092 is open within one process, no any other process may open another direct
12093 session for the same machine. This prevents the machine from being changed
12094 by other processes while it is running or while the machine is being configured.
12095 </li>
12096 </ul>
12097
12098 One also can attach to an existing direct session already opened by
12099 another process (for example, in order to send a control request to the
12100 virtual machine such as the pause or the reset request). This is done by
12101 calling <link to="IVirtualBox::openExistingSession"/>.
12102
12103 <note>
12104 Unless you are trying to write a new VirtualBox front-end that
12105 performs direct machine execution (like the VirtualBox or VBoxSDL
12106 front-ends), don't call <link to="IConsole::powerUp"/> in a direct
12107 session opened by <link to="IVirtualBox::openSession"/> and use this
12108 session only to change virtual machine settings. If you simply want to
12109 start virtual machine execution using one of the existing front-ends
12110 (for example the VirtualBox GUI or headless server), simply use
12111 <link to="IVirtualBox::openRemoteSession"/>; these front-ends
12112 will power up the machine automatically for you.
12113 </note>
12114 </desc>
12115
12116 <attribute name="state" type="SessionState" readonly="yes">
12117 <desc>Current state of this session.</desc>
12118 </attribute>
12119
12120 <attribute name="type" type="SessionType" readonly="yes">
12121 <desc>
12122 Type of this session. The value of this attribute is valid only
12123 if the session is currently open (i.e. its #state is
12124 SessionType_SessionOpen), otherwise an error will be returned.
12125 </desc>
12126 </attribute>
12127
12128 <attribute name="machine" type="IMachine" readonly="yes">
12129 <desc>Machine object associated with this session.</desc>
12130 </attribute>
12131
12132 <attribute name="console" type="IConsole" readonly="yes">
12133 <desc>Console object associated with this session.</desc>
12134 </attribute>
12135
12136 <method name="close">
12137 <desc>
12138 Closes a session that was previously opened.
12139
12140 It is recommended that every time an "open session" method (such as
12141 <link to="IVirtualBox::openRemoteSession" /> or
12142 <link to="IVirtualBox::openSession" />) has been called to
12143 manipulate a virtual machine, the caller invoke
12144 ISession::close() when it's done doing so. Since sessions are
12145 serialization primitives much like ordinary mutexes, they are
12146 best used the same way: for each "open" call, there should be
12147 a matching "close" call, even when errors occur.
12148
12149 Otherwise, if a direct session for a machine opened with
12150 <link to="IVirtualBox::openSession"/> is not explicitly closed
12151 when the application terminates, the state of the machine will
12152 be set to <link to="MachineState_Aborted" /> on the server.
12153
12154 Generally, it is recommended to close all open sessions explicitly
12155 before terminating the application (regardless of the reason for
12156 the termination).
12157
12158 <note>
12159 Do not expect the session state (<link to="ISession::state" />
12160 to return to "Closed" immediately after you invoke
12161 ISession::close(), particularly if you have started a remote
12162 session to execute the VM in a new process. The session state will
12163 automatically return to "Closed" once the VM is no longer executing,
12164 which can of course take a very long time.
12165 </note>
12166
12167 <result name="E_UNEXPECTED">
12168 Session is not open.
12169 </result>
12170
12171 </desc>
12172 </method>
12173
12174 </interface>
12175
12176 <!--
12177 // ISATAController
12178 /////////////////////////////////////////////////////////////////////////
12179 -->
12180
12181 <interface
12182 name="ISATAController" extends="$unknown"
12183 uuid="9a4b868b-1376-4533-8ef5-065b8e8cedff"
12184 wsmap="managed"
12185 >
12186 <attribute name="enabled" type="boolean">
12187 <desc>
12188 Flag whether the SATA controller is present in the
12189 guest system. If disabled, the virtual guest hardware will
12190 not contain any SATA controller. Can only be changed when
12191 the VM is powered off.
12192 </desc>
12193 </attribute>
12194
12195 <attribute name="portCount" type="unsigned long">
12196 <desc>
12197 The number of usable ports on the SATA controller.
12198 It ranges from 1 to 30.
12199 </desc>
12200 </attribute>
12201
12202 <method name="GetIDEEmulationPort">
12203 <desc>
12204 Gets the corresponding port number which is emulated as an IDE device.
12205
12206 <result name="E_INVALIDARG">
12207 The @a devicePosition is not in the range 0 to 3.
12208 </result>
12209
12210 </desc>
12211 <param name="devicePosition" type="long" dir="in"/>
12212 <param name="portNumber" type="long" dir="return"/>
12213 </method>
12214
12215 <method name="SetIDEEmulationPort">
12216 <desc>
12217 Sets the port number which is emulated as an IDE device.
12218
12219 <result name="E_INVALIDARG">
12220 The @a devicePosition is not in the range 0 to 3 or the
12221 @a portNumber is not in the range 0 to 29.
12222 </result>
12223
12224 </desc>
12225 <param name="devicePosition" type="long" dir="in"/>
12226 <param name="portNumber" type="long" dir="in"/>
12227 </method>
12228
12229 </interface>
12230
12231<if target="wsdl">
12232
12233 <!--
12234 // IManagedObjectRef
12235 /////////////////////////////////////////////////////////////////////////
12236 -->
12237
12238 <interface
12239 name="IManagedObjectRef" extends="$unknown"
12240 uuid="9474d09d-2313-46de-b568-a42b8718e8ed"
12241 internal="yes"
12242 wsmap="managed"
12243 wscpp="hardcoded"
12244 >
12245 <desc>
12246 Managed object reference.
12247
12248 Only within the webservice, a managed object reference (which is really
12249 an opaque number) allows a webservice client to address an object
12250 that lives in the address space of the webservice server.
12251
12252 Behind each managed object reference, there is a COM object that lives
12253 in the webservice server's address space. The COM object is not freed
12254 until the managed object reference is released, either by an explicit
12255 call to <link to="IManagedObjectRef::release" /> or by logging off from
12256 the webservice (<link to="IWebsessionManager::logoff" />), which releases
12257 all objects created during the webservice session.
12258
12259 Whenever a method call of the VirtualBox API returns a COM object, the
12260 webservice representation of that method will instead return a
12261 managed object reference, which can then be used to invoke methods
12262 on that object.
12263 </desc>
12264
12265 <method name="getInterfaceName">
12266 <desc>
12267 Returns the name of the interface that this managed object represents,
12268 for example, "IMachine", as a string.
12269 </desc>
12270 <param name="return" type="wstring" dir="return"/>
12271 </method>
12272
12273 <method name="release">
12274 <desc>
12275 Releases this managed object reference and frees the resources that
12276 were allocated for it in the webservice server process. After calling
12277 this method, the identifier of the reference can no longer be used.
12278 </desc>
12279 </method>
12280
12281 </interface>
12282
12283 <!--
12284 // IWebsessionManager
12285 /////////////////////////////////////////////////////////////////////////
12286 -->
12287
12288 <interface
12289 name="IWebsessionManager" extends="$unknown"
12290 uuid="dea1b4c7-2de3-418a-850d-7868617f7733"
12291 internal="yes"
12292 wsmap="global"
12293 wscpp="hardcoded"
12294 >
12295 <desc>
12296 Websession manager. This provides essential services
12297 to webservice clients.
12298 </desc>
12299 <method name="logon">
12300 <desc>
12301 Logs a new client onto the webservice and returns a managed object reference to
12302 the IVirtualBox instance, which the client can then use as a basis to further
12303 queries, since all calls to the VirtualBox API are based on the IVirtualBox
12304 interface, in one way or the other.
12305 </desc>
12306 <param name="username" type="wstring" dir="in"/>
12307 <param name="password" type="wstring" dir="in"/>
12308 <param name="return" type="IVirtualBox" dir="return"/>
12309 </method>
12310
12311 <method name="getSessionObject">
12312 <desc>
12313 Returns a managed object reference to the internal ISession object that was created
12314 for this web service session when the client logged on.
12315
12316 <see>ISession</see>
12317 </desc>
12318 <param name="refIVirtualBox" type="IVirtualBox" dir="in"/>
12319 <param name="return" type="ISession" dir="return"/>
12320 </method>
12321
12322 <method name="logoff">
12323 <desc>
12324 Logs off the client who has previously logged on with <link to="IWebsessionManager::logoff" />
12325 and destroys all resources associated with the session (most importantly, all
12326 managed objects created in the server while the session was active).
12327 </desc>
12328 <param name="refIVirtualBox" type="IVirtualBox" dir="in"/>
12329 </method>
12330
12331 </interface>
12332
12333</if>
12334
12335 <!--
12336 // IPerformanceCollector & friends
12337 /////////////////////////////////////////////////////////////////////////
12338 -->
12339
12340 <interface
12341 name="IPerformanceMetric" extends="$unknown"
12342 uuid="2a1a60ae-9345-4019-ad53-d34ba41cbfe9" wsmap="managed"
12343 >
12344 <desc>
12345 The IPerformanceMetric interface represents parameters of the given
12346 performance metric.
12347 </desc>
12348
12349 <attribute name="metricName" type="wstring" readonly="yes">
12350 <desc>
12351 Name of the metric.
12352 </desc>
12353 </attribute>
12354
12355 <attribute name="object" type="$unknown" readonly="yes">
12356 <desc>
12357 Object this metric belongs to.
12358 </desc>
12359 </attribute>
12360
12361 <attribute name="description" type="wstring" readonly="yes">
12362 <desc>
12363 Textual description of the metric.
12364 </desc>
12365 </attribute>
12366
12367 <attribute name="period" type="unsigned long" readonly="yes">
12368 <desc>
12369 Time interval between samples, measured in seconds.
12370 </desc>
12371 </attribute>
12372
12373 <attribute name="count" type="unsigned long" readonly="yes">
12374 <desc>
12375 Number of recent samples retained by the performance collector for this
12376 metric.
12377
12378 When the collected sample count exceeds this number, older samples
12379 are discarded.
12380 </desc>
12381 </attribute>
12382
12383 <attribute name="unit" type="wstring" readonly="yes">
12384 <desc>
12385 Unit of measurement.
12386 </desc>
12387 </attribute>
12388
12389 <attribute name="minimumValue" type="long" readonly="yes">
12390 <desc>
12391 Minimum possible value of this metric.
12392 </desc>
12393 </attribute>
12394
12395 <attribute name="maximumValue" type="long" readonly="yes">
12396 <desc>
12397 Maximum possible value of this metric.
12398 </desc>
12399 </attribute>
12400 </interface>
12401
12402 <interface
12403 name="IPerformanceCollector" extends="$unknown"
12404 uuid="e22e1acb-ac4a-43bb-a31c-17321659b0c6"
12405 wsmap="managed"
12406 >
12407 <desc>
12408 The IPerformanceCollector interface represents a service that collects and
12409 stores performance metrics data.
12410
12411 Performance metrics are associated with objects like IHost and
12412 IMachine. Each object has a distinct set of performance metrics.
12413 The set can be obtained with <link to="IPerformanceCollector::getMetrics"/>.
12414
12415 Metric data are collected at the specified intervals and are retained
12416 internally. The interval and the number of samples retained can be set
12417 with <link to="IPerformanceCollector::setupMetrics" />.
12418
12419 Metrics are organized hierarchically, each level separated by slash (/).
12420 General scheme for metric name is
12421 "Category/Metric[/SubMetric][:aggregation]". For example CPU/Load/User:avg
12422 metric name stands for: CPU category, Load metric, User submetric, average
12423 aggregate. An aggregate function is computed over all retained data. Valid
12424 aggregate functions are:
12425
12426 <ul>
12427 <li>avg -- average</li>
12428 <li>min -- minimum</li>
12429 <li>max -- maximum</li>
12430 </ul>
12431
12432 "Category/Metric" together form base metric name. A base metric is the
12433 smallest unit for which a sampling interval and the number of retained
12434 samples can be set. Only base metrics can be enabled and disabled. All
12435 sub-metrics are collected when their base metric is collected.
12436 Collected values for any set of sub-metrics can be queried with
12437 <link to="IPerformanceCollector::queryMetricsData" />. When setting up
12438 metric parameters, querying metric data, enabling or disabling metrics
12439 wildcards can be used in metric names to specify a subset of metrics. For
12440 example, to select all CPU-related metrics use <tt>CPU/*</tt>, all
12441 averages can be queried using <tt>*:avg</tt> and so on. To query metric
12442 values without aggregates <tt>*:</tt> can be used.
12443
12444 The valid names for base metrics are:
12445
12446 <ul>
12447 <li>CPU/Load</li>
12448 <li>CPU/MHz</li>
12449 <li>RAM/Usage</li>
12450 </ul>
12451
12452 The general sequence for collecting and retrieving the metrics is:
12453 <ul>
12454 <li>
12455 Obtain an instance of IPerformanceCollector with
12456 <link to="IVirtualBox::performanceCollector" />
12457 </li>
12458 <li>
12459 Allocate and populate an array with references to objects the metrics
12460 will be collected for. Use references to IHost and IMachine objects.
12461 </li>
12462 <li>
12463 Allocate and populate an array with base metric names the data will be
12464 collected for.
12465 </li>
12466 <li>
12467 Call <link to="IPerformanceCollector::setupMetrics" />. From now on the
12468 metric data will be collected and stored.
12469 </li>
12470 <li>
12471 Wait for the data to get collected.
12472 </li>
12473 <li>
12474 Allocate and populate an array with references to objects the metric
12475 values will be queried for. You can re-use the object array used for
12476 setting base metrics.
12477 </li>
12478 <li>
12479 Allocate and populate an array with metric names the data will be
12480 collected for. Note that metric names differ from base metric names.
12481 </li>
12482 <li>
12483 Call <link to="IPerformanceCollector::queryMetricsData" />. The data that
12484 have been collected so far are returned. Note that the values are still
12485 retained internally and data collection continues.
12486 </li>
12487 </ul>
12488
12489 For an example of usage refer to the following files in VirtualBox SDK:
12490 <ul>
12491 <li>
12492 Java: <tt>bindings/webservice/java/jax-ws/samples/metrictest.java</tt>
12493 </li>
12494 <li>
12495 Python: <tt>bindings/xpcom/python/sample/shellcommon.py</tt>
12496 </li>
12497 </ul>
12498 </desc>
12499
12500 <attribute name="metricNames" type="wstring" readonly="yes" safearray="yes">
12501 <desc>
12502 Array of unique names of metrics.
12503
12504 This array represents all metrics supported by the performance
12505 collector. Individual objects do not necessarily support all of them.
12506 <link to="IPerformanceCollector::getMetrics"/> can be used to get the
12507 list of supported metrics for a particular object.
12508 </desc>
12509 </attribute>
12510
12511 <method name="getMetrics">
12512 <desc>
12513 Returns parameters of specified metrics for a set of objects.
12514 <note>
12515 @c Null metrics array means all metrics. @c Null object array means
12516 all existing objects.
12517 </note>
12518 </desc>
12519 <param name="metricNames" type="wstring" dir="in" safearray="yes">
12520 <desc>
12521 Metric name filter. Currently, only a comma-separated list of metrics
12522 is supported.
12523 </desc>
12524 </param>
12525 <param name="objects" type="$unknown" dir="in" safearray="yes">
12526 <desc>
12527 Set of objects to return metric parameters for.
12528 </desc>
12529 </param>
12530 <param name="metrics" type="IPerformanceMetric" dir="return" safearray="yes">
12531 <desc>
12532 Array of returned metric parameters.
12533 </desc>
12534 </param>
12535 </method>
12536
12537 <method name="setupMetrics">
12538 <desc>
12539 Sets parameters of specified base metrics for a set of objects. Returns
12540 an array of <link to="IPerformanceMetric" /> describing the metrics have
12541 been affected.
12542 <note>
12543 @c Null or empty metric name array means all metrics. @c Null or empty
12544 object array means all existing objects. If metric name array contains
12545 a single element and object array contains many, the single metric
12546 name array element is applied to each object array element to form
12547 metric/object pairs.
12548 </note>
12549 </desc>
12550 <param name="metricNames" type="wstring" dir="in" safearray="yes">
12551 <desc>
12552 Metric name filter. Comma-separated list of metrics with wildcard
12553 support.
12554 </desc>
12555 </param>
12556 <param name="objects" type="$unknown" dir="in" safearray="yes">
12557 <desc>
12558 Set of objects to setup metric parameters for.
12559 </desc>
12560 </param>
12561 <param name="period" type="unsigned long" dir="in">
12562 <desc>
12563 Time interval in seconds between two consecutive samples of performance
12564 data.
12565 </desc>
12566 </param>
12567 <param name="count" type="unsigned long" dir="in">
12568 <desc>
12569 Number of samples to retain in performance data history. Older samples
12570 get discarded.
12571 </desc>
12572 </param>
12573 <param name="affectedMetrics" type="IPerformanceMetric" dir="return" safearray="yes">
12574 <desc>
12575 Array of metrics that have been modified by the call to this method.
12576 </desc>
12577 </param>
12578 </method>
12579
12580 <method name="enableMetrics">
12581 <desc>
12582 Turns on collecting specified base metrics. Returns an array of
12583 <link to="IPerformanceMetric" /> describing the metrics have been
12584 affected.
12585 <note>
12586 @c Null or empty metric name array means all metrics. @c Null or empty
12587 object array means all existing objects. If metric name array contains
12588 a single element and object array contains many, the single metric
12589 name array element is applied to each object array element to form
12590 metric/object pairs.
12591 </note>
12592 </desc>
12593 <param name="metricNames" type="wstring" dir="in" safearray="yes">
12594 <desc>
12595 Metric name filter. Comma-separated list of metrics with wildcard
12596 support.
12597 </desc>
12598 </param>
12599 <param name="objects" type="$unknown" dir="in" safearray="yes">
12600 <desc>
12601 Set of objects to enable metrics for.
12602 </desc>
12603 </param>
12604 <param name="affectedMetrics" type="IPerformanceMetric" dir="return" safearray="yes">
12605 <desc>
12606 Array of metrics that have been modified by the call to this method.
12607 </desc>
12608 </param>
12609 </method>
12610
12611 <method name="disableMetrics">
12612 <desc>
12613 Turns off collecting specified base metrics. Returns an array of
12614 <link to="IPerformanceMetric" /> describing the metrics have been
12615 affected.
12616 <note>
12617 @c Null or empty metric name array means all metrics. @c Null or empty
12618 object array means all existing objects. If metric name array contains
12619 a single element and object array contains many, the single metric
12620 name array element is applied to each object array element to form
12621 metric/object pairs.
12622 </note>
12623 </desc>
12624 <param name="metricNames" type="wstring" dir="in" safearray="yes">
12625 <desc>
12626 Metric name filter. Comma-separated list of metrics with wildcard
12627 support.
12628 </desc>
12629 </param>
12630 <param name="objects" type="$unknown" dir="in" safearray="yes">
12631 <desc>
12632 Set of objects to disable metrics for.
12633 </desc>
12634 </param>
12635 <param name="affectedMetrics" type="IPerformanceMetric" dir="return" safearray="yes">
12636 <desc>
12637 Array of metrics that have been modified by the call to this method.
12638 </desc>
12639 </param>
12640 </method>
12641
12642 <method name="queryMetricsData">
12643 <desc>
12644 Queries collected metrics data for a set of objects.
12645
12646 The data itself and related metric information are returned in seven
12647 parallel and one flattened array of arrays. Elements of
12648 <tt>returnMetricNames, returnObjects, returnUnits, returnScales,
12649 returnSequenceNumbers, returnDataIndices and returnDataLengths</tt> with
12650 the same index describe one set of values corresponding to a single
12651 metric.
12652
12653 The <tt>returnData</tt> parameter is a flattened array of arrays. Each
12654 start and length of a sub-array is indicated by
12655 <tt>returnDataIndices</tt> and <tt>returnDataLengths</tt>. The first
12656 value for metric <tt>metricNames[i]</tt> is at
12657 <tt>returnData[returnIndices[i]]</tt>.
12658
12659 <note>
12660 @c Null or empty metric name array means all metrics. @c Null or empty
12661 object array means all existing objects. If metric name array contains
12662 a single element and object array contains many, the single metric
12663 name array element is applied to each object array element to form
12664 metric/object pairs.
12665 </note>
12666 <note>
12667 Data collection continues behind the scenes after call to
12668 @c queryMetricsData. The return data can be seen as the snapshot of
12669 the current state at the time of @c queryMetricsData call. The
12670 internally kept metric values are not cleared by the call. This makes
12671 possible querying different subsets of metrics or aggregates with
12672 subsequent calls. If periodic querying is needed it is highly
12673 suggested to query the values with @c interval*count period to avoid
12674 confusion. This way a completely new set of data values will be
12675 provided by each query.
12676 </note>
12677 </desc>
12678 <param name="metricNames" type="wstring" dir="in" safearray="yes">
12679 <desc>
12680 Metric name filter. Comma-separated list of metrics with wildcard
12681 support.
12682 </desc>
12683 </param>
12684 <param name="objects" type="$unknown" dir="in" safearray="yes">
12685 <desc>
12686 Set of objects to query metrics for.
12687 </desc>
12688 </param>
12689 <param name="returnMetricNames" type="wstring" dir="out" safearray="yes">
12690 <desc>
12691 Names of metrics returned in @c returnData.
12692 </desc>
12693 </param>
12694 <param name="returnObjects" type="$unknown" dir="out" safearray="yes">
12695 <desc>
12696 Objects associated with metrics returned in @c returnData.
12697 </desc>
12698 </param>
12699 <param name="returnUnits" type="wstring" dir="out" safearray="yes">
12700 <desc>
12701 Units of measurement for each returned metric.
12702 </desc>
12703 </param>
12704 <param name="returnScales" type="unsigned long" dir="out" safearray="yes">
12705 <desc>
12706 Divisor that should be applied to return values in order to get
12707 floating point values. For example:
12708 <tt>(double)returnData[returnDataIndices[0]+i] / returnScales[0]</tt>
12709 will retrieve the floating point value of i-th sample of the first
12710 metric.
12711 </desc>
12712 </param>
12713 <param name="returnSequenceNumbers" type="unsigned long" dir="out" safearray="yes">
12714 <desc>
12715 Sequence numbers of the first elements of value sequences of particular metrics
12716 returned in @c returnData. For aggregate metrics it is the sequence number of
12717 the sample the aggregate started calculation from.
12718 </desc>
12719 </param>
12720 <param name="returnDataIndices" type="unsigned long" dir="out" safearray="yes">
12721 <desc>
12722 Indices of the first elements of value sequences of particular metrics
12723 returned in @c returnData.
12724 </desc>
12725 </param>
12726 <param name="returnDataLengths" type="unsigned long" dir="out" safearray="yes">
12727 <desc>
12728 Lengths of value sequences of particular metrics.
12729 </desc>
12730 </param>
12731 <param name="returnData" type="long" dir="return" safearray="yes">
12732 <desc>
12733 Flattened array of all metric data containing sequences of values for
12734 each metric.
12735 </desc>
12736 </param>
12737 </method>
12738
12739 </interface>
12740
12741 <module name="VBoxSVC" context="LocalServer">
12742 <class name="VirtualBox" uuid="B1A7A4F2-47B9-4A1E-82B2-07CCD5323C3F"
12743 namespace="virtualbox.org">
12744 <interface name="IVirtualBox" default="yes"/>
12745 </class>
12746 </module>
12747
12748 <module name="VBoxC" context="InprocServer" threadingModel="Free">
12749 <class name="Session" uuid="3C02F46D-C9D2-4f11-A384-53F0CF917214"
12750 namespace="virtualbox.org">
12751 <interface name="ISession" default="yes"/>
12752 </class>
12753 </module>
12754
12755</library>
12756
12757</idl>
12758
12759<!-- 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