VirtualBox

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

最後變更 在這個檔案從21506是 21446,由 vboxsync 提交於 16 年 前

API/Machine+SystemProperties: get rid of the tri-state bool controlling hwvirtex

  • 屬性 svn:eol-style 設為 native
檔案大小: 497.0 KB
 
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.alldomusa.eu.org. This file is free software;
52 you can redistribute it and/or modify it under the terms of the GNU
53 General Public License (GPL) as published by the Free Software
54 Foundation, in version 2 as it comes in the "COPYING" file of the
55 VirtualBox OSE distribution. VirtualBox OSE is distributed in the
56 hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
57
58 Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
59 Clara, CA 95054 USA or visit http://www.sun.com if you need
60 additional information or have any questions.
61-->
62
63<idl>
64
65<desc>
66 Welcome to the <b>VirtualBox Main API documentation</b>. This documentation
67 describes the so-called <i>VirtualBox Main API</i> which comprises all public
68 COM interfaces and components provided by the VirtualBox server and by the
69 VirtualBox client library.
70
71 VirtualBox employs a client-server design, meaning that whenever any part of
72 VirtualBox is running -- be it the Qt GUI, the VBoxManage command-line
73 interface or any virtual machine --, a dedicated server process named
74 VBoxSVC runs in the background. This allows multiple processes working with
75 VirtualBox to cooperate without conflicts. These processes communicate to each
76 other using inter-process communication facilities provided by the COM
77 implementation of the host computer.
78
79 On Windows platforms, the VirtualBox Main API uses Microsoft COM, a native COM
80 implementation. On all other platforms, Mozilla XPCOM, an open-source COM
81 implementation, is used.
82
83 All the parts that a typical VirtualBox user interacts with (the Qt GUI,
84 the VBoxManage command-line interface and the VBoxVRDP server) are technically
85 front-ends to the Main API and only use the interfaces that are documented
86 in this Main API documentation. This ensures that, with any given release
87 version of VirtualBox, all capabilities of the product that could be useful
88 to an external client program are always exposed by way of this API.
89
90 The VirtualBox Main API (also called the <i>VirtualBox COM library</i>)
91 contains two public component classes:
92 <tt>%VirtualBox.VirtualBox</tt> and <tt>%VirtualBox.Session</tt>, which
93 implement IVirtualBox and ISession interfaces respectively. These two classes
94 are of supreme importance and will be needed in order for any front-end
95 program to do anything useful. It is recommended to read the documentation of
96 the mentioned interfaces first.
97
98 The <tt>%VirtualBox.VirtualBox</tt> class is a singleton. This means that
99 there can be only one object of this class on the local machine at any given
100 time. This object is a parent of many other objects in the VirtualBox COM
101 library and lives in the VBoxSVC process. In fact, when you create an instance
102 of the <tt>VirtualBox.VirtualBox</tt>, the COM subsystem checks if the VBoxSVC
103 process is already running, starts it if not, and returns you a reference to
104 the <tt>VirtualBox</tt> object created in this process. When the last reference
105 to this object is released, the VBoxSVC process ends (with a 5 second delay to
106 protect from too frequent restarts).
107
108 The <tt>%VirtualBox.Session</tt> class is a regular component. You can create
109 as many <tt>Session</tt> objects as you need but all of them will live in a
110 process which issues the object instantiation call. <tt>Session</tt> objects
111 represent virtual machine sessions which are used to configure virtual
112 machines and control their execution.
113</desc>
114
115<if target="midl">
116 <cpp line="enum {"/>
117 <cpp line=" kTypeLibraryMajorVersion = 1,"/>
118 <cpp line=" kTypeLibraryMinorVersion = 0"/>
119 <cpp line="};"/>
120</if>
121
122<if target="xpidl">
123 <!-- NS_IMPL_THREADSAFE_ISUPPORTSxx_CI macros are placed here, for convenience -->
124 <cpp>
125/* currently, nsISupportsImpl.h lacks the below-like macros */
126
127#define NS_IMPL_THREADSAFE_QUERY_INTERFACE1_CI NS_IMPL_QUERY_INTERFACE1_CI
128#define NS_IMPL_THREADSAFE_QUERY_INTERFACE2_CI NS_IMPL_QUERY_INTERFACE2_CI
129
130#ifndef NS_IMPL_THREADSAFE_ISUPPORTS1_CI
131# define NS_IMPL_THREADSAFE_ISUPPORTS1_CI(_class, _interface) \
132 NS_IMPL_THREADSAFE_ADDREF(_class) \
133 NS_IMPL_THREADSAFE_RELEASE(_class) \
134 NS_IMPL_THREADSAFE_QUERY_INTERFACE1_CI(_class, _interface) \
135 NS_IMPL_CI_INTERFACE_GETTER1(_class, _interface)
136#endif
137
138#ifndef NS_IMPL_THREADSAFE_ISUPPORTS2_CI
139# define NS_IMPL_THREADSAFE_ISUPPORTS2_CI(_class, _i1, _i2) \
140 NS_IMPL_THREADSAFE_ADDREF(_class) \
141 NS_IMPL_THREADSAFE_RELEASE(_class) \
142 NS_IMPL_THREADSAFE_QUERY_INTERFACE2_CI(_class, _i1, _i2) \
143 NS_IMPL_CI_INTERFACE_GETTER2(_class, _i1, _i2)
144#endif
145
146#ifndef NS_IMPL_QUERY_INTERFACE1_AMBIGUOUS_CI
147# define NS_IMPL_QUERY_INTERFACE1_AMBIGUOUS_CI(_class, _i1, _ic1) \
148 NS_INTERFACE_MAP_BEGIN(_class) \
149 NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(_i1, _ic1) \
150 NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(nsISupports, _ic1) \
151 NS_IMPL_QUERY_CLASSINFO(_class) \
152 NS_INTERFACE_MAP_END
153#endif
154
155#ifndef NS_IMPL_QUERY_INTERFACE2_AMBIGUOUS_CI
156# define NS_IMPL_QUERY_INTERFACE2_AMBIGUOUS_CI(_class, _i1, _ic1, \
157 _i2, _ic2) \
158 NS_INTERFACE_MAP_BEGIN(_class) \
159 NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(_i1, _ic1) \
160 NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(_i2, _ic2) \
161 NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(nsISupports, _ic1) \
162 NS_IMPL_QUERY_CLASSINFO(_class) \
163 NS_INTERFACE_MAP_END
164#endif
165
166#define NS_IMPL_THREADSAFE_QUERY_INTERFACE1_AMBIGUOUS_CI NS_IMPL_QUERY_INTERFACE1_AMBIGUOUS_CI
167#define NS_IMPL_THREADSAFE_QUERY_INTERFACE2_AMBIGUOUS_CI NS_IMPL_QUERY_INTERFACE2_AMBIGUOUS_CI
168
169#ifndef NS_IMPL_THREADSAFE_ISUPPORTS1_AMBIGUOUS_CI
170# define NS_IMPL_THREADSAFE_ISUPPORTS1_AMBIGUOUS_CI(_class, _i1, _ic1) \
171 NS_IMPL_THREADSAFE_ADDREF(_class) \
172 NS_IMPL_THREADSAFE_RELEASE(_class) \
173 NS_IMPL_THREADSAFE_QUERY_INTERFACE1_AMBIGUOUS_CI(_class, _i1, _ic1) \
174 NS_IMPL_CI_INTERFACE_GETTER1(_class, _i1)
175#endif
176
177#ifndef NS_IMPL_THREADSAFE_ISUPPORTS2_AMBIGUOUS_CI
178# define NS_IMPL_THREADSAFE_ISUPPORTS2_AMBIGUOUS_CI(_class, _i1, _ic1, \
179 _i2, _ic2) \
180 NS_IMPL_THREADSAFE_ADDREF(_class) \
181 NS_IMPL_THREADSAFE_RELEASE(_class) \
182 NS_IMPL_THREADSAFE_QUERY_INTERFACE2_AMBIGUOUS_CI(_class, _i1, _ic1, \
183 _i2, _ic2) \
184 NS_IMPL_CI_INTERFACE_GETTER2(_class, _i1, _i2)
185#endif
186 </cpp>
187</if>
188
189<library
190 name="VirtualBox"
191 uuid="46137EEC-703B-4fe5-AFD4-7C9BBBBA0259"
192 version="1.3"
193 desc="VirtualBox Type Library"
194 appUuid="819B4D85-9CEE-493C-B6FC-64FFE759B3C9"
195 supportsErrorInfo="yes"
196>
197
198
199 <!--
200 // COM result codes for VirtualBox
201 /////////////////////////////////////////////////////////////////////////
202 -->
203
204 <descGroup id="VirtualBox_COM_result_codes" title="VirtualBox COM result codes">
205 <desc>
206 This section describes all VirtualBox-specific COM result codes that may
207 be returned by methods of VirtualBox COM interfaces in addition to
208 standard COM result codes.
209
210 Note that along with the result code, every VirtualBox method returns
211 extended error information through the IVirtualBoxErrorInfo interface on
212 failure. This interface is a preferred way to present the error to the end
213 user because it contains a human readable description of the error. Raw
214 result codes, both standard and described in this section, are intended to
215 be used by programs to analyze the reason of a failure and select an
216 appropriate course of action without involving the end user (for example,
217 retry the operation later or make a different call).
218
219 The standard COM result codes that may originate from our methods include:
220
221 <table>
222 <tr><td>E_INVALIDARG</td>
223 <td>
224 Returned when the value of the method's argument is not within the range
225 of valid values. This should not be confused with situations when the
226 value is within the range but simply doesn't suit the current object
227 state and there is a possibility that it will be accepted later (in such
228 cases VirtualBox-specific codes are returned, for example,
229 <link to="VBOX_E_OBJECT_NOT_FOUND"/>).
230 </td>
231 </tr>
232 <tr><td>E_POINTER</td>
233 <td>
234 Returned if a memory pointer for the output argument is invalid (for
235 example, @c null). Note that when pointers representing input
236 arguments (such as strings) are invalid, E_INVALIDARG is returned.
237 </td>
238 </tr>
239 <tr><td>E_ACCESSDENIED</td>
240 <td>
241 Returned when the called object is not ready. Since the lifetime of a
242 public COM object cannot be fully controlled by the implementation,
243 VirtualBox maintains the readiness state for all objects it creates and
244 returns this code in response to any method call on the object that was
245 deactivated by VirtualBox and is not functioning any more.
246 </td>
247 </tr>
248 <tr><td>E_OUTOFMEMORY</td>
249 <td>
250 Returned when a memory allocation operation fails.
251 </td>
252 </tr>
253 </table>
254 </desc>
255 </descGroup>
256
257 <!--
258 Note that src/VBox/Runtime/common/err/errmsgvboxcom.xsl will ignore
259 everything in <result>/<desc> after (and including) the first dot, so express
260 the matter of the error code in the first sentence and keep it short.
261 -->
262
263 <result name="VBOX_E_OBJECT_NOT_FOUND" value="0x80BB0001">
264 <desc>
265 Object corresponding to the supplied arguments does not exist.
266 </desc>
267 </result>
268
269 <result name="VBOX_E_INVALID_VM_STATE" value="0x80BB0002">
270 <desc>
271 Current virtual machine state prevents the operation.
272 </desc>
273 </result>
274
275 <result name="VBOX_E_VM_ERROR" value="0x80BB0003">
276 <desc>
277 Virtual machine error occurred attempting the operation.
278 </desc>
279 </result>
280
281 <result name="VBOX_E_FILE_ERROR" value="0x80BB0004">
282 <desc>
283 File not accessible or erroneous file contents.
284 </desc>
285 </result>
286
287 <result name="VBOX_E_IPRT_ERROR" value="0x80BB0005">
288 <desc>
289 Runtime subsystem error.
290 </desc>
291 </result>
292
293 <result name="VBOX_E_PDM_ERROR" value="0x80BB0006">
294 <desc>
295 Pluggable Device Manager error.
296 </desc>
297 </result>
298
299 <result name="VBOX_E_INVALID_OBJECT_STATE" value="0x80BB0007">
300 <desc>
301 Current object state prohibits operation.
302 </desc>
303 </result>
304
305 <result name="VBOX_E_HOST_ERROR" value="0x80BB0008">
306 <desc>
307 Host operating system related error.
308 </desc>
309 </result>
310
311 <result name="VBOX_E_NOT_SUPPORTED" value="0x80BB0009">
312 <desc>
313 Requested operation is not supported.
314 </desc>
315 </result>
316
317 <result name="VBOX_E_XML_ERROR" value="0x80BB000A">
318 <desc>
319 Invalid XML found.
320 </desc>
321 </result>
322
323 <result name="VBOX_E_INVALID_SESSION_STATE" value="0x80BB000B">
324 <desc>
325 Current session state prohibits operation.
326 </desc>
327 </result>
328
329 <result name="VBOX_E_OBJECT_IN_USE" value="0x80BB000C">
330 <desc>
331 Object being in use prohibits operation.
332 </desc>
333 </result>
334
335 <!--
336 Note that src/VBox/Runtime/common/err/errmsgvboxcom.xsl will ignore
337 everything in <result>/<desc> after (and including) the first dot, so express
338 the matter of the error code in the first sentence and keep it short.
339 -->
340
341 <descGroup/>
342
343 <!--
344 // all common enums
345 /////////////////////////////////////////////////////////////////////////
346 -->
347
348 <enum
349 name="AccessMode"
350 uuid="1da0007c-ddf7-4be8-bcac-d84a1558785f"
351 >
352 <desc>
353 Access mode for opening files.
354 </desc>
355
356 <const name="ReadOnly" value="1"/>
357 <const name="ReadWrite" value="2"/>
358 </enum>
359
360 <enum
361 name="MachineState"
362 uuid="73bf04d0-7c4f-4684-9abf-d65a9ad74343"
363 >
364 <desc>
365 Virtual machine execution state.
366
367 This enumeration represents possible values of the <link
368 to="IMachine::state"/> attribute.
369
370 Below is the basic virtual machine state diagram. It shows how the state
371 changes during virtual machine execution. The text in square braces shows
372 a method of the IConsole interface that performs the given state
373 transition.
374
375 <pre>
376 +---------[powerDown()] &lt;- Stuck &lt;--[failure]-+
377 V |
378 +-&gt; PoweredOff --+--&gt;[powerUp()]--&gt; Starting --+ | +-----[resume()]-----+
379 | | | | V |
380 | Aborted -----+ +--&gt; Running --[pause()]--&gt; Paused
381 | | ^ | ^ |
382 | Saved -----------[powerUp()]--&gt; Restoring -+ | | | |
383 | ^ | | | |
384 | | +-----------------------------------------+-|-------------------+ +
385 | | | | |
386 | | +-- Saving &lt;--------[takeSnapshot()]&lt;-------+---------------------+
387 | | | |
388 | +-------- Saving &lt;--------[saveState()]&lt;----------+---------------------+
389 | | |
390 +-------------- Stopping -------[powerDown()]&lt;----------+---------------------+
391 </pre>
392
393 Note that states to the right from PoweredOff, Aborted and Saved in the
394 above diagram are called <i>online VM states</i>. These states
395 represent the virtual machine which is being executed in a dedicated
396 process (usually with a GUI window attached to it where you can see the
397 activity of the virtual machine and interact with it). There are two
398 special pseudo-states, FirstOnline and LastOnline, that can be used in
399 relational expressions to detect if the given machine state is online or
400 not:
401
402 <pre>
403 if (machine.GetState() &gt;= MachineState_FirstOnline &amp;&amp;
404 machine.GetState() &lt;= MachineState_LastOnline)
405 {
406 ...the machine is being executed...
407 }
408 </pre>
409
410 When the virtual machine is in one of the online VM states (that is, being
411 executed), only a few machine settings can be modified. Methods working
412 with such settings contain an explicit note about that. An attempt to
413 change any oter setting or perform a modifying operation during this time
414 will result in the <link to="VBOX_E_INVALID_VM_STATE"/> error.
415
416 All online states except Running, Paused and Stuck are transitional: they
417 represent temporary conditions of the virtual machine that will last as
418 long as the operation that initiated such a condition.
419
420 The Stuck state is a special case. It means that execution of the machine
421 has reached the "Guru Meditation" condition. This condition indicates an
422 internal VMM (virtual machine manager) failure which may happen as a
423 result of either an unhandled low-level virtual hardware exception or one
424 of the recompiler exceptions (such as the <i>too-many-traps</i>
425 condition).
426
427 Note also that any online VM state may transit to the Aborted state. This
428 happens if the process that is executing the virtual machine terminates
429 unexpectedly (for example, crashes). Other than that, the Aborted state is
430 equivalent to PoweredOff.
431
432 There are also a few additional state diagrams that do not deal with
433 virtual machine execution and therefore are shown separately. The states
434 shown on these diagrams are called <i>offline VM states</i> (this includes
435 PoweredOff, Aborted and Saved too).
436
437 The first diagram shows what happens when a lengthy setup operation is
438 being executed (such as <link to="IMachine::attachHardDisk"/>).
439
440 <pre>
441 +----------------------------------(same state as before the call)------+
442 | |
443 +-&gt; PoweredOff --+ |
444 | | |
445 |-&gt; Aborted -----+--&gt;[lengthy VM configuration call] --&gt; SettingUp -----+
446 | |
447 +-&gt; Saved -------+
448 </pre>
449
450 The next two diagrams demonstrate the process of taking a snapshot of a
451 powered off virtual machine and performing one of the "discard..."
452 operations, respectively.
453
454 <pre>
455 +----------------------------------(same state as before the call)------+
456 | |
457 +-&gt; PoweredOff --+ |
458 | +--&gt;[takeSnapshot()] -------------------&gt; Saving ------+
459 +-&gt; Aborted -----+
460
461 +-&gt; PoweredOff --+
462 | |
463 | Aborted -----+--&gt;[discardSnapshot() ]-------------&gt; Discarding --+
464 | | [discardCurrentState()] |
465 +-&gt; Saved -------+ [discardCurrentSnapshotAndState()] |
466 | |
467 +---(Saved if restored from an online snapshot, PoweredOff otherwise)---+
468 </pre>
469
470 Note that the Saving state is present in both the offline state group and
471 online state group. Currently, the only way to determine what group is
472 assumed in a particular case is to remember the previous machine state: if
473 it was Running or Paused, then Saving is an online state, otherwise it is
474 an offline state. This inconsistency may be removed in one of the future
475 versions of VirtualBox by adding a new state.
476
477 <note internal="yes">
478 For whoever decides to touch this enum: In order to keep the
479 comparisons involving FirstOnline and LastOnline pseudo-states valid,
480 the numeric values of these states must be correspondingly updated if
481 needed: for any online VM state, the condition
482 <tt>FirstOnline &lt;= state &lt;= LastOnline</tt> must be
483 @c true. The same relates to transient states for which
484 the condition <tt>FirstOnline &lt;= state &lt;= LastOnline</tt> must be
485 @c true.
486 </note>
487 </desc>
488
489 <const name="Null" value="0">
490 <desc>Null value (never used by the API).</desc>
491 </const>
492 <const name="PoweredOff" value="1">
493 <desc>
494 The machine is not running.
495 </desc>
496 </const>
497 <const name="Saved" value="2">
498 <desc>
499 The machine is not currently running, but the execution state of the machine
500 has been saved to an external file when it was running.
501 </desc>
502 </const>
503 <const name="Aborted" value="3">
504 <desc>
505 The process running the machine has terminated abnormally.
506 </desc>
507 </const>
508 <const name="Running" value="4">
509 <desc>
510 The machine is currently being executed.
511 <note internal="yes">
512 For whoever decides to touch this enum: In order to keep the
513 comparisons in the old source code valid, this state must immediately
514 precede the Paused state.
515 </note>
516 </desc>
517 </const>
518 <const name="Paused" value="5">
519 <desc>
520 Execution of the machine has been paused.
521 <note internal="yes">
522 For whoever decides to touch this enum: In order to keep the
523 comparisons in the old source code valid, this state must immediately
524 follow the Running state.
525 </note>
526 </desc>
527 </const>
528 <const name="Stuck" value="6">
529 <desc>
530 Execution of the machine has reached the "Guru Meditation"
531 condition.
532 </desc>
533 </const>
534 <const name="Starting" value="7">
535 <desc>
536 Machine is being started after powering it on from a
537 zero execution state.
538 </desc>
539 </const>
540 <const name="Stopping" value="8">
541 <desc>
542 Machine is being normally stopped powering it off, or after the guest OS
543 has initiated a shutdown sequence.
544 </desc>
545 </const>
546 <const name="Saving" value="9">
547 <desc>
548 Machine is saving its execution state to a file or an online
549 snapshot of the machine is being taken.
550 </desc>
551 </const>
552 <const name="Restoring" value="10">
553 <desc>
554 Execution state of the machine is being restored from a file
555 after powering it on from the saved execution state.
556 </desc>
557 </const>
558 <const name="Discarding" value="11">
559 <desc>
560 Snapshot of the machine is being discarded.
561 </desc>
562 </const>
563 <const name="SettingUp" value="12">
564 <desc>
565 Lengthy setup operation is in progress.
566 </desc>
567 </const>
568
569 <const name="FirstOnline" value="4" wsmap="suppress"> <!-- Running -->
570 <desc>
571 Pseudo-state: first online state (for use in relational expressions).
572 </desc>
573 </const>
574 <const name="LastOnline" value="10" wsmap="suppress"> <!-- Restoring -->
575 <desc>
576 Pseudo-state: last online state (for use in relational expressions).
577 </desc>
578 </const>
579
580 <const name="FirstTransient" value="7" wsmap="suppress"> <!-- Starting -->
581 <desc>
582 Pseudo-state: first transient state (for use in relational expressions).
583 </desc>
584 </const>
585 <const name="LastTransient" value="12" wsmap="suppress"> <!-- SettingUp -->
586 <desc>
587 Pseudo-state: last transient state (for use in relational expressions).
588 </desc>
589 </const>
590
591 </enum>
592
593 <enum
594 name="SessionState"
595 uuid="CF2700C0-EA4B-47ae-9725-7810114B94D8"
596 >
597 <desc>
598 Session state. This enumeration represents possible values of
599 <link to="IMachine::sessionState"/> and <link to="ISession::state"/>
600 attributes. See individual enumerator descriptions for the meaning for
601 every value.
602 </desc>
603
604 <const name="Null" value="0">
605 <desc>Null value (never used by the API).</desc>
606 </const>
607 <const name="Closed" value="1">
608 <desc>
609 The machine has no open sessions (<link to="IMachine::sessionState"/>);
610 the session is closed (<link to="ISession::state"/>)
611 </desc>
612 </const>
613 <const name="Open" value="2">
614 <desc>
615 The machine has an open direct session (<link to="IMachine::sessionState"/>);
616 the session is open (<link to="ISession::state"/>)
617 </desc>
618 </const>
619 <const name="Spawning" value="3">
620 <desc>
621 A new (direct) session is being opened for the machine
622 as a result of <link to="IVirtualBox::openRemoteSession"/>
623 call (<link to="IMachine::sessionState"/>);
624 the session is currently being opened
625 as a result of <link to="IVirtualBox::openRemoteSession"/>
626 call (<link to="ISession::state"/>)
627 </desc>
628 </const>
629 <const name="Closing" value="4">
630 <desc>
631 The direct session is being closed (<link to="IMachine::sessionState"/>);
632 the session is being closed (<link to="ISession::state"/>)
633 </desc>
634 </const>
635 </enum>
636
637 <enum
638 name="SessionType"
639 uuid="A13C02CB-0C2C-421E-8317-AC0E8AAA153A"
640 >
641 <desc>
642 Session type. This enumeration represents possible values of the
643 <link to="ISession::type"/> attribute.
644 </desc>
645
646 <const name="Null" value="0">
647 <desc>Null value (never used by the API).</desc>
648 </const>
649 <const name="Direct" value="1">
650 <desc>
651 Direct session
652 (opened by <link to="IVirtualBox::openSession"/>)
653 </desc>
654 </const>
655 <const name="Remote" value="2">
656 <desc>
657 Remote session
658 (opened by <link to="IVirtualBox::openRemoteSession"/>)
659 </desc>
660 </const>
661 <const name="Existing" value="3">
662 <desc>
663 Existing session
664 (opened by <link to="IVirtualBox::openExistingSession"/>)
665 </desc>
666 </const>
667 </enum>
668
669 <enum
670 name="DeviceType"
671 uuid="6d9420f7-0b56-4636-99f9-7346f1b01e57"
672 >
673 <desc>
674 Device type.
675 </desc>
676 <const name="Null" value="0">
677 <desc>
678 Null value, may also mean "no device" (not allowed for
679 <link to="IConsole::getDeviceActivity"/>).
680 </desc>
681 </const>
682 <const name="Floppy" value="1">
683 <desc>Floppy device.</desc>
684 </const>
685 <const name="DVD" value="2">
686 <desc>CD/DVD-ROM device.</desc>
687 </const>
688 <const name="HardDisk" value="3">
689 <desc>Hard disk device.</desc>
690 </const>
691 <const name="Network" value="4">
692 <desc>Network device.</desc>
693 </const>
694 <const name="USB" value="5">
695 <desc>USB device.</desc>
696 </const>
697 <const name="SharedFolder" value="6">
698 <desc>Shared folder device.</desc>
699 </const>
700 </enum>
701
702 <enum
703 name="DeviceActivity"
704 uuid="6FC8AEAA-130A-4eb5-8954-3F921422D707"
705 >
706 <desc>
707 Device activity for <link to="IConsole::getDeviceActivity"/>.
708 </desc>
709
710 <const name="Null" value="0"/>
711 <const name="Idle" value="1"/>
712 <const name="Reading" value="2"/>
713 <const name="Writing" value="3"/>
714 </enum>
715
716 <enum
717 name="ClipboardMode"
718 uuid="33364716-4008-4701-8f14-be0fa3d62950"
719 >
720 <desc>
721 Host-Guest clipboard interchange mode.
722 </desc>
723
724 <const name="Disabled" value="0"/>
725 <const name="HostToGuest" value="1"/>
726 <const name="GuestToHost" value="2"/>
727 <const name="Bidirectional" value="3"/>
728 </enum>
729
730 <enum
731 name="Scope"
732 uuid="7c91096e-499e-4eca-9f9b-9001438d7855"
733 >
734 <desc>
735 Scope of the operation.
736
737 A generic enumeration used in various methods to define the action or
738 argument scope.
739 </desc>
740
741 <const name="Global" value="0"/>
742 <const name="Machine" value="1"/>
743 <const name="Session" value="2"/>
744 </enum>
745
746 <enum
747 name="GuestStatisticType"
748 uuid="aa7c1d71-aafe-47a8-9608-27d2d337cf55"
749 >
750 <desc>
751 Statistics type for <link to="IGuest::getStatistic"/>.
752 </desc>
753
754 <const name="CPULoad_Idle" value="0">
755 <desc>
756 Idle CPU load (0-100%) for last interval.
757 </desc>
758 </const>
759 <const name="CPULoad_Kernel" value="1">
760 <desc>
761 Kernel CPU load (0-100%) for last interval.
762 </desc>
763 </const>
764 <const name="CPULoad_User" value="2">
765 <desc>
766 User CPU load (0-100%) for last interval.
767 </desc>
768 </const>
769 <const name="Threads" value="3">
770 <desc>
771 Total number of threads in the system.
772 </desc>
773 </const>
774 <const name="Processes" value="4">
775 <desc>
776 Total number of processes in the system.
777 </desc>
778 </const>
779 <const name="Handles" value="5">
780 <desc>
781 Total number of handles in the system.
782 </desc>
783 </const>
784 <const name="MemoryLoad" value="6">
785 <desc>
786 Memory load (0-100%).
787 </desc>
788 </const>
789 <const name="PhysMemTotal" value="7">
790 <desc>
791 Total physical memory in megabytes.
792 </desc>
793 </const>
794 <const name="PhysMemAvailable" value="8">
795 <desc>
796 Free physical memory in megabytes.
797 </desc>
798 </const>
799 <const name="PhysMemBalloon" value="9">
800 <desc>
801 Ballooned physical memory in megabytes.
802 </desc>
803 </const>
804 <const name="MemCommitTotal" value="10">
805 <desc>
806 Total amount of memory in the committed state in megabytes.
807 </desc>
808 </const>
809 <const name="MemKernelTotal" value="11">
810 <desc>
811 Total amount of memory used by the guest OS's kernel in megabytes.
812 </desc>
813 </const>
814 <const name="MemKernelPaged" value="12">
815 <desc>
816 Total amount of paged memory used by the guest OS's kernel in megabytes.
817 </desc>
818 </const>
819 <const name="MemKernelNonpaged" value="13">
820 <desc>
821 Total amount of non-paged memory used by the guest OS's kernel in megabytes.
822 </desc>
823 </const>
824 <const name="MemSystemCache" value="14">
825 <desc>
826 Total amount of memory used by the guest OS's system cache in megabytes.
827 </desc>
828 </const>
829 <const name="PageFileSize" value="15">
830 <desc>
831 Pagefile size in megabytes.
832 </desc>
833 </const>
834 <const name="SampleNumber" value="16">
835 <desc>
836 Statistics sample number
837 </desc>
838 </const>
839 <const name="MaxVal" value="17"/>
840 </enum>
841
842 <enum
843 name="BIOSBootMenuMode"
844 uuid="ae4fb9f7-29d2-45b4-b2c7-d579603135d5"
845 >
846 <desc>
847 BIOS boot menu mode.
848 </desc>
849
850 <const name="Disabled" value="0"/>
851 <const name="MenuOnly" value="1"/>
852 <const name="MessageAndMenu" value="2"/>
853 </enum>
854
855 <enum
856 name="DriveState"
857 uuid="cb7233b7-c519-42a5-8310-1830953cacbc"
858 >
859 <const name="Null" value="0">
860 <desc>Null value (never used by the API).</desc>
861 </const>
862 <const name="NotMounted" value="1"/>
863 <const name="ImageMounted" value="2"/>
864 <const name="HostDriveCaptured" value="3"/>
865 </enum>
866
867 <enum
868 name="ProcessorFeature"
869 uuid="b8353b35-705d-4796-9967-ebfb7ba54af4"
870 >
871 <desc>
872 CPU features.
873 </desc>
874
875 <const name="HWVirtEx" value="0"/>
876 <const name="PAE" value="1"/>
877 <const name="LongMode" value="2"/>
878 </enum>
879
880
881 <!--
882 // IVirtualBoxErrorInfo
883 /////////////////////////////////////////////////////////////////////////
884 -->
885
886 <interface
887 name="IVirtualBoxErrorInfo" extends="$errorinfo"
888 uuid="bcae7fc3-3fd0-4bac-923c-ec1596c7bc83"
889 supportsErrorInfo="no"
890 wsmap="suppress"
891 >
892 <desc>
893 The IVirtualBoxErrorInfo interface represents extended error information.
894
895 Extended error information can be set by VirtualBox components after
896 unsuccessful or partially successful method invocation. This information
897 can be retrieved by the calling party as an IVirtualBoxErrorInfo object
898 and then shown to the client in addition to the plain 32-bit result code.
899
900 In MS COM, this interface extends the IErrorInfo interface,
901 in XPCOM, it extends the nsIException interface. In both cases,
902 it provides a set of common attributes to retrieve error
903 information.
904
905 Sometimes invocation of some component's method may involve methods of
906 other components that may also fail (independently of this method's
907 failure), or a series of non-fatal errors may precede a fatal error that
908 causes method failure. In cases like that, it may be desirable to preserve
909 information about all errors happened during method invocation and deliver
910 it to the caller. The <link to="#next"/> attribute is intended
911 specifically for this purpose and allows to represent a chain of errors
912 through a single IVirtualBoxErrorInfo object set after method invocation.
913
914 Note that errors are stored to a chain in the reverse order, i.e. the
915 initial error object you query right after method invocation is the last
916 error set by the callee, the object it points to in the @a next attribute
917 is the previous error and so on, up to the first error (which is the last
918 in the chain).
919 </desc>
920
921 <attribute name="resultCode" type="long" readonly="yes">
922 <desc>
923 Result code of the error.
924 Usually, it will be the same as the result code returned
925 by the method that provided this error information, but not
926 always. For example, on Win32, CoCreateInstance() will most
927 likely return E_NOINTERFACE upon unsuccessful component
928 instantiation attempt, but not the value the component factory
929 returned. Value is typed 'long', not 'result',
930 to make interface usable from scripting languages.
931 <note>
932 In MS COM, there is no equivalent.
933 In XPCOM, it is the same as nsIException::result.
934 </note>
935 </desc>
936 </attribute>
937
938 <attribute name="interfaceID" type="uuid" readonly="yes">
939 <desc>
940 UUID of the interface that defined the error.
941 <note>
942 In MS COM, it is the same as IErrorInfo::GetGUID.
943 In XPCOM, there is no equivalent.
944 </note>
945 </desc>
946 </attribute>
947
948 <attribute name="component" type="wstring" readonly="yes">
949 <desc>
950 Name of the component that generated the error.
951 <note>
952 In MS COM, it is the same as IErrorInfo::GetSource.
953 In XPCOM, there is no equivalent.
954 </note>
955 </desc>
956 </attribute>
957
958 <attribute name="text" type="wstring" readonly="yes">
959 <desc>
960 Text description of the error.
961 <note>
962 In MS COM, it is the same as IErrorInfo::GetDescription.
963 In XPCOM, it is the same as nsIException::message.
964 </note>
965 </desc>
966 </attribute>
967
968 <attribute name="next" type="IVirtualBoxErrorInfo" readonly="yes">
969 <desc>
970 Next error object if there is any, or @c null otherwise.
971 <note>
972 In MS COM, there is no equivalent.
973 In XPCOM, it is the same as nsIException::inner.
974 </note>
975 </desc>
976 </attribute>
977
978 </interface>
979
980
981 <!--
982 // IVirtualBox
983 /////////////////////////////////////////////////////////////////////////
984 -->
985
986 <interface
987 name="IVirtualBoxCallback" extends="$unknown"
988 uuid="2990059f-5bc8-4635-8415-658917cd3186"
989 wsmap="suppress"
990 >
991 <method name="onMachineStateChange">
992 <desc>
993 The execution state of the given machine has changed.
994 <see>IMachine::state</see>
995 </desc>
996 <param name="machineId" type="wstring" dir="in">
997 <desc>ID of the machine this event relates to.</desc>
998 </param>
999 <param name="state" type="MachineState" dir="in">
1000 <desc>New execution state.</desc>
1001 </param>
1002 </method>
1003
1004 <method name="onMachineDataChange">
1005 <desc>
1006 Any of the settings of the given machine has changed.
1007 </desc>
1008 <param name="machineId" type="wstring" dir="in">
1009 <desc>ID of the machine this event relates to.</desc>
1010 </param>
1011 </method>
1012
1013 <method name="onExtraDataCanChange">
1014 <desc>
1015 Notification when someone tries to change extra data for
1016 either the given machine or (if @c null) global extra data.
1017 This gives the chance to veto against changes.
1018 </desc>
1019 <param name="machineId" type="wstring" dir="in">
1020 <desc>
1021 ID of the machine this event relates to
1022 (@c null ID for global extra data change requests).
1023 </desc>
1024 </param>
1025 <param name="key" type="wstring" dir="in">
1026 <desc>
1027 Extra data key for the attempted write.
1028 </desc>
1029 </param>
1030 <param name="value" type="wstring" dir="in">
1031 <desc>
1032 Extra data value for the given key.
1033 </desc>
1034 </param>
1035 <param name="error" type="wstring" dir="out">
1036 <desc>
1037 Optional error message describing the reason of the
1038 veto (ignored if this notification returns @c true).
1039 </desc>
1040 </param>
1041 <param name="allowChange" type="boolean" dir="return">
1042 <desc>
1043 Flag to indicate whether the callee agrees (@c true)
1044 or vetoes against the change (@c false).
1045 </desc>
1046 </param>
1047 </method>
1048
1049 <method name="onExtraDataChange">
1050 <desc>
1051 Notification when machine specific or global extra data
1052 has changed.
1053 </desc>
1054 <param name="machineId" type="wstring" dir="in">
1055 <desc>
1056 ID of the machine this event relates to.
1057 Null for global extra data changes.
1058 </desc>
1059 </param>
1060 <param name="key" type="wstring" dir="in">
1061 <desc>
1062 Extra data key that has changed.
1063 </desc>
1064 </param>
1065 <param name="value" type="wstring" dir="in">
1066 <desc>
1067 Extra data value for the given key.
1068 </desc>
1069 </param>
1070 </method>
1071
1072 <method name="onMediaRegistered">
1073 <desc>
1074 The given media was registered or unregistered
1075 within this VirtualBox installation.
1076
1077 The @a mediaType parameter describes what type of
1078 media the specified @a mediaId refers to. Possible
1079 values are:
1080
1081 <ul>
1082 <li><link to="DeviceType_HardDisk"/>: the media is a hard disk
1083 that, if registered, can be obtained using the
1084 <link to="IVirtualBox::getHardDisk"/> call.</li>
1085 <li><link to="DeviceType_DVD"/>: the media is a CD/DVD image
1086 that, if registered, can be obtained using the
1087 <link to="IVirtualBox::getDVDImage"/> call.</li>
1088 <li><link to="DeviceType_Floppy"/>: the media is a Floppy image
1089 that, if registered, can be obtained using the
1090 <link to="IVirtualBox::getFloppyImage"/> call.</li>
1091 </ul>
1092
1093 Note that if this is a deregistration notification,
1094 there is no way to access the object representing the
1095 unregistered media. It is supposed that the
1096 application will do required cleanup based on the
1097 @a mediaId value.
1098 </desc>
1099 <param name="mediaId" type="wstring" dir="in">
1100 <desc>ID of the media this event relates to.</desc>
1101 </param>
1102 <param name="mediaType" type="DeviceType" dir="in">
1103 <desc>Type of the media this event relates to.</desc>
1104 </param>
1105 <param name="registered" type="boolean" dir="in">
1106 <desc>
1107 If @c true, the media was registered, otherwise it was
1108 unregistered.
1109 </desc>
1110 </param>
1111 </method>
1112
1113 <method name="onMachineRegistered">
1114 <desc>
1115 The given machine was registered or unregistered
1116 within this VirtualBox installation.
1117 </desc>
1118 <param name="machineId" type="wstring" dir="in">
1119 <desc>ID of the machine this event relates to.</desc>
1120 </param>
1121 <param name="registered" type="boolean" dir="in">
1122 <desc>
1123 If @c true, the machine was registered, otherwise it was
1124 unregistered.
1125 </desc>
1126 </param>
1127 </method>
1128
1129 <method name="onSessionStateChange">
1130 <desc>
1131 The state of the session for the given machine was changed.
1132 <see>IMachine::sessionState</see>
1133 </desc>
1134 <param name="machineId" type="wstring" dir="in">
1135 <desc>ID of the machine this event relates to.</desc>
1136 </param>
1137 <param name="state" type="SessionState" dir="in">
1138 <desc>New session state.</desc>
1139 </param>
1140 </method>
1141
1142 <method name="onSnapshotTaken">
1143 <desc>
1144 A new snapshot of the machine has been taken.
1145 <see>ISnapshot</see>
1146 </desc>
1147 <param name="machineId" type="wstring" dir="in">
1148 <desc>ID of the machine this event relates to.</desc>
1149 </param>
1150 <param name="snapshotId" type="wstring" dir="in">
1151 <desc>ID of the new snapshot.</desc>
1152 </param>
1153 </method>
1154
1155 <method name="onSnapshotDiscarded">
1156 <desc>
1157 Snapshot of the given machine has been discarded.
1158
1159 <note>
1160 This notification is delivered <b>after</b> the snapshot
1161 object has been uninitialized on the server (so that any
1162 attempt to call its methods will return an error).
1163 </note>
1164
1165 <see>ISnapshot</see>
1166 </desc>
1167 <param name="machineId" type="wstring" dir="in">
1168 <desc>ID of the machine this event relates to.</desc>
1169 </param>
1170 <param name="snapshotId" type="wstring" dir="in">
1171 <desc>
1172 ID of the discarded snapshot. @c null means the current machine
1173 state has been discarded (restored from the current snapshot).
1174 </desc>
1175 </param>
1176 </method>
1177
1178 <method name="onSnapshotChange">
1179 <desc>
1180 Snapshot properties (name and/or description) have been changed.
1181 <see>ISnapshot</see>
1182 </desc>
1183 <param name="machineId" type="wstring" dir="in">
1184 <desc>ID of the machine this event relates to.</desc>
1185 </param>
1186 <param name="snapshotId" type="wstring" dir="in">
1187 <desc>ID of the changed snapshot.</desc>
1188 </param>
1189 </method>
1190
1191 <method name="onGuestPropertyChange">
1192 <desc>
1193 Notification when a guest property has changed.
1194 </desc>
1195 <param name="machineId" type="wstring" dir="in">
1196 <desc>
1197 ID of the machine this event relates to.
1198 </desc>
1199 </param>
1200 <param name="name" type="wstring" dir="in">
1201 <desc>
1202 The name of the property that has changed.
1203 </desc>
1204 </param>
1205 <param name="value" type="wstring" dir="in">
1206 <desc>
1207 The new property value.
1208 </desc>
1209 </param>
1210 <param name="flags" type="wstring" dir="in">
1211 <desc>
1212 The new property flags.
1213 </desc>
1214 </param>
1215 </method>
1216
1217 </interface>
1218
1219 <interface
1220 name="IDHCPServer" extends="$unknown"
1221 uuid="6cfe387c-74fb-4ca7-bff6-973bec8af7a3"
1222 wsmap="managed"
1223 >
1224 <desc>
1225 The IDHCPServer interface represents the vbox dhcp server configuration.
1226
1227 To enumerate all the dhcp servers on the host, use the
1228 <link to="IVirtualBox::DHCPServers"/> attribute.
1229 </desc>
1230
1231 <attribute name="enabled" type="boolean">
1232 <desc>
1233 specifies if the dhcp server is enabled
1234 </desc>
1235 </attribute>
1236
1237 <attribute name="IPAddress" type="wstring" readonly="yes">
1238 <desc>
1239 specifies server IP
1240 </desc>
1241 </attribute>
1242
1243 <attribute name="networkMask" type="wstring" readonly="yes">
1244 <desc>
1245 specifies server network mask
1246 </desc>
1247 </attribute>
1248
1249 <attribute name="networkName" type="wstring" readonly="yes">
1250 <desc>
1251 specifies internal network name the server is used for
1252 </desc>
1253 </attribute>
1254
1255 <attribute name="lowerIP" type="wstring" readonly="yes">
1256 <desc>
1257 specifies from IP adrres in server address range
1258 </desc>
1259 </attribute>
1260
1261 <attribute name="upperIP" type="wstring" readonly="yes">
1262 <desc>
1263 specifies to IP adrres in server address range
1264 </desc>
1265 </attribute>
1266
1267 <method name="setConfiguration">
1268 <desc>
1269 configures the server
1270 <result name="E_INVALIDARG">
1271 invalid configuration supplied
1272 </result>
1273 </desc>
1274 <param name="IPAddress" type="wstring" dir="in">
1275 <desc>
1276 server IP address
1277 </desc>
1278 </param>
1279 <param name="networkMask" type="wstring" dir="in">
1280 <desc>
1281 server network mask
1282 </desc>
1283 </param>
1284 <param name="FromIPAddress" type="wstring" dir="in">
1285 <desc>
1286 server From IP address for address range
1287 </desc>
1288 </param>
1289 <param name="ToIPAddress" type="wstring" dir="in">
1290 <desc>
1291 server To IP address for address range
1292 </desc>
1293 </param>
1294 </method>
1295
1296 <method name="start">
1297 <desc>
1298 Starts DHCP server process.
1299 <result name="E_FAIL">
1300 Failed to start the process.
1301 </result>
1302 </desc>
1303 <param name="networkName" type="wstring" dir="in">
1304 <desc>
1305 Name of internal network DHCP server should attach to.
1306 </desc>
1307 </param>
1308 <param name="trunkName" type="wstring" dir="in">
1309 <desc>
1310 Name of internal network trunk.
1311 </desc>
1312 </param>
1313 <param name="trunkType" type="wstring" dir="in">
1314 <desc>
1315 Type of internal network trunk.
1316 </desc>
1317 </param>
1318 </method>
1319
1320 <method name="stop">
1321 <desc>
1322 Stops DHCP server process.
1323 <result name="E_FAIL">
1324 Failed to stop the process.
1325 </result>
1326 </desc>
1327 </method>
1328 </interface>
1329
1330 <interface
1331 name="IVirtualBox" extends="$dispatched"
1332 uuid="3f4ab53a-199b-4526-a91a-93ff62e456b8"
1333 wsmap="managed"
1334 >
1335 <desc>
1336 The IVirtualBox interface represents the main interface exposed by the
1337 product that provides virtual machine management.
1338
1339 An instance of IVirtualBox is required for the product to do anything
1340 useful. Even though the interface does not expose this, internally,
1341 IVirtualBox is implemented as a singleton and actually lives in the
1342 process of the VirtualBox server (VBoxSVC.exe). This makes sure that
1343 IVirtualBox can track the state of all virtual machines on a particular
1344 host, regardless of which frontend started them.
1345
1346 To enumerate all the virtual machines on the host, use the
1347 <link to="IVirtualBox::machines"/> attribute.
1348 </desc>
1349
1350 <attribute name="version" type="wstring" readonly="yes">
1351 <desc>
1352 A string representing the version number of the product. The
1353 format is 3 integer numbers divided by dots (e.g. 1.0.1). The
1354 last number represents the build number and will frequently change.
1355 </desc>
1356 </attribute>
1357
1358 <attribute name="revision" type="unsigned long" readonly="yes">
1359 <desc>
1360 The internal build revision number of the product.
1361 </desc>
1362 </attribute>
1363
1364 <attribute name="packageType" type="wstring" readonly="yes">
1365 <desc>
1366 A string representing the package type of this product. The
1367 format is OS_ARCH_DIST where OS is either WINDOWS, LINUX,
1368 SOLARIS, DARWIN. ARCH is either 32BITS or 64BITS. DIST
1369 is either GENERIC, UBUNTU_606, UBUNTU_710, or something like
1370 this.
1371 </desc>
1372 </attribute>
1373
1374 <attribute name="homeFolder" type="wstring" readonly="yes">
1375 <desc>
1376 Full path to the directory where the global settings file,
1377 <tt>VirtualBox.xml</tt>, is stored.
1378
1379 In this version of VirtualBox, the value of this property is
1380 always <tt>&lt;user_dir&gt;/.VirtualBox</tt> (where
1381 <tt>&lt;user_dir&gt;</tt> is the path to the user directory,
1382 as determined by the host OS), and cannot be changed.
1383
1384 This path is also used as the base to resolve relative paths in
1385 places where relative paths are allowed (unless otherwise
1386 expressly indicated).
1387 </desc>
1388 </attribute>
1389
1390 <attribute name="settingsFilePath" type="wstring" readonly="yes">
1391 <desc>
1392 Full name of the global settings file.
1393 The value of this property corresponds to the value of
1394 <link to="#homeFolder"/> plus <tt>/VirtualBox.xml</tt>.
1395 </desc>
1396 </attribute>
1397
1398 <attribute name="settingsFileVersion" type="wstring" readonly="yes">
1399 <desc>
1400 Current version of the format of the global VirtualBox settings file
1401 (<tt>VirtualBox.xml</tt>).
1402
1403 The version string has the following format:
1404 <pre>
1405 x.y-platform
1406 </pre>
1407 where @c x and @c y are the major and the minor format
1408 versions, and @c platform is the platform identifier.
1409
1410 The current version usually matches the value of the
1411 <link to="#settingsFormatVersion"/> attribute unless the
1412 settings file was created by an older version of VirtualBox and there
1413 was a change of the settings file format since then.
1414
1415 Note that VirtualBox automatically converts settings files from older
1416 versions to the most recent version when reading them (usually at
1417 VirtualBox startup) but it doesn't save the changes back until
1418 you call a method that implicitly saves settings (such as
1419 <link to="#setExtraData"/>) or call <link to="#saveSettings"/>
1420 explicitly. Therefore, if the value of this attribute differs from the
1421 value of <link to="#settingsFormatVersion"/>, then it
1422 means that the settings file was converted but the result of the
1423 conversion is not yet saved to disk.
1424
1425 The above feature may be used by interactive front-ends to inform users
1426 about the settings file format change and offer them to explicitly save
1427 all converted settings files (the global and VM-specific ones),
1428 optionally create backup copies of the old settings files before saving,
1429 etc.
1430
1431 <see>settingsFormatVersion, saveSettingsWithBackup()</see>
1432 </desc>
1433 </attribute>
1434
1435 <attribute name="settingsFormatVersion" type="wstring" readonly="yes">
1436 <desc>
1437 Most recent version of the settings file format.
1438
1439 The version string has the following format:
1440 <pre>
1441 x.y-platform
1442 </pre>
1443 where @c x and @c y are the major and the minor format
1444 versions, and @c platform is the platform identifier.
1445
1446 VirtualBox uses this version of the format when saving settings files
1447 (either as a result of method calls that require to save settings or as
1448 a result of an explicit call to <link to="#saveSettings"/>).
1449
1450 <see>settingsFileVersion</see>
1451 </desc>
1452 </attribute>
1453
1454 <attribute name="host" type="IHost" readonly="yes">
1455 <desc>Associated host object.</desc>
1456 </attribute>
1457
1458 <attribute name="systemProperties" type="ISystemProperties" readonly="yes">
1459 <desc>Associated system information object.</desc>
1460 </attribute>
1461
1462 <attribute name="machines" type="IMachine" readonly="yes" safearray="yes">
1463 <desc>
1464 Array of machine objects registered within this VirtualBox instance.
1465 </desc>
1466 </attribute>
1467
1468 <attribute name="hardDisks" type="IHardDisk" readonly="yes" safearray="yes">
1469 <desc>
1470 Array of hard disk objects known to this VirtualBox installation.
1471
1472 This array contains only base (root) hard disks. All differencing
1473 hard disks of the given base hard disk can be enumerated using
1474 <link to="IHardDisk::children"/>.
1475 </desc>
1476 </attribute>
1477
1478 <attribute name="DVDImages" type="IDVDImage" readonly="yes" safearray="yes">
1479 <desc>
1480 Array of CD/DVD image objects registered with this VirtualBox instance.
1481 </desc>
1482 </attribute>
1483
1484 <attribute name="floppyImages" type="IFloppyImage" readonly="yes" safearray="yes">
1485 <desc>
1486 Array of floppy image objects registered with this VirtualBox instance.
1487 </desc>
1488 </attribute>
1489
1490 <attribute name="progressOperations" type="IProgress" readonly="yes" safearray="yes"/>
1491
1492 <attribute name="guestOSTypes" type="IGuestOSType" readonly="yes" safearray="yes"/>
1493
1494 <attribute name="sharedFolders" type="ISharedFolder" readonly="yes" safearray="yes">
1495 <desc>
1496 Collection of global shared folders. Global shared folders are
1497 available to all virtual machines.
1498
1499 New shared folders are added to the collection using
1500 <link to="#createSharedFolder"/>. Existing shared folders can be
1501 removed using <link to="#removeSharedFolder"/>.
1502
1503 <note>
1504 In the current version of the product, global shared folders are not
1505 implemented and therefore this collection is always empty.
1506 </note>
1507 </desc>
1508 </attribute>
1509
1510 <attribute name="performanceCollector" type="IPerformanceCollector" readonly="yes">
1511 <desc>
1512 Associated performance collector object.
1513 </desc>
1514 </attribute>
1515
1516 <attribute name="DHCPServers" type="IDHCPServer" safearray="yes" readonly="yes">
1517 <desc>
1518 dhcp server settings.
1519 </desc>
1520 </attribute>
1521
1522 <method name="createMachine">
1523 <desc>
1524 Creates a new virtual machine.
1525
1526 The new machine is created unregistered, with the initial configuration
1527 set according to the specified guest OS type. A typical sequence of
1528 actions to create a new virtual machine is as follows:
1529
1530 <ol>
1531 <li>
1532 Call this method to have a new machine created. The returned machine
1533 object will be "mutable" allowing to change any machine property.
1534 </li>
1535
1536 <li>
1537 Configure the machine using the appropriate attributes and methods.
1538 </li>
1539
1540 <li>
1541 Call <link to="IMachine::saveSettings" /> to write the settings
1542 to the machine's XML settings file. The configuration of the newly
1543 created machine will not be saved to disk until this method is
1544 called.
1545 </li>
1546
1547 <li>
1548 Call <link to="#registerMachine" /> to add the machine to the list
1549 of machines known to VirtualBox.
1550 </li>
1551 </ol>
1552
1553 You should specify valid name for the newly created machine when calling
1554 this method. See the <link to="IMachine::name"/> attribute description
1555 for more details about the machine name.
1556
1557 The specified guest OS type identifier must match an ID of one of known
1558 guest OS types listed in the <link to="IVirtualBox::guestOSTypes"/>
1559 array.
1560
1561 Every machine has a <i>settings file</i> that is used to store
1562 the machine configuration. This file is stored in a directory called the
1563 <i>machine settings subfolder</i>. Both the settings subfolder and file
1564 will have a name that corresponds to the name of the virtual machine.
1565 You can specify where to create the machine setting subfolder using the
1566 @a baseFolder argument. The base folder can be absolute (full path) or
1567 relative to the <link to="IVirtualBox::homeFolder">VirtualBox home
1568 directory</link>.
1569
1570 If @a baseFolder is a @c null or empty string (which is recommended), the
1571 <link to="ISystemProperties::defaultMachineFolder">default machine
1572 settings folder</link> will be used as a base folder for the created
1573 machine. Otherwise the given base folder will be used. In either case,
1574 the full path to the resulting settings file has the following
1575 structure:
1576 <pre>
1577 &lt;base_folder&gt;/&lt;machine_name&gt;/&lt;machine_name&gt;.xml
1578 </pre>
1579
1580 Note that if the resulting settings file already exists, this method
1581 will fail with <link to="VBOX_E_FILE_ERROR"/>.
1582
1583 Optionally, you may specify an UUID of to assign to the created machine.
1584 However, this is not recommended and you should normally pass an empty
1585 (@c null) UUID to this method so that a new UUID will be automatically
1586 generated for every created machine. You can use UUID
1587 00000000-0000-0000-0000-000000000000 as @c null value.
1588
1589 <note>
1590 There is no way to change the name of the settings file or
1591 subfolder of the created machine directly.
1592 </note>
1593
1594 <result name="VBOX_E_OBJECT_NOT_FOUND">
1595 @a osTypeId is invalid.
1596 </result>
1597 <result name="VBOX_E_FILE_ERROR">
1598 Resulting settings file name is invalid or the settings file already
1599 exists or could not be created due to an I/O error.
1600 </result>
1601 <result name="E_INVALIDARG">
1602 @a name is empty or @c null.
1603 </result>
1604 </desc>
1605
1606 <param name="name" type="wstring" dir="in">
1607 <desc>Machine name.</desc>
1608 </param>
1609 <param name="osTypeId" type="wstring" dir="in">
1610 <desc>Guest OS Type ID.</desc>
1611 </param>
1612 <param name="baseFolder" type="wstring" dir="in">
1613 <desc>Base machine folder (optional).</desc>
1614 </param>
1615 <param name="id" type="wstring" dir="in">
1616 <desc>Machine UUID (optional).</desc>
1617 </param>
1618 <param name="machine" type="IMachine" dir="return">
1619 <desc>Created machine object.</desc>
1620 </param>
1621 </method>
1622
1623 <method name="createLegacyMachine">
1624 <desc>
1625 Creates a new virtual machine in "legacy" mode, using the specified
1626 settings file to store machine settings.
1627
1628 As opposed to machines created by <link to="#createMachine"/>,
1629 the settings file of the machine created in "legacy" mode is not
1630 automatically renamed when the machine name is changed -- it will always
1631 remain the same as specified in this method call.
1632
1633 The specified settings file name can be absolute (full path) or relative
1634 to the <link to="IVirtualBox::homeFolder">VirtualBox home
1635 directory</link>. If the file name doesn't contain an extension, the
1636 default extension (.xml) will be appended.
1637
1638 Note that the configuration of the newly created machine is not
1639 saved to disk (and therefore no settings file is created)
1640 until <link to="IMachine::saveSettings"/> is called. If the
1641 specified settings file already exists, this method
1642 will fail with <link to="VBOX_E_FILE_ERROR"/>.
1643
1644 See <link to="#createMachine"/> for more information.
1645
1646 @deprecated This method may be removed later. Use <link
1647 to="IVirtualBox::createMachine"/> instead.
1648
1649 <note>
1650 There is no way to change the name of the settings file
1651 of the machine created in "legacy" mode.
1652 </note>
1653
1654 <result name="VBOX_E_OBJECT_NOT_FOUND">
1655 @a osTypeId is invalid.
1656 </result>
1657 <result name="VBOX_E_FILE_ERROR">
1658 @a settingsFile is invalid or the settings file already exists or
1659 could not be created due to an I/O error.
1660 </result>
1661 <result name="E_INVALIDARG">
1662 @a name or @a settingsFile is empty or @c null.
1663 </result>
1664 </desc>
1665
1666 <param name="name" type="wstring" dir="in">
1667 <desc>Machine name.</desc>
1668 </param>
1669 <param name="osTypeId" type="wstring" dir="in">
1670 <desc>Machine OS Type ID.</desc>
1671 </param>
1672 <param name="settingsFile" type="wstring" dir="in">
1673 <desc>Name of the machine settings file.</desc>
1674 </param>
1675 <param name="id" type="wstring" dir="in">
1676 <desc>Machine UUID (optional).</desc>
1677 </param>
1678 <param name="machine" type="IMachine" dir="return">
1679 <desc>Created machine object.</desc>
1680 </param>
1681 </method>
1682
1683 <method name="openMachine">
1684 <desc>
1685 Opens a virtual machine from the existing settings file.
1686 The opened machine remains unregistered until you call
1687 <link to="#registerMachine"/>.
1688
1689 The specified settings file name can be absolute
1690 (full path) or relative to the <link to="IVirtualBox::homeFolder">
1691 VirtualBox home directory</link>. This file must exist
1692 and must be a valid machine settings file whose contents
1693 will be used to construct the machine object.
1694
1695 @deprecated Will be removed soon.
1696 <result name="VBOX_E_FILE_ERROR">
1697 Settings file name invalid, not found or sharing violation.
1698 </result>
1699 </desc>
1700 <param name="settingsFile" type="wstring" dir="in">
1701 <desc>
1702 Name of the machine settings file.
1703 </desc>
1704 </param>
1705 <param name="machine" type="IMachine" dir="return">
1706 <desc>Opened machine object.</desc>
1707 </param>
1708 <note>
1709 <link to="IMachine::settingsModified"/> will return
1710 @c false for the created machine, until any of machine settings
1711 are changed.
1712 </note>
1713 </method>
1714
1715 <method name="registerMachine">
1716 <desc>
1717
1718 Registers the machine previously created using
1719 <link to="#createMachine"/> or opened using
1720 <link to="#openMachine"/> within this VirtualBox installation. After
1721 successful method invocation, the
1722 <link to="IVirtualBoxCallback::onMachineRegistered"/> signal is sent
1723 to all registered callbacks.
1724
1725 <note>
1726 This method implicitly calls <link to="IMachine::saveSettings"/>
1727 to save all current machine settings before registering it.
1728 </note>
1729
1730 <result name="VBOX_E_OBJECT_NOT_FOUND">
1731 No matching virtual machine found.
1732 </result>
1733 <result name="VBOX_E_INVALID_OBJECT_STATE">
1734 Virtual machine was not created within this VirtualBox instance.
1735 </result>
1736
1737 </desc>
1738 <param name="machine" type="IMachine" dir="in"/>
1739 </method>
1740
1741 <method name="getMachine">
1742 <desc>
1743 Attempts to find a virtual machine given its UUID.
1744 To look up a machine by name, use <link to="IVirtualBox::findMachine" />
1745 instead.
1746
1747 <result name="VBOX_E_OBJECT_NOT_FOUND">
1748 Could not find registered machine matching @a id.
1749 </result>
1750
1751 </desc>
1752 <param name="id" type="wstring" dir="in"/>
1753 <param name="machine" type="IMachine" dir="return"/>
1754 </method>
1755
1756 <method name="findMachine">
1757 <desc>
1758 Attempts to find a virtual machine given its name.
1759 To look up a machine by UUID, use <link to="IVirtualBox::getMachine" />
1760 instead.
1761
1762 <result name="VBOX_E_OBJECT_NOT_FOUND">
1763 Could not find registered machine matching @a name.
1764 </result>
1765
1766 </desc>
1767 <param name="name" type="wstring" dir="in"/>
1768 <param name="machine" type="IMachine" dir="return"/>
1769 </method>
1770
1771 <method name="unregisterMachine">
1772 <desc>
1773
1774 Unregisters the machine previously registered using
1775 <link to="#registerMachine"/>. After successful method invocation, the
1776 <link to="IVirtualBoxCallback::onMachineRegistered"/> signal is sent
1777 to all registered callbacks.
1778
1779 <note>
1780 The specified machine must not be in the Saved state, have an open
1781 (or a spawning) direct session associated with it, have snapshots or
1782 have hard disks attached.
1783 </note>
1784
1785 <note>
1786 This method implicitly calls <link to="IMachine::saveSettings"/> to
1787 save all current machine settings before unregistering it.
1788 </note>
1789
1790 <note>
1791 If the given machine is inaccessible (see
1792 <link to="IMachine::accessible"/>), it will be unregistered and
1793 fully uninitialized right afterwards. As a result, the returned
1794 machine object will be unusable and an attempt to call
1795 <b>any</b> method will return the "Object not ready" error.
1796 </note>
1797
1798 <result name="VBOX_E_OBJECT_NOT_FOUND">
1799 Could not find registered machine matching @a id.
1800 </result>
1801 <result name="VBOX_E_INVALID_VM_STATE">
1802 Machine is in Saved state.
1803 </result>
1804 <result name="VBOX_E_INVALID_OBJECT_STATE">
1805 Machine has snapshot or open session or hard disk attached.
1806 </result>
1807
1808 </desc>
1809 <param name="id" type="wstring" dir="in">
1810 <desc>UUID of the machine to unregister.</desc>
1811 </param>
1812 <param name="machine" type="IMachine" dir="return">
1813 <desc>Unregistered machine object.</desc>
1814 </param>
1815 </method>
1816
1817 <method name="createAppliance">
1818 <desc>
1819 Creates a new appliance object, which represents an appliance in the Open Virtual Machine
1820 Format (OVF). This can then be used to import an OVF appliance into VirtualBox or to export
1821 machines as an OVF appliance; see the documentation for <link to="IAppliance" /> for details.
1822 </desc>
1823 <param name="appliance" type="IAppliance" dir="return">
1824 <desc>New appliance.</desc>
1825 </param>
1826 </method>
1827
1828 <method name="createHardDisk">
1829 <desc>
1830 Creates a new base hard disk object that will use the given storage
1831 format and location for hard disk data.
1832
1833 Note that the actual storage unit is not created by this method. In
1834 order to do it, and before you are able to attach the created hard disk
1835 to virtual machines, you must call one of the following methods to
1836 allocate a format-specific storage unit at the specified location:
1837 <ul>
1838 <li><link to="IHardDisk::createBaseStorage"/></li>
1839 <li><link to="IHardDisk::createDiffStorage"/></li>
1840 </ul>
1841
1842 Some hard disk attributes, such as <link to="IHardDisk::id"/>, may
1843 remain uninitialized until the hard disk storage unit is successfully
1844 created by one of the above methods.
1845
1846 After the storage unit is successfully created, the hard disk gets
1847 remembered by this VirtualBox installation and will be accessible
1848 through <link to="#getHardDisk"/> and <link to="#findHardDisk"/>
1849 methods. Remembered root (base) hard disks are also returned as part of
1850 the <link to="#hardDisks"/> array. See IHardDisk for more details.
1851
1852 The list of all storage formats supported by this VirtualBox
1853 installation can be obtained using
1854 <link to="ISystemProperties::hardDiskFormats"/>. If the @a format
1855 attribute is empty or @c null then the default storage format
1856 specified by <link to="ISystemProperties::defaultHardDiskFormat"/> will
1857 be used for creating a storage unit of the hard disk.
1858
1859 Note that the format of the location string is storage format specific.
1860 See <link to="IMedium::location"/>, IHardDisk and
1861 <link to="ISystemProperties::defaultHardDiskFolder"/> for more details.
1862
1863 <result name="VBOX_E_OBJECT_NOT_FOUND">
1864 @a format identifier is invalid. See
1865 <link to="ISystemProperties::hardDiskFormats"/>.
1866 </result>
1867 <result name="VBOX_E_FILE_ERROR">
1868 @a location is a not valid file name (for file-based formats only).
1869 </result>
1870 </desc>
1871 <param name="format" type="wstring" dir="in">
1872 <desc>
1873 Identifier of the storage format to use for the new hard disk.
1874 </desc>
1875 </param>
1876 <param name="location" type="wstring" dir="in">
1877 <desc>
1878 Location of the storage unit for the new hard disk.
1879 </desc>
1880 </param>
1881 <param name="hardDisk" type="IHardDisk" dir="return">
1882 <desc>Created hard disk object.</desc>
1883 </param>
1884 </method>
1885
1886 <method name="openHardDisk">
1887 <desc>
1888 Opens a hard disk from an existing location, optionally replacing
1889 the image UUID and/or parent UUID.
1890
1891 After the hard disk is successfully opened by this method, it gets
1892 remembered by (known to) this VirtualBox installation and will be
1893 accessible through <link to="#getHardDisk"/> and
1894 <link to="#findHardDisk"/> methods. Remembered root (base) hard disks
1895 are also returned as part of the <link to="#hardDisks"/> array and can
1896 be attached to virtual machines. See IHardDisk for more details.
1897
1898 If a differencing hard disk is to be opened by this method, the
1899 operation will succeed only if its parent hard disk and all ancestors,
1900 if any, are already known to this VirtualBox installation (for example,
1901 were opened by this method before).
1902
1903 This method tries to guess the storage format of the specified hard disk
1904 by reading hard disk data at the specified location.
1905
1906 If @a write is ReadWrite (which it should be), the image is opened for
1907 read/write access and must have according permissions, as VirtualBox
1908 may actually write status information into the disk's metadata sections.
1909
1910 Note that write access is required for all typical image usage in VirtualBox,
1911 since VirtualBox may need to write metadata such as a UUID into the image.
1912 The only exception is opening a source image temporarily for copying and
1913 cloning when the image will quickly be closed again.
1914
1915 Note that the format of the location string is storage format specific.
1916 See <link to="IMedium::location"/>, IHardDisk and
1917 <link to="ISystemProperties::defaultHardDiskFolder"/> for more details.
1918
1919 <result name="VBOX_E_FILE_ERROR">
1920 Invalid hard disk storage file location or could not find the hard
1921 disk at the specified location.
1922 </result>
1923 <result name="VBOX_E_IPRT_ERROR">
1924 Could not get hard disk storage format.
1925 </result>
1926 <result name="E_INVALIDARG">
1927 Invalid hard disk storage format.
1928 </result>
1929
1930 </desc>
1931 <param name="location" type="wstring" dir="in">
1932 <desc>
1933 Location of the storage unit that contains hard disk data in one of
1934 the supported storage formats.
1935 </desc>
1936 </param>
1937 <param name="accessMode" type="AccessMode" dir="in">
1938 <desc>
1939 Determines whether to open the image in read/write or read-only mode.
1940 </desc>
1941 </param>
1942 <param name="setImageId" type="boolean" dir="in">
1943 <desc>
1944 Select whether a new image UUID is set or not.
1945 </desc>
1946 </param>
1947 <param name="imageId" type="wstring" dir="in">
1948 <desc>
1949 New UUID for the image. If an empty string is passed, then a new
1950 UUID is automatically created. Specifying a zero UUIDs is not valid.
1951 </desc>
1952 </param>
1953 <param name="setParentId" type="boolean" dir="in">
1954 <desc>
1955 Select whether a new parent UUID is set or not.
1956 </desc>
1957 </param>
1958 <param name="parentId" type="wstring" dir="in">
1959 <desc>
1960 New parent UUID for the image. If an empty string is passed, then a
1961 new UUID is automatically created, provided @a setParentId is
1962 @c true. A zero UUID is valid.
1963 </desc>
1964 </param>
1965 <param name="hardDisk" type="IHardDisk" dir="return">
1966 <desc>Opened hard disk object.</desc>
1967 </param>
1968 </method>
1969
1970 <method name="getHardDisk" const="yes">
1971 <desc>
1972 Returns a hard disk with the given UUID.
1973
1974 The hard disk with the given UUID must be known to this VirtualBox
1975 installation, i.e. it must be previously created by
1976 <link to="#createHardDisk"/> or opened by <link
1977 to="#openHardDisk"/>, or attached to some known virtual machine.
1978
1979 <result name="VBOX_E_OBJECT_NOT_FOUND">
1980 No hard disk object matching @a id found.
1981 </result>
1982
1983 </desc>
1984 <param name="id" type="wstring" dir="in">
1985 <desc>UUID of the hard disk to look for.</desc>
1986 </param>
1987 <param name="hardDisk" type="IHardDisk" dir="return">
1988 <desc>Found hard disk object.</desc>
1989 </param>
1990 </method>
1991
1992 <method name="findHardDisk">
1993 <desc>
1994 Returns a hard disk that uses the given location to store hard
1995 disk data.
1996
1997 The given hard disk must be known to this VirtualBox installation, i.e.
1998 it must be previously created by
1999 <link to="#createHardDisk"/> or opened by <link
2000 to="#openHardDisk"/>, or attached to some known virtual machine.
2001
2002 The search is done by comparing the value of the @a location argument to
2003 the <link to="IHardDisk::location"/> attribute of each known hard
2004 disk.
2005
2006 For locations represented by file names in the host's file system, the
2007 requested location can be a path relative to the
2008 <link to="IVirtualBox::homeFolder">VirtualBox home folder</link>. If
2009 only a file name without any path is given, the
2010 <link to="ISystemProperties::defaultHardDiskFolder"> default hard disk
2011 folder</link> will be prepended to the file name before searching. Note
2012 that on case sensitive file systems, a case sensitive comparison is
2013 performed, otherwise the case of symbols in the file path is ignored.
2014
2015 <result name="VBOX_E_OBJECT_NOT_FOUND">
2016 No hard disk object matching @a location found.
2017 </result>
2018
2019 </desc>
2020 <param name="location" type="wstring" dir="in">
2021 <desc>Location string to search for.</desc>
2022 </param>
2023 <param name="hardDisk" type="IHardDisk" dir="return">
2024 <desc>Found hard disk object.</desc>
2025 </param>
2026 </method>
2027
2028 <method name="openDVDImage">
2029 <desc>
2030 Opens a CD/DVD image contained in the specified file of the supported
2031 format and assigns it the given UUID.
2032
2033 After the image is successfully opened by this method, it gets
2034 remembered by (known to) this VirtualBox installation and will be
2035 accessible through <link to="#getDVDImage"/> and
2036 <link to="#findDVDImage"/> methods. Remembered images are also
2037 returned as part of the <link to="#DVDImages"/> array and can be mounted
2038 to virtual machines. See IMedium for more details.
2039
2040 See <link to="IMedium::location"/> to get more details about the format
2041 of the location string.
2042
2043 <note>
2044 Currently only ISO 9960 CD/DVD images are supported by VirtualBox.
2045 </note>
2046
2047 <result name="VBOX_E_FILE_ERROR">
2048 Invalid CD/DVD image file location or could not find the CD/DVD
2049 image at the specified location.
2050 </result>
2051 <result name="VBOX_E_INVALID_OBJECT_STATE">
2052 CD/DVD image already exists in the media registry.
2053 </result>
2054
2055 </desc>
2056 <param name="location" type="wstring" dir="in">
2057 <desc>
2058 Full path to the file that contains a valid CD/DVD image.
2059 </desc>
2060 </param>
2061 <param name="id" type="wstring" dir="in">
2062 <desc>
2063 UUID to assign to the given image within this VirtualBox installation.
2064 If an empty (@c null) UUID is specified, the system will randomly
2065 generate a new UUID.
2066 </desc>
2067 </param>
2068 <param name="image" type="IDVDImage" dir="return">
2069 <desc>Opened CD/DVD image object.</desc>
2070 </param>
2071 </method>
2072
2073 <method name="getDVDImage">
2074 <desc>
2075 Returns a CD/DVD image with the given UUID.
2076
2077 The image with the given UUID must be known to this VirtualBox
2078 installation, i.e. it must be previously opened by <link
2079 to="#openDVDImage"/>, or mounted to some known virtual machine.
2080
2081 <result name="VBOX_E_OBJECT_NOT_FOUND">
2082 No matching DVD image found in the media registry.
2083 </result>
2084
2085 </desc>
2086 <param name="id" type="wstring" dir="in">
2087 <desc>UUID of the image to look for.</desc>
2088 </param>
2089 <param name="image" type="IDVDImage" dir="return">
2090 <desc>Found CD/DVD image object.</desc>
2091 </param>
2092 </method>
2093
2094 <method name="findDVDImage">
2095 <desc>
2096 Returns a CD/DVD image with the given image location.
2097
2098 The image with the given UUID must be known to this VirtualBox
2099 installation, i.e. it must be previously opened by <link
2100 to="#openDVDImage"/>, or mounted to some known virtual machine.
2101
2102 The search is done by comparing the value of the @a location argument to
2103 the <link to="IMedium::location"/> attribute of each known CD/DVD image.
2104
2105 The requested location can be a path relative to the
2106 <link to="IVirtualBox::homeFolder">VirtualBox home folder</link>. If
2107 only a file name without any path is given, the
2108 <link to="ISystemProperties::defaultHardDiskFolder"> default hard disk
2109 folder</link> will be prepended to the file name before searching. Note
2110 that on case sensitive file systems, a case sensitive comparison is
2111 performed, otherwise the case in the file path is ignored.
2112
2113 <result name="VBOX_E_FILE_ERROR">
2114 Invalid image file location.
2115 </result>
2116 <result name="VBOX_E_OBJECT_NOT_FOUND">
2117 No matching DVD image found in the media registry.
2118 </result>
2119
2120 </desc>
2121 <param name="location" type="wstring" dir="in">
2122 <desc>CD/DVD image file path to look for.</desc>
2123 </param>
2124 <param name="image" type="IDVDImage" dir="return">
2125 <desc>Found CD/DVD image object.</desc>
2126 </param>
2127 </method>
2128
2129 <method name="openFloppyImage">
2130 <desc>
2131 Opens a floppy image contained in the specified file of the supported
2132 format and assigns it the given UUID.
2133
2134 After the image is successfully opened by this method, it gets
2135 remembered by (known to) this VirtualBox installation and will be
2136 accessible through <link to="#getFloppyImage"/> and
2137 <link to="#findFloppyImage"/> methods. Remembered images are also
2138 returned as part of the <link to="#floppyImages"/> array and can be
2139 mounted to virtual machines. See IMedium for more details.
2140
2141 See <link to="IMedium::location"/> to get more details about the format
2142 of the location string.
2143
2144 <result name="VBOX_E_FILE_ERROR">
2145 Invalid floppy image file location or could not find the floppy
2146 image at the specified location.
2147 </result>
2148 <result name="VBOX_E_INVALID_OBJECT_STATE">
2149 Floppy image already exists in the media registry.
2150 </result>
2151
2152 <note>
2153 Currently, only raw floppy images are supported by VirtualBox.
2154 </note>
2155 </desc>
2156 <param name="location" type="wstring" dir="in">
2157 <desc>
2158 Full path to the file that contains a valid floppy image.
2159 </desc>
2160 </param>
2161 <param name="id" type="wstring" dir="in">
2162 <desc>
2163 UUID to assign to the given image file within this VirtualBox
2164 installation. If an empty (@c null) UUID is specified, the system will
2165 randomly generate a new UUID.
2166 </desc>
2167 </param>
2168 <param name="image" type="IFloppyImage" dir="return">
2169 <desc>Opened floppy image object.</desc>
2170 </param>
2171 </method>
2172
2173 <method name="getFloppyImage">
2174 <desc>
2175 Returns a floppy image with the given UUID.
2176
2177 The image with the given UUID must be known to this VirtualBox
2178 installation, i.e. it must be previously opened by <link
2179 to="#openFloppyImage"/>, or mounted to some known virtual machine.
2180
2181 <result name="VBOX_E_OBJECT_NOT_FOUND">
2182 No matching floppy image found in the media registry.
2183 </result>
2184
2185 </desc>
2186 <param name="id" type="wstring" dir="in">
2187 <desc>UUID of the image to look for.</desc>
2188 </param>
2189 <param name="image" type="IFloppyImage" dir="return">
2190 <desc>Found floppy image object.</desc>
2191 </param>
2192 </method>
2193
2194 <method name="findFloppyImage">
2195 <desc>
2196 Returns a floppy image with the given image location.
2197
2198 The image with the given UUID must be known to this VirtualBox
2199 installation, i.e. it must be previously opened by <link
2200 to="#openFloppyImage"/>, or mounted to some known virtual machine.
2201
2202 The search is done by comparing the value of the @a location argument to
2203 the <link to="IMedium::location"/> attribute of each known floppy image.
2204
2205 The requested location can be a path relative to the
2206 <link to="IVirtualBox::homeFolder">VirtualBox home folder</link>. If
2207 only a file name without any path is given, the
2208 <link to="ISystemProperties::defaultHardDiskFolder"> default hard disk
2209 folder</link> will be prepended to the file name before searching. Note
2210 that on case sensitive file systems, a case sensitive comparison is
2211 performed, otherwise the case of symbols in the file path is ignored.
2212
2213 <result name="VBOX_E_FILE_ERROR">
2214 Invalid image file location.
2215 </result>
2216 <result name="VBOX_E_OBJECT_NOT_FOUND">
2217 No matching floppy image found in the media registry.
2218 </result>
2219
2220 </desc>
2221 <param name="location" type="wstring" dir="in">
2222 <desc>Floppy image file path to look for.</desc>
2223 </param>
2224 <param name="image" type="IFloppyImage" dir="return">
2225 <desc>Found floppy image object.</desc>
2226 </param>
2227 </method>
2228
2229 <method name="getGuestOSType">
2230 <desc>
2231 Returns an object describing the specified guest OS type.
2232
2233 The requested guest OS type is specified using a string which is a
2234 mnemonic identifier of the guest operating system, such as
2235 <tt>"win31"</tt> or <tt>"ubuntu"</tt>. The guest OS type ID of a
2236 particular virtual machine can be read or set using the
2237 <link to="IMachine::OSTypeId"/> attribute.
2238
2239 The <link to="IVirtualBox::guestOSTypes"/> collection contains all
2240 available guest OS type objects. Each object has an
2241 <link to="IGuestOSType::id"/> attribute which contains an identifier of
2242 the guest OS this object describes.
2243
2244 <result name="E_INVALIDARG">
2245 @a id is not a valid Guest OS type.
2246 </result>
2247
2248 </desc>
2249 <param name="id" type="wstring" dir="in">
2250 <desc>Guest OS type ID string.</desc>
2251 </param>
2252 <param name="type" type="IGuestOSType" dir="return">
2253 <desc>Guest OS type object.</desc>
2254 </param>
2255 </method>
2256
2257 <method name="createSharedFolder">
2258 <desc>
2259 Creates a new global shared folder by associating the given logical
2260 name with the given host path, adds it to the collection of shared
2261 folders and starts sharing it. Refer to the description of
2262 <link to="ISharedFolder"/> to read more about logical names.
2263 <note>
2264 In the current implementation, this operation is not
2265 implemented.
2266 </note>
2267 </desc>
2268 <param name="name" type="wstring" dir="in">
2269 <desc>Unique logical name of the shared folder.</desc>
2270 </param>
2271 <param name="hostPath" type="wstring" dir="in">
2272 <desc>Full path to the shared folder in the host file system.</desc>
2273 </param>
2274 <param name="writable" type="boolean" dir="in">
2275 <desc>Whether the share is writable or readonly</desc>
2276 </param>
2277 </method>
2278
2279 <method name="removeSharedFolder">
2280 <desc>
2281 Removes the global shared folder with the given name previously
2282 created by <link to="#createSharedFolder"/> from the collection of
2283 shared folders and stops sharing it.
2284 <note>
2285 In the current implementation, this operation is not
2286 implemented.
2287 </note>
2288 </desc>
2289 <param name="name" type="wstring" dir="in">
2290 <desc>Logical name of the shared folder to remove.</desc>
2291 </param>
2292 </method>
2293
2294 <method name="getNextExtraDataKey">
2295 <desc>
2296 Returns the global extra data key name following the supplied key.
2297
2298 An error is returned if the supplied @a key does not exist. An empty
2299 string is returned in @a nextKey if the supplied key is the last key. When
2300 supplying @c null or an empty string for the @a key, the first key item
2301 is returned in @a nextKey (if there is any). @a nextValue is an optional
2302 parameter and if supplied, the next key's value is returned in it.
2303
2304 <result name="VBOX_E_OBJECT_NOT_FOUND">
2305 Extra data @a key not found.
2306 </result>
2307
2308 </desc>
2309 <param name="key" type="wstring" dir="in">
2310 <desc>Name of the data key to follow.</desc>
2311 </param>
2312 <param name="nextKey" type="wstring" dir="out">
2313 <desc>Name of the next data key.</desc>
2314 </param>
2315 <param name="nextValue" type="wstring" dir="out">
2316 <desc>Value of the next data key.</desc>
2317 </param>
2318 </method>
2319
2320 <method name="getExtraData">
2321 <desc>
2322 Returns associated global extra data.
2323
2324 If the requested data @a key does not exist, this function will
2325 succeed and return an empty string in the @a value argument.
2326
2327 <result name="VBOX_E_FILE_ERROR">
2328 Settings file not accessible.
2329 </result>
2330 <result name="VBOX_E_XML_ERROR">
2331 Could not parse the settings file.
2332 </result>
2333
2334 </desc>
2335 <param name="key" type="wstring" dir="in">
2336 <desc>Name of the data key to get.</desc>
2337 </param>
2338 <param name="value" type="wstring" dir="return">
2339 <desc>Value of the requested data key.</desc>
2340 </param>
2341 </method>
2342
2343 <method name="setExtraData">
2344 <desc>
2345 Sets associated global extra data.
2346
2347 If you pass @c null or empty string as a key @a value, the given @a key
2348 will be deleted.
2349
2350 <note>
2351 Before performing the actual data change, this method will ask all
2352 registered callbacks using the
2353 <link to="IVirtualBoxCallback::onExtraDataCanChange"/>
2354 notification for a permission. If one of the callbacks refuses the
2355 new value, the change will not be performed.
2356 </note>
2357 <note>
2358 On success, the
2359 <link to="IVirtualBoxCallback::onExtraDataChange"/> notification
2360 is called to inform all registered callbacks about a successful data
2361 change.
2362 </note>
2363
2364 <result name="VBOX_E_FILE_ERROR">
2365 Settings file not accessible.
2366 </result>
2367 <result name="VBOX_E_XML_ERROR">
2368 Could not parse the settings file.
2369 </result>
2370 <result name="E_ACCESSDENIED">
2371 Modification request refused.
2372 </result>
2373
2374 </desc>
2375 <param name="key" type="wstring" dir="in">
2376 <desc>Name of the data key to set.</desc>
2377 </param>
2378 <param name="value" type="wstring" dir="in">
2379 <desc>Value to assign to the key.</desc>
2380 </param>
2381 </method>
2382
2383 <method name="openSession">
2384 <desc>
2385 Opens a new direct session with the given virtual machine.
2386
2387 A direct session acts as a local lock on the given VM.
2388 There can be only one direct session open at a time for every
2389 virtual machine, protecting the VM from being manipulated by
2390 conflicting actions from different processes. Only after a
2391 direct session has been opened, one can change all VM settings
2392 and execute the VM in the process space of the session object.
2393
2394 Sessions therefore can be compared to mutex semaphores that
2395 lock a given VM for modification and execution.
2396 See <link to="ISession">ISession</link> for details.
2397
2398 <note>Unless you are writing a new VM frontend, you will not
2399 want to execute a VM in the current process. To spawn a new
2400 process that executes a VM, use
2401 <link to="IVirtualBox::openRemoteSession" />
2402 instead.</note>
2403
2404 Upon successful return, the session object can be used to
2405 get access to the machine and to the VM console.
2406
2407 In VirtualBox terminology, the machine becomes "mutable" after
2408 a session has been opened. Note that the "mutable" machine
2409 object, on which you may invoke IMachine methods to change its
2410 settings, will be a different object from the immutable IMachine
2411 objects returned by various IVirtualBox methods. To obtain a
2412 mutable IMachine object (upon which you can invoke settings methods),
2413 use the <link to="ISession::machine" /> attribute.
2414
2415 One must always call <link to="ISession::close" /> to release the
2416 lock on the machine, or the machine's state will eventually be
2417 set to "Aborted".
2418
2419 In other words, to change settings on a machine, the following
2420 sequence is typically performed:
2421
2422 <ol>
2423 <li>Call this method (openSession) to have a machine locked for
2424 the current session.</li>
2425
2426 <li>Obtain a mutable IMachine object from <link to="ISession::machine" />.</li>
2427
2428 <li>Change the settings of the machine.</li>
2429
2430 <li>Call <link to="IMachine::saveSettings" />.</li>
2431
2432 <li>Close the session by calling <link to="ISession::close"/>.</li>
2433 </ol>
2434
2435 <result name="E_UNEXPECTED">
2436 Virtual machine not registered.
2437 </result>
2438 <result name="E_ACCESSDENIED">
2439 Process not started by OpenRemoteSession.
2440 </result>
2441 <result name="VBOX_E_OBJECT_NOT_FOUND">
2442 No matching virtual machine found.
2443 </result>
2444 <result name="VBOX_E_INVALID_OBJECT_STATE">
2445 Session already open or being opened.
2446 </result>
2447 <result name="VBOX_E_VM_ERROR">
2448 Failed to assign machine to session.
2449 </result>
2450
2451 </desc>
2452 <param name="session" type="ISession" dir="in">
2453 <desc>
2454 Session object that will represent the opened session after
2455 successful method invocation. This object must not represent
2456 the already open session.
2457 <note>
2458 This session will be automatically closed if the
2459 VirtualBox server is terminated for some reason.
2460 </note>
2461 </desc>
2462 </param>
2463 <param name="machineId" type="wstring" dir="in">
2464 <desc>ID of the virtual machine to open a session with.</desc>
2465 </param>
2466 </method>
2467
2468 <method name="openRemoteSession">
2469 <desc>
2470 Spawns a new process that executes a virtual machine (called a
2471 "remote session").
2472
2473 Opening a remote session causes the VirtualBox server to start a new
2474 process that opens a direct session with the given VM. As a result, the
2475 VM is locked by that direct session in the new process, preventing
2476 conflicting changes from other processes. Since sessions act as locks
2477 that prevent conflicting changes, one cannot open a remote session
2478 for a VM that already has another open session (direct or remote), or
2479 is currently in the process of opening one (see <link
2480 to="IMachine::sessionState"/>).
2481
2482 While the remote session still provides some level of control over the
2483 VM execution to the caller (using the <link to="IConsole" /> interface),
2484 not all VM settings are available for modification within the remote
2485 session context.
2486
2487 This operation can take some time (a new VM is started in a new process,
2488 for which memory and other resources need to be set up). Because of this,
2489 an <link to="IProgress" /> is returned to allow the caller to wait for this
2490 asynchronous operation to be completed. Until then, the remote session
2491 object remains in the closed state, and accessing the machine or its
2492 console through it is invalid. It is recommended to use
2493 <link to="IProgress::waitForCompletion" /> or similar calls to wait for
2494 completion.
2495
2496 As with all <link to="ISession" /> objects, it is recommended to call
2497 <link to="ISession::close" /> on the local session object once openRemoteSession()
2498 has been called. However, the session's state (see <link to="ISession::state" />)
2499 will not return to "Closed" until the remote session has also closed (i.e.
2500 until the VM is no longer running). In that case, however, the state of
2501 the session will automatically change back to "Closed".
2502
2503 Currently supported session types (values of the @a type
2504 argument) are:
2505 <ul>
2506 <li><tt>"gui"</tt>: VirtualBox Qt GUI session</li>
2507 <li><tt>"vrdp"</tt>: VirtualBox VRDP Server session</li>
2508 <li><tt>"sdl"</tt>: VirtualBox SDL GUI session</li>
2509 </ul>
2510
2511 The @a environment argument is a string containing definitions of
2512 environment variables in the following format:
2513 @code
2514 NAME[=VALUE]\n
2515 NAME[=VALUE]\n
2516 ...
2517 @endcode
2518 where <tt>\\n</tt> is the new line character. These environment
2519 variables will be appended to the environment of the VirtualBox server
2520 process. If an environment variable exists both in the server process
2521 and in this list, the value from this list takes precedence over the
2522 server's variable. If the value of the environment variable is
2523 omitted, this variable will be removed from the resulting environment.
2524 If the environment string is @c null or empty, the server environment
2525 is inherited by the started process as is.
2526
2527 <see>openExistingSession</see>
2528
2529 <result name="E_UNEXPECTED">
2530 Virtual machine not registered.
2531 </result>
2532 <result name="E_INVALIDARG">
2533 Invalid session type @a type.
2534 </result>
2535 <result name="VBOX_E_OBJECT_NOT_FOUND">
2536 No machine matching @a machineId found.
2537 </result>
2538 <result name="VBOX_E_INVALID_OBJECT_STATE">
2539 Session already open or being opened.
2540 </result>
2541 <result name="VBOX_E_IPRT_ERROR">
2542 Launching process for machine failed.
2543 </result>
2544 <result name="VBOX_E_VM_ERROR">
2545 Failed to assign machine to session.
2546 </result>
2547
2548 </desc>
2549 <param name="session" type="ISession" dir="in">
2550 <desc>
2551 Session object that will represent the opened remote session
2552 after successful method invocation (this object must not
2553 represent an already open session).
2554 </desc>
2555 </param>
2556 <param name="machineId" type="wstring" dir="in">
2557 <desc>ID of the virtual machine to open a session with.</desc>
2558 </param>
2559 <param name="type" type="wstring" dir="in">
2560 <desc>
2561 Type of the remote session (case sensitive).
2562 </desc>
2563 </param>
2564 <param name="environment" type="wstring" dir="in">
2565 <desc>
2566 Environment to pass to the opened session.
2567 </desc>
2568 </param>
2569 <param name="progress" type="IProgress" dir="return">
2570 <desc>Progress object to track the operation completion.</desc>
2571 </param>
2572 </method>
2573
2574 <method name="openExistingSession">
2575 <desc>
2576 Opens a new remote session with the virtual machine for
2577 which a direct session is already open.
2578
2579 The remote session provides some level of control over the VM
2580 execution (using the IConsole interface) to the caller; however,
2581 within the remote session context, not all VM settings are available
2582 for modification.
2583
2584 As opposed to <link to="#openRemoteSession"/>, the number of
2585 remote sessions opened this way is not limited by the API
2586
2587 <note>
2588 It is an error to open a remote session with the machine that
2589 doesn't have an open direct session.
2590 </note>
2591
2592 <result name="E_UNEXPECTED">
2593 Virtual machine not registered.
2594 </result>
2595 <result name="VBOX_E_OBJECT_NOT_FOUND">
2596 No machine matching @a machineId found.
2597 </result>
2598 <result name="VBOX_E_INVALID_OBJECT_STATE">
2599 Session already open or being opened.
2600 </result>
2601 <result name="VBOX_E_INVALID_SESSION_STATE">
2602 Direct session state not Open.
2603 </result>
2604 <result name="VBOX_E_VM_ERROR">
2605 Failed to get console object from direct session or assign
2606 machine to session.
2607 </result>
2608
2609 <see>openRemoteSession</see>
2610 </desc>
2611 <param name="session" type="ISession" dir="in">
2612 <desc>
2613 Session object that will represent the open remote session
2614 after successful method invocation. This object must not
2615 represent an already open session.
2616 <note>
2617 This session will be automatically closed when the peer
2618 (direct) session dies or gets closed.
2619 </note>
2620 </desc>
2621 </param>
2622 <param name="machineId" type="wstring" dir="in">
2623 <desc>ID of the virtual machine to open a session with.</desc>
2624 </param>
2625 </method>
2626
2627 <method name="registerCallback">
2628 <desc>
2629 Registers a new global VirtualBox callback. The methods of the given
2630 callback object will be called by VirtualBox when an appropriate
2631 event occurs.
2632
2633 <result name="E_INVALIDARG">
2634 A @c null callback cannot be registered.
2635 </result>
2636
2637 </desc>
2638 <param name="callback" type="IVirtualBoxCallback" dir="in">
2639 <desc>Callback object to register.</desc>
2640 </param>
2641 </method>
2642
2643 <method name="unregisterCallback">
2644 <desc>
2645 Unregisters the previously registered global VirtualBox callback.
2646
2647 <result name="E_INVALIDARG">
2648 Specified @a callback not registered.
2649 </result>
2650
2651 </desc>
2652 <param name="callback" type="IVirtualBoxCallback" dir="in">
2653 <desc>Callback object to unregister.</desc>
2654 </param>
2655 </method>
2656
2657 <method name="waitForPropertyChange">
2658 <desc>
2659 Blocks the caller until any of the properties represented by the
2660 @a what argument changes the value or until the given timeout interval
2661 expires.
2662
2663 The @a what argument is a comma separated list of property masks that
2664 describe properties the caller is interested in. The property mask is
2665 a string in the following format:
2666
2667 <pre>
2668 [[group.]subgroup.]name
2669 </pre>
2670
2671 where @c name is the property name and @c group, @c subgroup are zero
2672 or more property group specifiers. Each element (group or name) in
2673 the property mask may be either a Latin string or an asterisk symbol
2674 (@c "*") which is used to match any string for the given element. A
2675 property mask that doesn't contain asterisk symbols represents a
2676 single fully qualified property name.
2677
2678 Groups in the fully qualified property name go from more generic (the
2679 left-most part) to more specific (the right-most part). The first
2680 element is usually a name of the object the property belongs to. The
2681 second element may be either a property name, or a child object name,
2682 or an index if the preceding element names an object which is one of
2683 many objects of the same type. This way, property names form a
2684 hierarchy of properties. Here are some examples of property names:
2685
2686 <table>
2687 <tr>
2688 <td><tt>VirtualBox.version</tt></td>
2689 <td><link to="IVirtualBox::version"/> property</td>
2690 </tr>
2691 <tr>
2692 <td><tt>Machine.&lt;UUID&gt;.name</tt></td>
2693 <td><link to="IMachine::name"/> property of the machine with the
2694 given UUID</td>
2695 </tr>
2696 </table>
2697
2698 Most property names directly correspond to the properties of objects
2699 (components) provided by the VirtualBox library and may be used to
2700 track changes to these properties. However, there may be
2701 pseudo-property names that don't correspond to any existing object's
2702 property directly, as well as there may be object properties that
2703 don't have a corresponding property name that is understood by this
2704 method, and therefore changes to such properties cannot be
2705 tracked. See individual object's property descriptions to get a
2706 fully qualified property name that can be used with this method (if
2707 any).
2708
2709 There is a special property mask @c "*" (i.e. a string consisting of a
2710 single asterisk symbol) that can be used to match all properties.
2711 Below are more examples of property masks:
2712
2713 <table>
2714 <tr>
2715 <td><tt>VirtualBox.*</tt></td>
2716 <td>Track all properties of the VirtualBox object</td>
2717 </tr>
2718 <tr>
2719 <td><tt>Machine.*.name</tt></td>
2720 <td>Track changes to the <link to="IMachine::name"/> property of
2721 all registered virtual machines</td>
2722 </tr>
2723 </table>
2724
2725 <note>
2726 This function is not implemented in the current version of the
2727 product.
2728 </note>
2729 </desc>
2730 <param name="what" type="wstring" dir="in">
2731 <desc>Comma separated list of property masks.</desc>
2732 </param>
2733 <param name="timeout" type="unsigned long" dir="in">
2734 <desc>
2735 Wait timeout in milliseconds.
2736 Specify -1 for an indefinite wait.
2737 </desc>
2738 </param>
2739 <param name="changed" type="wstring" dir="out">
2740 <desc>
2741 Comma separated list of properties that have been changed and caused
2742 this method to return to the caller.
2743 </desc>
2744 </param>
2745 <param name="values" type="wstring" dir="out">
2746 <desc>Reserved, not currently used.</desc>
2747 </param>
2748 </method>
2749
2750 <method name="saveSettings">
2751 <desc>
2752 Saves the global settings to the global settings file
2753 (<link to="#settingsFilePath"/>).
2754
2755 This method is only useful for explicitly saving the global settings
2756 file after it has been auto-converted from the old format to the most
2757 recent format (see <link to="#settingsFileVersion"/> for details).
2758 Normally, the global settings file is implicitly saved when a global
2759 setting is changed.
2760
2761 <result name="VBOX_E_FILE_ERROR">
2762 Settings file not accessible.
2763 </result>
2764 <result name="VBOX_E_XML_ERROR">
2765 Could not parse the settings file.
2766 </result>
2767
2768 </desc>
2769 </method>
2770
2771 <method name="saveSettingsWithBackup">
2772 <desc>
2773 Creates a backup copy of the global settings file
2774 (<link to="IVirtualBox::settingsFilePath"/>) in case of auto-conversion,
2775 and then calls <link to="IVirtualBox::saveSettings"/>.
2776
2777 Note that the backup copy is created <b>only</b> if the settings file
2778 auto-conversion took place (see <link to="#settingsFileVersion"/> for
2779 details). Otherwise, this call is fully equivalent to
2780 <link to="IVirtualBox::saveSettings"/> and no backup copying is done.
2781
2782 The backup copy is created in the same directory where the original
2783 settings file is located. It is given the following file name:
2784 <pre>
2785 original.xml.x.y-platform.bak
2786 </pre>
2787 where <tt>original.xml</tt> is the original settings file name
2788 (excluding path), and <tt>x.y-platform</tt> is the version of the old
2789 format of the settings file (before auto-conversion).
2790
2791 If the given backup file already exists, this method will try to add the
2792 <tt>.N</tt> suffix to the backup file name (where @c N counts from
2793 0 to 9) and copy it again until it succeeds. If all suffixes are
2794 occupied, or if any other copy error occurs, this method will return a
2795 failure.
2796
2797 If the copy operation succeeds, the @a bakFileName return argument will
2798 receive a full path to the created backup file (for informational
2799 purposes). Note that this will happen even if the subsequent
2800 <link to="#saveSettings"/> call performed by this method after the
2801 copy operation, fails.
2802
2803 <note>
2804 The VirtualBox API never calls this method. It is intended purely for
2805 the purposes of creating backup copies of the settings files by
2806 front-ends before saving the results of the automatically performed
2807 settings conversion to disk.
2808 </note>
2809
2810 <see>settingsFileVersion</see>
2811
2812 <result name="VBOX_E_FILE_ERROR">
2813 Settings file not accessible.
2814 </result>
2815 <result name="VBOX_E_XML_ERROR">
2816 Could not parse the settings file.
2817 </result>
2818 <result name="VBOX_E_IPRT_ERROR">
2819 Could not copy the settings file.
2820 </result>
2821
2822 </desc>
2823 <param name="bakFileName" type="wstring" dir="return">
2824 <desc>Full path to the created backup copy.</desc>
2825 </param>
2826 </method>
2827
2828 <!--method name="createDHCPServerForInterface">
2829 <desc>
2830 Creates a dhcp server settings to be used for the given interface
2831 <result name="E_INVALIDARG">
2832 Host network interface @a name already exists.
2833 </result>
2834 </desc>
2835 <param name="interface" type="IHostNetworkInterface" dir="in">
2836 <desc>Network Interface</desc>
2837 </param>
2838 <param name="server" type="IDHCPServer" dir="out">
2839 <desc>Dhcp server settings</desc>
2840 </param>
2841 </method-->
2842
2843 <method name="createDHCPServer">
2844 <desc>
2845 Creates a dhcp server settings to be used for the given internal network name
2846 <result name="E_INVALIDARG">
2847 Host network interface @a name already exists.
2848 </result>
2849 </desc>
2850 <param name="name" type="wstring" dir="in">
2851 <desc>server name</desc>
2852 </param>
2853 <param name="server" type="IDHCPServer" dir="return">
2854 <desc>Dhcp server settings</desc>
2855 </param>
2856 </method>
2857
2858 <method name="findDHCPServerByNetworkName">
2859 <desc>
2860 Searches a dhcp server settings to be used for the given internal network name
2861 <result name="E_INVALIDARG">
2862 Host network interface @a name already exists.
2863 </result>
2864
2865 </desc>
2866 <param name="name" type="wstring" dir="in">
2867 <desc>server name</desc>
2868 </param>
2869 <param name="server" type="IDHCPServer" dir="return">
2870 <desc>Dhcp server settings</desc>
2871 </param>
2872 </method>
2873
2874 <!--method name="findDHCPServerForInterface">
2875 <desc>
2876 Searches a dhcp server settings to be used for the given interface
2877 <result name="E_INVALIDARG">
2878 Host network interface @a name already exists.
2879 </result>
2880 </desc>
2881 <param name="interface" type="IHostNetworkInterface" dir="in">
2882 <desc>Network Interface</desc>
2883 </param>
2884 <param name="server" type="IDHCPServer" dir="out">
2885 <desc>Dhcp server settings</desc>
2886 </param>
2887 </method-->
2888
2889 <method name="removeDHCPServer">
2890 <desc>
2891 Removes the dhcp server settings
2892 <result name="E_INVALIDARG">
2893 Host network interface @a name already exists.
2894 </result>
2895 </desc>
2896 <param name="server" type="IDHCPServer" dir="in">
2897 <desc>Dhcp server settings to be removed</desc>
2898 </param>
2899 </method>
2900
2901 </interface>
2902
2903 <!--
2904 // IVFSExplorer
2905 /////////////////////////////////////////////////////////////////////////
2906 -->
2907
2908 <enum
2909 name="VFSType"
2910 uuid="813999ba-b949-48a8-9230-aadc6285e2f2"
2911 >
2912 <desc>
2913 Virtual file systems supported by VFSExplorer.
2914 </desc>
2915
2916 <const name="File" value="1" />
2917 <const name="Cloud" value="2" />
2918 <const name="S3" value="3" />
2919 <const name="WebDav" value="4" />
2920 </enum>
2921
2922 <enum
2923 name="VFSFileType"
2924 uuid="714333cd-44e2-415f-a245-d378fa9b1242"
2925 >
2926 <desc>
2927 File types known by VFSExplorer.
2928 </desc>
2929
2930 <const name="Unknown" value="1" />
2931 <const name="Fifo" value="2" />
2932 <const name="DevChar" value="3" />
2933 <const name="Directory" value="4" />
2934 <const name="DevBlock" value="5" />
2935 <const name="File" value="6" />
2936 <const name="SymLink" value="7" />
2937 <const name="Socket" value="8" />
2938 <const name="WhiteOut" value="9" />
2939 </enum>
2940
2941 <interface
2942 name="IVFSExplorer" extends="$unknown"
2943 uuid="2bb864a1-02a3-4474-a1d4-fb5f23b742e1"
2944 wsmap="managed"
2945 >
2946 <desc>
2947 The VFSExplorer interface unifies access to different file system
2948 types. This includes local file systems as well remote file systems like
2949 S3. For a list of supported types see <link to="VFSType" />.
2950 An instance of this is returned by <link to="IAppliance::createVFSExplorer" />.
2951 </desc>
2952
2953 <attribute name="path" type="wstring" readonly="yes">
2954 <desc>Returns the current path in the virtual file system.</desc>
2955 </attribute>
2956
2957 <attribute name="type" type="VFSType" readonly="yes">
2958 <desc>Returns the file system type which is currently in use.</desc>
2959 </attribute>
2960
2961 <method name="update">
2962 <desc>Updates the internal list of files/directories from the
2963 current directory level. Use <link to="#entryList" /> to get the full list
2964 after a call to this method.</desc>
2965
2966 <param name="aProgress" type="IProgress" dir="return">
2967 <desc>Progress object to track the operation completion.</desc>
2968 </param>
2969 </method>
2970
2971 <method name="cd">
2972 <desc>Change the current directory level.</desc>
2973
2974 <param name="aDir" type="wstring" dir="in">
2975 <desc>The name of the directory to go in.</desc>
2976 </param>
2977
2978 <param name="aProgress" type="IProgress" dir="return">
2979 <desc>Progress object to track the operation completion.</desc>
2980 </param>
2981 </method>
2982
2983 <method name="cdUp">
2984 <desc>Go one directory upwards from the current directory level.</desc>
2985
2986 <param name="aProgress" type="IProgress" dir="return">
2987 <desc>Progress object to track the operation completion.</desc>
2988 </param>
2989 </method>
2990
2991 <method name="entryList">
2992 <desc>Returns a list of files/directories after a call to <link
2993 to="#update" />. The user is responsible for keeping this internal
2994 list up do date.</desc>
2995
2996 <param name="aNames" type="wstring" safearray="yes" dir="out">
2997 <desc>The list of names for the entries.</desc>
2998 </param>
2999
3000 <param name="aTypes" type="unsigned long" safearray="yes" dir="out">
3001 <desc>The list of types for the entries.</desc>
3002 </param>
3003 </method>
3004
3005 <method name="exists">
3006 <desc>Checks if the given file list exists in the current directory
3007 level.</desc>
3008
3009 <param name="aNames" type="wstring" safearray="yes" dir="in">
3010 <desc>The names to check.</desc>
3011 </param>
3012
3013 <param name="aExists" type="wstring" safearray="yes" dir="return">
3014 <desc>The names which exist.</desc>
3015 </param>
3016 </method>
3017
3018 <method name="remove">
3019 <desc>Deletes the given files in the current directory level.</desc>
3020
3021 <param name="aNames" type="wstring" safearray="yes" dir="in">
3022 <desc>The names to remove.</desc>
3023 </param>
3024
3025 <param name="aProgress" type="IProgress" dir="return">
3026 <desc>Progress object to track the operation completion.</desc>
3027 </param>
3028 </method>
3029
3030 </interface>
3031
3032 <!--
3033 // IAppliance
3034 /////////////////////////////////////////////////////////////////////////
3035 -->
3036
3037 <enum
3038 name="CIMOSType"
3039 uuid="86ef5f8c-18b2-4db8-a314-33721b59f89b"
3040 >
3041 <desc>
3042 OVF operating system values according to CIM V2.20 (as of Nov 2008); http://www.dmtf.org/standards/cim/cim_schema_v220
3043 </desc>
3044
3045 <const name="CIMOS_Unknown" value="0" /> <!-- "Unknown" -->
3046 <const name="CIMOS_Other" value="1" /> <!-- "Other" -->
3047 <const name="CIMOS_MACOS" value="2" /> <!-- "MACOS" -->
3048 <const name="CIMOS_ATTUNIX" value="3" /> <!-- "ATTUNIX" -->
3049 <const name="CIMOS_DGUX" value="4" /> <!-- "DGUX" -->
3050 <const name="CIMOS_DECNT" value="5" /> <!-- "DECNT" -->
3051 <const name="CIMOS_Tru64UNIX" value="6" /> <!-- "Tru64 UNIX" -->
3052 <const name="CIMOS_OpenVMS" value="7" /> <!-- "OpenVMS" -->
3053 <const name="CIMOS_HPUX" value="8" /> <!-- "HPUX" -->
3054 <const name="CIMOS_AIX" value="9" /> <!-- "AIX" -->
3055 <const name="CIMOS_MVS" value="10" /> <!-- "MVS" -->
3056 <const name="CIMOS_OS400" value="11" /> <!-- "OS400" -->
3057 <const name="CIMOS_OS2" value="12" /> <!-- "OS/2" -->
3058 <const name="CIMOS_JavaVM" value="13" /> <!-- "JavaVM" -->
3059 <const name="CIMOS_MSDOS" value="14" /> <!-- "MSDOS" -->
3060 <const name="CIMOS_WIN3x" value="15" /> <!-- "WIN3x" -->
3061 <const name="CIMOS_WIN95" value="16" /> <!-- "WIN95" -->
3062 <const name="CIMOS_WIN98" value="17" /> <!-- "WIN98" -->
3063 <const name="CIMOS_WINNT" value="18" /> <!-- "WINNT" -->
3064 <const name="CIMOS_WINCE" value="19" /> <!-- "WINCE" -->
3065 <const name="CIMOS_NCR3000" value="20" /> <!-- "NCR3000" -->
3066 <const name="CIMOS_NetWare" value="21" /> <!-- "NetWare" -->
3067 <const name="CIMOS_OSF" value="22" /> <!-- "OSF" -->
3068 <const name="CIMOS_DCOS" value="23" /> <!-- "DC/OS" -->
3069 <const name="CIMOS_ReliantUNIX" value="24" /> <!-- "Reliant UNIX" -->
3070 <const name="CIMOS_SCOUnixWare" value="25" /> <!-- "SCO UnixWare" -->
3071 <const name="CIMOS_SCOOpenServer" value="26" /> <!-- "SCO OpenServer" -->
3072 <const name="CIMOS_Sequent" value="27" /> <!-- "Sequent" -->
3073 <const name="CIMOS_IRIX" value="28" /> <!-- "IRIX" -->
3074 <const name="CIMOS_Solaris" value="29" /> <!-- "Solaris" -->
3075 <const name="CIMOS_SunOS" value="30" /> <!-- "SunOS" -->
3076 <const name="CIMOS_U6000" value="31" /> <!-- "U6000" -->
3077 <const name="CIMOS_ASERIES" value="32" /> <!-- "ASERIES" -->
3078 <const name="CIMOS_HPNonStopOS" value="33" /> <!-- "HP NonStop OS" -->
3079 <const name="CIMOS_HPNonStopOSS" value="34" /> <!-- "HP NonStop OSS" -->
3080 <const name="CIMOS_BS2000" value="35" /> <!-- "BS2000" -->
3081 <const name="CIMOS_LINUX" value="36" /> <!-- "LINUX" -->
3082 <const name="CIMOS_Lynx" value="37" /> <!-- "Lynx" -->
3083 <const name="CIMOS_XENIX" value="38" /> <!-- "XENIX" -->
3084 <const name="CIMOS_VM" value="39" /> <!-- "VM" -->
3085 <const name="CIMOS_InteractiveUNIX" value="40" /> <!-- "Interactive UNIX" -->
3086 <const name="CIMOS_BSDUNIX" value="41" /> <!-- "BSDUNIX" -->
3087 <const name="CIMOS_FreeBSD" value="42" /> <!-- "FreeBSD" -->
3088 <const name="CIMOS_NetBSD" value="43" /> <!-- "NetBSD" -->
3089 <const name="CIMOS_GNUHurd" value="44" /> <!-- "GNU Hurd" -->
3090 <const name="CIMOS_OS9" value="45" /> <!-- "OS9" -->
3091 <const name="CIMOS_MACHKernel" value="46" /> <!-- "MACH Kernel" -->
3092 <const name="CIMOS_Inferno" value="47" /> <!-- "Inferno" -->
3093 <const name="CIMOS_QNX" value="48" /> <!-- "QNX" -->
3094 <const name="CIMOS_EPOC" value="49" /> <!-- "EPOC" -->
3095 <const name="CIMOS_IxWorks" value="50" /> <!-- "IxWorks" -->
3096 <const name="CIMOS_VxWorks" value="51" /> <!-- "VxWorks" -->
3097 <const name="CIMOS_MiNT" value="52" /> <!-- "MiNT" -->
3098 <const name="CIMOS_BeOS" value="53" /> <!-- "BeOS" -->
3099 <const name="CIMOS_HPMPE" value="54" /> <!-- "HP MPE" -->
3100 <const name="CIMOS_NextStep" value="55" /> <!-- "NextStep" -->
3101 <const name="CIMOS_PalmPilot" value="56" /> <!-- "PalmPilot" -->
3102 <const name="CIMOS_Rhapsody" value="57" /> <!-- "Rhapsody" -->
3103 <const name="CIMOS_Windows2000" value="58" /> <!-- "Windows 2000" -->
3104 <const name="CIMOS_Dedicated" value="59" /> <!-- "Dedicated" -->
3105 <const name="CIMOS_OS390" value="60" /> <!-- "OS/390" -->
3106 <const name="CIMOS_VSE" value="61" /> <!-- "VSE" -->
3107 <const name="CIMOS_TPF" value="62" /> <!-- "TPF" -->
3108 <const name="CIMOS_WindowsMe" value="63" /> <!-- "Windows (R) Me" -->
3109 <const name="CIMOS_CalderaOpenUNIX" value="64" /> <!-- "Caldera Open UNIX" -->
3110 <const name="CIMOS_OpenBSD" value="65" /> <!-- "OpenBSD" -->
3111 <const name="CIMOS_NotApplicable" value="66" /> <!-- "Not Applicable" -->
3112 <const name="CIMOS_WindowsXP" value="67" /> <!-- "Windows XP" -->
3113 <const name="CIMOS_zOS" value="68" /> <!-- "z/OS" -->
3114 <const name="CIMOS_MicrosoftWindowsServer2003" value="69" /> <!-- "Microsoft Windows Server 2003" -->
3115 <const name="CIMOS_MicrosoftWindowsServer2003_64" value="70" /> <!-- "Microsoft Windows Server 2003 64-Bit" -->
3116 <const name="CIMOS_WindowsXP_64" value="71" /> <!-- "Windows XP 64-Bit" -->
3117 <const name="CIMOS_WindowsXPEmbedded" value="72" /> <!-- "Windows XP Embedded" -->
3118 <const name="CIMOS_WindowsVista" value="73" /> <!-- "Windows Vista" -->
3119 <const name="CIMOS_WindowsVista_64" value="74" /> <!-- "Windows Vista 64-Bit" -->
3120 <const name="CIMOS_WindowsEmbeddedforPointofService" value="75" /> <!-- "Windows Embedded for Point of Service" -->
3121 <const name="CIMOS_MicrosoftWindowsServer2008" value="76" /> <!-- "Microsoft Windows Server 2008" -->
3122 <const name="CIMOS_MicrosoftWindowsServer2008_64" value="77" /> <!-- "Microsoft Windows Server 2008 64-Bit" -->
3123 <const name="CIMOS_FreeBSD_64" value="78" /> <!-- "FreeBSD 64-Bit" -->
3124 <const name="CIMOS_RedHatEnterpriseLinux" value="79" /> <!-- "RedHat Enterprise Linux" -->
3125 <const name="CIMOS_RedHatEnterpriseLinux_64" value="80" /> <!-- "RedHat Enterprise Linux 64-Bit" -->
3126 <const name="CIMOS_Solaris_64" value="81" /> <!-- "Solaris 64-Bit" -->
3127 <const name="CIMOS_SUSE" value="82" /> <!-- "SUSE" -->
3128 <const name="CIMOS_SUSE_64" value="83" /> <!-- "SUSE 64-Bit" -->
3129 <const name="CIMOS_SLES" value="84" /> <!-- "SLES" -->
3130 <const name="CIMOS_SLES_64" value="85" /> <!-- "SLES 64-Bit" -->
3131 <const name="CIMOS_NovellOES" value="86" /> <!-- "Novell OES" -->
3132 <const name="CIMOS_NovellLinuxDesktop" value="87" /> <!-- "Novell Linux Desktop" -->
3133 <const name="CIMOS_SunJavaDesktopSystem" value="88" /> <!-- "Sun Java Desktop System" -->
3134 <const name="CIMOS_Mandriva" value="89" /> <!-- "Mandriva" -->
3135 <const name="CIMOS_Mandriva_64" value="90" /> <!-- "Mandriva 64-Bit" -->
3136 <const name="CIMOS_TurboLinux" value="91" /> <!-- "TurboLinux" -->
3137 <const name="CIMOS_TurboLinux_64" value="92" /> <!-- "TurboLinux 64-Bit" -->
3138 <const name="CIMOS_Ubuntu" value="93" /> <!-- "Ubuntu" -->
3139 <const name="CIMOS_Ubuntu_64" value="94" /> <!-- "Ubuntu 64-Bit" -->
3140 <const name="CIMOS_Debian" value="95" /> <!-- "Debian" -->
3141 <const name="CIMOS_Debian_64" value="96" /> <!-- "Debian 64-Bit" -->
3142 <const name="CIMOS_Linux_2_4_x" value="97" /> <!-- "Linux 2.4.x" -->
3143 <const name="CIMOS_Linux_2_4_x_64" value="98" /> <!-- "Linux 2.4.x 64-Bit" -->
3144 <const name="CIMOS_Linux_2_6_x" value="99" /> <!-- "Linux 2.6.x" -->
3145 <const name="CIMOS_Linux_2_6_x_64" value="100" /> <!-- "Linux 2.6.x 64-Bit" -->
3146 <const name="CIMOS_Linux_64" value="101" /> <!-- "Linux 64-Bit" -->
3147 <const name="CIMOS_Other_64" value="102" /> <!-- "Other 64-Bit" -->
3148 </enum>
3149
3150 <enum
3151 name="OVFResourceType"
3152 uuid="646a78d7-6f04-49f4-82c4-75c28a75a4cd"
3153 >
3154 <desc>
3155 OVF resource type (as listed with CIM_ResourceAllocationSettingData; see for example
3156 http://msdn.microsoft.com/en-us/library/cc136877(VS.85).aspx).
3157 </desc>
3158
3159 <const name="Other" value="1" />
3160 <const name="ComputerSystem" value="2" />
3161 <const name="Processor" value="3" />
3162 <const name="Memory" value="4" />
3163 <const name="IDEController" value="5" />
3164 <const name="ParallelSCSIHBA" value="6" />
3165 <const name="FCHBA" value="7" />
3166 <const name="iSCSIHBA" value="8" />
3167 <const name="IBHCA" value="9" />
3168 <const name="EthernetAdapter" value="10" />
3169 <const name="OtherNetworkAdapter" value="11" />
3170 <const name="IOSlot" value="12" />
3171 <const name="IODevice" value="13" />
3172 <const name="FloppyDrive" value="14" />
3173 <const name="CDDrive" value="15" />
3174 <const name="DVDDrive" value="16" />
3175 <const name="HardDisk" value="17" />
3176 <const name="OtherStorageDevice" value="20" />
3177 <const name="USBController" value="23" />
3178 <const name="SoundCard" value="35" />
3179 </enum>
3180
3181 <interface
3182 name="IAppliance" extends="$unknown"
3183 uuid="07495095-d16c-4911-8964-5914341ced5d"
3184 wsmap="managed"
3185 >
3186 <desc>
3187 Represents a platform-independent appliance in OVF format. An instance of this is returned
3188 by <link to="IVirtualBox::createAppliance" />, which can then be used to import and export
3189 appliances with VirtualBox.
3190
3191 The OVF standard suggests two different physical file formats:
3192
3193 <ol>
3194 <li>If the OVF is distributed as a set of files, then @a file must be a fully qualified
3195 path name to an existing OVF descriptor file with an <tt>.ovf</tt> file extension. If
3196 this descriptor file references other files, as OVF appliances distributed as a set of
3197 files most likely do, those files must be in the same directory as the descriptor file.</li>
3198
3199 <li>If the OVF is distributed as a single file, it must be in TAR format and have the
3200 <tt>.ova</tt> file extension. This TAR file must then contain at least the OVF descriptor
3201 files and optionally other files.
3202
3203 At this time, VirtualBox does not not yet support the packed (TAR) variant; support will
3204 be added with a later version.</li>
3205 </ol>
3206
3207 <b>Importing</b> an OVF appliance into VirtualBox as instances of
3208 <link to="IMachine" /> involves the following sequence of API calls:
3209
3210 <ol>
3211 <li>Call <link to="IVirtualBox::createAppliance" />. This will create an empty IAppliance object.
3212 </li>
3213
3214 <li>On the new object, call <link to="#read" /> with the full path of the OVF file you
3215 would like to import. So long as this file is syntactically valid, this will succeed
3216 and return an instance of IAppliance that contains the parsed data from the OVF file.
3217 </li>
3218
3219 <li>Next, call <link to="#interpret" />, which analyzes the OVF data and sets up the
3220 contents of the IAppliance attributes accordingly. These can be inspected by a
3221 VirtualBox front-end such as the GUI, and the suggestions can be displayed to the
3222 user. In particular, the <link to="#virtualSystemDescriptions" /> array contains
3223 instances of <link to="IVirtualSystemDescription" /> which represent the virtual
3224 systems in the OVF, which in turn describe the virtual hardware prescribed by the
3225 OVF (network and hardware adapters, virtual disk images, memory size and so on).
3226 The GUI can then give the user the option to confirm and/or change these suggestions.
3227 </li>
3228
3229 <li>If desired, call <link to="IVirtualSystemDescription::setFinalValues" /> for each
3230 virtual system to override the suggestions made by the interpret() routine.
3231 </li>
3232
3233 <li>Finally, call <link to="#importMachines" /> to create virtual machines in
3234 VirtualBox as instances of <link to="IMachine" /> that match the information in the
3235 virtual system descriptions.
3236 </li>
3237 </ol>
3238
3239 <b>Exporting</b> VirtualBox machines into an OVF appliance involves the following steps:
3240
3241 <ol>
3242 <li>As with importing, first call <link to="IVirtualBox::createAppliance" /> to create
3243 an empty IAppliance object.
3244 </li>
3245
3246 <li>For each machine you would like to export, call <link to="IMachine::export" />
3247 with the IAppliance object you just created. This creates an instance of
3248 <link to="IVirtualSystemDescription" /> inside the appliance.
3249 </li>
3250
3251 <li>If desired, call <link to="IVirtualSystemDescription::setFinalValues" /> for each
3252 virtual system to override the suggestions made by the export() routine.
3253 </li>
3254
3255 <li>Finally, call <link to="#write" /> with a path specification to have the OVF
3256 file written.</li>
3257 </ol>
3258
3259 </desc>
3260
3261 <attribute name="path" type="wstring" readonly="yes">
3262 <desc>Path to the main file of the OVF appliance, which is either the <tt>.ovf</tt> or
3263 the <tt>.ova</tt> file passed to <link to="#read" /> (for import) or
3264 <link to="#write" /> (for export).
3265 This attribute is empty until one of these methods has been called.
3266 </desc>
3267 </attribute>
3268
3269 <attribute name="disks" type="wstring" readonly="yes" safearray="yes">
3270 <desc>
3271 Array of virtual disk definitions. One such description exists for each
3272 disk definition in the OVF; each string array item represents one such piece of
3273 disk information, with the information fields separated by tab (\\t) characters.
3274
3275 The caller should be prepared for additional fields being appended to
3276 this string in future versions of VirtualBox and therefore check for
3277 the number of tabs in the strings returned.
3278
3279 In the current version, the following eight fields are returned per string
3280 in the array:
3281
3282 <ol>
3283 <li>Disk ID (unique string identifier given to disk)</li>
3284
3285 <li>Capacity (unsigned integer indicating the maximum capacity of the disk)</li>
3286
3287 <li>Populated size (optional unsigned integer indicating the current size of the
3288 disk; can be approximate; -1 if unspecified)</li>
3289
3290 <li>Format (string identifying the disk format, typically
3291 "http://www.vmware.com/specifications/vmdk.html#sparse")</li>
3292
3293 <li>Reference (where to find the disk image, typically a file name; if empty,
3294 then the disk should be created on import)</li>
3295
3296 <li>Image size (optional unsigned integer indicating the size of the image,
3297 which need not necessarily be the same as the values specified above, since
3298 the image may be compressed or sparse; -1 if not specified)</li>
3299
3300 <li>Chunk size (optional unsigned integer if the image is split into chunks;
3301 presently unsupported and always -1)</li>
3302
3303 <li>Compression (optional string equalling "gzip" if the image is gzip-compressed)</li>
3304 </ol>
3305 </desc>
3306 </attribute>
3307
3308 <attribute name="virtualSystemDescriptions" type="IVirtualSystemDescription" readonly="yes" safearray="yes">
3309 <desc> Array of virtual system descriptions. One such description is created
3310 for each virtual system found in the OVF.
3311 This array is empty until either <link to="#interpret" /> (for import) or <link to="IMachine::export" />
3312 (for export) has been called.
3313 </desc>
3314 </attribute>
3315
3316 <method name="read">
3317 <desc>
3318 Reads an OVF file into the appliance object.
3319
3320 This method succeeds if the OVF is syntactically valid and, by itself, without errors. The
3321 mere fact that this method returns successfully does not mean that VirtualBox supports all
3322 features requested by the appliance; this can only be examined after a call to <link to="#interpret" />.
3323 </desc>
3324 <param name="file" type="wstring" dir="in">
3325 <desc>
3326 Name of appliance file to open (either with an <tt>.ovf</tt> or <tt>.ova</tt> extension, depending
3327 on whether the appliance is distributed as a set of files or as a single file, respectively).
3328 </desc>
3329 </param>
3330 </method>
3331
3332 <method name="interpret">
3333 <desc>
3334 Interprets the OVF data that was read when the appliance was constructed. After
3335 calling this method, one can inspect the
3336 <link to="#virtualSystemDescriptions" /> array attribute, which will then contain
3337 one <link to="IVirtualSystemDescription" /> for each virtual machine found in
3338 the appliance.
3339
3340 Calling this method is the second step of importing an appliance into VirtualBox;
3341 see <link to="IAppliance" /> for an overview.
3342
3343 After calling this method, one should call <link to="#getWarnings" /> to find out
3344 if problems were encountered during the processing which might later lead to
3345 errors.
3346 </desc>
3347 </method>
3348
3349 <method name="importMachines">
3350 <desc>
3351 Imports the appliance into VirtualBox by creating instances of <link to="IMachine" />
3352 and other interfaces that match the information contained in the appliance as
3353 closely as possible, as represented by the import instructions in the
3354 <link to="#virtualSystemDescriptions" /> array.
3355
3356 Calling this method is the final step of importing an appliance into VirtualBox;
3357 see <link to="IAppliance" /> for an overview.
3358
3359 Since importing the appliance will most probably involve copying and converting
3360 disk images, which can take a long time, this method operates asynchronously and
3361 returns an IProgress object to allow the caller to monitor the progress.
3362 </desc>
3363
3364 <param name="aProgress" type="IProgress" dir="return">
3365 <desc></desc>
3366 </param>
3367 </method>
3368
3369 <method name="createVFSExplorer">
3370 <desc>Returns a <link to="IVFSExplorer" /> object for the given URI.</desc>
3371
3372 <param name="aUri" type="wstring" dir="in">
3373 <desc>The URI describing the file system to use.</desc>
3374 </param>
3375
3376 <param name="aExplorer" type="IVFSExplorer" dir="return">
3377 <desc></desc>
3378 </param>
3379 </method>
3380
3381 <method name="write">
3382 <desc>
3383 Writes the contents of the appliance exports into a new OVF file.
3384
3385 Calling this method is the final step of exporting an appliance from VirtualBox;
3386 see <link to="IAppliance" /> for an overview.
3387
3388 Since exporting the appliance will most probably involve copying and converting
3389 disk images, which can take a long time, this method operates asynchronously and
3390 returns an IProgress object to allow the caller to monitor the progress.
3391 </desc>
3392 <param name="format" type="wstring" dir="in">
3393 <desc>
3394 Output format, as a string. Currently supported formats are "ovf-0.9" and "ovf-1.0";
3395 future versions of VirtualBox may support additional formats.
3396 </desc>
3397 </param>
3398 <param name="path" type="wstring" dir="in">
3399 <desc>
3400 Name of appliance file to open (either with an <tt>.ovf</tt> or <tt>.ova</tt> extension, depending
3401 on whether the appliance is distributed as a set of files or as a single file, respectively).
3402 </desc>
3403 </param>
3404 <param name="aProgress" type="IProgress" dir="return">
3405 <desc>Progress object to track the operation completion.</desc>
3406 </param>
3407 </method>
3408
3409 <method name="getWarnings">
3410 <desc>Returns textual warnings which occured during execution of <link to="#interpret" />.</desc>
3411
3412 <param name="aWarnings" type="wstring" dir="return" safearray="yes">
3413 <desc></desc>
3414 </param>
3415 </method>
3416
3417 </interface>
3418
3419 <enum
3420 name="VirtualSystemDescriptionType"
3421 uuid="aacc58de-5b45-4f82-ae2e-dd9a824fc3b5"
3422 >
3423 <desc>Used with <link to="IVirtualSystemDescription" /> to describe the type of
3424 a configuration value.</desc>
3425
3426 <const name="Ignore" value="1" />
3427 <const name="OS" value="2" />
3428 <const name="Name" value="3" />
3429 <const name="Product" value="4" />
3430 <const name="Vendor" value="5" />
3431 <const name="Version" value="6" />
3432 <const name="ProductUrl" value="7" />
3433 <const name="VendorUrl" value="8" />
3434 <const name="Description" value="9" />
3435 <const name="License" value="10" />
3436 <const name="Miscellaneous" value="11" />
3437 <const name="CPU" value="12" />
3438 <const name="Memory" value="13" />
3439 <const name="HardDiskControllerIDE" value="14" />
3440 <const name="HardDiskControllerSATA" value="15" />
3441 <const name="HardDiskControllerSCSI" value="16" />
3442 <const name="HardDiskImage" value="17" />
3443 <const name="Floppy" value="18" />
3444 <const name="CDROM" value="19" />
3445 <const name="NetworkAdapter" value="20" />
3446 <const name="USBController" value="21" />
3447 <const name="SoundCard" value="22" />
3448
3449 </enum>
3450
3451 <enum
3452 name="VirtualSystemDescriptionValueType"
3453 uuid="56d9403f-3425-4118-9919-36f2a9b8c77c"
3454 >
3455 <desc>Used with <link to="IVirtualSystemDescription::getValuesByType" /> to describe the value
3456 type to fetch.</desc>
3457
3458 <const name="Reference" value="1" />
3459 <const name="Original" value="2" />
3460 <const name="Auto" value="3" />
3461 <const name="ExtraConfig" value="4" />
3462
3463 </enum>
3464
3465 <interface
3466 name="IVirtualSystemDescription" extends="$unknown"
3467 uuid="d7525e6c-531a-4c51-8e04-41235083a3d8"
3468 wsmap="managed"
3469 >
3470
3471 <desc>This interface is used in the <link to="IAppliance::virtualSystemDescriptions" /> array.
3472 After <link to="IAppliance::interpret" /> has been called, that array contains
3473 information about how the virtual systems described in the OVF should best be imported into VirtualBox
3474 virtual machines. See <link to="IAppliance" /> for the steps required to import an OVF
3475 into VirtualBox.
3476 </desc>
3477
3478 <attribute name="count" type="unsigned long" readonly="yes">
3479 <desc>Return the number of virtual system description entries.</desc>
3480 </attribute>
3481
3482 <method name="getDescription">
3483 <desc>Returns information about the virtual system as arrays of instruction items. In each array, the
3484 items with the same indices correspond and jointly represent an import instruction for VirtualBox.
3485
3486 The list below identifies the value sets that are possible depending on the
3487 <link to="VirtualSystemDescriptionType" /> enum value in the array item in aTypes[]. In each case,
3488 the array item with the same index in aOvfValues[] will contain the original value as contained
3489 in the OVF file (just for informational purposes), and the corresponding item in aVBoxValues[]
3490 will contain a suggested value to be used for VirtualBox. Depending on the description type,
3491 the aExtraConfigValues[] array item may also be used.
3492
3493 <ul>
3494 <li>
3495 "OS": the guest operating system type. There must be exactly one such array item on import. The
3496 corresponding item in aVBoxValues[] contains the suggested guest operating system for VirtualBox.
3497 This will be one of the values listed in <link to="IVirtualBox::guestOSTypes" />. The corresponding
3498 item in aOvfValues[] will contain a numerical value that described the operating system in the OVF
3499 (see <link to="CIMOSType" />).
3500 </li>
3501 <li>
3502 "Name": the name to give to the new virtual machine. There can be at most one such array item;
3503 if none is present on import, then an automatic name will be created from the operating system
3504 type. The correponding item im aOvfValues[] will contain the suggested virtual machine name
3505 from the OVF file, and aVBoxValues[] will contain a suggestion for a unique VirtualBox
3506 <link to="IMachine" /> name that does not exist yet.
3507 </li>
3508 <li>
3509 "Description": an arbitrary description.
3510 </li>
3511 <li>
3512 "License": the EULA section from the OVF, if present. It is the responsibility of the calling
3513 code to display such a license for agreement; the Main API does not enforce any such policy.
3514 </li>
3515 <li>
3516 Miscellaneous: reserved for future use.
3517 </li>
3518 <li>
3519 "CPU": the number of CPUs. There can be at most one such item, which will presently be ignored.
3520 </li>
3521 <li>
3522 "Memory": the amount of guest RAM, in bytes. There can be at most one such array item; if none
3523 is present on import, then VirtualBox will set a meaningful default based on the operating system
3524 type.
3525 </li>
3526 <li>
3527 "HarddiskControllerIDE": an IDE hard disk controller. There can be at most one such item. This
3528 has no value in aOvfValues[] or aVBoxValues[].
3529 The matching item in the aRefs[] array will contain an integer that items of the "Harddisk"
3530 type can use to specify which hard disk controller a virtual disk should be connected to.
3531 </li>
3532 <li>
3533 "HarddiskControllerSATA": an SATA hard disk controller. There can be at most one such item. This
3534 has no value in aOvfValues[] or aVBoxValues[].
3535 The matching item in the aRefs[] array will be used as with IDE controllers (see above).
3536 </li>
3537 <li>
3538 "HarddiskControllerSCSI": a SCSI hard disk controller. There can be at most one such item.
3539 The items in aOvfValues[] and aVBoxValues[] will either be "LsiLogic" or "BusLogic".
3540 The matching item in the aRefs[] array will be used as with IDE controllers (see above).
3541 </li>
3542 <li>
3543 "HardDiskImage": a virtual hard disk, most probably as a reference to an image file. There can be an
3544 arbitrary number of these items, one for each virtual disk image that accompanies the OVF.
3545
3546 The array item in aOvfValues[] will contain the file specification from the OVF file (without
3547 a path since the image file should be in the same location as the OVF file itself), whereas the
3548 item in aVBoxValues[] will contain a qualified path specification to where VirtualBox uses the
3549 hard disk image. This means that on import the image will be copied and converted from the
3550 "ovf" location to the "vbox" location; on export, this will be handled the other way round.
3551 On import, the target image will also be registered with VirtualBox.
3552
3553 The matching item in the aExtraConfigValues[] array must contain a string of the following
3554 format: "controller=&lt;index&gt;;channel=&lt;c&gt;"
3555 In this string, &lt;index&gt; must be an integer specifying the hard disk controller to connect
3556 the image to. That number must be the index of an array item with one of the hard disk controller
3557 types (HarddiskControllerSCSI, HarddiskControllerSATA, HarddiskControllerIDE).
3558 In addition, &lt;c&gt; must specify the channel to use on that controller. For IDE controllers,
3559 this can range from 0-2 (which VirtualBox will interpret as primary master, primary slave,
3560 secondary slave; VirtualBox reserves the secondary master for the CD-ROM drive). For SATA and
3561 SCSI conrollers, the channel can range from 0-29.
3562 </li>
3563 <li>
3564 "NetworkAdapter": a network adapter. The array item in aVBoxValues[] will specify the hardware
3565 for the network adapter, whereas the array item in aExtraConfigValues[] will have a string
3566 of the "type=&lt;X&gt;" format, where &lt;X&gt; must be either "NAT" or "Bridged".
3567 </li>
3568 <li>
3569 "USBController": a USB controller. There can be at most one such item. If and only if such an
3570 item ispresent, USB support will be enabled for the new virtual machine.
3571 </li>
3572 <li>
3573 "SoundCard": a sound card. There can be at most one such item. If and only if such an item is
3574 present, sound support will be enabled for the new virtual machine. Note that the virtual
3575 machine in VirtualBox will always be presented with the standard VirtualBox soundcard, which
3576 may be different from the virtual soundcard expected by the appliance.
3577 </li>
3578 </ul>
3579
3580 </desc>
3581
3582 <param name="aTypes" type="VirtualSystemDescriptionType" dir="out" safearray="yes">
3583 <desc></desc>
3584 </param>
3585
3586 <param name="aRefs" type="wstring" dir="out" safearray="yes">
3587 <desc></desc>
3588 </param>
3589
3590 <param name="aOvfValues" type="wstring" dir="out" safearray="yes">
3591 <desc></desc>
3592 </param>
3593
3594 <param name="aVBoxValues" type="wstring" dir="out" safearray="yes">
3595 <desc></desc>
3596 </param>
3597
3598 <param name="aExtraConfigValues" type="wstring" dir="out" safearray="yes">
3599 <desc></desc>
3600 </param>
3601
3602 </method>
3603
3604 <method name="getDescriptionByType">
3605 <desc>This is the same as <link to="#getDescription" /> except that you can specify which types
3606 should be returned.</desc>
3607
3608 <param name="aType" type="VirtualSystemDescriptionType" dir="in">
3609 <desc></desc>
3610 </param>
3611
3612 <param name="aTypes" type="VirtualSystemDescriptionType" dir="out" safearray="yes">
3613 <desc></desc>
3614 </param>
3615
3616 <param name="aRefs" type="wstring" dir="out" safearray="yes">
3617 <desc></desc>
3618 </param>
3619
3620 <param name="aOvfValues" type="wstring" dir="out" safearray="yes">
3621 <desc></desc>
3622 </param>
3623
3624 <param name="aVBoxValues" type="wstring" dir="out" safearray="yes">
3625 <desc></desc>
3626 </param>
3627
3628 <param name="aExtraConfigValues" type="wstring" dir="out" safearray="yes">
3629 <desc></desc>
3630 </param>
3631
3632 </method>
3633
3634 <method name="getValuesByType">
3635 <desc>This is the same as <link to="#getDescriptionByType" /> except that you can specify which
3636 value types should be returned. See <link to="VirtualSystemDescriptionValueType" /> for possible
3637 values.</desc>
3638
3639 <param name="aType" type="VirtualSystemDescriptionType" dir="in">
3640 <desc></desc>
3641 </param>
3642
3643 <param name="aWhich" type="VirtualSystemDescriptionValueType" dir="in">
3644 <desc></desc>
3645 </param>
3646
3647 <param name="aValues" type="wstring" dir="return" safearray="yes">
3648 <desc></desc>
3649 </param>
3650
3651 </method>
3652
3653 <method name="setFinalValues">
3654 <desc>
3655 This method allows the appliance's user to change the configuration for the virtual
3656 system descriptions. For each array item returned from <link to="#getDescription" />,
3657 you must pass in one boolean value and one configuration value.
3658
3659 Each item in the boolean array determines whether the particular configuration item
3660 should be enabled.
3661 You can only disable items of the types HardDiskControllerIDE, HardDiskControllerSATA,
3662 HardDiskControllerSCSI, HardDiskImage, CDROM, Floppy, NetworkAdapter, USBController
3663 and SoundCard.
3664
3665 For the "vbox" and "extra configuration" values, if you pass in the same arrays
3666 as returned in the aVBoxValues and aExtraConfigValues arrays from getDescription(),
3667 the configuration remains unchanged. Please see the documentation for getDescription()
3668 for valid configuration values for the individual array item types. If the
3669 corresponding item in the aEnabled array is @c false, the configuration value is ignored.
3670 </desc>
3671
3672 <param name="aEnabled" type="boolean" dir="in" safearray="yes">
3673 <desc></desc>
3674 </param>
3675
3676 <param name="aVBoxValues" type="wstring" dir="in" safearray="yes">
3677 <desc></desc>
3678 </param>
3679
3680 <param name="aExtraConfigValues" type="wstring" dir="in" safearray="yes">
3681 <desc></desc>
3682 </param>
3683 </method>
3684
3685 <method name="addDescription">
3686 <desc>
3687 This method adds an additional description entry to the stack of already
3688 available descriptions for this virtual system. This is handy for writing
3689 values which aren't directly supported by VirtualBox. One example would
3690 be the License type of <link to="VirtualSystemDescriptionType" />.
3691 </desc>
3692
3693 <param name="aType" type="VirtualSystemDescriptionType" dir="in">
3694 <desc></desc>
3695 </param>
3696
3697 <param name="aVBoxValue" type="wstring" dir="in">
3698 <desc></desc>
3699 </param>
3700
3701 <param name="aExtraConfigValue" type="wstring" dir="in">
3702 <desc></desc>
3703 </param>
3704 </method>
3705 </interface>
3706
3707
3708 <!--
3709 // IMachine
3710 /////////////////////////////////////////////////////////////////////////
3711 -->
3712
3713 <interface
3714 name="IInternalMachineControl" extends="$unknown"
3715 uuid="ce8087d7-de92-4bbb-8140-a22fb07f37ba"
3716 internal="yes"
3717 wsmap="suppress"
3718 >
3719 <method name="setRemoveSavedState">
3720 <desc>
3721 Updates the flag whether saved state is removed on a machine state
3722 change from Saved to PoweredOff.
3723 </desc>
3724 <param name="aRemove" type="boolean" dir="in"/>
3725 </method>
3726
3727 <method name="updateState">
3728 <desc>
3729 Updates the VM state.
3730 <note>
3731 This operation will also update the settings file with
3732 the correct information about the saved state file
3733 and delete this file from disk when appropriate.
3734 </note>
3735 </desc>
3736 <param name="state" type="MachineState" dir="in"/>
3737 </method>
3738
3739 <method name="getIPCId">
3740 <param name="id" type="wstring" dir="return"/>
3741 </method>
3742
3743 <method name="runUSBDeviceFilters">
3744 <desc>
3745 Asks the server to run USB devices filters of the associated
3746 machine against the given USB device and tell if there is
3747 a match.
3748 <note>
3749 Intended to be used only for remote USB devices. Local
3750 ones don't require to call this method (this is done
3751 implicitly by the Host and USBProxyService).
3752 </note>
3753 </desc>
3754 <param name="device" type="IUSBDevice" dir="in"/>
3755 <param name="matched" type="boolean" dir="out"/>
3756 <param name="maskedInterfaces" type="unsigned long" dir="out"/>
3757 </method>
3758
3759 <method name="captureUSBDevice">
3760 <desc>
3761 Requests a capture of the given host USB device.
3762 When the request is completed, the VM process will
3763 get a <link to="IInternalSessionControl::onUSBDeviceAttach"/>
3764 notification.
3765 </desc>
3766 <param name="id" type="wstring" dir="in"/>
3767 </method>
3768
3769 <method name="detachUSBDevice">
3770 <desc>
3771 Notification that a VM is going to detach (@a done = @c false) or has
3772 already detached (@a done = @c true) the given USB device.
3773 When the @a done = @c true request is completed, the VM process will
3774 get a <link to="IInternalSessionControl::onUSBDeviceDetach"/>
3775 notification.
3776 <note>
3777 In the @a done = @c true case, the server must run its own filters
3778 and filters of all VMs but this one on the detached device
3779 as if it were just attached to the host computer.
3780 </note>
3781 </desc>
3782 <param name="id" type="wstring" dir="in"/>
3783 <param name="done" type="boolean" dir="in"/>
3784 </method>
3785
3786 <method name="autoCaptureUSBDevices">
3787 <desc>
3788 Requests a capture all matching USB devices attached to the host.
3789 When the request is completed, the VM process will
3790 get a <link to="IInternalSessionControl::onUSBDeviceAttach"/>
3791 notification per every captured device.
3792 </desc>
3793 </method>
3794
3795 <method name="detachAllUSBDevices">
3796 <desc>
3797 Notification that a VM that is being powered down. The done
3798 parameter indicates whether which stage of the power down
3799 we're at. When @a done = @c false the VM is announcing its
3800 intentions, while when @a done = @c true the VM is reporting
3801 what it has done.
3802 <note>
3803 In the @a done = @c true case, the server must run its own filters
3804 and filters of all VMs but this one on all detach devices as
3805 if they were just attached to the host computer.
3806 </note>
3807 </desc>
3808 <param name="done" type="boolean" dir="in"/>
3809 </method>
3810
3811 <method name="onSessionEnd">
3812 <desc>
3813 Triggered by the given session object when the session is about
3814 to close normally.
3815 </desc>
3816 <param name="session" type="ISession" dir="in">
3817 <desc>Session that is being closed</desc>
3818 </param>
3819 <param name="progress" type="IProgress" dir="return">
3820 <desc>
3821 Used to wait until the corresponding machine is actually
3822 dissociated from the given session on the server.
3823 Returned only when this session is a direct one.
3824 </desc>
3825 </param>
3826 </method>
3827
3828 <method name="beginSavingState">
3829 <desc>
3830 Called by the VM process to inform the server it wants to
3831 save the current state and stop the VM execution.
3832 </desc>
3833 <param name="progress" type="IProgress" dir="in">
3834 <desc>
3835 Progress object created by the VM process to wait until
3836 the state is saved.
3837 </desc>
3838 </param>
3839 <param name="stateFilePath" type="wstring" dir="out">
3840 <desc>
3841 File path the VM process must save the execution state to.
3842 </desc>
3843 </param>
3844 </method>
3845
3846 <method name="endSavingState">
3847 <desc>
3848 Called by the VM process to inform the server that saving
3849 the state previously requested by #beginSavingState is either
3850 successfully finished or there was a failure.
3851
3852 <result name="VBOX_E_FILE_ERROR">
3853 Settings file not accessible.
3854 </result>
3855 <result name="VBOX_E_XML_ERROR">
3856 Could not parse the settings file.
3857 </result>
3858
3859 </desc>
3860
3861 <param name="success" type="boolean" dir="in">
3862 <desc>@c true to indicate success and @c false otherwise.
3863 </desc>
3864 </param>
3865 </method>
3866
3867 <method name="adoptSavedState">
3868 <desc>
3869 Gets called by IConsole::adoptSavedState.
3870 <result name="VBOX_E_FILE_ERROR">
3871 Invalid saved state file path.
3872 </result>
3873 </desc>
3874 <param name="savedStateFile" type="wstring" dir="in">
3875 <desc>Path to the saved state file to adopt.</desc>
3876 </param>
3877 </method>
3878
3879 <method name="beginTakingSnapshot">
3880 <desc>
3881 Called by the VM process to inform the server it wants to
3882 take a snapshot.
3883
3884 <result name="VBOX_E_FILE_ERROR">
3885 Settings file not accessible.
3886 </result>
3887 <result name="VBOX_E_XML_ERROR">
3888 Could not parse the settings file.
3889 </result>
3890 </desc>
3891 <param name="initiator" type="IConsole" dir="in">
3892 <desc>The console object that initiated this call.</desc>
3893 </param>
3894 <param name="name" type="wstring" dir="in">
3895 <desc>Snapshot name.</desc>
3896 </param>
3897 <param name="description" type="wstring" dir="in">
3898 <desc>Snapshot description.</desc>
3899 </param>
3900 <param name="progress" type="IProgress" dir="in">
3901 <desc>
3902 Progress object created by the VM process to wait until
3903 the state is saved (only for online snapshots).
3904 </desc>
3905 </param>
3906 <param name="stateFilePath" type="wstring" dir="out">
3907 <desc>
3908 File path the VM process must save the execution state to.
3909 </desc>
3910 </param>
3911 <param name="serverProgress" type="IProgress" dir="out">
3912 <desc>
3913 Progress object created by the server process to wait until
3914 the snapshot is taken (VDI diff creation, etc.).
3915 </desc>
3916 </param>
3917 </method>
3918
3919 <method name="endTakingSnapshot">
3920 <desc>
3921 Called by the VM process to inform the server that the snapshot
3922 previously requested by #beginTakingSnapshot is either
3923 successfully taken or there was a failure.
3924 </desc>
3925
3926 <param name="success" type="boolean" dir="in">
3927 <desc>@c true to indicate success and @c false otherwise</desc>
3928 </param>
3929 </method>
3930
3931 <method name="discardSnapshot">
3932 <desc>
3933 Gets called by IConsole::discardSnapshot.
3934 <result name="VBOX_E_INVALID_OBJECT_STATE">
3935 Snapshot has more than one child snapshot.
3936 </result>
3937 </desc>
3938 <param name="initiator" type="IConsole" dir="in">
3939 <desc>The console object that initiated this call.</desc>
3940 </param>
3941 <param name="id" type="wstring" dir="in">
3942 <desc>UUID of the snapshot to discard.</desc>
3943 </param>
3944 <param name="machineState" type="MachineState" dir="out">
3945 <desc>New machine state after this operation is started.</desc>
3946 </param>
3947 <param name="progress" type="IProgress" dir="return">
3948 <desc>Progress object to track the operation completion.</desc>
3949 </param>
3950 </method>
3951
3952 <method name="discardCurrentState">
3953 <desc>
3954 Gets called by IConsole::discardCurrentState.
3955 <result name="VBOX_E_INVALID_OBJECT_STATE">
3956 Virtual machine does not have any snapshot.
3957 </result>
3958 </desc>
3959 <param name="initiator" type="IConsole" dir="in">
3960 <desc>The console object that initiated this call.</desc>
3961 </param>
3962 <param name="machineState" type="MachineState" dir="out">
3963 <desc>New machine state after this operation is started.</desc>
3964 </param>
3965 <param name="progress" type="IProgress" dir="return">
3966 <desc>Progress object to track the operation completion.</desc>
3967 </param>
3968 </method>
3969
3970 <method name="discardCurrentSnapshotAndState">
3971 <desc>
3972 Gets called by IConsole::discardCurrentSnapshotAndState.
3973 <result name="VBOX_E_INVALID_OBJECT_STATE">
3974 Virtual machine does not have any snapshot.
3975 </result>
3976 </desc>
3977 <param name="initiator" type="IConsole" dir="in">
3978 <desc>The console object that initiated this call.</desc>
3979 </param>
3980 <param name="machineState" type="MachineState" dir="out">
3981 <desc>New machine state after this operation is started.</desc>
3982 </param>
3983 <param name="progress" type="IProgress" dir="return">
3984 <desc>Progress object to track the operation completion.</desc>
3985 </param>
3986 </method>
3987
3988 <method name="pullGuestProperties">
3989 <desc>
3990 Get the list of the guest properties matching a set of patterns along
3991 with their values, time stamps and flags and give responsibility for
3992 managing properties to the console.
3993 </desc>
3994 <param name="name" type="wstring" dir="out" safearray="yes">
3995 <desc>
3996 The names of the properties returned.
3997 </desc>
3998 </param>
3999 <param name="value" type="wstring" dir="out" safearray="yes">
4000 <desc>
4001 The values of the properties returned. The array entries match the
4002 corresponding entries in the @a name array.
4003 </desc>
4004 </param>
4005 <param name="timestamp" type="unsigned long long" dir="out" safearray="yes">
4006 <desc>
4007 The time stamps of the properties returned. The array entries match
4008 the corresponding entries in the @a name array.
4009 </desc>
4010 </param>
4011 <param name="flags" type="wstring" dir="out" safearray="yes">
4012 <desc>
4013 The flags of the properties returned. The array entries match the
4014 corresponding entries in the @a name array.
4015 </desc>
4016 </param>
4017 </method>
4018
4019 <method name="pushGuestProperties">
4020 <desc>
4021 Set the list of the guest properties matching a set of patterns along
4022 with their values, time stamps and flags and return responsibility for
4023 managing properties to IMachine.
4024 </desc>
4025 <param name="name" type="wstring" dir="in" safearray="yes">
4026 <desc>
4027 The names of the properties.
4028 </desc>
4029 </param>
4030 <param name="value" type="wstring" dir="in" safearray="yes">
4031 <desc>
4032 The values of the properties. The array entries match the
4033 corresponding entries in the @a name array.
4034 </desc>
4035 </param>
4036 <param name="timestamp" type="unsigned long long" dir="in" safearray="yes">
4037 <desc>
4038 The time stamps of the properties. The array entries match
4039 the corresponding entries in the @a name array.
4040 </desc>
4041 </param>
4042 <param name="flags" type="wstring" dir="in" safearray="yes">
4043 <desc>
4044 The flags of the properties. The array entries match the
4045 corresponding entries in the @a name array.
4046 </desc>
4047 </param>
4048 </method>
4049 <method name="pushGuestProperty">
4050 <desc>
4051 Update a single guest property in IMachine.
4052 </desc>
4053 <param name="name" type="wstring" dir="in">
4054 <desc>
4055 The name of the property to be updated.
4056 </desc>
4057 </param>
4058 <param name="value" type="wstring" dir="in">
4059 <desc>
4060 The value of the property.
4061 </desc>
4062 </param>
4063 <param name="timestamp" type="unsigned long long" dir="in">
4064 <desc>
4065 The timestamp of the property.
4066 </desc>
4067 </param>
4068 <param name="flags" type="wstring" dir="in">
4069 <desc>
4070 The flags of the property.
4071 </desc>
4072 </param>
4073 </method>
4074
4075 <method name="lockMedia">
4076 <desc>
4077 Locks all media attached to the machine for writing and parents of
4078 attahced different hard disks (if any) for reading. This operation is
4079 atomic so that if it fails no media is actually locked.
4080
4081 This method is intended to be called when the machine is in Starting or
4082 Restoring state. The locked media will be automatically unlocked when
4083 the machine is powered off or crashed.
4084 </desc>
4085 </method>
4086 </interface>
4087
4088 <interface
4089 name="IBIOSSettings" extends="$unknown"
4090 uuid="38b54279-dc35-4f5e-a431-835b867c6b5e"
4091 wsmap="managed"
4092 >
4093 <desc>
4094 The IBIOSSettings interface represents BIOS settings of the virtual
4095 machine. This is used only in the <link to="IMachine::BIOSSettings" /> attribute.
4096 </desc>
4097 <attribute name="logoFadeIn" type="boolean">
4098 <desc>Fade in flag for BIOS logo animation.</desc>
4099 </attribute>
4100
4101 <attribute name="logoFadeOut" type="boolean">
4102 <desc>Fade out flag for BIOS logo animation.</desc>
4103 </attribute>
4104
4105 <attribute name="logoDisplayTime" type="unsigned long">
4106 <desc>BIOS logo display time in milliseconds (0 = default).</desc>
4107 </attribute>
4108
4109 <attribute name="logoImagePath" type="wstring">
4110 <desc>Local file system path for external BIOS image.</desc>
4111 </attribute>
4112
4113 <attribute name="bootMenuMode" type="BIOSBootMenuMode">
4114 <desc>Mode of the BIOS boot device menu.</desc>
4115 </attribute>
4116
4117 <attribute name="ACPIEnabled" type="boolean">
4118 <desc>ACPI support flag.</desc>
4119 </attribute>
4120
4121 <attribute name="IOAPICEnabled" type="boolean">
4122 <desc>
4123 IO APIC support flag. If set, VirtualBox will provide an IO APIC
4124 and support IRQs above 15.
4125 </desc>
4126 </attribute>
4127
4128 <attribute name="timeOffset" type="long long">
4129 <desc>
4130 Offset in milliseconds from the host system time. This allows for
4131 guests running with a different system date/time than the host.
4132 It is equivalent to setting the system date/time in the BIOS except
4133 it is not an absolute value but a relative one. Guest Additions
4134 time synchronization honors this offset.
4135 </desc>
4136 </attribute>
4137
4138 <attribute name="PXEDebugEnabled" type="boolean">
4139 <desc>
4140 PXE debug logging flag. If set, VirtualBox will write extensive
4141 PXE trace information to the release log.
4142 </desc>
4143 </attribute>
4144
4145 </interface>
4146
4147 <interface
4148 name="IMachine" extends="$unknown"
4149 uuid="540dcfda-3df2-49c6-88fa-033a28c2ff85"
4150 wsmap="managed"
4151 >
4152 <desc>
4153 The IMachine interface represents a virtual machine, or guest, created
4154 in VirtualBox.
4155
4156 This interface is used in two contexts. First of all, a collection of
4157 objects implementing this interface is stored in the
4158 <link to="IVirtualBox::machines"/> attribute which lists all the virtual
4159 machines that are currently registered with this VirtualBox
4160 installation. Also, once a session has been opened for the given virtual
4161 machine (e.g. the virtual machine is running), the machine object
4162 associated with the open session can be queried from the session object;
4163 see <link to="ISession"/> for details.
4164
4165 The main role of this interface is to expose the settings of the virtual
4166 machine and provide methods to change various aspects of the virtual
4167 machine's configuration. For machine objects stored in the
4168 <link to="IVirtualBox::machines"/> collection, all attributes are
4169 read-only unless explicitly stated otherwise in individual attribute
4170 and method descriptions. In order to change a machine setting, a session
4171 for this machine must be opened using one of
4172 <link to="IVirtualBox::openSession"/>,
4173 <link to="IVirtualBox::openRemoteSession"/> or
4174 <link to="IVirtualBox::openExistingSession"/> methods. After the
4175 session has been successfully opened, a mutable machine object needs to
4176 be queried from the session object and then the desired settings changes
4177 can be applied to the returned object using IMachine attributes and
4178 methods. See the ISession interface description for more information
4179 about sessions.
4180
4181 Note that the IMachine interface does not provide methods to control
4182 virtual machine execution (such as start the machine, or power it
4183 down) -- these methods are grouped in a separate IConsole
4184 interface. Refer to the IConsole interface description to get more
4185 information about this topic.
4186
4187 <see>ISession, IConsole</see>
4188 </desc>
4189
4190 <attribute name="parent" type="IVirtualBox" readonly="yes">
4191 <desc>Associated parent object.</desc>
4192 </attribute>
4193
4194 <attribute name="accessible" type="boolean" readonly="yes">
4195 <desc>
4196 Whether this virtual machine is currently accessible or not.
4197
4198 The machine is considered to be inaccessible when:
4199 <ul>
4200 <li>It is a registered virtual machine, and
4201 </li>
4202 <li>Its settings file is inaccessible (for example, it is
4203 located on a network share that is not accessible during
4204 VirtualBox startup, or becomes inaccessible later, or if
4205 the settings file can be read but is invalid).
4206 </li>
4207 </ul>
4208
4209 Otherwise, the value of this property is always @c true.
4210
4211 Every time this property is read, the accessibility state of
4212 this machine is re-evaluated. If the returned value is @c false,
4213 the <link to="#accessError"/> property may be used to get the
4214 detailed error information describing the reason of
4215 inaccessibility.
4216
4217 When the machine is inaccessible, only the following properties
4218 can be used on it:
4219 <ul>
4220 <li><link to="#parent"/></li>
4221 <li><link to="#id"/></li>
4222 <li><link to="#settingsFilePath"/></li>
4223 <li><link to="#accessible"/></li>
4224 <li><link to="#accessError"/></li>
4225 </ul>
4226
4227 An attempt to access any other property or method will return
4228 an error.
4229
4230 The only possible action you can perform on an inaccessible
4231 machine is to unregister it using the
4232 <link to="IVirtualBox::unregisterMachine"/> call (or, to check
4233 for the accessibility state once more by querying this
4234 property).
4235
4236 <note>
4237 In the current implementation, once this property returns
4238 @c true, the machine will never become inaccessible
4239 later, even if its settings file cannot be successfully
4240 read/written any more (at least, until the VirtualBox
4241 server is restarted). This limitation may be removed in
4242 future releases.
4243 </note>
4244 </desc>
4245 </attribute>
4246
4247 <attribute name="accessError" type="IVirtualBoxErrorInfo" readonly="yes">
4248 <desc>
4249 Error information describing the reason of machine
4250 inaccessibility.
4251
4252 Reading this property is only valid after the last call to
4253 <link to="#accessible"/> returned @c false (i.e. the
4254 machine is currently unaccessible). Otherwise, a @c null
4255 IVirtualBoxErrorInfo object will be returned.
4256 </desc>
4257 </attribute>
4258
4259 <attribute name="name" type="wstring">
4260 <desc>
4261 Name of the virtual machine.
4262
4263 Besides being used for human-readable identification purposes
4264 everywhere in VirtualBox, the virtual machine name is also used
4265 as a name of the machine's settings file and as a name of the
4266 subdirectory this settings file resides in. Thus, every time you
4267 change the value of this property, the settings file will be
4268 renamed once you call <link to="#saveSettings"/> to confirm the
4269 change. The containing subdirectory will be also renamed, but
4270 only if it has exactly the same name as the settings file
4271 itself prior to changing this property (for backward compatibility
4272 with previous API releases). The above implies the following
4273 limitations:
4274 <ul>
4275 <li>The machine name cannot be empty.</li>
4276 <li>The machine name can contain only characters that are valid
4277 file name characters according to the rules of the file
4278 system used to store VirtualBox configuration.</li>
4279 <li>You cannot have two or more machines with the same name
4280 if they use the same subdirectory for storing the machine
4281 settings files.</li>
4282 <li>You cannot change the name of the machine if it is running,
4283 or if any file in the directory containing the settings file
4284 is being used by another running machine or by any other
4285 process in the host operating system at a time when
4286 <link to="#saveSettings"/> is called.
4287 </li>
4288 </ul>
4289 If any of the above limitations are hit, <link to="#saveSettings"/>
4290 will return an appropriate error message explaining the exact
4291 reason and the changes you made to this machine will not be
4292 saved.
4293 <note>
4294 For "legacy" machines created using the
4295 <link to="IVirtualBox::createLegacyMachine"/> call,
4296 the above naming limitations do not apply because the
4297 machine name does not affect the settings file name.
4298 The settings file name remains the same as it was specified
4299 during machine creation and never changes.
4300 </note>
4301 </desc>
4302 </attribute>
4303
4304 <attribute name="description" type="wstring">
4305 <desc>
4306 Description of the virtual machine.
4307
4308 The description attribute can contain any text and is
4309 typically used to describe the hardware and software
4310 configuration of the virtual machine in detail (i.e. network
4311 settings, versions of the installed software and so on).
4312 </desc>
4313 </attribute>
4314
4315 <attribute name="id" type="wstring" readonly="yes">
4316 <desc>UUID of the virtual machine.</desc>
4317 </attribute>
4318
4319 <attribute name="OSTypeId" type="wstring">
4320 <desc>
4321 User-defined identifier of the Guest OS type.
4322 You may use <link to="IVirtualBox::getGuestOSType"/> to obtain
4323 an IGuestOSType object representing details about the given
4324 Guest OS type.
4325 <note>
4326 This value may differ from the value returned by
4327 <link to="IGuest::OSTypeId"/> if Guest Additions are
4328 installed to the guest OS.
4329 </note>
4330 </desc>
4331 </attribute>
4332
4333 <attribute name="HardwareVersion" type="wstring">
4334 <desc>Hardware version identifier. Internal use only for now.</desc>
4335 </attribute>
4336
4337 <attribute name="CPUCount" type="unsigned long">
4338 <desc>Number of virtual CPUs in the VM.</desc>
4339 </attribute>
4340
4341 <attribute name="memorySize" type="unsigned long">
4342 <desc>System memory size in megabytes.</desc>
4343 </attribute>
4344
4345 <attribute name="memoryBalloonSize" type="unsigned long">
4346 <desc>Initial memory balloon size in megabytes.</desc>
4347 </attribute>
4348
4349 <attribute name="statisticsUpdateInterval" type="unsigned long">
4350 <desc>Initial interval to update guest statistics in seconds.</desc>
4351 </attribute>
4352
4353 <attribute name="VRAMSize" type="unsigned long">
4354 <desc>Video memory size in megabytes.</desc>
4355 </attribute>
4356
4357 <attribute name="accelerate3DEnabled" type="boolean" default="false">
4358 <desc>
4359 This setting determines whether VirtualBox allows guests to make use
4360 of the 3D graphics support available on the host. Currently limited
4361 to OpenGL only. </desc>
4362 </attribute>
4363
4364 <attribute name="monitorCount" type="unsigned long">
4365 <desc>
4366 Number of virtual monitors.
4367 <note>
4368 Only effective on Windows XP and later guests with
4369 Guest Additions installed.
4370 </note>
4371 </desc>
4372 </attribute>
4373
4374 <attribute name="BIOSSettings" type="IBIOSSettings" readonly="yes">
4375 <desc>Object containing all BIOS settings.</desc>
4376 </attribute>
4377
4378 <attribute name="HWVirtExEnabled" type="boolean">
4379 <desc>
4380 This setting determines whether VirtualBox will try to make use of
4381 the host CPU's hardware virtualization extensions such as Intel VT-x
4382 and AMD-V. Note that in case such extensions are not available,
4383 they will not be used.
4384 </desc>
4385 </attribute>
4386
4387 <attribute name="HWVirtExNestedPagingEnabled" type="boolean" default="false">
4388 <desc>
4389 This setting determines whether VirtualBox will try to make use of
4390 the nested paging extension of Intel VT-x and AMD-V. Note that in case
4391 such extensions are not available, they will not be used.
4392 </desc>
4393 </attribute>
4394
4395 <attribute name="HWVirtExVPIDEnabled" type="boolean" default="false">
4396 <desc>
4397 This setting determines whether VirtualBox will try to make use of
4398 the VPID extension of Intel VT-x. Note that in case such extensions are
4399 not available, they will not be used.
4400 </desc>
4401 </attribute>
4402
4403 <attribute name="PAEEnabled" type="boolean" default="false">
4404 <desc>
4405 This setting determines whether VirtualBox will expose the Physical Address
4406 Extension (PAE) feature of the host CPU to the guest. Note that in case PAE
4407 is not available, it will not be reported.
4408 </desc>
4409 </attribute>
4410
4411 <attribute name="snapshotFolder" type="wstring">
4412 <desc>
4413 Full path to the directory used to store snapshot data
4414 (differencing hard disks and saved state files) of this machine.
4415
4416 The initial value of this property is
4417 <tt>&lt;</tt><link to="#settingsFilePath">
4418 path_to_settings_file</link><tt>&gt;/&lt;</tt>
4419 <link to="#id">machine_uuid</link>
4420 <tt>&gt;</tt>.
4421
4422 Currently, it is an error to try to change this property on
4423 a machine that has snapshots (because this would require to
4424 move possibly large files to a different location).
4425 A separate method will be available for this purpose later.
4426
4427 <note>
4428 Setting this property to @c null or to an empty string will restore
4429 the initial value.
4430 </note>
4431 <note>
4432 When setting this property, the specified path can be
4433 absolute (full path) or relative to the directory where the
4434 <link to="#settingsFilePath">machine settings file</link>
4435 is located. When reading this property, a full path is
4436 always returned.
4437 </note>
4438 <note>
4439 The specified path may not exist, it will be created
4440 when necessary.
4441 </note>
4442 </desc>
4443 </attribute>
4444
4445 <attribute name="VRDPServer" type="IVRDPServer" readonly="yes">
4446 <desc>VRDP server object.</desc>
4447 </attribute>
4448
4449 <attribute name="hardDiskAttachments" type="IHardDiskAttachment" readonly="yes" safearray="yes">
4450 <desc>Array of hard disks attached to this machine.</desc>
4451 </attribute>
4452
4453 <attribute name="DVDDrive" type="IDVDDrive" readonly="yes">
4454 <desc>Associated DVD drive object.</desc>
4455 </attribute>
4456
4457 <attribute name="floppyDrive" type="IFloppyDrive" readonly="yes">
4458 <desc>Associated floppy drive object.</desc>
4459 </attribute>
4460
4461 <attribute name="USBController" type="IUSBController" readonly="yes">
4462 <desc>
4463 Associated USB controller object.
4464
4465 <note>
4466 If USB functionality is not available in the given edition of
4467 VirtualBox, this method will set the result code to @c E_NOTIMPL.
4468 </note>
4469 </desc>
4470 </attribute>
4471
4472 <attribute name="audioAdapter" type="IAudioAdapter" readonly="yes">
4473 <desc>Associated audio adapter, always present.</desc>
4474 </attribute>
4475
4476 <attribute name="storageControllers" type="IStorageController" readonly="yes" safearray="yes">
4477 <desc>Array of storage controllers attached to this machine.</desc>
4478 </attribute>
4479
4480 <attribute name="settingsFilePath" type="wstring" readonly="yes">
4481 <desc>
4482 Full name of the file containing machine settings data.
4483 </desc>
4484 </attribute>
4485
4486 <attribute name="settingsFileVersion" type="wstring" readonly="yes">
4487 <desc>
4488 Current version of the format of the settings file of this machine
4489 (<link to="IMachine::settingsFilePath"/>).
4490
4491 The version string has the following format:
4492 <pre>
4493 x.y-platform
4494 </pre>
4495 where @c x and @c y are the major and the minor format
4496 versions, and @c platform is the platform identifier.
4497
4498 The current version usually matches the value of the
4499 <link to="IVirtualBox::settingsFormatVersion"/> attribute unless the
4500 settings file was created by an older version of VirtualBox and there
4501 was a change of the settings file format since then.
4502
4503 Note that VirtualBox automatically converts settings files from older
4504 versions to the most recent version when reading them (usually at
4505 VirtualBox startup) but it doesn't save the changes back until
4506 you call a method that implicitly saves settings (such as
4507 <link to="#setExtraData"/>) or call <link to="#saveSettings"/>
4508 explicitly. Therefore, if the value of this attribute differs from the
4509 value of <link to="IVirtualBox::settingsFormatVersion"/>, then it
4510 means that the settings file was converted but the result of the
4511 conversion is not yet saved to disk.
4512
4513 The above feature may be used by interactive front-ends to inform users
4514 about the settings file format change and offer them to explicitly save
4515 all converted settings files (the global and VM-specific ones),
4516 optionally create backup copies of the old settings files before saving,
4517 etc.
4518
4519 <see>IVirtualBox::settingsFormatVersion, saveSettingsWithBackup()</see>
4520 </desc>
4521 </attribute>
4522
4523 <attribute name="settingsModified" type="boolean" readonly="yes">
4524 <desc>
4525 Whether the settings of this machine have been modified
4526 (but neither yet saved nor discarded).
4527 <note>
4528 Reading this property is only valid on instances returned
4529 by <link to="ISession::machine"/> and on new machines
4530 created by <link to="IVirtualBox::createMachine"/> or opened
4531 by <link to="IVirtualBox::openMachine"/> but not
4532 yet registered, or on unregistered machines after calling
4533 <link to="IVirtualBox::unregisterMachine"/>. For all other
4534 cases, the settings can never be modified.
4535 </note>
4536 <note>
4537 For newly created unregistered machines, the value of this
4538 property is always @c true until <link to="#saveSettings"/>
4539 is called (no matter if any machine settings have been
4540 changed after the creation or not). For opened machines
4541 the value is set to @c false (and then follows to normal rules).
4542 </note>
4543 </desc>
4544 </attribute>
4545
4546 <attribute name="sessionState" type="SessionState" readonly="yes">
4547 <desc>Current session state for this machine.</desc>
4548 </attribute>
4549
4550 <attribute name="sessionType" type="wstring" readonly="yes">
4551 <desc>
4552 Type of the session. If <link to="#sessionState"/> is
4553 SessionSpawning or SessionOpen, this attribute contains the
4554 same value as passed to the
4555 <link to="IVirtualBox::openRemoteSession"/> method in the
4556 @a type parameter. If the session was opened directly using
4557 <link to="IVirtualBox::openSession"/>, or if
4558 <link to="#sessionState"/> is SessionClosed, the value of this
4559 attribute is an empty string.
4560 </desc>
4561 </attribute>
4562
4563 <attribute name="sessionPid" type="unsigned long" readonly="yes">
4564 <desc>
4565 Identifier of the session process. This attribute contains the
4566 platform-dependent identifier of the process that has opened a
4567 direct session for this machine using the
4568 <link to="IVirtualBox::openSession"/> call. The returned value
4569 is only valid if <link to="#sessionState"/> is SessionOpen or
4570 SessionClosing (i.e. a session is currently open or being
4571 closed) by the time this property is read.
4572 </desc>
4573 </attribute>
4574
4575 <attribute name="state" type="MachineState" readonly="yes">
4576 <desc>Current execution state of this machine.</desc>
4577 </attribute>
4578
4579 <attribute name="lastStateChange" type="long long" readonly="yes">
4580 <desc>
4581 Time stamp of the last execution state change,
4582 in milliseconds since 1970-01-01 UTC.
4583 </desc>
4584 </attribute>
4585
4586 <attribute name="stateFilePath" type="wstring" readonly="yes">
4587 <desc>
4588 Full path to the file that stores the execution state of
4589 the machine when it is in the <link to="MachineState_Saved"/> state.
4590 <note>
4591 When the machine is not in the Saved state, this attribute is
4592 an empty string.
4593 </note>
4594 </desc>
4595 </attribute>
4596
4597 <attribute name="logFolder" type="wstring" readonly="yes">
4598 <desc>
4599 Full path to the folder that stores a set of rotated log files
4600 recorded during machine execution. The most recent log file is
4601 named <tt>VBox.log</tt>, the previous log file is
4602 named <tt>VBox.log.1</tt> and so on (up to <tt>VBox.log.3</tt>
4603 in the current version).
4604 </desc>
4605 </attribute>
4606
4607 <attribute name="currentSnapshot" type="ISnapshot" readonly="yes">
4608 <desc>
4609 Current snapshot of this machine.
4610 <note>
4611 A @c null object is returned if the machine doesn't
4612 have snapshots.
4613 </note>
4614 <see><link to="ISnapshot"/></see>
4615 </desc>
4616 </attribute>
4617
4618 <attribute name="snapshotCount" type="unsigned long" readonly="yes">
4619 <desc>
4620 Number of snapshots taken on this machine. Zero means the
4621 machine doesn't have any snapshots.
4622 </desc>
4623 </attribute>
4624
4625 <attribute name="currentStateModified" type="boolean" readonly="yes">
4626 <desc>
4627 Returns @c true if the current state of the machine is not
4628 identical to the state stored in the current snapshot.
4629
4630 The current state is identical to the current snapshot right
4631 after one of the following calls are made:
4632 <ul>
4633 <li><link to="IConsole::discardCurrentState"/> or
4634 <link to="IConsole::discardCurrentSnapshotAndState"/>
4635 </li>
4636 <li><link to="IConsole::takeSnapshot"/> (issued on a
4637 powered off or saved machine, for which
4638 <link to="#settingsModified"/> returns @c false)
4639 </li>
4640 <li><link to="IMachine::setCurrentSnapshot"/>
4641 </li>
4642 </ul>
4643
4644 The current state remains identical until one of the following
4645 happens:
4646 <ul>
4647 <li>settings of the machine are changed</li>
4648 <li>the saved state is discarded</li>
4649 <li>the current snapshot is discarded</li>
4650 <li>an attempt to execute the machine is made</li>
4651 </ul>
4652
4653 <note>
4654 For machines that don't have snapshots, this property is
4655 always @c false.
4656 </note>
4657 </desc>
4658 </attribute>
4659
4660 <attribute name="sharedFolders" type="ISharedFolder" readonly="yes" safearray="yes">
4661 <desc>
4662 Collection of shared folders for this machine (permanent shared
4663 folders). These folders are shared automatically at machine startup
4664 and available only to the guest OS installed within this machine.
4665
4666 New shared folders are added to the collection using
4667 <link to="#createSharedFolder"/>. Existing shared folders can be
4668 removed using <link to="#removeSharedFolder"/>.
4669 </desc>
4670 </attribute>
4671
4672 <attribute name="clipboardMode" type="ClipboardMode">
4673 <desc>
4674 Synchronization mode between the host OS clipboard
4675 and the guest OS clipboard.
4676 </desc>
4677 </attribute>
4678
4679 <attribute name="guestPropertyNotificationPatterns" type="wstring">
4680 <desc>
4681 A comma-separated list of simple glob patterns. Changes to guest
4682 properties whose name matches one of the patterns will generate an
4683 <link to="IVirtualBoxCallback::onGuestPropertyChange"/> signal.
4684 </desc>
4685 </attribute>
4686
4687 <method name="setBootOrder">
4688 <desc>
4689 Puts the given device to the specified position in
4690 the boot order.
4691
4692 To indicate that no device is associated with the given position,
4693 <link to="DeviceType_Null"/> should be used.
4694
4695 @todo setHardDiskBootOrder(), setNetworkBootOrder()
4696
4697 <result name="E_INVALIDARG">
4698 Boot @a position out of range.
4699 </result>
4700 <result name="E_NOTIMPL">
4701 Booting from USB @a device currently not supported.
4702 </result>
4703
4704 </desc>
4705 <param name="position" type="unsigned long" dir="in">
4706 <desc>
4707 Position in the boot order (@c 1 to the total number of
4708 devices the machine can boot from, as returned by
4709 <link to="ISystemProperties::maxBootPosition"/>).
4710 </desc>
4711 </param>
4712 <param name="device" type="DeviceType" dir="in">
4713 <desc>
4714 The type of the device used to boot at the given position.
4715 </desc>
4716 </param>
4717 </method>
4718
4719 <method name="getBootOrder" const="yes">
4720 <desc>
4721 Returns the device type that occupies the specified
4722 position in the boot order.
4723
4724 @todo [remove?]
4725 If the machine can have more than one device of the returned type
4726 (such as hard disks), then a separate method should be used to
4727 retrieve the individual device that occupies the given position.
4728
4729 If here are no devices at the given position, then
4730 <link to="DeviceType_Null"/> is returned.
4731
4732 @todo getHardDiskBootOrder(), getNetworkBootOrder()
4733
4734 <result name="E_INVALIDARG">
4735 Boot @a position out of range.
4736 </result>
4737
4738 </desc>
4739 <param name="position" type="unsigned long" dir="in">
4740 <desc>
4741 Position in the boot order (@c 1 to the total number of
4742 devices the machine can boot from, as returned by
4743 <link to="ISystemProperties::maxBootPosition"/>).
4744 </desc>
4745 </param>
4746 <param name="device" type="DeviceType" dir="return">
4747 <desc>
4748 Device at the given position.
4749 </desc>
4750 </param>
4751 </method>
4752
4753 <method name="attachHardDisk">
4754 <desc>
4755 Attaches a virtual hard disk (<link to="IHardDisk" />, identified
4756 by the given UUID @a id) to the given hard disk controller
4757 (<link to="IStorageController" />, identified by @a name),
4758 at the indicated port and device.
4759
4760 For the IDE bus, the @a controllerPort parameter can be either
4761 @c 0 or @c 1, to specify the primary or secondary IDE controller,
4762 respectively. For the primary controller of the IDE bus,
4763 @a device can be either @c 0 or @c 1, to specify the master or the
4764 slave device, respectively. For the secondary IDE controller, the
4765 device number must be @c 1 because VirtualBox reserves the
4766 secondary master for the CD-ROM drive.
4767
4768 For an SATA controller, @a controllerPort must be a number ranging
4769 from @c 0 to @c 29. For a SCSI controller, @a controllerPort must
4770 be a number ranging from @c 0 to @c 15.
4771
4772 For both SCSI and SATA, the @a device parameter is unused and must
4773 be @c 0.
4774
4775 The specified device slot must not have another disk attached to it, or
4776 this method will fail.
4777
4778 See <link to="IHardDisk"/> for more detailed information about
4779 attaching hard disks.
4780
4781 <note>
4782 You cannot attach a hard disk to a running machine. Also, you cannot
4783 attach a hard disk to a newly created machine until this machine's
4784 settings are saved to disk using <link to="#saveSettings"/>.
4785 </note>
4786 <note>
4787 If the hard disk is being attached indirectly, a new differencing hard
4788 disk will implicitly be created for it and attached instead. If the
4789 changes made to the machine settings (including this indirect
4790 attachment) are later cancelled using <link to="#discardSettings"/>,
4791 this implicitly created differencing hard disk will implicitly
4792 be deleted.
4793 </note>
4794
4795 <result name="E_INVALIDARG">
4796 SATA device, SATA port, IDE port or IDE slot out of range.
4797 </result>
4798 <result name="VBOX_E_INVALID_OBJECT_STATE">
4799 Attempt to attach hard disk to an unregistered virtual machine.
4800 </result>
4801 <result name="VBOX_E_INVALID_VM_STATE">
4802 Invalid machine state.
4803 </result>
4804 <result name="VBOX_E_OBJECT_IN_USE">
4805 Hard disk already attached to this or another virtual machine.
4806 </result>
4807
4808 </desc>
4809 <param name="id" type="wstring" dir="in">
4810 <desc>UUID of the hard disk to attach.</desc>
4811 </param>
4812 <param name="name" type="wstring" dir="in">
4813 <desc>Name of the storage controller to attach the hard disk to.</desc>
4814 </param>
4815 <param name="controllerPort" type="long" dir="in">
4816 <desc>Port to attach the hard disk to.</desc>
4817 </param>
4818 <param name="device" type="long" dir="in">
4819 <desc>
4820 Device slot in the given port to attach the hard disk to.
4821 </desc>
4822 </param>
4823 </method>
4824
4825 <method name="getHardDisk" const="yes">
4826 <desc>
4827 Returns the virtual hard disk attached to a device slot of the specified
4828 bus.
4829
4830 Note that if the hard disk was indirectly attached by
4831 <link to="#attachHardDisk"/> to the given device slot then this
4832 method will return not the same object as passed to the
4833 <link to="#attachHardDisk"/> call. See <link to="IHardDisk"/> for
4834 more detailed information about attaching hard disks.
4835
4836 <result name="VBOX_E_OBJECT_NOT_FOUND">
4837 No hard disk attached to given slot/bus.
4838 </result>
4839
4840 </desc>
4841 <param name="name" type="wstring" dir="in">
4842 <desc>Name of the storage controller the hard disk is attached to.</desc>
4843 </param>
4844 <param name="controllerPort" type="long" dir="in">
4845 <desc>Port to query.</desc>
4846 </param>
4847 <param name="device" type="long" dir="in">
4848 <desc>Device slot in the given port to query.</desc>
4849 </param>
4850 <param name="hardDisk" type="IHardDisk" dir="return">
4851 <desc>Attached hard disk object.</desc>
4852 </param>
4853 </method>
4854
4855 <method name="detachHardDisk">
4856 <desc>
4857 Detaches the virtual hard disk attached to a device slot of the
4858 specified bus.
4859
4860 Detaching the hard disk from the virtual machine is deferred. This means
4861 that the hard disk remains associated with the machine when this method
4862 returns and gets actually de-associated only after a successful
4863 <link to="#saveSettings"/> call. See <link to="IHardDisk"/>
4864 for more detailed information about attaching hard disks.
4865
4866 <note>
4867 You cannot detach the hard disk from a running machine.
4868 </note>
4869 <note>
4870 Detaching differencing hard disks implicitly created by <link
4871 to="#attachHardDisk"/> for the indirect attachment using this
4872 method will <b>not</b> implicitly delete them. The
4873 <link to="IHardDisk::deleteStorage"/> operation should be
4874 explicitly performed by the caller after the hard disk is successfully
4875 detached and the settings are saved with
4876 <link to="#saveSettings"/>, if it is the desired action.
4877 </note>
4878
4879 <result name="VBOX_E_INVALID_VM_STATE">
4880 Attempt to detach hard disk from a running virtual machine.
4881 </result>
4882 <result name="VBOX_E_OBJECT_NOT_FOUND">
4883 No hard disk attached to given slot/bus.
4884 </result>
4885 <result name="VBOX_E_NOT_SUPPORTED">
4886 Hard disk format does not support storage deletion.
4887 </result>
4888
4889 </desc>
4890 <param name="name" type="wstring" dir="in">
4891 <desc>name of the storage controller to detach the hard disk from.</desc>
4892 </param>
4893 <param name="controllerPort" type="long" dir="in">
4894 <desc>Port number to detach the hard disk from.</desc>
4895 </param>
4896 <param name="device" type="long" dir="in">
4897 <desc>Device slot number to detach the hard disk from.</desc>
4898 </param>
4899 </method>
4900
4901 <method name="getHardDiskAttachmentsOfController" const="yes">
4902 <desc>
4903 Returns an array of hard disk attachments which are attached to the
4904 the controller with the given name.
4905
4906 <result name="VBOX_E_OBJECT_NOT_FOUND">
4907 A storage controller with given name doesn't exist.
4908 </result>
4909 </desc>
4910 <param name="name" type="wstring" dir="in"/>
4911 <param name="hardDiskAttachments" type="IHardDiskAttachment" safearray="yes" dir="return"/>
4912 </method>
4913
4914 <method name="getNetworkAdapter" const="yes">
4915 <desc>
4916 Returns the network adapter associated with the given slot.
4917 Slots are numbered sequentially, starting with zero. The total
4918 number of adapters per machine is defined by the
4919 <link to="ISystemProperties::networkAdapterCount"/> property,
4920 so the maximum slot number is one less than that property's value.
4921
4922 <result name="E_INVALIDARG">
4923 Invalid @a slot number.
4924 </result>
4925
4926 </desc>
4927 <param name="slot" type="unsigned long" dir="in"/>
4928 <param name="adapter" type="INetworkAdapter" dir="return"/>
4929 </method>
4930
4931 <method name="addStorageController">
4932 <desc>
4933 Adds a new storage controller (SCSI or SATA controller) to the
4934 machine and returns it as an instance of
4935 <link to="IStorageController" />.
4936
4937 @a name identifies the controller for subsequent calls such as
4938 <link to="#getStorageControllerByName" /> or
4939 <link to="#removeStorageController" /> or
4940 <link to="#attachHardDisk" />.
4941
4942 After the controller has been added, you can set its exact
4943 type by setting the <link to="IStorageController::controllerType" />.
4944
4945 <result name="VBOX_E_OBJECT_IN_USE">
4946 A storage controller with given name exists already.
4947 </result>
4948 <result name="E_INVALIDARG">
4949 Invalid @a controllerType.
4950 </result>
4951 </desc>
4952 <param name="name" type="wstring" dir="in"/>
4953 <param name="connectionType" type="StorageBus" dir="in"/>
4954 <param name="controller" type="IStorageController" dir="return"/>
4955 </method>
4956
4957 <method name="getStorageControllerByName" const="yes">
4958 <desc>
4959 Returns a storage controller with the given name.
4960
4961 <result name="VBOX_E_OBJECT_NOT_FOUND">
4962 A storage controller with given name doesn't exist.
4963 </result>
4964 </desc>
4965 <param name="name" type="wstring" dir="in"/>
4966 <param name="storageController" type="IStorageController" dir="return"/>
4967 </method>
4968
4969 <method name="removeStorageController">
4970 <desc>
4971 Removes a storage controller from the machine.
4972
4973 <result name="VBOX_E_OBJECT_NOT_FOUND">
4974 A storage controller with given name doesn't exist.
4975 </result>
4976 </desc>
4977 <param name="name" type="wstring" dir="in"/>
4978 </method>
4979
4980 <method name="getSerialPort" const="yes">
4981 <desc>
4982 Returns the serial port associated with the given slot.
4983 Slots are numbered sequentially, starting with zero. The total
4984 number of serial ports per machine is defined by the
4985 <link to="ISystemProperties::serialPortCount"/> property,
4986 so the maximum slot number is one less than that property's value.
4987
4988 <result name="E_INVALIDARG">
4989 Invalid @a slot number.
4990 </result>
4991
4992 </desc>
4993 <param name="slot" type="unsigned long" dir="in"/>
4994 <param name="port" type="ISerialPort" dir="return"/>
4995 </method>
4996
4997 <method name="getParallelPort" const="yes">
4998 <desc>
4999 Returns the parallel port associated with the given slot.
5000 Slots are numbered sequentially, starting with zero. The total
5001 number of parallel ports per machine is defined by the
5002 <link to="ISystemProperties::parallelPortCount"/> property,
5003 so the maximum slot number is one less than that property's value.
5004
5005 <result name="E_INVALIDARG">
5006 Invalid @a slot number.
5007 </result>
5008
5009 </desc>
5010 <param name="slot" type="unsigned long" dir="in"/>
5011 <param name="port" type="IParallelPort" dir="return"/>
5012 </method>
5013
5014 <method name="getNextExtraDataKey">
5015 <desc>
5016 Returns the machine-specific extra data key name following the
5017 supplied key.
5018
5019 An error is returned if the supplied @a key does not exist. An empty
5020 string is returned in @a nextKey if the supplied key is the last key.
5021 When supplying @c null or an empty string for the @a key, the first key
5022 item is returned in @a nextKey (if there is any). @a nextValue is an
5023 optional parameter and if supplied, the next key's value is returned in
5024 it.
5025
5026 <result name="VBOX_E_OBJECT_NOT_FOUND">
5027 Extra data @a key not found.
5028 </result>
5029
5030 </desc>
5031 <param name="key" type="wstring" dir="in">
5032 <desc>Name of the data key to follow.</desc>
5033 </param>
5034 <param name="nextKey" type="wstring" dir="out">
5035 <desc>Name of the next data key.</desc>
5036 </param>
5037 <param name="nextValue" type="wstring" dir="out">
5038 <desc>Value of the next data key.</desc>
5039 </param>
5040 </method>
5041
5042 <method name="getExtraData">
5043 <desc>
5044 Returns associated machine-specific extra data.
5045
5046 If the requested data @a key does not exist, this function will
5047 succeed and return an empty string in the @a value argument.
5048
5049 <result name="VBOX_E_FILE_ERROR">
5050 Settings file not accessible.
5051 </result>
5052 <result name="VBOX_E_XML_ERROR">
5053 Could not parse the settings file.
5054 </result>
5055
5056 </desc>
5057 <param name="key" type="wstring" dir="in">
5058 <desc>Name of the data key to get.</desc>
5059 </param>
5060 <param name="value" type="wstring" dir="return">
5061 <desc>Value of the requested data key.</desc>
5062 </param>
5063 </method>
5064
5065 <method name="setExtraData">
5066 <desc>
5067 Sets associated machine-specific extra data.
5068
5069 If you pass @c null or an empty string as a key @a value, the given
5070 @a key will be deleted.
5071
5072 <note>
5073 Before performing the actual data change, this method will ask all
5074 registered callbacks using the
5075 <link to="IVirtualBoxCallback::onExtraDataCanChange"/>
5076 notification for a permission. If one of the callbacks refuses the
5077 new value, the change will not be performed.
5078 </note>
5079 <note>
5080 On success, the
5081 <link to="IVirtualBoxCallback::onExtraDataChange"/> notification
5082 is called to inform all registered callbacks about a successful data
5083 change.
5084 </note>
5085 <note>
5086 This method can be called outside the machine session and therefore
5087 it's a caller's responsibility to handle possible race conditions
5088 when several clients change the same key at the same time.
5089 </note>
5090
5091 <result name="VBOX_E_FILE_ERROR">
5092 Settings file not accessible.
5093 </result>
5094 <result name="VBOX_E_XML_ERROR">
5095 Could not parse the settings file.
5096 </result>
5097
5098 </desc>
5099 <param name="key" type="wstring" dir="in">
5100 <desc>Name of the data key to set.</desc>
5101 </param>
5102 <param name="value" type="wstring" dir="in">
5103 <desc>Value to assign to the key.</desc>
5104 </param>
5105 </method>
5106
5107 <method name="saveSettings">
5108 <desc>
5109 Saves any changes to machine settings made since the session
5110 has been opened or a new machine has been created, or since the
5111 last call to <link to="#saveSettings"/> or <link to="#discardSettings"/>.
5112 For registered machines, new settings become visible to all
5113 other VirtualBox clients after successful invocation of this
5114 method.
5115 <note>
5116 The method sends <link to="IVirtualBoxCallback::onMachineDataChange"/>
5117 notification event after the configuration has been successfully
5118 saved (only for registered machines).
5119 </note>
5120 <note>
5121 Calling this method is only valid on instances returned
5122 by <link to="ISession::machine"/> and on new machines
5123 created by <link to="IVirtualBox::createMachine"/> but not
5124 yet registered, or on unregistered machines after calling
5125 <link to="IVirtualBox::unregisterMachine"/>.
5126 </note>
5127
5128 <result name="VBOX_E_FILE_ERROR">
5129 Settings file not accessible.
5130 </result>
5131 <result name="VBOX_E_XML_ERROR">
5132 Could not parse the settings file.
5133 </result>
5134 <result name="E_ACCESSDENIED">
5135 Modification request refused.
5136 </result>
5137
5138 </desc>
5139 </method>
5140
5141 <method name="saveSettingsWithBackup">
5142 <desc>
5143 Creates a backup copy of the machine settings file (<link
5144 to="IMachine::settingsFilePath"/>) in case of auto-conversion, and then calls
5145 <link to="IMachine::saveSettings"/>.
5146
5147 Note that the backup copy is created <b>only</b> if the settings file
5148 auto-conversion took place (see <link to="#settingsFileVersion"/> for
5149 details). Otherwise, this call is fully equivalent to
5150 <link to="IMachine::saveSettings"/> and no backup copying is done.
5151
5152 The backup copy is created in the same directory where the original
5153 settings file is located. It is given the following file name:
5154 <pre>
5155 original.xml.x.y-platform.bak
5156 </pre>
5157 where <tt>original.xml</tt> is the original settings file name
5158 (excluding path), and <tt>x.y-platform</tt> is the version of the old
5159 format of the settings file (before auto-conversion).
5160
5161 If the given backup file already exists, this method will try to add the
5162 <tt>.N</tt> suffix to the backup file name (where @c N counts from
5163 0 to 9) and copy it again until it succeeds. If all suffixes are
5164 occupied, or if any other copy error occurs, this method will return a
5165 failure.
5166
5167 If the copy operation succeeds, the @a bakFileName return argument will
5168 receive a full path to the created backup file (for informational
5169 purposes). Note that this will happen even if the subsequent
5170 <link to="#saveSettings"/> call performed by this method after the
5171 copy operation, fails.
5172
5173 <note>
5174 The VirtualBox API never calls this method. It is intended purely for
5175 the purposes of creating backup copies of the settings files by
5176 front-ends before saving the results of the automatically performed
5177 settings conversion to disk.
5178 </note>
5179
5180 <see>settingsFileVersion</see>
5181
5182 <result name="VBOX_E_FILE_ERROR">
5183 Settings file not accessible.
5184 </result>
5185 <result name="VBOX_E_XML_ERROR">
5186 Could not parse the settings file.
5187 </result>
5188 <result name="VBOX_E_INVALID_VM_STATE">
5189 Virtual machine is not mutable.
5190 </result>
5191 <result name="E_ACCESSDENIED">
5192 Modification request refused.
5193 </result>
5194
5195 </desc>
5196 <param name="bakFileName" type="wstring" dir="return">
5197 <desc>Full path to the created backup copy.</desc>
5198 </param>
5199 </method>
5200
5201 <method name="discardSettings">
5202 <desc>
5203 Discards any changes to the machine settings made since the session
5204 has been opened or since the last call to <link to="#saveSettings"/>
5205 or <link to="#discardSettings"/>.
5206 <note>
5207 Calling this method is only valid on instances returned
5208 by <link to="ISession::machine"/> and on new machines
5209 created by <link to="IVirtualBox::createMachine"/> or
5210 opened by <link to="IVirtualBox::openMachine"/> but not
5211 yet registered, or on unregistered machines after calling
5212 <link to="IVirtualBox::unregisterMachine"/>.
5213 </note>
5214
5215 <result name="VBOX_E_INVALID_VM_STATE">
5216 Virtual machine is not mutable.
5217 </result>
5218
5219 </desc>
5220 </method>
5221
5222 <method name="deleteSettings">
5223 <desc>
5224 Deletes the settings file of this machine from disk.
5225 The machine must not be registered in order for this operation
5226 to succeed.
5227 <note>
5228 <link to="#settingsModified"/> will return @c true after this
5229 method successfully returns.
5230 </note>
5231 <note>
5232 Calling this method is only valid on instances returned
5233 by <link to="ISession::machine"/> and on new machines
5234 created by <link to="IVirtualBox::createMachine"/> or
5235 opened by <link to="IVirtualBox::openMachine"/> but not
5236 yet registered, or on unregistered machines after calling
5237 <link to="IVirtualBox::unregisterMachine"/>.
5238 </note>
5239 <note>
5240 The deleted machine settings file can be restored (saved again)
5241 by calling <link to="#saveSettings"/>.
5242 </note>
5243
5244 <result name="VBOX_E_INVALID_VM_STATE">
5245 Cannot delete settings of a registered machine or
5246 machine not mutable.
5247 </result>
5248 <result name="VBOX_E_IPRT_ERROR">
5249 Could not delete the settings file.
5250 </result>
5251
5252 </desc>
5253 </method>
5254
5255 <method name="export">
5256 <desc>Exports the machine to an OVF appliance. See <link to="IAppliance" /> for the
5257 steps required to export VirtualBox machines to OVF.
5258 </desc>
5259
5260 <param name="aAppliance" type="IAppliance" dir="in">
5261 <desc>Appliance to export this machine to.</desc>
5262 </param>
5263 <param name="aDescription" type="IVirtualSystemDescription" dir="return">
5264 <desc>VirtualSystemDescription object which is created for this machine.</desc>
5265 </param>
5266 </method >
5267
5268 <method name="getSnapshot">
5269 <desc>
5270 Returns a snapshot of this machine with the given UUID.
5271 A @c null UUID can be used to obtain the first snapshot
5272 taken on this machine. This is useful if you want to traverse
5273 the whole tree of snapshots starting from the root.
5274
5275 <result name="VBOX_E_OBJECT_NOT_FOUND">
5276 Virtual machine has no snapshots or snapshot not found.
5277 </result>
5278
5279 </desc>
5280 <param name="id" type="wstring" dir="in">
5281 <desc>UUID of the snapshot to get</desc>
5282 </param>
5283 <param name="snapshot" type="ISnapshot" dir="return">
5284 <desc>Snapshot object with the given UUID.</desc>
5285 </param>
5286 </method>
5287
5288 <method name="findSnapshot">
5289 <desc>
5290 Returns a snapshot of this machine with the given name.
5291
5292 <result name="VBOX_E_OBJECT_NOT_FOUND">
5293 Virtual machine has no snapshots or snapshot not found.
5294 </result>
5295
5296 </desc>
5297 <param name="name" type="wstring" dir="in">
5298 <desc>Name of the snapshot to find</desc>
5299 </param>
5300 <param name="snapshot" type="ISnapshot" dir="return">
5301 <desc>Snapshot object with the given name.</desc>
5302 </param>
5303 </method>
5304
5305 <method name="setCurrentSnapshot">
5306 <desc>
5307 Sets the current snapshot of this machine.
5308 <note>
5309 In the current implementation, this operation is not
5310 implemented.
5311 </note>
5312 </desc>
5313 <param name="id" type="wstring" dir="in">
5314 <desc>UUID of the snapshot to set as the current snapshot.</desc>
5315 </param>
5316 </method>
5317
5318 <method name="createSharedFolder">
5319 <desc>
5320 Creates a new permanent shared folder by associating the given logical
5321 name with the given host path, adds it to the collection of shared
5322 folders and starts sharing it. Refer to the description of
5323 <link to="ISharedFolder"/> to read more about logical names.
5324
5325 <result name="VBOX_E_OBJECT_IN_USE">
5326 Shared folder already exists.
5327 </result>
5328 <result name="VBOX_E_FILE_ERROR">
5329 Shared folder @a hostPath not accessible.
5330 </result>
5331
5332 </desc>
5333 <param name="name" type="wstring" dir="in">
5334 <desc>Unique logical name of the shared folder.</desc>
5335 </param>
5336 <param name="hostPath" type="wstring" dir="in">
5337 <desc>Full path to the shared folder in the host file system.</desc>
5338 </param>
5339 <param name="writable" type="boolean" dir="in">
5340 <desc>Whether the share is writable or readonly</desc>
5341 </param>
5342 </method>
5343
5344 <method name="removeSharedFolder">
5345 <desc>
5346 Removes the permanent shared folder with the given name previously
5347 created by <link to="#createSharedFolder"/> from the collection of
5348 shared folders and stops sharing it.
5349
5350 <result name="VBOX_E_INVALID_VM_STATE">
5351 Virtual machine is not mutable.
5352 </result>
5353 <result name="VBOX_E_OBJECT_NOT_FOUND">
5354 Shared folder @a name does not exist.
5355 </result>
5356
5357 </desc>
5358 <param name="name" type="wstring" dir="in">
5359 <desc>Logical name of the shared folder to remove.</desc>
5360 </param>
5361 </method>
5362
5363 <method name="canShowConsoleWindow">
5364 <desc>
5365 Returns @c true if the VM console process can activate the
5366 console window and bring it to foreground on the desktop of
5367 the host PC.
5368 <note>
5369 This method will fail if a session for this machine is not
5370 currently open.
5371 </note>
5372
5373 <result name="VBOX_E_INVALID_VM_STATE">
5374 Machine session is not open.
5375 </result>
5376
5377 </desc>
5378 <param name="canShow" type="boolean" dir="return">
5379 <desc>
5380 @c true if the console window can be shown and @c false otherwise.
5381 </desc>
5382 </param>
5383 </method>
5384
5385 <method name="showConsoleWindow">
5386 <desc>
5387 Activates the console window and brings it to foreground on
5388 the desktop of the host PC. Many modern window managers on
5389 many platforms implement some sort of focus stealing
5390 prevention logic, so that it may be impossible to activate
5391 a window without the help of the currently active
5392 application. In this case, this method will return a non-zero
5393 identifier that represents the top-level window of the VM
5394 console process. The caller, if it represents a currently
5395 active process, is responsible to use this identifier (in a
5396 platform-dependent manner) to perform actual window
5397 activation.
5398 <note>
5399 This method will fail if a session for this machine is not
5400 currently open.
5401 </note>
5402
5403 <result name="VBOX_E_INVALID_VM_STATE">
5404 Machine session is not open.
5405 </result>
5406
5407 </desc>
5408 <param name="winId" type="unsigned long long" dir="return">
5409 <desc>
5410 Platform-dependent identifier of the top-level VM console
5411 window, or zero if this method has performed all actions
5412 necessary to implement the <i>show window</i> semantics for
5413 the given platform and/or VirtualBox front-end.
5414 </desc>
5415 </param>
5416 </method>
5417
5418 <method name="getGuestProperty">
5419 <desc>
5420 Reads an entry from the machine's guest property store.
5421
5422 <result name="VBOX_E_INVALID_VM_STATE">
5423 Machine session is not open.
5424 </result>
5425
5426 </desc>
5427 <param name="name" type="wstring" dir="in">
5428 <desc>
5429 The name of the property to read.
5430 </desc>
5431 </param>
5432 <param name="value" type="wstring" dir="out">
5433 <desc>
5434 The value of the property. If the property does not exist then this
5435 will be empty.
5436 </desc>
5437 </param>
5438 <param name="timestamp" type="unsigned long long" dir="out">
5439 <desc>
5440 The time at which the property was last modified, as seen by the
5441 server process.
5442 </desc>
5443 </param>
5444 <param name="flags" type="wstring" dir="out">
5445 <desc>
5446 Additional property parameters, passed as a comma-separated list of
5447 "name=value" type entries.
5448 </desc>
5449 </param>
5450 </method>
5451
5452 <method name="getGuestPropertyValue">
5453 <desc>
5454 Reads a value from the machine's guest property store.
5455
5456 <result name="VBOX_E_INVALID_VM_STATE">
5457 Machine session is not open.
5458 </result>
5459
5460 </desc>
5461 <param name="property" type="wstring" dir="in">
5462 <desc>
5463 The name of the property to read.
5464 </desc>
5465 </param>
5466 <param name="value" type="wstring" dir="return">
5467 <desc>
5468 The value of the property. If the property does not exist then this
5469 will be empty.
5470 </desc>
5471 </param>
5472 </method>
5473
5474 <method name="getGuestPropertyTimestamp">
5475 <desc>
5476 Reads a property timestamp from the machine's guest property store.
5477
5478 <result name="VBOX_E_INVALID_VM_STATE">
5479 Machine session is not open.
5480 </result>
5481
5482 </desc>
5483 <param name="property" type="wstring" dir="in">
5484 <desc>
5485 The name of the property to read.
5486 </desc>
5487 </param>
5488 <param name="value" type="unsigned long long" dir="return">
5489 <desc>
5490 The timestamp. If the property does not exist then this will be
5491 empty.
5492 </desc>
5493 </param>
5494 </method>
5495
5496 <method name="setGuestProperty">
5497 <desc>
5498 Sets, changes or deletes an entry in the machine's guest property
5499 store.
5500
5501 <result name="E_ACCESSDENIED">
5502 Property cannot be changed.
5503 </result>
5504 <result name="E_INVALIDARG">
5505 Invalid @a flags.
5506 </result>
5507 <result name="VBOX_E_INVALID_VM_STATE">
5508 Virtual machine is not mutable or session not open.
5509 </result>
5510 <result name="VBOX_E_INVALID_OBJECT_STATE">
5511 Cannot set transient property when machine not running.
5512 </result>
5513
5514 </desc>
5515 <param name="property" type="wstring" dir="in">
5516 <desc>
5517 The name of the property to set, change or delete.
5518 </desc>
5519 </param>
5520 <param name="value" type="wstring" dir="in">
5521 <desc>
5522 The new value of the property to set, change or delete. If the
5523 property does not yet exist and value is non-empty, it will be
5524 created. If the value is @c null or empty, the property will be
5525 deleted if it exists.
5526 </desc>
5527 </param>
5528 <param name="flags" type="wstring" dir="in">
5529 <desc>
5530 Additional property parameters, passed as a comma-separated list of
5531 "name=value" type entries.
5532 </desc>
5533 </param>
5534 </method>
5535
5536 <method name="setGuestPropertyValue">
5537 <desc>
5538 Sets, changes or deletes a value in the machine's guest property
5539 store. The flags field will be left unchanged or created empty for a
5540 new property.
5541
5542 <result name="E_ACCESSDENIED">
5543 Property cannot be changed.
5544 </result>
5545 <result name="VBOX_E_INVALID_VM_STATE">
5546 Virtual machine is not mutable or session not open.
5547 </result>
5548 <result name="VBOX_E_INVALID_OBJECT_STATE">
5549 Cannot set transient property when machine not running.
5550 </result>
5551 </desc>
5552
5553 <param name="property" type="wstring" dir="in">
5554 <desc>
5555 The name of the property to set, change or delete.
5556 </desc>
5557 </param>
5558 <param name="value" type="wstring" dir="in">
5559 <desc>
5560 The new value of the property to set, change or delete. If the
5561 property does not yet exist and value is non-empty, it will be
5562 created. If the value is @c null or empty, the property will be
5563 deleted if it exists.
5564 </desc>
5565 </param>
5566 </method>
5567
5568 <method name="enumerateGuestProperties">
5569 <desc>
5570 Return a list of the guest properties matching a set of patterns along
5571 with their values, time stamps and flags.
5572 </desc>
5573 <param name="patterns" type="wstring" dir="in">
5574 <desc>
5575 The patterns to match the properties against, separated by '|'
5576 characters. If this is empty or @c null, all properties will match.
5577 </desc>
5578 </param>
5579 <param name="name" type="wstring" dir="out" safearray="yes">
5580 <desc>
5581 The names of the properties returned.
5582 </desc>
5583 </param>
5584 <param name="value" type="wstring" dir="out" safearray="yes">
5585 <desc>
5586 The values of the properties returned. The array entries match the
5587 corresponding entries in the @a name array.
5588 </desc>
5589 </param>
5590 <param name="timestamp" type="unsigned long long" dir="out" safearray="yes">
5591 <desc>
5592 The time stamps of the properties returned. The array entries match
5593 the corresponding entries in the @a name array.
5594 </desc>
5595 </param>
5596 <param name="flags" type="wstring" dir="out" safearray="yes">
5597 <desc>
5598 The flags of the properties returned. The array entries match the
5599 corresponding entries in the @a name array.
5600 </desc>
5601 </param>
5602 </method>
5603</interface>
5604
5605 <!--
5606 // IConsole
5607 /////////////////////////////////////////////////////////////////////////
5608 -->
5609
5610 <interface
5611 name="IConsoleCallback" extends="$unknown"
5612 uuid="13dfbef3-b74d-487d-bada-2304529aefa6"
5613 wsmap="suppress"
5614 >
5615
5616 <desc>
5617 This interface is used by a client of the Main API that need to
5618 be notified of events. For example, a graphical user interface
5619 can use this to learn about machine state changes so they can
5620 update the list of virtual machines without having to rely
5621 on polling.
5622
5623 Whenever relevant events occur in VirtualBox, the callbacks in
5624 objects of this interface are called. In order for this to be
5625 useful, a client needs to create its own subclass that implements
5626 this interface in which the methods for the relevant callbacks
5627 are overridden. An instance of this subclass interface can then
5628 be passed to <link to="IConsole::registerCallback" />.
5629 </desc>
5630
5631 <method name="onMousePointerShapeChange">
5632 <desc>
5633 Notification when the guest mouse pointer shape has
5634 changed. The new shape data is given.
5635 </desc>
5636 <param name="visible" type="boolean" dir="in">
5637 <desc>
5638 Flag whether the pointer is visible.
5639 </desc>
5640 </param>
5641 <param name="alpha" type="boolean" dir="in">
5642 <desc>
5643 Flag whether the pointer has an alpha channel.
5644 </desc>
5645 </param>
5646 <param name="xHot" type="unsigned long" dir="in">
5647 <desc>
5648 The pointer hot spot x coordinate.
5649 </desc>
5650 </param>
5651 <param name="yHot" type="unsigned long" dir="in">
5652 <desc>
5653 The pointer hot spot y coordinate.
5654 </desc>
5655 </param>
5656 <param name="width" type="unsigned long" dir="in">
5657 <desc>
5658 Width of the pointer shape in pixels.
5659 </desc>
5660 </param>
5661 <param name="height" type="unsigned long" dir="in">
5662 <desc>
5663 Height of the pointer shape in pixels.
5664 </desc>
5665 </param>
5666 <param name="shape" type="octet" mod="ptr" dir="in">
5667 <desc>
5668 Address of the shape buffer.
5669
5670 The @a shape buffer contains a 1-bpp (bits per pixel) AND mask
5671 followed by a 32-bpp XOR (color) mask.
5672
5673 For pointers without alpha channel the XOR mask pixels are 32
5674 bit values: (lsb)BGR0(msb). For pointers with alpha channel
5675 the XOR mask consists of (lsb)BGRA(msb) 32 bit values.
5676
5677 An AND mask is used for pointers with alpha channel, so if the
5678 callback does not support alpha, the pointer could be
5679 displayed as a normal color pointer.
5680
5681 The AND mask is a 1-bpp bitmap with byte aligned scanlines. The
5682 size of the AND mask therefore is <tt>cbAnd = (width + 7) / 8 *
5683 height</tt>. The padding bits at the end of each scanline are
5684 undefined.
5685
5686 The XOR mask follows the AND mask on the next 4-byte aligned
5687 offset: <tt>uint8_t *pXor = pAnd + (cbAnd + 3) &amp; ~3</tt>.
5688 Bytes in the gap between the AND and the XOR mask are undefined.
5689 The XOR mask scanlines have no gap between them and the size of
5690 the XOR mask is: <tt>cXor = width * 4 * height</tt>.
5691
5692 <note>
5693 If @a shape is 0, only the pointer visibility is changed.
5694 </note>
5695 </desc>
5696 </param>
5697 </method>
5698
5699 <method name="onMouseCapabilityChange">
5700 <desc>
5701 Notification when the mouse capabilities reported by the
5702 guest have changed. The new capabilities are passed.
5703 </desc>
5704 <param name="supportsAbsolute" type="boolean" dir="in"/>
5705 <param name="needsHostCursor" type="boolean" dir="in"/>
5706 </method>
5707
5708 <method name="onKeyboardLedsChange">
5709 <desc>
5710 Notification when the guest OS executes the KBD_CMD_SET_LEDS command
5711 to alter the state of the keyboard LEDs.
5712 </desc>
5713 <param name="numLock" type="boolean" dir="in"/>
5714 <param name="capsLock" type="boolean" dir="in"/>
5715 <param name="scrollLock" type="boolean" dir="in"/>
5716 </method>
5717
5718 <method name="onStateChange">
5719 <desc>
5720 Notification when the execution state of the machine has changed.
5721 The new state will be given.
5722 </desc>
5723 <param name="state" type="MachineState" dir="in"/>
5724 </method>
5725
5726 <method name="onAdditionsStateChange">
5727 <desc>
5728 Notification when a Guest Additions property changes.
5729 Interested callees should query IGuest attributes to
5730 find out what has changed.
5731 </desc>
5732 </method>
5733
5734 <method name="onDVDDriveChange">
5735 <desc>
5736 Notification when a property of the
5737 virtual <link to="IMachine::DVDDrive">DVD drive</link> changes.
5738 Interested callees should use IDVDDrive methods to find out what has
5739 changed.
5740 </desc>
5741 </method>
5742
5743 <method name="onFloppyDriveChange">
5744 <desc>
5745 Notification when a property of the
5746 virtual <link to="IMachine::floppyDrive">floppy drive</link> changes.
5747 Interested callees should use IFloppyDrive methods to find out what
5748 has changed.
5749 </desc>
5750 </method>
5751
5752 <method name="onNetworkAdapterChange">
5753 <desc>
5754 Notification when a property of one of the
5755 virtual <link to="IMachine::getNetworkAdapter">network adapters</link>
5756 changes. Interested callees should use INetworkAdapter methods and
5757 attributes to find out what has changed.
5758 </desc>
5759 <param name="networkAdapter" type="INetworkAdapter" dir="in">
5760 <desc>Network adapter that is subject to change.</desc>
5761 </param>
5762 </method>
5763
5764 <method name="onSerialPortChange">
5765 <desc>
5766 Notification when a property of one of the
5767 virtual <link to="IMachine::getSerialPort">serial ports</link> changes.
5768 Interested callees should use ISerialPort methods and attributes
5769 to find out what has changed.
5770 </desc>
5771 <param name="serialPort" type="ISerialPort" dir="in">
5772 <desc>Serial port that is subject to change.</desc>
5773 </param>
5774 </method>
5775
5776 <method name="onParallelPortChange">
5777 <desc>
5778 Notification when a property of one of the
5779 virtual <link to="IMachine::getParallelPort">parallel ports</link>
5780 changes. Interested callees should use ISerialPort methods and
5781 attributes to find out what has changed.
5782 </desc>
5783 <param name="parallelPort" type="IParallelPort" dir="in">
5784 <desc>Parallel port that is subject to change.</desc>
5785 </param>
5786 </method>
5787
5788 <method name="onStorageControllerChange">
5789 <desc>
5790 Notification when a property of one of the
5791 virtual <link to="IMachine::storageControllers">storage controllers</link>
5792 changes. Interested callees should query the corresponding collections
5793 to find out what has changed.
5794 </desc>
5795 </method>
5796
5797 <method name="onVRDPServerChange">
5798 <desc>
5799 Notification when a property of the
5800 <link to="IMachine::VRDPServer">VRDP server</link> changes.
5801 Interested callees should use IVRDPServer methods and attributes to
5802 find out what has changed.
5803 </desc>
5804 </method>
5805
5806 <method name="onUSBControllerChange">
5807 <desc>
5808 Notification when a property of the virtual
5809 <link to="IMachine::USBController">USB controller</link> changes.
5810 Interested callees should use IUSBController methods and attributes to
5811 find out what has changed.
5812 </desc>
5813 </method>
5814
5815 <method name="onUSBDeviceStateChange">
5816 <desc>
5817 Notification when a USB device is attached to or detached from
5818 the virtual USB controller.
5819
5820 This notification is sent as a result of the indirect
5821 request to attach the device because it matches one of the
5822 machine USB filters, or as a result of the direct request
5823 issued by <link to="IConsole::attachUSBDevice"/> or
5824 <link to="IConsole::detachUSBDevice"/>.
5825
5826 This notification is sent in case of both a succeeded and a
5827 failed request completion. When the request succeeds, the
5828 @a error parameter is @c null, and the given device has been
5829 already added to (when @a attached is @c true) or removed from
5830 (when @a attached is @c false) the collection represented by
5831 <link to="IConsole::USBDevices"/>. On failure, the collection
5832 doesn't change and the @a error parameter represents the error
5833 message describing the failure.
5834
5835 </desc>
5836 <param name="device" type="IUSBDevice" dir="in">
5837 <desc>Device that is subject to state change.</desc>
5838 </param>
5839 <param name="attached" type="boolean" dir="in">
5840 <desc>
5841 @c true if the device was attached and @c false otherwise.
5842 </desc>
5843 </param>
5844 <param name="error" type="IVirtualBoxErrorInfo" dir="in">
5845 <desc>
5846 @c null on success or an error message object on failure.
5847 </desc>
5848 </param>
5849 </method>
5850
5851 <method name="onSharedFolderChange">
5852 <desc>
5853 Notification when a shared folder is added or removed.
5854 The @a scope argument defines one of three scopes:
5855 <link to="IVirtualBox::sharedFolders">global shared folders</link>
5856 (<link to="Scope_Global">Global</link>),
5857 <link to="IMachine::sharedFolders">permanent shared folders</link> of
5858 the machine (<link to="Scope_Machine">Machine</link>) or <link
5859 to="IConsole::sharedFolders">transient shared folders</link> of the
5860 machine (<link to="Scope_Session">Session</link>). Interested callees
5861 should use query the corresponding collections to find out what has
5862 changed.
5863 </desc>
5864 <param name="scope" type="Scope" dir="in">
5865 <desc>Scope of the notification.</desc>
5866 </param>
5867 </method>
5868
5869 <method name="onRuntimeError">
5870 <desc>
5871 Notification when an error happens during the virtual
5872 machine execution.
5873
5874 There are three kinds of runtime errors:
5875 <ul>
5876 <li><i>fatal</i></li>
5877 <li><i>non-fatal with retry</i></li>
5878 <li><i>non-fatal warnings</i></li>
5879 </ul>
5880
5881 <b>Fatal</b> errors are indicated by the @a fatal parameter set
5882 to @c true. In case of fatal errors, the virtual machine
5883 execution is always paused before calling this notification, and
5884 the notification handler is supposed either to immediately save
5885 the virtual machine state using <link to="IConsole::saveState"/>
5886 or power it off using <link to="IConsole::powerDown"/>.
5887 Resuming the execution can lead to unpredictable results.
5888
5889 <b>Non-fatal</b> errors and warnings are indicated by the
5890 @a fatal parameter set to @c false. If the virtual machine
5891 is in the Paused state by the time the error notification is
5892 received, it means that the user can <i>try to resume</i> the machine
5893 execution after attempting to solve the problem that caused the
5894 error. In this case, the notification handler is supposed
5895 to show an appropriate message to the user (depending on the
5896 value of the @a id parameter) that offers several actions such
5897 as <i>Retry</i>, <i>Save</i> or <i>Power Off</i>. If the user
5898 wants to retry, the notification handler should continue
5899 the machine execution using the <link to="IConsole::resume"/>
5900 call. If the machine execution is not Paused during this
5901 notification, then it means this notification is a <i>warning</i>
5902 (for example, about a fatal condition that can happen very soon);
5903 no immediate action is required from the user, the machine
5904 continues its normal execution.
5905
5906 Note that in either case the notification handler
5907 <b>must not</b> perform any action directly on a thread
5908 where this notification is called. Everything it is allowed to
5909 do is to post a message to another thread that will then talk
5910 to the user and take the corresponding action.
5911
5912 Currently, the following error identifiers are known:
5913 <ul>
5914 <li><tt>"HostMemoryLow"</tt></li>
5915 <li><tt>"HostAudioNotResponding"</tt></li>
5916 <li><tt>"VDIStorageFull"</tt></li>
5917 </ul>
5918
5919 <note>
5920 This notification is not designed to be implemented by
5921 more than one callback at a time. If you have multiple
5922 IConsoleCallback instances registered on the given
5923 IConsole object, make sure you simply do nothing but
5924 return @c S_OK from all but one of them that does actual
5925 user notification and performs necessary actions.
5926 </note>
5927
5928 </desc>
5929 <param name="fatal" type="boolean" dir="in">
5930 <desc>Whether the error is fatal or not</desc>
5931 </param>
5932 <param name="id" type="wstring" dir="in">
5933 <desc>Error identifier</desc>
5934 </param>
5935 <param name="message" type="wstring" dir="in">
5936 <desc>Optional error message</desc>
5937 </param>
5938 </method>
5939
5940 <method name="onCanShowWindow">
5941 <desc>
5942 Notification when a call to
5943 <link to="IMachine::canShowConsoleWindow"/> is made by a
5944 front-end to check if a subsequent call to
5945 <link to="IMachine::showConsoleWindow"/> can succeed.
5946
5947 The callee should give an answer appropriate to the current
5948 machine state in the @a canShow argument. This answer must
5949 remain valid at least until the next
5950 <link to="IConsole::state">machine state</link> change.
5951
5952 <note>
5953 This notification is not designed to be implemented by
5954 more than one callback at a time. If you have multiple
5955 IConsoleCallback instances registered on the given
5956 IConsole object, make sure you simply do nothing but
5957 return @c true and @c S_OK from all but one of them that
5958 actually manages console window activation.
5959 </note>
5960 </desc>
5961 <param name="canShow" type="boolean" dir="return">
5962 <desc>
5963 @c true if the console window can be shown and @c false otherwise.
5964 </desc>
5965 </param>
5966 </method>
5967
5968 <method name="onShowWindow">
5969 <desc>
5970 Notification when a call to
5971 <link to="IMachine::showConsoleWindow"/>
5972 requests the console window to be activated and brought to
5973 foreground on the desktop of the host PC.
5974
5975 This notification should cause the VM console process to
5976 perform the requested action as described above. If it is
5977 impossible to do it at a time of this notification, this
5978 method should return a failure.
5979
5980 Note that many modern window managers on many platforms
5981 implement some sort of focus stealing prevention logic, so
5982 that it may be impossible to activate a window without the
5983 help of the currently active application (which is supposedly
5984 an initiator of this notification). In this case, this method
5985 must return a non-zero identifier that represents the
5986 top-level window of the VM console process. The caller, if it
5987 represents a currently active process, is responsible to use
5988 this identifier (in a platform-dependent manner) to perform
5989 actual window activation.
5990
5991 This method must set @a winId to zero if it has performed all
5992 actions necessary to complete the request and the console
5993 window is now active and in foreground, to indicate that no
5994 further action is required on the caller's side.
5995
5996 <note>
5997 This notification is not designed to be implemented by
5998 more than one callback at a time. If you have multiple
5999 IConsoleCallback instances registered on the given
6000 IConsole object, make sure you simply do nothing but
6001 return @c S_OK from all but one of them that actually
6002 manages console window activation.
6003 </note>
6004 </desc>
6005 <param name="winId" type="unsigned long long" dir="return">
6006 <desc>
6007 Platform-dependent identifier of the top-level VM console
6008 window, or zero if this method has performed all actions
6009 necessary to implement the <i>show window</i> semantics for
6010 the given platform and/or this VirtualBox front-end.
6011 </desc>
6012 </param>
6013 </method>
6014
6015 </interface>
6016
6017 <interface
6018 name="IRemoteDisplayInfo" extends="$unknown"
6019 uuid="550104cd-2dfd-4a6c-857d-f6f8e088e62c"
6020 wsmap="struct"
6021 >
6022 <desc>
6023 Contains information about the remote display (VRDP) capabilities and status.
6024 This is used in the <link to="IConsole::remoteDisplayInfo" /> attribute.
6025 </desc>
6026
6027 <attribute name="active" type="boolean" readonly="yes">
6028 <desc>
6029 Whether the remote display connection is active.
6030 </desc>
6031 </attribute>
6032
6033 <attribute name="numberOfClients" type="unsigned long" readonly="yes">
6034 <desc>
6035 How many times a client connected.
6036 </desc>
6037 </attribute>
6038
6039 <attribute name="beginTime" type="long long" readonly="yes">
6040 <desc>
6041 When the last connection was established, in milliseconds since 1970-01-01 UTC.
6042 </desc>
6043 </attribute>
6044
6045 <attribute name="endTime" type="long long" readonly="yes">
6046 <desc>
6047 When the last connection was terminated or the current time, if
6048 connection is still active, in milliseconds since 1970-01-01 UTC.
6049 </desc>
6050 </attribute>
6051
6052 <attribute name="bytesSent" type="unsigned long long" readonly="yes">
6053 <desc>
6054 How many bytes were sent in last or current, if still active, connection.
6055 </desc>
6056 </attribute>
6057
6058 <attribute name="bytesSentTotal" type="unsigned long long" readonly="yes">
6059 <desc>
6060 How many bytes were sent in all connections.
6061 </desc>
6062 </attribute>
6063
6064 <attribute name="bytesReceived" type="unsigned long long" readonly="yes">
6065 <desc>
6066 How many bytes were received in last or current, if still active, connection.
6067 </desc>
6068 </attribute>
6069
6070 <attribute name="bytesReceivedTotal" type="unsigned long long" readonly="yes">
6071 <desc>
6072 How many bytes were received in all connections.
6073 </desc>
6074 </attribute>
6075
6076 <attribute name="user" type="wstring" readonly="yes">
6077 <desc>
6078 Login user name supplied by the client.
6079 </desc>
6080 </attribute>
6081
6082 <attribute name="domain" type="wstring" readonly="yes">
6083 <desc>
6084 Login domain name supplied by the client.
6085 </desc>
6086 </attribute>
6087
6088 <attribute name="clientName" type="wstring" readonly="yes">
6089 <desc>
6090 The client name supplied by the client.
6091 </desc>
6092 </attribute>
6093
6094 <attribute name="clientIP" type="wstring" readonly="yes">
6095 <desc>
6096 The IP address of the client.
6097 </desc>
6098 </attribute>
6099
6100 <attribute name="clientVersion" type="unsigned long" readonly="yes">
6101 <desc>
6102 The client software version number.
6103 </desc>
6104 </attribute>
6105
6106 <attribute name="encryptionStyle" type="unsigned long" readonly="yes">
6107 <desc>
6108 Public key exchange method used when connection was established.
6109 Values: 0 - RDP4 public key exchange scheme.
6110 1 - X509 certificates were sent to client.
6111 </desc>
6112 </attribute>
6113
6114 </interface>
6115
6116 <interface
6117 name="IConsole" extends="$unknown"
6118 uuid="0a51994b-cbc6-4686-94eb-d4e4023280e2"
6119 wsmap="managed"
6120 >
6121 <desc>
6122 The IConsole interface represents an interface to control virtual
6123 machine execution.
6124
6125 The console object that implements the IConsole interface is obtained
6126 from a session object after the session for the given machine has been
6127 opened using one of <link to="IVirtualBox::openSession"/>,
6128 <link to="IVirtualBox::openRemoteSession"/> or
6129 <link to="IVirtualBox::openExistingSession"/> methods.
6130
6131 Methods of the IConsole interface allow the caller to query the current
6132 virtual machine execution state, pause the machine or power it down, save
6133 the machine state or take a snapshot, attach and detach removable media
6134 and so on.
6135
6136 <see>ISession</see>
6137 </desc>
6138
6139 <attribute name="machine" type="IMachine" readonly="yes">
6140 <desc>
6141 Machine object this console is sessioned with.
6142 <note>
6143 This is a convenience property, it has the same value as
6144 <link to="ISession::machine"/> of the corresponding session
6145 object.
6146 </note>
6147 </desc>
6148 </attribute>
6149
6150 <attribute name="state" type="MachineState" readonly="yes">
6151 <desc>
6152 Current execution state of the machine.
6153 <note>
6154 This property always returns the same value as the corresponding
6155 property of the IMachine object this console is sessioned with.
6156 For the process that owns (executes) the VM, this is the
6157 preferable way of querying the VM state, because no IPC
6158 calls are made.
6159 </note>
6160 </desc>
6161 </attribute>
6162
6163 <attribute name="guest" type="IGuest" readonly="yes">
6164 <desc>Guest object.</desc>
6165 </attribute>
6166
6167 <attribute name="keyboard" type="IKeyboard" readonly="yes">
6168 <desc>
6169 Virtual keyboard object.
6170 <note>
6171 If the machine is not running, any attempt to use
6172 the returned object will result in an error.
6173 </note>
6174 </desc>
6175 </attribute>
6176
6177 <attribute name="mouse" type="IMouse" readonly="yes">
6178 <desc>
6179 Virtual mouse object.
6180 <note>
6181 If the machine is not running, any attempt to use
6182 the returned object will result in an error.
6183 </note>
6184 </desc>
6185 </attribute>
6186
6187 <attribute name="display" type="IDisplay" readonly="yes">
6188 <desc>Virtual display object.
6189 <note>
6190 If the machine is not running, any attempt to use
6191 the returned object will result in an error.
6192 </note>
6193 </desc>
6194 </attribute>
6195
6196 <attribute name="debugger" type="IMachineDebugger" readonly="yes">
6197 <desc>Debugging interface.</desc>
6198 </attribute>
6199
6200 <attribute name="USBDevices" type="IUSBDevice" readonly="yes" safearray="yes">
6201 <desc>
6202 Collection of USB devices currently attached to the virtual
6203 USB controller.
6204 <note>
6205 The collection is empty if the machine is not running.
6206 </note>
6207 </desc>
6208 </attribute>
6209
6210 <attribute name="remoteUSBDevices" type="IHostUSBDevice" readonly="yes" safearray="yes">
6211 <desc>
6212 List of USB devices currently attached to the remote VRDP client.
6213 Once a new device is physically attached to the remote host computer,
6214 it appears in this list and remains there until detached.
6215 </desc>
6216 </attribute>
6217
6218 <attribute name="sharedFolders" type="ISharedFolder" readonly="yes" safearray="yes">
6219 <desc>
6220 Collection of shared folders for the current session. These folders
6221 are called transient shared folders because they are available to the
6222 guest OS running inside the associated virtual machine only for the
6223 duration of the session (as opposed to
6224 <link to="IMachine::sharedFolders"/> which represent permanent shared
6225 folders). When the session is closed (e.g. the machine is powered down),
6226 these folders are automatically discarded.
6227
6228 New shared folders are added to the collection using
6229 <link to="#createSharedFolder"/>. Existing shared folders can be
6230 removed using <link to="#removeSharedFolder"/>.
6231 </desc>
6232 </attribute>
6233
6234 <attribute name="remoteDisplayInfo" type="IRemoteDisplayInfo" readonly="yes">
6235 <desc>
6236 Interface that provides information on Remote Display (VRDP) connection.
6237 </desc>
6238 </attribute>
6239
6240 <method name="powerUp">
6241 <desc>
6242 Starts the virtual machine execution using the current machine
6243 state (that is, its current execution state, current settings and
6244 current hard disks).
6245
6246 If the machine is powered off or aborted, the execution will
6247 start from the beginning (as if the real hardware were just
6248 powered on).
6249
6250 If the machine is in the <link to="MachineState_Saved"/> state,
6251 it will continue its execution the point where the state has
6252 been saved.
6253
6254 <note>
6255 Unless you are trying to write a new VirtualBox front-end that
6256 performs direct machine execution (like the VirtualBox or VBoxSDL
6257 front-ends), don't call <link to="IConsole::powerUp"/> in a direct
6258 session opened by <link to="IVirtualBox::openSession"/> and use this
6259 session only to change virtual machine settings. If you simply want to
6260 start virtual machine execution using one of the existing front-ends
6261 (for example the VirtualBox GUI or headless server), simply use
6262 <link to="IVirtualBox::openRemoteSession"/>; these front-ends will
6263 power up the machine automatically for you.
6264 </note>
6265
6266 <see>#saveState</see>
6267 <result name="VBOX_E_INVALID_VM_STATE">
6268 Virtual machine already running.
6269 </result>
6270 <result name="VBOX_E_HOST_ERROR">
6271 Host interface does not exist or name not set.
6272 </result>
6273 <result name="VBOX_E_FILE_ERROR">
6274 Invalid saved state file.
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="powerUpPaused">
6283 <desc>
6284 Identical to powerUp except that the VM will enter the
6285 <link to="MachineState_Paused"/> state, instead of
6286 <link to="MachineState_Running"/>.
6287
6288 <see>#powerUp</see>
6289 <result name="VBOX_E_INVALID_VM_STATE">
6290 Virtual machine already running.
6291 </result>
6292 <result name="VBOX_E_HOST_ERROR">
6293 Host interface does not exist or name not set.
6294 </result>
6295 <result name="VBOX_E_FILE_ERROR">
6296 Invalid saved state file.
6297 </result>
6298 </desc>
6299 <param name="progress" type="IProgress" dir="return">
6300 <desc>Progress object to track the operation completion.</desc>
6301 </param>
6302 </method>
6303
6304 <method name="powerDown">
6305 <desc>
6306 Initiates the power down procedure to stop the virtual machine
6307 execution.
6308
6309 The completion of the power down procedure is tracked using the returned
6310 IProgress object. After the operation is complete, the machine will go
6311 to the PoweredOff state.
6312 <result name="VBOX_E_INVALID_VM_STATE">
6313 Virtual machine must be Running, Paused or Stuck to be powered down.
6314 </result>
6315 </desc>
6316 <param name="progress" type="IProgress" dir="return">
6317 <desc>Progress object to track the operation completion.</desc>
6318 </param>
6319 </method>
6320
6321 <method name="reset">
6322 <desc>Resets the virtual machine.
6323 <result name="VBOX_E_INVALID_VM_STATE">
6324 Virtual machine not in Running state.
6325 </result>
6326 <result name="VBOX_E_VM_ERROR">
6327 Virtual machine error in reset operation.
6328 </result>
6329 </desc>
6330 </method>
6331
6332 <method name="pause">
6333 <desc>Pauses the virtual machine execution.
6334 <result name="VBOX_E_INVALID_VM_STATE">
6335 Virtual machine not in Running state.
6336 </result>
6337 <result name="VBOX_E_VM_ERROR">
6338 Virtual machine error in suspend operation.
6339 </result>
6340 </desc>
6341 </method>
6342
6343 <method name="resume">
6344 <desc>Resumes the virtual machine execution.
6345 <result name="VBOX_E_INVALID_VM_STATE">
6346 Virtual machine not in Paused state.
6347 </result>
6348 <result name="VBOX_E_VM_ERROR">
6349 Virtual machine error in resume operation.
6350 </result>
6351 </desc>
6352 </method>
6353
6354 <method name="powerButton">
6355 <desc>Sends the ACPI power button event to the guest.
6356 <result name="VBOX_E_INVALID_VM_STATE">
6357 Virtual machine not in Running state.
6358 </result>
6359 <result name="VBOX_E_PDM_ERROR">
6360 Controlled power off failed.
6361 </result>
6362 </desc>
6363 </method>
6364
6365 <method name="sleepButton">
6366 <desc>Sends the ACPI sleep button event to the guest.
6367 <result name="VBOX_E_INVALID_VM_STATE">
6368 Virtual machine not in Running state.
6369 </result>
6370 <result name="VBOX_E_PDM_ERROR">
6371 Sending sleep button event failed.
6372 </result>
6373 </desc>
6374 </method>
6375
6376 <method name="getPowerButtonHandled">
6377 <desc>Checks if the last power button event was handled by guest.
6378 <result name="VBOX_E_PDM_ERROR">
6379 Checking if the event was handled by the guest OS failed.
6380 </result>
6381 </desc>
6382 <param name="handled" type="boolean" dir="return"/>
6383 </method>
6384
6385 <method name="getGuestEnteredACPIMode">
6386 <desc>Checks if the guest entered the ACPI mode G0 (working) or
6387 G1 (sleeping). If this method returns @c false, the guest will
6388 most likely not respond to external ACPI events.
6389 <result name="VBOX_E_INVALID_VM_STATE">
6390 Virtual machine not in Running state.
6391 </result>
6392 </desc>
6393 <param name="entered" type="boolean" dir="return"/>
6394 </method>
6395
6396 <method name="saveState">
6397 <desc>
6398 Saves the current execution state of a running virtual machine
6399 and stops its execution.
6400
6401 After this operation completes, the machine will go to the
6402 Saved state. Next time it is powered up, this state will
6403 be restored and the machine will continue its execution from
6404 the place where it was saved.
6405
6406 This operation differs from taking a snapshot to the effect
6407 that it doesn't create new differencing hard disks. Also, once
6408 the machine is powered up from the state saved using this method,
6409 the saved state is deleted, so it will be impossible to return
6410 to this state later.
6411
6412 <note>
6413 On success, this method implicitly calls
6414 <link to="IMachine::saveSettings"/> to save all current machine
6415 settings (including runtime changes to the DVD drive, etc.).
6416 Together with the impossibility to change any VM settings when it is
6417 in the Saved state, this guarantees adequate hardware
6418 configuration of the machine when it is restored from the saved
6419 state file.
6420 </note>
6421
6422 <note>
6423 The machine must be in the Running or Paused state, otherwise
6424 the operation will fail.
6425 </note>
6426 <result name="VBOX_E_INVALID_VM_STATE">
6427 Virtual machine state neither Running nor Paused.
6428 </result>
6429 <result name="VBOX_E_FILE_ERROR">
6430 Failed to create directory for saved state file.
6431 </result>
6432
6433 <see><link to="#takeSnapshot"/></see>
6434 </desc>
6435 <param name="progress" type="IProgress" dir="return">
6436 <desc>Progress object to track the operation completion.</desc>
6437 </param>
6438 </method>
6439
6440 <method name="adoptSavedState">
6441 <desc>
6442 Associates the given saved state file to the virtual machine.
6443
6444 On success, the machine will go to the Saved state. Next time it is
6445 powered up, it will be restored from the adopted saved state and
6446 continue execution from the place where the saved state file was
6447 created.
6448
6449 The specified saved state file path may be absolute or relative to the
6450 folder the VM normally saves the state to (usually,
6451 <link to="IMachine::snapshotFolder"/>).
6452
6453 <note>
6454 It's a caller's responsibility to make sure the given saved state
6455 file is compatible with the settings of this virtual machine that
6456 represent its virtual hardware (memory size, hard disk configuration
6457 etc.). If there is a mismatch, the behavior of the virtual machine
6458 is undefined.
6459 </note>
6460 <result name="VBOX_E_INVALID_VM_STATE">
6461 Virtual machine state neither PoweredOff nor Aborted.
6462 </result>
6463 </desc>
6464 <param name="savedStateFile" type="wstring" dir="in">
6465 <desc>Path to the saved state file to adopt.</desc>
6466 </param>
6467 </method>
6468
6469 <method name="forgetSavedState">
6470 <desc>
6471 Forgets the saved state of the virtual machine previously created
6472 by <link to="#saveState"/>. Next time the machine is powered up, a
6473 clean boot will occur. If @a remove is @c true the saved state file
6474 is deleted.
6475 <note>
6476 This operation is equivalent to resetting or powering off
6477 the machine without doing a proper shutdown in the guest OS.
6478 </note>
6479 <result name="VBOX_E_INVALID_VM_STATE">
6480 Virtual machine not in state Saved.
6481 </result>
6482 </desc>
6483 <param name="remove" type="boolean" dir="in">
6484 <desc>If @c true remove the saved state file.</desc>
6485 </param>
6486 </method>
6487
6488 <method name="getDeviceActivity">
6489 <desc>
6490 Gets the current activity type of a given device or device group.
6491 <result name="E_INVALIDARG">
6492 Invalid device type.
6493 </result>
6494 </desc>
6495 <param name="type" type="DeviceType" dir="in"/>
6496 <param name="activity" type="DeviceActivity" dir="return"/>
6497 </method>
6498
6499 <method name="attachUSBDevice">
6500 <desc>
6501 Attaches a host USB device with the given UUID to the
6502 USB controller of the virtual machine.
6503
6504 The device needs to be in one of the following states:
6505 <link to="USBDeviceState_Busy"/>,
6506 <link to="USBDeviceState_Available"/> or
6507 <link to="USBDeviceState_Held"/>,
6508 otherwise an error is immediately returned.
6509
6510 When the device state is
6511 <link to="USBDeviceState_Busy">Busy</link>, an error may also
6512 be returned if the host computer refuses to release it for some reason.
6513
6514 <see>IUSBController::deviceFilters, USBDeviceState</see>
6515 <result name="VBOX_E_INVALID_VM_STATE">
6516 Virtual machine state neither Running nor Paused.
6517 </result>
6518 <result name="VBOX_E_PDM_ERROR">
6519 Virtual machine does not have a USB controller.
6520 </result>
6521 </desc>
6522 <param name="id" type="wstring" dir="in">
6523 <desc>UUID of the host USB device to attach.</desc>
6524 </param>
6525 </method>
6526
6527 <method name="detachUSBDevice">
6528 <desc>
6529 Detaches an USB device with the given UUID from the USB controller
6530 of the virtual machine.
6531
6532 After this method succeeds, the VirtualBox server re-initiates
6533 all USB filters as if the device were just physically attached
6534 to the host, but filters of this machine are ignored to avoid
6535 a possible automatic re-attachment.
6536
6537 <see>IUSBController::deviceFilters, USBDeviceState</see>
6538
6539 <result name="VBOX_E_PDM_ERROR">
6540 Virtual machine does not have a USB controller.
6541 </result>
6542 <result name="E_INVALIDARG">
6543 USB device not attached to this virtual machine.
6544 </result>
6545 </desc>
6546 <param name="id" type="wstring" dir="in">
6547 <desc>UUID of the USB device to detach.</desc>
6548 </param>
6549 <param name="device" type="IUSBDevice" dir="return">
6550 <desc>Detached USB device.</desc>
6551 </param>
6552 </method>
6553
6554 <method name="findUSBDeviceByAddress">
6555 <desc>
6556 Searches for a USB device with the given host address.
6557
6558 <result name="VBOX_E_OBJECT_NOT_FOUND">
6559 Given @c name does not correspond to any USB device.
6560 </result>
6561
6562 <see>IUSBDevice::address</see>
6563 </desc>
6564 <param name="name" type="wstring" dir="in">
6565 <desc>
6566 Address of the USB device (as assigned by the host) to
6567 search for.
6568 </desc>
6569 </param>
6570 <param name="device" type="IUSBDevice" dir="return">
6571 <desc>Found USB device object.</desc>
6572 </param>
6573 </method>
6574
6575 <method name="findUSBDeviceById">
6576 <desc>
6577 Searches for a USB device with the given UUID.
6578
6579 <result name="VBOX_E_OBJECT_NOT_FOUND">
6580 Given @c id does not correspond to any USB device.
6581 </result>
6582
6583 <see>IUSBDevice::id</see>
6584 </desc>
6585 <param name="id" type="wstring" dir="in">
6586 <desc>UUID of the USB device to search for.</desc>
6587 </param>
6588 <param name="device" type="IUSBDevice" dir="return">
6589 <desc>Found USB device object.</desc>
6590 </param>
6591 </method>
6592
6593 <method name="createSharedFolder">
6594 <desc>
6595 Creates a transient new shared folder by associating the given logical
6596 name with the given host path, adds it to the collection of shared
6597 folders and starts sharing it. Refer to the description of
6598 <link to="ISharedFolder"/> to read more about logical names.
6599
6600 <result name="VBOX_E_INVALID_VM_STATE">
6601 Virtual machine in Saved state or currently changing state.
6602 </result>
6603 <result name="VBOX_E_FILE_ERROR">
6604 Shared folder already exists or not accessible.
6605 </result>
6606 </desc>
6607 <param name="name" type="wstring" dir="in">
6608 <desc>Unique logical name of the shared folder.</desc>
6609 </param>
6610 <param name="hostPath" type="wstring" dir="in">
6611 <desc>Full path to the shared folder in the host file system.</desc>
6612 </param>
6613 <param name="writable" type="boolean" dir="in">
6614 <desc>Whether the share is writable or readonly</desc>
6615 </param>
6616 </method>
6617
6618 <method name="removeSharedFolder">
6619 <desc>
6620 Removes a transient shared folder with the given name previously
6621 created by <link to="#createSharedFolder"/> from the collection of
6622 shared folders and stops sharing it.
6623 <result name="VBOX_E_INVALID_VM_STATE">
6624 Virtual machine in Saved state or currently changing state.
6625 </result>
6626 <result name="VBOX_E_FILE_ERROR">
6627 Shared folder does not exists.
6628 </result>
6629 </desc>
6630 <param name="name" type="wstring" dir="in">
6631 <desc>Logical name of the shared folder to remove.</desc>
6632 </param>
6633 </method>
6634
6635 <method name="takeSnapshot">
6636 <desc>
6637 Saves the current execution state and all settings of the
6638 machine and creates differencing images for all
6639 normal (non-independent) hard disks.
6640
6641 This method can be called for a PoweredOff, Saved, Running or
6642 Paused virtual machine. When the machine is PoweredOff, an
6643 offline <link to="ISnapshot">snapshot</link> is created,
6644 in all other cases -- an online snapshot.
6645
6646 The taken snapshot is always based on the
6647 <link to="IMachine::currentSnapshot">current
6648 snapshot</link> of the associated virtual machine and becomes
6649 a new current snapshot.
6650
6651 <note>
6652 This method implicitly calls <link to="IMachine::saveSettings"/> to
6653 save all current machine settings before taking an offline snapshot.
6654 </note>
6655
6656 <see>ISnapshot, <link to="#saveState"/></see>
6657 <result name="VBOX_E_INVALID_VM_STATE">
6658 Virtual machine currently changing state.
6659 </result>
6660 </desc>
6661 <param name="name" type="wstring" dir="in">
6662 <desc>Short name for the snapshot.</desc>
6663 </param>
6664 <param name="description" type="wstring" dir="in">
6665 <desc>Optional description of the snapshot.</desc>
6666 </param>
6667 <param name="progress" type="IProgress" dir="return">
6668 <desc>Progress object to track the operation completion.</desc>
6669 </param>
6670 </method>
6671
6672 <method name="discardSnapshot">
6673 <desc>
6674
6675 Starts discarding the specified snapshot. The execution state
6676 and settings of the associated machine stored in the snapshot
6677 will be deleted. The contents of all differencing hard disks of
6678 this snapshot will be merged with the contents of their
6679 dependent child hard disks to keep the, disks valid (in other
6680 words, all changes represented by hard disks being discarded
6681 will be propagated to their child hard disks). After that, this
6682 snapshot's differencing hard disks will be deleted. The parent
6683 of this snapshot will become a new parent for all its child
6684 snapshots.
6685
6686 If the discarded snapshot is the current one, its parent
6687 snapshot will become a new current snapshot. The current machine
6688 state is not directly affected in this case, except that
6689 currently attached differencing hard disks based on hard disks
6690 of the discarded snapshot will be also merged as described
6691 above.
6692
6693 If the discarded snapshot is the first one (the root snapshot)
6694 and it has exactly one child snapshot, this child snapshot will
6695 become the first snapshot after discarding. If there are no
6696 children at all (i.e. the first snapshot is the only snapshot of
6697 the machine), both the current and the first snapshot of the
6698 machine will be set to @c null. In all other cases, the first
6699 snapshot cannot be discarded.
6700
6701 You cannot discard the snapshot if it
6702 stores <link to="HardDiskType_Normal">normal</link> (non-differencing)
6703 hard disks that have differencing hard disks based on them. Snapshots of
6704 such kind can be discarded only when every normal hard disk has either
6705 no children at all or exactly one child. In the former case, the normal
6706 hard disk simply becomes unused (i.e. not attached to any VM). In the
6707 latter case, it receives all the changes stored in the child hard disk,
6708 and then it replaces the child hard disk in the configuration of the
6709 corresponding snapshot or machine.
6710
6711 Also, you cannot discard the snapshot if it stores hard disks
6712 (of any type) having differencing child hard disks that belong
6713 to other machines. Such snapshots can be only discarded after
6714 you discard all snapshots of other machines containing "foreign"
6715 child disks, or detach these "foreign" child disks from machines
6716 they are attached to.
6717
6718 One particular example of the snapshot storing normal hard disks
6719 is the first snapshot of a virtual machine that had normal hard
6720 disks attached when taking the snapshot. Be careful when
6721 discarding such snapshots because this implicitly commits
6722 changes (made since the snapshot being discarded has been taken)
6723 to normal hard disks (as described above), which may be not what
6724 you want.
6725
6726 The virtual machine is put to
6727 the <link to="MachineState_Discarding">Discarding</link> state until
6728 the discard operation is completed.
6729
6730 <note>
6731 The machine must not be running, otherwise the operation
6732 will fail.
6733 </note>
6734
6735 <note>
6736 Child hard disks of all normal hard disks of the discarded snapshot
6737 must be accessible (see <link to="IMedium::state"/>) for this
6738 operation to succeed. In particular, this means that all virtual
6739 machines, whose hard disks are directly or indirectly based on the
6740 hard disks of discarded snapshot, must be powered off.
6741 </note>
6742 <note>
6743 Merging hard disk contents can be very time and disk space
6744 consuming, if these disks are big in size and have many
6745 children. However, if the snapshot being discarded is the last
6746 (head) snapshot on the branch, the operation will be rather
6747 quick.
6748 </note>
6749 <note>
6750 Note that discarding the current snapshot
6751 will implicitly call <link to="IMachine::saveSettings"/> to
6752 make all current machine settings permanent.
6753 </note>
6754 <result name="VBOX_E_INVALID_VM_STATE">
6755 Virtual machine is running.
6756 </result>
6757 </desc>
6758 <param name="id" type="wstring" dir="in">
6759 <desc>UUID of the snapshot to discard.</desc>
6760 </param>
6761 <param name="progress" type="IProgress" dir="return">
6762 <desc>Progress object to track the operation completion.</desc>
6763 </param>
6764 </method>
6765
6766 <method name="discardCurrentState">
6767 <desc>
6768 This operation is similar to <link to="IConsole::discardSnapshot"/> but
6769 affects the current machine state. This means that the state stored in
6770 the current snapshot will become a new current state, and all current
6771 settings of the machine and changes stored in differencing hard disks
6772 will be lost.
6773
6774 After this operation is successfully completed, new empty differencing
6775 hard disks are created for all normal hard disks of the machine.
6776
6777 If the current snapshot of the machine is an online snapshot, the
6778 machine will go to the <link to="MachineState_Saved"> saved
6779 state</link>, so that the next time it is powered on, the execution
6780 state will be restored from the current snapshot.
6781
6782 <note>
6783 The machine must not be running, otherwise the operation will fail.
6784 </note>
6785
6786 <note>
6787 If the machine state is <link to="MachineState_Saved">Saved</link>
6788 prior to this operation, the saved state file will be implicitly
6789 discarded (as if <link to="IConsole::forgetSavedState"/> were
6790 called).
6791 </note>
6792
6793 <result name="VBOX_E_INVALID_VM_STATE">
6794 Virtual machine is running.
6795 </result>
6796 </desc>
6797 <param name="progress" type="IProgress" dir="return">
6798 <desc>Progress object to track the operation completion.</desc>
6799 </param>
6800 </method>
6801
6802 <method name="discardCurrentSnapshotAndState">
6803 <desc>
6804
6805 This method is equivalent to
6806 doing <link to="IConsole::discardSnapshot">discardSnapshot</link>
6807 (currentSnapshot.id(), progress) followed by
6808 <link to="IConsole::discardCurrentState"/>.
6809
6810 As a result, the machine will be fully restored from the
6811 snapshot preceding the current snapshot, while both the current
6812 snapshot and the current machine state will be discarded.
6813
6814 If the current snapshot is the first snapshot of the machine (i.e. it
6815 has the only snapshot), the current machine state will be
6816 discarded <b>before</b> discarding the snapshot. In other words, the
6817 machine will be restored from its last snapshot, before discarding
6818 it. This differs from performing a single
6819 <link to="IConsole::discardSnapshot"/> call (note that no
6820 <link to="IConsole::discardCurrentState"/> will be possible after it)
6821 to the effect that the latter will preserve the current state instead of
6822 discarding it.
6823
6824 Unless explicitly mentioned otherwise, all remarks and
6825 limitations of the above two methods also apply to this method.
6826
6827 <note>
6828 The machine must not be running, otherwise the operation
6829 will fail.
6830 </note>
6831
6832 <note>
6833 If the machine state is <link to="MachineState_Saved">Saved</link>
6834 prior to this operation, the saved state file will be implicitly
6835 discarded (as if <link to="#forgetSavedState"/> were
6836 called).
6837 </note>
6838
6839 <note>
6840 This method is more efficient than calling both of the above
6841 methods separately: it requires less IPC calls and provides
6842 a single progress object.
6843 </note>
6844
6845 <result name="VBOX_E_INVALID_VM_STATE">
6846 Virtual machine is running.
6847 </result>
6848 </desc>
6849 <param name="progress" type="IProgress" dir="return">
6850 <desc>Progress object to track the operation completion.</desc>
6851 </param>
6852 </method>
6853
6854 <method name="registerCallback">
6855 <desc>
6856 Registers a new console callback on this instance. The methods of the
6857 callback interface will be called by this instance when the appropriate
6858 event occurs.
6859 </desc>
6860 <param name="callback" type="IConsoleCallback" dir="in"/>
6861 </method>
6862
6863 <method name="unregisterCallback">
6864 <desc>
6865 Unregisters the console callback previously registered using
6866 <link to="#registerCallback"/>.
6867 <result name="E_INVALIDARG">
6868 Given @a callback handler is not registered.
6869 </result>
6870 </desc>
6871 <param name="callback" type="IConsoleCallback" dir="in"/>
6872 </method>
6873 </interface>
6874
6875 <!--
6876 // IHost
6877 /////////////////////////////////////////////////////////////////////////
6878 -->
6879
6880 <interface
6881 name="IHostDVDDrive" extends="$unknown"
6882 uuid="21f86694-202d-4ce4-8b05-a63ff82dbf4c"
6883 wsmap="managed"
6884 >
6885 <desc>
6886 The IHostDVDDrive interface represents the physical CD/DVD drive
6887 hardware on the host. Used indirectly in <link to="IHost::DVDDrives"/>.
6888 </desc>
6889
6890 <attribute name="name" type="wstring" readonly="yes">
6891 <desc>
6892 Returns the platform-specific device identifier.
6893 On DOS-like platforms, it is a drive name (e.g. R:).
6894 On Unix-like platforms, it is a device name (e.g. /dev/hdc).
6895 </desc>
6896 </attribute>
6897 <attribute name="description" type="wstring" readonly="yes">
6898 <desc>
6899 Returns a human readable description for the drive. This
6900 description usually contains the product and vendor name. An
6901 empty string is returned if the description is not available.
6902 </desc>
6903 </attribute>
6904 <attribute name="udi" type="wstring" readonly="yes">
6905 <desc>
6906 Returns the unique device identifier for the drive. This
6907 attribute is reserved for future use instead of
6908 <link to="#name"/>. Currently it is not used and may return
6909 an empty string on some platforms.
6910 </desc>
6911 </attribute>
6912
6913 </interface>
6914
6915 <interface
6916 name="IHostFloppyDrive" extends="$unknown"
6917 uuid="3f02d604-e908-4919-9fd1-8a4afd68fc63"
6918 wsmap="managed"
6919 >
6920 <desc>
6921 The IHostFloppyDrive interface represents the physical floppy drive
6922 hardware on the host. Used indirectly in <link to="IHost::floppyDrives"/>.
6923 </desc>
6924 <attribute name="name" type="wstring" readonly="yes">
6925 <desc>
6926 Returns the platform-specific device identifier.
6927 On DOS-like platforms, it is a drive name (e.g. A:).
6928 On Unix-like platforms, it is a device name (e.g. /dev/fd0).
6929 </desc>
6930 </attribute>
6931 <attribute name="description" type="wstring" readonly="yes">
6932 <desc>
6933 Returns a human readable description for the drive. This
6934 description usually contains the product and vendor name. An
6935 empty string is returned if the description is not available.
6936 </desc>
6937 </attribute>
6938 <attribute name="udi" type="wstring" readonly="yes">
6939 <desc>
6940 Returns the unique device identifier for the drive. This
6941 attribute is reserved for future use instead of
6942 <link to="#name"/>. Currently it is not used and may return
6943 an empty string on some platforms.
6944 </desc>
6945 </attribute>
6946 </interface>
6947
6948 <enum
6949 name="HostNetworkInterfaceMediumType"
6950 uuid="1aa54aaf-2497-45a2-bfb1-8eb225e93d5b"
6951 >
6952 <desc>
6953 Type of encapsulation. Ethernet encapsulation includes both wired and
6954 wireless Ethernet connections.
6955 <see>IHostNetworkInterface</see>
6956 </desc>
6957
6958 <const name="Unknown" value="0">
6959 <desc>
6960 The type of interface cannot be determined.
6961 </desc>
6962 </const>
6963 <const name="Ethernet" value="1">
6964 <desc>
6965 Ethernet frame encapsulation.
6966 </desc>
6967 </const>
6968 <const name="PPP" value="2">
6969 <desc>
6970 Point-to-point protocol encapsulation.
6971 </desc>
6972 </const>
6973 <const name="SLIP" value="3">
6974 <desc>
6975 Serial line IP encapsulation.
6976 </desc>
6977 </const>
6978 </enum>
6979
6980 <enum
6981 name="HostNetworkInterfaceStatus"
6982 uuid="CC474A69-2710-434B-8D99-C38E5D5A6F41"
6983 >
6984 <desc>
6985 Current status of the interface.
6986 <see>IHostNetworkInterface</see>
6987 </desc>
6988
6989 <const name="Unknown" value="0">
6990 <desc>
6991 The state of interface cannot be determined.
6992 </desc>
6993 </const>
6994 <const name="Up" value="1">
6995 <desc>
6996 The interface is fully operational.
6997 </desc>
6998 </const>
6999 <const name="Down" value="2">
7000 <desc>
7001 The interface is not functioning.
7002 </desc>
7003 </const>
7004 </enum>
7005
7006 <enum
7007 name="HostNetworkInterfaceType"
7008 uuid="67431b00-9946-48a2-bc02-b25c5919f4f3"
7009 >
7010 <desc>
7011 Network interface type.
7012 </desc>
7013 <const name="Bridged" value="1"/>
7014 <const name="HostOnly" value="2"/>
7015 </enum>
7016
7017 <interface
7018 name="IHostNetworkInterface" extends="$unknown"
7019 uuid="ce6fae58-7642-4102-b5db-c9005c2320a8"
7020 wsmap="managed"
7021 >
7022 <desc>
7023 Represents one of host's network interfaces. IP V6 address and network
7024 mask are strings of 32 hexdecimal digits grouped by four. Groups are
7025 separated by colons.
7026 For example, fe80:0000:0000:0000:021e:c2ff:fed2:b030.
7027 </desc>
7028 <attribute name="name" type="wstring" readonly="yes">
7029 <desc>Returns the host network interface name.</desc>
7030 </attribute>
7031
7032 <attribute name="id" type="wstring" readonly="yes">
7033 <desc>Returns the interface UUID.</desc>
7034 </attribute>
7035
7036 <attribute name="networkName" type="wstring" readonly="yes">
7037 <desc>Returns the name of a virtual network the interface gets attached to.</desc>
7038 </attribute>
7039
7040 <attribute name="dhcpEnabled" type="boolean" readonly="yes">
7041 <desc>Specifies whether the DHCP is enabled for the interface.</desc>
7042 </attribute>
7043
7044 <attribute name="IPAddress" type="wstring" readonly="yes">
7045 <desc>Returns the IP V4 address of the interface.</desc>
7046 </attribute>
7047
7048 <attribute name="networkMask" type="wstring" readonly="yes">
7049 <desc>Returns the network mask of the interface.</desc>
7050 </attribute>
7051
7052 <attribute name="IPV6Supported" type="boolean" readonly="yes">
7053 <desc>Specifies whether the IP V6 is supported/enabled for the interface.</desc>
7054 </attribute>
7055
7056 <attribute name="IPV6Address" type="wstring" readonly="yes">
7057 <desc>Returns the IP V6 address of the interface.</desc>
7058 </attribute>
7059
7060 <attribute name="IPV6NetworkMaskPrefixLength" type="unsigned long" readonly="yes">
7061 <desc>Returns the length IP V6 network mask prefix of the interface.</desc>
7062 </attribute>
7063
7064 <attribute name="hardwareAddress" type="wstring" readonly="yes">
7065 <desc>Returns the hardware address. For Ethernet it is MAC address.</desc>
7066 </attribute>
7067
7068 <attribute name="mediumType" type="HostNetworkInterfaceMediumType" readonly="yes">
7069 <desc>Type of protocol encapsulation used.</desc>
7070 </attribute>
7071
7072 <attribute name="status" type="HostNetworkInterfaceStatus" readonly="yes">
7073 <desc>Status of the interface.</desc>
7074 </attribute>
7075
7076 <attribute name="interfaceType" type="HostNetworkInterfaceType" readonly="yes">
7077 <desc>specifies the host interface type.</desc>
7078 </attribute>
7079
7080 <method name="enableStaticIpConfig">
7081 <desc>sets and enables the static IP V4 configuration for the given interface.</desc>
7082 <param name="IPAddress" type="wstring" dir="in">
7083 <desc>
7084 IP address.
7085 </desc>
7086 </param>
7087 <param name="networkMask" type="wstring" dir="in">
7088 <desc>
7089 network mask.
7090 </desc>
7091 </param>
7092 </method>
7093
7094 <method name="enableStaticIpConfigV6">
7095 <desc>sets and enables the static IP V6 configuration for the given interface.</desc>
7096 <param name="IPV6Address" type="wstring" dir="in">
7097 <desc>
7098 IP address.
7099 </desc>
7100 </param>
7101 <param name="IPV6NetworkMaskPrefixLength" type="unsigned long" dir="in">
7102 <desc>
7103 network mask.
7104 </desc>
7105 </param>
7106 </method>
7107
7108 <method name="enableDynamicIpConfig">
7109 <desc>enables the dynamic IP configuration.</desc>
7110 </method>
7111
7112 <method name="dhcpRediscover">
7113 <desc>refreshes the IP configuration for dhcp-enabled interface.</desc>
7114 </method>
7115
7116 </interface>
7117
7118 <interface
7119 name="IHost" extends="$unknown"
7120 uuid="a13b5556-5c0b-4f80-9df6-6f804f3336a1"
7121 wsmap="managed"
7122 >
7123 <desc>
7124 The IHost interface represents the physical machine that this VirtualBox
7125 installation runs on.
7126
7127 An object implementing this interface is returned by the
7128 <link to="IVirtualBox::host" /> attribute. This interface contains
7129 read-only information about the host's physical hardware (such as what
7130 processors and disks are available, what the host operating system is,
7131 and so on) and also allows for manipulating some of the host's hardware,
7132 such as global USB device filters and host interface networking.
7133
7134 </desc>
7135 <attribute name="DVDDrives" type="IHostDVDDrive" readonly="yes" safearray="yes">
7136 <desc>List of DVD drives available on the host.</desc>
7137 </attribute>
7138
7139 <attribute name="floppyDrives" type="IHostFloppyDrive" readonly="yes" safearray="yes">
7140 <desc>List of floppy drives available on the host.</desc>
7141 </attribute>
7142
7143 <attribute name="USBDevices" type="IHostUSBDevice" readonly="yes" safearray="yes">
7144 <desc>
7145 List of USB devices currently attached to the host.
7146 Once a new device is physically attached to the host computer,
7147 it appears in this list and remains there until detached.
7148
7149 <note>
7150 If USB functionality is not available in the given edition of
7151 VirtualBox, this method will set the result code to @c E_NOTIMPL.
7152 </note>
7153 </desc>
7154 </attribute>
7155
7156 <attribute name="USBDeviceFilters" type="IHostUSBDeviceFilter" readonly="yes" safearray="yes">
7157 <desc>
7158 List of USB device filters in action.
7159 When a new device is physically attached to the host computer,
7160 filters from this list are applied to it (in order they are stored
7161 in the list). The first matched filter will determine the
7162 <link to="IHostUSBDeviceFilter::action">action</link>
7163 performed on the device.
7164
7165 Unless the device is ignored by these filters, filters of all
7166 currently running virtual machines
7167 (<link to="IUSBController::deviceFilters"/>) are applied to it.
7168
7169 <note>
7170 If USB functionality is not available in the given edition of
7171 VirtualBox, this method will set the result code to @c E_NOTIMPL.
7172 </note>
7173
7174 <see>IHostUSBDeviceFilter, USBDeviceState</see>
7175 </desc>
7176 </attribute>
7177
7178 <attribute name="networkInterfaces" type="IHostNetworkInterface" safearray="yes" readonly="yes">
7179 <desc>List of host network interfaces currently defined on the host.</desc>
7180 </attribute>
7181
7182 <attribute name="processorCount" type="unsigned long" readonly="yes">
7183 <desc>Number of (logical) CPUs installed in the host system.</desc>
7184 </attribute>
7185
7186 <attribute name="processorOnlineCount" type="unsigned long" readonly="yes">
7187 <desc>Number of (logical) CPUs online in the host system.</desc>
7188 </attribute>
7189
7190 <method name="getProcessorSpeed">
7191 <desc>Query the (approximate) maximum speed of a specified host CPU in
7192 Megahertz.
7193 </desc>
7194 <param name="cpuId" type="unsigned long" dir="in">
7195 <desc>
7196 Identifier of the CPU.
7197 </desc>
7198 </param>
7199 <param name="speed" type="unsigned long" dir="return">
7200 <desc>
7201 Speed value. 0 is returned if value is not known or @a cpuId is
7202 invalid.
7203 </desc>
7204 </param>
7205 </method>
7206
7207 <method name="getProcessorFeature">
7208 <desc>Query whether a CPU feature is supported or not.</desc>
7209 <param name="feature" type="ProcessorFeature" dir="in">
7210 <desc>
7211 CPU Feature identifier.
7212 </desc>
7213 </param>
7214 <param name="supported" type="boolean" dir="return">
7215 <desc>
7216 Feature is supported or not.
7217 </desc>
7218 </param>
7219 </method>
7220
7221 <method name="getProcessorDescription">
7222 <desc>Query the model string of a specified host CPU.
7223 <note>
7224 This function is not implemented in the current version of the
7225 product.
7226 </note>
7227 </desc>
7228 <param name="cpuId" type="unsigned long" dir="in">
7229 <desc>
7230 Identifier of the CPU.
7231 </desc>
7232 </param>
7233 <param name="description" type="wstring" dir="return">
7234 <desc>
7235 Model string. An empty string is returned if value is not known or
7236 @a cpuId is invalid.
7237 </desc>
7238 </param>
7239 </method>
7240
7241 <attribute name="memorySize" type="unsigned long" readonly="yes">
7242 <desc>Amount of system memory in megabytes installed in the host system.</desc>
7243 </attribute>
7244
7245 <attribute name="memoryAvailable" type="unsigned long" readonly="yes">
7246 <desc>Available system memory in the host system.</desc>
7247 </attribute>
7248
7249 <attribute name="operatingSystem" type="wstring" readonly="yes">
7250 <desc>Name of the host system's operating system.</desc>
7251 </attribute>
7252
7253 <attribute name="OSVersion" type="wstring" readonly="yes">
7254 <desc>Host operating system's version string.</desc>
7255 </attribute>
7256
7257 <attribute name="UTCTime" type="long long" readonly="yes">
7258 <desc>Returns the current host time in milliseconds since 1970-01-01 UTC.</desc>
7259 </attribute>
7260
7261 <attribute name="Acceleration3DAvailable" type="boolean" readonly="yes">
7262 <desc>Returns @c true when the host supports 3D hardware acceleration.</desc>
7263 </attribute>
7264
7265 <method name="createHostOnlyNetworkInterface">
7266 <desc>
7267 Creates a new adapter for Host Only Networking.
7268 <result name="E_INVALIDARG">
7269 Host network interface @a name already exists.
7270 </result>
7271 </desc>
7272 <param name="hostInterface" type="IHostNetworkInterface" dir="out">
7273 <desc>
7274 Created host interface object.
7275 </desc>
7276 </param>
7277 <param name="progress" type="IProgress" dir="return">
7278 <desc>
7279 Progress object to track the operation completion.
7280 </desc>
7281 </param>
7282 </method>
7283
7284 <method name="removeHostOnlyNetworkInterface">
7285 <desc>
7286 Removes the given Host Only Networking interface.
7287 <result name="VBOX_E_OBJECT_NOT_FOUND">
7288 No host network interface matching @a id found.
7289 </result>
7290 </desc>
7291 <param name="id" type="wstring" dir="in">
7292 <desc>
7293 Adapter GUID.
7294 </desc>
7295 </param>
7296 <param name="hostInterface" type="IHostNetworkInterface" dir="out">
7297 <desc>
7298 Removed host interface object.
7299 </desc>
7300 </param>
7301 <param name="progress" type="IProgress" dir="return">
7302 <desc>
7303 Progress object to track the operation completion.
7304 </desc>
7305 </param>
7306 </method>
7307
7308 <method name="createUSBDeviceFilter">
7309 <desc>
7310 Creates a new USB device filter. All attributes except
7311 the filter name are set to empty (any match),
7312 <i>active</i> is @c false (the filter is not active).
7313
7314 The created filter can be added to the list of filters using
7315 <link to="#insertUSBDeviceFilter"/>.
7316
7317 <see>#USBDeviceFilters</see>
7318 </desc>
7319 <param name="name" type="wstring" dir="in">
7320 <desc>
7321 Filter name. See <link to="IHostUSBDeviceFilter::name"/>
7322 for more info.
7323 </desc>
7324 </param>
7325 <param name="filter" type="IHostUSBDeviceFilter" dir="return">
7326 <desc>Created filter object.</desc>
7327 </param>
7328 </method>
7329
7330 <method name="insertUSBDeviceFilter">
7331 <desc>
7332 Inserts the given USB device to the specified position
7333 in the list of filters.
7334
7335 Positions are numbered starting from @c 0. If the specified
7336 position is equal to or greater than the number of elements in
7337 the list, the filter is added at the end of the collection.
7338
7339 <note>
7340 Duplicates are not allowed, so an attempt to insert a
7341 filter already in the list is an error.
7342 </note>
7343 <note>
7344 If USB functionality is not available in the given edition of
7345 VirtualBox, this method will set the result code to @c E_NOTIMPL.
7346 </note>
7347
7348 <see>#USBDeviceFilters</see>
7349
7350 <result name="VBOX_E_INVALID_OBJECT_STATE">
7351 USB device filter is not created within this VirtualBox instance.
7352 </result>
7353 <result name="E_INVALIDARG">
7354 USB device filter already in list.
7355 </result>
7356
7357 </desc>
7358 <param name="position" type="unsigned long" dir="in">
7359 <desc>Position to insert the filter to.</desc>
7360 </param>
7361 <param name="filter" type="IHostUSBDeviceFilter" dir="in">
7362 <desc>USB device filter to insert.</desc>
7363 </param>
7364 </method>
7365
7366 <method name="removeUSBDeviceFilter">
7367 <desc>
7368 Removes a USB device filter from the specified position in the
7369 list of filters.
7370
7371 Positions are numbered starting from @c 0. Specifying a
7372 position equal to or greater than the number of elements in
7373 the list will produce an error.
7374
7375 <note>
7376 If USB functionality is not available in the given edition of
7377 VirtualBox, this method will set the result code to @c E_NOTIMPL.
7378 </note>
7379
7380 <see>#USBDeviceFilters</see>
7381
7382 <result name="E_INVALIDARG">
7383 USB device filter list empty or invalid @a position.
7384 </result>
7385
7386 </desc>
7387 <param name="position" type="unsigned long" dir="in">
7388 <desc>Position to remove the filter from.</desc>
7389 </param>
7390 <param name="filter" type="IHostUSBDeviceFilter" dir="return">
7391 <desc>Removed USB device filter.</desc>
7392 </param>
7393 </method>
7394
7395 <method name="findHostDVDDrive">
7396 <desc>
7397 Searches for a host DVD drive with the given @c name.
7398
7399 <result name="VBOX_E_OBJECT_NOT_FOUND">
7400 Given @c name does not correspond to any host drive.
7401 </result>
7402
7403 </desc>
7404 <param name="name" type="wstring" dir="in">
7405 <desc>Name of the host drive to search for</desc>
7406 </param>
7407 <param name="drive" type="IHostDVDDrive" dir="return">
7408 <desc>Found host drive object</desc>
7409 </param>
7410 </method>
7411
7412 <method name="findHostFloppyDrive">
7413 <desc>
7414 Searches for a host floppy drive with the given @c name.
7415
7416 <result name="VBOX_E_OBJECT_NOT_FOUND">
7417 Given @c name does not correspond to any host floppy drive.
7418 </result>
7419
7420 </desc>
7421 <param name="name" type="wstring" dir="in">
7422 <desc>Name of the host floppy drive to search for</desc>
7423 </param>
7424 <param name="drive" type="IHostFloppyDrive" dir="return">
7425 <desc>Found host floppy drive object</desc>
7426 </param>
7427 </method>
7428
7429 <method name="findHostNetworkInterfaceByName">
7430 <desc>
7431 Searches through all host network interfaces for an interface with
7432 the given @c name.
7433 <note>
7434 The method returns an error if the given @c name does not
7435 correspond to any host network interface.
7436 </note>
7437 </desc>
7438 <param name="name" type="wstring" dir="in">
7439 <desc>Name of the host network interface to search for.</desc>
7440 </param>
7441 <param name="networkInterface" type="IHostNetworkInterface" dir="return">
7442 <desc>Found host network interface object.</desc>
7443 </param>
7444 </method>
7445 <method name="findHostNetworkInterfaceById">
7446 <desc>
7447 Searches through all host network interfaces for an interface with
7448 the given GUID.
7449 <note>
7450 The method returns an error if the given GUID does not
7451 correspond to any host network interface.
7452 </note>
7453 </desc>
7454 <param name="id" type="wstring" dir="in">
7455 <desc>GUID of the host network interface to search for.</desc>
7456 </param>
7457 <param name="networkInterface" type="IHostNetworkInterface" dir="return">
7458 <desc>Found host network interface object.</desc>
7459 </param>
7460 </method>
7461 <method name="findHostNetworkInterfacesOfType">
7462 <desc>
7463 Searches through all host network interfaces and returns a list of interfaces of the specified type
7464 </desc>
7465 <param name="type" type="HostNetworkInterfaceType" dir="in">
7466 <desc>type of the host network interfaces to search for.</desc>
7467 </param>
7468 <param name="networkInterfaces" type="IHostNetworkInterface" safearray="yes" dir="return">
7469 <desc>Found host network interface objects.</desc>
7470 </param>
7471 </method>
7472
7473 <method name="findUSBDeviceById">
7474 <desc>
7475 Searches for a USB device with the given UUID.
7476
7477 <result name="VBOX_E_OBJECT_NOT_FOUND">
7478 Given @c id does not correspond to any USB device.
7479 </result>
7480
7481 <see>IHostUSBDevice::id</see>
7482 </desc>
7483 <param name="id" type="wstring" dir="in">
7484 <desc>UUID of the USB device to search for.</desc>
7485 </param>
7486 <param name="device" type="IHostUSBDevice" dir="return">
7487 <desc>Found USB device object.</desc>
7488 </param>
7489 </method>
7490
7491 <method name="findUSBDeviceByAddress">
7492 <desc>
7493 Searches for a USB device with the given host address.
7494
7495 <result name="VBOX_E_OBJECT_NOT_FOUND">
7496 Given @c name does not correspond to any USB device.
7497 </result>
7498
7499 <see>IHostUSBDevice::address</see>
7500 </desc>
7501 <param name="name" type="wstring" dir="in">
7502 <desc>
7503 Address of the USB device (as assigned by the host) to
7504 search for.
7505 </desc>
7506 </param>
7507 <param name="device" type="IHostUSBDevice" dir="return">
7508 <desc>Found USB device object.</desc>
7509 </param>
7510 </method>
7511
7512 </interface>
7513
7514 <!--
7515 // ISystemProperties
7516 /////////////////////////////////////////////////////////////////////////
7517 -->
7518
7519 <interface
7520 name="ISystemProperties"
7521 extends="$unknown"
7522 uuid="9ca0f712-83f3-4631-b143-b75ef6568332"
7523 wsmap="managed"
7524 >
7525 <desc>
7526 The ISystemProperties interface represents global properties of the given
7527 VirtualBox installation.
7528
7529 These properties define limits and default values for various attributes
7530 and parameters. Most of the properties are read-only, but some can be
7531 changed by a user.
7532 </desc>
7533
7534 <attribute name="minGuestRAM" type="unsigned long" readonly="yes">
7535 <desc>Minimum guest system memory in Megabytes.</desc>
7536 </attribute>
7537
7538 <attribute name="maxGuestRAM" type="unsigned long" readonly="yes">
7539 <desc>Maximum guest system memory in Megabytes.</desc>
7540 </attribute>
7541
7542 <attribute name="minGuestVRAM" type="unsigned long" readonly="yes">
7543 <desc>Minimum guest video memory in Megabytes.</desc>
7544 </attribute>
7545
7546 <attribute name="maxGuestVRAM" type="unsigned long" readonly="yes">
7547 <desc>Maximum guest video memory in Megabytes.</desc>
7548 </attribute>
7549
7550 <attribute name="minGuestCPUCount" type="unsigned long" readonly="yes">
7551 <desc>Minimum CPU count.</desc>
7552 </attribute>
7553
7554 <attribute name="maxGuestCPUCount" type="unsigned long" readonly="yes">
7555 <desc>Maximum CPU count.</desc>
7556 </attribute>
7557
7558 <attribute name="maxVDISize" type="unsigned long long" readonly="yes">
7559 <desc>Maximum size of a virtual disk image in Megabytes.</desc>
7560 </attribute>
7561
7562 <attribute name="networkAdapterCount" type="unsigned long" readonly="yes">
7563 <desc>
7564 Number of network adapters associated with every
7565 <link to="IMachine"/> instance.
7566 </desc>
7567 </attribute>
7568
7569 <attribute name="serialPortCount" type="unsigned long" readonly="yes">
7570 <desc>
7571 Number of serial ports associated with every
7572 <link to="IMachine"/> instance.
7573 </desc>
7574 </attribute>
7575
7576 <attribute name="parallelPortCount" type="unsigned long" readonly="yes">
7577 <desc>
7578 Number of parallel ports associated with every
7579 <link to="IMachine"/> instance.
7580 </desc>
7581 </attribute>
7582
7583 <attribute name="maxBootPosition" type="unsigned long" readonly="yes">
7584 <desc>
7585 Maximum device position in the boot order. This value corresponds
7586 to the total number of devices a machine can boot from, to make it
7587 possible to include all possible devices to the boot list.
7588 <see><link to="IMachine::setBootOrder"/></see>
7589 </desc>
7590 </attribute>
7591
7592 <attribute name="defaultMachineFolder" type="wstring">
7593 <desc>
7594 Full path to the default directory used to create new or open
7595 existing machines when a settings file name contains no
7596 path.
7597
7598 The initial value of this property is
7599 <tt>&lt;</tt><link to="IVirtualBox::homeFolder">
7600 VirtualBox_home</link><tt>&gt;/Machines</tt>.
7601
7602 <note>
7603 Setting this property to @c null or an empty string will restore the
7604 initial value.
7605 </note>
7606 <note>
7607 When settings this property, the specified path can be
7608 absolute (full path) or relative
7609 to the <link to="IVirtualBox::homeFolder">
7610 VirtualBox home directory</link>.
7611 When reading this property, a full path is
7612 always returned.
7613 </note>
7614 <note>
7615 The specified path may not exist, it will be created
7616 when necessary.
7617 </note>
7618
7619 <see>
7620 <link to="IVirtualBox::createMachine"/>,
7621 <link to="IVirtualBox::openMachine"/>
7622 </see>
7623 </desc>
7624 </attribute>
7625
7626 <attribute name="defaultHardDiskFolder" type="wstring">
7627 <desc>
7628 Full path to the default directory used to create new or open existing
7629 virtual disks.
7630
7631 This path is used when the storage unit of a hard disk is a regular file
7632 in the host's file system and only a file name that contains no path is
7633 given.
7634
7635 The initial value of this property is
7636 <tt>&lt;</tt>
7637 <link to="IVirtualBox::homeFolder">VirtualBox_home</link>
7638 <tt>&gt;/HardDisks</tt>.
7639
7640 <note>
7641 Setting this property to @c null or empty string will restore the
7642 initial value.
7643 </note>
7644 <note>
7645 When settings this property, the specified path can be relative
7646 to the
7647 <link to="IVirtualBox::homeFolder">VirtualBox home directory</link> or
7648 absolute. When reading this property, a full path is
7649 always returned.
7650 </note>
7651 <note>
7652 The specified path may not exist, it will be created
7653 when necessary.
7654 </note>
7655
7656 <see>
7657 IHardDisk,
7658 <link to="IVirtualBox::createHardDisk"/>,
7659 <link to="IVirtualBox::openHardDisk"/>,
7660 <link to="IMedium::location"/>
7661 </see>
7662 </desc>
7663 </attribute>
7664
7665 <attribute name="hardDiskFormats" type="IHardDiskFormat" safearray="yes" readonly="yes">
7666 <desc>
7667 List of all hard disk storage formats supported by this VirtualBox
7668 installation.
7669
7670 Keep in mind that the hard disk format identifier
7671 (<link to="IHardDiskFormat::id"/>) used in other API calls like
7672 <link to="IVirtualBox::createHardDisk"/> to refer to a particular
7673 hard disk format is a case-insensitive string. This means that, for
7674 example, all of the following strings:
7675 <pre>
7676 "VDI"
7677 "vdi"
7678 "VdI"</pre>
7679 refer to the same hard disk format.
7680
7681 Note that the virtual hard disk framework is backend-based, therefore
7682 the list of supported formats depends on what backends are currently
7683 installed.
7684
7685 <see>
7686 <link to="IHardDiskFormat"/>,
7687 </see>
7688 </desc>
7689 </attribute>
7690
7691 <attribute name="defaultHardDiskFormat" type="wstring">
7692 <desc>
7693 Identifier of the default hard disk format used by VirtualBox.
7694
7695 The hard disk format set by this attribute is used by VirtualBox
7696 when the hard disk format was not specified explicitly. One example is
7697 <link to="IVirtualBox::createHardDisk"/> with the empty
7698 format argument. A more complex example is implicit creation of
7699 differencing hard disks when taking a snapshot of a virtual machine:
7700 this operation will try to use a format of the parent hard disk first
7701 and if this format does not support differencing hard disks the default
7702 format specified by this argument will be used.
7703
7704 The list of supported hard disk formats may be obtained by the
7705 <link to="#hardDiskFormats"/> call. Note that the default hard disk
7706 format must have a capability to create differencing hard disks;
7707 otherwise opeartions that create hard disks implicitly may fail
7708 unexpectedly.
7709
7710 The initial value of this property is <tt>"VDI"</tt> in the current
7711 version of the VirtualBox product, but may change in the future.
7712
7713 <note>
7714 Setting this property to @c null or empty string will restore the
7715 initial value.
7716 </note>
7717
7718 <see>
7719 <link to="#hardDiskFormats"/>,
7720 <link to="IHardDiskFormat::id"/>,
7721 <link to="IVirtualBox::createHardDisk"/>
7722 </see>
7723 </desc>
7724 </attribute>
7725
7726 <attribute name="remoteDisplayAuthLibrary" type="wstring">
7727 <desc>
7728 Library that provides authentication for VRDP clients. The library
7729 is used if a virtual machine's authentication type is set to "external"
7730 in the VM RemoteDisplay configuration.
7731
7732 The system library extension (".DLL" or ".so") must be omitted.
7733 A full path can be specified; if not, then the library must reside on the
7734 system's default library path.
7735
7736 The default value of this property is <tt>"VRDPAuth"</tt>. There is a library
7737 of that name in one of the default VirtualBox library directories.
7738
7739 For details about VirtualBox authentication libraries and how to implement
7740 them, please refer to the VirtualBox manual.
7741
7742 <note>
7743 Setting this property to @c null or empty string will restore the
7744 initial value.
7745 </note>
7746 </desc>
7747 </attribute>
7748
7749 <attribute name="webServiceAuthLibrary" type="wstring">
7750 <desc>
7751 Library that provides authentication for webservice clients. The library
7752 is used if a virtual machine's authentication type is set to "external"
7753 in the VM RemoteDisplay configuration and will be called from
7754 within the <link to="IWebsessionManager::logon" /> implementation.
7755
7756 As opposed to <link to="ISystemProperties::remoteDisplayAuthLibrary" />,
7757 there is no per-VM setting for this, as the webservice is a global
7758 resource (if it is running). Only for this setting (for the webservice),
7759 setting this value to a literal <tt>"null"</tt> string disables authentication,
7760 meaning that <link to="IWebsessionManager::logon" /> will always succeed,
7761 no matter what user name and password are supplied.
7762
7763 The initial value of this property is <tt>"VRDPAuth"</tt>,
7764 meaning that the webservice will use the same authentication
7765 library that is used by default for VBoxVRDP (again, see
7766 <link to="ISystemProperties::remoteDisplayAuthLibrary" />).
7767 The format and calling convention of authentication libraries
7768 is the same for the webservice as it is for VBoxVRDP.
7769
7770 <note>
7771 Setting this property to @c null or empty string will restore the
7772 initial value.
7773 </note>
7774 </desc>
7775 </attribute>
7776
7777 <attribute name="LogHistoryCount" type="unsigned long">
7778 <desc>
7779 This value specifies how many old release log files are kept.
7780 </desc>
7781 </attribute>
7782
7783 <attribute name="defaultAudioDriver" type="AudioDriverType" readonly="yes">
7784 <desc>This value hold the default audio driver for the current
7785 system.</desc>
7786 </attribute>
7787 </interface>
7788
7789 <!--
7790 // IGuest
7791 /////////////////////////////////////////////////////////////////////////
7792 -->
7793
7794 <interface
7795 name="IGuestOSType" extends="$unknown"
7796 uuid="cfe9e64c-4430-435b-9e7c-e3d8e417bd58"
7797 wsmap="struct"
7798 >
7799 <desc>
7800 </desc>
7801
7802 <attribute name="familyId" type="wstring" readonly="yes">
7803 <desc>Guest OS family identifier string.</desc>
7804 </attribute>
7805
7806 <attribute name="familyDescription" type="wstring" readonly="yes">
7807 <desc>Human readable description of the guest OS family.</desc>
7808 </attribute>
7809
7810 <attribute name="id" type="wstring" readonly="yes">
7811 <desc>Guest OS identifier string.</desc>
7812 </attribute>
7813
7814 <attribute name="description" type="wstring" readonly="yes">
7815 <desc>Human readable description of the guest OS.</desc>
7816 </attribute>
7817
7818 <attribute name="is64Bit" type="boolean" readonly="yes">
7819 <desc>Returns @c true if the given OS is 64-bit</desc>
7820 </attribute>
7821
7822 <attribute name="recommendedIOAPIC" type="boolean" readonly="yes">
7823 <desc>Returns @c true if IO APIC recommended for this OS type.</desc>
7824 </attribute>
7825
7826 <attribute name="recommendedVirtEx" type="boolean" readonly="yes">
7827 <desc>Returns @c true if VT-x or AMD-V recommended for this OS type.</desc>
7828 </attribute>
7829
7830 <attribute name="recommendedRAM" type="unsigned long" readonly="yes">
7831 <desc>Recommended RAM size in Megabytes.</desc>
7832 </attribute>
7833
7834 <attribute name="recommendedVRAM" type="unsigned long" readonly="yes">
7835 <desc>Recommended video RAM size in Megabytes.</desc>
7836 </attribute>
7837
7838 <attribute name="recommendedHDD" type="unsigned long" readonly="yes">
7839 <desc>Recommended hard disk size in Megabytes.</desc>
7840 </attribute>
7841
7842 <attribute name="adapterType" type="NetworkAdapterType" readonly="yes">
7843 <desc>Returns recommended network adapter for this OS type.</desc>
7844 </attribute>
7845 </interface>
7846
7847 <interface
7848 name="IGuest" extends="$unknown"
7849 uuid="d8556fca-81bc-12af-fca3-365528fa38ca"
7850 wsmap="managed"
7851 >
7852 <desc>
7853 The IGuest interface represents information about the operating system
7854 running inside the virtual machine. Used in
7855 <link to="IConsole::guest"/>.
7856
7857 IGuest provides information about the guest operating system, whether
7858 Guest Additions are installed and other OS-specific virtual machine
7859 properties.
7860 </desc>
7861
7862 <attribute name="OSTypeId" type="wstring" readonly="yes">
7863 <desc>
7864 Identifier of the Guest OS type as reported by the Guest
7865 Additions.
7866 You may use <link to="IVirtualBox::getGuestOSType"/> to obtain
7867 an IGuestOSType object representing details about the given
7868 Guest OS type.
7869 <note>
7870 If Guest Additions are not installed, this value will be
7871 the same as <link to="IMachine::OSTypeId"/>.
7872 </note>
7873 </desc>
7874 </attribute>
7875
7876 <attribute name="additionsActive" type="boolean" readonly="yes">
7877 <desc>
7878 Flag whether the Guest Additions are installed and active
7879 in which case their version will be returned by the
7880 <link to="#additionsVersion"/> property.
7881 </desc>
7882 </attribute>
7883
7884 <attribute name="additionsVersion" type="wstring" readonly="yes">
7885 <desc>
7886 Version of the Guest Additions (3 decimal numbers separated
7887 by dots) or empty when the Additions are not installed. The
7888 Additions may also report a version but yet not be active as
7889 the version might be refused by VirtualBox (incompatible) or
7890 other failures occurred.
7891 </desc>
7892 </attribute>
7893
7894 <attribute name="supportsSeamless" type="boolean" readonly="yes">
7895 <desc>
7896 Flag whether seamless guest display rendering (seamless desktop
7897 integration) is supported.
7898 </desc>
7899 </attribute>
7900
7901 <attribute name="supportsGraphics" type="boolean" readonly="yes">
7902 <desc>
7903 Flag whether the guest is in graphics mode. If it is not, then
7904 seamless rendering will not work, resize hints are not immediately
7905 acted on and guest display resizes are probably not initiated by
7906 the guest additions.
7907 </desc>
7908 </attribute>
7909
7910 <attribute name="memoryBalloonSize" type="unsigned long">
7911 <desc>Guest system memory balloon size in megabytes.</desc>
7912 </attribute>
7913
7914 <attribute name="statisticsUpdateInterval" type="unsigned long">
7915 <desc>Interval to update guest statistics in seconds.</desc>
7916 </attribute>
7917
7918 <method name="setCredentials">
7919 <desc>
7920 Store login credentials that can be queried by guest operating
7921 systems with Additions installed. The credentials are transient
7922 to the session and the guest may also choose to erase them. Note
7923 that the caller cannot determine whether the guest operating system
7924 has queried or made use of the credentials.
7925
7926 <result name="VBOX_E_VM_ERROR">
7927 VMM device is not available.
7928 </result>
7929
7930 </desc>
7931 <param name="userName" type="wstring" dir="in">
7932 <desc>User name string, can be empty</desc>
7933 </param>
7934 <param name="password" type="wstring" dir="in">
7935 <desc>Password string, can be empty</desc>
7936 </param>
7937 <param name="domain" type="wstring" dir="in">
7938 <desc>Domain name (guest logon scheme specific), can be empty</desc>
7939 </param>
7940 <param name="allowInteractiveLogon" type="boolean" dir="in">
7941 <desc>
7942 Flag whether the guest should alternatively allow the user to
7943 interactively specify different credentials. This flag might
7944 not be supported by all versions of the Additions.
7945 </desc>
7946 </param>
7947 </method>
7948
7949 <method name="getStatistic">
7950 <desc>
7951 Query specified guest statistics as reported by the VirtualBox Additions.
7952 </desc>
7953 <param name="cpuId" type="unsigned long" dir="in">
7954 <desc>Virtual CPU id; not relevant for all statistic types</desc>
7955 </param>
7956 <param name="statistic" type="GuestStatisticType" dir="in">
7957 <desc>Statistic type.</desc>
7958 </param>
7959 <param name="statVal" type="unsigned long" dir="return">
7960 <desc>Statistics value</desc>
7961 </param>
7962 </method>
7963
7964 </interface>
7965
7966
7967 <!--
7968 // IProgress
7969 /////////////////////////////////////////////////////////////////////////
7970 -->
7971
7972 <interface
7973 name="IProgress" extends="$unknown"
7974 uuid="6fcd0198-7fc5-4c53-8c37-653ac76854b5"
7975 wsmap="managed"
7976 >
7977 <desc>
7978 The IProgress interface is used to track and control
7979 asynchronous tasks within VirtualBox.
7980
7981 An instance of this is returned every time VirtualBox starts
7982 an asynchronous task (in other words, a separate thread) which
7983 continues to run after a method call returns. For example,
7984 <link to="IConsole::saveState" />, which saves the state of
7985 a running virtual machine, can take a long time to complete.
7986 To be able to display a progress bar, a user interface such as
7987 the VirtualBox graphical user interface can use the IProgress
7988 object returned by that method.
7989
7990 Note that IProgress is a "read-only" interface in the sense
7991 that only the VirtualBox internals behind the Main API can
7992 create and manipulate progress objects, whereas client code
7993 can only use the IProgress object to monitor a task's
7994 progress and, if <link to="#cancelable" /> is @c true,
7995 cancel the task by calling <link to="#cancel" />.
7996
7997 A task represented by IProgress consists of either one or
7998 several sub-operations that run sequentially, one by one (see
7999 <link to="#operation" /> and <link to="#operationCount" />).
8000 Every operation is identified by a number (starting from 0)
8001 and has a separate description.
8002
8003 You can find the individual percentage of completion of the current
8004 operation in <link to="#operationPercent" /> and the
8005 percentage of completion of the task as a whole
8006 in <link to="#percent" />.
8007
8008 Similarly, you can wait for the completion of a particular
8009 operation via <link to="#waitForOperationCompletion" /> or
8010 for the completion of the whole task via
8011 <link to="#waitForCompletion" />.
8012 </desc>
8013
8014 <attribute name="id" type="wstring" readonly="yes">
8015 <desc>ID of the task.</desc>
8016 </attribute>
8017
8018 <attribute name="description" type="wstring" readonly="yes">
8019 <desc>Description of the task.</desc>
8020 </attribute>
8021
8022 <attribute name="initiator" type="$unknown" readonly="yes">
8023 <desc>Initiator of the task.</desc>
8024 </attribute>
8025
8026 <attribute name="cancelable" type="boolean" readonly="yes">
8027 <desc>Whether the task can be interrupted.</desc>
8028 </attribute>
8029
8030 <attribute name="percent" type="unsigned long" readonly="yes">
8031 <desc>
8032 Current progress value of the task as a whole, in percent.
8033 This value depends on how many operations are already complete.
8034 Returns 100 if <link to="#completed" /> is @c true.
8035 </desc>
8036 </attribute>
8037
8038 <attribute name="timeRemaining" type="long" readonly="yes">
8039 <desc>
8040 Estimated remaining time until the task completes, in
8041 seconds. Returns 0 once the task has completed; returns -1
8042 if the remaining time cannot be computed, in particular if
8043 the current progress is 0.
8044
8045 Even if a value is returned, the estimate will be unreliable
8046 for low progress values. It will become more reliable as the
8047 task progresses; it is not recommended to display an ETA
8048 before at least 20% of a task have completed.
8049 </desc>
8050 </attribute>
8051
8052 <attribute name="completed" type="boolean" readonly="yes">
8053 <desc>Whether the task has been completed.</desc>
8054 </attribute>
8055
8056 <attribute name="canceled" type="boolean" readonly="yes">
8057 <desc>Whether the task has been canceled.</desc>
8058 </attribute>
8059
8060 <attribute name="resultCode" type="long" readonly="yes">
8061 <desc>
8062 Result code of the progress task.
8063 Valid only if <link to="#completed"/> is @c true.
8064 </desc>
8065 </attribute>
8066
8067 <attribute name="errorInfo" type="IVirtualBoxErrorInfo" readonly="yes">
8068 <desc>
8069 Extended information about the unsuccessful result of the
8070 progress operation. May be @c null if no extended information
8071 is available.
8072 Valid only if <link to="#completed"/> is @c true and
8073 <link to="#resultCode"/> indicates a failure.
8074 </desc>
8075 </attribute>
8076
8077 <attribute name="operationCount" type="unsigned long" readonly="yes">
8078 <desc>
8079 Number of sub-operations this task is divided into.
8080 Every task consists of at least one suboperation.
8081 </desc>
8082 </attribute>
8083
8084 <attribute name="operation" type="unsigned long" readonly="yes">
8085 <desc>Number of the sub-operation being currently executed.</desc>
8086 </attribute>
8087
8088 <attribute name="operationDescription" type="wstring" readonly="yes">
8089 <desc>
8090 Description of the sub-operation being currently executed.
8091 </desc>
8092 </attribute>
8093
8094 <attribute name="operationPercent" type="unsigned long" readonly="yes">
8095 <desc>Progress value of the current sub-operation only, in percent.</desc>
8096 </attribute>
8097
8098 <method name="waitForCompletion">
8099 <desc>
8100 Waits until the task is done (including all sub-operations)
8101 with a given timeout in milliseconds; specify -1 for an indefinite wait.
8102
8103 <result name="VBOX_E_IPRT_ERROR">
8104 Failed to wait for task completion.
8105 </result>
8106 </desc>
8107
8108 <param name="timeout" type="long" dir="in">
8109 <desc>
8110 Maximum time in milliseconds to wait or -1 to wait indefinitely.
8111 </desc>
8112 </param>
8113 </method>
8114
8115 <method name="waitForOperationCompletion">
8116 <desc>
8117 Waits until the given operation is done with a given timeout in
8118 milliseconds; specify -1 for an indefinite wait.
8119
8120 <result name="VBOX_E_IPRT_ERROR">
8121 Failed to wait for operation completion.
8122 </result>
8123
8124 </desc>
8125 <param name="operation" type="unsigned long" dir="in">
8126 <desc>
8127 Number of the operation to wait for.
8128 Must be less than <link to="#operationCount"/>.
8129 </desc>
8130 </param>
8131 <param name="timeout" type="long" dir="in">
8132 <desc>
8133 Maximum time in milliseconds to wait or -1 to wait indefinitely.
8134 </desc>
8135 </param>
8136 </method>
8137
8138 <method name="cancel">
8139 <desc>
8140 Cancels the task.
8141 <note>
8142 If <link to="#cancelable"/> is @c false, then this method will fail.
8143 </note>
8144
8145 <result name="VBOX_E_INVALID_OBJECT_STATE">
8146 Operation cannot be canceled.
8147 </result>
8148
8149 </desc>
8150 </method>
8151
8152 </interface>
8153
8154
8155 <!--
8156 // ISnapshot
8157 /////////////////////////////////////////////////////////////////////////
8158 -->
8159
8160 <interface
8161 name="ISnapshot" extends="$unknown"
8162 uuid="1a2d0551-58a4-4107-857e-ef414fc42ffc"
8163 wsmap="managed"
8164 >
8165 <desc>
8166 The ISnapshot interface represents a snapshot of the virtual
8167 machine.
8168
8169 The <i>snapshot</i> stores all the information about a virtual
8170 machine necessary to bring it to exactly the same state as it was at
8171 the time of taking the snapshot. The snapshot includes:
8172
8173 <ul>
8174 <li>all settings of the virtual machine (i.e. its hardware
8175 configuration: RAM size, attached hard disks, etc.)
8176 </li>
8177 <li>the execution state of the virtual machine (memory contents,
8178 CPU state, etc.).
8179 </li>
8180 </ul>
8181
8182 Snapshots can be <i>offline</i> (taken when the VM is powered off)
8183 or <i>online</i> (taken when the VM is running). The execution
8184 state of the offline snapshot is called a <i>zero execution state</i>
8185 (it doesn't actually contain any information about memory contents
8186 or the CPU state, assuming that all hardware is just powered off).
8187
8188 <h3>Snapshot branches</h3>
8189
8190 Snapshots can be chained. Chained snapshots form a branch where
8191 every next snapshot is based on the previous one. This chaining is
8192 mostly related to hard disk branching (see <link to="IHardDisk"/>
8193 description). This means that every time a new snapshot is created,
8194 a new differencing hard disk is implicitly created for all normal
8195 hard disks attached to the given virtual machine. This allows to
8196 fully restore hard disk contents when the machine is later reverted
8197 to a particular snapshot.
8198
8199 In the current implementation, multiple snapshot branches within one
8200 virtual machine are not allowed. Every machine has a single branch,
8201 and <link to="IConsole::takeSnapshot"/> operation adds a new
8202 snapshot to the top of that branch.
8203
8204 Existing snapshots can be discarded using
8205 <link to="IConsole::discardSnapshot"/>.
8206
8207 <h3>Current snapshot</h3>
8208
8209 Every virtual machine has a current snapshot, identified by
8210 <link to="IMachine::currentSnapshot"/>. This snapshot is used as
8211 a base for the <i>current machine state</i> (see below), to the effect
8212 that all normal hard disks of the machine and its execution
8213 state are based on this snapshot.
8214
8215 In the current implementation, the current snapshot is always the
8216 last taken snapshot (i.e. the head snapshot on the branch) and it
8217 cannot be changed.
8218
8219 The current snapshot is @c null if the machine doesn't have
8220 snapshots at all; in this case the current machine state is just
8221 current settings of this machine plus its current execution state.
8222
8223 <h3>Current machine state</h3>
8224
8225 The current machine state is what represented by IMachine instances got
8226 directly from IVirtualBox
8227 using <link
8228 to="IVirtualBox::getMachine">getMachine()</link>, <link
8229 to="IVirtualBox::findMachine">findMachine()</link>, etc. (as opposed
8230 to instances returned by <link to="ISnapshot::machine"/>). This state
8231 is always used when the machine is <link to="IConsole::powerUp"> powered
8232 on</link>.
8233
8234 The current machine state also includes the current execution state.
8235 If the machine is being currently executed
8236 (<link to="IMachine::state"/> is <link to="MachineState_Running"/>
8237 and above), its execution state is just what's happening now.
8238 If it is powered off (<link to="MachineState_PoweredOff"/> or
8239 <link to="MachineState_Aborted"/>), it has a zero execution state.
8240 If the machine is saved (<link to="MachineState_Saved"/>), its
8241 execution state is what saved in the execution state file
8242 (<link to="IMachine::stateFilePath"/>).
8243
8244 If the machine is in the saved state, then, next time it is powered
8245 on, its execution state will be fully restored from the saved state
8246 file and the execution will continue from the point where the state
8247 was saved.
8248
8249 Similarly to snapshots, the current machine state can be discarded
8250 using <link to="IConsole::discardCurrentState"/>.
8251
8252 <h3>Taking and discarding snapshots</h3>
8253
8254 The table below briefly explains the meaning of every snapshot
8255 operation:
8256
8257 <table>
8258 <tr><th>Operation</th><th>Meaning</th><th>Remarks</th></tr>
8259
8260 <tr><td><link to="IConsole::takeSnapshot"/></td>
8261
8262 <td>Save the current state of the virtual machine, including all
8263 settings, contents of normal hard disks and the current modifications
8264 to immutable hard disks (for online snapshots)</td>
8265
8266 <td>The current state is not changed (the machine will continue
8267 execution if it is being executed when the snapshot is
8268 taken)</td></tr>
8269
8270 <tr><td><link to="IConsole::discardSnapshot"/></td>
8271
8272 <td>Forget the state of the virtual machine stored in the snapshot:
8273 dismiss all saved settings and delete the saved execution state (for
8274 online snapshots)</td>
8275
8276 <td>Other snapshots (including child snapshots, if any) and the
8277 current state are not directly affected</td></tr>
8278
8279 <tr><td><link to="IConsole::discardCurrentState"/></td>
8280
8281 <td>Restore the current state of the virtual machine from the state
8282 stored in the current snapshot, including all settings and hard disk
8283 contents</td>
8284
8285 <td>The current state of the machine existed prior to this operation
8286 is lost</td></tr>
8287
8288 <tr><td><link to="IConsole::discardCurrentSnapshotAndState"/></td>
8289
8290 <td>Completely revert the virtual machine to the state it was in
8291 before the current snapshot has been taken</td>
8292
8293 <td>The current state, as well as the current snapshot, are
8294 lost</td></tr>
8295
8296 </table>
8297
8298 </desc>
8299
8300 <attribute name="id" type="wstring" readonly="yes">
8301 <desc>UUID of the snapshot.</desc>
8302 </attribute>
8303
8304 <attribute name="name" type="wstring">
8305 <desc>Short name of the snapshot.</desc>
8306 </attribute>
8307
8308 <attribute name="description" type="wstring">
8309 <desc>Optional description of the snapshot.</desc>
8310 </attribute>
8311
8312 <attribute name="timeStamp" type="long long" readonly="yes">
8313 <desc>
8314 Time stamp of the snapshot, in milliseconds since 1970-01-01 UTC.
8315 </desc>
8316 </attribute>
8317
8318 <attribute name="online" type="boolean" readonly="yes">
8319 <desc>
8320 @c true if this snapshot is an online snapshot and @c false otherwise.
8321
8322 <note>
8323 When this attribute is @c true, the
8324 <link to="IMachine::stateFilePath"/> attribute of the
8325 <link to="#machine"/> object associated with this snapshot
8326 will point to the saved state file. Otherwise, it will be
8327 an empty string.
8328 </note>
8329 </desc>
8330 </attribute>
8331
8332 <attribute name="machine" type="IMachine" readonly="yes">
8333 <desc>
8334 Virtual machine this snapshot is taken on. This object
8335 stores all settings the machine had when taking this snapshot.
8336 <note>
8337 The returned machine object is immutable, i.e. no
8338 any settings can be changed.
8339 </note>
8340 </desc>
8341 </attribute>
8342
8343 <attribute name="parent" type="ISnapshot" readonly="yes">
8344 <desc>
8345 Parent snapshot (a snapshot this one is based on).
8346 <note>
8347 It's not an error to read this attribute on a snapshot
8348 that doesn't have a parent -- a @c null object will be
8349 returned to indicate this.
8350 </note>
8351 </desc>
8352 </attribute>
8353
8354 <attribute name="children" type="ISnapshot" readonly="yes" safearray="yes">
8355 <desc>
8356 Child snapshots (all snapshots having this one as a parent).
8357 <note>
8358 In the current implementation, there can be only one
8359 child snapshot, or no children at all, meaning this is the
8360 last (head) snapshot.
8361 </note>
8362 </desc>
8363 </attribute>
8364
8365 </interface>
8366
8367
8368 <!--
8369 // IMedia
8370 /////////////////////////////////////////////////////////////////////////
8371 -->
8372
8373 <enum
8374 name="MediaState"
8375 uuid="8b86e03c-2f1c-412a-8fbd-326f62701200"
8376 >
8377 <desc>
8378 Virtual media state.
8379 <see>IMedia</see>
8380 </desc>
8381
8382 <const name="NotCreated" value="0">
8383 <desc>
8384 Associated media storage does not exist (either was not created yet or
8385 was deleted).
8386 </desc>
8387 </const>
8388 <const name="Created" value="1">
8389 <desc>
8390 Associated storage exists and accessible.
8391 </desc>
8392 </const>
8393 <const name="LockedRead" value="2">
8394 <desc>
8395 Media is locked for reading, no data modification is possible.
8396 </desc>
8397 </const>
8398 <const name="LockedWrite" value="3">
8399 <desc>
8400 Media is locked for writing, no concurrent data reading or modification
8401 is possible.
8402 </desc>
8403 </const>
8404 <const name="Inaccessible" value="4">
8405 <desc>
8406 Associated media storage is not accessible.
8407 </desc>
8408 </const>
8409 <const name="Creating" value="5">
8410 <desc>
8411 Associated media storage is being created.
8412 </desc>
8413 </const>
8414 <const name="Deleting" value="6">
8415 <desc>
8416 Associated media storage is being deleted.
8417 </desc>
8418 </const>
8419 </enum>
8420
8421 <interface
8422 name="IMedium" extends="$unknown"
8423 uuid="f585787c-7728-40f6-853a-13705426e936"
8424 wsmap="managed"
8425 >
8426 <desc>
8427 The IMedium interface is a common interface for all objects representing
8428 virtual media such as hard disks, CD/DVD images and floppy images.
8429
8430 Each medium is associated with a storage unit (such as a file on the host
8431 computer or a network resource) that holds actual data. The location of
8432 the storage unit is represented by the #location attribute. The value of
8433 this attribute is media type dependent.
8434
8435 The exact media type may be determined by querying the appropriate
8436 interface such as:
8437 <ul>
8438 <li><link to="IHardDisk" /> (virtual hard disks)</li>
8439 <li><link to="IDVDImage" /> (standard CD/DVD ISO image files)</li>
8440 <li><link to="IFloppyImage" /> (raw floppy image files)</li>
8441 </ul>
8442
8443 Existing media are opened using the following methods, depending on the
8444 media type:
8445 <ul>
8446 <li><link to="IVirtualBox::openHardDisk"/></li>
8447 <li><link to="IVirtualBox::openDVDImage"/></li>
8448 <li><link to="IVirtualBox::openFloppyImage"/></li>
8449 </ul>
8450
8451 New hard disk media are created using the
8452 <link to="IVirtualBox::createHardDisk"/> method. CD/DVD and floppy
8453 images are created outside VirtualBox, usually by storing a copy
8454 of the real medium of the corresponding type in a regular file.
8455
8456 <h3>Known Media</h3>
8457
8458 When an existing medium gets opened for the first time, it gets
8459 automatically remembered by the given VirtualBox installation or, in other
8460 words, becomes a <i>known medium</i>. Known media are stored in the media
8461 registry transparently maintained by VirtualBox and stored in settings
8462 files so that this registry is preserved when VirtualBox is not running.
8463
8464 Newly created virtual hard disks get remembered only when the associated
8465 storage unit is actually created (see IHardDisk for more details).
8466
8467 All known media can be enumerated using
8468 <link to="IVirtualBox::hardDisks"/>,
8469 <link to="IVirtualBox::DVDImages"/> and
8470 <link to="IVirtualBox::floppyImages"/> attributes. Individual media can be
8471 quickly found by UUID using <link to="IVirtualBox::getHardDisk"/>
8472 and similar methods or by location using
8473 <link to="IVirtualBox::findHardDisk"/> and similar methods.
8474
8475 Only known media can be attached to virtual machines.
8476
8477 Removing known media from the media registry is performed when the given
8478 medium is closed using the <link to="#close"/> method or when its
8479 associated storage unit is deleted (only for hard disks).
8480
8481 <h3>Accessibility Checks</h3>
8482
8483 The given medium (with the created storage unit) is considered to be
8484 <i>accessible</i> when its storage unit can be read.
8485 Accessible media are indicated by the <link to="MediaState_Created"/>
8486 value of the <link to="#state"/> attribute. When the storage unit cannot
8487 be read (for example, because it is located on a disconnected network
8488 resource, or was accidentally deleted outside VirtualBox), the medium is
8489 considered to be <i>inaccessible</i> which is indicated by the
8490 <link to="MediaState_Inaccessible"/> state. The details about the reason
8491 of being inaccessible can be obtained using the
8492 <link to="#lastAccessError"/> attribute.
8493
8494 A new accessibility check is performed each time the <link to="#state"/>
8495 attribute is read. Please note that this check may take long time (several
8496 seconds or even minutes, depending on the storage unit location and
8497 format), and will block the calling thread until finished. For this
8498 reason, it is recommended to never read this attribute on the main UI
8499 thread to avoid making the UI unresponsive.
8500
8501 Note that when VirtualBox starts up (e.g. the VirtualBox object gets
8502 created for the first time), all known media are in the
8503 <link to="MediaState_Inaccessible"/> state but the value of the <link
8504 to="#lastAccessError"/> attribute is an empty string because no actual
8505 accessibility check is made on startup. This is done to make the
8506 VirtualBox object ready for serving requests as
8507 fast as possible and let the end-user application decide if it needs to
8508 check media accessibility right away or not.
8509 </desc>
8510
8511 <attribute name="id" type="wstring" readonly="yes">
8512 <desc>
8513 UUID of the medium. For a newly created medium, this value is a randomly
8514 generated UUID.
8515
8516 <note>
8517 For media in one of MediaState_NotCreated, MediaState_Creating or
8518 MediaState_Deleting states, the value of this property is undefined
8519 and will most likely be an empty UUID.
8520 </note>
8521 </desc>
8522 </attribute>
8523
8524 <attribute name="description" type="wstring">
8525 <desc>
8526 Optional description of the medium. For newly created media, the value
8527 of this attribute value is an empty string.
8528
8529 Media types that don't support this attribute will return E_NOTIMPL in
8530 attempt to get or set this attribute's value.
8531
8532 <note>
8533 For some storage types, reading this attribute may return an outdated
8534 (last known) value when <link to="#state"/> is <link
8535 to="MediaState_Inaccessible"/> or <link
8536 to="MediaState_LockedWrite"/> because the value of this attribute is
8537 stored within the storage unit itself. Also note that changing the
8538 attribute value is not possible in such case, as well as when the
8539 medium is the <link to="MediaState_LockedRead"/> state.
8540 </note>
8541 </desc>
8542 </attribute>
8543
8544 <attribute name="state" type="MediaState" readonly="yes">
8545 <desc>
8546 Current media state. Inspect <link to="MediaState"/> values for details.
8547
8548 Reading this attribute may take a long time because an accessibility
8549 check of the storage unit is performed each time the attribute is read.
8550 This check may cause a significant delay if the storage unit of the
8551 given medium is, for example, a file located on a network share which is
8552 not currently accessible due to connectivity problems -- the call will
8553 not return until a timeout interval defined by the host OS for this
8554 operation expires.
8555
8556 If the last known state of the medium is <link to="MediaState_Created"/>
8557 and the accessibility check fails then the state would be set to
8558 <link to="MediaState_Inaccessible"/> and <link to="#lastAccessError"/>
8559 may be used to get more details about the failure. If the state of the
8560 medium is <link to="MediaState_LockedRead"/> or
8561 <link to="MediaState_LockedWrite"/> then it remains the same, and a
8562 non-empty value of <link to="#lastAccessError"/> will indicate a failed
8563 accessibility check in this case.
8564
8565 Note that not all media states are applicable to all media types.
8566 For example, states <link to="MediaState_NotCreated"/>,
8567 <link to="MediaState_LockedWrite"/>, <link to="MediaState_Creating"/>,
8568 <link to="MediaState_Deleting"/> are meaningless for IDVDImage and
8569 IFloppyImage media.
8570 </desc>
8571 </attribute>
8572
8573 <attribute name="location" type="wstring">
8574 <desc>
8575 Location of the storage unit holding media data.
8576
8577 The format of the location string is media type specific. For media
8578 types using regular files in a host's file system, the location
8579 string is the full file name.
8580
8581 Some media types may support changing the storage unit location by
8582 simply changing the value of this property. If this operation is not
8583 supported, the implementation will return E_NOTIMPL in attempt to set
8584 this attribute's value.
8585
8586 When setting a value of the location attribute which is a regular file
8587 in the host's file system, the given file name may be either relative to
8588 the <link to="IVirtualBox::homeFolder">VirtualBox home folder</link> or
8589 absolute. Note that if the given location specification does not contain
8590 the file extension part then a proper default extension will be
8591 automatically appended by the implementation depending on the media type.
8592 </desc>
8593 </attribute>
8594
8595 <attribute name="name" type="wstring" readonly="yes">
8596 <desc>
8597 Name of the storage unit holding media data.
8598
8599 The returned string is a short version of the <link to="#location"/>
8600 attribute that is suitable for representing the medium in situations
8601 where the full location specification is too long (such as lists
8602 and comboboxes in GUI frontends). This string is also used by frontends
8603 to sort the media list alphabetically when needed.
8604
8605 For example, for locations that are regular files in the host's file
8606 system, the value of this attribute is just the file name (+ extension),
8607 without the path specification.
8608
8609 Note that as opposed to the <link to="#location"/> attribute, the name
8610 attribute will not necessary be unique for a list of media of the
8611 given type and format.
8612 </desc>
8613 </attribute>
8614
8615 <attribute name="size" type="unsigned long long" readonly="yes">
8616 <desc>
8617 Physical size of the storage unit used to hold media data (in bytes).
8618
8619 <note>
8620 For media whose <link to="#state"/> is <link
8621 to="MediaState_Inaccessible"/>, the value of this property is the
8622 last known size. For <link to="MediaState_NotCreated"/> media,
8623 the returned value is zero.
8624 </note>
8625 </desc>
8626 </attribute>
8627
8628 <attribute name="lastAccessError" type="wstring" readonly="yes">
8629 <desc>
8630 Text message that represents the result of the last accessibility
8631 check.
8632
8633 Accessibility checks are performed each time the <link to="#state"/>
8634 attribute is read. An empty string is returned if the last
8635 accessibility check was successful. A non-empty string indicates a
8636 failure and should normally describe a reason of the failure (for
8637 example, a file read error).
8638 </desc>
8639 </attribute>
8640
8641 <attribute name="machineIds" type="wstring" safearray="yes" readonly="yes">
8642 <desc>
8643 Array of UUIDs of all machines this medium is attached to.
8644
8645 A @c null array is returned if this medium is not attached to any
8646 machine or to any machine's snapshot.
8647
8648 <note>
8649 The returned array will include a machine even if this medium is not
8650 attached to that machine in the current state but attached to it in
8651 one of the machine's snapshots. See <link to="#getSnapshotIds"/> for
8652 details.
8653 </note>
8654 </desc>
8655 </attribute>
8656
8657 <method name="getSnapshotIds">
8658 <desc>
8659 Returns an array of UUIDs of all snapshots of the given machine where
8660 this medium is attached to.
8661
8662 If the medium is attached to the machine in the current state, then the
8663 first element in the array will always be the ID of the queried machine
8664 (i.e. the value equal to the @c machineId argument), followed by
8665 snapshot IDs (if any).
8666
8667 If the medium is not attached to the machine in the current state, then
8668 the array will contain only snapshot IDs.
8669
8670 The returned array may be @c null if this medium is not attached
8671 to the given machine at all, neither in the current state nor in one of
8672 the snapshots.
8673 </desc>
8674 <param name="machineId" type="wstring" dir="in">
8675 <desc>
8676 UUID of the machine to query.
8677 </desc>
8678 </param>
8679 <param name="snapshotIds" type="wstring" safearray="yes" dir="return">
8680 <desc>
8681 Array of snapshot UUIDs of the given machine using this medium.
8682 </desc>
8683 </param>
8684 </method>
8685
8686 <method name="lockRead">
8687 <desc>
8688 Locks this medium for reading.
8689
8690 The read lock is shared: many clients can simultaneously lock the
8691 same media for reading unless it is already locked for writing (see
8692 <link to="#lockWrite"/>) in which case an error is returned.
8693
8694 When the medium is locked for reading, it cannot be modified
8695 from within VirtualBox. This means that any method that changes
8696 the properties of this medium or contents of the storage unit
8697 will return an error (unless explicitly stated otherwise) and
8698 that an attempt to start a virtual machine that wants to modify
8699 the medium will also fail.
8700
8701 When the virtual machine is started up, it locks for reading all
8702 media it uses in read-only mode. If some media cannot be locked
8703 for reading, the startup procedure will fail.
8704
8705 The medium locked for reading must be unlocked using the <link
8706 to="#unlockRead"/> method. Calls to <link to="#lockRead"/>
8707 can be nested and must be followed by the same number of paired
8708 <link to="#unlockRead"/> calls.
8709
8710 This method sets the media state to <link
8711 to="MediaState_LockedRead" /> on success. The state prior to
8712 this call must be <link to="MediaState_Created" />,
8713 <link to="MediaState_Inaccessible" /> or
8714 <link to="MediaState_LockedRead" />.
8715 As you can see, inaccessible media can be locked too. This is
8716 not an error; this method performs a logical lock that prevents
8717 modifications of this media through the VirtualBox API, not a
8718 physical lock of the underlying storage unit.
8719
8720 This method returns the current state of the medium
8721 <b>before</b> the operation.
8722
8723 <result name="VBOX_E_INVALID_OBJECT_STATE">
8724 Invalid media state (e.g. not created, locked, inaccessible,
8725 creating, deleting).
8726 </result>
8727
8728 </desc>
8729 <param name="state" type="MediaState" dir="return">
8730 <desc>
8731 State of the medium after the operation.
8732 </desc>
8733 </param>
8734 </method>
8735
8736 <method name="unlockRead">
8737 <desc>
8738 Cancels the read lock previously set by <link to="#lockRead"/>.
8739
8740 For both, success and failure, this method returns the current state
8741 of the medium <b>after</b> the operation.
8742
8743 See <link to="#lockRead"/> for more details.
8744
8745 <result name="VBOX_E_INVALID_OBJECT_STATE">
8746 Medium not locked for reading.
8747 </result>
8748
8749 </desc>
8750 <param name="state" type="MediaState" dir="return">
8751 <desc>
8752 State of the medium after the operation.
8753 </desc>
8754 </param>
8755 </method>
8756
8757 <method name="lockWrite">
8758 <desc>
8759 Locks this medium for writing.
8760
8761 The write lock, as opposed to <link to="#lockRead"/>, is
8762 exclusive: there may be only one client holding a write lock
8763 and there may be no read locks while the write lock is held.
8764
8765 When the medium is locked for writing, it cannot be modified
8766 from within VirtualBox and it is not guaranteed that the values
8767 of its properties are up-to-date. Any method that changes the
8768 properties of this medium or contents of the storage unit will
8769 return an error (unless explicitly stated otherwise) and an
8770 attempt to start a virtual machine wanting to modify or to
8771 read the medium will fail.
8772
8773 When the virtual machine is started up, it locks for writing all
8774 media it uses to write data to. If any medium could not be locked
8775 for writing, the startup procedure will fail.
8776
8777 The medium locked for writing must be unlocked using the <link
8778 to="#unlockWrite"/> method. Calls to <link to="#lockWrite"/>
8779 can <b>not</b> be nested and must be followed by a<link
8780 to="#unlockWrite"/> call before the next lockWrite call.
8781
8782 This method sets the media state to <link to="MediaState_LockedWrite" />
8783 on success. The state prior to this call must be <link to="MediaState_Created"/>
8784 or <link to="MediaState_Inaccessible"/>. As you can see, inaccessible
8785 media can be locked too. This is not an error; this method
8786 performs a logical lock preventing modifications of this
8787 media through the VirtualBox API, not a physical lock of the
8788 underlying storage unit.
8789
8790 For both, success and failure, this method returns the current
8791 state of the medium <b>before</b> the operation.
8792
8793 <result name="VBOX_E_INVALID_OBJECT_STATE">
8794 Invalid media state (e.g. not created, locked, inaccessible,
8795 creating, deleting).
8796 </result>
8797
8798 </desc>
8799 <param name="state" type="MediaState" dir="return">
8800 <desc>
8801 State of the medium after the operation.
8802 </desc>
8803 </param>
8804 </method>
8805
8806 <method name="unlockWrite">
8807 <desc>
8808 Cancels the write lock previously set by <link to="#lockWrite"/>.
8809
8810 For both, success and failure, this method returns the current
8811 state of the medium <b>after</b> the operation.
8812
8813 See <link to="#lockWrite"/> for more details.
8814
8815 <result name="VBOX_E_INVALID_OBJECT_STATE">
8816 Medium not locked for writing.
8817 </result>
8818
8819 </desc>
8820 <param name="state" type="MediaState" dir="return">
8821 <desc>
8822 State of the medium after the operation.
8823 </desc>
8824 </param>
8825 </method>
8826
8827 <method name="close">
8828 <desc>
8829 Closes this medium.
8830
8831 The hard disk must not be attached to any known virtual machine
8832 and must not have any known child hard disks, otherwise the
8833 operation will fail.
8834
8835 When the hard disk is successfully closed, it gets removed from
8836 the list of remembered hard disks, but its storage unit is not
8837 deleted. In particular, this means that this hard disk can be
8838 later opened again using the <link
8839 to="IVirtualBox::openHardDisk"/> call.
8840
8841 Note that after this method successfully returns, the given hard
8842 disk object becomes uninitialized. This means that any attempt
8843 to call any of its methods or attributes will fail with the
8844 <tt>"Object not ready" (E_ACCESSDENIED)</tt> error.
8845
8846 <result name="VBOX_E_INVALID_OBJECT_STATE">
8847 Invalid media state (other than not created, created or
8848 inaccessible).
8849 </result>
8850 <result name="VBOX_E_OBJECT_IN_USE">
8851 Medium attached to virtual machine.
8852 </result>
8853 <result name="VBOX_E_FILE_ERROR">
8854 Settings file not accessible.
8855 </result>
8856 <result name="VBOX_E_XML_ERROR">
8857 Could not parse the settings file.
8858 </result>
8859
8860 </desc>
8861 </method>
8862
8863 </interface>
8864
8865
8866 <!--
8867 // IHardDisk
8868 /////////////////////////////////////////////////////////////////////////
8869 -->
8870
8871 <enum
8872 name="HardDiskType"
8873 uuid="a348fafd-a64e-4643-ba65-eb3896bd7e0a"
8874 >
8875 <desc>
8876 Virtual hard disk type.
8877 <see>IHardDisk</see>
8878 </desc>
8879
8880 <const name="Normal" value="0">
8881 <desc>
8882 Normal hard disk (attached directly or indirectly, preserved
8883 when taking snapshots).
8884 </desc>
8885 </const>
8886 <const name="Immutable" value="1">
8887 <desc>
8888 Immutable hard disk (attached indirectly, changes are wiped out
8889 after powering off the virtual machine).
8890 </desc>
8891 </const>
8892 <const name="Writethrough" value="2">
8893 <desc>
8894 Write through hard disk (attached directly, ignored when
8895 taking snapshots).
8896 </desc>
8897 </const>
8898 </enum>
8899
8900 <enum
8901 name="HardDiskVariant"
8902 uuid="eb7fc6b3-ae23-4c5d-a1f6-e3522dd1efb0"
8903 >
8904 <desc>
8905 Virtual hard disk image variant. More than one flag may be set.
8906 <see>IHardDisk</see>
8907 </desc>
8908
8909 <const name="Standard" value="0">
8910 <desc>
8911 No particular variant requested, results in using the backend default.
8912 </desc>
8913 </const>
8914 <const name="VmdkSplit2G" value="0x01">
8915 <desc>
8916 VMDK image split in chunks of less than 2GByte.
8917 </desc>
8918 </const>
8919 <const name="VmdkStreamOptimized" value="0x04">
8920 <desc>
8921 VMDK streamOptimized image. Special import/export format which is
8922 read-only/append-only.
8923 </desc>
8924 </const>
8925 <const name="VmdkESX" value="0x08">
8926 <desc>
8927 VMDK format variant used on ESX products.
8928 </desc>
8929 </const>
8930 <const name="Fixed" value="0x10000">
8931 <desc>
8932 Fixed image. Only allowed for base images.
8933 </desc>
8934 </const>
8935 <const name="Diff" value="0x20000">
8936 <desc>
8937 Fixed image. Only allowed for base images.
8938 </desc>
8939 </const>
8940 </enum>
8941
8942 <interface
8943 name="IHardDiskAttachment" extends="$unknown"
8944 uuid="b1dd04bb-93c0-4ad3-a9cf-82316e595836"
8945 wsmap="struct"
8946 >
8947 <desc>
8948 The IHardDiskAttachment interface represents a hard disk attachment of a
8949 virtual machine.
8950
8951 Every hard disk attachment specifies a slot of the virtual hard disk
8952 controller and a virtual hard disk attached to this slot.
8953
8954 The array of hard disk attachments is returned by
8955 <link to="IMachine::hardDiskAttachments"/>.
8956 </desc>
8957
8958 <attribute name="hardDisk" type="IHardDisk" readonly="yes">
8959 <desc>Hard disk object associated with this attachment.</desc>
8960 </attribute>
8961
8962 <attribute name="controller" type="wstring" readonly="yes">
8963 <desc>Interface bus of this attachment.</desc>
8964 </attribute>
8965
8966 <attribute name="port" type="long" readonly="yes">
8967 <desc>Port number of this attachment.</desc>
8968 </attribute>
8969
8970 <attribute name="device" type="long" readonly="yes">
8971 <desc>Device slot number of this attachment.</desc>
8972 </attribute>
8973
8974 </interface>
8975
8976 <interface
8977 name="IHardDisk" extends="IMedium"
8978 uuid="62551115-83b8-4d20-925f-79e9d3c00f96"
8979 wsmap="managed"
8980 >
8981 <desc>
8982 The IHardDisk interface represents a virtual hard disk drive
8983 used by a virtual machine. This is a subclass of <link to="IMedium" />; see remarks there.
8984
8985 <h3>Hard Disk Types</h3>
8986
8987 There are three types of hard disks:
8988 <link to="HardDiskType_Normal">Normal</link>,
8989 <link to="HardDiskType_Immutable">Immutable</link> and
8990 <link to="HardDiskType_Writethrough">Writethrough</link>. The type of the
8991 hard disk defines how the hard disk is attached to a virtual machine and
8992 what happens when a <link to="ISnapshot">snapshot</link> of the virtual
8993 machine with the attached hard disk is taken. The type of the hard disk is
8994 defined by the <link to="#type"/> attribute.
8995
8996 All hard disks can be also divided in two groups: <i>base</i> hard
8997 disks and <i>differencing</i> hard disks. A base hard disk contains all
8998 sectors of the hard disk data in its own storage and therefore can be
8999 used independently. On the contrary, a differencing hard disk is a
9000 "delta" to some other disk and contains only those sectors which differ
9001 from that other disk, which is then called a <i>parent</i>. The differencing
9002 hard disk is said to be <i>linked to</i> that parent.
9003 The parent may be itself a differencing image, thus forming a chain of
9004 linked hard disks. The last element in that chain (sometimes referred to as
9005 the root hard disk) must always be a base. Note that several differencing
9006 hard disks may be linked to the same parent hard disk.
9007
9008 Differencing hard disks can be distinguished from base hard disks by
9009 querying the <link to="#parent"/> attribute: base hard disks do not have
9010 parents they would depend on, so the value of this attribute is always
9011 @c null for them. Using this attribute, it is possible to walk up
9012 the hard disk tree (from the child hard disk to its parent). It is also
9013 possible to walk down the tree using the <link to="#children"/>
9014 attribute.
9015
9016 Note that the type of all differencing hard disks is
9017 <link to="HardDiskType_Normal" />; all other values are
9018 meaningless for them. Base hard disks may be of any type.
9019
9020 <h3>Creating Hard Disks</h3>
9021
9022 New base hard disks are created using
9023 <link to="IVirtualBox::createHardDisk"/>. Existing hard disks are
9024 opened using <link to="IVirtualBox::openHardDisk"/>. Differencing hard
9025 disks are usually implicitly created by VirtualBox when needed but may
9026 also be created explicitly using <link to="#createDiffStorage"/>.
9027
9028 After the hard disk is successfully created (including the storage unit)
9029 or opened, it becomes a known hard disk (remembered in the internal media
9030 registry). Known hard disks can be attached to a virtual machine, accessed
9031 through <link to="IVirtualBox::getHardDisk"/> and
9032 <link to="IVirtualBox::findHardDisk"/> methods or enumerated using the
9033 <link to="IVirtualBox::hardDisks"/> array (only for base hard disks).
9034
9035 The following methods, besides <link to="IMedium::close"/>,
9036 automatically remove the hard disk from the media registry:
9037 <ul>
9038 <li><link to="#deleteStorage"/></li>
9039 <li><link to="#mergeTo"/></li>
9040 </ul>
9041
9042 If the storage unit of the hard disk is a regular file in the host's
9043 file system then the rules stated in the description of the
9044 <link to="IMedium::location"/> attribute apply when setting its value. In
9045 addition, a plain file name without any path may be given, in which case
9046 the <link to="ISystemProperties::defaultHardDiskFolder"> default hard disk
9047 folder</link> will be prepended to it.
9048
9049 <h4>Automatic composition of the file name part</h4>
9050
9051 Another extension to the <link to="IMedium::location"/> attribute is that
9052 there is a possibility to cause VirtualBox to compose a unique value for
9053 the file name part of the location using the UUID of the hard disk. This
9054 applies only to hard disks in <link to="MediaState_NotCreated"/> state,
9055 e.g. before the storage unit is created, and works as follows. You set the
9056 value of the <link to="IMedium::location"/> attribute to a location
9057 specification which only contains the path specification but not the file
9058 name part and ends with either a forward slash or a backslash character.
9059 In response, VirtualBox will generate a new UUID for the hard disk and
9060 compose the file name using the following pattern:
9061 <pre>
9062 &lt;path&gt;/{&lt;uuid&gt;}.&lt;ext&gt;
9063 </pre>
9064 where <tt>&lt;path&gt;</tt> is the supplied path specification,
9065 <tt>&lt;uuid&gt;</tt> is the newly generated UUID and <tt>&lt;ext&gt;</tt>
9066 is the default extension for the storage format of this hard disk. After
9067 that, you may call any of the methods that create a new hard disk storage
9068 unit and they will use the generated UUID and file name.
9069
9070 <h3>Attaching Hard Disks</h3>
9071
9072 Hard disks are attached to virtual machines using the
9073 <link to="IMachine::attachHardDisk"/> method and detached using the
9074 <link to="IMachine::detachHardDisk"/> method. Depending on their
9075 <link to="#type"/>, hard disks are attached either
9076 <i>directly</i> or <i>indirectly</i>.
9077
9078 When a hard disk is being attached directly, it is associated with the
9079 virtual machine and used for hard disk operations when the machine is
9080 running. When a hard disk is being attached indirectly, a new differencing
9081 hard disk linked to it is implicitly created and this differencing hard
9082 disk is associated with the machine and used for hard disk operations.
9083 This also means that if <link to="IMachine::attachHardDisk"/> performs
9084 a direct attachment then the same hard disk will be returned in response
9085 to the subsequent <link to="IMachine::getHardDisk"/> call; however if
9086 an indirect attachment is performed then
9087 <link to="IMachine::getHardDisk"/> will return the implicitly created
9088 differencing hard disk, not the original one passed to <link
9089 to="IMachine::attachHardDisk"/>. The following table shows the
9090 dependency of the attachment type on the hard disk type:
9091
9092 <table>
9093 <tr>
9094 <th>Hard Disk Type</th>
9095 <th>Direct or Indirect?</th>
9096 </tr>
9097 <tr>
9098 <td>Normal (Base)</td>
9099 <td>
9100 Normal base hard disks that do not have children (i.e. differencing
9101 hard disks linked to them) and that are not already attached to
9102 virtual machines in snapshots are attached <b>directly</b>.
9103 Otherwise, they are attached <b>indirectly</b> because having
9104 dependent children or being part of the snapshot makes it impossible
9105 to modify hard disk contents without breaking the integrity of the
9106 dependent party. The <link to="#readOnly"/> attribute allows to
9107 quickly determine the kind of the attachment for the given hard
9108 disk. Note that if a normal base hard disk is to be indirectly
9109 attached to a virtual machine with snapshots then a special
9110 procedure called <i>smart attachment</i> is performed (see below).
9111 </td>
9112 </tr>
9113 <tr>
9114 <td>Normal (Differencing)</td>
9115 <td>
9116 Differencing hard disks are like normal base hard disks: attached
9117 <b>directly</b> if they do not have children and are not attached to
9118 virtual machines in snapshots, and <b>indirectly</b> otherwise. Note
9119 that the smart attachment procedure is never performed for
9120 differencing hard disks.
9121 </td>
9122 </tr>
9123 <tr>
9124 <td>Immutable</td>
9125 <td>
9126 Immutable hard disks are always attached <b>indirectly</b> because
9127 they are designed to be non-writable. If an immutable hard disk is
9128 attached to a virtual machine with snapshots then a special
9129 procedure called smart attachment is performed (see below).
9130 </td>
9131 </tr>
9132 <tr>
9133 <td>Writethrough</td>
9134 <td>
9135 Writethrough hard disks are always attached <b>directly</b>, also as
9136 designed. This also means that writethrough hard disks cannot have
9137 other hard disks linked to them at all.
9138 </td>
9139 </tr>
9140 </table>
9141
9142 Note that the same hard disk, regardless of its type, may be attached to
9143 more than one virtual machine at a time. In this case, the machine that is
9144 started first gains exclusive access to the hard disk and attempts to
9145 start other machines having this hard disk attached will fail until the
9146 first machine is powered down.
9147
9148 Detaching hard disks is performed in a <i>deferred</i> fashion. This means
9149 that the given hard disk remains associated with the given machine after a
9150 successful <link to="IMachine::detachHardDisk"/> call until
9151 <link to="IMachine::saveSettings"/> is called to save all changes to
9152 machine settings to disk. This deferring is necessary to guarantee that
9153 the hard disk configuration may be restored at any time by a call to
9154 <link to="IMachine::discardSettings"/> before the settings
9155 are saved (committed).
9156
9157 Note that if <link to="IMachine::discardSettings"/> is called after
9158 indirectly attaching some hard disks to the machine but before a call to
9159 <link to="IMachine::saveSettings"/> is made, it will implicitly delete
9160 all differencing hard disks implicitly created by
9161 <link to="IMachine::attachHardDisk"/> for these indirect attachments.
9162 Such implicitly created hard disks will also be immediately deleted when
9163 detached explicitly using the <link to="IMachine::detachHardDisk"/>
9164 call if it is made before <link to="IMachine::saveSettings"/>. This
9165 implicit deletion is safe because newly created differencing hard
9166 disks do not contain any user data.
9167
9168 However, keep in mind that detaching differencing hard disks that were
9169 implicitly created by <link to="IMachine::attachHardDisk"/>
9170 before the last <link to="IMachine::saveSettings"/> call will
9171 <b>not</b> implicitly delete them as they may already contain some data
9172 (for example, as a result of virtual machine execution). If these hard
9173 disks are no more necessary, the caller can always delete them explicitly
9174 using <link to="#deleteStorage"/> after they are actually de-associated
9175 from this machine by the <link to="IMachine::saveSettings"/> call.
9176
9177 <h3>Smart Attachment</h3>
9178
9179 When normal base or immutable hard disks are indirectly attached to a
9180 virtual machine then some additional steps are performed to make sure the
9181 virtual machine will have the most recent "view" of the hard disk being
9182 attached. These steps include walking through the machine's snapshots
9183 starting from the current one and going through ancestors up to the first
9184 snapshot. Hard disks attached to the virtual machine in all
9185 of the encountered snapshots are checked whether they are descendants of
9186 the given normal base or immutable hard disk. The first found child (which
9187 is the differencing hard disk) will be used instead of the normal base or
9188 immutable hard disk as a parent for creating a new differencing hard disk
9189 that will be actually attached to the machine. And only if no descendants
9190 are found or if the virtual machine does not have any snapshots then the
9191 normal base or immutable hard disk will be used itself as a parent for
9192 this differencing hard disk.
9193
9194 It is easier to explain what smart attachment does using the
9195 following example:
9196 <pre>
9197BEFORE attaching B.vdi: AFTER attaching B.vdi:
9198
9199Snapshot 1 (B.vdi) Snapshot 1 (B.vdi)
9200 Snapshot 2 (D1->B.vdi) Snapshot 2 (D1->B.vdi)
9201 Snapshot 3 (D2->D1.vdi) Snapshot 3 (D2->D1.vdi)
9202 Snapshot 4 (none) Snapshot 4 (none)
9203 CurState (none) CurState (D3->D2.vdi)
9204
9205 NOT
9206 ...
9207 CurState (D3->B.vdi)
9208 </pre>
9209 The first column is the virtual machine configuration before the base hard
9210 disk <tt>B.vdi</tt> is attached, the second column shows the machine after
9211 this hard disk is attached. Constructs like <tt>D1->B.vdi</tt> and similar
9212 mean that the hard disk that is actually attached to the machine is a
9213 differencing hard disk, <tt>D1.vdi</tt>, which is linked to (based on)
9214 another hard disk, <tt>B.vdi</tt>.
9215
9216 As we can see from the example, the hard disk <tt>B.vdi</tt> was detached
9217 from the machine before taking Snapshot 4. Later, after Snapshot 4 was
9218 taken, the user decides to attach <tt>B.vdi</tt> again. <tt>B.vdi</tt> has
9219 dependent child hard disks (<tt>D1.vdi</tt>, <tt>D2.vdi</tt>), therefore
9220 it cannot be attached directly and needs an indirect attachment (i.e.
9221 implicit creation of a new differencing hard disk). Due to the smart
9222 attachment procedure, the new differencing hard disk
9223 (<tt>D3.vdi</tt>) will be based on <tt>D2.vdi</tt>, not on
9224 <tt>B.vdi</tt> itself, since <tt>D2.vdi</tt> is the most recent view of
9225 <tt>B.vdi</tt> existing for this snapshot branch of the given virtual
9226 machine.
9227
9228 Note that if there is more than one descendant hard disk of the given base
9229 hard disk found in a snapshot, and there is an exact device, channel and
9230 bus match, then this exact match will be used. Otherwise, the youngest
9231 descendant will be picked up.
9232
9233 There is one more important aspect of the smart attachment procedure which
9234 is not related to snapshots at all. Before walking through the snapshots
9235 as described above, the backup copy of the current list of hard disk
9236 attachment is searched for descendants. This backup copy is created when
9237 the hard disk configuration is changed for the first time after the last
9238 <link to="IMachine::saveSettings"/> call and used by
9239 <link to="IMachine::discardSettings"/> to undo the recent hard disk
9240 changes. When such a descendant is found in this backup copy, it will be
9241 simply re-attached back, without creating a new differencing hard disk for
9242 it. This optimization is necessary to make it possible to re-attach the
9243 base or immutable hard disk to a different bus, channel or device slot
9244 without losing the contents of the differencing hard disk actually
9245 attached to the machine in place of it.
9246 </desc>
9247
9248 <attribute name="format" type="wstring" readonly="yes">
9249 <desc>
9250 Storage format of this hard disk.
9251
9252 The value of this attribute is a string that specifies a backend used to
9253 store hard disk data. The storage format is defined when you create a
9254 new hard disk or automatically detected when you open an existing hard
9255 disk medium, and cannot be changed later.
9256
9257 The list of all storage formats supported by this VirtualBox
9258 installation can be obtained using
9259 <link to="ISystemProperties::hardDiskFormats"/>.
9260 </desc>
9261 </attribute>
9262
9263 <attribute name="type" type="HardDiskType">
9264 <desc>
9265 Type (role) of this hard disk.
9266
9267 The following constraints apply when changing the value of this
9268 attribute:
9269 <ul>
9270 <li>If a hard disk is attached to a virtual machine (either in the
9271 current state or in one of the snapshots), its type cannot be
9272 changed.
9273 </li>
9274 <li>As long as the hard disk has children, its type cannot be set
9275 to <link to="HardDiskType_Writethrough"/>.
9276 </li>
9277 <li>The type of all differencing hard disks is
9278 <link to="HardDiskType_Normal"/> and cannot be changed.
9279 </li>
9280 </ul>
9281
9282 The type of a newly created or opened hard disk is set to
9283 <link to="HardDiskType_Normal"/>.
9284 </desc>
9285 </attribute>
9286
9287 <attribute name="parent" type="IHardDisk" readonly="yes">
9288 <desc>
9289 Parent of this hard disk (a hard disk this hard disk is directly based
9290 on).
9291
9292 Only differencing hard disks have parents. For base (non-differencing)
9293 hard disks, @c null is returned.
9294 </desc>
9295 </attribute>
9296
9297 <attribute name="children" type="IHardDisk" safearray="yes" readonly="yes">
9298 <desc>
9299 Children of this hard disk (all differencing hard disks directly based
9300 on this hard disk). A @c null array is returned if this hard disk
9301 does not have any children.
9302 </desc>
9303 </attribute>
9304
9305 <attribute name="root" type="IHardDisk" readonly="yes">
9306 <desc>
9307 Root hard disk of this hard disk.
9308
9309 If this is a differencing hard disk, its root hard disk is the base hard
9310 disk the given hard disk branch starts from. For all other types of hard
9311 disks, this property returns the hard disk object itself (i.e. the same
9312 object this property is read on).
9313 </desc>
9314 </attribute>
9315
9316 <attribute name="readOnly" type="boolean" readonly="yes">
9317 <desc>
9318 Returns @c true if this hard disk is read-only and @c false otherwise.
9319
9320 A hard disk is considered to be read-only when its contents cannot be
9321 modified without breaking the integrity of other parties that depend on
9322 this hard disk such as its child hard disks or snapshots of virtual
9323 machines where this hard disk is attached to these machines. If there
9324 are no children and no such snapshots then there is no dependency and
9325 the hard disk is not read-only.
9326
9327 The value of this attribute can be used to determine the kind of the
9328 attachment that will take place when attaching this hard disk to a
9329 virtual machine. If the value is @c false then the hard disk will
9330 be attached directly. If the value is @c true then the hard disk
9331 will be attached indirectly by creating a new differencing child hard
9332 disk for that. See the interface description for more information.
9333
9334 Note that all <link to="HardDiskType_Immutable">Immutable</link> hard
9335 disks are always read-only while all
9336 <link to="HardDiskType_Writethrough">Writethrough</link> hard disks are
9337 always not.
9338
9339 <note>
9340 The read-only condition represented by this attribute is related to
9341 the hard disk type and usage, not to the current
9342 <link to="IMedium::state">media state</link> and not to the read-only
9343 state of the storage unit.
9344 </note>
9345 </desc>
9346 </attribute>
9347
9348 <attribute name="logicalSize" type="unsigned long long" readonly="yes">
9349 <desc>
9350 Logical size of this hard disk (in megabytes), as reported to the
9351 guest OS running inside the virtual machine this disk is
9352 attached to. The logical size is defined when the hard disk is created
9353 and cannot be changed later.
9354
9355 <note>
9356 Reading this property on a differencing hard disk will return the size
9357 of its <link to="#root"/> hard disk.
9358 </note>
9359 <note>
9360 For hard disks whose state is <link to="#state"/> is <link
9361 to="MediaState_Inaccessible"/>, the value of this property is the
9362 last known logical size. For <link to="MediaState_NotCreated"/> hard
9363 disks, the returned value is zero.
9364 </note>
9365 </desc>
9366 </attribute>
9367
9368 <attribute name="autoReset" type="boolean">
9369 <desc>
9370 Whether this differencing hard disk will be automatically reset each
9371 time a virtual machine it is attached to is powered up.
9372
9373 See <link to="#reset()"/> for more information about resetting
9374 differencing hard disks.
9375
9376 <note>
9377 Reading this property on a base (non-differencing) hard disk will
9378 always @c false. Changing the value of this property in this
9379 case is not supported.
9380 </note>
9381
9382 <result name="VBOX_E_NOT_SUPPORTED">
9383 This is not a differencing hard disk (when changing the attribute
9384 value).
9385 </result>
9386 </desc>
9387 </attribute>
9388
9389 <!-- storage methods -->
9390
9391 <method name="getProperty">
9392 <desc>
9393 Returns the value of the custom hard disk property with the given name.
9394
9395 The list of all properties supported by the given hard disk format can
9396 be obtained with <link to="IHardDiskFormat::describeProperties"/>.
9397
9398 Note that if this method returns an empty string in @a value, the
9399 requested property is supported but currently not assigned any value.
9400
9401 <result name="VBOX_E_OBJECT_NOT_FOUND">
9402 Requested property does not exist (not supported by the format).
9403 </result>
9404 <result name="E_INVALIDARG">@a name is @c null or empty.</result>
9405 </desc>
9406 <param name="name" type="wstring" dir="in">
9407 <desc>Name of the property to get.</desc>
9408 </param>
9409 <param name="value" type="wstring" dir="return">
9410 <desc>Current property value.</desc>
9411 </param>
9412 </method>
9413
9414 <method name="setProperty">
9415 <desc>
9416 Sets the value of the custom hard disk property with the given name.
9417
9418 The list of all properties supported by the given hard disk format can
9419 be obtained with <link to="IHardDiskFormat::describeProperties"/>.
9420
9421 Note that setting the property value to @c null or an empty string is
9422 equivalent to deleting the existing value. A default value (if it is
9423 defined for this property) will be used by the format backend in this
9424 case.
9425
9426 <result name="VBOX_E_OBJECT_NOT_FOUND">
9427 Requested property does not exist (not supported by the format).
9428 </result>
9429 <result name="E_INVALIDARG">@a name is @c null or empty.</result>
9430 </desc>
9431 <param name="name" type="wstring" dir="in">
9432 <desc>Name of the property to set.</desc>
9433 </param>
9434 <param name="value" type="wstring" dir="in">
9435 <desc>Property value to set.</desc>
9436 </param>
9437 </method>
9438
9439 <method name="getProperties">
9440 <desc>
9441 Returns values for a group of properties in one call.
9442
9443 The names of the properties to get are specified using the @a names
9444 argument which is a list of comma-separated property names or
9445 an empty string if all properties are to be returned. Note that currently
9446 the value of this argument is ignored and the method always returns all
9447 existing properties.
9448
9449 The list of all properties supported by the given hard disk format can
9450 be obtained with <link to="IHardDiskFormat::describeProperties"/>.
9451
9452 The method returns two arrays, the array of property names corresponding
9453 to the @a names argument and the current values of these properties.
9454 Both arrays have the same number of elements with each elemend at the
9455 given index in the first array corresponds to an element at the same
9456 index in the second array.
9457
9458 Note that for properties that do not have assigned values,
9459 an empty string is returned at the appropriate index in the
9460 @a returnValues array.
9461
9462 </desc>
9463 <param name="names" type="wstring" dir="in">
9464 <desc>
9465 Names of properties to get.
9466 </desc>
9467 </param>
9468 <param name="returnNames" type="wstring" safearray="yes" dir="out">
9469 <desc>Names of returned properties.</desc>
9470 </param>
9471 <param name="returnValues" type="wstring" safearray="yes" dir="return">
9472 <desc>Values of returned properties.</desc>
9473 </param>
9474 </method>
9475
9476 <method name="setProperties">
9477 <desc>
9478 Sets values for a group of properties in one call.
9479
9480 The names of the properties to set are passed in the @a names
9481 array along with the new values for them in the @a values array. Both
9482 arrays have the same number of elements with each elemend at the given
9483 index in the first array corresponding to an element at the same index
9484 in the second array.
9485
9486 If there is at least one property name in @a names that is not valid,
9487 the method will fail before changing the values of any other properties
9488 from the @a names array.
9489
9490 Using this method over <link to="#setProperty"/> is preferred if you
9491 need to set several properties at once since it will result into less
9492 IPC calls.
9493
9494 The list of all properties supported by the given hard disk format can
9495 be obtained with <link to="IHardDiskFormat::describeProperties"/>.
9496
9497 Note that setting the property value to @c null or an empty string is
9498 equivalent to deleting the existing value. A default value (if it is
9499 defined for this property) will be used by the format backend in this
9500 case.
9501 </desc>
9502 <param name="names" type="wstring" safearray="yes" dir="in">
9503 <desc>Names of properties to set.</desc>
9504 </param>
9505 <param name="values" type="wstring" safearray="yes" dir="in">
9506 <desc>Values of properties to set.</desc>
9507 </param>
9508 </method>
9509
9510 <!-- storage methods -->
9511
9512 <method name="createBaseStorage">
9513 <desc>
9514 Starts creating a hard disk storage unit (fixed/dynamic, according
9515 to the variant flags) in in the background. The previous storage unit
9516 created for this object, if any, must first be deleted using
9517 <link to="#deleteStorage"/>, otherwise the operation will fail.
9518
9519 Before the operation starts, the hard disk is placed in
9520 <link to="MediaState_Creating"/> state. If the create operation
9521 fails, the media will be placed back in <link to="MediaState_NotCreated"/>
9522 state.
9523
9524 After the returned progress object reports that the operation has
9525 successfully completed, the media state will be set to <link
9526 to="MediaState_Created"/>, the hard disk will be remembered by this
9527 VirtualBox installation and may be attached to virtual machines.
9528
9529 <result name="VBOX_E_NOT_SUPPORTED">
9530 The variant of storage creation operation is not supported. See <link
9531 to="IHardDiskFormat::capabilities"/>.
9532 </result>
9533 </desc>
9534 <param name="logicalSize" type="unsigned long long" dir="in">
9535 <desc>Maximum logical size of the hard disk in megabytes.</desc>
9536 </param>
9537 <param name="variant" type="HardDiskVariant" dir="in">
9538 <desc>Exact image variant which should be created.</desc>
9539 </param>
9540 <param name="progress" type="IProgress" dir="return">
9541 <desc>Progress object to track the operation completion.</desc>
9542 </param>
9543 </method>
9544
9545 <method name="deleteStorage">
9546 <desc>
9547 Starts deleting the storage unit of this hard disk.
9548
9549 The hard disk must not be attached to any known virtual machine and must
9550 not have any known child hard disks, otherwise the operation will fail.
9551 It will also fail if there is no storage unit to delete or if deletion
9552 is already in progress, or if the hard disk is being in use (locked for
9553 read or for write) or inaccessible. Therefore, the only valid state for
9554 this operation to succeed is <link to="MediaState_Created"/>.
9555
9556 Before the operation starts, the hard disk is placed to
9557 <link to="MediaState_Deleting"/> state and gets removed from the list
9558 of remembered hard disks (media registry). If the delete operation
9559 fails, the media will be remembered again and placed back to
9560 <link to="MediaState_Created"/> state.
9561
9562 After the returned progress object reports that the operation is
9563 complete, the media state will be set to
9564 <link to="MediaState_NotCreated"/> and you will be able to use one of
9565 the storage creation methods to create it again.
9566
9567 <see>#close()</see>
9568
9569 <result name="VBOX_E_OBJECT_IN_USE">
9570 Hard disk is attached to a virtual machine.
9571 </result>
9572 <result name="VBOX_E_NOT_SUPPORTED">
9573 Storage deletion is not allowed because neither of storage creation
9574 operations are supported. See
9575 <link to="IHardDiskFormat::capabilities"/>.
9576 </result>
9577
9578 <note>
9579 If the deletion operation fails, it is not guaranteed that the storage
9580 unit still exists. You may check the <link to="IMedium::state"/> value
9581 to answer this question.
9582 </note>
9583 </desc>
9584 <param name="progress" type="IProgress" dir="return">
9585 <desc>Progress object to track the operation completion.</desc>
9586 </param>
9587 </method>
9588
9589 <!-- diff methods -->
9590
9591 <method name="createDiffStorage">
9592 <desc>
9593 Starts creating an empty differencing storage unit based on this hard
9594 disk in the format and at the location defined by the @a target
9595 argument.
9596
9597 The target hard disk must be in <link to="MediaState_NotCreated"/>
9598 state (i.e. must not have an existing storage unit). Upon successful
9599 completion, this operation will set the type of the target hard disk to
9600 <link to="HardDiskType_Normal"/> and create a storage unit necessary to
9601 represent the differencing hard disk data in the given format (according
9602 to the storage format of the target object).
9603
9604 After the returned progress object reports that the operation is
9605 successfully complete, the target hard disk gets remembered by this
9606 VirtualBox installation and may be attached to virtual machines.
9607
9608 <note>
9609 The hard disk will be set to <link to="MediaState_LockedRead"/>
9610 state for the duration of this operation.
9611 </note>
9612 <result name="VBOX_E_OBJECT_IN_USE">
9613 Hard disk not in @c NotCreated state.
9614 </result>
9615 </desc>
9616 <param name="target" type="IHardDisk" dir="in">
9617 <desc>Target hard disk.</desc>
9618 </param>
9619 <param name="variant" type="HardDiskVariant" dir="in">
9620 <desc>Exact image variant which should be created.</desc>
9621 </param>
9622 <param name="progress" type="IProgress" dir="return">
9623 <desc>Progress object to track the operation completion.</desc>
9624 </param>
9625 </method>
9626
9627 <method name="mergeTo">
9628 <desc>
9629 Starts merging the contents of this hard disk and all intermediate
9630 differencing hard disks in the chain to the given target hard disk.
9631
9632 The target hard disk must be either a descendant of this hard disk or
9633 its ancestor (otherwise this method will immediately return a failure).
9634 It follows that there are two logical directions of the merge operation:
9635 from ancestor to descendant (<i>forward merge</i>) and from descendant to
9636 ancestor (<i>backward merge</i>). Let us consider the following hard disk
9637 chain:
9638
9639 <pre>Base &lt;- Diff_1 &lt;- Diff_2</pre>
9640
9641 Here, calling this method on the <tt>Base</tt> hard disk object with
9642 <tt>Diff_2</tt> as an argument will be a forward merge; calling it on
9643 <tt>Diff_2</tt> with <tt>Base</tt> as an argument will be a backward
9644 merge. Note that in both cases the contents of the resulting hard disk
9645 will be the same, the only difference is the hard disk object that takes
9646 the result of the merge operation. In case of the forward merge in the
9647 above example, the result will be written to <tt>Diff_2</tt>; in case of
9648 the backward merge, the result will be written to <tt>Base</tt>. In
9649 other words, the result of the operation is always stored in the target
9650 hard disk.
9651
9652 Upon successful operation completion, the storage units of all hard
9653 disks in the chain between this (source) hard disk and the target hard
9654 disk, including the source hard disk itself, will be automatically
9655 deleted and the relevant hard disk objects (including this hard disk)
9656 will become uninitialized. This means that any attempt to call any of
9657 their methods or attributes will fail with the
9658 <tt>"Object not ready" (E_ACCESSDENIED)</tt> error. Applied to the above
9659 example, the forward merge of <tt>Base</tt> to <tt>Diff_2</tt> will
9660 delete and uninitialize both <tt>Base</tt> and <tt>Diff_1</tt> hard
9661 disks. Note that <tt>Diff_2</tt> in this case will become a base hard
9662 disk itself since it will no longer be based on any other hard disk.
9663
9664 Considering the above, all of the following conditions must be met in
9665 order for the merge operation to succeed:
9666 <ul>
9667 <li>
9668 Neither this (source) hard disk nor any intermediate
9669 differencing hard disk in the chain between it and the target
9670 hard disk is attached to any virtual machine.
9671 </li>
9672 <li>
9673 Neither the source hard disk nor the target hard disk is an
9674 <link to="HardDiskType_Immutable"/> hard disk.
9675 </li>
9676 <li>
9677 The part of the hard disk tree from the source hard disk to the
9678 target hard disk is a linear chain, i.e. all hard disks in this
9679 chain have exactly one child which is the next hard disk in this
9680 chain. The only exception from this rule is the target hard disk in
9681 the forward merge operation; it is allowed to have any number of
9682 child hard disks because the merge operation will hot change its
9683 logical contents (as it is seen by the guest OS or by children).
9684 </li>
9685 <li>
9686 None of the involved hard disks are in
9687 <link to="MediaState_LockedRead"/> or
9688 <link to="MediaState_LockedWrite"/> state.
9689 </li>
9690 </ul>
9691
9692 <note>
9693 This (source) hard disk and all intermediates will be placed to <link
9694 to="MediaState_Deleting"/> state and the target hard disk will be
9695 placed to <link to="MediaState_LockedWrite"/> state and for the
9696 duration of this operation.
9697 </note>
9698 </desc>
9699 <param name="targetId" type="wstring" dir="in">
9700 <desc>UUID of the target ancestor or descendant hard disk.</desc>
9701 </param>
9702 <param name="progress" type="IProgress" dir="return">
9703 <desc>Progress object to track the operation completion.</desc>
9704 </param>
9705 </method>
9706
9707 <!-- clone method -->
9708
9709 <method name="cloneTo">
9710 <desc>
9711 Starts creating a clone of this hard disk in the format and at the
9712 location defined by the @a target argument.
9713
9714 The target hard disk must be either in <link to="MediaState_NotCreated"/>
9715 state (i.e. must not have an existing storage unit) or in
9716 <link to="MediaState_Created"/> state (i.e. created and not locked, and
9717 big enough to hold the data or else the copy will be partial). Upon
9718 successful completion, the cloned hard disk will contain exactly the
9719 same sector data as the hard disk being cloned, except that in the
9720 first case a new UUID for the clone will be randomly generated, and in
9721 the second case the UUID will remain unchanged.
9722
9723 The @a parent argument defines which hard disk will be the parent
9724 of the clone. Passing a @c null reference indicates that the clone will
9725 be a base image, i.e. completely independent. It is possible to specify
9726 an arbitrary hard disk for this parameter, including the parent of the
9727 hard disk which is being cloned. Even cloning to a child of the source
9728 hard disk is possible. Note that when cloning to an existing image, the
9729 @a parent irgument is ignored.
9730
9731 After the returned progress object reports that the operation is
9732 successfully complete, the target hard disk gets remembered by this
9733 VirtualBox installation and may be attached to virtual machines.
9734
9735 <note>
9736 This hard disk will be placed to <link to="MediaState_LockedRead"/>
9737 state for the duration of this operation.
9738 </note>
9739 <result name="E_NOTIMPL">
9740 The specified cloning variant is not supported at the moment.
9741 </result>
9742 </desc>
9743 <param name="target" type="IHardDisk" dir="in">
9744 <desc>Target hard disk.</desc>
9745 </param>
9746 <param name="variant" type="HardDiskVariant" dir="in">
9747 <desc>Exact image variant which should be created.</desc>
9748 </param>
9749 <param name="parent" type="IHardDisk" dir="in">
9750 <desc>Parent of the cloned hard disk.</desc>
9751 </param>
9752 <param name="progress" type="IProgress" dir="return">
9753 <desc>Progress object to track the operation completion.</desc>
9754 </param>
9755 </method>
9756
9757 <!-- other methods -->
9758
9759 <method name="compact">
9760 <desc>
9761 Starts compacting of this hard disk. This means that the disk is
9762 transformed into a possibly more compact storage representation.
9763 This potentially creates temporary images, which can require a
9764 substantial amount of additional disk space.
9765
9766 This hard disk will be placed to <link to="MediaState_LockedWrite"/>
9767 state and all its parent hard disks (if any) will be placed to
9768 <link to="MediaState_LockedRead"/> state for the duration of this
9769 operation.
9770
9771 Please note that the results can be either returned straight away,
9772 or later as the result of the background operation via the object
9773 returned via the @a progress parameter.
9774
9775 <result name="VBOX_E_NOT_SUPPORTED">
9776 Hard disk format does not support compacting (but potentially
9777 needs it).
9778 </result>
9779 </desc>
9780 <param name="progress" type="IProgress" dir="return">
9781 <desc>Progress object to track the operation completion.</desc>
9782 </param>
9783 </method>
9784
9785 <method name="reset">
9786 <desc>
9787 Starts erasing the contents of this differencing hard disk.
9788
9789 This operation will reset the differencing hard disk to its initial
9790 state when it does not contain any sector data and any read operation is
9791 redirected to its parent hard disk.
9792
9793 This hard disk will be placed to <link to="MediaState_LockedWrite"/>
9794 for the duration of this operation.
9795
9796 <result name="VBOX_E_NOT_SUPPORTED">
9797 This is not a differencing hard disk.
9798 </result>
9799 <result name="VBOX_E_INVALID_OBJECT_STATE">
9800 Hard disk is not in <link to="MediaState_Created"/> or
9801 <link to="MediaState_Inaccessible"/> state.
9802 </result>
9803 </desc>
9804 <param name="progress" type="IProgress" dir="return">
9805 <desc>Progress object to track the operation completion.</desc>
9806 </param>
9807 </method>
9808
9809 </interface>
9810
9811
9812 <!--
9813 // IHardDiskFormat
9814 /////////////////////////////////////////////////////////////////////////
9815 -->
9816
9817 <enum
9818 name="DataType"
9819 uuid="d90ea51e-a3f1-4a01-beb1-c1723c0d3ba7"
9820 >
9821 <const name="Int32" value="0"/>
9822 <const name="Int8" value="1"/>
9823 <const name="String" value="2"/>
9824 </enum>
9825
9826 <enum
9827 name="DataFlags"
9828 uuid="86884dcf-1d6b-4f1b-b4bf-f5aa44959d60"
9829 >
9830 <const name="None" value="0x00"/>
9831 <const name="Mandatory" value="0x01"/>
9832 <const name="Expert" value="0x02"/>
9833 <const name="Array" value="0x04"/>
9834 <const name="FlagMask" value="0x07"/>
9835 </enum>
9836
9837 <enum
9838 name="HardDiskFormatCapabilities"
9839 uuid="1df1e4aa-d25a-4ba6-b2a2-02f60eb5903b"
9840 >
9841 <desc>
9842 Hard disk format capability flags.
9843 </desc>
9844
9845 <const name="Uuid" value="0x01">
9846 <desc>
9847 Supports UUIDs as expected by VirtualBox code.
9848 </desc>
9849 </const>
9850
9851 <const name="CreateFixed" value="0x02">
9852 <desc>
9853 Supports creating fixed size images, allocating all space instantly.
9854 </desc>
9855 </const>
9856
9857 <const name="CreateDynamic" value="0x04">
9858 <desc>
9859 Supports creating dynamically growing images, allocating space on
9860 demand.
9861 </desc>
9862 </const>
9863
9864 <const name="CreateSplit2G" value="0x08">
9865 <desc>
9866 Supports creating images split in chunks of a bit less than 2 GBytes.
9867 </desc>
9868 </const>
9869
9870 <const name="Differencing" value="0x10">
9871 <desc>
9872 Supports being used as a format for differencing hard disks (see <link
9873 to="IHardDisk::createDiffStorage"/>).
9874 </desc>
9875 </const>
9876
9877 <const name="Asynchronous" value="0x20">
9878 <desc>
9879 Supports asynchronous I/O operations for at least some configurations.
9880 </desc>
9881 </const>
9882
9883 <const name="File" value="0x40">
9884 <desc>
9885 The format backend operates on files (the <link to="IMedium::location"/>
9886 attribute of the hard disk specifies a file used to store hard disk
9887 data; for a list of supported file extensions see
9888 <link to="IHardDiskFormat::fileExtensions"/>).
9889 </desc>
9890 </const>
9891
9892 <const name="Properties" value="0x80">
9893 <desc>
9894 The format backend uses the property interface to configure the storage
9895 location and properties (the <link to="IHardDiskFormat::describeProperties"/>
9896 method is used to get access to properties supported by the given hard
9897 disk format).
9898 </desc>
9899 </const>
9900
9901 <const name="CapabilityMask" value="0xFF"/>
9902 </enum>
9903
9904 <interface
9905 name="IHardDiskFormat" extends="$unknown"
9906 uuid="7f3ba790-3a0b-4a8a-bac2-bb50150123c5"
9907 wsmap="managed"
9908 >
9909 <desc>
9910 The IHardDiskFormat interface represents a virtual hard disk format.
9911
9912 Each hard disk format has an associated backend which is used to handle
9913 hard disks stored in this format. This interface provides information
9914 about the properties of the associated backend.
9915
9916 Each hard disk format is identified by a string represented by the
9917 <link to="#id"/> attribute. This string is used in calls like
9918 <link to="IVirtualBox::createHardDisk"/> to specify the desired
9919 format.
9920
9921 The list of all supported hard disk formats can be obtained using
9922 <link to="ISystemProperties::hardDiskFormats"/>.
9923
9924 <see>IHardDisk</see>
9925 </desc>
9926
9927 <attribute name="id" type="wstring" readonly="yes">
9928 <desc>
9929 Identifier of this format.
9930
9931 The format identifier is a non-@c null non-empty ASCII string. Note that
9932 this string is case-insensitive. This means that, for example, all of
9933 the following strings:
9934 <pre>
9935 "VDI"
9936 "vdi"
9937 "VdI"</pre>
9938 refer to the same hard disk format.
9939
9940 This string is used in methods of other interfaces where it is necessary
9941 to specify a hard disk format, such as
9942 <link to="IVirtualBox::createHardDisk"/>.
9943 </desc>
9944 </attribute>
9945
9946 <attribute name="name" type="wstring" readonly="yes">
9947 <desc>
9948 Human readable description of this format.
9949
9950 Mainly for use in file open dialogs.
9951 </desc>
9952 </attribute>
9953
9954 <attribute name="fileExtensions" type="wstring" safearray="yes" readonly="yes">
9955 <desc>
9956 Array of strings containing the supported file extensions.
9957
9958 The first extension in the array is the extension preferred by the
9959 backend. It is recommended to use this extension when specifying a
9960 location of the storage unit for a new hard disk.
9961
9962 Note that some backends do not work on files, so this array may be
9963 empty.
9964
9965 <see>IHardDiskFormat::capabilities</see>
9966 </desc>
9967 </attribute>
9968
9969 <attribute name="capabilities" type="unsigned long" readonly="yes">
9970 <desc>
9971 Capabilities of the format as a set of bit flags.
9972
9973 For the meaning of individual capability flags see
9974 <link to="HardDiskFormatCapabilities"/>.
9975 </desc>
9976 </attribute>
9977
9978 <method name="describeProperties">
9979 <desc>
9980 Returns several arrays describing the properties supported by this
9981 format.
9982
9983 An element with the given index in each array describes one
9984 property. Thus, the number of elements in each returned array is the
9985 same and corresponds to the number of supported properties.
9986
9987 The returned arrays are filled in only if the
9988 <link to="HardDiskFormatCapabilities_Properties"/> flag is set.
9989 All arguments must be non-@c null.
9990
9991 <see>DataType</see>
9992 <see>DataFlags</see>
9993 </desc>
9994
9995 <param name="names" type="wstring" safearray="yes" dir="out">
9996 <desc>Array of property names.</desc>
9997 </param>
9998 <param name="description" type="wstring" safearray="yes" dir="out">
9999 <desc>Array of property descriptions.</desc>
10000 </param>
10001 <param name="types" type="DataType" safearray="yes" dir="out">
10002 <desc>Array of property types.</desc>
10003 </param>
10004 <param name="flags" type="unsigned long" safearray="yes" dir="out">
10005 <desc>Array of property flags.</desc>
10006 </param>
10007 <param name="defaults" type="wstring" safearray="yes" dir="out">
10008 <desc>Array of default property values.</desc>
10009 </param>
10010 </method>
10011
10012 </interface>
10013
10014
10015 <!--
10016 // IFloppyImage
10017 /////////////////////////////////////////////////////////////////////////
10018 -->
10019
10020 <interface
10021 name="IFloppyImage" extends="IMedium"
10022 uuid="faa6101f-078c-4b3a-ab75-75670c8170b3"
10023 wsmap="managed"
10024 >
10025 <desc>
10026 The IFloppyImage interface represents a medium containing the image
10027 of a floppy disk. This is a subclass of <link to="IMedium" />; see remarks there.
10028 </desc>
10029
10030 </interface>
10031
10032
10033 <!--
10034 // IDVDImage
10035 /////////////////////////////////////////////////////////////////////////
10036 -->
10037
10038 <interface
10039 name="IDVDImage" extends="IMedium"
10040 uuid="b1f90bbb-e8a9-4484-9af1-3638e943f763"
10041 wsmap="managed"
10042 >
10043 <desc>
10044 The IDVDImage interface represents a medium containing the image
10045 of a CD or DVD disk in the ISO format.
10046
10047 This is a subclass of <link to="IMedium" />; see remarks there.
10048 </desc>
10049
10050 </interface>
10051
10052
10053 <!--
10054 // IDVDDrive
10055 /////////////////////////////////////////////////////////////////////////
10056 -->
10057
10058 <interface
10059 name="IDVDDrive" extends="$unknown"
10060 uuid="156944d1-4c6d-4812-8f12-ab3890767ab4"
10061 wsmap="managed"
10062 >
10063 <desc>
10064 The IDVDDrive interface represents the virtual CD/DVD drive of the
10065 virtual machine. An object of this type is returned by
10066 <link to="IMachine::DVDDrive"/>.
10067 </desc>
10068
10069 <attribute name="state" type="DriveState" readonly="yes">
10070 <desc>Current drive state.</desc>
10071 </attribute>
10072
10073 <attribute name="passthrough" type="boolean">
10074 <desc>
10075 When a host drive is mounted and passthrough is enabled
10076 the guest OS will be able to directly send SCSI commands to
10077 the host drive. This enables the guest OS to use CD/DVD writers
10078 but is potentially dangerous.
10079 </desc>
10080 </attribute>
10081
10082 <method name="mountImage">
10083 <desc>Mounts a CD/DVD image with the specified UUID.
10084
10085 <result name="VBOX_E_FILE_ERROR">
10086 Invalid image file location.
10087 </result>
10088 <result name="VBOX_E_OBJECT_NOT_FOUND">
10089 Could not find a CD/DVD image matching @a imageId.
10090 </result>
10091 <result name="VBOX_E_INVALID_OBJECT_STATE">
10092 Invalid media state.
10093 </result>
10094
10095 </desc>
10096 <param name="imageId" type="wstring" dir="in"/>
10097 </method>
10098
10099 <method name="captureHostDrive">
10100 <desc>Captures the specified host CD/DVD drive.</desc>
10101 <param name="drive" type="IHostDVDDrive" dir="in"/>
10102 </method>
10103
10104 <method name="unmount">
10105 <desc>Unmounts the currently mounted image or host drive.</desc>
10106 </method>
10107
10108 <method name="getImage">
10109 <desc>Returns the currently mounted CD/DVD image.</desc>
10110 <param name="image" type="IDVDImage" dir="return"/>
10111 </method>
10112
10113 <method name="getHostDrive">
10114 <desc>Returns the currently mounted host CD/DVD drive.</desc>
10115 <param name="drive" type="IHostDVDDrive" dir="return"/>
10116 </method>
10117
10118 </interface>
10119
10120
10121 <!--
10122 // IFloppyDrive
10123 /////////////////////////////////////////////////////////////////////////
10124 -->
10125
10126 <interface
10127 name="IFloppyDrive" extends="$unknown"
10128 uuid="a8676d38-5cf0-4b53-85b1-aa693611ab86"
10129 wsmap="managed"
10130 >
10131 <desc>
10132 The IFloppyDrive interface represents the virtual floppy drive of the
10133 virtual machine. An object of this type is returned by
10134 <link to="IMachine::floppyDrive" />.
10135 </desc>
10136
10137 <attribute name="enabled" type="boolean">
10138 <desc>
10139 Flag whether the floppy drive is enabled. If it is disabled,
10140 the floppy drive will not be reported to the guest OS.
10141 </desc>
10142 </attribute>
10143
10144 <attribute name="state" type="DriveState" readonly="yes">
10145 <desc>Current drive state.</desc>
10146 </attribute>
10147
10148 <method name="mountImage">
10149 <desc>Mounts a floppy image with the specified UUID.
10150
10151 <result name="VBOX_E_FILE_ERROR">
10152 Invalid image file location.
10153 </result>
10154 <result name="VBOX_E_OBJECT_NOT_FOUND">
10155 Could not find a floppy image matching @a imageID.
10156 </result>
10157 <result name="VBOX_E_INVALID_OBJECT_STATE">
10158 Invalid media state.
10159 </result>
10160
10161 </desc>
10162 <param name="imageId" type="wstring" dir="in"/>
10163 </method>
10164
10165 <method name="captureHostDrive">
10166 <desc>Captures the specified host floppy drive.</desc>
10167 <param name="drive" type="IHostFloppyDrive" dir="in"/>
10168 </method>
10169
10170 <method name="unmount">
10171 <desc>Unmounts the currently mounted image or host drive.</desc>
10172 </method>
10173
10174 <method name="getImage">
10175 <desc>Returns the currently mounted floppy image.</desc>
10176 <param name="image" type="IFloppyImage" dir="return"/>
10177 </method>
10178
10179 <method name="getHostDrive">
10180 <desc>Returns the currently mounted host floppy drive.</desc>
10181 <param name="drive" type="IHostFloppyDrive" dir="return"/>
10182 </method>
10183
10184 </interface>
10185
10186
10187 <!--
10188 // IKeyboard
10189 /////////////////////////////////////////////////////////////////////////
10190 -->
10191
10192 <interface
10193 name="IKeyboard" extends="$unknown"
10194 uuid="2d1a531b-4c6e-49cc-8af6-5c857b78b5d7"
10195 wsmap="managed"
10196 >
10197 <desc>
10198 The IKeyboard interface represents the virtual machine's keyboard. Used
10199 in <link to="IConsole::keyboard"/>.
10200
10201 Use this interface to send keystrokes or the Ctrl-Alt-Del sequence
10202 to the virtual machine.
10203
10204 </desc>
10205 <method name="putScancode">
10206 <desc>Sends a scancode to the keyboard.
10207
10208 <result name="VBOX_E_IPRT_ERROR">
10209 Could not send scan code to virtual keyboard.
10210 </result>
10211
10212 </desc>
10213 <param name="scancode" type="long" dir="in"/>
10214 </method>
10215
10216 <method name="putScancodes">
10217 <desc>Sends an array of scancodes to the keyboard.
10218
10219 <result name="VBOX_E_IPRT_ERROR">
10220 Could not send all scan codes to virtual keyboard.
10221 </result>
10222
10223 </desc>
10224 <param name="scancodes" type="long" dir="in" safearray="yes"/>
10225 <param name="codesStored" type="unsigned long" dir="return"/>
10226 </method>
10227
10228 <method name="putCAD">
10229 <desc>Sends the Ctrl-Alt-Del sequence to the keyboard. This
10230 function is nothing special, it is just a convenience function
10231 calling <link to="IKeyboard::putScancodes"/> with the proper scancodes.
10232
10233 <result name="VBOX_E_IPRT_ERROR">
10234 Could not send all scan codes to virtual keyboard.
10235 </result>
10236
10237 </desc>
10238 </method>
10239
10240 </interface>
10241
10242
10243 <!--
10244 // IMouse
10245 /////////////////////////////////////////////////////////////////////////
10246 -->
10247
10248 <enum
10249 name="MouseButtonState"
10250 uuid="03131722-2EC5-4173-9794-0DACA46673EF"
10251 >
10252 <desc>
10253 Mouse button state.
10254 </desc>
10255
10256 <const name="LeftButton" value="0x01"/>
10257 <const name="RightButton" value="0x02"/>
10258 <const name="MiddleButton" value="0x04"/>
10259 <const name="WheelUp" value="0x08"/>
10260 <const name="WheelDown" value="0x10"/>
10261 <const name="MouseStateMask" value="0x1F"/>
10262 </enum>
10263
10264 <interface
10265 name="IMouse" extends="$unknown"
10266 uuid="FD443EC1-0006-4F5B-9282-D72760A66916"
10267 wsmap="managed"
10268 >
10269 <desc>
10270 The IMouse interface represents the virtual machine's mouse. Used in
10271 <link to="IConsole::mouse"/>.
10272
10273 Through this interface, the virtual machine's virtual mouse can be
10274 controlled.
10275 </desc>
10276
10277 <attribute name="absoluteSupported" type="boolean" readonly="yes">
10278 <desc>
10279 Whether the guest OS supports absolute mouse pointer positioning
10280 or not.
10281 <note>
10282 VirtualBox Guest Tools need to be installed to the guest OS
10283 in order to enable absolute mouse positioning support.
10284 You can use the <link to="IConsoleCallback::onMouseCapabilityChange"/>
10285 callback to be instantly informed about changes of this attribute
10286 during virtual machine execution.
10287 </note>
10288 <see><link to="#putMouseEventAbsolute"/></see>
10289 </desc>
10290 </attribute>
10291
10292 <method name="putMouseEvent">
10293 <desc>
10294 Initiates a mouse event using relative pointer movements
10295 along x and y axis.
10296
10297 <result name="E_ACCESSDENIED">
10298 Console not powered up.
10299 </result>
10300 <result name="VBOX_E_IPRT_ERROR">
10301 Could not send mouse event to virtual mouse.
10302 </result>
10303
10304 </desc>
10305
10306 <param name="dx" type="long" dir="in">
10307 <desc>
10308 Amount of pixels the mouse should move to the right.
10309 Negative values move the mouse to the left.
10310 </desc>
10311 </param>
10312 <param name="dy" type="long" dir="in">
10313 <desc>
10314 Amount of pixels the mouse should move downwards.
10315 Negative values move the mouse upwards.
10316 </desc>
10317 </param>
10318 <param name="dz" type="long" dir="in">
10319 <desc>
10320 Amount of mouse wheel moves.
10321 Positive values describe clockwise wheel rotations,
10322 negative values describe counterclockwise rotations.
10323 </desc>
10324 </param>
10325 <param name="buttonState" type="long" dir="in">
10326 <desc>
10327 The current state of mouse buttons. Every bit represents
10328 a mouse button as follows:
10329 <table>
10330 <tr><td>Bit 0 (<tt>0x01</tt>)</td><td>left mouse button</td></tr>
10331 <tr><td>Bit 1 (<tt>0x02</tt>)</td><td>right mouse button</td></tr>
10332 <tr><td>Bit 2 (<tt>0x04</tt>)</td><td>middle mouse button</td></tr>
10333 </table>
10334 A value of <tt>1</tt> means the corresponding button is pressed.
10335 otherwise it is released.
10336 </desc>
10337 </param>
10338 </method>
10339
10340 <method name="putMouseEventAbsolute">
10341 <desc>
10342 Positions the mouse pointer using absolute x and y coordinates.
10343 These coordinates are expressed in pixels and
10344 start from <tt>[1,1]</tt> which corresponds to the top left
10345 corner of the virtual display.
10346
10347 <result name="E_ACCESSDENIED">
10348 Console not powered up.
10349 </result>
10350 <result name="VBOX_E_IPRT_ERROR">
10351 Could not send mouse event to virtual mouse.
10352 </result>
10353
10354 <note>
10355 This method will have effect only if absolute mouse
10356 positioning is supported by the guest OS.
10357 </note>
10358
10359 <see><link to="#absoluteSupported"/></see>
10360 </desc>
10361
10362 <param name="x" type="long" dir="in">
10363 <desc>
10364 X coordinate of the pointer in pixels, starting from @c 1.
10365 </desc>
10366 </param>
10367 <param name="y" type="long" dir="in">
10368 <desc>
10369 Y coordinate of the pointer in pixels, starting from @c 1.
10370 </desc>
10371 </param>
10372 <param name="dz" type="long" dir="in">
10373 <desc>
10374 Amount of mouse wheel moves.
10375 Positive values describe clockwise wheel rotations,
10376 negative values describe counterclockwise rotations.
10377 </desc>
10378 </param>
10379 <param name="buttonState" type="long" dir="in">
10380 <desc>
10381 The current state of mouse buttons. Every bit represents
10382 a mouse button as follows:
10383 <table>
10384 <tr><td>Bit 0 (<tt>0x01</tt>)</td><td>left mouse button</td></tr>
10385 <tr><td>Bit 1 (<tt>0x02</tt>)</td><td>right mouse button</td></tr>
10386 <tr><td>Bit 2 (<tt>0x04</tt>)</td><td>middle mouse button</td></tr>
10387 </table>
10388 A value of @c 1 means the corresponding button is pressed.
10389 otherwise it is released.
10390 </desc>
10391 </param>
10392 </method>
10393
10394 </interface>
10395
10396 <!--
10397 // IDisplay
10398 /////////////////////////////////////////////////////////////////////////
10399 -->
10400
10401 <enum
10402 name="FramebufferPixelFormat"
10403 uuid="7acfd5ed-29e3-45e3-8136-73c9224f3d2d"
10404 >
10405 <desc>
10406 Format of the video memory buffer. Constants represented by this enum can
10407 be used to test for particular values of <link
10408 to="IFramebuffer::pixelFormat"/>. See also <link
10409 to="IFramebuffer::requestResize"/>.
10410
10411 See also www.fourcc.org for more information about FOURCC pixel formats.
10412 </desc>
10413
10414 <const name="Opaque" value="0">
10415 <desc>
10416 Unknown buffer format (the user may not assume any particular format of
10417 the buffer).
10418 </desc>
10419 </const>
10420 <const name="FOURCC_RGB" value="0x32424752">
10421 <desc>
10422 Basic RGB format (<link to="IFramebuffer::bitsPerPixel"/> determines the
10423 bit layout).
10424 </desc>
10425 </const>
10426 </enum>
10427
10428 <interface
10429 name="IFramebuffer" extends="$unknown"
10430 uuid="b7ed347a-5765-40a0-ae1c-f543eb4ddeaf"
10431 wsmap="suppress"
10432 >
10433 <attribute name="address" type="octet" mod="ptr" readonly="yes">
10434 <desc>Address of the start byte of the frame buffer.</desc>
10435 </attribute>
10436
10437 <attribute name="width" type="unsigned long" readonly="yes">
10438 <desc>Frame buffer width, in pixels.</desc>
10439 </attribute>
10440
10441 <attribute name="height" type="unsigned long" readonly="yes">
10442 <desc>Frame buffer height, in pixels.</desc>
10443 </attribute>
10444
10445 <attribute name="bitsPerPixel" type="unsigned long" readonly="yes">
10446 <desc>
10447 Color depth, in bits per pixel. When <link to="#pixelFormat"/> is <link
10448 to="FramebufferPixelFormat_FOURCC_RGB">FOURCC_RGB</link>, valid values
10449 are: 8, 15, 16, 24 and 32.
10450 </desc>
10451 </attribute>
10452
10453 <attribute name="bytesPerLine" type="unsigned long" readonly="yes">
10454 <desc>
10455 Scan line size, in bytes. When <link to="#pixelFormat"/> is <link
10456 to="FramebufferPixelFormat_FOURCC_RGB">FOURCC_RGB</link>, the
10457 size of the scan line must be aligned to 32 bits.
10458 </desc>
10459 </attribute>
10460
10461 <attribute name="pixelFormat" type="unsigned long" readonly="yes">
10462 <desc>
10463 Frame buffer pixel format. It's either one of the values defined by <link
10464 to="FramebufferPixelFormat"/> or a raw FOURCC code.
10465 <note>
10466 This attribute must never return <link
10467 to="FramebufferPixelFormat_Opaque"/> -- the format of the buffer
10468 <link to="#address"/> points to must be always known.
10469 </note>
10470 </desc>
10471 </attribute>
10472
10473 <attribute name="usesGuestVRAM" type="boolean" readonly="yes">
10474 <desc>
10475 Defines whether this frame buffer uses the virtual video card's memory
10476 buffer (guest VRAM) directly or not. See <link
10477 to="IFramebuffer::requestResize"/> for more information.
10478 </desc>
10479 </attribute>
10480
10481 <attribute name="heightReduction" type="unsigned long" readonly="yes">
10482 <desc>
10483 Hint from the frame buffer about how much of the standard
10484 screen height it wants to use for itself. This information is
10485 exposed to the guest through the VESA BIOS and VMMDev interface
10486 so that it can use it for determining its video mode table. It
10487 is not guaranteed that the guest respects the value.
10488 </desc>
10489 </attribute>
10490
10491 <attribute name="overlay" type="IFramebufferOverlay" readonly="yes">
10492 <desc>
10493 An alpha-blended overlay which is superposed over the frame buffer.
10494 The initial purpose is to allow the display of icons providing
10495 information about the VM state, including disk activity, in front
10496 ends which do not have other means of doing that. The overlay is
10497 designed to controlled exclusively by IDisplay. It has no locking
10498 of its own, and any changes made to it are not guaranteed to be
10499 visible until the affected portion of IFramebuffer is updated. The
10500 overlay can be created lazily the first time it is requested. This
10501 attribute can also return @c null to signal that the overlay is not
10502 implemented.
10503 </desc>
10504 </attribute>
10505
10506 <attribute name="winId" type="unsigned long long" readonly="yes">
10507 <desc>
10508 Platform-dependent identifier of the window where context of this
10509 frame buffer is drawn, or zero if there's no such window.
10510 </desc>
10511 </attribute>
10512
10513 <method name="lock">
10514 <desc>
10515 Locks the frame buffer.
10516 Gets called by the IDisplay object where this frame buffer is
10517 bound to.
10518 </desc>
10519 </method>
10520
10521 <method name="unlock">
10522 <desc>
10523 Unlocks the frame buffer.
10524 Gets called by the IDisplay object where this frame buffer is
10525 bound to.
10526 </desc>
10527 </method>
10528
10529 <method name="notifyUpdate">
10530 <desc>
10531 Informs about an update.
10532 Gets called by the display object where this buffer is
10533 registered.
10534 </desc>
10535 <param name="x" type="unsigned long" dir="in"/>
10536 <param name="y" type="unsigned long" dir="in"/>
10537 <param name="width" type="unsigned long" dir="in"/>
10538 <param name="height" type="unsigned long" dir="in"/>
10539 </method>
10540
10541 <method name="requestResize">
10542 <desc>
10543 Requests a size and pixel format change.
10544
10545 There are two modes of working with the video buffer of the virtual
10546 machine. The <i>indirect</i> mode implies that the IFramebuffer
10547 implementation allocates a memory buffer for the requested display mode
10548 and provides it to the virtual machine. In <i>direct</i> mode, the
10549 IFramebuffer implementation uses the memory buffer allocated and owned
10550 by the virtual machine. This buffer represents the video memory of the
10551 emulated video adapter (so called <i>guest VRAM</i>). The direct mode is
10552 usually faster because the implementation gets a raw pointer to the
10553 guest VRAM buffer which it can directly use for visualizing the contents
10554 of the virtual display, as opposed to the indirect mode where the
10555 contents of guest VRAM are copied to the memory buffer provided by
10556 the implementation every time a display update occurs.
10557
10558 It is important to note that the direct mode is really fast only when
10559 the implementation uses the given guest VRAM buffer directly, for
10560 example, by blitting it to the window representing the virtual machine's
10561 display, which saves at least one copy operation comparing to the
10562 indirect mode. However, using the guest VRAM buffer directly is not
10563 always possible: the format and the color depth of this buffer may be
10564 not supported by the target window, or it may be unknown (opaque) as in
10565 case of text or non-linear multi-plane VGA video modes. In this case,
10566 the indirect mode (that is always available) should be used as a
10567 fallback: when the guest VRAM contents are copied to the
10568 implementation-provided memory buffer, color and format conversion is
10569 done automatically by the underlying code.
10570
10571 The @a pixelFormat parameter defines whether the direct mode is
10572 available or not. If @a pixelFormat is <link
10573 to="FramebufferPixelFormat_Opaque"/> then direct access to the guest
10574 VRAM buffer is not available -- the @a VRAM, @a bitsPerPixel and
10575 @a bytesPerLine parameters must be ignored and the implementation must use
10576 the indirect mode (where it provides its own buffer in one of the
10577 supported formats). In all other cases, @a pixelFormat together with
10578 @a bitsPerPixel and @a bytesPerLine define the format of the video memory
10579 buffer pointed to by the @a VRAM parameter and the implementation is
10580 free to choose which mode to use. To indicate that this frame buffer uses
10581 the direct mode, the implementation of the <link to="#usesGuestVRAM"/>
10582 attribute must return @c true and <link to="#address"/> must
10583 return exactly the same address that is passed in the @a VRAM parameter
10584 of this method; otherwise it is assumed that the indirect strategy is
10585 chosen.
10586
10587 The @a width and @a height parameters represent the size of the
10588 requested display mode in both modes. In case of indirect mode, the
10589 provided memory buffer should be big enough to store data of the given
10590 display mode. In case of direct mode, it is guaranteed that the given
10591 @a VRAM buffer contains enough space to represent the display mode of the
10592 given size. Note that this frame buffer's <link to="#width"/> and <link
10593 to="#height"/> attributes must return exactly the same values as
10594 passed to this method after the resize is completed (see below).
10595
10596 The @a finished output parameter determines if the implementation has
10597 finished resizing the frame buffer or not. If, for some reason, the
10598 resize cannot be finished immediately during this call, @a finished
10599 must be set to @c false, and the implementation must call
10600 <link to="IDisplay::resizeCompleted"/> after it has returned from
10601 this method as soon as possible. If @a finished is @c false, the
10602 machine will not call any frame buffer methods until
10603 <link to="IDisplay::resizeCompleted"/> is called.
10604
10605 Note that if the direct mode is chosen, the <link to="#bitsPerPixel"/>,
10606 <link to="#bytesPerLine"/> and <link to="#pixelFormat"/> attributes of
10607 this frame buffer must return exactly the same values as specified in the
10608 parameters of this method, after the resize is completed. If the
10609 indirect mode is chosen, these attributes must return values describing
10610 the format of the implementation's own memory buffer <link
10611 to="#address"/> points to. Note also that the <link to="#bitsPerPixel"/>
10612 value must always correlate with <link to="#pixelFormat"/>. Note that
10613 the <link to="#pixelFormat"/> attribute must never return <link
10614 to="FramebufferPixelFormat_Opaque"/> regardless of the selected mode.
10615
10616 <note>
10617 This method is called by the IDisplay object under the
10618 <link to="#lock"/> provided by this IFramebuffer
10619 implementation. If this method returns @c false in @a finished, then
10620 this lock is not released until
10621 <link to="IDisplay::resizeCompleted"/> is called.
10622 </note>
10623 </desc>
10624 <param name="screenId" type="unsigned long" dir="in">
10625 <desc>
10626 Logical screen number. Must be used in the corresponding call to
10627 <link to="IDisplay::resizeCompleted"/> if this call is made.
10628 </desc>
10629 </param>
10630 <param name="pixelFormat" type="unsigned long" dir="in">
10631 <desc>
10632 Pixel format of the memory buffer pointed to by @a VRAM.
10633 See also <link to="FramebufferPixelFormat"/>.
10634 </desc>
10635 </param>
10636 <param name="VRAM" type="octet" mod="ptr" dir="in">
10637 <desc>Pointer to the virtual video card's VRAM (may be @c null).</desc>
10638 </param>
10639 <param name="bitsPerPixel" type="unsigned long" dir="in">
10640 <desc>Color depth, bits per pixel.</desc>
10641 </param>
10642 <param name="bytesPerLine" type="unsigned long" dir="in">
10643 <desc>Size of one scan line, in bytes.</desc>
10644 </param>
10645 <param name="width" type="unsigned long" dir="in">
10646 <desc>Width of the guest display, in pixels.</desc>
10647 </param>
10648 <param name="height" type="unsigned long" dir="in">
10649 <desc>Height of the guest display, in pixels.</desc>
10650 </param>
10651 <param name="finished" type="boolean" dir="return">
10652 <desc>
10653 Can the VM start using the new frame buffer immediately
10654 after this method returns or it should wait for
10655 <link to="IDisplay::resizeCompleted"/>.
10656 </desc>
10657 </param>
10658 </method>
10659
10660 <method name="videoModeSupported">
10661 <desc>
10662 Returns whether the frame buffer implementation is willing to
10663 support a given video mode. In case it is not able to render
10664 the video mode (or for some reason not willing), it should
10665 return @c false. Usually this method is called when the guest
10666 asks the VMM device whether a given video mode is supported
10667 so the information returned is directly exposed to the guest.
10668 It is important that this method returns very quickly.
10669 </desc>
10670 <param name="width" type="unsigned long" dir="in"/>
10671 <param name="height" type="unsigned long" dir="in"/>
10672 <param name="bpp" type="unsigned long" dir="in"/>
10673 <param name="supported" type="boolean" dir="return"/>
10674 </method>
10675
10676 <method name="getVisibleRegion">
10677 <desc>
10678 Returns the visible region of this frame buffer.
10679
10680 If the @a rectangles parameter is @c null then the value of the
10681 @a count parameter is ignored and the number of elements necessary to
10682 describe the current visible region is returned in @a countCopied.
10683
10684 If @a rectangles is not @c null but @a count is less
10685 than the required number of elements to store region data, the method
10686 will report a failure. If @a count is equal or greater than the
10687 required number of elements, then the actual number of elements copied
10688 to the provided array will be returned in @a countCopied.
10689
10690 <note>
10691 The address of the provided array must be in the process space of
10692 this IFramebuffer object.
10693 </note>
10694 <note>
10695 Method not yet implemented.
10696 </note>
10697 </desc>
10698 <param name="rectangles" type="octet" mod="ptr" dir="in">
10699 <desc>Pointer to the @c RTRECT array to receive region data.</desc>
10700 </param>
10701 <param name="count" type="unsigned long" dir="in">
10702 <desc>Number of @c RTRECT elements in the @a rectangles array.</desc>
10703 </param>
10704 <param name="countCopied" type="unsigned long" dir="return">
10705 <desc>Number of elements copied to the @a rectangles array.</desc>
10706 </param>
10707 </method>
10708
10709 <method name="setVisibleRegion">
10710 <desc>
10711 Suggests a new visible region to this frame buffer. This region
10712 represents the area of the VM display which is a union of regions of
10713 all top-level windows of the guest operating system running inside the
10714 VM (if the Guest Additions for this system support this
10715 functionality). This information may be used by the frontends to
10716 implement the seamless desktop integration feature.
10717
10718 <note>
10719 The address of the provided array must be in the process space of
10720 this IFramebuffer object.
10721 </note>
10722 <note>
10723 The IFramebuffer implementation must make a copy of the provided
10724 array of rectangles.
10725 </note>
10726 <note>
10727 Method not yet implemented.
10728 </note>
10729 </desc>
10730 <param name="rectangles" type="octet" mod="ptr" dir="in">
10731 <desc>Pointer to the @c RTRECT array.</desc>
10732 </param>
10733 <param name="count" type="unsigned long" dir="in">
10734 <desc>Number of @c RTRECT elements in the @a rectangles array.</desc>
10735 </param>
10736 </method>
10737
10738 <method name="processVHWACommand">
10739 <desc>
10740 Posts a Video HW Acceleration Command to the frame buffer for processing.
10741 The commands used for 2D video acceleration (DDraw surface creation/destroying, blitting, scaling, color covnersion, overlaying, etc.)
10742 are posted from quest to the host to be processed by the host hardware.
10743
10744 <note>
10745 The address of the provided command must be in the process space of
10746 this IFramebuffer object.
10747 </note>
10748 </desc>
10749
10750 <param name="command" type="octet" mod="ptr" dir="in">
10751 <desc>Pointer to VBOXVHWACMD containing the command to execute.</desc>
10752 </param>
10753 </method>
10754
10755 </interface>
10756
10757 <interface
10758 name="IFramebufferOverlay" extends="IFramebuffer"
10759 uuid="0bcc1c7e-e415-47d2-bfdb-e4c705fb0f47"
10760 wsmap="suppress"
10761 >
10762 <desc>
10763 The IFramebufferOverlay interface represents an alpha blended overlay
10764 for displaying status icons above an IFramebuffer. It is always created
10765 not visible, so that it must be explicitly shown. It only covers a
10766 portion of the IFramebuffer, determined by its width, height and
10767 co-ordinates. It is always in packed pixel little-endian 32bit ARGB (in
10768 that order) format, and may be written to directly. Do re-read the
10769 width though, after setting it, as it may be adjusted (increased) to
10770 make it more suitable for the front end.
10771 </desc>
10772 <attribute name="x" type="unsigned long" readonly="yes">
10773 <desc>X position of the overlay, relative to the frame buffer.</desc>
10774 </attribute>
10775
10776 <attribute name="y" type="unsigned long" readonly="yes">
10777 <desc>Y position of the overlay, relative to the frame buffer.</desc>
10778 </attribute>
10779
10780 <attribute name="visible" type="boolean" readonly="no">
10781 <desc>
10782 Whether the overlay is currently visible.
10783 </desc>
10784 </attribute>
10785
10786 <attribute name="alpha" type="unsigned long" readonly="no">
10787 <desc>
10788 The global alpha value for the overlay. This may or may not be
10789 supported by a given front end.
10790 </desc>
10791 </attribute>
10792
10793 <method name="move">
10794 <desc>
10795 Changes the overlay's position relative to the IFramebuffer.
10796 </desc>
10797 <param name="x" type="unsigned long" dir="in"/>
10798 <param name="y" type="unsigned long" dir="in"/>
10799 </method>
10800
10801 </interface>
10802
10803 <interface
10804 name="IDisplay" extends="$unknown"
10805 uuid="26881797-bc98-444d-ac69-820633b93ec7"
10806 wsmap="managed"
10807 >
10808 <desc>
10809 The IDisplay interface represents the virtual machine's display.
10810
10811 The object implementing this interface is contained in each
10812 <link to="IConsole::display"/> attribute and represents the visual
10813 output of the virtual machine.
10814
10815 The virtual display supports pluggable output targets represented by the
10816 IFramebuffer interface. Examples of the output target are a window on
10817 the host computer or an RDP session's display on a remote computer.
10818 </desc>
10819 <attribute name="width" type="unsigned long" readonly="yes">
10820 <desc>Current display width.</desc>
10821 </attribute>
10822
10823 <attribute name="height" type="unsigned long" readonly="yes">
10824 <desc>Current display height.</desc>
10825 </attribute>
10826
10827 <attribute name="bitsPerPixel" type="unsigned long" readonly="yes">
10828 <desc>
10829 Current guest display color depth. Note that this may differ
10830 from <link to="IFramebuffer::bitsPerPixel"/>.
10831 </desc>
10832 </attribute>
10833
10834 <method name="setFramebuffer">
10835 <desc>
10836 Sets the framebuffer for given screen.
10837 </desc>
10838 <param name="screenId" type="unsigned long" dir="in"/>
10839 <param name="framebuffer" type="IFramebuffer" dir="in"/>
10840 </method>
10841
10842 <method name="getFramebuffer">
10843 <desc>
10844 Queries the framebuffer for given screen.
10845 </desc>
10846 <param name="screenId" type="unsigned long" dir="in"/>
10847 <param name="framebuffer" type="IFramebuffer" dir="out"/>
10848 <param name="xOrigin" type="long" dir="out"/>
10849 <param name="yOrigin" type="long" dir="out"/>
10850 </method>
10851
10852 <method name="setVideoModeHint">
10853 <desc>
10854 Asks VirtualBox to request the given video mode from
10855 the guest. This is just a hint and it cannot be guaranteed
10856 that the requested resolution will be used. Guest Additions
10857 are required for the request to be seen by guests. The caller
10858 should issue the request and wait for a resolution change and
10859 after a timeout retry.
10860
10861 Specifying @c 0 for either @a width, @a height or @a bitsPerPixel
10862 parameters means that the corresponding values should be taken from the
10863 current video mode (i.e. left unchanged).
10864
10865 If the guest OS supports multi-monitor configuration then the @a display
10866 parameter specifies the number of the guest display to send the hint to:
10867 @c 0 is the primary display, @c 1 is the first secondary and
10868 so on. If the multi-monitor configuration is not supported, @a display
10869 must be @c 0.
10870
10871 <result name="E_INVALIDARG">
10872 The @a display is not associated with any monitor.
10873 </result>
10874
10875 </desc>
10876 <param name="width" type="unsigned long" dir="in"/>
10877 <param name="height" type="unsigned long" dir="in"/>
10878 <param name="bitsPerPixel" type="unsigned long" dir="in"/>
10879 <param name="display" type="unsigned long" dir="in"/>
10880 </method>
10881
10882 <method name="setSeamlessMode">
10883 <desc>
10884 Enables or disables seamless guest display rendering (seamless desktop
10885 integration) mode.
10886 <note>
10887 Calling this method has no effect if <link
10888 to="IGuest::supportsSeamless"/> returns @c false.
10889 </note>
10890 </desc>
10891 <param name="enabled" type="boolean" dir="in"/>
10892 </method>
10893
10894 <method name="takeScreenShot">
10895 <desc>
10896 Takes a screen shot of the requested size and copies it to the
10897 32-bpp buffer allocated by the caller and pointed to by @a address.
10898
10899 <note>This API can be used only by the COM/XPCOM C++ API as it
10900 requires pointer support. Use <link to="#takeScreenShotSlow" />
10901 with other language bindings.
10902 </note>
10903
10904 <result name="E_NOTIMPL">
10905 Feature not implemented.
10906 </result>
10907 <result name="VBOX_E_IPRT_ERROR">
10908 Could not take a screenshot.
10909 </result>
10910
10911 </desc>
10912 <param name="address" type="octet" mod="ptr" dir="in"/>
10913 <param name="width" type="unsigned long" dir="in"/>
10914 <param name="height" type="unsigned long" dir="in"/>
10915 </method>
10916
10917 <method name="takeScreenShotSlow">
10918 <desc>
10919 Takes a guest screen shot of the requested size and returns it as
10920 an array of bytes in uncompressed 32-bit ARGB format.
10921 This API is slow, but could be the only option to get guest screenshot
10922 for scriptable languages not allowed to manipulate with addresses
10923 directly.
10924
10925 <result name="E_NOTIMPL">
10926 Feature not implemented.
10927 </result>
10928 <result name="VBOX_E_IPRT_ERROR">
10929 Could not take a screenshot.
10930 </result>
10931 </desc>
10932 <param name="width" type="unsigned long" dir="in">
10933 <desc>
10934 Desired image width.
10935 </desc>
10936 </param>
10937 <param name="height" type="unsigned long" dir="in">
10938 <desc>
10939 Desired image height.
10940 </desc>
10941 </param>
10942 <param name="screenData" type="octet" dir="return" safearray="yes">
10943 <desc>
10944 Array with resulting screen data.
10945 </desc>
10946 </param>
10947 </method>
10948
10949 <method name="drawToScreen">
10950 <desc>
10951 Draws a 32-bpp image of the specified size from the given buffer
10952 to the given point on the VM display.
10953
10954 <result name="E_NOTIMPL">
10955 Feature not implemented.
10956 </result>
10957 <result name="VBOX_E_IPRT_ERROR">
10958 Could not draw to screen.
10959 </result>
10960
10961 </desc>
10962 <param name="address" type="octet" mod="ptr" dir="in"/>
10963 <param name="x" type="unsigned long" dir="in"/>
10964 <param name="y" type="unsigned long" dir="in"/>
10965 <param name="width" type="unsigned long" dir="in"/>
10966 <param name="height" type="unsigned long" dir="in"/>
10967 </method>
10968
10969 <method name="invalidateAndUpdate">
10970 <desc>
10971 Does a full invalidation of the VM display and instructs the VM
10972 to update it.
10973
10974 <result name="VBOX_E_IPRT_ERROR">
10975 Could not invalidate and update screen.
10976 </result>
10977
10978 </desc>
10979 </method>
10980
10981 <method name="resizeCompleted">
10982 <desc>
10983 Signals that a framebuffer has completed the resize operation.
10984
10985 <result name="VBOX_E_NOT_SUPPORTED">
10986 Operation only valid for external frame buffers.
10987 </result>
10988
10989 </desc>
10990 <param name="screenId" type="unsigned long" dir="in"/>
10991 </method>
10992
10993 <method name="updateCompleted">
10994 <desc>
10995 Signals that a framebuffer has completed the update operation.
10996
10997 <result name="VBOX_E_NOT_SUPPORTED">
10998 Operation only valid for external frame buffers.
10999 </result>
11000
11001 </desc>
11002 </method>
11003
11004 <method name="completeVHWACommand">
11005 <desc>
11006 Signals that the Video HW Acceleration command has completed.
11007 </desc>
11008
11009 <param name="command" type="octet" mod="ptr" dir="in">
11010 <desc>Pointer to VBOXVHWACMD containing the completed command.</desc>
11011 </param>
11012 </method>
11013
11014 </interface>
11015
11016 <!--
11017 // INetworkAdapter
11018 /////////////////////////////////////////////////////////////////////////
11019 -->
11020
11021 <enum
11022 name="NetworkAttachmentType"
11023 uuid="44bce1ee-99f7-4e8e-89fc-80597fd9eeaf"
11024 >
11025 <desc>
11026 Network attachment type.
11027 </desc>
11028
11029 <const name="Null" value="0">
11030 <desc>Null value, also means "not attached".</desc>
11031 </const>
11032 <const name="NAT" value="1"/>
11033 <const name="Bridged" value="2"/>
11034 <const name="Internal" value="3"/>
11035 <const name="HostOnly" value="4"/>
11036 </enum>
11037
11038 <enum
11039 name="NetworkAdapterType"
11040 uuid="50c3dfd8-07ac-4a31-baac-519c828fbf97"
11041 >
11042 <desc>
11043 Network adapter type.
11044 </desc>
11045
11046 <const name="Null" value="0">
11047 <desc>Null value (never used by the API).</desc>
11048 </const>
11049 <const name="Am79C970A" value="1">
11050 <desc>AMD PCNet-PCI II network card (Am79C970A).</desc>
11051 </const>
11052 <const name="Am79C973" value="2">
11053 <desc>AMD PCNet-FAST III network card (Am79C973).</desc>
11054 </const>
11055 <const name="I82540EM" value="3">
11056 <desc>Intel PRO/1000 MT Desktop network card (82540EM).</desc>
11057 </const>
11058 <const name="I82543GC" value="4">
11059 <desc>Intel PRO/1000 T Server network card (82543GC).</desc>
11060 </const>
11061 <const name="I82545EM" value="5">
11062 <desc>Intel PRO/1000 MT Server network card (82545EM).</desc>
11063 </const>
11064 </enum>
11065
11066 <interface
11067 name="INetworkAdapter" extends="$unknown"
11068 uuid="65607a27-2b73-4d43-b4cc-0ba2c817fbde"
11069 wsmap="managed"
11070 >
11071 <desc>
11072 Represents a virtual network adapter that is attached to a virtual machine.
11073 Each virtual machine has a fixed number of network adapter slots with one
11074 instance of this attached to each of them. Call
11075 <link to="IMachine::getNetworkAdapter" /> to get the network adapter that
11076 is attached to a given slot in a given machine.
11077
11078 Each network adapter can be in one of five attachment modes, which are
11079 represented by the <link to="NetworkAttachmentType" /> enumeration;
11080 see the <link to="#attachmentType" /> attribute.
11081 </desc>
11082
11083 <attribute name="adapterType" type="NetworkAdapterType">
11084 <desc>
11085 Type of the virtual network adapter. Depending on this value,
11086 VirtualBox will provide a different virtual network hardware
11087 to the guest.
11088 </desc>
11089 </attribute>
11090
11091 <attribute name="slot" type="unsigned long" readonly="yes">
11092 <desc>
11093 Slot number this adapter is plugged into. Corresponds to
11094 the value you pass to <link to="IMachine::getNetworkAdapter"/>
11095 to obtain this instance.
11096 </desc>
11097 </attribute>
11098
11099 <attribute name="enabled" type="boolean">
11100 <desc>
11101 Flag whether the network adapter is present in the
11102 guest system. If disabled, the virtual guest hardware will
11103 not contain this network adapter. Can only be changed when
11104 the VM is not running.
11105 </desc>
11106 </attribute>
11107
11108 <attribute name="MACAddress" type="wstring">
11109 <desc>
11110 Ethernet MAC address of the adapter, 12 hexadecimal characters. When setting
11111 it to @c null or an empty string, VirtualBox will generate a unique MAC address.
11112 </desc>
11113 </attribute>
11114
11115 <attribute name="attachmentType" type="NetworkAttachmentType" readonly="yes"/>
11116
11117 <attribute name="hostInterface" type="wstring">
11118 <desc>
11119 Name of the host network interface the VM is attached to.
11120 </desc>
11121 </attribute>
11122
11123 <attribute name="internalNetwork" type="wstring">
11124 <desc>
11125 Name of the internal network the VM is attached to.
11126 </desc>
11127 </attribute>
11128
11129 <attribute name="NATNetwork" type="wstring">
11130 <desc>
11131 Name of the NAT network the VM is attached to.
11132 </desc>
11133 </attribute>
11134
11135 <attribute name="cableConnected" type="boolean">
11136 <desc>
11137 Flag whether the adapter reports the cable as connected or not.
11138 It can be used to report offline situations to a VM.
11139 </desc>
11140 </attribute>
11141
11142 <attribute name="lineSpeed" type="unsigned long">
11143 <desc>
11144 Line speed reported by custom drivers, in units of 1 kbps.
11145 </desc>
11146 </attribute>
11147
11148 <attribute name="traceEnabled" type="boolean">
11149 <desc>
11150 Flag whether network traffic from/to the network card should be traced.
11151 Can only be toggled when the VM is turned off.
11152 </desc>
11153 </attribute>
11154
11155 <attribute name="traceFile" type="wstring">
11156 <desc>
11157 Filename where a network trace will be stored. If not set, VBox-pid.pcap
11158 will be used.
11159 </desc>
11160 </attribute>
11161
11162 <method name="attachToNAT">
11163 <desc>
11164 Attach the network adapter to the Network Address Translation (NAT) interface.
11165 </desc>
11166 </method>
11167
11168 <method name="attachToBridgedInterface">
11169 <desc>
11170 Attach the network adapter to a bridged host interface.
11171 </desc>
11172 </method>
11173
11174 <method name="attachToInternalNetwork">
11175 <desc>
11176 Attach the network adapter to an internal network.
11177 </desc>
11178 </method>
11179
11180 <method name="attachToHostOnlyInterface">
11181 <desc>
11182 Attach the network adapter to the host-only network.
11183 </desc>
11184 </method>
11185
11186 <method name="detach">
11187 <desc>
11188 Detach the network adapter
11189 </desc>
11190 </method>
11191 </interface>
11192
11193
11194 <!--
11195 // ISerialPort
11196 /////////////////////////////////////////////////////////////////////////
11197 -->
11198
11199 <enum
11200 name="PortMode"
11201 uuid="533b5fe3-0185-4197-86a7-17e37dd39d76"
11202 >
11203 <desc>
11204 The PortMode enumeration represents possible communication modes for
11205 the virtual serial port device.
11206 </desc>
11207
11208 <const name="Disconnected" value="0">
11209 <desc>Virtual device is not attached to any real host device.</desc>
11210 </const>
11211 <const name="HostPipe" value="1">
11212 <desc>Virtual device is attached to a host pipe.</desc>
11213 </const>
11214 <const name="HostDevice" value="2">
11215 <desc>Virtual device is attached to a host device.</desc>
11216 </const>
11217 <const name="RawFile" value="3">
11218 <desc>Virtual device is attached to a raw file.</desc>
11219 </const>
11220 </enum>
11221
11222 <interface
11223 name="ISerialPort" extends="$unknown"
11224 uuid="937f6970-5103-4745-b78e-d28dcf1479a8"
11225 wsmap="managed"
11226 >
11227
11228 <desc>
11229 The ISerialPort interface represents the virtual serial port device.
11230
11231 The virtual serial port device acts like an ordinary serial port
11232 inside the virtual machine. This device communicates to the real
11233 serial port hardware in one of two modes: host pipe or host device.
11234
11235 In host pipe mode, the #path attribute specifies the path to the pipe on
11236 the host computer that represents a serial port. The #server attribute
11237 determines if this pipe is created by the virtual machine process at
11238 machine startup or it must already exist before starting machine
11239 execution.
11240
11241 In host device mode, the #path attribute specifies the name of the
11242 serial port device on the host computer.
11243
11244 There is also a third communication mode: the disconnected mode. In this
11245 mode, the guest OS running inside the virtual machine will be able to
11246 detect the serial port, but all port write operations will be discarded
11247 and all port read operations will return no data.
11248
11249 <see>IMachine::getSerialPort</see>
11250 </desc>
11251
11252 <attribute name="slot" type="unsigned long" readonly="yes">
11253 <desc>
11254 Slot number this serial port is plugged into. Corresponds to
11255 the value you pass to <link to="IMachine::getSerialPort"/>
11256 to obtain this instance.
11257 </desc>
11258 </attribute>
11259
11260 <attribute name="enabled" type="boolean">
11261 <desc>
11262 Flag whether the serial port is enabled. If disabled,
11263 the serial port will not be reported to the guest OS.
11264 </desc>
11265 </attribute>
11266
11267 <attribute name="IOBase" type="unsigned long">
11268 <desc>Base I/O address of the serial port.</desc>
11269 </attribute>
11270
11271 <attribute name="IRQ" type="unsigned long">
11272 <desc>IRQ number of the serial port.</desc>
11273 </attribute>
11274
11275 <attribute name="hostMode" type="PortMode">
11276 <desc>
11277 How is this port connected to the host.
11278 <note>
11279 Changing this attribute may fail if the conditions for
11280 <link to="#path"/> are not met.
11281 </note>
11282 </desc>
11283 </attribute>
11284
11285 <attribute name="server" type="boolean">
11286 <desc>
11287 Flag whether this serial port acts as a server (creates a new pipe on
11288 the host) or as a client (uses the existing pipe). This attribute is
11289 used only when <link to="#hostMode"/> is PortMode_HostPipe.
11290 </desc>
11291 </attribute>
11292
11293 <attribute name="path" type="wstring">
11294 <desc>
11295 Path to the serial port's pipe on the host when <link to="ISerialPort::hostMode"/> is
11296 PortMode_HostPipe, or the host serial device name when
11297 <link to="ISerialPort::hostMode"/> is PortMode_HostDevice. For both
11298 cases, setting a @c null or empty string as the attribute's value
11299 is an error. Otherwise, the value of this property is ignored.
11300 </desc>
11301 </attribute>
11302
11303 </interface>
11304
11305 <!--
11306 // IParallelPort
11307 /////////////////////////////////////////////////////////////////////////
11308 -->
11309
11310 <interface
11311 name="IParallelPort" extends="$unknown"
11312 uuid="0c925f06-dd10-4b77-8de8-294d738c3214"
11313 wsmap="managed"
11314 >
11315
11316 <desc>
11317 The IParallelPort interface represents the virtual parallel port device.
11318
11319 The virtual parallel port device acts like an ordinary parallel port
11320 inside the virtual machine. This device communicates to the real
11321 parallel port hardware using the name of the parallel device on the host
11322 computer specified in the #path attribute.
11323
11324 Each virtual parallel port device is assigned a base I/O address and an
11325 IRQ number that will be reported to the guest operating system and used
11326 to operate the given parallel port from within the virtual machine.
11327
11328 <see>IMachine::getParallelPort</see>
11329 </desc>
11330
11331 <attribute name="slot" type="unsigned long" readonly="yes">
11332 <desc>
11333 Slot number this parallel port is plugged into. Corresponds to
11334 the value you pass to <link to="IMachine::getParallelPort"/>
11335 to obtain this instance.
11336 </desc>
11337 </attribute>
11338
11339 <attribute name="enabled" type="boolean">
11340 <desc>
11341 Flag whether the parallel port is enabled. If disabled,
11342 the parallel port will not be reported to the guest OS.
11343 </desc>
11344 </attribute>
11345
11346 <attribute name="IOBase" type="unsigned long">
11347 <desc>Base I/O address of the parallel port.</desc>
11348 </attribute>
11349
11350 <attribute name="IRQ" type="unsigned long">
11351 <desc>IRQ number of the parallel port.</desc>
11352 </attribute>
11353
11354 <attribute name="path" type="wstring">
11355 <desc>
11356 Host parallel device name. If this parallel port is enabled, setting a
11357 @c null or an empty string as this attribute's value will result into
11358 an error.
11359 </desc>
11360 </attribute>
11361
11362 </interface>
11363
11364
11365 <!--
11366 // IMachineDebugger
11367 /////////////////////////////////////////////////////////////////////////
11368 -->
11369
11370 <interface
11371 name="IMachineDebugger" extends="$unknown"
11372 uuid="b0b2a2dd-0627-4502-91c2-ddc5e77609e0"
11373 wsmap="suppress"
11374 >
11375 <method name="resetStats">
11376 <desc>
11377 Reset VM statistics.
11378 </desc>
11379 <param name="pattern" type="wstring" dir="in">
11380 <desc>The selection pattern. A bit similar to filename globbing.</desc>
11381 </param>
11382 </method>
11383
11384 <method name="dumpStats">
11385 <desc>
11386 Dumps VM statistics.
11387 </desc>
11388 <param name="pattern" type="wstring" dir="in">
11389 <desc>The selection pattern. A bit similar to filename globbing.</desc>
11390 </param>
11391 </method>
11392
11393 <method name="getStats">
11394 <desc>
11395 Get the VM statistics in a XMLish format.
11396 </desc>
11397 <param name="pattern" type="wstring" dir="in">
11398 <desc>The selection pattern. A bit similar to filename globbing.</desc>
11399 </param>
11400 <param name="withDescriptions" type="boolean" dir="in">
11401 <desc>Whether to include the descriptions.</desc>
11402 </param>
11403 <param name="stats" type="wstring" dir="out">
11404 <desc>The XML document containing the statistics.</desc>
11405 </param>
11406 </method>
11407
11408 <method name="injectNMI">
11409 <desc>
11410 Inject an NMI into a running VT-x/AMD-V VM.
11411 </desc>
11412 </method>
11413
11414 <attribute name="singlestep" type="boolean">
11415 <desc>Switch for enabling singlestepping.</desc>
11416 </attribute>
11417
11418 <attribute name="recompileUser" type="boolean">
11419 <desc>Switch for forcing code recompilation for user mode code.</desc>
11420 </attribute>
11421
11422 <attribute name="recompileSupervisor" type="boolean">
11423 <desc>Switch for forcing code recompilation for supervisor mode code.</desc>
11424 </attribute>
11425
11426 <attribute name="PATMEnabled" type="boolean">
11427 <desc>Switch for enabling and disabling the PATM component.</desc>
11428 </attribute>
11429
11430 <attribute name="CSAMEnabled" type="boolean">
11431 <desc>Switch for enabling and disabling the CSAM component.</desc>
11432 </attribute>
11433
11434 <attribute name="logEnabled" type="boolean">
11435 <desc>Switch for enabling and disabling logging.</desc>
11436 </attribute>
11437
11438 <attribute name="HWVirtExEnabled" type="boolean" readonly="yes">
11439 <desc>
11440 Flag indicating whether the VM is currently making use of CPU hardware
11441 virtualization extensions.
11442 </desc>
11443 </attribute>
11444
11445 <attribute name="HWVirtExNestedPagingEnabled" type="boolean" readonly="yes">
11446 <desc>
11447 Flag indicating whether the VM is currently making use of the nested paging
11448 CPU hardware virtualization extension.
11449 </desc>
11450 </attribute>
11451
11452 <attribute name="HWVirtExVPIDEnabled" type="boolean" readonly="yes">
11453 <desc>
11454 Flag indicating whether the VM is currently making use of the VPID
11455 VT-x extension.
11456 </desc>
11457 </attribute>
11458
11459 <attribute name="PAEEnabled" type="boolean" readonly="yes">
11460 <desc>
11461 Flag indicating whether the VM is currently making use of the Physical
11462 Address Extension CPU feature.
11463 </desc>
11464 </attribute>
11465
11466 <attribute name="virtualTimeRate" type="unsigned long">
11467 <desc>
11468 The rate at which the virtual time runs expressed as a percentage.
11469 The accepted range is 2% to 20000%.
11470 </desc>
11471 </attribute>
11472
11473 <!-- @todo method for setting log flags, groups and destination! -->
11474
11475 <attribute name="VM" type="unsigned long long" readonly="yes">
11476 <desc>
11477 Gets the VM handle. This is only for internal use while
11478 we carve the details of this interface.
11479 </desc>
11480 </attribute>
11481
11482 </interface>
11483
11484 <!--
11485 // IUSBController
11486 /////////////////////////////////////////////////////////////////////////
11487 -->
11488
11489 <interface
11490 name="IUSBController" extends="$unknown"
11491 uuid="238540fa-4b73-435a-a38e-4e1d9eab5c17"
11492 wsmap="managed"
11493 >
11494 <attribute name="enabled" type="boolean">
11495 <desc>
11496 Flag whether the USB controller is present in the
11497 guest system. If disabled, the virtual guest hardware will
11498 not contain any USB controller. Can only be changed when
11499 the VM is powered off.
11500 </desc>
11501 </attribute>
11502
11503 <attribute name="enabledEhci" type="boolean">
11504 <desc>
11505 Flag whether the USB EHCI controller is present in the
11506 guest system. If disabled, the virtual guest hardware will
11507 not contain a USB EHCI controller. Can only be changed when
11508 the VM is powered off.
11509 </desc>
11510 </attribute>
11511
11512 <attribute name="USBStandard" type="unsigned short" readonly="yes">
11513 <desc>
11514 USB standard version which the controller implements.
11515 This is a BCD which means that the major version is in the
11516 high byte and minor version is in the low byte.
11517 </desc>
11518 </attribute>
11519
11520 <attribute name="deviceFilters" type="IUSBDeviceFilter" readonly="yes" safearray="yes">
11521 <desc>
11522 List of USB device filters associated with the machine.
11523
11524 If the machine is currently running, these filters are activated
11525 every time a new (supported) USB device is attached to the host
11526 computer that was not ignored by global filters
11527 (<link to="IHost::USBDeviceFilters"/>).
11528
11529 These filters are also activated when the machine is powered up.
11530 They are run against a list of all currently available USB
11531 devices (in states
11532 <link to="USBDeviceState_Available"/>,
11533 <link to="USBDeviceState_Busy"/>,
11534 <link to="USBDeviceState_Held"/>) that were not previously
11535 ignored by global filters.
11536
11537 If at least one filter matches the USB device in question, this
11538 device is automatically captured (attached to) the virtual USB
11539 controller of this machine.
11540
11541 <see>IUSBDeviceFilter, ::IUSBController</see>
11542 </desc>
11543 </attribute>
11544
11545 <method name="createDeviceFilter">
11546 <desc>
11547 Creates a new USB device filter. All attributes except
11548 the filter name are set to empty (any match),
11549 <i>active</i> is @c false (the filter is not active).
11550
11551 The created filter can then be added to the list of filters using
11552 <link to="#insertDeviceFilter"/>.
11553
11554 <result name="VBOX_E_INVALID_VM_STATE">
11555 The virtual machine is not mutable.
11556 </result>
11557
11558 <see>#deviceFilters</see>
11559 </desc>
11560 <param name="name" type="wstring" dir="in">
11561 <desc>
11562 Filter name. See <link to="IUSBDeviceFilter::name"/>
11563 for more info.
11564 </desc>
11565 </param>
11566 <param name="filter" type="IUSBDeviceFilter" dir="return">
11567 <desc>Created filter object.</desc>
11568 </param>
11569 </method>
11570
11571 <method name="insertDeviceFilter">
11572 <desc>
11573 Inserts the given USB device to the specified position
11574 in the list of filters.
11575
11576 Positions are numbered starting from <tt>0</tt>. If the specified
11577 position is equal to or greater than the number of elements in
11578 the list, the filter is added to the end of the collection.
11579
11580 <note>
11581 Duplicates are not allowed, so an attempt to insert a
11582 filter that is already in the collection, will return an
11583 error.
11584 </note>
11585
11586 <result name="VBOX_E_INVALID_VM_STATE">
11587 Virtual machine is not mutable.
11588 </result>
11589 <result name="E_INVALIDARG">
11590 USB device filter not created within this VirtualBox instance.
11591 </result>
11592 <result name="VBOX_E_INVALID_OBJECT_STATE">
11593 USB device filter already in list.
11594 </result>
11595
11596 <see>#deviceFilters</see>
11597 </desc>
11598 <param name="position" type="unsigned long" dir="in">
11599 <desc>Position to insert the filter to.</desc>
11600 </param>
11601 <param name="filter" type="IUSBDeviceFilter" dir="in">
11602 <desc>USB device filter to insert.</desc>
11603 </param>
11604 </method>
11605
11606 <method name="removeDeviceFilter">
11607 <desc>
11608 Removes a USB device filter from the specified position in the
11609 list of filters.
11610
11611 Positions are numbered starting from <tt>0</tt>. Specifying a
11612 position equal to or greater than the number of elements in
11613 the list will produce an error.
11614
11615 <see>#deviceFilters</see>
11616
11617 <result name="VBOX_E_INVALID_VM_STATE">
11618 Virtual machine is not mutable.
11619 </result>
11620 <result name="E_INVALIDARG">
11621 USB device filter list empty or invalid @a position.
11622 </result>
11623
11624 </desc>
11625 <param name="position" type="unsigned long" dir="in">
11626 <desc>Position to remove the filter from.</desc>
11627 </param>
11628 <param name="filter" type="IUSBDeviceFilter" dir="return">
11629 <desc>Removed USB device filter.</desc>
11630 </param>
11631 </method>
11632
11633 </interface>
11634
11635
11636 <!--
11637 // IUSBDevice
11638 /////////////////////////////////////////////////////////////////////////
11639 -->
11640
11641 <interface
11642 name="IUSBDevice" extends="$unknown"
11643 uuid="f8967b0b-4483-400f-92b5-8b675d98a85b"
11644 wsmap="managed"
11645 >
11646 <desc>
11647 The IUSBDevice interface represents a virtual USB device attached to the
11648 virtual machine.
11649
11650 A collection of objects implementing this interface is stored in the
11651 <link to="IConsole::USBDevices"/> attribute which lists all USB devices
11652 attached to a running virtual machine's USB controller.
11653 </desc>
11654
11655 <attribute name="id" type="wstring" readonly="yes">
11656 <desc>
11657 Unique USB device ID. This ID is built from #vendorId,
11658 #productId, #revision and #serialNumber.
11659 </desc>
11660 </attribute>
11661
11662 <attribute name="vendorId" type="unsigned short" readonly="yes">
11663 <desc>Vendor ID.</desc>
11664 </attribute>
11665
11666 <attribute name="productId" type="unsigned short" readonly="yes">
11667 <desc>Product ID.</desc>
11668 </attribute>
11669
11670 <attribute name="revision" type="unsigned short" readonly="yes">
11671 <desc>
11672 Product revision number. This is a packed BCD represented as
11673 unsigned short. The high byte is the integer part and the low
11674 byte is the decimal.
11675 </desc>
11676 </attribute>
11677
11678 <attribute name="manufacturer" type="wstring" readonly="yes">
11679 <desc>Manufacturer string.</desc>
11680 </attribute>
11681
11682 <attribute name="product" type="wstring" readonly="yes">
11683 <desc>Product string.</desc>
11684 </attribute>
11685
11686 <attribute name="serialNumber" type="wstring" readonly="yes">
11687 <desc>Serial number string.</desc>
11688 </attribute>
11689
11690 <attribute name="address" type="wstring" readonly="yes">
11691 <desc>Host specific address of the device.</desc>
11692 </attribute>
11693
11694 <attribute name="port" type="unsigned short" readonly="yes">
11695 <desc>
11696 Host USB port number the device is physically
11697 connected to.
11698 </desc>
11699 </attribute>
11700
11701 <attribute name="version" type="unsigned short" readonly="yes">
11702 <desc>
11703 The major USB version of the device - 1 or 2.
11704 </desc>
11705 </attribute>
11706
11707 <attribute name="portVersion" type="unsigned short" readonly="yes">
11708 <desc>
11709 The major USB version of the host USB port the device is
11710 physically connected to - 1 or 2. For devices not connected to
11711 anything this will have the same value as the version attribute.
11712 </desc>
11713 </attribute>
11714
11715 <attribute name="remote" type="boolean" readonly="yes">
11716 <desc>
11717 Whether the device is physically connected to a remote VRDP
11718 client or to a local host machine.
11719 </desc>
11720 </attribute>
11721
11722 </interface>
11723
11724
11725 <!--
11726 // IUSBDeviceFilter
11727 /////////////////////////////////////////////////////////////////////////
11728 -->
11729
11730 <interface
11731 name="IUSBDeviceFilter" extends="$unknown"
11732 uuid="d6831fb4-1a94-4c2c-96ef-8d0d6192066d"
11733 wsmap="managed"
11734 >
11735 <desc>
11736 The IUSBDeviceFilter interface represents an USB device filter used
11737 to perform actions on a group of USB devices.
11738
11739 This type of filters is used by running virtual machines to
11740 automatically capture selected USB devices once they are physically
11741 attached to the host computer.
11742
11743 A USB device is matched to the given device filter if and only if all
11744 attributes of the device match the corresponding attributes of the
11745 filter (that is, attributes are joined together using the logical AND
11746 operation). On the other hand, all together, filters in the list of
11747 filters carry the semantics of the logical OR operation. So if it is
11748 desirable to create a match like "this vendor id OR this product id",
11749 one needs to create two filters and specify "any match" (see below)
11750 for unused attributes.
11751
11752 All filter attributes used for matching are strings. Each string
11753 is an expression representing a set of values of the corresponding
11754 device attribute, that will match the given filter. Currently, the
11755 following filtering expressions are supported:
11756
11757 <ul>
11758 <li><i>Interval filters</i>. Used to specify valid intervals for
11759 integer device attributes (Vendor ID, Product ID and Revision).
11760 The format of the string is:
11761
11762 <tt>int:((m)|([m]-[n]))(,(m)|([m]-[n]))*</tt>
11763
11764 where <tt>m</tt> and <tt>n</tt> are integer numbers, either in octal
11765 (starting from <tt>0</tt>), hexadecimal (starting from <tt>0x</tt>)
11766 or decimal (otherwise) form, so that <tt>m &lt; n</tt>. If <tt>m</tt>
11767 is omitted before a dash (<tt>-</tt>), the minimum possible integer
11768 is assumed; if <tt>n</tt> is omitted after a dash, the maximum
11769 possible integer is assumed.
11770 </li>
11771 <li><i>Boolean filters</i>. Used to specify acceptable values for
11772 boolean device attributes. The format of the string is:
11773
11774 <tt>true|false|yes|no|0|1</tt>
11775
11776 </li>
11777 <li><i>Exact match</i>. Used to specify a single value for the given
11778 device attribute. Any string that doesn't start with <tt>int:</tt>
11779 represents the exact match. String device attributes are compared to
11780 this string including case of symbols. Integer attributes are first
11781 converted to a string (see individual filter attributes) and then
11782 compared ignoring case.
11783
11784 </li>
11785 <li><i>Any match</i>. Any value of the corresponding device attribute
11786 will match the given filter. An empty or @c null string is
11787 used to construct this type of filtering expressions.
11788
11789 </li>
11790 </ul>
11791
11792 <note>
11793 On the Windows host platform, interval filters are not currently
11794 available. Also all string filter attributes
11795 (<link to="#manufacturer"/>, <link to="#product"/>,
11796 <link to="#serialNumber"/>) are ignored, so they behave as
11797 <i>any match</i> no matter what string expression is specified.
11798 </note>
11799
11800 <see>IUSBController::deviceFilters, IHostUSBDeviceFilter</see>
11801 </desc>
11802
11803 <attribute name="name" type="wstring">
11804 <desc>
11805 Visible name for this filter.
11806 This name is used to visually distinguish one filter from another,
11807 so it can neither be @c null nor an empty string.
11808 </desc>
11809 </attribute>
11810
11811 <attribute name="active" type="boolean">
11812 <desc>Whether this filter active or has been temporarily disabled.</desc>
11813 </attribute>
11814
11815 <attribute name="vendorId" type="wstring">
11816 <desc>
11817 <link to="IUSBDevice::vendorId">Vendor ID</link> filter.
11818 The string representation for the <i>exact matching</i>
11819 has the form <tt>XXXX</tt>, where <tt>X</tt> is the hex digit
11820 (including leading zeroes).
11821 </desc>
11822 </attribute>
11823
11824 <attribute name="productId" type="wstring">
11825 <desc>
11826 <link to="IUSBDevice::productId">Product ID</link> filter.
11827 The string representation for the <i>exact matching</i>
11828 has the form <tt>XXXX</tt>, where <tt>X</tt> is the hex digit
11829 (including leading zeroes).
11830 </desc>
11831 </attribute>
11832
11833 <attribute name="revision" type="wstring">
11834 <desc>
11835 <link to="IUSBDevice::productId">Product revision number</link>
11836 filter. The string representation for the <i>exact matching</i>
11837 has the form <tt>IIFF</tt>, where <tt>I</tt> is the decimal digit
11838 of the integer part of the revision, and <tt>F</tt> is the
11839 decimal digit of its fractional part (including leading and
11840 trailing zeros).
11841 Note that for interval filters, it's best to use the hexadecimal
11842 form, because the revision is stored as a 16 bit packed BCD value;
11843 so the expression <tt>int:0x0100-0x0199</tt> will match any
11844 revision from <tt>1.0</tt> to <tt>1.99</tt>.
11845 </desc>
11846 </attribute>
11847
11848 <attribute name="manufacturer" type="wstring">
11849 <desc>
11850 <link to="IUSBDevice::manufacturer">Manufacturer</link> filter.
11851 </desc>
11852 </attribute>
11853
11854 <attribute name="product" type="wstring">
11855 <desc>
11856 <link to="IUSBDevice::product">Product</link> filter.
11857 </desc>
11858 </attribute>
11859
11860 <attribute name="serialNumber" type="wstring">
11861 <desc>
11862 <link to="IUSBDevice::serialNumber">Serial number</link> filter.
11863 </desc>
11864 </attribute>
11865
11866 <attribute name="port" type="wstring">
11867 <desc>
11868 <link to="IUSBDevice::port">Host USB port</link> filter.
11869 </desc>
11870 </attribute>
11871
11872 <attribute name="remote" type="wstring">
11873 <desc>
11874 <link to="IUSBDevice::remote">Remote state</link> filter.
11875 <note>
11876 This filter makes sense only for machine USB filters,
11877 i.e. it is ignored by IHostUSBDeviceFilter objects.
11878 </note>
11879 </desc>
11880 </attribute>
11881
11882 <attribute name="maskedInterfaces" type="unsigned long">
11883 <desc>
11884 This is an advanced option for hiding one or more USB interfaces
11885 from the guest. The value is a bit mask where the bits that are set
11886 means the corresponding USB interface should be hidden, masked off
11887 if you like.
11888 This feature only works on Linux hosts.
11889 </desc>
11890 </attribute>
11891
11892 </interface>
11893
11894
11895 <!--
11896 // IHostUSBDevice
11897 /////////////////////////////////////////////////////////////////////////
11898 -->
11899
11900 <enum
11901 name="USBDeviceState"
11902 uuid="b99a2e65-67fb-4882-82fd-f3e5e8193ab4"
11903 >
11904 <desc>
11905 USB device state. This enumeration represents all possible states
11906 of the USB device physically attached to the host computer regarding
11907 its state on the host computer and availability to guest computers
11908 (all currently running virtual machines).
11909
11910 Once a supported USB device is attached to the host, global USB
11911 filters (<link to="IHost::USBDeviceFilters"/>) are activated. They can
11912 either ignore the device, or put it to USBDeviceState_Held state, or do
11913 nothing. Unless the device is ignored by global filters, filters of all
11914 currently running guests (<link to="IUSBController::deviceFilters"/>) are
11915 activated that can put it to USBDeviceState_Captured state.
11916
11917 If the device was ignored by global filters, or didn't match
11918 any filters at all (including guest ones), it is handled by the host
11919 in a normal way. In this case, the device state is determined by
11920 the host and can be one of USBDeviceState_Unavailable, USBDeviceState_Busy
11921 or USBDeviceState_Available, depending on the current device usage.
11922
11923 Besides auto-capturing based on filters, the device can be manually
11924 captured by guests (<link to="IConsole::attachUSBDevice"/>) if its
11925 state is USBDeviceState_Busy, USBDeviceState_Available or
11926 USBDeviceState_Held.
11927
11928 <note>
11929 Due to differences in USB stack implementations in Linux and Win32,
11930 states USBDeviceState_Busy and USBDeviceState_vailable are applicable
11931 only to the Linux version of the product. This also means that (<link
11932 to="IConsole::attachUSBDevice"/>) can only succeed on Win32 if the
11933 device state is USBDeviceState_Held.
11934 </note>
11935
11936 <see>IHostUSBDevice, IHostUSBDeviceFilter</see>
11937 </desc>
11938
11939 <const name="NotSupported" value="0">
11940 <desc>
11941 Not supported by the VirtualBox server, not available to guests.
11942 </desc>
11943 </const>
11944 <const name="Unavailable" value="1">
11945 <desc>
11946 Being used by the host computer exclusively,
11947 not available to guests.
11948 </desc>
11949 </const>
11950 <const name="Busy" value="2">
11951 <desc>
11952 Being used by the host computer, potentially available to guests.
11953 </desc>
11954 </const>
11955 <const name="Available" value="3">
11956 <desc>
11957 Not used by the host computer, available to guests (the host computer
11958 can also start using the device at any time).
11959 </desc>
11960 </const>
11961 <const name="Held" value="4">
11962 <desc>
11963 Held by the VirtualBox server (ignored by the host computer),
11964 available to guests.
11965 </desc>
11966 </const>
11967 <const name="Captured" value="5">
11968 <desc>
11969 Captured by one of the guest computers, not available
11970 to anybody else.
11971 </desc>
11972 </const>
11973 </enum>
11974
11975 <interface
11976 name="IHostUSBDevice" extends="IUSBDevice"
11977 uuid="173b4b44-d268-4334-a00d-b6521c9a740a"
11978 wsmap="managed"
11979 >
11980 <desc>
11981 The IHostUSBDevice interface represents a physical USB device attached
11982 to the host computer.
11983
11984 Besides properties inherited from IUSBDevice, this interface adds the
11985 <link to="#state"/> property that holds the current state of the USB
11986 device.
11987
11988 <see>IHost::USBDevices, IHost::USBDeviceFilters</see>
11989 </desc>
11990
11991 <attribute name="state" type="USBDeviceState" readonly="yes">
11992 <desc>
11993 Current state of the device.
11994 </desc>
11995 </attribute>
11996
11997 <!-- @todo add class, subclass, bandwidth, configs, interfaces endpoints and such later. -->
11998
11999 </interface>
12000
12001
12002 <!--
12003 // IHostUSBDeviceFilter
12004 /////////////////////////////////////////////////////////////////////////
12005 -->
12006
12007 <enum
12008 name="USBDeviceFilterAction"
12009 uuid="cbc30a49-2f4e-43b5-9da6-121320475933"
12010 >
12011 <desc>
12012 Actions for host USB device filters.
12013 <see>IHostUSBDeviceFilter, USBDeviceState</see>
12014 </desc>
12015
12016 <const name="Null" value="0">
12017 <desc>Null value (never used by the API).</desc>
12018 </const>
12019 <const name="Ignore" value="1">
12020 <desc>Ignore the matched USB device.</desc>
12021 </const>
12022 <const name="Hold" value="2">
12023 <desc>Hold the matched USB device.</desc>
12024 </const>
12025 </enum>
12026
12027 <interface
12028 name="IHostUSBDeviceFilter" extends="IUSBDeviceFilter"
12029 uuid="4cc70246-d74a-400f-8222-3900489c0374"
12030 wsmap="managed"
12031 >
12032 <desc>
12033 The IHostUSBDeviceFilter interface represents a global filter for a
12034 physical USB device used by the host computer. Used indirectly in
12035 <link to="IHost::USBDeviceFilters"/>.
12036
12037 Using filters of this type, the host computer determines the initial
12038 state of the USB device after it is physically attached to the
12039 host's USB controller.
12040
12041 <note>
12042 The <link to="#remote"/> attribute is ignored by this type of
12043 filters, because it makes sense only for
12044 <link to="IUSBController::deviceFilters">machine USB filters</link>.
12045 </note>
12046
12047 <see>IHost::USBDeviceFilters</see>
12048 </desc>
12049
12050 <attribute name="action" type="USBDeviceFilterAction">
12051 <desc>
12052 Action performed by the host when an attached USB device
12053 matches this filter.
12054 </desc>
12055 </attribute>
12056
12057 </interface>
12058
12059 <!--
12060 // IAudioAdapter
12061 /////////////////////////////////////////////////////////////////////////
12062 -->
12063
12064 <enum
12065 name="AudioDriverType"
12066 uuid="4bcc3d73-c2fe-40db-b72f-0c2ca9d68496"
12067 >
12068 <desc>
12069 Host audio driver type.
12070 </desc>
12071
12072 <const name="Null" value="0">
12073 <desc>Null value, also means "dummy audio driver".</desc>
12074 </const>
12075 <const name="WinMM" value="1"/>
12076 <const name="OSS" value="2"/>
12077 <const name="ALSA" value="3"/>
12078 <const name="DirectSound" value="4"/>
12079 <const name="CoreAudio" value="5"/>
12080 <const name="MMPM" value="6"/>
12081 <const name="Pulse" value="7"/>
12082 <const name="SolAudio" value="8"/>
12083 </enum>
12084
12085 <enum
12086 name="AudioControllerType"
12087 uuid="7afd395c-42c3-444e-8788-3ce80292f36c"
12088 >
12089 <desc>
12090 Virtual audio controller type.
12091 </desc>
12092
12093 <const name="AC97" value="0"/>
12094 <const name="SB16" value="1"/>
12095 </enum>
12096
12097 <interface
12098 name="IAudioAdapter" extends="$unknown"
12099 uuid="921873db-5f3f-4b69-91f9-7be9e535a2cb"
12100 wsmap="managed"
12101 >
12102 <desc>
12103 The IAudioAdapter interface represents the virtual audio adapter of
12104 the virtual machine. Used in <link to="IMachine::audioAdapter"/>.
12105 </desc>
12106 <attribute name="enabled" type="boolean">
12107 <desc>
12108 Flag whether the audio adapter is present in the
12109 guest system. If disabled, the virtual guest hardware will
12110 not contain any audio adapter. Can only be changed when
12111 the VM is not running.
12112 </desc>
12113 </attribute>
12114 <attribute name="audioController" type="AudioControllerType">
12115 <desc>
12116 The audio hardware we emulate.
12117 </desc>
12118 </attribute>
12119 <attribute name="audioDriver" type="AudioDriverType">
12120 <desc>
12121 Audio driver the adapter is connected to. This setting
12122 can only be changed when the VM is not running.
12123 </desc>
12124 </attribute>
12125 </interface>
12126
12127 <!--
12128 // IVRDPServer
12129 /////////////////////////////////////////////////////////////////////////
12130 -->
12131
12132 <enum
12133 name="VRDPAuthType"
12134 uuid="3d91887a-b67f-4b33-85bf-2da7ab1ea83a"
12135 >
12136 <desc>
12137 VRDP authentication type.
12138 </desc>
12139
12140 <const name="Null" value="0">
12141 <desc>Null value, also means "no authentication".</desc>
12142 </const>
12143 <const name="External" value="1"/>
12144 <const name="Guest" value="2"/>
12145 </enum>
12146
12147 <interface
12148 name="IVRDPServer" extends="$unknown"
12149 uuid="f4584ae7-6bce-474b-83d6-17d235e6aa89"
12150 wsmap="managed"
12151 >
12152 <attribute name="enabled" type="boolean">
12153 <desc>VRDP server status.</desc>
12154 </attribute>
12155
12156 <attribute name="port" type="unsigned long">
12157 <desc>
12158 VRDP server port number.
12159 <note>
12160 Setting the value of this property to <tt>0</tt> will reset the port
12161 number to the default value which is
12162 currently <tt>3389</tt>. Reading this property will always return a
12163 real port number, even after it has been set to <tt>0</tt> (in which
12164 case the default port is returned).
12165 </note>
12166 </desc>
12167 </attribute>
12168
12169 <attribute name="netAddress" type="wstring">
12170 <desc>VRDP server address.</desc>
12171 </attribute>
12172
12173 <attribute name="authType" type="VRDPAuthType">
12174 <desc>VRDP authentication method.</desc>
12175 </attribute>
12176
12177 <attribute name="authTimeout" type="unsigned long">
12178 <desc>Timeout for guest authentication. Milliseconds.</desc>
12179 </attribute>
12180
12181 <attribute name="allowMultiConnection" type="boolean">
12182 <desc>
12183 Flag whether multiple simultaneous connections to the VM are permitted.
12184 Note that this will be replaced by a more powerful mechanism in the future.
12185 </desc>
12186 </attribute>
12187
12188 <attribute name="reuseSingleConnection" type="boolean">
12189 <desc>
12190 Flag whether the existing connection must be dropped and a new connection
12191 must be established by the VRDP server, when a new client connects in single
12192 connection mode.
12193 </desc>
12194 </attribute>
12195
12196 </interface>
12197
12198
12199 <!--
12200 // ISharedFolder
12201 /////////////////////////////////////////////////////////////////////////
12202 -->
12203
12204 <interface
12205 name="ISharedFolder" extends="$unknown"
12206 uuid="64637bb2-9e17-471c-b8f3-f8968dd9884e"
12207 wsmap="struct"
12208 >
12209 <desc>
12210 The ISharedFolder interface represents a folder in the host computer's
12211 file system accessible from the guest OS running inside a virtual
12212 machine using an associated logical name.
12213
12214 There are three types of shared folders:
12215 <ul>
12216 <li><i>Global</i> (<link to="IVirtualBox::sharedFolders"/>), shared
12217 folders available to all virtual machines.</li>
12218 <li><i>Permanent</i> (<link to="IMachine::sharedFolders"/>),
12219 VM-specific shared folders available to the given virtual machine at
12220 startup.</li>
12221 <li><i>Transient</i> (<link to="IConsole::sharedFolders"/>),
12222 VM-specific shared folders created in the session context (for
12223 example, when the virtual machine is running) and automatically
12224 discarded when the session is closed (the VM is powered off).</li>
12225 </ul>
12226
12227 Logical names of shared folders must be unique within the given scope
12228 (global, permanent or transient). However, they do not need to be unique
12229 across scopes. In this case, the definition of the shared folder in a
12230 more specific scope takes precedence over definitions in all other
12231 scopes. The order of precedence is (more specific to more general):
12232 <ol>
12233 <li>Transient definitions</li>
12234 <li>Permanent definitions</li>
12235 <li>Global definitions</li>
12236 </ol>
12237
12238 For example, if MyMachine has a shared folder named
12239 <tt>C_DRIVE</tt> (that points to <tt>C:\\</tt>), then creating a
12240 transient shared folder named <tt>C_DRIVE</tt> (that points
12241 to <tt>C:\\\\WINDOWS</tt>) will change the definition
12242 of <tt>C_DRIVE</tt> in the guest OS so
12243 that <tt>\\\\VBOXSVR\\C_DRIVE</tt> will give access
12244 to <tt>C:\\WINDOWS</tt> instead of <tt>C:\\</tt> on the host
12245 PC. Removing the transient shared folder <tt>C_DRIVE</tt> will restore
12246 the previous (permanent) definition of <tt>C_DRIVE</tt> that points
12247 to <tt>C:\\</tt> if it still exists.
12248
12249 Note that permanent and transient shared folders of different machines
12250 are in different name spaces, so they don't overlap and don't need to
12251 have unique logical names.
12252
12253 <note>
12254 Global shared folders are not implemented in the current version of the
12255 product.
12256 </note>
12257 </desc>
12258
12259 <attribute name="name" type="wstring" readonly="yes">
12260 <desc>Logical name of the shared folder.</desc>
12261 </attribute>
12262
12263 <attribute name="hostPath" type="wstring" readonly="yes">
12264 <desc>Full path to the shared folder in the host file system.</desc>
12265 </attribute>
12266
12267 <attribute name="accessible" type="boolean" readonly="yes">
12268 <desc>
12269 Whether the folder defined by the host path is currently
12270 accessible or not.
12271 For example, the folder can be unaccessible if it is placed
12272 on the network share that is not available by the time
12273 this property is read.
12274 </desc>
12275 </attribute>
12276
12277 <attribute name="writable" type="boolean" readonly="yes">
12278 <desc>
12279 Whether the folder defined by the host path is writable or
12280 not.
12281 </desc>
12282 </attribute>
12283
12284 <attribute name="lastAccessError" type="wstring" readonly="yes">
12285 <desc>
12286 Text message that represents the result of the last accessibility
12287 check.
12288
12289 Accessibility checks are performed each time the <link to="#accessible"/>
12290 attribute is read. An empty string is returned if the last
12291 accessibility check was successful. A non-empty string indicates a
12292 failure and should normally describe a reason of the failure (for
12293 example, a file read error).
12294 </desc>
12295 </attribute>
12296
12297 </interface>
12298
12299 <!--
12300 // ISession
12301 /////////////////////////////////////////////////////////////////////////
12302 -->
12303
12304 <interface
12305 name="IInternalSessionControl" extends="$unknown"
12306 uuid="b26552e7-9534-4f47-b766-98eac648a90d"
12307 internal="yes"
12308 wsmap="suppress"
12309 >
12310 <method name="getPID">
12311 <desc>PID of the process that has created this Session object.
12312 </desc>
12313 <param name="pid" type="unsigned long" dir="return"/>
12314 </method>
12315
12316 <method name="getRemoteConsole">
12317 <desc>
12318 Returns the console object suitable for remote control.
12319
12320 <result name="VBOX_E_INVALID_VM_STATE">
12321 Session state prevents operation.
12322 </result>
12323 <result name="VBOX_E_INVALID_OBJECT_STATE">
12324 Session type prevents operation.
12325 </result>
12326
12327 </desc>
12328 <param name="console" type="IConsole" dir="return"/>
12329 </method>
12330
12331 <method name="assignMachine">
12332 <desc>
12333 Assigns the machine object associated with this direct-type
12334 session or informs the session that it will be a remote one
12335 (if @a machine == @c null).
12336
12337 <result name="VBOX_E_INVALID_VM_STATE">
12338 Session state prevents operation.
12339 </result>
12340 <result name="VBOX_E_INVALID_OBJECT_STATE">
12341 Session type prevents operation.
12342 </result>
12343
12344 </desc>
12345 <param name="machine" type="IMachine" dir="in"/>
12346 </method>
12347
12348 <method name="assignRemoteMachine">
12349 <desc>
12350 Assigns the machine and the (remote) console object associated with
12351 this remote-type session.
12352
12353 <result name="VBOX_E_INVALID_VM_STATE">
12354 Session state prevents operation.
12355 </result>
12356
12357 </desc>
12358 <param name="machine" type="IMachine" dir="in"/>
12359 <param name="console" type="IConsole" dir="in"/>
12360 </method>
12361
12362 <method name="updateMachineState">
12363 <desc>
12364 Updates the machine state in the VM process.
12365 Must be called only in certain cases
12366 (see the method implementation).
12367
12368 <result name="VBOX_E_INVALID_VM_STATE">
12369 Session state prevents operation.
12370 </result>
12371 <result name="VBOX_E_INVALID_OBJECT_STATE">
12372 Session type prevents operation.
12373 </result>
12374
12375 </desc>
12376 <param name="aMachineState" type="MachineState" dir="in"/>
12377 </method>
12378
12379 <method name="uninitialize">
12380 <desc>
12381 Uninitializes (closes) this session. Used by VirtualBox to close
12382 the corresponding remote session when the direct session dies
12383 or gets closed.
12384
12385 <result name="VBOX_E_INVALID_VM_STATE">
12386 Session state prevents operation.
12387 </result>
12388
12389 </desc>
12390 </method>
12391
12392 <method name="onDVDDriveChange">
12393 <desc>
12394 Triggered when settings of the DVD drive object of the
12395 associated virtual machine have changed.
12396
12397 <result name="VBOX_E_INVALID_VM_STATE">
12398 Session state prevents operation.
12399 </result>
12400 <result name="VBOX_E_INVALID_OBJECT_STATE">
12401 Session type prevents operation.
12402 </result>
12403
12404 </desc>
12405 </method>
12406
12407 <method name="onFloppyDriveChange">
12408 <desc>
12409 Triggered when settings of the floppy drive object of the
12410 associated virtual machine have changed.
12411
12412 <result name="VBOX_E_INVALID_VM_STATE">
12413 Session state prevents operation.
12414 </result>
12415 <result name="VBOX_E_INVALID_OBJECT_STATE">
12416 Session type prevents operation.
12417 </result>
12418
12419 </desc>
12420 </method>
12421
12422 <method name="onNetworkAdapterChange">
12423 <desc>
12424 Triggered when settings of a network adapter of the
12425 associated virtual machine have changed.
12426
12427 <result name="VBOX_E_INVALID_VM_STATE">
12428 Session state prevents operation.
12429 </result>
12430 <result name="VBOX_E_INVALID_OBJECT_STATE">
12431 Session type prevents operation.
12432 </result>
12433
12434 </desc>
12435 <param name="networkAdapter" type="INetworkAdapter" dir="in"/>
12436 </method>
12437
12438 <method name="onSerialPortChange">
12439 <desc>
12440 Triggered when settings of a serial port of the
12441 associated virtual machine have changed.
12442
12443 <result name="VBOX_E_INVALID_VM_STATE">
12444 Session state prevents operation.
12445 </result>
12446 <result name="VBOX_E_INVALID_OBJECT_STATE">
12447 Session type prevents operation.
12448 </result>
12449
12450 </desc>
12451 <param name="serialPort" type="ISerialPort" dir="in"/>
12452 </method>
12453
12454 <method name="onParallelPortChange">
12455 <desc>
12456 Triggered when settings of a parallel port of the
12457 associated virtual machine have changed.
12458
12459 <result name="VBOX_E_INVALID_VM_STATE">
12460 Session state prevents operation.
12461 </result>
12462 <result name="VBOX_E_INVALID_OBJECT_STATE">
12463 Session type prevents operation.
12464 </result>
12465
12466 </desc>
12467 <param name="parallelPort" type="IParallelPort" dir="in"/>
12468 </method>
12469
12470 <method name="onStorageControllerChange">
12471 <desc>
12472 Triggered when settings of a storage controller of the
12473 associated virtual machine have changed.
12474
12475 <result name="VBOX_E_INVALID_VM_STATE">
12476 Session state prevents operation.
12477 </result>
12478 <result name="VBOX_E_INVALID_OBJECT_STATE">
12479 Session type prevents operation.
12480 </result>
12481
12482 </desc>
12483 </method>
12484
12485 <method name="onVRDPServerChange">
12486 <desc>
12487 Triggered when settings of the VRDP server object of the
12488 associated virtual machine have changed.
12489
12490 <result name="VBOX_E_INVALID_VM_STATE">
12491 Session state prevents operation.
12492 </result>
12493 <result name="VBOX_E_INVALID_OBJECT_STATE">
12494 Session type prevents operation.
12495 </result>
12496
12497 </desc>
12498 </method>
12499
12500 <method name="onUSBControllerChange">
12501 <desc>
12502 Triggered when settings of the USB controller object of the
12503 associated virtual machine have changed.
12504
12505 <result name="VBOX_E_INVALID_VM_STATE">
12506 Session state prevents operation.
12507 </result>
12508 <result name="VBOX_E_INVALID_OBJECT_STATE">
12509 Session type prevents operation.
12510 </result>
12511
12512 </desc>
12513 </method>
12514
12515 <method name="onSharedFolderChange">
12516 <desc>
12517 Triggered when a permanent (global or machine) shared folder has been
12518 created or removed.
12519 <note>
12520 We don't pass shared folder parameters in this notification because
12521 the order in which parallel notifications are delivered is not defined,
12522 therefore it could happen that these parameters were outdated by the
12523 time of processing this notification.
12524 </note>
12525
12526 <result name="VBOX_E_INVALID_VM_STATE">
12527 Session state prevents operation.
12528 </result>
12529 <result name="VBOX_E_INVALID_OBJECT_STATE">
12530 Session type prevents operation.
12531 </result>
12532
12533 </desc>
12534 <param name="global" type="boolean" dir="in"/>
12535 </method>
12536
12537 <method name="onUSBDeviceAttach">
12538 <desc>
12539 Triggered when a request to capture a USB device (as a result
12540 of matched USB filters or direct call to
12541 <link to="IConsole::attachUSBDevice"/>) has completed.
12542 A @c null @a error object means success, otherwise it
12543 describes a failure.
12544
12545 <result name="VBOX_E_INVALID_VM_STATE">
12546 Session state prevents operation.
12547 </result>
12548 <result name="VBOX_E_INVALID_OBJECT_STATE">
12549 Session type prevents operation.
12550 </result>
12551
12552 </desc>
12553 <param name="device" type="IUSBDevice" dir="in"/>
12554 <param name="error" type="IVirtualBoxErrorInfo" dir="in"/>
12555 <param name="maskedInterfaces" type="unsigned long" dir="in"/>
12556 </method>
12557
12558 <method name="onUSBDeviceDetach">
12559 <desc>
12560 Triggered when a request to release the USB device (as a result
12561 of machine termination or direct call to
12562 <link to="IConsole::detachUSBDevice"/>) has completed.
12563 A @c null @a error object means success, otherwise it
12564 describes a failure.
12565
12566 <result name="VBOX_E_INVALID_VM_STATE">
12567 Session state prevents operation.
12568 </result>
12569 <result name="VBOX_E_INVALID_OBJECT_STATE">
12570 Session type prevents operation.
12571 </result>
12572
12573 </desc>
12574 <param name="id" type="wstring" dir="in"/>
12575 <param name="error" type="IVirtualBoxErrorInfo" dir="in"/>
12576 </method>
12577
12578 <method name="onShowWindow">
12579 <desc>
12580 Called by <link to="IMachine::canShowConsoleWindow"/> and by
12581 <link to="IMachine::showConsoleWindow"/> in order to notify
12582 console callbacks
12583 <link to="IConsoleCallback::onCanShowWindow"/>
12584 and <link to="IConsoleCallback::onShowWindow"/>.
12585
12586 <result name="VBOX_E_INVALID_OBJECT_STATE">
12587 Session type prevents operation.
12588 </result>
12589
12590 </desc>
12591 <param name="check" type="boolean" dir="in"/>
12592 <param name="canShow" type="boolean" dir="out"/>
12593 <param name="winId" type="unsigned long long" dir="out"/>
12594 </method>
12595
12596 <method name="accessGuestProperty">
12597 <desc>
12598 Called by <link to="IMachine::getGuestProperty"/> and by
12599 <link to="IMachine::setGuestProperty"/> in order to read and
12600 modify guest properties.
12601
12602 <result name="VBOX_E_INVALID_VM_STATE">
12603 Machine session is not open.
12604 </result>
12605 <result name="VBOX_E_INVALID_OBJECT_STATE">
12606 Session type is not direct.
12607 </result>
12608
12609 </desc>
12610 <param name="name" type="wstring" dir="in"/>
12611 <param name="value" type="wstring" dir="in"/>
12612 <param name="flags" type="wstring" dir="in"/>
12613 <param name="isSetter" type="boolean" dir="in"/>
12614 <param name="retValue" type="wstring" dir="out"/>
12615 <param name="retTimestamp" type="unsigned long long" dir="out"/>
12616 <param name="retFlags" type="wstring" dir="out"/>
12617 </method>
12618
12619 <method name="enumerateGuestProperties">
12620 <desc>
12621 Return a list of the guest properties matching a set of patterns along
12622 with their values, time stamps and flags.
12623
12624 <result name="VBOX_E_INVALID_VM_STATE">
12625 Machine session is not open.
12626 </result>
12627 <result name="VBOX_E_INVALID_OBJECT_STATE">
12628 Session type is not direct.
12629 </result>
12630
12631 </desc>
12632 <param name="patterns" type="wstring" dir="in">
12633 <desc>
12634 The patterns to match the properties against as a comma-separated
12635 string. If this is empty, all properties currently set will be
12636 returned.
12637 </desc>
12638 </param>
12639 <param name="key" type="wstring" dir="out" safearray="yes">
12640 <desc>
12641 The key names of the properties returned.
12642 </desc>
12643 </param>
12644 <param name="value" type="wstring" dir="out" safearray="yes">
12645 <desc>
12646 The values of the properties returned. The array entries match the
12647 corresponding entries in the @a key array.
12648 </desc>
12649 </param>
12650 <param name="timestamp" type="unsigned long long" dir="out" safearray="yes">
12651 <desc>
12652 The time stamps of the properties returned. The array entries match
12653 the corresponding entries in the @a key array.
12654 </desc>
12655 </param>
12656 <param name="flags" type="wstring" dir="out" safearray="yes">
12657 <desc>
12658 The flags of the properties returned. The array entries match the
12659 corresponding entries in the @a key array.
12660 </desc>
12661 </param>
12662 </method>
12663
12664 </interface>
12665
12666 <interface
12667 name="ISession" extends="$dispatched"
12668 uuid="12F4DCDB-12B2-4ec1-B7CD-DDD9F6C5BF4D"
12669 wsmap="managed"
12670 >
12671 <desc>
12672 The ISession interface represents a serialization primitive for virtual
12673 machines.
12674
12675 With VirtualBox, every time one wishes to manipulate a virtual machine
12676 (e.g. change its settings or start execution), a session object is
12677 required. Such an object must be passed to one of the session methods
12678 that open the given session, which then initiates the machine manipulation.
12679
12680 A session serves several purposes: it identifies to the inter-process VirtualBox
12681 code which process is currently working with the virtual machine, and it ensures
12682 that there are no incompatible requests from several processes for the
12683 same virtual machine. Session objects can therefore be thought of as mutex
12684 semaphores that lock virtual machines to prevent conflicting accesses from
12685 several processes.
12686
12687 How sessions objects are used depends on whether you use the Main API
12688 via COM or via the webservice:
12689
12690 <ul>
12691 <li>When using the COM API directly, an object of the Session class from the
12692 VirtualBox type library needs to be created. In regular COM C++ client code,
12693 this can be done by calling <tt>createLocalObject()</tt>, a standard COM API.
12694 This object will then act as a local session object in further calls to open
12695 a session.
12696 </li>
12697
12698 <li>In the webservice, the session manager (IWebsessionManager) instead creates
12699 one session object automatically when <link to="IWebsessionManager::logon" />
12700 is called. A managed object reference to that session object can be retrieved by
12701 calling <link to="IWebsessionManager::getSessionObject" />. This session object
12702 reference can then be used to open sessions.
12703 </li>
12704 </ul>
12705
12706 Sessions are mainly used in two variations:
12707
12708 <ul>
12709 <li>
12710 To start a virtual machine in a separate process, one would call
12711 <link to="IVirtualBox::openRemoteSession"/>, which requires a session
12712 object as its first parameter. This session then identifies the caller
12713 and lets him control the started machine (for example, pause machine
12714 execution or power it down) as well as be notified about machine
12715 execution state changes.
12716 </li>
12717
12718 <li>To alter machine settings, or to start machine execution within the
12719 current process, one needs to open a direct session for the machine first by
12720 calling <link to="IVirtualBox::openSession"/>. While a direct session
12721 is open within one process, no any other process may open another direct
12722 session for the same machine. This prevents the machine from being changed
12723 by other processes while it is running or while the machine is being configured.
12724 </li>
12725 </ul>
12726
12727 One also can attach to an existing direct session already opened by
12728 another process (for example, in order to send a control request to the
12729 virtual machine such as the pause or the reset request). This is done by
12730 calling <link to="IVirtualBox::openExistingSession"/>.
12731
12732 <note>
12733 Unless you are trying to write a new VirtualBox front-end that
12734 performs direct machine execution (like the VirtualBox or VBoxSDL
12735 front-ends), don't call <link to="IConsole::powerUp"/> in a direct
12736 session opened by <link to="IVirtualBox::openSession"/> and use this
12737 session only to change virtual machine settings. If you simply want to
12738 start virtual machine execution using one of the existing front-ends
12739 (for example the VirtualBox GUI or headless server), simply use
12740 <link to="IVirtualBox::openRemoteSession"/>; these front-ends
12741 will power up the machine automatically for you.
12742 </note>
12743 </desc>
12744
12745 <attribute name="state" type="SessionState" readonly="yes">
12746 <desc>Current state of this session.</desc>
12747 </attribute>
12748
12749 <attribute name="type" type="SessionType" readonly="yes">
12750 <desc>
12751 Type of this session. The value of this attribute is valid only
12752 if the session is currently open (i.e. its #state is
12753 SessionType_SessionOpen), otherwise an error will be returned.
12754 </desc>
12755 </attribute>
12756
12757 <attribute name="machine" type="IMachine" readonly="yes">
12758 <desc>Machine object associated with this session.</desc>
12759 </attribute>
12760
12761 <attribute name="console" type="IConsole" readonly="yes">
12762 <desc>Console object associated with this session.</desc>
12763 </attribute>
12764
12765 <method name="close">
12766 <desc>
12767 Closes a session that was previously opened.
12768
12769 It is recommended that every time an "open session" method (such as
12770 <link to="IVirtualBox::openRemoteSession" /> or
12771 <link to="IVirtualBox::openSession" />) has been called to
12772 manipulate a virtual machine, the caller invoke
12773 ISession::close() when it's done doing so. Since sessions are
12774 serialization primitives much like ordinary mutexes, they are
12775 best used the same way: for each "open" call, there should be
12776 a matching "close" call, even when errors occur.
12777
12778 Otherwise, if a direct session for a machine opened with
12779 <link to="IVirtualBox::openSession"/> is not explicitly closed
12780 when the application terminates, the state of the machine will
12781 be set to <link to="MachineState_Aborted" /> on the server.
12782
12783 Generally, it is recommended to close all open sessions explicitly
12784 before terminating the application (regardless of the reason for
12785 the termination).
12786
12787 <note>
12788 Do not expect the session state (<link to="ISession::state" />
12789 to return to "Closed" immediately after you invoke
12790 ISession::close(), particularly if you have started a remote
12791 session to execute the VM in a new process. The session state will
12792 automatically return to "Closed" once the VM is no longer executing,
12793 which can of course take a very long time.
12794 </note>
12795
12796 <result name="E_UNEXPECTED">
12797 Session is not open.
12798 </result>
12799
12800 </desc>
12801 </method>
12802
12803 </interface>
12804
12805 <!--
12806 // IStorageController
12807 /////////////////////////////////////////////////////////////////////////
12808 -->
12809
12810 <enum
12811 name="StorageBus"
12812 uuid="f381fdca-5953-41d0-b2bd-0542b012698d"
12813 >
12814 <desc>
12815 The connection type of the storage controller.
12816 </desc>
12817 <const name="Null" value="0">
12818 <desc>@c null value. Never used by the API.</desc>
12819 </const>
12820 <const name="IDE" value="1"/>
12821 <const name="SATA" value="2"/>
12822 <const name="SCSI" value="3"/>
12823 </enum>
12824
12825 <enum
12826 name="StorageControllerType"
12827 uuid="685387db-a837-4320-a258-08f46a22f62a"
12828 >
12829 <desc>
12830 Storage controller type.
12831 </desc>
12832
12833 <const name="Null" value="0">
12834 <desc>@c null value. Never used by the API.</desc>
12835 </const>
12836 <const name="LsiLogic" value="1"/>
12837 <const name="BusLogic" value="2"/>
12838 <const name="IntelAhci" value="3"/>
12839 <const name="PIIX3" value="4"/>
12840 <const name="PIIX4" value="5"/>
12841 <const name="ICH6" value="6"/>
12842 </enum>
12843
12844 <interface
12845 name="IStorageController" extends="$unknown"
12846 uuid="6bf8335b-d14a-44a5-9b45-ddc49ce7d5b2"
12847 wsmap="managed"
12848 >
12849 <desc>
12850 Represents a storage controller that is attached to a virtual machine
12851 (<link to="IMachine" />). Just as hard disks are attached to storage
12852 controllers in a real computer, virtual hard disks (represented by
12853 <link to="IHardDisk" />) are attached to virtual storage controllers,
12854 represented by this interface.
12855
12856 VirtualBox supports three types of virtual storage controller hardware:
12857 IDE, SCSI, and SATA (see <link to="#bus" />). Depending on which of
12858 these three is used, certain sub-types are available and can be
12859 selected in <link to="#controllerType" />.
12860 </desc>
12861
12862 <attribute name="name" type="wstring" readonly="yes">
12863 <desc>
12864 Name of the storage controller, as originally specified with
12865 <link to="IMachine::addStorageController" />. This then uniquely
12866 identifies this controller with other method calls such as
12867 <link to="IMachine::attachHardDisk" />.
12868 </desc>
12869 </attribute>
12870
12871 <attribute name="maxDevicesPerPortCount" type="unsigned long" readonly="yes">
12872 <desc>
12873 Maximum number of devices which can be attached to one port.
12874 </desc>
12875 </attribute>
12876
12877 <attribute name="minPortCount" type="unsigned long" readonly="yes">
12878 <desc>
12879 Minimum number of ports that <link to="IStorageController::portCount"/> can be set to.
12880 </desc>
12881 </attribute>
12882
12883 <attribute name="maxPortCount" type="unsigned long" readonly="yes">
12884 <desc>
12885 Maximum number of ports that <link to="IStorageController::portCount"/> can be set to.
12886 </desc>
12887 </attribute>
12888
12889 <attribute name="instance" type="unsigned long">
12890 <desc>
12891 The instance number of the device in the running VM.
12892 </desc>
12893 </attribute>
12894
12895 <attribute name="portCount" type="unsigned long">
12896 <desc>
12897 The number of currently usable ports on the controller.
12898 The minimum and maximum number of ports for one controller are
12899 stored in <link to="IStorageController::minPortCount"/>
12900 and <link to="IStorageController::maxPortCount"/>.
12901 </desc>
12902 </attribute>
12903
12904 <attribute name="bus" type="StorageBus" readonly="yes">
12905 <desc>
12906 The connection type of the storage controller.
12907 </desc>
12908 </attribute>
12909
12910 <attribute name="controllerType" type="StorageControllerType">
12911 <desc>
12912 Type of the virtual storage controller. Depending on this value,
12913 VirtualBox will provide a different virtual storage controller hardware
12914 to the guest.
12915
12916 For SCSI controllers, the default type is LsiLogic.
12917 </desc>
12918 </attribute>
12919
12920 <method name="GetIDEEmulationPort">
12921 <desc>
12922 Gets the corresponding port number which is emulated as an IDE device.
12923
12924 <result name="E_INVALIDARG">
12925 The @a devicePosition is not in the range 0 to 3.
12926 </result>
12927 <result name="E_NOTIMPL">
12928 The storage controller type is not SATAIntelAhci.
12929 </result>
12930
12931 </desc>
12932 <param name="devicePosition" type="long" dir="in"/>
12933 <param name="portNumber" type="long" dir="return"/>
12934 </method>
12935
12936 <method name="SetIDEEmulationPort">
12937 <desc>
12938 Sets the port number which is emulated as an IDE device.
12939
12940 <result name="E_INVALIDARG">
12941 The @a devicePosition is not in the range 0 to 3 or the
12942 @a portNumber is not in the range 0 to 29.
12943 </result>
12944 <result name="E_NOTIMPL">
12945 The storage controller type is not SATAIntelAhci.
12946 </result>
12947
12948 </desc>
12949 <param name="devicePosition" type="long" dir="in"/>
12950 <param name="portNumber" type="long" dir="in"/>
12951 </method>
12952
12953 </interface>
12954
12955<if target="wsdl">
12956
12957 <!--
12958 // IManagedObjectRef
12959 /////////////////////////////////////////////////////////////////////////
12960 -->
12961
12962 <interface
12963 name="IManagedObjectRef" extends="$unknown"
12964 uuid="9474d09d-2313-46de-b568-a42b8718e8ed"
12965 internal="yes"
12966 wsmap="managed"
12967 wscpp="hardcoded"
12968 >
12969 <desc>
12970 Managed object reference.
12971
12972 Only within the webservice, a managed object reference (which is really
12973 an opaque number) allows a webservice client to address an object
12974 that lives in the address space of the webservice server.
12975
12976 Behind each managed object reference, there is a COM object that lives
12977 in the webservice server's address space. The COM object is not freed
12978 until the managed object reference is released, either by an explicit
12979 call to <link to="IManagedObjectRef::release" /> or by logging off from
12980 the webservice (<link to="IWebsessionManager::logoff" />), which releases
12981 all objects created during the webservice session.
12982
12983 Whenever a method call of the VirtualBox API returns a COM object, the
12984 webservice representation of that method will instead return a
12985 managed object reference, which can then be used to invoke methods
12986 on that object.
12987 </desc>
12988
12989 <method name="getInterfaceName">
12990 <desc>
12991 Returns the name of the interface that this managed object represents,
12992 for example, "IMachine", as a string.
12993 </desc>
12994 <param name="return" type="wstring" dir="return"/>
12995 </method>
12996
12997 <method name="release">
12998 <desc>
12999 Releases this managed object reference and frees the resources that
13000 were allocated for it in the webservice server process. After calling
13001 this method, the identifier of the reference can no longer be used.
13002 </desc>
13003 </method>
13004
13005 </interface>
13006
13007 <!--
13008 // IWebsessionManager
13009 /////////////////////////////////////////////////////////////////////////
13010 -->
13011
13012 <interface
13013 name="IWebsessionManager" extends="$unknown"
13014 uuid="dea1b4c7-2de3-418a-850d-7868617f7733"
13015 internal="yes"
13016 wsmap="global"
13017 wscpp="hardcoded"
13018 >
13019 <desc>
13020 Websession manager. This provides essential services
13021 to webservice clients.
13022 </desc>
13023 <method name="logon">
13024 <desc>
13025 Logs a new client onto the webservice and returns a managed object reference to
13026 the IVirtualBox instance, which the client can then use as a basis to further
13027 queries, since all calls to the VirtualBox API are based on the IVirtualBox
13028 interface, in one way or the other.
13029 </desc>
13030 <param name="username" type="wstring" dir="in"/>
13031 <param name="password" type="wstring" dir="in"/>
13032 <param name="return" type="IVirtualBox" dir="return"/>
13033 </method>
13034
13035 <method name="getSessionObject">
13036 <desc>
13037 Returns a managed object reference to the internal ISession object that was created
13038 for this web service session when the client logged on.
13039
13040 <see>ISession</see>
13041 </desc>
13042 <param name="refIVirtualBox" type="IVirtualBox" dir="in"/>
13043 <param name="return" type="ISession" dir="return"/>
13044 </method>
13045
13046 <method name="logoff">
13047 <desc>
13048 Logs off the client who has previously logged on with <link to="IWebsessionManager::logoff" />
13049 and destroys all resources associated with the session (most importantly, all
13050 managed objects created in the server while the session was active).
13051 </desc>
13052 <param name="refIVirtualBox" type="IVirtualBox" dir="in"/>
13053 </method>
13054
13055 </interface>
13056
13057</if>
13058
13059 <!--
13060 // IPerformanceCollector & friends
13061 /////////////////////////////////////////////////////////////////////////
13062 -->
13063
13064 <interface
13065 name="IPerformanceMetric" extends="$unknown"
13066 uuid="2a1a60ae-9345-4019-ad53-d34ba41cbfe9" wsmap="managed"
13067 >
13068 <desc>
13069 The IPerformanceMetric interface represents parameters of the given
13070 performance metric.
13071 </desc>
13072
13073 <attribute name="metricName" type="wstring" readonly="yes">
13074 <desc>
13075 Name of the metric.
13076 </desc>
13077 </attribute>
13078
13079 <attribute name="object" type="$unknown" readonly="yes">
13080 <desc>
13081 Object this metric belongs to.
13082 </desc>
13083 </attribute>
13084
13085 <attribute name="description" type="wstring" readonly="yes">
13086 <desc>
13087 Textual description of the metric.
13088 </desc>
13089 </attribute>
13090
13091 <attribute name="period" type="unsigned long" readonly="yes">
13092 <desc>
13093 Time interval between samples, measured in seconds.
13094 </desc>
13095 </attribute>
13096
13097 <attribute name="count" type="unsigned long" readonly="yes">
13098 <desc>
13099 Number of recent samples retained by the performance collector for this
13100 metric.
13101
13102 When the collected sample count exceeds this number, older samples
13103 are discarded.
13104 </desc>
13105 </attribute>
13106
13107 <attribute name="unit" type="wstring" readonly="yes">
13108 <desc>
13109 Unit of measurement.
13110 </desc>
13111 </attribute>
13112
13113 <attribute name="minimumValue" type="long" readonly="yes">
13114 <desc>
13115 Minimum possible value of this metric.
13116 </desc>
13117 </attribute>
13118
13119 <attribute name="maximumValue" type="long" readonly="yes">
13120 <desc>
13121 Maximum possible value of this metric.
13122 </desc>
13123 </attribute>
13124 </interface>
13125
13126 <interface
13127 name="IPerformanceCollector" extends="$unknown"
13128 uuid="e22e1acb-ac4a-43bb-a31c-17321659b0c6"
13129 wsmap="managed"
13130 >
13131 <desc>
13132 The IPerformanceCollector interface represents a service that collects and
13133 stores performance metrics data.
13134
13135 Performance metrics are associated with objects of interfaces like IHost and
13136 IMachine. Each object has a distinct set of performance metrics.
13137 The set can be obtained with <link to="IPerformanceCollector::getMetrics"/>.
13138
13139 Metric data is collected at the specified intervals and is retained
13140 internally. The interval and the number of retained samples can be set
13141 with <link to="IPerformanceCollector::setupMetrics" />.
13142
13143 Metrics are organized hierarchically, with each level separated by a
13144 slash (/) character. Generally, the scheme for metric names is like this:
13145
13146 <tt>Category/Metric[/SubMetric][:aggregation]</tt>
13147
13148 "Category/Metric" together form the base metric name. A base metric is the
13149 smallest unit for which a sampling interval and the number of retained
13150 samples can be set. Only base metrics can be enabled and disabled. All
13151 sub-metrics are collected when their base metric is collected.
13152 Collected values for any set of sub-metrics can be queried with
13153 <link to="IPerformanceCollector::queryMetricsData" />.
13154
13155 For example "CPU/Load/User:avg"
13156 metric name stands for the "CPU" category, "Load" metric, "User" submetric,
13157 "average" aggregate. An aggregate function is computed over all retained
13158 data. Valid aggregate functions are:
13159
13160 <ul>
13161 <li>avg -- average</li>
13162 <li>min -- minimum</li>
13163 <li>max -- maximum</li>
13164 </ul>
13165
13166 When setting up
13167 metric parameters, querying metric data, enabling or disabling metrics
13168 wildcards can be used in metric names to specify a subset of metrics. For
13169 example, to select all CPU-related metrics use <tt>CPU/*</tt>, all
13170 averages can be queried using <tt>*:avg</tt> and so on. To query metric
13171 values without aggregates <tt>*:</tt> can be used.
13172
13173 The valid names for base metrics are:
13174
13175 <ul>
13176 <li>CPU/Load</li>
13177 <li>CPU/MHz</li>
13178 <li>RAM/Usage</li>
13179 </ul>
13180
13181 The general sequence for collecting and retrieving the metrics is:
13182 <ul>
13183 <li>
13184 Obtain an instance of IPerformanceCollector with
13185 <link to="IVirtualBox::performanceCollector" />
13186 </li>
13187 <li>
13188 Allocate and populate an array with references to objects the metrics
13189 will be collected for. Use references to IHost and IMachine objects.
13190 </li>
13191 <li>
13192 Allocate and populate an array with base metric names the data will be
13193 collected for.
13194 </li>
13195 <li>
13196 Call <link to="IPerformanceCollector::setupMetrics" />. From now on the
13197 metric data will be collected and stored.
13198 </li>
13199 <li>
13200 Wait for the data to get collected.
13201 </li>
13202 <li>
13203 Allocate and populate an array with references to objects the metric
13204 values will be queried for. You can re-use the object array used for
13205 setting base metrics.
13206 </li>
13207 <li>
13208 Allocate and populate an array with metric names the data will be
13209 collected for. Note that metric names differ from base metric names.
13210 </li>
13211 <li>
13212 Call <link to="IPerformanceCollector::queryMetricsData" />. The data that
13213 have been collected so far are returned. Note that the values are still
13214 retained internally and data collection continues.
13215 </li>
13216 </ul>
13217
13218 For an example of usage refer to the following files in VirtualBox SDK:
13219 <ul>
13220 <li>
13221 Java: <tt>bindings/webservice/java/jax-ws/samples/metrictest.java</tt>
13222 </li>
13223 <li>
13224 Python: <tt>bindings/xpcom/python/sample/shellcommon.py</tt>
13225 </li>
13226 </ul>
13227 </desc>
13228
13229 <attribute name="metricNames" type="wstring" readonly="yes" safearray="yes">
13230 <desc>
13231 Array of unique names of metrics.
13232
13233 This array represents all metrics supported by the performance
13234 collector. Individual objects do not necessarily support all of them.
13235 <link to="IPerformanceCollector::getMetrics"/> can be used to get the
13236 list of supported metrics for a particular object.
13237 </desc>
13238 </attribute>
13239
13240 <method name="getMetrics">
13241 <desc>
13242 Returns parameters of specified metrics for a set of objects.
13243 <note>
13244 @c Null metrics array means all metrics. @c Null object array means
13245 all existing objects.
13246 </note>
13247 </desc>
13248 <param name="metricNames" type="wstring" dir="in" safearray="yes">
13249 <desc>
13250 Metric name filter. Currently, only a comma-separated list of metrics
13251 is supported.
13252 </desc>
13253 </param>
13254 <param name="objects" type="$unknown" dir="in" safearray="yes">
13255 <desc>
13256 Set of objects to return metric parameters for.
13257 </desc>
13258 </param>
13259 <param name="metrics" type="IPerformanceMetric" dir="return" safearray="yes">
13260 <desc>
13261 Array of returned metric parameters.
13262 </desc>
13263 </param>
13264 </method>
13265
13266 <method name="setupMetrics">
13267 <desc>
13268 Sets parameters of specified base metrics for a set of objects. Returns
13269 an array of <link to="IPerformanceMetric" /> describing the metrics have
13270 been affected.
13271 <note>
13272 @c Null or empty metric name array means all metrics. @c Null or empty
13273 object array means all existing objects. If metric name array contains
13274 a single element and object array contains many, the single metric
13275 name array element is applied to each object array element to form
13276 metric/object pairs.
13277 </note>
13278 </desc>
13279 <param name="metricNames" type="wstring" dir="in" safearray="yes">
13280 <desc>
13281 Metric name filter. Comma-separated list of metrics with wildcard
13282 support.
13283 </desc>
13284 </param>
13285 <param name="objects" type="$unknown" dir="in" safearray="yes">
13286 <desc>
13287 Set of objects to setup metric parameters for.
13288 </desc>
13289 </param>
13290 <param name="period" type="unsigned long" dir="in">
13291 <desc>
13292 Time interval in seconds between two consecutive samples of performance
13293 data.
13294 </desc>
13295 </param>
13296 <param name="count" type="unsigned long" dir="in">
13297 <desc>
13298 Number of samples to retain in performance data history. Older samples
13299 get discarded.
13300 </desc>
13301 </param>
13302 <param name="affectedMetrics" type="IPerformanceMetric" dir="return" safearray="yes">
13303 <desc>
13304 Array of metrics that have been modified by the call to this method.
13305 </desc>
13306 </param>
13307 </method>
13308
13309 <method name="enableMetrics">
13310 <desc>
13311 Turns on collecting specified base metrics. Returns an array of
13312 <link to="IPerformanceMetric" /> describing the metrics have been
13313 affected.
13314 <note>
13315 @c Null or empty metric name array means all metrics. @c Null or empty
13316 object array means all existing objects. If metric name array contains
13317 a single element and object array contains many, the single metric
13318 name array element is applied to each object array element to form
13319 metric/object pairs.
13320 </note>
13321 </desc>
13322 <param name="metricNames" type="wstring" dir="in" safearray="yes">
13323 <desc>
13324 Metric name filter. Comma-separated list of metrics with wildcard
13325 support.
13326 </desc>
13327 </param>
13328 <param name="objects" type="$unknown" dir="in" safearray="yes">
13329 <desc>
13330 Set of objects to enable metrics for.
13331 </desc>
13332 </param>
13333 <param name="affectedMetrics" type="IPerformanceMetric" dir="return" safearray="yes">
13334 <desc>
13335 Array of metrics that have been modified by the call to this method.
13336 </desc>
13337 </param>
13338 </method>
13339
13340 <method name="disableMetrics">
13341 <desc>
13342 Turns off collecting specified base metrics. Returns an array of
13343 <link to="IPerformanceMetric" /> describing the metrics have been
13344 affected.
13345 <note>
13346 @c Null or empty metric name array means all metrics. @c Null or empty
13347 object array means all existing objects. If metric name array contains
13348 a single element and object array contains many, the single metric
13349 name array element is applied to each object array element to form
13350 metric/object pairs.
13351 </note>
13352 </desc>
13353 <param name="metricNames" type="wstring" dir="in" safearray="yes">
13354 <desc>
13355 Metric name filter. Comma-separated list of metrics with wildcard
13356 support.
13357 </desc>
13358 </param>
13359 <param name="objects" type="$unknown" dir="in" safearray="yes">
13360 <desc>
13361 Set of objects to disable metrics for.
13362 </desc>
13363 </param>
13364 <param name="affectedMetrics" type="IPerformanceMetric" dir="return" safearray="yes">
13365 <desc>
13366 Array of metrics that have been modified by the call to this method.
13367 </desc>
13368 </param>
13369 </method>
13370
13371 <method name="queryMetricsData">
13372 <desc>
13373 Queries collected metrics data for a set of objects.
13374
13375 The data itself and related metric information are returned in seven
13376 parallel and one flattened array of arrays. Elements of
13377 <tt>returnMetricNames, returnObjects, returnUnits, returnScales,
13378 returnSequenceNumbers, returnDataIndices and returnDataLengths</tt> with
13379 the same index describe one set of values corresponding to a single
13380 metric.
13381
13382 The <tt>returnData</tt> parameter is a flattened array of arrays. Each
13383 start and length of a sub-array is indicated by
13384 <tt>returnDataIndices</tt> and <tt>returnDataLengths</tt>. The first
13385 value for metric <tt>metricNames[i]</tt> is at
13386 <tt>returnData[returnIndices[i]]</tt>.
13387
13388 <note>
13389 @c Null or empty metric name array means all metrics. @c Null or empty
13390 object array means all existing objects. If metric name array contains
13391 a single element and object array contains many, the single metric
13392 name array element is applied to each object array element to form
13393 metric/object pairs.
13394 </note>
13395 <note>
13396 Data collection continues behind the scenes after call to
13397 @c queryMetricsData. The return data can be seen as the snapshot of
13398 the current state at the time of @c queryMetricsData call. The
13399 internally kept metric values are not cleared by the call. This makes
13400 possible querying different subsets of metrics or aggregates with
13401 subsequent calls. If periodic querying is needed it is highly
13402 suggested to query the values with @c interval*count period to avoid
13403 confusion. This way a completely new set of data values will be
13404 provided by each query.
13405 </note>
13406 </desc>
13407 <param name="metricNames" type="wstring" dir="in" safearray="yes">
13408 <desc>
13409 Metric name filter. Comma-separated list of metrics with wildcard
13410 support.
13411 </desc>
13412 </param>
13413 <param name="objects" type="$unknown" dir="in" safearray="yes">
13414 <desc>
13415 Set of objects to query metrics for.
13416 </desc>
13417 </param>
13418 <param name="returnMetricNames" type="wstring" dir="out" safearray="yes">
13419 <desc>
13420 Names of metrics returned in @c returnData.
13421 </desc>
13422 </param>
13423 <param name="returnObjects" type="$unknown" dir="out" safearray="yes">
13424 <desc>
13425 Objects associated with metrics returned in @c returnData.
13426 </desc>
13427 </param>
13428 <param name="returnUnits" type="wstring" dir="out" safearray="yes">
13429 <desc>
13430 Units of measurement for each returned metric.
13431 </desc>
13432 </param>
13433 <param name="returnScales" type="unsigned long" dir="out" safearray="yes">
13434 <desc>
13435 Divisor that should be applied to return values in order to get
13436 floating point values. For example:
13437 <tt>(double)returnData[returnDataIndices[0]+i] / returnScales[0]</tt>
13438 will retrieve the floating point value of i-th sample of the first
13439 metric.
13440 </desc>
13441 </param>
13442 <param name="returnSequenceNumbers" type="unsigned long" dir="out" safearray="yes">
13443 <desc>
13444 Sequence numbers of the first elements of value sequences of particular metrics
13445 returned in @c returnData. For aggregate metrics it is the sequence number of
13446 the sample the aggregate started calculation from.
13447 </desc>
13448 </param>
13449 <param name="returnDataIndices" type="unsigned long" dir="out" safearray="yes">
13450 <desc>
13451 Indices of the first elements of value sequences of particular metrics
13452 returned in @c returnData.
13453 </desc>
13454 </param>
13455 <param name="returnDataLengths" type="unsigned long" dir="out" safearray="yes">
13456 <desc>
13457 Lengths of value sequences of particular metrics.
13458 </desc>
13459 </param>
13460 <param name="returnData" type="long" dir="return" safearray="yes">
13461 <desc>
13462 Flattened array of all metric data containing sequences of values for
13463 each metric.
13464 </desc>
13465 </param>
13466 </method>
13467
13468 </interface>
13469
13470 <module name="VBoxSVC" context="LocalServer">
13471 <class name="VirtualBox" uuid="B1A7A4F2-47B9-4A1E-82B2-07CCD5323C3F"
13472 namespace="virtualbox.org">
13473 <interface name="IVirtualBox" default="yes"/>
13474 </class>
13475 </module>
13476
13477 <module name="VBoxC" context="InprocServer" threadingModel="Free">
13478 <class name="Session" uuid="3C02F46D-C9D2-4f11-A384-53F0CF917214"
13479 namespace="virtualbox.org">
13480 <interface name="ISession" default="yes"/>
13481 </class>
13482 </module>
13483
13484</library>
13485
13486</idl>
13487
13488<!-- vim: set shiftwidth=2 tabstop=2 expandtab: -->
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

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